@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,111 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * An organization secret's metadata. There is no value field: values are write-only and never returned.
18
+ * @export
19
+ * @interface Secret
20
+ */
21
+ export interface Secret {
22
+ /**
23
+ * The secret's name, which is also the environment variable it is delivered as.
24
+ * @type {string}
25
+ * @memberof Secret
26
+ */
27
+ name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Secret
32
+ */
33
+ description: string;
34
+ /**
35
+ * How many times the value has been written. Starts at 1.
36
+ * @type {number}
37
+ * @memberof Secret
38
+ */
39
+ version: number;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof Secret
44
+ */
45
+ createdAt: Date;
46
+ /**
47
+ *
48
+ * @type {Date}
49
+ * @memberof Secret
50
+ */
51
+ updatedAt: Date;
52
+ /**
53
+ * When the value was last delivered to a machine, or null.
54
+ * @type {Date}
55
+ * @memberof Secret
56
+ */
57
+ lastUsedAt: Date | null;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the Secret interface.
62
+ */
63
+ export function instanceOfSecret(value: object): value is Secret {
64
+ if (!('name' in value) || value['name'] === undefined) return false;
65
+ if (!('description' in value) || value['description'] === undefined) return false;
66
+ if (!('version' in value) || value['version'] === undefined) return false;
67
+ if ((!('createdAt' in (value as Record<string, any>)) && !('created_at' in (value as Record<string, any>))) || ((value as Record<string, any>)['createdAt'] === undefined && (value as Record<string, any>)['created_at'] === undefined)) return false;
68
+ if ((!('updatedAt' in (value as Record<string, any>)) && !('updated_at' in (value as Record<string, any>))) || ((value as Record<string, any>)['updatedAt'] === undefined && (value as Record<string, any>)['updated_at'] === undefined)) return false;
69
+ if ((!('lastUsedAt' in (value as Record<string, any>)) && !('last_used_at' in (value as Record<string, any>))) || ((value as Record<string, any>)['lastUsedAt'] === undefined && (value as Record<string, any>)['last_used_at'] === undefined)) return false;
70
+ return true;
71
+ }
72
+
73
+ export function SecretFromJSON(json: any): Secret {
74
+ return SecretFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function SecretFromJSONTyped(json: any, ignoreDiscriminator: boolean): Secret {
78
+ if (json == null) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'name': json['name'],
84
+ 'description': json['description'],
85
+ 'version': json['version'],
86
+ 'createdAt': (new Date(json['created_at'])),
87
+ 'updatedAt': (new Date(json['updated_at'])),
88
+ 'lastUsedAt': (json['last_used_at'] == null ? null : new Date(json['last_used_at'])),
89
+ };
90
+ }
91
+
92
+ export function SecretToJSON(json: any): Secret {
93
+ return SecretToJSONTyped(json, false);
94
+ }
95
+
96
+ export function SecretToJSONTyped(value?: Secret | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'name': value['name'],
104
+ 'description': value['description'],
105
+ 'version': value['version'],
106
+ 'created_at': value['createdAt'].toISOString(),
107
+ 'updated_at': value['updatedAt'].toISOString(),
108
+ 'last_used_at': value['lastUsedAt'] == null ? value['lastUsedAt'] : value['lastUsedAt'].toISOString(),
109
+ };
110
+ }
111
+
@@ -0,0 +1,83 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SecretCreate
20
+ */
21
+ export interface SecretCreate {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SecretCreate
26
+ */
27
+ name: string;
28
+ /**
29
+ * The secret value. Write-only; never returned.
30
+ * @type {string}
31
+ * @memberof SecretCreate
32
+ */
33
+ value: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof SecretCreate
38
+ */
39
+ description?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the SecretCreate interface.
44
+ */
45
+ export function instanceOfSecretCreate(value: object): value is SecretCreate {
46
+ if (!('name' in value) || value['name'] === undefined) return false;
47
+ if (!('value' in value) || value['value'] === undefined) return false;
48
+ return true;
49
+ }
50
+
51
+ export function SecretCreateFromJSON(json: any): SecretCreate {
52
+ return SecretCreateFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function SecretCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretCreate {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'name': json['name'],
62
+ 'value': json['value'],
63
+ 'description': json['description'] == null ? undefined : json['description'],
64
+ };
65
+ }
66
+
67
+ export function SecretCreateToJSON(json: any): SecretCreate {
68
+ return SecretCreateToJSONTyped(json, false);
69
+ }
70
+
71
+ export function SecretCreateToJSONTyped(value?: SecretCreate | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'name': value['name'],
79
+ 'value': value['value'],
80
+ 'description': value['description'],
81
+ };
82
+ }
83
+
@@ -0,0 +1,75 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SecretImportItem
20
+ */
21
+ export interface SecretImportItem {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SecretImportItem
26
+ */
27
+ name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SecretImportItem
32
+ */
33
+ value: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the SecretImportItem interface.
38
+ */
39
+ export function instanceOfSecretImportItem(value: object): value is SecretImportItem {
40
+ if (!('name' in value) || value['name'] === undefined) return false;
41
+ if (!('value' in value) || value['value'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function SecretImportItemFromJSON(json: any): SecretImportItem {
46
+ return SecretImportItemFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SecretImportItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretImportItem {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'name': json['name'],
56
+ 'value': json['value'],
57
+ };
58
+ }
59
+
60
+ export function SecretImportItemToJSON(json: any): SecretImportItem {
61
+ return SecretImportItemToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SecretImportItemToJSONTyped(value?: SecretImportItem | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'name': value['name'],
72
+ 'value': value['value'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,82 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { SecretImportItem } from './SecretImportItem';
17
+ import {
18
+ SecretImportItemFromJSON,
19
+ SecretImportItemFromJSONTyped,
20
+ SecretImportItemToJSON,
21
+ SecretImportItemToJSONTyped,
22
+ } from './SecretImportItem';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SecretImportRequest
28
+ */
29
+ export interface SecretImportRequest {
30
+ /**
31
+ *
32
+ * @type {Array<SecretImportItem>}
33
+ * @memberof SecretImportRequest
34
+ */
35
+ secrets: Array<SecretImportItem>;
36
+ /**
37
+ * Replace the values of secrets that already exist. False leaves them untouched.
38
+ * @type {boolean}
39
+ * @memberof SecretImportRequest
40
+ */
41
+ overwrite?: boolean;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the SecretImportRequest interface.
46
+ */
47
+ export function instanceOfSecretImportRequest(value: object): value is SecretImportRequest {
48
+ if (!('secrets' in value) || value['secrets'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function SecretImportRequestFromJSON(json: any): SecretImportRequest {
53
+ return SecretImportRequestFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function SecretImportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretImportRequest {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'secrets': ((json['secrets'] as Array<any>).map(SecretImportItemFromJSON)),
63
+ 'overwrite': json['overwrite'] == null ? undefined : json['overwrite'],
64
+ };
65
+ }
66
+
67
+ export function SecretImportRequestToJSON(json: any): SecretImportRequest {
68
+ return SecretImportRequestToJSONTyped(json, false);
69
+ }
70
+
71
+ export function SecretImportRequestToJSONTyped(value?: SecretImportRequest | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'secrets': ((value['secrets'] as Array<any>).map(SecretImportItemToJSON)),
79
+ 'overwrite': value['overwrite'],
80
+ };
81
+ }
82
+
@@ -0,0 +1,84 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SecretImportResult
20
+ */
21
+ export interface SecretImportResult {
22
+ /**
23
+ *
24
+ * @type {Array<string>}
25
+ * @memberof SecretImportResult
26
+ */
27
+ created: Array<string>;
28
+ /**
29
+ *
30
+ * @type {Array<string>}
31
+ * @memberof SecretImportResult
32
+ */
33
+ updated: Array<string>;
34
+ /**
35
+ * Names that already existed and were left untouched (overwrite false).
36
+ * @type {Array<string>}
37
+ * @memberof SecretImportResult
38
+ */
39
+ skipped: Array<string>;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the SecretImportResult interface.
44
+ */
45
+ export function instanceOfSecretImportResult(value: object): value is SecretImportResult {
46
+ if (!('created' in value) || value['created'] === undefined) return false;
47
+ if (!('updated' in value) || value['updated'] === undefined) return false;
48
+ if (!('skipped' in value) || value['skipped'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function SecretImportResultFromJSON(json: any): SecretImportResult {
53
+ return SecretImportResultFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function SecretImportResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretImportResult {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'created': json['created'],
63
+ 'updated': json['updated'],
64
+ 'skipped': json['skipped'],
65
+ };
66
+ }
67
+
68
+ export function SecretImportResultToJSON(json: any): SecretImportResult {
69
+ return SecretImportResultToJSONTyped(json, false);
70
+ }
71
+
72
+ export function SecretImportResultToJSONTyped(value?: SecretImportResult | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'created': value['created'],
80
+ 'updated': value['updated'],
81
+ 'skipped': value['skipped'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,74 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { Secret } from './Secret';
17
+ import {
18
+ SecretFromJSON,
19
+ SecretFromJSONTyped,
20
+ SecretToJSON,
21
+ SecretToJSONTyped,
22
+ } from './Secret';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface SecretList
28
+ */
29
+ export interface SecretList {
30
+ /**
31
+ *
32
+ * @type {Array<Secret>}
33
+ * @memberof SecretList
34
+ */
35
+ data: Array<Secret>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the SecretList interface.
40
+ */
41
+ export function instanceOfSecretList(value: object): value is SecretList {
42
+ if (!('data' in value) || value['data'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function SecretListFromJSON(json: any): SecretList {
47
+ return SecretListFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function SecretListFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretList {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'data': ((json['data'] as Array<any>).map(SecretFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function SecretListToJSON(json: any): SecretList {
61
+ return SecretListToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SecretListToJSONTyped(value?: SecretList | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'data': ((value['data'] as Array<any>).map(SecretToJSON)),
72
+ };
73
+ }
74
+
@@ -0,0 +1,74 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SecretPut
20
+ */
21
+ export interface SecretPut {
22
+ /**
23
+ * The secret value. Write-only; never returned.
24
+ * @type {string}
25
+ * @memberof SecretPut
26
+ */
27
+ value: string;
28
+ /**
29
+ * Omit to keep the current description.
30
+ * @type {string}
31
+ * @memberof SecretPut
32
+ */
33
+ description?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the SecretPut interface.
38
+ */
39
+ export function instanceOfSecretPut(value: object): value is SecretPut {
40
+ if (!('value' in value) || value['value'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function SecretPutFromJSON(json: any): SecretPut {
45
+ return SecretPutFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function SecretPutFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecretPut {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'value': json['value'],
55
+ 'description': json['description'] == null ? undefined : json['description'],
56
+ };
57
+ }
58
+
59
+ export function SecretPutToJSON(json: any): SecretPut {
60
+ return SecretPutToJSONTyped(json, false);
61
+ }
62
+
63
+ export function SecretPutToJSONTyped(value?: SecretPut | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'value': value['value'],
71
+ 'description': value['description'],
72
+ };
73
+ }
74
+
@@ -38,12 +38,18 @@ export * from './CreateSshKeyRequest';
38
38
  export * from './CreateWebhookEndpointRequest';
39
39
  export * from './CryptoDeposit';
40
40
  export * from './DataRetention';
41
+ export * from './DedicatedIPOffer';
41
42
  export * from './DedicatedIPRequest';
42
43
  export * from './Embedding';
43
44
  export * from './EmbeddingsRequest';
44
45
  export * from './EmbeddingsRequestInput';
45
46
  export * from './EmbeddingsResponse';
46
47
  export * from './EmbeddingsUsage';
48
+ export * from './Endpoint';
49
+ export * from './EndpointCreate';
50
+ export * from './EndpointList';
51
+ export * from './EndpointMachine';
52
+ export * from './EndpointReplicaCounts';
47
53
  export * from './Environments';
48
54
  export * from './FileObject';
49
55
  export * from './FineTuningJob';
@@ -81,6 +87,18 @@ export * from './InstanceGpuMemory';
81
87
  export * from './InstancePage';
82
88
  export * from './Invoice';
83
89
  export * from './InvoiceList';
90
+ export * from './Job';
91
+ export * from './JobAttempt';
92
+ export * from './JobCreate';
93
+ export * from './JobGpuTypes';
94
+ export * from './JobGpuTypesDataInner';
95
+ export * from './JobLogChunk';
96
+ export * from './JobLogs';
97
+ export * from './JobPage';
98
+ export * from './JobSharingHint';
99
+ export * from './JobTelemetry';
100
+ export * from './JobTelemetryPoint';
101
+ export * from './JobTrial';
84
102
  export * from './ListCommunityMachines200Response';
85
103
  export * from './ListDeposits200Response';
86
104
  export * from './ListRegistryCredentials200Response';
@@ -105,6 +123,13 @@ export * from './RegisterCommunityMachineRequest';
105
123
  export * from './RegistryCredential';
106
124
  export * from './SSHKey';
107
125
  export * from './SSHKeyPage';
126
+ export * from './Secret';
127
+ export * from './SecretCreate';
128
+ export * from './SecretImportItem';
129
+ export * from './SecretImportRequest';
130
+ export * from './SecretImportResult';
131
+ export * from './SecretList';
132
+ export * from './SecretPut';
108
133
  export * from './SpendingLimit';
109
134
  export * from './StreamOptions';
110
135
  export * from './SupplierMachineView';
package/src/runtime.ts CHANGED
@@ -75,7 +75,7 @@ export class Configuration {
75
75
  }
76
76
 
77
77
  get headers(): HTTPHeaders | undefined {
78
- return { 'User-Agent': 'gpuai-sdk-ts/0.5.4', ...this.configuration.headers };
78
+ return { 'User-Agent': 'gpuai-sdk-ts/0.5.5', ...this.configuration.headers };
79
79
  }
80
80
 
81
81
  get credentials(): RequestCredentials | undefined {