@gpuai/sdk 0.3.18 → 0.4.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/.openapi-generator/FILES +48 -0
- package/README.md +41 -2
- package/dist/apis/BillingApi.d.ts +70 -0
- package/dist/apis/BillingApi.js +197 -0
- package/dist/apis/FunctionsApi.d.ts +228 -0
- package/dist/apis/FunctionsApi.js +627 -0
- package/dist/apis/InstancesApi.d.ts +18 -0
- package/dist/apis/InstancesApi.js +49 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/BillingApi.d.ts +70 -0
- package/dist/esm/apis/BillingApi.js +197 -0
- package/dist/esm/apis/FunctionsApi.d.ts +228 -0
- package/dist/esm/apis/FunctionsApi.js +623 -0
- package/dist/esm/apis/InstancesApi.d.ts +18 -0
- package/dist/esm/apis/InstancesApi.js +49 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AutolaunchRule.d.ts +2 -1
- package/dist/esm/models/BillingDetails.d.ts +98 -0
- package/dist/esm/models/BillingDetails.js +85 -0
- package/dist/esm/models/CreateFunctionRequest.d.ts +32 -0
- package/dist/esm/models/CreateFunctionRequest.js +43 -0
- package/dist/esm/models/CreateFunctionRunRequest.d.ts +38 -0
- package/dist/esm/models/CreateFunctionRunRequest.js +45 -0
- package/dist/esm/models/CreateFunctionVersionRequest.d.ts +110 -0
- package/dist/esm/models/CreateFunctionVersionRequest.js +79 -0
- package/dist/esm/models/Function.d.ts +163 -0
- package/dist/esm/models/Function.js +109 -0
- package/dist/esm/models/FunctionList.d.ts +33 -0
- package/dist/esm/models/FunctionList.js +44 -0
- package/dist/esm/models/FunctionReplicaCounts.d.ts +44 -0
- package/dist/esm/models/FunctionReplicaCounts.js +51 -0
- package/dist/esm/models/FunctionRun.d.ts +130 -0
- package/dist/esm/models/FunctionRun.js +94 -0
- package/dist/esm/models/FunctionRunError.d.ts +44 -0
- package/dist/esm/models/FunctionRunError.js +49 -0
- package/dist/esm/models/FunctionRunList.d.ts +39 -0
- package/dist/esm/models/FunctionRunList.js +48 -0
- package/dist/esm/models/FunctionRunLogChunk.d.ts +59 -0
- package/dist/esm/models/FunctionRunLogChunk.js +63 -0
- package/dist/esm/models/FunctionRunLogs.d.ts +45 -0
- package/dist/esm/models/FunctionRunLogs.js +52 -0
- package/dist/esm/models/FunctionUpload.d.ts +51 -0
- package/dist/esm/models/FunctionUpload.js +59 -0
- package/dist/esm/models/FunctionVersion.d.ts +137 -0
- package/dist/esm/models/FunctionVersion.js +109 -0
- package/dist/esm/models/GpuSuggestion.d.ts +82 -0
- package/dist/esm/models/GpuSuggestion.js +77 -0
- package/dist/esm/models/GpuSuggestionCheaper.d.ts +62 -0
- package/dist/esm/models/GpuSuggestionCheaper.js +63 -0
- package/dist/esm/models/GpuSuggestionGpu.d.ts +50 -0
- package/dist/esm/models/GpuSuggestionGpu.js +55 -0
- package/dist/esm/models/Instance.d.ts +7 -0
- package/dist/esm/models/Instance.js +3 -0
- package/dist/esm/models/InstanceGpuMemory.d.ts +51 -0
- package/dist/esm/models/InstanceGpuMemory.js +55 -0
- package/dist/esm/models/Invoice.d.ts +68 -0
- package/dist/esm/models/Invoice.js +67 -0
- package/dist/esm/models/InvoiceList.d.ts +45 -0
- package/dist/esm/models/InvoiceList.js +50 -0
- package/dist/esm/models/ModelPricing.d.ts +46 -0
- package/dist/esm/models/ModelPricing.js +21 -0
- package/dist/esm/models/ModelRate.d.ts +62 -0
- package/dist/esm/models/ModelRate.js +51 -0
- package/dist/esm/models/PeakWindow.d.ts +38 -0
- package/dist/esm/models/PeakWindow.js +47 -0
- package/dist/esm/models/UpdateBillingDetailsRequest.d.ts +80 -0
- package/dist/esm/models/UpdateBillingDetailsRequest.js +57 -0
- package/dist/esm/models/index.d.ts +23 -0
- package/dist/esm/models/index.js +23 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AutolaunchRule.d.ts +2 -1
- package/dist/models/BillingDetails.d.ts +98 -0
- package/dist/models/BillingDetails.js +92 -0
- package/dist/models/CreateFunctionRequest.d.ts +32 -0
- package/dist/models/CreateFunctionRequest.js +50 -0
- package/dist/models/CreateFunctionRunRequest.d.ts +38 -0
- package/dist/models/CreateFunctionRunRequest.js +52 -0
- package/dist/models/CreateFunctionVersionRequest.d.ts +110 -0
- package/dist/models/CreateFunctionVersionRequest.js +86 -0
- package/dist/models/Function.d.ts +163 -0
- package/dist/models/Function.js +117 -0
- package/dist/models/FunctionList.d.ts +33 -0
- package/dist/models/FunctionList.js +51 -0
- package/dist/models/FunctionReplicaCounts.d.ts +44 -0
- package/dist/models/FunctionReplicaCounts.js +58 -0
- package/dist/models/FunctionRun.d.ts +130 -0
- package/dist/models/FunctionRun.js +102 -0
- package/dist/models/FunctionRunError.d.ts +44 -0
- package/dist/models/FunctionRunError.js +56 -0
- package/dist/models/FunctionRunList.d.ts +39 -0
- package/dist/models/FunctionRunList.js +55 -0
- package/dist/models/FunctionRunLogChunk.d.ts +59 -0
- package/dist/models/FunctionRunLogChunk.js +71 -0
- package/dist/models/FunctionRunLogs.d.ts +45 -0
- package/dist/models/FunctionRunLogs.js +59 -0
- package/dist/models/FunctionUpload.d.ts +51 -0
- package/dist/models/FunctionUpload.js +67 -0
- package/dist/models/FunctionVersion.d.ts +137 -0
- package/dist/models/FunctionVersion.js +117 -0
- package/dist/models/GpuSuggestion.d.ts +82 -0
- package/dist/models/GpuSuggestion.js +85 -0
- package/dist/models/GpuSuggestionCheaper.d.ts +62 -0
- package/dist/models/GpuSuggestionCheaper.js +70 -0
- package/dist/models/GpuSuggestionGpu.d.ts +50 -0
- package/dist/models/GpuSuggestionGpu.js +62 -0
- package/dist/models/Instance.d.ts +7 -0
- package/dist/models/Instance.js +3 -0
- package/dist/models/InstanceGpuMemory.d.ts +51 -0
- package/dist/models/InstanceGpuMemory.js +62 -0
- package/dist/models/Invoice.d.ts +68 -0
- package/dist/models/Invoice.js +74 -0
- package/dist/models/InvoiceList.d.ts +45 -0
- package/dist/models/InvoiceList.js +57 -0
- package/dist/models/ModelPricing.d.ts +46 -0
- package/dist/models/ModelPricing.js +22 -0
- package/dist/models/ModelRate.d.ts +62 -0
- package/dist/models/ModelRate.js +58 -0
- package/dist/models/PeakWindow.d.ts +38 -0
- package/dist/models/PeakWindow.js +54 -0
- package/dist/models/UpdateBillingDetailsRequest.d.ts +80 -0
- package/dist/models/UpdateBillingDetailsRequest.js +64 -0
- package/dist/models/index.d.ts +23 -0
- package/dist/models/index.js +23 -0
- package/dist/runtime.js +1 -1
- package/docs/BillingApi.md +299 -0
- package/docs/BillingDetails.md +56 -0
- package/docs/CreateFunctionRequest.md +34 -0
- package/docs/CreateFunctionRunRequest.md +36 -0
- package/docs/CreateFunctionVersionRequest.md +60 -0
- package/docs/Function.md +75 -0
- package/docs/FunctionList.md +34 -0
- package/docs/FunctionReplicaCounts.md +39 -0
- package/docs/FunctionRun.md +63 -0
- package/docs/FunctionRunError.md +38 -0
- package/docs/FunctionRunList.md +36 -0
- package/docs/FunctionRunLogChunk.md +40 -0
- package/docs/FunctionRunLogs.md +38 -0
- package/docs/FunctionUpload.md +38 -0
- package/docs/FunctionVersion.md +66 -0
- package/docs/FunctionsApi.md +880 -0
- package/docs/GpuSuggestion.md +47 -0
- package/docs/GpuSuggestionCheaper.md +45 -0
- package/docs/GpuSuggestionGpu.md +41 -0
- package/docs/Instance.md +2 -0
- package/docs/InstanceGpuMemory.md +41 -0
- package/docs/InstancesApi.md +75 -0
- package/docs/Invoice.md +46 -0
- package/docs/InvoiceList.md +38 -0
- package/docs/ModelPricing.md +12 -0
- package/docs/ModelRate.md +45 -0
- package/docs/PeakWindow.md +37 -0
- package/docs/UpdateBillingDetailsRequest.md +50 -0
- package/package.json +1 -1
- package/src/apis/BillingApi.ts +247 -0
- package/src/apis/FunctionsApi.ts +828 -0
- package/src/apis/InstancesApi.ts +64 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AutolaunchRule.ts +2 -1
- package/src/models/BillingDetails.ts +164 -0
- package/src/models/CreateFunctionRequest.ts +66 -0
- package/src/models/CreateFunctionRunRequest.ts +74 -0
- package/src/models/CreateFunctionVersionRequest.ts +175 -0
- package/src/models/Function.ts +255 -0
- package/src/models/FunctionList.ts +74 -0
- package/src/models/FunctionReplicaCounts.ts +84 -0
- package/src/models/FunctionRun.ts +207 -0
- package/src/models/FunctionRunError.ts +83 -0
- package/src/models/FunctionRunList.ts +83 -0
- package/src/models/FunctionRunLogChunk.ts +105 -0
- package/src/models/FunctionRunLogs.ts +92 -0
- package/src/models/FunctionUpload.ts +96 -0
- package/src/models/FunctionVersion.ts +226 -0
- package/src/models/GpuSuggestion.ts +150 -0
- package/src/models/GpuSuggestionCheaper.ts +111 -0
- package/src/models/GpuSuggestionGpu.ts +93 -0
- package/src/models/Instance.ts +15 -0
- package/src/models/InstanceGpuMemory.ts +94 -0
- package/src/models/Invoice.ts +120 -0
- package/src/models/InvoiceList.ts +91 -0
- package/src/models/ModelPricing.ts +74 -0
- package/src/models/ModelRate.ts +105 -0
- package/src/models/PeakWindow.ts +75 -0
- package/src/models/UpdateBillingDetailsRequest.ts +129 -0
- package/src/models/index.ts +23 -0
- package/src/runtime.ts +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GPU.ai Public Developer API
|
|
3
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@gpu.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* One per-1M-token rate triple, in rounded cents and exact micro-cents (1e-6 cent). Prefer the micro-cent fields for arithmetic; cached rates are routinely sub-cent and their cents field is then omitted.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ModelRate
|
|
16
|
+
*/
|
|
17
|
+
export interface ModelRate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ModelRate
|
|
22
|
+
*/
|
|
23
|
+
inputPer1mTokensCents?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ModelRate
|
|
28
|
+
*/
|
|
29
|
+
inputPer1mTokensMicrocents?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ModelRate
|
|
34
|
+
*/
|
|
35
|
+
cachedInputPer1mTokensCents?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ModelRate
|
|
40
|
+
*/
|
|
41
|
+
cachedInputPer1mTokensMicrocents?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ModelRate
|
|
46
|
+
*/
|
|
47
|
+
outputPer1mTokensCents?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ModelRate
|
|
52
|
+
*/
|
|
53
|
+
outputPer1mTokensMicrocents?: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ModelRate interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfModelRate(value: object): value is ModelRate;
|
|
59
|
+
export declare function ModelRateFromJSON(json: any): ModelRate;
|
|
60
|
+
export declare function ModelRateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelRate;
|
|
61
|
+
export declare function ModelRateToJSON(json: any): ModelRate;
|
|
62
|
+
export declare function ModelRateToJSONTyped(value?: ModelRate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* GPU.ai Public Developer API
|
|
6
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@gpu.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfModelRate = instanceOfModelRate;
|
|
17
|
+
exports.ModelRateFromJSON = ModelRateFromJSON;
|
|
18
|
+
exports.ModelRateFromJSONTyped = ModelRateFromJSONTyped;
|
|
19
|
+
exports.ModelRateToJSON = ModelRateToJSON;
|
|
20
|
+
exports.ModelRateToJSONTyped = ModelRateToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ModelRate interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfModelRate(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ModelRateFromJSON(json) {
|
|
28
|
+
return ModelRateFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ModelRateFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'inputPer1mTokensCents': json['input_per_1m_tokens_cents'] == null ? undefined : json['input_per_1m_tokens_cents'],
|
|
36
|
+
'inputPer1mTokensMicrocents': json['input_per_1m_tokens_microcents'] == null ? undefined : json['input_per_1m_tokens_microcents'],
|
|
37
|
+
'cachedInputPer1mTokensCents': json['cached_input_per_1m_tokens_cents'] == null ? undefined : json['cached_input_per_1m_tokens_cents'],
|
|
38
|
+
'cachedInputPer1mTokensMicrocents': json['cached_input_per_1m_tokens_microcents'] == null ? undefined : json['cached_input_per_1m_tokens_microcents'],
|
|
39
|
+
'outputPer1mTokensCents': json['output_per_1m_tokens_cents'] == null ? undefined : json['output_per_1m_tokens_cents'],
|
|
40
|
+
'outputPer1mTokensMicrocents': json['output_per_1m_tokens_microcents'] == null ? undefined : json['output_per_1m_tokens_microcents'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ModelRateToJSON(json) {
|
|
44
|
+
return ModelRateToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ModelRateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'input_per_1m_tokens_cents': value['inputPer1mTokensCents'],
|
|
52
|
+
'input_per_1m_tokens_microcents': value['inputPer1mTokensMicrocents'],
|
|
53
|
+
'cached_input_per_1m_tokens_cents': value['cachedInputPer1mTokensCents'],
|
|
54
|
+
'cached_input_per_1m_tokens_microcents': value['cachedInputPer1mTokensMicrocents'],
|
|
55
|
+
'output_per_1m_tokens_cents': value['outputPer1mTokensCents'],
|
|
56
|
+
'output_per_1m_tokens_microcents': value['outputPer1mTokensMicrocents'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GPU.ai Public Developer API
|
|
3
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@gpu.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* One daily UTC time range during which a model's peak rates apply.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PeakWindow
|
|
16
|
+
*/
|
|
17
|
+
export interface PeakWindow {
|
|
18
|
+
/**
|
|
19
|
+
* "HH:MM" UTC, inclusive.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PeakWindow
|
|
22
|
+
*/
|
|
23
|
+
start: string;
|
|
24
|
+
/**
|
|
25
|
+
* "HH:MM" UTC, exclusive ("24:00" means until midnight).
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PeakWindow
|
|
28
|
+
*/
|
|
29
|
+
end: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PeakWindow interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPeakWindow(value: object): value is PeakWindow;
|
|
35
|
+
export declare function PeakWindowFromJSON(json: any): PeakWindow;
|
|
36
|
+
export declare function PeakWindowFromJSONTyped(json: any, ignoreDiscriminator: boolean): PeakWindow;
|
|
37
|
+
export declare function PeakWindowToJSON(json: any): PeakWindow;
|
|
38
|
+
export declare function PeakWindowToJSONTyped(value?: PeakWindow | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* GPU.ai Public Developer API
|
|
6
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@gpu.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPeakWindow = instanceOfPeakWindow;
|
|
17
|
+
exports.PeakWindowFromJSON = PeakWindowFromJSON;
|
|
18
|
+
exports.PeakWindowFromJSONTyped = PeakWindowFromJSONTyped;
|
|
19
|
+
exports.PeakWindowToJSON = PeakWindowToJSON;
|
|
20
|
+
exports.PeakWindowToJSONTyped = PeakWindowToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PeakWindow interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPeakWindow(value) {
|
|
25
|
+
if (!('start' in value) || value['start'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('end' in value) || value['end'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PeakWindowFromJSON(json) {
|
|
32
|
+
return PeakWindowFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PeakWindowFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'start': json['start'],
|
|
40
|
+
'end': json['end'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PeakWindowToJSON(json) {
|
|
44
|
+
return PeakWindowToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PeakWindowToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'start': value['start'],
|
|
52
|
+
'end': value['end'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GPU.ai Public Developer API
|
|
3
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@gpu.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateBillingDetailsRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateBillingDetailsRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateBillingDetailsRequest
|
|
22
|
+
*/
|
|
23
|
+
legalName?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateBillingDetailsRequest
|
|
28
|
+
*/
|
|
29
|
+
addressLine1?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateBillingDetailsRequest
|
|
34
|
+
*/
|
|
35
|
+
addressLine2?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateBillingDetailsRequest
|
|
40
|
+
*/
|
|
41
|
+
city?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateBillingDetailsRequest
|
|
46
|
+
*/
|
|
47
|
+
region?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof UpdateBillingDetailsRequest
|
|
52
|
+
*/
|
|
53
|
+
postalCode?: string;
|
|
54
|
+
/**
|
|
55
|
+
* ISO 3166-1 alpha-2 code; empty clears it.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof UpdateBillingDetailsRequest
|
|
58
|
+
*/
|
|
59
|
+
country?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof UpdateBillingDetailsRequest
|
|
64
|
+
*/
|
|
65
|
+
taxIdType?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Write only. Stored encrypted and never returned in full. Empty removes the stored Tax ID.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof UpdateBillingDetailsRequest
|
|
70
|
+
*/
|
|
71
|
+
taxId?: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the UpdateBillingDetailsRequest interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfUpdateBillingDetailsRequest(value: object): value is UpdateBillingDetailsRequest;
|
|
77
|
+
export declare function UpdateBillingDetailsRequestFromJSON(json: any): UpdateBillingDetailsRequest;
|
|
78
|
+
export declare function UpdateBillingDetailsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateBillingDetailsRequest;
|
|
79
|
+
export declare function UpdateBillingDetailsRequestToJSON(json: any): UpdateBillingDetailsRequest;
|
|
80
|
+
export declare function UpdateBillingDetailsRequestToJSONTyped(value?: UpdateBillingDetailsRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* GPU.ai Public Developer API
|
|
6
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@gpu.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUpdateBillingDetailsRequest = instanceOfUpdateBillingDetailsRequest;
|
|
17
|
+
exports.UpdateBillingDetailsRequestFromJSON = UpdateBillingDetailsRequestFromJSON;
|
|
18
|
+
exports.UpdateBillingDetailsRequestFromJSONTyped = UpdateBillingDetailsRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateBillingDetailsRequestToJSON = UpdateBillingDetailsRequestToJSON;
|
|
20
|
+
exports.UpdateBillingDetailsRequestToJSONTyped = UpdateBillingDetailsRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateBillingDetailsRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateBillingDetailsRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UpdateBillingDetailsRequestFromJSON(json) {
|
|
28
|
+
return UpdateBillingDetailsRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UpdateBillingDetailsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'legalName': json['legal_name'] == null ? undefined : json['legal_name'],
|
|
36
|
+
'addressLine1': json['address_line1'] == null ? undefined : json['address_line1'],
|
|
37
|
+
'addressLine2': json['address_line2'] == null ? undefined : json['address_line2'],
|
|
38
|
+
'city': json['city'] == null ? undefined : json['city'],
|
|
39
|
+
'region': json['region'] == null ? undefined : json['region'],
|
|
40
|
+
'postalCode': json['postal_code'] == null ? undefined : json['postal_code'],
|
|
41
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
42
|
+
'taxIdType': json['tax_id_type'] == null ? undefined : json['tax_id_type'],
|
|
43
|
+
'taxId': json['tax_id'] == null ? undefined : json['tax_id'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function UpdateBillingDetailsRequestToJSON(json) {
|
|
47
|
+
return UpdateBillingDetailsRequestToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function UpdateBillingDetailsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'legal_name': value['legalName'],
|
|
55
|
+
'address_line1': value['addressLine1'],
|
|
56
|
+
'address_line2': value['addressLine2'],
|
|
57
|
+
'city': value['city'],
|
|
58
|
+
'region': value['region'],
|
|
59
|
+
'postal_code': value['postalCode'],
|
|
60
|
+
'country': value['country'],
|
|
61
|
+
'tax_id_type': value['taxIdType'],
|
|
62
|
+
'tax_id': value['taxId'],
|
|
63
|
+
};
|
|
64
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './AutolaunchRuleCreate';
|
|
|
3
3
|
export * from './AutolaunchRuleDisarm';
|
|
4
4
|
export * from './AutolaunchRulePage';
|
|
5
5
|
export * from './Balance';
|
|
6
|
+
export * from './BillingDetails';
|
|
6
7
|
export * from './ChatChoice';
|
|
7
8
|
export * from './ChatCompletionRequest';
|
|
8
9
|
export * from './ChatCompletionResponse';
|
|
@@ -16,6 +17,9 @@ export * from './CreateFineTuningJobRequest';
|
|
|
16
17
|
export * from './CreateFineTuningJobRequestGpuai';
|
|
17
18
|
export * from './CreateFineTuningJobRequestMethod';
|
|
18
19
|
export * from './CreateFineTuningJobRequestMethodLora';
|
|
20
|
+
export * from './CreateFunctionRequest';
|
|
21
|
+
export * from './CreateFunctionRunRequest';
|
|
22
|
+
export * from './CreateFunctionVersionRequest';
|
|
19
23
|
export * from './CreateInstanceRequest';
|
|
20
24
|
export * from './CreateInstanceRequestPortsInner';
|
|
21
25
|
export * from './CreateRegistryCredentialRequest';
|
|
@@ -36,9 +40,22 @@ export * from './FineTuningJobEventList';
|
|
|
36
40
|
export * from './FineTuningJobList';
|
|
37
41
|
export * from './FineTuningJobMethod';
|
|
38
42
|
export * from './FrameworkVersion';
|
|
43
|
+
export * from './Function';
|
|
44
|
+
export * from './FunctionList';
|
|
45
|
+
export * from './FunctionReplicaCounts';
|
|
46
|
+
export * from './FunctionRun';
|
|
47
|
+
export * from './FunctionRunError';
|
|
48
|
+
export * from './FunctionRunList';
|
|
49
|
+
export * from './FunctionRunLogChunk';
|
|
50
|
+
export * from './FunctionRunLogs';
|
|
51
|
+
export * from './FunctionUpload';
|
|
52
|
+
export * from './FunctionVersion';
|
|
39
53
|
export * from './GPUType';
|
|
40
54
|
export * from './GPUTypePage';
|
|
41
55
|
export * from './GetHealth200Response';
|
|
56
|
+
export * from './GpuSuggestion';
|
|
57
|
+
export * from './GpuSuggestionCheaper';
|
|
58
|
+
export * from './GpuSuggestionGpu';
|
|
42
59
|
export * from './ImagesGenerationsRequest';
|
|
43
60
|
export * from './ImagesResponse';
|
|
44
61
|
export * from './ImagesResponseDataInner';
|
|
@@ -46,7 +63,10 @@ export * from './ImagesResponseUsage';
|
|
|
46
63
|
export * from './IncludeItem';
|
|
47
64
|
export * from './Instance';
|
|
48
65
|
export * from './InstanceConnection';
|
|
66
|
+
export * from './InstanceGpuMemory';
|
|
49
67
|
export * from './InstancePage';
|
|
68
|
+
export * from './Invoice';
|
|
69
|
+
export * from './InvoiceList';
|
|
50
70
|
export * from './ListCommunityMachines200Response';
|
|
51
71
|
export * from './ListDeposits200Response';
|
|
52
72
|
export * from './ListRegistryCredentials200Response';
|
|
@@ -56,11 +76,13 @@ export * from './Model';
|
|
|
56
76
|
export * from './ModelList';
|
|
57
77
|
export * from './ModelParametersInner';
|
|
58
78
|
export * from './ModelPricing';
|
|
79
|
+
export * from './ModelRate';
|
|
59
80
|
export * from './OpenAIErrorEnvelope';
|
|
60
81
|
export * from './OpenAIErrorEnvelopeError';
|
|
61
82
|
export * from './Operation';
|
|
62
83
|
export * from './OperationError';
|
|
63
84
|
export * from './OperationResult';
|
|
85
|
+
export * from './PeakWindow';
|
|
64
86
|
export * from './Pricing';
|
|
65
87
|
export * from './PricingPage';
|
|
66
88
|
export * from './Problem';
|
|
@@ -75,6 +97,7 @@ export * from './Template';
|
|
|
75
97
|
export * from './TemplateEnvInner';
|
|
76
98
|
export * from './TemplateList';
|
|
77
99
|
export * from './TemplatePortsInner';
|
|
100
|
+
export * from './UpdateBillingDetailsRequest';
|
|
78
101
|
export * from './UpdateInstanceRequest';
|
|
79
102
|
export * from './UpdateSpendingLimitRequest';
|
|
80
103
|
export * from './Usage';
|
package/dist/models/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./AutolaunchRuleCreate"), exports);
|
|
|
21
21
|
__exportStar(require("./AutolaunchRuleDisarm"), exports);
|
|
22
22
|
__exportStar(require("./AutolaunchRulePage"), exports);
|
|
23
23
|
__exportStar(require("./Balance"), exports);
|
|
24
|
+
__exportStar(require("./BillingDetails"), exports);
|
|
24
25
|
__exportStar(require("./ChatChoice"), exports);
|
|
25
26
|
__exportStar(require("./ChatCompletionRequest"), exports);
|
|
26
27
|
__exportStar(require("./ChatCompletionResponse"), exports);
|
|
@@ -34,6 +35,9 @@ __exportStar(require("./CreateFineTuningJobRequest"), exports);
|
|
|
34
35
|
__exportStar(require("./CreateFineTuningJobRequestGpuai"), exports);
|
|
35
36
|
__exportStar(require("./CreateFineTuningJobRequestMethod"), exports);
|
|
36
37
|
__exportStar(require("./CreateFineTuningJobRequestMethodLora"), exports);
|
|
38
|
+
__exportStar(require("./CreateFunctionRequest"), exports);
|
|
39
|
+
__exportStar(require("./CreateFunctionRunRequest"), exports);
|
|
40
|
+
__exportStar(require("./CreateFunctionVersionRequest"), exports);
|
|
37
41
|
__exportStar(require("./CreateInstanceRequest"), exports);
|
|
38
42
|
__exportStar(require("./CreateInstanceRequestPortsInner"), exports);
|
|
39
43
|
__exportStar(require("./CreateRegistryCredentialRequest"), exports);
|
|
@@ -54,9 +58,22 @@ __exportStar(require("./FineTuningJobEventList"), exports);
|
|
|
54
58
|
__exportStar(require("./FineTuningJobList"), exports);
|
|
55
59
|
__exportStar(require("./FineTuningJobMethod"), exports);
|
|
56
60
|
__exportStar(require("./FrameworkVersion"), exports);
|
|
61
|
+
__exportStar(require("./Function"), exports);
|
|
62
|
+
__exportStar(require("./FunctionList"), exports);
|
|
63
|
+
__exportStar(require("./FunctionReplicaCounts"), exports);
|
|
64
|
+
__exportStar(require("./FunctionRun"), exports);
|
|
65
|
+
__exportStar(require("./FunctionRunError"), exports);
|
|
66
|
+
__exportStar(require("./FunctionRunList"), exports);
|
|
67
|
+
__exportStar(require("./FunctionRunLogChunk"), exports);
|
|
68
|
+
__exportStar(require("./FunctionRunLogs"), exports);
|
|
69
|
+
__exportStar(require("./FunctionUpload"), exports);
|
|
70
|
+
__exportStar(require("./FunctionVersion"), exports);
|
|
57
71
|
__exportStar(require("./GPUType"), exports);
|
|
58
72
|
__exportStar(require("./GPUTypePage"), exports);
|
|
59
73
|
__exportStar(require("./GetHealth200Response"), exports);
|
|
74
|
+
__exportStar(require("./GpuSuggestion"), exports);
|
|
75
|
+
__exportStar(require("./GpuSuggestionCheaper"), exports);
|
|
76
|
+
__exportStar(require("./GpuSuggestionGpu"), exports);
|
|
60
77
|
__exportStar(require("./ImagesGenerationsRequest"), exports);
|
|
61
78
|
__exportStar(require("./ImagesResponse"), exports);
|
|
62
79
|
__exportStar(require("./ImagesResponseDataInner"), exports);
|
|
@@ -64,7 +81,10 @@ __exportStar(require("./ImagesResponseUsage"), exports);
|
|
|
64
81
|
__exportStar(require("./IncludeItem"), exports);
|
|
65
82
|
__exportStar(require("./Instance"), exports);
|
|
66
83
|
__exportStar(require("./InstanceConnection"), exports);
|
|
84
|
+
__exportStar(require("./InstanceGpuMemory"), exports);
|
|
67
85
|
__exportStar(require("./InstancePage"), exports);
|
|
86
|
+
__exportStar(require("./Invoice"), exports);
|
|
87
|
+
__exportStar(require("./InvoiceList"), exports);
|
|
68
88
|
__exportStar(require("./ListCommunityMachines200Response"), exports);
|
|
69
89
|
__exportStar(require("./ListDeposits200Response"), exports);
|
|
70
90
|
__exportStar(require("./ListRegistryCredentials200Response"), exports);
|
|
@@ -74,11 +94,13 @@ __exportStar(require("./Model"), exports);
|
|
|
74
94
|
__exportStar(require("./ModelList"), exports);
|
|
75
95
|
__exportStar(require("./ModelParametersInner"), exports);
|
|
76
96
|
__exportStar(require("./ModelPricing"), exports);
|
|
97
|
+
__exportStar(require("./ModelRate"), exports);
|
|
77
98
|
__exportStar(require("./OpenAIErrorEnvelope"), exports);
|
|
78
99
|
__exportStar(require("./OpenAIErrorEnvelopeError"), exports);
|
|
79
100
|
__exportStar(require("./Operation"), exports);
|
|
80
101
|
__exportStar(require("./OperationError"), exports);
|
|
81
102
|
__exportStar(require("./OperationResult"), exports);
|
|
103
|
+
__exportStar(require("./PeakWindow"), exports);
|
|
82
104
|
__exportStar(require("./Pricing"), exports);
|
|
83
105
|
__exportStar(require("./PricingPage"), exports);
|
|
84
106
|
__exportStar(require("./Problem"), exports);
|
|
@@ -93,6 +115,7 @@ __exportStar(require("./Template"), exports);
|
|
|
93
115
|
__exportStar(require("./TemplateEnvInner"), exports);
|
|
94
116
|
__exportStar(require("./TemplateList"), exports);
|
|
95
117
|
__exportStar(require("./TemplatePortsInner"), exports);
|
|
118
|
+
__exportStar(require("./UpdateBillingDetailsRequest"), exports);
|
|
96
119
|
__exportStar(require("./UpdateInstanceRequest"), exports);
|
|
97
120
|
__exportStar(require("./UpdateSpendingLimitRequest"), exports);
|
|
98
121
|
__exportStar(require("./Usage"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -69,7 +69,7 @@ class Configuration {
|
|
|
69
69
|
return undefined;
|
|
70
70
|
}
|
|
71
71
|
get headers() {
|
|
72
|
-
return this.configuration.headers;
|
|
72
|
+
return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.4.1' }, this.configuration.headers);
|
|
73
73
|
}
|
|
74
74
|
get credentials() {
|
|
75
75
|
return this.configuration.credentials;
|