@gpt-core/client 0.7.3 → 0.7.4
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/dist/index.d.mts +41 -1
- package/dist/index.d.ts +41 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1144,6 +1144,22 @@ type ApiKey = {
|
|
|
1144
1144
|
* Field included by default.
|
|
1145
1145
|
*/
|
|
1146
1146
|
application_id: string;
|
|
1147
|
+
/**
|
|
1148
|
+
* Credits remaining in current budget period
|
|
1149
|
+
*/
|
|
1150
|
+
budget_remaining?: number | null | unknown;
|
|
1151
|
+
/**
|
|
1152
|
+
* When the current budget period will reset
|
|
1153
|
+
*/
|
|
1154
|
+
budget_resets_at?: unknown;
|
|
1155
|
+
/**
|
|
1156
|
+
* Maximum credits allowed per period (null = unlimited). Field included by default.
|
|
1157
|
+
*/
|
|
1158
|
+
credit_limit?: number | null | unknown;
|
|
1159
|
+
/**
|
|
1160
|
+
* Budget reset period. Field included by default.
|
|
1161
|
+
*/
|
|
1162
|
+
credit_limit_period?: "daily" | "weekly" | "monthly" | "yearly" | "lifetime" | unknown;
|
|
1147
1163
|
current_scopes?: Array<string> | null | unknown;
|
|
1148
1164
|
/**
|
|
1149
1165
|
* Field included by default.
|
|
@@ -1165,6 +1181,14 @@ type ApiKey = {
|
|
|
1165
1181
|
* Field included by default.
|
|
1166
1182
|
*/
|
|
1167
1183
|
name?: string | null | unknown;
|
|
1184
|
+
/**
|
|
1185
|
+
* Credits used in current period (resets based on period). Field included by default.
|
|
1186
|
+
*/
|
|
1187
|
+
period_credits_used: number;
|
|
1188
|
+
/**
|
|
1189
|
+
* When the current budget period began. Field included by default.
|
|
1190
|
+
*/
|
|
1191
|
+
period_started_at?: unknown;
|
|
1168
1192
|
/**
|
|
1169
1193
|
* Field included by default.
|
|
1170
1194
|
*/
|
|
@@ -14276,6 +14300,14 @@ type PostApiKeysData = {
|
|
|
14276
14300
|
data: {
|
|
14277
14301
|
attributes?: {
|
|
14278
14302
|
application_id?: string | unknown;
|
|
14303
|
+
/**
|
|
14304
|
+
* Maximum credits allowed per period (null = unlimited)
|
|
14305
|
+
*/
|
|
14306
|
+
credit_limit?: number | unknown;
|
|
14307
|
+
/**
|
|
14308
|
+
* Budget reset period
|
|
14309
|
+
*/
|
|
14310
|
+
credit_limit_period?: "daily" | "weekly" | "monthly" | "yearly" | "lifetime" | unknown;
|
|
14279
14311
|
expires_at?: unknown;
|
|
14280
14312
|
key_type?: "user" | "application" | "system" | "server" | unknown;
|
|
14281
14313
|
name?: string | unknown;
|
|
@@ -14812,6 +14844,14 @@ type PatchApiKeysByIdData = {
|
|
|
14812
14844
|
body?: {
|
|
14813
14845
|
data: {
|
|
14814
14846
|
attributes?: {
|
|
14847
|
+
/**
|
|
14848
|
+
* Maximum credits allowed per period (null = unlimited)
|
|
14849
|
+
*/
|
|
14850
|
+
credit_limit?: number | unknown;
|
|
14851
|
+
/**
|
|
14852
|
+
* Budget reset period
|
|
14853
|
+
*/
|
|
14854
|
+
credit_limit_period?: "daily" | "weekly" | "monthly" | "yearly" | "lifetime" | unknown;
|
|
14815
14855
|
name?: string | unknown;
|
|
14816
14856
|
/**
|
|
14817
14857
|
* Rate limit period in seconds
|
|
@@ -25709,7 +25749,7 @@ declare const getTenantsByTenantIdWorkspaceStats: <ThrowOnError extends boolean
|
|
|
25709
25749
|
/**
|
|
25710
25750
|
* Update allocate
|
|
25711
25751
|
*
|
|
25712
|
-
* Allocate credits to the account associated with this API Key
|
|
25752
|
+
* DEPRECATED: Use set_budget instead. Allocate credits to the account associated with this API Key
|
|
25713
25753
|
*/
|
|
25714
25754
|
declare const patchApiKeysByIdAllocate: <ThrowOnError extends boolean = false>(options: Options<PatchApiKeysByIdAllocateData, ThrowOnError>) => RequestResult<PatchApiKeysByIdAllocateResponses, PatchApiKeysByIdAllocateErrors, ThrowOnError, "fields">;
|
|
25715
25755
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1144,6 +1144,22 @@ type ApiKey = {
|
|
|
1144
1144
|
* Field included by default.
|
|
1145
1145
|
*/
|
|
1146
1146
|
application_id: string;
|
|
1147
|
+
/**
|
|
1148
|
+
* Credits remaining in current budget period
|
|
1149
|
+
*/
|
|
1150
|
+
budget_remaining?: number | null | unknown;
|
|
1151
|
+
/**
|
|
1152
|
+
* When the current budget period will reset
|
|
1153
|
+
*/
|
|
1154
|
+
budget_resets_at?: unknown;
|
|
1155
|
+
/**
|
|
1156
|
+
* Maximum credits allowed per period (null = unlimited). Field included by default.
|
|
1157
|
+
*/
|
|
1158
|
+
credit_limit?: number | null | unknown;
|
|
1159
|
+
/**
|
|
1160
|
+
* Budget reset period. Field included by default.
|
|
1161
|
+
*/
|
|
1162
|
+
credit_limit_period?: "daily" | "weekly" | "monthly" | "yearly" | "lifetime" | unknown;
|
|
1147
1163
|
current_scopes?: Array<string> | null | unknown;
|
|
1148
1164
|
/**
|
|
1149
1165
|
* Field included by default.
|
|
@@ -1165,6 +1181,14 @@ type ApiKey = {
|
|
|
1165
1181
|
* Field included by default.
|
|
1166
1182
|
*/
|
|
1167
1183
|
name?: string | null | unknown;
|
|
1184
|
+
/**
|
|
1185
|
+
* Credits used in current period (resets based on period). Field included by default.
|
|
1186
|
+
*/
|
|
1187
|
+
period_credits_used: number;
|
|
1188
|
+
/**
|
|
1189
|
+
* When the current budget period began. Field included by default.
|
|
1190
|
+
*/
|
|
1191
|
+
period_started_at?: unknown;
|
|
1168
1192
|
/**
|
|
1169
1193
|
* Field included by default.
|
|
1170
1194
|
*/
|
|
@@ -14276,6 +14300,14 @@ type PostApiKeysData = {
|
|
|
14276
14300
|
data: {
|
|
14277
14301
|
attributes?: {
|
|
14278
14302
|
application_id?: string | unknown;
|
|
14303
|
+
/**
|
|
14304
|
+
* Maximum credits allowed per period (null = unlimited)
|
|
14305
|
+
*/
|
|
14306
|
+
credit_limit?: number | unknown;
|
|
14307
|
+
/**
|
|
14308
|
+
* Budget reset period
|
|
14309
|
+
*/
|
|
14310
|
+
credit_limit_period?: "daily" | "weekly" | "monthly" | "yearly" | "lifetime" | unknown;
|
|
14279
14311
|
expires_at?: unknown;
|
|
14280
14312
|
key_type?: "user" | "application" | "system" | "server" | unknown;
|
|
14281
14313
|
name?: string | unknown;
|
|
@@ -14812,6 +14844,14 @@ type PatchApiKeysByIdData = {
|
|
|
14812
14844
|
body?: {
|
|
14813
14845
|
data: {
|
|
14814
14846
|
attributes?: {
|
|
14847
|
+
/**
|
|
14848
|
+
* Maximum credits allowed per period (null = unlimited)
|
|
14849
|
+
*/
|
|
14850
|
+
credit_limit?: number | unknown;
|
|
14851
|
+
/**
|
|
14852
|
+
* Budget reset period
|
|
14853
|
+
*/
|
|
14854
|
+
credit_limit_period?: "daily" | "weekly" | "monthly" | "yearly" | "lifetime" | unknown;
|
|
14815
14855
|
name?: string | unknown;
|
|
14816
14856
|
/**
|
|
14817
14857
|
* Rate limit period in seconds
|
|
@@ -25709,7 +25749,7 @@ declare const getTenantsByTenantIdWorkspaceStats: <ThrowOnError extends boolean
|
|
|
25709
25749
|
/**
|
|
25710
25750
|
* Update allocate
|
|
25711
25751
|
*
|
|
25712
|
-
* Allocate credits to the account associated with this API Key
|
|
25752
|
+
* DEPRECATED: Use set_budget instead. Allocate credits to the account associated with this API Key
|
|
25713
25753
|
*/
|
|
25714
25754
|
declare const patchApiKeysByIdAllocate: <ThrowOnError extends boolean = false>(options: Options<PatchApiKeysByIdAllocateData, ThrowOnError>) => RequestResult<PatchApiKeysByIdAllocateResponses, PatchApiKeysByIdAllocateErrors, ThrowOnError, "fields">;
|
|
25715
25755
|
/**
|
package/package.json
CHANGED