@36node/auth-sdk 1.0.0 → 1.1.1

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