@zitadel/components 0.1.0-alpha.11 → 0.1.0-alpha.13

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.
@@ -37,7 +37,7 @@ declare class ZlIcon extends LitElement {
37
37
  render(): _$lit.TemplateResult<1>;
38
38
  }
39
39
  /** Public, kebab-case glyph IDs. Add a new one by extending both this union and {@link ICON_NODES}. */
40
- type IconName = "plus" | "arrow-right" | "arrow-left" | "spinner" | "check" | "cross" | "warning" | "alert-circle" | "info" | "passkey" | "user" | "eye" | "eye-off";
40
+ type IconName = "plus" | "arrow-right" | "arrow-left" | "spinner" | "check" | "chevron-down" | "cross" | "warning" | "alert-circle" | "info" | "passkey" | "user" | "eye" | "eye-off";
41
41
  type IconSize = "16" | "24";
42
42
  type IconTone = "default" | "error" | "success" | "disabled";
43
43
  declare const zlIconManifest: AtomManifest;
@@ -250,7 +250,99 @@ declare global {
250
250
  }
251
251
  } //# sourceMappingURL=zl-card.d.ts.map
252
252
  //#endregion
253
- //#region ../api/dist/index-BGnjxx-b.d.mts
253
+ //#region src/atoms/zl-checkbox.d.ts
254
+ /** Detail shape emitted by the `zl-change` event. */
255
+ type ZlCheckboxChangeDetail = {
256
+ name: string;
257
+ checked: boolean;
258
+ value: string;
259
+ };
260
+ /**
261
+ * Atom: `<zl-checkbox>` — labelled checkbox bound to a boolean choice.
262
+ *
263
+ * Spec lineage (file `8UjCXw8yemgljmbkWGrSfE`, "Zitadel - Design System - External"):
264
+ * - bare master variant set: node `4387:460` (Checkbox)
265
+ * - labelled master variant set: node `6634:1868` (Checkbox / With Label)
266
+ *
267
+ * Figma models the checked state as the `style` variant (Outline = unchecked,
268
+ * Filled = checked) and Hovered / Focused / Pressed as a 32px circular halo
269
+ * behind the 16px box. Those map to real CSS pseudo-classes; only the optional
270
+ * `data-state` preview hook forces a state for the design matrix.
271
+ *
272
+ * Box 16px, 2px radius, 8px gap to label, Inter 14/20 label.
273
+ * Unchecked 1px border icon.default-white (#f4f4f6).
274
+ * Checked filled icon.default-white with a dark check glyph.
275
+ * Hover halo surface.default-primary-gray; edge/fill icon.default-gray.
276
+ * Focus/Pressed halo + edge/fill surface.default-white.
277
+ * Disabled edge/fill text.disabled (#686883), muted label, no halo.
278
+ *
279
+ * Form participation: `<zl-checkbox>` is a form-associated custom element, so
280
+ * it submits its `value` only when checked, exactly like a native checkbox.
281
+ */
282
+ declare class ZlCheckbox extends LitElement {
283
+ static formAssociated: boolean;
284
+ static shadowRootOptions: ShadowRootInit;
285
+ static styles: _$lit.CSSResult[];
286
+ /**
287
+ * Field name — used as the key in form submission and in `zl-change` detail.
288
+ * The browser owns a native `name` property on form-associated elements, so
289
+ * we manage it manually to avoid a conflicting auto-generated accessor (see
290
+ * `<zl-field>`).
291
+ */
292
+ get name(): string;
293
+ set name(value: string);
294
+ accessor label: string;
295
+ accessor value: string;
296
+ accessor checked: boolean;
297
+ accessor disabled: boolean;
298
+ accessor required: boolean;
299
+ accessor ariaLabelText: string | undefined;
300
+ accessor testId: string | undefined;
301
+ /**
302
+ * Forces a visual interaction state on the box, projected to the root's
303
+ * `data-state` attribute. Preview-only — used by the design matrix to
304
+ * capture hover/focus/pressed without real pointer interaction.
305
+ */
306
+ accessor forcedState: string | null;
307
+ private accessor inputEl;
308
+ private readonly inputId;
309
+ private readonly internals;
310
+ private defaultChecked;
311
+ constructor();
312
+ connectedCallback(): void;
313
+ willUpdate(changed: PropertyValues<this>): void;
314
+ formResetCallback(): void;
315
+ formStateRestoreCallback(state: string | null): void;
316
+ focus(options?: FocusOptions): void;
317
+ render(): _$lit.TemplateResult<1>;
318
+ private handleChange;
319
+ private syncFormState;
320
+ private nativeInputTestId;
321
+ }
322
+ declare const zlCheckboxManifest: AtomManifest;
323
+ declare global {
324
+ interface HTMLElementTagNameMap {
325
+ "zl-checkbox": ZlCheckbox;
326
+ }
327
+ } //# sourceMappingURL=zl-checkbox.d.ts.map
328
+ //#endregion
329
+ //#region ../api/dist/index-DLJ0vloQ.d.mts
330
+ //#endregion
331
+ //#region src/generated/model/activateFlowDefinitionParams.d.ts
332
+ /**
333
+ * Generated by orval v8.10.0 🍺
334
+ * Do not edit manually.
335
+ * Zitadel NextGen
336
+ * This is the next generation of the Zitadel identity platform.
337
+ * OpenAPI spec version: 0.0.1
338
+ */
339
+ type ActivateFlowDefinitionParams = {
340
+ /**
341
+ * The unique identifier of the project
342
+ * @pattern ^[a-zA-Z0-9_-]+$
343
+ */
344
+ project_id: string;
345
+ }; //#endregion
254
346
  //#region src/generated/model/authorizeDevice200.d.ts
255
347
  /**
256
348
  * Generated by orval v8.10.0 🍺
@@ -796,7 +888,7 @@ type CreateFlow201Branding = {
796
888
  font_url?: string; /** Hero/background image URL (used by split layout). */
797
889
  hero_url?: string;
798
890
  }; //#endregion
799
- //#region src/generated/model/createFlow201StepActionsItem.d.ts
891
+ //#region src/generated/model/createFlow201StepActionsItemKind.d.ts
800
892
  /**
801
893
  * Generated by orval v8.10.0 🍺
802
894
  * Do not edit manually.
@@ -804,13 +896,48 @@ type CreateFlow201Branding = {
804
896
  * This is the next generation of the Zitadel identity platform.
805
897
  * OpenAPI spec version: 0.0.1
806
898
  */
899
+ /**
900
+ * Classifies how the engine handles this action:
901
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
902
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
903
+ fires once the returned assertion verifies.
904
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
905
+ transition fires once the returned attestation verifies.
906
+ - `navigate`: route through the transition without running the input
907
+ pipeline. Used for pure-routing actions declared in the flow definition.
908
+ - `back`: return the user to the previous step. Surfaced by the engine
909
+ when going back is available.
910
+
911
+ */
912
+ type CreateFlow201StepActionsItemKind = (typeof CreateFlow201StepActionsItemKind)[keyof typeof CreateFlow201StepActionsItemKind];
913
+ declare const CreateFlow201StepActionsItemKind: {
914
+ readonly submit: "submit";
915
+ readonly passkey: "passkey";
916
+ readonly passkey_register: "passkey_register";
917
+ readonly navigate: "navigate";
918
+ readonly back: "back";
919
+ }; //#endregion
920
+ //#region src/generated/model/createFlow201StepActionsItem.d.ts
807
921
  /**
808
922
  * Configuration for a user-invokable action on a step. The `name` is sent
809
- back in the submit request as `action`.
923
+ back in the submit request as `action`; the engine resolves the action's
924
+ declared `kind` to decide how to handle the submission.
810
925
 
811
926
  */
812
927
  type CreateFlow201StepActionsItem = {
813
928
  /** Action identifier. Sent back in the submit request as `action`. */name: string;
929
+ /** Classifies how the engine handles this action:
930
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
931
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
932
+ fires once the returned assertion verifies.
933
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
934
+ transition fires once the returned attestation verifies.
935
+ - `navigate`: route through the transition without running the input
936
+ pipeline. Used for pure-routing actions declared in the flow definition.
937
+ - `back`: return the user to the previous step. Surfaced by the engine
938
+ when going back is available.
939
+ */
940
+ kind: CreateFlow201StepActionsItemKind;
814
941
  /** Marks this as the default/primary action. The runtime template uses
815
942
  this hint to choose visual emphasis. At most one action per step
816
943
  should be primary; this is not enforced here.
@@ -837,6 +964,7 @@ type CreateFlow201StepActionsItem = {
837
964
  type CreateFlow201StepChallengeMethod = (typeof CreateFlow201StepChallengeMethod)[keyof typeof CreateFlow201StepChallengeMethod];
838
965
  declare const CreateFlow201StepChallengeMethod: {
839
966
  readonly passkey: "passkey";
967
+ readonly passkey_register: "passkey_register";
840
968
  }; //#endregion
841
969
  //#region src/generated/model/createFlow201StepChallengeOptions.d.ts
842
970
  /**
@@ -1245,6 +1373,11 @@ type CreateFlowBody = {
1245
1373
  * @pattern ^[a-z][a-z0-9-]*$
1246
1374
  */
1247
1375
  flow_definition_name?: string;
1376
+ /** Set to true to simulate the flow without actually creating any
1377
+ user or session. Useful for testing and validation of flow definitions.
1378
+ This requires setting the `flow_definition_name` property as well.
1379
+ */
1380
+ dry_run?: boolean;
1248
1381
  /**
1249
1382
  * Semver version of the flow definition JSON Schema to use.
1250
1383
  When omitted, the latest version is used.
@@ -1295,7 +1428,31 @@ type CreateFlowDefinition201FlowDefinitionAudience = {
1295
1428
  /** Restrict to specific teams (organizations). Empty means no team restriction. */team_ids?: string[]; /** Restrict to specific applications. Empty means no app restriction. */
1296
1429
  app_ids?: string[];
1297
1430
  }; //#endregion
1298
- //#region src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.d.ts
1431
+ //#region src/generated/model/createFlowDefinition201FlowDefinitionStatus.d.ts
1432
+ /**
1433
+ * Generated by orval v8.10.0 🍺
1434
+ * Do not edit manually.
1435
+ * Zitadel NextGen
1436
+ * This is the next generation of the Zitadel identity platform.
1437
+ * OpenAPI spec version: 0.0.1
1438
+ */
1439
+ /**
1440
+ * The lifecycle state of this flow definition.
1441
+
1442
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
1443
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
1444
+
1445
+ Allowed transitions:
1446
+ - draft -> active: To activate the flow definition.
1447
+ - active -> draft: To remove the flow definition from active use immediately.
1448
+
1449
+ */
1450
+ type CreateFlowDefinition201FlowDefinitionStatus = (typeof CreateFlowDefinition201FlowDefinitionStatus)[keyof typeof CreateFlowDefinition201FlowDefinitionStatus];
1451
+ declare const CreateFlowDefinition201FlowDefinitionStatus: {
1452
+ readonly active: "active";
1453
+ readonly draft: "draft";
1454
+ }; //#endregion
1455
+ //#region src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItemKind.d.ts
1299
1456
  /**
1300
1457
  * Generated by orval v8.10.0 🍺
1301
1458
  * Do not edit manually.
@@ -1303,13 +1460,48 @@ type CreateFlowDefinition201FlowDefinitionAudience = {
1303
1460
  * This is the next generation of the Zitadel identity platform.
1304
1461
  * OpenAPI spec version: 0.0.1
1305
1462
  */
1463
+ /**
1464
+ * Classifies how the engine handles this action:
1465
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
1466
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
1467
+ fires once the returned assertion verifies.
1468
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
1469
+ transition fires once the returned attestation verifies.
1470
+ - `navigate`: route through the transition without running the input
1471
+ pipeline. Used for pure-routing actions declared in the flow definition.
1472
+ - `back`: return the user to the previous step. Surfaced by the engine
1473
+ when going back is available.
1474
+
1475
+ */
1476
+ type CreateFlowDefinition201FlowDefinitionStepsItemActionsItemKind = (typeof CreateFlowDefinition201FlowDefinitionStepsItemActionsItemKind)[keyof typeof CreateFlowDefinition201FlowDefinitionStepsItemActionsItemKind];
1477
+ declare const CreateFlowDefinition201FlowDefinitionStepsItemActionsItemKind: {
1478
+ readonly submit: "submit";
1479
+ readonly passkey: "passkey";
1480
+ readonly passkey_register: "passkey_register";
1481
+ readonly navigate: "navigate";
1482
+ readonly back: "back";
1483
+ }; //#endregion
1484
+ //#region src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.d.ts
1306
1485
  /**
1307
1486
  * Configuration for a user-invokable action on a step. The `name` is sent
1308
- back in the submit request as `action`.
1487
+ back in the submit request as `action`; the engine resolves the action's
1488
+ declared `kind` to decide how to handle the submission.
1309
1489
 
1310
1490
  */
1311
1491
  type CreateFlowDefinition201FlowDefinitionStepsItemActionsItem = {
1312
1492
  /** Action identifier. Sent back in the submit request as `action`. */name: string;
1493
+ /** Classifies how the engine handles this action:
1494
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
1495
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
1496
+ fires once the returned assertion verifies.
1497
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
1498
+ transition fires once the returned attestation verifies.
1499
+ - `navigate`: route through the transition without running the input
1500
+ pipeline. Used for pure-routing actions declared in the flow definition.
1501
+ - `back`: return the user to the previous step. Surfaced by the engine
1502
+ when going back is available.
1503
+ */
1504
+ kind: CreateFlowDefinition201FlowDefinitionStepsItemActionsItemKind;
1313
1505
  /** Marks this as the default/primary action. The runtime template uses
1314
1506
  this hint to choose visual emphasis. At most one action per step
1315
1507
  should be primary; this is not enforced here.
@@ -1547,6 +1739,14 @@ type CreateFlowDefinition201FlowDefinition = {
1547
1739
  * @pattern ^[a-z][a-z0-9-]*$
1548
1740
  */
1549
1741
  name: string;
1742
+ /** The lifecycle state of this flow definition.
1743
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
1744
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
1745
+ Allowed transitions:
1746
+ - draft -> active: To activate the flow definition.
1747
+ - active -> draft: To remove the flow definition from active use immediately.
1748
+ */
1749
+ status: CreateFlowDefinition201FlowDefinitionStatus;
1550
1750
  /** User schema this flow operates on. Step `fields` reference properties
1551
1751
  defined in this schema. The engine resolves field types, validation,
1552
1752
  and implicit outcomes from schema annotations at runtime.
@@ -1574,8 +1774,7 @@ type CreateFlowDefinition201FlowDefinition = {
1574
1774
  //#region src/generated/model/createFlowDefinition201.d.ts
1575
1775
  type CreateFlowDefinition201 = {
1576
1776
  /** Unique identifier for the flow definition. */id: string; /** Identifier of the project this flow definition belongs to. */
1577
- project_id: string; /** Status of the flow definition. */
1578
- status: string;
1777
+ project_id: string;
1579
1778
  /** A flow definition is the server-side configuration that describes a complete
1580
1779
  authentication or identity flow. It is NOT sent to the frontend — the flow
1581
1780
  engine evaluates it and produces FlowResponse payloads (steps with capability
@@ -1619,7 +1818,7 @@ type CreateFlowDefinitionBodyFlowDefinitionAudience = {
1619
1818
  /** Restrict to specific teams (organizations). Empty means no team restriction. */team_ids?: string[]; /** Restrict to specific applications. Empty means no app restriction. */
1620
1819
  app_ids?: string[];
1621
1820
  }; //#endregion
1622
- //#region src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.d.ts
1821
+ //#region src/generated/model/createFlowDefinitionBodyFlowDefinitionStatus.d.ts
1623
1822
  /**
1624
1823
  * Generated by orval v8.10.0 🍺
1625
1824
  * Do not edit manually.
@@ -1627,13 +1826,72 @@ type CreateFlowDefinitionBodyFlowDefinitionAudience = {
1627
1826
  * This is the next generation of the Zitadel identity platform.
1628
1827
  * OpenAPI spec version: 0.0.1
1629
1828
  */
1829
+ /**
1830
+ * The lifecycle state of this flow definition.
1831
+
1832
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
1833
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
1834
+
1835
+ Allowed transitions:
1836
+ - draft -> active: To activate the flow definition.
1837
+ - active -> draft: To remove the flow definition from active use immediately.
1838
+
1839
+ */
1840
+ type CreateFlowDefinitionBodyFlowDefinitionStatus = (typeof CreateFlowDefinitionBodyFlowDefinitionStatus)[keyof typeof CreateFlowDefinitionBodyFlowDefinitionStatus];
1841
+ declare const CreateFlowDefinitionBodyFlowDefinitionStatus: {
1842
+ readonly active: "active";
1843
+ readonly draft: "draft";
1844
+ }; //#endregion
1845
+ //#region src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.d.ts
1846
+ /**
1847
+ * Generated by orval v8.10.0 🍺
1848
+ * Do not edit manually.
1849
+ * Zitadel NextGen
1850
+ * This is the next generation of the Zitadel identity platform.
1851
+ * OpenAPI spec version: 0.0.1
1852
+ */
1853
+ /**
1854
+ * Classifies how the engine handles this action:
1855
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
1856
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
1857
+ fires once the returned assertion verifies.
1858
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
1859
+ transition fires once the returned attestation verifies.
1860
+ - `navigate`: route through the transition without running the input
1861
+ pipeline. Used for pure-routing actions declared in the flow definition.
1862
+ - `back`: return the user to the previous step. Surfaced by the engine
1863
+ when going back is available.
1864
+
1865
+ */
1866
+ type CreateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind = (typeof CreateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind)[keyof typeof CreateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind];
1867
+ declare const CreateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind: {
1868
+ readonly submit: "submit";
1869
+ readonly passkey: "passkey";
1870
+ readonly passkey_register: "passkey_register";
1871
+ readonly navigate: "navigate";
1872
+ readonly back: "back";
1873
+ }; //#endregion
1874
+ //#region src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.d.ts
1630
1875
  /**
1631
1876
  * Configuration for a user-invokable action on a step. The `name` is sent
1632
- back in the submit request as `action`.
1877
+ back in the submit request as `action`; the engine resolves the action's
1878
+ declared `kind` to decide how to handle the submission.
1633
1879
 
1634
1880
  */
1635
1881
  type CreateFlowDefinitionBodyFlowDefinitionStepsItemActionsItem = {
1636
1882
  /** Action identifier. Sent back in the submit request as `action`. */name: string;
1883
+ /** Classifies how the engine handles this action:
1884
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
1885
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
1886
+ fires once the returned assertion verifies.
1887
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
1888
+ transition fires once the returned attestation verifies.
1889
+ - `navigate`: route through the transition without running the input
1890
+ pipeline. Used for pure-routing actions declared in the flow definition.
1891
+ - `back`: return the user to the previous step. Surfaced by the engine
1892
+ when going back is available.
1893
+ */
1894
+ kind: CreateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind;
1637
1895
  /** Marks this as the default/primary action. The runtime template uses
1638
1896
  this hint to choose visual emphasis. At most one action per step
1639
1897
  should be primary; this is not enforced here.
@@ -1871,6 +2129,14 @@ type CreateFlowDefinitionBodyFlowDefinition = {
1871
2129
  * @pattern ^[a-z][a-z0-9-]*$
1872
2130
  */
1873
2131
  name: string;
2132
+ /** The lifecycle state of this flow definition.
2133
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
2134
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
2135
+ Allowed transitions:
2136
+ - draft -> active: To activate the flow definition.
2137
+ - active -> draft: To remove the flow definition from active use immediately.
2138
+ */
2139
+ status: CreateFlowDefinitionBodyFlowDefinitionStatus;
1874
2140
  /** User schema this flow operates on. Step `fields` reference properties
1875
2141
  defined in this schema. The engine resolves field types, validation,
1876
2142
  and implicit outcomes from schema annotations at runtime.
@@ -1896,6 +2162,12 @@ type CreateFlowDefinitionBodyFlowDefinition = {
1896
2162
  steps: CreateFlowDefinitionBodyFlowDefinitionStepsItem[];
1897
2163
  }; //#endregion
1898
2164
  //#region src/generated/model/createFlowDefinitionBody.d.ts
2165
+ /**
2166
+ * Creates a flow definition.
2167
+ The flow definition is created in an `active` state by default.
2168
+ The status can also be set via the `status` attribute in the flow definition payload.
2169
+
2170
+ */
1899
2171
  type CreateFlowDefinitionBody = {
1900
2172
  /** @pattern ^[a-zA-Z0-9_-]+$ */project_id: string;
1901
2173
  /** URI of the server-published flow definition schema this definition was
@@ -2523,7 +2795,34 @@ type CreateUserParams = {
2523
2795
  */
2524
2796
  team_id?: string;
2525
2797
  }; //#endregion
2526
- //#region src/generated/model/deleteFlowDefinitionDefaultDetails.d.ts
2798
+ //#region src/generated/model/deactivateFlowDefinition400Details.d.ts
2799
+ /**
2800
+ * Generated by orval v8.10.0 🍺
2801
+ * Do not edit manually.
2802
+ * Zitadel NextGen
2803
+ * This is the next generation of the Zitadel identity platform.
2804
+ * OpenAPI spec version: 0.0.1
2805
+ */
2806
+ /**
2807
+ * Additional error-specific context.
2808
+ */
2809
+ //#endregion
2810
+ //#region src/generated/model/deactivateFlowDefinitionParams.d.ts
2811
+ /**
2812
+ * Generated by orval v8.10.0 🍺
2813
+ * Do not edit manually.
2814
+ * Zitadel NextGen
2815
+ * This is the next generation of the Zitadel identity platform.
2816
+ * OpenAPI spec version: 0.0.1
2817
+ */
2818
+ type DeactivateFlowDefinitionParams = {
2819
+ /**
2820
+ * The unique identifier of the project
2821
+ * @pattern ^[a-zA-Z0-9_-]+$
2822
+ */
2823
+ project_id: string;
2824
+ }; //#endregion
2825
+ //#region src/generated/model/deleteFlowDefinition409Details.d.ts
2527
2826
  /**
2528
2827
  * Generated by orval v8.10.0 🍺
2529
2828
  * Do not edit manually.
@@ -3133,7 +3432,7 @@ type GetFlowDefinition200FlowDefinitionAudience = {
3133
3432
  /** Restrict to specific teams (organizations). Empty means no team restriction. */team_ids?: string[]; /** Restrict to specific applications. Empty means no app restriction. */
3134
3433
  app_ids?: string[];
3135
3434
  }; //#endregion
3136
- //#region src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItem.d.ts
3435
+ //#region src/generated/model/getFlowDefinition200FlowDefinitionStatus.d.ts
3137
3436
  /**
3138
3437
  * Generated by orval v8.10.0 🍺
3139
3438
  * Do not edit manually.
@@ -3141,13 +3440,72 @@ type GetFlowDefinition200FlowDefinitionAudience = {
3141
3440
  * This is the next generation of the Zitadel identity platform.
3142
3441
  * OpenAPI spec version: 0.0.1
3143
3442
  */
3443
+ /**
3444
+ * The lifecycle state of this flow definition.
3445
+
3446
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
3447
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
3448
+
3449
+ Allowed transitions:
3450
+ - draft -> active: To activate the flow definition.
3451
+ - active -> draft: To remove the flow definition from active use immediately.
3452
+
3453
+ */
3454
+ type GetFlowDefinition200FlowDefinitionStatus = (typeof GetFlowDefinition200FlowDefinitionStatus)[keyof typeof GetFlowDefinition200FlowDefinitionStatus];
3455
+ declare const GetFlowDefinition200FlowDefinitionStatus: {
3456
+ readonly active: "active";
3457
+ readonly draft: "draft";
3458
+ }; //#endregion
3459
+ //#region src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItemKind.d.ts
3460
+ /**
3461
+ * Generated by orval v8.10.0 🍺
3462
+ * Do not edit manually.
3463
+ * Zitadel NextGen
3464
+ * This is the next generation of the Zitadel identity platform.
3465
+ * OpenAPI spec version: 0.0.1
3466
+ */
3467
+ /**
3468
+ * Classifies how the engine handles this action:
3469
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
3470
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
3471
+ fires once the returned assertion verifies.
3472
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
3473
+ transition fires once the returned attestation verifies.
3474
+ - `navigate`: route through the transition without running the input
3475
+ pipeline. Used for pure-routing actions declared in the flow definition.
3476
+ - `back`: return the user to the previous step. Surfaced by the engine
3477
+ when going back is available.
3478
+
3479
+ */
3480
+ type GetFlowDefinition200FlowDefinitionStepsItemActionsItemKind = (typeof GetFlowDefinition200FlowDefinitionStepsItemActionsItemKind)[keyof typeof GetFlowDefinition200FlowDefinitionStepsItemActionsItemKind];
3481
+ declare const GetFlowDefinition200FlowDefinitionStepsItemActionsItemKind: {
3482
+ readonly submit: "submit";
3483
+ readonly passkey: "passkey";
3484
+ readonly passkey_register: "passkey_register";
3485
+ readonly navigate: "navigate";
3486
+ readonly back: "back";
3487
+ }; //#endregion
3488
+ //#region src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItem.d.ts
3144
3489
  /**
3145
3490
  * Configuration for a user-invokable action on a step. The `name` is sent
3146
- back in the submit request as `action`.
3491
+ back in the submit request as `action`; the engine resolves the action's
3492
+ declared `kind` to decide how to handle the submission.
3147
3493
 
3148
3494
  */
3149
3495
  type GetFlowDefinition200FlowDefinitionStepsItemActionsItem = {
3150
3496
  /** Action identifier. Sent back in the submit request as `action`. */name: string;
3497
+ /** Classifies how the engine handles this action:
3498
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
3499
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
3500
+ fires once the returned assertion verifies.
3501
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
3502
+ transition fires once the returned attestation verifies.
3503
+ - `navigate`: route through the transition without running the input
3504
+ pipeline. Used for pure-routing actions declared in the flow definition.
3505
+ - `back`: return the user to the previous step. Surfaced by the engine
3506
+ when going back is available.
3507
+ */
3508
+ kind: GetFlowDefinition200FlowDefinitionStepsItemActionsItemKind;
3151
3509
  /** Marks this as the default/primary action. The runtime template uses
3152
3510
  this hint to choose visual emphasis. At most one action per step
3153
3511
  should be primary; this is not enforced here.
@@ -3385,6 +3743,14 @@ type GetFlowDefinition200FlowDefinition = {
3385
3743
  * @pattern ^[a-z][a-z0-9-]*$
3386
3744
  */
3387
3745
  name: string;
3746
+ /** The lifecycle state of this flow definition.
3747
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
3748
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
3749
+ Allowed transitions:
3750
+ - draft -> active: To activate the flow definition.
3751
+ - active -> draft: To remove the flow definition from active use immediately.
3752
+ */
3753
+ status: GetFlowDefinition200FlowDefinitionStatus;
3388
3754
  /** User schema this flow operates on. Step `fields` reference properties
3389
3755
  defined in this schema. The engine resolves field types, validation,
3390
3756
  and implicit outcomes from schema annotations at runtime.
@@ -3412,8 +3778,7 @@ type GetFlowDefinition200FlowDefinition = {
3412
3778
  //#region src/generated/model/getFlowDefinition200.d.ts
3413
3779
  type GetFlowDefinition200 = {
3414
3780
  /** Unique identifier for the flow definition. */id: string; /** Identifier of the project this flow definition belongs to. */
3415
- project_id: string; /** Status of the flow definition. */
3416
- status: string;
3781
+ project_id: string;
3417
3782
  /** A flow definition is the server-side configuration that describes a complete
3418
3783
  authentication or identity flow. It is NOT sent to the frontend — the flow
3419
3784
  engine evaluates it and produces FlowResponse payloads (steps with capability
@@ -3494,7 +3859,7 @@ type GetFlowStep200Branding = {
3494
3859
  font_url?: string; /** Hero/background image URL (used by split layout). */
3495
3860
  hero_url?: string;
3496
3861
  }; //#endregion
3497
- //#region src/generated/model/getFlowStep200StepActionsItem.d.ts
3862
+ //#region src/generated/model/getFlowStep200StepActionsItemKind.d.ts
3498
3863
  /**
3499
3864
  * Generated by orval v8.10.0 🍺
3500
3865
  * Do not edit manually.
@@ -3502,13 +3867,48 @@ type GetFlowStep200Branding = {
3502
3867
  * This is the next generation of the Zitadel identity platform.
3503
3868
  * OpenAPI spec version: 0.0.1
3504
3869
  */
3870
+ /**
3871
+ * Classifies how the engine handles this action:
3872
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
3873
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
3874
+ fires once the returned assertion verifies.
3875
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
3876
+ transition fires once the returned attestation verifies.
3877
+ - `navigate`: route through the transition without running the input
3878
+ pipeline. Used for pure-routing actions declared in the flow definition.
3879
+ - `back`: return the user to the previous step. Surfaced by the engine
3880
+ when going back is available.
3881
+
3882
+ */
3883
+ type GetFlowStep200StepActionsItemKind = (typeof GetFlowStep200StepActionsItemKind)[keyof typeof GetFlowStep200StepActionsItemKind];
3884
+ declare const GetFlowStep200StepActionsItemKind: {
3885
+ readonly submit: "submit";
3886
+ readonly passkey: "passkey";
3887
+ readonly passkey_register: "passkey_register";
3888
+ readonly navigate: "navigate";
3889
+ readonly back: "back";
3890
+ }; //#endregion
3891
+ //#region src/generated/model/getFlowStep200StepActionsItem.d.ts
3505
3892
  /**
3506
3893
  * Configuration for a user-invokable action on a step. The `name` is sent
3507
- back in the submit request as `action`.
3894
+ back in the submit request as `action`; the engine resolves the action's
3895
+ declared `kind` to decide how to handle the submission.
3508
3896
 
3509
3897
  */
3510
3898
  type GetFlowStep200StepActionsItem = {
3511
3899
  /** Action identifier. Sent back in the submit request as `action`. */name: string;
3900
+ /** Classifies how the engine handles this action:
3901
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
3902
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
3903
+ fires once the returned assertion verifies.
3904
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
3905
+ transition fires once the returned attestation verifies.
3906
+ - `navigate`: route through the transition without running the input
3907
+ pipeline. Used for pure-routing actions declared in the flow definition.
3908
+ - `back`: return the user to the previous step. Surfaced by the engine
3909
+ when going back is available.
3910
+ */
3911
+ kind: GetFlowStep200StepActionsItemKind;
3512
3912
  /** Marks this as the default/primary action. The runtime template uses
3513
3913
  this hint to choose visual emphasis. At most one action per step
3514
3914
  should be primary; this is not enforced here.
@@ -3535,6 +3935,7 @@ type GetFlowStep200StepActionsItem = {
3535
3935
  type GetFlowStep200StepChallengeMethod = (typeof GetFlowStep200StepChallengeMethod)[keyof typeof GetFlowStep200StepChallengeMethod];
3536
3936
  declare const GetFlowStep200StepChallengeMethod: {
3537
3937
  readonly passkey: "passkey";
3938
+ readonly passkey_register: "passkey_register";
3538
3939
  }; //#endregion
3539
3940
  //#region src/generated/model/getFlowStep200StepChallengeOptions.d.ts
3540
3941
  /**
@@ -5084,7 +5485,7 @@ type IssueChallengeBody = {
5084
5485
  * OpenAPI spec version: 0.0.1
5085
5486
  */
5086
5487
  //#endregion
5087
- //#region src/generated/model/listFlowDefinitions200FlowDefinitionsItem.d.ts
5488
+ //#region src/generated/model/listFlowDefinitions200FlowDefinitionsItemStatus.d.ts
5088
5489
  /**
5089
5490
  * Generated by orval v8.10.0 🍺
5090
5491
  * Do not edit manually.
@@ -5092,6 +5493,23 @@ type IssueChallengeBody = {
5092
5493
  * This is the next generation of the Zitadel identity platform.
5093
5494
  * OpenAPI spec version: 0.0.1
5094
5495
  */
5496
+ /**
5497
+ * The lifecycle state of this flow definition.
5498
+
5499
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
5500
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
5501
+
5502
+ Allowed transitions:
5503
+ - draft -> active: To activate the flow definition.
5504
+ - active -> draft: To remove the flow definition from active use immediately.
5505
+
5506
+ */
5507
+ type ListFlowDefinitions200FlowDefinitionsItemStatus = (typeof ListFlowDefinitions200FlowDefinitionsItemStatus)[keyof typeof ListFlowDefinitions200FlowDefinitionsItemStatus];
5508
+ declare const ListFlowDefinitions200FlowDefinitionsItemStatus: {
5509
+ readonly active: "active";
5510
+ readonly draft: "draft";
5511
+ }; //#endregion
5512
+ //#region src/generated/model/listFlowDefinitions200FlowDefinitionsItem.d.ts
5095
5513
  /**
5096
5514
  * Response object for a flow definition after creation.
5097
5515
 
@@ -5107,8 +5525,15 @@ type ListFlowDefinitions200FlowDefinitionsItem = {
5107
5525
  /** URI of the flow definition schema this definition was authored against.
5108
5526
  If the schema_uri was not provided in the request, the flow definition is validated against the latest version of the schema, and the response includes the schema_uri of the latest version.
5109
5527
  */
5110
- schema_uri?: string; /** Status of the flow definition. */
5111
- status: string; /** Timestamp when the flow definition was created. */
5528
+ schema_uri?: string;
5529
+ /** The lifecycle state of this flow definition.
5530
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
5531
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
5532
+ Allowed transitions:
5533
+ - draft -> active: To activate the flow definition.
5534
+ - active -> draft: To remove the flow definition from active use immediately.
5535
+ */
5536
+ status: ListFlowDefinitions200FlowDefinitionsItemStatus; /** Timestamp when the flow definition was created. */
5112
5537
  created_at: string; /** Timestamp when the flow definition was last updated. */
5113
5538
  updated_at: string;
5114
5539
  }; //#endregion
@@ -5649,7 +6074,7 @@ type SubmitFlowStep200Branding = {
5649
6074
  font_url?: string; /** Hero/background image URL (used by split layout). */
5650
6075
  hero_url?: string;
5651
6076
  }; //#endregion
5652
- //#region src/generated/model/submitFlowStep200StepActionsItem.d.ts
6077
+ //#region src/generated/model/submitFlowStep200StepActionsItemKind.d.ts
5653
6078
  /**
5654
6079
  * Generated by orval v8.10.0 🍺
5655
6080
  * Do not edit manually.
@@ -5657,13 +6082,48 @@ type SubmitFlowStep200Branding = {
5657
6082
  * This is the next generation of the Zitadel identity platform.
5658
6083
  * OpenAPI spec version: 0.0.1
5659
6084
  */
6085
+ /**
6086
+ * Classifies how the engine handles this action:
6087
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
6088
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
6089
+ fires once the returned assertion verifies.
6090
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
6091
+ transition fires once the returned attestation verifies.
6092
+ - `navigate`: route through the transition without running the input
6093
+ pipeline. Used for pure-routing actions declared in the flow definition.
6094
+ - `back`: return the user to the previous step. Surfaced by the engine
6095
+ when going back is available.
6096
+
6097
+ */
6098
+ type SubmitFlowStep200StepActionsItemKind = (typeof SubmitFlowStep200StepActionsItemKind)[keyof typeof SubmitFlowStep200StepActionsItemKind];
6099
+ declare const SubmitFlowStep200StepActionsItemKind: {
6100
+ readonly submit: "submit";
6101
+ readonly passkey: "passkey";
6102
+ readonly passkey_register: "passkey_register";
6103
+ readonly navigate: "navigate";
6104
+ readonly back: "back";
6105
+ }; //#endregion
6106
+ //#region src/generated/model/submitFlowStep200StepActionsItem.d.ts
5660
6107
  /**
5661
6108
  * Configuration for a user-invokable action on a step. The `name` is sent
5662
- back in the submit request as `action`.
6109
+ back in the submit request as `action`; the engine resolves the action's
6110
+ declared `kind` to decide how to handle the submission.
5663
6111
 
5664
6112
  */
5665
6113
  type SubmitFlowStep200StepActionsItem = {
5666
6114
  /** Action identifier. Sent back in the submit request as `action`. */name: string;
6115
+ /** Classifies how the engine handles this action:
6116
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
6117
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
6118
+ fires once the returned assertion verifies.
6119
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
6120
+ transition fires once the returned attestation verifies.
6121
+ - `navigate`: route through the transition without running the input
6122
+ pipeline. Used for pure-routing actions declared in the flow definition.
6123
+ - `back`: return the user to the previous step. Surfaced by the engine
6124
+ when going back is available.
6125
+ */
6126
+ kind: SubmitFlowStep200StepActionsItemKind;
5667
6127
  /** Marks this as the default/primary action. The runtime template uses
5668
6128
  this hint to choose visual emphasis. At most one action per step
5669
6129
  should be primary; this is not enforced here.
@@ -5690,6 +6150,7 @@ type SubmitFlowStep200StepActionsItem = {
5690
6150
  type SubmitFlowStep200StepChallengeMethod = (typeof SubmitFlowStep200StepChallengeMethod)[keyof typeof SubmitFlowStep200StepChallengeMethod];
5691
6151
  declare const SubmitFlowStep200StepChallengeMethod: {
5692
6152
  readonly passkey: "passkey";
6153
+ readonly passkey_register: "passkey_register";
5693
6154
  }; //#endregion
5694
6155
  //#region src/generated/model/submitFlowStep200StepChallengeOptions.d.ts
5695
6156
  /**
@@ -6180,7 +6641,7 @@ type UpdateFlowDefinition200FlowDefinitionAudience = {
6180
6641
  /** Restrict to specific teams (organizations). Empty means no team restriction. */team_ids?: string[]; /** Restrict to specific applications. Empty means no app restriction. */
6181
6642
  app_ids?: string[];
6182
6643
  }; //#endregion
6183
- //#region src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemActionsItem.d.ts
6644
+ //#region src/generated/model/updateFlowDefinition200FlowDefinitionStatus.d.ts
6184
6645
  /**
6185
6646
  * Generated by orval v8.10.0 🍺
6186
6647
  * Do not edit manually.
@@ -6188,13 +6649,72 @@ type UpdateFlowDefinition200FlowDefinitionAudience = {
6188
6649
  * This is the next generation of the Zitadel identity platform.
6189
6650
  * OpenAPI spec version: 0.0.1
6190
6651
  */
6652
+ /**
6653
+ * The lifecycle state of this flow definition.
6654
+
6655
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
6656
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
6657
+
6658
+ Allowed transitions:
6659
+ - draft -> active: To activate the flow definition.
6660
+ - active -> draft: To remove the flow definition from active use immediately.
6661
+
6662
+ */
6663
+ type UpdateFlowDefinition200FlowDefinitionStatus = (typeof UpdateFlowDefinition200FlowDefinitionStatus)[keyof typeof UpdateFlowDefinition200FlowDefinitionStatus];
6664
+ declare const UpdateFlowDefinition200FlowDefinitionStatus: {
6665
+ readonly active: "active";
6666
+ readonly draft: "draft";
6667
+ }; //#endregion
6668
+ //#region src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemActionsItemKind.d.ts
6669
+ /**
6670
+ * Generated by orval v8.10.0 🍺
6671
+ * Do not edit manually.
6672
+ * Zitadel NextGen
6673
+ * This is the next generation of the Zitadel identity platform.
6674
+ * OpenAPI spec version: 0.0.1
6675
+ */
6676
+ /**
6677
+ * Classifies how the engine handles this action:
6678
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
6679
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
6680
+ fires once the returned assertion verifies.
6681
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
6682
+ transition fires once the returned attestation verifies.
6683
+ - `navigate`: route through the transition without running the input
6684
+ pipeline. Used for pure-routing actions declared in the flow definition.
6685
+ - `back`: return the user to the previous step. Surfaced by the engine
6686
+ when going back is available.
6687
+
6688
+ */
6689
+ type UpdateFlowDefinition200FlowDefinitionStepsItemActionsItemKind = (typeof UpdateFlowDefinition200FlowDefinitionStepsItemActionsItemKind)[keyof typeof UpdateFlowDefinition200FlowDefinitionStepsItemActionsItemKind];
6690
+ declare const UpdateFlowDefinition200FlowDefinitionStepsItemActionsItemKind: {
6691
+ readonly submit: "submit";
6692
+ readonly passkey: "passkey";
6693
+ readonly passkey_register: "passkey_register";
6694
+ readonly navigate: "navigate";
6695
+ readonly back: "back";
6696
+ }; //#endregion
6697
+ //#region src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemActionsItem.d.ts
6191
6698
  /**
6192
6699
  * Configuration for a user-invokable action on a step. The `name` is sent
6193
- back in the submit request as `action`.
6700
+ back in the submit request as `action`; the engine resolves the action's
6701
+ declared `kind` to decide how to handle the submission.
6194
6702
 
6195
6703
  */
6196
6704
  type UpdateFlowDefinition200FlowDefinitionStepsItemActionsItem = {
6197
6705
  /** Action identifier. Sent back in the submit request as `action`. */name: string;
6706
+ /** Classifies how the engine handles this action:
6707
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
6708
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
6709
+ fires once the returned assertion verifies.
6710
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
6711
+ transition fires once the returned attestation verifies.
6712
+ - `navigate`: route through the transition without running the input
6713
+ pipeline. Used for pure-routing actions declared in the flow definition.
6714
+ - `back`: return the user to the previous step. Surfaced by the engine
6715
+ when going back is available.
6716
+ */
6717
+ kind: UpdateFlowDefinition200FlowDefinitionStepsItemActionsItemKind;
6198
6718
  /** Marks this as the default/primary action. The runtime template uses
6199
6719
  this hint to choose visual emphasis. At most one action per step
6200
6720
  should be primary; this is not enforced here.
@@ -6432,6 +6952,14 @@ type UpdateFlowDefinition200FlowDefinition = {
6432
6952
  * @pattern ^[a-z][a-z0-9-]*$
6433
6953
  */
6434
6954
  name: string;
6955
+ /** The lifecycle state of this flow definition.
6956
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
6957
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
6958
+ Allowed transitions:
6959
+ - draft -> active: To activate the flow definition.
6960
+ - active -> draft: To remove the flow definition from active use immediately.
6961
+ */
6962
+ status: UpdateFlowDefinition200FlowDefinitionStatus;
6435
6963
  /** User schema this flow operates on. Step `fields` reference properties
6436
6964
  defined in this schema. The engine resolves field types, validation,
6437
6965
  and implicit outcomes from schema annotations at runtime.
@@ -6459,8 +6987,7 @@ type UpdateFlowDefinition200FlowDefinition = {
6459
6987
  //#region src/generated/model/updateFlowDefinition200.d.ts
6460
6988
  type UpdateFlowDefinition200 = {
6461
6989
  /** Unique identifier for the flow definition. */id: string; /** Identifier of the project this flow definition belongs to. */
6462
- project_id: string; /** Status of the flow definition. */
6463
- status: string;
6990
+ project_id: string;
6464
6991
  /** A flow definition is the server-side configuration that describes a complete
6465
6992
  authentication or identity flow. It is NOT sent to the frontend — the flow
6466
6993
  engine evaluates it and produces FlowResponse payloads (steps with capability
@@ -6485,7 +7012,7 @@ type UpdateFlowDefinition200 = {
6485
7012
  * Additional error-specific context.
6486
7013
  */
6487
7014
  //#endregion
6488
- //#region src/generated/model/updateFlowDefinitionBodyAudience.d.ts
7015
+ //#region src/generated/model/updateFlowDefinitionBodyFlowDefinitionAudience.d.ts
6489
7016
  /**
6490
7017
  * Generated by orval v8.10.0 🍺
6491
7018
  * Do not edit manually.
@@ -6500,11 +7027,35 @@ matches every request in the project. The engine picks the most specific
6500
7027
  matching definition: app > team > project-wide.
6501
7028
 
6502
7029
  */
6503
- type UpdateFlowDefinitionBodyAudience = {
7030
+ type UpdateFlowDefinitionBodyFlowDefinitionAudience = {
6504
7031
  /** Restrict to specific teams (organizations). Empty means no team restriction. */team_ids?: string[]; /** Restrict to specific applications. Empty means no app restriction. */
6505
7032
  app_ids?: string[];
6506
7033
  }; //#endregion
6507
- //#region src/generated/model/updateFlowDefinitionBodyStepsItemActionsItem.d.ts
7034
+ //#region src/generated/model/updateFlowDefinitionBodyFlowDefinitionStatus.d.ts
7035
+ /**
7036
+ * Generated by orval v8.10.0 🍺
7037
+ * Do not edit manually.
7038
+ * Zitadel NextGen
7039
+ * This is the next generation of the Zitadel identity platform.
7040
+ * OpenAPI spec version: 0.0.1
7041
+ */
7042
+ /**
7043
+ * The lifecycle state of this flow definition.
7044
+
7045
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
7046
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
7047
+
7048
+ Allowed transitions:
7049
+ - draft -> active: To activate the flow definition.
7050
+ - active -> draft: To remove the flow definition from active use immediately.
7051
+
7052
+ */
7053
+ type UpdateFlowDefinitionBodyFlowDefinitionStatus = (typeof UpdateFlowDefinitionBodyFlowDefinitionStatus)[keyof typeof UpdateFlowDefinitionBodyFlowDefinitionStatus];
7054
+ declare const UpdateFlowDefinitionBodyFlowDefinitionStatus: {
7055
+ readonly active: "active";
7056
+ readonly draft: "draft";
7057
+ }; //#endregion
7058
+ //#region src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.d.ts
6508
7059
  /**
6509
7060
  * Generated by orval v8.10.0 🍺
6510
7061
  * Do not edit manually.
@@ -6512,13 +7063,48 @@ type UpdateFlowDefinitionBodyAudience = {
6512
7063
  * This is the next generation of the Zitadel identity platform.
6513
7064
  * OpenAPI spec version: 0.0.1
6514
7065
  */
7066
+ /**
7067
+ * Classifies how the engine handles this action:
7068
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
7069
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
7070
+ fires once the returned assertion verifies.
7071
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
7072
+ transition fires once the returned attestation verifies.
7073
+ - `navigate`: route through the transition without running the input
7074
+ pipeline. Used for pure-routing actions declared in the flow definition.
7075
+ - `back`: return the user to the previous step. Surfaced by the engine
7076
+ when going back is available.
7077
+
7078
+ */
7079
+ type UpdateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind = (typeof UpdateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind)[keyof typeof UpdateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind];
7080
+ declare const UpdateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind: {
7081
+ readonly submit: "submit";
7082
+ readonly passkey: "passkey";
7083
+ readonly passkey_register: "passkey_register";
7084
+ readonly navigate: "navigate";
7085
+ readonly back: "back";
7086
+ }; //#endregion
7087
+ //#region src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.d.ts
6515
7088
  /**
6516
7089
  * Configuration for a user-invokable action on a step. The `name` is sent
6517
- back in the submit request as `action`.
7090
+ back in the submit request as `action`; the engine resolves the action's
7091
+ declared `kind` to decide how to handle the submission.
6518
7092
 
6519
7093
  */
6520
- type UpdateFlowDefinitionBodyStepsItemActionsItem = {
7094
+ type UpdateFlowDefinitionBodyFlowDefinitionStepsItemActionsItem = {
6521
7095
  /** Action identifier. Sent back in the submit request as `action`. */name: string;
7096
+ /** Classifies how the engine handles this action:
7097
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
7098
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
7099
+ fires once the returned assertion verifies.
7100
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
7101
+ transition fires once the returned attestation verifies.
7102
+ - `navigate`: route through the transition without running the input
7103
+ pipeline. Used for pure-routing actions declared in the flow definition.
7104
+ - `back`: return the user to the previous step. Surfaced by the engine
7105
+ when going back is available.
7106
+ */
7107
+ kind: UpdateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind;
6522
7108
  /** Marks this as the default/primary action. The runtime template uses
6523
7109
  this hint to choose visual emphasis. At most one action per step
6524
7110
  should be primary; this is not enforced here.
@@ -6531,7 +7117,7 @@ type UpdateFlowDefinitionBodyStepsItemActionsItem = {
6531
7117
  */
6532
7118
  text_key?: string;
6533
7119
  }; //#endregion
6534
- //#region src/generated/model/updateFlowDefinitionBodyStepsItemComplete.d.ts
7120
+ //#region src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemComplete.d.ts
6535
7121
  /**
6536
7122
  * Generated by orval v8.10.0 🍺
6537
7123
  * Do not edit manually.
@@ -6545,12 +7131,12 @@ type UpdateFlowDefinitionBodyStepsItemActionsItem = {
6545
7131
  - show: render as a success/info screen
6546
7132
 
6547
7133
  */
6548
- type UpdateFlowDefinitionBodyStepsItemComplete = (typeof UpdateFlowDefinitionBodyStepsItemComplete)[keyof typeof UpdateFlowDefinitionBodyStepsItemComplete];
6549
- declare const UpdateFlowDefinitionBodyStepsItemComplete: {
7134
+ type UpdateFlowDefinitionBodyFlowDefinitionStepsItemComplete = (typeof UpdateFlowDefinitionBodyFlowDefinitionStepsItemComplete)[keyof typeof UpdateFlowDefinitionBodyFlowDefinitionStepsItemComplete];
7135
+ declare const UpdateFlowDefinitionBodyFlowDefinitionStepsItemComplete: {
6550
7136
  readonly redirect: "redirect";
6551
7137
  readonly show: "show";
6552
7138
  }; //#endregion
6553
- //#region src/generated/model/updateFlowDefinitionBodyStepsItemGatesConfig.d.ts
7139
+ //#region src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.d.ts
6554
7140
  /**
6555
7141
  * Generated by orval v8.10.0 🍺
6556
7142
  * Do not edit manually.
@@ -6563,10 +7149,10 @@ declare const UpdateFlowDefinitionBodyStepsItemComplete: {
6563
7149
  issuing the per-render challenge. Opaque to the engine.
6564
7150
 
6565
7151
  */
6566
- type UpdateFlowDefinitionBodyStepsItemGatesConfig = {
7152
+ type UpdateFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig = {
6567
7153
  [key: string]: unknown;
6568
7154
  }; //#endregion
6569
- //#region src/generated/model/updateFlowDefinitionBodyStepsItemGatesKind.d.ts
7155
+ //#region src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.d.ts
6570
7156
  /**
6571
7157
  * Generated by orval v8.10.0 🍺
6572
7158
  * Do not edit manually.
@@ -6580,11 +7166,11 @@ ceremonies (e.g. passkey) are modelled as credential auth_attempts via
6580
7166
  `x-credential` on a field, not as gates.
6581
7167
 
6582
7168
  */
6583
- type UpdateFlowDefinitionBodyStepsItemGatesKind = (typeof UpdateFlowDefinitionBodyStepsItemGatesKind)[keyof typeof UpdateFlowDefinitionBodyStepsItemGatesKind];
6584
- declare const UpdateFlowDefinitionBodyStepsItemGatesKind: {
7169
+ type UpdateFlowDefinitionBodyFlowDefinitionStepsItemGatesKind = (typeof UpdateFlowDefinitionBodyFlowDefinitionStepsItemGatesKind)[keyof typeof UpdateFlowDefinitionBodyFlowDefinitionStepsItemGatesKind];
7170
+ declare const UpdateFlowDefinitionBodyFlowDefinitionStepsItemGatesKind: {
6585
7171
  readonly captcha: "captcha";
6586
7172
  }; //#endregion
6587
- //#region src/generated/model/updateFlowDefinitionBodyStepsItemGates.d.ts
7173
+ //#region src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemGates.d.ts
6588
7174
  /**
6589
7175
  * Security gates that must be satisfied before submission. Keyed by gate
6590
7176
  name. Each gate selects a kind (e.g. "captcha") and provider-specific
@@ -6592,13 +7178,13 @@ configuration. The engine may also inject gates dynamically based on
6592
7178
  policy.
6593
7179
 
6594
7180
  */
6595
- type UpdateFlowDefinitionBodyStepsItemGates = {
7181
+ type UpdateFlowDefinitionBodyFlowDefinitionStepsItemGates = {
6596
7182
  [key: string]: {
6597
7183
  /** The gate category. Only `captcha` is currently defined. Authenticator
6598
7184
  ceremonies (e.g. passkey) are modelled as credential auth_attempts via
6599
7185
  `x-credential` on a field, not as gates.
6600
7186
  */
6601
- kind: UpdateFlowDefinitionBodyStepsItemGatesKind;
7187
+ kind: UpdateFlowDefinitionBodyFlowDefinitionStepsItemGatesKind;
6602
7188
  /** Provider identifier within the gate kind — e.g. `altcha`, `turnstile`,
6603
7189
  `hcaptcha`. The engine looks up an implementation in its provider
6604
7190
  registry.
@@ -6607,10 +7193,10 @@ type UpdateFlowDefinitionBodyStepsItemGates = {
6607
7193
  /** Provider-specific configuration consumed by the implementation when
6608
7194
  issuing the per-render challenge. Opaque to the engine.
6609
7195
  */
6610
- config?: UpdateFlowDefinitionBodyStepsItemGatesConfig;
7196
+ config?: UpdateFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig;
6611
7197
  };
6612
7198
  }; //#endregion
6613
- //#region src/generated/model/updateFlowDefinitionBodyStepsItemOnSuccess.d.ts
7199
+ //#region src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess.d.ts
6614
7200
  /**
6615
7201
  * Generated by orval v8.10.0 🍺
6616
7202
  * Do not edit manually.
@@ -6625,11 +7211,11 @@ Runs after field validation passes, before the transition fires.
6625
7211
  - create_user: creates the user record (registration flows)
6626
7212
 
6627
7213
  */
6628
- type UpdateFlowDefinitionBodyStepsItemOnSuccess = (typeof UpdateFlowDefinitionBodyStepsItemOnSuccess)[keyof typeof UpdateFlowDefinitionBodyStepsItemOnSuccess];
6629
- declare const UpdateFlowDefinitionBodyStepsItemOnSuccess: {
7214
+ type UpdateFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess = (typeof UpdateFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess)[keyof typeof UpdateFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess];
7215
+ declare const UpdateFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess: {
6630
7216
  readonly create_user: "create_user";
6631
7217
  }; //#endregion
6632
- //#region src/generated/model/updateFlowDefinitionBodyStepsItemSsoProvidersItem.d.ts
7218
+ //#region src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItem.d.ts
6633
7219
  /**
6634
7220
  * Generated by orval v8.10.0 🍺
6635
7221
  * Do not edit manually.
@@ -6640,12 +7226,12 @@ declare const UpdateFlowDefinitionBodyStepsItemOnSuccess: {
6640
7226
  /**
6641
7227
  * An available SSO identity provider.
6642
7228
  */
6643
- type UpdateFlowDefinitionBodyStepsItemSsoProvidersItem = {
7229
+ type UpdateFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItem = {
6644
7230
  /** Provider instance identifier. */id: string; /** Display name for the provider. */
6645
7231
  name: string; /** Template hint for rendering (logo, colors). */
6646
7232
  template: string;
6647
7233
  }; //#endregion
6648
- //#region src/generated/model/updateFlowDefinitionBodyStepsItemTransitions.d.ts
7234
+ //#region src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemTransitions.d.ts
6649
7235
  /**
6650
7236
  * Generated by orval v8.10.0 🍺
6651
7237
  * Do not edit manually.
@@ -6662,7 +7248,7 @@ come from implicit outcomes based on schema annotations
6662
7248
  events (e.g. `sso`, `callback`).
6663
7249
 
6664
7250
  */
6665
- type UpdateFlowDefinitionBodyStepsItemTransitions = {
7251
+ type UpdateFlowDefinitionBodyFlowDefinitionStepsItemTransitions = {
6666
7252
  [key: string]: {
6667
7253
  /** Step name within this flow (when `action` is null), or the name
6668
7254
  of another flow (when `action` is `switch` or `pivot`).
@@ -6680,7 +7266,7 @@ type UpdateFlowDefinitionBodyStepsItemTransitions = {
6680
7266
  action?: "switch" | "pivot" | null;
6681
7267
  };
6682
7268
  }; //#endregion
6683
- //#region src/generated/model/updateFlowDefinitionBodyStepsItem.d.ts
7269
+ //#region src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItem.d.ts
6684
7270
  /**
6685
7271
  * A step in a flow definition. This is the admin-authored configuration,
6686
7272
  not the runtime payload sent to the frontend.
@@ -6693,7 +7279,7 @@ A step with only `complete` set is a terminal step. All other steps are
6693
7279
  rendered to the frontend as capability payloads.
6694
7280
 
6695
7281
  */
6696
- type UpdateFlowDefinitionBodyStepsItem = {
7282
+ type UpdateFlowDefinitionBodyFlowDefinitionStepsItem = {
6697
7283
  /** Unique step identifier within this flow. Used as transition targets
6698
7284
  and returned in the API response as `step.name`.
6699
7285
  */
@@ -6709,64 +7295,105 @@ type UpdateFlowDefinitionBodyStepsItem = {
6709
7295
  frontend sends back in the submit request. If omitted, the engine
6710
7296
  provides a default `submit` action.
6711
7297
  */
6712
- actions?: UpdateFlowDefinitionBodyStepsItemActionsItem[];
7298
+ actions?: UpdateFlowDefinitionBodyFlowDefinitionStepsItemActionsItem[];
6713
7299
  /** Security gates that must be satisfied before submission. Keyed by gate
6714
7300
  name. Each gate selects a kind (e.g. "captcha") and provider-specific
6715
7301
  configuration. The engine may also inject gates dynamically based on
6716
7302
  policy.
6717
7303
  */
6718
- gates?: UpdateFlowDefinitionBodyStepsItemGates; /** Available SSO identity providers for this step. */
6719
- sso_providers?: UpdateFlowDefinitionBodyStepsItemSsoProvidersItem[];
7304
+ gates?: UpdateFlowDefinitionBodyFlowDefinitionStepsItemGates; /** Available SSO identity providers for this step. */
7305
+ sso_providers?: UpdateFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItem[];
6720
7306
  /** Server-side mutation to execute when this step completes successfully.
6721
7307
  Runs after field validation passes, before the transition fires.
6722
7308
  - create_user: creates the user record (registration flows)
6723
7309
  */
6724
- on_success?: UpdateFlowDefinitionBodyStepsItemOnSuccess;
7310
+ on_success?: UpdateFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess;
6725
7311
  /** Marks this as a terminal step. Tells the frontend what to do:
6726
7312
  - redirect: navigate to redirect_uri (OIDC/SAML callback done)
6727
7313
  - show: render as a success/info screen
6728
7314
  */
6729
- complete?: UpdateFlowDefinitionBodyStepsItemComplete;
7315
+ complete?: UpdateFlowDefinitionBodyFlowDefinitionStepsItemComplete;
6730
7316
  /** Maps action/outcome names to their transition descriptor.
6731
7317
  Keys match action names from the `actions` array. Additional keys
6732
7318
  come from implicit outcomes based on schema annotations
6733
7319
  (e.g. `user_not_found` from `x-unique` fields) and engine
6734
7320
  events (e.g. `sso`, `callback`).
6735
7321
  */
6736
- transitions?: UpdateFlowDefinitionBodyStepsItemTransitions;
7322
+ transitions?: UpdateFlowDefinitionBodyFlowDefinitionStepsItemTransitions;
6737
7323
  }; //#endregion
6738
- //#region src/generated/model/updateFlowDefinitionBody.d.ts
7324
+ //#region src/generated/model/updateFlowDefinitionBodyFlowDefinition.d.ts
6739
7325
  /**
6740
- * Partial update for a flow definition. Only provided fields are replaced;
6741
- omitted fields retain their current server-side values.
6742
-
6743
- Collection fields (`steps`, `purposes`) are treated atomically: if
6744
- provided, the entire array/object is replaced. If omitted, the current
6745
- value is preserved unchanged.
7326
+ * A flow definition is the server-side configuration that describes a complete
7327
+ authentication or identity flow. It is NOT sent to the frontend — the flow
7328
+ engine evaluates it and produces FlowResponse payloads (steps with capability
7329
+ dictionaries) for the client.
6746
7330
 
6747
- `name` is a stable identifier and cannot be changed after creation.
7331
+ Flow definitions are created by administrators and stored in the project/team
7332
+ configuration hierarchy. The engine selects the matching definition based on
7333
+ the purpose + audience when a flow is created via POST /flow.
6748
7334
 
6749
7335
  */
6750
- type UpdateFlowDefinitionBody = {
6751
- /** User schema this flow operates on. Replaces the current value if provided.
7336
+ type UpdateFlowDefinitionBodyFlowDefinition = {
7337
+ /**
7338
+ * Stable identifier for this flow, used as the target of cross-flow
7339
+ `switch` and `pivot` transitions. Renaming is not supported — the
7340
+ `name` is part of the public contract another definition may
7341
+ reference. Acts as the human display label as well; no separate slug.
7342
+ * @pattern ^[a-z][a-z0-9-]*$
7343
+ */
7344
+ name: string;
7345
+ /** The lifecycle state of this flow definition.
7346
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
7347
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
7348
+ Allowed transitions:
7349
+ - draft -> active: To activate the flow definition.
7350
+ - active -> draft: To remove the flow definition from active use immediately.
7351
+ */
7352
+ status: UpdateFlowDefinitionBodyFlowDefinitionStatus;
7353
+ /** User schema this flow operates on. Step `fields` reference properties
7354
+ defined in this schema. The engine resolves field types, validation,
7355
+ and implicit outcomes from schema annotations at runtime.
6752
7356
  */
6753
- user_schema?: string;
6754
- /** Replaces the full purpose-to-entry-step map if provided. Keys are
6755
- purpose names; values must match a `name` in `steps`.
7357
+ user_schema: string;
7358
+ /** Maps each purpose this definition handles to its entry-point step.
7359
+ Keys are purpose names; values must match a `name` in `steps`. A
7360
+ definition can serve multiple purposes (e.g. a combined login/register
7361
+ flow) by listing one entry per purpose.
6756
7362
  */
6757
- purposes?: Partial<Record<"login" | "register" | "recovery" | "profiling" | "reauth" | "link_account", string>>;
7363
+ purposes: Partial<Record<"login" | "register" | "recovery" | "profiling" | "reauth" | "link_account", string>>;
6758
7364
  /** Scopes which teams or apps this flow definition applies to. Empty or
6759
7365
  omitted fields mean "no restriction"; when both are empty the definition
6760
7366
  matches every request in the project. The engine picks the most specific
6761
7367
  matching definition: app > team > project-wide.
6762
7368
  */
6763
- audience?: UpdateFlowDefinitionBodyAudience;
7369
+ audience?: UpdateFlowDefinitionBodyFlowDefinitionAudience;
6764
7370
  /**
6765
- * Replaces the full steps array if provided. Partial step lists are not
6766
- supported supply all steps when updating this field.
7371
+ * Ordered list of steps in this flow. The order is for human readability —
7372
+ actual step sequencing is determined by transitions.
6767
7373
  * @minItems 1
6768
7374
  */
6769
- steps?: UpdateFlowDefinitionBodyStepsItem[];
7375
+ steps: UpdateFlowDefinitionBodyFlowDefinitionStepsItem[];
7376
+ }; //#endregion
7377
+ //#region src/generated/model/updateFlowDefinitionBody.d.ts
7378
+ /**
7379
+ * Replaces the existing flow definition.
7380
+
7381
+ */
7382
+ type UpdateFlowDefinitionBody = {
7383
+ /** URI of the server-published flow definition schema this definition was
7384
+ authored against. The server uses this to validate the definition.
7385
+ If not provided, the engine will use the latest schema version for validation.
7386
+ */
7387
+ schema_uri?: string;
7388
+ /** A flow definition is the server-side configuration that describes a complete
7389
+ authentication or identity flow. It is NOT sent to the frontend — the flow
7390
+ engine evaluates it and produces FlowResponse payloads (steps with capability
7391
+ dictionaries) for the client.
7392
+ Flow definitions are created by administrators and stored in the project/team
7393
+ configuration hierarchy. The engine selects the matching definition based on
7394
+ the purpose + audience when a flow is created via POST /flow.
7395
+ */
7396
+ flow_definition: UpdateFlowDefinitionBodyFlowDefinition;
6770
7397
  }; //#endregion
6771
7398
  //#region src/generated/model/updateFlowDefinitionDefaultDetails.d.ts
6772
7399
  /**
@@ -7392,5 +8019,98 @@ declare global {
7392
8019
  }
7393
8020
  } //# sourceMappingURL=zl-pill.d.ts.map
7394
8021
  //#endregion
7395
- export { GetFlowStep200 as $, CreateFlowDefinitionBody as A, RevokeTokenBody as At, CreateTeamBody as B, VerifyChallengeProofBody as Bt, CreateFlow201StepChallenge as C, ListFlowDefinitions200 as Ct, CreateFlowBody as D, ListUsers200Item as Dt, CreateFlow201StepSsoProvidersItem as E, ListSessionsParams as Et, CreateSchemaBody as F, SubmitFlowStepBody as Ft, DeleteFlowDefinitionParams as G, ZlAlert as Gt, CreateUser201 as H, zlCardManifest as Ht, CreateSchemaParams as I, UpdateFlowDefinition200 as It, ExchangeHandoffBody as J, ZlIcon as Jt, EndSessionParams as K, zlAlertManifest as Kt, CreateSession201 as L, UpdateFlowDefinitionBody as Lt, CreateProject201 as M, SetUserPasswordParams as Mt, CreateProjectBody as N, SubmitFlowEventBody as Nt, CreateFlowBodyPurpose as O, ListUsersParams as Ot, CreateSchema201 as P, SubmitFlowStep200 as Pt, GetFlowDefinitionParams as Q, CreateSessionBody as R, UpdateFlowDefinitionParams as Rt, CreateFlow201StepActionsItem as S, IssueChallengeBody as St, CreateFlow201StepGates as T, ListSessions200 as Tt, CreateUserBody as U, ZlButton as Ut, CreateTeamParams as V, ZlCard as Vt, CreateUserParams as W, zlButtonManifest as Wt, GetAuthAttempt200 as X, ExchangeHandoffParams as Y, zlIconManifest as Yt, GetFlowDefinition200 as Z, CreateAuthAttemptBody as _, GetUserByIDParams as _t, ZlPasskeyResultDetail as a, GetOpenIDConfiguration200 as at, CreateFlow201BrandingLayout as b, IntrospectBody as bt, zlPageShellManifest as c, GetSchemaById200 as ct, zlFieldManifest as d, GetSessionParams as dt, GetHealthDefault as et, AuthorizeDevice200 as f, GetTeam200 as ft, CreateAuthAttempt201 as g, GetUserByID200 as gt, AuthorizeGetParams as h, GetTokenBody as ht, ZlPasskeyErrorDetail as i, GetMyUser200 as it, CreateHandoff200 as j, SetUserPasswordBody as jt, CreateFlowDefinition201 as k, RevokeSessionParams as kt, ZlField as l, GetSchemaByIdParams as lt, AuthorizeGetDefault as m, GetToken200 as mt, zlPillManifest as n, GetLiveDefault as nt, zlPasskeyManifest as o, GetProject200 as ot, AuthorizeDeviceParams as p, GetTeamParams as pt, ExchangeHandoff200 as q, IconName as qt, ZlPasskey as r, GetMySession200 as rt, ZlPageShell as s, GetReadyDefault as st, ZlPill as t, GetKeys200 as tt, ZlFieldType as u, GetSession200 as ut, CreateFlow201 as v, GetUserInfo200 as vt, CreateFlow201StepFieldsItem as w, ListFlowDefinitionsParams as wt, CreateFlow201Step as x, IssueChallenge201 as xt, CreateFlow201Branding as y, Introspect200 as yt, CreateTeam201 as z, VerifyChallengeProof200 as zt };
7396
- //# sourceMappingURL=index-DVDCrfkv.d.mts.map
8022
+ //#region src/atoms/zl-select.d.ts
8023
+ /** A single choice in a `<zl-select>` listbox. */
8024
+ interface ZlSelectOption {
8025
+ value: string;
8026
+ label: string;
8027
+ disabled?: boolean;
8028
+ }
8029
+ /** Detail shape emitted by the `zl-change` event. */
8030
+ type ZlSelectChangeDetail = {
8031
+ name: string;
8032
+ value: string;
8033
+ };
8034
+ /**
8035
+ * Atom: `<zl-select>` — a select-only combobox bound to a single choice.
8036
+ *
8037
+ * Spec lineage (file `8UjCXw8yemgljmbkWGrSfE`, "Zitadel - Design System - External"):
8038
+ * - trigger + open/selected matrix: node `4397:4816` (Dropdown)
8039
+ * - option (Items) state matrix: node `4397:4098` (Input text)
8040
+ *
8041
+ * The trigger mirrors `<zl-field>`'s box; the popup is a `role="listbox"` whose
8042
+ * options paint the Figma hover / keyboard-active wash and the chosen row's
8043
+ * solid fill + check glyph. Follows the WAI-ARIA select-only combobox pattern:
8044
+ * focus stays on the trigger and `aria-activedescendant` tracks the active
8045
+ * option, so arrow keys move a virtual cursor without moving DOM focus.
8046
+ *
8047
+ * Form participation: `<zl-select>` is a form-associated custom element; its
8048
+ * `value` is the selected option's value (empty string = nothing chosen).
8049
+ */
8050
+ declare class ZlSelect extends LitElement {
8051
+ static formAssociated: boolean;
8052
+ static shadowRootOptions: ShadowRootInit;
8053
+ static styles: _$lit.CSSResult[];
8054
+ /**
8055
+ * Field name — used as the key in form submission and in `zl-change` detail.
8056
+ * Managed manually to avoid clobbering the native form-associated `name`
8057
+ * accessor the browser owns (see `<zl-field>` / `<zl-checkbox>`).
8058
+ */
8059
+ get name(): string;
8060
+ set name(value: string);
8061
+ accessor label: string;
8062
+ accessor value: string;
8063
+ accessor placeholder: string;
8064
+ /**
8065
+ * Listbox options. Accepts either a JS array (property binding, used by React
8066
+ * and Storybook) or a JSON string (the `options` attribute, used by the
8067
+ * orchestrator's Liquid template, which can only emit markup). Mirrors the
8068
+ * `<zl-passkey>` options contract.
8069
+ */
8070
+ accessor options: ZlSelectOption[];
8071
+ accessor required: boolean;
8072
+ accessor disabled: boolean;
8073
+ accessor open: boolean;
8074
+ accessor ariaLabelText: string | undefined;
8075
+ accessor testId: string | undefined;
8076
+ private accessor activeIndex;
8077
+ private accessor triggerEl;
8078
+ private readonly baseId;
8079
+ private readonly internals;
8080
+ private defaultValue;
8081
+ constructor();
8082
+ connectedCallback(): void;
8083
+ disconnectedCallback(): void;
8084
+ willUpdate(changed: PropertyValues<this>): void;
8085
+ formResetCallback(): void;
8086
+ formStateRestoreCallback(state: string | null): void;
8087
+ focus(options?: FocusOptions): void;
8088
+ render(): _$lit.TemplateResult<1>;
8089
+ private renderLabel;
8090
+ private renderOption;
8091
+ private optionId;
8092
+ private handleLabelClick;
8093
+ private handleTriggerClick;
8094
+ private handleTriggerKeyDown;
8095
+ private handleOptionClick;
8096
+ private handleOptionPointerMove;
8097
+ private handleDocumentPointerDown;
8098
+ private openMenu;
8099
+ private close;
8100
+ private commitActive;
8101
+ private moveActive;
8102
+ private setActive;
8103
+ private firstEnabledIndex;
8104
+ private lastEnabledIndex;
8105
+ private syncFormState;
8106
+ private triggerTestId;
8107
+ }
8108
+ declare const zlSelectManifest: AtomManifest;
8109
+ declare global {
8110
+ interface HTMLElementTagNameMap {
8111
+ "zl-select": ZlSelect;
8112
+ }
8113
+ } //# sourceMappingURL=zl-select.d.ts.map
8114
+ //#endregion
8115
+ export { ExchangeHandoff200 as $, zlButtonManifest as $t, CreateFlow201StepGates as A, ListFlowDefinitionsParams as At, CreateSchemaBody as B, SubmitFlowStep200 as Bt, CreateFlow201 as C, GetUserByIDParams as Ct, CreateFlow201StepActionsItem as D, IssueChallenge201 as Dt, CreateFlow201Step as E, IntrospectBody as Et, CreateFlowDefinitionBody as F, RevokeSessionParams as Ft, CreateTeamBody as G, VerifyChallengeProof200 as Gt, CreateSession201 as H, UpdateFlowDefinition200 as Ht, CreateHandoff200 as I, RevokeTokenBody as It, CreateUserBody as J, ZlCheckboxChangeDetail as Jt, CreateTeamParams as K, VerifyChallengeProofBody as Kt, CreateProject201 as L, SetUserPasswordBody as Lt, CreateFlowBody as M, ListSessionsParams as Mt, CreateFlowBodyPurpose as N, ListUsers200Item as Nt, CreateFlow201StepChallenge as O, IssueChallengeBody as Ot, CreateFlowDefinition201 as P, ListUsersParams as Pt, EndSessionParams as Q, ZlButton as Qt, CreateProjectBody as R, SetUserPasswordParams as Rt, CreateAuthAttemptBody as S, GetUserByID200 as St, CreateFlow201BrandingLayout as T, Introspect200 as Tt, CreateSessionBody as U, UpdateFlowDefinitionBody as Ut, CreateSchemaParams as V, SubmitFlowStepBody as Vt, CreateTeam201 as W, UpdateFlowDefinitionParams as Wt, DeactivateFlowDefinitionParams as X, ZlCard as Xt, CreateUserParams as Y, zlCheckboxManifest as Yt, DeleteFlowDefinitionParams as Z, zlCardManifest as Zt, AuthorizeDevice200 as _, GetSessionParams as _t, ZlPill as a, GetFlowStep200 as at, AuthorizeGetParams as b, GetToken200 as bt, ZlPasskeyErrorDetail as c, GetLiveDefault as ct, ZlPageShell as d, GetOpenIDConfiguration200 as dt, ZlAlert as en, ExchangeHandoffBody as et, zlPageShellManifest as f, GetProject200 as ft, ActivateFlowDefinitionParams as g, GetSession200 as gt, zlFieldManifest as h, GetSchemaByIdParams as ht, zlSelectManifest as i, zlIconManifest as in, GetFlowDefinitionParams as it, CreateFlow201StepSsoProvidersItem as j, ListSessions200 as jt, CreateFlow201StepFieldsItem as k, ListFlowDefinitions200 as kt, ZlPasskeyResultDetail as l, GetMySession200 as lt, ZlFieldType as m, GetSchemaById200 as mt, ZlSelectChangeDetail as n, IconName as nn, GetAuthAttempt200 as nt, zlPillManifest as o, GetHealthDefault as ot, ZlField as p, GetReadyDefault as pt, CreateUser201 as q, ZlCheckbox as qt, ZlSelectOption as r, ZlIcon as rn, GetFlowDefinition200 as rt, ZlPasskey as s, GetKeys200 as st, ZlSelect as t, zlAlertManifest as tn, ExchangeHandoffParams as tt, zlPasskeyManifest as u, GetMyUser200 as ut, AuthorizeDeviceParams as v, GetTeam200 as vt, CreateFlow201Branding as w, GetUserInfo200 as wt, CreateAuthAttempt201 as x, GetTokenBody as xt, AuthorizeGetDefault as y, GetTeamParams as yt, CreateSchema201 as z, SubmitFlowEventBody as zt };
8116
+ //# sourceMappingURL=index-D4LkdeFl.d.mts.map