@logto/cloud 0.2.5-aac51e9 → 0.2.5-b5c7745
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 +42 -18
- package/package.json +1 -1
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,8 @@ 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
|
+
CrescLabJP = "CRESCLAB_JP"
|
|
112
103
|
}
|
|
113
104
|
export type AffiliateData = Affiliate & {
|
|
114
105
|
properties: Array<Pick<AffiliateProperty, "type" | "value">>;
|
|
@@ -238,6 +229,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
238
229
|
};
|
|
239
230
|
post: {
|
|
240
231
|
"/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
|
|
232
|
+
id?: string | undefined;
|
|
241
233
|
name?: string | undefined;
|
|
242
234
|
tag?: TenantTag | undefined;
|
|
243
235
|
regionName?: RegionName | undefined;
|
|
@@ -325,6 +317,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
325
317
|
organizationsEnabled: boolean;
|
|
326
318
|
organizationsLimit: number | null;
|
|
327
319
|
idpInitiatedSsoEnabled: boolean;
|
|
320
|
+
samlApplicationsLimit: number | null;
|
|
321
|
+
captchaEnabled: boolean;
|
|
328
322
|
};
|
|
329
323
|
planId: string;
|
|
330
324
|
currentPeriodStart: Date;
|
|
@@ -360,6 +354,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
360
354
|
organizationsEnabled: boolean;
|
|
361
355
|
organizationsLimit: number;
|
|
362
356
|
idpInitiatedSsoEnabled: boolean;
|
|
357
|
+
samlApplicationsLimit: number;
|
|
358
|
+
captchaEnabled: boolean;
|
|
363
359
|
};
|
|
364
360
|
resources: Record<string, number>;
|
|
365
361
|
roles: Record<string, number>;
|
|
@@ -386,6 +382,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
386
382
|
organizationsEnabled: boolean;
|
|
387
383
|
organizationsLimit: number | null;
|
|
388
384
|
idpInitiatedSsoEnabled: boolean;
|
|
385
|
+
samlApplicationsLimit: number | null;
|
|
386
|
+
captchaEnabled: boolean;
|
|
389
387
|
};
|
|
390
388
|
basicQuota: {
|
|
391
389
|
auditLogsRetentionDays: number | null;
|
|
@@ -410,6 +408,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
410
408
|
organizationsEnabled: boolean;
|
|
411
409
|
organizationsLimit: number | null;
|
|
412
410
|
idpInitiatedSsoEnabled: boolean;
|
|
411
|
+
samlApplicationsLimit: number | null;
|
|
412
|
+
captchaEnabled: boolean;
|
|
413
413
|
};
|
|
414
414
|
}>;
|
|
415
415
|
};
|
|
@@ -464,6 +464,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
464
464
|
organizationsEnabled: boolean;
|
|
465
465
|
organizationsLimit: number;
|
|
466
466
|
idpInitiatedSsoEnabled: boolean;
|
|
467
|
+
samlApplicationsLimit: number;
|
|
468
|
+
captchaEnabled: boolean;
|
|
467
469
|
};
|
|
468
470
|
resources: Record<string, number>;
|
|
469
471
|
roles: Record<string, number>;
|
|
@@ -490,6 +492,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
490
492
|
organizationsEnabled: boolean;
|
|
491
493
|
organizationsLimit: number | null;
|
|
492
494
|
idpInitiatedSsoEnabled: boolean;
|
|
495
|
+
samlApplicationsLimit: number | null;
|
|
496
|
+
captchaEnabled: boolean;
|
|
493
497
|
};
|
|
494
498
|
basicQuota: {
|
|
495
499
|
auditLogsRetentionDays: number | null;
|
|
@@ -514,6 +518,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
514
518
|
organizationsEnabled: boolean;
|
|
515
519
|
organizationsLimit: number | null;
|
|
516
520
|
idpInitiatedSsoEnabled: boolean;
|
|
521
|
+
samlApplicationsLimit: number | null;
|
|
522
|
+
captchaEnabled: boolean;
|
|
517
523
|
};
|
|
518
524
|
}>;
|
|
519
525
|
} & {
|
|
@@ -553,6 +559,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
553
559
|
organizationsEnabled?: boolean | undefined;
|
|
554
560
|
organizationsLimit?: number | null | undefined;
|
|
555
561
|
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
562
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
563
|
+
captchaEnabled?: boolean | undefined;
|
|
556
564
|
};
|
|
557
565
|
updatedAt: Date;
|
|
558
566
|
productId: string | null;
|
|
@@ -612,6 +620,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
612
620
|
organizationsEnabled?: boolean | undefined;
|
|
613
621
|
organizationsLimit?: number | null | undefined;
|
|
614
622
|
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
623
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
624
|
+
captchaEnabled?: boolean | undefined;
|
|
615
625
|
};
|
|
616
626
|
updatedAt: Date;
|
|
617
627
|
productId: string | null;
|
|
@@ -647,11 +657,14 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
647
657
|
post: {
|
|
648
658
|
"/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
|
|
649
659
|
data: {
|
|
650
|
-
type: TemplateType
|
|
660
|
+
type: TemplateType;
|
|
651
661
|
payload: {
|
|
652
|
-
code?: string | undefined;
|
|
653
662
|
link?: string | undefined;
|
|
654
|
-
|
|
663
|
+
code?: string | undefined;
|
|
664
|
+
locale?: string | undefined;
|
|
665
|
+
} & {
|
|
666
|
+
[k: string]: unknown;
|
|
667
|
+
} & {
|
|
655
668
|
senderName?: string | undefined;
|
|
656
669
|
companyInformation?: string | undefined;
|
|
657
670
|
appLogo?: string | undefined;
|
|
@@ -662,27 +675,30 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
662
675
|
} & {
|
|
663
676
|
"/services/send-sms": import("@withtyped/server").PathGuard<"/send-sms", unknown, {
|
|
664
677
|
data: {
|
|
665
|
-
type: TemplateType
|
|
678
|
+
type: TemplateType;
|
|
666
679
|
to: string;
|
|
667
680
|
payload: {
|
|
668
681
|
code?: string | undefined;
|
|
669
682
|
link?: string | undefined;
|
|
670
|
-
|
|
683
|
+
locale?: string | undefined;
|
|
684
|
+
} & {
|
|
685
|
+
[k: string]: unknown;
|
|
686
|
+
};
|
|
671
687
|
};
|
|
672
688
|
}, unknown>;
|
|
673
689
|
} & {
|
|
674
690
|
"/services/custom-jwt": import("@withtyped/server").PathGuard<"/custom-jwt", {
|
|
675
691
|
isTest?: string | undefined;
|
|
676
692
|
}, {
|
|
693
|
+
token: Record<string, Json>;
|
|
677
694
|
context: Record<string, Json>;
|
|
678
695
|
script: string;
|
|
679
696
|
tokenType: LogtoJwtTokenKeyType.AccessToken;
|
|
680
|
-
token: Record<string, Json>;
|
|
681
697
|
environmentVariables?: Record<string, string> | undefined;
|
|
682
698
|
} | {
|
|
699
|
+
token: Record<string, Json>;
|
|
683
700
|
script: string;
|
|
684
701
|
tokenType: LogtoJwtTokenKeyType.ClientCredentials;
|
|
685
|
-
token: Record<string, Json>;
|
|
686
702
|
environmentVariables?: Record<string, string> | undefined;
|
|
687
703
|
}, Record<string, unknown>>;
|
|
688
704
|
};
|
|
@@ -739,6 +755,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
739
755
|
organizationsEnabled?: boolean | undefined;
|
|
740
756
|
organizationsLimit?: number | null | undefined;
|
|
741
757
|
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
758
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
759
|
+
captchaEnabled?: boolean | undefined;
|
|
742
760
|
};
|
|
743
761
|
updatedAt: Date;
|
|
744
762
|
productId: string | null;
|
|
@@ -770,6 +788,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
770
788
|
subjectTokenEnabled?: boolean | undefined;
|
|
771
789
|
bringYourUiEnabled?: boolean | undefined;
|
|
772
790
|
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
791
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
792
|
+
captchaEnabled?: boolean | undefined;
|
|
773
793
|
};
|
|
774
794
|
} | {
|
|
775
795
|
type: LogtoSkuType.Basic;
|
|
@@ -796,6 +816,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
796
816
|
organizationsEnabled: boolean;
|
|
797
817
|
organizationsLimit: number | null;
|
|
798
818
|
idpInitiatedSsoEnabled: boolean;
|
|
819
|
+
samlApplicationsLimit: number | null;
|
|
820
|
+
captchaEnabled: boolean;
|
|
799
821
|
};
|
|
800
822
|
addOnRelations: {
|
|
801
823
|
tokenLimit: string;
|
|
@@ -828,6 +850,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
|
|
|
828
850
|
organizationsEnabled?: boolean | undefined;
|
|
829
851
|
organizationsLimit?: number | null | undefined;
|
|
830
852
|
idpInitiatedSsoEnabled?: boolean | undefined;
|
|
853
|
+
samlApplicationsLimit?: number | null | undefined;
|
|
854
|
+
captchaEnabled?: boolean | undefined;
|
|
831
855
|
};
|
|
832
856
|
}>;
|
|
833
857
|
} & {
|