@logto/cloud 0.2.5-b98b019 → 0.2.5-bef55a2
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 +83 -19
- package/package.json +4 -4
package/lib/routes/index.d.ts
CHANGED
|
@@ -11,16 +11,6 @@ export type WithAuthContext<Context = RequestContext> = Context & {
|
|
|
11
11
|
scopes: string[];
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
declare enum VerificationCodeType {
|
|
15
|
-
SignIn = "SignIn",
|
|
16
|
-
Register = "Register",
|
|
17
|
-
ForgotPassword = "ForgotPassword",
|
|
18
|
-
Generic = "Generic",
|
|
19
|
-
UserPermissionValidation = "UserPermissionValidation",
|
|
20
|
-
BindNewIdentifier = "BindNewIdentifier",
|
|
21
|
-
/** @deprecated Use `Generic` type template for sending test sms/email use case */
|
|
22
|
-
Test = "Test"
|
|
23
|
-
}
|
|
24
14
|
declare enum TemplateType {
|
|
25
15
|
/** The template for sending verification code when user is signing in. */
|
|
26
16
|
SignIn = "SignIn",
|
|
@@ -108,7 +98,9 @@ export type Affiliate = InferModelType<typeof Affiliates>;
|
|
|
108
98
|
declare enum RegionName {
|
|
109
99
|
EU = "EU",
|
|
110
100
|
US = "US",
|
|
111
|
-
AU = "AU"
|
|
101
|
+
AU = "AU",
|
|
102
|
+
JP = "JP",
|
|
103
|
+
CrescLabJP = "CRESCLAB_JP"
|
|
112
104
|
}
|
|
113
105
|
export type AffiliateData = Affiliate & {
|
|
114
106
|
properties: Array<Pick<AffiliateProperty, "type" | "value">>;
|
|
@@ -238,6 +230,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
238
230
|
};
|
|
239
231
|
post: {
|
|
240
232
|
"/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
233
|
+
id?: string | undefined;
|
|
241
234
|
name?: string | undefined;
|
|
242
235
|
tag?: TenantTag | undefined;
|
|
243
236
|
regionName?: RegionName | undefined;
|
|
@@ -325,6 +318,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
325
318
|
organizationsEnabled: boolean;
|
|
326
319
|
organizationsLimit: number | null;
|
|
327
320
|
idpInitiatedSsoEnabled: boolean;
|
|
321
|
+
samlApplicationsLimit: number | null;
|
|
322
|
+
captchaEnabled: boolean;
|
|
328
323
|
};
|
|
329
324
|
planId: string;
|
|
330
325
|
currentPeriodStart: Date;
|
|
@@ -360,6 +355,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
360
355
|
organizationsEnabled: boolean;
|
|
361
356
|
organizationsLimit: number;
|
|
362
357
|
idpInitiatedSsoEnabled: boolean;
|
|
358
|
+
samlApplicationsLimit: number;
|
|
359
|
+
captchaEnabled: boolean;
|
|
363
360
|
};
|
|
364
361
|
resources: Record<string, number>;
|
|
365
362
|
roles: Record<string, number>;
|
|
@@ -386,6 +383,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
386
383
|
organizationsEnabled: boolean;
|
|
387
384
|
organizationsLimit: number | null;
|
|
388
385
|
idpInitiatedSsoEnabled: boolean;
|
|
386
|
+
samlApplicationsLimit: number | null;
|
|
387
|
+
captchaEnabled: boolean;
|
|
389
388
|
};
|
|
390
389
|
basicQuota: {
|
|
391
390
|
auditLogsRetentionDays: number | null;
|
|
@@ -410,6 +409,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
410
409
|
organizationsEnabled: boolean;
|
|
411
410
|
organizationsLimit: number | null;
|
|
412
411
|
idpInitiatedSsoEnabled: boolean;
|
|
412
|
+
samlApplicationsLimit: number | null;
|
|
413
|
+
captchaEnabled: boolean;
|
|
413
414
|
};
|
|
414
415
|
}>;
|
|
415
416
|
};
|
|
@@ -464,6 +465,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
464
465
|
organizationsEnabled: boolean;
|
|
465
466
|
organizationsLimit: number;
|
|
466
467
|
idpInitiatedSsoEnabled: boolean;
|
|
468
|
+
samlApplicationsLimit: number;
|
|
469
|
+
captchaEnabled: boolean;
|
|
467
470
|
};
|
|
468
471
|
resources: Record<string, number>;
|
|
469
472
|
roles: Record<string, number>;
|
|
@@ -490,6 +493,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
490
493
|
organizationsEnabled: boolean;
|
|
491
494
|
organizationsLimit: number | null;
|
|
492
495
|
idpInitiatedSsoEnabled: boolean;
|
|
496
|
+
samlApplicationsLimit: number | null;
|
|
497
|
+
captchaEnabled: boolean;
|
|
493
498
|
};
|
|
494
499
|
basicQuota: {
|
|
495
500
|
auditLogsRetentionDays: number | null;
|
|
@@ -514,6 +519,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
514
519
|
organizationsEnabled: boolean;
|
|
515
520
|
organizationsLimit: number | null;
|
|
516
521
|
idpInitiatedSsoEnabled: boolean;
|
|
522
|
+
samlApplicationsLimit: number | null;
|
|
523
|
+
captchaEnabled: boolean;
|
|
517
524
|
};
|
|
518
525
|
}>;
|
|
519
526
|
} & {
|
|
@@ -521,6 +528,45 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
521
528
|
mauLimit: number;
|
|
522
529
|
tokenLimit: number;
|
|
523
530
|
}>;
|
|
531
|
+
} & {
|
|
532
|
+
"/tenants/:tenantId/subscription/add-on-skus": import("@withtyped/server").PathGuard<"/:tenantId/subscription/add-on-skus", unknown, unknown, {
|
|
533
|
+
tokenLimit?: {
|
|
534
|
+
id: string;
|
|
535
|
+
name: string | null;
|
|
536
|
+
createdAt: Date;
|
|
537
|
+
defaultPriceId: string | null;
|
|
538
|
+
unitPrice: number | null;
|
|
539
|
+
type: LogtoSkuType;
|
|
540
|
+
quota: {
|
|
541
|
+
auditLogsRetentionDays?: number | null | undefined;
|
|
542
|
+
mauLimit?: number | null | undefined;
|
|
543
|
+
applicationsLimit?: number | null | undefined;
|
|
544
|
+
thirdPartyApplicationsLimit?: number | null | undefined;
|
|
545
|
+
scopesPerResourceLimit?: number | null | undefined;
|
|
546
|
+
socialConnectorsLimit?: number | null | undefined;
|
|
547
|
+
userRolesLimit?: number | null | undefined;
|
|
548
|
+
machineToMachineRolesLimit?: number | null | undefined;
|
|
549
|
+
scopesPerRoleLimit?: number | null | undefined;
|
|
550
|
+
hooksLimit?: number | null | undefined;
|
|
551
|
+
customJwtEnabled?: boolean | undefined;
|
|
552
|
+
subjectTokenEnabled?: boolean | undefined;
|
|
553
|
+
bringYourUiEnabled?: boolean | undefined;
|
|
554
|
+
tokenLimit?: number | null | undefined;
|
|
555
|
+
machineToMachineLimit?: number | null | undefined;
|
|
556
|
+
resourcesLimit?: number | null | undefined;
|
|
557
|
+
enterpriseSsoLimit?: number | null | undefined;
|
|
558
|
+
tenantMembersLimit?: number | null | undefined;
|
|
559
|
+
mfaEnabled?: boolean | undefined;
|
|
560
|
+
organizationsEnabled?: boolean | undefined;
|
|
561
|
+
organizationsLimit?: number | null | undefined;
|
|
562
|
+
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
563
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
564
|
+
captchaEnabled?: boolean | undefined;
|
|
565
|
+
};
|
|
566
|
+
updatedAt: Date;
|
|
567
|
+
productId: string | null;
|
|
568
|
+
} | undefined;
|
|
569
|
+
}>;
|
|
524
570
|
} & {
|
|
525
571
|
"/tenants/:tenantId/invoices": import("@withtyped/server").PathGuard<"/:tenantId/invoices", unknown, unknown, {
|
|
526
572
|
invoices: {
|
|
@@ -575,6 +621,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
575
621
|
organizationsEnabled?: boolean | undefined;
|
|
576
622
|
organizationsLimit?: number | null | undefined;
|
|
577
623
|
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
624
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
625
|
+
captchaEnabled?: boolean | undefined;
|
|
578
626
|
};
|
|
579
627
|
updatedAt: Date;
|
|
580
628
|
productId: string | null;
|
|
@@ -610,11 +658,14 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
610
658
|
post: {
|
|
611
659
|
"/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
|
|
612
660
|
data: {
|
|
613
|
-
type: TemplateType
|
|
661
|
+
type: TemplateType;
|
|
614
662
|
payload: {
|
|
615
|
-
code?: string | undefined;
|
|
616
663
|
link?: string | undefined;
|
|
617
|
-
|
|
664
|
+
code?: string | undefined;
|
|
665
|
+
locale?: string | undefined;
|
|
666
|
+
} & {
|
|
667
|
+
[k: string]: unknown;
|
|
668
|
+
} & {
|
|
618
669
|
senderName?: string | undefined;
|
|
619
670
|
companyInformation?: string | undefined;
|
|
620
671
|
appLogo?: string | undefined;
|
|
@@ -625,27 +676,30 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
625
676
|
} & {
|
|
626
677
|
"/services/send-sms": import("@withtyped/server").PathGuard<"/send-sms", unknown, {
|
|
627
678
|
data: {
|
|
628
|
-
type: TemplateType
|
|
679
|
+
type: TemplateType;
|
|
629
680
|
to: string;
|
|
630
681
|
payload: {
|
|
631
682
|
code?: string | undefined;
|
|
632
683
|
link?: string | undefined;
|
|
633
|
-
|
|
684
|
+
locale?: string | undefined;
|
|
685
|
+
} & {
|
|
686
|
+
[k: string]: unknown;
|
|
687
|
+
};
|
|
634
688
|
};
|
|
635
689
|
}, unknown>;
|
|
636
690
|
} & {
|
|
637
691
|
"/services/custom-jwt": import("@withtyped/server").PathGuard<"/custom-jwt", {
|
|
638
692
|
isTest?: string | undefined;
|
|
639
693
|
}, {
|
|
694
|
+
token: Record<string, Json>;
|
|
640
695
|
context: Record<string, Json>;
|
|
641
696
|
script: string;
|
|
642
697
|
tokenType: LogtoJwtTokenKeyType.AccessToken;
|
|
643
|
-
token: Record<string, Json>;
|
|
644
698
|
environmentVariables?: Record<string, string> | undefined;
|
|
645
699
|
} | {
|
|
700
|
+
token: Record<string, Json>;
|
|
646
701
|
script: string;
|
|
647
702
|
tokenType: LogtoJwtTokenKeyType.ClientCredentials;
|
|
648
|
-
token: Record<string, Json>;
|
|
649
703
|
environmentVariables?: Record<string, string> | undefined;
|
|
650
704
|
}, Record<string, unknown>>;
|
|
651
705
|
};
|
|
@@ -702,6 +756,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
702
756
|
organizationsEnabled?: boolean | undefined;
|
|
703
757
|
organizationsLimit?: number | null | undefined;
|
|
704
758
|
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
759
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
760
|
+
captchaEnabled?: boolean | undefined;
|
|
705
761
|
};
|
|
706
762
|
updatedAt: Date;
|
|
707
763
|
productId: string | null;
|
|
@@ -733,6 +789,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
733
789
|
subjectTokenEnabled?: boolean | undefined;
|
|
734
790
|
bringYourUiEnabled?: boolean | undefined;
|
|
735
791
|
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
792
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
793
|
+
captchaEnabled?: boolean | undefined;
|
|
736
794
|
};
|
|
737
795
|
} | {
|
|
738
796
|
type: LogtoSkuType.Basic;
|
|
@@ -759,6 +817,11 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
759
817
|
organizationsEnabled: boolean;
|
|
760
818
|
organizationsLimit: number | null;
|
|
761
819
|
idpInitiatedSsoEnabled: boolean;
|
|
820
|
+
samlApplicationsLimit: number | null;
|
|
821
|
+
captchaEnabled: boolean;
|
|
822
|
+
};
|
|
823
|
+
addOnRelations: {
|
|
824
|
+
tokenLimit: string;
|
|
762
825
|
};
|
|
763
826
|
}, {
|
|
764
827
|
id: string;
|
|
@@ -788,6 +851,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
788
851
|
organizationsEnabled?: boolean | undefined;
|
|
789
852
|
organizationsLimit?: number | null | undefined;
|
|
790
853
|
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
854
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
855
|
+
captchaEnabled?: boolean | undefined;
|
|
791
856
|
};
|
|
792
857
|
}>;
|
|
793
858
|
} & {
|
|
@@ -826,7 +891,6 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
826
891
|
successCallbackUrl: string;
|
|
827
892
|
tenantId?: string | undefined;
|
|
828
893
|
skuId?: string | undefined;
|
|
829
|
-
planId?: string | undefined;
|
|
830
894
|
tenantName?: string | undefined;
|
|
831
895
|
tenantTag?: TenantTag | undefined;
|
|
832
896
|
tenantRegionName?: RegionName | undefined;
|
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-bef55a2",
|
|
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",
|