@logto/cloud 0.2.5-20fd0a2 → 0.2.5-2553f41

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