@blimu/backend 0.4.5 → 0.4.8

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/schema.d.ts CHANGED
@@ -1,29 +1,79 @@
1
1
  export type Enum<T> = T[keyof T];
2
- export declare namespace Schema {
3
- interface EntitlementCheckBody {
4
- entitlement: EntitlementType;
5
- resourceId: string;
6
- userId: string;
7
- }
8
- interface EntitlementCheckResult {
2
+ export interface BalanceResponse {
3
+ balance: number;
4
+ }
5
+ export interface CheckLimitResponse {
6
+ allowed: boolean;
7
+ current: number;
8
+ remaining?: number;
9
+ requested: number;
10
+ }
11
+ export interface EntitlementCheckBody {
12
+ amount?: number;
13
+ entitlement: EntitlementType;
14
+ resourceId: string;
15
+ userId: string;
16
+ }
17
+ export interface EntitlementCheckResult {
18
+ allowed: boolean;
19
+ entitlement: EntitlementType;
20
+ limit?: {
9
21
  allowed: boolean;
22
+ current?: number;
23
+ limit?: number;
10
24
  reason?: string;
11
- requiredRoles?: Array<string>;
12
- userRoles?: Array<string>;
13
- }
14
- type EntitlementType = string;
15
- interface Resource {
16
- createdAt: string;
25
+ scope?: string;
26
+ };
27
+ }
28
+ export type EntitlementType = string;
29
+ export interface PlanAssignBody {
30
+ planKey: string;
31
+ }
32
+ export interface PlanDeleteResponse {
33
+ success: boolean;
34
+ }
35
+ export interface PlanResponse {
36
+ createdAt: string;
37
+ environmentId: string;
38
+ planKey: string;
39
+ resourceId: string;
40
+ resourceType: ResourceType;
41
+ updatedAt: string;
42
+ }
43
+ export interface Resource {
44
+ createdAt: string;
45
+ id: string;
46
+ name: string | null;
47
+ parents?: Array<{
17
48
  id: string;
18
- name: string | null;
49
+ type: ResourceType;
50
+ }>;
51
+ type: ResourceType;
52
+ }
53
+ export interface ResourceBulkCreateBody {
54
+ resources: Array<{
55
+ id?: string;
56
+ name?: string;
19
57
  parents?: Array<{
20
58
  id: string;
21
59
  type: ResourceType;
22
60
  }>;
61
+ roles?: Array<{
62
+ role: string;
63
+ userId: string;
64
+ }>;
65
+ }>;
66
+ }
67
+ export interface ResourceBulkResult {
68
+ created: Array<{
69
+ environmentId: string;
70
+ id: string;
23
71
  type: ResourceType;
24
- }
25
- interface ResourceBulkCreateBody {
26
- resources: Array<{
72
+ }>;
73
+ errors: Array<{
74
+ error: string;
75
+ index: number;
76
+ resource: {
27
77
  id?: string;
28
78
  name?: string;
29
79
  parents?: Array<{
@@ -34,133 +84,175 @@ export declare namespace Schema {
34
84
  role: string;
35
85
  userId: string;
36
86
  }>;
37
- }>;
38
- }
39
- interface ResourceBulkResult {
40
- created: Array<{
41
- environmentId: string;
42
- id: string;
43
- type: ResourceType;
44
- }>;
45
- errors: Array<{
46
- error: string;
47
- index: number;
48
- resource: {
49
- id?: string;
50
- name?: string;
51
- parents?: Array<{
52
- id: string;
53
- type: ResourceType;
54
- }>;
55
- roles?: Array<{
56
- role: string;
57
- userId: string;
58
- }>;
59
- };
60
- }>;
61
- success: boolean;
62
- summary: {
63
- failed: number;
64
- successful: number;
65
- total: number;
66
87
  };
67
- }
68
- interface ResourceCreateBody {
69
- id?: string;
70
- name?: string;
71
- parents?: Array<{
72
- id: string;
73
- type: ResourceType;
74
- }>;
75
- roles?: Array<{
76
- role: string;
77
- userId: string;
78
- }>;
79
- }
80
- interface ResourceList {
81
- items: Array<{
82
- createdAt: string;
83
- id: string;
84
- name: string | null;
85
- parents?: Array<{
86
- id: string;
87
- type: ResourceType;
88
- }>;
89
- type: ResourceType;
90
- }>;
91
- limit: number;
92
- page: number;
88
+ }>;
89
+ success: boolean;
90
+ summary: {
91
+ failed: number;
92
+ successful: number;
93
93
  total: number;
94
- }
95
- type ResourceType = string;
96
- interface ResourceUpdateBody {
97
- name?: string;
94
+ };
95
+ }
96
+ export interface ResourceCreateBody {
97
+ id?: string;
98
+ name?: string;
99
+ parents?: Array<{
100
+ id: string;
101
+ type: ResourceType;
102
+ }>;
103
+ roles?: Array<{
104
+ role: string;
105
+ userId: string;
106
+ }>;
107
+ }
108
+ export interface ResourceList {
109
+ items: Array<{
110
+ createdAt: string;
111
+ id: string;
112
+ name: string | null;
98
113
  parents?: Array<{
99
114
  id: string;
100
115
  type: ResourceType;
101
116
  }>;
102
- }
103
- interface Role {
117
+ type: ResourceType;
118
+ }>;
119
+ limit: number;
120
+ page: number;
121
+ total: number;
122
+ }
123
+ export type ResourceType = string;
124
+ export interface ResourceUpdateBody {
125
+ name?: string;
126
+ parents?: Array<{
127
+ id: string;
128
+ type: ResourceType;
129
+ }>;
130
+ }
131
+ export interface Role {
132
+ createdAt: string;
133
+ environmentId: string;
134
+ resourceId: string;
135
+ resourceType: ResourceType;
136
+ role: string;
137
+ userId: string;
138
+ }
139
+ export interface RoleBulkCreateBody {
140
+ roles: Array<{
141
+ resourceId: string;
142
+ resourceType: ResourceType;
143
+ role: string;
144
+ userId: string;
145
+ }>;
146
+ }
147
+ export interface RoleBulkResult {
148
+ created: Array<{
104
149
  createdAt: string;
105
150
  environmentId: string;
106
151
  resourceId: string;
107
152
  resourceType: ResourceType;
108
153
  role: string;
109
154
  userId: string;
110
- }
111
- interface RoleBulkCreateBody {
112
- roles: Array<{
113
- resourceId: string;
114
- resourceType: ResourceType;
115
- role: string;
116
- userId: string;
117
- }>;
118
- }
119
- interface RoleBulkResult {
120
- created: Array<{
121
- createdAt: string;
122
- environmentId: string;
155
+ }>;
156
+ errors: Array<{
157
+ error: string;
158
+ index: number;
159
+ role: {
123
160
  resourceId: string;
124
161
  resourceType: ResourceType;
125
162
  role: string;
126
163
  userId: string;
127
- }>;
128
- errors: Array<{
129
- error: string;
130
- index: number;
131
- role: {
132
- resourceId: string;
133
- resourceType: ResourceType;
134
- role: string;
135
- userId: string;
136
- };
137
- }>;
138
- success: boolean;
139
- summary: {
140
- failed: number;
141
- successful: number;
142
- total: number;
143
164
  };
144
- }
145
- interface RoleCreateBody {
165
+ }>;
166
+ success: boolean;
167
+ summary: {
168
+ failed: number;
169
+ successful: number;
170
+ total: number;
171
+ };
172
+ }
173
+ export interface RoleCreateBody {
174
+ resourceId: string;
175
+ resourceType: ResourceType;
176
+ role: string;
177
+ }
178
+ export interface RoleList {
179
+ limit: number;
180
+ page: number;
181
+ roles: Array<{
182
+ createdAt: string;
183
+ environmentId: string;
146
184
  resourceId: string;
147
185
  resourceType: ResourceType;
148
186
  role: string;
149
- }
150
- interface RoleList {
151
- limit: number;
152
- page: number;
153
- roles: Array<{
154
- createdAt: string;
155
- environmentId: string;
156
- resourceId: string;
157
- resourceType: ResourceType;
158
- role: string;
159
- userId: string;
160
- }>;
161
- total: number;
162
- }
163
- interface User {
187
+ userId: string;
188
+ }>;
189
+ total: number;
190
+ }
191
+ export interface TransactionHistoryResponse {
192
+ items: Array<{
193
+ amount: number;
194
+ createdAt: string;
195
+ environmentId: string;
196
+ id: string;
197
+ limitType: string;
198
+ resourceId: string;
199
+ resourceType: ResourceType;
200
+ tags: Record<string, unknown> | null;
201
+ }>;
202
+ }
203
+ export interface UsageCheckBody {
204
+ amount: number;
205
+ limitType: string;
206
+ period: 'monthly' | 'yearly' | 'lifetime';
207
+ resourceId: string;
208
+ resourceType: ResourceType;
209
+ }
210
+ export interface UsageConsumeBody {
211
+ amount: number;
212
+ limitType: string;
213
+ resourceId: string;
214
+ resourceType: ResourceType;
215
+ tags?: Record<string, unknown>;
216
+ }
217
+ export interface UsageCreditBody {
218
+ amount: number;
219
+ limitType: string;
220
+ resourceId: string;
221
+ resourceType: ResourceType;
222
+ tags?: Record<string, unknown>;
223
+ }
224
+ export interface UsageWalletResponse {
225
+ amount: number;
226
+ createdAt: string;
227
+ environmentId: string;
228
+ id: string;
229
+ limitType: string;
230
+ resourceId: string;
231
+ resourceType: ResourceType;
232
+ tags: Record<string, unknown> | null;
233
+ }
234
+ export interface User {
235
+ avatarUrl: string | null;
236
+ createdAt: string;
237
+ email: string;
238
+ emailVerified: boolean;
239
+ firstName: string | null;
240
+ id: string;
241
+ lastLoginAt: string | null;
242
+ lastName: string | null;
243
+ lookupKey: string | null;
244
+ updatedAt: string;
245
+ }
246
+ export interface UserCreateBody {
247
+ avatarUrl?: string;
248
+ email: string;
249
+ firstName?: string | null;
250
+ lastName?: string | null;
251
+ lookupKey: string;
252
+ password?: string | null;
253
+ }
254
+ export interface UserList {
255
+ items: Array<{
164
256
  avatarUrl: string | null;
165
257
  createdAt: string;
166
258
  email: string;
@@ -171,68 +263,54 @@ export declare namespace Schema {
171
263
  lastName: string | null;
172
264
  lookupKey: string | null;
173
265
  updatedAt: string;
174
- }
175
- interface UserCreateBody {
176
- avatarUrl?: string;
177
- email: string;
178
- firstName?: string | null;
179
- lastName?: string | null;
180
- lookupKey: string;
181
- password?: string | null;
182
- }
183
- interface UserList {
184
- items: Array<{
185
- avatarUrl: string | null;
186
- createdAt: string;
187
- email: string;
188
- emailVerified: boolean;
189
- firstName: string | null;
190
- id: string;
191
- lastLoginAt: string | null;
192
- lastName: string | null;
193
- lookupKey: string | null;
194
- updatedAt: string;
195
- }>;
196
- limit: number;
197
- page: number;
198
- total: number;
199
- }
200
- type UserResourceList = Array<{
201
- inherited: boolean;
202
- resource: {
266
+ }>;
267
+ limit: number;
268
+ page: number;
269
+ total: number;
270
+ }
271
+ export type UserResourceList = Array<{
272
+ inherited: boolean;
273
+ resource: {
274
+ id: string;
275
+ name: string;
276
+ parents: Array<{
203
277
  id: string;
204
- name: string;
205
- parents: Array<{
206
- id: string;
207
- type: ResourceType;
208
- }>;
209
278
  type: ResourceType;
210
- };
211
- role: string;
212
- }>;
213
- interface UserUpdateBody {
214
- avatarUrl?: string | null;
215
- email?: string;
216
- firstName?: string | null;
217
- lastName?: string | null;
218
- lookupKey?: string;
219
- password?: string;
220
- }
221
- interface ResourcesListQuery {
222
- limit?: number;
223
- page?: number;
224
- search?: string;
225
- }
226
- interface RolesListQuery {
227
- limit?: number;
228
- page?: number;
229
- resourceId?: string;
230
- resourceType?: ResourceType;
231
- role?: string;
232
- }
233
- interface UsersListQuery {
234
- limit?: number;
235
- page?: number;
236
- search?: string;
237
- }
279
+ }>;
280
+ type: ResourceType;
281
+ };
282
+ role: string;
283
+ }>;
284
+ export interface UserUpdateBody {
285
+ avatarUrl?: string | null;
286
+ email?: string;
287
+ firstName?: string | null;
288
+ lastName?: string | null;
289
+ lookupKey?: string;
290
+ password?: string;
291
+ }
292
+ export interface ResourcesListQuery {
293
+ limit?: number;
294
+ page?: number;
295
+ search?: string;
296
+ }
297
+ export interface RolesListQuery {
298
+ limit?: number;
299
+ page?: number;
300
+ resourceId?: string;
301
+ resourceType?: ResourceType;
302
+ role?: string;
303
+ }
304
+ export interface UsageGetBalanceQuery {
305
+ period: 'monthly' | 'yearly' | 'lifetime';
306
+ }
307
+ export interface UsageGetTransactionHistoryQuery {
308
+ endDate?: string;
309
+ period?: 'monthly' | 'yearly' | 'lifetime';
310
+ startDate?: string;
311
+ }
312
+ export interface UsersListQuery {
313
+ limit?: number;
314
+ page?: number;
315
+ search?: string;
238
316
  }
@@ -1,5 +1,5 @@
1
1
  import { CoreClient } from '../client';
2
- import { Schema } from '../schema';
2
+ import * as Schema from '../schema';
3
3
  export declare class BulkResourcesService {
4
4
  private core;
5
5
  constructor(core: CoreClient);
@@ -1,5 +1,5 @@
1
1
  import { CoreClient } from '../client';
2
- import { Schema } from '../schema';
2
+ import * as Schema from '../schema';
3
3
  export declare class BulkRolesService {
4
4
  private core;
5
5
  constructor(core: CoreClient);
@@ -1,5 +1,5 @@
1
1
  import { CoreClient } from '../client';
2
- import { Schema } from '../schema';
2
+ import * as Schema from '../schema';
3
3
  export declare class EntitlementsService {
4
4
  private core;
5
5
  constructor(core: CoreClient);
@@ -0,0 +1,9 @@
1
+ import { CoreClient } from '../client';
2
+ import * as Schema from '../schema';
3
+ export declare class PlansService {
4
+ private core;
5
+ constructor(core: CoreClient);
6
+ delete(resourceType: Schema.ResourceType, resourceId: string, init?: Omit<RequestInit, 'method' | 'body'>): Promise<Schema.PlanDeleteResponse>;
7
+ read(resourceType: Schema.ResourceType, resourceId: string, init?: Omit<RequestInit, 'method' | 'body'>): Promise<Schema.PlanResponse>;
8
+ assign(resourceType: Schema.ResourceType, resourceId: string, body: Schema.PlanAssignBody, init?: Omit<RequestInit, 'method' | 'body'>): Promise<unknown>;
9
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlansService = void 0;
4
+ class PlansService {
5
+ constructor(core) {
6
+ this.core = core;
7
+ }
8
+ delete(resourceType, resourceId, init) {
9
+ return this.core.request({
10
+ method: 'DELETE',
11
+ path: `/v1/resources/${encodeURIComponent(resourceType)}/${encodeURIComponent(resourceId)}/plan`,
12
+ ...(init || {}),
13
+ });
14
+ }
15
+ read(resourceType, resourceId, init) {
16
+ return this.core.request({
17
+ method: 'GET',
18
+ path: `/v1/resources/${encodeURIComponent(resourceType)}/${encodeURIComponent(resourceId)}/plan`,
19
+ ...(init || {}),
20
+ });
21
+ }
22
+ assign(resourceType, resourceId, body, init) {
23
+ return this.core.request({
24
+ method: 'POST',
25
+ path: `/v1/resources/${encodeURIComponent(resourceType)}/${encodeURIComponent(resourceId)}/plan`,
26
+ headers: { ...(init?.headers || {}), 'content-type': 'application/json' },
27
+ body: JSON.stringify(body),
28
+ ...(init || {}),
29
+ });
30
+ }
31
+ }
32
+ exports.PlansService = PlansService;
33
+ //# sourceMappingURL=plans.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plans.js","sourceRoot":"","sources":["../../src/services/plans.ts"],"names":[],"mappings":";;;AAGA,MAAa,YAAY;IACvB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAMxC,MAAM,CACJ,YAAiC,EACjC,UAAkB,EAClB,IAA2C;QAE3C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;YACvB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,iBAAiB,kBAAkB,CAAC,YAAY,CAAC,IAAI,kBAAkB,CAAC,UAAU,CAAC,OAAO;YAChG,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;SAChB,CAAC,CAAC;IACL,CAAC;IAMD,IAAI,CACF,YAAiC,EACjC,UAAkB,EAClB,IAA2C;QAE3C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;YACvB,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,iBAAiB,kBAAkB,CAAC,YAAY,CAAC,IAAI,kBAAkB,CAAC,UAAU,CAAC,OAAO;YAChG,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;SAChB,CAAC,CAAC;IACL,CAAC;IAMD,MAAM,CACJ,YAAiC,EACjC,UAAkB,EAClB,IAA2B,EAC3B,IAA2C;QAE3C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;YACvB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,iBAAiB,kBAAkB,CAAC,YAAY,CAAC,IAAI,kBAAkB,CAAC,UAAU,CAAC,OAAO;YAChG,OAAO,EAAE,EAAE,GAAG,CAAC,IAAI,EAAE,OAAO,IAAI,EAAE,CAAC,EAAE,cAAc,EAAE,kBAAkB,EAAE;YACzE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YAC1B,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;SAChB,CAAC,CAAC;IACL,CAAC;CACF;AArDD,oCAqDC"}
@@ -1,5 +1,5 @@
1
1
  import { CoreClient } from '../client';
2
- import { Schema } from '../schema';
2
+ import * as Schema from '../schema';
3
3
  export declare class ResourcesService {
4
4
  private core;
5
5
  constructor(core: CoreClient);
@@ -1,5 +1,5 @@
1
1
  import { CoreClient } from '../client';
2
- import { Schema } from '../schema';
2
+ import * as Schema from '../schema';
3
3
  export declare class RolesService {
4
4
  private core;
5
5
  constructor(core: CoreClient);
@@ -0,0 +1,11 @@
1
+ import { CoreClient } from '../client';
2
+ import * as Schema from '../schema';
3
+ export declare class UsageService {
4
+ private core;
5
+ constructor(core: CoreClient);
6
+ getBalance(resourceType: Schema.ResourceType, resourceId: string, limitType: string, query?: Schema.UsageGetBalanceQuery, init?: Omit<RequestInit, 'method' | 'body'>): Promise<Schema.BalanceResponse>;
7
+ checkLimit(body: Schema.UsageCheckBody, init?: Omit<RequestInit, 'method' | 'body'>): Promise<Schema.CheckLimitResponse>;
8
+ consume(body: Schema.UsageConsumeBody, init?: Omit<RequestInit, 'method' | 'body'>): Promise<Schema.UsageWalletResponse>;
9
+ credit(body: Schema.UsageCreditBody, init?: Omit<RequestInit, 'method' | 'body'>): Promise<Schema.UsageWalletResponse>;
10
+ getTransactionHistory(resourceType: Schema.ResourceType, resourceId: string, limitType: string, query?: Schema.UsageGetTransactionHistoryQuery, init?: Omit<RequestInit, 'method' | 'body'>): Promise<Schema.TransactionHistoryResponse>;
11
+ }
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UsageService = void 0;
4
+ class UsageService {
5
+ constructor(core) {
6
+ this.core = core;
7
+ }
8
+ getBalance(resourceType, resourceId, limitType, query, init) {
9
+ return this.core.request({
10
+ method: 'GET',
11
+ path: `/v1/usage/balance/${encodeURIComponent(resourceType)}/${encodeURIComponent(resourceId)}/${encodeURIComponent(limitType)}`,
12
+ query,
13
+ ...(init || {}),
14
+ });
15
+ }
16
+ checkLimit(body, init) {
17
+ return this.core.request({
18
+ method: 'POST',
19
+ path: `/v1/usage/check`,
20
+ headers: { ...(init?.headers || {}), 'content-type': 'application/json' },
21
+ body: JSON.stringify(body),
22
+ ...(init || {}),
23
+ });
24
+ }
25
+ consume(body, init) {
26
+ return this.core.request({
27
+ method: 'POST',
28
+ path: `/v1/usage/consume`,
29
+ headers: { ...(init?.headers || {}), 'content-type': 'application/json' },
30
+ body: JSON.stringify(body),
31
+ ...(init || {}),
32
+ });
33
+ }
34
+ credit(body, init) {
35
+ return this.core.request({
36
+ method: 'POST',
37
+ path: `/v1/usage/credit`,
38
+ headers: { ...(init?.headers || {}), 'content-type': 'application/json' },
39
+ body: JSON.stringify(body),
40
+ ...(init || {}),
41
+ });
42
+ }
43
+ getTransactionHistory(resourceType, resourceId, limitType, query, init) {
44
+ return this.core.request({
45
+ method: 'GET',
46
+ path: `/v1/usage/transactions/${encodeURIComponent(resourceType)}/${encodeURIComponent(resourceId)}/${encodeURIComponent(limitType)}`,
47
+ query,
48
+ ...(init || {}),
49
+ });
50
+ }
51
+ }
52
+ exports.UsageService = UsageService;
53
+ //# sourceMappingURL=usage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/services/usage.ts"],"names":[],"mappings":";;;AAGA,MAAa,YAAY;IACvB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAMxC,UAAU,CACR,YAAiC,EACjC,UAAkB,EAClB,SAAiB,EACjB,KAAmC,EACnC,IAA2C;QAE3C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;YACvB,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,qBAAqB,kBAAkB,CAAC,YAAY,CAAC,IAAI,kBAAkB,CAAC,UAAU,CAAC,IAAI,kBAAkB,CAAC,SAAS,CAAC,EAAE;YAChI,KAAK;YACL,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;SAChB,CAAC,CAAC;IACL,CAAC;IAMD,UAAU,CACR,IAA2B,EAC3B,IAA2C;QAE3C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;YACvB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,iBAAiB;YACvB,OAAO,EAAE,EAAE,GAAG,CAAC,IAAI,EAAE,OAAO,IAAI,EAAE,CAAC,EAAE,cAAc,EAAE,kBAAkB,EAAE;YACzE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YAC1B,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;SAChB,CAAC,CAAC;IACL,CAAC;IAMD,OAAO,CACL,IAA6B,EAC7B,IAA2C;QAE3C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;YACvB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,mBAAmB;YACzB,OAAO,EAAE,EAAE,GAAG,CAAC,IAAI,EAAE,OAAO,IAAI,EAAE,CAAC,EAAE,cAAc,EAAE,kBAAkB,EAAE;YACzE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YAC1B,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;SAChB,CAAC,CAAC;IACL,CAAC;IAMD,MAAM,CACJ,IAA4B,EAC5B,IAA2C;QAE3C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;YACvB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE,EAAE,GAAG,CAAC,IAAI,EAAE,OAAO,IAAI,EAAE,CAAC,EAAE,cAAc,EAAE,kBAAkB,EAAE;YACzE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YAC1B,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;SAChB,CAAC,CAAC;IACL,CAAC;IAMD,qBAAqB,CACnB,YAAiC,EACjC,UAAkB,EAClB,SAAiB,EACjB,KAA8C,EAC9C,IAA2C;QAE3C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;YACvB,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,0BAA0B,kBAAkB,CAAC,YAAY,CAAC,IAAI,kBAAkB,CAAC,UAAU,CAAC,IAAI,kBAAkB,CAAC,SAAS,CAAC,EAAE;YACrI,KAAK;YACL,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;SAChB,CAAC,CAAC;IACL,CAAC;CACF;AA3FD,oCA2FC"}
@@ -1,5 +1,5 @@
1
1
  import { CoreClient } from '../client';
2
- import { Schema } from '../schema';
2
+ import * as Schema from '../schema';
3
3
  export declare class UsersService {
4
4
  private core;
5
5
  constructor(core: CoreClient);