@logto/cloud 0.2.5-c14ed4e → 0.2.5-c29be90

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