@codeguide/core 0.0.15 → 0.0.16
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/types.d.ts
CHANGED
|
@@ -71,13 +71,11 @@ export interface CreateApiKeyResponse {
|
|
|
71
71
|
message?: string;
|
|
72
72
|
}
|
|
73
73
|
export interface ApiKeyPermissionResponse {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
max_keys_allowed?: number;
|
|
80
|
-
};
|
|
74
|
+
success: boolean;
|
|
75
|
+
can_create: boolean;
|
|
76
|
+
reason?: string;
|
|
77
|
+
current_keys_count?: number;
|
|
78
|
+
max_keys_allowed?: number;
|
|
81
79
|
}
|
|
82
80
|
export interface ApiKeyResponse {
|
|
83
81
|
status: string;
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -87,13 +87,11 @@ export interface CreateApiKeyResponse {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
export interface ApiKeyPermissionResponse {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
max_keys_allowed?: number
|
|
96
|
-
}
|
|
90
|
+
success: boolean
|
|
91
|
+
can_create: boolean
|
|
92
|
+
reason?: string
|
|
93
|
+
current_keys_count?: number
|
|
94
|
+
max_keys_allowed?: number
|
|
97
95
|
}
|
|
98
96
|
|
|
99
97
|
export interface ApiKeyResponse {
|
|
@@ -111,7 +109,14 @@ export interface RevokeApiKeyResponse {
|
|
|
111
109
|
export interface Subscription {
|
|
112
110
|
id: string
|
|
113
111
|
user_id: string
|
|
114
|
-
status:
|
|
112
|
+
status:
|
|
113
|
+
| 'active'
|
|
114
|
+
| 'canceled'
|
|
115
|
+
| 'past_due'
|
|
116
|
+
| 'unpaid'
|
|
117
|
+
| 'trialing'
|
|
118
|
+
| 'incomplete'
|
|
119
|
+
| 'incomplete_expired'
|
|
115
120
|
metadata: Record<string, any>
|
|
116
121
|
price_id: string
|
|
117
122
|
quantity: number
|