@logto/cloud 0.2.5-1a68662 → 0.2.5-cbbfdc2

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.
@@ -36,7 +36,8 @@ declare enum VerificationCodeType {
36
36
  /** @deprecated Use `Generic` type template for sending test sms/email use case */
37
37
  Test = "Test"
38
38
  }
39
- declare const router: import("@withtyped/server").Router<WithAuthContext, import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").BaseRoutes, import("@withtyped/server").RoutesWithPrefix<{
39
+ declare const _default: import("@withtyped/server").Router<WithAuthContext, import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").BaseRoutes, import("@withtyped/server").RoutesWithPrefix<{
40
+ options: {};
40
41
  patch: {
41
42
  "/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, {
42
43
  name?: string | undefined;
@@ -57,9 +58,9 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
57
58
  delete: {
58
59
  "/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, unknown, unknown>;
59
60
  };
60
- options: {};
61
61
  copy: {};
62
62
  }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
63
+ options: {};
63
64
  patch: {};
64
65
  get: {
65
66
  "/services/mails/usage": import("@withtyped/server").PathGuard<"/mails/usage", {
@@ -109,12 +110,56 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
109
110
  put: {};
110
111
  head: {};
111
112
  delete: {};
113
+ copy: {};
114
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
112
115
  options: {};
116
+ patch: {};
117
+ get: {
118
+ "/subscription-plans": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
119
+ id: string;
120
+ name: string;
121
+ products: {
122
+ description?: string | undefined;
123
+ type: "flat" | "tier1" | "tier2" | "tier3";
124
+ id: string;
125
+ name: string;
126
+ price: {
127
+ quantity?: 1 | undefined;
128
+ unitAmount?: number | null | undefined;
129
+ id: string;
130
+ unitAmountDecimal: string;
131
+ };
132
+ }[];
133
+ quota: {
134
+ tenantLimit: number | null;
135
+ mauLimit: number | null;
136
+ applicationsLimit: number;
137
+ machineToMachineLimit: number;
138
+ resourcesLimit: number;
139
+ scopesPerResourceLimit: number;
140
+ customDomainEnabled: boolean;
141
+ omniSignInEnabled: boolean;
142
+ builtInEmailConnectorEnabled: boolean;
143
+ socialConnectorsLimit: number | null;
144
+ standardConnectorsLimit: number;
145
+ rolesLimit: number;
146
+ scopesPerRoleLimit: number | null;
147
+ hooksLimit: number;
148
+ auditLogsRetentionDays: number;
149
+ };
150
+ createdAt: Date;
151
+ updatedAt: Date;
152
+ }[]>;
153
+ };
154
+ post: {};
155
+ put: {};
156
+ head: {};
157
+ delete: {};
113
158
  copy: {};
114
159
  }, "/api">>, "/api">;
115
160
 
116
161
  export {
117
- router as default,
162
+ _default as default,
118
163
  };
119
164
 
120
165
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/cloud",
3
- "version": "0.2.5-1a68662",
3
+ "version": "0.2.5-cbbfdc2",
4
4
  "description": "Logto Cloud service.",
5
5
  "main": "build/index.js",
6
6
  "author": "Silverhand Inc. <contact@silverhand.io>",
@@ -24,11 +24,12 @@
24
24
  "@types/jest": "^29.4.0",
25
25
  "@types/mime-types": "^2.1.1",
26
26
  "@types/node": "^18.11.18",
27
+ "@types/yargs": "^17.0.24",
27
28
  "dts-bundle-generator": "^8.0.1",
28
29
  "eslint": "^8.21.0",
29
30
  "jest": "^29.5.0",
30
31
  "lint-staged": "^13.0.0",
31
- "nodemon": "^2.0.19",
32
+ "nodemon": "^3.0.0",
32
33
  "prettier": "^2.8.1",
33
34
  "typescript": "^5.0.0"
34
35
  },
@@ -36,14 +37,18 @@
36
37
  "node": "^18.12.0"
37
38
  },
38
39
  "eslintConfig": {
39
- "extends": "@silverhand"
40
+ "extends": "@silverhand",
41
+ "ignorePatterns": [
42
+ "types.test.ts"
43
+ ]
40
44
  },
41
45
  "prettier": "@silverhand/eslint-config/.prettierrc",
42
46
  "publishConfig": {
43
47
  "access": "public"
44
48
  },
45
49
  "dependencies": {
46
- "@withtyped/server": "^0.12.0"
50
+ "@silverhand/essentials": "^2.7.0",
51
+ "@withtyped/server": "^0.12.4"
47
52
  },
48
53
  "scripts": {
49
54
  "precommit": "lint-staged",
@@ -56,8 +61,9 @@
56
61
  "dev": "rm -rf build/ && nodemon",
57
62
  "start": "NODE_ENV=production node .",
58
63
  "test:only": "NODE_OPTIONS=\"--experimental-vm-modules --max_old_space_size=4096\" jest --logHeapUsage",
59
- "test": "pnpm build:test && pnpm test:only",
64
+ "test": "pnpm build:test && pnpm test:only && pnpm build:lib && pnpm test:types",
60
65
  "test:ci": "pnpm test:only --coverage --silent",
61
- "test:types": "tsc -p tsconfig.test.types.json"
66
+ "test:types": "tsc -p tsconfig.test.types.json",
67
+ "cli": "node ./build/cli/index.js"
62
68
  }
63
69
  }