@logto/cloud 0.2.5-1661979 → 0.2.5-1738dbe

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.
Files changed (2) hide show
  1. package/lib/routes/index.d.ts +659 -320
  2. package/package.json +7 -6
@@ -3,21 +3,27 @@
3
3
  import { Json, JsonObject, RequestContext } from '@withtyped/server';
4
4
  import { InferModelType } from '@withtyped/server/model';
5
5
 
6
- export type WithAuthContext<Context = RequestContext> = Context & {
7
- auth: {
8
- /** The ID of the authenticated subject (`sub`). */
9
- id: string;
10
- /** The scopes that the subject has (`scope`). */
11
- scopes: string[];
12
- };
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"
6
+ declare const availableReportableUsageKeys: readonly [
7
+ "tokenLimit",
8
+ "machineToMachineLimit",
9
+ "resourcesLimit",
10
+ "enterpriseSsoLimit",
11
+ "hooksLimit",
12
+ "tenantMembersLimit",
13
+ "mfaEnabled",
14
+ "organizationsEnabled",
15
+ "organizationsLimit",
16
+ "securityFeaturesEnabled",
17
+ "userRolesLimit",
18
+ "machineToMachineRolesLimit",
19
+ "thirdPartyApplicationsLimit",
20
+ "samlApplicationsLimit"
21
+ ];
22
+ export type ReportableUsageKey = (typeof availableReportableUsageKeys)[number];
23
+ export type RealtimeReportableUsageKey = Exclude<ReportableUsageKey, "tokenLimit">;
24
+ declare enum LogtoSkuType {
25
+ Basic = "Basic",
26
+ AddOn = "AddOn"
21
27
  }
22
28
  declare enum TemplateType {
23
29
  /** The template for sending verification code when user is signing in. */
@@ -29,7 +35,15 @@ declare enum TemplateType {
29
35
  /** The template for sending organization invitation. */
30
36
  OrganizationInvitation = "OrganizationInvitation",
31
37
  /** The template for generic usage. */
32
- Generic = "Generic"
38
+ Generic = "Generic",
39
+ /** The template for validating user permission for sensitive operations. */
40
+ UserPermissionValidation = "UserPermissionValidation",
41
+ /** The template for binding a new identifier to an existing account. */
42
+ BindNewIdentifier = "BindNewIdentifier",
43
+ /** The template for sending MFA verification code. */
44
+ MfaVerification = "MfaVerification",
45
+ /** The template for binding MFA verification. */
46
+ BindMfa = "BindMfa"
33
47
  }
34
48
  declare enum OrganizationInvitationStatus {
35
49
  Pending = "Pending",
@@ -69,23 +83,6 @@ declare enum TenantRole {
69
83
  /** Collaborator of the tenant, who has permissions to operate the tenant data, but not the tenant settings. */
70
84
  Collaborator = "collaborator"
71
85
  }
72
- declare const availableReportableUsageKeys: readonly [
73
- "tokenLimit",
74
- "machineToMachineLimit",
75
- "resourcesLimit",
76
- "enterpriseSsoLimit",
77
- "hooksLimit",
78
- "tenantMembersLimit",
79
- "mfaEnabled",
80
- "organizationsEnabled",
81
- "organizationsLimit"
82
- ];
83
- export type ReportableUsageKey = (typeof availableReportableUsageKeys)[number];
84
- export type RealtimeReportableUsageKey = Exclude<ReportableUsageKey, "tokenLimit">;
85
- declare enum LogtoSkuType {
86
- Basic = "Basic",
87
- AddOn = "AddOn"
88
- }
89
86
  declare const AffiliateProperties: import("@withtyped/server/lib/model/index.js").default<"affiliate_properties", {
90
87
  createdAt: Date;
91
88
  affiliateId: string;
@@ -99,14 +96,48 @@ declare const Affiliates: import("@withtyped/server/lib/model/index.js").default
99
96
  id: string;
100
97
  }, "id" | "createdAt", "id" | "createdAt">;
101
98
  export type Affiliate = InferModelType<typeof Affiliates>;
102
- declare enum RegionName {
103
- EU = "EU",
104
- US = "US",
105
- AU = "AU"
99
+ declare const publicRegionNames: readonly [
100
+ "EU",
101
+ "US",
102
+ "AU",
103
+ "JP"
104
+ ];
105
+ /** The type of region names for the public cloud. */
106
+ export type PublicRegionName = (typeof publicRegionNames)[number];
107
+ declare enum DatabaseRegionAccessRole {
108
+ /** Instance administrator - can manage collaborators and create tenants */
109
+ Admin = "admin",
110
+ /** Collaborator user - can only create tenants in the instance */
111
+ Collaborator = "collaborator"
106
112
  }
113
+ declare const Regions: import("@withtyped/server/lib/model/index.js").default<"regions", {
114
+ createdAt: Date;
115
+ name: string;
116
+ isPrivate: boolean;
117
+ displayName: string;
118
+ country: string;
119
+ dbUrl: string;
120
+ redisUrl: string | null;
121
+ tags: TenantTag[];
122
+ }, "createdAt" | "tags" | "isPrivate", "createdAt">;
123
+ export type Region = InferModelType<typeof Regions>;
107
124
  export type AffiliateData = Affiliate & {
108
125
  properties: Array<Pick<AffiliateProperty, "type" | "value">>;
109
126
  };
127
+ export type RegionResponse = Pick<Region, "name" | "displayName" | "country" | "isPrivate" | "tags"> & {
128
+ /**
129
+ * @deprecated Temporary field for backward compatibility, will be removed in the future.
130
+ */
131
+ id: string;
132
+ };
133
+ export type WithAuthContext<Context = RequestContext> = Context & {
134
+ auth: {
135
+ /** The ID of the authenticated subject (`sub`). */
136
+ id: string;
137
+ /** The scopes that the subject has (`scope`). */
138
+ scopes: string[];
139
+ };
140
+ };
110
141
  declare const router: import("@withtyped/server").Router<RequestContext, WithAuthContext<Omit<import("@withtyped/server").BaseContext & {
111
142
  request: {
112
143
  id?: string | undefined;
@@ -126,18 +157,18 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
126
157
  body?: Json | undefined;
127
158
  bodyRaw?: Buffer | undefined;
128
159
  };
129
- }>, 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<{
160
+ }>, 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<{
130
161
  patch: {
131
162
  "/tenants/:tenantId": import("@withtyped/server").PathGuard<"/:tenantId", unknown, {
132
163
  name?: string | undefined;
133
164
  }, {
134
165
  id: string;
135
166
  name: string;
167
+ createdAt: Date;
136
168
  quota: {
137
169
  mauLimit: number | null;
138
170
  tokenLimit: number | null;
139
171
  };
140
- createdAt: Date;
141
172
  usage: {
142
173
  activeUsers: number;
143
174
  tokenUsage: number;
@@ -158,14 +189,13 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
158
189
  total: number;
159
190
  totalExcludingTax: number | null;
160
191
  } | null | undefined;
161
- isAddOnAvailable?: boolean | undefined;
162
192
  };
163
- regionName: RegionName;
193
+ regionName: string;
164
194
  tag: TenantTag;
165
195
  openInvoices: {
166
- status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
167
196
  id: string;
168
197
  createdAt: Date;
198
+ status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
169
199
  updatedAt: Date;
170
200
  customerId: string | null;
171
201
  billingReason: string | null;
@@ -173,10 +203,16 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
173
203
  periodEnd: Date;
174
204
  amountDue: number;
175
205
  amountPaid: number;
206
+ basicSkuId: string | null;
176
207
  subscriptionId: string | null;
177
208
  hostedInvoiceUrl: string | null;
178
209
  invoicePdf: string | null;
210
+ collectionMethod: "charge_automatically" | "send_invoice" | null;
211
+ dueDate: Date | null;
179
212
  }[];
213
+ featureFlags?: {
214
+ isMultipleCustomDomainsEnabled?: boolean | undefined;
215
+ } | undefined;
180
216
  }>;
181
217
  };
182
218
  options: {};
@@ -184,11 +220,11 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
184
220
  "/tenants": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
185
221
  id: string;
186
222
  name: string;
223
+ createdAt: Date;
187
224
  quota: {
188
225
  mauLimit: number | null;
189
226
  tokenLimit: number | null;
190
227
  };
191
- createdAt: Date;
192
228
  usage: {
193
229
  activeUsers: number;
194
230
  tokenUsage: number;
@@ -209,14 +245,13 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
209
245
  total: number;
210
246
  totalExcludingTax: number | null;
211
247
  } | null | undefined;
212
- isAddOnAvailable?: boolean | undefined;
213
248
  };
214
- regionName: RegionName;
249
+ regionName: string;
215
250
  tag: TenantTag;
216
251
  openInvoices: {
217
- status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
218
252
  id: string;
219
253
  createdAt: Date;
254
+ status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
220
255
  updatedAt: Date;
221
256
  customerId: string | null;
222
257
  billingReason: string | null;
@@ -224,25 +259,32 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
224
259
  periodEnd: Date;
225
260
  amountDue: number;
226
261
  amountPaid: number;
262
+ basicSkuId: string | null;
227
263
  subscriptionId: string | null;
228
264
  hostedInvoiceUrl: string | null;
229
265
  invoicePdf: string | null;
266
+ collectionMethod: "charge_automatically" | "send_invoice" | null;
267
+ dueDate: Date | null;
230
268
  }[];
269
+ featureFlags?: {
270
+ isMultipleCustomDomainsEnabled?: boolean | undefined;
271
+ } | undefined;
231
272
  }[]>;
232
273
  };
233
274
  post: {
234
275
  "/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
276
+ id?: string | undefined;
235
277
  name?: string | undefined;
278
+ regionName?: string | undefined;
236
279
  tag?: TenantTag | undefined;
237
- regionName?: RegionName | undefined;
238
280
  }, {
239
281
  id: string;
240
282
  name: string;
283
+ createdAt: Date;
241
284
  quota: {
242
285
  mauLimit: number | null;
243
286
  tokenLimit: number | null;
244
287
  };
245
- createdAt: Date;
246
288
  usage: {
247
289
  activeUsers: number;
248
290
  tokenUsage: number;
@@ -263,14 +305,13 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
263
305
  total: number;
264
306
  totalExcludingTax: number | null;
265
307
  } | null | undefined;
266
- isAddOnAvailable?: boolean | undefined;
267
308
  };
268
- regionName: RegionName;
309
+ regionName: string;
269
310
  tag: TenantTag;
270
311
  openInvoices: {
271
- status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
272
312
  id: string;
273
313
  createdAt: Date;
314
+ status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
274
315
  updatedAt: Date;
275
316
  customerId: string | null;
276
317
  billingReason: string | null;
@@ -278,11 +319,27 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
278
319
  periodEnd: Date;
279
320
  amountDue: number;
280
321
  amountPaid: number;
322
+ basicSkuId: string | null;
281
323
  subscriptionId: string | null;
282
324
  hostedInvoiceUrl: string | null;
283
325
  invoicePdf: string | null;
326
+ collectionMethod: "charge_automatically" | "send_invoice" | null;
327
+ dueDate: Date | null;
284
328
  }[];
329
+ featureFlags?: {
330
+ isMultipleCustomDomainsEnabled?: boolean | undefined;
331
+ } | undefined;
285
332
  }>;
333
+ } & {
334
+ "/tenants/subscriptions/plan": import("@withtyped/server").PathGuard<"/subscriptions/plan", unknown, {
335
+ planId: string;
336
+ tenantIds: string[];
337
+ }, {
338
+ tenantId: string;
339
+ success: boolean;
340
+ error?: string | undefined;
341
+ updatedLineItems?: unknown[] | undefined;
342
+ }[]>;
286
343
  };
287
344
  put: {};
288
345
  delete: {
@@ -296,10 +353,57 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
296
353
  get: {
297
354
  "/tenants/my/subscription": import("@withtyped/server").PathGuard<"/my/subscription", unknown, unknown, {
298
355
  status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
356
+ quota: {
357
+ auditLogsRetentionDays: number | null;
358
+ mauLimit: number | null;
359
+ applicationsLimit: number | null;
360
+ thirdPartyApplicationsLimit: number | null;
361
+ scopesPerResourceLimit: number | null;
362
+ socialConnectorsLimit: number | null;
363
+ userRolesLimit: number | null;
364
+ machineToMachineRolesLimit: number | null;
365
+ scopesPerRoleLimit: number | null;
366
+ hooksLimit: number | null;
367
+ customJwtEnabled: boolean;
368
+ subjectTokenEnabled: boolean;
369
+ bringYourUiEnabled: boolean;
370
+ collectUserProfileEnabled: boolean;
371
+ tokenLimit: number | null;
372
+ machineToMachineLimit: number | null;
373
+ resourcesLimit: number | null;
374
+ enterpriseSsoLimit: number | null;
375
+ tenantMembersLimit: number | null;
376
+ mfaEnabled: boolean;
377
+ organizationsEnabled: boolean;
378
+ organizationsLimit: number | null;
379
+ securityFeaturesEnabled: boolean;
380
+ idpInitiatedSsoEnabled: boolean;
381
+ samlApplicationsLimit: number | null;
382
+ };
299
383
  planId: string;
300
384
  currentPeriodStart: Date;
301
385
  currentPeriodEnd: Date;
302
386
  isEnterprisePlan: boolean;
387
+ systemLimit: {
388
+ applicationsLimit?: number | null | undefined;
389
+ thirdPartyApplicationsLimit?: number | null | undefined;
390
+ scopesPerResourceLimit?: number | null | undefined;
391
+ socialConnectorsLimit?: number | null | undefined;
392
+ userRolesLimit?: number | null | undefined;
393
+ machineToMachineRolesLimit?: number | null | undefined;
394
+ scopesPerRoleLimit?: number | null | undefined;
395
+ hooksLimit?: number | null | undefined;
396
+ machineToMachineLimit?: number | null | undefined;
397
+ resourcesLimit?: number | null | undefined;
398
+ enterpriseSsoLimit?: number | null | undefined;
399
+ tenantMembersLimit?: number | null | undefined;
400
+ organizationsLimit?: number | null | undefined;
401
+ samlApplicationsLimit?: number | null | undefined;
402
+ usersPerOrganizationLimit?: number | null | undefined;
403
+ organizationUserRolesLimit?: number | null | undefined;
404
+ organizationMachineToMachineRolesLimit?: number | null | undefined;
405
+ organizationScopesLimit?: number | null | undefined;
406
+ };
303
407
  id?: string | undefined;
304
408
  upcomingInvoice?: {
305
409
  subtotal: number;
@@ -307,111 +411,106 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
307
411
  total: number;
308
412
  totalExcludingTax: number | null;
309
413
  } | null | undefined;
310
- isAddOnAvailable?: boolean | undefined;
311
- }>;
312
- } & {
313
- "/tenants/my/subscription/quota": import("@withtyped/server").PathGuard<"/my/subscription/quota", unknown, unknown, {
314
- mauLimit: number | null;
315
- tokenLimit: number | null;
316
- applicationsLimit: number | null;
317
- machineToMachineLimit: number | null;
318
- resourcesLimit: number | null;
319
- scopesPerResourceLimit: number | null;
320
- socialConnectorsLimit: number | null;
321
- machineToMachineRolesLimit: number | null;
322
- scopesPerRoleLimit: number | null;
323
- hooksLimit: number | null;
324
- auditLogsRetentionDays: number | null;
325
- mfaEnabled: boolean;
326
- organizationsEnabled: boolean;
327
- thirdPartyApplicationsLimit: number | null;
328
- tenantMembersLimit: number | null;
329
- customJwtEnabled: boolean;
330
- subjectTokenEnabled: boolean;
331
- bringYourUiEnabled: boolean;
332
- userRolesLimit: number | null;
333
- enterpriseSsoLimit: number | null;
334
- organizationsLimit: number | null;
335
- }>;
336
- } & {
337
- "/tenants/my/subscription/usage": import("@withtyped/server").PathGuard<"/my/subscription/usage", unknown, unknown, {
338
- applicationsLimit: number;
339
- machineToMachineLimit: number;
340
- resourcesLimit: number;
341
- scopesPerResourceLimit: number;
342
- socialConnectorsLimit: number;
343
- machineToMachineRolesLimit: number;
344
- scopesPerRoleLimit: number;
345
- hooksLimit: number;
346
- mfaEnabled: boolean;
347
- organizationsEnabled: boolean;
348
- thirdPartyApplicationsLimit: number;
349
- tenantMembersLimit: number;
350
- customJwtEnabled: boolean;
351
- subjectTokenEnabled: boolean;
352
- bringYourUiEnabled: boolean;
353
- userRolesLimit: number;
354
- enterpriseSsoLimit: number;
355
- organizationsLimit: number;
356
414
  }>;
357
- } & {
358
- "/tenants/my/subscription/usage/:entityName/scopes": import("@withtyped/server").PathGuard<"/my/subscription/usage/:entityName/scopes", {
359
- entityId?: string | undefined;
360
- }, unknown, Record<string, number>>;
361
415
  } & {
362
416
  "/tenants/my/subscription-usage": import("@withtyped/server").PathGuard<"/my/subscription-usage", unknown, unknown, {
363
417
  usage: {
364
418
  applicationsLimit: number;
365
- machineToMachineLimit: number;
366
- resourcesLimit: number;
419
+ thirdPartyApplicationsLimit: number;
367
420
  scopesPerResourceLimit: number;
368
421
  socialConnectorsLimit: number;
422
+ userRolesLimit: number;
369
423
  machineToMachineRolesLimit: number;
370
424
  scopesPerRoleLimit: number;
371
425
  hooksLimit: number;
372
- mfaEnabled: boolean;
373
- organizationsEnabled: boolean;
374
- thirdPartyApplicationsLimit: number;
375
- tenantMembersLimit: number;
376
426
  customJwtEnabled: boolean;
377
427
  subjectTokenEnabled: boolean;
378
428
  bringYourUiEnabled: boolean;
379
- userRolesLimit: number;
429
+ collectUserProfileEnabled: boolean;
430
+ machineToMachineLimit: number;
431
+ resourcesLimit: number;
380
432
  enterpriseSsoLimit: number;
433
+ tenantMembersLimit: number;
434
+ mfaEnabled: boolean;
435
+ organizationsEnabled: boolean;
381
436
  organizationsLimit: number;
437
+ securityFeaturesEnabled: boolean;
438
+ idpInitiatedSsoEnabled: boolean;
439
+ samlApplicationsLimit: number;
382
440
  };
383
441
  resources: Record<string, number>;
384
442
  roles: Record<string, number>;
385
443
  quota: {
444
+ auditLogsRetentionDays: number | null;
386
445
  mauLimit: number | null;
387
- tokenLimit: number | null;
388
446
  applicationsLimit: number | null;
389
- machineToMachineLimit: number | null;
390
- resourcesLimit: number | null;
447
+ thirdPartyApplicationsLimit: number | null;
391
448
  scopesPerResourceLimit: number | null;
392
449
  socialConnectorsLimit: number | null;
450
+ userRolesLimit: number | null;
393
451
  machineToMachineRolesLimit: number | null;
394
452
  scopesPerRoleLimit: number | null;
395
453
  hooksLimit: number | null;
396
- auditLogsRetentionDays: number | null;
454
+ customJwtEnabled: boolean;
455
+ subjectTokenEnabled: boolean;
456
+ bringYourUiEnabled: boolean;
457
+ collectUserProfileEnabled: boolean;
458
+ tokenLimit: number | null;
459
+ machineToMachineLimit: number | null;
460
+ resourcesLimit: number | null;
461
+ enterpriseSsoLimit: number | null;
462
+ tenantMembersLimit: number | null;
397
463
  mfaEnabled: boolean;
398
464
  organizationsEnabled: boolean;
465
+ organizationsLimit: number | null;
466
+ securityFeaturesEnabled: boolean;
467
+ idpInitiatedSsoEnabled: boolean;
468
+ samlApplicationsLimit: number | null;
469
+ };
470
+ basicQuota: {
471
+ auditLogsRetentionDays: number | null;
472
+ mauLimit: number | null;
473
+ applicationsLimit: number | null;
399
474
  thirdPartyApplicationsLimit: number | null;
400
- tenantMembersLimit: 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;
401
481
  customJwtEnabled: boolean;
402
482
  subjectTokenEnabled: boolean;
403
483
  bringYourUiEnabled: boolean;
404
- userRolesLimit: number | null;
484
+ collectUserProfileEnabled: boolean;
485
+ tokenLimit: number | null;
486
+ machineToMachineLimit: number | null;
487
+ resourcesLimit: number | null;
405
488
  enterpriseSsoLimit: number | null;
489
+ tenantMembersLimit: number | null;
490
+ mfaEnabled: boolean;
491
+ organizationsEnabled: boolean;
406
492
  organizationsLimit: number | null;
493
+ securityFeaturesEnabled: boolean;
494
+ idpInitiatedSsoEnabled: boolean;
495
+ samlApplicationsLimit: number | null;
407
496
  };
408
497
  }>;
409
- } & {
410
- "/tenants/my/subscription/periodic-usage": import("@withtyped/server").PathGuard<"/my/subscription/periodic-usage", unknown, unknown, {
411
- mauLimit: number;
412
- tokenLimit: number;
498
+ };
499
+ post: {
500
+ "/tenants/my/subscription/item-updates": import("@withtyped/server").PathGuard<"/my/subscription/item-updates", unknown, {
501
+ usageKey: RealtimeReportableUsageKey;
502
+ }, {
503
+ message: string;
413
504
  }>;
414
- } & {
505
+ };
506
+ put: {};
507
+ delete: {};
508
+ copy: {};
509
+ head: {};
510
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
511
+ patch: {};
512
+ options: {};
513
+ get: {
415
514
  "/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, {
416
515
  status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
417
516
  planId: string;
@@ -425,103 +524,88 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
425
524
  total: number;
426
525
  totalExcludingTax: number | null;
427
526
  } | null | undefined;
428
- isAddOnAvailable?: boolean | undefined;
429
- }>;
430
- } & {
431
- "/tenants/:tenantId/subscription/quota": import("@withtyped/server").PathGuard<"/:tenantId/subscription/quota", unknown, unknown, {
432
- mauLimit: number | null;
433
- tokenLimit: number | null;
434
- applicationsLimit: number | null;
435
- machineToMachineLimit: number | null;
436
- resourcesLimit: number | null;
437
- scopesPerResourceLimit: number | null;
438
- socialConnectorsLimit: number | null;
439
- machineToMachineRolesLimit: number | null;
440
- scopesPerRoleLimit: number | null;
441
- hooksLimit: number | null;
442
- auditLogsRetentionDays: number | null;
443
- mfaEnabled: boolean;
444
- organizationsEnabled: boolean;
445
- thirdPartyApplicationsLimit: number | null;
446
- tenantMembersLimit: number | null;
447
- customJwtEnabled: boolean;
448
- subjectTokenEnabled: boolean;
449
- bringYourUiEnabled: boolean;
450
- userRolesLimit: number | null;
451
- enterpriseSsoLimit: number | null;
452
- organizationsLimit: number | null;
453
- }>;
454
- } & {
455
- "/tenants/:tenantId/subscription/usage": import("@withtyped/server").PathGuard<"/:tenantId/subscription/usage", unknown, unknown, {
456
- applicationsLimit: number;
457
- machineToMachineLimit: number;
458
- resourcesLimit: number;
459
- scopesPerResourceLimit: number;
460
- socialConnectorsLimit: number;
461
- machineToMachineRolesLimit: number;
462
- scopesPerRoleLimit: number;
463
- hooksLimit: number;
464
- mfaEnabled: boolean;
465
- organizationsEnabled: boolean;
466
- thirdPartyApplicationsLimit: number;
467
- tenantMembersLimit: number;
468
- customJwtEnabled: boolean;
469
- subjectTokenEnabled: boolean;
470
- bringYourUiEnabled: boolean;
471
- userRolesLimit: number;
472
- enterpriseSsoLimit: number;
473
- organizationsLimit: number;
474
527
  }>;
475
- } & {
476
- "/tenants/:tenantId/subscription/usage/:entityName/scopes": import("@withtyped/server").PathGuard<"/:tenantId/subscription/usage/:entityName/scopes", {
477
- entityId?: string | undefined;
478
- }, unknown, Record<string, number>>;
479
528
  } & {
480
529
  "/tenants/:tenantId/subscription-usage": import("@withtyped/server").PathGuard<"/:tenantId/subscription-usage", unknown, unknown, {
481
530
  usage: {
482
531
  applicationsLimit: number;
483
- machineToMachineLimit: number;
484
- resourcesLimit: number;
532
+ thirdPartyApplicationsLimit: number;
485
533
  scopesPerResourceLimit: number;
486
534
  socialConnectorsLimit: number;
535
+ userRolesLimit: number;
487
536
  machineToMachineRolesLimit: number;
488
537
  scopesPerRoleLimit: number;
489
538
  hooksLimit: number;
490
- mfaEnabled: boolean;
491
- organizationsEnabled: boolean;
492
- thirdPartyApplicationsLimit: number;
493
- tenantMembersLimit: number;
494
539
  customJwtEnabled: boolean;
495
540
  subjectTokenEnabled: boolean;
496
541
  bringYourUiEnabled: boolean;
497
- userRolesLimit: number;
542
+ collectUserProfileEnabled: boolean;
543
+ machineToMachineLimit: number;
544
+ resourcesLimit: number;
498
545
  enterpriseSsoLimit: number;
546
+ tenantMembersLimit: number;
547
+ mfaEnabled: boolean;
548
+ organizationsEnabled: boolean;
499
549
  organizationsLimit: number;
550
+ securityFeaturesEnabled: boolean;
551
+ idpInitiatedSsoEnabled: boolean;
552
+ samlApplicationsLimit: number;
500
553
  };
501
554
  resources: Record<string, number>;
502
555
  roles: Record<string, number>;
503
556
  quota: {
557
+ auditLogsRetentionDays: number | null;
504
558
  mauLimit: number | null;
505
- tokenLimit: number | null;
506
559
  applicationsLimit: number | null;
507
- machineToMachineLimit: number | null;
508
- resourcesLimit: number | null;
560
+ thirdPartyApplicationsLimit: number | null;
509
561
  scopesPerResourceLimit: number | null;
510
562
  socialConnectorsLimit: number | null;
563
+ userRolesLimit: number | null;
511
564
  machineToMachineRolesLimit: number | null;
512
565
  scopesPerRoleLimit: number | null;
513
566
  hooksLimit: number | null;
514
- auditLogsRetentionDays: number | null;
567
+ customJwtEnabled: boolean;
568
+ subjectTokenEnabled: boolean;
569
+ bringYourUiEnabled: boolean;
570
+ collectUserProfileEnabled: boolean;
571
+ tokenLimit: number | null;
572
+ machineToMachineLimit: number | null;
573
+ resourcesLimit: number | null;
574
+ enterpriseSsoLimit: number | null;
575
+ tenantMembersLimit: number | null;
515
576
  mfaEnabled: boolean;
516
577
  organizationsEnabled: boolean;
578
+ organizationsLimit: number | null;
579
+ securityFeaturesEnabled: boolean;
580
+ idpInitiatedSsoEnabled: boolean;
581
+ samlApplicationsLimit: number | null;
582
+ };
583
+ basicQuota: {
584
+ auditLogsRetentionDays: number | null;
585
+ mauLimit: number | null;
586
+ applicationsLimit: number | null;
517
587
  thirdPartyApplicationsLimit: number | null;
518
- tenantMembersLimit: number | null;
588
+ scopesPerResourceLimit: number | null;
589
+ socialConnectorsLimit: number | null;
590
+ userRolesLimit: number | null;
591
+ machineToMachineRolesLimit: number | null;
592
+ scopesPerRoleLimit: number | null;
593
+ hooksLimit: number | null;
519
594
  customJwtEnabled: boolean;
520
595
  subjectTokenEnabled: boolean;
521
596
  bringYourUiEnabled: boolean;
522
- userRolesLimit: number | null;
597
+ collectUserProfileEnabled: boolean;
598
+ tokenLimit: number | null;
599
+ machineToMachineLimit: number | null;
600
+ resourcesLimit: number | null;
523
601
  enterpriseSsoLimit: number | null;
602
+ tenantMembersLimit: number | null;
603
+ mfaEnabled: boolean;
604
+ organizationsEnabled: boolean;
524
605
  organizationsLimit: number | null;
606
+ securityFeaturesEnabled: boolean;
607
+ idpInitiatedSsoEnabled: boolean;
608
+ samlApplicationsLimit: number | null;
525
609
  };
526
610
  }>;
527
611
  } & {
@@ -530,37 +614,114 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
530
614
  tokenLimit: number;
531
615
  }>;
532
616
  } & {
533
- "/tenants/:tenantId/invoices": import("@withtyped/server").PathGuard<"/:tenantId/invoices", unknown, unknown, {
534
- invoices: {
535
- status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
536
- id: string;
537
- createdAt: Date;
538
- updatedAt: Date;
539
- customerId: string | null;
540
- billingReason: string | null;
541
- periodStart: Date;
542
- periodEnd: Date;
543
- amountDue: number;
544
- amountPaid: number;
545
- subscriptionId: string | null;
546
- hostedInvoiceUrl: string | null;
617
+ "/tenants/:tenantId/subscription/add-on-skus": import("@withtyped/server").PathGuard<"/:tenantId/subscription/add-on-skus", unknown, unknown, Partial<Record<"tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "hooksLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "userRolesLimit" | "machineToMachineRolesLimit" | "thirdPartyApplicationsLimit" | "samlApplicationsLimit", {
618
+ id: string;
619
+ name: string | null;
620
+ createdAt: Date;
621
+ defaultPriceId: string | null;
622
+ unitPrice: number | null;
623
+ type: LogtoSkuType;
624
+ quota: {
625
+ auditLogsRetentionDays?: number | null | undefined;
626
+ mauLimit?: number | null | undefined;
627
+ applicationsLimit?: number | null | undefined;
628
+ thirdPartyApplicationsLimit?: number | null | undefined;
629
+ scopesPerResourceLimit?: number | null | undefined;
630
+ socialConnectorsLimit?: number | null | undefined;
631
+ userRolesLimit?: number | null | undefined;
632
+ machineToMachineRolesLimit?: number | null | undefined;
633
+ scopesPerRoleLimit?: number | null | undefined;
634
+ hooksLimit?: number | null | undefined;
635
+ customJwtEnabled?: boolean | undefined;
636
+ subjectTokenEnabled?: boolean | undefined;
637
+ bringYourUiEnabled?: boolean | undefined;
638
+ collectUserProfileEnabled?: boolean | undefined;
639
+ tokenLimit?: number | null | undefined;
640
+ machineToMachineLimit?: number | null | undefined;
641
+ resourcesLimit?: number | null | undefined;
642
+ enterpriseSsoLimit?: number | null | undefined;
643
+ tenantMembersLimit?: number | null | undefined;
644
+ mfaEnabled?: boolean | undefined;
645
+ organizationsEnabled?: boolean | undefined;
646
+ organizationsLimit?: number | null | undefined;
647
+ securityFeaturesEnabled?: boolean | undefined;
648
+ idpInitiatedSsoEnabled?: boolean | undefined;
649
+ samlApplicationsLimit?: number | null | undefined;
650
+ };
651
+ isDefault: boolean;
652
+ updatedAt: Date;
653
+ productId: string | null;
654
+ }>>>;
655
+ } & {
656
+ "/tenants/:tenantId/invoices": import("@withtyped/server").PathGuard<"/:tenantId/invoices", unknown, unknown, {
657
+ invoices: {
658
+ id: string;
659
+ createdAt: Date;
660
+ status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
661
+ updatedAt: Date;
662
+ customerId: string | null;
663
+ billingReason: string | null;
664
+ periodStart: Date;
665
+ periodEnd: Date;
666
+ amountDue: number;
667
+ amountPaid: number;
668
+ basicSkuId: string | null;
669
+ subscriptionId: string | null;
670
+ hostedInvoiceUrl: string | null;
547
671
  invoicePdf: string | null;
672
+ collectionMethod: "charge_automatically" | "send_invoice" | null;
673
+ dueDate: Date | null;
548
674
  planName: string | null;
549
675
  skuId?: string | null | undefined;
550
676
  }[];
551
677
  }>;
678
+ } & {
679
+ "/tenants/:tenantId/available-skus": import("@withtyped/server").PathGuard<"/:tenantId/available-skus", {
680
+ type?: LogtoSkuType | undefined;
681
+ }, unknown, {
682
+ id: string;
683
+ name: string | null;
684
+ createdAt: Date;
685
+ defaultPriceId: string | null;
686
+ unitPrice: number | null;
687
+ type: LogtoSkuType;
688
+ quota: {
689
+ auditLogsRetentionDays?: number | null | undefined;
690
+ mauLimit?: number | null | undefined;
691
+ applicationsLimit?: number | null | undefined;
692
+ thirdPartyApplicationsLimit?: number | null | undefined;
693
+ scopesPerResourceLimit?: number | null | undefined;
694
+ socialConnectorsLimit?: number | null | undefined;
695
+ userRolesLimit?: number | null | undefined;
696
+ machineToMachineRolesLimit?: number | null | undefined;
697
+ scopesPerRoleLimit?: number | null | undefined;
698
+ hooksLimit?: number | null | undefined;
699
+ customJwtEnabled?: boolean | undefined;
700
+ subjectTokenEnabled?: boolean | undefined;
701
+ bringYourUiEnabled?: boolean | undefined;
702
+ collectUserProfileEnabled?: boolean | undefined;
703
+ tokenLimit?: number | null | undefined;
704
+ machineToMachineLimit?: number | null | undefined;
705
+ resourcesLimit?: number | null | undefined;
706
+ enterpriseSsoLimit?: number | null | undefined;
707
+ tenantMembersLimit?: number | null | undefined;
708
+ mfaEnabled?: boolean | undefined;
709
+ organizationsEnabled?: boolean | undefined;
710
+ organizationsLimit?: number | null | undefined;
711
+ securityFeaturesEnabled?: boolean | undefined;
712
+ idpInitiatedSsoEnabled?: boolean | undefined;
713
+ samlApplicationsLimit?: number | null | undefined;
714
+ };
715
+ isDefault: boolean;
716
+ updatedAt: Date;
717
+ productId: string | null;
718
+ }[]>;
552
719
  } & {
553
720
  "/tenants/:tenantId/invoices/:invoiceId/hosted-invoice-url": import("@withtyped/server").PathGuard<"/:tenantId/invoices/:invoiceId/hosted-invoice-url", unknown, unknown, {
554
721
  hostedInvoiceUrl: string;
555
722
  }>;
556
723
  };
557
724
  post: {
558
- "/tenants/my/subscription/item-updates": import("@withtyped/server").PathGuard<"/my/subscription/item-updates", unknown, {
559
- usageKey: RealtimeReportableUsageKey;
560
- }, {
561
- message: string;
562
- }>;
563
- } & {
564
725
  "/tenants/:tenantId/stripe-customer-portal": import("@withtyped/server").PathGuard<"/:tenantId/stripe-customer-portal", unknown, {
565
726
  callbackUrl?: string | undefined;
566
727
  }, {
@@ -586,11 +747,15 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
586
747
  post: {
587
748
  "/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
588
749
  data: {
589
- type: TemplateType | VerificationCodeType;
750
+ type: TemplateType;
590
751
  payload: {
591
- code?: string | undefined;
592
752
  link?: string | undefined;
593
- } & Record<string, string> & {
753
+ code?: string | undefined;
754
+ locale?: string | undefined;
755
+ uiLocales?: string | undefined;
756
+ } & {
757
+ [k: string]: unknown;
758
+ } & {
594
759
  senderName?: string | undefined;
595
760
  companyInformation?: string | undefined;
596
761
  appLogo?: string | undefined;
@@ -601,27 +766,31 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
601
766
  } & {
602
767
  "/services/send-sms": import("@withtyped/server").PathGuard<"/send-sms", unknown, {
603
768
  data: {
604
- type: TemplateType | VerificationCodeType;
769
+ type: TemplateType;
605
770
  to: string;
606
771
  payload: {
607
772
  code?: string | undefined;
608
773
  link?: string | undefined;
609
- } & Record<string, string>;
774
+ locale?: string | undefined;
775
+ uiLocales?: string | undefined;
776
+ } & {
777
+ [k: string]: unknown;
778
+ };
610
779
  };
611
780
  }, unknown>;
612
781
  } & {
613
782
  "/services/custom-jwt": import("@withtyped/server").PathGuard<"/custom-jwt", {
614
783
  isTest?: string | undefined;
615
784
  }, {
785
+ token: Record<string, Json>;
616
786
  context: Record<string, Json>;
617
- script: string;
618
787
  tokenType: LogtoJwtTokenKeyType.AccessToken;
619
- token: Record<string, Json>;
788
+ script: string;
620
789
  environmentVariables?: Record<string, string> | undefined;
621
790
  } | {
622
- script: string;
623
- tokenType: LogtoJwtTokenKeyType.ClientCredentials;
624
791
  token: Record<string, Json>;
792
+ tokenType: LogtoJwtTokenKeyType.ClientCredentials;
793
+ script: string;
625
794
  environmentVariables?: Record<string, string> | undefined;
626
795
  }, Record<string, unknown>>;
627
796
  };
@@ -642,60 +811,6 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
642
811
  };
643
812
  copy: {};
644
813
  head: {};
645
- }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
646
- patch: {};
647
- options: {};
648
- get: {
649
- "/subscription-plans": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
650
- id: string;
651
- createdAt: Date;
652
- name: string;
653
- updatedAt: Date;
654
- quota: {
655
- mauLimit: number | null;
656
- tokenLimit: number | null;
657
- applicationsLimit: number | null;
658
- machineToMachineLimit: number | null;
659
- resourcesLimit: number | null;
660
- scopesPerResourceLimit: number | null;
661
- customDomainEnabled: boolean;
662
- omniSignInEnabled: boolean;
663
- builtInEmailConnectorEnabled: boolean;
664
- socialConnectorsLimit: number | null;
665
- standardConnectorsLimit: number | null;
666
- rolesLimit: number | null;
667
- machineToMachineRolesLimit: number | null;
668
- scopesPerRoleLimit: number | null;
669
- hooksLimit: number | null;
670
- auditLogsRetentionDays: number | null;
671
- mfaEnabled: boolean;
672
- organizationsEnabled: boolean;
673
- ssoEnabled: boolean;
674
- thirdPartyApplicationsLimit: number | null;
675
- tenantMembersLimit: number | null;
676
- customJwtEnabled: boolean;
677
- subjectTokenEnabled: boolean;
678
- bringYourUiEnabled: boolean;
679
- };
680
- stripeProducts: {
681
- type: "flat" | "tier1" | "tier2" | "tier3";
682
- id: string;
683
- name: string;
684
- price: {
685
- id: string;
686
- unitAmountDecimal: string;
687
- quantity?: 1 | undefined;
688
- unitAmount?: number | null | undefined;
689
- };
690
- description?: string | undefined;
691
- }[];
692
- }[]>;
693
- };
694
- post: {};
695
- put: {};
696
- delete: {};
697
- copy: {};
698
- head: {};
699
814
  }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
700
815
  patch: {};
701
816
  options: {};
@@ -703,40 +818,47 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
703
818
  "/skus": import("@withtyped/server").PathGuard<"/", {
704
819
  type?: LogtoSkuType | undefined;
705
820
  }, unknown, {
706
- type: LogtoSkuType;
707
821
  id: string;
708
822
  name: string | null;
823
+ createdAt: Date;
824
+ defaultPriceId: string | null;
825
+ unitPrice: number | null;
826
+ type: LogtoSkuType;
709
827
  quota: {
828
+ auditLogsRetentionDays?: number | null | undefined;
710
829
  mauLimit?: number | null | undefined;
711
- tokenLimit?: number | null | undefined;
712
830
  applicationsLimit?: number | null | undefined;
713
- machineToMachineLimit?: number | null | undefined;
714
- resourcesLimit?: number | null | undefined;
831
+ thirdPartyApplicationsLimit?: number | null | undefined;
715
832
  scopesPerResourceLimit?: number | null | undefined;
716
833
  socialConnectorsLimit?: number | null | undefined;
834
+ userRolesLimit?: number | null | undefined;
717
835
  machineToMachineRolesLimit?: number | null | undefined;
718
836
  scopesPerRoleLimit?: number | null | undefined;
719
837
  hooksLimit?: number | null | undefined;
720
- auditLogsRetentionDays?: number | null | undefined;
721
- mfaEnabled?: boolean | undefined;
722
- organizationsEnabled?: boolean | undefined;
723
- thirdPartyApplicationsLimit?: number | null | undefined;
724
- tenantMembersLimit?: number | null | undefined;
725
838
  customJwtEnabled?: boolean | undefined;
726
839
  subjectTokenEnabled?: boolean | undefined;
727
840
  bringYourUiEnabled?: boolean | undefined;
728
- userRolesLimit?: number | null | undefined;
841
+ collectUserProfileEnabled?: boolean | undefined;
842
+ tokenLimit?: number | null | undefined;
843
+ machineToMachineLimit?: number | null | undefined;
844
+ resourcesLimit?: number | null | undefined;
729
845
  enterpriseSsoLimit?: number | null | undefined;
846
+ tenantMembersLimit?: number | null | undefined;
847
+ mfaEnabled?: boolean | undefined;
848
+ organizationsEnabled?: boolean | undefined;
730
849
  organizationsLimit?: number | null | undefined;
850
+ securityFeaturesEnabled?: boolean | undefined;
851
+ idpInitiatedSsoEnabled?: boolean | undefined;
852
+ samlApplicationsLimit?: number | null | undefined;
731
853
  };
732
- createdAt: Date;
854
+ isDefault: boolean;
733
855
  updatedAt: Date;
734
- unitPrice: number | null;
856
+ productId: string | null;
735
857
  }[]>;
736
858
  };
737
859
  post: {
738
860
  "/skus": import("@withtyped/server").PathGuard<"/", unknown, {
739
- type: LogtoSkuType.AddOn;
861
+ type: LogtoSkuType;
740
862
  quota: {
741
863
  tokenLimit?: number | null | undefined;
742
864
  machineToMachineLimit?: number | null | undefined;
@@ -747,71 +869,57 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
747
869
  mfaEnabled?: boolean | undefined;
748
870
  organizationsEnabled?: boolean | undefined;
749
871
  organizationsLimit?: number | null | undefined;
872
+ securityFeaturesEnabled?: boolean | undefined;
873
+ userRolesLimit?: number | null | undefined;
874
+ machineToMachineRolesLimit?: number | null | undefined;
875
+ thirdPartyApplicationsLimit?: number | null | undefined;
876
+ samlApplicationsLimit?: number | null | undefined;
877
+ auditLogsRetentionDays?: number | null | undefined;
750
878
  mauLimit?: number | null | undefined;
751
879
  applicationsLimit?: number | null | undefined;
752
880
  scopesPerResourceLimit?: number | null | undefined;
753
881
  socialConnectorsLimit?: number | null | undefined;
754
- machineToMachineRolesLimit?: number | null | undefined;
755
882
  scopesPerRoleLimit?: number | null | undefined;
756
- auditLogsRetentionDays?: number | null | undefined;
757
- thirdPartyApplicationsLimit?: number | null | undefined;
758
883
  customJwtEnabled?: boolean | undefined;
759
884
  subjectTokenEnabled?: boolean | undefined;
760
885
  bringYourUiEnabled?: boolean | undefined;
761
- userRolesLimit?: number | null | undefined;
762
- };
763
- } | {
764
- type: LogtoSkuType.Basic;
765
- quota: {
766
- mauLimit: number | null;
767
- tokenLimit: number | null;
768
- applicationsLimit: number | null;
769
- machineToMachineLimit: number | null;
770
- resourcesLimit: number | null;
771
- scopesPerResourceLimit: number | null;
772
- socialConnectorsLimit: number | null;
773
- machineToMachineRolesLimit: number | null;
774
- scopesPerRoleLimit: number | null;
775
- hooksLimit: number | null;
776
- auditLogsRetentionDays: number | null;
777
- mfaEnabled: boolean;
778
- organizationsEnabled: boolean;
779
- thirdPartyApplicationsLimit: number | null;
780
- tenantMembersLimit: number | null;
781
- customJwtEnabled: boolean;
782
- subjectTokenEnabled: boolean;
783
- bringYourUiEnabled: boolean;
784
- userRolesLimit: number | null;
785
- enterpriseSsoLimit: number | null;
786
- organizationsLimit: number | null;
886
+ collectUserProfileEnabled?: boolean | undefined;
887
+ idpInitiatedSsoEnabled?: boolean | undefined;
787
888
  };
889
+ id?: string | undefined;
890
+ isDefault?: boolean | undefined;
788
891
  }, {
789
892
  id: string;
790
893
  createdAt: Date;
791
894
  type: LogtoSkuType;
895
+ isDefault: boolean;
792
896
  updatedAt: Date;
793
897
  quota: {
898
+ auditLogsRetentionDays?: number | null | undefined;
794
899
  mauLimit?: number | null | undefined;
795
- tokenLimit?: number | null | undefined;
796
900
  applicationsLimit?: number | null | undefined;
797
- machineToMachineLimit?: number | null | undefined;
798
- resourcesLimit?: number | null | undefined;
901
+ thirdPartyApplicationsLimit?: number | null | undefined;
799
902
  scopesPerResourceLimit?: number | null | undefined;
800
903
  socialConnectorsLimit?: number | null | undefined;
904
+ userRolesLimit?: number | null | undefined;
801
905
  machineToMachineRolesLimit?: number | null | undefined;
802
906
  scopesPerRoleLimit?: number | null | undefined;
803
907
  hooksLimit?: number | null | undefined;
804
- auditLogsRetentionDays?: number | null | undefined;
805
- mfaEnabled?: boolean | undefined;
806
- organizationsEnabled?: boolean | undefined;
807
- thirdPartyApplicationsLimit?: number | null | undefined;
808
- tenantMembersLimit?: number | null | undefined;
809
908
  customJwtEnabled?: boolean | undefined;
810
909
  subjectTokenEnabled?: boolean | undefined;
811
910
  bringYourUiEnabled?: boolean | undefined;
812
- userRolesLimit?: number | null | undefined;
911
+ collectUserProfileEnabled?: boolean | undefined;
912
+ tokenLimit?: number | null | undefined;
913
+ machineToMachineLimit?: number | null | undefined;
914
+ resourcesLimit?: number | null | undefined;
813
915
  enterpriseSsoLimit?: number | null | undefined;
916
+ tenantMembersLimit?: number | null | undefined;
917
+ mfaEnabled?: boolean | undefined;
918
+ organizationsEnabled?: boolean | undefined;
814
919
  organizationsLimit?: number | null | undefined;
920
+ securityFeaturesEnabled?: boolean | undefined;
921
+ idpInitiatedSsoEnabled?: boolean | undefined;
922
+ samlApplicationsLimit?: number | null | undefined;
815
923
  };
816
924
  }>;
817
925
  } & {
@@ -823,10 +931,21 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
823
931
  }, {
824
932
  productId: string;
825
933
  }>;
934
+ } & {
935
+ "/skus/:basicSkuId/usage-add-on-relations": import("@withtyped/server").PathGuard<"/:basicSkuId/usage-add-on-relations", unknown, {
936
+ usageKey: "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "hooksLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "userRolesLimit" | "machineToMachineRolesLimit" | "thirdPartyApplicationsLimit" | "samlApplicationsLimit";
937
+ addOnSkuId: string;
938
+ }, {
939
+ basicSkuId: string;
940
+ usageKey: "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "hooksLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "userRolesLimit" | "machineToMachineRolesLimit" | "thirdPartyApplicationsLimit" | "samlApplicationsLimit";
941
+ addOnSkuId: string;
942
+ }>;
826
943
  };
827
944
  put: {};
828
945
  delete: {
829
946
  "/skus/:skuId": import("@withtyped/server").PathGuard<"/:skuId", unknown, unknown, unknown>;
947
+ } & {
948
+ "/skus/:basicSkuId/usage-add-on-relations/:usageKey": import("@withtyped/server").PathGuard<"/:basicSkuId/usage-add-on-relations/:usageKey", unknown, unknown, unknown>;
830
949
  };
831
950
  copy: {};
832
951
  head: {};
@@ -841,19 +960,18 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
841
960
  status: "open" | "complete" | "expired";
842
961
  tenantId: string | null;
843
962
  updatedAt: Date;
844
- planId: string;
845
963
  skuId: string | null;
964
+ planId: string | null;
846
965
  }>;
847
966
  };
848
967
  post: {
849
968
  "/checkout-session": import("@withtyped/server").PathGuard<"/", unknown, {
850
- planId: string;
851
969
  successCallbackUrl: string;
852
970
  tenantId?: string | undefined;
853
971
  skuId?: string | undefined;
854
972
  tenantName?: string | undefined;
855
973
  tenantTag?: TenantTag | undefined;
856
- tenantRegionName?: RegionName | undefined;
974
+ tenantRegionName?: string | undefined;
857
975
  cancelCallbackUrl?: string | undefined;
858
976
  }, {
859
977
  sessionId: string;
@@ -971,7 +1089,18 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
971
1089
  }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
972
1090
  patch: {};
973
1091
  options: {};
974
- get: {};
1092
+ get: {
1093
+ "/me/regions": import("@withtyped/server").PathGuard<"/regions", unknown, unknown, {
1094
+ regions: {
1095
+ id: string;
1096
+ name: string;
1097
+ country: string;
1098
+ displayName: string;
1099
+ tags: TenantTag[];
1100
+ isPrivate: boolean;
1101
+ }[];
1102
+ }>;
1103
+ };
975
1104
  post: {};
976
1105
  put: {};
977
1106
  delete: {
@@ -979,6 +1108,216 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
979
1108
  };
980
1109
  copy: {};
981
1110
  head: {};
1111
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
1112
+ patch: {
1113
+ "/system-limits/:id": import("@withtyped/server").PathGuard<"/:id", unknown, {
1114
+ limits: {
1115
+ machineToMachineLimit?: number | null | undefined;
1116
+ resourcesLimit?: number | null | undefined;
1117
+ enterpriseSsoLimit?: number | null | undefined;
1118
+ hooksLimit?: number | null | undefined;
1119
+ tenantMembersLimit?: number | null | undefined;
1120
+ organizationsLimit?: number | null | undefined;
1121
+ userRolesLimit?: number | null | undefined;
1122
+ machineToMachineRolesLimit?: number | null | undefined;
1123
+ thirdPartyApplicationsLimit?: number | null | undefined;
1124
+ samlApplicationsLimit?: number | null | undefined;
1125
+ applicationsLimit?: number | null | undefined;
1126
+ scopesPerResourceLimit?: number | null | undefined;
1127
+ socialConnectorsLimit?: number | null | undefined;
1128
+ scopesPerRoleLimit?: number | null | undefined;
1129
+ usersPerOrganizationLimit?: number | null | undefined;
1130
+ organizationUserRolesLimit?: number | null | undefined;
1131
+ organizationMachineToMachineRolesLimit?: number | null | undefined;
1132
+ organizationScopesLimit?: number | null | undefined;
1133
+ };
1134
+ }, {
1135
+ id: string;
1136
+ createdAt: Date;
1137
+ updatedAt: Date;
1138
+ limits: {
1139
+ applicationsLimit?: number | null | undefined;
1140
+ thirdPartyApplicationsLimit?: number | null | undefined;
1141
+ scopesPerResourceLimit?: number | null | undefined;
1142
+ socialConnectorsLimit?: number | null | undefined;
1143
+ userRolesLimit?: number | null | undefined;
1144
+ machineToMachineRolesLimit?: number | null | undefined;
1145
+ scopesPerRoleLimit?: number | null | undefined;
1146
+ hooksLimit?: number | null | undefined;
1147
+ machineToMachineLimit?: number | null | undefined;
1148
+ resourcesLimit?: number | null | undefined;
1149
+ enterpriseSsoLimit?: number | null | undefined;
1150
+ tenantMembersLimit?: number | null | undefined;
1151
+ organizationsLimit?: number | null | undefined;
1152
+ samlApplicationsLimit?: number | null | undefined;
1153
+ usersPerOrganizationLimit?: number | null | undefined;
1154
+ organizationUserRolesLimit?: number | null | undefined;
1155
+ organizationMachineToMachineRolesLimit?: number | null | undefined;
1156
+ organizationScopesLimit?: number | null | undefined;
1157
+ };
1158
+ }>;
1159
+ };
1160
+ options: {};
1161
+ get: {
1162
+ "/system-limits": import("@withtyped/server").PathGuard<"/", {
1163
+ basicSkuId?: string | undefined;
1164
+ }, unknown, {
1165
+ id: string;
1166
+ createdAt: Date;
1167
+ updatedAt: Date;
1168
+ limits: {
1169
+ applicationsLimit?: number | null | undefined;
1170
+ thirdPartyApplicationsLimit?: number | null | undefined;
1171
+ scopesPerResourceLimit?: number | null | undefined;
1172
+ socialConnectorsLimit?: number | null | undefined;
1173
+ userRolesLimit?: number | null | undefined;
1174
+ machineToMachineRolesLimit?: number | null | undefined;
1175
+ scopesPerRoleLimit?: number | null | undefined;
1176
+ hooksLimit?: number | null | undefined;
1177
+ machineToMachineLimit?: number | null | undefined;
1178
+ resourcesLimit?: number | null | undefined;
1179
+ enterpriseSsoLimit?: number | null | undefined;
1180
+ tenantMembersLimit?: number | null | undefined;
1181
+ organizationsLimit?: number | null | undefined;
1182
+ samlApplicationsLimit?: number | null | undefined;
1183
+ usersPerOrganizationLimit?: number | null | undefined;
1184
+ organizationUserRolesLimit?: number | null | undefined;
1185
+ organizationMachineToMachineRolesLimit?: number | null | undefined;
1186
+ organizationScopesLimit?: number | null | undefined;
1187
+ };
1188
+ basicSkuIds: string[];
1189
+ }[]>;
1190
+ } & {
1191
+ "/system-limits/:id": import("@withtyped/server").PathGuard<"/:id", unknown, unknown, {
1192
+ id: string;
1193
+ createdAt: Date;
1194
+ updatedAt: Date;
1195
+ limits: {
1196
+ applicationsLimit?: number | null | undefined;
1197
+ thirdPartyApplicationsLimit?: number | null | undefined;
1198
+ scopesPerResourceLimit?: number | null | undefined;
1199
+ socialConnectorsLimit?: number | null | undefined;
1200
+ userRolesLimit?: number | null | undefined;
1201
+ machineToMachineRolesLimit?: number | null | undefined;
1202
+ scopesPerRoleLimit?: number | null | undefined;
1203
+ hooksLimit?: number | null | undefined;
1204
+ machineToMachineLimit?: number | null | undefined;
1205
+ resourcesLimit?: number | null | undefined;
1206
+ enterpriseSsoLimit?: number | null | undefined;
1207
+ tenantMembersLimit?: number | null | undefined;
1208
+ organizationsLimit?: number | null | undefined;
1209
+ samlApplicationsLimit?: number | null | undefined;
1210
+ usersPerOrganizationLimit?: number | null | undefined;
1211
+ organizationUserRolesLimit?: number | null | undefined;
1212
+ organizationMachineToMachineRolesLimit?: number | null | undefined;
1213
+ organizationScopesLimit?: number | null | undefined;
1214
+ };
1215
+ basicSkuIds: string[];
1216
+ }>;
1217
+ };
1218
+ post: {
1219
+ "/system-limits": import("@withtyped/server").PathGuard<"/", unknown, {
1220
+ limits: {
1221
+ machineToMachineLimit?: number | null | undefined;
1222
+ resourcesLimit?: number | null | undefined;
1223
+ enterpriseSsoLimit?: number | null | undefined;
1224
+ hooksLimit?: number | null | undefined;
1225
+ tenantMembersLimit?: number | null | undefined;
1226
+ organizationsLimit?: number | null | undefined;
1227
+ userRolesLimit?: number | null | undefined;
1228
+ machineToMachineRolesLimit?: number | null | undefined;
1229
+ thirdPartyApplicationsLimit?: number | null | undefined;
1230
+ samlApplicationsLimit?: number | null | undefined;
1231
+ applicationsLimit?: number | null | undefined;
1232
+ scopesPerResourceLimit?: number | null | undefined;
1233
+ socialConnectorsLimit?: number | null | undefined;
1234
+ scopesPerRoleLimit?: number | null | undefined;
1235
+ usersPerOrganizationLimit?: number | null | undefined;
1236
+ organizationUserRolesLimit?: number | null | undefined;
1237
+ organizationMachineToMachineRolesLimit?: number | null | undefined;
1238
+ organizationScopesLimit?: number | null | undefined;
1239
+ };
1240
+ id?: string | undefined;
1241
+ }, {
1242
+ id: string;
1243
+ createdAt: Date;
1244
+ updatedAt: Date;
1245
+ limits: {
1246
+ applicationsLimit?: number | null | undefined;
1247
+ thirdPartyApplicationsLimit?: number | null | undefined;
1248
+ scopesPerResourceLimit?: number | null | undefined;
1249
+ socialConnectorsLimit?: number | null | undefined;
1250
+ userRolesLimit?: number | null | undefined;
1251
+ machineToMachineRolesLimit?: number | null | undefined;
1252
+ scopesPerRoleLimit?: number | null | undefined;
1253
+ hooksLimit?: number | null | undefined;
1254
+ machineToMachineLimit?: number | null | undefined;
1255
+ resourcesLimit?: number | null | undefined;
1256
+ enterpriseSsoLimit?: number | null | undefined;
1257
+ tenantMembersLimit?: number | null | undefined;
1258
+ organizationsLimit?: number | null | undefined;
1259
+ samlApplicationsLimit?: number | null | undefined;
1260
+ usersPerOrganizationLimit?: number | null | undefined;
1261
+ organizationUserRolesLimit?: number | null | undefined;
1262
+ organizationMachineToMachineRolesLimit?: number | null | undefined;
1263
+ organizationScopesLimit?: number | null | undefined;
1264
+ };
1265
+ }>;
1266
+ } & {
1267
+ "/system-limits/:systemLimitId/basic-sku-relations": import("@withtyped/server").PathGuard<"/:systemLimitId/basic-sku-relations", unknown, {
1268
+ basicSkuIds: string[];
1269
+ }, {
1270
+ relations: {
1271
+ createdAt: Date;
1272
+ updatedAt: Date;
1273
+ basicSkuId: string;
1274
+ systemLimitId: string;
1275
+ }[];
1276
+ }>;
1277
+ };
1278
+ put: {};
1279
+ delete: {
1280
+ "/system-limits/:id": import("@withtyped/server").PathGuard<"/:id", unknown, unknown, unknown>;
1281
+ } & {
1282
+ "/system-limits/:systemLimitId/basic-sku-relations": import("@withtyped/server").PathGuard<"/:systemLimitId/basic-sku-relations", unknown, {
1283
+ basicSkuIds: string[];
1284
+ }, unknown>;
1285
+ };
1286
+ copy: {};
1287
+ head: {};
1288
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
1289
+ patch: {
1290
+ "/regions/:regionName/users/:userId": import("@withtyped/server").PathGuard<"/:regionName/users/:userId", unknown, {
1291
+ role: DatabaseRegionAccessRole;
1292
+ }, {
1293
+ role: DatabaseRegionAccessRole;
1294
+ userId: string;
1295
+ }>;
1296
+ };
1297
+ options: {};
1298
+ get: {
1299
+ "/regions/:regionName/users": import("@withtyped/server").PathGuard<"/:regionName/users", unknown, unknown, {
1300
+ users: {
1301
+ role: DatabaseRegionAccessRole;
1302
+ userId: string;
1303
+ }[];
1304
+ }>;
1305
+ };
1306
+ post: {
1307
+ "/regions/:regionName/users": import("@withtyped/server").PathGuard<"/:regionName/users", unknown, {
1308
+ role: DatabaseRegionAccessRole;
1309
+ userId: string;
1310
+ }, {
1311
+ role: DatabaseRegionAccessRole;
1312
+ userId: string;
1313
+ }>;
1314
+ };
1315
+ put: {};
1316
+ delete: {
1317
+ "/regions/:regionName/users/:userId": import("@withtyped/server").PathGuard<"/:regionName/users/:userId", unknown, unknown, unknown>;
1318
+ };
1319
+ copy: {};
1320
+ head: {};
982
1321
  }, "/api">>, "/api">;
983
1322
  export declare const tenantAuthRouter: import("@withtyped/server").Router<RequestContext, import("@withtyped/server").WithBodyContext<import("@withtyped/server").BaseContext & {
984
1323
  request: {