@logto/cloud 0.2.5-aac51e9 → 0.2.5-adb5eaf
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 +201 -95
- package/package.json +5 -4
package/lib/routes/index.d.ts
CHANGED
|
@@ -3,23 +3,27 @@
|
|
|
3
3
|
import { Json, JsonObject, RequestContext } from '@withtyped/server';
|
|
4
4
|
import { InferModelType } from '@withtyped/server/model';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
6
|
+
declare const availableReportableUsageKeys: readonly [
|
|
7
|
+
"tokenLimit",
|
|
8
|
+
"machineToMachineLimit",
|
|
9
|
+
"resourcesLimit",
|
|
10
|
+
"enterpriseSsoLimit",
|
|
11
|
+
"hooksLimit",
|
|
12
|
+
"tenantMembersLimit",
|
|
13
|
+
"mfaEnabled",
|
|
14
|
+
"organizationsEnabled",
|
|
15
|
+
"organizationsLimit",
|
|
16
|
+
"securityFeaturesEnabled",
|
|
17
|
+
"userRolesLimit",
|
|
18
|
+
"machineToMachineRolesLimit",
|
|
19
|
+
"thirdPartyApplicationsLimit",
|
|
20
|
+
"samlApplicationsLimit"
|
|
21
|
+
];
|
|
22
|
+
export type ReportableUsageKey = (typeof availableReportableUsageKeys)[number];
|
|
23
|
+
export type RealtimeReportableUsageKey = Exclude<ReportableUsageKey, "tokenLimit">;
|
|
24
|
+
declare enum LogtoSkuType {
|
|
25
|
+
Basic = "Basic",
|
|
26
|
+
AddOn = "AddOn"
|
|
23
27
|
}
|
|
24
28
|
declare enum TemplateType {
|
|
25
29
|
/** The template for sending verification code when user is signing in. */
|
|
@@ -35,7 +39,11 @@ declare enum TemplateType {
|
|
|
35
39
|
/** The template for validating user permission for sensitive operations. */
|
|
36
40
|
UserPermissionValidation = "UserPermissionValidation",
|
|
37
41
|
/** The template for binding a new identifier to an existing account. */
|
|
38
|
-
BindNewIdentifier = "BindNewIdentifier"
|
|
42
|
+
BindNewIdentifier = "BindNewIdentifier",
|
|
43
|
+
/** The template for sending MFA verification code. */
|
|
44
|
+
MfaVerification = "MfaVerification",
|
|
45
|
+
/** The template for binding MFA verification. */
|
|
46
|
+
BindMfa = "BindMfa"
|
|
39
47
|
}
|
|
40
48
|
declare enum OrganizationInvitationStatus {
|
|
41
49
|
Pending = "Pending",
|
|
@@ -75,23 +83,6 @@ declare enum TenantRole {
|
|
|
75
83
|
/** Collaborator of the tenant, who has permissions to operate the tenant data, but not the tenant settings. */
|
|
76
84
|
Collaborator = "collaborator"
|
|
77
85
|
}
|
|
78
|
-
declare const availableReportableUsageKeys: readonly [
|
|
79
|
-
"tokenLimit",
|
|
80
|
-
"machineToMachineLimit",
|
|
81
|
-
"resourcesLimit",
|
|
82
|
-
"enterpriseSsoLimit",
|
|
83
|
-
"hooksLimit",
|
|
84
|
-
"tenantMembersLimit",
|
|
85
|
-
"mfaEnabled",
|
|
86
|
-
"organizationsEnabled",
|
|
87
|
-
"organizationsLimit"
|
|
88
|
-
];
|
|
89
|
-
export type ReportableUsageKey = (typeof availableReportableUsageKeys)[number];
|
|
90
|
-
export type RealtimeReportableUsageKey = Exclude<ReportableUsageKey, "tokenLimit">;
|
|
91
|
-
declare enum LogtoSkuType {
|
|
92
|
-
Basic = "Basic",
|
|
93
|
-
AddOn = "AddOn"
|
|
94
|
-
}
|
|
95
86
|
declare const AffiliateProperties: import("@withtyped/server/lib/model/index.js").default<"affiliate_properties", {
|
|
96
87
|
createdAt: Date;
|
|
97
88
|
affiliateId: string;
|
|
@@ -105,11 +96,47 @@ declare const Affiliates: import("@withtyped/server/lib/model/index.js").default
|
|
|
105
96
|
id: string;
|
|
106
97
|
}, "id" | "createdAt", "id" | "createdAt">;
|
|
107
98
|
export type Affiliate = InferModelType<typeof Affiliates>;
|
|
108
|
-
declare
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
99
|
+
declare const publicRegionNames: readonly [
|
|
100
|
+
"EU",
|
|
101
|
+
"US",
|
|
102
|
+
"AU",
|
|
103
|
+
"JP"
|
|
104
|
+
];
|
|
105
|
+
/** The type of region names for the public cloud. */
|
|
106
|
+
export type PublicRegionName = (typeof publicRegionNames)[number];
|
|
107
|
+
/**
|
|
108
|
+
* Data structure representing a Logto Cloud region.
|
|
109
|
+
*/
|
|
110
|
+
export type Region = {
|
|
111
|
+
/**
|
|
112
|
+
* The unique identifier for the region.
|
|
113
|
+
*/
|
|
114
|
+
id: string;
|
|
115
|
+
/**
|
|
116
|
+
* A human-readable name for the region.
|
|
117
|
+
*/
|
|
118
|
+
name: string;
|
|
119
|
+
/**
|
|
120
|
+
* The country where the region is located.
|
|
121
|
+
*/
|
|
122
|
+
country: string;
|
|
123
|
+
/**
|
|
124
|
+
* Indicates whether the region is private.
|
|
125
|
+
*/
|
|
126
|
+
isPrivate: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Tenant tags available for selection when creating tenants in this region.
|
|
129
|
+
*/
|
|
130
|
+
tags: TenantTag[];
|
|
131
|
+
};
|
|
132
|
+
export type WithAuthContext<Context = RequestContext> = Context & {
|
|
133
|
+
auth: {
|
|
134
|
+
/** The ID of the authenticated subject (`sub`). */
|
|
135
|
+
id: string;
|
|
136
|
+
/** The scopes that the subject has (`scope`). */
|
|
137
|
+
scopes: string[];
|
|
138
|
+
};
|
|
139
|
+
};
|
|
113
140
|
export type AffiliateData = Affiliate & {
|
|
114
141
|
properties: Array<Pick<AffiliateProperty, "type" | "value">>;
|
|
115
142
|
};
|
|
@@ -165,7 +192,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
165
192
|
totalExcludingTax: number | null;
|
|
166
193
|
} | null | undefined;
|
|
167
194
|
};
|
|
168
|
-
regionName:
|
|
195
|
+
regionName: string;
|
|
169
196
|
tag: TenantTag;
|
|
170
197
|
openInvoices: {
|
|
171
198
|
id: string;
|
|
@@ -216,7 +243,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
216
243
|
totalExcludingTax: number | null;
|
|
217
244
|
} | null | undefined;
|
|
218
245
|
};
|
|
219
|
-
regionName:
|
|
246
|
+
regionName: string;
|
|
220
247
|
tag: TenantTag;
|
|
221
248
|
openInvoices: {
|
|
222
249
|
id: string;
|
|
@@ -238,9 +265,10 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
238
265
|
};
|
|
239
266
|
post: {
|
|
240
267
|
"/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
268
|
+
id?: string | undefined;
|
|
241
269
|
name?: string | undefined;
|
|
242
270
|
tag?: TenantTag | undefined;
|
|
243
|
-
regionName?:
|
|
271
|
+
regionName?: string | undefined;
|
|
244
272
|
}, {
|
|
245
273
|
id: string;
|
|
246
274
|
name: string;
|
|
@@ -270,7 +298,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
270
298
|
totalExcludingTax: number | null;
|
|
271
299
|
} | null | undefined;
|
|
272
300
|
};
|
|
273
|
-
regionName:
|
|
301
|
+
regionName: string;
|
|
274
302
|
tag: TenantTag;
|
|
275
303
|
openInvoices: {
|
|
276
304
|
id: string;
|
|
@@ -316,6 +344,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
316
344
|
customJwtEnabled: boolean;
|
|
317
345
|
subjectTokenEnabled: boolean;
|
|
318
346
|
bringYourUiEnabled: boolean;
|
|
347
|
+
collectUserProfileEnabled: boolean;
|
|
319
348
|
tokenLimit: number | null;
|
|
320
349
|
machineToMachineLimit: number | null;
|
|
321
350
|
resourcesLimit: number | null;
|
|
@@ -324,7 +353,9 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
324
353
|
mfaEnabled: boolean;
|
|
325
354
|
organizationsEnabled: boolean;
|
|
326
355
|
organizationsLimit: number | null;
|
|
356
|
+
securityFeaturesEnabled: boolean;
|
|
327
357
|
idpInitiatedSsoEnabled: boolean;
|
|
358
|
+
samlApplicationsLimit: number | null;
|
|
328
359
|
};
|
|
329
360
|
planId: string;
|
|
330
361
|
currentPeriodStart: Date;
|
|
@@ -352,6 +383,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
352
383
|
customJwtEnabled: boolean;
|
|
353
384
|
subjectTokenEnabled: boolean;
|
|
354
385
|
bringYourUiEnabled: boolean;
|
|
386
|
+
collectUserProfileEnabled: boolean;
|
|
355
387
|
machineToMachineLimit: number;
|
|
356
388
|
resourcesLimit: number;
|
|
357
389
|
enterpriseSsoLimit: number;
|
|
@@ -359,7 +391,9 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
359
391
|
mfaEnabled: boolean;
|
|
360
392
|
organizationsEnabled: boolean;
|
|
361
393
|
organizationsLimit: number;
|
|
394
|
+
securityFeaturesEnabled: boolean;
|
|
362
395
|
idpInitiatedSsoEnabled: boolean;
|
|
396
|
+
samlApplicationsLimit: number;
|
|
363
397
|
};
|
|
364
398
|
resources: Record<string, number>;
|
|
365
399
|
roles: Record<string, number>;
|
|
@@ -377,6 +411,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
377
411
|
customJwtEnabled: boolean;
|
|
378
412
|
subjectTokenEnabled: boolean;
|
|
379
413
|
bringYourUiEnabled: boolean;
|
|
414
|
+
collectUserProfileEnabled: boolean;
|
|
380
415
|
tokenLimit: number | null;
|
|
381
416
|
machineToMachineLimit: number | null;
|
|
382
417
|
resourcesLimit: number | null;
|
|
@@ -385,7 +420,9 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
385
420
|
mfaEnabled: boolean;
|
|
386
421
|
organizationsEnabled: boolean;
|
|
387
422
|
organizationsLimit: number | null;
|
|
423
|
+
securityFeaturesEnabled: boolean;
|
|
388
424
|
idpInitiatedSsoEnabled: boolean;
|
|
425
|
+
samlApplicationsLimit: number | null;
|
|
389
426
|
};
|
|
390
427
|
basicQuota: {
|
|
391
428
|
auditLogsRetentionDays: number | null;
|
|
@@ -401,6 +438,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
401
438
|
customJwtEnabled: boolean;
|
|
402
439
|
subjectTokenEnabled: boolean;
|
|
403
440
|
bringYourUiEnabled: boolean;
|
|
441
|
+
collectUserProfileEnabled: boolean;
|
|
404
442
|
tokenLimit: number | null;
|
|
405
443
|
machineToMachineLimit: number | null;
|
|
406
444
|
resourcesLimit: number | null;
|
|
@@ -409,7 +447,9 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
409
447
|
mfaEnabled: boolean;
|
|
410
448
|
organizationsEnabled: boolean;
|
|
411
449
|
organizationsLimit: number | null;
|
|
450
|
+
securityFeaturesEnabled: boolean;
|
|
412
451
|
idpInitiatedSsoEnabled: boolean;
|
|
452
|
+
samlApplicationsLimit: number | null;
|
|
413
453
|
};
|
|
414
454
|
}>;
|
|
415
455
|
};
|
|
@@ -456,6 +496,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
456
496
|
customJwtEnabled: boolean;
|
|
457
497
|
subjectTokenEnabled: boolean;
|
|
458
498
|
bringYourUiEnabled: boolean;
|
|
499
|
+
collectUserProfileEnabled: boolean;
|
|
459
500
|
machineToMachineLimit: number;
|
|
460
501
|
resourcesLimit: number;
|
|
461
502
|
enterpriseSsoLimit: number;
|
|
@@ -463,7 +504,9 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
463
504
|
mfaEnabled: boolean;
|
|
464
505
|
organizationsEnabled: boolean;
|
|
465
506
|
organizationsLimit: number;
|
|
507
|
+
securityFeaturesEnabled: boolean;
|
|
466
508
|
idpInitiatedSsoEnabled: boolean;
|
|
509
|
+
samlApplicationsLimit: number;
|
|
467
510
|
};
|
|
468
511
|
resources: Record<string, number>;
|
|
469
512
|
roles: Record<string, number>;
|
|
@@ -481,6 +524,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
481
524
|
customJwtEnabled: boolean;
|
|
482
525
|
subjectTokenEnabled: boolean;
|
|
483
526
|
bringYourUiEnabled: boolean;
|
|
527
|
+
collectUserProfileEnabled: boolean;
|
|
484
528
|
tokenLimit: number | null;
|
|
485
529
|
machineToMachineLimit: number | null;
|
|
486
530
|
resourcesLimit: number | null;
|
|
@@ -489,7 +533,9 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
489
533
|
mfaEnabled: boolean;
|
|
490
534
|
organizationsEnabled: boolean;
|
|
491
535
|
organizationsLimit: number | null;
|
|
536
|
+
securityFeaturesEnabled: boolean;
|
|
492
537
|
idpInitiatedSsoEnabled: boolean;
|
|
538
|
+
samlApplicationsLimit: number | null;
|
|
493
539
|
};
|
|
494
540
|
basicQuota: {
|
|
495
541
|
auditLogsRetentionDays: number | null;
|
|
@@ -505,6 +551,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
505
551
|
customJwtEnabled: boolean;
|
|
506
552
|
subjectTokenEnabled: boolean;
|
|
507
553
|
bringYourUiEnabled: boolean;
|
|
554
|
+
collectUserProfileEnabled: boolean;
|
|
508
555
|
tokenLimit: number | null;
|
|
509
556
|
machineToMachineLimit: number | null;
|
|
510
557
|
resourcesLimit: number | null;
|
|
@@ -513,7 +560,9 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
513
560
|
mfaEnabled: boolean;
|
|
514
561
|
organizationsEnabled: boolean;
|
|
515
562
|
organizationsLimit: number | null;
|
|
563
|
+
securityFeaturesEnabled: boolean;
|
|
516
564
|
idpInitiatedSsoEnabled: boolean;
|
|
565
|
+
samlApplicationsLimit: number | null;
|
|
517
566
|
};
|
|
518
567
|
}>;
|
|
519
568
|
} & {
|
|
@@ -522,42 +571,44 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
522
571
|
tokenLimit: number;
|
|
523
572
|
}>;
|
|
524
573
|
} & {
|
|
525
|
-
"/tenants/:tenantId/subscription/add-on-skus": import("@withtyped/server").PathGuard<"/:tenantId/subscription/add-on-skus", unknown, unknown, {
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
574
|
+
"/tenants/:tenantId/subscription/add-on-skus": import("@withtyped/server").PathGuard<"/:tenantId/subscription/add-on-skus", unknown, unknown, Partial<Record<"tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "hooksLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "userRolesLimit" | "machineToMachineRolesLimit" | "thirdPartyApplicationsLimit" | "samlApplicationsLimit", {
|
|
575
|
+
id: string;
|
|
576
|
+
name: string | null;
|
|
577
|
+
createdAt: Date;
|
|
578
|
+
defaultPriceId: string | null;
|
|
579
|
+
unitPrice: number | null;
|
|
580
|
+
type: LogtoSkuType;
|
|
581
|
+
quota: {
|
|
582
|
+
auditLogsRetentionDays?: number | null | undefined;
|
|
583
|
+
mauLimit?: number | null | undefined;
|
|
584
|
+
applicationsLimit?: number | null | undefined;
|
|
585
|
+
thirdPartyApplicationsLimit?: number | null | undefined;
|
|
586
|
+
scopesPerResourceLimit?: number | null | undefined;
|
|
587
|
+
socialConnectorsLimit?: number | null | undefined;
|
|
588
|
+
userRolesLimit?: number | null | undefined;
|
|
589
|
+
machineToMachineRolesLimit?: number | null | undefined;
|
|
590
|
+
scopesPerRoleLimit?: number | null | undefined;
|
|
591
|
+
hooksLimit?: number | null | undefined;
|
|
592
|
+
customJwtEnabled?: boolean | undefined;
|
|
593
|
+
subjectTokenEnabled?: boolean | undefined;
|
|
594
|
+
bringYourUiEnabled?: boolean | undefined;
|
|
595
|
+
collectUserProfileEnabled?: boolean | undefined;
|
|
596
|
+
tokenLimit?: number | null | undefined;
|
|
597
|
+
machineToMachineLimit?: number | null | undefined;
|
|
598
|
+
resourcesLimit?: number | null | undefined;
|
|
599
|
+
enterpriseSsoLimit?: number | null | undefined;
|
|
600
|
+
tenantMembersLimit?: number | null | undefined;
|
|
601
|
+
mfaEnabled?: boolean | undefined;
|
|
602
|
+
organizationsEnabled?: boolean | undefined;
|
|
603
|
+
organizationsLimit?: number | null | undefined;
|
|
604
|
+
securityFeaturesEnabled?: boolean | undefined;
|
|
605
|
+
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
606
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
607
|
+
};
|
|
608
|
+
isDefault: boolean;
|
|
609
|
+
updatedAt: Date;
|
|
610
|
+
productId: string | null;
|
|
611
|
+
}>>>;
|
|
561
612
|
} & {
|
|
562
613
|
"/tenants/:tenantId/invoices": import("@withtyped/server").PathGuard<"/:tenantId/invoices", unknown, unknown, {
|
|
563
614
|
invoices: {
|
|
@@ -603,6 +654,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
603
654
|
customJwtEnabled?: boolean | undefined;
|
|
604
655
|
subjectTokenEnabled?: boolean | undefined;
|
|
605
656
|
bringYourUiEnabled?: boolean | undefined;
|
|
657
|
+
collectUserProfileEnabled?: boolean | undefined;
|
|
606
658
|
tokenLimit?: number | null | undefined;
|
|
607
659
|
machineToMachineLimit?: number | null | undefined;
|
|
608
660
|
resourcesLimit?: number | null | undefined;
|
|
@@ -611,8 +663,11 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
611
663
|
mfaEnabled?: boolean | undefined;
|
|
612
664
|
organizationsEnabled?: boolean | undefined;
|
|
613
665
|
organizationsLimit?: number | null | undefined;
|
|
666
|
+
securityFeaturesEnabled?: boolean | undefined;
|
|
614
667
|
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
668
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
615
669
|
};
|
|
670
|
+
isDefault: boolean;
|
|
616
671
|
updatedAt: Date;
|
|
617
672
|
productId: string | null;
|
|
618
673
|
}[]>;
|
|
@@ -647,11 +702,14 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
647
702
|
post: {
|
|
648
703
|
"/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
|
|
649
704
|
data: {
|
|
650
|
-
type: TemplateType
|
|
705
|
+
type: TemplateType;
|
|
651
706
|
payload: {
|
|
652
|
-
code?: string | undefined;
|
|
653
707
|
link?: string | undefined;
|
|
654
|
-
|
|
708
|
+
code?: string | undefined;
|
|
709
|
+
locale?: string | undefined;
|
|
710
|
+
} & {
|
|
711
|
+
[k: string]: unknown;
|
|
712
|
+
} & {
|
|
655
713
|
senderName?: string | undefined;
|
|
656
714
|
companyInformation?: string | undefined;
|
|
657
715
|
appLogo?: string | undefined;
|
|
@@ -662,27 +720,30 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
662
720
|
} & {
|
|
663
721
|
"/services/send-sms": import("@withtyped/server").PathGuard<"/send-sms", unknown, {
|
|
664
722
|
data: {
|
|
665
|
-
type: TemplateType
|
|
723
|
+
type: TemplateType;
|
|
666
724
|
to: string;
|
|
667
725
|
payload: {
|
|
668
726
|
code?: string | undefined;
|
|
669
727
|
link?: string | undefined;
|
|
670
|
-
|
|
728
|
+
locale?: string | undefined;
|
|
729
|
+
} & {
|
|
730
|
+
[k: string]: unknown;
|
|
731
|
+
};
|
|
671
732
|
};
|
|
672
733
|
}, unknown>;
|
|
673
734
|
} & {
|
|
674
735
|
"/services/custom-jwt": import("@withtyped/server").PathGuard<"/custom-jwt", {
|
|
675
736
|
isTest?: string | undefined;
|
|
676
737
|
}, {
|
|
738
|
+
token: Record<string, Json>;
|
|
677
739
|
context: Record<string, Json>;
|
|
678
|
-
script: string;
|
|
679
740
|
tokenType: LogtoJwtTokenKeyType.AccessToken;
|
|
680
|
-
|
|
741
|
+
script: string;
|
|
681
742
|
environmentVariables?: Record<string, string> | undefined;
|
|
682
743
|
} | {
|
|
683
|
-
script: string;
|
|
684
|
-
tokenType: LogtoJwtTokenKeyType.ClientCredentials;
|
|
685
744
|
token: Record<string, Json>;
|
|
745
|
+
tokenType: LogtoJwtTokenKeyType.ClientCredentials;
|
|
746
|
+
script: string;
|
|
686
747
|
environmentVariables?: Record<string, string> | undefined;
|
|
687
748
|
}, Record<string, unknown>>;
|
|
688
749
|
};
|
|
@@ -730,6 +791,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
730
791
|
customJwtEnabled?: boolean | undefined;
|
|
731
792
|
subjectTokenEnabled?: boolean | undefined;
|
|
732
793
|
bringYourUiEnabled?: boolean | undefined;
|
|
794
|
+
collectUserProfileEnabled?: boolean | undefined;
|
|
733
795
|
tokenLimit?: number | null | undefined;
|
|
734
796
|
machineToMachineLimit?: number | null | undefined;
|
|
735
797
|
resourcesLimit?: number | null | undefined;
|
|
@@ -738,8 +800,11 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
738
800
|
mfaEnabled?: boolean | undefined;
|
|
739
801
|
organizationsEnabled?: boolean | undefined;
|
|
740
802
|
organizationsLimit?: number | null | undefined;
|
|
803
|
+
securityFeaturesEnabled?: boolean | undefined;
|
|
741
804
|
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
805
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
742
806
|
};
|
|
807
|
+
isDefault: boolean;
|
|
743
808
|
updatedAt: Date;
|
|
744
809
|
productId: string | null;
|
|
745
810
|
}[]>;
|
|
@@ -757,20 +822,24 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
757
822
|
mfaEnabled?: boolean | undefined;
|
|
758
823
|
organizationsEnabled?: boolean | undefined;
|
|
759
824
|
organizationsLimit?: number | null | undefined;
|
|
825
|
+
securityFeaturesEnabled?: boolean | undefined;
|
|
826
|
+
userRolesLimit?: number | null | undefined;
|
|
827
|
+
machineToMachineRolesLimit?: number | null | undefined;
|
|
828
|
+
thirdPartyApplicationsLimit?: number | null | undefined;
|
|
829
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
760
830
|
auditLogsRetentionDays?: number | null | undefined;
|
|
761
831
|
mauLimit?: number | null | undefined;
|
|
762
832
|
applicationsLimit?: number | null | undefined;
|
|
763
|
-
thirdPartyApplicationsLimit?: number | null | undefined;
|
|
764
833
|
scopesPerResourceLimit?: number | null | undefined;
|
|
765
834
|
socialConnectorsLimit?: number | null | undefined;
|
|
766
|
-
userRolesLimit?: number | null | undefined;
|
|
767
|
-
machineToMachineRolesLimit?: number | null | undefined;
|
|
768
835
|
scopesPerRoleLimit?: number | null | undefined;
|
|
769
836
|
customJwtEnabled?: boolean | undefined;
|
|
770
837
|
subjectTokenEnabled?: boolean | undefined;
|
|
771
838
|
bringYourUiEnabled?: boolean | undefined;
|
|
839
|
+
collectUserProfileEnabled?: boolean | undefined;
|
|
772
840
|
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
773
841
|
};
|
|
842
|
+
isDefault?: boolean | undefined;
|
|
774
843
|
} | {
|
|
775
844
|
type: LogtoSkuType.Basic;
|
|
776
845
|
quota: {
|
|
@@ -787,6 +856,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
787
856
|
customJwtEnabled: boolean;
|
|
788
857
|
subjectTokenEnabled: boolean;
|
|
789
858
|
bringYourUiEnabled: boolean;
|
|
859
|
+
collectUserProfileEnabled: boolean;
|
|
790
860
|
tokenLimit: number | null;
|
|
791
861
|
machineToMachineLimit: number | null;
|
|
792
862
|
resourcesLimit: number | null;
|
|
@@ -795,15 +865,26 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
795
865
|
mfaEnabled: boolean;
|
|
796
866
|
organizationsEnabled: boolean;
|
|
797
867
|
organizationsLimit: number | null;
|
|
868
|
+
securityFeaturesEnabled: boolean;
|
|
798
869
|
idpInitiatedSsoEnabled: boolean;
|
|
870
|
+
samlApplicationsLimit: number | null;
|
|
799
871
|
};
|
|
800
872
|
addOnRelations: {
|
|
801
|
-
tokenLimit
|
|
873
|
+
tokenLimit?: string | undefined;
|
|
874
|
+
machineToMachineLimit?: string | undefined;
|
|
875
|
+
resourcesLimit?: string | undefined;
|
|
876
|
+
enterpriseSsoLimit?: string | undefined;
|
|
877
|
+
tenantMembersLimit?: string | undefined;
|
|
878
|
+
mfaEnabled?: string | undefined;
|
|
879
|
+
organizationsLimit?: string | undefined;
|
|
880
|
+
securityFeaturesEnabled?: string | undefined;
|
|
802
881
|
};
|
|
882
|
+
isDefault?: boolean | undefined;
|
|
803
883
|
}, {
|
|
804
884
|
id: string;
|
|
805
885
|
createdAt: Date;
|
|
806
886
|
type: LogtoSkuType;
|
|
887
|
+
isDefault: boolean;
|
|
807
888
|
updatedAt: Date;
|
|
808
889
|
quota: {
|
|
809
890
|
auditLogsRetentionDays?: number | null | undefined;
|
|
@@ -819,6 +900,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
819
900
|
customJwtEnabled?: boolean | undefined;
|
|
820
901
|
subjectTokenEnabled?: boolean | undefined;
|
|
821
902
|
bringYourUiEnabled?: boolean | undefined;
|
|
903
|
+
collectUserProfileEnabled?: boolean | undefined;
|
|
822
904
|
tokenLimit?: number | null | undefined;
|
|
823
905
|
machineToMachineLimit?: number | null | undefined;
|
|
824
906
|
resourcesLimit?: number | null | undefined;
|
|
@@ -827,7 +909,9 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
827
909
|
mfaEnabled?: boolean | undefined;
|
|
828
910
|
organizationsEnabled?: boolean | undefined;
|
|
829
911
|
organizationsLimit?: number | null | undefined;
|
|
912
|
+
securityFeaturesEnabled?: boolean | undefined;
|
|
830
913
|
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
914
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
831
915
|
};
|
|
832
916
|
}>;
|
|
833
917
|
} & {
|
|
@@ -839,10 +923,22 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
839
923
|
}, {
|
|
840
924
|
productId: string;
|
|
841
925
|
}>;
|
|
926
|
+
} & {
|
|
927
|
+
"/skus/basic-sku-usage-add-on-relations": import("@withtyped/server").PathGuard<"/basic-sku-usage-add-on-relations", unknown, {
|
|
928
|
+
basicSkuId: string;
|
|
929
|
+
usageKey: "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "hooksLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "userRolesLimit" | "machineToMachineRolesLimit" | "thirdPartyApplicationsLimit" | "samlApplicationsLimit";
|
|
930
|
+
addOnSkuId: string;
|
|
931
|
+
}, {
|
|
932
|
+
basicSkuId: string;
|
|
933
|
+
usageKey: "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "hooksLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "userRolesLimit" | "machineToMachineRolesLimit" | "thirdPartyApplicationsLimit" | "samlApplicationsLimit";
|
|
934
|
+
addOnSkuId: string;
|
|
935
|
+
}>;
|
|
842
936
|
};
|
|
843
937
|
put: {};
|
|
844
938
|
delete: {
|
|
845
939
|
"/skus/:skuId": import("@withtyped/server").PathGuard<"/:skuId", unknown, unknown, unknown>;
|
|
940
|
+
} & {
|
|
941
|
+
"/skus/basic-sku-usage-add-on-relations/:basicSkuId/:usageKey": import("@withtyped/server").PathGuard<"/basic-sku-usage-add-on-relations/:basicSkuId/:usageKey", unknown, unknown, unknown>;
|
|
846
942
|
};
|
|
847
943
|
copy: {};
|
|
848
944
|
head: {};
|
|
@@ -868,7 +964,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
868
964
|
skuId?: string | undefined;
|
|
869
965
|
tenantName?: string | undefined;
|
|
870
966
|
tenantTag?: TenantTag | undefined;
|
|
871
|
-
tenantRegionName?:
|
|
967
|
+
tenantRegionName?: string | undefined;
|
|
872
968
|
cancelCallbackUrl?: string | undefined;
|
|
873
969
|
}, {
|
|
874
970
|
sessionId: string;
|
|
@@ -986,7 +1082,17 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
986
1082
|
}, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
|
|
987
1083
|
patch: {};
|
|
988
1084
|
options: {};
|
|
989
|
-
get: {
|
|
1085
|
+
get: {
|
|
1086
|
+
"/me/regions": import("@withtyped/server").PathGuard<"/regions", unknown, unknown, {
|
|
1087
|
+
regions: {
|
|
1088
|
+
id: string;
|
|
1089
|
+
name: string;
|
|
1090
|
+
country: string;
|
|
1091
|
+
isPrivate: boolean;
|
|
1092
|
+
tags: TenantTag[];
|
|
1093
|
+
}[];
|
|
1094
|
+
}>;
|
|
1095
|
+
};
|
|
990
1096
|
post: {};
|
|
991
1097
|
put: {};
|
|
992
1098
|
delete: {
|
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-adb5eaf",
|
|
4
4
|
"description": "Logto Cloud service.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@types/accepts": "^1.3.5",
|
|
22
22
|
"@types/http-proxy": "^1.17.9",
|
|
23
23
|
"@types/mime-types": "^2.1.1",
|
|
24
|
-
"@types/node": "^
|
|
24
|
+
"@types/node": "^22.14.0",
|
|
25
25
|
"@types/yargs": "^17.0.24",
|
|
26
26
|
"dts-bundle-generator": "^9.3.1",
|
|
27
27
|
"eslint": "^8.57.0",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"prettier": "^3.0.0",
|
|
31
31
|
"typescript": "^5.3.3",
|
|
32
32
|
"vite-tsconfig-paths": "^5.0.0",
|
|
33
|
-
"vitest": "^
|
|
33
|
+
"vitest": "^3.1.1"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
|
-
"node": "^
|
|
36
|
+
"node": "^22.14.0"
|
|
37
37
|
},
|
|
38
38
|
"eslintConfig": {
|
|
39
39
|
"extends": "@silverhand",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"start": "NODE_ENV=production node .",
|
|
64
64
|
"test": "vitest && pnpm build:lib && pnpm test:types",
|
|
65
65
|
"test:types": "tsc -p tsconfig.test.types.json",
|
|
66
|
+
"test:only": "vitest",
|
|
66
67
|
"cli": "node ./build/cli/index.js"
|
|
67
68
|
}
|
|
68
69
|
}
|