@logto/cloud 0.2.5-7a187bb → 0.2.5-81f06ea

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.
@@ -88,7 +88,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
88
88
  body?: Json | undefined;
89
89
  bodyRaw?: Buffer | undefined;
90
90
  };
91
- }>, import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").BaseRoutes, import("@withtyped/server").RoutesWithPrefix<{
91
+ }>, import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").BaseRoutes, import("@withtyped/server").RoutesWithPrefix<{
92
92
  patch: {
93
93
  "/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, {
94
94
  name?: string | undefined;
@@ -284,8 +284,9 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
284
284
  data: {
285
285
  type: TemplateType | VerificationCodeType;
286
286
  payload: {
287
- link?: string | undefined;
288
287
  code?: string | undefined;
288
+ link?: string | undefined;
289
+ } & Record<string, string> & {
289
290
  senderName?: string | undefined;
290
291
  companyInformation?: string | undefined;
291
292
  appLogo?: string | undefined;
@@ -301,7 +302,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
301
302
  payload: {
302
303
  code?: string | undefined;
303
304
  link?: string | undefined;
304
- };
305
+ } & Record<string, string>;
305
306
  };
306
307
  }, unknown>;
307
308
  } & {
@@ -310,7 +311,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
310
311
  token: Record<string, Json>;
311
312
  envVars?: Record<string, string> | undefined;
312
313
  context?: Record<string, Json> | undefined;
313
- }, Json>;
314
+ }, Record<string, unknown>>;
314
315
  };
315
316
  put: {};
316
317
  delete: {};
@@ -366,23 +367,6 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
366
367
  delete: {};
367
368
  copy: {};
368
369
  head: {};
369
- }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
370
- patch: {};
371
- options: {};
372
- get: {
373
- "/my/tenant": import("@withtyped/server").PathGuard<"/tenant", unknown, unknown, {
374
- name: string;
375
- id: string;
376
- indicator: string;
377
- isSuspended: boolean;
378
- tag: TenantTag;
379
- }>;
380
- };
381
- post: {};
382
- put: {};
383
- delete: {};
384
- copy: {};
385
- head: {};
386
370
  }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
387
371
  patch: {};
388
372
  options: {};
@@ -474,21 +458,6 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
474
458
  delete: {};
475
459
  copy: {};
476
460
  head: {};
477
- }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
478
- patch: {};
479
- options: {};
480
- get: {};
481
- post: {};
482
- put: {};
483
- delete: {
484
- "/logs/expired": import("@withtyped/server").PathGuard<"/expired", {
485
- dryRun?: string | undefined;
486
- }, unknown, {
487
- affectedRows: number;
488
- }>;
489
- };
490
- copy: {};
491
- head: {};
492
461
  }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
493
462
  patch: {
494
463
  "/invitations/:invitationId/status": import("@withtyped/server").PathGuard<"/:invitationId/status", unknown, {
@@ -496,7 +465,38 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
496
465
  }, unknown>;
497
466
  };
498
467
  options: {};
499
- get: {};
468
+ get: {
469
+ "/invitations": import("@withtyped/server").PathGuard<"/", unknown, unknown, ({
470
+ id: string;
471
+ createdAt: number;
472
+ status: OrganizationInvitationStatus;
473
+ tenantId: string;
474
+ updatedAt: number;
475
+ organizationId: string;
476
+ inviterId: string | null;
477
+ invitee: string;
478
+ expiresAt: number;
479
+ acceptedUserId: string | null;
480
+ organizationRoles: OrganizationRoleEntity[];
481
+ } & {
482
+ tenantTag: TenantTag;
483
+ tenantName: string;
484
+ })[]>;
485
+ } & {
486
+ "/invitations/:invitationId": import("@withtyped/server").PathGuard<"/:invitationId", unknown, unknown, {
487
+ id: string;
488
+ createdAt: number;
489
+ status: OrganizationInvitationStatus;
490
+ tenantId: string;
491
+ updatedAt: number;
492
+ organizationId: string;
493
+ inviterId: string | null;
494
+ invitee: string;
495
+ expiresAt: number;
496
+ acceptedUserId: string | null;
497
+ organizationRoles: OrganizationRoleEntity[];
498
+ }>;
499
+ };
500
500
  post: {};
501
501
  put: {};
502
502
  delete: {};
@@ -522,10 +522,10 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
522
522
  updatedAt: number;
523
523
  organizationId: string;
524
524
  inviterId: string | null;
525
- expiresAt: number;
526
- organizationRoles: OrganizationRoleEntity[];
527
525
  invitee: string;
526
+ expiresAt: number;
528
527
  acceptedUserId: string | null;
528
+ organizationRoles: OrganizationRoleEntity[];
529
529
  }>;
530
530
  };
531
531
  options: {};
@@ -548,16 +548,16 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
548
548
  updatedAt: number;
549
549
  organizationId: string;
550
550
  inviterId: string | null;
551
- expiresAt: number;
552
- organizationRoles: OrganizationRoleEntity[];
553
551
  invitee: string;
552
+ expiresAt: number;
554
553
  acceptedUserId: string | null;
554
+ organizationRoles: OrganizationRoleEntity[];
555
555
  }[]>;
556
556
  };
557
557
  post: {
558
558
  "/:tenantId/invitations": import("@withtyped/server").PathGuard<"/:tenantId/invitations", unknown, {
559
- roleName: TenantRole;
560
559
  invitee: string;
560
+ roleName: TenantRole;
561
561
  expiresAt?: number | undefined;
562
562
  }, {
563
563
  id: string;
@@ -567,10 +567,10 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
567
567
  updatedAt: number;
568
568
  organizationId: string;
569
569
  inviterId: string | null;
570
- expiresAt: number;
571
- organizationRoles: OrganizationRoleEntity[];
572
570
  invitee: string;
571
+ expiresAt: number;
573
572
  acceptedUserId: string | null;
573
+ organizationRoles: OrganizationRoleEntity[];
574
574
  }>;
575
575
  } & {
576
576
  "/:tenantId/invitations/:invitationId/message": import("@withtyped/server").PathGuard<"/:tenantId/invitations/:invitationId/message", unknown, unknown, unknown>;
@@ -588,6 +588,35 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
588
588
  copy: {};
589
589
  head: {};
590
590
  }, "/api/tenants">>, "/api/tenants">;
591
+ export declare const functionsRouter: import("@withtyped/server").Router<RequestContext, WithAuthContext<Omit<import("@withtyped/server").BaseContext & {
592
+ request: {
593
+ method?: import("@withtyped/server").RequestMethod | undefined;
594
+ headers: import("http").IncomingHttpHeaders;
595
+ url: URL;
596
+ body?: unknown;
597
+ };
598
+ }, "request"> & {
599
+ request: Record<string, unknown> & {
600
+ method?: import("@withtyped/server").RequestMethod | undefined;
601
+ headers: import("http").IncomingHttpHeaders;
602
+ url: URL;
603
+ body?: unknown;
604
+ } & {
605
+ body?: Json | undefined;
606
+ bodyRaw?: Buffer | undefined;
607
+ };
608
+ }>, import("@withtyped/server").MergeRoutes<import("@withtyped/server").BaseRoutes, import("@withtyped/server").RoutesWithPrefix<{
609
+ patch: {};
610
+ options: {};
611
+ get: {};
612
+ post: {
613
+ "/database-alteration": import("@withtyped/server").PathGuard<"/database-alteration", unknown, Json, unknown>;
614
+ };
615
+ put: {};
616
+ delete: {};
617
+ copy: {};
618
+ head: {};
619
+ }, "/functions">>, "/functions">;
591
620
 
592
621
  export {
593
622
  router as default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/cloud",
3
- "version": "0.2.5-7a187bb",
3
+ "version": "0.2.5-81f06ea",
4
4
  "description": "Logto Cloud service.",
5
5
  "main": "build/index.js",
6
6
  "author": "Silverhand Inc. <contact@silverhand.io>",