@faable/auth-sdk 2.2.1 → 2.4.0
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/FaableAuthApi.d.ts +65 -52
- package/dist/FaableAuthApi.js +67 -52
- package/dist/api/api-types.d.ts +90 -7
- package/dist/api/api-types.js +3 -0
- package/dist/api/generated-client.d.ts +2879 -0
- package/dist/api/generated-client.js +720 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +2 -2
- package/scripts/gen-client.mjs +231 -0
|
@@ -0,0 +1,2879 @@
|
|
|
1
|
+
import type { operations } from "./types.js";
|
|
2
|
+
import { FaableApi } from "@faable/sdk-base";
|
|
3
|
+
type OpBody<K extends keyof operations> = operations[K] extends {
|
|
4
|
+
requestBody: {
|
|
5
|
+
content: {
|
|
6
|
+
"application/json": infer B;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
} ? B : never;
|
|
10
|
+
type OpQuery<K extends keyof operations> = operations[K] extends {
|
|
11
|
+
parameters: {
|
|
12
|
+
query?: infer Q;
|
|
13
|
+
};
|
|
14
|
+
} ? NonNullable<Q> : Record<string, never>;
|
|
15
|
+
/**
|
|
16
|
+
* Auto-generated management-API methods, one per `bearerAuth` operation in the
|
|
17
|
+
* OpenAPI spec. `FaableAuthApi` extends this and adds the constructor,
|
|
18
|
+
* custom-logic helpers, and deprecated aliases.
|
|
19
|
+
*/
|
|
20
|
+
export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
21
|
+
/**
|
|
22
|
+
* `POST /account` — operationId: `account/create`
|
|
23
|
+
*
|
|
24
|
+
* Create an Account
|
|
25
|
+
*/
|
|
26
|
+
accountCreate(data: OpBody<"account/create">): Promise<{
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
domain: string;
|
|
30
|
+
slug: string;
|
|
31
|
+
logo_src?: string | null | undefined;
|
|
32
|
+
icon_src?: string | null | undefined;
|
|
33
|
+
callback_hostnames: string[];
|
|
34
|
+
token_signature: string;
|
|
35
|
+
token_signing_alg: "RS256";
|
|
36
|
+
default_connection?: unknown;
|
|
37
|
+
enabled_locales: string[];
|
|
38
|
+
team?: string | null | undefined;
|
|
39
|
+
notification_settings: {
|
|
40
|
+
welcome_email_enabled: boolean;
|
|
41
|
+
verify_email_auto_send: boolean;
|
|
42
|
+
};
|
|
43
|
+
email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
|
|
44
|
+
email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
|
|
45
|
+
createdAt: string;
|
|
46
|
+
updatedAt?: string | undefined;
|
|
47
|
+
}>;
|
|
48
|
+
/**
|
|
49
|
+
* `GET /account/current` — operationId: `account/current`
|
|
50
|
+
*
|
|
51
|
+
* Get current Account
|
|
52
|
+
*/
|
|
53
|
+
accountCurrent(params?: OpQuery<"account/current">): Promise<{
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
domain: string;
|
|
57
|
+
slug: string;
|
|
58
|
+
logo_src?: string | null | undefined;
|
|
59
|
+
icon_src?: string | null | undefined;
|
|
60
|
+
callback_hostnames: string[];
|
|
61
|
+
token_signature: string;
|
|
62
|
+
token_signing_alg: "RS256";
|
|
63
|
+
default_connection?: unknown;
|
|
64
|
+
enabled_locales: string[];
|
|
65
|
+
team?: string | null | undefined;
|
|
66
|
+
notification_settings: {
|
|
67
|
+
welcome_email_enabled: boolean;
|
|
68
|
+
verify_email_auto_send: boolean;
|
|
69
|
+
};
|
|
70
|
+
email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
|
|
71
|
+
email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
updatedAt?: string | undefined;
|
|
74
|
+
}>;
|
|
75
|
+
/**
|
|
76
|
+
* `DELETE /account/{account_id}` — operationId: `account/delete`
|
|
77
|
+
*
|
|
78
|
+
* Delete an Account
|
|
79
|
+
*/
|
|
80
|
+
accountDelete(account_id: string): Promise<never>;
|
|
81
|
+
/**
|
|
82
|
+
* `GET /account/{account_id}` — operationId: `account/get`
|
|
83
|
+
*
|
|
84
|
+
* Get an Account
|
|
85
|
+
*/
|
|
86
|
+
accountGet(account_id: string, params?: OpQuery<"account/get">): Promise<{
|
|
87
|
+
id: string;
|
|
88
|
+
name: string;
|
|
89
|
+
domain: string;
|
|
90
|
+
slug: string;
|
|
91
|
+
logo_src?: string | null | undefined;
|
|
92
|
+
icon_src?: string | null | undefined;
|
|
93
|
+
callback_hostnames: string[];
|
|
94
|
+
token_signature: string;
|
|
95
|
+
token_signing_alg: "RS256";
|
|
96
|
+
default_connection?: unknown;
|
|
97
|
+
enabled_locales: string[];
|
|
98
|
+
team?: string | null | undefined;
|
|
99
|
+
notification_settings: {
|
|
100
|
+
welcome_email_enabled: boolean;
|
|
101
|
+
verify_email_auto_send: boolean;
|
|
102
|
+
};
|
|
103
|
+
email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
|
|
104
|
+
email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
|
|
105
|
+
createdAt: string;
|
|
106
|
+
updatedAt?: string | undefined;
|
|
107
|
+
}>;
|
|
108
|
+
/**
|
|
109
|
+
* `GET /account/keys` — operationId: `account/getKeys`
|
|
110
|
+
*
|
|
111
|
+
* Get Account signing keys info
|
|
112
|
+
*/
|
|
113
|
+
accountGetKeys(): Promise<{
|
|
114
|
+
production_kid: string;
|
|
115
|
+
next_in_queue_kid: string;
|
|
116
|
+
kids_active: string[];
|
|
117
|
+
}>;
|
|
118
|
+
/**
|
|
119
|
+
* `GET /account` — operationId: `account/list`
|
|
120
|
+
*
|
|
121
|
+
* List Accounts
|
|
122
|
+
*/
|
|
123
|
+
accountList(params?: Omit<OpQuery<"account/list">, "cursor" | "next">): {
|
|
124
|
+
all: () => Promise<{
|
|
125
|
+
id: string;
|
|
126
|
+
name: string;
|
|
127
|
+
domain: string;
|
|
128
|
+
slug: string;
|
|
129
|
+
logo_src?: string | null | undefined;
|
|
130
|
+
icon_src?: string | null | undefined;
|
|
131
|
+
callback_hostnames: string[];
|
|
132
|
+
token_signature: string;
|
|
133
|
+
token_signing_alg: "RS256";
|
|
134
|
+
default_connection?: unknown;
|
|
135
|
+
enabled_locales: string[];
|
|
136
|
+
team?: string | null | undefined;
|
|
137
|
+
notification_settings: {
|
|
138
|
+
welcome_email_enabled: boolean;
|
|
139
|
+
verify_email_auto_send: boolean;
|
|
140
|
+
};
|
|
141
|
+
email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
|
|
142
|
+
email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
|
|
143
|
+
createdAt: string;
|
|
144
|
+
updatedAt?: string | undefined;
|
|
145
|
+
}[]>;
|
|
146
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
147
|
+
id: string;
|
|
148
|
+
name: string;
|
|
149
|
+
domain: string;
|
|
150
|
+
slug: string;
|
|
151
|
+
logo_src?: string | null | undefined;
|
|
152
|
+
icon_src?: string | null | undefined;
|
|
153
|
+
callback_hostnames: string[];
|
|
154
|
+
token_signature: string;
|
|
155
|
+
token_signing_alg: "RS256";
|
|
156
|
+
default_connection?: unknown;
|
|
157
|
+
enabled_locales: string[];
|
|
158
|
+
team?: string | null | undefined;
|
|
159
|
+
notification_settings: {
|
|
160
|
+
welcome_email_enabled: boolean;
|
|
161
|
+
verify_email_auto_send: boolean;
|
|
162
|
+
};
|
|
163
|
+
email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
|
|
164
|
+
email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
|
|
165
|
+
createdAt: string;
|
|
166
|
+
updatedAt?: string | undefined;
|
|
167
|
+
}>>;
|
|
168
|
+
pass: (params?: {
|
|
169
|
+
cursor?: string | undefined;
|
|
170
|
+
pageSize?: string | undefined;
|
|
171
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
172
|
+
id: string;
|
|
173
|
+
name: string;
|
|
174
|
+
domain: string;
|
|
175
|
+
slug: string;
|
|
176
|
+
logo_src?: string | null | undefined;
|
|
177
|
+
icon_src?: string | null | undefined;
|
|
178
|
+
callback_hostnames: string[];
|
|
179
|
+
token_signature: string;
|
|
180
|
+
token_signing_alg: "RS256";
|
|
181
|
+
default_connection?: unknown;
|
|
182
|
+
enabled_locales: string[];
|
|
183
|
+
team?: string | null | undefined;
|
|
184
|
+
notification_settings: {
|
|
185
|
+
welcome_email_enabled: boolean;
|
|
186
|
+
verify_email_auto_send: boolean;
|
|
187
|
+
};
|
|
188
|
+
email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
|
|
189
|
+
email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
|
|
190
|
+
createdAt: string;
|
|
191
|
+
updatedAt?: string | undefined;
|
|
192
|
+
}>>;
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* `POST /account/keys/rotate` — operationId: `account/rotateKeys`
|
|
196
|
+
*
|
|
197
|
+
* Rotate Account signing keys
|
|
198
|
+
*/
|
|
199
|
+
accountRotateKeys(data: OpBody<"account/rotateKeys">): Promise<{
|
|
200
|
+
rotated_at: string;
|
|
201
|
+
previous_production_kid: string;
|
|
202
|
+
production_kid: string;
|
|
203
|
+
next_in_queue_kid: string;
|
|
204
|
+
kids_active: string[];
|
|
205
|
+
}>;
|
|
206
|
+
/**
|
|
207
|
+
* `POST /account/{account_id}` — operationId: `account/update`
|
|
208
|
+
*
|
|
209
|
+
* Update an Account
|
|
210
|
+
*/
|
|
211
|
+
accountUpdate(account_id: string, data: OpBody<"account/update">): Promise<{
|
|
212
|
+
id: string;
|
|
213
|
+
name: string;
|
|
214
|
+
domain: string;
|
|
215
|
+
slug: string;
|
|
216
|
+
logo_src?: string | null | undefined;
|
|
217
|
+
icon_src?: string | null | undefined;
|
|
218
|
+
callback_hostnames: string[];
|
|
219
|
+
token_signature: string;
|
|
220
|
+
token_signing_alg: "RS256";
|
|
221
|
+
default_connection?: unknown;
|
|
222
|
+
enabled_locales: string[];
|
|
223
|
+
team?: string | null | undefined;
|
|
224
|
+
notification_settings: {
|
|
225
|
+
welcome_email_enabled: boolean;
|
|
226
|
+
verify_email_auto_send: boolean;
|
|
227
|
+
};
|
|
228
|
+
email_change_verification_mode?: "new_only" | "old_and_new" | undefined;
|
|
229
|
+
email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
|
|
230
|
+
createdAt: string;
|
|
231
|
+
updatedAt?: string | undefined;
|
|
232
|
+
}>;
|
|
233
|
+
/**
|
|
234
|
+
* `POST /action` — operationId: `action/create`
|
|
235
|
+
*
|
|
236
|
+
* Create Action
|
|
237
|
+
*/
|
|
238
|
+
actionCreate(data: OpBody<"action/create">): Promise<{
|
|
239
|
+
id: string;
|
|
240
|
+
name: string;
|
|
241
|
+
trigger: "continue" | "post-login";
|
|
242
|
+
code: string;
|
|
243
|
+
enabled: boolean;
|
|
244
|
+
order: number;
|
|
245
|
+
account: string;
|
|
246
|
+
metadata: {
|
|
247
|
+
[key: string]: unknown;
|
|
248
|
+
};
|
|
249
|
+
createdAt: string;
|
|
250
|
+
updatedAt?: string | undefined;
|
|
251
|
+
}>;
|
|
252
|
+
/**
|
|
253
|
+
* `DELETE /action/{action_id}` — operationId: `action/delete`
|
|
254
|
+
*
|
|
255
|
+
* Delete Action
|
|
256
|
+
*/
|
|
257
|
+
actionDelete(action_id: string): Promise<{
|
|
258
|
+
id: string;
|
|
259
|
+
name: string;
|
|
260
|
+
trigger: "continue" | "post-login";
|
|
261
|
+
code: string;
|
|
262
|
+
enabled: boolean;
|
|
263
|
+
order: number;
|
|
264
|
+
account: string;
|
|
265
|
+
metadata: {
|
|
266
|
+
[key: string]: unknown;
|
|
267
|
+
};
|
|
268
|
+
createdAt: string;
|
|
269
|
+
updatedAt?: string | undefined;
|
|
270
|
+
}>;
|
|
271
|
+
/**
|
|
272
|
+
* `GET /action/{action_id}` — operationId: `action/get`
|
|
273
|
+
*
|
|
274
|
+
* Get Action
|
|
275
|
+
*/
|
|
276
|
+
actionGet(action_id: string): Promise<{
|
|
277
|
+
id: string;
|
|
278
|
+
name: string;
|
|
279
|
+
trigger: "continue" | "post-login";
|
|
280
|
+
code: string;
|
|
281
|
+
enabled: boolean;
|
|
282
|
+
order: number;
|
|
283
|
+
account: string;
|
|
284
|
+
metadata: {
|
|
285
|
+
[key: string]: unknown;
|
|
286
|
+
};
|
|
287
|
+
createdAt: string;
|
|
288
|
+
updatedAt?: string | undefined;
|
|
289
|
+
}>;
|
|
290
|
+
/**
|
|
291
|
+
* `GET /action` — operationId: `action/list`
|
|
292
|
+
*
|
|
293
|
+
* List Actions
|
|
294
|
+
*/
|
|
295
|
+
actionList(params?: Omit<OpQuery<"action/list">, "cursor" | "next">): {
|
|
296
|
+
all: () => Promise<{
|
|
297
|
+
id: string;
|
|
298
|
+
name: string;
|
|
299
|
+
trigger: "continue" | "post-login";
|
|
300
|
+
code: string;
|
|
301
|
+
enabled: boolean;
|
|
302
|
+
order: number;
|
|
303
|
+
account: string;
|
|
304
|
+
metadata: {
|
|
305
|
+
[key: string]: unknown;
|
|
306
|
+
};
|
|
307
|
+
createdAt: string;
|
|
308
|
+
updatedAt?: string | undefined;
|
|
309
|
+
}[]>;
|
|
310
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
311
|
+
id: string;
|
|
312
|
+
name: string;
|
|
313
|
+
trigger: "continue" | "post-login";
|
|
314
|
+
code: string;
|
|
315
|
+
enabled: boolean;
|
|
316
|
+
order: number;
|
|
317
|
+
account: string;
|
|
318
|
+
metadata: {
|
|
319
|
+
[key: string]: unknown;
|
|
320
|
+
};
|
|
321
|
+
createdAt: string;
|
|
322
|
+
updatedAt?: string | undefined;
|
|
323
|
+
}>>;
|
|
324
|
+
pass: (params?: {
|
|
325
|
+
cursor?: string | undefined;
|
|
326
|
+
pageSize?: string | undefined;
|
|
327
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
328
|
+
id: string;
|
|
329
|
+
name: string;
|
|
330
|
+
trigger: "continue" | "post-login";
|
|
331
|
+
code: string;
|
|
332
|
+
enabled: boolean;
|
|
333
|
+
order: number;
|
|
334
|
+
account: string;
|
|
335
|
+
metadata: {
|
|
336
|
+
[key: string]: unknown;
|
|
337
|
+
};
|
|
338
|
+
createdAt: string;
|
|
339
|
+
updatedAt?: string | undefined;
|
|
340
|
+
}>>;
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
* `POST /api` — operationId: `api/create`
|
|
344
|
+
*
|
|
345
|
+
* Create Api
|
|
346
|
+
*/
|
|
347
|
+
apiCreate(data: OpBody<"api/create">): Promise<{
|
|
348
|
+
id: string;
|
|
349
|
+
name: string;
|
|
350
|
+
slug: string;
|
|
351
|
+
identifier: string;
|
|
352
|
+
description?: string | undefined;
|
|
353
|
+
permissions: {
|
|
354
|
+
value: string;
|
|
355
|
+
description?: string | undefined;
|
|
356
|
+
}[];
|
|
357
|
+
signing_alg: "RS256";
|
|
358
|
+
token_dialect: "access_token" | "access_token_authz";
|
|
359
|
+
token_lifetime: number;
|
|
360
|
+
enforce_policies: boolean;
|
|
361
|
+
allow_offline_access: boolean;
|
|
362
|
+
skip_consent: boolean;
|
|
363
|
+
include_teams_in_access_token: boolean;
|
|
364
|
+
include_roles_in_access_token: boolean;
|
|
365
|
+
include_teams_in_id_token: boolean;
|
|
366
|
+
include_roles_in_id_token: boolean;
|
|
367
|
+
account: string;
|
|
368
|
+
metadata: {
|
|
369
|
+
[key: string]: unknown;
|
|
370
|
+
};
|
|
371
|
+
createdAt: string;
|
|
372
|
+
updatedAt?: string | undefined;
|
|
373
|
+
}>;
|
|
374
|
+
/**
|
|
375
|
+
* `DELETE /api/{api_id}` — operationId: `api/delete`
|
|
376
|
+
*
|
|
377
|
+
* Delete Api
|
|
378
|
+
*/
|
|
379
|
+
apiDelete(api_id: string): Promise<{
|
|
380
|
+
id: string;
|
|
381
|
+
name: string;
|
|
382
|
+
slug: string;
|
|
383
|
+
identifier: string;
|
|
384
|
+
description?: string | undefined;
|
|
385
|
+
permissions: {
|
|
386
|
+
value: string;
|
|
387
|
+
description?: string | undefined;
|
|
388
|
+
}[];
|
|
389
|
+
signing_alg: "RS256";
|
|
390
|
+
token_dialect: "access_token" | "access_token_authz";
|
|
391
|
+
token_lifetime: number;
|
|
392
|
+
enforce_policies: boolean;
|
|
393
|
+
allow_offline_access: boolean;
|
|
394
|
+
skip_consent: boolean;
|
|
395
|
+
include_teams_in_access_token: boolean;
|
|
396
|
+
include_roles_in_access_token: boolean;
|
|
397
|
+
include_teams_in_id_token: boolean;
|
|
398
|
+
include_roles_in_id_token: boolean;
|
|
399
|
+
account: string;
|
|
400
|
+
metadata: {
|
|
401
|
+
[key: string]: unknown;
|
|
402
|
+
};
|
|
403
|
+
createdAt: string;
|
|
404
|
+
updatedAt?: string | undefined;
|
|
405
|
+
}>;
|
|
406
|
+
/**
|
|
407
|
+
* `GET /api/{api_id}` — operationId: `api/get`
|
|
408
|
+
*
|
|
409
|
+
* Get Api
|
|
410
|
+
*/
|
|
411
|
+
apiGet(api_id: string): Promise<{
|
|
412
|
+
id: string;
|
|
413
|
+
name: string;
|
|
414
|
+
slug: string;
|
|
415
|
+
identifier: string;
|
|
416
|
+
description?: string | undefined;
|
|
417
|
+
permissions: {
|
|
418
|
+
value: string;
|
|
419
|
+
description?: string | undefined;
|
|
420
|
+
}[];
|
|
421
|
+
signing_alg: "RS256";
|
|
422
|
+
token_dialect: "access_token" | "access_token_authz";
|
|
423
|
+
token_lifetime: number;
|
|
424
|
+
enforce_policies: boolean;
|
|
425
|
+
allow_offline_access: boolean;
|
|
426
|
+
skip_consent: boolean;
|
|
427
|
+
include_teams_in_access_token: boolean;
|
|
428
|
+
include_roles_in_access_token: boolean;
|
|
429
|
+
include_teams_in_id_token: boolean;
|
|
430
|
+
include_roles_in_id_token: boolean;
|
|
431
|
+
account: string;
|
|
432
|
+
metadata: {
|
|
433
|
+
[key: string]: unknown;
|
|
434
|
+
};
|
|
435
|
+
createdAt: string;
|
|
436
|
+
updatedAt?: string | undefined;
|
|
437
|
+
}>;
|
|
438
|
+
/**
|
|
439
|
+
* `GET /api` — operationId: `api/list`
|
|
440
|
+
*
|
|
441
|
+
* List Apis
|
|
442
|
+
*/
|
|
443
|
+
apiList(params?: Omit<OpQuery<"api/list">, "cursor" | "next">): {
|
|
444
|
+
all: () => Promise<{
|
|
445
|
+
id: string;
|
|
446
|
+
name: string;
|
|
447
|
+
slug: string;
|
|
448
|
+
identifier: string;
|
|
449
|
+
description?: string | undefined;
|
|
450
|
+
permissions: {
|
|
451
|
+
value: string;
|
|
452
|
+
description?: string | undefined;
|
|
453
|
+
}[];
|
|
454
|
+
signing_alg: "RS256";
|
|
455
|
+
token_dialect: "access_token" | "access_token_authz";
|
|
456
|
+
token_lifetime: number;
|
|
457
|
+
enforce_policies: boolean;
|
|
458
|
+
allow_offline_access: boolean;
|
|
459
|
+
skip_consent: boolean;
|
|
460
|
+
include_teams_in_access_token: boolean;
|
|
461
|
+
include_roles_in_access_token: boolean;
|
|
462
|
+
include_teams_in_id_token: boolean;
|
|
463
|
+
include_roles_in_id_token: boolean;
|
|
464
|
+
account: string;
|
|
465
|
+
metadata: {
|
|
466
|
+
[key: string]: unknown;
|
|
467
|
+
};
|
|
468
|
+
createdAt: string;
|
|
469
|
+
updatedAt?: string | undefined;
|
|
470
|
+
}[]>;
|
|
471
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
472
|
+
id: string;
|
|
473
|
+
name: string;
|
|
474
|
+
slug: string;
|
|
475
|
+
identifier: string;
|
|
476
|
+
description?: string | undefined;
|
|
477
|
+
permissions: {
|
|
478
|
+
value: string;
|
|
479
|
+
description?: string | undefined;
|
|
480
|
+
}[];
|
|
481
|
+
signing_alg: "RS256";
|
|
482
|
+
token_dialect: "access_token" | "access_token_authz";
|
|
483
|
+
token_lifetime: number;
|
|
484
|
+
enforce_policies: boolean;
|
|
485
|
+
allow_offline_access: boolean;
|
|
486
|
+
skip_consent: boolean;
|
|
487
|
+
include_teams_in_access_token: boolean;
|
|
488
|
+
include_roles_in_access_token: boolean;
|
|
489
|
+
include_teams_in_id_token: boolean;
|
|
490
|
+
include_roles_in_id_token: boolean;
|
|
491
|
+
account: string;
|
|
492
|
+
metadata: {
|
|
493
|
+
[key: string]: unknown;
|
|
494
|
+
};
|
|
495
|
+
createdAt: string;
|
|
496
|
+
updatedAt?: string | undefined;
|
|
497
|
+
}>>;
|
|
498
|
+
pass: (params?: {
|
|
499
|
+
cursor?: string | undefined;
|
|
500
|
+
pageSize?: string | undefined;
|
|
501
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
502
|
+
id: string;
|
|
503
|
+
name: string;
|
|
504
|
+
slug: string;
|
|
505
|
+
identifier: string;
|
|
506
|
+
description?: string | undefined;
|
|
507
|
+
permissions: {
|
|
508
|
+
value: string;
|
|
509
|
+
description?: string | undefined;
|
|
510
|
+
}[];
|
|
511
|
+
signing_alg: "RS256";
|
|
512
|
+
token_dialect: "access_token" | "access_token_authz";
|
|
513
|
+
token_lifetime: number;
|
|
514
|
+
enforce_policies: boolean;
|
|
515
|
+
allow_offline_access: boolean;
|
|
516
|
+
skip_consent: boolean;
|
|
517
|
+
include_teams_in_access_token: boolean;
|
|
518
|
+
include_roles_in_access_token: boolean;
|
|
519
|
+
include_teams_in_id_token: boolean;
|
|
520
|
+
include_roles_in_id_token: boolean;
|
|
521
|
+
account: string;
|
|
522
|
+
metadata: {
|
|
523
|
+
[key: string]: unknown;
|
|
524
|
+
};
|
|
525
|
+
createdAt: string;
|
|
526
|
+
updatedAt?: string | undefined;
|
|
527
|
+
}>>;
|
|
528
|
+
};
|
|
529
|
+
/**
|
|
530
|
+
* `POST /api/{api_id}` — operationId: `api/update`
|
|
531
|
+
*
|
|
532
|
+
* Update Api
|
|
533
|
+
*/
|
|
534
|
+
apiUpdate(api_id: string, data: OpBody<"api/update">): Promise<{
|
|
535
|
+
id: string;
|
|
536
|
+
name: string;
|
|
537
|
+
slug: string;
|
|
538
|
+
identifier: string;
|
|
539
|
+
description?: string | undefined;
|
|
540
|
+
permissions: {
|
|
541
|
+
value: string;
|
|
542
|
+
description?: string | undefined;
|
|
543
|
+
}[];
|
|
544
|
+
signing_alg: "RS256";
|
|
545
|
+
token_dialect: "access_token" | "access_token_authz";
|
|
546
|
+
token_lifetime: number;
|
|
547
|
+
enforce_policies: boolean;
|
|
548
|
+
allow_offline_access: boolean;
|
|
549
|
+
skip_consent: boolean;
|
|
550
|
+
include_teams_in_access_token: boolean;
|
|
551
|
+
include_roles_in_access_token: boolean;
|
|
552
|
+
include_teams_in_id_token: boolean;
|
|
553
|
+
include_roles_in_id_token: boolean;
|
|
554
|
+
account: string;
|
|
555
|
+
metadata: {
|
|
556
|
+
[key: string]: unknown;
|
|
557
|
+
};
|
|
558
|
+
createdAt: string;
|
|
559
|
+
updatedAt?: string | undefined;
|
|
560
|
+
}>;
|
|
561
|
+
/**
|
|
562
|
+
* `POST /client` — operationId: `client/create`
|
|
563
|
+
*
|
|
564
|
+
* Create Client
|
|
565
|
+
*/
|
|
566
|
+
clientCreate(data: OpBody<"client/create">): Promise<{
|
|
567
|
+
id: string;
|
|
568
|
+
name: string;
|
|
569
|
+
description: string;
|
|
570
|
+
client_id: string;
|
|
571
|
+
client_secret: string;
|
|
572
|
+
callbacks: string[];
|
|
573
|
+
logout_urls: string[];
|
|
574
|
+
refresh_token: {
|
|
575
|
+
expiration_mode: "expire" | "not-expire";
|
|
576
|
+
infinite_token_lifetime: boolean;
|
|
577
|
+
token_lifetime: number;
|
|
578
|
+
};
|
|
579
|
+
client_uri?: string | null | undefined;
|
|
580
|
+
logo_uri?: string | null | undefined;
|
|
581
|
+
tos_uri?: string | null | undefined;
|
|
582
|
+
policy_uri?: string | null | undefined;
|
|
583
|
+
contacts?: string[] | undefined;
|
|
584
|
+
grant_types?: string[] | undefined;
|
|
585
|
+
response_types?: string[] | undefined;
|
|
586
|
+
token_endpoint_auth_method?: string | undefined;
|
|
587
|
+
application_type?: string | undefined;
|
|
588
|
+
software_id?: string | null | undefined;
|
|
589
|
+
software_version?: string | null | undefined;
|
|
590
|
+
frontchannel_logout_uri?: string | null | undefined;
|
|
591
|
+
frontchannel_logout_session_required?: boolean | undefined;
|
|
592
|
+
account: string;
|
|
593
|
+
metadata: {
|
|
594
|
+
[key: string]: unknown;
|
|
595
|
+
};
|
|
596
|
+
createdAt: string;
|
|
597
|
+
updatedAt?: string | undefined;
|
|
598
|
+
}>;
|
|
599
|
+
/**
|
|
600
|
+
* `DELETE /client/{client_id}` — operationId: `client/delete`
|
|
601
|
+
*
|
|
602
|
+
* Delete Client
|
|
603
|
+
*/
|
|
604
|
+
clientDelete(client_id: string): Promise<{
|
|
605
|
+
id: string;
|
|
606
|
+
name: string;
|
|
607
|
+
description: string;
|
|
608
|
+
client_id: string;
|
|
609
|
+
client_secret: string;
|
|
610
|
+
callbacks: string[];
|
|
611
|
+
logout_urls: string[];
|
|
612
|
+
refresh_token: {
|
|
613
|
+
expiration_mode: "expire" | "not-expire";
|
|
614
|
+
infinite_token_lifetime: boolean;
|
|
615
|
+
token_lifetime: number;
|
|
616
|
+
};
|
|
617
|
+
client_uri?: string | null | undefined;
|
|
618
|
+
logo_uri?: string | null | undefined;
|
|
619
|
+
tos_uri?: string | null | undefined;
|
|
620
|
+
policy_uri?: string | null | undefined;
|
|
621
|
+
contacts?: string[] | undefined;
|
|
622
|
+
grant_types?: string[] | undefined;
|
|
623
|
+
response_types?: string[] | undefined;
|
|
624
|
+
token_endpoint_auth_method?: string | undefined;
|
|
625
|
+
application_type?: string | undefined;
|
|
626
|
+
software_id?: string | null | undefined;
|
|
627
|
+
software_version?: string | null | undefined;
|
|
628
|
+
frontchannel_logout_uri?: string | null | undefined;
|
|
629
|
+
frontchannel_logout_session_required?: boolean | undefined;
|
|
630
|
+
account: string;
|
|
631
|
+
metadata: {
|
|
632
|
+
[key: string]: unknown;
|
|
633
|
+
};
|
|
634
|
+
createdAt: string;
|
|
635
|
+
updatedAt?: string | undefined;
|
|
636
|
+
}>;
|
|
637
|
+
/**
|
|
638
|
+
* `GET /client/{client_id}` — operationId: `client/get`
|
|
639
|
+
*
|
|
640
|
+
* Get Client
|
|
641
|
+
*/
|
|
642
|
+
clientGet(client_id: string): Promise<{
|
|
643
|
+
id: string;
|
|
644
|
+
name: string;
|
|
645
|
+
description: string;
|
|
646
|
+
client_id: string;
|
|
647
|
+
client_secret: string;
|
|
648
|
+
callbacks: string[];
|
|
649
|
+
logout_urls: string[];
|
|
650
|
+
refresh_token: {
|
|
651
|
+
expiration_mode: "expire" | "not-expire";
|
|
652
|
+
infinite_token_lifetime: boolean;
|
|
653
|
+
token_lifetime: number;
|
|
654
|
+
};
|
|
655
|
+
client_uri?: string | null | undefined;
|
|
656
|
+
logo_uri?: string | null | undefined;
|
|
657
|
+
tos_uri?: string | null | undefined;
|
|
658
|
+
policy_uri?: string | null | undefined;
|
|
659
|
+
contacts?: string[] | undefined;
|
|
660
|
+
grant_types?: string[] | undefined;
|
|
661
|
+
response_types?: string[] | undefined;
|
|
662
|
+
token_endpoint_auth_method?: string | undefined;
|
|
663
|
+
application_type?: string | undefined;
|
|
664
|
+
software_id?: string | null | undefined;
|
|
665
|
+
software_version?: string | null | undefined;
|
|
666
|
+
frontchannel_logout_uri?: string | null | undefined;
|
|
667
|
+
frontchannel_logout_session_required?: boolean | undefined;
|
|
668
|
+
account: string;
|
|
669
|
+
metadata: {
|
|
670
|
+
[key: string]: unknown;
|
|
671
|
+
};
|
|
672
|
+
createdAt: string;
|
|
673
|
+
updatedAt?: string | undefined;
|
|
674
|
+
}>;
|
|
675
|
+
/**
|
|
676
|
+
* `GET /client` — operationId: `client/list`
|
|
677
|
+
*
|
|
678
|
+
* List Clients
|
|
679
|
+
*/
|
|
680
|
+
clientList(params?: Omit<OpQuery<"client/list">, "cursor" | "next">): {
|
|
681
|
+
all: () => Promise<{
|
|
682
|
+
id: string;
|
|
683
|
+
name: string;
|
|
684
|
+
description: string;
|
|
685
|
+
client_id: string;
|
|
686
|
+
client_secret: string;
|
|
687
|
+
callbacks: string[];
|
|
688
|
+
logout_urls: string[];
|
|
689
|
+
refresh_token: {
|
|
690
|
+
expiration_mode: "expire" | "not-expire";
|
|
691
|
+
infinite_token_lifetime: boolean;
|
|
692
|
+
token_lifetime: number;
|
|
693
|
+
};
|
|
694
|
+
client_uri?: string | null | undefined;
|
|
695
|
+
logo_uri?: string | null | undefined;
|
|
696
|
+
tos_uri?: string | null | undefined;
|
|
697
|
+
policy_uri?: string | null | undefined;
|
|
698
|
+
contacts?: string[] | undefined;
|
|
699
|
+
grant_types?: string[] | undefined;
|
|
700
|
+
response_types?: string[] | undefined;
|
|
701
|
+
token_endpoint_auth_method?: string | undefined;
|
|
702
|
+
application_type?: string | undefined;
|
|
703
|
+
software_id?: string | null | undefined;
|
|
704
|
+
software_version?: string | null | undefined;
|
|
705
|
+
frontchannel_logout_uri?: string | null | undefined;
|
|
706
|
+
frontchannel_logout_session_required?: boolean | undefined;
|
|
707
|
+
account: string;
|
|
708
|
+
metadata: {
|
|
709
|
+
[key: string]: unknown;
|
|
710
|
+
};
|
|
711
|
+
createdAt: string;
|
|
712
|
+
updatedAt?: string | undefined;
|
|
713
|
+
}[]>;
|
|
714
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
715
|
+
id: string;
|
|
716
|
+
name: string;
|
|
717
|
+
description: string;
|
|
718
|
+
client_id: string;
|
|
719
|
+
client_secret: string;
|
|
720
|
+
callbacks: string[];
|
|
721
|
+
logout_urls: string[];
|
|
722
|
+
refresh_token: {
|
|
723
|
+
expiration_mode: "expire" | "not-expire";
|
|
724
|
+
infinite_token_lifetime: boolean;
|
|
725
|
+
token_lifetime: number;
|
|
726
|
+
};
|
|
727
|
+
client_uri?: string | null | undefined;
|
|
728
|
+
logo_uri?: string | null | undefined;
|
|
729
|
+
tos_uri?: string | null | undefined;
|
|
730
|
+
policy_uri?: string | null | undefined;
|
|
731
|
+
contacts?: string[] | undefined;
|
|
732
|
+
grant_types?: string[] | undefined;
|
|
733
|
+
response_types?: string[] | undefined;
|
|
734
|
+
token_endpoint_auth_method?: string | undefined;
|
|
735
|
+
application_type?: string | undefined;
|
|
736
|
+
software_id?: string | null | undefined;
|
|
737
|
+
software_version?: string | null | undefined;
|
|
738
|
+
frontchannel_logout_uri?: string | null | undefined;
|
|
739
|
+
frontchannel_logout_session_required?: boolean | undefined;
|
|
740
|
+
account: string;
|
|
741
|
+
metadata: {
|
|
742
|
+
[key: string]: unknown;
|
|
743
|
+
};
|
|
744
|
+
createdAt: string;
|
|
745
|
+
updatedAt?: string | undefined;
|
|
746
|
+
}>>;
|
|
747
|
+
pass: (params?: {
|
|
748
|
+
cursor?: string | undefined;
|
|
749
|
+
pageSize?: string | undefined;
|
|
750
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
751
|
+
id: string;
|
|
752
|
+
name: string;
|
|
753
|
+
description: string;
|
|
754
|
+
client_id: string;
|
|
755
|
+
client_secret: string;
|
|
756
|
+
callbacks: string[];
|
|
757
|
+
logout_urls: string[];
|
|
758
|
+
refresh_token: {
|
|
759
|
+
expiration_mode: "expire" | "not-expire";
|
|
760
|
+
infinite_token_lifetime: boolean;
|
|
761
|
+
token_lifetime: number;
|
|
762
|
+
};
|
|
763
|
+
client_uri?: string | null | undefined;
|
|
764
|
+
logo_uri?: string | null | undefined;
|
|
765
|
+
tos_uri?: string | null | undefined;
|
|
766
|
+
policy_uri?: string | null | undefined;
|
|
767
|
+
contacts?: string[] | undefined;
|
|
768
|
+
grant_types?: string[] | undefined;
|
|
769
|
+
response_types?: string[] | undefined;
|
|
770
|
+
token_endpoint_auth_method?: string | undefined;
|
|
771
|
+
application_type?: string | undefined;
|
|
772
|
+
software_id?: string | null | undefined;
|
|
773
|
+
software_version?: string | null | undefined;
|
|
774
|
+
frontchannel_logout_uri?: string | null | undefined;
|
|
775
|
+
frontchannel_logout_session_required?: boolean | undefined;
|
|
776
|
+
account: string;
|
|
777
|
+
metadata: {
|
|
778
|
+
[key: string]: unknown;
|
|
779
|
+
};
|
|
780
|
+
createdAt: string;
|
|
781
|
+
updatedAt?: string | undefined;
|
|
782
|
+
}>>;
|
|
783
|
+
};
|
|
784
|
+
/**
|
|
785
|
+
* `POST /client/{client_id}/rotate-secret` — operationId: `client/rotateSecret`
|
|
786
|
+
*
|
|
787
|
+
* Rotate a Client's secret
|
|
788
|
+
*/
|
|
789
|
+
clientRotateSecret(client_id: string): Promise<{
|
|
790
|
+
id: string;
|
|
791
|
+
name: string;
|
|
792
|
+
description: string;
|
|
793
|
+
client_id: string;
|
|
794
|
+
client_secret: string;
|
|
795
|
+
callbacks: string[];
|
|
796
|
+
logout_urls: string[];
|
|
797
|
+
refresh_token: {
|
|
798
|
+
expiration_mode: "expire" | "not-expire";
|
|
799
|
+
infinite_token_lifetime: boolean;
|
|
800
|
+
token_lifetime: number;
|
|
801
|
+
};
|
|
802
|
+
client_uri?: string | null | undefined;
|
|
803
|
+
logo_uri?: string | null | undefined;
|
|
804
|
+
tos_uri?: string | null | undefined;
|
|
805
|
+
policy_uri?: string | null | undefined;
|
|
806
|
+
contacts?: string[] | undefined;
|
|
807
|
+
grant_types?: string[] | undefined;
|
|
808
|
+
response_types?: string[] | undefined;
|
|
809
|
+
token_endpoint_auth_method?: string | undefined;
|
|
810
|
+
application_type?: string | undefined;
|
|
811
|
+
software_id?: string | null | undefined;
|
|
812
|
+
software_version?: string | null | undefined;
|
|
813
|
+
frontchannel_logout_uri?: string | null | undefined;
|
|
814
|
+
frontchannel_logout_session_required?: boolean | undefined;
|
|
815
|
+
account: string;
|
|
816
|
+
metadata: {
|
|
817
|
+
[key: string]: unknown;
|
|
818
|
+
};
|
|
819
|
+
createdAt: string;
|
|
820
|
+
updatedAt?: string | undefined;
|
|
821
|
+
}>;
|
|
822
|
+
/**
|
|
823
|
+
* `POST /client/{client_id}` — operationId: `client/update`
|
|
824
|
+
*
|
|
825
|
+
* Update Client
|
|
826
|
+
*/
|
|
827
|
+
clientUpdate(client_id: string, data: OpBody<"client/update">): Promise<{
|
|
828
|
+
id: string;
|
|
829
|
+
name: string;
|
|
830
|
+
description: string;
|
|
831
|
+
client_id: string;
|
|
832
|
+
client_secret: string;
|
|
833
|
+
callbacks: string[];
|
|
834
|
+
logout_urls: string[];
|
|
835
|
+
refresh_token: {
|
|
836
|
+
expiration_mode: "expire" | "not-expire";
|
|
837
|
+
infinite_token_lifetime: boolean;
|
|
838
|
+
token_lifetime: number;
|
|
839
|
+
};
|
|
840
|
+
client_uri?: string | null | undefined;
|
|
841
|
+
logo_uri?: string | null | undefined;
|
|
842
|
+
tos_uri?: string | null | undefined;
|
|
843
|
+
policy_uri?: string | null | undefined;
|
|
844
|
+
contacts?: string[] | undefined;
|
|
845
|
+
grant_types?: string[] | undefined;
|
|
846
|
+
response_types?: string[] | undefined;
|
|
847
|
+
token_endpoint_auth_method?: string | undefined;
|
|
848
|
+
application_type?: string | undefined;
|
|
849
|
+
software_id?: string | null | undefined;
|
|
850
|
+
software_version?: string | null | undefined;
|
|
851
|
+
frontchannel_logout_uri?: string | null | undefined;
|
|
852
|
+
frontchannel_logout_session_required?: boolean | undefined;
|
|
853
|
+
account: string;
|
|
854
|
+
metadata: {
|
|
855
|
+
[key: string]: unknown;
|
|
856
|
+
};
|
|
857
|
+
createdAt: string;
|
|
858
|
+
updatedAt?: string | undefined;
|
|
859
|
+
}>;
|
|
860
|
+
/**
|
|
861
|
+
* `POST /connection` — operationId: `connection/create`
|
|
862
|
+
*
|
|
863
|
+
* Create Connection
|
|
864
|
+
*/
|
|
865
|
+
connectionCreate(data: OpBody<"connection/create">): Promise<{
|
|
866
|
+
id: string;
|
|
867
|
+
connection_name: string;
|
|
868
|
+
connection_type: "custom" | "database" | "github" | "figma" | "google_oauth2" | "oidc" | "passwordless_email";
|
|
869
|
+
authorize_url: string;
|
|
870
|
+
token_url: string;
|
|
871
|
+
userinfo_url: string;
|
|
872
|
+
client_id: string;
|
|
873
|
+
client_secret: string;
|
|
874
|
+
issuer: string;
|
|
875
|
+
jwks_url: string;
|
|
876
|
+
response_type: string;
|
|
877
|
+
enabled: boolean;
|
|
878
|
+
enabled_clients: string[] | null;
|
|
879
|
+
scope: string[];
|
|
880
|
+
authorize_params: {
|
|
881
|
+
[key: string]: string;
|
|
882
|
+
};
|
|
883
|
+
claims_mapping?: {
|
|
884
|
+
[key: string]: string;
|
|
885
|
+
} | undefined;
|
|
886
|
+
readonly is_using_default_credentials: boolean;
|
|
887
|
+
email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
|
|
888
|
+
password_policy?: {
|
|
889
|
+
level: "none" | "low" | "fair" | "good" | "excellent";
|
|
890
|
+
min_length?: number | undefined;
|
|
891
|
+
require_lowercase?: boolean | undefined;
|
|
892
|
+
require_uppercase?: boolean | undefined;
|
|
893
|
+
require_number?: boolean | undefined;
|
|
894
|
+
require_special?: boolean | undefined;
|
|
895
|
+
} | undefined;
|
|
896
|
+
account: string;
|
|
897
|
+
metadata: {
|
|
898
|
+
[key: string]: unknown;
|
|
899
|
+
};
|
|
900
|
+
createdAt: string;
|
|
901
|
+
updatedAt?: string | undefined;
|
|
902
|
+
}>;
|
|
903
|
+
/**
|
|
904
|
+
* `DELETE /connection/{connection_id}` — operationId: `connection/delete`
|
|
905
|
+
*
|
|
906
|
+
* Delete Connection
|
|
907
|
+
*/
|
|
908
|
+
connectionDelete(connection_id: string): Promise<{
|
|
909
|
+
id: string;
|
|
910
|
+
connection_name: string;
|
|
911
|
+
connection_type: "custom" | "database" | "github" | "figma" | "google_oauth2" | "oidc" | "passwordless_email";
|
|
912
|
+
authorize_url: string;
|
|
913
|
+
token_url: string;
|
|
914
|
+
userinfo_url: string;
|
|
915
|
+
client_id: string;
|
|
916
|
+
client_secret: string;
|
|
917
|
+
issuer: string;
|
|
918
|
+
jwks_url: string;
|
|
919
|
+
response_type: string;
|
|
920
|
+
enabled: boolean;
|
|
921
|
+
enabled_clients: string[] | null;
|
|
922
|
+
scope: string[];
|
|
923
|
+
authorize_params: {
|
|
924
|
+
[key: string]: string;
|
|
925
|
+
};
|
|
926
|
+
claims_mapping?: {
|
|
927
|
+
[key: string]: string;
|
|
928
|
+
} | undefined;
|
|
929
|
+
readonly is_using_default_credentials: boolean;
|
|
930
|
+
email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
|
|
931
|
+
password_policy?: {
|
|
932
|
+
level: "none" | "low" | "fair" | "good" | "excellent";
|
|
933
|
+
min_length?: number | undefined;
|
|
934
|
+
require_lowercase?: boolean | undefined;
|
|
935
|
+
require_uppercase?: boolean | undefined;
|
|
936
|
+
require_number?: boolean | undefined;
|
|
937
|
+
require_special?: boolean | undefined;
|
|
938
|
+
} | undefined;
|
|
939
|
+
account: string;
|
|
940
|
+
metadata: {
|
|
941
|
+
[key: string]: unknown;
|
|
942
|
+
};
|
|
943
|
+
createdAt: string;
|
|
944
|
+
updatedAt?: string | undefined;
|
|
945
|
+
}>;
|
|
946
|
+
/**
|
|
947
|
+
* `GET /connection/{connection_id}` — operationId: `connection/get`
|
|
948
|
+
*
|
|
949
|
+
* Get Connection
|
|
950
|
+
*/
|
|
951
|
+
connectionGet(connection_id: string): Promise<{
|
|
952
|
+
id: string;
|
|
953
|
+
connection_name: string;
|
|
954
|
+
connection_type: "custom" | "database" | "github" | "figma" | "google_oauth2" | "oidc" | "passwordless_email";
|
|
955
|
+
authorize_url: string;
|
|
956
|
+
token_url: string;
|
|
957
|
+
userinfo_url: string;
|
|
958
|
+
client_id: string;
|
|
959
|
+
client_secret: string;
|
|
960
|
+
issuer: string;
|
|
961
|
+
jwks_url: string;
|
|
962
|
+
response_type: string;
|
|
963
|
+
enabled: boolean;
|
|
964
|
+
enabled_clients: string[] | null;
|
|
965
|
+
scope: string[];
|
|
966
|
+
authorize_params: {
|
|
967
|
+
[key: string]: string;
|
|
968
|
+
};
|
|
969
|
+
claims_mapping?: {
|
|
970
|
+
[key: string]: string;
|
|
971
|
+
} | undefined;
|
|
972
|
+
readonly is_using_default_credentials: boolean;
|
|
973
|
+
email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
|
|
974
|
+
password_policy?: {
|
|
975
|
+
level: "none" | "low" | "fair" | "good" | "excellent";
|
|
976
|
+
min_length?: number | undefined;
|
|
977
|
+
require_lowercase?: boolean | undefined;
|
|
978
|
+
require_uppercase?: boolean | undefined;
|
|
979
|
+
require_number?: boolean | undefined;
|
|
980
|
+
require_special?: boolean | undefined;
|
|
981
|
+
} | undefined;
|
|
982
|
+
account: string;
|
|
983
|
+
metadata: {
|
|
984
|
+
[key: string]: unknown;
|
|
985
|
+
};
|
|
986
|
+
createdAt: string;
|
|
987
|
+
updatedAt?: string | undefined;
|
|
988
|
+
}>;
|
|
989
|
+
/**
|
|
990
|
+
* `GET /connection` — operationId: `connection/list`
|
|
991
|
+
*
|
|
992
|
+
* List Connections
|
|
993
|
+
*/
|
|
994
|
+
connectionList(params?: Omit<OpQuery<"connection/list">, "cursor" | "next">): {
|
|
995
|
+
all: () => Promise<{
|
|
996
|
+
id: string;
|
|
997
|
+
connection_name: string;
|
|
998
|
+
connection_type: "custom" | "database" | "github" | "figma" | "google_oauth2" | "oidc" | "passwordless_email";
|
|
999
|
+
authorize_url: string;
|
|
1000
|
+
token_url: string;
|
|
1001
|
+
userinfo_url: string;
|
|
1002
|
+
client_id: string;
|
|
1003
|
+
client_secret: string;
|
|
1004
|
+
issuer: string;
|
|
1005
|
+
jwks_url: string;
|
|
1006
|
+
response_type: string;
|
|
1007
|
+
enabled: boolean;
|
|
1008
|
+
enabled_clients: string[] | null;
|
|
1009
|
+
scope: string[];
|
|
1010
|
+
authorize_params: {
|
|
1011
|
+
[key: string]: string;
|
|
1012
|
+
};
|
|
1013
|
+
claims_mapping?: {
|
|
1014
|
+
[key: string]: string;
|
|
1015
|
+
} | undefined;
|
|
1016
|
+
readonly is_using_default_credentials: boolean;
|
|
1017
|
+
email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
|
|
1018
|
+
password_policy?: {
|
|
1019
|
+
level: "none" | "low" | "fair" | "good" | "excellent";
|
|
1020
|
+
min_length?: number | undefined;
|
|
1021
|
+
require_lowercase?: boolean | undefined;
|
|
1022
|
+
require_uppercase?: boolean | undefined;
|
|
1023
|
+
require_number?: boolean | undefined;
|
|
1024
|
+
require_special?: boolean | undefined;
|
|
1025
|
+
} | undefined;
|
|
1026
|
+
account: string;
|
|
1027
|
+
metadata: {
|
|
1028
|
+
[key: string]: unknown;
|
|
1029
|
+
};
|
|
1030
|
+
createdAt: string;
|
|
1031
|
+
updatedAt?: string | undefined;
|
|
1032
|
+
}[]>;
|
|
1033
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
1034
|
+
id: string;
|
|
1035
|
+
connection_name: string;
|
|
1036
|
+
connection_type: "custom" | "database" | "github" | "figma" | "google_oauth2" | "oidc" | "passwordless_email";
|
|
1037
|
+
authorize_url: string;
|
|
1038
|
+
token_url: string;
|
|
1039
|
+
userinfo_url: string;
|
|
1040
|
+
client_id: string;
|
|
1041
|
+
client_secret: string;
|
|
1042
|
+
issuer: string;
|
|
1043
|
+
jwks_url: string;
|
|
1044
|
+
response_type: string;
|
|
1045
|
+
enabled: boolean;
|
|
1046
|
+
enabled_clients: string[] | null;
|
|
1047
|
+
scope: string[];
|
|
1048
|
+
authorize_params: {
|
|
1049
|
+
[key: string]: string;
|
|
1050
|
+
};
|
|
1051
|
+
claims_mapping?: {
|
|
1052
|
+
[key: string]: string;
|
|
1053
|
+
} | undefined;
|
|
1054
|
+
readonly is_using_default_credentials: boolean;
|
|
1055
|
+
email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
|
|
1056
|
+
password_policy?: {
|
|
1057
|
+
level: "none" | "low" | "fair" | "good" | "excellent";
|
|
1058
|
+
min_length?: number | undefined;
|
|
1059
|
+
require_lowercase?: boolean | undefined;
|
|
1060
|
+
require_uppercase?: boolean | undefined;
|
|
1061
|
+
require_number?: boolean | undefined;
|
|
1062
|
+
require_special?: boolean | undefined;
|
|
1063
|
+
} | undefined;
|
|
1064
|
+
account: string;
|
|
1065
|
+
metadata: {
|
|
1066
|
+
[key: string]: unknown;
|
|
1067
|
+
};
|
|
1068
|
+
createdAt: string;
|
|
1069
|
+
updatedAt?: string | undefined;
|
|
1070
|
+
}>>;
|
|
1071
|
+
pass: (params?: {
|
|
1072
|
+
cursor?: string | undefined;
|
|
1073
|
+
pageSize?: string | undefined;
|
|
1074
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
1075
|
+
id: string;
|
|
1076
|
+
connection_name: string;
|
|
1077
|
+
connection_type: "custom" | "database" | "github" | "figma" | "google_oauth2" | "oidc" | "passwordless_email";
|
|
1078
|
+
authorize_url: string;
|
|
1079
|
+
token_url: string;
|
|
1080
|
+
userinfo_url: string;
|
|
1081
|
+
client_id: string;
|
|
1082
|
+
client_secret: string;
|
|
1083
|
+
issuer: string;
|
|
1084
|
+
jwks_url: string;
|
|
1085
|
+
response_type: string;
|
|
1086
|
+
enabled: boolean;
|
|
1087
|
+
enabled_clients: string[] | null;
|
|
1088
|
+
scope: string[];
|
|
1089
|
+
authorize_params: {
|
|
1090
|
+
[key: string]: string;
|
|
1091
|
+
};
|
|
1092
|
+
claims_mapping?: {
|
|
1093
|
+
[key: string]: string;
|
|
1094
|
+
} | undefined;
|
|
1095
|
+
readonly is_using_default_credentials: boolean;
|
|
1096
|
+
email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
|
|
1097
|
+
password_policy?: {
|
|
1098
|
+
level: "none" | "low" | "fair" | "good" | "excellent";
|
|
1099
|
+
min_length?: number | undefined;
|
|
1100
|
+
require_lowercase?: boolean | undefined;
|
|
1101
|
+
require_uppercase?: boolean | undefined;
|
|
1102
|
+
require_number?: boolean | undefined;
|
|
1103
|
+
require_special?: boolean | undefined;
|
|
1104
|
+
} | undefined;
|
|
1105
|
+
account: string;
|
|
1106
|
+
metadata: {
|
|
1107
|
+
[key: string]: unknown;
|
|
1108
|
+
};
|
|
1109
|
+
createdAt: string;
|
|
1110
|
+
updatedAt?: string | undefined;
|
|
1111
|
+
}>>;
|
|
1112
|
+
};
|
|
1113
|
+
/**
|
|
1114
|
+
* `POST /connection/{connection_id}` — operationId: `connection/update`
|
|
1115
|
+
*
|
|
1116
|
+
* Update Connection
|
|
1117
|
+
*/
|
|
1118
|
+
connectionUpdate(connection_id: string, data: OpBody<"connection/update">): Promise<{
|
|
1119
|
+
id: string;
|
|
1120
|
+
connection_name: string;
|
|
1121
|
+
connection_type: "custom" | "database" | "github" | "figma" | "google_oauth2" | "oidc" | "passwordless_email";
|
|
1122
|
+
authorize_url: string;
|
|
1123
|
+
token_url: string;
|
|
1124
|
+
userinfo_url: string;
|
|
1125
|
+
client_id: string;
|
|
1126
|
+
client_secret: string;
|
|
1127
|
+
issuer: string;
|
|
1128
|
+
jwks_url: string;
|
|
1129
|
+
response_type: string;
|
|
1130
|
+
enabled: boolean;
|
|
1131
|
+
enabled_clients: string[] | null;
|
|
1132
|
+
scope: string[];
|
|
1133
|
+
authorize_params: {
|
|
1134
|
+
[key: string]: string;
|
|
1135
|
+
};
|
|
1136
|
+
claims_mapping?: {
|
|
1137
|
+
[key: string]: string;
|
|
1138
|
+
} | undefined;
|
|
1139
|
+
readonly is_using_default_credentials: boolean;
|
|
1140
|
+
email_oauth_sync_policy?: "preserve_manual" | "always_sync" | undefined;
|
|
1141
|
+
password_policy?: {
|
|
1142
|
+
level: "none" | "low" | "fair" | "good" | "excellent";
|
|
1143
|
+
min_length?: number | undefined;
|
|
1144
|
+
require_lowercase?: boolean | undefined;
|
|
1145
|
+
require_uppercase?: boolean | undefined;
|
|
1146
|
+
require_number?: boolean | undefined;
|
|
1147
|
+
require_special?: boolean | undefined;
|
|
1148
|
+
} | undefined;
|
|
1149
|
+
account: string;
|
|
1150
|
+
metadata: {
|
|
1151
|
+
[key: string]: unknown;
|
|
1152
|
+
};
|
|
1153
|
+
createdAt: string;
|
|
1154
|
+
updatedAt?: string | undefined;
|
|
1155
|
+
}>;
|
|
1156
|
+
/**
|
|
1157
|
+
* `POST /credentials` — operationId: `credentials/create`
|
|
1158
|
+
*
|
|
1159
|
+
* Create Credentials
|
|
1160
|
+
*/
|
|
1161
|
+
credentialsCreate(data: OpBody<"credentials/create">): Promise<{
|
|
1162
|
+
id: string;
|
|
1163
|
+
connection: unknown;
|
|
1164
|
+
user: unknown;
|
|
1165
|
+
email?: string | undefined;
|
|
1166
|
+
username?: string | undefined;
|
|
1167
|
+
account: string;
|
|
1168
|
+
metadata: {
|
|
1169
|
+
[key: string]: unknown;
|
|
1170
|
+
};
|
|
1171
|
+
createdAt: string;
|
|
1172
|
+
updatedAt?: string | undefined;
|
|
1173
|
+
}>;
|
|
1174
|
+
/**
|
|
1175
|
+
* `DELETE /credentials/{credentials_id}` — operationId: `credentials/delete`
|
|
1176
|
+
*
|
|
1177
|
+
* Delete Credentials
|
|
1178
|
+
*/
|
|
1179
|
+
credentialsDelete(credentials_id: string): Promise<{
|
|
1180
|
+
id: string;
|
|
1181
|
+
connection: unknown;
|
|
1182
|
+
user: unknown;
|
|
1183
|
+
email?: string | undefined;
|
|
1184
|
+
username?: string | undefined;
|
|
1185
|
+
account: string;
|
|
1186
|
+
metadata: {
|
|
1187
|
+
[key: string]: unknown;
|
|
1188
|
+
};
|
|
1189
|
+
createdAt: string;
|
|
1190
|
+
updatedAt?: string | undefined;
|
|
1191
|
+
}>;
|
|
1192
|
+
/**
|
|
1193
|
+
* `GET /credentials/{credentials_id}` — operationId: `credentials/get`
|
|
1194
|
+
*
|
|
1195
|
+
* Get Credentials
|
|
1196
|
+
*/
|
|
1197
|
+
credentialsGet(credentials_id: string, params?: OpQuery<"credentials/get">): Promise<{
|
|
1198
|
+
id: string;
|
|
1199
|
+
connection: unknown;
|
|
1200
|
+
user: unknown;
|
|
1201
|
+
email?: string | undefined;
|
|
1202
|
+
username?: string | undefined;
|
|
1203
|
+
account: string;
|
|
1204
|
+
metadata: {
|
|
1205
|
+
[key: string]: unknown;
|
|
1206
|
+
};
|
|
1207
|
+
createdAt: string;
|
|
1208
|
+
updatedAt?: string | undefined;
|
|
1209
|
+
}>;
|
|
1210
|
+
/**
|
|
1211
|
+
* `GET /credentials` — operationId: `credentials/list`
|
|
1212
|
+
*
|
|
1213
|
+
* List Credentialss
|
|
1214
|
+
*/
|
|
1215
|
+
credentialsList(params?: Omit<OpQuery<"credentials/list">, "cursor" | "next">): {
|
|
1216
|
+
all: () => Promise<{
|
|
1217
|
+
id: string;
|
|
1218
|
+
connection: unknown;
|
|
1219
|
+
user: unknown;
|
|
1220
|
+
email?: string | undefined;
|
|
1221
|
+
username?: string | undefined;
|
|
1222
|
+
account: string;
|
|
1223
|
+
metadata: {
|
|
1224
|
+
[key: string]: unknown;
|
|
1225
|
+
};
|
|
1226
|
+
createdAt: string;
|
|
1227
|
+
updatedAt?: string | undefined;
|
|
1228
|
+
}[]>;
|
|
1229
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
1230
|
+
id: string;
|
|
1231
|
+
connection: unknown;
|
|
1232
|
+
user: unknown;
|
|
1233
|
+
email?: string | undefined;
|
|
1234
|
+
username?: string | undefined;
|
|
1235
|
+
account: string;
|
|
1236
|
+
metadata: {
|
|
1237
|
+
[key: string]: unknown;
|
|
1238
|
+
};
|
|
1239
|
+
createdAt: string;
|
|
1240
|
+
updatedAt?: string | undefined;
|
|
1241
|
+
}>>;
|
|
1242
|
+
pass: (params?: {
|
|
1243
|
+
cursor?: string | undefined;
|
|
1244
|
+
pageSize?: string | undefined;
|
|
1245
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
1246
|
+
id: string;
|
|
1247
|
+
connection: unknown;
|
|
1248
|
+
user: unknown;
|
|
1249
|
+
email?: string | undefined;
|
|
1250
|
+
username?: string | undefined;
|
|
1251
|
+
account: string;
|
|
1252
|
+
metadata: {
|
|
1253
|
+
[key: string]: unknown;
|
|
1254
|
+
};
|
|
1255
|
+
createdAt: string;
|
|
1256
|
+
updatedAt?: string | undefined;
|
|
1257
|
+
}>>;
|
|
1258
|
+
};
|
|
1259
|
+
/**
|
|
1260
|
+
* `POST /credentials/{credentials_id}/set-password` — operationId: `credentials/setPassword`
|
|
1261
|
+
*
|
|
1262
|
+
* Set a credential's password
|
|
1263
|
+
*/
|
|
1264
|
+
credentialsSetPassword(credentials_id: string, data: OpBody<"credentials/setPassword">): Promise<{
|
|
1265
|
+
id: string;
|
|
1266
|
+
connection: unknown;
|
|
1267
|
+
user: unknown;
|
|
1268
|
+
email?: string | undefined;
|
|
1269
|
+
username?: string | undefined;
|
|
1270
|
+
account: string;
|
|
1271
|
+
metadata: {
|
|
1272
|
+
[key: string]: unknown;
|
|
1273
|
+
};
|
|
1274
|
+
createdAt: string;
|
|
1275
|
+
updatedAt?: string | undefined;
|
|
1276
|
+
}>;
|
|
1277
|
+
/**
|
|
1278
|
+
* `POST /credentials/{credentials_id}` — operationId: `credentials/update`
|
|
1279
|
+
*
|
|
1280
|
+
* Update Credentials
|
|
1281
|
+
*/
|
|
1282
|
+
credentialsUpdate(credentials_id: string, data: OpBody<"credentials/update">): Promise<{
|
|
1283
|
+
id: string;
|
|
1284
|
+
connection: unknown;
|
|
1285
|
+
user: unknown;
|
|
1286
|
+
email?: string | undefined;
|
|
1287
|
+
username?: string | undefined;
|
|
1288
|
+
account: string;
|
|
1289
|
+
metadata: {
|
|
1290
|
+
[key: string]: unknown;
|
|
1291
|
+
};
|
|
1292
|
+
createdAt: string;
|
|
1293
|
+
updatedAt?: string | undefined;
|
|
1294
|
+
}>;
|
|
1295
|
+
/**
|
|
1296
|
+
* `POST /customdomain` — operationId: `customdomain/create`
|
|
1297
|
+
*
|
|
1298
|
+
* Create Customdomain
|
|
1299
|
+
*/
|
|
1300
|
+
customdomainCreate(data: OpBody<"customdomain/create">): Promise<{
|
|
1301
|
+
id: string;
|
|
1302
|
+
domain: string;
|
|
1303
|
+
token: string;
|
|
1304
|
+
status: "PENDING" | "VERIFYING" | "ACTIVE" | "FAILED" | "DEGRADED";
|
|
1305
|
+
attempts: number;
|
|
1306
|
+
nextCheck?: string | undefined;
|
|
1307
|
+
lastCheck?: string | undefined;
|
|
1308
|
+
errorLog?: string | undefined;
|
|
1309
|
+
verifiedAt?: string | undefined;
|
|
1310
|
+
account: string;
|
|
1311
|
+
metadata: {
|
|
1312
|
+
[key: string]: unknown;
|
|
1313
|
+
};
|
|
1314
|
+
createdAt: string;
|
|
1315
|
+
updatedAt?: string | undefined;
|
|
1316
|
+
}>;
|
|
1317
|
+
/**
|
|
1318
|
+
* `DELETE /customdomain/{customdomain_id}` — operationId: `customdomain/delete`
|
|
1319
|
+
*
|
|
1320
|
+
* Delete Customdomain
|
|
1321
|
+
*/
|
|
1322
|
+
customdomainDelete(customdomain_id: string): Promise<{
|
|
1323
|
+
id: string;
|
|
1324
|
+
domain: string;
|
|
1325
|
+
token: string;
|
|
1326
|
+
status: "PENDING" | "VERIFYING" | "ACTIVE" | "FAILED" | "DEGRADED";
|
|
1327
|
+
attempts: number;
|
|
1328
|
+
nextCheck?: string | undefined;
|
|
1329
|
+
lastCheck?: string | undefined;
|
|
1330
|
+
errorLog?: string | undefined;
|
|
1331
|
+
verifiedAt?: string | undefined;
|
|
1332
|
+
account: string;
|
|
1333
|
+
metadata: {
|
|
1334
|
+
[key: string]: unknown;
|
|
1335
|
+
};
|
|
1336
|
+
createdAt: string;
|
|
1337
|
+
updatedAt?: string | undefined;
|
|
1338
|
+
}>;
|
|
1339
|
+
/**
|
|
1340
|
+
* `GET /customdomain/{customdomain_id}` — operationId: `customdomain/get`
|
|
1341
|
+
*
|
|
1342
|
+
* Get Customdomain
|
|
1343
|
+
*/
|
|
1344
|
+
customdomainGet(customdomain_id: string): Promise<{
|
|
1345
|
+
id: string;
|
|
1346
|
+
domain: string;
|
|
1347
|
+
token: string;
|
|
1348
|
+
status: "PENDING" | "VERIFYING" | "ACTIVE" | "FAILED" | "DEGRADED";
|
|
1349
|
+
attempts: number;
|
|
1350
|
+
nextCheck?: string | undefined;
|
|
1351
|
+
lastCheck?: string | undefined;
|
|
1352
|
+
errorLog?: string | undefined;
|
|
1353
|
+
verifiedAt?: string | undefined;
|
|
1354
|
+
account: string;
|
|
1355
|
+
metadata: {
|
|
1356
|
+
[key: string]: unknown;
|
|
1357
|
+
};
|
|
1358
|
+
createdAt: string;
|
|
1359
|
+
updatedAt?: string | undefined;
|
|
1360
|
+
}>;
|
|
1361
|
+
/**
|
|
1362
|
+
* `GET /customdomain` — operationId: `customdomain/list`
|
|
1363
|
+
*
|
|
1364
|
+
* List Customdomains
|
|
1365
|
+
*/
|
|
1366
|
+
customdomainList(params?: Omit<OpQuery<"customdomain/list">, "cursor" | "next">): {
|
|
1367
|
+
all: () => Promise<{
|
|
1368
|
+
id: string;
|
|
1369
|
+
domain: string;
|
|
1370
|
+
token: string;
|
|
1371
|
+
status: "PENDING" | "VERIFYING" | "ACTIVE" | "FAILED" | "DEGRADED";
|
|
1372
|
+
attempts: number;
|
|
1373
|
+
nextCheck?: string | undefined;
|
|
1374
|
+
lastCheck?: string | undefined;
|
|
1375
|
+
errorLog?: string | undefined;
|
|
1376
|
+
verifiedAt?: string | undefined;
|
|
1377
|
+
account: string;
|
|
1378
|
+
metadata: {
|
|
1379
|
+
[key: string]: unknown;
|
|
1380
|
+
};
|
|
1381
|
+
createdAt: string;
|
|
1382
|
+
updatedAt?: string | undefined;
|
|
1383
|
+
}[]>;
|
|
1384
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
1385
|
+
id: string;
|
|
1386
|
+
domain: string;
|
|
1387
|
+
token: string;
|
|
1388
|
+
status: "PENDING" | "VERIFYING" | "ACTIVE" | "FAILED" | "DEGRADED";
|
|
1389
|
+
attempts: number;
|
|
1390
|
+
nextCheck?: string | undefined;
|
|
1391
|
+
lastCheck?: string | undefined;
|
|
1392
|
+
errorLog?: string | undefined;
|
|
1393
|
+
verifiedAt?: string | undefined;
|
|
1394
|
+
account: string;
|
|
1395
|
+
metadata: {
|
|
1396
|
+
[key: string]: unknown;
|
|
1397
|
+
};
|
|
1398
|
+
createdAt: string;
|
|
1399
|
+
updatedAt?: string | undefined;
|
|
1400
|
+
}>>;
|
|
1401
|
+
pass: (params?: {
|
|
1402
|
+
cursor?: string | undefined;
|
|
1403
|
+
pageSize?: string | undefined;
|
|
1404
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
1405
|
+
id: string;
|
|
1406
|
+
domain: string;
|
|
1407
|
+
token: string;
|
|
1408
|
+
status: "PENDING" | "VERIFYING" | "ACTIVE" | "FAILED" | "DEGRADED";
|
|
1409
|
+
attempts: number;
|
|
1410
|
+
nextCheck?: string | undefined;
|
|
1411
|
+
lastCheck?: string | undefined;
|
|
1412
|
+
errorLog?: string | undefined;
|
|
1413
|
+
verifiedAt?: string | undefined;
|
|
1414
|
+
account: string;
|
|
1415
|
+
metadata: {
|
|
1416
|
+
[key: string]: unknown;
|
|
1417
|
+
};
|
|
1418
|
+
createdAt: string;
|
|
1419
|
+
updatedAt?: string | undefined;
|
|
1420
|
+
}>>;
|
|
1421
|
+
};
|
|
1422
|
+
/**
|
|
1423
|
+
* `POST /customdomain/{customdomain_id}/retry` — operationId: `customdomain/retry`
|
|
1424
|
+
*
|
|
1425
|
+
* Retry manual domain verification
|
|
1426
|
+
*/
|
|
1427
|
+
customdomainRetry(customdomain_id: string): Promise<void>;
|
|
1428
|
+
/**
|
|
1429
|
+
* `POST /identity` — operationId: `identity/create`
|
|
1430
|
+
*
|
|
1431
|
+
* Create Identity
|
|
1432
|
+
*/
|
|
1433
|
+
identityCreate(data: OpBody<"identity/create">): Promise<{
|
|
1434
|
+
id: string;
|
|
1435
|
+
connection: unknown;
|
|
1436
|
+
user: unknown;
|
|
1437
|
+
identity_id: string;
|
|
1438
|
+
access_token?: string | undefined;
|
|
1439
|
+
access_token_secret?: string | undefined;
|
|
1440
|
+
refresh_token?: string | undefined;
|
|
1441
|
+
access_token_expires_at?: string | undefined;
|
|
1442
|
+
profile_data: unknown;
|
|
1443
|
+
account: string;
|
|
1444
|
+
metadata: {
|
|
1445
|
+
[key: string]: unknown;
|
|
1446
|
+
};
|
|
1447
|
+
createdAt: string;
|
|
1448
|
+
updatedAt?: string | undefined;
|
|
1449
|
+
}>;
|
|
1450
|
+
/**
|
|
1451
|
+
* `DELETE /identity/{identity_id}` — operationId: `identity/delete`
|
|
1452
|
+
*
|
|
1453
|
+
* Delete Identity
|
|
1454
|
+
*/
|
|
1455
|
+
identityDelete(identity_id: string): Promise<{
|
|
1456
|
+
id: string;
|
|
1457
|
+
connection: unknown;
|
|
1458
|
+
user: unknown;
|
|
1459
|
+
identity_id: string;
|
|
1460
|
+
access_token?: string | undefined;
|
|
1461
|
+
access_token_secret?: string | undefined;
|
|
1462
|
+
refresh_token?: string | undefined;
|
|
1463
|
+
access_token_expires_at?: string | undefined;
|
|
1464
|
+
profile_data: unknown;
|
|
1465
|
+
account: string;
|
|
1466
|
+
metadata: {
|
|
1467
|
+
[key: string]: unknown;
|
|
1468
|
+
};
|
|
1469
|
+
createdAt: string;
|
|
1470
|
+
updatedAt?: string | undefined;
|
|
1471
|
+
}>;
|
|
1472
|
+
/**
|
|
1473
|
+
* `GET /identity/{identity_id}` — operationId: `identity/get`
|
|
1474
|
+
*
|
|
1475
|
+
* Get Identity
|
|
1476
|
+
*/
|
|
1477
|
+
identityGet(identity_id: string, params?: OpQuery<"identity/get">): Promise<{
|
|
1478
|
+
id: string;
|
|
1479
|
+
connection: unknown;
|
|
1480
|
+
user: unknown;
|
|
1481
|
+
identity_id: string;
|
|
1482
|
+
access_token?: string | undefined;
|
|
1483
|
+
access_token_secret?: string | undefined;
|
|
1484
|
+
refresh_token?: string | undefined;
|
|
1485
|
+
access_token_expires_at?: string | undefined;
|
|
1486
|
+
profile_data: unknown;
|
|
1487
|
+
account: string;
|
|
1488
|
+
metadata: {
|
|
1489
|
+
[key: string]: unknown;
|
|
1490
|
+
};
|
|
1491
|
+
createdAt: string;
|
|
1492
|
+
updatedAt?: string | undefined;
|
|
1493
|
+
}>;
|
|
1494
|
+
/**
|
|
1495
|
+
* `GET /identity/{identity_id}/provider-token` — operationId: `identity/getProviderToken`
|
|
1496
|
+
*
|
|
1497
|
+
* Get a guaranteed-valid provider access_token
|
|
1498
|
+
*/
|
|
1499
|
+
identityGetProviderToken(identity_id: string, params?: OpQuery<"identity/getProviderToken">): Promise<{
|
|
1500
|
+
access_token: string;
|
|
1501
|
+
access_token_expires_at?: string | undefined;
|
|
1502
|
+
refreshed: boolean;
|
|
1503
|
+
}>;
|
|
1504
|
+
/**
|
|
1505
|
+
* `GET /identity` — operationId: `identity/list`
|
|
1506
|
+
*
|
|
1507
|
+
* List Identitys
|
|
1508
|
+
*/
|
|
1509
|
+
identityList(params?: Omit<OpQuery<"identity/list">, "cursor" | "next">): {
|
|
1510
|
+
all: () => Promise<{
|
|
1511
|
+
id: string;
|
|
1512
|
+
connection: unknown;
|
|
1513
|
+
user: unknown;
|
|
1514
|
+
identity_id: string;
|
|
1515
|
+
access_token?: string | undefined;
|
|
1516
|
+
access_token_secret?: string | undefined;
|
|
1517
|
+
refresh_token?: string | undefined;
|
|
1518
|
+
access_token_expires_at?: string | undefined;
|
|
1519
|
+
profile_data: unknown;
|
|
1520
|
+
account: string;
|
|
1521
|
+
metadata: {
|
|
1522
|
+
[key: string]: unknown;
|
|
1523
|
+
};
|
|
1524
|
+
createdAt: string;
|
|
1525
|
+
updatedAt?: string | undefined;
|
|
1526
|
+
}[]>;
|
|
1527
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
1528
|
+
id: string;
|
|
1529
|
+
connection: unknown;
|
|
1530
|
+
user: unknown;
|
|
1531
|
+
identity_id: string;
|
|
1532
|
+
access_token?: string | undefined;
|
|
1533
|
+
access_token_secret?: string | undefined;
|
|
1534
|
+
refresh_token?: string | undefined;
|
|
1535
|
+
access_token_expires_at?: string | undefined;
|
|
1536
|
+
profile_data: unknown;
|
|
1537
|
+
account: string;
|
|
1538
|
+
metadata: {
|
|
1539
|
+
[key: string]: unknown;
|
|
1540
|
+
};
|
|
1541
|
+
createdAt: string;
|
|
1542
|
+
updatedAt?: string | undefined;
|
|
1543
|
+
}>>;
|
|
1544
|
+
pass: (params?: {
|
|
1545
|
+
cursor?: string | undefined;
|
|
1546
|
+
pageSize?: string | undefined;
|
|
1547
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
1548
|
+
id: string;
|
|
1549
|
+
connection: unknown;
|
|
1550
|
+
user: unknown;
|
|
1551
|
+
identity_id: string;
|
|
1552
|
+
access_token?: string | undefined;
|
|
1553
|
+
access_token_secret?: string | undefined;
|
|
1554
|
+
refresh_token?: string | undefined;
|
|
1555
|
+
access_token_expires_at?: string | undefined;
|
|
1556
|
+
profile_data: unknown;
|
|
1557
|
+
account: string;
|
|
1558
|
+
metadata: {
|
|
1559
|
+
[key: string]: unknown;
|
|
1560
|
+
};
|
|
1561
|
+
createdAt: string;
|
|
1562
|
+
updatedAt?: string | undefined;
|
|
1563
|
+
}>>;
|
|
1564
|
+
};
|
|
1565
|
+
/**
|
|
1566
|
+
* `GET /log/{log_id}` — operationId: `log/get`
|
|
1567
|
+
*
|
|
1568
|
+
* Get Log
|
|
1569
|
+
*/
|
|
1570
|
+
logGet(log_id: string, params?: OpQuery<"log/get">): Promise<{
|
|
1571
|
+
id: string;
|
|
1572
|
+
type: string;
|
|
1573
|
+
status: "failed" | "success" | "skipped" | "info";
|
|
1574
|
+
message?: string | undefined;
|
|
1575
|
+
data?: unknown;
|
|
1576
|
+
user?: unknown;
|
|
1577
|
+
client?: unknown;
|
|
1578
|
+
connection?: unknown;
|
|
1579
|
+
team?: unknown;
|
|
1580
|
+
identity?: unknown;
|
|
1581
|
+
ticket?: string | undefined;
|
|
1582
|
+
expires_at?: string | undefined;
|
|
1583
|
+
account: string;
|
|
1584
|
+
metadata: {
|
|
1585
|
+
[key: string]: unknown;
|
|
1586
|
+
};
|
|
1587
|
+
createdAt: string;
|
|
1588
|
+
updatedAt?: string | undefined;
|
|
1589
|
+
}>;
|
|
1590
|
+
/**
|
|
1591
|
+
* `GET /log` — operationId: `log/list`
|
|
1592
|
+
*
|
|
1593
|
+
* List Logs
|
|
1594
|
+
*/
|
|
1595
|
+
logList(params?: Omit<OpQuery<"log/list">, "cursor" | "next">): {
|
|
1596
|
+
all: () => Promise<{
|
|
1597
|
+
id: string;
|
|
1598
|
+
type: string;
|
|
1599
|
+
status: "failed" | "success" | "skipped" | "info";
|
|
1600
|
+
message?: string | undefined;
|
|
1601
|
+
data?: unknown;
|
|
1602
|
+
user?: unknown;
|
|
1603
|
+
client?: unknown;
|
|
1604
|
+
connection?: unknown;
|
|
1605
|
+
team?: unknown;
|
|
1606
|
+
identity?: unknown;
|
|
1607
|
+
ticket?: string | undefined;
|
|
1608
|
+
expires_at?: string | undefined;
|
|
1609
|
+
account: string;
|
|
1610
|
+
metadata: {
|
|
1611
|
+
[key: string]: unknown;
|
|
1612
|
+
};
|
|
1613
|
+
createdAt: string;
|
|
1614
|
+
updatedAt?: string | undefined;
|
|
1615
|
+
}[]>;
|
|
1616
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
1617
|
+
id: string;
|
|
1618
|
+
type: string;
|
|
1619
|
+
status: "failed" | "success" | "skipped" | "info";
|
|
1620
|
+
message?: string | undefined;
|
|
1621
|
+
data?: unknown;
|
|
1622
|
+
user?: unknown;
|
|
1623
|
+
client?: unknown;
|
|
1624
|
+
connection?: unknown;
|
|
1625
|
+
team?: unknown;
|
|
1626
|
+
identity?: unknown;
|
|
1627
|
+
ticket?: string | undefined;
|
|
1628
|
+
expires_at?: string | undefined;
|
|
1629
|
+
account: string;
|
|
1630
|
+
metadata: {
|
|
1631
|
+
[key: string]: unknown;
|
|
1632
|
+
};
|
|
1633
|
+
createdAt: string;
|
|
1634
|
+
updatedAt?: string | undefined;
|
|
1635
|
+
}>>;
|
|
1636
|
+
pass: (params?: {
|
|
1637
|
+
cursor?: string | undefined;
|
|
1638
|
+
pageSize?: string | undefined;
|
|
1639
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
1640
|
+
id: string;
|
|
1641
|
+
type: string;
|
|
1642
|
+
status: "failed" | "success" | "skipped" | "info";
|
|
1643
|
+
message?: string | undefined;
|
|
1644
|
+
data?: unknown;
|
|
1645
|
+
user?: unknown;
|
|
1646
|
+
client?: unknown;
|
|
1647
|
+
connection?: unknown;
|
|
1648
|
+
team?: unknown;
|
|
1649
|
+
identity?: unknown;
|
|
1650
|
+
ticket?: string | undefined;
|
|
1651
|
+
expires_at?: string | undefined;
|
|
1652
|
+
account: string;
|
|
1653
|
+
metadata: {
|
|
1654
|
+
[key: string]: unknown;
|
|
1655
|
+
};
|
|
1656
|
+
createdAt: string;
|
|
1657
|
+
updatedAt?: string | undefined;
|
|
1658
|
+
}>>;
|
|
1659
|
+
};
|
|
1660
|
+
/**
|
|
1661
|
+
* `POST /notificationsubscription` — operationId: `notificationsubscription/create`
|
|
1662
|
+
*
|
|
1663
|
+
* Create Notificationsubscription
|
|
1664
|
+
*/
|
|
1665
|
+
notificationsubscriptionCreate(data: OpBody<"notificationsubscription/create">): Promise<{
|
|
1666
|
+
id: string;
|
|
1667
|
+
events: string[];
|
|
1668
|
+
channel: "email";
|
|
1669
|
+
active: boolean;
|
|
1670
|
+
config: {
|
|
1671
|
+
recipients: string[];
|
|
1672
|
+
};
|
|
1673
|
+
account: string;
|
|
1674
|
+
metadata: {
|
|
1675
|
+
[key: string]: unknown;
|
|
1676
|
+
};
|
|
1677
|
+
createdAt: string;
|
|
1678
|
+
updatedAt?: string | undefined;
|
|
1679
|
+
} | {
|
|
1680
|
+
id: string;
|
|
1681
|
+
events: string[];
|
|
1682
|
+
channel: "webhook";
|
|
1683
|
+
active: boolean;
|
|
1684
|
+
config: {
|
|
1685
|
+
url: string;
|
|
1686
|
+
secret: string;
|
|
1687
|
+
};
|
|
1688
|
+
account: string;
|
|
1689
|
+
metadata: {
|
|
1690
|
+
[key: string]: unknown;
|
|
1691
|
+
};
|
|
1692
|
+
createdAt: string;
|
|
1693
|
+
updatedAt?: string | undefined;
|
|
1694
|
+
}>;
|
|
1695
|
+
/**
|
|
1696
|
+
* `DELETE /notificationsubscription/{notificationsubscription_id}` — operationId: `notificationsubscription/delete`
|
|
1697
|
+
*
|
|
1698
|
+
* Delete Notificationsubscription
|
|
1699
|
+
*/
|
|
1700
|
+
notificationsubscriptionDelete(notificationsubscription_id: string): Promise<{
|
|
1701
|
+
id: string;
|
|
1702
|
+
events: string[];
|
|
1703
|
+
channel: "email";
|
|
1704
|
+
active: boolean;
|
|
1705
|
+
config: {
|
|
1706
|
+
recipients: string[];
|
|
1707
|
+
};
|
|
1708
|
+
account: string;
|
|
1709
|
+
metadata: {
|
|
1710
|
+
[key: string]: unknown;
|
|
1711
|
+
};
|
|
1712
|
+
createdAt: string;
|
|
1713
|
+
updatedAt?: string | undefined;
|
|
1714
|
+
} | {
|
|
1715
|
+
id: string;
|
|
1716
|
+
events: string[];
|
|
1717
|
+
channel: "webhook";
|
|
1718
|
+
active: boolean;
|
|
1719
|
+
config: {
|
|
1720
|
+
url: string;
|
|
1721
|
+
secret: string;
|
|
1722
|
+
};
|
|
1723
|
+
account: string;
|
|
1724
|
+
metadata: {
|
|
1725
|
+
[key: string]: unknown;
|
|
1726
|
+
};
|
|
1727
|
+
createdAt: string;
|
|
1728
|
+
updatedAt?: string | undefined;
|
|
1729
|
+
}>;
|
|
1730
|
+
/**
|
|
1731
|
+
* `GET /notificationsubscription/{notificationsubscription_id}` — operationId: `notificationsubscription/get`
|
|
1732
|
+
*
|
|
1733
|
+
* Get Notificationsubscription
|
|
1734
|
+
*/
|
|
1735
|
+
notificationsubscriptionGet(notificationsubscription_id: string): Promise<{
|
|
1736
|
+
id: string;
|
|
1737
|
+
events: string[];
|
|
1738
|
+
channel: "email";
|
|
1739
|
+
active: boolean;
|
|
1740
|
+
config: {
|
|
1741
|
+
recipients: string[];
|
|
1742
|
+
};
|
|
1743
|
+
account: string;
|
|
1744
|
+
metadata: {
|
|
1745
|
+
[key: string]: unknown;
|
|
1746
|
+
};
|
|
1747
|
+
createdAt: string;
|
|
1748
|
+
updatedAt?: string | undefined;
|
|
1749
|
+
} | {
|
|
1750
|
+
id: string;
|
|
1751
|
+
events: string[];
|
|
1752
|
+
channel: "webhook";
|
|
1753
|
+
active: boolean;
|
|
1754
|
+
config: {
|
|
1755
|
+
url: string;
|
|
1756
|
+
secret: string;
|
|
1757
|
+
};
|
|
1758
|
+
account: string;
|
|
1759
|
+
metadata: {
|
|
1760
|
+
[key: string]: unknown;
|
|
1761
|
+
};
|
|
1762
|
+
createdAt: string;
|
|
1763
|
+
updatedAt?: string | undefined;
|
|
1764
|
+
}>;
|
|
1765
|
+
/**
|
|
1766
|
+
* `GET /notificationsubscription` — operationId: `notificationsubscription/list`
|
|
1767
|
+
*
|
|
1768
|
+
* List Notificationsubscriptions
|
|
1769
|
+
*/
|
|
1770
|
+
notificationsubscriptionList(params?: Omit<OpQuery<"notificationsubscription/list">, "cursor" | "next">): {
|
|
1771
|
+
all: () => Promise<({
|
|
1772
|
+
id: string;
|
|
1773
|
+
events: string[];
|
|
1774
|
+
channel: "email";
|
|
1775
|
+
active: boolean;
|
|
1776
|
+
config: {
|
|
1777
|
+
recipients: string[];
|
|
1778
|
+
};
|
|
1779
|
+
account: string;
|
|
1780
|
+
metadata: {
|
|
1781
|
+
[key: string]: unknown;
|
|
1782
|
+
};
|
|
1783
|
+
createdAt: string;
|
|
1784
|
+
updatedAt?: string | undefined;
|
|
1785
|
+
} | {
|
|
1786
|
+
id: string;
|
|
1787
|
+
events: string[];
|
|
1788
|
+
channel: "webhook";
|
|
1789
|
+
active: boolean;
|
|
1790
|
+
config: {
|
|
1791
|
+
url: string;
|
|
1792
|
+
secret: string;
|
|
1793
|
+
};
|
|
1794
|
+
account: string;
|
|
1795
|
+
metadata: {
|
|
1796
|
+
[key: string]: unknown;
|
|
1797
|
+
};
|
|
1798
|
+
createdAt: string;
|
|
1799
|
+
updatedAt?: string | undefined;
|
|
1800
|
+
})[]>;
|
|
1801
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
1802
|
+
id: string;
|
|
1803
|
+
events: string[];
|
|
1804
|
+
channel: "email";
|
|
1805
|
+
active: boolean;
|
|
1806
|
+
config: {
|
|
1807
|
+
recipients: string[];
|
|
1808
|
+
};
|
|
1809
|
+
account: string;
|
|
1810
|
+
metadata: {
|
|
1811
|
+
[key: string]: unknown;
|
|
1812
|
+
};
|
|
1813
|
+
createdAt: string;
|
|
1814
|
+
updatedAt?: string | undefined;
|
|
1815
|
+
} | {
|
|
1816
|
+
id: string;
|
|
1817
|
+
events: string[];
|
|
1818
|
+
channel: "webhook";
|
|
1819
|
+
active: boolean;
|
|
1820
|
+
config: {
|
|
1821
|
+
url: string;
|
|
1822
|
+
secret: string;
|
|
1823
|
+
};
|
|
1824
|
+
account: string;
|
|
1825
|
+
metadata: {
|
|
1826
|
+
[key: string]: unknown;
|
|
1827
|
+
};
|
|
1828
|
+
createdAt: string;
|
|
1829
|
+
updatedAt?: string | undefined;
|
|
1830
|
+
}>>;
|
|
1831
|
+
pass: (params?: {
|
|
1832
|
+
cursor?: string | undefined;
|
|
1833
|
+
pageSize?: string | undefined;
|
|
1834
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
1835
|
+
id: string;
|
|
1836
|
+
events: string[];
|
|
1837
|
+
channel: "email";
|
|
1838
|
+
active: boolean;
|
|
1839
|
+
config: {
|
|
1840
|
+
recipients: string[];
|
|
1841
|
+
};
|
|
1842
|
+
account: string;
|
|
1843
|
+
metadata: {
|
|
1844
|
+
[key: string]: unknown;
|
|
1845
|
+
};
|
|
1846
|
+
createdAt: string;
|
|
1847
|
+
updatedAt?: string | undefined;
|
|
1848
|
+
} | {
|
|
1849
|
+
id: string;
|
|
1850
|
+
events: string[];
|
|
1851
|
+
channel: "webhook";
|
|
1852
|
+
active: boolean;
|
|
1853
|
+
config: {
|
|
1854
|
+
url: string;
|
|
1855
|
+
secret: string;
|
|
1856
|
+
};
|
|
1857
|
+
account: string;
|
|
1858
|
+
metadata: {
|
|
1859
|
+
[key: string]: unknown;
|
|
1860
|
+
};
|
|
1861
|
+
createdAt: string;
|
|
1862
|
+
updatedAt?: string | undefined;
|
|
1863
|
+
}>>;
|
|
1864
|
+
};
|
|
1865
|
+
/**
|
|
1866
|
+
* `POST /notificationsubscription/{notificationsubscription_id}` — operationId: `notificationsubscription/update`
|
|
1867
|
+
*
|
|
1868
|
+
* Update Notificationsubscription
|
|
1869
|
+
*/
|
|
1870
|
+
notificationsubscriptionUpdate(notificationsubscription_id: string, data: OpBody<"notificationsubscription/update">): Promise<{
|
|
1871
|
+
id: string;
|
|
1872
|
+
events: string[];
|
|
1873
|
+
channel: "email";
|
|
1874
|
+
active: boolean;
|
|
1875
|
+
config: {
|
|
1876
|
+
recipients: string[];
|
|
1877
|
+
};
|
|
1878
|
+
account: string;
|
|
1879
|
+
metadata: {
|
|
1880
|
+
[key: string]: unknown;
|
|
1881
|
+
};
|
|
1882
|
+
createdAt: string;
|
|
1883
|
+
updatedAt?: string | undefined;
|
|
1884
|
+
} | {
|
|
1885
|
+
id: string;
|
|
1886
|
+
events: string[];
|
|
1887
|
+
channel: "webhook";
|
|
1888
|
+
active: boolean;
|
|
1889
|
+
config: {
|
|
1890
|
+
url: string;
|
|
1891
|
+
secret: string;
|
|
1892
|
+
};
|
|
1893
|
+
account: string;
|
|
1894
|
+
metadata: {
|
|
1895
|
+
[key: string]: unknown;
|
|
1896
|
+
};
|
|
1897
|
+
createdAt: string;
|
|
1898
|
+
updatedAt?: string | undefined;
|
|
1899
|
+
}>;
|
|
1900
|
+
/**
|
|
1901
|
+
* `POST /role/{role_id}/users` — operationId: `role/assign_users`
|
|
1902
|
+
*
|
|
1903
|
+
* Assign Users to Role
|
|
1904
|
+
*/
|
|
1905
|
+
roleAssignUsers(role_id: string, data: OpBody<"role/assign_users">): Promise<void>;
|
|
1906
|
+
/**
|
|
1907
|
+
* `POST /role` — operationId: `role/create`
|
|
1908
|
+
*
|
|
1909
|
+
* Create Role
|
|
1910
|
+
*/
|
|
1911
|
+
roleCreate(data: OpBody<"role/create">): Promise<{
|
|
1912
|
+
id: string;
|
|
1913
|
+
name: string;
|
|
1914
|
+
description: string;
|
|
1915
|
+
account: string;
|
|
1916
|
+
metadata: {
|
|
1917
|
+
[key: string]: unknown;
|
|
1918
|
+
};
|
|
1919
|
+
createdAt: string;
|
|
1920
|
+
updatedAt?: string | undefined;
|
|
1921
|
+
}>;
|
|
1922
|
+
/**
|
|
1923
|
+
* `DELETE /role/{role_id}` — operationId: `role/delete`
|
|
1924
|
+
*
|
|
1925
|
+
* Delete Role
|
|
1926
|
+
*/
|
|
1927
|
+
roleDelete(role_id: string): Promise<{
|
|
1928
|
+
id: string;
|
|
1929
|
+
name: string;
|
|
1930
|
+
description: string;
|
|
1931
|
+
account: string;
|
|
1932
|
+
metadata: {
|
|
1933
|
+
[key: string]: unknown;
|
|
1934
|
+
};
|
|
1935
|
+
createdAt: string;
|
|
1936
|
+
updatedAt?: string | undefined;
|
|
1937
|
+
}>;
|
|
1938
|
+
/**
|
|
1939
|
+
* `GET /role/{role_id}` — operationId: `role/get`
|
|
1940
|
+
*
|
|
1941
|
+
* Get Role
|
|
1942
|
+
*/
|
|
1943
|
+
roleGet(role_id: string): Promise<{
|
|
1944
|
+
id: string;
|
|
1945
|
+
name: string;
|
|
1946
|
+
description: string;
|
|
1947
|
+
account: string;
|
|
1948
|
+
metadata: {
|
|
1949
|
+
[key: string]: unknown;
|
|
1950
|
+
};
|
|
1951
|
+
createdAt: string;
|
|
1952
|
+
updatedAt?: string | undefined;
|
|
1953
|
+
}>;
|
|
1954
|
+
/**
|
|
1955
|
+
* `GET /role` — operationId: `role/list`
|
|
1956
|
+
*
|
|
1957
|
+
* List Roles
|
|
1958
|
+
*/
|
|
1959
|
+
roleList(params?: Omit<OpQuery<"role/list">, "cursor" | "next">): {
|
|
1960
|
+
all: () => Promise<{
|
|
1961
|
+
id: string;
|
|
1962
|
+
name: string;
|
|
1963
|
+
description: string;
|
|
1964
|
+
account: string;
|
|
1965
|
+
metadata: {
|
|
1966
|
+
[key: string]: unknown;
|
|
1967
|
+
};
|
|
1968
|
+
createdAt: string;
|
|
1969
|
+
updatedAt?: string | undefined;
|
|
1970
|
+
}[]>;
|
|
1971
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
1972
|
+
id: string;
|
|
1973
|
+
name: string;
|
|
1974
|
+
description: string;
|
|
1975
|
+
account: string;
|
|
1976
|
+
metadata: {
|
|
1977
|
+
[key: string]: unknown;
|
|
1978
|
+
};
|
|
1979
|
+
createdAt: string;
|
|
1980
|
+
updatedAt?: string | undefined;
|
|
1981
|
+
}>>;
|
|
1982
|
+
pass: (params?: {
|
|
1983
|
+
cursor?: string | undefined;
|
|
1984
|
+
pageSize?: string | undefined;
|
|
1985
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
1986
|
+
id: string;
|
|
1987
|
+
name: string;
|
|
1988
|
+
description: string;
|
|
1989
|
+
account: string;
|
|
1990
|
+
metadata: {
|
|
1991
|
+
[key: string]: unknown;
|
|
1992
|
+
};
|
|
1993
|
+
createdAt: string;
|
|
1994
|
+
updatedAt?: string | undefined;
|
|
1995
|
+
}>>;
|
|
1996
|
+
};
|
|
1997
|
+
/**
|
|
1998
|
+
* `POST /role/{role_id}` — operationId: `role/update`
|
|
1999
|
+
*
|
|
2000
|
+
* Update Role
|
|
2001
|
+
*/
|
|
2002
|
+
roleUpdate(role_id: string, data: OpBody<"role/update">): Promise<{
|
|
2003
|
+
id: string;
|
|
2004
|
+
name: string;
|
|
2005
|
+
description: string;
|
|
2006
|
+
account: string;
|
|
2007
|
+
metadata: {
|
|
2008
|
+
[key: string]: unknown;
|
|
2009
|
+
};
|
|
2010
|
+
createdAt: string;
|
|
2011
|
+
updatedAt?: string | undefined;
|
|
2012
|
+
}>;
|
|
2013
|
+
/**
|
|
2014
|
+
* `GET /role/{role_id}/users` — operationId: `role/users`
|
|
2015
|
+
*
|
|
2016
|
+
* List Users with Role
|
|
2017
|
+
*/
|
|
2018
|
+
roleUsers(role_id: string, params?: Omit<OpQuery<"role/users">, "cursor" | "next">): {
|
|
2019
|
+
all: () => Promise<{
|
|
2020
|
+
id: string;
|
|
2021
|
+
role: unknown;
|
|
2022
|
+
user: unknown;
|
|
2023
|
+
account: string;
|
|
2024
|
+
metadata: {
|
|
2025
|
+
[key: string]: unknown;
|
|
2026
|
+
};
|
|
2027
|
+
createdAt: string;
|
|
2028
|
+
updatedAt?: string | undefined;
|
|
2029
|
+
}[]>;
|
|
2030
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
2031
|
+
id: string;
|
|
2032
|
+
role: unknown;
|
|
2033
|
+
user: unknown;
|
|
2034
|
+
account: string;
|
|
2035
|
+
metadata: {
|
|
2036
|
+
[key: string]: unknown;
|
|
2037
|
+
};
|
|
2038
|
+
createdAt: string;
|
|
2039
|
+
updatedAt?: string | undefined;
|
|
2040
|
+
}>>;
|
|
2041
|
+
pass: (params?: {
|
|
2042
|
+
cursor?: string | undefined;
|
|
2043
|
+
pageSize?: string | undefined;
|
|
2044
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
2045
|
+
id: string;
|
|
2046
|
+
role: unknown;
|
|
2047
|
+
user: unknown;
|
|
2048
|
+
account: string;
|
|
2049
|
+
metadata: {
|
|
2050
|
+
[key: string]: unknown;
|
|
2051
|
+
};
|
|
2052
|
+
createdAt: string;
|
|
2053
|
+
updatedAt?: string | undefined;
|
|
2054
|
+
}>>;
|
|
2055
|
+
};
|
|
2056
|
+
/**
|
|
2057
|
+
* `POST /rolemember` — operationId: `rolemember/create`
|
|
2058
|
+
*
|
|
2059
|
+
* Create Rolemember
|
|
2060
|
+
*/
|
|
2061
|
+
rolememberCreate(data: OpBody<"rolemember/create">): Promise<{
|
|
2062
|
+
id: string;
|
|
2063
|
+
role: unknown;
|
|
2064
|
+
user: unknown;
|
|
2065
|
+
account: string;
|
|
2066
|
+
metadata: {
|
|
2067
|
+
[key: string]: unknown;
|
|
2068
|
+
};
|
|
2069
|
+
createdAt: string;
|
|
2070
|
+
updatedAt?: string | undefined;
|
|
2071
|
+
}>;
|
|
2072
|
+
/**
|
|
2073
|
+
* `DELETE /rolemember/{rolemember_id}` — operationId: `rolemember/delete`
|
|
2074
|
+
*
|
|
2075
|
+
* Delete Rolemember
|
|
2076
|
+
*/
|
|
2077
|
+
rolememberDelete(rolemember_id: string): Promise<{
|
|
2078
|
+
id: string;
|
|
2079
|
+
role: unknown;
|
|
2080
|
+
user: unknown;
|
|
2081
|
+
account: string;
|
|
2082
|
+
metadata: {
|
|
2083
|
+
[key: string]: unknown;
|
|
2084
|
+
};
|
|
2085
|
+
createdAt: string;
|
|
2086
|
+
updatedAt?: string | undefined;
|
|
2087
|
+
}>;
|
|
2088
|
+
/**
|
|
2089
|
+
* `GET /rolemember/{rolemember_id}` — operationId: `rolemember/get`
|
|
2090
|
+
*
|
|
2091
|
+
* Get Rolemember
|
|
2092
|
+
*/
|
|
2093
|
+
rolememberGet(rolemember_id: string, params?: OpQuery<"rolemember/get">): Promise<{
|
|
2094
|
+
id: string;
|
|
2095
|
+
role: unknown;
|
|
2096
|
+
user: unknown;
|
|
2097
|
+
account: string;
|
|
2098
|
+
metadata: {
|
|
2099
|
+
[key: string]: unknown;
|
|
2100
|
+
};
|
|
2101
|
+
createdAt: string;
|
|
2102
|
+
updatedAt?: string | undefined;
|
|
2103
|
+
}>;
|
|
2104
|
+
/**
|
|
2105
|
+
* `GET /rolemember` — operationId: `rolemember/list`
|
|
2106
|
+
*
|
|
2107
|
+
* List Rolemembers
|
|
2108
|
+
*/
|
|
2109
|
+
rolememberList(params?: Omit<OpQuery<"rolemember/list">, "cursor" | "next">): {
|
|
2110
|
+
all: () => Promise<{
|
|
2111
|
+
id: string;
|
|
2112
|
+
role: unknown;
|
|
2113
|
+
user: unknown;
|
|
2114
|
+
account: string;
|
|
2115
|
+
metadata: {
|
|
2116
|
+
[key: string]: unknown;
|
|
2117
|
+
};
|
|
2118
|
+
createdAt: string;
|
|
2119
|
+
updatedAt?: string | undefined;
|
|
2120
|
+
}[]>;
|
|
2121
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
2122
|
+
id: string;
|
|
2123
|
+
role: unknown;
|
|
2124
|
+
user: unknown;
|
|
2125
|
+
account: string;
|
|
2126
|
+
metadata: {
|
|
2127
|
+
[key: string]: unknown;
|
|
2128
|
+
};
|
|
2129
|
+
createdAt: string;
|
|
2130
|
+
updatedAt?: string | undefined;
|
|
2131
|
+
}>>;
|
|
2132
|
+
pass: (params?: {
|
|
2133
|
+
cursor?: string | undefined;
|
|
2134
|
+
pageSize?: string | undefined;
|
|
2135
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
2136
|
+
id: string;
|
|
2137
|
+
role: unknown;
|
|
2138
|
+
user: unknown;
|
|
2139
|
+
account: string;
|
|
2140
|
+
metadata: {
|
|
2141
|
+
[key: string]: unknown;
|
|
2142
|
+
};
|
|
2143
|
+
createdAt: string;
|
|
2144
|
+
updatedAt?: string | undefined;
|
|
2145
|
+
}>>;
|
|
2146
|
+
};
|
|
2147
|
+
/**
|
|
2148
|
+
* `POST /team/{team_id}/member` — operationId: `team/addMembers`
|
|
2149
|
+
*
|
|
2150
|
+
* Add Users to a Team
|
|
2151
|
+
*/
|
|
2152
|
+
teamAddMembers(team_id: string, data: OpBody<"team/addMembers">): Promise<{
|
|
2153
|
+
id: string;
|
|
2154
|
+
user: unknown;
|
|
2155
|
+
team: unknown;
|
|
2156
|
+
roles: unknown[];
|
|
2157
|
+
account: string;
|
|
2158
|
+
metadata: {
|
|
2159
|
+
[key: string]: unknown;
|
|
2160
|
+
};
|
|
2161
|
+
createdAt: string;
|
|
2162
|
+
updatedAt?: string | undefined;
|
|
2163
|
+
}>;
|
|
2164
|
+
/**
|
|
2165
|
+
* `GET /team/{team_id}/member/check/{user_id}` — operationId: `team/checkMember`
|
|
2166
|
+
*
|
|
2167
|
+
* Check User is member of a Team
|
|
2168
|
+
*/
|
|
2169
|
+
teamCheckMember(team_id: string, user_id: string, params?: OpQuery<"team/checkMember">): Promise<{
|
|
2170
|
+
id: string;
|
|
2171
|
+
user: unknown;
|
|
2172
|
+
team: unknown;
|
|
2173
|
+
roles: unknown[];
|
|
2174
|
+
account: string;
|
|
2175
|
+
metadata: {
|
|
2176
|
+
[key: string]: unknown;
|
|
2177
|
+
};
|
|
2178
|
+
createdAt: string;
|
|
2179
|
+
updatedAt?: string | undefined;
|
|
2180
|
+
}>;
|
|
2181
|
+
/**
|
|
2182
|
+
* `POST /team` — operationId: `team/create`
|
|
2183
|
+
*
|
|
2184
|
+
* Create Team
|
|
2185
|
+
*/
|
|
2186
|
+
teamCreate(data: OpBody<"team/create">): Promise<{
|
|
2187
|
+
id: string;
|
|
2188
|
+
name: string;
|
|
2189
|
+
slug: string;
|
|
2190
|
+
description: string | null;
|
|
2191
|
+
logo_url: string | null;
|
|
2192
|
+
account: string;
|
|
2193
|
+
metadata: {
|
|
2194
|
+
[key: string]: unknown;
|
|
2195
|
+
};
|
|
2196
|
+
createdAt: string;
|
|
2197
|
+
updatedAt?: string | undefined;
|
|
2198
|
+
}>;
|
|
2199
|
+
/**
|
|
2200
|
+
* `DELETE /team/{team_id}` — operationId: `team/delete`
|
|
2201
|
+
*
|
|
2202
|
+
* Delete Team
|
|
2203
|
+
*/
|
|
2204
|
+
teamDelete(team_id: string): Promise<{
|
|
2205
|
+
id: string;
|
|
2206
|
+
name: string;
|
|
2207
|
+
slug: string;
|
|
2208
|
+
description: string | null;
|
|
2209
|
+
logo_url: string | null;
|
|
2210
|
+
account: string;
|
|
2211
|
+
metadata: {
|
|
2212
|
+
[key: string]: unknown;
|
|
2213
|
+
};
|
|
2214
|
+
createdAt: string;
|
|
2215
|
+
updatedAt?: string | undefined;
|
|
2216
|
+
}>;
|
|
2217
|
+
/**
|
|
2218
|
+
* `GET /team/{team_id}` — operationId: `team/get`
|
|
2219
|
+
*
|
|
2220
|
+
* Get Team
|
|
2221
|
+
*/
|
|
2222
|
+
teamGet(team_id: string): Promise<{
|
|
2223
|
+
id: string;
|
|
2224
|
+
name: string;
|
|
2225
|
+
slug: string;
|
|
2226
|
+
description: string | null;
|
|
2227
|
+
logo_url: string | null;
|
|
2228
|
+
account: string;
|
|
2229
|
+
metadata: {
|
|
2230
|
+
[key: string]: unknown;
|
|
2231
|
+
};
|
|
2232
|
+
createdAt: string;
|
|
2233
|
+
updatedAt?: string | undefined;
|
|
2234
|
+
}>;
|
|
2235
|
+
/**
|
|
2236
|
+
* `POST /team/{team_id}/invite` — operationId: `team/invite`
|
|
2237
|
+
*
|
|
2238
|
+
* Invite a user to a Team by email
|
|
2239
|
+
*/
|
|
2240
|
+
teamInvite(team_id: string, data: OpBody<"team/invite">): Promise<{
|
|
2241
|
+
status: "invited" | "added";
|
|
2242
|
+
ticket_id?: string | undefined;
|
|
2243
|
+
member?: {
|
|
2244
|
+
id: string;
|
|
2245
|
+
user: unknown;
|
|
2246
|
+
team: unknown;
|
|
2247
|
+
roles: unknown[];
|
|
2248
|
+
account: string;
|
|
2249
|
+
metadata: {
|
|
2250
|
+
[key: string]: unknown;
|
|
2251
|
+
};
|
|
2252
|
+
createdAt: string;
|
|
2253
|
+
updatedAt?: string | undefined;
|
|
2254
|
+
} | undefined;
|
|
2255
|
+
}>;
|
|
2256
|
+
/**
|
|
2257
|
+
* `GET /team` — operationId: `team/list`
|
|
2258
|
+
*
|
|
2259
|
+
* List Teams
|
|
2260
|
+
*/
|
|
2261
|
+
teamList(params?: Omit<OpQuery<"team/list">, "cursor" | "next">): {
|
|
2262
|
+
all: () => Promise<{
|
|
2263
|
+
id: string;
|
|
2264
|
+
name: string;
|
|
2265
|
+
slug: string;
|
|
2266
|
+
description: string | null;
|
|
2267
|
+
logo_url: string | null;
|
|
2268
|
+
account: string;
|
|
2269
|
+
metadata: {
|
|
2270
|
+
[key: string]: unknown;
|
|
2271
|
+
};
|
|
2272
|
+
createdAt: string;
|
|
2273
|
+
updatedAt?: string | undefined;
|
|
2274
|
+
}[]>;
|
|
2275
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
2276
|
+
id: string;
|
|
2277
|
+
name: string;
|
|
2278
|
+
slug: string;
|
|
2279
|
+
description: string | null;
|
|
2280
|
+
logo_url: string | null;
|
|
2281
|
+
account: string;
|
|
2282
|
+
metadata: {
|
|
2283
|
+
[key: string]: unknown;
|
|
2284
|
+
};
|
|
2285
|
+
createdAt: string;
|
|
2286
|
+
updatedAt?: string | undefined;
|
|
2287
|
+
}>>;
|
|
2288
|
+
pass: (params?: {
|
|
2289
|
+
cursor?: string | undefined;
|
|
2290
|
+
pageSize?: string | undefined;
|
|
2291
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
2292
|
+
id: string;
|
|
2293
|
+
name: string;
|
|
2294
|
+
slug: string;
|
|
2295
|
+
description: string | null;
|
|
2296
|
+
logo_url: string | null;
|
|
2297
|
+
account: string;
|
|
2298
|
+
metadata: {
|
|
2299
|
+
[key: string]: unknown;
|
|
2300
|
+
};
|
|
2301
|
+
createdAt: string;
|
|
2302
|
+
updatedAt?: string | undefined;
|
|
2303
|
+
}>>;
|
|
2304
|
+
};
|
|
2305
|
+
/**
|
|
2306
|
+
* `GET /team/{team_id}/invite` — operationId: `team/listInvites`
|
|
2307
|
+
*
|
|
2308
|
+
* List pending invites for a Team
|
|
2309
|
+
*/
|
|
2310
|
+
teamListInvites(team_id: string, params?: OpQuery<"team/listInvites">): Promise<{
|
|
2311
|
+
data: {
|
|
2312
|
+
id: string;
|
|
2313
|
+
email: string;
|
|
2314
|
+
team: unknown;
|
|
2315
|
+
inviter?: unknown;
|
|
2316
|
+
roles: string[];
|
|
2317
|
+
mode: "auto" | "invite";
|
|
2318
|
+
redirect_uri?: string | undefined;
|
|
2319
|
+
expires_at: string;
|
|
2320
|
+
consume_date?: string | undefined;
|
|
2321
|
+
account: string;
|
|
2322
|
+
metadata: {
|
|
2323
|
+
[key: string]: unknown;
|
|
2324
|
+
};
|
|
2325
|
+
createdAt: string;
|
|
2326
|
+
updatedAt?: string | undefined;
|
|
2327
|
+
}[];
|
|
2328
|
+
}>;
|
|
2329
|
+
/**
|
|
2330
|
+
* `GET /team/{team_id}/member` — operationId: `team/listMembers`
|
|
2331
|
+
*
|
|
2332
|
+
* List Team Members
|
|
2333
|
+
*/
|
|
2334
|
+
teamListMembers(team_id: string, params?: Omit<OpQuery<"team/listMembers">, "cursor" | "next">): {
|
|
2335
|
+
all: () => Promise<{
|
|
2336
|
+
id: string;
|
|
2337
|
+
user: unknown;
|
|
2338
|
+
team: unknown;
|
|
2339
|
+
roles: unknown[];
|
|
2340
|
+
account: string;
|
|
2341
|
+
metadata: {
|
|
2342
|
+
[key: string]: unknown;
|
|
2343
|
+
};
|
|
2344
|
+
createdAt: string;
|
|
2345
|
+
updatedAt?: string | undefined;
|
|
2346
|
+
}[]>;
|
|
2347
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
2348
|
+
id: string;
|
|
2349
|
+
user: unknown;
|
|
2350
|
+
team: unknown;
|
|
2351
|
+
roles: unknown[];
|
|
2352
|
+
account: string;
|
|
2353
|
+
metadata: {
|
|
2354
|
+
[key: string]: unknown;
|
|
2355
|
+
};
|
|
2356
|
+
createdAt: string;
|
|
2357
|
+
updatedAt?: string | undefined;
|
|
2358
|
+
}>>;
|
|
2359
|
+
pass: (params?: {
|
|
2360
|
+
cursor?: string | undefined;
|
|
2361
|
+
pageSize?: string | undefined;
|
|
2362
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
2363
|
+
id: string;
|
|
2364
|
+
user: unknown;
|
|
2365
|
+
team: unknown;
|
|
2366
|
+
roles: unknown[];
|
|
2367
|
+
account: string;
|
|
2368
|
+
metadata: {
|
|
2369
|
+
[key: string]: unknown;
|
|
2370
|
+
};
|
|
2371
|
+
createdAt: string;
|
|
2372
|
+
updatedAt?: string | undefined;
|
|
2373
|
+
}>>;
|
|
2374
|
+
};
|
|
2375
|
+
/**
|
|
2376
|
+
* `DELETE /team/{team_id}/invite/{ticket_id}` — operationId: `team/revokeInvite`
|
|
2377
|
+
*
|
|
2378
|
+
* Revoke a pending team invite
|
|
2379
|
+
*/
|
|
2380
|
+
teamRevokeInvite(team_id: string, ticket_id: string): Promise<{
|
|
2381
|
+
status: "revoked";
|
|
2382
|
+
}>;
|
|
2383
|
+
/**
|
|
2384
|
+
* `POST /team/{team_id}` — operationId: `team/update`
|
|
2385
|
+
*
|
|
2386
|
+
* Update Team
|
|
2387
|
+
*/
|
|
2388
|
+
teamUpdate(team_id: string, data: OpBody<"team/update">): Promise<{
|
|
2389
|
+
id: string;
|
|
2390
|
+
name: string;
|
|
2391
|
+
slug: string;
|
|
2392
|
+
description: string | null;
|
|
2393
|
+
logo_url: string | null;
|
|
2394
|
+
account: string;
|
|
2395
|
+
metadata: {
|
|
2396
|
+
[key: string]: unknown;
|
|
2397
|
+
};
|
|
2398
|
+
createdAt: string;
|
|
2399
|
+
updatedAt?: string | undefined;
|
|
2400
|
+
}>;
|
|
2401
|
+
/**
|
|
2402
|
+
* `POST /teammember` — operationId: `teammember/create`
|
|
2403
|
+
*
|
|
2404
|
+
* Create Teammember
|
|
2405
|
+
*/
|
|
2406
|
+
teammemberCreate(data: OpBody<"teammember/create">): Promise<{
|
|
2407
|
+
id: string;
|
|
2408
|
+
user: unknown;
|
|
2409
|
+
team: unknown;
|
|
2410
|
+
roles: unknown[];
|
|
2411
|
+
account: string;
|
|
2412
|
+
metadata: {
|
|
2413
|
+
[key: string]: unknown;
|
|
2414
|
+
};
|
|
2415
|
+
createdAt: string;
|
|
2416
|
+
updatedAt?: string | undefined;
|
|
2417
|
+
}>;
|
|
2418
|
+
/**
|
|
2419
|
+
* `DELETE /teammember/{teammember_id}` — operationId: `teammember/delete`
|
|
2420
|
+
*
|
|
2421
|
+
* Delete Teammember
|
|
2422
|
+
*/
|
|
2423
|
+
teammemberDelete(teammember_id: string): Promise<{
|
|
2424
|
+
id: string;
|
|
2425
|
+
user: unknown;
|
|
2426
|
+
team: unknown;
|
|
2427
|
+
roles: unknown[];
|
|
2428
|
+
account: string;
|
|
2429
|
+
metadata: {
|
|
2430
|
+
[key: string]: unknown;
|
|
2431
|
+
};
|
|
2432
|
+
createdAt: string;
|
|
2433
|
+
updatedAt?: string | undefined;
|
|
2434
|
+
}>;
|
|
2435
|
+
/**
|
|
2436
|
+
* `GET /teammember/{teammember_id}` — operationId: `teammember/get`
|
|
2437
|
+
*
|
|
2438
|
+
* Get Teammember
|
|
2439
|
+
*/
|
|
2440
|
+
teammemberGet(teammember_id: string, params?: OpQuery<"teammember/get">): Promise<{
|
|
2441
|
+
id: string;
|
|
2442
|
+
user: unknown;
|
|
2443
|
+
team: unknown;
|
|
2444
|
+
roles: unknown[];
|
|
2445
|
+
account: string;
|
|
2446
|
+
metadata: {
|
|
2447
|
+
[key: string]: unknown;
|
|
2448
|
+
};
|
|
2449
|
+
createdAt: string;
|
|
2450
|
+
updatedAt?: string | undefined;
|
|
2451
|
+
}>;
|
|
2452
|
+
/**
|
|
2453
|
+
* `GET /teammember` — operationId: `teammember/list`
|
|
2454
|
+
*
|
|
2455
|
+
* List Teammembers
|
|
2456
|
+
*/
|
|
2457
|
+
teammemberList(params?: Omit<OpQuery<"teammember/list">, "cursor" | "next">): {
|
|
2458
|
+
all: () => Promise<{
|
|
2459
|
+
id: string;
|
|
2460
|
+
user: unknown;
|
|
2461
|
+
team: unknown;
|
|
2462
|
+
roles: unknown[];
|
|
2463
|
+
account: string;
|
|
2464
|
+
metadata: {
|
|
2465
|
+
[key: string]: unknown;
|
|
2466
|
+
};
|
|
2467
|
+
createdAt: string;
|
|
2468
|
+
updatedAt?: string | undefined;
|
|
2469
|
+
}[]>;
|
|
2470
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
2471
|
+
id: string;
|
|
2472
|
+
user: unknown;
|
|
2473
|
+
team: unknown;
|
|
2474
|
+
roles: unknown[];
|
|
2475
|
+
account: string;
|
|
2476
|
+
metadata: {
|
|
2477
|
+
[key: string]: unknown;
|
|
2478
|
+
};
|
|
2479
|
+
createdAt: string;
|
|
2480
|
+
updatedAt?: string | undefined;
|
|
2481
|
+
}>>;
|
|
2482
|
+
pass: (params?: {
|
|
2483
|
+
cursor?: string | undefined;
|
|
2484
|
+
pageSize?: string | undefined;
|
|
2485
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
2486
|
+
id: string;
|
|
2487
|
+
user: unknown;
|
|
2488
|
+
team: unknown;
|
|
2489
|
+
roles: unknown[];
|
|
2490
|
+
account: string;
|
|
2491
|
+
metadata: {
|
|
2492
|
+
[key: string]: unknown;
|
|
2493
|
+
};
|
|
2494
|
+
createdAt: string;
|
|
2495
|
+
updatedAt?: string | undefined;
|
|
2496
|
+
}>>;
|
|
2497
|
+
};
|
|
2498
|
+
/**
|
|
2499
|
+
* `POST /user` — operationId: `user/create`
|
|
2500
|
+
*
|
|
2501
|
+
* Create User
|
|
2502
|
+
*/
|
|
2503
|
+
userCreate(data: OpBody<"user/create">): Promise<{
|
|
2504
|
+
id: string;
|
|
2505
|
+
name?: string | null | undefined;
|
|
2506
|
+
username?: string | null | undefined;
|
|
2507
|
+
given_name?: string | null | undefined;
|
|
2508
|
+
family_name?: string | null | undefined;
|
|
2509
|
+
middle_name?: string | null | undefined;
|
|
2510
|
+
nickname?: string | null | undefined;
|
|
2511
|
+
email?: string | null | undefined;
|
|
2512
|
+
email_verified: boolean;
|
|
2513
|
+
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
2514
|
+
email_verified_at?: string | null | undefined;
|
|
2515
|
+
email_change_locked_at?: string | null | undefined;
|
|
2516
|
+
email_bounced_at?: string | null | undefined;
|
|
2517
|
+
phone?: string | null | undefined;
|
|
2518
|
+
phone_verified: boolean;
|
|
2519
|
+
phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
2520
|
+
phone_verified_at?: string | null | undefined;
|
|
2521
|
+
country_iso?: string | null | undefined;
|
|
2522
|
+
birth_date?: string | null | undefined;
|
|
2523
|
+
gender?: string | null | undefined;
|
|
2524
|
+
zoneinfo?: string | null | undefined;
|
|
2525
|
+
locale?: string | null | undefined;
|
|
2526
|
+
region?: string | null | undefined;
|
|
2527
|
+
website?: string | null | undefined;
|
|
2528
|
+
address?: {
|
|
2529
|
+
formatted?: string | null | undefined;
|
|
2530
|
+
street_address?: string | null | undefined;
|
|
2531
|
+
locality?: string | null | undefined;
|
|
2532
|
+
region?: string | null | undefined;
|
|
2533
|
+
postal_code?: string | null | undefined;
|
|
2534
|
+
country?: string | null | undefined;
|
|
2535
|
+
} | null | undefined;
|
|
2536
|
+
picture?: string | null | undefined;
|
|
2537
|
+
logins_count: number;
|
|
2538
|
+
last_ip?: string | null | undefined;
|
|
2539
|
+
last_login?: string | null | undefined;
|
|
2540
|
+
user_metadata: {
|
|
2541
|
+
[key: string]: unknown;
|
|
2542
|
+
};
|
|
2543
|
+
app_metadata: {
|
|
2544
|
+
[key: string]: unknown;
|
|
2545
|
+
};
|
|
2546
|
+
account: string;
|
|
2547
|
+
metadata: {
|
|
2548
|
+
[key: string]: unknown;
|
|
2549
|
+
};
|
|
2550
|
+
createdAt: string;
|
|
2551
|
+
updatedAt?: string | undefined;
|
|
2552
|
+
}>;
|
|
2553
|
+
/**
|
|
2554
|
+
* `DELETE /user/{user_id}` — operationId: `user/delete`
|
|
2555
|
+
*
|
|
2556
|
+
* Delete User
|
|
2557
|
+
*/
|
|
2558
|
+
userDelete(user_id: string): Promise<{
|
|
2559
|
+
id: string;
|
|
2560
|
+
name?: string | null | undefined;
|
|
2561
|
+
username?: string | null | undefined;
|
|
2562
|
+
given_name?: string | null | undefined;
|
|
2563
|
+
family_name?: string | null | undefined;
|
|
2564
|
+
middle_name?: string | null | undefined;
|
|
2565
|
+
nickname?: string | null | undefined;
|
|
2566
|
+
email?: string | null | undefined;
|
|
2567
|
+
email_verified: boolean;
|
|
2568
|
+
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
2569
|
+
email_verified_at?: string | null | undefined;
|
|
2570
|
+
email_change_locked_at?: string | null | undefined;
|
|
2571
|
+
email_bounced_at?: string | null | undefined;
|
|
2572
|
+
phone?: string | null | undefined;
|
|
2573
|
+
phone_verified: boolean;
|
|
2574
|
+
phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
2575
|
+
phone_verified_at?: string | null | undefined;
|
|
2576
|
+
country_iso?: string | null | undefined;
|
|
2577
|
+
birth_date?: string | null | undefined;
|
|
2578
|
+
gender?: string | null | undefined;
|
|
2579
|
+
zoneinfo?: string | null | undefined;
|
|
2580
|
+
locale?: string | null | undefined;
|
|
2581
|
+
region?: string | null | undefined;
|
|
2582
|
+
website?: string | null | undefined;
|
|
2583
|
+
address?: {
|
|
2584
|
+
formatted?: string | null | undefined;
|
|
2585
|
+
street_address?: string | null | undefined;
|
|
2586
|
+
locality?: string | null | undefined;
|
|
2587
|
+
region?: string | null | undefined;
|
|
2588
|
+
postal_code?: string | null | undefined;
|
|
2589
|
+
country?: string | null | undefined;
|
|
2590
|
+
} | null | undefined;
|
|
2591
|
+
picture?: string | null | undefined;
|
|
2592
|
+
logins_count: number;
|
|
2593
|
+
last_ip?: string | null | undefined;
|
|
2594
|
+
last_login?: string | null | undefined;
|
|
2595
|
+
user_metadata: {
|
|
2596
|
+
[key: string]: unknown;
|
|
2597
|
+
};
|
|
2598
|
+
app_metadata: {
|
|
2599
|
+
[key: string]: unknown;
|
|
2600
|
+
};
|
|
2601
|
+
account: string;
|
|
2602
|
+
metadata: {
|
|
2603
|
+
[key: string]: unknown;
|
|
2604
|
+
};
|
|
2605
|
+
createdAt: string;
|
|
2606
|
+
updatedAt?: string | undefined;
|
|
2607
|
+
}>;
|
|
2608
|
+
/**
|
|
2609
|
+
* `GET /user/{user_id}` — operationId: `user/get`
|
|
2610
|
+
*
|
|
2611
|
+
* Get User
|
|
2612
|
+
*/
|
|
2613
|
+
userGet(user_id: string): Promise<{
|
|
2614
|
+
id: string;
|
|
2615
|
+
name?: string | null | undefined;
|
|
2616
|
+
username?: string | null | undefined;
|
|
2617
|
+
given_name?: string | null | undefined;
|
|
2618
|
+
family_name?: string | null | undefined;
|
|
2619
|
+
middle_name?: string | null | undefined;
|
|
2620
|
+
nickname?: string | null | undefined;
|
|
2621
|
+
email?: string | null | undefined;
|
|
2622
|
+
email_verified: boolean;
|
|
2623
|
+
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
2624
|
+
email_verified_at?: string | null | undefined;
|
|
2625
|
+
email_change_locked_at?: string | null | undefined;
|
|
2626
|
+
email_bounced_at?: string | null | undefined;
|
|
2627
|
+
phone?: string | null | undefined;
|
|
2628
|
+
phone_verified: boolean;
|
|
2629
|
+
phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
2630
|
+
phone_verified_at?: string | null | undefined;
|
|
2631
|
+
country_iso?: string | null | undefined;
|
|
2632
|
+
birth_date?: string | null | undefined;
|
|
2633
|
+
gender?: string | null | undefined;
|
|
2634
|
+
zoneinfo?: string | null | undefined;
|
|
2635
|
+
locale?: string | null | undefined;
|
|
2636
|
+
region?: string | null | undefined;
|
|
2637
|
+
website?: string | null | undefined;
|
|
2638
|
+
address?: {
|
|
2639
|
+
formatted?: string | null | undefined;
|
|
2640
|
+
street_address?: string | null | undefined;
|
|
2641
|
+
locality?: string | null | undefined;
|
|
2642
|
+
region?: string | null | undefined;
|
|
2643
|
+
postal_code?: string | null | undefined;
|
|
2644
|
+
country?: string | null | undefined;
|
|
2645
|
+
} | null | undefined;
|
|
2646
|
+
picture?: string | null | undefined;
|
|
2647
|
+
logins_count: number;
|
|
2648
|
+
last_ip?: string | null | undefined;
|
|
2649
|
+
last_login?: string | null | undefined;
|
|
2650
|
+
user_metadata: {
|
|
2651
|
+
[key: string]: unknown;
|
|
2652
|
+
};
|
|
2653
|
+
app_metadata: {
|
|
2654
|
+
[key: string]: unknown;
|
|
2655
|
+
};
|
|
2656
|
+
account: string;
|
|
2657
|
+
metadata: {
|
|
2658
|
+
[key: string]: unknown;
|
|
2659
|
+
};
|
|
2660
|
+
createdAt: string;
|
|
2661
|
+
updatedAt?: string | undefined;
|
|
2662
|
+
}>;
|
|
2663
|
+
/**
|
|
2664
|
+
* `GET /user` — operationId: `user/list`
|
|
2665
|
+
*
|
|
2666
|
+
* List Users
|
|
2667
|
+
*/
|
|
2668
|
+
userList(params?: Omit<OpQuery<"user/list">, "cursor" | "next">): {
|
|
2669
|
+
all: () => Promise<{
|
|
2670
|
+
id: string;
|
|
2671
|
+
name?: string | null | undefined;
|
|
2672
|
+
username?: string | null | undefined;
|
|
2673
|
+
given_name?: string | null | undefined;
|
|
2674
|
+
family_name?: string | null | undefined;
|
|
2675
|
+
middle_name?: string | null | undefined;
|
|
2676
|
+
nickname?: string | null | undefined;
|
|
2677
|
+
email?: string | null | undefined;
|
|
2678
|
+
email_verified: boolean;
|
|
2679
|
+
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
2680
|
+
email_verified_at?: string | null | undefined;
|
|
2681
|
+
email_change_locked_at?: string | null | undefined;
|
|
2682
|
+
email_bounced_at?: string | null | undefined;
|
|
2683
|
+
phone?: string | null | undefined;
|
|
2684
|
+
phone_verified: boolean;
|
|
2685
|
+
phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
2686
|
+
phone_verified_at?: string | null | undefined;
|
|
2687
|
+
country_iso?: string | null | undefined;
|
|
2688
|
+
birth_date?: string | null | undefined;
|
|
2689
|
+
gender?: string | null | undefined;
|
|
2690
|
+
zoneinfo?: string | null | undefined;
|
|
2691
|
+
locale?: string | null | undefined;
|
|
2692
|
+
region?: string | null | undefined;
|
|
2693
|
+
website?: string | null | undefined;
|
|
2694
|
+
address?: {
|
|
2695
|
+
formatted?: string | null | undefined;
|
|
2696
|
+
street_address?: string | null | undefined;
|
|
2697
|
+
locality?: string | null | undefined;
|
|
2698
|
+
region?: string | null | undefined;
|
|
2699
|
+
postal_code?: string | null | undefined;
|
|
2700
|
+
country?: string | null | undefined;
|
|
2701
|
+
} | null | undefined;
|
|
2702
|
+
picture?: string | null | undefined;
|
|
2703
|
+
logins_count: number;
|
|
2704
|
+
last_ip?: string | null | undefined;
|
|
2705
|
+
last_login?: string | null | undefined;
|
|
2706
|
+
user_metadata: {
|
|
2707
|
+
[key: string]: unknown;
|
|
2708
|
+
};
|
|
2709
|
+
app_metadata: {
|
|
2710
|
+
[key: string]: unknown;
|
|
2711
|
+
};
|
|
2712
|
+
account: string;
|
|
2713
|
+
metadata: {
|
|
2714
|
+
[key: string]: unknown;
|
|
2715
|
+
};
|
|
2716
|
+
createdAt: string;
|
|
2717
|
+
updatedAt?: string | undefined;
|
|
2718
|
+
}[]>;
|
|
2719
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
2720
|
+
id: string;
|
|
2721
|
+
name?: string | null | undefined;
|
|
2722
|
+
username?: string | null | undefined;
|
|
2723
|
+
given_name?: string | null | undefined;
|
|
2724
|
+
family_name?: string | null | undefined;
|
|
2725
|
+
middle_name?: string | null | undefined;
|
|
2726
|
+
nickname?: string | null | undefined;
|
|
2727
|
+
email?: string | null | undefined;
|
|
2728
|
+
email_verified: boolean;
|
|
2729
|
+
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
2730
|
+
email_verified_at?: string | null | undefined;
|
|
2731
|
+
email_change_locked_at?: string | null | undefined;
|
|
2732
|
+
email_bounced_at?: string | null | undefined;
|
|
2733
|
+
phone?: string | null | undefined;
|
|
2734
|
+
phone_verified: boolean;
|
|
2735
|
+
phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
2736
|
+
phone_verified_at?: string | null | undefined;
|
|
2737
|
+
country_iso?: string | null | undefined;
|
|
2738
|
+
birth_date?: string | null | undefined;
|
|
2739
|
+
gender?: string | null | undefined;
|
|
2740
|
+
zoneinfo?: string | null | undefined;
|
|
2741
|
+
locale?: string | null | undefined;
|
|
2742
|
+
region?: string | null | undefined;
|
|
2743
|
+
website?: string | null | undefined;
|
|
2744
|
+
address?: {
|
|
2745
|
+
formatted?: string | null | undefined;
|
|
2746
|
+
street_address?: string | null | undefined;
|
|
2747
|
+
locality?: string | null | undefined;
|
|
2748
|
+
region?: string | null | undefined;
|
|
2749
|
+
postal_code?: string | null | undefined;
|
|
2750
|
+
country?: string | null | undefined;
|
|
2751
|
+
} | null | undefined;
|
|
2752
|
+
picture?: string | null | undefined;
|
|
2753
|
+
logins_count: number;
|
|
2754
|
+
last_ip?: string | null | undefined;
|
|
2755
|
+
last_login?: string | null | undefined;
|
|
2756
|
+
user_metadata: {
|
|
2757
|
+
[key: string]: unknown;
|
|
2758
|
+
};
|
|
2759
|
+
app_metadata: {
|
|
2760
|
+
[key: string]: unknown;
|
|
2761
|
+
};
|
|
2762
|
+
account: string;
|
|
2763
|
+
metadata: {
|
|
2764
|
+
[key: string]: unknown;
|
|
2765
|
+
};
|
|
2766
|
+
createdAt: string;
|
|
2767
|
+
updatedAt?: string | undefined;
|
|
2768
|
+
}>>;
|
|
2769
|
+
pass: (params?: {
|
|
2770
|
+
cursor?: string | undefined;
|
|
2771
|
+
pageSize?: string | undefined;
|
|
2772
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
2773
|
+
id: string;
|
|
2774
|
+
name?: string | null | undefined;
|
|
2775
|
+
username?: string | null | undefined;
|
|
2776
|
+
given_name?: string | null | undefined;
|
|
2777
|
+
family_name?: string | null | undefined;
|
|
2778
|
+
middle_name?: string | null | undefined;
|
|
2779
|
+
nickname?: string | null | undefined;
|
|
2780
|
+
email?: string | null | undefined;
|
|
2781
|
+
email_verified: boolean;
|
|
2782
|
+
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
2783
|
+
email_verified_at?: string | null | undefined;
|
|
2784
|
+
email_change_locked_at?: string | null | undefined;
|
|
2785
|
+
email_bounced_at?: string | null | undefined;
|
|
2786
|
+
phone?: string | null | undefined;
|
|
2787
|
+
phone_verified: boolean;
|
|
2788
|
+
phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
2789
|
+
phone_verified_at?: string | null | undefined;
|
|
2790
|
+
country_iso?: string | null | undefined;
|
|
2791
|
+
birth_date?: string | null | undefined;
|
|
2792
|
+
gender?: string | null | undefined;
|
|
2793
|
+
zoneinfo?: string | null | undefined;
|
|
2794
|
+
locale?: string | null | undefined;
|
|
2795
|
+
region?: string | null | undefined;
|
|
2796
|
+
website?: string | null | undefined;
|
|
2797
|
+
address?: {
|
|
2798
|
+
formatted?: string | null | undefined;
|
|
2799
|
+
street_address?: string | null | undefined;
|
|
2800
|
+
locality?: string | null | undefined;
|
|
2801
|
+
region?: string | null | undefined;
|
|
2802
|
+
postal_code?: string | null | undefined;
|
|
2803
|
+
country?: string | null | undefined;
|
|
2804
|
+
} | null | undefined;
|
|
2805
|
+
picture?: string | null | undefined;
|
|
2806
|
+
logins_count: number;
|
|
2807
|
+
last_ip?: string | null | undefined;
|
|
2808
|
+
last_login?: string | null | undefined;
|
|
2809
|
+
user_metadata: {
|
|
2810
|
+
[key: string]: unknown;
|
|
2811
|
+
};
|
|
2812
|
+
app_metadata: {
|
|
2813
|
+
[key: string]: unknown;
|
|
2814
|
+
};
|
|
2815
|
+
account: string;
|
|
2816
|
+
metadata: {
|
|
2817
|
+
[key: string]: unknown;
|
|
2818
|
+
};
|
|
2819
|
+
createdAt: string;
|
|
2820
|
+
updatedAt?: string | undefined;
|
|
2821
|
+
}>>;
|
|
2822
|
+
};
|
|
2823
|
+
/**
|
|
2824
|
+
* `POST /user/{user_id}` — operationId: `user/update`
|
|
2825
|
+
*
|
|
2826
|
+
* Update User
|
|
2827
|
+
*/
|
|
2828
|
+
userUpdate(user_id: string, data: OpBody<"user/update">): Promise<{
|
|
2829
|
+
id: string;
|
|
2830
|
+
name?: string | null | undefined;
|
|
2831
|
+
username?: string | null | undefined;
|
|
2832
|
+
given_name?: string | null | undefined;
|
|
2833
|
+
family_name?: string | null | undefined;
|
|
2834
|
+
middle_name?: string | null | undefined;
|
|
2835
|
+
nickname?: string | null | undefined;
|
|
2836
|
+
email?: string | null | undefined;
|
|
2837
|
+
email_verified: boolean;
|
|
2838
|
+
email_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
2839
|
+
email_verified_at?: string | null | undefined;
|
|
2840
|
+
email_change_locked_at?: string | null | undefined;
|
|
2841
|
+
email_bounced_at?: string | null | undefined;
|
|
2842
|
+
phone?: string | null | undefined;
|
|
2843
|
+
phone_verified: boolean;
|
|
2844
|
+
phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
2845
|
+
phone_verified_at?: string | null | undefined;
|
|
2846
|
+
country_iso?: string | null | undefined;
|
|
2847
|
+
birth_date?: string | null | undefined;
|
|
2848
|
+
gender?: string | null | undefined;
|
|
2849
|
+
zoneinfo?: string | null | undefined;
|
|
2850
|
+
locale?: string | null | undefined;
|
|
2851
|
+
region?: string | null | undefined;
|
|
2852
|
+
website?: string | null | undefined;
|
|
2853
|
+
address?: {
|
|
2854
|
+
formatted?: string | null | undefined;
|
|
2855
|
+
street_address?: string | null | undefined;
|
|
2856
|
+
locality?: string | null | undefined;
|
|
2857
|
+
region?: string | null | undefined;
|
|
2858
|
+
postal_code?: string | null | undefined;
|
|
2859
|
+
country?: string | null | undefined;
|
|
2860
|
+
} | null | undefined;
|
|
2861
|
+
picture?: string | null | undefined;
|
|
2862
|
+
logins_count: number;
|
|
2863
|
+
last_ip?: string | null | undefined;
|
|
2864
|
+
last_login?: string | null | undefined;
|
|
2865
|
+
user_metadata: {
|
|
2866
|
+
[key: string]: unknown;
|
|
2867
|
+
};
|
|
2868
|
+
app_metadata: {
|
|
2869
|
+
[key: string]: unknown;
|
|
2870
|
+
};
|
|
2871
|
+
account: string;
|
|
2872
|
+
metadata: {
|
|
2873
|
+
[key: string]: unknown;
|
|
2874
|
+
};
|
|
2875
|
+
createdAt: string;
|
|
2876
|
+
updatedAt?: string | undefined;
|
|
2877
|
+
}>;
|
|
2878
|
+
}
|
|
2879
|
+
export {};
|