@logto/api 1.38.0 → 1.39.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.
@@ -2043,6 +2043,26 @@ export interface paths {
2043
2043
  patch?: never;
2044
2044
  trace?: never;
2045
2045
  };
2046
+ "/api/domains/cleanup": {
2047
+ parameters: {
2048
+ query?: never;
2049
+ header?: never;
2050
+ path?: never;
2051
+ cookie?: never;
2052
+ };
2053
+ get?: never;
2054
+ put?: never;
2055
+ /**
2056
+ * Cleanup stale domains
2057
+ * @description Clean up custom domains that have been inactive (not verified) for a specified number of days. This uses Cloudflare as the source of truth to determine domain activity.
2058
+ */
2059
+ post: operations["CleanupDomains"];
2060
+ delete?: never;
2061
+ options?: never;
2062
+ head?: never;
2063
+ patch?: never;
2064
+ trace?: never;
2065
+ };
2046
2066
  "/api/organization-roles/{id}": {
2047
2067
  parameters: {
2048
2068
  query?: never;
@@ -6352,6 +6372,9 @@ export interface operations {
6352
6372
  createdAt: number;
6353
6373
  /** @enum {string} */
6354
6374
  signingKeyAlgorithm?: "RSA" | "EC";
6375
+ /** @enum {string} */
6376
+ status?: "Next" | "Current" | "Previous";
6377
+ effectiveAt?: number;
6355
6378
  }[];
6356
6379
  };
6357
6380
  };
@@ -6456,6 +6479,7 @@ export interface operations {
6456
6479
  * @enum {string}
6457
6480
  */
6458
6481
  signingKeyAlgorithm?: "RSA" | "EC";
6482
+ rotationGracePeriod?: number;
6459
6483
  };
6460
6484
  };
6461
6485
  };
@@ -6471,6 +6495,9 @@ export interface operations {
6471
6495
  createdAt: number;
6472
6496
  /** @enum {string} */
6473
6497
  signingKeyAlgorithm?: "RSA" | "EC";
6498
+ /** @enum {string} */
6499
+ status?: "Next" | "Current" | "Previous";
6500
+ effectiveAt?: number;
6474
6501
  }[];
6475
6502
  };
6476
6503
  };
@@ -6818,6 +6845,7 @@ export interface operations {
6818
6845
  createdAt?: number;
6819
6846
  };
6820
6847
  };
6848
+ blockIssuanceOnError?: boolean;
6821
6849
  tokenSample?: {
6822
6850
  jti?: string;
6823
6851
  aud?: string | string[];
@@ -6901,6 +6929,7 @@ export interface operations {
6901
6929
  createdAt?: number;
6902
6930
  };
6903
6931
  };
6932
+ blockIssuanceOnError?: boolean;
6904
6933
  tokenSample?: {
6905
6934
  jti?: string;
6906
6935
  aud?: string | string[];
@@ -6963,6 +6992,8 @@ export interface operations {
6963
6992
  contextSample?: unknown;
6964
6993
  /** @description The sample raw token payload for the JWT customizer script testing purpose. */
6965
6994
  tokenSample?: unknown;
6995
+ /** @description Whether to block token issuance when the JWT customizer script fails. */
6996
+ blockIssuanceOnError?: unknown;
6966
6997
  };
6967
6998
  };
6968
6999
  };
@@ -7269,6 +7300,7 @@ export interface operations {
7269
7300
  createdAt?: number;
7270
7301
  };
7271
7302
  };
7303
+ blockIssuanceOnError?: boolean;
7272
7304
  tokenSample?: {
7273
7305
  jti?: string;
7274
7306
  aud?: string | string[];
@@ -7352,6 +7384,7 @@ export interface operations {
7352
7384
  createdAt?: number;
7353
7385
  };
7354
7386
  };
7387
+ blockIssuanceOnError?: boolean;
7355
7388
  tokenSample?: {
7356
7389
  jti?: string;
7357
7390
  aud?: string | string[];
@@ -7665,6 +7698,7 @@ export interface operations {
7665
7698
  createdAt?: number;
7666
7699
  };
7667
7700
  };
7701
+ blockIssuanceOnError?: boolean;
7668
7702
  tokenSample?: {
7669
7703
  jti?: string;
7670
7704
  aud?: string | string[];
@@ -7748,6 +7782,7 @@ export interface operations {
7748
7782
  createdAt?: number;
7749
7783
  };
7750
7784
  };
7785
+ blockIssuanceOnError?: boolean;
7751
7786
  tokenSample?: {
7752
7787
  jti?: string;
7753
7788
  aud?: string | string[];
@@ -7852,6 +7887,8 @@ export interface operations {
7852
7887
  contextSample?: unknown;
7853
7888
  /** @description The sample raw token payload for the JWT customizer script testing purpose. */
7854
7889
  tokenSample?: unknown;
7890
+ /** @description Whether to block token issuance when the JWT customizer script fails. */
7891
+ blockIssuanceOnError?: unknown;
7855
7892
  };
7856
7893
  };
7857
7894
  };
@@ -8158,6 +8195,7 @@ export interface operations {
8158
8195
  createdAt?: number;
8159
8196
  };
8160
8197
  };
8198
+ blockIssuanceOnError?: boolean;
8161
8199
  tokenSample?: {
8162
8200
  jti?: string;
8163
8201
  aud?: string | string[];
@@ -8241,6 +8279,7 @@ export interface operations {
8241
8279
  createdAt?: number;
8242
8280
  };
8243
8281
  };
8282
+ blockIssuanceOnError?: boolean;
8244
8283
  tokenSample?: {
8245
8284
  jti?: string;
8246
8285
  aud?: string | string[];
@@ -8596,6 +8635,7 @@ export interface operations {
8596
8635
  createdAt?: number;
8597
8636
  };
8598
8637
  };
8638
+ blockIssuanceOnError?: boolean;
8599
8639
  tokenSample?: {
8600
8640
  jti?: string;
8601
8641
  aud?: string | string[];
@@ -8683,6 +8723,7 @@ export interface operations {
8683
8723
  createdAt?: number;
8684
8724
  };
8685
8725
  };
8726
+ blockIssuanceOnError?: boolean;
8686
8727
  tokenSample?: {
8687
8728
  jti?: string;
8688
8729
  aud?: string | string[];
@@ -11134,6 +11175,9 @@ export interface operations {
11134
11175
  showPasskeyButton?: boolean;
11135
11176
  allowAutofill?: boolean;
11136
11177
  };
11178
+ signUpProfileFields: {
11179
+ name: string;
11180
+ }[] | null;
11137
11181
  };
11138
11182
  };
11139
11183
  };
@@ -11305,6 +11349,9 @@ export interface operations {
11305
11349
  showPasskeyButton?: boolean;
11306
11350
  allowAutofill?: boolean;
11307
11351
  };
11352
+ signUpProfileFields?: {
11353
+ name: string;
11354
+ }[] | null;
11308
11355
  termsOfUseUrl?: (string | null) | string;
11309
11356
  privacyPolicyUrl?: (string | null) | string;
11310
11357
  /** @description The support email address to display on the error pages. */
@@ -11443,6 +11490,9 @@ export interface operations {
11443
11490
  showPasskeyButton?: boolean;
11444
11491
  allowAutofill?: boolean;
11445
11492
  };
11493
+ signUpProfileFields: {
11494
+ name: string;
11495
+ }[] | null;
11446
11496
  };
11447
11497
  };
11448
11498
  };
@@ -17575,6 +17625,59 @@ export interface operations {
17575
17625
  };
17576
17626
  };
17577
17627
  };
17628
+ CleanupDomains: {
17629
+ parameters: {
17630
+ query?: never;
17631
+ header?: never;
17632
+ path?: never;
17633
+ cookie?: never;
17634
+ };
17635
+ requestBody: {
17636
+ content: {
17637
+ "application/json": {
17638
+ /** @description The number of days a domain must be inactive before it is considered stale and eligible for cleanup. */
17639
+ staleDays: number;
17640
+ };
17641
+ };
17642
+ };
17643
+ responses: {
17644
+ /** @description The cleanup result summary. */
17645
+ 200: {
17646
+ headers: {
17647
+ [name: string]: unknown;
17648
+ };
17649
+ content: {
17650
+ "application/json": {
17651
+ scannedCount: number;
17652
+ deletedCount: number;
17653
+ skippedActiveCount: number;
17654
+ failedCount: number;
17655
+ };
17656
+ };
17657
+ };
17658
+ /** @description Bad Request */
17659
+ 400: {
17660
+ headers: {
17661
+ [name: string]: unknown;
17662
+ };
17663
+ content?: never;
17664
+ };
17665
+ /** @description Unauthorized */
17666
+ 401: {
17667
+ headers: {
17668
+ [name: string]: unknown;
17669
+ };
17670
+ content?: never;
17671
+ };
17672
+ /** @description Forbidden */
17673
+ 403: {
17674
+ headers: {
17675
+ [name: string]: unknown;
17676
+ };
17677
+ content?: never;
17678
+ };
17679
+ };
17680
+ };
17578
17681
  GetOrganizationRole: {
17579
17682
  parameters: {
17580
17683
  query?: never;
@@ -19672,7 +19775,10 @@ export interface operations {
19672
19775
  [name: string]: unknown;
19673
19776
  };
19674
19777
  content: {
19675
- "application/json": unknown;
19778
+ "application/json": {
19779
+ /** @description An array of user IDs processed from the request. This may include IDs that were already members of the organization. */
19780
+ userIds: string[];
19781
+ };
19676
19782
  };
19677
19783
  };
19678
19784
  /** @description Bad Request */
@@ -19977,7 +20083,10 @@ export interface operations {
19977
20083
  [name: string]: unknown;
19978
20084
  };
19979
20085
  content: {
19980
- "application/json": unknown;
20086
+ "application/json": {
20087
+ /** @description An array of organization role IDs that were assigned to the user, deduplicated and resolved from any provided role names. */
20088
+ organizationRoleIds: string[];
20089
+ };
19981
20090
  };
19982
20091
  };
19983
20092
  /** @description Bad Request */
@@ -21974,6 +22083,8 @@ export interface operations {
21974
22083
  session?: "Off" | "ReadOnly" | "Edit";
21975
22084
  };
21976
22085
  webauthnRelatedOrigins: string[];
22086
+ deleteAccountUrl: string | null;
22087
+ customCss: string | null;
21977
22088
  };
21978
22089
  };
21979
22090
  };
@@ -22032,6 +22143,9 @@ export interface operations {
22032
22143
  };
22033
22144
  /** @description The allowed domains for webauthn. */
22034
22145
  webauthnRelatedOrigins?: string[];
22146
+ /** @description The custom endpoint URL for account deletion. */
22147
+ deleteAccountUrl?: Record<string, never> | null;
22148
+ customCss?: string | null;
22035
22149
  };
22036
22150
  };
22037
22151
  };
@@ -22071,6 +22185,8 @@ export interface operations {
22071
22185
  session?: "Off" | "ReadOnly" | "Edit";
22072
22186
  };
22073
22187
  webauthnRelatedOrigins: string[];
22188
+ deleteAccountUrl: string | null;
22189
+ customCss: string | null;
22074
22190
  };
22075
22191
  };
22076
22192
  };
@@ -25085,6 +25201,9 @@ export interface operations {
25085
25201
  showPasskeyButton?: boolean;
25086
25202
  allowAutofill?: boolean;
25087
25203
  };
25204
+ signUpProfileFields: {
25205
+ name: string;
25206
+ }[] | null;
25088
25207
  socialConnectors: {
25089
25208
  id: string;
25090
25209
  target: string;
@@ -25357,6 +25476,9 @@ export interface operations {
25357
25476
  showPasskeyButton?: boolean;
25358
25477
  allowAutofill?: boolean;
25359
25478
  };
25479
+ signUpProfileFields: {
25480
+ name: string;
25481
+ }[] | null;
25360
25482
  socialConnectors: {
25361
25483
  id: string;
25362
25484
  target: string;
@@ -25502,6 +25624,8 @@ export interface operations {
25502
25624
  session?: "Off" | "ReadOnly" | "Edit";
25503
25625
  };
25504
25626
  webauthnRelatedOrigins: string[];
25627
+ deleteAccountUrl: string | null;
25628
+ customCss: string | null;
25505
25629
  };
25506
25630
  };
25507
25631
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/api",
3
- "version": "1.38.0",
3
+ "version": "1.39.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",