@quantcdn/quant-client 4.10.0 → 4.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * QuantCDN API
5
5
  * Unified API for QuantCDN Admin and QuantCloud Platform services
6
6
  *
7
- * The version of the OpenAPI document: 4.10.0
7
+ * The version of the OpenAPI document: 4.11.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -649,6 +649,12 @@ export interface ChatInferenceRequest {
649
649
  * @memberof ChatInferenceRequest
650
650
  */
651
651
  'guardrails'?: ChatInferenceRequestGuardrails;
652
+ /**
653
+ * Enable 1M context window support regardless of token estimation. Use when sending large payloads (>200K tokens).
654
+ * @type {boolean}
655
+ * @memberof ChatInferenceRequest
656
+ */
657
+ 'longContext'?: boolean;
652
658
  }
653
659
  /**
654
660
  * AWS Bedrock guardrails configuration for content filtering and safety.
@@ -1093,6 +1099,12 @@ export interface ChatInferenceStreamRequest {
1093
1099
  * @memberof ChatInferenceStreamRequest
1094
1100
  */
1095
1101
  'guardrails'?: ChatInferenceRequestGuardrails;
1102
+ /**
1103
+ * Enable 1M context window support regardless of token estimation. Use when sending large payloads (>200K tokens).
1104
+ * @type {boolean}
1105
+ * @memberof ChatInferenceStreamRequest
1106
+ */
1107
+ 'longContext'?: boolean;
1096
1108
  }
1097
1109
  /**
1098
1110
  *
@@ -2413,6 +2425,12 @@ export interface CreateOrchestrationRequest {
2413
2425
  * @memberof CreateOrchestrationRequest
2414
2426
  */
2415
2427
  'assignedSkills'?: Array<string>;
2428
+ /**
2429
+ * Optional context merged into each item before processing (e.g. shared credentials or endpoints)
2430
+ * @type {object}
2431
+ * @memberof CreateOrchestrationRequest
2432
+ */
2433
+ 'context'?: object | null;
2416
2434
  /**
2417
2435
  * Whether to start immediately
2418
2436
  * @type {boolean}
@@ -6811,6 +6829,88 @@ export interface SyncToEnvironmentRequest {
6811
6829
  */
6812
6830
  'sourceEnvironment'?: string;
6813
6831
  }
6832
+ /**
6833
+ *
6834
+ * @export
6835
+ * @interface TokensCreate201Response
6836
+ */
6837
+ export interface TokensCreate201Response {
6838
+ /**
6839
+ * The plain text token (shown once)
6840
+ * @type {string}
6841
+ * @memberof TokensCreate201Response
6842
+ */
6843
+ 'token'?: string;
6844
+ /**
6845
+ *
6846
+ * @type {string}
6847
+ * @memberof TokensCreate201Response
6848
+ */
6849
+ 'name'?: string;
6850
+ /**
6851
+ *
6852
+ * @type {string}
6853
+ * @memberof TokensCreate201Response
6854
+ */
6855
+ 'created_at'?: string;
6856
+ }
6857
+ /**
6858
+ *
6859
+ * @export
6860
+ * @interface TokensCreateRequest
6861
+ */
6862
+ export interface TokensCreateRequest {
6863
+ /**
6864
+ * Name for the token
6865
+ * @type {string}
6866
+ * @memberof TokensCreateRequest
6867
+ */
6868
+ 'name': string;
6869
+ }
6870
+ /**
6871
+ *
6872
+ * @export
6873
+ * @interface TokensDelete200Response
6874
+ */
6875
+ export interface TokensDelete200Response {
6876
+ /**
6877
+ *
6878
+ * @type {string}
6879
+ * @memberof TokensDelete200Response
6880
+ */
6881
+ 'message'?: string;
6882
+ }
6883
+ /**
6884
+ *
6885
+ * @export
6886
+ * @interface TokensList200ResponseInner
6887
+ */
6888
+ export interface TokensList200ResponseInner {
6889
+ /**
6890
+ *
6891
+ * @type {number}
6892
+ * @memberof TokensList200ResponseInner
6893
+ */
6894
+ 'id'?: number;
6895
+ /**
6896
+ *
6897
+ * @type {string}
6898
+ * @memberof TokensList200ResponseInner
6899
+ */
6900
+ 'name'?: string;
6901
+ /**
6902
+ *
6903
+ * @type {string}
6904
+ * @memberof TokensList200ResponseInner
6905
+ */
6906
+ 'last_used'?: string | null;
6907
+ /**
6908
+ *
6909
+ * @type {string}
6910
+ * @memberof TokensList200ResponseInner
6911
+ */
6912
+ 'created_at'?: string;
6913
+ }
6814
6914
  /**
6815
6915
  *
6816
6916
  * @export
@@ -30482,6 +30582,280 @@ export class ScalingPolicyApi extends BaseAPI {
30482
30582
 
30483
30583
 
30484
30584
 
30585
+ /**
30586
+ * TokensApi - axios parameter creator
30587
+ * @export
30588
+ */
30589
+ export const TokensApiAxiosParamCreator = function (configuration?: Configuration) {
30590
+ return {
30591
+ /**
30592
+ *
30593
+ * @summary Create a new API token scoped to this organization
30594
+ * @param {string} organization Organization identifier
30595
+ * @param {TokensCreateRequest} tokensCreateRequest
30596
+ * @param {*} [options] Override http request option.
30597
+ * @throws {RequiredError}
30598
+ */
30599
+ tokensCreate: async (organization: string, tokensCreateRequest: TokensCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30600
+ // verify required parameter 'organization' is not null or undefined
30601
+ assertParamExists('tokensCreate', 'organization', organization)
30602
+ // verify required parameter 'tokensCreateRequest' is not null or undefined
30603
+ assertParamExists('tokensCreate', 'tokensCreateRequest', tokensCreateRequest)
30604
+ const localVarPath = `/api/v2/organizations/{organization}/tokens`
30605
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
30606
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30607
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30608
+ let baseOptions;
30609
+ if (configuration) {
30610
+ baseOptions = configuration.baseOptions;
30611
+ }
30612
+
30613
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30614
+ const localVarHeaderParameter = {} as any;
30615
+ const localVarQueryParameter = {} as any;
30616
+
30617
+ // authentication BearerAuth required
30618
+ // http bearer authentication required
30619
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
30620
+
30621
+
30622
+
30623
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30624
+
30625
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30626
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30627
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30628
+ localVarRequestOptions.data = serializeDataIfNeeded(tokensCreateRequest, localVarRequestOptions, configuration)
30629
+
30630
+ return {
30631
+ url: toPathString(localVarUrlObj),
30632
+ options: localVarRequestOptions,
30633
+ };
30634
+ },
30635
+ /**
30636
+ *
30637
+ * @summary Revoke an API token
30638
+ * @param {string} organization Organization identifier
30639
+ * @param {number} tokenId Token ID to revoke
30640
+ * @param {*} [options] Override http request option.
30641
+ * @throws {RequiredError}
30642
+ */
30643
+ tokensDelete: async (organization: string, tokenId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30644
+ // verify required parameter 'organization' is not null or undefined
30645
+ assertParamExists('tokensDelete', 'organization', organization)
30646
+ // verify required parameter 'tokenId' is not null or undefined
30647
+ assertParamExists('tokensDelete', 'tokenId', tokenId)
30648
+ const localVarPath = `/api/v2/organizations/{organization}/tokens/{token_id}`
30649
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
30650
+ .replace(`{${"token_id"}}`, encodeURIComponent(String(tokenId)));
30651
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30652
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30653
+ let baseOptions;
30654
+ if (configuration) {
30655
+ baseOptions = configuration.baseOptions;
30656
+ }
30657
+
30658
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
30659
+ const localVarHeaderParameter = {} as any;
30660
+ const localVarQueryParameter = {} as any;
30661
+
30662
+ // authentication BearerAuth required
30663
+ // http bearer authentication required
30664
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
30665
+
30666
+
30667
+
30668
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30669
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30670
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30671
+
30672
+ return {
30673
+ url: toPathString(localVarUrlObj),
30674
+ options: localVarRequestOptions,
30675
+ };
30676
+ },
30677
+ /**
30678
+ *
30679
+ * @summary List API tokens scoped to this organization
30680
+ * @param {string} organization Organization identifier
30681
+ * @param {*} [options] Override http request option.
30682
+ * @throws {RequiredError}
30683
+ */
30684
+ tokensList: async (organization: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30685
+ // verify required parameter 'organization' is not null or undefined
30686
+ assertParamExists('tokensList', 'organization', organization)
30687
+ const localVarPath = `/api/v2/organizations/{organization}/tokens`
30688
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
30689
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30690
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30691
+ let baseOptions;
30692
+ if (configuration) {
30693
+ baseOptions = configuration.baseOptions;
30694
+ }
30695
+
30696
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30697
+ const localVarHeaderParameter = {} as any;
30698
+ const localVarQueryParameter = {} as any;
30699
+
30700
+ // authentication BearerAuth required
30701
+ // http bearer authentication required
30702
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
30703
+
30704
+
30705
+
30706
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30707
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30708
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30709
+
30710
+ return {
30711
+ url: toPathString(localVarUrlObj),
30712
+ options: localVarRequestOptions,
30713
+ };
30714
+ },
30715
+ }
30716
+ };
30717
+
30718
+ /**
30719
+ * TokensApi - functional programming interface
30720
+ * @export
30721
+ */
30722
+ export const TokensApiFp = function(configuration?: Configuration) {
30723
+ const localVarAxiosParamCreator = TokensApiAxiosParamCreator(configuration)
30724
+ return {
30725
+ /**
30726
+ *
30727
+ * @summary Create a new API token scoped to this organization
30728
+ * @param {string} organization Organization identifier
30729
+ * @param {TokensCreateRequest} tokensCreateRequest
30730
+ * @param {*} [options] Override http request option.
30731
+ * @throws {RequiredError}
30732
+ */
30733
+ async tokensCreate(organization: string, tokensCreateRequest: TokensCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TokensCreate201Response>> {
30734
+ const localVarAxiosArgs = await localVarAxiosParamCreator.tokensCreate(organization, tokensCreateRequest, options);
30735
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30736
+ const localVarOperationServerBasePath = operationServerMap['TokensApi.tokensCreate']?.[localVarOperationServerIndex]?.url;
30737
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30738
+ },
30739
+ /**
30740
+ *
30741
+ * @summary Revoke an API token
30742
+ * @param {string} organization Organization identifier
30743
+ * @param {number} tokenId Token ID to revoke
30744
+ * @param {*} [options] Override http request option.
30745
+ * @throws {RequiredError}
30746
+ */
30747
+ async tokensDelete(organization: string, tokenId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TokensDelete200Response>> {
30748
+ const localVarAxiosArgs = await localVarAxiosParamCreator.tokensDelete(organization, tokenId, options);
30749
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30750
+ const localVarOperationServerBasePath = operationServerMap['TokensApi.tokensDelete']?.[localVarOperationServerIndex]?.url;
30751
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30752
+ },
30753
+ /**
30754
+ *
30755
+ * @summary List API tokens scoped to this organization
30756
+ * @param {string} organization Organization identifier
30757
+ * @param {*} [options] Override http request option.
30758
+ * @throws {RequiredError}
30759
+ */
30760
+ async tokensList(organization: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TokensList200ResponseInner>>> {
30761
+ const localVarAxiosArgs = await localVarAxiosParamCreator.tokensList(organization, options);
30762
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
30763
+ const localVarOperationServerBasePath = operationServerMap['TokensApi.tokensList']?.[localVarOperationServerIndex]?.url;
30764
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30765
+ },
30766
+ }
30767
+ };
30768
+
30769
+ /**
30770
+ * TokensApi - factory interface
30771
+ * @export
30772
+ */
30773
+ export const TokensApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30774
+ const localVarFp = TokensApiFp(configuration)
30775
+ return {
30776
+ /**
30777
+ *
30778
+ * @summary Create a new API token scoped to this organization
30779
+ * @param {string} organization Organization identifier
30780
+ * @param {TokensCreateRequest} tokensCreateRequest
30781
+ * @param {*} [options] Override http request option.
30782
+ * @throws {RequiredError}
30783
+ */
30784
+ tokensCreate(organization: string, tokensCreateRequest: TokensCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<TokensCreate201Response> {
30785
+ return localVarFp.tokensCreate(organization, tokensCreateRequest, options).then((request) => request(axios, basePath));
30786
+ },
30787
+ /**
30788
+ *
30789
+ * @summary Revoke an API token
30790
+ * @param {string} organization Organization identifier
30791
+ * @param {number} tokenId Token ID to revoke
30792
+ * @param {*} [options] Override http request option.
30793
+ * @throws {RequiredError}
30794
+ */
30795
+ tokensDelete(organization: string, tokenId: number, options?: RawAxiosRequestConfig): AxiosPromise<TokensDelete200Response> {
30796
+ return localVarFp.tokensDelete(organization, tokenId, options).then((request) => request(axios, basePath));
30797
+ },
30798
+ /**
30799
+ *
30800
+ * @summary List API tokens scoped to this organization
30801
+ * @param {string} organization Organization identifier
30802
+ * @param {*} [options] Override http request option.
30803
+ * @throws {RequiredError}
30804
+ */
30805
+ tokensList(organization: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<TokensList200ResponseInner>> {
30806
+ return localVarFp.tokensList(organization, options).then((request) => request(axios, basePath));
30807
+ },
30808
+ };
30809
+ };
30810
+
30811
+ /**
30812
+ * TokensApi - object-oriented interface
30813
+ * @export
30814
+ * @class TokensApi
30815
+ * @extends {BaseAPI}
30816
+ */
30817
+ export class TokensApi extends BaseAPI {
30818
+ /**
30819
+ *
30820
+ * @summary Create a new API token scoped to this organization
30821
+ * @param {string} organization Organization identifier
30822
+ * @param {TokensCreateRequest} tokensCreateRequest
30823
+ * @param {*} [options] Override http request option.
30824
+ * @throws {RequiredError}
30825
+ * @memberof TokensApi
30826
+ */
30827
+ public tokensCreate(organization: string, tokensCreateRequest: TokensCreateRequest, options?: RawAxiosRequestConfig) {
30828
+ return TokensApiFp(this.configuration).tokensCreate(organization, tokensCreateRequest, options).then((request) => request(this.axios, this.basePath));
30829
+ }
30830
+
30831
+ /**
30832
+ *
30833
+ * @summary Revoke an API token
30834
+ * @param {string} organization Organization identifier
30835
+ * @param {number} tokenId Token ID to revoke
30836
+ * @param {*} [options] Override http request option.
30837
+ * @throws {RequiredError}
30838
+ * @memberof TokensApi
30839
+ */
30840
+ public tokensDelete(organization: string, tokenId: number, options?: RawAxiosRequestConfig) {
30841
+ return TokensApiFp(this.configuration).tokensDelete(organization, tokenId, options).then((request) => request(this.axios, this.basePath));
30842
+ }
30843
+
30844
+ /**
30845
+ *
30846
+ * @summary List API tokens scoped to this organization
30847
+ * @param {string} organization Organization identifier
30848
+ * @param {*} [options] Override http request option.
30849
+ * @throws {RequiredError}
30850
+ * @memberof TokensApi
30851
+ */
30852
+ public tokensList(organization: string, options?: RawAxiosRequestConfig) {
30853
+ return TokensApiFp(this.configuration).tokensList(organization, options).then((request) => request(this.axios, this.basePath));
30854
+ }
30855
+ }
30856
+
30857
+
30858
+
30485
30859
  /**
30486
30860
  * VariablesApi - axios parameter creator
30487
30861
  * @export
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * QuantCDN API
5
5
  * Unified API for QuantCDN Admin and QuantCloud Platform services
6
6
  *
7
- * The version of the OpenAPI document: 4.10.0
7
+ * The version of the OpenAPI document: 4.11.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * QuantCDN API
5
5
  * Unified API for QuantCDN Admin and QuantCloud Platform services
6
6
  *
7
- * The version of the OpenAPI document: 4.10.0
7
+ * The version of the OpenAPI document: 4.11.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).