@36node/auth-sdk 1.1.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,601 +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: `/hello`,
33
- method: "get"
34
- });
35
- };
36
- this.login = (req, config = {})=>{
37
- return this.client.request({
38
- ...config,
39
- url: `/auth/@login`,
40
- method: "post",
41
- data: req.body
42
- });
43
- };
44
- this.loginByEmail = (req, config = {})=>{
45
- return this.client.request({
46
- ...config,
47
- url: `/auth/@loginByEmail`,
48
- method: "post",
49
- data: req.body
50
- });
51
- };
52
- this.loginByPhone = (req, config = {})=>{
53
- return this.client.request({
54
- ...config,
55
- url: `/auth/@loginByPhone`,
56
- method: "post",
57
- data: req.body
58
- });
59
- };
60
- this.register = (req, config = {})=>{
61
- return this.client.request({
62
- ...config,
63
- url: `/auth/@register`,
64
- method: "post",
65
- data: req.body
66
- });
67
- };
68
- this.registerByPhone = (req, config = {})=>{
69
- return this.client.request({
70
- ...config,
71
- url: `/auth/@registerByPhone`,
72
- method: "post",
73
- data: req.body
74
- });
75
- };
76
- this.registerByEmail = (req, config = {})=>{
77
- return this.client.request({
78
- ...config,
79
- url: `/auth/@registerByEmail`,
80
- method: "post",
81
- data: req.body
82
- });
83
- };
84
- this.signToken = (req, config = {})=>{
85
- return this.client.request({
86
- ...config,
87
- url: `/auth/@signToken`,
88
- method: "post",
89
- data: req.body
90
- });
91
- };
92
- this.refresh = (req, config = {})=>{
93
- return this.client.request({
94
- ...config,
95
- url: `/auth/@refresh`,
96
- method: "post",
97
- data: req.body
98
- });
99
- };
100
- this.createUser = (req, config = {})=>{
101
- return this.client.request({
102
- ...config,
103
- url: `/users`,
104
- method: "post",
105
- data: req.body
106
- });
107
- };
108
- this.listUsers = (req, config = {})=>{
109
- return this.client.request({
110
- ...config,
111
- url: `/users`,
112
- method: "get",
113
- params: $c47aa81bb7e816d4$var$pick(req, [
114
- "_sort",
115
- "id",
116
- "name_like",
117
- "username_like",
118
- "nickname_like",
119
- "ns",
120
- "ns_start",
121
- "username",
122
- "email",
123
- "phone",
124
- "registerRegion",
125
- "roles",
126
- "_limit",
127
- "_offset"
128
- ])
129
- });
130
- };
131
- this.getUser = (req, config = {})=>{
132
- $c47aa81bb7e816d4$var$checkPathParams("getUser", req, [
133
- "userId"
134
- ]);
135
- return this.client.request({
136
- ...config,
137
- url: `/users/${req.userId}`,
138
- method: "get"
139
- });
140
- };
141
- this.updateUser = (req, config = {})=>{
142
- $c47aa81bb7e816d4$var$checkPathParams("updateUser", req, [
143
- "userId"
144
- ]);
145
- return this.client.request({
146
- ...config,
147
- url: `/users/${req.userId}`,
148
- method: "patch",
149
- data: req.body
150
- });
151
- };
152
- this.deleteUser = (req, config = {})=>{
153
- $c47aa81bb7e816d4$var$checkPathParams("deleteUser", req, [
154
- "userId"
155
- ]);
156
- return this.client.request({
157
- ...config,
158
- url: `/users/${req.userId}`,
159
- method: "delete"
160
- });
161
- };
162
- this.verifyIdentity = (req, config = {})=>{
163
- $c47aa81bb7e816d4$var$checkPathParams("verifyIdentity", req, [
164
- "userId"
165
- ]);
166
- return this.client.request({
167
- ...config,
168
- url: `/users/${req.userId}/@verifyIdentity`,
169
- method: "post"
170
- });
171
- };
172
- this.resetPassword = (req, config = {})=>{
173
- $c47aa81bb7e816d4$var$checkPathParams("resetPassword", req, [
174
- "userId"
175
- ]);
176
- return this.client.request({
177
- ...config,
178
- url: `/users/${req.userId}/@resetPassword`,
179
- method: "post",
180
- data: req.body
181
- });
182
- };
183
- this.updatePassword = (req, config = {})=>{
184
- $c47aa81bb7e816d4$var$checkPathParams("updatePassword", req, [
185
- "userId"
186
- ]);
187
- return this.client.request({
188
- ...config,
189
- url: `/users/${req.userId}/@updatePassword`,
190
- method: "post",
191
- data: req.body
192
- });
193
- };
194
- this.createNamespace = (req, config = {})=>{
195
- return this.client.request({
196
- ...config,
197
- url: `/namespaces`,
198
- method: "post",
199
- data: req.body
200
- });
201
- };
202
- this.listNamespaces = (req, config = {})=>{
203
- return this.client.request({
204
- ...config,
205
- url: `/namespaces`,
206
- method: "get",
207
- params: $c47aa81bb7e816d4$var$pick(req, [
208
- "ns",
209
- "ns_start",
210
- "_sort",
211
- "name_like",
212
- "labels",
213
- "key",
214
- "_limit",
215
- "_offset"
216
- ])
217
- });
218
- };
219
- this.getNamespace = (req, config = {})=>{
220
- $c47aa81bb7e816d4$var$checkPathParams("getNamespace", req, [
221
- "namespaceIdOrKey"
222
- ]);
223
- return this.client.request({
224
- ...config,
225
- url: `/namespaces/${req.namespaceIdOrKey}`,
226
- method: "get"
227
- });
228
- };
229
- this.updateNamespace = (req, config = {})=>{
230
- $c47aa81bb7e816d4$var$checkPathParams("updateNamespace", req, [
231
- "namespaceId"
232
- ]);
233
- return this.client.request({
234
- ...config,
235
- url: `/namespaces/${req.namespaceId}`,
236
- method: "patch",
237
- data: req.body
238
- });
239
- };
240
- this.deleteNamespace = (req, config = {})=>{
241
- $c47aa81bb7e816d4$var$checkPathParams("deleteNamespace", req, [
242
- "namespaceId"
243
- ]);
244
- return this.client.request({
245
- ...config,
246
- url: `/namespaces/${req.namespaceId}`,
247
- method: "delete"
248
- });
249
- };
250
- this.createSession = (req, config = {})=>{
251
- return this.client.request({
252
- ...config,
253
- url: `/sessions`,
254
- method: "post",
255
- data: req.body
256
- });
257
- };
258
- this.listSessions = (req, config = {})=>{
259
- return this.client.request({
260
- ...config,
261
- url: `/sessions`,
262
- method: "get",
263
- params: $c47aa81bb7e816d4$var$pick(req, [
264
- "_sort",
265
- "key",
266
- "client",
267
- "uid",
268
- "_limit",
269
- "_offset"
270
- ])
271
- });
272
- };
273
- this.getSession = (req, config = {})=>{
274
- $c47aa81bb7e816d4$var$checkPathParams("getSession", req, [
275
- "sessionId"
276
- ]);
277
- return this.client.request({
278
- ...config,
279
- url: `/sessions/${req.sessionId}`,
280
- method: "get"
281
- });
282
- };
283
- this.updateSession = (req, config = {})=>{
284
- $c47aa81bb7e816d4$var$checkPathParams("updateSession", req, [
285
- "sessionId"
286
- ]);
287
- return this.client.request({
288
- ...config,
289
- url: `/sessions/${req.sessionId}`,
290
- method: "patch",
291
- data: req.body
292
- });
293
- };
294
- this.deleteSession = (req, config = {})=>{
295
- $c47aa81bb7e816d4$var$checkPathParams("deleteSession", req, [
296
- "sessionId"
297
- ]);
298
- return this.client.request({
299
- ...config,
300
- url: `/sessions/${req.sessionId}`,
301
- method: "delete"
302
- });
303
- };
304
- this.createCaptcha = (req, config = {})=>{
305
- return this.client.request({
306
- ...config,
307
- url: `/captchas`,
308
- method: "post",
309
- data: req.body
310
- });
311
- };
312
- this.listCaptchas = (req, config = {})=>{
313
- return this.client.request({
314
- ...config,
315
- url: `/captchas`,
316
- method: "get",
317
- params: $c47aa81bb7e816d4$var$pick(req, [
318
- "_sort",
319
- "code",
320
- "key",
321
- "_limit",
322
- "_offset"
323
- ])
324
- });
325
- };
326
- this.getCaptcha = (req, config = {})=>{
327
- $c47aa81bb7e816d4$var$checkPathParams("getCaptcha", req, [
328
- "captchaId"
329
- ]);
330
- return this.client.request({
331
- ...config,
332
- url: `/captchas/${req.captchaId}`,
333
- method: "get"
334
- });
335
- };
336
- this.updateCaptcha = (req, config = {})=>{
337
- $c47aa81bb7e816d4$var$checkPathParams("updateCaptcha", req, [
338
- "captchaId"
339
- ]);
340
- return this.client.request({
341
- ...config,
342
- url: `/captchas/${req.captchaId}`,
343
- method: "patch",
344
- data: req.body
345
- });
346
- };
347
- this.deleteCaptcha = (req, config = {})=>{
348
- $c47aa81bb7e816d4$var$checkPathParams("deleteCaptcha", req, [
349
- "captchaId"
350
- ]);
351
- return this.client.request({
352
- ...config,
353
- url: `/captchas/${req.captchaId}`,
354
- method: "delete"
355
- });
356
- };
357
- this.sendEmail = (req, config = {})=>{
358
- return this.client.request({
359
- ...config,
360
- url: `/email/@sendEmail`,
361
- method: "post",
362
- data: req.body
363
- });
364
- };
365
- this.createEmailRecord = (req, config = {})=>{
366
- return this.client.request({
367
- ...config,
368
- url: `/email/records`,
369
- method: "post",
370
- data: req.body
371
- });
372
- };
373
- this.listEmailRecords = (req, config = {})=>{
374
- return this.client.request({
375
- ...config,
376
- url: `/email/records`,
377
- method: "get",
378
- params: $c47aa81bb7e816d4$var$pick(req, [
379
- "status",
380
- "_sort",
381
- "createdAt_gt",
382
- "createdAt_lt",
383
- "sentAt_gt",
384
- "sentAt_lt",
385
- "from",
386
- "to",
387
- "_limit",
388
- "_offset"
389
- ])
390
- });
391
- };
392
- this.getEmailRecord = (req, config = {})=>{
393
- $c47aa81bb7e816d4$var$checkPathParams("getEmailRecord", req, [
394
- "emailRecordId"
395
- ]);
396
- return this.client.request({
397
- ...config,
398
- url: `/email/records/${req.emailRecordId}`,
399
- method: "get"
400
- });
401
- };
402
- this.updateEmailRecord = (req, config = {})=>{
403
- $c47aa81bb7e816d4$var$checkPathParams("updateEmailRecord", req, [
404
- "emailRecordId"
405
- ]);
406
- return this.client.request({
407
- ...config,
408
- url: `/email/records/${req.emailRecordId}`,
409
- method: "patch",
410
- data: req.body
411
- });
412
- };
413
- this.deleteEmailRecord = (req, config = {})=>{
414
- $c47aa81bb7e816d4$var$checkPathParams("deleteEmailRecord", req, [
415
- "emailRecordId"
416
- ]);
417
- return this.client.request({
418
- ...config,
419
- url: `/email/records/${req.emailRecordId}`,
420
- method: "delete"
421
- });
422
- };
423
- this.listIndustries = (req, config = {})=>{
424
- return this.client.request({
425
- ...config,
426
- url: `/industries`,
427
- method: "get"
428
- });
429
- };
430
- this.listRegions = (req, config = {})=>{
431
- return this.client.request({
432
- ...config,
433
- url: `/regions`,
434
- method: "get"
435
- });
436
- };
437
- this.sendSms = (req, config = {})=>{
438
- return this.client.request({
439
- ...config,
440
- url: `/sms/@sendSms`,
441
- method: "post",
442
- data: req.body
443
- });
444
- };
445
- this.createSmsRecord = (req, config = {})=>{
446
- return this.client.request({
447
- ...config,
448
- url: `/sms/records`,
449
- method: "post",
450
- data: req.body
451
- });
452
- };
453
- this.listSmsRecords = (req, config = {})=>{
454
- return this.client.request({
455
- ...config,
456
- url: `/sms/records`,
457
- method: "get",
458
- params: $c47aa81bb7e816d4$var$pick(req, [
459
- "status",
460
- "_sort",
461
- "createdAt_gt",
462
- "createdAt_lt",
463
- "sentAt_gt",
464
- "sentAt_lt",
465
- "phone",
466
- "sign",
467
- "_limit",
468
- "_offset"
469
- ])
470
- });
471
- };
472
- this.getSmsRecord = (req, config = {})=>{
473
- $c47aa81bb7e816d4$var$checkPathParams("getSmsRecord", req, [
474
- "smsRecordId"
475
- ]);
476
- return this.client.request({
477
- ...config,
478
- url: `/sms/records/${req.smsRecordId}`,
479
- method: "get"
480
- });
481
- };
482
- this.updateSmsRecord = (req, config = {})=>{
483
- $c47aa81bb7e816d4$var$checkPathParams("updateSmsRecord", req, [
484
- "smsRecordId"
485
- ]);
486
- return this.client.request({
487
- ...config,
488
- url: `/sms/records/${req.smsRecordId}`,
489
- method: "patch",
490
- data: req.body
491
- });
492
- };
493
- this.deleteSmsRecord = (req, config = {})=>{
494
- $c47aa81bb7e816d4$var$checkPathParams("deleteSmsRecord", req, [
495
- "smsRecordId"
496
- ]);
497
- return this.client.request({
498
- ...config,
499
- url: `/sms/records/${req.smsRecordId}`,
500
- method: "delete"
501
- });
502
- };
503
- if (!client.defaults.baseURL) throw new Error("client's baseURL MUST specified");
504
- this.client = client;
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
+ }
505
544
  }
506
- }
507
- function $c47aa81bb7e816d4$var$checkPathParams(op, req, ks) {
508
- ks.forEach((p)=>{
509
- if (!req[p]) throw new Error(`${p} is required for ${op}`);
510
- });
511
- }
512
- function $c47aa81bb7e816d4$var$pick(o, ks) {
513
- return ks.reduce((r, p)=>{
514
- r[p] = o[p];
515
- return r;
516
- }, {});
517
- }
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
+ };
518
1339
 
519
1340
 
520
- 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
+
521
1670
 
522
- $parcel$export($63f14b9c71c969bd$exports, "EmailStatus", () => $63f14b9c71c969bd$export$96fb7dfa641b77fb);
523
- $parcel$export($63f14b9c71c969bd$exports, "SmsStatus", () => $63f14b9c71c969bd$export$fc906f0c09f48d75);
524
- $parcel$export($63f14b9c71c969bd$exports, "ListUsersRequest", () => $63f14b9c71c969bd$export$5381d8f52f57bd1);
525
- $parcel$export($63f14b9c71c969bd$exports, "ListNamespacesRequest", () => $63f14b9c71c969bd$export$e73f6f358f36a136);
526
- $parcel$export($63f14b9c71c969bd$exports, "ListSessionsRequest", () => $63f14b9c71c969bd$export$3be39bb5c5d3e6d1);
527
- $parcel$export($63f14b9c71c969bd$exports, "ListCaptchasRequest", () => $63f14b9c71c969bd$export$ecd3dbc11728e32f);
528
- $parcel$export($63f14b9c71c969bd$exports, "ListEmailRecordsRequest", () => $63f14b9c71c969bd$export$72915f6295fc8ec7);
529
- $parcel$export($63f14b9c71c969bd$exports, "ListSmsRecordsRequest", () => $63f14b9c71c969bd$export$c2c207c1201b978a);
530
- // Generated by openapi-ts-gen. DO NOT EDIT
531
- /* eslint-disable */ var $63f14b9c71c969bd$export$96fb7dfa641b77fb;
532
- (function(EmailStatus) {
533
- EmailStatus["PENDING"] = "pending";
534
- EmailStatus["SENT"] = "sent";
535
- })($63f14b9c71c969bd$export$96fb7dfa641b77fb || ($63f14b9c71c969bd$export$96fb7dfa641b77fb = {}));
536
- var $63f14b9c71c969bd$export$fc906f0c09f48d75;
537
- (function(SmsStatus) {
538
- SmsStatus["PENDING"] = "pending";
539
- SmsStatus["SENT"] = "sent";
540
- })($63f14b9c71c969bd$export$fc906f0c09f48d75 || ($63f14b9c71c969bd$export$fc906f0c09f48d75 = {}));
541
- var $63f14b9c71c969bd$export$5381d8f52f57bd1;
542
- (function(ListUsersRequest) {
543
- let Sort;
544
- (function(Sort) {
545
- Sort["CREATED_AT"] = "createdAt";
546
- Sort["CREATED_AT_DESC"] = "-createdAt";
547
- Sort["UPDATED_AT"] = "updatedAt";
548
- Sort["UPDATED_AT_DESC"] = "-updatedAt";
549
- })(Sort = ListUsersRequest.Sort || (ListUsersRequest.Sort = {}));
550
- })($63f14b9c71c969bd$export$5381d8f52f57bd1 || ($63f14b9c71c969bd$export$5381d8f52f57bd1 = {}));
551
- var $63f14b9c71c969bd$export$e73f6f358f36a136;
552
- (function(ListNamespacesRequest) {
553
- let Sort;
554
- (function(Sort) {
555
- Sort["CREATED_AT"] = "createdAt";
556
- Sort["CREATED_AT_DESC"] = "-createdAt";
557
- Sort["UPDATED_AT"] = "updatedAt";
558
- Sort["UPDATED_AT_DESC"] = "-updatedAt";
559
- Sort["KEY"] = "key";
560
- Sort["KEY_DESC"] = "-key";
561
- Sort["NAME"] = "name";
562
- Sort["NAME_DESC"] = "-name";
563
- })(Sort = ListNamespacesRequest.Sort || (ListNamespacesRequest.Sort = {}));
564
- })($63f14b9c71c969bd$export$e73f6f358f36a136 || ($63f14b9c71c969bd$export$e73f6f358f36a136 = {}));
565
- var $63f14b9c71c969bd$export$3be39bb5c5d3e6d1;
566
- (function(ListSessionsRequest) {
567
- let Sort;
568
- (function(Sort) {
569
- Sort["CREATED_AT"] = "createdAt";
570
- Sort["CREATED_AT_DESC"] = "-createdAt";
571
- Sort["UPDATED_AT"] = "updatedAt";
572
- Sort["UPDATED_AT_DESC"] = "-updatedAt";
573
- Sort["EXPIRE_AT"] = "expireAt";
574
- Sort["EXPIRE_AT_DESC"] = "-expireAt";
575
- })(Sort = ListSessionsRequest.Sort || (ListSessionsRequest.Sort = {}));
576
- })($63f14b9c71c969bd$export$3be39bb5c5d3e6d1 || ($63f14b9c71c969bd$export$3be39bb5c5d3e6d1 = {}));
577
- var $63f14b9c71c969bd$export$ecd3dbc11728e32f;
578
- (function(ListCaptchasRequest) {
579
- let Sort;
580
- (function(Sort) {
581
- Sort["CREATED_AT"] = "createdAt";
582
- Sort["CREATED_AT_DESC"] = "-createdAt";
583
- Sort["UPDATED_AT"] = "updatedAt";
584
- Sort["UPDATED_AT_DESC"] = "-updatedAt";
585
- Sort["EXPIRE_AT"] = "expireAt";
586
- Sort["EXPIRE_AT_DESC"] = "-expireAt";
587
- })(Sort = ListCaptchasRequest.Sort || (ListCaptchasRequest.Sort = {}));
588
- })($63f14b9c71c969bd$export$ecd3dbc11728e32f || ($63f14b9c71c969bd$export$ecd3dbc11728e32f = {}));
589
- var $63f14b9c71c969bd$export$72915f6295fc8ec7;
590
- (function(ListEmailRecordsRequest) {
591
- let Sort;
592
- (function(Sort) {
593
- Sort["CREATED_AT"] = "createdAt";
594
- Sort["CREATED_AT_DESC"] = "-createdAt";
595
- Sort["UPDATED_AT"] = "updatedAt";
596
- Sort["UPDATED_AT_DESC"] = "-updatedAt";
597
- Sort["SENT_AT"] = "sentAt";
598
- Sort["SENT_AT_DESC"] = "-sentAt";
599
- })(Sort = ListEmailRecordsRequest.Sort || (ListEmailRecordsRequest.Sort = {}));
600
- })($63f14b9c71c969bd$export$72915f6295fc8ec7 || ($63f14b9c71c969bd$export$72915f6295fc8ec7 = {}));
601
- var $63f14b9c71c969bd$export$c2c207c1201b978a;
602
- (function(ListSmsRecordsRequest) {
603
- let Sort;
604
- (function(Sort) {
605
- Sort["CREATED_AT"] = "createdAt";
606
- Sort["CREATED_AT_DESC"] = "-createdAt";
607
- Sort["UPDATED_AT"] = "updatedAt";
608
- Sort["UPDATED_AT_DESC"] = "-updatedAt";
609
- Sort["SENT_AT"] = "sentAt";
610
- Sort["SENT_AT_DESC"] = "-sentAt";
611
- })(Sort = ListSmsRecordsRequest.Sort || (ListSmsRecordsRequest.Sort = {}));
612
- })($63f14b9c71c969bd$export$c2c207c1201b978a || ($63f14b9c71c969bd$export$c2c207c1201b978a = {}));
1671
+ var $88825bdeeeec0ab1$exports = {};
1672
+ // This file is auto-generated by @hey-api/openapi-ts
613
1673
 
614
1674
 
615
- $parcel$exportWildcard(module.exports, $c47aa81bb7e816d4$exports);
616
- $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);
617
1678
 
618
1679
 
619
1680
  //# sourceMappingURL=main.js.map