@zitadel/api 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/dist/{fetch-DD3lSbnp.d.mts → fetch-CtYe0OvX.d.mts} +8 -2
  2. package/dist/fetch-CtYe0OvX.d.mts.map +1 -0
  3. package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
  4. package/dist/generated/endpoints/zitadelNextGen.mjs +291 -44
  5. package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
  6. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +17 -4
  7. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
  8. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +3184 -1471
  9. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  10. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +1342 -85
  11. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  12. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +1865 -648
  13. package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
  14. package/dist/generated/model/index.d.mts +2 -2
  15. package/dist/generated/model/index.mjs +76 -65
  16. package/dist/generated/model/index.mjs.map +1 -1
  17. package/dist/generated/operations.mjs +202 -29
  18. package/dist/generated/operations.mjs.map +1 -1
  19. package/dist/{index-DuuFQkA8.d.mts → index-DAm3tCA7.d.mts} +6562 -1257
  20. package/dist/index-DAm3tCA7.d.mts.map +1 -0
  21. package/dist/runtime/api-factory.d.mts +1 -1
  22. package/dist/runtime/fetch.d.mts +1 -1
  23. package/dist/runtime/fetch.mjs +9 -2
  24. package/dist/runtime/fetch.mjs.map +1 -1
  25. package/dist/{zitadelNextGen-BdUDEEuX.d.mts → zitadelNextGen-B_VRpP2W.d.mts} +165 -39
  26. package/dist/zitadelNextGen-B_VRpP2W.d.mts.map +1 -0
  27. package/package.json +3 -2
  28. package/src/generated/endpoints/zitadelNextGen.faker.ts +46 -25
  29. package/src/generated/endpoints/zitadelNextGen.msw.ts +106 -13
  30. package/src/generated/endpoints/zitadelNextGen.ts +404 -54
  31. package/src/generated/endpoints/zitadelNextGen.zod.ts +1159 -133
  32. package/src/generated/model/addOriginDefault.ts +27 -0
  33. package/src/generated/model/beginUserPasskeyRegistrationDefault.ts +18 -0
  34. package/src/generated/model/buildRelease200PointersItem.ts +2 -0
  35. package/src/generated/model/buildRelease200PointersItemKind.ts +1 -0
  36. package/src/generated/model/buildRelease201PointersItem.ts +2 -0
  37. package/src/generated/model/buildRelease201PointersItemKind.ts +1 -0
  38. package/src/generated/model/buildRelease400DetailsResourcesItemKind.ts +1 -0
  39. package/src/generated/model/buildReleaseBody.ts +3 -3
  40. package/src/generated/model/buildReleaseBodyBundle.ts +20 -3
  41. package/src/generated/model/buildReleaseBodyBundlePoliciesItem.ts +47 -0
  42. package/src/generated/model/buildReleaseDefault.ts +36 -0
  43. package/src/generated/model/createAuthAttemptDefault.ts +27 -0
  44. package/src/generated/model/createBrandingDefault.ts +18 -0
  45. package/src/generated/model/createDeployment200ReleasePointersItem.ts +2 -0
  46. package/src/generated/model/createDeployment200ReleasePointersItemKind.ts +1 -0
  47. package/src/generated/model/createDeployment201ReleasePointersItem.ts +2 -0
  48. package/src/generated/model/createDeployment201ReleasePointersItemKind.ts +1 -0
  49. package/src/generated/model/createDeployment409.ts +3 -1
  50. package/src/generated/model/createDeploymentBody.ts +2 -4
  51. package/src/generated/model/createDeploymentDefault.ts +54 -0
  52. package/src/generated/model/createFlow201Step.ts +19 -0
  53. package/src/generated/model/createFlow201StepPurpose.ts +26 -0
  54. package/src/generated/model/createFlowDefault.ts +18 -0
  55. package/src/generated/model/createFlowDefinition201UserSchemaMetadata.ts +5 -0
  56. package/src/generated/model/createFlowDefinitionDefault.ts +18 -0
  57. package/src/generated/model/createGrant201Team.ts +4 -1
  58. package/src/generated/model/createGrantDefault.ts +18 -0
  59. package/src/generated/model/createHandoffDefault.ts +18 -0
  60. package/src/generated/model/createIdpDefault.ts +18 -0
  61. package/src/generated/model/createRelease200PointersItem.ts +2 -0
  62. package/src/generated/model/createRelease200PointersItemKind.ts +1 -0
  63. package/src/generated/model/createRelease201PointersItem.ts +2 -0
  64. package/src/generated/model/createRelease201PointersItemKind.ts +1 -0
  65. package/src/generated/model/createReleaseBodyPointersItemKind.ts +1 -0
  66. package/src/generated/model/createReleaseDefault.ts +18 -0
  67. package/src/generated/model/createSchemaDefault.ts +18 -0
  68. package/src/generated/model/createSessionDefault.ts +18 -0
  69. package/src/generated/model/createTeamDefault.ts +18 -0
  70. package/src/generated/model/createUserDefault.ts +18 -0
  71. package/src/generated/model/deleteGrantDefault.ts +18 -0
  72. package/src/generated/model/deleteTeamDefault.ts +18 -0
  73. package/src/generated/model/deleteUserByIDDefault.ts +18 -0
  74. package/src/generated/model/deleteVariableDefault.ts +18 -0
  75. package/src/generated/model/evaluatePolicy200.ts +30 -0
  76. package/src/generated/model/evaluatePolicy200Violations.ts +14 -0
  77. package/src/generated/model/evaluatePolicyBody.ts +82 -0
  78. package/src/generated/model/evaluatePolicyDefault.ts +90 -0
  79. package/src/generated/model/evaluatePolicyParams.ts +15 -0
  80. package/src/generated/model/exchangeHandoffDefault.ts +36 -0
  81. package/src/generated/model/finishUserPasskeyRegistrationDefault.ts +18 -0
  82. package/src/generated/model/getAuthAttemptDefault.ts +18 -0
  83. package/src/generated/model/getBrandingByIdDefault.ts +18 -0
  84. package/src/generated/model/getClaimStatusDefault.ts +18 -0
  85. package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +2 -0
  86. package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +1 -0
  87. package/src/generated/model/getDeploymentByIdDefault.ts +18 -0
  88. package/src/generated/model/getDeploymentVariablesDefault.ts +9 -0
  89. package/src/generated/model/getEvent200.ts +788 -0
  90. package/src/generated/model/getEventDefault.ts +18 -0
  91. package/src/generated/model/getFlowDefinition200UserSchemaMetadata.ts +5 -0
  92. package/src/generated/model/getFlowDefinitionDefault.ts +18 -0
  93. package/src/generated/model/getFlowStep200Step.ts +19 -0
  94. package/src/generated/model/getFlowStep200StepPurpose.ts +26 -0
  95. package/src/generated/model/getFlowStepDefault.ts +36 -0
  96. package/src/generated/model/getGrant200Team.ts +4 -1
  97. package/src/generated/model/getGrantDefault.ts +18 -0
  98. package/src/generated/model/getIdpByIdDefault.ts +18 -0
  99. package/src/generated/model/getIdpRevisionByIdDefault.ts +18 -0
  100. package/src/generated/model/getMyPasswordStateDefault.ts +18 -0
  101. package/src/generated/model/getMySessionCsrfTokenDefault.ts +18 -0
  102. package/src/generated/model/getMySessionDefault.ts +18 -0
  103. package/src/generated/model/getMyUserDefault.ts +18 -0
  104. package/src/generated/model/getMyUserSchema200Metadata.ts +5 -0
  105. package/src/generated/model/getMyUserSchemaDefault.ts +18 -0
  106. package/src/generated/model/getPolicy200.ts +62 -0
  107. package/src/generated/model/getPolicyDefault.ts +72 -0
  108. package/src/generated/model/getPolicyParams.ts +15 -0
  109. package/src/generated/model/getPolicyRevision200.ts +62 -0
  110. package/src/generated/model/getPolicyRevisionDefault.ts +72 -0
  111. package/src/generated/model/getPolicyRevisionParams.ts +15 -0
  112. package/src/generated/model/getProject200.ts +64 -6
  113. package/src/generated/model/getReleaseById200PointersItem.ts +2 -0
  114. package/src/generated/model/getReleaseById200PointersItemKind.ts +1 -0
  115. package/src/generated/model/getReleaseByIdDefault.ts +18 -0
  116. package/src/generated/model/getSchemaById200Metadata.ts +5 -0
  117. package/src/generated/model/getSchemaByIdDefault.ts +18 -0
  118. package/src/generated/model/getSessionDefault.ts +18 -0
  119. package/src/generated/model/getTeamDefault.ts +18 -0
  120. package/src/generated/model/getUserByIDDefault.ts +18 -0
  121. package/src/generated/model/getUserPasswordStateDefault.ts +18 -0
  122. package/src/generated/model/getVariableDefault.ts +18 -0
  123. package/src/generated/model/getVariablesDefault.ts +18 -0
  124. package/src/generated/model/index.ts +44 -21
  125. package/src/generated/model/initClaimDefault.ts +18 -0
  126. package/src/generated/model/issueChallengeDefault.ts +18 -0
  127. package/src/generated/model/listBrandingDefault.ts +18 -0
  128. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +2 -0
  129. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +1 -0
  130. package/src/generated/model/listDeploymentsDefault.ts +18 -0
  131. package/src/generated/model/listEvents200DataItem.ts +788 -0
  132. package/src/generated/model/listEventsDefault.ts +18 -0
  133. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaMetadata.ts +5 -0
  134. package/src/generated/model/listFlowDefinitionsDefault.ts +18 -0
  135. package/src/generated/model/listIdpRevisionsDefault.ts +18 -0
  136. package/src/generated/model/listMyIdentityLinksDefault.ts +18 -0
  137. package/src/generated/model/listMyPasskeysDefault.ts +18 -0
  138. package/src/generated/model/listMyProjectsDefault.ts +18 -0
  139. package/src/generated/model/listMyProjectsParams.ts +8 -0
  140. package/src/generated/model/listMyTeamsDefault.ts +18 -0
  141. package/src/generated/model/listPolicies200.ts +21 -0
  142. package/src/generated/model/listPolicies200PoliciesItem.ts +62 -0
  143. package/src/generated/model/listPoliciesDefault.ts +72 -0
  144. package/src/generated/model/listPoliciesOperation.ts +14 -0
  145. package/src/generated/model/listPoliciesParams.ts +33 -0
  146. package/src/generated/model/listPolicyRevisions200.ts +20 -0
  147. package/src/generated/model/listPolicyRevisions200RevisionsItem.ts +62 -0
  148. package/src/generated/model/listPolicyRevisionsDefault.ts +72 -0
  149. package/src/generated/model/listPolicyRevisionsParams.ts +28 -0
  150. package/src/generated/model/listPreviewsDefault.ts +9 -0
  151. package/src/generated/model/listProjectAdmins200.ts +20 -0
  152. package/src/generated/model/listProjectAdmins200AdminsItem.ts +31 -0
  153. package/src/generated/model/listProjectAdmins200AdminsItemSourcesItem.ts +57 -0
  154. package/src/generated/model/listProjectAdmins200AdminsItemUser.ts +40 -0
  155. package/src/generated/model/{createAuthAttempt409.ts → listProjectAdmins400.ts} +3 -3
  156. package/src/generated/model/{createAuthAttempt409Details.ts → listProjectAdmins400Details.ts} +1 -1
  157. package/src/generated/model/{issueChallenge409.ts → listProjectAdmins401.ts} +3 -3
  158. package/src/generated/model/{issueChallenge409Details.ts → listProjectAdmins401Details.ts} +1 -1
  159. package/src/generated/model/{getAuthAttempt409.ts → listProjectAdmins403.ts} +3 -3
  160. package/src/generated/model/{getHealth4xxDetails.ts → listProjectAdmins403Details.ts} +1 -1
  161. package/src/generated/model/{getHealth4xx.ts → listProjectAdmins404.ts} +3 -3
  162. package/src/generated/model/{getAuthAttempt409Details.ts → listProjectAdmins404Details.ts} +1 -1
  163. package/src/generated/model/listProjectAdminsDefault.ts +81 -0
  164. package/src/generated/model/listProjectAdminsParams.ts +23 -0
  165. package/src/generated/model/listReleasesDefault.ts +18 -0
  166. package/src/generated/model/listSchemas200SchemasItemMetadata.ts +5 -0
  167. package/src/generated/model/listSchemasDefault.ts +18 -0
  168. package/src/generated/model/listSchemasExpandItem.ts +28 -0
  169. package/src/generated/model/listSchemasParams.ts +5 -0
  170. package/src/generated/model/listUserIdentityLinksDefault.ts +18 -0
  171. package/src/generated/model/listUserPasskeysDefault.ts +18 -0
  172. package/src/generated/model/listUserTeamsDefault.ts +18 -0
  173. package/src/generated/model/patchMyUserDefault.ts +18 -0
  174. package/src/generated/model/patchProject200.ts +64 -6
  175. package/src/generated/model/patchProjectDefault.ts +18 -0
  176. package/src/generated/model/patchUserByIDDefault.ts +18 -0
  177. package/src/generated/model/publishPolicy201.ts +62 -0
  178. package/src/generated/model/publishPolicyBody.ts +47 -0
  179. package/src/generated/model/publishPolicyDefault.ts +99 -0
  180. package/src/generated/model/publishPolicyParams.ts +15 -0
  181. package/src/generated/model/queryGrants200GrantsItemTeam.ts +4 -1
  182. package/src/generated/model/queryGrantsDefault.ts +9 -0
  183. package/src/generated/model/queryIdpsDefault.ts +9 -0
  184. package/src/generated/model/queryProjectsDefault.ts +9 -0
  185. package/src/generated/model/querySessionsDefault.ts +9 -0
  186. package/src/generated/model/queryTeamsDefault.ts +9 -0
  187. package/src/generated/model/queryUsersBodyFilterItem.ts +11 -3
  188. package/src/generated/model/queryUsersBodyFilterItemField.ts +12 -3
  189. package/src/generated/model/queryUsersDefault.ts +9 -0
  190. package/src/generated/model/removeOriginDefault.ts +27 -0
  191. package/src/generated/model/removePreviewDefault.ts +18 -0
  192. package/src/generated/model/revokeMySessionDefault.ts +18 -0
  193. package/src/generated/model/revokeRelease200PointersItem.ts +2 -0
  194. package/src/generated/model/revokeRelease200PointersItemKind.ts +1 -0
  195. package/src/generated/model/revokeRelease409DetailsOriginsItem.ts +9 -1
  196. package/src/generated/model/revokeReleaseDefault.ts +63 -0
  197. package/src/generated/model/revokeSessionDefault.ts +18 -0
  198. package/src/generated/model/rollbackDeployment200ReleasePointersItem.ts +2 -0
  199. package/src/generated/model/rollbackDeployment200ReleasePointersItemKind.ts +1 -0
  200. package/src/generated/model/rollbackDeployment201ReleasePointersItem.ts +2 -0
  201. package/src/generated/model/rollbackDeployment201ReleasePointersItemKind.ts +1 -0
  202. package/src/generated/model/rollbackDeployment409.ts +3 -1
  203. package/src/generated/model/rollbackDeploymentDefault.ts +99 -0
  204. package/src/generated/model/setUserPasswordDefault.ts +18 -0
  205. package/src/generated/model/submitFlowStep200Step.ts +19 -0
  206. package/src/generated/model/submitFlowStep200StepPurpose.ts +26 -0
  207. package/src/generated/model/submitFlowStep400Step.ts +19 -0
  208. package/src/generated/model/submitFlowStep400StepPurpose.ts +26 -0
  209. package/src/generated/model/submitFlowStepDefault.ts +36 -0
  210. package/src/generated/model/updateTeamDefault.ts +18 -0
  211. package/src/generated/model/updateVariablesDefault.ts +18 -0
  212. package/src/generated/model/verifyChallengeProofDefault.ts +18 -0
  213. package/src/generated/operations.ts +212 -29
  214. package/src/runtime/config.spec.ts +2 -2
  215. package/src/runtime/fetch.spec.ts +13 -1
  216. package/src/runtime/fetch.ts +15 -2
  217. package/dist/fetch-DD3lSbnp.d.mts.map +0 -1
  218. package/dist/index-DuuFQkA8.d.mts.map +0 -1
  219. package/dist/zitadelNextGen-BdUDEEuX.d.mts.map +0 -1
  220. package/src/generated/model/getHealthDefault.ts +0 -27
  221. package/src/generated/model/getProject200OriginsItem.ts +0 -23
  222. package/src/generated/model/getProject200OriginsItemKind.ts +0 -15
  223. package/src/generated/model/getProject200PasswordHash.ts +0 -42
  224. package/src/generated/model/getProject200PasswordHashAlgorithm.ts +0 -24
  225. package/src/generated/model/getProject200PasswordHashParams.ts +0 -47
  226. package/src/generated/model/getProject200PasswordHashParamsHash.ts +0 -24
  227. package/src/generated/model/patchProject200OriginsItem.ts +0 -23
  228. package/src/generated/model/patchProject200OriginsItemKind.ts +0 -15
  229. package/src/generated/model/patchProject200PasswordHash.ts +0 -42
  230. package/src/generated/model/patchProject200PasswordHashAlgorithm.ts +0 -24
  231. package/src/generated/model/patchProject200PasswordHashParams.ts +0 -47
  232. package/src/generated/model/patchProject200PasswordHashParamsHash.ts +0 -24
@@ -5,13 +5,12 @@
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 { PatchProject200OriginsItem } from './patchProject200OriginsItem.ts';
9
- import type { PatchProject200PasswordHash } from './patchProject200PasswordHash.ts';
10
8
 
11
9
  /**
12
- * The current state of a project.
10
+ * The current state of a project, as returned for that one project. It adds
11
+ * the owning team to the fields every project listing carries.
13
12
  */
14
- export type PatchProject200 = {
13
+ export type PatchProject200 = ({
15
14
  /** The unique identifier of the project. */
16
15
  id: string;
17
16
  /** The name of the project. */
@@ -21,7 +20,10 @@ export type PatchProject200 = {
21
20
  * until the first pattern is added. Loopback origins are admitted without
22
21
  * a pattern.
23
22
  */
24
- origins: PatchProject200OriginsItem[];
23
+ origins: ({
24
+ pattern: string;
25
+ kind: 'primary' | 'preview';
26
+ })[];
25
27
  /** The time when the project was created. */
26
28
  created_at: string;
27
29
  /** The time when the project was last updated. */
@@ -30,5 +32,61 @@ export type PatchProject200 = {
30
32
  * The method this project's passwords are hashed with. Null when the project
31
33
  * uses the server default.
32
34
  */
33
- password_hash?: PatchProject200PasswordHash;
35
+ password_hash?: {
36
+ /**
37
+ * The hashing algorithm. Only algorithms that can hash appear here; the
38
+ * legacy encodings the server can still verify for imported users
39
+ * (md5, phpass, drupal7) are not among them.
40
+ */
41
+ algorithm: 'argon2i' | 'argon2id' | 'bcrypt' | 'scrypt' | 'pbkdf2' | 'sha2';
42
+ /**
43
+ * The algorithm's cost parameters. Exactly the parameters the chosen
44
+ * algorithm takes must be given: `time`, `memory` and `threads` for argon2i
45
+ * and argon2id; `cost` for bcrypt and scrypt; `rounds` and `hash` for
46
+ * pbkdf2 and sha2. A parameter another algorithm takes is rejected rather
47
+ * than ignored, and a missing one is not filled in from a default, because
48
+ * cost is the whole of a hashing method's strength.
49
+ *
50
+ * The properties below are the union across algorithms, so which of them
51
+ * apply, and for `hash` which of its values, depends on `algorithm`. They
52
+ * are not modelled per algorithm here because the code generator renders a
53
+ * conditional schema as an untyped object, which would cost every client
54
+ * the types for the whole policy.
55
+ *
56
+ * Values outside the limits the deployment configured are rejected, as is
57
+ * an algorithm the deployment cannot verify: hashing with a method that
58
+ * cannot be read back would lock out every user whose password was written
59
+ * that way.
60
+ */
61
+ params: {
62
+ /** argon2 passes over memory. */
63
+ time?: number;
64
+ /** argon2 memory in KiB. */
65
+ memory?: number;
66
+ /** argon2 lanes. */
67
+ threads?: number;
68
+ /** bcrypt cost, or scrypt's log2 of the CPU/memory cost. */
69
+ cost?: number;
70
+ /** pbkdf2 or sha2 iteration count. */
71
+ rounds?: number;
72
+ /**
73
+ * The underlying hash. pbkdf2 takes any of the values listed here; sha2
74
+ * takes only `sha256` and `sha512`, because it is the crypt(3) scheme,
75
+ * which has no other form. Any other combination is rejected with
76
+ * `proj.password_hash_invalid`.
77
+ */
78
+ hash?: 'sha1' | 'sha224' | 'sha256' | 'sha384' | 'sha512';
34
79
  };
80
+ } | null;
81
+ }) & ({
82
+ /**
83
+ * The team that owns the project (ADR 054 §2), which is how its
84
+ * members administer it. Null when no team owns the project, for
85
+ * example before it is claimed.
86
+ *
87
+ * The team lives in the platform project, so its id is an opaque
88
+ * reference here. `GET /projects/{project_id}/admins` lists the
89
+ * people who administer the project through it.
90
+ */
91
+ owning_team_id: string | null;
92
+ });
@@ -49,6 +49,15 @@ export type PatchProjectDefault = {
49
49
  message: string;
50
50
  /** Additional error-specific context. */
51
51
  details?: { [key: string]: unknown };
52
+ } & {
53
+ code: 'not_implemented';
54
+ } | {
55
+ /** Stable machine-readable error code. */
56
+ code: string;
57
+ /** Human-readable explanation of the error. */
58
+ message: string;
59
+ /** Additional error-specific context. */
60
+ details?: { [key: string]: unknown };
52
61
  } & {
53
62
  code: 'proj.missing_id';
54
63
  } | {
@@ -96,4 +105,13 @@ export type PatchProjectDefault = {
96
105
  details?: { [key: string]: unknown };
97
106
  } & {
98
107
  code: 'req.invalid';
108
+ } | {
109
+ /** Stable machine-readable error code. */
110
+ code: string;
111
+ /** Human-readable explanation of the error. */
112
+ message: string;
113
+ /** Additional error-specific context. */
114
+ details?: { [key: string]: unknown };
115
+ } & {
116
+ code: 'unavailable';
99
117
  };
@@ -49,6 +49,15 @@ export type PatchUserByIDDefault = {
49
49
  message: string;
50
50
  /** Additional error-specific context. */
51
51
  details?: { [key: string]: unknown };
52
+ } & {
53
+ code: 'not_implemented';
54
+ } | {
55
+ /** Stable machine-readable error code. */
56
+ code: string;
57
+ /** Human-readable explanation of the error. */
58
+ message: string;
59
+ /** Additional error-specific context. */
60
+ details?: { [key: string]: unknown };
52
61
  } & {
53
62
  code: 'req.invalid';
54
63
  } | {
@@ -58,6 +67,15 @@ export type PatchUserByIDDefault = {
58
67
  message: string;
59
68
  /** Additional error-specific context. */
60
69
  details?: { [key: string]: unknown };
70
+ } & {
71
+ code: 'unavailable';
72
+ } | {
73
+ /** Stable machine-readable error code. */
74
+ code: string;
75
+ /** Human-readable explanation of the error. */
76
+ message: string;
77
+ /** Additional error-specific context. */
78
+ details?: { [key: string]: unknown };
61
79
  } & {
62
80
  code: 'user.already_exists';
63
81
  } | {
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Generated by orval 🍺
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
+ * One revision of a project's policy for an operation (ADR 066), typed by
11
+ * `operation`. `id` is shared by every revision of the operation's policy;
12
+ * `revision_id` names this revision.
13
+ */
14
+ export type PublishPolicy201 = {
15
+ /**
16
+ * The identifier of a policy, shared by all of its revisions.
17
+ * @pattern ^pol_[a-zA-Z0-9_-]+$
18
+ */
19
+ id: string;
20
+ /**
21
+ * The identifier of one immutable revision of a policy.
22
+ * @pattern ^polrev_[a-zA-Z0-9_-]+$
23
+ */
24
+ revision_id: string;
25
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
26
+ project_id: string;
27
+ /** The operation the policy guards. */
28
+ readonly operation: 'auth.factor.password.set';
29
+ /**
30
+ * The settings of an `auth.factor.password.set` policy. Every setting is
31
+ * optional; a setting left out switches its rule off, and `{}` switches every
32
+ * rule off. There are no defaults. The bounds are technical limits, not
33
+ * recommendations; the server's template checks the same bounds.
34
+ */
35
+ config: {
36
+ /**
37
+ * The fewest Unicode code points a new password may have, counted after
38
+ * NFC normalization. At most `max_length` when both are set.
39
+ * @minimum 1
40
+ * @maximum 64
41
+ */
42
+ min_length?: number;
43
+ /**
44
+ * The most Unicode code points a new password may have. A password above
45
+ * 64 code points is refused whether or not this is set.
46
+ * @minimum 1
47
+ * @maximum 64
48
+ */
49
+ max_length?: number;
50
+ /**
51
+ * How many of the user's passwords a new one may not repeat, the current
52
+ * one included. Checked only when users set their own password.
53
+ * @minimum 1
54
+ * @maximum 4
55
+ */
56
+ history_depth?: number;
57
+ };
58
+ /** When the operation's policy was first published. */
59
+ readonly created_at: string;
60
+ /** When this revision was published. */
61
+ readonly updated_at: string;
62
+ };
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Generated by orval 🍺
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
+ * One publish of the project's policy for an operation. `operation` selects
11
+ * the operation's template, and `config` sets that template's settings; a
12
+ * setting left out is off, and `{}` switches every rule off. The settings each
13
+ * operation accepts are listed in the policy catalog.
14
+ */
15
+ export type PublishPolicyBody = {
16
+ /** The operation the policy guards. */
17
+ operation: 'auth.factor.password.set';
18
+ /**
19
+ * The settings of an `auth.factor.password.set` policy. Every setting is
20
+ * optional; a setting left out switches its rule off, and `{}` switches every
21
+ * rule off. There are no defaults. The bounds are technical limits, not
22
+ * recommendations; the server's template checks the same bounds.
23
+ */
24
+ config: {
25
+ /**
26
+ * The fewest Unicode code points a new password may have, counted after
27
+ * NFC normalization. At most `max_length` when both are set.
28
+ * @minimum 1
29
+ * @maximum 64
30
+ */
31
+ min_length?: number;
32
+ /**
33
+ * The most Unicode code points a new password may have. A password above
34
+ * 64 code points is refused whether or not this is set.
35
+ * @minimum 1
36
+ * @maximum 64
37
+ */
38
+ max_length?: number;
39
+ /**
40
+ * How many of the user's passwords a new one may not repeat, the current
41
+ * one included. Checked only when users set their own password.
42
+ * @minimum 1
43
+ * @maximum 4
44
+ */
45
+ history_depth?: number;
46
+ };
47
+ };
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Generated by orval 🍺
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 PublishPolicyDefault = {
10
+ /** Stable machine-readable error code. */
11
+ code: string;
12
+ /** Human-readable explanation of the error. */
13
+ message: string;
14
+ /** Additional error-specific context. */
15
+ details?: { [key: string]: unknown };
16
+ } & {
17
+ code: 'auth.unauthorized';
18
+ } | {
19
+ /** Stable machine-readable error code. */
20
+ code: string;
21
+ /** Human-readable explanation of the error. */
22
+ message: string;
23
+ /** Additional error-specific context. */
24
+ details?: { [key: string]: unknown };
25
+ } & {
26
+ code: 'evt.invalid';
27
+ } | {
28
+ /** Stable machine-readable error code. */
29
+ code: string;
30
+ /** Human-readable explanation of the error. */
31
+ message: string;
32
+ /** Additional error-specific context. */
33
+ details?: { [key: string]: unknown };
34
+ } & {
35
+ code: 'internal';
36
+ } | {
37
+ /** Stable machine-readable error code. */
38
+ code: string;
39
+ /** Human-readable explanation of the error. */
40
+ message: string;
41
+ /** Additional error-specific context. */
42
+ details?: { [key: string]: unknown };
43
+ } & {
44
+ code: 'not_implemented';
45
+ } | {
46
+ /** Stable machine-readable error code. */
47
+ code: string;
48
+ /** Human-readable explanation of the error. */
49
+ message: string;
50
+ /** Additional error-specific context. */
51
+ details?: { [key: string]: unknown };
52
+ } & {
53
+ code: 'pol.invalid';
54
+ } | {
55
+ /** Stable machine-readable error code. */
56
+ code: string;
57
+ /** Human-readable explanation of the error. */
58
+ message: string;
59
+ /** Additional error-specific context. */
60
+ details?: { [key: string]: unknown };
61
+ } & {
62
+ code: 'pol.not_found';
63
+ } | {
64
+ /** Stable machine-readable error code. */
65
+ code: string;
66
+ /** Human-readable explanation of the error. */
67
+ message: string;
68
+ /** Additional error-specific context. */
69
+ details?: { [key: string]: unknown };
70
+ } & {
71
+ code: 'pol.permission_denied';
72
+ } | {
73
+ /** Stable machine-readable error code. */
74
+ code: string;
75
+ /** Human-readable explanation of the error. */
76
+ message: string;
77
+ /** Additional error-specific context. */
78
+ details?: { [key: string]: unknown };
79
+ } & {
80
+ code: 'pol.revision_conflict';
81
+ } | {
82
+ /** Stable machine-readable error code. */
83
+ code: string;
84
+ /** Human-readable explanation of the error. */
85
+ message: string;
86
+ /** Additional error-specific context. */
87
+ details?: { [key: string]: unknown };
88
+ } & {
89
+ code: 'req.invalid';
90
+ } | {
91
+ /** Stable machine-readable error code. */
92
+ code: string;
93
+ /** Human-readable explanation of the error. */
94
+ message: string;
95
+ /** Additional error-specific context. */
96
+ details?: { [key: string]: unknown };
97
+ } & {
98
+ code: 'unavailable';
99
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Generated by orval 🍺
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 PublishPolicyParams = {
10
+ /**
11
+ * The unique identifier of the project
12
+ * @pattern ^[a-zA-Z0-9_-]+$
13
+ */
14
+ project_id: string;
15
+ };
@@ -16,7 +16,10 @@ import type { QueryGrants200GrantsItemTeamStatus } from './queryGrants200GrantsI
16
16
  export type QueryGrants200GrantsItemTeam = {
17
17
  /** The referenced team's id (`team_<opaque>`). Always present. */
18
18
  team_id: string;
19
- /** The team's name. Absent when the team can no longer be loaded. */
19
+ /**
20
+ * The team's name. Absent when the team can no longer be loaded, or where
21
+ * the referencing endpoint leaves it out for a team the caller may not see.
22
+ */
20
23
  name?: string;
21
24
  } & {
22
25
  /**
@@ -94,6 +94,15 @@ export type QueryGrantsDefault = {
94
94
  message: string;
95
95
  /** Additional error-specific context. */
96
96
  details?: { [key: string]: unknown };
97
+ } & {
98
+ code: 'unavailable';
99
+ } | {
100
+ /** Stable machine-readable error code. */
101
+ code: string;
102
+ /** Human-readable explanation of the error. */
103
+ message: string;
104
+ /** Additional error-specific context. */
105
+ details?: { [key: string]: unknown };
97
106
  } & {
98
107
  code: 'user.permission_denied';
99
108
  };
@@ -69,4 +69,13 @@ export type QueryIdpsDefault = {
69
69
  details?: { [key: string]: unknown };
70
70
  } & {
71
71
  code: 'req.invalid';
72
+ } | {
73
+ /** Stable machine-readable error code. */
74
+ code: string;
75
+ /** Human-readable explanation of the error. */
76
+ message: string;
77
+ /** Additional error-specific context. */
78
+ details?: { [key: string]: unknown };
79
+ } & {
80
+ code: 'unavailable';
72
81
  };
@@ -69,4 +69,13 @@ export type QueryProjectsDefault = {
69
69
  details?: { [key: string]: unknown };
70
70
  } & {
71
71
  code: 'req.invalid';
72
+ } | {
73
+ /** Stable machine-readable error code. */
74
+ code: string;
75
+ /** Human-readable explanation of the error. */
76
+ message: string;
77
+ /** Additional error-specific context. */
78
+ details?: { [key: string]: unknown };
79
+ } & {
80
+ code: 'unavailable';
72
81
  };
@@ -69,4 +69,13 @@ export type QuerySessionsDefault = {
69
69
  details?: { [key: string]: unknown };
70
70
  } & {
71
71
  code: 'sess.permission_denied';
72
+ } | {
73
+ /** Stable machine-readable error code. */
74
+ code: string;
75
+ /** Human-readable explanation of the error. */
76
+ message: string;
77
+ /** Additional error-specific context. */
78
+ details?: { [key: string]: unknown };
79
+ } & {
80
+ code: 'unavailable';
72
81
  };
@@ -78,4 +78,13 @@ export type QueryTeamsDefault = {
78
78
  details?: { [key: string]: unknown };
79
79
  } & {
80
80
  code: 'team.project_not_found';
81
+ } | {
82
+ /** Stable machine-readable error code. */
83
+ code: string;
84
+ /** Human-readable explanation of the error. */
85
+ message: string;
86
+ /** Additional error-specific context. */
87
+ details?: { [key: string]: unknown };
88
+ } & {
89
+ code: 'unavailable';
81
90
  };
@@ -14,7 +14,15 @@ export type QueryUsersBodyFilterItem = {
14
14
  * - `created_at`: RFC3339 timestamp
15
15
  * - `id`: user id
16
16
  * - `schema`: the schema the user's attributes satisfy, matched against the
17
- * value the user carries as `schema`
17
+ * value the user carries as `schema`. Each revision of a schema has its own
18
+ * URL, so `equals` selects the users on one revision and `not_equals` the
19
+ * users on any other.
20
+ * - `schema_object_type`: the `object_type` of the user's schema, which every
21
+ * revision of that schema shares. It may be repeated, like any field: give
22
+ * `not_equals` once per object type to exclude several. A schema without an
23
+ * object type reads as `""`, so `not_equals` matches its users and `equals`
24
+ * `""` selects them. Combine `equals` here with `schema` `not_equals` the
25
+ * newest revision to find the users still on an older one.
18
26
  * - `status`: one of `active`, `suspended`, `deactivated`, `pending_purge`
19
27
  * - `team_id`: restricts the result to users holding an **active** membership
20
28
  * in that team. A user who has been invited but has not accepted does not
@@ -31,8 +39,8 @@ export type QueryUsersBodyFilterItem = {
31
39
  * their own lifecycle, so the two disagree often and neither implies the other
32
40
  * (ADR 024).
33
41
  *
34
- * `team_id` is filterable but not sortable — it is not a column on the user, so
35
- * it is absent from the sort-field enum.
42
+ * `team_id` and `schema_object_type` are filterable but not sortable: neither
43
+ * is a column on the user, so both are absent from the sort-field enum.
36
44
  *
37
45
  * Filtering on `team_id` requires `team_membership.read` in addition to
38
46
  * `user.read`: it reads the same memberships that `expand: ["teams"]` embeds.
@@ -11,7 +11,15 @@
11
11
  * - `created_at`: RFC3339 timestamp
12
12
  * - `id`: user id
13
13
  * - `schema`: the schema the user's attributes satisfy, matched against the
14
- * value the user carries as `schema`
14
+ * value the user carries as `schema`. Each revision of a schema has its own
15
+ * URL, so `equals` selects the users on one revision and `not_equals` the
16
+ * users on any other.
17
+ * - `schema_object_type`: the `object_type` of the user's schema, which every
18
+ * revision of that schema shares. It may be repeated, like any field: give
19
+ * `not_equals` once per object type to exclude several. A schema without an
20
+ * object type reads as `""`, so `not_equals` matches its users and `equals`
21
+ * `""` selects them. Combine `equals` here with `schema` `not_equals` the
22
+ * newest revision to find the users still on an older one.
15
23
  * - `status`: one of `active`, `suspended`, `deactivated`, `pending_purge`
16
24
  * - `team_id`: restricts the result to users holding an **active** membership
17
25
  * in that team. A user who has been invited but has not accepted does not
@@ -28,8 +36,8 @@
28
36
  * their own lifecycle, so the two disagree often and neither implies the other
29
37
  * (ADR 024).
30
38
  *
31
- * `team_id` is filterable but not sortable — it is not a column on the user, so
32
- * it is absent from the sort-field enum.
39
+ * `team_id` and `schema_object_type` are filterable but not sortable: neither
40
+ * is a column on the user, so both are absent from the sort-field enum.
33
41
  *
34
42
  * Filtering on `team_id` requires `team_membership.read` in addition to
35
43
  * `user.read`: it reads the same memberships that `expand: ["teams"]` embeds.
@@ -44,6 +52,7 @@ export const QueryUsersBodyFilterItemField = {
44
52
  created_at: 'created_at',
45
53
  id: 'id',
46
54
  schema: 'schema',
55
+ schema_object_type: 'schema_object_type',
47
56
  status: 'status',
48
57
  team_id: 'team_id',
49
58
  lifecycle_owner_team_id: 'lifecycle_owner_team_id',
@@ -58,6 +58,15 @@ export type QueryUsersDefault = {
58
58
  message: string;
59
59
  /** Additional error-specific context. */
60
60
  details?: { [key: string]: unknown };
61
+ } & {
62
+ code: 'unavailable';
63
+ } | {
64
+ /** Stable machine-readable error code. */
65
+ code: string;
66
+ /** Human-readable explanation of the error. */
67
+ message: string;
68
+ /** Additional error-specific context. */
69
+ details?: { [key: string]: unknown };
61
70
  } & {
62
71
  code: 'user.not_found';
63
72
  } | {
@@ -13,6 +13,15 @@ export type RemoveOriginDefault = {
13
13
  message: string;
14
14
  /** Additional error-specific context. */
15
15
  details?: { [key: string]: unknown };
16
+ } & {
17
+ code: 'auth.csrf_invalid';
18
+ } | {
19
+ /** Stable machine-readable error code. */
20
+ code: string;
21
+ /** Human-readable explanation of the error. */
22
+ message: string;
23
+ /** Additional error-specific context. */
24
+ details?: { [key: string]: unknown };
16
25
  } & {
17
26
  code: 'auth.unauthorized';
18
27
  } | {
@@ -40,6 +49,15 @@ export type RemoveOriginDefault = {
40
49
  message: string;
41
50
  /** Additional error-specific context. */
42
51
  details?: { [key: string]: unknown };
52
+ } & {
53
+ code: 'not_implemented';
54
+ } | {
55
+ /** Stable machine-readable error code. */
56
+ code: string;
57
+ /** Human-readable explanation of the error. */
58
+ message: string;
59
+ /** Additional error-specific context. */
60
+ details?: { [key: string]: unknown };
43
61
  } & {
44
62
  code: 'origin.invalid';
45
63
  } | {
@@ -78,4 +96,13 @@ export type RemoveOriginDefault = {
78
96
  details?: { [key: string]: unknown };
79
97
  } & {
80
98
  code: 'req.invalid';
99
+ } | {
100
+ /** Stable machine-readable error code. */
101
+ code: string;
102
+ /** Human-readable explanation of the error. */
103
+ message: string;
104
+ /** Additional error-specific context. */
105
+ details?: { [key: string]: unknown };
106
+ } & {
107
+ code: 'unavailable';
81
108
  };
@@ -49,6 +49,15 @@ export type RemovePreviewDefault = {
49
49
  message: string;
50
50
  /** Additional error-specific context. */
51
51
  details?: { [key: string]: unknown };
52
+ } & {
53
+ code: 'evt.invalid';
54
+ } | {
55
+ /** Stable machine-readable error code. */
56
+ code: string;
57
+ /** Human-readable explanation of the error. */
58
+ message: string;
59
+ /** Additional error-specific context. */
60
+ details?: { [key: string]: unknown };
52
61
  } & {
53
62
  code: 'internal';
54
63
  } | {
@@ -69,4 +78,13 @@ export type RemovePreviewDefault = {
69
78
  details?: { [key: string]: unknown };
70
79
  } & {
71
80
  code: 'req.invalid';
81
+ } | {
82
+ /** Stable machine-readable error code. */
83
+ code: string;
84
+ /** Human-readable explanation of the error. */
85
+ message: string;
86
+ /** Additional error-specific context. */
87
+ details?: { [key: string]: unknown };
88
+ } & {
89
+ code: 'unavailable';
72
90
  };
@@ -49,6 +49,15 @@ export type RevokeMySessionDefault = {
49
49
  message: string;
50
50
  /** Additional error-specific context. */
51
51
  details?: { [key: string]: unknown };
52
+ } & {
53
+ code: 'not_implemented';
54
+ } | {
55
+ /** Stable machine-readable error code. */
56
+ code: string;
57
+ /** Human-readable explanation of the error. */
58
+ message: string;
59
+ /** Additional error-specific context. */
60
+ details?: { [key: string]: unknown };
52
61
  } & {
53
62
  code: 'req.invalid';
54
63
  } | {
@@ -69,4 +78,13 @@ export type RevokeMySessionDefault = {
69
78
  details?: { [key: string]: unknown };
70
79
  } & {
71
80
  code: 'sess.project_mismatch';
81
+ } | {
82
+ /** Stable machine-readable error code. */
83
+ code: string;
84
+ /** Human-readable explanation of the error. */
85
+ message: string;
86
+ /** Additional error-specific context. */
87
+ details?: { [key: string]: unknown };
88
+ } & {
89
+ code: 'unavailable';
72
90
  };
@@ -38,6 +38,8 @@ export type RevokeRelease200PointersItem = {
38
38
  * `revision_id` is what varies between releases.
39
39
  * - `idp` — the connection's `slug`, so `google` and `github` are
40
40
  * separate resources a release pins separately
41
+ * - `policy` — the policy's `operation`, so a project's password policy
42
+ * is one resource however often it is revised
41
43
  *
42
44
  * Resources inside a release reference each other by handle rather than by
43
45
  * revision id, so the same handle names the same resource in every release.
@@ -24,4 +24,5 @@ export const RevokeRelease200PointersItemKind = {
24
24
  flow_definition: 'flow_definition',
25
25
  branding: 'branding',
26
26
  idp: 'idp',
27
+ policy: 'policy',
27
28
  } as const;