@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/main.js CHANGED
@@ -1,3 +1,5 @@
1
+ var $8zHUo$heyapiclientfetch = require("@hey-api/client-fetch");
2
+
1
3
 
2
4
  function $parcel$exportWildcard(dest, source) {
3
5
  Object.keys(source).forEach(function(key) {
@@ -19,601 +21,1793 @@ function $parcel$exportWildcard(dest, source) {
19
21
  function $parcel$export(e, n, v, s) {
20
22
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
21
23
  }
22
- // Generated by openapi-ts-gen. DO NOT EDIT
23
- /* eslint-disable */ var $c47aa81bb7e816d4$exports = {};
24
+ // This file is auto-generated by @hey-api/openapi-ts
25
+ var $00d9c40198a72115$exports = {};
26
+
27
+ $parcel$export($00d9c40198a72115$exports, "$HealthCheckResult", () => $00d9c40198a72115$export$88f4d4b355951aa3);
28
+ $parcel$export($00d9c40198a72115$exports, "$LoginDto", () => $00d9c40198a72115$export$f4de602dbafe6fc8);
29
+ $parcel$export($00d9c40198a72115$exports, "$User", () => $00d9c40198a72115$export$424b0b82fa10bdfa);
30
+ $parcel$export($00d9c40198a72115$exports, "$SessionWithToken", () => $00d9c40198a72115$export$aaf658bacb5186fb);
31
+ $parcel$export($00d9c40198a72115$exports, "$LoginByEmailDto", () => $00d9c40198a72115$export$b60f6dff66c5c7ac);
32
+ $parcel$export($00d9c40198a72115$exports, "$LoginByPhoneDto", () => $00d9c40198a72115$export$330f12720b62cc63);
33
+ $parcel$export($00d9c40198a72115$exports, "$RegisterDto", () => $00d9c40198a72115$export$b5be97c39364f433);
34
+ $parcel$export($00d9c40198a72115$exports, "$RegisterbyPhoneDto", () => $00d9c40198a72115$export$e47424ab6045dd9e);
35
+ $parcel$export($00d9c40198a72115$exports, "$RegisterByEmailDto", () => $00d9c40198a72115$export$297fa16bfda62978);
36
+ $parcel$export($00d9c40198a72115$exports, "$SignTokenDto", () => $00d9c40198a72115$export$9700ad9c19f406f1);
37
+ $parcel$export($00d9c40198a72115$exports, "$Token", () => $00d9c40198a72115$export$836264d3c2fd35dd);
38
+ $parcel$export($00d9c40198a72115$exports, "$RefreshTokenDto", () => $00d9c40198a72115$export$4f302e855623adeb);
39
+ $parcel$export($00d9c40198a72115$exports, "$CreateUserDto", () => $00d9c40198a72115$export$42fb86b793a2c536);
40
+ $parcel$export($00d9c40198a72115$exports, "$UpdateUserDto", () => $00d9c40198a72115$export$1b308892cefd8e3e);
41
+ $parcel$export($00d9c40198a72115$exports, "$ResetPasswordDto", () => $00d9c40198a72115$export$ea03f88e5a85dda9);
42
+ $parcel$export($00d9c40198a72115$exports, "$UpdatePasswordDto", () => $00d9c40198a72115$export$3bacf71d57b21dff);
43
+ $parcel$export($00d9c40198a72115$exports, "$CreateNamespaceDto", () => $00d9c40198a72115$export$3a0f0f379fb2f43f);
44
+ $parcel$export($00d9c40198a72115$exports, "$Namespace", () => $00d9c40198a72115$export$fef09edac2f41dd6);
45
+ $parcel$export($00d9c40198a72115$exports, "$UpdateNamespaceDto", () => $00d9c40198a72115$export$532a2356385b479a);
46
+ $parcel$export($00d9c40198a72115$exports, "$CreateSessionDto", () => $00d9c40198a72115$export$c383d7f32a575ab);
47
+ $parcel$export($00d9c40198a72115$exports, "$Session", () => $00d9c40198a72115$export$90376f1cecfdbf1b);
48
+ $parcel$export($00d9c40198a72115$exports, "$UpdateSessionDto", () => $00d9c40198a72115$export$8799e003f5e64a20);
49
+ $parcel$export($00d9c40198a72115$exports, "$CreateCaptchaDto", () => $00d9c40198a72115$export$7e72ed431ee59116);
50
+ $parcel$export($00d9c40198a72115$exports, "$Captcha", () => $00d9c40198a72115$export$1f2dec6968d7e276);
51
+ $parcel$export($00d9c40198a72115$exports, "$UpdateCaptchaDto", () => $00d9c40198a72115$export$9ccc176b5ae9cc36);
52
+ $parcel$export($00d9c40198a72115$exports, "$SendEmailDto", () => $00d9c40198a72115$export$6f9a342594b281c0);
53
+ $parcel$export($00d9c40198a72115$exports, "$EmailStatus", () => $00d9c40198a72115$export$ca86ed5d3edf6578);
54
+ $parcel$export($00d9c40198a72115$exports, "$CreateEmailRecordDto", () => $00d9c40198a72115$export$2093419254bae162);
55
+ $parcel$export($00d9c40198a72115$exports, "$EmailRecord", () => $00d9c40198a72115$export$96180cdcc4bc745c);
56
+ $parcel$export($00d9c40198a72115$exports, "$UpdateEmailRecordDto", () => $00d9c40198a72115$export$f581847698cf72b6);
57
+ $parcel$export($00d9c40198a72115$exports, "$Industry", () => $00d9c40198a72115$export$86e7567d0e80a3fd);
58
+ $parcel$export($00d9c40198a72115$exports, "$Region", () => $00d9c40198a72115$export$fd4976cd1b633c9);
59
+ $parcel$export($00d9c40198a72115$exports, "$SendSmsDto", () => $00d9c40198a72115$export$9af4a86888b337b1);
60
+ $parcel$export($00d9c40198a72115$exports, "$SmsStatus", () => $00d9c40198a72115$export$d1050030e8300ed6);
61
+ $parcel$export($00d9c40198a72115$exports, "$CreateSmsRecordDto", () => $00d9c40198a72115$export$c91a8145d1d88a6b);
62
+ $parcel$export($00d9c40198a72115$exports, "$SmsRecord", () => $00d9c40198a72115$export$62bcd56e06b73f35);
63
+ $parcel$export($00d9c40198a72115$exports, "$UpdateSmsRecordDto", () => $00d9c40198a72115$export$b885d88b4209b261);
64
+ // This file is auto-generated by @hey-api/openapi-ts
65
+ const $00d9c40198a72115$export$88f4d4b355951aa3 = {
66
+ type: "object",
67
+ properties: {
68
+ message: {
69
+ type: "string"
70
+ }
71
+ },
72
+ required: [
73
+ "message"
74
+ ]
75
+ };
76
+ const $00d9c40198a72115$export$f4de602dbafe6fc8 = {
77
+ type: "object",
78
+ properties: {
79
+ login: {
80
+ type: "string",
81
+ description: "\u53EF\u4EE5\u662F username/phone/Email"
82
+ },
83
+ password: {
84
+ type: "string",
85
+ description: "\u5BC6\u7801"
86
+ }
87
+ },
88
+ required: [
89
+ "login",
90
+ "password"
91
+ ]
92
+ };
93
+ const $00d9c40198a72115$export$424b0b82fa10bdfa = {
94
+ type: "object",
95
+ properties: {
96
+ password: {
97
+ type: "string",
98
+ description: "\u5BC6\u7801",
99
+ writeOnly: true
100
+ },
101
+ hasPassword: {
102
+ type: "boolean",
103
+ description: "\u662F\u5426\u6709\u5BC6\u7801",
104
+ readOnly: true
105
+ },
106
+ avatar: {
107
+ type: "string",
108
+ description: "\u5934\u50CF"
109
+ },
110
+ data: {
111
+ type: "string",
112
+ description: "\u989D\u5916\u6570\u636E"
113
+ },
114
+ email: {
115
+ type: "string",
116
+ description: "\u90AE\u7BB1"
117
+ },
118
+ name: {
119
+ type: "string",
120
+ description: "\u59D3\u540D"
121
+ },
122
+ identity: {
123
+ type: "string"
124
+ },
125
+ identityVerifiedAt: {
126
+ format: "date-time",
127
+ type: "string",
128
+ description: "\u5B9E\u540D\u8BA4\u8BC1\u65F6\u95F4"
129
+ },
130
+ identityVerified: {
131
+ type: "boolean",
132
+ description: "\u5B9E\u540D\u8BA4\u8BC1\u662F\u5426\u901A\u8FC7"
133
+ },
134
+ intro: {
135
+ type: "string",
136
+ description: "\u7B80\u4ECB"
137
+ },
138
+ language: {
139
+ type: "string",
140
+ description: "\u4F7F\u7528\u8BED\u8A00"
141
+ },
142
+ lastLoginIp: {
143
+ type: "string",
144
+ description: "\u6700\u540E\u767B\u5F55 IP"
145
+ },
146
+ lastSeenAt: {
147
+ format: "date-time",
148
+ type: "string",
149
+ description: "\u6700\u540E\u6D3B\u8DC3\u65F6\u95F4"
150
+ },
151
+ nickname: {
152
+ type: "string",
153
+ description: "\u6635\u79F0"
154
+ },
155
+ ns: {
156
+ type: "string",
157
+ description: "\u6240\u5C5E\u547D\u540D\u7A7A\u95F4"
158
+ },
159
+ phone: {
160
+ type: "string",
161
+ description: "\u624B\u673A\u53F7"
162
+ },
163
+ registerIp: {
164
+ type: "string",
165
+ description: "\u6CE8\u518C IP"
166
+ },
167
+ registerRegion: {
168
+ type: "string",
169
+ description: "\u6CE8\u518C\u5730\u533A\uFF0C\u5B58\u5730\u533A\u7F16\u53F7"
170
+ },
171
+ roles: {
172
+ description: "\u89D2\u8272",
173
+ type: "array",
174
+ items: {
175
+ type: "string"
176
+ }
177
+ },
178
+ super: {
179
+ type: "boolean",
180
+ description: "\u662F\u5426\u8D85\u7EA7\u7BA1\u7406\u5458"
181
+ },
182
+ username: {
183
+ type: "string",
184
+ description: "\u7528\u6237\u540D"
185
+ },
186
+ employeeId: {
187
+ type: "string",
188
+ description: "\u5458\u5DE5\u7F16\u53F7"
189
+ },
190
+ permissions: {
191
+ description: "\u6743\u9650",
192
+ type: "array",
193
+ items: {
194
+ type: "string"
195
+ }
196
+ },
197
+ groups: {
198
+ description: "\u56E2\u961F",
199
+ type: "array",
200
+ items: {
201
+ type: "string"
202
+ }
203
+ },
204
+ lastLoginAt: {
205
+ format: "date-time",
206
+ type: "string",
207
+ description: "\u6700\u540E\u767B\u5F55\u65F6\u95F4"
208
+ },
209
+ active: {
210
+ type: "boolean",
211
+ description: "\u662F\u5426\u542F\u7528"
212
+ },
213
+ id: {
214
+ type: "string",
215
+ description: "Entity id"
216
+ },
217
+ createdAt: {
218
+ format: "date-time",
219
+ type: "string",
220
+ description: "Entity created at when"
221
+ },
222
+ updatedAt: {
223
+ format: "date-time",
224
+ type: "string",
225
+ description: "Entity updated at when"
226
+ },
227
+ createdBy: {
228
+ type: "string",
229
+ description: "Entity created by who"
230
+ },
231
+ updatedBy: {
232
+ type: "string",
233
+ description: "Entity updated by who"
234
+ }
235
+ },
236
+ required: [
237
+ "id"
238
+ ]
239
+ };
240
+ const $00d9c40198a72115$export$aaf658bacb5186fb = {
241
+ type: "object",
242
+ properties: {
243
+ acl: {
244
+ type: "object",
245
+ description: "\u8BBF\u95EE\u63A7\u5236\u5217\u8868"
246
+ },
247
+ expireAt: {
248
+ format: "date-time",
249
+ type: "string",
250
+ description: "\u4F1A\u8BDD\u8FC7\u671F\u65F6\u95F4"
251
+ },
252
+ key: {
253
+ type: "string",
254
+ description: "refresh token key"
255
+ },
256
+ user: {
257
+ description: "\u7528\u6237\uFF0C\u5B9E\u9645\u5B58\u50A8 uid",
258
+ allOf: [
259
+ {
260
+ $ref: "#/components/schemas/User"
261
+ }
262
+ ]
263
+ },
264
+ client: {
265
+ type: "string",
266
+ description: "\u5BA2\u6237\u7AEF/\u8BBE\u5907"
267
+ },
268
+ id: {
269
+ type: "string",
270
+ description: "Entity id"
271
+ },
272
+ createdAt: {
273
+ format: "date-time",
274
+ type: "string",
275
+ description: "Entity created at when"
276
+ },
277
+ updatedAt: {
278
+ format: "date-time",
279
+ type: "string",
280
+ description: "Entity updated at when"
281
+ },
282
+ createdBy: {
283
+ type: "string",
284
+ description: "Entity created by who"
285
+ },
286
+ updatedBy: {
287
+ type: "string",
288
+ description: "Entity updated by who"
289
+ },
290
+ token: {
291
+ type: "string",
292
+ description: "token"
293
+ },
294
+ tokenExpireAt: {
295
+ format: "date-time",
296
+ type: "string",
297
+ description: "token \u8FC7\u671F\u65F6\u95F4"
298
+ }
299
+ },
300
+ required: [
301
+ "expireAt",
302
+ "key",
303
+ "user",
304
+ "id",
305
+ "token",
306
+ "tokenExpireAt"
307
+ ]
308
+ };
309
+ const $00d9c40198a72115$export$b60f6dff66c5c7ac = {
310
+ type: "object",
311
+ properties: {
312
+ email: {
313
+ type: "string",
314
+ description: "\u90AE\u7BB1"
315
+ },
316
+ key: {
317
+ type: "string",
318
+ description: "\u9A8C\u8BC1\u7801 key"
319
+ },
320
+ code: {
321
+ type: "string",
322
+ description: "\u9A8C\u8BC1\u7801 code"
323
+ }
324
+ },
325
+ required: [
326
+ "email",
327
+ "key",
328
+ "code"
329
+ ]
330
+ };
331
+ const $00d9c40198a72115$export$330f12720b62cc63 = {
332
+ type: "object",
333
+ properties: {
334
+ phone: {
335
+ type: "string",
336
+ description: "\u624B\u673A\u53F7"
337
+ },
338
+ key: {
339
+ type: "string",
340
+ description: "\u9A8C\u8BC1\u7801 key"
341
+ },
342
+ code: {
343
+ type: "string",
344
+ description: "\u9A8C\u8BC1\u7801 code"
345
+ }
346
+ },
347
+ required: [
348
+ "phone",
349
+ "key",
350
+ "code"
351
+ ]
352
+ };
353
+ const $00d9c40198a72115$export$b5be97c39364f433 = {
354
+ type: "object",
355
+ properties: {
356
+ username: {
357
+ type: "string",
358
+ description: "\u7528\u6237\u540D"
359
+ },
360
+ password: {
361
+ type: "string",
362
+ description: "\u5BC6\u7801"
363
+ },
364
+ ns: {
365
+ type: "string",
366
+ description: "\u547D\u540D\u7A7A\u95F4"
367
+ }
368
+ },
369
+ required: [
370
+ "username",
371
+ "password"
372
+ ]
373
+ };
374
+ const $00d9c40198a72115$export$e47424ab6045dd9e = {
375
+ type: "object",
376
+ properties: {
377
+ phone: {
378
+ type: "string",
379
+ description: "\u624B\u673A\u53F7"
380
+ },
381
+ key: {
382
+ type: "string",
383
+ description: "\u9A8C\u8BC1\u7801 key"
384
+ },
385
+ code: {
386
+ type: "string",
387
+ description: "\u9A8C\u8BC1\u7801 code"
388
+ },
389
+ ns: {
390
+ type: "string",
391
+ description: "\u547D\u540D\u7A7A\u95F4"
392
+ }
393
+ },
394
+ required: [
395
+ "phone",
396
+ "key",
397
+ "code"
398
+ ]
399
+ };
400
+ const $00d9c40198a72115$export$297fa16bfda62978 = {
401
+ type: "object",
402
+ properties: {
403
+ email: {
404
+ type: "string",
405
+ description: "\u90AE\u7BB1"
406
+ },
407
+ key: {
408
+ type: "string",
409
+ description: "\u9A8C\u8BC1\u7801 key"
410
+ },
411
+ code: {
412
+ type: "string",
413
+ description: "\u9A8C\u8BC1\u7801 code"
414
+ },
415
+ ns: {
416
+ type: "string",
417
+ description: "\u547D\u540D\u7A7A\u95F4"
418
+ }
419
+ },
420
+ required: [
421
+ "email",
422
+ "key",
423
+ "code"
424
+ ]
425
+ };
426
+ const $00d9c40198a72115$export$9700ad9c19f406f1 = {
427
+ type: "object",
428
+ properties: {
429
+ expiresIn: {
430
+ type: "string",
431
+ description: `short time span string
432
+
433
+ refs: https://github.com/vercel/ms
24
434
 
25
- $parcel$export($c47aa81bb7e816d4$exports, "CoreAPIClient", () => $c47aa81bb7e816d4$export$353cb576ea2f33a4);
26
- // Generated by openapi-ts-gen. DO NOT EDIT
27
- /* eslint-disable */ class $c47aa81bb7e816d4$export$353cb576ea2f33a4 {
28
- constructor(client){
29
- this.hello = (req, config = {})=>{
30
- return this.client.request({
31
- ...config,
32
- url: `/hello`,
33
- method: "get"
34
- });
35
- };
36
- this.login = (req, config = {})=>{
37
- return this.client.request({
38
- ...config,
39
- url: `/auth/@login`,
40
- method: "post",
41
- data: req.body
42
- });
43
- };
44
- this.loginByEmail = (req, config = {})=>{
45
- return this.client.request({
46
- ...config,
47
- url: `/auth/@loginByEmail`,
48
- method: "post",
49
- data: req.body
50
- });
51
- };
52
- this.loginByPhone = (req, config = {})=>{
53
- return this.client.request({
54
- ...config,
55
- url: `/auth/@loginByPhone`,
56
- method: "post",
57
- data: req.body
58
- });
59
- };
60
- this.register = (req, config = {})=>{
61
- return this.client.request({
62
- ...config,
63
- url: `/auth/@register`,
64
- method: "post",
65
- data: req.body
66
- });
67
- };
68
- this.registerByPhone = (req, config = {})=>{
69
- return this.client.request({
70
- ...config,
71
- url: `/auth/@registerByPhone`,
72
- method: "post",
73
- data: req.body
74
- });
75
- };
76
- this.registerByEmail = (req, config = {})=>{
77
- return this.client.request({
78
- ...config,
79
- url: `/auth/@registerByEmail`,
80
- method: "post",
81
- data: req.body
82
- });
83
- };
84
- this.signToken = (req, config = {})=>{
85
- return this.client.request({
86
- ...config,
87
- url: `/auth/@signToken`,
88
- method: "post",
89
- data: req.body
90
- });
91
- };
92
- this.refresh = (req, config = {})=>{
93
- return this.client.request({
94
- ...config,
95
- url: `/auth/@refresh`,
96
- method: "post",
97
- data: req.body
98
- });
99
- };
100
- this.createUser = (req, config = {})=>{
101
- return this.client.request({
102
- ...config,
103
- url: `/users`,
104
- method: "post",
105
- data: req.body
106
- });
107
- };
108
- this.listUsers = (req, config = {})=>{
109
- return this.client.request({
110
- ...config,
111
- url: `/users`,
112
- method: "get",
113
- params: $c47aa81bb7e816d4$var$pick(req, [
114
- "_sort",
115
- "id",
116
- "name_like",
117
- "username_like",
118
- "nickname_like",
119
- "ns",
120
- "ns_start",
121
- "username",
122
- "email",
123
- "phone",
124
- "registerRegion",
125
- "roles",
126
- "_limit",
127
- "_offset"
128
- ])
129
- });
130
- };
131
- this.getUser = (req, config = {})=>{
132
- $c47aa81bb7e816d4$var$checkPathParams("getUser", req, [
133
- "userId"
134
- ]);
135
- return this.client.request({
136
- ...config,
137
- url: `/users/${req.userId}`,
138
- method: "get"
139
- });
140
- };
141
- this.updateUser = (req, config = {})=>{
142
- $c47aa81bb7e816d4$var$checkPathParams("updateUser", req, [
143
- "userId"
144
- ]);
145
- return this.client.request({
146
- ...config,
147
- url: `/users/${req.userId}`,
148
- method: "patch",
149
- data: req.body
150
- });
151
- };
152
- this.deleteUser = (req, config = {})=>{
153
- $c47aa81bb7e816d4$var$checkPathParams("deleteUser", req, [
154
- "userId"
155
- ]);
156
- return this.client.request({
157
- ...config,
158
- url: `/users/${req.userId}`,
159
- method: "delete"
160
- });
161
- };
162
- this.verifyIdentity = (req, config = {})=>{
163
- $c47aa81bb7e816d4$var$checkPathParams("verifyIdentity", req, [
164
- "userId"
165
- ]);
166
- return this.client.request({
167
- ...config,
168
- url: `/users/${req.userId}/@verifyIdentity`,
169
- method: "post"
170
- });
171
- };
172
- this.resetPassword = (req, config = {})=>{
173
- $c47aa81bb7e816d4$var$checkPathParams("resetPassword", req, [
174
- "userId"
175
- ]);
176
- return this.client.request({
177
- ...config,
178
- url: `/users/${req.userId}/@resetPassword`,
179
- method: "post",
180
- data: req.body
181
- });
182
- };
183
- this.updatePassword = (req, config = {})=>{
184
- $c47aa81bb7e816d4$var$checkPathParams("updatePassword", req, [
185
- "userId"
186
- ]);
187
- return this.client.request({
188
- ...config,
189
- url: `/users/${req.userId}/@updatePassword`,
190
- method: "post",
191
- data: req.body
192
- });
193
- };
194
- this.createNamespace = (req, config = {})=>{
195
- return this.client.request({
196
- ...config,
197
- url: `/namespaces`,
198
- method: "post",
199
- data: req.body
200
- });
201
- };
202
- this.listNamespaces = (req, config = {})=>{
203
- return this.client.request({
204
- ...config,
205
- url: `/namespaces`,
206
- method: "get",
207
- params: $c47aa81bb7e816d4$var$pick(req, [
208
- "ns",
209
- "ns_start",
210
- "_sort",
211
- "name_like",
212
- "labels",
213
- "key",
214
- "_limit",
215
- "_offset"
216
- ])
217
- });
218
- };
219
- this.getNamespace = (req, config = {})=>{
220
- $c47aa81bb7e816d4$var$checkPathParams("getNamespace", req, [
221
- "namespaceIdOrKey"
222
- ]);
223
- return this.client.request({
224
- ...config,
225
- url: `/namespaces/${req.namespaceIdOrKey}`,
226
- method: "get"
227
- });
228
- };
229
- this.updateNamespace = (req, config = {})=>{
230
- $c47aa81bb7e816d4$var$checkPathParams("updateNamespace", req, [
231
- "namespaceId"
232
- ]);
233
- return this.client.request({
234
- ...config,
235
- url: `/namespaces/${req.namespaceId}`,
236
- method: "patch",
237
- data: req.body
238
- });
239
- };
240
- this.deleteNamespace = (req, config = {})=>{
241
- $c47aa81bb7e816d4$var$checkPathParams("deleteNamespace", req, [
242
- "namespaceId"
243
- ]);
244
- return this.client.request({
245
- ...config,
246
- url: `/namespaces/${req.namespaceId}`,
247
- method: "delete"
248
- });
249
- };
250
- this.createSession = (req, config = {})=>{
251
- return this.client.request({
252
- ...config,
253
- url: `/sessions`,
254
- method: "post",
255
- data: req.body
256
- });
257
- };
258
- this.listSessions = (req, config = {})=>{
259
- return this.client.request({
260
- ...config,
261
- url: `/sessions`,
262
- method: "get",
263
- params: $c47aa81bb7e816d4$var$pick(req, [
264
- "_sort",
265
- "key",
266
- "client",
267
- "uid",
268
- "_limit",
269
- "_offset"
270
- ])
271
- });
272
- };
273
- this.getSession = (req, config = {})=>{
274
- $c47aa81bb7e816d4$var$checkPathParams("getSession", req, [
275
- "sessionId"
276
- ]);
277
- return this.client.request({
278
- ...config,
279
- url: `/sessions/${req.sessionId}`,
280
- method: "get"
281
- });
282
- };
283
- this.updateSession = (req, config = {})=>{
284
- $c47aa81bb7e816d4$var$checkPathParams("updateSession", req, [
285
- "sessionId"
286
- ]);
287
- return this.client.request({
288
- ...config,
289
- url: `/sessions/${req.sessionId}`,
290
- method: "patch",
291
- data: req.body
292
- });
293
- };
294
- this.deleteSession = (req, config = {})=>{
295
- $c47aa81bb7e816d4$var$checkPathParams("deleteSession", req, [
296
- "sessionId"
297
- ]);
298
- return this.client.request({
299
- ...config,
300
- url: `/sessions/${req.sessionId}`,
301
- method: "delete"
302
- });
303
- };
304
- this.createCaptcha = (req, config = {})=>{
305
- return this.client.request({
306
- ...config,
307
- url: `/captchas`,
308
- method: "post",
309
- data: req.body
310
- });
311
- };
312
- this.listCaptchas = (req, config = {})=>{
313
- return this.client.request({
314
- ...config,
315
- url: `/captchas`,
316
- method: "get",
317
- params: $c47aa81bb7e816d4$var$pick(req, [
318
- "_sort",
319
- "code",
320
- "key",
321
- "_limit",
322
- "_offset"
323
- ])
324
- });
325
- };
326
- this.getCaptcha = (req, config = {})=>{
327
- $c47aa81bb7e816d4$var$checkPathParams("getCaptcha", req, [
328
- "captchaId"
329
- ]);
330
- return this.client.request({
331
- ...config,
332
- url: `/captchas/${req.captchaId}`,
333
- method: "get"
334
- });
335
- };
336
- this.updateCaptcha = (req, config = {})=>{
337
- $c47aa81bb7e816d4$var$checkPathParams("updateCaptcha", req, [
338
- "captchaId"
339
- ]);
340
- return this.client.request({
341
- ...config,
342
- url: `/captchas/${req.captchaId}`,
343
- method: "patch",
344
- data: req.body
345
- });
346
- };
347
- this.deleteCaptcha = (req, config = {})=>{
348
- $c47aa81bb7e816d4$var$checkPathParams("deleteCaptcha", req, [
349
- "captchaId"
350
- ]);
351
- return this.client.request({
352
- ...config,
353
- url: `/captchas/${req.captchaId}`,
354
- method: "delete"
355
- });
356
- };
357
- this.sendEmail = (req, config = {})=>{
358
- return this.client.request({
359
- ...config,
360
- url: `/email/@sendEmail`,
361
- method: "post",
362
- data: req.body
363
- });
364
- };
365
- this.createEmailRecord = (req, config = {})=>{
366
- return this.client.request({
367
- ...config,
368
- url: `/email/records`,
369
- method: "post",
370
- data: req.body
371
- });
372
- };
373
- this.listEmailRecords = (req, config = {})=>{
374
- return this.client.request({
375
- ...config,
376
- url: `/email/records`,
377
- method: "get",
378
- params: $c47aa81bb7e816d4$var$pick(req, [
379
- "status",
380
- "_sort",
381
- "createdAt_gt",
382
- "createdAt_lt",
383
- "sentAt_gt",
384
- "sentAt_lt",
385
- "from",
386
- "to",
387
- "_limit",
388
- "_offset"
389
- ])
390
- });
391
- };
392
- this.getEmailRecord = (req, config = {})=>{
393
- $c47aa81bb7e816d4$var$checkPathParams("getEmailRecord", req, [
394
- "emailRecordId"
395
- ]);
396
- return this.client.request({
397
- ...config,
398
- url: `/email/records/${req.emailRecordId}`,
399
- method: "get"
400
- });
401
- };
402
- this.updateEmailRecord = (req, config = {})=>{
403
- $c47aa81bb7e816d4$var$checkPathParams("updateEmailRecord", req, [
404
- "emailRecordId"
405
- ]);
406
- return this.client.request({
407
- ...config,
408
- url: `/email/records/${req.emailRecordId}`,
409
- method: "patch",
410
- data: req.body
411
- });
412
- };
413
- this.deleteEmailRecord = (req, config = {})=>{
414
- $c47aa81bb7e816d4$var$checkPathParams("deleteEmailRecord", req, [
415
- "emailRecordId"
416
- ]);
417
- return this.client.request({
418
- ...config,
419
- url: `/email/records/${req.emailRecordId}`,
420
- method: "delete"
421
- });
422
- };
423
- this.listIndustries = (req, config = {})=>{
424
- return this.client.request({
425
- ...config,
426
- url: `/industries`,
427
- method: "get"
428
- });
429
- };
430
- this.listRegions = (req, config = {})=>{
431
- return this.client.request({
432
- ...config,
433
- url: `/regions`,
434
- method: "get"
435
- });
436
- };
437
- this.sendSms = (req, config = {})=>{
438
- return this.client.request({
439
- ...config,
440
- url: `/sms/@sendSms`,
441
- method: "post",
442
- data: req.body
443
- });
444
- };
445
- this.createSmsRecord = (req, config = {})=>{
446
- return this.client.request({
447
- ...config,
448
- url: `/sms/records`,
449
- method: "post",
450
- data: req.body
451
- });
452
- };
453
- this.listSmsRecords = (req, config = {})=>{
454
- return this.client.request({
455
- ...config,
456
- url: `/sms/records`,
457
- method: "get",
458
- params: $c47aa81bb7e816d4$var$pick(req, [
459
- "status",
460
- "_sort",
461
- "createdAt_gt",
462
- "createdAt_lt",
463
- "sentAt_gt",
464
- "sentAt_lt",
465
- "phone",
466
- "sign",
467
- "_limit",
468
- "_offset"
469
- ])
470
- });
471
- };
472
- this.getSmsRecord = (req, config = {})=>{
473
- $c47aa81bb7e816d4$var$checkPathParams("getSmsRecord", req, [
474
- "smsRecordId"
475
- ]);
476
- return this.client.request({
477
- ...config,
478
- url: `/sms/records/${req.smsRecordId}`,
479
- method: "get"
480
- });
481
- };
482
- this.updateSmsRecord = (req, config = {})=>{
483
- $c47aa81bb7e816d4$var$checkPathParams("updateSmsRecord", req, [
484
- "smsRecordId"
485
- ]);
486
- return this.client.request({
487
- ...config,
488
- url: `/sms/records/${req.smsRecordId}`,
489
- method: "patch",
490
- data: req.body
491
- });
492
- };
493
- this.deleteSmsRecord = (req, config = {})=>{
494
- $c47aa81bb7e816d4$var$checkPathParams("deleteSmsRecord", req, [
495
- "smsRecordId"
496
- ]);
497
- return this.client.request({
498
- ...config,
499
- url: `/sms/records/${req.smsRecordId}`,
500
- method: "delete"
501
- });
502
- };
503
- if (!client.defaults.baseURL) throw new Error("client's baseURL MUST specified");
504
- this.client = client;
435
+ eg: "2 days", "10h", "7d", "120s", "2.5 hrs", "2h", "1m", "5s", "1y", "100", "1y1m1d"
436
+
437
+ m => minute
438
+ h => hour
439
+ d => day
440
+ w => week
441
+ M => month
442
+ y => year
443
+ s => second
444
+ ms => millisecond
445
+ \u{65E0}\u{5355}\u{4F4D} => millisecond`
446
+ },
447
+ acl: {
448
+ type: "object",
449
+ description: "\u8BBF\u95EE\u63A7\u5236\u5217\u8868"
450
+ },
451
+ uid: {
452
+ type: "string",
453
+ description: "user id"
454
+ }
455
+ },
456
+ required: [
457
+ "expiresIn",
458
+ "uid"
459
+ ]
460
+ };
461
+ const $00d9c40198a72115$export$836264d3c2fd35dd = {
462
+ type: "object",
463
+ properties: {
464
+ token: {
465
+ type: "string",
466
+ description: "token"
467
+ },
468
+ tokenExpireAt: {
469
+ format: "date-time",
470
+ type: "string",
471
+ description: "token \u8FC7\u671F\u65F6\u95F4"
472
+ }
473
+ },
474
+ required: [
475
+ "token",
476
+ "tokenExpireAt"
477
+ ]
478
+ };
479
+ const $00d9c40198a72115$export$4f302e855623adeb = {
480
+ type: "object",
481
+ properties: {
482
+ key: {
483
+ type: "string",
484
+ description: "user id"
485
+ }
486
+ },
487
+ required: [
488
+ "key"
489
+ ]
490
+ };
491
+ const $00d9c40198a72115$export$42fb86b793a2c536 = {
492
+ type: "object",
493
+ properties: {
494
+ password: {
495
+ type: "string",
496
+ description: "\u5BC6\u7801",
497
+ writeOnly: true
498
+ },
499
+ hasPassword: {
500
+ type: "boolean",
501
+ description: "\u662F\u5426\u6709\u5BC6\u7801",
502
+ readOnly: true
503
+ },
504
+ avatar: {
505
+ type: "string",
506
+ description: "\u5934\u50CF"
507
+ },
508
+ data: {
509
+ type: "string",
510
+ description: "\u989D\u5916\u6570\u636E"
511
+ },
512
+ email: {
513
+ type: "string",
514
+ description: "\u90AE\u7BB1"
515
+ },
516
+ name: {
517
+ type: "string",
518
+ description: "\u59D3\u540D"
519
+ },
520
+ identity: {
521
+ type: "string"
522
+ },
523
+ identityVerifiedAt: {
524
+ format: "date-time",
525
+ type: "string",
526
+ description: "\u5B9E\u540D\u8BA4\u8BC1\u65F6\u95F4"
527
+ },
528
+ identityVerified: {
529
+ type: "boolean",
530
+ description: "\u5B9E\u540D\u8BA4\u8BC1\u662F\u5426\u901A\u8FC7"
531
+ },
532
+ intro: {
533
+ type: "string",
534
+ description: "\u7B80\u4ECB"
535
+ },
536
+ language: {
537
+ type: "string",
538
+ description: "\u4F7F\u7528\u8BED\u8A00"
539
+ },
540
+ nickname: {
541
+ type: "string",
542
+ description: "\u6635\u79F0"
543
+ },
544
+ ns: {
545
+ type: "string",
546
+ description: "\u6240\u5C5E\u547D\u540D\u7A7A\u95F4"
547
+ },
548
+ phone: {
549
+ type: "string",
550
+ description: "\u624B\u673A\u53F7"
551
+ },
552
+ registerRegion: {
553
+ type: "string",
554
+ description: "\u6CE8\u518C\u5730\u533A\uFF0C\u5B58\u5730\u533A\u7F16\u53F7"
555
+ },
556
+ roles: {
557
+ description: "\u89D2\u8272",
558
+ type: "array",
559
+ items: {
560
+ type: "string"
561
+ }
562
+ },
563
+ super: {
564
+ type: "boolean",
565
+ description: "\u662F\u5426\u8D85\u7EA7\u7BA1\u7406\u5458"
566
+ },
567
+ username: {
568
+ type: "string",
569
+ description: "\u7528\u6237\u540D"
570
+ },
571
+ employeeId: {
572
+ type: "string",
573
+ description: "\u5458\u5DE5\u7F16\u53F7"
574
+ },
575
+ permissions: {
576
+ description: "\u6743\u9650",
577
+ type: "array",
578
+ items: {
579
+ type: "string"
580
+ }
581
+ },
582
+ groups: {
583
+ description: "\u56E2\u961F",
584
+ type: "array",
585
+ items: {
586
+ type: "string"
587
+ }
588
+ },
589
+ active: {
590
+ type: "boolean",
591
+ description: "\u662F\u5426\u542F\u7528"
592
+ }
505
593
  }
506
- }
507
- function $c47aa81bb7e816d4$var$checkPathParams(op, req, ks) {
508
- ks.forEach((p)=>{
509
- if (!req[p]) throw new Error(`${p} is required for ${op}`);
510
- });
511
- }
512
- function $c47aa81bb7e816d4$var$pick(o, ks) {
513
- return ks.reduce((r, p)=>{
514
- r[p] = o[p];
515
- return r;
516
- }, {});
517
- }
594
+ };
595
+ const $00d9c40198a72115$export$1b308892cefd8e3e = {
596
+ type: "object",
597
+ properties: {
598
+ hasPassword: {
599
+ type: "boolean",
600
+ description: "\u662F\u5426\u6709\u5BC6\u7801",
601
+ readOnly: true
602
+ },
603
+ avatar: {
604
+ type: "string",
605
+ description: "\u5934\u50CF"
606
+ },
607
+ data: {
608
+ type: "string",
609
+ description: "\u989D\u5916\u6570\u636E"
610
+ },
611
+ email: {
612
+ type: "string",
613
+ description: "\u90AE\u7BB1"
614
+ },
615
+ name: {
616
+ type: "string",
617
+ description: "\u59D3\u540D"
618
+ },
619
+ identity: {
620
+ type: "string"
621
+ },
622
+ identityVerifiedAt: {
623
+ format: "date-time",
624
+ type: "string",
625
+ description: "\u5B9E\u540D\u8BA4\u8BC1\u65F6\u95F4"
626
+ },
627
+ identityVerified: {
628
+ type: "boolean",
629
+ description: "\u5B9E\u540D\u8BA4\u8BC1\u662F\u5426\u901A\u8FC7"
630
+ },
631
+ intro: {
632
+ type: "string",
633
+ description: "\u7B80\u4ECB"
634
+ },
635
+ language: {
636
+ type: "string",
637
+ description: "\u4F7F\u7528\u8BED\u8A00"
638
+ },
639
+ lastLoginIp: {
640
+ type: "string",
641
+ description: "\u6700\u540E\u767B\u5F55 IP"
642
+ },
643
+ lastSeenAt: {
644
+ format: "date-time",
645
+ type: "string",
646
+ description: "\u6700\u540E\u6D3B\u8DC3\u65F6\u95F4"
647
+ },
648
+ nickname: {
649
+ type: "string",
650
+ description: "\u6635\u79F0"
651
+ },
652
+ ns: {
653
+ type: "string",
654
+ description: "\u6240\u5C5E\u547D\u540D\u7A7A\u95F4"
655
+ },
656
+ phone: {
657
+ type: "string",
658
+ description: "\u624B\u673A\u53F7"
659
+ },
660
+ registerIp: {
661
+ type: "string",
662
+ description: "\u6CE8\u518C IP"
663
+ },
664
+ registerRegion: {
665
+ type: "string",
666
+ description: "\u6CE8\u518C\u5730\u533A\uFF0C\u5B58\u5730\u533A\u7F16\u53F7"
667
+ },
668
+ roles: {
669
+ description: "\u89D2\u8272",
670
+ type: "array",
671
+ items: {
672
+ type: "string"
673
+ }
674
+ },
675
+ super: {
676
+ type: "boolean",
677
+ description: "\u662F\u5426\u8D85\u7EA7\u7BA1\u7406\u5458"
678
+ },
679
+ username: {
680
+ type: "string",
681
+ description: "\u7528\u6237\u540D"
682
+ },
683
+ employeeId: {
684
+ type: "string",
685
+ description: "\u5458\u5DE5\u7F16\u53F7"
686
+ },
687
+ permissions: {
688
+ description: "\u6743\u9650",
689
+ type: "array",
690
+ items: {
691
+ type: "string"
692
+ }
693
+ },
694
+ groups: {
695
+ description: "\u56E2\u961F",
696
+ type: "array",
697
+ items: {
698
+ type: "string"
699
+ }
700
+ },
701
+ lastLoginAt: {
702
+ format: "date-time",
703
+ type: "string",
704
+ description: "\u6700\u540E\u767B\u5F55\u65F6\u95F4"
705
+ },
706
+ active: {
707
+ type: "boolean",
708
+ description: "\u662F\u5426\u542F\u7528"
709
+ }
710
+ }
711
+ };
712
+ const $00d9c40198a72115$export$ea03f88e5a85dda9 = {
713
+ type: "object",
714
+ properties: {
715
+ password: {
716
+ type: "string",
717
+ description: "\u5BC6\u7801"
718
+ }
719
+ }
720
+ };
721
+ const $00d9c40198a72115$export$3bacf71d57b21dff = {
722
+ type: "object",
723
+ properties: {
724
+ oldPassword: {
725
+ type: "string",
726
+ description: "\u65E7\u5BC6\u7801"
727
+ },
728
+ newPassword: {
729
+ type: "string",
730
+ description: "\u65B0\u5BC6\u7801"
731
+ }
732
+ },
733
+ required: [
734
+ "newPassword"
735
+ ]
736
+ };
737
+ const $00d9c40198a72115$export$3a0f0f379fb2f43f = {
738
+ type: "object",
739
+ properties: {
740
+ data: {
741
+ type: "string",
742
+ description: "\u989D\u5916\u6570\u636E"
743
+ },
744
+ desc: {
745
+ type: "string",
746
+ description: "\u63CF\u8FF0"
747
+ },
748
+ labels: {
749
+ description: "\u6807\u7B7E",
750
+ type: "array",
751
+ items: {
752
+ type: "string"
753
+ }
754
+ },
755
+ name: {
756
+ type: "string",
757
+ description: "\u540D\u79F0"
758
+ },
759
+ key: {
760
+ type: "string",
761
+ description: `\u{547D}\u{540D}\u{7A7A}\u{95F4}\u{7684} key
762
+
763
+ \u{5141}\u{8BB8}\u{7684}\u{5B57}\u{7B26} ^[a-zA-Z][a-zA-Z0-9._/-]{0,30}$`
764
+ },
765
+ ns: {
766
+ type: "string",
767
+ description: "\u6240\u5C5E\u7684 namespace"
768
+ },
769
+ permissions: {
770
+ description: "\u6743\u9650",
771
+ type: "array",
772
+ items: {
773
+ type: "string"
774
+ }
775
+ },
776
+ active: {
777
+ type: "boolean",
778
+ description: "\u662F\u5426\u542F\u7528"
779
+ },
780
+ company: {
781
+ type: "string",
782
+ description: "\u516C\u53F8"
783
+ },
784
+ defaultPassword: {
785
+ type: "string",
786
+ description: "\u9ED8\u8BA4\u5BC6\u7801"
787
+ }
788
+ },
789
+ required: [
790
+ "name",
791
+ "key"
792
+ ]
793
+ };
794
+ const $00d9c40198a72115$export$fef09edac2f41dd6 = {
795
+ type: "object",
796
+ properties: {
797
+ data: {
798
+ type: "string",
799
+ description: "\u989D\u5916\u6570\u636E"
800
+ },
801
+ desc: {
802
+ type: "string",
803
+ description: "\u63CF\u8FF0"
804
+ },
805
+ labels: {
806
+ description: "\u6807\u7B7E",
807
+ type: "array",
808
+ items: {
809
+ type: "string"
810
+ }
811
+ },
812
+ name: {
813
+ type: "string",
814
+ description: "\u540D\u79F0"
815
+ },
816
+ key: {
817
+ type: "string",
818
+ description: `\u{547D}\u{540D}\u{7A7A}\u{95F4}\u{7684} key
819
+
820
+ \u{5141}\u{8BB8}\u{7684}\u{5B57}\u{7B26} ^[a-zA-Z][a-zA-Z0-9._/-]{0,30}$`
821
+ },
822
+ ns: {
823
+ type: "string",
824
+ description: "\u6240\u5C5E\u7684 namespace"
825
+ },
826
+ permissions: {
827
+ description: "\u6743\u9650",
828
+ type: "array",
829
+ items: {
830
+ type: "string"
831
+ }
832
+ },
833
+ active: {
834
+ type: "boolean",
835
+ description: "\u662F\u5426\u542F\u7528"
836
+ },
837
+ company: {
838
+ type: "string",
839
+ description: "\u516C\u53F8"
840
+ },
841
+ defaultPassword: {
842
+ type: "string",
843
+ description: "\u9ED8\u8BA4\u5BC6\u7801"
844
+ },
845
+ id: {
846
+ type: "string",
847
+ description: "Entity id"
848
+ },
849
+ createdAt: {
850
+ format: "date-time",
851
+ type: "string",
852
+ description: "Entity created at when"
853
+ },
854
+ updatedAt: {
855
+ format: "date-time",
856
+ type: "string",
857
+ description: "Entity updated at when"
858
+ },
859
+ createdBy: {
860
+ type: "string",
861
+ description: "Entity created by who"
862
+ },
863
+ updatedBy: {
864
+ type: "string",
865
+ description: "Entity updated by who"
866
+ }
867
+ },
868
+ required: [
869
+ "name",
870
+ "key",
871
+ "id"
872
+ ]
873
+ };
874
+ const $00d9c40198a72115$export$532a2356385b479a = {
875
+ type: "object",
876
+ properties: {
877
+ data: {
878
+ type: "string",
879
+ description: "\u989D\u5916\u6570\u636E"
880
+ },
881
+ desc: {
882
+ type: "string",
883
+ description: "\u63CF\u8FF0"
884
+ },
885
+ labels: {
886
+ description: "\u6807\u7B7E",
887
+ type: "array",
888
+ items: {
889
+ type: "string"
890
+ }
891
+ },
892
+ name: {
893
+ type: "string",
894
+ description: "\u540D\u79F0"
895
+ },
896
+ permissions: {
897
+ description: "\u6743\u9650",
898
+ type: "array",
899
+ items: {
900
+ type: "string"
901
+ }
902
+ },
903
+ active: {
904
+ type: "boolean",
905
+ description: "\u662F\u5426\u542F\u7528"
906
+ },
907
+ company: {
908
+ type: "string",
909
+ description: "\u516C\u53F8"
910
+ },
911
+ defaultPassword: {
912
+ type: "string",
913
+ description: "\u9ED8\u8BA4\u5BC6\u7801"
914
+ }
915
+ }
916
+ };
917
+ const $00d9c40198a72115$export$c383d7f32a575ab = {
918
+ type: "object",
919
+ properties: {
920
+ uid: {
921
+ type: "string",
922
+ description: "\u7528\u6237 ID"
923
+ },
924
+ acl: {
925
+ type: "object",
926
+ description: "\u8BBF\u95EE\u63A7\u5236\u5217\u8868"
927
+ },
928
+ expireAt: {
929
+ format: "date-time",
930
+ type: "string",
931
+ description: "\u4F1A\u8BDD\u8FC7\u671F\u65F6\u95F4"
932
+ },
933
+ client: {
934
+ type: "string",
935
+ description: "\u5BA2\u6237\u7AEF/\u8BBE\u5907"
936
+ }
937
+ },
938
+ required: [
939
+ "uid",
940
+ "expireAt"
941
+ ]
942
+ };
943
+ const $00d9c40198a72115$export$90376f1cecfdbf1b = {
944
+ type: "object",
945
+ properties: {
946
+ acl: {
947
+ type: "object",
948
+ description: "\u8BBF\u95EE\u63A7\u5236\u5217\u8868"
949
+ },
950
+ expireAt: {
951
+ format: "date-time",
952
+ type: "string",
953
+ description: "\u4F1A\u8BDD\u8FC7\u671F\u65F6\u95F4"
954
+ },
955
+ key: {
956
+ type: "string",
957
+ description: "refresh token key"
958
+ },
959
+ user: {
960
+ description: "\u7528\u6237\uFF0C\u5B9E\u9645\u5B58\u50A8 uid",
961
+ allOf: [
962
+ {
963
+ $ref: "#/components/schemas/User"
964
+ }
965
+ ]
966
+ },
967
+ client: {
968
+ type: "string",
969
+ description: "\u5BA2\u6237\u7AEF/\u8BBE\u5907"
970
+ },
971
+ id: {
972
+ type: "string",
973
+ description: "Entity id"
974
+ },
975
+ createdAt: {
976
+ format: "date-time",
977
+ type: "string",
978
+ description: "Entity created at when"
979
+ },
980
+ updatedAt: {
981
+ format: "date-time",
982
+ type: "string",
983
+ description: "Entity updated at when"
984
+ },
985
+ createdBy: {
986
+ type: "string",
987
+ description: "Entity created by who"
988
+ },
989
+ updatedBy: {
990
+ type: "string",
991
+ description: "Entity updated by who"
992
+ }
993
+ },
994
+ required: [
995
+ "expireAt",
996
+ "key",
997
+ "user",
998
+ "id"
999
+ ]
1000
+ };
1001
+ const $00d9c40198a72115$export$8799e003f5e64a20 = {
1002
+ type: "object",
1003
+ properties: {
1004
+ acl: {
1005
+ type: "object",
1006
+ description: "\u8BBF\u95EE\u63A7\u5236\u5217\u8868"
1007
+ },
1008
+ expireAt: {
1009
+ format: "date-time",
1010
+ type: "string",
1011
+ description: "\u4F1A\u8BDD\u8FC7\u671F\u65F6\u95F4"
1012
+ },
1013
+ client: {
1014
+ type: "string",
1015
+ description: "\u5BA2\u6237\u7AEF/\u8BBE\u5907"
1016
+ },
1017
+ uid: {
1018
+ type: "string",
1019
+ description: "\u7528\u6237 ID"
1020
+ }
1021
+ }
1022
+ };
1023
+ const $00d9c40198a72115$export$7e72ed431ee59116 = {
1024
+ type: "object",
1025
+ properties: {
1026
+ code: {
1027
+ type: "string",
1028
+ description: "\u9A8C\u8BC1\u7801"
1029
+ },
1030
+ expireAt: {
1031
+ format: "date-time",
1032
+ type: "string",
1033
+ description: "\u8FC7\u671F\u65F6\u95F4"
1034
+ },
1035
+ key: {
1036
+ type: "string",
1037
+ description: "key"
1038
+ }
1039
+ },
1040
+ required: [
1041
+ "key"
1042
+ ]
1043
+ };
1044
+ const $00d9c40198a72115$export$1f2dec6968d7e276 = {
1045
+ type: "object",
1046
+ properties: {
1047
+ code: {
1048
+ type: "string",
1049
+ description: "\u9A8C\u8BC1\u7801"
1050
+ },
1051
+ expireAt: {
1052
+ format: "date-time",
1053
+ type: "string",
1054
+ description: "\u8FC7\u671F\u65F6\u95F4"
1055
+ },
1056
+ key: {
1057
+ type: "string",
1058
+ description: "key"
1059
+ },
1060
+ id: {
1061
+ type: "string",
1062
+ description: "Entity id"
1063
+ },
1064
+ createdAt: {
1065
+ format: "date-time",
1066
+ type: "string",
1067
+ description: "Entity created at when"
1068
+ },
1069
+ updatedAt: {
1070
+ format: "date-time",
1071
+ type: "string",
1072
+ description: "Entity updated at when"
1073
+ },
1074
+ createdBy: {
1075
+ type: "string",
1076
+ description: "Entity created by who"
1077
+ },
1078
+ updatedBy: {
1079
+ type: "string",
1080
+ description: "Entity updated by who"
1081
+ }
1082
+ },
1083
+ required: [
1084
+ "code",
1085
+ "expireAt",
1086
+ "key",
1087
+ "id"
1088
+ ]
1089
+ };
1090
+ const $00d9c40198a72115$export$9ccc176b5ae9cc36 = {
1091
+ type: "object",
1092
+ properties: {
1093
+ code: {
1094
+ type: "string",
1095
+ description: "\u9A8C\u8BC1\u7801"
1096
+ },
1097
+ expireAt: {
1098
+ format: "date-time",
1099
+ type: "string",
1100
+ description: "\u8FC7\u671F\u65F6\u95F4"
1101
+ },
1102
+ key: {
1103
+ type: "string",
1104
+ description: "key"
1105
+ }
1106
+ }
1107
+ };
1108
+ const $00d9c40198a72115$export$6f9a342594b281c0 = {
1109
+ type: "object",
1110
+ properties: {
1111
+ from: {
1112
+ type: "string"
1113
+ },
1114
+ to: {
1115
+ type: "string"
1116
+ },
1117
+ subject: {
1118
+ type: "string"
1119
+ },
1120
+ content: {
1121
+ type: "string"
1122
+ }
1123
+ },
1124
+ required: [
1125
+ "from",
1126
+ "to",
1127
+ "subject",
1128
+ "content"
1129
+ ]
1130
+ };
1131
+ const $00d9c40198a72115$export$ca86ed5d3edf6578 = {
1132
+ type: "string",
1133
+ description: "\u53D1\u9001\u72B6\u6001",
1134
+ enum: [
1135
+ "pending",
1136
+ "sent"
1137
+ ]
1138
+ };
1139
+ const $00d9c40198a72115$export$2093419254bae162 = {
1140
+ type: "object",
1141
+ properties: {
1142
+ status: {
1143
+ $ref: "#/components/schemas/EmailStatus"
1144
+ },
1145
+ from: {
1146
+ type: "string",
1147
+ description: "\u53D1\u4EF6\u8005"
1148
+ },
1149
+ to: {
1150
+ type: "string",
1151
+ description: "\u6536\u4EF6\u8005"
1152
+ },
1153
+ subject: {
1154
+ type: "string",
1155
+ description: "\u4E3B\u9898"
1156
+ },
1157
+ content: {
1158
+ type: "string",
1159
+ description: "\u5185\u5BB9"
1160
+ },
1161
+ sentAt: {
1162
+ format: "date-time",
1163
+ type: "string",
1164
+ description: "\u53D1\u9001\u65F6\u95F4"
1165
+ }
1166
+ },
1167
+ required: [
1168
+ "status",
1169
+ "from",
1170
+ "to",
1171
+ "subject",
1172
+ "content"
1173
+ ]
1174
+ };
1175
+ const $00d9c40198a72115$export$96180cdcc4bc745c = {
1176
+ type: "object",
1177
+ properties: {
1178
+ status: {
1179
+ $ref: "#/components/schemas/EmailStatus"
1180
+ },
1181
+ from: {
1182
+ type: "string",
1183
+ description: "\u53D1\u4EF6\u8005"
1184
+ },
1185
+ to: {
1186
+ type: "string",
1187
+ description: "\u6536\u4EF6\u8005"
1188
+ },
1189
+ subject: {
1190
+ type: "string",
1191
+ description: "\u4E3B\u9898"
1192
+ },
1193
+ content: {
1194
+ type: "string",
1195
+ description: "\u5185\u5BB9"
1196
+ },
1197
+ sentAt: {
1198
+ format: "date-time",
1199
+ type: "string",
1200
+ description: "\u53D1\u9001\u65F6\u95F4"
1201
+ },
1202
+ id: {
1203
+ type: "string",
1204
+ description: "Entity id"
1205
+ },
1206
+ createdAt: {
1207
+ format: "date-time",
1208
+ type: "string",
1209
+ description: "Entity created at when"
1210
+ },
1211
+ updatedAt: {
1212
+ format: "date-time",
1213
+ type: "string",
1214
+ description: "Entity updated at when"
1215
+ },
1216
+ createdBy: {
1217
+ type: "string",
1218
+ description: "Entity created by who"
1219
+ },
1220
+ updatedBy: {
1221
+ type: "string",
1222
+ description: "Entity updated by who"
1223
+ }
1224
+ },
1225
+ required: [
1226
+ "status",
1227
+ "from",
1228
+ "to",
1229
+ "subject",
1230
+ "content",
1231
+ "id"
1232
+ ]
1233
+ };
1234
+ const $00d9c40198a72115$export$f581847698cf72b6 = {
1235
+ type: "object",
1236
+ properties: {
1237
+ status: {
1238
+ $ref: "#/components/schemas/EmailStatus"
1239
+ },
1240
+ from: {
1241
+ type: "string",
1242
+ description: "\u53D1\u4EF6\u8005"
1243
+ },
1244
+ to: {
1245
+ type: "string",
1246
+ description: "\u6536\u4EF6\u8005"
1247
+ },
1248
+ subject: {
1249
+ type: "string",
1250
+ description: "\u4E3B\u9898"
1251
+ },
1252
+ content: {
1253
+ type: "string",
1254
+ description: "\u5185\u5BB9"
1255
+ },
1256
+ sentAt: {
1257
+ format: "date-time",
1258
+ type: "string",
1259
+ description: "\u53D1\u9001\u65F6\u95F4"
1260
+ }
1261
+ }
1262
+ };
1263
+ const $00d9c40198a72115$export$86e7567d0e80a3fd = {
1264
+ type: "object",
1265
+ properties: {
1266
+ code: {
1267
+ type: "string",
1268
+ description: "\u7F16\u7801"
1269
+ },
1270
+ name: {
1271
+ type: "string",
1272
+ description: "\u540D\u79F0"
1273
+ },
1274
+ children: {
1275
+ description: "\u5B50\u96C6",
1276
+ type: "array",
1277
+ items: {
1278
+ $ref: "#/components/schemas/Industry"
1279
+ }
1280
+ }
1281
+ },
1282
+ required: [
1283
+ "code",
1284
+ "name",
1285
+ "children"
1286
+ ]
1287
+ };
1288
+ const $00d9c40198a72115$export$fd4976cd1b633c9 = {
1289
+ type: "object",
1290
+ properties: {
1291
+ code: {
1292
+ type: "string",
1293
+ description: "\u7F29\u5199"
1294
+ },
1295
+ nameZh: {
1296
+ type: "string",
1297
+ description: "\u4E2D\u6587\u540D\u79F0"
1298
+ },
1299
+ namePinyin: {
1300
+ type: "string",
1301
+ description: "\u4E2D\u6587\u62FC\u97F3"
1302
+ },
1303
+ nameEn: {
1304
+ type: "string",
1305
+ description: "\u82F1\u6587\u540D\u79F0"
1306
+ },
1307
+ dialingPrefix: {
1308
+ type: "string",
1309
+ description: "\u7535\u8BDD\u524D\u7F00"
1310
+ }
1311
+ },
1312
+ required: [
1313
+ "code",
1314
+ "nameZh",
1315
+ "namePinyin",
1316
+ "nameEn",
1317
+ "dialingPrefix"
1318
+ ]
1319
+ };
1320
+ const $00d9c40198a72115$export$9af4a86888b337b1 = {
1321
+ type: "object",
1322
+ properties: {
1323
+ phone: {
1324
+ type: "string"
1325
+ },
1326
+ sign: {
1327
+ type: "string"
1328
+ },
1329
+ template: {
1330
+ type: "string"
1331
+ },
1332
+ params: {
1333
+ type: "object"
1334
+ }
1335
+ },
1336
+ required: [
1337
+ "phone",
1338
+ "sign",
1339
+ "template"
1340
+ ]
1341
+ };
1342
+ const $00d9c40198a72115$export$d1050030e8300ed6 = {
1343
+ type: "string",
1344
+ description: "\u53D1\u9001\u72B6\u6001",
1345
+ enum: [
1346
+ "pending",
1347
+ "sent"
1348
+ ]
1349
+ };
1350
+ const $00d9c40198a72115$export$c91a8145d1d88a6b = {
1351
+ type: "object",
1352
+ properties: {
1353
+ status: {
1354
+ $ref: "#/components/schemas/SmsStatus"
1355
+ },
1356
+ phone: {
1357
+ type: "string",
1358
+ description: "\u624B\u673A\u53F7"
1359
+ },
1360
+ sign: {
1361
+ type: "string",
1362
+ description: "\u7B7E\u540D"
1363
+ },
1364
+ template: {
1365
+ type: "string",
1366
+ description: "\u6A21\u677F"
1367
+ },
1368
+ params: {
1369
+ type: "string",
1370
+ description: "\u53C2\u6570"
1371
+ },
1372
+ sentAt: {
1373
+ format: "date-time",
1374
+ type: "string",
1375
+ description: "\u53D1\u9001\u65F6\u95F4"
1376
+ }
1377
+ },
1378
+ required: [
1379
+ "status",
1380
+ "phone",
1381
+ "sign",
1382
+ "template"
1383
+ ]
1384
+ };
1385
+ const $00d9c40198a72115$export$62bcd56e06b73f35 = {
1386
+ type: "object",
1387
+ properties: {
1388
+ status: {
1389
+ $ref: "#/components/schemas/SmsStatus"
1390
+ },
1391
+ phone: {
1392
+ type: "string",
1393
+ description: "\u624B\u673A\u53F7"
1394
+ },
1395
+ sign: {
1396
+ type: "string",
1397
+ description: "\u7B7E\u540D"
1398
+ },
1399
+ template: {
1400
+ type: "string",
1401
+ description: "\u6A21\u677F"
1402
+ },
1403
+ params: {
1404
+ type: "string",
1405
+ description: "\u53C2\u6570"
1406
+ },
1407
+ sentAt: {
1408
+ format: "date-time",
1409
+ type: "string",
1410
+ description: "\u53D1\u9001\u65F6\u95F4"
1411
+ },
1412
+ id: {
1413
+ type: "string",
1414
+ description: "Entity id"
1415
+ },
1416
+ createdAt: {
1417
+ format: "date-time",
1418
+ type: "string",
1419
+ description: "Entity created at when"
1420
+ },
1421
+ updatedAt: {
1422
+ format: "date-time",
1423
+ type: "string",
1424
+ description: "Entity updated at when"
1425
+ },
1426
+ createdBy: {
1427
+ type: "string",
1428
+ description: "Entity created by who"
1429
+ },
1430
+ updatedBy: {
1431
+ type: "string",
1432
+ description: "Entity updated by who"
1433
+ }
1434
+ },
1435
+ required: [
1436
+ "status",
1437
+ "phone",
1438
+ "sign",
1439
+ "template",
1440
+ "id"
1441
+ ]
1442
+ };
1443
+ const $00d9c40198a72115$export$b885d88b4209b261 = {
1444
+ type: "object",
1445
+ properties: {
1446
+ status: {
1447
+ $ref: "#/components/schemas/SmsStatus"
1448
+ },
1449
+ phone: {
1450
+ type: "string",
1451
+ description: "\u624B\u673A\u53F7"
1452
+ },
1453
+ sign: {
1454
+ type: "string",
1455
+ description: "\u7B7E\u540D"
1456
+ },
1457
+ template: {
1458
+ type: "string",
1459
+ description: "\u6A21\u677F"
1460
+ },
1461
+ params: {
1462
+ type: "string",
1463
+ description: "\u53C2\u6570"
1464
+ },
1465
+ sentAt: {
1466
+ format: "date-time",
1467
+ type: "string",
1468
+ description: "\u53D1\u9001\u65F6\u95F4"
1469
+ }
1470
+ }
1471
+ };
518
1472
 
519
1473
 
520
- var $63f14b9c71c969bd$exports = {};
1474
+ var $f3613dc0d7a37c99$exports = {};
1475
+
1476
+ $parcel$export($f3613dc0d7a37c99$exports, "client", () => $f3613dc0d7a37c99$export$388e0302ca0d9a41);
1477
+ $parcel$export($f3613dc0d7a37c99$exports, "hello", () => $f3613dc0d7a37c99$export$e2e77b41cb4e1f9e);
1478
+ $parcel$export($f3613dc0d7a37c99$exports, "login", () => $f3613dc0d7a37c99$export$596d806903d1f59e);
1479
+ $parcel$export($f3613dc0d7a37c99$exports, "loginByEmail", () => $f3613dc0d7a37c99$export$72356d9e5d4287de);
1480
+ $parcel$export($f3613dc0d7a37c99$exports, "loginByPhone", () => $f3613dc0d7a37c99$export$aa06bc33124d2a00);
1481
+ $parcel$export($f3613dc0d7a37c99$exports, "register", () => $f3613dc0d7a37c99$export$6503ec6e8aabbaf);
1482
+ $parcel$export($f3613dc0d7a37c99$exports, "registerByPhone", () => $f3613dc0d7a37c99$export$acd2ee44d8cc419c);
1483
+ $parcel$export($f3613dc0d7a37c99$exports, "registerByEmail", () => $f3613dc0d7a37c99$export$81b4f1bef0778e97);
1484
+ $parcel$export($f3613dc0d7a37c99$exports, "signToken", () => $f3613dc0d7a37c99$export$6fa58217127c2be5);
1485
+ $parcel$export($f3613dc0d7a37c99$exports, "refresh", () => $f3613dc0d7a37c99$export$2d6e9b4c68afb6c8);
1486
+ $parcel$export($f3613dc0d7a37c99$exports, "createUser", () => $f3613dc0d7a37c99$export$3493b8991d49f558);
1487
+ $parcel$export($f3613dc0d7a37c99$exports, "listUsers", () => $f3613dc0d7a37c99$export$1c4bb93498097c2d);
1488
+ $parcel$export($f3613dc0d7a37c99$exports, "getUser", () => $f3613dc0d7a37c99$export$7cbf767827cd68ba);
1489
+ $parcel$export($f3613dc0d7a37c99$exports, "updateUser", () => $f3613dc0d7a37c99$export$e3ac7a5d19605772);
1490
+ $parcel$export($f3613dc0d7a37c99$exports, "deleteUser", () => $f3613dc0d7a37c99$export$7d0f10f273c0438a);
1491
+ $parcel$export($f3613dc0d7a37c99$exports, "verifyIdentity", () => $f3613dc0d7a37c99$export$ba1d92ba04505a80);
1492
+ $parcel$export($f3613dc0d7a37c99$exports, "resetPassword", () => $f3613dc0d7a37c99$export$dc726c8e334dd814);
1493
+ $parcel$export($f3613dc0d7a37c99$exports, "updatePassword", () => $f3613dc0d7a37c99$export$e2853351e15b7895);
1494
+ $parcel$export($f3613dc0d7a37c99$exports, "createNamespace", () => $f3613dc0d7a37c99$export$9351443236ea3261);
1495
+ $parcel$export($f3613dc0d7a37c99$exports, "listNamespaces", () => $f3613dc0d7a37c99$export$64f28126552508c0);
1496
+ $parcel$export($f3613dc0d7a37c99$exports, "getNamespace", () => $f3613dc0d7a37c99$export$becf4f9e48e6290a);
1497
+ $parcel$export($f3613dc0d7a37c99$exports, "updateNamespace", () => $f3613dc0d7a37c99$export$9c52b148e3e82e);
1498
+ $parcel$export($f3613dc0d7a37c99$exports, "deleteNamespace", () => $f3613dc0d7a37c99$export$4b83ac7774adea2f);
1499
+ $parcel$export($f3613dc0d7a37c99$exports, "createSession", () => $f3613dc0d7a37c99$export$f7c62c73429afa28);
1500
+ $parcel$export($f3613dc0d7a37c99$exports, "listSessions", () => $f3613dc0d7a37c99$export$e2f57af6ce5ee4d);
1501
+ $parcel$export($f3613dc0d7a37c99$exports, "getSession", () => $f3613dc0d7a37c99$export$12151e9ef3722552);
1502
+ $parcel$export($f3613dc0d7a37c99$exports, "updateSession", () => $f3613dc0d7a37c99$export$531818e825e774db);
1503
+ $parcel$export($f3613dc0d7a37c99$exports, "deleteSession", () => $f3613dc0d7a37c99$export$f3b72123251cadf);
1504
+ $parcel$export($f3613dc0d7a37c99$exports, "createCaptcha", () => $f3613dc0d7a37c99$export$a6205785190db785);
1505
+ $parcel$export($f3613dc0d7a37c99$exports, "listCaptchas", () => $f3613dc0d7a37c99$export$72a6916a1591271b);
1506
+ $parcel$export($f3613dc0d7a37c99$exports, "getCaptcha", () => $f3613dc0d7a37c99$export$3f7c59539a3d9e70);
1507
+ $parcel$export($f3613dc0d7a37c99$exports, "updateCaptcha", () => $f3613dc0d7a37c99$export$a8ca09988a1eeb80);
1508
+ $parcel$export($f3613dc0d7a37c99$exports, "deleteCaptcha", () => $f3613dc0d7a37c99$export$b7ca998081fe193a);
1509
+ $parcel$export($f3613dc0d7a37c99$exports, "sendEmail", () => $f3613dc0d7a37c99$export$1cea2e25b75a88f2);
1510
+ $parcel$export($f3613dc0d7a37c99$exports, "createEmailRecord", () => $f3613dc0d7a37c99$export$1f96d950f89862c2);
1511
+ $parcel$export($f3613dc0d7a37c99$exports, "listEmailRecords", () => $f3613dc0d7a37c99$export$f7461c51f0fbbbec);
1512
+ $parcel$export($f3613dc0d7a37c99$exports, "getEmailRecord", () => $f3613dc0d7a37c99$export$e3abaa1f0f2be390);
1513
+ $parcel$export($f3613dc0d7a37c99$exports, "updateEmailRecord", () => $f3613dc0d7a37c99$export$340a3b15edf5320b);
1514
+ $parcel$export($f3613dc0d7a37c99$exports, "deleteEmailRecord", () => $f3613dc0d7a37c99$export$47732292698093e5);
1515
+ $parcel$export($f3613dc0d7a37c99$exports, "listIndustries", () => $f3613dc0d7a37c99$export$6a657f882af8e729);
1516
+ $parcel$export($f3613dc0d7a37c99$exports, "listRegions", () => $f3613dc0d7a37c99$export$40295cce70884665);
1517
+ $parcel$export($f3613dc0d7a37c99$exports, "sendSms", () => $f3613dc0d7a37c99$export$fe12addabe061498);
1518
+ $parcel$export($f3613dc0d7a37c99$exports, "createSmsRecord", () => $f3613dc0d7a37c99$export$89ba073eddabee7c);
1519
+ $parcel$export($f3613dc0d7a37c99$exports, "listSmsRecords", () => $f3613dc0d7a37c99$export$3a0aa6683b18ae05);
1520
+ $parcel$export($f3613dc0d7a37c99$exports, "getSmsRecord", () => $f3613dc0d7a37c99$export$8a807b18b6923f94);
1521
+ $parcel$export($f3613dc0d7a37c99$exports, "updateSmsRecord", () => $f3613dc0d7a37c99$export$a658b2c8c182930a);
1522
+ $parcel$export($f3613dc0d7a37c99$exports, "deleteSmsRecord", () => $f3613dc0d7a37c99$export$2816e50d4ec74f93);
1523
+ // This file is auto-generated by @hey-api/openapi-ts
1524
+
1525
+ const $f3613dc0d7a37c99$export$388e0302ca0d9a41 = (0, $8zHUo$heyapiclientfetch.createClient)((0, $8zHUo$heyapiclientfetch.createConfig)());
1526
+ const $f3613dc0d7a37c99$export$e2e77b41cb4e1f9e = (options)=>{
1527
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({
1528
+ ...options,
1529
+ url: "/hello"
1530
+ });
1531
+ };
1532
+ const $f3613dc0d7a37c99$export$596d806903d1f59e = (options)=>{
1533
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1534
+ ...options,
1535
+ url: "/auth/@login"
1536
+ });
1537
+ };
1538
+ const $f3613dc0d7a37c99$export$72356d9e5d4287de = (options)=>{
1539
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1540
+ ...options,
1541
+ url: "/auth/@loginByEmail"
1542
+ });
1543
+ };
1544
+ const $f3613dc0d7a37c99$export$aa06bc33124d2a00 = (options)=>{
1545
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1546
+ ...options,
1547
+ url: "/auth/@loginByPhone"
1548
+ });
1549
+ };
1550
+ const $f3613dc0d7a37c99$export$6503ec6e8aabbaf = (options)=>{
1551
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1552
+ ...options,
1553
+ url: "/auth/@register"
1554
+ });
1555
+ };
1556
+ const $f3613dc0d7a37c99$export$acd2ee44d8cc419c = (options)=>{
1557
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1558
+ ...options,
1559
+ url: "/auth/@registerByPhone"
1560
+ });
1561
+ };
1562
+ const $f3613dc0d7a37c99$export$81b4f1bef0778e97 = (options)=>{
1563
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1564
+ ...options,
1565
+ url: "/auth/@registerByEmail"
1566
+ });
1567
+ };
1568
+ const $f3613dc0d7a37c99$export$6fa58217127c2be5 = (options)=>{
1569
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1570
+ ...options,
1571
+ url: "/auth/@signToken"
1572
+ });
1573
+ };
1574
+ const $f3613dc0d7a37c99$export$2d6e9b4c68afb6c8 = (options)=>{
1575
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1576
+ ...options,
1577
+ url: "/auth/@refresh"
1578
+ });
1579
+ };
1580
+ const $f3613dc0d7a37c99$export$3493b8991d49f558 = (options)=>{
1581
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1582
+ ...options,
1583
+ url: "/users"
1584
+ });
1585
+ };
1586
+ const $f3613dc0d7a37c99$export$1c4bb93498097c2d = (options)=>{
1587
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({
1588
+ ...options,
1589
+ url: "/users"
1590
+ });
1591
+ };
1592
+ const $f3613dc0d7a37c99$export$7cbf767827cd68ba = (options)=>{
1593
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({
1594
+ ...options,
1595
+ url: "/users/{userId}"
1596
+ });
1597
+ };
1598
+ const $f3613dc0d7a37c99$export$e3ac7a5d19605772 = (options)=>{
1599
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).patch({
1600
+ ...options,
1601
+ url: "/users/{userId}"
1602
+ });
1603
+ };
1604
+ const $f3613dc0d7a37c99$export$7d0f10f273c0438a = (options)=>{
1605
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).delete({
1606
+ ...options,
1607
+ url: "/users/{userId}"
1608
+ });
1609
+ };
1610
+ const $f3613dc0d7a37c99$export$ba1d92ba04505a80 = (options)=>{
1611
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1612
+ ...options,
1613
+ url: "/users/{userId}/@verifyIdentity"
1614
+ });
1615
+ };
1616
+ const $f3613dc0d7a37c99$export$dc726c8e334dd814 = (options)=>{
1617
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1618
+ ...options,
1619
+ url: "/users/{userId}/@resetPassword"
1620
+ });
1621
+ };
1622
+ const $f3613dc0d7a37c99$export$e2853351e15b7895 = (options)=>{
1623
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1624
+ ...options,
1625
+ url: "/users/{userId}/@updatePassword"
1626
+ });
1627
+ };
1628
+ const $f3613dc0d7a37c99$export$9351443236ea3261 = (options)=>{
1629
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1630
+ ...options,
1631
+ url: "/namespaces"
1632
+ });
1633
+ };
1634
+ const $f3613dc0d7a37c99$export$64f28126552508c0 = (options)=>{
1635
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({
1636
+ ...options,
1637
+ url: "/namespaces"
1638
+ });
1639
+ };
1640
+ const $f3613dc0d7a37c99$export$becf4f9e48e6290a = (options)=>{
1641
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({
1642
+ ...options,
1643
+ url: "/namespaces/{namespaceIdOrKey}"
1644
+ });
1645
+ };
1646
+ const $f3613dc0d7a37c99$export$9c52b148e3e82e = (options)=>{
1647
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).patch({
1648
+ ...options,
1649
+ url: "/namespaces/{namespaceId}"
1650
+ });
1651
+ };
1652
+ const $f3613dc0d7a37c99$export$4b83ac7774adea2f = (options)=>{
1653
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).delete({
1654
+ ...options,
1655
+ url: "/namespaces/{namespaceId}"
1656
+ });
1657
+ };
1658
+ const $f3613dc0d7a37c99$export$f7c62c73429afa28 = (options)=>{
1659
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1660
+ ...options,
1661
+ url: "/sessions"
1662
+ });
1663
+ };
1664
+ const $f3613dc0d7a37c99$export$e2f57af6ce5ee4d = (options)=>{
1665
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({
1666
+ ...options,
1667
+ url: "/sessions"
1668
+ });
1669
+ };
1670
+ const $f3613dc0d7a37c99$export$12151e9ef3722552 = (options)=>{
1671
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({
1672
+ ...options,
1673
+ url: "/sessions/{sessionId}"
1674
+ });
1675
+ };
1676
+ const $f3613dc0d7a37c99$export$531818e825e774db = (options)=>{
1677
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).patch({
1678
+ ...options,
1679
+ url: "/sessions/{sessionId}"
1680
+ });
1681
+ };
1682
+ const $f3613dc0d7a37c99$export$f3b72123251cadf = (options)=>{
1683
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).delete({
1684
+ ...options,
1685
+ url: "/sessions/{sessionId}"
1686
+ });
1687
+ };
1688
+ const $f3613dc0d7a37c99$export$a6205785190db785 = (options)=>{
1689
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1690
+ ...options,
1691
+ url: "/captchas"
1692
+ });
1693
+ };
1694
+ const $f3613dc0d7a37c99$export$72a6916a1591271b = (options)=>{
1695
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({
1696
+ ...options,
1697
+ url: "/captchas"
1698
+ });
1699
+ };
1700
+ const $f3613dc0d7a37c99$export$3f7c59539a3d9e70 = (options)=>{
1701
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({
1702
+ ...options,
1703
+ url: "/captchas/{captchaId}"
1704
+ });
1705
+ };
1706
+ const $f3613dc0d7a37c99$export$a8ca09988a1eeb80 = (options)=>{
1707
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).patch({
1708
+ ...options,
1709
+ url: "/captchas/{captchaId}"
1710
+ });
1711
+ };
1712
+ const $f3613dc0d7a37c99$export$b7ca998081fe193a = (options)=>{
1713
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).delete({
1714
+ ...options,
1715
+ url: "/captchas/{captchaId}"
1716
+ });
1717
+ };
1718
+ const $f3613dc0d7a37c99$export$1cea2e25b75a88f2 = (options)=>{
1719
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1720
+ ...options,
1721
+ url: "/email/@sendEmail"
1722
+ });
1723
+ };
1724
+ const $f3613dc0d7a37c99$export$1f96d950f89862c2 = (options)=>{
1725
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1726
+ ...options,
1727
+ url: "/email/records"
1728
+ });
1729
+ };
1730
+ const $f3613dc0d7a37c99$export$f7461c51f0fbbbec = (options)=>{
1731
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({
1732
+ ...options,
1733
+ url: "/email/records"
1734
+ });
1735
+ };
1736
+ const $f3613dc0d7a37c99$export$e3abaa1f0f2be390 = (options)=>{
1737
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({
1738
+ ...options,
1739
+ url: "/email/records/{emailRecordId}"
1740
+ });
1741
+ };
1742
+ const $f3613dc0d7a37c99$export$340a3b15edf5320b = (options)=>{
1743
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).patch({
1744
+ ...options,
1745
+ url: "/email/records/{emailRecordId}"
1746
+ });
1747
+ };
1748
+ const $f3613dc0d7a37c99$export$47732292698093e5 = (options)=>{
1749
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).delete({
1750
+ ...options,
1751
+ url: "/email/records/{emailRecordId}"
1752
+ });
1753
+ };
1754
+ const $f3613dc0d7a37c99$export$6a657f882af8e729 = (options)=>{
1755
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({
1756
+ ...options,
1757
+ url: "/industries"
1758
+ });
1759
+ };
1760
+ const $f3613dc0d7a37c99$export$40295cce70884665 = (options)=>{
1761
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({
1762
+ ...options,
1763
+ url: "/regions"
1764
+ });
1765
+ };
1766
+ const $f3613dc0d7a37c99$export$fe12addabe061498 = (options)=>{
1767
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1768
+ ...options,
1769
+ url: "/sms/@sendSms"
1770
+ });
1771
+ };
1772
+ const $f3613dc0d7a37c99$export$89ba073eddabee7c = (options)=>{
1773
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({
1774
+ ...options,
1775
+ url: "/sms/records"
1776
+ });
1777
+ };
1778
+ const $f3613dc0d7a37c99$export$3a0aa6683b18ae05 = (options)=>{
1779
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({
1780
+ ...options,
1781
+ url: "/sms/records"
1782
+ });
1783
+ };
1784
+ const $f3613dc0d7a37c99$export$8a807b18b6923f94 = (options)=>{
1785
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({
1786
+ ...options,
1787
+ url: "/sms/records/{smsRecordId}"
1788
+ });
1789
+ };
1790
+ const $f3613dc0d7a37c99$export$a658b2c8c182930a = (options)=>{
1791
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).patch({
1792
+ ...options,
1793
+ url: "/sms/records/{smsRecordId}"
1794
+ });
1795
+ };
1796
+ const $f3613dc0d7a37c99$export$2816e50d4ec74f93 = (options)=>{
1797
+ return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).delete({
1798
+ ...options,
1799
+ url: "/sms/records/{smsRecordId}"
1800
+ });
1801
+ };
1802
+
521
1803
 
522
- $parcel$export($63f14b9c71c969bd$exports, "EmailStatus", () => $63f14b9c71c969bd$export$96fb7dfa641b77fb);
523
- $parcel$export($63f14b9c71c969bd$exports, "SmsStatus", () => $63f14b9c71c969bd$export$fc906f0c09f48d75);
524
- $parcel$export($63f14b9c71c969bd$exports, "ListUsersRequest", () => $63f14b9c71c969bd$export$5381d8f52f57bd1);
525
- $parcel$export($63f14b9c71c969bd$exports, "ListNamespacesRequest", () => $63f14b9c71c969bd$export$e73f6f358f36a136);
526
- $parcel$export($63f14b9c71c969bd$exports, "ListSessionsRequest", () => $63f14b9c71c969bd$export$3be39bb5c5d3e6d1);
527
- $parcel$export($63f14b9c71c969bd$exports, "ListCaptchasRequest", () => $63f14b9c71c969bd$export$ecd3dbc11728e32f);
528
- $parcel$export($63f14b9c71c969bd$exports, "ListEmailRecordsRequest", () => $63f14b9c71c969bd$export$72915f6295fc8ec7);
529
- $parcel$export($63f14b9c71c969bd$exports, "ListSmsRecordsRequest", () => $63f14b9c71c969bd$export$c2c207c1201b978a);
530
- // Generated by openapi-ts-gen. DO NOT EDIT
531
- /* eslint-disable */ var $63f14b9c71c969bd$export$96fb7dfa641b77fb;
532
- (function(EmailStatus) {
533
- EmailStatus["PENDING"] = "pending";
534
- EmailStatus["SENT"] = "sent";
535
- })($63f14b9c71c969bd$export$96fb7dfa641b77fb || ($63f14b9c71c969bd$export$96fb7dfa641b77fb = {}));
536
- var $63f14b9c71c969bd$export$fc906f0c09f48d75;
537
- (function(SmsStatus) {
538
- SmsStatus["PENDING"] = "pending";
539
- SmsStatus["SENT"] = "sent";
540
- })($63f14b9c71c969bd$export$fc906f0c09f48d75 || ($63f14b9c71c969bd$export$fc906f0c09f48d75 = {}));
541
- var $63f14b9c71c969bd$export$5381d8f52f57bd1;
542
- (function(ListUsersRequest) {
543
- let Sort;
544
- (function(Sort) {
545
- Sort["CREATED_AT"] = "createdAt";
546
- Sort["CREATED_AT_DESC"] = "-createdAt";
547
- Sort["UPDATED_AT"] = "updatedAt";
548
- Sort["UPDATED_AT_DESC"] = "-updatedAt";
549
- })(Sort = ListUsersRequest.Sort || (ListUsersRequest.Sort = {}));
550
- })($63f14b9c71c969bd$export$5381d8f52f57bd1 || ($63f14b9c71c969bd$export$5381d8f52f57bd1 = {}));
551
- var $63f14b9c71c969bd$export$e73f6f358f36a136;
552
- (function(ListNamespacesRequest) {
553
- let Sort;
554
- (function(Sort) {
555
- Sort["CREATED_AT"] = "createdAt";
556
- Sort["CREATED_AT_DESC"] = "-createdAt";
557
- Sort["UPDATED_AT"] = "updatedAt";
558
- Sort["UPDATED_AT_DESC"] = "-updatedAt";
559
- Sort["KEY"] = "key";
560
- Sort["KEY_DESC"] = "-key";
561
- Sort["NAME"] = "name";
562
- Sort["NAME_DESC"] = "-name";
563
- })(Sort = ListNamespacesRequest.Sort || (ListNamespacesRequest.Sort = {}));
564
- })($63f14b9c71c969bd$export$e73f6f358f36a136 || ($63f14b9c71c969bd$export$e73f6f358f36a136 = {}));
565
- var $63f14b9c71c969bd$export$3be39bb5c5d3e6d1;
566
- (function(ListSessionsRequest) {
567
- let Sort;
568
- (function(Sort) {
569
- Sort["CREATED_AT"] = "createdAt";
570
- Sort["CREATED_AT_DESC"] = "-createdAt";
571
- Sort["UPDATED_AT"] = "updatedAt";
572
- Sort["UPDATED_AT_DESC"] = "-updatedAt";
573
- Sort["EXPIRE_AT"] = "expireAt";
574
- Sort["EXPIRE_AT_DESC"] = "-expireAt";
575
- })(Sort = ListSessionsRequest.Sort || (ListSessionsRequest.Sort = {}));
576
- })($63f14b9c71c969bd$export$3be39bb5c5d3e6d1 || ($63f14b9c71c969bd$export$3be39bb5c5d3e6d1 = {}));
577
- var $63f14b9c71c969bd$export$ecd3dbc11728e32f;
578
- (function(ListCaptchasRequest) {
579
- let Sort;
580
- (function(Sort) {
581
- Sort["CREATED_AT"] = "createdAt";
582
- Sort["CREATED_AT_DESC"] = "-createdAt";
583
- Sort["UPDATED_AT"] = "updatedAt";
584
- Sort["UPDATED_AT_DESC"] = "-updatedAt";
585
- Sort["EXPIRE_AT"] = "expireAt";
586
- Sort["EXPIRE_AT_DESC"] = "-expireAt";
587
- })(Sort = ListCaptchasRequest.Sort || (ListCaptchasRequest.Sort = {}));
588
- })($63f14b9c71c969bd$export$ecd3dbc11728e32f || ($63f14b9c71c969bd$export$ecd3dbc11728e32f = {}));
589
- var $63f14b9c71c969bd$export$72915f6295fc8ec7;
590
- (function(ListEmailRecordsRequest) {
591
- let Sort;
592
- (function(Sort) {
593
- Sort["CREATED_AT"] = "createdAt";
594
- Sort["CREATED_AT_DESC"] = "-createdAt";
595
- Sort["UPDATED_AT"] = "updatedAt";
596
- Sort["UPDATED_AT_DESC"] = "-updatedAt";
597
- Sort["SENT_AT"] = "sentAt";
598
- Sort["SENT_AT_DESC"] = "-sentAt";
599
- })(Sort = ListEmailRecordsRequest.Sort || (ListEmailRecordsRequest.Sort = {}));
600
- })($63f14b9c71c969bd$export$72915f6295fc8ec7 || ($63f14b9c71c969bd$export$72915f6295fc8ec7 = {}));
601
- var $63f14b9c71c969bd$export$c2c207c1201b978a;
602
- (function(ListSmsRecordsRequest) {
603
- let Sort;
604
- (function(Sort) {
605
- Sort["CREATED_AT"] = "createdAt";
606
- Sort["CREATED_AT_DESC"] = "-createdAt";
607
- Sort["UPDATED_AT"] = "updatedAt";
608
- Sort["UPDATED_AT_DESC"] = "-updatedAt";
609
- Sort["SENT_AT"] = "sentAt";
610
- Sort["SENT_AT_DESC"] = "-sentAt";
611
- })(Sort = ListSmsRecordsRequest.Sort || (ListSmsRecordsRequest.Sort = {}));
612
- })($63f14b9c71c969bd$export$c2c207c1201b978a || ($63f14b9c71c969bd$export$c2c207c1201b978a = {}));
1804
+ var $88825bdeeeec0ab1$exports = {};
1805
+ // This file is auto-generated by @hey-api/openapi-ts
613
1806
 
614
1807
 
615
- $parcel$exportWildcard(module.exports, $c47aa81bb7e816d4$exports);
616
- $parcel$exportWildcard(module.exports, $63f14b9c71c969bd$exports);
1808
+ $parcel$exportWildcard(module.exports, $00d9c40198a72115$exports);
1809
+ $parcel$exportWildcard(module.exports, $f3613dc0d7a37c99$exports);
1810
+ $parcel$exportWildcard(module.exports, $88825bdeeeec0ab1$exports);
617
1811
 
618
1812
 
619
1813
  //# sourceMappingURL=main.js.map