@logto/cloud 0.2.5-81f06ea → 0.2.5-923c26f

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 +288 -67
  2. package/package.json +7 -7
@@ -37,6 +37,20 @@ declare enum OrganizationInvitationStatus {
37
37
  Expired = "Expired",
38
38
  Revoked = "Revoked"
39
39
  }
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 {
51
+ AccessToken = "access-token",
52
+ ClientCredentials = "client-credentials"
53
+ }
40
54
  /**
41
55
  * The simplified organization role entity that is returned in the `roles` field
42
56
  * of the organization.
@@ -52,8 +66,12 @@ declare enum TenantTag {
52
66
  declare enum TenantRole {
53
67
  /** Admin of the tenant, who has all permissions. */
54
68
  Admin = "admin",
55
- /** Member of the tenant, who has permissions to operate the tenant data, but not the tenant settings. */
56
- Member = "member"
69
+ /** Collaborator of the tenant, who has permissions to operate the tenant data, but not the tenant settings. */
70
+ Collaborator = "collaborator"
71
+ }
72
+ declare enum LogtoSkuType {
73
+ Basic = "Basic",
74
+ AddOn = "AddOn"
57
75
  }
58
76
  declare const AffiliateProperties: import("@withtyped/server/lib/model/index.js").default<"affiliate_properties", {
59
77
  createdAt: Date;
@@ -68,11 +86,16 @@ declare const Affiliates: import("@withtyped/server/lib/model/index.js").default
68
86
  id: string;
69
87
  }, "id" | "createdAt", "id" | "createdAt">;
70
88
  export type Affiliate = InferModelType<typeof Affiliates>;
89
+ declare enum RegionName {
90
+ EU = "EU",
91
+ US = "US"
92
+ }
71
93
  export type AffiliateData = Affiliate & {
72
94
  properties: Array<Pick<AffiliateProperty, "type" | "value">>;
73
95
  };
74
96
  declare const router: import("@withtyped/server").Router<RequestContext, WithAuthContext<Omit<import("@withtyped/server").BaseContext & {
75
97
  request: {
98
+ id?: string | undefined;
76
99
  method?: import("@withtyped/server").RequestMethod | undefined;
77
100
  headers: import("http").IncomingHttpHeaders;
78
101
  url: URL;
@@ -80,6 +103,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
80
103
  };
81
104
  }, "request"> & {
82
105
  request: Record<string, unknown> & {
106
+ id?: string | undefined;
83
107
  method?: import("@withtyped/server").RequestMethod | undefined;
84
108
  headers: import("http").IncomingHttpHeaders;
85
109
  url: URL;
@@ -88,13 +112,14 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
88
112
  body?: Json | undefined;
89
113
  bodyRaw?: Buffer | undefined;
90
114
  };
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<{
115
+ }>, 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<{
92
116
  patch: {
93
117
  "/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, {
94
118
  name?: string | undefined;
95
119
  }, {
96
120
  id: string;
97
121
  name: string;
122
+ createdAt: Date;
98
123
  usage: {
99
124
  activeUsers: number;
100
125
  cost: number;
@@ -108,7 +133,16 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
108
133
  planId: string;
109
134
  currentPeriodStart: Date;
110
135
  currentPeriodEnd: Date;
136
+ id?: string | undefined;
137
+ upcomingInvoice?: {
138
+ subtotal: number;
139
+ subtotalExcludingTax: number | null;
140
+ total: number;
141
+ totalExcludingTax: number | null;
142
+ } | null | undefined;
111
143
  };
144
+ regionName: RegionName;
145
+ tag: TenantTag;
112
146
  openInvoices: {
113
147
  status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
114
148
  id: string;
@@ -124,7 +158,6 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
124
158
  hostedInvoiceUrl: string | null;
125
159
  invoicePdf: string | null;
126
160
  }[];
127
- tag: TenantTag;
128
161
  }>;
129
162
  };
130
163
  options: {};
@@ -132,6 +165,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
132
165
  "/tenants": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
133
166
  id: string;
134
167
  name: string;
168
+ createdAt: Date;
135
169
  usage: {
136
170
  activeUsers: number;
137
171
  cost: number;
@@ -145,7 +179,16 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
145
179
  planId: string;
146
180
  currentPeriodStart: Date;
147
181
  currentPeriodEnd: Date;
182
+ id?: string | undefined;
183
+ upcomingInvoice?: {
184
+ subtotal: number;
185
+ subtotalExcludingTax: number | null;
186
+ total: number;
187
+ totalExcludingTax: number | null;
188
+ } | null | undefined;
148
189
  };
190
+ regionName: RegionName;
191
+ tag: TenantTag;
149
192
  openInvoices: {
150
193
  status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
151
194
  id: string;
@@ -161,16 +204,17 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
161
204
  hostedInvoiceUrl: string | null;
162
205
  invoicePdf: string | null;
163
206
  }[];
164
- tag: TenantTag;
165
207
  }[]>;
166
208
  };
167
209
  post: {
168
210
  "/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
169
211
  name?: string | undefined;
170
212
  tag?: TenantTag | undefined;
213
+ regionName?: RegionName | undefined;
171
214
  }, {
172
215
  id: string;
173
216
  name: string;
217
+ createdAt: Date;
174
218
  usage: {
175
219
  activeUsers: number;
176
220
  cost: number;
@@ -184,7 +228,16 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
184
228
  planId: string;
185
229
  currentPeriodStart: Date;
186
230
  currentPeriodEnd: Date;
231
+ id?: string | undefined;
232
+ upcomingInvoice?: {
233
+ subtotal: number;
234
+ subtotalExcludingTax: number | null;
235
+ total: number;
236
+ totalExcludingTax: number | null;
237
+ } | null | undefined;
187
238
  };
239
+ regionName: RegionName;
240
+ tag: TenantTag;
188
241
  openInvoices: {
189
242
  status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
190
243
  id: string;
@@ -200,7 +253,6 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
200
253
  hostedInvoiceUrl: string | null;
201
254
  invoicePdf: string | null;
202
255
  }[];
203
- tag: TenantTag;
204
256
  }>;
205
257
  };
206
258
  put: {};
@@ -218,14 +270,126 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
218
270
  planId: string;
219
271
  currentPeriodStart: Date;
220
272
  currentPeriodEnd: Date;
273
+ id?: string | undefined;
274
+ upcomingInvoice?: {
275
+ subtotal: number;
276
+ subtotalExcludingTax: number | null;
277
+ total: number;
278
+ totalExcludingTax: number | null;
279
+ } | null | undefined;
280
+ }>;
281
+ } & {
282
+ "/tenants/my/subscription/quota": import("@withtyped/server").PathGuard<"/my/subscription/quota", unknown, unknown, {
283
+ mauLimit: number | null;
284
+ tokenLimit: number | null;
285
+ applicationsLimit: number | null;
286
+ machineToMachineLimit: number | null;
287
+ resourcesLimit: number | null;
288
+ scopesPerResourceLimit: number | null;
289
+ socialConnectorsLimit: number | null;
290
+ machineToMachineRolesLimit: number | null;
291
+ scopesPerRoleLimit: number | null;
292
+ hooksLimit: number | null;
293
+ auditLogsRetentionDays: number | null;
294
+ mfaEnabled: boolean;
295
+ organizationsEnabled: boolean;
296
+ thirdPartyApplicationsLimit: number | null;
297
+ tenantMembersLimit: number | null;
298
+ customJwtEnabled: boolean;
299
+ subjectTokenEnabled: boolean;
300
+ bringYourUiEnabled: boolean;
301
+ userRolesLimit: number | null;
302
+ enterpriseSsoLimit: number | null;
303
+ }>;
304
+ } & {
305
+ "/tenants/my/subscription/usage": import("@withtyped/server").PathGuard<"/my/subscription/usage", unknown, unknown, {
306
+ mauLimit: number;
307
+ tokenLimit: number;
308
+ applicationsLimit: number;
309
+ machineToMachineLimit: number;
310
+ resourcesLimit: number;
311
+ scopesPerResourceLimit: number;
312
+ socialConnectorsLimit: number;
313
+ machineToMachineRolesLimit: number;
314
+ scopesPerRoleLimit: number;
315
+ hooksLimit: number;
316
+ mfaEnabled: boolean;
317
+ organizationsEnabled: boolean;
318
+ thirdPartyApplicationsLimit: number;
319
+ tenantMembersLimit: number;
320
+ customJwtEnabled: boolean;
321
+ subjectTokenEnabled: boolean;
322
+ bringYourUiEnabled: boolean;
323
+ userRolesLimit: number;
324
+ enterpriseSsoLimit: number;
221
325
  }>;
326
+ } & {
327
+ "/tenants/my/subscription/usage/:entityName/scopes": import("@withtyped/server").PathGuard<"/my/subscription/usage/:entityName/scopes", {
328
+ entityId?: string | undefined;
329
+ }, unknown, Record<string, number>>;
222
330
  } & {
223
331
  "/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, {
224
332
  status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
225
333
  planId: string;
226
334
  currentPeriodStart: Date;
227
335
  currentPeriodEnd: Date;
336
+ id?: string | undefined;
337
+ upcomingInvoice?: {
338
+ subtotal: number;
339
+ subtotalExcludingTax: number | null;
340
+ total: number;
341
+ totalExcludingTax: number | null;
342
+ } | null | undefined;
228
343
  }>;
344
+ } & {
345
+ "/tenants/:tenantId/subscription/quota": import("@withtyped/server").PathGuard<"/:tenantId/subscription/quota", unknown, unknown, {
346
+ mauLimit: number | null;
347
+ tokenLimit: number | null;
348
+ applicationsLimit: number | null;
349
+ machineToMachineLimit: number | null;
350
+ resourcesLimit: number | null;
351
+ scopesPerResourceLimit: number | null;
352
+ socialConnectorsLimit: number | null;
353
+ machineToMachineRolesLimit: number | null;
354
+ scopesPerRoleLimit: number | null;
355
+ hooksLimit: number | null;
356
+ auditLogsRetentionDays: number | null;
357
+ mfaEnabled: boolean;
358
+ organizationsEnabled: boolean;
359
+ thirdPartyApplicationsLimit: number | null;
360
+ tenantMembersLimit: number | null;
361
+ customJwtEnabled: boolean;
362
+ subjectTokenEnabled: boolean;
363
+ bringYourUiEnabled: boolean;
364
+ userRolesLimit: number | null;
365
+ enterpriseSsoLimit: number | null;
366
+ }>;
367
+ } & {
368
+ "/tenants/:tenantId/subscription/usage": import("@withtyped/server").PathGuard<"/:tenantId/subscription/usage", unknown, unknown, {
369
+ mauLimit: number;
370
+ tokenLimit: number;
371
+ applicationsLimit: number;
372
+ machineToMachineLimit: number;
373
+ resourcesLimit: number;
374
+ scopesPerResourceLimit: number;
375
+ socialConnectorsLimit: number;
376
+ machineToMachineRolesLimit: number;
377
+ scopesPerRoleLimit: number;
378
+ hooksLimit: number;
379
+ mfaEnabled: boolean;
380
+ organizationsEnabled: boolean;
381
+ thirdPartyApplicationsLimit: number;
382
+ tenantMembersLimit: number;
383
+ customJwtEnabled: boolean;
384
+ subjectTokenEnabled: boolean;
385
+ bringYourUiEnabled: boolean;
386
+ userRolesLimit: number;
387
+ enterpriseSsoLimit: number;
388
+ }>;
389
+ } & {
390
+ "/tenants/:tenantId/subscription/usage/:entityName/scopes": import("@withtyped/server").PathGuard<"/:tenantId/subscription/usage/:entityName/scopes", {
391
+ entityId?: string | undefined;
392
+ }, unknown, Record<string, number>>;
229
393
  } & {
230
394
  "/tenants/:tenantId/invoices": import("@withtyped/server").PathGuard<"/:tenantId/invoices", unknown, unknown, {
231
395
  invoices: {
@@ -306,15 +470,36 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
306
470
  };
307
471
  }, unknown>;
308
472
  } & {
309
- "/services/custom-jwt": import("@withtyped/server").PathGuard<"/custom-jwt", unknown, {
473
+ "/services/custom-jwt": import("@withtyped/server").PathGuard<"/custom-jwt", {
474
+ isTest?: string | undefined;
475
+ }, {
476
+ context: Record<string, Json>;
477
+ script: string;
478
+ tokenType: LogtoJwtTokenKeyType.AccessToken;
479
+ token: Record<string, Json>;
480
+ environmentVariables?: Record<string, string> | undefined;
481
+ } | {
310
482
  script: string;
483
+ tokenType: LogtoJwtTokenKeyType.ClientCredentials;
311
484
  token: Record<string, Json>;
312
- envVars?: Record<string, string> | undefined;
313
- context?: Record<string, Json> | undefined;
485
+ environmentVariables?: Record<string, string> | undefined;
314
486
  }, Record<string, unknown>>;
315
487
  };
316
- put: {};
317
- delete: {};
488
+ put: {
489
+ "/services/custom-jwt/worker": import("@withtyped/server").PathGuard<"/custom-jwt/worker", unknown, {
490
+ "jwt.accessToken"?: {
491
+ production?: string | undefined;
492
+ test?: string | undefined;
493
+ } | undefined;
494
+ "jwt.clientCredentials"?: {
495
+ production?: string | undefined;
496
+ test?: string | undefined;
497
+ } | undefined;
498
+ }, unknown>;
499
+ };
500
+ delete: {
501
+ "/services/custom-jwt/worker": import("@withtyped/server").PathGuard<"/custom-jwt/worker", unknown, unknown, unknown>;
502
+ };
318
503
  copy: {};
319
504
  head: {};
320
505
  }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
@@ -326,18 +511,6 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
326
511
  createdAt: Date;
327
512
  name: string;
328
513
  updatedAt: Date;
329
- stripeProducts: {
330
- type: "flat" | "tier1" | "tier2" | "tier3";
331
- id: string;
332
- name: string;
333
- price: {
334
- id: string;
335
- unitAmountDecimal: string;
336
- quantity?: 1 | undefined;
337
- unitAmount?: number | null | undefined;
338
- };
339
- description?: string | undefined;
340
- }[];
341
514
  quota: {
342
515
  mauLimit: number | null;
343
516
  tokenLimit: number | null;
@@ -359,7 +532,65 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
359
532
  organizationsEnabled: boolean;
360
533
  ssoEnabled: boolean;
361
534
  thirdPartyApplicationsLimit: number | null;
535
+ tenantMembersLimit: number | null;
536
+ customJwtEnabled: boolean;
537
+ subjectTokenEnabled: boolean;
538
+ bringYourUiEnabled: boolean;
362
539
  };
540
+ stripeProducts: {
541
+ type: "flat" | "tier1" | "tier2" | "tier3";
542
+ id: string;
543
+ name: string;
544
+ price: {
545
+ id: string;
546
+ unitAmountDecimal: string;
547
+ quantity?: 1 | undefined;
548
+ unitAmount?: number | null | undefined;
549
+ };
550
+ description?: string | undefined;
551
+ }[];
552
+ }[]>;
553
+ };
554
+ post: {};
555
+ put: {};
556
+ delete: {};
557
+ copy: {};
558
+ head: {};
559
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
560
+ patch: {};
561
+ options: {};
562
+ get: {
563
+ "/skus": import("@withtyped/server").PathGuard<"/", {
564
+ type?: LogtoSkuType | undefined;
565
+ }, unknown, {
566
+ type: LogtoSkuType;
567
+ id: string;
568
+ name: string | null;
569
+ quota: {
570
+ mauLimit?: number | null | undefined;
571
+ tokenLimit?: number | null | undefined;
572
+ applicationsLimit?: number | null | undefined;
573
+ machineToMachineLimit?: number | null | undefined;
574
+ resourcesLimit?: number | null | undefined;
575
+ scopesPerResourceLimit?: number | null | undefined;
576
+ socialConnectorsLimit?: number | null | undefined;
577
+ machineToMachineRolesLimit?: number | null | undefined;
578
+ scopesPerRoleLimit?: number | null | undefined;
579
+ hooksLimit?: number | null | undefined;
580
+ auditLogsRetentionDays?: number | null | undefined;
581
+ mfaEnabled?: boolean | undefined;
582
+ organizationsEnabled?: boolean | undefined;
583
+ thirdPartyApplicationsLimit?: number | null | undefined;
584
+ tenantMembersLimit?: number | null | undefined;
585
+ customJwtEnabled?: boolean | undefined;
586
+ subjectTokenEnabled?: boolean | undefined;
587
+ bringYourUiEnabled?: boolean | undefined;
588
+ userRolesLimit?: number | null | undefined;
589
+ enterpriseSsoLimit?: number | null | undefined;
590
+ };
591
+ createdAt: Date;
592
+ updatedAt: Date;
593
+ unitPrice: number | null;
363
594
  }[]>;
364
595
  };
365
596
  post: {};
@@ -379,6 +610,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
379
610
  tenantId: string | null;
380
611
  updatedAt: Date;
381
612
  planId: string;
613
+ skuId: string | null;
382
614
  }>;
383
615
  };
384
616
  post: {
@@ -386,9 +618,11 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
386
618
  planId: string;
387
619
  successCallbackUrl: string;
388
620
  tenantId?: string | undefined;
389
- cancelCallbackUrl?: string | undefined;
390
- tenantTag?: TenantTag | undefined;
621
+ skuId?: string | undefined;
391
622
  tenantName?: string | undefined;
623
+ tenantTag?: TenantTag | undefined;
624
+ tenantRegionName?: RegionName | undefined;
625
+ cancelCallbackUrl?: string | undefined;
392
626
  }, {
393
627
  sessionId: string;
394
628
  redirectUri?: string | null | undefined;
@@ -472,15 +706,15 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
472
706
  status: OrganizationInvitationStatus;
473
707
  tenantId: string;
474
708
  updatedAt: number;
475
- organizationId: string;
476
709
  inviterId: string | null;
477
710
  invitee: string;
478
- expiresAt: number;
479
711
  acceptedUserId: string | null;
712
+ organizationId: string;
713
+ expiresAt: number;
480
714
  organizationRoles: OrganizationRoleEntity[];
481
715
  } & {
482
- tenantTag: TenantTag;
483
716
  tenantName: string;
717
+ tenantTag: TenantTag;
484
718
  })[]>;
485
719
  } & {
486
720
  "/invitations/:invitationId": import("@withtyped/server").PathGuard<"/:invitationId", unknown, unknown, {
@@ -489,11 +723,11 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
489
723
  status: OrganizationInvitationStatus;
490
724
  tenantId: string;
491
725
  updatedAt: number;
492
- organizationId: string;
493
726
  inviterId: string | null;
494
727
  invitee: string;
495
- expiresAt: number;
496
728
  acceptedUserId: string | null;
729
+ organizationId: string;
730
+ expiresAt: number;
497
731
  organizationRoles: OrganizationRoleEntity[];
498
732
  }>;
499
733
  };
@@ -502,9 +736,21 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
502
736
  delete: {};
503
737
  copy: {};
504
738
  head: {};
739
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
740
+ patch: {};
741
+ options: {};
742
+ get: {};
743
+ post: {};
744
+ put: {};
745
+ delete: {
746
+ "/me": import("@withtyped/server").PathGuard<"/", unknown, unknown, unknown>;
747
+ };
748
+ copy: {};
749
+ head: {};
505
750
  }, "/api">>, "/api">;
506
751
  export declare const tenantAuthRouter: import("@withtyped/server").Router<RequestContext, import("@withtyped/server").WithBodyContext<import("@withtyped/server").BaseContext & {
507
752
  request: {
753
+ id?: string | undefined;
508
754
  method?: import("@withtyped/server").RequestMethod | undefined;
509
755
  headers: import("http").IncomingHttpHeaders;
510
756
  url: URL;
@@ -520,11 +766,11 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
520
766
  status: OrganizationInvitationStatus;
521
767
  tenantId: string;
522
768
  updatedAt: number;
523
- organizationId: string;
524
769
  inviterId: string | null;
525
770
  invitee: string;
526
- expiresAt: number;
527
771
  acceptedUserId: string | null;
772
+ organizationId: string;
773
+ expiresAt: number;
528
774
  organizationRoles: OrganizationRoleEntity[];
529
775
  }>;
530
776
  };
@@ -540,19 +786,23 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
540
786
  organizationRoles: OrganizationRoleEntity[];
541
787
  }[]>;
542
788
  } & {
543
- "/:tenantId/invitations": import("@withtyped/server").PathGuard<"/:tenantId/invitations", unknown, unknown, {
789
+ "/:tenantId/members/:userId/scopes": import("@withtyped/server").PathGuard<"/:tenantId/members/:userId/scopes", unknown, unknown, OrganizationScope[]>;
790
+ } & {
791
+ "/:tenantId/invitations": import("@withtyped/server").PathGuard<"/:tenantId/invitations", unknown, unknown, ({
544
792
  id: string;
545
793
  createdAt: number;
546
794
  status: OrganizationInvitationStatus;
547
795
  tenantId: string;
548
796
  updatedAt: number;
549
- organizationId: string;
550
797
  inviterId: string | null;
551
798
  invitee: string;
552
- expiresAt: number;
553
799
  acceptedUserId: string | null;
800
+ organizationId: string;
801
+ expiresAt: number;
554
802
  organizationRoles: OrganizationRoleEntity[];
555
- }[]>;
803
+ } & {
804
+ inviterName?: string | undefined;
805
+ })[]>;
556
806
  };
557
807
  post: {
558
808
  "/:tenantId/invitations": import("@withtyped/server").PathGuard<"/:tenantId/invitations", unknown, {
@@ -565,11 +815,11 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
565
815
  status: OrganizationInvitationStatus;
566
816
  tenantId: string;
567
817
  updatedAt: number;
568
- organizationId: string;
569
818
  inviterId: string | null;
570
819
  invitee: string;
571
- expiresAt: number;
572
820
  acceptedUserId: string | null;
821
+ organizationId: string;
822
+ expiresAt: number;
573
823
  organizationRoles: OrganizationRoleEntity[];
574
824
  }>;
575
825
  } & {
@@ -588,35 +838,6 @@ export declare const tenantAuthRouter: import("@withtyped/server").Router<Reques
588
838
  copy: {};
589
839
  head: {};
590
840
  }, "/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">;
620
841
 
621
842
  export {
622
843
  router as default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/cloud",
3
- "version": "0.2.5-81f06ea",
3
+ "version": "0.2.5-923c26f",
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": "^2.0.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",