@palmetto/users-sdk 1.3.0 → 1.5.1
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/__generated__/schema.d.ts +1154 -424
- package/dist/client.d.ts +108 -541
- package/dist/client.js +204 -5
- package/package.json +8 -8
package/dist/client.d.ts
CHANGED
|
@@ -1,568 +1,134 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ResultOk } from "@palmetto/result";
|
|
3
|
-
import { ErrorResponse } from "openapi-typescript-helpers";
|
|
1
|
+
import { ApiError, ApiInput, BaseSdkClient, CreateSdkClientInput, RequestOptions, SdkError, SdkResult } from "@palmetto/base-sdk-client";
|
|
2
|
+
import { ExtractResultData, ResultOk } from "@palmetto/result";
|
|
4
3
|
import { paths } from "./__generated__/schema";
|
|
5
|
-
export type ReExportedErrorResponse<T extends Record<string | number, any>> = ErrorResponse<T>;
|
|
6
4
|
export declare class UsersApiClient extends BaseSdkClient<paths> {
|
|
7
5
|
constructor(input: CreateSdkClientInput);
|
|
8
|
-
me(input: MeInput, opts?: RequestOptions): Promise<
|
|
9
|
-
me(opts?: RequestOptions): Promise<
|
|
10
|
-
updateMe(input: UpdateMeInputV2, opts?: RequestOptions): Promise<
|
|
11
|
-
updateMe(input: UpdateMeInput, opts?: RequestOptions): Promise<
|
|
12
|
-
updateUser({ id, ...input }: UpdateUserInput, opts?: RequestOptions): Promise<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
content: {
|
|
34
|
-
"application/json": import("./__generated__/schema").components["schemas"]["UserDto"];
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
400: {
|
|
38
|
-
headers: {
|
|
39
|
-
[name: string]: unknown;
|
|
40
|
-
};
|
|
41
|
-
content: {
|
|
42
|
-
"application/json": import("./__generated__/schema").components["schemas"]["BadRequestErrorDto"];
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
401: {
|
|
46
|
-
headers: {
|
|
47
|
-
[name: string]: unknown;
|
|
48
|
-
};
|
|
49
|
-
content: {
|
|
50
|
-
"application/json": import("./__generated__/schema").components["schemas"]["UnauthorizedErrorDto"];
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
403: {
|
|
54
|
-
headers: {
|
|
55
|
-
[name: string]: unknown;
|
|
56
|
-
};
|
|
57
|
-
content: {
|
|
58
|
-
"application/json": import("./__generated__/schema").components["schemas"]["ForbiddenErrorDto"];
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
404: {
|
|
62
|
-
headers: {
|
|
63
|
-
[name: string]: unknown;
|
|
64
|
-
};
|
|
65
|
-
content: {
|
|
66
|
-
"application/json": import("./__generated__/schema").components["schemas"]["NotFoundErrorDto"];
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
}, `${string}/${string}`>>>;
|
|
70
|
-
getUsers(input: GetUsersInput, opts?: RequestOptions): Promise<ResultOk<{
|
|
71
|
-
data: import("./__generated__/schema").components["schemas"]["ListUserDto"][];
|
|
72
|
-
} & {
|
|
73
|
-
data: unknown[];
|
|
74
|
-
paging: {
|
|
75
|
-
limit: number;
|
|
76
|
-
page: number;
|
|
77
|
-
pageStart: number;
|
|
78
|
-
pageEnd: number;
|
|
79
|
-
totalRecords: number;
|
|
80
|
-
totalPages: number;
|
|
81
|
-
};
|
|
82
|
-
}> | SdkError<ErrorResponse<{
|
|
83
|
-
200: {
|
|
84
|
-
headers: {
|
|
85
|
-
[name: string]: unknown;
|
|
86
|
-
};
|
|
87
|
-
content: {
|
|
88
|
-
"application/json": {
|
|
89
|
-
data: import("./__generated__/schema").components["schemas"]["ListUserDto"][];
|
|
90
|
-
} & import("./__generated__/schema").components["schemas"]["PaginatedListDto"];
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
400: {
|
|
94
|
-
headers: {
|
|
95
|
-
[name: string]: unknown;
|
|
96
|
-
};
|
|
97
|
-
content: {
|
|
98
|
-
"application/json": import("./__generated__/schema").components["schemas"]["BadRequestErrorDto"];
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
401: {
|
|
102
|
-
headers: {
|
|
103
|
-
[name: string]: unknown;
|
|
104
|
-
};
|
|
105
|
-
content: {
|
|
106
|
-
"application/json": import("./__generated__/schema").components["schemas"]["UnauthorizedErrorDto"];
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
403: {
|
|
110
|
-
headers: {
|
|
111
|
-
[name: string]: unknown;
|
|
112
|
-
};
|
|
113
|
-
content: {
|
|
114
|
-
"application/json": import("./__generated__/schema").components["schemas"]["ForbiddenErrorDto"];
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
}, `${string}/${string}`>>>;
|
|
118
|
-
getUser({ id }: GetUserInput, opts?: RequestOptions): Promise<ResultOk<{
|
|
119
|
-
id: string;
|
|
120
|
-
meta: {
|
|
121
|
-
createdAt: string;
|
|
122
|
-
updatedAt?: string;
|
|
123
|
-
};
|
|
124
|
-
auth0Id: string | null;
|
|
125
|
-
email: string;
|
|
126
|
-
firstName: string;
|
|
127
|
-
lastName: string;
|
|
128
|
-
permissions: {
|
|
129
|
-
[key: string]: string[];
|
|
130
|
-
};
|
|
131
|
-
phoneNumber: string;
|
|
132
|
-
organizationId: string;
|
|
133
|
-
hasPAT: boolean;
|
|
134
|
-
}> | SdkError<ErrorResponse<{
|
|
135
|
-
200: {
|
|
136
|
-
headers: {
|
|
137
|
-
[name: string]: unknown;
|
|
138
|
-
};
|
|
139
|
-
content: {
|
|
140
|
-
"application/json": import("./__generated__/schema").components["schemas"]["UserDto"];
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
400: {
|
|
144
|
-
headers: {
|
|
145
|
-
[name: string]: unknown;
|
|
146
|
-
};
|
|
147
|
-
content: {
|
|
148
|
-
"application/json": import("./__generated__/schema").components["schemas"]["BadRequestErrorDto"];
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
401: {
|
|
152
|
-
headers: {
|
|
153
|
-
[name: string]: unknown;
|
|
154
|
-
};
|
|
155
|
-
content: {
|
|
156
|
-
"application/json": import("./__generated__/schema").components["schemas"]["UnauthorizedErrorDto"];
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
403: {
|
|
160
|
-
headers: {
|
|
161
|
-
[name: string]: unknown;
|
|
162
|
-
};
|
|
163
|
-
content: {
|
|
164
|
-
"application/json": import("./__generated__/schema").components["schemas"]["ForbiddenErrorDto"];
|
|
165
|
-
};
|
|
166
|
-
};
|
|
167
|
-
404: {
|
|
168
|
-
headers: {
|
|
169
|
-
[name: string]: unknown;
|
|
170
|
-
};
|
|
171
|
-
content: {
|
|
172
|
-
"application/json": import("./__generated__/schema").components["schemas"]["NotFoundErrorDto"];
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
}, `${string}/${string}`>>>;
|
|
176
|
-
getOrganization({ id }: GetOrganizationInput, opts?: RequestOptions): Promise<ResultOk<{
|
|
177
|
-
id: string;
|
|
178
|
-
meta: {
|
|
179
|
-
createdAt: string;
|
|
180
|
-
updatedAt?: string;
|
|
181
|
-
};
|
|
182
|
-
name: string;
|
|
183
|
-
permissions: {
|
|
184
|
-
[key: string]: string[];
|
|
185
|
-
};
|
|
186
|
-
}> | SdkError<ErrorResponse<{
|
|
187
|
-
200: {
|
|
188
|
-
headers: {
|
|
189
|
-
[name: string]: unknown;
|
|
190
|
-
};
|
|
191
|
-
content: {
|
|
192
|
-
"application/json": import("./__generated__/schema").components["schemas"]["OrganizationDto"];
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
400: {
|
|
196
|
-
headers: {
|
|
197
|
-
[name: string]: unknown;
|
|
198
|
-
};
|
|
199
|
-
content: {
|
|
200
|
-
"application/json": import("./__generated__/schema").components["schemas"]["BadRequestErrorDto"];
|
|
201
|
-
};
|
|
202
|
-
};
|
|
203
|
-
401: {
|
|
204
|
-
headers: {
|
|
205
|
-
[name: string]: unknown;
|
|
206
|
-
};
|
|
207
|
-
content: {
|
|
208
|
-
"application/json": import("./__generated__/schema").components["schemas"]["UnauthorizedErrorDto"];
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
403: {
|
|
212
|
-
headers: {
|
|
213
|
-
[name: string]: unknown;
|
|
214
|
-
};
|
|
215
|
-
content: {
|
|
216
|
-
"application/json": import("./__generated__/schema").components["schemas"]["ForbiddenErrorDto"];
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
404: {
|
|
220
|
-
headers: {
|
|
221
|
-
[name: string]: unknown;
|
|
222
|
-
};
|
|
223
|
-
content: {
|
|
224
|
-
"application/json": import("./__generated__/schema").components["schemas"]["NotFoundErrorDto"];
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
|
-
}, `${string}/${string}`>>>;
|
|
228
|
-
updateOrganization({ id, ...input }: UpdateOrganizationInput, opts?: RequestOptions): Promise<ResultOk<{
|
|
229
|
-
id: string;
|
|
230
|
-
meta: {
|
|
231
|
-
createdAt: string;
|
|
232
|
-
updatedAt?: string;
|
|
233
|
-
};
|
|
234
|
-
name: string;
|
|
235
|
-
permissions: {
|
|
236
|
-
[key: string]: string[];
|
|
237
|
-
};
|
|
238
|
-
}> | SdkError<ErrorResponse<{
|
|
239
|
-
200: {
|
|
240
|
-
headers: {
|
|
241
|
-
[name: string]: unknown;
|
|
242
|
-
};
|
|
243
|
-
content: {
|
|
244
|
-
"application/json": import("./__generated__/schema").components["schemas"]["OrganizationDto"];
|
|
245
|
-
};
|
|
246
|
-
};
|
|
247
|
-
400: {
|
|
248
|
-
headers: {
|
|
249
|
-
[name: string]: unknown;
|
|
250
|
-
};
|
|
251
|
-
content: {
|
|
252
|
-
"application/json": import("./__generated__/schema").components["schemas"]["BadRequestErrorDto"];
|
|
253
|
-
};
|
|
254
|
-
};
|
|
255
|
-
401: {
|
|
256
|
-
headers: {
|
|
257
|
-
[name: string]: unknown;
|
|
258
|
-
};
|
|
259
|
-
content: {
|
|
260
|
-
"application/json": import("./__generated__/schema").components["schemas"]["UnauthorizedErrorDto"];
|
|
261
|
-
};
|
|
262
|
-
};
|
|
263
|
-
403: {
|
|
264
|
-
headers: {
|
|
265
|
-
[name: string]: unknown;
|
|
266
|
-
};
|
|
267
|
-
content: {
|
|
268
|
-
"application/json": import("./__generated__/schema").components["schemas"]["ForbiddenErrorDto"];
|
|
269
|
-
};
|
|
270
|
-
};
|
|
271
|
-
404: {
|
|
272
|
-
headers: {
|
|
273
|
-
[name: string]: unknown;
|
|
274
|
-
};
|
|
275
|
-
content: {
|
|
276
|
-
"application/json": import("./__generated__/schema").components["schemas"]["NotFoundErrorDto"];
|
|
277
|
-
};
|
|
278
|
-
};
|
|
279
|
-
}, `${string}/${string}`>>>;
|
|
280
|
-
createSignUp(input: CreateSignUpInput, opts?: RequestOptions): Promise<ResultOk<{
|
|
281
|
-
token: string;
|
|
282
|
-
}> | SdkError<ErrorResponse<{
|
|
283
|
-
201: {
|
|
284
|
-
headers: {
|
|
285
|
-
[name: string]: unknown;
|
|
286
|
-
};
|
|
287
|
-
content: {
|
|
288
|
-
"application/json": import("./__generated__/schema").components["schemas"]["SignUpTokenDto"];
|
|
289
|
-
};
|
|
290
|
-
};
|
|
291
|
-
400: {
|
|
292
|
-
headers: {
|
|
293
|
-
[name: string]: unknown;
|
|
294
|
-
};
|
|
295
|
-
content: {
|
|
296
|
-
"application/json": import("./__generated__/schema").components["schemas"]["BadRequestErrorDto"];
|
|
297
|
-
};
|
|
298
|
-
};
|
|
299
|
-
401: {
|
|
300
|
-
headers: {
|
|
301
|
-
[name: string]: unknown;
|
|
302
|
-
};
|
|
303
|
-
content: {
|
|
304
|
-
"application/json": import("./__generated__/schema").components["schemas"]["UnauthorizedErrorDto"];
|
|
305
|
-
};
|
|
306
|
-
};
|
|
307
|
-
403: {
|
|
308
|
-
headers: {
|
|
309
|
-
[name: string]: unknown;
|
|
310
|
-
};
|
|
311
|
-
content: {
|
|
312
|
-
"application/json": import("./__generated__/schema").components["schemas"]["ForbiddenErrorDto"];
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
}, `${string}/${string}`>>>;
|
|
316
|
-
getSignUp({ token }: GetSignUpInput, opts?: RequestOptions): Promise<ResultOk<{
|
|
317
|
-
redirectUrl: string;
|
|
318
|
-
auth0Id?: string;
|
|
319
|
-
userId?: string;
|
|
320
|
-
organizationId?: string;
|
|
321
|
-
firstName?: string;
|
|
322
|
-
lastName?: string;
|
|
323
|
-
email?: string;
|
|
324
|
-
expiresAt: string;
|
|
325
|
-
}> | SdkError<ErrorResponse<{
|
|
326
|
-
200: {
|
|
327
|
-
headers: {
|
|
328
|
-
[name: string]: unknown;
|
|
329
|
-
};
|
|
330
|
-
content: {
|
|
331
|
-
"application/json": import("./__generated__/schema").components["schemas"]["SignUpDto"];
|
|
332
|
-
};
|
|
333
|
-
};
|
|
334
|
-
400: {
|
|
335
|
-
headers: {
|
|
336
|
-
[name: string]: unknown;
|
|
337
|
-
};
|
|
338
|
-
content: {
|
|
339
|
-
"application/json": import("./__generated__/schema").components["schemas"]["BadRequestErrorDto"];
|
|
340
|
-
};
|
|
341
|
-
};
|
|
342
|
-
404: {
|
|
343
|
-
headers: {
|
|
344
|
-
[name: string]: unknown;
|
|
345
|
-
};
|
|
346
|
-
content: {
|
|
347
|
-
"application/json": import("./__generated__/schema").components["schemas"]["NotFoundErrorDto"];
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
|
-
}, `${string}/${string}`>>>;
|
|
351
|
-
getSignUps(input: GetSignUpsInput, opts?: RequestOptions): Promise<ResultOk<{
|
|
352
|
-
data: import("./__generated__/schema").components["schemas"]["SignUpAdminDto"][];
|
|
353
|
-
} & {
|
|
354
|
-
data: unknown[];
|
|
355
|
-
paging: {
|
|
356
|
-
limit: number;
|
|
357
|
-
page: number;
|
|
358
|
-
pageStart: number;
|
|
359
|
-
pageEnd: number;
|
|
360
|
-
totalRecords: number;
|
|
361
|
-
totalPages: number;
|
|
362
|
-
};
|
|
363
|
-
}> | SdkError<ErrorResponse<{
|
|
364
|
-
200: {
|
|
365
|
-
headers: {
|
|
366
|
-
[name: string]: unknown;
|
|
367
|
-
};
|
|
368
|
-
content: {
|
|
369
|
-
"application/json": {
|
|
370
|
-
data: import("./__generated__/schema").components["schemas"]["SignUpAdminDto"][];
|
|
371
|
-
} & import("./__generated__/schema").components["schemas"]["PaginatedListDto"];
|
|
372
|
-
};
|
|
373
|
-
};
|
|
374
|
-
400: {
|
|
375
|
-
headers: {
|
|
376
|
-
[name: string]: unknown;
|
|
377
|
-
};
|
|
378
|
-
content: {
|
|
379
|
-
"application/json": import("./__generated__/schema").components["schemas"]["BadRequestErrorDto"];
|
|
380
|
-
};
|
|
381
|
-
};
|
|
382
|
-
401: {
|
|
383
|
-
headers: {
|
|
384
|
-
[name: string]: unknown;
|
|
385
|
-
};
|
|
386
|
-
content: {
|
|
387
|
-
"application/json": import("./__generated__/schema").components["schemas"]["UnauthorizedErrorDto"];
|
|
388
|
-
};
|
|
389
|
-
};
|
|
390
|
-
403: {
|
|
391
|
-
headers: {
|
|
392
|
-
[name: string]: unknown;
|
|
393
|
-
};
|
|
394
|
-
content: {
|
|
395
|
-
"application/json": import("./__generated__/schema").components["schemas"]["ForbiddenErrorDto"];
|
|
396
|
-
};
|
|
397
|
-
};
|
|
398
|
-
}, `${string}/${string}`>>>;
|
|
399
|
-
createSignUpUser({ token, ...body }: CreateSignUpUserInput, opts?: RequestOptions): Promise<ResultOk<{
|
|
400
|
-
redirectUrl: string;
|
|
401
|
-
auth0Id?: string;
|
|
402
|
-
userId?: string;
|
|
403
|
-
organizationId?: string;
|
|
404
|
-
firstName?: string;
|
|
405
|
-
lastName?: string;
|
|
406
|
-
email?: string;
|
|
407
|
-
expiresAt: string;
|
|
408
|
-
}> | SdkError<ErrorResponse<{
|
|
409
|
-
200: {
|
|
410
|
-
headers: {
|
|
411
|
-
[name: string]: unknown;
|
|
412
|
-
};
|
|
413
|
-
content: {
|
|
414
|
-
"application/json": import("./__generated__/schema").components["schemas"]["SignUpDto"];
|
|
415
|
-
};
|
|
416
|
-
};
|
|
417
|
-
400: {
|
|
418
|
-
headers: {
|
|
419
|
-
[name: string]: unknown;
|
|
420
|
-
};
|
|
421
|
-
content: {
|
|
422
|
-
"application/json": import("./__generated__/schema").components["schemas"]["BadRequestErrorDto"];
|
|
423
|
-
};
|
|
424
|
-
};
|
|
425
|
-
401: {
|
|
426
|
-
headers: {
|
|
427
|
-
[name: string]: unknown;
|
|
428
|
-
};
|
|
429
|
-
content: {
|
|
430
|
-
"application/json": import("./__generated__/schema").components["schemas"]["UnauthorizedErrorDto"];
|
|
431
|
-
};
|
|
432
|
-
};
|
|
433
|
-
404: {
|
|
434
|
-
headers: {
|
|
435
|
-
[name: string]: unknown;
|
|
436
|
-
};
|
|
437
|
-
content: {
|
|
438
|
-
"application/json": import("./__generated__/schema").components["schemas"]["NotFoundErrorDto"];
|
|
439
|
-
};
|
|
440
|
-
};
|
|
441
|
-
409: {
|
|
442
|
-
headers: {
|
|
443
|
-
[name: string]: unknown;
|
|
444
|
-
};
|
|
445
|
-
content: {
|
|
446
|
-
"application/json": import("./__generated__/schema").components["schemas"]["ConflictErrorDto"];
|
|
447
|
-
};
|
|
448
|
-
};
|
|
449
|
-
}, `${string}/${string}`>>>;
|
|
450
|
-
getAuthToken({ code, skipUserVerification }: GetAuthTokenInput, opts?: RequestOptions): Promise<ResultOk<GetTokenResponse> | SdkError<ReExportedErrorResponse<paths["/api/auth/token"]["post"]["responses"]>>>;
|
|
451
|
-
refreshToken({ refreshToken }: RefreshTokenInput, opts?: RequestOptions): Promise<ResultOk<{
|
|
452
|
-
accessToken: string;
|
|
453
|
-
idToken: string;
|
|
454
|
-
refreshToken: string;
|
|
455
|
-
expiresIn: number;
|
|
456
|
-
}> | SdkError<ErrorResponse<{
|
|
457
|
-
200: {
|
|
458
|
-
headers: {
|
|
459
|
-
[name: string]: unknown;
|
|
460
|
-
};
|
|
461
|
-
content: {
|
|
462
|
-
"application/json": import("./__generated__/schema").components["schemas"]["TokenResponseDto"];
|
|
463
|
-
};
|
|
464
|
-
};
|
|
465
|
-
400: {
|
|
466
|
-
headers: {
|
|
467
|
-
[name: string]: unknown;
|
|
468
|
-
};
|
|
469
|
-
content: {
|
|
470
|
-
"application/json": import("./__generated__/schema").components["schemas"]["BadRequestErrorDto"];
|
|
471
|
-
};
|
|
472
|
-
};
|
|
473
|
-
404: {
|
|
474
|
-
headers: {
|
|
475
|
-
[name: string]: unknown;
|
|
476
|
-
};
|
|
477
|
-
content: {
|
|
478
|
-
"application/json": import("./__generated__/schema").components["schemas"]["NotFoundErrorDto"];
|
|
479
|
-
};
|
|
480
|
-
};
|
|
481
|
-
}, `${string}/${string}`>>>;
|
|
6
|
+
me(input: MeInput, opts?: RequestOptions): Promise<MeResultV2>;
|
|
7
|
+
me(opts?: RequestOptions): Promise<MeResult>;
|
|
8
|
+
updateMe(input: UpdateMeInputV2, opts?: RequestOptions): Promise<UpdateMeResultV2>;
|
|
9
|
+
updateMe(input: UpdateMeInput, opts?: RequestOptions): Promise<UpdateMeResult>;
|
|
10
|
+
updateUser({ id, ...input }: UpdateUserInput, opts?: RequestOptions): Promise<UpdateUserResult>;
|
|
11
|
+
getUsers(input: GetUsersInput, opts?: RequestOptions): Promise<GetUsersResult>;
|
|
12
|
+
getUser({ id }: GetUserInput, opts?: RequestOptions): Promise<GetUserResult>;
|
|
13
|
+
getOrganization({ id }: GetOrganizationInput, opts?: RequestOptions): Promise<GetOrganizationResult>;
|
|
14
|
+
updateOrganization({ id, ...input }: UpdateOrganizationInput, opts?: RequestOptions): Promise<UpdateOrganizationResult>;
|
|
15
|
+
getOrganizationGrants({ id }: GetOrganizationGrantsInput, opts?: RequestOptions): Promise<GetOrganizationGrantsResult>;
|
|
16
|
+
addOrganizationGrant({ id, ...input }: AddOrganizationGrantInput, opts?: RequestOptions): Promise<AddOrganizationGrantResult>;
|
|
17
|
+
deleteOrganizationGrant({ id, ...input }: DeleteOrganizationGrantInput, opts?: RequestOptions): Promise<DeleteOrganizationGrantResult>;
|
|
18
|
+
createSignUp(input: CreateSignUpInput, opts?: RequestOptions): Promise<CreateSignUpResult>;
|
|
19
|
+
getSignUp({ token }: GetSignUpInput, opts?: RequestOptions): Promise<GetSignUpResult>;
|
|
20
|
+
getSignUps(input: GetSignUpsInput, opts?: RequestOptions): Promise<GetSignUpsResult>;
|
|
21
|
+
createSignUpUser({ token, ...body }: CreateSignUpUserInput, opts?: RequestOptions): Promise<CreateSignUpUserResult>;
|
|
22
|
+
getRoles(input: GetRolesInput, opts?: RequestOptions): Promise<GetRolesResult>;
|
|
23
|
+
getUserRoles(input: GetUserRolesInput, opts?: RequestOptions): Promise<GetUserRolesResult>;
|
|
24
|
+
addUserRole(input: AddUserRoleInput, opts?: RequestOptions): Promise<AddUserRoleResult>;
|
|
25
|
+
deleteUserRole(input: DeleteUserRoleInput, opts?: RequestOptions): Promise<DeleteUserRoleResult>;
|
|
26
|
+
getUserGrants(input: GetUserGrantsInput, opts?: RequestOptions): Promise<GetUserGrantsResult>;
|
|
27
|
+
addUserGrant({ id, ...input }: AddUserGrantInput, opts?: RequestOptions): Promise<AddUserGrantResult>;
|
|
28
|
+
deleteUserGrant({ id, ...input }: DeleteUserGrantInput, opts?: RequestOptions): Promise<DeleteUserGrantResult>;
|
|
29
|
+
getAuthToken({ code, skipUserVerification }: GetAuthTokenInput, opts?: RequestOptions): Promise<GetTokenResult>;
|
|
30
|
+
refreshToken({ refreshToken }: RefreshTokenInput, opts?: RequestOptions): Promise<GetTokenResult>;
|
|
482
31
|
private getToken;
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
limit: number;
|
|
489
|
-
page: number;
|
|
490
|
-
pageStart: number;
|
|
491
|
-
pageEnd: number;
|
|
492
|
-
totalRecords: number;
|
|
493
|
-
totalPages: number;
|
|
494
|
-
};
|
|
495
|
-
}> | SdkError<ErrorResponse<{
|
|
496
|
-
200: {
|
|
497
|
-
headers: {
|
|
498
|
-
[name: string]: unknown;
|
|
499
|
-
};
|
|
500
|
-
content: {
|
|
501
|
-
"application/json": {
|
|
502
|
-
data: import("./__generated__/schema").components["schemas"]["RoleDto"][];
|
|
503
|
-
} & import("./__generated__/schema").components["schemas"]["PaginatedListDto"];
|
|
504
|
-
};
|
|
505
|
-
};
|
|
506
|
-
400: {
|
|
507
|
-
headers: {
|
|
508
|
-
[name: string]: unknown;
|
|
509
|
-
};
|
|
510
|
-
content: {
|
|
511
|
-
"application/json": import("./__generated__/schema").components["schemas"]["BadRequestErrorDto"];
|
|
512
|
-
};
|
|
513
|
-
};
|
|
514
|
-
401: {
|
|
515
|
-
headers: {
|
|
516
|
-
[name: string]: unknown;
|
|
517
|
-
};
|
|
518
|
-
content: {
|
|
519
|
-
"application/json": import("./__generated__/schema").components["schemas"]["UnauthorizedErrorDto"];
|
|
520
|
-
};
|
|
521
|
-
};
|
|
522
|
-
403: {
|
|
523
|
-
headers: {
|
|
524
|
-
[name: string]: unknown;
|
|
525
|
-
};
|
|
526
|
-
content: {
|
|
527
|
-
"application/json": import("./__generated__/schema").components["schemas"]["ForbiddenErrorDto"];
|
|
528
|
-
};
|
|
529
|
-
};
|
|
530
|
-
}, `${string}/${string}`>>>;
|
|
32
|
+
getServices(_input: GetServicesInput, opts?: RequestOptions): Promise<GetServicesResult>;
|
|
33
|
+
createService(input: CreateServiceInput, opts?: RequestOptions): Promise<CreateServiceResult>;
|
|
34
|
+
getService(input: GetServiceInput, opts?: RequestOptions): Promise<GetServiceResult>;
|
|
35
|
+
addServiceEntity({ key, entity }: AddServiceEntityInput, opts?: RequestOptions): Promise<AddServiceEntityResult>;
|
|
36
|
+
addServiceEntityOperation({ key, entityKey, operation }: AddServiceEntityOperationInput, opts?: RequestOptions): Promise<AddServiceEntityOperationResult>;
|
|
531
37
|
}
|
|
532
38
|
export interface MeInput {
|
|
533
39
|
v2Response: true;
|
|
534
40
|
}
|
|
535
|
-
export type
|
|
536
|
-
export type
|
|
41
|
+
export type MeResult = SdkResult<paths["/api/users/me"]["get"]>;
|
|
42
|
+
export type MeResponse = ExtractResultData<MeResult>;
|
|
43
|
+
export type MeResultV2 = SdkResult<paths["/api/v2/users/me"]["get"]>;
|
|
44
|
+
export type MeResponseV2 = ExtractResultData<MeResultV2>;
|
|
537
45
|
export type UpdateMeInput = ApiInput<paths["/api/users/me"]["patch"]>;
|
|
538
|
-
export type
|
|
46
|
+
export type UpdateMeResult = SdkResult<paths["/api/users/me"]["patch"]>;
|
|
47
|
+
export type UpdateMeResponse = ExtractResultData<UpdateMeResult>;
|
|
539
48
|
export type UpdateMeInputV2 = ApiInput<paths["/api/v2/users/me"]["patch"]> & {
|
|
540
49
|
v2Response: true;
|
|
541
50
|
};
|
|
542
|
-
export type
|
|
51
|
+
export type UpdateMeResultV2 = SdkResult<paths["/api/v2/users/me"]["patch"]>;
|
|
52
|
+
export type UpdateMeResponseV2 = ExtractResultData<UpdateMeResultV2>;
|
|
543
53
|
export type UpdateUserInput = ApiInput<paths["/api/users/{id}"]["patch"]>;
|
|
544
|
-
export type
|
|
54
|
+
export type UpdateUserResult = SdkResult<paths["/api/users/{id}"]["patch"]>;
|
|
55
|
+
export type UpdateUserResponse = ExtractResultData<UpdateUserResult>;
|
|
545
56
|
export type GetUsersInput = NonNullable<ApiInput<paths["/api/users"]["get"]>>;
|
|
546
|
-
export type
|
|
57
|
+
export type GetUsersResult = SdkResult<paths["/api/users"]["get"]>;
|
|
58
|
+
export type GetUsersResponse = ExtractResultData<GetUsersResult>;
|
|
547
59
|
export type GetSignUpsInput = ApiInput<paths["/api/sign-ups"]["get"]>;
|
|
548
|
-
export type
|
|
60
|
+
export type GetSignUpsResult = SdkResult<paths["/api/sign-ups"]["get"]>;
|
|
61
|
+
export type GetSignUpsResponse = ExtractResultData<GetSignUpsResult>;
|
|
549
62
|
export type GetUserInput = ApiInput<paths["/api/users/{id}"]["get"]>;
|
|
550
|
-
export type
|
|
63
|
+
export type GetUserResult = SdkResult<paths["/api/users/{id}"]["get"]>;
|
|
64
|
+
export type GetUserResponse = ExtractResultData<GetUserResult>;
|
|
551
65
|
export type GetOrganizationInput = ApiInput<paths["/api/organizations/{id}"]["get"]>;
|
|
552
|
-
export type
|
|
66
|
+
export type GetOrganizationResult = SdkResult<paths["/api/organizations/{id}"]["get"]>;
|
|
67
|
+
export type GetOrganizationResponse = ExtractResultData<GetOrganizationResult>;
|
|
553
68
|
export type UpdateOrganizationInput = ApiInput<paths["/api/organizations/{id}"]["patch"]>;
|
|
554
|
-
export type
|
|
69
|
+
export type UpdateOrganizationResult = SdkResult<paths["/api/organizations/{id}"]["patch"]>;
|
|
70
|
+
export type UpdateOrganizationResponse = ExtractResultData<UpdateOrganizationResult>;
|
|
71
|
+
export type GetOrganizationGrantsInput = ApiInput<paths["/api/organizations/{id}/grants"]["get"]>;
|
|
72
|
+
export type GetOrganizationGrantsResult = SdkResult<paths["/api/organizations/{id}/grants"]["get"]>;
|
|
73
|
+
export type GetOrganizationGrantsResponse = ExtractResultData<GetOrganizationGrantsResult>;
|
|
74
|
+
export type AddOrganizationGrantInput = ApiInput<paths["/api/organizations/{id}/grants"]["post"]>;
|
|
75
|
+
export type AddOrganizationGrantResult = SdkResult<paths["/api/organizations/{id}/grants"]["post"]>;
|
|
76
|
+
export type AddOrganizationGrantResponse = ExtractResultData<AddOrganizationGrantResult>;
|
|
77
|
+
export type DeleteOrganizationGrantInput = ApiInput<paths["/api/organizations/{id}/grants"]["delete"]>;
|
|
78
|
+
export type DeleteOrganizationGrantResult = SdkResult<paths["/api/organizations/{id}/grants"]["delete"]>;
|
|
79
|
+
export type DeleteOrganizationGrantResponse = ExtractResultData<DeleteOrganizationGrantResult>;
|
|
555
80
|
export type CreateSignUpInput = ApiInput<paths["/api/sign-ups"]["post"]>;
|
|
556
|
-
export type
|
|
81
|
+
export type CreateSignUpResult = SdkResult<paths["/api/sign-ups"]["post"]>;
|
|
82
|
+
export type CreateSignUpResponse = ExtractResultData<CreateSignUpResult>;
|
|
557
83
|
export type GetSignUpInput = ApiInput<paths["/api/sign-ups/{token}"]["get"]>;
|
|
558
|
-
export type
|
|
84
|
+
export type GetSignUpResult = SdkResult<paths["/api/sign-ups/{token}"]["get"]>;
|
|
85
|
+
export type GetSignUpResponse = ExtractResultData<GetSignUpResult>;
|
|
559
86
|
export type CreateSignUpUserInput = ApiInput<paths["/api/sign-ups/{token}/user"]["post"]>;
|
|
560
|
-
export type
|
|
87
|
+
export type CreateSignUpUserResult = SdkResult<paths["/api/sign-ups/{token}/user"]["post"]>;
|
|
88
|
+
export type CreateSignUpUserResponse = ExtractResultData<CreateSignUpUserResult>;
|
|
561
89
|
export type GetRolesInput = ApiInput<paths["/api/roles"]["get"]>;
|
|
562
|
-
export type
|
|
90
|
+
export type GetRolesResult = SdkResult<paths["/api/roles"]["get"]>;
|
|
91
|
+
export type GetRolesResponse = ExtractResultData<GetRolesResult>;
|
|
92
|
+
export type GetUserRolesInput = ApiInput<paths["/api/users/{id}/roles"]["get"]>;
|
|
93
|
+
export type GetUserRolesResult = SdkResult<paths["/api/users/{id}/roles"]["get"]>;
|
|
94
|
+
export type GetUserRolesResponse = ExtractResultData<GetUserRolesResult>;
|
|
95
|
+
export type AddUserRoleInput = ApiInput<paths["/api/users/{id}/roles/{roleId}"]["post"]>;
|
|
96
|
+
export type AddUserRoleResult = SdkResult<paths["/api/users/{id}/roles/{roleId}"]["post"]>;
|
|
97
|
+
export type AddUserRoleResponse = ExtractResultData<AddUserRoleResult>;
|
|
98
|
+
export type DeleteUserRoleInput = ApiInput<paths["/api/users/{id}/roles/{roleId}"]["delete"]>;
|
|
99
|
+
export type DeleteUserRoleResult = SdkResult<paths["/api/users/{id}/roles/{roleId}"]["delete"]>;
|
|
100
|
+
export type DeleteUserRoleResponse = ExtractResultData<DeleteUserRoleResult>;
|
|
101
|
+
export type GetUserGrantsInput = ApiInput<paths["/api/users/{id}/grants"]["get"]>;
|
|
102
|
+
export type GetUserGrantsResult = SdkResult<paths["/api/users/{id}/grants"]["get"]>;
|
|
103
|
+
export type GetUserGrantsResponse = ExtractResultData<GetUserGrantsResult>;
|
|
104
|
+
export type AddUserGrantInput = ApiInput<paths["/api/users/{id}/grants"]["post"]>;
|
|
105
|
+
export type AddUserGrantResult = SdkResult<paths["/api/users/{id}/grants"]["post"]>;
|
|
106
|
+
export type AddUserGrantResponse = ExtractResultData<AddUserGrantResult>;
|
|
107
|
+
export type DeleteUserGrantInput = ApiInput<paths["/api/users/{id}/grants"]["delete"]>;
|
|
108
|
+
export type DeleteUserGrantResult = SdkResult<paths["/api/users/{id}/grants"]["delete"]>;
|
|
109
|
+
export type DeleteUserGrantResponse = ExtractResultData<DeleteUserGrantResult>;
|
|
110
|
+
export type GetServicesInput = object;
|
|
111
|
+
export type GetServicesResult = SdkResult<paths["/api/services"]["get"]>;
|
|
112
|
+
export type GetServicesResponse = ExtractResultData<GetServicesResult>;
|
|
113
|
+
export type CreateServiceInput = ApiInput<paths["/api/services"]["post"]>;
|
|
114
|
+
export type CreateServiceResult = SdkResult<paths["/api/services"]["post"]>;
|
|
115
|
+
export type CreateServiceResponse = ExtractResultData<CreateServiceResult>;
|
|
116
|
+
export type GetServiceInput = ApiInput<paths["/api/services/{key}"]["get"]>;
|
|
117
|
+
export type GetServiceResult = SdkResult<paths["/api/services/{key}"]["get"]>;
|
|
118
|
+
export type GetServiceResponse = ExtractResultData<GetServiceResult>;
|
|
119
|
+
export type AddServiceEntityInput = paths["/api/services/{key}/entities"]["post"]["parameters"]["path"] & {
|
|
120
|
+
entity: paths["/api/services/{key}/entities"]["post"]["requestBody"]["content"]["application/json"];
|
|
121
|
+
};
|
|
122
|
+
export type AddServiceEntityResult = SdkResult<paths["/api/services/{key}/entities"]["post"]>;
|
|
123
|
+
export type AddServiceEntityResponse = ExtractResultData<AddServiceEntityResult>;
|
|
124
|
+
export type AddServiceEntityOperationInput = paths["/api/services/{key}/entities/{entityKey}"]["post"]["parameters"]["path"] & {
|
|
125
|
+
operation: paths["/api/services/{key}/entities/{entityKey}"]["post"]["requestBody"]["content"]["application/json"];
|
|
126
|
+
};
|
|
127
|
+
export type AddServiceEntityOperationResult = SdkResult<paths["/api/services/{key}/entities/{entityKey}"]["post"]>;
|
|
128
|
+
export type AddServiceEntityOperationResponse = ExtractResultData<AddServiceEntityOperationResult>;
|
|
563
129
|
export interface GetAuthTokenInput {
|
|
564
130
|
code: string;
|
|
565
|
-
skipUserVerification
|
|
131
|
+
skipUserVerification?: boolean;
|
|
566
132
|
}
|
|
567
133
|
export interface RefreshTokenInput {
|
|
568
134
|
refreshToken: string;
|
|
@@ -573,3 +139,4 @@ export interface GetTokenResponse {
|
|
|
573
139
|
refreshToken: string;
|
|
574
140
|
expiresIn: number;
|
|
575
141
|
}
|
|
142
|
+
export type GetTokenResult = ResultOk<GetTokenResponse> | SdkError<ApiError<paths["/api/auth/token"]["post"]["responses"]>>;
|