@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
@@ -13,11 +13,21 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ModelPricingPeriodEnum = void 0;
16
17
  exports.instanceOfModelPricing = instanceOfModelPricing;
17
18
  exports.ModelPricingFromJSON = ModelPricingFromJSON;
18
19
  exports.ModelPricingFromJSONTyped = ModelPricingFromJSONTyped;
19
20
  exports.ModelPricingToJSON = ModelPricingToJSON;
20
21
  exports.ModelPricingToJSONTyped = ModelPricingToJSONTyped;
22
+ const ModelRate_1 = require("./ModelRate");
23
+ const PeakWindow_1 = require("./PeakWindow");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.ModelPricingPeriodEnum = {
28
+ Peak: 'peak',
29
+ OffPeak: 'off_peak'
30
+ };
21
31
  /**
22
32
  * Check if a given object implements the ModelPricing interface.
23
33
  */
@@ -35,12 +45,18 @@ function ModelPricingFromJSONTyped(json, ignoreDiscriminator) {
35
45
  'currency': json['currency'] == null ? undefined : json['currency'],
36
46
  'inputPer1mTokensCents': json['input_per_1m_tokens_cents'] == null ? undefined : json['input_per_1m_tokens_cents'],
37
47
  'outputPer1mTokensCents': json['output_per_1m_tokens_cents'] == null ? undefined : json['output_per_1m_tokens_cents'],
48
+ 'cachedInputPer1mTokensMicrocents': json['cached_input_per_1m_tokens_microcents'] == null ? undefined : json['cached_input_per_1m_tokens_microcents'],
49
+ 'cachedInputPer1mTokensCents': json['cached_input_per_1m_tokens_cents'] == null ? undefined : json['cached_input_per_1m_tokens_cents'],
38
50
  'perImageCents': json['per_image_cents'] == null ? undefined : json['per_image_cents'],
39
51
  'perImageMicrocents': json['per_image_microcents'] == null ? undefined : json['per_image_microcents'],
40
52
  'perMpxlMicrocents': json['per_mpxl_microcents'] == null ? undefined : json['per_mpxl_microcents'],
41
53
  'perVideoMicrocents': json['per_video_microcents'] == null ? undefined : json['per_video_microcents'],
42
54
  'perVideoSecondCents': json['per_video_second_cents'] == null ? undefined : json['per_video_second_cents'],
43
55
  'perVideoSecondMicrocents': json['per_video_second_microcents'] == null ? undefined : json['per_video_second_microcents'],
56
+ 'period': json['period'] == null ? undefined : json['period'],
57
+ 'peakWindowsUtc': json['peak_windows_utc'] == null ? undefined : (json['peak_windows_utc'].map(PeakWindow_1.PeakWindowFromJSON)),
58
+ 'peak': json['peak'] == null ? undefined : (0, ModelRate_1.ModelRateFromJSON)(json['peak']),
59
+ 'offPeak': json['off_peak'] == null ? undefined : (0, ModelRate_1.ModelRateFromJSON)(json['off_peak']),
44
60
  };
45
61
  }
46
62
  function ModelPricingToJSON(json) {
@@ -54,11 +70,17 @@ function ModelPricingToJSONTyped(value, ignoreDiscriminator = false) {
54
70
  'currency': value['currency'],
55
71
  'input_per_1m_tokens_cents': value['inputPer1mTokensCents'],
56
72
  'output_per_1m_tokens_cents': value['outputPer1mTokensCents'],
73
+ 'cached_input_per_1m_tokens_microcents': value['cachedInputPer1mTokensMicrocents'],
74
+ 'cached_input_per_1m_tokens_cents': value['cachedInputPer1mTokensCents'],
57
75
  'per_image_cents': value['perImageCents'],
58
76
  'per_image_microcents': value['perImageMicrocents'],
59
77
  'per_mpxl_microcents': value['perMpxlMicrocents'],
60
78
  'per_video_microcents': value['perVideoMicrocents'],
61
79
  'per_video_second_cents': value['perVideoSecondCents'],
62
80
  'per_video_second_microcents': value['perVideoSecondMicrocents'],
81
+ 'period': value['period'],
82
+ 'peak_windows_utc': value['peakWindowsUtc'] == null ? undefined : (value['peakWindowsUtc'].map(PeakWindow_1.PeakWindowToJSON)),
83
+ 'peak': (0, ModelRate_1.ModelRateToJSON)(value['peak']),
84
+ 'off_peak': (0, ModelRate_1.ModelRateToJSON)(value['offPeak']),
63
85
  };
64
86
  }
@@ -0,0 +1,62 @@
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
+ * One per-1M-token rate triple, in rounded cents and exact micro-cents (1e-6 cent). Prefer the micro-cent fields for arithmetic; cached rates are routinely sub-cent and their cents field is then omitted.
14
+ * @export
15
+ * @interface ModelRate
16
+ */
17
+ export interface ModelRate {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof ModelRate
22
+ */
23
+ inputPer1mTokensCents?: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof ModelRate
28
+ */
29
+ inputPer1mTokensMicrocents?: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ModelRate
34
+ */
35
+ cachedInputPer1mTokensCents?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ModelRate
40
+ */
41
+ cachedInputPer1mTokensMicrocents?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ModelRate
46
+ */
47
+ outputPer1mTokensCents?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ModelRate
52
+ */
53
+ outputPer1mTokensMicrocents?: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the ModelRate interface.
57
+ */
58
+ export declare function instanceOfModelRate(value: object): value is ModelRate;
59
+ export declare function ModelRateFromJSON(json: any): ModelRate;
60
+ export declare function ModelRateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelRate;
61
+ export declare function ModelRateToJSON(json: any): ModelRate;
62
+ export declare function ModelRateToJSONTyped(value?: ModelRate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * GPU.ai Public Developer API
6
+ * Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@gpu.ai
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfModelRate = instanceOfModelRate;
17
+ exports.ModelRateFromJSON = ModelRateFromJSON;
18
+ exports.ModelRateFromJSONTyped = ModelRateFromJSONTyped;
19
+ exports.ModelRateToJSON = ModelRateToJSON;
20
+ exports.ModelRateToJSONTyped = ModelRateToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ModelRate interface.
23
+ */
24
+ function instanceOfModelRate(value) {
25
+ return true;
26
+ }
27
+ function ModelRateFromJSON(json) {
28
+ return ModelRateFromJSONTyped(json, false);
29
+ }
30
+ function ModelRateFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'inputPer1mTokensCents': json['input_per_1m_tokens_cents'] == null ? undefined : json['input_per_1m_tokens_cents'],
36
+ 'inputPer1mTokensMicrocents': json['input_per_1m_tokens_microcents'] == null ? undefined : json['input_per_1m_tokens_microcents'],
37
+ 'cachedInputPer1mTokensCents': json['cached_input_per_1m_tokens_cents'] == null ? undefined : json['cached_input_per_1m_tokens_cents'],
38
+ 'cachedInputPer1mTokensMicrocents': json['cached_input_per_1m_tokens_microcents'] == null ? undefined : json['cached_input_per_1m_tokens_microcents'],
39
+ 'outputPer1mTokensCents': json['output_per_1m_tokens_cents'] == null ? undefined : json['output_per_1m_tokens_cents'],
40
+ 'outputPer1mTokensMicrocents': json['output_per_1m_tokens_microcents'] == null ? undefined : json['output_per_1m_tokens_microcents'],
41
+ };
42
+ }
43
+ function ModelRateToJSON(json) {
44
+ return ModelRateToJSONTyped(json, false);
45
+ }
46
+ function ModelRateToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'input_per_1m_tokens_cents': value['inputPer1mTokensCents'],
52
+ 'input_per_1m_tokens_microcents': value['inputPer1mTokensMicrocents'],
53
+ 'cached_input_per_1m_tokens_cents': value['cachedInputPer1mTokensCents'],
54
+ 'cached_input_per_1m_tokens_microcents': value['cachedInputPer1mTokensMicrocents'],
55
+ 'output_per_1m_tokens_cents': value['outputPer1mTokensCents'],
56
+ 'output_per_1m_tokens_microcents': value['outputPer1mTokensMicrocents'],
57
+ };
58
+ }
@@ -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
+ * One daily UTC time range during which a model's peak rates apply.
14
+ * @export
15
+ * @interface PeakWindow
16
+ */
17
+ export interface PeakWindow {
18
+ /**
19
+ * "HH:MM" UTC, inclusive.
20
+ * @type {string}
21
+ * @memberof PeakWindow
22
+ */
23
+ start: string;
24
+ /**
25
+ * "HH:MM" UTC, exclusive ("24:00" means until midnight).
26
+ * @type {string}
27
+ * @memberof PeakWindow
28
+ */
29
+ end: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PeakWindow interface.
33
+ */
34
+ export declare function instanceOfPeakWindow(value: object): value is PeakWindow;
35
+ export declare function PeakWindowFromJSON(json: any): PeakWindow;
36
+ export declare function PeakWindowFromJSONTyped(json: any, ignoreDiscriminator: boolean): PeakWindow;
37
+ export declare function PeakWindowToJSON(json: any): PeakWindow;
38
+ export declare function PeakWindowToJSONTyped(value?: PeakWindow | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfPeakWindow = instanceOfPeakWindow;
17
+ exports.PeakWindowFromJSON = PeakWindowFromJSON;
18
+ exports.PeakWindowFromJSONTyped = PeakWindowFromJSONTyped;
19
+ exports.PeakWindowToJSON = PeakWindowToJSON;
20
+ exports.PeakWindowToJSONTyped = PeakWindowToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PeakWindow interface.
23
+ */
24
+ function instanceOfPeakWindow(value) {
25
+ if (!('start' in value) || value['start'] === undefined)
26
+ return false;
27
+ if (!('end' in value) || value['end'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function PeakWindowFromJSON(json) {
32
+ return PeakWindowFromJSONTyped(json, false);
33
+ }
34
+ function PeakWindowFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'start': json['start'],
40
+ 'end': json['end'],
41
+ };
42
+ }
43
+ function PeakWindowToJSON(json) {
44
+ return PeakWindowToJSONTyped(json, false);
45
+ }
46
+ function PeakWindowToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'start': value['start'],
52
+ 'end': value['end'],
53
+ };
54
+ }
@@ -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,64 @@
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.instanceOfUpdateBillingDetailsRequest = instanceOfUpdateBillingDetailsRequest;
17
+ exports.UpdateBillingDetailsRequestFromJSON = UpdateBillingDetailsRequestFromJSON;
18
+ exports.UpdateBillingDetailsRequestFromJSONTyped = UpdateBillingDetailsRequestFromJSONTyped;
19
+ exports.UpdateBillingDetailsRequestToJSON = UpdateBillingDetailsRequestToJSON;
20
+ exports.UpdateBillingDetailsRequestToJSONTyped = UpdateBillingDetailsRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateBillingDetailsRequest interface.
23
+ */
24
+ function instanceOfUpdateBillingDetailsRequest(value) {
25
+ return true;
26
+ }
27
+ function UpdateBillingDetailsRequestFromJSON(json) {
28
+ return UpdateBillingDetailsRequestFromJSONTyped(json, false);
29
+ }
30
+ function UpdateBillingDetailsRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'legalName': json['legal_name'] == null ? undefined : json['legal_name'],
36
+ 'addressLine1': json['address_line1'] == null ? undefined : json['address_line1'],
37
+ 'addressLine2': json['address_line2'] == null ? undefined : json['address_line2'],
38
+ 'city': json['city'] == null ? undefined : json['city'],
39
+ 'region': json['region'] == null ? undefined : json['region'],
40
+ 'postalCode': json['postal_code'] == null ? undefined : json['postal_code'],
41
+ 'country': json['country'] == null ? undefined : json['country'],
42
+ 'taxIdType': json['tax_id_type'] == null ? undefined : json['tax_id_type'],
43
+ 'taxId': json['tax_id'] == null ? undefined : json['tax_id'],
44
+ };
45
+ }
46
+ function UpdateBillingDetailsRequestToJSON(json) {
47
+ return UpdateBillingDetailsRequestToJSONTyped(json, false);
48
+ }
49
+ function UpdateBillingDetailsRequestToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'legal_name': value['legalName'],
55
+ 'address_line1': value['addressLine1'],
56
+ 'address_line2': value['addressLine2'],
57
+ 'city': value['city'],
58
+ 'region': value['region'],
59
+ 'postal_code': value['postalCode'],
60
+ 'country': value['country'],
61
+ 'tax_id_type': value['taxIdType'],
62
+ 'tax_id': value['taxId'],
63
+ };
64
+ }
@@ -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';
@@ -21,6 +21,7 @@ __exportStar(require("./AutolaunchRuleCreate"), exports);
21
21
  __exportStar(require("./AutolaunchRuleDisarm"), exports);
22
22
  __exportStar(require("./AutolaunchRulePage"), exports);
23
23
  __exportStar(require("./Balance"), exports);
24
+ __exportStar(require("./BillingDetails"), exports);
24
25
  __exportStar(require("./ChatChoice"), exports);
25
26
  __exportStar(require("./ChatCompletionRequest"), exports);
26
27
  __exportStar(require("./ChatCompletionResponse"), exports);
@@ -34,6 +35,9 @@ __exportStar(require("./CreateFineTuningJobRequest"), exports);
34
35
  __exportStar(require("./CreateFineTuningJobRequestGpuai"), exports);
35
36
  __exportStar(require("./CreateFineTuningJobRequestMethod"), exports);
36
37
  __exportStar(require("./CreateFineTuningJobRequestMethodLora"), exports);
38
+ __exportStar(require("./CreateFunctionRequest"), exports);
39
+ __exportStar(require("./CreateFunctionRunRequest"), exports);
40
+ __exportStar(require("./CreateFunctionVersionRequest"), exports);
37
41
  __exportStar(require("./CreateInstanceRequest"), exports);
38
42
  __exportStar(require("./CreateInstanceRequestPortsInner"), exports);
39
43
  __exportStar(require("./CreateRegistryCredentialRequest"), exports);
@@ -54,6 +58,16 @@ __exportStar(require("./FineTuningJobEventList"), exports);
54
58
  __exportStar(require("./FineTuningJobList"), exports);
55
59
  __exportStar(require("./FineTuningJobMethod"), exports);
56
60
  __exportStar(require("./FrameworkVersion"), exports);
61
+ __exportStar(require("./Function"), exports);
62
+ __exportStar(require("./FunctionList"), exports);
63
+ __exportStar(require("./FunctionReplicaCounts"), exports);
64
+ __exportStar(require("./FunctionRun"), exports);
65
+ __exportStar(require("./FunctionRunError"), exports);
66
+ __exportStar(require("./FunctionRunList"), exports);
67
+ __exportStar(require("./FunctionRunLogChunk"), exports);
68
+ __exportStar(require("./FunctionRunLogs"), exports);
69
+ __exportStar(require("./FunctionUpload"), exports);
70
+ __exportStar(require("./FunctionVersion"), exports);
57
71
  __exportStar(require("./GPUType"), exports);
58
72
  __exportStar(require("./GPUTypePage"), exports);
59
73
  __exportStar(require("./GetHealth200Response"), exports);
@@ -65,6 +79,8 @@ __exportStar(require("./IncludeItem"), exports);
65
79
  __exportStar(require("./Instance"), exports);
66
80
  __exportStar(require("./InstanceConnection"), exports);
67
81
  __exportStar(require("./InstancePage"), exports);
82
+ __exportStar(require("./Invoice"), exports);
83
+ __exportStar(require("./InvoiceList"), exports);
68
84
  __exportStar(require("./ListCommunityMachines200Response"), exports);
69
85
  __exportStar(require("./ListDeposits200Response"), exports);
70
86
  __exportStar(require("./ListRegistryCredentials200Response"), exports);
@@ -74,11 +90,13 @@ __exportStar(require("./Model"), exports);
74
90
  __exportStar(require("./ModelList"), exports);
75
91
  __exportStar(require("./ModelParametersInner"), exports);
76
92
  __exportStar(require("./ModelPricing"), exports);
93
+ __exportStar(require("./ModelRate"), exports);
77
94
  __exportStar(require("./OpenAIErrorEnvelope"), exports);
78
95
  __exportStar(require("./OpenAIErrorEnvelopeError"), exports);
79
96
  __exportStar(require("./Operation"), exports);
80
97
  __exportStar(require("./OperationError"), exports);
81
98
  __exportStar(require("./OperationResult"), exports);
99
+ __exportStar(require("./PeakWindow"), exports);
82
100
  __exportStar(require("./Pricing"), exports);
83
101
  __exportStar(require("./PricingPage"), exports);
84
102
  __exportStar(require("./Problem"), exports);
@@ -93,6 +111,7 @@ __exportStar(require("./Template"), exports);
93
111
  __exportStar(require("./TemplateEnvInner"), exports);
94
112
  __exportStar(require("./TemplateList"), exports);
95
113
  __exportStar(require("./TemplatePortsInner"), exports);
114
+ __exportStar(require("./UpdateBillingDetailsRequest"), exports);
96
115
  __exportStar(require("./UpdateInstanceRequest"), exports);
97
116
  __exportStar(require("./UpdateSpendingLimitRequest"), exports);
98
117
  __exportStar(require("./Usage"), exports);
package/dist/runtime.js CHANGED
@@ -69,7 +69,7 @@ class Configuration {
69
69
  return undefined;
70
70
  }
71
71
  get headers() {
72
- return this.configuration.headers;
72
+ return Object.assign({ 'User-Agent': 'gpuai-sdk-ts/0.4.0' }, this.configuration.headers);
73
73
  }
74
74
  get credentials() {
75
75
  return this.configuration.credentials;