@logto/cloud 0.2.5-cbbfdc2 → 0.2.5-cbf0233

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.
@@ -0,0 +1,1680 @@
1
+ // Generated by dts-bundle-generator v9.3.1
2
+
3
+ import { Json, JsonObject, RequestContext } from '@withtyped/server';
4
+
5
+ export type WithAuthContext<Context = RequestContext> = Context & {
6
+ auth: {
7
+ /** The ID of the authenticated subject (`sub`). */
8
+ id: string;
9
+ /** The scopes that the subject has (`scope`). */
10
+ scopes: string[];
11
+ };
12
+ };
13
+ declare enum TemplateType {
14
+ /** The template for sending verification code when user is signing in. */
15
+ SignIn = "SignIn",
16
+ /** The template for sending verification code when user is registering. */
17
+ Register = "Register",
18
+ /** The template for sending verification code when user is resetting password. */
19
+ ForgotPassword = "ForgotPassword",
20
+ /** The template for sending organization invitation. */
21
+ OrganizationInvitation = "OrganizationInvitation",
22
+ /** The template for generic usage. */
23
+ Generic = "Generic",
24
+ /** The template for validating user permission for sensitive operations. */
25
+ UserPermissionValidation = "UserPermissionValidation",
26
+ /** The template for binding a new identifier to an existing account. */
27
+ BindNewIdentifier = "BindNewIdentifier",
28
+ /** The template for sending MFA verification code. */
29
+ MfaVerification = "MfaVerification",
30
+ /** The template for binding MFA verification. */
31
+ BindMfa = "BindMfa"
32
+ }
33
+ declare enum OrganizationInvitationStatus {
34
+ Pending = "Pending",
35
+ Accepted = "Accepted",
36
+ Expired = "Expired",
37
+ Revoked = "Revoked"
38
+ }
39
+ /** The scopes (permissions) defined by the organization template. */
40
+ export type OrganizationScope = {
41
+ tenantId: string;
42
+ /** The globally unique identifier of the organization scope. */
43
+ id: string;
44
+ /** The organization scope's name, unique within the organization template. */
45
+ name: string;
46
+ /** A brief description of the organization scope. */
47
+ description: string | null;
48
+ };
49
+ declare enum LogtoJwtTokenKeyType {
50
+ AccessToken = "access-token",
51
+ ClientCredentials = "client-credentials"
52
+ }
53
+ /**
54
+ * The simplified organization role entity that is returned in the `roles` field
55
+ * of the organization.
56
+ */
57
+ export type OrganizationRoleEntity = {
58
+ id: string;
59
+ name: string;
60
+ };
61
+ declare enum TenantTag {
62
+ Development = "development",
63
+ Production = "production"
64
+ }
65
+ declare enum TenantRole {
66
+ /** Admin of the tenant, who has all permissions. */
67
+ Admin = "admin",
68
+ /** Collaborator of the tenant, who has permissions to operate the tenant data, but not the tenant settings. */
69
+ Collaborator = "collaborator"
70
+ }
71
+ declare const availableReportableUsageKeys: readonly [
72
+ "tokenLimit",
73
+ "mauLimit",
74
+ "machineToMachineLimit",
75
+ "resourcesLimit",
76
+ "enterpriseSsoLimit",
77
+ "hooksLimit",
78
+ "tenantMembersLimit",
79
+ "mfaEnabled",
80
+ "organizationsEnabled",
81
+ "organizationsLimit",
82
+ "securityFeaturesEnabled",
83
+ "userRolesLimit",
84
+ "machineToMachineRolesLimit",
85
+ "thirdPartyApplicationsLimit",
86
+ "samlApplicationsLimit",
87
+ "customDomainsLimit"
88
+ ];
89
+ export type ReportableUsageKey = (typeof availableReportableUsageKeys)[number];
90
+ export type RealtimeReportableUsageKey = Exclude<ReportableUsageKey, "tokenLimit" | "mauLimit">;
91
+ declare enum LogtoSkuType {
92
+ Basic = "Basic",
93
+ AddOn = "AddOn"
94
+ }
95
+ declare enum UsageReportingType {
96
+ TokenUsage = "tokenUsage",
97
+ MauUsageWithM2MTokens = "mauUsageWithM2MTokens"
98
+ }
99
+ declare enum DatabaseRegionAccessRole {
100
+ /** Instance administrator - can manage collaborators and create tenants */
101
+ Admin = "admin",
102
+ /** Collaborator user - can only create tenants in the instance */
103
+ Collaborator = "collaborator"
104
+ }
105
+ declare enum QuotaScope {
106
+ /**
107
+ * Shared quota across multiple regions or tenants under the same enterprise.
108
+ */
109
+ Shared = "shared",
110
+ /**
111
+ * Tenant level dedicated quota.
112
+ */
113
+ Dedicated = "dedicated"
114
+ }
115
+ declare const router: import("@withtyped/server").Router<RequestContext, WithAuthContext<Omit<import("@withtyped/server").BaseContext & {
116
+ request: {
117
+ id?: string | undefined;
118
+ method?: import("@withtyped/server").RequestMethod | undefined;
119
+ headers: import("http").IncomingHttpHeaders;
120
+ url: URL;
121
+ body?: unknown;
122
+ };
123
+ }, "request"> & {
124
+ request: Record<string, unknown> & {
125
+ id?: string | undefined;
126
+ method?: import("@withtyped/server").RequestMethod | undefined;
127
+ headers: import("http").IncomingHttpHeaders;
128
+ url: URL;
129
+ body?: unknown;
130
+ } & {
131
+ body?: Json | undefined;
132
+ bodyRaw?: Buffer | undefined;
133
+ };
134
+ }>, 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").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").BaseRoutes, import("@withtyped/server").RoutesWithPrefix<{
135
+ patch: {
136
+ "/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, {
137
+ name?: string | undefined;
138
+ }, {
139
+ id: string;
140
+ name: string;
141
+ createdAt: Date;
142
+ quota: {
143
+ mauLimit: number | null;
144
+ tokenLimit: number | null;
145
+ };
146
+ usage: {
147
+ userTokenUsage: number;
148
+ m2mTokenUsage: number;
149
+ tokenUsage: number;
150
+ activeUsers: number;
151
+ };
152
+ indicator: string;
153
+ isSuspended: boolean;
154
+ planId: string;
155
+ subscription: {
156
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
157
+ planId: string;
158
+ currentPeriodStart: Date;
159
+ currentPeriodEnd: Date;
160
+ isEnterprisePlan: boolean;
161
+ quotaScope: "dedicated" | "shared";
162
+ id?: string | undefined;
163
+ upcomingInvoice?: {
164
+ subtotal: number;
165
+ subtotalExcludingTax: number | null;
166
+ total: number;
167
+ totalExcludingTax: number | null;
168
+ } | null | undefined;
169
+ };
170
+ regionName: string;
171
+ tag: TenantTag;
172
+ openInvoices: {
173
+ id: string;
174
+ createdAt: Date;
175
+ status: "open" | "void" | "draft" | "paid" | "uncollectible" | null;
176
+ updatedAt: Date;
177
+ customerId: string | null;
178
+ billingReason: string | null;
179
+ periodStart: Date;
180
+ periodEnd: Date;
181
+ amountDue: number;
182
+ amountPaid: number;
183
+ basicSkuId: string | null;
184
+ subscriptionId: string | null;
185
+ hostedInvoiceUrl: string | null;
186
+ invoicePdf: string | null;
187
+ collectionMethod: "charge_automatically" | "send_invoice" | null;
188
+ dueDate: Date | null;
189
+ }[];
190
+ featureFlags?: {
191
+ isMultipleCustomDomainsEnabled?: boolean | undefined;
192
+ } | undefined;
193
+ }>;
194
+ };
195
+ options: {};
196
+ get: {
197
+ "/tenants": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
198
+ id: string;
199
+ name: string;
200
+ createdAt: Date;
201
+ quota: {
202
+ mauLimit: number | null;
203
+ tokenLimit: number | null;
204
+ };
205
+ usage: {
206
+ userTokenUsage: number;
207
+ m2mTokenUsage: number;
208
+ tokenUsage: number;
209
+ activeUsers: number;
210
+ };
211
+ indicator: string;
212
+ isSuspended: boolean;
213
+ planId: string;
214
+ subscription: {
215
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
216
+ planId: string;
217
+ currentPeriodStart: Date;
218
+ currentPeriodEnd: Date;
219
+ isEnterprisePlan: boolean;
220
+ quotaScope: "dedicated" | "shared";
221
+ id?: string | undefined;
222
+ upcomingInvoice?: {
223
+ subtotal: number;
224
+ subtotalExcludingTax: number | null;
225
+ total: number;
226
+ totalExcludingTax: number | null;
227
+ } | null | undefined;
228
+ };
229
+ regionName: string;
230
+ tag: TenantTag;
231
+ openInvoices: {
232
+ id: string;
233
+ createdAt: Date;
234
+ status: "open" | "void" | "draft" | "paid" | "uncollectible" | null;
235
+ updatedAt: Date;
236
+ customerId: string | null;
237
+ billingReason: string | null;
238
+ periodStart: Date;
239
+ periodEnd: Date;
240
+ amountDue: number;
241
+ amountPaid: number;
242
+ basicSkuId: string | null;
243
+ subscriptionId: string | null;
244
+ hostedInvoiceUrl: string | null;
245
+ invoicePdf: string | null;
246
+ collectionMethod: "charge_automatically" | "send_invoice" | null;
247
+ dueDate: Date | null;
248
+ }[];
249
+ featureFlags?: {
250
+ isMultipleCustomDomainsEnabled?: boolean | undefined;
251
+ } | undefined;
252
+ }[]>;
253
+ };
254
+ post: {
255
+ "/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
256
+ id?: string | undefined;
257
+ name?: string | undefined;
258
+ regionName?: string | undefined;
259
+ tag?: TenantTag | undefined;
260
+ }, {
261
+ id: string;
262
+ name: string;
263
+ createdAt: Date;
264
+ quota: {
265
+ mauLimit: number | null;
266
+ tokenLimit: number | null;
267
+ };
268
+ usage: {
269
+ userTokenUsage: number;
270
+ m2mTokenUsage: number;
271
+ tokenUsage: number;
272
+ activeUsers: number;
273
+ };
274
+ indicator: string;
275
+ isSuspended: boolean;
276
+ planId: string;
277
+ subscription: {
278
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
279
+ planId: string;
280
+ currentPeriodStart: Date;
281
+ currentPeriodEnd: Date;
282
+ isEnterprisePlan: boolean;
283
+ quotaScope: "dedicated" | "shared";
284
+ id?: string | undefined;
285
+ upcomingInvoice?: {
286
+ subtotal: number;
287
+ subtotalExcludingTax: number | null;
288
+ total: number;
289
+ totalExcludingTax: number | null;
290
+ } | null | undefined;
291
+ };
292
+ regionName: string;
293
+ tag: TenantTag;
294
+ openInvoices: {
295
+ id: string;
296
+ createdAt: Date;
297
+ status: "open" | "void" | "draft" | "paid" | "uncollectible" | null;
298
+ updatedAt: Date;
299
+ customerId: string | null;
300
+ billingReason: string | null;
301
+ periodStart: Date;
302
+ periodEnd: Date;
303
+ amountDue: number;
304
+ amountPaid: number;
305
+ basicSkuId: string | null;
306
+ subscriptionId: string | null;
307
+ hostedInvoiceUrl: string | null;
308
+ invoicePdf: string | null;
309
+ collectionMethod: "charge_automatically" | "send_invoice" | null;
310
+ dueDate: Date | null;
311
+ }[];
312
+ featureFlags?: {
313
+ isMultipleCustomDomainsEnabled?: boolean | undefined;
314
+ } | undefined;
315
+ }>;
316
+ } & {
317
+ "/tenants/subscriptions/plan": import("@withtyped/server").PathGuard<"/subscriptions/plan", unknown, {
318
+ planId: string;
319
+ tenantIds: string[];
320
+ }, {
321
+ tenantId: string;
322
+ success: boolean;
323
+ error?: string | undefined;
324
+ updatedLineItems?: unknown[] | undefined;
325
+ }[]>;
326
+ };
327
+ put: {};
328
+ delete: {
329
+ "/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, unknown, unknown>;
330
+ };
331
+ copy: {};
332
+ head: {};
333
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
334
+ patch: {};
335
+ options: {};
336
+ get: {
337
+ "/tenants/my/subscription": import("@withtyped/server").PathGuard<"/my/subscription", unknown, unknown, {
338
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
339
+ quota: {
340
+ auditLogsRetentionDays: number | null;
341
+ subjectTokenEnabled: boolean;
342
+ mauLimit: number | null;
343
+ applicationsLimit: number | null;
344
+ thirdPartyApplicationsLimit: number | null;
345
+ scopesPerResourceLimit: number | null;
346
+ socialConnectorsLimit: number | null;
347
+ userRolesLimit: number | null;
348
+ machineToMachineRolesLimit: number | null;
349
+ scopesPerRoleLimit: number | null;
350
+ hooksLimit: number | null;
351
+ customJwtEnabled: boolean;
352
+ bringYourUiEnabled: boolean;
353
+ collectUserProfileEnabled: boolean;
354
+ passkeySignInEnabled: boolean;
355
+ tokenLimit: number | null;
356
+ machineToMachineLimit: number | null;
357
+ resourcesLimit: number | null;
358
+ enterpriseSsoLimit: number | null;
359
+ tenantMembersLimit: number | null;
360
+ mfaEnabled: boolean;
361
+ organizationsEnabled: boolean;
362
+ organizationsLimit: number | null;
363
+ securityFeaturesEnabled: boolean;
364
+ idpInitiatedSsoEnabled: boolean;
365
+ samlApplicationsLimit: number | null;
366
+ customDomainsLimit: number | null;
367
+ };
368
+ planId: string;
369
+ currentPeriodStart: Date;
370
+ currentPeriodEnd: Date;
371
+ quotaScope: "dedicated" | "shared";
372
+ isEnterprisePlan: boolean;
373
+ systemLimit: {
374
+ applicationsLimit?: number | undefined;
375
+ thirdPartyApplicationsLimit?: number | undefined;
376
+ scopesPerResourceLimit?: number | undefined;
377
+ socialConnectorsLimit?: number | undefined;
378
+ userRolesLimit?: number | undefined;
379
+ machineToMachineRolesLimit?: number | undefined;
380
+ scopesPerRoleLimit?: number | undefined;
381
+ hooksLimit?: number | undefined;
382
+ machineToMachineLimit?: number | undefined;
383
+ resourcesLimit?: number | undefined;
384
+ enterpriseSsoLimit?: number | undefined;
385
+ tenantMembersLimit?: number | undefined;
386
+ organizationsLimit?: number | undefined;
387
+ samlApplicationsLimit?: number | undefined;
388
+ customDomainsLimit?: number | undefined;
389
+ usersPerOrganizationLimit?: number | undefined;
390
+ organizationUserRolesLimit?: number | undefined;
391
+ organizationMachineToMachineRolesLimit?: number | undefined;
392
+ organizationScopesLimit?: number | undefined;
393
+ };
394
+ id?: string | undefined;
395
+ upcomingInvoice?: {
396
+ subtotal: number;
397
+ subtotalExcludingTax: number | null;
398
+ total: number;
399
+ totalExcludingTax: number | null;
400
+ } | null | undefined;
401
+ }>;
402
+ } & {
403
+ "/tenants/my/subscription-usage": import("@withtyped/server").PathGuard<"/my/subscription-usage", unknown, unknown, {
404
+ quota: {
405
+ auditLogsRetentionDays: number | null;
406
+ subjectTokenEnabled: boolean;
407
+ mauLimit: number | null;
408
+ applicationsLimit: number | null;
409
+ thirdPartyApplicationsLimit: number | null;
410
+ scopesPerResourceLimit: number | null;
411
+ socialConnectorsLimit: number | null;
412
+ userRolesLimit: number | null;
413
+ machineToMachineRolesLimit: number | null;
414
+ scopesPerRoleLimit: number | null;
415
+ hooksLimit: number | null;
416
+ customJwtEnabled: boolean;
417
+ bringYourUiEnabled: boolean;
418
+ collectUserProfileEnabled: boolean;
419
+ passkeySignInEnabled: boolean;
420
+ tokenLimit: number | null;
421
+ machineToMachineLimit: number | null;
422
+ resourcesLimit: number | null;
423
+ enterpriseSsoLimit: number | null;
424
+ tenantMembersLimit: number | null;
425
+ mfaEnabled: boolean;
426
+ organizationsEnabled: boolean;
427
+ organizationsLimit: number | null;
428
+ securityFeaturesEnabled: boolean;
429
+ idpInitiatedSsoEnabled: boolean;
430
+ samlApplicationsLimit: number | null;
431
+ customDomainsLimit: number | null;
432
+ };
433
+ usage: {
434
+ applicationsLimit: number;
435
+ thirdPartyApplicationsLimit: number;
436
+ scopesPerResourceLimit: number;
437
+ socialConnectorsLimit: number;
438
+ userRolesLimit: number;
439
+ machineToMachineRolesLimit: number;
440
+ scopesPerRoleLimit: number;
441
+ hooksLimit: number;
442
+ customJwtEnabled: boolean;
443
+ bringYourUiEnabled: boolean;
444
+ collectUserProfileEnabled: boolean;
445
+ passkeySignInEnabled: boolean;
446
+ machineToMachineLimit: number;
447
+ resourcesLimit: number;
448
+ enterpriseSsoLimit: number;
449
+ tenantMembersLimit: number;
450
+ mfaEnabled: boolean;
451
+ organizationsEnabled: boolean;
452
+ organizationsLimit: number;
453
+ securityFeaturesEnabled: boolean;
454
+ idpInitiatedSsoEnabled: boolean;
455
+ samlApplicationsLimit: number;
456
+ customDomainsLimit: number;
457
+ };
458
+ basicQuota: {
459
+ auditLogsRetentionDays: number | null;
460
+ subjectTokenEnabled: boolean;
461
+ mauLimit: number | null;
462
+ applicationsLimit: number | null;
463
+ thirdPartyApplicationsLimit: number | null;
464
+ scopesPerResourceLimit: number | null;
465
+ socialConnectorsLimit: number | null;
466
+ userRolesLimit: number | null;
467
+ machineToMachineRolesLimit: number | null;
468
+ scopesPerRoleLimit: number | null;
469
+ hooksLimit: number | null;
470
+ customJwtEnabled: boolean;
471
+ bringYourUiEnabled: boolean;
472
+ collectUserProfileEnabled: boolean;
473
+ passkeySignInEnabled: boolean;
474
+ tokenLimit: number | null;
475
+ machineToMachineLimit: number | null;
476
+ resourcesLimit: number | null;
477
+ enterpriseSsoLimit: number | null;
478
+ tenantMembersLimit: number | null;
479
+ mfaEnabled: boolean;
480
+ organizationsEnabled: boolean;
481
+ organizationsLimit: number | null;
482
+ securityFeaturesEnabled: boolean;
483
+ idpInitiatedSsoEnabled: boolean;
484
+ samlApplicationsLimit: number | null;
485
+ customDomainsLimit: number | null;
486
+ };
487
+ }>;
488
+ };
489
+ post: {
490
+ "/tenants/my/subscription/item-updates": import("@withtyped/server").PathGuard<"/my/subscription/item-updates", unknown, {
491
+ usageKey: RealtimeReportableUsageKey;
492
+ }, {
493
+ message: string;
494
+ }>;
495
+ };
496
+ put: {};
497
+ delete: {};
498
+ copy: {};
499
+ head: {};
500
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
501
+ patch: {};
502
+ options: {};
503
+ get: {};
504
+ post: {
505
+ "/tenants/subscription-cache/invalidate": import("@withtyped/server").PathGuard<"/subscription-cache/invalidate", unknown, {
506
+ tenantIds: string[];
507
+ }, unknown>;
508
+ };
509
+ put: {};
510
+ delete: {};
511
+ copy: {};
512
+ head: {};
513
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
514
+ patch: {};
515
+ options: {};
516
+ get: {
517
+ "/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, {
518
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
519
+ planId: string;
520
+ currentPeriodStart: Date;
521
+ currentPeriodEnd: Date;
522
+ isEnterprisePlan: boolean;
523
+ quotaScope: "dedicated" | "shared";
524
+ id?: string | undefined;
525
+ upcomingInvoice?: {
526
+ subtotal: number;
527
+ subtotalExcludingTax: number | null;
528
+ total: number;
529
+ totalExcludingTax: number | null;
530
+ } | null | undefined;
531
+ }>;
532
+ } & {
533
+ "/tenants/:tenantId/subscription-usage": import("@withtyped/server").PathGuard<"/:tenantId/subscription-usage", unknown, unknown, {
534
+ quota: {
535
+ auditLogsRetentionDays: number | null;
536
+ subjectTokenEnabled: boolean;
537
+ mauLimit: number | null;
538
+ applicationsLimit: number | null;
539
+ thirdPartyApplicationsLimit: number | null;
540
+ scopesPerResourceLimit: number | null;
541
+ socialConnectorsLimit: number | null;
542
+ userRolesLimit: number | null;
543
+ machineToMachineRolesLimit: number | null;
544
+ scopesPerRoleLimit: number | null;
545
+ hooksLimit: number | null;
546
+ customJwtEnabled: boolean;
547
+ bringYourUiEnabled: boolean;
548
+ collectUserProfileEnabled: boolean;
549
+ passkeySignInEnabled: boolean;
550
+ tokenLimit: number | null;
551
+ machineToMachineLimit: number | null;
552
+ resourcesLimit: number | null;
553
+ enterpriseSsoLimit: number | null;
554
+ tenantMembersLimit: number | null;
555
+ mfaEnabled: boolean;
556
+ organizationsEnabled: boolean;
557
+ organizationsLimit: number | null;
558
+ securityFeaturesEnabled: boolean;
559
+ idpInitiatedSsoEnabled: boolean;
560
+ samlApplicationsLimit: number | null;
561
+ customDomainsLimit: number | null;
562
+ };
563
+ usage: {
564
+ applicationsLimit: number;
565
+ thirdPartyApplicationsLimit: number;
566
+ scopesPerResourceLimit: number;
567
+ socialConnectorsLimit: number;
568
+ userRolesLimit: number;
569
+ machineToMachineRolesLimit: number;
570
+ scopesPerRoleLimit: number;
571
+ hooksLimit: number;
572
+ customJwtEnabled: boolean;
573
+ bringYourUiEnabled: boolean;
574
+ collectUserProfileEnabled: boolean;
575
+ passkeySignInEnabled: boolean;
576
+ machineToMachineLimit: number;
577
+ resourcesLimit: number;
578
+ enterpriseSsoLimit: number;
579
+ tenantMembersLimit: number;
580
+ mfaEnabled: boolean;
581
+ organizationsEnabled: boolean;
582
+ organizationsLimit: number;
583
+ securityFeaturesEnabled: boolean;
584
+ idpInitiatedSsoEnabled: boolean;
585
+ samlApplicationsLimit: number;
586
+ customDomainsLimit: number;
587
+ };
588
+ resources: Record<string, number>;
589
+ roles: Record<string, number>;
590
+ basicQuota: {
591
+ auditLogsRetentionDays: number | null;
592
+ subjectTokenEnabled: boolean;
593
+ mauLimit: number | null;
594
+ applicationsLimit: number | null;
595
+ thirdPartyApplicationsLimit: number | null;
596
+ scopesPerResourceLimit: number | null;
597
+ socialConnectorsLimit: number | null;
598
+ userRolesLimit: number | null;
599
+ machineToMachineRolesLimit: number | null;
600
+ scopesPerRoleLimit: number | null;
601
+ hooksLimit: number | null;
602
+ customJwtEnabled: boolean;
603
+ bringYourUiEnabled: boolean;
604
+ collectUserProfileEnabled: boolean;
605
+ passkeySignInEnabled: boolean;
606
+ tokenLimit: number | null;
607
+ machineToMachineLimit: number | null;
608
+ resourcesLimit: number | null;
609
+ enterpriseSsoLimit: number | null;
610
+ tenantMembersLimit: number | null;
611
+ mfaEnabled: boolean;
612
+ organizationsEnabled: boolean;
613
+ organizationsLimit: number | null;
614
+ securityFeaturesEnabled: boolean;
615
+ idpInitiatedSsoEnabled: boolean;
616
+ samlApplicationsLimit: number | null;
617
+ customDomainsLimit: number | null;
618
+ };
619
+ }>;
620
+ } & {
621
+ "/tenants/:tenantId/subscription/periodic-usage": import("@withtyped/server").PathGuard<"/:tenantId/subscription/periodic-usage", unknown, unknown, {
622
+ mauLimit: number;
623
+ tokenLimit: number;
624
+ userTokenLimit: number;
625
+ m2mTokenLimit: number;
626
+ }>;
627
+ } & {
628
+ "/tenants/:tenantId/subscription/add-on-skus": import("@withtyped/server").PathGuard<"/:tenantId/subscription/add-on-skus", unknown, unknown, Partial<Record<"mauLimit" | "thirdPartyApplicationsLimit" | "userRolesLimit" | "machineToMachineRolesLimit" | "hooksLimit" | "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "samlApplicationsLimit" | "customDomainsLimit", {
629
+ id: string;
630
+ name: string | null;
631
+ createdAt: Date;
632
+ defaultPriceId: string | null;
633
+ unitPrice: number | null;
634
+ type: LogtoSkuType;
635
+ quota: {
636
+ auditLogsRetentionDays?: number | null | undefined;
637
+ subjectTokenEnabled?: boolean | undefined;
638
+ mauLimit?: number | null | undefined;
639
+ applicationsLimit?: number | null | undefined;
640
+ thirdPartyApplicationsLimit?: number | null | undefined;
641
+ scopesPerResourceLimit?: number | null | undefined;
642
+ socialConnectorsLimit?: number | null | undefined;
643
+ userRolesLimit?: number | null | undefined;
644
+ machineToMachineRolesLimit?: number | null | undefined;
645
+ scopesPerRoleLimit?: number | null | undefined;
646
+ hooksLimit?: number | null | undefined;
647
+ customJwtEnabled?: boolean | undefined;
648
+ bringYourUiEnabled?: boolean | undefined;
649
+ collectUserProfileEnabled?: boolean | undefined;
650
+ passkeySignInEnabled?: boolean | undefined;
651
+ tokenLimit?: number | null | undefined;
652
+ machineToMachineLimit?: number | null | undefined;
653
+ resourcesLimit?: number | null | undefined;
654
+ enterpriseSsoLimit?: number | null | undefined;
655
+ tenantMembersLimit?: number | null | undefined;
656
+ mfaEnabled?: boolean | undefined;
657
+ organizationsEnabled?: boolean | undefined;
658
+ organizationsLimit?: number | null | undefined;
659
+ securityFeaturesEnabled?: boolean | undefined;
660
+ idpInitiatedSsoEnabled?: boolean | undefined;
661
+ samlApplicationsLimit?: number | null | undefined;
662
+ customDomainsLimit?: number | null | undefined;
663
+ };
664
+ isDefault: boolean;
665
+ isDevPlan: boolean;
666
+ updatedAt: Date;
667
+ productId: string | null;
668
+ }>>>;
669
+ } & {
670
+ "/tenants/:tenantId/invoices": import("@withtyped/server").PathGuard<"/:tenantId/invoices", unknown, unknown, {
671
+ invoices: {
672
+ id: string;
673
+ createdAt: Date;
674
+ status: "open" | "void" | "draft" | "paid" | "uncollectible" | null;
675
+ updatedAt: Date;
676
+ customerId: string | null;
677
+ billingReason: string | null;
678
+ periodStart: Date;
679
+ periodEnd: Date;
680
+ amountDue: number;
681
+ amountPaid: number;
682
+ basicSkuId: string | null;
683
+ subscriptionId: string | null;
684
+ hostedInvoiceUrl: string | null;
685
+ invoicePdf: string | null;
686
+ collectionMethod: "charge_automatically" | "send_invoice" | null;
687
+ dueDate: Date | null;
688
+ planName: string | null;
689
+ skuId?: string | null | undefined;
690
+ }[];
691
+ }>;
692
+ } & {
693
+ "/tenants/:tenantId/available-skus": import("@withtyped/server").PathGuard<"/:tenantId/available-skus", {
694
+ type?: LogtoSkuType | undefined;
695
+ }, unknown, {
696
+ id: string;
697
+ name: string | null;
698
+ createdAt: Date;
699
+ defaultPriceId: string | null;
700
+ unitPrice: number | null;
701
+ type: LogtoSkuType;
702
+ quota: {
703
+ auditLogsRetentionDays?: number | null | undefined;
704
+ subjectTokenEnabled?: boolean | undefined;
705
+ mauLimit?: number | null | undefined;
706
+ applicationsLimit?: number | null | undefined;
707
+ thirdPartyApplicationsLimit?: number | null | undefined;
708
+ scopesPerResourceLimit?: number | null | undefined;
709
+ socialConnectorsLimit?: number | null | undefined;
710
+ userRolesLimit?: number | null | undefined;
711
+ machineToMachineRolesLimit?: number | null | undefined;
712
+ scopesPerRoleLimit?: number | null | undefined;
713
+ hooksLimit?: number | null | undefined;
714
+ customJwtEnabled?: boolean | undefined;
715
+ bringYourUiEnabled?: boolean | undefined;
716
+ collectUserProfileEnabled?: boolean | undefined;
717
+ passkeySignInEnabled?: boolean | undefined;
718
+ tokenLimit?: number | null | undefined;
719
+ machineToMachineLimit?: number | null | undefined;
720
+ resourcesLimit?: number | null | undefined;
721
+ enterpriseSsoLimit?: number | null | undefined;
722
+ tenantMembersLimit?: number | null | undefined;
723
+ mfaEnabled?: boolean | undefined;
724
+ organizationsEnabled?: boolean | undefined;
725
+ organizationsLimit?: number | null | undefined;
726
+ securityFeaturesEnabled?: boolean | undefined;
727
+ idpInitiatedSsoEnabled?: boolean | undefined;
728
+ samlApplicationsLimit?: number | null | undefined;
729
+ customDomainsLimit?: number | null | undefined;
730
+ };
731
+ isDefault: boolean;
732
+ isDevPlan: boolean;
733
+ updatedAt: Date;
734
+ productId: string | null;
735
+ }[]>;
736
+ } & {
737
+ "/tenants/:tenantId/invoices/:invoiceId/hosted-invoice-url": import("@withtyped/server").PathGuard<"/:tenantId/invoices/:invoiceId/hosted-invoice-url", unknown, unknown, {
738
+ hostedInvoiceUrl: string;
739
+ }>;
740
+ };
741
+ post: {
742
+ "/tenants/:tenantId/stripe-customer-portal": import("@withtyped/server").PathGuard<"/:tenantId/stripe-customer-portal", unknown, {
743
+ callbackUrl?: string | undefined;
744
+ }, {
745
+ redirectUri: string;
746
+ }>;
747
+ };
748
+ put: {};
749
+ delete: {
750
+ "/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, unknown>;
751
+ };
752
+ copy: {};
753
+ head: {};
754
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
755
+ patch: {};
756
+ options: {};
757
+ get: {
758
+ "/services/mails/usage": import("@withtyped/server").PathGuard<"/mails/usage", {
759
+ from?: string | undefined;
760
+ }, unknown, {
761
+ count: number;
762
+ }>;
763
+ };
764
+ post: {
765
+ "/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
766
+ data: {
767
+ type: TemplateType;
768
+ payload: {
769
+ link?: string | undefined;
770
+ code?: string | undefined;
771
+ locale?: string | undefined;
772
+ uiLocales?: string | undefined;
773
+ } & {
774
+ [k: string]: unknown;
775
+ } & {
776
+ senderName?: string | undefined;
777
+ companyInformation?: string | undefined;
778
+ appLogo?: string | undefined;
779
+ } & {
780
+ organization?: {
781
+ id: string;
782
+ name: string;
783
+ branding: {
784
+ logoUrl?: string | undefined;
785
+ darkLogoUrl?: string | undefined;
786
+ favicon?: string | undefined;
787
+ darkFavicon?: string | undefined;
788
+ };
789
+ } | undefined;
790
+ inviter?: {
791
+ id: string;
792
+ name: string | null;
793
+ username: string | null;
794
+ primaryEmail: string | null;
795
+ primaryPhone: string | null;
796
+ avatar: string | null;
797
+ profile: Partial<{
798
+ familyName: string;
799
+ givenName: string;
800
+ middleName: string;
801
+ nickname: string;
802
+ preferredUsername: string;
803
+ profile: string;
804
+ website: string;
805
+ gender: string;
806
+ birthdate: string;
807
+ zoneinfo: string;
808
+ locale: string;
809
+ address: Partial<{
810
+ formatted: string;
811
+ streetAddress: string;
812
+ locality: string;
813
+ region: string;
814
+ postalCode: string;
815
+ country: string;
816
+ }>;
817
+ }>;
818
+ } | undefined;
819
+ };
820
+ to: string;
821
+ ip?: string | undefined;
822
+ };
823
+ }, unknown>;
824
+ } & {
825
+ "/services/send-sms": import("@withtyped/server").PathGuard<"/send-sms", unknown, {
826
+ data: {
827
+ type: TemplateType;
828
+ to: string;
829
+ payload: {
830
+ code?: string | undefined;
831
+ link?: string | undefined;
832
+ locale?: string | undefined;
833
+ uiLocales?: string | undefined;
834
+ } & {
835
+ [k: string]: unknown;
836
+ };
837
+ ip?: string | undefined;
838
+ };
839
+ }, unknown>;
840
+ } & {
841
+ "/services/custom-jwt": import("@withtyped/server").PathGuard<"/custom-jwt", {
842
+ isTest?: string | undefined;
843
+ }, {
844
+ token: Record<string, Json>;
845
+ context: Record<string, Json>;
846
+ tokenType: LogtoJwtTokenKeyType.AccessToken;
847
+ script: string;
848
+ environmentVariables?: Record<string, string> | undefined;
849
+ } | {
850
+ token: Record<string, Json>;
851
+ tokenType: LogtoJwtTokenKeyType.ClientCredentials;
852
+ script: string;
853
+ context?: Record<string, Json> | undefined;
854
+ environmentVariables?: Record<string, string> | undefined;
855
+ }, Record<string, unknown>>;
856
+ };
857
+ put: {
858
+ "/services/custom-jwt/worker": import("@withtyped/server").PathGuard<"/custom-jwt/worker", unknown, {
859
+ "jwt.accessToken"?: {
860
+ production?: string | undefined;
861
+ test?: string | undefined;
862
+ } | undefined;
863
+ "jwt.clientCredentials"?: {
864
+ production?: string | undefined;
865
+ test?: string | undefined;
866
+ } | undefined;
867
+ }, unknown>;
868
+ };
869
+ delete: {
870
+ "/services/custom-jwt/worker": import("@withtyped/server").PathGuard<"/custom-jwt/worker", unknown, unknown, unknown>;
871
+ };
872
+ copy: {};
873
+ head: {};
874
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
875
+ patch: {};
876
+ options: {};
877
+ get: {
878
+ "/skus": import("@withtyped/server").PathGuard<"/", {
879
+ type?: LogtoSkuType | undefined;
880
+ }, unknown, {
881
+ id: string;
882
+ name: string | null;
883
+ createdAt: Date;
884
+ defaultPriceId: string | null;
885
+ unitPrice: number | null;
886
+ type: LogtoSkuType;
887
+ quota: {
888
+ auditLogsRetentionDays?: number | null | undefined;
889
+ subjectTokenEnabled?: boolean | undefined;
890
+ mauLimit?: number | null | undefined;
891
+ applicationsLimit?: number | null | undefined;
892
+ thirdPartyApplicationsLimit?: number | null | undefined;
893
+ scopesPerResourceLimit?: number | null | undefined;
894
+ socialConnectorsLimit?: number | null | undefined;
895
+ userRolesLimit?: number | null | undefined;
896
+ machineToMachineRolesLimit?: number | null | undefined;
897
+ scopesPerRoleLimit?: number | null | undefined;
898
+ hooksLimit?: number | null | undefined;
899
+ customJwtEnabled?: boolean | undefined;
900
+ bringYourUiEnabled?: boolean | undefined;
901
+ collectUserProfileEnabled?: boolean | undefined;
902
+ passkeySignInEnabled?: boolean | undefined;
903
+ tokenLimit?: number | null | undefined;
904
+ machineToMachineLimit?: number | null | undefined;
905
+ resourcesLimit?: number | null | undefined;
906
+ enterpriseSsoLimit?: number | null | undefined;
907
+ tenantMembersLimit?: number | null | undefined;
908
+ mfaEnabled?: boolean | undefined;
909
+ organizationsEnabled?: boolean | undefined;
910
+ organizationsLimit?: number | null | undefined;
911
+ securityFeaturesEnabled?: boolean | undefined;
912
+ idpInitiatedSsoEnabled?: boolean | undefined;
913
+ samlApplicationsLimit?: number | null | undefined;
914
+ customDomainsLimit?: number | null | undefined;
915
+ };
916
+ isDefault: boolean;
917
+ isDevPlan: boolean;
918
+ updatedAt: Date;
919
+ productId: string | null;
920
+ }[]>;
921
+ } & {
922
+ "/skus/:basicSkuId/usage-reporting-type": import("@withtyped/server").PathGuard<"/:basicSkuId/usage-reporting-type", unknown, unknown, {
923
+ basicSkuId: string;
924
+ usageReportingType: UsageReportingType | null;
925
+ }>;
926
+ };
927
+ post: {
928
+ "/skus": import("@withtyped/server").PathGuard<"/", unknown, {
929
+ type: LogtoSkuType;
930
+ quota: {
931
+ mauLimit?: number | null | undefined;
932
+ applicationsLimit?: number | null | undefined;
933
+ thirdPartyApplicationsLimit?: number | null | undefined;
934
+ scopesPerResourceLimit?: number | null | undefined;
935
+ socialConnectorsLimit?: number | null | undefined;
936
+ userRolesLimit?: number | null | undefined;
937
+ machineToMachineRolesLimit?: number | null | undefined;
938
+ scopesPerRoleLimit?: number | null | undefined;
939
+ hooksLimit?: number | null | undefined;
940
+ auditLogsRetentionDays?: number | null | undefined;
941
+ customJwtEnabled?: boolean | undefined;
942
+ subjectTokenEnabled?: boolean | undefined;
943
+ bringYourUiEnabled?: boolean | undefined;
944
+ collectUserProfileEnabled?: boolean | undefined;
945
+ passkeySignInEnabled?: boolean | undefined;
946
+ tokenLimit?: number | null | undefined;
947
+ machineToMachineLimit?: number | null | undefined;
948
+ resourcesLimit?: number | null | undefined;
949
+ enterpriseSsoLimit?: number | null | undefined;
950
+ tenantMembersLimit?: number | null | undefined;
951
+ mfaEnabled?: boolean | undefined;
952
+ organizationsEnabled?: boolean | undefined;
953
+ organizationsLimit?: number | null | undefined;
954
+ securityFeaturesEnabled?: boolean | undefined;
955
+ idpInitiatedSsoEnabled?: boolean | undefined;
956
+ samlApplicationsLimit?: number | null | undefined;
957
+ customDomainsLimit?: number | null | undefined;
958
+ };
959
+ id?: string | undefined;
960
+ isDefault?: boolean | undefined;
961
+ isDevPlan?: boolean | undefined;
962
+ usageReportingType?: UsageReportingType | undefined;
963
+ }, {
964
+ createdAt: Date;
965
+ id: string;
966
+ type: LogtoSkuType;
967
+ isDefault: boolean;
968
+ isDevPlan: boolean;
969
+ updatedAt: Date;
970
+ quota: {
971
+ auditLogsRetentionDays?: number | null | undefined;
972
+ subjectTokenEnabled?: boolean | undefined;
973
+ mauLimit?: number | null | undefined;
974
+ applicationsLimit?: number | null | undefined;
975
+ thirdPartyApplicationsLimit?: number | null | undefined;
976
+ scopesPerResourceLimit?: number | null | undefined;
977
+ socialConnectorsLimit?: number | null | undefined;
978
+ userRolesLimit?: number | null | undefined;
979
+ machineToMachineRolesLimit?: number | null | undefined;
980
+ scopesPerRoleLimit?: number | null | undefined;
981
+ hooksLimit?: number | null | undefined;
982
+ customJwtEnabled?: boolean | undefined;
983
+ bringYourUiEnabled?: boolean | undefined;
984
+ collectUserProfileEnabled?: boolean | undefined;
985
+ passkeySignInEnabled?: boolean | undefined;
986
+ tokenLimit?: number | null | undefined;
987
+ machineToMachineLimit?: number | null | undefined;
988
+ resourcesLimit?: number | null | undefined;
989
+ enterpriseSsoLimit?: number | null | undefined;
990
+ tenantMembersLimit?: number | null | undefined;
991
+ mfaEnabled?: boolean | undefined;
992
+ organizationsEnabled?: boolean | undefined;
993
+ organizationsLimit?: number | null | undefined;
994
+ securityFeaturesEnabled?: boolean | undefined;
995
+ idpInitiatedSsoEnabled?: boolean | undefined;
996
+ samlApplicationsLimit?: number | null | undefined;
997
+ customDomainsLimit?: number | null | undefined;
998
+ };
999
+ }>;
1000
+ } & {
1001
+ "/skus/:skuId/products": import("@withtyped/server").PathGuard<"/:skuId/products", {
1002
+ isOneTime?: string | undefined;
1003
+ }, {
1004
+ name: string;
1005
+ unitPrice: number;
1006
+ }, {
1007
+ productId: string;
1008
+ }>;
1009
+ } & {
1010
+ "/skus/:basicSkuId/usage-add-on-relations": import("@withtyped/server").PathGuard<"/:basicSkuId/usage-add-on-relations", unknown, {
1011
+ usageKey: "mauLimit" | "thirdPartyApplicationsLimit" | "userRolesLimit" | "machineToMachineRolesLimit" | "hooksLimit" | "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "samlApplicationsLimit" | "customDomainsLimit";
1012
+ addOnSkuId: string;
1013
+ }, {
1014
+ usageKey: "mauLimit" | "thirdPartyApplicationsLimit" | "userRolesLimit" | "machineToMachineRolesLimit" | "hooksLimit" | "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "samlApplicationsLimit" | "customDomainsLimit";
1015
+ basicSkuId: string;
1016
+ addOnSkuId: string;
1017
+ }>;
1018
+ };
1019
+ put: {
1020
+ "/skus/:basicSkuId/usage-reporting-type": import("@withtyped/server").PathGuard<"/:basicSkuId/usage-reporting-type", unknown, {
1021
+ usageReportingType: UsageReportingType;
1022
+ }, {
1023
+ basicSkuId: string;
1024
+ usageReportingType: UsageReportingType;
1025
+ }>;
1026
+ };
1027
+ delete: {
1028
+ "/skus/:skuId": import("@withtyped/server").PathGuard<"/:skuId", unknown, unknown, unknown>;
1029
+ } & {
1030
+ "/skus/:basicSkuId/usage-add-on-relations/:usageKey": import("@withtyped/server").PathGuard<"/:basicSkuId/usage-add-on-relations/:usageKey", unknown, unknown, unknown>;
1031
+ } & {
1032
+ "/skus/:basicSkuId/usage-reporting-type": import("@withtyped/server").PathGuard<"/:basicSkuId/usage-reporting-type", unknown, unknown, unknown>;
1033
+ };
1034
+ copy: {};
1035
+ head: {};
1036
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
1037
+ patch: {};
1038
+ options: {};
1039
+ get: {
1040
+ "/checkout-session/:id": import("@withtyped/server").PathGuard<"/:id", unknown, unknown, {
1041
+ tenantId: string | null;
1042
+ createdAt: Date;
1043
+ id: string;
1044
+ status: "open" | "complete" | "expired";
1045
+ updatedAt: Date;
1046
+ planId: string | null;
1047
+ skuId: string | null;
1048
+ userId: string;
1049
+ }>;
1050
+ };
1051
+ post: {
1052
+ "/checkout-session": import("@withtyped/server").PathGuard<"/", unknown, {
1053
+ successCallbackUrl: string;
1054
+ tenantId?: string | undefined;
1055
+ skuId?: string | undefined;
1056
+ tenantTag?: TenantTag | undefined;
1057
+ tenantName?: string | undefined;
1058
+ tenantRegionName?: string | undefined;
1059
+ cancelCallbackUrl?: string | undefined;
1060
+ }, {
1061
+ sessionId: string;
1062
+ redirectUri?: string | null | undefined;
1063
+ }>;
1064
+ };
1065
+ put: {};
1066
+ delete: {};
1067
+ copy: {};
1068
+ head: {};
1069
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
1070
+ patch: {
1071
+ "/invitations/:invitationId/status": import("@withtyped/server").PathGuard<"/:invitationId/status", unknown, {
1072
+ status: OrganizationInvitationStatus.Accepted;
1073
+ }, unknown>;
1074
+ };
1075
+ options: {};
1076
+ get: {
1077
+ "/invitations": import("@withtyped/server").PathGuard<"/", unknown, unknown, ({
1078
+ tenantId: string;
1079
+ createdAt: number;
1080
+ id: string;
1081
+ status: OrganizationInvitationStatus;
1082
+ updatedAt: number;
1083
+ inviterId: string | null;
1084
+ invitee: string;
1085
+ acceptedUserId: string | null;
1086
+ organizationId: string;
1087
+ expiresAt: number;
1088
+ organizationRoles: OrganizationRoleEntity[];
1089
+ } & {
1090
+ tenantTag: TenantTag;
1091
+ tenantName: string;
1092
+ })[]>;
1093
+ } & {
1094
+ "/invitations/:invitationId": import("@withtyped/server").PathGuard<"/:invitationId", unknown, unknown, {
1095
+ tenantId: string;
1096
+ createdAt: number;
1097
+ id: string;
1098
+ status: OrganizationInvitationStatus;
1099
+ updatedAt: number;
1100
+ inviterId: string | null;
1101
+ invitee: string;
1102
+ acceptedUserId: string | null;
1103
+ organizationId: string;
1104
+ expiresAt: number;
1105
+ organizationRoles: OrganizationRoleEntity[];
1106
+ }>;
1107
+ };
1108
+ post: {};
1109
+ put: {};
1110
+ delete: {};
1111
+ copy: {};
1112
+ head: {};
1113
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
1114
+ patch: {
1115
+ "/system-limits/:id": import("@withtyped/server").PathGuard<"/:id", unknown, {
1116
+ limits: {
1117
+ applicationsLimit?: number | undefined;
1118
+ thirdPartyApplicationsLimit?: number | undefined;
1119
+ scopesPerResourceLimit?: number | undefined;
1120
+ socialConnectorsLimit?: number | undefined;
1121
+ userRolesLimit?: number | undefined;
1122
+ machineToMachineRolesLimit?: number | undefined;
1123
+ scopesPerRoleLimit?: number | undefined;
1124
+ hooksLimit?: number | undefined;
1125
+ machineToMachineLimit?: number | undefined;
1126
+ resourcesLimit?: number | undefined;
1127
+ enterpriseSsoLimit?: number | undefined;
1128
+ tenantMembersLimit?: number | undefined;
1129
+ organizationsLimit?: number | undefined;
1130
+ samlApplicationsLimit?: number | undefined;
1131
+ customDomainsLimit?: number | undefined;
1132
+ usersPerOrganizationLimit?: number | undefined;
1133
+ organizationUserRolesLimit?: number | undefined;
1134
+ organizationMachineToMachineRolesLimit?: number | undefined;
1135
+ organizationScopesLimit?: number | undefined;
1136
+ };
1137
+ }, {
1138
+ createdAt: Date;
1139
+ id: string;
1140
+ updatedAt: Date;
1141
+ limits: {
1142
+ applicationsLimit?: number | undefined;
1143
+ thirdPartyApplicationsLimit?: number | undefined;
1144
+ scopesPerResourceLimit?: number | undefined;
1145
+ socialConnectorsLimit?: number | undefined;
1146
+ userRolesLimit?: number | undefined;
1147
+ machineToMachineRolesLimit?: number | undefined;
1148
+ scopesPerRoleLimit?: number | undefined;
1149
+ hooksLimit?: number | undefined;
1150
+ machineToMachineLimit?: number | undefined;
1151
+ resourcesLimit?: number | undefined;
1152
+ enterpriseSsoLimit?: number | undefined;
1153
+ tenantMembersLimit?: number | undefined;
1154
+ organizationsLimit?: number | undefined;
1155
+ samlApplicationsLimit?: number | undefined;
1156
+ customDomainsLimit?: number | undefined;
1157
+ usersPerOrganizationLimit?: number | undefined;
1158
+ organizationUserRolesLimit?: number | undefined;
1159
+ organizationMachineToMachineRolesLimit?: number | undefined;
1160
+ organizationScopesLimit?: number | undefined;
1161
+ };
1162
+ }>;
1163
+ };
1164
+ options: {};
1165
+ get: {
1166
+ "/system-limits": import("@withtyped/server").PathGuard<"/", {
1167
+ basicSkuId?: string | undefined;
1168
+ }, unknown, {
1169
+ createdAt: Date;
1170
+ id: string;
1171
+ updatedAt: Date;
1172
+ limits: {
1173
+ applicationsLimit?: number | undefined;
1174
+ thirdPartyApplicationsLimit?: number | undefined;
1175
+ scopesPerResourceLimit?: number | undefined;
1176
+ socialConnectorsLimit?: number | undefined;
1177
+ userRolesLimit?: number | undefined;
1178
+ machineToMachineRolesLimit?: number | undefined;
1179
+ scopesPerRoleLimit?: number | undefined;
1180
+ hooksLimit?: number | undefined;
1181
+ machineToMachineLimit?: number | undefined;
1182
+ resourcesLimit?: number | undefined;
1183
+ enterpriseSsoLimit?: number | undefined;
1184
+ tenantMembersLimit?: number | undefined;
1185
+ organizationsLimit?: number | undefined;
1186
+ samlApplicationsLimit?: number | undefined;
1187
+ customDomainsLimit?: number | undefined;
1188
+ usersPerOrganizationLimit?: number | undefined;
1189
+ organizationUserRolesLimit?: number | undefined;
1190
+ organizationMachineToMachineRolesLimit?: number | undefined;
1191
+ organizationScopesLimit?: number | undefined;
1192
+ };
1193
+ basicSkuIds: string[];
1194
+ }[]>;
1195
+ } & {
1196
+ "/system-limits/:id": import("@withtyped/server").PathGuard<"/:id", unknown, unknown, {
1197
+ createdAt: Date;
1198
+ id: string;
1199
+ updatedAt: Date;
1200
+ limits: {
1201
+ applicationsLimit?: number | undefined;
1202
+ thirdPartyApplicationsLimit?: number | undefined;
1203
+ scopesPerResourceLimit?: number | undefined;
1204
+ socialConnectorsLimit?: number | undefined;
1205
+ userRolesLimit?: number | undefined;
1206
+ machineToMachineRolesLimit?: number | undefined;
1207
+ scopesPerRoleLimit?: number | undefined;
1208
+ hooksLimit?: number | undefined;
1209
+ machineToMachineLimit?: number | undefined;
1210
+ resourcesLimit?: number | undefined;
1211
+ enterpriseSsoLimit?: number | undefined;
1212
+ tenantMembersLimit?: number | undefined;
1213
+ organizationsLimit?: number | undefined;
1214
+ samlApplicationsLimit?: number | undefined;
1215
+ customDomainsLimit?: number | undefined;
1216
+ usersPerOrganizationLimit?: number | undefined;
1217
+ organizationUserRolesLimit?: number | undefined;
1218
+ organizationMachineToMachineRolesLimit?: number | undefined;
1219
+ organizationScopesLimit?: number | undefined;
1220
+ };
1221
+ basicSkuIds: string[];
1222
+ }>;
1223
+ };
1224
+ post: {
1225
+ "/system-limits": import("@withtyped/server").PathGuard<"/", unknown, {
1226
+ limits: {
1227
+ applicationsLimit?: number | undefined;
1228
+ thirdPartyApplicationsLimit?: number | undefined;
1229
+ scopesPerResourceLimit?: number | undefined;
1230
+ socialConnectorsLimit?: number | undefined;
1231
+ userRolesLimit?: number | undefined;
1232
+ machineToMachineRolesLimit?: number | undefined;
1233
+ scopesPerRoleLimit?: number | undefined;
1234
+ hooksLimit?: number | undefined;
1235
+ machineToMachineLimit?: number | undefined;
1236
+ resourcesLimit?: number | undefined;
1237
+ enterpriseSsoLimit?: number | undefined;
1238
+ tenantMembersLimit?: number | undefined;
1239
+ organizationsLimit?: number | undefined;
1240
+ samlApplicationsLimit?: number | undefined;
1241
+ customDomainsLimit?: number | undefined;
1242
+ usersPerOrganizationLimit?: number | undefined;
1243
+ organizationUserRolesLimit?: number | undefined;
1244
+ organizationMachineToMachineRolesLimit?: number | undefined;
1245
+ organizationScopesLimit?: number | undefined;
1246
+ };
1247
+ id?: string | undefined;
1248
+ }, {
1249
+ createdAt: Date;
1250
+ id: string;
1251
+ updatedAt: Date;
1252
+ limits: {
1253
+ applicationsLimit?: number | undefined;
1254
+ thirdPartyApplicationsLimit?: number | undefined;
1255
+ scopesPerResourceLimit?: number | undefined;
1256
+ socialConnectorsLimit?: number | undefined;
1257
+ userRolesLimit?: number | undefined;
1258
+ machineToMachineRolesLimit?: number | undefined;
1259
+ scopesPerRoleLimit?: number | undefined;
1260
+ hooksLimit?: number | undefined;
1261
+ machineToMachineLimit?: number | undefined;
1262
+ resourcesLimit?: number | undefined;
1263
+ enterpriseSsoLimit?: number | undefined;
1264
+ tenantMembersLimit?: number | undefined;
1265
+ organizationsLimit?: number | undefined;
1266
+ samlApplicationsLimit?: number | undefined;
1267
+ customDomainsLimit?: number | undefined;
1268
+ usersPerOrganizationLimit?: number | undefined;
1269
+ organizationUserRolesLimit?: number | undefined;
1270
+ organizationMachineToMachineRolesLimit?: number | undefined;
1271
+ organizationScopesLimit?: number | undefined;
1272
+ };
1273
+ }>;
1274
+ } & {
1275
+ "/system-limits/:systemLimitId/basic-sku-relations": import("@withtyped/server").PathGuard<"/:systemLimitId/basic-sku-relations", unknown, {
1276
+ basicSkuIds: string[];
1277
+ }, {
1278
+ relations: {
1279
+ createdAt: Date;
1280
+ updatedAt: Date;
1281
+ basicSkuId: string;
1282
+ systemLimitId: string;
1283
+ }[];
1284
+ }>;
1285
+ };
1286
+ put: {};
1287
+ delete: {
1288
+ "/system-limits/:id": import("@withtyped/server").PathGuard<"/:id", unknown, unknown, unknown>;
1289
+ } & {
1290
+ "/system-limits/:systemLimitId/basic-sku-relations": import("@withtyped/server").PathGuard<"/:systemLimitId/basic-sku-relations", unknown, {
1291
+ basicSkuIds: string[];
1292
+ }, unknown>;
1293
+ };
1294
+ copy: {};
1295
+ head: {};
1296
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
1297
+ patch: {};
1298
+ options: {};
1299
+ get: {};
1300
+ post: {};
1301
+ put: {};
1302
+ delete: {
1303
+ "/me": import("@withtyped/server").PathGuard<"/", unknown, unknown, unknown>;
1304
+ };
1305
+ copy: {};
1306
+ head: {};
1307
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
1308
+ patch: {
1309
+ "/me/regions/:regionName/users/:userId": import("@withtyped/server").PathGuard<"/:regionName/users/:userId", unknown, {
1310
+ role: DatabaseRegionAccessRole;
1311
+ }, {
1312
+ role: DatabaseRegionAccessRole;
1313
+ userId: string;
1314
+ }>;
1315
+ };
1316
+ options: {};
1317
+ get: {
1318
+ "/me/regions": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
1319
+ regions: {
1320
+ id: string;
1321
+ name: string;
1322
+ country: string;
1323
+ displayName: string;
1324
+ tags: TenantTag[];
1325
+ isPrivate: boolean;
1326
+ customTenantIdPrefix: string | null;
1327
+ }[];
1328
+ }>;
1329
+ } & {
1330
+ "/me/regions/:regionName/users": import("@withtyped/server").PathGuard<"/:regionName/users", unknown, unknown, {
1331
+ users: {
1332
+ role: DatabaseRegionAccessRole;
1333
+ userId: string;
1334
+ }[];
1335
+ }>;
1336
+ };
1337
+ post: {
1338
+ "/me/regions/:regionName/users": import("@withtyped/server").PathGuard<"/:regionName/users", unknown, {
1339
+ role: DatabaseRegionAccessRole;
1340
+ userId: string;
1341
+ }, {
1342
+ role: DatabaseRegionAccessRole;
1343
+ userId: string;
1344
+ }>;
1345
+ };
1346
+ put: {};
1347
+ delete: {
1348
+ "/me/regions/:regionName/users/:userId": import("@withtyped/server").PathGuard<"/:regionName/users/:userId", unknown, unknown, unknown>;
1349
+ };
1350
+ copy: {};
1351
+ head: {};
1352
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
1353
+ patch: {};
1354
+ options: {};
1355
+ get: {
1356
+ "/me/logto-enterprises": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
1357
+ logtoEnterprises: {
1358
+ createdAt: Date;
1359
+ id: string;
1360
+ name: string | null;
1361
+ updatedAt: Date;
1362
+ quotaScope: QuotaScope;
1363
+ }[];
1364
+ }>;
1365
+ } & {
1366
+ "/me/logto-enterprises/:id": import("@withtyped/server").PathGuard<"/:id", {
1367
+ includeSharedQuota?: string | undefined;
1368
+ includeUsages?: string | undefined;
1369
+ includeSkuItems?: string | undefined;
1370
+ }, unknown, {
1371
+ createdAt: Date;
1372
+ id: string;
1373
+ name: string | null;
1374
+ updatedAt: Date;
1375
+ regionNames: string[];
1376
+ quotaScope: QuotaScope;
1377
+ quota?: {
1378
+ usageReportingType: UsageReportingType;
1379
+ basicQuota: {
1380
+ auditLogsRetentionDays: number | null;
1381
+ subjectTokenEnabled: boolean;
1382
+ mauLimit: number | null;
1383
+ applicationsLimit: number | null;
1384
+ thirdPartyApplicationsLimit: number | null;
1385
+ scopesPerResourceLimit: number | null;
1386
+ socialConnectorsLimit: number | null;
1387
+ userRolesLimit: number | null;
1388
+ machineToMachineRolesLimit: number | null;
1389
+ scopesPerRoleLimit: number | null;
1390
+ hooksLimit: number | null;
1391
+ customJwtEnabled: boolean;
1392
+ bringYourUiEnabled: boolean;
1393
+ collectUserProfileEnabled: boolean;
1394
+ passkeySignInEnabled: boolean;
1395
+ tokenLimit: number | null;
1396
+ machineToMachineLimit: number | null;
1397
+ resourcesLimit: number | null;
1398
+ enterpriseSsoLimit: number | null;
1399
+ tenantMembersLimit: number | null;
1400
+ mfaEnabled: boolean;
1401
+ organizationsEnabled: boolean;
1402
+ organizationsLimit: number | null;
1403
+ securityFeaturesEnabled: boolean;
1404
+ idpInitiatedSsoEnabled: boolean;
1405
+ samlApplicationsLimit: number | null;
1406
+ customDomainsLimit: number | null;
1407
+ };
1408
+ aggregatedQuota: {
1409
+ auditLogsRetentionDays: number | null;
1410
+ subjectTokenEnabled: boolean;
1411
+ mauLimit: number | null;
1412
+ applicationsLimit: number | null;
1413
+ thirdPartyApplicationsLimit: number | null;
1414
+ scopesPerResourceLimit: number | null;
1415
+ socialConnectorsLimit: number | null;
1416
+ userRolesLimit: number | null;
1417
+ machineToMachineRolesLimit: number | null;
1418
+ scopesPerRoleLimit: number | null;
1419
+ hooksLimit: number | null;
1420
+ customJwtEnabled: boolean;
1421
+ bringYourUiEnabled: boolean;
1422
+ collectUserProfileEnabled: boolean;
1423
+ passkeySignInEnabled: boolean;
1424
+ tokenLimit: number | null;
1425
+ machineToMachineLimit: number | null;
1426
+ resourcesLimit: number | null;
1427
+ enterpriseSsoLimit: number | null;
1428
+ tenantMembersLimit: number | null;
1429
+ mfaEnabled: boolean;
1430
+ organizationsEnabled: boolean;
1431
+ organizationsLimit: number | null;
1432
+ securityFeaturesEnabled: boolean;
1433
+ idpInitiatedSsoEnabled: boolean;
1434
+ samlApplicationsLimit: number | null;
1435
+ customDomainsLimit: number | null;
1436
+ };
1437
+ } | undefined;
1438
+ subscription?: {
1439
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
1440
+ currentPeriodStart: Date;
1441
+ currentPeriodEnd: Date;
1442
+ quotaScope: "dedicated" | "shared";
1443
+ isEnterprisePlan: boolean;
1444
+ id?: string | undefined;
1445
+ upcomingInvoice?: {
1446
+ subtotal: number;
1447
+ subtotalExcludingTax: number | null;
1448
+ total: number;
1449
+ totalExcludingTax: number | null;
1450
+ } | null | undefined;
1451
+ } | undefined;
1452
+ usages?: {
1453
+ mauLimit: number;
1454
+ applicationsLimit: number;
1455
+ thirdPartyApplicationsLimit: number;
1456
+ socialConnectorsLimit: number;
1457
+ userRolesLimit: number;
1458
+ machineToMachineRolesLimit: number;
1459
+ hooksLimit: number;
1460
+ customJwtEnabled: boolean;
1461
+ bringYourUiEnabled: boolean;
1462
+ collectUserProfileEnabled: boolean;
1463
+ passkeySignInEnabled: boolean;
1464
+ tokenLimit: number;
1465
+ machineToMachineLimit: number;
1466
+ resourcesLimit: number;
1467
+ enterpriseSsoLimit: number;
1468
+ tenantMembersLimit: number;
1469
+ mfaEnabled: boolean;
1470
+ organizationsEnabled: boolean;
1471
+ organizationsLimit: number;
1472
+ securityFeaturesEnabled: boolean;
1473
+ idpInitiatedSsoEnabled: boolean;
1474
+ samlApplicationsLimit: number;
1475
+ customDomainsLimit: number;
1476
+ userTokenLimit: number;
1477
+ m2mTokenLimit: number;
1478
+ } | undefined;
1479
+ subscriptionSkuItems?: {
1480
+ count: number;
1481
+ logtoSkuId: string;
1482
+ type: LogtoSkuType;
1483
+ isDevPlan: boolean;
1484
+ quota: {
1485
+ auditLogsRetentionDays?: number | null | undefined;
1486
+ subjectTokenEnabled?: boolean | undefined;
1487
+ mauLimit?: number | null | undefined;
1488
+ applicationsLimit?: number | null | undefined;
1489
+ thirdPartyApplicationsLimit?: number | null | undefined;
1490
+ scopesPerResourceLimit?: number | null | undefined;
1491
+ socialConnectorsLimit?: number | null | undefined;
1492
+ userRolesLimit?: number | null | undefined;
1493
+ machineToMachineRolesLimit?: number | null | undefined;
1494
+ scopesPerRoleLimit?: number | null | undefined;
1495
+ hooksLimit?: number | null | undefined;
1496
+ customJwtEnabled?: boolean | undefined;
1497
+ bringYourUiEnabled?: boolean | undefined;
1498
+ collectUserProfileEnabled?: boolean | undefined;
1499
+ passkeySignInEnabled?: boolean | undefined;
1500
+ tokenLimit?: number | null | undefined;
1501
+ machineToMachineLimit?: number | null | undefined;
1502
+ resourcesLimit?: number | null | undefined;
1503
+ enterpriseSsoLimit?: number | null | undefined;
1504
+ tenantMembersLimit?: number | null | undefined;
1505
+ mfaEnabled?: boolean | undefined;
1506
+ organizationsEnabled?: boolean | undefined;
1507
+ organizationsLimit?: number | null | undefined;
1508
+ securityFeaturesEnabled?: boolean | undefined;
1509
+ idpInitiatedSsoEnabled?: boolean | undefined;
1510
+ samlApplicationsLimit?: number | null | undefined;
1511
+ customDomainsLimit?: number | null | undefined;
1512
+ };
1513
+ unitPrice?: number | null | undefined;
1514
+ }[] | undefined;
1515
+ }>;
1516
+ } & {
1517
+ "/me/logto-enterprises/:id/invoices": import("@withtyped/server").PathGuard<"/:id/invoices", unknown, unknown, {
1518
+ invoices: {
1519
+ createdAt: Date;
1520
+ id: string;
1521
+ status: "open" | "void" | "draft" | "paid" | "uncollectible" | null;
1522
+ updatedAt: Date;
1523
+ customerId: string | null;
1524
+ basicSkuId: string | null;
1525
+ billingReason: string | null;
1526
+ periodStart: Date;
1527
+ periodEnd: Date;
1528
+ amountDue: number;
1529
+ amountPaid: number;
1530
+ subscriptionId: string | null;
1531
+ hostedInvoiceUrl: string | null;
1532
+ invoicePdf: string | null;
1533
+ collectionMethod: "charge_automatically" | "send_invoice" | null;
1534
+ dueDate: Date | null;
1535
+ }[];
1536
+ }>;
1537
+ } & {
1538
+ "/me/logto-enterprises/:enterpriseId/invoices/:invoiceId/hosted-invoice-url": import("@withtyped/server").PathGuard<"/:enterpriseId/invoices/:invoiceId/hosted-invoice-url", unknown, unknown, {
1539
+ hostedInvoiceUrl: string;
1540
+ }>;
1541
+ };
1542
+ post: {
1543
+ "/me/logto-enterprises/:id/stripe-customer-portal": import("@withtyped/server").PathGuard<"/:id/stripe-customer-portal", unknown, {
1544
+ callbackUrl?: string | undefined;
1545
+ }, {
1546
+ redirectUri: string;
1547
+ }>;
1548
+ };
1549
+ put: {};
1550
+ delete: {};
1551
+ copy: {};
1552
+ head: {};
1553
+ }, "/api">>, "/api">;
1554
+ export declare const tenantAuthRouter: import("@withtyped/server").Router<RequestContext, import("@withtyped/server").WithBodyContext<import("@withtyped/server").BaseContext & {
1555
+ request: {
1556
+ id?: string | undefined;
1557
+ method?: import("@withtyped/server").RequestMethod | undefined;
1558
+ headers: import("http").IncomingHttpHeaders;
1559
+ url: URL;
1560
+ body?: unknown;
1561
+ };
1562
+ }>, import("@withtyped/server").MergeRoutes<import("@withtyped/server").MergeRoutes<import("@withtyped/server").BaseRoutes, import("@withtyped/server").RoutesWithPrefix<{
1563
+ patch: {
1564
+ "/:tenantId/invitations/:invitationId/status": import("@withtyped/server").PathGuard<"/:tenantId/invitations/:invitationId/status", unknown, {
1565
+ status: OrganizationInvitationStatus.Revoked;
1566
+ }, {
1567
+ tenantId: string;
1568
+ createdAt: number;
1569
+ id: string;
1570
+ status: OrganizationInvitationStatus;
1571
+ updatedAt: number;
1572
+ inviterId: string | null;
1573
+ invitee: string;
1574
+ acceptedUserId: string | null;
1575
+ organizationId: string;
1576
+ expiresAt: number;
1577
+ organizationRoles: OrganizationRoleEntity[];
1578
+ }>;
1579
+ };
1580
+ options: {};
1581
+ get: {
1582
+ "/:tenantId/members": import("@withtyped/server").PathGuard<"/:tenantId/members", unknown, unknown, {
1583
+ id: string;
1584
+ name: string | null;
1585
+ username: string | null;
1586
+ primaryEmail: string | null;
1587
+ primaryPhone: string | null;
1588
+ avatar: string | null;
1589
+ organizationRoles: OrganizationRoleEntity[];
1590
+ }[]>;
1591
+ } & {
1592
+ "/:tenantId/members/:userId/scopes": import("@withtyped/server").PathGuard<"/:tenantId/members/:userId/scopes", unknown, unknown, OrganizationScope[]>;
1593
+ } & {
1594
+ "/:tenantId/invitations": import("@withtyped/server").PathGuard<"/:tenantId/invitations", unknown, unknown, ({
1595
+ tenantId: string;
1596
+ createdAt: number;
1597
+ id: string;
1598
+ status: OrganizationInvitationStatus;
1599
+ updatedAt: number;
1600
+ inviterId: string | null;
1601
+ invitee: string;
1602
+ acceptedUserId: string | null;
1603
+ organizationId: string;
1604
+ expiresAt: number;
1605
+ organizationRoles: OrganizationRoleEntity[];
1606
+ } & {
1607
+ inviterName?: string | undefined;
1608
+ })[]>;
1609
+ };
1610
+ post: {
1611
+ "/:tenantId/invitations": import("@withtyped/server").PathGuard<"/:tenantId/invitations", unknown, {
1612
+ invitee: string | string[];
1613
+ roleName: TenantRole;
1614
+ expiresAt?: number | undefined;
1615
+ }, {
1616
+ tenantId: string;
1617
+ createdAt: number;
1618
+ id: string;
1619
+ status: OrganizationInvitationStatus;
1620
+ updatedAt: number;
1621
+ inviterId: string | null;
1622
+ invitee: string;
1623
+ acceptedUserId: string | null;
1624
+ organizationId: string;
1625
+ expiresAt: number;
1626
+ organizationRoles: OrganizationRoleEntity[];
1627
+ } | {
1628
+ tenantId: string;
1629
+ createdAt: number;
1630
+ id: string;
1631
+ status: OrganizationInvitationStatus;
1632
+ updatedAt: number;
1633
+ inviterId: string | null;
1634
+ invitee: string;
1635
+ acceptedUserId: string | null;
1636
+ organizationId: string;
1637
+ expiresAt: number;
1638
+ organizationRoles: OrganizationRoleEntity[];
1639
+ }[]>;
1640
+ } & {
1641
+ "/:tenantId/invitations/:invitationId/message": import("@withtyped/server").PathGuard<"/:tenantId/invitations/:invitationId/message", unknown, unknown, unknown>;
1642
+ };
1643
+ put: {
1644
+ "/:tenantId/members/:userId/roles": import("@withtyped/server").PathGuard<"/:tenantId/members/:userId/roles", unknown, {
1645
+ roleName: TenantRole;
1646
+ }, unknown>;
1647
+ };
1648
+ delete: {
1649
+ "/:tenantId/members/:userId": import("@withtyped/server").PathGuard<"/:tenantId/members/:userId", unknown, unknown, unknown>;
1650
+ } & {
1651
+ "/:tenantId/invitations/:invitationId": import("@withtyped/server").PathGuard<"/:tenantId/invitations/:invitationId", unknown, unknown, unknown>;
1652
+ };
1653
+ copy: {};
1654
+ head: {};
1655
+ }, "/api/tenants">>, import("@withtyped/server").RoutesWithPrefix<{
1656
+ patch: {
1657
+ "/:tenantId/settings": import("@withtyped/server").PathGuard<"/:tenantId/settings", unknown, {
1658
+ isMfaRequired?: boolean | undefined;
1659
+ }, {
1660
+ isMfaRequired: boolean;
1661
+ }>;
1662
+ };
1663
+ options: {};
1664
+ get: {
1665
+ "/:tenantId/settings": import("@withtyped/server").PathGuard<"/:tenantId/settings", unknown, unknown, {
1666
+ isMfaRequired: boolean;
1667
+ }>;
1668
+ };
1669
+ post: {};
1670
+ put: {};
1671
+ delete: {};
1672
+ copy: {};
1673
+ head: {};
1674
+ }, "/api/tenants">>, "/api/tenants">;
1675
+
1676
+ export {
1677
+ router as default,
1678
+ };
1679
+
1680
+ export {};