@logto/cloud 0.2.5-93f5b5e → 0.2.5-c6ed487
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 +50 -44
- package/package.json +9 -9
package/lib/routes/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator
|
|
1
|
+
// Generated by dts-bundle-generator v9.0.0
|
|
2
2
|
|
|
3
3
|
import { RequestContext } from '@withtyped/server';
|
|
4
4
|
import { InferModelType } from '@withtyped/server/model';
|
|
@@ -9,29 +9,26 @@ 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
|
}
|
|
27
|
-
declare
|
|
20
|
+
declare enum TenantTag {
|
|
21
|
+
Development = "development",
|
|
22
|
+
Production = "production"
|
|
23
|
+
}
|
|
24
|
+
declare const AffiliateProperties: import("@withtyped/server/lib/model/index.js").default<"affiliate_properties", {
|
|
28
25
|
createdAt: Date;
|
|
29
26
|
affiliateId: string;
|
|
30
27
|
type: "hostname" | "query";
|
|
31
28
|
value: string;
|
|
32
29
|
}, "createdAt", "createdAt">;
|
|
33
30
|
export type AffiliateProperty = InferModelType<typeof AffiliateProperties>;
|
|
34
|
-
declare const Affiliates: import("@withtyped/server/model").default<"affiliates", {
|
|
31
|
+
declare const Affiliates: import("@withtyped/server/lib/model/index.js").default<"affiliates", {
|
|
35
32
|
id: string;
|
|
36
33
|
createdAt: Date;
|
|
37
34
|
name: string;
|
|
@@ -45,10 +42,14 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
45
42
|
patch: {
|
|
46
43
|
"/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, {
|
|
47
44
|
name?: string | undefined;
|
|
48
|
-
tag?: TenantTag | undefined;
|
|
49
45
|
}, {
|
|
50
46
|
id: string;
|
|
51
47
|
name: string;
|
|
48
|
+
usage: {
|
|
49
|
+
activeUsers: number;
|
|
50
|
+
cost: number;
|
|
51
|
+
tokenUsage: number;
|
|
52
|
+
};
|
|
52
53
|
indicator: string;
|
|
53
54
|
isSuspended: boolean;
|
|
54
55
|
planId: string;
|
|
@@ -59,10 +60,6 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
59
60
|
currentPeriodEnd: Date;
|
|
60
61
|
};
|
|
61
62
|
tag: TenantTag;
|
|
62
|
-
usage: {
|
|
63
|
-
activeUsers: number;
|
|
64
|
-
cost: number;
|
|
65
|
-
};
|
|
66
63
|
openInvoices: {
|
|
67
64
|
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
68
65
|
createdAt: Date;
|
|
@@ -84,6 +81,11 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
84
81
|
"/tenants": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
|
|
85
82
|
id: string;
|
|
86
83
|
name: string;
|
|
84
|
+
usage: {
|
|
85
|
+
activeUsers: number;
|
|
86
|
+
cost: number;
|
|
87
|
+
tokenUsage: number;
|
|
88
|
+
};
|
|
87
89
|
indicator: string;
|
|
88
90
|
isSuspended: boolean;
|
|
89
91
|
planId: string;
|
|
@@ -94,10 +96,6 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
94
96
|
currentPeriodEnd: Date;
|
|
95
97
|
};
|
|
96
98
|
tag: TenantTag;
|
|
97
|
-
usage: {
|
|
98
|
-
activeUsers: number;
|
|
99
|
-
cost: number;
|
|
100
|
-
};
|
|
101
99
|
openInvoices: {
|
|
102
100
|
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
103
101
|
createdAt: Date;
|
|
@@ -122,6 +120,11 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
122
120
|
}, {
|
|
123
121
|
id: string;
|
|
124
122
|
name: string;
|
|
123
|
+
usage: {
|
|
124
|
+
activeUsers: number;
|
|
125
|
+
cost: number;
|
|
126
|
+
tokenUsage: number;
|
|
127
|
+
};
|
|
125
128
|
indicator: string;
|
|
126
129
|
isSuspended: boolean;
|
|
127
130
|
planId: string;
|
|
@@ -132,10 +135,6 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
132
135
|
currentPeriodEnd: Date;
|
|
133
136
|
};
|
|
134
137
|
tag: TenantTag;
|
|
135
|
-
usage: {
|
|
136
|
-
activeUsers: number;
|
|
137
|
-
cost: number;
|
|
138
|
-
};
|
|
139
138
|
openInvoices: {
|
|
140
139
|
status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
|
|
141
140
|
createdAt: Date;
|
|
@@ -154,11 +153,11 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
154
153
|
}>;
|
|
155
154
|
};
|
|
156
155
|
put: {};
|
|
157
|
-
head: {};
|
|
158
156
|
delete: {
|
|
159
157
|
"/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, unknown, unknown>;
|
|
160
158
|
};
|
|
161
159
|
copy: {};
|
|
160
|
+
head: {};
|
|
162
161
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
163
162
|
options: {};
|
|
164
163
|
patch: {};
|
|
@@ -196,11 +195,14 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
196
195
|
}[];
|
|
197
196
|
}>;
|
|
198
197
|
} & {
|
|
199
|
-
"/tenants/:tenantId/invoices/:invoiceId/hosted-invoice-url": import("@withtyped/server").PathGuard<"/:tenantId/invoices/:invoiceId/hosted-invoice-url", unknown, unknown,
|
|
198
|
+
"/tenants/:tenantId/invoices/:invoiceId/hosted-invoice-url": import("@withtyped/server").PathGuard<"/:tenantId/invoices/:invoiceId/hosted-invoice-url", unknown, unknown, {
|
|
199
|
+
hostedInvoiceUrl: string;
|
|
200
|
+
}>;
|
|
200
201
|
} & {
|
|
201
202
|
"/tenants/:tenantId/usage": import("@withtyped/server").PathGuard<"/:tenantId/usage", unknown, unknown, {
|
|
202
203
|
activeUsers: number;
|
|
203
204
|
cost: number;
|
|
205
|
+
tokenUsage: number;
|
|
204
206
|
}>;
|
|
205
207
|
};
|
|
206
208
|
post: {
|
|
@@ -211,11 +213,11 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
211
213
|
}>;
|
|
212
214
|
};
|
|
213
215
|
put: {};
|
|
214
|
-
head: {};
|
|
215
216
|
delete: {
|
|
216
217
|
"/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, unknown>;
|
|
217
218
|
};
|
|
218
219
|
copy: {};
|
|
220
|
+
head: {};
|
|
219
221
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
220
222
|
options: {};
|
|
221
223
|
patch: {};
|
|
@@ -231,10 +233,10 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
231
233
|
data: {
|
|
232
234
|
type: VerificationCodeType;
|
|
233
235
|
payload: {
|
|
236
|
+
code: string;
|
|
234
237
|
senderName?: string | undefined;
|
|
235
238
|
companyInformation?: string | undefined;
|
|
236
239
|
appLogo?: string | undefined;
|
|
237
|
-
code: string;
|
|
238
240
|
};
|
|
239
241
|
to: string;
|
|
240
242
|
};
|
|
@@ -251,9 +253,9 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
251
253
|
}, unknown>;
|
|
252
254
|
};
|
|
253
255
|
put: {};
|
|
254
|
-
head: {};
|
|
255
256
|
delete: {};
|
|
256
257
|
copy: {};
|
|
258
|
+
head: {};
|
|
257
259
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
258
260
|
options: {};
|
|
259
261
|
patch: {};
|
|
@@ -264,6 +266,7 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
264
266
|
name: string;
|
|
265
267
|
quota: {
|
|
266
268
|
mauLimit: number | null;
|
|
269
|
+
tokenLimit: number | null;
|
|
267
270
|
applicationsLimit: number | null;
|
|
268
271
|
machineToMachineLimit: number | null;
|
|
269
272
|
resourcesLimit: number | null;
|
|
@@ -274,38 +277,41 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
274
277
|
socialConnectorsLimit: number | null;
|
|
275
278
|
standardConnectorsLimit: number | null;
|
|
276
279
|
rolesLimit: number | null;
|
|
280
|
+
machineToMachineRolesLimit: number | null;
|
|
277
281
|
scopesPerRoleLimit: number | null;
|
|
278
282
|
hooksLimit: number | null;
|
|
279
283
|
auditLogsRetentionDays: number | null;
|
|
280
284
|
mfaEnabled: boolean;
|
|
285
|
+
organizationsEnabled: boolean;
|
|
286
|
+
ssoEnabled: boolean;
|
|
281
287
|
};
|
|
282
288
|
stripeProducts: {
|
|
283
|
-
description?: string | undefined;
|
|
284
289
|
type: "flat" | "tier1" | "tier2" | "tier3";
|
|
285
290
|
id: string;
|
|
286
291
|
name: string;
|
|
287
292
|
price: {
|
|
288
|
-
quantity?: 1 | undefined;
|
|
289
|
-
unitAmount?: number | null | undefined;
|
|
290
293
|
id: string;
|
|
291
294
|
unitAmountDecimal: string;
|
|
295
|
+
quantity?: 1 | undefined;
|
|
296
|
+
unitAmount?: number | null | undefined;
|
|
292
297
|
};
|
|
298
|
+
description?: string | undefined;
|
|
293
299
|
}[];
|
|
294
300
|
updatedAt: Date;
|
|
295
301
|
}[]>;
|
|
296
302
|
};
|
|
297
303
|
post: {};
|
|
298
304
|
put: {};
|
|
299
|
-
head: {};
|
|
300
305
|
delete: {};
|
|
301
306
|
copy: {};
|
|
307
|
+
head: {};
|
|
302
308
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
303
309
|
options: {};
|
|
304
310
|
patch: {};
|
|
305
311
|
get: {
|
|
306
312
|
"/my/tenant": import("@withtyped/server").PathGuard<"/tenant", unknown, unknown, {
|
|
307
|
-
id: string;
|
|
308
313
|
name: string;
|
|
314
|
+
id: string;
|
|
309
315
|
indicator: string;
|
|
310
316
|
isSuspended: boolean;
|
|
311
317
|
tag: TenantTag;
|
|
@@ -313,9 +319,9 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
313
319
|
};
|
|
314
320
|
post: {};
|
|
315
321
|
put: {};
|
|
316
|
-
head: {};
|
|
317
322
|
delete: {};
|
|
318
323
|
copy: {};
|
|
324
|
+
head: {};
|
|
319
325
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
320
326
|
options: {};
|
|
321
327
|
patch: {};
|
|
@@ -332,21 +338,21 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
332
338
|
};
|
|
333
339
|
post: {
|
|
334
340
|
"/checkout-session": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
341
|
+
planId: string;
|
|
342
|
+
successCallbackUrl: string;
|
|
335
343
|
tenantId?: string | undefined;
|
|
344
|
+
cancelCallbackUrl?: string | undefined;
|
|
336
345
|
tenantTag?: TenantTag | undefined;
|
|
337
346
|
tenantName?: string | undefined;
|
|
338
|
-
cancelCallbackUrl?: string | undefined;
|
|
339
|
-
planId: string;
|
|
340
|
-
successCallbackUrl: string;
|
|
341
347
|
}, {
|
|
342
|
-
redirectUri?: string | null | undefined;
|
|
343
348
|
sessionId: string;
|
|
349
|
+
redirectUri?: string | null | undefined;
|
|
344
350
|
}>;
|
|
345
351
|
};
|
|
346
352
|
put: {};
|
|
347
|
-
head: {};
|
|
348
353
|
delete: {};
|
|
349
354
|
copy: {};
|
|
355
|
+
head: {};
|
|
350
356
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
351
357
|
options: {};
|
|
352
358
|
patch: {};
|
|
@@ -373,7 +379,6 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
373
379
|
}>;
|
|
374
380
|
};
|
|
375
381
|
put: {};
|
|
376
|
-
head: {};
|
|
377
382
|
delete: {
|
|
378
383
|
"/affiliates/:id/properties": import("@withtyped/server").PathGuard<"/:id/properties", unknown, {
|
|
379
384
|
value: string;
|
|
@@ -381,32 +386,33 @@ declare const router: import("@withtyped/server").Router<WithAuthContext, import
|
|
|
381
386
|
}, unknown>;
|
|
382
387
|
};
|
|
383
388
|
copy: {};
|
|
389
|
+
head: {};
|
|
384
390
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
385
391
|
options: {};
|
|
386
392
|
patch: {};
|
|
387
393
|
get: {};
|
|
388
394
|
post: {
|
|
389
395
|
"/affiliate-logs": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
390
|
-
hostname?: string | undefined;
|
|
391
|
-
query?: string | undefined;
|
|
392
396
|
createdAt: string;
|
|
393
397
|
userId: string;
|
|
398
|
+
hostname?: string | undefined;
|
|
399
|
+
query?: string | undefined;
|
|
394
400
|
}, {
|
|
395
401
|
createdAt: Date;
|
|
396
402
|
id: string;
|
|
397
403
|
affiliateId: string | null;
|
|
398
404
|
userId: string;
|
|
399
405
|
createdVia: {
|
|
406
|
+
createdAt: string;
|
|
400
407
|
hostname?: string | undefined;
|
|
401
408
|
query?: string | undefined;
|
|
402
|
-
createdAt: string;
|
|
403
409
|
};
|
|
404
410
|
}>;
|
|
405
411
|
};
|
|
406
412
|
put: {};
|
|
407
|
-
head: {};
|
|
408
413
|
delete: {};
|
|
409
414
|
copy: {};
|
|
415
|
+
head: {};
|
|
410
416
|
}, "/api">>, "/api">;
|
|
411
417
|
|
|
412
418
|
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-c6ed487",
|
|
4
4
|
"description": "Logto Cloud service.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
@@ -16,25 +16,25 @@
|
|
|
16
16
|
"#src/*": "./build/*"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@silverhand/eslint-config": "
|
|
19
|
+
"@silverhand/eslint-config": "5.0.0",
|
|
20
20
|
"@silverhand/jest-config": "4.0.0",
|
|
21
|
-
"@silverhand/ts-config": "
|
|
21
|
+
"@silverhand/ts-config": "5.0.0",
|
|
22
22
|
"@types/accepts": "^1.3.5",
|
|
23
23
|
"@types/http-proxy": "^1.17.9",
|
|
24
24
|
"@types/jest": "^29.4.0",
|
|
25
25
|
"@types/mime-types": "^2.1.1",
|
|
26
26
|
"@types/node": "^18.11.18",
|
|
27
27
|
"@types/yargs": "^17.0.24",
|
|
28
|
-
"dts-bundle-generator": "^
|
|
28
|
+
"dts-bundle-generator": "^9.0.0",
|
|
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
|
-
"typescript": "^5.
|
|
34
|
+
"typescript": "^5.3.3"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
|
-
"node": "^
|
|
37
|
+
"node": "^20.9.0"
|
|
38
38
|
},
|
|
39
39
|
"eslintConfig": {
|
|
40
40
|
"extends": "@silverhand",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@silverhand/essentials": "^2.8.
|
|
53
|
+
"@silverhand/essentials": "^2.8.6",
|
|
54
54
|
"@withtyped/server": "^0.12.7"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"precommit": "lint-staged",
|
|
58
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 lib/ && dts-bundle-generator src/routes/index.ts --project tsconfig.build.json -o lib/routes/index.d.ts",
|
|
60
|
+
"build:lib": "rm -rf lib/ && dts-bundle-generator src/routes/index.ts --project tsconfig.build.lib.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",
|