@zitadel/api 0.1.0-alpha.10 → 0.1.0-alpha.12

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 (89) hide show
  1. package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
  2. package/dist/generated/endpoints/zitadelNextGen.mjs +56 -6
  3. package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
  4. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +5 -3
  5. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
  6. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +65 -18
  7. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  8. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +165 -52
  9. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  10. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +135 -51
  11. package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
  12. package/dist/generated/model/index.d.mts +2 -2
  13. package/dist/generated/model/index.mjs +142 -7
  14. package/dist/generated/model/index.mjs.map +1 -1
  15. package/dist/{index-BGnjxx-b.d.mts → index-1TIHnDrM.d.mts} +915 -77
  16. package/dist/index-1TIHnDrM.d.mts.map +1 -0
  17. package/dist/runtime/api-factory.d.mts +1 -1
  18. package/dist/{zitadelNextGen-BS4VE7_Y.d.mts → zitadelNextGen-AAujo87_.d.mts} +30 -8
  19. package/dist/zitadelNextGen-AAujo87_.d.mts.map +1 -0
  20. package/package.json +1 -1
  21. package/src/generated/endpoints/zitadelNextGen.msw.ts +92 -7
  22. package/src/generated/endpoints/zitadelNextGen.ts +82 -5
  23. package/src/generated/endpoints/zitadelNextGen.zod.ts +479 -322
  24. package/src/generated/model/activateFlowDefinition400.ts +20 -0
  25. package/src/generated/model/activateFlowDefinition400Details.ts +12 -0
  26. package/src/generated/model/activateFlowDefinitionDefault.ts +20 -0
  27. package/src/generated/model/activateFlowDefinitionDefaultDetails.ts +12 -0
  28. package/src/generated/model/activateFlowDefinitionParams.ts +15 -0
  29. package/src/generated/model/createFlow201StepActionsItem.ts +15 -1
  30. package/src/generated/model/createFlow201StepActionsItemKind.ts +31 -0
  31. package/src/generated/model/createFlowBody.ts +5 -0
  32. package/src/generated/model/createFlowDefinition201.ts +11 -2
  33. package/src/generated/model/createFlowDefinition201FlowDefinition.ts +11 -0
  34. package/src/generated/model/createFlowDefinition201FlowDefinitionStatus.ts +26 -0
  35. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +15 -1
  36. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +31 -0
  37. package/src/generated/model/createFlowDefinition201Status.ts +26 -0
  38. package/src/generated/model/createFlowDefinitionBody.ts +6 -0
  39. package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +11 -0
  40. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStatus.ts +26 -0
  41. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +15 -1
  42. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +31 -0
  43. package/src/generated/model/deactivateFlowDefinition400.ts +20 -0
  44. package/src/generated/model/deactivateFlowDefinition400Details.ts +12 -0
  45. package/src/generated/model/deactivateFlowDefinition409.ts +20 -0
  46. package/src/generated/model/deactivateFlowDefinition409Details.ts +12 -0
  47. package/src/generated/model/deactivateFlowDefinitionDefault.ts +20 -0
  48. package/src/generated/model/deactivateFlowDefinitionDefaultDetails.ts +12 -0
  49. package/src/generated/model/deactivateFlowDefinitionParams.ts +15 -0
  50. package/src/generated/model/deleteFlowDefinition409.ts +20 -0
  51. package/src/generated/model/deleteFlowDefinition409Details.ts +12 -0
  52. package/src/generated/model/getFlowDefinition200.ts +11 -2
  53. package/src/generated/model/getFlowDefinition200FlowDefinition.ts +11 -0
  54. package/src/generated/model/getFlowDefinition200FlowDefinitionStatus.ts +26 -0
  55. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +15 -1
  56. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +31 -0
  57. package/src/generated/model/getFlowDefinition200Status.ts +26 -0
  58. package/src/generated/model/getFlowStep200StepActionsItem.ts +15 -1
  59. package/src/generated/model/getFlowStep200StepActionsItemKind.ts +31 -0
  60. package/src/generated/model/index.ts +43 -10
  61. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItem.ts +11 -2
  62. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemStatus.ts +26 -0
  63. package/src/generated/model/submitFlowStep200StepActionsItem.ts +15 -1
  64. package/src/generated/model/submitFlowStep200StepActionsItemKind.ts +31 -0
  65. package/src/generated/model/submitFlowStep400StepActionsItem.ts +15 -1
  66. package/src/generated/model/submitFlowStep400StepActionsItemKind.ts +31 -0
  67. package/src/generated/model/updateFlowDefinition200.ts +11 -2
  68. package/src/generated/model/updateFlowDefinition200FlowDefinition.ts +11 -0
  69. package/src/generated/model/updateFlowDefinition200FlowDefinitionStatus.ts +26 -0
  70. package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +15 -1
  71. package/src/generated/model/updateFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +31 -0
  72. package/src/generated/model/updateFlowDefinition200Status.ts +26 -0
  73. package/src/generated/model/updateFlowDefinitionBody.ts +16 -30
  74. package/src/generated/model/updateFlowDefinitionBodyFlowDefinition.ts +69 -0
  75. package/src/generated/model/{updateFlowDefinitionBodyAudience.ts → updateFlowDefinitionBodyFlowDefinitionAudience.ts} +1 -1
  76. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStatus.ts +26 -0
  77. package/src/generated/model/{updateFlowDefinitionBodyStepsItem.ts → updateFlowDefinitionBodyFlowDefinitionStepsItem.ts} +13 -13
  78. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +42 -0
  79. package/src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +31 -0
  80. package/src/generated/model/{updateFlowDefinitionBodyStepsItemComplete.ts → updateFlowDefinitionBodyFlowDefinitionStepsItemComplete.ts} +3 -3
  81. package/src/generated/model/{updateFlowDefinitionBodyStepsItemGates.ts → updateFlowDefinitionBodyFlowDefinitionStepsItemGates.ts} +5 -5
  82. package/src/generated/model/{updateFlowDefinitionBodyStepsItemGatesConfig.ts → updateFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig.ts} +1 -1
  83. package/src/generated/model/{updateFlowDefinitionBodyStepsItemGatesKind.ts → updateFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts} +3 -3
  84. package/src/generated/model/{updateFlowDefinitionBodyStepsItemOnSuccess.ts → updateFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess.ts} +3 -3
  85. package/src/generated/model/{updateFlowDefinitionBodyStepsItemSsoProvidersItem.ts → updateFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItem.ts} +1 -1
  86. package/src/generated/model/{updateFlowDefinitionBodyStepsItemTransitions.ts → updateFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts} +1 -1
  87. package/dist/index-BGnjxx-b.d.mts.map +0 -1
  88. package/dist/zitadelNextGen-BS4VE7_Y.d.mts.map +0 -1
  89. package/src/generated/model/updateFlowDefinitionBodyStepsItemActionsItem.ts +0 -28
@@ -6,6 +6,7 @@
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
8
  import type { GetFlowDefinition200FlowDefinitionAudience } from "./getFlowDefinition200FlowDefinitionAudience";
9
+ import type { GetFlowDefinition200FlowDefinitionStatus } from "./getFlowDefinition200FlowDefinitionStatus";
9
10
  import type { GetFlowDefinition200FlowDefinitionStepsItem } from "./getFlowDefinition200FlowDefinitionStepsItem";
10
11
 
11
12
  /**
@@ -29,6 +30,16 @@ export type GetFlowDefinition200FlowDefinition = {
29
30
  * @pattern ^[a-z][a-z0-9-]*$
30
31
  */
31
32
  name: string;
33
+ /** The lifecycle state of this flow definition.
34
+
35
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
36
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
37
+
38
+ Allowed transitions:
39
+ - draft -> active: To activate the flow definition.
40
+ - active -> draft: To remove the flow definition from active use immediately.
41
+ */
42
+ status?: GetFlowDefinition200FlowDefinitionStatus;
32
43
  /** User schema this flow operates on. Step `fields` reference properties
33
44
  defined in this schema. The engine resolves field types, validation,
34
45
  and implicit outcomes from schema annotations at runtime.
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+
9
+ /**
10
+ * The lifecycle state of this flow definition.
11
+
12
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
13
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
14
+
15
+ Allowed transitions:
16
+ - draft -> active: To activate the flow definition.
17
+ - active -> draft: To remove the flow definition from active use immediately.
18
+
19
+ */
20
+ export type GetFlowDefinition200FlowDefinitionStatus =
21
+ (typeof GetFlowDefinition200FlowDefinitionStatus)[keyof typeof GetFlowDefinition200FlowDefinitionStatus];
22
+
23
+ export const GetFlowDefinition200FlowDefinitionStatus = {
24
+ active: "active",
25
+ draft: "draft",
26
+ } as const;
@@ -5,15 +5,29 @@
5
5
  * This is the next generation of the Zitadel identity platform.
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
+ import type { GetFlowDefinition200FlowDefinitionStepsItemActionsItemKind } from "./getFlowDefinition200FlowDefinitionStepsItemActionsItemKind";
8
9
 
9
10
  /**
10
11
  * Configuration for a user-invokable action on a step. The `name` is sent
11
- back in the submit request as `action`.
12
+ back in the submit request as `action`; the engine resolves the action's
13
+ declared `kind` to decide how to handle the submission.
12
14
 
13
15
  */
14
16
  export type GetFlowDefinition200FlowDefinitionStepsItemActionsItem = {
15
17
  /** Action identifier. Sent back in the submit request as `action`. */
16
18
  name: string;
19
+ /** Classifies how the engine handles this action:
20
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
21
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
22
+ fires once the returned assertion verifies.
23
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
24
+ transition fires once the returned attestation verifies.
25
+ - `navigate`: route through the transition without running the input
26
+ pipeline. Used for pure-routing actions declared in the flow definition.
27
+ - `back`: return the user to the previous step. Surfaced by the engine
28
+ when going back is available.
29
+ */
30
+ kind: GetFlowDefinition200FlowDefinitionStepsItemActionsItemKind;
17
31
  /** Marks this as the default/primary action. The runtime template uses
18
32
  this hint to choose visual emphasis. At most one action per step
19
33
  should be primary; this is not enforced here.
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+
9
+ /**
10
+ * Classifies how the engine handles this action:
11
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
12
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
13
+ fires once the returned assertion verifies.
14
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
15
+ transition fires once the returned attestation verifies.
16
+ - `navigate`: route through the transition without running the input
17
+ pipeline. Used for pure-routing actions declared in the flow definition.
18
+ - `back`: return the user to the previous step. Surfaced by the engine
19
+ when going back is available.
20
+
21
+ */
22
+ export type GetFlowDefinition200FlowDefinitionStepsItemActionsItemKind =
23
+ (typeof GetFlowDefinition200FlowDefinitionStepsItemActionsItemKind)[keyof typeof GetFlowDefinition200FlowDefinitionStepsItemActionsItemKind];
24
+
25
+ export const GetFlowDefinition200FlowDefinitionStepsItemActionsItemKind = {
26
+ submit: "submit",
27
+ passkey: "passkey",
28
+ passkey_register: "passkey_register",
29
+ navigate: "navigate",
30
+ back: "back",
31
+ } as const;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+
9
+ /**
10
+ * The lifecycle state of this flow definition.
11
+
12
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
13
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
14
+
15
+ Allowed transitions:
16
+ - draft -> active: To activate the flow definition.
17
+ - active -> draft: To remove the flow definition from active use immediately.
18
+
19
+ */
20
+ export type GetFlowDefinition200Status =
21
+ (typeof GetFlowDefinition200Status)[keyof typeof GetFlowDefinition200Status];
22
+
23
+ export const GetFlowDefinition200Status = {
24
+ active: "active",
25
+ draft: "draft",
26
+ } as const;
@@ -5,15 +5,29 @@
5
5
  * This is the next generation of the Zitadel identity platform.
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
+ import type { GetFlowStep200StepActionsItemKind } from "./getFlowStep200StepActionsItemKind";
8
9
 
9
10
  /**
10
11
  * Configuration for a user-invokable action on a step. The `name` is sent
11
- back in the submit request as `action`.
12
+ back in the submit request as `action`; the engine resolves the action's
13
+ declared `kind` to decide how to handle the submission.
12
14
 
13
15
  */
14
16
  export type GetFlowStep200StepActionsItem = {
15
17
  /** Action identifier. Sent back in the submit request as `action`. */
16
18
  name: string;
19
+ /** Classifies how the engine handles this action:
20
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
21
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
22
+ fires once the returned assertion verifies.
23
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
24
+ transition fires once the returned attestation verifies.
25
+ - `navigate`: route through the transition without running the input
26
+ pipeline. Used for pure-routing actions declared in the flow definition.
27
+ - `back`: return the user to the previous step. Surfaced by the engine
28
+ when going back is available.
29
+ */
30
+ kind: GetFlowStep200StepActionsItemKind;
17
31
  /** Marks this as the default/primary action. The runtime template uses
18
32
  this hint to choose visual emphasis. At most one action per step
19
33
  should be primary; this is not enforced here.
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+
9
+ /**
10
+ * Classifies how the engine handles this action:
11
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
12
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
13
+ fires once the returned assertion verifies.
14
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
15
+ transition fires once the returned attestation verifies.
16
+ - `navigate`: route through the transition without running the input
17
+ pipeline. Used for pure-routing actions declared in the flow definition.
18
+ - `back`: return the user to the previous step. Surfaced by the engine
19
+ when going back is available.
20
+
21
+ */
22
+ export type GetFlowStep200StepActionsItemKind =
23
+ (typeof GetFlowStep200StepActionsItemKind)[keyof typeof GetFlowStep200StepActionsItemKind];
24
+
25
+ export const GetFlowStep200StepActionsItemKind = {
26
+ submit: "submit",
27
+ passkey: "passkey",
28
+ passkey_register: "passkey_register",
29
+ navigate: "navigate",
30
+ back: "back",
31
+ } as const;
@@ -6,6 +6,11 @@
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
8
 
9
+ export * from "./activateFlowDefinition400";
10
+ export * from "./activateFlowDefinition400Details";
11
+ export * from "./activateFlowDefinitionDefault";
12
+ export * from "./activateFlowDefinitionDefaultDetails";
13
+ export * from "./activateFlowDefinitionParams";
9
14
  export * from "./authorizeDevice200";
10
15
  export * from "./authorizeDevice400";
11
16
  export * from "./authorizeDevice400Details";
@@ -34,6 +39,7 @@ export * from "./createFlow201Branding";
34
39
  export * from "./createFlow201BrandingLayout";
35
40
  export * from "./createFlow201Step";
36
41
  export * from "./createFlow201StepActionsItem";
42
+ export * from "./createFlow201StepActionsItemKind";
37
43
  export * from "./createFlow201StepChallenge";
38
44
  export * from "./createFlow201StepChallengeMethod";
39
45
  export * from "./createFlow201StepChallengeOptions";
@@ -57,8 +63,10 @@ export * from "./createFlowDefaultDetails";
57
63
  export * from "./createFlowDefinition201";
58
64
  export * from "./createFlowDefinition201FlowDefinition";
59
65
  export * from "./createFlowDefinition201FlowDefinitionAudience";
66
+ export * from "./createFlowDefinition201FlowDefinitionStatus";
60
67
  export * from "./createFlowDefinition201FlowDefinitionStepsItem";
61
68
  export * from "./createFlowDefinition201FlowDefinitionStepsItemActionsItem";
69
+ export * from "./createFlowDefinition201FlowDefinitionStepsItemActionsItemKind";
62
70
  export * from "./createFlowDefinition201FlowDefinitionStepsItemComplete";
63
71
  export * from "./createFlowDefinition201FlowDefinitionStepsItemGates";
64
72
  export * from "./createFlowDefinition201FlowDefinitionStepsItemGatesConfig";
@@ -66,6 +74,7 @@ export * from "./createFlowDefinition201FlowDefinitionStepsItemGatesKind";
66
74
  export * from "./createFlowDefinition201FlowDefinitionStepsItemOnSuccess";
67
75
  export * from "./createFlowDefinition201FlowDefinitionStepsItemSsoProvidersItem";
68
76
  export * from "./createFlowDefinition201FlowDefinitionStepsItemTransitions";
77
+ export * from "./createFlowDefinition201Status";
69
78
  export * from "./createFlowDefinition400";
70
79
  export * from "./createFlowDefinition400Details";
71
80
  export * from "./createFlowDefinition409";
@@ -73,8 +82,10 @@ export * from "./createFlowDefinition409Details";
73
82
  export * from "./createFlowDefinitionBody";
74
83
  export * from "./createFlowDefinitionBodyFlowDefinition";
75
84
  export * from "./createFlowDefinitionBodyFlowDefinitionAudience";
85
+ export * from "./createFlowDefinitionBodyFlowDefinitionStatus";
76
86
  export * from "./createFlowDefinitionBodyFlowDefinitionStepsItem";
77
87
  export * from "./createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem";
88
+ export * from "./createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind";
78
89
  export * from "./createFlowDefinitionBodyFlowDefinitionStepsItemComplete";
79
90
  export * from "./createFlowDefinitionBodyFlowDefinitionStepsItemGates";
80
91
  export * from "./createFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig";
@@ -137,6 +148,15 @@ export * from "./createUserBody";
137
148
  export * from "./createUserDefault";
138
149
  export * from "./createUserDefaultDetails";
139
150
  export * from "./createUserParams";
151
+ export * from "./deactivateFlowDefinition400";
152
+ export * from "./deactivateFlowDefinition400Details";
153
+ export * from "./deactivateFlowDefinition409";
154
+ export * from "./deactivateFlowDefinition409Details";
155
+ export * from "./deactivateFlowDefinitionDefault";
156
+ export * from "./deactivateFlowDefinitionDefaultDetails";
157
+ export * from "./deactivateFlowDefinitionParams";
158
+ export * from "./deleteFlowDefinition409";
159
+ export * from "./deleteFlowDefinition409Details";
140
160
  export * from "./deleteFlowDefinitionDefault";
141
161
  export * from "./deleteFlowDefinitionDefaultDetails";
142
162
  export * from "./deleteFlowDefinitionParams";
@@ -177,8 +197,10 @@ export * from "./getAuthAttemptDefault";
177
197
  export * from "./getFlowDefinition200";
178
198
  export * from "./getFlowDefinition200FlowDefinition";
179
199
  export * from "./getFlowDefinition200FlowDefinitionAudience";
200
+ export * from "./getFlowDefinition200FlowDefinitionStatus";
180
201
  export * from "./getFlowDefinition200FlowDefinitionStepsItem";
181
202
  export * from "./getFlowDefinition200FlowDefinitionStepsItemActionsItem";
203
+ export * from "./getFlowDefinition200FlowDefinitionStepsItemActionsItemKind";
182
204
  export * from "./getFlowDefinition200FlowDefinitionStepsItemComplete";
183
205
  export * from "./getFlowDefinition200FlowDefinitionStepsItemGates";
184
206
  export * from "./getFlowDefinition200FlowDefinitionStepsItemGatesConfig";
@@ -186,6 +208,7 @@ export * from "./getFlowDefinition200FlowDefinitionStepsItemGatesKind";
186
208
  export * from "./getFlowDefinition200FlowDefinitionStepsItemOnSuccess";
187
209
  export * from "./getFlowDefinition200FlowDefinitionStepsItemSsoProvidersItem";
188
210
  export * from "./getFlowDefinition200FlowDefinitionStepsItemTransitions";
211
+ export * from "./getFlowDefinition200Status";
189
212
  export * from "./getFlowDefinitionDefault";
190
213
  export * from "./getFlowDefinitionDefaultDetails";
191
214
  export * from "./getFlowDefinitionParams";
@@ -194,6 +217,7 @@ export * from "./getFlowStep200Branding";
194
217
  export * from "./getFlowStep200BrandingLayout";
195
218
  export * from "./getFlowStep200Step";
196
219
  export * from "./getFlowStep200StepActionsItem";
220
+ export * from "./getFlowStep200StepActionsItemKind";
197
221
  export * from "./getFlowStep200StepChallenge";
198
222
  export * from "./getFlowStep200StepChallengeMethod";
199
223
  export * from "./getFlowStep200StepChallengeOptions";
@@ -333,6 +357,7 @@ export * from "./issueChallengeBodyPasskeyOptionsUserVerification";
333
357
  export * from "./issueChallengeDefault";
334
358
  export * from "./listFlowDefinitions200";
335
359
  export * from "./listFlowDefinitions200FlowDefinitionsItem";
360
+ export * from "./listFlowDefinitions200FlowDefinitionsItemStatus";
336
361
  export * from "./listFlowDefinitions400";
337
362
  export * from "./listFlowDefinitions400Details";
338
363
  export * from "./listFlowDefinitionsDefault";
@@ -411,6 +436,7 @@ export * from "./submitFlowStep200Branding";
411
436
  export * from "./submitFlowStep200BrandingLayout";
412
437
  export * from "./submitFlowStep200Step";
413
438
  export * from "./submitFlowStep200StepActionsItem";
439
+ export * from "./submitFlowStep200StepActionsItemKind";
414
440
  export * from "./submitFlowStep200StepChallenge";
415
441
  export * from "./submitFlowStep200StepChallengeMethod";
416
442
  export * from "./submitFlowStep200StepChallengeOptions";
@@ -429,6 +455,7 @@ export * from "./submitFlowStep400Branding";
429
455
  export * from "./submitFlowStep400BrandingLayout";
430
456
  export * from "./submitFlowStep400Step";
431
457
  export * from "./submitFlowStep400StepActionsItem";
458
+ export * from "./submitFlowStep400StepActionsItemKind";
432
459
  export * from "./submitFlowStep400StepChallenge";
433
460
  export * from "./submitFlowStep400StepChallengeMethod";
434
461
  export * from "./submitFlowStep400StepChallengeOptions";
@@ -454,8 +481,10 @@ export * from "./submitFlowStepDefaultDetails";
454
481
  export * from "./updateFlowDefinition200";
455
482
  export * from "./updateFlowDefinition200FlowDefinition";
456
483
  export * from "./updateFlowDefinition200FlowDefinitionAudience";
484
+ export * from "./updateFlowDefinition200FlowDefinitionStatus";
457
485
  export * from "./updateFlowDefinition200FlowDefinitionStepsItem";
458
486
  export * from "./updateFlowDefinition200FlowDefinitionStepsItemActionsItem";
487
+ export * from "./updateFlowDefinition200FlowDefinitionStepsItemActionsItemKind";
459
488
  export * from "./updateFlowDefinition200FlowDefinitionStepsItemComplete";
460
489
  export * from "./updateFlowDefinition200FlowDefinitionStepsItemGates";
461
490
  export * from "./updateFlowDefinition200FlowDefinitionStepsItemGatesConfig";
@@ -463,21 +492,25 @@ export * from "./updateFlowDefinition200FlowDefinitionStepsItemGatesKind";
463
492
  export * from "./updateFlowDefinition200FlowDefinitionStepsItemOnSuccess";
464
493
  export * from "./updateFlowDefinition200FlowDefinitionStepsItemSsoProvidersItem";
465
494
  export * from "./updateFlowDefinition200FlowDefinitionStepsItemTransitions";
495
+ export * from "./updateFlowDefinition200Status";
466
496
  export * from "./updateFlowDefinition400";
467
497
  export * from "./updateFlowDefinition400Details";
468
498
  export * from "./updateFlowDefinition404";
469
499
  export * from "./updateFlowDefinition404Details";
470
500
  export * from "./updateFlowDefinitionBody";
471
- export * from "./updateFlowDefinitionBodyAudience";
472
- export * from "./updateFlowDefinitionBodyStepsItem";
473
- export * from "./updateFlowDefinitionBodyStepsItemActionsItem";
474
- export * from "./updateFlowDefinitionBodyStepsItemComplete";
475
- export * from "./updateFlowDefinitionBodyStepsItemGates";
476
- export * from "./updateFlowDefinitionBodyStepsItemGatesConfig";
477
- export * from "./updateFlowDefinitionBodyStepsItemGatesKind";
478
- export * from "./updateFlowDefinitionBodyStepsItemOnSuccess";
479
- export * from "./updateFlowDefinitionBodyStepsItemSsoProvidersItem";
480
- export * from "./updateFlowDefinitionBodyStepsItemTransitions";
501
+ export * from "./updateFlowDefinitionBodyFlowDefinition";
502
+ export * from "./updateFlowDefinitionBodyFlowDefinitionAudience";
503
+ export * from "./updateFlowDefinitionBodyFlowDefinitionStatus";
504
+ export * from "./updateFlowDefinitionBodyFlowDefinitionStepsItem";
505
+ export * from "./updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItem";
506
+ export * from "./updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind";
507
+ export * from "./updateFlowDefinitionBodyFlowDefinitionStepsItemComplete";
508
+ export * from "./updateFlowDefinitionBodyFlowDefinitionStepsItemGates";
509
+ export * from "./updateFlowDefinitionBodyFlowDefinitionStepsItemGatesConfig";
510
+ export * from "./updateFlowDefinitionBodyFlowDefinitionStepsItemGatesKind";
511
+ export * from "./updateFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess";
512
+ export * from "./updateFlowDefinitionBodyFlowDefinitionStepsItemSsoProvidersItem";
513
+ export * from "./updateFlowDefinitionBodyFlowDefinitionStepsItemTransitions";
481
514
  export * from "./updateFlowDefinitionDefault";
482
515
  export * from "./updateFlowDefinitionDefaultDetails";
483
516
  export * from "./updateFlowDefinitionParams";
@@ -5,6 +5,7 @@
5
5
  * This is the next generation of the Zitadel identity platform.
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
+ import type { ListFlowDefinitions200FlowDefinitionsItemStatus } from "./listFlowDefinitions200FlowDefinitionsItemStatus";
8
9
 
9
10
  /**
10
11
  * Response object for a flow definition after creation.
@@ -25,8 +26,16 @@ export type ListFlowDefinitions200FlowDefinitionsItem = {
25
26
  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.
26
27
  */
27
28
  schema_uri?: string;
28
- /** Status of the flow definition. */
29
- status: string;
29
+ /** The lifecycle state of this flow definition.
30
+
31
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
32
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
33
+
34
+ Allowed transitions:
35
+ - draft -> active: To activate the flow definition.
36
+ - active -> draft: To remove the flow definition from active use immediately.
37
+ */
38
+ status: ListFlowDefinitions200FlowDefinitionsItemStatus;
30
39
  /** Timestamp when the flow definition was created. */
31
40
  created_at: string;
32
41
  /** Timestamp when the flow definition was last updated. */
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+
9
+ /**
10
+ * The lifecycle state of this flow definition.
11
+
12
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
13
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
14
+
15
+ Allowed transitions:
16
+ - draft -> active: To activate the flow definition.
17
+ - active -> draft: To remove the flow definition from active use immediately.
18
+
19
+ */
20
+ export type ListFlowDefinitions200FlowDefinitionsItemStatus =
21
+ (typeof ListFlowDefinitions200FlowDefinitionsItemStatus)[keyof typeof ListFlowDefinitions200FlowDefinitionsItemStatus];
22
+
23
+ export const ListFlowDefinitions200FlowDefinitionsItemStatus = {
24
+ active: "active",
25
+ draft: "draft",
26
+ } as const;
@@ -5,15 +5,29 @@
5
5
  * This is the next generation of the Zitadel identity platform.
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
+ import type { SubmitFlowStep200StepActionsItemKind } from "./submitFlowStep200StepActionsItemKind";
8
9
 
9
10
  /**
10
11
  * Configuration for a user-invokable action on a step. The `name` is sent
11
- back in the submit request as `action`.
12
+ back in the submit request as `action`; the engine resolves the action's
13
+ declared `kind` to decide how to handle the submission.
12
14
 
13
15
  */
14
16
  export type SubmitFlowStep200StepActionsItem = {
15
17
  /** Action identifier. Sent back in the submit request as `action`. */
16
18
  name: string;
19
+ /** Classifies how the engine handles this action:
20
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
21
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
22
+ fires once the returned assertion verifies.
23
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
24
+ transition fires once the returned attestation verifies.
25
+ - `navigate`: route through the transition without running the input
26
+ pipeline. Used for pure-routing actions declared in the flow definition.
27
+ - `back`: return the user to the previous step. Surfaced by the engine
28
+ when going back is available.
29
+ */
30
+ kind: SubmitFlowStep200StepActionsItemKind;
17
31
  /** Marks this as the default/primary action. The runtime template uses
18
32
  this hint to choose visual emphasis. At most one action per step
19
33
  should be primary; this is not enforced here.
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+
9
+ /**
10
+ * Classifies how the engine handles this action:
11
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
12
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
13
+ fires once the returned assertion verifies.
14
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
15
+ transition fires once the returned attestation verifies.
16
+ - `navigate`: route through the transition without running the input
17
+ pipeline. Used for pure-routing actions declared in the flow definition.
18
+ - `back`: return the user to the previous step. Surfaced by the engine
19
+ when going back is available.
20
+
21
+ */
22
+ export type SubmitFlowStep200StepActionsItemKind =
23
+ (typeof SubmitFlowStep200StepActionsItemKind)[keyof typeof SubmitFlowStep200StepActionsItemKind];
24
+
25
+ export const SubmitFlowStep200StepActionsItemKind = {
26
+ submit: "submit",
27
+ passkey: "passkey",
28
+ passkey_register: "passkey_register",
29
+ navigate: "navigate",
30
+ back: "back",
31
+ } as const;
@@ -5,15 +5,29 @@
5
5
  * This is the next generation of the Zitadel identity platform.
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
+ import type { SubmitFlowStep400StepActionsItemKind } from "./submitFlowStep400StepActionsItemKind";
8
9
 
9
10
  /**
10
11
  * Configuration for a user-invokable action on a step. The `name` is sent
11
- back in the submit request as `action`.
12
+ back in the submit request as `action`; the engine resolves the action's
13
+ declared `kind` to decide how to handle the submission.
12
14
 
13
15
  */
14
16
  export type SubmitFlowStep400StepActionsItem = {
15
17
  /** Action identifier. Sent back in the submit request as `action`. */
16
18
  name: string;
19
+ /** Classifies how the engine handles this action:
20
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
21
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
22
+ fires once the returned assertion verifies.
23
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
24
+ transition fires once the returned attestation verifies.
25
+ - `navigate`: route through the transition without running the input
26
+ pipeline. Used for pure-routing actions declared in the flow definition.
27
+ - `back`: return the user to the previous step. Surfaced by the engine
28
+ when going back is available.
29
+ */
30
+ kind: SubmitFlowStep400StepActionsItemKind;
17
31
  /** Marks this as the default/primary action. The runtime template uses
18
32
  this hint to choose visual emphasis. At most one action per step
19
33
  should be primary; this is not enforced here.
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+
9
+ /**
10
+ * Classifies how the engine handles this action:
11
+ - `submit`: collect the step's fields and run validate/dispatch/on_success.
12
+ - `passkey`: issue a WebAuthn assertion challenge; the matching transition
13
+ fires once the returned assertion verifies.
14
+ - `passkey_register`: issue a WebAuthn registration challenge; the matching
15
+ transition fires once the returned attestation verifies.
16
+ - `navigate`: route through the transition without running the input
17
+ pipeline. Used for pure-routing actions declared in the flow definition.
18
+ - `back`: return the user to the previous step. Surfaced by the engine
19
+ when going back is available.
20
+
21
+ */
22
+ export type SubmitFlowStep400StepActionsItemKind =
23
+ (typeof SubmitFlowStep400StepActionsItemKind)[keyof typeof SubmitFlowStep400StepActionsItemKind];
24
+
25
+ export const SubmitFlowStep400StepActionsItemKind = {
26
+ submit: "submit",
27
+ passkey: "passkey",
28
+ passkey_register: "passkey_register",
29
+ navigate: "navigate",
30
+ back: "back",
31
+ } as const;
@@ -6,14 +6,23 @@
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
8
  import type { UpdateFlowDefinition200FlowDefinition } from "./updateFlowDefinition200FlowDefinition";
9
+ import type { UpdateFlowDefinition200Status } from "./updateFlowDefinition200Status";
9
10
 
10
11
  export type UpdateFlowDefinition200 = {
11
12
  /** Unique identifier for the flow definition. */
12
13
  id: string;
13
14
  /** Identifier of the project this flow definition belongs to. */
14
15
  project_id: string;
15
- /** Status of the flow definition. */
16
- status: string;
16
+ /** The lifecycle state of this flow definition.
17
+
18
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
19
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
20
+
21
+ Allowed transitions:
22
+ - draft -> active: To activate the flow definition.
23
+ - active -> draft: To remove the flow definition from active use immediately.
24
+ */
25
+ status: UpdateFlowDefinition200Status;
17
26
  /** A flow definition is the server-side configuration that describes a complete
18
27
  authentication or identity flow. It is NOT sent to the frontend — the flow
19
28
  engine evaluates it and produces FlowResponse payloads (steps with capability
@@ -6,6 +6,7 @@
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
8
  import type { UpdateFlowDefinition200FlowDefinitionAudience } from "./updateFlowDefinition200FlowDefinitionAudience";
9
+ import type { UpdateFlowDefinition200FlowDefinitionStatus } from "./updateFlowDefinition200FlowDefinitionStatus";
9
10
  import type { UpdateFlowDefinition200FlowDefinitionStepsItem } from "./updateFlowDefinition200FlowDefinitionStepsItem";
10
11
 
11
12
  /**
@@ -29,6 +30,16 @@ export type UpdateFlowDefinition200FlowDefinition = {
29
30
  * @pattern ^[a-z][a-z0-9-]*$
30
31
  */
31
32
  name: string;
33
+ /** The lifecycle state of this flow definition.
34
+
35
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
36
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
37
+
38
+ Allowed transitions:
39
+ - draft -> active: To activate the flow definition.
40
+ - active -> draft: To remove the flow definition from active use immediately.
41
+ */
42
+ status?: UpdateFlowDefinition200FlowDefinitionStatus;
32
43
  /** User schema this flow operates on. Step `fields` reference properties
33
44
  defined in this schema. The engine resolves field types, validation,
34
45
  and implicit outcomes from schema annotations at runtime.
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Generated by orval v8.10.0 🍺
3
+ * Do not edit manually.
4
+ * Zitadel NextGen
5
+ * This is the next generation of the Zitadel identity platform.
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+
9
+ /**
10
+ * The lifecycle state of this flow definition.
11
+
12
+ active: The flow definition is ready to be used. The flow engine can select it for new flows.
13
+ draft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.
14
+
15
+ Allowed transitions:
16
+ - draft -> active: To activate the flow definition.
17
+ - active -> draft: To remove the flow definition from active use immediately.
18
+
19
+ */
20
+ export type UpdateFlowDefinition200FlowDefinitionStatus =
21
+ (typeof UpdateFlowDefinition200FlowDefinitionStatus)[keyof typeof UpdateFlowDefinition200FlowDefinitionStatus];
22
+
23
+ export const UpdateFlowDefinition200FlowDefinitionStatus = {
24
+ active: "active",
25
+ draft: "draft",
26
+ } as const;