@zitadel/api 0.1.0-alpha.13 → 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 (36) 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 +33 -4
  7. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  8. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +39 -9
  9. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  10. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +37 -8
  11. package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
  12. package/dist/generated/model/index.d.mts +2 -2
  13. package/dist/{index-DLJ0vloQ.d.mts → index-4CTwhwmD.d.mts} +123 -21
  14. package/dist/index-4CTwhwmD.d.mts.map +1 -0
  15. package/dist/runtime/api-factory.d.mts +1 -1
  16. package/dist/{zitadelNextGen-CVTkhQJe.d.mts → zitadelNextGen-DDnOEggX.d.mts} +12 -4
  17. package/dist/zitadelNextGen-DDnOEggX.d.mts.map +1 -0
  18. package/package.json +26 -5
  19. package/src/generated/endpoints/zitadelNextGen.msw.ts +39 -3
  20. package/src/generated/endpoints/zitadelNextGen.ts +34 -0
  21. package/src/generated/endpoints/zitadelNextGen.zod.ts +73 -10
  22. package/src/generated/model/createFlowDefinition201FlowDefinition.ts +5 -3
  23. package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +5 -3
  24. package/src/generated/model/createProjectBody.ts +5 -0
  25. package/src/generated/model/createSchemaBody.ts +9 -1
  26. package/src/generated/model/getFlowDefinition200FlowDefinition.ts +5 -3
  27. package/src/generated/model/getSchemaById200.ts +9 -1
  28. package/src/generated/model/index.ts +4 -0
  29. package/src/generated/model/listSchemas200Item.ts +13 -0
  30. package/src/generated/model/listSchemasDefault.ts +20 -0
  31. package/src/generated/model/listSchemasDefaultDetails.ts +12 -0
  32. package/src/generated/model/listSchemasParams.ts +33 -0
  33. package/src/generated/model/updateFlowDefinition200FlowDefinition.ts +5 -3
  34. package/src/generated/model/updateFlowDefinitionBodyFlowDefinition.ts +5 -3
  35. package/dist/index-DLJ0vloQ.d.mts.map +0 -1
  36. package/dist/zitadelNextGen-CVTkhQJe.d.mts.map +0 -1
@@ -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(
@@ -3062,9 +3125,9 @@ export const CreateFlowDefinitionBody = zod
3062
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",
3063
3126
  ),
3064
3127
  user_schema: zod
3065
- .url()
3128
+ .string()
3066
3129
  .describe(
3067
- "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",
3068
3131
  ),
3069
3132
  purposes: zod
3070
3133
  .record(zod.string(), zod.string())
@@ -3354,9 +3417,9 @@ export const GetFlowDefinitionResponse = zod.object({
3354
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",
3355
3418
  ),
3356
3419
  user_schema: zod
3357
- .url()
3420
+ .string()
3358
3421
  .describe(
3359
- "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",
3360
3423
  ),
3361
3424
  purposes: zod
3362
3425
  .record(zod.string(), zod.string())
@@ -3574,9 +3637,9 @@ export const UpdateFlowDefinitionBody = zod
3574
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",
3575
3638
  ),
3576
3639
  user_schema: zod
3577
- .url()
3640
+ .string()
3578
3641
  .describe(
3579
- "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",
3580
3643
  ),
3581
3644
  purposes: zod
3582
3645
  .record(zod.string(), zod.string())
@@ -3771,9 +3834,9 @@ export const UpdateFlowDefinitionResponse = zod.object({
3771
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",
3772
3835
  ),
3773
3836
  user_schema: zod
3774
- .url()
3837
+ .string()
3775
3838
  .describe(
3776
- "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",
3777
3840
  ),
3778
3841
  purposes: zod
3779
3842
  .record(zod.string(), zod.string())
@@ -40,9 +40,11 @@ export type CreateFlowDefinition201FlowDefinition = {
40
40
  - active -> draft: To remove the flow definition from active use immediately.
41
41
  */
42
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.
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.
@@ -40,9 +40,11 @@ export type CreateFlowDefinitionBodyFlowDefinition = {
40
40
  - active -> draft: To remove the flow definition from active use immediately.
41
41
  */
42
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.
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 */
@@ -40,9 +40,11 @@ export type GetFlowDefinition200FlowDefinition = {
40
40
  - active -> draft: To remove the flow definition from active use immediately.
41
41
  */
42
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.
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.
@@ -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 */
@@ -362,6 +362,10 @@ export * from "./listFlowDefinitionsDefault";
362
362
  export * from "./listFlowDefinitionsDefaultDetails";
363
363
  export * from "./listFlowDefinitionsParams";
364
364
  export * from "./listFlowDefinitionsPurpose";
365
+ export * from "./listSchemas200Item";
366
+ export * from "./listSchemasDefault";
367
+ export * from "./listSchemasDefaultDetails";
368
+ export * from "./listSchemasParams";
365
369
  export * from "./listSessions200";
366
370
  export * from "./listSessions200SessionsItem";
367
371
  export * from "./listSessions200SessionsItemFactorsItem";
@@ -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
+ };
@@ -40,9 +40,11 @@ export type UpdateFlowDefinition200FlowDefinition = {
40
40
  - active -> draft: To remove the flow definition from active use immediately.
41
41
  */
42
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.
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.
@@ -40,9 +40,11 @@ export type UpdateFlowDefinitionBodyFlowDefinition = {
40
40
  - active -> draft: To remove the flow definition from active use immediately.
41
41
  */
42
42
  status: UpdateFlowDefinitionBodyFlowDefinitionStatus;
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.
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.