@logto/cloud 0.2.5-2a72cc4 → 0.2.5-2a777a1

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.
@@ -55,6 +55,10 @@ declare enum TenantRole {
55
55
  /** Member of the tenant, who has permissions to operate the tenant data, but not the tenant settings. */
56
56
  Member = "member"
57
57
  }
58
+ declare enum LogtoJwtTokenPath {
59
+ AccessToken = "access-token",
60
+ ClientCredentials = "client-credentials"
61
+ }
58
62
  declare const AffiliateProperties: import("@withtyped/server/lib/model/index.js").default<"affiliate_properties", {
59
63
  createdAt: Date;
60
64
  affiliateId: string;
@@ -309,8 +313,14 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
309
313
  "/services/custom-jwt": import("@withtyped/server").PathGuard<"/custom-jwt", unknown, {
310
314
  script: string;
311
315
  token: Record<string, Json>;
316
+ tokenType: LogtoJwtTokenPath.AccessToken;
317
+ context: Record<string, Json>;
318
+ envVars?: Record<string, string> | undefined;
319
+ } | {
320
+ script: string;
321
+ token: Record<string, Json>;
322
+ tokenType: LogtoJwtTokenPath.ClientCredentials;
312
323
  envVars?: Record<string, string> | undefined;
313
- context?: Record<string, Json> | undefined;
314
324
  }, Record<string, unknown>>;
315
325
  };
316
326
  put: {};
@@ -466,7 +476,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
466
476
  };
467
477
  options: {};
468
478
  get: {
469
- "/invitations/:invitationId": import("@withtyped/server").PathGuard<"/:invitationId", unknown, unknown, {
479
+ "/invitations": import("@withtyped/server").PathGuard<"/", unknown, unknown, ({
470
480
  id: string;
471
481
  createdAt: number;
472
482
  status: OrganizationInvitationStatus;
@@ -474,8 +484,25 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
474
484
  updatedAt: number;
475
485
  organizationId: string;
476
486
  inviterId: string | null;
487
+ invitee: string;
477
488
  expiresAt: number;
489
+ acceptedUserId: string | null;
490
+ organizationRoles: OrganizationRoleEntity[];
491
+ } & {
492
+ tenantTag: TenantTag;
493
+ tenantName: string;
494
+ })[]>;
495
+ } & {
496
+ "/invitations/:invitationId": import("@withtyped/server").PathGuard<"/:invitationId", unknown, unknown, {
497
+ id: string;
498
+ createdAt: number;
499
+ status: OrganizationInvitationStatus;
500
+ tenantId: string;
501
+ updatedAt: number;
502
+ organizationId: string;
503
+ inviterId: string | null;
478
504
  invitee: string;
505
+ expiresAt: number;
479
506
  acceptedUserId: string | null;
480
507
  organizationRoles: OrganizationRoleEntity[];
481
508
  }>;
@@ -505,8 +532,8 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
505
532
  updatedAt: number;
506
533
  organizationId: string;
507
534
  inviterId: string | null;
508
- expiresAt: number;
509
535
  invitee: string;
536
+ expiresAt: number;
510
537
  acceptedUserId: string | null;
511
538
  organizationRoles: OrganizationRoleEntity[];
512
539
  }>;
@@ -531,8 +558,8 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
531
558
  updatedAt: number;
532
559
  organizationId: string;
533
560
  inviterId: string | null;
534
- expiresAt: number;
535
561
  invitee: string;
562
+ expiresAt: number;
536
563
  acceptedUserId: string | null;
537
564
  organizationRoles: OrganizationRoleEntity[];
538
565
  }[]>;
@@ -550,8 +577,8 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
550
577
  updatedAt: number;
551
578
  organizationId: string;
552
579
  inviterId: string | null;
553
- expiresAt: number;
554
580
  invitee: string;
581
+ expiresAt: number;
555
582
  acceptedUserId: string | null;
556
583
  organizationRoles: OrganizationRoleEntity[];
557
584
  }>;
@@ -571,6 +598,35 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
571
598
  copy: {};
572
599
  head: {};
573
600
  }, "/api/tenants">>, "/api/tenants">;
601
+ export declare const functionsRouter: import("@withtyped/server").Router<RequestContext, WithAuthContext<Omit<import("@withtyped/server").BaseContext & {
602
+ request: {
603
+ method?: import("@withtyped/server").RequestMethod | undefined;
604
+ headers: import("http").IncomingHttpHeaders;
605
+ url: URL;
606
+ body?: unknown;
607
+ };
608
+ }, "request"> & {
609
+ request: Record<string, unknown> & {
610
+ method?: import("@withtyped/server").RequestMethod | undefined;
611
+ headers: import("http").IncomingHttpHeaders;
612
+ url: URL;
613
+ body?: unknown;
614
+ } & {
615
+ body?: Json | undefined;
616
+ bodyRaw?: Buffer | undefined;
617
+ };
618
+ }>, import("@withtyped/server").MergeRoutes<import("@withtyped/server").BaseRoutes, import("@withtyped/server").RoutesWithPrefix<{
619
+ patch: {};
620
+ options: {};
621
+ get: {};
622
+ post: {
623
+ "/database-alteration": import("@withtyped/server").PathGuard<"/database-alteration", unknown, Json, unknown>;
624
+ };
625
+ put: {};
626
+ delete: {};
627
+ copy: {};
628
+ head: {};
629
+ }, "/functions">>, "/functions">;
574
630
 
575
631
  export {
576
632
  router as default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/cloud",
3
- "version": "0.2.5-2a72cc4",
3
+ "version": "0.2.5-2a777a1",
4
4
  "description": "Logto Cloud service.",
5
5
  "main": "build/index.js",
6
6
  "author": "Silverhand Inc. <contact@silverhand.io>",