@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
|
@@ -9,21 +9,22 @@ import * as zod from 'zod';
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Check whether the server is started
|
|
12
|
+
* Answers `ok` while the server process serves HTTP, and checks nothing behind it.
|
|
13
|
+
*
|
|
14
|
+
* Point a liveness probe here. It never checks the database, so an outage
|
|
15
|
+
* of the database does not restart every instance; `GET /readyz` takes an
|
|
16
|
+
* instance out of rotation instead.
|
|
20
17
|
* @summary Check server liveness
|
|
21
18
|
*/
|
|
22
19
|
export const GetLiveResponse = zod.string()
|
|
23
20
|
|
|
24
21
|
|
|
25
22
|
/**
|
|
26
|
-
*
|
|
23
|
+
* Answers whether the server can serve requests, which takes its database answering within a second.
|
|
24
|
+
*
|
|
25
|
+
* Point a readiness probe here, so that a server whose database does not
|
|
26
|
+
* answer gets no requests until it does. The check is one round trip to the
|
|
27
|
+
* database.
|
|
27
28
|
* @summary Check server readiness
|
|
28
29
|
*/
|
|
29
30
|
export const GetReadyResponse = zod.string()
|
|
@@ -687,14 +688,20 @@ export const GetMyPasswordStateResponse = zod.object({
|
|
|
687
688
|
|
|
688
689
|
|
|
689
690
|
/**
|
|
690
|
-
* The projects the signed-in user
|
|
691
|
-
* through a team they are a member of.
|
|
692
|
-
*
|
|
691
|
+
* The projects the signed-in user can act on: those they hold an active grant
|
|
692
|
+
* on, either directly or through a team they are a member of. For a platform
|
|
693
|
+
* operator (ADR 075) that is every project of the deployment. Ordered by
|
|
694
|
+
* project id and paged with an opaque cursor.
|
|
693
695
|
*
|
|
694
696
|
* This is not the same question as `queryProjects`, which answers with the one
|
|
695
697
|
* project the calling credential is bound to. Here the session is the caller
|
|
696
698
|
* and the grants are the answer, so the list spans projects.
|
|
697
699
|
*
|
|
700
|
+
* With `name_contains`, only the projects whose name contains that text are
|
|
701
|
+
* listed. The search runs on the server together with the grants, so it
|
|
702
|
+
* reaches every project the user can act on, however many there are, and
|
|
703
|
+
* pages like the full list.
|
|
704
|
+
*
|
|
698
705
|
* With `project_id`, the projects are listed only when the session belongs to
|
|
699
706
|
* that project. It names the project the session was signed in to, not one to
|
|
700
707
|
* list.
|
|
@@ -709,6 +716,7 @@ export const listMyProjectsQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$')
|
|
|
709
716
|
export const ListMyProjectsQueryParams = zod.strictObject({
|
|
710
717
|
"limit": zod.int().min(1).max(listMyProjectsQueryLimitMax).default(listMyProjectsQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
711
718
|
"page_token": zod.string().optional().describe('Token for fetching the next page of results.\nObtain this value from `next_page_token` in the previous response.\nOmit to start from the beginning.\nIts format is opaque and may change between releases.\n'),
|
|
719
|
+
"name_contains": zod.string().optional().describe('Narrows the list to the projects whose name contains this text,\nignoring case, as `contains` matches text in a query endpoint\'s\nfilter. Send the same value with every `page_token` the search\nreturns: a token continues the list it came from. An empty value\nlists every project, as leaving it out does.\n'),
|
|
712
720
|
"project_id": zod.string().regex(listMyProjectsQueryProjectIdRegExp).optional().describe('The project the caller signs its users in to. The cookie\'s session is used\nonly when it belongs to this project; a session of any other project answers\n`403` with `sess.project_mismatch`.\n\nA session belongs to one project, while a browser sends its cookie to every\napp on the same host. An app passes its own project, so that a session of\nanother project never reads or acts as one of its users, and signing out of\nthe app never ends it. The SDKs pass it when they read the session or sign\nout.\n\n`sess.project_mismatch` does not mean the session is invalid: it is live in\nits own project, so keep its cookie.\n')
|
|
713
721
|
})
|
|
714
722
|
|
|
@@ -732,7 +740,7 @@ export const ListMyProjectsResponse = zod.object({
|
|
|
732
740
|
"rounds": zod.int().optional().describe('pbkdf2 or sha2 iteration count.'),
|
|
733
741
|
"hash": zod.enum(['sha1', 'sha224', 'sha256', 'sha384', 'sha512']).optional().describe('The underlying hash. pbkdf2 takes any of the values listed here; sha2\ntakes only `sha256` and `sha512`, because it is the crypt(3) scheme,\nwhich has no other form. Any other combination is rejected with\n`proj.password_hash_invalid`.\n')
|
|
734
742
|
}).describe('The algorithm\'s cost parameters. Exactly the parameters the chosen\nalgorithm takes must be given: `time`, `memory` and `threads` for argon2i\nand argon2id; `cost` for bcrypt and scrypt; `rounds` and `hash` for\npbkdf2 and sha2. A parameter another algorithm takes is rejected rather\nthan ignored, and a missing one is not filled in from a default, because\ncost is the whole of a hashing method\'s strength.\n\nThe properties below are the union across algorithms, so which of them\napply, and for `hash` which of its values, depends on `algorithm`. They\nare not modelled per algorithm here because the code generator renders a\nconditional schema as an untyped object, which would cost every client\nthe types for the whole policy.\n\nValues outside the limits the deployment configured are rejected, as is\nan algorithm the deployment cannot verify: hashing with a method that\ncannot be read back would lock out every user whose password was written\nthat way.\n')
|
|
735
|
-
}).describe('The method a project\'s passwords are hashed with. A project that has not set\none hashes with the server default, which is argon2id unless the deployment\nconfigured otherwise.\n\nThis governs hashing only. Passwords already stored keep verifying under the\nmethod they were written with
|
|
743
|
+
}).describe('The method a project\'s passwords are hashed with. A project that has not set\none hashes with the server default, which is argon2id unless the deployment\nconfigured otherwise.\n\nThis governs hashing only. Passwords already stored keep verifying under the\nmethod they were written with. A policy change rewrites no stored password by\nitself: a password moves to the new method on its owner\'s next successful\nsign-in, or when its owner sets a new one.\n'),zod.null()]).optional().describe('The method this project\'s passwords are hashed with. Null when the project\nuses the server default.\n')
|
|
736
744
|
}).describe('The current state of a project.')),
|
|
737
745
|
"next_page_token": zod.union([zod.string(),zod.null()]).optional().describe('Token to pass as `page_token` in the next request to fetch the following page.\nPresent when the page was full. A following request may return an empty page\nand no token, which ends the listing.\n')
|
|
738
746
|
}).describe('Paginated list of projects, ordered by project id.')
|
|
@@ -852,7 +860,10 @@ export const ListMyTeamsResponse = zod.object({
|
|
|
852
860
|
* pattern with no live preview answers `403` with `proj.preview_not_live`;
|
|
853
861
|
* nothing deployed to the target answers `409` with `rel.not_deployed`; a
|
|
854
862
|
* revoked release answers `409` with `rel.revoked`. A request with no
|
|
855
|
-
* `Origin` passes the gate and still needs a deployment target.
|
|
863
|
+
* `Origin` passes the gate and still needs a deployment target. A loopback
|
|
864
|
+
* origin passes it too, and so does the server's own origin, from which its
|
|
865
|
+
* console previews a project's login; a step submitted from the server's
|
|
866
|
+
* own origin is still refused unless the project lists it.
|
|
856
867
|
*
|
|
857
868
|
* The response contains an `id` field — the flow handle. Use it as the path
|
|
858
869
|
* parameter for all subsequent `/flow/{id}/submit` calls.
|
|
@@ -1047,6 +1058,8 @@ export const CreateFlowResponse = zod.object({
|
|
|
1047
1058
|
"title_key": zod.string().optional().describe('Localization key for the step heading.'),
|
|
1048
1059
|
"description_key": zod.union([zod.string(),zod.null()]).optional().describe('Localization key for explanatory text: `<step>.description`, or\n`<step>.description.sso` when the step offers sign-in providers\n(`sso_providers`). A client without the `.sso` key falls back to\n`<step>.description`.\n')
|
|
1049
1060
|
}).optional().describe('Step-level localization keys. Resolved client-side via the `| t` LiquidJS filter.\nThe backend never sends display text — only semantic keys.\n'),
|
|
1061
|
+
"purpose": zod.enum(['login', 'register', 'recovery', 'profiling', 'reauth', 'link_account']).optional().describe('What the flow does on this step. A login moves between `login` and\n`register` by itself: an identifier with no account continues as a\nsign-up, and one with an account continues a sign-up as a sign-in.\nA page that titles the login itself follows this value rather than\nthe step\'s `name`, which the flow definition chooses.\n'),
|
|
1062
|
+
"notice": zod.union([zod.string(),zod.null()]).optional().describe('Localisation key that tells the user why the flow moved to this\nstep\'s `purpose` without being asked: `notice.user_not_found` (an\nidentifier with no account, now signing up),\n`notice.user_already_exists` (an identifier that has an account, now\nsigning in) or `notice.sso_user_not_found` (a provider\'s sign-in\nwith no account, now signing up). Present only on the step right\nafter the move, not when the user chose it.\n'),
|
|
1050
1063
|
"error": zod.union([zod.string(),zod.null()]).optional().describe('Error from a previous failed submission. Field-validation failures\ncarry localisation text keys: `error.<field>_<rule>` per violation\n(e.g. `error.email_required`; the `format` rule is spelled\n`error.<field>_invalid`), multiple violations joined with `"; "`.\nField names appear verbatim, so clients localise unknown keys via\nthe generic `error.field_<rule>` catalog entries. Other engine\nfailures carry `error.*` catalog keys as well (e.g.\n`error.invalid_credentials`, `error.passkey_invalid`). An outcome\nthe step has no transition for sends `error.user_not_found`,\n`error.user_already_exists`, `error.sso_user_not_found`, or\n`error.outcome_unhandled` for any other outcome.\n'),
|
|
1051
1064
|
"complete": zod.enum(['redirect', 'show']).optional().describe('Present only on terminal steps. Tells the frontend what to do:\n- redirect: navigate to redirect_uri immediately (OIDC/SAML done)\n- show: render the step as a success screen (e.g., registration confirmed)\n'),
|
|
1052
1065
|
"redirect_url": zod.url().optional().describe('URL to navigate to (e.g., SSO provider redirect).'),
|
|
@@ -1318,6 +1331,8 @@ export const GetFlowStepResponse = zod.object({
|
|
|
1318
1331
|
"title_key": zod.string().optional().describe('Localization key for the step heading.'),
|
|
1319
1332
|
"description_key": zod.union([zod.string(),zod.null()]).optional().describe('Localization key for explanatory text: `<step>.description`, or\n`<step>.description.sso` when the step offers sign-in providers\n(`sso_providers`). A client without the `.sso` key falls back to\n`<step>.description`.\n')
|
|
1320
1333
|
}).optional().describe('Step-level localization keys. Resolved client-side via the `| t` LiquidJS filter.\nThe backend never sends display text — only semantic keys.\n'),
|
|
1334
|
+
"purpose": zod.enum(['login', 'register', 'recovery', 'profiling', 'reauth', 'link_account']).optional().describe('What the flow does on this step. A login moves between `login` and\n`register` by itself: an identifier with no account continues as a\nsign-up, and one with an account continues a sign-up as a sign-in.\nA page that titles the login itself follows this value rather than\nthe step\'s `name`, which the flow definition chooses.\n'),
|
|
1335
|
+
"notice": zod.union([zod.string(),zod.null()]).optional().describe('Localisation key that tells the user why the flow moved to this\nstep\'s `purpose` without being asked: `notice.user_not_found` (an\nidentifier with no account, now signing up),\n`notice.user_already_exists` (an identifier that has an account, now\nsigning in) or `notice.sso_user_not_found` (a provider\'s sign-in\nwith no account, now signing up). Present only on the step right\nafter the move, not when the user chose it.\n'),
|
|
1321
1336
|
"error": zod.union([zod.string(),zod.null()]).optional().describe('Error from a previous failed submission. Field-validation failures\ncarry localisation text keys: `error.<field>_<rule>` per violation\n(e.g. `error.email_required`; the `format` rule is spelled\n`error.<field>_invalid`), multiple violations joined with `"; "`.\nField names appear verbatim, so clients localise unknown keys via\nthe generic `error.field_<rule>` catalog entries. Other engine\nfailures carry `error.*` catalog keys as well (e.g.\n`error.invalid_credentials`, `error.passkey_invalid`). An outcome\nthe step has no transition for sends `error.user_not_found`,\n`error.user_already_exists`, `error.sso_user_not_found`, or\n`error.outcome_unhandled` for any other outcome.\n'),
|
|
1322
1337
|
"complete": zod.enum(['redirect', 'show']).optional().describe('Present only on terminal steps. Tells the frontend what to do:\n- redirect: navigate to redirect_uri immediately (OIDC/SAML done)\n- show: render the step as a success screen (e.g., registration confirmed)\n'),
|
|
1323
1338
|
"redirect_url": zod.url().optional().describe('URL to navigate to (e.g., SSO provider redirect).'),
|
|
@@ -1657,6 +1672,8 @@ export const SubmitFlowStepResponse = zod.object({
|
|
|
1657
1672
|
"title_key": zod.string().optional().describe('Localization key for the step heading.'),
|
|
1658
1673
|
"description_key": zod.union([zod.string(),zod.null()]).optional().describe('Localization key for explanatory text: `<step>.description`, or\n`<step>.description.sso` when the step offers sign-in providers\n(`sso_providers`). A client without the `.sso` key falls back to\n`<step>.description`.\n')
|
|
1659
1674
|
}).optional().describe('Step-level localization keys. Resolved client-side via the `| t` LiquidJS filter.\nThe backend never sends display text — only semantic keys.\n'),
|
|
1675
|
+
"purpose": zod.enum(['login', 'register', 'recovery', 'profiling', 'reauth', 'link_account']).optional().describe('What the flow does on this step. A login moves between `login` and\n`register` by itself: an identifier with no account continues as a\nsign-up, and one with an account continues a sign-up as a sign-in.\nA page that titles the login itself follows this value rather than\nthe step\'s `name`, which the flow definition chooses.\n'),
|
|
1676
|
+
"notice": zod.union([zod.string(),zod.null()]).optional().describe('Localisation key that tells the user why the flow moved to this\nstep\'s `purpose` without being asked: `notice.user_not_found` (an\nidentifier with no account, now signing up),\n`notice.user_already_exists` (an identifier that has an account, now\nsigning in) or `notice.sso_user_not_found` (a provider\'s sign-in\nwith no account, now signing up). Present only on the step right\nafter the move, not when the user chose it.\n'),
|
|
1660
1677
|
"error": zod.union([zod.string(),zod.null()]).optional().describe('Error from a previous failed submission. Field-validation failures\ncarry localisation text keys: `error.<field>_<rule>` per violation\n(e.g. `error.email_required`; the `format` rule is spelled\n`error.<field>_invalid`), multiple violations joined with `"; "`.\nField names appear verbatim, so clients localise unknown keys via\nthe generic `error.field_<rule>` catalog entries. Other engine\nfailures carry `error.*` catalog keys as well (e.g.\n`error.invalid_credentials`, `error.passkey_invalid`). An outcome\nthe step has no transition for sends `error.user_not_found`,\n`error.user_already_exists`, `error.sso_user_not_found`, or\n`error.outcome_unhandled` for any other outcome.\n'),
|
|
1661
1678
|
"complete": zod.enum(['redirect', 'show']).optional().describe('Present only on terminal steps. Tells the frontend what to do:\n- redirect: navigate to redirect_uri immediately (OIDC/SAML done)\n- show: render the step as a success screen (e.g., registration confirmed)\n'),
|
|
1662
1679
|
"redirect_url": zod.url().optional().describe('URL to navigate to (e.g., SSO provider redirect).'),
|
|
@@ -1770,10 +1787,10 @@ export const SubmitFlowStepResponse = zod.object({
|
|
|
1770
1787
|
* also include session_id and that session's session_token to add factors to an existing session.
|
|
1771
1788
|
*
|
|
1772
1789
|
* The project comes from the project secret. A body `project_id` that disagrees
|
|
1773
|
-
* answers `403` with `proj.mismatch`.
|
|
1774
|
-
*
|
|
1775
|
-
*
|
|
1776
|
-
*
|
|
1790
|
+
* answers `403` with `proj.mismatch`. Sealed `deployment_id` / `release_id` are
|
|
1791
|
+
* filled only when create runs with a runtime resolution already on the
|
|
1792
|
+
* context (the flow create path); this HTTP entry point does not resolve
|
|
1793
|
+
* Origin or refuse a revoked release itself.
|
|
1777
1794
|
* @summary Create a new authentication attempt
|
|
1778
1795
|
*/
|
|
1779
1796
|
export const createAuthAttemptBodyProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -1854,9 +1871,6 @@ export const CreateAuthAttemptResponse = zod.object({
|
|
|
1854
1871
|
*
|
|
1855
1872
|
* Use this for polling during long-running factor verifications (e.g., waiting for
|
|
1856
1873
|
* a federated IdP callback or a device flow).
|
|
1857
|
-
*
|
|
1858
|
-
* Reuses the deployment sealed when the attempt was created. If that release
|
|
1859
|
-
* was revoked since, the response is `409` with `rel.revoked`.
|
|
1860
1874
|
* @summary Get authentication attempt state
|
|
1861
1875
|
*/
|
|
1862
1876
|
export const getAuthAttemptPathAttemptIdRegExp = new RegExp('^att_[a-zA-Z0-9_-]+$');
|
|
@@ -1932,9 +1946,6 @@ export const GetAuthAttemptResponse = zod.object({
|
|
|
1932
1946
|
* (password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details
|
|
1933
1947
|
* including method, metadata, and any UI hints. The client then verifies the proof
|
|
1934
1948
|
* by calling POST /auth_attempts/{attempt_id}/challenges/{challenge_id}/verify.
|
|
1935
|
-
*
|
|
1936
|
-
* Reuses the deployment sealed when the attempt was created. If that release
|
|
1937
|
-
* was revoked since, the response is `409` with `rel.revoked`.
|
|
1938
1949
|
* @summary Issue a factor challenge
|
|
1939
1950
|
*/
|
|
1940
1951
|
export const issueChallengePathAttemptIdRegExp = new RegExp('^att_[a-zA-Z0-9_-]+$');
|
|
@@ -1991,9 +2002,6 @@ export const IssueChallengeResponse = zod.object({
|
|
|
1991
2002
|
*
|
|
1992
2003
|
* On successful verification, the factor is written to the auth attempt.
|
|
1993
2004
|
* The attempt moves to the next pending challenge or completes if all required factors are verified.
|
|
1994
|
-
*
|
|
1995
|
-
* Reuses the deployment sealed when the attempt was created. If that release
|
|
1996
|
-
* was revoked since, the response is `409` with `rel.revoked`.
|
|
1997
2005
|
* @summary Verify a factor proof
|
|
1998
2006
|
*/
|
|
1999
2007
|
export const verifyChallengeProofPathAttemptIdRegExp = new RegExp('^att_[a-zA-Z0-9_-]+$');
|
|
@@ -2090,8 +2098,7 @@ export const VerifyChallengeProofResponse = zod.object({
|
|
|
2090
2098
|
* - Audience-bound (requires matching project key for exchange)
|
|
2091
2099
|
* - Idempotency-safe within a 5-minute window (see conventions)
|
|
2092
2100
|
*
|
|
2093
|
-
*
|
|
2094
|
-
* was revoked since, the response is `409` with `rel.revoked`.
|
|
2101
|
+
* Revoke refusal for a sealed release happens at handoff exchange, not here.
|
|
2095
2102
|
* @summary Complete authentication and create handoff token
|
|
2096
2103
|
*/
|
|
2097
2104
|
export const createHandoffPathAttemptIdRegExp = new RegExp('^att_[a-zA-Z0-9_-]+$');
|
|
@@ -2192,7 +2199,7 @@ export const QueryProjectsResponse = zod.object({
|
|
|
2192
2199
|
"rounds": zod.int().optional().describe('pbkdf2 or sha2 iteration count.'),
|
|
2193
2200
|
"hash": zod.enum(['sha1', 'sha224', 'sha256', 'sha384', 'sha512']).optional().describe('The underlying hash. pbkdf2 takes any of the values listed here; sha2\ntakes only `sha256` and `sha512`, because it is the crypt(3) scheme,\nwhich has no other form. Any other combination is rejected with\n`proj.password_hash_invalid`.\n')
|
|
2194
2201
|
}).describe('The algorithm\'s cost parameters. Exactly the parameters the chosen\nalgorithm takes must be given: `time`, `memory` and `threads` for argon2i\nand argon2id; `cost` for bcrypt and scrypt; `rounds` and `hash` for\npbkdf2 and sha2. A parameter another algorithm takes is rejected rather\nthan ignored, and a missing one is not filled in from a default, because\ncost is the whole of a hashing method\'s strength.\n\nThe properties below are the union across algorithms, so which of them\napply, and for `hash` which of its values, depends on `algorithm`. They\nare not modelled per algorithm here because the code generator renders a\nconditional schema as an untyped object, which would cost every client\nthe types for the whole policy.\n\nValues outside the limits the deployment configured are rejected, as is\nan algorithm the deployment cannot verify: hashing with a method that\ncannot be read back would lock out every user whose password was written\nthat way.\n')
|
|
2195
|
-
}).describe('The method a project\'s passwords are hashed with. A project that has not set\none hashes with the server default, which is argon2id unless the deployment\nconfigured otherwise.\n\nThis governs hashing only. Passwords already stored keep verifying under the\nmethod they were written with
|
|
2202
|
+
}).describe('The method a project\'s passwords are hashed with. A project that has not set\none hashes with the server default, which is argon2id unless the deployment\nconfigured otherwise.\n\nThis governs hashing only. Passwords already stored keep verifying under the\nmethod they were written with. A policy change rewrites no stored password by\nitself: a password moves to the new method on its owner\'s next successful\nsign-in, or when its owner sets a new one.\n'),zod.null()]).optional().describe('The method this project\'s passwords are hashed with. Null when the project\nuses the server default.\n')
|
|
2196
2203
|
}).describe('The current state of a project.')),
|
|
2197
2204
|
"next_page_token": zod.union([zod.string(),zod.null()]).optional().describe('Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results. The follow-up request must repeat the\nsame `sorting` that produced this token (omit only when both pages use the default).\n')
|
|
2198
2205
|
}).describe('Paginated list of projects.')
|
|
@@ -2209,6 +2216,9 @@ export const GetProjectParams = zod.object({
|
|
|
2209
2216
|
"project_id": zod.string().regex(getProjectPathProjectIdRegExp).describe('The unique identifier of the project.')
|
|
2210
2217
|
})
|
|
2211
2218
|
|
|
2219
|
+
export const getProjectResponseTwoOwningTeamIdOneRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
2220
|
+
|
|
2221
|
+
|
|
2212
2222
|
export const GetProjectResponse = zod.object({
|
|
2213
2223
|
"id": zod.string().describe('The unique identifier of the project.'),
|
|
2214
2224
|
"name": zod.string().describe('The name of the project.'),
|
|
@@ -2228,8 +2238,10 @@ export const GetProjectResponse = zod.object({
|
|
|
2228
2238
|
"rounds": zod.int().optional().describe('pbkdf2 or sha2 iteration count.'),
|
|
2229
2239
|
"hash": zod.enum(['sha1', 'sha224', 'sha256', 'sha384', 'sha512']).optional().describe('The underlying hash. pbkdf2 takes any of the values listed here; sha2\ntakes only `sha256` and `sha512`, because it is the crypt(3) scheme,\nwhich has no other form. Any other combination is rejected with\n`proj.password_hash_invalid`.\n')
|
|
2230
2240
|
}).describe('The algorithm\'s cost parameters. Exactly the parameters the chosen\nalgorithm takes must be given: `time`, `memory` and `threads` for argon2i\nand argon2id; `cost` for bcrypt and scrypt; `rounds` and `hash` for\npbkdf2 and sha2. A parameter another algorithm takes is rejected rather\nthan ignored, and a missing one is not filled in from a default, because\ncost is the whole of a hashing method\'s strength.\n\nThe properties below are the union across algorithms, so which of them\napply, and for `hash` which of its values, depends on `algorithm`. They\nare not modelled per algorithm here because the code generator renders a\nconditional schema as an untyped object, which would cost every client\nthe types for the whole policy.\n\nValues outside the limits the deployment configured are rejected, as is\nan algorithm the deployment cannot verify: hashing with a method that\ncannot be read back would lock out every user whose password was written\nthat way.\n')
|
|
2231
|
-
}).describe('The method a project\'s passwords are hashed with. A project that has not set\none hashes with the server default, which is argon2id unless the deployment\nconfigured otherwise.\n\nThis governs hashing only. Passwords already stored keep verifying under the\nmethod they were written with
|
|
2232
|
-
}).describe('The current state of a project.')
|
|
2241
|
+
}).describe('The method a project\'s passwords are hashed with. A project that has not set\none hashes with the server default, which is argon2id unless the deployment\nconfigured otherwise.\n\nThis governs hashing only. Passwords already stored keep verifying under the\nmethod they were written with. A policy change rewrites no stored password by\nitself: a password moves to the new method on its owner\'s next successful\nsign-in, or when its owner sets a new one.\n'),zod.null()]).optional().describe('The method this project\'s passwords are hashed with. Null when the project\nuses the server default.\n')
|
|
2242
|
+
}).describe('The current state of a project.').and(zod.object({
|
|
2243
|
+
"owning_team_id": zod.union([zod.string().regex(getProjectResponseTwoOwningTeamIdOneRegExp),zod.null()]).describe('The team that owns the project (ADR 054 §2), which is how its\nmembers administer it. Null when no team owns the project, for\nexample before it is claimed.\n\nThe team lives in the platform project, so its id is an opaque\nreference here. `GET /projects/{project_id}/admins` lists the\npeople who administer the project through it.\n')
|
|
2244
|
+
})).describe('The current state of a project, as returned for that one project. It adds\nthe owning team to the fields every project listing carries.\n')
|
|
2233
2245
|
|
|
2234
2246
|
|
|
2235
2247
|
/**
|
|
@@ -2255,9 +2267,12 @@ export const PatchProjectBody = zod.object({
|
|
|
2255
2267
|
"rounds": zod.int().optional().describe('pbkdf2 or sha2 iteration count.'),
|
|
2256
2268
|
"hash": zod.enum(['sha1', 'sha224', 'sha256', 'sha384', 'sha512']).optional().describe('The underlying hash. pbkdf2 takes any of the values listed here; sha2\ntakes only `sha256` and `sha512`, because it is the crypt(3) scheme,\nwhich has no other form. Any other combination is rejected with\n`proj.password_hash_invalid`.\n')
|
|
2257
2269
|
}).describe('The algorithm\'s cost parameters. Exactly the parameters the chosen\nalgorithm takes must be given: `time`, `memory` and `threads` for argon2i\nand argon2id; `cost` for bcrypt and scrypt; `rounds` and `hash` for\npbkdf2 and sha2. A parameter another algorithm takes is rejected rather\nthan ignored, and a missing one is not filled in from a default, because\ncost is the whole of a hashing method\'s strength.\n\nThe properties below are the union across algorithms, so which of them\napply, and for `hash` which of its values, depends on `algorithm`. They\nare not modelled per algorithm here because the code generator renders a\nconditional schema as an untyped object, which would cost every client\nthe types for the whole policy.\n\nValues outside the limits the deployment configured are rejected, as is\nan algorithm the deployment cannot verify: hashing with a method that\ncannot be read back would lock out every user whose password was written\nthat way.\n')
|
|
2258
|
-
}).describe('The method a project\'s passwords are hashed with. A project that has not set\none hashes with the server default, which is argon2id unless the deployment\nconfigured otherwise.\n\nThis governs hashing only. Passwords already stored keep verifying under the\nmethod they were written with
|
|
2270
|
+
}).describe('The method a project\'s passwords are hashed with. A project that has not set\none hashes with the server default, which is argon2id unless the deployment\nconfigured otherwise.\n\nThis governs hashing only. Passwords already stored keep verifying under the\nmethod they were written with. A policy change rewrites no stored password by\nitself: a password moves to the new method on its owner\'s next successful\nsign-in, or when its owner sets a new one.\n'),zod.null()]).optional().describe('The method this project\'s passwords are hashed with. Send null to drop the\nproject\'s own method and go back to the server default; leave the field\nout to keep whatever the project has.\n')
|
|
2259
2271
|
})
|
|
2260
2272
|
|
|
2273
|
+
export const patchProjectResponseTwoOwningTeamIdOneRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
2274
|
+
|
|
2275
|
+
|
|
2261
2276
|
export const PatchProjectResponse = zod.object({
|
|
2262
2277
|
"id": zod.string().describe('The unique identifier of the project.'),
|
|
2263
2278
|
"name": zod.string().describe('The name of the project.'),
|
|
@@ -2277,8 +2292,89 @@ export const PatchProjectResponse = zod.object({
|
|
|
2277
2292
|
"rounds": zod.int().optional().describe('pbkdf2 or sha2 iteration count.'),
|
|
2278
2293
|
"hash": zod.enum(['sha1', 'sha224', 'sha256', 'sha384', 'sha512']).optional().describe('The underlying hash. pbkdf2 takes any of the values listed here; sha2\ntakes only `sha256` and `sha512`, because it is the crypt(3) scheme,\nwhich has no other form. Any other combination is rejected with\n`proj.password_hash_invalid`.\n')
|
|
2279
2294
|
}).describe('The algorithm\'s cost parameters. Exactly the parameters the chosen\nalgorithm takes must be given: `time`, `memory` and `threads` for argon2i\nand argon2id; `cost` for bcrypt and scrypt; `rounds` and `hash` for\npbkdf2 and sha2. A parameter another algorithm takes is rejected rather\nthan ignored, and a missing one is not filled in from a default, because\ncost is the whole of a hashing method\'s strength.\n\nThe properties below are the union across algorithms, so which of them\napply, and for `hash` which of its values, depends on `algorithm`. They\nare not modelled per algorithm here because the code generator renders a\nconditional schema as an untyped object, which would cost every client\nthe types for the whole policy.\n\nValues outside the limits the deployment configured are rejected, as is\nan algorithm the deployment cannot verify: hashing with a method that\ncannot be read back would lock out every user whose password was written\nthat way.\n')
|
|
2280
|
-
}).describe('The method a project\'s passwords are hashed with. A project that has not set\none hashes with the server default, which is argon2id unless the deployment\nconfigured otherwise.\n\nThis governs hashing only. Passwords already stored keep verifying under the\nmethod they were written with
|
|
2281
|
-
}).describe('The current state of a project.')
|
|
2295
|
+
}).describe('The method a project\'s passwords are hashed with. A project that has not set\none hashes with the server default, which is argon2id unless the deployment\nconfigured otherwise.\n\nThis governs hashing only. Passwords already stored keep verifying under the\nmethod they were written with. A policy change rewrites no stored password by\nitself: a password moves to the new method on its owner\'s next successful\nsign-in, or when its owner sets a new one.\n'),zod.null()]).optional().describe('The method this project\'s passwords are hashed with. Null when the project\nuses the server default.\n')
|
|
2296
|
+
}).describe('The current state of a project.').and(zod.object({
|
|
2297
|
+
"owning_team_id": zod.union([zod.string().regex(patchProjectResponseTwoOwningTeamIdOneRegExp),zod.null()]).describe('The team that owns the project (ADR 054 §2), which is how its\nmembers administer it. Null when no team owns the project, for\nexample before it is claimed.\n\nThe team lives in the platform project, so its id is an opaque\nreference here. `GET /projects/{project_id}/admins` lists the\npeople who administer the project through it.\n')
|
|
2298
|
+
})).describe('The current state of a project, as returned for that one project. It adds\nthe owning team to the fields every project listing carries.\n')
|
|
2299
|
+
|
|
2300
|
+
|
|
2301
|
+
/**
|
|
2302
|
+
* Lists the people who can administer the project, and how each of them
|
|
2303
|
+
* gets that access. A person appears once, with one entry in `sources` per
|
|
2304
|
+
* way they hold it:
|
|
2305
|
+
*
|
|
2306
|
+
* - `owning_team`: an active member of the team that owns the project
|
|
2307
|
+
* (ADR 054 §2). Removing a grant does not remove this access; it ends
|
|
2308
|
+
* only when the person leaves the team or the project changes owner.
|
|
2309
|
+
* - `grant`: an unexpired `admin` grant on the project, either to the
|
|
2310
|
+
* person (`grant_id` only) or to a team they are an active member of
|
|
2311
|
+
* (`grant_id` and `team`). Revoking that grant removes this source.
|
|
2312
|
+
*
|
|
2313
|
+
* The list follows the authorization check: team membership is read from
|
|
2314
|
+
* the same membership projection the check expands, so a person who left a
|
|
2315
|
+
* team, or whose team or user was deactivated, is not listed through it.
|
|
2316
|
+
* Grants that expired or carry a lower role are left out. A person whose
|
|
2317
|
+
* only access is a `viewer` or `editor` grant is not an admin and is not
|
|
2318
|
+
* listed. Like the check, the list does not look at a person's user status
|
|
2319
|
+
* beyond that, so a direct grant to a suspended person is listed.
|
|
2320
|
+
*
|
|
2321
|
+
* A person whose access comes only through teams the caller is not a
|
|
2322
|
+
* member of is left out, and a team the caller is not in is named by
|
|
2323
|
+
* `team_id` only. The grant to such a team still shows in the project's
|
|
2324
|
+
* grants.
|
|
2325
|
+
*
|
|
2326
|
+
* Ordered by `user_id` and paginated with `page_token`.
|
|
2327
|
+
*
|
|
2328
|
+
* Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
2329
|
+
* session cookie (`nextgenSession`) that can read the project.
|
|
2330
|
+
* @summary List project admins
|
|
2331
|
+
*/
|
|
2332
|
+
export const listProjectAdminsPathProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
2333
|
+
|
|
2334
|
+
|
|
2335
|
+
export const ListProjectAdminsParams = zod.object({
|
|
2336
|
+
"project_id": zod.string().regex(listProjectAdminsPathProjectIdRegExp)
|
|
2337
|
+
})
|
|
2338
|
+
|
|
2339
|
+
export const listProjectAdminsQueryLimitDefault = 20;
|
|
2340
|
+
export const listProjectAdminsQueryLimitMax = 100;
|
|
2341
|
+
|
|
2342
|
+
|
|
2343
|
+
|
|
2344
|
+
export const ListProjectAdminsQueryParams = zod.strictObject({
|
|
2345
|
+
"limit": zod.int().min(1).max(listProjectAdminsQueryLimitMax).default(listProjectAdminsQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
2346
|
+
"page_token": zod.string().optional().describe('Token for fetching the next page of results.\nObtain this value from `next_page_token` in the previous response.\nOmit to start from the beginning.\nIts format is opaque and may change between releases.\n')
|
|
2347
|
+
})
|
|
2348
|
+
|
|
2349
|
+
export const listProjectAdminsResponseAdminsItemUserUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
2350
|
+
|
|
2351
|
+
|
|
2352
|
+
|
|
2353
|
+
export const ListProjectAdminsResponse = zod.object({
|
|
2354
|
+
"admins": zod.array(zod.object({
|
|
2355
|
+
"user": zod.object({
|
|
2356
|
+
"user_id": zod.string().regex(listProjectAdminsResponseAdminsItemUserUserIdRegExp),
|
|
2357
|
+
"identifier": zod.string().optional().describe('The current value of the schema\'s designated identifier\n(`x-identifier`). Absent when the schema designates no identifier or\nthe user carries no value for it.\n'),
|
|
2358
|
+
"identifier_property": zod.string().optional().describe('The schema property `identifier` came from, so clients can reach the\nproperty\'s schema for semantics (a mailto link, a field label)\ninstead of guessing from the value. Present exactly when\n`identifier` is.\n'),
|
|
2359
|
+
"display": zod.string().optional().describe('The `x-display` rendering — the designated properties\' values joined\nin list order. Purely presentational, with no source attribution.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n')
|
|
2360
|
+
}).describe('A resolved reference to a user (ADR 058 §3). Fields are role-named, not\nproperty-named, so responses can mix users from different schemas.\n`identifier` and `display` are resolved independently from the user\nschema\'s `x-identifier` and `x-display` designations, live at read time.\nClients render `display`, falling back to `identifier`, then `user_id`.\nMissing or deleted users degrade to `user_id` only.\n'),
|
|
2361
|
+
"sources": zod.array(zod.union([zod.object({
|
|
2362
|
+
"type": zod.enum(['owning_team']),
|
|
2363
|
+
"team": zod.object({
|
|
2364
|
+
"team_id": zod.string().describe('The referenced team\'s id (`team_<opaque>`). Always present.'),
|
|
2365
|
+
"name": zod.string().optional().describe('The team\'s name. Absent when the team can no longer be loaded, or where\nthe referencing endpoint leaves it out for a team the caller may not see.\n')
|
|
2366
|
+
}).describe('A resolved reference to a team. Carries the team\'s id and name so a grant\nlist is readable without embedding the full Team body. Id and display ride\n`project.read` (ADR 059 rule 8): a reference field carrying only the\ntarget\'s id and display strings needs no gate of its own. Missing or\ndeleted teams degrade to `team_id` only.\n')
|
|
2367
|
+
}).describe('Admin access as an active member of the team that owns the project.'),zod.object({
|
|
2368
|
+
"type": zod.enum(['grant']),
|
|
2369
|
+
"grant_id": zod.string().describe('The grant (`asgn_<opaque>`), as served by `GET /grants/{id}`.'),
|
|
2370
|
+
"team": zod.object({
|
|
2371
|
+
"team_id": zod.string().describe('The referenced team\'s id (`team_<opaque>`). Always present.'),
|
|
2372
|
+
"name": zod.string().optional().describe('The team\'s name. Absent when the team can no longer be loaded, or where\nthe referencing endpoint leaves it out for a team the caller may not see.\n')
|
|
2373
|
+
}).optional().describe('A resolved reference to a team. Carries the team\'s id and name so a grant\nlist is readable without embedding the full Team body. Id and display ride\n`project.read` (ADR 059 rule 8): a reference field carrying only the\ntarget\'s id and display strings needs no gate of its own. Missing or\ndeleted teams degrade to `team_id` only.\n')
|
|
2374
|
+
}).describe('Admin access through an `admin` grant on the project, to the person or to a\nteam they are an active member of.\n')]).describe('One way a person holds admin access to the project. Discriminate on `type`.\n\n- `owning_team`: the person is an active member of the owning team named by\n `team`. There is no `grant_id`: this access is not a grant and the grants\n API cannot revoke it.\n- `grant`: an `admin` grant on the project, named by `grant_id`. `team` is\n present when the grant is to a team the person is an active member of, and\n absent when it is to the person directly.\n')).min(1).describe('How the person holds admin access: owning-team access first, then\ngrants to teams, then grants to the person.\n')
|
|
2375
|
+
}).describe('One person who can administer the project, with every way they hold that\naccess.\n')),
|
|
2376
|
+
"next_page_token": zod.union([zod.string(),zod.null()]).optional().describe('Token to pass as `page_token` in the next request to fetch the following page.\nAbsent when there are no more results.\n')
|
|
2377
|
+
}).describe('A page of the people who administer a project.')
|
|
2282
2378
|
|
|
2283
2379
|
|
|
2284
2380
|
/**
|
|
@@ -4876,6 +4972,278 @@ export const GetIdpRevisionByIdResponse = zod.object({
|
|
|
4876
4972
|
}).describe('An identity provider connection.\n')
|
|
4877
4973
|
|
|
4878
4974
|
|
|
4975
|
+
/**
|
|
4976
|
+
* Lists the project's policies, one per operation, each as its newest
|
|
4977
|
+
* revision, ordered by `created_at` (first publish) and then `id`. Filter
|
|
4978
|
+
* by `operation` to read the policy of one operation; a project that never
|
|
4979
|
+
* published one gets an empty list.
|
|
4980
|
+
*
|
|
4981
|
+
* The lookup is scoped to the project in `project_id`.
|
|
4982
|
+
* @summary List policies
|
|
4983
|
+
*/
|
|
4984
|
+
export const listPoliciesQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
4985
|
+
export const listPoliciesQueryLimitDefault = 20;
|
|
4986
|
+
export const listPoliciesQueryLimitMax = 100;
|
|
4987
|
+
|
|
4988
|
+
|
|
4989
|
+
|
|
4990
|
+
export const ListPoliciesQueryParams = zod.strictObject({
|
|
4991
|
+
"project_id": zod.string().regex(listPoliciesQueryProjectIdRegExp).describe('The unique identifier of the project'),
|
|
4992
|
+
"limit": zod.int().min(1).max(listPoliciesQueryLimitMax).default(listPoliciesQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
4993
|
+
"page_token": zod.string().optional().describe('Token for fetching the next page of results.\nObtain this value from `next_page_token` in the previous response.\nOmit to start from the beginning.\nIts format is opaque and may change between releases.\n'),
|
|
4994
|
+
"operation": zod.enum(['auth.factor.password.set']).optional().describe('Only the policy of this operation.')
|
|
4995
|
+
})
|
|
4996
|
+
|
|
4997
|
+
export const listPoliciesResponsePoliciesItemOneIdRegExp = new RegExp('^pol_[a-zA-Z0-9_-]+$');
|
|
4998
|
+
export const listPoliciesResponsePoliciesItemOneRevisionIdRegExp = new RegExp('^polrev_[a-zA-Z0-9_-]+$');
|
|
4999
|
+
export const listPoliciesResponsePoliciesItemOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5000
|
+
export const listPoliciesResponsePoliciesItemOneConfigMinLengthMax = 64;
|
|
5001
|
+
|
|
5002
|
+
export const listPoliciesResponsePoliciesItemOneConfigMaxLengthMax = 64;
|
|
5003
|
+
|
|
5004
|
+
export const listPoliciesResponsePoliciesItemOneConfigHistoryDepthMax = 4;
|
|
5005
|
+
|
|
5006
|
+
|
|
5007
|
+
|
|
5008
|
+
export const ListPoliciesResponse = zod.object({
|
|
5009
|
+
"policies": zod.array(zod.object({
|
|
5010
|
+
"id": zod.string().regex(listPoliciesResponsePoliciesItemOneIdRegExp).describe('The identifier of a policy, shared by all of its revisions.'),
|
|
5011
|
+
"revision_id": zod.string().regex(listPoliciesResponsePoliciesItemOneRevisionIdRegExp).describe('The identifier of one immutable revision of a policy.'),
|
|
5012
|
+
"project_id": zod.string().regex(listPoliciesResponsePoliciesItemOneProjectIdRegExp),
|
|
5013
|
+
"operation": zod.enum(['auth.factor.password.set']).describe('The operation the policy guards.'),
|
|
5014
|
+
"config": zod.object({
|
|
5015
|
+
"min_length": zod.int().min(1).max(listPoliciesResponsePoliciesItemOneConfigMinLengthMax).optional().describe('The fewest Unicode code points a new password may have, counted after\nNFC normalization. At most `max_length` when both are set.\n'),
|
|
5016
|
+
"max_length": zod.int().min(1).max(listPoliciesResponsePoliciesItemOneConfigMaxLengthMax).optional().describe('The most Unicode code points a new password may have. A password above\n64 code points is refused whether or not this is set.\n'),
|
|
5017
|
+
"history_depth": zod.int().min(1).max(listPoliciesResponsePoliciesItemOneConfigHistoryDepthMax).optional().describe('How many of the user\'s passwords a new one may not repeat, the current\none included. Checked only when users set their own password.\n')
|
|
5018
|
+
}).describe('The settings of an `auth.factor.password.set` policy. Every setting is\noptional; a setting left out switches its rule off, and `{}` switches every\nrule off. There are no defaults. The bounds are technical limits, not\nrecommendations; the server\'s template checks the same bounds.\n'),
|
|
5019
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the operation\'s policy was first published.'),
|
|
5020
|
+
"updated_at": zod.iso.datetime({"offset":true}).describe('When this revision was published.')
|
|
5021
|
+
}).describe('One revision of a project\'s `auth.factor.password.set` policy (ADR 066).\n`id` is shared by every revision of the operation\'s policy; `revision_id`\nnames this revision.\n').describe('One revision of a project\'s policy for an operation (ADR 066), typed by\n`operation`. `id` is shared by every revision of the operation\'s policy;\n`revision_id` names this revision.\n')),
|
|
5022
|
+
"next_page_token": zod.union([zod.string(),zod.null()]).optional().describe('Token to pass as `page_token` in the next request to fetch the following\npage. Absent when there are no more results.\n')
|
|
5023
|
+
}).describe('Paginated list of the project\'s policies, one per operation, each as its\nnewest revision.\n')
|
|
5024
|
+
|
|
5025
|
+
|
|
5026
|
+
/**
|
|
5027
|
+
* Publishes the project's policy for an operation as a new immutable
|
|
5028
|
+
* revision, creating the policy on its first publish. The newest revision
|
|
5029
|
+
* applies to the next time the operation runs; nothing already stored is
|
|
5030
|
+
* re-evaluated, so a stricter password policy applies the next time a
|
|
5031
|
+
* password is set.
|
|
5032
|
+
*
|
|
5033
|
+
* The request is typed by `operation`: an unknown operation or setting, or
|
|
5034
|
+
* a value of the wrong type or outside its bounds, answers `req.invalid`
|
|
5035
|
+
* like any malformed request. The operation's template then checks the
|
|
5036
|
+
* config again, together with the rules that relate settings to each other
|
|
5037
|
+
* (a `min_length` above `max_length`), and answers `pol.invalid`. Its
|
|
5038
|
+
* `details.details.violations` lists everything that failed, settings
|
|
5039
|
+
* first, then rules: `{"setting": "min_length"}` for one setting, or
|
|
5040
|
+
* `{"config_rule": "min_length_not_above_max_length", "settings":
|
|
5041
|
+
* ["min_length", "max_length"]}` for a rule across settings, with the
|
|
5042
|
+
* settings it reads. A setting left out is off, and `{}` switches every
|
|
5043
|
+
* rule off; there are no defaults.
|
|
5044
|
+
* @summary Publish a policy
|
|
5045
|
+
*/
|
|
5046
|
+
export const publishPolicyQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5047
|
+
|
|
5048
|
+
|
|
5049
|
+
export const PublishPolicyQueryParams = zod.strictObject({
|
|
5050
|
+
"project_id": zod.string().regex(publishPolicyQueryProjectIdRegExp).describe('The unique identifier of the project')
|
|
5051
|
+
})
|
|
5052
|
+
|
|
5053
|
+
export const publishPolicyBodyOneConfigMinLengthMax = 64;
|
|
5054
|
+
|
|
5055
|
+
export const publishPolicyBodyOneConfigMaxLengthMax = 64;
|
|
5056
|
+
|
|
5057
|
+
export const publishPolicyBodyOneConfigHistoryDepthMax = 4;
|
|
5058
|
+
|
|
5059
|
+
|
|
5060
|
+
|
|
5061
|
+
export const PublishPolicyBody = zod.object({
|
|
5062
|
+
"operation": zod.enum(['auth.factor.password.set']).describe('The operation the policy guards.'),
|
|
5063
|
+
"config": zod.object({
|
|
5064
|
+
"min_length": zod.int().min(1).max(publishPolicyBodyOneConfigMinLengthMax).optional().describe('The fewest Unicode code points a new password may have, counted after\nNFC normalization. At most `max_length` when both are set.\n'),
|
|
5065
|
+
"max_length": zod.int().min(1).max(publishPolicyBodyOneConfigMaxLengthMax).optional().describe('The most Unicode code points a new password may have. A password above\n64 code points is refused whether or not this is set.\n'),
|
|
5066
|
+
"history_depth": zod.int().min(1).max(publishPolicyBodyOneConfigHistoryDepthMax).optional().describe('How many of the user\'s passwords a new one may not repeat, the current\none included. Checked only when users set their own password.\n')
|
|
5067
|
+
}).describe('The settings of an `auth.factor.password.set` policy. Every setting is\noptional; a setting left out switches its rule off, and `{}` switches every\nrule off. There are no defaults. The bounds are technical limits, not\nrecommendations; the server\'s template checks the same bounds.\n')
|
|
5068
|
+
}).describe('A publish of the password policy, checked before a password is set.').describe('One publish of the project\'s policy for an operation. `operation` selects\nthe operation\'s template, and `config` sets that template\'s settings; a\nsetting left out is off, and `{}` switches every rule off. The settings each\noperation accepts are listed in the policy catalog.\n')
|
|
5069
|
+
|
|
5070
|
+
export const publishPolicyResponseOneIdRegExp = new RegExp('^pol_[a-zA-Z0-9_-]+$');
|
|
5071
|
+
export const publishPolicyResponseOneRevisionIdRegExp = new RegExp('^polrev_[a-zA-Z0-9_-]+$');
|
|
5072
|
+
export const publishPolicyResponseOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5073
|
+
export const publishPolicyResponseOneConfigMinLengthMax = 64;
|
|
5074
|
+
|
|
5075
|
+
export const publishPolicyResponseOneConfigMaxLengthMax = 64;
|
|
5076
|
+
|
|
5077
|
+
export const publishPolicyResponseOneConfigHistoryDepthMax = 4;
|
|
5078
|
+
|
|
5079
|
+
|
|
5080
|
+
|
|
5081
|
+
export const PublishPolicyResponse = zod.object({
|
|
5082
|
+
"id": zod.string().regex(publishPolicyResponseOneIdRegExp).describe('The identifier of a policy, shared by all of its revisions.'),
|
|
5083
|
+
"revision_id": zod.string().regex(publishPolicyResponseOneRevisionIdRegExp).describe('The identifier of one immutable revision of a policy.'),
|
|
5084
|
+
"project_id": zod.string().regex(publishPolicyResponseOneProjectIdRegExp),
|
|
5085
|
+
"operation": zod.enum(['auth.factor.password.set']).describe('The operation the policy guards.'),
|
|
5086
|
+
"config": zod.object({
|
|
5087
|
+
"min_length": zod.int().min(1).max(publishPolicyResponseOneConfigMinLengthMax).optional().describe('The fewest Unicode code points a new password may have, counted after\nNFC normalization. At most `max_length` when both are set.\n'),
|
|
5088
|
+
"max_length": zod.int().min(1).max(publishPolicyResponseOneConfigMaxLengthMax).optional().describe('The most Unicode code points a new password may have. A password above\n64 code points is refused whether or not this is set.\n'),
|
|
5089
|
+
"history_depth": zod.int().min(1).max(publishPolicyResponseOneConfigHistoryDepthMax).optional().describe('How many of the user\'s passwords a new one may not repeat, the current\none included. Checked only when users set their own password.\n')
|
|
5090
|
+
}).describe('The settings of an `auth.factor.password.set` policy. Every setting is\noptional; a setting left out switches its rule off, and `{}` switches every\nrule off. There are no defaults. The bounds are technical limits, not\nrecommendations; the server\'s template checks the same bounds.\n'),
|
|
5091
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the operation\'s policy was first published.'),
|
|
5092
|
+
"updated_at": zod.iso.datetime({"offset":true}).describe('When this revision was published.')
|
|
5093
|
+
}).describe('One revision of a project\'s `auth.factor.password.set` policy (ADR 066).\n`id` is shared by every revision of the operation\'s policy; `revision_id`\nnames this revision.\n').describe('One revision of a project\'s policy for an operation (ADR 066), typed by\n`operation`. `id` is shared by every revision of the operation\'s policy;\n`revision_id` names this revision.\n')
|
|
5094
|
+
|
|
5095
|
+
|
|
5096
|
+
/**
|
|
5097
|
+
* Reads a policy as its newest revision, the one that applies the next time
|
|
5098
|
+
* its operation runs.
|
|
5099
|
+
*
|
|
5100
|
+
* The lookup is scoped to the project in `project_id`: a policy of another
|
|
5101
|
+
* project answers not found exactly as an unknown id does.
|
|
5102
|
+
* @summary Get a policy
|
|
5103
|
+
*/
|
|
5104
|
+
export const getPolicyPathPolicyIdRegExp = new RegExp('^pol_[a-zA-Z0-9_-]+$');
|
|
5105
|
+
|
|
5106
|
+
|
|
5107
|
+
export const GetPolicyParams = zod.object({
|
|
5108
|
+
"policy_id": zod.string().regex(getPolicyPathPolicyIdRegExp).describe('The identifier of the policy, shared by all of its revisions.')
|
|
5109
|
+
})
|
|
5110
|
+
|
|
5111
|
+
export const getPolicyQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5112
|
+
|
|
5113
|
+
|
|
5114
|
+
export const GetPolicyQueryParams = zod.strictObject({
|
|
5115
|
+
"project_id": zod.string().regex(getPolicyQueryProjectIdRegExp).describe('The unique identifier of the project')
|
|
5116
|
+
})
|
|
5117
|
+
|
|
5118
|
+
export const getPolicyResponseOneIdRegExp = new RegExp('^pol_[a-zA-Z0-9_-]+$');
|
|
5119
|
+
export const getPolicyResponseOneRevisionIdRegExp = new RegExp('^polrev_[a-zA-Z0-9_-]+$');
|
|
5120
|
+
export const getPolicyResponseOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5121
|
+
export const getPolicyResponseOneConfigMinLengthMax = 64;
|
|
5122
|
+
|
|
5123
|
+
export const getPolicyResponseOneConfigMaxLengthMax = 64;
|
|
5124
|
+
|
|
5125
|
+
export const getPolicyResponseOneConfigHistoryDepthMax = 4;
|
|
5126
|
+
|
|
5127
|
+
|
|
5128
|
+
|
|
5129
|
+
export const GetPolicyResponse = zod.object({
|
|
5130
|
+
"id": zod.string().regex(getPolicyResponseOneIdRegExp).describe('The identifier of a policy, shared by all of its revisions.'),
|
|
5131
|
+
"revision_id": zod.string().regex(getPolicyResponseOneRevisionIdRegExp).describe('The identifier of one immutable revision of a policy.'),
|
|
5132
|
+
"project_id": zod.string().regex(getPolicyResponseOneProjectIdRegExp),
|
|
5133
|
+
"operation": zod.enum(['auth.factor.password.set']).describe('The operation the policy guards.'),
|
|
5134
|
+
"config": zod.object({
|
|
5135
|
+
"min_length": zod.int().min(1).max(getPolicyResponseOneConfigMinLengthMax).optional().describe('The fewest Unicode code points a new password may have, counted after\nNFC normalization. At most `max_length` when both are set.\n'),
|
|
5136
|
+
"max_length": zod.int().min(1).max(getPolicyResponseOneConfigMaxLengthMax).optional().describe('The most Unicode code points a new password may have. A password above\n64 code points is refused whether or not this is set.\n'),
|
|
5137
|
+
"history_depth": zod.int().min(1).max(getPolicyResponseOneConfigHistoryDepthMax).optional().describe('How many of the user\'s passwords a new one may not repeat, the current\none included. Checked only when users set their own password.\n')
|
|
5138
|
+
}).describe('The settings of an `auth.factor.password.set` policy. Every setting is\noptional; a setting left out switches its rule off, and `{}` switches every\nrule off. There are no defaults. The bounds are technical limits, not\nrecommendations; the server\'s template checks the same bounds.\n'),
|
|
5139
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the operation\'s policy was first published.'),
|
|
5140
|
+
"updated_at": zod.iso.datetime({"offset":true}).describe('When this revision was published.')
|
|
5141
|
+
}).describe('One revision of a project\'s `auth.factor.password.set` policy (ADR 066).\n`id` is shared by every revision of the operation\'s policy; `revision_id`\nnames this revision.\n').describe('One revision of a project\'s policy for an operation (ADR 066), typed by\n`operation`. `id` is shared by every revision of the operation\'s policy;\n`revision_id` names this revision.\n')
|
|
5142
|
+
|
|
5143
|
+
|
|
5144
|
+
/**
|
|
5145
|
+
* Returns every revision of one policy, newest first, paginated with a
|
|
5146
|
+
* cursor. The order is fixed, so there is no `sorting`.
|
|
5147
|
+
*
|
|
5148
|
+
* The lookup is scoped to the project in `project_id`: a policy of another
|
|
5149
|
+
* project answers not found exactly as an unknown id does.
|
|
5150
|
+
* @summary List the revisions of a policy
|
|
5151
|
+
*/
|
|
5152
|
+
export const listPolicyRevisionsPathPolicyIdRegExp = new RegExp('^pol_[a-zA-Z0-9_-]+$');
|
|
5153
|
+
|
|
5154
|
+
|
|
5155
|
+
export const ListPolicyRevisionsParams = zod.object({
|
|
5156
|
+
"policy_id": zod.string().regex(listPolicyRevisionsPathPolicyIdRegExp).describe('The identifier of the policy, shared by all of its revisions.')
|
|
5157
|
+
})
|
|
5158
|
+
|
|
5159
|
+
export const listPolicyRevisionsQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5160
|
+
export const listPolicyRevisionsQueryLimitDefault = 20;
|
|
5161
|
+
export const listPolicyRevisionsQueryLimitMax = 100;
|
|
5162
|
+
|
|
5163
|
+
|
|
5164
|
+
|
|
5165
|
+
export const ListPolicyRevisionsQueryParams = zod.strictObject({
|
|
5166
|
+
"project_id": zod.string().regex(listPolicyRevisionsQueryProjectIdRegExp).describe('The unique identifier of the project'),
|
|
5167
|
+
"limit": zod.int().min(1).max(listPolicyRevisionsQueryLimitMax).default(listPolicyRevisionsQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
5168
|
+
"page_token": zod.string().optional().describe('Token for fetching the next page of results.\nObtain this value from `next_page_token` in the previous response.\nOmit to start from the beginning.\nIts format is opaque and may change between releases.\n')
|
|
5169
|
+
})
|
|
5170
|
+
|
|
5171
|
+
export const listPolicyRevisionsResponseRevisionsItemOneIdRegExp = new RegExp('^pol_[a-zA-Z0-9_-]+$');
|
|
5172
|
+
export const listPolicyRevisionsResponseRevisionsItemOneRevisionIdRegExp = new RegExp('^polrev_[a-zA-Z0-9_-]+$');
|
|
5173
|
+
export const listPolicyRevisionsResponseRevisionsItemOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5174
|
+
export const listPolicyRevisionsResponseRevisionsItemOneConfigMinLengthMax = 64;
|
|
5175
|
+
|
|
5176
|
+
export const listPolicyRevisionsResponseRevisionsItemOneConfigMaxLengthMax = 64;
|
|
5177
|
+
|
|
5178
|
+
export const listPolicyRevisionsResponseRevisionsItemOneConfigHistoryDepthMax = 4;
|
|
5179
|
+
|
|
5180
|
+
|
|
5181
|
+
|
|
5182
|
+
export const ListPolicyRevisionsResponse = zod.object({
|
|
5183
|
+
"revisions": zod.array(zod.object({
|
|
5184
|
+
"id": zod.string().regex(listPolicyRevisionsResponseRevisionsItemOneIdRegExp).describe('The identifier of a policy, shared by all of its revisions.'),
|
|
5185
|
+
"revision_id": zod.string().regex(listPolicyRevisionsResponseRevisionsItemOneRevisionIdRegExp).describe('The identifier of one immutable revision of a policy.'),
|
|
5186
|
+
"project_id": zod.string().regex(listPolicyRevisionsResponseRevisionsItemOneProjectIdRegExp),
|
|
5187
|
+
"operation": zod.enum(['auth.factor.password.set']).describe('The operation the policy guards.'),
|
|
5188
|
+
"config": zod.object({
|
|
5189
|
+
"min_length": zod.int().min(1).max(listPolicyRevisionsResponseRevisionsItemOneConfigMinLengthMax).optional().describe('The fewest Unicode code points a new password may have, counted after\nNFC normalization. At most `max_length` when both are set.\n'),
|
|
5190
|
+
"max_length": zod.int().min(1).max(listPolicyRevisionsResponseRevisionsItemOneConfigMaxLengthMax).optional().describe('The most Unicode code points a new password may have. A password above\n64 code points is refused whether or not this is set.\n'),
|
|
5191
|
+
"history_depth": zod.int().min(1).max(listPolicyRevisionsResponseRevisionsItemOneConfigHistoryDepthMax).optional().describe('How many of the user\'s passwords a new one may not repeat, the current\none included. Checked only when users set their own password.\n')
|
|
5192
|
+
}).describe('The settings of an `auth.factor.password.set` policy. Every setting is\noptional; a setting left out switches its rule off, and `{}` switches every\nrule off. There are no defaults. The bounds are technical limits, not\nrecommendations; the server\'s template checks the same bounds.\n'),
|
|
5193
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the operation\'s policy was first published.'),
|
|
5194
|
+
"updated_at": zod.iso.datetime({"offset":true}).describe('When this revision was published.')
|
|
5195
|
+
}).describe('One revision of a project\'s `auth.factor.password.set` policy (ADR 066).\n`id` is shared by every revision of the operation\'s policy; `revision_id`\nnames this revision.\n').describe('One revision of a project\'s policy for an operation (ADR 066), typed by\n`operation`. `id` is shared by every revision of the operation\'s policy;\n`revision_id` names this revision.\n')),
|
|
5196
|
+
"next_page_token": zod.union([zod.string(),zod.null()]).optional().describe('Token to pass as `page_token` in the next request to fetch the following\npage. Absent when there are no more results.\n')
|
|
5197
|
+
}).describe('Paginated list of the revisions of one policy, newest first.')
|
|
5198
|
+
|
|
5199
|
+
|
|
5200
|
+
/**
|
|
5201
|
+
* Reads one revision of a policy, newest or not.
|
|
5202
|
+
*
|
|
5203
|
+
* The lookup is scoped to the project in `project_id`: a revision of another
|
|
5204
|
+
* project answers not found exactly as an unknown id does.
|
|
5205
|
+
* @summary Get a policy revision
|
|
5206
|
+
*/
|
|
5207
|
+
export const getPolicyRevisionPathRevisionIdRegExp = new RegExp('^polrev_[a-zA-Z0-9_-]+$');
|
|
5208
|
+
|
|
5209
|
+
|
|
5210
|
+
export const GetPolicyRevisionParams = zod.object({
|
|
5211
|
+
"revision_id": zod.string().regex(getPolicyRevisionPathRevisionIdRegExp).describe('The identifier of the policy revision.')
|
|
5212
|
+
})
|
|
5213
|
+
|
|
5214
|
+
export const getPolicyRevisionQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5215
|
+
|
|
5216
|
+
|
|
5217
|
+
export const GetPolicyRevisionQueryParams = zod.strictObject({
|
|
5218
|
+
"project_id": zod.string().regex(getPolicyRevisionQueryProjectIdRegExp).describe('The unique identifier of the project')
|
|
5219
|
+
})
|
|
5220
|
+
|
|
5221
|
+
export const getPolicyRevisionResponseOneIdRegExp = new RegExp('^pol_[a-zA-Z0-9_-]+$');
|
|
5222
|
+
export const getPolicyRevisionResponseOneRevisionIdRegExp = new RegExp('^polrev_[a-zA-Z0-9_-]+$');
|
|
5223
|
+
export const getPolicyRevisionResponseOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5224
|
+
export const getPolicyRevisionResponseOneConfigMinLengthMax = 64;
|
|
5225
|
+
|
|
5226
|
+
export const getPolicyRevisionResponseOneConfigMaxLengthMax = 64;
|
|
5227
|
+
|
|
5228
|
+
export const getPolicyRevisionResponseOneConfigHistoryDepthMax = 4;
|
|
5229
|
+
|
|
5230
|
+
|
|
5231
|
+
|
|
5232
|
+
export const GetPolicyRevisionResponse = zod.object({
|
|
5233
|
+
"id": zod.string().regex(getPolicyRevisionResponseOneIdRegExp).describe('The identifier of a policy, shared by all of its revisions.'),
|
|
5234
|
+
"revision_id": zod.string().regex(getPolicyRevisionResponseOneRevisionIdRegExp).describe('The identifier of one immutable revision of a policy.'),
|
|
5235
|
+
"project_id": zod.string().regex(getPolicyRevisionResponseOneProjectIdRegExp),
|
|
5236
|
+
"operation": zod.enum(['auth.factor.password.set']).describe('The operation the policy guards.'),
|
|
5237
|
+
"config": zod.object({
|
|
5238
|
+
"min_length": zod.int().min(1).max(getPolicyRevisionResponseOneConfigMinLengthMax).optional().describe('The fewest Unicode code points a new password may have, counted after\nNFC normalization. At most `max_length` when both are set.\n'),
|
|
5239
|
+
"max_length": zod.int().min(1).max(getPolicyRevisionResponseOneConfigMaxLengthMax).optional().describe('The most Unicode code points a new password may have. A password above\n64 code points is refused whether or not this is set.\n'),
|
|
5240
|
+
"history_depth": zod.int().min(1).max(getPolicyRevisionResponseOneConfigHistoryDepthMax).optional().describe('How many of the user\'s passwords a new one may not repeat, the current\none included. Checked only when users set their own password.\n')
|
|
5241
|
+
}).describe('The settings of an `auth.factor.password.set` policy. Every setting is\noptional; a setting left out switches its rule off, and `{}` switches every\nrule off. There are no defaults. The bounds are technical limits, not\nrecommendations; the server\'s template checks the same bounds.\n'),
|
|
5242
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the operation\'s policy was first published.'),
|
|
5243
|
+
"updated_at": zod.iso.datetime({"offset":true}).describe('When this revision was published.')
|
|
5244
|
+
}).describe('One revision of a project\'s `auth.factor.password.set` policy (ADR 066).\n`id` is shared by every revision of the operation\'s policy; `revision_id`\nnames this revision.\n').describe('One revision of a project\'s policy for an operation (ADR 066), typed by\n`operation`. `id` is shared by every revision of the operation\'s policy;\n`revision_id` names this revision.\n')
|
|
5245
|
+
|
|
5246
|
+
|
|
4879
5247
|
/**
|
|
4880
5248
|
* Assembles a release from existing revisions, given as
|
|
4881
5249
|
* `(kind, revision_id)` pairs. To build one from files on disk, use
|
|
@@ -4917,7 +5285,7 @@ export const createReleaseBodyGitDirtyDefault = false;
|
|
|
4917
5285
|
|
|
4918
5286
|
export const CreateReleaseBody = zod.object({
|
|
4919
5287
|
"pointers": zod.array(zod.object({
|
|
4920
|
-
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
5288
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp', 'policy']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
4921
5289
|
"revision_id": zod.string().min(1).max(createReleaseBodyPointersItemRevisionIdMax).describe('The revision of that resource to pin. Must already exist in the project —\nthis endpoint pins revisions, it does not create them.\n\nDeliberately not constrained to a prefixed id: for `kind: schema` this is\nthe schema\'s `$id`, which is a URL whenever the document supplied one and\nonly a generated `sch_*` value otherwise.\n')
|
|
4922
5290
|
}).describe('One revision to pin. The handle is not supplied: it is the resource\'s own\nidentifying field, so the server reads it from the revision being pinned and\nrecords it on the release.\n')).min(1).max(createReleaseBodyPointersMax).describe('The revisions to pin. Must not be empty.\n\nA kind usually appears more than once: a project has several user schemas\nand several flow definitions, and each is pinned on its own. What it\ncannot do is\npin two revisions of the *same* resource — a second revision of the\n`human-user` schema is rejected rather than ordered, since a release\ndescribes one state of the project.\n\nThe upper bound counts *resources*, not revisions — one release pins at\nmost one revision of each — so it is a limit on how much a project\nconfigures, not on how often it changes. It keeps the server\'s\nper-pointer revision lookups bounded by the contract rather than by the\nrequest, and is set conservatively: raising it is a spec change, and\nwidening a bound breaks no client that was already inside it.\n'),
|
|
4923
5291
|
"message": zod.string().max(createReleaseBodyMessageMax).optional().describe('A short summary of what the release changes, analogous to a git commit\nmessage. Recorded on the release and shown when listing releases.\n'),
|
|
@@ -4959,8 +5327,8 @@ export const CreateReleaseResponse = zod.object({
|
|
|
4959
5327
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
4960
5328
|
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed and is refused on every path that would\nserve it, including to a build that pins its digest. No origin serves\na revoked release, since a release an origin still serves cannot be\nrevoked; earlier deployments that named it stay in the history.\n'),
|
|
4961
5329
|
"pointers": zod.array(zod.object({
|
|
4962
|
-
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
4963
|
-
"handle": zod.string().min(1).max(createReleaseResponsePointersItemHandleMax).describe('Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document\'s `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition\'s `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n'),
|
|
5330
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp', 'policy']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
5331
|
+
"handle": zod.string().min(1).max(createReleaseResponsePointersItemHandleMax).describe('Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document\'s `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition\'s `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\n- `policy` — the policy\'s `operation`, so a project\'s password policy\n is one resource however often it is revised\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n'),
|
|
4964
5332
|
"revision_id": zod.string().min(1).max(createReleaseResponsePointersItemRevisionIdMax).describe('The revision of that resource this release pins.\n\nDeliberately not constrained to a prefixed id: for `kind: schema` this is\nthe schema\'s `$id`, which is a URL whenever the document supplied one and\nonly a generated `sch_*` value otherwise.\n')
|
|
4965
5333
|
}).describe('One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n')).min(1).max(createReleaseResponsePointersMax).describe('The revisions this release pins, one entry per `(kind, handle)`. Never\nempty: a release must contain at least one resource, and never longer\nthan the set `POST /releases` accepts.\n')
|
|
4966
5334
|
}).describe('An immutable, project-scoped snapshot that pins one revision of every\nresource it includes.\n\nA release owns pointers and metadata, not content — it records *which*\nrevisions belong together. Callers that need the resource bytes resolve each\n`revision_id` through the per-kind read endpoints (`GET /schemas/{id}`,\n`GET /flow_definitions/{id}`, …).\n\nA release exists on its own and is not tied to an origin. Deploying it is a\nseparate call.\n\nTwo identifiers: `id` is the one paths and `release_id` fields take;\n`content_hash` is the digest of the content the release pins, printed by\nthe CLI and pinned by builds, and looked up through fields that name it.\n')
|
|
@@ -5040,7 +5408,9 @@ export const ListReleasesResponse = zod.object({
|
|
|
5040
5408
|
* allocates nothing, however long ago it was built. Otherwise every resource is compared against the
|
|
5041
5409
|
* project's newest revision of the same handle: unchanged content reuses
|
|
5042
5410
|
* that revision, changed content allocates a new one, and the request
|
|
5043
|
-
* answers `201` with the new release.
|
|
5411
|
+
* answers `201` with the new release. A policy whose config matches only an
|
|
5412
|
+
* older revision allocates a new one too, so a request that resolves no
|
|
5413
|
+
* release, which reads the newest revision, applies it as well. Metadata is excluded from the
|
|
5044
5414
|
* comparison, so the same content under a different `message` is the same
|
|
5045
5415
|
* release.
|
|
5046
5416
|
*
|
|
@@ -5054,8 +5424,8 @@ export const ListReleasesResponse = zod.object({
|
|
|
5054
5424
|
*
|
|
5055
5425
|
* Building writes revisions, so besides `release.write` it needs the write
|
|
5056
5426
|
* scope of every kind the bundle carries a resource of: `schema.write`,
|
|
5057
|
-
* `flow_definition.write`, `branding.write
|
|
5058
|
-
* per-kind create endpoints do. A missing scope answers `403` with `rel.permission_denied`,
|
|
5427
|
+
* `flow_definition.write`, `branding.write`, `idp.write` and
|
|
5428
|
+
* `policy.write`, as the per-kind create endpoints do. A missing scope answers `403` with `rel.permission_denied`,
|
|
5059
5429
|
* naming the kind. An empty kind needs no scope.
|
|
5060
5430
|
*
|
|
5061
5431
|
* Building a release does not deploy it. A release is not tied to an
|
|
@@ -5125,6 +5495,14 @@ export const buildReleaseBodyBundleIdpsItemOidcScopesDefault = [`openid`, `profi
|
|
|
5125
5495
|
export const buildReleaseBodyBundleIdpsItemOidcPkceEnabledDefault = true;
|
|
5126
5496
|
export const buildReleaseBodyBundleIdpsMax = 50;
|
|
5127
5497
|
|
|
5498
|
+
export const buildReleaseBodyBundlePoliciesItemOneConfigMinLengthMax = 64;
|
|
5499
|
+
|
|
5500
|
+
export const buildReleaseBodyBundlePoliciesItemOneConfigMaxLengthMax = 64;
|
|
5501
|
+
|
|
5502
|
+
export const buildReleaseBodyBundlePoliciesItemOneConfigHistoryDepthMax = 4;
|
|
5503
|
+
|
|
5504
|
+
export const buildReleaseBodyBundlePoliciesMax = 50;
|
|
5505
|
+
|
|
5128
5506
|
export const buildReleaseBodyBundleBrandingLayoutDefault = `centered`;
|
|
5129
5507
|
export const buildReleaseBodyBundleBrandingLiquidTemplateMax = 131072;
|
|
5130
5508
|
|
|
@@ -5358,6 +5736,14 @@ export const BuildReleaseBody = zod.object({
|
|
|
5358
5736
|
"static_authorize_parameters": zod.record(zod.string(), zod.string()).optional().describe('Extra provider-specific authorize parameters (for example `prompt`). Engine-owned protocol parameters are reserved and rejected by `propertyNames`: the engine composes them itself, and an override of `state` or `nonce` would silently defeat CSRF and token binding. `client_secret` and `client_assertion` are rejected as they could be appended to the public authorize URL.')
|
|
5359
5737
|
}).optional().describe('OIDC connection details. Endpoints come from the issuer\'s discovery document. A provider that exposes no .well-known document names them all instead: authorization_endpoint, token_endpoint, jwks_uri, and userinfo_endpoint unless id_token_mapping is set. Setting any endpoint without the others is rejected with idp.endpoints_partial.')
|
|
5360
5738
|
})).max(buildReleaseBodyBundleIdpsMax).optional().describe('IDP connections, one per `.zitadel/idps/<slug>.json`, each the\nconnection document `POST /idps` takes as `idp`. Secrets appear only\nas `${{ NAME }}` references to variables, never as values, so a bundle\ncarries no credentials.\n'),
|
|
5739
|
+
"policies": zod.array(zod.object({
|
|
5740
|
+
"operation": zod.enum(['auth.factor.password.set']).describe('The operation the policy guards.'),
|
|
5741
|
+
"config": zod.object({
|
|
5742
|
+
"min_length": zod.int().min(1).max(buildReleaseBodyBundlePoliciesItemOneConfigMinLengthMax).optional().describe('The fewest Unicode code points a new password may have, counted after\nNFC normalization. At most `max_length` when both are set.\n'),
|
|
5743
|
+
"max_length": zod.int().min(1).max(buildReleaseBodyBundlePoliciesItemOneConfigMaxLengthMax).optional().describe('The most Unicode code points a new password may have. A password above\n64 code points is refused whether or not this is set.\n'),
|
|
5744
|
+
"history_depth": zod.int().min(1).max(buildReleaseBodyBundlePoliciesItemOneConfigHistoryDepthMax).optional().describe('How many of the user\'s passwords a new one may not repeat, the current\none included. Checked only when users set their own password.\n')
|
|
5745
|
+
}).describe('The settings of an `auth.factor.password.set` policy. Every setting is\noptional; a setting left out switches its rule off, and `{}` switches every\nrule off. There are no defaults. The bounds are technical limits, not\nrecommendations; the server\'s template checks the same bounds.\n')
|
|
5746
|
+
}).describe('A publish of the password policy, checked before a password is set.').describe('One publish of the project\'s policy for an operation. `operation` selects\nthe operation\'s template, and `config` sets that template\'s settings; a\nsetting left out is off, and `{}` switches every rule off. The settings each\noperation accepts are listed in the policy catalog.\n')).max(buildReleaseBodyBundlePoliciesMax).optional().describe('Operation policies, one per `.zitadel/policies/<operation>.json`, each\nthe body `POST /policies` takes. The handle is `operation`: a project\nhas one policy per operation. An unknown setting or a value outside a\nsetting\'s bounds is refused while the request is decoded, with\n`req.invalid` and no `details.resources`; a config the operation\'s\ntemplate refuses beyond that, such as settings that contradict each\nother, gets a `rel.invalid` entry.\n\nA request served this release reads the policy revision it pins for\nthe operation, as it reads the user schema, branding and identity\nproviders, once the release pins a flow; a release that pins a flow\nand no policy for an operation means no policy for it.\n'),
|
|
5361
5747
|
"branding": zod.object({
|
|
5362
5748
|
"layout": zod.enum(['centered', 'split']).default(buildReleaseBodyBundleBrandingLayoutDefault).describe('Layout preset the revision declares, `centered` or `split`. It is\nvalidated on publish and handed to the template as `branding.layout`.\nThe bundled default template does not read it, so changing it alone\nchanges nothing on screen, and it is not an appearance control.\nNot a design catalog: the ejectable designs (`centered`, `minimal`)\nship as templates and both carry `centered`; switch designs with\n`zitadel branding eject --design <name>` instead of editing this field.\n`split` is carried by revisions published from the earlier split\ndesigns.\n'),
|
|
5363
5749
|
"liquid_template": zod.string().max(buildReleaseBodyBundleBrandingLiquidTemplateMax).optional().describe('The LiquidJS template for rendering this step. The orchestrator renders\nit into its Shadow DOM with the capability dictionaries as context.\n'),
|
|
@@ -5411,7 +5797,7 @@ export const BuildReleaseBody = zod.object({
|
|
|
5411
5797
|
"logo_scale": zod.number().min(buildReleaseBodyBundleBrandingShapeLogoScaleMin).max(buildReleaseBodyBundleBrandingShapeLogoScaleMax).optional().describe('Multiplier on the logo\'s maximum height, `1` when omitted. The image keeps its intrinsic\naspect ratio inside that cap; no width, height or ratio is stored.\n')
|
|
5412
5798
|
}).optional().describe('Corner rounding, spacing and logo size. Shared across theme sides.\n')
|
|
5413
5799
|
}).optional().describe('Branding configuration, used in two places with one shape: as the request\nbody of `POST /branding`, which publishes it as a new immutable revision,\nand as a read-only projection on flow responses, which carries the\nproject\'s latest revision. Locally it is the `.zitadel/branding/` descriptor\nthat `zitadel apply` publishes.\n\nEvery field is optional. An omitted key uses Zitadel\'s maintained default,\nso a revision carrying one colour is as valid as one carrying the whole\nobject.\n')
|
|
5414
|
-
}).describe('The resources of a project\'s `.zitadel/` directory as authored on disk,\ngrouped by kind.\n\nResources reference each other by handle: a flow definition\'s\n`user_schema` names a schema by its `objectType`, and a flow step\'s\n`sso_providers`, like a schema\'s `x-auth-methods.sso.providers`, name IDP\nconnections by `slug`. A reference resolves to\nthe resource with that handle in this bundle; failing that, to the\nproject\'s newest revision of it, which the release then pins as well. A\nhandle that neither holds refuses the release, naming the pointer and the\nhandle. A bundle that references only resources it carries builds the\nsame release on any project.\n\nA handle names one resource of its kind in a bundle. Two schemas with the\nsame `objectType`, two flow definitions with the same `name`, two IDP\nconnections with the same `slug`,
|
|
5800
|
+
}).describe('The resources of a project\'s `.zitadel/` directory as authored on disk,\ngrouped by kind.\n\nResources reference each other by handle: a flow definition\'s\n`user_schema` names a schema by its `objectType`, and a flow step\'s\n`sso_providers`, like a schema\'s `x-auth-methods.sso.providers`, name IDP\nconnections by `slug`. A reference resolves to\nthe resource with that handle in this bundle; failing that, to the\nproject\'s newest revision of it, which the release then pins as well. A\nhandle that neither holds refuses the release, naming the pointer and the\nhandle. A bundle that references only resources it carries builds the\nsame release on any project.\n\nA handle names one resource of its kind in a bundle. Two schemas with the\nsame `objectType`, two flow definitions with the same `name`, two IDP\nconnections with the same `slug`, two policies for the same `operation`,\nor a schema without an `objectType` refuse the release with `rel.invalid`,\nwith an entry for each such resource.\n\nEach kind is optional, and the arrays may be empty: a project that never\nejected its branding omits `branding`. The bundle carries at least one\nresource, and the release it builds pins at most 50, the most a release\npins: the resources the bundle carries plus those resolved from the\nproject. The server refuses anything outside that with `rel.invalid`.\nUnknown keys are refused. More kinds join as they become release kinds.\n'),
|
|
5415
5801
|
"message": zod.string().max(buildReleaseBodyMessageMax).optional().describe('A short summary of what the release changes, analogous to a git commit\nmessage. Recorded on the release and shown when listing releases.\n'),
|
|
5416
5802
|
"git_sha": zod.string().max(buildReleaseBodyGitShaMax).optional().describe('The source commit the caller was operating from.'),
|
|
5417
5803
|
"git_dirty": zod.boolean().default(buildReleaseBodyGitDirtyDefault).describe('Set when the working tree had uncommitted changes, so the release content\ndoes not correspond exactly to `git_sha`.\n')
|
|
@@ -5451,8 +5837,8 @@ export const BuildReleaseResponse = zod.object({
|
|
|
5451
5837
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
5452
5838
|
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed and is refused on every path that would\nserve it, including to a build that pins its digest. No origin serves\na revoked release, since a release an origin still serves cannot be\nrevoked; earlier deployments that named it stay in the history.\n'),
|
|
5453
5839
|
"pointers": zod.array(zod.object({
|
|
5454
|
-
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
5455
|
-
"handle": zod.string().min(1).max(buildReleaseResponsePointersItemHandleMax).describe('Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document\'s `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition\'s `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n'),
|
|
5840
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp', 'policy']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
5841
|
+
"handle": zod.string().min(1).max(buildReleaseResponsePointersItemHandleMax).describe('Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document\'s `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition\'s `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\n- `policy` — the policy\'s `operation`, so a project\'s password policy\n is one resource however often it is revised\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n'),
|
|
5456
5842
|
"revision_id": zod.string().min(1).max(buildReleaseResponsePointersItemRevisionIdMax).describe('The revision of that resource this release pins.\n\nDeliberately not constrained to a prefixed id: for `kind: schema` this is\nthe schema\'s `$id`, which is a URL whenever the document supplied one and\nonly a generated `sch_*` value otherwise.\n')
|
|
5457
5843
|
}).describe('One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n')).min(1).max(buildReleaseResponsePointersMax).describe('The revisions this release pins, one entry per `(kind, handle)`. Never\nempty: a release must contain at least one resource, and never longer\nthan the set `POST /releases` accepts.\n')
|
|
5458
5844
|
}).describe('An immutable, project-scoped snapshot that pins one revision of every\nresource it includes.\n\nA release owns pointers and metadata, not content — it records *which*\nrevisions belong together. Callers that need the resource bytes resolve each\n`revision_id` through the per-kind read endpoints (`GET /schemas/{id}`,\n`GET /flow_definitions/{id}`, …).\n\nA release exists on its own and is not tied to an origin. Deploying it is a\nseparate call.\n\nTwo identifiers: `id` is the one paths and `release_id` fields take;\n`content_hash` is the digest of the content the release pins, printed by\nthe CLI and pinned by builds, and looked up through fields that name it.\n')
|
|
@@ -5522,8 +5908,8 @@ export const GetReleaseByIdResponse = zod.object({
|
|
|
5522
5908
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
5523
5909
|
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed and is refused on every path that would\nserve it, including to a build that pins its digest. No origin serves\na revoked release, since a release an origin still serves cannot be\nrevoked; earlier deployments that named it stay in the history.\n'),
|
|
5524
5910
|
"pointers": zod.array(zod.object({
|
|
5525
|
-
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
5526
|
-
"handle": zod.string().min(1).max(getReleaseByIdResponsePointersItemHandleMax).describe('Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document\'s `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition\'s `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n'),
|
|
5911
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp', 'policy']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
5912
|
+
"handle": zod.string().min(1).max(getReleaseByIdResponsePointersItemHandleMax).describe('Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document\'s `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition\'s `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\n- `policy` — the policy\'s `operation`, so a project\'s password policy\n is one resource however often it is revised\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n'),
|
|
5527
5913
|
"revision_id": zod.string().min(1).max(getReleaseByIdResponsePointersItemRevisionIdMax).describe('The revision of that resource this release pins.\n\nDeliberately not constrained to a prefixed id: for `kind: schema` this is\nthe schema\'s `$id`, which is a URL whenever the document supplied one and\nonly a generated `sch_*` value otherwise.\n')
|
|
5528
5914
|
}).describe('One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n')).min(1).max(getReleaseByIdResponsePointersMax).describe('The revisions this release pins, one entry per `(kind, handle)`. Never\nempty: a release must contain at least one resource, and never longer\nthan the set `POST /releases` accepts.\n')
|
|
5529
5915
|
}).describe('An immutable, project-scoped snapshot that pins one revision of every\nresource it includes.\n\nA release owns pointers and metadata, not content — it records *which*\nrevisions belong together. Callers that need the resource bytes resolve each\n`revision_id` through the per-kind read endpoints (`GET /schemas/{id}`,\n`GET /flow_definitions/{id}`, …).\n\nA release exists on its own and is not tied to an origin. Deploying it is a\nseparate call.\n\nTwo identifiers: `id` is the one paths and `release_id` fields take;\n`content_hash` is the digest of the content the release pins, printed by\nthe CLI and pinned by builds, and looked up through fields that name it.\n')
|
|
@@ -5599,8 +5985,8 @@ export const RevokeReleaseResponse = zod.object({
|
|
|
5599
5985
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
5600
5986
|
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed and is refused on every path that would\nserve it, including to a build that pins its digest. No origin serves\na revoked release, since a release an origin still serves cannot be\nrevoked; earlier deployments that named it stay in the history.\n'),
|
|
5601
5987
|
"pointers": zod.array(zod.object({
|
|
5602
|
-
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
5603
|
-
"handle": zod.string().min(1).max(revokeReleaseResponsePointersItemHandleMax).describe('Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document\'s `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition\'s `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n'),
|
|
5988
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp', 'policy']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
5989
|
+
"handle": zod.string().min(1).max(revokeReleaseResponsePointersItemHandleMax).describe('Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document\'s `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition\'s `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\n- `policy` — the policy\'s `operation`, so a project\'s password policy\n is one resource however often it is revised\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n'),
|
|
5604
5990
|
"revision_id": zod.string().min(1).max(revokeReleaseResponsePointersItemRevisionIdMax).describe('The revision of that resource this release pins.\n\nDeliberately not constrained to a prefixed id: for `kind: schema` this is\nthe schema\'s `$id`, which is a URL whenever the document supplied one and\nonly a generated `sch_*` value otherwise.\n')
|
|
5605
5991
|
}).describe('One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n')).min(1).max(revokeReleaseResponsePointersMax).describe('The revisions this release pins, one entry per `(kind, handle)`. Never\nempty: a release must contain at least one resource, and never longer\nthan the set `POST /releases` accepts.\n')
|
|
5606
5992
|
}).describe('An immutable, project-scoped snapshot that pins one revision of every\nresource it includes.\n\nA release owns pointers and metadata, not content — it records *which*\nrevisions belong together. Callers that need the resource bytes resolve each\n`revision_id` through the per-kind read endpoints (`GET /schemas/{id}`,\n`GET /flow_definitions/{id}`, …).\n\nA release exists on its own and is not tied to an origin. Deploying it is a\nseparate call.\n\nTwo identifiers: `id` is the one paths and `release_id` fields take;\n`content_hash` is the digest of the content the release pins, printed by\nthe CLI and pinned by builds, and looked up through fields that name it.\n')
|
|
@@ -5688,7 +6074,7 @@ export const CreateGrantResponse = zod.object({
|
|
|
5688
6074
|
})).optional().describe('User bound by this grant. Always a user-ref (`user_id`, never `id`).\n`expand: ["principal"]` adds the User envelope fields `schema`,\n`attributes`, and `metadata` on this same object. Missing users degrade to\n`user_id` only, with or without expand (ADR 059 grant exception).\n'),
|
|
5689
6075
|
"team": zod.object({
|
|
5690
6076
|
"team_id": zod.string().describe('The referenced team\'s id (`team_<opaque>`). Always present.'),
|
|
5691
|
-
"name": zod.string().optional().describe('The team\'s name. Absent when the team can no longer be loaded
|
|
6077
|
+
"name": zod.string().optional().describe('The team\'s name. Absent when the team can no longer be loaded, or where\nthe referencing endpoint leaves it out for a team the caller may not see.\n')
|
|
5692
6078
|
}).describe('A resolved reference to a team. Carries the team\'s id and name so a grant\nlist is readable without embedding the full Team body. Id and display ride\n`project.read` (ADR 059 rule 8): a reference field carrying only the\ntarget\'s id and display strings needs no gate of its own. Missing or\ndeleted teams degrade to `team_id` only.\n').and(zod.object({
|
|
5693
6079
|
"status": zod.enum(['active', 'deactivated']).optional().describe('The lifecycle state of a team.\n\nactive: The team is available for use.\ndeactivated: The team is no longer active but is retained for historical and audit purposes.\n'),
|
|
5694
6080
|
"created_at": zod.iso.datetime({"offset":true}).optional().describe('When the team was created. Present only when expand loaded the team.\n'),
|
|
@@ -5778,7 +6164,7 @@ export const QueryGrantsResponse = zod.object({
|
|
|
5778
6164
|
})).optional().describe('User bound by this grant. Always a user-ref (`user_id`, never `id`).\n`expand: ["principal"]` adds the User envelope fields `schema`,\n`attributes`, and `metadata` on this same object. Missing users degrade to\n`user_id` only, with or without expand (ADR 059 grant exception).\n'),
|
|
5779
6165
|
"team": zod.object({
|
|
5780
6166
|
"team_id": zod.string().describe('The referenced team\'s id (`team_<opaque>`). Always present.'),
|
|
5781
|
-
"name": zod.string().optional().describe('The team\'s name. Absent when the team can no longer be loaded
|
|
6167
|
+
"name": zod.string().optional().describe('The team\'s name. Absent when the team can no longer be loaded, or where\nthe referencing endpoint leaves it out for a team the caller may not see.\n')
|
|
5782
6168
|
}).describe('A resolved reference to a team. Carries the team\'s id and name so a grant\nlist is readable without embedding the full Team body. Id and display ride\n`project.read` (ADR 059 rule 8): a reference field carrying only the\ntarget\'s id and display strings needs no gate of its own. Missing or\ndeleted teams degrade to `team_id` only.\n').and(zod.object({
|
|
5783
6169
|
"status": zod.enum(['active', 'deactivated']).optional().describe('The lifecycle state of a team.\n\nactive: The team is available for use.\ndeactivated: The team is no longer active but is retained for historical and audit purposes.\n'),
|
|
5784
6170
|
"created_at": zod.iso.datetime({"offset":true}).optional().describe('When the team was created. Present only when expand loaded the team.\n'),
|
|
@@ -5854,7 +6240,7 @@ export const GetGrantResponse = zod.object({
|
|
|
5854
6240
|
})).optional().describe('User bound by this grant. Always a user-ref (`user_id`, never `id`).\n`expand: ["principal"]` adds the User envelope fields `schema`,\n`attributes`, and `metadata` on this same object. Missing users degrade to\n`user_id` only, with or without expand (ADR 059 grant exception).\n'),
|
|
5855
6241
|
"team": zod.object({
|
|
5856
6242
|
"team_id": zod.string().describe('The referenced team\'s id (`team_<opaque>`). Always present.'),
|
|
5857
|
-
"name": zod.string().optional().describe('The team\'s name. Absent when the team can no longer be loaded
|
|
6243
|
+
"name": zod.string().optional().describe('The team\'s name. Absent when the team can no longer be loaded, or where\nthe referencing endpoint leaves it out for a team the caller may not see.\n')
|
|
5858
6244
|
}).describe('A resolved reference to a team. Carries the team\'s id and name so a grant\nlist is readable without embedding the full Team body. Id and display ride\n`project.read` (ADR 059 rule 8): a reference field carrying only the\ntarget\'s id and display strings needs no gate of its own. Missing or\ndeleted teams degrade to `team_id` only.\n').and(zod.object({
|
|
5859
6245
|
"status": zod.enum(['active', 'deactivated']).optional().describe('The lifecycle state of a team.\n\nactive: The team is available for use.\ndeactivated: The team is no longer active but is retained for historical and audit purposes.\n'),
|
|
5860
6246
|
"created_at": zod.iso.datetime({"offset":true}).optional().describe('When the team was created. Present only when expand loaded the team.\n'),
|
|
@@ -5957,20 +6343,20 @@ export const listEventsResponseDataItemTwofiveOneProjectIdRegExp = new RegExp('^
|
|
|
5957
6343
|
export const listEventsResponseDataItemTwosixOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5958
6344
|
export const listEventsResponseDataItemTwosevenOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5959
6345
|
export const listEventsResponseDataItemTwoeightOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5960
|
-
export const listEventsResponseDataItemTwoeightTwoPayloadContentHashMin = 71;
|
|
5961
|
-
export const listEventsResponseDataItemTwoeightTwoPayloadContentHashMax = 71;
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
export const listEventsResponseDataItemTwoeightTwoPayloadContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
5965
6346
|
export const listEventsResponseDataItemTwonineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5966
|
-
export const listEventsResponseDataItemTwonineTwoPayloadStatusMin = 100;
|
|
5967
|
-
export const listEventsResponseDataItemTwonineTwoPayloadStatusMax = 599;
|
|
5968
|
-
|
|
5969
|
-
export const listEventsResponseDataItemTwonineTwoPayloadDurationMsMin = 0;
|
|
5970
|
-
|
|
5971
6347
|
export const listEventsResponseDataItemThreezeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5972
6348
|
export const listEventsResponseDataItemThreeoneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6349
|
+
export const listEventsResponseDataItemThreeoneTwoPayloadContentHashMin = 71;
|
|
6350
|
+
export const listEventsResponseDataItemThreeoneTwoPayloadContentHashMax = 71;
|
|
6351
|
+
|
|
6352
|
+
|
|
6353
|
+
export const listEventsResponseDataItemThreeoneTwoPayloadContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
5973
6354
|
export const listEventsResponseDataItemThreetwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6355
|
+
export const listEventsResponseDataItemThreetwoTwoPayloadStatusMin = 100;
|
|
6356
|
+
export const listEventsResponseDataItemThreetwoTwoPayloadStatusMax = 599;
|
|
6357
|
+
|
|
6358
|
+
export const listEventsResponseDataItemThreetwoTwoPayloadDurationMsMin = 0;
|
|
6359
|
+
|
|
5974
6360
|
export const listEventsResponseDataItemThreethreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5975
6361
|
export const listEventsResponseDataItemThreefourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5976
6362
|
export const listEventsResponseDataItemThreefiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -5980,6 +6366,9 @@ export const listEventsResponseDataItemThreeeightOneProjectIdRegExp = new RegExp
|
|
|
5980
6366
|
export const listEventsResponseDataItemThreenineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5981
6367
|
export const listEventsResponseDataItemFourzeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5982
6368
|
export const listEventsResponseDataItemFouroneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6369
|
+
export const listEventsResponseDataItemFourtwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6370
|
+
export const listEventsResponseDataItemFourthreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6371
|
+
export const listEventsResponseDataItemFourfourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5983
6372
|
|
|
5984
6373
|
|
|
5985
6374
|
export const ListEventsResponse = zod.object({
|
|
@@ -6005,6 +6394,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6005
6394
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6006
6395
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6007
6396
|
"metadata": zod.object({
|
|
6397
|
+
"authorization": zod.object({
|
|
6398
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6399
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6400
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6008
6401
|
"client": zod.object({
|
|
6009
6402
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6010
6403
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6038,6 +6431,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6038
6431
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6039
6432
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6040
6433
|
"metadata": zod.object({
|
|
6434
|
+
"authorization": zod.object({
|
|
6435
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6436
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6437
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6041
6438
|
"client": zod.object({
|
|
6042
6439
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6043
6440
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6071,6 +6468,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6071
6468
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6072
6469
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6073
6470
|
"metadata": zod.object({
|
|
6471
|
+
"authorization": zod.object({
|
|
6472
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6473
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6474
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6074
6475
|
"client": zod.object({
|
|
6075
6476
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6076
6477
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6106,6 +6507,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6106
6507
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6107
6508
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6108
6509
|
"metadata": zod.object({
|
|
6510
|
+
"authorization": zod.object({
|
|
6511
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6512
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6513
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6109
6514
|
"client": zod.object({
|
|
6110
6515
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6111
6516
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6141,6 +6546,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6141
6546
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6142
6547
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6143
6548
|
"metadata": zod.object({
|
|
6549
|
+
"authorization": zod.object({
|
|
6550
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6551
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6552
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6144
6553
|
"client": zod.object({
|
|
6145
6554
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6146
6555
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6175,6 +6584,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6175
6584
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6176
6585
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6177
6586
|
"metadata": zod.object({
|
|
6587
|
+
"authorization": zod.object({
|
|
6588
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6589
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6590
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6178
6591
|
"client": zod.object({
|
|
6179
6592
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6180
6593
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6209,6 +6622,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6209
6622
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6210
6623
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6211
6624
|
"metadata": zod.object({
|
|
6625
|
+
"authorization": zod.object({
|
|
6626
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6627
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6628
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6212
6629
|
"client": zod.object({
|
|
6213
6630
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6214
6631
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6244,6 +6661,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6244
6661
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6245
6662
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6246
6663
|
"metadata": zod.object({
|
|
6664
|
+
"authorization": zod.object({
|
|
6665
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6666
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6667
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6247
6668
|
"client": zod.object({
|
|
6248
6669
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6249
6670
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6279,6 +6700,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6279
6700
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6280
6701
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6281
6702
|
"metadata": zod.object({
|
|
6703
|
+
"authorization": zod.object({
|
|
6704
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6705
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6706
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6282
6707
|
"client": zod.object({
|
|
6283
6708
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6284
6709
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6314,6 +6739,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6314
6739
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6315
6740
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6316
6741
|
"metadata": zod.object({
|
|
6742
|
+
"authorization": zod.object({
|
|
6743
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6744
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6745
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6317
6746
|
"client": zod.object({
|
|
6318
6747
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6319
6748
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6347,6 +6776,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6347
6776
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6348
6777
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6349
6778
|
"metadata": zod.object({
|
|
6779
|
+
"authorization": zod.object({
|
|
6780
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6781
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6782
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6350
6783
|
"client": zod.object({
|
|
6351
6784
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6352
6785
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6380,6 +6813,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6380
6813
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6381
6814
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6382
6815
|
"metadata": zod.object({
|
|
6816
|
+
"authorization": zod.object({
|
|
6817
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6818
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6819
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6383
6820
|
"client": zod.object({
|
|
6384
6821
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6385
6822
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6415,6 +6852,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6415
6852
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6416
6853
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6417
6854
|
"metadata": zod.object({
|
|
6855
|
+
"authorization": zod.object({
|
|
6856
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6857
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6858
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6418
6859
|
"client": zod.object({
|
|
6419
6860
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6420
6861
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6450,6 +6891,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6450
6891
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6451
6892
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6452
6893
|
"metadata": zod.object({
|
|
6894
|
+
"authorization": zod.object({
|
|
6895
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6896
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6897
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6453
6898
|
"client": zod.object({
|
|
6454
6899
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6455
6900
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6486,6 +6931,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6486
6931
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6487
6932
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6488
6933
|
"metadata": zod.object({
|
|
6934
|
+
"authorization": zod.object({
|
|
6935
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6936
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6937
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6489
6938
|
"client": zod.object({
|
|
6490
6939
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6491
6940
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6523,6 +6972,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6523
6972
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6524
6973
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6525
6974
|
"metadata": zod.object({
|
|
6975
|
+
"authorization": zod.object({
|
|
6976
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6977
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6978
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6526
6979
|
"client": zod.object({
|
|
6527
6980
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6528
6981
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6563,6 +7016,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6563
7016
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6564
7017
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6565
7018
|
"metadata": zod.object({
|
|
7019
|
+
"authorization": zod.object({
|
|
7020
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7021
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7022
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6566
7023
|
"client": zod.object({
|
|
6567
7024
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6568
7025
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6596,6 +7053,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6596
7053
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6597
7054
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6598
7055
|
"metadata": zod.object({
|
|
7056
|
+
"authorization": zod.object({
|
|
7057
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7058
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7059
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6599
7060
|
"client": zod.object({
|
|
6600
7061
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6601
7062
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6636,6 +7097,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6636
7097
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6637
7098
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6638
7099
|
"metadata": zod.object({
|
|
7100
|
+
"authorization": zod.object({
|
|
7101
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7102
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7103
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6639
7104
|
"client": zod.object({
|
|
6640
7105
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6641
7106
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6673,6 +7138,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6673
7138
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6674
7139
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6675
7140
|
"metadata": zod.object({
|
|
7141
|
+
"authorization": zod.object({
|
|
7142
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7143
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7144
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6676
7145
|
"client": zod.object({
|
|
6677
7146
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6678
7147
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6707,6 +7176,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6707
7176
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6708
7177
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6709
7178
|
"metadata": zod.object({
|
|
7179
|
+
"authorization": zod.object({
|
|
7180
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7181
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7182
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6710
7183
|
"client": zod.object({
|
|
6711
7184
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6712
7185
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6744,6 +7217,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6744
7217
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6745
7218
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6746
7219
|
"metadata": zod.object({
|
|
7220
|
+
"authorization": zod.object({
|
|
7221
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7222
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7223
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6747
7224
|
"client": zod.object({
|
|
6748
7225
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6749
7226
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6778,6 +7255,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6778
7255
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6779
7256
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6780
7257
|
"metadata": zod.object({
|
|
7258
|
+
"authorization": zod.object({
|
|
7259
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7260
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7261
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6781
7262
|
"client": zod.object({
|
|
6782
7263
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6783
7264
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6812,6 +7293,125 @@ export const ListEventsResponse = zod.object({
|
|
|
6812
7293
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6813
7294
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6814
7295
|
"metadata": zod.object({
|
|
7296
|
+
"authorization": zod.object({
|
|
7297
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7298
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7299
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7300
|
+
"client": zod.object({
|
|
7301
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7302
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
7303
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
7304
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
7305
|
+
}).optional().describe('Emit-time metadata, already redacted at write. Path A request.api may\nset client (ip, user_agent, origin) for SIEM join on request_id. Not a\nlive risk-evaluator input.\n')
|
|
7306
|
+
}).describe('Shared wide-event envelope (ADR 048 / ADR 049). Concrete events are\n`allOf` this schema plus a `const` `event_type` and a typed `payload`.\n').and(zod.object({
|
|
7307
|
+
"event_type": zod.literal("policy.created"),
|
|
7308
|
+
"payload": zod.object({
|
|
7309
|
+
"operation": zod.string().describe('The operation the policy guards, e.g. `auth.factor.password.set`.'),
|
|
7310
|
+
"revision_id": zod.string().describe('The revision the publish appended.'),
|
|
7311
|
+
"config": zod.record(zod.string(), zod.unknown()).describe('The instance\'s settings as published.')
|
|
7312
|
+
}).describe('Allowlisted fields for `policy.created` (the first publish of an\noperation\'s policy) and `policy.updated` (every later publish). The policy id\nis the event\'s `entity_id`. `config` holds the published settings, which are\nconfiguration values, never user data.\n')
|
|
7313
|
+
})).describe('Wide event with event_type=policy.created.\n'),zod.object({
|
|
7314
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7315
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwofiveOneProjectIdRegExp),
|
|
7316
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7317
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7318
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
7319
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
7320
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
7321
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
7322
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
7323
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
7324
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
7325
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
7326
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
7327
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
7328
|
+
"delegation_id": zod.string().optional(),
|
|
7329
|
+
"grantor": zod.string().optional(),
|
|
7330
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
7331
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
7332
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7333
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7334
|
+
"metadata": zod.object({
|
|
7335
|
+
"authorization": zod.object({
|
|
7336
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7337
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7338
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7339
|
+
"client": zod.object({
|
|
7340
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7341
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
7342
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
7343
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
7344
|
+
}).optional().describe('Emit-time metadata, already redacted at write. Path A request.api may\nset client (ip, user_agent, origin) for SIEM join on request_id. Not a\nlive risk-evaluator input.\n')
|
|
7345
|
+
}).describe('Shared wide-event envelope (ADR 048 / ADR 049). Concrete events are\n`allOf` this schema plus a `const` `event_type` and a typed `payload`.\n').and(zod.object({
|
|
7346
|
+
"event_type": zod.literal("policy.updated"),
|
|
7347
|
+
"payload": zod.object({
|
|
7348
|
+
"operation": zod.string().describe('The operation the policy guards, e.g. `auth.factor.password.set`.'),
|
|
7349
|
+
"revision_id": zod.string().describe('The revision the publish appended.'),
|
|
7350
|
+
"config": zod.record(zod.string(), zod.unknown()).describe('The instance\'s settings as published.')
|
|
7351
|
+
}).describe('Allowlisted fields for `policy.created` (the first publish of an\noperation\'s policy) and `policy.updated` (every later publish). The policy id\nis the event\'s `entity_id`. `config` holds the published settings, which are\nconfiguration values, never user data.\n')
|
|
7352
|
+
})).describe('Wide event with event_type=policy.updated.\n'),zod.object({
|
|
7353
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7354
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwosixOneProjectIdRegExp),
|
|
7355
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7356
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7357
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
7358
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
7359
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
7360
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
7361
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
7362
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
7363
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
7364
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
7365
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
7366
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
7367
|
+
"delegation_id": zod.string().optional(),
|
|
7368
|
+
"grantor": zod.string().optional(),
|
|
7369
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
7370
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
7371
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7372
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7373
|
+
"metadata": zod.object({
|
|
7374
|
+
"authorization": zod.object({
|
|
7375
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7376
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7377
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7378
|
+
"client": zod.object({
|
|
7379
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7380
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
7381
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
7382
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
7383
|
+
}).optional().describe('Emit-time metadata, already redacted at write. Path A request.api may\nset client (ip, user_agent, origin) for SIEM join on request_id. Not a\nlive risk-evaluator input.\n')
|
|
7384
|
+
}).describe('Shared wide-event envelope (ADR 048 / ADR 049). Concrete events are\n`allOf` this schema plus a `const` `event_type` and a typed `payload`.\n').and(zod.object({
|
|
7385
|
+
"event_type": zod.literal("preview.removed"),
|
|
7386
|
+
"payload": zod.object({
|
|
7387
|
+
|
|
7388
|
+
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
7389
|
+
})).describe('Wide event with event_type=preview.removed.\n'),zod.object({
|
|
7390
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7391
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwosevenOneProjectIdRegExp),
|
|
7392
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7393
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7394
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
7395
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
7396
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
7397
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
7398
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
7399
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
7400
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
7401
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
7402
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
7403
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
7404
|
+
"delegation_id": zod.string().optional(),
|
|
7405
|
+
"grantor": zod.string().optional(),
|
|
7406
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
7407
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
7408
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7409
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7410
|
+
"metadata": zod.object({
|
|
7411
|
+
"authorization": zod.object({
|
|
7412
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7413
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7414
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6815
7415
|
"client": zod.object({
|
|
6816
7416
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6817
7417
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6830,7 +7430,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6830
7430
|
}).describe('Shared allowlisted fields for `project.created` (full snapshot) and\n`project.updated` (delta: only changed fields present).\n')
|
|
6831
7431
|
})).describe('Wide event with event_type=project.created.\n'),zod.object({
|
|
6832
7432
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6833
|
-
"project_id": zod.string().regex(
|
|
7433
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwoeightOneProjectIdRegExp),
|
|
6834
7434
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6835
7435
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6836
7436
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6850,6 +7450,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6850
7450
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6851
7451
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6852
7452
|
"metadata": zod.object({
|
|
7453
|
+
"authorization": zod.object({
|
|
7454
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7455
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7456
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6853
7457
|
"client": zod.object({
|
|
6854
7458
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6855
7459
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6863,7 +7467,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6863
7467
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
6864
7468
|
})).describe('Wide event with event_type=project.deleted.\n'),zod.object({
|
|
6865
7469
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6866
|
-
"project_id": zod.string().regex(
|
|
7470
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwonineOneProjectIdRegExp),
|
|
6867
7471
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6868
7472
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6869
7473
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6883,6 +7487,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6883
7487
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6884
7488
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6885
7489
|
"metadata": zod.object({
|
|
7490
|
+
"authorization": zod.object({
|
|
7491
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7492
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7493
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6886
7494
|
"client": zod.object({
|
|
6887
7495
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6888
7496
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6901,7 +7509,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6901
7509
|
}).describe('Shared allowlisted fields for `project.created` (full snapshot) and\n`project.updated` (delta: only changed fields present).\n')
|
|
6902
7510
|
})).describe('Wide event with event_type=project.updated.\n'),zod.object({
|
|
6903
7511
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6904
|
-
"project_id": zod.string().regex(
|
|
7512
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreezeroOneProjectIdRegExp),
|
|
6905
7513
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6906
7514
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6907
7515
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6921,6 +7529,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6921
7529
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6922
7530
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6923
7531
|
"metadata": zod.object({
|
|
7532
|
+
"authorization": zod.object({
|
|
7533
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7534
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7535
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6924
7536
|
"client": zod.object({
|
|
6925
7537
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6926
7538
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6942,7 +7554,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6942
7554
|
}).describe('Allowlisted fields for `release.created`. The release id is already the\nevent\'s `entity_id`; the pinned set is repeated here so the audit stream\nanswers what a release contained without reading the release itself.\n')
|
|
6943
7555
|
})).describe('Wide event with event_type=release.created.\n'),zod.object({
|
|
6944
7556
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6945
|
-
"project_id": zod.string().regex(
|
|
7557
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreeoneOneProjectIdRegExp),
|
|
6946
7558
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6947
7559
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6948
7560
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6962,6 +7574,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6962
7574
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6963
7575
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6964
7576
|
"metadata": zod.object({
|
|
7577
|
+
"authorization": zod.object({
|
|
7578
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7579
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7580
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6965
7581
|
"client": zod.object({
|
|
6966
7582
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6967
7583
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6971,11 +7587,11 @@ export const ListEventsResponse = zod.object({
|
|
|
6971
7587
|
}).describe('Shared wide-event envelope (ADR 048 / ADR 049). Concrete events are\n`allOf` this schema plus a `const` `event_type` and a typed `payload`.\n').and(zod.object({
|
|
6972
7588
|
"event_type": zod.literal("release.revoked"),
|
|
6973
7589
|
"payload": zod.object({
|
|
6974
|
-
"content_hash": zod.string().min(
|
|
7590
|
+
"content_hash": zod.string().min(listEventsResponseDataItemThreeoneTwoPayloadContentHashMin).max(listEventsResponseDataItemThreeoneTwoPayloadContentHashMax).regex(listEventsResponseDataItemThreeoneTwoPayloadContentHashRegExp).describe('The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project\'s revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding` or `idp`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding, or the IDP connection\'s `slug`.\n A `schema-url` entry\'s content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{"version": 1, "resources": [{"kind": …, "handle": …, "content": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n')
|
|
6975
7591
|
}).describe('Allowlisted fields for `release.revoked`. The release id is already the\nevent\'s `entity_id`; the digest is repeated so the audit stream names the\nrelease the way the CLI prints it and builds pin it.\n')
|
|
6976
7592
|
})).describe('Wide event with event_type=release.revoked.\n'),zod.object({
|
|
6977
7593
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6978
|
-
"project_id": zod.string().regex(
|
|
7594
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreetwoOneProjectIdRegExp),
|
|
6979
7595
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6980
7596
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6981
7597
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6995,6 +7611,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6995
7611
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6996
7612
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6997
7613
|
"metadata": zod.object({
|
|
7614
|
+
"authorization": zod.object({
|
|
7615
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7616
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7617
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
6998
7618
|
"client": zod.object({
|
|
6999
7619
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7000
7620
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7007,12 +7627,12 @@ export const ListEventsResponse = zod.object({
|
|
|
7007
7627
|
"operation_id": zod.string(),
|
|
7008
7628
|
"method": zod.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS']).describe('HTTP method.'),
|
|
7009
7629
|
"route_template": zod.string(),
|
|
7010
|
-
"status": zod.int().min(
|
|
7011
|
-
"duration_ms": zod.int().min(
|
|
7630
|
+
"status": zod.int().min(listEventsResponseDataItemThreetwoTwoPayloadStatusMin).max(listEventsResponseDataItemThreetwoTwoPayloadStatusMax),
|
|
7631
|
+
"duration_ms": zod.int().min(listEventsResponseDataItemThreetwoTwoPayloadDurationMsMin)
|
|
7012
7632
|
}).describe('Payload for `request.api` events.')
|
|
7013
7633
|
})).describe('Wide event with event_type=request.api.\n'),zod.object({
|
|
7014
7634
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7015
|
-
"project_id": zod.string().regex(
|
|
7635
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreethreeOneProjectIdRegExp),
|
|
7016
7636
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7017
7637
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7018
7638
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7032,6 +7652,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7032
7652
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7033
7653
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7034
7654
|
"metadata": zod.object({
|
|
7655
|
+
"authorization": zod.object({
|
|
7656
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7657
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7658
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7035
7659
|
"client": zod.object({
|
|
7036
7660
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7037
7661
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7046,7 +7670,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7046
7670
|
}).describe('Allowlisted fields for `schema.created`. The schema document itself is\nomitted — it is customer-authored and unbounded, and the event\'s `entity_id`\nalready identifies which schema was created.\n')
|
|
7047
7671
|
})).describe('Wide event with event_type=schema.created.\n'),zod.object({
|
|
7048
7672
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7049
|
-
"project_id": zod.string().regex(
|
|
7673
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreefourOneProjectIdRegExp),
|
|
7050
7674
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7051
7675
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7052
7676
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7066,6 +7690,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7066
7690
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7067
7691
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7068
7692
|
"metadata": zod.object({
|
|
7693
|
+
"authorization": zod.object({
|
|
7694
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7695
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7696
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7069
7697
|
"client": zod.object({
|
|
7070
7698
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7071
7699
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7079,7 +7707,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7079
7707
|
}).describe('Payload for `session.deleted` events.')
|
|
7080
7708
|
})).describe('Wide event with event_type=session.deleted.\n'),zod.object({
|
|
7081
7709
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7082
|
-
"project_id": zod.string().regex(
|
|
7710
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreefiveOneProjectIdRegExp),
|
|
7083
7711
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7084
7712
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7085
7713
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7099,6 +7727,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7099
7727
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7100
7728
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7101
7729
|
"metadata": zod.object({
|
|
7730
|
+
"authorization": zod.object({
|
|
7731
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7732
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7733
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7102
7734
|
"client": zod.object({
|
|
7103
7735
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7104
7736
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7112,7 +7744,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7112
7744
|
}).describe('Payload for `session.established` events.')
|
|
7113
7745
|
})).describe('Wide event with event_type=session.established.\n'),zod.object({
|
|
7114
7746
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7115
|
-
"project_id": zod.string().regex(
|
|
7747
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreesixOneProjectIdRegExp),
|
|
7116
7748
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7117
7749
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7118
7750
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7132,6 +7764,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7132
7764
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7133
7765
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7134
7766
|
"metadata": zod.object({
|
|
7767
|
+
"authorization": zod.object({
|
|
7768
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7769
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7770
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7135
7771
|
"client": zod.object({
|
|
7136
7772
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7137
7773
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7145,7 +7781,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7145
7781
|
}).describe('Shared allowlisted fields for `team.created` (snapshot) and\n`team.updated` (delta: only changed fields present).\n')
|
|
7146
7782
|
})).describe('Wide event with event_type=team.created.\n'),zod.object({
|
|
7147
7783
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7148
|
-
"project_id": zod.string().regex(
|
|
7784
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreesevenOneProjectIdRegExp),
|
|
7149
7785
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7150
7786
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7151
7787
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7165,6 +7801,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7165
7801
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7166
7802
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7167
7803
|
"metadata": zod.object({
|
|
7804
|
+
"authorization": zod.object({
|
|
7805
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7806
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7807
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7168
7808
|
"client": zod.object({
|
|
7169
7809
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7170
7810
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7178,7 +7818,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7178
7818
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
7179
7819
|
})).describe('Wide event with event_type=team.deactivated.\n'),zod.object({
|
|
7180
7820
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7181
|
-
"project_id": zod.string().regex(
|
|
7821
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreeeightOneProjectIdRegExp),
|
|
7182
7822
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7183
7823
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7184
7824
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7198,6 +7838,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7198
7838
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7199
7839
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7200
7840
|
"metadata": zod.object({
|
|
7841
|
+
"authorization": zod.object({
|
|
7842
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7843
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7844
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7201
7845
|
"client": zod.object({
|
|
7202
7846
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7203
7847
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7211,7 +7855,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7211
7855
|
}).describe('Shared allowlisted fields for `team.created` (snapshot) and\n`team.updated` (delta: only changed fields present).\n')
|
|
7212
7856
|
})).describe('Wide event with event_type=team.updated.\n'),zod.object({
|
|
7213
7857
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7214
|
-
"project_id": zod.string().regex(
|
|
7858
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreenineOneProjectIdRegExp),
|
|
7215
7859
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7216
7860
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7217
7861
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7231,6 +7875,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7231
7875
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7232
7876
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7233
7877
|
"metadata": zod.object({
|
|
7878
|
+
"authorization": zod.object({
|
|
7879
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7880
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7881
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7234
7882
|
"client": zod.object({
|
|
7235
7883
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7236
7884
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7244,7 +7892,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7244
7892
|
}).describe('Payload for `user.create.failed` events.')
|
|
7245
7893
|
})).describe('Wide event with event_type=user.create.failed.\n'),zod.object({
|
|
7246
7894
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7247
|
-
"project_id": zod.string().regex(
|
|
7895
|
+
"project_id": zod.string().regex(listEventsResponseDataItemFourzeroOneProjectIdRegExp),
|
|
7248
7896
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7249
7897
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7250
7898
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7264,6 +7912,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7264
7912
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7265
7913
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7266
7914
|
"metadata": zod.object({
|
|
7915
|
+
"authorization": zod.object({
|
|
7916
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7917
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7918
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7267
7919
|
"client": zod.object({
|
|
7268
7920
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7269
7921
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7279,7 +7931,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7279
7931
|
}).describe('Payload for `user.created`. Identity is `entity_id`; attribute values\nappear only for schema fields marked `x-audit`.\n')
|
|
7280
7932
|
})).describe('Wide event with event_type=user.created.\n'),zod.object({
|
|
7281
7933
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7282
|
-
"project_id": zod.string().regex(
|
|
7934
|
+
"project_id": zod.string().regex(listEventsResponseDataItemFouroneOneProjectIdRegExp),
|
|
7283
7935
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7284
7936
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7285
7937
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7299,6 +7951,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7299
7951
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7300
7952
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7301
7953
|
"metadata": zod.object({
|
|
7954
|
+
"authorization": zod.object({
|
|
7955
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7956
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7957
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7302
7958
|
"client": zod.object({
|
|
7303
7959
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7304
7960
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7312,7 +7968,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7312
7968
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
7313
7969
|
})).describe('Wide event with event_type=user.deleted.\n'),zod.object({
|
|
7314
7970
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7315
|
-
"project_id": zod.string().regex(
|
|
7971
|
+
"project_id": zod.string().regex(listEventsResponseDataItemFourtwoOneProjectIdRegExp),
|
|
7316
7972
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7317
7973
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7318
7974
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7332,6 +7988,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7332
7988
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7333
7989
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7334
7990
|
"metadata": zod.object({
|
|
7991
|
+
"authorization": zod.object({
|
|
7992
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7993
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7994
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7335
7995
|
"client": zod.object({
|
|
7336
7996
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7337
7997
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7346,7 +8006,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7346
8006
|
}).describe('Payload for `user.updated`. Same attribute rules as create: keys touched\nplus `x-audit` values only.\n')
|
|
7347
8007
|
})).describe('Wide event with event_type=user.updated.\n'),zod.object({
|
|
7348
8008
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7349
|
-
"project_id": zod.string().regex(
|
|
8009
|
+
"project_id": zod.string().regex(listEventsResponseDataItemFourthreeOneProjectIdRegExp),
|
|
7350
8010
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7351
8011
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7352
8012
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7366,6 +8026,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7366
8026
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7367
8027
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7368
8028
|
"metadata": zod.object({
|
|
8029
|
+
"authorization": zod.object({
|
|
8030
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8031
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8032
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7369
8033
|
"client": zod.object({
|
|
7370
8034
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7371
8035
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7379,7 +8043,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7379
8043
|
}).describe('Payload for `variable.removed` events, one row removed.')
|
|
7380
8044
|
})).describe('Wide event with event_type=variable.removed.\n'),zod.object({
|
|
7381
8045
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7382
|
-
"project_id": zod.string().regex(
|
|
8046
|
+
"project_id": zod.string().regex(listEventsResponseDataItemFourfourOneProjectIdRegExp),
|
|
7383
8047
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7384
8048
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7385
8049
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7399,6 +8063,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7399
8063
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7400
8064
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7401
8065
|
"metadata": zod.object({
|
|
8066
|
+
"authorization": zod.object({
|
|
8067
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8068
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8069
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7402
8070
|
"client": zod.object({
|
|
7403
8071
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7404
8072
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7463,20 +8131,20 @@ export const getEventResponseTwofiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9
|
|
|
7463
8131
|
export const getEventResponseTwosixOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7464
8132
|
export const getEventResponseTwosevenOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7465
8133
|
export const getEventResponseTwoeightOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7466
|
-
export const getEventResponseTwoeightTwoPayloadContentHashMin = 71;
|
|
7467
|
-
export const getEventResponseTwoeightTwoPayloadContentHashMax = 71;
|
|
7468
|
-
|
|
7469
|
-
|
|
7470
|
-
export const getEventResponseTwoeightTwoPayloadContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
7471
8134
|
export const getEventResponseTwonineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7472
|
-
export const getEventResponseTwonineTwoPayloadStatusMin = 100;
|
|
7473
|
-
export const getEventResponseTwonineTwoPayloadStatusMax = 599;
|
|
7474
|
-
|
|
7475
|
-
export const getEventResponseTwonineTwoPayloadDurationMsMin = 0;
|
|
7476
|
-
|
|
7477
8135
|
export const getEventResponseThreezeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7478
8136
|
export const getEventResponseThreeoneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
8137
|
+
export const getEventResponseThreeoneTwoPayloadContentHashMin = 71;
|
|
8138
|
+
export const getEventResponseThreeoneTwoPayloadContentHashMax = 71;
|
|
8139
|
+
|
|
8140
|
+
|
|
8141
|
+
export const getEventResponseThreeoneTwoPayloadContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
7479
8142
|
export const getEventResponseThreetwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
8143
|
+
export const getEventResponseThreetwoTwoPayloadStatusMin = 100;
|
|
8144
|
+
export const getEventResponseThreetwoTwoPayloadStatusMax = 599;
|
|
8145
|
+
|
|
8146
|
+
export const getEventResponseThreetwoTwoPayloadDurationMsMin = 0;
|
|
8147
|
+
|
|
7480
8148
|
export const getEventResponseThreethreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7481
8149
|
export const getEventResponseThreefourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7482
8150
|
export const getEventResponseThreefiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -7486,6 +8154,9 @@ export const getEventResponseThreeeightOneProjectIdRegExp = new RegExp('^[a-zA-Z
|
|
|
7486
8154
|
export const getEventResponseThreenineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7487
8155
|
export const getEventResponseFourzeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7488
8156
|
export const getEventResponseFouroneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
8157
|
+
export const getEventResponseFourtwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
8158
|
+
export const getEventResponseFourthreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
8159
|
+
export const getEventResponseFourfourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7489
8160
|
|
|
7490
8161
|
|
|
7491
8162
|
export const GetEventResponse = zod.union([zod.object({
|
|
@@ -7510,6 +8181,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7510
8181
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7511
8182
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7512
8183
|
"metadata": zod.object({
|
|
8184
|
+
"authorization": zod.object({
|
|
8185
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8186
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8187
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7513
8188
|
"client": zod.object({
|
|
7514
8189
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7515
8190
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7543,6 +8218,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7543
8218
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7544
8219
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7545
8220
|
"metadata": zod.object({
|
|
8221
|
+
"authorization": zod.object({
|
|
8222
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8223
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8224
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7546
8225
|
"client": zod.object({
|
|
7547
8226
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7548
8227
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7576,6 +8255,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7576
8255
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7577
8256
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7578
8257
|
"metadata": zod.object({
|
|
8258
|
+
"authorization": zod.object({
|
|
8259
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8260
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8261
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7579
8262
|
"client": zod.object({
|
|
7580
8263
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7581
8264
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7611,6 +8294,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7611
8294
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7612
8295
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7613
8296
|
"metadata": zod.object({
|
|
8297
|
+
"authorization": zod.object({
|
|
8298
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8299
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8300
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7614
8301
|
"client": zod.object({
|
|
7615
8302
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7616
8303
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7646,6 +8333,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7646
8333
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7647
8334
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7648
8335
|
"metadata": zod.object({
|
|
8336
|
+
"authorization": zod.object({
|
|
8337
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8338
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8339
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7649
8340
|
"client": zod.object({
|
|
7650
8341
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7651
8342
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7680,6 +8371,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7680
8371
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7681
8372
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7682
8373
|
"metadata": zod.object({
|
|
8374
|
+
"authorization": zod.object({
|
|
8375
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8376
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8377
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7683
8378
|
"client": zod.object({
|
|
7684
8379
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7685
8380
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7714,6 +8409,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7714
8409
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7715
8410
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7716
8411
|
"metadata": zod.object({
|
|
8412
|
+
"authorization": zod.object({
|
|
8413
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8414
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8415
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7717
8416
|
"client": zod.object({
|
|
7718
8417
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7719
8418
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7749,6 +8448,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7749
8448
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7750
8449
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7751
8450
|
"metadata": zod.object({
|
|
8451
|
+
"authorization": zod.object({
|
|
8452
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8453
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8454
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7752
8455
|
"client": zod.object({
|
|
7753
8456
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7754
8457
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7784,6 +8487,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7784
8487
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7785
8488
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7786
8489
|
"metadata": zod.object({
|
|
8490
|
+
"authorization": zod.object({
|
|
8491
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8492
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8493
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7787
8494
|
"client": zod.object({
|
|
7788
8495
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7789
8496
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7819,6 +8526,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7819
8526
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7820
8527
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7821
8528
|
"metadata": zod.object({
|
|
8529
|
+
"authorization": zod.object({
|
|
8530
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8531
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8532
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7822
8533
|
"client": zod.object({
|
|
7823
8534
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7824
8535
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7852,6 +8563,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7852
8563
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7853
8564
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7854
8565
|
"metadata": zod.object({
|
|
8566
|
+
"authorization": zod.object({
|
|
8567
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8568
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8569
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7855
8570
|
"client": zod.object({
|
|
7856
8571
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7857
8572
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7885,6 +8600,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7885
8600
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7886
8601
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7887
8602
|
"metadata": zod.object({
|
|
8603
|
+
"authorization": zod.object({
|
|
8604
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8605
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8606
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7888
8607
|
"client": zod.object({
|
|
7889
8608
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7890
8609
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7920,6 +8639,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7920
8639
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7921
8640
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7922
8641
|
"metadata": zod.object({
|
|
8642
|
+
"authorization": zod.object({
|
|
8643
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8644
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8645
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7923
8646
|
"client": zod.object({
|
|
7924
8647
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7925
8648
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7955,6 +8678,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7955
8678
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7956
8679
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7957
8680
|
"metadata": zod.object({
|
|
8681
|
+
"authorization": zod.object({
|
|
8682
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8683
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8684
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7958
8685
|
"client": zod.object({
|
|
7959
8686
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7960
8687
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7991,6 +8718,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7991
8718
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7992
8719
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7993
8720
|
"metadata": zod.object({
|
|
8721
|
+
"authorization": zod.object({
|
|
8722
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8723
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8724
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
7994
8725
|
"client": zod.object({
|
|
7995
8726
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7996
8727
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8028,6 +8759,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8028
8759
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8029
8760
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8030
8761
|
"metadata": zod.object({
|
|
8762
|
+
"authorization": zod.object({
|
|
8763
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8764
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8765
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8031
8766
|
"client": zod.object({
|
|
8032
8767
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8033
8768
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8068,6 +8803,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8068
8803
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8069
8804
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8070
8805
|
"metadata": zod.object({
|
|
8806
|
+
"authorization": zod.object({
|
|
8807
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8808
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8809
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8071
8810
|
"client": zod.object({
|
|
8072
8811
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8073
8812
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8101,6 +8840,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8101
8840
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8102
8841
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8103
8842
|
"metadata": zod.object({
|
|
8843
|
+
"authorization": zod.object({
|
|
8844
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8845
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8846
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8104
8847
|
"client": zod.object({
|
|
8105
8848
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8106
8849
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8141,6 +8884,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8141
8884
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8142
8885
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8143
8886
|
"metadata": zod.object({
|
|
8887
|
+
"authorization": zod.object({
|
|
8888
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8889
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8890
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8144
8891
|
"client": zod.object({
|
|
8145
8892
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8146
8893
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8178,6 +8925,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8178
8925
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8179
8926
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8180
8927
|
"metadata": zod.object({
|
|
8928
|
+
"authorization": zod.object({
|
|
8929
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8930
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8931
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8181
8932
|
"client": zod.object({
|
|
8182
8933
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8183
8934
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8212,6 +8963,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8212
8963
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8213
8964
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8214
8965
|
"metadata": zod.object({
|
|
8966
|
+
"authorization": zod.object({
|
|
8967
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8968
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8969
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8215
8970
|
"client": zod.object({
|
|
8216
8971
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8217
8972
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8249,6 +9004,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8249
9004
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8250
9005
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8251
9006
|
"metadata": zod.object({
|
|
9007
|
+
"authorization": zod.object({
|
|
9008
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9009
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9010
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8252
9011
|
"client": zod.object({
|
|
8253
9012
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8254
9013
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8283,6 +9042,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8283
9042
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8284
9043
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8285
9044
|
"metadata": zod.object({
|
|
9045
|
+
"authorization": zod.object({
|
|
9046
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9047
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9048
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8286
9049
|
"client": zod.object({
|
|
8287
9050
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8288
9051
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8317,6 +9080,125 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8317
9080
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8318
9081
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8319
9082
|
"metadata": zod.object({
|
|
9083
|
+
"authorization": zod.object({
|
|
9084
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9085
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9086
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
9087
|
+
"client": zod.object({
|
|
9088
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
9089
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
9090
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
9091
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
9092
|
+
}).optional().describe('Emit-time metadata, already redacted at write. Path A request.api may\nset client (ip, user_agent, origin) for SIEM join on request_id. Not a\nlive risk-evaluator input.\n')
|
|
9093
|
+
}).describe('Shared wide-event envelope (ADR 048 / ADR 049). Concrete events are\n`allOf` this schema plus a `const` `event_type` and a typed `payload`.\n').and(zod.object({
|
|
9094
|
+
"event_type": zod.literal("policy.created"),
|
|
9095
|
+
"payload": zod.object({
|
|
9096
|
+
"operation": zod.string().describe('The operation the policy guards, e.g. `auth.factor.password.set`.'),
|
|
9097
|
+
"revision_id": zod.string().describe('The revision the publish appended.'),
|
|
9098
|
+
"config": zod.record(zod.string(), zod.unknown()).describe('The instance\'s settings as published.')
|
|
9099
|
+
}).describe('Allowlisted fields for `policy.created` (the first publish of an\noperation\'s policy) and `policy.updated` (every later publish). The policy id\nis the event\'s `entity_id`. `config` holds the published settings, which are\nconfiguration values, never user data.\n')
|
|
9100
|
+
})).describe('Wide event with event_type=policy.created.\n'),zod.object({
|
|
9101
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
9102
|
+
"project_id": zod.string().regex(getEventResponseTwofiveOneProjectIdRegExp),
|
|
9103
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
9104
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
9105
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
9106
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
9107
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
9108
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
9109
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
9110
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
9111
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
9112
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
9113
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
9114
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
9115
|
+
"delegation_id": zod.string().optional(),
|
|
9116
|
+
"grantor": zod.string().optional(),
|
|
9117
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
9118
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
9119
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
9120
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
9121
|
+
"metadata": zod.object({
|
|
9122
|
+
"authorization": zod.object({
|
|
9123
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9124
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9125
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
9126
|
+
"client": zod.object({
|
|
9127
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
9128
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
9129
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
9130
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
9131
|
+
}).optional().describe('Emit-time metadata, already redacted at write. Path A request.api may\nset client (ip, user_agent, origin) for SIEM join on request_id. Not a\nlive risk-evaluator input.\n')
|
|
9132
|
+
}).describe('Shared wide-event envelope (ADR 048 / ADR 049). Concrete events are\n`allOf` this schema plus a `const` `event_type` and a typed `payload`.\n').and(zod.object({
|
|
9133
|
+
"event_type": zod.literal("policy.updated"),
|
|
9134
|
+
"payload": zod.object({
|
|
9135
|
+
"operation": zod.string().describe('The operation the policy guards, e.g. `auth.factor.password.set`.'),
|
|
9136
|
+
"revision_id": zod.string().describe('The revision the publish appended.'),
|
|
9137
|
+
"config": zod.record(zod.string(), zod.unknown()).describe('The instance\'s settings as published.')
|
|
9138
|
+
}).describe('Allowlisted fields for `policy.created` (the first publish of an\noperation\'s policy) and `policy.updated` (every later publish). The policy id\nis the event\'s `entity_id`. `config` holds the published settings, which are\nconfiguration values, never user data.\n')
|
|
9139
|
+
})).describe('Wide event with event_type=policy.updated.\n'),zod.object({
|
|
9140
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
9141
|
+
"project_id": zod.string().regex(getEventResponseTwosixOneProjectIdRegExp),
|
|
9142
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
9143
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
9144
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
9145
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
9146
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
9147
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
9148
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
9149
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
9150
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
9151
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
9152
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
9153
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
9154
|
+
"delegation_id": zod.string().optional(),
|
|
9155
|
+
"grantor": zod.string().optional(),
|
|
9156
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
9157
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
9158
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
9159
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
9160
|
+
"metadata": zod.object({
|
|
9161
|
+
"authorization": zod.object({
|
|
9162
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9163
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9164
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
9165
|
+
"client": zod.object({
|
|
9166
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
9167
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
9168
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
9169
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
9170
|
+
}).optional().describe('Emit-time metadata, already redacted at write. Path A request.api may\nset client (ip, user_agent, origin) for SIEM join on request_id. Not a\nlive risk-evaluator input.\n')
|
|
9171
|
+
}).describe('Shared wide-event envelope (ADR 048 / ADR 049). Concrete events are\n`allOf` this schema plus a `const` `event_type` and a typed `payload`.\n').and(zod.object({
|
|
9172
|
+
"event_type": zod.literal("preview.removed"),
|
|
9173
|
+
"payload": zod.object({
|
|
9174
|
+
|
|
9175
|
+
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
9176
|
+
})).describe('Wide event with event_type=preview.removed.\n'),zod.object({
|
|
9177
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
9178
|
+
"project_id": zod.string().regex(getEventResponseTwosevenOneProjectIdRegExp),
|
|
9179
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
9180
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
9181
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
9182
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
9183
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
9184
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
9185
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
9186
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
9187
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
9188
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
9189
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
9190
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
9191
|
+
"delegation_id": zod.string().optional(),
|
|
9192
|
+
"grantor": zod.string().optional(),
|
|
9193
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
9194
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
9195
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
9196
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
9197
|
+
"metadata": zod.object({
|
|
9198
|
+
"authorization": zod.object({
|
|
9199
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9200
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9201
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8320
9202
|
"client": zod.object({
|
|
8321
9203
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8322
9204
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8335,7 +9217,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8335
9217
|
}).describe('Shared allowlisted fields for `project.created` (full snapshot) and\n`project.updated` (delta: only changed fields present).\n')
|
|
8336
9218
|
})).describe('Wide event with event_type=project.created.\n'),zod.object({
|
|
8337
9219
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8338
|
-
"project_id": zod.string().regex(
|
|
9220
|
+
"project_id": zod.string().regex(getEventResponseTwoeightOneProjectIdRegExp),
|
|
8339
9221
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8340
9222
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8341
9223
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8355,6 +9237,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8355
9237
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8356
9238
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8357
9239
|
"metadata": zod.object({
|
|
9240
|
+
"authorization": zod.object({
|
|
9241
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9242
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9243
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8358
9244
|
"client": zod.object({
|
|
8359
9245
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8360
9246
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8368,7 +9254,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8368
9254
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
8369
9255
|
})).describe('Wide event with event_type=project.deleted.\n'),zod.object({
|
|
8370
9256
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8371
|
-
"project_id": zod.string().regex(
|
|
9257
|
+
"project_id": zod.string().regex(getEventResponseTwonineOneProjectIdRegExp),
|
|
8372
9258
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8373
9259
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8374
9260
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8388,6 +9274,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8388
9274
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8389
9275
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8390
9276
|
"metadata": zod.object({
|
|
9277
|
+
"authorization": zod.object({
|
|
9278
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9279
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9280
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8391
9281
|
"client": zod.object({
|
|
8392
9282
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8393
9283
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8406,7 +9296,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8406
9296
|
}).describe('Shared allowlisted fields for `project.created` (full snapshot) and\n`project.updated` (delta: only changed fields present).\n')
|
|
8407
9297
|
})).describe('Wide event with event_type=project.updated.\n'),zod.object({
|
|
8408
9298
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8409
|
-
"project_id": zod.string().regex(
|
|
9299
|
+
"project_id": zod.string().regex(getEventResponseThreezeroOneProjectIdRegExp),
|
|
8410
9300
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8411
9301
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8412
9302
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8426,6 +9316,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8426
9316
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8427
9317
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8428
9318
|
"metadata": zod.object({
|
|
9319
|
+
"authorization": zod.object({
|
|
9320
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9321
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9322
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8429
9323
|
"client": zod.object({
|
|
8430
9324
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8431
9325
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8447,7 +9341,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8447
9341
|
}).describe('Allowlisted fields for `release.created`. The release id is already the\nevent\'s `entity_id`; the pinned set is repeated here so the audit stream\nanswers what a release contained without reading the release itself.\n')
|
|
8448
9342
|
})).describe('Wide event with event_type=release.created.\n'),zod.object({
|
|
8449
9343
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8450
|
-
"project_id": zod.string().regex(
|
|
9344
|
+
"project_id": zod.string().regex(getEventResponseThreeoneOneProjectIdRegExp),
|
|
8451
9345
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8452
9346
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8453
9347
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8467,6 +9361,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8467
9361
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8468
9362
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8469
9363
|
"metadata": zod.object({
|
|
9364
|
+
"authorization": zod.object({
|
|
9365
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9366
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9367
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8470
9368
|
"client": zod.object({
|
|
8471
9369
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8472
9370
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8476,11 +9374,11 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8476
9374
|
}).describe('Shared wide-event envelope (ADR 048 / ADR 049). Concrete events are\n`allOf` this schema plus a `const` `event_type` and a typed `payload`.\n').and(zod.object({
|
|
8477
9375
|
"event_type": zod.literal("release.revoked"),
|
|
8478
9376
|
"payload": zod.object({
|
|
8479
|
-
"content_hash": zod.string().min(
|
|
9377
|
+
"content_hash": zod.string().min(getEventResponseThreeoneTwoPayloadContentHashMin).max(getEventResponseThreeoneTwoPayloadContentHashMax).regex(getEventResponseThreeoneTwoPayloadContentHashRegExp).describe('The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project\'s revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding` or `idp`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding, or the IDP connection\'s `slug`.\n A `schema-url` entry\'s content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{"version": 1, "resources": [{"kind": …, "handle": …, "content": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n')
|
|
8480
9378
|
}).describe('Allowlisted fields for `release.revoked`. The release id is already the\nevent\'s `entity_id`; the digest is repeated so the audit stream names the\nrelease the way the CLI prints it and builds pin it.\n')
|
|
8481
9379
|
})).describe('Wide event with event_type=release.revoked.\n'),zod.object({
|
|
8482
9380
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8483
|
-
"project_id": zod.string().regex(
|
|
9381
|
+
"project_id": zod.string().regex(getEventResponseThreetwoOneProjectIdRegExp),
|
|
8484
9382
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8485
9383
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8486
9384
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8500,6 +9398,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8500
9398
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8501
9399
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8502
9400
|
"metadata": zod.object({
|
|
9401
|
+
"authorization": zod.object({
|
|
9402
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9403
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9404
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8503
9405
|
"client": zod.object({
|
|
8504
9406
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8505
9407
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8512,12 +9414,12 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8512
9414
|
"operation_id": zod.string(),
|
|
8513
9415
|
"method": zod.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS']).describe('HTTP method.'),
|
|
8514
9416
|
"route_template": zod.string(),
|
|
8515
|
-
"status": zod.int().min(
|
|
8516
|
-
"duration_ms": zod.int().min(
|
|
9417
|
+
"status": zod.int().min(getEventResponseThreetwoTwoPayloadStatusMin).max(getEventResponseThreetwoTwoPayloadStatusMax),
|
|
9418
|
+
"duration_ms": zod.int().min(getEventResponseThreetwoTwoPayloadDurationMsMin)
|
|
8517
9419
|
}).describe('Payload for `request.api` events.')
|
|
8518
9420
|
})).describe('Wide event with event_type=request.api.\n'),zod.object({
|
|
8519
9421
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8520
|
-
"project_id": zod.string().regex(
|
|
9422
|
+
"project_id": zod.string().regex(getEventResponseThreethreeOneProjectIdRegExp),
|
|
8521
9423
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8522
9424
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8523
9425
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8537,6 +9439,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8537
9439
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8538
9440
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8539
9441
|
"metadata": zod.object({
|
|
9442
|
+
"authorization": zod.object({
|
|
9443
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9444
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9445
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8540
9446
|
"client": zod.object({
|
|
8541
9447
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8542
9448
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8551,7 +9457,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8551
9457
|
}).describe('Allowlisted fields for `schema.created`. The schema document itself is\nomitted — it is customer-authored and unbounded, and the event\'s `entity_id`\nalready identifies which schema was created.\n')
|
|
8552
9458
|
})).describe('Wide event with event_type=schema.created.\n'),zod.object({
|
|
8553
9459
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8554
|
-
"project_id": zod.string().regex(
|
|
9460
|
+
"project_id": zod.string().regex(getEventResponseThreefourOneProjectIdRegExp),
|
|
8555
9461
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8556
9462
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8557
9463
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8571,6 +9477,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8571
9477
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8572
9478
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8573
9479
|
"metadata": zod.object({
|
|
9480
|
+
"authorization": zod.object({
|
|
9481
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9482
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9483
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8574
9484
|
"client": zod.object({
|
|
8575
9485
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8576
9486
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8584,7 +9494,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8584
9494
|
}).describe('Payload for `session.deleted` events.')
|
|
8585
9495
|
})).describe('Wide event with event_type=session.deleted.\n'),zod.object({
|
|
8586
9496
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8587
|
-
"project_id": zod.string().regex(
|
|
9497
|
+
"project_id": zod.string().regex(getEventResponseThreefiveOneProjectIdRegExp),
|
|
8588
9498
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8589
9499
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8590
9500
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8604,6 +9514,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8604
9514
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8605
9515
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8606
9516
|
"metadata": zod.object({
|
|
9517
|
+
"authorization": zod.object({
|
|
9518
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9519
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9520
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8607
9521
|
"client": zod.object({
|
|
8608
9522
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8609
9523
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8617,7 +9531,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8617
9531
|
}).describe('Payload for `session.established` events.')
|
|
8618
9532
|
})).describe('Wide event with event_type=session.established.\n'),zod.object({
|
|
8619
9533
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8620
|
-
"project_id": zod.string().regex(
|
|
9534
|
+
"project_id": zod.string().regex(getEventResponseThreesixOneProjectIdRegExp),
|
|
8621
9535
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8622
9536
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8623
9537
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8637,6 +9551,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8637
9551
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8638
9552
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8639
9553
|
"metadata": zod.object({
|
|
9554
|
+
"authorization": zod.object({
|
|
9555
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9556
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9557
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8640
9558
|
"client": zod.object({
|
|
8641
9559
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8642
9560
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8650,7 +9568,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8650
9568
|
}).describe('Shared allowlisted fields for `team.created` (snapshot) and\n`team.updated` (delta: only changed fields present).\n')
|
|
8651
9569
|
})).describe('Wide event with event_type=team.created.\n'),zod.object({
|
|
8652
9570
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8653
|
-
"project_id": zod.string().regex(
|
|
9571
|
+
"project_id": zod.string().regex(getEventResponseThreesevenOneProjectIdRegExp),
|
|
8654
9572
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8655
9573
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8656
9574
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8670,6 +9588,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8670
9588
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8671
9589
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8672
9590
|
"metadata": zod.object({
|
|
9591
|
+
"authorization": zod.object({
|
|
9592
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9593
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9594
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8673
9595
|
"client": zod.object({
|
|
8674
9596
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8675
9597
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8683,7 +9605,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8683
9605
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
8684
9606
|
})).describe('Wide event with event_type=team.deactivated.\n'),zod.object({
|
|
8685
9607
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8686
|
-
"project_id": zod.string().regex(
|
|
9608
|
+
"project_id": zod.string().regex(getEventResponseThreeeightOneProjectIdRegExp),
|
|
8687
9609
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8688
9610
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8689
9611
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8703,6 +9625,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8703
9625
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8704
9626
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8705
9627
|
"metadata": zod.object({
|
|
9628
|
+
"authorization": zod.object({
|
|
9629
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9630
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9631
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8706
9632
|
"client": zod.object({
|
|
8707
9633
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8708
9634
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8716,7 +9642,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8716
9642
|
}).describe('Shared allowlisted fields for `team.created` (snapshot) and\n`team.updated` (delta: only changed fields present).\n')
|
|
8717
9643
|
})).describe('Wide event with event_type=team.updated.\n'),zod.object({
|
|
8718
9644
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8719
|
-
"project_id": zod.string().regex(
|
|
9645
|
+
"project_id": zod.string().regex(getEventResponseThreenineOneProjectIdRegExp),
|
|
8720
9646
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8721
9647
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8722
9648
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8736,6 +9662,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8736
9662
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8737
9663
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8738
9664
|
"metadata": zod.object({
|
|
9665
|
+
"authorization": zod.object({
|
|
9666
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9667
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9668
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8739
9669
|
"client": zod.object({
|
|
8740
9670
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8741
9671
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8749,7 +9679,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8749
9679
|
}).describe('Payload for `user.create.failed` events.')
|
|
8750
9680
|
})).describe('Wide event with event_type=user.create.failed.\n'),zod.object({
|
|
8751
9681
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8752
|
-
"project_id": zod.string().regex(
|
|
9682
|
+
"project_id": zod.string().regex(getEventResponseFourzeroOneProjectIdRegExp),
|
|
8753
9683
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8754
9684
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8755
9685
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8769,6 +9699,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8769
9699
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8770
9700
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8771
9701
|
"metadata": zod.object({
|
|
9702
|
+
"authorization": zod.object({
|
|
9703
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9704
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9705
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8772
9706
|
"client": zod.object({
|
|
8773
9707
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8774
9708
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8784,7 +9718,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8784
9718
|
}).describe('Payload for `user.created`. Identity is `entity_id`; attribute values\nappear only for schema fields marked `x-audit`.\n')
|
|
8785
9719
|
})).describe('Wide event with event_type=user.created.\n'),zod.object({
|
|
8786
9720
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8787
|
-
"project_id": zod.string().regex(
|
|
9721
|
+
"project_id": zod.string().regex(getEventResponseFouroneOneProjectIdRegExp),
|
|
8788
9722
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8789
9723
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8790
9724
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8804,6 +9738,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8804
9738
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8805
9739
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8806
9740
|
"metadata": zod.object({
|
|
9741
|
+
"authorization": zod.object({
|
|
9742
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9743
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9744
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8807
9745
|
"client": zod.object({
|
|
8808
9746
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8809
9747
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8817,7 +9755,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8817
9755
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
8818
9756
|
})).describe('Wide event with event_type=user.deleted.\n'),zod.object({
|
|
8819
9757
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8820
|
-
"project_id": zod.string().regex(
|
|
9758
|
+
"project_id": zod.string().regex(getEventResponseFourtwoOneProjectIdRegExp),
|
|
8821
9759
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8822
9760
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8823
9761
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8837,6 +9775,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8837
9775
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8838
9776
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8839
9777
|
"metadata": zod.object({
|
|
9778
|
+
"authorization": zod.object({
|
|
9779
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9780
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9781
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8840
9782
|
"client": zod.object({
|
|
8841
9783
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8842
9784
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8851,7 +9793,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8851
9793
|
}).describe('Payload for `user.updated`. Same attribute rules as create: keys touched\nplus `x-audit` values only.\n')
|
|
8852
9794
|
})).describe('Wide event with event_type=user.updated.\n'),zod.object({
|
|
8853
9795
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8854
|
-
"project_id": zod.string().regex(
|
|
9796
|
+
"project_id": zod.string().regex(getEventResponseFourthreeOneProjectIdRegExp),
|
|
8855
9797
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8856
9798
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8857
9799
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8871,6 +9813,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8871
9813
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8872
9814
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8873
9815
|
"metadata": zod.object({
|
|
9816
|
+
"authorization": zod.object({
|
|
9817
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9818
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9819
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8874
9820
|
"client": zod.object({
|
|
8875
9821
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8876
9822
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8884,7 +9830,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8884
9830
|
}).describe('Payload for `variable.removed` events, one row removed.')
|
|
8885
9831
|
})).describe('Wide event with event_type=variable.removed.\n'),zod.object({
|
|
8886
9832
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8887
|
-
"project_id": zod.string().regex(
|
|
9833
|
+
"project_id": zod.string().regex(getEventResponseFourfourOneProjectIdRegExp),
|
|
8888
9834
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8889
9835
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8890
9836
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8904,6 +9850,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8904
9850
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8905
9851
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8906
9852
|
"metadata": zod.object({
|
|
9853
|
+
"authorization": zod.object({
|
|
9854
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9855
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9856
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject (ADR 053 §8). Every event of such a request carries it.\n'),
|
|
8907
9857
|
"client": zod.object({
|
|
8908
9858
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8909
9859
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -9094,11 +10044,11 @@ export const DeleteVariableResponse = zod.void()
|
|
|
9094
10044
|
* - `400 dep.invalid`: both or neither of `release_id` and `content_hash`;
|
|
9095
10045
|
* a primary origin named exactly; `primary` mixed with preview URLs;
|
|
9096
10046
|
* `primary` on a project with no primary origin; `ttl` with `primary`;
|
|
9097
|
-
* `ttl` above
|
|
10047
|
+
* `ttl` above 365 days (`P365D`).
|
|
9098
10048
|
* - `400 dep.variables_missing`: a referenced variable has no value for
|
|
9099
10049
|
* the kind; `details` names the kind and every missing variable.
|
|
9100
10050
|
* - `403 proj.origin_not_allowed`: a preview URL matches no preview
|
|
9101
|
-
* pattern.
|
|
10051
|
+
* pattern, or is a loopback URL.
|
|
9102
10052
|
* - `404 rel.not_found`: the release id or digest names no release here.
|
|
9103
10053
|
* - `409 dep.conflict`: `expected_deployment_id` is not the deployment
|
|
9104
10054
|
* this write replaces; `details.deployment` is that deployment.
|
|
@@ -9124,7 +10074,6 @@ export const createDeploymentBodyTargetsItemMax = 2048;
|
|
|
9124
10074
|
export const createDeploymentBodyTargetsItemRegExp = new RegExp('^(primary|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}))?)$');
|
|
9125
10075
|
export const createDeploymentBodyTargetsMax = 50;
|
|
9126
10076
|
|
|
9127
|
-
export const createDeploymentBodyTtlRegExp = new RegExp('^[1-9][0-9]{0,5}[mhd]$');
|
|
9128
10077
|
export const createDeploymentBodyMessageMax = 1024;
|
|
9129
10078
|
|
|
9130
10079
|
export const createDeploymentBodyExpectedDeploymentIdRegExp = new RegExp('^dep_[a-zA-Z0-9_-]+$');
|
|
@@ -9134,7 +10083,7 @@ export const CreateDeploymentBody = zod.object({
|
|
|
9134
10083
|
"release_id": zod.string().regex(createDeploymentBodyReleaseIdRegExp).optional().describe('The opaque, immutable identifier of a release.'),
|
|
9135
10084
|
"content_hash": zod.string().min(createDeploymentBodyContentHashMin).max(createDeploymentBodyContentHashMax).regex(createDeploymentBodyContentHashRegExp).optional().describe('The content digest of a release: `sha256:` followed by 64 lowercase hex\ncharacters. Always the full digest; no short form is accepted anywhere.\n\nThe digest covers the content of the resources the release pins and\nnothing else. Revision ids, metadata and the project are not part of it.\nA bundle that carries every resource it references therefore has the same\ndigest on every project, and a client can compute it before sending\nanything. When a bundle leaves a referenced resource to the project, the\nrelease pins the project\'s revision of it too, and the digest covers that\nresource as the project holds it.\n\nTo compute it:\n\n1. Take every resource in the release as the `bundle` of\n `POST /releases/build` carries it, with `kind` set to `schema`,\n `flow_definition`, `branding` or `idp`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding, or the IDP connection\'s `slug`.\n A `schema-url` entry\'s content is the entry as written, and its handle\n is the `objectType` of the document the URL serves.\n2. Build the JSON document\n `{"version": 1, "resources": [{"kind": …, "handle": …, "content": …}, …]}`,\n with `resources` sorted by `kind`, then by `handle`.\n3. Serialise that document as canonical JSON (RFC 8785).\n4. The digest is the SHA-256 of those bytes, written as `sha256:` and\n lowercase hex.\n\nA release built from `pointers` has the digest its pinned revisions would\nhave if they were sent as a bundle.\n\nThe digest identifies a release on the wire but never appears in a path,\nwhich takes the `rel_` id. Fields that look a release up by content say\nso by name: the `content_hash` filter of `GET /releases`, and\n`content_hash` in place of `release_id` on `POST /deployments`.\n'),
|
|
9136
10085
|
"targets": zod.array(zod.string().max(createDeploymentBodyTargetsItemMax).regex(createDeploymentBodyTargetsItemRegExp)).min(1).max(createDeploymentBodyTargetsMax).describe('Where the release goes live: either `primary`, which resolves to every\ncurrent primary origin, or preview URLs in `Origin` form, each matching one\nof the project\'s preview patterns. Primary origins cannot be named one by\none, and the two forms cannot be mixed.\n'),
|
|
9137
|
-
"ttl": zod.string().
|
|
10086
|
+
"ttl": zod.string().optional().describe('How long a preview stays live after the deployment that writes it, as an\nISO-8601 duration. At most 365 days (`P365D`).\n'),
|
|
9138
10087
|
"reason": zod.enum(['deploy', 'rollback']).optional().describe('Why the deployment was created: `deploy`, or `rollback` when an earlier\nrelease goes live again. The rollback operation always records `rollback`;\n`POST /deployments` may too, and then `rollback_to` is null.\n'),
|
|
9139
10088
|
"message": zod.string().max(createDeploymentBodyMessageMax).optional().describe('A short free-form summary of why this deployment happened, recorded on\nits metadata.\n'),
|
|
9140
10089
|
"expected_deployment_id": zod.string().regex(createDeploymentBodyExpectedDeploymentIdRegExp).optional().describe('The opaque, immutable identifier of a deployment.')
|
|
@@ -9203,8 +10152,8 @@ export const CreateDeploymentResponse = zod.object({
|
|
|
9203
10152
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
9204
10153
|
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed and is refused on every path that would\nserve it, including to a build that pins its digest. No origin serves\na revoked release, since a release an origin still serves cannot be\nrevoked; earlier deployments that named it stay in the history.\n'),
|
|
9205
10154
|
"pointers": zod.array(zod.object({
|
|
9206
|
-
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
9207
|
-
"handle": zod.string().min(1).max(createDeploymentResponseReleasePointersItemHandleMax).describe('Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document\'s `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition\'s `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n'),
|
|
10155
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp', 'policy']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
10156
|
+
"handle": zod.string().min(1).max(createDeploymentResponseReleasePointersItemHandleMax).describe('Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document\'s `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition\'s `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\n- `policy` — the policy\'s `operation`, so a project\'s password policy\n is one resource however often it is revised\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n'),
|
|
9208
10157
|
"revision_id": zod.string().min(1).max(createDeploymentResponseReleasePointersItemRevisionIdMax).describe('The revision of that resource this release pins.\n\nDeliberately not constrained to a prefixed id: for `kind: schema` this is\nthe schema\'s `$id`, which is a URL whenever the document supplied one and\nonly a generated `sch_*` value otherwise.\n')
|
|
9209
10158
|
}).describe('One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n')).min(1).max(createDeploymentResponseReleasePointersMax).describe('The revisions this release pins, one entry per `(kind, handle)`. Never\nempty: a release must contain at least one resource, and never longer\nthan the set `POST /releases` accepts.\n')
|
|
9210
10159
|
}).optional().describe('An immutable, project-scoped snapshot that pins one revision of every\nresource it includes.\n\nA release owns pointers and metadata, not content — it records *which*\nrevisions belong together. Callers that need the resource bytes resolve each\n`revision_id` through the per-kind read endpoints (`GET /schemas/{id}`,\n`GET /flow_definitions/{id}`, …).\n\nA release exists on its own and is not tied to an origin. Deploying it is a\nseparate call.\n\nTwo identifiers: `id` is the one paths and `release_id` fields take;\n`content_hash` is the digest of the content the release pins, printed by\nthe CLI and pinned by builds, and looked up through fields that name it.\n')
|
|
@@ -9313,8 +10262,8 @@ export const ListDeploymentsResponse = zod.object({
|
|
|
9313
10262
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
9314
10263
|
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed and is refused on every path that would\nserve it, including to a build that pins its digest. No origin serves\na revoked release, since a release an origin still serves cannot be\nrevoked; earlier deployments that named it stay in the history.\n'),
|
|
9315
10264
|
"pointers": zod.array(zod.object({
|
|
9316
|
-
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
9317
|
-
"handle": zod.string().min(1).max(listDeploymentsResponseDeploymentsItemReleasePointersItemHandleMax).describe('Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document\'s `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition\'s `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n'),
|
|
10265
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp', 'policy']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
10266
|
+
"handle": zod.string().min(1).max(listDeploymentsResponseDeploymentsItemReleasePointersItemHandleMax).describe('Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document\'s `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition\'s `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\n- `policy` — the policy\'s `operation`, so a project\'s password policy\n is one resource however often it is revised\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n'),
|
|
9318
10267
|
"revision_id": zod.string().min(1).max(listDeploymentsResponseDeploymentsItemReleasePointersItemRevisionIdMax).describe('The revision of that resource this release pins.\n\nDeliberately not constrained to a prefixed id: for `kind: schema` this is\nthe schema\'s `$id`, which is a URL whenever the document supplied one and\nonly a generated `sch_*` value otherwise.\n')
|
|
9319
10268
|
}).describe('One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n')).min(1).max(listDeploymentsResponseDeploymentsItemReleasePointersMax).describe('The revisions this release pins, one entry per `(kind, handle)`. Never\nempty: a release must contain at least one resource, and never longer\nthan the set `POST /releases` accepts.\n')
|
|
9320
10269
|
}).optional().describe('An immutable, project-scoped snapshot that pins one revision of every\nresource it includes.\n\nA release owns pointers and metadata, not content — it records *which*\nrevisions belong together. Callers that need the resource bytes resolve each\n`revision_id` through the per-kind read endpoints (`GET /schemas/{id}`,\n`GET /flow_definitions/{id}`, …).\n\nA release exists on its own and is not tied to an origin. Deploying it is a\nseparate call.\n\nTwo identifiers: `id` is the one paths and `release_id` fields take;\n`content_hash` is the digest of the content the release pins, printed by\nthe CLI and pinned by builds, and looked up through fields that name it.\n')
|
|
@@ -9409,8 +10358,8 @@ export const GetDeploymentByIdResponse = zod.object({
|
|
|
9409
10358
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
9410
10359
|
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed and is refused on every path that would\nserve it, including to a build that pins its digest. No origin serves\na revoked release, since a release an origin still serves cannot be\nrevoked; earlier deployments that named it stay in the history.\n'),
|
|
9411
10360
|
"pointers": zod.array(zod.object({
|
|
9412
|
-
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
9413
|
-
"handle": zod.string().min(1).max(getDeploymentByIdResponseReleasePointersItemHandleMax).describe('Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document\'s `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition\'s `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n'),
|
|
10361
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp', 'policy']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
10362
|
+
"handle": zod.string().min(1).max(getDeploymentByIdResponseReleasePointersItemHandleMax).describe('Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document\'s `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition\'s `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\n- `policy` — the policy\'s `operation`, so a project\'s password policy\n is one resource however often it is revised\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n'),
|
|
9414
10363
|
"revision_id": zod.string().min(1).max(getDeploymentByIdResponseReleasePointersItemRevisionIdMax).describe('The revision of that resource this release pins.\n\nDeliberately not constrained to a prefixed id: for `kind: schema` this is\nthe schema\'s `$id`, which is a URL whenever the document supplied one and\nonly a generated `sch_*` value otherwise.\n')
|
|
9415
10364
|
}).describe('One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n')).min(1).max(getDeploymentByIdResponseReleasePointersMax).describe('The revisions this release pins, one entry per `(kind, handle)`. Never\nempty: a release must contain at least one resource, and never longer\nthan the set `POST /releases` accepts.\n')
|
|
9416
10365
|
}).optional().describe('An immutable, project-scoped snapshot that pins one revision of every\nresource it includes.\n\nA release owns pointers and metadata, not content — it records *which*\nrevisions belong together. Callers that need the resource bytes resolve each\n`revision_id` through the per-kind read endpoints (`GET /schemas/{id}`,\n`GET /flow_definitions/{id}`, …).\n\nA release exists on its own and is not tied to an origin. Deploying it is a\nseparate call.\n\nTwo identifiers: `id` is the one paths and `release_id` fields take;\n`content_hash` is the digest of the content the release pins, printed by\nthe CLI and pinned by builds, and looked up through fields that name it.\n')
|
|
@@ -9521,8 +10470,8 @@ export const RollbackDeploymentResponse = zod.object({
|
|
|
9521
10470
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
9522
10471
|
"revoked_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).describe('When the release was revoked, or null while it is not. A revoked\nrelease cannot be deployed and is refused on every path that would\nserve it, including to a build that pins its digest. No origin serves\na revoked release, since a release an origin still serves cannot be\nrevoked; earlier deployments that named it stay in the history.\n'),
|
|
9523
10472
|
"pointers": zod.array(zod.object({
|
|
9524
|
-
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
9525
|
-
"handle": zod.string().min(1).max(rollbackDeploymentResponseReleasePointersItemHandleMax).describe('Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document\'s `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition\'s `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n'),
|
|
10473
|
+
"kind": zod.enum(['schema', 'flow_definition', 'branding', 'idp', 'policy']).describe('The kind of resource a release pointer pins.\n\nCarried explicitly rather than inferred from `revision_id`, because a\nrevision id is not always shaped distinctly enough to identify its kind: a\nschema\'s is its `$id`, which may be any URL.\n\n`flow_definition` rather than `flow`: a release pins the definitions served\nat `/flow_definitions`, not the runtime flows at `/flow`.\n'),
|
|
10474
|
+
"handle": zod.string().min(1).max(rollbackDeploymentResponseReleasePointersItemHandleMax).describe('Which resource this pointer pins, independent of which revision of it.\n`revision_id` chooses the revision; `handle` says what the revision is a\nrevision *of*. Determined when the release is assembled, not supplied by\nthe caller:\n\n- `schema` — the document\'s `objectType`, so `human-user` and\n `machine-user` are separate resources a release pins separately\n- `flow_definition` — the definition\'s `name`, likewise for\n `default-login` and `b2b-login`\n- `branding` — always `default`. A project has one branding, so there is\n nothing to distinguish; it is revisioned like everything else, and\n `revision_id` is what varies between releases.\n- `idp` — the connection\'s `slug`, so `google` and `github` are\n separate resources a release pins separately\n- `policy` — the policy\'s `operation`, so a project\'s password policy\n is one resource however often it is revised\n\nResources inside a release reference each other by handle rather than by\nrevision id, so the same handle names the same resource in every release.\n'),
|
|
9526
10475
|
"revision_id": zod.string().min(1).max(rollbackDeploymentResponseReleasePointersItemRevisionIdMax).describe('The revision of that resource this release pins.\n\nDeliberately not constrained to a prefixed id: for `kind: schema` this is\nthe schema\'s `$id`, which is a URL whenever the document supplied one and\nonly a generated `sch_*` value otherwise.\n')
|
|
9527
10476
|
}).describe('One entry of the set a release pins: the revision of a single resource that\nthis release includes.\n')).min(1).max(rollbackDeploymentResponseReleasePointersMax).describe('The revisions this release pins, one entry per `(kind, handle)`. Never\nempty: a release must contain at least one resource, and never longer\nthan the set `POST /releases` accepts.\n')
|
|
9528
10477
|
}).optional().describe('An immutable, project-scoped snapshot that pins one revision of every\nresource it includes.\n\nA release owns pointers and metadata, not content — it records *which*\nrevisions belong together. Callers that need the resource bytes resolve each\n`revision_id` through the per-kind read endpoints (`GET /schemas/{id}`,\n`GET /flow_definitions/{id}`, …).\n\nA release exists on its own and is not tied to an origin. Deploying it is a\nseparate call.\n\nTwo identifiers: `id` is the one paths and `release_id` fields take;\n`content_hash` is the digest of the content the release pins, printed by\nthe CLI and pinned by builds, and looked up through fields that name it.\n')
|