@zitadel/api 0.1.0 → 0.2.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 (217) 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 +228 -42
  5. package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
  6. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +15 -4
  7. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
  8. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +3156 -1476
  9. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  10. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +1282 -94
  11. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  12. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +1785 -641
  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 +72 -65
  16. package/dist/generated/model/index.mjs.map +1 -1
  17. package/dist/generated/operations.mjs +181 -29
  18. package/dist/generated/operations.mjs.map +1 -1
  19. package/dist/{index-DuuFQkA8.d.mts → index-D7-l5LV6.d.mts} +6051 -1072
  20. package/dist/index-D7-l5LV6.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-Cw3DrCn1.d.mts} +135 -37
  26. package/dist/zitadelNextGen-Cw3DrCn1.d.mts.map +1 -0
  27. package/package.json +2 -2
  28. package/src/generated/endpoints/zitadelNextGen.faker.ts +37 -19
  29. package/src/generated/endpoints/zitadelNextGen.msw.ts +91 -13
  30. package/src/generated/endpoints/zitadelNextGen.ts +322 -52
  31. package/src/generated/endpoints/zitadelNextGen.zod.ts +1072 -123
  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/createFlowDefinitionDefault.ts +18 -0
  56. package/src/generated/model/createGrant201Team.ts +4 -1
  57. package/src/generated/model/createGrantDefault.ts +18 -0
  58. package/src/generated/model/createHandoffDefault.ts +18 -0
  59. package/src/generated/model/createIdpDefault.ts +18 -0
  60. package/src/generated/model/createRelease200PointersItem.ts +2 -0
  61. package/src/generated/model/createRelease200PointersItemKind.ts +1 -0
  62. package/src/generated/model/createRelease201PointersItem.ts +2 -0
  63. package/src/generated/model/createRelease201PointersItemKind.ts +1 -0
  64. package/src/generated/model/createReleaseBodyPointersItemKind.ts +1 -0
  65. package/src/generated/model/createReleaseDefault.ts +18 -0
  66. package/src/generated/model/createSchemaDefault.ts +18 -0
  67. package/src/generated/model/createSessionDefault.ts +18 -0
  68. package/src/generated/model/createTeamDefault.ts +18 -0
  69. package/src/generated/model/createUserDefault.ts +18 -0
  70. package/src/generated/model/deleteGrantDefault.ts +18 -0
  71. package/src/generated/model/deleteTeamDefault.ts +18 -0
  72. package/src/generated/model/deleteUserByIDDefault.ts +18 -0
  73. package/src/generated/model/deleteVariableDefault.ts +18 -0
  74. package/src/generated/model/exchangeHandoffDefault.ts +36 -0
  75. package/src/generated/model/finishUserPasskeyRegistrationDefault.ts +18 -0
  76. package/src/generated/model/getAuthAttemptDefault.ts +18 -0
  77. package/src/generated/model/getBrandingByIdDefault.ts +18 -0
  78. package/src/generated/model/getClaimStatusDefault.ts +18 -0
  79. package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +2 -0
  80. package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +1 -0
  81. package/src/generated/model/getDeploymentByIdDefault.ts +18 -0
  82. package/src/generated/model/getDeploymentVariablesDefault.ts +9 -0
  83. package/src/generated/model/getEvent200.ts +788 -0
  84. package/src/generated/model/getEventDefault.ts +18 -0
  85. package/src/generated/model/getFlowDefinitionDefault.ts +18 -0
  86. package/src/generated/model/getFlowStep200Step.ts +19 -0
  87. package/src/generated/model/getFlowStep200StepPurpose.ts +26 -0
  88. package/src/generated/model/getFlowStepDefault.ts +36 -0
  89. package/src/generated/model/getGrant200Team.ts +4 -1
  90. package/src/generated/model/getGrantDefault.ts +18 -0
  91. package/src/generated/model/getIdpByIdDefault.ts +18 -0
  92. package/src/generated/model/getIdpRevisionByIdDefault.ts +18 -0
  93. package/src/generated/model/getMyPasswordStateDefault.ts +18 -0
  94. package/src/generated/model/getMySessionCsrfTokenDefault.ts +18 -0
  95. package/src/generated/model/getMySessionDefault.ts +18 -0
  96. package/src/generated/model/getMyUserDefault.ts +18 -0
  97. package/src/generated/model/getMyUserSchemaDefault.ts +18 -0
  98. package/src/generated/model/getPolicy200.ts +62 -0
  99. package/src/generated/model/getPolicyDefault.ts +72 -0
  100. package/src/generated/model/getPolicyParams.ts +15 -0
  101. package/src/generated/model/getPolicyRevision200.ts +62 -0
  102. package/src/generated/model/getPolicyRevisionDefault.ts +72 -0
  103. package/src/generated/model/getPolicyRevisionParams.ts +15 -0
  104. package/src/generated/model/getProject200.ts +64 -6
  105. package/src/generated/model/getReleaseById200PointersItem.ts +2 -0
  106. package/src/generated/model/getReleaseById200PointersItemKind.ts +1 -0
  107. package/src/generated/model/getReleaseByIdDefault.ts +18 -0
  108. package/src/generated/model/getSchemaByIdDefault.ts +18 -0
  109. package/src/generated/model/getSessionDefault.ts +18 -0
  110. package/src/generated/model/getTeamDefault.ts +18 -0
  111. package/src/generated/model/getUserByIDDefault.ts +18 -0
  112. package/src/generated/model/getUserPasswordStateDefault.ts +18 -0
  113. package/src/generated/model/getVariableDefault.ts +18 -0
  114. package/src/generated/model/getVariablesDefault.ts +18 -0
  115. package/src/generated/model/index.ts +38 -21
  116. package/src/generated/model/initClaimDefault.ts +18 -0
  117. package/src/generated/model/issueChallengeDefault.ts +18 -0
  118. package/src/generated/model/listBrandingDefault.ts +18 -0
  119. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +2 -0
  120. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +1 -0
  121. package/src/generated/model/listDeploymentsDefault.ts +18 -0
  122. package/src/generated/model/listEvents200DataItem.ts +788 -0
  123. package/src/generated/model/listEventsDefault.ts +18 -0
  124. package/src/generated/model/listFlowDefinitionsDefault.ts +18 -0
  125. package/src/generated/model/listIdpRevisionsDefault.ts +18 -0
  126. package/src/generated/model/listMyIdentityLinksDefault.ts +18 -0
  127. package/src/generated/model/listMyPasskeysDefault.ts +18 -0
  128. package/src/generated/model/listMyProjectsDefault.ts +18 -0
  129. package/src/generated/model/listMyProjectsParams.ts +8 -0
  130. package/src/generated/model/listMyTeamsDefault.ts +18 -0
  131. package/src/generated/model/listPolicies200.ts +21 -0
  132. package/src/generated/model/listPolicies200PoliciesItem.ts +62 -0
  133. package/src/generated/model/listPoliciesDefault.ts +72 -0
  134. package/src/generated/model/listPoliciesOperation.ts +14 -0
  135. package/src/generated/model/listPoliciesParams.ts +33 -0
  136. package/src/generated/model/listPolicyRevisions200.ts +20 -0
  137. package/src/generated/model/listPolicyRevisions200RevisionsItem.ts +62 -0
  138. package/src/generated/model/listPolicyRevisionsDefault.ts +72 -0
  139. package/src/generated/model/listPolicyRevisionsParams.ts +28 -0
  140. package/src/generated/model/listPreviewsDefault.ts +9 -0
  141. package/src/generated/model/listProjectAdmins200.ts +20 -0
  142. package/src/generated/model/listProjectAdmins200AdminsItem.ts +31 -0
  143. package/src/generated/model/listProjectAdmins200AdminsItemSourcesItem.ts +57 -0
  144. package/src/generated/model/listProjectAdmins200AdminsItemUser.ts +40 -0
  145. package/src/generated/model/{createAuthAttempt409.ts → listProjectAdmins400.ts} +3 -3
  146. package/src/generated/model/{createAuthAttempt409Details.ts → listProjectAdmins400Details.ts} +1 -1
  147. package/src/generated/model/{issueChallenge409.ts → listProjectAdmins401.ts} +3 -3
  148. package/src/generated/model/{issueChallenge409Details.ts → listProjectAdmins401Details.ts} +1 -1
  149. package/src/generated/model/{getAuthAttempt409.ts → listProjectAdmins403.ts} +3 -3
  150. package/src/generated/model/{getHealth4xxDetails.ts → listProjectAdmins403Details.ts} +1 -1
  151. package/src/generated/model/{getHealth4xx.ts → listProjectAdmins404.ts} +3 -3
  152. package/src/generated/model/{getAuthAttempt409Details.ts → listProjectAdmins404Details.ts} +1 -1
  153. package/src/generated/model/listProjectAdminsDefault.ts +81 -0
  154. package/src/generated/model/listProjectAdminsParams.ts +23 -0
  155. package/src/generated/model/listReleasesDefault.ts +18 -0
  156. package/src/generated/model/listSchemasDefault.ts +18 -0
  157. package/src/generated/model/listUserIdentityLinksDefault.ts +18 -0
  158. package/src/generated/model/listUserPasskeysDefault.ts +18 -0
  159. package/src/generated/model/listUserTeamsDefault.ts +18 -0
  160. package/src/generated/model/patchMyUserDefault.ts +18 -0
  161. package/src/generated/model/patchProject200.ts +64 -6
  162. package/src/generated/model/patchProjectDefault.ts +18 -0
  163. package/src/generated/model/patchUserByIDDefault.ts +18 -0
  164. package/src/generated/model/publishPolicy201.ts +62 -0
  165. package/src/generated/model/publishPolicyBody.ts +47 -0
  166. package/src/generated/model/publishPolicyDefault.ts +99 -0
  167. package/src/generated/model/publishPolicyParams.ts +15 -0
  168. package/src/generated/model/queryGrants200GrantsItemTeam.ts +4 -1
  169. package/src/generated/model/queryGrantsDefault.ts +9 -0
  170. package/src/generated/model/queryIdpsDefault.ts +9 -0
  171. package/src/generated/model/queryProjectsDefault.ts +9 -0
  172. package/src/generated/model/querySessionsDefault.ts +9 -0
  173. package/src/generated/model/queryTeamsDefault.ts +9 -0
  174. package/src/generated/model/queryUsersDefault.ts +9 -0
  175. package/src/generated/model/removeOriginDefault.ts +27 -0
  176. package/src/generated/model/removePreviewDefault.ts +18 -0
  177. package/src/generated/model/revokeMySessionDefault.ts +18 -0
  178. package/src/generated/model/revokeRelease200PointersItem.ts +2 -0
  179. package/src/generated/model/revokeRelease200PointersItemKind.ts +1 -0
  180. package/src/generated/model/revokeRelease409DetailsOriginsItem.ts +9 -1
  181. package/src/generated/model/revokeReleaseDefault.ts +63 -0
  182. package/src/generated/model/revokeSessionDefault.ts +18 -0
  183. package/src/generated/model/rollbackDeployment200ReleasePointersItem.ts +2 -0
  184. package/src/generated/model/rollbackDeployment200ReleasePointersItemKind.ts +1 -0
  185. package/src/generated/model/rollbackDeployment201ReleasePointersItem.ts +2 -0
  186. package/src/generated/model/rollbackDeployment201ReleasePointersItemKind.ts +1 -0
  187. package/src/generated/model/rollbackDeployment409.ts +3 -1
  188. package/src/generated/model/rollbackDeploymentDefault.ts +99 -0
  189. package/src/generated/model/setUserPasswordDefault.ts +18 -0
  190. package/src/generated/model/submitFlowStep200Step.ts +19 -0
  191. package/src/generated/model/submitFlowStep200StepPurpose.ts +26 -0
  192. package/src/generated/model/submitFlowStep400Step.ts +19 -0
  193. package/src/generated/model/submitFlowStep400StepPurpose.ts +26 -0
  194. package/src/generated/model/submitFlowStepDefault.ts +36 -0
  195. package/src/generated/model/updateTeamDefault.ts +18 -0
  196. package/src/generated/model/updateVariablesDefault.ts +18 -0
  197. package/src/generated/model/verifyChallengeProofDefault.ts +18 -0
  198. package/src/generated/operations.ts +189 -29
  199. package/src/runtime/config.spec.ts +2 -2
  200. package/src/runtime/fetch.spec.ts +13 -1
  201. package/src/runtime/fetch.ts +15 -2
  202. package/dist/fetch-DD3lSbnp.d.mts.map +0 -1
  203. package/dist/index-DuuFQkA8.d.mts.map +0 -1
  204. package/dist/zitadelNextGen-BdUDEEuX.d.mts.map +0 -1
  205. package/src/generated/model/getHealthDefault.ts +0 -27
  206. package/src/generated/model/getProject200OriginsItem.ts +0 -23
  207. package/src/generated/model/getProject200OriginsItemKind.ts +0 -15
  208. package/src/generated/model/getProject200PasswordHash.ts +0 -42
  209. package/src/generated/model/getProject200PasswordHashAlgorithm.ts +0 -24
  210. package/src/generated/model/getProject200PasswordHashParams.ts +0 -47
  211. package/src/generated/model/getProject200PasswordHashParamsHash.ts +0 -24
  212. package/src/generated/model/patchProject200OriginsItem.ts +0 -23
  213. package/src/generated/model/patchProject200OriginsItemKind.ts +0 -15
  214. package/src/generated/model/patchProject200PasswordHash.ts +0 -42
  215. package/src/generated/model/patchProject200PasswordHashAlgorithm.ts +0 -24
  216. package/src/generated/model/patchProject200PasswordHashParams.ts +0 -47
  217. package/src/generated/model/patchProject200PasswordHashParamsHash.ts +0 -24
@@ -1,42 +0,0 @@
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
- import type { GetProject200PasswordHashAlgorithm } from './getProject200PasswordHashAlgorithm.ts';
9
- import type { GetProject200PasswordHashParams } from './getProject200PasswordHashParams.ts';
10
-
11
- /**
12
- * The method this project's passwords are hashed with. Null when the project
13
- * uses the server default.
14
- */
15
- export type GetProject200PasswordHash = {
16
- /**
17
- * The hashing algorithm. Only algorithms that can hash appear here; the
18
- * legacy encodings the server can still verify for imported users
19
- * (md5, phpass, drupal7) are not among them.
20
- */
21
- algorithm: GetProject200PasswordHashAlgorithm;
22
- /**
23
- * The algorithm's cost parameters. Exactly the parameters the chosen
24
- * algorithm takes must be given: `time`, `memory` and `threads` for argon2i
25
- * and argon2id; `cost` for bcrypt and scrypt; `rounds` and `hash` for
26
- * pbkdf2 and sha2. A parameter another algorithm takes is rejected rather
27
- * than ignored, and a missing one is not filled in from a default, because
28
- * cost is the whole of a hashing method's strength.
29
- *
30
- * The properties below are the union across algorithms, so which of them
31
- * apply, and for `hash` which of its values, depends on `algorithm`. They
32
- * are not modelled per algorithm here because the code generator renders a
33
- * conditional schema as an untyped object, which would cost every client
34
- * the types for the whole policy.
35
- *
36
- * Values outside the limits the deployment configured are rejected, as is
37
- * an algorithm the deployment cannot verify: hashing with a method that
38
- * cannot be read back would lock out every user whose password was written
39
- * that way.
40
- */
41
- params: GetProject200PasswordHashParams;
42
- } | null;
@@ -1,24 +0,0 @@
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
- * The hashing algorithm. Only algorithms that can hash appear here; the
11
- * legacy encodings the server can still verify for imported users
12
- * (md5, phpass, drupal7) are not among them.
13
- */
14
- export type GetProject200PasswordHashAlgorithm = typeof GetProject200PasswordHashAlgorithm[keyof typeof GetProject200PasswordHashAlgorithm];
15
-
16
-
17
- export const GetProject200PasswordHashAlgorithm = {
18
- argon2i: 'argon2i',
19
- argon2id: 'argon2id',
20
- bcrypt: 'bcrypt',
21
- scrypt: 'scrypt',
22
- pbkdf2: 'pbkdf2',
23
- sha2: 'sha2',
24
- } as const;
@@ -1,47 +0,0 @@
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
- import type { GetProject200PasswordHashParamsHash } from './getProject200PasswordHashParamsHash.ts';
9
-
10
- /**
11
- * The algorithm's cost parameters. Exactly the parameters the chosen
12
- * algorithm takes must be given: `time`, `memory` and `threads` for argon2i
13
- * and argon2id; `cost` for bcrypt and scrypt; `rounds` and `hash` for
14
- * pbkdf2 and sha2. A parameter another algorithm takes is rejected rather
15
- * than ignored, and a missing one is not filled in from a default, because
16
- * cost is the whole of a hashing method's strength.
17
- *
18
- * The properties below are the union across algorithms, so which of them
19
- * apply, and for `hash` which of its values, depends on `algorithm`. They
20
- * are not modelled per algorithm here because the code generator renders a
21
- * conditional schema as an untyped object, which would cost every client
22
- * the types for the whole policy.
23
- *
24
- * Values outside the limits the deployment configured are rejected, as is
25
- * an algorithm the deployment cannot verify: hashing with a method that
26
- * cannot be read back would lock out every user whose password was written
27
- * that way.
28
- */
29
- export type GetProject200PasswordHashParams = {
30
- /** argon2 passes over memory. */
31
- time?: number;
32
- /** argon2 memory in KiB. */
33
- memory?: number;
34
- /** argon2 lanes. */
35
- threads?: number;
36
- /** bcrypt cost, or scrypt's log2 of the CPU/memory cost. */
37
- cost?: number;
38
- /** pbkdf2 or sha2 iteration count. */
39
- rounds?: number;
40
- /**
41
- * The underlying hash. pbkdf2 takes any of the values listed here; sha2
42
- * takes only `sha256` and `sha512`, because it is the crypt(3) scheme,
43
- * which has no other form. Any other combination is rejected with
44
- * `proj.password_hash_invalid`.
45
- */
46
- hash?: GetProject200PasswordHashParamsHash;
47
- };
@@ -1,24 +0,0 @@
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
- * The underlying hash. pbkdf2 takes any of the values listed here; sha2
11
- * takes only `sha256` and `sha512`, because it is the crypt(3) scheme,
12
- * which has no other form. Any other combination is rejected with
13
- * `proj.password_hash_invalid`.
14
- */
15
- export type GetProject200PasswordHashParamsHash = typeof GetProject200PasswordHashParamsHash[keyof typeof GetProject200PasswordHashParamsHash];
16
-
17
-
18
- export const GetProject200PasswordHashParamsHash = {
19
- sha1: 'sha1',
20
- sha224: 'sha224',
21
- sha256: 'sha256',
22
- sha384: 'sha384',
23
- sha512: 'sha512',
24
- } as const;
@@ -1,23 +0,0 @@
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
- import type { PatchProject200OriginsItemKind } from './patchProject200OriginsItemKind.ts';
9
-
10
- /**
11
- * One of a project's origins: a pattern and what it is for. A `primary`
12
- * pattern is an exact origin (scheme and host, no `*`) that admits requests
13
- * from the URLs it matches. A `preview` pattern only bounds which URLs a
14
- * preview deploy may register; it may include at most one `*` inside a single
15
- * host label (`*` matches one or more characters, none of them a dot). A
16
- * literal beats a wildcard. Unknown hosts are accepted as written. An empty
17
- * list means every origin is admitted until the first pattern is added.
18
- * Loopback origins are admitted without a pattern.
19
- */
20
- export type PatchProject200OriginsItem = {
21
- pattern: string;
22
- kind: PatchProject200OriginsItemKind;
23
- };
@@ -1,15 +0,0 @@
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 PatchProject200OriginsItemKind = typeof PatchProject200OriginsItemKind[keyof typeof PatchProject200OriginsItemKind];
10
-
11
-
12
- export const PatchProject200OriginsItemKind = {
13
- primary: 'primary',
14
- preview: 'preview',
15
- } as const;
@@ -1,42 +0,0 @@
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
- import type { PatchProject200PasswordHashAlgorithm } from './patchProject200PasswordHashAlgorithm.ts';
9
- import type { PatchProject200PasswordHashParams } from './patchProject200PasswordHashParams.ts';
10
-
11
- /**
12
- * The method this project's passwords are hashed with. Null when the project
13
- * uses the server default.
14
- */
15
- export type PatchProject200PasswordHash = {
16
- /**
17
- * The hashing algorithm. Only algorithms that can hash appear here; the
18
- * legacy encodings the server can still verify for imported users
19
- * (md5, phpass, drupal7) are not among them.
20
- */
21
- algorithm: PatchProject200PasswordHashAlgorithm;
22
- /**
23
- * The algorithm's cost parameters. Exactly the parameters the chosen
24
- * algorithm takes must be given: `time`, `memory` and `threads` for argon2i
25
- * and argon2id; `cost` for bcrypt and scrypt; `rounds` and `hash` for
26
- * pbkdf2 and sha2. A parameter another algorithm takes is rejected rather
27
- * than ignored, and a missing one is not filled in from a default, because
28
- * cost is the whole of a hashing method's strength.
29
- *
30
- * The properties below are the union across algorithms, so which of them
31
- * apply, and for `hash` which of its values, depends on `algorithm`. They
32
- * are not modelled per algorithm here because the code generator renders a
33
- * conditional schema as an untyped object, which would cost every client
34
- * the types for the whole policy.
35
- *
36
- * Values outside the limits the deployment configured are rejected, as is
37
- * an algorithm the deployment cannot verify: hashing with a method that
38
- * cannot be read back would lock out every user whose password was written
39
- * that way.
40
- */
41
- params: PatchProject200PasswordHashParams;
42
- } | null;
@@ -1,24 +0,0 @@
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
- * The hashing algorithm. Only algorithms that can hash appear here; the
11
- * legacy encodings the server can still verify for imported users
12
- * (md5, phpass, drupal7) are not among them.
13
- */
14
- export type PatchProject200PasswordHashAlgorithm = typeof PatchProject200PasswordHashAlgorithm[keyof typeof PatchProject200PasswordHashAlgorithm];
15
-
16
-
17
- export const PatchProject200PasswordHashAlgorithm = {
18
- argon2i: 'argon2i',
19
- argon2id: 'argon2id',
20
- bcrypt: 'bcrypt',
21
- scrypt: 'scrypt',
22
- pbkdf2: 'pbkdf2',
23
- sha2: 'sha2',
24
- } as const;
@@ -1,47 +0,0 @@
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
- import type { PatchProject200PasswordHashParamsHash } from './patchProject200PasswordHashParamsHash.ts';
9
-
10
- /**
11
- * The algorithm's cost parameters. Exactly the parameters the chosen
12
- * algorithm takes must be given: `time`, `memory` and `threads` for argon2i
13
- * and argon2id; `cost` for bcrypt and scrypt; `rounds` and `hash` for
14
- * pbkdf2 and sha2. A parameter another algorithm takes is rejected rather
15
- * than ignored, and a missing one is not filled in from a default, because
16
- * cost is the whole of a hashing method's strength.
17
- *
18
- * The properties below are the union across algorithms, so which of them
19
- * apply, and for `hash` which of its values, depends on `algorithm`. They
20
- * are not modelled per algorithm here because the code generator renders a
21
- * conditional schema as an untyped object, which would cost every client
22
- * the types for the whole policy.
23
- *
24
- * Values outside the limits the deployment configured are rejected, as is
25
- * an algorithm the deployment cannot verify: hashing with a method that
26
- * cannot be read back would lock out every user whose password was written
27
- * that way.
28
- */
29
- export type PatchProject200PasswordHashParams = {
30
- /** argon2 passes over memory. */
31
- time?: number;
32
- /** argon2 memory in KiB. */
33
- memory?: number;
34
- /** argon2 lanes. */
35
- threads?: number;
36
- /** bcrypt cost, or scrypt's log2 of the CPU/memory cost. */
37
- cost?: number;
38
- /** pbkdf2 or sha2 iteration count. */
39
- rounds?: number;
40
- /**
41
- * The underlying hash. pbkdf2 takes any of the values listed here; sha2
42
- * takes only `sha256` and `sha512`, because it is the crypt(3) scheme,
43
- * which has no other form. Any other combination is rejected with
44
- * `proj.password_hash_invalid`.
45
- */
46
- hash?: PatchProject200PasswordHashParamsHash;
47
- };
@@ -1,24 +0,0 @@
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
- * The underlying hash. pbkdf2 takes any of the values listed here; sha2
11
- * takes only `sha256` and `sha512`, because it is the crypt(3) scheme,
12
- * which has no other form. Any other combination is rejected with
13
- * `proj.password_hash_invalid`.
14
- */
15
- export type PatchProject200PasswordHashParamsHash = typeof PatchProject200PasswordHashParamsHash[keyof typeof PatchProject200PasswordHashParamsHash];
16
-
17
-
18
- export const PatchProject200PasswordHashParamsHash = {
19
- sha1: 'sha1',
20
- sha224: 'sha224',
21
- sha256: 'sha256',
22
- sha384: 'sha384',
23
- sha512: 'sha512',
24
- } as const;