@36node/auth-sdk 1.0.0 → 1.1.1-pr-7-6599a4d843

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/types.d.ts CHANGED
@@ -1,564 +1,2663 @@
1
- import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from "axios";
2
- export interface HealthCheckResult {
1
+ export const $HealthCheckResult: {
2
+ readonly type: "object";
3
+ readonly properties: {
4
+ readonly message: {
5
+ readonly type: "string";
6
+ };
7
+ };
8
+ readonly required: readonly ["message"];
9
+ };
10
+ export const $LoginDto: {
11
+ readonly type: "object";
12
+ readonly properties: {
13
+ readonly login: {
14
+ readonly type: "string";
15
+ readonly description: "可以是 username/phone/Email";
16
+ };
17
+ readonly password: {
18
+ readonly type: "string";
19
+ readonly description: "密码";
20
+ };
21
+ };
22
+ readonly required: readonly ["login", "password"];
23
+ };
24
+ export const $User: {
25
+ readonly type: "object";
26
+ readonly properties: {
27
+ readonly password: {
28
+ readonly type: "string";
29
+ readonly description: "密码";
30
+ readonly writeOnly: true;
31
+ };
32
+ readonly hasPassword: {
33
+ readonly type: "boolean";
34
+ readonly description: "是否有密码";
35
+ readonly readOnly: true;
36
+ };
37
+ readonly avatar: {
38
+ readonly type: "string";
39
+ readonly description: "头像";
40
+ };
41
+ readonly data: {
42
+ readonly type: "string";
43
+ readonly description: "额外数据";
44
+ };
45
+ readonly email: {
46
+ readonly type: "string";
47
+ readonly description: "邮箱";
48
+ };
49
+ readonly name: {
50
+ readonly type: "string";
51
+ readonly description: "姓名";
52
+ };
53
+ readonly identity: {
54
+ readonly type: "string";
55
+ };
56
+ readonly identityVerifiedAt: {
57
+ readonly format: "date-time";
58
+ readonly type: "string";
59
+ readonly description: "实名认证时间";
60
+ };
61
+ readonly identityVerified: {
62
+ readonly type: "boolean";
63
+ readonly description: "实名认证是否通过";
64
+ };
65
+ readonly intro: {
66
+ readonly type: "string";
67
+ readonly description: "简介";
68
+ };
69
+ readonly language: {
70
+ readonly type: "string";
71
+ readonly description: "使用语言";
72
+ };
73
+ readonly lastLoginIp: {
74
+ readonly type: "string";
75
+ readonly description: "最后登录 IP";
76
+ };
77
+ readonly lastSeenAt: {
78
+ readonly format: "date-time";
79
+ readonly type: "string";
80
+ readonly description: "最后活跃时间";
81
+ };
82
+ readonly nickname: {
83
+ readonly type: "string";
84
+ readonly description: "昵称";
85
+ };
86
+ readonly ns: {
87
+ readonly type: "string";
88
+ readonly description: "所属命名空间";
89
+ };
90
+ readonly phone: {
91
+ readonly type: "string";
92
+ readonly description: "手机号";
93
+ };
94
+ readonly registerIp: {
95
+ readonly type: "string";
96
+ readonly description: "注册 IP";
97
+ };
98
+ readonly registerRegion: {
99
+ readonly type: "string";
100
+ readonly description: "注册地区,存地区编号";
101
+ };
102
+ readonly roles: {
103
+ readonly description: "角色";
104
+ readonly type: "array";
105
+ readonly items: {
106
+ readonly type: "string";
107
+ };
108
+ };
109
+ readonly super: {
110
+ readonly type: "boolean";
111
+ readonly description: "是否超级管理员";
112
+ };
113
+ readonly username: {
114
+ readonly type: "string";
115
+ readonly description: "用户名";
116
+ };
117
+ readonly employeeId: {
118
+ readonly type: "string";
119
+ readonly description: "员工编号";
120
+ };
121
+ readonly permissions: {
122
+ readonly description: "权限";
123
+ readonly type: "array";
124
+ readonly items: {
125
+ readonly type: "string";
126
+ };
127
+ };
128
+ readonly groups: {
129
+ readonly description: "团队";
130
+ readonly type: "array";
131
+ readonly items: {
132
+ readonly type: "string";
133
+ };
134
+ };
135
+ readonly lastLoginAt: {
136
+ readonly format: "date-time";
137
+ readonly type: "string";
138
+ readonly description: "最后登录时间";
139
+ };
140
+ readonly active: {
141
+ readonly type: "boolean";
142
+ readonly description: "是否启用";
143
+ };
144
+ readonly id: {
145
+ readonly type: "string";
146
+ readonly description: "Entity id";
147
+ };
148
+ readonly createdAt: {
149
+ readonly format: "date-time";
150
+ readonly type: "string";
151
+ readonly description: "Entity created at when";
152
+ };
153
+ readonly updatedAt: {
154
+ readonly format: "date-time";
155
+ readonly type: "string";
156
+ readonly description: "Entity updated at when";
157
+ };
158
+ readonly createdBy: {
159
+ readonly type: "string";
160
+ readonly description: "Entity created by who";
161
+ };
162
+ readonly updatedBy: {
163
+ readonly type: "string";
164
+ readonly description: "Entity updated by who";
165
+ };
166
+ };
167
+ readonly required: readonly ["id"];
168
+ };
169
+ export const $SessionWithToken: {
170
+ readonly type: "object";
171
+ readonly properties: {
172
+ readonly acl: {
173
+ readonly type: "object";
174
+ readonly description: "访问控制列表";
175
+ };
176
+ readonly expireAt: {
177
+ readonly format: "date-time";
178
+ readonly type: "string";
179
+ readonly description: "会话过期时间";
180
+ };
181
+ readonly key: {
182
+ readonly type: "string";
183
+ readonly description: "refresh token key";
184
+ };
185
+ readonly user: {
186
+ readonly description: "用户,实际存储 uid";
187
+ readonly allOf: readonly [{
188
+ readonly $ref: "#/components/schemas/User";
189
+ }];
190
+ };
191
+ readonly client: {
192
+ readonly type: "string";
193
+ readonly description: "客户端/设备";
194
+ };
195
+ readonly id: {
196
+ readonly type: "string";
197
+ readonly description: "Entity id";
198
+ };
199
+ readonly createdAt: {
200
+ readonly format: "date-time";
201
+ readonly type: "string";
202
+ readonly description: "Entity created at when";
203
+ };
204
+ readonly updatedAt: {
205
+ readonly format: "date-time";
206
+ readonly type: "string";
207
+ readonly description: "Entity updated at when";
208
+ };
209
+ readonly createdBy: {
210
+ readonly type: "string";
211
+ readonly description: "Entity created by who";
212
+ };
213
+ readonly updatedBy: {
214
+ readonly type: "string";
215
+ readonly description: "Entity updated by who";
216
+ };
217
+ readonly token: {
218
+ readonly type: "string";
219
+ readonly description: "token";
220
+ };
221
+ readonly tokenExpireAt: {
222
+ readonly format: "date-time";
223
+ readonly type: "string";
224
+ readonly description: "token 过期时间";
225
+ };
226
+ };
227
+ readonly required: readonly ["expireAt", "key", "user", "id", "token", "tokenExpireAt"];
228
+ };
229
+ export const $LoginByEmailDto: {
230
+ readonly type: "object";
231
+ readonly properties: {
232
+ readonly email: {
233
+ readonly type: "string";
234
+ readonly description: "邮箱";
235
+ };
236
+ readonly key: {
237
+ readonly type: "string";
238
+ readonly description: "验证码 key";
239
+ };
240
+ readonly code: {
241
+ readonly type: "string";
242
+ readonly description: "验证码 code";
243
+ };
244
+ };
245
+ readonly required: readonly ["email", "key", "code"];
246
+ };
247
+ export const $LoginByPhoneDto: {
248
+ readonly type: "object";
249
+ readonly properties: {
250
+ readonly phone: {
251
+ readonly type: "string";
252
+ readonly description: "手机号";
253
+ };
254
+ readonly key: {
255
+ readonly type: "string";
256
+ readonly description: "验证码 key";
257
+ };
258
+ readonly code: {
259
+ readonly type: "string";
260
+ readonly description: "验证码 code";
261
+ };
262
+ };
263
+ readonly required: readonly ["phone", "key", "code"];
264
+ };
265
+ export const $RegisterDto: {
266
+ readonly type: "object";
267
+ readonly properties: {
268
+ readonly username: {
269
+ readonly type: "string";
270
+ readonly description: "用户名";
271
+ };
272
+ readonly password: {
273
+ readonly type: "string";
274
+ readonly description: "密码";
275
+ };
276
+ readonly ns: {
277
+ readonly type: "string";
278
+ readonly description: "命名空间";
279
+ };
280
+ };
281
+ readonly required: readonly ["username", "password"];
282
+ };
283
+ export const $RegisterbyPhoneDto: {
284
+ readonly type: "object";
285
+ readonly properties: {
286
+ readonly phone: {
287
+ readonly type: "string";
288
+ readonly description: "手机号";
289
+ };
290
+ readonly key: {
291
+ readonly type: "string";
292
+ readonly description: "验证码 key";
293
+ };
294
+ readonly code: {
295
+ readonly type: "string";
296
+ readonly description: "验证码 code";
297
+ };
298
+ readonly ns: {
299
+ readonly type: "string";
300
+ readonly description: "命名空间";
301
+ };
302
+ };
303
+ readonly required: readonly ["phone", "key", "code"];
304
+ };
305
+ export const $RegisterByEmailDto: {
306
+ readonly type: "object";
307
+ readonly properties: {
308
+ readonly email: {
309
+ readonly type: "string";
310
+ readonly description: "邮箱";
311
+ };
312
+ readonly key: {
313
+ readonly type: "string";
314
+ readonly description: "验证码 key";
315
+ };
316
+ readonly code: {
317
+ readonly type: "string";
318
+ readonly description: "验证码 code";
319
+ };
320
+ readonly ns: {
321
+ readonly type: "string";
322
+ readonly description: "命名空间";
323
+ };
324
+ };
325
+ readonly required: readonly ["email", "key", "code"];
326
+ };
327
+ export const $SignTokenDto: {
328
+ readonly type: "object";
329
+ readonly properties: {
330
+ readonly expiresIn: {
331
+ readonly type: "string";
332
+ readonly description: "short time span string\n\nrefs: https://github.com/vercel/ms\n\neg: \"2 days\", \"10h\", \"7d\", \"120s\", \"2.5 hrs\", \"2h\", \"1m\", \"5s\", \"1y\", \"100\", \"1y1m1d\"\n\nm => minute\nh => hour\nd => day\nw => week\nM => month\ny => year\ns => second\nms => millisecond\n无单位 => millisecond";
333
+ };
334
+ readonly acl: {
335
+ readonly type: "object";
336
+ readonly description: "访问控制列表";
337
+ };
338
+ readonly uid: {
339
+ readonly type: "string";
340
+ readonly description: "user id";
341
+ };
342
+ };
343
+ readonly required: readonly ["expiresIn", "uid"];
344
+ };
345
+ export const $Token: {
346
+ readonly type: "object";
347
+ readonly properties: {
348
+ readonly token: {
349
+ readonly type: "string";
350
+ readonly description: "token";
351
+ };
352
+ readonly tokenExpireAt: {
353
+ readonly format: "date-time";
354
+ readonly type: "string";
355
+ readonly description: "token 过期时间";
356
+ };
357
+ };
358
+ readonly required: readonly ["token", "tokenExpireAt"];
359
+ };
360
+ export const $RefreshTokenDto: {
361
+ readonly type: "object";
362
+ readonly properties: {
363
+ readonly key: {
364
+ readonly type: "string";
365
+ readonly description: "user id";
366
+ };
367
+ };
368
+ readonly required: readonly ["key"];
369
+ };
370
+ export const $CreateUserDto: {
371
+ readonly type: "object";
372
+ readonly properties: {
373
+ readonly password: {
374
+ readonly type: "string";
375
+ readonly description: "密码";
376
+ readonly writeOnly: true;
377
+ };
378
+ readonly hasPassword: {
379
+ readonly type: "boolean";
380
+ readonly description: "是否有密码";
381
+ readonly readOnly: true;
382
+ };
383
+ readonly avatar: {
384
+ readonly type: "string";
385
+ readonly description: "头像";
386
+ };
387
+ readonly data: {
388
+ readonly type: "string";
389
+ readonly description: "额外数据";
390
+ };
391
+ readonly email: {
392
+ readonly type: "string";
393
+ readonly description: "邮箱";
394
+ };
395
+ readonly name: {
396
+ readonly type: "string";
397
+ readonly description: "姓名";
398
+ };
399
+ readonly identity: {
400
+ readonly type: "string";
401
+ };
402
+ readonly identityVerifiedAt: {
403
+ readonly format: "date-time";
404
+ readonly type: "string";
405
+ readonly description: "实名认证时间";
406
+ };
407
+ readonly identityVerified: {
408
+ readonly type: "boolean";
409
+ readonly description: "实名认证是否通过";
410
+ };
411
+ readonly intro: {
412
+ readonly type: "string";
413
+ readonly description: "简介";
414
+ };
415
+ readonly language: {
416
+ readonly type: "string";
417
+ readonly description: "使用语言";
418
+ };
419
+ readonly nickname: {
420
+ readonly type: "string";
421
+ readonly description: "昵称";
422
+ };
423
+ readonly ns: {
424
+ readonly type: "string";
425
+ readonly description: "所属命名空间";
426
+ };
427
+ readonly phone: {
428
+ readonly type: "string";
429
+ readonly description: "手机号";
430
+ };
431
+ readonly registerRegion: {
432
+ readonly type: "string";
433
+ readonly description: "注册地区,存地区编号";
434
+ };
435
+ readonly roles: {
436
+ readonly description: "角色";
437
+ readonly type: "array";
438
+ readonly items: {
439
+ readonly type: "string";
440
+ };
441
+ };
442
+ readonly super: {
443
+ readonly type: "boolean";
444
+ readonly description: "是否超级管理员";
445
+ };
446
+ readonly username: {
447
+ readonly type: "string";
448
+ readonly description: "用户名";
449
+ };
450
+ readonly employeeId: {
451
+ readonly type: "string";
452
+ readonly description: "员工编号";
453
+ };
454
+ readonly permissions: {
455
+ readonly description: "权限";
456
+ readonly type: "array";
457
+ readonly items: {
458
+ readonly type: "string";
459
+ };
460
+ };
461
+ readonly groups: {
462
+ readonly description: "团队";
463
+ readonly type: "array";
464
+ readonly items: {
465
+ readonly type: "string";
466
+ };
467
+ };
468
+ readonly active: {
469
+ readonly type: "boolean";
470
+ readonly description: "是否启用";
471
+ };
472
+ };
473
+ };
474
+ export const $UpdateUserDto: {
475
+ readonly type: "object";
476
+ readonly properties: {
477
+ readonly hasPassword: {
478
+ readonly type: "boolean";
479
+ readonly description: "是否有密码";
480
+ readonly readOnly: true;
481
+ };
482
+ readonly avatar: {
483
+ readonly type: "string";
484
+ readonly description: "头像";
485
+ };
486
+ readonly data: {
487
+ readonly type: "string";
488
+ readonly description: "额外数据";
489
+ };
490
+ readonly email: {
491
+ readonly type: "string";
492
+ readonly description: "邮箱";
493
+ };
494
+ readonly name: {
495
+ readonly type: "string";
496
+ readonly description: "姓名";
497
+ };
498
+ readonly identity: {
499
+ readonly type: "string";
500
+ };
501
+ readonly identityVerifiedAt: {
502
+ readonly format: "date-time";
503
+ readonly type: "string";
504
+ readonly description: "实名认证时间";
505
+ };
506
+ readonly identityVerified: {
507
+ readonly type: "boolean";
508
+ readonly description: "实名认证是否通过";
509
+ };
510
+ readonly intro: {
511
+ readonly type: "string";
512
+ readonly description: "简介";
513
+ };
514
+ readonly language: {
515
+ readonly type: "string";
516
+ readonly description: "使用语言";
517
+ };
518
+ readonly lastLoginIp: {
519
+ readonly type: "string";
520
+ readonly description: "最后登录 IP";
521
+ };
522
+ readonly lastSeenAt: {
523
+ readonly format: "date-time";
524
+ readonly type: "string";
525
+ readonly description: "最后活跃时间";
526
+ };
527
+ readonly nickname: {
528
+ readonly type: "string";
529
+ readonly description: "昵称";
530
+ };
531
+ readonly ns: {
532
+ readonly type: "string";
533
+ readonly description: "所属命名空间";
534
+ };
535
+ readonly phone: {
536
+ readonly type: "string";
537
+ readonly description: "手机号";
538
+ };
539
+ readonly registerIp: {
540
+ readonly type: "string";
541
+ readonly description: "注册 IP";
542
+ };
543
+ readonly registerRegion: {
544
+ readonly type: "string";
545
+ readonly description: "注册地区,存地区编号";
546
+ };
547
+ readonly roles: {
548
+ readonly description: "角色";
549
+ readonly type: "array";
550
+ readonly items: {
551
+ readonly type: "string";
552
+ };
553
+ };
554
+ readonly super: {
555
+ readonly type: "boolean";
556
+ readonly description: "是否超级管理员";
557
+ };
558
+ readonly username: {
559
+ readonly type: "string";
560
+ readonly description: "用户名";
561
+ };
562
+ readonly employeeId: {
563
+ readonly type: "string";
564
+ readonly description: "员工编号";
565
+ };
566
+ readonly permissions: {
567
+ readonly description: "权限";
568
+ readonly type: "array";
569
+ readonly items: {
570
+ readonly type: "string";
571
+ };
572
+ };
573
+ readonly groups: {
574
+ readonly description: "团队";
575
+ readonly type: "array";
576
+ readonly items: {
577
+ readonly type: "string";
578
+ };
579
+ };
580
+ readonly lastLoginAt: {
581
+ readonly format: "date-time";
582
+ readonly type: "string";
583
+ readonly description: "最后登录时间";
584
+ };
585
+ readonly active: {
586
+ readonly type: "boolean";
587
+ readonly description: "是否启用";
588
+ };
589
+ };
590
+ };
591
+ export const $ResetPasswordDto: {
592
+ readonly type: "object";
593
+ readonly properties: {
594
+ readonly password: {
595
+ readonly type: "string";
596
+ readonly description: "密码";
597
+ };
598
+ };
599
+ };
600
+ export const $UpdatePasswordDto: {
601
+ readonly type: "object";
602
+ readonly properties: {
603
+ readonly oldPassword: {
604
+ readonly type: "string";
605
+ readonly description: "旧密码";
606
+ };
607
+ readonly newPassword: {
608
+ readonly type: "string";
609
+ readonly description: "新密码";
610
+ };
611
+ };
612
+ readonly required: readonly ["newPassword"];
613
+ };
614
+ export const $CreateNamespaceDto: {
615
+ readonly type: "object";
616
+ readonly properties: {
617
+ readonly data: {
618
+ readonly type: "string";
619
+ readonly description: "额外数据";
620
+ };
621
+ readonly desc: {
622
+ readonly type: "string";
623
+ readonly description: "描述";
624
+ };
625
+ readonly labels: {
626
+ readonly description: "标签";
627
+ readonly type: "array";
628
+ readonly items: {
629
+ readonly type: "string";
630
+ };
631
+ };
632
+ readonly name: {
633
+ readonly type: "string";
634
+ readonly description: "名称";
635
+ };
636
+ readonly key: {
637
+ readonly type: "string";
638
+ readonly description: "命名空间的 key\n\n允许的字符 ^[a-zA-Z][a-zA-Z0-9._/-]{0,30}$";
639
+ };
640
+ readonly ns: {
641
+ readonly type: "string";
642
+ readonly description: "所属的 namespace";
643
+ };
644
+ readonly permissions: {
645
+ readonly description: "权限";
646
+ readonly type: "array";
647
+ readonly items: {
648
+ readonly type: "string";
649
+ };
650
+ };
651
+ readonly active: {
652
+ readonly type: "boolean";
653
+ readonly description: "是否启用";
654
+ };
655
+ readonly company: {
656
+ readonly type: "string";
657
+ readonly description: "公司";
658
+ };
659
+ readonly defaultPassword: {
660
+ readonly type: "string";
661
+ readonly description: "默认密码";
662
+ };
663
+ };
664
+ readonly required: readonly ["name", "key"];
665
+ };
666
+ export const $Namespace: {
667
+ readonly type: "object";
668
+ readonly properties: {
669
+ readonly data: {
670
+ readonly type: "string";
671
+ readonly description: "额外数据";
672
+ };
673
+ readonly desc: {
674
+ readonly type: "string";
675
+ readonly description: "描述";
676
+ };
677
+ readonly labels: {
678
+ readonly description: "标签";
679
+ readonly type: "array";
680
+ readonly items: {
681
+ readonly type: "string";
682
+ };
683
+ };
684
+ readonly name: {
685
+ readonly type: "string";
686
+ readonly description: "名称";
687
+ };
688
+ readonly key: {
689
+ readonly type: "string";
690
+ readonly description: "命名空间的 key\n\n允许的字符 ^[a-zA-Z][a-zA-Z0-9._/-]{0,30}$";
691
+ };
692
+ readonly ns: {
693
+ readonly type: "string";
694
+ readonly description: "所属的 namespace";
695
+ };
696
+ readonly permissions: {
697
+ readonly description: "权限";
698
+ readonly type: "array";
699
+ readonly items: {
700
+ readonly type: "string";
701
+ };
702
+ };
703
+ readonly active: {
704
+ readonly type: "boolean";
705
+ readonly description: "是否启用";
706
+ };
707
+ readonly company: {
708
+ readonly type: "string";
709
+ readonly description: "公司";
710
+ };
711
+ readonly defaultPassword: {
712
+ readonly type: "string";
713
+ readonly description: "默认密码";
714
+ };
715
+ readonly id: {
716
+ readonly type: "string";
717
+ readonly description: "Entity id";
718
+ };
719
+ readonly createdAt: {
720
+ readonly format: "date-time";
721
+ readonly type: "string";
722
+ readonly description: "Entity created at when";
723
+ };
724
+ readonly updatedAt: {
725
+ readonly format: "date-time";
726
+ readonly type: "string";
727
+ readonly description: "Entity updated at when";
728
+ };
729
+ readonly createdBy: {
730
+ readonly type: "string";
731
+ readonly description: "Entity created by who";
732
+ };
733
+ readonly updatedBy: {
734
+ readonly type: "string";
735
+ readonly description: "Entity updated by who";
736
+ };
737
+ };
738
+ readonly required: readonly ["name", "key", "id"];
739
+ };
740
+ export const $UpdateNamespaceDto: {
741
+ readonly type: "object";
742
+ readonly properties: {
743
+ readonly data: {
744
+ readonly type: "string";
745
+ readonly description: "额外数据";
746
+ };
747
+ readonly desc: {
748
+ readonly type: "string";
749
+ readonly description: "描述";
750
+ };
751
+ readonly labels: {
752
+ readonly description: "标签";
753
+ readonly type: "array";
754
+ readonly items: {
755
+ readonly type: "string";
756
+ };
757
+ };
758
+ readonly name: {
759
+ readonly type: "string";
760
+ readonly description: "名称";
761
+ };
762
+ readonly permissions: {
763
+ readonly description: "权限";
764
+ readonly type: "array";
765
+ readonly items: {
766
+ readonly type: "string";
767
+ };
768
+ };
769
+ readonly active: {
770
+ readonly type: "boolean";
771
+ readonly description: "是否启用";
772
+ };
773
+ readonly company: {
774
+ readonly type: "string";
775
+ readonly description: "公司";
776
+ };
777
+ readonly defaultPassword: {
778
+ readonly type: "string";
779
+ readonly description: "默认密码";
780
+ };
781
+ };
782
+ };
783
+ export const $CreateSessionDto: {
784
+ readonly type: "object";
785
+ readonly properties: {
786
+ readonly uid: {
787
+ readonly type: "string";
788
+ readonly description: "用户 ID";
789
+ };
790
+ readonly acl: {
791
+ readonly type: "object";
792
+ readonly description: "访问控制列表";
793
+ };
794
+ readonly expireAt: {
795
+ readonly format: "date-time";
796
+ readonly type: "string";
797
+ readonly description: "会话过期时间";
798
+ };
799
+ readonly client: {
800
+ readonly type: "string";
801
+ readonly description: "客户端/设备";
802
+ };
803
+ };
804
+ readonly required: readonly ["uid", "expireAt"];
805
+ };
806
+ export const $Session: {
807
+ readonly type: "object";
808
+ readonly properties: {
809
+ readonly acl: {
810
+ readonly type: "object";
811
+ readonly description: "访问控制列表";
812
+ };
813
+ readonly expireAt: {
814
+ readonly format: "date-time";
815
+ readonly type: "string";
816
+ readonly description: "会话过期时间";
817
+ };
818
+ readonly key: {
819
+ readonly type: "string";
820
+ readonly description: "refresh token key";
821
+ };
822
+ readonly user: {
823
+ readonly description: "用户,实际存储 uid";
824
+ readonly allOf: readonly [{
825
+ readonly $ref: "#/components/schemas/User";
826
+ }];
827
+ };
828
+ readonly client: {
829
+ readonly type: "string";
830
+ readonly description: "客户端/设备";
831
+ };
832
+ readonly id: {
833
+ readonly type: "string";
834
+ readonly description: "Entity id";
835
+ };
836
+ readonly createdAt: {
837
+ readonly format: "date-time";
838
+ readonly type: "string";
839
+ readonly description: "Entity created at when";
840
+ };
841
+ readonly updatedAt: {
842
+ readonly format: "date-time";
843
+ readonly type: "string";
844
+ readonly description: "Entity updated at when";
845
+ };
846
+ readonly createdBy: {
847
+ readonly type: "string";
848
+ readonly description: "Entity created by who";
849
+ };
850
+ readonly updatedBy: {
851
+ readonly type: "string";
852
+ readonly description: "Entity updated by who";
853
+ };
854
+ };
855
+ readonly required: readonly ["expireAt", "key", "user", "id"];
856
+ };
857
+ export const $UpdateSessionDto: {
858
+ readonly type: "object";
859
+ readonly properties: {
860
+ readonly acl: {
861
+ readonly type: "object";
862
+ readonly description: "访问控制列表";
863
+ };
864
+ readonly expireAt: {
865
+ readonly format: "date-time";
866
+ readonly type: "string";
867
+ readonly description: "会话过期时间";
868
+ };
869
+ readonly client: {
870
+ readonly type: "string";
871
+ readonly description: "客户端/设备";
872
+ };
873
+ readonly uid: {
874
+ readonly type: "string";
875
+ readonly description: "用户 ID";
876
+ };
877
+ };
878
+ };
879
+ export const $CreateCaptchaDto: {
880
+ readonly type: "object";
881
+ readonly properties: {
882
+ readonly code: {
883
+ readonly type: "string";
884
+ readonly description: "验证码";
885
+ };
886
+ readonly expireAt: {
887
+ readonly format: "date-time";
888
+ readonly type: "string";
889
+ readonly description: "过期时间";
890
+ };
891
+ readonly key: {
892
+ readonly type: "string";
893
+ readonly description: "key";
894
+ };
895
+ };
896
+ readonly required: readonly ["key"];
897
+ };
898
+ export const $Captcha: {
899
+ readonly type: "object";
900
+ readonly properties: {
901
+ readonly code: {
902
+ readonly type: "string";
903
+ readonly description: "验证码";
904
+ };
905
+ readonly expireAt: {
906
+ readonly format: "date-time";
907
+ readonly type: "string";
908
+ readonly description: "过期时间";
909
+ };
910
+ readonly key: {
911
+ readonly type: "string";
912
+ readonly description: "key";
913
+ };
914
+ readonly id: {
915
+ readonly type: "string";
916
+ readonly description: "Entity id";
917
+ };
918
+ readonly createdAt: {
919
+ readonly format: "date-time";
920
+ readonly type: "string";
921
+ readonly description: "Entity created at when";
922
+ };
923
+ readonly updatedAt: {
924
+ readonly format: "date-time";
925
+ readonly type: "string";
926
+ readonly description: "Entity updated at when";
927
+ };
928
+ readonly createdBy: {
929
+ readonly type: "string";
930
+ readonly description: "Entity created by who";
931
+ };
932
+ readonly updatedBy: {
933
+ readonly type: "string";
934
+ readonly description: "Entity updated by who";
935
+ };
936
+ };
937
+ readonly required: readonly ["code", "expireAt", "key", "id"];
938
+ };
939
+ export const $UpdateCaptchaDto: {
940
+ readonly type: "object";
941
+ readonly properties: {
942
+ readonly code: {
943
+ readonly type: "string";
944
+ readonly description: "验证码";
945
+ };
946
+ readonly expireAt: {
947
+ readonly format: "date-time";
948
+ readonly type: "string";
949
+ readonly description: "过期时间";
950
+ };
951
+ readonly key: {
952
+ readonly type: "string";
953
+ readonly description: "key";
954
+ };
955
+ };
956
+ };
957
+ export const $SendEmailDto: {
958
+ readonly type: "object";
959
+ readonly properties: {
960
+ readonly from: {
961
+ readonly type: "string";
962
+ };
963
+ readonly to: {
964
+ readonly type: "string";
965
+ };
966
+ readonly subject: {
967
+ readonly type: "string";
968
+ };
969
+ readonly content: {
970
+ readonly type: "string";
971
+ };
972
+ };
973
+ readonly required: readonly ["from", "to", "subject", "content"];
974
+ };
975
+ export const $EmailStatus: {
976
+ readonly type: "string";
977
+ readonly description: "发送状态";
978
+ readonly enum: readonly ["pending", "sent"];
979
+ };
980
+ export const $CreateEmailRecordDto: {
981
+ readonly type: "object";
982
+ readonly properties: {
983
+ readonly status: {
984
+ readonly $ref: "#/components/schemas/EmailStatus";
985
+ };
986
+ readonly from: {
987
+ readonly type: "string";
988
+ readonly description: "发件者";
989
+ };
990
+ readonly to: {
991
+ readonly type: "string";
992
+ readonly description: "收件者";
993
+ };
994
+ readonly subject: {
995
+ readonly type: "string";
996
+ readonly description: "主题";
997
+ };
998
+ readonly content: {
999
+ readonly type: "string";
1000
+ readonly description: "内容";
1001
+ };
1002
+ readonly sentAt: {
1003
+ readonly format: "date-time";
1004
+ readonly type: "string";
1005
+ readonly description: "发送时间";
1006
+ };
1007
+ };
1008
+ readonly required: readonly ["status", "from", "to", "subject", "content"];
1009
+ };
1010
+ export const $EmailRecord: {
1011
+ readonly type: "object";
1012
+ readonly properties: {
1013
+ readonly status: {
1014
+ readonly $ref: "#/components/schemas/EmailStatus";
1015
+ };
1016
+ readonly from: {
1017
+ readonly type: "string";
1018
+ readonly description: "发件者";
1019
+ };
1020
+ readonly to: {
1021
+ readonly type: "string";
1022
+ readonly description: "收件者";
1023
+ };
1024
+ readonly subject: {
1025
+ readonly type: "string";
1026
+ readonly description: "主题";
1027
+ };
1028
+ readonly content: {
1029
+ readonly type: "string";
1030
+ readonly description: "内容";
1031
+ };
1032
+ readonly sentAt: {
1033
+ readonly format: "date-time";
1034
+ readonly type: "string";
1035
+ readonly description: "发送时间";
1036
+ };
1037
+ readonly id: {
1038
+ readonly type: "string";
1039
+ readonly description: "Entity id";
1040
+ };
1041
+ readonly createdAt: {
1042
+ readonly format: "date-time";
1043
+ readonly type: "string";
1044
+ readonly description: "Entity created at when";
1045
+ };
1046
+ readonly updatedAt: {
1047
+ readonly format: "date-time";
1048
+ readonly type: "string";
1049
+ readonly description: "Entity updated at when";
1050
+ };
1051
+ readonly createdBy: {
1052
+ readonly type: "string";
1053
+ readonly description: "Entity created by who";
1054
+ };
1055
+ readonly updatedBy: {
1056
+ readonly type: "string";
1057
+ readonly description: "Entity updated by who";
1058
+ };
1059
+ };
1060
+ readonly required: readonly ["status", "from", "to", "subject", "content", "id"];
1061
+ };
1062
+ export const $UpdateEmailRecordDto: {
1063
+ readonly type: "object";
1064
+ readonly properties: {
1065
+ readonly status: {
1066
+ readonly $ref: "#/components/schemas/EmailStatus";
1067
+ };
1068
+ readonly from: {
1069
+ readonly type: "string";
1070
+ readonly description: "发件者";
1071
+ };
1072
+ readonly to: {
1073
+ readonly type: "string";
1074
+ readonly description: "收件者";
1075
+ };
1076
+ readonly subject: {
1077
+ readonly type: "string";
1078
+ readonly description: "主题";
1079
+ };
1080
+ readonly content: {
1081
+ readonly type: "string";
1082
+ readonly description: "内容";
1083
+ };
1084
+ readonly sentAt: {
1085
+ readonly format: "date-time";
1086
+ readonly type: "string";
1087
+ readonly description: "发送时间";
1088
+ };
1089
+ };
1090
+ };
1091
+ export const $Industry: {
1092
+ readonly type: "object";
1093
+ readonly properties: {
1094
+ readonly code: {
1095
+ readonly type: "string";
1096
+ readonly description: "编码";
1097
+ };
1098
+ readonly name: {
1099
+ readonly type: "string";
1100
+ readonly description: "名称";
1101
+ };
1102
+ readonly children: {
1103
+ readonly description: "子集";
1104
+ readonly type: "array";
1105
+ readonly items: {
1106
+ readonly $ref: "#/components/schemas/Industry";
1107
+ };
1108
+ };
1109
+ };
1110
+ readonly required: readonly ["code", "name", "children"];
1111
+ };
1112
+ export const $Region: {
1113
+ readonly type: "object";
1114
+ readonly properties: {
1115
+ readonly code: {
1116
+ readonly type: "string";
1117
+ readonly description: "缩写";
1118
+ };
1119
+ readonly nameZh: {
1120
+ readonly type: "string";
1121
+ readonly description: "中文名称";
1122
+ };
1123
+ readonly namePinyin: {
1124
+ readonly type: "string";
1125
+ readonly description: "中文拼音";
1126
+ };
1127
+ readonly nameEn: {
1128
+ readonly type: "string";
1129
+ readonly description: "英文名称";
1130
+ };
1131
+ readonly dialingPrefix: {
1132
+ readonly type: "string";
1133
+ readonly description: "电话前缀";
1134
+ };
1135
+ };
1136
+ readonly required: readonly ["code", "nameZh", "namePinyin", "nameEn", "dialingPrefix"];
1137
+ };
1138
+ export const $SendSmsDto: {
1139
+ readonly type: "object";
1140
+ readonly properties: {
1141
+ readonly phone: {
1142
+ readonly type: "string";
1143
+ };
1144
+ readonly sign: {
1145
+ readonly type: "string";
1146
+ };
1147
+ readonly template: {
1148
+ readonly type: "string";
1149
+ };
1150
+ readonly params: {
1151
+ readonly type: "object";
1152
+ };
1153
+ };
1154
+ readonly required: readonly ["phone", "sign", "template"];
1155
+ };
1156
+ export const $SmsStatus: {
1157
+ readonly type: "string";
1158
+ readonly description: "发送状态";
1159
+ readonly enum: readonly ["pending", "sent"];
1160
+ };
1161
+ export const $CreateSmsRecordDto: {
1162
+ readonly type: "object";
1163
+ readonly properties: {
1164
+ readonly status: {
1165
+ readonly $ref: "#/components/schemas/SmsStatus";
1166
+ };
1167
+ readonly phone: {
1168
+ readonly type: "string";
1169
+ readonly description: "手机号";
1170
+ };
1171
+ readonly sign: {
1172
+ readonly type: "string";
1173
+ readonly description: "签名";
1174
+ };
1175
+ readonly template: {
1176
+ readonly type: "string";
1177
+ readonly description: "模板";
1178
+ };
1179
+ readonly params: {
1180
+ readonly type: "string";
1181
+ readonly description: "参数";
1182
+ };
1183
+ readonly sentAt: {
1184
+ readonly format: "date-time";
1185
+ readonly type: "string";
1186
+ readonly description: "发送时间";
1187
+ };
1188
+ };
1189
+ readonly required: readonly ["status", "phone", "sign", "template"];
1190
+ };
1191
+ export const $SmsRecord: {
1192
+ readonly type: "object";
1193
+ readonly properties: {
1194
+ readonly status: {
1195
+ readonly $ref: "#/components/schemas/SmsStatus";
1196
+ };
1197
+ readonly phone: {
1198
+ readonly type: "string";
1199
+ readonly description: "手机号";
1200
+ };
1201
+ readonly sign: {
1202
+ readonly type: "string";
1203
+ readonly description: "签名";
1204
+ };
1205
+ readonly template: {
1206
+ readonly type: "string";
1207
+ readonly description: "模板";
1208
+ };
1209
+ readonly params: {
1210
+ readonly type: "string";
1211
+ readonly description: "参数";
1212
+ };
1213
+ readonly sentAt: {
1214
+ readonly format: "date-time";
1215
+ readonly type: "string";
1216
+ readonly description: "发送时间";
1217
+ };
1218
+ readonly id: {
1219
+ readonly type: "string";
1220
+ readonly description: "Entity id";
1221
+ };
1222
+ readonly createdAt: {
1223
+ readonly format: "date-time";
1224
+ readonly type: "string";
1225
+ readonly description: "Entity created at when";
1226
+ };
1227
+ readonly updatedAt: {
1228
+ readonly format: "date-time";
1229
+ readonly type: "string";
1230
+ readonly description: "Entity updated at when";
1231
+ };
1232
+ readonly createdBy: {
1233
+ readonly type: "string";
1234
+ readonly description: "Entity created by who";
1235
+ };
1236
+ readonly updatedBy: {
1237
+ readonly type: "string";
1238
+ readonly description: "Entity updated by who";
1239
+ };
1240
+ };
1241
+ readonly required: readonly ["status", "phone", "sign", "template", "id"];
1242
+ };
1243
+ export const $UpdateSmsRecordDto: {
1244
+ readonly type: "object";
1245
+ readonly properties: {
1246
+ readonly status: {
1247
+ readonly $ref: "#/components/schemas/SmsStatus";
1248
+ };
1249
+ readonly phone: {
1250
+ readonly type: "string";
1251
+ readonly description: "手机号";
1252
+ };
1253
+ readonly sign: {
1254
+ readonly type: "string";
1255
+ readonly description: "签名";
1256
+ };
1257
+ readonly template: {
1258
+ readonly type: "string";
1259
+ readonly description: "模板";
1260
+ };
1261
+ readonly params: {
1262
+ readonly type: "string";
1263
+ readonly description: "参数";
1264
+ };
1265
+ readonly sentAt: {
1266
+ readonly format: "date-time";
1267
+ readonly type: "string";
1268
+ readonly description: "发送时间";
1269
+ };
1270
+ };
1271
+ };
1272
+ export type HealthCheckResult = {
3
1273
  message: string;
4
- }
5
- export interface CreateUserDto {
1274
+ };
1275
+ export type LoginDto = {
1276
+ login: string;
1277
+ password: string;
1278
+ };
1279
+ export type User = {
6
1280
  password?: string;
1281
+ readonly hasPassword?: boolean;
7
1282
  avatar?: string;
8
- intro?: string;
9
1283
  data?: string;
10
1284
  email?: string;
1285
+ name?: string;
1286
+ identity?: string;
1287
+ identityVerifiedAt?: string;
1288
+ identityVerified?: boolean;
1289
+ intro?: string;
11
1290
  language?: string;
12
- lastSeenAt?: string;
13
1291
  lastLoginIp?: string;
1292
+ lastSeenAt?: string;
14
1293
  nickname?: string;
15
- ns: string;
1294
+ ns?: string;
16
1295
  phone?: string;
17
1296
  registerIp?: string;
18
1297
  registerRegion?: string;
19
- roles?: string[];
1298
+ roles?: Array<string>;
20
1299
  super?: boolean;
21
1300
  username?: string;
22
- dialingPrefix?: string;
23
- }
24
- export enum IdentityType {
25
- ID = "ID"
26
- }
27
- export type IdentityTypeType = (typeof IdentityType)[keyof typeof IdentityType];
28
- export interface Identity {
29
- type?: IdentityType;
30
- name?: string;
31
- verifyAt?: string;
32
- verified: boolean;
33
- }
34
- export interface User {
1301
+ employeeId?: string;
1302
+ permissions?: Array<string>;
1303
+ groups?: Array<string>;
1304
+ lastLoginAt?: string;
1305
+ active?: boolean;
1306
+ id: string;
1307
+ createdAt?: string;
1308
+ updatedAt?: string;
1309
+ createdBy?: string;
1310
+ updatedBy?: string;
1311
+ };
1312
+ export type SessionWithToken = {
1313
+ acl?: {
1314
+ [key: string]: unknown;
1315
+ };
1316
+ expireAt: string;
1317
+ key: string;
1318
+ user: User;
1319
+ client?: string;
1320
+ id: string;
1321
+ createdAt?: string;
1322
+ updatedAt?: string;
1323
+ createdBy?: string;
1324
+ updatedBy?: string;
1325
+ token: string;
1326
+ tokenExpireAt: string;
1327
+ };
1328
+ export type LoginByEmailDto = {
1329
+ email: string;
1330
+ key: string;
1331
+ code: string;
1332
+ };
1333
+ export type LoginByPhoneDto = {
1334
+ phone: string;
1335
+ key: string;
1336
+ code: string;
1337
+ };
1338
+ export type RegisterDto = {
1339
+ username: string;
1340
+ password: string;
1341
+ ns?: string;
1342
+ };
1343
+ export type RegisterbyPhoneDto = {
1344
+ phone: string;
1345
+ key: string;
1346
+ code: string;
1347
+ ns?: string;
1348
+ };
1349
+ export type RegisterByEmailDto = {
1350
+ email: string;
1351
+ key: string;
1352
+ code: string;
1353
+ ns?: string;
1354
+ };
1355
+ export type SignTokenDto = {
1356
+ expiresIn: string;
1357
+ acl?: {
1358
+ [key: string]: unknown;
1359
+ };
1360
+ uid: string;
1361
+ };
1362
+ export type Token = {
1363
+ token: string;
1364
+ tokenExpireAt: string;
1365
+ };
1366
+ export type RefreshTokenDto = {
1367
+ key: string;
1368
+ };
1369
+ export type CreateUserDto = {
35
1370
  password?: string;
1371
+ readonly hasPassword?: boolean;
36
1372
  avatar?: string;
37
- intro?: string;
38
1373
  data?: string;
39
1374
  email?: string;
1375
+ name?: string;
1376
+ identity?: string;
1377
+ identityVerifiedAt?: string;
1378
+ identityVerified?: boolean;
1379
+ intro?: string;
40
1380
  language?: string;
41
- lastSeenAt?: string;
42
- lastLoginIp?: string;
43
1381
  nickname?: string;
44
- ns: string;
1382
+ ns?: string;
45
1383
  phone?: string;
46
- registerIp?: string;
47
1384
  registerRegion?: string;
48
- roles?: string[];
1385
+ roles?: Array<string>;
49
1386
  super?: boolean;
50
1387
  username?: string;
51
- dialingPrefix?: string;
52
- identity?: Identity;
53
- id: string;
54
- createAt?: string;
55
- updateAt?: string;
56
- createBy?: string;
57
- updateBy?: string;
58
- }
59
- export interface UpdateUserDto {
60
- password?: string;
1388
+ employeeId?: string;
1389
+ permissions?: Array<string>;
1390
+ groups?: Array<string>;
1391
+ active?: boolean;
1392
+ };
1393
+ export type UpdateUserDto = {
1394
+ readonly hasPassword?: boolean;
61
1395
  avatar?: string;
62
- intro?: string;
63
1396
  data?: string;
64
1397
  email?: string;
1398
+ name?: string;
1399
+ identity?: string;
1400
+ identityVerifiedAt?: string;
1401
+ identityVerified?: boolean;
1402
+ intro?: string;
65
1403
  language?: string;
66
- lastSeenAt?: string;
67
1404
  lastLoginIp?: string;
1405
+ lastSeenAt?: string;
68
1406
  nickname?: string;
69
1407
  ns?: string;
70
1408
  phone?: string;
71
1409
  registerIp?: string;
72
1410
  registerRegion?: string;
73
- roles?: string[];
1411
+ roles?: Array<string>;
74
1412
  super?: boolean;
75
1413
  username?: string;
76
- dialingPrefix?: string;
77
- }
78
- export interface CreateNamespaceDto {
1414
+ employeeId?: string;
1415
+ permissions?: Array<string>;
1416
+ groups?: Array<string>;
1417
+ lastLoginAt?: string;
1418
+ active?: boolean;
1419
+ };
1420
+ export type ResetPasswordDto = {
1421
+ password?: string;
1422
+ };
1423
+ export type UpdatePasswordDto = {
1424
+ oldPassword?: string;
1425
+ newPassword: string;
1426
+ };
1427
+ export type CreateNamespaceDto = {
79
1428
  data?: string;
80
1429
  desc?: string;
81
- labels?: string[];
1430
+ labels?: Array<string>;
82
1431
  name: string;
83
1432
  key: string;
84
- parent?: string;
85
- registerDefaultRoles?: string[];
86
- passwordRegExp?: string;
87
- }
88
- export interface Namespace {
1433
+ ns?: string;
1434
+ permissions?: Array<string>;
1435
+ active?: boolean;
1436
+ company?: string;
1437
+ defaultPassword?: string;
1438
+ };
1439
+ export type Namespace = {
89
1440
  data?: string;
90
1441
  desc?: string;
91
- labels?: string[];
1442
+ labels?: Array<string>;
92
1443
  name: string;
93
1444
  key: string;
94
- parent?: string;
95
- isScope: boolean;
96
- ns: string;
97
- registerDefaultRoles?: string[];
98
- passwordRegExp?: string;
1445
+ ns?: string;
1446
+ permissions?: Array<string>;
1447
+ active?: boolean;
1448
+ company?: string;
1449
+ defaultPassword?: string;
99
1450
  id: string;
100
- createAt?: string;
101
- updateAt?: string;
102
- createBy?: string;
103
- updateBy?: string;
104
- }
105
- export interface UpdateNamespaceDto {
1451
+ createdAt?: string;
1452
+ updatedAt?: string;
1453
+ createdBy?: string;
1454
+ updatedBy?: string;
1455
+ };
1456
+ export type UpdateNamespaceDto = {
106
1457
  data?: string;
107
1458
  desc?: string;
108
- labels?: string[];
1459
+ labels?: Array<string>;
109
1460
  name?: string;
110
- registerDefaultRoles?: string[];
111
- passwordRegExp?: string;
112
- }
113
- export enum CaptchaPurpose {
114
- REGISTER = "REGISTER",
115
- LOGIN = "LOGIN",
116
- RESET_PASSWORD = "RESET_PASSWORD",
117
- UPDATE_PHONE = "UPDATE_PHONE",
118
- UPDATE_EMAIL = "UPDATE_EMAIL"
119
- }
120
- export type CaptchaPurposeType = (typeof CaptchaPurpose)[keyof typeof CaptchaPurpose];
121
- export interface CreateCaptchaBySmsDto {
122
- purpose: CaptchaPurpose;
123
- phone: string;
124
- dialingPrefix: string;
125
- scope: string;
126
- }
127
- export interface CaptchaBySmsResult {
128
- purpose: CaptchaPurpose;
129
- phone: string;
130
- scope: string;
131
- dialingPrefix?: string;
132
- expireAt: string;
133
- }
134
- export interface CreateCaptchaByEmailDto {
135
- purpose: CaptchaPurpose;
136
- email: string;
137
- scope: string;
138
- }
139
- export interface CaptchaByEmailResult {
140
- purpose: CaptchaPurpose;
141
- email: string;
142
- scope: string;
143
- expireAt: string;
144
- }
145
- export interface CreateCaptchaByPhotoDto {
146
- purpose: CaptchaPurpose;
147
- key: string;
148
- scope: string;
149
- }
150
- export interface CaptchaByPhotoResult {
151
- purpose: CaptchaPurpose;
152
- capchaGifHex: string;
153
- scope: string;
154
- key: string;
155
- expireAt: string;
156
- }
157
- export interface CreateSessionDto {
1461
+ permissions?: Array<string>;
1462
+ active?: boolean;
1463
+ company?: string;
1464
+ defaultPassword?: string;
1465
+ };
1466
+ export type CreateSessionDto = {
158
1467
  uid: string;
159
- acl?: CreateSessionDto.Acl;
1468
+ acl?: {
1469
+ [key: string]: unknown;
1470
+ };
160
1471
  expireAt: string;
161
1472
  client?: string;
162
- tokenExpiresIn?: string;
163
- }
164
- export declare namespace CreateSessionDto {
165
- interface Acl {
166
- }
167
- }
168
- export interface Session {
169
- acl?: Session.Acl;
1473
+ };
1474
+ export type Session = {
1475
+ acl?: {
1476
+ [key: string]: unknown;
1477
+ };
170
1478
  expireAt: string;
171
1479
  key: string;
172
1480
  user: User;
173
1481
  client?: string;
174
- tokenExpiresIn?: string;
175
1482
  id: string;
176
- createAt?: string;
177
- updateAt?: string;
178
- createBy?: string;
179
- updateBy?: string;
180
- }
181
- export declare namespace Session {
182
- interface Acl {
183
- }
184
- }
185
- export interface UpdateSessionDto {
186
- acl?: UpdateSessionDto.Acl;
1483
+ createdAt?: string;
1484
+ updatedAt?: string;
1485
+ createdBy?: string;
1486
+ updatedBy?: string;
1487
+ };
1488
+ export type UpdateSessionDto = {
1489
+ acl?: {
1490
+ [key: string]: unknown;
1491
+ };
187
1492
  expireAt?: string;
188
1493
  client?: string;
189
- tokenExpiresIn?: string;
190
1494
  uid?: string;
191
- }
192
- export declare namespace UpdateSessionDto {
193
- interface Acl {
194
- }
195
- }
196
- export interface RestrictTokenDto {
197
- expiresIn: string;
198
- acl?: RestrictTokenDto.Acl;
1495
+ };
1496
+ export type CreateCaptchaDto = {
1497
+ code?: string;
1498
+ expireAt?: string;
199
1499
  key: string;
200
- ns?: string;
201
- }
202
- export declare namespace RestrictTokenDto {
203
- interface Acl {
204
- }
205
- }
206
- export interface OnlyToken {
207
- token: string;
208
- tokenExpireAt: string;
209
- }
210
- export interface Region {
1500
+ };
1501
+ export type Captcha = {
211
1502
  code: string;
212
- nameZh: string;
213
- namePinyin: string;
214
- nameEn: string;
215
- dialingPrefix: string;
216
- }
217
- export interface MyInfo {
218
- password?: string;
219
- avatar?: string;
220
- intro?: string;
221
- data?: string;
222
- email?: string;
223
- language?: string;
224
- lastSeenAt?: string;
225
- lastLoginIp?: string;
226
- nickname?: string;
227
- ns: string;
228
- phone?: string;
229
- registerIp?: string;
230
- registerRegion?: string;
231
- roles?: string[];
232
- super?: boolean;
233
- username?: string;
234
- dialingPrefix?: string;
235
- identity?: Identity;
236
- id: string;
237
- createAt?: string;
238
- updateAt?: string;
239
- createBy?: string;
240
- updateBy?: string;
241
- hasPassword: boolean;
242
- }
243
- export interface UpdateMyInfoDto {
244
- avatar?: string;
245
- registerRegion?: string;
246
- language?: string;
247
- nickname?: string;
248
- username?: string;
249
- intro?: string;
250
- }
251
- export interface UpdateMyPasswordDto {
252
- oldPassword?: string;
253
- newPassword: string;
254
- }
255
- export interface ResetMyPasswordDto {
256
- scope: string;
257
- code: string;
258
- newPassword: string;
259
- email?: string;
260
- phone?: string;
261
- dialingPrefix?: string;
262
- }
263
- export interface RegisterUserByPhoneDto {
264
- scope: string;
265
- phone: string;
266
- dialingPrefix: string;
267
- code: string;
268
- password?: string;
269
- }
270
- export interface SessionWithToken {
271
- user: MyInfo;
272
- acl?: SessionWithToken.Acl;
273
1503
  expireAt: string;
274
1504
  key: string;
275
- client?: string;
276
- tokenExpiresIn?: string;
277
1505
  id: string;
278
- createAt?: string;
279
- updateAt?: string;
280
- createBy?: string;
281
- updateBy?: string;
282
- token: string;
283
- tokenExpireAt: string;
284
- }
285
- export declare namespace SessionWithToken {
286
- interface Acl {
287
- }
288
- }
289
- export interface RegisterUserByEmailDto {
290
- scope: string;
291
- email: string;
1506
+ createdAt?: string;
1507
+ updatedAt?: string;
1508
+ createdBy?: string;
1509
+ updatedBy?: string;
1510
+ };
1511
+ export type UpdateCaptchaDto = {
1512
+ code?: string;
1513
+ expireAt?: string;
1514
+ key?: string;
1515
+ };
1516
+ export type SendEmailDto = {
1517
+ from: string;
1518
+ to: string;
1519
+ subject: string;
1520
+ content: string;
1521
+ };
1522
+ export type EmailStatus = 'pending' | 'sent';
1523
+ export type CreateEmailRecordDto = {
1524
+ status: EmailStatus;
1525
+ from: string;
1526
+ to: string;
1527
+ subject: string;
1528
+ content: string;
1529
+ sentAt?: string;
1530
+ };
1531
+ export type EmailRecord = {
1532
+ status: EmailStatus;
1533
+ from: string;
1534
+ to: string;
1535
+ subject: string;
1536
+ content: string;
1537
+ sentAt?: string;
1538
+ id: string;
1539
+ createdAt?: string;
1540
+ updatedAt?: string;
1541
+ createdBy?: string;
1542
+ updatedBy?: string;
1543
+ };
1544
+ export type UpdateEmailRecordDto = {
1545
+ status?: EmailStatus;
1546
+ from?: string;
1547
+ to?: string;
1548
+ subject?: string;
1549
+ content?: string;
1550
+ sentAt?: string;
1551
+ };
1552
+ export type Industry = {
292
1553
  code: string;
293
- password?: string;
294
- }
295
- export interface RegisterUserByUsernameDto {
296
- scope: string;
297
- username: string;
298
- password: string;
299
- }
300
- export interface LoginSessionDto {
301
- scope: string;
302
- login: string;
303
- password: string;
304
- }
305
- export interface LoginSessionByPhoneDto {
306
- phone: string;
1554
+ name: string;
1555
+ children: Array<Industry>;
1556
+ };
1557
+ export type Region = {
307
1558
  code: string;
1559
+ nameZh: string;
1560
+ namePinyin: string;
1561
+ nameEn: string;
308
1562
  dialingPrefix: string;
309
- scope: string;
310
- }
311
- export interface LoginSessionByEmailDto {
312
- email: string;
313
- code: string;
314
- scope: string;
315
- }
316
- export interface UpdateMyEmailDto {
317
- email: string;
318
- code: string;
319
- scope: string;
320
- }
321
- export interface UpdateMyPhoneDto {
1563
+ };
1564
+ export type SendSmsDto = {
322
1565
  phone: string;
323
- code: string;
324
- scope: string;
325
- dialingPrefix: string;
326
- }
327
- export interface LogoutSessionDto {
328
- key: string;
329
- }
330
- export interface RefreshSessionDto {
331
- key: string;
332
- }
333
- export interface VerifyIdentityDto {
334
- type: IdentityType;
335
- name: string;
336
- identity: string;
337
- }
338
- export interface HelloRequest {
339
- }
340
- export interface CreateUserRequest {
341
- body: CreateUserDto;
342
- }
343
- export interface ListUsersRequest {
344
- ns?: string[];
345
- ns_scope?: string[];
346
- _sort?: ListUsersRequest.Sort;
347
- id?: string[];
348
- name_like?: string;
349
- username?: string;
350
- username_like?: string;
351
- nickname_like?: string;
352
- email?: string;
1566
+ sign: string;
1567
+ template: string;
1568
+ params?: {
1569
+ [key: string]: unknown;
1570
+ };
1571
+ };
1572
+ export type SmsStatus = 'pending' | 'sent';
1573
+ export type CreateSmsRecordDto = {
1574
+ status: SmsStatus;
1575
+ phone: string;
1576
+ sign: string;
1577
+ template: string;
1578
+ params?: string;
1579
+ sentAt?: string;
1580
+ };
1581
+ export type SmsRecord = {
1582
+ status: SmsStatus;
1583
+ phone: string;
1584
+ sign: string;
1585
+ template: string;
1586
+ params?: string;
1587
+ sentAt?: string;
1588
+ id: string;
1589
+ createdAt?: string;
1590
+ updatedAt?: string;
1591
+ createdBy?: string;
1592
+ updatedBy?: string;
1593
+ };
1594
+ export type UpdateSmsRecordDto = {
1595
+ status?: SmsStatus;
353
1596
  phone?: string;
354
- registerRegion?: string;
355
- roles?: string[];
356
- dialingPrefix?: string;
357
- _limit?: number;
358
- _offset?: number;
359
- }
360
- export declare namespace ListUsersRequest {
361
- enum Sort {
362
- CREATE_AT = "createAt",
363
- CREATE_AT_DESC = "-createAt",
364
- UPDATE_AT = "updateAt",
365
- UPDATE_AT_DESC = "-updateAt"
366
- }
367
- type SortType = typeof Sort[keyof typeof Sort];
368
- }
369
- export interface GetUserRequest {
370
- userId: string;
371
- }
372
- export interface UpdateUserRequest {
373
- userId: string;
1597
+ sign?: string;
1598
+ template?: string;
1599
+ params?: string;
1600
+ sentAt?: string;
1601
+ };
1602
+ export type HelloResponse = HealthCheckResult;
1603
+ export type HelloError = unknown;
1604
+ export type LoginData = {
1605
+ body: LoginDto;
1606
+ };
1607
+ export type LoginResponse = SessionWithToken;
1608
+ export type LoginError = unknown;
1609
+ export type LoginByEmailData = {
1610
+ body: LoginByEmailDto;
1611
+ };
1612
+ export type LoginByEmailResponse = SessionWithToken;
1613
+ export type LoginByEmailError = unknown;
1614
+ export type LoginByPhoneData = {
1615
+ body: LoginByPhoneDto;
1616
+ };
1617
+ export type LoginByPhoneResponse = SessionWithToken;
1618
+ export type LoginByPhoneError = unknown;
1619
+ export type RegisterData = {
1620
+ body: RegisterDto;
1621
+ };
1622
+ export type RegisterResponse = User | {
1623
+ [key: string]: unknown;
1624
+ };
1625
+ export type RegisterError = unknown;
1626
+ export type RegisterByPhoneData = {
1627
+ body: RegisterbyPhoneDto;
1628
+ };
1629
+ export type RegisterByPhoneResponse = User | {
1630
+ [key: string]: unknown;
1631
+ };
1632
+ export type RegisterByPhoneError = unknown;
1633
+ export type RegisterByEmailData = {
1634
+ body: RegisterByEmailDto;
1635
+ };
1636
+ export type RegisterByEmailResponse = User | {
1637
+ [key: string]: unknown;
1638
+ };
1639
+ export type RegisterByEmailError = unknown;
1640
+ export type SignTokenData = {
1641
+ body: SignTokenDto;
1642
+ };
1643
+ export type SignTokenResponse = Token;
1644
+ export type SignTokenError = unknown;
1645
+ export type RefreshData = {
1646
+ body: RefreshTokenDto;
1647
+ };
1648
+ export type RefreshResponse = SessionWithToken | Token;
1649
+ export type RefreshError = unknown;
1650
+ export type CreateUserData = {
1651
+ body: CreateUserDto;
1652
+ };
1653
+ export type CreateUserResponse = User;
1654
+ export type CreateUserError = unknown;
1655
+ export type ListUsersData = {
1656
+ query?: {
1657
+ _limit?: number;
1658
+ _offset?: number;
1659
+ _sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt';
1660
+ email?: string;
1661
+ id?: Array<string>;
1662
+ name_like?: string;
1663
+ nickname_like?: string;
1664
+ ns?: Array<string>;
1665
+ ns_start?: Array<string>;
1666
+ phone?: string;
1667
+ registerRegion?: string;
1668
+ roles?: Array<string>;
1669
+ username?: string;
1670
+ username_like?: string;
1671
+ };
1672
+ };
1673
+ export type ListUsersResponse = Array<User>;
1674
+ export type ListUsersError = unknown;
1675
+ export type GetUserData = {
1676
+ path: {
1677
+ userId: string;
1678
+ };
1679
+ };
1680
+ export type GetUserResponse = User;
1681
+ export type GetUserError = unknown;
1682
+ export type UpdateUserData = {
374
1683
  body: UpdateUserDto;
375
- }
376
- export interface DeleteUserRequest {
377
- userId: string;
378
- }
379
- export interface CreateNamespaceRequest {
1684
+ path: {
1685
+ userId: string;
1686
+ };
1687
+ };
1688
+ export type UpdateUserResponse = User;
1689
+ export type UpdateUserError = unknown;
1690
+ export type DeleteUserData = {
1691
+ path: {
1692
+ userId: string;
1693
+ };
1694
+ };
1695
+ export type DeleteUserResponse = void;
1696
+ export type DeleteUserError = unknown;
1697
+ export type VerifyIdentityData = {
1698
+ path: {
1699
+ userId: string;
1700
+ };
1701
+ };
1702
+ export type VerifyIdentityResponse = User;
1703
+ export type VerifyIdentityError = unknown;
1704
+ export type ResetPasswordData = {
1705
+ body: ResetPasswordDto;
1706
+ path: {
1707
+ userId: string;
1708
+ };
1709
+ };
1710
+ export type ResetPasswordResponse = void;
1711
+ export type ResetPasswordError = unknown;
1712
+ export type UpdatePasswordData = {
1713
+ body: UpdatePasswordDto;
1714
+ path: {
1715
+ userId: string;
1716
+ };
1717
+ };
1718
+ export type UpdatePasswordResponse = void;
1719
+ export type UpdatePasswordError = unknown;
1720
+ export type CreateNamespaceData = {
380
1721
  body: CreateNamespaceDto;
381
- }
382
- export interface ListNamespacesRequest {
383
- parent?: string[];
384
- parent_scope?: string[];
385
- _sort?: ListNamespacesRequest.Sort;
386
- name_like?: string;
387
- labels?: string[];
388
- _limit?: number;
389
- _offset?: number;
390
- }
391
- export declare namespace ListNamespacesRequest {
392
- enum Sort {
393
- CREATE_AT = "createAt",
394
- CREATE_AT_DESC = "-createAt",
395
- UPDATE_AT = "updateAt",
396
- UPDATE_AT_DESC = "-updateAt"
397
- }
398
- type SortType = typeof Sort[keyof typeof Sort];
399
- }
400
- export interface GetNamespaceRequest {
401
- namespaceIdOrNs: string;
402
- }
403
- export interface UpdateNamespaceRequest {
404
- namespaceId: string;
1722
+ };
1723
+ export type CreateNamespaceResponse = Namespace;
1724
+ export type CreateNamespaceError = unknown;
1725
+ export type ListNamespacesData = {
1726
+ query?: {
1727
+ _limit?: number;
1728
+ _offset?: number;
1729
+ _sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'key' | '-key' | 'name' | '-name';
1730
+ key?: string;
1731
+ labels?: Array<string>;
1732
+ name_like?: string;
1733
+ ns?: Array<string>;
1734
+ ns_start?: Array<string>;
1735
+ };
1736
+ };
1737
+ export type ListNamespacesResponse = Array<Namespace>;
1738
+ export type ListNamespacesError = unknown;
1739
+ export type GetNamespaceData = {
1740
+ path: {
1741
+ namespaceIdOrKey: string;
1742
+ };
1743
+ };
1744
+ export type GetNamespaceResponse = Namespace;
1745
+ export type GetNamespaceError = unknown;
1746
+ export type UpdateNamespaceData = {
405
1747
  body: UpdateNamespaceDto;
406
- }
407
- export interface DeleteNamespaceRequest {
408
- namespaceId: string;
409
- }
410
- export interface ListScopesRequest {
411
- parent?: string[];
412
- _sort?: ListScopesRequest.Sort;
413
- labels?: string[];
414
- _limit?: number;
415
- _offset?: number;
416
- name_like?: string;
417
- }
418
- export declare namespace ListScopesRequest {
419
- enum Sort {
420
- CREATE_AT = "createAt",
421
- CREATE_AT_DESC = "-createAt",
422
- UPDATE_AT = "updateAt",
423
- UPDATE_AT_DESC = "-updateAt"
424
- }
425
- type SortType = typeof Sort[keyof typeof Sort];
426
- }
427
- export interface CreateCaptchaBySmsRequest {
428
- body: CreateCaptchaBySmsDto;
429
- }
430
- export interface CreateCaptchaByEmailRequest {
431
- body: CreateCaptchaByEmailDto;
432
- }
433
- export interface CreateCaptchaByPhotoRequest {
434
- body: CreateCaptchaByPhotoDto;
435
- }
436
- export interface CreateSessionRequest {
1748
+ path: {
1749
+ namespaceId: string;
1750
+ };
1751
+ };
1752
+ export type UpdateNamespaceResponse = Namespace;
1753
+ export type UpdateNamespaceError = unknown;
1754
+ export type DeleteNamespaceData = {
1755
+ path: {
1756
+ namespaceId: string;
1757
+ };
1758
+ };
1759
+ export type DeleteNamespaceResponse = void;
1760
+ export type DeleteNamespaceError = unknown;
1761
+ export type CreateSessionData = {
437
1762
  body: CreateSessionDto;
438
- }
439
- export interface ListSessionsRequest {
440
- _sort?: ListSessionsRequest.Sort;
441
- key?: string;
442
- client?: string;
443
- tokenExpiresIn?: string;
444
- uid?: string;
445
- _limit?: number;
446
- _offset?: number;
447
- }
448
- export declare namespace ListSessionsRequest {
449
- enum Sort {
450
- CREATE_AT = "createAt",
451
- CREATE_AT_DESC = "-createAt",
452
- UPDATE_AT = "updateAt",
453
- UPDATE_AT_DESC = "-updateAt",
454
- EXPIRE_AT = "expireAt",
455
- EXPIRE_AT_DESC = "-expireAt"
456
- }
457
- type SortType = typeof Sort[keyof typeof Sort];
458
- }
459
- export interface GetSessionRequest {
460
- sessionId: string;
461
- }
462
- export interface UpdateSessionRequest {
463
- sessionId: string;
1763
+ };
1764
+ export type CreateSessionResponse = Session;
1765
+ export type CreateSessionError = unknown;
1766
+ export type ListSessionsData = {
1767
+ query?: {
1768
+ _limit?: number;
1769
+ _offset?: number;
1770
+ _sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'expireAt' | '-expireAt';
1771
+ client?: string;
1772
+ key?: string;
1773
+ uid?: string;
1774
+ };
1775
+ };
1776
+ export type ListSessionsResponse = Array<Session>;
1777
+ export type ListSessionsError = unknown;
1778
+ export type GetSessionData = {
1779
+ path: {
1780
+ sessionId: string;
1781
+ };
1782
+ };
1783
+ export type GetSessionResponse = Session;
1784
+ export type GetSessionError = unknown;
1785
+ export type UpdateSessionData = {
464
1786
  body: UpdateSessionDto;
465
- }
466
- export interface DeleteSessionRequest {
467
- sessionId: string;
468
- }
469
- export interface RestrictTokenRequest {
470
- body: RestrictTokenDto;
471
- }
472
- export interface ListRegionsRequest {
473
- }
474
- export interface InitRequest {
475
- }
476
- export interface GetMyInfoRequest {
477
- }
478
- export interface UpdateMyInfoRequest {
479
- body: UpdateMyInfoDto;
480
- }
481
- export interface UpdateMyPasswordRequest {
482
- body: UpdateMyPasswordDto;
483
- }
484
- export interface ResetMyPasswordRequest {
485
- body: ResetMyPasswordDto;
486
- }
487
- export interface RegisterUserByPhoneRequest {
488
- body: RegisterUserByPhoneDto;
489
- }
490
- export interface RegisterUserByEmailRequest {
491
- body: RegisterUserByEmailDto;
492
- }
493
- export interface RegisterRequest {
494
- body: RegisterUserByUsernameDto;
495
- }
496
- export interface LoginRequest {
497
- body: LoginSessionDto;
498
- }
499
- export interface LoginByPhoneRequest {
500
- body: LoginSessionByPhoneDto;
501
- }
502
- export interface LoginByEmailRequest {
503
- body: LoginSessionByEmailDto;
504
- }
505
- export interface UpdateMyEmailRequest {
506
- body: UpdateMyEmailDto;
507
- }
508
- export interface UpdateMyPhoneRequest {
509
- body: UpdateMyPhoneDto;
510
- }
511
- export interface LogoutRequest {
512
- body: LogoutSessionDto;
513
- }
514
- export interface RefreshSessionRequest {
515
- body: RefreshSessionDto;
516
- }
517
- export interface VerifyIdentityRequest {
518
- body: VerifyIdentityDto;
519
- }
520
- export class CoreAPIClient {
521
- client: AxiosInstance;
522
- constructor(client: AxiosInstance);
523
- hello: (req: HelloRequest, config?: AxiosRequestConfig) => Response<HealthCheckResult>;
524
- createUser: (req: CreateUserRequest, config?: AxiosRequestConfig) => Response<User>;
525
- listUsers: (req: ListUsersRequest, config?: AxiosRequestConfig) => Response<User[]>;
526
- getUser: (req: GetUserRequest, config?: AxiosRequestConfig) => Response<User>;
527
- updateUser: (req: UpdateUserRequest, config?: AxiosRequestConfig) => Response<User>;
528
- deleteUser: (req: DeleteUserRequest, config?: AxiosRequestConfig) => Response<void>;
529
- createNamespace: (req: CreateNamespaceRequest, config?: AxiosRequestConfig) => Response<Namespace>;
530
- listNamespaces: (req: ListNamespacesRequest, config?: AxiosRequestConfig) => Response<Namespace[]>;
531
- getNamespace: (req: GetNamespaceRequest, config?: AxiosRequestConfig) => Response<Namespace>;
532
- updateNamespace: (req: UpdateNamespaceRequest, config?: AxiosRequestConfig) => Response<Namespace>;
533
- deleteNamespace: (req: DeleteNamespaceRequest, config?: AxiosRequestConfig) => Response<void>;
534
- listScopes: (req: ListScopesRequest, config?: AxiosRequestConfig) => Response<Namespace[]>;
535
- createCaptchaBySms: (req: CreateCaptchaBySmsRequest, config?: AxiosRequestConfig) => Response<CaptchaBySmsResult>;
536
- createCaptchaByEmail: (req: CreateCaptchaByEmailRequest, config?: AxiosRequestConfig) => Response<CaptchaByEmailResult>;
537
- createCaptchaByPhoto: (req: CreateCaptchaByPhotoRequest, config?: AxiosRequestConfig) => Response<CaptchaByPhotoResult>;
538
- createSession: (req: CreateSessionRequest, config?: AxiosRequestConfig) => Response<Session>;
539
- listSessions: (req: ListSessionsRequest, config?: AxiosRequestConfig) => Response<Session[]>;
540
- getSession: (req: GetSessionRequest, config?: AxiosRequestConfig) => Response<Session>;
541
- updateSession: (req: UpdateSessionRequest, config?: AxiosRequestConfig) => Response<Session>;
542
- deleteSession: (req: DeleteSessionRequest, config?: AxiosRequestConfig) => Response<void>;
543
- restrictToken: (req: RestrictTokenRequest, config?: AxiosRequestConfig) => Response<OnlyToken>;
544
- listRegions: (req: ListRegionsRequest, config?: AxiosRequestConfig) => Response<Region[]>;
545
- init: (req: InitRequest, config?: AxiosRequestConfig) => Response<void>;
546
- getMyInfo: (req: GetMyInfoRequest, config?: AxiosRequestConfig) => Response<MyInfo>;
547
- updateMyInfo: (req: UpdateMyInfoRequest, config?: AxiosRequestConfig) => Response<MyInfo>;
548
- updateMyPassword: (req: UpdateMyPasswordRequest, config?: AxiosRequestConfig) => Response<MyInfo>;
549
- resetMyPassword: (req: ResetMyPasswordRequest, config?: AxiosRequestConfig) => Response<MyInfo>;
550
- registerUserByPhone: (req: RegisterUserByPhoneRequest, config?: AxiosRequestConfig) => Response<SessionWithToken>;
551
- registerUserByEmail: (req: RegisterUserByEmailRequest, config?: AxiosRequestConfig) => Response<SessionWithToken>;
552
- register: (req: RegisterRequest, config?: AxiosRequestConfig) => Response<SessionWithToken>;
553
- login: (req: LoginRequest, config?: AxiosRequestConfig) => Response<SessionWithToken>;
554
- loginByPhone: (req: LoginByPhoneRequest, config?: AxiosRequestConfig) => Response<SessionWithToken>;
555
- loginByEmail: (req: LoginByEmailRequest, config?: AxiosRequestConfig) => Response<SessionWithToken>;
556
- updateMyEmail: (req: UpdateMyEmailRequest, config?: AxiosRequestConfig) => Response<MyInfo>;
557
- updateMyPhone: (req: UpdateMyPhoneRequest, config?: AxiosRequestConfig) => Response<MyInfo>;
558
- logout: (req: LogoutRequest, config?: AxiosRequestConfig) => Response<void>;
559
- refreshSession: (req: RefreshSessionRequest, config?: AxiosRequestConfig) => Response<SessionWithToken>;
560
- verifyIdentity: (req: VerifyIdentityRequest, config?: AxiosRequestConfig) => Response<Identity>;
561
- }
562
- type Response<T> = Promise<AxiosResponse<T>>;
1787
+ path: {
1788
+ sessionId: string;
1789
+ };
1790
+ };
1791
+ export type UpdateSessionResponse = Session;
1792
+ export type UpdateSessionError = unknown;
1793
+ export type DeleteSessionData = {
1794
+ path: {
1795
+ sessionId: string;
1796
+ };
1797
+ };
1798
+ export type DeleteSessionResponse = void;
1799
+ export type DeleteSessionError = unknown;
1800
+ export type CreateCaptchaData = {
1801
+ body: CreateCaptchaDto;
1802
+ };
1803
+ export type CreateCaptchaResponse = Captcha;
1804
+ export type CreateCaptchaError = unknown;
1805
+ export type ListCaptchasData = {
1806
+ query?: {
1807
+ _limit?: number;
1808
+ _offset?: number;
1809
+ _sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'expireAt' | '-expireAt';
1810
+ code?: string;
1811
+ key?: string;
1812
+ };
1813
+ };
1814
+ export type ListCaptchasResponse = Array<Captcha>;
1815
+ export type ListCaptchasError = unknown;
1816
+ export type GetCaptchaData = {
1817
+ path: {
1818
+ captchaId: string;
1819
+ };
1820
+ };
1821
+ export type GetCaptchaResponse = Captcha;
1822
+ export type GetCaptchaError = unknown;
1823
+ export type UpdateCaptchaData = {
1824
+ body: UpdateCaptchaDto;
1825
+ path: {
1826
+ captchaId: string;
1827
+ };
1828
+ };
1829
+ export type UpdateCaptchaResponse = Captcha;
1830
+ export type UpdateCaptchaError = unknown;
1831
+ export type DeleteCaptchaData = {
1832
+ path: {
1833
+ captchaId: string;
1834
+ };
1835
+ };
1836
+ export type DeleteCaptchaResponse = void;
1837
+ export type DeleteCaptchaError = unknown;
1838
+ export type SendEmailData = {
1839
+ body: SendEmailDto;
1840
+ };
1841
+ export type SendEmailResponse = void;
1842
+ export type SendEmailError = unknown;
1843
+ export type CreateEmailRecordData = {
1844
+ body: CreateEmailRecordDto;
1845
+ };
1846
+ export type CreateEmailRecordResponse = EmailRecord;
1847
+ export type CreateEmailRecordError = unknown;
1848
+ export type ListEmailRecordsData = {
1849
+ query?: {
1850
+ _limit?: number;
1851
+ _offset?: number;
1852
+ _sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
1853
+ createdAt_gt?: string;
1854
+ createdAt_lt?: string;
1855
+ from?: string;
1856
+ sentAt_gt?: string;
1857
+ sentAt_lt?: string;
1858
+ status?: EmailStatus;
1859
+ to?: string;
1860
+ };
1861
+ };
1862
+ export type ListEmailRecordsResponse = Array<EmailRecord>;
1863
+ export type ListEmailRecordsError = unknown;
1864
+ export type GetEmailRecordData = {
1865
+ path: {
1866
+ emailRecordId: string;
1867
+ };
1868
+ };
1869
+ export type GetEmailRecordResponse = EmailRecord;
1870
+ export type GetEmailRecordError = unknown;
1871
+ export type UpdateEmailRecordData = {
1872
+ body: UpdateEmailRecordDto;
1873
+ path: {
1874
+ emailRecordId: string;
1875
+ };
1876
+ };
1877
+ export type UpdateEmailRecordResponse = EmailRecord;
1878
+ export type UpdateEmailRecordError = unknown;
1879
+ export type DeleteEmailRecordData = {
1880
+ path: {
1881
+ emailRecordId: string;
1882
+ };
1883
+ };
1884
+ export type DeleteEmailRecordResponse = void;
1885
+ export type DeleteEmailRecordError = unknown;
1886
+ export type ListIndustriesResponse = Array<Industry>;
1887
+ export type ListIndustriesError = unknown;
1888
+ export type ListRegionsResponse = Array<Region>;
1889
+ export type ListRegionsError = unknown;
1890
+ export type SendSmsData = {
1891
+ body: SendSmsDto;
1892
+ };
1893
+ export type SendSmsResponse = void;
1894
+ export type SendSmsError = unknown;
1895
+ export type CreateSmsRecordData = {
1896
+ body: CreateSmsRecordDto;
1897
+ };
1898
+ export type CreateSmsRecordResponse = SmsRecord;
1899
+ export type CreateSmsRecordError = unknown;
1900
+ export type ListSmsRecordsData = {
1901
+ query?: {
1902
+ _limit?: number;
1903
+ _offset?: number;
1904
+ _sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'sentAt' | '-sentAt';
1905
+ createdAt_gt?: string;
1906
+ createdAt_lt?: string;
1907
+ phone?: string;
1908
+ sentAt_gt?: string;
1909
+ sentAt_lt?: string;
1910
+ sign?: string;
1911
+ status?: SmsStatus;
1912
+ };
1913
+ };
1914
+ export type ListSmsRecordsResponse = Array<SmsRecord>;
1915
+ export type ListSmsRecordsError = unknown;
1916
+ export type GetSmsRecordData = {
1917
+ path: {
1918
+ smsRecordId: string;
1919
+ };
1920
+ };
1921
+ export type GetSmsRecordResponse = SmsRecord;
1922
+ export type GetSmsRecordError = unknown;
1923
+ export type UpdateSmsRecordData = {
1924
+ body: UpdateSmsRecordDto;
1925
+ path: {
1926
+ smsRecordId: string;
1927
+ };
1928
+ };
1929
+ export type UpdateSmsRecordResponse = SmsRecord;
1930
+ export type UpdateSmsRecordError = unknown;
1931
+ export type DeleteSmsRecordData = {
1932
+ path: {
1933
+ smsRecordId: string;
1934
+ };
1935
+ };
1936
+ export type DeleteSmsRecordResponse = void;
1937
+ export type DeleteSmsRecordError = unknown;
1938
+ export const client: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
1939
+ export const hello: <ThrowOnError extends boolean = false>(options?: {
1940
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
1941
+ cache?: RequestCache;
1942
+ credentials?: RequestCredentials;
1943
+ integrity?: string;
1944
+ keepalive?: boolean;
1945
+ mode?: RequestMode;
1946
+ redirect?: RequestRedirect;
1947
+ referrer?: string;
1948
+ referrerPolicy?: ReferrerPolicy;
1949
+ signal?: AbortSignal;
1950
+ window?: null;
1951
+ path?: Record<string, unknown>;
1952
+ query?: Record<string, unknown>;
1953
+ baseUrl?: string;
1954
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
1955
+ fetch?: (request: Request) => Promise<Response>;
1956
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
1957
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
1958
+ throwOnError?: ThrowOnError;
1959
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
1960
+ }) => import("@hey-api/client-fetch").RequestResult<import("types.gen").HealthCheckResult, unknown, ThrowOnError>;
1961
+ export const login: <ThrowOnError extends boolean = false>(options: {
1962
+ headers?: Record<string, unknown> | HeadersInit;
1963
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
1964
+ cache?: RequestCache;
1965
+ credentials?: RequestCredentials;
1966
+ integrity?: string;
1967
+ keepalive?: boolean;
1968
+ mode?: RequestMode;
1969
+ redirect?: RequestRedirect;
1970
+ referrer?: string;
1971
+ referrerPolicy?: ReferrerPolicy;
1972
+ signal?: AbortSignal;
1973
+ window?: null;
1974
+ path?: Record<string, unknown>;
1975
+ query?: Record<string, unknown>;
1976
+ baseUrl?: string;
1977
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
1978
+ fetch?: (request: Request) => Promise<Response>;
1979
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
1980
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
1981
+ throwOnError?: ThrowOnError;
1982
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
1983
+ } & LoginData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
1984
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
1985
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").SessionWithToken, unknown, ThrowOnError>;
1986
+ export const loginByEmail: <ThrowOnError extends boolean = false>(options: {
1987
+ headers?: Record<string, unknown> | HeadersInit;
1988
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
1989
+ cache?: RequestCache;
1990
+ credentials?: RequestCredentials;
1991
+ integrity?: string;
1992
+ keepalive?: boolean;
1993
+ mode?: RequestMode;
1994
+ redirect?: RequestRedirect;
1995
+ referrer?: string;
1996
+ referrerPolicy?: ReferrerPolicy;
1997
+ signal?: AbortSignal;
1998
+ window?: null;
1999
+ path?: Record<string, unknown>;
2000
+ query?: Record<string, unknown>;
2001
+ baseUrl?: string;
2002
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2003
+ fetch?: (request: Request) => Promise<Response>;
2004
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2005
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2006
+ throwOnError?: ThrowOnError;
2007
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2008
+ } & LoginByEmailData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2009
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2010
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").SessionWithToken, unknown, ThrowOnError>;
2011
+ export const loginByPhone: <ThrowOnError extends boolean = false>(options: {
2012
+ headers?: Record<string, unknown> | HeadersInit;
2013
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2014
+ cache?: RequestCache;
2015
+ credentials?: RequestCredentials;
2016
+ integrity?: string;
2017
+ keepalive?: boolean;
2018
+ mode?: RequestMode;
2019
+ redirect?: RequestRedirect;
2020
+ referrer?: string;
2021
+ referrerPolicy?: ReferrerPolicy;
2022
+ signal?: AbortSignal;
2023
+ window?: null;
2024
+ path?: Record<string, unknown>;
2025
+ query?: Record<string, unknown>;
2026
+ baseUrl?: string;
2027
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2028
+ fetch?: (request: Request) => Promise<Response>;
2029
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2030
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2031
+ throwOnError?: ThrowOnError;
2032
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2033
+ } & LoginByPhoneData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2034
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2035
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").SessionWithToken, unknown, ThrowOnError>;
2036
+ export const register: <ThrowOnError extends boolean = false>(options: {
2037
+ headers?: Record<string, unknown> | HeadersInit;
2038
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2039
+ cache?: RequestCache;
2040
+ credentials?: RequestCredentials;
2041
+ integrity?: string;
2042
+ keepalive?: boolean;
2043
+ mode?: RequestMode;
2044
+ redirect?: RequestRedirect;
2045
+ referrer?: string;
2046
+ referrerPolicy?: ReferrerPolicy;
2047
+ signal?: AbortSignal;
2048
+ window?: null;
2049
+ path?: Record<string, unknown>;
2050
+ query?: Record<string, unknown>;
2051
+ baseUrl?: string;
2052
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2053
+ fetch?: (request: Request) => Promise<Response>;
2054
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2055
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2056
+ throwOnError?: ThrowOnError;
2057
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2058
+ } & RegisterData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2059
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2060
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<RegisterResponse, unknown, ThrowOnError>;
2061
+ export const registerByPhone: <ThrowOnError extends boolean = false>(options: {
2062
+ headers?: Record<string, unknown> | HeadersInit;
2063
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2064
+ cache?: RequestCache;
2065
+ credentials?: RequestCredentials;
2066
+ integrity?: string;
2067
+ keepalive?: boolean;
2068
+ mode?: RequestMode;
2069
+ redirect?: RequestRedirect;
2070
+ referrer?: string;
2071
+ referrerPolicy?: ReferrerPolicy;
2072
+ signal?: AbortSignal;
2073
+ window?: null;
2074
+ path?: Record<string, unknown>;
2075
+ query?: Record<string, unknown>;
2076
+ baseUrl?: string;
2077
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2078
+ fetch?: (request: Request) => Promise<Response>;
2079
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2080
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2081
+ throwOnError?: ThrowOnError;
2082
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2083
+ } & RegisterByPhoneData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2084
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2085
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<RegisterByPhoneResponse, unknown, ThrowOnError>;
2086
+ export const registerByEmail: <ThrowOnError extends boolean = false>(options: {
2087
+ headers?: Record<string, unknown> | HeadersInit;
2088
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2089
+ cache?: RequestCache;
2090
+ credentials?: RequestCredentials;
2091
+ integrity?: string;
2092
+ keepalive?: boolean;
2093
+ mode?: RequestMode;
2094
+ redirect?: RequestRedirect;
2095
+ referrer?: string;
2096
+ referrerPolicy?: ReferrerPolicy;
2097
+ signal?: AbortSignal;
2098
+ window?: null;
2099
+ path?: Record<string, unknown>;
2100
+ query?: Record<string, unknown>;
2101
+ baseUrl?: string;
2102
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2103
+ fetch?: (request: Request) => Promise<Response>;
2104
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2105
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2106
+ throwOnError?: ThrowOnError;
2107
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2108
+ } & RegisterByEmailData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2109
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2110
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<RegisterByEmailResponse, unknown, ThrowOnError>;
2111
+ export const signToken: <ThrowOnError extends boolean = false>(options: {
2112
+ headers?: Record<string, unknown> | HeadersInit;
2113
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2114
+ cache?: RequestCache;
2115
+ credentials?: RequestCredentials;
2116
+ integrity?: string;
2117
+ keepalive?: boolean;
2118
+ mode?: RequestMode;
2119
+ redirect?: RequestRedirect;
2120
+ referrer?: string;
2121
+ referrerPolicy?: ReferrerPolicy;
2122
+ signal?: AbortSignal;
2123
+ window?: null;
2124
+ path?: Record<string, unknown>;
2125
+ query?: Record<string, unknown>;
2126
+ baseUrl?: string;
2127
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2128
+ fetch?: (request: Request) => Promise<Response>;
2129
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2130
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2131
+ throwOnError?: ThrowOnError;
2132
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2133
+ } & SignTokenData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2134
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2135
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").Token, unknown, ThrowOnError>;
2136
+ export const refresh: <ThrowOnError extends boolean = false>(options: {
2137
+ headers?: Record<string, unknown> | HeadersInit;
2138
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2139
+ cache?: RequestCache;
2140
+ credentials?: RequestCredentials;
2141
+ integrity?: string;
2142
+ keepalive?: boolean;
2143
+ mode?: RequestMode;
2144
+ redirect?: RequestRedirect;
2145
+ referrer?: string;
2146
+ referrerPolicy?: ReferrerPolicy;
2147
+ signal?: AbortSignal;
2148
+ window?: null;
2149
+ path?: Record<string, unknown>;
2150
+ query?: Record<string, unknown>;
2151
+ baseUrl?: string;
2152
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2153
+ fetch?: (request: Request) => Promise<Response>;
2154
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2155
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2156
+ throwOnError?: ThrowOnError;
2157
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2158
+ } & RefreshData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2159
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2160
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<RefreshResponse, unknown, ThrowOnError>;
2161
+ export const createUser: <ThrowOnError extends boolean = false>(options: {
2162
+ headers?: Record<string, unknown> | HeadersInit;
2163
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2164
+ cache?: RequestCache;
2165
+ credentials?: RequestCredentials;
2166
+ integrity?: string;
2167
+ keepalive?: boolean;
2168
+ mode?: RequestMode;
2169
+ redirect?: RequestRedirect;
2170
+ referrer?: string;
2171
+ referrerPolicy?: ReferrerPolicy;
2172
+ signal?: AbortSignal;
2173
+ window?: null;
2174
+ path?: Record<string, unknown>;
2175
+ query?: Record<string, unknown>;
2176
+ baseUrl?: string;
2177
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2178
+ fetch?: (request: Request) => Promise<Response>;
2179
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2180
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2181
+ throwOnError?: ThrowOnError;
2182
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2183
+ } & CreateUserData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2184
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2185
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").User, unknown, ThrowOnError>;
2186
+ export const listUsers: <ThrowOnError extends boolean = false>(options?: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2187
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2188
+ } & ListUsersData) => import("@hey-api/client-fetch").RequestResult<ListUsersResponse, unknown, ThrowOnError>;
2189
+ export const getUser: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2190
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2191
+ } & GetUserData) => import("@hey-api/client-fetch").RequestResult<import("types.gen").User, unknown, ThrowOnError>;
2192
+ export const updateUser: <ThrowOnError extends boolean = false>(options: {
2193
+ headers?: Record<string, unknown> | HeadersInit;
2194
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2195
+ cache?: RequestCache;
2196
+ credentials?: RequestCredentials;
2197
+ integrity?: string;
2198
+ keepalive?: boolean;
2199
+ mode?: RequestMode;
2200
+ redirect?: RequestRedirect;
2201
+ referrer?: string;
2202
+ referrerPolicy?: ReferrerPolicy;
2203
+ signal?: AbortSignal;
2204
+ window?: null;
2205
+ path?: Record<string, unknown>;
2206
+ query?: Record<string, unknown>;
2207
+ baseUrl?: string;
2208
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2209
+ fetch?: (request: Request) => Promise<Response>;
2210
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2211
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2212
+ throwOnError?: ThrowOnError;
2213
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2214
+ } & UpdateUserData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2215
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2216
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").User, unknown, ThrowOnError>;
2217
+ export const deleteUser: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2218
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2219
+ } & DeleteUserData) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
2220
+ export const verifyIdentity: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2221
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2222
+ } & VerifyIdentityData) => import("@hey-api/client-fetch").RequestResult<import("types.gen").User, unknown, ThrowOnError>;
2223
+ export const resetPassword: <ThrowOnError extends boolean = false>(options: {
2224
+ headers?: Record<string, unknown> | HeadersInit;
2225
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2226
+ cache?: RequestCache;
2227
+ credentials?: RequestCredentials;
2228
+ integrity?: string;
2229
+ keepalive?: boolean;
2230
+ mode?: RequestMode;
2231
+ redirect?: RequestRedirect;
2232
+ referrer?: string;
2233
+ referrerPolicy?: ReferrerPolicy;
2234
+ signal?: AbortSignal;
2235
+ window?: null;
2236
+ path?: Record<string, unknown>;
2237
+ query?: Record<string, unknown>;
2238
+ baseUrl?: string;
2239
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2240
+ fetch?: (request: Request) => Promise<Response>;
2241
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2242
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2243
+ throwOnError?: ThrowOnError;
2244
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2245
+ } & ResetPasswordData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2246
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2247
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
2248
+ export const updatePassword: <ThrowOnError extends boolean = false>(options: {
2249
+ headers?: Record<string, unknown> | HeadersInit;
2250
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2251
+ cache?: RequestCache;
2252
+ credentials?: RequestCredentials;
2253
+ integrity?: string;
2254
+ keepalive?: boolean;
2255
+ mode?: RequestMode;
2256
+ redirect?: RequestRedirect;
2257
+ referrer?: string;
2258
+ referrerPolicy?: ReferrerPolicy;
2259
+ signal?: AbortSignal;
2260
+ window?: null;
2261
+ path?: Record<string, unknown>;
2262
+ query?: Record<string, unknown>;
2263
+ baseUrl?: string;
2264
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2265
+ fetch?: (request: Request) => Promise<Response>;
2266
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2267
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2268
+ throwOnError?: ThrowOnError;
2269
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2270
+ } & UpdatePasswordData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2271
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2272
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
2273
+ export const createNamespace: <ThrowOnError extends boolean = false>(options: {
2274
+ headers?: Record<string, unknown> | HeadersInit;
2275
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2276
+ cache?: RequestCache;
2277
+ credentials?: RequestCredentials;
2278
+ integrity?: string;
2279
+ keepalive?: boolean;
2280
+ mode?: RequestMode;
2281
+ redirect?: RequestRedirect;
2282
+ referrer?: string;
2283
+ referrerPolicy?: ReferrerPolicy;
2284
+ signal?: AbortSignal;
2285
+ window?: null;
2286
+ path?: Record<string, unknown>;
2287
+ query?: Record<string, unknown>;
2288
+ baseUrl?: string;
2289
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2290
+ fetch?: (request: Request) => Promise<Response>;
2291
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2292
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2293
+ throwOnError?: ThrowOnError;
2294
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2295
+ } & CreateNamespaceData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2296
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2297
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").Namespace, unknown, ThrowOnError>;
2298
+ export const listNamespaces: <ThrowOnError extends boolean = false>(options?: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2299
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2300
+ } & ListNamespacesData) => import("@hey-api/client-fetch").RequestResult<ListNamespacesResponse, unknown, ThrowOnError>;
2301
+ export const getNamespace: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2302
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2303
+ } & GetNamespaceData) => import("@hey-api/client-fetch").RequestResult<import("types.gen").Namespace, unknown, ThrowOnError>;
2304
+ export const updateNamespace: <ThrowOnError extends boolean = false>(options: {
2305
+ headers?: Record<string, unknown> | HeadersInit;
2306
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2307
+ cache?: RequestCache;
2308
+ credentials?: RequestCredentials;
2309
+ integrity?: string;
2310
+ keepalive?: boolean;
2311
+ mode?: RequestMode;
2312
+ redirect?: RequestRedirect;
2313
+ referrer?: string;
2314
+ referrerPolicy?: ReferrerPolicy;
2315
+ signal?: AbortSignal;
2316
+ window?: null;
2317
+ path?: Record<string, unknown>;
2318
+ query?: Record<string, unknown>;
2319
+ baseUrl?: string;
2320
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2321
+ fetch?: (request: Request) => Promise<Response>;
2322
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2323
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2324
+ throwOnError?: ThrowOnError;
2325
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2326
+ } & UpdateNamespaceData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2327
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2328
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").Namespace, unknown, ThrowOnError>;
2329
+ export const deleteNamespace: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2330
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2331
+ } & DeleteNamespaceData) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
2332
+ export const createSession: <ThrowOnError extends boolean = false>(options: {
2333
+ headers?: Record<string, unknown> | HeadersInit;
2334
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2335
+ cache?: RequestCache;
2336
+ credentials?: RequestCredentials;
2337
+ integrity?: string;
2338
+ keepalive?: boolean;
2339
+ mode?: RequestMode;
2340
+ redirect?: RequestRedirect;
2341
+ referrer?: string;
2342
+ referrerPolicy?: ReferrerPolicy;
2343
+ signal?: AbortSignal;
2344
+ window?: null;
2345
+ path?: Record<string, unknown>;
2346
+ query?: Record<string, unknown>;
2347
+ baseUrl?: string;
2348
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2349
+ fetch?: (request: Request) => Promise<Response>;
2350
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2351
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2352
+ throwOnError?: ThrowOnError;
2353
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2354
+ } & CreateSessionData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2355
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2356
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").Session, unknown, ThrowOnError>;
2357
+ export const listSessions: <ThrowOnError extends boolean = false>(options?: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2358
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2359
+ } & ListSessionsData) => import("@hey-api/client-fetch").RequestResult<ListSessionsResponse, unknown, ThrowOnError>;
2360
+ export const getSession: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2361
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2362
+ } & GetSessionData) => import("@hey-api/client-fetch").RequestResult<import("types.gen").Session, unknown, ThrowOnError>;
2363
+ export const updateSession: <ThrowOnError extends boolean = false>(options: {
2364
+ headers?: Record<string, unknown> | HeadersInit;
2365
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2366
+ cache?: RequestCache;
2367
+ credentials?: RequestCredentials;
2368
+ integrity?: string;
2369
+ keepalive?: boolean;
2370
+ mode?: RequestMode;
2371
+ redirect?: RequestRedirect;
2372
+ referrer?: string;
2373
+ referrerPolicy?: ReferrerPolicy;
2374
+ signal?: AbortSignal;
2375
+ window?: null;
2376
+ path?: Record<string, unknown>;
2377
+ query?: Record<string, unknown>;
2378
+ baseUrl?: string;
2379
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2380
+ fetch?: (request: Request) => Promise<Response>;
2381
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2382
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2383
+ throwOnError?: ThrowOnError;
2384
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2385
+ } & UpdateSessionData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2386
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2387
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").Session, unknown, ThrowOnError>;
2388
+ export const deleteSession: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2389
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2390
+ } & DeleteSessionData) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
2391
+ export const createCaptcha: <ThrowOnError extends boolean = false>(options: {
2392
+ headers?: Record<string, unknown> | HeadersInit;
2393
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2394
+ cache?: RequestCache;
2395
+ credentials?: RequestCredentials;
2396
+ integrity?: string;
2397
+ keepalive?: boolean;
2398
+ mode?: RequestMode;
2399
+ redirect?: RequestRedirect;
2400
+ referrer?: string;
2401
+ referrerPolicy?: ReferrerPolicy;
2402
+ signal?: AbortSignal;
2403
+ window?: null;
2404
+ path?: Record<string, unknown>;
2405
+ query?: Record<string, unknown>;
2406
+ baseUrl?: string;
2407
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2408
+ fetch?: (request: Request) => Promise<Response>;
2409
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2410
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2411
+ throwOnError?: ThrowOnError;
2412
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2413
+ } & CreateCaptchaData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2414
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2415
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").Captcha, unknown, ThrowOnError>;
2416
+ export const listCaptchas: <ThrowOnError extends boolean = false>(options?: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2417
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2418
+ } & ListCaptchasData) => import("@hey-api/client-fetch").RequestResult<ListCaptchasResponse, unknown, ThrowOnError>;
2419
+ export const getCaptcha: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2420
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2421
+ } & GetCaptchaData) => import("@hey-api/client-fetch").RequestResult<import("types.gen").Captcha, unknown, ThrowOnError>;
2422
+ export const updateCaptcha: <ThrowOnError extends boolean = false>(options: {
2423
+ headers?: Record<string, unknown> | HeadersInit;
2424
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2425
+ cache?: RequestCache;
2426
+ credentials?: RequestCredentials;
2427
+ integrity?: string;
2428
+ keepalive?: boolean;
2429
+ mode?: RequestMode;
2430
+ redirect?: RequestRedirect;
2431
+ referrer?: string;
2432
+ referrerPolicy?: ReferrerPolicy;
2433
+ signal?: AbortSignal;
2434
+ window?: null;
2435
+ path?: Record<string, unknown>;
2436
+ query?: Record<string, unknown>;
2437
+ baseUrl?: string;
2438
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2439
+ fetch?: (request: Request) => Promise<Response>;
2440
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2441
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2442
+ throwOnError?: ThrowOnError;
2443
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2444
+ } & UpdateCaptchaData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2445
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2446
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").Captcha, unknown, ThrowOnError>;
2447
+ export const deleteCaptcha: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2448
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2449
+ } & DeleteCaptchaData) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
2450
+ export const sendEmail: <ThrowOnError extends boolean = false>(options: {
2451
+ headers?: Record<string, unknown> | HeadersInit;
2452
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2453
+ cache?: RequestCache;
2454
+ credentials?: RequestCredentials;
2455
+ integrity?: string;
2456
+ keepalive?: boolean;
2457
+ mode?: RequestMode;
2458
+ redirect?: RequestRedirect;
2459
+ referrer?: string;
2460
+ referrerPolicy?: ReferrerPolicy;
2461
+ signal?: AbortSignal;
2462
+ window?: null;
2463
+ path?: Record<string, unknown>;
2464
+ query?: Record<string, unknown>;
2465
+ baseUrl?: string;
2466
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2467
+ fetch?: (request: Request) => Promise<Response>;
2468
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2469
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2470
+ throwOnError?: ThrowOnError;
2471
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2472
+ } & SendEmailData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2473
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2474
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
2475
+ export const createEmailRecord: <ThrowOnError extends boolean = false>(options: {
2476
+ headers?: Record<string, unknown> | HeadersInit;
2477
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2478
+ cache?: RequestCache;
2479
+ credentials?: RequestCredentials;
2480
+ integrity?: string;
2481
+ keepalive?: boolean;
2482
+ mode?: RequestMode;
2483
+ redirect?: RequestRedirect;
2484
+ referrer?: string;
2485
+ referrerPolicy?: ReferrerPolicy;
2486
+ signal?: AbortSignal;
2487
+ window?: null;
2488
+ path?: Record<string, unknown>;
2489
+ query?: Record<string, unknown>;
2490
+ baseUrl?: string;
2491
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2492
+ fetch?: (request: Request) => Promise<Response>;
2493
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2494
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2495
+ throwOnError?: ThrowOnError;
2496
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2497
+ } & CreateEmailRecordData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2498
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2499
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").EmailRecord, unknown, ThrowOnError>;
2500
+ export const listEmailRecords: <ThrowOnError extends boolean = false>(options?: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2501
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2502
+ } & ListEmailRecordsData) => import("@hey-api/client-fetch").RequestResult<ListEmailRecordsResponse, unknown, ThrowOnError>;
2503
+ export const getEmailRecord: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2504
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2505
+ } & GetEmailRecordData) => import("@hey-api/client-fetch").RequestResult<import("types.gen").EmailRecord, unknown, ThrowOnError>;
2506
+ export const updateEmailRecord: <ThrowOnError extends boolean = false>(options: {
2507
+ headers?: Record<string, unknown> | HeadersInit;
2508
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2509
+ cache?: RequestCache;
2510
+ credentials?: RequestCredentials;
2511
+ integrity?: string;
2512
+ keepalive?: boolean;
2513
+ mode?: RequestMode;
2514
+ redirect?: RequestRedirect;
2515
+ referrer?: string;
2516
+ referrerPolicy?: ReferrerPolicy;
2517
+ signal?: AbortSignal;
2518
+ window?: null;
2519
+ path?: Record<string, unknown>;
2520
+ query?: Record<string, unknown>;
2521
+ baseUrl?: string;
2522
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2523
+ fetch?: (request: Request) => Promise<Response>;
2524
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2525
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2526
+ throwOnError?: ThrowOnError;
2527
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2528
+ } & UpdateEmailRecordData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2529
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2530
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").EmailRecord, unknown, ThrowOnError>;
2531
+ export const deleteEmailRecord: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2532
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2533
+ } & DeleteEmailRecordData) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
2534
+ export const listIndustries: <ThrowOnError extends boolean = false>(options?: {
2535
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2536
+ cache?: RequestCache;
2537
+ credentials?: RequestCredentials;
2538
+ integrity?: string;
2539
+ keepalive?: boolean;
2540
+ mode?: RequestMode;
2541
+ redirect?: RequestRedirect;
2542
+ referrer?: string;
2543
+ referrerPolicy?: ReferrerPolicy;
2544
+ signal?: AbortSignal;
2545
+ window?: null;
2546
+ path?: Record<string, unknown>;
2547
+ query?: Record<string, unknown>;
2548
+ baseUrl?: string;
2549
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2550
+ fetch?: (request: Request) => Promise<Response>;
2551
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2552
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2553
+ throwOnError?: ThrowOnError;
2554
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2555
+ }) => import("@hey-api/client-fetch").RequestResult<ListIndustriesResponse, unknown, ThrowOnError>;
2556
+ export const listRegions: <ThrowOnError extends boolean = false>(options?: {
2557
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2558
+ cache?: RequestCache;
2559
+ credentials?: RequestCredentials;
2560
+ integrity?: string;
2561
+ keepalive?: boolean;
2562
+ mode?: RequestMode;
2563
+ redirect?: RequestRedirect;
2564
+ referrer?: string;
2565
+ referrerPolicy?: ReferrerPolicy;
2566
+ signal?: AbortSignal;
2567
+ window?: null;
2568
+ path?: Record<string, unknown>;
2569
+ query?: Record<string, unknown>;
2570
+ baseUrl?: string;
2571
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2572
+ fetch?: (request: Request) => Promise<Response>;
2573
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2574
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2575
+ throwOnError?: ThrowOnError;
2576
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2577
+ }) => import("@hey-api/client-fetch").RequestResult<ListRegionsResponse, unknown, ThrowOnError>;
2578
+ export const sendSms: <ThrowOnError extends boolean = false>(options: {
2579
+ headers?: Record<string, unknown> | HeadersInit;
2580
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2581
+ cache?: RequestCache;
2582
+ credentials?: RequestCredentials;
2583
+ integrity?: string;
2584
+ keepalive?: boolean;
2585
+ mode?: RequestMode;
2586
+ redirect?: RequestRedirect;
2587
+ referrer?: string;
2588
+ referrerPolicy?: ReferrerPolicy;
2589
+ signal?: AbortSignal;
2590
+ window?: null;
2591
+ path?: Record<string, unknown>;
2592
+ query?: Record<string, unknown>;
2593
+ baseUrl?: string;
2594
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2595
+ fetch?: (request: Request) => Promise<Response>;
2596
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2597
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2598
+ throwOnError?: ThrowOnError;
2599
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2600
+ } & SendSmsData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2601
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2602
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
2603
+ export const createSmsRecord: <ThrowOnError extends boolean = false>(options: {
2604
+ headers?: Record<string, unknown> | HeadersInit;
2605
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2606
+ cache?: RequestCache;
2607
+ credentials?: RequestCredentials;
2608
+ integrity?: string;
2609
+ keepalive?: boolean;
2610
+ mode?: RequestMode;
2611
+ redirect?: RequestRedirect;
2612
+ referrer?: string;
2613
+ referrerPolicy?: ReferrerPolicy;
2614
+ signal?: AbortSignal;
2615
+ window?: null;
2616
+ path?: Record<string, unknown>;
2617
+ query?: Record<string, unknown>;
2618
+ baseUrl?: string;
2619
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2620
+ fetch?: (request: Request) => Promise<Response>;
2621
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2622
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2623
+ throwOnError?: ThrowOnError;
2624
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2625
+ } & CreateSmsRecordData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2626
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2627
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").SmsRecord, unknown, ThrowOnError>;
2628
+ export const listSmsRecords: <ThrowOnError extends boolean = false>(options?: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2629
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2630
+ } & ListSmsRecordsData) => import("@hey-api/client-fetch").RequestResult<ListSmsRecordsResponse, unknown, ThrowOnError>;
2631
+ export const getSmsRecord: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2632
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2633
+ } & GetSmsRecordData) => import("@hey-api/client-fetch").RequestResult<import("types.gen").SmsRecord, unknown, ThrowOnError>;
2634
+ export const updateSmsRecord: <ThrowOnError extends boolean = false>(options: {
2635
+ headers?: Record<string, unknown> | HeadersInit;
2636
+ method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
2637
+ cache?: RequestCache;
2638
+ credentials?: RequestCredentials;
2639
+ integrity?: string;
2640
+ keepalive?: boolean;
2641
+ mode?: RequestMode;
2642
+ redirect?: RequestRedirect;
2643
+ referrer?: string;
2644
+ referrerPolicy?: ReferrerPolicy;
2645
+ signal?: AbortSignal;
2646
+ window?: null;
2647
+ path?: Record<string, unknown>;
2648
+ query?: Record<string, unknown>;
2649
+ baseUrl?: string;
2650
+ bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
2651
+ fetch?: (request: Request) => Promise<Response>;
2652
+ parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
2653
+ querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
2654
+ throwOnError?: ThrowOnError;
2655
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2656
+ } & UpdateSmsRecordData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2657
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2658
+ }, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").SmsRecord, unknown, ThrowOnError>;
2659
+ export const deleteSmsRecord: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
2660
+ client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
2661
+ } & DeleteSmsRecordData) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
563
2662
 
564
2663
  //# sourceMappingURL=types.d.ts.map