@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,56 @@
|
|
|
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 JobTelemetryPoint
|
|
16
|
+
*/
|
|
17
|
+
export interface JobTelemetryPoint {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof JobTelemetryPoint
|
|
22
|
+
*/
|
|
23
|
+
ts: Date;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof JobTelemetryPoint
|
|
28
|
+
*/
|
|
29
|
+
attempt: number;
|
|
30
|
+
/**
|
|
31
|
+
* The job's highest GPU memory use in the window, in MiB.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof JobTelemetryPoint
|
|
34
|
+
*/
|
|
35
|
+
memoryMb: number;
|
|
36
|
+
/**
|
|
37
|
+
* Memory in use on the whole GPU, all jobs included, in MiB.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof JobTelemetryPoint
|
|
40
|
+
*/
|
|
41
|
+
gpuMemoryMb: number | null;
|
|
42
|
+
/**
|
|
43
|
+
* Utilization of the whole GPU, in percent.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof JobTelemetryPoint
|
|
46
|
+
*/
|
|
47
|
+
gpuUtilPct: number | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the JobTelemetryPoint interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfJobTelemetryPoint(value: object): value is JobTelemetryPoint;
|
|
53
|
+
export declare function JobTelemetryPointFromJSON(json: any): JobTelemetryPoint;
|
|
54
|
+
export declare function JobTelemetryPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobTelemetryPoint;
|
|
55
|
+
export declare function JobTelemetryPointToJSON(json: any): JobTelemetryPoint;
|
|
56
|
+
export declare function JobTelemetryPointToJSONTyped(value?: JobTelemetryPoint | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.instanceOfJobTelemetryPoint = instanceOfJobTelemetryPoint;
|
|
17
|
+
exports.JobTelemetryPointFromJSON = JobTelemetryPointFromJSON;
|
|
18
|
+
exports.JobTelemetryPointFromJSONTyped = JobTelemetryPointFromJSONTyped;
|
|
19
|
+
exports.JobTelemetryPointToJSON = JobTelemetryPointToJSON;
|
|
20
|
+
exports.JobTelemetryPointToJSONTyped = JobTelemetryPointToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the JobTelemetryPoint interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfJobTelemetryPoint(value) {
|
|
25
|
+
if (!('ts' in value) || value['ts'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('attempt' in value) || value['attempt'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if ((!('memoryMb' in value) && !('memory_mb' in value)) || (value['memoryMb'] === undefined && value['memory_mb'] === undefined))
|
|
30
|
+
return false;
|
|
31
|
+
if ((!('gpuMemoryMb' in value) && !('gpu_memory_mb' in value)) || (value['gpuMemoryMb'] === undefined && value['gpu_memory_mb'] === undefined))
|
|
32
|
+
return false;
|
|
33
|
+
if ((!('gpuUtilPct' in value) && !('gpu_util_pct' in value)) || (value['gpuUtilPct'] === undefined && value['gpu_util_pct'] === undefined))
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function JobTelemetryPointFromJSON(json) {
|
|
38
|
+
return JobTelemetryPointFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function JobTelemetryPointFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'ts': (new Date(json['ts'])),
|
|
46
|
+
'attempt': json['attempt'],
|
|
47
|
+
'memoryMb': json['memory_mb'],
|
|
48
|
+
'gpuMemoryMb': json['gpu_memory_mb'],
|
|
49
|
+
'gpuUtilPct': json['gpu_util_pct'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function JobTelemetryPointToJSON(json) {
|
|
53
|
+
return JobTelemetryPointToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function JobTelemetryPointToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'ts': value['ts'].toISOString(),
|
|
61
|
+
'attempt': value['attempt'],
|
|
62
|
+
'memory_mb': value['memoryMb'],
|
|
63
|
+
'gpu_memory_mb': value['gpuMemoryMb'],
|
|
64
|
+
'gpu_util_pct': value['gpuUtilPct'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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 JobTrial
|
|
16
|
+
*/
|
|
17
|
+
export interface JobTrial {
|
|
18
|
+
/**
|
|
19
|
+
* False when this deployment runs no trial. Every other field is then zero.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof JobTrial
|
|
22
|
+
*/
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* True while this organization's jobs are credited back as they run.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof JobTrial
|
|
28
|
+
*/
|
|
29
|
+
eligible: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Why the organization is not eligible. Omitted when eligible.
|
|
32
|
+
* @type {JobTrialReasonEnum}
|
|
33
|
+
* @memberof JobTrial
|
|
34
|
+
*/
|
|
35
|
+
reason?: JobTrialReasonEnum;
|
|
36
|
+
/**
|
|
37
|
+
* The most the trial credits one organization, in cents.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof JobTrial
|
|
40
|
+
*/
|
|
41
|
+
capCents: number;
|
|
42
|
+
/**
|
|
43
|
+
* Trial credit added to the balance so far, in cents.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof JobTrial
|
|
46
|
+
*/
|
|
47
|
+
creditedCents: number;
|
|
48
|
+
/**
|
|
49
|
+
* How much more job cost the trial covers, in cents.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof JobTrial
|
|
52
|
+
*/
|
|
53
|
+
remainingCents: number;
|
|
54
|
+
/**
|
|
55
|
+
* The line to show the user, e.g. "Your first jobs are free, up to $10." Omitted when not eligible.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof JobTrial
|
|
58
|
+
*/
|
|
59
|
+
message?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const JobTrialReasonEnum: {
|
|
65
|
+
readonly Used: "used";
|
|
66
|
+
readonly ExistingUser: "existing_user";
|
|
67
|
+
readonly Internal: "internal";
|
|
68
|
+
readonly Frozen: "frozen";
|
|
69
|
+
readonly LinkedAccount: "linked_account";
|
|
70
|
+
};
|
|
71
|
+
export type JobTrialReasonEnum = typeof JobTrialReasonEnum[keyof typeof JobTrialReasonEnum];
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the JobTrial interface.
|
|
74
|
+
*/
|
|
75
|
+
export declare function instanceOfJobTrial(value: object): value is JobTrial;
|
|
76
|
+
export declare function JobTrialFromJSON(json: any): JobTrial;
|
|
77
|
+
export declare function JobTrialFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobTrial;
|
|
78
|
+
export declare function JobTrialToJSON(json: any): JobTrial;
|
|
79
|
+
export declare function JobTrialToJSONTyped(value?: JobTrial | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,81 @@
|
|
|
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.JobTrialReasonEnum = void 0;
|
|
17
|
+
exports.instanceOfJobTrial = instanceOfJobTrial;
|
|
18
|
+
exports.JobTrialFromJSON = JobTrialFromJSON;
|
|
19
|
+
exports.JobTrialFromJSONTyped = JobTrialFromJSONTyped;
|
|
20
|
+
exports.JobTrialToJSON = JobTrialToJSON;
|
|
21
|
+
exports.JobTrialToJSONTyped = JobTrialToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.JobTrialReasonEnum = {
|
|
26
|
+
Used: 'used',
|
|
27
|
+
ExistingUser: 'existing_user',
|
|
28
|
+
Internal: 'internal',
|
|
29
|
+
Frozen: 'frozen',
|
|
30
|
+
LinkedAccount: 'linked_account'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the JobTrial interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfJobTrial(value) {
|
|
36
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('eligible' in value) || value['eligible'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if ((!('capCents' in value) && !('cap_cents' in value)) || (value['capCents'] === undefined && value['cap_cents'] === undefined))
|
|
41
|
+
return false;
|
|
42
|
+
if ((!('creditedCents' in value) && !('credited_cents' in value)) || (value['creditedCents'] === undefined && value['credited_cents'] === undefined))
|
|
43
|
+
return false;
|
|
44
|
+
if ((!('remainingCents' in value) && !('remaining_cents' in value)) || (value['remainingCents'] === undefined && value['remaining_cents'] === undefined))
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
function JobTrialFromJSON(json) {
|
|
49
|
+
return JobTrialFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function JobTrialFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'enabled': json['enabled'],
|
|
57
|
+
'eligible': json['eligible'],
|
|
58
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
59
|
+
'capCents': json['cap_cents'],
|
|
60
|
+
'creditedCents': json['credited_cents'],
|
|
61
|
+
'remainingCents': json['remaining_cents'],
|
|
62
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function JobTrialToJSON(json) {
|
|
66
|
+
return JobTrialToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function JobTrialToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'enabled': value['enabled'],
|
|
74
|
+
'eligible': value['eligible'],
|
|
75
|
+
'reason': value['reason'],
|
|
76
|
+
'cap_cents': value['capCents'],
|
|
77
|
+
'credited_cents': value['creditedCents'],
|
|
78
|
+
'remaining_cents': value['remainingCents'],
|
|
79
|
+
'message': value['message'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GPU.ai Public Developer API
|
|
3
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@gpu.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* An organization secret's metadata. There is no value field: values are write-only and never returned.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Secret
|
|
16
|
+
*/
|
|
17
|
+
export interface Secret {
|
|
18
|
+
/**
|
|
19
|
+
* The secret's name, which is also the environment variable it is delivered as.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Secret
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Secret
|
|
28
|
+
*/
|
|
29
|
+
description: string;
|
|
30
|
+
/**
|
|
31
|
+
* How many times the value has been written. Starts at 1.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof Secret
|
|
34
|
+
*/
|
|
35
|
+
version: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof Secret
|
|
40
|
+
*/
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof Secret
|
|
46
|
+
*/
|
|
47
|
+
updatedAt: Date;
|
|
48
|
+
/**
|
|
49
|
+
* When the value was last delivered to a machine, or null.
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof Secret
|
|
52
|
+
*/
|
|
53
|
+
lastUsedAt: Date | null;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the Secret interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfSecret(value: object): value is Secret;
|
|
59
|
+
export declare function SecretFromJSON(json: any): Secret;
|
|
60
|
+
export declare function SecretFromJSONTyped(json: any, ignoreDiscriminator: boolean): Secret;
|
|
61
|
+
export declare function SecretToJSON(json: any): Secret;
|
|
62
|
+
export declare function SecretToJSONTyped(value?: Secret | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.instanceOfSecret = instanceOfSecret;
|
|
17
|
+
exports.SecretFromJSON = SecretFromJSON;
|
|
18
|
+
exports.SecretFromJSONTyped = SecretFromJSONTyped;
|
|
19
|
+
exports.SecretToJSON = SecretToJSON;
|
|
20
|
+
exports.SecretToJSONTyped = SecretToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Secret interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSecret(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined))
|
|
32
|
+
return false;
|
|
33
|
+
if ((!('updatedAt' in value) && !('updated_at' in value)) || (value['updatedAt'] === undefined && value['updated_at'] === undefined))
|
|
34
|
+
return false;
|
|
35
|
+
if ((!('lastUsedAt' in value) && !('last_used_at' in value)) || (value['lastUsedAt'] === undefined && value['last_used_at'] === undefined))
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function SecretFromJSON(json) {
|
|
40
|
+
return SecretFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function SecretFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'name': json['name'],
|
|
48
|
+
'description': json['description'],
|
|
49
|
+
'version': json['version'],
|
|
50
|
+
'createdAt': (new Date(json['created_at'])),
|
|
51
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
52
|
+
'lastUsedAt': (json['last_used_at'] == null ? null : new Date(json['last_used_at'])),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function SecretToJSON(json) {
|
|
56
|
+
return SecretToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function SecretToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'name': value['name'],
|
|
64
|
+
'description': value['description'],
|
|
65
|
+
'version': value['version'],
|
|
66
|
+
'created_at': value['createdAt'].toISOString(),
|
|
67
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
68
|
+
'last_used_at': value['lastUsedAt'] == null ? value['lastUsedAt'] : value['lastUsedAt'].toISOString(),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -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 SecretCreate
|
|
16
|
+
*/
|
|
17
|
+
export interface SecretCreate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SecretCreate
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* The secret value. Write-only; never returned.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SecretCreate
|
|
28
|
+
*/
|
|
29
|
+
value: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SecretCreate
|
|
34
|
+
*/
|
|
35
|
+
description?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SecretCreate interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfSecretCreate(value: object): value is SecretCreate;
|
|
41
|
+
export declare function SecretCreateFromJSON(json: any): SecretCreate;
|
|
42
|
+
export declare function SecretCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretCreate;
|
|
43
|
+
export declare function SecretCreateToJSON(json: any): SecretCreate;
|
|
44
|
+
export declare function SecretCreateToJSONTyped(value?: SecretCreate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfSecretCreate = instanceOfSecretCreate;
|
|
17
|
+
exports.SecretCreateFromJSON = SecretCreateFromJSON;
|
|
18
|
+
exports.SecretCreateFromJSONTyped = SecretCreateFromJSONTyped;
|
|
19
|
+
exports.SecretCreateToJSON = SecretCreateToJSON;
|
|
20
|
+
exports.SecretCreateToJSONTyped = SecretCreateToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SecretCreate interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSecretCreate(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function SecretCreateFromJSON(json) {
|
|
32
|
+
return SecretCreateFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function SecretCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'value': json['value'],
|
|
41
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function SecretCreateToJSON(json) {
|
|
45
|
+
return SecretCreateToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function SecretCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'value': value['value'],
|
|
54
|
+
'description': value['description'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -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 SecretImportItem
|
|
16
|
+
*/
|
|
17
|
+
export interface SecretImportItem {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SecretImportItem
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SecretImportItem
|
|
28
|
+
*/
|
|
29
|
+
value: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SecretImportItem interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSecretImportItem(value: object): value is SecretImportItem;
|
|
35
|
+
export declare function SecretImportItemFromJSON(json: any): SecretImportItem;
|
|
36
|
+
export declare function SecretImportItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretImportItem;
|
|
37
|
+
export declare function SecretImportItemToJSON(json: any): SecretImportItem;
|
|
38
|
+
export declare function SecretImportItemToJSONTyped(value?: SecretImportItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* GPU.ai Public Developer API
|
|
6
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@gpu.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSecretImportItem = instanceOfSecretImportItem;
|
|
17
|
+
exports.SecretImportItemFromJSON = SecretImportItemFromJSON;
|
|
18
|
+
exports.SecretImportItemFromJSONTyped = SecretImportItemFromJSONTyped;
|
|
19
|
+
exports.SecretImportItemToJSON = SecretImportItemToJSON;
|
|
20
|
+
exports.SecretImportItemToJSONTyped = SecretImportItemToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SecretImportItem interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSecretImportItem(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function SecretImportItemFromJSON(json) {
|
|
32
|
+
return SecretImportItemFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function SecretImportItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'value': json['value'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function SecretImportItemToJSON(json) {
|
|
44
|
+
return SecretImportItemToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function SecretImportItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'value': value['value'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { SecretImportItem } from './SecretImportItem';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SecretImportRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface SecretImportRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<SecretImportItem>}
|
|
22
|
+
* @memberof SecretImportRequest
|
|
23
|
+
*/
|
|
24
|
+
secrets: Array<SecretImportItem>;
|
|
25
|
+
/**
|
|
26
|
+
* Replace the values of secrets that already exist. False leaves them untouched.
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof SecretImportRequest
|
|
29
|
+
*/
|
|
30
|
+
overwrite?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the SecretImportRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfSecretImportRequest(value: object): value is SecretImportRequest;
|
|
36
|
+
export declare function SecretImportRequestFromJSON(json: any): SecretImportRequest;
|
|
37
|
+
export declare function SecretImportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretImportRequest;
|
|
38
|
+
export declare function SecretImportRequestToJSON(json: any): SecretImportRequest;
|
|
39
|
+
export declare function SecretImportRequestToJSONTyped(value?: SecretImportRequest | null, ignoreDiscriminator?: boolean): any;
|