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

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