@logto/api 1.44.0 → 1.45.0

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.
@@ -3165,6 +3165,30 @@ export interface paths {
3165
3165
  patch?: never;
3166
3166
  trace?: never;
3167
3167
  };
3168
+ "/api/systems/license": {
3169
+ parameters: {
3170
+ query?: never;
3171
+ header?: never;
3172
+ path?: never;
3173
+ cookie?: never;
3174
+ };
3175
+ /**
3176
+ * Get the installed license.
3177
+ * @description Get the license installed on this self-hosted deployment, i.e. the plan it grants, the entitlements it unlocks, its expiration, and its refresh/grace status. The license key itself is never returned. Returns 404 when no license is installed, and 501 on Logto Cloud.
3178
+ */
3179
+ get: operations["GetSystemLicense"];
3180
+ /**
3181
+ * Install a license.
3182
+ * @description Install a license key on this self-hosted deployment, replacing the installed license if there is one. The key's signature is verified against the public key built into Logto before it is saved, and a key past its expiration is rejected as a stale copy. Returns 501 on Logto Cloud.
3183
+ */
3184
+ put: operations["InstallSystemLicense"];
3185
+ post?: never;
3186
+ delete?: never;
3187
+ options?: never;
3188
+ head?: never;
3189
+ patch?: never;
3190
+ trace?: never;
3191
+ };
3168
3192
  "/api/subject-tokens": {
3169
3193
  parameters: {
3170
3194
  query?: never;
@@ -11826,6 +11850,8 @@ export interface operations {
11826
11850
  query?: {
11827
11851
  /** @description If it's provided with a truthy value (`true`, `1`, `yes`), the scopes of each resource will be included in the response. */
11828
11852
  includeScopes?: string;
11853
+ /** @description If it's provided with a truthy value (`true`, `1`, `yes`), Logto Management API resources will be excluded from the response. */
11854
+ excludeManagementApis?: string;
11829
11855
  /** @description Page number (starts from 1). */
11830
11856
  page?: number;
11831
11857
  /** @description Entries per page. */
@@ -13183,7 +13209,7 @@ export interface operations {
13183
13209
  };
13184
13210
  content?: never;
13185
13211
  };
13186
- /** @description Forbidden */
13212
+ /** @description Bring your UI is not available under the current entitlements, including when the self-hosted license grace period has ended. */
13187
13213
  403: {
13188
13214
  headers: {
13189
13215
  [name: string]: unknown;
@@ -24453,6 +24479,126 @@ export interface operations {
24453
24479
  };
24454
24480
  };
24455
24481
  };
24482
+ GetSystemLicense: {
24483
+ parameters: {
24484
+ query?: never;
24485
+ header?: never;
24486
+ path?: never;
24487
+ cookie?: never;
24488
+ };
24489
+ requestBody?: never;
24490
+ responses: {
24491
+ /** @description The installed license. */
24492
+ 200: {
24493
+ headers: {
24494
+ [name: string]: unknown;
24495
+ };
24496
+ content: {
24497
+ "application/json": {
24498
+ /** @enum {string} */
24499
+ plan: "self-hosted-pro" | "self-hosted-enterprise";
24500
+ /** @enum {string} */
24501
+ env: "production" | "non-production";
24502
+ quota: {
24503
+ hideLogtoBranding: boolean;
24504
+ bringYourUi: boolean;
24505
+ idpInitiatedSso: boolean;
24506
+ consoleCollaboration: boolean;
24507
+ mandatoryMfa: boolean;
24508
+ hostedEmail: boolean;
24509
+ samlApplicationsLimit: number | null;
24510
+ };
24511
+ expiresAt: string;
24512
+ installedAt: string;
24513
+ lastRefreshedAt: string;
24514
+ graceEndsAt: string;
24515
+ refusalReason?: string;
24516
+ };
24517
+ };
24518
+ };
24519
+ /** @description Unauthorized */
24520
+ 401: {
24521
+ headers: {
24522
+ [name: string]: unknown;
24523
+ };
24524
+ content?: never;
24525
+ };
24526
+ /** @description Forbidden */
24527
+ 403: {
24528
+ headers: {
24529
+ [name: string]: unknown;
24530
+ };
24531
+ content?: never;
24532
+ };
24533
+ /** @description No license is installed on this deployment. */
24534
+ 404: {
24535
+ headers: {
24536
+ [name: string]: unknown;
24537
+ };
24538
+ content?: never;
24539
+ };
24540
+ /** @description Licenses are only available on self-hosted deployments. */
24541
+ 501: {
24542
+ headers: {
24543
+ [name: string]: unknown;
24544
+ };
24545
+ content?: never;
24546
+ };
24547
+ };
24548
+ };
24549
+ InstallSystemLicense: {
24550
+ parameters: {
24551
+ query?: never;
24552
+ header?: never;
24553
+ path?: never;
24554
+ cookie?: never;
24555
+ };
24556
+ requestBody: {
24557
+ content: {
24558
+ "application/json": {
24559
+ /** @description The license key to install, as issued by Logto Cloud. */
24560
+ license: string;
24561
+ };
24562
+ };
24563
+ };
24564
+ responses: {
24565
+ /** @description The license has been installed. */
24566
+ 204: {
24567
+ headers: {
24568
+ [name: string]: unknown;
24569
+ };
24570
+ content?: never;
24571
+ };
24572
+ /** @description The license key is invalid or has been tampered with, or it has expired. */
24573
+ 400: {
24574
+ headers: {
24575
+ [name: string]: unknown;
24576
+ };
24577
+ content?: never;
24578
+ };
24579
+ /** @description Unauthorized */
24580
+ 401: {
24581
+ headers: {
24582
+ [name: string]: unknown;
24583
+ };
24584
+ content?: never;
24585
+ };
24586
+ /** @description Forbidden */
24587
+ 403: {
24588
+ headers: {
24589
+ [name: string]: unknown;
24590
+ };
24591
+ content?: never;
24592
+ };
24593
+ /** @description Licenses are only available on self-hosted deployments. */
24594
+ 501: {
24595
+ headers: {
24596
+ [name: string]: unknown;
24597
+ };
24598
+ content?: never;
24599
+ };
24600
+ };
24601
+ };
24456
24602
  CreateSubjectToken: {
24457
24603
  parameters: {
24458
24604
  query?: never;
@@ -28702,6 +28848,13 @@ export interface operations {
28702
28848
  };
28703
28849
  content?: never;
28704
28850
  };
28851
+ /** @description IdP-initiated SSO is not available on this self-hosted deployment because the installed license does not grant it. */
28852
+ 403: {
28853
+ headers: {
28854
+ [name: string]: unknown;
28855
+ };
28856
+ content?: never;
28857
+ };
28705
28858
  /** @description Invalid SSO connector ID or SSO connector authentication session not found. */
28706
28859
  404: {
28707
28860
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/api",
3
- "version": "1.44.0",
3
+ "version": "1.45.0",
4
4
  "description": "Logto API types and clients.",
5
5
  "author": "Silverhand Inc. <contact@silverhand.io>",
6
6
  "homepage": "https://github.com/logto-io/logto#readme",