@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.
- 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 +291 -44
- package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +17 -4
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs +3184 -1471
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +1342 -85
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +1865 -648
- 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 +76 -65
- package/dist/generated/model/index.mjs.map +1 -1
- package/dist/generated/operations.mjs +202 -29
- package/dist/generated/operations.mjs.map +1 -1
- package/dist/{index-DuuFQkA8.d.mts → index-DAm3tCA7.d.mts} +6562 -1257
- package/dist/index-DAm3tCA7.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-B_VRpP2W.d.mts} +165 -39
- package/dist/zitadelNextGen-B_VRpP2W.d.mts.map +1 -0
- package/package.json +3 -2
- package/src/generated/endpoints/zitadelNextGen.faker.ts +46 -25
- package/src/generated/endpoints/zitadelNextGen.msw.ts +106 -13
- package/src/generated/endpoints/zitadelNextGen.ts +404 -54
- package/src/generated/endpoints/zitadelNextGen.zod.ts +1159 -133
- 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/createFlowDefinition201UserSchemaMetadata.ts +5 -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/evaluatePolicy200.ts +30 -0
- package/src/generated/model/evaluatePolicy200Violations.ts +14 -0
- package/src/generated/model/evaluatePolicyBody.ts +82 -0
- package/src/generated/model/evaluatePolicyDefault.ts +90 -0
- package/src/generated/model/evaluatePolicyParams.ts +15 -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/getFlowDefinition200UserSchemaMetadata.ts +5 -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/getMyUserSchema200Metadata.ts +5 -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/getSchemaById200Metadata.ts +5 -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 +44 -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/listFlowDefinitions200FlowDefinitionsItemUserSchemaMetadata.ts +5 -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/listSchemas200SchemasItemMetadata.ts +5 -0
- package/src/generated/model/listSchemasDefault.ts +18 -0
- package/src/generated/model/listSchemasExpandItem.ts +28 -0
- package/src/generated/model/listSchemasParams.ts +5 -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/queryUsersBodyFilterItem.ts +11 -3
- package/src/generated/model/queryUsersBodyFilterItemField.ts +12 -3
- 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 +212 -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
|
@@ -7,7 +7,15 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export type RevokeRelease409DetailsOriginsItem = {
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* A web origin: `http` or `https`, a lowercase host (a DNS name or a
|
|
12
|
+
* bracketed IPv6 address) and, when it is not the scheme's default, a port
|
|
13
|
+
* from 1 to 65535. No user info, path, query or fragment, and no trailing
|
|
14
|
+
* slash. Compared exactly, so `https://app.acme.com` and
|
|
15
|
+
* `https://app.acme.com:443` are different strings.
|
|
16
|
+
* @maxLength 2048
|
|
17
|
+
* @pattern ^https?://(\[[0-9a-f:.]+\]|[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*)(:(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|6[0-4][0-9]{3}|[1-5][0-9]{4}|[1-9][0-9]{0,3}))?$
|
|
18
|
+
*/
|
|
11
19
|
origin: string;
|
|
12
20
|
/**
|
|
13
21
|
* The opaque, immutable identifier of a deployment.
|
|
@@ -13,6 +13,15 @@ export type RevokeReleaseDefault = {
|
|
|
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
|
} | {
|
|
@@ -22,6 +31,15 @@ export type RevokeReleaseDefault = {
|
|
|
22
31
|
message: string;
|
|
23
32
|
/** Additional error-specific context. */
|
|
24
33
|
details?: { [key: string]: unknown };
|
|
34
|
+
} & {
|
|
35
|
+
code: 'evt.invalid';
|
|
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 };
|
|
25
43
|
} & {
|
|
26
44
|
code: 'internal';
|
|
27
45
|
} | {
|
|
@@ -40,6 +58,51 @@ export type RevokeReleaseDefault = {
|
|
|
40
58
|
message: string;
|
|
41
59
|
/** Additional error-specific context. */
|
|
42
60
|
details?: { [key: string]: unknown };
|
|
61
|
+
} & {
|
|
62
|
+
code: 'rel.in_use';
|
|
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: 'rel.not_found';
|
|
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: 'rel.permission_denied';
|
|
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: 'rel.project_not_found';
|
|
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 };
|
|
43
97
|
} & {
|
|
44
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';
|
|
45
108
|
};
|
|
@@ -40,6 +40,15 @@ export type RevokeSessionDefault = {
|
|
|
40
40
|
message: string;
|
|
41
41
|
/** Additional error-specific context. */
|
|
42
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 };
|
|
43
52
|
} & {
|
|
44
53
|
code: 'req.invalid';
|
|
45
54
|
} | {
|
|
@@ -60,4 +69,13 @@ export type RevokeSessionDefault = {
|
|
|
60
69
|
details?: { [key: string]: unknown };
|
|
61
70
|
} & {
|
|
62
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';
|
|
63
81
|
};
|
|
@@ -38,6 +38,8 @@ export type RollbackDeployment200ReleasePointersItem = {
|
|
|
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.
|
|
@@ -38,6 +38,8 @@ export type RollbackDeployment201ReleasePointersItem = {
|
|
|
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.
|
|
@@ -213,7 +213,7 @@ export type RollbackDeployment409 = {
|
|
|
213
213
|
* `flow_definition` rather than `flow`: a release pins the definitions served
|
|
214
214
|
* at `/flow_definitions`, not the runtime flows at `/flow`.
|
|
215
215
|
*/
|
|
216
|
-
kind: 'schema' | 'flow_definition' | 'branding' | 'idp';
|
|
216
|
+
kind: 'schema' | 'flow_definition' | 'branding' | 'idp' | 'policy';
|
|
217
217
|
/**
|
|
218
218
|
* Which resource this pointer pins, independent of which revision of it.
|
|
219
219
|
* `revision_id` chooses the revision; `handle` says what the revision is a
|
|
@@ -229,6 +229,8 @@ export type RollbackDeployment409 = {
|
|
|
229
229
|
* `revision_id` is what varies between releases.
|
|
230
230
|
* - `idp` — the connection's `slug`, so `google` and `github` are
|
|
231
231
|
* separate resources a release pins separately
|
|
232
|
+
* - `policy` — the policy's `operation`, so a project's password policy
|
|
233
|
+
* is one resource however often it is revised
|
|
232
234
|
*
|
|
233
235
|
* Resources inside a release reference each other by handle rather than by
|
|
234
236
|
* revision id, so the same handle names the same resource in every release.
|
|
@@ -13,6 +13,15 @@ export type RollbackDeploymentDefault = {
|
|
|
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
|
} | {
|
|
@@ -22,6 +31,24 @@ export type RollbackDeploymentDefault = {
|
|
|
22
31
|
message: string;
|
|
23
32
|
/** Additional error-specific context. */
|
|
24
33
|
details?: { [key: string]: unknown };
|
|
34
|
+
} & {
|
|
35
|
+
code: 'dep.conflict';
|
|
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: 'dep.invalid';
|
|
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 };
|
|
25
52
|
} & {
|
|
26
53
|
code: 'dep.not_found';
|
|
27
54
|
} | {
|
|
@@ -40,6 +67,15 @@ export type RollbackDeploymentDefault = {
|
|
|
40
67
|
message: string;
|
|
41
68
|
/** Additional error-specific context. */
|
|
42
69
|
details?: { [key: string]: unknown };
|
|
70
|
+
} & {
|
|
71
|
+
code: 'dep.variables_missing';
|
|
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 };
|
|
43
79
|
} & {
|
|
44
80
|
code: 'env.project_not_found';
|
|
45
81
|
} | {
|
|
@@ -49,6 +85,15 @@ export type RollbackDeploymentDefault = {
|
|
|
49
85
|
message: string;
|
|
50
86
|
/** Additional error-specific context. */
|
|
51
87
|
details?: { [key: string]: unknown };
|
|
88
|
+
} & {
|
|
89
|
+
code: 'evt.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 };
|
|
52
97
|
} & {
|
|
53
98
|
code: 'internal';
|
|
54
99
|
} | {
|
|
@@ -67,6 +112,60 @@ export type RollbackDeploymentDefault = {
|
|
|
67
112
|
message: string;
|
|
68
113
|
/** Additional error-specific context. */
|
|
69
114
|
details?: { [key: string]: unknown };
|
|
115
|
+
} & {
|
|
116
|
+
code: 'proj.not_found';
|
|
117
|
+
} | {
|
|
118
|
+
/** Stable machine-readable error code. */
|
|
119
|
+
code: string;
|
|
120
|
+
/** Human-readable explanation of the error. */
|
|
121
|
+
message: string;
|
|
122
|
+
/** Additional error-specific context. */
|
|
123
|
+
details?: { [key: string]: unknown };
|
|
124
|
+
} & {
|
|
125
|
+
code: 'proj.origin_not_allowed';
|
|
126
|
+
} | {
|
|
127
|
+
/** Stable machine-readable error code. */
|
|
128
|
+
code: string;
|
|
129
|
+
/** Human-readable explanation of the error. */
|
|
130
|
+
message: string;
|
|
131
|
+
/** Additional error-specific context. */
|
|
132
|
+
details?: { [key: string]: unknown };
|
|
133
|
+
} & {
|
|
134
|
+
code: 'rel.not_found';
|
|
135
|
+
} | {
|
|
136
|
+
/** Stable machine-readable error code. */
|
|
137
|
+
code: string;
|
|
138
|
+
/** Human-readable explanation of the error. */
|
|
139
|
+
message: string;
|
|
140
|
+
/** Additional error-specific context. */
|
|
141
|
+
details?: { [key: string]: unknown };
|
|
142
|
+
} & {
|
|
143
|
+
code: 'rel.revoked';
|
|
144
|
+
} | {
|
|
145
|
+
/** Stable machine-readable error code. */
|
|
146
|
+
code: string;
|
|
147
|
+
/** Human-readable explanation of the error. */
|
|
148
|
+
message: string;
|
|
149
|
+
/** Additional error-specific context. */
|
|
150
|
+
details?: { [key: string]: unknown };
|
|
70
151
|
} & {
|
|
71
152
|
code: 'req.invalid';
|
|
153
|
+
} | {
|
|
154
|
+
/** Stable machine-readable error code. */
|
|
155
|
+
code: string;
|
|
156
|
+
/** Human-readable explanation of the error. */
|
|
157
|
+
message: string;
|
|
158
|
+
/** Additional error-specific context. */
|
|
159
|
+
details?: { [key: string]: unknown };
|
|
160
|
+
} & {
|
|
161
|
+
code: 'unavailable';
|
|
162
|
+
} | {
|
|
163
|
+
/** Stable machine-readable error code. */
|
|
164
|
+
code: string;
|
|
165
|
+
/** Human-readable explanation of the error. */
|
|
166
|
+
message: string;
|
|
167
|
+
/** Additional error-specific context. */
|
|
168
|
+
details?: { [key: string]: unknown };
|
|
169
|
+
} & {
|
|
170
|
+
code: 'var.document_too_deep';
|
|
72
171
|
};
|
|
@@ -40,6 +40,15 @@ export type SetUserPasswordDefault = {
|
|
|
40
40
|
message: string;
|
|
41
41
|
/** Additional error-specific context. */
|
|
42
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 };
|
|
43
52
|
} & {
|
|
44
53
|
code: 'req.invalid';
|
|
45
54
|
} | {
|
|
@@ -49,6 +58,15 @@ export type SetUserPasswordDefault = {
|
|
|
49
58
|
message: string;
|
|
50
59
|
/** Additional error-specific context. */
|
|
51
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 };
|
|
52
70
|
} & {
|
|
53
71
|
code: 'user.conflict';
|
|
54
72
|
} | {
|
|
@@ -11,6 +11,7 @@ import type { SubmitFlowStep200StepComplete } from './submitFlowStep200StepCompl
|
|
|
11
11
|
import type { SubmitFlowStep200StepFieldsItem } from './submitFlowStep200StepFieldsItem.ts';
|
|
12
12
|
import type { SubmitFlowStep200StepGates } from './submitFlowStep200StepGates.ts';
|
|
13
13
|
import type { SubmitFlowStep200StepIdentifier } from './submitFlowStep200StepIdentifier.ts';
|
|
14
|
+
import type { SubmitFlowStep200StepPurpose } from './submitFlowStep200StepPurpose.ts';
|
|
14
15
|
import type { SubmitFlowStep200StepSsoProvidersItem } from './submitFlowStep200StepSsoProvidersItem.ts';
|
|
15
16
|
import type { SubmitFlowStep200StepTexts } from './submitFlowStep200StepTexts.ts';
|
|
16
17
|
|
|
@@ -28,6 +29,24 @@ export type SubmitFlowStep200Step = {
|
|
|
28
29
|
* The backend never sends display text — only semantic keys.
|
|
29
30
|
*/
|
|
30
31
|
texts?: SubmitFlowStep200StepTexts;
|
|
32
|
+
/**
|
|
33
|
+
* What the flow does on this step. A login moves between `login` and
|
|
34
|
+
* `register` by itself: an identifier with no account continues as a
|
|
35
|
+
* sign-up, and one with an account continues a sign-up as a sign-in.
|
|
36
|
+
* A page that titles the login itself follows this value rather than
|
|
37
|
+
* the step's `name`, which the flow definition chooses.
|
|
38
|
+
*/
|
|
39
|
+
purpose?: SubmitFlowStep200StepPurpose;
|
|
40
|
+
/**
|
|
41
|
+
* Localisation key that tells the user why the flow moved to this
|
|
42
|
+
* step's `purpose` without being asked: `notice.user_not_found` (an
|
|
43
|
+
* identifier with no account, now signing up),
|
|
44
|
+
* `notice.user_already_exists` (an identifier that has an account, now
|
|
45
|
+
* signing in) or `notice.sso_user_not_found` (a provider's sign-in
|
|
46
|
+
* with no account, now signing up). Present only on the step right
|
|
47
|
+
* after the move, not when the user chose it.
|
|
48
|
+
*/
|
|
49
|
+
notice?: string | null;
|
|
31
50
|
/**
|
|
32
51
|
* Error from a previous failed submission. Field-validation failures
|
|
33
52
|
* carry localisation text keys: `error.<field>_<rule>` per violation
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* What the flow does on this step. A login moves between `login` and
|
|
11
|
+
* `register` by itself: an identifier with no account continues as a
|
|
12
|
+
* sign-up, and one with an account continues a sign-up as a sign-in.
|
|
13
|
+
* A page that titles the login itself follows this value rather than
|
|
14
|
+
* the step's `name`, which the flow definition chooses.
|
|
15
|
+
*/
|
|
16
|
+
export type SubmitFlowStep200StepPurpose = typeof SubmitFlowStep200StepPurpose[keyof typeof SubmitFlowStep200StepPurpose];
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
export const SubmitFlowStep200StepPurpose = {
|
|
20
|
+
login: 'login',
|
|
21
|
+
register: 'register',
|
|
22
|
+
recovery: 'recovery',
|
|
23
|
+
profiling: 'profiling',
|
|
24
|
+
reauth: 'reauth',
|
|
25
|
+
link_account: 'link_account',
|
|
26
|
+
} as const;
|
|
@@ -11,6 +11,7 @@ import type { SubmitFlowStep400StepComplete } from './submitFlowStep400StepCompl
|
|
|
11
11
|
import type { SubmitFlowStep400StepFieldsItem } from './submitFlowStep400StepFieldsItem.ts';
|
|
12
12
|
import type { SubmitFlowStep400StepGates } from './submitFlowStep400StepGates.ts';
|
|
13
13
|
import type { SubmitFlowStep400StepIdentifier } from './submitFlowStep400StepIdentifier.ts';
|
|
14
|
+
import type { SubmitFlowStep400StepPurpose } from './submitFlowStep400StepPurpose.ts';
|
|
14
15
|
import type { SubmitFlowStep400StepSsoProvidersItem } from './submitFlowStep400StepSsoProvidersItem.ts';
|
|
15
16
|
import type { SubmitFlowStep400StepTexts } from './submitFlowStep400StepTexts.ts';
|
|
16
17
|
|
|
@@ -28,6 +29,24 @@ export type SubmitFlowStep400Step = {
|
|
|
28
29
|
* The backend never sends display text — only semantic keys.
|
|
29
30
|
*/
|
|
30
31
|
texts?: SubmitFlowStep400StepTexts;
|
|
32
|
+
/**
|
|
33
|
+
* What the flow does on this step. A login moves between `login` and
|
|
34
|
+
* `register` by itself: an identifier with no account continues as a
|
|
35
|
+
* sign-up, and one with an account continues a sign-up as a sign-in.
|
|
36
|
+
* A page that titles the login itself follows this value rather than
|
|
37
|
+
* the step's `name`, which the flow definition chooses.
|
|
38
|
+
*/
|
|
39
|
+
purpose?: SubmitFlowStep400StepPurpose;
|
|
40
|
+
/**
|
|
41
|
+
* Localisation key that tells the user why the flow moved to this
|
|
42
|
+
* step's `purpose` without being asked: `notice.user_not_found` (an
|
|
43
|
+
* identifier with no account, now signing up),
|
|
44
|
+
* `notice.user_already_exists` (an identifier that has an account, now
|
|
45
|
+
* signing in) or `notice.sso_user_not_found` (a provider's sign-in
|
|
46
|
+
* with no account, now signing up). Present only on the step right
|
|
47
|
+
* after the move, not when the user chose it.
|
|
48
|
+
*/
|
|
49
|
+
notice?: string | null;
|
|
31
50
|
/**
|
|
32
51
|
* Error from a previous failed submission. Field-validation failures
|
|
33
52
|
* carry localisation text keys: `error.<field>_<rule>` per violation
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* What the flow does on this step. A login moves between `login` and
|
|
11
|
+
* `register` by itself: an identifier with no account continues as a
|
|
12
|
+
* sign-up, and one with an account continues a sign-up as a sign-in.
|
|
13
|
+
* A page that titles the login itself follows this value rather than
|
|
14
|
+
* the step's `name`, which the flow definition chooses.
|
|
15
|
+
*/
|
|
16
|
+
export type SubmitFlowStep400StepPurpose = typeof SubmitFlowStep400StepPurpose[keyof typeof SubmitFlowStep400StepPurpose];
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
export const SubmitFlowStep400StepPurpose = {
|
|
20
|
+
login: 'login',
|
|
21
|
+
register: 'register',
|
|
22
|
+
recovery: 'recovery',
|
|
23
|
+
profiling: 'profiling',
|
|
24
|
+
reauth: 'reauth',
|
|
25
|
+
link_account: 'link_account',
|
|
26
|
+
} as const;
|
|
@@ -238,6 +238,42 @@ export type SubmitFlowStepDefault = {
|
|
|
238
238
|
message: string;
|
|
239
239
|
/** Additional error-specific context. */
|
|
240
240
|
details?: { [key: string]: unknown };
|
|
241
|
+
} & {
|
|
242
|
+
code: 'proj.origin_not_allowed';
|
|
243
|
+
} | {
|
|
244
|
+
/** Stable machine-readable error code. */
|
|
245
|
+
code: string;
|
|
246
|
+
/** Human-readable explanation of the error. */
|
|
247
|
+
message: string;
|
|
248
|
+
/** Additional error-specific context. */
|
|
249
|
+
details?: { [key: string]: unknown };
|
|
250
|
+
} & {
|
|
251
|
+
code: 'proj.preview_not_live';
|
|
252
|
+
} | {
|
|
253
|
+
/** Stable machine-readable error code. */
|
|
254
|
+
code: string;
|
|
255
|
+
/** Human-readable explanation of the error. */
|
|
256
|
+
message: string;
|
|
257
|
+
/** Additional error-specific context. */
|
|
258
|
+
details?: { [key: string]: unknown };
|
|
259
|
+
} & {
|
|
260
|
+
code: 'rel.not_found';
|
|
261
|
+
} | {
|
|
262
|
+
/** Stable machine-readable error code. */
|
|
263
|
+
code: string;
|
|
264
|
+
/** Human-readable explanation of the error. */
|
|
265
|
+
message: string;
|
|
266
|
+
/** Additional error-specific context. */
|
|
267
|
+
details?: { [key: string]: unknown };
|
|
268
|
+
} & {
|
|
269
|
+
code: 'rel.revoked';
|
|
270
|
+
} | {
|
|
271
|
+
/** Stable machine-readable error code. */
|
|
272
|
+
code: string;
|
|
273
|
+
/** Human-readable explanation of the error. */
|
|
274
|
+
message: string;
|
|
275
|
+
/** Additional error-specific context. */
|
|
276
|
+
details?: { [key: string]: unknown };
|
|
241
277
|
} & {
|
|
242
278
|
code: 'req.invalid';
|
|
243
279
|
} | {
|
|
@@ -49,6 +49,15 @@ export type UpdateTeamDefault = {
|
|
|
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
|
} | {
|
|
@@ -96,4 +105,13 @@ export type UpdateTeamDefault = {
|
|
|
96
105
|
details?: { [key: string]: unknown };
|
|
97
106
|
} & {
|
|
98
107
|
code: 'team.project_not_found';
|
|
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
|
};
|
|
@@ -94,6 +94,15 @@ export type UpdateVariablesDefault = {
|
|
|
94
94
|
message: string;
|
|
95
95
|
/** Additional error-specific context. */
|
|
96
96
|
details?: { [key: string]: unknown };
|
|
97
|
+
} & {
|
|
98
|
+
code: 'not_implemented';
|
|
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: 'proj.not_found';
|
|
99
108
|
} | {
|
|
@@ -121,6 +130,15 @@ export type UpdateVariablesDefault = {
|
|
|
121
130
|
message: string;
|
|
122
131
|
/** Additional error-specific context. */
|
|
123
132
|
details?: { [key: string]: unknown };
|
|
133
|
+
} & {
|
|
134
|
+
code: 'unavailable';
|
|
135
|
+
} | {
|
|
136
|
+
/** Stable machine-readable error code. */
|
|
137
|
+
code: string;
|
|
138
|
+
/** Human-readable explanation of the error. */
|
|
139
|
+
message: string;
|
|
140
|
+
/** Additional error-specific context. */
|
|
141
|
+
details?: { [key: string]: unknown };
|
|
124
142
|
} & {
|
|
125
143
|
code: 'var.limit_exceeded';
|
|
126
144
|
} | {
|
|
@@ -103,6 +103,15 @@ export type VerifyChallengeProofDefault = {
|
|
|
103
103
|
message: string;
|
|
104
104
|
/** Additional error-specific context. */
|
|
105
105
|
details?: { [key: string]: unknown };
|
|
106
|
+
} & {
|
|
107
|
+
code: 'not_implemented';
|
|
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 };
|
|
106
115
|
} & {
|
|
107
116
|
code: 'req.invalid';
|
|
108
117
|
} | {
|
|
@@ -112,6 +121,15 @@ export type VerifyChallengeProofDefault = {
|
|
|
112
121
|
message: string;
|
|
113
122
|
/** Additional error-specific context. */
|
|
114
123
|
details?: { [key: string]: unknown };
|
|
124
|
+
} & {
|
|
125
|
+
code: 'unavailable';
|
|
126
|
+
} | {
|
|
127
|
+
/** Stable machine-readable error code. */
|
|
128
|
+
code: string;
|
|
129
|
+
/** Human-readable explanation of the error. */
|
|
130
|
+
message: string;
|
|
131
|
+
/** Additional error-specific context. */
|
|
132
|
+
details?: { [key: string]: unknown };
|
|
115
133
|
} & {
|
|
116
134
|
code: 'user.already_exists';
|
|
117
135
|
} | {
|