@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.
@@ -0,0 +1,720 @@
1
+ // AUTO-GENERATED by scripts/gen-client.mjs — do not edit by hand.
2
+ // Regenerated from the OpenAPI spec on every build (npm run gentypes).
3
+ // Source of truth: the auth server's operationIds + bearerAuth security.
4
+ import { FaableApi } from "@faable/sdk-base";
5
+ import { requireId } from "../helpers.js";
6
+ /**
7
+ * Auto-generated management-API methods, one per `bearerAuth` operation in the
8
+ * OpenAPI spec. `FaableAuthApi` extends this and adds the constructor,
9
+ * custom-logic helpers, and deprecated aliases.
10
+ */
11
+ export class GeneratedFaableAuthApi extends FaableApi {
12
+ /**
13
+ * `POST /account` — operationId: `account/create`
14
+ *
15
+ * Create an Account
16
+ */
17
+ accountCreate(data) {
18
+ return this.fetcher.post(`/account`, data);
19
+ }
20
+ /**
21
+ * `GET /account/current` — operationId: `account/current`
22
+ *
23
+ * Get current Account
24
+ */
25
+ accountCurrent(params) {
26
+ return this.fetcher.request({ method: "GET", url: `/account/current`, params });
27
+ }
28
+ /**
29
+ * `DELETE /account/{account_id}` — operationId: `account/delete`
30
+ *
31
+ * Delete an Account
32
+ */
33
+ accountDelete(account_id) {
34
+ requireId("account_id", account_id);
35
+ return this.fetcher.delete(`/account/${account_id}`);
36
+ }
37
+ /**
38
+ * `GET /account/{account_id}` — operationId: `account/get`
39
+ *
40
+ * Get an Account
41
+ */
42
+ accountGet(account_id, params) {
43
+ requireId("account_id", account_id);
44
+ return this.fetcher.request({ method: "GET", url: `/account/${account_id}`, params });
45
+ }
46
+ /**
47
+ * `GET /account/keys` — operationId: `account/getKeys`
48
+ *
49
+ * Get Account signing keys info
50
+ */
51
+ accountGetKeys() {
52
+ return this.fetcher.get(`/account/keys`);
53
+ }
54
+ /**
55
+ * `GET /account` — operationId: `account/list`
56
+ *
57
+ * List Accounts
58
+ */
59
+ accountList(params) {
60
+ return this.paginator({ url: `/account`, params });
61
+ }
62
+ /**
63
+ * `POST /account/keys/rotate` — operationId: `account/rotateKeys`
64
+ *
65
+ * Rotate Account signing keys
66
+ */
67
+ accountRotateKeys(data) {
68
+ return this.fetcher.post(`/account/keys/rotate`, data);
69
+ }
70
+ /**
71
+ * `POST /account/{account_id}` — operationId: `account/update`
72
+ *
73
+ * Update an Account
74
+ */
75
+ accountUpdate(account_id, data) {
76
+ requireId("account_id", account_id);
77
+ return this.fetcher.post(`/account/${account_id}`, data);
78
+ }
79
+ /**
80
+ * `POST /action` — operationId: `action/create`
81
+ *
82
+ * Create Action
83
+ */
84
+ actionCreate(data) {
85
+ return this.fetcher.post(`/action`, data);
86
+ }
87
+ /**
88
+ * `DELETE /action/{action_id}` — operationId: `action/delete`
89
+ *
90
+ * Delete Action
91
+ */
92
+ actionDelete(action_id) {
93
+ requireId("action_id", action_id);
94
+ return this.fetcher.delete(`/action/${action_id}`);
95
+ }
96
+ /**
97
+ * `GET /action/{action_id}` — operationId: `action/get`
98
+ *
99
+ * Get Action
100
+ */
101
+ actionGet(action_id) {
102
+ requireId("action_id", action_id);
103
+ return this.fetcher.get(`/action/${action_id}`);
104
+ }
105
+ /**
106
+ * `GET /action` — operationId: `action/list`
107
+ *
108
+ * List Actions
109
+ */
110
+ actionList(params) {
111
+ return this.paginator({ url: `/action`, params });
112
+ }
113
+ /**
114
+ * `POST /api` — operationId: `api/create`
115
+ *
116
+ * Create Api
117
+ */
118
+ apiCreate(data) {
119
+ return this.fetcher.post(`/api`, data);
120
+ }
121
+ /**
122
+ * `DELETE /api/{api_id}` — operationId: `api/delete`
123
+ *
124
+ * Delete Api
125
+ */
126
+ apiDelete(api_id) {
127
+ requireId("api_id", api_id);
128
+ return this.fetcher.delete(`/api/${api_id}`);
129
+ }
130
+ /**
131
+ * `GET /api/{api_id}` — operationId: `api/get`
132
+ *
133
+ * Get Api
134
+ */
135
+ apiGet(api_id) {
136
+ requireId("api_id", api_id);
137
+ return this.fetcher.get(`/api/${api_id}`);
138
+ }
139
+ /**
140
+ * `GET /api` — operationId: `api/list`
141
+ *
142
+ * List Apis
143
+ */
144
+ apiList(params) {
145
+ return this.paginator({ url: `/api`, params });
146
+ }
147
+ /**
148
+ * `POST /api/{api_id}` — operationId: `api/update`
149
+ *
150
+ * Update Api
151
+ */
152
+ apiUpdate(api_id, data) {
153
+ requireId("api_id", api_id);
154
+ return this.fetcher.post(`/api/${api_id}`, data);
155
+ }
156
+ /**
157
+ * `POST /client` — operationId: `client/create`
158
+ *
159
+ * Create Client
160
+ */
161
+ clientCreate(data) {
162
+ return this.fetcher.post(`/client`, data);
163
+ }
164
+ /**
165
+ * `DELETE /client/{client_id}` — operationId: `client/delete`
166
+ *
167
+ * Delete Client
168
+ */
169
+ clientDelete(client_id) {
170
+ requireId("client_id", client_id);
171
+ return this.fetcher.delete(`/client/${client_id}`);
172
+ }
173
+ /**
174
+ * `GET /client/{client_id}` — operationId: `client/get`
175
+ *
176
+ * Get Client
177
+ */
178
+ clientGet(client_id) {
179
+ requireId("client_id", client_id);
180
+ return this.fetcher.get(`/client/${client_id}`);
181
+ }
182
+ /**
183
+ * `GET /client` — operationId: `client/list`
184
+ *
185
+ * List Clients
186
+ */
187
+ clientList(params) {
188
+ return this.paginator({ url: `/client`, params });
189
+ }
190
+ /**
191
+ * `POST /client/{client_id}/rotate-secret` — operationId: `client/rotateSecret`
192
+ *
193
+ * Rotate a Client's secret
194
+ */
195
+ clientRotateSecret(client_id) {
196
+ requireId("client_id", client_id);
197
+ return this.fetcher.post(`/client/${client_id}/rotate-secret`, {});
198
+ }
199
+ /**
200
+ * `POST /client/{client_id}` — operationId: `client/update`
201
+ *
202
+ * Update Client
203
+ */
204
+ clientUpdate(client_id, data) {
205
+ requireId("client_id", client_id);
206
+ return this.fetcher.post(`/client/${client_id}`, data);
207
+ }
208
+ /**
209
+ * `POST /connection` — operationId: `connection/create`
210
+ *
211
+ * Create Connection
212
+ */
213
+ connectionCreate(data) {
214
+ return this.fetcher.post(`/connection`, data);
215
+ }
216
+ /**
217
+ * `DELETE /connection/{connection_id}` — operationId: `connection/delete`
218
+ *
219
+ * Delete Connection
220
+ */
221
+ connectionDelete(connection_id) {
222
+ requireId("connection_id", connection_id);
223
+ return this.fetcher.delete(`/connection/${connection_id}`);
224
+ }
225
+ /**
226
+ * `GET /connection/{connection_id}` — operationId: `connection/get`
227
+ *
228
+ * Get Connection
229
+ */
230
+ connectionGet(connection_id) {
231
+ requireId("connection_id", connection_id);
232
+ return this.fetcher.get(`/connection/${connection_id}`);
233
+ }
234
+ /**
235
+ * `GET /connection` — operationId: `connection/list`
236
+ *
237
+ * List Connections
238
+ */
239
+ connectionList(params) {
240
+ return this.paginator({ url: `/connection`, params });
241
+ }
242
+ /**
243
+ * `POST /connection/{connection_id}` — operationId: `connection/update`
244
+ *
245
+ * Update Connection
246
+ */
247
+ connectionUpdate(connection_id, data) {
248
+ requireId("connection_id", connection_id);
249
+ return this.fetcher.post(`/connection/${connection_id}`, data);
250
+ }
251
+ /**
252
+ * `POST /credentials` — operationId: `credentials/create`
253
+ *
254
+ * Create Credentials
255
+ */
256
+ credentialsCreate(data) {
257
+ return this.fetcher.post(`/credentials`, data);
258
+ }
259
+ /**
260
+ * `DELETE /credentials/{credentials_id}` — operationId: `credentials/delete`
261
+ *
262
+ * Delete Credentials
263
+ */
264
+ credentialsDelete(credentials_id) {
265
+ requireId("credentials_id", credentials_id);
266
+ return this.fetcher.delete(`/credentials/${credentials_id}`);
267
+ }
268
+ /**
269
+ * `GET /credentials/{credentials_id}` — operationId: `credentials/get`
270
+ *
271
+ * Get Credentials
272
+ */
273
+ credentialsGet(credentials_id, params) {
274
+ requireId("credentials_id", credentials_id);
275
+ return this.fetcher.request({ method: "GET", url: `/credentials/${credentials_id}`, params });
276
+ }
277
+ /**
278
+ * `GET /credentials` — operationId: `credentials/list`
279
+ *
280
+ * List Credentialss
281
+ */
282
+ credentialsList(params) {
283
+ return this.paginator({ url: `/credentials`, params });
284
+ }
285
+ /**
286
+ * `POST /credentials/{credentials_id}/set-password` — operationId: `credentials/setPassword`
287
+ *
288
+ * Set a credential's password
289
+ */
290
+ credentialsSetPassword(credentials_id, data) {
291
+ requireId("credentials_id", credentials_id);
292
+ return this.fetcher.post(`/credentials/${credentials_id}/set-password`, data);
293
+ }
294
+ /**
295
+ * `POST /credentials/{credentials_id}` — operationId: `credentials/update`
296
+ *
297
+ * Update Credentials
298
+ */
299
+ credentialsUpdate(credentials_id, data) {
300
+ requireId("credentials_id", credentials_id);
301
+ return this.fetcher.post(`/credentials/${credentials_id}`, data);
302
+ }
303
+ /**
304
+ * `POST /customdomain` — operationId: `customdomain/create`
305
+ *
306
+ * Create Customdomain
307
+ */
308
+ customdomainCreate(data) {
309
+ return this.fetcher.post(`/customdomain`, data);
310
+ }
311
+ /**
312
+ * `DELETE /customdomain/{customdomain_id}` — operationId: `customdomain/delete`
313
+ *
314
+ * Delete Customdomain
315
+ */
316
+ customdomainDelete(customdomain_id) {
317
+ requireId("customdomain_id", customdomain_id);
318
+ return this.fetcher.delete(`/customdomain/${customdomain_id}`);
319
+ }
320
+ /**
321
+ * `GET /customdomain/{customdomain_id}` — operationId: `customdomain/get`
322
+ *
323
+ * Get Customdomain
324
+ */
325
+ customdomainGet(customdomain_id) {
326
+ requireId("customdomain_id", customdomain_id);
327
+ return this.fetcher.get(`/customdomain/${customdomain_id}`);
328
+ }
329
+ /**
330
+ * `GET /customdomain` — operationId: `customdomain/list`
331
+ *
332
+ * List Customdomains
333
+ */
334
+ customdomainList(params) {
335
+ return this.paginator({ url: `/customdomain`, params });
336
+ }
337
+ /**
338
+ * `POST /customdomain/{customdomain_id}/retry` — operationId: `customdomain/retry`
339
+ *
340
+ * Retry manual domain verification
341
+ */
342
+ customdomainRetry(customdomain_id) {
343
+ requireId("customdomain_id", customdomain_id);
344
+ return this.fetcher.post(`/customdomain/${customdomain_id}/retry`, {});
345
+ }
346
+ /**
347
+ * `POST /identity` — operationId: `identity/create`
348
+ *
349
+ * Create Identity
350
+ */
351
+ identityCreate(data) {
352
+ return this.fetcher.post(`/identity`, data);
353
+ }
354
+ /**
355
+ * `DELETE /identity/{identity_id}` — operationId: `identity/delete`
356
+ *
357
+ * Delete Identity
358
+ */
359
+ identityDelete(identity_id) {
360
+ requireId("identity_id", identity_id);
361
+ return this.fetcher.delete(`/identity/${identity_id}`);
362
+ }
363
+ /**
364
+ * `GET /identity/{identity_id}` — operationId: `identity/get`
365
+ *
366
+ * Get Identity
367
+ */
368
+ identityGet(identity_id, params) {
369
+ requireId("identity_id", identity_id);
370
+ return this.fetcher.request({ method: "GET", url: `/identity/${identity_id}`, params });
371
+ }
372
+ /**
373
+ * `GET /identity/{identity_id}/provider-token` — operationId: `identity/getProviderToken`
374
+ *
375
+ * Get a guaranteed-valid provider access_token
376
+ */
377
+ identityGetProviderToken(identity_id, params) {
378
+ requireId("identity_id", identity_id);
379
+ return this.fetcher.request({ method: "GET", url: `/identity/${identity_id}/provider-token`, params });
380
+ }
381
+ /**
382
+ * `GET /identity` — operationId: `identity/list`
383
+ *
384
+ * List Identitys
385
+ */
386
+ identityList(params) {
387
+ return this.paginator({ url: `/identity`, params });
388
+ }
389
+ /**
390
+ * `GET /log/{log_id}` — operationId: `log/get`
391
+ *
392
+ * Get Log
393
+ */
394
+ logGet(log_id, params) {
395
+ requireId("log_id", log_id);
396
+ return this.fetcher.request({ method: "GET", url: `/log/${log_id}`, params });
397
+ }
398
+ /**
399
+ * `GET /log` — operationId: `log/list`
400
+ *
401
+ * List Logs
402
+ */
403
+ logList(params) {
404
+ return this.paginator({ url: `/log`, params });
405
+ }
406
+ /**
407
+ * `POST /notificationsubscription` — operationId: `notificationsubscription/create`
408
+ *
409
+ * Create Notificationsubscription
410
+ */
411
+ notificationsubscriptionCreate(data) {
412
+ return this.fetcher.post(`/notificationsubscription`, data);
413
+ }
414
+ /**
415
+ * `DELETE /notificationsubscription/{notificationsubscription_id}` — operationId: `notificationsubscription/delete`
416
+ *
417
+ * Delete Notificationsubscription
418
+ */
419
+ notificationsubscriptionDelete(notificationsubscription_id) {
420
+ requireId("notificationsubscription_id", notificationsubscription_id);
421
+ return this.fetcher.delete(`/notificationsubscription/${notificationsubscription_id}`);
422
+ }
423
+ /**
424
+ * `GET /notificationsubscription/{notificationsubscription_id}` — operationId: `notificationsubscription/get`
425
+ *
426
+ * Get Notificationsubscription
427
+ */
428
+ notificationsubscriptionGet(notificationsubscription_id) {
429
+ requireId("notificationsubscription_id", notificationsubscription_id);
430
+ return this.fetcher.get(`/notificationsubscription/${notificationsubscription_id}`);
431
+ }
432
+ /**
433
+ * `GET /notificationsubscription` — operationId: `notificationsubscription/list`
434
+ *
435
+ * List Notificationsubscriptions
436
+ */
437
+ notificationsubscriptionList(params) {
438
+ return this.paginator({ url: `/notificationsubscription`, params });
439
+ }
440
+ /**
441
+ * `POST /notificationsubscription/{notificationsubscription_id}` — operationId: `notificationsubscription/update`
442
+ *
443
+ * Update Notificationsubscription
444
+ */
445
+ notificationsubscriptionUpdate(notificationsubscription_id, data) {
446
+ requireId("notificationsubscription_id", notificationsubscription_id);
447
+ return this.fetcher.post(`/notificationsubscription/${notificationsubscription_id}`, data);
448
+ }
449
+ /**
450
+ * `POST /role/{role_id}/users` — operationId: `role/assign_users`
451
+ *
452
+ * Assign Users to Role
453
+ */
454
+ roleAssignUsers(role_id, data) {
455
+ requireId("role_id", role_id);
456
+ return this.fetcher.post(`/role/${role_id}/users`, data);
457
+ }
458
+ /**
459
+ * `POST /role` — operationId: `role/create`
460
+ *
461
+ * Create Role
462
+ */
463
+ roleCreate(data) {
464
+ return this.fetcher.post(`/role`, data);
465
+ }
466
+ /**
467
+ * `DELETE /role/{role_id}` — operationId: `role/delete`
468
+ *
469
+ * Delete Role
470
+ */
471
+ roleDelete(role_id) {
472
+ requireId("role_id", role_id);
473
+ return this.fetcher.delete(`/role/${role_id}`);
474
+ }
475
+ /**
476
+ * `GET /role/{role_id}` — operationId: `role/get`
477
+ *
478
+ * Get Role
479
+ */
480
+ roleGet(role_id) {
481
+ requireId("role_id", role_id);
482
+ return this.fetcher.get(`/role/${role_id}`);
483
+ }
484
+ /**
485
+ * `GET /role` — operationId: `role/list`
486
+ *
487
+ * List Roles
488
+ */
489
+ roleList(params) {
490
+ return this.paginator({ url: `/role`, params });
491
+ }
492
+ /**
493
+ * `POST /role/{role_id}` — operationId: `role/update`
494
+ *
495
+ * Update Role
496
+ */
497
+ roleUpdate(role_id, data) {
498
+ requireId("role_id", role_id);
499
+ return this.fetcher.post(`/role/${role_id}`, data);
500
+ }
501
+ /**
502
+ * `GET /role/{role_id}/users` — operationId: `role/users`
503
+ *
504
+ * List Users with Role
505
+ */
506
+ roleUsers(role_id, params) {
507
+ requireId("role_id", role_id);
508
+ return this.paginator({ url: `/role/${role_id}/users`, params });
509
+ }
510
+ /**
511
+ * `POST /rolemember` — operationId: `rolemember/create`
512
+ *
513
+ * Create Rolemember
514
+ */
515
+ rolememberCreate(data) {
516
+ return this.fetcher.post(`/rolemember`, data);
517
+ }
518
+ /**
519
+ * `DELETE /rolemember/{rolemember_id}` — operationId: `rolemember/delete`
520
+ *
521
+ * Delete Rolemember
522
+ */
523
+ rolememberDelete(rolemember_id) {
524
+ requireId("rolemember_id", rolemember_id);
525
+ return this.fetcher.delete(`/rolemember/${rolemember_id}`);
526
+ }
527
+ /**
528
+ * `GET /rolemember/{rolemember_id}` — operationId: `rolemember/get`
529
+ *
530
+ * Get Rolemember
531
+ */
532
+ rolememberGet(rolemember_id, params) {
533
+ requireId("rolemember_id", rolemember_id);
534
+ return this.fetcher.request({ method: "GET", url: `/rolemember/${rolemember_id}`, params });
535
+ }
536
+ /**
537
+ * `GET /rolemember` — operationId: `rolemember/list`
538
+ *
539
+ * List Rolemembers
540
+ */
541
+ rolememberList(params) {
542
+ return this.paginator({ url: `/rolemember`, params });
543
+ }
544
+ /**
545
+ * `POST /team/{team_id}/member` — operationId: `team/addMembers`
546
+ *
547
+ * Add Users to a Team
548
+ */
549
+ teamAddMembers(team_id, data) {
550
+ requireId("team_id", team_id);
551
+ return this.fetcher.post(`/team/${team_id}/member`, data);
552
+ }
553
+ /**
554
+ * `GET /team/{team_id}/member/check/{user_id}` — operationId: `team/checkMember`
555
+ *
556
+ * Check User is member of a Team
557
+ */
558
+ teamCheckMember(team_id, user_id, params) {
559
+ requireId("team_id", team_id);
560
+ requireId("user_id", user_id);
561
+ return this.fetcher.request({ method: "GET", url: `/team/${team_id}/member/check/${user_id}`, params });
562
+ }
563
+ /**
564
+ * `POST /team` — operationId: `team/create`
565
+ *
566
+ * Create Team
567
+ */
568
+ teamCreate(data) {
569
+ return this.fetcher.post(`/team`, data);
570
+ }
571
+ /**
572
+ * `DELETE /team/{team_id}` — operationId: `team/delete`
573
+ *
574
+ * Delete Team
575
+ */
576
+ teamDelete(team_id) {
577
+ requireId("team_id", team_id);
578
+ return this.fetcher.delete(`/team/${team_id}`);
579
+ }
580
+ /**
581
+ * `GET /team/{team_id}` — operationId: `team/get`
582
+ *
583
+ * Get Team
584
+ */
585
+ teamGet(team_id) {
586
+ requireId("team_id", team_id);
587
+ return this.fetcher.get(`/team/${team_id}`);
588
+ }
589
+ /**
590
+ * `POST /team/{team_id}/invite` — operationId: `team/invite`
591
+ *
592
+ * Invite a user to a Team by email
593
+ */
594
+ teamInvite(team_id, data) {
595
+ requireId("team_id", team_id);
596
+ return this.fetcher.post(`/team/${team_id}/invite`, data);
597
+ }
598
+ /**
599
+ * `GET /team` — operationId: `team/list`
600
+ *
601
+ * List Teams
602
+ */
603
+ teamList(params) {
604
+ return this.paginator({ url: `/team`, params });
605
+ }
606
+ /**
607
+ * `GET /team/{team_id}/invite` — operationId: `team/listInvites`
608
+ *
609
+ * List pending invites for a Team
610
+ */
611
+ teamListInvites(team_id, params) {
612
+ requireId("team_id", team_id);
613
+ return this.fetcher.request({ method: "GET", url: `/team/${team_id}/invite`, params });
614
+ }
615
+ /**
616
+ * `GET /team/{team_id}/member` — operationId: `team/listMembers`
617
+ *
618
+ * List Team Members
619
+ */
620
+ teamListMembers(team_id, params) {
621
+ requireId("team_id", team_id);
622
+ return this.paginator({ url: `/team/${team_id}/member`, params });
623
+ }
624
+ /**
625
+ * `DELETE /team/{team_id}/invite/{ticket_id}` — operationId: `team/revokeInvite`
626
+ *
627
+ * Revoke a pending team invite
628
+ */
629
+ teamRevokeInvite(team_id, ticket_id) {
630
+ requireId("team_id", team_id);
631
+ requireId("ticket_id", ticket_id);
632
+ return this.fetcher.delete(`/team/${team_id}/invite/${ticket_id}`);
633
+ }
634
+ /**
635
+ * `POST /team/{team_id}` — operationId: `team/update`
636
+ *
637
+ * Update Team
638
+ */
639
+ teamUpdate(team_id, data) {
640
+ requireId("team_id", team_id);
641
+ return this.fetcher.post(`/team/${team_id}`, data);
642
+ }
643
+ /**
644
+ * `POST /teammember` — operationId: `teammember/create`
645
+ *
646
+ * Create Teammember
647
+ */
648
+ teammemberCreate(data) {
649
+ return this.fetcher.post(`/teammember`, data);
650
+ }
651
+ /**
652
+ * `DELETE /teammember/{teammember_id}` — operationId: `teammember/delete`
653
+ *
654
+ * Delete Teammember
655
+ */
656
+ teammemberDelete(teammember_id) {
657
+ requireId("teammember_id", teammember_id);
658
+ return this.fetcher.delete(`/teammember/${teammember_id}`);
659
+ }
660
+ /**
661
+ * `GET /teammember/{teammember_id}` — operationId: `teammember/get`
662
+ *
663
+ * Get Teammember
664
+ */
665
+ teammemberGet(teammember_id, params) {
666
+ requireId("teammember_id", teammember_id);
667
+ return this.fetcher.request({ method: "GET", url: `/teammember/${teammember_id}`, params });
668
+ }
669
+ /**
670
+ * `GET /teammember` — operationId: `teammember/list`
671
+ *
672
+ * List Teammembers
673
+ */
674
+ teammemberList(params) {
675
+ return this.paginator({ url: `/teammember`, params });
676
+ }
677
+ /**
678
+ * `POST /user` — operationId: `user/create`
679
+ *
680
+ * Create User
681
+ */
682
+ userCreate(data) {
683
+ return this.fetcher.post(`/user`, data);
684
+ }
685
+ /**
686
+ * `DELETE /user/{user_id}` — operationId: `user/delete`
687
+ *
688
+ * Delete User
689
+ */
690
+ userDelete(user_id) {
691
+ requireId("user_id", user_id);
692
+ return this.fetcher.delete(`/user/${user_id}`);
693
+ }
694
+ /**
695
+ * `GET /user/{user_id}` — operationId: `user/get`
696
+ *
697
+ * Get User
698
+ */
699
+ userGet(user_id) {
700
+ requireId("user_id", user_id);
701
+ return this.fetcher.get(`/user/${user_id}`);
702
+ }
703
+ /**
704
+ * `GET /user` — operationId: `user/list`
705
+ *
706
+ * List Users
707
+ */
708
+ userList(params) {
709
+ return this.paginator({ url: `/user`, params });
710
+ }
711
+ /**
712
+ * `POST /user/{user_id}` — operationId: `user/update`
713
+ *
714
+ * Update User
715
+ */
716
+ userUpdate(user_id, data) {
717
+ requireId("user_id", user_id);
718
+ return this.fetcher.post(`/user/${user_id}`, data);
719
+ }
720
+ }