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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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,457 +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: `/auth/v1/hello`,
33
- method: "get"
34
- });
35
- };
36
- this.createUser = (req, config = {})=>{
37
- return this.client.request({
38
- ...config,
39
- url: `/auth/v1/users`,
40
- method: "post",
41
- data: req.body
42
- });
43
- };
44
- this.listUsers = (req, config = {})=>{
45
- return this.client.request({
46
- ...config,
47
- url: `/auth/v1/users`,
48
- method: "get",
49
- params: $c47aa81bb7e816d4$var$pick(req, [
50
- "ns",
51
- "ns_scope",
52
- "_sort",
53
- "id",
54
- "name_like",
55
- "username",
56
- "username_like",
57
- "nickname_like",
58
- "email",
59
- "phone",
60
- "registerRegion",
61
- "roles",
62
- "dialingPrefix",
63
- "_limit",
64
- "_offset"
65
- ])
66
- });
67
- };
68
- this.getUser = (req, config = {})=>{
69
- $c47aa81bb7e816d4$var$checkPathParams("getUser", req, [
70
- "userId"
71
- ]);
72
- return this.client.request({
73
- ...config,
74
- url: `/auth/v1/users/${req.userId}`,
75
- method: "get"
76
- });
77
- };
78
- this.updateUser = (req, config = {})=>{
79
- $c47aa81bb7e816d4$var$checkPathParams("updateUser", req, [
80
- "userId"
81
- ]);
82
- return this.client.request({
83
- ...config,
84
- url: `/auth/v1/users/${req.userId}`,
85
- method: "patch",
86
- data: req.body
87
- });
88
- };
89
- this.deleteUser = (req, config = {})=>{
90
- $c47aa81bb7e816d4$var$checkPathParams("deleteUser", req, [
91
- "userId"
92
- ]);
93
- return this.client.request({
94
- ...config,
95
- url: `/auth/v1/users/${req.userId}`,
96
- method: "delete"
97
- });
98
- };
99
- this.createNamespace = (req, config = {})=>{
100
- return this.client.request({
101
- ...config,
102
- url: `/auth/v1/namespaces`,
103
- method: "post",
104
- data: req.body
105
- });
106
- };
107
- this.listNamespaces = (req, config = {})=>{
108
- return this.client.request({
109
- ...config,
110
- url: `/auth/v1/namespaces`,
111
- method: "get",
112
- params: $c47aa81bb7e816d4$var$pick(req, [
113
- "parent",
114
- "parent_scope",
115
- "_sort",
116
- "name_like",
117
- "labels",
118
- "_limit",
119
- "_offset"
120
- ])
121
- });
122
- };
123
- this.getNamespace = (req, config = {})=>{
124
- $c47aa81bb7e816d4$var$checkPathParams("getNamespace", req, [
125
- "namespaceIdOrNs"
126
- ]);
127
- return this.client.request({
128
- ...config,
129
- url: `/auth/v1/namespaces/${req.namespaceIdOrNs}`,
130
- method: "get"
131
- });
132
- };
133
- this.updateNamespace = (req, config = {})=>{
134
- $c47aa81bb7e816d4$var$checkPathParams("updateNamespace", req, [
135
- "namespaceId"
136
- ]);
137
- return this.client.request({
138
- ...config,
139
- url: `/auth/v1/namespaces/${req.namespaceId}`,
140
- method: "patch",
141
- data: req.body
142
- });
143
- };
144
- this.deleteNamespace = (req, config = {})=>{
145
- $c47aa81bb7e816d4$var$checkPathParams("deleteNamespace", req, [
146
- "namespaceId"
147
- ]);
148
- return this.client.request({
149
- ...config,
150
- url: `/auth/v1/namespaces/${req.namespaceId}`,
151
- method: "delete"
152
- });
153
- };
154
- this.listScopes = (req, config = {})=>{
155
- return this.client.request({
156
- ...config,
157
- url: `/auth/v1/scopes`,
158
- method: "get",
159
- params: $c47aa81bb7e816d4$var$pick(req, [
160
- "parent",
161
- "_sort",
162
- "labels",
163
- "_limit",
164
- "_offset",
165
- "name_like"
166
- ])
167
- });
168
- };
169
- this.createCaptchaBySms = (req, config = {})=>{
170
- return this.client.request({
171
- ...config,
172
- url: `/auth/v1/captchas/@createCaptchaBySms`,
173
- method: "post",
174
- data: req.body
175
- });
176
- };
177
- this.createCaptchaByEmail = (req, config = {})=>{
178
- return this.client.request({
179
- ...config,
180
- url: `/auth/v1/captchas/@createCaptchaByEmail`,
181
- method: "post",
182
- data: req.body
183
- });
184
- };
185
- this.createCaptchaByPhoto = (req, config = {})=>{
186
- return this.client.request({
187
- ...config,
188
- url: `/auth/v1/captchas/@createCaptchaByPhoto`,
189
- method: "post",
190
- data: req.body
191
- });
192
- };
193
- this.createSession = (req, config = {})=>{
194
- return this.client.request({
195
- ...config,
196
- url: `/auth/v1/sessions`,
197
- method: "post",
198
- data: req.body
199
- });
200
- };
201
- this.listSessions = (req, config = {})=>{
202
- return this.client.request({
203
- ...config,
204
- url: `/auth/v1/sessions`,
205
- method: "get",
206
- params: $c47aa81bb7e816d4$var$pick(req, [
207
- "_sort",
208
- "key",
209
- "client",
210
- "tokenExpiresIn",
211
- "uid",
212
- "_limit",
213
- "_offset"
214
- ])
215
- });
216
- };
217
- this.getSession = (req, config = {})=>{
218
- $c47aa81bb7e816d4$var$checkPathParams("getSession", req, [
219
- "sessionId"
220
- ]);
221
- return this.client.request({
222
- ...config,
223
- url: `/auth/v1/sessions/${req.sessionId}`,
224
- method: "get"
225
- });
226
- };
227
- this.updateSession = (req, config = {})=>{
228
- $c47aa81bb7e816d4$var$checkPathParams("updateSession", req, [
229
- "sessionId"
230
- ]);
231
- return this.client.request({
232
- ...config,
233
- url: `/auth/v1/sessions/${req.sessionId}`,
234
- method: "patch",
235
- data: req.body
236
- });
237
- };
238
- this.deleteSession = (req, config = {})=>{
239
- $c47aa81bb7e816d4$var$checkPathParams("deleteSession", req, [
240
- "sessionId"
241
- ]);
242
- return this.client.request({
243
- ...config,
244
- url: `/auth/v1/sessions/${req.sessionId}`,
245
- method: "delete"
246
- });
247
- };
248
- this.restrictToken = (req, config = {})=>{
249
- return this.client.request({
250
- ...config,
251
- url: `/auth/v1/sessions/@restrictToken`,
252
- method: "post",
253
- data: req.body
254
- });
255
- };
256
- this.listRegions = (req, config = {})=>{
257
- return this.client.request({
258
- ...config,
259
- url: `/auth/v1/base-data/regions`,
260
- method: "get"
261
- });
262
- };
263
- this.init = (req, config = {})=>{
264
- return this.client.request({
265
- ...config,
266
- url: `/auth/v1/init`,
267
- method: "post"
268
- });
269
- };
270
- this.getMyInfo = (req, config = {})=>{
271
- return this.client.request({
272
- ...config,
273
- url: `/auth/v1/me/info`,
274
- method: "get"
275
- });
276
- };
277
- this.updateMyInfo = (req, config = {})=>{
278
- return this.client.request({
279
- ...config,
280
- url: `/auth/v1/me/info`,
281
- method: "patch",
282
- data: req.body
283
- });
284
- };
285
- this.updateMyPassword = (req, config = {})=>{
286
- return this.client.request({
287
- ...config,
288
- url: `/auth/v1/me/password`,
289
- method: "patch",
290
- data: req.body
291
- });
292
- };
293
- this.resetMyPassword = (req, config = {})=>{
294
- return this.client.request({
295
- ...config,
296
- url: `/auth/v1/me/@resetPassword`,
297
- method: "post",
298
- data: req.body
299
- });
300
- };
301
- this.registerUserByPhone = (req, config = {})=>{
302
- return this.client.request({
303
- ...config,
304
- url: `/auth/v1/me/@registerByPhone`,
305
- method: "post",
306
- data: req.body
307
- });
308
- };
309
- this.registerUserByEmail = (req, config = {})=>{
310
- return this.client.request({
311
- ...config,
312
- url: `/auth/v1/me/@registerByEmail`,
313
- method: "post",
314
- data: req.body
315
- });
316
- };
317
- this.register = (req, config = {})=>{
318
- return this.client.request({
319
- ...config,
320
- url: `/auth/v1/me/@register`,
321
- method: "post",
322
- data: req.body
323
- });
324
- };
325
- this.login = (req, config = {})=>{
326
- return this.client.request({
327
- ...config,
328
- url: `/auth/v1/me/@login`,
329
- method: "post",
330
- data: req.body
331
- });
332
- };
333
- this.loginByPhone = (req, config = {})=>{
334
- return this.client.request({
335
- ...config,
336
- url: `/auth/v1/me/@loginByPhone`,
337
- method: "post",
338
- data: req.body
339
- });
340
- };
341
- this.loginByEmail = (req, config = {})=>{
342
- return this.client.request({
343
- ...config,
344
- url: `/auth/v1/me/@loginByEmail`,
345
- method: "post",
346
- data: req.body
347
- });
348
- };
349
- this.updateMyEmail = (req, config = {})=>{
350
- return this.client.request({
351
- ...config,
352
- url: `/auth/v1/me/email`,
353
- method: "patch",
354
- data: req.body
355
- });
356
- };
357
- this.updateMyPhone = (req, config = {})=>{
358
- return this.client.request({
359
- ...config,
360
- url: `/auth/v1/me/phone`,
361
- method: "patch",
362
- data: req.body
363
- });
364
- };
365
- this.logout = (req, config = {})=>{
366
- return this.client.request({
367
- ...config,
368
- url: `/auth/v1/me/@logout`,
369
- method: "post",
370
- data: req.body
371
- });
372
- };
373
- this.refreshSession = (req, config = {})=>{
374
- return this.client.request({
375
- ...config,
376
- url: `/auth/v1/me/@refresh`,
377
- method: "post",
378
- data: req.body
379
- });
380
- };
381
- this.verifyIdentity = (req, config = {})=>{
382
- return this.client.request({
383
- ...config,
384
- url: `/auth/v1/me/@verifyIdentity`,
385
- method: "post",
386
- data: req.body
387
- });
388
- };
389
- if (!client.defaults.baseURL) throw new Error("client's baseURL MUST specified");
390
- 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
+ }
391
593
  }
392
- }
393
- function $c47aa81bb7e816d4$var$checkPathParams(op, req, ks) {
394
- ks.forEach((p)=>{
395
- if (!req[p]) throw new Error(`${p} is required for ${op}`);
396
- });
397
- }
398
- function $c47aa81bb7e816d4$var$pick(o, ks) {
399
- return ks.reduce((r, p)=>{
400
- r[p] = o[p];
401
- return r;
402
- }, {});
403
- }
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
+ };
404
1472
 
405
1473
 
406
- 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
+
407
1803
 
408
- $parcel$export($63f14b9c71c969bd$exports, "IdentityType", () => $63f14b9c71c969bd$export$c4ce4d96a6d8ab9f);
409
- $parcel$export($63f14b9c71c969bd$exports, "CaptchaPurpose", () => $63f14b9c71c969bd$export$c3b86a372452ac9b);
410
- $parcel$export($63f14b9c71c969bd$exports, "ListUsersRequest", () => $63f14b9c71c969bd$export$5381d8f52f57bd1);
411
- $parcel$export($63f14b9c71c969bd$exports, "ListNamespacesRequest", () => $63f14b9c71c969bd$export$e73f6f358f36a136);
412
- $parcel$export($63f14b9c71c969bd$exports, "ListScopesRequest", () => $63f14b9c71c969bd$export$5a22098e85a53e52);
413
- $parcel$export($63f14b9c71c969bd$exports, "ListSessionsRequest", () => $63f14b9c71c969bd$export$3be39bb5c5d3e6d1);
414
- // Generated by openapi-ts-gen. DO NOT EDIT
415
- /* eslint-disable */ var $63f14b9c71c969bd$export$c4ce4d96a6d8ab9f;
416
- (function(IdentityType) {
417
- IdentityType["ID"] = "ID";
418
- })($63f14b9c71c969bd$export$c4ce4d96a6d8ab9f || ($63f14b9c71c969bd$export$c4ce4d96a6d8ab9f = {}));
419
- var $63f14b9c71c969bd$export$c3b86a372452ac9b;
420
- (function(CaptchaPurpose) {
421
- CaptchaPurpose["REGISTER"] = "REGISTER";
422
- CaptchaPurpose["LOGIN"] = "LOGIN";
423
- CaptchaPurpose["RESET_PASSWORD"] = "RESET_PASSWORD";
424
- CaptchaPurpose["UPDATE_PHONE"] = "UPDATE_PHONE";
425
- CaptchaPurpose["UPDATE_EMAIL"] = "UPDATE_EMAIL";
426
- })($63f14b9c71c969bd$export$c3b86a372452ac9b || ($63f14b9c71c969bd$export$c3b86a372452ac9b = {}));
427
- var $63f14b9c71c969bd$export$5381d8f52f57bd1;
428
- (function(ListUsersRequest) {
429
- let Sort;
430
- (function(Sort) {
431
- Sort["CREATE_AT"] = "createAt";
432
- Sort["CREATE_AT_DESC"] = "-createAt";
433
- Sort["UPDATE_AT"] = "updateAt";
434
- Sort["UPDATE_AT_DESC"] = "-updateAt";
435
- })(Sort = ListUsersRequest.Sort || (ListUsersRequest.Sort = {}));
436
- })($63f14b9c71c969bd$export$5381d8f52f57bd1 || ($63f14b9c71c969bd$export$5381d8f52f57bd1 = {}));
437
- var $63f14b9c71c969bd$export$e73f6f358f36a136;
438
- (function(ListNamespacesRequest) {
439
- let Sort;
440
- (function(Sort) {
441
- Sort["CREATE_AT"] = "createAt";
442
- Sort["CREATE_AT_DESC"] = "-createAt";
443
- Sort["UPDATE_AT"] = "updateAt";
444
- Sort["UPDATE_AT_DESC"] = "-updateAt";
445
- })(Sort = ListNamespacesRequest.Sort || (ListNamespacesRequest.Sort = {}));
446
- })($63f14b9c71c969bd$export$e73f6f358f36a136 || ($63f14b9c71c969bd$export$e73f6f358f36a136 = {}));
447
- var $63f14b9c71c969bd$export$5a22098e85a53e52;
448
- (function(ListScopesRequest) {
449
- let Sort;
450
- (function(Sort) {
451
- Sort["CREATE_AT"] = "createAt";
452
- Sort["CREATE_AT_DESC"] = "-createAt";
453
- Sort["UPDATE_AT"] = "updateAt";
454
- Sort["UPDATE_AT_DESC"] = "-updateAt";
455
- })(Sort = ListScopesRequest.Sort || (ListScopesRequest.Sort = {}));
456
- })($63f14b9c71c969bd$export$5a22098e85a53e52 || ($63f14b9c71c969bd$export$5a22098e85a53e52 = {}));
457
- var $63f14b9c71c969bd$export$3be39bb5c5d3e6d1;
458
- (function(ListSessionsRequest) {
459
- let Sort;
460
- (function(Sort) {
461
- Sort["CREATE_AT"] = "createAt";
462
- Sort["CREATE_AT_DESC"] = "-createAt";
463
- Sort["UPDATE_AT"] = "updateAt";
464
- Sort["UPDATE_AT_DESC"] = "-updateAt";
465
- Sort["EXPIRE_AT"] = "expireAt";
466
- Sort["EXPIRE_AT_DESC"] = "-expireAt";
467
- })(Sort = ListSessionsRequest.Sort || (ListSessionsRequest.Sort = {}));
468
- })($63f14b9c71c969bd$export$3be39bb5c5d3e6d1 || ($63f14b9c71c969bd$export$3be39bb5c5d3e6d1 = {}));
1804
+ var $88825bdeeeec0ab1$exports = {};
1805
+ // This file is auto-generated by @hey-api/openapi-ts
469
1806
 
470
1807
 
471
- $parcel$exportWildcard(module.exports, $c47aa81bb7e816d4$exports);
472
- $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);
473
1811
 
474
1812
 
475
1813
  //# sourceMappingURL=main.js.map