@gpuai/sdk 0.5.4 → 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/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/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/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/index.d.ts +25 -0
- package/dist/esm/models/index.js +25 -0
- package/dist/esm/runtime.js +1 -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/index.d.ts +25 -0
- package/dist/models/index.js +25 -0
- package/dist/runtime.js +1 -1
- 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 +67 -0
- 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/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/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/index.ts +25 -0
- package/src/runtime.ts +1 -1
|
@@ -0,0 +1,111 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* An organization secret's metadata. There is no value field: values are write-only and never returned.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Secret
|
|
20
|
+
*/
|
|
21
|
+
export interface Secret {
|
|
22
|
+
/**
|
|
23
|
+
* The secret's name, which is also the environment variable it is delivered as.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Secret
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Secret
|
|
32
|
+
*/
|
|
33
|
+
description: string;
|
|
34
|
+
/**
|
|
35
|
+
* How many times the value has been written. Starts at 1.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof Secret
|
|
38
|
+
*/
|
|
39
|
+
version: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof Secret
|
|
44
|
+
*/
|
|
45
|
+
createdAt: Date;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof Secret
|
|
50
|
+
*/
|
|
51
|
+
updatedAt: Date;
|
|
52
|
+
/**
|
|
53
|
+
* When the value was last delivered to a machine, or null.
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof Secret
|
|
56
|
+
*/
|
|
57
|
+
lastUsedAt: Date | null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the Secret interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfSecret(value: object): value is Secret {
|
|
64
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
65
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
66
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
67
|
+
if ((!('createdAt' in (value as Record<string, any>)) && !('created_at' in (value as Record<string, any>))) || ((value as Record<string, any>)['createdAt'] === undefined && (value as Record<string, any>)['created_at'] === undefined)) return false;
|
|
68
|
+
if ((!('updatedAt' in (value as Record<string, any>)) && !('updated_at' in (value as Record<string, any>))) || ((value as Record<string, any>)['updatedAt'] === undefined && (value as Record<string, any>)['updated_at'] === undefined)) return false;
|
|
69
|
+
if ((!('lastUsedAt' in (value as Record<string, any>)) && !('last_used_at' in (value as Record<string, any>))) || ((value as Record<string, any>)['lastUsedAt'] === undefined && (value as Record<string, any>)['last_used_at'] === undefined)) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function SecretFromJSON(json: any): Secret {
|
|
74
|
+
return SecretFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function SecretFromJSONTyped(json: any, ignoreDiscriminator: boolean): Secret {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'name': json['name'],
|
|
84
|
+
'description': json['description'],
|
|
85
|
+
'version': json['version'],
|
|
86
|
+
'createdAt': (new Date(json['created_at'])),
|
|
87
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
88
|
+
'lastUsedAt': (json['last_used_at'] == null ? null : new Date(json['last_used_at'])),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function SecretToJSON(json: any): Secret {
|
|
93
|
+
return SecretToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function SecretToJSONTyped(value?: Secret | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'name': value['name'],
|
|
104
|
+
'description': value['description'],
|
|
105
|
+
'version': value['version'],
|
|
106
|
+
'created_at': value['createdAt'].toISOString(),
|
|
107
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
108
|
+
'last_used_at': value['lastUsedAt'] == null ? value['lastUsedAt'] : value['lastUsedAt'].toISOString(),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SecretCreate
|
|
20
|
+
*/
|
|
21
|
+
export interface SecretCreate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SecretCreate
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* The secret value. Write-only; never returned.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SecretCreate
|
|
32
|
+
*/
|
|
33
|
+
value: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SecretCreate
|
|
38
|
+
*/
|
|
39
|
+
description?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the SecretCreate interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfSecretCreate(value: object): value is SecretCreate {
|
|
46
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SecretCreateFromJSON(json: any): SecretCreate {
|
|
52
|
+
return SecretCreateFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function SecretCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretCreate {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'name': json['name'],
|
|
62
|
+
'value': json['value'],
|
|
63
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function SecretCreateToJSON(json: any): SecretCreate {
|
|
68
|
+
return SecretCreateToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function SecretCreateToJSONTyped(value?: SecretCreate | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'name': value['name'],
|
|
79
|
+
'value': value['value'],
|
|
80
|
+
'description': value['description'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SecretImportItem
|
|
20
|
+
*/
|
|
21
|
+
export interface SecretImportItem {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SecretImportItem
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SecretImportItem
|
|
32
|
+
*/
|
|
33
|
+
value: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SecretImportItem interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSecretImportItem(value: object): value is SecretImportItem {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SecretImportItemFromJSON(json: any): SecretImportItem {
|
|
46
|
+
return SecretImportItemFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SecretImportItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretImportItem {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'value': json['value'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SecretImportItemToJSON(json: any): SecretImportItem {
|
|
61
|
+
return SecretImportItemToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SecretImportItemToJSONTyped(value?: SecretImportItem | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'value': value['value'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { SecretImportItem } from './SecretImportItem';
|
|
17
|
+
import {
|
|
18
|
+
SecretImportItemFromJSON,
|
|
19
|
+
SecretImportItemFromJSONTyped,
|
|
20
|
+
SecretImportItemToJSON,
|
|
21
|
+
SecretImportItemToJSONTyped,
|
|
22
|
+
} from './SecretImportItem';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SecretImportRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface SecretImportRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<SecretImportItem>}
|
|
33
|
+
* @memberof SecretImportRequest
|
|
34
|
+
*/
|
|
35
|
+
secrets: Array<SecretImportItem>;
|
|
36
|
+
/**
|
|
37
|
+
* Replace the values of secrets that already exist. False leaves them untouched.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof SecretImportRequest
|
|
40
|
+
*/
|
|
41
|
+
overwrite?: boolean;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the SecretImportRequest interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfSecretImportRequest(value: object): value is SecretImportRequest {
|
|
48
|
+
if (!('secrets' in value) || value['secrets'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function SecretImportRequestFromJSON(json: any): SecretImportRequest {
|
|
53
|
+
return SecretImportRequestFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function SecretImportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretImportRequest {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'secrets': ((json['secrets'] as Array<any>).map(SecretImportItemFromJSON)),
|
|
63
|
+
'overwrite': json['overwrite'] == null ? undefined : json['overwrite'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function SecretImportRequestToJSON(json: any): SecretImportRequest {
|
|
68
|
+
return SecretImportRequestToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function SecretImportRequestToJSONTyped(value?: SecretImportRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'secrets': ((value['secrets'] as Array<any>).map(SecretImportItemToJSON)),
|
|
79
|
+
'overwrite': value['overwrite'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SecretImportResult
|
|
20
|
+
*/
|
|
21
|
+
export interface SecretImportResult {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof SecretImportResult
|
|
26
|
+
*/
|
|
27
|
+
created: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof SecretImportResult
|
|
32
|
+
*/
|
|
33
|
+
updated: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Names that already existed and were left untouched (overwrite false).
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof SecretImportResult
|
|
38
|
+
*/
|
|
39
|
+
skipped: Array<string>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the SecretImportResult interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfSecretImportResult(value: object): value is SecretImportResult {
|
|
46
|
+
if (!('created' in value) || value['created'] === undefined) return false;
|
|
47
|
+
if (!('updated' in value) || value['updated'] === undefined) return false;
|
|
48
|
+
if (!('skipped' in value) || value['skipped'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function SecretImportResultFromJSON(json: any): SecretImportResult {
|
|
53
|
+
return SecretImportResultFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function SecretImportResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretImportResult {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'created': json['created'],
|
|
63
|
+
'updated': json['updated'],
|
|
64
|
+
'skipped': json['skipped'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function SecretImportResultToJSON(json: any): SecretImportResult {
|
|
69
|
+
return SecretImportResultToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function SecretImportResultToJSONTyped(value?: SecretImportResult | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'created': value['created'],
|
|
80
|
+
'updated': value['updated'],
|
|
81
|
+
'skipped': value['skipped'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Secret } from './Secret';
|
|
17
|
+
import {
|
|
18
|
+
SecretFromJSON,
|
|
19
|
+
SecretFromJSONTyped,
|
|
20
|
+
SecretToJSON,
|
|
21
|
+
SecretToJSONTyped,
|
|
22
|
+
} from './Secret';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SecretList
|
|
28
|
+
*/
|
|
29
|
+
export interface SecretList {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<Secret>}
|
|
33
|
+
* @memberof SecretList
|
|
34
|
+
*/
|
|
35
|
+
data: Array<Secret>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SecretList interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfSecretList(value: object): value is SecretList {
|
|
42
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function SecretListFromJSON(json: any): SecretList {
|
|
47
|
+
return SecretListFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function SecretListFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretList {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'data': ((json['data'] as Array<any>).map(SecretFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SecretListToJSON(json: any): SecretList {
|
|
61
|
+
return SecretListToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SecretListToJSONTyped(value?: SecretList | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'data': ((value['data'] as Array<any>).map(SecretToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SecretPut
|
|
20
|
+
*/
|
|
21
|
+
export interface SecretPut {
|
|
22
|
+
/**
|
|
23
|
+
* The secret value. Write-only; never returned.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SecretPut
|
|
26
|
+
*/
|
|
27
|
+
value: string;
|
|
28
|
+
/**
|
|
29
|
+
* Omit to keep the current description.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SecretPut
|
|
32
|
+
*/
|
|
33
|
+
description?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SecretPut interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSecretPut(value: object): value is SecretPut {
|
|
40
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function SecretPutFromJSON(json: any): SecretPut {
|
|
45
|
+
return SecretPutFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function SecretPutFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretPut {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'value': json['value'],
|
|
55
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SecretPutToJSON(json: any): SecretPut {
|
|
60
|
+
return SecretPutToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function SecretPutToJSONTyped(value?: SecretPut | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'value': value['value'],
|
|
71
|
+
'description': value['description'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
package/src/models/index.ts
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/src/runtime.ts
CHANGED
|
@@ -75,7 +75,7 @@ export class Configuration {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
get headers(): HTTPHeaders | undefined {
|
|
78
|
-
return { 'User-Agent': 'gpuai-sdk-ts/0.5.
|
|
78
|
+
return { 'User-Agent': 'gpuai-sdk-ts/0.5.5', ...this.configuration.headers };
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
get credentials(): RequestCredentials | undefined {
|