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