@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,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * GPU.ai Public Developer API
5
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@gpu.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the SecretImportResult interface.
16
+ */
17
+ export function instanceOfSecretImportResult(value) {
18
+ if (!('created' in value) || value['created'] === undefined)
19
+ return false;
20
+ if (!('updated' in value) || value['updated'] === undefined)
21
+ return false;
22
+ if (!('skipped' in value) || value['skipped'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function SecretImportResultFromJSON(json) {
27
+ return SecretImportResultFromJSONTyped(json, false);
28
+ }
29
+ export function SecretImportResultFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'created': json['created'],
35
+ 'updated': json['updated'],
36
+ 'skipped': json['skipped'],
37
+ };
38
+ }
39
+ export function SecretImportResultToJSON(json) {
40
+ return SecretImportResultToJSONTyped(json, false);
41
+ }
42
+ export function SecretImportResultToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'created': value['created'],
48
+ 'updated': value['updated'],
49
+ 'skipped': value['skipped'],
50
+ };
51
+ }
@@ -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,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * GPU.ai Public Developer API
5
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@gpu.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { SecretFromJSON, SecretToJSON, } from './Secret';
15
+ /**
16
+ * Check if a given object implements the SecretList interface.
17
+ */
18
+ export function instanceOfSecretList(value) {
19
+ if (!('data' in value) || value['data'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function SecretListFromJSON(json) {
24
+ return SecretListFromJSONTyped(json, false);
25
+ }
26
+ export function SecretListFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'data': (json['data'].map(SecretFromJSON)),
32
+ };
33
+ }
34
+ export function SecretListToJSON(json) {
35
+ return SecretListToJSONTyped(json, false);
36
+ }
37
+ export function SecretListToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'data': (value['data'].map(SecretToJSON)),
43
+ };
44
+ }
@@ -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,45 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * GPU.ai Public Developer API
5
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@gpu.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the SecretPut interface.
16
+ */
17
+ export function instanceOfSecretPut(value) {
18
+ if (!('value' in value) || value['value'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function SecretPutFromJSON(json) {
23
+ return SecretPutFromJSONTyped(json, false);
24
+ }
25
+ export function SecretPutFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'value': json['value'],
31
+ 'description': json['description'] == null ? undefined : json['description'],
32
+ };
33
+ }
34
+ export function SecretPutToJSON(json) {
35
+ return SecretPutToJSONTyped(json, false);
36
+ }
37
+ export function SecretPutToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'value': value['value'],
43
+ 'description': value['description'],
44
+ };
45
+ }
@@ -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';
@@ -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';
@@ -61,7 +61,7 @@ export class Configuration {
61
61
  return undefined;
62
62
  }
63
63
  get headers() {
64
- return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.5.4' }, this.configuration.headers);
64
+ return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.5.5' }, this.configuration.headers);
65
65
  }
66
66
  get credentials() {
67
67
  return this.configuration.credentials;
@@ -0,0 +1,98 @@
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 DedicatedIPOffer
16
+ */
17
+ export interface DedicatedIPOffer {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof DedicatedIPOffer
22
+ */
23
+ enabled: boolean;
24
+ /**
25
+ * Ports and port ranges a launch may forward, e.g. `80,443,1024-65535`.
26
+ * @type {string}
27
+ * @memberof DedicatedIPOffer
28
+ */
29
+ allowedPorts: string;
30
+ /**
31
+ * Ports forwarded when the request names none.
32
+ * @type {Array<number>}
33
+ * @memberof DedicatedIPOffer
34
+ */
35
+ defaultPorts: Array<number>;
36
+ /**
37
+ * Most ports one address may forward.
38
+ * @type {number}
39
+ * @memberof DedicatedIPOffer
40
+ */
41
+ maxPorts: number;
42
+ /**
43
+ * USD per hour while attached, from the instance becoming running until release.
44
+ * @type {number}
45
+ * @memberof DedicatedIPOffer
46
+ */
47
+ hourlyFee: number;
48
+ /**
49
+ * USD per GB through the address, inbound and outbound.
50
+ * @type {number}
51
+ * @memberof DedicatedIPOffer
52
+ */
53
+ transferPricePerGb: number;
54
+ /**
55
+ * GB of transfer per attachment that is not charged.
56
+ * @type {number}
57
+ * @memberof DedicatedIPOffer
58
+ */
59
+ transferIncludedGb: number;
60
+ /**
61
+ * GB per attachment after which forwarding is suspended.
62
+ * @type {number}
63
+ * @memberof DedicatedIPOffer
64
+ */
65
+ transferCapGb: number;
66
+ /**
67
+ * Most dedicated IPs the organization may hold at once.
68
+ * @type {number}
69
+ * @memberof DedicatedIPOffer
70
+ */
71
+ orgLimit: number;
72
+ /**
73
+ * Dedicated IPs the organization holds now.
74
+ * @type {number}
75
+ * @memberof DedicatedIPOffer
76
+ */
77
+ orgInUse: number;
78
+ /**
79
+ * Addresses free for a new launch right now.
80
+ * @type {number}
81
+ * @memberof DedicatedIPOffer
82
+ */
83
+ available: number;
84
+ /**
85
+ * The acceptable use policy for dedicated IPs.
86
+ * @type {string}
87
+ * @memberof DedicatedIPOffer
88
+ */
89
+ acceptableUse: string;
90
+ }
91
+ /**
92
+ * Check if a given object implements the DedicatedIPOffer interface.
93
+ */
94
+ export declare function instanceOfDedicatedIPOffer(value: object): value is DedicatedIPOffer;
95
+ export declare function DedicatedIPOfferFromJSON(json: any): DedicatedIPOffer;
96
+ export declare function DedicatedIPOfferFromJSONTyped(json: any, ignoreDiscriminator: boolean): DedicatedIPOffer;
97
+ export declare function DedicatedIPOfferToJSON(json: any): DedicatedIPOffer;
98
+ export declare function DedicatedIPOfferToJSONTyped(value?: DedicatedIPOffer | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,94 @@
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.instanceOfDedicatedIPOffer = instanceOfDedicatedIPOffer;
17
+ exports.DedicatedIPOfferFromJSON = DedicatedIPOfferFromJSON;
18
+ exports.DedicatedIPOfferFromJSONTyped = DedicatedIPOfferFromJSONTyped;
19
+ exports.DedicatedIPOfferToJSON = DedicatedIPOfferToJSON;
20
+ exports.DedicatedIPOfferToJSONTyped = DedicatedIPOfferToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DedicatedIPOffer interface.
23
+ */
24
+ function instanceOfDedicatedIPOffer(value) {
25
+ if (!('enabled' in value) || value['enabled'] === undefined)
26
+ return false;
27
+ if ((!('allowedPorts' in value) && !('allowed_ports' in value)) || (value['allowedPorts'] === undefined && value['allowed_ports'] === undefined))
28
+ return false;
29
+ if ((!('defaultPorts' in value) && !('default_ports' in value)) || (value['defaultPorts'] === undefined && value['default_ports'] === undefined))
30
+ return false;
31
+ if ((!('maxPorts' in value) && !('max_ports' in value)) || (value['maxPorts'] === undefined && value['max_ports'] === undefined))
32
+ return false;
33
+ if ((!('hourlyFee' in value) && !('hourly_fee' in value)) || (value['hourlyFee'] === undefined && value['hourly_fee'] === undefined))
34
+ return false;
35
+ if ((!('transferPricePerGb' in value) && !('transfer_price_per_gb' in value)) || (value['transferPricePerGb'] === undefined && value['transfer_price_per_gb'] === undefined))
36
+ return false;
37
+ if ((!('transferIncludedGb' in value) && !('transfer_included_gb' in value)) || (value['transferIncludedGb'] === undefined && value['transfer_included_gb'] === undefined))
38
+ return false;
39
+ if ((!('transferCapGb' in value) && !('transfer_cap_gb' in value)) || (value['transferCapGb'] === undefined && value['transfer_cap_gb'] === undefined))
40
+ return false;
41
+ if ((!('orgLimit' in value) && !('org_limit' in value)) || (value['orgLimit'] === undefined && value['org_limit'] === undefined))
42
+ return false;
43
+ if ((!('orgInUse' in value) && !('org_in_use' in value)) || (value['orgInUse'] === undefined && value['org_in_use'] === undefined))
44
+ return false;
45
+ if (!('available' in value) || value['available'] === undefined)
46
+ return false;
47
+ if ((!('acceptableUse' in value) && !('acceptable_use' in value)) || (value['acceptableUse'] === undefined && value['acceptable_use'] === undefined))
48
+ return false;
49
+ return true;
50
+ }
51
+ function DedicatedIPOfferFromJSON(json) {
52
+ return DedicatedIPOfferFromJSONTyped(json, false);
53
+ }
54
+ function DedicatedIPOfferFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'enabled': json['enabled'],
60
+ 'allowedPorts': json['allowed_ports'],
61
+ 'defaultPorts': json['default_ports'],
62
+ 'maxPorts': json['max_ports'],
63
+ 'hourlyFee': json['hourly_fee'],
64
+ 'transferPricePerGb': json['transfer_price_per_gb'],
65
+ 'transferIncludedGb': json['transfer_included_gb'],
66
+ 'transferCapGb': json['transfer_cap_gb'],
67
+ 'orgLimit': json['org_limit'],
68
+ 'orgInUse': json['org_in_use'],
69
+ 'available': json['available'],
70
+ 'acceptableUse': json['acceptable_use'],
71
+ };
72
+ }
73
+ function DedicatedIPOfferToJSON(json) {
74
+ return DedicatedIPOfferToJSONTyped(json, false);
75
+ }
76
+ function DedicatedIPOfferToJSONTyped(value, ignoreDiscriminator = false) {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+ return {
81
+ 'enabled': value['enabled'],
82
+ 'allowed_ports': value['allowedPorts'],
83
+ 'default_ports': value['defaultPorts'],
84
+ 'max_ports': value['maxPorts'],
85
+ 'hourly_fee': value['hourlyFee'],
86
+ 'transfer_price_per_gb': value['transferPricePerGb'],
87
+ 'transfer_included_gb': value['transferIncludedGb'],
88
+ 'transfer_cap_gb': value['transferCapGb'],
89
+ 'org_limit': value['orgLimit'],
90
+ 'org_in_use': value['orgInUse'],
91
+ 'available': value['available'],
92
+ 'acceptable_use': value['acceptableUse'],
93
+ };
94
+ }
@@ -0,0 +1,147 @@
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 { EndpointMachine } from './EndpointMachine';
13
+ import type { EndpointReplicaCounts } from './EndpointReplicaCounts';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface Endpoint
18
+ */
19
+ export interface Endpoint {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof Endpoint
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof Endpoint
30
+ */
31
+ name: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof Endpoint
36
+ */
37
+ model: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof Endpoint
42
+ */
43
+ gpuType: string;
44
+ /**
45
+ *
46
+ * @type {EndpointStatusEnum}
47
+ * @memberof Endpoint
48
+ */
49
+ status: EndpointStatusEnum;
50
+ /**
51
+ * OpenAI-compatible base URL. Set an OpenAI client's base_url to it and use a GPU.ai API key.
52
+ * @type {string}
53
+ * @memberof Endpoint
54
+ */
55
+ url: string;
56
+ /**
57
+ *
58
+ * @type {number}
59
+ * @memberof Endpoint
60
+ */
61
+ minReplicas: number;
62
+ /**
63
+ *
64
+ * @type {number}
65
+ * @memberof Endpoint
66
+ */
67
+ maxReplicas: number;
68
+ /**
69
+ *
70
+ * @type {number}
71
+ * @memberof Endpoint
72
+ */
73
+ idleTimeout: number;
74
+ /**
75
+ *
76
+ * @type {number}
77
+ * @memberof Endpoint
78
+ */
79
+ targetConcurrency: number;
80
+ /**
81
+ *
82
+ * @type {number}
83
+ * @memberof Endpoint
84
+ */
85
+ maxPricePerHour: number | null;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof Endpoint
90
+ */
91
+ hfTokenSecret: string | null;
92
+ /**
93
+ *
94
+ * @type {EndpointReplicaCounts}
95
+ * @memberof Endpoint
96
+ */
97
+ replicas: EndpointReplicaCounts;
98
+ /**
99
+ *
100
+ * @type {number}
101
+ * @memberof Endpoint
102
+ */
103
+ requestCount: number;
104
+ /**
105
+ *
106
+ * @type {Date}
107
+ * @memberof Endpoint
108
+ */
109
+ lastRequestAt: Date | null;
110
+ /**
111
+ * Why the latest machine failed to start, until one becomes ready.
112
+ * @type {string}
113
+ * @memberof Endpoint
114
+ */
115
+ lastError: string | null;
116
+ /**
117
+ *
118
+ * @type {Date}
119
+ * @memberof Endpoint
120
+ */
121
+ createdAt: Date;
122
+ /**
123
+ * Recent machines, newest first. Returned by GET /v1/endpoints/{id} only.
124
+ * @type {Array<EndpointMachine>}
125
+ * @memberof Endpoint
126
+ */
127
+ machines?: Array<EndpointMachine>;
128
+ }
129
+ /**
130
+ * @export
131
+ */
132
+ export declare const EndpointStatusEnum: {
133
+ readonly ScaledToZero: "scaled_to_zero";
134
+ readonly Starting: "starting";
135
+ readonly Ready: "ready";
136
+ readonly Failed: "failed";
137
+ readonly Deleting: "deleting";
138
+ };
139
+ export type EndpointStatusEnum = typeof EndpointStatusEnum[keyof typeof EndpointStatusEnum];
140
+ /**
141
+ * Check if a given object implements the Endpoint interface.
142
+ */
143
+ export declare function instanceOfEndpoint(value: object): value is Endpoint;
144
+ export declare function EndpointFromJSON(json: any): Endpoint;
145
+ export declare function EndpointFromJSONTyped(json: any, ignoreDiscriminator: boolean): Endpoint;
146
+ export declare function EndpointToJSON(json: any): Endpoint;
147
+ export declare function EndpointToJSONTyped(value?: Endpoint | null, ignoreDiscriminator?: boolean): any;