@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,59 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * GPU.ai Public Developer API
5
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@gpu.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the JobTelemetryPoint interface.
16
+ */
17
+ export function instanceOfJobTelemetryPoint(value) {
18
+ if (!('ts' in value) || value['ts'] === undefined)
19
+ return false;
20
+ if (!('attempt' in value) || value['attempt'] === undefined)
21
+ return false;
22
+ if ((!('memoryMb' in value) && !('memory_mb' in value)) || (value['memoryMb'] === undefined && value['memory_mb'] === undefined))
23
+ return false;
24
+ if ((!('gpuMemoryMb' in value) && !('gpu_memory_mb' in value)) || (value['gpuMemoryMb'] === undefined && value['gpu_memory_mb'] === undefined))
25
+ return false;
26
+ if ((!('gpuUtilPct' in value) && !('gpu_util_pct' in value)) || (value['gpuUtilPct'] === undefined && value['gpu_util_pct'] === undefined))
27
+ return false;
28
+ return true;
29
+ }
30
+ export function JobTelemetryPointFromJSON(json) {
31
+ return JobTelemetryPointFromJSONTyped(json, false);
32
+ }
33
+ export function JobTelemetryPointFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'ts': (new Date(json['ts'])),
39
+ 'attempt': json['attempt'],
40
+ 'memoryMb': json['memory_mb'],
41
+ 'gpuMemoryMb': json['gpu_memory_mb'],
42
+ 'gpuUtilPct': json['gpu_util_pct'],
43
+ };
44
+ }
45
+ export function JobTelemetryPointToJSON(json) {
46
+ return JobTelemetryPointToJSONTyped(json, false);
47
+ }
48
+ export function JobTelemetryPointToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'ts': value['ts'].toISOString(),
54
+ 'attempt': value['attempt'],
55
+ 'memory_mb': value['memoryMb'],
56
+ 'gpu_memory_mb': value['gpuMemoryMb'],
57
+ 'gpu_util_pct': value['gpuUtilPct'],
58
+ };
59
+ }
@@ -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,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * GPU.ai Public Developer API
5
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@gpu.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const JobTrialReasonEnum = {
18
+ Used: 'used',
19
+ ExistingUser: 'existing_user',
20
+ Internal: 'internal',
21
+ Frozen: 'frozen',
22
+ LinkedAccount: 'linked_account'
23
+ };
24
+ /**
25
+ * Check if a given object implements the JobTrial interface.
26
+ */
27
+ export function instanceOfJobTrial(value) {
28
+ if (!('enabled' in value) || value['enabled'] === undefined)
29
+ return false;
30
+ if (!('eligible' in value) || value['eligible'] === undefined)
31
+ return false;
32
+ if ((!('capCents' in value) && !('cap_cents' in value)) || (value['capCents'] === undefined && value['cap_cents'] === undefined))
33
+ return false;
34
+ if ((!('creditedCents' in value) && !('credited_cents' in value)) || (value['creditedCents'] === undefined && value['credited_cents'] === undefined))
35
+ return false;
36
+ if ((!('remainingCents' in value) && !('remaining_cents' in value)) || (value['remainingCents'] === undefined && value['remaining_cents'] === undefined))
37
+ return false;
38
+ return true;
39
+ }
40
+ export function JobTrialFromJSON(json) {
41
+ return JobTrialFromJSONTyped(json, false);
42
+ }
43
+ export function JobTrialFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'enabled': json['enabled'],
49
+ 'eligible': json['eligible'],
50
+ 'reason': json['reason'] == null ? undefined : json['reason'],
51
+ 'capCents': json['cap_cents'],
52
+ 'creditedCents': json['credited_cents'],
53
+ 'remainingCents': json['remaining_cents'],
54
+ 'message': json['message'] == null ? undefined : json['message'],
55
+ };
56
+ }
57
+ export function JobTrialToJSON(json) {
58
+ return JobTrialToJSONTyped(json, false);
59
+ }
60
+ export function JobTrialToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'enabled': value['enabled'],
66
+ 'eligible': value['eligible'],
67
+ 'reason': value['reason'],
68
+ 'cap_cents': value['capCents'],
69
+ 'credited_cents': value['creditedCents'],
70
+ 'remaining_cents': value['remainingCents'],
71
+ 'message': value['message'],
72
+ };
73
+ }
@@ -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,63 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * GPU.ai Public Developer API
5
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@gpu.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the Secret interface.
16
+ */
17
+ export function instanceOfSecret(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ if (!('description' in value) || value['description'] === undefined)
21
+ return false;
22
+ if (!('version' in value) || value['version'] === undefined)
23
+ return false;
24
+ if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined))
25
+ return false;
26
+ if ((!('updatedAt' in value) && !('updated_at' in value)) || (value['updatedAt'] === undefined && value['updated_at'] === undefined))
27
+ return false;
28
+ if ((!('lastUsedAt' in value) && !('last_used_at' in value)) || (value['lastUsedAt'] === undefined && value['last_used_at'] === undefined))
29
+ return false;
30
+ return true;
31
+ }
32
+ export function SecretFromJSON(json) {
33
+ return SecretFromJSONTyped(json, false);
34
+ }
35
+ export function SecretFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'name': json['name'],
41
+ 'description': json['description'],
42
+ 'version': json['version'],
43
+ 'createdAt': (new Date(json['created_at'])),
44
+ 'updatedAt': (new Date(json['updated_at'])),
45
+ 'lastUsedAt': (json['last_used_at'] == null ? null : new Date(json['last_used_at'])),
46
+ };
47
+ }
48
+ export function SecretToJSON(json) {
49
+ return SecretToJSONTyped(json, false);
50
+ }
51
+ export function SecretToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'name': value['name'],
57
+ 'description': value['description'],
58
+ 'version': value['version'],
59
+ 'created_at': value['createdAt'].toISOString(),
60
+ 'updated_at': value['updatedAt'].toISOString(),
61
+ 'last_used_at': value['lastUsedAt'] == null ? value['lastUsedAt'] : value['lastUsedAt'].toISOString(),
62
+ };
63
+ }
@@ -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,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * GPU.ai Public Developer API
5
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@gpu.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the SecretCreate interface.
16
+ */
17
+ export function instanceOfSecretCreate(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ if (!('value' in value) || value['value'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function SecretCreateFromJSON(json) {
25
+ return SecretCreateFromJSONTyped(json, false);
26
+ }
27
+ export function SecretCreateFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'name': json['name'],
33
+ 'value': json['value'],
34
+ 'description': json['description'] == null ? undefined : json['description'],
35
+ };
36
+ }
37
+ export function SecretCreateToJSON(json) {
38
+ return SecretCreateToJSONTyped(json, false);
39
+ }
40
+ export function SecretCreateToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'name': value['name'],
46
+ 'value': value['value'],
47
+ 'description': value['description'],
48
+ };
49
+ }
@@ -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,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * GPU.ai Public Developer API
5
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@gpu.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the SecretImportItem interface.
16
+ */
17
+ export function instanceOfSecretImportItem(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ if (!('value' in value) || value['value'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function SecretImportItemFromJSON(json) {
25
+ return SecretImportItemFromJSONTyped(json, false);
26
+ }
27
+ export function SecretImportItemFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'name': json['name'],
33
+ 'value': json['value'],
34
+ };
35
+ }
36
+ export function SecretImportItemToJSON(json) {
37
+ return SecretImportItemToJSONTyped(json, false);
38
+ }
39
+ export function SecretImportItemToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'name': value['name'],
45
+ 'value': value['value'],
46
+ };
47
+ }
@@ -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;
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * GPU.ai Public Developer API
5
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@gpu.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { SecretImportItemFromJSON, SecretImportItemToJSON, } from './SecretImportItem';
15
+ /**
16
+ * Check if a given object implements the SecretImportRequest interface.
17
+ */
18
+ export function instanceOfSecretImportRequest(value) {
19
+ if (!('secrets' in value) || value['secrets'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function SecretImportRequestFromJSON(json) {
24
+ return SecretImportRequestFromJSONTyped(json, false);
25
+ }
26
+ export function SecretImportRequestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'secrets': (json['secrets'].map(SecretImportItemFromJSON)),
32
+ 'overwrite': json['overwrite'] == null ? undefined : json['overwrite'],
33
+ };
34
+ }
35
+ export function SecretImportRequestToJSON(json) {
36
+ return SecretImportRequestToJSONTyped(json, false);
37
+ }
38
+ export function SecretImportRequestToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'secrets': (value['secrets'].map(SecretImportItemToJSON)),
44
+ 'overwrite': value['overwrite'],
45
+ };
46
+ }
@@ -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;