@zitadel/api 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{fetch-DD3lSbnp.d.mts → fetch-CtYe0OvX.d.mts} +8 -2
- package/dist/fetch-CtYe0OvX.d.mts.map +1 -0
- package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
- package/dist/generated/endpoints/zitadelNextGen.mjs +291 -44
- package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +17 -4
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs +3184 -1471
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +1342 -85
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +1865 -648
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
- package/dist/generated/model/index.d.mts +2 -2
- package/dist/generated/model/index.mjs +76 -65
- package/dist/generated/model/index.mjs.map +1 -1
- package/dist/generated/operations.mjs +202 -29
- package/dist/generated/operations.mjs.map +1 -1
- package/dist/{index-DuuFQkA8.d.mts → index-DAm3tCA7.d.mts} +6562 -1257
- package/dist/index-DAm3tCA7.d.mts.map +1 -0
- package/dist/runtime/api-factory.d.mts +1 -1
- package/dist/runtime/fetch.d.mts +1 -1
- package/dist/runtime/fetch.mjs +9 -2
- package/dist/runtime/fetch.mjs.map +1 -1
- package/dist/{zitadelNextGen-BdUDEEuX.d.mts → zitadelNextGen-B_VRpP2W.d.mts} +165 -39
- package/dist/zitadelNextGen-B_VRpP2W.d.mts.map +1 -0
- package/package.json +3 -2
- package/src/generated/endpoints/zitadelNextGen.faker.ts +46 -25
- package/src/generated/endpoints/zitadelNextGen.msw.ts +106 -13
- package/src/generated/endpoints/zitadelNextGen.ts +404 -54
- package/src/generated/endpoints/zitadelNextGen.zod.ts +1159 -133
- package/src/generated/model/addOriginDefault.ts +27 -0
- package/src/generated/model/beginUserPasskeyRegistrationDefault.ts +18 -0
- package/src/generated/model/buildRelease200PointersItem.ts +2 -0
- package/src/generated/model/buildRelease200PointersItemKind.ts +1 -0
- package/src/generated/model/buildRelease201PointersItem.ts +2 -0
- package/src/generated/model/buildRelease201PointersItemKind.ts +1 -0
- package/src/generated/model/buildRelease400DetailsResourcesItemKind.ts +1 -0
- package/src/generated/model/buildReleaseBody.ts +3 -3
- package/src/generated/model/buildReleaseBodyBundle.ts +20 -3
- package/src/generated/model/buildReleaseBodyBundlePoliciesItem.ts +47 -0
- package/src/generated/model/buildReleaseDefault.ts +36 -0
- package/src/generated/model/createAuthAttemptDefault.ts +27 -0
- package/src/generated/model/createBrandingDefault.ts +18 -0
- package/src/generated/model/createDeployment200ReleasePointersItem.ts +2 -0
- package/src/generated/model/createDeployment200ReleasePointersItemKind.ts +1 -0
- package/src/generated/model/createDeployment201ReleasePointersItem.ts +2 -0
- package/src/generated/model/createDeployment201ReleasePointersItemKind.ts +1 -0
- package/src/generated/model/createDeployment409.ts +3 -1
- package/src/generated/model/createDeploymentBody.ts +2 -4
- package/src/generated/model/createDeploymentDefault.ts +54 -0
- package/src/generated/model/createFlow201Step.ts +19 -0
- package/src/generated/model/createFlow201StepPurpose.ts +26 -0
- package/src/generated/model/createFlowDefault.ts +18 -0
- package/src/generated/model/createFlowDefinition201UserSchemaMetadata.ts +5 -0
- package/src/generated/model/createFlowDefinitionDefault.ts +18 -0
- package/src/generated/model/createGrant201Team.ts +4 -1
- package/src/generated/model/createGrantDefault.ts +18 -0
- package/src/generated/model/createHandoffDefault.ts +18 -0
- package/src/generated/model/createIdpDefault.ts +18 -0
- package/src/generated/model/createRelease200PointersItem.ts +2 -0
- package/src/generated/model/createRelease200PointersItemKind.ts +1 -0
- package/src/generated/model/createRelease201PointersItem.ts +2 -0
- package/src/generated/model/createRelease201PointersItemKind.ts +1 -0
- package/src/generated/model/createReleaseBodyPointersItemKind.ts +1 -0
- package/src/generated/model/createReleaseDefault.ts +18 -0
- package/src/generated/model/createSchemaDefault.ts +18 -0
- package/src/generated/model/createSessionDefault.ts +18 -0
- package/src/generated/model/createTeamDefault.ts +18 -0
- package/src/generated/model/createUserDefault.ts +18 -0
- package/src/generated/model/deleteGrantDefault.ts +18 -0
- package/src/generated/model/deleteTeamDefault.ts +18 -0
- package/src/generated/model/deleteUserByIDDefault.ts +18 -0
- package/src/generated/model/deleteVariableDefault.ts +18 -0
- package/src/generated/model/evaluatePolicy200.ts +30 -0
- package/src/generated/model/evaluatePolicy200Violations.ts +14 -0
- package/src/generated/model/evaluatePolicyBody.ts +82 -0
- package/src/generated/model/evaluatePolicyDefault.ts +90 -0
- package/src/generated/model/evaluatePolicyParams.ts +15 -0
- package/src/generated/model/exchangeHandoffDefault.ts +36 -0
- package/src/generated/model/finishUserPasskeyRegistrationDefault.ts +18 -0
- package/src/generated/model/getAuthAttemptDefault.ts +18 -0
- package/src/generated/model/getBrandingByIdDefault.ts +18 -0
- package/src/generated/model/getClaimStatusDefault.ts +18 -0
- package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +2 -0
- package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +1 -0
- package/src/generated/model/getDeploymentByIdDefault.ts +18 -0
- package/src/generated/model/getDeploymentVariablesDefault.ts +9 -0
- package/src/generated/model/getEvent200.ts +788 -0
- package/src/generated/model/getEventDefault.ts +18 -0
- package/src/generated/model/getFlowDefinition200UserSchemaMetadata.ts +5 -0
- package/src/generated/model/getFlowDefinitionDefault.ts +18 -0
- package/src/generated/model/getFlowStep200Step.ts +19 -0
- package/src/generated/model/getFlowStep200StepPurpose.ts +26 -0
- package/src/generated/model/getFlowStepDefault.ts +36 -0
- package/src/generated/model/getGrant200Team.ts +4 -1
- package/src/generated/model/getGrantDefault.ts +18 -0
- package/src/generated/model/getIdpByIdDefault.ts +18 -0
- package/src/generated/model/getIdpRevisionByIdDefault.ts +18 -0
- package/src/generated/model/getMyPasswordStateDefault.ts +18 -0
- package/src/generated/model/getMySessionCsrfTokenDefault.ts +18 -0
- package/src/generated/model/getMySessionDefault.ts +18 -0
- package/src/generated/model/getMyUserDefault.ts +18 -0
- package/src/generated/model/getMyUserSchema200Metadata.ts +5 -0
- package/src/generated/model/getMyUserSchemaDefault.ts +18 -0
- package/src/generated/model/getPolicy200.ts +62 -0
- package/src/generated/model/getPolicyDefault.ts +72 -0
- package/src/generated/model/getPolicyParams.ts +15 -0
- package/src/generated/model/getPolicyRevision200.ts +62 -0
- package/src/generated/model/getPolicyRevisionDefault.ts +72 -0
- package/src/generated/model/getPolicyRevisionParams.ts +15 -0
- package/src/generated/model/getProject200.ts +64 -6
- package/src/generated/model/getReleaseById200PointersItem.ts +2 -0
- package/src/generated/model/getReleaseById200PointersItemKind.ts +1 -0
- package/src/generated/model/getReleaseByIdDefault.ts +18 -0
- package/src/generated/model/getSchemaById200Metadata.ts +5 -0
- package/src/generated/model/getSchemaByIdDefault.ts +18 -0
- package/src/generated/model/getSessionDefault.ts +18 -0
- package/src/generated/model/getTeamDefault.ts +18 -0
- package/src/generated/model/getUserByIDDefault.ts +18 -0
- package/src/generated/model/getUserPasswordStateDefault.ts +18 -0
- package/src/generated/model/getVariableDefault.ts +18 -0
- package/src/generated/model/getVariablesDefault.ts +18 -0
- package/src/generated/model/index.ts +44 -21
- package/src/generated/model/initClaimDefault.ts +18 -0
- package/src/generated/model/issueChallengeDefault.ts +18 -0
- package/src/generated/model/listBrandingDefault.ts +18 -0
- package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +2 -0
- package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +1 -0
- package/src/generated/model/listDeploymentsDefault.ts +18 -0
- package/src/generated/model/listEvents200DataItem.ts +788 -0
- package/src/generated/model/listEventsDefault.ts +18 -0
- package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaMetadata.ts +5 -0
- package/src/generated/model/listFlowDefinitionsDefault.ts +18 -0
- package/src/generated/model/listIdpRevisionsDefault.ts +18 -0
- package/src/generated/model/listMyIdentityLinksDefault.ts +18 -0
- package/src/generated/model/listMyPasskeysDefault.ts +18 -0
- package/src/generated/model/listMyProjectsDefault.ts +18 -0
- package/src/generated/model/listMyProjectsParams.ts +8 -0
- package/src/generated/model/listMyTeamsDefault.ts +18 -0
- package/src/generated/model/listPolicies200.ts +21 -0
- package/src/generated/model/listPolicies200PoliciesItem.ts +62 -0
- package/src/generated/model/listPoliciesDefault.ts +72 -0
- package/src/generated/model/listPoliciesOperation.ts +14 -0
- package/src/generated/model/listPoliciesParams.ts +33 -0
- package/src/generated/model/listPolicyRevisions200.ts +20 -0
- package/src/generated/model/listPolicyRevisions200RevisionsItem.ts +62 -0
- package/src/generated/model/listPolicyRevisionsDefault.ts +72 -0
- package/src/generated/model/listPolicyRevisionsParams.ts +28 -0
- package/src/generated/model/listPreviewsDefault.ts +9 -0
- package/src/generated/model/listProjectAdmins200.ts +20 -0
- package/src/generated/model/listProjectAdmins200AdminsItem.ts +31 -0
- package/src/generated/model/listProjectAdmins200AdminsItemSourcesItem.ts +57 -0
- package/src/generated/model/listProjectAdmins200AdminsItemUser.ts +40 -0
- package/src/generated/model/{createAuthAttempt409.ts → listProjectAdmins400.ts} +3 -3
- package/src/generated/model/{createAuthAttempt409Details.ts → listProjectAdmins400Details.ts} +1 -1
- package/src/generated/model/{issueChallenge409.ts → listProjectAdmins401.ts} +3 -3
- package/src/generated/model/{issueChallenge409Details.ts → listProjectAdmins401Details.ts} +1 -1
- package/src/generated/model/{getAuthAttempt409.ts → listProjectAdmins403.ts} +3 -3
- package/src/generated/model/{getHealth4xxDetails.ts → listProjectAdmins403Details.ts} +1 -1
- package/src/generated/model/{getHealth4xx.ts → listProjectAdmins404.ts} +3 -3
- package/src/generated/model/{getAuthAttempt409Details.ts → listProjectAdmins404Details.ts} +1 -1
- package/src/generated/model/listProjectAdminsDefault.ts +81 -0
- package/src/generated/model/listProjectAdminsParams.ts +23 -0
- package/src/generated/model/listReleasesDefault.ts +18 -0
- package/src/generated/model/listSchemas200SchemasItemMetadata.ts +5 -0
- package/src/generated/model/listSchemasDefault.ts +18 -0
- package/src/generated/model/listSchemasExpandItem.ts +28 -0
- package/src/generated/model/listSchemasParams.ts +5 -0
- package/src/generated/model/listUserIdentityLinksDefault.ts +18 -0
- package/src/generated/model/listUserPasskeysDefault.ts +18 -0
- package/src/generated/model/listUserTeamsDefault.ts +18 -0
- package/src/generated/model/patchMyUserDefault.ts +18 -0
- package/src/generated/model/patchProject200.ts +64 -6
- package/src/generated/model/patchProjectDefault.ts +18 -0
- package/src/generated/model/patchUserByIDDefault.ts +18 -0
- package/src/generated/model/publishPolicy201.ts +62 -0
- package/src/generated/model/publishPolicyBody.ts +47 -0
- package/src/generated/model/publishPolicyDefault.ts +99 -0
- package/src/generated/model/publishPolicyParams.ts +15 -0
- package/src/generated/model/queryGrants200GrantsItemTeam.ts +4 -1
- package/src/generated/model/queryGrantsDefault.ts +9 -0
- package/src/generated/model/queryIdpsDefault.ts +9 -0
- package/src/generated/model/queryProjectsDefault.ts +9 -0
- package/src/generated/model/querySessionsDefault.ts +9 -0
- package/src/generated/model/queryTeamsDefault.ts +9 -0
- package/src/generated/model/queryUsersBodyFilterItem.ts +11 -3
- package/src/generated/model/queryUsersBodyFilterItemField.ts +12 -3
- package/src/generated/model/queryUsersDefault.ts +9 -0
- package/src/generated/model/removeOriginDefault.ts +27 -0
- package/src/generated/model/removePreviewDefault.ts +18 -0
- package/src/generated/model/revokeMySessionDefault.ts +18 -0
- package/src/generated/model/revokeRelease200PointersItem.ts +2 -0
- package/src/generated/model/revokeRelease200PointersItemKind.ts +1 -0
- package/src/generated/model/revokeRelease409DetailsOriginsItem.ts +9 -1
- package/src/generated/model/revokeReleaseDefault.ts +63 -0
- package/src/generated/model/revokeSessionDefault.ts +18 -0
- package/src/generated/model/rollbackDeployment200ReleasePointersItem.ts +2 -0
- package/src/generated/model/rollbackDeployment200ReleasePointersItemKind.ts +1 -0
- package/src/generated/model/rollbackDeployment201ReleasePointersItem.ts +2 -0
- package/src/generated/model/rollbackDeployment201ReleasePointersItemKind.ts +1 -0
- package/src/generated/model/rollbackDeployment409.ts +3 -1
- package/src/generated/model/rollbackDeploymentDefault.ts +99 -0
- package/src/generated/model/setUserPasswordDefault.ts +18 -0
- package/src/generated/model/submitFlowStep200Step.ts +19 -0
- package/src/generated/model/submitFlowStep200StepPurpose.ts +26 -0
- package/src/generated/model/submitFlowStep400Step.ts +19 -0
- package/src/generated/model/submitFlowStep400StepPurpose.ts +26 -0
- package/src/generated/model/submitFlowStepDefault.ts +36 -0
- package/src/generated/model/updateTeamDefault.ts +18 -0
- package/src/generated/model/updateVariablesDefault.ts +18 -0
- package/src/generated/model/verifyChallengeProofDefault.ts +18 -0
- package/src/generated/operations.ts +212 -29
- package/src/runtime/config.spec.ts +2 -2
- package/src/runtime/fetch.spec.ts +13 -1
- package/src/runtime/fetch.ts +15 -2
- package/dist/fetch-DD3lSbnp.d.mts.map +0 -1
- package/dist/index-DuuFQkA8.d.mts.map +0 -1
- package/dist/zitadelNextGen-BdUDEEuX.d.mts.map +0 -1
- package/src/generated/model/getHealthDefault.ts +0 -27
- package/src/generated/model/getProject200OriginsItem.ts +0 -23
- package/src/generated/model/getProject200OriginsItemKind.ts +0 -15
- package/src/generated/model/getProject200PasswordHash.ts +0 -42
- package/src/generated/model/getProject200PasswordHashAlgorithm.ts +0 -24
- package/src/generated/model/getProject200PasswordHashParams.ts +0 -47
- package/src/generated/model/getProject200PasswordHashParamsHash.ts +0 -24
- package/src/generated/model/patchProject200OriginsItem.ts +0 -23
- package/src/generated/model/patchProject200OriginsItemKind.ts +0 -15
- package/src/generated/model/patchProject200PasswordHash.ts +0 -42
- package/src/generated/model/patchProject200PasswordHashAlgorithm.ts +0 -24
- package/src/generated/model/patchProject200PasswordHashParams.ts +0 -47
- package/src/generated/model/patchProject200PasswordHashParamsHash.ts +0 -24
|
@@ -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()
|
|
@@ -120,7 +121,7 @@ export const QueryUsersBody = zod.object({
|
|
|
120
121
|
"direction": zod.enum(['asc', 'desc'])
|
|
121
122
|
}).optional(),
|
|
122
123
|
"filter": zod.array(zod.object({
|
|
123
|
-
"field": zod.enum(['created_at', 'id', 'schema', 'status', 'team_id', 'lifecycle_owner_team_id']).describe('Field to filter users by:\n- `created_at`: RFC3339 timestamp\n- `id`: user id\n- `schema`: the schema the user\'s attributes satisfy, matched against the\n value the user carries as `schema`\n- `status`: one of `active`, `suspended`, `deactivated`, `pending_purge`\n- `team_id`: restricts the result to users holding an **active** membership\n in that team. A user who has been invited but has not accepted does not\n match. `equals` is the only operation, and the field may be given once —\n this names one team, not a set.\n- `lifecycle_owner_team_id`: the team that owns the user\'s identity\n lifecycle. The column is nullable for self-owned users, and a null filter\n value is rejected, so self-owned users cannot be selected by this field.\n\n**The two team fields answer different questions.** `team_id` is membership:\nwhich team the user collaborates in, readable per user at\n`GET /users/{user_id}/teams`. `lifecycle_owner_team_id` is ownership: which\nteam may deprovision the user. A user can belong to many teams while owning\ntheir own lifecycle, so the two disagree often and neither implies the other\n(ADR 024).\n\n`team_id`
|
|
124
|
+
"field": zod.enum(['created_at', 'id', 'schema', 'schema_object_type', 'status', 'team_id', 'lifecycle_owner_team_id']).describe('Field to filter users by:\n- `created_at`: RFC3339 timestamp\n- `id`: user id\n- `schema`: the schema the user\'s attributes satisfy, matched against the\n value the user carries as `schema`. Each revision of a schema has its own\n URL, so `equals` selects the users on one revision and `not_equals` the\n users on any other.\n- `schema_object_type`: the `object_type` of the user\'s schema, which every\n revision of that schema shares. It may be repeated, like any field: give\n `not_equals` once per object type to exclude several. A schema without an\n object type reads as `""`, so `not_equals` matches its users and `equals`\n `""` selects them. Combine `equals` here with `schema` `not_equals` the\n newest revision to find the users still on an older one.\n- `status`: one of `active`, `suspended`, `deactivated`, `pending_purge`\n- `team_id`: restricts the result to users holding an **active** membership\n in that team. A user who has been invited but has not accepted does not\n match. `equals` is the only operation, and the field may be given once —\n this names one team, not a set.\n- `lifecycle_owner_team_id`: the team that owns the user\'s identity\n lifecycle. The column is nullable for self-owned users, and a null filter\n value is rejected, so self-owned users cannot be selected by this field.\n\n**The two team fields answer different questions.** `team_id` is membership:\nwhich team the user collaborates in, readable per user at\n`GET /users/{user_id}/teams`. `lifecycle_owner_team_id` is ownership: which\nteam may deprovision the user. A user can belong to many teams while owning\ntheir own lifecycle, so the two disagree often and neither implies the other\n(ADR 024).\n\n`team_id` and `schema_object_type` are filterable but not sortable: neither\nis a column on the user, so both are absent from the sort-field enum.\n\nFiltering on `team_id` requires `team_membership.read` in addition to\n`user.read`: it reads the same memberships that `expand: ["teams"]` embeds.\nA Console session, which carries no scopes, may filter on it when it may read\nthe whole project (the `viewer` role or above); with a grant covering only\npart of the project the filter is refused with `403 user.permission_denied`.\n'),
|
|
124
125
|
"value": zod.union([zod.string(),zod.number(),zod.boolean(),zod.null()]).optional().describe('Filter-value specifies which values can be filtered by a query endpoint. This\nis a union of types. When a value is specified which is not assignable to the\nfield which is being filtered, a 400 error will be returned.\n'),
|
|
125
126
|
"operation": zod.enum(['equals', 'not_equals', 'contains', 'not_contains', 'less_than', 'less_than_or_equal', 'greater_than', 'greater_than_or_equal']).describe('Filter operation defines the operations which can be used when filtering on a\nquery endpoint.\n\nOn text fields, `contains` is a case-insensitive substring match. `equals`\ncompares the whole value and is case-sensitive unless the field documents\notherwise.\n')
|
|
126
127
|
})).optional().describe('Filter criteria for querying users. Criteria are combined with AND.')
|
|
@@ -275,9 +276,11 @@ export const PatchUserByIDResponse = zod.object({
|
|
|
275
276
|
|
|
276
277
|
|
|
277
278
|
/**
|
|
278
|
-
* Deletes a user
|
|
279
|
+
* Deletes a user, removes them from every team they belong to, and revokes
|
|
280
|
+
* every grant they hold, on any project.
|
|
279
281
|
*
|
|
280
|
-
* The user is removed, not deactivated, and the deletion emits `user.deleted
|
|
282
|
+
* The user is removed, not deactivated, and the deletion emits `user.deleted`,
|
|
283
|
+
* plus `authz.revoked` for each grant on that grant's project.
|
|
281
284
|
* With a project secret the request is idempotent: deleting a user that exists
|
|
282
285
|
* in no project succeeds without changing anything.
|
|
283
286
|
* @summary Delete user by ID
|
|
@@ -687,14 +690,20 @@ export const GetMyPasswordStateResponse = zod.object({
|
|
|
687
690
|
|
|
688
691
|
|
|
689
692
|
/**
|
|
690
|
-
* The projects the signed-in user
|
|
691
|
-
* through a team they are a member of.
|
|
692
|
-
*
|
|
693
|
+
* The projects the signed-in user can act on: those they hold an active grant
|
|
694
|
+
* on, either directly or through a team they are a member of. For a platform
|
|
695
|
+
* operator (ADR 075) that is every project of the deployment. Ordered by
|
|
696
|
+
* project id and paged with an opaque cursor.
|
|
693
697
|
*
|
|
694
698
|
* This is not the same question as `queryProjects`, which answers with the one
|
|
695
699
|
* project the calling credential is bound to. Here the session is the caller
|
|
696
700
|
* and the grants are the answer, so the list spans projects.
|
|
697
701
|
*
|
|
702
|
+
* With `name_contains`, only the projects whose name contains that text are
|
|
703
|
+
* listed. The search runs on the server together with the grants, so it
|
|
704
|
+
* reaches every project the user can act on, however many there are, and
|
|
705
|
+
* pages like the full list.
|
|
706
|
+
*
|
|
698
707
|
* With `project_id`, the projects are listed only when the session belongs to
|
|
699
708
|
* that project. It names the project the session was signed in to, not one to
|
|
700
709
|
* list.
|
|
@@ -709,6 +718,7 @@ export const listMyProjectsQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$')
|
|
|
709
718
|
export const ListMyProjectsQueryParams = zod.strictObject({
|
|
710
719
|
"limit": zod.int().min(1).max(listMyProjectsQueryLimitMax).default(listMyProjectsQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
711
720
|
"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'),
|
|
721
|
+
"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
722
|
"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
723
|
})
|
|
714
724
|
|
|
@@ -732,7 +742,7 @@ export const ListMyProjectsResponse = zod.object({
|
|
|
732
742
|
"rounds": zod.int().optional().describe('pbkdf2 or sha2 iteration count.'),
|
|
733
743
|
"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
744
|
}).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
|
|
745
|
+
}).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
746
|
}).describe('The current state of a project.')),
|
|
737
747
|
"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
748
|
}).describe('Paginated list of projects, ordered by project id.')
|
|
@@ -800,7 +810,8 @@ export const GetMyUserSchemaResponse = zod.object({
|
|
|
800
810
|
}).describe('The meta-schema one property of a customer\'s user schema is validated\nagainst. The generated `user-property.json` adds\n`allOf: [{$ref: draft-2020-12}]`, which cannot live here because code\ngenerators choke on it.\n\nNative JSON Schema keywords such as `type`, `format`, `title` and `writeOnly`\nare accepted without being listed below. `writeOnly: true` is reserved for a\nvalue that may be written but is never returned by the read API; nothing\nenforces it today, so responses still include write-only properties.\n')).optional().describe('A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n')
|
|
801
811
|
}).describe('The meta-schema a customer\'s user schema document is validated against.\nThe generated `user-schema.json` adds `allOf: [{$ref: draft-2020-12}]`,\nwhich cannot live here because code generators choke on it.\n').describe('The customer-authored JSON Schema document, served verbatim.'),
|
|
802
812
|
"metadata": zod.object({
|
|
803
|
-
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the schema was created.')
|
|
813
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the schema was created.'),
|
|
814
|
+
"in_use": zod.boolean().optional().describe('Whether any user of the project is on this revision. Only set when\n`GET /schemas` is asked for it with `expand=in_use`; omitted otherwise.\n')
|
|
804
815
|
})
|
|
805
816
|
}).describe('A schema resource: the server-owned envelope around a customer-authored\nJSON Schema document.\n\n`schema` is the customer-authored document, served verbatim: its keys and\ncontents are defined entirely by its author. The rest of the object — `id`,\n`metadata` — is the server-owned envelope. Keeping the two apart means the\ndocument may declare any property (including `id` or `metadata`) without\ncolliding with the envelope, and the resource `id` stays distinguishable\nfrom the document\'s own `$id`.\n')
|
|
806
817
|
|
|
@@ -852,7 +863,10 @@ export const ListMyTeamsResponse = zod.object({
|
|
|
852
863
|
* pattern with no live preview answers `403` with `proj.preview_not_live`;
|
|
853
864
|
* nothing deployed to the target answers `409` with `rel.not_deployed`; a
|
|
854
865
|
* revoked release answers `409` with `rel.revoked`. A request with no
|
|
855
|
-
* `Origin` passes the gate and still needs a deployment target.
|
|
866
|
+
* `Origin` passes the gate and still needs a deployment target. A loopback
|
|
867
|
+
* origin passes it too, and so does the server's own origin, from which its
|
|
868
|
+
* console previews a project's login; a step submitted from the server's
|
|
869
|
+
* own origin is still refused unless the project lists it.
|
|
856
870
|
*
|
|
857
871
|
* The response contains an `id` field — the flow handle. Use it as the path
|
|
858
872
|
* parameter for all subsequent `/flow/{id}/submit` calls.
|
|
@@ -1047,6 +1061,8 @@ export const CreateFlowResponse = zod.object({
|
|
|
1047
1061
|
"title_key": zod.string().optional().describe('Localization key for the step heading.'),
|
|
1048
1062
|
"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
1063
|
}).optional().describe('Step-level localization keys. Resolved client-side via the `| t` LiquidJS filter.\nThe backend never sends display text — only semantic keys.\n'),
|
|
1064
|
+
"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'),
|
|
1065
|
+
"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
1066
|
"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
1067
|
"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
1068
|
"redirect_url": zod.url().optional().describe('URL to navigate to (e.g., SSO provider redirect).'),
|
|
@@ -1318,6 +1334,8 @@ export const GetFlowStepResponse = zod.object({
|
|
|
1318
1334
|
"title_key": zod.string().optional().describe('Localization key for the step heading.'),
|
|
1319
1335
|
"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
1336
|
}).optional().describe('Step-level localization keys. Resolved client-side via the `| t` LiquidJS filter.\nThe backend never sends display text — only semantic keys.\n'),
|
|
1337
|
+
"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'),
|
|
1338
|
+
"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
1339
|
"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
1340
|
"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
1341
|
"redirect_url": zod.url().optional().describe('URL to navigate to (e.g., SSO provider redirect).'),
|
|
@@ -1657,6 +1675,8 @@ export const SubmitFlowStepResponse = zod.object({
|
|
|
1657
1675
|
"title_key": zod.string().optional().describe('Localization key for the step heading.'),
|
|
1658
1676
|
"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
1677
|
}).optional().describe('Step-level localization keys. Resolved client-side via the `| t` LiquidJS filter.\nThe backend never sends display text — only semantic keys.\n'),
|
|
1678
|
+
"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'),
|
|
1679
|
+
"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
1680
|
"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
1681
|
"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
1682
|
"redirect_url": zod.url().optional().describe('URL to navigate to (e.g., SSO provider redirect).'),
|
|
@@ -1770,10 +1790,10 @@ export const SubmitFlowStepResponse = zod.object({
|
|
|
1770
1790
|
* also include session_id and that session's session_token to add factors to an existing session.
|
|
1771
1791
|
*
|
|
1772
1792
|
* The project comes from the project secret. A body `project_id` that disagrees
|
|
1773
|
-
* answers `403` with `proj.mismatch`.
|
|
1774
|
-
*
|
|
1775
|
-
*
|
|
1776
|
-
*
|
|
1793
|
+
* answers `403` with `proj.mismatch`. Sealed `deployment_id` / `release_id` are
|
|
1794
|
+
* filled only when create runs with a runtime resolution already on the
|
|
1795
|
+
* context (the flow create path); this HTTP entry point does not resolve
|
|
1796
|
+
* Origin or refuse a revoked release itself.
|
|
1777
1797
|
* @summary Create a new authentication attempt
|
|
1778
1798
|
*/
|
|
1779
1799
|
export const createAuthAttemptBodyProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -1854,9 +1874,6 @@ export const CreateAuthAttemptResponse = zod.object({
|
|
|
1854
1874
|
*
|
|
1855
1875
|
* Use this for polling during long-running factor verifications (e.g., waiting for
|
|
1856
1876
|
* 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
1877
|
* @summary Get authentication attempt state
|
|
1861
1878
|
*/
|
|
1862
1879
|
export const getAuthAttemptPathAttemptIdRegExp = new RegExp('^att_[a-zA-Z0-9_-]+$');
|
|
@@ -1932,9 +1949,6 @@ export const GetAuthAttemptResponse = zod.object({
|
|
|
1932
1949
|
* (password, passkey, TOTP, OTP via SMS, etc.). The server responds with challenge details
|
|
1933
1950
|
* including method, metadata, and any UI hints. The client then verifies the proof
|
|
1934
1951
|
* 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
1952
|
* @summary Issue a factor challenge
|
|
1939
1953
|
*/
|
|
1940
1954
|
export const issueChallengePathAttemptIdRegExp = new RegExp('^att_[a-zA-Z0-9_-]+$');
|
|
@@ -1991,9 +2005,6 @@ export const IssueChallengeResponse = zod.object({
|
|
|
1991
2005
|
*
|
|
1992
2006
|
* On successful verification, the factor is written to the auth attempt.
|
|
1993
2007
|
* 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
2008
|
* @summary Verify a factor proof
|
|
1998
2009
|
*/
|
|
1999
2010
|
export const verifyChallengeProofPathAttemptIdRegExp = new RegExp('^att_[a-zA-Z0-9_-]+$');
|
|
@@ -2090,8 +2101,7 @@ export const VerifyChallengeProofResponse = zod.object({
|
|
|
2090
2101
|
* - Audience-bound (requires matching project key for exchange)
|
|
2091
2102
|
* - Idempotency-safe within a 5-minute window (see conventions)
|
|
2092
2103
|
*
|
|
2093
|
-
*
|
|
2094
|
-
* was revoked since, the response is `409` with `rel.revoked`.
|
|
2104
|
+
* Revoke refusal for a sealed release happens at handoff exchange, not here.
|
|
2095
2105
|
* @summary Complete authentication and create handoff token
|
|
2096
2106
|
*/
|
|
2097
2107
|
export const createHandoffPathAttemptIdRegExp = new RegExp('^att_[a-zA-Z0-9_-]+$');
|
|
@@ -2192,7 +2202,7 @@ export const QueryProjectsResponse = zod.object({
|
|
|
2192
2202
|
"rounds": zod.int().optional().describe('pbkdf2 or sha2 iteration count.'),
|
|
2193
2203
|
"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
2204
|
}).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
|
|
2205
|
+
}).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
2206
|
}).describe('The current state of a project.')),
|
|
2197
2207
|
"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
2208
|
}).describe('Paginated list of projects.')
|
|
@@ -2209,6 +2219,9 @@ export const GetProjectParams = zod.object({
|
|
|
2209
2219
|
"project_id": zod.string().regex(getProjectPathProjectIdRegExp).describe('The unique identifier of the project.')
|
|
2210
2220
|
})
|
|
2211
2221
|
|
|
2222
|
+
export const getProjectResponseTwoOwningTeamIdOneRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
2223
|
+
|
|
2224
|
+
|
|
2212
2225
|
export const GetProjectResponse = zod.object({
|
|
2213
2226
|
"id": zod.string().describe('The unique identifier of the project.'),
|
|
2214
2227
|
"name": zod.string().describe('The name of the project.'),
|
|
@@ -2228,8 +2241,10 @@ export const GetProjectResponse = zod.object({
|
|
|
2228
2241
|
"rounds": zod.int().optional().describe('pbkdf2 or sha2 iteration count.'),
|
|
2229
2242
|
"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
2243
|
}).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.')
|
|
2244
|
+
}).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')
|
|
2245
|
+
}).describe('The current state of a project.').and(zod.object({
|
|
2246
|
+
"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')
|
|
2247
|
+
})).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
2248
|
|
|
2234
2249
|
|
|
2235
2250
|
/**
|
|
@@ -2255,9 +2270,12 @@ export const PatchProjectBody = zod.object({
|
|
|
2255
2270
|
"rounds": zod.int().optional().describe('pbkdf2 or sha2 iteration count.'),
|
|
2256
2271
|
"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
2272
|
}).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
|
|
2273
|
+
}).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
2274
|
})
|
|
2260
2275
|
|
|
2276
|
+
export const patchProjectResponseTwoOwningTeamIdOneRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
2277
|
+
|
|
2278
|
+
|
|
2261
2279
|
export const PatchProjectResponse = zod.object({
|
|
2262
2280
|
"id": zod.string().describe('The unique identifier of the project.'),
|
|
2263
2281
|
"name": zod.string().describe('The name of the project.'),
|
|
@@ -2277,8 +2295,89 @@ export const PatchProjectResponse = zod.object({
|
|
|
2277
2295
|
"rounds": zod.int().optional().describe('pbkdf2 or sha2 iteration count.'),
|
|
2278
2296
|
"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
2297
|
}).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.')
|
|
2298
|
+
}).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')
|
|
2299
|
+
}).describe('The current state of a project.').and(zod.object({
|
|
2300
|
+
"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')
|
|
2301
|
+
})).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')
|
|
2302
|
+
|
|
2303
|
+
|
|
2304
|
+
/**
|
|
2305
|
+
* Lists the people who can administer the project, and how each of them
|
|
2306
|
+
* gets that access. A person appears once, with one entry in `sources` per
|
|
2307
|
+
* way they hold it:
|
|
2308
|
+
*
|
|
2309
|
+
* - `owning_team`: an active member of the team that owns the project
|
|
2310
|
+
* (ADR 054 §2). Removing a grant does not remove this access; it ends
|
|
2311
|
+
* only when the person leaves the team or the project changes owner.
|
|
2312
|
+
* - `grant`: an unexpired `admin` grant on the project, either to the
|
|
2313
|
+
* person (`grant_id` only) or to a team they are an active member of
|
|
2314
|
+
* (`grant_id` and `team`). Revoking that grant removes this source.
|
|
2315
|
+
*
|
|
2316
|
+
* The list follows the authorization check: team membership is read from
|
|
2317
|
+
* the same membership projection the check expands, so a person who left a
|
|
2318
|
+
* team, or whose team or user was deactivated, is not listed through it.
|
|
2319
|
+
* Grants that expired or carry a lower role are left out. A person whose
|
|
2320
|
+
* only access is a `viewer` or `editor` grant is not an admin and is not
|
|
2321
|
+
* listed. Like the check, the list does not look at a person's user status
|
|
2322
|
+
* beyond that, so a direct grant to a suspended person is listed.
|
|
2323
|
+
*
|
|
2324
|
+
* A person whose access comes only through teams the caller is not a
|
|
2325
|
+
* member of is left out, and a team the caller is not in is named by
|
|
2326
|
+
* `team_id` only. The grant to such a team still shows in the project's
|
|
2327
|
+
* grants.
|
|
2328
|
+
*
|
|
2329
|
+
* Ordered by `user_id` and paginated with `page_token`.
|
|
2330
|
+
*
|
|
2331
|
+
* Accepts either a project secret (`oauth2`) or a user-bound Console
|
|
2332
|
+
* session cookie (`nextgenSession`) that can read the project.
|
|
2333
|
+
* @summary List project admins
|
|
2334
|
+
*/
|
|
2335
|
+
export const listProjectAdminsPathProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
2336
|
+
|
|
2337
|
+
|
|
2338
|
+
export const ListProjectAdminsParams = zod.object({
|
|
2339
|
+
"project_id": zod.string().regex(listProjectAdminsPathProjectIdRegExp)
|
|
2340
|
+
})
|
|
2341
|
+
|
|
2342
|
+
export const listProjectAdminsQueryLimitDefault = 20;
|
|
2343
|
+
export const listProjectAdminsQueryLimitMax = 100;
|
|
2344
|
+
|
|
2345
|
+
|
|
2346
|
+
|
|
2347
|
+
export const ListProjectAdminsQueryParams = zod.strictObject({
|
|
2348
|
+
"limit": zod.int().min(1).max(listProjectAdminsQueryLimitMax).default(listProjectAdminsQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
2349
|
+
"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')
|
|
2350
|
+
})
|
|
2351
|
+
|
|
2352
|
+
export const listProjectAdminsResponseAdminsItemUserUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
2353
|
+
|
|
2354
|
+
|
|
2355
|
+
|
|
2356
|
+
export const ListProjectAdminsResponse = zod.object({
|
|
2357
|
+
"admins": zod.array(zod.object({
|
|
2358
|
+
"user": zod.object({
|
|
2359
|
+
"user_id": zod.string().regex(listProjectAdminsResponseAdminsItemUserUserIdRegExp),
|
|
2360
|
+
"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'),
|
|
2361
|
+
"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'),
|
|
2362
|
+
"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')
|
|
2363
|
+
}).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'),
|
|
2364
|
+
"sources": zod.array(zod.union([zod.object({
|
|
2365
|
+
"type": zod.enum(['owning_team']),
|
|
2366
|
+
"team": zod.object({
|
|
2367
|
+
"team_id": zod.string().describe('The referenced team\'s id (`team_<opaque>`). Always present.'),
|
|
2368
|
+
"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')
|
|
2369
|
+
}).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')
|
|
2370
|
+
}).describe('Admin access as an active member of the team that owns the project.'),zod.object({
|
|
2371
|
+
"type": zod.enum(['grant']),
|
|
2372
|
+
"grant_id": zod.string().describe('The grant (`asgn_<opaque>`), as served by `GET /grants/{id}`.'),
|
|
2373
|
+
"team": zod.object({
|
|
2374
|
+
"team_id": zod.string().describe('The referenced team\'s id (`team_<opaque>`). Always present.'),
|
|
2375
|
+
"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')
|
|
2376
|
+
}).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')
|
|
2377
|
+
}).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')
|
|
2378
|
+
}).describe('One person who can administer the project, with every way they hold that\naccess.\n')),
|
|
2379
|
+
"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')
|
|
2380
|
+
}).describe('A page of the people who administer a project.')
|
|
2282
2381
|
|
|
2283
2382
|
|
|
2284
2383
|
/**
|
|
@@ -3069,7 +3168,8 @@ export const ListSchemasQueryParams = zod.strictObject({
|
|
|
3069
3168
|
"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'),
|
|
3070
3169
|
"object_type": zod.string().max(listSchemasQueryObjectTypeMax).optional().describe('The type of object of the schema to filter by.'),
|
|
3071
3170
|
"revisions": zod.enum(['all', 'latest']).default(listSchemasQueryRevisionsDefault).describe('Which revisions to return. Schemas are immutable and versioned by URL,\nso editing one mints a new row sharing its `objectType`.\n\n`all` (the default) returns every revision — the full history an\nexport, an audit or a GitOps diff needs. `latest` returns the newest\nrevision of each `objectType`, which is one row per schema.\n\nA schema stored without an `objectType` is a revision of nothing, and\nis returned by both.\n\nA `page_token` is bound to the mode it was issued in and is rejected by\nthe other.\n'),
|
|
3072
|
-
"kind": zod.enum(['user-schema']).optional().describe('The kind of schema to filter by, read from the stored document\'s\n`kind` property.\n\n`schema-url` is not a kind: it discriminates the create request body,\nnot a stored schema. A schema registered by URL is stored as whatever\ndocument the URL served, and declares its own kind.\n\nA schema stored without its document being parsed has no kind that\ncould be read, and is excluded from every filtered result.\n')
|
|
3171
|
+
"kind": zod.enum(['user-schema']).optional().describe('The kind of schema to filter by, read from the stored document\'s\n`kind` property.\n\n`schema-url` is not a kind: it discriminates the create request body,\nnot a stored schema. A schema registered by URL is stored as whatever\ndocument the URL served, and declares its own kind.\n\nA schema stored without its document being parsed has no kind that\ncould be read, and is excluded from every filtered result.\n'),
|
|
3172
|
+
"expand": zod.array(zod.enum(['in_use']).describe('Extra fields to add onto each returned schema (ADR 059).\n\n- `in_use`: whether any user of the project is on this revision, as\n `metadata.in_use`. A revision in use cannot be deleted, and the users on it\n are found with `POST /users/query` filtering on `schema`. The property is\n omitted entirely when not requested, so "did not ask" is distinguishable\n from `false`.\n\n The flag counts every user of the project, not only those the caller may\n list, so it requires read on the whole project, and for a token also\n `user.read` in addition to `schema.read`. A caller without them is refused\n with `403`.\n')).optional().describe('Extra fields to add onto each returned schema.')
|
|
3073
3173
|
})
|
|
3074
3174
|
|
|
3075
3175
|
export const listSchemasResponseSchemasItemSchemaOneObjectTypeMax = 256;
|
|
@@ -3121,7 +3221,8 @@ export const ListSchemasResponse = zod.object({
|
|
|
3121
3221
|
}).describe('The meta-schema one property of a customer\'s user schema is validated\nagainst. The generated `user-property.json` adds\n`allOf: [{$ref: draft-2020-12}]`, which cannot live here because code\ngenerators choke on it.\n\nNative JSON Schema keywords such as `type`, `format`, `title` and `writeOnly`\nare accepted without being listed below. `writeOnly: true` is reserved for a\nvalue that may be written but is never returned by the read API; nothing\nenforces it today, so responses still include write-only properties.\n')).optional().describe('A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n')
|
|
3122
3222
|
}).describe('The meta-schema a customer\'s user schema document is validated against.\nThe generated `user-schema.json` adds `allOf: [{$ref: draft-2020-12}]`,\nwhich cannot live here because code generators choke on it.\n').describe('The customer-authored JSON Schema document, served verbatim.'),
|
|
3123
3223
|
"metadata": zod.object({
|
|
3124
|
-
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the schema was created.')
|
|
3224
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the schema was created.'),
|
|
3225
|
+
"in_use": zod.boolean().optional().describe('Whether any user of the project is on this revision. Only set when\n`GET /schemas` is asked for it with `expand=in_use`; omitted otherwise.\n')
|
|
3125
3226
|
})
|
|
3126
3227
|
}).describe('A schema resource: the server-owned envelope around a customer-authored\nJSON Schema document.\n\n`schema` is the customer-authored document, served verbatim: its keys and\ncontents are defined entirely by its author. The rest of the object — `id`,\n`metadata` — is the server-owned envelope. Keeping the two apart means the\ndocument may declare any property (including `id` or `metadata`) without\ncolliding with the envelope, and the resource `id` stays distinguishable\nfrom the document\'s own `$id`.\n')),
|
|
3127
3228
|
"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')
|
|
@@ -3202,7 +3303,8 @@ export const GetSchemaByIdResponse = zod.object({
|
|
|
3202
3303
|
}).describe('The meta-schema one property of a customer\'s user schema is validated\nagainst. The generated `user-property.json` adds\n`allOf: [{$ref: draft-2020-12}]`, which cannot live here because code\ngenerators choke on it.\n\nNative JSON Schema keywords such as `type`, `format`, `title` and `writeOnly`\nare accepted without being listed below. `writeOnly: true` is reserved for a\nvalue that may be written but is never returned by the read API; nothing\nenforces it today, so responses still include write-only properties.\n')).optional().describe('A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n')
|
|
3203
3304
|
}).describe('The meta-schema a customer\'s user schema document is validated against.\nThe generated `user-schema.json` adds `allOf: [{$ref: draft-2020-12}]`,\nwhich cannot live here because code generators choke on it.\n').describe('The customer-authored JSON Schema document, served verbatim.'),
|
|
3204
3305
|
"metadata": zod.object({
|
|
3205
|
-
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the schema was created.')
|
|
3306
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the schema was created.'),
|
|
3307
|
+
"in_use": zod.boolean().optional().describe('Whether any user of the project is on this revision. Only set when\n`GET /schemas` is asked for it with `expand=in_use`; omitted otherwise.\n')
|
|
3206
3308
|
})
|
|
3207
3309
|
}).describe('A schema resource: the server-owned envelope around a customer-authored\nJSON Schema document.\n\n`schema` is the customer-authored document, served verbatim: its keys and\ncontents are defined entirely by its author. The rest of the object — `id`,\n`metadata` — is the server-owned envelope. Keeping the two apart means the\ndocument may declare any property (including `id` or `metadata`) without\ncolliding with the envelope, and the resource `id` stays distinguishable\nfrom the document\'s own `$id`.\n')
|
|
3208
3310
|
|
|
@@ -3373,7 +3475,8 @@ export const CreateFlowDefinitionResponse = zod.object({
|
|
|
3373
3475
|
}).describe('The meta-schema one property of a customer\'s user schema is validated\nagainst. The generated `user-property.json` adds\n`allOf: [{$ref: draft-2020-12}]`, which cannot live here because code\ngenerators choke on it.\n\nNative JSON Schema keywords such as `type`, `format`, `title` and `writeOnly`\nare accepted without being listed below. `writeOnly: true` is reserved for a\nvalue that may be written but is never returned by the read API; nothing\nenforces it today, so responses still include write-only properties.\n')).optional().describe('A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n')
|
|
3374
3476
|
}).describe('The meta-schema a customer\'s user schema document is validated against.\nThe generated `user-schema.json` adds `allOf: [{$ref: draft-2020-12}]`,\nwhich cannot live here because code generators choke on it.\n').describe('The customer-authored JSON Schema document, served verbatim.'),
|
|
3375
3477
|
"metadata": zod.object({
|
|
3376
|
-
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the schema was created.')
|
|
3478
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the schema was created.'),
|
|
3479
|
+
"in_use": zod.boolean().optional().describe('Whether any user of the project is on this revision. Only set when\n`GET /schemas` is asked for it with `expand=in_use`; omitted otherwise.\n')
|
|
3377
3480
|
})
|
|
3378
3481
|
}).describe('A schema resource: the server-owned envelope around a customer-authored\nJSON Schema document.\n\n`schema` is the customer-authored document, served verbatim: its keys and\ncontents are defined entirely by its author. The rest of the object — `id`,\n`metadata` — is the server-owned envelope. Keeping the two apart means the\ndocument may declare any property (including `id` or `metadata`) without\ncolliding with the envelope, and the resource `id` stays distinguishable\nfrom the document\'s own `$id`.\n'),zod.null()]).optional().describe('The user schema this flow operates on: the same object\n`GET /schemas/{id}` returns. Present only when the request asked for it\nwith `expand=user_schema`; `null` when it was requested but the\nreferenced schema no longer resolves or the caller may not read it.\n'),
|
|
3379
3482
|
"created_at": zod.iso.datetime({"offset":true}),
|
|
@@ -3503,7 +3606,8 @@ export const ListFlowDefinitionsResponse = zod.object({
|
|
|
3503
3606
|
}).describe('The meta-schema one property of a customer\'s user schema is validated\nagainst. The generated `user-property.json` adds\n`allOf: [{$ref: draft-2020-12}]`, which cannot live here because code\ngenerators choke on it.\n\nNative JSON Schema keywords such as `type`, `format`, `title` and `writeOnly`\nare accepted without being listed below. `writeOnly: true` is reserved for a\nvalue that may be written but is never returned by the read API; nothing\nenforces it today, so responses still include write-only properties.\n')).optional().describe('A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n')
|
|
3504
3607
|
}).describe('The meta-schema a customer\'s user schema document is validated against.\nThe generated `user-schema.json` adds `allOf: [{$ref: draft-2020-12}]`,\nwhich cannot live here because code generators choke on it.\n').describe('The customer-authored JSON Schema document, served verbatim.'),
|
|
3505
3608
|
"metadata": zod.object({
|
|
3506
|
-
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the schema was created.')
|
|
3609
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the schema was created.'),
|
|
3610
|
+
"in_use": zod.boolean().optional().describe('Whether any user of the project is on this revision. Only set when\n`GET /schemas` is asked for it with `expand=in_use`; omitted otherwise.\n')
|
|
3507
3611
|
})
|
|
3508
3612
|
}).describe('A schema resource: the server-owned envelope around a customer-authored\nJSON Schema document.\n\n`schema` is the customer-authored document, served verbatim: its keys and\ncontents are defined entirely by its author. The rest of the object — `id`,\n`metadata` — is the server-owned envelope. Keeping the two apart means the\ndocument may declare any property (including `id` or `metadata`) without\ncolliding with the envelope, and the resource `id` stays distinguishable\nfrom the document\'s own `$id`.\n'),zod.null()]).optional().describe('The user schema this flow operates on: the same object\n`GET /schemas/{id}` returns. Present only when the request asked for it\nwith `expand=user_schema`; `null` when it was requested but the\nreferenced schema no longer resolves or the caller may not read it.\n'),
|
|
3509
3613
|
"created_at": zod.iso.datetime({"offset":true}),
|
|
@@ -3619,7 +3723,8 @@ export const GetFlowDefinitionResponse = zod.object({
|
|
|
3619
3723
|
}).describe('The meta-schema one property of a customer\'s user schema is validated\nagainst. The generated `user-property.json` adds\n`allOf: [{$ref: draft-2020-12}]`, which cannot live here because code\ngenerators choke on it.\n\nNative JSON Schema keywords such as `type`, `format`, `title` and `writeOnly`\nare accepted without being listed below. `writeOnly: true` is reserved for a\nvalue that may be written but is never returned by the read API; nothing\nenforces it today, so responses still include write-only properties.\n')).optional().describe('A map of additional properties for the user definition, where the\nkey is the property name and the value is the property schema\n')
|
|
3620
3724
|
}).describe('The meta-schema a customer\'s user schema document is validated against.\nThe generated `user-schema.json` adds `allOf: [{$ref: draft-2020-12}]`,\nwhich cannot live here because code generators choke on it.\n').describe('The customer-authored JSON Schema document, served verbatim.'),
|
|
3621
3725
|
"metadata": zod.object({
|
|
3622
|
-
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the schema was created.')
|
|
3726
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('The time when the schema was created.'),
|
|
3727
|
+
"in_use": zod.boolean().optional().describe('Whether any user of the project is on this revision. Only set when\n`GET /schemas` is asked for it with `expand=in_use`; omitted otherwise.\n')
|
|
3623
3728
|
})
|
|
3624
3729
|
}).describe('A schema resource: the server-owned envelope around a customer-authored\nJSON Schema document.\n\n`schema` is the customer-authored document, served verbatim: its keys and\ncontents are defined entirely by its author. The rest of the object — `id`,\n`metadata` — is the server-owned envelope. Keeping the two apart means the\ndocument may declare any property (including `id` or `metadata`) without\ncolliding with the envelope, and the resource `id` stays distinguishable\nfrom the document\'s own `$id`.\n'),zod.null()]).optional().describe('The user schema this flow operates on: the same object\n`GET /schemas/{id}` returns. Present only when the request asked for it\nwith `expand=user_schema`; `null` when it was requested but the\nreferenced schema no longer resolves or the caller may not read it.\n'),
|
|
3625
3730
|
"created_at": zod.iso.datetime({"offset":true}),
|
|
@@ -4876,6 +4981,346 @@ export const GetIdpRevisionByIdResponse = zod.object({
|
|
|
4876
4981
|
}).describe('An identity provider connection.\n')
|
|
4877
4982
|
|
|
4878
4983
|
|
|
4984
|
+
/**
|
|
4985
|
+
* Lists the project's policies, one per operation, each as its newest
|
|
4986
|
+
* revision, ordered by `created_at` (first publish) and then `id`. Filter
|
|
4987
|
+
* by `operation` to read the policy of one operation; a project that never
|
|
4988
|
+
* published one gets an empty list.
|
|
4989
|
+
*
|
|
4990
|
+
* The lookup is scoped to the project in `project_id`.
|
|
4991
|
+
* @summary List policies
|
|
4992
|
+
*/
|
|
4993
|
+
export const listPoliciesQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
4994
|
+
export const listPoliciesQueryLimitDefault = 20;
|
|
4995
|
+
export const listPoliciesQueryLimitMax = 100;
|
|
4996
|
+
|
|
4997
|
+
|
|
4998
|
+
|
|
4999
|
+
export const ListPoliciesQueryParams = zod.strictObject({
|
|
5000
|
+
"project_id": zod.string().regex(listPoliciesQueryProjectIdRegExp).describe('The unique identifier of the project'),
|
|
5001
|
+
"limit": zod.int().min(1).max(listPoliciesQueryLimitMax).default(listPoliciesQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
5002
|
+
"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'),
|
|
5003
|
+
"operation": zod.enum(['auth.factor.password.set']).optional().describe('Only the policy of this operation.')
|
|
5004
|
+
})
|
|
5005
|
+
|
|
5006
|
+
export const listPoliciesResponsePoliciesItemOneIdRegExp = new RegExp('^pol_[a-zA-Z0-9_-]+$');
|
|
5007
|
+
export const listPoliciesResponsePoliciesItemOneRevisionIdRegExp = new RegExp('^polrev_[a-zA-Z0-9_-]+$');
|
|
5008
|
+
export const listPoliciesResponsePoliciesItemOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5009
|
+
export const listPoliciesResponsePoliciesItemOneConfigMinLengthMax = 64;
|
|
5010
|
+
|
|
5011
|
+
export const listPoliciesResponsePoliciesItemOneConfigMaxLengthMax = 64;
|
|
5012
|
+
|
|
5013
|
+
export const listPoliciesResponsePoliciesItemOneConfigHistoryDepthMax = 4;
|
|
5014
|
+
|
|
5015
|
+
|
|
5016
|
+
|
|
5017
|
+
export const ListPoliciesResponse = zod.object({
|
|
5018
|
+
"policies": zod.array(zod.object({
|
|
5019
|
+
"id": zod.string().regex(listPoliciesResponsePoliciesItemOneIdRegExp).describe('The identifier of a policy, shared by all of its revisions.'),
|
|
5020
|
+
"revision_id": zod.string().regex(listPoliciesResponsePoliciesItemOneRevisionIdRegExp).describe('The identifier of one immutable revision of a policy.'),
|
|
5021
|
+
"project_id": zod.string().regex(listPoliciesResponsePoliciesItemOneProjectIdRegExp),
|
|
5022
|
+
"operation": zod.enum(['auth.factor.password.set']).describe('The operation the policy guards.'),
|
|
5023
|
+
"config": zod.object({
|
|
5024
|
+
"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'),
|
|
5025
|
+
"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'),
|
|
5026
|
+
"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')
|
|
5027
|
+
}).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'),
|
|
5028
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the operation\'s policy was first published.'),
|
|
5029
|
+
"updated_at": zod.iso.datetime({"offset":true}).describe('When this revision was published.')
|
|
5030
|
+
}).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')),
|
|
5031
|
+
"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')
|
|
5032
|
+
}).describe('Paginated list of the project\'s policies, one per operation, each as its\nnewest revision.\n')
|
|
5033
|
+
|
|
5034
|
+
|
|
5035
|
+
/**
|
|
5036
|
+
* Publishes the project's policy for an operation as a new immutable
|
|
5037
|
+
* revision, creating the policy on its first publish. The newest revision
|
|
5038
|
+
* applies to the next time the operation runs; nothing already stored is
|
|
5039
|
+
* re-evaluated, so a stricter password policy applies the next time a
|
|
5040
|
+
* password is set.
|
|
5041
|
+
*
|
|
5042
|
+
* The request is typed by `operation`: an unknown operation or setting, or
|
|
5043
|
+
* a value of the wrong type or outside its bounds, answers `req.invalid`
|
|
5044
|
+
* like any malformed request. The operation's template then checks the
|
|
5045
|
+
* config again, together with the rules that relate settings to each other
|
|
5046
|
+
* (a `min_length` above `max_length`), and answers `pol.invalid`. Its
|
|
5047
|
+
* `details.details.violations` lists everything that failed, settings
|
|
5048
|
+
* first, then rules: `{"setting": "min_length"}` for one setting, or
|
|
5049
|
+
* `{"config_rule": "min_length_not_above_max_length", "settings":
|
|
5050
|
+
* ["min_length", "max_length"]}` for a rule across settings, with the
|
|
5051
|
+
* settings it reads. A setting left out is off, and `{}` switches every
|
|
5052
|
+
* rule off; there are no defaults.
|
|
5053
|
+
* @summary Publish a policy
|
|
5054
|
+
*/
|
|
5055
|
+
export const publishPolicyQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5056
|
+
|
|
5057
|
+
|
|
5058
|
+
export const PublishPolicyQueryParams = zod.strictObject({
|
|
5059
|
+
"project_id": zod.string().regex(publishPolicyQueryProjectIdRegExp).describe('The unique identifier of the project')
|
|
5060
|
+
})
|
|
5061
|
+
|
|
5062
|
+
export const publishPolicyBodyOneConfigMinLengthMax = 64;
|
|
5063
|
+
|
|
5064
|
+
export const publishPolicyBodyOneConfigMaxLengthMax = 64;
|
|
5065
|
+
|
|
5066
|
+
export const publishPolicyBodyOneConfigHistoryDepthMax = 4;
|
|
5067
|
+
|
|
5068
|
+
|
|
5069
|
+
|
|
5070
|
+
export const PublishPolicyBody = zod.object({
|
|
5071
|
+
"operation": zod.enum(['auth.factor.password.set']).describe('The operation the policy guards.'),
|
|
5072
|
+
"config": zod.object({
|
|
5073
|
+
"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'),
|
|
5074
|
+
"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'),
|
|
5075
|
+
"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')
|
|
5076
|
+
}).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')
|
|
5077
|
+
}).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')
|
|
5078
|
+
|
|
5079
|
+
export const publishPolicyResponseOneIdRegExp = new RegExp('^pol_[a-zA-Z0-9_-]+$');
|
|
5080
|
+
export const publishPolicyResponseOneRevisionIdRegExp = new RegExp('^polrev_[a-zA-Z0-9_-]+$');
|
|
5081
|
+
export const publishPolicyResponseOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5082
|
+
export const publishPolicyResponseOneConfigMinLengthMax = 64;
|
|
5083
|
+
|
|
5084
|
+
export const publishPolicyResponseOneConfigMaxLengthMax = 64;
|
|
5085
|
+
|
|
5086
|
+
export const publishPolicyResponseOneConfigHistoryDepthMax = 4;
|
|
5087
|
+
|
|
5088
|
+
|
|
5089
|
+
|
|
5090
|
+
export const PublishPolicyResponse = zod.object({
|
|
5091
|
+
"id": zod.string().regex(publishPolicyResponseOneIdRegExp).describe('The identifier of a policy, shared by all of its revisions.'),
|
|
5092
|
+
"revision_id": zod.string().regex(publishPolicyResponseOneRevisionIdRegExp).describe('The identifier of one immutable revision of a policy.'),
|
|
5093
|
+
"project_id": zod.string().regex(publishPolicyResponseOneProjectIdRegExp),
|
|
5094
|
+
"operation": zod.enum(['auth.factor.password.set']).describe('The operation the policy guards.'),
|
|
5095
|
+
"config": zod.object({
|
|
5096
|
+
"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'),
|
|
5097
|
+
"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'),
|
|
5098
|
+
"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')
|
|
5099
|
+
}).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'),
|
|
5100
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the operation\'s policy was first published.'),
|
|
5101
|
+
"updated_at": zod.iso.datetime({"offset":true}).describe('When this revision was published.')
|
|
5102
|
+
}).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')
|
|
5103
|
+
|
|
5104
|
+
|
|
5105
|
+
/**
|
|
5106
|
+
* Evaluates a policy config against one request, without side effects, and
|
|
5107
|
+
* answers the decision the operation would reach. Nothing is read from or
|
|
5108
|
+
* written to the project: the config is the one in the body, checked
|
|
5109
|
+
* exactly as a publish checks it, so an invalid config answers `pol.invalid`
|
|
5110
|
+
* with the same violations.
|
|
5111
|
+
*
|
|
5112
|
+
* `input` is what the operation's request carries, in the operation's own
|
|
5113
|
+
* terms (a password, not its length): the server derives what the policy
|
|
5114
|
+
* checks with the code the live operation runs, guards included. `facts`
|
|
5115
|
+
* states what the operation would look up at runtime, such as whether the
|
|
5116
|
+
* candidate matches one of the user's kept passwords.
|
|
5117
|
+
*
|
|
5118
|
+
* The decision and the names of the failed rules hold wherever the
|
|
5119
|
+
* operation runs. `code` and `violations` are what an API call answers; a
|
|
5120
|
+
* login flow shows the same rules as field errors on the password field
|
|
5121
|
+
* (`error.x-auth-methods#password_<rule>` in `step.error`).
|
|
5122
|
+
*
|
|
5123
|
+
* Which policy a project or release applies is not decided here: read it
|
|
5124
|
+
* and pass its config.
|
|
5125
|
+
*
|
|
5126
|
+
* The caller needs read access to the project in `project_id`.
|
|
5127
|
+
* @summary Evaluate a policy
|
|
5128
|
+
*/
|
|
5129
|
+
export const evaluatePolicyQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5130
|
+
|
|
5131
|
+
|
|
5132
|
+
export const EvaluatePolicyQueryParams = zod.strictObject({
|
|
5133
|
+
"project_id": zod.string().regex(evaluatePolicyQueryProjectIdRegExp).describe('The unique identifier of the project')
|
|
5134
|
+
})
|
|
5135
|
+
|
|
5136
|
+
export const evaluatePolicyBodyOneConfigMinLengthMax = 64;
|
|
5137
|
+
|
|
5138
|
+
export const evaluatePolicyBodyOneConfigMaxLengthMax = 64;
|
|
5139
|
+
|
|
5140
|
+
export const evaluatePolicyBodyOneConfigHistoryDepthMax = 4;
|
|
5141
|
+
|
|
5142
|
+
export const evaluatePolicyBodyOneInputPasswordMax = 4096;
|
|
5143
|
+
|
|
5144
|
+
export const evaluatePolicyBodyOneFactsSelfServiceDefault = true;
|
|
5145
|
+
export const evaluatePolicyBodyOneFactsHistoryMatchesDefault = [];
|
|
5146
|
+
export const evaluatePolicyBodyOneFactsHistoryMatchesMax = 4;
|
|
5147
|
+
|
|
5148
|
+
|
|
5149
|
+
|
|
5150
|
+
export const EvaluatePolicyBody = zod.object({
|
|
5151
|
+
"operation": zod.enum(['auth.factor.password.set']).describe('The operation the policy guards.'),
|
|
5152
|
+
"config": zod.object({
|
|
5153
|
+
"min_length": zod.int().min(1).max(evaluatePolicyBodyOneConfigMinLengthMax).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'),
|
|
5154
|
+
"max_length": zod.int().min(1).max(evaluatePolicyBodyOneConfigMaxLengthMax).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'),
|
|
5155
|
+
"history_depth": zod.int().min(1).max(evaluatePolicyBodyOneConfigHistoryDepthMax).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')
|
|
5156
|
+
}).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'),
|
|
5157
|
+
"input": zod.object({
|
|
5158
|
+
"password": zod.string().max(evaluatePolicyBodyOneInputPasswordMax).describe('The candidate password. It is evaluated and dropped: never stored,\nlogged or returned. Anything above the server\'s cap of 64 characters is\nrefused as `max_length`, as on a real set; the 4096 bound only keeps a\ndry run\'s body small.\n')
|
|
5159
|
+
}).describe('The password as a user or administrator would set it. The server derives\nwhat the policy checks (its length in code points after NFC normalization)\nwith the same code a password set runs.\n'),
|
|
5160
|
+
"facts": zod.object({
|
|
5161
|
+
"self_service": zod.boolean().default(evaluatePolicyBodyOneFactsSelfServiceDefault).describe('Whether the user sets their own password. Only then is the password\nhistory checked; an administrator\'s set skips it.\n'),
|
|
5162
|
+
"history_matches": zod.array(zod.boolean()).max(evaluatePolicyBodyOneFactsHistoryMatchesMax).default(evaluatePolicyBodyOneFactsHistoryMatchesDefault).describe('Whether the candidate matches each of the user\'s kept passwords,\ncurrent first, newest first. Only the first `history_depth` entries\ncount, so at most 4, the highest `history_depth`.\n')
|
|
5163
|
+
}).optional().describe('What a password set looks up instead of reading from the request. A dry run\nhas no user, so it is stated here.\n')
|
|
5164
|
+
}).describe('A dry run of the password policy for one candidate password.').describe('One dry run of an operation\'s policy. `operation` selects the operation\'s\ntemplate; `config` is the policy to evaluate, checked exactly as a publish\nchecks it; `input` is what the operation\'s request carries, in the\noperation\'s own terms; `facts` states what the operation would look up at\nruntime. The fields each operation accepts are listed in the policy\ncatalog.\n')
|
|
5165
|
+
|
|
5166
|
+
export const EvaluatePolicyResponse = zod.object({
|
|
5167
|
+
"allowed": zod.boolean().describe('Whether the operation would go ahead.'),
|
|
5168
|
+
"code": zod.string().optional().describe('The error code an API call of the operation would answer with, set\nonly when it would refuse, for example `user.password_empty` or\n`user.password_policy_violation`.\n'),
|
|
5169
|
+
"violations": zod.record(zod.string(), zod.unknown()).optional().describe('Every failed rule keyed by name with the value of the setting it is\nnamed after, e.g. `{"min_length": 12}`, as the live error\'s\n`details.violations`. Set only with `user.password_policy_violation`.\n')
|
|
5170
|
+
}).describe('The decision the operation would reach for the request. A refusal carries\nthe error code and violations an API call of the operation would answer\nwith; a login flow shows the same rules as field errors instead.\n')
|
|
5171
|
+
|
|
5172
|
+
|
|
5173
|
+
/**
|
|
5174
|
+
* Reads a policy as its newest revision, the one that applies the next time
|
|
5175
|
+
* its operation runs.
|
|
5176
|
+
*
|
|
5177
|
+
* The lookup is scoped to the project in `project_id`: a policy of another
|
|
5178
|
+
* project answers not found exactly as an unknown id does.
|
|
5179
|
+
* @summary Get a policy
|
|
5180
|
+
*/
|
|
5181
|
+
export const getPolicyPathPolicyIdRegExp = new RegExp('^pol_[a-zA-Z0-9_-]+$');
|
|
5182
|
+
|
|
5183
|
+
|
|
5184
|
+
export const GetPolicyParams = zod.object({
|
|
5185
|
+
"policy_id": zod.string().regex(getPolicyPathPolicyIdRegExp).describe('The identifier of the policy, shared by all of its revisions.')
|
|
5186
|
+
})
|
|
5187
|
+
|
|
5188
|
+
export const getPolicyQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5189
|
+
|
|
5190
|
+
|
|
5191
|
+
export const GetPolicyQueryParams = zod.strictObject({
|
|
5192
|
+
"project_id": zod.string().regex(getPolicyQueryProjectIdRegExp).describe('The unique identifier of the project')
|
|
5193
|
+
})
|
|
5194
|
+
|
|
5195
|
+
export const getPolicyResponseOneIdRegExp = new RegExp('^pol_[a-zA-Z0-9_-]+$');
|
|
5196
|
+
export const getPolicyResponseOneRevisionIdRegExp = new RegExp('^polrev_[a-zA-Z0-9_-]+$');
|
|
5197
|
+
export const getPolicyResponseOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5198
|
+
export const getPolicyResponseOneConfigMinLengthMax = 64;
|
|
5199
|
+
|
|
5200
|
+
export const getPolicyResponseOneConfigMaxLengthMax = 64;
|
|
5201
|
+
|
|
5202
|
+
export const getPolicyResponseOneConfigHistoryDepthMax = 4;
|
|
5203
|
+
|
|
5204
|
+
|
|
5205
|
+
|
|
5206
|
+
export const GetPolicyResponse = zod.object({
|
|
5207
|
+
"id": zod.string().regex(getPolicyResponseOneIdRegExp).describe('The identifier of a policy, shared by all of its revisions.'),
|
|
5208
|
+
"revision_id": zod.string().regex(getPolicyResponseOneRevisionIdRegExp).describe('The identifier of one immutable revision of a policy.'),
|
|
5209
|
+
"project_id": zod.string().regex(getPolicyResponseOneProjectIdRegExp),
|
|
5210
|
+
"operation": zod.enum(['auth.factor.password.set']).describe('The operation the policy guards.'),
|
|
5211
|
+
"config": zod.object({
|
|
5212
|
+
"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'),
|
|
5213
|
+
"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'),
|
|
5214
|
+
"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')
|
|
5215
|
+
}).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'),
|
|
5216
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the operation\'s policy was first published.'),
|
|
5217
|
+
"updated_at": zod.iso.datetime({"offset":true}).describe('When this revision was published.')
|
|
5218
|
+
}).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')
|
|
5219
|
+
|
|
5220
|
+
|
|
5221
|
+
/**
|
|
5222
|
+
* Returns every revision of one policy, newest first, paginated with a
|
|
5223
|
+
* cursor. The order is fixed, so there is no `sorting`.
|
|
5224
|
+
*
|
|
5225
|
+
* The lookup is scoped to the project in `project_id`: a policy of another
|
|
5226
|
+
* project answers not found exactly as an unknown id does.
|
|
5227
|
+
* @summary List the revisions of a policy
|
|
5228
|
+
*/
|
|
5229
|
+
export const listPolicyRevisionsPathPolicyIdRegExp = new RegExp('^pol_[a-zA-Z0-9_-]+$');
|
|
5230
|
+
|
|
5231
|
+
|
|
5232
|
+
export const ListPolicyRevisionsParams = zod.object({
|
|
5233
|
+
"policy_id": zod.string().regex(listPolicyRevisionsPathPolicyIdRegExp).describe('The identifier of the policy, shared by all of its revisions.')
|
|
5234
|
+
})
|
|
5235
|
+
|
|
5236
|
+
export const listPolicyRevisionsQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5237
|
+
export const listPolicyRevisionsQueryLimitDefault = 20;
|
|
5238
|
+
export const listPolicyRevisionsQueryLimitMax = 100;
|
|
5239
|
+
|
|
5240
|
+
|
|
5241
|
+
|
|
5242
|
+
export const ListPolicyRevisionsQueryParams = zod.strictObject({
|
|
5243
|
+
"project_id": zod.string().regex(listPolicyRevisionsQueryProjectIdRegExp).describe('The unique identifier of the project'),
|
|
5244
|
+
"limit": zod.int().min(1).max(listPolicyRevisionsQueryLimitMax).default(listPolicyRevisionsQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
5245
|
+
"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')
|
|
5246
|
+
})
|
|
5247
|
+
|
|
5248
|
+
export const listPolicyRevisionsResponseRevisionsItemOneIdRegExp = new RegExp('^pol_[a-zA-Z0-9_-]+$');
|
|
5249
|
+
export const listPolicyRevisionsResponseRevisionsItemOneRevisionIdRegExp = new RegExp('^polrev_[a-zA-Z0-9_-]+$');
|
|
5250
|
+
export const listPolicyRevisionsResponseRevisionsItemOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5251
|
+
export const listPolicyRevisionsResponseRevisionsItemOneConfigMinLengthMax = 64;
|
|
5252
|
+
|
|
5253
|
+
export const listPolicyRevisionsResponseRevisionsItemOneConfigMaxLengthMax = 64;
|
|
5254
|
+
|
|
5255
|
+
export const listPolicyRevisionsResponseRevisionsItemOneConfigHistoryDepthMax = 4;
|
|
5256
|
+
|
|
5257
|
+
|
|
5258
|
+
|
|
5259
|
+
export const ListPolicyRevisionsResponse = zod.object({
|
|
5260
|
+
"revisions": zod.array(zod.object({
|
|
5261
|
+
"id": zod.string().regex(listPolicyRevisionsResponseRevisionsItemOneIdRegExp).describe('The identifier of a policy, shared by all of its revisions.'),
|
|
5262
|
+
"revision_id": zod.string().regex(listPolicyRevisionsResponseRevisionsItemOneRevisionIdRegExp).describe('The identifier of one immutable revision of a policy.'),
|
|
5263
|
+
"project_id": zod.string().regex(listPolicyRevisionsResponseRevisionsItemOneProjectIdRegExp),
|
|
5264
|
+
"operation": zod.enum(['auth.factor.password.set']).describe('The operation the policy guards.'),
|
|
5265
|
+
"config": zod.object({
|
|
5266
|
+
"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'),
|
|
5267
|
+
"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'),
|
|
5268
|
+
"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')
|
|
5269
|
+
}).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'),
|
|
5270
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the operation\'s policy was first published.'),
|
|
5271
|
+
"updated_at": zod.iso.datetime({"offset":true}).describe('When this revision was published.')
|
|
5272
|
+
}).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')),
|
|
5273
|
+
"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')
|
|
5274
|
+
}).describe('Paginated list of the revisions of one policy, newest first.')
|
|
5275
|
+
|
|
5276
|
+
|
|
5277
|
+
/**
|
|
5278
|
+
* Reads one revision of a policy, newest or not.
|
|
5279
|
+
*
|
|
5280
|
+
* The lookup is scoped to the project in `project_id`: a revision of another
|
|
5281
|
+
* project answers not found exactly as an unknown id does.
|
|
5282
|
+
* @summary Get a policy revision
|
|
5283
|
+
*/
|
|
5284
|
+
export const getPolicyRevisionPathRevisionIdRegExp = new RegExp('^polrev_[a-zA-Z0-9_-]+$');
|
|
5285
|
+
|
|
5286
|
+
|
|
5287
|
+
export const GetPolicyRevisionParams = zod.object({
|
|
5288
|
+
"revision_id": zod.string().regex(getPolicyRevisionPathRevisionIdRegExp).describe('The identifier of the policy revision.')
|
|
5289
|
+
})
|
|
5290
|
+
|
|
5291
|
+
export const getPolicyRevisionQueryProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5292
|
+
|
|
5293
|
+
|
|
5294
|
+
export const GetPolicyRevisionQueryParams = zod.strictObject({
|
|
5295
|
+
"project_id": zod.string().regex(getPolicyRevisionQueryProjectIdRegExp).describe('The unique identifier of the project')
|
|
5296
|
+
})
|
|
5297
|
+
|
|
5298
|
+
export const getPolicyRevisionResponseOneIdRegExp = new RegExp('^pol_[a-zA-Z0-9_-]+$');
|
|
5299
|
+
export const getPolicyRevisionResponseOneRevisionIdRegExp = new RegExp('^polrev_[a-zA-Z0-9_-]+$');
|
|
5300
|
+
export const getPolicyRevisionResponseOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5301
|
+
export const getPolicyRevisionResponseOneConfigMinLengthMax = 64;
|
|
5302
|
+
|
|
5303
|
+
export const getPolicyRevisionResponseOneConfigMaxLengthMax = 64;
|
|
5304
|
+
|
|
5305
|
+
export const getPolicyRevisionResponseOneConfigHistoryDepthMax = 4;
|
|
5306
|
+
|
|
5307
|
+
|
|
5308
|
+
|
|
5309
|
+
export const GetPolicyRevisionResponse = zod.object({
|
|
5310
|
+
"id": zod.string().regex(getPolicyRevisionResponseOneIdRegExp).describe('The identifier of a policy, shared by all of its revisions.'),
|
|
5311
|
+
"revision_id": zod.string().regex(getPolicyRevisionResponseOneRevisionIdRegExp).describe('The identifier of one immutable revision of a policy.'),
|
|
5312
|
+
"project_id": zod.string().regex(getPolicyRevisionResponseOneProjectIdRegExp),
|
|
5313
|
+
"operation": zod.enum(['auth.factor.password.set']).describe('The operation the policy guards.'),
|
|
5314
|
+
"config": zod.object({
|
|
5315
|
+
"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'),
|
|
5316
|
+
"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'),
|
|
5317
|
+
"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')
|
|
5318
|
+
}).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'),
|
|
5319
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the operation\'s policy was first published.'),
|
|
5320
|
+
"updated_at": zod.iso.datetime({"offset":true}).describe('When this revision was published.')
|
|
5321
|
+
}).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')
|
|
5322
|
+
|
|
5323
|
+
|
|
4879
5324
|
/**
|
|
4880
5325
|
* Assembles a release from existing revisions, given as
|
|
4881
5326
|
* `(kind, revision_id)` pairs. To build one from files on disk, use
|
|
@@ -4917,7 +5362,7 @@ export const createReleaseBodyGitDirtyDefault = false;
|
|
|
4917
5362
|
|
|
4918
5363
|
export const CreateReleaseBody = zod.object({
|
|
4919
5364
|
"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'),
|
|
5365
|
+
"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
5366
|
"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
5367
|
}).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
5368
|
"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 +5404,8 @@ export const CreateReleaseResponse = zod.object({
|
|
|
4959
5404
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
4960
5405
|
"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
5406
|
"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'),
|
|
5407
|
+
"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'),
|
|
5408
|
+
"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
5409
|
"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
5410
|
}).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
5411
|
}).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 +5485,9 @@ export const ListReleasesResponse = zod.object({
|
|
|
5040
5485
|
* allocates nothing, however long ago it was built. Otherwise every resource is compared against the
|
|
5041
5486
|
* project's newest revision of the same handle: unchanged content reuses
|
|
5042
5487
|
* that revision, changed content allocates a new one, and the request
|
|
5043
|
-
* answers `201` with the new release.
|
|
5488
|
+
* answers `201` with the new release. A policy whose config matches only an
|
|
5489
|
+
* older revision allocates a new one too, so a request that resolves no
|
|
5490
|
+
* release, which reads the newest revision, applies it as well. Metadata is excluded from the
|
|
5044
5491
|
* comparison, so the same content under a different `message` is the same
|
|
5045
5492
|
* release.
|
|
5046
5493
|
*
|
|
@@ -5054,8 +5501,8 @@ export const ListReleasesResponse = zod.object({
|
|
|
5054
5501
|
*
|
|
5055
5502
|
* Building writes revisions, so besides `release.write` it needs the write
|
|
5056
5503
|
* 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`,
|
|
5504
|
+
* `flow_definition.write`, `branding.write`, `idp.write` and
|
|
5505
|
+
* `policy.write`, as the per-kind create endpoints do. A missing scope answers `403` with `rel.permission_denied`,
|
|
5059
5506
|
* naming the kind. An empty kind needs no scope.
|
|
5060
5507
|
*
|
|
5061
5508
|
* Building a release does not deploy it. A release is not tied to an
|
|
@@ -5125,6 +5572,14 @@ export const buildReleaseBodyBundleIdpsItemOidcScopesDefault = [`openid`, `profi
|
|
|
5125
5572
|
export const buildReleaseBodyBundleIdpsItemOidcPkceEnabledDefault = true;
|
|
5126
5573
|
export const buildReleaseBodyBundleIdpsMax = 50;
|
|
5127
5574
|
|
|
5575
|
+
export const buildReleaseBodyBundlePoliciesItemOneConfigMinLengthMax = 64;
|
|
5576
|
+
|
|
5577
|
+
export const buildReleaseBodyBundlePoliciesItemOneConfigMaxLengthMax = 64;
|
|
5578
|
+
|
|
5579
|
+
export const buildReleaseBodyBundlePoliciesItemOneConfigHistoryDepthMax = 4;
|
|
5580
|
+
|
|
5581
|
+
export const buildReleaseBodyBundlePoliciesMax = 50;
|
|
5582
|
+
|
|
5128
5583
|
export const buildReleaseBodyBundleBrandingLayoutDefault = `centered`;
|
|
5129
5584
|
export const buildReleaseBodyBundleBrandingLiquidTemplateMax = 131072;
|
|
5130
5585
|
|
|
@@ -5358,6 +5813,14 @@ export const BuildReleaseBody = zod.object({
|
|
|
5358
5813
|
"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
5814
|
}).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
5815
|
})).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'),
|
|
5816
|
+
"policies": zod.array(zod.object({
|
|
5817
|
+
"operation": zod.enum(['auth.factor.password.set']).describe('The operation the policy guards.'),
|
|
5818
|
+
"config": zod.object({
|
|
5819
|
+
"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'),
|
|
5820
|
+
"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'),
|
|
5821
|
+
"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')
|
|
5822
|
+
}).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')
|
|
5823
|
+
}).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
5824
|
"branding": zod.object({
|
|
5362
5825
|
"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
5826
|
"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 +5874,7 @@ export const BuildReleaseBody = zod.object({
|
|
|
5411
5874
|
"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
5875
|
}).optional().describe('Corner rounding, spacing and logo size. Shared across theme sides.\n')
|
|
5413
5876
|
}).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`,
|
|
5877
|
+
}).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
5878
|
"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
5879
|
"git_sha": zod.string().max(buildReleaseBodyGitShaMax).optional().describe('The source commit the caller was operating from.'),
|
|
5417
5880
|
"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 +5914,8 @@ export const BuildReleaseResponse = zod.object({
|
|
|
5451
5914
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
5452
5915
|
"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
5916
|
"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'),
|
|
5917
|
+
"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'),
|
|
5918
|
+
"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
5919
|
"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
5920
|
}).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
5921
|
}).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 +5985,8 @@ export const GetReleaseByIdResponse = zod.object({
|
|
|
5522
5985
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
5523
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'),
|
|
5524
5987
|
"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'),
|
|
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(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
5990
|
"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
5991
|
}).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
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')
|
|
@@ -5599,8 +6062,8 @@ export const RevokeReleaseResponse = zod.object({
|
|
|
5599
6062
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
5600
6063
|
"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
6064
|
"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'),
|
|
6065
|
+
"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'),
|
|
6066
|
+
"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
6067
|
"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
6068
|
}).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
6069
|
}).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 +6151,7 @@ export const CreateGrantResponse = zod.object({
|
|
|
5688
6151
|
})).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
6152
|
"team": zod.object({
|
|
5690
6153
|
"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
|
|
6154
|
+
"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
6155
|
}).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
6156
|
"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
6157
|
"created_at": zod.iso.datetime({"offset":true}).optional().describe('When the team was created. Present only when expand loaded the team.\n'),
|
|
@@ -5778,7 +6241,7 @@ export const QueryGrantsResponse = zod.object({
|
|
|
5778
6241
|
})).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
6242
|
"team": zod.object({
|
|
5780
6243
|
"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
|
|
6244
|
+
"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
6245
|
}).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
6246
|
"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
6247
|
"created_at": zod.iso.datetime({"offset":true}).optional().describe('When the team was created. Present only when expand loaded the team.\n'),
|
|
@@ -5854,7 +6317,7 @@ export const GetGrantResponse = zod.object({
|
|
|
5854
6317
|
})).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
6318
|
"team": zod.object({
|
|
5856
6319
|
"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
|
|
6320
|
+
"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
6321
|
}).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
6322
|
"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
6323
|
"created_at": zod.iso.datetime({"offset":true}).optional().describe('When the team was created. Present only when expand loaded the team.\n'),
|
|
@@ -5957,20 +6420,20 @@ export const listEventsResponseDataItemTwofiveOneProjectIdRegExp = new RegExp('^
|
|
|
5957
6420
|
export const listEventsResponseDataItemTwosixOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5958
6421
|
export const listEventsResponseDataItemTwosevenOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5959
6422
|
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
6423
|
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
6424
|
export const listEventsResponseDataItemThreezeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5972
6425
|
export const listEventsResponseDataItemThreeoneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6426
|
+
export const listEventsResponseDataItemThreeoneTwoPayloadContentHashMin = 71;
|
|
6427
|
+
export const listEventsResponseDataItemThreeoneTwoPayloadContentHashMax = 71;
|
|
6428
|
+
|
|
6429
|
+
|
|
6430
|
+
export const listEventsResponseDataItemThreeoneTwoPayloadContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
5973
6431
|
export const listEventsResponseDataItemThreetwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6432
|
+
export const listEventsResponseDataItemThreetwoTwoPayloadStatusMin = 100;
|
|
6433
|
+
export const listEventsResponseDataItemThreetwoTwoPayloadStatusMax = 599;
|
|
6434
|
+
|
|
6435
|
+
export const listEventsResponseDataItemThreetwoTwoPayloadDurationMsMin = 0;
|
|
6436
|
+
|
|
5974
6437
|
export const listEventsResponseDataItemThreethreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5975
6438
|
export const listEventsResponseDataItemThreefourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5976
6439
|
export const listEventsResponseDataItemThreefiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -5980,6 +6443,9 @@ export const listEventsResponseDataItemThreeeightOneProjectIdRegExp = new RegExp
|
|
|
5980
6443
|
export const listEventsResponseDataItemThreenineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5981
6444
|
export const listEventsResponseDataItemFourzeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5982
6445
|
export const listEventsResponseDataItemFouroneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6446
|
+
export const listEventsResponseDataItemFourtwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6447
|
+
export const listEventsResponseDataItemFourthreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
6448
|
+
export const listEventsResponseDataItemFourfourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
5983
6449
|
|
|
5984
6450
|
|
|
5985
6451
|
export const ListEventsResponse = zod.object({
|
|
@@ -6005,6 +6471,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6005
6471
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6006
6472
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6007
6473
|
"metadata": zod.object({
|
|
6474
|
+
"authorization": zod.object({
|
|
6475
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6476
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6477
|
+
}).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
6478
|
"client": zod.object({
|
|
6009
6479
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6010
6480
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6038,6 +6508,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6038
6508
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6039
6509
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6040
6510
|
"metadata": zod.object({
|
|
6511
|
+
"authorization": zod.object({
|
|
6512
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6513
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6514
|
+
}).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
6515
|
"client": zod.object({
|
|
6042
6516
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6043
6517
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6071,6 +6545,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6071
6545
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6072
6546
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6073
6547
|
"metadata": zod.object({
|
|
6548
|
+
"authorization": zod.object({
|
|
6549
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6550
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6551
|
+
}).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
6552
|
"client": zod.object({
|
|
6075
6553
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6076
6554
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6106,6 +6584,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6106
6584
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6107
6585
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6108
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'),
|
|
6109
6591
|
"client": zod.object({
|
|
6110
6592
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6111
6593
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6141,6 +6623,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6141
6623
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6142
6624
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6143
6625
|
"metadata": zod.object({
|
|
6626
|
+
"authorization": zod.object({
|
|
6627
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6628
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6629
|
+
}).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
6630
|
"client": zod.object({
|
|
6145
6631
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6146
6632
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6175,6 +6661,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6175
6661
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6176
6662
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6177
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'),
|
|
6178
6668
|
"client": zod.object({
|
|
6179
6669
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6180
6670
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6209,6 +6699,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6209
6699
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6210
6700
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6211
6701
|
"metadata": zod.object({
|
|
6702
|
+
"authorization": zod.object({
|
|
6703
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6704
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6705
|
+
}).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
6706
|
"client": zod.object({
|
|
6213
6707
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6214
6708
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6244,6 +6738,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6244
6738
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6245
6739
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6246
6740
|
"metadata": zod.object({
|
|
6741
|
+
"authorization": zod.object({
|
|
6742
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6743
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6744
|
+
}).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
6745
|
"client": zod.object({
|
|
6248
6746
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6249
6747
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6279,6 +6777,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6279
6777
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6280
6778
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6281
6779
|
"metadata": zod.object({
|
|
6780
|
+
"authorization": zod.object({
|
|
6781
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6782
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6783
|
+
}).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
6784
|
"client": zod.object({
|
|
6283
6785
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6284
6786
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6314,6 +6816,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6314
6816
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6315
6817
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6316
6818
|
"metadata": zod.object({
|
|
6819
|
+
"authorization": zod.object({
|
|
6820
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6821
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6822
|
+
}).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
6823
|
"client": zod.object({
|
|
6318
6824
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6319
6825
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6347,6 +6853,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6347
6853
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6348
6854
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6349
6855
|
"metadata": zod.object({
|
|
6856
|
+
"authorization": zod.object({
|
|
6857
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6858
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6859
|
+
}).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
6860
|
"client": zod.object({
|
|
6351
6861
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6352
6862
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6380,6 +6890,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6380
6890
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6381
6891
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6382
6892
|
"metadata": zod.object({
|
|
6893
|
+
"authorization": zod.object({
|
|
6894
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6895
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6896
|
+
}).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
6897
|
"client": zod.object({
|
|
6384
6898
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6385
6899
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6415,6 +6929,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6415
6929
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6416
6930
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6417
6931
|
"metadata": zod.object({
|
|
6932
|
+
"authorization": zod.object({
|
|
6933
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6934
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6935
|
+
}).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
6936
|
"client": zod.object({
|
|
6419
6937
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6420
6938
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6450,6 +6968,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6450
6968
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6451
6969
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6452
6970
|
"metadata": zod.object({
|
|
6971
|
+
"authorization": zod.object({
|
|
6972
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
6973
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
6974
|
+
}).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
6975
|
"client": zod.object({
|
|
6454
6976
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6455
6977
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6486,6 +7008,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6486
7008
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6487
7009
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6488
7010
|
"metadata": zod.object({
|
|
7011
|
+
"authorization": zod.object({
|
|
7012
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7013
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7014
|
+
}).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
7015
|
"client": zod.object({
|
|
6490
7016
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6491
7017
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6523,6 +7049,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6523
7049
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6524
7050
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6525
7051
|
"metadata": zod.object({
|
|
7052
|
+
"authorization": zod.object({
|
|
7053
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7054
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7055
|
+
}).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
7056
|
"client": zod.object({
|
|
6527
7057
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6528
7058
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6563,6 +7093,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6563
7093
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6564
7094
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6565
7095
|
"metadata": zod.object({
|
|
7096
|
+
"authorization": zod.object({
|
|
7097
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7098
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7099
|
+
}).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
7100
|
"client": zod.object({
|
|
6567
7101
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6568
7102
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6596,6 +7130,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6596
7130
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6597
7131
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6598
7132
|
"metadata": zod.object({
|
|
7133
|
+
"authorization": zod.object({
|
|
7134
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7135
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7136
|
+
}).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
7137
|
"client": zod.object({
|
|
6600
7138
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6601
7139
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6636,6 +7174,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6636
7174
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6637
7175
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6638
7176
|
"metadata": zod.object({
|
|
7177
|
+
"authorization": zod.object({
|
|
7178
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7179
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7180
|
+
}).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
7181
|
"client": zod.object({
|
|
6640
7182
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6641
7183
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6673,6 +7215,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6673
7215
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6674
7216
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6675
7217
|
"metadata": zod.object({
|
|
7218
|
+
"authorization": zod.object({
|
|
7219
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7220
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7221
|
+
}).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
7222
|
"client": zod.object({
|
|
6677
7223
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6678
7224
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6707,6 +7253,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6707
7253
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6708
7254
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6709
7255
|
"metadata": zod.object({
|
|
7256
|
+
"authorization": zod.object({
|
|
7257
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7258
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7259
|
+
}).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
7260
|
"client": zod.object({
|
|
6711
7261
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6712
7262
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6744,6 +7294,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6744
7294
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6745
7295
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6746
7296
|
"metadata": zod.object({
|
|
7297
|
+
"authorization": zod.object({
|
|
7298
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7299
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7300
|
+
}).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
7301
|
"client": zod.object({
|
|
6748
7302
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6749
7303
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6778,6 +7332,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6778
7332
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6779
7333
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6780
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'),
|
|
6781
7339
|
"client": zod.object({
|
|
6782
7340
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6783
7341
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6812,6 +7370,125 @@ export const ListEventsResponse = zod.object({
|
|
|
6812
7370
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6813
7371
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6814
7372
|
"metadata": zod.object({
|
|
7373
|
+
"authorization": zod.object({
|
|
7374
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7375
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7376
|
+
}).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'),
|
|
7377
|
+
"client": zod.object({
|
|
7378
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7379
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
7380
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
7381
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
7382
|
+
}).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')
|
|
7383
|
+
}).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({
|
|
7384
|
+
"event_type": zod.literal("policy.created"),
|
|
7385
|
+
"payload": zod.object({
|
|
7386
|
+
"operation": zod.string().describe('The operation the policy guards, e.g. `auth.factor.password.set`.'),
|
|
7387
|
+
"revision_id": zod.string().describe('The revision the publish appended.'),
|
|
7388
|
+
"config": zod.record(zod.string(), zod.unknown()).describe('The instance\'s settings as published.')
|
|
7389
|
+
}).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')
|
|
7390
|
+
})).describe('Wide event with event_type=policy.created.\n'),zod.object({
|
|
7391
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7392
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwofiveOneProjectIdRegExp),
|
|
7393
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7394
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7395
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
7396
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
7397
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
7398
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
7399
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
7400
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
7401
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
7402
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
7403
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
7404
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
7405
|
+
"delegation_id": zod.string().optional(),
|
|
7406
|
+
"grantor": zod.string().optional(),
|
|
7407
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
7408
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
7409
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7410
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7411
|
+
"metadata": zod.object({
|
|
7412
|
+
"authorization": zod.object({
|
|
7413
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7414
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7415
|
+
}).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'),
|
|
7416
|
+
"client": zod.object({
|
|
7417
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7418
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
7419
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
7420
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
7421
|
+
}).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')
|
|
7422
|
+
}).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({
|
|
7423
|
+
"event_type": zod.literal("policy.updated"),
|
|
7424
|
+
"payload": zod.object({
|
|
7425
|
+
"operation": zod.string().describe('The operation the policy guards, e.g. `auth.factor.password.set`.'),
|
|
7426
|
+
"revision_id": zod.string().describe('The revision the publish appended.'),
|
|
7427
|
+
"config": zod.record(zod.string(), zod.unknown()).describe('The instance\'s settings as published.')
|
|
7428
|
+
}).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')
|
|
7429
|
+
})).describe('Wide event with event_type=policy.updated.\n'),zod.object({
|
|
7430
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7431
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwosixOneProjectIdRegExp),
|
|
7432
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7433
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7434
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
7435
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
7436
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
7437
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
7438
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
7439
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
7440
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
7441
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
7442
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
7443
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
7444
|
+
"delegation_id": zod.string().optional(),
|
|
7445
|
+
"grantor": zod.string().optional(),
|
|
7446
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
7447
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
7448
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7449
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7450
|
+
"metadata": zod.object({
|
|
7451
|
+
"authorization": zod.object({
|
|
7452
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7453
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7454
|
+
}).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'),
|
|
7455
|
+
"client": zod.object({
|
|
7456
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7457
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
7458
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
7459
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
7460
|
+
}).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')
|
|
7461
|
+
}).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({
|
|
7462
|
+
"event_type": zod.literal("preview.removed"),
|
|
7463
|
+
"payload": zod.object({
|
|
7464
|
+
|
|
7465
|
+
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
7466
|
+
})).describe('Wide event with event_type=preview.removed.\n'),zod.object({
|
|
7467
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7468
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwosevenOneProjectIdRegExp),
|
|
7469
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7470
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7471
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
7472
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
7473
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
7474
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
7475
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
7476
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
7477
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
7478
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
7479
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
7480
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
7481
|
+
"delegation_id": zod.string().optional(),
|
|
7482
|
+
"grantor": zod.string().optional(),
|
|
7483
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
7484
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
7485
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7486
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7487
|
+
"metadata": zod.object({
|
|
7488
|
+
"authorization": zod.object({
|
|
7489
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7490
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7491
|
+
}).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
7492
|
"client": zod.object({
|
|
6816
7493
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6817
7494
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6830,7 +7507,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6830
7507
|
}).describe('Shared allowlisted fields for `project.created` (full snapshot) and\n`project.updated` (delta: only changed fields present).\n')
|
|
6831
7508
|
})).describe('Wide event with event_type=project.created.\n'),zod.object({
|
|
6832
7509
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6833
|
-
"project_id": zod.string().regex(
|
|
7510
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwoeightOneProjectIdRegExp),
|
|
6834
7511
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6835
7512
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6836
7513
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6850,6 +7527,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6850
7527
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6851
7528
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6852
7529
|
"metadata": zod.object({
|
|
7530
|
+
"authorization": zod.object({
|
|
7531
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7532
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7533
|
+
}).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
7534
|
"client": zod.object({
|
|
6854
7535
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6855
7536
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6863,7 +7544,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6863
7544
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
6864
7545
|
})).describe('Wide event with event_type=project.deleted.\n'),zod.object({
|
|
6865
7546
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6866
|
-
"project_id": zod.string().regex(
|
|
7547
|
+
"project_id": zod.string().regex(listEventsResponseDataItemTwonineOneProjectIdRegExp),
|
|
6867
7548
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6868
7549
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6869
7550
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6883,6 +7564,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6883
7564
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6884
7565
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6885
7566
|
"metadata": zod.object({
|
|
7567
|
+
"authorization": zod.object({
|
|
7568
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7569
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7570
|
+
}).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
7571
|
"client": zod.object({
|
|
6887
7572
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6888
7573
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6901,7 +7586,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6901
7586
|
}).describe('Shared allowlisted fields for `project.created` (full snapshot) and\n`project.updated` (delta: only changed fields present).\n')
|
|
6902
7587
|
})).describe('Wide event with event_type=project.updated.\n'),zod.object({
|
|
6903
7588
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6904
|
-
"project_id": zod.string().regex(
|
|
7589
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreezeroOneProjectIdRegExp),
|
|
6905
7590
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6906
7591
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6907
7592
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6921,6 +7606,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6921
7606
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6922
7607
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6923
7608
|
"metadata": zod.object({
|
|
7609
|
+
"authorization": zod.object({
|
|
7610
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7611
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7612
|
+
}).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
7613
|
"client": zod.object({
|
|
6925
7614
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6926
7615
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6942,7 +7631,7 @@ export const ListEventsResponse = zod.object({
|
|
|
6942
7631
|
}).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
7632
|
})).describe('Wide event with event_type=release.created.\n'),zod.object({
|
|
6944
7633
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6945
|
-
"project_id": zod.string().regex(
|
|
7634
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreeoneOneProjectIdRegExp),
|
|
6946
7635
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6947
7636
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6948
7637
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6962,6 +7651,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6962
7651
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6963
7652
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6964
7653
|
"metadata": zod.object({
|
|
7654
|
+
"authorization": zod.object({
|
|
7655
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7656
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7657
|
+
}).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
7658
|
"client": zod.object({
|
|
6966
7659
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
6967
7660
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -6971,11 +7664,11 @@ export const ListEventsResponse = zod.object({
|
|
|
6971
7664
|
}).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
7665
|
"event_type": zod.literal("release.revoked"),
|
|
6973
7666
|
"payload": zod.object({
|
|
6974
|
-
"content_hash": zod.string().min(
|
|
7667
|
+
"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
7668
|
}).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
7669
|
})).describe('Wide event with event_type=release.revoked.\n'),zod.object({
|
|
6977
7670
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
6978
|
-
"project_id": zod.string().regex(
|
|
7671
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreetwoOneProjectIdRegExp),
|
|
6979
7672
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
6980
7673
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
6981
7674
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -6995,6 +7688,10 @@ export const ListEventsResponse = zod.object({
|
|
|
6995
7688
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
6996
7689
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
6997
7690
|
"metadata": zod.object({
|
|
7691
|
+
"authorization": zod.object({
|
|
7692
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7693
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7694
|
+
}).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
7695
|
"client": zod.object({
|
|
6999
7696
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7000
7697
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7007,12 +7704,12 @@ export const ListEventsResponse = zod.object({
|
|
|
7007
7704
|
"operation_id": zod.string(),
|
|
7008
7705
|
"method": zod.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS']).describe('HTTP method.'),
|
|
7009
7706
|
"route_template": zod.string(),
|
|
7010
|
-
"status": zod.int().min(
|
|
7011
|
-
"duration_ms": zod.int().min(
|
|
7707
|
+
"status": zod.int().min(listEventsResponseDataItemThreetwoTwoPayloadStatusMin).max(listEventsResponseDataItemThreetwoTwoPayloadStatusMax),
|
|
7708
|
+
"duration_ms": zod.int().min(listEventsResponseDataItemThreetwoTwoPayloadDurationMsMin)
|
|
7012
7709
|
}).describe('Payload for `request.api` events.')
|
|
7013
7710
|
})).describe('Wide event with event_type=request.api.\n'),zod.object({
|
|
7014
7711
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7015
|
-
"project_id": zod.string().regex(
|
|
7712
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreethreeOneProjectIdRegExp),
|
|
7016
7713
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7017
7714
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7018
7715
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7032,6 +7729,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7032
7729
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7033
7730
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7034
7731
|
"metadata": zod.object({
|
|
7732
|
+
"authorization": zod.object({
|
|
7733
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7734
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7735
|
+
}).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
7736
|
"client": zod.object({
|
|
7036
7737
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7037
7738
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7046,7 +7747,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7046
7747
|
}).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
7748
|
})).describe('Wide event with event_type=schema.created.\n'),zod.object({
|
|
7048
7749
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7049
|
-
"project_id": zod.string().regex(
|
|
7750
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreefourOneProjectIdRegExp),
|
|
7050
7751
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7051
7752
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7052
7753
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7066,6 +7767,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7066
7767
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7067
7768
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7068
7769
|
"metadata": zod.object({
|
|
7770
|
+
"authorization": zod.object({
|
|
7771
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7772
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7773
|
+
}).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
7774
|
"client": zod.object({
|
|
7070
7775
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7071
7776
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7079,7 +7784,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7079
7784
|
}).describe('Payload for `session.deleted` events.')
|
|
7080
7785
|
})).describe('Wide event with event_type=session.deleted.\n'),zod.object({
|
|
7081
7786
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7082
|
-
"project_id": zod.string().regex(
|
|
7787
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreefiveOneProjectIdRegExp),
|
|
7083
7788
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7084
7789
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7085
7790
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7099,6 +7804,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7099
7804
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7100
7805
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7101
7806
|
"metadata": zod.object({
|
|
7807
|
+
"authorization": zod.object({
|
|
7808
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7809
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7810
|
+
}).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
7811
|
"client": zod.object({
|
|
7103
7812
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7104
7813
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7112,7 +7821,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7112
7821
|
}).describe('Payload for `session.established` events.')
|
|
7113
7822
|
})).describe('Wide event with event_type=session.established.\n'),zod.object({
|
|
7114
7823
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7115
|
-
"project_id": zod.string().regex(
|
|
7824
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreesixOneProjectIdRegExp),
|
|
7116
7825
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7117
7826
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7118
7827
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7132,6 +7841,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7132
7841
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7133
7842
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7134
7843
|
"metadata": zod.object({
|
|
7844
|
+
"authorization": zod.object({
|
|
7845
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7846
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7847
|
+
}).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
7848
|
"client": zod.object({
|
|
7136
7849
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7137
7850
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7145,7 +7858,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7145
7858
|
}).describe('Shared allowlisted fields for `team.created` (snapshot) and\n`team.updated` (delta: only changed fields present).\n')
|
|
7146
7859
|
})).describe('Wide event with event_type=team.created.\n'),zod.object({
|
|
7147
7860
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7148
|
-
"project_id": zod.string().regex(
|
|
7861
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreesevenOneProjectIdRegExp),
|
|
7149
7862
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7150
7863
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7151
7864
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7165,6 +7878,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7165
7878
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7166
7879
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7167
7880
|
"metadata": zod.object({
|
|
7881
|
+
"authorization": zod.object({
|
|
7882
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7883
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7884
|
+
}).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
7885
|
"client": zod.object({
|
|
7169
7886
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7170
7887
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7178,7 +7895,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7178
7895
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
7179
7896
|
})).describe('Wide event with event_type=team.deactivated.\n'),zod.object({
|
|
7180
7897
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7181
|
-
"project_id": zod.string().regex(
|
|
7898
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreeeightOneProjectIdRegExp),
|
|
7182
7899
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7183
7900
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7184
7901
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7198,6 +7915,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7198
7915
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7199
7916
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7200
7917
|
"metadata": zod.object({
|
|
7918
|
+
"authorization": zod.object({
|
|
7919
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7920
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7921
|
+
}).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
7922
|
"client": zod.object({
|
|
7202
7923
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7203
7924
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7211,7 +7932,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7211
7932
|
}).describe('Shared allowlisted fields for `team.created` (snapshot) and\n`team.updated` (delta: only changed fields present).\n')
|
|
7212
7933
|
})).describe('Wide event with event_type=team.updated.\n'),zod.object({
|
|
7213
7934
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7214
|
-
"project_id": zod.string().regex(
|
|
7935
|
+
"project_id": zod.string().regex(listEventsResponseDataItemThreenineOneProjectIdRegExp),
|
|
7215
7936
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7216
7937
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7217
7938
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7231,6 +7952,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7231
7952
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7232
7953
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7233
7954
|
"metadata": zod.object({
|
|
7955
|
+
"authorization": zod.object({
|
|
7956
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7957
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7958
|
+
}).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
7959
|
"client": zod.object({
|
|
7235
7960
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7236
7961
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7244,7 +7969,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7244
7969
|
}).describe('Payload for `user.create.failed` events.')
|
|
7245
7970
|
})).describe('Wide event with event_type=user.create.failed.\n'),zod.object({
|
|
7246
7971
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7247
|
-
"project_id": zod.string().regex(
|
|
7972
|
+
"project_id": zod.string().regex(listEventsResponseDataItemFourzeroOneProjectIdRegExp),
|
|
7248
7973
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7249
7974
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7250
7975
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7264,6 +7989,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7264
7989
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7265
7990
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7266
7991
|
"metadata": zod.object({
|
|
7992
|
+
"authorization": zod.object({
|
|
7993
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
7994
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
7995
|
+
}).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
7996
|
"client": zod.object({
|
|
7268
7997
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7269
7998
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7279,7 +8008,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7279
8008
|
}).describe('Payload for `user.created`. Identity is `entity_id`; attribute values\nappear only for schema fields marked `x-audit`.\n')
|
|
7280
8009
|
})).describe('Wide event with event_type=user.created.\n'),zod.object({
|
|
7281
8010
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7282
|
-
"project_id": zod.string().regex(
|
|
8011
|
+
"project_id": zod.string().regex(listEventsResponseDataItemFouroneOneProjectIdRegExp),
|
|
7283
8012
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7284
8013
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7285
8014
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7299,6 +8028,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7299
8028
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7300
8029
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7301
8030
|
"metadata": zod.object({
|
|
8031
|
+
"authorization": zod.object({
|
|
8032
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8033
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8034
|
+
}).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
8035
|
"client": zod.object({
|
|
7303
8036
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7304
8037
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7312,7 +8045,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7312
8045
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
7313
8046
|
})).describe('Wide event with event_type=user.deleted.\n'),zod.object({
|
|
7314
8047
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7315
|
-
"project_id": zod.string().regex(
|
|
8048
|
+
"project_id": zod.string().regex(listEventsResponseDataItemFourtwoOneProjectIdRegExp),
|
|
7316
8049
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7317
8050
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7318
8051
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7332,6 +8065,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7332
8065
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7333
8066
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7334
8067
|
"metadata": zod.object({
|
|
8068
|
+
"authorization": zod.object({
|
|
8069
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8070
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8071
|
+
}).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
8072
|
"client": zod.object({
|
|
7336
8073
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7337
8074
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7346,7 +8083,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7346
8083
|
}).describe('Payload for `user.updated`. Same attribute rules as create: keys touched\nplus `x-audit` values only.\n')
|
|
7347
8084
|
})).describe('Wide event with event_type=user.updated.\n'),zod.object({
|
|
7348
8085
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7349
|
-
"project_id": zod.string().regex(
|
|
8086
|
+
"project_id": zod.string().regex(listEventsResponseDataItemFourthreeOneProjectIdRegExp),
|
|
7350
8087
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7351
8088
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7352
8089
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7366,6 +8103,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7366
8103
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7367
8104
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7368
8105
|
"metadata": zod.object({
|
|
8106
|
+
"authorization": zod.object({
|
|
8107
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8108
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8109
|
+
}).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
8110
|
"client": zod.object({
|
|
7370
8111
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7371
8112
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7379,7 +8120,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7379
8120
|
}).describe('Payload for `variable.removed` events, one row removed.')
|
|
7380
8121
|
})).describe('Wide event with event_type=variable.removed.\n'),zod.object({
|
|
7381
8122
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
7382
|
-
"project_id": zod.string().regex(
|
|
8123
|
+
"project_id": zod.string().regex(listEventsResponseDataItemFourfourOneProjectIdRegExp),
|
|
7383
8124
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
7384
8125
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
7385
8126
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -7399,6 +8140,10 @@ export const ListEventsResponse = zod.object({
|
|
|
7399
8140
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7400
8141
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7401
8142
|
"metadata": zod.object({
|
|
8143
|
+
"authorization": zod.object({
|
|
8144
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8145
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8146
|
+
}).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
8147
|
"client": zod.object({
|
|
7403
8148
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7404
8149
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7463,20 +8208,20 @@ export const getEventResponseTwofiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9
|
|
|
7463
8208
|
export const getEventResponseTwosixOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7464
8209
|
export const getEventResponseTwosevenOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7465
8210
|
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
8211
|
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
8212
|
export const getEventResponseThreezeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7478
8213
|
export const getEventResponseThreeoneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
8214
|
+
export const getEventResponseThreeoneTwoPayloadContentHashMin = 71;
|
|
8215
|
+
export const getEventResponseThreeoneTwoPayloadContentHashMax = 71;
|
|
8216
|
+
|
|
8217
|
+
|
|
8218
|
+
export const getEventResponseThreeoneTwoPayloadContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
7479
8219
|
export const getEventResponseThreetwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
8220
|
+
export const getEventResponseThreetwoTwoPayloadStatusMin = 100;
|
|
8221
|
+
export const getEventResponseThreetwoTwoPayloadStatusMax = 599;
|
|
8222
|
+
|
|
8223
|
+
export const getEventResponseThreetwoTwoPayloadDurationMsMin = 0;
|
|
8224
|
+
|
|
7480
8225
|
export const getEventResponseThreethreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7481
8226
|
export const getEventResponseThreefourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7482
8227
|
export const getEventResponseThreefiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -7486,6 +8231,9 @@ export const getEventResponseThreeeightOneProjectIdRegExp = new RegExp('^[a-zA-Z
|
|
|
7486
8231
|
export const getEventResponseThreenineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7487
8232
|
export const getEventResponseFourzeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7488
8233
|
export const getEventResponseFouroneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
8234
|
+
export const getEventResponseFourtwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
8235
|
+
export const getEventResponseFourthreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
8236
|
+
export const getEventResponseFourfourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7489
8237
|
|
|
7490
8238
|
|
|
7491
8239
|
export const GetEventResponse = zod.union([zod.object({
|
|
@@ -7510,6 +8258,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7510
8258
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7511
8259
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7512
8260
|
"metadata": zod.object({
|
|
8261
|
+
"authorization": zod.object({
|
|
8262
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8263
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8264
|
+
}).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
8265
|
"client": zod.object({
|
|
7514
8266
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7515
8267
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7543,6 +8295,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7543
8295
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7544
8296
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7545
8297
|
"metadata": zod.object({
|
|
8298
|
+
"authorization": zod.object({
|
|
8299
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8300
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8301
|
+
}).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
8302
|
"client": zod.object({
|
|
7547
8303
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7548
8304
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7576,6 +8332,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7576
8332
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7577
8333
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7578
8334
|
"metadata": zod.object({
|
|
8335
|
+
"authorization": zod.object({
|
|
8336
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8337
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8338
|
+
}).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
8339
|
"client": zod.object({
|
|
7580
8340
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7581
8341
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7611,6 +8371,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7611
8371
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7612
8372
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7613
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'),
|
|
7614
8378
|
"client": zod.object({
|
|
7615
8379
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7616
8380
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7646,6 +8410,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7646
8410
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7647
8411
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7648
8412
|
"metadata": zod.object({
|
|
8413
|
+
"authorization": zod.object({
|
|
8414
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8415
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8416
|
+
}).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
8417
|
"client": zod.object({
|
|
7650
8418
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7651
8419
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7680,6 +8448,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7680
8448
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7681
8449
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7682
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'),
|
|
7683
8455
|
"client": zod.object({
|
|
7684
8456
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7685
8457
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7714,6 +8486,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7714
8486
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7715
8487
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7716
8488
|
"metadata": zod.object({
|
|
8489
|
+
"authorization": zod.object({
|
|
8490
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8491
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8492
|
+
}).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
8493
|
"client": zod.object({
|
|
7718
8494
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7719
8495
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7749,6 +8525,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7749
8525
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7750
8526
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7751
8527
|
"metadata": zod.object({
|
|
8528
|
+
"authorization": zod.object({
|
|
8529
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8530
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8531
|
+
}).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
8532
|
"client": zod.object({
|
|
7753
8533
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7754
8534
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7784,6 +8564,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7784
8564
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7785
8565
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7786
8566
|
"metadata": zod.object({
|
|
8567
|
+
"authorization": zod.object({
|
|
8568
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8569
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8570
|
+
}).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
8571
|
"client": zod.object({
|
|
7788
8572
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7789
8573
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7819,6 +8603,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7819
8603
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7820
8604
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7821
8605
|
"metadata": zod.object({
|
|
8606
|
+
"authorization": zod.object({
|
|
8607
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8608
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8609
|
+
}).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
8610
|
"client": zod.object({
|
|
7823
8611
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7824
8612
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7852,6 +8640,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7852
8640
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7853
8641
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7854
8642
|
"metadata": zod.object({
|
|
8643
|
+
"authorization": zod.object({
|
|
8644
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8645
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8646
|
+
}).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
8647
|
"client": zod.object({
|
|
7856
8648
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7857
8649
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7885,6 +8677,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7885
8677
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7886
8678
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7887
8679
|
"metadata": zod.object({
|
|
8680
|
+
"authorization": zod.object({
|
|
8681
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8682
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8683
|
+
}).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
8684
|
"client": zod.object({
|
|
7889
8685
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7890
8686
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7920,6 +8716,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7920
8716
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7921
8717
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7922
8718
|
"metadata": zod.object({
|
|
8719
|
+
"authorization": zod.object({
|
|
8720
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8721
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8722
|
+
}).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
8723
|
"client": zod.object({
|
|
7924
8724
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7925
8725
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7955,6 +8755,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7955
8755
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7956
8756
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7957
8757
|
"metadata": zod.object({
|
|
8758
|
+
"authorization": zod.object({
|
|
8759
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8760
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8761
|
+
}).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
8762
|
"client": zod.object({
|
|
7959
8763
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7960
8764
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -7991,6 +8795,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
7991
8795
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
7992
8796
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
7993
8797
|
"metadata": zod.object({
|
|
8798
|
+
"authorization": zod.object({
|
|
8799
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8800
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8801
|
+
}).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
8802
|
"client": zod.object({
|
|
7995
8803
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
7996
8804
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8028,6 +8836,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8028
8836
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8029
8837
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8030
8838
|
"metadata": zod.object({
|
|
8839
|
+
"authorization": zod.object({
|
|
8840
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8841
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8842
|
+
}).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
8843
|
"client": zod.object({
|
|
8032
8844
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8033
8845
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8068,6 +8880,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8068
8880
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8069
8881
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8070
8882
|
"metadata": zod.object({
|
|
8883
|
+
"authorization": zod.object({
|
|
8884
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8885
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8886
|
+
}).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
8887
|
"client": zod.object({
|
|
8072
8888
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8073
8889
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8101,6 +8917,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8101
8917
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8102
8918
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8103
8919
|
"metadata": zod.object({
|
|
8920
|
+
"authorization": zod.object({
|
|
8921
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8922
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8923
|
+
}).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
8924
|
"client": zod.object({
|
|
8105
8925
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8106
8926
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8141,6 +8961,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8141
8961
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8142
8962
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8143
8963
|
"metadata": zod.object({
|
|
8964
|
+
"authorization": zod.object({
|
|
8965
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
8966
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8967
|
+
}).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
8968
|
"client": zod.object({
|
|
8145
8969
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8146
8970
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8178,6 +9002,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8178
9002
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8179
9003
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8180
9004
|
"metadata": zod.object({
|
|
9005
|
+
"authorization": zod.object({
|
|
9006
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9007
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9008
|
+
}).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
9009
|
"client": zod.object({
|
|
8182
9010
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8183
9011
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8212,6 +9040,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8212
9040
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8213
9041
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8214
9042
|
"metadata": zod.object({
|
|
9043
|
+
"authorization": zod.object({
|
|
9044
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9045
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9046
|
+
}).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
9047
|
"client": zod.object({
|
|
8216
9048
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8217
9049
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8249,6 +9081,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8249
9081
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8250
9082
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8251
9083
|
"metadata": zod.object({
|
|
9084
|
+
"authorization": zod.object({
|
|
9085
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9086
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9087
|
+
}).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
9088
|
"client": zod.object({
|
|
8253
9089
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8254
9090
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8283,6 +9119,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8283
9119
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8284
9120
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8285
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'),
|
|
8286
9126
|
"client": zod.object({
|
|
8287
9127
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8288
9128
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8317,6 +9157,125 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8317
9157
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8318
9158
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8319
9159
|
"metadata": zod.object({
|
|
9160
|
+
"authorization": zod.object({
|
|
9161
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9162
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9163
|
+
}).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'),
|
|
9164
|
+
"client": zod.object({
|
|
9165
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
9166
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
9167
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
9168
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
9169
|
+
}).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')
|
|
9170
|
+
}).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({
|
|
9171
|
+
"event_type": zod.literal("policy.created"),
|
|
9172
|
+
"payload": zod.object({
|
|
9173
|
+
"operation": zod.string().describe('The operation the policy guards, e.g. `auth.factor.password.set`.'),
|
|
9174
|
+
"revision_id": zod.string().describe('The revision the publish appended.'),
|
|
9175
|
+
"config": zod.record(zod.string(), zod.unknown()).describe('The instance\'s settings as published.')
|
|
9176
|
+
}).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')
|
|
9177
|
+
})).describe('Wide event with event_type=policy.created.\n'),zod.object({
|
|
9178
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
9179
|
+
"project_id": zod.string().regex(getEventResponseTwofiveOneProjectIdRegExp),
|
|
9180
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
9181
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
9182
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
9183
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
9184
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
9185
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
9186
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
9187
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
9188
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
9189
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
9190
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
9191
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
9192
|
+
"delegation_id": zod.string().optional(),
|
|
9193
|
+
"grantor": zod.string().optional(),
|
|
9194
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
9195
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
9196
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
9197
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
9198
|
+
"metadata": zod.object({
|
|
9199
|
+
"authorization": zod.object({
|
|
9200
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9201
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9202
|
+
}).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'),
|
|
9203
|
+
"client": zod.object({
|
|
9204
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
9205
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
9206
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
9207
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
9208
|
+
}).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')
|
|
9209
|
+
}).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({
|
|
9210
|
+
"event_type": zod.literal("policy.updated"),
|
|
9211
|
+
"payload": zod.object({
|
|
9212
|
+
"operation": zod.string().describe('The operation the policy guards, e.g. `auth.factor.password.set`.'),
|
|
9213
|
+
"revision_id": zod.string().describe('The revision the publish appended.'),
|
|
9214
|
+
"config": zod.record(zod.string(), zod.unknown()).describe('The instance\'s settings as published.')
|
|
9215
|
+
}).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')
|
|
9216
|
+
})).describe('Wide event with event_type=policy.updated.\n'),zod.object({
|
|
9217
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
9218
|
+
"project_id": zod.string().regex(getEventResponseTwosixOneProjectIdRegExp),
|
|
9219
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
9220
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
9221
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
9222
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
9223
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
9224
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
9225
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
9226
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
9227
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
9228
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
9229
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
9230
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
9231
|
+
"delegation_id": zod.string().optional(),
|
|
9232
|
+
"grantor": zod.string().optional(),
|
|
9233
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
9234
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
9235
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
9236
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
9237
|
+
"metadata": zod.object({
|
|
9238
|
+
"authorization": zod.object({
|
|
9239
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9240
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9241
|
+
}).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'),
|
|
9242
|
+
"client": zod.object({
|
|
9243
|
+
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
9244
|
+
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
9245
|
+
"origin": zod.string().optional().describe('Origin header when present.')
|
|
9246
|
+
}).optional().describe('Observed HTTP requestor context on Path A request.api only.')
|
|
9247
|
+
}).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')
|
|
9248
|
+
}).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({
|
|
9249
|
+
"event_type": zod.literal("preview.removed"),
|
|
9250
|
+
"payload": zod.object({
|
|
9251
|
+
|
|
9252
|
+
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
9253
|
+
})).describe('Wide event with event_type=preview.removed.\n'),zod.object({
|
|
9254
|
+
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
9255
|
+
"project_id": zod.string().regex(getEventResponseTwosevenOneProjectIdRegExp),
|
|
9256
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
9257
|
+
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
9258
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
9259
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened (server/storage clock, dialect-owned).'),
|
|
9260
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the row was inserted (server/storage clock, dialect-owned).'),
|
|
9261
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('Who triggered the event.'),
|
|
9262
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('Actor kind.'),
|
|
9263
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('Resource type affected.'),
|
|
9264
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('Resource id affected.'),
|
|
9265
|
+
"client_id": zod.string().describe('Application or agent that produced the event.'),
|
|
9266
|
+
"token_id": zod.string().optional().describe('Token id present at emit time, when any.'),
|
|
9267
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('Delegation kind (omit when unset).'),
|
|
9268
|
+
"delegation_id": zod.string().optional(),
|
|
9269
|
+
"grantor": zod.string().optional(),
|
|
9270
|
+
"fingerprint": zod.string().optional().describe('Device fingerprint correlation id.'),
|
|
9271
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('HTTP request correlation id.'),
|
|
9272
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
9273
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
9274
|
+
"metadata": zod.object({
|
|
9275
|
+
"authorization": zod.object({
|
|
9276
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9277
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9278
|
+
}).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
9279
|
"client": zod.object({
|
|
8321
9280
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8322
9281
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8335,7 +9294,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8335
9294
|
}).describe('Shared allowlisted fields for `project.created` (full snapshot) and\n`project.updated` (delta: only changed fields present).\n')
|
|
8336
9295
|
})).describe('Wide event with event_type=project.created.\n'),zod.object({
|
|
8337
9296
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8338
|
-
"project_id": zod.string().regex(
|
|
9297
|
+
"project_id": zod.string().regex(getEventResponseTwoeightOneProjectIdRegExp),
|
|
8339
9298
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8340
9299
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8341
9300
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8355,6 +9314,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8355
9314
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8356
9315
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8357
9316
|
"metadata": zod.object({
|
|
9317
|
+
"authorization": zod.object({
|
|
9318
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9319
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9320
|
+
}).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
9321
|
"client": zod.object({
|
|
8359
9322
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8360
9323
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8368,7 +9331,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8368
9331
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
8369
9332
|
})).describe('Wide event with event_type=project.deleted.\n'),zod.object({
|
|
8370
9333
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8371
|
-
"project_id": zod.string().regex(
|
|
9334
|
+
"project_id": zod.string().regex(getEventResponseTwonineOneProjectIdRegExp),
|
|
8372
9335
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8373
9336
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8374
9337
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8388,6 +9351,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8388
9351
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8389
9352
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8390
9353
|
"metadata": zod.object({
|
|
9354
|
+
"authorization": zod.object({
|
|
9355
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9356
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9357
|
+
}).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
9358
|
"client": zod.object({
|
|
8392
9359
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8393
9360
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8406,7 +9373,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8406
9373
|
}).describe('Shared allowlisted fields for `project.created` (full snapshot) and\n`project.updated` (delta: only changed fields present).\n')
|
|
8407
9374
|
})).describe('Wide event with event_type=project.updated.\n'),zod.object({
|
|
8408
9375
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8409
|
-
"project_id": zod.string().regex(
|
|
9376
|
+
"project_id": zod.string().regex(getEventResponseThreezeroOneProjectIdRegExp),
|
|
8410
9377
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8411
9378
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8412
9379
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8426,6 +9393,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8426
9393
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8427
9394
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8428
9395
|
"metadata": zod.object({
|
|
9396
|
+
"authorization": zod.object({
|
|
9397
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9398
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9399
|
+
}).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
9400
|
"client": zod.object({
|
|
8430
9401
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8431
9402
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8447,7 +9418,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8447
9418
|
}).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
9419
|
})).describe('Wide event with event_type=release.created.\n'),zod.object({
|
|
8449
9420
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8450
|
-
"project_id": zod.string().regex(
|
|
9421
|
+
"project_id": zod.string().regex(getEventResponseThreeoneOneProjectIdRegExp),
|
|
8451
9422
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8452
9423
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8453
9424
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8467,6 +9438,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8467
9438
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8468
9439
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8469
9440
|
"metadata": zod.object({
|
|
9441
|
+
"authorization": zod.object({
|
|
9442
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9443
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9444
|
+
}).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
9445
|
"client": zod.object({
|
|
8471
9446
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8472
9447
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8476,11 +9451,11 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8476
9451
|
}).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
9452
|
"event_type": zod.literal("release.revoked"),
|
|
8478
9453
|
"payload": zod.object({
|
|
8479
|
-
"content_hash": zod.string().min(
|
|
9454
|
+
"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
9455
|
}).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
9456
|
})).describe('Wide event with event_type=release.revoked.\n'),zod.object({
|
|
8482
9457
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8483
|
-
"project_id": zod.string().regex(
|
|
9458
|
+
"project_id": zod.string().regex(getEventResponseThreetwoOneProjectIdRegExp),
|
|
8484
9459
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8485
9460
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8486
9461
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8500,6 +9475,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8500
9475
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8501
9476
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8502
9477
|
"metadata": zod.object({
|
|
9478
|
+
"authorization": zod.object({
|
|
9479
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9480
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9481
|
+
}).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
9482
|
"client": zod.object({
|
|
8504
9483
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8505
9484
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8512,12 +9491,12 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8512
9491
|
"operation_id": zod.string(),
|
|
8513
9492
|
"method": zod.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS']).describe('HTTP method.'),
|
|
8514
9493
|
"route_template": zod.string(),
|
|
8515
|
-
"status": zod.int().min(
|
|
8516
|
-
"duration_ms": zod.int().min(
|
|
9494
|
+
"status": zod.int().min(getEventResponseThreetwoTwoPayloadStatusMin).max(getEventResponseThreetwoTwoPayloadStatusMax),
|
|
9495
|
+
"duration_ms": zod.int().min(getEventResponseThreetwoTwoPayloadDurationMsMin)
|
|
8517
9496
|
}).describe('Payload for `request.api` events.')
|
|
8518
9497
|
})).describe('Wide event with event_type=request.api.\n'),zod.object({
|
|
8519
9498
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8520
|
-
"project_id": zod.string().regex(
|
|
9499
|
+
"project_id": zod.string().regex(getEventResponseThreethreeOneProjectIdRegExp),
|
|
8521
9500
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8522
9501
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8523
9502
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8537,6 +9516,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8537
9516
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8538
9517
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8539
9518
|
"metadata": zod.object({
|
|
9519
|
+
"authorization": zod.object({
|
|
9520
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9521
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9522
|
+
}).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
9523
|
"client": zod.object({
|
|
8541
9524
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8542
9525
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8551,7 +9534,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8551
9534
|
}).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
9535
|
})).describe('Wide event with event_type=schema.created.\n'),zod.object({
|
|
8553
9536
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8554
|
-
"project_id": zod.string().regex(
|
|
9537
|
+
"project_id": zod.string().regex(getEventResponseThreefourOneProjectIdRegExp),
|
|
8555
9538
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8556
9539
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8557
9540
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8571,6 +9554,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8571
9554
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8572
9555
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8573
9556
|
"metadata": zod.object({
|
|
9557
|
+
"authorization": zod.object({
|
|
9558
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9559
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9560
|
+
}).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
9561
|
"client": zod.object({
|
|
8575
9562
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8576
9563
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8584,7 +9571,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8584
9571
|
}).describe('Payload for `session.deleted` events.')
|
|
8585
9572
|
})).describe('Wide event with event_type=session.deleted.\n'),zod.object({
|
|
8586
9573
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8587
|
-
"project_id": zod.string().regex(
|
|
9574
|
+
"project_id": zod.string().regex(getEventResponseThreefiveOneProjectIdRegExp),
|
|
8588
9575
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8589
9576
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8590
9577
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8604,6 +9591,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8604
9591
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8605
9592
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8606
9593
|
"metadata": zod.object({
|
|
9594
|
+
"authorization": zod.object({
|
|
9595
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9596
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9597
|
+
}).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
9598
|
"client": zod.object({
|
|
8608
9599
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8609
9600
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8617,7 +9608,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8617
9608
|
}).describe('Payload for `session.established` events.')
|
|
8618
9609
|
})).describe('Wide event with event_type=session.established.\n'),zod.object({
|
|
8619
9610
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8620
|
-
"project_id": zod.string().regex(
|
|
9611
|
+
"project_id": zod.string().regex(getEventResponseThreesixOneProjectIdRegExp),
|
|
8621
9612
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8622
9613
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8623
9614
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8637,6 +9628,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8637
9628
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8638
9629
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8639
9630
|
"metadata": zod.object({
|
|
9631
|
+
"authorization": zod.object({
|
|
9632
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9633
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9634
|
+
}).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
9635
|
"client": zod.object({
|
|
8641
9636
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8642
9637
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8650,7 +9645,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8650
9645
|
}).describe('Shared allowlisted fields for `team.created` (snapshot) and\n`team.updated` (delta: only changed fields present).\n')
|
|
8651
9646
|
})).describe('Wide event with event_type=team.created.\n'),zod.object({
|
|
8652
9647
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8653
|
-
"project_id": zod.string().regex(
|
|
9648
|
+
"project_id": zod.string().regex(getEventResponseThreesevenOneProjectIdRegExp),
|
|
8654
9649
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8655
9650
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8656
9651
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8670,6 +9665,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8670
9665
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8671
9666
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8672
9667
|
"metadata": zod.object({
|
|
9668
|
+
"authorization": zod.object({
|
|
9669
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9670
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9671
|
+
}).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
9672
|
"client": zod.object({
|
|
8674
9673
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8675
9674
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8683,7 +9682,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8683
9682
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
8684
9683
|
})).describe('Wide event with event_type=team.deactivated.\n'),zod.object({
|
|
8685
9684
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8686
|
-
"project_id": zod.string().regex(
|
|
9685
|
+
"project_id": zod.string().regex(getEventResponseThreeeightOneProjectIdRegExp),
|
|
8687
9686
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8688
9687
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8689
9688
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8703,6 +9702,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8703
9702
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8704
9703
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8705
9704
|
"metadata": zod.object({
|
|
9705
|
+
"authorization": zod.object({
|
|
9706
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9707
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9708
|
+
}).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
9709
|
"client": zod.object({
|
|
8707
9710
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8708
9711
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8716,7 +9719,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8716
9719
|
}).describe('Shared allowlisted fields for `team.created` (snapshot) and\n`team.updated` (delta: only changed fields present).\n')
|
|
8717
9720
|
})).describe('Wide event with event_type=team.updated.\n'),zod.object({
|
|
8718
9721
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8719
|
-
"project_id": zod.string().regex(
|
|
9722
|
+
"project_id": zod.string().regex(getEventResponseThreenineOneProjectIdRegExp),
|
|
8720
9723
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8721
9724
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8722
9725
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8736,6 +9739,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8736
9739
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8737
9740
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8738
9741
|
"metadata": zod.object({
|
|
9742
|
+
"authorization": zod.object({
|
|
9743
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9744
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9745
|
+
}).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
9746
|
"client": zod.object({
|
|
8740
9747
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8741
9748
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8749,7 +9756,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8749
9756
|
}).describe('Payload for `user.create.failed` events.')
|
|
8750
9757
|
})).describe('Wide event with event_type=user.create.failed.\n'),zod.object({
|
|
8751
9758
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8752
|
-
"project_id": zod.string().regex(
|
|
9759
|
+
"project_id": zod.string().regex(getEventResponseFourzeroOneProjectIdRegExp),
|
|
8753
9760
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8754
9761
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8755
9762
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8769,6 +9776,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8769
9776
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8770
9777
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8771
9778
|
"metadata": zod.object({
|
|
9779
|
+
"authorization": zod.object({
|
|
9780
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9781
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9782
|
+
}).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
9783
|
"client": zod.object({
|
|
8773
9784
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8774
9785
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8784,7 +9795,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8784
9795
|
}).describe('Payload for `user.created`. Identity is `entity_id`; attribute values\nappear only for schema fields marked `x-audit`.\n')
|
|
8785
9796
|
})).describe('Wide event with event_type=user.created.\n'),zod.object({
|
|
8786
9797
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8787
|
-
"project_id": zod.string().regex(
|
|
9798
|
+
"project_id": zod.string().regex(getEventResponseFouroneOneProjectIdRegExp),
|
|
8788
9799
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8789
9800
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8790
9801
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8804,6 +9815,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8804
9815
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8805
9816
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8806
9817
|
"metadata": zod.object({
|
|
9818
|
+
"authorization": zod.object({
|
|
9819
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9820
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9821
|
+
}).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
9822
|
"client": zod.object({
|
|
8808
9823
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8809
9824
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8817,7 +9832,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8817
9832
|
}).describe('Empty payload for event types with no typed fields\n(e.g. `project.deleted`, `user.deleted`, `session.expired`).\n')
|
|
8818
9833
|
})).describe('Wide event with event_type=user.deleted.\n'),zod.object({
|
|
8819
9834
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8820
|
-
"project_id": zod.string().regex(
|
|
9835
|
+
"project_id": zod.string().regex(getEventResponseFourtwoOneProjectIdRegExp),
|
|
8821
9836
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8822
9837
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8823
9838
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8837,6 +9852,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8837
9852
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8838
9853
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8839
9854
|
"metadata": zod.object({
|
|
9855
|
+
"authorization": zod.object({
|
|
9856
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9857
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9858
|
+
}).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
9859
|
"client": zod.object({
|
|
8841
9860
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8842
9861
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8851,7 +9870,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8851
9870
|
}).describe('Payload for `user.updated`. Same attribute rules as create: keys touched\nplus `x-audit` values only.\n')
|
|
8852
9871
|
})).describe('Wide event with event_type=user.updated.\n'),zod.object({
|
|
8853
9872
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8854
|
-
"project_id": zod.string().regex(
|
|
9873
|
+
"project_id": zod.string().regex(getEventResponseFourthreeOneProjectIdRegExp),
|
|
8855
9874
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8856
9875
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8857
9876
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8871,6 +9890,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8871
9890
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8872
9891
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8873
9892
|
"metadata": zod.object({
|
|
9893
|
+
"authorization": zod.object({
|
|
9894
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9895
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9896
|
+
}).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
9897
|
"client": zod.object({
|
|
8875
9898
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8876
9899
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -8884,7 +9907,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8884
9907
|
}).describe('Payload for `variable.removed` events, one row removed.')
|
|
8885
9908
|
})).describe('Wide event with event_type=variable.removed.\n'),zod.object({
|
|
8886
9909
|
"id": zod.string().describe('Managed event id (`evt_<opaque>`).'),
|
|
8887
|
-
"project_id": zod.string().regex(
|
|
9910
|
+
"project_id": zod.string().regex(getEventResponseFourfourOneProjectIdRegExp),
|
|
8888
9911
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('Emit-time team scope, when the actor operated under a team.'),
|
|
8889
9912
|
"event_type": zod.string().describe('Semantic event name (dot-separated). Discriminator for the Event union —\nsee docs/design/api/events-catalog.md.\n'),
|
|
8890
9913
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('Wide-event category.'),
|
|
@@ -8904,6 +9927,10 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
8904
9927
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('Session correlation id.'),
|
|
8905
9928
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('Login flow correlation id.'),
|
|
8906
9929
|
"metadata": zod.object({
|
|
9930
|
+
"authorization": zod.object({
|
|
9931
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation\n(ADR 075), which administers every project.\n'),
|
|
9932
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9933
|
+
}).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
9934
|
"client": zod.object({
|
|
8908
9935
|
"ip": zod.string().optional().describe('Client IP from the first X-Forwarded-For hop or RemoteAddr.'),
|
|
8909
9936
|
"user_agent": zod.string().optional().describe('Observed User-Agent header.'),
|
|
@@ -9094,11 +10121,11 @@ export const DeleteVariableResponse = zod.void()
|
|
|
9094
10121
|
* - `400 dep.invalid`: both or neither of `release_id` and `content_hash`;
|
|
9095
10122
|
* a primary origin named exactly; `primary` mixed with preview URLs;
|
|
9096
10123
|
* `primary` on a project with no primary origin; `ttl` with `primary`;
|
|
9097
|
-
* `ttl` above
|
|
10124
|
+
* `ttl` above 365 days (`P365D`).
|
|
9098
10125
|
* - `400 dep.variables_missing`: a referenced variable has no value for
|
|
9099
10126
|
* the kind; `details` names the kind and every missing variable.
|
|
9100
10127
|
* - `403 proj.origin_not_allowed`: a preview URL matches no preview
|
|
9101
|
-
* pattern.
|
|
10128
|
+
* pattern, or is a loopback URL.
|
|
9102
10129
|
* - `404 rel.not_found`: the release id or digest names no release here.
|
|
9103
10130
|
* - `409 dep.conflict`: `expected_deployment_id` is not the deployment
|
|
9104
10131
|
* this write replaces; `details.deployment` is that deployment.
|
|
@@ -9124,7 +10151,6 @@ export const createDeploymentBodyTargetsItemMax = 2048;
|
|
|
9124
10151
|
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
10152
|
export const createDeploymentBodyTargetsMax = 50;
|
|
9126
10153
|
|
|
9127
|
-
export const createDeploymentBodyTtlRegExp = new RegExp('^[1-9][0-9]{0,5}[mhd]$');
|
|
9128
10154
|
export const createDeploymentBodyMessageMax = 1024;
|
|
9129
10155
|
|
|
9130
10156
|
export const createDeploymentBodyExpectedDeploymentIdRegExp = new RegExp('^dep_[a-zA-Z0-9_-]+$');
|
|
@@ -9134,7 +10160,7 @@ export const CreateDeploymentBody = zod.object({
|
|
|
9134
10160
|
"release_id": zod.string().regex(createDeploymentBodyReleaseIdRegExp).optional().describe('The opaque, immutable identifier of a release.'),
|
|
9135
10161
|
"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
10162
|
"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().
|
|
10163
|
+
"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
10164
|
"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
10165
|
"message": zod.string().max(createDeploymentBodyMessageMax).optional().describe('A short free-form summary of why this deployment happened, recorded on\nits metadata.\n'),
|
|
9140
10166
|
"expected_deployment_id": zod.string().regex(createDeploymentBodyExpectedDeploymentIdRegExp).optional().describe('The opaque, immutable identifier of a deployment.')
|
|
@@ -9203,8 +10229,8 @@ export const CreateDeploymentResponse = zod.object({
|
|
|
9203
10229
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
9204
10230
|
"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
10231
|
"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'),
|
|
10232
|
+
"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'),
|
|
10233
|
+
"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
10234
|
"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
10235
|
}).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
10236
|
}).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 +10339,8 @@ export const ListDeploymentsResponse = zod.object({
|
|
|
9313
10339
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
9314
10340
|
"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
10341
|
"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'),
|
|
10342
|
+
"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'),
|
|
10343
|
+
"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
10344
|
"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
10345
|
}).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
10346
|
}).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 +10435,8 @@ export const GetDeploymentByIdResponse = zod.object({
|
|
|
9409
10435
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
9410
10436
|
"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
10437
|
"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'),
|
|
10438
|
+
"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'),
|
|
10439
|
+
"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
10440
|
"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
10441
|
}).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
10442
|
}).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 +10547,8 @@ export const RollbackDeploymentResponse = zod.object({
|
|
|
9521
10547
|
}).describe('Who assembled the release, when, and from what source. Set when the release\nis assembled and never mutated afterwards.\n'),
|
|
9522
10548
|
"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
10549
|
"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'),
|
|
10550
|
+
"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'),
|
|
10551
|
+
"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
10552
|
"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
10553
|
}).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
10554
|
}).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')
|