@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,53 @@
|
|
|
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.instanceOfSecretImportRequest = instanceOfSecretImportRequest;
|
|
17
|
+
exports.SecretImportRequestFromJSON = SecretImportRequestFromJSON;
|
|
18
|
+
exports.SecretImportRequestFromJSONTyped = SecretImportRequestFromJSONTyped;
|
|
19
|
+
exports.SecretImportRequestToJSON = SecretImportRequestToJSON;
|
|
20
|
+
exports.SecretImportRequestToJSONTyped = SecretImportRequestToJSONTyped;
|
|
21
|
+
const SecretImportItem_1 = require("./SecretImportItem");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SecretImportRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSecretImportRequest(value) {
|
|
26
|
+
if (!('secrets' in value) || value['secrets'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function SecretImportRequestFromJSON(json) {
|
|
31
|
+
return SecretImportRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function SecretImportRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'secrets': (json['secrets'].map(SecretImportItem_1.SecretImportItemFromJSON)),
|
|
39
|
+
'overwrite': json['overwrite'] == null ? undefined : json['overwrite'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function SecretImportRequestToJSON(json) {
|
|
43
|
+
return SecretImportRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function SecretImportRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'secrets': (value['secrets'].map(SecretImportItem_1.SecretImportItemToJSON)),
|
|
51
|
+
'overwrite': value['overwrite'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 SecretImportResult
|
|
16
|
+
*/
|
|
17
|
+
export interface SecretImportResult {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof SecretImportResult
|
|
22
|
+
*/
|
|
23
|
+
created: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof SecretImportResult
|
|
28
|
+
*/
|
|
29
|
+
updated: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Names that already existed and were left untouched (overwrite false).
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof SecretImportResult
|
|
34
|
+
*/
|
|
35
|
+
skipped: Array<string>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SecretImportResult interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfSecretImportResult(value: object): value is SecretImportResult;
|
|
41
|
+
export declare function SecretImportResultFromJSON(json: any): SecretImportResult;
|
|
42
|
+
export declare function SecretImportResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretImportResult;
|
|
43
|
+
export declare function SecretImportResultToJSON(json: any): SecretImportResult;
|
|
44
|
+
export declare function SecretImportResultToJSONTyped(value?: SecretImportResult | 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.instanceOfSecretImportResult = instanceOfSecretImportResult;
|
|
17
|
+
exports.SecretImportResultFromJSON = SecretImportResultFromJSON;
|
|
18
|
+
exports.SecretImportResultFromJSONTyped = SecretImportResultFromJSONTyped;
|
|
19
|
+
exports.SecretImportResultToJSON = SecretImportResultToJSON;
|
|
20
|
+
exports.SecretImportResultToJSONTyped = SecretImportResultToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SecretImportResult interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSecretImportResult(value) {
|
|
25
|
+
if (!('created' in value) || value['created'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('updated' in value) || value['updated'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('skipped' in value) || value['skipped'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function SecretImportResultFromJSON(json) {
|
|
34
|
+
return SecretImportResultFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function SecretImportResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'created': json['created'],
|
|
42
|
+
'updated': json['updated'],
|
|
43
|
+
'skipped': json['skipped'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function SecretImportResultToJSON(json) {
|
|
47
|
+
return SecretImportResultToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function SecretImportResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'created': value['created'],
|
|
55
|
+
'updated': value['updated'],
|
|
56
|
+
'skipped': value['skipped'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -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,51 @@
|
|
|
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.instanceOfSecretList = instanceOfSecretList;
|
|
17
|
+
exports.SecretListFromJSON = SecretListFromJSON;
|
|
18
|
+
exports.SecretListFromJSONTyped = SecretListFromJSONTyped;
|
|
19
|
+
exports.SecretListToJSON = SecretListToJSON;
|
|
20
|
+
exports.SecretListToJSONTyped = SecretListToJSONTyped;
|
|
21
|
+
const Secret_1 = require("./Secret");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SecretList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSecretList(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function SecretListFromJSON(json) {
|
|
31
|
+
return SecretListFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function SecretListFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'data': (json['data'].map(Secret_1.SecretFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function SecretListToJSON(json) {
|
|
42
|
+
return SecretListToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function SecretListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'data': (value['data'].map(Secret_1.SecretToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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,52 @@
|
|
|
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.instanceOfSecretPut = instanceOfSecretPut;
|
|
17
|
+
exports.SecretPutFromJSON = SecretPutFromJSON;
|
|
18
|
+
exports.SecretPutFromJSONTyped = SecretPutFromJSONTyped;
|
|
19
|
+
exports.SecretPutToJSON = SecretPutToJSON;
|
|
20
|
+
exports.SecretPutToJSONTyped = SecretPutToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SecretPut interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSecretPut(value) {
|
|
25
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SecretPutFromJSON(json) {
|
|
30
|
+
return SecretPutFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SecretPutFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'value': json['value'],
|
|
38
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function SecretPutToJSON(json) {
|
|
42
|
+
return SecretPutToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function SecretPutToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'value': value['value'],
|
|
50
|
+
'description': value['description'],
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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/models/index.js
CHANGED
|
@@ -54,12 +54,18 @@ __exportStar(require("./CreateSshKeyRequest"), exports);
|
|
|
54
54
|
__exportStar(require("./CreateWebhookEndpointRequest"), exports);
|
|
55
55
|
__exportStar(require("./CryptoDeposit"), exports);
|
|
56
56
|
__exportStar(require("./DataRetention"), exports);
|
|
57
|
+
__exportStar(require("./DedicatedIPOffer"), exports);
|
|
57
58
|
__exportStar(require("./DedicatedIPRequest"), exports);
|
|
58
59
|
__exportStar(require("./Embedding"), exports);
|
|
59
60
|
__exportStar(require("./EmbeddingsRequest"), exports);
|
|
60
61
|
__exportStar(require("./EmbeddingsRequestInput"), exports);
|
|
61
62
|
__exportStar(require("./EmbeddingsResponse"), exports);
|
|
62
63
|
__exportStar(require("./EmbeddingsUsage"), exports);
|
|
64
|
+
__exportStar(require("./Endpoint"), exports);
|
|
65
|
+
__exportStar(require("./EndpointCreate"), exports);
|
|
66
|
+
__exportStar(require("./EndpointList"), exports);
|
|
67
|
+
__exportStar(require("./EndpointMachine"), exports);
|
|
68
|
+
__exportStar(require("./EndpointReplicaCounts"), exports);
|
|
63
69
|
__exportStar(require("./Environments"), exports);
|
|
64
70
|
__exportStar(require("./FileObject"), exports);
|
|
65
71
|
__exportStar(require("./FineTuningJob"), exports);
|
|
@@ -97,6 +103,18 @@ __exportStar(require("./InstanceGpuMemory"), exports);
|
|
|
97
103
|
__exportStar(require("./InstancePage"), exports);
|
|
98
104
|
__exportStar(require("./Invoice"), exports);
|
|
99
105
|
__exportStar(require("./InvoiceList"), exports);
|
|
106
|
+
__exportStar(require("./Job"), exports);
|
|
107
|
+
__exportStar(require("./JobAttempt"), exports);
|
|
108
|
+
__exportStar(require("./JobCreate"), exports);
|
|
109
|
+
__exportStar(require("./JobGpuTypes"), exports);
|
|
110
|
+
__exportStar(require("./JobGpuTypesDataInner"), exports);
|
|
111
|
+
__exportStar(require("./JobLogChunk"), exports);
|
|
112
|
+
__exportStar(require("./JobLogs"), exports);
|
|
113
|
+
__exportStar(require("./JobPage"), exports);
|
|
114
|
+
__exportStar(require("./JobSharingHint"), exports);
|
|
115
|
+
__exportStar(require("./JobTelemetry"), exports);
|
|
116
|
+
__exportStar(require("./JobTelemetryPoint"), exports);
|
|
117
|
+
__exportStar(require("./JobTrial"), exports);
|
|
100
118
|
__exportStar(require("./ListCommunityMachines200Response"), exports);
|
|
101
119
|
__exportStar(require("./ListDeposits200Response"), exports);
|
|
102
120
|
__exportStar(require("./ListRegistryCredentials200Response"), exports);
|
|
@@ -121,6 +139,13 @@ __exportStar(require("./RegisterCommunityMachineRequest"), exports);
|
|
|
121
139
|
__exportStar(require("./RegistryCredential"), exports);
|
|
122
140
|
__exportStar(require("./SSHKey"), exports);
|
|
123
141
|
__exportStar(require("./SSHKeyPage"), exports);
|
|
142
|
+
__exportStar(require("./Secret"), exports);
|
|
143
|
+
__exportStar(require("./SecretCreate"), exports);
|
|
144
|
+
__exportStar(require("./SecretImportItem"), exports);
|
|
145
|
+
__exportStar(require("./SecretImportRequest"), exports);
|
|
146
|
+
__exportStar(require("./SecretImportResult"), exports);
|
|
147
|
+
__exportStar(require("./SecretList"), exports);
|
|
148
|
+
__exportStar(require("./SecretPut"), exports);
|
|
124
149
|
__exportStar(require("./SpendingLimit"), exports);
|
|
125
150
|
__exportStar(require("./StreamOptions"), exports);
|
|
126
151
|
__exportStar(require("./SupplierMachineView"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -69,7 +69,7 @@ class Configuration {
|
|
|
69
69
|
return undefined;
|
|
70
70
|
}
|
|
71
71
|
get headers() {
|
|
72
|
-
return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.5.
|
|
72
|
+
return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.5.5' }, this.configuration.headers);
|
|
73
73
|
}
|
|
74
74
|
get credentials() {
|
|
75
75
|
return this.configuration.credentials;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
|
|
2
|
+
# DedicatedIPOffer
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`enabled` | boolean
|
|
10
|
+
`allowedPorts` | string
|
|
11
|
+
`defaultPorts` | Array<number>
|
|
12
|
+
`maxPorts` | number
|
|
13
|
+
`hourlyFee` | number
|
|
14
|
+
`transferPricePerGb` | number
|
|
15
|
+
`transferIncludedGb` | number
|
|
16
|
+
`transferCapGb` | number
|
|
17
|
+
`orgLimit` | number
|
|
18
|
+
`orgInUse` | number
|
|
19
|
+
`available` | number
|
|
20
|
+
`acceptableUse` | string
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import type { DedicatedIPOffer } from '@gpuai/sdk'
|
|
26
|
+
|
|
27
|
+
// TODO: Update the object below with actual values
|
|
28
|
+
const example = {
|
|
29
|
+
"enabled": null,
|
|
30
|
+
"allowedPorts": 80,443,
|
|
31
|
+
"defaultPorts": [80, 443],
|
|
32
|
+
"maxPorts": 8,
|
|
33
|
+
"hourlyFee": 0.01,
|
|
34
|
+
"transferPricePerGb": 0.12,
|
|
35
|
+
"transferIncludedGb": 0,
|
|
36
|
+
"transferCapGb": 500,
|
|
37
|
+
"orgLimit": 2,
|
|
38
|
+
"orgInUse": null,
|
|
39
|
+
"available": null,
|
|
40
|
+
"acceptableUse": null,
|
|
41
|
+
} satisfies DedicatedIPOffer
|
|
42
|
+
|
|
43
|
+
console.log(example)
|
|
44
|
+
|
|
45
|
+
// Convert the instance to a JSON string
|
|
46
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
47
|
+
console.log(exampleJSON)
|
|
48
|
+
|
|
49
|
+
// Parse the JSON string back to an object
|
|
50
|
+
const exampleParsed = JSON.parse(exampleJSON) as DedicatedIPOffer
|
|
51
|
+
console.log(exampleParsed)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
55
|
+
|
|
56
|
+
|
package/docs/Endpoint.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
|
|
2
|
+
# Endpoint
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
`model` | string
|
|
12
|
+
`gpuType` | string
|
|
13
|
+
`status` | string
|
|
14
|
+
`url` | string
|
|
15
|
+
`minReplicas` | number
|
|
16
|
+
`maxReplicas` | number
|
|
17
|
+
`idleTimeout` | number
|
|
18
|
+
`targetConcurrency` | number
|
|
19
|
+
`maxPricePerHour` | number
|
|
20
|
+
`hfTokenSecret` | string
|
|
21
|
+
`replicas` | [EndpointReplicaCounts](EndpointReplicaCounts.md)
|
|
22
|
+
`requestCount` | number
|
|
23
|
+
`lastRequestAt` | Date
|
|
24
|
+
`lastError` | string
|
|
25
|
+
`createdAt` | Date
|
|
26
|
+
`machines` | [Array<EndpointMachine>](EndpointMachine.md)
|
|
27
|
+
|
|
28
|
+
## Example
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import type { Endpoint } from '@gpuai/sdk'
|
|
32
|
+
|
|
33
|
+
// TODO: Update the object below with actual values
|
|
34
|
+
const example = {
|
|
35
|
+
"id": null,
|
|
36
|
+
"name": null,
|
|
37
|
+
"model": null,
|
|
38
|
+
"gpuType": null,
|
|
39
|
+
"status": null,
|
|
40
|
+
"url": https://api.gpu.ai/v1/endpoints/3f1c2a7e-0000-4000-8000-000000000000/openai/v1,
|
|
41
|
+
"minReplicas": null,
|
|
42
|
+
"maxReplicas": null,
|
|
43
|
+
"idleTimeout": null,
|
|
44
|
+
"targetConcurrency": null,
|
|
45
|
+
"maxPricePerHour": null,
|
|
46
|
+
"hfTokenSecret": null,
|
|
47
|
+
"replicas": null,
|
|
48
|
+
"requestCount": null,
|
|
49
|
+
"lastRequestAt": null,
|
|
50
|
+
"lastError": null,
|
|
51
|
+
"createdAt": null,
|
|
52
|
+
"machines": null,
|
|
53
|
+
} satisfies Endpoint
|
|
54
|
+
|
|
55
|
+
console.log(example)
|
|
56
|
+
|
|
57
|
+
// Convert the instance to a JSON string
|
|
58
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
59
|
+
console.log(exampleJSON)
|
|
60
|
+
|
|
61
|
+
// Parse the JSON string back to an object
|
|
62
|
+
const exampleParsed = JSON.parse(exampleJSON) as Endpoint
|
|
63
|
+
console.log(exampleParsed)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
67
|
+
|
|
68
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# EndpointCreate
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`model` | string
|
|
11
|
+
`gpuType` | string
|
|
12
|
+
`minReplicas` | number
|
|
13
|
+
`maxReplicas` | number
|
|
14
|
+
`idleTimeout` | number
|
|
15
|
+
`targetConcurrency` | number
|
|
16
|
+
`maxPricePerHour` | number
|
|
17
|
+
`hfTokenSecret` | string
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { EndpointCreate } from '@gpuai/sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"name": qwen-small,
|
|
27
|
+
"model": Qwen/Qwen2.5-0.5B-Instruct,
|
|
28
|
+
"gpuType": rtx_4090,
|
|
29
|
+
"minReplicas": null,
|
|
30
|
+
"maxReplicas": null,
|
|
31
|
+
"idleTimeout": null,
|
|
32
|
+
"targetConcurrency": null,
|
|
33
|
+
"maxPricePerHour": null,
|
|
34
|
+
"hfTokenSecret": null,
|
|
35
|
+
} satisfies EndpointCreate
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as EndpointCreate
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# EndpointList
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<Endpoint>](Endpoint.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { EndpointList } from '@gpuai/sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies EndpointList
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as EndpointList
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|