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

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 (49) hide show
  1. package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
  2. package/dist/generated/endpoints/zitadelNextGen.mjs +23 -1
  3. package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
  4. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +4 -2
  5. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
  6. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +36 -10
  7. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  8. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +51 -34
  9. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  10. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +45 -25
  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 +17 -23
  14. package/dist/generated/model/index.mjs.map +1 -1
  15. package/dist/{index-1TIHnDrM.d.mts → index-4CTwhwmD.d.mts} +132 -126
  16. package/dist/index-4CTwhwmD.d.mts.map +1 -0
  17. package/dist/runtime/api-factory.d.mts +1 -1
  18. package/dist/{zitadelNextGen-AAujo87_.d.mts → zitadelNextGen-DDnOEggX.d.mts} +12 -4
  19. package/dist/zitadelNextGen-DDnOEggX.d.mts.map +1 -0
  20. package/package.json +26 -5
  21. package/src/generated/endpoints/zitadelNextGen.msw.ts +42 -9
  22. package/src/generated/endpoints/zitadelNextGen.ts +34 -0
  23. package/src/generated/endpoints/zitadelNextGen.zod.ts +76 -39
  24. package/src/generated/model/createFlow201StepChallengeMethod.ts +1 -0
  25. package/src/generated/model/createFlowDefinition201.ts +0 -11
  26. package/src/generated/model/createFlowDefinition201FlowDefinition.ts +6 -4
  27. package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +6 -4
  28. package/src/generated/model/createProjectBody.ts +5 -0
  29. package/src/generated/model/createSchemaBody.ts +9 -1
  30. package/src/generated/model/getFlowDefinition200.ts +0 -11
  31. package/src/generated/model/getFlowDefinition200FlowDefinition.ts +6 -4
  32. package/src/generated/model/getFlowStep200StepChallengeMethod.ts +1 -0
  33. package/src/generated/model/getSchemaById200.ts +9 -1
  34. package/src/generated/model/index.ts +4 -3
  35. package/src/generated/model/listSchemas200Item.ts +13 -0
  36. package/src/generated/model/listSchemasDefault.ts +20 -0
  37. package/src/generated/model/listSchemasDefaultDetails.ts +12 -0
  38. package/src/generated/model/listSchemasParams.ts +33 -0
  39. package/src/generated/model/submitFlowStep200StepChallengeMethod.ts +1 -0
  40. package/src/generated/model/submitFlowStep400StepChallengeMethod.ts +1 -0
  41. package/src/generated/model/updateFlowDefinition200.ts +0 -11
  42. package/src/generated/model/updateFlowDefinition200FlowDefinition.ts +6 -4
  43. package/src/generated/model/updateFlowDefinitionBody.ts +0 -1
  44. package/src/generated/model/updateFlowDefinitionBodyFlowDefinition.ts +6 -4
  45. package/dist/index-1TIHnDrM.d.mts.map +0 -1
  46. package/dist/zitadelNextGen-AAujo87_.d.mts.map +0 -1
  47. package/src/generated/model/createFlowDefinition201Status.ts +0 -26
  48. package/src/generated/model/getFlowDefinition200Status.ts +0 -26
  49. package/src/generated/model/updateFlowDefinition200Status.ts +0 -26
@@ -913,7 +913,7 @@ export const GetFlowStepResponse = zod.object({
913
913
  challenge: zod
914
914
  .object({
915
915
  method: zod
916
- .enum(["passkey"])
916
+ .enum(["passkey", "passkey_register"])
917
917
  .optional()
918
918
  .describe("Challenge method. Determines which component handles the ceremony."),
919
919
  challenge_id: zod
@@ -1279,7 +1279,7 @@ export const SubmitFlowStepResponse = zod.object({
1279
1279
  challenge: zod
1280
1280
  .object({
1281
1281
  method: zod
1282
- .enum(["passkey"])
1282
+ .enum(["passkey", "passkey_register"])
1283
1283
  .optional()
1284
1284
  .describe("Challenge method. Determines which component handles the ceremony."),
1285
1285
  challenge_id: zod
@@ -1978,11 +1978,19 @@ export const CreateHandoffResponse = zod
1978
1978
  /**
1979
1979
  * @summary Create project
1980
1980
  */
1981
+ export const createProjectBodySeedDefaultsDefault = true;
1982
+
1981
1983
  export const CreateProjectBody = zod.object({
1982
1984
  previewOrigins: zod
1983
1985
  .array(zod.string())
1984
1986
  .optional()
1985
1987
  .describe("Origins which are allowed for previewing and testing the project.\n"),
1988
+ seedDefaults: zod
1989
+ .boolean()
1990
+ .default(createProjectBodySeedDefaultsDefault)
1991
+ .describe(
1992
+ "Whether the server should provision fallback default user schema and flow\nresources for the project. CLI-managed projects set this to false and\nupload their local .zitadel config files through the schema and flow APIs.\n",
1993
+ ),
1986
1994
  });
1987
1995
 
1988
1996
  /**
@@ -2721,6 +2729,8 @@ export const CreateSchemaQueryParams = zod.strictObject({
2721
2729
  .describe("The unique identifier of the team"),
2722
2730
  });
2723
2731
 
2732
+ export const createSchemaBodyOneObjectTypeMax = 256;
2733
+
2724
2734
  export const createSchemaBodyOneXAuthMethodsPasswordPositionMin = 0;
2725
2735
 
2726
2736
  export const createSchemaBodyOneXAuthMethodsPasskeyPositionMin = 0;
@@ -2738,6 +2748,11 @@ export const createSchemaBodyOnePropertiesXMfaDefault = false;
2738
2748
  export const CreateSchemaBody = zod.union([
2739
2749
  zod
2740
2750
  .object({
2751
+ objectType: zod
2752
+ .string()
2753
+ .max(createSchemaBodyOneObjectTypeMax)
2754
+ .optional()
2755
+ .describe("The type of user this schema describes. This is a customer chosen name.\n"),
2741
2756
  kind: zod
2742
2757
  .literal("user-schema")
2743
2758
  .describe("Discriminator value for a user schema create request."),
@@ -2853,7 +2868,7 @@ export const CreateSchemaBody = zod.union([
2853
2868
  )
2854
2869
  .optional()
2855
2870
  .describe(
2856
- "A map of additional properties for the user definition, where the key is the property name and the value is the property schema",
2871
+ "A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n",
2857
2872
  ),
2858
2873
  })
2859
2874
  .describe(
@@ -2871,6 +2886,47 @@ export const CreateSchemaBody = zod.union([
2871
2886
  ),
2872
2887
  ]);
2873
2888
 
2889
+ /**
2890
+ * Retrieve a list of all schemas available in the system. This endpoint
2891
+ supports pagination and filtering based on schema attributes.
2892
+
2893
+ * @summary List all schemas
2894
+ */
2895
+ export const listSchemasQueryProjectIdRegExp = new RegExp("^[a-zA-Z0-9_-]+$");
2896
+ export const listSchemasQueryOffsetDefault = 0;
2897
+ export const listSchemasQueryOffsetMin = 0;
2898
+
2899
+ export const listSchemasQueryObjectTypeMax = 256;
2900
+
2901
+ export const ListSchemasQueryParams = zod.strictObject({
2902
+ project_id: zod
2903
+ .string()
2904
+ .regex(listSchemasQueryProjectIdRegExp)
2905
+ .describe("The unique identifier of the project"),
2906
+ offset: zod
2907
+ .number()
2908
+ .min(listSchemasQueryOffsetMin)
2909
+ .default(listSchemasQueryOffsetDefault)
2910
+ .describe("Number of items to skip before returning results."),
2911
+ page_token: zod
2912
+ .string()
2913
+ .optional()
2914
+ .describe(
2915
+ "Token for fetching the next page of results.\nObtain this value from `next_page_token` in the previous response.\nOmit to start from the beginning.\nIts format is opaque and may change between releases.\n",
2916
+ ),
2917
+ object_type: zod
2918
+ .string()
2919
+ .max(listSchemasQueryObjectTypeMax)
2920
+ .optional()
2921
+ .describe("The type of object of the schema to filter by."),
2922
+ });
2923
+
2924
+ export const ListSchemasResponseItem = zod.object({
2925
+ id: zod.string().describe("The unique identifier for this schema."),
2926
+ createdAt: zod.iso.datetime({ offset: true }),
2927
+ });
2928
+ export const ListSchemasResponse = zod.array(ListSchemasResponseItem);
2929
+
2874
2930
  /**
2875
2931
  * Get a schema by its ID. This will return the default revision of the schema.
2876
2932
  * @summary Get schema by ID
@@ -2894,6 +2950,8 @@ export const GetSchemaByIdQueryParams = zod.strictObject({
2894
2950
  .describe("The unique identifier of the team"),
2895
2951
  });
2896
2952
 
2953
+ export const getSchemaByIdResponseOneObjectTypeMax = 256;
2954
+
2897
2955
  export const getSchemaByIdResponseOneXAuthMethodsPasswordPositionMin = 0;
2898
2956
 
2899
2957
  export const getSchemaByIdResponseOneXAuthMethodsPasskeyPositionMin = 0;
@@ -2910,6 +2968,11 @@ export const getSchemaByIdResponseOnePropertiesXMfaDefault = false;
2910
2968
 
2911
2969
  export const GetSchemaByIdResponse = zod
2912
2970
  .object({
2971
+ objectType: zod
2972
+ .string()
2973
+ .max(getSchemaByIdResponseOneObjectTypeMax)
2974
+ .optional()
2975
+ .describe("The type of user this schema describes. This is a customer chosen name.\n"),
2913
2976
  kind: zod
2914
2977
  .literal("user-schema")
2915
2978
  .describe("Discriminator value for a user schema create request."),
@@ -3015,7 +3078,7 @@ export const GetSchemaByIdResponse = zod
3015
3078
  )
3016
3079
  .optional()
3017
3080
  .describe(
3018
- "A map of additional properties for the user definition, where the key is the property name and the value is the property schema",
3081
+ "A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n",
3019
3082
  ),
3020
3083
  })
3021
3084
  .describe(
@@ -3033,7 +3096,6 @@ Flow definitions are created based on the flow definition schema, which includes
3033
3096
  */
3034
3097
  export const createFlowDefinitionBodyProjectIdRegExp = new RegExp("^[a-zA-Z0-9_-]+$");
3035
3098
  export const createFlowDefinitionBodyFlowDefinitionNameRegExp = new RegExp("^[a-z][a-z0-9-]\*$");
3036
- export const createFlowDefinitionBodyFlowDefinitionStatusDefault = `active`;
3037
3099
  export const createFlowDefinitionBodyFlowDefinitionStepsItemFieldsDefault = [];
3038
3100
  export const createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemPrimaryDefault = false;
3039
3101
  export const createFlowDefinitionBodyFlowDefinitionStepsItemActionsDefault = [];
@@ -3059,14 +3121,13 @@ export const CreateFlowDefinitionBody = zod
3059
3121
  ),
3060
3122
  status: zod
3061
3123
  .enum(["active", "draft"])
3062
- .default(createFlowDefinitionBodyFlowDefinitionStatusDefault)
3063
3124
  .describe(
3064
3125
  "The lifecycle state of this flow definition. \n\nactive: The flow definition is ready to be used. The flow engine can select it for new flows.\ndraft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.\n\nAllowed transitions:\n- draft -> active: To activate the flow definition.\n- active -> draft: To remove the flow definition from active use immediately.\n",
3065
3126
  ),
3066
3127
  user_schema: zod
3067
- .url()
3128
+ .string()
3068
3129
  .describe(
3069
- "User schema this flow operates on. Step `fields` reference properties\ndefined in this schema. The engine resolves field types, validation,\nand implicit outcomes from schema annotations at runtime.\n",
3130
+ "Server-assigned identifier of the user schema this flow operates on,\nas returned by `POST \/schemas`. Opaque to the client — the shape is a\nserver implementation detail. Step `fields` reference properties\ndefined in the resolved schema; the engine resolves field types, validation, and\nimplicit outcomes from schema annotations at runtime.\n",
3070
3131
  ),
3071
3132
  purposes: zod
3072
3133
  .record(zod.string(), zod.string())
@@ -3274,7 +3335,6 @@ export const ListFlowDefinitionsQueryParams = zod.strictObject({
3274
3335
  export const listFlowDefinitionsResponseFlowDefinitionsItemNameRegExp = new RegExp(
3275
3336
  "^[a-z][a-z0-9-]\*$",
3276
3337
  );
3277
- export const listFlowDefinitionsResponseFlowDefinitionsItemStatusDefault = `active`;
3278
3338
 
3279
3339
  export const ListFlowDefinitionsResponse = zod.object({
3280
3340
  flow_definitions: zod.array(
@@ -3296,7 +3356,6 @@ export const ListFlowDefinitionsResponse = zod.object({
3296
3356
  ),
3297
3357
  status: zod
3298
3358
  .enum(["active", "draft"])
3299
- .default(listFlowDefinitionsResponseFlowDefinitionsItemStatusDefault)
3300
3359
  .describe(
3301
3360
  "The lifecycle state of this flow definition. \n\nactive: The flow definition is ready to be used. The flow engine can select it for new flows.\ndraft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.\n\nAllowed transitions:\n- draft -> active: To activate the flow definition.\n- active -> draft: To remove the flow definition from active use immediately.\n",
3302
3361
  ),
@@ -3334,9 +3393,7 @@ export const GetFlowDefinitionQueryParams = zod.strictObject({
3334
3393
  .describe("The project id to filter by."),
3335
3394
  });
3336
3395
 
3337
- export const getFlowDefinitionResponseStatusDefault = `active`;
3338
3396
  export const getFlowDefinitionResponseFlowDefinitionNameRegExp = new RegExp("^[a-z][a-z0-9-]\*$");
3339
- export const getFlowDefinitionResponseFlowDefinitionStatusDefault = `active`;
3340
3397
  export const getFlowDefinitionResponseFlowDefinitionStepsItemFieldsDefault = [];
3341
3398
  export const getFlowDefinitionResponseFlowDefinitionStepsItemActionsItemPrimaryDefault = false;
3342
3399
  export const getFlowDefinitionResponseFlowDefinitionStepsItemActionsDefault = [];
@@ -3346,12 +3403,6 @@ export const getFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersDefault
3346
3403
  export const GetFlowDefinitionResponse = zod.object({
3347
3404
  id: zod.string().describe("Unique identifier for the flow definition."),
3348
3405
  project_id: zod.string().describe("Identifier of the project this flow definition belongs to."),
3349
- status: zod
3350
- .enum(["active", "draft"])
3351
- .default(getFlowDefinitionResponseStatusDefault)
3352
- .describe(
3353
- "The lifecycle state of this flow definition. \n\nactive: The flow definition is ready to be used. The flow engine can select it for new flows.\ndraft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.\n\nAllowed transitions:\n- draft -> active: To activate the flow definition.\n- active -> draft: To remove the flow definition from active use immediately.\n",
3354
- ),
3355
3406
  flow_definition: zod
3356
3407
  .object({
3357
3408
  name: zod
@@ -3362,14 +3413,13 @@ export const GetFlowDefinitionResponse = zod.object({
3362
3413
  ),
3363
3414
  status: zod
3364
3415
  .enum(["active", "draft"])
3365
- .default(getFlowDefinitionResponseFlowDefinitionStatusDefault)
3366
3416
  .describe(
3367
3417
  "The lifecycle state of this flow definition. \n\nactive: The flow definition is ready to be used. The flow engine can select it for new flows.\ndraft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.\n\nAllowed transitions:\n- draft -> active: To activate the flow definition.\n- active -> draft: To remove the flow definition from active use immediately.\n",
3368
3418
  ),
3369
3419
  user_schema: zod
3370
- .url()
3420
+ .string()
3371
3421
  .describe(
3372
- "User schema this flow operates on. Step `fields` reference properties\ndefined in this schema. The engine resolves field types, validation,\nand implicit outcomes from schema annotations at runtime.\n",
3422
+ "Server-assigned identifier of the user schema this flow operates on,\nas returned by `POST \/schemas`. Opaque to the client — the shape is a\nserver implementation detail. Step `fields` reference properties\ndefined in the resolved schema; the engine resolves field types, validation, and\nimplicit outcomes from schema annotations at runtime.\n",
3373
3423
  ),
3374
3424
  purposes: zod
3375
3425
  .record(zod.string(), zod.string())
@@ -3559,7 +3609,6 @@ export const UpdateFlowDefinitionQueryParams = zod.strictObject({
3559
3609
  });
3560
3610
 
3561
3611
  export const updateFlowDefinitionBodyFlowDefinitionNameRegExp = new RegExp("^[a-z][a-z0-9-]\*$");
3562
- export const updateFlowDefinitionBodyFlowDefinitionStatusDefault = `active`;
3563
3612
  export const updateFlowDefinitionBodyFlowDefinitionStepsItemFieldsDefault = [];
3564
3613
  export const updateFlowDefinitionBodyFlowDefinitionStepsItemActionsItemPrimaryDefault = false;
3565
3614
  export const updateFlowDefinitionBodyFlowDefinitionStepsItemActionsDefault = [];
@@ -3584,14 +3633,13 @@ export const UpdateFlowDefinitionBody = zod
3584
3633
  ),
3585
3634
  status: zod
3586
3635
  .enum(["active", "draft"])
3587
- .default(updateFlowDefinitionBodyFlowDefinitionStatusDefault)
3588
3636
  .describe(
3589
3637
  "The lifecycle state of this flow definition. \n\nactive: The flow definition is ready to be used. The flow engine can select it for new flows.\ndraft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.\n\nAllowed transitions:\n- draft -> active: To activate the flow definition.\n- active -> draft: To remove the flow definition from active use immediately.\n",
3590
3638
  ),
3591
3639
  user_schema: zod
3592
- .url()
3640
+ .string()
3593
3641
  .describe(
3594
- "User schema this flow operates on. Step `fields` reference properties\ndefined in this schema. The engine resolves field types, validation,\nand implicit outcomes from schema annotations at runtime.\n",
3642
+ "Server-assigned identifier of the user schema this flow operates on,\nas returned by `POST \/schemas`. Opaque to the client — the shape is a\nserver implementation detail. Step `fields` reference properties\ndefined in the resolved schema; the engine resolves field types, validation, and\nimplicit outcomes from schema annotations at runtime.\n",
3595
3643
  ),
3596
3644
  purposes: zod
3597
3645
  .record(zod.string(), zod.string())
@@ -3758,15 +3806,11 @@ export const UpdateFlowDefinitionBody = zod
3758
3806
  "A flow definition is the server-side configuration that describes a complete\nauthentication or identity flow. It is NOT sent to the frontend — the flow\nengine evaluates it and produces FlowResponse payloads (steps with capability\ndictionaries) for the client.\n\nFlow definitions are created by administrators and stored in the project\/team\nconfiguration hierarchy. The engine selects the matching definition based on\nthe purpose + audience when a flow is created via POST \/flow.\n",
3759
3807
  ),
3760
3808
  })
3761
- .describe(
3762
- "Replaces the existing flow definition.\nIf `flow_definition.status` is omitted, the current status is preserved\n",
3763
- );
3809
+ .describe("Replaces the existing flow definition.\n");
3764
3810
 
3765
- export const updateFlowDefinitionResponseStatusDefault = `active`;
3766
3811
  export const updateFlowDefinitionResponseFlowDefinitionNameRegExp = new RegExp(
3767
3812
  "^[a-z][a-z0-9-]\*$",
3768
3813
  );
3769
- export const updateFlowDefinitionResponseFlowDefinitionStatusDefault = `active`;
3770
3814
  export const updateFlowDefinitionResponseFlowDefinitionStepsItemFieldsDefault = [];
3771
3815
  export const updateFlowDefinitionResponseFlowDefinitionStepsItemActionsItemPrimaryDefault = false;
3772
3816
  export const updateFlowDefinitionResponseFlowDefinitionStepsItemActionsDefault = [];
@@ -3776,12 +3820,6 @@ export const updateFlowDefinitionResponseFlowDefinitionStepsItemSsoProvidersDefa
3776
3820
  export const UpdateFlowDefinitionResponse = zod.object({
3777
3821
  id: zod.string().describe("Unique identifier for the flow definition."),
3778
3822
  project_id: zod.string().describe("Identifier of the project this flow definition belongs to."),
3779
- status: zod
3780
- .enum(["active", "draft"])
3781
- .default(updateFlowDefinitionResponseStatusDefault)
3782
- .describe(
3783
- "The lifecycle state of this flow definition. \n\nactive: The flow definition is ready to be used. The flow engine can select it for new flows.\ndraft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.\n\nAllowed transitions:\n- draft -> active: To activate the flow definition.\n- active -> draft: To remove the flow definition from active use immediately.\n",
3784
- ),
3785
3823
  flow_definition: zod
3786
3824
  .object({
3787
3825
  name: zod
@@ -3792,14 +3830,13 @@ export const UpdateFlowDefinitionResponse = zod.object({
3792
3830
  ),
3793
3831
  status: zod
3794
3832
  .enum(["active", "draft"])
3795
- .default(updateFlowDefinitionResponseFlowDefinitionStatusDefault)
3796
3833
  .describe(
3797
3834
  "The lifecycle state of this flow definition. \n\nactive: The flow definition is ready to be used. The flow engine can select it for new flows.\ndraft: The engine will not select it for new flows, and existing flows must handle it gracefully if they reference this definition.\n\nAllowed transitions:\n- draft -> active: To activate the flow definition.\n- active -> draft: To remove the flow definition from active use immediately.\n",
3798
3835
  ),
3799
3836
  user_schema: zod
3800
- .url()
3837
+ .string()
3801
3838
  .describe(
3802
- "User schema this flow operates on. Step `fields` reference properties\ndefined in this schema. The engine resolves field types, validation,\nand implicit outcomes from schema annotations at runtime.\n",
3839
+ "Server-assigned identifier of the user schema this flow operates on,\nas returned by `POST \/schemas`. Opaque to the client — the shape is a\nserver implementation detail. Step `fields` reference properties\ndefined in the resolved schema; the engine resolves field types, validation, and\nimplicit outcomes from schema annotations at runtime.\n",
3803
3840
  ),
3804
3841
  purposes: zod
3805
3842
  .record(zod.string(), zod.string())
@@ -14,4 +14,5 @@ export type CreateFlow201StepChallengeMethod =
14
14
 
15
15
  export const CreateFlow201StepChallengeMethod = {
16
16
  passkey: "passkey",
17
+ passkey_register: "passkey_register",
17
18
  } as const;
@@ -6,23 +6,12 @@
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
8
  import type { CreateFlowDefinition201FlowDefinition } from "./createFlowDefinition201FlowDefinition";
9
- import type { CreateFlowDefinition201Status } from "./createFlowDefinition201Status";
10
9
 
11
10
  export type CreateFlowDefinition201 = {
12
11
  /** Unique identifier for the flow definition. */
13
12
  id: string;
14
13
  /** Identifier of the project this flow definition belongs to. */
15
14
  project_id: 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: CreateFlowDefinition201Status;
26
15
  /** A flow definition is the server-side configuration that describes a complete
27
16
  authentication or identity flow. It is NOT sent to the frontend — the flow
28
17
  engine evaluates it and produces FlowResponse payloads (steps with capability
@@ -39,10 +39,12 @@ export type CreateFlowDefinition201FlowDefinition = {
39
39
  - draft -> active: To activate the flow definition.
40
40
  - active -> draft: To remove the flow definition from active use immediately.
41
41
  */
42
- status?: CreateFlowDefinition201FlowDefinitionStatus;
43
- /** User schema this flow operates on. Step `fields` reference properties
44
- defined in this schema. The engine resolves field types, validation,
45
- and implicit outcomes from schema annotations at runtime.
42
+ status: CreateFlowDefinition201FlowDefinitionStatus;
43
+ /** Server-assigned identifier of the user schema this flow operates on,
44
+ as returned by `POST /schemas`. Opaque to the client — the shape is a
45
+ server implementation detail. Step `fields` reference properties
46
+ defined in the resolved schema; the engine resolves field types, validation, and
47
+ implicit outcomes from schema annotations at runtime.
46
48
  */
47
49
  user_schema: string;
48
50
  /** Maps each purpose this definition handles to its entry-point step.
@@ -39,10 +39,12 @@ export type CreateFlowDefinitionBodyFlowDefinition = {
39
39
  - draft -> active: To activate the flow definition.
40
40
  - active -> draft: To remove the flow definition from active use immediately.
41
41
  */
42
- status?: CreateFlowDefinitionBodyFlowDefinitionStatus;
43
- /** User schema this flow operates on. Step `fields` reference properties
44
- defined in this schema. The engine resolves field types, validation,
45
- and implicit outcomes from schema annotations at runtime.
42
+ status: CreateFlowDefinitionBodyFlowDefinitionStatus;
43
+ /** Server-assigned identifier of the user schema this flow operates on,
44
+ as returned by `POST /schemas`. Opaque to the client — the shape is a
45
+ server implementation detail. Step `fields` reference properties
46
+ defined in the resolved schema; the engine resolves field types, validation, and
47
+ implicit outcomes from schema annotations at runtime.
46
48
  */
47
49
  user_schema: string;
48
50
  /** Maps each purpose this definition handles to its entry-point step.
@@ -10,4 +10,9 @@ export type CreateProjectBody = {
10
10
  /** Origins which are allowed for previewing and testing the project.
11
11
  */
12
12
  previewOrigins?: string[];
13
+ /** Whether the server should provision fallback default user schema and flow
14
+ resources for the project. CLI-managed projects set this to false and
15
+ upload their local .zitadel config files through the schema and flow APIs.
16
+ */
17
+ seedDefaults?: boolean;
13
18
  };
@@ -8,6 +8,12 @@
8
8
 
9
9
  export type CreateSchemaBody =
10
10
  | {
11
+ /**
12
+ * The type of user this schema describes. This is a customer chosen name.
13
+
14
+ * @maxLength 256
15
+ */
16
+ objectType?: string;
11
17
  /** Discriminator value for a user schema create request. */
12
18
  kind: "user-schema";
13
19
  /** The user Schema version used for this schema. */
@@ -60,7 +66,9 @@ export type CreateSchemaBody =
60
66
  position: number;
61
67
  };
62
68
  };
63
- /** A map of additional properties for the user definition, where the key is the property name and the value is the property schema */
69
+ /** A map of additional properties for the user definition, where the
70
+ key is the property name and the value is the property schema
71
+ */
64
72
  properties?: {
65
73
  [key: string]: {
66
74
  /** The verification method for this property, if applicable */
@@ -6,23 +6,12 @@
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
8
  import type { GetFlowDefinition200FlowDefinition } from "./getFlowDefinition200FlowDefinition";
9
- import type { GetFlowDefinition200Status } from "./getFlowDefinition200Status";
10
9
 
11
10
  export type GetFlowDefinition200 = {
12
11
  /** Unique identifier for the flow definition. */
13
12
  id: string;
14
13
  /** Identifier of the project this flow definition belongs to. */
15
14
  project_id: 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: GetFlowDefinition200Status;
26
15
  /** A flow definition is the server-side configuration that describes a complete
27
16
  authentication or identity flow. It is NOT sent to the frontend — the flow
28
17
  engine evaluates it and produces FlowResponse payloads (steps with capability
@@ -39,10 +39,12 @@ export type GetFlowDefinition200FlowDefinition = {
39
39
  - draft -> active: To activate the flow definition.
40
40
  - active -> draft: To remove the flow definition from active use immediately.
41
41
  */
42
- status?: GetFlowDefinition200FlowDefinitionStatus;
43
- /** User schema this flow operates on. Step `fields` reference properties
44
- defined in this schema. The engine resolves field types, validation,
45
- and implicit outcomes from schema annotations at runtime.
42
+ status: GetFlowDefinition200FlowDefinitionStatus;
43
+ /** Server-assigned identifier of the user schema this flow operates on,
44
+ as returned by `POST /schemas`. Opaque to the client — the shape is a
45
+ server implementation detail. Step `fields` reference properties
46
+ defined in the resolved schema; the engine resolves field types, validation, and
47
+ implicit outcomes from schema annotations at runtime.
46
48
  */
47
49
  user_schema: string;
48
50
  /** Maps each purpose this definition handles to its entry-point step.
@@ -14,4 +14,5 @@ export type GetFlowStep200StepChallengeMethod =
14
14
 
15
15
  export const GetFlowStep200StepChallengeMethod = {
16
16
  passkey: "passkey",
17
+ passkey_register: "passkey_register",
17
18
  } as const;
@@ -7,6 +7,12 @@
7
7
  */
8
8
 
9
9
  export type GetSchemaById200 = {
10
+ /**
11
+ * The type of user this schema describes. This is a customer chosen name.
12
+
13
+ * @maxLength 256
14
+ */
15
+ objectType?: string;
10
16
  /** Discriminator value for a user schema create request. */
11
17
  kind: "user-schema";
12
18
  /** The user Schema version used for this schema. */
@@ -59,7 +65,9 @@ export type GetSchemaById200 = {
59
65
  position: number;
60
66
  };
61
67
  };
62
- /** A map of additional properties for the user definition, where the key is the property name and the value is the property schema */
68
+ /** A map of additional properties for the user definition, where the
69
+ key is the property name and the value is the property schema
70
+ */
63
71
  properties?: {
64
72
  [key: string]: {
65
73
  /** The verification method for this property, if applicable */
@@ -74,7 +74,6 @@ export * from "./createFlowDefinition201FlowDefinitionStepsItemGatesKind";
74
74
  export * from "./createFlowDefinition201FlowDefinitionStepsItemOnSuccess";
75
75
  export * from "./createFlowDefinition201FlowDefinitionStepsItemSsoProvidersItem";
76
76
  export * from "./createFlowDefinition201FlowDefinitionStepsItemTransitions";
77
- export * from "./createFlowDefinition201Status";
78
77
  export * from "./createFlowDefinition400";
79
78
  export * from "./createFlowDefinition400Details";
80
79
  export * from "./createFlowDefinition409";
@@ -208,7 +207,6 @@ export * from "./getFlowDefinition200FlowDefinitionStepsItemGatesKind";
208
207
  export * from "./getFlowDefinition200FlowDefinitionStepsItemOnSuccess";
209
208
  export * from "./getFlowDefinition200FlowDefinitionStepsItemSsoProvidersItem";
210
209
  export * from "./getFlowDefinition200FlowDefinitionStepsItemTransitions";
211
- export * from "./getFlowDefinition200Status";
212
210
  export * from "./getFlowDefinitionDefault";
213
211
  export * from "./getFlowDefinitionDefaultDetails";
214
212
  export * from "./getFlowDefinitionParams";
@@ -364,6 +362,10 @@ export * from "./listFlowDefinitionsDefault";
364
362
  export * from "./listFlowDefinitionsDefaultDetails";
365
363
  export * from "./listFlowDefinitionsParams";
366
364
  export * from "./listFlowDefinitionsPurpose";
365
+ export * from "./listSchemas200Item";
366
+ export * from "./listSchemasDefault";
367
+ export * from "./listSchemasDefaultDetails";
368
+ export * from "./listSchemasParams";
367
369
  export * from "./listSessions200";
368
370
  export * from "./listSessions200SessionsItem";
369
371
  export * from "./listSessions200SessionsItemFactorsItem";
@@ -492,7 +494,6 @@ export * from "./updateFlowDefinition200FlowDefinitionStepsItemGatesKind";
492
494
  export * from "./updateFlowDefinition200FlowDefinitionStepsItemOnSuccess";
493
495
  export * from "./updateFlowDefinition200FlowDefinitionStepsItemSsoProvidersItem";
494
496
  export * from "./updateFlowDefinition200FlowDefinitionStepsItemTransitions";
495
- export * from "./updateFlowDefinition200Status";
496
497
  export * from "./updateFlowDefinition400";
497
498
  export * from "./updateFlowDefinition400Details";
498
499
  export * from "./updateFlowDefinition404";
@@ -0,0 +1,13 @@
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
+ export type ListSchemas200Item = {
10
+ /** The unique identifier for this schema. */
11
+ id: string;
12
+ createdAt: string;
13
+ };
@@ -0,0 +1,20 @@
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
+ import type { ListSchemasDefaultDetails } from "./listSchemasDefaultDetails";
9
+
10
+ /**
11
+ * Standard error payload returned for failed API requests.
12
+ */
13
+ export type ListSchemasDefault = {
14
+ /** Stable machine-readable error code. */
15
+ code: string;
16
+ /** Human-readable explanation of the error. */
17
+ message: string;
18
+ /** Additional error-specific context. */
19
+ details?: ListSchemasDefaultDetails;
20
+ };
@@ -0,0 +1,12 @@
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
+ * Additional error-specific context.
11
+ */
12
+ export type ListSchemasDefaultDetails = { [key: string]: unknown };
@@ -0,0 +1,33 @@
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
+ export type ListSchemasParams = {
10
+ /**
11
+ * The unique identifier of the project
12
+ * @pattern ^[a-zA-Z0-9_-]+$
13
+ */
14
+ project_id: string;
15
+ /**
16
+ * Number of items to skip before returning results.
17
+ * @minimum 0
18
+ */
19
+ offset?: number;
20
+ /**
21
+ * Token for fetching the next page of results.
22
+ Obtain this value from `next_page_token` in the previous response.
23
+ Omit to start from the beginning.
24
+ Its format is opaque and may change between releases.
25
+
26
+ */
27
+ page_token?: string;
28
+ /**
29
+ * The type of object of the schema to filter by.
30
+ * @maxLength 256
31
+ */
32
+ object_type?: string;
33
+ };
@@ -14,4 +14,5 @@ export type SubmitFlowStep200StepChallengeMethod =
14
14
 
15
15
  export const SubmitFlowStep200StepChallengeMethod = {
16
16
  passkey: "passkey",
17
+ passkey_register: "passkey_register",
17
18
  } as const;
@@ -14,4 +14,5 @@ export type SubmitFlowStep400StepChallengeMethod =
14
14
 
15
15
  export const SubmitFlowStep400StepChallengeMethod = {
16
16
  passkey: "passkey",
17
+ passkey_register: "passkey_register",
17
18
  } as const;
@@ -6,23 +6,12 @@
6
6
  * OpenAPI spec version: 0.0.1
7
7
  */
8
8
  import type { UpdateFlowDefinition200FlowDefinition } from "./updateFlowDefinition200FlowDefinition";
9
- import type { UpdateFlowDefinition200Status } from "./updateFlowDefinition200Status";
10
9
 
11
10
  export type UpdateFlowDefinition200 = {
12
11
  /** Unique identifier for the flow definition. */
13
12
  id: string;
14
13
  /** Identifier of the project this flow definition belongs to. */
15
14
  project_id: 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;
26
15
  /** A flow definition is the server-side configuration that describes a complete
27
16
  authentication or identity flow. It is NOT sent to the frontend — the flow
28
17
  engine evaluates it and produces FlowResponse payloads (steps with capability
@@ -39,10 +39,12 @@ export type UpdateFlowDefinition200FlowDefinition = {
39
39
  - draft -> active: To activate the flow definition.
40
40
  - active -> draft: To remove the flow definition from active use immediately.
41
41
  */
42
- status?: UpdateFlowDefinition200FlowDefinitionStatus;
43
- /** User schema this flow operates on. Step `fields` reference properties
44
- defined in this schema. The engine resolves field types, validation,
45
- and implicit outcomes from schema annotations at runtime.
42
+ status: UpdateFlowDefinition200FlowDefinitionStatus;
43
+ /** Server-assigned identifier of the user schema this flow operates on,
44
+ as returned by `POST /schemas`. Opaque to the client — the shape is a
45
+ server implementation detail. Step `fields` reference properties
46
+ defined in the resolved schema; the engine resolves field types, validation, and
47
+ implicit outcomes from schema annotations at runtime.
46
48
  */
47
49
  user_schema: string;
48
50
  /** Maps each purpose this definition handles to its entry-point step.