@gpuai/sdk 0.3.18 → 0.4.0

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 (151) hide show
  1. package/.openapi-generator/FILES +40 -0
  2. package/README.md +36 -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/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/BillingApi.d.ts +70 -0
  10. package/dist/esm/apis/BillingApi.js +197 -0
  11. package/dist/esm/apis/FunctionsApi.d.ts +228 -0
  12. package/dist/esm/apis/FunctionsApi.js +623 -0
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/AutolaunchRule.d.ts +2 -1
  16. package/dist/esm/models/BillingDetails.d.ts +98 -0
  17. package/dist/esm/models/BillingDetails.js +85 -0
  18. package/dist/esm/models/CreateFunctionRequest.d.ts +32 -0
  19. package/dist/esm/models/CreateFunctionRequest.js +43 -0
  20. package/dist/esm/models/CreateFunctionRunRequest.d.ts +38 -0
  21. package/dist/esm/models/CreateFunctionRunRequest.js +45 -0
  22. package/dist/esm/models/CreateFunctionVersionRequest.d.ts +110 -0
  23. package/dist/esm/models/CreateFunctionVersionRequest.js +79 -0
  24. package/dist/esm/models/Function.d.ts +163 -0
  25. package/dist/esm/models/Function.js +109 -0
  26. package/dist/esm/models/FunctionList.d.ts +33 -0
  27. package/dist/esm/models/FunctionList.js +44 -0
  28. package/dist/esm/models/FunctionReplicaCounts.d.ts +44 -0
  29. package/dist/esm/models/FunctionReplicaCounts.js +51 -0
  30. package/dist/esm/models/FunctionRun.d.ts +130 -0
  31. package/dist/esm/models/FunctionRun.js +94 -0
  32. package/dist/esm/models/FunctionRunError.d.ts +44 -0
  33. package/dist/esm/models/FunctionRunError.js +49 -0
  34. package/dist/esm/models/FunctionRunList.d.ts +39 -0
  35. package/dist/esm/models/FunctionRunList.js +48 -0
  36. package/dist/esm/models/FunctionRunLogChunk.d.ts +59 -0
  37. package/dist/esm/models/FunctionRunLogChunk.js +63 -0
  38. package/dist/esm/models/FunctionRunLogs.d.ts +45 -0
  39. package/dist/esm/models/FunctionRunLogs.js +52 -0
  40. package/dist/esm/models/FunctionUpload.d.ts +51 -0
  41. package/dist/esm/models/FunctionUpload.js +59 -0
  42. package/dist/esm/models/FunctionVersion.d.ts +137 -0
  43. package/dist/esm/models/FunctionVersion.js +109 -0
  44. package/dist/esm/models/Invoice.d.ts +68 -0
  45. package/dist/esm/models/Invoice.js +67 -0
  46. package/dist/esm/models/InvoiceList.d.ts +45 -0
  47. package/dist/esm/models/InvoiceList.js +50 -0
  48. package/dist/esm/models/ModelPricing.d.ts +46 -0
  49. package/dist/esm/models/ModelPricing.js +21 -0
  50. package/dist/esm/models/ModelRate.d.ts +62 -0
  51. package/dist/esm/models/ModelRate.js +51 -0
  52. package/dist/esm/models/PeakWindow.d.ts +38 -0
  53. package/dist/esm/models/PeakWindow.js +47 -0
  54. package/dist/esm/models/UpdateBillingDetailsRequest.d.ts +80 -0
  55. package/dist/esm/models/UpdateBillingDetailsRequest.js +57 -0
  56. package/dist/esm/models/index.d.ts +19 -0
  57. package/dist/esm/models/index.js +19 -0
  58. package/dist/esm/runtime.js +1 -1
  59. package/dist/models/AutolaunchRule.d.ts +2 -1
  60. package/dist/models/BillingDetails.d.ts +98 -0
  61. package/dist/models/BillingDetails.js +92 -0
  62. package/dist/models/CreateFunctionRequest.d.ts +32 -0
  63. package/dist/models/CreateFunctionRequest.js +50 -0
  64. package/dist/models/CreateFunctionRunRequest.d.ts +38 -0
  65. package/dist/models/CreateFunctionRunRequest.js +52 -0
  66. package/dist/models/CreateFunctionVersionRequest.d.ts +110 -0
  67. package/dist/models/CreateFunctionVersionRequest.js +86 -0
  68. package/dist/models/Function.d.ts +163 -0
  69. package/dist/models/Function.js +117 -0
  70. package/dist/models/FunctionList.d.ts +33 -0
  71. package/dist/models/FunctionList.js +51 -0
  72. package/dist/models/FunctionReplicaCounts.d.ts +44 -0
  73. package/dist/models/FunctionReplicaCounts.js +58 -0
  74. package/dist/models/FunctionRun.d.ts +130 -0
  75. package/dist/models/FunctionRun.js +102 -0
  76. package/dist/models/FunctionRunError.d.ts +44 -0
  77. package/dist/models/FunctionRunError.js +56 -0
  78. package/dist/models/FunctionRunList.d.ts +39 -0
  79. package/dist/models/FunctionRunList.js +55 -0
  80. package/dist/models/FunctionRunLogChunk.d.ts +59 -0
  81. package/dist/models/FunctionRunLogChunk.js +71 -0
  82. package/dist/models/FunctionRunLogs.d.ts +45 -0
  83. package/dist/models/FunctionRunLogs.js +59 -0
  84. package/dist/models/FunctionUpload.d.ts +51 -0
  85. package/dist/models/FunctionUpload.js +67 -0
  86. package/dist/models/FunctionVersion.d.ts +137 -0
  87. package/dist/models/FunctionVersion.js +117 -0
  88. package/dist/models/Invoice.d.ts +68 -0
  89. package/dist/models/Invoice.js +74 -0
  90. package/dist/models/InvoiceList.d.ts +45 -0
  91. package/dist/models/InvoiceList.js +57 -0
  92. package/dist/models/ModelPricing.d.ts +46 -0
  93. package/dist/models/ModelPricing.js +22 -0
  94. package/dist/models/ModelRate.d.ts +62 -0
  95. package/dist/models/ModelRate.js +58 -0
  96. package/dist/models/PeakWindow.d.ts +38 -0
  97. package/dist/models/PeakWindow.js +54 -0
  98. package/dist/models/UpdateBillingDetailsRequest.d.ts +80 -0
  99. package/dist/models/UpdateBillingDetailsRequest.js +64 -0
  100. package/dist/models/index.d.ts +19 -0
  101. package/dist/models/index.js +19 -0
  102. package/dist/runtime.js +1 -1
  103. package/docs/BillingApi.md +299 -0
  104. package/docs/BillingDetails.md +56 -0
  105. package/docs/CreateFunctionRequest.md +34 -0
  106. package/docs/CreateFunctionRunRequest.md +36 -0
  107. package/docs/CreateFunctionVersionRequest.md +60 -0
  108. package/docs/Function.md +75 -0
  109. package/docs/FunctionList.md +34 -0
  110. package/docs/FunctionReplicaCounts.md +39 -0
  111. package/docs/FunctionRun.md +63 -0
  112. package/docs/FunctionRunError.md +38 -0
  113. package/docs/FunctionRunList.md +36 -0
  114. package/docs/FunctionRunLogChunk.md +40 -0
  115. package/docs/FunctionRunLogs.md +38 -0
  116. package/docs/FunctionUpload.md +38 -0
  117. package/docs/FunctionVersion.md +66 -0
  118. package/docs/FunctionsApi.md +880 -0
  119. package/docs/Invoice.md +46 -0
  120. package/docs/InvoiceList.md +38 -0
  121. package/docs/ModelPricing.md +12 -0
  122. package/docs/ModelRate.md +45 -0
  123. package/docs/PeakWindow.md +37 -0
  124. package/docs/UpdateBillingDetailsRequest.md +50 -0
  125. package/package.json +1 -1
  126. package/src/apis/BillingApi.ts +247 -0
  127. package/src/apis/FunctionsApi.ts +828 -0
  128. package/src/apis/index.ts +1 -0
  129. package/src/models/AutolaunchRule.ts +2 -1
  130. package/src/models/BillingDetails.ts +164 -0
  131. package/src/models/CreateFunctionRequest.ts +66 -0
  132. package/src/models/CreateFunctionRunRequest.ts +74 -0
  133. package/src/models/CreateFunctionVersionRequest.ts +175 -0
  134. package/src/models/Function.ts +255 -0
  135. package/src/models/FunctionList.ts +74 -0
  136. package/src/models/FunctionReplicaCounts.ts +84 -0
  137. package/src/models/FunctionRun.ts +207 -0
  138. package/src/models/FunctionRunError.ts +83 -0
  139. package/src/models/FunctionRunList.ts +83 -0
  140. package/src/models/FunctionRunLogChunk.ts +105 -0
  141. package/src/models/FunctionRunLogs.ts +92 -0
  142. package/src/models/FunctionUpload.ts +96 -0
  143. package/src/models/FunctionVersion.ts +226 -0
  144. package/src/models/Invoice.ts +120 -0
  145. package/src/models/InvoiceList.ts +91 -0
  146. package/src/models/ModelPricing.ts +74 -0
  147. package/src/models/ModelRate.ts +105 -0
  148. package/src/models/PeakWindow.ts +75 -0
  149. package/src/models/UpdateBillingDetailsRequest.ts +129 -0
  150. package/src/models/index.ts +19 -0
  151. package/src/runtime.ts +1 -1
@@ -0,0 +1,80 @@
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 UpdateBillingDetailsRequest
16
+ */
17
+ export interface UpdateBillingDetailsRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UpdateBillingDetailsRequest
22
+ */
23
+ legalName?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UpdateBillingDetailsRequest
28
+ */
29
+ addressLine1?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof UpdateBillingDetailsRequest
34
+ */
35
+ addressLine2?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof UpdateBillingDetailsRequest
40
+ */
41
+ city?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof UpdateBillingDetailsRequest
46
+ */
47
+ region?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof UpdateBillingDetailsRequest
52
+ */
53
+ postalCode?: string;
54
+ /**
55
+ * ISO 3166-1 alpha-2 code; empty clears it.
56
+ * @type {string}
57
+ * @memberof UpdateBillingDetailsRequest
58
+ */
59
+ country?: string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof UpdateBillingDetailsRequest
64
+ */
65
+ taxIdType?: string;
66
+ /**
67
+ * Write only. Stored encrypted and never returned in full. Empty removes the stored Tax ID.
68
+ * @type {string}
69
+ * @memberof UpdateBillingDetailsRequest
70
+ */
71
+ taxId?: string;
72
+ }
73
+ /**
74
+ * Check if a given object implements the UpdateBillingDetailsRequest interface.
75
+ */
76
+ export declare function instanceOfUpdateBillingDetailsRequest(value: object): value is UpdateBillingDetailsRequest;
77
+ export declare function UpdateBillingDetailsRequestFromJSON(json: any): UpdateBillingDetailsRequest;
78
+ export declare function UpdateBillingDetailsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateBillingDetailsRequest;
79
+ export declare function UpdateBillingDetailsRequestToJSON(json: any): UpdateBillingDetailsRequest;
80
+ export declare function UpdateBillingDetailsRequestToJSONTyped(value?: UpdateBillingDetailsRequest | null, ignoreDiscriminator?: boolean): any;
@@ -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,6 +40,16 @@ 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';
@@ -47,6 +61,8 @@ export * from './IncludeItem';
47
61
  export * from './Instance';
48
62
  export * from './InstanceConnection';
49
63
  export * from './InstancePage';
64
+ export * from './Invoice';
65
+ export * from './InvoiceList';
50
66
  export * from './ListCommunityMachines200Response';
51
67
  export * from './ListDeposits200Response';
52
68
  export * from './ListRegistryCredentials200Response';
@@ -56,11 +72,13 @@ export * from './Model';
56
72
  export * from './ModelList';
57
73
  export * from './ModelParametersInner';
58
74
  export * from './ModelPricing';
75
+ export * from './ModelRate';
59
76
  export * from './OpenAIErrorEnvelope';
60
77
  export * from './OpenAIErrorEnvelopeError';
61
78
  export * from './Operation';
62
79
  export * from './OperationError';
63
80
  export * from './OperationResult';
81
+ export * from './PeakWindow';
64
82
  export * from './Pricing';
65
83
  export * from './PricingPage';
66
84
  export * from './Problem';
@@ -75,6 +93,7 @@ export * from './Template';
75
93
  export * from './TemplateEnvInner';
76
94
  export * from './TemplateList';
77
95
  export * from './TemplatePortsInner';
96
+ export * from './UpdateBillingDetailsRequest';
78
97
  export * from './UpdateInstanceRequest';
79
98
  export * from './UpdateSpendingLimitRequest';
80
99
  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,6 +42,16 @@ 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';
@@ -49,6 +63,8 @@ export * from './IncludeItem';
49
63
  export * from './Instance';
50
64
  export * from './InstanceConnection';
51
65
  export * from './InstancePage';
66
+ export * from './Invoice';
67
+ export * from './InvoiceList';
52
68
  export * from './ListCommunityMachines200Response';
53
69
  export * from './ListDeposits200Response';
54
70
  export * from './ListRegistryCredentials200Response';
@@ -58,11 +74,13 @@ export * from './Model';
58
74
  export * from './ModelList';
59
75
  export * from './ModelParametersInner';
60
76
  export * from './ModelPricing';
77
+ export * from './ModelRate';
61
78
  export * from './OpenAIErrorEnvelope';
62
79
  export * from './OpenAIErrorEnvelopeError';
63
80
  export * from './Operation';
64
81
  export * from './OperationError';
65
82
  export * from './OperationResult';
83
+ export * from './PeakWindow';
66
84
  export * from './Pricing';
67
85
  export * from './PricingPage';
68
86
  export * from './Problem';
@@ -77,6 +95,7 @@ export * from './Template';
77
95
  export * from './TemplateEnvInner';
78
96
  export * from './TemplateList';
79
97
  export * from './TemplatePortsInner';
98
+ export * from './UpdateBillingDetailsRequest';
80
99
  export * from './UpdateInstanceRequest';
81
100
  export * from './UpdateSpendingLimitRequest';
82
101
  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.0' }, 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
+ }