@logto/cloud 0.2.5-c98a257 → 0.2.5-cb80c9b

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