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