@36node/auth-sdk 1.6.1 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,814 @@
1
+ export type Captcha = {
2
+ code: string;
3
+ expireAt: string;
4
+ key: string;
5
+ id: string;
6
+ createdAt?: string;
7
+ updatedAt?: string;
8
+ createdBy?: string;
9
+ updatedBy?: string;
10
+ };
11
+ export type CreateCaptchaDto = {
12
+ code?: string;
13
+ expireAt?: string;
14
+ key: string;
15
+ };
16
+ export type CreateEmailRecordDto = {
17
+ status: EmailStatus;
18
+ from: string;
19
+ to: string;
20
+ subject: string;
21
+ content: string;
22
+ sentAt?: string;
23
+ };
24
+ export type CreateGroupDto = {
25
+ data?: string;
26
+ name: string;
27
+ permissions?: Array<string>;
28
+ active?: boolean;
29
+ userCount?: number;
30
+ };
31
+ export type CreateNamespaceDto = {
32
+ data?: string;
33
+ desc?: string;
34
+ labels?: Array<string>;
35
+ name: string;
36
+ key: string;
37
+ ns?: string;
38
+ permissions?: Array<string>;
39
+ active?: boolean;
40
+ defaultPassword?: string;
41
+ exportable?: boolean;
42
+ userCount?: number;
43
+ };
44
+ export type CreateRoleDto = {
45
+ permissions?: Array<string>;
46
+ key: string;
47
+ name: string;
48
+ };
49
+ export type CreateSessionDto = {
50
+ uid: string;
51
+ acl?: {
52
+ [key: string]: unknown;
53
+ };
54
+ expireAt: string;
55
+ client?: string;
56
+ };
57
+ export type CreateSmsRecordDto = {
58
+ status: SmsStatus;
59
+ phone: string;
60
+ sign: string;
61
+ template: string;
62
+ params?: string;
63
+ sentAt?: string;
64
+ };
65
+ export type CreateUserDto = {
66
+ password?: string;
67
+ readonly hasPassword?: boolean;
68
+ avatar?: string;
69
+ data?: string;
70
+ email?: string;
71
+ name?: string;
72
+ identity?: string;
73
+ identityVerifiedAt?: string;
74
+ identityVerified?: boolean;
75
+ intro?: string;
76
+ language?: string;
77
+ nickname?: string;
78
+ ns?: string;
79
+ phone?: string;
80
+ registerRegion?: string;
81
+ roles?: Array<string>;
82
+ super?: boolean;
83
+ username?: string;
84
+ employeeId?: string;
85
+ permissions?: Array<string>;
86
+ groups?: Array<string>;
87
+ active?: boolean;
88
+ inviteCode?: string;
89
+ status?: string;
90
+ expireAt?: string;
91
+ types?: Array<string>;
92
+ };
93
+ export type EmailRecord = {
94
+ status: EmailStatus;
95
+ from: string;
96
+ to: string;
97
+ subject: string;
98
+ content: string;
99
+ sentAt?: string;
100
+ id: string;
101
+ createdAt?: string;
102
+ updatedAt?: string;
103
+ createdBy?: string;
104
+ updatedBy?: string;
105
+ };
106
+ export type EmailStatus = 'pending' | 'sent';
107
+ export type Group = {
108
+ data?: string;
109
+ name: string;
110
+ permissions?: Array<string>;
111
+ active?: boolean;
112
+ userCount?: number;
113
+ id: string;
114
+ createdAt?: string;
115
+ updatedAt?: string;
116
+ createdBy?: string;
117
+ updatedBy?: string;
118
+ };
119
+ export type HealthCheckResult = {
120
+ message: string;
121
+ };
122
+ export type Industry = {
123
+ code: string;
124
+ name: string;
125
+ children: Array<Industry>;
126
+ };
127
+ export type LoginByEmailDto = {
128
+ email: string;
129
+ key: string;
130
+ code: string;
131
+ };
132
+ export type LoginByPhoneDto = {
133
+ phone: string;
134
+ key: string;
135
+ code: string;
136
+ };
137
+ export type LoginDto = {
138
+ login: string;
139
+ password: string;
140
+ };
141
+ export type Namespace = {
142
+ data?: string;
143
+ desc?: string;
144
+ labels?: Array<string>;
145
+ name: string;
146
+ key: string;
147
+ ns?: string;
148
+ permissions?: Array<string>;
149
+ active?: boolean;
150
+ defaultPassword?: string;
151
+ exportable?: boolean;
152
+ userCount?: number;
153
+ id: string;
154
+ createdAt?: string;
155
+ updatedAt?: string;
156
+ createdBy?: string;
157
+ updatedBy?: string;
158
+ };
159
+ export type RefreshTokenDto = {
160
+ key: string;
161
+ };
162
+ export type Region = {
163
+ code: string;
164
+ nameZh: string;
165
+ namePinyin: string;
166
+ nameEn: string;
167
+ dialingPrefix: string;
168
+ };
169
+ export type RegisterByEmailDto = {
170
+ email: string;
171
+ key: string;
172
+ code: string;
173
+ ns?: string;
174
+ };
175
+ export type RegisterbyPhoneDto = {
176
+ phone: string;
177
+ key: string;
178
+ code: string;
179
+ ns?: string;
180
+ };
181
+ export type RegisterDto = {
182
+ username: string;
183
+ password: string;
184
+ ns?: string;
185
+ };
186
+ export type ResetPasswordDto = {
187
+ password?: string;
188
+ };
189
+ export type Role = {
190
+ key: string;
191
+ name: string;
192
+ permissions: Array<string>;
193
+ id: string;
194
+ createdAt?: string;
195
+ updatedAt?: string;
196
+ createdBy?: string;
197
+ updatedBy?: string;
198
+ };
199
+ export type SendEmailDto = {
200
+ from: string;
201
+ to: string;
202
+ subject: string;
203
+ content: string;
204
+ };
205
+ export type SendSmsDto = {
206
+ phone: string;
207
+ sign: string;
208
+ template: string;
209
+ params?: {
210
+ [key: string]: unknown;
211
+ };
212
+ };
213
+ export type Session = {
214
+ acl?: {
215
+ [key: string]: unknown;
216
+ };
217
+ expireAt: string;
218
+ key: string;
219
+ user: User;
220
+ client?: string;
221
+ id: string;
222
+ createdAt?: string;
223
+ updatedAt?: string;
224
+ createdBy?: string;
225
+ updatedBy?: string;
226
+ };
227
+ export type SessionWithToken = {
228
+ acl?: {
229
+ [key: string]: unknown;
230
+ };
231
+ expireAt: string;
232
+ key: string;
233
+ user: User;
234
+ client?: string;
235
+ id: string;
236
+ createdAt?: string;
237
+ updatedAt?: string;
238
+ createdBy?: string;
239
+ updatedBy?: string;
240
+ token: string;
241
+ tokenExpireAt: string;
242
+ };
243
+ export type SignTokenDto = {
244
+ expiresIn: string;
245
+ acl?: {
246
+ [key: string]: unknown;
247
+ };
248
+ uid: string;
249
+ };
250
+ export type SmsRecord = {
251
+ status: SmsStatus;
252
+ phone: string;
253
+ sign: string;
254
+ template: string;
255
+ params?: string;
256
+ sentAt?: string;
257
+ id: string;
258
+ createdAt?: string;
259
+ updatedAt?: string;
260
+ createdBy?: string;
261
+ updatedBy?: string;
262
+ };
263
+ export type SmsStatus = 'pending' | 'sent';
264
+ export type Token = {
265
+ token: string;
266
+ tokenExpireAt: string;
267
+ };
268
+ export type UpdateCaptchaDto = {
269
+ code?: string;
270
+ expireAt?: string;
271
+ key?: string;
272
+ };
273
+ export type UpdateEmailRecordDto = {
274
+ status?: EmailStatus;
275
+ from?: string;
276
+ to?: string;
277
+ subject?: string;
278
+ content?: string;
279
+ sentAt?: string;
280
+ };
281
+ export type UpdateGroupDto = {
282
+ data?: string;
283
+ name?: string;
284
+ permissions?: Array<string>;
285
+ active?: boolean;
286
+ userCount?: number;
287
+ };
288
+ export type UpdateNamespaceDto = {
289
+ data?: string;
290
+ desc?: string;
291
+ labels?: Array<string>;
292
+ name?: string;
293
+ permissions?: Array<string>;
294
+ active?: boolean;
295
+ defaultPassword?: string;
296
+ exportable?: boolean;
297
+ userCount?: number;
298
+ };
299
+ export type UpdatePasswordDto = {
300
+ oldPassword?: string;
301
+ newPassword: string;
302
+ };
303
+ export type UpdateRoleDto = {
304
+ name?: string;
305
+ permissions?: Array<string>;
306
+ };
307
+ export type UpdateSessionDto = {
308
+ acl?: {
309
+ [key: string]: unknown;
310
+ };
311
+ expireAt?: string;
312
+ client?: string;
313
+ uid?: string;
314
+ };
315
+ export type UpdateSmsRecordDto = {
316
+ status?: SmsStatus;
317
+ phone?: string;
318
+ sign?: string;
319
+ template?: string;
320
+ params?: string;
321
+ sentAt?: string;
322
+ };
323
+ export type UpdateUserDto = {
324
+ readonly hasPassword?: boolean;
325
+ avatar?: string;
326
+ data?: string;
327
+ email?: string;
328
+ name?: string;
329
+ identity?: string;
330
+ identityVerifiedAt?: string;
331
+ identityVerified?: boolean;
332
+ intro?: string;
333
+ language?: string;
334
+ lastLoginIp?: string;
335
+ lastSeenAt?: string;
336
+ nickname?: string;
337
+ ns?: string;
338
+ phone?: string;
339
+ registerIp?: string;
340
+ registerRegion?: string;
341
+ roles?: Array<string>;
342
+ super?: boolean;
343
+ username?: string;
344
+ employeeId?: string;
345
+ permissions?: Array<string>;
346
+ groups?: Array<string>;
347
+ lastLoginAt?: string;
348
+ active?: boolean;
349
+ inviteCode?: string;
350
+ status?: string;
351
+ expireAt?: string;
352
+ types?: Array<string>;
353
+ };
354
+ export type User = {
355
+ password?: string;
356
+ readonly hasPassword?: boolean;
357
+ avatar?: string;
358
+ data?: string;
359
+ email?: string;
360
+ name?: string;
361
+ identity?: string;
362
+ identityVerifiedAt?: string;
363
+ identityVerified?: boolean;
364
+ intro?: string;
365
+ language?: string;
366
+ lastLoginIp?: string;
367
+ lastSeenAt?: string;
368
+ nickname?: string;
369
+ ns?: string;
370
+ phone?: string;
371
+ registerIp?: string;
372
+ registerRegion?: string;
373
+ roles?: Array<string>;
374
+ super?: boolean;
375
+ username?: string;
376
+ employeeId?: string;
377
+ permissions?: Array<string>;
378
+ groups?: Array<string>;
379
+ lastLoginAt?: string;
380
+ active?: boolean;
381
+ inviteCode?: string;
382
+ status?: string;
383
+ expireAt?: string;
384
+ types?: Array<string>;
385
+ id: string;
386
+ createdAt?: string;
387
+ updatedAt?: string;
388
+ createdBy?: string;
389
+ updatedBy?: string;
390
+ };
391
+ export type HelloResponse = HealthCheckResult;
392
+ export type HelloError = unknown;
393
+ export type LoginData = {
394
+ body: LoginDto;
395
+ };
396
+ export type LoginResponse = SessionWithToken;
397
+ export type LoginError = unknown;
398
+ export type LoginByEmailData = {
399
+ body: LoginByEmailDto;
400
+ };
401
+ export type LoginByEmailResponse = SessionWithToken;
402
+ export type LoginByEmailError = unknown;
403
+ export type LoginByPhoneData = {
404
+ body: LoginByPhoneDto;
405
+ };
406
+ export type LoginByPhoneResponse = SessionWithToken;
407
+ export type LoginByPhoneError = unknown;
408
+ export type RegisterData = {
409
+ body: RegisterDto;
410
+ };
411
+ export type RegisterResponse = User;
412
+ export type RegisterError = unknown;
413
+ export type RegisterByPhoneData = {
414
+ body: RegisterbyPhoneDto;
415
+ };
416
+ export type RegisterByPhoneResponse = User;
417
+ export type RegisterByPhoneError = unknown;
418
+ export type RegisterByEmailData = {
419
+ body: RegisterByEmailDto;
420
+ };
421
+ export type RegisterByEmailResponse = User;
422
+ export type RegisterByEmailError = unknown;
423
+ export type SignTokenData = {
424
+ body: SignTokenDto;
425
+ };
426
+ export type SignTokenResponse = Token;
427
+ export type SignTokenError = unknown;
428
+ export type RefreshData = {
429
+ body: RefreshTokenDto;
430
+ };
431
+ export type RefreshResponse = SessionWithToken;
432
+ export type RefreshError = unknown;
433
+ export type CleanupAllDataResponse = void;
434
+ export type CleanupAllDataError = unknown;
435
+ export type CreateUserData = {
436
+ body: CreateUserDto;
437
+ };
438
+ export type CreateUserResponse = User;
439
+ export type CreateUserError = unknown;
440
+ export type ListUsersData = {
441
+ query?: {
442
+ _limit?: number;
443
+ _offset?: number;
444
+ _sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'lastLoginAt' | '-lastLoginAt' | 'expireAt' | '-expireAt';
445
+ active?: boolean;
446
+ email?: string;
447
+ expireAt_gte?: string;
448
+ expireAt_lte?: string;
449
+ groups?: Array<string>;
450
+ id?: Array<string>;
451
+ name?: string;
452
+ name_like?: string;
453
+ nickname_like?: string;
454
+ ns_tree?: string;
455
+ phone?: string;
456
+ registerRegion?: string;
457
+ roles?: Array<string>;
458
+ status?: string;
459
+ types?: Array<string>;
460
+ username?: string;
461
+ username_like?: string;
462
+ };
463
+ };
464
+ export type ListUsersResponse = Array<User>;
465
+ export type ListUsersError = unknown;
466
+ export type GetUserData = {
467
+ path: {
468
+ userId: string;
469
+ };
470
+ };
471
+ export type GetUserResponse = User;
472
+ export type GetUserError = unknown;
473
+ export type UpdateUserData = {
474
+ body: UpdateUserDto;
475
+ path: {
476
+ userId: string;
477
+ };
478
+ };
479
+ export type UpdateUserResponse = User;
480
+ export type UpdateUserError = unknown;
481
+ export type DeleteUserData = {
482
+ path: {
483
+ userId: string;
484
+ };
485
+ };
486
+ export type DeleteUserResponse = void;
487
+ export type DeleteUserError = unknown;
488
+ export type UpsertUserByEmployeeIdData = {
489
+ body: UpdateUserDto;
490
+ path: {
491
+ userEmployeeId: string;
492
+ };
493
+ };
494
+ export type UpsertUserByEmployeeIdResponse = User;
495
+ export type UpsertUserByEmployeeIdError = unknown;
496
+ export type VerifyIdentityData = {
497
+ path: {
498
+ userId: string;
499
+ };
500
+ };
501
+ export type VerifyIdentityResponse = User;
502
+ export type VerifyIdentityError = unknown;
503
+ export type ResetPasswordData = {
504
+ body: ResetPasswordDto;
505
+ path: {
506
+ userId: string;
507
+ };
508
+ };
509
+ export type ResetPasswordResponse = void;
510
+ export type ResetPasswordError = unknown;
511
+ export type UpdatePasswordData = {
512
+ body: UpdatePasswordDto;
513
+ path: {
514
+ userId: string;
515
+ };
516
+ };
517
+ export type UpdatePasswordResponse = void;
518
+ export type UpdatePasswordError = unknown;
519
+ export type CreateNamespaceData = {
520
+ body: CreateNamespaceDto;
521
+ };
522
+ export type CreateNamespaceResponse = Namespace;
523
+ export type CreateNamespaceError = unknown;
524
+ export type ListNamespacesData = {
525
+ query?: {
526
+ _limit?: number;
527
+ _offset?: number;
528
+ _sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'key' | '-key' | 'name' | '-name';
529
+ key?: string;
530
+ key_tree?: string;
531
+ labels?: Array<string>;
532
+ name_like?: string;
533
+ ns_tree?: string;
534
+ };
535
+ };
536
+ export type ListNamespacesResponse = Array<Namespace>;
537
+ export type ListNamespacesError = unknown;
538
+ export type GetNamespaceData = {
539
+ path: {
540
+ namespaceIdOrKey: string;
541
+ };
542
+ };
543
+ export type GetNamespaceResponse = Namespace;
544
+ export type GetNamespaceError = unknown;
545
+ export type UpdateNamespaceData = {
546
+ body: UpdateNamespaceDto;
547
+ path: {
548
+ namespaceIdOrKey: string;
549
+ };
550
+ };
551
+ export type UpdateNamespaceResponse = Namespace;
552
+ export type UpdateNamespaceError = unknown;
553
+ export type DeleteNamespaceData = {
554
+ path: {
555
+ namespaceId: string;
556
+ };
557
+ };
558
+ export type DeleteNamespaceResponse = void;
559
+ export type DeleteNamespaceError = unknown;
560
+ export type CreateSessionData = {
561
+ body: CreateSessionDto;
562
+ };
563
+ export type CreateSessionResponse = Session;
564
+ export type CreateSessionError = unknown;
565
+ export type ListSessionsData = {
566
+ query?: {
567
+ _limit?: number;
568
+ _offset?: number;
569
+ _sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'expireAt' | '-expireAt';
570
+ client?: string;
571
+ key?: string;
572
+ uid?: string;
573
+ };
574
+ };
575
+ export type ListSessionsResponse = Array<Session>;
576
+ export type ListSessionsError = unknown;
577
+ export type GetSessionData = {
578
+ path: {
579
+ sessionId: string;
580
+ };
581
+ };
582
+ export type GetSessionResponse = Session;
583
+ export type GetSessionError = unknown;
584
+ export type UpdateSessionData = {
585
+ body: UpdateSessionDto;
586
+ path: {
587
+ sessionId: string;
588
+ };
589
+ };
590
+ export type UpdateSessionResponse = Session;
591
+ export type UpdateSessionError = unknown;
592
+ export type DeleteSessionData = {
593
+ path: {
594
+ sessionId: string;
595
+ };
596
+ };
597
+ export type DeleteSessionResponse = void;
598
+ export type DeleteSessionError = unknown;
599
+ export type CreateGroupData = {
600
+ body: CreateGroupDto;
601
+ };
602
+ export type CreateGroupResponse = Group;
603
+ export type CreateGroupError = unknown;
604
+ export type ListGroupsData = {
605
+ query?: {
606
+ _limit?: number;
607
+ _offset?: number;
608
+ _sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt';
609
+ active?: boolean;
610
+ name?: string;
611
+ name_like?: string;
612
+ };
613
+ };
614
+ export type ListGroupsResponse = Array<Group>;
615
+ export type ListGroupsError = unknown;
616
+ export type GetGroupData = {
617
+ path: {
618
+ groupIdOrName: string;
619
+ };
620
+ };
621
+ export type GetGroupResponse = Group;
622
+ export type GetGroupError = unknown;
623
+ export type UpdateGroupData = {
624
+ body: UpdateGroupDto;
625
+ path: {
626
+ groupId: string;
627
+ };
628
+ };
629
+ export type UpdateGroupResponse = Group;
630
+ export type UpdateGroupError = unknown;
631
+ export type DeleteGroupData = {
632
+ path: {
633
+ groupId: string;
634
+ };
635
+ };
636
+ export type DeleteGroupResponse = void;
637
+ export type DeleteGroupError = unknown;
638
+ export type CreateCaptchaData = {
639
+ body: CreateCaptchaDto;
640
+ };
641
+ export type CreateCaptchaResponse = Captcha;
642
+ export type CreateCaptchaError = unknown;
643
+ export type ListCaptchasData = {
644
+ query?: {
645
+ _limit?: number;
646
+ _offset?: number;
647
+ _sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'expireAt' | '-expireAt';
648
+ code?: string;
649
+ key?: string;
650
+ };
651
+ };
652
+ export type ListCaptchasResponse = Array<Captcha>;
653
+ export type ListCaptchasError = unknown;
654
+ export type GetCaptchaData = {
655
+ path: {
656
+ captchaId: string;
657
+ };
658
+ };
659
+ export type GetCaptchaResponse = Captcha;
660
+ export type GetCaptchaError = unknown;
661
+ export type UpdateCaptchaData = {
662
+ body: UpdateCaptchaDto;
663
+ path: {
664
+ captchaId: string;
665
+ };
666
+ };
667
+ export type UpdateCaptchaResponse = Captcha;
668
+ export type UpdateCaptchaError = unknown;
669
+ export type DeleteCaptchaData = {
670
+ path: {
671
+ captchaId: string;
672
+ };
673
+ };
674
+ export type DeleteCaptchaResponse = void;
675
+ export type DeleteCaptchaError = unknown;
676
+ export type SendEmailData = {
677
+ body: SendEmailDto;
678
+ };
679
+ export type SendEmailResponse = void;
680
+ export type SendEmailError = unknown;
681
+ export type CreateEmailRecordData = {
682
+ body: CreateEmailRecordDto;
683
+ };
684
+ export type CreateEmailRecordResponse = EmailRecord;
685
+ export type CreateEmailRecordError = unknown;
686
+ export type ListEmailRecordsData = {
687
+ query?: {
688
+ _limit?: number;
689
+ _offset?: number;
690
+ _sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
691
+ createdAt_gt?: string;
692
+ createdAt_lt?: string;
693
+ from?: string;
694
+ sentAt_gt?: string;
695
+ sentAt_lt?: string;
696
+ status?: EmailStatus;
697
+ to?: string;
698
+ };
699
+ };
700
+ export type ListEmailRecordsResponse = Array<EmailRecord>;
701
+ export type ListEmailRecordsError = unknown;
702
+ export type GetEmailRecordData = {
703
+ path: {
704
+ emailRecordId: string;
705
+ };
706
+ };
707
+ export type GetEmailRecordResponse = EmailRecord;
708
+ export type GetEmailRecordError = unknown;
709
+ export type UpdateEmailRecordData = {
710
+ body: UpdateEmailRecordDto;
711
+ path: {
712
+ emailRecordId: string;
713
+ };
714
+ };
715
+ export type UpdateEmailRecordResponse = EmailRecord;
716
+ export type UpdateEmailRecordError = unknown;
717
+ export type DeleteEmailRecordData = {
718
+ path: {
719
+ emailRecordId: string;
720
+ };
721
+ };
722
+ export type DeleteEmailRecordResponse = void;
723
+ export type DeleteEmailRecordError = unknown;
724
+ export type SendSmsData = {
725
+ body: SendSmsDto;
726
+ };
727
+ export type SendSmsResponse = void;
728
+ export type SendSmsError = unknown;
729
+ export type CreateSmsRecordData = {
730
+ body: CreateSmsRecordDto;
731
+ };
732
+ export type CreateSmsRecordResponse = SmsRecord;
733
+ export type CreateSmsRecordError = unknown;
734
+ export type ListSmsRecordsData = {
735
+ query?: {
736
+ _limit?: number;
737
+ _offset?: number;
738
+ _sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
739
+ createdAt_gt?: string;
740
+ createdAt_lt?: string;
741
+ phone?: string;
742
+ sentAt_gt?: string;
743
+ sentAt_lt?: string;
744
+ sign?: string;
745
+ status?: SmsStatus;
746
+ };
747
+ };
748
+ export type ListSmsRecordsResponse = Array<SmsRecord>;
749
+ export type ListSmsRecordsError = unknown;
750
+ export type GetSmsRecordData = {
751
+ path: {
752
+ smsRecordId: string;
753
+ };
754
+ };
755
+ export type GetSmsRecordResponse = SmsRecord;
756
+ export type GetSmsRecordError = unknown;
757
+ export type UpdateSmsRecordData = {
758
+ body: UpdateSmsRecordDto;
759
+ path: {
760
+ smsRecordId: string;
761
+ };
762
+ };
763
+ export type UpdateSmsRecordResponse = SmsRecord;
764
+ export type UpdateSmsRecordError = unknown;
765
+ export type DeleteSmsRecordData = {
766
+ path: {
767
+ smsRecordId: string;
768
+ };
769
+ };
770
+ export type DeleteSmsRecordResponse = void;
771
+ export type DeleteSmsRecordError = unknown;
772
+ export type ListIndustriesResponse = Array<Industry>;
773
+ export type ListIndustriesError = unknown;
774
+ export type ListRegionsResponse = Array<Region>;
775
+ export type ListRegionsError = unknown;
776
+ export type CreateRoleData = {
777
+ body: CreateRoleDto;
778
+ };
779
+ export type CreateRoleResponse = Role;
780
+ export type CreateRoleError = unknown;
781
+ export type ListRolesData = {
782
+ query?: {
783
+ _limit?: number;
784
+ _offset?: number;
785
+ _sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt';
786
+ key?: string;
787
+ name?: string;
788
+ name_like?: string;
789
+ };
790
+ };
791
+ export type ListRolesResponse = Array<Role>;
792
+ export type ListRolesError = unknown;
793
+ export type GetRoleData = {
794
+ path: {
795
+ roleIdOrKey: string;
796
+ };
797
+ };
798
+ export type GetRoleResponse = Role;
799
+ export type GetRoleError = unknown;
800
+ export type UpdateRoleData = {
801
+ body: UpdateRoleDto;
802
+ path: {
803
+ roleId: string;
804
+ };
805
+ };
806
+ export type UpdateRoleResponse = Role;
807
+ export type UpdateRoleError = unknown;
808
+ export type DeleteRoleData = {
809
+ path: {
810
+ roleId: string;
811
+ };
812
+ };
813
+ export type DeleteRoleResponse = void;
814
+ export type DeleteRoleError = unknown;