@36node/auth-sdk 1.1.0 → 1.1.1-pr-7-281e214970

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