@deeprelay/sdk 0.3.0 → 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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @deeprelay/sdk@0.3.0
1
+ # @deeprelay/sdk@0.4.1
2
2
 
3
3
  A TypeScript SDK client for the api.deeprelay.ai API.
4
4
 
@@ -192,7 +192,7 @@ and is automatically generated by the
192
192
  [OpenAPI Generator](https://openapi-generator.tech) project:
193
193
 
194
194
  - API version: `1.0.0`
195
- - Package version: `0.3.0`
195
+ - Package version: `0.4.1`
196
196
  - Generator version: `7.24.0`
197
197
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
198
198
 
@@ -118,11 +118,11 @@ export interface RequestLogEntry {
118
118
  */
119
119
  quotaUnits?: number;
120
120
  /**
121
- * The exact USD amount billed to the wallet, as a decimal string in the same format as `usage.cost`. `"0"` for a plan-covered, rejected or failed call.
122
- * @type {string}
121
+ * The exact USD amount billed to the wallet, in the same format as `usage.cost`: an exact decimal with up to 8 places, emitted as a JSON number. `0` for a plan-covered, rejected or failed call.
122
+ * @type {number}
123
123
  * @memberof RequestLogEntry
124
124
  */
125
- cost: string;
125
+ cost: number;
126
126
  /**
127
127
  * The same amount as an integer number of micro-cents.
128
128
  * @type {number}
@@ -61,7 +61,7 @@ export class Configuration {
61
61
  return undefined;
62
62
  }
63
63
  get headers() {
64
- return Object.assign({ 'User-Agent': 'deeprelay-sdk-ts/0.3.0' }, this.configuration.headers);
64
+ return Object.assign({ 'User-Agent': 'deeprelay-sdk-ts/0.4.1' }, this.configuration.headers);
65
65
  }
66
66
  get credentials() {
67
67
  return this.configuration.credentials;
@@ -118,11 +118,11 @@ export interface RequestLogEntry {
118
118
  */
119
119
  quotaUnits?: number;
120
120
  /**
121
- * The exact USD amount billed to the wallet, as a decimal string in the same format as `usage.cost`. `"0"` for a plan-covered, rejected or failed call.
122
- * @type {string}
121
+ * The exact USD amount billed to the wallet, in the same format as `usage.cost`: an exact decimal with up to 8 places, emitted as a JSON number. `0` for a plan-covered, rejected or failed call.
122
+ * @type {number}
123
123
  * @memberof RequestLogEntry
124
124
  */
125
- cost: string;
125
+ cost: number;
126
126
  /**
127
127
  * The same amount as an integer number of micro-cents.
128
128
  * @type {number}
package/dist/runtime.js CHANGED
@@ -69,7 +69,7 @@ class Configuration {
69
69
  return undefined;
70
70
  }
71
71
  get headers() {
72
- return Object.assign({ 'User-Agent': 'deeprelay-sdk-ts/0.3.0' }, this.configuration.headers);
72
+ return Object.assign({ 'User-Agent': 'deeprelay-sdk-ts/0.4.1' }, this.configuration.headers);
73
73
  }
74
74
  get credentials() {
75
75
  return this.configuration.credentials;
@@ -24,7 +24,7 @@ Name | Type
24
24
  `cachedTokens` | number
25
25
  `reasoningTokens` | number
26
26
  `quotaUnits` | number
27
- `cost` | string
27
+ `cost` | number
28
28
  `costMicroCents` | number
29
29
  `planCovered` | boolean
30
30
  `ttftMs` | number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deeprelay/sdk",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "TypeScript SDK for the deeprelay Public Developer API",
5
5
  "author": "deeprelay Support <support@deeprelay.ai>",
6
6
  "repository": {
@@ -122,11 +122,11 @@ export interface RequestLogEntry {
122
122
  */
123
123
  quotaUnits?: number;
124
124
  /**
125
- * The exact USD amount billed to the wallet, as a decimal string in the same format as `usage.cost`. `"0"` for a plan-covered, rejected or failed call.
126
- * @type {string}
125
+ * The exact USD amount billed to the wallet, in the same format as `usage.cost`: an exact decimal with up to 8 places, emitted as a JSON number. `0` for a plan-covered, rejected or failed call.
126
+ * @type {number}
127
127
  * @memberof RequestLogEntry
128
128
  */
129
- cost: string;
129
+ cost: number;
130
130
  /**
131
131
  * The same amount as an integer number of micro-cents.
132
132
  * @type {number}
package/src/runtime.ts CHANGED
@@ -75,7 +75,7 @@ export class Configuration {
75
75
  }
76
76
 
77
77
  get headers(): HTTPHeaders | undefined {
78
- return { 'User-Agent': 'deeprelay-sdk-ts/0.3.0', ...this.configuration.headers };
78
+ return { 'User-Agent': 'deeprelay-sdk-ts/0.4.1', ...this.configuration.headers };
79
79
  }
80
80
 
81
81
  get credentials(): RequestCredentials | undefined {