push neon reactor

This commit is contained in:
2026-07-12 15:11:38 +02:00
parent 172e72dbcd
commit aeab5f7820
9597 changed files with 2407488 additions and 0 deletions
@@ -0,0 +1,17 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { IHttpClient, RequestConfig, Response } from '../services/index.js';
import type { IAuthenticationProvider } from '../Types/PlayerActions.types.js';
export declare class ActionsHttpClient implements IHttpClient {
private _authenticationProvider;
constructor(_authenticationProvider: IAuthenticationProvider);
get<T = unknown>(url: string, config?: RequestConfig): Promise<Response<T>>;
post<T = unknown>(url: string, config?: RequestConfig): Promise<Response<T>>;
patch<T = unknown>(url: string, config?: RequestConfig): Promise<Response<T>>;
put<T = unknown>(url: string, config?: RequestConfig): Promise<Response<T>>;
delete<T = unknown>(url: string, config?: RequestConfig): Promise<Response<T>>;
private _sendRequestAsync;
private _transformHeaders;
}
//# sourceMappingURL=HttpClient.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"HttpClient.d.ts","sourceRoot":"","sources":["../../src/Common/HttpClient.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAI5E,qBAAa,iBAAkB,YAAW,WAAW;IACvC,OAAO,CAAC,uBAAuB;gBAAvB,uBAAuB,EAAE,uBAAuB;IAEvD,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAG3E,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAG5E,KAAK,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAG7E,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAG3E,MAAM,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAI7E,iBAAiB;IA2C/B,OAAO,CAAC,iBAAiB;CAO1B"}
@@ -0,0 +1,60 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { randomUUID } from 'crypto';
const MS_CLIENT_REQUESTID = 'x-ms-client-request-id';
export class ActionsHttpClient {
_authenticationProvider;
constructor(_authenticationProvider) {
this._authenticationProvider = _authenticationProvider;
}
async get(url, config) {
return this._sendRequestAsync(url, 'GET', config);
}
async post(url, config) {
return this._sendRequestAsync(url, 'POST', config);
}
async patch(url, config) {
return this._sendRequestAsync(url, 'PATCH', config);
}
async put(url, config) {
return this._sendRequestAsync(url, 'PUT', config);
}
async delete(url, config) {
return this._sendRequestAsync(url, 'DELETE', config);
}
async _sendRequestAsync(url, method, config) {
const headers = {
'Content-Type': 'application/json',
...config?.headers,
};
if (config?.authResource) {
const token = await this._authenticationProvider.getAccessTokenForResource(config.authResource);
headers.Authorization = `Bearer ${token}`;
}
headers[MS_CLIENT_REQUESTID] = randomUUID();
const requestOptions = {
method,
headers,
// Only include body if it exists
body: config?.body ? JSON.stringify(config.body) : undefined,
};
const response = await fetch(url, requestOptions);
if (!response.ok) {
throw new Error(`HTTP error status: ${response.status} for ${method} ${url}`);
}
return {
data: (config?.responseType === 'text' ? await response.text() : await response.json()),
status: response.status,
headers: this._transformHeaders(response.headers),
};
}
_transformHeaders(headers) {
const result = {};
headers.forEach((value, key) => {
result[key] = value;
});
return result;
}
}
//# sourceMappingURL=HttpClient.js.map
@@ -0,0 +1 @@
{"version":3,"file":"HttpClient.js","sourceRoot":"","sources":["../../src/Common/HttpClient.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAKpC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AAErD,MAAM,OAAO,iBAAiB;IACR;IAApB,YAAoB,uBAAgD;QAAhD,4BAAuB,GAAvB,uBAAuB,CAAyB;IAAG,CAAC;IAEjE,KAAK,CAAC,GAAG,CAAc,GAAW,EAAE,MAAsB;QAC/D,OAAO,IAAI,CAAC,iBAAiB,CAAI,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC;IACM,KAAK,CAAC,IAAI,CAAc,GAAW,EAAE,MAAsB;QAChE,OAAO,IAAI,CAAC,iBAAiB,CAAI,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;IACM,KAAK,CAAC,KAAK,CAAc,GAAW,EAAE,MAAsB;QACjE,OAAO,IAAI,CAAC,iBAAiB,CAAI,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACzD,CAAC;IACM,KAAK,CAAC,GAAG,CAAc,GAAW,EAAE,MAAsB;QAC/D,OAAO,IAAI,CAAC,iBAAiB,CAAI,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC;IACM,KAAK,CAAC,MAAM,CAAc,GAAW,EAAE,MAAsB;QAClE,OAAO,IAAI,CAAC,iBAAiB,CAAI,GAAG,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC1D,CAAC;IAEO,KAAK,CAAC,iBAAiB,CAC7B,GAAW,EACX,MAAc,EACd,MAAsB;QAEtB,MAAM,OAAO,GAA2B;YACtC,cAAc,EAAE,kBAAkB;YAClC,GAAG,MAAM,EAAE,OAAO;SACnB,CAAC;QAEF,I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AC;CACF"}
@@ -0,0 +1,5 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
export type JsonObject = Record<string, unknown>;
//# sourceMappingURL=jsonTypes.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"jsonTypes.d.ts","sourceRoot":"","sources":["../../src/Common/jsonTypes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
@@ -0,0 +1,5 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
export {};
//# sourceMappingURL=jsonTypes.js.map
@@ -0,0 +1 @@
{"version":3,"file":"jsonTypes.js","sourceRoot":"","sources":["../../src/Common/jsonTypes.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -0,0 +1,23 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
export declare class ParameterPropertyInfo {
propertyName: string;
propertyDefinition: string;
originalDefinition: string;
rawParamName: string;
isRequired: boolean;
/**
* Constructs a new ParameterPropertyInfo instance.
* @param propertyName The sanitized identifier name of the property (safe for use in TS function signatures).
* @param propertyDefinition The property definition using the sanitized name (e.g. `deployment_id?: string`).
* @param originalDefinition The property definition using the original (quoted) name for object type literals
* (e.g. `"deployment-id"?: string`). Defaults to `propertyDefinition` when the name needs no quoting.
* @param rawParamName The original (unsanitized) API parameter name (e.g. `"azureml-model-deployment"`).
* Used to emit the correct mapping key in params object literals. Defaults to `propertyName`.
* @param isRequired Whether this parameter is required (i.e. non-optional in the generated type).
* Stored as structured data to avoid brittle string-matching on `propertyDefinition`.
*/
constructor(propertyName: string, propertyDefinition: string, originalDefinition?: string, rawParamName?: string, isRequired?: boolean);
}
//# sourceMappingURL=parameterPropertyInfo.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"parameterPropertyInfo.d.ts","sourceRoot":"","sources":["../../src/Common/parameterPropertyInfo.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,qBAAa,qBAAqB;IAavB,YAAY,EAAE,MAAM;IACpB,kBAAkB,EAAE,MAAM;IAC1B,kBAAkB,EAAE,MAAM;IAC1B,YAAY,EAAE,MAAM;IACpB,UAAU,EAAE,OAAO;IAhB5B;;;;;;;;;;OAUG;gBAEM,YAAY,EAAE,MAAM,EACpB,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,GAAE,MAA2B,EAC/C,YAAY,GAAE,MAAqB,EACnC,UAAU,GAAE,OAAe;CAErC"}
@@ -0,0 +1,32 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
/*
* Parameter Info class for storing parameter property information
*/
export class ParameterPropertyInfo {
propertyName;
propertyDefinition;
originalDefinition;
rawParamName;
isRequired;
/**
* Constructs a new ParameterPropertyInfo instance.
* @param propertyName The sanitized identifier name of the property (safe for use in TS function signatures).
* @param propertyDefinition The property definition using the sanitized name (e.g. `deployment_id?: string`).
* @param originalDefinition The property definition using the original (quoted) name for object type literals
* (e.g. `"deployment-id"?: string`). Defaults to `propertyDefinition` when the name needs no quoting.
* @param rawParamName The original (unsanitized) API parameter name (e.g. `"azureml-model-deployment"`).
* Used to emit the correct mapping key in params object literals. Defaults to `propertyName`.
* @param isRequired Whether this parameter is required (i.e. non-optional in the generated type).
* Stored as structured data to avoid brittle string-matching on `propertyDefinition`.
*/
constructor(propertyName, propertyDefinition, originalDefinition = propertyDefinition, rawParamName = propertyName, isRequired = false) {
this.propertyName = propertyName;
this.propertyDefinition = propertyDefinition;
this.originalDefinition = originalDefinition;
this.rawParamName = rawParamName;
this.isRequired = isRequired;
}
}
//# sourceMappingURL=parameterPropertyInfo.js.map
@@ -0,0 +1 @@
{"version":3,"file":"parameterPropertyInfo.js","sourceRoot":"","sources":["../../src/Common/parameterPropertyInfo.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,OAAO,qBAAqB;IAavB;IACA;IACA;IACA;IACA;IAhBT;;;;;;;;;;OAUG;IACH,YACS,YAAoB,EACpB,kBAA0B,EAC1B,qBAA6B,kBAAkB,EAC/C,eAAuB,YAAY,EACnC,aAAsB,KAAK;QAJ3B,iBAAY,GAAZ,YAAY,CAAQ;QACpB,uBAAkB,GAAlB,kBAAkB,CAAQ;QAC1B,uBAAkB,GAAlB,kBAAkB,CAA6B;QAC/C,iBAAY,GAAZ,YAAY,CAAuB;QACnC,eAAU,GAAV,UAAU,CAAiB;IACjC,CAAC;CACL"}