@gpuai/sdk 0.3.18 → 0.4.1

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 (187) hide show
  1. package/.openapi-generator/FILES +48 -0
  2. package/README.md +41 -2
  3. package/dist/apis/BillingApi.d.ts +70 -0
  4. package/dist/apis/BillingApi.js +197 -0
  5. package/dist/apis/FunctionsApi.d.ts +228 -0
  6. package/dist/apis/FunctionsApi.js +627 -0
  7. package/dist/apis/InstancesApi.d.ts +18 -0
  8. package/dist/apis/InstancesApi.js +49 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/esm/apis/BillingApi.d.ts +70 -0
  12. package/dist/esm/apis/BillingApi.js +197 -0
  13. package/dist/esm/apis/FunctionsApi.d.ts +228 -0
  14. package/dist/esm/apis/FunctionsApi.js +623 -0
  15. package/dist/esm/apis/InstancesApi.d.ts +18 -0
  16. package/dist/esm/apis/InstancesApi.js +49 -0
  17. package/dist/esm/apis/index.d.ts +1 -0
  18. package/dist/esm/apis/index.js +1 -0
  19. package/dist/esm/models/AutolaunchRule.d.ts +2 -1
  20. package/dist/esm/models/BillingDetails.d.ts +98 -0
  21. package/dist/esm/models/BillingDetails.js +85 -0
  22. package/dist/esm/models/CreateFunctionRequest.d.ts +32 -0
  23. package/dist/esm/models/CreateFunctionRequest.js +43 -0
  24. package/dist/esm/models/CreateFunctionRunRequest.d.ts +38 -0
  25. package/dist/esm/models/CreateFunctionRunRequest.js +45 -0
  26. package/dist/esm/models/CreateFunctionVersionRequest.d.ts +110 -0
  27. package/dist/esm/models/CreateFunctionVersionRequest.js +79 -0
  28. package/dist/esm/models/Function.d.ts +163 -0
  29. package/dist/esm/models/Function.js +109 -0
  30. package/dist/esm/models/FunctionList.d.ts +33 -0
  31. package/dist/esm/models/FunctionList.js +44 -0
  32. package/dist/esm/models/FunctionReplicaCounts.d.ts +44 -0
  33. package/dist/esm/models/FunctionReplicaCounts.js +51 -0
  34. package/dist/esm/models/FunctionRun.d.ts +130 -0
  35. package/dist/esm/models/FunctionRun.js +94 -0
  36. package/dist/esm/models/FunctionRunError.d.ts +44 -0
  37. package/dist/esm/models/FunctionRunError.js +49 -0
  38. package/dist/esm/models/FunctionRunList.d.ts +39 -0
  39. package/dist/esm/models/FunctionRunList.js +48 -0
  40. package/dist/esm/models/FunctionRunLogChunk.d.ts +59 -0
  41. package/dist/esm/models/FunctionRunLogChunk.js +63 -0
  42. package/dist/esm/models/FunctionRunLogs.d.ts +45 -0
  43. package/dist/esm/models/FunctionRunLogs.js +52 -0
  44. package/dist/esm/models/FunctionUpload.d.ts +51 -0
  45. package/dist/esm/models/FunctionUpload.js +59 -0
  46. package/dist/esm/models/FunctionVersion.d.ts +137 -0
  47. package/dist/esm/models/FunctionVersion.js +109 -0
  48. package/dist/esm/models/GpuSuggestion.d.ts +82 -0
  49. package/dist/esm/models/GpuSuggestion.js +77 -0
  50. package/dist/esm/models/GpuSuggestionCheaper.d.ts +62 -0
  51. package/dist/esm/models/GpuSuggestionCheaper.js +63 -0
  52. package/dist/esm/models/GpuSuggestionGpu.d.ts +50 -0
  53. package/dist/esm/models/GpuSuggestionGpu.js +55 -0
  54. package/dist/esm/models/Instance.d.ts +7 -0
  55. package/dist/esm/models/Instance.js +3 -0
  56. package/dist/esm/models/InstanceGpuMemory.d.ts +51 -0
  57. package/dist/esm/models/InstanceGpuMemory.js +55 -0
  58. package/dist/esm/models/Invoice.d.ts +68 -0
  59. package/dist/esm/models/Invoice.js +67 -0
  60. package/dist/esm/models/InvoiceList.d.ts +45 -0
  61. package/dist/esm/models/InvoiceList.js +50 -0
  62. package/dist/esm/models/ModelPricing.d.ts +46 -0
  63. package/dist/esm/models/ModelPricing.js +21 -0
  64. package/dist/esm/models/ModelRate.d.ts +62 -0
  65. package/dist/esm/models/ModelRate.js +51 -0
  66. package/dist/esm/models/PeakWindow.d.ts +38 -0
  67. package/dist/esm/models/PeakWindow.js +47 -0
  68. package/dist/esm/models/UpdateBillingDetailsRequest.d.ts +80 -0
  69. package/dist/esm/models/UpdateBillingDetailsRequest.js +57 -0
  70. package/dist/esm/models/index.d.ts +23 -0
  71. package/dist/esm/models/index.js +23 -0
  72. package/dist/esm/runtime.js +1 -1
  73. package/dist/models/AutolaunchRule.d.ts +2 -1
  74. package/dist/models/BillingDetails.d.ts +98 -0
  75. package/dist/models/BillingDetails.js +92 -0
  76. package/dist/models/CreateFunctionRequest.d.ts +32 -0
  77. package/dist/models/CreateFunctionRequest.js +50 -0
  78. package/dist/models/CreateFunctionRunRequest.d.ts +38 -0
  79. package/dist/models/CreateFunctionRunRequest.js +52 -0
  80. package/dist/models/CreateFunctionVersionRequest.d.ts +110 -0
  81. package/dist/models/CreateFunctionVersionRequest.js +86 -0
  82. package/dist/models/Function.d.ts +163 -0
  83. package/dist/models/Function.js +117 -0
  84. package/dist/models/FunctionList.d.ts +33 -0
  85. package/dist/models/FunctionList.js +51 -0
  86. package/dist/models/FunctionReplicaCounts.d.ts +44 -0
  87. package/dist/models/FunctionReplicaCounts.js +58 -0
  88. package/dist/models/FunctionRun.d.ts +130 -0
  89. package/dist/models/FunctionRun.js +102 -0
  90. package/dist/models/FunctionRunError.d.ts +44 -0
  91. package/dist/models/FunctionRunError.js +56 -0
  92. package/dist/models/FunctionRunList.d.ts +39 -0
  93. package/dist/models/FunctionRunList.js +55 -0
  94. package/dist/models/FunctionRunLogChunk.d.ts +59 -0
  95. package/dist/models/FunctionRunLogChunk.js +71 -0
  96. package/dist/models/FunctionRunLogs.d.ts +45 -0
  97. package/dist/models/FunctionRunLogs.js +59 -0
  98. package/dist/models/FunctionUpload.d.ts +51 -0
  99. package/dist/models/FunctionUpload.js +67 -0
  100. package/dist/models/FunctionVersion.d.ts +137 -0
  101. package/dist/models/FunctionVersion.js +117 -0
  102. package/dist/models/GpuSuggestion.d.ts +82 -0
  103. package/dist/models/GpuSuggestion.js +85 -0
  104. package/dist/models/GpuSuggestionCheaper.d.ts +62 -0
  105. package/dist/models/GpuSuggestionCheaper.js +70 -0
  106. package/dist/models/GpuSuggestionGpu.d.ts +50 -0
  107. package/dist/models/GpuSuggestionGpu.js +62 -0
  108. package/dist/models/Instance.d.ts +7 -0
  109. package/dist/models/Instance.js +3 -0
  110. package/dist/models/InstanceGpuMemory.d.ts +51 -0
  111. package/dist/models/InstanceGpuMemory.js +62 -0
  112. package/dist/models/Invoice.d.ts +68 -0
  113. package/dist/models/Invoice.js +74 -0
  114. package/dist/models/InvoiceList.d.ts +45 -0
  115. package/dist/models/InvoiceList.js +57 -0
  116. package/dist/models/ModelPricing.d.ts +46 -0
  117. package/dist/models/ModelPricing.js +22 -0
  118. package/dist/models/ModelRate.d.ts +62 -0
  119. package/dist/models/ModelRate.js +58 -0
  120. package/dist/models/PeakWindow.d.ts +38 -0
  121. package/dist/models/PeakWindow.js +54 -0
  122. package/dist/models/UpdateBillingDetailsRequest.d.ts +80 -0
  123. package/dist/models/UpdateBillingDetailsRequest.js +64 -0
  124. package/dist/models/index.d.ts +23 -0
  125. package/dist/models/index.js +23 -0
  126. package/dist/runtime.js +1 -1
  127. package/docs/BillingApi.md +299 -0
  128. package/docs/BillingDetails.md +56 -0
  129. package/docs/CreateFunctionRequest.md +34 -0
  130. package/docs/CreateFunctionRunRequest.md +36 -0
  131. package/docs/CreateFunctionVersionRequest.md +60 -0
  132. package/docs/Function.md +75 -0
  133. package/docs/FunctionList.md +34 -0
  134. package/docs/FunctionReplicaCounts.md +39 -0
  135. package/docs/FunctionRun.md +63 -0
  136. package/docs/FunctionRunError.md +38 -0
  137. package/docs/FunctionRunList.md +36 -0
  138. package/docs/FunctionRunLogChunk.md +40 -0
  139. package/docs/FunctionRunLogs.md +38 -0
  140. package/docs/FunctionUpload.md +38 -0
  141. package/docs/FunctionVersion.md +66 -0
  142. package/docs/FunctionsApi.md +880 -0
  143. package/docs/GpuSuggestion.md +47 -0
  144. package/docs/GpuSuggestionCheaper.md +45 -0
  145. package/docs/GpuSuggestionGpu.md +41 -0
  146. package/docs/Instance.md +2 -0
  147. package/docs/InstanceGpuMemory.md +41 -0
  148. package/docs/InstancesApi.md +75 -0
  149. package/docs/Invoice.md +46 -0
  150. package/docs/InvoiceList.md +38 -0
  151. package/docs/ModelPricing.md +12 -0
  152. package/docs/ModelRate.md +45 -0
  153. package/docs/PeakWindow.md +37 -0
  154. package/docs/UpdateBillingDetailsRequest.md +50 -0
  155. package/package.json +1 -1
  156. package/src/apis/BillingApi.ts +247 -0
  157. package/src/apis/FunctionsApi.ts +828 -0
  158. package/src/apis/InstancesApi.ts +64 -0
  159. package/src/apis/index.ts +1 -0
  160. package/src/models/AutolaunchRule.ts +2 -1
  161. package/src/models/BillingDetails.ts +164 -0
  162. package/src/models/CreateFunctionRequest.ts +66 -0
  163. package/src/models/CreateFunctionRunRequest.ts +74 -0
  164. package/src/models/CreateFunctionVersionRequest.ts +175 -0
  165. package/src/models/Function.ts +255 -0
  166. package/src/models/FunctionList.ts +74 -0
  167. package/src/models/FunctionReplicaCounts.ts +84 -0
  168. package/src/models/FunctionRun.ts +207 -0
  169. package/src/models/FunctionRunError.ts +83 -0
  170. package/src/models/FunctionRunList.ts +83 -0
  171. package/src/models/FunctionRunLogChunk.ts +105 -0
  172. package/src/models/FunctionRunLogs.ts +92 -0
  173. package/src/models/FunctionUpload.ts +96 -0
  174. package/src/models/FunctionVersion.ts +226 -0
  175. package/src/models/GpuSuggestion.ts +150 -0
  176. package/src/models/GpuSuggestionCheaper.ts +111 -0
  177. package/src/models/GpuSuggestionGpu.ts +93 -0
  178. package/src/models/Instance.ts +15 -0
  179. package/src/models/InstanceGpuMemory.ts +94 -0
  180. package/src/models/Invoice.ts +120 -0
  181. package/src/models/InvoiceList.ts +91 -0
  182. package/src/models/ModelPricing.ts +74 -0
  183. package/src/models/ModelRate.ts +105 -0
  184. package/src/models/PeakWindow.ts +75 -0
  185. package/src/models/UpdateBillingDetailsRequest.ts +129 -0
  186. package/src/models/index.ts +23 -0
  187. package/src/runtime.ts +1 -1
@@ -0,0 +1,57 @@
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 UpdateBillingDetailsRequest interface.
16
+ */
17
+ export function instanceOfUpdateBillingDetailsRequest(value) {
18
+ return true;
19
+ }
20
+ export function UpdateBillingDetailsRequestFromJSON(json) {
21
+ return UpdateBillingDetailsRequestFromJSONTyped(json, false);
22
+ }
23
+ export function UpdateBillingDetailsRequestFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'legalName': json['legal_name'] == null ? undefined : json['legal_name'],
29
+ 'addressLine1': json['address_line1'] == null ? undefined : json['address_line1'],
30
+ 'addressLine2': json['address_line2'] == null ? undefined : json['address_line2'],
31
+ 'city': json['city'] == null ? undefined : json['city'],
32
+ 'region': json['region'] == null ? undefined : json['region'],
33
+ 'postalCode': json['postal_code'] == null ? undefined : json['postal_code'],
34
+ 'country': json['country'] == null ? undefined : json['country'],
35
+ 'taxIdType': json['tax_id_type'] == null ? undefined : json['tax_id_type'],
36
+ 'taxId': json['tax_id'] == null ? undefined : json['tax_id'],
37
+ };
38
+ }
39
+ export function UpdateBillingDetailsRequestToJSON(json) {
40
+ return UpdateBillingDetailsRequestToJSONTyped(json, false);
41
+ }
42
+ export function UpdateBillingDetailsRequestToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'legal_name': value['legalName'],
48
+ 'address_line1': value['addressLine1'],
49
+ 'address_line2': value['addressLine2'],
50
+ 'city': value['city'],
51
+ 'region': value['region'],
52
+ 'postal_code': value['postalCode'],
53
+ 'country': value['country'],
54
+ 'tax_id_type': value['taxIdType'],
55
+ 'tax_id': value['taxId'],
56
+ };
57
+ }
@@ -3,6 +3,7 @@ export * from './AutolaunchRuleCreate';
3
3
  export * from './AutolaunchRuleDisarm';
4
4
  export * from './AutolaunchRulePage';
5
5
  export * from './Balance';
6
+ export * from './BillingDetails';
6
7
  export * from './ChatChoice';
7
8
  export * from './ChatCompletionRequest';
8
9
  export * from './ChatCompletionResponse';
@@ -16,6 +17,9 @@ export * from './CreateFineTuningJobRequest';
16
17
  export * from './CreateFineTuningJobRequestGpuai';
17
18
  export * from './CreateFineTuningJobRequestMethod';
18
19
  export * from './CreateFineTuningJobRequestMethodLora';
20
+ export * from './CreateFunctionRequest';
21
+ export * from './CreateFunctionRunRequest';
22
+ export * from './CreateFunctionVersionRequest';
19
23
  export * from './CreateInstanceRequest';
20
24
  export * from './CreateInstanceRequestPortsInner';
21
25
  export * from './CreateRegistryCredentialRequest';
@@ -36,9 +40,22 @@ export * from './FineTuningJobEventList';
36
40
  export * from './FineTuningJobList';
37
41
  export * from './FineTuningJobMethod';
38
42
  export * from './FrameworkVersion';
43
+ export * from './Function';
44
+ export * from './FunctionList';
45
+ export * from './FunctionReplicaCounts';
46
+ export * from './FunctionRun';
47
+ export * from './FunctionRunError';
48
+ export * from './FunctionRunList';
49
+ export * from './FunctionRunLogChunk';
50
+ export * from './FunctionRunLogs';
51
+ export * from './FunctionUpload';
52
+ export * from './FunctionVersion';
39
53
  export * from './GPUType';
40
54
  export * from './GPUTypePage';
41
55
  export * from './GetHealth200Response';
56
+ export * from './GpuSuggestion';
57
+ export * from './GpuSuggestionCheaper';
58
+ export * from './GpuSuggestionGpu';
42
59
  export * from './ImagesGenerationsRequest';
43
60
  export * from './ImagesResponse';
44
61
  export * from './ImagesResponseDataInner';
@@ -46,7 +63,10 @@ export * from './ImagesResponseUsage';
46
63
  export * from './IncludeItem';
47
64
  export * from './Instance';
48
65
  export * from './InstanceConnection';
66
+ export * from './InstanceGpuMemory';
49
67
  export * from './InstancePage';
68
+ export * from './Invoice';
69
+ export * from './InvoiceList';
50
70
  export * from './ListCommunityMachines200Response';
51
71
  export * from './ListDeposits200Response';
52
72
  export * from './ListRegistryCredentials200Response';
@@ -56,11 +76,13 @@ export * from './Model';
56
76
  export * from './ModelList';
57
77
  export * from './ModelParametersInner';
58
78
  export * from './ModelPricing';
79
+ export * from './ModelRate';
59
80
  export * from './OpenAIErrorEnvelope';
60
81
  export * from './OpenAIErrorEnvelopeError';
61
82
  export * from './Operation';
62
83
  export * from './OperationError';
63
84
  export * from './OperationResult';
85
+ export * from './PeakWindow';
64
86
  export * from './Pricing';
65
87
  export * from './PricingPage';
66
88
  export * from './Problem';
@@ -75,6 +97,7 @@ export * from './Template';
75
97
  export * from './TemplateEnvInner';
76
98
  export * from './TemplateList';
77
99
  export * from './TemplatePortsInner';
100
+ export * from './UpdateBillingDetailsRequest';
78
101
  export * from './UpdateInstanceRequest';
79
102
  export * from './UpdateSpendingLimitRequest';
80
103
  export * from './Usage';
@@ -5,6 +5,7 @@ export * from './AutolaunchRuleCreate';
5
5
  export * from './AutolaunchRuleDisarm';
6
6
  export * from './AutolaunchRulePage';
7
7
  export * from './Balance';
8
+ export * from './BillingDetails';
8
9
  export * from './ChatChoice';
9
10
  export * from './ChatCompletionRequest';
10
11
  export * from './ChatCompletionResponse';
@@ -18,6 +19,9 @@ export * from './CreateFineTuningJobRequest';
18
19
  export * from './CreateFineTuningJobRequestGpuai';
19
20
  export * from './CreateFineTuningJobRequestMethod';
20
21
  export * from './CreateFineTuningJobRequestMethodLora';
22
+ export * from './CreateFunctionRequest';
23
+ export * from './CreateFunctionRunRequest';
24
+ export * from './CreateFunctionVersionRequest';
21
25
  export * from './CreateInstanceRequest';
22
26
  export * from './CreateInstanceRequestPortsInner';
23
27
  export * from './CreateRegistryCredentialRequest';
@@ -38,9 +42,22 @@ export * from './FineTuningJobEventList';
38
42
  export * from './FineTuningJobList';
39
43
  export * from './FineTuningJobMethod';
40
44
  export * from './FrameworkVersion';
45
+ export * from './Function';
46
+ export * from './FunctionList';
47
+ export * from './FunctionReplicaCounts';
48
+ export * from './FunctionRun';
49
+ export * from './FunctionRunError';
50
+ export * from './FunctionRunList';
51
+ export * from './FunctionRunLogChunk';
52
+ export * from './FunctionRunLogs';
53
+ export * from './FunctionUpload';
54
+ export * from './FunctionVersion';
41
55
  export * from './GPUType';
42
56
  export * from './GPUTypePage';
43
57
  export * from './GetHealth200Response';
58
+ export * from './GpuSuggestion';
59
+ export * from './GpuSuggestionCheaper';
60
+ export * from './GpuSuggestionGpu';
44
61
  export * from './ImagesGenerationsRequest';
45
62
  export * from './ImagesResponse';
46
63
  export * from './ImagesResponseDataInner';
@@ -48,7 +65,10 @@ export * from './ImagesResponseUsage';
48
65
  export * from './IncludeItem';
49
66
  export * from './Instance';
50
67
  export * from './InstanceConnection';
68
+ export * from './InstanceGpuMemory';
51
69
  export * from './InstancePage';
70
+ export * from './Invoice';
71
+ export * from './InvoiceList';
52
72
  export * from './ListCommunityMachines200Response';
53
73
  export * from './ListDeposits200Response';
54
74
  export * from './ListRegistryCredentials200Response';
@@ -58,11 +78,13 @@ export * from './Model';
58
78
  export * from './ModelList';
59
79
  export * from './ModelParametersInner';
60
80
  export * from './ModelPricing';
81
+ export * from './ModelRate';
61
82
  export * from './OpenAIErrorEnvelope';
62
83
  export * from './OpenAIErrorEnvelopeError';
63
84
  export * from './Operation';
64
85
  export * from './OperationError';
65
86
  export * from './OperationResult';
87
+ export * from './PeakWindow';
66
88
  export * from './Pricing';
67
89
  export * from './PricingPage';
68
90
  export * from './Problem';
@@ -77,6 +99,7 @@ export * from './Template';
77
99
  export * from './TemplateEnvInner';
78
100
  export * from './TemplateList';
79
101
  export * from './TemplatePortsInner';
102
+ export * from './UpdateBillingDetailsRequest';
80
103
  export * from './UpdateInstanceRequest';
81
104
  export * from './UpdateSpendingLimitRequest';
82
105
  export * from './Usage';
@@ -61,7 +61,7 @@ export class Configuration {
61
61
  return undefined;
62
62
  }
63
63
  get headers() {
64
- return this.configuration.headers;
64
+ return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.4.1' }, this.configuration.headers);
65
65
  }
66
66
  get credentials() {
67
67
  return this.configuration.credentials;
@@ -106,7 +106,8 @@ export interface AutolaunchRule {
106
106
  */
107
107
  lastFailureReason: string | null;
108
108
  /**
109
- * The instance this rule launched, once it has fired.
109
+ * The instance this rule launched, once it has fired — an instance id of the form "gpu-" + 8 lowercase hex, the same string /v1/instances returns. Not a uuid, and deliberately carries no format or pattern: no other instance-id field in this document constrains its shape, and a generated client-side assertion on an id grammar turns a server-side widening into a client-side outage.
110
+ *
110
111
  * @type {string}
111
112
  * @memberof AutolaunchRule
112
113
  */
@@ -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 BillingDetails
16
+ */
17
+ export interface BillingDetails {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BillingDetails
22
+ */
23
+ legalName: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof BillingDetails
28
+ */
29
+ addressLine1: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof BillingDetails
34
+ */
35
+ addressLine2: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof BillingDetails
40
+ */
41
+ city: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof BillingDetails
46
+ */
47
+ region: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof BillingDetails
52
+ */
53
+ postalCode: string;
54
+ /**
55
+ * ISO 3166-1 alpha-2 code, or empty.
56
+ * @type {string}
57
+ * @memberof BillingDetails
58
+ */
59
+ country: string;
60
+ /**
61
+ * eu_vat, gb_vat, ch_vat, no_vat, us_ein, ca_bn, au_abn, nz_gst, in_gst, sg_uen, jp_cn, kr_brn, ae_trn, sa_vat, br_cnpj, mx_rfc or other. Empty when no Tax ID is stored.
62
+ * @type {string}
63
+ * @memberof BillingDetails
64
+ */
65
+ taxIdType: string;
66
+ /**
67
+ * The stored Tax ID, masked. Empty when none is stored.
68
+ * @type {string}
69
+ * @memberof BillingDetails
70
+ */
71
+ taxIdMasked: string;
72
+ /**
73
+ *
74
+ * @type {boolean}
75
+ * @memberof BillingDetails
76
+ */
77
+ hasTaxId: boolean;
78
+ /**
79
+ * False when this deployment cannot store a Tax ID.
80
+ * @type {boolean}
81
+ * @memberof BillingDetails
82
+ */
83
+ taxIdEnabled: boolean;
84
+ /**
85
+ *
86
+ * @type {Date}
87
+ * @memberof BillingDetails
88
+ */
89
+ updatedAt?: Date;
90
+ }
91
+ /**
92
+ * Check if a given object implements the BillingDetails interface.
93
+ */
94
+ export declare function instanceOfBillingDetails(value: object): value is BillingDetails;
95
+ export declare function BillingDetailsFromJSON(json: any): BillingDetails;
96
+ export declare function BillingDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingDetails;
97
+ export declare function BillingDetailsToJSON(json: any): BillingDetails;
98
+ export declare function BillingDetailsToJSONTyped(value?: BillingDetails | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,92 @@
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.instanceOfBillingDetails = instanceOfBillingDetails;
17
+ exports.BillingDetailsFromJSON = BillingDetailsFromJSON;
18
+ exports.BillingDetailsFromJSONTyped = BillingDetailsFromJSONTyped;
19
+ exports.BillingDetailsToJSON = BillingDetailsToJSON;
20
+ exports.BillingDetailsToJSONTyped = BillingDetailsToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BillingDetails interface.
23
+ */
24
+ function instanceOfBillingDetails(value) {
25
+ if ((!('legalName' in value) && !('legal_name' in value)) || (value['legalName'] === undefined && value['legal_name'] === undefined))
26
+ return false;
27
+ if ((!('addressLine1' in value) && !('address_line1' in value)) || (value['addressLine1'] === undefined && value['address_line1'] === undefined))
28
+ return false;
29
+ if ((!('addressLine2' in value) && !('address_line2' in value)) || (value['addressLine2'] === undefined && value['address_line2'] === undefined))
30
+ return false;
31
+ if (!('city' in value) || value['city'] === undefined)
32
+ return false;
33
+ if (!('region' in value) || value['region'] === undefined)
34
+ return false;
35
+ if ((!('postalCode' in value) && !('postal_code' in value)) || (value['postalCode'] === undefined && value['postal_code'] === undefined))
36
+ return false;
37
+ if (!('country' in value) || value['country'] === undefined)
38
+ return false;
39
+ if ((!('taxIdType' in value) && !('tax_id_type' in value)) || (value['taxIdType'] === undefined && value['tax_id_type'] === undefined))
40
+ return false;
41
+ if ((!('taxIdMasked' in value) && !('tax_id_masked' in value)) || (value['taxIdMasked'] === undefined && value['tax_id_masked'] === undefined))
42
+ return false;
43
+ if ((!('hasTaxId' in value) && !('has_tax_id' in value)) || (value['hasTaxId'] === undefined && value['has_tax_id'] === undefined))
44
+ return false;
45
+ if ((!('taxIdEnabled' in value) && !('tax_id_enabled' in value)) || (value['taxIdEnabled'] === undefined && value['tax_id_enabled'] === undefined))
46
+ return false;
47
+ return true;
48
+ }
49
+ function BillingDetailsFromJSON(json) {
50
+ return BillingDetailsFromJSONTyped(json, false);
51
+ }
52
+ function BillingDetailsFromJSONTyped(json, ignoreDiscriminator) {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+ 'legalName': json['legal_name'],
58
+ 'addressLine1': json['address_line1'],
59
+ 'addressLine2': json['address_line2'],
60
+ 'city': json['city'],
61
+ 'region': json['region'],
62
+ 'postalCode': json['postal_code'],
63
+ 'country': json['country'],
64
+ 'taxIdType': json['tax_id_type'],
65
+ 'taxIdMasked': json['tax_id_masked'],
66
+ 'hasTaxId': json['has_tax_id'],
67
+ 'taxIdEnabled': json['tax_id_enabled'],
68
+ 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
69
+ };
70
+ }
71
+ function BillingDetailsToJSON(json) {
72
+ return BillingDetailsToJSONTyped(json, false);
73
+ }
74
+ function BillingDetailsToJSONTyped(value, ignoreDiscriminator = false) {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+ return {
79
+ 'legal_name': value['legalName'],
80
+ 'address_line1': value['addressLine1'],
81
+ 'address_line2': value['addressLine2'],
82
+ 'city': value['city'],
83
+ 'region': value['region'],
84
+ 'postal_code': value['postalCode'],
85
+ 'country': value['country'],
86
+ 'tax_id_type': value['taxIdType'],
87
+ 'tax_id_masked': value['taxIdMasked'],
88
+ 'has_tax_id': value['hasTaxId'],
89
+ 'tax_id_enabled': value['taxIdEnabled'],
90
+ 'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
91
+ };
92
+ }
@@ -0,0 +1,32 @@
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 CreateFunctionRequest
16
+ */
17
+ export interface CreateFunctionRequest {
18
+ /**
19
+ * A letter, then letters, digits, underscores or hyphens; 63 characters at most.
20
+ * @type {string}
21
+ * @memberof CreateFunctionRequest
22
+ */
23
+ name: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateFunctionRequest interface.
27
+ */
28
+ export declare function instanceOfCreateFunctionRequest(value: object): value is CreateFunctionRequest;
29
+ export declare function CreateFunctionRequestFromJSON(json: any): CreateFunctionRequest;
30
+ export declare function CreateFunctionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFunctionRequest;
31
+ export declare function CreateFunctionRequestToJSON(json: any): CreateFunctionRequest;
32
+ export declare function CreateFunctionRequestToJSONTyped(value?: CreateFunctionRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfCreateFunctionRequest = instanceOfCreateFunctionRequest;
17
+ exports.CreateFunctionRequestFromJSON = CreateFunctionRequestFromJSON;
18
+ exports.CreateFunctionRequestFromJSONTyped = CreateFunctionRequestFromJSONTyped;
19
+ exports.CreateFunctionRequestToJSON = CreateFunctionRequestToJSON;
20
+ exports.CreateFunctionRequestToJSONTyped = CreateFunctionRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateFunctionRequest interface.
23
+ */
24
+ function instanceOfCreateFunctionRequest(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CreateFunctionRequestFromJSON(json) {
30
+ return CreateFunctionRequestFromJSONTyped(json, false);
31
+ }
32
+ function CreateFunctionRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'],
38
+ };
39
+ }
40
+ function CreateFunctionRequestToJSON(json) {
41
+ return CreateFunctionRequestToJSONTyped(json, false);
42
+ }
43
+ function CreateFunctionRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'name': value['name'],
49
+ };
50
+ }
@@ -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 CreateFunctionRunRequest
16
+ */
17
+ export interface CreateFunctionRunRequest {
18
+ /**
19
+ * The version to run. Omit to run the function's current version.
20
+ * @type {string}
21
+ * @memberof CreateFunctionRunRequest
22
+ */
23
+ versionId?: string;
24
+ /**
25
+ * The pickled (args, kwargs) of the call, base64-encoded. 4 MB at most before encoding.
26
+ * @type {string}
27
+ * @memberof CreateFunctionRunRequest
28
+ */
29
+ input: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CreateFunctionRunRequest interface.
33
+ */
34
+ export declare function instanceOfCreateFunctionRunRequest(value: object): value is CreateFunctionRunRequest;
35
+ export declare function CreateFunctionRunRequestFromJSON(json: any): CreateFunctionRunRequest;
36
+ export declare function CreateFunctionRunRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFunctionRunRequest;
37
+ export declare function CreateFunctionRunRequestToJSON(json: any): CreateFunctionRunRequest;
38
+ export declare function CreateFunctionRunRequestToJSONTyped(value?: CreateFunctionRunRequest | 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.instanceOfCreateFunctionRunRequest = instanceOfCreateFunctionRunRequest;
17
+ exports.CreateFunctionRunRequestFromJSON = CreateFunctionRunRequestFromJSON;
18
+ exports.CreateFunctionRunRequestFromJSONTyped = CreateFunctionRunRequestFromJSONTyped;
19
+ exports.CreateFunctionRunRequestToJSON = CreateFunctionRunRequestToJSON;
20
+ exports.CreateFunctionRunRequestToJSONTyped = CreateFunctionRunRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateFunctionRunRequest interface.
23
+ */
24
+ function instanceOfCreateFunctionRunRequest(value) {
25
+ if (!('input' in value) || value['input'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CreateFunctionRunRequestFromJSON(json) {
30
+ return CreateFunctionRunRequestFromJSONTyped(json, false);
31
+ }
32
+ function CreateFunctionRunRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'versionId': json['version_id'] == null ? undefined : json['version_id'],
38
+ 'input': json['input'],
39
+ };
40
+ }
41
+ function CreateFunctionRunRequestToJSON(json) {
42
+ return CreateFunctionRunRequestToJSONTyped(json, false);
43
+ }
44
+ function CreateFunctionRunRequestToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'version_id': value['versionId'],
50
+ 'input': value['input'],
51
+ };
52
+ }