@logto/cloud 0.2.5-b98b019 → 0.2.5-bf6e59e

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.
@@ -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
  } & {
@@ -521,6 +527,45 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
521
527
  mauLimit: number;
522
528
  tokenLimit: number;
523
529
  }>;
530
+ } & {
531
+ "/tenants/:tenantId/subscription/add-on-skus": import("@withtyped/server").PathGuard<"/:tenantId/subscription/add-on-skus", unknown, unknown, {
532
+ tokenLimit?: {
533
+ id: string;
534
+ name: string | null;
535
+ createdAt: Date;
536
+ defaultPriceId: string | null;
537
+ unitPrice: number | null;
538
+ type: LogtoSkuType;
539
+ quota: {
540
+ auditLogsRetentionDays?: number | null | undefined;
541
+ mauLimit?: number | null | undefined;
542
+ applicationsLimit?: number | null | undefined;
543
+ thirdPartyApplicationsLimit?: number | null | undefined;
544
+ scopesPerResourceLimit?: number | null | undefined;
545
+ socialConnectorsLimit?: number | null | undefined;
546
+ userRolesLimit?: number | null | undefined;
547
+ machineToMachineRolesLimit?: number | null | undefined;
548
+ scopesPerRoleLimit?: number | null | undefined;
549
+ hooksLimit?: number | null | undefined;
550
+ customJwtEnabled?: boolean | undefined;
551
+ subjectTokenEnabled?: boolean | undefined;
552
+ bringYourUiEnabled?: boolean | undefined;
553
+ tokenLimit?: number | null | undefined;
554
+ machineToMachineLimit?: number | null | undefined;
555
+ resourcesLimit?: number | null | undefined;
556
+ enterpriseSsoLimit?: number | null | undefined;
557
+ tenantMembersLimit?: number | null | undefined;
558
+ mfaEnabled?: boolean | undefined;
559
+ organizationsEnabled?: boolean | undefined;
560
+ organizationsLimit?: number | null | undefined;
561
+ idpInitiatedSsoEnabled?: boolean | undefined;
562
+ samlApplicationsLimit?: number | null | undefined;
563
+ captchaEnabled?: boolean | undefined;
564
+ };
565
+ updatedAt: Date;
566
+ productId: string | null;
567
+ } | undefined;
568
+ }>;
524
569
  } & {
525
570
  "/tenants/:tenantId/invoices": import("@withtyped/server").PathGuard<"/:tenantId/invoices", unknown, unknown, {
526
571
  invoices: {
@@ -575,6 +620,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
575
620
  organizationsEnabled?: boolean | undefined;
576
621
  organizationsLimit?: number | null | undefined;
577
622
  idpInitiatedSsoEnabled?: boolean | undefined;
623
+ samlApplicationsLimit?: number | null | undefined;
624
+ captchaEnabled?: boolean | undefined;
578
625
  };
579
626
  updatedAt: Date;
580
627
  productId: string | null;
@@ -610,11 +657,14 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
610
657
  post: {
611
658
  "/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
612
659
  data: {
613
- type: TemplateType | VerificationCodeType;
660
+ type: TemplateType;
614
661
  payload: {
615
- code?: string | undefined;
616
662
  link?: string | undefined;
617
- } & Record<string, string> & {
663
+ code?: string | undefined;
664
+ locale?: string | undefined;
665
+ } & {
666
+ [k: string]: unknown;
667
+ } & {
618
668
  senderName?: string | undefined;
619
669
  companyInformation?: string | undefined;
620
670
  appLogo?: string | undefined;
@@ -625,27 +675,30 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
625
675
  } & {
626
676
  "/services/send-sms": import("@withtyped/server").PathGuard<"/send-sms", unknown, {
627
677
  data: {
628
- type: TemplateType | VerificationCodeType;
678
+ type: TemplateType;
629
679
  to: string;
630
680
  payload: {
631
681
  code?: string | undefined;
632
682
  link?: string | undefined;
633
- } & Record<string, string>;
683
+ locale?: string | undefined;
684
+ } & {
685
+ [k: string]: unknown;
686
+ };
634
687
  };
635
688
  }, unknown>;
636
689
  } & {
637
690
  "/services/custom-jwt": import("@withtyped/server").PathGuard<"/custom-jwt", {
638
691
  isTest?: string | undefined;
639
692
  }, {
693
+ token: Record<string, Json>;
640
694
  context: Record<string, Json>;
641
695
  script: string;
642
696
  tokenType: LogtoJwtTokenKeyType.AccessToken;
643
- token: Record<string, Json>;
644
697
  environmentVariables?: Record<string, string> | undefined;
645
698
  } | {
699
+ token: Record<string, Json>;
646
700
  script: string;
647
701
  tokenType: LogtoJwtTokenKeyType.ClientCredentials;
648
- token: Record<string, Json>;
649
702
  environmentVariables?: Record<string, string> | undefined;
650
703
  }, Record<string, unknown>>;
651
704
  };
@@ -702,6 +755,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
702
755
  organizationsEnabled?: boolean | undefined;
703
756
  organizationsLimit?: number | null | undefined;
704
757
  idpInitiatedSsoEnabled?: boolean | undefined;
758
+ samlApplicationsLimit?: number | null | undefined;
759
+ captchaEnabled?: boolean | undefined;
705
760
  };
706
761
  updatedAt: Date;
707
762
  productId: string | null;
@@ -733,6 +788,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
733
788
  subjectTokenEnabled?: boolean | undefined;
734
789
  bringYourUiEnabled?: boolean | undefined;
735
790
  idpInitiatedSsoEnabled?: boolean | undefined;
791
+ samlApplicationsLimit?: number | null | undefined;
792
+ captchaEnabled?: boolean | undefined;
736
793
  };
737
794
  } | {
738
795
  type: LogtoSkuType.Basic;
@@ -759,6 +816,11 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
759
816
  organizationsEnabled: boolean;
760
817
  organizationsLimit: number | null;
761
818
  idpInitiatedSsoEnabled: boolean;
819
+ samlApplicationsLimit: number | null;
820
+ captchaEnabled: boolean;
821
+ };
822
+ addOnRelations: {
823
+ tokenLimit: string;
762
824
  };
763
825
  }, {
764
826
  id: string;
@@ -788,6 +850,8 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
788
850
  organizationsEnabled?: boolean | undefined;
789
851
  organizationsLimit?: number | null | undefined;
790
852
  idpInitiatedSsoEnabled?: boolean | undefined;
853
+ samlApplicationsLimit?: number | null | undefined;
854
+ captchaEnabled?: boolean | undefined;
791
855
  };
792
856
  }>;
793
857
  } & {
@@ -826,7 +890,6 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
826
890
  successCallbackUrl: string;
827
891
  tenantId?: string | undefined;
828
892
  skuId?: string | undefined;
829
- planId?: string | undefined;
830
893
  tenantName?: string | undefined;
831
894
  tenantTag?: TenantTag | undefined;
832
895
  tenantRegionName?: RegionName | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/cloud",
3
- "version": "0.2.5-b98b019",
3
+ "version": "0.2.5-bf6e59e",
4
4
  "description": "Logto Cloud service.",
5
5
  "main": "build/index.js",
6
6
  "author": "Silverhand Inc. <contact@silverhand.io>",
@@ -30,7 +30,7 @@
30
30
  "prettier": "^3.0.0",
31
31
  "typescript": "^5.3.3",
32
32
  "vite-tsconfig-paths": "^5.0.0",
33
- "vitest": "^2.0.0"
33
+ "vitest": "^2.1.8"
34
34
  },
35
35
  "engines": {
36
36
  "node": "^20.9.0"