@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.
Files changed (196) hide show
  1. package/.openapi-generator/FILES +56 -0
  2. package/README.md +50 -2
  3. package/dist/apis/EndpointsApi.d.ts +150 -0
  4. package/dist/apis/EndpointsApi.js +379 -0
  5. package/dist/apis/InstancesApi.d.ts +15 -0
  6. package/dist/apis/InstancesApi.js +45 -0
  7. package/dist/apis/JobsApi.d.ts +172 -0
  8. package/dist/apis/JobsApi.js +444 -0
  9. package/dist/apis/OperationsApi.d.ts +17 -0
  10. package/dist/apis/OperationsApi.js +48 -0
  11. package/dist/apis/SecretsApi.d.ts +123 -0
  12. package/dist/apis/SecretsApi.js +328 -0
  13. package/dist/apis/index.d.ts +3 -0
  14. package/dist/apis/index.js +3 -0
  15. package/dist/esm/apis/EndpointsApi.d.ts +150 -0
  16. package/dist/esm/apis/EndpointsApi.js +375 -0
  17. package/dist/esm/apis/InstancesApi.d.ts +15 -0
  18. package/dist/esm/apis/InstancesApi.js +45 -0
  19. package/dist/esm/apis/JobsApi.d.ts +172 -0
  20. package/dist/esm/apis/JobsApi.js +440 -0
  21. package/dist/esm/apis/OperationsApi.d.ts +17 -0
  22. package/dist/esm/apis/OperationsApi.js +48 -0
  23. package/dist/esm/apis/SecretsApi.d.ts +123 -0
  24. package/dist/esm/apis/SecretsApi.js +324 -0
  25. package/dist/esm/apis/index.d.ts +3 -0
  26. package/dist/esm/apis/index.js +3 -0
  27. package/dist/esm/models/DedicatedIPOffer.d.ts +98 -0
  28. package/dist/esm/models/DedicatedIPOffer.js +87 -0
  29. package/dist/esm/models/Endpoint.d.ts +147 -0
  30. package/dist/esm/models/Endpoint.js +121 -0
  31. package/dist/esm/models/EndpointCreate.d.ts +80 -0
  32. package/dist/esm/models/EndpointCreate.js +63 -0
  33. package/dist/esm/models/EndpointList.d.ts +33 -0
  34. package/dist/esm/models/EndpointList.js +44 -0
  35. package/dist/esm/models/EndpointMachine.d.ts +90 -0
  36. package/dist/esm/models/EndpointMachine.js +84 -0
  37. package/dist/esm/models/EndpointReplicaCounts.d.ts +38 -0
  38. package/dist/esm/models/EndpointReplicaCounts.js +47 -0
  39. package/dist/esm/models/Job.d.ts +352 -0
  40. package/dist/esm/models/Job.js +254 -0
  41. package/dist/esm/models/JobAttempt.d.ts +176 -0
  42. package/dist/esm/models/JobAttempt.js +147 -0
  43. package/dist/esm/models/JobCreate.d.ts +153 -0
  44. package/dist/esm/models/JobCreate.js +84 -0
  45. package/dist/esm/models/JobGpuTypes.d.ts +39 -0
  46. package/dist/esm/models/JobGpuTypes.js +48 -0
  47. package/dist/esm/models/JobGpuTypesDataInner.d.ts +58 -0
  48. package/dist/esm/models/JobGpuTypesDataInner.js +59 -0
  49. package/dist/esm/models/JobLogChunk.d.ts +50 -0
  50. package/dist/esm/models/JobLogChunk.js +55 -0
  51. package/dist/esm/models/JobLogs.d.ts +39 -0
  52. package/dist/esm/models/JobLogs.js +48 -0
  53. package/dist/esm/models/JobPage.d.ts +39 -0
  54. package/dist/esm/models/JobPage.js +48 -0
  55. package/dist/esm/models/JobSharingHint.d.ts +46 -0
  56. package/dist/esm/models/JobSharingHint.js +51 -0
  57. package/dist/esm/models/JobTelemetry.d.ts +51 -0
  58. package/dist/esm/models/JobTelemetry.js +56 -0
  59. package/dist/esm/models/JobTelemetryPoint.d.ts +56 -0
  60. package/dist/esm/models/JobTelemetryPoint.js +59 -0
  61. package/dist/esm/models/JobTrial.d.ts +79 -0
  62. package/dist/esm/models/JobTrial.js +73 -0
  63. package/dist/esm/models/Secret.d.ts +62 -0
  64. package/dist/esm/models/Secret.js +63 -0
  65. package/dist/esm/models/SecretCreate.d.ts +44 -0
  66. package/dist/esm/models/SecretCreate.js +49 -0
  67. package/dist/esm/models/SecretImportItem.d.ts +38 -0
  68. package/dist/esm/models/SecretImportItem.js +47 -0
  69. package/dist/esm/models/SecretImportRequest.d.ts +39 -0
  70. package/dist/esm/models/SecretImportRequest.js +46 -0
  71. package/dist/esm/models/SecretImportResult.d.ts +44 -0
  72. package/dist/esm/models/SecretImportResult.js +51 -0
  73. package/dist/esm/models/SecretList.d.ts +33 -0
  74. package/dist/esm/models/SecretList.js +44 -0
  75. package/dist/esm/models/SecretPut.d.ts +38 -0
  76. package/dist/esm/models/SecretPut.js +45 -0
  77. package/dist/esm/models/index.d.ts +25 -0
  78. package/dist/esm/models/index.js +25 -0
  79. package/dist/esm/runtime.js +1 -1
  80. package/dist/models/DedicatedIPOffer.d.ts +98 -0
  81. package/dist/models/DedicatedIPOffer.js +94 -0
  82. package/dist/models/Endpoint.d.ts +147 -0
  83. package/dist/models/Endpoint.js +129 -0
  84. package/dist/models/EndpointCreate.d.ts +80 -0
  85. package/dist/models/EndpointCreate.js +70 -0
  86. package/dist/models/EndpointList.d.ts +33 -0
  87. package/dist/models/EndpointList.js +51 -0
  88. package/dist/models/EndpointMachine.d.ts +90 -0
  89. package/dist/models/EndpointMachine.js +92 -0
  90. package/dist/models/EndpointReplicaCounts.d.ts +38 -0
  91. package/dist/models/EndpointReplicaCounts.js +54 -0
  92. package/dist/models/Job.d.ts +352 -0
  93. package/dist/models/Job.js +262 -0
  94. package/dist/models/JobAttempt.d.ts +176 -0
  95. package/dist/models/JobAttempt.js +155 -0
  96. package/dist/models/JobCreate.d.ts +153 -0
  97. package/dist/models/JobCreate.js +92 -0
  98. package/dist/models/JobGpuTypes.d.ts +39 -0
  99. package/dist/models/JobGpuTypes.js +55 -0
  100. package/dist/models/JobGpuTypesDataInner.d.ts +58 -0
  101. package/dist/models/JobGpuTypesDataInner.js +66 -0
  102. package/dist/models/JobLogChunk.d.ts +50 -0
  103. package/dist/models/JobLogChunk.js +62 -0
  104. package/dist/models/JobLogs.d.ts +39 -0
  105. package/dist/models/JobLogs.js +55 -0
  106. package/dist/models/JobPage.d.ts +39 -0
  107. package/dist/models/JobPage.js +55 -0
  108. package/dist/models/JobSharingHint.d.ts +46 -0
  109. package/dist/models/JobSharingHint.js +58 -0
  110. package/dist/models/JobTelemetry.d.ts +51 -0
  111. package/dist/models/JobTelemetry.js +63 -0
  112. package/dist/models/JobTelemetryPoint.d.ts +56 -0
  113. package/dist/models/JobTelemetryPoint.js +66 -0
  114. package/dist/models/JobTrial.d.ts +79 -0
  115. package/dist/models/JobTrial.js +81 -0
  116. package/dist/models/Secret.d.ts +62 -0
  117. package/dist/models/Secret.js +70 -0
  118. package/dist/models/SecretCreate.d.ts +44 -0
  119. package/dist/models/SecretCreate.js +56 -0
  120. package/dist/models/SecretImportItem.d.ts +38 -0
  121. package/dist/models/SecretImportItem.js +54 -0
  122. package/dist/models/SecretImportRequest.d.ts +39 -0
  123. package/dist/models/SecretImportRequest.js +53 -0
  124. package/dist/models/SecretImportResult.d.ts +44 -0
  125. package/dist/models/SecretImportResult.js +58 -0
  126. package/dist/models/SecretList.d.ts +33 -0
  127. package/dist/models/SecretList.js +51 -0
  128. package/dist/models/SecretPut.d.ts +38 -0
  129. package/dist/models/SecretPut.js +52 -0
  130. package/dist/models/index.d.ts +25 -0
  131. package/dist/models/index.js +25 -0
  132. package/dist/runtime.js +1 -1
  133. package/docs/DedicatedIPOffer.md +56 -0
  134. package/docs/Endpoint.md +68 -0
  135. package/docs/EndpointCreate.md +50 -0
  136. package/docs/EndpointList.md +34 -0
  137. package/docs/EndpointMachine.md +50 -0
  138. package/docs/EndpointReplicaCounts.md +36 -0
  139. package/docs/EndpointsApi.md +544 -0
  140. package/docs/InstancesApi.md +67 -0
  141. package/docs/Job.md +125 -0
  142. package/docs/JobAttempt.md +69 -0
  143. package/docs/JobCreate.md +66 -0
  144. package/docs/JobGpuTypes.md +36 -0
  145. package/docs/JobGpuTypesDataInner.md +42 -0
  146. package/docs/JobLogChunk.md +40 -0
  147. package/docs/JobLogs.md +36 -0
  148. package/docs/JobPage.md +36 -0
  149. package/docs/JobSharingHint.md +39 -0
  150. package/docs/JobTelemetry.md +40 -0
  151. package/docs/JobTelemetryPoint.md +42 -0
  152. package/docs/JobTrial.md +46 -0
  153. package/docs/JobsApi.md +609 -0
  154. package/docs/OperationsApi.md +76 -0
  155. package/docs/Secret.md +45 -0
  156. package/docs/SecretCreate.md +38 -0
  157. package/docs/SecretImportItem.md +36 -0
  158. package/docs/SecretImportRequest.md +36 -0
  159. package/docs/SecretImportResult.md +38 -0
  160. package/docs/SecretList.md +34 -0
  161. package/docs/SecretPut.md +36 -0
  162. package/docs/SecretsApi.md +450 -0
  163. package/package.json +1 -1
  164. package/src/apis/EndpointsApi.ts +481 -0
  165. package/src/apis/InstancesApi.ts +52 -0
  166. package/src/apis/JobsApi.ts +551 -0
  167. package/src/apis/OperationsApi.ts +59 -0
  168. package/src/apis/SecretsApi.ts +413 -0
  169. package/src/apis/index.ts +3 -0
  170. package/src/models/DedicatedIPOffer.ts +165 -0
  171. package/src/models/Endpoint.ts +247 -0
  172. package/src/models/EndpointCreate.ts +132 -0
  173. package/src/models/EndpointList.ts +74 -0
  174. package/src/models/EndpointMachine.ts +151 -0
  175. package/src/models/EndpointReplicaCounts.ts +75 -0
  176. package/src/models/Job.ts +538 -0
  177. package/src/models/JobAttempt.ts +267 -0
  178. package/src/models/JobCreate.ts +221 -0
  179. package/src/models/JobGpuTypes.ts +83 -0
  180. package/src/models/JobGpuTypesDataInner.ts +104 -0
  181. package/src/models/JobLogChunk.ts +93 -0
  182. package/src/models/JobLogs.ts +83 -0
  183. package/src/models/JobPage.ts +83 -0
  184. package/src/models/JobSharingHint.ts +86 -0
  185. package/src/models/JobTelemetry.ts +101 -0
  186. package/src/models/JobTelemetryPoint.ts +102 -0
  187. package/src/models/JobTrial.ts +132 -0
  188. package/src/models/Secret.ts +111 -0
  189. package/src/models/SecretCreate.ts +83 -0
  190. package/src/models/SecretImportItem.ts +75 -0
  191. package/src/models/SecretImportRequest.ts +82 -0
  192. package/src/models/SecretImportResult.ts +84 -0
  193. package/src/models/SecretList.ts +74 -0
  194. package/src/models/SecretPut.ts +74 -0
  195. package/src/models/index.ts +25 -0
  196. 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;