@logto/api 1.30.0-beta.0 → 1.30.1

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.
@@ -1090,7 +1090,11 @@ export interface paths {
1090
1090
  path?: never;
1091
1091
  cookie?: never;
1092
1092
  };
1093
- get?: never;
1093
+ /**
1094
+ * Retrieve a user's social identity and associated token storage .
1095
+ * @description This API retrieves the social identity and its associated token set for the specified user from the Logto Secret Vault. The token set will only be available if token storage is enabled for the corresponding social connector.
1096
+ */
1097
+ get: operations["GetUserIdentity"];
1094
1098
  /**
1095
1099
  * Update social identity of user
1096
1100
  * @description Directly update a social identity of the user.
@@ -1243,6 +1247,46 @@ export interface paths {
1243
1247
  patch: operations["UpdateUserPersonalAccessToken"];
1244
1248
  trace?: never;
1245
1249
  };
1250
+ "/api/users/{userId}/sso-identities/{ssoConnectorId}": {
1251
+ parameters: {
1252
+ query?: never;
1253
+ header?: never;
1254
+ path?: never;
1255
+ cookie?: never;
1256
+ };
1257
+ /**
1258
+ * Retrieve a user's enterprise SSO identity and associated token secret (if token storage is enabled).
1259
+ * @description This API retrieves the user's enterprise SSO identity and associated token set record from the Logto Secret Vault. The token set will only be available if token storage is enabled for the corresponding SSO connector.
1260
+ */
1261
+ get: operations["GetUserSsoIdentity"];
1262
+ put?: never;
1263
+ post?: never;
1264
+ delete?: never;
1265
+ options?: never;
1266
+ head?: never;
1267
+ patch?: never;
1268
+ trace?: never;
1269
+ };
1270
+ "/api/users/{userId}/all-identities": {
1271
+ parameters: {
1272
+ query?: never;
1273
+ header?: never;
1274
+ path?: never;
1275
+ cookie?: never;
1276
+ };
1277
+ /**
1278
+ * Retrieve social identities, enterprise SSO identities and associated token secret (if token storage is enabled) for a user.
1279
+ * @description This API retrieves all identities (social and enterprise SSO) for a user, along with their associated token set records from the Logto Secret Vault. The token sets will only be available if token storage is enabled for the corresponding identity connector.
1280
+ */
1281
+ get: operations["ListUserAllIdentities"];
1282
+ put?: never;
1283
+ post?: never;
1284
+ delete?: never;
1285
+ options?: never;
1286
+ head?: never;
1287
+ patch?: never;
1288
+ trace?: never;
1289
+ };
1246
1290
  "/api/logs": {
1247
1291
  parameters: {
1248
1292
  query?: never;
@@ -2995,6 +3039,26 @@ export interface paths {
2995
3039
  patch?: never;
2996
3040
  trace?: never;
2997
3041
  };
3042
+ "/api/secrets/{id}": {
3043
+ parameters: {
3044
+ query?: never;
3045
+ header?: never;
3046
+ path?: never;
3047
+ cookie?: never;
3048
+ };
3049
+ get?: never;
3050
+ put?: never;
3051
+ post?: never;
3052
+ /**
3053
+ * Delete secret
3054
+ * @description Delete a secret by its ID.
3055
+ */
3056
+ delete: operations["DeleteSecret"];
3057
+ options?: never;
3058
+ head?: never;
3059
+ patch?: never;
3060
+ trace?: never;
3061
+ };
2998
3062
  "/api/.well-known/sign-in-exp": {
2999
3063
  parameters: {
3000
3064
  query?: never;
@@ -6089,7 +6153,7 @@ export interface operations {
6089
6153
  /** @description arbitrary */
6090
6154
  detail: Record<string, never>;
6091
6155
  }[];
6092
- mfaVerificationFactors?: ("Totp" | "WebAuthn" | "BackupCode")[];
6156
+ mfaVerificationFactors?: ("Totp" | "WebAuthn" | "BackupCode" | "EmailVerificationCode" | "PhoneVerificationCode")[];
6093
6157
  roles?: {
6094
6158
  id: string;
6095
6159
  name: string;
@@ -6381,7 +6445,7 @@ export interface operations {
6381
6445
  /** @description arbitrary */
6382
6446
  detail: Record<string, never>;
6383
6447
  }[];
6384
- mfaVerificationFactors?: ("Totp" | "WebAuthn" | "BackupCode")[];
6448
+ mfaVerificationFactors?: ("Totp" | "WebAuthn" | "BackupCode" | "EmailVerificationCode" | "PhoneVerificationCode")[];
6385
6449
  roles?: {
6386
6450
  id: string;
6387
6451
  name: string;
@@ -6618,7 +6682,7 @@ export interface operations {
6618
6682
  /** @description arbitrary */
6619
6683
  detail: Record<string, never>;
6620
6684
  }[];
6621
- mfaVerificationFactors?: ("Totp" | "WebAuthn" | "BackupCode")[];
6685
+ mfaVerificationFactors?: ("Totp" | "WebAuthn" | "BackupCode" | "EmailVerificationCode" | "PhoneVerificationCode")[];
6622
6686
  roles?: {
6623
6687
  id: string;
6624
6688
  name: string;
@@ -6952,7 +7016,7 @@ export interface operations {
6952
7016
  /** @description arbitrary */
6953
7017
  detail: Record<string, never>;
6954
7018
  }[];
6955
- mfaVerificationFactors?: ("Totp" | "WebAuthn" | "BackupCode")[];
7019
+ mfaVerificationFactors?: ("Totp" | "WebAuthn" | "BackupCode" | "EmailVerificationCode" | "PhoneVerificationCode")[];
6956
7020
  roles?: {
6957
7021
  id: string;
6958
7022
  name: string;
@@ -7231,7 +7295,7 @@ export interface operations {
7231
7295
  /** @description arbitrary */
7232
7296
  detail: Record<string, never>;
7233
7297
  }[];
7234
- mfaVerificationFactors?: ("Totp" | "WebAuthn" | "BackupCode")[];
7298
+ mfaVerificationFactors?: ("Totp" | "WebAuthn" | "BackupCode" | "EmailVerificationCode" | "PhoneVerificationCode")[];
7235
7299
  roles?: {
7236
7300
  id: string;
7237
7301
  name: string;
@@ -7521,7 +7585,7 @@ export interface operations {
7521
7585
  /** @description arbitrary */
7522
7586
  detail: Record<string, never>;
7523
7587
  }[];
7524
- mfaVerificationFactors?: ("Totp" | "WebAuthn" | "BackupCode")[];
7588
+ mfaVerificationFactors?: ("Totp" | "WebAuthn" | "BackupCode" | "EmailVerificationCode" | "PhoneVerificationCode")[];
7525
7589
  roles?: {
7526
7590
  id: string;
7527
7591
  name: string;
@@ -7744,6 +7808,7 @@ export interface operations {
7744
7808
  "application/json": {
7745
7809
  id: string;
7746
7810
  syncProfile: boolean;
7811
+ enableTokenStorage: boolean;
7747
7812
  /** @description arbitrary */
7748
7813
  config: Record<string, never>;
7749
7814
  metadata: {
@@ -7784,6 +7849,7 @@ export interface operations {
7784
7849
  description?: string;
7785
7850
  tooltip?: string;
7786
7851
  isConfidential?: boolean;
7852
+ isDevFeature?: boolean;
7787
7853
  } | {
7788
7854
  /** Format: "MultiSelect" */
7789
7855
  type: string;
@@ -7804,6 +7870,7 @@ export interface operations {
7804
7870
  description?: string;
7805
7871
  tooltip?: string;
7806
7872
  isConfidential?: boolean;
7873
+ isDevFeature?: boolean;
7807
7874
  } | {
7808
7875
  /** @enum {string} */
7809
7876
  type: "Text" | "Number" | "MultilineText" | "Switch" | "Json";
@@ -7821,6 +7888,7 @@ export interface operations {
7821
7888
  description?: string;
7822
7889
  tooltip?: string;
7823
7890
  isConfidential?: boolean;
7891
+ isDevFeature?: boolean;
7824
7892
  })[];
7825
7893
  customData?: {
7826
7894
  [key: string]: unknown;
@@ -7903,6 +7971,7 @@ export interface operations {
7903
7971
  "application/json": {
7904
7972
  id: string;
7905
7973
  syncProfile: boolean;
7974
+ enableTokenStorage: boolean;
7906
7975
  /** @description arbitrary */
7907
7976
  config: Record<string, never>;
7908
7977
  metadata: {
@@ -7943,6 +8012,7 @@ export interface operations {
7943
8012
  description?: string;
7944
8013
  tooltip?: string;
7945
8014
  isConfidential?: boolean;
8015
+ isDevFeature?: boolean;
7946
8016
  } | {
7947
8017
  /** Format: "MultiSelect" */
7948
8018
  type: string;
@@ -7963,6 +8033,7 @@ export interface operations {
7963
8033
  description?: string;
7964
8034
  tooltip?: string;
7965
8035
  isConfidential?: boolean;
8036
+ isDevFeature?: boolean;
7966
8037
  } | {
7967
8038
  /** @enum {string} */
7968
8039
  type: "Text" | "Number" | "MultilineText" | "Switch" | "Json";
@@ -7980,6 +8051,7 @@ export interface operations {
7980
8051
  description?: string;
7981
8052
  tooltip?: string;
7982
8053
  isConfidential?: boolean;
8054
+ isDevFeature?: boolean;
7983
8055
  })[];
7984
8056
  customData?: {
7985
8057
  [key: string]: unknown;
@@ -8050,6 +8122,7 @@ export interface operations {
8050
8122
  "application/json": {
8051
8123
  id: string;
8052
8124
  syncProfile: boolean;
8125
+ enableTokenStorage: boolean;
8053
8126
  /** @description arbitrary */
8054
8127
  config: Record<string, never>;
8055
8128
  metadata: {
@@ -8090,6 +8163,7 @@ export interface operations {
8090
8163
  description?: string;
8091
8164
  tooltip?: string;
8092
8165
  isConfidential?: boolean;
8166
+ isDevFeature?: boolean;
8093
8167
  } | {
8094
8168
  /** Format: "MultiSelect" */
8095
8169
  type: string;
@@ -8110,6 +8184,7 @@ export interface operations {
8110
8184
  description?: string;
8111
8185
  tooltip?: string;
8112
8186
  isConfidential?: boolean;
8187
+ isDevFeature?: boolean;
8113
8188
  } | {
8114
8189
  /** @enum {string} */
8115
8190
  type: "Text" | "Number" | "MultilineText" | "Switch" | "Json";
@@ -8127,6 +8202,7 @@ export interface operations {
8127
8202
  description?: string;
8128
8203
  tooltip?: string;
8129
8204
  isConfidential?: boolean;
8205
+ isDevFeature?: boolean;
8130
8206
  })[];
8131
8207
  customData?: {
8132
8208
  [key: string]: unknown;
@@ -8264,6 +8340,7 @@ export interface operations {
8264
8340
  "application/json": {
8265
8341
  id: string;
8266
8342
  syncProfile: boolean;
8343
+ enableTokenStorage: boolean;
8267
8344
  /** @description arbitrary */
8268
8345
  config: Record<string, never>;
8269
8346
  metadata: {
@@ -8304,6 +8381,7 @@ export interface operations {
8304
8381
  description?: string;
8305
8382
  tooltip?: string;
8306
8383
  isConfidential?: boolean;
8384
+ isDevFeature?: boolean;
8307
8385
  } | {
8308
8386
  /** Format: "MultiSelect" */
8309
8387
  type: string;
@@ -8324,6 +8402,7 @@ export interface operations {
8324
8402
  description?: string;
8325
8403
  tooltip?: string;
8326
8404
  isConfidential?: boolean;
8405
+ isDevFeature?: boolean;
8327
8406
  } | {
8328
8407
  /** @enum {string} */
8329
8408
  type: "Text" | "Number" | "MultilineText" | "Switch" | "Json";
@@ -8341,6 +8420,7 @@ export interface operations {
8341
8420
  description?: string;
8342
8421
  tooltip?: string;
8343
8422
  isConfidential?: boolean;
8423
+ isDevFeature?: boolean;
8344
8424
  })[];
8345
8425
  customData?: {
8346
8426
  [key: string]: unknown;
@@ -8580,6 +8660,7 @@ export interface operations {
8580
8660
  description?: string;
8581
8661
  tooltip?: string;
8582
8662
  isConfidential?: boolean;
8663
+ isDevFeature?: boolean;
8583
8664
  } | {
8584
8665
  /** Format: "MultiSelect" */
8585
8666
  type: string;
@@ -8600,6 +8681,7 @@ export interface operations {
8600
8681
  description?: string;
8601
8682
  tooltip?: string;
8602
8683
  isConfidential?: boolean;
8684
+ isDevFeature?: boolean;
8603
8685
  } | {
8604
8686
  /** @enum {string} */
8605
8687
  type: "Text" | "Number" | "MultilineText" | "Switch" | "Json";
@@ -8617,6 +8699,7 @@ export interface operations {
8617
8699
  description?: string;
8618
8700
  tooltip?: string;
8619
8701
  isConfidential?: boolean;
8702
+ isDevFeature?: boolean;
8620
8703
  })[];
8621
8704
  customData?: {
8622
8705
  [key: string]: unknown;
@@ -8698,6 +8781,7 @@ export interface operations {
8698
8781
  description?: string;
8699
8782
  tooltip?: string;
8700
8783
  isConfidential?: boolean;
8784
+ isDevFeature?: boolean;
8701
8785
  } | {
8702
8786
  /** Format: "MultiSelect" */
8703
8787
  type: string;
@@ -8718,6 +8802,7 @@ export interface operations {
8718
8802
  description?: string;
8719
8803
  tooltip?: string;
8720
8804
  isConfidential?: boolean;
8805
+ isDevFeature?: boolean;
8721
8806
  } | {
8722
8807
  /** @enum {string} */
8723
8808
  type: "Text" | "Number" | "MultilineText" | "Switch" | "Json";
@@ -8735,6 +8820,7 @@ export interface operations {
8735
8820
  description?: string;
8736
8821
  tooltip?: string;
8737
8822
  isConfidential?: boolean;
8823
+ isDevFeature?: boolean;
8738
8824
  })[];
8739
8825
  customData?: {
8740
8826
  [key: string]: unknown;
@@ -9531,7 +9617,7 @@ export interface operations {
9531
9617
  };
9532
9618
  /** @description MFA settings */
9533
9619
  mfa: {
9534
- factors: ("Totp" | "WebAuthn" | "BackupCode")[];
9620
+ factors: ("Totp" | "WebAuthn" | "BackupCode" | "EmailVerificationCode" | "PhoneVerificationCode")[];
9535
9621
  /** @enum {string} */
9536
9622
  policy: "UserControlled" | "Mandatory" | "PromptOnlyAtSignIn" | "PromptAtSignInAndSignUp" | "NoPrompt";
9537
9623
  /** @enum {string} */
@@ -9695,7 +9781,7 @@ export interface operations {
9695
9781
  };
9696
9782
  /** @description MFA settings */
9697
9783
  mfa?: {
9698
- factors: ("Totp" | "WebAuthn" | "BackupCode")[];
9784
+ factors: ("Totp" | "WebAuthn" | "BackupCode" | "EmailVerificationCode" | "PhoneVerificationCode")[];
9699
9785
  /** @enum {string} */
9700
9786
  policy: "UserControlled" | "Mandatory" | "PromptOnlyAtSignIn" | "PromptAtSignInAndSignUp" | "NoPrompt";
9701
9787
  /** @enum {string} */
@@ -9825,7 +9911,7 @@ export interface operations {
9825
9911
  };
9826
9912
  };
9827
9913
  mfa: {
9828
- factors: ("Totp" | "WebAuthn" | "BackupCode")[];
9914
+ factors: ("Totp" | "WebAuthn" | "BackupCode" | "EmailVerificationCode" | "PhoneVerificationCode")[];
9829
9915
  /** @enum {string} */
9830
9916
  policy: "UserControlled" | "Mandatory" | "PromptOnlyAtSignIn" | "PromptAtSignInAndSignUp" | "NoPrompt";
9831
9917
  /** @enum {string} */
@@ -11376,6 +11462,88 @@ export interface operations {
11376
11462
  };
11377
11463
  };
11378
11464
  };
11465
+ GetUserIdentity: {
11466
+ parameters: {
11467
+ query?: {
11468
+ /** @description Whether to include the token secret in the response. Defaults to false. Token storage must be supported and enabled by the connector to return the token secret. */
11469
+ includeTokenSecret?: string;
11470
+ };
11471
+ header?: never;
11472
+ path: {
11473
+ /** @description The unique identifier of the user. */
11474
+ userId: components["parameters"]["userId"];
11475
+ target: string;
11476
+ };
11477
+ cookie?: never;
11478
+ };
11479
+ requestBody?: never;
11480
+ responses: {
11481
+ /** @description Returns the user's social identity and associated token storage. */
11482
+ 200: {
11483
+ headers: {
11484
+ [name: string]: unknown;
11485
+ };
11486
+ content: {
11487
+ "application/json": {
11488
+ /** @description The user's social identity. */
11489
+ identity: {
11490
+ userId: string;
11491
+ /** @description arbitrary */
11492
+ details?: Record<string, never>;
11493
+ };
11494
+ /** @description The desensitized token set secret associated with the user's social identity.
11495
+ * This field is included only if the `includeTokenSecret` query parameter is provided and the corresponding connector has token storage enabled. */
11496
+ tokenSecret?: {
11497
+ tenantId: string;
11498
+ id: string;
11499
+ userId: string;
11500
+ /** Format: "federated_token_set" */
11501
+ type: string;
11502
+ metadata: {
11503
+ scope?: string;
11504
+ expiresAt?: number;
11505
+ tokenType?: string;
11506
+ hasRefreshToken: boolean;
11507
+ };
11508
+ createdAt: number;
11509
+ updatedAt: number;
11510
+ connectorId: string;
11511
+ identityId: string;
11512
+ target: string;
11513
+ };
11514
+ };
11515
+ };
11516
+ };
11517
+ /** @description Bad Request */
11518
+ 400: {
11519
+ headers: {
11520
+ [name: string]: unknown;
11521
+ };
11522
+ content?: never;
11523
+ };
11524
+ /** @description Unauthorized */
11525
+ 401: {
11526
+ headers: {
11527
+ [name: string]: unknown;
11528
+ };
11529
+ content?: never;
11530
+ };
11531
+ /** @description Forbidden */
11532
+ 403: {
11533
+ headers: {
11534
+ [name: string]: unknown;
11535
+ };
11536
+ content?: never;
11537
+ };
11538
+ /** @description User social identity not found. */
11539
+ 404: {
11540
+ headers: {
11541
+ [name: string]: unknown;
11542
+ };
11543
+ content?: never;
11544
+ };
11545
+ };
11546
+ };
11379
11547
  ReplaceUserIdentity: {
11380
11548
  parameters: {
11381
11549
  query?: never;
@@ -11743,7 +11911,7 @@ export interface operations {
11743
11911
  id: string;
11744
11912
  createdAt: string;
11745
11913
  /** @enum {string} */
11746
- type: "Totp" | "WebAuthn" | "BackupCode";
11914
+ type: "Totp" | "WebAuthn" | "BackupCode" | "EmailVerificationCode" | "PhoneVerificationCode";
11747
11915
  agent?: string;
11748
11916
  name?: string;
11749
11917
  remainCodes?: number;
@@ -12170,6 +12338,212 @@ export interface operations {
12170
12338
  };
12171
12339
  };
12172
12340
  };
12341
+ GetUserSsoIdentity: {
12342
+ parameters: {
12343
+ query?: {
12344
+ /** @description Whether to include the token secret in the response. Defaults to false. Token storage must be supported and enabled by the connector to return the token secret. */
12345
+ includeTokenSecret?: string;
12346
+ };
12347
+ header?: never;
12348
+ path: {
12349
+ /** @description The unique identifier of the user. */
12350
+ userId: components["parameters"]["userId"];
12351
+ /** @description The unique identifier of the sso connector. */
12352
+ ssoConnectorId: components["parameters"]["ssoConnectorId"];
12353
+ };
12354
+ cookie?: never;
12355
+ };
12356
+ requestBody?: never;
12357
+ responses: {
12358
+ /** @description Returns the user's enterprise SSO identity and associated token secret. */
12359
+ 200: {
12360
+ headers: {
12361
+ [name: string]: unknown;
12362
+ };
12363
+ content: {
12364
+ "application/json": {
12365
+ /** @description The user's enterprise SSO identity. */
12366
+ ssoIdentity: {
12367
+ tenantId: string;
12368
+ id: string;
12369
+ userId: string;
12370
+ issuer: string;
12371
+ identityId: string;
12372
+ /** @description arbitrary */
12373
+ detail: Record<string, never>;
12374
+ createdAt: number;
12375
+ updatedAt: number;
12376
+ ssoConnectorId: string;
12377
+ };
12378
+ /** @description The desensitized token set secret associated with the user's SSO identity.
12379
+ * This field is included only if the `includeTokenSecret` query parameter is provided and the corresponding connector has token storage enabled. */
12380
+ tokenSecret?: {
12381
+ tenantId: string;
12382
+ id: string;
12383
+ userId: string;
12384
+ /** Format: "federated_token_set" */
12385
+ type: string;
12386
+ metadata: {
12387
+ scope?: string;
12388
+ expiresAt?: number;
12389
+ tokenType?: string;
12390
+ hasRefreshToken: boolean;
12391
+ };
12392
+ createdAt: number;
12393
+ updatedAt: number;
12394
+ ssoConnectorId: string;
12395
+ issuer: string;
12396
+ identityId: string;
12397
+ };
12398
+ };
12399
+ };
12400
+ };
12401
+ /** @description Bad Request */
12402
+ 400: {
12403
+ headers: {
12404
+ [name: string]: unknown;
12405
+ };
12406
+ content?: never;
12407
+ };
12408
+ /** @description Unauthorized */
12409
+ 401: {
12410
+ headers: {
12411
+ [name: string]: unknown;
12412
+ };
12413
+ content?: never;
12414
+ };
12415
+ /** @description Forbidden */
12416
+ 403: {
12417
+ headers: {
12418
+ [name: string]: unknown;
12419
+ };
12420
+ content?: never;
12421
+ };
12422
+ /** @description User enterprise SSO identity not found. */
12423
+ 404: {
12424
+ headers: {
12425
+ [name: string]: unknown;
12426
+ };
12427
+ content?: never;
12428
+ };
12429
+ };
12430
+ };
12431
+ ListUserAllIdentities: {
12432
+ parameters: {
12433
+ query?: {
12434
+ /** @description Whether to include the token secret in the response. Defaults to false. Token storage must be supported and enabled by the connector to return the token secret. */
12435
+ includeTokenSecret?: string;
12436
+ };
12437
+ header?: never;
12438
+ path: {
12439
+ /** @description The unique identifier of the user. */
12440
+ userId: components["parameters"]["userId"];
12441
+ };
12442
+ cookie?: never;
12443
+ };
12444
+ requestBody?: never;
12445
+ responses: {
12446
+ /** @description Returns the user's social identities, enterprise SSO identities and associated token secret. */
12447
+ 200: {
12448
+ headers: {
12449
+ [name: string]: unknown;
12450
+ };
12451
+ content: {
12452
+ "application/json": {
12453
+ /** @description The user's social identities. */
12454
+ socialIdentities: {
12455
+ identity: {
12456
+ userId: string;
12457
+ /** @description arbitrary */
12458
+ details?: Record<string, never>;
12459
+ };
12460
+ tokenSecret?: {
12461
+ tenantId: string;
12462
+ id: string;
12463
+ userId: string;
12464
+ /** Format: "federated_token_set" */
12465
+ type: string;
12466
+ metadata: {
12467
+ scope?: string;
12468
+ expiresAt?: number;
12469
+ tokenType?: string;
12470
+ hasRefreshToken: boolean;
12471
+ };
12472
+ createdAt: number;
12473
+ updatedAt: number;
12474
+ connectorId: string;
12475
+ identityId: string;
12476
+ target: string;
12477
+ };
12478
+ target: string;
12479
+ }[];
12480
+ /** @description The user's enterprise SSO identities. */
12481
+ ssoIdentities: {
12482
+ ssoIdentity: {
12483
+ tenantId: string;
12484
+ id: string;
12485
+ userId: string;
12486
+ issuer: string;
12487
+ identityId: string;
12488
+ /** @description arbitrary */
12489
+ detail: Record<string, never>;
12490
+ createdAt: number;
12491
+ updatedAt: number;
12492
+ ssoConnectorId: string;
12493
+ };
12494
+ tokenSecret?: {
12495
+ tenantId: string;
12496
+ id: string;
12497
+ userId: string;
12498
+ /** Format: "federated_token_set" */
12499
+ type: string;
12500
+ metadata: {
12501
+ scope?: string;
12502
+ expiresAt?: number;
12503
+ tokenType?: string;
12504
+ hasRefreshToken: boolean;
12505
+ };
12506
+ createdAt: number;
12507
+ updatedAt: number;
12508
+ ssoConnectorId: string;
12509
+ issuer: string;
12510
+ identityId: string;
12511
+ };
12512
+ ssoConnectorId: string;
12513
+ }[];
12514
+ };
12515
+ };
12516
+ };
12517
+ /** @description Bad Request */
12518
+ 400: {
12519
+ headers: {
12520
+ [name: string]: unknown;
12521
+ };
12522
+ content?: never;
12523
+ };
12524
+ /** @description Unauthorized */
12525
+ 401: {
12526
+ headers: {
12527
+ [name: string]: unknown;
12528
+ };
12529
+ content?: never;
12530
+ };
12531
+ /** @description Forbidden */
12532
+ 403: {
12533
+ headers: {
12534
+ [name: string]: unknown;
12535
+ };
12536
+ content?: never;
12537
+ };
12538
+ /** @description User not found. */
12539
+ 404: {
12540
+ headers: {
12541
+ [name: string]: unknown;
12542
+ };
12543
+ content?: never;
12544
+ };
12545
+ };
12546
+ };
12173
12547
  ListLogs: {
12174
12548
  parameters: {
12175
12549
  query?: {
@@ -20901,6 +21275,55 @@ export interface operations {
20901
21275
  };
20902
21276
  };
20903
21277
  };
21278
+ DeleteSecret: {
21279
+ parameters: {
21280
+ query?: never;
21281
+ header?: never;
21282
+ path: {
21283
+ /** @description The unique identifier of the secret. */
21284
+ id: components["parameters"]["secretId-root"];
21285
+ };
21286
+ cookie?: never;
21287
+ };
21288
+ requestBody?: never;
21289
+ responses: {
21290
+ /** @description The secret was deleted successfully. */
21291
+ 204: {
21292
+ headers: {
21293
+ [name: string]: unknown;
21294
+ };
21295
+ content?: never;
21296
+ };
21297
+ /** @description Bad Request */
21298
+ 400: {
21299
+ headers: {
21300
+ [name: string]: unknown;
21301
+ };
21302
+ content?: never;
21303
+ };
21304
+ /** @description Unauthorized */
21305
+ 401: {
21306
+ headers: {
21307
+ [name: string]: unknown;
21308
+ };
21309
+ content?: never;
21310
+ };
21311
+ /** @description Forbidden */
21312
+ 403: {
21313
+ headers: {
21314
+ [name: string]: unknown;
21315
+ };
21316
+ content?: never;
21317
+ };
21318
+ /** @description The secret with the specified ID was not found. */
21319
+ 404: {
21320
+ headers: {
21321
+ [name: string]: unknown;
21322
+ };
21323
+ content?: never;
21324
+ };
21325
+ };
21326
+ };
20904
21327
  GetSignInExperienceConfig: {
20905
21328
  parameters: {
20906
21329
  query?: {
@@ -21006,7 +21429,7 @@ export interface operations {
21006
21429
  };
21007
21430
  };
21008
21431
  mfa: {
21009
- factors: ("Totp" | "WebAuthn" | "BackupCode")[];
21432
+ factors: ("Totp" | "WebAuthn" | "BackupCode" | "EmailVerificationCode" | "PhoneVerificationCode")[];
21010
21433
  /** @enum {string} */
21011
21434
  policy: "UserControlled" | "Mandatory" | "PromptOnlyAtSignIn" | "PromptAtSignInAndSignUp" | "NoPrompt";
21012
21435
  /** @enum {string} */
@@ -21081,13 +21504,32 @@ export interface operations {
21081
21504
  minValue?: number;
21082
21505
  maxValue?: number;
21083
21506
  format?: string;
21507
+ customFormat?: string;
21084
21508
  options?: {
21085
21509
  label: string;
21086
21510
  value: string;
21087
21511
  }[];
21088
21512
  parts?: {
21089
- key: string;
21090
21513
  enabled: boolean;
21514
+ name: string;
21515
+ /** @enum {string} */
21516
+ type: "Text" | "Number" | "Date" | "Checkbox" | "Select" | "Url" | "Regex" | "Address" | "Fullname";
21517
+ label: string;
21518
+ description?: string;
21519
+ required: boolean;
21520
+ config?: {
21521
+ placeholder?: string;
21522
+ minLength?: number;
21523
+ maxLength?: number;
21524
+ minValue?: number;
21525
+ maxValue?: number;
21526
+ format?: string;
21527
+ customFormat?: string;
21528
+ options?: {
21529
+ label: string;
21530
+ value: string;
21531
+ }[];
21532
+ };
21091
21533
  }[];
21092
21534
  };
21093
21535
  createdAt: number;
@@ -21244,7 +21686,7 @@ export interface operations {
21244
21686
  };
21245
21687
  };
21246
21688
  mfa: {
21247
- factors: ("Totp" | "WebAuthn" | "BackupCode")[];
21689
+ factors: ("Totp" | "WebAuthn" | "BackupCode" | "EmailVerificationCode" | "PhoneVerificationCode")[];
21248
21690
  /** @enum {string} */
21249
21691
  policy: "UserControlled" | "Mandatory" | "PromptOnlyAtSignIn" | "PromptAtSignInAndSignUp" | "NoPrompt";
21250
21692
  /** @enum {string} */
@@ -21319,13 +21761,32 @@ export interface operations {
21319
21761
  minValue?: number;
21320
21762
  maxValue?: number;
21321
21763
  format?: string;
21764
+ customFormat?: string;
21322
21765
  options?: {
21323
21766
  label: string;
21324
21767
  value: string;
21325
21768
  }[];
21326
21769
  parts?: {
21327
- key: string;
21328
21770
  enabled: boolean;
21771
+ name: string;
21772
+ /** @enum {string} */
21773
+ type: "Text" | "Number" | "Date" | "Checkbox" | "Select" | "Url" | "Regex" | "Address" | "Fullname";
21774
+ label: string;
21775
+ description?: string;
21776
+ required: boolean;
21777
+ config?: {
21778
+ placeholder?: string;
21779
+ minLength?: number;
21780
+ maxLength?: number;
21781
+ minValue?: number;
21782
+ maxValue?: number;
21783
+ format?: string;
21784
+ customFormat?: string;
21785
+ options?: {
21786
+ label: string;
21787
+ value: string;
21788
+ }[];
21789
+ };
21329
21790
  }[];
21330
21791
  };
21331
21792
  createdAt: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/api",
3
- "version": "1.30.0-beta.0",
3
+ "version": "1.30.1",
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",