@gpuai/sdk 0.5.3 → 0.5.5
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 +56 -0
- package/README.md +50 -2
- package/dist/apis/BillingApi.d.ts +2 -2
- package/dist/apis/BillingApi.js +2 -2
- package/dist/apis/EndpointsApi.d.ts +150 -0
- package/dist/apis/EndpointsApi.js +379 -0
- package/dist/apis/InstancesApi.d.ts +15 -0
- package/dist/apis/InstancesApi.js +45 -0
- package/dist/apis/JobsApi.d.ts +172 -0
- package/dist/apis/JobsApi.js +444 -0
- package/dist/apis/OperationsApi.d.ts +17 -0
- package/dist/apis/OperationsApi.js +48 -0
- package/dist/apis/SecretsApi.d.ts +123 -0
- package/dist/apis/SecretsApi.js +328 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/esm/apis/BillingApi.d.ts +2 -2
- package/dist/esm/apis/BillingApi.js +2 -2
- package/dist/esm/apis/EndpointsApi.d.ts +150 -0
- package/dist/esm/apis/EndpointsApi.js +375 -0
- package/dist/esm/apis/InstancesApi.d.ts +15 -0
- package/dist/esm/apis/InstancesApi.js +45 -0
- package/dist/esm/apis/JobsApi.d.ts +172 -0
- package/dist/esm/apis/JobsApi.js +440 -0
- package/dist/esm/apis/OperationsApi.d.ts +17 -0
- package/dist/esm/apis/OperationsApi.js +48 -0
- package/dist/esm/apis/SecretsApi.d.ts +123 -0
- package/dist/esm/apis/SecretsApi.js +324 -0
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/models/Balance.d.ts +6 -0
- package/dist/esm/models/Balance.js +2 -0
- package/dist/esm/models/CreateWebhookEndpointRequest.d.ts +3 -0
- package/dist/esm/models/CreateWebhookEndpointRequest.js +4 -1
- package/dist/esm/models/DedicatedIPOffer.d.ts +98 -0
- package/dist/esm/models/DedicatedIPOffer.js +87 -0
- package/dist/esm/models/Endpoint.d.ts +147 -0
- package/dist/esm/models/Endpoint.js +121 -0
- package/dist/esm/models/EndpointCreate.d.ts +80 -0
- package/dist/esm/models/EndpointCreate.js +63 -0
- package/dist/esm/models/EndpointList.d.ts +33 -0
- package/dist/esm/models/EndpointList.js +44 -0
- package/dist/esm/models/EndpointMachine.d.ts +90 -0
- package/dist/esm/models/EndpointMachine.js +84 -0
- package/dist/esm/models/EndpointReplicaCounts.d.ts +38 -0
- package/dist/esm/models/EndpointReplicaCounts.js +47 -0
- package/dist/esm/models/Job.d.ts +352 -0
- package/dist/esm/models/Job.js +254 -0
- package/dist/esm/models/JobAttempt.d.ts +176 -0
- package/dist/esm/models/JobAttempt.js +147 -0
- package/dist/esm/models/JobCreate.d.ts +153 -0
- package/dist/esm/models/JobCreate.js +84 -0
- package/dist/esm/models/JobGpuTypes.d.ts +39 -0
- package/dist/esm/models/JobGpuTypes.js +48 -0
- package/dist/esm/models/JobGpuTypesDataInner.d.ts +58 -0
- package/dist/esm/models/JobGpuTypesDataInner.js +59 -0
- package/dist/esm/models/JobLogChunk.d.ts +50 -0
- package/dist/esm/models/JobLogChunk.js +55 -0
- package/dist/esm/models/JobLogs.d.ts +39 -0
- package/dist/esm/models/JobLogs.js +48 -0
- package/dist/esm/models/JobPage.d.ts +39 -0
- package/dist/esm/models/JobPage.js +48 -0
- package/dist/esm/models/JobSharingHint.d.ts +46 -0
- package/dist/esm/models/JobSharingHint.js +51 -0
- package/dist/esm/models/JobTelemetry.d.ts +51 -0
- package/dist/esm/models/JobTelemetry.js +56 -0
- package/dist/esm/models/JobTelemetryPoint.d.ts +56 -0
- package/dist/esm/models/JobTelemetryPoint.js +59 -0
- package/dist/esm/models/JobTrial.d.ts +79 -0
- package/dist/esm/models/JobTrial.js +73 -0
- package/dist/esm/models/Secret.d.ts +62 -0
- package/dist/esm/models/Secret.js +63 -0
- package/dist/esm/models/SecretCreate.d.ts +44 -0
- package/dist/esm/models/SecretCreate.js +49 -0
- package/dist/esm/models/SecretImportItem.d.ts +38 -0
- package/dist/esm/models/SecretImportItem.js +47 -0
- package/dist/esm/models/SecretImportRequest.d.ts +39 -0
- package/dist/esm/models/SecretImportRequest.js +46 -0
- package/dist/esm/models/SecretImportResult.d.ts +44 -0
- package/dist/esm/models/SecretImportResult.js +51 -0
- package/dist/esm/models/SecretList.d.ts +33 -0
- package/dist/esm/models/SecretList.js +44 -0
- package/dist/esm/models/SecretPut.d.ts +38 -0
- package/dist/esm/models/SecretPut.js +45 -0
- package/dist/esm/models/WebhookEndpoint.d.ts +3 -0
- package/dist/esm/models/WebhookEndpoint.js +4 -1
- package/dist/esm/models/index.d.ts +25 -0
- package/dist/esm/models/index.js +25 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/Balance.d.ts +6 -0
- package/dist/models/Balance.js +2 -0
- package/dist/models/CreateWebhookEndpointRequest.d.ts +3 -0
- package/dist/models/CreateWebhookEndpointRequest.js +4 -1
- package/dist/models/DedicatedIPOffer.d.ts +98 -0
- package/dist/models/DedicatedIPOffer.js +94 -0
- package/dist/models/Endpoint.d.ts +147 -0
- package/dist/models/Endpoint.js +129 -0
- package/dist/models/EndpointCreate.d.ts +80 -0
- package/dist/models/EndpointCreate.js +70 -0
- package/dist/models/EndpointList.d.ts +33 -0
- package/dist/models/EndpointList.js +51 -0
- package/dist/models/EndpointMachine.d.ts +90 -0
- package/dist/models/EndpointMachine.js +92 -0
- package/dist/models/EndpointReplicaCounts.d.ts +38 -0
- package/dist/models/EndpointReplicaCounts.js +54 -0
- package/dist/models/Job.d.ts +352 -0
- package/dist/models/Job.js +262 -0
- package/dist/models/JobAttempt.d.ts +176 -0
- package/dist/models/JobAttempt.js +155 -0
- package/dist/models/JobCreate.d.ts +153 -0
- package/dist/models/JobCreate.js +92 -0
- package/dist/models/JobGpuTypes.d.ts +39 -0
- package/dist/models/JobGpuTypes.js +55 -0
- package/dist/models/JobGpuTypesDataInner.d.ts +58 -0
- package/dist/models/JobGpuTypesDataInner.js +66 -0
- package/dist/models/JobLogChunk.d.ts +50 -0
- package/dist/models/JobLogChunk.js +62 -0
- package/dist/models/JobLogs.d.ts +39 -0
- package/dist/models/JobLogs.js +55 -0
- package/dist/models/JobPage.d.ts +39 -0
- package/dist/models/JobPage.js +55 -0
- package/dist/models/JobSharingHint.d.ts +46 -0
- package/dist/models/JobSharingHint.js +58 -0
- package/dist/models/JobTelemetry.d.ts +51 -0
- package/dist/models/JobTelemetry.js +63 -0
- package/dist/models/JobTelemetryPoint.d.ts +56 -0
- package/dist/models/JobTelemetryPoint.js +66 -0
- package/dist/models/JobTrial.d.ts +79 -0
- package/dist/models/JobTrial.js +81 -0
- package/dist/models/Secret.d.ts +62 -0
- package/dist/models/Secret.js +70 -0
- package/dist/models/SecretCreate.d.ts +44 -0
- package/dist/models/SecretCreate.js +56 -0
- package/dist/models/SecretImportItem.d.ts +38 -0
- package/dist/models/SecretImportItem.js +54 -0
- package/dist/models/SecretImportRequest.d.ts +39 -0
- package/dist/models/SecretImportRequest.js +53 -0
- package/dist/models/SecretImportResult.d.ts +44 -0
- package/dist/models/SecretImportResult.js +58 -0
- package/dist/models/SecretList.d.ts +33 -0
- package/dist/models/SecretList.js +51 -0
- package/dist/models/SecretPut.d.ts +38 -0
- package/dist/models/SecretPut.js +52 -0
- package/dist/models/WebhookEndpoint.d.ts +3 -0
- package/dist/models/WebhookEndpoint.js +4 -1
- package/dist/models/index.d.ts +25 -0
- package/dist/models/index.js +25 -0
- package/dist/runtime.js +1 -1
- package/docs/Balance.md +2 -0
- package/docs/BillingApi.md +2 -2
- package/docs/DedicatedIPOffer.md +56 -0
- package/docs/Endpoint.md +68 -0
- package/docs/EndpointCreate.md +50 -0
- package/docs/EndpointList.md +34 -0
- package/docs/EndpointMachine.md +50 -0
- package/docs/EndpointReplicaCounts.md +36 -0
- package/docs/EndpointsApi.md +544 -0
- package/docs/InstancesApi.md +68 -1
- package/docs/Job.md +125 -0
- package/docs/JobAttempt.md +69 -0
- package/docs/JobCreate.md +66 -0
- package/docs/JobGpuTypes.md +36 -0
- package/docs/JobGpuTypesDataInner.md +42 -0
- package/docs/JobLogChunk.md +40 -0
- package/docs/JobLogs.md +36 -0
- package/docs/JobPage.md +36 -0
- package/docs/JobSharingHint.md +39 -0
- package/docs/JobTelemetry.md +40 -0
- package/docs/JobTelemetryPoint.md +42 -0
- package/docs/JobTrial.md +46 -0
- package/docs/JobsApi.md +609 -0
- package/docs/OperationsApi.md +76 -0
- package/docs/Secret.md +45 -0
- package/docs/SecretCreate.md +38 -0
- package/docs/SecretImportItem.md +36 -0
- package/docs/SecretImportRequest.md +36 -0
- package/docs/SecretImportResult.md +38 -0
- package/docs/SecretList.md +34 -0
- package/docs/SecretPut.md +36 -0
- package/docs/SecretsApi.md +450 -0
- package/package.json +1 -1
- package/src/apis/BillingApi.ts +2 -2
- package/src/apis/EndpointsApi.ts +481 -0
- package/src/apis/InstancesApi.ts +52 -0
- package/src/apis/JobsApi.ts +551 -0
- package/src/apis/OperationsApi.ts +59 -0
- package/src/apis/SecretsApi.ts +413 -0
- package/src/apis/index.ts +3 -0
- package/src/models/Balance.ts +8 -0
- package/src/models/CreateWebhookEndpointRequest.ts +4 -1
- package/src/models/DedicatedIPOffer.ts +165 -0
- package/src/models/Endpoint.ts +247 -0
- package/src/models/EndpointCreate.ts +132 -0
- package/src/models/EndpointList.ts +74 -0
- package/src/models/EndpointMachine.ts +151 -0
- package/src/models/EndpointReplicaCounts.ts +75 -0
- package/src/models/Job.ts +538 -0
- package/src/models/JobAttempt.ts +267 -0
- package/src/models/JobCreate.ts +221 -0
- package/src/models/JobGpuTypes.ts +83 -0
- package/src/models/JobGpuTypesDataInner.ts +104 -0
- package/src/models/JobLogChunk.ts +93 -0
- package/src/models/JobLogs.ts +83 -0
- package/src/models/JobPage.ts +83 -0
- package/src/models/JobSharingHint.ts +86 -0
- package/src/models/JobTelemetry.ts +101 -0
- package/src/models/JobTelemetryPoint.ts +102 -0
- package/src/models/JobTrial.ts +132 -0
- package/src/models/Secret.ts +111 -0
- package/src/models/SecretCreate.ts +83 -0
- package/src/models/SecretImportItem.ts +75 -0
- package/src/models/SecretImportRequest.ts +82 -0
- package/src/models/SecretImportResult.ts +84 -0
- package/src/models/SecretList.ts +74 -0
- package/src/models/SecretPut.ts +74 -0
- package/src/models/WebhookEndpoint.ts +4 -1
- package/src/models/index.ts +25 -0
- package/src/runtime.ts +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GPU.ai Public Developer API
|
|
5
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@gpu.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the SecretImportResult interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSecretImportResult(value) {
|
|
18
|
+
if (!('created' in value) || value['created'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('updated' in value) || value['updated'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('skipped' in value) || value['skipped'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function SecretImportResultFromJSON(json) {
|
|
27
|
+
return SecretImportResultFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function SecretImportResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'created': json['created'],
|
|
35
|
+
'updated': json['updated'],
|
|
36
|
+
'skipped': json['skipped'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function SecretImportResultToJSON(json) {
|
|
40
|
+
return SecretImportResultToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function SecretImportResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'created': value['created'],
|
|
48
|
+
'updated': value['updated'],
|
|
49
|
+
'skipped': value['skipped'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import type { Secret } from './Secret';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SecretList
|
|
17
|
+
*/
|
|
18
|
+
export interface SecretList {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<Secret>}
|
|
22
|
+
* @memberof SecretList
|
|
23
|
+
*/
|
|
24
|
+
data: Array<Secret>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the SecretList interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfSecretList(value: object): value is SecretList;
|
|
30
|
+
export declare function SecretListFromJSON(json: any): SecretList;
|
|
31
|
+
export declare function SecretListFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretList;
|
|
32
|
+
export declare function SecretListToJSON(json: any): SecretList;
|
|
33
|
+
export declare function SecretListToJSONTyped(value?: SecretList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GPU.ai Public Developer API
|
|
5
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@gpu.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { SecretFromJSON, SecretToJSON, } from './Secret';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the SecretList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfSecretList(value) {
|
|
19
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function SecretListFromJSON(json) {
|
|
24
|
+
return SecretListFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function SecretListFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'data': (json['data'].map(SecretFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function SecretListToJSON(json) {
|
|
35
|
+
return SecretListToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function SecretListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'data': (value['data'].map(SecretToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SecretPut
|
|
16
|
+
*/
|
|
17
|
+
export interface SecretPut {
|
|
18
|
+
/**
|
|
19
|
+
* The secret value. Write-only; never returned.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SecretPut
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
/**
|
|
25
|
+
* Omit to keep the current description.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SecretPut
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SecretPut interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSecretPut(value: object): value is SecretPut;
|
|
35
|
+
export declare function SecretPutFromJSON(json: any): SecretPut;
|
|
36
|
+
export declare function SecretPutFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretPut;
|
|
37
|
+
export declare function SecretPutToJSON(json: any): SecretPut;
|
|
38
|
+
export declare function SecretPutToJSONTyped(value?: SecretPut | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GPU.ai Public Developer API
|
|
5
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@gpu.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the SecretPut interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSecretPut(value) {
|
|
18
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function SecretPutFromJSON(json) {
|
|
23
|
+
return SecretPutFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function SecretPutFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'value': json['value'],
|
|
31
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function SecretPutToJSON(json) {
|
|
35
|
+
return SecretPutToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function SecretPutToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'value': value['value'],
|
|
43
|
+
'description': value['description'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -62,6 +62,9 @@ export declare const WebhookEndpointEventTypesEnum: {
|
|
|
62
62
|
readonly InstanceFailed: "instance.failed";
|
|
63
63
|
readonly VideoCompleted: "video.completed";
|
|
64
64
|
readonly VideoFailed: "video.failed";
|
|
65
|
+
readonly WatchAlertFired: "watch.alert.fired";
|
|
66
|
+
readonly BalanceLow: "balance.low";
|
|
67
|
+
readonly BalanceExhausted: "balance.exhausted";
|
|
65
68
|
};
|
|
66
69
|
export type WebhookEndpointEventTypesEnum = typeof WebhookEndpointEventTypesEnum[keyof typeof WebhookEndpointEventTypesEnum];
|
|
67
70
|
/**
|
|
@@ -20,7 +20,10 @@ export const WebhookEndpointEventTypesEnum = {
|
|
|
20
20
|
InstanceTerminated: 'instance.terminated',
|
|
21
21
|
InstanceFailed: 'instance.failed',
|
|
22
22
|
VideoCompleted: 'video.completed',
|
|
23
|
-
VideoFailed: 'video.failed'
|
|
23
|
+
VideoFailed: 'video.failed',
|
|
24
|
+
WatchAlertFired: 'watch.alert.fired',
|
|
25
|
+
BalanceLow: 'balance.low',
|
|
26
|
+
BalanceExhausted: 'balance.exhausted'
|
|
24
27
|
};
|
|
25
28
|
/**
|
|
26
29
|
* Check if a given object implements the WebhookEndpoint interface.
|
|
@@ -36,12 +36,18 @@ export * from './CreateSshKeyRequest';
|
|
|
36
36
|
export * from './CreateWebhookEndpointRequest';
|
|
37
37
|
export * from './CryptoDeposit';
|
|
38
38
|
export * from './DataRetention';
|
|
39
|
+
export * from './DedicatedIPOffer';
|
|
39
40
|
export * from './DedicatedIPRequest';
|
|
40
41
|
export * from './Embedding';
|
|
41
42
|
export * from './EmbeddingsRequest';
|
|
42
43
|
export * from './EmbeddingsRequestInput';
|
|
43
44
|
export * from './EmbeddingsResponse';
|
|
44
45
|
export * from './EmbeddingsUsage';
|
|
46
|
+
export * from './Endpoint';
|
|
47
|
+
export * from './EndpointCreate';
|
|
48
|
+
export * from './EndpointList';
|
|
49
|
+
export * from './EndpointMachine';
|
|
50
|
+
export * from './EndpointReplicaCounts';
|
|
45
51
|
export * from './Environments';
|
|
46
52
|
export * from './FileObject';
|
|
47
53
|
export * from './FineTuningJob';
|
|
@@ -79,6 +85,18 @@ export * from './InstanceGpuMemory';
|
|
|
79
85
|
export * from './InstancePage';
|
|
80
86
|
export * from './Invoice';
|
|
81
87
|
export * from './InvoiceList';
|
|
88
|
+
export * from './Job';
|
|
89
|
+
export * from './JobAttempt';
|
|
90
|
+
export * from './JobCreate';
|
|
91
|
+
export * from './JobGpuTypes';
|
|
92
|
+
export * from './JobGpuTypesDataInner';
|
|
93
|
+
export * from './JobLogChunk';
|
|
94
|
+
export * from './JobLogs';
|
|
95
|
+
export * from './JobPage';
|
|
96
|
+
export * from './JobSharingHint';
|
|
97
|
+
export * from './JobTelemetry';
|
|
98
|
+
export * from './JobTelemetryPoint';
|
|
99
|
+
export * from './JobTrial';
|
|
82
100
|
export * from './ListCommunityMachines200Response';
|
|
83
101
|
export * from './ListDeposits200Response';
|
|
84
102
|
export * from './ListRegistryCredentials200Response';
|
|
@@ -103,6 +121,13 @@ export * from './RegisterCommunityMachineRequest';
|
|
|
103
121
|
export * from './RegistryCredential';
|
|
104
122
|
export * from './SSHKey';
|
|
105
123
|
export * from './SSHKeyPage';
|
|
124
|
+
export * from './Secret';
|
|
125
|
+
export * from './SecretCreate';
|
|
126
|
+
export * from './SecretImportItem';
|
|
127
|
+
export * from './SecretImportRequest';
|
|
128
|
+
export * from './SecretImportResult';
|
|
129
|
+
export * from './SecretList';
|
|
130
|
+
export * from './SecretPut';
|
|
106
131
|
export * from './SpendingLimit';
|
|
107
132
|
export * from './StreamOptions';
|
|
108
133
|
export * from './SupplierMachineView';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -38,12 +38,18 @@ export * from './CreateSshKeyRequest';
|
|
|
38
38
|
export * from './CreateWebhookEndpointRequest';
|
|
39
39
|
export * from './CryptoDeposit';
|
|
40
40
|
export * from './DataRetention';
|
|
41
|
+
export * from './DedicatedIPOffer';
|
|
41
42
|
export * from './DedicatedIPRequest';
|
|
42
43
|
export * from './Embedding';
|
|
43
44
|
export * from './EmbeddingsRequest';
|
|
44
45
|
export * from './EmbeddingsRequestInput';
|
|
45
46
|
export * from './EmbeddingsResponse';
|
|
46
47
|
export * from './EmbeddingsUsage';
|
|
48
|
+
export * from './Endpoint';
|
|
49
|
+
export * from './EndpointCreate';
|
|
50
|
+
export * from './EndpointList';
|
|
51
|
+
export * from './EndpointMachine';
|
|
52
|
+
export * from './EndpointReplicaCounts';
|
|
47
53
|
export * from './Environments';
|
|
48
54
|
export * from './FileObject';
|
|
49
55
|
export * from './FineTuningJob';
|
|
@@ -81,6 +87,18 @@ export * from './InstanceGpuMemory';
|
|
|
81
87
|
export * from './InstancePage';
|
|
82
88
|
export * from './Invoice';
|
|
83
89
|
export * from './InvoiceList';
|
|
90
|
+
export * from './Job';
|
|
91
|
+
export * from './JobAttempt';
|
|
92
|
+
export * from './JobCreate';
|
|
93
|
+
export * from './JobGpuTypes';
|
|
94
|
+
export * from './JobGpuTypesDataInner';
|
|
95
|
+
export * from './JobLogChunk';
|
|
96
|
+
export * from './JobLogs';
|
|
97
|
+
export * from './JobPage';
|
|
98
|
+
export * from './JobSharingHint';
|
|
99
|
+
export * from './JobTelemetry';
|
|
100
|
+
export * from './JobTelemetryPoint';
|
|
101
|
+
export * from './JobTrial';
|
|
84
102
|
export * from './ListCommunityMachines200Response';
|
|
85
103
|
export * from './ListDeposits200Response';
|
|
86
104
|
export * from './ListRegistryCredentials200Response';
|
|
@@ -105,6 +123,13 @@ export * from './RegisterCommunityMachineRequest';
|
|
|
105
123
|
export * from './RegistryCredential';
|
|
106
124
|
export * from './SSHKey';
|
|
107
125
|
export * from './SSHKeyPage';
|
|
126
|
+
export * from './Secret';
|
|
127
|
+
export * from './SecretCreate';
|
|
128
|
+
export * from './SecretImportItem';
|
|
129
|
+
export * from './SecretImportRequest';
|
|
130
|
+
export * from './SecretImportResult';
|
|
131
|
+
export * from './SecretList';
|
|
132
|
+
export * from './SecretPut';
|
|
108
133
|
export * from './SpendingLimit';
|
|
109
134
|
export * from './StreamOptions';
|
|
110
135
|
export * from './SupplierMachineView';
|
package/dist/esm/runtime.js
CHANGED
|
@@ -61,7 +61,7 @@ export class Configuration {
|
|
|
61
61
|
return undefined;
|
|
62
62
|
}
|
|
63
63
|
get headers() {
|
|
64
|
-
return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.5.
|
|
64
|
+
return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.5.5' }, this.configuration.headers);
|
|
65
65
|
}
|
|
66
66
|
get credentials() {
|
|
67
67
|
return this.configuration.credentials;
|
package/dist/models/Balance.d.ts
CHANGED
|
@@ -54,6 +54,12 @@ export interface Balance {
|
|
|
54
54
|
* @memberof Balance
|
|
55
55
|
*/
|
|
56
56
|
burnCentsPerHour: number | null;
|
|
57
|
+
/**
|
|
58
|
+
* How many hours the balance lasts at the current usage: the balance divided by `burn_cents_per_hour` plus serverless inference spend over the last hour, rounded to 2 places. `null` when nothing is running or the burn rate could not be determined; 0 when the balance is at or below $0 while burning. Machines stop when the balance reaches $0.
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof Balance
|
|
61
|
+
*/
|
|
62
|
+
runwayHours?: number | null;
|
|
57
63
|
}
|
|
58
64
|
/**
|
|
59
65
|
* Check if a given object implements the Balance interface.
|
package/dist/models/Balance.js
CHANGED
|
@@ -50,6 +50,7 @@ function BalanceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'autoPayThresholdCents': json['auto_pay_threshold_cents'],
|
|
51
51
|
'autoPayAmountCents': json['auto_pay_amount_cents'],
|
|
52
52
|
'burnCentsPerHour': json['burn_cents_per_hour'],
|
|
53
|
+
'runwayHours': json['runway_hours'] === undefined ? undefined : json['runway_hours'] === null ? null : json['runway_hours'],
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
56
|
function BalanceToJSON(json) {
|
|
@@ -66,5 +67,6 @@ function BalanceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
67
|
'auto_pay_threshold_cents': value['autoPayThresholdCents'],
|
|
67
68
|
'auto_pay_amount_cents': value['autoPayAmountCents'],
|
|
68
69
|
'burn_cents_per_hour': value['burnCentsPerHour'],
|
|
70
|
+
'runway_hours': value['runwayHours'],
|
|
69
71
|
};
|
|
70
72
|
}
|
|
@@ -38,6 +38,9 @@ export declare const CreateWebhookEndpointRequestEventTypesEnum: {
|
|
|
38
38
|
readonly InstanceFailed: "instance.failed";
|
|
39
39
|
readonly VideoCompleted: "video.completed";
|
|
40
40
|
readonly VideoFailed: "video.failed";
|
|
41
|
+
readonly WatchAlertFired: "watch.alert.fired";
|
|
42
|
+
readonly BalanceLow: "balance.low";
|
|
43
|
+
readonly BalanceExhausted: "balance.exhausted";
|
|
41
44
|
};
|
|
42
45
|
export type CreateWebhookEndpointRequestEventTypesEnum = typeof CreateWebhookEndpointRequestEventTypesEnum[keyof typeof CreateWebhookEndpointRequestEventTypesEnum];
|
|
43
46
|
/**
|
|
@@ -28,7 +28,10 @@ exports.CreateWebhookEndpointRequestEventTypesEnum = {
|
|
|
28
28
|
InstanceTerminated: 'instance.terminated',
|
|
29
29
|
InstanceFailed: 'instance.failed',
|
|
30
30
|
VideoCompleted: 'video.completed',
|
|
31
|
-
VideoFailed: 'video.failed'
|
|
31
|
+
VideoFailed: 'video.failed',
|
|
32
|
+
WatchAlertFired: 'watch.alert.fired',
|
|
33
|
+
BalanceLow: 'balance.low',
|
|
34
|
+
BalanceExhausted: 'balance.exhausted'
|
|
32
35
|
};
|
|
33
36
|
/**
|
|
34
37
|
* Check if a given object implements the CreateWebhookEndpointRequest interface.
|
|
@@ -0,0 +1,98 @@
|
|
|
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 DedicatedIPOffer
|
|
16
|
+
*/
|
|
17
|
+
export interface DedicatedIPOffer {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof DedicatedIPOffer
|
|
22
|
+
*/
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Ports and port ranges a launch may forward, e.g. `80,443,1024-65535`.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DedicatedIPOffer
|
|
28
|
+
*/
|
|
29
|
+
allowedPorts: string;
|
|
30
|
+
/**
|
|
31
|
+
* Ports forwarded when the request names none.
|
|
32
|
+
* @type {Array<number>}
|
|
33
|
+
* @memberof DedicatedIPOffer
|
|
34
|
+
*/
|
|
35
|
+
defaultPorts: Array<number>;
|
|
36
|
+
/**
|
|
37
|
+
* Most ports one address may forward.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof DedicatedIPOffer
|
|
40
|
+
*/
|
|
41
|
+
maxPorts: number;
|
|
42
|
+
/**
|
|
43
|
+
* USD per hour while attached, from the instance becoming running until release.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof DedicatedIPOffer
|
|
46
|
+
*/
|
|
47
|
+
hourlyFee: number;
|
|
48
|
+
/**
|
|
49
|
+
* USD per GB through the address, inbound and outbound.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof DedicatedIPOffer
|
|
52
|
+
*/
|
|
53
|
+
transferPricePerGb: number;
|
|
54
|
+
/**
|
|
55
|
+
* GB of transfer per attachment that is not charged.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof DedicatedIPOffer
|
|
58
|
+
*/
|
|
59
|
+
transferIncludedGb: number;
|
|
60
|
+
/**
|
|
61
|
+
* GB per attachment after which forwarding is suspended.
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof DedicatedIPOffer
|
|
64
|
+
*/
|
|
65
|
+
transferCapGb: number;
|
|
66
|
+
/**
|
|
67
|
+
* Most dedicated IPs the organization may hold at once.
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof DedicatedIPOffer
|
|
70
|
+
*/
|
|
71
|
+
orgLimit: number;
|
|
72
|
+
/**
|
|
73
|
+
* Dedicated IPs the organization holds now.
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof DedicatedIPOffer
|
|
76
|
+
*/
|
|
77
|
+
orgInUse: number;
|
|
78
|
+
/**
|
|
79
|
+
* Addresses free for a new launch right now.
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof DedicatedIPOffer
|
|
82
|
+
*/
|
|
83
|
+
available: number;
|
|
84
|
+
/**
|
|
85
|
+
* The acceptable use policy for dedicated IPs.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof DedicatedIPOffer
|
|
88
|
+
*/
|
|
89
|
+
acceptableUse: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the DedicatedIPOffer interface.
|
|
93
|
+
*/
|
|
94
|
+
export declare function instanceOfDedicatedIPOffer(value: object): value is DedicatedIPOffer;
|
|
95
|
+
export declare function DedicatedIPOfferFromJSON(json: any): DedicatedIPOffer;
|
|
96
|
+
export declare function DedicatedIPOfferFromJSONTyped(json: any, ignoreDiscriminator: boolean): DedicatedIPOffer;
|
|
97
|
+
export declare function DedicatedIPOfferToJSON(json: any): DedicatedIPOffer;
|
|
98
|
+
export declare function DedicatedIPOfferToJSONTyped(value?: DedicatedIPOffer | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,94 @@
|
|
|
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.instanceOfDedicatedIPOffer = instanceOfDedicatedIPOffer;
|
|
17
|
+
exports.DedicatedIPOfferFromJSON = DedicatedIPOfferFromJSON;
|
|
18
|
+
exports.DedicatedIPOfferFromJSONTyped = DedicatedIPOfferFromJSONTyped;
|
|
19
|
+
exports.DedicatedIPOfferToJSON = DedicatedIPOfferToJSON;
|
|
20
|
+
exports.DedicatedIPOfferToJSONTyped = DedicatedIPOfferToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DedicatedIPOffer interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDedicatedIPOffer(value) {
|
|
25
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('allowedPorts' in value) && !('allowed_ports' in value)) || (value['allowedPorts'] === undefined && value['allowed_ports'] === undefined))
|
|
28
|
+
return false;
|
|
29
|
+
if ((!('defaultPorts' in value) && !('default_ports' in value)) || (value['defaultPorts'] === undefined && value['default_ports'] === undefined))
|
|
30
|
+
return false;
|
|
31
|
+
if ((!('maxPorts' in value) && !('max_ports' in value)) || (value['maxPorts'] === undefined && value['max_ports'] === undefined))
|
|
32
|
+
return false;
|
|
33
|
+
if ((!('hourlyFee' in value) && !('hourly_fee' in value)) || (value['hourlyFee'] === undefined && value['hourly_fee'] === undefined))
|
|
34
|
+
return false;
|
|
35
|
+
if ((!('transferPricePerGb' in value) && !('transfer_price_per_gb' in value)) || (value['transferPricePerGb'] === undefined && value['transfer_price_per_gb'] === undefined))
|
|
36
|
+
return false;
|
|
37
|
+
if ((!('transferIncludedGb' in value) && !('transfer_included_gb' in value)) || (value['transferIncludedGb'] === undefined && value['transfer_included_gb'] === undefined))
|
|
38
|
+
return false;
|
|
39
|
+
if ((!('transferCapGb' in value) && !('transfer_cap_gb' in value)) || (value['transferCapGb'] === undefined && value['transfer_cap_gb'] === undefined))
|
|
40
|
+
return false;
|
|
41
|
+
if ((!('orgLimit' in value) && !('org_limit' in value)) || (value['orgLimit'] === undefined && value['org_limit'] === undefined))
|
|
42
|
+
return false;
|
|
43
|
+
if ((!('orgInUse' in value) && !('org_in_use' in value)) || (value['orgInUse'] === undefined && value['org_in_use'] === undefined))
|
|
44
|
+
return false;
|
|
45
|
+
if (!('available' in value) || value['available'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if ((!('acceptableUse' in value) && !('acceptable_use' in value)) || (value['acceptableUse'] === undefined && value['acceptable_use'] === undefined))
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function DedicatedIPOfferFromJSON(json) {
|
|
52
|
+
return DedicatedIPOfferFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function DedicatedIPOfferFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'enabled': json['enabled'],
|
|
60
|
+
'allowedPorts': json['allowed_ports'],
|
|
61
|
+
'defaultPorts': json['default_ports'],
|
|
62
|
+
'maxPorts': json['max_ports'],
|
|
63
|
+
'hourlyFee': json['hourly_fee'],
|
|
64
|
+
'transferPricePerGb': json['transfer_price_per_gb'],
|
|
65
|
+
'transferIncludedGb': json['transfer_included_gb'],
|
|
66
|
+
'transferCapGb': json['transfer_cap_gb'],
|
|
67
|
+
'orgLimit': json['org_limit'],
|
|
68
|
+
'orgInUse': json['org_in_use'],
|
|
69
|
+
'available': json['available'],
|
|
70
|
+
'acceptableUse': json['acceptable_use'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function DedicatedIPOfferToJSON(json) {
|
|
74
|
+
return DedicatedIPOfferToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
function DedicatedIPOfferToJSONTyped(value, ignoreDiscriminator = false) {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
'enabled': value['enabled'],
|
|
82
|
+
'allowed_ports': value['allowedPorts'],
|
|
83
|
+
'default_ports': value['defaultPorts'],
|
|
84
|
+
'max_ports': value['maxPorts'],
|
|
85
|
+
'hourly_fee': value['hourlyFee'],
|
|
86
|
+
'transfer_price_per_gb': value['transferPricePerGb'],
|
|
87
|
+
'transfer_included_gb': value['transferIncludedGb'],
|
|
88
|
+
'transfer_cap_gb': value['transferCapGb'],
|
|
89
|
+
'org_limit': value['orgLimit'],
|
|
90
|
+
'org_in_use': value['orgInUse'],
|
|
91
|
+
'available': value['available'],
|
|
92
|
+
'acceptable_use': value['acceptableUse'],
|
|
93
|
+
};
|
|
94
|
+
}
|