@blimu/backend 1.1.1 → 1.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 +6 -13
- package/dist/__tests__/token-verifier.test.cjs +17662 -0
- package/dist/__tests__/token-verifier.test.cjs.map +1 -0
- package/dist/__tests__/token-verifier.test.d.mts +2 -0
- package/dist/__tests__/token-verifier.test.d.ts +2 -0
- package/dist/__tests__/token-verifier.test.mjs +17661 -0
- package/dist/__tests__/token-verifier.test.mjs.map +1 -0
- package/dist/auth-strategies.cjs +42 -0
- package/dist/auth-strategies.cjs.map +1 -0
- package/dist/auth-strategies.d.mts +16 -0
- package/dist/auth-strategies.d.ts +16 -0
- package/dist/auth-strategies.mjs +17 -0
- package/dist/auth-strategies.mjs.map +1 -0
- package/dist/client.cjs +483 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.d.mts +26 -18
- package/dist/client.d.ts +26 -18
- package/dist/client.mjs +447 -39
- package/dist/client.mjs.map +1 -1
- package/dist/{main.js → index.cjs} +290 -407
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +15 -33
- package/dist/index.d.ts +15 -33
- package/dist/index.mjs +440 -339
- package/dist/index.mjs.map +1 -1
- package/dist/{schema-B1usIXCr.d.mts → schema-BbKn_i-U.d.mts} +82 -93
- package/dist/{schema-B1usIXCr.d.ts → schema-BbKn_i-U.d.ts} +82 -93
- package/dist/{schema.js → schema.cjs} +1 -1
- package/dist/schema.cjs.map +1 -0
- package/dist/schema.d.mts +1 -2
- package/dist/schema.d.ts +1 -2
- package/dist/{schema.zod-CRNAHxbc.d.mts → schema.zod-DtXVS-1g.d.mts} +38 -48
- package/dist/{schema.zod-CRNAHxbc.d.ts → schema.zod-DtXVS-1g.d.ts} +38 -48
- package/dist/{schema.zod.js → schema.zod.cjs} +174 -248
- package/dist/schema.zod.cjs.map +1 -0
- package/dist/schema.zod.d.mts +1 -1
- package/dist/schema.zod.d.ts +1 -1
- package/dist/schema.zod.mjs +173 -242
- package/dist/schema.zod.mjs.map +1 -1
- package/dist/services/{bulk_resources.js → bulk_resources.cjs} +3 -2
- package/dist/services/bulk_resources.cjs.map +1 -0
- package/dist/services/bulk_resources.d.mts +4 -6
- package/dist/services/bulk_resources.d.ts +4 -6
- package/dist/services/bulk_resources.mjs +2 -1
- package/dist/services/bulk_resources.mjs.map +1 -1
- package/dist/services/{bulk_roles.js → bulk_roles.cjs} +3 -2
- package/dist/services/bulk_roles.cjs.map +1 -0
- package/dist/services/bulk_roles.d.mts +3 -5
- package/dist/services/bulk_roles.d.ts +3 -5
- package/dist/services/bulk_roles.mjs +2 -1
- package/dist/services/bulk_roles.mjs.map +1 -1
- package/dist/services/{entitlements.js → entitlements.cjs} +5 -4
- package/dist/services/entitlements.cjs.map +1 -0
- package/dist/services/entitlements.d.mts +4 -6
- package/dist/services/entitlements.d.ts +4 -6
- package/dist/services/entitlements.mjs +4 -3
- package/dist/services/entitlements.mjs.map +1 -1
- package/dist/services/{plans.js → plans.cjs} +5 -4
- package/dist/services/plans.cjs.map +1 -0
- package/dist/services/plans.d.mts +6 -8
- package/dist/services/plans.d.ts +6 -8
- package/dist/services/plans.mjs +4 -3
- package/dist/services/plans.mjs.map +1 -1
- package/dist/services/{resource_members.js → resource_members.cjs} +3 -2
- package/dist/services/resource_members.cjs.map +1 -0
- package/dist/services/resource_members.d.mts +4 -6
- package/dist/services/resource_members.d.ts +4 -6
- package/dist/services/resource_members.mjs +2 -1
- package/dist/services/resource_members.mjs.map +1 -1
- package/dist/services/{resources.js → resources.cjs} +7 -6
- package/dist/services/resources.cjs.map +1 -0
- package/dist/services/resources.d.mts +8 -10
- package/dist/services/resources.d.ts +8 -10
- package/dist/services/resources.mjs +6 -5
- package/dist/services/resources.mjs.map +1 -1
- package/dist/services/{roles.js → roles.cjs} +5 -4
- package/dist/services/roles.cjs.map +1 -0
- package/dist/services/roles.d.mts +4 -6
- package/dist/services/roles.d.ts +4 -6
- package/dist/services/roles.mjs +4 -3
- package/dist/services/roles.mjs.map +1 -1
- package/dist/services/{usage.js → usage.cjs} +7 -6
- package/dist/services/usage.cjs.map +1 -0
- package/dist/services/usage.d.mts +5 -7
- package/dist/services/usage.d.ts +5 -7
- package/dist/services/usage.mjs +6 -5
- package/dist/services/usage.mjs.map +1 -1
- package/dist/services/{users.js → users.cjs} +8 -7
- package/dist/services/users.cjs.map +1 -0
- package/dist/services/users.d.mts +3 -5
- package/dist/services/users.d.ts +3 -5
- package/dist/services/users.mjs +7 -6
- package/dist/services/users.mjs.map +1 -1
- package/dist/{token-verifier.js → token-verifier.cjs} +10 -30
- package/dist/token-verifier.cjs.map +1 -0
- package/dist/token-verifier.d.mts +5 -5
- package/dist/token-verifier.d.ts +5 -5
- package/dist/token-verifier.mjs +10 -33
- package/dist/token-verifier.mjs.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{utils.js → utils.cjs} +9 -3
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.mts +4 -3
- package/dist/utils.d.ts +4 -3
- package/dist/utils.mjs +7 -2
- package/dist/utils.mjs.map +1 -1
- package/package.json +36 -24
- package/dist/client.js +0 -71
- package/dist/client.js.map +0 -1
- package/dist/index.js +0 -1052
- package/dist/index.js.map +0 -1
- package/dist/main.d.mts +0 -19
- package/dist/main.d.ts +0 -19
- package/dist/main.js.map +0 -1
- package/dist/main.mjs +0 -1275
- package/dist/main.mjs.map +0 -1
- package/dist/schema.js.map +0 -1
- package/dist/schema.zod.js.map +0 -1
- package/dist/services/bulk_resources.js.map +0 -1
- package/dist/services/bulk_roles.js.map +0 -1
- package/dist/services/entitlements.js.map +0 -1
- package/dist/services/plans.js.map +0 -1
- package/dist/services/resource_members.js.map +0 -1
- package/dist/services/resources.js.map +0 -1
- package/dist/services/roles.js.map +0 -1
- package/dist/services/usage.js.map +0 -1
- package/dist/services/users.js.map +0 -1
- package/dist/token-verifier.js.map +0 -1
- package/dist/utils.js.map +0 -1
- package/src/client.ts +0 -74
- package/src/index.ts +0 -55
- package/src/main.ts +0 -3
- package/src/schema.ts +0 -430
- package/src/schema.zod.ts +0 -558
- package/src/services/bulk_resources.ts +0 -24
- package/src/services/bulk_roles.ts +0 -22
- package/src/services/entitlements.ts +0 -58
- package/src/services/plans.ts +0 -57
- package/src/services/resource_members.ts +0 -25
- package/src/services/resources.ts +0 -91
- package/src/services/roles.ts +0 -58
- package/src/services/usage.ts +0 -93
- package/src/services/users.ts +0 -100
- package/src/token-verifier.ts +0 -280
- package/src/utils.ts +0 -56
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ResourceType, EntitlementType, PlanType, UsageLimitType, LimitType } from '@blimu/types';
|
|
2
|
-
|
|
3
1
|
type Enum<T> = T[keyof T];
|
|
4
2
|
interface BalanceResponse {
|
|
5
3
|
balance: number;
|
|
@@ -12,7 +10,7 @@ interface CheckLimitResponse {
|
|
|
12
10
|
}
|
|
13
11
|
interface EntitlementCheckBody {
|
|
14
12
|
amount?: number;
|
|
15
|
-
entitlement:
|
|
13
|
+
entitlement: string;
|
|
16
14
|
resourceId: string;
|
|
17
15
|
userId: string;
|
|
18
16
|
}
|
|
@@ -29,35 +27,35 @@ interface EntitlementCheckResult {
|
|
|
29
27
|
} | null;
|
|
30
28
|
plans?: {
|
|
31
29
|
allowed: boolean;
|
|
32
|
-
allowedPlans?:
|
|
30
|
+
allowedPlans?: string[];
|
|
33
31
|
plan?: string | null;
|
|
34
32
|
reason?: string;
|
|
35
33
|
} | null;
|
|
36
34
|
roles?: {
|
|
37
35
|
allowed: boolean;
|
|
38
|
-
allowedRoles?:
|
|
36
|
+
allowedRoles?: string[];
|
|
39
37
|
reason?: string;
|
|
40
|
-
userRoles?:
|
|
38
|
+
userRoles?: string[];
|
|
41
39
|
} | null;
|
|
42
40
|
}
|
|
43
41
|
interface EntitlementsListResult {
|
|
44
|
-
results:
|
|
45
|
-
entitlements:
|
|
42
|
+
results: {
|
|
43
|
+
entitlements: {
|
|
46
44
|
allowed: boolean;
|
|
47
45
|
allowedByPlan: boolean;
|
|
48
46
|
allowedByRole: boolean;
|
|
49
|
-
allowedPlans?:
|
|
50
|
-
allowedRoles:
|
|
47
|
+
allowedPlans?: string[];
|
|
48
|
+
allowedRoles: string[];
|
|
51
49
|
currentPlan?: string;
|
|
52
50
|
currentRole?: string;
|
|
53
|
-
entitlement:
|
|
54
|
-
}
|
|
51
|
+
entitlement: string;
|
|
52
|
+
}[];
|
|
55
53
|
resourceId: string;
|
|
56
|
-
resourceType:
|
|
57
|
-
}
|
|
54
|
+
resourceType: string;
|
|
55
|
+
}[];
|
|
58
56
|
}
|
|
59
57
|
interface PlanAssignBody {
|
|
60
|
-
planKey:
|
|
58
|
+
planKey: string;
|
|
61
59
|
}
|
|
62
60
|
interface PlanDeleteResponse {
|
|
63
61
|
success: boolean;
|
|
@@ -65,57 +63,57 @@ interface PlanDeleteResponse {
|
|
|
65
63
|
interface PlanResponse {
|
|
66
64
|
createdAt: string;
|
|
67
65
|
environmentId: string;
|
|
68
|
-
planKey:
|
|
66
|
+
planKey: string;
|
|
69
67
|
resourceId: string;
|
|
70
|
-
resourceType:
|
|
68
|
+
resourceType: string;
|
|
71
69
|
updatedAt: string;
|
|
72
70
|
}
|
|
73
71
|
interface Resource {
|
|
74
72
|
createdAt: string;
|
|
75
73
|
id: string;
|
|
76
74
|
name: string | null;
|
|
77
|
-
parents?:
|
|
75
|
+
parents?: {
|
|
78
76
|
id: string;
|
|
79
|
-
type:
|
|
80
|
-
}
|
|
81
|
-
type:
|
|
77
|
+
type: string;
|
|
78
|
+
}[];
|
|
79
|
+
type: string;
|
|
82
80
|
}
|
|
83
81
|
interface ResourceBulkCreateBody {
|
|
84
|
-
resources:
|
|
82
|
+
resources: {
|
|
85
83
|
id?: string;
|
|
86
84
|
name?: string;
|
|
87
|
-
parents?:
|
|
85
|
+
parents?: {
|
|
88
86
|
id: string;
|
|
89
|
-
type:
|
|
90
|
-
}
|
|
91
|
-
roles?:
|
|
87
|
+
type: string;
|
|
88
|
+
}[];
|
|
89
|
+
roles?: {
|
|
92
90
|
role: string;
|
|
93
91
|
userId: string;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
92
|
+
}[];
|
|
93
|
+
}[];
|
|
96
94
|
}
|
|
97
95
|
interface ResourceBulkResult {
|
|
98
|
-
created:
|
|
96
|
+
created: {
|
|
99
97
|
environmentId: string;
|
|
100
98
|
id: string;
|
|
101
|
-
type:
|
|
102
|
-
}
|
|
103
|
-
errors:
|
|
99
|
+
type: string;
|
|
100
|
+
}[];
|
|
101
|
+
errors: {
|
|
104
102
|
error: string;
|
|
105
103
|
index: number;
|
|
106
104
|
resource: {
|
|
107
105
|
id?: string;
|
|
108
106
|
name?: string;
|
|
109
|
-
parents?:
|
|
107
|
+
parents?: {
|
|
110
108
|
id: string;
|
|
111
|
-
type:
|
|
112
|
-
}
|
|
113
|
-
roles?:
|
|
109
|
+
type: string;
|
|
110
|
+
}[];
|
|
111
|
+
roles?: {
|
|
114
112
|
role: string;
|
|
115
113
|
userId: string;
|
|
116
|
-
}
|
|
114
|
+
}[];
|
|
117
115
|
};
|
|
118
|
-
}
|
|
116
|
+
}[];
|
|
119
117
|
success: boolean;
|
|
120
118
|
summary: {
|
|
121
119
|
failed: number;
|
|
@@ -126,32 +124,23 @@ interface ResourceBulkResult {
|
|
|
126
124
|
interface ResourceCreateBody {
|
|
127
125
|
id?: string;
|
|
128
126
|
name?: string;
|
|
129
|
-
parents?:
|
|
127
|
+
parents?: {
|
|
130
128
|
id: string;
|
|
131
|
-
type:
|
|
132
|
-
}
|
|
133
|
-
roles?:
|
|
129
|
+
type: string;
|
|
130
|
+
}[];
|
|
131
|
+
roles?: {
|
|
134
132
|
role: string;
|
|
135
133
|
userId: string;
|
|
136
|
-
}
|
|
134
|
+
}[];
|
|
137
135
|
}
|
|
138
136
|
interface ResourceList {
|
|
139
|
-
items:
|
|
140
|
-
createdAt: string;
|
|
141
|
-
id: string;
|
|
142
|
-
name: string | null;
|
|
143
|
-
parents?: Array<{
|
|
144
|
-
id: string;
|
|
145
|
-
type: ResourceType;
|
|
146
|
-
}>;
|
|
147
|
-
type: ResourceType;
|
|
148
|
-
}>;
|
|
137
|
+
items: Resource[];
|
|
149
138
|
limit: number;
|
|
150
139
|
page: number;
|
|
151
140
|
total: number;
|
|
152
141
|
}
|
|
153
142
|
interface ResourceMemberList {
|
|
154
|
-
items:
|
|
143
|
+
items: {
|
|
155
144
|
inherited: boolean;
|
|
156
145
|
role: string;
|
|
157
146
|
user: {
|
|
@@ -167,53 +156,53 @@ interface ResourceMemberList {
|
|
|
167
156
|
updatedAt: string;
|
|
168
157
|
};
|
|
169
158
|
userId: string;
|
|
170
|
-
}
|
|
159
|
+
}[];
|
|
171
160
|
limit: number;
|
|
172
161
|
page: number;
|
|
173
162
|
total: number;
|
|
174
163
|
}
|
|
175
164
|
interface ResourceUpdateBody {
|
|
176
165
|
name?: string;
|
|
177
|
-
parents?:
|
|
166
|
+
parents?: {
|
|
178
167
|
id: string;
|
|
179
|
-
type:
|
|
180
|
-
}
|
|
168
|
+
type: string;
|
|
169
|
+
}[];
|
|
181
170
|
}
|
|
182
171
|
interface Role {
|
|
183
172
|
createdAt: string;
|
|
184
173
|
environmentId: string;
|
|
185
174
|
resourceId: string;
|
|
186
|
-
resourceType:
|
|
175
|
+
resourceType: string;
|
|
187
176
|
role: string;
|
|
188
177
|
userId: string;
|
|
189
178
|
}
|
|
190
179
|
interface RoleBulkCreateBody {
|
|
191
|
-
roles:
|
|
180
|
+
roles: {
|
|
192
181
|
resourceId: string;
|
|
193
|
-
resourceType:
|
|
182
|
+
resourceType: string;
|
|
194
183
|
role: string;
|
|
195
184
|
userId: string;
|
|
196
|
-
}
|
|
185
|
+
}[];
|
|
197
186
|
}
|
|
198
187
|
interface RoleBulkResult {
|
|
199
|
-
created:
|
|
188
|
+
created: {
|
|
200
189
|
createdAt: string;
|
|
201
190
|
environmentId: string;
|
|
202
191
|
resourceId: string;
|
|
203
|
-
resourceType:
|
|
192
|
+
resourceType: string;
|
|
204
193
|
role: string;
|
|
205
194
|
userId: string;
|
|
206
|
-
}
|
|
207
|
-
errors:
|
|
195
|
+
}[];
|
|
196
|
+
errors: {
|
|
208
197
|
error: string;
|
|
209
198
|
index: number;
|
|
210
199
|
role: {
|
|
211
200
|
resourceId: string;
|
|
212
|
-
resourceType:
|
|
201
|
+
resourceType: string;
|
|
213
202
|
role: string;
|
|
214
203
|
userId: string;
|
|
215
204
|
};
|
|
216
|
-
}
|
|
205
|
+
}[];
|
|
217
206
|
success: boolean;
|
|
218
207
|
summary: {
|
|
219
208
|
failed: number;
|
|
@@ -223,53 +212,53 @@ interface RoleBulkResult {
|
|
|
223
212
|
}
|
|
224
213
|
interface RoleCreateBody {
|
|
225
214
|
resourceId: string;
|
|
226
|
-
resourceType:
|
|
215
|
+
resourceType: string;
|
|
227
216
|
role: string;
|
|
228
217
|
}
|
|
229
218
|
interface RoleList {
|
|
230
219
|
limit: number;
|
|
231
220
|
page: number;
|
|
232
|
-
roles:
|
|
221
|
+
roles: {
|
|
233
222
|
createdAt: string;
|
|
234
223
|
environmentId: string;
|
|
235
224
|
resourceId: string;
|
|
236
|
-
resourceType:
|
|
225
|
+
resourceType: string;
|
|
237
226
|
role: string;
|
|
238
227
|
userId: string;
|
|
239
|
-
}
|
|
228
|
+
}[];
|
|
240
229
|
total: number;
|
|
241
230
|
}
|
|
242
231
|
interface TransactionHistoryResponse {
|
|
243
|
-
items:
|
|
232
|
+
items: {
|
|
244
233
|
amount: number;
|
|
245
234
|
createdAt: string;
|
|
246
235
|
environmentId: string;
|
|
247
236
|
id: string;
|
|
248
|
-
limitType:
|
|
237
|
+
limitType: string;
|
|
249
238
|
resourceId: string;
|
|
250
|
-
resourceType:
|
|
239
|
+
resourceType: string;
|
|
251
240
|
tags: Record<string, unknown> | null;
|
|
252
|
-
}
|
|
241
|
+
}[];
|
|
253
242
|
}
|
|
254
243
|
interface UsageCheckBody {
|
|
255
244
|
amount: number;
|
|
256
|
-
limitType:
|
|
245
|
+
limitType: string;
|
|
257
246
|
period: 'monthly' | 'yearly' | 'lifetime';
|
|
258
247
|
resourceId: string;
|
|
259
|
-
resourceType:
|
|
248
|
+
resourceType: string;
|
|
260
249
|
}
|
|
261
250
|
interface UsageConsumeBody {
|
|
262
251
|
amount: number;
|
|
263
|
-
limitType:
|
|
252
|
+
limitType: string;
|
|
264
253
|
resourceId: string;
|
|
265
|
-
resourceType:
|
|
254
|
+
resourceType: string;
|
|
266
255
|
tags?: Record<string, unknown>;
|
|
267
256
|
}
|
|
268
257
|
interface UsageCreditBody {
|
|
269
258
|
amount: number;
|
|
270
|
-
limitType:
|
|
259
|
+
limitType: string;
|
|
271
260
|
resourceId: string;
|
|
272
|
-
resourceType:
|
|
261
|
+
resourceType: string;
|
|
273
262
|
tags?: Record<string, unknown>;
|
|
274
263
|
}
|
|
275
264
|
interface UsageWalletResponse {
|
|
@@ -277,9 +266,9 @@ interface UsageWalletResponse {
|
|
|
277
266
|
createdAt: string;
|
|
278
267
|
environmentId: string;
|
|
279
268
|
id: string;
|
|
280
|
-
limitType:
|
|
269
|
+
limitType: string;
|
|
281
270
|
resourceId: string;
|
|
282
|
-
resourceType:
|
|
271
|
+
resourceType: string;
|
|
283
272
|
tags: Record<string, unknown> | null;
|
|
284
273
|
}
|
|
285
274
|
interface User {
|
|
@@ -304,7 +293,7 @@ interface UserCreateBody {
|
|
|
304
293
|
password?: string | null;
|
|
305
294
|
}
|
|
306
295
|
interface UserList {
|
|
307
|
-
items:
|
|
296
|
+
items: {
|
|
308
297
|
avatarUrl: string | null;
|
|
309
298
|
createdAt: string;
|
|
310
299
|
email: string;
|
|
@@ -315,24 +304,24 @@ interface UserList {
|
|
|
315
304
|
lastName: string | null;
|
|
316
305
|
lookupKey: string | null;
|
|
317
306
|
updatedAt: string;
|
|
318
|
-
}
|
|
307
|
+
}[];
|
|
319
308
|
limit: number;
|
|
320
309
|
page: number;
|
|
321
310
|
total: number;
|
|
322
311
|
}
|
|
323
|
-
type UserResourceList =
|
|
312
|
+
type UserResourceList = {
|
|
324
313
|
inherited: boolean;
|
|
325
314
|
resource: {
|
|
326
315
|
id: string;
|
|
327
316
|
name: string;
|
|
328
|
-
parents:
|
|
317
|
+
parents: {
|
|
329
318
|
id: string;
|
|
330
|
-
type:
|
|
331
|
-
}
|
|
332
|
-
type:
|
|
319
|
+
type: string;
|
|
320
|
+
}[];
|
|
321
|
+
type: string;
|
|
333
322
|
};
|
|
334
323
|
role: string;
|
|
335
|
-
}
|
|
324
|
+
}[];
|
|
336
325
|
interface UserUpdateBody {
|
|
337
326
|
avatarUrl?: string | null;
|
|
338
327
|
email?: string;
|
|
@@ -361,7 +350,7 @@ interface RolesListQuery {
|
|
|
361
350
|
limit?: number;
|
|
362
351
|
page?: number;
|
|
363
352
|
resourceId?: string;
|
|
364
|
-
resourceType?:
|
|
353
|
+
resourceType?: string;
|
|
365
354
|
role?: string;
|
|
366
355
|
}
|
|
367
356
|
interface UsageGetBalanceQuery {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/schema.ts"],"sourcesContent":["// Generated types from OpenAPI components.schemas\n\nexport type Enum<T> = T[keyof T];\n\nexport interface BalanceResponse {\n balance: number;\n}\n\nexport interface CheckLimitResponse {\n allowed: boolean;\n current: number;\n remaining?: number;\n requested: number;\n}\n\nexport interface EntitlementCheckBody {\n amount?: number;\n entitlement: string;\n resourceId: string;\n userId: string;\n}\n\nexport interface EntitlementCheckResult {\n allowed: boolean;\n limit?: {\n allowed: boolean;\n current?: number;\n limit?: number;\n plan?: string | null;\n reason?: string;\n remaining?: number;\n scope?: string;\n } | null;\n plans?: {\n allowed: boolean;\n allowedPlans?: string[];\n plan?: string | null;\n reason?: string;\n } | null;\n roles?: {\n allowed: boolean;\n allowedRoles?: string[];\n reason?: string;\n userRoles?: string[];\n } | null;\n}\n\nexport interface EntitlementsListResult {\n results: {\n entitlements: {\n allowed: boolean;\n allowedByPlan: boolean;\n allowedByRole: boolean;\n allowedPlans?: string[];\n allowedRoles: string[];\n currentPlan?: string;\n currentRole?: string;\n entitlement: string;\n }[];\n resourceId: string;\n resourceType: string;\n }[];\n}\n\nexport interface PlanAssignBody {\n planKey: string;\n}\n\nexport interface PlanDeleteResponse {\n success: boolean;\n}\n\nexport interface PlanResponse {\n createdAt: string;\n environmentId: string;\n planKey: string;\n resourceId: string;\n resourceType: string;\n updatedAt: string;\n}\n\nexport interface Resource {\n createdAt: string;\n id: string;\n name: string | null;\n parents?: { id: string; type: string }[];\n type: string;\n}\n\nexport interface ResourceBulkCreateBody {\n resources: {\n id?: string;\n name?: string;\n parents?: { id: string; type: string }[];\n roles?: { role: string; userId: string }[];\n }[];\n}\n\nexport interface ResourceBulkResult {\n created: { environmentId: string; id: string; type: string }[];\n errors: {\n error: string;\n index: number;\n resource: {\n id?: string;\n name?: string;\n parents?: { id: string; type: string }[];\n roles?: { role: string; userId: string }[];\n };\n }[];\n success: boolean;\n summary: { failed: number; successful: number; total: number };\n}\n\nexport interface ResourceCreateBody {\n id?: string;\n name?: string;\n parents?: { id: string; type: string }[];\n roles?: { role: string; userId: string }[];\n}\n\nexport interface ResourceList {\n items: Resource[];\n limit: number;\n page: number;\n total: number;\n}\n\nexport interface ResourceMemberList {\n items: {\n inherited: boolean;\n role: string;\n user: {\n avatarUrl: string | null;\n createdAt: string;\n email: string;\n emailVerified: boolean;\n firstName: string | null;\n id: string;\n lastLoginAt: string | null;\n lastName: string | null;\n lookupKey: string | null;\n updatedAt: string;\n };\n userId: string;\n }[];\n limit: number;\n page: number;\n total: number;\n}\n\nexport interface ResourceUpdateBody {\n name?: string;\n /** Creates relationships with other resources. Parent resources must already exist. */\n parents?: { id: string; type: string }[];\n}\n\nexport interface Role {\n createdAt: string;\n environmentId: string;\n resourceId: string;\n resourceType: string;\n role: string;\n userId: string;\n}\n\nexport interface RoleBulkCreateBody {\n roles: { resourceId: string; resourceType: string; role: string; userId: string }[];\n}\n\nexport interface RoleBulkResult {\n created: {\n createdAt: string;\n environmentId: string;\n resourceId: string;\n resourceType: string;\n role: string;\n userId: string;\n }[];\n errors: {\n error: string;\n index: number;\n role: { resourceId: string; resourceType: string; role: string; userId: string };\n }[];\n success: boolean;\n summary: { failed: number; successful: number; total: number };\n}\n\nexport interface RoleCreateBody {\n resourceId: string;\n resourceType: string;\n role: string;\n}\n\nexport interface RoleList {\n limit: number;\n page: number;\n roles: {\n createdAt: string;\n environmentId: string;\n resourceId: string;\n resourceType: string;\n role: string;\n userId: string;\n }[];\n total: number;\n}\n\nexport interface TransactionHistoryResponse {\n items: {\n amount: number;\n createdAt: string;\n environmentId: string;\n id: string;\n limitType: string;\n resourceId: string;\n resourceType: string;\n tags: Record<string, unknown> | null;\n }[];\n}\n\nexport interface UsageCheckBody {\n amount: number;\n limitType: string;\n period: 'monthly' | 'yearly' | 'lifetime';\n resourceId: string;\n resourceType: string;\n}\n\nexport interface UsageConsumeBody {\n amount: number;\n limitType: string;\n resourceId: string;\n resourceType: string;\n tags?: Record<string, unknown>;\n}\n\nexport interface UsageCreditBody {\n amount: number;\n limitType: string;\n resourceId: string;\n resourceType: string;\n tags?: Record<string, unknown>;\n}\n\nexport interface UsageWalletResponse {\n amount: number;\n createdAt: string;\n environmentId: string;\n id: string;\n limitType: string;\n resourceId: string;\n resourceType: string;\n tags: Record<string, unknown> | null;\n}\n\nexport interface User {\n avatarUrl: string | null;\n createdAt: string;\n email: string;\n emailVerified: boolean;\n firstName: string | null;\n id: string;\n lastLoginAt: string | null;\n lastName: string | null;\n lookupKey: string | null;\n updatedAt: string;\n}\n\nexport interface UserCreateBody {\n avatarUrl?: string;\n email: string;\n firstName?: string | null;\n lastName?: string | null;\n lookupKey: string;\n newUser?: boolean | null;\n password?: string | null;\n}\n\nexport interface UserList {\n items: {\n avatarUrl: string | null;\n createdAt: string;\n email: string;\n emailVerified: boolean;\n firstName: string | null;\n id: string;\n lastLoginAt: string | null;\n lastName: string | null;\n lookupKey: string | null;\n updatedAt: string;\n }[];\n limit: number;\n page: number;\n total: number;\n}\n\nexport type UserResourceList = {\n inherited: boolean;\n resource: { id: string; name: string; parents: { id: string; type: string }[]; type: string };\n role: string;\n}[];\n\nexport interface UserUpdateBody {\n avatarUrl?: string | null;\n email?: string;\n firstName?: string | null;\n lastName?: string | null;\n lookupKey?: string;\n password?: string;\n}\n\n// Operation query parameter interfaces\n\n/**\n * Query params for Entitlements.ListForResource*\n * Returns entitlements for a specific resource and user. Only evaluates roles and plans (excludes limits). Provides detailed information about why entitlements are allowed or denied, including current roles, allowed roles, current plan, and allowed plans. Results are cached per resource for performance.*/\nexport interface EntitlementsListForResourceQuery {\n /** The unique identifier of the user */\n userId: string;\n}\n\n/**\n * Query params for Entitlements.ListForTenant*\n * Returns entitlements for a tenant resource and all its descendant resources. This endpoint scopes queries to a single tenant, preventing cross-tenant data access. Only evaluates roles and plans (excludes limits). Results are cached per resource for performance. The tenant resource type is automatically determined from the environment definition (resource marked as `is_tenant: true`).*/\nexport interface EntitlementsListForTenantQuery {\n /** The unique identifier of the user */\n userId: string;\n}\n\n/**\n * Query params for Resource Members.List*\n * Retrieves a paginated list of users who have roles (direct or inherited) on the specified resource. Supports search functionality to filter users by email or name.*/\nexport interface ResourceMembersListQuery {\n /** Number of items per page (minimum: 1, maximum: 100) */\n limit?: number;\n /** Page number for pagination */\n page?: number;\n /** Search query to filter members by email or name */\n search?: string;\n}\n\n/**\n * Query params for Resources.List*\n * Retrieves a paginated list of resources of the specified type. Supports search and filtering. Resources are returned with their parent relationships and metadata.*/\nexport interface ResourcesListQuery {\n /** Number of items per page (minimum: 1, maximum: 100) */\n limit?: number;\n /** Page number for pagination */\n page?: number;\n /** Search query to filter resources by name */\n search?: string;\n}\n\n/**\n * Query params for Roles.List*\n * Retrieves a paginated list of roles assigned to a user. Supports filtering by resource type, resource ID, and role name. Returns both directly assigned roles and inherited roles.*/\nexport interface RolesListQuery {\n /** Number of items per page (minimum: 1, maximum: 100) */\n limit?: number;\n /** Page number for pagination */\n page?: number;\n /** Filter roles by specific resource ID */\n resourceId?: string;\n /** Filter roles by resource type */\n resourceType?: string;\n /** Filter by role name */\n role?: string;\n}\n\n/**\n * Query params for Usage.GetBalance*\n * Retrieves the current balance of a usage wallet for a specific resource and limit type within a given time period. The balance reflects all credits and consumption transactions.*/\nexport interface UsageGetBalanceQuery {\n /** Time period for the balance calculation */\n period: 'monthly' | 'yearly' | 'lifetime';\n}\n\n/**\n * Query params for Usage.GetTransactionHistory*\n * Retrieves the transaction history for a usage wallet, including all credits and consumption records. Supports filtering by time period and date range.*/\nexport interface UsageGetTransactionHistoryQuery {\n /** End date for filtering transactions (ISO 8601 format) */\n endDate?: string;\n /** Time period for filtering transactions */\n period?: 'monthly' | 'yearly' | 'lifetime';\n /** Start date for filtering transactions (ISO 8601 format) */\n startDate?: string;\n}\n\n/**\n * Query params for Users.List*\n * Retrieves a paginated list of users in your environment. Supports search functionality to filter users by email, name, or lookup key.*/\nexport interface UsersListQuery {\n /** Number of items per page (minimum: 1, maximum: 100) */\n limit?: number;\n /** Page number for pagination */\n page?: number;\n /** Search query to filter users by email, name, or lookup key */\n search?: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/schema.d.mts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { B as BalanceResponse, C as CheckLimitResponse, E as EntitlementCheckBody, d as EntitlementCheckResult, e as EntitlementsListForResourceQuery, g as EntitlementsListForTenantQuery, f as EntitlementsListResult, J as Enum, i as PlanAssignBody, P as PlanDeleteResponse, h as PlanResponse, o as Resource, R as ResourceBulkCreateBody, a as ResourceBulkResult, n as ResourceCreateBody, m as ResourceList, k as ResourceMemberList, j as ResourceMembersListQuery, p as ResourceUpdateBody, l as ResourcesListQuery, u as Role, b as RoleBulkCreateBody, c as RoleBulkResult, t as RoleCreateBody, r as RoleList, q as RolesListQuery, T as TransactionHistoryResponse, v as UsageCheckBody, w as UsageConsumeBody, y as UsageCreditBody, U as UsageGetBalanceQuery, z as UsageGetTransactionHistoryQuery, x as UsageWalletResponse, G as User, F as UserCreateBody, D as UserList, I as UserResourceList, H as UserUpdateBody, A as UsersListQuery } from './schema-B1usIXCr.mjs';
|
|
1
|
+
export { B as BalanceResponse, C as CheckLimitResponse, E as EntitlementCheckBody, d as EntitlementCheckResult, e as EntitlementsListForResourceQuery, g as EntitlementsListForTenantQuery, f as EntitlementsListResult, J as Enum, i as PlanAssignBody, P as PlanDeleteResponse, h as PlanResponse, o as Resource, R as ResourceBulkCreateBody, a as ResourceBulkResult, n as ResourceCreateBody, m as ResourceList, k as ResourceMemberList, j as ResourceMembersListQuery, p as ResourceUpdateBody, l as ResourcesListQuery, u as Role, b as RoleBulkCreateBody, c as RoleBulkResult, t as RoleCreateBody, r as RoleList, q as RolesListQuery, T as TransactionHistoryResponse, v as UsageCheckBody, w as UsageConsumeBody, y as UsageCreditBody, U as UsageGetBalanceQuery, z as UsageGetTransactionHistoryQuery, x as UsageWalletResponse, G as User, F as UserCreateBody, D as UserList, I as UserResourceList, H as UserUpdateBody, A as UsersListQuery } from './schema-BbKn_i-U.mjs';
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { B as BalanceResponse, C as CheckLimitResponse, E as EntitlementCheckBody, d as EntitlementCheckResult, e as EntitlementsListForResourceQuery, g as EntitlementsListForTenantQuery, f as EntitlementsListResult, J as Enum, i as PlanAssignBody, P as PlanDeleteResponse, h as PlanResponse, o as Resource, R as ResourceBulkCreateBody, a as ResourceBulkResult, n as ResourceCreateBody, m as ResourceList, k as ResourceMemberList, j as ResourceMembersListQuery, p as ResourceUpdateBody, l as ResourcesListQuery, u as Role, b as RoleBulkCreateBody, c as RoleBulkResult, t as RoleCreateBody, r as RoleList, q as RolesListQuery, T as TransactionHistoryResponse, v as UsageCheckBody, w as UsageConsumeBody, y as UsageCreditBody, U as UsageGetBalanceQuery, z as UsageGetTransactionHistoryQuery, x as UsageWalletResponse, G as User, F as UserCreateBody, D as UserList, I as UserResourceList, H as UserUpdateBody, A as UsersListQuery } from './schema-B1usIXCr.js';
|
|
1
|
+
export { B as BalanceResponse, C as CheckLimitResponse, E as EntitlementCheckBody, d as EntitlementCheckResult, e as EntitlementsListForResourceQuery, g as EntitlementsListForTenantQuery, f as EntitlementsListResult, J as Enum, i as PlanAssignBody, P as PlanDeleteResponse, h as PlanResponse, o as Resource, R as ResourceBulkCreateBody, a as ResourceBulkResult, n as ResourceCreateBody, m as ResourceList, k as ResourceMemberList, j as ResourceMembersListQuery, p as ResourceUpdateBody, l as ResourcesListQuery, u as Role, b as RoleBulkCreateBody, c as RoleBulkResult, t as RoleCreateBody, r as RoleList, q as RolesListQuery, T as TransactionHistoryResponse, v as UsageCheckBody, w as UsageConsumeBody, y as UsageCreditBody, U as UsageGetBalanceQuery, z as UsageGetTransactionHistoryQuery, x as UsageWalletResponse, G as User, F as UserCreateBody, D as UserList, I as UserResourceList, H as UserUpdateBody, A as UsersListQuery } from './schema-BbKn_i-U.js';
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
declare const EntitlementTypeSchema: z.ZodString;
|
|
4
|
-
declare const LimitTypeSchema: z.ZodString;
|
|
5
|
-
declare const PlanTypeSchema: z.ZodString;
|
|
6
|
-
declare const ResourceTypeSchema: z.ZodString;
|
|
7
|
-
declare const UsageLimitTypeSchema: z.ZodString;
|
|
8
3
|
declare const BalanceResponseSchema: z.ZodObject<{
|
|
9
4
|
balance: z.ZodNumber;
|
|
10
5
|
}, z.core.$strip>;
|
|
@@ -67,15 +62,15 @@ declare const PlanDeleteResponseSchema: z.ZodObject<{
|
|
|
67
62
|
success: z.ZodBoolean;
|
|
68
63
|
}, z.core.$strip>;
|
|
69
64
|
declare const PlanResponseSchema: z.ZodObject<{
|
|
70
|
-
createdAt: z.
|
|
65
|
+
createdAt: z.ZodISODateTime;
|
|
71
66
|
environmentId: z.ZodString;
|
|
72
67
|
planKey: z.ZodString;
|
|
73
68
|
resourceId: z.ZodString;
|
|
74
69
|
resourceType: z.ZodString;
|
|
75
|
-
updatedAt: z.
|
|
70
|
+
updatedAt: z.ZodISODateTime;
|
|
76
71
|
}, z.core.$strip>;
|
|
77
72
|
declare const ResourceSchema: z.ZodObject<{
|
|
78
|
-
createdAt: z.
|
|
73
|
+
createdAt: z.ZodISODateTime;
|
|
79
74
|
id: z.ZodString;
|
|
80
75
|
name: z.ZodNullable<z.ZodString>;
|
|
81
76
|
parents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -139,36 +134,21 @@ declare const ResourceCreateBodySchema: z.ZodObject<{
|
|
|
139
134
|
userId: z.ZodString;
|
|
140
135
|
}, z.core.$strip>>>;
|
|
141
136
|
}, z.core.$strip>;
|
|
142
|
-
declare const ResourceListSchema: z.ZodObject<{
|
|
143
|
-
items: z.ZodArray<z.ZodObject<{
|
|
144
|
-
createdAt: z.ZodString;
|
|
145
|
-
id: z.ZodString;
|
|
146
|
-
name: z.ZodNullable<z.ZodString>;
|
|
147
|
-
parents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
148
|
-
id: z.ZodString;
|
|
149
|
-
type: z.ZodString;
|
|
150
|
-
}, z.core.$strip>>>;
|
|
151
|
-
type: z.ZodString;
|
|
152
|
-
}, z.core.$strip>>;
|
|
153
|
-
limit: z.ZodNumber;
|
|
154
|
-
page: z.ZodNumber;
|
|
155
|
-
total: z.ZodNumber;
|
|
156
|
-
}, z.core.$strip>;
|
|
157
137
|
declare const ResourceMemberListSchema: z.ZodObject<{
|
|
158
138
|
items: z.ZodArray<z.ZodObject<{
|
|
159
139
|
inherited: z.ZodBoolean;
|
|
160
140
|
role: z.ZodString;
|
|
161
141
|
user: z.ZodObject<{
|
|
162
142
|
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
163
|
-
createdAt: z.
|
|
164
|
-
email: z.
|
|
143
|
+
createdAt: z.ZodISODateTime;
|
|
144
|
+
email: z.ZodEmail;
|
|
165
145
|
emailVerified: z.ZodBoolean;
|
|
166
146
|
firstName: z.ZodNullable<z.ZodString>;
|
|
167
147
|
id: z.ZodString;
|
|
168
|
-
lastLoginAt: z.ZodNullable<z.
|
|
148
|
+
lastLoginAt: z.ZodNullable<z.ZodISODateTime>;
|
|
169
149
|
lastName: z.ZodNullable<z.ZodString>;
|
|
170
150
|
lookupKey: z.ZodNullable<z.ZodString>;
|
|
171
|
-
updatedAt: z.
|
|
151
|
+
updatedAt: z.ZodISODateTime;
|
|
172
152
|
}, z.core.$strip>;
|
|
173
153
|
userId: z.ZodString;
|
|
174
154
|
}, z.core.$strip>>;
|
|
@@ -246,7 +226,7 @@ declare const RoleListSchema: z.ZodObject<{
|
|
|
246
226
|
declare const TransactionHistoryResponseSchema: z.ZodObject<{
|
|
247
227
|
items: z.ZodArray<z.ZodObject<{
|
|
248
228
|
amount: z.ZodNumber;
|
|
249
|
-
createdAt: z.
|
|
229
|
+
createdAt: z.ZodISODateTime;
|
|
250
230
|
environmentId: z.ZodString;
|
|
251
231
|
id: z.ZodString;
|
|
252
232
|
limitType: z.ZodString;
|
|
@@ -282,7 +262,7 @@ declare const UsageCreditBodySchema: z.ZodObject<{
|
|
|
282
262
|
}, z.core.$strip>;
|
|
283
263
|
declare const UsageWalletResponseSchema: z.ZodObject<{
|
|
284
264
|
amount: z.ZodNumber;
|
|
285
|
-
createdAt: z.
|
|
265
|
+
createdAt: z.ZodISODateTime;
|
|
286
266
|
environmentId: z.ZodString;
|
|
287
267
|
id: z.ZodString;
|
|
288
268
|
limitType: z.ZodString;
|
|
@@ -292,19 +272,19 @@ declare const UsageWalletResponseSchema: z.ZodObject<{
|
|
|
292
272
|
}, z.core.$strip>;
|
|
293
273
|
declare const UserSchema: z.ZodObject<{
|
|
294
274
|
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
295
|
-
createdAt: z.
|
|
296
|
-
email: z.
|
|
275
|
+
createdAt: z.ZodISODateTime;
|
|
276
|
+
email: z.ZodEmail;
|
|
297
277
|
emailVerified: z.ZodBoolean;
|
|
298
278
|
firstName: z.ZodNullable<z.ZodString>;
|
|
299
279
|
id: z.ZodString;
|
|
300
|
-
lastLoginAt: z.ZodNullable<z.
|
|
280
|
+
lastLoginAt: z.ZodNullable<z.ZodISODateTime>;
|
|
301
281
|
lastName: z.ZodNullable<z.ZodString>;
|
|
302
282
|
lookupKey: z.ZodNullable<z.ZodString>;
|
|
303
|
-
updatedAt: z.
|
|
283
|
+
updatedAt: z.ZodISODateTime;
|
|
304
284
|
}, z.core.$strip>;
|
|
305
285
|
declare const UserCreateBodySchema: z.ZodObject<{
|
|
306
|
-
avatarUrl: z.ZodOptional<z.
|
|
307
|
-
email: z.
|
|
286
|
+
avatarUrl: z.ZodOptional<z.ZodURL>;
|
|
287
|
+
email: z.ZodEmail;
|
|
308
288
|
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
309
289
|
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
310
290
|
lookupKey: z.ZodString;
|
|
@@ -314,15 +294,15 @@ declare const UserCreateBodySchema: z.ZodObject<{
|
|
|
314
294
|
declare const UserListSchema: z.ZodObject<{
|
|
315
295
|
items: z.ZodArray<z.ZodObject<{
|
|
316
296
|
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
317
|
-
createdAt: z.
|
|
318
|
-
email: z.
|
|
297
|
+
createdAt: z.ZodISODateTime;
|
|
298
|
+
email: z.ZodEmail;
|
|
319
299
|
emailVerified: z.ZodBoolean;
|
|
320
300
|
firstName: z.ZodNullable<z.ZodString>;
|
|
321
301
|
id: z.ZodString;
|
|
322
|
-
lastLoginAt: z.ZodNullable<z.
|
|
302
|
+
lastLoginAt: z.ZodNullable<z.ZodISODateTime>;
|
|
323
303
|
lastName: z.ZodNullable<z.ZodString>;
|
|
324
304
|
lookupKey: z.ZodNullable<z.ZodString>;
|
|
325
|
-
updatedAt: z.
|
|
305
|
+
updatedAt: z.ZodISODateTime;
|
|
326
306
|
}, z.core.$strip>>;
|
|
327
307
|
limit: z.ZodNumber;
|
|
328
308
|
page: z.ZodNumber;
|
|
@@ -342,13 +322,28 @@ declare const UserResourceListSchema: z.ZodArray<z.ZodObject<{
|
|
|
342
322
|
role: z.ZodString;
|
|
343
323
|
}, z.core.$strip>>;
|
|
344
324
|
declare const UserUpdateBodySchema: z.ZodObject<{
|
|
345
|
-
avatarUrl: z.ZodOptional<z.ZodNullable<z.
|
|
346
|
-
email: z.ZodOptional<z.
|
|
325
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
326
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
347
327
|
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
348
328
|
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
349
329
|
lookupKey: z.ZodOptional<z.ZodString>;
|
|
350
330
|
password: z.ZodOptional<z.ZodString>;
|
|
351
331
|
}, z.core.$strip>;
|
|
332
|
+
declare const ResourceListSchema: z.ZodObject<{
|
|
333
|
+
items: z.ZodArray<z.ZodObject<{
|
|
334
|
+
createdAt: z.ZodISODateTime;
|
|
335
|
+
id: z.ZodString;
|
|
336
|
+
name: z.ZodNullable<z.ZodString>;
|
|
337
|
+
parents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
338
|
+
id: z.ZodString;
|
|
339
|
+
type: z.ZodString;
|
|
340
|
+
}, z.core.$strip>>>;
|
|
341
|
+
type: z.ZodString;
|
|
342
|
+
}, z.core.$strip>>;
|
|
343
|
+
limit: z.ZodNumber;
|
|
344
|
+
page: z.ZodNumber;
|
|
345
|
+
total: z.ZodNumber;
|
|
346
|
+
}, z.core.$strip>;
|
|
352
347
|
declare const EntitlementsListForResourceQuerySchema: z.ZodObject<{
|
|
353
348
|
userId: z.ZodString;
|
|
354
349
|
}, z.core.$strip>;
|
|
@@ -398,15 +393,12 @@ declare const schema_zod_BalanceResponseSchema: typeof BalanceResponseSchema;
|
|
|
398
393
|
declare const schema_zod_CheckLimitResponseSchema: typeof CheckLimitResponseSchema;
|
|
399
394
|
declare const schema_zod_EntitlementCheckBodySchema: typeof EntitlementCheckBodySchema;
|
|
400
395
|
declare const schema_zod_EntitlementCheckResultSchema: typeof EntitlementCheckResultSchema;
|
|
401
|
-
declare const schema_zod_EntitlementTypeSchema: typeof EntitlementTypeSchema;
|
|
402
396
|
declare const schema_zod_EntitlementsListForResourceQuerySchema: typeof EntitlementsListForResourceQuerySchema;
|
|
403
397
|
declare const schema_zod_EntitlementsListForTenantQuerySchema: typeof EntitlementsListForTenantQuerySchema;
|
|
404
398
|
declare const schema_zod_EntitlementsListResultSchema: typeof EntitlementsListResultSchema;
|
|
405
|
-
declare const schema_zod_LimitTypeSchema: typeof LimitTypeSchema;
|
|
406
399
|
declare const schema_zod_PlanAssignBodySchema: typeof PlanAssignBodySchema;
|
|
407
400
|
declare const schema_zod_PlanDeleteResponseSchema: typeof PlanDeleteResponseSchema;
|
|
408
401
|
declare const schema_zod_PlanResponseSchema: typeof PlanResponseSchema;
|
|
409
|
-
declare const schema_zod_PlanTypeSchema: typeof PlanTypeSchema;
|
|
410
402
|
declare const schema_zod_ResourceBulkCreateBodySchema: typeof ResourceBulkCreateBodySchema;
|
|
411
403
|
declare const schema_zod_ResourceBulkResultSchema: typeof ResourceBulkResultSchema;
|
|
412
404
|
declare const schema_zod_ResourceCreateBodySchema: typeof ResourceCreateBodySchema;
|
|
@@ -414,7 +406,6 @@ declare const schema_zod_ResourceListSchema: typeof ResourceListSchema;
|
|
|
414
406
|
declare const schema_zod_ResourceMemberListSchema: typeof ResourceMemberListSchema;
|
|
415
407
|
declare const schema_zod_ResourceMembersListQuerySchema: typeof ResourceMembersListQuerySchema;
|
|
416
408
|
declare const schema_zod_ResourceSchema: typeof ResourceSchema;
|
|
417
|
-
declare const schema_zod_ResourceTypeSchema: typeof ResourceTypeSchema;
|
|
418
409
|
declare const schema_zod_ResourceUpdateBodySchema: typeof ResourceUpdateBodySchema;
|
|
419
410
|
declare const schema_zod_ResourcesListQuerySchema: typeof ResourcesListQuerySchema;
|
|
420
411
|
declare const schema_zod_RoleBulkCreateBodySchema: typeof RoleBulkCreateBodySchema;
|
|
@@ -429,7 +420,6 @@ declare const schema_zod_UsageConsumeBodySchema: typeof UsageConsumeBodySchema;
|
|
|
429
420
|
declare const schema_zod_UsageCreditBodySchema: typeof UsageCreditBodySchema;
|
|
430
421
|
declare const schema_zod_UsageGetBalanceQuerySchema: typeof UsageGetBalanceQuerySchema;
|
|
431
422
|
declare const schema_zod_UsageGetTransactionHistoryQuerySchema: typeof UsageGetTransactionHistoryQuerySchema;
|
|
432
|
-
declare const schema_zod_UsageLimitTypeSchema: typeof UsageLimitTypeSchema;
|
|
433
423
|
declare const schema_zod_UsageWalletResponseSchema: typeof UsageWalletResponseSchema;
|
|
434
424
|
declare const schema_zod_UserCreateBodySchema: typeof UserCreateBodySchema;
|
|
435
425
|
declare const schema_zod_UserListSchema: typeof UserListSchema;
|
|
@@ -438,7 +428,7 @@ declare const schema_zod_UserSchema: typeof UserSchema;
|
|
|
438
428
|
declare const schema_zod_UserUpdateBodySchema: typeof UserUpdateBodySchema;
|
|
439
429
|
declare const schema_zod_UsersListQuerySchema: typeof UsersListQuerySchema;
|
|
440
430
|
declare namespace schema_zod {
|
|
441
|
-
export { schema_zod_BalanceResponseSchema as BalanceResponseSchema, schema_zod_CheckLimitResponseSchema as CheckLimitResponseSchema, schema_zod_EntitlementCheckBodySchema as EntitlementCheckBodySchema, schema_zod_EntitlementCheckResultSchema as EntitlementCheckResultSchema,
|
|
431
|
+
export { schema_zod_BalanceResponseSchema as BalanceResponseSchema, schema_zod_CheckLimitResponseSchema as CheckLimitResponseSchema, schema_zod_EntitlementCheckBodySchema as EntitlementCheckBodySchema, schema_zod_EntitlementCheckResultSchema as EntitlementCheckResultSchema, schema_zod_EntitlementsListForResourceQuerySchema as EntitlementsListForResourceQuerySchema, schema_zod_EntitlementsListForTenantQuerySchema as EntitlementsListForTenantQuerySchema, schema_zod_EntitlementsListResultSchema as EntitlementsListResultSchema, schema_zod_PlanAssignBodySchema as PlanAssignBodySchema, schema_zod_PlanDeleteResponseSchema as PlanDeleteResponseSchema, schema_zod_PlanResponseSchema as PlanResponseSchema, schema_zod_ResourceBulkCreateBodySchema as ResourceBulkCreateBodySchema, schema_zod_ResourceBulkResultSchema as ResourceBulkResultSchema, schema_zod_ResourceCreateBodySchema as ResourceCreateBodySchema, schema_zod_ResourceListSchema as ResourceListSchema, schema_zod_ResourceMemberListSchema as ResourceMemberListSchema, schema_zod_ResourceMembersListQuerySchema as ResourceMembersListQuerySchema, schema_zod_ResourceSchema as ResourceSchema, schema_zod_ResourceUpdateBodySchema as ResourceUpdateBodySchema, schema_zod_ResourcesListQuerySchema as ResourcesListQuerySchema, schema_zod_RoleBulkCreateBodySchema as RoleBulkCreateBodySchema, schema_zod_RoleBulkResultSchema as RoleBulkResultSchema, schema_zod_RoleCreateBodySchema as RoleCreateBodySchema, schema_zod_RoleListSchema as RoleListSchema, schema_zod_RoleSchema as RoleSchema, schema_zod_RolesListQuerySchema as RolesListQuerySchema, schema_zod_TransactionHistoryResponseSchema as TransactionHistoryResponseSchema, schema_zod_UsageCheckBodySchema as UsageCheckBodySchema, schema_zod_UsageConsumeBodySchema as UsageConsumeBodySchema, schema_zod_UsageCreditBodySchema as UsageCreditBodySchema, schema_zod_UsageGetBalanceQuerySchema as UsageGetBalanceQuerySchema, schema_zod_UsageGetTransactionHistoryQuerySchema as UsageGetTransactionHistoryQuerySchema, schema_zod_UsageWalletResponseSchema as UsageWalletResponseSchema, schema_zod_UserCreateBodySchema as UserCreateBodySchema, schema_zod_UserListSchema as UserListSchema, schema_zod_UserResourceListSchema as UserResourceListSchema, schema_zod_UserSchema as UserSchema, schema_zod_UserUpdateBodySchema as UserUpdateBodySchema, schema_zod_UsersListQuerySchema as UsersListQuerySchema };
|
|
442
432
|
}
|
|
443
433
|
|
|
444
|
-
export {
|
|
434
|
+
export { ResourceMembersListQuerySchema as A, BalanceResponseSchema as B, CheckLimitResponseSchema as C, ResourcesListQuerySchema as D, EntitlementCheckBodySchema as E, RolesListQuerySchema as F, UsageGetBalanceQuerySchema as G, UsageGetTransactionHistoryQuerySchema as H, UsersListQuerySchema as I, PlanAssignBodySchema as P, ResourceSchema as R, TransactionHistoryResponseSchema as T, UsageCheckBodySchema as U, EntitlementCheckResultSchema as a, EntitlementsListResultSchema as b, PlanDeleteResponseSchema as c, PlanResponseSchema as d, ResourceBulkCreateBodySchema as e, ResourceBulkResultSchema as f, ResourceCreateBodySchema as g, ResourceMemberListSchema as h, ResourceUpdateBodySchema as i, RoleSchema as j, RoleBulkCreateBodySchema as k, RoleBulkResultSchema as l, RoleCreateBodySchema as m, RoleListSchema as n, UsageConsumeBodySchema as o, UsageCreditBodySchema as p, UsageWalletResponseSchema as q, UserSchema as r, schema_zod as s, UserCreateBodySchema as t, UserListSchema as u, UserResourceListSchema as v, UserUpdateBodySchema as w, ResourceListSchema as x, EntitlementsListForResourceQuerySchema as y, EntitlementsListForTenantQuerySchema as z };
|