@logto/cloud 0.2.5-33a6965 → 0.2.5-444ed49
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/lib/routes/index.d.ts +98 -5
- package/package.json +8 -8
package/lib/routes/index.d.ts
CHANGED
|
@@ -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").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,8 +50,34 @@ 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;
|
|
55
|
+
subscription: {
|
|
56
|
+
status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
|
|
57
|
+
planId: string;
|
|
58
|
+
currentPeriodStart: Date;
|
|
59
|
+
currentPeriodEnd: Date;
|
|
60
|
+
};
|
|
54
61
|
tag: TenantTag;
|
|
62
|
+
usage: {
|
|
63
|
+
activeUsers: number;
|
|
64
|
+
cost: number;
|
|
65
|
+
};
|
|
66
|
+
openInvoices: {
|
|
67
|
+
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
68
|
+
createdAt: Date;
|
|
69
|
+
id: string;
|
|
70
|
+
updatedAt: Date;
|
|
71
|
+
customerId: string | null;
|
|
72
|
+
billingReason: string | null;
|
|
73
|
+
periodStart: Date;
|
|
74
|
+
periodEnd: Date;
|
|
75
|
+
amountDue: number;
|
|
76
|
+
amountPaid: number;
|
|
77
|
+
subscriptionId: string | null;
|
|
78
|
+
hostedInvoiceUrl: string | null;
|
|
79
|
+
invoicePdf: string | null;
|
|
80
|
+
}[];
|
|
55
81
|
}>;
|
|
56
82
|
};
|
|
57
83
|
get: {
|
|
@@ -59,8 +85,34 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
59
85
|
id: string;
|
|
60
86
|
name: string;
|
|
61
87
|
indicator: string;
|
|
88
|
+
isSuspended: boolean;
|
|
62
89
|
planId: string;
|
|
90
|
+
subscription: {
|
|
91
|
+
status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
|
|
92
|
+
planId: string;
|
|
93
|
+
currentPeriodStart: Date;
|
|
94
|
+
currentPeriodEnd: Date;
|
|
95
|
+
};
|
|
63
96
|
tag: TenantTag;
|
|
97
|
+
usage: {
|
|
98
|
+
activeUsers: number;
|
|
99
|
+
cost: number;
|
|
100
|
+
};
|
|
101
|
+
openInvoices: {
|
|
102
|
+
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
103
|
+
createdAt: Date;
|
|
104
|
+
id: string;
|
|
105
|
+
updatedAt: Date;
|
|
106
|
+
customerId: string | null;
|
|
107
|
+
billingReason: string | null;
|
|
108
|
+
periodStart: Date;
|
|
109
|
+
periodEnd: Date;
|
|
110
|
+
amountDue: number;
|
|
111
|
+
amountPaid: number;
|
|
112
|
+
subscriptionId: string | null;
|
|
113
|
+
hostedInvoiceUrl: string | null;
|
|
114
|
+
invoicePdf: string | null;
|
|
115
|
+
}[];
|
|
64
116
|
}[]>;
|
|
65
117
|
};
|
|
66
118
|
post: {
|
|
@@ -71,8 +123,34 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
71
123
|
id: string;
|
|
72
124
|
name: string;
|
|
73
125
|
indicator: string;
|
|
126
|
+
isSuspended: boolean;
|
|
74
127
|
planId: string;
|
|
128
|
+
subscription: {
|
|
129
|
+
status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
|
|
130
|
+
planId: string;
|
|
131
|
+
currentPeriodStart: Date;
|
|
132
|
+
currentPeriodEnd: Date;
|
|
133
|
+
};
|
|
75
134
|
tag: TenantTag;
|
|
135
|
+
usage: {
|
|
136
|
+
activeUsers: number;
|
|
137
|
+
cost: number;
|
|
138
|
+
};
|
|
139
|
+
openInvoices: {
|
|
140
|
+
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
141
|
+
createdAt: Date;
|
|
142
|
+
id: string;
|
|
143
|
+
updatedAt: Date;
|
|
144
|
+
customerId: string | null;
|
|
145
|
+
billingReason: string | null;
|
|
146
|
+
periodStart: Date;
|
|
147
|
+
periodEnd: Date;
|
|
148
|
+
amountDue: number;
|
|
149
|
+
amountPaid: number;
|
|
150
|
+
subscriptionId: string | null;
|
|
151
|
+
hostedInvoiceUrl: string | null;
|
|
152
|
+
invoicePdf: string | null;
|
|
153
|
+
}[];
|
|
76
154
|
}>;
|
|
77
155
|
};
|
|
78
156
|
put: {};
|
|
@@ -150,13 +228,13 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
150
228
|
"/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
|
|
151
229
|
data: {
|
|
152
230
|
type: VerificationCodeType;
|
|
153
|
-
to: string;
|
|
154
231
|
payload: {
|
|
155
232
|
senderName?: string | undefined;
|
|
156
233
|
companyInformation?: string | undefined;
|
|
157
234
|
appLogo?: string | undefined;
|
|
158
235
|
code: string;
|
|
159
236
|
};
|
|
237
|
+
to: string;
|
|
160
238
|
};
|
|
161
239
|
}, unknown>;
|
|
162
240
|
} & {
|
|
@@ -165,9 +243,6 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
165
243
|
type: VerificationCodeType;
|
|
166
244
|
to: string;
|
|
167
245
|
payload: {
|
|
168
|
-
senderName?: string | undefined;
|
|
169
|
-
companyInformation?: string | undefined;
|
|
170
|
-
appLogo?: string | undefined;
|
|
171
246
|
code: string;
|
|
172
247
|
};
|
|
173
248
|
};
|
|
@@ -200,6 +275,7 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
200
275
|
scopesPerRoleLimit: number | null;
|
|
201
276
|
hooksLimit: number | null;
|
|
202
277
|
auditLogsRetentionDays: number | null;
|
|
278
|
+
mfaEnabled: boolean;
|
|
203
279
|
};
|
|
204
280
|
stripeProducts: {
|
|
205
281
|
description?: string | undefined;
|
|
@@ -221,6 +297,23 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
221
297
|
head: {};
|
|
222
298
|
delete: {};
|
|
223
299
|
copy: {};
|
|
300
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
301
|
+
options: {};
|
|
302
|
+
patch: {};
|
|
303
|
+
get: {
|
|
304
|
+
"/my/tenant": import("@withtyped/server").PathGuard<"/tenant", unknown, unknown, {
|
|
305
|
+
name: string;
|
|
306
|
+
id: string;
|
|
307
|
+
indicator: string;
|
|
308
|
+
isSuspended: boolean;
|
|
309
|
+
tag: TenantTag;
|
|
310
|
+
}>;
|
|
311
|
+
};
|
|
312
|
+
post: {};
|
|
313
|
+
put: {};
|
|
314
|
+
head: {};
|
|
315
|
+
delete: {};
|
|
316
|
+
copy: {};
|
|
224
317
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
225
318
|
options: {};
|
|
226
319
|
patch: {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logto/cloud",
|
|
3
|
-
"version": "0.2.5-
|
|
3
|
+
"version": "0.2.5-444ed49",
|
|
4
4
|
"description": "Logto Cloud service.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
@@ -16,9 +16,9 @@
|
|
|
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,7 +50,7 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@silverhand/essentials": "^2.
|
|
53
|
+
"@silverhand/essentials": "^2.8.4",
|
|
54
54
|
"@withtyped/server": "^0.12.7"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|