@logto/cloud 0.2.5-70aa370 → 0.2.5-a3e852f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{build → lib}/routes/index.d.ts +53 -37
- package/package.json +12 -12
|
@@ -40,7 +40,7 @@ export type Affiliate = InferModelType<typeof Affiliates>;
|
|
|
40
40
|
export type AffiliateData = Affiliate & {
|
|
41
41
|
properties: Array<Pick<AffiliateProperty, "type" | "value">>;
|
|
42
42
|
};
|
|
43
|
-
declare const router: import("@withtyped/server").Router<WithAuthContext, import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").BaseRoutes, import("@withtyped/server").RoutesWithPrefix<{
|
|
43
|
+
declare const router: import("@withtyped/server").Router<WithAuthContext, import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").BaseRoutes, import("@withtyped/server").RoutesWithPrefix<{
|
|
44
44
|
options: {};
|
|
45
45
|
patch: {
|
|
46
46
|
"/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, {
|
|
@@ -50,6 +50,7 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
50
50
|
id: string;
|
|
51
51
|
name: string;
|
|
52
52
|
indicator: string;
|
|
53
|
+
isSuspended: boolean;
|
|
53
54
|
planId: string;
|
|
54
55
|
tag: TenantTag;
|
|
55
56
|
}>;
|
|
@@ -59,10 +60,34 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
59
60
|
id: string;
|
|
60
61
|
name: string;
|
|
61
62
|
indicator: string;
|
|
63
|
+
isSuspended: boolean;
|
|
62
64
|
planId: string;
|
|
63
65
|
tag: TenantTag;
|
|
64
66
|
}[]>;
|
|
65
|
-
}
|
|
67
|
+
};
|
|
68
|
+
post: {
|
|
69
|
+
"/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
70
|
+
name?: string | undefined;
|
|
71
|
+
tag?: TenantTag | undefined;
|
|
72
|
+
}, {
|
|
73
|
+
id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
indicator: string;
|
|
76
|
+
isSuspended: boolean;
|
|
77
|
+
planId: string;
|
|
78
|
+
tag: TenantTag;
|
|
79
|
+
}>;
|
|
80
|
+
};
|
|
81
|
+
put: {};
|
|
82
|
+
head: {};
|
|
83
|
+
delete: {
|
|
84
|
+
"/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, unknown, unknown>;
|
|
85
|
+
};
|
|
86
|
+
copy: {};
|
|
87
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
88
|
+
options: {};
|
|
89
|
+
patch: {};
|
|
90
|
+
get: {
|
|
66
91
|
"/tenants/my/subscription": import("@withtyped/server").PathGuard<"/my/subscription", unknown, unknown, {
|
|
67
92
|
status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
|
|
68
93
|
planId: string;
|
|
@@ -102,20 +127,9 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
102
127
|
}>;
|
|
103
128
|
};
|
|
104
129
|
post: {
|
|
105
|
-
"/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
106
|
-
name?: string | undefined;
|
|
107
|
-
tag?: TenantTag | undefined;
|
|
108
|
-
}, {
|
|
109
|
-
id: string;
|
|
110
|
-
name: string;
|
|
111
|
-
indicator: string;
|
|
112
|
-
planId: string;
|
|
113
|
-
tag: TenantTag;
|
|
114
|
-
}>;
|
|
115
|
-
} & {
|
|
116
130
|
"/tenants/:tenantId/stripe-customer-portal": import("@withtyped/server").PathGuard<"/:tenantId/stripe-customer-portal", unknown, {
|
|
117
131
|
callbackUrl?: string | undefined;
|
|
118
|
-
}
|
|
132
|
+
}, {
|
|
119
133
|
redirectUri: string;
|
|
120
134
|
}>;
|
|
121
135
|
};
|
|
@@ -123,8 +137,6 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
123
137
|
head: {};
|
|
124
138
|
delete: {
|
|
125
139
|
"/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, unknown>;
|
|
126
|
-
} & {
|
|
127
|
-
"/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, unknown, unknown>;
|
|
128
140
|
};
|
|
129
141
|
copy: {};
|
|
130
142
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
@@ -138,19 +150,6 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
138
150
|
}>;
|
|
139
151
|
};
|
|
140
152
|
post: {
|
|
141
|
-
"/services/send-email": import("@withtyped/server").PathGuard<"/send-email", unknown, {
|
|
142
|
-
data: {
|
|
143
|
-
type: VerificationCodeType;
|
|
144
|
-
to: string;
|
|
145
|
-
payload: {
|
|
146
|
-
senderName?: string | undefined;
|
|
147
|
-
companyInformation?: string | undefined;
|
|
148
|
-
appLogo?: string | undefined;
|
|
149
|
-
code: string;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
}, unknown>;
|
|
153
|
-
} & {
|
|
154
153
|
"/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
|
|
155
154
|
data: {
|
|
156
155
|
type: VerificationCodeType;
|
|
@@ -191,19 +190,19 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
191
190
|
name: string;
|
|
192
191
|
quota: {
|
|
193
192
|
mauLimit: number | null;
|
|
194
|
-
applicationsLimit: number;
|
|
195
|
-
machineToMachineLimit: number;
|
|
196
|
-
resourcesLimit: number;
|
|
197
|
-
scopesPerResourceLimit: number;
|
|
193
|
+
applicationsLimit: number | null;
|
|
194
|
+
machineToMachineLimit: number | null;
|
|
195
|
+
resourcesLimit: number | null;
|
|
196
|
+
scopesPerResourceLimit: number | null;
|
|
198
197
|
customDomainEnabled: boolean;
|
|
199
198
|
omniSignInEnabled: boolean;
|
|
200
199
|
builtInEmailConnectorEnabled: boolean;
|
|
201
200
|
socialConnectorsLimit: number | null;
|
|
202
|
-
standardConnectorsLimit: number;
|
|
203
|
-
rolesLimit: number;
|
|
201
|
+
standardConnectorsLimit: number | null;
|
|
202
|
+
rolesLimit: number | null;
|
|
204
203
|
scopesPerRoleLimit: number | null;
|
|
205
|
-
hooksLimit: number;
|
|
206
|
-
auditLogsRetentionDays: number;
|
|
204
|
+
hooksLimit: number | null;
|
|
205
|
+
auditLogsRetentionDays: number | null;
|
|
207
206
|
};
|
|
208
207
|
stripeProducts: {
|
|
209
208
|
description?: string | undefined;
|
|
@@ -225,6 +224,23 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
225
224
|
head: {};
|
|
226
225
|
delete: {};
|
|
227
226
|
copy: {};
|
|
227
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
228
|
+
options: {};
|
|
229
|
+
patch: {};
|
|
230
|
+
get: {
|
|
231
|
+
"/my/tenant": import("@withtyped/server").PathGuard<"/tenant", unknown, unknown, {
|
|
232
|
+
name: string;
|
|
233
|
+
id: string;
|
|
234
|
+
indicator: string;
|
|
235
|
+
isSuspended: boolean;
|
|
236
|
+
tag: TenantTag;
|
|
237
|
+
}>;
|
|
238
|
+
};
|
|
239
|
+
post: {};
|
|
240
|
+
put: {};
|
|
241
|
+
head: {};
|
|
242
|
+
delete: {};
|
|
243
|
+
copy: {};
|
|
228
244
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
229
245
|
options: {};
|
|
230
246
|
patch: {};
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logto/cloud",
|
|
3
|
-
"version": "0.2.5-
|
|
3
|
+
"version": "0.2.5-a3e852f",
|
|
4
4
|
"description": "Logto Cloud service.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
7
7
|
"license": "Elastic-2.0",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"files": [
|
|
10
|
-
"
|
|
10
|
+
"lib"
|
|
11
11
|
],
|
|
12
12
|
"exports": {
|
|
13
|
-
"./routes": "./
|
|
13
|
+
"./routes": "./lib/routes/index.js"
|
|
14
14
|
},
|
|
15
15
|
"imports": {
|
|
16
16
|
"#src/*": "./build/*"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@silverhand/eslint-config": "
|
|
20
|
-
"@silverhand/jest-config": "
|
|
21
|
-
"@silverhand/ts-config": "
|
|
19
|
+
"@silverhand/eslint-config": "4.0.1",
|
|
20
|
+
"@silverhand/jest-config": "4.0.0",
|
|
21
|
+
"@silverhand/ts-config": "4.0.0",
|
|
22
22
|
"@types/accepts": "^1.3.5",
|
|
23
23
|
"@types/http-proxy": "^1.17.9",
|
|
24
24
|
"@types/jest": "^29.4.0",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"@types/node": "^18.11.18",
|
|
27
27
|
"@types/yargs": "^17.0.24",
|
|
28
28
|
"dts-bundle-generator": "^8.0.1",
|
|
29
|
-
"eslint": "^8.
|
|
29
|
+
"eslint": "^8.44.0",
|
|
30
30
|
"jest": "^29.5.0",
|
|
31
|
-
"lint-staged": "^
|
|
31
|
+
"lint-staged": "^14.0.0",
|
|
32
32
|
"nodemon": "^3.0.0",
|
|
33
|
-
"prettier": "^
|
|
33
|
+
"prettier": "^3.0.0",
|
|
34
34
|
"typescript": "^5.0.0"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@silverhand/essentials": "^2.
|
|
53
|
+
"@silverhand/essentials": "^2.8.2",
|
|
54
54
|
"@withtyped/server": "^0.12.7"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"precommit": "lint-staged",
|
|
58
|
-
"build": "rm -rf build/ && tsc -p tsconfig.build.json",
|
|
58
|
+
"build": "rm -rf build/ && tsc -p tsconfig.build.json && pnpm build:lib",
|
|
59
59
|
"//": "It is not used to build the service itself.",
|
|
60
|
-
"build:lib": "rm -rf
|
|
60
|
+
"build:lib": "rm -rf lib/ && dts-bundle-generator src/routes/index.ts --project tsconfig.build.json -o lib/routes/index.d.ts",
|
|
61
61
|
"build:test": "rm -rf build/ && tsc -p tsconfig.test.json --sourcemap",
|
|
62
62
|
"lint": "eslint --ext .ts src",
|
|
63
63
|
"lint:report": "pnpm lint --format json --output-file report.json",
|