@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.
- package/dist/{fetch-DD3lSbnp.d.mts → fetch-CtYe0OvX.d.mts} +8 -2
- package/dist/fetch-CtYe0OvX.d.mts.map +1 -0
- package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
- package/dist/generated/endpoints/zitadelNextGen.mjs +228 -42
- package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +15 -4
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs +3156 -1476
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +1282 -94
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +1785 -641
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
- package/dist/generated/model/index.d.mts +2 -2
- package/dist/generated/model/index.mjs +72 -65
- package/dist/generated/model/index.mjs.map +1 -1
- package/dist/generated/operations.mjs +181 -29
- package/dist/generated/operations.mjs.map +1 -1
- package/dist/{index-DuuFQkA8.d.mts → index-D7-l5LV6.d.mts} +6051 -1072
- package/dist/index-D7-l5LV6.d.mts.map +1 -0
- package/dist/runtime/api-factory.d.mts +1 -1
- package/dist/runtime/fetch.d.mts +1 -1
- package/dist/runtime/fetch.mjs +9 -2
- package/dist/runtime/fetch.mjs.map +1 -1
- package/dist/{zitadelNextGen-BdUDEEuX.d.mts → zitadelNextGen-Cw3DrCn1.d.mts} +135 -37
- package/dist/zitadelNextGen-Cw3DrCn1.d.mts.map +1 -0
- package/package.json +2 -2
- package/src/generated/endpoints/zitadelNextGen.faker.ts +37 -19
- package/src/generated/endpoints/zitadelNextGen.msw.ts +91 -13
- package/src/generated/endpoints/zitadelNextGen.ts +322 -52
- package/src/generated/endpoints/zitadelNextGen.zod.ts +1072 -123
- package/src/generated/model/addOriginDefault.ts +27 -0
- package/src/generated/model/beginUserPasskeyRegistrationDefault.ts +18 -0
- package/src/generated/model/buildRelease200PointersItem.ts +2 -0
- package/src/generated/model/buildRelease200PointersItemKind.ts +1 -0
- package/src/generated/model/buildRelease201PointersItem.ts +2 -0
- package/src/generated/model/buildRelease201PointersItemKind.ts +1 -0
- package/src/generated/model/buildRelease400DetailsResourcesItemKind.ts +1 -0
- package/src/generated/model/buildReleaseBody.ts +3 -3
- package/src/generated/model/buildReleaseBodyBundle.ts +20 -3
- package/src/generated/model/buildReleaseBodyBundlePoliciesItem.ts +47 -0
- package/src/generated/model/buildReleaseDefault.ts +36 -0
- package/src/generated/model/createAuthAttemptDefault.ts +27 -0
- package/src/generated/model/createBrandingDefault.ts +18 -0
- package/src/generated/model/createDeployment200ReleasePointersItem.ts +2 -0
- package/src/generated/model/createDeployment200ReleasePointersItemKind.ts +1 -0
- package/src/generated/model/createDeployment201ReleasePointersItem.ts +2 -0
- package/src/generated/model/createDeployment201ReleasePointersItemKind.ts +1 -0
- package/src/generated/model/createDeployment409.ts +3 -1
- package/src/generated/model/createDeploymentBody.ts +2 -4
- package/src/generated/model/createDeploymentDefault.ts +54 -0
- package/src/generated/model/createFlow201Step.ts +19 -0
- package/src/generated/model/createFlow201StepPurpose.ts +26 -0
- package/src/generated/model/createFlowDefault.ts +18 -0
- package/src/generated/model/createFlowDefinitionDefault.ts +18 -0
- package/src/generated/model/createGrant201Team.ts +4 -1
- package/src/generated/model/createGrantDefault.ts +18 -0
- package/src/generated/model/createHandoffDefault.ts +18 -0
- package/src/generated/model/createIdpDefault.ts +18 -0
- package/src/generated/model/createRelease200PointersItem.ts +2 -0
- package/src/generated/model/createRelease200PointersItemKind.ts +1 -0
- package/src/generated/model/createRelease201PointersItem.ts +2 -0
- package/src/generated/model/createRelease201PointersItemKind.ts +1 -0
- package/src/generated/model/createReleaseBodyPointersItemKind.ts +1 -0
- package/src/generated/model/createReleaseDefault.ts +18 -0
- package/src/generated/model/createSchemaDefault.ts +18 -0
- package/src/generated/model/createSessionDefault.ts +18 -0
- package/src/generated/model/createTeamDefault.ts +18 -0
- package/src/generated/model/createUserDefault.ts +18 -0
- package/src/generated/model/deleteGrantDefault.ts +18 -0
- package/src/generated/model/deleteTeamDefault.ts +18 -0
- package/src/generated/model/deleteUserByIDDefault.ts +18 -0
- package/src/generated/model/deleteVariableDefault.ts +18 -0
- package/src/generated/model/exchangeHandoffDefault.ts +36 -0
- package/src/generated/model/finishUserPasskeyRegistrationDefault.ts +18 -0
- package/src/generated/model/getAuthAttemptDefault.ts +18 -0
- package/src/generated/model/getBrandingByIdDefault.ts +18 -0
- package/src/generated/model/getClaimStatusDefault.ts +18 -0
- package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +2 -0
- package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +1 -0
- package/src/generated/model/getDeploymentByIdDefault.ts +18 -0
- package/src/generated/model/getDeploymentVariablesDefault.ts +9 -0
- package/src/generated/model/getEvent200.ts +788 -0
- package/src/generated/model/getEventDefault.ts +18 -0
- package/src/generated/model/getFlowDefinitionDefault.ts +18 -0
- package/src/generated/model/getFlowStep200Step.ts +19 -0
- package/src/generated/model/getFlowStep200StepPurpose.ts +26 -0
- package/src/generated/model/getFlowStepDefault.ts +36 -0
- package/src/generated/model/getGrant200Team.ts +4 -1
- package/src/generated/model/getGrantDefault.ts +18 -0
- package/src/generated/model/getIdpByIdDefault.ts +18 -0
- package/src/generated/model/getIdpRevisionByIdDefault.ts +18 -0
- package/src/generated/model/getMyPasswordStateDefault.ts +18 -0
- package/src/generated/model/getMySessionCsrfTokenDefault.ts +18 -0
- package/src/generated/model/getMySessionDefault.ts +18 -0
- package/src/generated/model/getMyUserDefault.ts +18 -0
- package/src/generated/model/getMyUserSchemaDefault.ts +18 -0
- package/src/generated/model/getPolicy200.ts +62 -0
- package/src/generated/model/getPolicyDefault.ts +72 -0
- package/src/generated/model/getPolicyParams.ts +15 -0
- package/src/generated/model/getPolicyRevision200.ts +62 -0
- package/src/generated/model/getPolicyRevisionDefault.ts +72 -0
- package/src/generated/model/getPolicyRevisionParams.ts +15 -0
- package/src/generated/model/getProject200.ts +64 -6
- package/src/generated/model/getReleaseById200PointersItem.ts +2 -0
- package/src/generated/model/getReleaseById200PointersItemKind.ts +1 -0
- package/src/generated/model/getReleaseByIdDefault.ts +18 -0
- package/src/generated/model/getSchemaByIdDefault.ts +18 -0
- package/src/generated/model/getSessionDefault.ts +18 -0
- package/src/generated/model/getTeamDefault.ts +18 -0
- package/src/generated/model/getUserByIDDefault.ts +18 -0
- package/src/generated/model/getUserPasswordStateDefault.ts +18 -0
- package/src/generated/model/getVariableDefault.ts +18 -0
- package/src/generated/model/getVariablesDefault.ts +18 -0
- package/src/generated/model/index.ts +38 -21
- package/src/generated/model/initClaimDefault.ts +18 -0
- package/src/generated/model/issueChallengeDefault.ts +18 -0
- package/src/generated/model/listBrandingDefault.ts +18 -0
- package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +2 -0
- package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +1 -0
- package/src/generated/model/listDeploymentsDefault.ts +18 -0
- package/src/generated/model/listEvents200DataItem.ts +788 -0
- package/src/generated/model/listEventsDefault.ts +18 -0
- package/src/generated/model/listFlowDefinitionsDefault.ts +18 -0
- package/src/generated/model/listIdpRevisionsDefault.ts +18 -0
- package/src/generated/model/listMyIdentityLinksDefault.ts +18 -0
- package/src/generated/model/listMyPasskeysDefault.ts +18 -0
- package/src/generated/model/listMyProjectsDefault.ts +18 -0
- package/src/generated/model/listMyProjectsParams.ts +8 -0
- package/src/generated/model/listMyTeamsDefault.ts +18 -0
- package/src/generated/model/listPolicies200.ts +21 -0
- package/src/generated/model/listPolicies200PoliciesItem.ts +62 -0
- package/src/generated/model/listPoliciesDefault.ts +72 -0
- package/src/generated/model/listPoliciesOperation.ts +14 -0
- package/src/generated/model/listPoliciesParams.ts +33 -0
- package/src/generated/model/listPolicyRevisions200.ts +20 -0
- package/src/generated/model/listPolicyRevisions200RevisionsItem.ts +62 -0
- package/src/generated/model/listPolicyRevisionsDefault.ts +72 -0
- package/src/generated/model/listPolicyRevisionsParams.ts +28 -0
- package/src/generated/model/listPreviewsDefault.ts +9 -0
- package/src/generated/model/listProjectAdmins200.ts +20 -0
- package/src/generated/model/listProjectAdmins200AdminsItem.ts +31 -0
- package/src/generated/model/listProjectAdmins200AdminsItemSourcesItem.ts +57 -0
- package/src/generated/model/listProjectAdmins200AdminsItemUser.ts +40 -0
- package/src/generated/model/{createAuthAttempt409.ts → listProjectAdmins400.ts} +3 -3
- package/src/generated/model/{createAuthAttempt409Details.ts → listProjectAdmins400Details.ts} +1 -1
- package/src/generated/model/{issueChallenge409.ts → listProjectAdmins401.ts} +3 -3
- package/src/generated/model/{issueChallenge409Details.ts → listProjectAdmins401Details.ts} +1 -1
- package/src/generated/model/{getAuthAttempt409.ts → listProjectAdmins403.ts} +3 -3
- package/src/generated/model/{getHealth4xxDetails.ts → listProjectAdmins403Details.ts} +1 -1
- package/src/generated/model/{getHealth4xx.ts → listProjectAdmins404.ts} +3 -3
- package/src/generated/model/{getAuthAttempt409Details.ts → listProjectAdmins404Details.ts} +1 -1
- package/src/generated/model/listProjectAdminsDefault.ts +81 -0
- package/src/generated/model/listProjectAdminsParams.ts +23 -0
- package/src/generated/model/listReleasesDefault.ts +18 -0
- package/src/generated/model/listSchemasDefault.ts +18 -0
- package/src/generated/model/listUserIdentityLinksDefault.ts +18 -0
- package/src/generated/model/listUserPasskeysDefault.ts +18 -0
- package/src/generated/model/listUserTeamsDefault.ts +18 -0
- package/src/generated/model/patchMyUserDefault.ts +18 -0
- package/src/generated/model/patchProject200.ts +64 -6
- package/src/generated/model/patchProjectDefault.ts +18 -0
- package/src/generated/model/patchUserByIDDefault.ts +18 -0
- package/src/generated/model/publishPolicy201.ts +62 -0
- package/src/generated/model/publishPolicyBody.ts +47 -0
- package/src/generated/model/publishPolicyDefault.ts +99 -0
- package/src/generated/model/publishPolicyParams.ts +15 -0
- package/src/generated/model/queryGrants200GrantsItemTeam.ts +4 -1
- package/src/generated/model/queryGrantsDefault.ts +9 -0
- package/src/generated/model/queryIdpsDefault.ts +9 -0
- package/src/generated/model/queryProjectsDefault.ts +9 -0
- package/src/generated/model/querySessionsDefault.ts +9 -0
- package/src/generated/model/queryTeamsDefault.ts +9 -0
- package/src/generated/model/queryUsersDefault.ts +9 -0
- package/src/generated/model/removeOriginDefault.ts +27 -0
- package/src/generated/model/removePreviewDefault.ts +18 -0
- package/src/generated/model/revokeMySessionDefault.ts +18 -0
- package/src/generated/model/revokeRelease200PointersItem.ts +2 -0
- package/src/generated/model/revokeRelease200PointersItemKind.ts +1 -0
- package/src/generated/model/revokeRelease409DetailsOriginsItem.ts +9 -1
- package/src/generated/model/revokeReleaseDefault.ts +63 -0
- package/src/generated/model/revokeSessionDefault.ts +18 -0
- package/src/generated/model/rollbackDeployment200ReleasePointersItem.ts +2 -0
- package/src/generated/model/rollbackDeployment200ReleasePointersItemKind.ts +1 -0
- package/src/generated/model/rollbackDeployment201ReleasePointersItem.ts +2 -0
- package/src/generated/model/rollbackDeployment201ReleasePointersItemKind.ts +1 -0
- package/src/generated/model/rollbackDeployment409.ts +3 -1
- package/src/generated/model/rollbackDeploymentDefault.ts +99 -0
- package/src/generated/model/setUserPasswordDefault.ts +18 -0
- package/src/generated/model/submitFlowStep200Step.ts +19 -0
- package/src/generated/model/submitFlowStep200StepPurpose.ts +26 -0
- package/src/generated/model/submitFlowStep400Step.ts +19 -0
- package/src/generated/model/submitFlowStep400StepPurpose.ts +26 -0
- package/src/generated/model/submitFlowStepDefault.ts +36 -0
- package/src/generated/model/updateTeamDefault.ts +18 -0
- package/src/generated/model/updateVariablesDefault.ts +18 -0
- package/src/generated/model/verifyChallengeProofDefault.ts +18 -0
- package/src/generated/operations.ts +189 -29
- package/src/runtime/config.spec.ts +2 -2
- package/src/runtime/fetch.spec.ts +13 -1
- package/src/runtime/fetch.ts +15 -2
- package/dist/fetch-DD3lSbnp.d.mts.map +0 -1
- package/dist/index-DuuFQkA8.d.mts.map +0 -1
- package/dist/zitadelNextGen-BdUDEEuX.d.mts.map +0 -1
- package/src/generated/model/getHealthDefault.ts +0 -27
- package/src/generated/model/getProject200OriginsItem.ts +0 -23
- package/src/generated/model/getProject200OriginsItemKind.ts +0 -15
- package/src/generated/model/getProject200PasswordHash.ts +0 -42
- package/src/generated/model/getProject200PasswordHashAlgorithm.ts +0 -24
- package/src/generated/model/getProject200PasswordHashParams.ts +0 -47
- package/src/generated/model/getProject200PasswordHashParamsHash.ts +0 -24
- package/src/generated/model/patchProject200OriginsItem.ts +0 -23
- package/src/generated/model/patchProject200OriginsItemKind.ts +0 -15
- package/src/generated/model/patchProject200PasswordHash.ts +0 -42
- package/src/generated/model/patchProject200PasswordHashAlgorithm.ts +0 -24
- package/src/generated/model/patchProject200PasswordHashParams.ts +0 -47
- 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;
|