@logto/cloud 0.2.5-6c090b2 → 0.2.5-711f812

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.
Files changed (2) hide show
  1. package/lib/routes/index.d.ts +253 -66
  2. package/package.json +7 -7
@@ -37,7 +37,17 @@ declare enum OrganizationInvitationStatus {
37
37
  Expired = "Expired",
38
38
  Revoked = "Revoked"
39
39
  }
40
- declare enum LogtoJwtTokenPath {
40
+ /** The scopes (permissions) defined by the organization template. */
41
+ export type OrganizationScope = {
42
+ tenantId: string;
43
+ /** The globally unique identifier of the organization scope. */
44
+ id: string;
45
+ /** The organization scope's name, unique within the organization template. */
46
+ name: string;
47
+ /** A brief description of the organization scope. */
48
+ description: string | null;
49
+ };
50
+ declare enum LogtoJwtTokenKeyType {
41
51
  AccessToken = "access-token",
42
52
  ClientCredentials = "client-credentials"
43
53
  }
@@ -59,6 +69,36 @@ declare enum TenantRole {
59
69
  /** Collaborator of the tenant, who has permissions to operate the tenant data, but not the tenant settings. */
60
70
  Collaborator = "collaborator"
61
71
  }
72
+ declare enum ReservedPlanId {
73
+ Free = "free",
74
+ /**
75
+ * @deprecated
76
+ * In recent refactoring, the `hobby` plan is now treated as the `pro` plan.
77
+ * Only use this plan ID to check if a plan is a `pro` plan or not.
78
+ * This plan ID will be renamed to `pro` after legacy Stripe data is migrated by @darcyYe
79
+ *
80
+ * Todo @darcyYe:
81
+ * - LOG-7846: Rename `hobby` to `pro` and `pro` to `legacy-pro`
82
+ * - LOG-8339: Migrate legacy Stripe data
83
+ */
84
+ Hobby = "hobby",
85
+ Pro = "pro",
86
+ /**
87
+ * @deprecated
88
+ * Should not use this plan ID, we only use this tag as a record for the legacy `pro` plan since we will rename the `hobby` plan to be `pro`.
89
+ */
90
+ GrandfatheredPro = "grandfathered-pro",
91
+ Development = "dev",
92
+ /**
93
+ * This plan ID is reserved for Admin tenant.
94
+ * In our new pricing model, we plan to add a special plan for Admin tenant, previously, admin tenant is using the `pro` plan, which is not suitable.
95
+ */
96
+ Admin = "admin"
97
+ }
98
+ declare enum LogtoSkuType {
99
+ Basic = "Basic",
100
+ AddOn = "AddOn"
101
+ }
62
102
  declare const AffiliateProperties: import("@withtyped/server/lib/model/index.js").default<"affiliate_properties", {
63
103
  createdAt: Date;
64
104
  affiliateId: string;
@@ -72,11 +112,16 @@ declare const Affiliates: import("@withtyped/server/lib/model/index.js").default
72
112
  id: string;
73
113
  }, "id" | "createdAt", "id" | "createdAt">;
74
114
  export type Affiliate = InferModelType<typeof Affiliates>;
115
+ declare enum RegionName {
116
+ EU = "EU",
117
+ US = "US"
118
+ }
75
119
  export type AffiliateData = Affiliate & {
76
120
  properties: Array<Pick<AffiliateProperty, "type" | "value">>;
77
121
  };
78
122
  declare const router: import("@withtyped/server").Router<RequestContext, WithAuthContext<Omit<import("@withtyped/server").BaseContext & {
79
123
  request: {
124
+ id?: string | undefined;
80
125
  method?: import("@withtyped/server").RequestMethod | undefined;
81
126
  headers: import("http").IncomingHttpHeaders;
82
127
  url: URL;
@@ -84,6 +129,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
84
129
  };
85
130
  }, "request"> & {
86
131
  request: Record<string, unknown> & {
132
+ id?: string | undefined;
87
133
  method?: import("@withtyped/server").RequestMethod | undefined;
88
134
  headers: import("http").IncomingHttpHeaders;
89
135
  url: URL;
@@ -92,13 +138,14 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
92
138
  body?: Json | undefined;
93
139
  bodyRaw?: Buffer | undefined;
94
140
  };
95
- }>, 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<{
141
+ }>, 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<{
96
142
  patch: {
97
143
  "/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, {
98
144
  name?: string | undefined;
99
145
  }, {
100
146
  id: string;
101
147
  name: string;
148
+ createdAt: Date;
102
149
  usage: {
103
150
  activeUsers: number;
104
151
  cost: number;
@@ -112,7 +159,10 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
112
159
  planId: string;
113
160
  currentPeriodStart: Date;
114
161
  currentPeriodEnd: Date;
162
+ id?: string | undefined;
115
163
  };
164
+ regionName: RegionName;
165
+ tag: TenantTag;
116
166
  openInvoices: {
117
167
  status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
118
168
  id: string;
@@ -128,7 +178,6 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
128
178
  hostedInvoiceUrl: string | null;
129
179
  invoicePdf: string | null;
130
180
  }[];
131
- tag: TenantTag;
132
181
  }>;
133
182
  };
134
183
  options: {};
@@ -136,6 +185,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
136
185
  "/tenants": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
137
186
  id: string;
138
187
  name: string;
188
+ createdAt: Date;
139
189
  usage: {
140
190
  activeUsers: number;
141
191
  cost: number;
@@ -149,7 +199,10 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
149
199
  planId: string;
150
200
  currentPeriodStart: Date;
151
201
  currentPeriodEnd: Date;
202
+ id?: string | undefined;
152
203
  };
204
+ regionName: RegionName;
205
+ tag: TenantTag;
153
206
  openInvoices: {
154
207
  status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
155
208
  id: string;
@@ -165,16 +218,17 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
165
218
  hostedInvoiceUrl: string | null;
166
219
  invoicePdf: string | null;
167
220
  }[];
168
- tag: TenantTag;
169
221
  }[]>;
170
222
  };
171
223
  post: {
172
224
  "/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
173
225
  name?: string | undefined;
174
226
  tag?: TenantTag | undefined;
227
+ regionName?: RegionName | undefined;
175
228
  }, {
176
229
  id: string;
177
230
  name: string;
231
+ createdAt: Date;
178
232
  usage: {
179
233
  activeUsers: number;
180
234
  cost: number;
@@ -188,7 +242,10 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
188
242
  planId: string;
189
243
  currentPeriodStart: Date;
190
244
  currentPeriodEnd: Date;
245
+ id?: string | undefined;
191
246
  };
247
+ regionName: RegionName;
248
+ tag: TenantTag;
192
249
  openInvoices: {
193
250
  status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
194
251
  id: string;
@@ -204,7 +261,6 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
204
261
  hostedInvoiceUrl: string | null;
205
262
  invoicePdf: string | null;
206
263
  }[];
207
- tag: TenantTag;
208
264
  }>;
209
265
  };
210
266
  put: {};
@@ -222,6 +278,50 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
222
278
  planId: string;
223
279
  currentPeriodStart: Date;
224
280
  currentPeriodEnd: Date;
281
+ id?: string | undefined;
282
+ }>;
283
+ } & {
284
+ "/tenants/my/subscription/quota": import("@withtyped/server").PathGuard<"/my/subscription/quota", unknown, unknown, {
285
+ mauLimit: number | null;
286
+ tokenLimit: number | null;
287
+ applicationsLimit: number | null;
288
+ machineToMachineLimit: number | null;
289
+ resourcesLimit: number | null;
290
+ scopesPerResourceLimit: number | null;
291
+ socialConnectorsLimit: number | null;
292
+ machineToMachineRolesLimit: number | null;
293
+ scopesPerRoleLimit: number | null;
294
+ hooksLimit: number | null;
295
+ auditLogsRetentionDays: number | null;
296
+ mfaEnabled: boolean;
297
+ organizationsEnabled: boolean;
298
+ thirdPartyApplicationsLimit: number | null;
299
+ tenantMembersLimit: number | null;
300
+ customJwtEnabled: boolean;
301
+ subjectTokenEnabled: boolean;
302
+ userRolesLimit: number | null;
303
+ enterpriseSsoLimit: number | null;
304
+ }>;
305
+ } & {
306
+ "/tenants/my/subscription/usage": import("@withtyped/server").PathGuard<"/my/subscription/usage", unknown, unknown, {
307
+ mauLimit: number;
308
+ tokenLimit: number;
309
+ applicationsLimit: number;
310
+ machineToMachineLimit: number;
311
+ resourcesLimit: number;
312
+ scopesPerResourceLimit: number;
313
+ socialConnectorsLimit: number;
314
+ machineToMachineRolesLimit: number;
315
+ scopesPerRoleLimit: number;
316
+ hooksLimit: number;
317
+ mfaEnabled: boolean;
318
+ organizationsEnabled: boolean;
319
+ thirdPartyApplicationsLimit: number;
320
+ tenantMembersLimit: number;
321
+ customJwtEnabled: boolean;
322
+ subjectTokenEnabled: boolean;
323
+ userRolesLimit: number;
324
+ enterpriseSsoLimit: number;
225
325
  }>;
226
326
  } & {
227
327
  "/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, {
@@ -229,6 +329,50 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
229
329
  planId: string;
230
330
  currentPeriodStart: Date;
231
331
  currentPeriodEnd: Date;
332
+ id?: string | undefined;
333
+ }>;
334
+ } & {
335
+ "/tenants/:tenantId/subscription/quota": import("@withtyped/server").PathGuard<"/:tenantId/subscription/quota", unknown, unknown, {
336
+ mauLimit: number | null;
337
+ tokenLimit: number | null;
338
+ applicationsLimit: number | null;
339
+ machineToMachineLimit: number | null;
340
+ resourcesLimit: number | null;
341
+ scopesPerResourceLimit: number | null;
342
+ socialConnectorsLimit: number | null;
343
+ machineToMachineRolesLimit: number | null;
344
+ scopesPerRoleLimit: number | null;
345
+ hooksLimit: number | null;
346
+ auditLogsRetentionDays: number | null;
347
+ mfaEnabled: boolean;
348
+ organizationsEnabled: boolean;
349
+ thirdPartyApplicationsLimit: number | null;
350
+ tenantMembersLimit: number | null;
351
+ customJwtEnabled: boolean;
352
+ subjectTokenEnabled: boolean;
353
+ userRolesLimit: number | null;
354
+ enterpriseSsoLimit: number | null;
355
+ }>;
356
+ } & {
357
+ "/tenants/:tenantId/subscription/usage": import("@withtyped/server").PathGuard<"/:tenantId/subscription/usage", unknown, unknown, {
358
+ mauLimit: number;
359
+ tokenLimit: number;
360
+ applicationsLimit: number;
361
+ machineToMachineLimit: number;
362
+ resourcesLimit: number;
363
+ scopesPerResourceLimit: number;
364
+ socialConnectorsLimit: number;
365
+ machineToMachineRolesLimit: number;
366
+ scopesPerRoleLimit: number;
367
+ hooksLimit: number;
368
+ mfaEnabled: boolean;
369
+ organizationsEnabled: boolean;
370
+ thirdPartyApplicationsLimit: number;
371
+ tenantMembersLimit: number;
372
+ customJwtEnabled: boolean;
373
+ subjectTokenEnabled: boolean;
374
+ userRolesLimit: number;
375
+ enterpriseSsoLimit: number;
232
376
  }>;
233
377
  } & {
234
378
  "/tenants/:tenantId/invoices": import("@withtyped/server").PathGuard<"/:tenantId/invoices", unknown, unknown, {
@@ -310,21 +454,36 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
310
454
  };
311
455
  }, unknown>;
312
456
  } & {
313
- "/services/custom-jwt": import("@withtyped/server").PathGuard<"/custom-jwt", unknown, {
457
+ "/services/custom-jwt": import("@withtyped/server").PathGuard<"/custom-jwt", {
458
+ isTest?: string | undefined;
459
+ }, {
460
+ context: Record<string, Json>;
314
461
  script: string;
315
- tokenType: LogtoJwtTokenPath.AccessToken;
462
+ tokenType: LogtoJwtTokenKeyType.AccessToken;
316
463
  token: Record<string, Json>;
317
- context: Record<string, Json>;
318
- envVars?: Record<string, string> | undefined;
464
+ environmentVariables?: Record<string, string> | undefined;
319
465
  } | {
320
466
  script: string;
321
- tokenType: LogtoJwtTokenPath.ClientCredentials;
467
+ tokenType: LogtoJwtTokenKeyType.ClientCredentials;
322
468
  token: Record<string, Json>;
323
- envVars?: Record<string, string> | undefined;
469
+ environmentVariables?: Record<string, string> | undefined;
324
470
  }, Record<string, unknown>>;
325
471
  };
326
- put: {};
327
- delete: {};
472
+ put: {
473
+ "/services/custom-jwt/worker": import("@withtyped/server").PathGuard<"/custom-jwt/worker", unknown, {
474
+ "jwt.accessToken"?: {
475
+ production?: string | undefined;
476
+ test?: string | undefined;
477
+ } | undefined;
478
+ "jwt.clientCredentials"?: {
479
+ production?: string | undefined;
480
+ test?: string | undefined;
481
+ } | undefined;
482
+ }, unknown>;
483
+ };
484
+ delete: {
485
+ "/services/custom-jwt/worker": import("@withtyped/server").PathGuard<"/custom-jwt/worker", unknown, unknown, unknown>;
486
+ };
328
487
  copy: {};
329
488
  head: {};
330
489
  }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
@@ -336,18 +495,6 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
336
495
  createdAt: Date;
337
496
  name: string;
338
497
  updatedAt: Date;
339
- stripeProducts: {
340
- type: "flat" | "tier1" | "tier2" | "tier3";
341
- id: string;
342
- name: string;
343
- price: {
344
- id: string;
345
- unitAmountDecimal: string;
346
- quantity?: 1 | undefined;
347
- unitAmount?: number | null | undefined;
348
- };
349
- description?: string | undefined;
350
- }[];
351
498
  quota: {
352
499
  mauLimit: number | null;
353
500
  tokenLimit: number | null;
@@ -369,6 +516,60 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
369
516
  organizationsEnabled: boolean;
370
517
  ssoEnabled: boolean;
371
518
  thirdPartyApplicationsLimit: number | null;
519
+ tenantMembersLimit: number | null;
520
+ customJwtEnabled: boolean;
521
+ subjectTokenEnabled: boolean;
522
+ };
523
+ stripeProducts: {
524
+ type: "flat" | "tier1" | "tier2" | "tier3";
525
+ id: string;
526
+ name: string;
527
+ price: {
528
+ id: string;
529
+ unitAmountDecimal: string;
530
+ quantity?: 1 | undefined;
531
+ unitAmount?: number | null | undefined;
532
+ };
533
+ description?: string | undefined;
534
+ }[];
535
+ }[]>;
536
+ };
537
+ post: {};
538
+ put: {};
539
+ delete: {};
540
+ copy: {};
541
+ head: {};
542
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
543
+ patch: {};
544
+ options: {};
545
+ get: {
546
+ "/skus": import("@withtyped/server").PathGuard<"/", {
547
+ isBasicSkuOnly?: string | undefined;
548
+ }, unknown, {
549
+ id: string;
550
+ createdAt: Date;
551
+ type: LogtoSkuType;
552
+ updatedAt: Date;
553
+ quota: {
554
+ mauLimit?: number | null | undefined;
555
+ applicationsLimit?: number | null | undefined;
556
+ thirdPartyApplicationsLimit?: number | null | undefined;
557
+ scopesPerResourceLimit?: number | null | undefined;
558
+ socialConnectorsLimit?: number | null | undefined;
559
+ userRolesLimit?: number | null | undefined;
560
+ machineToMachineRolesLimit?: number | null | undefined;
561
+ scopesPerRoleLimit?: number | null | undefined;
562
+ hooksLimit?: number | null | undefined;
563
+ auditLogsRetentionDays?: number | null | undefined;
564
+ customJwtEnabled?: boolean | undefined;
565
+ subjectTokenEnabled?: boolean | undefined;
566
+ tokenLimit?: number | null | undefined;
567
+ machineToMachineLimit?: number | null | undefined;
568
+ resourcesLimit?: number | null | undefined;
569
+ enterpriseSsoLimit?: number | null | undefined;
570
+ tenantMembersLimit?: number | null | undefined;
571
+ mfaEnabled?: boolean | undefined;
572
+ organizationsEnabled?: boolean | undefined;
372
573
  };
373
574
  }[]>;
374
575
  };
@@ -393,12 +594,13 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
393
594
  };
394
595
  post: {
395
596
  "/checkout-session": import("@withtyped/server").PathGuard<"/", unknown, {
396
- planId: string;
597
+ planId: ReservedPlanId;
397
598
  successCallbackUrl: string;
398
599
  tenantId?: string | undefined;
399
600
  cancelCallbackUrl?: string | undefined;
400
601
  tenantTag?: TenantTag | undefined;
401
602
  tenantName?: string | undefined;
603
+ tenantRegionName?: RegionName | undefined;
402
604
  }, {
403
605
  sessionId: string;
404
606
  redirectUri?: string | null | undefined;
@@ -482,15 +684,15 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
482
684
  status: OrganizationInvitationStatus;
483
685
  tenantId: string;
484
686
  updatedAt: number;
485
- organizationId: string;
486
687
  inviterId: string | null;
487
688
  invitee: string;
488
- expiresAt: number;
489
689
  acceptedUserId: string | null;
690
+ organizationId: string;
691
+ expiresAt: number;
490
692
  organizationRoles: OrganizationRoleEntity[];
491
693
  } & {
492
- tenantTag: TenantTag;
493
694
  tenantName: string;
695
+ tenantTag: TenantTag;
494
696
  })[]>;
495
697
  } & {
496
698
  "/invitations/:invitationId": import("@withtyped/server").PathGuard<"/:invitationId", unknown, unknown, {
@@ -499,11 +701,11 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
499
701
  status: OrganizationInvitationStatus;
500
702
  tenantId: string;
501
703
  updatedAt: number;
502
- organizationId: string;
503
704
  inviterId: string | null;
504
705
  invitee: string;
505
- expiresAt: number;
506
706
  acceptedUserId: string | null;
707
+ organizationId: string;
708
+ expiresAt: number;
507
709
  organizationRoles: OrganizationRoleEntity[];
508
710
  }>;
509
711
  };
@@ -512,9 +714,21 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
512
714
  delete: {};
513
715
  copy: {};
514
716
  head: {};
717
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
718
+ patch: {};
719
+ options: {};
720
+ get: {};
721
+ post: {};
722
+ put: {};
723
+ delete: {
724
+ "/me": import("@withtyped/server").PathGuard<"/", unknown, unknown, unknown>;
725
+ };
726
+ copy: {};
727
+ head: {};
515
728
  }, "/api">>, "/api">;
516
729
  export declare const tenantAuthRouter: import("@withtyped/server").Router<RequestContext, import("@withtyped/server").WithBodyContext<import("@withtyped/server").BaseContext & {
517
730
  request: {
731
+ id?: string | undefined;
518
732
  method?: import("@withtyped/server").RequestMethod | undefined;
519
733
  headers: import("http").IncomingHttpHeaders;
520
734
  url: URL;
@@ -530,11 +744,11 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
530
744
  status: OrganizationInvitationStatus;
531
745
  tenantId: string;
532
746
  updatedAt: number;
533
- organizationId: string;
534
747
  inviterId: string | null;
535
748
  invitee: string;
536
- expiresAt: number;
537
749
  acceptedUserId: string | null;
750
+ organizationId: string;
751
+ expiresAt: number;
538
752
  organizationRoles: OrganizationRoleEntity[];
539
753
  }>;
540
754
  };
@@ -549,6 +763,8 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
549
763
  avatar: string | null;
550
764
  organizationRoles: OrganizationRoleEntity[];
551
765
  }[]>;
766
+ } & {
767
+ "/:tenantId/members/:userId/scopes": import("@withtyped/server").PathGuard<"/:tenantId/members/:userId/scopes", unknown, unknown, OrganizationScope[]>;
552
768
  } & {
553
769
  "/:tenantId/invitations": import("@withtyped/server").PathGuard<"/:tenantId/invitations", unknown, unknown, ({
554
770
  id: string;
@@ -556,11 +772,11 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
556
772
  status: OrganizationInvitationStatus;
557
773
  tenantId: string;
558
774
  updatedAt: number;
559
- organizationId: string;
560
775
  inviterId: string | null;
561
776
  invitee: string;
562
- expiresAt: number;
563
777
  acceptedUserId: string | null;
778
+ organizationId: string;
779
+ expiresAt: number;
564
780
  organizationRoles: OrganizationRoleEntity[];
565
781
  } & {
566
782
  inviterName?: string | undefined;
@@ -577,11 +793,11 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
577
793
  status: OrganizationInvitationStatus;
578
794
  tenantId: string;
579
795
  updatedAt: number;
580
- organizationId: string;
581
796
  inviterId: string | null;
582
797
  invitee: string;
583
- expiresAt: number;
584
798
  acceptedUserId: string | null;
799
+ organizationId: string;
800
+ expiresAt: number;
585
801
  organizationRoles: OrganizationRoleEntity[];
586
802
  }>;
587
803
  } & {
@@ -600,35 +816,6 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
600
816
  copy: {};
601
817
  head: {};
602
818
  }, "/api/tenants">>, "/api/tenants">;
603
- export declare const functionsRouter: import("@withtyped/server").Router<RequestContext, WithAuthContext<Omit<import("@withtyped/server").BaseContext & {
604
- request: {
605
- method?: import("@withtyped/server").RequestMethod | undefined;
606
- headers: import("http").IncomingHttpHeaders;
607
- url: URL;
608
- body?: unknown;
609
- };
610
- }, "request"> & {
611
- request: Record<string, unknown> & {
612
- method?: import("@withtyped/server").RequestMethod | undefined;
613
- headers: import("http").IncomingHttpHeaders;
614
- url: URL;
615
- body?: unknown;
616
- } & {
617
- body?: Json | undefined;
618
- bodyRaw?: Buffer | undefined;
619
- };
620
- }>, import("@withtyped/server").MergeRoutes<import("@withtyped/server").BaseRoutes, import("@withtyped/server").RoutesWithPrefix<{
621
- patch: {};
622
- options: {};
623
- get: {};
624
- post: {
625
- "/database-alteration": import("@withtyped/server").PathGuard<"/database-alteration", unknown, Json, unknown>;
626
- };
627
- put: {};
628
- delete: {};
629
- copy: {};
630
- head: {};
631
- }, "/functions">>, "/functions">;
632
819
 
633
820
  export {
634
821
  router as default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/cloud",
3
- "version": "0.2.5-6c090b2",
3
+ "version": "0.2.5-711f812",
4
4
  "description": "Logto Cloud service.",
5
5
  "main": "build/index.js",
6
6
  "author": "Silverhand Inc. <contact@silverhand.io>",
@@ -16,21 +16,21 @@
16
16
  "#src/*": "./build/*"
17
17
  },
18
18
  "devDependencies": {
19
- "@silverhand/eslint-config": "5.0.0",
20
- "@silverhand/ts-config": "5.0.0",
19
+ "@silverhand/eslint-config": "6.0.1",
20
+ "@silverhand/ts-config": "6.0.0",
21
21
  "@types/accepts": "^1.3.5",
22
22
  "@types/http-proxy": "^1.17.9",
23
23
  "@types/mime-types": "^2.1.1",
24
24
  "@types/node": "^20.0.0",
25
25
  "@types/yargs": "^17.0.24",
26
26
  "dts-bundle-generator": "^9.3.1",
27
- "eslint": "^8.44.0",
27
+ "eslint": "^8.57.0",
28
28
  "lint-staged": "^15.0.0",
29
29
  "nodemon": "^3.0.0",
30
30
  "prettier": "^3.0.0",
31
31
  "typescript": "^5.3.3",
32
32
  "vite-tsconfig-paths": "^4.3.1",
33
- "vitest": "^1.0.0"
33
+ "vitest": "^1.5.0"
34
34
  },
35
35
  "engines": {
36
36
  "node": "^20.9.0"
@@ -49,8 +49,8 @@
49
49
  "access": "public"
50
50
  },
51
51
  "dependencies": {
52
- "@silverhand/essentials": "^2.9.0",
53
- "@withtyped/server": "^0.13.3"
52
+ "@silverhand/essentials": "^2.9.1",
53
+ "@withtyped/server": "^0.13.6"
54
54
  },
55
55
  "scripts": {
56
56
  "precommit": "lint-staged",