@gpt-core/admin 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 CHANGED
@@ -919,6 +919,22 @@ type ApiKey = {
919
919
  * Field included by default.
920
920
  */
921
921
  application_id: string;
922
+ /**
923
+ * Credits remaining in current budget period
924
+ */
925
+ budget_remaining?: number | null | unknown;
926
+ /**
927
+ * When the current budget period will reset
928
+ */
929
+ budget_resets_at?: unknown;
930
+ /**
931
+ * Maximum credits allowed per period (null = unlimited). Field included by default.
932
+ */
933
+ credit_limit?: number | null | unknown;
934
+ /**
935
+ * Budget reset period. Field included by default.
936
+ */
937
+ credit_limit_period?: "daily" | "weekly" | "monthly" | "yearly" | "lifetime" | unknown;
922
938
  current_scopes?: Array<string> | null | unknown;
923
939
  /**
924
940
  * Field included by default.
@@ -940,6 +956,14 @@ type ApiKey = {
940
956
  * Field included by default.
941
957
  */
942
958
  name?: string | null | unknown;
959
+ /**
960
+ * Credits used in current period (resets based on period). Field included by default.
961
+ */
962
+ period_credits_used: number;
963
+ /**
964
+ * When the current budget period began. Field included by default.
965
+ */
966
+ period_started_at?: unknown;
943
967
  /**
944
968
  * Field included by default.
945
969
  */
@@ -17321,6 +17345,14 @@ type PostAdminApiKeysData = {
17321
17345
  data: {
17322
17346
  attributes?: {
17323
17347
  application_id?: string | unknown;
17348
+ /**
17349
+ * Maximum credits allowed per period (null = unlimited)
17350
+ */
17351
+ credit_limit?: number | unknown;
17352
+ /**
17353
+ * Budget reset period
17354
+ */
17355
+ credit_limit_period?: "daily" | "weekly" | "monthly" | "yearly" | "lifetime" | unknown;
17324
17356
  expires_at?: unknown;
17325
17357
  key_type?: "user" | "application" | "system" | "server" | unknown;
17326
17358
  name?: string | unknown;
@@ -19749,6 +19781,14 @@ type PatchAdminApiKeysByIdData = {
19749
19781
  body?: {
19750
19782
  data: {
19751
19783
  attributes?: {
19784
+ /**
19785
+ * Maximum credits allowed per period (null = unlimited)
19786
+ */
19787
+ credit_limit?: number | unknown;
19788
+ /**
19789
+ * Budget reset period
19790
+ */
19791
+ credit_limit_period?: "daily" | "weekly" | "monthly" | "yearly" | "lifetime" | unknown;
19752
19792
  name?: string | unknown;
19753
19793
  /**
19754
19794
  * Rate limit period in seconds
package/dist/index.d.ts CHANGED
@@ -919,6 +919,22 @@ type ApiKey = {
919
919
  * Field included by default.
920
920
  */
921
921
  application_id: string;
922
+ /**
923
+ * Credits remaining in current budget period
924
+ */
925
+ budget_remaining?: number | null | unknown;
926
+ /**
927
+ * When the current budget period will reset
928
+ */
929
+ budget_resets_at?: unknown;
930
+ /**
931
+ * Maximum credits allowed per period (null = unlimited). Field included by default.
932
+ */
933
+ credit_limit?: number | null | unknown;
934
+ /**
935
+ * Budget reset period. Field included by default.
936
+ */
937
+ credit_limit_period?: "daily" | "weekly" | "monthly" | "yearly" | "lifetime" | unknown;
922
938
  current_scopes?: Array<string> | null | unknown;
923
939
  /**
924
940
  * Field included by default.
@@ -940,6 +956,14 @@ type ApiKey = {
940
956
  * Field included by default.
941
957
  */
942
958
  name?: string | null | unknown;
959
+ /**
960
+ * Credits used in current period (resets based on period). Field included by default.
961
+ */
962
+ period_credits_used: number;
963
+ /**
964
+ * When the current budget period began. Field included by default.
965
+ */
966
+ period_started_at?: unknown;
943
967
  /**
944
968
  * Field included by default.
945
969
  */
@@ -17321,6 +17345,14 @@ type PostAdminApiKeysData = {
17321
17345
  data: {
17322
17346
  attributes?: {
17323
17347
  application_id?: string | unknown;
17348
+ /**
17349
+ * Maximum credits allowed per period (null = unlimited)
17350
+ */
17351
+ credit_limit?: number | unknown;
17352
+ /**
17353
+ * Budget reset period
17354
+ */
17355
+ credit_limit_period?: "daily" | "weekly" | "monthly" | "yearly" | "lifetime" | unknown;
17324
17356
  expires_at?: unknown;
17325
17357
  key_type?: "user" | "application" | "system" | "server" | unknown;
17326
17358
  name?: string | unknown;
@@ -19749,6 +19781,14 @@ type PatchAdminApiKeysByIdData = {
19749
19781
  body?: {
19750
19782
  data: {
19751
19783
  attributes?: {
19784
+ /**
19785
+ * Maximum credits allowed per period (null = unlimited)
19786
+ */
19787
+ credit_limit?: number | unknown;
19788
+ /**
19789
+ * Budget reset period
19790
+ */
19791
+ credit_limit_period?: "daily" | "weekly" | "monthly" | "yearly" | "lifetime" | unknown;
19752
19792
  name?: string | unknown;
19753
19793
  /**
19754
19794
  * Rate limit period in seconds
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpt-core/admin",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "TypeScript SDK for GPT Core Admin API - Platform administration and ISV management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",