@logto/cloud 0.2.5-71b7fea → 0.2.5-9257c0d
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 +31 -31
- package/package.json +3 -3
package/lib/routes/index.d.ts
CHANGED
|
@@ -9,21 +9,19 @@ export type WithAuthContext<Context = RequestContext> = Context & {
|
|
|
9
9
|
scopes: string[];
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
declare enum TenantTag {
|
|
13
|
-
Development = "development",
|
|
14
|
-
Staging = "staging",
|
|
15
|
-
Production = "production"
|
|
16
|
-
}
|
|
17
12
|
declare enum VerificationCodeType {
|
|
18
13
|
SignIn = "SignIn",
|
|
19
14
|
Register = "Register",
|
|
20
15
|
ForgotPassword = "ForgotPassword",
|
|
21
|
-
/** @deprecated */
|
|
22
|
-
Continue = "Continue",
|
|
23
16
|
Generic = "Generic",
|
|
24
17
|
/** @deprecated Use `Generic` type template for sending test sms/email use case */
|
|
25
18
|
Test = "Test"
|
|
26
19
|
}
|
|
20
|
+
declare enum TenantTag {
|
|
21
|
+
Development = "development",
|
|
22
|
+
Staging = "staging",
|
|
23
|
+
Production = "production"
|
|
24
|
+
}
|
|
27
25
|
declare const AffiliateProperties: import("@withtyped/server/model").default<"affiliate_properties", {
|
|
28
26
|
createdAt: Date;
|
|
29
27
|
affiliateId: string;
|
|
@@ -45,7 +43,6 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
45
43
|
patch: {
|
|
46
44
|
"/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, {
|
|
47
45
|
name?: string | undefined;
|
|
48
|
-
tag?: TenantTag | undefined;
|
|
49
46
|
}, {
|
|
50
47
|
id: string;
|
|
51
48
|
name: string;
|
|
@@ -154,11 +151,11 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
154
151
|
}>;
|
|
155
152
|
};
|
|
156
153
|
put: {};
|
|
157
|
-
head: {};
|
|
158
154
|
delete: {
|
|
159
155
|
"/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, unknown, unknown>;
|
|
160
156
|
};
|
|
161
157
|
copy: {};
|
|
158
|
+
head: {};
|
|
162
159
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
163
160
|
options: {};
|
|
164
161
|
patch: {};
|
|
@@ -195,6 +192,10 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
195
192
|
planName: string | null;
|
|
196
193
|
}[];
|
|
197
194
|
}>;
|
|
195
|
+
} & {
|
|
196
|
+
"/tenants/:tenantId/invoices/:invoiceId/hosted-invoice-url": import("@withtyped/server").PathGuard<"/:tenantId/invoices/:invoiceId/hosted-invoice-url", unknown, unknown, {
|
|
197
|
+
hostedInvoiceUrl: string;
|
|
198
|
+
}>;
|
|
198
199
|
} & {
|
|
199
200
|
"/tenants/:tenantId/usage": import("@withtyped/server").PathGuard<"/:tenantId/usage", unknown, unknown, {
|
|
200
201
|
activeUsers: number;
|
|
@@ -209,11 +210,11 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
209
210
|
}>;
|
|
210
211
|
};
|
|
211
212
|
put: {};
|
|
212
|
-
head: {};
|
|
213
213
|
delete: {
|
|
214
214
|
"/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, unknown>;
|
|
215
215
|
};
|
|
216
216
|
copy: {};
|
|
217
|
+
head: {};
|
|
217
218
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
218
219
|
options: {};
|
|
219
220
|
patch: {};
|
|
@@ -228,13 +229,13 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
228
229
|
"/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
|
|
229
230
|
data: {
|
|
230
231
|
type: VerificationCodeType;
|
|
231
|
-
to: string;
|
|
232
232
|
payload: {
|
|
233
|
+
code: string;
|
|
233
234
|
senderName?: string | undefined;
|
|
234
235
|
companyInformation?: string | undefined;
|
|
235
236
|
appLogo?: string | undefined;
|
|
236
|
-
code: string;
|
|
237
237
|
};
|
|
238
|
+
to: string;
|
|
238
239
|
};
|
|
239
240
|
}, unknown>;
|
|
240
241
|
} & {
|
|
@@ -243,18 +244,15 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
243
244
|
type: VerificationCodeType;
|
|
244
245
|
to: string;
|
|
245
246
|
payload: {
|
|
246
|
-
senderName?: string | undefined;
|
|
247
|
-
companyInformation?: string | undefined;
|
|
248
|
-
appLogo?: string | undefined;
|
|
249
247
|
code: string;
|
|
250
248
|
};
|
|
251
249
|
};
|
|
252
250
|
}, unknown>;
|
|
253
251
|
};
|
|
254
252
|
put: {};
|
|
255
|
-
head: {};
|
|
256
253
|
delete: {};
|
|
257
254
|
copy: {};
|
|
255
|
+
head: {};
|
|
258
256
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
259
257
|
options: {};
|
|
260
258
|
patch: {};
|
|
@@ -278,27 +276,29 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
278
276
|
scopesPerRoleLimit: number | null;
|
|
279
277
|
hooksLimit: number | null;
|
|
280
278
|
auditLogsRetentionDays: number | null;
|
|
279
|
+
mfaEnabled: boolean;
|
|
280
|
+
organizationsEnabled: boolean;
|
|
281
281
|
};
|
|
282
282
|
stripeProducts: {
|
|
283
|
-
description?: string | undefined;
|
|
284
283
|
type: "flat" | "tier1" | "tier2" | "tier3";
|
|
285
284
|
id: string;
|
|
286
285
|
name: string;
|
|
287
286
|
price: {
|
|
288
|
-
quantity?: 1 | undefined;
|
|
289
|
-
unitAmount?: number | null | undefined;
|
|
290
287
|
id: string;
|
|
291
288
|
unitAmountDecimal: string;
|
|
289
|
+
quantity?: 1 | undefined;
|
|
290
|
+
unitAmount?: number | null | undefined;
|
|
292
291
|
};
|
|
292
|
+
description?: string | undefined;
|
|
293
293
|
}[];
|
|
294
294
|
updatedAt: Date;
|
|
295
295
|
}[]>;
|
|
296
296
|
};
|
|
297
297
|
post: {};
|
|
298
298
|
put: {};
|
|
299
|
-
head: {};
|
|
300
299
|
delete: {};
|
|
301
300
|
copy: {};
|
|
301
|
+
head: {};
|
|
302
302
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
303
303
|
options: {};
|
|
304
304
|
patch: {};
|
|
@@ -313,9 +313,9 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
313
313
|
};
|
|
314
314
|
post: {};
|
|
315
315
|
put: {};
|
|
316
|
-
head: {};
|
|
317
316
|
delete: {};
|
|
318
317
|
copy: {};
|
|
318
|
+
head: {};
|
|
319
319
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
320
320
|
options: {};
|
|
321
321
|
patch: {};
|
|
@@ -332,21 +332,21 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
332
332
|
};
|
|
333
333
|
post: {
|
|
334
334
|
"/checkout-session": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
335
|
+
planId: string;
|
|
336
|
+
successCallbackUrl: string;
|
|
335
337
|
tenantId?: string | undefined;
|
|
338
|
+
cancelCallbackUrl?: string | undefined;
|
|
336
339
|
tenantTag?: TenantTag | undefined;
|
|
337
340
|
tenantName?: string | undefined;
|
|
338
|
-
cancelCallbackUrl?: string | undefined;
|
|
339
|
-
planId: string;
|
|
340
|
-
successCallbackUrl: string;
|
|
341
341
|
}, {
|
|
342
|
-
redirectUri?: string | null | undefined;
|
|
343
342
|
sessionId: string;
|
|
343
|
+
redirectUri?: string | null | undefined;
|
|
344
344
|
}>;
|
|
345
345
|
};
|
|
346
346
|
put: {};
|
|
347
|
-
head: {};
|
|
348
347
|
delete: {};
|
|
349
348
|
copy: {};
|
|
349
|
+
head: {};
|
|
350
350
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
351
351
|
options: {};
|
|
352
352
|
patch: {};
|
|
@@ -373,7 +373,6 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
373
373
|
}>;
|
|
374
374
|
};
|
|
375
375
|
put: {};
|
|
376
|
-
head: {};
|
|
377
376
|
delete: {
|
|
378
377
|
"/affiliates/:id/properties": import("@withtyped/server").PathGuard<"/:id/properties", unknown, {
|
|
379
378
|
value: string;
|
|
@@ -381,32 +380,33 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
381
380
|
}, unknown>;
|
|
382
381
|
};
|
|
383
382
|
copy: {};
|
|
383
|
+
head: {};
|
|
384
384
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
385
385
|
options: {};
|
|
386
386
|
patch: {};
|
|
387
387
|
get: {};
|
|
388
388
|
post: {
|
|
389
389
|
"/affiliate-logs": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
390
|
-
hostname?: string | undefined;
|
|
391
|
-
query?: string | undefined;
|
|
392
390
|
createdAt: string;
|
|
393
391
|
userId: string;
|
|
392
|
+
hostname?: string | undefined;
|
|
393
|
+
query?: string | undefined;
|
|
394
394
|
}, {
|
|
395
395
|
createdAt: Date;
|
|
396
396
|
id: string;
|
|
397
397
|
affiliateId: string | null;
|
|
398
398
|
userId: string;
|
|
399
399
|
createdVia: {
|
|
400
|
+
createdAt: string;
|
|
400
401
|
hostname?: string | undefined;
|
|
401
402
|
query?: string | undefined;
|
|
402
|
-
createdAt: string;
|
|
403
403
|
};
|
|
404
404
|
}>;
|
|
405
405
|
};
|
|
406
406
|
put: {};
|
|
407
|
-
head: {};
|
|
408
407
|
delete: {};
|
|
409
408
|
copy: {};
|
|
409
|
+
head: {};
|
|
410
410
|
}, "/api">>, "/api">;
|
|
411
411
|
|
|
412
412
|
export {
|
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-9257c0d",
|
|
4
4
|
"description": "Logto Cloud service.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dts-bundle-generator": "^8.0.1",
|
|
29
29
|
"eslint": "^8.44.0",
|
|
30
30
|
"jest": "^29.5.0",
|
|
31
|
-
"lint-staged": "^
|
|
31
|
+
"lint-staged": "^15.0.0",
|
|
32
32
|
"nodemon": "^3.0.0",
|
|
33
33
|
"prettier": "^3.0.0",
|
|
34
34
|
"typescript": "^5.0.0"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@silverhand/essentials": "^2.8.
|
|
53
|
+
"@silverhand/essentials": "^2.8.5",
|
|
54
54
|
"@withtyped/server": "^0.12.7"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|