@gpuai/sdk 0.1.1 → 0.1.3

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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @gpuai/sdk@0.1.1
1
+ # @gpuai/sdk@0.1.3
2
2
 
3
3
  A TypeScript SDK client for the api.gpu.ai API.
4
4
 
@@ -202,7 +202,7 @@ and is automatically generated by the
202
202
  [OpenAPI Generator](https://openapi-generator.tech) project:
203
203
 
204
204
  - API version: `1.0.0`
205
- - Package version: `0.1.1`
205
+ - Package version: `0.1.3`
206
206
  - Generator version: `7.24.0`
207
207
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
208
208
 
@@ -22,6 +22,12 @@ export interface ListDeposits200Response {
22
22
  * @memberof ListDeposits200Response
23
23
  */
24
24
  deposits: Array<CryptoDeposit>;
25
+ /**
26
+ * The effective minimum deposit in USD cents (admin override, else the deployment's configured floor). Validate amounts against this live value rather than hardcoding the default.
27
+ * @type {number}
28
+ * @memberof ListDeposits200Response
29
+ */
30
+ minDepositCents: number;
25
31
  }
26
32
  /**
27
33
  * Check if a given object implements the ListDeposits200Response interface.
@@ -18,6 +18,8 @@ import { CryptoDepositFromJSON, CryptoDepositToJSON, } from './CryptoDeposit';
18
18
  export function instanceOfListDeposits200Response(value) {
19
19
  if (!('deposits' in value) || value['deposits'] === undefined)
20
20
  return false;
21
+ if ((!('minDepositCents' in value) && !('min_deposit_cents' in value)) || (value['minDepositCents'] === undefined && value['min_deposit_cents'] === undefined))
22
+ return false;
21
23
  return true;
22
24
  }
23
25
  export function ListDeposits200ResponseFromJSON(json) {
@@ -29,6 +31,7 @@ export function ListDeposits200ResponseFromJSONTyped(json, ignoreDiscriminator)
29
31
  }
30
32
  return {
31
33
  'deposits': (json['deposits'].map(CryptoDepositFromJSON)),
34
+ 'minDepositCents': json['min_deposit_cents'],
32
35
  };
33
36
  }
34
37
  export function ListDeposits200ResponseToJSON(json) {
@@ -40,5 +43,6 @@ export function ListDeposits200ResponseToJSONTyped(value, ignoreDiscriminator =
40
43
  }
41
44
  return {
42
45
  'deposits': (value['deposits'].map(CryptoDepositToJSON)),
46
+ 'min_deposit_cents': value['minDepositCents'],
43
47
  };
44
48
  }
@@ -22,6 +22,12 @@ export interface ListDeposits200Response {
22
22
  * @memberof ListDeposits200Response
23
23
  */
24
24
  deposits: Array<CryptoDeposit>;
25
+ /**
26
+ * The effective minimum deposit in USD cents (admin override, else the deployment's configured floor). Validate amounts against this live value rather than hardcoding the default.
27
+ * @type {number}
28
+ * @memberof ListDeposits200Response
29
+ */
30
+ minDepositCents: number;
25
31
  }
26
32
  /**
27
33
  * Check if a given object implements the ListDeposits200Response interface.
@@ -25,6 +25,8 @@ const CryptoDeposit_1 = require("./CryptoDeposit");
25
25
  function instanceOfListDeposits200Response(value) {
26
26
  if (!('deposits' in value) || value['deposits'] === undefined)
27
27
  return false;
28
+ if ((!('minDepositCents' in value) && !('min_deposit_cents' in value)) || (value['minDepositCents'] === undefined && value['min_deposit_cents'] === undefined))
29
+ return false;
28
30
  return true;
29
31
  }
30
32
  function ListDeposits200ResponseFromJSON(json) {
@@ -36,6 +38,7 @@ function ListDeposits200ResponseFromJSONTyped(json, ignoreDiscriminator) {
36
38
  }
37
39
  return {
38
40
  'deposits': (json['deposits'].map(CryptoDeposit_1.CryptoDepositFromJSON)),
41
+ 'minDepositCents': json['min_deposit_cents'],
39
42
  };
40
43
  }
41
44
  function ListDeposits200ResponseToJSON(json) {
@@ -47,5 +50,6 @@ function ListDeposits200ResponseToJSONTyped(value, ignoreDiscriminator = false)
47
50
  }
48
51
  return {
49
52
  'deposits': (value['deposits'].map(CryptoDeposit_1.CryptoDepositToJSON)),
53
+ 'min_deposit_cents': value['minDepositCents'],
50
54
  };
51
55
  }
@@ -7,6 +7,7 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `deposits` | [Array&lt;CryptoDeposit&gt;](CryptoDeposit.md)
10
+ `minDepositCents` | number
10
11
 
11
12
  ## Example
12
13
 
@@ -16,6 +17,7 @@ import type { ListDeposits200Response } from '@gpuai/sdk'
16
17
  // TODO: Update the object below with actual values
17
18
  const example = {
18
19
  "deposits": null,
20
+ "minDepositCents": 500,
19
21
  } satisfies ListDeposits200Response
20
22
 
21
23
  console.log(example)
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@gpuai/sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "TypeScript SDK for the GPU.ai Public Developer API",
5
5
  "author": "GPU.ai Support <support@gpu.ai>",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/gpuai-dev/gpu-ai.git"
8
+ "url": "https://github.com/gpuai-dev/gpuai-typescript-sdk.git"
9
9
  },
10
10
  "main": "./dist/index.js",
11
11
  "types": "./dist/index.d.ts",
@@ -33,6 +33,12 @@ export interface ListDeposits200Response {
33
33
  * @memberof ListDeposits200Response
34
34
  */
35
35
  deposits: Array<CryptoDeposit>;
36
+ /**
37
+ * The effective minimum deposit in USD cents (admin override, else the deployment's configured floor). Validate amounts against this live value rather than hardcoding the default.
38
+ * @type {number}
39
+ * @memberof ListDeposits200Response
40
+ */
41
+ minDepositCents: number;
36
42
  }
37
43
 
38
44
  /**
@@ -40,6 +46,7 @@ export interface ListDeposits200Response {
40
46
  */
41
47
  export function instanceOfListDeposits200Response(value: object): value is ListDeposits200Response {
42
48
  if (!('deposits' in value) || value['deposits'] === undefined) return false;
49
+ if ((!('minDepositCents' in (value as Record<string, any>)) && !('min_deposit_cents' in (value as Record<string, any>))) || ((value as Record<string, any>)['minDepositCents'] === undefined && (value as Record<string, any>)['min_deposit_cents'] === undefined)) return false;
43
50
  return true;
44
51
  }
45
52
 
@@ -54,6 +61,7 @@ export function ListDeposits200ResponseFromJSONTyped(json: any, ignoreDiscrimina
54
61
  return {
55
62
 
56
63
  'deposits': ((json['deposits'] as Array<any>).map(CryptoDepositFromJSON)),
64
+ 'minDepositCents': json['min_deposit_cents'],
57
65
  };
58
66
  }
59
67
 
@@ -69,6 +77,7 @@ export function ListDeposits200ResponseToJSONTyped(value?: ListDeposits200Respon
69
77
  return {
70
78
 
71
79
  'deposits': ((value['deposits'] as Array<any>).map(CryptoDepositToJSON)),
80
+ 'min_deposit_cents': value['minDepositCents'],
72
81
  };
73
82
  }
74
83