@gpuai/sdk 0.5.4 → 0.5.6

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 (202) 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/Operation.d.ts +6 -0
  64. package/dist/esm/models/Operation.js +2 -0
  65. package/dist/esm/models/Secret.d.ts +62 -0
  66. package/dist/esm/models/Secret.js +63 -0
  67. package/dist/esm/models/SecretCreate.d.ts +44 -0
  68. package/dist/esm/models/SecretCreate.js +49 -0
  69. package/dist/esm/models/SecretImportItem.d.ts +38 -0
  70. package/dist/esm/models/SecretImportItem.js +47 -0
  71. package/dist/esm/models/SecretImportRequest.d.ts +39 -0
  72. package/dist/esm/models/SecretImportRequest.js +46 -0
  73. package/dist/esm/models/SecretImportResult.d.ts +44 -0
  74. package/dist/esm/models/SecretImportResult.js +51 -0
  75. package/dist/esm/models/SecretList.d.ts +33 -0
  76. package/dist/esm/models/SecretList.js +44 -0
  77. package/dist/esm/models/SecretPut.d.ts +38 -0
  78. package/dist/esm/models/SecretPut.js +45 -0
  79. package/dist/esm/models/index.d.ts +25 -0
  80. package/dist/esm/models/index.js +25 -0
  81. package/dist/esm/runtime.js +1 -1
  82. package/dist/models/DedicatedIPOffer.d.ts +98 -0
  83. package/dist/models/DedicatedIPOffer.js +94 -0
  84. package/dist/models/Endpoint.d.ts +147 -0
  85. package/dist/models/Endpoint.js +129 -0
  86. package/dist/models/EndpointCreate.d.ts +80 -0
  87. package/dist/models/EndpointCreate.js +70 -0
  88. package/dist/models/EndpointList.d.ts +33 -0
  89. package/dist/models/EndpointList.js +51 -0
  90. package/dist/models/EndpointMachine.d.ts +90 -0
  91. package/dist/models/EndpointMachine.js +92 -0
  92. package/dist/models/EndpointReplicaCounts.d.ts +38 -0
  93. package/dist/models/EndpointReplicaCounts.js +54 -0
  94. package/dist/models/Job.d.ts +352 -0
  95. package/dist/models/Job.js +262 -0
  96. package/dist/models/JobAttempt.d.ts +176 -0
  97. package/dist/models/JobAttempt.js +155 -0
  98. package/dist/models/JobCreate.d.ts +153 -0
  99. package/dist/models/JobCreate.js +92 -0
  100. package/dist/models/JobGpuTypes.d.ts +39 -0
  101. package/dist/models/JobGpuTypes.js +55 -0
  102. package/dist/models/JobGpuTypesDataInner.d.ts +58 -0
  103. package/dist/models/JobGpuTypesDataInner.js +66 -0
  104. package/dist/models/JobLogChunk.d.ts +50 -0
  105. package/dist/models/JobLogChunk.js +62 -0
  106. package/dist/models/JobLogs.d.ts +39 -0
  107. package/dist/models/JobLogs.js +55 -0
  108. package/dist/models/JobPage.d.ts +39 -0
  109. package/dist/models/JobPage.js +55 -0
  110. package/dist/models/JobSharingHint.d.ts +46 -0
  111. package/dist/models/JobSharingHint.js +58 -0
  112. package/dist/models/JobTelemetry.d.ts +51 -0
  113. package/dist/models/JobTelemetry.js +63 -0
  114. package/dist/models/JobTelemetryPoint.d.ts +56 -0
  115. package/dist/models/JobTelemetryPoint.js +66 -0
  116. package/dist/models/JobTrial.d.ts +79 -0
  117. package/dist/models/JobTrial.js +81 -0
  118. package/dist/models/Operation.d.ts +6 -0
  119. package/dist/models/Operation.js +2 -0
  120. package/dist/models/Secret.d.ts +62 -0
  121. package/dist/models/Secret.js +70 -0
  122. package/dist/models/SecretCreate.d.ts +44 -0
  123. package/dist/models/SecretCreate.js +56 -0
  124. package/dist/models/SecretImportItem.d.ts +38 -0
  125. package/dist/models/SecretImportItem.js +54 -0
  126. package/dist/models/SecretImportRequest.d.ts +39 -0
  127. package/dist/models/SecretImportRequest.js +53 -0
  128. package/dist/models/SecretImportResult.d.ts +44 -0
  129. package/dist/models/SecretImportResult.js +58 -0
  130. package/dist/models/SecretList.d.ts +33 -0
  131. package/dist/models/SecretList.js +51 -0
  132. package/dist/models/SecretPut.d.ts +38 -0
  133. package/dist/models/SecretPut.js +52 -0
  134. package/dist/models/index.d.ts +25 -0
  135. package/dist/models/index.js +25 -0
  136. package/dist/runtime.js +1 -1
  137. package/docs/DedicatedIPOffer.md +56 -0
  138. package/docs/Endpoint.md +68 -0
  139. package/docs/EndpointCreate.md +50 -0
  140. package/docs/EndpointList.md +34 -0
  141. package/docs/EndpointMachine.md +50 -0
  142. package/docs/EndpointReplicaCounts.md +36 -0
  143. package/docs/EndpointsApi.md +544 -0
  144. package/docs/InstancesApi.md +68 -1
  145. package/docs/Job.md +125 -0
  146. package/docs/JobAttempt.md +69 -0
  147. package/docs/JobCreate.md +66 -0
  148. package/docs/JobGpuTypes.md +36 -0
  149. package/docs/JobGpuTypesDataInner.md +42 -0
  150. package/docs/JobLogChunk.md +40 -0
  151. package/docs/JobLogs.md +36 -0
  152. package/docs/JobPage.md +36 -0
  153. package/docs/JobSharingHint.md +39 -0
  154. package/docs/JobTelemetry.md +40 -0
  155. package/docs/JobTelemetryPoint.md +42 -0
  156. package/docs/JobTrial.md +46 -0
  157. package/docs/JobsApi.md +609 -0
  158. package/docs/Operation.md +2 -0
  159. package/docs/OperationsApi.md +76 -0
  160. package/docs/Secret.md +45 -0
  161. package/docs/SecretCreate.md +38 -0
  162. package/docs/SecretImportItem.md +36 -0
  163. package/docs/SecretImportRequest.md +36 -0
  164. package/docs/SecretImportResult.md +38 -0
  165. package/docs/SecretList.md +34 -0
  166. package/docs/SecretPut.md +36 -0
  167. package/docs/SecretsApi.md +450 -0
  168. package/package.json +1 -1
  169. package/src/apis/EndpointsApi.ts +481 -0
  170. package/src/apis/InstancesApi.ts +52 -0
  171. package/src/apis/JobsApi.ts +551 -0
  172. package/src/apis/OperationsApi.ts +59 -0
  173. package/src/apis/SecretsApi.ts +413 -0
  174. package/src/apis/index.ts +3 -0
  175. package/src/models/DedicatedIPOffer.ts +165 -0
  176. package/src/models/Endpoint.ts +247 -0
  177. package/src/models/EndpointCreate.ts +132 -0
  178. package/src/models/EndpointList.ts +74 -0
  179. package/src/models/EndpointMachine.ts +151 -0
  180. package/src/models/EndpointReplicaCounts.ts +75 -0
  181. package/src/models/Job.ts +538 -0
  182. package/src/models/JobAttempt.ts +267 -0
  183. package/src/models/JobCreate.ts +221 -0
  184. package/src/models/JobGpuTypes.ts +83 -0
  185. package/src/models/JobGpuTypesDataInner.ts +104 -0
  186. package/src/models/JobLogChunk.ts +93 -0
  187. package/src/models/JobLogs.ts +83 -0
  188. package/src/models/JobPage.ts +83 -0
  189. package/src/models/JobSharingHint.ts +86 -0
  190. package/src/models/JobTelemetry.ts +101 -0
  191. package/src/models/JobTelemetryPoint.ts +102 -0
  192. package/src/models/JobTrial.ts +132 -0
  193. package/src/models/Operation.ts +8 -0
  194. package/src/models/Secret.ts +111 -0
  195. package/src/models/SecretCreate.ts +83 -0
  196. package/src/models/SecretImportItem.ts +75 -0
  197. package/src/models/SecretImportRequest.ts +82 -0
  198. package/src/models/SecretImportResult.ts +84 -0
  199. package/src/models/SecretList.ts +74 -0
  200. package/src/models/SecretPut.ts +74 -0
  201. package/src/models/index.ts +25 -0
  202. package/src/runtime.ts +1 -1
@@ -0,0 +1,58 @@
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 JobGpuTypesDataInner
16
+ */
17
+ export interface JobGpuTypesDataInner {
18
+ /**
19
+ * The GPU model, as `gpu_type` in `POST /jobs`.
20
+ * @type {string}
21
+ * @memberof JobGpuTypesDataInner
22
+ */
23
+ gpuType: string;
24
+ /**
25
+ * The GPU's memory in GB.
26
+ * @type {number}
27
+ * @memberof JobGpuTypesDataInner
28
+ */
29
+ vramGb: number;
30
+ /**
31
+ * True when a supplier that runs jobs had a one-GPU machine of this type to rent at the last catalog read, a few minutes ago. False means it was only seen earlier: a job for it is accepted and waits for one.
32
+ *
33
+ * @type {boolean}
34
+ * @memberof JobGpuTypesDataInner
35
+ */
36
+ availableNow: boolean;
37
+ /**
38
+ * Cheapest retail price in USD per GPU-hour of such a machine at that read. Null when not available now.
39
+ *
40
+ * @type {number}
41
+ * @memberof JobGpuTypesDataInner
42
+ */
43
+ pricePerGpuHour: number | null;
44
+ /**
45
+ * When a supplier that runs jobs last listed the type.
46
+ * @type {Date}
47
+ * @memberof JobGpuTypesDataInner
48
+ */
49
+ lastSeenAt: Date | null;
50
+ }
51
+ /**
52
+ * Check if a given object implements the JobGpuTypesDataInner interface.
53
+ */
54
+ export declare function instanceOfJobGpuTypesDataInner(value: object): value is JobGpuTypesDataInner;
55
+ export declare function JobGpuTypesDataInnerFromJSON(json: any): JobGpuTypesDataInner;
56
+ export declare function JobGpuTypesDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobGpuTypesDataInner;
57
+ export declare function JobGpuTypesDataInnerToJSON(json: any): JobGpuTypesDataInner;
58
+ export declare function JobGpuTypesDataInnerToJSONTyped(value?: JobGpuTypesDataInner | 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.instanceOfJobGpuTypesDataInner = instanceOfJobGpuTypesDataInner;
17
+ exports.JobGpuTypesDataInnerFromJSON = JobGpuTypesDataInnerFromJSON;
18
+ exports.JobGpuTypesDataInnerFromJSONTyped = JobGpuTypesDataInnerFromJSONTyped;
19
+ exports.JobGpuTypesDataInnerToJSON = JobGpuTypesDataInnerToJSON;
20
+ exports.JobGpuTypesDataInnerToJSONTyped = JobGpuTypesDataInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the JobGpuTypesDataInner interface.
23
+ */
24
+ function instanceOfJobGpuTypesDataInner(value) {
25
+ if ((!('gpuType' in value) && !('gpu_type' in value)) || (value['gpuType'] === undefined && value['gpu_type'] === undefined))
26
+ return false;
27
+ if ((!('vramGb' in value) && !('vram_gb' in value)) || (value['vramGb'] === undefined && value['vram_gb'] === undefined))
28
+ return false;
29
+ if ((!('availableNow' in value) && !('available_now' in value)) || (value['availableNow'] === undefined && value['available_now'] === undefined))
30
+ return false;
31
+ if ((!('pricePerGpuHour' in value) && !('price_per_gpu_hour' in value)) || (value['pricePerGpuHour'] === undefined && value['price_per_gpu_hour'] === undefined))
32
+ return false;
33
+ if ((!('lastSeenAt' in value) && !('last_seen_at' in value)) || (value['lastSeenAt'] === undefined && value['last_seen_at'] === undefined))
34
+ return false;
35
+ return true;
36
+ }
37
+ function JobGpuTypesDataInnerFromJSON(json) {
38
+ return JobGpuTypesDataInnerFromJSONTyped(json, false);
39
+ }
40
+ function JobGpuTypesDataInnerFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'gpuType': json['gpu_type'],
46
+ 'vramGb': json['vram_gb'],
47
+ 'availableNow': json['available_now'],
48
+ 'pricePerGpuHour': json['price_per_gpu_hour'],
49
+ 'lastSeenAt': (json['last_seen_at'] == null ? null : new Date(json['last_seen_at'])),
50
+ };
51
+ }
52
+ function JobGpuTypesDataInnerToJSON(json) {
53
+ return JobGpuTypesDataInnerToJSONTyped(json, false);
54
+ }
55
+ function JobGpuTypesDataInnerToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'gpu_type': value['gpuType'],
61
+ 'vram_gb': value['vramGb'],
62
+ 'available_now': value['availableNow'],
63
+ 'price_per_gpu_hour': value['pricePerGpuHour'],
64
+ 'last_seen_at': value['lastSeenAt'] == null ? value['lastSeenAt'] : value['lastSeenAt'].toISOString(),
65
+ };
66
+ }
@@ -0,0 +1,50 @@
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 JobLogChunk
16
+ */
17
+ export interface JobLogChunk {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof JobLogChunk
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof JobLogChunk
28
+ */
29
+ attempt: number;
30
+ /**
31
+ * A piece of the job's combined output, at most 16 KB.
32
+ * @type {string}
33
+ * @memberof JobLogChunk
34
+ */
35
+ text: string;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof JobLogChunk
40
+ */
41
+ createdAt: Date;
42
+ }
43
+ /**
44
+ * Check if a given object implements the JobLogChunk interface.
45
+ */
46
+ export declare function instanceOfJobLogChunk(value: object): value is JobLogChunk;
47
+ export declare function JobLogChunkFromJSON(json: any): JobLogChunk;
48
+ export declare function JobLogChunkFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobLogChunk;
49
+ export declare function JobLogChunkToJSON(json: any): JobLogChunk;
50
+ export declare function JobLogChunkToJSONTyped(value?: JobLogChunk | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.instanceOfJobLogChunk = instanceOfJobLogChunk;
17
+ exports.JobLogChunkFromJSON = JobLogChunkFromJSON;
18
+ exports.JobLogChunkFromJSONTyped = JobLogChunkFromJSONTyped;
19
+ exports.JobLogChunkToJSON = JobLogChunkToJSON;
20
+ exports.JobLogChunkToJSONTyped = JobLogChunkToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the JobLogChunk interface.
23
+ */
24
+ function instanceOfJobLogChunk(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('attempt' in value) || value['attempt'] === undefined)
28
+ return false;
29
+ if (!('text' in value) || value['text'] === undefined)
30
+ return false;
31
+ if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined))
32
+ return false;
33
+ return true;
34
+ }
35
+ function JobLogChunkFromJSON(json) {
36
+ return JobLogChunkFromJSONTyped(json, false);
37
+ }
38
+ function JobLogChunkFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'attempt': json['attempt'],
45
+ 'text': json['text'],
46
+ 'createdAt': (new Date(json['created_at'])),
47
+ };
48
+ }
49
+ function JobLogChunkToJSON(json) {
50
+ return JobLogChunkToJSONTyped(json, false);
51
+ }
52
+ function JobLogChunkToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'attempt': value['attempt'],
59
+ 'text': value['text'],
60
+ 'created_at': value['createdAt'].toISOString(),
61
+ };
62
+ }
@@ -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 { JobLogChunk } from './JobLogChunk';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface JobLogs
17
+ */
18
+ export interface JobLogs {
19
+ /**
20
+ *
21
+ * @type {Array<JobLogChunk>}
22
+ * @memberof JobLogs
23
+ */
24
+ data: Array<JobLogChunk>;
25
+ /**
26
+ * Pass this as `after` to read on from here.
27
+ * @type {number}
28
+ * @memberof JobLogs
29
+ */
30
+ nextAfter: number;
31
+ }
32
+ /**
33
+ * Check if a given object implements the JobLogs interface.
34
+ */
35
+ export declare function instanceOfJobLogs(value: object): value is JobLogs;
36
+ export declare function JobLogsFromJSON(json: any): JobLogs;
37
+ export declare function JobLogsFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobLogs;
38
+ export declare function JobLogsToJSON(json: any): JobLogs;
39
+ export declare function JobLogsToJSONTyped(value?: JobLogs | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfJobLogs = instanceOfJobLogs;
17
+ exports.JobLogsFromJSON = JobLogsFromJSON;
18
+ exports.JobLogsFromJSONTyped = JobLogsFromJSONTyped;
19
+ exports.JobLogsToJSON = JobLogsToJSON;
20
+ exports.JobLogsToJSONTyped = JobLogsToJSONTyped;
21
+ const JobLogChunk_1 = require("./JobLogChunk");
22
+ /**
23
+ * Check if a given object implements the JobLogs interface.
24
+ */
25
+ function instanceOfJobLogs(value) {
26
+ if (!('data' in value) || value['data'] === undefined)
27
+ return false;
28
+ if ((!('nextAfter' in value) && !('next_after' in value)) || (value['nextAfter'] === undefined && value['next_after'] === undefined))
29
+ return false;
30
+ return true;
31
+ }
32
+ function JobLogsFromJSON(json) {
33
+ return JobLogsFromJSONTyped(json, false);
34
+ }
35
+ function JobLogsFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'data': (json['data'].map(JobLogChunk_1.JobLogChunkFromJSON)),
41
+ 'nextAfter': json['next_after'],
42
+ };
43
+ }
44
+ function JobLogsToJSON(json) {
45
+ return JobLogsToJSONTyped(json, false);
46
+ }
47
+ function JobLogsToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'data': (value['data'].map(JobLogChunk_1.JobLogChunkToJSON)),
53
+ 'next_after': value['nextAfter'],
54
+ };
55
+ }
@@ -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 { Job } from './Job';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface JobPage
17
+ */
18
+ export interface JobPage {
19
+ /**
20
+ *
21
+ * @type {Array<Job>}
22
+ * @memberof JobPage
23
+ */
24
+ data: Array<Job>;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof JobPage
29
+ */
30
+ nextCursor: string | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the JobPage interface.
34
+ */
35
+ export declare function instanceOfJobPage(value: object): value is JobPage;
36
+ export declare function JobPageFromJSON(json: any): JobPage;
37
+ export declare function JobPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobPage;
38
+ export declare function JobPageToJSON(json: any): JobPage;
39
+ export declare function JobPageToJSONTyped(value?: JobPage | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfJobPage = instanceOfJobPage;
17
+ exports.JobPageFromJSON = JobPageFromJSON;
18
+ exports.JobPageFromJSONTyped = JobPageFromJSONTyped;
19
+ exports.JobPageToJSON = JobPageToJSON;
20
+ exports.JobPageToJSONTyped = JobPageToJSONTyped;
21
+ const Job_1 = require("./Job");
22
+ /**
23
+ * Check if a given object implements the JobPage interface.
24
+ */
25
+ function instanceOfJobPage(value) {
26
+ if (!('data' in value) || value['data'] === undefined)
27
+ return false;
28
+ if ((!('nextCursor' in value) && !('next_cursor' in value)) || (value['nextCursor'] === undefined && value['next_cursor'] === undefined))
29
+ return false;
30
+ return true;
31
+ }
32
+ function JobPageFromJSON(json) {
33
+ return JobPageFromJSONTyped(json, false);
34
+ }
35
+ function JobPageFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'data': (json['data'].map(Job_1.JobFromJSON)),
41
+ 'nextCursor': json['next_cursor'],
42
+ };
43
+ }
44
+ function JobPageToJSON(json) {
45
+ return JobPageToJSONTyped(json, false);
46
+ }
47
+ function JobPageToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'data': (value['data'].map(Job_1.JobToJSON)),
53
+ 'next_cursor': value['nextCursor'],
54
+ };
55
+ }
@@ -0,0 +1,46 @@
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
+ * Advisory only, and present only when it applies. A job carries it when it succeeded with a whole GPU it did not allow to be shared, ran at least a minute with no out-of-memory exit or eviction, and its peak GPU memory, measured from per-process accounting (`memory_source` `process`), was at most half of the GPU's memory. Sharing stays opt-in; the hint never changes how a job is placed.
14
+ *
15
+ * @export
16
+ * @interface JobSharingHint
17
+ */
18
+ export interface JobSharingHint {
19
+ /**
20
+ * A short sentence to show the user, such as "This job used 5.1 GB of its 48 GB GPU. Set allow_sharing and allow_restart to true to let it share a GPU with your other jobs and pay only for its share." It names only the flags the job did not already set.
21
+ *
22
+ * @type {string}
23
+ * @memberof JobSharingHint
24
+ */
25
+ message: string;
26
+ /**
27
+ * The job's measured peak GPU memory, in MiB.
28
+ * @type {number}
29
+ * @memberof JobSharingHint
30
+ */
31
+ peakMemoryMb: number;
32
+ /**
33
+ * Total memory of the GPU the job held, in MiB.
34
+ * @type {number}
35
+ * @memberof JobSharingHint
36
+ */
37
+ gpuMemoryTotalMb: number;
38
+ }
39
+ /**
40
+ * Check if a given object implements the JobSharingHint interface.
41
+ */
42
+ export declare function instanceOfJobSharingHint(value: object): value is JobSharingHint;
43
+ export declare function JobSharingHintFromJSON(json: any): JobSharingHint;
44
+ export declare function JobSharingHintFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobSharingHint;
45
+ export declare function JobSharingHintToJSON(json: any): JobSharingHint;
46
+ export declare function JobSharingHintToJSONTyped(value?: JobSharingHint | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * GPU.ai Public Developer API
6
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@gpu.ai
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfJobSharingHint = instanceOfJobSharingHint;
17
+ exports.JobSharingHintFromJSON = JobSharingHintFromJSON;
18
+ exports.JobSharingHintFromJSONTyped = JobSharingHintFromJSONTyped;
19
+ exports.JobSharingHintToJSON = JobSharingHintToJSON;
20
+ exports.JobSharingHintToJSONTyped = JobSharingHintToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the JobSharingHint interface.
23
+ */
24
+ function instanceOfJobSharingHint(value) {
25
+ if (!('message' in value) || value['message'] === undefined)
26
+ return false;
27
+ if ((!('peakMemoryMb' in value) && !('peak_memory_mb' in value)) || (value['peakMemoryMb'] === undefined && value['peak_memory_mb'] === undefined))
28
+ return false;
29
+ if ((!('gpuMemoryTotalMb' in value) && !('gpu_memory_total_mb' in value)) || (value['gpuMemoryTotalMb'] === undefined && value['gpu_memory_total_mb'] === undefined))
30
+ return false;
31
+ return true;
32
+ }
33
+ function JobSharingHintFromJSON(json) {
34
+ return JobSharingHintFromJSONTyped(json, false);
35
+ }
36
+ function JobSharingHintFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'message': json['message'],
42
+ 'peakMemoryMb': json['peak_memory_mb'],
43
+ 'gpuMemoryTotalMb': json['gpu_memory_total_mb'],
44
+ };
45
+ }
46
+ function JobSharingHintToJSON(json) {
47
+ return JobSharingHintToJSONTyped(json, false);
48
+ }
49
+ function JobSharingHintToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'message': value['message'],
55
+ 'peak_memory_mb': value['peakMemoryMb'],
56
+ 'gpu_memory_total_mb': value['gpuMemoryTotalMb'],
57
+ };
58
+ }
@@ -0,0 +1,51 @@
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 { JobTelemetryPoint } from './JobTelemetryPoint';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface JobTelemetry
17
+ */
18
+ export interface JobTelemetry {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof JobTelemetry
23
+ */
24
+ peakMemoryMb: number | null;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof JobTelemetry
29
+ */
30
+ reservationMb: number | null;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof JobTelemetry
35
+ */
36
+ gpuMemoryTotalMb: number | null;
37
+ /**
38
+ *
39
+ * @type {Array<JobTelemetryPoint>}
40
+ * @memberof JobTelemetry
41
+ */
42
+ points: Array<JobTelemetryPoint>;
43
+ }
44
+ /**
45
+ * Check if a given object implements the JobTelemetry interface.
46
+ */
47
+ export declare function instanceOfJobTelemetry(value: object): value is JobTelemetry;
48
+ export declare function JobTelemetryFromJSON(json: any): JobTelemetry;
49
+ export declare function JobTelemetryFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobTelemetry;
50
+ export declare function JobTelemetryToJSON(json: any): JobTelemetry;
51
+ export declare function JobTelemetryToJSONTyped(value?: JobTelemetry | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.instanceOfJobTelemetry = instanceOfJobTelemetry;
17
+ exports.JobTelemetryFromJSON = JobTelemetryFromJSON;
18
+ exports.JobTelemetryFromJSONTyped = JobTelemetryFromJSONTyped;
19
+ exports.JobTelemetryToJSON = JobTelemetryToJSON;
20
+ exports.JobTelemetryToJSONTyped = JobTelemetryToJSONTyped;
21
+ const JobTelemetryPoint_1 = require("./JobTelemetryPoint");
22
+ /**
23
+ * Check if a given object implements the JobTelemetry interface.
24
+ */
25
+ function instanceOfJobTelemetry(value) {
26
+ if ((!('peakMemoryMb' in value) && !('peak_memory_mb' in value)) || (value['peakMemoryMb'] === undefined && value['peak_memory_mb'] === undefined))
27
+ return false;
28
+ if ((!('reservationMb' in value) && !('reservation_mb' in value)) || (value['reservationMb'] === undefined && value['reservation_mb'] === undefined))
29
+ return false;
30
+ if ((!('gpuMemoryTotalMb' in value) && !('gpu_memory_total_mb' in value)) || (value['gpuMemoryTotalMb'] === undefined && value['gpu_memory_total_mb'] === undefined))
31
+ return false;
32
+ if (!('points' in value) || value['points'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function JobTelemetryFromJSON(json) {
37
+ return JobTelemetryFromJSONTyped(json, false);
38
+ }
39
+ function JobTelemetryFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'peakMemoryMb': json['peak_memory_mb'],
45
+ 'reservationMb': json['reservation_mb'],
46
+ 'gpuMemoryTotalMb': json['gpu_memory_total_mb'],
47
+ 'points': (json['points'].map(JobTelemetryPoint_1.JobTelemetryPointFromJSON)),
48
+ };
49
+ }
50
+ function JobTelemetryToJSON(json) {
51
+ return JobTelemetryToJSONTyped(json, false);
52
+ }
53
+ function JobTelemetryToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'peak_memory_mb': value['peakMemoryMb'],
59
+ 'reservation_mb': value['reservationMb'],
60
+ 'gpu_memory_total_mb': value['gpuMemoryTotalMb'],
61
+ 'points': (value['points'].map(JobTelemetryPoint_1.JobTelemetryPointToJSON)),
62
+ };
63
+ }