@logto/cloud 0.2.5-d28a065 → 0.2.5-faca9a9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,9 +17,20 @@ declare enum VerificationCodeType {
17
17
  /** @deprecated Use `Generic` type template for sending test sms/email use case */
18
18
  Test = "Test"
19
19
  }
20
+ declare enum TemplateType {
21
+ /** The template for sending verification code when user is signing in. */
22
+ SignIn = "SignIn",
23
+ /** The template for sending verification code when user is registering. */
24
+ Register = "Register",
25
+ /** The template for sending verification code when user is resetting password. */
26
+ ForgotPassword = "ForgotPassword",
27
+ /** The template for sending organization invitation. */
28
+ OrganizationInvitation = "OrganizationInvitation",
29
+ /** The template for generic usage. */
30
+ Generic = "Generic"
31
+ }
20
32
  declare enum TenantTag {
21
33
  Development = "development",
22
- Staging = "staging",
23
34
  Production = "production"
24
35
  }
25
36
  declare const AffiliateProperties: import("@withtyped/server/lib/model/index.js").default<"affiliate_properties", {
@@ -232,9 +243,10 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
232
243
  post: {
233
244
  "/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
234
245
  data: {
235
- type: VerificationCodeType;
246
+ type: TemplateType | VerificationCodeType;
236
247
  payload: {
237
- code: string;
248
+ code?: string | undefined;
249
+ link?: string | undefined;
238
250
  senderName?: string | undefined;
239
251
  companyInformation?: string | undefined;
240
252
  appLogo?: string | undefined;
@@ -245,10 +257,11 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
245
257
  } & {
246
258
  "/services/send-sms": import("@withtyped/server").PathGuard<"/send-sms", unknown, {
247
259
  data: {
248
- type: VerificationCodeType;
260
+ type: TemplateType | VerificationCodeType;
249
261
  to: string;
250
262
  payload: {
251
- code: string;
263
+ code?: string | undefined;
264
+ link?: string | undefined;
252
265
  };
253
266
  };
254
267
  }, unknown>;
@@ -285,6 +298,7 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
285
298
  mfaEnabled: boolean;
286
299
  organizationsEnabled: boolean;
287
300
  ssoEnabled: boolean;
301
+ thirdPartyApplicationsLimit: number | null;
288
302
  };
289
303
  stripeProducts: {
290
304
  type: "flat" | "tier1" | "tier2" | "tier3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/cloud",
3
- "version": "0.2.5-d28a065",
3
+ "version": "0.2.5-faca9a9",
4
4
  "description": "Logto Cloud service.",
5
5
  "main": "build/index.js",
6
6
  "author": "Silverhand Inc. <contact@silverhand.io>",
@@ -23,7 +23,7 @@
23
23
  "@types/http-proxy": "^1.17.9",
24
24
  "@types/jest": "^29.4.0",
25
25
  "@types/mime-types": "^2.1.1",
26
- "@types/node": "^18.11.18",
26
+ "@types/node": "^20.0.0",
27
27
  "@types/yargs": "^17.0.24",
28
28
  "dts-bundle-generator": "^9.0.0",
29
29
  "eslint": "^8.44.0",
@@ -50,7 +50,7 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@silverhand/essentials": "^2.8.6",
53
+ "@silverhand/essentials": "^2.8.8",
54
54
  "@withtyped/server": "^0.12.7"
55
55
  },
56
56
  "scripts": {