@logto/cloud 0.2.5-3046fa6 → 0.2.5-31c9868

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