@logto/cloud 0.2.5-61f7709 → 0.2.5-6279e2e

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 +457 -263
  2. package/package.json +8 -7
@@ -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,13 @@ 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"
33
45
  }
34
46
  declare enum OrganizationInvitationStatus {
35
47
  Pending = "Pending",
@@ -69,10 +81,6 @@ declare enum TenantRole {
69
81
  /** Collaborator of the tenant, who has permissions to operate the tenant data, but not the tenant settings. */
70
82
  Collaborator = "collaborator"
71
83
  }
72
- declare enum LogtoSkuType {
73
- Basic = "Basic",
74
- AddOn = "AddOn"
75
- }
76
84
  declare const AffiliateProperties: import("@withtyped/server/lib/model/index.js").default<"affiliate_properties", {
77
85
  createdAt: Date;
78
86
  affiliateId: string;
@@ -86,10 +94,22 @@ declare const Affiliates: import("@withtyped/server/lib/model/index.js").default
86
94
  id: string;
87
95
  }, "id" | "createdAt", "id" | "createdAt">;
88
96
  export type Affiliate = InferModelType<typeof Affiliates>;
89
- declare enum RegionName {
90
- EU = "EU",
91
- US = "US"
92
- }
97
+ declare const publicRegionNames: readonly [
98
+ "EU",
99
+ "US",
100
+ "AU",
101
+ "JP"
102
+ ];
103
+ /** The type of region names for the public cloud. */
104
+ export type PublicRegionName = (typeof publicRegionNames)[number];
105
+ export type WithAuthContext<Context = RequestContext> = Context & {
106
+ auth: {
107
+ /** The ID of the authenticated subject (`sub`). */
108
+ id: string;
109
+ /** The scopes that the subject has (`scope`). */
110
+ scopes: string[];
111
+ };
112
+ };
93
113
  export type AffiliateData = Affiliate & {
94
114
  properties: Array<Pick<AffiliateProperty, "type" | "value">>;
95
115
  };
@@ -119,12 +139,14 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
119
139
  }, {
120
140
  id: string;
121
141
  name: string;
142
+ createdAt: Date;
122
143
  quota: {
123
144
  mauLimit: number | null;
145
+ tokenLimit: number | null;
124
146
  };
125
- createdAt: Date;
126
147
  usage: {
127
148
  activeUsers: number;
149
+ tokenUsage: number;
128
150
  };
129
151
  indicator: string;
130
152
  isSuspended: boolean;
@@ -134,6 +156,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
134
156
  planId: string;
135
157
  currentPeriodStart: Date;
136
158
  currentPeriodEnd: Date;
159
+ isEnterprisePlan: boolean;
137
160
  id?: string | undefined;
138
161
  upcomingInvoice?: {
139
162
  subtotal: number;
@@ -141,15 +164,13 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
141
164
  total: number;
142
165
  totalExcludingTax: number | null;
143
166
  } | null | undefined;
144
- isAddOnAvailable?: boolean | undefined;
145
- isAddOnVisibleToLegacyUsers?: boolean | undefined;
146
167
  };
147
- regionName: RegionName;
168
+ regionName: string;
148
169
  tag: TenantTag;
149
170
  openInvoices: {
150
- status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
151
171
  id: string;
152
172
  createdAt: Date;
173
+ status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
153
174
  updatedAt: Date;
154
175
  customerId: string | null;
155
176
  billingReason: string | null;
@@ -157,6 +178,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
157
178
  periodEnd: Date;
158
179
  amountDue: number;
159
180
  amountPaid: number;
181
+ basicSkuId: string | null;
160
182
  subscriptionId: string | null;
161
183
  hostedInvoiceUrl: string | null;
162
184
  invoicePdf: string | null;
@@ -168,12 +190,14 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
168
190
  "/tenants": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
169
191
  id: string;
170
192
  name: string;
193
+ createdAt: Date;
171
194
  quota: {
172
195
  mauLimit: number | null;
196
+ tokenLimit: number | null;
173
197
  };
174
- createdAt: Date;
175
198
  usage: {
176
199
  activeUsers: number;
200
+ tokenUsage: number;
177
201
  };
178
202
  indicator: string;
179
203
  isSuspended: boolean;
@@ -183,6 +207,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
183
207
  planId: string;
184
208
  currentPeriodStart: Date;
185
209
  currentPeriodEnd: Date;
210
+ isEnterprisePlan: boolean;
186
211
  id?: string | undefined;
187
212
  upcomingInvoice?: {
188
213
  subtotal: number;
@@ -190,15 +215,13 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
190
215
  total: number;
191
216
  totalExcludingTax: number | null;
192
217
  } | null | undefined;
193
- isAddOnAvailable?: boolean | undefined;
194
- isAddOnVisibleToLegacyUsers?: boolean | undefined;
195
218
  };
196
- regionName: RegionName;
219
+ regionName: string;
197
220
  tag: TenantTag;
198
221
  openInvoices: {
199
- status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
200
222
  id: string;
201
223
  createdAt: Date;
224
+ status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
202
225
  updatedAt: Date;
203
226
  customerId: string | null;
204
227
  billingReason: string | null;
@@ -206,6 +229,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
206
229
  periodEnd: Date;
207
230
  amountDue: number;
208
231
  amountPaid: number;
232
+ basicSkuId: string | null;
209
233
  subscriptionId: string | null;
210
234
  hostedInvoiceUrl: string | null;
211
235
  invoicePdf: string | null;
@@ -214,18 +238,21 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
214
238
  };
215
239
  post: {
216
240
  "/tenants": import("@withtyped/server").PathGuard<"/", unknown, {
241
+ id?: string | undefined;
217
242
  name?: string | undefined;
218
243
  tag?: TenantTag | undefined;
219
- regionName?: RegionName | undefined;
244
+ regionName?: string | undefined;
220
245
  }, {
221
246
  id: string;
222
247
  name: string;
248
+ createdAt: Date;
223
249
  quota: {
224
250
  mauLimit: number | null;
251
+ tokenLimit: number | null;
225
252
  };
226
- createdAt: Date;
227
253
  usage: {
228
254
  activeUsers: number;
255
+ tokenUsage: number;
229
256
  };
230
257
  indicator: string;
231
258
  isSuspended: boolean;
@@ -235,6 +262,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
235
262
  planId: string;
236
263
  currentPeriodStart: Date;
237
264
  currentPeriodEnd: Date;
265
+ isEnterprisePlan: boolean;
238
266
  id?: string | undefined;
239
267
  upcomingInvoice?: {
240
268
  subtotal: number;
@@ -242,15 +270,13 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
242
270
  total: number;
243
271
  totalExcludingTax: number | null;
244
272
  } | null | undefined;
245
- isAddOnAvailable?: boolean | undefined;
246
- isAddOnVisibleToLegacyUsers?: boolean | undefined;
247
273
  };
248
- regionName: RegionName;
274
+ regionName: string;
249
275
  tag: TenantTag;
250
276
  openInvoices: {
251
- status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
252
277
  id: string;
253
278
  createdAt: Date;
279
+ status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
254
280
  updatedAt: Date;
255
281
  customerId: string | null;
256
282
  billingReason: string | null;
@@ -258,6 +284,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
258
284
  periodEnd: Date;
259
285
  amountDue: number;
260
286
  amountPaid: number;
287
+ basicSkuId: string | null;
261
288
  subscriptionId: string | null;
262
289
  hostedInvoiceUrl: string | null;
263
290
  invoicePdf: string | null;
@@ -276,9 +303,37 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
276
303
  get: {
277
304
  "/tenants/my/subscription": import("@withtyped/server").PathGuard<"/my/subscription", unknown, unknown, {
278
305
  status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
306
+ quota: {
307
+ auditLogsRetentionDays: number | null;
308
+ mauLimit: number | null;
309
+ applicationsLimit: number | null;
310
+ thirdPartyApplicationsLimit: number | null;
311
+ scopesPerResourceLimit: number | null;
312
+ socialConnectorsLimit: number | null;
313
+ userRolesLimit: number | null;
314
+ machineToMachineRolesLimit: number | null;
315
+ scopesPerRoleLimit: number | null;
316
+ hooksLimit: number | null;
317
+ customJwtEnabled: boolean;
318
+ subjectTokenEnabled: boolean;
319
+ bringYourUiEnabled: boolean;
320
+ collectUserProfileEnabled: boolean;
321
+ tokenLimit: number | null;
322
+ machineToMachineLimit: number | null;
323
+ resourcesLimit: number | null;
324
+ enterpriseSsoLimit: number | null;
325
+ tenantMembersLimit: number | null;
326
+ mfaEnabled: boolean;
327
+ organizationsEnabled: boolean;
328
+ organizationsLimit: number | null;
329
+ securityFeaturesEnabled: boolean;
330
+ idpInitiatedSsoEnabled: boolean;
331
+ samlApplicationsLimit: number | null;
332
+ };
279
333
  planId: string;
280
334
  currentPeriodStart: Date;
281
335
  currentPeriodEnd: Date;
336
+ isEnterprisePlan: boolean;
282
337
  id?: string | undefined;
283
338
  upcomingInvoice?: {
284
339
  subtotal: number;
@@ -286,118 +341,112 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
286
341
  total: number;
287
342
  totalExcludingTax: number | null;
288
343
  } | null | undefined;
289
- isAddOnAvailable?: boolean | undefined;
290
- isAddOnVisibleToLegacyUsers?: boolean | undefined;
291
344
  }>;
292
- } & {
293
- "/tenants/my/subscription/quota": import("@withtyped/server").PathGuard<"/my/subscription/quota", unknown, unknown, {
294
- mauLimit: number | null;
295
- tokenLimit: number | null;
296
- applicationsLimit: number | null;
297
- machineToMachineLimit: number | null;
298
- resourcesLimit: number | null;
299
- scopesPerResourceLimit: number | null;
300
- socialConnectorsLimit: number | null;
301
- machineToMachineRolesLimit: number | null;
302
- scopesPerRoleLimit: number | null;
303
- hooksLimit: number | null;
304
- auditLogsRetentionDays: number | null;
305
- mfaEnabled: boolean;
306
- organizationsEnabled: boolean;
307
- thirdPartyApplicationsLimit: number | null;
308
- tenantMembersLimit: number | null;
309
- customJwtEnabled: boolean;
310
- subjectTokenEnabled: boolean;
311
- bringYourUiEnabled: boolean;
312
- userRolesLimit: number | null;
313
- enterpriseSsoLimit: number | null;
314
- }>;
315
- } & {
316
- "/tenants/my/subscription/usage": import("@withtyped/server").PathGuard<"/my/subscription/usage", unknown, unknown, {
317
- mauLimit: number;
318
- tokenLimit: number;
319
- applicationsLimit: number;
320
- machineToMachineLimit: number;
321
- resourcesLimit: number;
322
- scopesPerResourceLimit: number;
323
- socialConnectorsLimit: number;
324
- machineToMachineRolesLimit: number;
325
- scopesPerRoleLimit: number;
326
- hooksLimit: number;
327
- mfaEnabled: boolean;
328
- organizationsEnabled: boolean;
329
- thirdPartyApplicationsLimit: number;
330
- tenantMembersLimit: number;
331
- customJwtEnabled: boolean;
332
- subjectTokenEnabled: boolean;
333
- bringYourUiEnabled: boolean;
334
- userRolesLimit: number;
335
- enterpriseSsoLimit: number;
336
- }>;
337
- } & {
338
- "/tenants/my/subscription/usage/:entityName/scopes": import("@withtyped/server").PathGuard<"/my/subscription/usage/:entityName/scopes", {
339
- entityId?: string | undefined;
340
- }, unknown, Record<string, number>>;
341
345
  } & {
342
346
  "/tenants/my/subscription-usage": import("@withtyped/server").PathGuard<"/my/subscription-usage", unknown, unknown, {
343
347
  usage: {
344
- mauLimit: number;
345
- tokenLimit: number;
346
348
  applicationsLimit: number;
347
- machineToMachineLimit: number;
348
- resourcesLimit: number;
349
+ thirdPartyApplicationsLimit: number;
349
350
  scopesPerResourceLimit: number;
350
351
  socialConnectorsLimit: number;
352
+ userRolesLimit: number;
351
353
  machineToMachineRolesLimit: number;
352
354
  scopesPerRoleLimit: number;
353
355
  hooksLimit: number;
354
- mfaEnabled: boolean;
355
- organizationsEnabled: boolean;
356
- thirdPartyApplicationsLimit: number;
357
- tenantMembersLimit: number;
358
356
  customJwtEnabled: boolean;
359
357
  subjectTokenEnabled: boolean;
360
358
  bringYourUiEnabled: boolean;
361
- userRolesLimit: number;
359
+ collectUserProfileEnabled: boolean;
360
+ machineToMachineLimit: number;
361
+ resourcesLimit: number;
362
362
  enterpriseSsoLimit: number;
363
+ tenantMembersLimit: number;
364
+ mfaEnabled: boolean;
365
+ organizationsEnabled: boolean;
366
+ organizationsLimit: number;
367
+ securityFeaturesEnabled: boolean;
368
+ idpInitiatedSsoEnabled: boolean;
369
+ samlApplicationsLimit: number;
363
370
  };
364
371
  resources: Record<string, number>;
365
372
  roles: Record<string, number>;
366
373
  quota: {
374
+ auditLogsRetentionDays: number | null;
367
375
  mauLimit: number | null;
368
- tokenLimit: number | null;
369
376
  applicationsLimit: number | null;
370
- machineToMachineLimit: number | null;
371
- resourcesLimit: number | null;
377
+ thirdPartyApplicationsLimit: number | null;
372
378
  scopesPerResourceLimit: number | null;
373
379
  socialConnectorsLimit: number | null;
380
+ userRolesLimit: number | null;
374
381
  machineToMachineRolesLimit: number | null;
375
382
  scopesPerRoleLimit: number | null;
376
383
  hooksLimit: number | null;
377
- auditLogsRetentionDays: number | null;
384
+ customJwtEnabled: boolean;
385
+ subjectTokenEnabled: boolean;
386
+ bringYourUiEnabled: boolean;
387
+ collectUserProfileEnabled: boolean;
388
+ tokenLimit: number | null;
389
+ machineToMachineLimit: number | null;
390
+ resourcesLimit: number | null;
391
+ enterpriseSsoLimit: number | null;
392
+ tenantMembersLimit: number | null;
378
393
  mfaEnabled: boolean;
379
394
  organizationsEnabled: boolean;
395
+ organizationsLimit: number | null;
396
+ securityFeaturesEnabled: boolean;
397
+ idpInitiatedSsoEnabled: boolean;
398
+ samlApplicationsLimit: number | null;
399
+ };
400
+ basicQuota: {
401
+ auditLogsRetentionDays: number | null;
402
+ mauLimit: number | null;
403
+ applicationsLimit: number | null;
380
404
  thirdPartyApplicationsLimit: number | null;
381
- tenantMembersLimit: number | null;
405
+ scopesPerResourceLimit: number | null;
406
+ socialConnectorsLimit: number | null;
407
+ userRolesLimit: number | null;
408
+ machineToMachineRolesLimit: number | null;
409
+ scopesPerRoleLimit: number | null;
410
+ hooksLimit: number | null;
382
411
  customJwtEnabled: boolean;
383
412
  subjectTokenEnabled: boolean;
384
413
  bringYourUiEnabled: boolean;
385
- userRolesLimit: number | null;
414
+ collectUserProfileEnabled: boolean;
415
+ tokenLimit: number | null;
416
+ machineToMachineLimit: number | null;
417
+ resourcesLimit: number | null;
386
418
  enterpriseSsoLimit: number | null;
419
+ tenantMembersLimit: number | null;
420
+ mfaEnabled: boolean;
421
+ organizationsEnabled: boolean;
422
+ organizationsLimit: number | null;
423
+ securityFeaturesEnabled: boolean;
424
+ idpInitiatedSsoEnabled: boolean;
425
+ samlApplicationsLimit: number | null;
387
426
  };
388
- upcomingInvoice?: {
389
- subtotal: number;
390
- subtotalExcludingTax: number | null;
391
- total: number;
392
- totalExcludingTax: number | null;
393
- } | null | undefined;
394
427
  }>;
395
- } & {
428
+ };
429
+ post: {
430
+ "/tenants/my/subscription/item-updates": import("@withtyped/server").PathGuard<"/my/subscription/item-updates", unknown, {
431
+ usageKey: RealtimeReportableUsageKey;
432
+ }, {
433
+ message: string;
434
+ }>;
435
+ };
436
+ put: {};
437
+ delete: {};
438
+ copy: {};
439
+ head: {};
440
+ }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
441
+ patch: {};
442
+ options: {};
443
+ get: {
396
444
  "/tenants/:tenantId/subscription": import("@withtyped/server").PathGuard<"/:tenantId/subscription", unknown, unknown, {
397
445
  status: "incomplete" | "incomplete_expired" | "trialing" | "active" | "past_due" | "canceled" | "unpaid" | "paused";
398
446
  planId: string;
399
447
  currentPeriodStart: Date;
400
448
  currentPeriodEnd: Date;
449
+ isEnterprisePlan: boolean;
401
450
  id?: string | undefined;
402
451
  upcomingInvoice?: {
403
452
  subtotal: number;
@@ -405,118 +454,140 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
405
454
  total: number;
406
455
  totalExcludingTax: number | null;
407
456
  } | null | undefined;
408
- isAddOnAvailable?: boolean | undefined;
409
- isAddOnVisibleToLegacyUsers?: boolean | undefined;
410
- }>;
411
- } & {
412
- "/tenants/:tenantId/subscription/quota": import("@withtyped/server").PathGuard<"/:tenantId/subscription/quota", unknown, unknown, {
413
- mauLimit: number | null;
414
- tokenLimit: number | null;
415
- applicationsLimit: number | null;
416
- machineToMachineLimit: number | null;
417
- resourcesLimit: number | null;
418
- scopesPerResourceLimit: number | null;
419
- socialConnectorsLimit: number | null;
420
- machineToMachineRolesLimit: number | null;
421
- scopesPerRoleLimit: number | null;
422
- hooksLimit: number | null;
423
- auditLogsRetentionDays: number | null;
424
- mfaEnabled: boolean;
425
- organizationsEnabled: boolean;
426
- thirdPartyApplicationsLimit: number | null;
427
- tenantMembersLimit: number | null;
428
- customJwtEnabled: boolean;
429
- subjectTokenEnabled: boolean;
430
- bringYourUiEnabled: boolean;
431
- userRolesLimit: number | null;
432
- enterpriseSsoLimit: number | null;
433
- }>;
434
- } & {
435
- "/tenants/:tenantId/subscription/usage": import("@withtyped/server").PathGuard<"/:tenantId/subscription/usage", unknown, unknown, {
436
- mauLimit: number;
437
- tokenLimit: number;
438
- applicationsLimit: number;
439
- machineToMachineLimit: number;
440
- resourcesLimit: number;
441
- scopesPerResourceLimit: number;
442
- socialConnectorsLimit: number;
443
- machineToMachineRolesLimit: number;
444
- scopesPerRoleLimit: number;
445
- hooksLimit: number;
446
- mfaEnabled: boolean;
447
- organizationsEnabled: boolean;
448
- thirdPartyApplicationsLimit: number;
449
- tenantMembersLimit: number;
450
- customJwtEnabled: boolean;
451
- subjectTokenEnabled: boolean;
452
- bringYourUiEnabled: boolean;
453
- userRolesLimit: number;
454
- enterpriseSsoLimit: number;
455
457
  }>;
456
- } & {
457
- "/tenants/:tenantId/subscription/usage/:entityName/scopes": import("@withtyped/server").PathGuard<"/:tenantId/subscription/usage/:entityName/scopes", {
458
- entityId?: string | undefined;
459
- }, unknown, Record<string, number>>;
460
458
  } & {
461
459
  "/tenants/:tenantId/subscription-usage": import("@withtyped/server").PathGuard<"/:tenantId/subscription-usage", unknown, unknown, {
462
460
  usage: {
463
- mauLimit: number;
464
- tokenLimit: number;
465
461
  applicationsLimit: number;
466
- machineToMachineLimit: number;
467
- resourcesLimit: number;
462
+ thirdPartyApplicationsLimit: number;
468
463
  scopesPerResourceLimit: number;
469
464
  socialConnectorsLimit: number;
465
+ userRolesLimit: number;
470
466
  machineToMachineRolesLimit: number;
471
467
  scopesPerRoleLimit: number;
472
468
  hooksLimit: number;
473
- mfaEnabled: boolean;
474
- organizationsEnabled: boolean;
475
- thirdPartyApplicationsLimit: number;
476
- tenantMembersLimit: number;
477
469
  customJwtEnabled: boolean;
478
470
  subjectTokenEnabled: boolean;
479
471
  bringYourUiEnabled: boolean;
480
- userRolesLimit: number;
472
+ collectUserProfileEnabled: boolean;
473
+ machineToMachineLimit: number;
474
+ resourcesLimit: number;
481
475
  enterpriseSsoLimit: number;
476
+ tenantMembersLimit: number;
477
+ mfaEnabled: boolean;
478
+ organizationsEnabled: boolean;
479
+ organizationsLimit: number;
480
+ securityFeaturesEnabled: boolean;
481
+ idpInitiatedSsoEnabled: boolean;
482
+ samlApplicationsLimit: number;
482
483
  };
483
484
  resources: Record<string, number>;
484
485
  roles: Record<string, number>;
485
486
  quota: {
487
+ auditLogsRetentionDays: number | null;
486
488
  mauLimit: number | null;
487
- tokenLimit: number | null;
488
489
  applicationsLimit: number | null;
489
- machineToMachineLimit: number | null;
490
- resourcesLimit: number | null;
490
+ thirdPartyApplicationsLimit: number | null;
491
491
  scopesPerResourceLimit: number | null;
492
492
  socialConnectorsLimit: number | null;
493
+ userRolesLimit: number | null;
493
494
  machineToMachineRolesLimit: number | null;
494
495
  scopesPerRoleLimit: number | null;
495
496
  hooksLimit: number | null;
496
- auditLogsRetentionDays: number | null;
497
+ customJwtEnabled: boolean;
498
+ subjectTokenEnabled: boolean;
499
+ bringYourUiEnabled: boolean;
500
+ collectUserProfileEnabled: boolean;
501
+ tokenLimit: number | null;
502
+ machineToMachineLimit: number | null;
503
+ resourcesLimit: number | null;
504
+ enterpriseSsoLimit: number | null;
505
+ tenantMembersLimit: number | null;
497
506
  mfaEnabled: boolean;
498
507
  organizationsEnabled: boolean;
508
+ organizationsLimit: number | null;
509
+ securityFeaturesEnabled: boolean;
510
+ idpInitiatedSsoEnabled: boolean;
511
+ samlApplicationsLimit: number | null;
512
+ };
513
+ basicQuota: {
514
+ auditLogsRetentionDays: number | null;
515
+ mauLimit: number | null;
516
+ applicationsLimit: number | null;
499
517
  thirdPartyApplicationsLimit: number | null;
500
- tenantMembersLimit: number | null;
518
+ scopesPerResourceLimit: number | null;
519
+ socialConnectorsLimit: number | null;
520
+ userRolesLimit: number | null;
521
+ machineToMachineRolesLimit: number | null;
522
+ scopesPerRoleLimit: number | null;
523
+ hooksLimit: number | null;
501
524
  customJwtEnabled: boolean;
502
525
  subjectTokenEnabled: boolean;
503
526
  bringYourUiEnabled: boolean;
504
- userRolesLimit: number | null;
527
+ collectUserProfileEnabled: boolean;
528
+ tokenLimit: number | null;
529
+ machineToMachineLimit: number | null;
530
+ resourcesLimit: number | null;
505
531
  enterpriseSsoLimit: number | null;
532
+ tenantMembersLimit: number | null;
533
+ mfaEnabled: boolean;
534
+ organizationsEnabled: boolean;
535
+ organizationsLimit: number | null;
536
+ securityFeaturesEnabled: boolean;
537
+ idpInitiatedSsoEnabled: boolean;
538
+ samlApplicationsLimit: number | null;
506
539
  };
507
- upcomingInvoice?: {
508
- subtotal: number;
509
- subtotalExcludingTax: number | null;
510
- total: number;
511
- totalExcludingTax: number | null;
512
- } | null | undefined;
513
540
  }>;
541
+ } & {
542
+ "/tenants/:tenantId/subscription/periodic-usage": import("@withtyped/server").PathGuard<"/:tenantId/subscription/periodic-usage", unknown, unknown, {
543
+ mauLimit: number;
544
+ tokenLimit: number;
545
+ }>;
546
+ } & {
547
+ "/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", {
548
+ id: string;
549
+ name: string | null;
550
+ createdAt: Date;
551
+ defaultPriceId: string | null;
552
+ unitPrice: number | null;
553
+ type: LogtoSkuType;
554
+ quota: {
555
+ auditLogsRetentionDays?: number | null | undefined;
556
+ mauLimit?: number | null | undefined;
557
+ applicationsLimit?: number | null | undefined;
558
+ thirdPartyApplicationsLimit?: number | null | undefined;
559
+ scopesPerResourceLimit?: number | null | undefined;
560
+ socialConnectorsLimit?: number | null | undefined;
561
+ userRolesLimit?: number | null | undefined;
562
+ machineToMachineRolesLimit?: number | null | undefined;
563
+ scopesPerRoleLimit?: number | null | undefined;
564
+ hooksLimit?: number | null | undefined;
565
+ customJwtEnabled?: boolean | undefined;
566
+ subjectTokenEnabled?: boolean | undefined;
567
+ bringYourUiEnabled?: boolean | undefined;
568
+ collectUserProfileEnabled?: boolean | undefined;
569
+ tokenLimit?: number | null | undefined;
570
+ machineToMachineLimit?: number | null | undefined;
571
+ resourcesLimit?: number | null | undefined;
572
+ enterpriseSsoLimit?: number | null | undefined;
573
+ tenantMembersLimit?: number | null | undefined;
574
+ mfaEnabled?: boolean | undefined;
575
+ organizationsEnabled?: boolean | undefined;
576
+ organizationsLimit?: number | null | undefined;
577
+ securityFeaturesEnabled?: boolean | undefined;
578
+ idpInitiatedSsoEnabled?: boolean | undefined;
579
+ samlApplicationsLimit?: number | null | undefined;
580
+ };
581
+ isDefault: boolean;
582
+ updatedAt: Date;
583
+ productId: string | null;
584
+ }>>>;
514
585
  } & {
515
586
  "/tenants/:tenantId/invoices": import("@withtyped/server").PathGuard<"/:tenantId/invoices", unknown, unknown, {
516
587
  invoices: {
517
- status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
518
588
  id: string;
519
589
  createdAt: Date;
590
+ status: "void" | "open" | "draft" | "paid" | "uncollectible" | null;
520
591
  updatedAt: Date;
521
592
  customerId: string | null;
522
593
  billingReason: string | null;
@@ -524,6 +595,7 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
524
595
  periodEnd: Date;
525
596
  amountDue: number;
526
597
  amountPaid: number;
598
+ basicSkuId: string | null;
527
599
  subscriptionId: string | null;
528
600
  hostedInvoiceUrl: string | null;
529
601
  invoicePdf: string | null;
@@ -531,18 +603,53 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
531
603
  skuId?: string | null | undefined;
532
604
  }[];
533
605
  }>;
606
+ } & {
607
+ "/tenants/:tenantId/available-skus": import("@withtyped/server").PathGuard<"/:tenantId/available-skus", {
608
+ type?: LogtoSkuType | undefined;
609
+ }, unknown, {
610
+ id: string;
611
+ name: string | null;
612
+ createdAt: Date;
613
+ defaultPriceId: string | null;
614
+ unitPrice: number | null;
615
+ type: LogtoSkuType;
616
+ quota: {
617
+ auditLogsRetentionDays?: number | null | undefined;
618
+ mauLimit?: number | null | undefined;
619
+ applicationsLimit?: number | null | undefined;
620
+ thirdPartyApplicationsLimit?: number | null | undefined;
621
+ scopesPerResourceLimit?: number | null | undefined;
622
+ socialConnectorsLimit?: number | null | undefined;
623
+ userRolesLimit?: number | null | undefined;
624
+ machineToMachineRolesLimit?: number | null | undefined;
625
+ scopesPerRoleLimit?: number | null | undefined;
626
+ hooksLimit?: number | null | undefined;
627
+ customJwtEnabled?: boolean | undefined;
628
+ subjectTokenEnabled?: boolean | undefined;
629
+ bringYourUiEnabled?: boolean | undefined;
630
+ collectUserProfileEnabled?: boolean | undefined;
631
+ tokenLimit?: number | null | undefined;
632
+ machineToMachineLimit?: number | null | undefined;
633
+ resourcesLimit?: number | null | undefined;
634
+ enterpriseSsoLimit?: number | null | undefined;
635
+ tenantMembersLimit?: number | null | undefined;
636
+ mfaEnabled?: boolean | undefined;
637
+ organizationsEnabled?: boolean | undefined;
638
+ organizationsLimit?: number | null | undefined;
639
+ securityFeaturesEnabled?: boolean | undefined;
640
+ idpInitiatedSsoEnabled?: boolean | undefined;
641
+ samlApplicationsLimit?: number | null | undefined;
642
+ };
643
+ isDefault: boolean;
644
+ updatedAt: Date;
645
+ productId: string | null;
646
+ }[]>;
534
647
  } & {
535
648
  "/tenants/:tenantId/invoices/:invoiceId/hosted-invoice-url": import("@withtyped/server").PathGuard<"/:tenantId/invoices/:invoiceId/hosted-invoice-url", unknown, unknown, {
536
649
  hostedInvoiceUrl: string;
537
650
  }>;
538
651
  };
539
652
  post: {
540
- "/tenants/my/subscription/item-updates": import("@withtyped/server").PathGuard<"/my/subscription/item-updates", unknown, {
541
- usageKey: "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "hooksLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled";
542
- }, {
543
- message: string;
544
- }>;
545
- } & {
546
653
  "/tenants/:tenantId/stripe-customer-portal": import("@withtyped/server").PathGuard<"/:tenantId/stripe-customer-portal", unknown, {
547
654
  callbackUrl?: string | undefined;
548
655
  }, {
@@ -568,11 +675,14 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
568
675
  post: {
569
676
  "/services/mails": import("@withtyped/server").PathGuard<"/mails", unknown, {
570
677
  data: {
571
- type: TemplateType | VerificationCodeType;
678
+ type: TemplateType;
572
679
  payload: {
573
- code?: string | undefined;
574
680
  link?: string | undefined;
575
- } & Record<string, string> & {
681
+ code?: string | undefined;
682
+ locale?: string | undefined;
683
+ } & {
684
+ [k: string]: unknown;
685
+ } & {
576
686
  senderName?: string | undefined;
577
687
  companyInformation?: string | undefined;
578
688
  appLogo?: string | undefined;
@@ -583,27 +693,30 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
583
693
  } & {
584
694
  "/services/send-sms": import("@withtyped/server").PathGuard<"/send-sms", unknown, {
585
695
  data: {
586
- type: TemplateType | VerificationCodeType;
696
+ type: TemplateType;
587
697
  to: string;
588
698
  payload: {
589
699
  code?: string | undefined;
590
700
  link?: string | undefined;
591
- } & Record<string, string>;
701
+ locale?: string | undefined;
702
+ } & {
703
+ [k: string]: unknown;
704
+ };
592
705
  };
593
706
  }, unknown>;
594
707
  } & {
595
708
  "/services/custom-jwt": import("@withtyped/server").PathGuard<"/custom-jwt", {
596
709
  isTest?: string | undefined;
597
710
  }, {
711
+ token: Record<string, Json>;
598
712
  context: Record<string, Json>;
599
- script: string;
600
713
  tokenType: LogtoJwtTokenKeyType.AccessToken;
601
- token: Record<string, Json>;
714
+ script: string;
602
715
  environmentVariables?: Record<string, string> | undefined;
603
716
  } | {
604
- script: string;
605
- tokenType: LogtoJwtTokenKeyType.ClientCredentials;
606
717
  token: Record<string, Json>;
718
+ tokenType: LogtoJwtTokenKeyType.ClientCredentials;
719
+ script: string;
607
720
  environmentVariables?: Record<string, string> | undefined;
608
721
  }, Record<string, unknown>>;
609
722
  };
@@ -628,96 +741,178 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
628
741
  patch: {};
629
742
  options: {};
630
743
  get: {
631
- "/subscription-plans": import("@withtyped/server").PathGuard<"/", unknown, unknown, {
744
+ "/skus": import("@withtyped/server").PathGuard<"/", {
745
+ type?: LogtoSkuType | undefined;
746
+ }, unknown, {
632
747
  id: string;
748
+ name: string | null;
633
749
  createdAt: Date;
634
- name: string;
750
+ defaultPriceId: string | null;
751
+ unitPrice: number | null;
752
+ type: LogtoSkuType;
753
+ quota: {
754
+ auditLogsRetentionDays?: number | null | undefined;
755
+ mauLimit?: number | null | undefined;
756
+ applicationsLimit?: number | null | undefined;
757
+ thirdPartyApplicationsLimit?: number | null | undefined;
758
+ scopesPerResourceLimit?: number | null | undefined;
759
+ socialConnectorsLimit?: number | null | undefined;
760
+ userRolesLimit?: number | null | undefined;
761
+ machineToMachineRolesLimit?: number | null | undefined;
762
+ scopesPerRoleLimit?: number | null | undefined;
763
+ hooksLimit?: number | null | undefined;
764
+ customJwtEnabled?: boolean | undefined;
765
+ subjectTokenEnabled?: boolean | undefined;
766
+ bringYourUiEnabled?: boolean | undefined;
767
+ collectUserProfileEnabled?: boolean | undefined;
768
+ tokenLimit?: number | null | undefined;
769
+ machineToMachineLimit?: number | null | undefined;
770
+ resourcesLimit?: number | null | undefined;
771
+ enterpriseSsoLimit?: number | null | undefined;
772
+ tenantMembersLimit?: number | null | undefined;
773
+ mfaEnabled?: boolean | undefined;
774
+ organizationsEnabled?: boolean | undefined;
775
+ organizationsLimit?: number | null | undefined;
776
+ securityFeaturesEnabled?: boolean | undefined;
777
+ idpInitiatedSsoEnabled?: boolean | undefined;
778
+ samlApplicationsLimit?: number | null | undefined;
779
+ };
780
+ isDefault: boolean;
635
781
  updatedAt: Date;
782
+ productId: string | null;
783
+ }[]>;
784
+ };
785
+ post: {
786
+ "/skus": import("@withtyped/server").PathGuard<"/", unknown, {
787
+ type: LogtoSkuType.AddOn;
636
788
  quota: {
789
+ tokenLimit?: number | null | undefined;
790
+ machineToMachineLimit?: number | null | undefined;
791
+ resourcesLimit?: number | null | undefined;
792
+ enterpriseSsoLimit?: number | null | undefined;
793
+ hooksLimit?: number | null | undefined;
794
+ tenantMembersLimit?: number | null | undefined;
795
+ mfaEnabled?: boolean | undefined;
796
+ organizationsEnabled?: boolean | undefined;
797
+ organizationsLimit?: number | null | undefined;
798
+ securityFeaturesEnabled?: boolean | undefined;
799
+ userRolesLimit?: number | null | undefined;
800
+ machineToMachineRolesLimit?: number | null | undefined;
801
+ thirdPartyApplicationsLimit?: number | null | undefined;
802
+ samlApplicationsLimit?: number | null | undefined;
803
+ auditLogsRetentionDays?: number | null | undefined;
804
+ mauLimit?: number | null | undefined;
805
+ applicationsLimit?: number | null | undefined;
806
+ scopesPerResourceLimit?: number | null | undefined;
807
+ socialConnectorsLimit?: number | null | undefined;
808
+ scopesPerRoleLimit?: number | null | undefined;
809
+ customJwtEnabled?: boolean | undefined;
810
+ subjectTokenEnabled?: boolean | undefined;
811
+ bringYourUiEnabled?: boolean | undefined;
812
+ collectUserProfileEnabled?: boolean | undefined;
813
+ idpInitiatedSsoEnabled?: boolean | undefined;
814
+ };
815
+ isDefault?: boolean | undefined;
816
+ } | {
817
+ type: LogtoSkuType.Basic;
818
+ quota: {
819
+ auditLogsRetentionDays: number | null;
637
820
  mauLimit: number | null;
638
- tokenLimit: number | null;
639
821
  applicationsLimit: number | null;
640
- machineToMachineLimit: number | null;
641
- resourcesLimit: number | null;
822
+ thirdPartyApplicationsLimit: number | null;
642
823
  scopesPerResourceLimit: number | null;
643
- customDomainEnabled: boolean;
644
- omniSignInEnabled: boolean;
645
- builtInEmailConnectorEnabled: boolean;
646
824
  socialConnectorsLimit: number | null;
647
- standardConnectorsLimit: number | null;
648
- rolesLimit: number | null;
825
+ userRolesLimit: number | null;
649
826
  machineToMachineRolesLimit: number | null;
650
827
  scopesPerRoleLimit: number | null;
651
828
  hooksLimit: number | null;
652
- auditLogsRetentionDays: number | null;
653
- mfaEnabled: boolean;
654
- organizationsEnabled: boolean;
655
- ssoEnabled: boolean;
656
- thirdPartyApplicationsLimit: number | null;
657
- tenantMembersLimit: number | null;
658
829
  customJwtEnabled: boolean;
659
830
  subjectTokenEnabled: boolean;
660
831
  bringYourUiEnabled: boolean;
832
+ collectUserProfileEnabled: boolean;
833
+ tokenLimit: number | null;
834
+ machineToMachineLimit: number | null;
835
+ resourcesLimit: number | null;
836
+ enterpriseSsoLimit: number | null;
837
+ tenantMembersLimit: number | null;
838
+ mfaEnabled: boolean;
839
+ organizationsEnabled: boolean;
840
+ organizationsLimit: number | null;
841
+ securityFeaturesEnabled: boolean;
842
+ idpInitiatedSsoEnabled: boolean;
843
+ samlApplicationsLimit: number | null;
661
844
  };
662
- stripeProducts: {
663
- type: "flat" | "tier1" | "tier2" | "tier3";
664
- id: string;
665
- name: string;
666
- price: {
667
- id: string;
668
- unitAmountDecimal: string;
669
- quantity?: 1 | undefined;
670
- unitAmount?: number | null | undefined;
671
- };
672
- description?: string | undefined;
673
- }[];
674
- }[]>;
675
- };
676
- post: {};
677
- put: {};
678
- delete: {};
679
- copy: {};
680
- head: {};
681
- }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
682
- patch: {};
683
- options: {};
684
- get: {
685
- "/skus": import("@withtyped/server").PathGuard<"/", {
686
- type?: LogtoSkuType | undefined;
687
- }, unknown, {
688
- type: LogtoSkuType;
845
+ addOnRelations: {
846
+ tokenLimit?: string | undefined;
847
+ machineToMachineLimit?: string | undefined;
848
+ resourcesLimit?: string | undefined;
849
+ enterpriseSsoLimit?: string | undefined;
850
+ tenantMembersLimit?: string | undefined;
851
+ mfaEnabled?: string | undefined;
852
+ organizationsLimit?: string | undefined;
853
+ securityFeaturesEnabled?: string | undefined;
854
+ };
855
+ isDefault?: boolean | undefined;
856
+ }, {
689
857
  id: string;
690
- name: string | null;
858
+ createdAt: Date;
859
+ type: LogtoSkuType;
860
+ isDefault: boolean;
861
+ updatedAt: Date;
691
862
  quota: {
863
+ auditLogsRetentionDays?: number | null | undefined;
692
864
  mauLimit?: number | null | undefined;
693
- tokenLimit?: number | null | undefined;
694
865
  applicationsLimit?: number | null | undefined;
695
- machineToMachineLimit?: number | null | undefined;
696
- resourcesLimit?: number | null | undefined;
866
+ thirdPartyApplicationsLimit?: number | null | undefined;
697
867
  scopesPerResourceLimit?: number | null | undefined;
698
868
  socialConnectorsLimit?: number | null | undefined;
869
+ userRolesLimit?: number | null | undefined;
699
870
  machineToMachineRolesLimit?: number | null | undefined;
700
871
  scopesPerRoleLimit?: number | null | undefined;
701
872
  hooksLimit?: number | null | undefined;
702
- auditLogsRetentionDays?: number | null | undefined;
703
- mfaEnabled?: boolean | undefined;
704
- organizationsEnabled?: boolean | undefined;
705
- thirdPartyApplicationsLimit?: number | null | undefined;
706
- tenantMembersLimit?: number | null | undefined;
707
873
  customJwtEnabled?: boolean | undefined;
708
874
  subjectTokenEnabled?: boolean | undefined;
709
875
  bringYourUiEnabled?: boolean | undefined;
710
- userRolesLimit?: number | null | undefined;
876
+ collectUserProfileEnabled?: boolean | undefined;
877
+ tokenLimit?: number | null | undefined;
878
+ machineToMachineLimit?: number | null | undefined;
879
+ resourcesLimit?: number | null | undefined;
711
880
  enterpriseSsoLimit?: number | null | undefined;
881
+ tenantMembersLimit?: number | null | undefined;
882
+ mfaEnabled?: boolean | undefined;
883
+ organizationsEnabled?: boolean | undefined;
884
+ organizationsLimit?: number | null | undefined;
885
+ securityFeaturesEnabled?: boolean | undefined;
886
+ idpInitiatedSsoEnabled?: boolean | undefined;
887
+ samlApplicationsLimit?: number | null | undefined;
712
888
  };
713
- createdAt: Date;
714
- updatedAt: Date;
715
- unitPrice: number | null;
716
- }[]>;
889
+ }>;
890
+ } & {
891
+ "/skus/:skuId/products": import("@withtyped/server").PathGuard<"/:skuId/products", {
892
+ isOneTime?: string | undefined;
893
+ }, {
894
+ name: string;
895
+ unitPrice: number;
896
+ }, {
897
+ productId: string;
898
+ }>;
899
+ } & {
900
+ "/skus/basic-sku-usage-add-on-relations": import("@withtyped/server").PathGuard<"/basic-sku-usage-add-on-relations", unknown, {
901
+ basicSkuId: string;
902
+ usageKey: "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "hooksLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "userRolesLimit" | "machineToMachineRolesLimit" | "thirdPartyApplicationsLimit" | "samlApplicationsLimit";
903
+ addOnSkuId: string;
904
+ }, {
905
+ basicSkuId: string;
906
+ usageKey: "tokenLimit" | "machineToMachineLimit" | "resourcesLimit" | "enterpriseSsoLimit" | "hooksLimit" | "tenantMembersLimit" | "mfaEnabled" | "organizationsEnabled" | "organizationsLimit" | "securityFeaturesEnabled" | "userRolesLimit" | "machineToMachineRolesLimit" | "thirdPartyApplicationsLimit" | "samlApplicationsLimit";
907
+ addOnSkuId: string;
908
+ }>;
717
909
  };
718
- post: {};
719
910
  put: {};
720
- delete: {};
911
+ delete: {
912
+ "/skus/:skuId": import("@withtyped/server").PathGuard<"/:skuId", unknown, unknown, unknown>;
913
+ } & {
914
+ "/skus/basic-sku-usage-add-on-relations/:basicSkuId/:usageKey": import("@withtyped/server").PathGuard<"/basic-sku-usage-add-on-relations/:basicSkuId/:usageKey", unknown, unknown, unknown>;
915
+ };
721
916
  copy: {};
722
917
  head: {};
723
918
  }, "/api">>, import("@withtyped/server").RoutesWithPrefix<{
@@ -731,19 +926,18 @@ declare const router: import("@withtyped/server").Router<RequestContext, WithAut
731
926
  status: "open" | "complete" | "expired";
732
927
  tenantId: string | null;
733
928
  updatedAt: Date;
734
- planId: string;
735
929
  skuId: string | null;
930
+ planId: string | null;
736
931
  }>;
737
932
  };
738
933
  post: {
739
934
  "/checkout-session": import("@withtyped/server").PathGuard<"/", unknown, {
740
- planId: string;
741
935
  successCallbackUrl: string;
742
936
  tenantId?: string | undefined;
743
937
  skuId?: string | undefined;
744
938
  tenantName?: string | undefined;
745
939
  tenantTag?: TenantTag | undefined;
746
- tenantRegionName?: RegionName | undefined;
940
+ tenantRegionName?: string | undefined;
747
941
  cancelCallbackUrl?: string | undefined;
748
942
  }, {
749
943
  sessionId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/cloud",
3
- "version": "0.2.5-61f7709",
3
+ "version": "0.2.5-6279e2e",
4
4
  "description": "Logto Cloud service.",
5
5
  "main": "build/index.js",
6
6
  "author": "Silverhand Inc. <contact@silverhand.io>",
@@ -21,7 +21,7 @@
21
21
  "@types/accepts": "^1.3.5",
22
22
  "@types/http-proxy": "^1.17.9",
23
23
  "@types/mime-types": "^2.1.1",
24
- "@types/node": "^20.0.0",
24
+ "@types/node": "^22.14.0",
25
25
  "@types/yargs": "^17.0.24",
26
26
  "dts-bundle-generator": "^9.3.1",
27
27
  "eslint": "^8.57.0",
@@ -29,11 +29,11 @@
29
29
  "nodemon": "^3.0.0",
30
30
  "prettier": "^3.0.0",
31
31
  "typescript": "^5.3.3",
32
- "vite-tsconfig-paths": "^4.3.1",
33
- "vitest": "^2.0.0"
32
+ "vite-tsconfig-paths": "^5.0.0",
33
+ "vitest": "^3.1.1"
34
34
  },
35
35
  "engines": {
36
- "node": "^20.9.0"
36
+ "node": "^22.14.0"
37
37
  },
38
38
  "eslintConfig": {
39
39
  "extends": "@silverhand",
@@ -49,8 +49,8 @@
49
49
  "access": "public"
50
50
  },
51
51
  "dependencies": {
52
- "@silverhand/essentials": "^2.9.1",
53
- "@withtyped/server": "^0.13.6"
52
+ "@silverhand/essentials": "^2.9.2",
53
+ "@withtyped/server": "^0.14.0"
54
54
  },
55
55
  "scripts": {
56
56
  "precommit": "lint-staged",
@@ -63,6 +63,7 @@
63
63
  "start": "NODE_ENV=production node .",
64
64
  "test": "vitest && pnpm build:lib && pnpm test:types",
65
65
  "test:types": "tsc -p tsconfig.test.types.json",
66
+ "test:only": "vitest",
66
67
  "cli": "node ./build/cli/index.js"
67
68
  }
68
69
  }