@logto/cloud 0.2.5-25a9c6d → 0.2.5-299028a

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,1271 @@
1
+ // Generated by dts-bundle-generator v9.3.1
2
+
3
+ import { Json, JsonObject, RequestContext } from '@withtyped/server';
4
+ import { InferModelType } from '@withtyped/server/model';
5
+
6
+ declare const availableReportableUsageKeys: readonly [
7
+ "tokenLimit",
8
+ "machineToMachineLimit",
9
+ "resourcesLimit",
10
+ "enterpriseSsoLimit",
11
+ "hooksLimit",
12
+ "tenantMembersLimit",
13
+ "mfaEnabled",
14
+ "organizationsEnabled",
15
+ "organizationsLimit",
16
+ "securityFeaturesEnabled",
17
+ "userRolesLimit",
18
+ "machineToMachineRolesLimit",
19
+ "thirdPartyApplicationsLimit",
20
+ "samlApplicationsLimit"
21
+ ];
22
+ export type ReportableUsageKey = (typeof availableReportableUsageKeys)[number];
23
+ export type RealtimeReportableUsageKey = Exclude<ReportableUsageKey, "tokenLimit">;
24
+ declare enum LogtoSkuType {
25
+ Basic = "Basic",
26
+ AddOn = "AddOn"
27
+ }
28
+ declare enum TemplateType {
29
+ /** The template for sending verification code when user is signing in. */
30
+ SignIn = "SignIn",
31
+ /** The template for sending verification code when user is registering. */
32
+ Register = "Register",
33
+ /** The template for sending verification code when user is resetting password. */
34
+ ForgotPassword = "ForgotPassword",
35
+ /** The template for sending organization invitation. */
36
+ OrganizationInvitation = "OrganizationInvitation",
37
+ /** The template for generic usage. */
38
+ Generic = "Generic",
39
+ /** The template for validating user permission for sensitive operations. */
40
+ UserPermissionValidation = "UserPermissionValidation",
41
+ /** The template for binding a new identifier to an existing account. */
42
+ BindNewIdentifier = "BindNewIdentifier",
43
+ /** The template for sending MFA verification code. */
44
+ MfaVerification = "MfaVerification",
45
+ /** The template for binding MFA verification. */
46
+ BindMfa = "BindMfa"
47
+ }
48
+ declare enum OrganizationInvitationStatus {
49
+ Pending = "Pending",
50
+ Accepted = "Accepted",
51
+ Expired = "Expired",
52
+ Revoked = "Revoked"
53
+ }
54
+ /** The scopes (permissions) defined by the organization template. */
55
+ export type OrganizationScope = {
56
+ tenantId: string;
57
+ /** The globally unique identifier of the organization scope. */
58
+ id: string;
59
+ /** The organization scope's name, unique within the organization template. */
60
+ name: string;
61
+ /** A brief description of the organization scope. */
62
+ description: string | null;
63
+ };
64
+ declare enum LogtoJwtTokenKeyType {
65
+ AccessToken = "access-token",
66
+ ClientCredentials = "client-credentials"
67
+ }
68
+ /**
69
+ * The simplified organization role entity that is returned in the `roles` field
70
+ * of the organization.
71
+ */
72
+ export type OrganizationRoleEntity = {
73
+ id: string;
74
+ name: string;
75
+ };
76
+ declare enum TenantTag {
77
+ Development = "development",
78
+ Production = "production"
79
+ }
80
+ declare enum TenantRole {
81
+ /** Admin of the tenant, who has all permissions. */
82
+ Admin = "admin",
83
+ /** Collaborator of the tenant, who has permissions to operate the tenant data, but not the tenant settings. */
84
+ Collaborator = "collaborator"
85
+ }
86
+ declare const AffiliateProperties: import("@withtyped/server/lib/model/index.js").default<"affiliate_properties", {
87
+ createdAt: Date;
88
+ affiliateId: string;
89
+ type: "hostname" | "query";
90
+ value: string;
91
+ }, "createdAt", "createdAt">;
92
+ export type AffiliateProperty = InferModelType<typeof AffiliateProperties>;
93
+ declare const Affiliates: import("@withtyped/server/lib/model/index.js").default<"affiliates", {
94
+ name: string;
95
+ createdAt: Date;
96
+ id: string;
97
+ }, "id" | "createdAt", "id" | "createdAt">;
98
+ export type Affiliate = InferModelType<typeof Affiliates>;
99
+ declare const publicRegionNames: readonly [
100
+ "EU",
101
+ "US",
102
+ "AU",
103
+ "JP"
104
+ ];
105
+ /** The type of region names for the public cloud. */
106
+ export type PublicRegionName = (typeof publicRegionNames)[number];
107
+ declare enum DatabaseRegionAccessRole {
108
+ /** Instance administrator - can manage collaborators and create tenants */
109
+ Admin = "admin",
110
+ /** Collaborator user - can only create tenants in the instance */
111
+ Collaborator = "collaborator"
112
+ }
113
+ /**
114
+ * Data structure representing a Logto Cloud region.
115
+ */
116
+ export type Region = {
117
+ /**
118
+ * The unique identifier for the region.
119
+ */
120
+ id: string;
121
+ /**
122
+ * A human-readable name for the region.
123
+ */
124
+ name: string;
125
+ /**
126
+ * The country where the region is located.
127
+ */
128
+ country: string;
129
+ /**
130
+ * Indicates whether the region is private.
131
+ */
132
+ isPrivate: boolean;
133
+ /**
134
+ * Tenant tags available for selection when creating tenants in this region.
135
+ */
136
+ tags: TenantTag[];
137
+ };
138
+ export type WithAuthContext<Context = RequestContext> = Context & {
139
+ auth: {
140
+ /** The ID of the authenticated subject (`sub`). */
141
+ id: string;
142
+ /** The scopes that the subject has (`scope`). */
143
+ scopes: string[];
144
+ };
145
+ };
146
+ export type AffiliateData = Affiliate & {
147
+ properties: Array<Pick<AffiliateProperty, "type" | "value">>;
148
+ };
149
+ declare const router: import("@withtyped/server").Router<RequestContext, WithAuthContext<Omit<import("@withtyped/server").BaseContext & {
150
+ request: {
151
+ id?: string | undefined;
152
+ method?: import("@withtyped/server").RequestMethod | undefined;
153
+ headers: import("http").IncomingHttpHeaders;
154
+ url: URL;
155
+ body?: unknown;
156
+ };
157
+ }, "request"> & {
158
+ request: Record<string, unknown> & {
159
+ id?: string | undefined;
160
+ method?: import("@withtyped/server").RequestMethod | undefined;
161
+ headers: import("http").IncomingHttpHeaders;
162
+ url: URL;
163
+ body?: unknown;
164
+ } & {
165
+ body?: Json | undefined;
166
+ bodyRaw?: Buffer | undefined;
167
+ };
168
+ }>, 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<{
169
+ patch: {
170
+ "/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, {
171
+ name?: string | undefined;
172
+ }, {
173
+ id: string;
174
+ name: string;
175
+ createdAt: Date;
176
+ quota: {
177
+ mauLimit: number | null;
178
+ tokenLimit: number | null;
179
+ };
180
+ usage: {
181
+ activeUsers: number;
182
+ tokenUsage: number;
183
+ };
184
+ indicator: string;
185
+ isSuspended: boolean;
186
+ planId: string;
187
+ subscription: {
188
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
189
+ planId: string;
190
+ currentPeriodStart: Date;
191
+ currentPeriodEnd: Date;
192
+ isEnterprisePlan: boolean;
193
+ id?: string | undefined;
194
+ upcomingInvoice?: {
195
+ subtotal: number;
196
+ subtotalExcludingTax: number | null;
197
+ total: number;
198
+ totalExcludingTax: number | null;
199
+ } | null | undefined;
200
+ };
201
+ regionName: string;
202
+ tag: TenantTag;
203
+ openInvoices: {
204
+ id: string;
205
+ createdAt: Date;
206
+ status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
207
+ updatedAt: Date;
208
+ customerId: string | null;
209
+ billingReason: string | null;
210
+ periodStart: Date;
211
+ periodEnd: Date;
212
+ amountDue: number;
213
+ amountPaid: number;
214
+ basicSkuId: string | null;
215
+ subscriptionId: string | null;
216
+ hostedInvoiceUrl: string | null;
217
+ invoicePdf: string | null;
218
+ }[];
219
+ featureFlags?: {
220
+ isMultipleCustomDomainsEnabled?: boolean | undefined;
221
+ } | undefined;
222
+ }>;
223
+ };
224
+ options: {};
225
+ get: {
226
+ "/tenants": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
227
+ id: string;
228
+ name: string;
229
+ createdAt: Date;
230
+ quota: {
231
+ mauLimit: number | null;
232
+ tokenLimit: number | null;
233
+ };
234
+ usage: {
235
+ activeUsers: number;
236
+ tokenUsage: 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
+ id?: string | undefined;
248
+ upcomingInvoice?: {
249
+ subtotal: number;
250
+ subtotalExcludingTax: number | null;
251
+ total: number;
252
+ totalExcludingTax: number | null;
253
+ } | null | undefined;
254
+ };
255
+ regionName: string;
256
+ tag: TenantTag;
257
+ openInvoices: {
258
+ id: string;
259
+ createdAt: Date;
260
+ status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
261
+ updatedAt: Date;
262
+ customerId: string | null;
263
+ billingReason: string | null;
264
+ periodStart: Date;
265
+ periodEnd: Date;
266
+ amountDue: number;
267
+ amountPaid: number;
268
+ basicSkuId: string | null;
269
+ subscriptionId: string | null;
270
+ hostedInvoiceUrl: string | null;
271
+ invoicePdf: string | null;
272
+ }[];
273
+ featureFlags?: {
274
+ isMultipleCustomDomainsEnabled?: boolean | undefined;
275
+ } | undefined;
276
+ }[]>;
277
+ };
278
+ post: {
279
+ "/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
280
+ id?: string | undefined;
281
+ name?: string | undefined;
282
+ regionName?: string | undefined;
283
+ tag?: TenantTag | undefined;
284
+ }, {
285
+ id: string;
286
+ name: string;
287
+ createdAt: Date;
288
+ quota: {
289
+ mauLimit: number | null;
290
+ tokenLimit: number | null;
291
+ };
292
+ usage: {
293
+ activeUsers: number;
294
+ tokenUsage: number;
295
+ };
296
+ indicator: string;
297
+ isSuspended: boolean;
298
+ planId: string;
299
+ subscription: {
300
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
301
+ planId: string;
302
+ currentPeriodStart: Date;
303
+ currentPeriodEnd: Date;
304
+ isEnterprisePlan: boolean;
305
+ id?: string | undefined;
306
+ upcomingInvoice?: {
307
+ subtotal: number;
308
+ subtotalExcludingTax: number | null;
309
+ total: number;
310
+ totalExcludingTax: number | null;
311
+ } | null | undefined;
312
+ };
313
+ regionName: string;
314
+ tag: TenantTag;
315
+ openInvoices: {
316
+ id: string;
317
+ createdAt: Date;
318
+ status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
319
+ updatedAt: Date;
320
+ customerId: string | null;
321
+ billingReason: string | null;
322
+ periodStart: Date;
323
+ periodEnd: Date;
324
+ amountDue: number;
325
+ amountPaid: number;
326
+ basicSkuId: string | null;
327
+ subscriptionId: string | null;
328
+ hostedInvoiceUrl: string | null;
329
+ invoicePdf: string | null;
330
+ }[];
331
+ featureFlags?: {
332
+ isMultipleCustomDomainsEnabled?: boolean | undefined;
333
+ } | undefined;
334
+ }>;
335
+ } & {
336
+ "/tenants/subscriptions/plan": import("@withtyped/server").PathGuard<"/subscriptions/plan", unknown, {
337
+ planId: string;
338
+ tenantIds: string[];
339
+ }, {
340
+ tenantId: string;
341
+ success: boolean;
342
+ error?: string | undefined;
343
+ updatedLineItems?: unknown[] | undefined;
344
+ }[]>;
345
+ };
346
+ put: {};
347
+ delete: {
348
+ "/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, unknown, unknown>;
349
+ };
350
+ copy: {};
351
+ head: {};
352
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
353
+ patch: {};
354
+ options: {};
355
+ get: {
356
+ "/tenants/my/subscription": import("@withtyped/server").PathGuard<"/my/subscription", unknown, unknown, {
357
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
358
+ quota: {
359
+ auditLogsRetentionDays: number | null;
360
+ mauLimit: number | null;
361
+ applicationsLimit: number | null;
362
+ thirdPartyApplicationsLimit: number | null;
363
+ scopesPerResourceLimit: number | null;
364
+ socialConnectorsLimit: number | null;
365
+ userRolesLimit: number | null;
366
+ machineToMachineRolesLimit: number | null;
367
+ scopesPerRoleLimit: number | null;
368
+ hooksLimit: number | null;
369
+ customJwtEnabled: boolean;
370
+ subjectTokenEnabled: boolean;
371
+ bringYourUiEnabled: boolean;
372
+ collectUserProfileEnabled: boolean;
373
+ tokenLimit: number | null;
374
+ machineToMachineLimit: number | null;
375
+ resourcesLimit: number | null;
376
+ enterpriseSsoLimit: number | null;
377
+ tenantMembersLimit: number | null;
378
+ mfaEnabled: boolean;
379
+ organizationsEnabled: boolean;
380
+ organizationsLimit: number | null;
381
+ securityFeaturesEnabled: boolean;
382
+ idpInitiatedSsoEnabled: boolean;
383
+ samlApplicationsLimit: number | null;
384
+ };
385
+ planId: string;
386
+ currentPeriodStart: Date;
387
+ currentPeriodEnd: Date;
388
+ isEnterprisePlan: boolean;
389
+ id?: string | undefined;
390
+ upcomingInvoice?: {
391
+ subtotal: number;
392
+ subtotalExcludingTax: number | null;
393
+ total: number;
394
+ totalExcludingTax: number | null;
395
+ } | null | undefined;
396
+ }>;
397
+ } & {
398
+ "/tenants/my/subscription-usage": import("@withtyped/server").PathGuard<"/my/subscription-usage", unknown, unknown, {
399
+ usage: {
400
+ applicationsLimit: number;
401
+ thirdPartyApplicationsLimit: number;
402
+ scopesPerResourceLimit: number;
403
+ socialConnectorsLimit: number;
404
+ userRolesLimit: number;
405
+ machineToMachineRolesLimit: number;
406
+ scopesPerRoleLimit: number;
407
+ hooksLimit: number;
408
+ customJwtEnabled: boolean;
409
+ subjectTokenEnabled: boolean;
410
+ bringYourUiEnabled: boolean;
411
+ collectUserProfileEnabled: boolean;
412
+ machineToMachineLimit: number;
413
+ resourcesLimit: number;
414
+ enterpriseSsoLimit: number;
415
+ tenantMembersLimit: number;
416
+ mfaEnabled: boolean;
417
+ organizationsEnabled: boolean;
418
+ organizationsLimit: number;
419
+ securityFeaturesEnabled: boolean;
420
+ idpInitiatedSsoEnabled: boolean;
421
+ samlApplicationsLimit: number;
422
+ };
423
+ resources: Record<string, number>;
424
+ roles: Record<string, number>;
425
+ quota: {
426
+ auditLogsRetentionDays: number | null;
427
+ mauLimit: number | null;
428
+ applicationsLimit: number | null;
429
+ thirdPartyApplicationsLimit: number | null;
430
+ scopesPerResourceLimit: number | null;
431
+ socialConnectorsLimit: number | null;
432
+ userRolesLimit: number | null;
433
+ machineToMachineRolesLimit: number | null;
434
+ scopesPerRoleLimit: number | null;
435
+ hooksLimit: number | null;
436
+ customJwtEnabled: boolean;
437
+ subjectTokenEnabled: boolean;
438
+ bringYourUiEnabled: boolean;
439
+ collectUserProfileEnabled: boolean;
440
+ tokenLimit: number | null;
441
+ machineToMachineLimit: number | null;
442
+ resourcesLimit: number | null;
443
+ enterpriseSsoLimit: number | null;
444
+ tenantMembersLimit: number | null;
445
+ mfaEnabled: boolean;
446
+ organizationsEnabled: boolean;
447
+ organizationsLimit: number | null;
448
+ securityFeaturesEnabled: boolean;
449
+ idpInitiatedSsoEnabled: boolean;
450
+ samlApplicationsLimit: number | null;
451
+ };
452
+ basicQuota: {
453
+ auditLogsRetentionDays: number | null;
454
+ mauLimit: number | null;
455
+ applicationsLimit: number | null;
456
+ thirdPartyApplicationsLimit: number | null;
457
+ scopesPerResourceLimit: number | null;
458
+ socialConnectorsLimit: number | null;
459
+ userRolesLimit: number | null;
460
+ machineToMachineRolesLimit: number | null;
461
+ scopesPerRoleLimit: number | null;
462
+ hooksLimit: number | null;
463
+ customJwtEnabled: boolean;
464
+ subjectTokenEnabled: boolean;
465
+ bringYourUiEnabled: boolean;
466
+ collectUserProfileEnabled: boolean;
467
+ tokenLimit: number | null;
468
+ machineToMachineLimit: number | null;
469
+ resourcesLimit: number | null;
470
+ enterpriseSsoLimit: number | null;
471
+ tenantMembersLimit: number | null;
472
+ mfaEnabled: boolean;
473
+ organizationsEnabled: boolean;
474
+ organizationsLimit: number | null;
475
+ securityFeaturesEnabled: boolean;
476
+ idpInitiatedSsoEnabled: boolean;
477
+ samlApplicationsLimit: number | null;
478
+ };
479
+ }>;
480
+ };
481
+ post: {
482
+ "/tenants/my/subscription/item-updates": import("@withtyped/server").PathGuard<"/my/subscription/item-updates", unknown, {
483
+ usageKey: RealtimeReportableUsageKey;
484
+ }, {
485
+ message: string;
486
+ }>;
487
+ };
488
+ put: {};
489
+ delete: {};
490
+ copy: {};
491
+ head: {};
492
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
493
+ patch: {};
494
+ options: {};
495
+ get: {
496
+ "/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, {
497
+ status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
498
+ planId: string;
499
+ currentPeriodStart: Date;
500
+ currentPeriodEnd: Date;
501
+ isEnterprisePlan: boolean;
502
+ id?: string | undefined;
503
+ upcomingInvoice?: {
504
+ subtotal: number;
505
+ subtotalExcludingTax: number | null;
506
+ total: number;
507
+ totalExcludingTax: number | null;
508
+ } | null | undefined;
509
+ }>;
510
+ } & {
511
+ "/tenants/:tenantId/subscription-usage": import("@withtyped/server").PathGuard<"/:tenantId/subscription-usage", unknown, unknown, {
512
+ usage: {
513
+ applicationsLimit: number;
514
+ thirdPartyApplicationsLimit: number;
515
+ scopesPerResourceLimit: number;
516
+ socialConnectorsLimit: number;
517
+ userRolesLimit: number;
518
+ machineToMachineRolesLimit: number;
519
+ scopesPerRoleLimit: number;
520
+ hooksLimit: number;
521
+ customJwtEnabled: boolean;
522
+ subjectTokenEnabled: boolean;
523
+ bringYourUiEnabled: boolean;
524
+ collectUserProfileEnabled: boolean;
525
+ machineToMachineLimit: number;
526
+ resourcesLimit: number;
527
+ enterpriseSsoLimit: number;
528
+ tenantMembersLimit: number;
529
+ mfaEnabled: boolean;
530
+ organizationsEnabled: boolean;
531
+ organizationsLimit: number;
532
+ securityFeaturesEnabled: boolean;
533
+ idpInitiatedSsoEnabled: boolean;
534
+ samlApplicationsLimit: number;
535
+ };
536
+ resources: Record<string, number>;
537
+ roles: Record<string, number>;
538
+ quota: {
539
+ auditLogsRetentionDays: number | null;
540
+ mauLimit: number | null;
541
+ applicationsLimit: number | null;
542
+ thirdPartyApplicationsLimit: number | null;
543
+ scopesPerResourceLimit: number | null;
544
+ socialConnectorsLimit: number | null;
545
+ userRolesLimit: number | null;
546
+ machineToMachineRolesLimit: number | null;
547
+ scopesPerRoleLimit: number | null;
548
+ hooksLimit: number | null;
549
+ customJwtEnabled: boolean;
550
+ subjectTokenEnabled: boolean;
551
+ bringYourUiEnabled: boolean;
552
+ collectUserProfileEnabled: boolean;
553
+ tokenLimit: number | null;
554
+ machineToMachineLimit: number | null;
555
+ resourcesLimit: number | null;
556
+ enterpriseSsoLimit: number | null;
557
+ tenantMembersLimit: number | null;
558
+ mfaEnabled: boolean;
559
+ organizationsEnabled: boolean;
560
+ organizationsLimit: number | null;
561
+ securityFeaturesEnabled: boolean;
562
+ idpInitiatedSsoEnabled: boolean;
563
+ samlApplicationsLimit: number | null;
564
+ };
565
+ basicQuota: {
566
+ auditLogsRetentionDays: number | null;
567
+ mauLimit: number | null;
568
+ applicationsLimit: number | null;
569
+ thirdPartyApplicationsLimit: number | null;
570
+ scopesPerResourceLimit: number | null;
571
+ socialConnectorsLimit: number | null;
572
+ userRolesLimit: number | null;
573
+ machineToMachineRolesLimit: number | null;
574
+ scopesPerRoleLimit: number | null;
575
+ hooksLimit: number | null;
576
+ customJwtEnabled: boolean;
577
+ subjectTokenEnabled: boolean;
578
+ bringYourUiEnabled: boolean;
579
+ collectUserProfileEnabled: boolean;
580
+ tokenLimit: number | null;
581
+ machineToMachineLimit: number | null;
582
+ resourcesLimit: number | null;
583
+ enterpriseSsoLimit: number | null;
584
+ tenantMembersLimit: number | null;
585
+ mfaEnabled: boolean;
586
+ organizationsEnabled: boolean;
587
+ organizationsLimit: number | null;
588
+ securityFeaturesEnabled: boolean;
589
+ idpInitiatedSsoEnabled: boolean;
590
+ samlApplicationsLimit: number | null;
591
+ };
592
+ }>;
593
+ } & {
594
+ "/tenants/:tenantId/subscription/periodic-usage": import("@withtyped/server").PathGuard<"/:tenantId/subscription/periodic-usage", unknown, unknown, {
595
+ mauLimit: number;
596
+ tokenLimit: number;
597
+ }>;
598
+ } & {
599
+ "/tenants/:tenantId/subscription/add-on-skus": import("@withtyped/server").PathGuard<"/:tenantId/subscription/add-on-skus", unknown, unknown, Partial<Record<"tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "hooksLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "userRolesLimit" | "machineToMachineRolesLimit" | "thirdPartyApplicationsLimit" | "samlApplicationsLimit", {
600
+ id: string;
601
+ name: string | null;
602
+ createdAt: Date;
603
+ defaultPriceId: string | null;
604
+ unitPrice: number | null;
605
+ type: LogtoSkuType;
606
+ quota: {
607
+ auditLogsRetentionDays?: number | null | undefined;
608
+ mauLimit?: number | null | undefined;
609
+ applicationsLimit?: number | null | undefined;
610
+ thirdPartyApplicationsLimit?: number | null | undefined;
611
+ scopesPerResourceLimit?: number | null | undefined;
612
+ socialConnectorsLimit?: number | null | undefined;
613
+ userRolesLimit?: number | null | undefined;
614
+ machineToMachineRolesLimit?: number | null | undefined;
615
+ scopesPerRoleLimit?: number | null | undefined;
616
+ hooksLimit?: number | null | undefined;
617
+ customJwtEnabled?: boolean | undefined;
618
+ subjectTokenEnabled?: boolean | undefined;
619
+ bringYourUiEnabled?: boolean | undefined;
620
+ collectUserProfileEnabled?: boolean | undefined;
621
+ tokenLimit?: number | null | undefined;
622
+ machineToMachineLimit?: number | null | undefined;
623
+ resourcesLimit?: number | null | undefined;
624
+ enterpriseSsoLimit?: number | null | undefined;
625
+ tenantMembersLimit?: number | null | undefined;
626
+ mfaEnabled?: boolean | undefined;
627
+ organizationsEnabled?: boolean | undefined;
628
+ organizationsLimit?: number | null | undefined;
629
+ securityFeaturesEnabled?: boolean | undefined;
630
+ idpInitiatedSsoEnabled?: boolean | undefined;
631
+ samlApplicationsLimit?: number | null | undefined;
632
+ };
633
+ isDefault: boolean;
634
+ updatedAt: Date;
635
+ productId: string | null;
636
+ }>>>;
637
+ } & {
638
+ "/tenants/:tenantId/invoices": import("@withtyped/server").PathGuard<"/:tenantId/invoices", unknown, unknown, {
639
+ invoices: {
640
+ id: string;
641
+ createdAt: Date;
642
+ status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
643
+ updatedAt: Date;
644
+ customerId: string | null;
645
+ billingReason: string | null;
646
+ periodStart: Date;
647
+ periodEnd: Date;
648
+ amountDue: number;
649
+ amountPaid: number;
650
+ basicSkuId: string | null;
651
+ subscriptionId: string | null;
652
+ hostedInvoiceUrl: string | null;
653
+ invoicePdf: string | null;
654
+ planName: string | null;
655
+ skuId?: string | null | undefined;
656
+ }[];
657
+ }>;
658
+ } & {
659
+ "/tenants/:tenantId/available-skus": import("@withtyped/server").PathGuard<"/:tenantId/available-skus", {
660
+ type?: LogtoSkuType | undefined;
661
+ }, unknown, {
662
+ id: string;
663
+ name: string | null;
664
+ createdAt: Date;
665
+ defaultPriceId: string | null;
666
+ unitPrice: number | null;
667
+ type: LogtoSkuType;
668
+ quota: {
669
+ auditLogsRetentionDays?: number | null | undefined;
670
+ mauLimit?: number | null | undefined;
671
+ applicationsLimit?: number | null | undefined;
672
+ thirdPartyApplicationsLimit?: number | null | undefined;
673
+ scopesPerResourceLimit?: number | null | undefined;
674
+ socialConnectorsLimit?: number | null | undefined;
675
+ userRolesLimit?: number | null | undefined;
676
+ machineToMachineRolesLimit?: number | null | undefined;
677
+ scopesPerRoleLimit?: number | null | undefined;
678
+ hooksLimit?: number | null | undefined;
679
+ customJwtEnabled?: boolean | undefined;
680
+ subjectTokenEnabled?: boolean | undefined;
681
+ bringYourUiEnabled?: boolean | undefined;
682
+ collectUserProfileEnabled?: boolean | undefined;
683
+ tokenLimit?: number | null | undefined;
684
+ machineToMachineLimit?: number | null | undefined;
685
+ resourcesLimit?: number | null | undefined;
686
+ enterpriseSsoLimit?: number | null | undefined;
687
+ tenantMembersLimit?: number | null | undefined;
688
+ mfaEnabled?: boolean | undefined;
689
+ organizationsEnabled?: boolean | undefined;
690
+ organizationsLimit?: number | null | undefined;
691
+ securityFeaturesEnabled?: boolean | undefined;
692
+ idpInitiatedSsoEnabled?: boolean | undefined;
693
+ samlApplicationsLimit?: number | null | undefined;
694
+ };
695
+ isDefault: boolean;
696
+ updatedAt: Date;
697
+ productId: string | null;
698
+ }[]>;
699
+ } & {
700
+ "/tenants/:tenantId/invoices/:invoiceId/hosted-invoice-url": import("@withtyped/server").PathGuard<"/:tenantId/invoices/:invoiceId/hosted-invoice-url", unknown, unknown, {
701
+ hostedInvoiceUrl: string;
702
+ }>;
703
+ };
704
+ post: {
705
+ "/tenants/:tenantId/stripe-customer-portal": import("@withtyped/server").PathGuard<"/:tenantId/stripe-customer-portal", unknown, {
706
+ callbackUrl?: string | undefined;
707
+ }, {
708
+ redirectUri: string;
709
+ }>;
710
+ };
711
+ put: {};
712
+ delete: {
713
+ "/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, unknown>;
714
+ };
715
+ copy: {};
716
+ head: {};
717
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
718
+ patch: {};
719
+ options: {};
720
+ get: {
721
+ "/services/mails/usage": import("@withtyped/server").PathGuard<"/mails/usage", {
722
+ from?: string | undefined;
723
+ }, unknown, {
724
+ count: number;
725
+ }>;
726
+ };
727
+ post: {
728
+ "/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
729
+ data: {
730
+ type: TemplateType;
731
+ payload: {
732
+ link?: string | undefined;
733
+ code?: string | undefined;
734
+ locale?: string | undefined;
735
+ uiLocales?: string | undefined;
736
+ } & {
737
+ [k: string]: unknown;
738
+ } & {
739
+ senderName?: string | undefined;
740
+ companyInformation?: string | undefined;
741
+ appLogo?: string | undefined;
742
+ };
743
+ to: string;
744
+ };
745
+ }, unknown>;
746
+ } & {
747
+ "/services/send-sms": import("@withtyped/server").PathGuard<"/send-sms", unknown, {
748
+ data: {
749
+ type: TemplateType;
750
+ to: string;
751
+ payload: {
752
+ code?: string | undefined;
753
+ link?: string | undefined;
754
+ locale?: string | undefined;
755
+ uiLocales?: string | undefined;
756
+ } & {
757
+ [k: string]: unknown;
758
+ };
759
+ };
760
+ }, unknown>;
761
+ } & {
762
+ "/services/custom-jwt": import("@withtyped/server").PathGuard<"/custom-jwt", {
763
+ isTest?: string | undefined;
764
+ }, {
765
+ token: Record<string, Json>;
766
+ context: Record<string, Json>;
767
+ tokenType: LogtoJwtTokenKeyType.AccessToken;
768
+ script: string;
769
+ environmentVariables?: Record<string, string> | undefined;
770
+ } | {
771
+ token: Record<string, Json>;
772
+ tokenType: LogtoJwtTokenKeyType.ClientCredentials;
773
+ script: string;
774
+ environmentVariables?: Record<string, string> | undefined;
775
+ }, Record<string, unknown>>;
776
+ };
777
+ put: {
778
+ "/services/custom-jwt/worker": import("@withtyped/server").PathGuard<"/custom-jwt/worker", unknown, {
779
+ "jwt.accessToken"?: {
780
+ production?: string | undefined;
781
+ test?: string | undefined;
782
+ } | undefined;
783
+ "jwt.clientCredentials"?: {
784
+ production?: string | undefined;
785
+ test?: string | undefined;
786
+ } | undefined;
787
+ }, unknown>;
788
+ };
789
+ delete: {
790
+ "/services/custom-jwt/worker": import("@withtyped/server").PathGuard<"/custom-jwt/worker", unknown, unknown, unknown>;
791
+ };
792
+ copy: {};
793
+ head: {};
794
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
795
+ patch: {};
796
+ options: {};
797
+ get: {
798
+ "/skus": import("@withtyped/server").PathGuard<"/", {
799
+ type?: LogtoSkuType | undefined;
800
+ }, unknown, {
801
+ id: string;
802
+ name: string | null;
803
+ createdAt: Date;
804
+ defaultPriceId: string | null;
805
+ unitPrice: number | null;
806
+ type: LogtoSkuType;
807
+ quota: {
808
+ auditLogsRetentionDays?: number | null | undefined;
809
+ mauLimit?: number | null | undefined;
810
+ applicationsLimit?: number | null | undefined;
811
+ thirdPartyApplicationsLimit?: number | null | undefined;
812
+ scopesPerResourceLimit?: number | null | undefined;
813
+ socialConnectorsLimit?: number | null | undefined;
814
+ userRolesLimit?: number | null | undefined;
815
+ machineToMachineRolesLimit?: number | null | undefined;
816
+ scopesPerRoleLimit?: number | null | undefined;
817
+ hooksLimit?: number | null | undefined;
818
+ customJwtEnabled?: boolean | undefined;
819
+ subjectTokenEnabled?: boolean | undefined;
820
+ bringYourUiEnabled?: boolean | undefined;
821
+ collectUserProfileEnabled?: boolean | undefined;
822
+ tokenLimit?: number | null | undefined;
823
+ machineToMachineLimit?: number | null | undefined;
824
+ resourcesLimit?: number | null | undefined;
825
+ enterpriseSsoLimit?: number | null | undefined;
826
+ tenantMembersLimit?: number | null | undefined;
827
+ mfaEnabled?: boolean | undefined;
828
+ organizationsEnabled?: boolean | undefined;
829
+ organizationsLimit?: number | null | undefined;
830
+ securityFeaturesEnabled?: boolean | undefined;
831
+ idpInitiatedSsoEnabled?: boolean | undefined;
832
+ samlApplicationsLimit?: number | null | undefined;
833
+ };
834
+ isDefault: boolean;
835
+ updatedAt: Date;
836
+ productId: string | null;
837
+ }[]>;
838
+ };
839
+ post: {
840
+ "/skus": import("@withtyped/server").PathGuard<"/", unknown, {
841
+ type: LogtoSkuType.AddOn;
842
+ quota: {
843
+ tokenLimit?: number | null | undefined;
844
+ machineToMachineLimit?: number | null | undefined;
845
+ resourcesLimit?: number | null | undefined;
846
+ enterpriseSsoLimit?: number | null | undefined;
847
+ hooksLimit?: number | null | undefined;
848
+ tenantMembersLimit?: number | null | undefined;
849
+ mfaEnabled?: boolean | undefined;
850
+ organizationsEnabled?: boolean | undefined;
851
+ organizationsLimit?: number | null | undefined;
852
+ securityFeaturesEnabled?: boolean | undefined;
853
+ userRolesLimit?: number | null | undefined;
854
+ machineToMachineRolesLimit?: number | null | undefined;
855
+ thirdPartyApplicationsLimit?: number | null | undefined;
856
+ samlApplicationsLimit?: number | null | undefined;
857
+ auditLogsRetentionDays?: number | null | undefined;
858
+ mauLimit?: number | null | undefined;
859
+ applicationsLimit?: number | null | undefined;
860
+ scopesPerResourceLimit?: number | null | undefined;
861
+ socialConnectorsLimit?: number | null | undefined;
862
+ scopesPerRoleLimit?: number | null | undefined;
863
+ customJwtEnabled?: boolean | undefined;
864
+ subjectTokenEnabled?: boolean | undefined;
865
+ bringYourUiEnabled?: boolean | undefined;
866
+ collectUserProfileEnabled?: boolean | undefined;
867
+ idpInitiatedSsoEnabled?: boolean | undefined;
868
+ };
869
+ isDefault?: boolean | undefined;
870
+ } | {
871
+ type: LogtoSkuType.Basic;
872
+ quota: {
873
+ auditLogsRetentionDays: number | null;
874
+ mauLimit: number | null;
875
+ applicationsLimit: number | null;
876
+ thirdPartyApplicationsLimit: number | null;
877
+ scopesPerResourceLimit: number | null;
878
+ socialConnectorsLimit: number | null;
879
+ userRolesLimit: number | null;
880
+ machineToMachineRolesLimit: number | null;
881
+ scopesPerRoleLimit: number | null;
882
+ hooksLimit: number | null;
883
+ customJwtEnabled: boolean;
884
+ subjectTokenEnabled: boolean;
885
+ bringYourUiEnabled: boolean;
886
+ collectUserProfileEnabled: boolean;
887
+ tokenLimit: number | null;
888
+ machineToMachineLimit: number | null;
889
+ resourcesLimit: number | null;
890
+ enterpriseSsoLimit: number | null;
891
+ tenantMembersLimit: number | null;
892
+ mfaEnabled: boolean;
893
+ organizationsEnabled: boolean;
894
+ organizationsLimit: number | null;
895
+ securityFeaturesEnabled: boolean;
896
+ idpInitiatedSsoEnabled: boolean;
897
+ samlApplicationsLimit: number | null;
898
+ };
899
+ addOnRelations: {
900
+ tokenLimit?: string | undefined;
901
+ machineToMachineLimit?: string | undefined;
902
+ resourcesLimit?: string | undefined;
903
+ enterpriseSsoLimit?: string | undefined;
904
+ tenantMembersLimit?: string | undefined;
905
+ mfaEnabled?: string | undefined;
906
+ organizationsLimit?: string | undefined;
907
+ securityFeaturesEnabled?: string | undefined;
908
+ };
909
+ isDefault?: boolean | undefined;
910
+ }, {
911
+ id: string;
912
+ createdAt: Date;
913
+ type: LogtoSkuType;
914
+ isDefault: boolean;
915
+ updatedAt: Date;
916
+ quota: {
917
+ auditLogsRetentionDays?: number | null | undefined;
918
+ mauLimit?: number | null | undefined;
919
+ applicationsLimit?: number | null | undefined;
920
+ thirdPartyApplicationsLimit?: number | null | undefined;
921
+ scopesPerResourceLimit?: number | null | undefined;
922
+ socialConnectorsLimit?: number | null | undefined;
923
+ userRolesLimit?: number | null | undefined;
924
+ machineToMachineRolesLimit?: number | null | undefined;
925
+ scopesPerRoleLimit?: number | null | undefined;
926
+ hooksLimit?: number | null | undefined;
927
+ customJwtEnabled?: boolean | undefined;
928
+ subjectTokenEnabled?: boolean | undefined;
929
+ bringYourUiEnabled?: boolean | undefined;
930
+ collectUserProfileEnabled?: boolean | undefined;
931
+ tokenLimit?: number | null | undefined;
932
+ machineToMachineLimit?: number | null | undefined;
933
+ resourcesLimit?: number | null | undefined;
934
+ enterpriseSsoLimit?: number | null | undefined;
935
+ tenantMembersLimit?: number | null | undefined;
936
+ mfaEnabled?: boolean | undefined;
937
+ organizationsEnabled?: boolean | undefined;
938
+ organizationsLimit?: number | null | undefined;
939
+ securityFeaturesEnabled?: boolean | undefined;
940
+ idpInitiatedSsoEnabled?: boolean | undefined;
941
+ samlApplicationsLimit?: number | null | undefined;
942
+ };
943
+ }>;
944
+ } & {
945
+ "/skus/:skuId/products": import("@withtyped/server").PathGuard<"/:skuId/products", {
946
+ isOneTime?: string | undefined;
947
+ }, {
948
+ name: string;
949
+ unitPrice: number;
950
+ }, {
951
+ productId: string;
952
+ }>;
953
+ } & {
954
+ "/skus/basic-sku-usage-add-on-relations": import("@withtyped/server").PathGuard<"/basic-sku-usage-add-on-relations", unknown, {
955
+ basicSkuId: string;
956
+ usageKey: "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "hooksLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "userRolesLimit" | "machineToMachineRolesLimit" | "thirdPartyApplicationsLimit" | "samlApplicationsLimit";
957
+ addOnSkuId: string;
958
+ }, {
959
+ basicSkuId: string;
960
+ usageKey: "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "hooksLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "userRolesLimit" | "machineToMachineRolesLimit" | "thirdPartyApplicationsLimit" | "samlApplicationsLimit";
961
+ addOnSkuId: string;
962
+ }>;
963
+ };
964
+ put: {};
965
+ delete: {
966
+ "/skus/:skuId": import("@withtyped/server").PathGuard<"/:skuId", unknown, unknown, unknown>;
967
+ } & {
968
+ "/skus/basic-sku-usage-add-on-relations/:basicSkuId/:usageKey": import("@withtyped/server").PathGuard<"/basic-sku-usage-add-on-relations/:basicSkuId/:usageKey", unknown, unknown, unknown>;
969
+ };
970
+ copy: {};
971
+ head: {};
972
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
973
+ patch: {};
974
+ options: {};
975
+ get: {
976
+ "/checkout-session/:id": import("@withtyped/server").PathGuard<"/:id", unknown, unknown, {
977
+ id: string;
978
+ createdAt: Date;
979
+ userId: string;
980
+ status: "open" | "complete" | "expired";
981
+ tenantId: string | null;
982
+ updatedAt: Date;
983
+ skuId: string | null;
984
+ planId: string | null;
985
+ }>;
986
+ };
987
+ post: {
988
+ "/checkout-session": import("@withtyped/server").PathGuard<"/", unknown, {
989
+ successCallbackUrl: string;
990
+ tenantId?: string | undefined;
991
+ skuId?: string | undefined;
992
+ tenantName?: string | undefined;
993
+ tenantTag?: TenantTag | undefined;
994
+ tenantRegionName?: string | undefined;
995
+ cancelCallbackUrl?: string | undefined;
996
+ }, {
997
+ sessionId: string;
998
+ redirectUri?: string | null | undefined;
999
+ }>;
1000
+ };
1001
+ put: {};
1002
+ delete: {};
1003
+ copy: {};
1004
+ head: {};
1005
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
1006
+ patch: {};
1007
+ options: {};
1008
+ get: {
1009
+ "/affiliates": import("@withtyped/server").PathGuard<"/", unknown, unknown, AffiliateData[]>;
1010
+ };
1011
+ post: {
1012
+ "/affiliates": import("@withtyped/server").PathGuard<"/", unknown, {
1013
+ name: string;
1014
+ }, {
1015
+ id: string;
1016
+ createdAt: Date;
1017
+ name: string;
1018
+ }>;
1019
+ } & {
1020
+ "/affiliates/:id/properties": import("@withtyped/server").PathGuard<"/:id/properties", unknown, {
1021
+ type: "hostname" | "query";
1022
+ value: string;
1023
+ }, {
1024
+ createdAt: Date;
1025
+ affiliateId: string;
1026
+ type: "hostname" | "query";
1027
+ value: string;
1028
+ }>;
1029
+ };
1030
+ put: {};
1031
+ delete: {
1032
+ "/affiliates/:id/properties": import("@withtyped/server").PathGuard<"/:id/properties", unknown, {
1033
+ type: "hostname" | "query";
1034
+ value: string;
1035
+ }, unknown>;
1036
+ };
1037
+ copy: {};
1038
+ head: {};
1039
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
1040
+ patch: {};
1041
+ options: {};
1042
+ get: {};
1043
+ post: {
1044
+ "/affiliate-logs": import("@withtyped/server").PathGuard<"/", unknown, {
1045
+ createdAt: string;
1046
+ userId: string;
1047
+ hostname?: string | undefined;
1048
+ query?: string | undefined;
1049
+ }, {
1050
+ id: string;
1051
+ createdAt: Date;
1052
+ affiliateId: string | null;
1053
+ userId: string;
1054
+ createdVia: {
1055
+ createdAt: string;
1056
+ hostname?: string | undefined;
1057
+ query?: string | undefined;
1058
+ };
1059
+ }>;
1060
+ };
1061
+ put: {};
1062
+ delete: {};
1063
+ copy: {};
1064
+ head: {};
1065
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
1066
+ patch: {
1067
+ "/invitations/:invitationId/status": import("@withtyped/server").PathGuard<"/:invitationId/status", unknown, {
1068
+ status: OrganizationInvitationStatus.Accepted;
1069
+ }, unknown>;
1070
+ };
1071
+ options: {};
1072
+ get: {
1073
+ "/invitations": import("@withtyped/server").PathGuard<"/", unknown, unknown, ({
1074
+ id: string;
1075
+ createdAt: number;
1076
+ status: OrganizationInvitationStatus;
1077
+ tenantId: string;
1078
+ updatedAt: number;
1079
+ inviterId: string | null;
1080
+ invitee: string;
1081
+ acceptedUserId: string | null;
1082
+ organizationId: string;
1083
+ expiresAt: number;
1084
+ organizationRoles: OrganizationRoleEntity[];
1085
+ } & {
1086
+ tenantName: string;
1087
+ tenantTag: TenantTag;
1088
+ })[]>;
1089
+ } & {
1090
+ "/invitations/:invitationId": import("@withtyped/server").PathGuard<"/:invitationId", unknown, unknown, {
1091
+ id: string;
1092
+ createdAt: number;
1093
+ status: OrganizationInvitationStatus;
1094
+ tenantId: string;
1095
+ updatedAt: number;
1096
+ inviterId: string | null;
1097
+ invitee: string;
1098
+ acceptedUserId: string | null;
1099
+ organizationId: string;
1100
+ expiresAt: number;
1101
+ organizationRoles: OrganizationRoleEntity[];
1102
+ }>;
1103
+ };
1104
+ post: {};
1105
+ put: {};
1106
+ delete: {};
1107
+ copy: {};
1108
+ head: {};
1109
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
1110
+ patch: {};
1111
+ options: {};
1112
+ get: {
1113
+ "/me/regions": import("@withtyped/server").PathGuard<"/regions", unknown, unknown, {
1114
+ regions: {
1115
+ id: string;
1116
+ name: string;
1117
+ country: string;
1118
+ isPrivate: boolean;
1119
+ tags: TenantTag[];
1120
+ }[];
1121
+ }>;
1122
+ };
1123
+ post: {};
1124
+ put: {};
1125
+ delete: {
1126
+ "/me": import("@withtyped/server").PathGuard<"/", unknown, unknown, unknown>;
1127
+ };
1128
+ copy: {};
1129
+ head: {};
1130
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
1131
+ patch: {
1132
+ "/regions/:regionName/users/:userId": import("@withtyped/server").PathGuard<"/:regionName/users/:userId", unknown, {
1133
+ role: DatabaseRegionAccessRole;
1134
+ }, {
1135
+ role: DatabaseRegionAccessRole;
1136
+ userId: string;
1137
+ }>;
1138
+ };
1139
+ options: {};
1140
+ get: {
1141
+ "/regions/:regionName/users": import("@withtyped/server").PathGuard<"/:regionName/users", unknown, unknown, {
1142
+ users: {
1143
+ role: DatabaseRegionAccessRole;
1144
+ userId: string;
1145
+ }[];
1146
+ }>;
1147
+ };
1148
+ post: {
1149
+ "/regions/:regionName/users": import("@withtyped/server").PathGuard<"/:regionName/users", unknown, {
1150
+ role: DatabaseRegionAccessRole;
1151
+ userId: string;
1152
+ }, {
1153
+ role: DatabaseRegionAccessRole;
1154
+ userId: string;
1155
+ }>;
1156
+ };
1157
+ put: {};
1158
+ delete: {
1159
+ "/regions/:regionName/users/:userId": import("@withtyped/server").PathGuard<"/:regionName/users/:userId", unknown, unknown, unknown>;
1160
+ };
1161
+ copy: {};
1162
+ head: {};
1163
+ }, "/api">>, "/api">;
1164
+ export declare const tenantAuthRouter: import("@withtyped/server").Router<RequestContext, import("@withtyped/server").WithBodyContext<import("@withtyped/server").BaseContext & {
1165
+ request: {
1166
+ id?: string | undefined;
1167
+ method?: import("@withtyped/server").RequestMethod | undefined;
1168
+ headers: import("http").IncomingHttpHeaders;
1169
+ url: URL;
1170
+ body?: unknown;
1171
+ };
1172
+ }>, import("@withtyped/server").MergeRoutes<import("@withtyped/server").BaseRoutes, import("@withtyped/server").RoutesWithPrefix<{
1173
+ patch: {
1174
+ "/:tenantId/invitations/:invitationId/status": import("@withtyped/server").PathGuard<"/:tenantId/invitations/:invitationId/status", unknown, {
1175
+ status: OrganizationInvitationStatus.Revoked;
1176
+ }, {
1177
+ id: string;
1178
+ createdAt: number;
1179
+ status: OrganizationInvitationStatus;
1180
+ tenantId: string;
1181
+ updatedAt: number;
1182
+ inviterId: string | null;
1183
+ invitee: string;
1184
+ acceptedUserId: string | null;
1185
+ organizationId: string;
1186
+ expiresAt: number;
1187
+ organizationRoles: OrganizationRoleEntity[];
1188
+ }>;
1189
+ };
1190
+ options: {};
1191
+ get: {
1192
+ "/:tenantId/members": import("@withtyped/server").PathGuard<"/:tenantId/members", unknown, unknown, {
1193
+ id: string;
1194
+ name: string | null;
1195
+ username: string | null;
1196
+ primaryEmail: string | null;
1197
+ primaryPhone: string | null;
1198
+ avatar: string | null;
1199
+ organizationRoles: OrganizationRoleEntity[];
1200
+ }[]>;
1201
+ } & {
1202
+ "/:tenantId/members/:userId/scopes": import("@withtyped/server").PathGuard<"/:tenantId/members/:userId/scopes", unknown, unknown, OrganizationScope[]>;
1203
+ } & {
1204
+ "/:tenantId/invitations": import("@withtyped/server").PathGuard<"/:tenantId/invitations", unknown, unknown, ({
1205
+ id: string;
1206
+ createdAt: number;
1207
+ status: OrganizationInvitationStatus;
1208
+ tenantId: string;
1209
+ updatedAt: number;
1210
+ inviterId: string | null;
1211
+ invitee: string;
1212
+ acceptedUserId: string | null;
1213
+ organizationId: string;
1214
+ expiresAt: number;
1215
+ organizationRoles: OrganizationRoleEntity[];
1216
+ } & {
1217
+ inviterName?: string | undefined;
1218
+ })[]>;
1219
+ };
1220
+ post: {
1221
+ "/:tenantId/invitations": import("@withtyped/server").PathGuard<"/:tenantId/invitations", unknown, {
1222
+ invitee: string | string[];
1223
+ roleName: TenantRole;
1224
+ expiresAt?: number | undefined;
1225
+ }, {
1226
+ id: string;
1227
+ createdAt: number;
1228
+ status: OrganizationInvitationStatus;
1229
+ tenantId: string;
1230
+ updatedAt: number;
1231
+ inviterId: string | null;
1232
+ invitee: string;
1233
+ acceptedUserId: string | null;
1234
+ organizationId: string;
1235
+ expiresAt: number;
1236
+ organizationRoles: OrganizationRoleEntity[];
1237
+ } | {
1238
+ id: string;
1239
+ createdAt: number;
1240
+ status: OrganizationInvitationStatus;
1241
+ tenantId: string;
1242
+ updatedAt: number;
1243
+ inviterId: string | null;
1244
+ invitee: string;
1245
+ acceptedUserId: string | null;
1246
+ organizationId: string;
1247
+ expiresAt: number;
1248
+ organizationRoles: OrganizationRoleEntity[];
1249
+ }[]>;
1250
+ } & {
1251
+ "/:tenantId/invitations/:invitationId/message": import("@withtyped/server").PathGuard<"/:tenantId/invitations/:invitationId/message", unknown, unknown, unknown>;
1252
+ };
1253
+ put: {
1254
+ "/:tenantId/members/:userId/roles": import("@withtyped/server").PathGuard<"/:tenantId/members/:userId/roles", unknown, {
1255
+ roleName: TenantRole;
1256
+ }, unknown>;
1257
+ };
1258
+ delete: {
1259
+ "/:tenantId/members/:userId": import("@withtyped/server").PathGuard<"/:tenantId/members/:userId", unknown, unknown, unknown>;
1260
+ } & {
1261
+ "/:tenantId/invitations/:invitationId": import("@withtyped/server").PathGuard<"/:tenantId/invitations/:invitationId", unknown, unknown, unknown>;
1262
+ };
1263
+ copy: {};
1264
+ head: {};
1265
+ }, "/api/tenants">>, "/api/tenants">;
1266
+
1267
+ export {
1268
+ router as default,
1269
+ };
1270
+
1271
+ export {};