@logto/cloud 0.2.5-cda36a9 → 0.2.5-d434baa
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 +99 -5
- package/package.json +2 -2
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, {
|
|
@@ -52,7 +52,32 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
52
52
|
indicator: string;
|
|
53
53
|
isSuspended: boolean;
|
|
54
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
|
+
};
|
|
55
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
|
+
}[];
|
|
56
81
|
}>;
|
|
57
82
|
};
|
|
58
83
|
get: {
|
|
@@ -62,7 +87,32 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
62
87
|
indicator: string;
|
|
63
88
|
isSuspended: boolean;
|
|
64
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
|
+
};
|
|
65
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
|
+
}[];
|
|
66
116
|
}[]>;
|
|
67
117
|
};
|
|
68
118
|
post: {
|
|
@@ -75,7 +125,32 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
75
125
|
indicator: string;
|
|
76
126
|
isSuspended: boolean;
|
|
77
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
|
+
};
|
|
78
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
|
+
}[];
|
|
79
154
|
}>;
|
|
80
155
|
};
|
|
81
156
|
put: {};
|
|
@@ -120,6 +195,10 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
120
195
|
planName: string | null;
|
|
121
196
|
}[];
|
|
122
197
|
}>;
|
|
198
|
+
} & {
|
|
199
|
+
"/tenants/:tenantId/invoices/:invoiceId/hosted-invoice-url": import("@withtyped/server").PathGuard<"/:tenantId/invoices/:invoiceId/hosted-invoice-url", unknown, unknown, {
|
|
200
|
+
hostedInvoiceUrl: string;
|
|
201
|
+
}>;
|
|
123
202
|
} & {
|
|
124
203
|
"/tenants/:tenantId/usage": import("@withtyped/server").PathGuard<"/:tenantId/usage", unknown, unknown, {
|
|
125
204
|
activeUsers: number;
|
|
@@ -153,13 +232,13 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
153
232
|
"/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
|
|
154
233
|
data: {
|
|
155
234
|
type: VerificationCodeType;
|
|
156
|
-
to: string;
|
|
157
235
|
payload: {
|
|
158
236
|
senderName?: string | undefined;
|
|
159
237
|
companyInformation?: string | undefined;
|
|
160
238
|
appLogo?: string | undefined;
|
|
161
239
|
code: string;
|
|
162
240
|
};
|
|
241
|
+
to: string;
|
|
163
242
|
};
|
|
164
243
|
}, unknown>;
|
|
165
244
|
} & {
|
|
@@ -168,9 +247,6 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
168
247
|
type: VerificationCodeType;
|
|
169
248
|
to: string;
|
|
170
249
|
payload: {
|
|
171
|
-
senderName?: string | undefined;
|
|
172
|
-
companyInformation?: string | undefined;
|
|
173
|
-
appLogo?: string | undefined;
|
|
174
250
|
code: string;
|
|
175
251
|
};
|
|
176
252
|
};
|
|
@@ -203,6 +279,7 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
203
279
|
scopesPerRoleLimit: number | null;
|
|
204
280
|
hooksLimit: number | null;
|
|
205
281
|
auditLogsRetentionDays: number | null;
|
|
282
|
+
mfaEnabled: boolean;
|
|
206
283
|
};
|
|
207
284
|
stripeProducts: {
|
|
208
285
|
description?: string | undefined;
|
|
@@ -224,6 +301,23 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
224
301
|
head: {};
|
|
225
302
|
delete: {};
|
|
226
303
|
copy: {};
|
|
304
|
+
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
305
|
+
options: {};
|
|
306
|
+
patch: {};
|
|
307
|
+
get: {
|
|
308
|
+
"/my/tenant": import("@withtyped/server").PathGuard<"/tenant", unknown, unknown, {
|
|
309
|
+
id: string;
|
|
310
|
+
name: string;
|
|
311
|
+
indicator: string;
|
|
312
|
+
isSuspended: boolean;
|
|
313
|
+
tag: TenantTag;
|
|
314
|
+
}>;
|
|
315
|
+
};
|
|
316
|
+
post: {};
|
|
317
|
+
put: {};
|
|
318
|
+
head: {};
|
|
319
|
+
delete: {};
|
|
320
|
+
copy: {};
|
|
227
321
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
228
322
|
options: {};
|
|
229
323
|
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-d434baa",
|
|
4
4
|
"description": "Logto Cloud service.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@silverhand/essentials": "^2.8.
|
|
53
|
+
"@silverhand/essentials": "^2.8.4",
|
|
54
54
|
"@withtyped/server": "^0.12.7"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|