@36node/auth-sdk
Advanced tools
Comparing version 1.1.0 to 1.1.1-pr-7-281e214970
2512
dist/main.js
@@ -0,2 +1,4 @@ | ||
var $8zHUo$heyapiclientfetch = require("@hey-api/client-fetch"); | ||
function $parcel$exportWildcard(dest, source) { | ||
@@ -22,599 +24,1933 @@ Object.keys(source).forEach(function(key) { | ||
} | ||
// Generated by openapi-ts-gen. DO NOT EDIT | ||
/* eslint-disable */ var $c47aa81bb7e816d4$exports = {}; | ||
// This file is auto-generated by @hey-api/openapi-ts | ||
var $00d9c40198a72115$exports = {}; | ||
$parcel$export($c47aa81bb7e816d4$exports, "CoreAPIClient", () => $c47aa81bb7e816d4$export$353cb576ea2f33a4); | ||
// Generated by openapi-ts-gen. DO NOT EDIT | ||
/* eslint-disable */ class $c47aa81bb7e816d4$export$353cb576ea2f33a4 { | ||
constructor(client){ | ||
this.hello = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/hello`, | ||
method: "get" | ||
}); | ||
}; | ||
this.login = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/auth/@login`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.loginByEmail = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/auth/@loginByEmail`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.loginByPhone = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/auth/@loginByPhone`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.register = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/auth/@register`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.registerByPhone = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/auth/@registerByPhone`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.registerByEmail = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/auth/@registerByEmail`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.signToken = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/auth/@signToken`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.refresh = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/auth/@refresh`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.createUser = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/users`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.listUsers = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/users`, | ||
method: "get", | ||
params: $c47aa81bb7e816d4$var$pick(req, [ | ||
"_sort", | ||
"id", | ||
"name_like", | ||
"username_like", | ||
"nickname_like", | ||
"ns", | ||
"ns_start", | ||
"username", | ||
"email", | ||
"phone", | ||
"registerRegion", | ||
"roles", | ||
"_limit", | ||
"_offset" | ||
]) | ||
}); | ||
}; | ||
this.getUser = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("getUser", req, [ | ||
"userId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/users/${req.userId}`, | ||
method: "get" | ||
}); | ||
}; | ||
this.updateUser = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("updateUser", req, [ | ||
"userId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/users/${req.userId}`, | ||
method: "patch", | ||
data: req.body | ||
}); | ||
}; | ||
this.deleteUser = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("deleteUser", req, [ | ||
"userId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/users/${req.userId}`, | ||
method: "delete" | ||
}); | ||
}; | ||
this.verifyIdentity = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("verifyIdentity", req, [ | ||
"userId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/users/${req.userId}/@verifyIdentity`, | ||
method: "post" | ||
}); | ||
}; | ||
this.resetPassword = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("resetPassword", req, [ | ||
"userId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/users/${req.userId}/@resetPassword`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.updatePassword = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("updatePassword", req, [ | ||
"userId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/users/${req.userId}/@updatePassword`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.createNamespace = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/namespaces`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.listNamespaces = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/namespaces`, | ||
method: "get", | ||
params: $c47aa81bb7e816d4$var$pick(req, [ | ||
"ns", | ||
"ns_start", | ||
"_sort", | ||
"name_like", | ||
"labels", | ||
"key", | ||
"_limit", | ||
"_offset" | ||
]) | ||
}); | ||
}; | ||
this.getNamespace = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("getNamespace", req, [ | ||
"namespaceIdOrKey" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/namespaces/${req.namespaceIdOrKey}`, | ||
method: "get" | ||
}); | ||
}; | ||
this.updateNamespace = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("updateNamespace", req, [ | ||
"namespaceId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/namespaces/${req.namespaceId}`, | ||
method: "patch", | ||
data: req.body | ||
}); | ||
}; | ||
this.deleteNamespace = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("deleteNamespace", req, [ | ||
"namespaceId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/namespaces/${req.namespaceId}`, | ||
method: "delete" | ||
}); | ||
}; | ||
this.createSession = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/sessions`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.listSessions = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/sessions`, | ||
method: "get", | ||
params: $c47aa81bb7e816d4$var$pick(req, [ | ||
"_sort", | ||
"key", | ||
"client", | ||
"uid", | ||
"_limit", | ||
"_offset" | ||
]) | ||
}); | ||
}; | ||
this.getSession = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("getSession", req, [ | ||
"sessionId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/sessions/${req.sessionId}`, | ||
method: "get" | ||
}); | ||
}; | ||
this.updateSession = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("updateSession", req, [ | ||
"sessionId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/sessions/${req.sessionId}`, | ||
method: "patch", | ||
data: req.body | ||
}); | ||
}; | ||
this.deleteSession = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("deleteSession", req, [ | ||
"sessionId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/sessions/${req.sessionId}`, | ||
method: "delete" | ||
}); | ||
}; | ||
this.createCaptcha = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/captchas`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.listCaptchas = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/captchas`, | ||
method: "get", | ||
params: $c47aa81bb7e816d4$var$pick(req, [ | ||
"_sort", | ||
"code", | ||
"key", | ||
"_limit", | ||
"_offset" | ||
]) | ||
}); | ||
}; | ||
this.getCaptcha = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("getCaptcha", req, [ | ||
"captchaId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/captchas/${req.captchaId}`, | ||
method: "get" | ||
}); | ||
}; | ||
this.updateCaptcha = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("updateCaptcha", req, [ | ||
"captchaId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/captchas/${req.captchaId}`, | ||
method: "patch", | ||
data: req.body | ||
}); | ||
}; | ||
this.deleteCaptcha = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("deleteCaptcha", req, [ | ||
"captchaId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/captchas/${req.captchaId}`, | ||
method: "delete" | ||
}); | ||
}; | ||
this.sendEmail = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/email/@sendEmail`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.createEmailRecord = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/email/records`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.listEmailRecords = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/email/records`, | ||
method: "get", | ||
params: $c47aa81bb7e816d4$var$pick(req, [ | ||
"status", | ||
"_sort", | ||
"createdAt_gt", | ||
"createdAt_lt", | ||
"sentAt_gt", | ||
"sentAt_lt", | ||
"from", | ||
"to", | ||
"_limit", | ||
"_offset" | ||
]) | ||
}); | ||
}; | ||
this.getEmailRecord = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("getEmailRecord", req, [ | ||
"emailRecordId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/email/records/${req.emailRecordId}`, | ||
method: "get" | ||
}); | ||
}; | ||
this.updateEmailRecord = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("updateEmailRecord", req, [ | ||
"emailRecordId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/email/records/${req.emailRecordId}`, | ||
method: "patch", | ||
data: req.body | ||
}); | ||
}; | ||
this.deleteEmailRecord = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("deleteEmailRecord", req, [ | ||
"emailRecordId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/email/records/${req.emailRecordId}`, | ||
method: "delete" | ||
}); | ||
}; | ||
this.listIndustries = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/industries`, | ||
method: "get" | ||
}); | ||
}; | ||
this.listRegions = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/regions`, | ||
method: "get" | ||
}); | ||
}; | ||
this.sendSms = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/sms/@sendSms`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.createSmsRecord = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/sms/records`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.listSmsRecords = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/sms/records`, | ||
method: "get", | ||
params: $c47aa81bb7e816d4$var$pick(req, [ | ||
"status", | ||
"_sort", | ||
"createdAt_gt", | ||
"createdAt_lt", | ||
"sentAt_gt", | ||
"sentAt_lt", | ||
"phone", | ||
"sign", | ||
"_limit", | ||
"_offset" | ||
]) | ||
}); | ||
}; | ||
this.getSmsRecord = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("getSmsRecord", req, [ | ||
"smsRecordId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/sms/records/${req.smsRecordId}`, | ||
method: "get" | ||
}); | ||
}; | ||
this.updateSmsRecord = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("updateSmsRecord", req, [ | ||
"smsRecordId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/sms/records/${req.smsRecordId}`, | ||
method: "patch", | ||
data: req.body | ||
}); | ||
}; | ||
this.deleteSmsRecord = (req, config = {})=>{ | ||
$c47aa81bb7e816d4$var$checkPathParams("deleteSmsRecord", req, [ | ||
"smsRecordId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/sms/records/${req.smsRecordId}`, | ||
method: "delete" | ||
}); | ||
}; | ||
if (!client.defaults.baseURL) throw new Error("client's baseURL MUST specified"); | ||
this.client = client; | ||
$parcel$export($00d9c40198a72115$exports, "$HealthCheckResult", () => $00d9c40198a72115$export$88f4d4b355951aa3); | ||
$parcel$export($00d9c40198a72115$exports, "$LoginDto", () => $00d9c40198a72115$export$f4de602dbafe6fc8); | ||
$parcel$export($00d9c40198a72115$exports, "$User", () => $00d9c40198a72115$export$424b0b82fa10bdfa); | ||
$parcel$export($00d9c40198a72115$exports, "$SessionWithToken", () => $00d9c40198a72115$export$aaf658bacb5186fb); | ||
$parcel$export($00d9c40198a72115$exports, "$LoginByEmailDto", () => $00d9c40198a72115$export$b60f6dff66c5c7ac); | ||
$parcel$export($00d9c40198a72115$exports, "$LoginByPhoneDto", () => $00d9c40198a72115$export$330f12720b62cc63); | ||
$parcel$export($00d9c40198a72115$exports, "$RegisterDto", () => $00d9c40198a72115$export$b5be97c39364f433); | ||
$parcel$export($00d9c40198a72115$exports, "$RegisterbyPhoneDto", () => $00d9c40198a72115$export$e47424ab6045dd9e); | ||
$parcel$export($00d9c40198a72115$exports, "$RegisterByEmailDto", () => $00d9c40198a72115$export$297fa16bfda62978); | ||
$parcel$export($00d9c40198a72115$exports, "$SignTokenDto", () => $00d9c40198a72115$export$9700ad9c19f406f1); | ||
$parcel$export($00d9c40198a72115$exports, "$Token", () => $00d9c40198a72115$export$836264d3c2fd35dd); | ||
$parcel$export($00d9c40198a72115$exports, "$RefreshTokenDto", () => $00d9c40198a72115$export$4f302e855623adeb); | ||
$parcel$export($00d9c40198a72115$exports, "$CreateUserDto", () => $00d9c40198a72115$export$42fb86b793a2c536); | ||
$parcel$export($00d9c40198a72115$exports, "$UpdateUserDto", () => $00d9c40198a72115$export$1b308892cefd8e3e); | ||
$parcel$export($00d9c40198a72115$exports, "$ResetPasswordDto", () => $00d9c40198a72115$export$ea03f88e5a85dda9); | ||
$parcel$export($00d9c40198a72115$exports, "$UpdatePasswordDto", () => $00d9c40198a72115$export$3bacf71d57b21dff); | ||
$parcel$export($00d9c40198a72115$exports, "$CreateNamespaceDto", () => $00d9c40198a72115$export$3a0f0f379fb2f43f); | ||
$parcel$export($00d9c40198a72115$exports, "$Namespace", () => $00d9c40198a72115$export$fef09edac2f41dd6); | ||
$parcel$export($00d9c40198a72115$exports, "$UpdateNamespaceDto", () => $00d9c40198a72115$export$532a2356385b479a); | ||
$parcel$export($00d9c40198a72115$exports, "$CreateSessionDto", () => $00d9c40198a72115$export$c383d7f32a575ab); | ||
$parcel$export($00d9c40198a72115$exports, "$Session", () => $00d9c40198a72115$export$90376f1cecfdbf1b); | ||
$parcel$export($00d9c40198a72115$exports, "$UpdateSessionDto", () => $00d9c40198a72115$export$8799e003f5e64a20); | ||
$parcel$export($00d9c40198a72115$exports, "$CreateCaptchaDto", () => $00d9c40198a72115$export$7e72ed431ee59116); | ||
$parcel$export($00d9c40198a72115$exports, "$Captcha", () => $00d9c40198a72115$export$1f2dec6968d7e276); | ||
$parcel$export($00d9c40198a72115$exports, "$UpdateCaptchaDto", () => $00d9c40198a72115$export$9ccc176b5ae9cc36); | ||
$parcel$export($00d9c40198a72115$exports, "$SendEmailDto", () => $00d9c40198a72115$export$6f9a342594b281c0); | ||
$parcel$export($00d9c40198a72115$exports, "$EmailStatus", () => $00d9c40198a72115$export$ca86ed5d3edf6578); | ||
$parcel$export($00d9c40198a72115$exports, "$CreateEmailRecordDto", () => $00d9c40198a72115$export$2093419254bae162); | ||
$parcel$export($00d9c40198a72115$exports, "$EmailRecord", () => $00d9c40198a72115$export$96180cdcc4bc745c); | ||
$parcel$export($00d9c40198a72115$exports, "$UpdateEmailRecordDto", () => $00d9c40198a72115$export$f581847698cf72b6); | ||
$parcel$export($00d9c40198a72115$exports, "$Industry", () => $00d9c40198a72115$export$86e7567d0e80a3fd); | ||
$parcel$export($00d9c40198a72115$exports, "$CreateGroupDto", () => $00d9c40198a72115$export$f82ca5b68f88f064); | ||
$parcel$export($00d9c40198a72115$exports, "$Group", () => $00d9c40198a72115$export$c90c1d4bd95ad384); | ||
$parcel$export($00d9c40198a72115$exports, "$UpdateGroupDto", () => $00d9c40198a72115$export$1003ec321a8b124); | ||
$parcel$export($00d9c40198a72115$exports, "$Region", () => $00d9c40198a72115$export$fd4976cd1b633c9); | ||
$parcel$export($00d9c40198a72115$exports, "$SendSmsDto", () => $00d9c40198a72115$export$9af4a86888b337b1); | ||
$parcel$export($00d9c40198a72115$exports, "$SmsStatus", () => $00d9c40198a72115$export$d1050030e8300ed6); | ||
$parcel$export($00d9c40198a72115$exports, "$CreateSmsRecordDto", () => $00d9c40198a72115$export$c91a8145d1d88a6b); | ||
$parcel$export($00d9c40198a72115$exports, "$SmsRecord", () => $00d9c40198a72115$export$62bcd56e06b73f35); | ||
$parcel$export($00d9c40198a72115$exports, "$UpdateSmsRecordDto", () => $00d9c40198a72115$export$b885d88b4209b261); | ||
// This file is auto-generated by @hey-api/openapi-ts | ||
const $00d9c40198a72115$export$88f4d4b355951aa3 = { | ||
type: "object", | ||
properties: { | ||
message: { | ||
type: "string" | ||
} | ||
}, | ||
required: [ | ||
"message" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$f4de602dbafe6fc8 = { | ||
type: "object", | ||
properties: { | ||
login: { | ||
type: "string", | ||
description: "\u53EF\u4EE5\u662F username/phone/Email" | ||
}, | ||
password: { | ||
type: "string", | ||
description: "\u5BC6\u7801" | ||
} | ||
}, | ||
required: [ | ||
"login", | ||
"password" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$424b0b82fa10bdfa = { | ||
type: "object", | ||
properties: { | ||
password: { | ||
type: "string", | ||
description: "\u5BC6\u7801", | ||
writeOnly: true | ||
}, | ||
hasPassword: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u6709\u5BC6\u7801", | ||
readOnly: true | ||
}, | ||
avatar: { | ||
type: "string", | ||
description: "\u5934\u50CF" | ||
}, | ||
data: { | ||
type: "string", | ||
description: "\u989D\u5916\u6570\u636E" | ||
}, | ||
email: { | ||
type: "string", | ||
description: "\u90AE\u7BB1" | ||
}, | ||
name: { | ||
type: "string", | ||
description: "\u59D3\u540D" | ||
}, | ||
identity: { | ||
type: "string" | ||
}, | ||
identityVerifiedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u5B9E\u540D\u8BA4\u8BC1\u65F6\u95F4" | ||
}, | ||
identityVerified: { | ||
type: "boolean", | ||
description: "\u5B9E\u540D\u8BA4\u8BC1\u662F\u5426\u901A\u8FC7" | ||
}, | ||
intro: { | ||
type: "string", | ||
description: "\u7B80\u4ECB" | ||
}, | ||
language: { | ||
type: "string", | ||
description: "\u4F7F\u7528\u8BED\u8A00" | ||
}, | ||
lastLoginIp: { | ||
type: "string", | ||
description: "\u6700\u540E\u767B\u5F55 IP" | ||
}, | ||
lastSeenAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u6700\u540E\u6D3B\u8DC3\u65F6\u95F4" | ||
}, | ||
nickname: { | ||
type: "string", | ||
description: "\u6635\u79F0" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u6240\u5C5E\u547D\u540D\u7A7A\u95F4" | ||
}, | ||
phone: { | ||
type: "string", | ||
description: "\u624B\u673A\u53F7" | ||
}, | ||
registerIp: { | ||
type: "string", | ||
description: "\u6CE8\u518C IP" | ||
}, | ||
registerRegion: { | ||
type: "string", | ||
description: "\u6CE8\u518C\u5730\u533A\uFF0C\u5B58\u5730\u533A\u7F16\u53F7" | ||
}, | ||
roles: { | ||
description: "\u89D2\u8272", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
super: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u8D85\u7EA7\u7BA1\u7406\u5458" | ||
}, | ||
username: { | ||
type: "string", | ||
description: "\u7528\u6237\u540D" | ||
}, | ||
employeeId: { | ||
type: "string", | ||
description: "\u5458\u5DE5\u7F16\u53F7" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
groups: { | ||
description: "\u56E2\u961F", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
lastLoginAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u6700\u540E\u767B\u5F55\u65F6\u95F4" | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
}, | ||
id: { | ||
type: "string", | ||
description: "Entity id" | ||
}, | ||
createdAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity created at when" | ||
}, | ||
updatedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity updated at when" | ||
}, | ||
createdBy: { | ||
type: "string", | ||
description: "Entity created by who" | ||
}, | ||
updatedBy: { | ||
type: "string", | ||
description: "Entity updated by who" | ||
} | ||
}, | ||
required: [ | ||
"id" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$aaf658bacb5186fb = { | ||
type: "object", | ||
properties: { | ||
acl: { | ||
type: "object", | ||
description: "\u8BBF\u95EE\u63A7\u5236\u5217\u8868" | ||
}, | ||
expireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u4F1A\u8BDD\u8FC7\u671F\u65F6\u95F4" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "refresh token key" | ||
}, | ||
user: { | ||
description: "\u7528\u6237\uFF0C\u5B9E\u9645\u5B58\u50A8 uid", | ||
allOf: [ | ||
{ | ||
$ref: "#/components/schemas/User" | ||
} | ||
] | ||
}, | ||
client: { | ||
type: "string", | ||
description: "\u5BA2\u6237\u7AEF/\u8BBE\u5907" | ||
}, | ||
id: { | ||
type: "string", | ||
description: "Entity id" | ||
}, | ||
createdAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity created at when" | ||
}, | ||
updatedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity updated at when" | ||
}, | ||
createdBy: { | ||
type: "string", | ||
description: "Entity created by who" | ||
}, | ||
updatedBy: { | ||
type: "string", | ||
description: "Entity updated by who" | ||
}, | ||
token: { | ||
type: "string", | ||
description: "token" | ||
}, | ||
tokenExpireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "token \u8FC7\u671F\u65F6\u95F4" | ||
} | ||
}, | ||
required: [ | ||
"expireAt", | ||
"key", | ||
"user", | ||
"id", | ||
"token", | ||
"tokenExpireAt" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$b60f6dff66c5c7ac = { | ||
type: "object", | ||
properties: { | ||
email: { | ||
type: "string", | ||
description: "\u90AE\u7BB1" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801 key" | ||
}, | ||
code: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801 code" | ||
} | ||
}, | ||
required: [ | ||
"email", | ||
"key", | ||
"code" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$330f12720b62cc63 = { | ||
type: "object", | ||
properties: { | ||
phone: { | ||
type: "string", | ||
description: "\u624B\u673A\u53F7" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801 key" | ||
}, | ||
code: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801 code" | ||
} | ||
}, | ||
required: [ | ||
"phone", | ||
"key", | ||
"code" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$b5be97c39364f433 = { | ||
type: "object", | ||
properties: { | ||
username: { | ||
type: "string", | ||
description: "\u7528\u6237\u540D" | ||
}, | ||
password: { | ||
type: "string", | ||
description: "\u5BC6\u7801" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u547D\u540D\u7A7A\u95F4" | ||
} | ||
}, | ||
required: [ | ||
"username", | ||
"password" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$e47424ab6045dd9e = { | ||
type: "object", | ||
properties: { | ||
phone: { | ||
type: "string", | ||
description: "\u624B\u673A\u53F7" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801 key" | ||
}, | ||
code: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801 code" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u547D\u540D\u7A7A\u95F4" | ||
} | ||
}, | ||
required: [ | ||
"phone", | ||
"key", | ||
"code" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$297fa16bfda62978 = { | ||
type: "object", | ||
properties: { | ||
email: { | ||
type: "string", | ||
description: "\u90AE\u7BB1" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801 key" | ||
}, | ||
code: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801 code" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u547D\u540D\u7A7A\u95F4" | ||
} | ||
}, | ||
required: [ | ||
"email", | ||
"key", | ||
"code" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$9700ad9c19f406f1 = { | ||
type: "object", | ||
properties: { | ||
expiresIn: { | ||
type: "string", | ||
description: `short time span string | ||
refs: https://github.com/vercel/ms | ||
eg: "2 days", "10h", "7d", "120s", "2.5 hrs", "2h", "1m", "5s", "1y", "100", "1y1m1d" | ||
m => minute | ||
h => hour | ||
d => day | ||
w => week | ||
M => month | ||
y => year | ||
s => second | ||
ms => millisecond | ||
\u{65E0}\u{5355}\u{4F4D} => millisecond` | ||
}, | ||
acl: { | ||
type: "object", | ||
description: "\u8BBF\u95EE\u63A7\u5236\u5217\u8868" | ||
}, | ||
uid: { | ||
type: "string", | ||
description: "user id" | ||
} | ||
}, | ||
required: [ | ||
"expiresIn", | ||
"uid" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$836264d3c2fd35dd = { | ||
type: "object", | ||
properties: { | ||
token: { | ||
type: "string", | ||
description: "token" | ||
}, | ||
tokenExpireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "token \u8FC7\u671F\u65F6\u95F4" | ||
} | ||
}, | ||
required: [ | ||
"token", | ||
"tokenExpireAt" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$4f302e855623adeb = { | ||
type: "object", | ||
properties: { | ||
key: { | ||
type: "string", | ||
description: "user id" | ||
} | ||
}, | ||
required: [ | ||
"key" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$42fb86b793a2c536 = { | ||
type: "object", | ||
properties: { | ||
password: { | ||
type: "string", | ||
description: "\u5BC6\u7801", | ||
writeOnly: true | ||
}, | ||
hasPassword: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u6709\u5BC6\u7801", | ||
readOnly: true | ||
}, | ||
avatar: { | ||
type: "string", | ||
description: "\u5934\u50CF" | ||
}, | ||
data: { | ||
type: "string", | ||
description: "\u989D\u5916\u6570\u636E" | ||
}, | ||
email: { | ||
type: "string", | ||
description: "\u90AE\u7BB1" | ||
}, | ||
name: { | ||
type: "string", | ||
description: "\u59D3\u540D" | ||
}, | ||
identity: { | ||
type: "string" | ||
}, | ||
identityVerifiedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u5B9E\u540D\u8BA4\u8BC1\u65F6\u95F4" | ||
}, | ||
identityVerified: { | ||
type: "boolean", | ||
description: "\u5B9E\u540D\u8BA4\u8BC1\u662F\u5426\u901A\u8FC7" | ||
}, | ||
intro: { | ||
type: "string", | ||
description: "\u7B80\u4ECB" | ||
}, | ||
language: { | ||
type: "string", | ||
description: "\u4F7F\u7528\u8BED\u8A00" | ||
}, | ||
nickname: { | ||
type: "string", | ||
description: "\u6635\u79F0" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u6240\u5C5E\u547D\u540D\u7A7A\u95F4" | ||
}, | ||
phone: { | ||
type: "string", | ||
description: "\u624B\u673A\u53F7" | ||
}, | ||
registerRegion: { | ||
type: "string", | ||
description: "\u6CE8\u518C\u5730\u533A\uFF0C\u5B58\u5730\u533A\u7F16\u53F7" | ||
}, | ||
roles: { | ||
description: "\u89D2\u8272", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
super: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u8D85\u7EA7\u7BA1\u7406\u5458" | ||
}, | ||
username: { | ||
type: "string", | ||
description: "\u7528\u6237\u540D" | ||
}, | ||
employeeId: { | ||
type: "string", | ||
description: "\u5458\u5DE5\u7F16\u53F7" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
groups: { | ||
description: "\u56E2\u961F", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
} | ||
} | ||
} | ||
function $c47aa81bb7e816d4$var$checkPathParams(op, req, ks) { | ||
ks.forEach((p)=>{ | ||
if (!req[p]) throw new Error(`${p} is required for ${op}`); | ||
}; | ||
const $00d9c40198a72115$export$1b308892cefd8e3e = { | ||
type: "object", | ||
properties: { | ||
hasPassword: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u6709\u5BC6\u7801", | ||
readOnly: true | ||
}, | ||
avatar: { | ||
type: "string", | ||
description: "\u5934\u50CF" | ||
}, | ||
data: { | ||
type: "string", | ||
description: "\u989D\u5916\u6570\u636E" | ||
}, | ||
email: { | ||
type: "string", | ||
description: "\u90AE\u7BB1" | ||
}, | ||
name: { | ||
type: "string", | ||
description: "\u59D3\u540D" | ||
}, | ||
identity: { | ||
type: "string" | ||
}, | ||
identityVerifiedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u5B9E\u540D\u8BA4\u8BC1\u65F6\u95F4" | ||
}, | ||
identityVerified: { | ||
type: "boolean", | ||
description: "\u5B9E\u540D\u8BA4\u8BC1\u662F\u5426\u901A\u8FC7" | ||
}, | ||
intro: { | ||
type: "string", | ||
description: "\u7B80\u4ECB" | ||
}, | ||
language: { | ||
type: "string", | ||
description: "\u4F7F\u7528\u8BED\u8A00" | ||
}, | ||
lastLoginIp: { | ||
type: "string", | ||
description: "\u6700\u540E\u767B\u5F55 IP" | ||
}, | ||
lastSeenAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u6700\u540E\u6D3B\u8DC3\u65F6\u95F4" | ||
}, | ||
nickname: { | ||
type: "string", | ||
description: "\u6635\u79F0" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u6240\u5C5E\u547D\u540D\u7A7A\u95F4" | ||
}, | ||
phone: { | ||
type: "string", | ||
description: "\u624B\u673A\u53F7" | ||
}, | ||
registerIp: { | ||
type: "string", | ||
description: "\u6CE8\u518C IP" | ||
}, | ||
registerRegion: { | ||
type: "string", | ||
description: "\u6CE8\u518C\u5730\u533A\uFF0C\u5B58\u5730\u533A\u7F16\u53F7" | ||
}, | ||
roles: { | ||
description: "\u89D2\u8272", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
super: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u8D85\u7EA7\u7BA1\u7406\u5458" | ||
}, | ||
username: { | ||
type: "string", | ||
description: "\u7528\u6237\u540D" | ||
}, | ||
employeeId: { | ||
type: "string", | ||
description: "\u5458\u5DE5\u7F16\u53F7" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
groups: { | ||
description: "\u56E2\u961F", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
lastLoginAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u6700\u540E\u767B\u5F55\u65F6\u95F4" | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
} | ||
} | ||
}; | ||
const $00d9c40198a72115$export$ea03f88e5a85dda9 = { | ||
type: "object", | ||
properties: { | ||
password: { | ||
type: "string", | ||
description: "\u5BC6\u7801" | ||
} | ||
} | ||
}; | ||
const $00d9c40198a72115$export$3bacf71d57b21dff = { | ||
type: "object", | ||
properties: { | ||
oldPassword: { | ||
type: "string", | ||
description: "\u65E7\u5BC6\u7801" | ||
}, | ||
newPassword: { | ||
type: "string", | ||
description: "\u65B0\u5BC6\u7801" | ||
} | ||
}, | ||
required: [ | ||
"newPassword" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$3a0f0f379fb2f43f = { | ||
type: "object", | ||
properties: { | ||
data: { | ||
type: "string", | ||
description: "\u989D\u5916\u6570\u636E" | ||
}, | ||
desc: { | ||
type: "string", | ||
description: "\u63CF\u8FF0" | ||
}, | ||
labels: { | ||
description: "\u6807\u7B7E", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
name: { | ||
type: "string", | ||
description: "\u540D\u79F0" | ||
}, | ||
key: { | ||
type: "string", | ||
description: `\u{547D}\u{540D}\u{7A7A}\u{95F4}\u{7684} key | ||
\u{5141}\u{8BB8}\u{7684}\u{5B57}\u{7B26} ^[a-zA-Z][a-zA-Z0-9._/-]{0,30}$` | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u6240\u5C5E\u7684 namespace" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
}, | ||
company: { | ||
type: "string", | ||
description: "\u516C\u53F8" | ||
}, | ||
defaultPassword: { | ||
type: "string", | ||
description: "\u9ED8\u8BA4\u5BC6\u7801" | ||
} | ||
}, | ||
required: [ | ||
"name", | ||
"key" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$fef09edac2f41dd6 = { | ||
type: "object", | ||
properties: { | ||
data: { | ||
type: "string", | ||
description: "\u989D\u5916\u6570\u636E" | ||
}, | ||
desc: { | ||
type: "string", | ||
description: "\u63CF\u8FF0" | ||
}, | ||
labels: { | ||
description: "\u6807\u7B7E", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
name: { | ||
type: "string", | ||
description: "\u540D\u79F0" | ||
}, | ||
key: { | ||
type: "string", | ||
description: `\u{547D}\u{540D}\u{7A7A}\u{95F4}\u{7684} key | ||
\u{5141}\u{8BB8}\u{7684}\u{5B57}\u{7B26} ^[a-zA-Z][a-zA-Z0-9._/-]{0,30}$` | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u6240\u5C5E\u7684 namespace" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
}, | ||
company: { | ||
type: "string", | ||
description: "\u516C\u53F8" | ||
}, | ||
defaultPassword: { | ||
type: "string", | ||
description: "\u9ED8\u8BA4\u5BC6\u7801" | ||
}, | ||
id: { | ||
type: "string", | ||
description: "Entity id" | ||
}, | ||
createdAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity created at when" | ||
}, | ||
updatedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity updated at when" | ||
}, | ||
createdBy: { | ||
type: "string", | ||
description: "Entity created by who" | ||
}, | ||
updatedBy: { | ||
type: "string", | ||
description: "Entity updated by who" | ||
} | ||
}, | ||
required: [ | ||
"name", | ||
"key", | ||
"id" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$532a2356385b479a = { | ||
type: "object", | ||
properties: { | ||
data: { | ||
type: "string", | ||
description: "\u989D\u5916\u6570\u636E" | ||
}, | ||
desc: { | ||
type: "string", | ||
description: "\u63CF\u8FF0" | ||
}, | ||
labels: { | ||
description: "\u6807\u7B7E", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
name: { | ||
type: "string", | ||
description: "\u540D\u79F0" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
}, | ||
company: { | ||
type: "string", | ||
description: "\u516C\u53F8" | ||
}, | ||
defaultPassword: { | ||
type: "string", | ||
description: "\u9ED8\u8BA4\u5BC6\u7801" | ||
} | ||
} | ||
}; | ||
const $00d9c40198a72115$export$c383d7f32a575ab = { | ||
type: "object", | ||
properties: { | ||
uid: { | ||
type: "string", | ||
description: "\u7528\u6237 ID" | ||
}, | ||
acl: { | ||
type: "object", | ||
description: "\u8BBF\u95EE\u63A7\u5236\u5217\u8868" | ||
}, | ||
expireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u4F1A\u8BDD\u8FC7\u671F\u65F6\u95F4" | ||
}, | ||
client: { | ||
type: "string", | ||
description: "\u5BA2\u6237\u7AEF/\u8BBE\u5907" | ||
} | ||
}, | ||
required: [ | ||
"uid", | ||
"expireAt" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$90376f1cecfdbf1b = { | ||
type: "object", | ||
properties: { | ||
acl: { | ||
type: "object", | ||
description: "\u8BBF\u95EE\u63A7\u5236\u5217\u8868" | ||
}, | ||
expireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u4F1A\u8BDD\u8FC7\u671F\u65F6\u95F4" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "refresh token key" | ||
}, | ||
user: { | ||
description: "\u7528\u6237\uFF0C\u5B9E\u9645\u5B58\u50A8 uid", | ||
allOf: [ | ||
{ | ||
$ref: "#/components/schemas/User" | ||
} | ||
] | ||
}, | ||
client: { | ||
type: "string", | ||
description: "\u5BA2\u6237\u7AEF/\u8BBE\u5907" | ||
}, | ||
id: { | ||
type: "string", | ||
description: "Entity id" | ||
}, | ||
createdAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity created at when" | ||
}, | ||
updatedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity updated at when" | ||
}, | ||
createdBy: { | ||
type: "string", | ||
description: "Entity created by who" | ||
}, | ||
updatedBy: { | ||
type: "string", | ||
description: "Entity updated by who" | ||
} | ||
}, | ||
required: [ | ||
"expireAt", | ||
"key", | ||
"user", | ||
"id" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$8799e003f5e64a20 = { | ||
type: "object", | ||
properties: { | ||
acl: { | ||
type: "object", | ||
description: "\u8BBF\u95EE\u63A7\u5236\u5217\u8868" | ||
}, | ||
expireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u4F1A\u8BDD\u8FC7\u671F\u65F6\u95F4" | ||
}, | ||
client: { | ||
type: "string", | ||
description: "\u5BA2\u6237\u7AEF/\u8BBE\u5907" | ||
}, | ||
uid: { | ||
type: "string", | ||
description: "\u7528\u6237 ID" | ||
} | ||
} | ||
}; | ||
const $00d9c40198a72115$export$7e72ed431ee59116 = { | ||
type: "object", | ||
properties: { | ||
code: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801" | ||
}, | ||
expireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u8FC7\u671F\u65F6\u95F4" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "key" | ||
} | ||
}, | ||
required: [ | ||
"key" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$1f2dec6968d7e276 = { | ||
type: "object", | ||
properties: { | ||
code: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801" | ||
}, | ||
expireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u8FC7\u671F\u65F6\u95F4" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "key" | ||
}, | ||
id: { | ||
type: "string", | ||
description: "Entity id" | ||
}, | ||
createdAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity created at when" | ||
}, | ||
updatedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity updated at when" | ||
}, | ||
createdBy: { | ||
type: "string", | ||
description: "Entity created by who" | ||
}, | ||
updatedBy: { | ||
type: "string", | ||
description: "Entity updated by who" | ||
} | ||
}, | ||
required: [ | ||
"code", | ||
"expireAt", | ||
"key", | ||
"id" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$9ccc176b5ae9cc36 = { | ||
type: "object", | ||
properties: { | ||
code: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801" | ||
}, | ||
expireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u8FC7\u671F\u65F6\u95F4" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "key" | ||
} | ||
} | ||
}; | ||
const $00d9c40198a72115$export$6f9a342594b281c0 = { | ||
type: "object", | ||
properties: { | ||
from: { | ||
type: "string" | ||
}, | ||
to: { | ||
type: "string" | ||
}, | ||
subject: { | ||
type: "string" | ||
}, | ||
content: { | ||
type: "string" | ||
} | ||
}, | ||
required: [ | ||
"from", | ||
"to", | ||
"subject", | ||
"content" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$ca86ed5d3edf6578 = { | ||
type: "string", | ||
description: "\u53D1\u9001\u72B6\u6001", | ||
enum: [ | ||
"pending", | ||
"sent" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$2093419254bae162 = { | ||
type: "object", | ||
properties: { | ||
status: { | ||
$ref: "#/components/schemas/EmailStatus" | ||
}, | ||
from: { | ||
type: "string", | ||
description: "\u53D1\u4EF6\u8005" | ||
}, | ||
to: { | ||
type: "string", | ||
description: "\u6536\u4EF6\u8005" | ||
}, | ||
subject: { | ||
type: "string", | ||
description: "\u4E3B\u9898" | ||
}, | ||
content: { | ||
type: "string", | ||
description: "\u5185\u5BB9" | ||
}, | ||
sentAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u53D1\u9001\u65F6\u95F4" | ||
} | ||
}, | ||
required: [ | ||
"status", | ||
"from", | ||
"to", | ||
"subject", | ||
"content" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$96180cdcc4bc745c = { | ||
type: "object", | ||
properties: { | ||
status: { | ||
$ref: "#/components/schemas/EmailStatus" | ||
}, | ||
from: { | ||
type: "string", | ||
description: "\u53D1\u4EF6\u8005" | ||
}, | ||
to: { | ||
type: "string", | ||
description: "\u6536\u4EF6\u8005" | ||
}, | ||
subject: { | ||
type: "string", | ||
description: "\u4E3B\u9898" | ||
}, | ||
content: { | ||
type: "string", | ||
description: "\u5185\u5BB9" | ||
}, | ||
sentAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u53D1\u9001\u65F6\u95F4" | ||
}, | ||
id: { | ||
type: "string", | ||
description: "Entity id" | ||
}, | ||
createdAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity created at when" | ||
}, | ||
updatedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity updated at when" | ||
}, | ||
createdBy: { | ||
type: "string", | ||
description: "Entity created by who" | ||
}, | ||
updatedBy: { | ||
type: "string", | ||
description: "Entity updated by who" | ||
} | ||
}, | ||
required: [ | ||
"status", | ||
"from", | ||
"to", | ||
"subject", | ||
"content", | ||
"id" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$f581847698cf72b6 = { | ||
type: "object", | ||
properties: { | ||
status: { | ||
$ref: "#/components/schemas/EmailStatus" | ||
}, | ||
from: { | ||
type: "string", | ||
description: "\u53D1\u4EF6\u8005" | ||
}, | ||
to: { | ||
type: "string", | ||
description: "\u6536\u4EF6\u8005" | ||
}, | ||
subject: { | ||
type: "string", | ||
description: "\u4E3B\u9898" | ||
}, | ||
content: { | ||
type: "string", | ||
description: "\u5185\u5BB9" | ||
}, | ||
sentAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u53D1\u9001\u65F6\u95F4" | ||
} | ||
} | ||
}; | ||
const $00d9c40198a72115$export$86e7567d0e80a3fd = { | ||
type: "object", | ||
properties: { | ||
code: { | ||
type: "string", | ||
description: "\u7F16\u7801" | ||
}, | ||
name: { | ||
type: "string", | ||
description: "\u540D\u79F0" | ||
}, | ||
children: { | ||
description: "\u5B50\u96C6", | ||
type: "array", | ||
items: { | ||
$ref: "#/components/schemas/Industry" | ||
} | ||
} | ||
}, | ||
required: [ | ||
"code", | ||
"name", | ||
"children" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$f82ca5b68f88f064 = { | ||
type: "object", | ||
properties: { | ||
name: { | ||
type: "string", | ||
description: "\u540D\u79F0" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u6240\u5C5E\u547D\u540D\u7A7A\u95F4" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
} | ||
}, | ||
required: [ | ||
"name" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$c90c1d4bd95ad384 = { | ||
type: "object", | ||
properties: { | ||
name: { | ||
type: "string", | ||
description: "\u540D\u79F0" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u6240\u5C5E\u547D\u540D\u7A7A\u95F4" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
}, | ||
id: { | ||
type: "string", | ||
description: "Entity id" | ||
}, | ||
createdAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity created at when" | ||
}, | ||
updatedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity updated at when" | ||
}, | ||
createdBy: { | ||
type: "string", | ||
description: "Entity created by who" | ||
}, | ||
updatedBy: { | ||
type: "string", | ||
description: "Entity updated by who" | ||
} | ||
}, | ||
required: [ | ||
"name", | ||
"id" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$1003ec321a8b124 = { | ||
type: "object", | ||
properties: { | ||
name: { | ||
type: "string", | ||
description: "\u540D\u79F0" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u6240\u5C5E\u547D\u540D\u7A7A\u95F4" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
} | ||
}, | ||
required: [ | ||
"name" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$fd4976cd1b633c9 = { | ||
type: "object", | ||
properties: { | ||
code: { | ||
type: "string", | ||
description: "\u7F29\u5199" | ||
}, | ||
nameZh: { | ||
type: "string", | ||
description: "\u4E2D\u6587\u540D\u79F0" | ||
}, | ||
namePinyin: { | ||
type: "string", | ||
description: "\u4E2D\u6587\u62FC\u97F3" | ||
}, | ||
nameEn: { | ||
type: "string", | ||
description: "\u82F1\u6587\u540D\u79F0" | ||
}, | ||
dialingPrefix: { | ||
type: "string", | ||
description: "\u7535\u8BDD\u524D\u7F00" | ||
} | ||
}, | ||
required: [ | ||
"code", | ||
"nameZh", | ||
"namePinyin", | ||
"nameEn", | ||
"dialingPrefix" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$9af4a86888b337b1 = { | ||
type: "object", | ||
properties: { | ||
phone: { | ||
type: "string" | ||
}, | ||
sign: { | ||
type: "string" | ||
}, | ||
template: { | ||
type: "string" | ||
}, | ||
params: { | ||
type: "object" | ||
} | ||
}, | ||
required: [ | ||
"phone", | ||
"sign", | ||
"template" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$d1050030e8300ed6 = { | ||
type: "string", | ||
description: "\u53D1\u9001\u72B6\u6001", | ||
enum: [ | ||
"pending", | ||
"sent" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$c91a8145d1d88a6b = { | ||
type: "object", | ||
properties: { | ||
status: { | ||
$ref: "#/components/schemas/SmsStatus" | ||
}, | ||
phone: { | ||
type: "string", | ||
description: "\u624B\u673A\u53F7" | ||
}, | ||
sign: { | ||
type: "string", | ||
description: "\u7B7E\u540D" | ||
}, | ||
template: { | ||
type: "string", | ||
description: "\u6A21\u677F" | ||
}, | ||
params: { | ||
type: "string", | ||
description: "\u53C2\u6570" | ||
}, | ||
sentAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u53D1\u9001\u65F6\u95F4" | ||
} | ||
}, | ||
required: [ | ||
"status", | ||
"phone", | ||
"sign", | ||
"template" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$62bcd56e06b73f35 = { | ||
type: "object", | ||
properties: { | ||
status: { | ||
$ref: "#/components/schemas/SmsStatus" | ||
}, | ||
phone: { | ||
type: "string", | ||
description: "\u624B\u673A\u53F7" | ||
}, | ||
sign: { | ||
type: "string", | ||
description: "\u7B7E\u540D" | ||
}, | ||
template: { | ||
type: "string", | ||
description: "\u6A21\u677F" | ||
}, | ||
params: { | ||
type: "string", | ||
description: "\u53C2\u6570" | ||
}, | ||
sentAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u53D1\u9001\u65F6\u95F4" | ||
}, | ||
id: { | ||
type: "string", | ||
description: "Entity id" | ||
}, | ||
createdAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity created at when" | ||
}, | ||
updatedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity updated at when" | ||
}, | ||
createdBy: { | ||
type: "string", | ||
description: "Entity created by who" | ||
}, | ||
updatedBy: { | ||
type: "string", | ||
description: "Entity updated by who" | ||
} | ||
}, | ||
required: [ | ||
"status", | ||
"phone", | ||
"sign", | ||
"template", | ||
"id" | ||
] | ||
}; | ||
const $00d9c40198a72115$export$b885d88b4209b261 = { | ||
type: "object", | ||
properties: { | ||
status: { | ||
$ref: "#/components/schemas/SmsStatus" | ||
}, | ||
phone: { | ||
type: "string", | ||
description: "\u624B\u673A\u53F7" | ||
}, | ||
sign: { | ||
type: "string", | ||
description: "\u7B7E\u540D" | ||
}, | ||
template: { | ||
type: "string", | ||
description: "\u6A21\u677F" | ||
}, | ||
params: { | ||
type: "string", | ||
description: "\u53C2\u6570" | ||
}, | ||
sentAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u53D1\u9001\u65F6\u95F4" | ||
} | ||
} | ||
}; | ||
var $f3613dc0d7a37c99$exports = {}; | ||
$parcel$export($f3613dc0d7a37c99$exports, "client", () => $f3613dc0d7a37c99$export$388e0302ca0d9a41); | ||
$parcel$export($f3613dc0d7a37c99$exports, "hello", () => $f3613dc0d7a37c99$export$e2e77b41cb4e1f9e); | ||
$parcel$export($f3613dc0d7a37c99$exports, "login", () => $f3613dc0d7a37c99$export$596d806903d1f59e); | ||
$parcel$export($f3613dc0d7a37c99$exports, "loginByEmail", () => $f3613dc0d7a37c99$export$72356d9e5d4287de); | ||
$parcel$export($f3613dc0d7a37c99$exports, "loginByPhone", () => $f3613dc0d7a37c99$export$aa06bc33124d2a00); | ||
$parcel$export($f3613dc0d7a37c99$exports, "register", () => $f3613dc0d7a37c99$export$6503ec6e8aabbaf); | ||
$parcel$export($f3613dc0d7a37c99$exports, "registerByPhone", () => $f3613dc0d7a37c99$export$acd2ee44d8cc419c); | ||
$parcel$export($f3613dc0d7a37c99$exports, "registerByEmail", () => $f3613dc0d7a37c99$export$81b4f1bef0778e97); | ||
$parcel$export($f3613dc0d7a37c99$exports, "signToken", () => $f3613dc0d7a37c99$export$6fa58217127c2be5); | ||
$parcel$export($f3613dc0d7a37c99$exports, "refresh", () => $f3613dc0d7a37c99$export$2d6e9b4c68afb6c8); | ||
$parcel$export($f3613dc0d7a37c99$exports, "createUser", () => $f3613dc0d7a37c99$export$3493b8991d49f558); | ||
$parcel$export($f3613dc0d7a37c99$exports, "listUsers", () => $f3613dc0d7a37c99$export$1c4bb93498097c2d); | ||
$parcel$export($f3613dc0d7a37c99$exports, "getUser", () => $f3613dc0d7a37c99$export$7cbf767827cd68ba); | ||
$parcel$export($f3613dc0d7a37c99$exports, "updateUser", () => $f3613dc0d7a37c99$export$e3ac7a5d19605772); | ||
$parcel$export($f3613dc0d7a37c99$exports, "deleteUser", () => $f3613dc0d7a37c99$export$7d0f10f273c0438a); | ||
$parcel$export($f3613dc0d7a37c99$exports, "verifyIdentity", () => $f3613dc0d7a37c99$export$ba1d92ba04505a80); | ||
$parcel$export($f3613dc0d7a37c99$exports, "resetPassword", () => $f3613dc0d7a37c99$export$dc726c8e334dd814); | ||
$parcel$export($f3613dc0d7a37c99$exports, "updatePassword", () => $f3613dc0d7a37c99$export$e2853351e15b7895); | ||
$parcel$export($f3613dc0d7a37c99$exports, "createNamespace", () => $f3613dc0d7a37c99$export$9351443236ea3261); | ||
$parcel$export($f3613dc0d7a37c99$exports, "listNamespaces", () => $f3613dc0d7a37c99$export$64f28126552508c0); | ||
$parcel$export($f3613dc0d7a37c99$exports, "getNamespace", () => $f3613dc0d7a37c99$export$becf4f9e48e6290a); | ||
$parcel$export($f3613dc0d7a37c99$exports, "updateNamespace", () => $f3613dc0d7a37c99$export$9c52b148e3e82e); | ||
$parcel$export($f3613dc0d7a37c99$exports, "deleteNamespace", () => $f3613dc0d7a37c99$export$4b83ac7774adea2f); | ||
$parcel$export($f3613dc0d7a37c99$exports, "createSession", () => $f3613dc0d7a37c99$export$f7c62c73429afa28); | ||
$parcel$export($f3613dc0d7a37c99$exports, "listSessions", () => $f3613dc0d7a37c99$export$e2f57af6ce5ee4d); | ||
$parcel$export($f3613dc0d7a37c99$exports, "getSession", () => $f3613dc0d7a37c99$export$12151e9ef3722552); | ||
$parcel$export($f3613dc0d7a37c99$exports, "updateSession", () => $f3613dc0d7a37c99$export$531818e825e774db); | ||
$parcel$export($f3613dc0d7a37c99$exports, "deleteSession", () => $f3613dc0d7a37c99$export$f3b72123251cadf); | ||
$parcel$export($f3613dc0d7a37c99$exports, "createCaptcha", () => $f3613dc0d7a37c99$export$a6205785190db785); | ||
$parcel$export($f3613dc0d7a37c99$exports, "listCaptchas", () => $f3613dc0d7a37c99$export$72a6916a1591271b); | ||
$parcel$export($f3613dc0d7a37c99$exports, "getCaptcha", () => $f3613dc0d7a37c99$export$3f7c59539a3d9e70); | ||
$parcel$export($f3613dc0d7a37c99$exports, "updateCaptcha", () => $f3613dc0d7a37c99$export$a8ca09988a1eeb80); | ||
$parcel$export($f3613dc0d7a37c99$exports, "deleteCaptcha", () => $f3613dc0d7a37c99$export$b7ca998081fe193a); | ||
$parcel$export($f3613dc0d7a37c99$exports, "sendEmail", () => $f3613dc0d7a37c99$export$1cea2e25b75a88f2); | ||
$parcel$export($f3613dc0d7a37c99$exports, "createEmailRecord", () => $f3613dc0d7a37c99$export$1f96d950f89862c2); | ||
$parcel$export($f3613dc0d7a37c99$exports, "listEmailRecords", () => $f3613dc0d7a37c99$export$f7461c51f0fbbbec); | ||
$parcel$export($f3613dc0d7a37c99$exports, "getEmailRecord", () => $f3613dc0d7a37c99$export$e3abaa1f0f2be390); | ||
$parcel$export($f3613dc0d7a37c99$exports, "updateEmailRecord", () => $f3613dc0d7a37c99$export$340a3b15edf5320b); | ||
$parcel$export($f3613dc0d7a37c99$exports, "deleteEmailRecord", () => $f3613dc0d7a37c99$export$47732292698093e5); | ||
$parcel$export($f3613dc0d7a37c99$exports, "listIndustries", () => $f3613dc0d7a37c99$export$6a657f882af8e729); | ||
$parcel$export($f3613dc0d7a37c99$exports, "createGroup", () => $f3613dc0d7a37c99$export$856f728536d122cb); | ||
$parcel$export($f3613dc0d7a37c99$exports, "listGroups", () => $f3613dc0d7a37c99$export$6e0114716bd43025); | ||
$parcel$export($f3613dc0d7a37c99$exports, "getGroup", () => $f3613dc0d7a37c99$export$dd8fe8767b0c9948); | ||
$parcel$export($f3613dc0d7a37c99$exports, "updateGroup", () => $f3613dc0d7a37c99$export$7266cde9e95c4de8); | ||
$parcel$export($f3613dc0d7a37c99$exports, "deleteGroup", () => $f3613dc0d7a37c99$export$ae2679b329fc10b6); | ||
$parcel$export($f3613dc0d7a37c99$exports, "listRegions", () => $f3613dc0d7a37c99$export$40295cce70884665); | ||
$parcel$export($f3613dc0d7a37c99$exports, "sendSms", () => $f3613dc0d7a37c99$export$fe12addabe061498); | ||
$parcel$export($f3613dc0d7a37c99$exports, "createSmsRecord", () => $f3613dc0d7a37c99$export$89ba073eddabee7c); | ||
$parcel$export($f3613dc0d7a37c99$exports, "listSmsRecords", () => $f3613dc0d7a37c99$export$3a0aa6683b18ae05); | ||
$parcel$export($f3613dc0d7a37c99$exports, "getSmsRecord", () => $f3613dc0d7a37c99$export$8a807b18b6923f94); | ||
$parcel$export($f3613dc0d7a37c99$exports, "updateSmsRecord", () => $f3613dc0d7a37c99$export$a658b2c8c182930a); | ||
$parcel$export($f3613dc0d7a37c99$exports, "deleteSmsRecord", () => $f3613dc0d7a37c99$export$2816e50d4ec74f93); | ||
// This file is auto-generated by @hey-api/openapi-ts | ||
const $f3613dc0d7a37c99$export$388e0302ca0d9a41 = (0, $8zHUo$heyapiclientfetch.createClient)((0, $8zHUo$heyapiclientfetch.createConfig)()); | ||
const $f3613dc0d7a37c99$export$e2e77b41cb4e1f9e = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/hello" | ||
}); | ||
} | ||
function $c47aa81bb7e816d4$var$pick(o, ks) { | ||
return ks.reduce((r, p)=>{ | ||
r[p] = o[p]; | ||
return r; | ||
}, {}); | ||
} | ||
}; | ||
const $f3613dc0d7a37c99$export$596d806903d1f59e = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/auth/@login" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$72356d9e5d4287de = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/auth/@loginByEmail" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$aa06bc33124d2a00 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/auth/@loginByPhone" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$6503ec6e8aabbaf = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/auth/@register" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$acd2ee44d8cc419c = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/auth/@registerByPhone" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$81b4f1bef0778e97 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/auth/@registerByEmail" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$6fa58217127c2be5 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/auth/@signToken" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$2d6e9b4c68afb6c8 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/auth/@refresh" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$3493b8991d49f558 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/users" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$1c4bb93498097c2d = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/users" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$7cbf767827cd68ba = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/users/{userId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$e3ac7a5d19605772 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).patch({ | ||
...options, | ||
url: "/users/{userId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$7d0f10f273c0438a = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).delete({ | ||
...options, | ||
url: "/users/{userId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$ba1d92ba04505a80 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/users/{userId}/@verifyIdentity" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$dc726c8e334dd814 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/users/{userId}/@resetPassword" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$e2853351e15b7895 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/users/{userId}/@updatePassword" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$9351443236ea3261 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/namespaces" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$64f28126552508c0 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/namespaces" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$becf4f9e48e6290a = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/namespaces/{namespaceIdOrKey}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$9c52b148e3e82e = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).patch({ | ||
...options, | ||
url: "/namespaces/{namespaceId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$4b83ac7774adea2f = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).delete({ | ||
...options, | ||
url: "/namespaces/{namespaceId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$f7c62c73429afa28 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/sessions" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$e2f57af6ce5ee4d = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/sessions" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$12151e9ef3722552 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/sessions/{sessionId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$531818e825e774db = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).patch({ | ||
...options, | ||
url: "/sessions/{sessionId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$f3b72123251cadf = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).delete({ | ||
...options, | ||
url: "/sessions/{sessionId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$a6205785190db785 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/captchas" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$72a6916a1591271b = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/captchas" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$3f7c59539a3d9e70 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/captchas/{captchaId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$a8ca09988a1eeb80 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).patch({ | ||
...options, | ||
url: "/captchas/{captchaId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$b7ca998081fe193a = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).delete({ | ||
...options, | ||
url: "/captchas/{captchaId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$1cea2e25b75a88f2 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/email/@sendEmail" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$1f96d950f89862c2 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/email/records" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$f7461c51f0fbbbec = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/email/records" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$e3abaa1f0f2be390 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/email/records/{emailRecordId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$340a3b15edf5320b = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).patch({ | ||
...options, | ||
url: "/email/records/{emailRecordId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$47732292698093e5 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).delete({ | ||
...options, | ||
url: "/email/records/{emailRecordId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$6a657f882af8e729 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/industries" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$856f728536d122cb = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/groups" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$6e0114716bd43025 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/groups" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$dd8fe8767b0c9948 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/groups/{groupIdOrName}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$7266cde9e95c4de8 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).patch({ | ||
...options, | ||
url: "/groups/{groupId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$ae2679b329fc10b6 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).delete({ | ||
...options, | ||
url: "/groups/{groupId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$40295cce70884665 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/regions" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$fe12addabe061498 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/sms/@sendSms" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$89ba073eddabee7c = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/sms/records" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$3a0aa6683b18ae05 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/sms/records" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$8a807b18b6923f94 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/sms/records/{smsRecordId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$a658b2c8c182930a = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).patch({ | ||
...options, | ||
url: "/sms/records/{smsRecordId}" | ||
}); | ||
}; | ||
const $f3613dc0d7a37c99$export$2816e50d4ec74f93 = (options)=>{ | ||
return (options?.client ?? $f3613dc0d7a37c99$export$388e0302ca0d9a41).delete({ | ||
...options, | ||
url: "/sms/records/{smsRecordId}" | ||
}); | ||
}; | ||
var $63f14b9c71c969bd$exports = {}; | ||
var $88825bdeeeec0ab1$exports = {}; | ||
// This file is auto-generated by @hey-api/openapi-ts | ||
$parcel$export($63f14b9c71c969bd$exports, "EmailStatus", () => $63f14b9c71c969bd$export$96fb7dfa641b77fb); | ||
$parcel$export($63f14b9c71c969bd$exports, "SmsStatus", () => $63f14b9c71c969bd$export$fc906f0c09f48d75); | ||
$parcel$export($63f14b9c71c969bd$exports, "ListUsersRequest", () => $63f14b9c71c969bd$export$5381d8f52f57bd1); | ||
$parcel$export($63f14b9c71c969bd$exports, "ListNamespacesRequest", () => $63f14b9c71c969bd$export$e73f6f358f36a136); | ||
$parcel$export($63f14b9c71c969bd$exports, "ListSessionsRequest", () => $63f14b9c71c969bd$export$3be39bb5c5d3e6d1); | ||
$parcel$export($63f14b9c71c969bd$exports, "ListCaptchasRequest", () => $63f14b9c71c969bd$export$ecd3dbc11728e32f); | ||
$parcel$export($63f14b9c71c969bd$exports, "ListEmailRecordsRequest", () => $63f14b9c71c969bd$export$72915f6295fc8ec7); | ||
$parcel$export($63f14b9c71c969bd$exports, "ListSmsRecordsRequest", () => $63f14b9c71c969bd$export$c2c207c1201b978a); | ||
// Generated by openapi-ts-gen. DO NOT EDIT | ||
/* eslint-disable */ var $63f14b9c71c969bd$export$96fb7dfa641b77fb; | ||
(function(EmailStatus) { | ||
EmailStatus["PENDING"] = "pending"; | ||
EmailStatus["SENT"] = "sent"; | ||
})($63f14b9c71c969bd$export$96fb7dfa641b77fb || ($63f14b9c71c969bd$export$96fb7dfa641b77fb = {})); | ||
var $63f14b9c71c969bd$export$fc906f0c09f48d75; | ||
(function(SmsStatus) { | ||
SmsStatus["PENDING"] = "pending"; | ||
SmsStatus["SENT"] = "sent"; | ||
})($63f14b9c71c969bd$export$fc906f0c09f48d75 || ($63f14b9c71c969bd$export$fc906f0c09f48d75 = {})); | ||
var $63f14b9c71c969bd$export$5381d8f52f57bd1; | ||
(function(ListUsersRequest) { | ||
let Sort; | ||
(function(Sort) { | ||
Sort["CREATED_AT"] = "createdAt"; | ||
Sort["CREATED_AT_DESC"] = "-createdAt"; | ||
Sort["UPDATED_AT"] = "updatedAt"; | ||
Sort["UPDATED_AT_DESC"] = "-updatedAt"; | ||
})(Sort = ListUsersRequest.Sort || (ListUsersRequest.Sort = {})); | ||
})($63f14b9c71c969bd$export$5381d8f52f57bd1 || ($63f14b9c71c969bd$export$5381d8f52f57bd1 = {})); | ||
var $63f14b9c71c969bd$export$e73f6f358f36a136; | ||
(function(ListNamespacesRequest) { | ||
let Sort; | ||
(function(Sort) { | ||
Sort["CREATED_AT"] = "createdAt"; | ||
Sort["CREATED_AT_DESC"] = "-createdAt"; | ||
Sort["UPDATED_AT"] = "updatedAt"; | ||
Sort["UPDATED_AT_DESC"] = "-updatedAt"; | ||
Sort["KEY"] = "key"; | ||
Sort["KEY_DESC"] = "-key"; | ||
Sort["NAME"] = "name"; | ||
Sort["NAME_DESC"] = "-name"; | ||
})(Sort = ListNamespacesRequest.Sort || (ListNamespacesRequest.Sort = {})); | ||
})($63f14b9c71c969bd$export$e73f6f358f36a136 || ($63f14b9c71c969bd$export$e73f6f358f36a136 = {})); | ||
var $63f14b9c71c969bd$export$3be39bb5c5d3e6d1; | ||
(function(ListSessionsRequest) { | ||
let Sort; | ||
(function(Sort) { | ||
Sort["CREATED_AT"] = "createdAt"; | ||
Sort["CREATED_AT_DESC"] = "-createdAt"; | ||
Sort["UPDATED_AT"] = "updatedAt"; | ||
Sort["UPDATED_AT_DESC"] = "-updatedAt"; | ||
Sort["EXPIRE_AT"] = "expireAt"; | ||
Sort["EXPIRE_AT_DESC"] = "-expireAt"; | ||
})(Sort = ListSessionsRequest.Sort || (ListSessionsRequest.Sort = {})); | ||
})($63f14b9c71c969bd$export$3be39bb5c5d3e6d1 || ($63f14b9c71c969bd$export$3be39bb5c5d3e6d1 = {})); | ||
var $63f14b9c71c969bd$export$ecd3dbc11728e32f; | ||
(function(ListCaptchasRequest) { | ||
let Sort; | ||
(function(Sort) { | ||
Sort["CREATED_AT"] = "createdAt"; | ||
Sort["CREATED_AT_DESC"] = "-createdAt"; | ||
Sort["UPDATED_AT"] = "updatedAt"; | ||
Sort["UPDATED_AT_DESC"] = "-updatedAt"; | ||
Sort["EXPIRE_AT"] = "expireAt"; | ||
Sort["EXPIRE_AT_DESC"] = "-expireAt"; | ||
})(Sort = ListCaptchasRequest.Sort || (ListCaptchasRequest.Sort = {})); | ||
})($63f14b9c71c969bd$export$ecd3dbc11728e32f || ($63f14b9c71c969bd$export$ecd3dbc11728e32f = {})); | ||
var $63f14b9c71c969bd$export$72915f6295fc8ec7; | ||
(function(ListEmailRecordsRequest) { | ||
let Sort; | ||
(function(Sort) { | ||
Sort["CREATED_AT"] = "createdAt"; | ||
Sort["CREATED_AT_DESC"] = "-createdAt"; | ||
Sort["UPDATED_AT"] = "updatedAt"; | ||
Sort["UPDATED_AT_DESC"] = "-updatedAt"; | ||
Sort["SENT_AT"] = "sentAt"; | ||
Sort["SENT_AT_DESC"] = "-sentAt"; | ||
})(Sort = ListEmailRecordsRequest.Sort || (ListEmailRecordsRequest.Sort = {})); | ||
})($63f14b9c71c969bd$export$72915f6295fc8ec7 || ($63f14b9c71c969bd$export$72915f6295fc8ec7 = {})); | ||
var $63f14b9c71c969bd$export$c2c207c1201b978a; | ||
(function(ListSmsRecordsRequest) { | ||
let Sort; | ||
(function(Sort) { | ||
Sort["CREATED_AT"] = "createdAt"; | ||
Sort["CREATED_AT_DESC"] = "-createdAt"; | ||
Sort["UPDATED_AT"] = "updatedAt"; | ||
Sort["UPDATED_AT_DESC"] = "-updatedAt"; | ||
Sort["SENT_AT"] = "sentAt"; | ||
Sort["SENT_AT_DESC"] = "-sentAt"; | ||
})(Sort = ListSmsRecordsRequest.Sort || (ListSmsRecordsRequest.Sort = {})); | ||
})($63f14b9c71c969bd$export$c2c207c1201b978a || ($63f14b9c71c969bd$export$c2c207c1201b978a = {})); | ||
$parcel$exportWildcard(module.exports, $00d9c40198a72115$exports); | ||
$parcel$exportWildcard(module.exports, $f3613dc0d7a37c99$exports); | ||
$parcel$exportWildcard(module.exports, $88825bdeeeec0ab1$exports); | ||
$parcel$exportWildcard(module.exports, $c47aa81bb7e816d4$exports); | ||
$parcel$exportWildcard(module.exports, $63f14b9c71c969bd$exports); | ||
//# sourceMappingURL=main.js.map |
2509
dist/module.js
@@ -0,601 +1,1936 @@ | ||
import {createClient as $hgUW1$createClient, createConfig as $hgUW1$createConfig} from "@hey-api/client-fetch"; | ||
function $parcel$export(e, n, v, s) { | ||
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true}); | ||
} | ||
// Generated by openapi-ts-gen. DO NOT EDIT | ||
/* eslint-disable */ var $2bc5d808eb95bbd4$exports = {}; | ||
// This file is auto-generated by @hey-api/openapi-ts | ||
var $dad94870630697a9$exports = {}; | ||
$parcel$export($2bc5d808eb95bbd4$exports, "CoreAPIClient", () => $2bc5d808eb95bbd4$export$353cb576ea2f33a4); | ||
// Generated by openapi-ts-gen. DO NOT EDIT | ||
/* eslint-disable */ class $2bc5d808eb95bbd4$export$353cb576ea2f33a4 { | ||
constructor(client){ | ||
this.hello = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/hello`, | ||
method: "get" | ||
}); | ||
}; | ||
this.login = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/auth/@login`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.loginByEmail = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/auth/@loginByEmail`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.loginByPhone = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/auth/@loginByPhone`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.register = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/auth/@register`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.registerByPhone = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/auth/@registerByPhone`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.registerByEmail = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/auth/@registerByEmail`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.signToken = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/auth/@signToken`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.refresh = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/auth/@refresh`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.createUser = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/users`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.listUsers = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/users`, | ||
method: "get", | ||
params: $2bc5d808eb95bbd4$var$pick(req, [ | ||
"_sort", | ||
"id", | ||
"name_like", | ||
"username_like", | ||
"nickname_like", | ||
"ns", | ||
"ns_start", | ||
"username", | ||
"email", | ||
"phone", | ||
"registerRegion", | ||
"roles", | ||
"_limit", | ||
"_offset" | ||
]) | ||
}); | ||
}; | ||
this.getUser = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("getUser", req, [ | ||
"userId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/users/${req.userId}`, | ||
method: "get" | ||
}); | ||
}; | ||
this.updateUser = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("updateUser", req, [ | ||
"userId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/users/${req.userId}`, | ||
method: "patch", | ||
data: req.body | ||
}); | ||
}; | ||
this.deleteUser = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("deleteUser", req, [ | ||
"userId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/users/${req.userId}`, | ||
method: "delete" | ||
}); | ||
}; | ||
this.verifyIdentity = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("verifyIdentity", req, [ | ||
"userId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/users/${req.userId}/@verifyIdentity`, | ||
method: "post" | ||
}); | ||
}; | ||
this.resetPassword = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("resetPassword", req, [ | ||
"userId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/users/${req.userId}/@resetPassword`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.updatePassword = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("updatePassword", req, [ | ||
"userId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/users/${req.userId}/@updatePassword`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.createNamespace = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/namespaces`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.listNamespaces = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/namespaces`, | ||
method: "get", | ||
params: $2bc5d808eb95bbd4$var$pick(req, [ | ||
"ns", | ||
"ns_start", | ||
"_sort", | ||
"name_like", | ||
"labels", | ||
"key", | ||
"_limit", | ||
"_offset" | ||
]) | ||
}); | ||
}; | ||
this.getNamespace = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("getNamespace", req, [ | ||
"namespaceIdOrKey" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/namespaces/${req.namespaceIdOrKey}`, | ||
method: "get" | ||
}); | ||
}; | ||
this.updateNamespace = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("updateNamespace", req, [ | ||
"namespaceId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/namespaces/${req.namespaceId}`, | ||
method: "patch", | ||
data: req.body | ||
}); | ||
}; | ||
this.deleteNamespace = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("deleteNamespace", req, [ | ||
"namespaceId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/namespaces/${req.namespaceId}`, | ||
method: "delete" | ||
}); | ||
}; | ||
this.createSession = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/sessions`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.listSessions = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/sessions`, | ||
method: "get", | ||
params: $2bc5d808eb95bbd4$var$pick(req, [ | ||
"_sort", | ||
"key", | ||
"client", | ||
"uid", | ||
"_limit", | ||
"_offset" | ||
]) | ||
}); | ||
}; | ||
this.getSession = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("getSession", req, [ | ||
"sessionId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/sessions/${req.sessionId}`, | ||
method: "get" | ||
}); | ||
}; | ||
this.updateSession = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("updateSession", req, [ | ||
"sessionId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/sessions/${req.sessionId}`, | ||
method: "patch", | ||
data: req.body | ||
}); | ||
}; | ||
this.deleteSession = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("deleteSession", req, [ | ||
"sessionId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/sessions/${req.sessionId}`, | ||
method: "delete" | ||
}); | ||
}; | ||
this.createCaptcha = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/captchas`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.listCaptchas = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/captchas`, | ||
method: "get", | ||
params: $2bc5d808eb95bbd4$var$pick(req, [ | ||
"_sort", | ||
"code", | ||
"key", | ||
"_limit", | ||
"_offset" | ||
]) | ||
}); | ||
}; | ||
this.getCaptcha = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("getCaptcha", req, [ | ||
"captchaId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/captchas/${req.captchaId}`, | ||
method: "get" | ||
}); | ||
}; | ||
this.updateCaptcha = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("updateCaptcha", req, [ | ||
"captchaId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/captchas/${req.captchaId}`, | ||
method: "patch", | ||
data: req.body | ||
}); | ||
}; | ||
this.deleteCaptcha = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("deleteCaptcha", req, [ | ||
"captchaId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/captchas/${req.captchaId}`, | ||
method: "delete" | ||
}); | ||
}; | ||
this.sendEmail = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/email/@sendEmail`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.createEmailRecord = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/email/records`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.listEmailRecords = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/email/records`, | ||
method: "get", | ||
params: $2bc5d808eb95bbd4$var$pick(req, [ | ||
"status", | ||
"_sort", | ||
"createdAt_gt", | ||
"createdAt_lt", | ||
"sentAt_gt", | ||
"sentAt_lt", | ||
"from", | ||
"to", | ||
"_limit", | ||
"_offset" | ||
]) | ||
}); | ||
}; | ||
this.getEmailRecord = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("getEmailRecord", req, [ | ||
"emailRecordId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/email/records/${req.emailRecordId}`, | ||
method: "get" | ||
}); | ||
}; | ||
this.updateEmailRecord = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("updateEmailRecord", req, [ | ||
"emailRecordId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/email/records/${req.emailRecordId}`, | ||
method: "patch", | ||
data: req.body | ||
}); | ||
}; | ||
this.deleteEmailRecord = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("deleteEmailRecord", req, [ | ||
"emailRecordId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/email/records/${req.emailRecordId}`, | ||
method: "delete" | ||
}); | ||
}; | ||
this.listIndustries = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/industries`, | ||
method: "get" | ||
}); | ||
}; | ||
this.listRegions = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/regions`, | ||
method: "get" | ||
}); | ||
}; | ||
this.sendSms = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/sms/@sendSms`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.createSmsRecord = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/sms/records`, | ||
method: "post", | ||
data: req.body | ||
}); | ||
}; | ||
this.listSmsRecords = (req, config = {})=>{ | ||
return this.client.request({ | ||
...config, | ||
url: `/sms/records`, | ||
method: "get", | ||
params: $2bc5d808eb95bbd4$var$pick(req, [ | ||
"status", | ||
"_sort", | ||
"createdAt_gt", | ||
"createdAt_lt", | ||
"sentAt_gt", | ||
"sentAt_lt", | ||
"phone", | ||
"sign", | ||
"_limit", | ||
"_offset" | ||
]) | ||
}); | ||
}; | ||
this.getSmsRecord = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("getSmsRecord", req, [ | ||
"smsRecordId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/sms/records/${req.smsRecordId}`, | ||
method: "get" | ||
}); | ||
}; | ||
this.updateSmsRecord = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("updateSmsRecord", req, [ | ||
"smsRecordId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/sms/records/${req.smsRecordId}`, | ||
method: "patch", | ||
data: req.body | ||
}); | ||
}; | ||
this.deleteSmsRecord = (req, config = {})=>{ | ||
$2bc5d808eb95bbd4$var$checkPathParams("deleteSmsRecord", req, [ | ||
"smsRecordId" | ||
]); | ||
return this.client.request({ | ||
...config, | ||
url: `/sms/records/${req.smsRecordId}`, | ||
method: "delete" | ||
}); | ||
}; | ||
if (!client.defaults.baseURL) throw new Error("client's baseURL MUST specified"); | ||
this.client = client; | ||
$parcel$export($dad94870630697a9$exports, "$HealthCheckResult", () => $dad94870630697a9$export$88f4d4b355951aa3); | ||
$parcel$export($dad94870630697a9$exports, "$LoginDto", () => $dad94870630697a9$export$f4de602dbafe6fc8); | ||
$parcel$export($dad94870630697a9$exports, "$User", () => $dad94870630697a9$export$424b0b82fa10bdfa); | ||
$parcel$export($dad94870630697a9$exports, "$SessionWithToken", () => $dad94870630697a9$export$aaf658bacb5186fb); | ||
$parcel$export($dad94870630697a9$exports, "$LoginByEmailDto", () => $dad94870630697a9$export$b60f6dff66c5c7ac); | ||
$parcel$export($dad94870630697a9$exports, "$LoginByPhoneDto", () => $dad94870630697a9$export$330f12720b62cc63); | ||
$parcel$export($dad94870630697a9$exports, "$RegisterDto", () => $dad94870630697a9$export$b5be97c39364f433); | ||
$parcel$export($dad94870630697a9$exports, "$RegisterbyPhoneDto", () => $dad94870630697a9$export$e47424ab6045dd9e); | ||
$parcel$export($dad94870630697a9$exports, "$RegisterByEmailDto", () => $dad94870630697a9$export$297fa16bfda62978); | ||
$parcel$export($dad94870630697a9$exports, "$SignTokenDto", () => $dad94870630697a9$export$9700ad9c19f406f1); | ||
$parcel$export($dad94870630697a9$exports, "$Token", () => $dad94870630697a9$export$836264d3c2fd35dd); | ||
$parcel$export($dad94870630697a9$exports, "$RefreshTokenDto", () => $dad94870630697a9$export$4f302e855623adeb); | ||
$parcel$export($dad94870630697a9$exports, "$CreateUserDto", () => $dad94870630697a9$export$42fb86b793a2c536); | ||
$parcel$export($dad94870630697a9$exports, "$UpdateUserDto", () => $dad94870630697a9$export$1b308892cefd8e3e); | ||
$parcel$export($dad94870630697a9$exports, "$ResetPasswordDto", () => $dad94870630697a9$export$ea03f88e5a85dda9); | ||
$parcel$export($dad94870630697a9$exports, "$UpdatePasswordDto", () => $dad94870630697a9$export$3bacf71d57b21dff); | ||
$parcel$export($dad94870630697a9$exports, "$CreateNamespaceDto", () => $dad94870630697a9$export$3a0f0f379fb2f43f); | ||
$parcel$export($dad94870630697a9$exports, "$Namespace", () => $dad94870630697a9$export$fef09edac2f41dd6); | ||
$parcel$export($dad94870630697a9$exports, "$UpdateNamespaceDto", () => $dad94870630697a9$export$532a2356385b479a); | ||
$parcel$export($dad94870630697a9$exports, "$CreateSessionDto", () => $dad94870630697a9$export$c383d7f32a575ab); | ||
$parcel$export($dad94870630697a9$exports, "$Session", () => $dad94870630697a9$export$90376f1cecfdbf1b); | ||
$parcel$export($dad94870630697a9$exports, "$UpdateSessionDto", () => $dad94870630697a9$export$8799e003f5e64a20); | ||
$parcel$export($dad94870630697a9$exports, "$CreateCaptchaDto", () => $dad94870630697a9$export$7e72ed431ee59116); | ||
$parcel$export($dad94870630697a9$exports, "$Captcha", () => $dad94870630697a9$export$1f2dec6968d7e276); | ||
$parcel$export($dad94870630697a9$exports, "$UpdateCaptchaDto", () => $dad94870630697a9$export$9ccc176b5ae9cc36); | ||
$parcel$export($dad94870630697a9$exports, "$SendEmailDto", () => $dad94870630697a9$export$6f9a342594b281c0); | ||
$parcel$export($dad94870630697a9$exports, "$EmailStatus", () => $dad94870630697a9$export$ca86ed5d3edf6578); | ||
$parcel$export($dad94870630697a9$exports, "$CreateEmailRecordDto", () => $dad94870630697a9$export$2093419254bae162); | ||
$parcel$export($dad94870630697a9$exports, "$EmailRecord", () => $dad94870630697a9$export$96180cdcc4bc745c); | ||
$parcel$export($dad94870630697a9$exports, "$UpdateEmailRecordDto", () => $dad94870630697a9$export$f581847698cf72b6); | ||
$parcel$export($dad94870630697a9$exports, "$Industry", () => $dad94870630697a9$export$86e7567d0e80a3fd); | ||
$parcel$export($dad94870630697a9$exports, "$CreateGroupDto", () => $dad94870630697a9$export$f82ca5b68f88f064); | ||
$parcel$export($dad94870630697a9$exports, "$Group", () => $dad94870630697a9$export$c90c1d4bd95ad384); | ||
$parcel$export($dad94870630697a9$exports, "$UpdateGroupDto", () => $dad94870630697a9$export$1003ec321a8b124); | ||
$parcel$export($dad94870630697a9$exports, "$Region", () => $dad94870630697a9$export$fd4976cd1b633c9); | ||
$parcel$export($dad94870630697a9$exports, "$SendSmsDto", () => $dad94870630697a9$export$9af4a86888b337b1); | ||
$parcel$export($dad94870630697a9$exports, "$SmsStatus", () => $dad94870630697a9$export$d1050030e8300ed6); | ||
$parcel$export($dad94870630697a9$exports, "$CreateSmsRecordDto", () => $dad94870630697a9$export$c91a8145d1d88a6b); | ||
$parcel$export($dad94870630697a9$exports, "$SmsRecord", () => $dad94870630697a9$export$62bcd56e06b73f35); | ||
$parcel$export($dad94870630697a9$exports, "$UpdateSmsRecordDto", () => $dad94870630697a9$export$b885d88b4209b261); | ||
// This file is auto-generated by @hey-api/openapi-ts | ||
const $dad94870630697a9$export$88f4d4b355951aa3 = { | ||
type: "object", | ||
properties: { | ||
message: { | ||
type: "string" | ||
} | ||
}, | ||
required: [ | ||
"message" | ||
] | ||
}; | ||
const $dad94870630697a9$export$f4de602dbafe6fc8 = { | ||
type: "object", | ||
properties: { | ||
login: { | ||
type: "string", | ||
description: "\u53EF\u4EE5\u662F username/phone/Email" | ||
}, | ||
password: { | ||
type: "string", | ||
description: "\u5BC6\u7801" | ||
} | ||
}, | ||
required: [ | ||
"login", | ||
"password" | ||
] | ||
}; | ||
const $dad94870630697a9$export$424b0b82fa10bdfa = { | ||
type: "object", | ||
properties: { | ||
password: { | ||
type: "string", | ||
description: "\u5BC6\u7801", | ||
writeOnly: true | ||
}, | ||
hasPassword: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u6709\u5BC6\u7801", | ||
readOnly: true | ||
}, | ||
avatar: { | ||
type: "string", | ||
description: "\u5934\u50CF" | ||
}, | ||
data: { | ||
type: "string", | ||
description: "\u989D\u5916\u6570\u636E" | ||
}, | ||
email: { | ||
type: "string", | ||
description: "\u90AE\u7BB1" | ||
}, | ||
name: { | ||
type: "string", | ||
description: "\u59D3\u540D" | ||
}, | ||
identity: { | ||
type: "string" | ||
}, | ||
identityVerifiedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u5B9E\u540D\u8BA4\u8BC1\u65F6\u95F4" | ||
}, | ||
identityVerified: { | ||
type: "boolean", | ||
description: "\u5B9E\u540D\u8BA4\u8BC1\u662F\u5426\u901A\u8FC7" | ||
}, | ||
intro: { | ||
type: "string", | ||
description: "\u7B80\u4ECB" | ||
}, | ||
language: { | ||
type: "string", | ||
description: "\u4F7F\u7528\u8BED\u8A00" | ||
}, | ||
lastLoginIp: { | ||
type: "string", | ||
description: "\u6700\u540E\u767B\u5F55 IP" | ||
}, | ||
lastSeenAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u6700\u540E\u6D3B\u8DC3\u65F6\u95F4" | ||
}, | ||
nickname: { | ||
type: "string", | ||
description: "\u6635\u79F0" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u6240\u5C5E\u547D\u540D\u7A7A\u95F4" | ||
}, | ||
phone: { | ||
type: "string", | ||
description: "\u624B\u673A\u53F7" | ||
}, | ||
registerIp: { | ||
type: "string", | ||
description: "\u6CE8\u518C IP" | ||
}, | ||
registerRegion: { | ||
type: "string", | ||
description: "\u6CE8\u518C\u5730\u533A\uFF0C\u5B58\u5730\u533A\u7F16\u53F7" | ||
}, | ||
roles: { | ||
description: "\u89D2\u8272", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
super: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u8D85\u7EA7\u7BA1\u7406\u5458" | ||
}, | ||
username: { | ||
type: "string", | ||
description: "\u7528\u6237\u540D" | ||
}, | ||
employeeId: { | ||
type: "string", | ||
description: "\u5458\u5DE5\u7F16\u53F7" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
groups: { | ||
description: "\u56E2\u961F", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
lastLoginAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u6700\u540E\u767B\u5F55\u65F6\u95F4" | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
}, | ||
id: { | ||
type: "string", | ||
description: "Entity id" | ||
}, | ||
createdAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity created at when" | ||
}, | ||
updatedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity updated at when" | ||
}, | ||
createdBy: { | ||
type: "string", | ||
description: "Entity created by who" | ||
}, | ||
updatedBy: { | ||
type: "string", | ||
description: "Entity updated by who" | ||
} | ||
}, | ||
required: [ | ||
"id" | ||
] | ||
}; | ||
const $dad94870630697a9$export$aaf658bacb5186fb = { | ||
type: "object", | ||
properties: { | ||
acl: { | ||
type: "object", | ||
description: "\u8BBF\u95EE\u63A7\u5236\u5217\u8868" | ||
}, | ||
expireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u4F1A\u8BDD\u8FC7\u671F\u65F6\u95F4" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "refresh token key" | ||
}, | ||
user: { | ||
description: "\u7528\u6237\uFF0C\u5B9E\u9645\u5B58\u50A8 uid", | ||
allOf: [ | ||
{ | ||
$ref: "#/components/schemas/User" | ||
} | ||
] | ||
}, | ||
client: { | ||
type: "string", | ||
description: "\u5BA2\u6237\u7AEF/\u8BBE\u5907" | ||
}, | ||
id: { | ||
type: "string", | ||
description: "Entity id" | ||
}, | ||
createdAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity created at when" | ||
}, | ||
updatedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity updated at when" | ||
}, | ||
createdBy: { | ||
type: "string", | ||
description: "Entity created by who" | ||
}, | ||
updatedBy: { | ||
type: "string", | ||
description: "Entity updated by who" | ||
}, | ||
token: { | ||
type: "string", | ||
description: "token" | ||
}, | ||
tokenExpireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "token \u8FC7\u671F\u65F6\u95F4" | ||
} | ||
}, | ||
required: [ | ||
"expireAt", | ||
"key", | ||
"user", | ||
"id", | ||
"token", | ||
"tokenExpireAt" | ||
] | ||
}; | ||
const $dad94870630697a9$export$b60f6dff66c5c7ac = { | ||
type: "object", | ||
properties: { | ||
email: { | ||
type: "string", | ||
description: "\u90AE\u7BB1" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801 key" | ||
}, | ||
code: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801 code" | ||
} | ||
}, | ||
required: [ | ||
"email", | ||
"key", | ||
"code" | ||
] | ||
}; | ||
const $dad94870630697a9$export$330f12720b62cc63 = { | ||
type: "object", | ||
properties: { | ||
phone: { | ||
type: "string", | ||
description: "\u624B\u673A\u53F7" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801 key" | ||
}, | ||
code: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801 code" | ||
} | ||
}, | ||
required: [ | ||
"phone", | ||
"key", | ||
"code" | ||
] | ||
}; | ||
const $dad94870630697a9$export$b5be97c39364f433 = { | ||
type: "object", | ||
properties: { | ||
username: { | ||
type: "string", | ||
description: "\u7528\u6237\u540D" | ||
}, | ||
password: { | ||
type: "string", | ||
description: "\u5BC6\u7801" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u547D\u540D\u7A7A\u95F4" | ||
} | ||
}, | ||
required: [ | ||
"username", | ||
"password" | ||
] | ||
}; | ||
const $dad94870630697a9$export$e47424ab6045dd9e = { | ||
type: "object", | ||
properties: { | ||
phone: { | ||
type: "string", | ||
description: "\u624B\u673A\u53F7" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801 key" | ||
}, | ||
code: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801 code" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u547D\u540D\u7A7A\u95F4" | ||
} | ||
}, | ||
required: [ | ||
"phone", | ||
"key", | ||
"code" | ||
] | ||
}; | ||
const $dad94870630697a9$export$297fa16bfda62978 = { | ||
type: "object", | ||
properties: { | ||
email: { | ||
type: "string", | ||
description: "\u90AE\u7BB1" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801 key" | ||
}, | ||
code: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801 code" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u547D\u540D\u7A7A\u95F4" | ||
} | ||
}, | ||
required: [ | ||
"email", | ||
"key", | ||
"code" | ||
] | ||
}; | ||
const $dad94870630697a9$export$9700ad9c19f406f1 = { | ||
type: "object", | ||
properties: { | ||
expiresIn: { | ||
type: "string", | ||
description: `short time span string | ||
refs: https://github.com/vercel/ms | ||
eg: "2 days", "10h", "7d", "120s", "2.5 hrs", "2h", "1m", "5s", "1y", "100", "1y1m1d" | ||
m => minute | ||
h => hour | ||
d => day | ||
w => week | ||
M => month | ||
y => year | ||
s => second | ||
ms => millisecond | ||
\u{65E0}\u{5355}\u{4F4D} => millisecond` | ||
}, | ||
acl: { | ||
type: "object", | ||
description: "\u8BBF\u95EE\u63A7\u5236\u5217\u8868" | ||
}, | ||
uid: { | ||
type: "string", | ||
description: "user id" | ||
} | ||
}, | ||
required: [ | ||
"expiresIn", | ||
"uid" | ||
] | ||
}; | ||
const $dad94870630697a9$export$836264d3c2fd35dd = { | ||
type: "object", | ||
properties: { | ||
token: { | ||
type: "string", | ||
description: "token" | ||
}, | ||
tokenExpireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "token \u8FC7\u671F\u65F6\u95F4" | ||
} | ||
}, | ||
required: [ | ||
"token", | ||
"tokenExpireAt" | ||
] | ||
}; | ||
const $dad94870630697a9$export$4f302e855623adeb = { | ||
type: "object", | ||
properties: { | ||
key: { | ||
type: "string", | ||
description: "user id" | ||
} | ||
}, | ||
required: [ | ||
"key" | ||
] | ||
}; | ||
const $dad94870630697a9$export$42fb86b793a2c536 = { | ||
type: "object", | ||
properties: { | ||
password: { | ||
type: "string", | ||
description: "\u5BC6\u7801", | ||
writeOnly: true | ||
}, | ||
hasPassword: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u6709\u5BC6\u7801", | ||
readOnly: true | ||
}, | ||
avatar: { | ||
type: "string", | ||
description: "\u5934\u50CF" | ||
}, | ||
data: { | ||
type: "string", | ||
description: "\u989D\u5916\u6570\u636E" | ||
}, | ||
email: { | ||
type: "string", | ||
description: "\u90AE\u7BB1" | ||
}, | ||
name: { | ||
type: "string", | ||
description: "\u59D3\u540D" | ||
}, | ||
identity: { | ||
type: "string" | ||
}, | ||
identityVerifiedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u5B9E\u540D\u8BA4\u8BC1\u65F6\u95F4" | ||
}, | ||
identityVerified: { | ||
type: "boolean", | ||
description: "\u5B9E\u540D\u8BA4\u8BC1\u662F\u5426\u901A\u8FC7" | ||
}, | ||
intro: { | ||
type: "string", | ||
description: "\u7B80\u4ECB" | ||
}, | ||
language: { | ||
type: "string", | ||
description: "\u4F7F\u7528\u8BED\u8A00" | ||
}, | ||
nickname: { | ||
type: "string", | ||
description: "\u6635\u79F0" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u6240\u5C5E\u547D\u540D\u7A7A\u95F4" | ||
}, | ||
phone: { | ||
type: "string", | ||
description: "\u624B\u673A\u53F7" | ||
}, | ||
registerRegion: { | ||
type: "string", | ||
description: "\u6CE8\u518C\u5730\u533A\uFF0C\u5B58\u5730\u533A\u7F16\u53F7" | ||
}, | ||
roles: { | ||
description: "\u89D2\u8272", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
super: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u8D85\u7EA7\u7BA1\u7406\u5458" | ||
}, | ||
username: { | ||
type: "string", | ||
description: "\u7528\u6237\u540D" | ||
}, | ||
employeeId: { | ||
type: "string", | ||
description: "\u5458\u5DE5\u7F16\u53F7" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
groups: { | ||
description: "\u56E2\u961F", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
} | ||
} | ||
} | ||
function $2bc5d808eb95bbd4$var$checkPathParams(op, req, ks) { | ||
ks.forEach((p)=>{ | ||
if (!req[p]) throw new Error(`${p} is required for ${op}`); | ||
}; | ||
const $dad94870630697a9$export$1b308892cefd8e3e = { | ||
type: "object", | ||
properties: { | ||
hasPassword: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u6709\u5BC6\u7801", | ||
readOnly: true | ||
}, | ||
avatar: { | ||
type: "string", | ||
description: "\u5934\u50CF" | ||
}, | ||
data: { | ||
type: "string", | ||
description: "\u989D\u5916\u6570\u636E" | ||
}, | ||
email: { | ||
type: "string", | ||
description: "\u90AE\u7BB1" | ||
}, | ||
name: { | ||
type: "string", | ||
description: "\u59D3\u540D" | ||
}, | ||
identity: { | ||
type: "string" | ||
}, | ||
identityVerifiedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u5B9E\u540D\u8BA4\u8BC1\u65F6\u95F4" | ||
}, | ||
identityVerified: { | ||
type: "boolean", | ||
description: "\u5B9E\u540D\u8BA4\u8BC1\u662F\u5426\u901A\u8FC7" | ||
}, | ||
intro: { | ||
type: "string", | ||
description: "\u7B80\u4ECB" | ||
}, | ||
language: { | ||
type: "string", | ||
description: "\u4F7F\u7528\u8BED\u8A00" | ||
}, | ||
lastLoginIp: { | ||
type: "string", | ||
description: "\u6700\u540E\u767B\u5F55 IP" | ||
}, | ||
lastSeenAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u6700\u540E\u6D3B\u8DC3\u65F6\u95F4" | ||
}, | ||
nickname: { | ||
type: "string", | ||
description: "\u6635\u79F0" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u6240\u5C5E\u547D\u540D\u7A7A\u95F4" | ||
}, | ||
phone: { | ||
type: "string", | ||
description: "\u624B\u673A\u53F7" | ||
}, | ||
registerIp: { | ||
type: "string", | ||
description: "\u6CE8\u518C IP" | ||
}, | ||
registerRegion: { | ||
type: "string", | ||
description: "\u6CE8\u518C\u5730\u533A\uFF0C\u5B58\u5730\u533A\u7F16\u53F7" | ||
}, | ||
roles: { | ||
description: "\u89D2\u8272", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
super: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u8D85\u7EA7\u7BA1\u7406\u5458" | ||
}, | ||
username: { | ||
type: "string", | ||
description: "\u7528\u6237\u540D" | ||
}, | ||
employeeId: { | ||
type: "string", | ||
description: "\u5458\u5DE5\u7F16\u53F7" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
groups: { | ||
description: "\u56E2\u961F", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
lastLoginAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u6700\u540E\u767B\u5F55\u65F6\u95F4" | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
} | ||
} | ||
}; | ||
const $dad94870630697a9$export$ea03f88e5a85dda9 = { | ||
type: "object", | ||
properties: { | ||
password: { | ||
type: "string", | ||
description: "\u5BC6\u7801" | ||
} | ||
} | ||
}; | ||
const $dad94870630697a9$export$3bacf71d57b21dff = { | ||
type: "object", | ||
properties: { | ||
oldPassword: { | ||
type: "string", | ||
description: "\u65E7\u5BC6\u7801" | ||
}, | ||
newPassword: { | ||
type: "string", | ||
description: "\u65B0\u5BC6\u7801" | ||
} | ||
}, | ||
required: [ | ||
"newPassword" | ||
] | ||
}; | ||
const $dad94870630697a9$export$3a0f0f379fb2f43f = { | ||
type: "object", | ||
properties: { | ||
data: { | ||
type: "string", | ||
description: "\u989D\u5916\u6570\u636E" | ||
}, | ||
desc: { | ||
type: "string", | ||
description: "\u63CF\u8FF0" | ||
}, | ||
labels: { | ||
description: "\u6807\u7B7E", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
name: { | ||
type: "string", | ||
description: "\u540D\u79F0" | ||
}, | ||
key: { | ||
type: "string", | ||
description: `\u{547D}\u{540D}\u{7A7A}\u{95F4}\u{7684} key | ||
\u{5141}\u{8BB8}\u{7684}\u{5B57}\u{7B26} ^[a-zA-Z][a-zA-Z0-9._/-]{0,30}$` | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u6240\u5C5E\u7684 namespace" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
}, | ||
company: { | ||
type: "string", | ||
description: "\u516C\u53F8" | ||
}, | ||
defaultPassword: { | ||
type: "string", | ||
description: "\u9ED8\u8BA4\u5BC6\u7801" | ||
} | ||
}, | ||
required: [ | ||
"name", | ||
"key" | ||
] | ||
}; | ||
const $dad94870630697a9$export$fef09edac2f41dd6 = { | ||
type: "object", | ||
properties: { | ||
data: { | ||
type: "string", | ||
description: "\u989D\u5916\u6570\u636E" | ||
}, | ||
desc: { | ||
type: "string", | ||
description: "\u63CF\u8FF0" | ||
}, | ||
labels: { | ||
description: "\u6807\u7B7E", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
name: { | ||
type: "string", | ||
description: "\u540D\u79F0" | ||
}, | ||
key: { | ||
type: "string", | ||
description: `\u{547D}\u{540D}\u{7A7A}\u{95F4}\u{7684} key | ||
\u{5141}\u{8BB8}\u{7684}\u{5B57}\u{7B26} ^[a-zA-Z][a-zA-Z0-9._/-]{0,30}$` | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u6240\u5C5E\u7684 namespace" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
}, | ||
company: { | ||
type: "string", | ||
description: "\u516C\u53F8" | ||
}, | ||
defaultPassword: { | ||
type: "string", | ||
description: "\u9ED8\u8BA4\u5BC6\u7801" | ||
}, | ||
id: { | ||
type: "string", | ||
description: "Entity id" | ||
}, | ||
createdAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity created at when" | ||
}, | ||
updatedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity updated at when" | ||
}, | ||
createdBy: { | ||
type: "string", | ||
description: "Entity created by who" | ||
}, | ||
updatedBy: { | ||
type: "string", | ||
description: "Entity updated by who" | ||
} | ||
}, | ||
required: [ | ||
"name", | ||
"key", | ||
"id" | ||
] | ||
}; | ||
const $dad94870630697a9$export$532a2356385b479a = { | ||
type: "object", | ||
properties: { | ||
data: { | ||
type: "string", | ||
description: "\u989D\u5916\u6570\u636E" | ||
}, | ||
desc: { | ||
type: "string", | ||
description: "\u63CF\u8FF0" | ||
}, | ||
labels: { | ||
description: "\u6807\u7B7E", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
name: { | ||
type: "string", | ||
description: "\u540D\u79F0" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
}, | ||
company: { | ||
type: "string", | ||
description: "\u516C\u53F8" | ||
}, | ||
defaultPassword: { | ||
type: "string", | ||
description: "\u9ED8\u8BA4\u5BC6\u7801" | ||
} | ||
} | ||
}; | ||
const $dad94870630697a9$export$c383d7f32a575ab = { | ||
type: "object", | ||
properties: { | ||
uid: { | ||
type: "string", | ||
description: "\u7528\u6237 ID" | ||
}, | ||
acl: { | ||
type: "object", | ||
description: "\u8BBF\u95EE\u63A7\u5236\u5217\u8868" | ||
}, | ||
expireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u4F1A\u8BDD\u8FC7\u671F\u65F6\u95F4" | ||
}, | ||
client: { | ||
type: "string", | ||
description: "\u5BA2\u6237\u7AEF/\u8BBE\u5907" | ||
} | ||
}, | ||
required: [ | ||
"uid", | ||
"expireAt" | ||
] | ||
}; | ||
const $dad94870630697a9$export$90376f1cecfdbf1b = { | ||
type: "object", | ||
properties: { | ||
acl: { | ||
type: "object", | ||
description: "\u8BBF\u95EE\u63A7\u5236\u5217\u8868" | ||
}, | ||
expireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u4F1A\u8BDD\u8FC7\u671F\u65F6\u95F4" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "refresh token key" | ||
}, | ||
user: { | ||
description: "\u7528\u6237\uFF0C\u5B9E\u9645\u5B58\u50A8 uid", | ||
allOf: [ | ||
{ | ||
$ref: "#/components/schemas/User" | ||
} | ||
] | ||
}, | ||
client: { | ||
type: "string", | ||
description: "\u5BA2\u6237\u7AEF/\u8BBE\u5907" | ||
}, | ||
id: { | ||
type: "string", | ||
description: "Entity id" | ||
}, | ||
createdAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity created at when" | ||
}, | ||
updatedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity updated at when" | ||
}, | ||
createdBy: { | ||
type: "string", | ||
description: "Entity created by who" | ||
}, | ||
updatedBy: { | ||
type: "string", | ||
description: "Entity updated by who" | ||
} | ||
}, | ||
required: [ | ||
"expireAt", | ||
"key", | ||
"user", | ||
"id" | ||
] | ||
}; | ||
const $dad94870630697a9$export$8799e003f5e64a20 = { | ||
type: "object", | ||
properties: { | ||
acl: { | ||
type: "object", | ||
description: "\u8BBF\u95EE\u63A7\u5236\u5217\u8868" | ||
}, | ||
expireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u4F1A\u8BDD\u8FC7\u671F\u65F6\u95F4" | ||
}, | ||
client: { | ||
type: "string", | ||
description: "\u5BA2\u6237\u7AEF/\u8BBE\u5907" | ||
}, | ||
uid: { | ||
type: "string", | ||
description: "\u7528\u6237 ID" | ||
} | ||
} | ||
}; | ||
const $dad94870630697a9$export$7e72ed431ee59116 = { | ||
type: "object", | ||
properties: { | ||
code: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801" | ||
}, | ||
expireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u8FC7\u671F\u65F6\u95F4" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "key" | ||
} | ||
}, | ||
required: [ | ||
"key" | ||
] | ||
}; | ||
const $dad94870630697a9$export$1f2dec6968d7e276 = { | ||
type: "object", | ||
properties: { | ||
code: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801" | ||
}, | ||
expireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u8FC7\u671F\u65F6\u95F4" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "key" | ||
}, | ||
id: { | ||
type: "string", | ||
description: "Entity id" | ||
}, | ||
createdAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity created at when" | ||
}, | ||
updatedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity updated at when" | ||
}, | ||
createdBy: { | ||
type: "string", | ||
description: "Entity created by who" | ||
}, | ||
updatedBy: { | ||
type: "string", | ||
description: "Entity updated by who" | ||
} | ||
}, | ||
required: [ | ||
"code", | ||
"expireAt", | ||
"key", | ||
"id" | ||
] | ||
}; | ||
const $dad94870630697a9$export$9ccc176b5ae9cc36 = { | ||
type: "object", | ||
properties: { | ||
code: { | ||
type: "string", | ||
description: "\u9A8C\u8BC1\u7801" | ||
}, | ||
expireAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u8FC7\u671F\u65F6\u95F4" | ||
}, | ||
key: { | ||
type: "string", | ||
description: "key" | ||
} | ||
} | ||
}; | ||
const $dad94870630697a9$export$6f9a342594b281c0 = { | ||
type: "object", | ||
properties: { | ||
from: { | ||
type: "string" | ||
}, | ||
to: { | ||
type: "string" | ||
}, | ||
subject: { | ||
type: "string" | ||
}, | ||
content: { | ||
type: "string" | ||
} | ||
}, | ||
required: [ | ||
"from", | ||
"to", | ||
"subject", | ||
"content" | ||
] | ||
}; | ||
const $dad94870630697a9$export$ca86ed5d3edf6578 = { | ||
type: "string", | ||
description: "\u53D1\u9001\u72B6\u6001", | ||
enum: [ | ||
"pending", | ||
"sent" | ||
] | ||
}; | ||
const $dad94870630697a9$export$2093419254bae162 = { | ||
type: "object", | ||
properties: { | ||
status: { | ||
$ref: "#/components/schemas/EmailStatus" | ||
}, | ||
from: { | ||
type: "string", | ||
description: "\u53D1\u4EF6\u8005" | ||
}, | ||
to: { | ||
type: "string", | ||
description: "\u6536\u4EF6\u8005" | ||
}, | ||
subject: { | ||
type: "string", | ||
description: "\u4E3B\u9898" | ||
}, | ||
content: { | ||
type: "string", | ||
description: "\u5185\u5BB9" | ||
}, | ||
sentAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u53D1\u9001\u65F6\u95F4" | ||
} | ||
}, | ||
required: [ | ||
"status", | ||
"from", | ||
"to", | ||
"subject", | ||
"content" | ||
] | ||
}; | ||
const $dad94870630697a9$export$96180cdcc4bc745c = { | ||
type: "object", | ||
properties: { | ||
status: { | ||
$ref: "#/components/schemas/EmailStatus" | ||
}, | ||
from: { | ||
type: "string", | ||
description: "\u53D1\u4EF6\u8005" | ||
}, | ||
to: { | ||
type: "string", | ||
description: "\u6536\u4EF6\u8005" | ||
}, | ||
subject: { | ||
type: "string", | ||
description: "\u4E3B\u9898" | ||
}, | ||
content: { | ||
type: "string", | ||
description: "\u5185\u5BB9" | ||
}, | ||
sentAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u53D1\u9001\u65F6\u95F4" | ||
}, | ||
id: { | ||
type: "string", | ||
description: "Entity id" | ||
}, | ||
createdAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity created at when" | ||
}, | ||
updatedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity updated at when" | ||
}, | ||
createdBy: { | ||
type: "string", | ||
description: "Entity created by who" | ||
}, | ||
updatedBy: { | ||
type: "string", | ||
description: "Entity updated by who" | ||
} | ||
}, | ||
required: [ | ||
"status", | ||
"from", | ||
"to", | ||
"subject", | ||
"content", | ||
"id" | ||
] | ||
}; | ||
const $dad94870630697a9$export$f581847698cf72b6 = { | ||
type: "object", | ||
properties: { | ||
status: { | ||
$ref: "#/components/schemas/EmailStatus" | ||
}, | ||
from: { | ||
type: "string", | ||
description: "\u53D1\u4EF6\u8005" | ||
}, | ||
to: { | ||
type: "string", | ||
description: "\u6536\u4EF6\u8005" | ||
}, | ||
subject: { | ||
type: "string", | ||
description: "\u4E3B\u9898" | ||
}, | ||
content: { | ||
type: "string", | ||
description: "\u5185\u5BB9" | ||
}, | ||
sentAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u53D1\u9001\u65F6\u95F4" | ||
} | ||
} | ||
}; | ||
const $dad94870630697a9$export$86e7567d0e80a3fd = { | ||
type: "object", | ||
properties: { | ||
code: { | ||
type: "string", | ||
description: "\u7F16\u7801" | ||
}, | ||
name: { | ||
type: "string", | ||
description: "\u540D\u79F0" | ||
}, | ||
children: { | ||
description: "\u5B50\u96C6", | ||
type: "array", | ||
items: { | ||
$ref: "#/components/schemas/Industry" | ||
} | ||
} | ||
}, | ||
required: [ | ||
"code", | ||
"name", | ||
"children" | ||
] | ||
}; | ||
const $dad94870630697a9$export$f82ca5b68f88f064 = { | ||
type: "object", | ||
properties: { | ||
name: { | ||
type: "string", | ||
description: "\u540D\u79F0" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u6240\u5C5E\u547D\u540D\u7A7A\u95F4" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
} | ||
}, | ||
required: [ | ||
"name" | ||
] | ||
}; | ||
const $dad94870630697a9$export$c90c1d4bd95ad384 = { | ||
type: "object", | ||
properties: { | ||
name: { | ||
type: "string", | ||
description: "\u540D\u79F0" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u6240\u5C5E\u547D\u540D\u7A7A\u95F4" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
}, | ||
id: { | ||
type: "string", | ||
description: "Entity id" | ||
}, | ||
createdAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity created at when" | ||
}, | ||
updatedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity updated at when" | ||
}, | ||
createdBy: { | ||
type: "string", | ||
description: "Entity created by who" | ||
}, | ||
updatedBy: { | ||
type: "string", | ||
description: "Entity updated by who" | ||
} | ||
}, | ||
required: [ | ||
"name", | ||
"id" | ||
] | ||
}; | ||
const $dad94870630697a9$export$1003ec321a8b124 = { | ||
type: "object", | ||
properties: { | ||
name: { | ||
type: "string", | ||
description: "\u540D\u79F0" | ||
}, | ||
ns: { | ||
type: "string", | ||
description: "\u6240\u5C5E\u547D\u540D\u7A7A\u95F4" | ||
}, | ||
permissions: { | ||
description: "\u6743\u9650", | ||
type: "array", | ||
items: { | ||
type: "string" | ||
} | ||
}, | ||
active: { | ||
type: "boolean", | ||
description: "\u662F\u5426\u542F\u7528" | ||
} | ||
}, | ||
required: [ | ||
"name" | ||
] | ||
}; | ||
const $dad94870630697a9$export$fd4976cd1b633c9 = { | ||
type: "object", | ||
properties: { | ||
code: { | ||
type: "string", | ||
description: "\u7F29\u5199" | ||
}, | ||
nameZh: { | ||
type: "string", | ||
description: "\u4E2D\u6587\u540D\u79F0" | ||
}, | ||
namePinyin: { | ||
type: "string", | ||
description: "\u4E2D\u6587\u62FC\u97F3" | ||
}, | ||
nameEn: { | ||
type: "string", | ||
description: "\u82F1\u6587\u540D\u79F0" | ||
}, | ||
dialingPrefix: { | ||
type: "string", | ||
description: "\u7535\u8BDD\u524D\u7F00" | ||
} | ||
}, | ||
required: [ | ||
"code", | ||
"nameZh", | ||
"namePinyin", | ||
"nameEn", | ||
"dialingPrefix" | ||
] | ||
}; | ||
const $dad94870630697a9$export$9af4a86888b337b1 = { | ||
type: "object", | ||
properties: { | ||
phone: { | ||
type: "string" | ||
}, | ||
sign: { | ||
type: "string" | ||
}, | ||
template: { | ||
type: "string" | ||
}, | ||
params: { | ||
type: "object" | ||
} | ||
}, | ||
required: [ | ||
"phone", | ||
"sign", | ||
"template" | ||
] | ||
}; | ||
const $dad94870630697a9$export$d1050030e8300ed6 = { | ||
type: "string", | ||
description: "\u53D1\u9001\u72B6\u6001", | ||
enum: [ | ||
"pending", | ||
"sent" | ||
] | ||
}; | ||
const $dad94870630697a9$export$c91a8145d1d88a6b = { | ||
type: "object", | ||
properties: { | ||
status: { | ||
$ref: "#/components/schemas/SmsStatus" | ||
}, | ||
phone: { | ||
type: "string", | ||
description: "\u624B\u673A\u53F7" | ||
}, | ||
sign: { | ||
type: "string", | ||
description: "\u7B7E\u540D" | ||
}, | ||
template: { | ||
type: "string", | ||
description: "\u6A21\u677F" | ||
}, | ||
params: { | ||
type: "string", | ||
description: "\u53C2\u6570" | ||
}, | ||
sentAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u53D1\u9001\u65F6\u95F4" | ||
} | ||
}, | ||
required: [ | ||
"status", | ||
"phone", | ||
"sign", | ||
"template" | ||
] | ||
}; | ||
const $dad94870630697a9$export$62bcd56e06b73f35 = { | ||
type: "object", | ||
properties: { | ||
status: { | ||
$ref: "#/components/schemas/SmsStatus" | ||
}, | ||
phone: { | ||
type: "string", | ||
description: "\u624B\u673A\u53F7" | ||
}, | ||
sign: { | ||
type: "string", | ||
description: "\u7B7E\u540D" | ||
}, | ||
template: { | ||
type: "string", | ||
description: "\u6A21\u677F" | ||
}, | ||
params: { | ||
type: "string", | ||
description: "\u53C2\u6570" | ||
}, | ||
sentAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u53D1\u9001\u65F6\u95F4" | ||
}, | ||
id: { | ||
type: "string", | ||
description: "Entity id" | ||
}, | ||
createdAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity created at when" | ||
}, | ||
updatedAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "Entity updated at when" | ||
}, | ||
createdBy: { | ||
type: "string", | ||
description: "Entity created by who" | ||
}, | ||
updatedBy: { | ||
type: "string", | ||
description: "Entity updated by who" | ||
} | ||
}, | ||
required: [ | ||
"status", | ||
"phone", | ||
"sign", | ||
"template", | ||
"id" | ||
] | ||
}; | ||
const $dad94870630697a9$export$b885d88b4209b261 = { | ||
type: "object", | ||
properties: { | ||
status: { | ||
$ref: "#/components/schemas/SmsStatus" | ||
}, | ||
phone: { | ||
type: "string", | ||
description: "\u624B\u673A\u53F7" | ||
}, | ||
sign: { | ||
type: "string", | ||
description: "\u7B7E\u540D" | ||
}, | ||
template: { | ||
type: "string", | ||
description: "\u6A21\u677F" | ||
}, | ||
params: { | ||
type: "string", | ||
description: "\u53C2\u6570" | ||
}, | ||
sentAt: { | ||
format: "date-time", | ||
type: "string", | ||
description: "\u53D1\u9001\u65F6\u95F4" | ||
} | ||
} | ||
}; | ||
var $d05a635c6a58c99f$exports = {}; | ||
$parcel$export($d05a635c6a58c99f$exports, "client", () => $d05a635c6a58c99f$export$388e0302ca0d9a41); | ||
$parcel$export($d05a635c6a58c99f$exports, "hello", () => $d05a635c6a58c99f$export$e2e77b41cb4e1f9e); | ||
$parcel$export($d05a635c6a58c99f$exports, "login", () => $d05a635c6a58c99f$export$596d806903d1f59e); | ||
$parcel$export($d05a635c6a58c99f$exports, "loginByEmail", () => $d05a635c6a58c99f$export$72356d9e5d4287de); | ||
$parcel$export($d05a635c6a58c99f$exports, "loginByPhone", () => $d05a635c6a58c99f$export$aa06bc33124d2a00); | ||
$parcel$export($d05a635c6a58c99f$exports, "register", () => $d05a635c6a58c99f$export$6503ec6e8aabbaf); | ||
$parcel$export($d05a635c6a58c99f$exports, "registerByPhone", () => $d05a635c6a58c99f$export$acd2ee44d8cc419c); | ||
$parcel$export($d05a635c6a58c99f$exports, "registerByEmail", () => $d05a635c6a58c99f$export$81b4f1bef0778e97); | ||
$parcel$export($d05a635c6a58c99f$exports, "signToken", () => $d05a635c6a58c99f$export$6fa58217127c2be5); | ||
$parcel$export($d05a635c6a58c99f$exports, "refresh", () => $d05a635c6a58c99f$export$2d6e9b4c68afb6c8); | ||
$parcel$export($d05a635c6a58c99f$exports, "createUser", () => $d05a635c6a58c99f$export$3493b8991d49f558); | ||
$parcel$export($d05a635c6a58c99f$exports, "listUsers", () => $d05a635c6a58c99f$export$1c4bb93498097c2d); | ||
$parcel$export($d05a635c6a58c99f$exports, "getUser", () => $d05a635c6a58c99f$export$7cbf767827cd68ba); | ||
$parcel$export($d05a635c6a58c99f$exports, "updateUser", () => $d05a635c6a58c99f$export$e3ac7a5d19605772); | ||
$parcel$export($d05a635c6a58c99f$exports, "deleteUser", () => $d05a635c6a58c99f$export$7d0f10f273c0438a); | ||
$parcel$export($d05a635c6a58c99f$exports, "verifyIdentity", () => $d05a635c6a58c99f$export$ba1d92ba04505a80); | ||
$parcel$export($d05a635c6a58c99f$exports, "resetPassword", () => $d05a635c6a58c99f$export$dc726c8e334dd814); | ||
$parcel$export($d05a635c6a58c99f$exports, "updatePassword", () => $d05a635c6a58c99f$export$e2853351e15b7895); | ||
$parcel$export($d05a635c6a58c99f$exports, "createNamespace", () => $d05a635c6a58c99f$export$9351443236ea3261); | ||
$parcel$export($d05a635c6a58c99f$exports, "listNamespaces", () => $d05a635c6a58c99f$export$64f28126552508c0); | ||
$parcel$export($d05a635c6a58c99f$exports, "getNamespace", () => $d05a635c6a58c99f$export$becf4f9e48e6290a); | ||
$parcel$export($d05a635c6a58c99f$exports, "updateNamespace", () => $d05a635c6a58c99f$export$9c52b148e3e82e); | ||
$parcel$export($d05a635c6a58c99f$exports, "deleteNamespace", () => $d05a635c6a58c99f$export$4b83ac7774adea2f); | ||
$parcel$export($d05a635c6a58c99f$exports, "createSession", () => $d05a635c6a58c99f$export$f7c62c73429afa28); | ||
$parcel$export($d05a635c6a58c99f$exports, "listSessions", () => $d05a635c6a58c99f$export$e2f57af6ce5ee4d); | ||
$parcel$export($d05a635c6a58c99f$exports, "getSession", () => $d05a635c6a58c99f$export$12151e9ef3722552); | ||
$parcel$export($d05a635c6a58c99f$exports, "updateSession", () => $d05a635c6a58c99f$export$531818e825e774db); | ||
$parcel$export($d05a635c6a58c99f$exports, "deleteSession", () => $d05a635c6a58c99f$export$f3b72123251cadf); | ||
$parcel$export($d05a635c6a58c99f$exports, "createCaptcha", () => $d05a635c6a58c99f$export$a6205785190db785); | ||
$parcel$export($d05a635c6a58c99f$exports, "listCaptchas", () => $d05a635c6a58c99f$export$72a6916a1591271b); | ||
$parcel$export($d05a635c6a58c99f$exports, "getCaptcha", () => $d05a635c6a58c99f$export$3f7c59539a3d9e70); | ||
$parcel$export($d05a635c6a58c99f$exports, "updateCaptcha", () => $d05a635c6a58c99f$export$a8ca09988a1eeb80); | ||
$parcel$export($d05a635c6a58c99f$exports, "deleteCaptcha", () => $d05a635c6a58c99f$export$b7ca998081fe193a); | ||
$parcel$export($d05a635c6a58c99f$exports, "sendEmail", () => $d05a635c6a58c99f$export$1cea2e25b75a88f2); | ||
$parcel$export($d05a635c6a58c99f$exports, "createEmailRecord", () => $d05a635c6a58c99f$export$1f96d950f89862c2); | ||
$parcel$export($d05a635c6a58c99f$exports, "listEmailRecords", () => $d05a635c6a58c99f$export$f7461c51f0fbbbec); | ||
$parcel$export($d05a635c6a58c99f$exports, "getEmailRecord", () => $d05a635c6a58c99f$export$e3abaa1f0f2be390); | ||
$parcel$export($d05a635c6a58c99f$exports, "updateEmailRecord", () => $d05a635c6a58c99f$export$340a3b15edf5320b); | ||
$parcel$export($d05a635c6a58c99f$exports, "deleteEmailRecord", () => $d05a635c6a58c99f$export$47732292698093e5); | ||
$parcel$export($d05a635c6a58c99f$exports, "listIndustries", () => $d05a635c6a58c99f$export$6a657f882af8e729); | ||
$parcel$export($d05a635c6a58c99f$exports, "createGroup", () => $d05a635c6a58c99f$export$856f728536d122cb); | ||
$parcel$export($d05a635c6a58c99f$exports, "listGroups", () => $d05a635c6a58c99f$export$6e0114716bd43025); | ||
$parcel$export($d05a635c6a58c99f$exports, "getGroup", () => $d05a635c6a58c99f$export$dd8fe8767b0c9948); | ||
$parcel$export($d05a635c6a58c99f$exports, "updateGroup", () => $d05a635c6a58c99f$export$7266cde9e95c4de8); | ||
$parcel$export($d05a635c6a58c99f$exports, "deleteGroup", () => $d05a635c6a58c99f$export$ae2679b329fc10b6); | ||
$parcel$export($d05a635c6a58c99f$exports, "listRegions", () => $d05a635c6a58c99f$export$40295cce70884665); | ||
$parcel$export($d05a635c6a58c99f$exports, "sendSms", () => $d05a635c6a58c99f$export$fe12addabe061498); | ||
$parcel$export($d05a635c6a58c99f$exports, "createSmsRecord", () => $d05a635c6a58c99f$export$89ba073eddabee7c); | ||
$parcel$export($d05a635c6a58c99f$exports, "listSmsRecords", () => $d05a635c6a58c99f$export$3a0aa6683b18ae05); | ||
$parcel$export($d05a635c6a58c99f$exports, "getSmsRecord", () => $d05a635c6a58c99f$export$8a807b18b6923f94); | ||
$parcel$export($d05a635c6a58c99f$exports, "updateSmsRecord", () => $d05a635c6a58c99f$export$a658b2c8c182930a); | ||
$parcel$export($d05a635c6a58c99f$exports, "deleteSmsRecord", () => $d05a635c6a58c99f$export$2816e50d4ec74f93); | ||
// This file is auto-generated by @hey-api/openapi-ts | ||
const $d05a635c6a58c99f$export$388e0302ca0d9a41 = (0, $hgUW1$createClient)((0, $hgUW1$createConfig)()); | ||
const $d05a635c6a58c99f$export$e2e77b41cb4e1f9e = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/hello" | ||
}); | ||
} | ||
function $2bc5d808eb95bbd4$var$pick(o, ks) { | ||
return ks.reduce((r, p)=>{ | ||
r[p] = o[p]; | ||
return r; | ||
}, {}); | ||
} | ||
}; | ||
const $d05a635c6a58c99f$export$596d806903d1f59e = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/auth/@login" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$72356d9e5d4287de = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/auth/@loginByEmail" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$aa06bc33124d2a00 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/auth/@loginByPhone" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$6503ec6e8aabbaf = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/auth/@register" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$acd2ee44d8cc419c = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/auth/@registerByPhone" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$81b4f1bef0778e97 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/auth/@registerByEmail" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$6fa58217127c2be5 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/auth/@signToken" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$2d6e9b4c68afb6c8 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/auth/@refresh" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$3493b8991d49f558 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/users" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$1c4bb93498097c2d = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/users" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$7cbf767827cd68ba = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/users/{userId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$e3ac7a5d19605772 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).patch({ | ||
...options, | ||
url: "/users/{userId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$7d0f10f273c0438a = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).delete({ | ||
...options, | ||
url: "/users/{userId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$ba1d92ba04505a80 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/users/{userId}/@verifyIdentity" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$dc726c8e334dd814 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/users/{userId}/@resetPassword" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$e2853351e15b7895 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/users/{userId}/@updatePassword" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$9351443236ea3261 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/namespaces" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$64f28126552508c0 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/namespaces" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$becf4f9e48e6290a = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/namespaces/{namespaceIdOrKey}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$9c52b148e3e82e = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).patch({ | ||
...options, | ||
url: "/namespaces/{namespaceId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$4b83ac7774adea2f = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).delete({ | ||
...options, | ||
url: "/namespaces/{namespaceId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$f7c62c73429afa28 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/sessions" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$e2f57af6ce5ee4d = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/sessions" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$12151e9ef3722552 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/sessions/{sessionId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$531818e825e774db = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).patch({ | ||
...options, | ||
url: "/sessions/{sessionId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$f3b72123251cadf = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).delete({ | ||
...options, | ||
url: "/sessions/{sessionId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$a6205785190db785 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/captchas" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$72a6916a1591271b = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/captchas" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$3f7c59539a3d9e70 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/captchas/{captchaId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$a8ca09988a1eeb80 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).patch({ | ||
...options, | ||
url: "/captchas/{captchaId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$b7ca998081fe193a = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).delete({ | ||
...options, | ||
url: "/captchas/{captchaId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$1cea2e25b75a88f2 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/email/@sendEmail" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$1f96d950f89862c2 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/email/records" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$f7461c51f0fbbbec = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/email/records" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$e3abaa1f0f2be390 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/email/records/{emailRecordId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$340a3b15edf5320b = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).patch({ | ||
...options, | ||
url: "/email/records/{emailRecordId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$47732292698093e5 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).delete({ | ||
...options, | ||
url: "/email/records/{emailRecordId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$6a657f882af8e729 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/industries" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$856f728536d122cb = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/groups" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$6e0114716bd43025 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/groups" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$dd8fe8767b0c9948 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/groups/{groupIdOrName}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$7266cde9e95c4de8 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).patch({ | ||
...options, | ||
url: "/groups/{groupId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$ae2679b329fc10b6 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).delete({ | ||
...options, | ||
url: "/groups/{groupId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$40295cce70884665 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/regions" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$fe12addabe061498 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/sms/@sendSms" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$89ba073eddabee7c = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).post({ | ||
...options, | ||
url: "/sms/records" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$3a0aa6683b18ae05 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/sms/records" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$8a807b18b6923f94 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).get({ | ||
...options, | ||
url: "/sms/records/{smsRecordId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$a658b2c8c182930a = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).patch({ | ||
...options, | ||
url: "/sms/records/{smsRecordId}" | ||
}); | ||
}; | ||
const $d05a635c6a58c99f$export$2816e50d4ec74f93 = (options)=>{ | ||
return (options?.client ?? $d05a635c6a58c99f$export$388e0302ca0d9a41).delete({ | ||
...options, | ||
url: "/sms/records/{smsRecordId}" | ||
}); | ||
}; | ||
var $9af6386886df3c9e$exports = {}; | ||
var $ffc5a78cf4bf2729$exports = {}; | ||
// This file is auto-generated by @hey-api/openapi-ts | ||
$parcel$export($9af6386886df3c9e$exports, "EmailStatus", () => $9af6386886df3c9e$export$96fb7dfa641b77fb); | ||
$parcel$export($9af6386886df3c9e$exports, "SmsStatus", () => $9af6386886df3c9e$export$fc906f0c09f48d75); | ||
$parcel$export($9af6386886df3c9e$exports, "ListUsersRequest", () => $9af6386886df3c9e$export$5381d8f52f57bd1); | ||
$parcel$export($9af6386886df3c9e$exports, "ListNamespacesRequest", () => $9af6386886df3c9e$export$e73f6f358f36a136); | ||
$parcel$export($9af6386886df3c9e$exports, "ListSessionsRequest", () => $9af6386886df3c9e$export$3be39bb5c5d3e6d1); | ||
$parcel$export($9af6386886df3c9e$exports, "ListCaptchasRequest", () => $9af6386886df3c9e$export$ecd3dbc11728e32f); | ||
$parcel$export($9af6386886df3c9e$exports, "ListEmailRecordsRequest", () => $9af6386886df3c9e$export$72915f6295fc8ec7); | ||
$parcel$export($9af6386886df3c9e$exports, "ListSmsRecordsRequest", () => $9af6386886df3c9e$export$c2c207c1201b978a); | ||
// Generated by openapi-ts-gen. DO NOT EDIT | ||
/* eslint-disable */ var $9af6386886df3c9e$export$96fb7dfa641b77fb; | ||
(function(EmailStatus) { | ||
EmailStatus["PENDING"] = "pending"; | ||
EmailStatus["SENT"] = "sent"; | ||
})($9af6386886df3c9e$export$96fb7dfa641b77fb || ($9af6386886df3c9e$export$96fb7dfa641b77fb = {})); | ||
var $9af6386886df3c9e$export$fc906f0c09f48d75; | ||
(function(SmsStatus) { | ||
SmsStatus["PENDING"] = "pending"; | ||
SmsStatus["SENT"] = "sent"; | ||
})($9af6386886df3c9e$export$fc906f0c09f48d75 || ($9af6386886df3c9e$export$fc906f0c09f48d75 = {})); | ||
var $9af6386886df3c9e$export$5381d8f52f57bd1; | ||
(function(ListUsersRequest) { | ||
let Sort; | ||
(function(Sort) { | ||
Sort["CREATED_AT"] = "createdAt"; | ||
Sort["CREATED_AT_DESC"] = "-createdAt"; | ||
Sort["UPDATED_AT"] = "updatedAt"; | ||
Sort["UPDATED_AT_DESC"] = "-updatedAt"; | ||
})(Sort = ListUsersRequest.Sort || (ListUsersRequest.Sort = {})); | ||
})($9af6386886df3c9e$export$5381d8f52f57bd1 || ($9af6386886df3c9e$export$5381d8f52f57bd1 = {})); | ||
var $9af6386886df3c9e$export$e73f6f358f36a136; | ||
(function(ListNamespacesRequest) { | ||
let Sort; | ||
(function(Sort) { | ||
Sort["CREATED_AT"] = "createdAt"; | ||
Sort["CREATED_AT_DESC"] = "-createdAt"; | ||
Sort["UPDATED_AT"] = "updatedAt"; | ||
Sort["UPDATED_AT_DESC"] = "-updatedAt"; | ||
Sort["KEY"] = "key"; | ||
Sort["KEY_DESC"] = "-key"; | ||
Sort["NAME"] = "name"; | ||
Sort["NAME_DESC"] = "-name"; | ||
})(Sort = ListNamespacesRequest.Sort || (ListNamespacesRequest.Sort = {})); | ||
})($9af6386886df3c9e$export$e73f6f358f36a136 || ($9af6386886df3c9e$export$e73f6f358f36a136 = {})); | ||
var $9af6386886df3c9e$export$3be39bb5c5d3e6d1; | ||
(function(ListSessionsRequest) { | ||
let Sort; | ||
(function(Sort) { | ||
Sort["CREATED_AT"] = "createdAt"; | ||
Sort["CREATED_AT_DESC"] = "-createdAt"; | ||
Sort["UPDATED_AT"] = "updatedAt"; | ||
Sort["UPDATED_AT_DESC"] = "-updatedAt"; | ||
Sort["EXPIRE_AT"] = "expireAt"; | ||
Sort["EXPIRE_AT_DESC"] = "-expireAt"; | ||
})(Sort = ListSessionsRequest.Sort || (ListSessionsRequest.Sort = {})); | ||
})($9af6386886df3c9e$export$3be39bb5c5d3e6d1 || ($9af6386886df3c9e$export$3be39bb5c5d3e6d1 = {})); | ||
var $9af6386886df3c9e$export$ecd3dbc11728e32f; | ||
(function(ListCaptchasRequest) { | ||
let Sort; | ||
(function(Sort) { | ||
Sort["CREATED_AT"] = "createdAt"; | ||
Sort["CREATED_AT_DESC"] = "-createdAt"; | ||
Sort["UPDATED_AT"] = "updatedAt"; | ||
Sort["UPDATED_AT_DESC"] = "-updatedAt"; | ||
Sort["EXPIRE_AT"] = "expireAt"; | ||
Sort["EXPIRE_AT_DESC"] = "-expireAt"; | ||
})(Sort = ListCaptchasRequest.Sort || (ListCaptchasRequest.Sort = {})); | ||
})($9af6386886df3c9e$export$ecd3dbc11728e32f || ($9af6386886df3c9e$export$ecd3dbc11728e32f = {})); | ||
var $9af6386886df3c9e$export$72915f6295fc8ec7; | ||
(function(ListEmailRecordsRequest) { | ||
let Sort; | ||
(function(Sort) { | ||
Sort["CREATED_AT"] = "createdAt"; | ||
Sort["CREATED_AT_DESC"] = "-createdAt"; | ||
Sort["UPDATED_AT"] = "updatedAt"; | ||
Sort["UPDATED_AT_DESC"] = "-updatedAt"; | ||
Sort["SENT_AT"] = "sentAt"; | ||
Sort["SENT_AT_DESC"] = "-sentAt"; | ||
})(Sort = ListEmailRecordsRequest.Sort || (ListEmailRecordsRequest.Sort = {})); | ||
})($9af6386886df3c9e$export$72915f6295fc8ec7 || ($9af6386886df3c9e$export$72915f6295fc8ec7 = {})); | ||
var $9af6386886df3c9e$export$c2c207c1201b978a; | ||
(function(ListSmsRecordsRequest) { | ||
let Sort; | ||
(function(Sort) { | ||
Sort["CREATED_AT"] = "createdAt"; | ||
Sort["CREATED_AT_DESC"] = "-createdAt"; | ||
Sort["UPDATED_AT"] = "updatedAt"; | ||
Sort["UPDATED_AT_DESC"] = "-updatedAt"; | ||
Sort["SENT_AT"] = "sentAt"; | ||
Sort["SENT_AT_DESC"] = "-sentAt"; | ||
})(Sort = ListSmsRecordsRequest.Sort || (ListSmsRecordsRequest.Sort = {})); | ||
})($9af6386886df3c9e$export$c2c207c1201b978a || ($9af6386886df3c9e$export$c2c207c1201b978a = {})); | ||
export {$2bc5d808eb95bbd4$export$353cb576ea2f33a4 as CoreAPIClient, $9af6386886df3c9e$export$96fb7dfa641b77fb as EmailStatus, $9af6386886df3c9e$export$fc906f0c09f48d75 as SmsStatus, $9af6386886df3c9e$export$5381d8f52f57bd1 as ListUsersRequest, $9af6386886df3c9e$export$e73f6f358f36a136 as ListNamespacesRequest, $9af6386886df3c9e$export$3be39bb5c5d3e6d1 as ListSessionsRequest, $9af6386886df3c9e$export$ecd3dbc11728e32f as ListCaptchasRequest, $9af6386886df3c9e$export$72915f6295fc8ec7 as ListEmailRecordsRequest, $9af6386886df3c9e$export$c2c207c1201b978a as ListSmsRecordsRequest}; | ||
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$f82ca5b68f88f064 as $CreateGroupDto, $dad94870630697a9$export$c90c1d4bd95ad384 as $Group, $dad94870630697a9$export$1003ec321a8b124 as $UpdateGroupDto, $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$856f728536d122cb as createGroup, $d05a635c6a58c99f$export$6e0114716bd43025 as listGroups, $d05a635c6a58c99f$export$dd8fe8767b0c9948 as getGroup, $d05a635c6a58c99f$export$7266cde9e95c4de8 as updateGroup, $d05a635c6a58c99f$export$ae2679b329fc10b6 as deleteGroup, $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}; | ||
//# sourceMappingURL=module.js.map |
{ | ||
"name": "@36node/auth-sdk", | ||
"version": "1.1.0", | ||
"version": "1.1.1-pr-7-281e214970", | ||
"description": "36node auth sdk for auth service", | ||
@@ -14,3 +14,3 @@ "source": "src/index.ts", | ||
"build": "parcel build", | ||
"gen": "ts-node ./scripts/gen.ts", | ||
"gen": "openapi-ts && pnpm lint --fix", | ||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"", | ||
@@ -26,6 +26,6 @@ "github-secret": "ts-node scripts/github-action-secret.ts" | ||
"dependencies": { | ||
"axios": "1.6.7" | ||
"@hey-api/client-fetch": "^0.2.4", | ||
"@hey-api/openapi-ts": "^0.52.8" | ||
}, | ||
"devDependencies": { | ||
"@36node/openapi-ts-gen": "^0.2.9", | ||
"@ianvs/prettier-plugin-sort-imports": "^4.1.1", | ||
@@ -32,0 +32,0 @@ "@parcel/core": "latest", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
451551
18
6754
2
2
1
+ Added@hey-api/client-fetch@^0.2.4
+ Added@hey-api/openapi-ts@^0.52.8
+ Added@apidevtools/json-schema-ref-parser@11.7.0(transitive)
+ Added@hey-api/client-fetch@0.2.4(transitive)
+ Added@hey-api/openapi-ts@0.52.11(transitive)
+ Added@jsdevtools/ono@7.1.3(transitive)
+ Added@types/json-schema@7.0.15(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedanymatch@3.1.3(transitive)
+ Addedargparse@2.0.1(transitive)
+ Addedbinary-extensions@2.3.0(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedc12@1.11.1(transitive)
+ Addedchokidar@3.6.0(transitive)
+ Addedchownr@2.0.0(transitive)
+ Addedcitty@0.1.6(transitive)
+ Addedcommander@12.1.0(transitive)
+ Addedconfbox@0.1.8(transitive)
+ Addedconsola@3.4.0(transitive)
+ Addeddefu@6.1.4(transitive)
+ Addeddestr@2.0.3(transitive)
+ Addeddotenv@16.4.7(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedfs-minipass@2.1.0(transitive)
+ Addedfsevents@2.3.3(transitive)
+ Addedgiget@1.2.5(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedhandlebars@4.7.8(transitive)
+ Addedis-binary-path@2.1.0(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedjiti@1.21.7(transitive)
+ Addedjs-yaml@4.1.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedminipass@3.3.65.0.0(transitive)
+ Addedminizlib@2.1.2(transitive)
+ Addedmkdirp@1.0.4(transitive)
+ Addedmlly@1.7.4(transitive)
+ Addedneo-async@2.6.2(transitive)
+ Addednode-fetch-native@1.6.6(transitive)
+ Addednormalize-path@3.0.0(transitive)
+ Addednypm@0.5.4(transitive)
+ Addedohash@1.1.4(transitive)
+ Addedpathe@1.1.22.0.3(transitive)
+ Addedperfect-debounce@1.0.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedpkg-types@1.3.1(transitive)
+ Addedrc9@2.1.2(transitive)
+ Addedreaddirp@3.6.0(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedtar@6.2.1(transitive)
+ Addedtinyexec@0.3.2(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedtypescript@5.7.3(transitive)
+ Addedufo@1.5.4(transitive)
+ Addeduglify-js@3.19.3(transitive)
+ Addedwordwrap@1.0.0(transitive)
+ Addedyallist@4.0.0(transitive)
- Removedaxios@1.6.7
- Removedasynckit@0.4.0(transitive)
- Removedaxios@1.6.7(transitive)
- Removedcall-bind-apply-helpers@1.0.2(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removeddunder-proto@1.0.1(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.1.1(transitive)
- Removedes-set-tostringtag@2.1.0(transitive)
- Removedfollow-redirects@1.15.9(transitive)
- Removedform-data@4.0.2(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.3.0(transitive)
- Removedget-proto@1.0.1(transitive)
- Removedgopd@1.2.0(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedmath-intrinsics@1.1.0(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedproxy-from-env@1.1.0(transitive)