@36node/auth-sdk 1.0.0 → 1.1.1

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