@logto/api 1.31.0 → 1.33.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.
@@ -909,6 +909,30 @@ export interface paths {
909
909
  patch: operations["UpdateUserCustomData"];
910
910
  trace?: never;
911
911
  };
912
+ "/api/users/{userId}/logto-configs": {
913
+ parameters: {
914
+ query?: never;
915
+ header?: never;
916
+ path?: never;
917
+ cookie?: never;
918
+ };
919
+ /**
920
+ * Get user logto config
921
+ * @description Retrieve the exposed portion of a user's logto config. This endpoint currently includes only the MFA skip state.
922
+ */
923
+ get: operations["ListUserLogtoConfigs"];
924
+ put?: never;
925
+ post?: never;
926
+ delete?: never;
927
+ options?: never;
928
+ head?: never;
929
+ /**
930
+ * Update user logto config
931
+ * @description Update the exposed portion of a user's logto config. This endpoint currently allows updating only the MFA skip state.
932
+ */
933
+ patch: operations["UpdateUserLogtoConfigs"];
934
+ trace?: never;
935
+ };
912
936
  "/api/users/{userId}/profile": {
913
937
  parameters: {
914
938
  query?: never;
@@ -1220,7 +1244,11 @@ export interface paths {
1220
1244
  delete?: never;
1221
1245
  options?: never;
1222
1246
  head?: never;
1223
- patch?: never;
1247
+ /**
1248
+ * Update personal access token
1249
+ * @description Update a token for the user by name.
1250
+ */
1251
+ patch: operations["UpdatePersonalAccessTokenName"];
1224
1252
  trace?: never;
1225
1253
  };
1226
1254
  "/api/users/{userId}/personal-access-tokens/{name}": {
@@ -1235,18 +1263,38 @@ export interface paths {
1235
1263
  post?: never;
1236
1264
  /**
1237
1265
  * Delete personal access token
1238
- * @description Delete a token for the user by name.
1266
+ * @description Delete a token for the user by name using the legacy path parameter. Deprecated: use the POST /delete endpoint instead to avoid url name encoding issues.
1239
1267
  */
1240
1268
  delete: operations["DeleteUserPersonalAccessToken"];
1241
1269
  options?: never;
1242
1270
  head?: never;
1243
1271
  /**
1244
1272
  * Update personal access token
1245
- * @description Update a token for the user by name.
1273
+ * @description Update a token for the user by name using the legacy path parameter. Deprecated: use the PATCH /personal-access-tokens endpoint instead to avoid url name encoding issues.
1246
1274
  */
1247
1275
  patch: operations["UpdateUserPersonalAccessToken"];
1248
1276
  trace?: never;
1249
1277
  };
1278
+ "/api/users/{userId}/personal-access-tokens/delete": {
1279
+ parameters: {
1280
+ query?: never;
1281
+ header?: never;
1282
+ path?: never;
1283
+ cookie?: never;
1284
+ };
1285
+ get?: never;
1286
+ put?: never;
1287
+ /**
1288
+ * Delete personal access token
1289
+ * @description Delete a token for the user by name.
1290
+ */
1291
+ post: operations["DeletePersonalAccessTokenPost"];
1292
+ delete?: never;
1293
+ options?: never;
1294
+ head?: never;
1295
+ patch?: never;
1296
+ trace?: never;
1297
+ };
1250
1298
  "/api/users/{userId}/sso-identities/{ssoConnectorId}": {
1251
1299
  parameters: {
1252
1300
  query?: never;
@@ -4747,6 +4795,13 @@ export interface operations {
4747
4795
  /** @description arbitrary */
4748
4796
  customData: Record<string, never>;
4749
4797
  isMfaRequired: boolean;
4798
+ color: {
4799
+ /** Format: regex */
4800
+ primaryColor?: string;
4801
+ isDarkModeEnabled?: boolean;
4802
+ /** Format: regex */
4803
+ darkPrimaryColor?: string;
4804
+ };
4750
4805
  branding: {
4751
4806
  /** Format: url */
4752
4807
  logoUrl?: string;
@@ -4757,6 +4812,7 @@ export interface operations {
4757
4812
  /** Format: url */
4758
4813
  darkFavicon?: string;
4759
4814
  };
4815
+ customCss: string | null;
4760
4816
  createdAt: number;
4761
4817
  organizationRoles: {
4762
4818
  id: string;
@@ -5409,6 +5465,7 @@ export interface operations {
5409
5465
  /** Format: url */
5410
5466
  darkFavicon?: string;
5411
5467
  };
5468
+ customCss: string | null;
5412
5469
  termsOfUseUrl: string | null;
5413
5470
  privacyPolicyUrl: string | null;
5414
5471
  displayName: string | null;
@@ -5475,6 +5532,7 @@ export interface operations {
5475
5532
  /** Format: url */
5476
5533
  darkFavicon?: string;
5477
5534
  };
5535
+ customCss?: string | null;
5478
5536
  displayName?: string | null;
5479
5537
  termsOfUseUrl: (string | null) | string;
5480
5538
  privacyPolicyUrl: (string | null) | string;
@@ -5508,6 +5566,7 @@ export interface operations {
5508
5566
  /** Format: url */
5509
5567
  darkFavicon?: string;
5510
5568
  };
5569
+ customCss: string | null;
5511
5570
  termsOfUseUrl: string | null;
5512
5571
  privacyPolicyUrl: string | null;
5513
5572
  displayName: string | null;
@@ -5540,6 +5599,7 @@ export interface operations {
5540
5599
  /** Format: url */
5541
5600
  darkFavicon?: string;
5542
5601
  };
5602
+ customCss: string | null;
5543
5603
  termsOfUseUrl: string | null;
5544
5604
  privacyPolicyUrl: string | null;
5545
5605
  displayName: string | null;
@@ -5618,6 +5678,13 @@ export interface operations {
5618
5678
  /** @description arbitrary */
5619
5679
  customData: Record<string, never>;
5620
5680
  isMfaRequired: boolean;
5681
+ color: {
5682
+ /** Format: regex */
5683
+ primaryColor?: string;
5684
+ isDarkModeEnabled?: boolean;
5685
+ /** Format: regex */
5686
+ darkPrimaryColor?: string;
5687
+ };
5621
5688
  branding: {
5622
5689
  /** Format: url */
5623
5690
  logoUrl?: string;
@@ -5628,6 +5695,7 @@ export interface operations {
5628
5695
  /** Format: url */
5629
5696
  darkFavicon?: string;
5630
5697
  };
5698
+ customCss: string | null;
5631
5699
  createdAt: number;
5632
5700
  }[];
5633
5701
  };
@@ -6298,7 +6366,7 @@ export interface operations {
6298
6366
  } | {
6299
6367
  id: string;
6300
6368
  /** @enum {string} */
6301
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
6369
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
6302
6370
  verified: boolean;
6303
6371
  /** Format: "EmailVerificationCode" */
6304
6372
  type: string;
@@ -6310,7 +6378,7 @@ export interface operations {
6310
6378
  } | {
6311
6379
  id: string;
6312
6380
  /** @enum {string} */
6313
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
6381
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
6314
6382
  verified: boolean;
6315
6383
  /** Format: "PhoneVerificationCode" */
6316
6384
  type: string;
@@ -6364,6 +6432,7 @@ export interface operations {
6364
6432
  type: string;
6365
6433
  userId: string;
6366
6434
  verified: boolean;
6435
+ registrationRpId?: string;
6367
6436
  } | {
6368
6437
  id: string;
6369
6438
  /** Format: "OneTimeToken" */
@@ -6590,7 +6659,7 @@ export interface operations {
6590
6659
  } | {
6591
6660
  id: string;
6592
6661
  /** @enum {string} */
6593
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
6662
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
6594
6663
  verified: boolean;
6595
6664
  /** Format: "EmailVerificationCode" */
6596
6665
  type: string;
@@ -6602,7 +6671,7 @@ export interface operations {
6602
6671
  } | {
6603
6672
  id: string;
6604
6673
  /** @enum {string} */
6605
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
6674
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
6606
6675
  verified: boolean;
6607
6676
  /** Format: "PhoneVerificationCode" */
6608
6677
  type: string;
@@ -6656,6 +6725,7 @@ export interface operations {
6656
6725
  type: string;
6657
6726
  userId: string;
6658
6727
  verified: boolean;
6728
+ registrationRpId?: string;
6659
6729
  } | {
6660
6730
  id: string;
6661
6731
  /** Format: "OneTimeToken" */
@@ -6827,7 +6897,7 @@ export interface operations {
6827
6897
  } | {
6828
6898
  id: string;
6829
6899
  /** @enum {string} */
6830
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
6900
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
6831
6901
  verified: boolean;
6832
6902
  /** Format: "EmailVerificationCode" */
6833
6903
  type: string;
@@ -6839,7 +6909,7 @@ export interface operations {
6839
6909
  } | {
6840
6910
  id: string;
6841
6911
  /** @enum {string} */
6842
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
6912
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
6843
6913
  verified: boolean;
6844
6914
  /** Format: "PhoneVerificationCode" */
6845
6915
  type: string;
@@ -6893,6 +6963,7 @@ export interface operations {
6893
6963
  type: string;
6894
6964
  userId: string;
6895
6965
  verified: boolean;
6966
+ registrationRpId?: string;
6896
6967
  } | {
6897
6968
  id: string;
6898
6969
  /** Format: "OneTimeToken" */
@@ -7161,7 +7232,7 @@ export interface operations {
7161
7232
  } | {
7162
7233
  id: string;
7163
7234
  /** @enum {string} */
7164
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
7235
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
7165
7236
  verified: boolean;
7166
7237
  /** Format: "EmailVerificationCode" */
7167
7238
  type: string;
@@ -7173,7 +7244,7 @@ export interface operations {
7173
7244
  } | {
7174
7245
  id: string;
7175
7246
  /** @enum {string} */
7176
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
7247
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
7177
7248
  verified: boolean;
7178
7249
  /** Format: "PhoneVerificationCode" */
7179
7250
  type: string;
@@ -7227,6 +7298,7 @@ export interface operations {
7227
7298
  type: string;
7228
7299
  userId: string;
7229
7300
  verified: boolean;
7301
+ registrationRpId?: string;
7230
7302
  } | {
7231
7303
  id: string;
7232
7304
  /** Format: "OneTimeToken" */
@@ -7440,7 +7512,7 @@ export interface operations {
7440
7512
  } | {
7441
7513
  id: string;
7442
7514
  /** @enum {string} */
7443
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
7515
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
7444
7516
  verified: boolean;
7445
7517
  /** Format: "EmailVerificationCode" */
7446
7518
  type: string;
@@ -7452,7 +7524,7 @@ export interface operations {
7452
7524
  } | {
7453
7525
  id: string;
7454
7526
  /** @enum {string} */
7455
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
7527
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
7456
7528
  verified: boolean;
7457
7529
  /** Format: "PhoneVerificationCode" */
7458
7530
  type: string;
@@ -7506,6 +7578,7 @@ export interface operations {
7506
7578
  type: string;
7507
7579
  userId: string;
7508
7580
  verified: boolean;
7581
+ registrationRpId?: string;
7509
7582
  } | {
7510
7583
  id: string;
7511
7584
  /** Format: "OneTimeToken" */
@@ -7730,7 +7803,7 @@ export interface operations {
7730
7803
  } | {
7731
7804
  id: string;
7732
7805
  /** @enum {string} */
7733
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
7806
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
7734
7807
  verified: boolean;
7735
7808
  /** Format: "EmailVerificationCode" */
7736
7809
  type: string;
@@ -7742,7 +7815,7 @@ export interface operations {
7742
7815
  } | {
7743
7816
  id: string;
7744
7817
  /** @enum {string} */
7745
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
7818
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
7746
7819
  verified: boolean;
7747
7820
  /** Format: "PhoneVerificationCode" */
7748
7821
  type: string;
@@ -7796,6 +7869,7 @@ export interface operations {
7796
7869
  type: string;
7797
7870
  userId: string;
7798
7871
  verified: boolean;
7872
+ registrationRpId?: string;
7799
7873
  } | {
7800
7874
  id: string;
7801
7875
  /** Format: "OneTimeToken" */
@@ -9631,6 +9705,8 @@ export interface operations {
9631
9705
  /** Format: url */
9632
9706
  darkFavicon?: string;
9633
9707
  };
9708
+ /** @description Cloud only. Whether to hide the Logto branding on hosted sign-in pages. */
9709
+ hideLogtoBranding: boolean;
9634
9710
  /** @description The language detection policy for the sign-in page. */
9635
9711
  languageInfo: {
9636
9712
  autoDetect: boolean;
@@ -9799,6 +9875,8 @@ export interface operations {
9799
9875
  /** Format: url */
9800
9876
  darkFavicon?: string;
9801
9877
  };
9878
+ /** @description Cloud only. Whether to hide the Logto branding on hosted sign-in pages. */
9879
+ hideLogtoBranding?: boolean;
9802
9880
  /** @description Control the language detection policy for the sign-in page. */
9803
9881
  languageInfo?: {
9804
9882
  autoDetect: boolean;
@@ -9938,6 +10016,7 @@ export interface operations {
9938
10016
  /** Format: url */
9939
10017
  darkFavicon?: string;
9940
10018
  };
10019
+ hideLogtoBranding: boolean;
9941
10020
  languageInfo: {
9942
10021
  autoDetect: boolean;
9943
10022
  /** @enum {string} */
@@ -10599,6 +10678,125 @@ export interface operations {
10599
10678
  };
10600
10679
  };
10601
10680
  };
10681
+ ListUserLogtoConfigs: {
10682
+ parameters: {
10683
+ query?: never;
10684
+ header?: never;
10685
+ path: {
10686
+ /** @description The unique identifier of the user. */
10687
+ userId: components["parameters"]["userId"];
10688
+ };
10689
+ cookie?: never;
10690
+ };
10691
+ requestBody?: never;
10692
+ responses: {
10693
+ /** @description Returns the exposed user logto config fields. Currently, only the MFA skip state is available. */
10694
+ 200: {
10695
+ headers: {
10696
+ [name: string]: unknown;
10697
+ };
10698
+ content: {
10699
+ "application/json": {
10700
+ mfa: {
10701
+ skipped: boolean;
10702
+ };
10703
+ };
10704
+ };
10705
+ };
10706
+ /** @description Bad Request */
10707
+ 400: {
10708
+ headers: {
10709
+ [name: string]: unknown;
10710
+ };
10711
+ content?: never;
10712
+ };
10713
+ /** @description Unauthorized */
10714
+ 401: {
10715
+ headers: {
10716
+ [name: string]: unknown;
10717
+ };
10718
+ content?: never;
10719
+ };
10720
+ /** @description Forbidden */
10721
+ 403: {
10722
+ headers: {
10723
+ [name: string]: unknown;
10724
+ };
10725
+ content?: never;
10726
+ };
10727
+ /** @description Not Found */
10728
+ 404: {
10729
+ headers: {
10730
+ [name: string]: unknown;
10731
+ };
10732
+ content?: never;
10733
+ };
10734
+ };
10735
+ };
10736
+ UpdateUserLogtoConfigs: {
10737
+ parameters: {
10738
+ query?: never;
10739
+ header?: never;
10740
+ path: {
10741
+ /** @description The unique identifier of the user. */
10742
+ userId: components["parameters"]["userId"];
10743
+ };
10744
+ cookie?: never;
10745
+ };
10746
+ requestBody: {
10747
+ content: {
10748
+ "application/json": {
10749
+ mfa: {
10750
+ /** @description Set whether the user is marked as having skipped MFA binding. */
10751
+ skipped: boolean;
10752
+ };
10753
+ };
10754
+ };
10755
+ };
10756
+ responses: {
10757
+ /** @description The exposed logto config fields were updated successfully. */
10758
+ 200: {
10759
+ headers: {
10760
+ [name: string]: unknown;
10761
+ };
10762
+ content: {
10763
+ "application/json": {
10764
+ mfa: {
10765
+ skipped: boolean;
10766
+ };
10767
+ };
10768
+ };
10769
+ };
10770
+ /** @description Bad Request */
10771
+ 400: {
10772
+ headers: {
10773
+ [name: string]: unknown;
10774
+ };
10775
+ content?: never;
10776
+ };
10777
+ /** @description Unauthorized */
10778
+ 401: {
10779
+ headers: {
10780
+ [name: string]: unknown;
10781
+ };
10782
+ content?: never;
10783
+ };
10784
+ /** @description Forbidden */
10785
+ 403: {
10786
+ headers: {
10787
+ [name: string]: unknown;
10788
+ };
10789
+ content?: never;
10790
+ };
10791
+ /** @description Not Found */
10792
+ 404: {
10793
+ headers: {
10794
+ [name: string]: unknown;
10795
+ };
10796
+ content?: never;
10797
+ };
10798
+ };
10799
+ };
10602
10800
  UpdateUserProfile: {
10603
10801
  parameters: {
10604
10802
  query?: never;
@@ -11936,6 +12134,13 @@ export interface operations {
11936
12134
  /** @description arbitrary */
11937
12135
  customData: Record<string, never>;
11938
12136
  isMfaRequired: boolean;
12137
+ color: {
12138
+ /** Format: regex */
12139
+ primaryColor?: string;
12140
+ isDarkModeEnabled?: boolean;
12141
+ /** Format: regex */
12142
+ darkPrimaryColor?: string;
12143
+ };
11939
12144
  branding: {
11940
12145
  /** Format: url */
11941
12146
  logoUrl?: string;
@@ -11946,6 +12151,7 @@ export interface operations {
11946
12151
  /** Format: url */
11947
12152
  darkFavicon?: string;
11948
12153
  };
12154
+ customCss: string | null;
11949
12155
  createdAt: number;
11950
12156
  organizationRoles: {
11951
12157
  id: string;
@@ -12308,6 +12514,73 @@ export interface operations {
12308
12514
  };
12309
12515
  };
12310
12516
  };
12517
+ UpdatePersonalAccessTokenName: {
12518
+ parameters: {
12519
+ query?: never;
12520
+ header?: never;
12521
+ path: {
12522
+ /** @description The unique identifier of the user. */
12523
+ userId: components["parameters"]["userId"];
12524
+ };
12525
+ cookie?: never;
12526
+ };
12527
+ requestBody: {
12528
+ content: {
12529
+ "application/json": {
12530
+ /** @description The new token name. Must be unique within the user. */
12531
+ name: string;
12532
+ /** @description The current name of the token to update. */
12533
+ currentName?: string;
12534
+ };
12535
+ };
12536
+ };
12537
+ responses: {
12538
+ /** @description The token was updated successfully. */
12539
+ 200: {
12540
+ headers: {
12541
+ [name: string]: unknown;
12542
+ };
12543
+ content: {
12544
+ "application/json": {
12545
+ tenantId: string;
12546
+ userId: string;
12547
+ name: string;
12548
+ value: string;
12549
+ createdAt: number;
12550
+ expiresAt: number | null;
12551
+ };
12552
+ };
12553
+ };
12554
+ /** @description Bad Request */
12555
+ 400: {
12556
+ headers: {
12557
+ [name: string]: unknown;
12558
+ };
12559
+ content?: never;
12560
+ };
12561
+ /** @description Unauthorized */
12562
+ 401: {
12563
+ headers: {
12564
+ [name: string]: unknown;
12565
+ };
12566
+ content?: never;
12567
+ };
12568
+ /** @description Forbidden */
12569
+ 403: {
12570
+ headers: {
12571
+ [name: string]: unknown;
12572
+ };
12573
+ content?: never;
12574
+ };
12575
+ /** @description Not Found */
12576
+ 404: {
12577
+ headers: {
12578
+ [name: string]: unknown;
12579
+ };
12580
+ content?: never;
12581
+ };
12582
+ };
12583
+ };
12311
12584
  DeleteUserPersonalAccessToken: {
12312
12585
  parameters: {
12313
12586
  query?: never;
@@ -12366,7 +12639,7 @@ export interface operations {
12366
12639
  path: {
12367
12640
  /** @description The unique identifier of the user. */
12368
12641
  userId: components["parameters"]["userId"];
12369
- /** @description The name of the token. */
12642
+ /** @description The current name of the token. */
12370
12643
  name: string;
12371
12644
  };
12372
12645
  cookie?: never;
@@ -12374,13 +12647,13 @@ export interface operations {
12374
12647
  requestBody: {
12375
12648
  content: {
12376
12649
  "application/json": {
12377
- /** @description The token name to update. Must be unique within the user. */
12650
+ /** @description The new token name. Must be unique within the user. */
12378
12651
  name: string;
12379
12652
  };
12380
12653
  };
12381
12654
  };
12382
12655
  responses: {
12383
- /** @description OK */
12656
+ /** @description The token was updated successfully. */
12384
12657
  200: {
12385
12658
  headers: {
12386
12659
  [name: string]: unknown;
@@ -12396,7 +12669,56 @@ export interface operations {
12396
12669
  };
12397
12670
  };
12398
12671
  };
12399
- /** @description The token was updated successfully. */
12672
+ /** @description Bad Request */
12673
+ 400: {
12674
+ headers: {
12675
+ [name: string]: unknown;
12676
+ };
12677
+ content?: never;
12678
+ };
12679
+ /** @description Unauthorized */
12680
+ 401: {
12681
+ headers: {
12682
+ [name: string]: unknown;
12683
+ };
12684
+ content?: never;
12685
+ };
12686
+ /** @description Forbidden */
12687
+ 403: {
12688
+ headers: {
12689
+ [name: string]: unknown;
12690
+ };
12691
+ content?: never;
12692
+ };
12693
+ /** @description Not Found */
12694
+ 404: {
12695
+ headers: {
12696
+ [name: string]: unknown;
12697
+ };
12698
+ content?: never;
12699
+ };
12700
+ };
12701
+ };
12702
+ DeletePersonalAccessTokenPost: {
12703
+ parameters: {
12704
+ query?: never;
12705
+ header?: never;
12706
+ path: {
12707
+ /** @description The unique identifier of the user. */
12708
+ userId: components["parameters"]["userId"];
12709
+ };
12710
+ cookie?: never;
12711
+ };
12712
+ requestBody: {
12713
+ content: {
12714
+ "application/json": {
12715
+ /** @description The name of the token to delete. */
12716
+ name: string;
12717
+ };
12718
+ };
12719
+ };
12720
+ responses: {
12721
+ /** @description The token was deleted successfully. */
12400
12722
  204: {
12401
12723
  headers: {
12402
12724
  [name: string]: unknown;
@@ -16445,6 +16767,7 @@ export interface operations {
16445
16767
  code?: string;
16446
16768
  link?: string;
16447
16769
  locale?: string;
16770
+ uiLocales?: string;
16448
16771
  } | boolean;
16449
16772
  };
16450
16773
  };
@@ -16529,6 +16852,7 @@ export interface operations {
16529
16852
  code?: string;
16530
16853
  link?: string;
16531
16854
  locale?: string;
16855
+ uiLocales?: string;
16532
16856
  };
16533
16857
  };
16534
16858
  };
@@ -16679,6 +17003,13 @@ export interface operations {
16679
17003
  /** @description arbitrary */
16680
17004
  customData: Record<string, never>;
16681
17005
  isMfaRequired: boolean;
17006
+ color: {
17007
+ /** Format: regex */
17008
+ primaryColor?: string;
17009
+ isDarkModeEnabled?: boolean;
17010
+ /** Format: regex */
17011
+ darkPrimaryColor?: string;
17012
+ };
16682
17013
  branding: {
16683
17014
  /** Format: url */
16684
17015
  logoUrl?: string;
@@ -16689,6 +17020,7 @@ export interface operations {
16689
17020
  /** Format: url */
16690
17021
  darkFavicon?: string;
16691
17022
  };
17023
+ customCss: string | null;
16692
17024
  createdAt: number;
16693
17025
  usersCount?: number;
16694
17026
  featuredUsers?: {
@@ -16740,6 +17072,13 @@ export interface operations {
16740
17072
  /** @description arbitrary */
16741
17073
  customData?: Record<string, never>;
16742
17074
  isMfaRequired?: boolean;
17075
+ color?: {
17076
+ /** Format: regex */
17077
+ primaryColor?: string;
17078
+ isDarkModeEnabled?: boolean;
17079
+ /** Format: regex */
17080
+ darkPrimaryColor?: string;
17081
+ };
16743
17082
  branding?: {
16744
17083
  /** Format: url */
16745
17084
  logoUrl?: string;
@@ -16750,6 +17089,7 @@ export interface operations {
16750
17089
  /** Format: url */
16751
17090
  darkFavicon?: string;
16752
17091
  };
17092
+ customCss?: string | null;
16753
17093
  createdAt?: number;
16754
17094
  };
16755
17095
  };
@@ -16769,6 +17109,13 @@ export interface operations {
16769
17109
  /** @description arbitrary */
16770
17110
  customData: Record<string, never>;
16771
17111
  isMfaRequired: boolean;
17112
+ color: {
17113
+ /** Format: regex */
17114
+ primaryColor?: string;
17115
+ isDarkModeEnabled?: boolean;
17116
+ /** Format: regex */
17117
+ darkPrimaryColor?: string;
17118
+ };
16772
17119
  branding: {
16773
17120
  /** Format: url */
16774
17121
  logoUrl?: string;
@@ -16779,6 +17126,7 @@ export interface operations {
16779
17126
  /** Format: url */
16780
17127
  darkFavicon?: string;
16781
17128
  };
17129
+ customCss: string | null;
16782
17130
  createdAt: number;
16783
17131
  };
16784
17132
  };
@@ -16832,6 +17180,13 @@ export interface operations {
16832
17180
  /** @description arbitrary */
16833
17181
  customData: Record<string, never>;
16834
17182
  isMfaRequired: boolean;
17183
+ color: {
17184
+ /** Format: regex */
17185
+ primaryColor?: string;
17186
+ isDarkModeEnabled?: boolean;
17187
+ /** Format: regex */
17188
+ darkPrimaryColor?: string;
17189
+ };
16835
17190
  branding: {
16836
17191
  /** Format: url */
16837
17192
  logoUrl?: string;
@@ -16842,6 +17197,7 @@ export interface operations {
16842
17197
  /** Format: url */
16843
17198
  darkFavicon?: string;
16844
17199
  };
17200
+ customCss: string | null;
16845
17201
  createdAt: number;
16846
17202
  };
16847
17203
  };
@@ -16947,6 +17303,13 @@ export interface operations {
16947
17303
  /** @description arbitrary */
16948
17304
  customData?: Record<string, never>;
16949
17305
  isMfaRequired?: boolean;
17306
+ color?: {
17307
+ /** Format: regex */
17308
+ primaryColor?: string;
17309
+ isDarkModeEnabled?: boolean;
17310
+ /** Format: regex */
17311
+ darkPrimaryColor?: string;
17312
+ };
16950
17313
  branding?: {
16951
17314
  /** Format: url */
16952
17315
  logoUrl?: string;
@@ -16957,6 +17320,7 @@ export interface operations {
16957
17320
  /** Format: url */
16958
17321
  darkFavicon?: string;
16959
17322
  };
17323
+ customCss?: string | null;
16960
17324
  createdAt?: number;
16961
17325
  };
16962
17326
  };
@@ -16976,6 +17340,13 @@ export interface operations {
16976
17340
  /** @description arbitrary */
16977
17341
  customData: Record<string, never>;
16978
17342
  isMfaRequired: boolean;
17343
+ color: {
17344
+ /** Format: regex */
17345
+ primaryColor?: string;
17346
+ isDarkModeEnabled?: boolean;
17347
+ /** Format: regex */
17348
+ darkPrimaryColor?: string;
17349
+ };
16979
17350
  branding: {
16980
17351
  /** Format: url */
16981
17352
  logoUrl?: string;
@@ -16986,6 +17357,7 @@ export interface operations {
16986
17357
  /** Format: url */
16987
17358
  darkFavicon?: string;
16988
17359
  };
17360
+ customCss: string | null;
16989
17361
  createdAt: number;
16990
17362
  };
16991
17363
  };
@@ -20375,7 +20747,7 @@ export interface operations {
20375
20747
  /** @description The language tag of the email template, e.g., `en` or `fr`. */
20376
20748
  languageTag?: string;
20377
20749
  /** @description The type of the email template, e.g. `SignIn` or `ForgotPassword` */
20378
- templateType?: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
20750
+ templateType?: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
20379
20751
  };
20380
20752
  header?: never;
20381
20753
  path?: never;
@@ -20394,7 +20766,7 @@ export interface operations {
20394
20766
  id: string;
20395
20767
  languageTag: string;
20396
20768
  /** @enum {string} */
20397
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
20769
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
20398
20770
  details: {
20399
20771
  subject: string;
20400
20772
  content: string;
@@ -20446,7 +20818,7 @@ export interface operations {
20446
20818
  * @description The type of the email template, e.g. `SignIn` or `ForgotPassword`
20447
20819
  * @enum {string}
20448
20820
  */
20449
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
20821
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
20450
20822
  /** @description The details of the email template. */
20451
20823
  details: {
20452
20824
  /** @description The template of the email subject. */
@@ -20476,7 +20848,7 @@ export interface operations {
20476
20848
  id: string;
20477
20849
  languageTag: string;
20478
20850
  /** @enum {string} */
20479
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
20851
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
20480
20852
  details: {
20481
20853
  subject: string;
20482
20854
  content: string;
@@ -20524,7 +20896,7 @@ export interface operations {
20524
20896
  /** @description The language tag of the email template, e.g., `en` or `fr`. */
20525
20897
  languageTag?: string;
20526
20898
  /** @description The type of the email template, e.g. `SignIn` or `ForgotPassword` */
20527
- templateType?: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
20899
+ templateType?: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
20528
20900
  };
20529
20901
  header?: never;
20530
20902
  path?: never;
@@ -20597,7 +20969,7 @@ export interface operations {
20597
20969
  id: string;
20598
20970
  languageTag: string;
20599
20971
  /** @enum {string} */
20600
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
20972
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
20601
20973
  details: {
20602
20974
  subject: string;
20603
20975
  content: string;
@@ -20726,7 +21098,7 @@ export interface operations {
20726
21098
  id: string;
20727
21099
  languageTag: string;
20728
21100
  /** @enum {string} */
20729
- templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification";
21101
+ templateType: "SignIn" | "Register" | "ForgotPassword" | "OrganizationInvitation" | "Generic" | "UserPermissionValidation" | "BindNewIdentifier" | "MfaVerification" | "BindMfa";
20730
21102
  details: {
20731
21103
  subject: string;
20732
21104
  content: string;
@@ -20846,7 +21218,7 @@ export interface operations {
20846
21218
  context?: {
20847
21219
  jitOrganizationIds?: string[];
20848
21220
  };
20849
- /** @description The expiration time in seconds. If not provided, defaults to 2 days (172,800 seconds). */
21221
+ /** @description The expiration time in seconds. If not provided, defaults to 10 mins (600 seconds). */
20850
21222
  expiresIn?: number;
20851
21223
  };
20852
21224
  };
@@ -22503,6 +22875,7 @@ export interface operations {
22503
22875
  /** Format: url */
22504
22876
  darkFavicon?: string;
22505
22877
  };
22878
+ hideLogtoBranding: boolean;
22506
22879
  languageInfo: {
22507
22880
  autoDetect: boolean;
22508
22881
  /** @enum {string} */
@@ -22762,6 +23135,7 @@ export interface operations {
22762
23135
  /** Format: url */
22763
23136
  darkFavicon?: string;
22764
23137
  };
23138
+ hideLogtoBranding: boolean;
22765
23139
  languageInfo: {
22766
23140
  autoDetect: boolean;
22767
23141
  /** @enum {string} */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/api",
3
- "version": "1.31.0",
3
+ "version": "1.33.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",