@thunderid/vue 1.7.0 → 1.8.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.
Files changed (25) hide show
  1. package/dist/cjs/index.cjs +425 -58
  2. package/dist/components/admin/AgentDetails/AgentDetails.d.ts.map +1 -1
  3. package/dist/components/admin/AgentDetails/BaseAgentDetails.d.ts +6 -1
  4. package/dist/components/admin/AgentDetails/BaseAgentDetails.d.ts.map +1 -1
  5. package/dist/components/admin/ApplicationDetails/ApplicationDetails.d.ts.map +1 -1
  6. package/dist/components/admin/ApplicationDetails/BaseApplicationDetails.d.ts +6 -1
  7. package/dist/components/admin/ApplicationDetails/BaseApplicationDetails.d.ts.map +1 -1
  8. package/dist/components/admin/GroupMembers/GroupMembers.d.ts.map +1 -1
  9. package/dist/components/admin/RoleAssignments/RoleAssignments.d.ts.map +1 -1
  10. package/dist/components/admin/UserDetails/BaseUserDetails.d.ts +9 -1
  11. package/dist/components/admin/UserDetails/BaseUserDetails.d.ts.map +1 -1
  12. package/dist/components/admin/UserDetails/UserDetails.d.ts.map +1 -1
  13. package/dist/components/admin/shared/AccessStatusBadge.d.ts +8 -0
  14. package/dist/components/admin/shared/AccessStatusBadge.d.ts.map +1 -0
  15. package/dist/components/admin/shared/AccountLifecycleButtons.d.ts +9 -0
  16. package/dist/components/admin/shared/AccountLifecycleButtons.d.ts.map +1 -0
  17. package/dist/components/auth/flow/AuthOptionFactoryCore.d.ts.map +1 -1
  18. package/dist/components/auth/sign-in/SignIn.d.ts.map +1 -1
  19. package/dist/components/primitives/TextField/TextField.d.ts.map +1 -1
  20. package/dist/composables/management/useAccountLifecycle.d.ts +56 -0
  21. package/dist/composables/management/useAccountLifecycle.d.ts.map +1 -0
  22. package/dist/index.d.ts +3 -3
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +409 -60
  25. package/package.json +2 -2
@@ -5004,6 +5004,10 @@ const TextField = (0, vue.defineComponent)({
5004
5004
  default: void 0,
5005
5005
  type: String
5006
5006
  },
5007
+ maxLength: {
5008
+ default: void 0,
5009
+ type: Number
5010
+ },
5007
5011
  modelValue: {
5008
5012
  default: "",
5009
5013
  type: String
@@ -5052,6 +5056,7 @@ const TextField = (0, vue.defineComponent)({
5052
5056
  "data-testid": attrs["data-testid"],
5053
5057
  disabled: props.disabled,
5054
5058
  id: props.id ?? props.name,
5059
+ maxlength: props.maxLength,
5055
5060
  name: props.name,
5056
5061
  onBlur: () => emit("blur"),
5057
5062
  onInput: (e) => emit("update:modelValue", e.target.value),
@@ -7928,10 +7933,7 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
7928
7933
  elements: [...(p.essential ?? []).map((e) => ({
7929
7934
  approved: !isDeny,
7930
7935
  name: e.name
7931
- })), ...(p.optional ?? []).map((e) => ({
7932
- approved: !isDeny && formValues[getConsentOptionalKey(p.purposeId, e.name)] === "true",
7933
- name: e.name
7934
- }))],
7936
+ })), ...(p.optional ?? []).map((e) => (0, __thunderid_browser.getConsentElementDecision)(p.purposeId, e, !isDeny && formValues[getConsentOptionalKey(p.purposeId, e.name)] === "true", formValues))],
7935
7937
  purposeName: p.purposeName ?? ""
7936
7938
  }))
7937
7939
  };
@@ -8778,17 +8780,14 @@ const SignIn = (0, vue.defineComponent)({
8778
8780
  name: e.name
8779
8781
  })), ...(p.optional ?? []).map((e) => {
8780
8782
  const key = `__consent_opt__${p.purposeId}__${e.name}`;
8781
- return {
8782
- approved: !isDeny && processedInputs[key] === "true",
8783
- name: e.name
8784
- };
8783
+ return (0, __thunderid_browser.getConsentElementDecision)(p.purposeId, e, !isDeny && processedInputs[key] === "true", processedInputs);
8785
8784
  })],
8786
8785
  purposeName: p.purposeName
8787
8786
  }))
8788
8787
  };
8789
8788
  processedInputs["consent_decisions"] = JSON.stringify(decisions);
8790
8789
  Object.keys(processedInputs).forEach((key) => {
8791
- if (key.startsWith("__consent_opt__")) delete processedInputs[key];
8790
+ if (key.startsWith("__consent_opt__") || key.startsWith(__thunderid_browser.CONSENT_MODIFIED_KEY_PREFIX) || key.startsWith(__thunderid_browser.CONSENT_INVALID_KEY_PREFIX)) delete processedInputs[key];
8792
8791
  });
8793
8792
  } catch {}
8794
8793
  try {
@@ -10477,7 +10476,7 @@ var useAdminTranslation_default = useAdminTranslation;
10477
10476
 
10478
10477
  //#endregion
10479
10478
  //#region src/components/common/attribution/Attribution.ts
10480
- const cls$11 = (suffix) => (0, __thunderid_browser.withVendorCSSClassPrefix)(`attribution${suffix}`);
10479
+ const cls$13 = (suffix) => (0, __thunderid_browser.withVendorCSSClassPrefix)(`attribution${suffix}`);
10481
10480
  const wordmark = (className) => (0, vue.h)("svg", {
10482
10481
  "aria-label": "ThunderID",
10483
10482
  class: className,
@@ -10525,8 +10524,8 @@ const Attribution = (0, vue.defineComponent)({
10525
10524
  return () => {
10526
10525
  const isRibbon = props.appearance === "ribbon";
10527
10526
  const label = t(props.variant === "powered" ? "attribution.powered_by" : "attribution.secured_by");
10528
- const className = [cls$11(""), ...isRibbon ? [cls$11("--ribbon")] : []];
10529
- const content = isRibbon ? (0, vue.h)("span", { class: cls$11("__ribbon-content") }, [(0, vue.h)("span", { class: cls$11("__ribbon-label") }, label), wordmark(cls$11("__ribbon-wordmark"))]) : [(0, vue.h)("span", { class: cls$11("__label") }, label), wordmark(cls$11("__wordmark"))];
10527
+ const className = [cls$13(""), ...isRibbon ? [cls$13("--ribbon")] : []];
10528
+ const content = isRibbon ? (0, vue.h)("span", { class: cls$13("__ribbon-content") }, [(0, vue.h)("span", { class: cls$13("__ribbon-label") }, label), wordmark(cls$13("__ribbon-wordmark"))]) : [(0, vue.h)("span", { class: cls$13("__label") }, label), wordmark(cls$13("__wordmark"))];
10530
10529
  if (props.href) return (0, vue.h)("a", {
10531
10530
  class: className,
10532
10531
  href: props.href,
@@ -12195,7 +12194,7 @@ var InviteUser_default = InviteUser;
12195
12194
 
12196
12195
  //#endregion
12197
12196
  //#region src/components/common/language-switcher/BaseLanguageSwitcher.ts
12198
- const cls$10 = (name) => (0, __thunderid_browser.withVendorCSSClassPrefix)(`language-switcher${name}`);
12197
+ const cls$12 = (name) => (0, __thunderid_browser.withVendorCSSClassPrefix)(`language-switcher${name}`);
12199
12198
  /**
12200
12199
  * BaseLanguageSwitcher — unstyled language selection component.
12201
12200
  *
@@ -12245,13 +12244,13 @@ const BaseLanguageSwitcher = (0, vue.defineComponent)({
12245
12244
  const triggerButton = (0, vue.h)("button", {
12246
12245
  "aria-expanded": isOpen.value,
12247
12246
  "aria-haspopup": "listbox",
12248
- class: cls$10("__trigger"),
12247
+ class: cls$12("__trigger"),
12249
12248
  onClick: toggle,
12250
12249
  type: "button"
12251
12250
  }, [
12252
12251
  (0, vue.h)(GlobeIcon, { size: 16 }),
12253
12252
  (0, vue.h)(Typography_default, {
12254
- class: cls$10("__trigger-label"),
12253
+ class: cls$12("__trigger-label"),
12255
12254
  variant: "body2"
12256
12255
  }, () => currentLabel),
12257
12256
  (0, vue.h)(ChevronDownIcon, { size: 12 })
@@ -12260,17 +12259,17 @@ const BaseLanguageSwitcher = (0, vue.defineComponent)({
12260
12259
  const isActive = lang.value === props.currentLanguage;
12261
12260
  return (0, vue.h)("button", {
12262
12261
  "aria-selected": isActive,
12263
- class: [cls$10("__item"), isActive ? cls$10("__item--active") : ""],
12262
+ class: [cls$12("__item"), isActive ? cls$12("__item--active") : ""],
12264
12263
  onClick: () => handleSelect(lang.value),
12265
12264
  role: "option",
12266
12265
  type: "button"
12267
12266
  }, [(0, vue.h)(Typography_default, { variant: "body2" }, () => lang.label)]);
12268
12267
  });
12269
12268
  const dropdown = isOpen.value ? (0, vue.h)("div", {
12270
- class: cls$10("__dropdown"),
12269
+ class: cls$12("__dropdown"),
12271
12270
  role: "listbox"
12272
12271
  }, dropdownItems) : null;
12273
- return (0, vue.h)(Card_default, { class: [cls$10(""), props.className].filter(Boolean).join(" ") }, () => [triggerButton, dropdown]);
12272
+ return (0, vue.h)(Card_default, { class: [cls$12(""), props.className].filter(Boolean).join(" ") }, () => [triggerButton, dropdown]);
12274
12273
  };
12275
12274
  }
12276
12275
  });
@@ -12387,38 +12386,38 @@ const DataTable = (0, vue.defineComponent)({
12387
12386
  setup(props) {
12388
12387
  const { t: fallbackT } = useI18n_default();
12389
12388
  const translate = (key, params) => (props.t ?? fallbackT)(key, params);
12390
- const cls$12 = (element) => (0, __thunderid_browser.withVendorCSSClassPrefix)(element ? `data-table__${element}` : "data-table");
12389
+ const cls$14 = (element) => (0, __thunderid_browser.withVendorCSSClassPrefix)(element ? `data-table__${element}` : "data-table");
12391
12390
  const renderBody = () => {
12392
12391
  const colSpan = props.columns.length;
12393
12392
  if (props.isLoading) return (0, vue.h)("tr", {}, [(0, vue.h)("td", {
12394
- class: cls$12("empty"),
12393
+ class: cls$14("empty"),
12395
12394
  colspan: colSpan
12396
12395
  }, [(0, vue.h)("span", {
12397
- class: cls$12("loading"),
12396
+ class: cls$14("loading"),
12398
12397
  role: "status"
12399
12398
  }, [(0, vue.h)(Spinner_default, {
12400
12399
  "aria-hidden": "true",
12401
12400
  size: "small"
12402
12401
  }), translate("admin.common.loading")])])]);
12403
12402
  if (props.rows.length === 0) return (0, vue.h)("tr", {}, [(0, vue.h)("td", {
12404
- class: cls$12("empty"),
12403
+ class: cls$14("empty"),
12405
12404
  colspan: colSpan
12406
12405
  }, props.emptyText)]);
12407
12406
  return props.rows.map((row) => {
12408
12407
  const rowId = props.getRowId(row);
12409
12408
  const onRowClick = props.onRowClick;
12410
12409
  return (0, vue.h)("tr", {
12411
- class: cls$12("row"),
12410
+ class: cls$14("row"),
12412
12411
  "data-clickable": onRowClick ? "true" : void 0,
12413
12412
  "data-selected": props.selectedRowId === rowId ? "true" : void 0,
12414
12413
  key: rowId,
12415
12414
  onClick: onRowClick ? () => onRowClick(row) : void 0
12416
12415
  }, props.columns.map((column, index) => (0, vue.h)("td", {
12417
- class: cls$12("cell"),
12416
+ class: cls$14("cell"),
12418
12417
  key: column.id
12419
12418
  }, index === 0 && onRowClick ? [(0, vue.h)("button", {
12420
12419
  "aria-pressed": props.selectedRowId === void 0 ? void 0 : String(props.selectedRowId === rowId),
12421
- class: cls$12("row-button"),
12420
+ class: cls$14("row-button"),
12422
12421
  onClick: (event) => {
12423
12422
  event.stopPropagation();
12424
12423
  onRowClick(row);
@@ -12431,12 +12430,12 @@ const DataTable = (0, vue.defineComponent)({
12431
12430
  const { pagination } = props;
12432
12431
  const start = pagination ? Math.min(pagination.offset + 1, pagination.total) : 0;
12433
12432
  const end = pagination ? Math.min(pagination.offset + props.rows.length, pagination.total) : 0;
12434
- return (0, vue.h)("div", { class: [cls$12(), props.className].filter(Boolean).join(" ") }, [
12433
+ return (0, vue.h)("div", { class: [cls$14(), props.className].filter(Boolean).join(" ") }, [
12435
12434
  props.error ? (0, vue.h)(Alert_default, { severity: "error" }, { default: () => [props.error] }) : null,
12436
- (0, vue.h)("div", { class: cls$12("scroller") }, [(0, vue.h)("table", { class: cls$12("table") }, [
12437
- (0, vue.h)("caption", { class: cls$12("caption") }, props.caption),
12435
+ (0, vue.h)("div", { class: cls$14("scroller") }, [(0, vue.h)("table", { class: cls$14("table") }, [
12436
+ (0, vue.h)("caption", { class: cls$14("caption") }, props.caption),
12438
12437
  (0, vue.h)("thead", {}, [(0, vue.h)("tr", {}, props.columns.map((column) => (0, vue.h)("th", {
12439
- class: cls$12("header-cell"),
12438
+ class: cls$14("header-cell"),
12440
12439
  key: column.id,
12441
12440
  scope: "col"
12442
12441
  }, column.header)))]),
@@ -12444,12 +12443,12 @@ const DataTable = (0, vue.defineComponent)({
12444
12443
  ])]),
12445
12444
  pagination && pagination.total > pagination.limit ? (0, vue.h)("nav", {
12446
12445
  "aria-label": translate("admin.common.pagination.label"),
12447
- class: cls$12("footer")
12446
+ class: cls$14("footer")
12448
12447
  }, [(0, vue.h)("span", { "aria-live": "polite" }, translate("admin.common.pagination.range", {
12449
12448
  end,
12450
12449
  start,
12451
12450
  total: pagination.total
12452
- })), (0, vue.h)("div", { class: cls$12("footer-actions") }, [(0, vue.h)(Button_default, {
12451
+ })), (0, vue.h)("div", { class: cls$14("footer-actions") }, [(0, vue.h)(Button_default, {
12453
12452
  disabled: pagination.offset === 0 || props.isLoading,
12454
12453
  onClick: () => pagination.onChange(Math.max(0, pagination.offset - pagination.limit)),
12455
12454
  size: "small",
@@ -12468,7 +12467,7 @@ var DataTable_default = DataTable;
12468
12467
 
12469
12468
  //#endregion
12470
12469
  //#region src/components/admin/shared/AdminAvatar.ts
12471
- const cls$9 = (element) => (0, __thunderid_browser.withVendorCSSClassPrefix)(`admin__${element}`);
12470
+ const cls$11 = (element) => (0, __thunderid_browser.withVendorCSSClassPrefix)(`admin__${element}`);
12472
12471
  /**
12473
12472
  * A decorative circle with a name's initials. Hidden from assistive technology, since the name is
12474
12473
  * always rendered next to it.
@@ -12490,7 +12489,7 @@ const AdminAvatar = (0, vue.defineComponent)({
12490
12489
  const initials = props.name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part.charAt(0).toUpperCase()).join("");
12491
12490
  return (0, vue.h)("span", {
12492
12491
  "aria-hidden": "true",
12493
- class: cls$9("avatar"),
12492
+ class: cls$11("avatar"),
12494
12493
  style: {
12495
12494
  fontSize: `${Math.round(props.size * .4)}px`,
12496
12495
  height: `${props.size}px`,
@@ -13351,6 +13350,146 @@ const UserCreate = (0, vue.defineComponent)({
13351
13350
  });
13352
13351
  var UserCreate_default = UserCreate;
13353
13352
 
13353
+ //#endregion
13354
+ //#region src/components/admin/shared/AccessStatusBadge.ts
13355
+ const cls$10 = (element) => (0, __thunderid_browser.withVendorCSSClassPrefix)(`admin__${element}`);
13356
+ /**
13357
+ * The translated access status of an identity, or its raw value when the status is one this SDK does
13358
+ * not know. Renders nothing when the server reports no status.
13359
+ */
13360
+ const AccessStatusBadge = (0, vue.defineComponent)({
13361
+ name: "AdminAccessStatusBadge",
13362
+ props: {
13363
+ status: {
13364
+ default: void 0,
13365
+ type: String
13366
+ },
13367
+ t: {
13368
+ required: true,
13369
+ type: Function
13370
+ }
13371
+ },
13372
+ setup(props) {
13373
+ return () => {
13374
+ if (!props.status) return null;
13375
+ const labels = {
13376
+ ACTIVE: props.t("admin.common.status.active"),
13377
+ LOCKED: props.t("admin.common.status.locked"),
13378
+ SUSPENDED: props.t("admin.common.status.suspended")
13379
+ };
13380
+ return (0, vue.h)("span", { class: cls$10("chip") }, labels[props.status] ?? props.status);
13381
+ };
13382
+ }
13383
+ });
13384
+ var AccessStatusBadge_default = AccessStatusBadge;
13385
+
13386
+ //#endregion
13387
+ //#region src/components/admin/shared/AccountLifecycleButtons.ts
13388
+ const cls$9 = (element) => (0, __thunderid_browser.withVendorCSSClassPrefix)(`admin__${element}`);
13389
+ /**
13390
+ * Matches the server's limit on an operator note.
13391
+ */
13392
+ const OPERATOR_NOTE_MAX_LENGTH = 100;
13393
+ /**
13394
+ * One button per account lifecycle action. Suspending and unsuspending ask for confirmation inline;
13395
+ * unlocking is remedial and runs straight away. Emits `action` with the action and, on a suspension
13396
+ * that collects one, the operator's note.
13397
+ */
13398
+ const AccountLifecycleButtons = (0, vue.defineComponent)({
13399
+ name: "AdminAccountLifecycleButtons",
13400
+ props: {
13401
+ actions: {
13402
+ required: true,
13403
+ type: Array
13404
+ },
13405
+ collectsOperatorNote: {
13406
+ default: false,
13407
+ type: Boolean
13408
+ },
13409
+ isRunning: {
13410
+ default: false,
13411
+ type: Boolean
13412
+ },
13413
+ name: {
13414
+ required: true,
13415
+ type: String
13416
+ },
13417
+ t: {
13418
+ required: true,
13419
+ type: Function
13420
+ }
13421
+ },
13422
+ emits: ["action"],
13423
+ setup(props, { emit }) {
13424
+ const uid = (0, vue.useId)();
13425
+ const confirming = (0, vue.ref)(null);
13426
+ const operatorNote = (0, vue.ref)("");
13427
+ const close = () => {
13428
+ confirming.value = null;
13429
+ operatorNote.value = "";
13430
+ };
13431
+ return () => {
13432
+ const { t } = props;
13433
+ if (props.actions.length === 0) return null;
13434
+ const labels = {
13435
+ suspend: t("admin.common.lifecycle.suspend"),
13436
+ unlock: t("admin.common.lifecycle.unlock"),
13437
+ unsuspend: t("admin.common.lifecycle.unsuspend")
13438
+ };
13439
+ const action = confirming.value;
13440
+ if (action && props.actions.includes(action)) {
13441
+ const question = action === "suspend" ? t("admin.common.lifecycle.suspend_confirm", { name: props.name }) : t("admin.common.lifecycle.unsuspend_confirm", { name: props.name });
13442
+ const withNote = props.collectsOperatorNote && action === "suspend";
13443
+ return (0, vue.h)("span", {
13444
+ "aria-label": question,
13445
+ class: cls$9("confirm"),
13446
+ role: "group"
13447
+ }, [
13448
+ (0, vue.h)("span", {}, question),
13449
+ withNote ? (0, vue.h)(TextField_default, {
13450
+ disabled: props.isRunning,
13451
+ label: t("admin.common.lifecycle.operator_note"),
13452
+ maxLength: OPERATOR_NOTE_MAX_LENGTH,
13453
+ modelValue: operatorNote.value,
13454
+ name: `${uid}-operator-note`,
13455
+ "onUpdate:modelValue": (value) => {
13456
+ operatorNote.value = value;
13457
+ }
13458
+ }) : null,
13459
+ (0, vue.h)(Button_default, {
13460
+ disabled: props.isRunning,
13461
+ onClick: close,
13462
+ size: "small",
13463
+ variant: "text"
13464
+ }, { default: () => t("admin.common.actions.cancel") }),
13465
+ (0, vue.h)(Button_default, {
13466
+ color: action === "suspend" ? "danger" : "primary",
13467
+ disabled: props.isRunning,
13468
+ loading: props.isRunning,
13469
+ onClick: () => {
13470
+ emit("action", action, withNote ? operatorNote.value.trim() || void 0 : void 0);
13471
+ close();
13472
+ },
13473
+ size: "small"
13474
+ }, { default: () => labels[action] })
13475
+ ]);
13476
+ }
13477
+ return props.actions.map((offered) => (0, vue.h)(Button_default, {
13478
+ color: offered === "suspend" ? "danger" : "primary",
13479
+ disabled: props.isRunning,
13480
+ key: offered,
13481
+ loading: props.isRunning && offered === "unlock",
13482
+ onClick: () => {
13483
+ if (offered === "unlock") emit("action", offered);
13484
+ else confirming.value = offered;
13485
+ },
13486
+ variant: "outline"
13487
+ }, { default: () => labels[offered] }));
13488
+ };
13489
+ }
13490
+ });
13491
+ var AccountLifecycleButtons_default = AccountLifecycleButtons;
13492
+
13354
13493
  //#endregion
13355
13494
  //#region src/components/admin/shared/ChipList.ts
13356
13495
  const cls$8 = (element) => (0, __thunderid_browser.withVendorCSSClassPrefix)(`admin__${element}`);
@@ -13540,14 +13679,26 @@ const BaseUserDetails = (0, vue.defineComponent)({
13540
13679
  default: false,
13541
13680
  type: Boolean
13542
13681
  },
13682
+ isRunningLifecycleAction: {
13683
+ default: false,
13684
+ type: Boolean
13685
+ },
13543
13686
  isUpdating: {
13544
13687
  default: false,
13545
13688
  type: Boolean
13546
13689
  },
13690
+ lifecycleActions: {
13691
+ default: () => [],
13692
+ type: Array
13693
+ },
13547
13694
  onDelete: {
13548
13695
  default: void 0,
13549
13696
  type: Function
13550
13697
  },
13698
+ onLifecycleAction: {
13699
+ default: void 0,
13700
+ type: Function
13701
+ },
13551
13702
  onUpdate: {
13552
13703
  default: void 0,
13553
13704
  type: Function
@@ -13576,8 +13727,11 @@ const BaseUserDetails = (0, vue.defineComponent)({
13576
13727
  groups: props.groups,
13577
13728
  isDeleting: props.isDeleting,
13578
13729
  isLoading: props.isLoading,
13730
+ isRunningLifecycleAction: props.isRunningLifecycleAction,
13579
13731
  isUpdating: props.isUpdating,
13732
+ lifecycleActions: props.onLifecycleAction && user ? props.lifecycleActions : [],
13580
13733
  onDelete: isWritable ? props.onDelete : void 0,
13734
+ onLifecycleAction: user ? props.onLifecycleAction : void 0,
13581
13735
  onUpdate: isWritable ? props.onUpdate : void 0,
13582
13736
  user
13583
13737
  };
@@ -13650,18 +13804,36 @@ const BaseUserDetails = (0, vue.defineComponent)({
13650
13804
  description: t("admin.users.details.subtitle", { type: user.type }),
13651
13805
  title: displayName
13652
13806
  }, {
13653
- actions: () => [slots["actions"]?.(), props.onDelete && !user.isReadOnly ? (0, vue.h)(ConfirmButton_default, {
13654
- confirmText: t("admin.users.details.delete.confirm", { name: displayName }),
13655
- isLoading: props.isDeleting,
13656
- onConfirm: props.onDelete,
13657
- t
13658
- }, { default: () => t("admin.users.details.delete.action") }) : null],
13807
+ actions: () => [
13808
+ slots["actions"]?.(),
13809
+ props.onLifecycleAction ? (0, vue.h)(AccountLifecycleButtons_default, {
13810
+ actions: props.lifecycleActions,
13811
+ collectsOperatorNote: true,
13812
+ isRunning: props.isRunningLifecycleAction,
13813
+ name: displayName,
13814
+ onAction: props.onLifecycleAction,
13815
+ t
13816
+ }) : null,
13817
+ props.onDelete && !user.isReadOnly ? (0, vue.h)(ConfirmButton_default, {
13818
+ confirmText: t("admin.users.details.delete.confirm", { name: displayName }),
13819
+ isLoading: props.isDeleting,
13820
+ onConfirm: props.onDelete,
13821
+ t
13822
+ }, { default: () => t("admin.users.details.delete.action") }) : null
13823
+ ],
13659
13824
  default: () => [
13660
13825
  props.error ? (0, vue.h)(Alert_default, { severity: "error" }, { default: () => [props.error] }) : null,
13661
- (0, vue.h)("div", { class: cls$4("row") }, [(0, vue.h)(AdminAvatar_default, {
13662
- name: displayName,
13663
- size: 48
13664
- }), (0, vue.h)("span", { class: cls$4("muted") }, user.ouHandle ?? user.ouId)]),
13826
+ (0, vue.h)("div", { class: cls$4("row") }, [
13827
+ (0, vue.h)(AdminAvatar_default, {
13828
+ name: displayName,
13829
+ size: 48
13830
+ }),
13831
+ (0, vue.h)("span", { class: cls$4("muted") }, user.ouHandle ?? user.ouId),
13832
+ (0, vue.h)(AccessStatusBadge_default, {
13833
+ status: user.status?.value,
13834
+ t
13835
+ })
13836
+ ]),
13665
13837
  (0, vue.h)(Panel_default, { title: t("admin.users.details.attributes") }, {
13666
13838
  actions: () => canEdit && !draft.value ? (0, vue.h)(Button_default, {
13667
13839
  onClick: () => {
@@ -13687,6 +13859,55 @@ const BaseUserDetails = (0, vue.defineComponent)({
13687
13859
  });
13688
13860
  var BaseUserDetails_default = BaseUserDetails;
13689
13861
 
13862
+ //#endregion
13863
+ //#region src/composables/management/useAccountLifecycle.ts
13864
+ /**
13865
+ * Offers the account lifecycle actions (suspend, unsuspend, unlock) of a user, agent or application and
13866
+ * runs them. These actions have no management API endpoint: they run only through the administration
13867
+ * flows the server configures, so an action is offered only when its flow is configured.
13868
+ *
13869
+ * @example
13870
+ * ```typescript
13871
+ * const lifecycle = useAccountLifecycle({
13872
+ * enabled: () => props.lifecycleActions,
13873
+ * invalidatedKeys: () => [[UserQueryKeys.USER, props.userId]],
13874
+ * kind: 'user',
13875
+ * status: () => user.data.value?.status?.value,
13876
+ * subject: () => props.userId,
13877
+ * });
13878
+ * ```
13879
+ */
13880
+ const useAccountLifecycle = ({ enabled, invalidatedKeys, kind, status, subject }) => {
13881
+ const { baseUrl } = useThunderID_default();
13882
+ const flows = useResourceQuery_default(() => [
13883
+ "administration-flows",
13884
+ "account-lifecycle",
13885
+ kind
13886
+ ], (fetcher) => (0, __thunderid_browser.resolveAdministrationFlows)({
13887
+ baseUrl,
13888
+ fetcher
13889
+ }, Object.values(__thunderid_browser.AccountLifecycleFlowConfigKey[kind])), { enabled });
13890
+ const execution = useResourceMutation_default(({ action, operatorNote }, fetcher) => (0, __thunderid_browser.runAccountLifecycleAction)({
13891
+ action,
13892
+ baseUrl,
13893
+ fetcher,
13894
+ kind,
13895
+ operatorNote,
13896
+ subject: subject()
13897
+ }), () => invalidatedKeys());
13898
+ return {
13899
+ actions: (0, vue.computed)(() => enabled() && flows.data.value ? (0, __thunderid_browser.getAccountLifecycleActions)(kind, status(), flows.data.value) : []),
13900
+ error: (0, vue.computed)(() => execution.error.value),
13901
+ isRunning: (0, vue.computed)(() => execution.isLoading.value),
13902
+ loadError: (0, vue.computed)(() => flows.error.value),
13903
+ run: (action, operatorNote) => void execution.mutate({
13904
+ action,
13905
+ operatorNote
13906
+ })
13907
+ };
13908
+ };
13909
+ var useAccountLifecycle_default = useAccountLifecycle;
13910
+
13690
13911
  //#endregion
13691
13912
  //#region src/components/admin/UserDetails/UserDetails.ts
13692
13913
  /**
@@ -13703,6 +13924,10 @@ var BaseUserDetails_default = BaseUserDetails;
13703
13924
  const UserDetails = (0, vue.defineComponent)({
13704
13925
  name: "UserDetails",
13705
13926
  props: {
13927
+ administrationMode: {
13928
+ default: void 0,
13929
+ type: String
13930
+ },
13706
13931
  className: {
13707
13932
  default: "",
13708
13933
  type: String
@@ -13719,6 +13944,10 @@ const UserDetails = (0, vue.defineComponent)({
13719
13944
  default: () => ["password"],
13720
13945
  type: Array
13721
13946
  },
13947
+ lifecycleActions: {
13948
+ default: false,
13949
+ type: Boolean
13950
+ },
13722
13951
  preferences: {
13723
13952
  default: void 0,
13724
13953
  type: Object
@@ -13751,6 +13980,7 @@ const UserDetails = (0, vue.defineComponent)({
13751
13980
  }), { enabled: hasUserId });
13752
13981
  const deletion = useResourceMutation_default((userId, fetcher) => (0, __thunderid_browser.deleteUser)({
13753
13982
  ...endpoint,
13983
+ administrationMode: props.administrationMode,
13754
13984
  fetcher,
13755
13985
  userId
13756
13986
  }), () => [[__thunderid_browser.UserQueryKeys.USERS]], { onSuccess: () => emit("deleted") });
@@ -13760,17 +13990,27 @@ const UserDetails = (0, vue.defineComponent)({
13760
13990
  payload: data,
13761
13991
  userId
13762
13992
  }), ({ userId }) => [[__thunderid_browser.UserQueryKeys.USER, userId], [__thunderid_browser.UserQueryKeys.USERS]]);
13993
+ const lifecycle = useAccountLifecycle_default({
13994
+ enabled: () => props.lifecycleActions,
13995
+ invalidatedKeys: () => [[__thunderid_browser.UserQueryKeys.USER, props.userId], [__thunderid_browser.UserQueryKeys.USERS]],
13996
+ kind: "user",
13997
+ status: () => user.data.value?.status?.value,
13998
+ subject: () => props.userId
13999
+ });
13763
14000
  return () => {
13764
14001
  const current = user.data.value;
13765
14002
  return (0, vue.h)(BaseUserDetails_default, {
13766
14003
  className: props.className,
13767
- error: (0, __thunderid_browser.toManagementErrorMessage)(t, user.error.value, "admin.users.details.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, deletion.error.value, "admin.users.details.delete.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, update.error.value, "admin.users.details.edit.error"),
14004
+ error: (0, __thunderid_browser.toManagementErrorMessage)(t, user.error.value, "admin.users.details.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, deletion.error.value, "admin.users.details.delete.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, update.error.value, "admin.users.details.edit.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, lifecycle.error.value, "admin.common.lifecycle.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, lifecycle.loadError.value, "admin.common.lifecycle.load_error"),
13768
14005
  groups: groups.data.value?.groups ?? [],
13769
14006
  hiddenAttributes: props.hiddenAttributes,
13770
14007
  isDeleting: deletion.isLoading.value,
13771
14008
  isLoading: user.isLoading.value,
14009
+ isRunningLifecycleAction: lifecycle.isRunning.value,
13772
14010
  isUpdating: update.isLoading.value,
14011
+ lifecycleActions: lifecycle.actions.value,
13773
14012
  onDelete: props.deletable ? () => void deletion.mutate(props.userId) : void 0,
14013
+ onLifecycleAction: props.lifecycleActions ? lifecycle.run : void 0,
13774
14014
  onUpdate: props.editable && current ? (attributes) => void update.mutate({
13775
14015
  data: {
13776
14016
  attributes,
@@ -14223,6 +14463,10 @@ var BaseGroupMembers_default = BaseGroupMembers;
14223
14463
  const GroupMembers = (0, vue.defineComponent)({
14224
14464
  name: "GroupMembers",
14225
14465
  props: {
14466
+ administrationMode: {
14467
+ default: void 0,
14468
+ type: String
14469
+ },
14226
14470
  className: {
14227
14471
  default: "",
14228
14472
  type: String
@@ -14288,6 +14532,7 @@ const GroupMembers = (0, vue.defineComponent)({
14288
14532
  }), invalidatedByMembership);
14289
14533
  const remove = useResourceMutation_default(({ groupId, members: removed }, fetcher) => (0, __thunderid_browser.removeGroupMembers)({
14290
14534
  ...groupsEndpoint,
14535
+ administrationMode: props.administrationMode,
14291
14536
  fetcher,
14292
14537
  groupId,
14293
14538
  members: removed
@@ -14708,6 +14953,10 @@ var BaseRoleAssignments_default = BaseRoleAssignments;
14708
14953
  const RoleAssignments = (0, vue.defineComponent)({
14709
14954
  name: "RoleAssignments",
14710
14955
  props: {
14956
+ administrationMode: {
14957
+ default: void 0,
14958
+ type: String
14959
+ },
14711
14960
  className: {
14712
14961
  default: "",
14713
14962
  type: String
@@ -14782,6 +15031,7 @@ const RoleAssignments = (0, vue.defineComponent)({
14782
15031
  }), () => [[__thunderid_browser.RoleQueryKeys.ROLE_ASSIGNMENTS]]);
14783
15032
  const unassign = useResourceMutation_default(({ roleId, assignments: removed }, fetcher) => (0, __thunderid_browser.removeRoleAssignments)({
14784
15033
  ...rolesEndpoint,
15034
+ administrationMode: props.administrationMode,
14785
15035
  assignments: removed,
14786
15036
  fetcher,
14787
15037
  roleId
@@ -15280,10 +15530,22 @@ const BaseAgentDetails = (0, vue.defineComponent)({
15280
15530
  default: false,
15281
15531
  type: Boolean
15282
15532
  },
15533
+ isRunningLifecycleAction: {
15534
+ default: false,
15535
+ type: Boolean
15536
+ },
15537
+ lifecycleActions: {
15538
+ default: () => [],
15539
+ type: Array
15540
+ },
15283
15541
  onDelete: {
15284
15542
  default: void 0,
15285
15543
  type: Function
15286
15544
  },
15545
+ onLifecycleAction: {
15546
+ default: void 0,
15547
+ type: Function
15548
+ },
15287
15549
  preferences: {
15288
15550
  default: void 0,
15289
15551
  type: Object
@@ -15304,7 +15566,10 @@ const BaseAgentDetails = (0, vue.defineComponent)({
15304
15566
  groups: props.groups,
15305
15567
  isDeleting: props.isDeleting,
15306
15568
  isLoading: props.isLoading,
15569
+ isRunningLifecycleAction: props.isRunningLifecycleAction,
15570
+ lifecycleActions: props.onLifecycleAction && agent ? props.lifecycleActions : [],
15307
15571
  onDelete: agent && !agent.isReadOnly ? props.onDelete : void 0,
15572
+ onLifecycleAction: agent ? props.onLifecycleAction : void 0,
15308
15573
  roles: props.roles
15309
15574
  };
15310
15575
  return (0, vue.h)("div", { class: props.className }, slots["default"](renderProps));
@@ -15337,6 +15602,13 @@ const BaseAgentDetails = (0, vue.defineComponent)({
15337
15602
  value: agent.ouHandle ?? agent.ouId
15338
15603
  }
15339
15604
  ];
15605
+ if (agent.status) details.push({
15606
+ label: t("admin.common.columns.status"),
15607
+ value: (0, vue.h)(AccessStatusBadge_default, {
15608
+ status: agent.status.value,
15609
+ t
15610
+ })
15611
+ });
15340
15612
  if (agent.clientId) details.push({
15341
15613
  label: t("admin.agents.list.columns.client_id"),
15342
15614
  value: (0, vue.h)(CopyableText_default, { value: agent.clientId })
@@ -15347,12 +15619,23 @@ const BaseAgentDetails = (0, vue.defineComponent)({
15347
15619
  description: agent.description,
15348
15620
  title: agent.name
15349
15621
  }, {
15350
- actions: () => [slots["actions"]?.(), props.onDelete && !agent.isReadOnly ? (0, vue.h)(ConfirmButton_default, {
15351
- confirmText: t("admin.agents.details.delete.confirm", { name: agent.name }),
15352
- isLoading: props.isDeleting,
15353
- onConfirm: props.onDelete,
15354
- t
15355
- }, { default: () => t("admin.agents.details.delete.action") }) : null],
15622
+ actions: () => [
15623
+ slots["actions"]?.(),
15624
+ props.onLifecycleAction ? (0, vue.h)(AccountLifecycleButtons_default, {
15625
+ actions: props.lifecycleActions,
15626
+ collectsOperatorNote: true,
15627
+ isRunning: props.isRunningLifecycleAction,
15628
+ name: agent.name,
15629
+ onAction: props.onLifecycleAction,
15630
+ t
15631
+ }) : null,
15632
+ props.onDelete && !agent.isReadOnly ? (0, vue.h)(ConfirmButton_default, {
15633
+ confirmText: t("admin.agents.details.delete.confirm", { name: agent.name }),
15634
+ isLoading: props.isDeleting,
15635
+ onConfirm: props.onDelete,
15636
+ t
15637
+ }, { default: () => t("admin.agents.details.delete.action") }) : null
15638
+ ],
15356
15639
  default: () => [
15357
15640
  props.error ? (0, vue.h)(Alert_default, { severity: "error" }, { default: () => [props.error] }) : null,
15358
15641
  (0, vue.h)(Panel_default, { title: t("admin.agents.details.overview") }, { default: () => (0, vue.h)(DetailList_default, { items: details }) }),
@@ -15407,6 +15690,10 @@ const AgentDetails = (0, vue.defineComponent)({
15407
15690
  default: false,
15408
15691
  type: Boolean
15409
15692
  },
15693
+ lifecycleActions: {
15694
+ default: false,
15695
+ type: Boolean
15696
+ },
15410
15697
  preferences: {
15411
15698
  default: void 0,
15412
15699
  type: Object
@@ -15449,14 +15736,24 @@ const AgentDetails = (0, vue.defineComponent)({
15449
15736
  agentId,
15450
15737
  fetcher
15451
15738
  }), () => [[__thunderid_browser.AgentQueryKeys.AGENTS]], { onSuccess: () => emit("deleted") });
15739
+ const lifecycle = useAccountLifecycle_default({
15740
+ enabled: () => props.lifecycleActions,
15741
+ invalidatedKeys: () => [[__thunderid_browser.AgentQueryKeys.AGENT, props.agentId], [__thunderid_browser.AgentQueryKeys.AGENTS]],
15742
+ kind: "agent",
15743
+ status: () => agent.data.value?.status?.value,
15744
+ subject: () => props.agentId
15745
+ });
15452
15746
  return () => (0, vue.h)(BaseAgentDetails_default, {
15453
15747
  agent: agent.data.value,
15454
15748
  className: props.className,
15455
- error: (0, __thunderid_browser.toManagementErrorMessage)(t, agent.error.value, "admin.agents.details.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, deletion.error.value, "admin.agents.details.delete.error"),
15749
+ error: (0, __thunderid_browser.toManagementErrorMessage)(t, agent.error.value, "admin.agents.details.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, deletion.error.value, "admin.agents.details.delete.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, lifecycle.error.value, "admin.common.lifecycle.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, lifecycle.loadError.value, "admin.common.lifecycle.load_error"),
15456
15750
  groups: groups.data.value?.groups ?? [],
15457
15751
  isDeleting: deletion.isLoading.value,
15458
15752
  isLoading: agent.isLoading.value,
15753
+ isRunningLifecycleAction: lifecycle.isRunning.value,
15754
+ lifecycleActions: lifecycle.actions.value,
15459
15755
  onDelete: props.deletable ? () => void deletion.mutate(props.agentId) : void 0,
15756
+ onLifecycleAction: props.lifecycleActions ? lifecycle.run : void 0,
15460
15757
  preferences: props.preferences,
15461
15758
  roles: roles.data.value?.roles ?? []
15462
15759
  }, { ...slots });
@@ -15903,14 +16200,26 @@ const BaseApplicationDetails = (0, vue.defineComponent)({
15903
16200
  default: false,
15904
16201
  type: Boolean
15905
16202
  },
16203
+ isRunningLifecycleAction: {
16204
+ default: false,
16205
+ type: Boolean
16206
+ },
15906
16207
  isUpdating: {
15907
16208
  default: false,
15908
16209
  type: Boolean
15909
16210
  },
16211
+ lifecycleActions: {
16212
+ default: () => [],
16213
+ type: Array
16214
+ },
15910
16215
  onDelete: {
15911
16216
  default: void 0,
15912
16217
  type: Function
15913
16218
  },
16219
+ onLifecycleAction: {
16220
+ default: void 0,
16221
+ type: Function
16222
+ },
15914
16223
  onRegenerateSecret: {
15915
16224
  default: void 0,
15916
16225
  type: Function
@@ -15950,9 +16259,12 @@ const BaseApplicationDetails = (0, vue.defineComponent)({
15950
16259
  isDeleting: props.isDeleting,
15951
16260
  isLoading: props.isLoading,
15952
16261
  isRegeneratingSecret: props.isRegeneratingSecret,
16262
+ isRunningLifecycleAction: props.isRunningLifecycleAction,
15953
16263
  isUpdating: props.isUpdating,
16264
+ lifecycleActions: props.onLifecycleAction && application ? props.lifecycleActions : [],
15954
16265
  oauth,
15955
16266
  onDelete: isWritable ? props.onDelete : void 0,
16267
+ onLifecycleAction: application ? props.onLifecycleAction : void 0,
15956
16268
  onRegenerateSecret: canRegenerate ? props.onRegenerateSecret : void 0,
15957
16269
  onSecretDismiss: props.clientSecret ? props.onSecretDismiss : void 0,
15958
16270
  onUpdate: isWritable ? props.onUpdate : void 0
@@ -15996,6 +16308,13 @@ const BaseApplicationDetails = (0, vue.defineComponent)({
15996
16308
  value: application.logoUrl ?? notSet
15997
16309
  }
15998
16310
  ];
16311
+ if (application.status?.value) overview.push({
16312
+ label: t("admin.common.columns.status"),
16313
+ value: (0, vue.h)(AccessStatusBadge_default, {
16314
+ status: application.status.value,
16315
+ t
16316
+ })
16317
+ });
15999
16318
  const renderEditForm = (current) => (0, vue.h)(Panel_default, { title: t("admin.applications.details.edit.action") }, { default: () => (0, vue.h)("form", {
16000
16319
  class: cls("edit-form"),
16001
16320
  novalidate: true,
@@ -16079,12 +16398,22 @@ const BaseApplicationDetails = (0, vue.defineComponent)({
16079
16398
  description: application.description,
16080
16399
  title: application.name
16081
16400
  }, {
16082
- actions: () => [slots["actions"]?.(), props.onDelete && isWritable ? (0, vue.h)(ConfirmButton_default, {
16083
- confirmText: t("admin.applications.details.delete.confirm", { name: application.name }),
16084
- isLoading: props.isDeleting,
16085
- onConfirm: props.onDelete,
16086
- t
16087
- }, { default: () => t("admin.applications.details.delete.action") }) : null],
16401
+ actions: () => [
16402
+ slots["actions"]?.(),
16403
+ props.onLifecycleAction ? (0, vue.h)(AccountLifecycleButtons_default, {
16404
+ actions: props.lifecycleActions,
16405
+ isRunning: props.isRunningLifecycleAction,
16406
+ name: application.name,
16407
+ onAction: props.onLifecycleAction,
16408
+ t
16409
+ }) : null,
16410
+ props.onDelete && isWritable ? (0, vue.h)(ConfirmButton_default, {
16411
+ confirmText: t("admin.applications.details.delete.confirm", { name: application.name }),
16412
+ isLoading: props.isDeleting,
16413
+ onConfirm: props.onDelete,
16414
+ t
16415
+ }, { default: () => t("admin.applications.details.delete.action") }) : null
16416
+ ],
16088
16417
  default: () => [props.error ? (0, vue.h)(Alert_default, { severity: "error" }, { default: () => [props.error] }) : null, ...draft.value ? [renderEditForm(draft.value)] : [(0, vue.h)(Panel_default, { title: t("admin.applications.details.overview") }, {
16089
16418
  actions: () => props.onUpdate && isWritable ? (0, vue.h)(Button_default, {
16090
16419
  onClick: () => {
@@ -16129,6 +16458,10 @@ var BaseApplicationDetails_default = BaseApplicationDetails;
16129
16458
  const ApplicationDetails = (0, vue.defineComponent)({
16130
16459
  name: "ApplicationDetails",
16131
16460
  props: {
16461
+ administrationMode: {
16462
+ default: void 0,
16463
+ type: String
16464
+ },
16132
16465
  applicationId: {
16133
16466
  required: true,
16134
16467
  type: String
@@ -16145,6 +16478,10 @@ const ApplicationDetails = (0, vue.defineComponent)({
16145
16478
  default: false,
16146
16479
  type: Boolean
16147
16480
  },
16481
+ lifecycleActions: {
16482
+ default: false,
16483
+ type: Boolean
16484
+ },
16148
16485
  preferences: {
16149
16486
  default: void 0,
16150
16487
  type: Object
@@ -16165,6 +16502,7 @@ const ApplicationDetails = (0, vue.defineComponent)({
16165
16502
  }), { enabled: () => Boolean(props.applicationId) });
16166
16503
  const deletion = useResourceMutation_default((applicationId, fetcher) => (0, __thunderid_browser.deleteApplication)({
16167
16504
  ...endpoint,
16505
+ administrationMode: props.administrationMode,
16168
16506
  applicationId,
16169
16507
  fetcher
16170
16508
  }), () => [[__thunderid_browser.ApplicationQueryKeys.APPLICATIONS]], { onSuccess: () => emit("deleted") });
@@ -16176,21 +16514,32 @@ const ApplicationDetails = (0, vue.defineComponent)({
16176
16514
  }), ({ application: current }) => [[__thunderid_browser.ApplicationQueryKeys.APPLICATION, current.id], [__thunderid_browser.ApplicationQueryKeys.APPLICATIONS]]);
16177
16515
  const regeneration = useResourceMutation_default((applicationId, fetcher) => (0, __thunderid_browser.regenerateClientSecret)({
16178
16516
  ...endpoint,
16517
+ administrationMode: props.administrationMode,
16179
16518
  applicationId,
16180
16519
  fetcher
16181
16520
  }), (applicationId) => [[__thunderid_browser.ApplicationQueryKeys.APPLICATION, applicationId], [__thunderid_browser.ApplicationQueryKeys.APPLICATIONS]]);
16521
+ const lifecycle = useAccountLifecycle_default({
16522
+ enabled: () => props.lifecycleActions,
16523
+ invalidatedKeys: () => [[__thunderid_browser.ApplicationQueryKeys.APPLICATION, props.applicationId], [__thunderid_browser.ApplicationQueryKeys.APPLICATIONS]],
16524
+ kind: "application",
16525
+ status: () => application.data.value?.status?.value,
16526
+ subject: () => props.applicationId
16527
+ });
16182
16528
  return () => {
16183
16529
  const current = application.data.value;
16184
16530
  return (0, vue.h)(BaseApplicationDetails_default, {
16185
16531
  application: current,
16186
16532
  className: props.className,
16187
16533
  clientSecret: regeneration.data.value?.clientSecret ?? null,
16188
- error: (0, __thunderid_browser.toManagementErrorMessage)(t, application.error.value, "admin.applications.details.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, deletion.error.value, "admin.applications.details.delete.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, update.error.value, "admin.applications.details.edit.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, regeneration.error.value, "admin.applications.details.secret.error"),
16534
+ error: (0, __thunderid_browser.toManagementErrorMessage)(t, application.error.value, "admin.applications.details.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, deletion.error.value, "admin.applications.details.delete.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, update.error.value, "admin.applications.details.edit.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, regeneration.error.value, "admin.applications.details.secret.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, lifecycle.error.value, "admin.common.lifecycle.error") ?? (0, __thunderid_browser.toManagementErrorMessage)(t, lifecycle.loadError.value, "admin.common.lifecycle.load_error"),
16189
16535
  isDeleting: deletion.isLoading.value,
16190
16536
  isLoading: application.isLoading.value,
16191
16537
  isRegeneratingSecret: regeneration.isLoading.value,
16538
+ isRunningLifecycleAction: lifecycle.isRunning.value,
16192
16539
  isUpdating: update.isLoading.value,
16540
+ lifecycleActions: lifecycle.actions.value,
16193
16541
  onDelete: props.deletable ? () => void deletion.mutate(props.applicationId) : void 0,
16542
+ onLifecycleAction: props.lifecycleActions ? lifecycle.run : void 0,
16194
16543
  onRegenerateSecret: props.secretRegenerable ? () => void regeneration.mutate(props.applicationId) : void 0,
16195
16544
  onSecretDismiss: regeneration.reset,
16196
16545
  onUpdate: props.editable && current ? (changes) => void update.mutate({
@@ -16347,6 +16696,12 @@ Object.defineProperty(exports, 'ADMINISTRATION_FLOW_TYPE', {
16347
16696
  }
16348
16697
  });
16349
16698
  exports.AcceptInvite = AcceptInvite_default;
16699
+ Object.defineProperty(exports, 'AccountLifecycleFlowConfigKey', {
16700
+ enumerable: true,
16701
+ get: function () {
16702
+ return __thunderid_browser.AccountLifecycleFlowConfigKey;
16703
+ }
16704
+ });
16350
16705
  Object.defineProperty(exports, 'AdministrationFlowConfigKey', {
16351
16706
  enumerable: true,
16352
16707
  get: function () {
@@ -16967,6 +17322,12 @@ Object.defineProperty(exports, 'findAdministrationFlows', {
16967
17322
  return __thunderid_browser.findAdministrationFlows;
16968
17323
  }
16969
17324
  });
17325
+ Object.defineProperty(exports, 'getAccountLifecycleActions', {
17326
+ enumerable: true,
17327
+ get: function () {
17328
+ return __thunderid_browser.getAccountLifecycleActions;
17329
+ }
17330
+ });
16970
17331
  Object.defineProperty(exports, 'getAction', {
16971
17332
  enumerable: true,
16972
17333
  get: function () {
@@ -17561,6 +17922,12 @@ Object.defineProperty(exports, 'revertGatewayConfiguration', {
17561
17922
  return __thunderid_browser.revertGatewayConfiguration;
17562
17923
  }
17563
17924
  });
17925
+ Object.defineProperty(exports, 'runAccountLifecycleAction', {
17926
+ enumerable: true,
17927
+ get: function () {
17928
+ return __thunderid_browser.runAccountLifecycleAction;
17929
+ }
17930
+ });
17564
17931
  Object.defineProperty(exports, 'runAdministrationFlow', {
17565
17932
  enumerable: true,
17566
17933
  get: function () {