@logto/cloud 0.2.5-31703ea → 0.2.5-31c9868

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