@quantcdn/quant-client 4.19.0 → 4.21.1

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.19.0
7
+ * The version of the OpenAPI document: 4.21.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -259,6 +259,12 @@ export interface Application {
259
259
  * @memberof Application
260
260
  */
261
261
  'filesystem'?: ApplicationFilesystem | null;
262
+ /**
263
+ *
264
+ * @type {ApplicationCache}
265
+ * @memberof Application
266
+ */
267
+ 'cache'?: ApplicationCache | null;
262
268
  /**
263
269
  *
264
270
  * @type {Compose}
@@ -320,6 +326,31 @@ export interface Application {
320
326
  */
321
327
  'environmentNames'?: Array<string> | null;
322
328
  }
329
+ /**
330
+ * Managed Valkey cache configuration
331
+ * @export
332
+ * @interface ApplicationCache
333
+ */
334
+ export interface ApplicationCache {
335
+ /**
336
+ * Cache cluster endpoint
337
+ * @type {string}
338
+ * @memberof ApplicationCache
339
+ */
340
+ 'cacheEndpoint'?: string | null;
341
+ /**
342
+ * Cache cluster identifier
343
+ * @type {string}
344
+ * @memberof ApplicationCache
345
+ */
346
+ 'cacheIdentifier'?: string | null;
347
+ /**
348
+ * Maximum cache storage in GB
349
+ * @type {number}
350
+ * @memberof ApplicationCache
351
+ */
352
+ 'dataStorageMaxGb'?: number | null;
353
+ }
323
354
  /**
324
355
  * Database configuration
325
356
  * @export
@@ -1628,6 +1659,18 @@ export interface Compose {
1628
1659
  * @memberof Compose
1629
1660
  */
1630
1661
  'maxCapacity'?: number;
1662
+ /**
1663
+ * Optional. Forces single-task mode for data-safe applications (max one running task). When true: capacity is locked to 1. When false: explicitly allows scaling. When omitted: the platform auto-detects stateful containers and enables single-task mode if found.
1664
+ * @type {boolean}
1665
+ * @memberof Compose
1666
+ */
1667
+ 'singleTaskOnly'?: boolean | null;
1668
+ /**
1669
+ * Optional. Seconds the load balancer waits after a task starts before an unhealthy health check can replace it (applied as the ECS service\'s healthCheckGracePeriodSeconds when a load balancer is attached). Raise for apps that are slow to boot, e.g. run migrations on startup. Tasks that become healthy sooner still enter service immediately. Defaults to 120 when omitted.
1670
+ * @type {number}
1671
+ * @memberof Compose
1672
+ */
1673
+ 'startupGracePeriodSeconds'?: number | null;
1631
1674
  /**
1632
1675
  *
1633
1676
  * @type {SpotConfiguration}
@@ -2397,7 +2440,13 @@ export interface CreateCommandRequest {
2397
2440
  * @type {string}
2398
2441
  * @memberof CreateCommandRequest
2399
2442
  */
2400
- 'command'?: string;
2443
+ 'command': string;
2444
+ /**
2445
+ * Target container (defaults to the first container in the task definition)
2446
+ * @type {string}
2447
+ * @memberof CreateCommandRequest
2448
+ */
2449
+ 'containerName'?: string | null;
2401
2450
  }
2402
2451
  /**
2403
2452
  *
@@ -2603,6 +2652,18 @@ export interface CreateEnvironmentRequest {
2603
2652
  * @memberof CreateEnvironmentRequest
2604
2653
  */
2605
2654
  'maxCapacity'?: number;
2655
+ /**
2656
+ * Optional. Forces single-task mode (max one running task). When omitted, the platform auto-detects stateful containers.
2657
+ * @type {boolean}
2658
+ * @memberof CreateEnvironmentRequest
2659
+ */
2660
+ 'singleTaskOnly'?: boolean | null;
2661
+ /**
2662
+ * Optional. Seconds the load balancer waits after a task starts before an unhealthy health check can replace it. If not set, the value from composeDefinition (or default 120) is used.
2663
+ * @type {number}
2664
+ * @memberof CreateEnvironmentRequest
2665
+ */
2666
+ 'startupGracePeriodSeconds'?: number | null;
2606
2667
  /**
2607
2668
  * Clone configuration from an existing environment
2608
2669
  * @type {string}
@@ -5499,6 +5560,24 @@ export interface GetGovernanceConfig200ResponseSpendLimits {
5499
5560
  * @memberof GetGovernanceConfig200ResponseSpendLimits
5500
5561
  */
5501
5562
  'userOverrides'?: { [key: string]: GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue; };
5563
+ /**
5564
+ * Flat monthly cap in cents applied to every API token without a named override
5565
+ * @type {number}
5566
+ * @memberof GetGovernanceConfig200ResponseSpendLimits
5567
+ */
5568
+ 'perTokenMonthlyBudgetCents'?: number | null;
5569
+ /**
5570
+ * Flat daily cap in cents applied to every API token without a named override
5571
+ * @type {number}
5572
+ * @memberof GetGovernanceConfig200ResponseSpendLimits
5573
+ */
5574
+ 'perTokenDailyBudgetCents'?: number | null;
5575
+ /**
5576
+ * Per-token budget overrides keyed by API token id. Replaces the flat per-token budget for that token; unlimited=true exempts it.
5577
+ * @type {{ [key: string]: GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue; }}
5578
+ * @memberof GetGovernanceConfig200ResponseSpendLimits
5579
+ */
5580
+ 'tokenOverrides'?: { [key: string]: GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue; };
5502
5581
  }
5503
5582
  /**
5504
5583
  *
@@ -8533,6 +8612,398 @@ export interface ListVectorCollections200ResponseCollectionsInner {
8533
8612
  */
8534
8613
  'createdAt'?: string;
8535
8614
  }
8615
+ /**
8616
+ *
8617
+ * @export
8618
+ * @interface OaiChatCompletions200Response
8619
+ */
8620
+ export interface OaiChatCompletions200Response {
8621
+ /**
8622
+ *
8623
+ * @type {string}
8624
+ * @memberof OaiChatCompletions200Response
8625
+ */
8626
+ 'id'?: string;
8627
+ /**
8628
+ *
8629
+ * @type {string}
8630
+ * @memberof OaiChatCompletions200Response
8631
+ */
8632
+ 'object'?: string;
8633
+ /**
8634
+ *
8635
+ * @type {number}
8636
+ * @memberof OaiChatCompletions200Response
8637
+ */
8638
+ 'created'?: number;
8639
+ /**
8640
+ *
8641
+ * @type {string}
8642
+ * @memberof OaiChatCompletions200Response
8643
+ */
8644
+ 'model'?: string;
8645
+ /**
8646
+ *
8647
+ * @type {Array<OaiChatCompletions200ResponseChoicesInner>}
8648
+ * @memberof OaiChatCompletions200Response
8649
+ */
8650
+ 'choices'?: Array<OaiChatCompletions200ResponseChoicesInner>;
8651
+ /**
8652
+ *
8653
+ * @type {OaiChatCompletions200ResponseUsage}
8654
+ * @memberof OaiChatCompletions200Response
8655
+ */
8656
+ 'usage'?: OaiChatCompletions200ResponseUsage;
8657
+ }
8658
+ /**
8659
+ *
8660
+ * @export
8661
+ * @interface OaiChatCompletions200ResponseChoicesInner
8662
+ */
8663
+ export interface OaiChatCompletions200ResponseChoicesInner {
8664
+ /**
8665
+ *
8666
+ * @type {number}
8667
+ * @memberof OaiChatCompletions200ResponseChoicesInner
8668
+ */
8669
+ 'index'?: number;
8670
+ /**
8671
+ *
8672
+ * @type {OaiChatCompletions200ResponseChoicesInnerMessage}
8673
+ * @memberof OaiChatCompletions200ResponseChoicesInner
8674
+ */
8675
+ 'message'?: OaiChatCompletions200ResponseChoicesInnerMessage;
8676
+ /**
8677
+ *
8678
+ * @type {string}
8679
+ * @memberof OaiChatCompletions200ResponseChoicesInner
8680
+ */
8681
+ 'finish_reason'?: OaiChatCompletions200ResponseChoicesInnerFinishReasonEnum;
8682
+ }
8683
+
8684
+ export const OaiChatCompletions200ResponseChoicesInnerFinishReasonEnum = {
8685
+ Stop: 'stop',
8686
+ ToolCalls: 'tool_calls',
8687
+ Length: 'length'
8688
+ } as const;
8689
+
8690
+ export type OaiChatCompletions200ResponseChoicesInnerFinishReasonEnum = typeof OaiChatCompletions200ResponseChoicesInnerFinishReasonEnum[keyof typeof OaiChatCompletions200ResponseChoicesInnerFinishReasonEnum];
8691
+
8692
+ /**
8693
+ *
8694
+ * @export
8695
+ * @interface OaiChatCompletions200ResponseChoicesInnerMessage
8696
+ */
8697
+ export interface OaiChatCompletions200ResponseChoicesInnerMessage {
8698
+ /**
8699
+ *
8700
+ * @type {string}
8701
+ * @memberof OaiChatCompletions200ResponseChoicesInnerMessage
8702
+ */
8703
+ 'role'?: string;
8704
+ /**
8705
+ *
8706
+ * @type {string}
8707
+ * @memberof OaiChatCompletions200ResponseChoicesInnerMessage
8708
+ */
8709
+ 'content'?: string | null;
8710
+ /**
8711
+ *
8712
+ * @type {Array<object>}
8713
+ * @memberof OaiChatCompletions200ResponseChoicesInnerMessage
8714
+ */
8715
+ 'tool_calls'?: Array<object>;
8716
+ }
8717
+ /**
8718
+ *
8719
+ * @export
8720
+ * @interface OaiChatCompletions200ResponseUsage
8721
+ */
8722
+ export interface OaiChatCompletions200ResponseUsage {
8723
+ /**
8724
+ *
8725
+ * @type {number}
8726
+ * @memberof OaiChatCompletions200ResponseUsage
8727
+ */
8728
+ 'prompt_tokens'?: number;
8729
+ /**
8730
+ *
8731
+ * @type {number}
8732
+ * @memberof OaiChatCompletions200ResponseUsage
8733
+ */
8734
+ 'completion_tokens'?: number;
8735
+ /**
8736
+ *
8737
+ * @type {number}
8738
+ * @memberof OaiChatCompletions200ResponseUsage
8739
+ */
8740
+ 'total_tokens'?: number;
8741
+ }
8742
+ /**
8743
+ *
8744
+ * @export
8745
+ * @interface OaiChatCompletionsRequest
8746
+ */
8747
+ export interface OaiChatCompletionsRequest {
8748
+ /**
8749
+ * A model id from GET /oai/v1/models
8750
+ * @type {string}
8751
+ * @memberof OaiChatCompletionsRequest
8752
+ */
8753
+ 'model': string;
8754
+ /**
8755
+ *
8756
+ * @type {Array<OaiChatCompletionsRequestMessagesInner>}
8757
+ * @memberof OaiChatCompletionsRequest
8758
+ */
8759
+ 'messages': Array<OaiChatCompletionsRequestMessagesInner>;
8760
+ /**
8761
+ * Stream the response as SSE chat.completion.chunk events
8762
+ * @type {boolean}
8763
+ * @memberof OaiChatCompletionsRequest
8764
+ */
8765
+ 'stream'?: boolean;
8766
+ /**
8767
+ *
8768
+ * @type {number}
8769
+ * @memberof OaiChatCompletionsRequest
8770
+ */
8771
+ 'max_tokens'?: number;
8772
+ /**
8773
+ *
8774
+ * @type {number}
8775
+ * @memberof OaiChatCompletionsRequest
8776
+ */
8777
+ 'temperature'?: number;
8778
+ /**
8779
+ *
8780
+ * @type {number}
8781
+ * @memberof OaiChatCompletionsRequest
8782
+ */
8783
+ 'top_p'?: number;
8784
+ /**
8785
+ * OpenAI function tool definitions
8786
+ * @type {Array<object>}
8787
+ * @memberof OaiChatCompletionsRequest
8788
+ */
8789
+ 'tools'?: Array<object>;
8790
+ /**
8791
+ * auto | none | required | {type:function, function:{name}}
8792
+ * @type {any}
8793
+ * @memberof OaiChatCompletionsRequest
8794
+ */
8795
+ 'tool_choice'?: any;
8796
+ /**
8797
+ * {include_usage: true} to emit a final usage chunk when streaming
8798
+ * @type {object}
8799
+ * @memberof OaiChatCompletionsRequest
8800
+ */
8801
+ 'stream_options'?: object;
8802
+ }
8803
+ /**
8804
+ *
8805
+ * @export
8806
+ * @interface OaiChatCompletionsRequestMessagesInner
8807
+ */
8808
+ export interface OaiChatCompletionsRequestMessagesInner {
8809
+ /**
8810
+ *
8811
+ * @type {string}
8812
+ * @memberof OaiChatCompletionsRequestMessagesInner
8813
+ */
8814
+ 'role'?: OaiChatCompletionsRequestMessagesInnerRoleEnum;
8815
+ /**
8816
+ *
8817
+ * @type {string}
8818
+ * @memberof OaiChatCompletionsRequestMessagesInner
8819
+ */
8820
+ 'content'?: string;
8821
+ }
8822
+
8823
+ export const OaiChatCompletionsRequestMessagesInnerRoleEnum = {
8824
+ System: 'system',
8825
+ User: 'user',
8826
+ Assistant: 'assistant',
8827
+ Tool: 'tool'
8828
+ } as const;
8829
+
8830
+ export type OaiChatCompletionsRequestMessagesInnerRoleEnum = typeof OaiChatCompletionsRequestMessagesInnerRoleEnum[keyof typeof OaiChatCompletionsRequestMessagesInnerRoleEnum];
8831
+
8832
+ /**
8833
+ *
8834
+ * @export
8835
+ * @interface OaiEmbeddings200Response
8836
+ */
8837
+ export interface OaiEmbeddings200Response {
8838
+ /**
8839
+ *
8840
+ * @type {string}
8841
+ * @memberof OaiEmbeddings200Response
8842
+ */
8843
+ 'object'?: string;
8844
+ /**
8845
+ *
8846
+ * @type {Array<OaiEmbeddings200ResponseDataInner>}
8847
+ * @memberof OaiEmbeddings200Response
8848
+ */
8849
+ 'data'?: Array<OaiEmbeddings200ResponseDataInner>;
8850
+ /**
8851
+ *
8852
+ * @type {string}
8853
+ * @memberof OaiEmbeddings200Response
8854
+ */
8855
+ 'model'?: string;
8856
+ /**
8857
+ *
8858
+ * @type {OaiEmbeddings200ResponseUsage}
8859
+ * @memberof OaiEmbeddings200Response
8860
+ */
8861
+ 'usage'?: OaiEmbeddings200ResponseUsage;
8862
+ }
8863
+ /**
8864
+ *
8865
+ * @export
8866
+ * @interface OaiEmbeddings200ResponseDataInner
8867
+ */
8868
+ export interface OaiEmbeddings200ResponseDataInner {
8869
+ /**
8870
+ *
8871
+ * @type {string}
8872
+ * @memberof OaiEmbeddings200ResponseDataInner
8873
+ */
8874
+ 'object'?: string;
8875
+ /**
8876
+ *
8877
+ * @type {number}
8878
+ * @memberof OaiEmbeddings200ResponseDataInner
8879
+ */
8880
+ 'index'?: number;
8881
+ /**
8882
+ *
8883
+ * @type {Array<number>}
8884
+ * @memberof OaiEmbeddings200ResponseDataInner
8885
+ */
8886
+ 'embedding'?: Array<number>;
8887
+ }
8888
+ /**
8889
+ *
8890
+ * @export
8891
+ * @interface OaiEmbeddings200ResponseUsage
8892
+ */
8893
+ export interface OaiEmbeddings200ResponseUsage {
8894
+ /**
8895
+ *
8896
+ * @type {number}
8897
+ * @memberof OaiEmbeddings200ResponseUsage
8898
+ */
8899
+ 'prompt_tokens'?: number;
8900
+ /**
8901
+ *
8902
+ * @type {number}
8903
+ * @memberof OaiEmbeddings200ResponseUsage
8904
+ */
8905
+ 'total_tokens'?: number;
8906
+ }
8907
+ /**
8908
+ *
8909
+ * @export
8910
+ * @interface OaiEmbeddingsRequest
8911
+ */
8912
+ export interface OaiEmbeddingsRequest {
8913
+ /**
8914
+ *
8915
+ * @type {string}
8916
+ * @memberof OaiEmbeddingsRequest
8917
+ */
8918
+ 'model': string;
8919
+ /**
8920
+ * A string or array of strings to embed
8921
+ * @type {any}
8922
+ * @memberof OaiEmbeddingsRequest
8923
+ */
8924
+ 'input': any;
8925
+ }
8926
+ /**
8927
+ *
8928
+ * @export
8929
+ * @interface OaiGetModel200Response
8930
+ */
8931
+ export interface OaiGetModel200Response {
8932
+ /**
8933
+ *
8934
+ * @type {string}
8935
+ * @memberof OaiGetModel200Response
8936
+ */
8937
+ 'id'?: string;
8938
+ /**
8939
+ *
8940
+ * @type {string}
8941
+ * @memberof OaiGetModel200Response
8942
+ */
8943
+ 'object'?: string;
8944
+ /**
8945
+ *
8946
+ * @type {number}
8947
+ * @memberof OaiGetModel200Response
8948
+ */
8949
+ 'created'?: number;
8950
+ /**
8951
+ *
8952
+ * @type {string}
8953
+ * @memberof OaiGetModel200Response
8954
+ */
8955
+ 'owned_by'?: string;
8956
+ }
8957
+ /**
8958
+ *
8959
+ * @export
8960
+ * @interface OaiListModels200Response
8961
+ */
8962
+ export interface OaiListModels200Response {
8963
+ /**
8964
+ *
8965
+ * @type {string}
8966
+ * @memberof OaiListModels200Response
8967
+ */
8968
+ 'object'?: string;
8969
+ /**
8970
+ *
8971
+ * @type {Array<OaiListModels200ResponseDataInner>}
8972
+ * @memberof OaiListModels200Response
8973
+ */
8974
+ 'data'?: Array<OaiListModels200ResponseDataInner>;
8975
+ }
8976
+ /**
8977
+ *
8978
+ * @export
8979
+ * @interface OaiListModels200ResponseDataInner
8980
+ */
8981
+ export interface OaiListModels200ResponseDataInner {
8982
+ /**
8983
+ *
8984
+ * @type {string}
8985
+ * @memberof OaiListModels200ResponseDataInner
8986
+ */
8987
+ 'id'?: string;
8988
+ /**
8989
+ *
8990
+ * @type {string}
8991
+ * @memberof OaiListModels200ResponseDataInner
8992
+ */
8993
+ 'object'?: string;
8994
+ /**
8995
+ *
8996
+ * @type {number}
8997
+ * @memberof OaiListModels200ResponseDataInner
8998
+ */
8999
+ 'created'?: number;
9000
+ /**
9001
+ *
9002
+ * @type {string}
9003
+ * @memberof OaiListModels200ResponseDataInner
9004
+ */
9005
+ 'owned_by'?: string;
9006
+ }
8536
9007
  /**
8537
9008
  *
8538
9009
  * @export
@@ -8687,6 +9158,18 @@ export interface PatchEnvironmentComposeRequest {
8687
9158
  * @memberof PatchEnvironmentComposeRequest
8688
9159
  */
8689
9160
  'maxCapacity'?: number | null;
9161
+ /**
9162
+ * Forces single-task mode (max one running task). Omitted = auto-detect from stateful containers.
9163
+ * @type {boolean}
9164
+ * @memberof PatchEnvironmentComposeRequest
9165
+ */
9166
+ 'singleTaskOnly'?: boolean | null;
9167
+ /**
9168
+ * Seconds the load balancer waits after a task starts before an unhealthy health check can replace it. Default 120.
9169
+ * @type {number}
9170
+ * @memberof PatchEnvironmentComposeRequest
9171
+ */
9172
+ 'startupGracePeriodSeconds'?: number | null;
8690
9173
  /**
8691
9174
  *
8692
9175
  * @type {Array<object>}
@@ -27762,20 +28245,24 @@ export const CommandsApiAxiosParamCreator = function (configuration?: Configurat
27762
28245
  *
27763
28246
  * @summary Create a command for an environment
27764
28247
  * @param {string} organisation The organisation ID
28248
+ * @param {string} application The application ID
27765
28249
  * @param {string} environment The environment ID
27766
28250
  * @param {CreateCommandRequest} createCommandRequest
27767
28251
  * @param {*} [options] Override http request option.
27768
28252
  * @throws {RequiredError}
27769
28253
  */
27770
- createCommand: async (organisation: string, environment: string, createCommandRequest: CreateCommandRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28254
+ createCommand: async (organisation: string, application: string, environment: string, createCommandRequest: CreateCommandRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27771
28255
  // verify required parameter 'organisation' is not null or undefined
27772
28256
  assertParamExists('createCommand', 'organisation', organisation)
28257
+ // verify required parameter 'application' is not null or undefined
28258
+ assertParamExists('createCommand', 'application', application)
27773
28259
  // verify required parameter 'environment' is not null or undefined
27774
28260
  assertParamExists('createCommand', 'environment', environment)
27775
28261
  // verify required parameter 'createCommandRequest' is not null or undefined
27776
28262
  assertParamExists('createCommand', 'createCommandRequest', createCommandRequest)
27777
- const localVarPath = `/api/v3/organizations/{organisation}/environments/{environment}/commands`
28263
+ const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/commands`
27778
28264
  .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
28265
+ .replace(`{${"application"}}`, encodeURIComponent(String(application)))
27779
28266
  .replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
27780
28267
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27781
28268
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -27810,20 +28297,24 @@ export const CommandsApiAxiosParamCreator = function (configuration?: Configurat
27810
28297
  *
27811
28298
  * @summary Get a command
27812
28299
  * @param {string} organisation The organisation ID
28300
+ * @param {string} application The application ID
27813
28301
  * @param {string} environment The environment ID
27814
- * @param {string} command The command ID
28302
+ * @param {string} command The command run ID
27815
28303
  * @param {*} [options] Override http request option.
27816
28304
  * @throws {RequiredError}
27817
28305
  */
27818
- getCommand: async (organisation: string, environment: string, command: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28306
+ getCommand: async (organisation: string, application: string, environment: string, command: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27819
28307
  // verify required parameter 'organisation' is not null or undefined
27820
28308
  assertParamExists('getCommand', 'organisation', organisation)
28309
+ // verify required parameter 'application' is not null or undefined
28310
+ assertParamExists('getCommand', 'application', application)
27821
28311
  // verify required parameter 'environment' is not null or undefined
27822
28312
  assertParamExists('getCommand', 'environment', environment)
27823
28313
  // verify required parameter 'command' is not null or undefined
27824
28314
  assertParamExists('getCommand', 'command', command)
27825
- const localVarPath = `/api/v3/organizations/{organisation}/environments/{environment}/commands/{command}`
28315
+ const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/commands/{command}`
27826
28316
  .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
28317
+ .replace(`{${"application"}}`, encodeURIComponent(String(application)))
27827
28318
  .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
27828
28319
  .replace(`{${"command"}}`, encodeURIComponent(String(command)));
27829
28320
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -27856,17 +28347,21 @@ export const CommandsApiAxiosParamCreator = function (configuration?: Configurat
27856
28347
  *
27857
28348
  * @summary Get all commands for an environment
27858
28349
  * @param {string} organisation The organisation ID
28350
+ * @param {string} application The application ID
27859
28351
  * @param {string} environment The environment ID
27860
28352
  * @param {*} [options] Override http request option.
27861
28353
  * @throws {RequiredError}
27862
28354
  */
27863
- listCommands: async (organisation: string, environment: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28355
+ listCommands: async (organisation: string, application: string, environment: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27864
28356
  // verify required parameter 'organisation' is not null or undefined
27865
28357
  assertParamExists('listCommands', 'organisation', organisation)
28358
+ // verify required parameter 'application' is not null or undefined
28359
+ assertParamExists('listCommands', 'application', application)
27866
28360
  // verify required parameter 'environment' is not null or undefined
27867
28361
  assertParamExists('listCommands', 'environment', environment)
27868
- const localVarPath = `/api/v3/organizations/{organisation}/environments/{environment}/commands`
28362
+ const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/commands`
27869
28363
  .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
28364
+ .replace(`{${"application"}}`, encodeURIComponent(String(application)))
27870
28365
  .replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
27871
28366
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27872
28367
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -27908,13 +28403,14 @@ export const CommandsApiFp = function(configuration?: Configuration) {
27908
28403
  *
27909
28404
  * @summary Create a command for an environment
27910
28405
  * @param {string} organisation The organisation ID
28406
+ * @param {string} application The application ID
27911
28407
  * @param {string} environment The environment ID
27912
28408
  * @param {CreateCommandRequest} createCommandRequest
27913
28409
  * @param {*} [options] Override http request option.
27914
28410
  * @throws {RequiredError}
27915
28411
  */
27916
- async createCommand(organisation: string, environment: string, createCommandRequest: CreateCommandRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Command>> {
27917
- const localVarAxiosArgs = await localVarAxiosParamCreator.createCommand(organisation, environment, createCommandRequest, options);
28412
+ async createCommand(organisation: string, application: string, environment: string, createCommandRequest: CreateCommandRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Command>> {
28413
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCommand(organisation, application, environment, createCommandRequest, options);
27918
28414
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27919
28415
  const localVarOperationServerBasePath = operationServerMap['CommandsApi.createCommand']?.[localVarOperationServerIndex]?.url;
27920
28416
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -27923,13 +28419,14 @@ export const CommandsApiFp = function(configuration?: Configuration) {
27923
28419
  *
27924
28420
  * @summary Get a command
27925
28421
  * @param {string} organisation The organisation ID
28422
+ * @param {string} application The application ID
27926
28423
  * @param {string} environment The environment ID
27927
- * @param {string} command The command ID
28424
+ * @param {string} command The command run ID
27928
28425
  * @param {*} [options] Override http request option.
27929
28426
  * @throws {RequiredError}
27930
28427
  */
27931
- async getCommand(organisation: string, environment: string, command: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Command>> {
27932
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCommand(organisation, environment, command, options);
28428
+ async getCommand(organisation: string, application: string, environment: string, command: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Command>> {
28429
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCommand(organisation, application, environment, command, options);
27933
28430
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27934
28431
  const localVarOperationServerBasePath = operationServerMap['CommandsApi.getCommand']?.[localVarOperationServerIndex]?.url;
27935
28432
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -27938,12 +28435,13 @@ export const CommandsApiFp = function(configuration?: Configuration) {
27938
28435
  *
27939
28436
  * @summary Get all commands for an environment
27940
28437
  * @param {string} organisation The organisation ID
28438
+ * @param {string} application The application ID
27941
28439
  * @param {string} environment The environment ID
27942
28440
  * @param {*} [options] Override http request option.
27943
28441
  * @throws {RequiredError}
27944
28442
  */
27945
- async listCommands(organisation: string, environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Command>> {
27946
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCommands(organisation, environment, options);
28443
+ async listCommands(organisation: string, application: string, environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
28444
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommands(organisation, application, environment, options);
27947
28445
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27948
28446
  const localVarOperationServerBasePath = operationServerMap['CommandsApi.listCommands']?.[localVarOperationServerIndex]?.url;
27949
28447
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -27962,36 +28460,39 @@ export const CommandsApiFactory = function (configuration?: Configuration, baseP
27962
28460
  *
27963
28461
  * @summary Create a command for an environment
27964
28462
  * @param {string} organisation The organisation ID
28463
+ * @param {string} application The application ID
27965
28464
  * @param {string} environment The environment ID
27966
28465
  * @param {CreateCommandRequest} createCommandRequest
27967
28466
  * @param {*} [options] Override http request option.
27968
28467
  * @throws {RequiredError}
27969
28468
  */
27970
- createCommand(organisation: string, environment: string, createCommandRequest: CreateCommandRequest, options?: RawAxiosRequestConfig): AxiosPromise<Command> {
27971
- return localVarFp.createCommand(organisation, environment, createCommandRequest, options).then((request) => request(axios, basePath));
28469
+ createCommand(organisation: string, application: string, environment: string, createCommandRequest: CreateCommandRequest, options?: RawAxiosRequestConfig): AxiosPromise<Command> {
28470
+ return localVarFp.createCommand(organisation, application, environment, createCommandRequest, options).then((request) => request(axios, basePath));
27972
28471
  },
27973
28472
  /**
27974
28473
  *
27975
28474
  * @summary Get a command
27976
28475
  * @param {string} organisation The organisation ID
28476
+ * @param {string} application The application ID
27977
28477
  * @param {string} environment The environment ID
27978
- * @param {string} command The command ID
28478
+ * @param {string} command The command run ID
27979
28479
  * @param {*} [options] Override http request option.
27980
28480
  * @throws {RequiredError}
27981
28481
  */
27982
- getCommand(organisation: string, environment: string, command: string, options?: RawAxiosRequestConfig): AxiosPromise<Command> {
27983
- return localVarFp.getCommand(organisation, environment, command, options).then((request) => request(axios, basePath));
28482
+ getCommand(organisation: string, application: string, environment: string, command: string, options?: RawAxiosRequestConfig): AxiosPromise<Command> {
28483
+ return localVarFp.getCommand(organisation, application, environment, command, options).then((request) => request(axios, basePath));
27984
28484
  },
27985
28485
  /**
27986
28486
  *
27987
28487
  * @summary Get all commands for an environment
27988
28488
  * @param {string} organisation The organisation ID
28489
+ * @param {string} application The application ID
27989
28490
  * @param {string} environment The environment ID
27990
28491
  * @param {*} [options] Override http request option.
27991
28492
  * @throws {RequiredError}
27992
28493
  */
27993
- listCommands(organisation: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise<Command> {
27994
- return localVarFp.listCommands(organisation, environment, options).then((request) => request(axios, basePath));
28494
+ listCommands(organisation: string, application: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
28495
+ return localVarFp.listCommands(organisation, application, environment, options).then((request) => request(axios, basePath));
27995
28496
  },
27996
28497
  };
27997
28498
  };
@@ -28007,41 +28508,44 @@ export class CommandsApi extends BaseAPI {
28007
28508
  *
28008
28509
  * @summary Create a command for an environment
28009
28510
  * @param {string} organisation The organisation ID
28511
+ * @param {string} application The application ID
28010
28512
  * @param {string} environment The environment ID
28011
28513
  * @param {CreateCommandRequest} createCommandRequest
28012
28514
  * @param {*} [options] Override http request option.
28013
28515
  * @throws {RequiredError}
28014
28516
  * @memberof CommandsApi
28015
28517
  */
28016
- public createCommand(organisation: string, environment: string, createCommandRequest: CreateCommandRequest, options?: RawAxiosRequestConfig) {
28017
- return CommandsApiFp(this.configuration).createCommand(organisation, environment, createCommandRequest, options).then((request) => request(this.axios, this.basePath));
28518
+ public createCommand(organisation: string, application: string, environment: string, createCommandRequest: CreateCommandRequest, options?: RawAxiosRequestConfig) {
28519
+ return CommandsApiFp(this.configuration).createCommand(organisation, application, environment, createCommandRequest, options).then((request) => request(this.axios, this.basePath));
28018
28520
  }
28019
28521
 
28020
28522
  /**
28021
28523
  *
28022
28524
  * @summary Get a command
28023
28525
  * @param {string} organisation The organisation ID
28526
+ * @param {string} application The application ID
28024
28527
  * @param {string} environment The environment ID
28025
- * @param {string} command The command ID
28528
+ * @param {string} command The command run ID
28026
28529
  * @param {*} [options] Override http request option.
28027
28530
  * @throws {RequiredError}
28028
28531
  * @memberof CommandsApi
28029
28532
  */
28030
- public getCommand(organisation: string, environment: string, command: string, options?: RawAxiosRequestConfig) {
28031
- return CommandsApiFp(this.configuration).getCommand(organisation, environment, command, options).then((request) => request(this.axios, this.basePath));
28533
+ public getCommand(organisation: string, application: string, environment: string, command: string, options?: RawAxiosRequestConfig) {
28534
+ return CommandsApiFp(this.configuration).getCommand(organisation, application, environment, command, options).then((request) => request(this.axios, this.basePath));
28032
28535
  }
28033
28536
 
28034
28537
  /**
28035
28538
  *
28036
28539
  * @summary Get all commands for an environment
28037
28540
  * @param {string} organisation The organisation ID
28541
+ * @param {string} application The application ID
28038
28542
  * @param {string} environment The environment ID
28039
28543
  * @param {*} [options] Override http request option.
28040
28544
  * @throws {RequiredError}
28041
28545
  * @memberof CommandsApi
28042
28546
  */
28043
- public listCommands(organisation: string, environment: string, options?: RawAxiosRequestConfig) {
28044
- return CommandsApiFp(this.configuration).listCommands(organisation, environment, options).then((request) => request(this.axios, this.basePath));
28547
+ public listCommands(organisation: string, application: string, environment: string, options?: RawAxiosRequestConfig) {
28548
+ return CommandsApiFp(this.configuration).listCommands(organisation, application, environment, options).then((request) => request(this.axios, this.basePath));
28045
28549
  }
28046
28550
  }
28047
28551
 
@@ -33448,6 +33952,334 @@ export class KVApi extends BaseAPI {
33448
33952
 
33449
33953
 
33450
33954
 
33955
+ /**
33956
+ * OpenAICompatibilityApi - axios parameter creator
33957
+ * @export
33958
+ */
33959
+ export const OpenAICompatibilityApiAxiosParamCreator = function (configuration?: Configuration) {
33960
+ return {
33961
+ /**
33962
+ * Drop-in replacement for OpenAI\'s POST /v1/chat/completions. Point any OpenAI SDK at base_url=https://<host>/oai/v1 and use a Quant API token (qc_...) as the api_key. Set `stream: true` to receive Server-Sent Events (chat.completion.chunk objects terminated by `data: [DONE]`); otherwise a single chat.completion object is returned. Supports tool/function calling and the standard tool_choice modes.
33963
+ * @summary Create a chat completion (OpenAI-compatible)
33964
+ * @param {OaiChatCompletionsRequest} oaiChatCompletionsRequest
33965
+ * @param {*} [options] Override http request option.
33966
+ * @throws {RequiredError}
33967
+ */
33968
+ oaiChatCompletions: async (oaiChatCompletionsRequest: OaiChatCompletionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33969
+ // verify required parameter 'oaiChatCompletionsRequest' is not null or undefined
33970
+ assertParamExists('oaiChatCompletions', 'oaiChatCompletionsRequest', oaiChatCompletionsRequest)
33971
+ const localVarPath = `/oai/v1/chat/completions`;
33972
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33973
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33974
+ let baseOptions;
33975
+ if (configuration) {
33976
+ baseOptions = configuration.baseOptions;
33977
+ }
33978
+
33979
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
33980
+ const localVarHeaderParameter = {} as any;
33981
+ const localVarQueryParameter = {} as any;
33982
+
33983
+ // authentication BearerAuth required
33984
+ // http bearer authentication required
33985
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33986
+
33987
+
33988
+
33989
+ localVarHeaderParameter['Content-Type'] = 'application/json';
33990
+
33991
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33992
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33993
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33994
+ localVarRequestOptions.data = serializeDataIfNeeded(oaiChatCompletionsRequest, localVarRequestOptions, configuration)
33995
+
33996
+ return {
33997
+ url: toPathString(localVarUrlObj),
33998
+ options: localVarRequestOptions,
33999
+ };
34000
+ },
34001
+ /**
34002
+ * Drop-in replacement for OpenAI\'s POST /v1/embeddings. Accepts a single string or an array of strings in `input` and returns a list of embedding objects.
34003
+ * @summary Create embeddings (OpenAI-compatible)
34004
+ * @param {OaiEmbeddingsRequest} oaiEmbeddingsRequest
34005
+ * @param {*} [options] Override http request option.
34006
+ * @throws {RequiredError}
34007
+ */
34008
+ oaiEmbeddings: async (oaiEmbeddingsRequest: OaiEmbeddingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
34009
+ // verify required parameter 'oaiEmbeddingsRequest' is not null or undefined
34010
+ assertParamExists('oaiEmbeddings', 'oaiEmbeddingsRequest', oaiEmbeddingsRequest)
34011
+ const localVarPath = `/oai/v1/embeddings`;
34012
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34013
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34014
+ let baseOptions;
34015
+ if (configuration) {
34016
+ baseOptions = configuration.baseOptions;
34017
+ }
34018
+
34019
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
34020
+ const localVarHeaderParameter = {} as any;
34021
+ const localVarQueryParameter = {} as any;
34022
+
34023
+ // authentication BearerAuth required
34024
+ // http bearer authentication required
34025
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34026
+
34027
+
34028
+
34029
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34030
+
34031
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34032
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34033
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34034
+ localVarRequestOptions.data = serializeDataIfNeeded(oaiEmbeddingsRequest, localVarRequestOptions, configuration)
34035
+
34036
+ return {
34037
+ url: toPathString(localVarUrlObj),
34038
+ options: localVarRequestOptions,
34039
+ };
34040
+ },
34041
+ /**
34042
+ * Drop-in replacement for OpenAI\'s GET /v1/models/{model}.
34043
+ * @summary Retrieve a model (OpenAI-compatible)
34044
+ * @param {string} model
34045
+ * @param {*} [options] Override http request option.
34046
+ * @throws {RequiredError}
34047
+ */
34048
+ oaiGetModel: async (model: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
34049
+ // verify required parameter 'model' is not null or undefined
34050
+ assertParamExists('oaiGetModel', 'model', model)
34051
+ const localVarPath = `/oai/v1/models/{model}`
34052
+ .replace(`{${"model"}}`, encodeURIComponent(String(model)));
34053
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34054
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34055
+ let baseOptions;
34056
+ if (configuration) {
34057
+ baseOptions = configuration.baseOptions;
34058
+ }
34059
+
34060
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34061
+ const localVarHeaderParameter = {} as any;
34062
+ const localVarQueryParameter = {} as any;
34063
+
34064
+ // authentication BearerAuth required
34065
+ // http bearer authentication required
34066
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34067
+
34068
+
34069
+
34070
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34071
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34072
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34073
+
34074
+ return {
34075
+ url: toPathString(localVarUrlObj),
34076
+ options: localVarRequestOptions,
34077
+ };
34078
+ },
34079
+ /**
34080
+ * Drop-in replacement for OpenAI\'s GET /v1/models. Returns the model ids available to the organisation; pass one of these ids as `model` in chat/embeddings requests.
34081
+ * @summary List available models (OpenAI-compatible)
34082
+ * @param {*} [options] Override http request option.
34083
+ * @throws {RequiredError}
34084
+ */
34085
+ oaiListModels: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
34086
+ const localVarPath = `/oai/v1/models`;
34087
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34088
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34089
+ let baseOptions;
34090
+ if (configuration) {
34091
+ baseOptions = configuration.baseOptions;
34092
+ }
34093
+
34094
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34095
+ const localVarHeaderParameter = {} as any;
34096
+ const localVarQueryParameter = {} as any;
34097
+
34098
+ // authentication BearerAuth required
34099
+ // http bearer authentication required
34100
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34101
+
34102
+
34103
+
34104
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34105
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34106
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34107
+
34108
+ return {
34109
+ url: toPathString(localVarUrlObj),
34110
+ options: localVarRequestOptions,
34111
+ };
34112
+ },
34113
+ }
34114
+ };
34115
+
34116
+ /**
34117
+ * OpenAICompatibilityApi - functional programming interface
34118
+ * @export
34119
+ */
34120
+ export const OpenAICompatibilityApiFp = function(configuration?: Configuration) {
34121
+ const localVarAxiosParamCreator = OpenAICompatibilityApiAxiosParamCreator(configuration)
34122
+ return {
34123
+ /**
34124
+ * Drop-in replacement for OpenAI\'s POST /v1/chat/completions. Point any OpenAI SDK at base_url=https://<host>/oai/v1 and use a Quant API token (qc_...) as the api_key. Set `stream: true` to receive Server-Sent Events (chat.completion.chunk objects terminated by `data: [DONE]`); otherwise a single chat.completion object is returned. Supports tool/function calling and the standard tool_choice modes.
34125
+ * @summary Create a chat completion (OpenAI-compatible)
34126
+ * @param {OaiChatCompletionsRequest} oaiChatCompletionsRequest
34127
+ * @param {*} [options] Override http request option.
34128
+ * @throws {RequiredError}
34129
+ */
34130
+ async oaiChatCompletions(oaiChatCompletionsRequest: OaiChatCompletionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OaiChatCompletions200Response>> {
34131
+ const localVarAxiosArgs = await localVarAxiosParamCreator.oaiChatCompletions(oaiChatCompletionsRequest, options);
34132
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34133
+ const localVarOperationServerBasePath = operationServerMap['OpenAICompatibilityApi.oaiChatCompletions']?.[localVarOperationServerIndex]?.url;
34134
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34135
+ },
34136
+ /**
34137
+ * Drop-in replacement for OpenAI\'s POST /v1/embeddings. Accepts a single string or an array of strings in `input` and returns a list of embedding objects.
34138
+ * @summary Create embeddings (OpenAI-compatible)
34139
+ * @param {OaiEmbeddingsRequest} oaiEmbeddingsRequest
34140
+ * @param {*} [options] Override http request option.
34141
+ * @throws {RequiredError}
34142
+ */
34143
+ async oaiEmbeddings(oaiEmbeddingsRequest: OaiEmbeddingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OaiEmbeddings200Response>> {
34144
+ const localVarAxiosArgs = await localVarAxiosParamCreator.oaiEmbeddings(oaiEmbeddingsRequest, options);
34145
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34146
+ const localVarOperationServerBasePath = operationServerMap['OpenAICompatibilityApi.oaiEmbeddings']?.[localVarOperationServerIndex]?.url;
34147
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34148
+ },
34149
+ /**
34150
+ * Drop-in replacement for OpenAI\'s GET /v1/models/{model}.
34151
+ * @summary Retrieve a model (OpenAI-compatible)
34152
+ * @param {string} model
34153
+ * @param {*} [options] Override http request option.
34154
+ * @throws {RequiredError}
34155
+ */
34156
+ async oaiGetModel(model: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OaiGetModel200Response>> {
34157
+ const localVarAxiosArgs = await localVarAxiosParamCreator.oaiGetModel(model, options);
34158
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34159
+ const localVarOperationServerBasePath = operationServerMap['OpenAICompatibilityApi.oaiGetModel']?.[localVarOperationServerIndex]?.url;
34160
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34161
+ },
34162
+ /**
34163
+ * Drop-in replacement for OpenAI\'s GET /v1/models. Returns the model ids available to the organisation; pass one of these ids as `model` in chat/embeddings requests.
34164
+ * @summary List available models (OpenAI-compatible)
34165
+ * @param {*} [options] Override http request option.
34166
+ * @throws {RequiredError}
34167
+ */
34168
+ async oaiListModels(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OaiListModels200Response>> {
34169
+ const localVarAxiosArgs = await localVarAxiosParamCreator.oaiListModels(options);
34170
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34171
+ const localVarOperationServerBasePath = operationServerMap['OpenAICompatibilityApi.oaiListModels']?.[localVarOperationServerIndex]?.url;
34172
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34173
+ },
34174
+ }
34175
+ };
34176
+
34177
+ /**
34178
+ * OpenAICompatibilityApi - factory interface
34179
+ * @export
34180
+ */
34181
+ export const OpenAICompatibilityApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
34182
+ const localVarFp = OpenAICompatibilityApiFp(configuration)
34183
+ return {
34184
+ /**
34185
+ * Drop-in replacement for OpenAI\'s POST /v1/chat/completions. Point any OpenAI SDK at base_url=https://<host>/oai/v1 and use a Quant API token (qc_...) as the api_key. Set `stream: true` to receive Server-Sent Events (chat.completion.chunk objects terminated by `data: [DONE]`); otherwise a single chat.completion object is returned. Supports tool/function calling and the standard tool_choice modes.
34186
+ * @summary Create a chat completion (OpenAI-compatible)
34187
+ * @param {OaiChatCompletionsRequest} oaiChatCompletionsRequest
34188
+ * @param {*} [options] Override http request option.
34189
+ * @throws {RequiredError}
34190
+ */
34191
+ oaiChatCompletions(oaiChatCompletionsRequest: OaiChatCompletionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<OaiChatCompletions200Response> {
34192
+ return localVarFp.oaiChatCompletions(oaiChatCompletionsRequest, options).then((request) => request(axios, basePath));
34193
+ },
34194
+ /**
34195
+ * Drop-in replacement for OpenAI\'s POST /v1/embeddings. Accepts a single string or an array of strings in `input` and returns a list of embedding objects.
34196
+ * @summary Create embeddings (OpenAI-compatible)
34197
+ * @param {OaiEmbeddingsRequest} oaiEmbeddingsRequest
34198
+ * @param {*} [options] Override http request option.
34199
+ * @throws {RequiredError}
34200
+ */
34201
+ oaiEmbeddings(oaiEmbeddingsRequest: OaiEmbeddingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<OaiEmbeddings200Response> {
34202
+ return localVarFp.oaiEmbeddings(oaiEmbeddingsRequest, options).then((request) => request(axios, basePath));
34203
+ },
34204
+ /**
34205
+ * Drop-in replacement for OpenAI\'s GET /v1/models/{model}.
34206
+ * @summary Retrieve a model (OpenAI-compatible)
34207
+ * @param {string} model
34208
+ * @param {*} [options] Override http request option.
34209
+ * @throws {RequiredError}
34210
+ */
34211
+ oaiGetModel(model: string, options?: RawAxiosRequestConfig): AxiosPromise<OaiGetModel200Response> {
34212
+ return localVarFp.oaiGetModel(model, options).then((request) => request(axios, basePath));
34213
+ },
34214
+ /**
34215
+ * Drop-in replacement for OpenAI\'s GET /v1/models. Returns the model ids available to the organisation; pass one of these ids as `model` in chat/embeddings requests.
34216
+ * @summary List available models (OpenAI-compatible)
34217
+ * @param {*} [options] Override http request option.
34218
+ * @throws {RequiredError}
34219
+ */
34220
+ oaiListModels(options?: RawAxiosRequestConfig): AxiosPromise<OaiListModels200Response> {
34221
+ return localVarFp.oaiListModels(options).then((request) => request(axios, basePath));
34222
+ },
34223
+ };
34224
+ };
34225
+
34226
+ /**
34227
+ * OpenAICompatibilityApi - object-oriented interface
34228
+ * @export
34229
+ * @class OpenAICompatibilityApi
34230
+ * @extends {BaseAPI}
34231
+ */
34232
+ export class OpenAICompatibilityApi extends BaseAPI {
34233
+ /**
34234
+ * Drop-in replacement for OpenAI\'s POST /v1/chat/completions. Point any OpenAI SDK at base_url=https://<host>/oai/v1 and use a Quant API token (qc_...) as the api_key. Set `stream: true` to receive Server-Sent Events (chat.completion.chunk objects terminated by `data: [DONE]`); otherwise a single chat.completion object is returned. Supports tool/function calling and the standard tool_choice modes.
34235
+ * @summary Create a chat completion (OpenAI-compatible)
34236
+ * @param {OaiChatCompletionsRequest} oaiChatCompletionsRequest
34237
+ * @param {*} [options] Override http request option.
34238
+ * @throws {RequiredError}
34239
+ * @memberof OpenAICompatibilityApi
34240
+ */
34241
+ public oaiChatCompletions(oaiChatCompletionsRequest: OaiChatCompletionsRequest, options?: RawAxiosRequestConfig) {
34242
+ return OpenAICompatibilityApiFp(this.configuration).oaiChatCompletions(oaiChatCompletionsRequest, options).then((request) => request(this.axios, this.basePath));
34243
+ }
34244
+
34245
+ /**
34246
+ * Drop-in replacement for OpenAI\'s POST /v1/embeddings. Accepts a single string or an array of strings in `input` and returns a list of embedding objects.
34247
+ * @summary Create embeddings (OpenAI-compatible)
34248
+ * @param {OaiEmbeddingsRequest} oaiEmbeddingsRequest
34249
+ * @param {*} [options] Override http request option.
34250
+ * @throws {RequiredError}
34251
+ * @memberof OpenAICompatibilityApi
34252
+ */
34253
+ public oaiEmbeddings(oaiEmbeddingsRequest: OaiEmbeddingsRequest, options?: RawAxiosRequestConfig) {
34254
+ return OpenAICompatibilityApiFp(this.configuration).oaiEmbeddings(oaiEmbeddingsRequest, options).then((request) => request(this.axios, this.basePath));
34255
+ }
34256
+
34257
+ /**
34258
+ * Drop-in replacement for OpenAI\'s GET /v1/models/{model}.
34259
+ * @summary Retrieve a model (OpenAI-compatible)
34260
+ * @param {string} model
34261
+ * @param {*} [options] Override http request option.
34262
+ * @throws {RequiredError}
34263
+ * @memberof OpenAICompatibilityApi
34264
+ */
34265
+ public oaiGetModel(model: string, options?: RawAxiosRequestConfig) {
34266
+ return OpenAICompatibilityApiFp(this.configuration).oaiGetModel(model, options).then((request) => request(this.axios, this.basePath));
34267
+ }
34268
+
34269
+ /**
34270
+ * Drop-in replacement for OpenAI\'s GET /v1/models. Returns the model ids available to the organisation; pass one of these ids as `model` in chat/embeddings requests.
34271
+ * @summary List available models (OpenAI-compatible)
34272
+ * @param {*} [options] Override http request option.
34273
+ * @throws {RequiredError}
34274
+ * @memberof OpenAICompatibilityApi
34275
+ */
34276
+ public oaiListModels(options?: RawAxiosRequestConfig) {
34277
+ return OpenAICompatibilityApiFp(this.configuration).oaiListModels(options).then((request) => request(this.axios, this.basePath));
34278
+ }
34279
+ }
34280
+
34281
+
34282
+
33451
34283
  /**
33452
34284
  * OrganizationsApi - axios parameter creator
33453
34285
  * @export