@zitadel/api 0.7.0 → 0.8.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/{api-factory-BPmRCU7u.mjs → api-factory-B2kd991F.mjs} +14 -2
- package/dist/api-factory-B2kd991F.mjs.map +1 -0
- package/dist/{api-factory-DCzYxpdV.d.mts → api-factory-DW48-EMM.d.mts} +8 -3
- package/dist/api-factory-DW48-EMM.d.mts.map +1 -0
- package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
- package/dist/generated/endpoints/zitadelNextGen.mjs +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +225 -109
- package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs +737 -41
- package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +594 -182
- package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
- package/dist/generated/endpoints/zitadelNextGen.zod.mjs +788 -347
- 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 +17 -3
- package/dist/generated/model/index.mjs.map +1 -1
- package/dist/generated/operations.d.mts.map +1 -1
- package/dist/generated/operations.mjs +46 -4
- package/dist/generated/operations.mjs.map +1 -1
- package/dist/{index-BwYxe7Dw.d.mts → index-REGtKmAu.d.mts} +1466 -327
- package/dist/index-REGtKmAu.d.mts.map +1 -0
- package/dist/runtime/api-factory.d.mts +1 -1
- package/dist/runtime/api-factory.mjs +1 -1
- package/dist/runtime/config.d.mts +1 -1
- package/dist/runtime/config.mjs +1 -1
- package/dist/{zitadelNextGen-SGK-fW1x.d.mts → zitadelNextGen-C2Qcm9jl.d.mts} +65 -20
- package/dist/zitadelNextGen-C2Qcm9jl.d.mts.map +1 -0
- package/dist/{zitadelNextGen-DsPFGqLs.mjs → zitadelNextGen-CDqt2m_4.mjs} +141 -558
- package/dist/zitadelNextGen-CDqt2m_4.mjs.map +1 -0
- package/package.json +2 -2
- package/src/generated/endpoints/zitadelNextGen.faker.ts +14 -10
- package/src/generated/endpoints/zitadelNextGen.msw.ts +278 -216
- package/src/generated/endpoints/zitadelNextGen.ts +209 -736
- package/src/generated/endpoints/zitadelNextGen.zod.ts +674 -312
- package/src/generated/model/acceptInvitation200.ts +84 -12
- package/src/generated/model/acceptInvitationDefault.ts +18 -0
- package/src/generated/model/buildReleaseBodyBundle.ts +1 -2
- package/src/generated/model/buildReleaseBodyBundleOauth.ts +1 -2
- package/src/generated/model/buildReleaseParams.ts +7 -7
- package/src/generated/model/cancelInvitationParams.ts +7 -7
- package/src/generated/model/createAuthAttempt201ChallengesItemPayload.ts +1 -1
- package/src/generated/model/createAuthAttemptChallenge201Payload.ts +1 -1
- package/src/generated/model/createDeploymentParams.ts +7 -7
- package/src/generated/model/createGrantParams.ts +7 -7
- package/src/generated/model/createInvitation201.ts +84 -12
- package/src/generated/model/createInvitationBody.ts +4 -4
- package/src/generated/model/createInvitationParams.ts +7 -7
- package/src/generated/model/createReleaseParams.ts +7 -7
- package/src/generated/model/createTeamParams.ts +7 -7
- package/src/generated/model/createUserParams.ts +23 -23
- package/src/generated/model/deleteGrantParams.ts +7 -7
- package/src/generated/model/deleteVariableParams.ts +12 -12
- package/src/generated/model/evaluatePolicyParams.ts +7 -7
- package/src/generated/model/exchangeHandoffParams.ts +7 -7
- package/src/generated/model/getApplicationParams.ts +7 -7
- package/src/generated/model/getAuthAttempt200ChallengesItemPayload.ts +1 -1
- package/src/generated/model/getDeploymentParams.ts +7 -7
- package/src/generated/model/getEvent200.ts +192 -10
- package/src/generated/model/getEventParams.ts +7 -7
- package/src/generated/model/getGrantParams.ts +13 -13
- package/src/generated/model/getIdpParams.ts +7 -7
- package/src/generated/model/getIdpRevisionParams.ts +7 -7
- package/src/generated/model/getInvitation200.ts +84 -12
- package/src/generated/model/getInvitationParams.ts +7 -7
- package/src/generated/model/getMyPasswordStateParams.ts +16 -16
- package/src/generated/model/getMySessionCsrfTokenParams.ts +16 -16
- package/src/generated/model/getMySessionParams.ts +16 -16
- package/src/generated/model/getMyUserParams.ts +16 -16
- package/src/generated/model/getMyUserSchemaParams.ts +16 -16
- package/src/generated/model/getOAuthSettings200.ts +1 -2
- package/src/generated/model/getOAuthSettings200Oauth.ts +1 -2
- package/src/generated/model/getOAuthSettingsDefault.ts +18 -0
- package/src/generated/model/getPolicyParams.ts +7 -7
- package/src/generated/model/getPolicyRevisionParams.ts +7 -7
- package/src/generated/model/getProjectClaimStatusParams.ts +5 -5
- package/src/generated/model/getProjectClaimWindowParams.ts +5 -5
- package/src/generated/model/getReleaseParams.ts +7 -7
- package/src/generated/model/getSchemaParams.ts +11 -11
- package/src/generated/model/getUserParams.ts +21 -21
- package/src/generated/model/getVariableParams.ts +12 -12
- package/src/generated/model/index.ts +18 -7
- package/src/generated/model/listBrandingParams.ts +20 -20
- package/src/generated/model/listDeploymentVariablesParams.ts +7 -7
- package/src/generated/model/listDeploymentsParams.ts +42 -44
- package/src/generated/model/listEvents200EventsItem.ts +192 -10
- package/src/generated/model/listEventsParams.ts +83 -105
- package/src/generated/model/listFlowDefinitionsParams.ts +44 -48
- package/src/generated/model/listIdpRevisionsParams.ts +20 -20
- package/src/generated/model/listInvitations200InvitationsItem.ts +84 -12
- package/src/generated/model/listInvitationsExpandItem.ts +25 -0
- package/src/generated/model/listInvitationsParams.ts +31 -31
- package/src/generated/model/listInvitationsStatusItem.ts +22 -0
- package/src/generated/model/listMyIdentityLinksParams.ts +29 -29
- package/src/generated/model/listMyPasskeysParams.ts +29 -29
- package/src/generated/model/listMyProjectsParams.ts +52 -52
- package/src/generated/model/listMyTeamsParams.ts +29 -29
- package/src/generated/model/listPoliciesParams.ts +22 -24
- package/src/generated/model/listPolicyRevisionsParams.ts +20 -20
- package/src/generated/model/listProjectAdminsParams.ts +13 -13
- package/src/generated/model/listProjectMembers200.ts +20 -0
- package/src/generated/model/listProjectMembers200MembersItem.ts +38 -0
- package/src/generated/model/listProjectMembers200MembersItemRelation.ts +20 -0
- package/src/generated/model/listProjectMembers200MembersItemSourcesItem.ts +55 -0
- package/src/generated/model/listProjectMembers200MembersItemUser.ts +40 -0
- package/src/generated/model/{acceptInvitation429.ts → listProjectMembers400.ts} +3 -3
- package/src/generated/model/{lookupInvitation429Details.ts → listProjectMembers400Details.ts} +1 -1
- package/src/generated/model/{lookupInvitation429.ts → listProjectMembers401.ts} +3 -3
- package/src/generated/model/{acceptInvitation429Details.ts → listProjectMembers401Details.ts} +1 -1
- package/src/generated/model/{rejectInvitation429.ts → listProjectMembers403.ts} +3 -3
- package/src/generated/model/{rejectInvitation429Details.ts → listProjectMembers403Details.ts} +1 -1
- package/src/generated/model/listProjectMembers404.ts +20 -0
- package/src/generated/model/listProjectMembers404Details.ts +12 -0
- package/src/generated/model/listProjectMembersDefault.ts +81 -0
- package/src/generated/model/listProjectMembersParams.ts +29 -0
- package/src/generated/model/listProjectMembersRelation.ts +16 -0
- package/src/generated/model/listProjectPreviewsParams.ts +13 -13
- package/src/generated/model/listReleasesParams.ts +60 -60
- package/src/generated/model/listSchemasParams.ts +54 -56
- package/src/generated/model/listUserIdentityLinksParams.ts +13 -13
- package/src/generated/model/listUserPasskeysParams.ts +13 -13
- package/src/generated/model/listUserTeamsParams.ts +13 -13
- package/src/generated/model/listVariablesParams.ts +12 -12
- package/src/generated/model/lookupInvitation200.ts +58 -0
- package/src/generated/model/publishApplicationParams.ts +7 -7
- package/src/generated/model/publishBrandingParams.ts +7 -7
- package/src/generated/model/publishIdpParams.ts +7 -7
- package/src/generated/model/publishPolicyParams.ts +7 -7
- package/src/generated/model/publishSchemaParams.ts +12 -12
- package/src/generated/model/queryGrantsParams.ts +7 -7
- package/src/generated/model/queryIdpsParams.ts +7 -7
- package/src/generated/model/querySessionsParams.ts +7 -7
- package/src/generated/model/queryTeamsParams.ts +6 -6
- package/src/generated/model/queryUsersParams.ts +6 -6
- package/src/generated/model/rejectInvitation200.ts +84 -12
- package/src/generated/model/rejectInvitationDefault.ts +18 -0
- package/src/generated/model/revokeMySessionParams.ts +16 -16
- package/src/generated/model/revokeReleaseParams.ts +7 -7
- package/src/generated/model/rollbackDeploymentParams.ts +7 -7
- package/src/generated/model/searchParams.ts +7 -7
- package/src/generated/model/setVariablesParams.ts +12 -12
- package/src/generated/model/updateMyUserParams.ts +16 -16
- package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItemPayload.ts +1 -1
- package/src/generated/operations.ts +46 -4
- package/src/generated/paging.ts +5 -0
- package/dist/api-factory-BPmRCU7u.mjs.map +0 -1
- package/dist/api-factory-DCzYxpdV.d.mts.map +0 -1
- package/dist/index-BwYxe7Dw.d.mts.map +0 -1
- package/dist/zitadelNextGen-DsPFGqLs.mjs.map +0 -1
- package/dist/zitadelNextGen-SGK-fW1x.d.mts.map +0 -1
- package/src/generated/model/listInvitationsStatus.ts +0 -17
|
@@ -852,7 +852,7 @@ export const getMyUserSchemaResponseSchemaOnePropertiesXAuditDefault = false;
|
|
|
852
852
|
|
|
853
853
|
export const GetMyUserSchemaResponse = zod.object({
|
|
854
854
|
"id": zod.string().describe('The schema\'s ID: the server-generated `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n'),
|
|
855
|
-
"schema": zod.
|
|
855
|
+
"schema": zod.looseObject({
|
|
856
856
|
"objectType": zod.string().max(getMyUserSchemaResponseSchemaOneObjectTypeMax).describe('The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
857
857
|
"kind": zod.literal("user-schema").describe('Must be `user-schema`. It selects this schema type in a create request.'),
|
|
858
858
|
"metaSchema": zod.url().max(getMyUserSchemaResponseSchemaOneMetaSchemaMax).describe('The URI of the user meta-schema version this schema uses.'),
|
|
@@ -876,7 +876,7 @@ export const GetMyUserSchemaResponse = zod.object({
|
|
|
876
876
|
}).describe('The authentication methods users of this schema can use, one entry per method. At least one is required.'),
|
|
877
877
|
"x-identifier": zod.string().min(1).optional().describe('Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` "project".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n'),
|
|
878
878
|
"x-display": zod.array(zod.string().min(1)).min(1).optional().describe('Ordered leaf property paths whose values, joined with a space, render\nthe user\'s display name.\n'),
|
|
879
|
-
"properties": zod.record(zod.string(), zod.
|
|
879
|
+
"properties": zod.record(zod.string(), zod.looseObject({
|
|
880
880
|
"x-unique": zod.union([zod.enum(['unspecified', 'project', 'team']),zod.null()]).optional().describe('The scope in which this property\'s value must be unique, if applicable. `unspecified` enforces no uniqueness.'),
|
|
881
881
|
"x-claim": zod.union([zod.string(),zod.null()]).optional().describe('The name of the claim this property supplies in a token, if applicable. A claim is a named piece of user data in a token.'),
|
|
882
882
|
"x-audit": zod.boolean().default(getMyUserSchemaResponseSchemaOnePropertiesXAuditDefault).describe('Whether this property\'s value may appear in audit event payloads. Audit\npayloads are deny-by-default: a property without this annotation\ncontributes its key but never its value.\n'),
|
|
@@ -1257,11 +1257,15 @@ export const CreateFlowResponse = zod.object({
|
|
|
1257
1257
|
}).optional().describe('Semantic colors for one theme side, such as the primary and background\ncolors. An omitted key uses Zitadel\'s default for this side, never the other\nside\'s value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n')
|
|
1258
1258
|
}).optional().describe('One complete theme side. Light and dark are independent surfaces: neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints Zitadel\'s defaults.\n')
|
|
1259
1259
|
}).optional().describe('The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`. When one side is\npublished it cannot select the other. Publishing neither side leaves\n`mode`, the `theme` property and the operating system to pick one, painted\nwith Zitadel\'s defaults.\n'),
|
|
1260
|
-
"typography":
|
|
1260
|
+
"typography": (() => {
|
|
1261
|
+
const property = "font_url";
|
|
1262
|
+
const dependent = "font_family";
|
|
1263
|
+
return zod.object({
|
|
1261
1264
|
"font_family": zod.string().max(createFlowResponseBrandingTypographyFontFamilyMax).regex(createFlowResponseBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe('CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`"APK Futural"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n'),
|
|
1262
1265
|
"font_url": zod.string().max(createFlowResponseBrandingTypographyFontUrlMax).regex(createFlowResponseBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe('Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant="page"`, the\nfull-page login. In the default `variant="widget"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n'),
|
|
1263
1266
|
"scale": zod.number().min(createFlowResponseBrandingTypographyScaleMin).max(createFlowResponseBrandingTypographyScaleMax).optional().describe('Multiplier on the base text sizes, `1` when omitted.')
|
|
1264
|
-
}).
|
|
1267
|
+
}).refine(((value) => !(property in value) || dependent in value), { "error": "font_family is required when font_url is present", "path": ["font_family"] });
|
|
1268
|
+
})().optional().describe('The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n'),
|
|
1265
1269
|
"shape": zod.object({
|
|
1266
1270
|
"radius": zod.union([zod.enum(['none', 'sm', 'md', 'lg', 'full']).describe('A named corner rounding: `none` (0), `sm` (4), `md` (8), `lg` (12), and\n`full` (pill). Send `full` for a pill rather than a large pixel value.\n'),zod.int().min(createFlowResponseBrandingShapeRadiusTwoMin).max(createFlowResponseBrandingShapeRadiusTwoMax)]).optional().describe('Corner rounding for the card, inputs, buttons and alerts: either a\npreset name or an integer number of pixels. One value scales the whole\ncorner ramp in proportion, so the card stays rounder than the controls\ninside it.\n'),
|
|
1267
1271
|
"density": zod.enum(['compact', 'regular', 'comfortable']).optional().describe('Spacing and control height.'),
|
|
@@ -1553,11 +1557,15 @@ export const GetFlowStepResponse = zod.object({
|
|
|
1553
1557
|
}).optional().describe('Semantic colors for one theme side, such as the primary and background\ncolors. An omitted key uses Zitadel\'s default for this side, never the other\nside\'s value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n')
|
|
1554
1558
|
}).optional().describe('One complete theme side. Light and dark are independent surfaces: neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints Zitadel\'s defaults.\n')
|
|
1555
1559
|
}).optional().describe('The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`. When one side is\npublished it cannot select the other. Publishing neither side leaves\n`mode`, the `theme` property and the operating system to pick one, painted\nwith Zitadel\'s defaults.\n'),
|
|
1556
|
-
"typography":
|
|
1560
|
+
"typography": (() => {
|
|
1561
|
+
const property = "font_url";
|
|
1562
|
+
const dependent = "font_family";
|
|
1563
|
+
return zod.object({
|
|
1557
1564
|
"font_family": zod.string().max(getFlowStepResponseBrandingTypographyFontFamilyMax).regex(getFlowStepResponseBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe('CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`"APK Futural"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n'),
|
|
1558
1565
|
"font_url": zod.string().max(getFlowStepResponseBrandingTypographyFontUrlMax).regex(getFlowStepResponseBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe('Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant="page"`, the\nfull-page login. In the default `variant="widget"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n'),
|
|
1559
1566
|
"scale": zod.number().min(getFlowStepResponseBrandingTypographyScaleMin).max(getFlowStepResponseBrandingTypographyScaleMax).optional().describe('Multiplier on the base text sizes, `1` when omitted.')
|
|
1560
|
-
}).
|
|
1567
|
+
}).refine(((value) => !(property in value) || dependent in value), { "error": "font_family is required when font_url is present", "path": ["font_family"] });
|
|
1568
|
+
})().optional().describe('The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n'),
|
|
1561
1569
|
"shape": zod.object({
|
|
1562
1570
|
"radius": zod.union([zod.enum(['none', 'sm', 'md', 'lg', 'full']).describe('A named corner rounding: `none` (0), `sm` (4), `md` (8), `lg` (12), and\n`full` (pill). Send `full` for a pill rather than a large pixel value.\n'),zod.int().min(getFlowStepResponseBrandingShapeRadiusTwoMin).max(getFlowStepResponseBrandingShapeRadiusTwoMax)]).optional().describe('Corner rounding for the card, inputs, buttons and alerts: either a\npreset name or an integer number of pixels. One value scales the whole\ncorner ramp in proportion, so the card stays rounder than the controls\ninside it.\n'),
|
|
1563
1571
|
"density": zod.enum(['compact', 'regular', 'comfortable']).optional().describe('Spacing and control height.'),
|
|
@@ -1918,11 +1926,15 @@ export const SubmitFlowStepResponse = zod.object({
|
|
|
1918
1926
|
}).optional().describe('Semantic colors for one theme side, such as the primary and background\ncolors. An omitted key uses Zitadel\'s default for this side, never the other\nside\'s value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n')
|
|
1919
1927
|
}).optional().describe('One complete theme side. Light and dark are independent surfaces: neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints Zitadel\'s defaults.\n')
|
|
1920
1928
|
}).optional().describe('The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`. When one side is\npublished it cannot select the other. Publishing neither side leaves\n`mode`, the `theme` property and the operating system to pick one, painted\nwith Zitadel\'s defaults.\n'),
|
|
1921
|
-
"typography":
|
|
1929
|
+
"typography": (() => {
|
|
1930
|
+
const property = "font_url";
|
|
1931
|
+
const dependent = "font_family";
|
|
1932
|
+
return zod.object({
|
|
1922
1933
|
"font_family": zod.string().max(submitFlowStepResponseBrandingTypographyFontFamilyMax).regex(submitFlowStepResponseBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe('CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`"APK Futural"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n'),
|
|
1923
1934
|
"font_url": zod.string().max(submitFlowStepResponseBrandingTypographyFontUrlMax).regex(submitFlowStepResponseBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe('Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant="page"`, the\nfull-page login. In the default `variant="widget"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n'),
|
|
1924
1935
|
"scale": zod.number().min(submitFlowStepResponseBrandingTypographyScaleMin).max(submitFlowStepResponseBrandingTypographyScaleMax).optional().describe('Multiplier on the base text sizes, `1` when omitted.')
|
|
1925
|
-
}).
|
|
1936
|
+
}).refine(((value) => !(property in value) || dependent in value), { "error": "font_family is required when font_url is present", "path": ["font_family"] });
|
|
1937
|
+
})().optional().describe('The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n'),
|
|
1926
1938
|
"shape": zod.object({
|
|
1927
1939
|
"radius": zod.union([zod.enum(['none', 'sm', 'md', 'lg', 'full']).describe('A named corner rounding: `none` (0), `sm` (4), `md` (8), `lg` (12), and\n`full` (pill). Send `full` for a pill rather than a large pixel value.\n'),zod.int().min(submitFlowStepResponseBrandingShapeRadiusTwoMin).max(submitFlowStepResponseBrandingShapeRadiusTwoMax)]).optional().describe('Corner rounding for the card, inputs, buttons and alerts: either a\npreset name or an integer number of pixels. One value scales the whole\ncorner ramp in proportion, so the card stays rounder than the controls\ninside it.\n'),
|
|
1928
1940
|
"density": zod.enum(['compact', 'regular', 'comfortable']).optional().describe('Spacing and control height.'),
|
|
@@ -2516,12 +2528,12 @@ export const UpdateProjectResponse = zod.object({
|
|
|
2516
2528
|
* whose team or user was deactivated, is not listed through it. Grants that
|
|
2517
2529
|
* expired or carry a lower role are left out. A person whose only access is a
|
|
2518
2530
|
* `viewer` or `editor` grant is not an admin and is not listed. Like the
|
|
2519
|
-
* check,
|
|
2520
|
-
* direct grant
|
|
2531
|
+
* check, a direct user grant requires an active user, so a suspended
|
|
2532
|
+
* person's direct grant is not listed.
|
|
2521
2533
|
*
|
|
2522
|
-
*
|
|
2523
|
-
*
|
|
2524
|
-
*
|
|
2534
|
+
* Every caller who passes the project read check sees every listed admin
|
|
2535
|
+
* and every team name on `sources`. Co-membership no longer filters the
|
|
2536
|
+
* roster.
|
|
2525
2537
|
*
|
|
2526
2538
|
* The list is ordered by `user_id` and paginated with `page_token`.
|
|
2527
2539
|
* Authenticate with a project secret (`oauth2`), or with the session cookie
|
|
@@ -2576,6 +2588,94 @@ export const ListProjectAdminsResponse = zod.object({
|
|
|
2576
2588
|
}).describe('A page of the people who administer a project.')
|
|
2577
2589
|
|
|
2578
2590
|
|
|
2591
|
+
/**
|
|
2592
|
+
* Lists the people who have a role on a project, with each person's strongest
|
|
2593
|
+
* role and how they hold it.
|
|
2594
|
+
*
|
|
2595
|
+
* A person appears once, with their strongest `relation` (`viewer`, `editor`
|
|
2596
|
+
* or `admin`; a stronger role includes the weaker ones) and one entry in
|
|
2597
|
+
* `sources` per way they hold that role:
|
|
2598
|
+
*
|
|
2599
|
+
* - `owning_team`: an active member of the team that owns the project, the
|
|
2600
|
+
* team a claim attaches the project to. It holds `admin`. Removing a grant
|
|
2601
|
+
* does not remove this access. It ends only when the person leaves the
|
|
2602
|
+
* team or the project changes owner.
|
|
2603
|
+
* - `grant`: an unexpired grant on the project, which is a role given to the
|
|
2604
|
+
* person (`grant_id` only) or to a team they are an active member of
|
|
2605
|
+
* (`grant_id` and `team`). Revoking that grant removes this source.
|
|
2606
|
+
*
|
|
2607
|
+
* Grants of a weaker role than the person's strongest are not in `sources`;
|
|
2608
|
+
* they still show in the project's grants (`queryGrants`,
|
|
2609
|
+
* `POST /grants/query`).
|
|
2610
|
+
*
|
|
2611
|
+
* Pass `relation` to list only the people whose strongest role is at least
|
|
2612
|
+
* that strong: `relation=admin` lists the people who can administer the
|
|
2613
|
+
* project.
|
|
2614
|
+
*
|
|
2615
|
+
* The list follows the authorization check. A person who left a team, or
|
|
2616
|
+
* whose team or user was deactivated, is not listed through it. Expired
|
|
2617
|
+
* grants are left out. Like the check, a direct user grant requires an
|
|
2618
|
+
* active user, so a suspended person's direct grant is not listed.
|
|
2619
|
+
*
|
|
2620
|
+
* Every caller who passes the project read check sees every listed person
|
|
2621
|
+
* and every team name on `sources`. Co-membership no longer filters the
|
|
2622
|
+
* roster.
|
|
2623
|
+
*
|
|
2624
|
+
* The list is ordered by `user_id` and paginated with `page_token`.
|
|
2625
|
+
* Authenticate with a project secret (`oauth2`), or with the session cookie
|
|
2626
|
+
* (`sessionCookie`) of a signed-in person who can read the project.
|
|
2627
|
+
* @summary List the members of a project
|
|
2628
|
+
*/
|
|
2629
|
+
export const listProjectMembersPathProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
2630
|
+
|
|
2631
|
+
|
|
2632
|
+
export const ListProjectMembersParams = zod.object({
|
|
2633
|
+
"project_id": zod.string().regex(listProjectMembersPathProjectIdRegExp, "must be one or more letters, digits, _ or -")
|
|
2634
|
+
})
|
|
2635
|
+
|
|
2636
|
+
export const listProjectMembersQueryLimitDefault = 20;
|
|
2637
|
+
export const listProjectMembersQueryLimitMax = 100;
|
|
2638
|
+
|
|
2639
|
+
|
|
2640
|
+
|
|
2641
|
+
export const ListProjectMembersQueryParams = zod.strictObject({
|
|
2642
|
+
"limit": zod.int().min(1).max(listProjectMembersQueryLimitMax).default(listProjectMembersQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
2643
|
+
"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'),
|
|
2644
|
+
"relation": zod.enum(['viewer', 'editor', 'admin']).optional().describe('Only the people whose strongest role is at least this strong. Absent\nlists everyone with a role.\n')
|
|
2645
|
+
})
|
|
2646
|
+
|
|
2647
|
+
export const listProjectMembersResponseMembersItemUserUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
2648
|
+
|
|
2649
|
+
|
|
2650
|
+
|
|
2651
|
+
export const ListProjectMembersResponse = zod.object({
|
|
2652
|
+
"members": zod.array(zod.object({
|
|
2653
|
+
"user": zod.object({
|
|
2654
|
+
"user_id": zod.string().regex(listProjectMembersResponseMembersItemUserUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
2655
|
+
"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'),
|
|
2656
|
+
"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'),
|
|
2657
|
+
"display": zod.string().optional().describe('The `x-display` rendering: the designated properties\' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n')
|
|
2658
|
+
}).describe('A resolved reference to a user. Fields are named for their role, not for a\nschema property, 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`.\nA missing or deleted user degrades to `user_id` only.\n'),
|
|
2659
|
+
"relation": zod.enum(['viewer', 'editor', 'admin']).describe('The person\'s strongest role on the project. A stronger role includes\nthe weaker ones.\n'),
|
|
2660
|
+
"sources": zod.array(zod.union([zod.object({
|
|
2661
|
+
"type": zod.enum(['owning_team']),
|
|
2662
|
+
"team": zod.object({
|
|
2663
|
+
"team_id": zod.string().describe('The referenced team\'s ID (`team_<opaque>`). Always present.'),
|
|
2664
|
+
"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')
|
|
2665
|
+
}).describe('A resolved reference to a team. It carries the team\'s ID and name, so a grant\nlist is readable without embedding the full team. Reading it needs only\n`project.read`, because it holds just the ID and the name. A missing or\ndeleted team degrades to `team_id` only.\n')
|
|
2666
|
+
}).describe('Admin access as an active member of the team that owns the project.'),zod.object({
|
|
2667
|
+
"type": zod.enum(['grant']),
|
|
2668
|
+
"grant_id": zod.string().describe('The grant (`asgn_<opaque>`), as served by `GET /grants/{id}`.'),
|
|
2669
|
+
"team": zod.object({
|
|
2670
|
+
"team_id": zod.string().describe('The referenced team\'s ID (`team_<opaque>`). Always present.'),
|
|
2671
|
+
"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')
|
|
2672
|
+
}).optional().describe('A resolved reference to a team. It carries the team\'s ID and name, so a grant\nlist is readable without embedding the full team. Reading it needs only\n`project.read`, because it holds just the ID and the name. A missing or\ndeleted team degrades to `team_id` only.\n')
|
|
2673
|
+
}).describe('A role through a grant on the project, to the person or to a team they are\nan active member of.\n')]).describe('One way a person holds their role on the project. Discriminate on `type`.\n\n- `owning_team`: the person is an active member of the owning team named by\n `team`, which holds `admin`. There is no `grant_id`: this access is not a\n grant, so the grants API cannot revoke it.\n- `grant`: a grant on the project, named by `grant_id`. `team` is present\n when the grant is to a team the person is an active member of. It is\n absent when the grant is to the person directly.\n')).min(1).describe('How the person holds `relation`: owning-team access first, then grants\nto teams, then grants to the person. Grants of a weaker role are left\nout; they still show in the project\'s grants.\n')
|
|
2674
|
+
}).describe('One person with a role on the project: their strongest role, and every way\nthey hold it.\n')),
|
|
2675
|
+
"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')
|
|
2676
|
+
}).describe('A page of the people who have a role on a project.')
|
|
2677
|
+
|
|
2678
|
+
|
|
2579
2679
|
/**
|
|
2580
2680
|
* Starts a claim, which attaches a project created before sign-in to a
|
|
2581
2681
|
* team, and returns the `claim_url` to open in a browser.
|
|
@@ -2906,7 +3006,7 @@ export const createSessionBodyProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
|
2906
3006
|
|
|
2907
3007
|
export const CreateSessionBody = zod.object({
|
|
2908
3008
|
"project_id": zod.string().regex(createSessionBodyProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
2909
|
-
"user_agent": zod.
|
|
3009
|
+
"user_agent": zod.looseObject({
|
|
2910
3010
|
"fingerprint": zod.string().optional().describe('Client-supplied device fingerprint.'),
|
|
2911
3011
|
"ip": zod.string().optional().describe('IP address of the client.')
|
|
2912
3012
|
}).optional().describe('Optional user agent / device context to attach to the session.\nUseful for correlating telemetry and device signals with the eventual\nauthenticated session from the start.\n')
|
|
@@ -2950,7 +3050,7 @@ export const CreateSessionResponse = zod.object({
|
|
|
2950
3050
|
}).describe('An authentication factor that was verified, with its verification metadata.\nMethod-specific details are included in the `payload` field.\n')).describe('Verified authentication factors accumulated by this session.\nEach key is a factor type, for example `password`, `totp` or `passkey`.\nEach value is a factor event object with at least `verified_at` and\nmethod-specific properties, for example `user_verified` and `hardware` for passkeys.\n'),
|
|
2951
3051
|
"assurance_levels": zod.array(zod.string()).optional().describe('All assurance levels whose schemas the current session factors satisfy.\nThis list shrinks as factor freshness windows expire and grows when step-up\nauthentication attempts add or refresh factors.\nThe request context, not the session, decides whether any level is enough.\n'),
|
|
2952
3052
|
"metadata": zod.union([zod.record(zod.string(), zod.unknown()),zod.null()]).optional().describe('Arbitrary key/value metadata attached to the session.'),
|
|
2953
|
-
"user_agent": zod.union([zod.
|
|
3053
|
+
"user_agent": zod.union([zod.looseObject({
|
|
2954
3054
|
"fingerprint": zod.string().optional().describe('Client-supplied device fingerprint.'),
|
|
2955
3055
|
"ip": zod.string().optional().describe('IP address of the client at session creation.')
|
|
2956
3056
|
}),zod.null()]).optional().describe('User agent information captured at session creation.'),
|
|
@@ -3032,7 +3132,7 @@ export const QuerySessionsResponse = zod.object({
|
|
|
3032
3132
|
}).describe('An authentication factor that was verified, with its verification metadata.\nMethod-specific details are included in the `payload` field.\n')).describe('Verified authentication factors accumulated by this session.\nEach key is a factor type, for example `password`, `totp` or `passkey`.\nEach value is a factor event object with at least `verified_at` and\nmethod-specific properties, for example `user_verified` and `hardware` for passkeys.\n'),
|
|
3033
3133
|
"assurance_levels": zod.array(zod.string()).optional().describe('All assurance levels whose schemas the current session factors satisfy.\nThis list shrinks as factor freshness windows expire and grows when step-up\nauthentication attempts add or refresh factors.\nThe request context, not the session, decides whether any level is enough.\n'),
|
|
3034
3134
|
"metadata": zod.union([zod.record(zod.string(), zod.unknown()),zod.null()]).optional().describe('Arbitrary key/value metadata attached to the session.'),
|
|
3035
|
-
"user_agent": zod.union([zod.
|
|
3135
|
+
"user_agent": zod.union([zod.looseObject({
|
|
3036
3136
|
"fingerprint": zod.string().optional().describe('Client-supplied device fingerprint.'),
|
|
3037
3137
|
"ip": zod.string().optional().describe('IP address of the client at session creation.')
|
|
3038
3138
|
}),zod.null()]).optional().describe('User agent information captured at session creation.'),
|
|
@@ -3131,7 +3231,7 @@ export const ExchangeHandoffResponse = zod.object({
|
|
|
3131
3231
|
}).describe('An authentication factor that was verified, with its verification metadata.\nMethod-specific details are included in the `payload` field.\n')).describe('Verified authentication factors accumulated by this session.\nEach key is a factor type, for example `password`, `totp` or `passkey`.\nEach value is a factor event object with at least `verified_at` and\nmethod-specific properties, for example `user_verified` and `hardware` for passkeys.\n'),
|
|
3132
3232
|
"assurance_levels": zod.array(zod.string()).optional().describe('All assurance levels whose schemas the current session factors satisfy.\nThis list shrinks as factor freshness windows expire and grows when step-up\nauthentication attempts add or refresh factors.\nThe request context, not the session, decides whether any level is enough.\n'),
|
|
3133
3233
|
"metadata": zod.union([zod.record(zod.string(), zod.unknown()),zod.null()]).optional().describe('Arbitrary key/value metadata attached to the session.'),
|
|
3134
|
-
"user_agent": zod.union([zod.
|
|
3234
|
+
"user_agent": zod.union([zod.looseObject({
|
|
3135
3235
|
"fingerprint": zod.string().optional().describe('Client-supplied device fingerprint.'),
|
|
3136
3236
|
"ip": zod.string().optional().describe('IP address of the client at session creation.')
|
|
3137
3237
|
}),zod.null()]).optional().describe('User agent information captured at session creation.'),
|
|
@@ -3196,7 +3296,7 @@ export const GetSessionResponse = zod.object({
|
|
|
3196
3296
|
}).describe('An authentication factor that was verified, with its verification metadata.\nMethod-specific details are included in the `payload` field.\n')).describe('Verified authentication factors accumulated by this session.\nEach key is a factor type, for example `password`, `totp` or `passkey`.\nEach value is a factor event object with at least `verified_at` and\nmethod-specific properties, for example `user_verified` and `hardware` for passkeys.\n'),
|
|
3197
3297
|
"assurance_levels": zod.array(zod.string()).optional().describe('All assurance levels whose schemas the current session factors satisfy.\nThis list shrinks as factor freshness windows expire and grows when step-up\nauthentication attempts add or refresh factors.\nThe request context, not the session, decides whether any level is enough.\n'),
|
|
3198
3298
|
"metadata": zod.union([zod.record(zod.string(), zod.unknown()),zod.null()]).optional().describe('Arbitrary key/value metadata attached to the session.'),
|
|
3199
|
-
"user_agent": zod.union([zod.
|
|
3299
|
+
"user_agent": zod.union([zod.looseObject({
|
|
3200
3300
|
"fingerprint": zod.string().optional().describe('Client-supplied device fingerprint.'),
|
|
3201
3301
|
"ip": zod.string().optional().describe('IP address of the client at session creation.')
|
|
3202
3302
|
}),zod.null()]).optional().describe('User agent information captured at session creation.'),
|
|
@@ -3284,7 +3384,7 @@ export const GetMySessionResponse = zod.object({
|
|
|
3284
3384
|
}).describe('An authentication factor that was verified, with its verification metadata.\nMethod-specific details are included in the `payload` field.\n')).describe('Verified authentication factors accumulated by this session.\nEach key is a factor type, for example `password`, `totp` or `passkey`.\nEach value is a factor event object with at least `verified_at` and\nmethod-specific properties, for example `user_verified` and `hardware` for passkeys.\n'),
|
|
3285
3385
|
"assurance_levels": zod.array(zod.string()).optional().describe('All assurance levels whose schemas the current session factors satisfy.\nThis list shrinks as factor freshness windows expire and grows when step-up\nauthentication attempts add or refresh factors.\nThe request context, not the session, decides whether any level is enough.\n'),
|
|
3286
3386
|
"metadata": zod.union([zod.record(zod.string(), zod.unknown()),zod.null()]).optional().describe('Arbitrary key/value metadata attached to the session.'),
|
|
3287
|
-
"user_agent": zod.union([zod.
|
|
3387
|
+
"user_agent": zod.union([zod.looseObject({
|
|
3288
3388
|
"fingerprint": zod.string().optional().describe('Client-supplied device fingerprint.'),
|
|
3289
3389
|
"ip": zod.string().optional().describe('IP address of the client at session creation.')
|
|
3290
3390
|
}),zod.null()]).optional().describe('User agent information captured at session creation.'),
|
|
@@ -3382,7 +3482,7 @@ export const publishSchemaBodyOneXAuthMethodsSsoProvidersItemRegExp = new RegExp
|
|
|
3382
3482
|
|
|
3383
3483
|
export const publishSchemaBodyOnePropertiesXAuditDefault = false;
|
|
3384
3484
|
|
|
3385
|
-
export const PublishSchemaBody = zod.union([zod.
|
|
3485
|
+
export const PublishSchemaBody = zod.union([zod.looseObject({
|
|
3386
3486
|
"objectType": zod.string().max(publishSchemaBodyOneObjectTypeMax).describe('The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
3387
3487
|
"kind": zod.literal("user-schema").describe('Must be `user-schema`. It selects this schema type in a create request.'),
|
|
3388
3488
|
"metaSchema": zod.url().max(publishSchemaBodyOneMetaSchemaMax).describe('The URI of the user meta-schema version this schema uses.'),
|
|
@@ -3406,7 +3506,7 @@ export const PublishSchemaBody = zod.union([zod.object({
|
|
|
3406
3506
|
}).describe('The authentication methods users of this schema can use, one entry per method. At least one is required.'),
|
|
3407
3507
|
"x-identifier": zod.string().min(1).optional().describe('Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` "project".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n'),
|
|
3408
3508
|
"x-display": zod.array(zod.string().min(1)).min(1).optional().describe('Ordered leaf property paths whose values, joined with a space, render\nthe user\'s display name.\n'),
|
|
3409
|
-
"properties": zod.record(zod.string(), zod.
|
|
3509
|
+
"properties": zod.record(zod.string(), zod.looseObject({
|
|
3410
3510
|
"x-unique": zod.union([zod.enum(['unspecified', 'project', 'team']),zod.null()]).optional().describe('The scope in which this property\'s value must be unique, if applicable. `unspecified` enforces no uniqueness.'),
|
|
3411
3511
|
"x-claim": zod.union([zod.string(),zod.null()]).optional().describe('The name of the claim this property supplies in a token, if applicable. A claim is a named piece of user data in a token.'),
|
|
3412
3512
|
"x-audit": zod.boolean().default(publishSchemaBodyOnePropertiesXAuditDefault).describe('Whether this property\'s value may appear in audit event payloads. Audit\npayloads are deny-by-default: a property without this annotation\ncontributes its key but never its value.\n'),
|
|
@@ -3433,7 +3533,7 @@ export const publishSchemaResponseSchemaOnePropertiesXAuditDefault = false;
|
|
|
3433
3533
|
|
|
3434
3534
|
export const PublishSchemaResponse = zod.object({
|
|
3435
3535
|
"id": zod.string().describe('The schema\'s ID: the server-generated `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n'),
|
|
3436
|
-
"schema": zod.
|
|
3536
|
+
"schema": zod.looseObject({
|
|
3437
3537
|
"objectType": zod.string().max(publishSchemaResponseSchemaOneObjectTypeMax).describe('The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
3438
3538
|
"kind": zod.literal("user-schema").describe('Must be `user-schema`. It selects this schema type in a create request.'),
|
|
3439
3539
|
"metaSchema": zod.url().max(publishSchemaResponseSchemaOneMetaSchemaMax).describe('The URI of the user meta-schema version this schema uses.'),
|
|
@@ -3457,7 +3557,7 @@ export const PublishSchemaResponse = zod.object({
|
|
|
3457
3557
|
}).describe('The authentication methods users of this schema can use, one entry per method. At least one is required.'),
|
|
3458
3558
|
"x-identifier": zod.string().min(1).optional().describe('Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` "project".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n'),
|
|
3459
3559
|
"x-display": zod.array(zod.string().min(1)).min(1).optional().describe('Ordered leaf property paths whose values, joined with a space, render\nthe user\'s display name.\n'),
|
|
3460
|
-
"properties": zod.record(zod.string(), zod.
|
|
3560
|
+
"properties": zod.record(zod.string(), zod.looseObject({
|
|
3461
3561
|
"x-unique": zod.union([zod.enum(['unspecified', 'project', 'team']),zod.null()]).optional().describe('The scope in which this property\'s value must be unique, if applicable. `unspecified` enforces no uniqueness.'),
|
|
3462
3562
|
"x-claim": zod.union([zod.string(),zod.null()]).optional().describe('The name of the claim this property supplies in a token, if applicable. A claim is a named piece of user data in a token.'),
|
|
3463
3563
|
"x-audit": zod.boolean().default(publishSchemaResponseSchemaOnePropertiesXAuditDefault).describe('Whether this property\'s value may appear in audit event payloads. Audit\npayloads are deny-by-default: a property without this annotation\ncontributes its key but never its value.\n'),
|
|
@@ -3514,7 +3614,7 @@ export const listSchemasResponseSchemasItemSchemaOnePropertiesXAuditDefault = fa
|
|
|
3514
3614
|
export const ListSchemasResponse = zod.object({
|
|
3515
3615
|
"schemas": zod.array(zod.object({
|
|
3516
3616
|
"id": zod.string().describe('The schema\'s ID: the server-generated `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n'),
|
|
3517
|
-
"schema": zod.
|
|
3617
|
+
"schema": zod.looseObject({
|
|
3518
3618
|
"objectType": zod.string().max(listSchemasResponseSchemasItemSchemaOneObjectTypeMax).describe('The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
3519
3619
|
"kind": zod.literal("user-schema").describe('Must be `user-schema`. It selects this schema type in a create request.'),
|
|
3520
3620
|
"metaSchema": zod.url().max(listSchemasResponseSchemasItemSchemaOneMetaSchemaMax).describe('The URI of the user meta-schema version this schema uses.'),
|
|
@@ -3538,7 +3638,7 @@ export const ListSchemasResponse = zod.object({
|
|
|
3538
3638
|
}).describe('The authentication methods users of this schema can use, one entry per method. At least one is required.'),
|
|
3539
3639
|
"x-identifier": zod.string().min(1).optional().describe('Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` "project".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n'),
|
|
3540
3640
|
"x-display": zod.array(zod.string().min(1)).min(1).optional().describe('Ordered leaf property paths whose values, joined with a space, render\nthe user\'s display name.\n'),
|
|
3541
|
-
"properties": zod.record(zod.string(), zod.
|
|
3641
|
+
"properties": zod.record(zod.string(), zod.looseObject({
|
|
3542
3642
|
"x-unique": zod.union([zod.enum(['unspecified', 'project', 'team']),zod.null()]).optional().describe('The scope in which this property\'s value must be unique, if applicable. `unspecified` enforces no uniqueness.'),
|
|
3543
3643
|
"x-claim": zod.union([zod.string(),zod.null()]).optional().describe('The name of the claim this property supplies in a token, if applicable. A claim is a named piece of user data in a token.'),
|
|
3544
3644
|
"x-audit": zod.boolean().default(listSchemasResponseSchemasItemSchemaOnePropertiesXAuditDefault).describe('Whether this property\'s value may appear in audit event payloads. Audit\npayloads are deny-by-default: a property without this annotation\ncontributes its key but never its value.\n'),
|
|
@@ -3596,7 +3696,7 @@ export const getSchemaResponseSchemaOnePropertiesXAuditDefault = false;
|
|
|
3596
3696
|
|
|
3597
3697
|
export const GetSchemaResponse = zod.object({
|
|
3598
3698
|
"id": zod.string().describe('The schema\'s ID: the server-generated `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n'),
|
|
3599
|
-
"schema": zod.
|
|
3699
|
+
"schema": zod.looseObject({
|
|
3600
3700
|
"objectType": zod.string().max(getSchemaResponseSchemaOneObjectTypeMax).describe('The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
3601
3701
|
"kind": zod.literal("user-schema").describe('Must be `user-schema`. It selects this schema type in a create request.'),
|
|
3602
3702
|
"metaSchema": zod.url().max(getSchemaResponseSchemaOneMetaSchemaMax).describe('The URI of the user meta-schema version this schema uses.'),
|
|
@@ -3620,7 +3720,7 @@ export const GetSchemaResponse = zod.object({
|
|
|
3620
3720
|
}).describe('The authentication methods users of this schema can use, one entry per method. At least one is required.'),
|
|
3621
3721
|
"x-identifier": zod.string().min(1).optional().describe('Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` "project".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n'),
|
|
3622
3722
|
"x-display": zod.array(zod.string().min(1)).min(1).optional().describe('Ordered leaf property paths whose values, joined with a space, render\nthe user\'s display name.\n'),
|
|
3623
|
-
"properties": zod.record(zod.string(), zod.
|
|
3723
|
+
"properties": zod.record(zod.string(), zod.looseObject({
|
|
3624
3724
|
"x-unique": zod.union([zod.enum(['unspecified', 'project', 'team']),zod.null()]).optional().describe('The scope in which this property\'s value must be unique, if applicable. `unspecified` enforces no uniqueness.'),
|
|
3625
3725
|
"x-claim": zod.union([zod.string(),zod.null()]).optional().describe('The name of the claim this property supplies in a token, if applicable. A claim is a named piece of user data in a token.'),
|
|
3626
3726
|
"x-audit": zod.boolean().default(getSchemaResponseSchemaOnePropertiesXAuditDefault).describe('Whether this property\'s value may appear in audit event payloads. Audit\npayloads are deny-by-default: a property without this annotation\ncontributes its key but never its value.\n'),
|
|
@@ -3773,7 +3873,7 @@ export const PublishFlowDefinitionResponse = zod.object({
|
|
|
3773
3873
|
}).describe('A flow definition is the configuration of one flow: the sequence of screens\nthe login component (`<zitadel-login>`) walks a user through to sign in,\nregister, recover access or similar. Each screen is a step. A step collects\nfields (inputs taken from properties of the user schema), offers actions\n(what the user can do, such as submit the form or follow a link) and may\nrequire gates (security checks, such as a captcha, that must pass before the\nserver accepts the submission). Transitions say which step follows each\naction.\n\nThe definition is server-side configuration and is never sent to the\nfrontend. The server evaluates it and returns the current step, with its\nfields, actions and gates, to the client.\n\nAdministrators create flow definitions, either as `.zitadel/flows/` files\nthat `zitadel deploy` publishes or through the API, and they are stored in\nthe project/team configuration hierarchy. The server selects the matching\ndefinition from the purpose and audience when a flow starts with\n`createFlow` (`POST /flows`).\n'),
|
|
3774
3874
|
"user_schema": zod.union([zod.object({
|
|
3775
3875
|
"id": zod.string().describe('The schema\'s ID: the server-generated `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n'),
|
|
3776
|
-
"schema": zod.
|
|
3876
|
+
"schema": zod.looseObject({
|
|
3777
3877
|
"objectType": zod.string().max(publishFlowDefinitionResponseUserSchemaOneSchemaOneObjectTypeMax).describe('The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
3778
3878
|
"kind": zod.literal("user-schema").describe('Must be `user-schema`. It selects this schema type in a create request.'),
|
|
3779
3879
|
"metaSchema": zod.url().max(publishFlowDefinitionResponseUserSchemaOneSchemaOneMetaSchemaMax).describe('The URI of the user meta-schema version this schema uses.'),
|
|
@@ -3797,7 +3897,7 @@ export const PublishFlowDefinitionResponse = zod.object({
|
|
|
3797
3897
|
}).describe('The authentication methods users of this schema can use, one entry per method. At least one is required.'),
|
|
3798
3898
|
"x-identifier": zod.string().min(1).optional().describe('Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` "project".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n'),
|
|
3799
3899
|
"x-display": zod.array(zod.string().min(1)).min(1).optional().describe('Ordered leaf property paths whose values, joined with a space, render\nthe user\'s display name.\n'),
|
|
3800
|
-
"properties": zod.record(zod.string(), zod.
|
|
3900
|
+
"properties": zod.record(zod.string(), zod.looseObject({
|
|
3801
3901
|
"x-unique": zod.union([zod.enum(['unspecified', 'project', 'team']),zod.null()]).optional().describe('The scope in which this property\'s value must be unique, if applicable. `unspecified` enforces no uniqueness.'),
|
|
3802
3902
|
"x-claim": zod.union([zod.string(),zod.null()]).optional().describe('The name of the claim this property supplies in a token, if applicable. A claim is a named piece of user data in a token.'),
|
|
3803
3903
|
"x-audit": zod.boolean().default(publishFlowDefinitionResponseUserSchemaOneSchemaOnePropertiesXAuditDefault).describe('Whether this property\'s value may appear in audit event payloads. Audit\npayloads are deny-by-default: a property without this annotation\ncontributes its key but never its value.\n'),
|
|
@@ -3907,7 +4007,7 @@ export const ListFlowDefinitionsResponse = zod.object({
|
|
|
3907
4007
|
}).describe('A flow definition is the configuration of one flow: the sequence of screens\nthe login component (`<zitadel-login>`) walks a user through to sign in,\nregister, recover access or similar. Each screen is a step. A step collects\nfields (inputs taken from properties of the user schema), offers actions\n(what the user can do, such as submit the form or follow a link) and may\nrequire gates (security checks, such as a captcha, that must pass before the\nserver accepts the submission). Transitions say which step follows each\naction.\n\nThe definition is server-side configuration and is never sent to the\nfrontend. The server evaluates it and returns the current step, with its\nfields, actions and gates, to the client.\n\nAdministrators create flow definitions, either as `.zitadel/flows/` files\nthat `zitadel deploy` publishes or through the API, and they are stored in\nthe project/team configuration hierarchy. The server selects the matching\ndefinition from the purpose and audience when a flow starts with\n`createFlow` (`POST /flows`).\n'),
|
|
3908
4008
|
"user_schema": zod.union([zod.object({
|
|
3909
4009
|
"id": zod.string().describe('The schema\'s ID: the server-generated `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n'),
|
|
3910
|
-
"schema": zod.
|
|
4010
|
+
"schema": zod.looseObject({
|
|
3911
4011
|
"objectType": zod.string().max(listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneObjectTypeMax).describe('The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
3912
4012
|
"kind": zod.literal("user-schema").describe('Must be `user-schema`. It selects this schema type in a create request.'),
|
|
3913
4013
|
"metaSchema": zod.url().max(listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOneMetaSchemaMax).describe('The URI of the user meta-schema version this schema uses.'),
|
|
@@ -3931,7 +4031,7 @@ export const ListFlowDefinitionsResponse = zod.object({
|
|
|
3931
4031
|
}).describe('The authentication methods users of this schema can use, one entry per method. At least one is required.'),
|
|
3932
4032
|
"x-identifier": zod.string().min(1).optional().describe('Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` "project".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n'),
|
|
3933
4033
|
"x-display": zod.array(zod.string().min(1)).min(1).optional().describe('Ordered leaf property paths whose values, joined with a space, render\nthe user\'s display name.\n'),
|
|
3934
|
-
"properties": zod.record(zod.string(), zod.
|
|
4034
|
+
"properties": zod.record(zod.string(), zod.looseObject({
|
|
3935
4035
|
"x-unique": zod.union([zod.enum(['unspecified', 'project', 'team']),zod.null()]).optional().describe('The scope in which this property\'s value must be unique, if applicable. `unspecified` enforces no uniqueness.'),
|
|
3936
4036
|
"x-claim": zod.union([zod.string(),zod.null()]).optional().describe('The name of the claim this property supplies in a token, if applicable. A claim is a named piece of user data in a token.'),
|
|
3937
4037
|
"x-audit": zod.boolean().default(listFlowDefinitionsResponseFlowDefinitionsItemUserSchemaOneSchemaOnePropertiesXAuditDefault).describe('Whether this property\'s value may appear in audit event payloads. Audit\npayloads are deny-by-default: a property without this annotation\ncontributes its key but never its value.\n'),
|
|
@@ -4025,7 +4125,7 @@ export const GetFlowDefinitionResponse = zod.object({
|
|
|
4025
4125
|
}).describe('A flow definition is the configuration of one flow: the sequence of screens\nthe login component (`<zitadel-login>`) walks a user through to sign in,\nregister, recover access or similar. Each screen is a step. A step collects\nfields (inputs taken from properties of the user schema), offers actions\n(what the user can do, such as submit the form or follow a link) and may\nrequire gates (security checks, such as a captcha, that must pass before the\nserver accepts the submission). Transitions say which step follows each\naction.\n\nThe definition is server-side configuration and is never sent to the\nfrontend. The server evaluates it and returns the current step, with its\nfields, actions and gates, to the client.\n\nAdministrators create flow definitions, either as `.zitadel/flows/` files\nthat `zitadel deploy` publishes or through the API, and they are stored in\nthe project/team configuration hierarchy. The server selects the matching\ndefinition from the purpose and audience when a flow starts with\n`createFlow` (`POST /flows`).\n'),
|
|
4026
4126
|
"user_schema": zod.union([zod.object({
|
|
4027
4127
|
"id": zod.string().describe('The schema\'s ID: the server-generated `sch_*` identifier, or the\ncustomer-supplied `$id` URI when the document declared one at creation.\n'),
|
|
4028
|
-
"schema": zod.
|
|
4128
|
+
"schema": zod.looseObject({
|
|
4029
4129
|
"objectType": zod.string().max(getFlowDefinitionResponseUserSchemaOneSchemaOneObjectTypeMax).describe('The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
4030
4130
|
"kind": zod.literal("user-schema").describe('Must be `user-schema`. It selects this schema type in a create request.'),
|
|
4031
4131
|
"metaSchema": zod.url().max(getFlowDefinitionResponseUserSchemaOneSchemaOneMetaSchemaMax).describe('The URI of the user meta-schema version this schema uses.'),
|
|
@@ -4049,7 +4149,7 @@ export const GetFlowDefinitionResponse = zod.object({
|
|
|
4049
4149
|
}).describe('The authentication methods users of this schema can use, one entry per method. At least one is required.'),
|
|
4050
4150
|
"x-identifier": zod.string().min(1).optional().describe('Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` "project".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n'),
|
|
4051
4151
|
"x-display": zod.array(zod.string().min(1)).min(1).optional().describe('Ordered leaf property paths whose values, joined with a space, render\nthe user\'s display name.\n'),
|
|
4052
|
-
"properties": zod.record(zod.string(), zod.
|
|
4152
|
+
"properties": zod.record(zod.string(), zod.looseObject({
|
|
4053
4153
|
"x-unique": zod.union([zod.enum(['unspecified', 'project', 'team']),zod.null()]).optional().describe('The scope in which this property\'s value must be unique, if applicable. `unspecified` enforces no uniqueness.'),
|
|
4054
4154
|
"x-claim": zod.union([zod.string(),zod.null()]).optional().describe('The name of the claim this property supplies in a token, if applicable. A claim is a named piece of user data in a token.'),
|
|
4055
4155
|
"x-audit": zod.boolean().default(getFlowDefinitionResponseUserSchemaOneSchemaOnePropertiesXAuditDefault).describe('Whether this property\'s value may appear in audit event payloads. Audit\npayloads are deny-by-default: a property without this annotation\ncontributes its key but never its value.\n'),
|
|
@@ -4507,11 +4607,15 @@ export const PublishBrandingBody = zod.object({
|
|
|
4507
4607
|
}).optional().describe('Semantic colors for one theme side, such as the primary and background\ncolors. An omitted key uses Zitadel\'s default for this side, never the other\nside\'s value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n')
|
|
4508
4608
|
}).optional().describe('One complete theme side. Light and dark are independent surfaces: neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints Zitadel\'s defaults.\n')
|
|
4509
4609
|
}).optional().describe('The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`. When one side is\npublished it cannot select the other. Publishing neither side leaves\n`mode`, the `theme` property and the operating system to pick one, painted\nwith Zitadel\'s defaults.\n'),
|
|
4510
|
-
"typography":
|
|
4610
|
+
"typography": (() => {
|
|
4611
|
+
const property = "font_url";
|
|
4612
|
+
const dependent = "font_family";
|
|
4613
|
+
return zod.object({
|
|
4511
4614
|
"font_family": zod.string().max(publishBrandingBodyTypographyFontFamilyMax).regex(publishBrandingBodyTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe('CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`"APK Futural"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n'),
|
|
4512
4615
|
"font_url": zod.string().max(publishBrandingBodyTypographyFontUrlMax).regex(publishBrandingBodyTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe('Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant="page"`, the\nfull-page login. In the default `variant="widget"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n'),
|
|
4513
4616
|
"scale": zod.number().min(publishBrandingBodyTypographyScaleMin).max(publishBrandingBodyTypographyScaleMax).optional().describe('Multiplier on the base text sizes, `1` when omitted.')
|
|
4514
|
-
}).
|
|
4617
|
+
}).refine(((value) => !(property in value) || dependent in value), { "error": "font_family is required when font_url is present", "path": ["font_family"] });
|
|
4618
|
+
})().optional().describe('The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n'),
|
|
4515
4619
|
"shape": zod.object({
|
|
4516
4620
|
"radius": zod.union([zod.enum(['none', 'sm', 'md', 'lg', 'full']).describe('A named corner rounding: `none` (0), `sm` (4), `md` (8), `lg` (12), and\n`full` (pill). Send `full` for a pill rather than a large pixel value.\n'),zod.int().min(publishBrandingBodyShapeRadiusTwoMin).max(publishBrandingBodyShapeRadiusTwoMax)]).optional().describe('Corner rounding for the card, inputs, buttons and alerts: either a\npreset name or an integer number of pixels. One value scales the whole\ncorner ramp in proportion, so the card stays rounder than the controls\ninside it.\n'),
|
|
4517
4621
|
"density": zod.enum(['compact', 'regular', 'comfortable']).optional().describe('Spacing and control height.'),
|
|
@@ -4698,11 +4802,15 @@ export const PublishBrandingResponse = zod.object({
|
|
|
4698
4802
|
}).optional().describe('Semantic colors for one theme side, such as the primary and background\ncolors. An omitted key uses Zitadel\'s default for this side, never the other\nside\'s value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n')
|
|
4699
4803
|
}).optional().describe('One complete theme side. Light and dark are independent surfaces: neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints Zitadel\'s defaults.\n')
|
|
4700
4804
|
}).optional().describe('The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`. When one side is\npublished it cannot select the other. Publishing neither side leaves\n`mode`, the `theme` property and the operating system to pick one, painted\nwith Zitadel\'s defaults.\n'),
|
|
4701
|
-
"typography":
|
|
4805
|
+
"typography": (() => {
|
|
4806
|
+
const property = "font_url";
|
|
4807
|
+
const dependent = "font_family";
|
|
4808
|
+
return zod.object({
|
|
4702
4809
|
"font_family": zod.string().max(publishBrandingResponseBrandingTypographyFontFamilyMax).regex(publishBrandingResponseBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe('CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`"APK Futural"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n'),
|
|
4703
4810
|
"font_url": zod.string().max(publishBrandingResponseBrandingTypographyFontUrlMax).regex(publishBrandingResponseBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe('Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant="page"`, the\nfull-page login. In the default `variant="widget"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n'),
|
|
4704
4811
|
"scale": zod.number().min(publishBrandingResponseBrandingTypographyScaleMin).max(publishBrandingResponseBrandingTypographyScaleMax).optional().describe('Multiplier on the base text sizes, `1` when omitted.')
|
|
4705
|
-
}).
|
|
4812
|
+
}).refine(((value) => !(property in value) || dependent in value), { "error": "font_family is required when font_url is present", "path": ["font_family"] });
|
|
4813
|
+
})().optional().describe('The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n'),
|
|
4706
4814
|
"shape": zod.object({
|
|
4707
4815
|
"radius": zod.union([zod.enum(['none', 'sm', 'md', 'lg', 'full']).describe('A named corner rounding: `none` (0), `sm` (4), `md` (8), `lg` (12), and\n`full` (pill). Send `full` for a pill rather than a large pixel value.\n'),zod.int().min(publishBrandingResponseBrandingShapeRadiusTwoMin).max(publishBrandingResponseBrandingShapeRadiusTwoMax)]).optional().describe('Corner rounding for the card, inputs, buttons and alerts: either a\npreset name or an integer number of pixels. One value scales the whole\ncorner ramp in proportion, so the card stays rounder than the controls\ninside it.\n'),
|
|
4708
4816
|
"density": zod.enum(['compact', 'regular', 'comfortable']).optional().describe('Spacing and control height.'),
|
|
@@ -4932,11 +5040,15 @@ export const GetBrandingResponse = zod.object({
|
|
|
4932
5040
|
}).optional().describe('Semantic colors for one theme side, such as the primary and background\ncolors. An omitted key uses Zitadel\'s default for this side, never the other\nside\'s value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n')
|
|
4933
5041
|
}).optional().describe('One complete theme side. Light and dark are independent surfaces: neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints Zitadel\'s defaults.\n')
|
|
4934
5042
|
}).optional().describe('The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`. When one side is\npublished it cannot select the other. Publishing neither side leaves\n`mode`, the `theme` property and the operating system to pick one, painted\nwith Zitadel\'s defaults.\n'),
|
|
4935
|
-
"typography":
|
|
5043
|
+
"typography": (() => {
|
|
5044
|
+
const property = "font_url";
|
|
5045
|
+
const dependent = "font_family";
|
|
5046
|
+
return zod.object({
|
|
4936
5047
|
"font_family": zod.string().max(getBrandingResponseBrandingTypographyFontFamilyMax).regex(getBrandingResponseBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe('CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`"APK Futural"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n'),
|
|
4937
5048
|
"font_url": zod.string().max(getBrandingResponseBrandingTypographyFontUrlMax).regex(getBrandingResponseBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe('Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant="page"`, the\nfull-page login. In the default `variant="widget"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n'),
|
|
4938
5049
|
"scale": zod.number().min(getBrandingResponseBrandingTypographyScaleMin).max(getBrandingResponseBrandingTypographyScaleMax).optional().describe('Multiplier on the base text sizes, `1` when omitted.')
|
|
4939
|
-
}).
|
|
5050
|
+
}).refine(((value) => !(property in value) || dependent in value), { "error": "font_family is required when font_url is present", "path": ["font_family"] });
|
|
5051
|
+
})().optional().describe('The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n'),
|
|
4940
5052
|
"shape": zod.object({
|
|
4941
5053
|
"radius": zod.union([zod.enum(['none', 'sm', 'md', 'lg', 'full']).describe('A named corner rounding: `none` (0), `sm` (4), `md` (8), `lg` (12), and\n`full` (pill). Send `full` for a pill rather than a large pixel value.\n'),zod.int().min(getBrandingResponseBrandingShapeRadiusTwoMin).max(getBrandingResponseBrandingShapeRadiusTwoMax)]).optional().describe('Corner rounding for the card, inputs, buttons and alerts: either a\npreset name or an integer number of pixels. One value scales the whole\ncorner ramp in proportion, so the card stays rounder than the controls\ninside it.\n'),
|
|
4942
5054
|
"density": zod.enum(['compact', 'regular', 'comfortable']).optional().describe('Spacing and control height.'),
|
|
@@ -4966,7 +5078,7 @@ export const GetOAuthSettingsResponse = zod.object({
|
|
|
4966
5078
|
"created_at": zod.iso.datetime({"offset":true}).describe('When this revision was published.'),
|
|
4967
5079
|
"oauth": zod.object({
|
|
4968
5080
|
"enabled": zod.boolean().describe('Whether the project\'s OAuth authorization server answers. While it is\n`false`, or the deployed release pins no OAuth settings, the server\npublishes no authorization server metadata for the project and refuses\nevery OAuth request to it.\n')
|
|
4969
|
-
}).describe('The OAuth settings of a project: whether the project\'s OAuth authorization\nserver answers. It has one shape in two places: the `oauth` resource of the\nbundle `buildRelease` (`POST /releases/build`) takes, which publishes it as\na new immutable revision, and the read-only revision\n`getOAuthSettings` (`GET /oauth_settings/{oauth_settings_id}`)\nreturns
|
|
5081
|
+
}).describe('The OAuth settings of a project: whether the project\'s OAuth authorization\nserver answers. It has one shape in two places: the `oauth` resource of the\nbundle `buildRelease` (`POST /releases/build`) takes, which publishes it as\na new immutable revision, and the read-only revision\n`getOAuthSettings` (`GET /oauth_settings/{oauth_settings_id}`)\nreturns.\n\nA release is the only writer: there is no operation that publishes OAuth\nsettings on their own. A release without `oauth` leaves the authorization\nserver off.\n')
|
|
4970
5082
|
}).describe('A stored OAuth settings revision. `oauth` echoes the canonical stored\nsettings, so a client such as the CLI can reconcile local files with the\nserver\'s stored state.\n')
|
|
4971
5083
|
|
|
4972
5084
|
|
|
@@ -6522,7 +6634,7 @@ export const buildReleaseBodyGitDirtyDefault = false;
|
|
|
6522
6634
|
|
|
6523
6635
|
export const BuildReleaseBody = zod.object({
|
|
6524
6636
|
"bundle": zod.object({
|
|
6525
|
-
"schemas": zod.array(zod.union([zod.
|
|
6637
|
+
"schemas": zod.array(zod.union([zod.looseObject({
|
|
6526
6638
|
"objectType": zod.string().max(buildReleaseBodyBundleSchemasItemOneObjectTypeMax).describe('The type of user this schema describes. This is a customer-chosen name.\nEvery revision of a schema shares its `objectType`, and flow\ndefinitions name the schema they operate on by it.\n'),
|
|
6527
6639
|
"kind": zod.literal("user-schema").describe('Must be `user-schema`. It selects this schema type in a create request.'),
|
|
6528
6640
|
"metaSchema": zod.url().max(buildReleaseBodyBundleSchemasItemOneMetaSchemaMax).describe('The URI of the user meta-schema version this schema uses.'),
|
|
@@ -6546,7 +6658,7 @@ export const BuildReleaseBody = zod.object({
|
|
|
6546
6658
|
}).describe('The authentication methods users of this schema can use, one entry per method. At least one is required.'),
|
|
6547
6659
|
"x-identifier": zod.string().min(1).optional().describe('Path of the leaf property whose value identifies a user. Nested leaves\nare addressed by their dot-joined attribute path. The property must carry\n`x-unique` "project".\n\nRequired when an authentication method that needs identifier-first\ndispatch (password) is enabled. Passkey is exempt: discoverable\ncredentials identify the user through the assertion itself, so\npasskey-only and API-managed schemas may designate nothing. Flows using\nidentifier-first passkey are validated at the flow level instead.\n'),
|
|
6548
6660
|
"x-display": zod.array(zod.string().min(1)).min(1).optional().describe('Ordered leaf property paths whose values, joined with a space, render\nthe user\'s display name.\n'),
|
|
6549
|
-
"properties": zod.record(zod.string(), zod.
|
|
6661
|
+
"properties": zod.record(zod.string(), zod.looseObject({
|
|
6550
6662
|
"x-unique": zod.union([zod.enum(['unspecified', 'project', 'team']),zod.null()]).optional().describe('The scope in which this property\'s value must be unique, if applicable. `unspecified` enforces no uniqueness.'),
|
|
6551
6663
|
"x-claim": zod.union([zod.string(),zod.null()]).optional().describe('The name of the claim this property supplies in a token, if applicable. A claim is a named piece of user data in a token.'),
|
|
6552
6664
|
"x-audit": zod.boolean().default(buildReleaseBodyBundleSchemasItemOnePropertiesXAuditDefault).describe('Whether this property\'s value may appear in audit event payloads. Audit\npayloads are deny-by-default: a property without this annotation\ncontributes its key but never its value.\n'),
|
|
@@ -6669,11 +6781,15 @@ export const BuildReleaseBody = zod.object({
|
|
|
6669
6781
|
}).optional().describe('Semantic colors for one theme side, such as the primary and background\ncolors. An omitted key uses Zitadel\'s default for this side, never the other\nside\'s value.\n\nEvery value is a `BrandingColor`, which is where the accepted forms and the\nreason for them live; what each key paints is below.\n')
|
|
6670
6782
|
}).optional().describe('One complete theme side. Light and dark are independent surfaces: neither\ninherits from the other. When a revision publishes one side, the absent\nside is never used, whatever `mode` or the operating system asks for. When\nit publishes neither, either side can resolve and paints Zitadel\'s defaults.\n')
|
|
6671
6783
|
}).optional().describe('The theme sides this project publishes, and which of them may run.\n\nPublishing one side makes it the only theme that resolves, even under `auto`\nor an operating-system preference for the other. Publishing both lets `auto`\nfollow the operating system, each side using its own logo and palette.\n\nThe element-level `theme` property overrides `mode`. When one side is\npublished it cannot select the other. Publishing neither side leaves\n`mode`, the `theme` property and the operating system to pick one, painted\nwith Zitadel\'s defaults.\n'),
|
|
6672
|
-
"typography":
|
|
6784
|
+
"typography": (() => {
|
|
6785
|
+
const property = "font_url";
|
|
6786
|
+
const dependent = "font_family";
|
|
6787
|
+
return zod.object({
|
|
6673
6788
|
"font_family": zod.string().max(buildReleaseBodyBundleBrandingTypographyFontFamilyMax).regex(buildReleaseBodyBundleBrandingTypographyFontFamilyRegExp, "must be comma-separated font names, each an identifier (Inter, ui-sans-serif) or a quoted name (\"APK Futural\")").optional().describe('CSS font stack for body and heading text. Include a generic family so\nthe surface still renders when the named face is unavailable.\n\nComma-separated family names, each either an identifier (`Inter`,\n`ui-sans-serif`, `Helvetica Neue`) or a quoted name (`"APK Futural"`).\nAnything else is rejected. The stack is written into a stylesheet, so\nonly names are stored, and a quoted name must close the quote it opened.\n'),
|
|
6674
6789
|
"font_url": zod.string().max(buildReleaseBodyBundleBrandingTypographyFontUrlMax).regex(buildReleaseBodyBundleBrandingTypographyFontUrlRegExp, "must be a valid absolute https URL without credentials").optional().describe('Stylesheet that loads `font_family`, for example a Google Fonts CSS URL.\nMust be https; unlike the logo and hero assets there is no\nloopback carve-out. Rejected without `font_family`, which would name\nnothing to paint with.\n\nLoaded only when the login component runs as `variant="page"`, the\nfull-page login. In the default `variant="widget"` it is stored but not\nloaded: the component injects no stylesheet, and the embedding page\nloads the face.\n'),
|
|
6675
6790
|
"scale": zod.number().min(buildReleaseBodyBundleBrandingTypographyScaleMin).max(buildReleaseBodyBundleBrandingTypographyScaleMax).optional().describe('Multiplier on the base text sizes, `1` when omitted.')
|
|
6676
|
-
}).
|
|
6791
|
+
}).refine(((value) => !(property in value) || dependent in value), { "error": "font_family is required when font_url is present", "path": ["font_family"] });
|
|
6792
|
+
})().optional().describe('The typeface the login surface renders in. One face covers both body and\nheadings; separate heading and mono faces are not modeled yet.\n'),
|
|
6677
6793
|
"shape": zod.object({
|
|
6678
6794
|
"radius": zod.union([zod.enum(['none', 'sm', 'md', 'lg', 'full']).describe('A named corner rounding: `none` (0), `sm` (4), `md` (8), `lg` (12), and\n`full` (pill). Send `full` for a pill rather than a large pixel value.\n'),zod.int().min(buildReleaseBodyBundleBrandingShapeRadiusTwoMin).max(buildReleaseBodyBundleBrandingShapeRadiusTwoMax)]).optional().describe('Corner rounding for the card, inputs, buttons and alerts: either a\npreset name or an integer number of pixels. One value scales the whole\ncorner ramp in proportion, so the card stays rounder than the controls\ninside it.\n'),
|
|
6679
6795
|
"density": zod.enum(['compact', 'regular', 'comfortable']).optional().describe('Spacing and control height.'),
|
|
@@ -6682,7 +6798,7 @@ export const BuildReleaseBody = zod.object({
|
|
|
6682
6798
|
}).optional().describe('The branding of the login: logo, theme colors, typography, shape and\ntemplate. It has one shape in two places: the request body of\n`publishBranding` (`POST /branding`), which publishes it as a new immutable\nrevision, and a read-only copy on flow responses, which carries the\nrevision the request\'s release pins. Locally it is the `.zitadel/branding/` descriptor\nthat `zitadel deploy` publishes.\n\nEvery field is optional. An omitted key uses Zitadel\'s default, so a\nrevision carrying one color is as valid as one carrying the whole object.\n'),
|
|
6683
6799
|
"oauth": zod.object({
|
|
6684
6800
|
"enabled": zod.boolean().describe('Whether the project\'s OAuth authorization server answers. While it is\n`false`, or the deployed release pins no OAuth settings, the server\npublishes no authorization server metadata for the project and refuses\nevery OAuth request to it.\n')
|
|
6685
|
-
}).optional().describe('The OAuth settings of a project: whether the project\'s OAuth authorization\nserver answers. It has one shape in two places: the `oauth` resource of the\nbundle `buildRelease` (`POST /releases/build`) takes, which publishes it as\na new immutable revision, and the read-only revision\n`getOAuthSettings` (`GET /oauth_settings/{oauth_settings_id}`)\nreturns
|
|
6801
|
+
}).optional().describe('The OAuth settings of a project: whether the project\'s OAuth authorization\nserver answers. It has one shape in two places: the `oauth` resource of the\nbundle `buildRelease` (`POST /releases/build`) takes, which publishes it as\na new immutable revision, and the read-only revision\n`getOAuthSettings` (`GET /oauth_settings/{oauth_settings_id}`)\nreturns.\n\nA release is the only writer: there is no operation that publishes OAuth\nsettings on their own. A release without `oauth` leaves the authorization\nserver off.\n')
|
|
6686
6802
|
}).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`. A flow step\'s\n`sso_providers`, like a schema\'s `x-auth-methods.sso.providers`, name\nidentity provider (IdP) connections by `slug`. A reference resolves to the\nresource with that handle in this bundle. Failing that, it resolves 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 same\nrelease on any project.\n\nA handle names one resource of its kind in a bundle. The server refuses the\nrelease with `rel.invalid`, with an entry for each such resource, when the\nbundle holds:\n- two schemas with the same `objectType`;\n- two flow definitions with the same `name`;\n- two IdP connections with the same `slug`;\n- two policies for the same `operation`;\n- a schema without an `objectType`.\n\nEach kind is optional, and the arrays may be empty: a project that never\nejected its branding omits `branding`, and one that never turned on its\nOAuth authorization server omits `oauth`. `branding` and `oauth` are\nsingle objects, because a project has one of each. The bundle carries at\nleast one resource. The release it builds pins at most 50 resources, which\ncounts the resources the bundle carries plus those resolved from the\nproject. The server refuses anything outside that with `rel.invalid`.\nUnknown keys are refused.\n'),
|
|
6687
6803
|
"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'),
|
|
6688
6804
|
"git_sha": zod.string().max(buildReleaseBodyGitShaMax).optional().describe('The source commit the caller was operating from.'),
|
|
@@ -7214,7 +7330,7 @@ export const createInvitationBodyTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-
|
|
|
7214
7330
|
export const CreateInvitationBody = zod.union([zod.object({
|
|
7215
7331
|
"metadata": zod.object({
|
|
7216
7332
|
"name": zod.string().min(1).max(createInvitationBodyOneOneMetadataNameMax).describe('A display name for who the invitation is intended for.')
|
|
7217
|
-
}).optional().describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted
|
|
7333
|
+
}).optional().describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n'),
|
|
7218
7334
|
"replaces_invitation_id": zod.string().regex(createInvitationBodyOneOneReplacesInvitationIdRegExp, "must be one or more letters, digits, _ or -").optional().describe('The invitation ID (`inv_<opaque>`): the `id` that `createInvitation`\n(`POST /invitations`) returns or `listInvitations` (`GET /invitations`) lists.\n')
|
|
7219
7335
|
}).describe('Shared optional fields on every create-invitation request.').and(zod.object({
|
|
7220
7336
|
"type": zod.enum(['project_member']),
|
|
@@ -7224,7 +7340,7 @@ export const CreateInvitationBody = zod.union([zod.object({
|
|
|
7224
7340
|
})).describe('Creates a project-member invitation, or replaces an existing one.'),zod.object({
|
|
7225
7341
|
"metadata": zod.object({
|
|
7226
7342
|
"name": zod.string().min(1).max(createInvitationBodyTwoOneMetadataNameMax).describe('A display name for who the invitation is intended for.')
|
|
7227
|
-
}).optional().describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted
|
|
7343
|
+
}).optional().describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n'),
|
|
7228
7344
|
"replaces_invitation_id": zod.string().regex(createInvitationBodyTwoOneReplacesInvitationIdRegExp, "must be one or more letters, digits, _ or -").optional().describe('The invitation ID (`inv_<opaque>`): the `id` that `createInvitation`\n(`POST /invitations`) returns or `listInvitations` (`GET /invitations`) lists.\n')
|
|
7229
7345
|
}).describe('Shared optional fields on every create-invitation request.').and(zod.object({
|
|
7230
7346
|
"type": zod.enum(['team_member']),
|
|
@@ -7239,11 +7355,13 @@ export const createInvitationResponseOneOneOneProjectIdRegExp = new RegExp('^[a-
|
|
|
7239
7355
|
export const createInvitationResponseOneOneOneMetadataOneNameMax = 200;
|
|
7240
7356
|
|
|
7241
7357
|
|
|
7358
|
+
export const createInvitationResponseOneOneOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
7242
7359
|
export const createInvitationResponseTwoOneOneIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7243
7360
|
export const createInvitationResponseTwoOneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7244
7361
|
export const createInvitationResponseTwoOneOneMetadataOneNameMax = 200;
|
|
7245
7362
|
|
|
7246
7363
|
|
|
7364
|
+
export const createInvitationResponseTwoOneOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
7247
7365
|
export const createInvitationResponseTwoOneTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7248
7366
|
|
|
7249
7367
|
|
|
@@ -7252,15 +7370,21 @@ export const CreateInvitationResponse = zod.union([zod.object({
|
|
|
7252
7370
|
"project_id": zod.string().regex(createInvitationResponseOneOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
7253
7371
|
"metadata": zod.union([zod.object({
|
|
7254
7372
|
"name": zod.string().min(1).max(createInvitationResponseOneOneOneMetadataOneNameMax).describe('A display name for who the invitation is intended for.')
|
|
7255
|
-
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted
|
|
7373
|
+
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n'),zod.null()]).optional().describe('Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n'),
|
|
7256
7374
|
"status": zod.enum(['pending', 'accepted', 'rejected', 'expired']).describe('Lifecycle status of the invitation. `expired` is derived on read from\n`expires_at`; `accepted` and `rejected` are final. Cancel and replace delete\nthe row rather than leaving a cancelled status.\n'),
|
|
7257
7375
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who created the invitation. Null when a project secret created\nit (`created_by_type` is then `service`).\n'),
|
|
7258
7376
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
|
|
7259
7377
|
"created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
|
|
7260
7378
|
"expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
|
|
7261
7379
|
"journey_id": zod.string().min(1).describe('Correlates this invitation with its replacements. A replacement keeps the\noriginal\'s `journey_id`. It is a random correlation id, not a resource id.\n'),
|
|
7262
|
-
"
|
|
7263
|
-
"
|
|
7380
|
+
"responded_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n'),
|
|
7381
|
+
"responded_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted or declined. Null while it is pending or\nexpired.\n'),
|
|
7382
|
+
"inviter": zod.union([zod.object({
|
|
7383
|
+
"user_id": zod.string().regex(createInvitationResponseOneOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
7384
|
+
"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'),
|
|
7385
|
+
"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'),
|
|
7386
|
+
"display": zod.string().optional().describe('The `x-display` rendering: the designated properties\' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n')
|
|
7387
|
+
}).describe('A resolved reference to a user. Fields are named for their role, not for a\nschema property, 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`.\nA missing or deleted user degrades to `user_id` only.\n'),zod.null()]).optional().describe('The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n')
|
|
7264
7388
|
}).describe('Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n').and(zod.object({
|
|
7265
7389
|
"type": zod.enum(['project_member']),
|
|
7266
7390
|
"project_member": zod.object({
|
|
@@ -7273,15 +7397,21 @@ export const CreateInvitationResponse = zod.union([zod.object({
|
|
|
7273
7397
|
"project_id": zod.string().regex(createInvitationResponseTwoOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
7274
7398
|
"metadata": zod.union([zod.object({
|
|
7275
7399
|
"name": zod.string().min(1).max(createInvitationResponseTwoOneOneMetadataOneNameMax).describe('A display name for who the invitation is intended for.')
|
|
7276
|
-
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted
|
|
7400
|
+
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n'),zod.null()]).optional().describe('Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n'),
|
|
7277
7401
|
"status": zod.enum(['pending', 'accepted', 'rejected', 'expired']).describe('Lifecycle status of the invitation. `expired` is derived on read from\n`expires_at`; `accepted` and `rejected` are final. Cancel and replace delete\nthe row rather than leaving a cancelled status.\n'),
|
|
7278
7402
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who created the invitation. Null when a project secret created\nit (`created_by_type` is then `service`).\n'),
|
|
7279
7403
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
|
|
7280
7404
|
"created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
|
|
7281
7405
|
"expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
|
|
7282
7406
|
"journey_id": zod.string().min(1).describe('Correlates this invitation with its replacements. A replacement keeps the\noriginal\'s `journey_id`. It is a random correlation id, not a resource id.\n'),
|
|
7283
|
-
"
|
|
7284
|
-
"
|
|
7407
|
+
"responded_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n'),
|
|
7408
|
+
"responded_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted or declined. Null while it is pending or\nexpired.\n'),
|
|
7409
|
+
"inviter": zod.union([zod.object({
|
|
7410
|
+
"user_id": zod.string().regex(createInvitationResponseTwoOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
7411
|
+
"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'),
|
|
7412
|
+
"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'),
|
|
7413
|
+
"display": zod.string().optional().describe('The `x-display` rendering: the designated properties\' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n')
|
|
7414
|
+
}).describe('A resolved reference to a user. Fields are named for their role, not for a\nschema property, 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`.\nA missing or deleted user degrades to `user_id` only.\n'),zod.null()]).optional().describe('The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n')
|
|
7285
7415
|
}).describe('Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n').and(zod.object({
|
|
7286
7416
|
"type": zod.enum(['team_member']),
|
|
7287
7417
|
"team_member": zod.object({
|
|
@@ -7297,8 +7427,11 @@ export const CreateInvitationResponse = zod.union([zod.object({
|
|
|
7297
7427
|
* Lists a project's invitations, newest first, in any status, paginated with
|
|
7298
7428
|
* `limit` and `page_token`.
|
|
7299
7429
|
*
|
|
7300
|
-
* Optional `status` and `type` filters narrow the page. `
|
|
7301
|
-
*
|
|
7430
|
+
* Optional `status` and `type` filters narrow the page. Repeat `status` to
|
|
7431
|
+
* match any of several statuses, for example
|
|
7432
|
+
* `status=pending&status=expired&status=rejected`. `expired` is derived on
|
|
7433
|
+
* read from `expires_at`. `expand=inviter` adds `inviter` to each
|
|
7434
|
+
* invitation. Authenticate with a project secret (`oauth2`) or
|
|
7302
7435
|
* a console session cookie (`sessionCookie`). Listing needs the same project
|
|
7303
7436
|
* `admin` check as `createGrant` (`POST /grants`).
|
|
7304
7437
|
* @summary List invitations
|
|
@@ -7313,8 +7446,9 @@ export const ListInvitationsQueryParams = zod.strictObject({
|
|
|
7313
7446
|
"project_id": zod.string().regex(listInvitationsQueryProjectIdRegExp, "must be one or more letters, digits, _ or -").describe('The project ID: the `id` that `createProject` (`POST /projects`) returns. `zitadel setup` prints\nit as "Project id" in its summary and as `project_id` with `--json`, and\nwrites it to `.env.local` as `ZITADEL_PROJECT_ID`.\n'),
|
|
7314
7447
|
"limit": zod.int().min(1).max(listInvitationsQueryLimitMax).default(listInvitationsQueryLimitDefault).describe('Maximum number of items to return.'),
|
|
7315
7448
|
"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'),
|
|
7316
|
-
"status": zod.enum(['pending', 'accepted', 'rejected', 'expired']).optional().describe('Only invitations with this status.'),
|
|
7317
|
-
"type": zod.enum(['project_member', 'team_member']).optional().describe('Only invitations of this type.')
|
|
7449
|
+
"status": zod.array(zod.enum(['pending', 'accepted', 'rejected', 'expired']).describe('Lifecycle status of the invitation. `expired` is derived on read from\n`expires_at`; `accepted` and `rejected` are final. Cancel and replace delete\nthe row rather than leaving a cancelled status.\n')).optional().describe('Only invitations with this status. Repeat the parameter to match any\nof several statuses.\n'),
|
|
7450
|
+
"type": zod.enum(['project_member', 'team_member']).optional().describe('Only invitations of this type.'),
|
|
7451
|
+
"expand": zod.array(zod.enum(['inviter']).describe('A related object to embed on each returned invitation.\n\n- `inviter`: the user who created the invitation, as `inviter`, a user\n reference. It is null when a project secret created the invitation. The\n property is omitted when not requested.\n\n It needs no permission beyond listing: like the user on a grant, the\n reference carries only `user_id`, `identifier` and `display`, never the\n user\'s record.\n')).optional().describe('Related objects to embed on each returned invitation.')
|
|
7318
7452
|
})
|
|
7319
7453
|
|
|
7320
7454
|
export const listInvitationsResponseInvitationsItemOneOneIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -7322,11 +7456,13 @@ export const listInvitationsResponseInvitationsItemOneOneProjectIdRegExp = new R
|
|
|
7322
7456
|
export const listInvitationsResponseInvitationsItemOneOneMetadataOneNameMax = 200;
|
|
7323
7457
|
|
|
7324
7458
|
|
|
7459
|
+
export const listInvitationsResponseInvitationsItemOneOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
7325
7460
|
export const listInvitationsResponseInvitationsItemTwoOneIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7326
7461
|
export const listInvitationsResponseInvitationsItemTwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7327
7462
|
export const listInvitationsResponseInvitationsItemTwoOneMetadataOneNameMax = 200;
|
|
7328
7463
|
|
|
7329
7464
|
|
|
7465
|
+
export const listInvitationsResponseInvitationsItemTwoOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
7330
7466
|
export const listInvitationsResponseInvitationsItemTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7331
7467
|
|
|
7332
7468
|
|
|
@@ -7336,15 +7472,21 @@ export const ListInvitationsResponse = zod.object({
|
|
|
7336
7472
|
"project_id": zod.string().regex(listInvitationsResponseInvitationsItemOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
7337
7473
|
"metadata": zod.union([zod.object({
|
|
7338
7474
|
"name": zod.string().min(1).max(listInvitationsResponseInvitationsItemOneOneMetadataOneNameMax).describe('A display name for who the invitation is intended for.')
|
|
7339
|
-
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted
|
|
7475
|
+
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n'),zod.null()]).optional().describe('Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n'),
|
|
7340
7476
|
"status": zod.enum(['pending', 'accepted', 'rejected', 'expired']).describe('Lifecycle status of the invitation. `expired` is derived on read from\n`expires_at`; `accepted` and `rejected` are final. Cancel and replace delete\nthe row rather than leaving a cancelled status.\n'),
|
|
7341
7477
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who created the invitation. Null when a project secret created\nit (`created_by_type` is then `service`).\n'),
|
|
7342
7478
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
|
|
7343
7479
|
"created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
|
|
7344
7480
|
"expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
|
|
7345
7481
|
"journey_id": zod.string().min(1).describe('Correlates this invitation with its replacements. A replacement keeps the\noriginal\'s `journey_id`. It is a random correlation id, not a resource id.\n'),
|
|
7346
|
-
"
|
|
7347
|
-
"
|
|
7482
|
+
"responded_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n'),
|
|
7483
|
+
"responded_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted or declined. Null while it is pending or\nexpired.\n'),
|
|
7484
|
+
"inviter": zod.union([zod.object({
|
|
7485
|
+
"user_id": zod.string().regex(listInvitationsResponseInvitationsItemOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
7486
|
+
"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'),
|
|
7487
|
+
"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'),
|
|
7488
|
+
"display": zod.string().optional().describe('The `x-display` rendering: the designated properties\' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n')
|
|
7489
|
+
}).describe('A resolved reference to a user. Fields are named for their role, not for a\nschema property, 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`.\nA missing or deleted user degrades to `user_id` only.\n'),zod.null()]).optional().describe('The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n')
|
|
7348
7490
|
}).describe('Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n').and(zod.object({
|
|
7349
7491
|
"type": zod.enum(['project_member']),
|
|
7350
7492
|
"project_member": zod.object({
|
|
@@ -7355,15 +7497,21 @@ export const ListInvitationsResponse = zod.object({
|
|
|
7355
7497
|
"project_id": zod.string().regex(listInvitationsResponseInvitationsItemTwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
7356
7498
|
"metadata": zod.union([zod.object({
|
|
7357
7499
|
"name": zod.string().min(1).max(listInvitationsResponseInvitationsItemTwoOneMetadataOneNameMax).describe('A display name for who the invitation is intended for.')
|
|
7358
|
-
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted
|
|
7500
|
+
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n'),zod.null()]).optional().describe('Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n'),
|
|
7359
7501
|
"status": zod.enum(['pending', 'accepted', 'rejected', 'expired']).describe('Lifecycle status of the invitation. `expired` is derived on read from\n`expires_at`; `accepted` and `rejected` are final. Cancel and replace delete\nthe row rather than leaving a cancelled status.\n'),
|
|
7360
7502
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who created the invitation. Null when a project secret created\nit (`created_by_type` is then `service`).\n'),
|
|
7361
7503
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
|
|
7362
7504
|
"created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
|
|
7363
7505
|
"expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
|
|
7364
7506
|
"journey_id": zod.string().min(1).describe('Correlates this invitation with its replacements. A replacement keeps the\noriginal\'s `journey_id`. It is a random correlation id, not a resource id.\n'),
|
|
7365
|
-
"
|
|
7366
|
-
"
|
|
7507
|
+
"responded_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n'),
|
|
7508
|
+
"responded_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted or declined. Null while it is pending or\nexpired.\n'),
|
|
7509
|
+
"inviter": zod.union([zod.object({
|
|
7510
|
+
"user_id": zod.string().regex(listInvitationsResponseInvitationsItemTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
7511
|
+
"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'),
|
|
7512
|
+
"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'),
|
|
7513
|
+
"display": zod.string().optional().describe('The `x-display` rendering: the designated properties\' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n')
|
|
7514
|
+
}).describe('A resolved reference to a user. Fields are named for their role, not for a\nschema property, 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`.\nA missing or deleted user degrades to `user_id` only.\n'),zod.null()]).optional().describe('The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n')
|
|
7367
7515
|
}).describe('Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n').and(zod.object({
|
|
7368
7516
|
"type": zod.enum(['team_member']),
|
|
7369
7517
|
"team_member": zod.object({
|
|
@@ -7383,7 +7531,7 @@ export const ListInvitationsResponse = zod.object({
|
|
|
7383
7531
|
* or finished token answers the same opaque `404`. Authenticate with a
|
|
7384
7532
|
* platform-project user session cookie (`sessionCookie`). Lookup is a read:
|
|
7385
7533
|
* same-origin cookie requests need no `X-Zitadel-CSRF` token (accept and
|
|
7386
|
-
* reject still do).
|
|
7534
|
+
* reject still do).
|
|
7387
7535
|
* @summary Look up an invitation by token
|
|
7388
7536
|
*/
|
|
7389
7537
|
|
|
@@ -7394,7 +7542,9 @@ export const LookupInvitationBody = zod.object({
|
|
|
7394
7542
|
}).describe('The redeem token from an invitation link\'s fragment.')
|
|
7395
7543
|
|
|
7396
7544
|
export const lookupInvitationResponseOneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7545
|
+
export const lookupInvitationResponseOneOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
7397
7546
|
export const lookupInvitationResponseTwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7547
|
+
export const lookupInvitationResponseTwoOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
7398
7548
|
export const lookupInvitationResponseTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7399
7549
|
|
|
7400
7550
|
|
|
@@ -7403,6 +7553,12 @@ export const LookupInvitationResponse = zod.union([zod.object({
|
|
|
7403
7553
|
"project_name": zod.string().describe('The project\'s display name.'),
|
|
7404
7554
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who created the invitation. Null when a project secret created it.\n'),
|
|
7405
7555
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
|
|
7556
|
+
"inviter": zod.union([zod.object({
|
|
7557
|
+
"user_id": zod.string().regex(lookupInvitationResponseOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
7558
|
+
"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'),
|
|
7559
|
+
"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'),
|
|
7560
|
+
"display": zod.string().optional().describe('The `x-display` rendering: the designated properties\' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n')
|
|
7561
|
+
}).describe('A resolved reference to a user. Fields are named for their role, not for a\nschema property, 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`.\nA missing or deleted user degrades to `user_id` only.\n'),zod.null()]).optional().describe('The user who created the invitation, resolved so the accept page can\nname them: render `display`, falling back to `identifier`, then\n`user_id`. Null when a project secret created it.\n'),
|
|
7406
7562
|
"expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires.'),
|
|
7407
7563
|
"status": zod.enum(['pending', 'accepted', 'rejected', 'expired']).describe('Lifecycle status of the invitation. `expired` is derived on read from\n`expires_at`; `accepted` and `rejected` are final. Cancel and replace delete\nthe row rather than leaving a cancelled status.\n')
|
|
7408
7564
|
}).describe('Shared fields of the lean invitation view for the accept page.\n').and(zod.object({
|
|
@@ -7415,6 +7571,12 @@ export const LookupInvitationResponse = zod.union([zod.object({
|
|
|
7415
7571
|
"project_name": zod.string().describe('The project\'s display name.'),
|
|
7416
7572
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who created the invitation. Null when a project secret created it.\n'),
|
|
7417
7573
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
|
|
7574
|
+
"inviter": zod.union([zod.object({
|
|
7575
|
+
"user_id": zod.string().regex(lookupInvitationResponseTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
7576
|
+
"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'),
|
|
7577
|
+
"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'),
|
|
7578
|
+
"display": zod.string().optional().describe('The `x-display` rendering: the designated properties\' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n')
|
|
7579
|
+
}).describe('A resolved reference to a user. Fields are named for their role, not for a\nschema property, 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`.\nA missing or deleted user degrades to `user_id` only.\n'),zod.null()]).optional().describe('The user who created the invitation, resolved so the accept page can\nname them: render `display`, falling back to `identifier`, then\n`user_id`. Null when a project secret created it.\n'),
|
|
7418
7580
|
"expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires.'),
|
|
7419
7581
|
"status": zod.enum(['pending', 'accepted', 'rejected', 'expired']).describe('Lifecycle status of the invitation. `expired` is derived on read from\n`expires_at`; `accepted` and `rejected` are final. Cancel and replace delete\nthe row rather than leaving a cancelled status.\n')
|
|
7420
7582
|
}).describe('Shared fields of the lean invitation view for the accept page.\n').and(zod.object({
|
|
@@ -7438,7 +7600,7 @@ export const LookupInvitationResponse = zod.union([zod.object({
|
|
|
7438
7600
|
* answers the same opaque `404`.
|
|
7439
7601
|
*
|
|
7440
7602
|
* Authenticate with a platform-project user session cookie (`sessionCookie`).
|
|
7441
|
-
* Cookie requests follow that scheme's CSRF rules.
|
|
7603
|
+
* Cookie requests follow that scheme's CSRF rules.
|
|
7442
7604
|
* @summary Accept an invitation
|
|
7443
7605
|
*/
|
|
7444
7606
|
|
|
@@ -7453,11 +7615,13 @@ export const acceptInvitationResponseOneOneProjectIdRegExp = new RegExp('^[a-zA-
|
|
|
7453
7615
|
export const acceptInvitationResponseOneOneMetadataOneNameMax = 200;
|
|
7454
7616
|
|
|
7455
7617
|
|
|
7618
|
+
export const acceptInvitationResponseOneOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
7456
7619
|
export const acceptInvitationResponseTwoOneIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7457
7620
|
export const acceptInvitationResponseTwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7458
7621
|
export const acceptInvitationResponseTwoOneMetadataOneNameMax = 200;
|
|
7459
7622
|
|
|
7460
7623
|
|
|
7624
|
+
export const acceptInvitationResponseTwoOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
7461
7625
|
export const acceptInvitationResponseTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7462
7626
|
|
|
7463
7627
|
|
|
@@ -7466,15 +7630,21 @@ export const AcceptInvitationResponse = zod.union([zod.object({
|
|
|
7466
7630
|
"project_id": zod.string().regex(acceptInvitationResponseOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
7467
7631
|
"metadata": zod.union([zod.object({
|
|
7468
7632
|
"name": zod.string().min(1).max(acceptInvitationResponseOneOneMetadataOneNameMax).describe('A display name for who the invitation is intended for.')
|
|
7469
|
-
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted
|
|
7633
|
+
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n'),zod.null()]).optional().describe('Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n'),
|
|
7470
7634
|
"status": zod.enum(['pending', 'accepted', 'rejected', 'expired']).describe('Lifecycle status of the invitation. `expired` is derived on read from\n`expires_at`; `accepted` and `rejected` are final. Cancel and replace delete\nthe row rather than leaving a cancelled status.\n'),
|
|
7471
7635
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who created the invitation. Null when a project secret created\nit (`created_by_type` is then `service`).\n'),
|
|
7472
7636
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
|
|
7473
7637
|
"created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
|
|
7474
7638
|
"expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
|
|
7475
7639
|
"journey_id": zod.string().min(1).describe('Correlates this invitation with its replacements. A replacement keeps the\noriginal\'s `journey_id`. It is a random correlation id, not a resource id.\n'),
|
|
7476
|
-
"
|
|
7477
|
-
"
|
|
7640
|
+
"responded_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n'),
|
|
7641
|
+
"responded_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted or declined. Null while it is pending or\nexpired.\n'),
|
|
7642
|
+
"inviter": zod.union([zod.object({
|
|
7643
|
+
"user_id": zod.string().regex(acceptInvitationResponseOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
7644
|
+
"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'),
|
|
7645
|
+
"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'),
|
|
7646
|
+
"display": zod.string().optional().describe('The `x-display` rendering: the designated properties\' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n')
|
|
7647
|
+
}).describe('A resolved reference to a user. Fields are named for their role, not for a\nschema property, 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`.\nA missing or deleted user degrades to `user_id` only.\n'),zod.null()]).optional().describe('The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n')
|
|
7478
7648
|
}).describe('Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n').and(zod.object({
|
|
7479
7649
|
"type": zod.enum(['project_member']),
|
|
7480
7650
|
"project_member": zod.object({
|
|
@@ -7485,15 +7655,21 @@ export const AcceptInvitationResponse = zod.union([zod.object({
|
|
|
7485
7655
|
"project_id": zod.string().regex(acceptInvitationResponseTwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
7486
7656
|
"metadata": zod.union([zod.object({
|
|
7487
7657
|
"name": zod.string().min(1).max(acceptInvitationResponseTwoOneMetadataOneNameMax).describe('A display name for who the invitation is intended for.')
|
|
7488
|
-
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted
|
|
7658
|
+
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n'),zod.null()]).optional().describe('Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n'),
|
|
7489
7659
|
"status": zod.enum(['pending', 'accepted', 'rejected', 'expired']).describe('Lifecycle status of the invitation. `expired` is derived on read from\n`expires_at`; `accepted` and `rejected` are final. Cancel and replace delete\nthe row rather than leaving a cancelled status.\n'),
|
|
7490
7660
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who created the invitation. Null when a project secret created\nit (`created_by_type` is then `service`).\n'),
|
|
7491
7661
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
|
|
7492
7662
|
"created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
|
|
7493
7663
|
"expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
|
|
7494
7664
|
"journey_id": zod.string().min(1).describe('Correlates this invitation with its replacements. A replacement keeps the\noriginal\'s `journey_id`. It is a random correlation id, not a resource id.\n'),
|
|
7495
|
-
"
|
|
7496
|
-
"
|
|
7665
|
+
"responded_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n'),
|
|
7666
|
+
"responded_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted or declined. Null while it is pending or\nexpired.\n'),
|
|
7667
|
+
"inviter": zod.union([zod.object({
|
|
7668
|
+
"user_id": zod.string().regex(acceptInvitationResponseTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
7669
|
+
"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'),
|
|
7670
|
+
"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'),
|
|
7671
|
+
"display": zod.string().optional().describe('The `x-display` rendering: the designated properties\' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n')
|
|
7672
|
+
}).describe('A resolved reference to a user. Fields are named for their role, not for a\nschema property, 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`.\nA missing or deleted user degrades to `user_id` only.\n'),zod.null()]).optional().describe('The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n')
|
|
7497
7673
|
}).describe('Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n').and(zod.object({
|
|
7498
7674
|
"type": zod.enum(['team_member']),
|
|
7499
7675
|
"team_member": zod.object({
|
|
@@ -7507,10 +7683,13 @@ export const AcceptInvitationResponse = zod.union([zod.object({
|
|
|
7507
7683
|
* Declines a pending invitation for the signed-in user and returns the
|
|
7508
7684
|
* updated invitation with status `rejected`.
|
|
7509
7685
|
*
|
|
7510
|
-
* Send the plaintext token from the invitation link fragment.
|
|
7511
|
-
*
|
|
7686
|
+
* Send the plaintext token from the invitation link fragment. The
|
|
7687
|
+
* invitation keeps its metadata for administrators, but this response
|
|
7688
|
+
* returns `metadata` as null. The inviter cannot decline their own invitation; an administrator
|
|
7689
|
+
* cancels it instead. Every unknown or finished token answers the same
|
|
7690
|
+
* opaque `404`.
|
|
7512
7691
|
* Authenticate with a platform-project user session cookie (`sessionCookie`).
|
|
7513
|
-
* Cookie requests follow that scheme's CSRF rules.
|
|
7692
|
+
* Cookie requests follow that scheme's CSRF rules.
|
|
7514
7693
|
* @summary Decline an invitation
|
|
7515
7694
|
*/
|
|
7516
7695
|
|
|
@@ -7525,11 +7704,13 @@ export const rejectInvitationResponseOneOneProjectIdRegExp = new RegExp('^[a-zA-
|
|
|
7525
7704
|
export const rejectInvitationResponseOneOneMetadataOneNameMax = 200;
|
|
7526
7705
|
|
|
7527
7706
|
|
|
7707
|
+
export const rejectInvitationResponseOneOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
7528
7708
|
export const rejectInvitationResponseTwoOneIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7529
7709
|
export const rejectInvitationResponseTwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7530
7710
|
export const rejectInvitationResponseTwoOneMetadataOneNameMax = 200;
|
|
7531
7711
|
|
|
7532
7712
|
|
|
7713
|
+
export const rejectInvitationResponseTwoOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
7533
7714
|
export const rejectInvitationResponseTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7534
7715
|
|
|
7535
7716
|
|
|
@@ -7538,15 +7719,21 @@ export const RejectInvitationResponse = zod.union([zod.object({
|
|
|
7538
7719
|
"project_id": zod.string().regex(rejectInvitationResponseOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
7539
7720
|
"metadata": zod.union([zod.object({
|
|
7540
7721
|
"name": zod.string().min(1).max(rejectInvitationResponseOneOneMetadataOneNameMax).describe('A display name for who the invitation is intended for.')
|
|
7541
|
-
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted
|
|
7722
|
+
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n'),zod.null()]).optional().describe('Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n'),
|
|
7542
7723
|
"status": zod.enum(['pending', 'accepted', 'rejected', 'expired']).describe('Lifecycle status of the invitation. `expired` is derived on read from\n`expires_at`; `accepted` and `rejected` are final. Cancel and replace delete\nthe row rather than leaving a cancelled status.\n'),
|
|
7543
7724
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who created the invitation. Null when a project secret created\nit (`created_by_type` is then `service`).\n'),
|
|
7544
7725
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
|
|
7545
7726
|
"created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
|
|
7546
7727
|
"expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
|
|
7547
7728
|
"journey_id": zod.string().min(1).describe('Correlates this invitation with its replacements. A replacement keeps the\noriginal\'s `journey_id`. It is a random correlation id, not a resource id.\n'),
|
|
7548
|
-
"
|
|
7549
|
-
"
|
|
7729
|
+
"responded_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n'),
|
|
7730
|
+
"responded_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted or declined. Null while it is pending or\nexpired.\n'),
|
|
7731
|
+
"inviter": zod.union([zod.object({
|
|
7732
|
+
"user_id": zod.string().regex(rejectInvitationResponseOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
7733
|
+
"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'),
|
|
7734
|
+
"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'),
|
|
7735
|
+
"display": zod.string().optional().describe('The `x-display` rendering: the designated properties\' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n')
|
|
7736
|
+
}).describe('A resolved reference to a user. Fields are named for their role, not for a\nschema property, 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`.\nA missing or deleted user degrades to `user_id` only.\n'),zod.null()]).optional().describe('The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n')
|
|
7550
7737
|
}).describe('Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n').and(zod.object({
|
|
7551
7738
|
"type": zod.enum(['project_member']),
|
|
7552
7739
|
"project_member": zod.object({
|
|
@@ -7557,15 +7744,21 @@ export const RejectInvitationResponse = zod.union([zod.object({
|
|
|
7557
7744
|
"project_id": zod.string().regex(rejectInvitationResponseTwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
7558
7745
|
"metadata": zod.union([zod.object({
|
|
7559
7746
|
"name": zod.string().min(1).max(rejectInvitationResponseTwoOneMetadataOneNameMax).describe('A display name for who the invitation is intended for.')
|
|
7560
|
-
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted
|
|
7747
|
+
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n'),zod.null()]).optional().describe('Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n'),
|
|
7561
7748
|
"status": zod.enum(['pending', 'accepted', 'rejected', 'expired']).describe('Lifecycle status of the invitation. `expired` is derived on read from\n`expires_at`; `accepted` and `rejected` are final. Cancel and replace delete\nthe row rather than leaving a cancelled status.\n'),
|
|
7562
7749
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who created the invitation. Null when a project secret created\nit (`created_by_type` is then `service`).\n'),
|
|
7563
7750
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
|
|
7564
7751
|
"created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
|
|
7565
7752
|
"expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
|
|
7566
7753
|
"journey_id": zod.string().min(1).describe('Correlates this invitation with its replacements. A replacement keeps the\noriginal\'s `journey_id`. It is a random correlation id, not a resource id.\n'),
|
|
7567
|
-
"
|
|
7568
|
-
"
|
|
7754
|
+
"responded_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n'),
|
|
7755
|
+
"responded_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted or declined. Null while it is pending or\nexpired.\n'),
|
|
7756
|
+
"inviter": zod.union([zod.object({
|
|
7757
|
+
"user_id": zod.string().regex(rejectInvitationResponseTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
7758
|
+
"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'),
|
|
7759
|
+
"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'),
|
|
7760
|
+
"display": zod.string().optional().describe('The `x-display` rendering: the designated properties\' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n')
|
|
7761
|
+
}).describe('A resolved reference to a user. Fields are named for their role, not for a\nschema property, 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`.\nA missing or deleted user degrades to `user_id` only.\n'),zod.null()]).optional().describe('The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n')
|
|
7569
7762
|
}).describe('Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n').and(zod.object({
|
|
7570
7763
|
"type": zod.enum(['team_member']),
|
|
7571
7764
|
"team_member": zod.object({
|
|
@@ -7603,11 +7796,13 @@ export const getInvitationResponseOneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-
|
|
|
7603
7796
|
export const getInvitationResponseOneOneMetadataOneNameMax = 200;
|
|
7604
7797
|
|
|
7605
7798
|
|
|
7799
|
+
export const getInvitationResponseOneOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
7606
7800
|
export const getInvitationResponseTwoOneIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7607
7801
|
export const getInvitationResponseTwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7608
7802
|
export const getInvitationResponseTwoOneMetadataOneNameMax = 200;
|
|
7609
7803
|
|
|
7610
7804
|
|
|
7805
|
+
export const getInvitationResponseTwoOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
|
|
7611
7806
|
export const getInvitationResponseTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7612
7807
|
|
|
7613
7808
|
|
|
@@ -7616,15 +7811,21 @@ export const GetInvitationResponse = zod.union([zod.object({
|
|
|
7616
7811
|
"project_id": zod.string().regex(getInvitationResponseOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
7617
7812
|
"metadata": zod.union([zod.object({
|
|
7618
7813
|
"name": zod.string().min(1).max(getInvitationResponseOneOneMetadataOneNameMax).describe('A display name for who the invitation is intended for.')
|
|
7619
|
-
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted
|
|
7814
|
+
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n'),zod.null()]).optional().describe('Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n'),
|
|
7620
7815
|
"status": zod.enum(['pending', 'accepted', 'rejected', 'expired']).describe('Lifecycle status of the invitation. `expired` is derived on read from\n`expires_at`; `accepted` and `rejected` are final. Cancel and replace delete\nthe row rather than leaving a cancelled status.\n'),
|
|
7621
7816
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who created the invitation. Null when a project secret created\nit (`created_by_type` is then `service`).\n'),
|
|
7622
7817
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
|
|
7623
7818
|
"created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
|
|
7624
7819
|
"expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
|
|
7625
7820
|
"journey_id": zod.string().min(1).describe('Correlates this invitation with its replacements. A replacement keeps the\noriginal\'s `journey_id`. It is a random correlation id, not a resource id.\n'),
|
|
7626
|
-
"
|
|
7627
|
-
"
|
|
7821
|
+
"responded_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n'),
|
|
7822
|
+
"responded_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted or declined. Null while it is pending or\nexpired.\n'),
|
|
7823
|
+
"inviter": zod.union([zod.object({
|
|
7824
|
+
"user_id": zod.string().regex(getInvitationResponseOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
7825
|
+
"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'),
|
|
7826
|
+
"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'),
|
|
7827
|
+
"display": zod.string().optional().describe('The `x-display` rendering: the designated properties\' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n')
|
|
7828
|
+
}).describe('A resolved reference to a user. Fields are named for their role, not for a\nschema property, 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`.\nA missing or deleted user degrades to `user_id` only.\n'),zod.null()]).optional().describe('The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n')
|
|
7628
7829
|
}).describe('Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n').and(zod.object({
|
|
7629
7830
|
"type": zod.enum(['project_member']),
|
|
7630
7831
|
"project_member": zod.object({
|
|
@@ -7635,15 +7836,21 @@ export const GetInvitationResponse = zod.union([zod.object({
|
|
|
7635
7836
|
"project_id": zod.string().regex(getInvitationResponseTwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
7636
7837
|
"metadata": zod.union([zod.object({
|
|
7637
7838
|
"name": zod.string().min(1).max(getInvitationResponseTwoOneMetadataOneNameMax).describe('A display name for who the invitation is intended for.')
|
|
7638
|
-
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted
|
|
7839
|
+
}).describe('What the administrator entered at creation, so other administrators know who\nthe link is for. It is only displayed, never matched. Null once the\ninvitation is accepted; a declined one keeps it. Cancel deletes the row with\nit; replace moves it to the new invitation unless that sends its own.\n'),zod.null()]).optional().describe('Who the administrator said the link is for. Null after accept; a\ndecline keeps it. Cancel and replace delete the row.\n'),
|
|
7639
7840
|
"status": zod.enum(['pending', 'accepted', 'rejected', 'expired']).describe('Lifecycle status of the invitation. `expired` is derived on read from\n`expires_at`; `accepted` and `rejected` are final. Cancel and replace delete\nthe row rather than leaving a cancelled status.\n'),
|
|
7640
7841
|
"created_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who created the invitation. Null when a project secret created\nit (`created_by_type` is then `service`).\n'),
|
|
7641
7842
|
"created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
|
|
7642
7843
|
"created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
|
|
7643
7844
|
"expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
|
|
7644
7845
|
"journey_id": zod.string().min(1).describe('Correlates this invitation with its replacements. A replacement keeps the\noriginal\'s `journey_id`. It is a random correlation id, not a resource id.\n'),
|
|
7645
|
-
"
|
|
7646
|
-
"
|
|
7846
|
+
"responded_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who accepted or declined the link; `status` says which. Null\nwhile the invitation is pending or expired.\n'),
|
|
7847
|
+
"responded_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted or declined. Null while it is pending or\nexpired.\n'),
|
|
7848
|
+
"inviter": zod.union([zod.object({
|
|
7849
|
+
"user_id": zod.string().regex(getInvitationResponseTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
|
|
7850
|
+
"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'),
|
|
7851
|
+
"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'),
|
|
7852
|
+
"display": zod.string().optional().describe('The `x-display` rendering: the designated properties\' values joined\nin list order. It is for display only and names no source.\nAbsent when the schema designates no display properties or the user\ncarries no values for them.\n')
|
|
7853
|
+
}).describe('A resolved reference to a user. Fields are named for their role, not for a\nschema property, 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`.\nA missing or deleted user degrades to `user_id` only.\n'),zod.null()]).optional().describe('The user who created the invitation, resolved for display: render\n`display`, falling back to `identifier`, then `user_id`. Present only\nwhen `listInvitations` is called with `expand=inviter`; null when a\nproject secret created the invitation.\n')
|
|
7647
7854
|
}).describe('Fields every invitation carries. Each type adds its own `type` const and the\nnested object named after that type.\n').and(zod.object({
|
|
7648
7855
|
"type": zod.enum(['team_member']),
|
|
7649
7856
|
"team_member": zod.object({
|
|
@@ -7654,10 +7861,9 @@ export const GetInvitationResponse = zod.union([zod.object({
|
|
|
7654
7861
|
|
|
7655
7862
|
|
|
7656
7863
|
/**
|
|
7657
|
-
* Deletes a pending
|
|
7658
|
-
*
|
|
7659
|
-
* same opaque `404` as a miss.
|
|
7660
|
-
* later cleanup job removes them.
|
|
7864
|
+
* Deletes a pending, expired or rejected invitation, with its metadata. A
|
|
7865
|
+
* pending invitation's link can no longer be redeemed. An accepted
|
|
7866
|
+
* invitation answers the same opaque `404` as a miss.
|
|
7661
7867
|
*
|
|
7662
7868
|
* Authenticate with a project secret (`oauth2`) or a console session cookie
|
|
7663
7869
|
* (`sessionCookie`). Cancelling needs the same project `admin` check as
|
|
@@ -7765,11 +7971,11 @@ export const listEventsResponseEventsItemTwothreeOneProjectIdRegExp = new RegExp
|
|
|
7765
7971
|
export const listEventsResponseEventsItemTwofourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7766
7972
|
export const listEventsResponseEventsItemTwofiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7767
7973
|
export const listEventsResponseEventsItemTwosixOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7768
|
-
export const listEventsResponseEventsItemTwosixTwoPayloadTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7769
7974
|
export const listEventsResponseEventsItemTwosevenOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7975
|
+
export const listEventsResponseEventsItemTwosevenTwoPayloadTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7770
7976
|
export const listEventsResponseEventsItemTwoeightOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7771
|
-
export const listEventsResponseEventsItemTwoeightTwoPayloadTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7772
7977
|
export const listEventsResponseEventsItemTwonineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7978
|
+
export const listEventsResponseEventsItemTwonineTwoPayloadTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7773
7979
|
export const listEventsResponseEventsItemThreezeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7774
7980
|
export const listEventsResponseEventsItemThreeoneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7775
7981
|
export const listEventsResponseEventsItemThreetwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -7780,19 +7986,19 @@ export const listEventsResponseEventsItemThreesixOneProjectIdRegExp = new RegExp
|
|
|
7780
7986
|
export const listEventsResponseEventsItemThreesevenOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7781
7987
|
export const listEventsResponseEventsItemThreeeightOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7782
7988
|
export const listEventsResponseEventsItemThreenineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7783
|
-
export const listEventsResponseEventsItemThreenineTwoPayloadContentHashMin = 71;
|
|
7784
|
-
export const listEventsResponseEventsItemThreenineTwoPayloadContentHashMax = 71;
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
export const listEventsResponseEventsItemThreenineTwoPayloadContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
7788
7989
|
export const listEventsResponseEventsItemFourzeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7789
|
-
export const
|
|
7790
|
-
export const
|
|
7990
|
+
export const listEventsResponseEventsItemFouroneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7991
|
+
export const listEventsResponseEventsItemFouroneTwoPayloadContentHashMin = 71;
|
|
7992
|
+
export const listEventsResponseEventsItemFouroneTwoPayloadContentHashMax = 71;
|
|
7791
7993
|
|
|
7792
|
-
export const listEventsResponseEventsItemFourzeroTwoPayloadDurationMsMin = 0;
|
|
7793
7994
|
|
|
7794
|
-
export const
|
|
7995
|
+
export const listEventsResponseEventsItemFouroneTwoPayloadContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
7795
7996
|
export const listEventsResponseEventsItemFourtwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7997
|
+
export const listEventsResponseEventsItemFourtwoTwoPayloadStatusMin = 100;
|
|
7998
|
+
export const listEventsResponseEventsItemFourtwoTwoPayloadStatusMax = 599;
|
|
7999
|
+
|
|
8000
|
+
export const listEventsResponseEventsItemFourtwoTwoPayloadDurationMsMin = 0;
|
|
8001
|
+
|
|
7796
8002
|
export const listEventsResponseEventsItemFourthreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7797
8003
|
export const listEventsResponseEventsItemFourfourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7798
8004
|
export const listEventsResponseEventsItemFourfiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -7803,6 +8009,8 @@ export const listEventsResponseEventsItemFournineOneProjectIdRegExp = new RegExp
|
|
|
7803
8009
|
export const listEventsResponseEventsItemFivezeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7804
8010
|
export const listEventsResponseEventsItemFiveoneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7805
8011
|
export const listEventsResponseEventsItemFivetwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
8012
|
+
export const listEventsResponseEventsItemFivethreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
8013
|
+
export const listEventsResponseEventsItemFivefourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
7806
8014
|
|
|
7807
8015
|
|
|
7808
8016
|
export const ListEventsResponse = zod.object({
|
|
@@ -7828,7 +8036,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7828
8036
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
7829
8037
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
7830
8038
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
7831
|
-
"metadata": zod.
|
|
8039
|
+
"metadata": zod.looseObject({
|
|
7832
8040
|
"authorization": zod.object({
|
|
7833
8041
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
7834
8042
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -7869,7 +8077,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7869
8077
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
7870
8078
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
7871
8079
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
7872
|
-
"metadata": zod.
|
|
8080
|
+
"metadata": zod.looseObject({
|
|
7873
8081
|
"authorization": zod.object({
|
|
7874
8082
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
7875
8083
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -7910,7 +8118,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7910
8118
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
7911
8119
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
7912
8120
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
7913
|
-
"metadata": zod.
|
|
8121
|
+
"metadata": zod.looseObject({
|
|
7914
8122
|
"authorization": zod.object({
|
|
7915
8123
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
7916
8124
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -7948,7 +8156,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7948
8156
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
7949
8157
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
7950
8158
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
7951
|
-
"metadata": zod.
|
|
8159
|
+
"metadata": zod.looseObject({
|
|
7952
8160
|
"authorization": zod.object({
|
|
7953
8161
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
7954
8162
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -7986,7 +8194,7 @@ export const ListEventsResponse = zod.object({
|
|
|
7986
8194
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
7987
8195
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
7988
8196
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
7989
|
-
"metadata": zod.
|
|
8197
|
+
"metadata": zod.looseObject({
|
|
7990
8198
|
"authorization": zod.object({
|
|
7991
8199
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
7992
8200
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8026,7 +8234,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8026
8234
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8027
8235
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8028
8236
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8029
|
-
"metadata": zod.
|
|
8237
|
+
"metadata": zod.looseObject({
|
|
8030
8238
|
"authorization": zod.object({
|
|
8031
8239
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8032
8240
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8066,7 +8274,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8066
8274
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8067
8275
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8068
8276
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8069
|
-
"metadata": zod.
|
|
8277
|
+
"metadata": zod.looseObject({
|
|
8070
8278
|
"authorization": zod.object({
|
|
8071
8279
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8072
8280
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8105,7 +8313,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8105
8313
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8106
8314
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8107
8315
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8108
|
-
"metadata": zod.
|
|
8316
|
+
"metadata": zod.looseObject({
|
|
8109
8317
|
"authorization": zod.object({
|
|
8110
8318
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8111
8319
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8144,7 +8352,45 @@ export const ListEventsResponse = zod.object({
|
|
|
8144
8352
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8145
8353
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8146
8354
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8147
|
-
"metadata": zod.
|
|
8355
|
+
"metadata": zod.looseObject({
|
|
8356
|
+
"authorization": zod.object({
|
|
8357
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8358
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
8359
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject. Every event of such a request carries it.\n'),
|
|
8360
|
+
"client": zod.object({
|
|
8361
|
+
"ip": zod.string().optional().describe('The client IP, from the first `X-Forwarded-For` hop or the remote address.'),
|
|
8362
|
+
"user_agent": zod.string().optional().describe('The observed `User-Agent` header.'),
|
|
8363
|
+
"origin": zod.string().optional().describe('The `Origin` header, when present.')
|
|
8364
|
+
}).optional().describe('The observed HTTP requestor context, set only on events from an API request (`request.api`).')
|
|
8365
|
+
}).optional().describe('Metadata the server records when it emits the event, already redacted when\nwritten. An event from an API request (`request.api`) may set `client`\n(`ip`, `user_agent`, `origin`), so a SIEM can join it on `request_id`. It is\nnot a live risk-evaluator input.\n')
|
|
8366
|
+
}).describe('The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n').and(zod.object({
|
|
8367
|
+
"event_type": zod.literal("auth.request.created"),
|
|
8368
|
+
"payload": zod.object({
|
|
8369
|
+
"client_id": zod.string()
|
|
8370
|
+
}).describe('Payload for `auth.request.created` events.')
|
|
8371
|
+
})).describe('An event of type auth.request.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
8372
|
+
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8373
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemOnezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8374
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8375
|
+
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8376
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
8377
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened, on the server\'s clock, to the millisecond.\n'),
|
|
8378
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the event was stored, on the server\'s clock, to the millisecond.\n'),
|
|
8379
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the actor that triggered the event.'),
|
|
8380
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('The kind of actor that triggered the event.'),
|
|
8381
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('The type of resource the event affected.'),
|
|
8382
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the resource the event affected.'),
|
|
8383
|
+
"user_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the user the event concerns, whoever triggered it: the user a\nsession, a token, a sign-in check or a credential belongs to, or the\nuser a change was made to. Absent on an event that concerns no user.\n'),
|
|
8384
|
+
"client_id": zod.string().describe('The application or agent that produced the event.'),
|
|
8385
|
+
"token_id": zod.string().optional().describe('The ID of the token in use when the event was emitted, when there was one.'),
|
|
8386
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('The kind of delegation. Absent when unset.'),
|
|
8387
|
+
"delegation_id": zod.string().optional(),
|
|
8388
|
+
"grantor": zod.string().optional(),
|
|
8389
|
+
"fingerprint": zod.string().optional().describe('A device fingerprint ID that correlates events from the same device.'),
|
|
8390
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8391
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8392
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8393
|
+
"metadata": zod.looseObject({
|
|
8148
8394
|
"authorization": zod.object({
|
|
8149
8395
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8150
8396
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8164,7 +8410,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8164
8410
|
}).describe('Payload for `auth.check.failed`, `auth.check.succeeded`,\n`auth.sso.authorization.failed`, `auth.sso.exchange.failed` and\n`auth.sso.exchange.succeeded`.\n`auth_attempt_id` joins the check to its authentication attempt, so a SIEM\ntool can correlate them.\n')
|
|
8165
8411
|
})).describe('An event of type auth.sso.authorization.failed, with the shared event fields and its own payload.\n'),zod.object({
|
|
8166
8412
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8167
|
-
"project_id": zod.string().regex(
|
|
8413
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemOneoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8168
8414
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8169
8415
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8170
8416
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8184,7 +8430,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8184
8430
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8185
8431
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8186
8432
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8187
|
-
"metadata": zod.
|
|
8433
|
+
"metadata": zod.looseObject({
|
|
8188
8434
|
"authorization": zod.object({
|
|
8189
8435
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8190
8436
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8204,7 +8450,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8204
8450
|
}).describe('Payload for `auth.check.failed`, `auth.check.succeeded`,\n`auth.sso.authorization.failed`, `auth.sso.exchange.failed` and\n`auth.sso.exchange.succeeded`.\n`auth_attempt_id` joins the check to its authentication attempt, so a SIEM\ntool can correlate them.\n')
|
|
8205
8451
|
})).describe('An event of type auth.sso.exchange.failed, with the shared event fields and its own payload.\n'),zod.object({
|
|
8206
8452
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8207
|
-
"project_id": zod.string().regex(
|
|
8453
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemOnetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8208
8454
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8209
8455
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8210
8456
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8224,7 +8470,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8224
8470
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8225
8471
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8226
8472
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8227
|
-
"metadata": zod.
|
|
8473
|
+
"metadata": zod.looseObject({
|
|
8228
8474
|
"authorization": zod.object({
|
|
8229
8475
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8230
8476
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8244,7 +8490,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8244
8490
|
}).describe('Payload for `auth.check.failed`, `auth.check.succeeded`,\n`auth.sso.authorization.failed`, `auth.sso.exchange.failed` and\n`auth.sso.exchange.succeeded`.\n`auth_attempt_id` joins the check to its authentication attempt, so a SIEM\ntool can correlate them.\n')
|
|
8245
8491
|
})).describe('An event of type auth.sso.exchange.succeeded, with the shared event fields and its own payload.\n'),zod.object({
|
|
8246
8492
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8247
|
-
"project_id": zod.string().regex(
|
|
8493
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemOnethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8248
8494
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8249
8495
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8250
8496
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8264,7 +8510,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8264
8510
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8265
8511
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8266
8512
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8267
|
-
"metadata": zod.
|
|
8513
|
+
"metadata": zod.looseObject({
|
|
8268
8514
|
"authorization": zod.object({
|
|
8269
8515
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8270
8516
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8282,7 +8528,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8282
8528
|
}).describe('Payload for `auth.token.issued` events.')
|
|
8283
8529
|
})).describe('An event of type auth.token.issued, with the shared event fields and its own payload.\n'),zod.object({
|
|
8284
8530
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8285
|
-
"project_id": zod.string().regex(
|
|
8531
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemOnefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8286
8532
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8287
8533
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8288
8534
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8302,7 +8548,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8302
8548
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8303
8549
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8304
8550
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8305
|
-
"metadata": zod.
|
|
8551
|
+
"metadata": zod.looseObject({
|
|
8306
8552
|
"authorization": zod.object({
|
|
8307
8553
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8308
8554
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8320,7 +8566,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8320
8566
|
}).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
|
|
8321
8567
|
})).describe('An event of type auth.token.revoked, with the shared event fields and its own payload.\n'),zod.object({
|
|
8322
8568
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8323
|
-
"project_id": zod.string().regex(
|
|
8569
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemOnefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8324
8570
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8325
8571
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8326
8572
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8340,7 +8586,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8340
8586
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8341
8587
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8342
8588
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8343
|
-
"metadata": zod.
|
|
8589
|
+
"metadata": zod.looseObject({
|
|
8344
8590
|
"authorization": zod.object({
|
|
8345
8591
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8346
8592
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8360,7 +8606,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8360
8606
|
}).describe('Payload for `authz.granted` events.')
|
|
8361
8607
|
})).describe('An event of type authz.granted, with the shared event fields and its own payload.\n'),zod.object({
|
|
8362
8608
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8363
|
-
"project_id": zod.string().regex(
|
|
8609
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemOnesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8364
8610
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8365
8611
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8366
8612
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8380,7 +8626,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8380
8626
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8381
8627
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8382
8628
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8383
|
-
"metadata": zod.
|
|
8629
|
+
"metadata": zod.looseObject({
|
|
8384
8630
|
"authorization": zod.object({
|
|
8385
8631
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8386
8632
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8400,7 +8646,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8400
8646
|
}).describe('Payload for `authz.granted` events.')
|
|
8401
8647
|
})).describe('An event of type authz.revoked, with the shared event fields and its own payload.\n'),zod.object({
|
|
8402
8648
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8403
|
-
"project_id": zod.string().regex(
|
|
8649
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemOnesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8404
8650
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8405
8651
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8406
8652
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8420,7 +8666,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8420
8666
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8421
8667
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8422
8668
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8423
|
-
"metadata": zod.
|
|
8669
|
+
"metadata": zod.looseObject({
|
|
8424
8670
|
"authorization": zod.object({
|
|
8425
8671
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8426
8672
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8441,7 +8687,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8441
8687
|
}).describe('Payload for `branding.created`. It holds only the fields listed here and\nleaves out `liquid_template`.\n')
|
|
8442
8688
|
})).describe('An event of type branding.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
8443
8689
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8444
|
-
"project_id": zod.string().regex(
|
|
8690
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemOneeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8445
8691
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8446
8692
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8447
8693
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8461,7 +8707,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8461
8707
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8462
8708
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8463
8709
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8464
|
-
"metadata": zod.
|
|
8710
|
+
"metadata": zod.looseObject({
|
|
8465
8711
|
"authorization": zod.object({
|
|
8466
8712
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8467
8713
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8483,7 +8729,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8483
8729
|
}).describe('Payload for `deployment.created`. The deployment ID is the event\'s\n`entity_id`; the fields here say which release went live on which origins.\n')
|
|
8484
8730
|
})).describe('An event of type deployment.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
8485
8731
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8486
|
-
"project_id": zod.string().regex(
|
|
8732
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemOnenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8487
8733
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8488
8734
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8489
8735
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8503,7 +8749,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8503
8749
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8504
8750
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8505
8751
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8506
|
-
"metadata": zod.
|
|
8752
|
+
"metadata": zod.looseObject({
|
|
8507
8753
|
"authorization": zod.object({
|
|
8508
8754
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8509
8755
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8521,7 +8767,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8521
8767
|
}).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
|
|
8522
8768
|
})).describe('An event of type flow.signup_challenge.consumed, with the shared event fields and its own payload.\n'),zod.object({
|
|
8523
8769
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8524
|
-
"project_id": zod.string().regex(
|
|
8770
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemTwozeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8525
8771
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8526
8772
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8527
8773
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8541,7 +8787,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8541
8787
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8542
8788
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8543
8789
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8544
|
-
"metadata": zod.
|
|
8790
|
+
"metadata": zod.looseObject({
|
|
8545
8791
|
"authorization": zod.object({
|
|
8546
8792
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8547
8793
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8559,7 +8805,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8559
8805
|
}).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
|
|
8560
8806
|
})).describe('An event of type flow.signup_challenge.issued, with the shared event fields and its own payload.\n'),zod.object({
|
|
8561
8807
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8562
|
-
"project_id": zod.string().regex(
|
|
8808
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemTwooneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8563
8809
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8564
8810
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8565
8811
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8579,7 +8825,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8579
8825
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8580
8826
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8581
8827
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8582
|
-
"metadata": zod.
|
|
8828
|
+
"metadata": zod.looseObject({
|
|
8583
8829
|
"authorization": zod.object({
|
|
8584
8830
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8585
8831
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8603,7 +8849,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8603
8849
|
}).describe('Payload for `flowdef.created`: the fields of the created flow definition\nrevision, without its steps. The retired `flowdef.updated` event carries the\nchanged fields in the same shape.\n')
|
|
8604
8850
|
})).describe('An event of type flowdef.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
8605
8851
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8606
|
-
"project_id": zod.string().regex(
|
|
8852
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemTwotwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8607
8853
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8608
8854
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8609
8855
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8623,7 +8869,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8623
8869
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8624
8870
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8625
8871
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8626
|
-
"metadata": zod.
|
|
8872
|
+
"metadata": zod.looseObject({
|
|
8627
8873
|
"authorization": zod.object({
|
|
8628
8874
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8629
8875
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8641,7 +8887,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8641
8887
|
}).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
|
|
8642
8888
|
})).describe('An event of type flowdef.deleted, with the shared event fields and its own payload.\n'),zod.object({
|
|
8643
8889
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8644
|
-
"project_id": zod.string().regex(
|
|
8890
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemTwothreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8645
8891
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8646
8892
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8647
8893
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8661,7 +8907,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8661
8907
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8662
8908
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8663
8909
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8664
|
-
"metadata": zod.
|
|
8910
|
+
"metadata": zod.looseObject({
|
|
8665
8911
|
"authorization": zod.object({
|
|
8666
8912
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8667
8913
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8685,7 +8931,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8685
8931
|
}).describe('Payload for `flowdef.created`: the fields of the created flow definition\nrevision, without its steps. The retired `flowdef.updated` event carries the\nchanged fields in the same shape.\n')
|
|
8686
8932
|
})).describe('An event of type flowdef.updated, with the shared event fields and its own payload.\n'),zod.object({
|
|
8687
8933
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8688
|
-
"project_id": zod.string().regex(
|
|
8934
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemTwofourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8689
8935
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8690
8936
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8691
8937
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8705,7 +8951,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8705
8951
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8706
8952
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8707
8953
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8708
|
-
"metadata": zod.
|
|
8954
|
+
"metadata": zod.looseObject({
|
|
8709
8955
|
"authorization": zod.object({
|
|
8710
8956
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8711
8957
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8727,7 +8973,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8727
8973
|
}).describe('Payload for `idp.created`, which holds every field, and `idp.updated`, which\nholds only the changed fields plus the new `revision_id`. The identity\nprovider (IdP) connection ID is the event\'s `entity_id`. The connection\ndocument, and with it the reference to its `client_secret`, is never\nincluded.\n')
|
|
8728
8974
|
})).describe('An event of type idp.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
8729
8975
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8730
|
-
"project_id": zod.string().regex(
|
|
8976
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemTwofiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8731
8977
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8732
8978
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8733
8979
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8747,7 +8993,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8747
8993
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8748
8994
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8749
8995
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8750
|
-
"metadata": zod.
|
|
8996
|
+
"metadata": zod.looseObject({
|
|
8751
8997
|
"authorization": zod.object({
|
|
8752
8998
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8753
8999
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8766,7 +9012,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8766
9012
|
}).describe('Payload for `idp.identity_link.created`, sent when a sign-in through an\nidentity provider (IdP) creates a user and links the provider account to it.\nThe link ID is the event\'s `entity_id`. The provider\'s subject and claims, the\nprofile data it sends about the account, are never included.\n')
|
|
8767
9013
|
})).describe('An event of type idp.identity_link.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
8768
9014
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8769
|
-
"project_id": zod.string().regex(
|
|
9015
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemTwosixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8770
9016
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8771
9017
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8772
9018
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8786,7 +9032,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8786
9032
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8787
9033
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8788
9034
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8789
|
-
"metadata": zod.
|
|
9035
|
+
"metadata": zod.looseObject({
|
|
8790
9036
|
"authorization": zod.object({
|
|
8791
9037
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8792
9038
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8808,7 +9054,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8808
9054
|
}).describe('Payload for `idp.created`, which holds every field, and `idp.updated`, which\nholds only the changed fields plus the new `revision_id`. The identity\nprovider (IdP) connection ID is the event\'s `entity_id`. The connection\ndocument, and with it the reference to its `client_secret`, is never\nincluded.\n')
|
|
8809
9055
|
})).describe('An event of type idp.updated, with the shared event fields and its own payload.\n'),zod.object({
|
|
8810
9056
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8811
|
-
"project_id": zod.string().regex(
|
|
9057
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemTwosevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8812
9058
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8813
9059
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8814
9060
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8828,7 +9074,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8828
9074
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8829
9075
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8830
9076
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8831
|
-
"metadata": zod.
|
|
9077
|
+
"metadata": zod.looseObject({
|
|
8832
9078
|
"authorization": zod.object({
|
|
8833
9079
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8834
9080
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8855,13 +9101,13 @@ export const ListEventsResponse = zod.object({
|
|
|
8855
9101
|
}).describe('Fields every `invitation.accepted` payload carries, whatever its `type`.\n').and(zod.object({
|
|
8856
9102
|
"type": zod.enum(['team_member']),
|
|
8857
9103
|
"team_member": zod.object({
|
|
8858
|
-
"team_id": zod.string().regex(
|
|
9104
|
+
"team_id": zod.string().regex(listEventsResponseEventsItemTwosevenTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8859
9105
|
"role": zod.enum(['member']).describe('The team role the accepter receives.')
|
|
8860
9106
|
}).describe('Type-specific input for a `team_member` invitation.')
|
|
8861
9107
|
})).describe('An `invitation.accepted` payload for a `team_member` invitation.\n')]).describe('Payload for `invitation.accepted`. The invitation ID is the event\'s\n`entity_id`, and `user_id` is the user who redeemed the link. Discriminate\non `type`; the object named after it says what the invitation granted. Grant\nevents the acceptance writes, such as `authz.granted`, carry this event\'s\n`request_id`. There are none when the user already holds an identical\nactive grant.\n')
|
|
8862
9108
|
})).describe('An event of type invitation.accepted, with the shared event fields and its own payload.\n'),zod.object({
|
|
8863
9109
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8864
|
-
"project_id": zod.string().regex(
|
|
9110
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemTwoeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8865
9111
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8866
9112
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8867
9113
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8881,7 +9127,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8881
9127
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8882
9128
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8883
9129
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8884
|
-
"metadata": zod.
|
|
9130
|
+
"metadata": zod.looseObject({
|
|
8885
9131
|
"authorization": zod.object({
|
|
8886
9132
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8887
9133
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8904,7 +9150,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8904
9150
|
}).describe('An `invitation.cancelled` payload for an invitation a replacement\ncancelled.\n')]).describe('Payload for `invitation.cancelled`. The invitation ID is the event\'s\n`entity_id`. Discriminate on `reason`: `cancelled` when an administrator\ncancelled it, `replaced` when a replacement cancelled it, which then names\nthe replacement in `replaced_by_invitation_id`.\n')
|
|
8905
9151
|
})).describe('An event of type invitation.cancelled, with the shared event fields and its own payload.\n'),zod.object({
|
|
8906
9152
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8907
|
-
"project_id": zod.string().regex(
|
|
9153
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemTwonineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8908
9154
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8909
9155
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8910
9156
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8924,7 +9170,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8924
9170
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8925
9171
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8926
9172
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8927
|
-
"metadata": zod.
|
|
9173
|
+
"metadata": zod.looseObject({
|
|
8928
9174
|
"authorization": zod.object({
|
|
8929
9175
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8930
9176
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8953,13 +9199,13 @@ export const ListEventsResponse = zod.object({
|
|
|
8953
9199
|
}).describe('Fields every `invitation.created` payload carries, whatever its `type`.\n').and(zod.object({
|
|
8954
9200
|
"type": zod.enum(['team_member']),
|
|
8955
9201
|
"team_member": zod.object({
|
|
8956
|
-
"team_id": zod.string().regex(
|
|
9202
|
+
"team_id": zod.string().regex(listEventsResponseEventsItemTwonineTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8957
9203
|
"role": zod.enum(['member']).describe('The team role the accepter receives.')
|
|
8958
9204
|
}).describe('Type-specific input for a `team_member` invitation.')
|
|
8959
9205
|
})).describe('An `invitation.created` payload for a `team_member` invitation.\n')]).describe('Payload for `invitation.created`. The invitation ID is the event\'s\n`entity_id`. Discriminate on `type`; the object named after it says what\nthe invitation\'s link grants. The metadata entered at creation and the\nlink\'s token never appear.\n')
|
|
8960
9206
|
})).describe('An event of type invitation.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
8961
9207
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
8962
|
-
"project_id": zod.string().regex(
|
|
9208
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemThreezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
8963
9209
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
8964
9210
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
8965
9211
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -8979,7 +9225,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8979
9225
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
8980
9226
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
8981
9227
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
8982
|
-
"metadata": zod.
|
|
9228
|
+
"metadata": zod.looseObject({
|
|
8983
9229
|
"authorization": zod.object({
|
|
8984
9230
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
8985
9231
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -8998,7 +9244,7 @@ export const ListEventsResponse = zod.object({
|
|
|
8998
9244
|
}).describe('Payload for `invitation.rejected`. The invitation ID is the event\'s\n`entity_id`, and `user_id` is the user who declined it.\n')
|
|
8999
9245
|
})).describe('An event of type invitation.rejected, with the shared event fields and its own payload.\n'),zod.object({
|
|
9000
9246
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9001
|
-
"project_id": zod.string().regex(
|
|
9247
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemThreeoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9002
9248
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9003
9249
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9004
9250
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9018,7 +9264,45 @@ export const ListEventsResponse = zod.object({
|
|
|
9018
9264
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9019
9265
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9020
9266
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9021
|
-
"metadata": zod.
|
|
9267
|
+
"metadata": zod.looseObject({
|
|
9268
|
+
"authorization": zod.object({
|
|
9269
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9270
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
9271
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject. Every event of such a request carries it.\n'),
|
|
9272
|
+
"client": zod.object({
|
|
9273
|
+
"ip": zod.string().optional().describe('The client IP, from the first `X-Forwarded-For` hop or the remote address.'),
|
|
9274
|
+
"user_agent": zod.string().optional().describe('The observed `User-Agent` header.'),
|
|
9275
|
+
"origin": zod.string().optional().describe('The `Origin` header, when present.')
|
|
9276
|
+
}).optional().describe('The observed HTTP requestor context, set only on events from an API request (`request.api`).')
|
|
9277
|
+
}).optional().describe('Metadata the server records when it emits the event, already redacted when\nwritten. An event from an API request (`request.api`) may set `client`\n(`ip`, `user_agent`, `origin`), so a SIEM can join it on `request_id`. It is\nnot a live risk-evaluator input.\n')
|
|
9278
|
+
}).describe('The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n').and(zod.object({
|
|
9279
|
+
"event_type": zod.literal("oauth_settings.created"),
|
|
9280
|
+
"payload": zod.object({
|
|
9281
|
+
"enabled": zod.boolean().describe('Whether the project\'s OAuth authorization server answers.')
|
|
9282
|
+
}).describe('Payload for `oauth_settings.created`: the settings the new revision holds.\nThe revision id is the event\'s `entity_id`.\n')
|
|
9283
|
+
})).describe('An event of type oauth_settings.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
9284
|
+
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9285
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemThreetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9286
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9287
|
+
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9288
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
9289
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened, on the server\'s clock, to the millisecond.\n'),
|
|
9290
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the event was stored, on the server\'s clock, to the millisecond.\n'),
|
|
9291
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the actor that triggered the event.'),
|
|
9292
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('The kind of actor that triggered the event.'),
|
|
9293
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('The type of resource the event affected.'),
|
|
9294
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the resource the event affected.'),
|
|
9295
|
+
"user_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the user the event concerns, whoever triggered it: the user a\nsession, a token, a sign-in check or a credential belongs to, or the\nuser a change was made to. Absent on an event that concerns no user.\n'),
|
|
9296
|
+
"client_id": zod.string().describe('The application or agent that produced the event.'),
|
|
9297
|
+
"token_id": zod.string().optional().describe('The ID of the token in use when the event was emitted, when there was one.'),
|
|
9298
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('The kind of delegation. Absent when unset.'),
|
|
9299
|
+
"delegation_id": zod.string().optional(),
|
|
9300
|
+
"grantor": zod.string().optional(),
|
|
9301
|
+
"fingerprint": zod.string().optional().describe('A device fingerprint ID that correlates events from the same device.'),
|
|
9302
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9303
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9304
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9305
|
+
"metadata": zod.looseObject({
|
|
9022
9306
|
"authorization": zod.object({
|
|
9023
9307
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9024
9308
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9037,7 +9321,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9037
9321
|
}).describe('Payload for `origin.added` and `origin.removed`.\n')
|
|
9038
9322
|
})).describe('An event of type origin.added, with the shared event fields and its own payload.\n'),zod.object({
|
|
9039
9323
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9040
|
-
"project_id": zod.string().regex(
|
|
9324
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemThreethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9041
9325
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9042
9326
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9043
9327
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9057,7 +9341,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9057
9341
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9058
9342
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9059
9343
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9060
|
-
"metadata": zod.
|
|
9344
|
+
"metadata": zod.looseObject({
|
|
9061
9345
|
"authorization": zod.object({
|
|
9062
9346
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9063
9347
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9076,7 +9360,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9076
9360
|
}).describe('Payload for `origin.added` and `origin.removed`.\n')
|
|
9077
9361
|
})).describe('An event of type origin.removed, with the shared event fields and its own payload.\n'),zod.object({
|
|
9078
9362
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9079
|
-
"project_id": zod.string().regex(
|
|
9363
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemThreefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9080
9364
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9081
9365
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9082
9366
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9096,7 +9380,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9096
9380
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9097
9381
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9098
9382
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9099
|
-
"metadata": zod.
|
|
9383
|
+
"metadata": zod.looseObject({
|
|
9100
9384
|
"authorization": zod.object({
|
|
9101
9385
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9102
9386
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9116,7 +9400,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9116
9400
|
}).describe('Payload for `policy.created`, the first publish of an operation\'s policy,\nand `policy.updated`, every later publish. The policy ID is the event\'s\n`entity_id`. `config` holds the published settings, which are configuration\nvalues, never user data.\n')
|
|
9117
9401
|
})).describe('An event of type policy.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
9118
9402
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9119
|
-
"project_id": zod.string().regex(
|
|
9403
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemThreefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9120
9404
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9121
9405
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9122
9406
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9136,7 +9420,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9136
9420
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9137
9421
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9138
9422
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9139
|
-
"metadata": zod.
|
|
9423
|
+
"metadata": zod.looseObject({
|
|
9140
9424
|
"authorization": zod.object({
|
|
9141
9425
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9142
9426
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9156,7 +9440,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9156
9440
|
}).describe('Payload for `policy.created`, the first publish of an operation\'s policy,\nand `policy.updated`, every later publish. The policy ID is the event\'s\n`entity_id`. `config` holds the published settings, which are configuration\nvalues, never user data.\n')
|
|
9157
9441
|
})).describe('An event of type policy.updated, with the shared event fields and its own payload.\n'),zod.object({
|
|
9158
9442
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9159
|
-
"project_id": zod.string().regex(
|
|
9443
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemThreesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9160
9444
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9161
9445
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9162
9446
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9176,7 +9460,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9176
9460
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9177
9461
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9178
9462
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9179
|
-
"metadata": zod.
|
|
9463
|
+
"metadata": zod.looseObject({
|
|
9180
9464
|
"authorization": zod.object({
|
|
9181
9465
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9182
9466
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9194,7 +9478,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9194
9478
|
}).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
|
|
9195
9479
|
})).describe('An event of type preview.removed, with the shared event fields and its own payload.\n'),zod.object({
|
|
9196
9480
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9197
|
-
"project_id": zod.string().regex(
|
|
9481
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemThreesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9198
9482
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9199
9483
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9200
9484
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9214,7 +9498,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9214
9498
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9215
9499
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9216
9500
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9217
|
-
"metadata": zod.
|
|
9501
|
+
"metadata": zod.looseObject({
|
|
9218
9502
|
"authorization": zod.object({
|
|
9219
9503
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9220
9504
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9237,7 +9521,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9237
9521
|
}).describe('Payload for `project.created`, which holds every field, and\n`project.updated`, which holds only the changed fields.\n')
|
|
9238
9522
|
})).describe('An event of type project.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
9239
9523
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9240
|
-
"project_id": zod.string().regex(
|
|
9524
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemThreeeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9241
9525
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9242
9526
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9243
9527
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9257,7 +9541,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9257
9541
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9258
9542
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9259
9543
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9260
|
-
"metadata": zod.
|
|
9544
|
+
"metadata": zod.looseObject({
|
|
9261
9545
|
"authorization": zod.object({
|
|
9262
9546
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9263
9547
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9275,7 +9559,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9275
9559
|
}).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
|
|
9276
9560
|
})).describe('An event of type project.deleted, with the shared event fields and its own payload.\n'),zod.object({
|
|
9277
9561
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9278
|
-
"project_id": zod.string().regex(
|
|
9562
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemThreenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9279
9563
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9280
9564
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9281
9565
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9295,7 +9579,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9295
9579
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9296
9580
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9297
9581
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9298
|
-
"metadata": zod.
|
|
9582
|
+
"metadata": zod.looseObject({
|
|
9299
9583
|
"authorization": zod.object({
|
|
9300
9584
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9301
9585
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9318,7 +9602,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9318
9602
|
}).describe('Payload for `project.created`, which holds every field, and\n`project.updated`, which holds only the changed fields.\n')
|
|
9319
9603
|
})).describe('An event of type project.updated, with the shared event fields and its own payload.\n'),zod.object({
|
|
9320
9604
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9321
|
-
"project_id": zod.string().regex(
|
|
9605
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemFourzeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9322
9606
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9323
9607
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9324
9608
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9338,7 +9622,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9338
9622
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9339
9623
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9340
9624
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9341
|
-
"metadata": zod.
|
|
9625
|
+
"metadata": zod.looseObject({
|
|
9342
9626
|
"authorization": zod.object({
|
|
9343
9627
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9344
9628
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9364,7 +9648,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9364
9648
|
}).describe('Payload for `release.created`. The release ID is the event\'s `entity_id`.\nThe payload repeats the pinned set, the revisions the\n[release](https://preview.zitadel.com/docs/concepts/repo-config) freezes, so the event stream shows\nwhat a release contained without reading the release itself.\n')
|
|
9365
9649
|
})).describe('An event of type release.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
9366
9650
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9367
|
-
"project_id": zod.string().regex(
|
|
9651
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemFouroneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9368
9652
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9369
9653
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9370
9654
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9384,7 +9668,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9384
9668
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9385
9669
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9386
9670
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9387
|
-
"metadata": zod.
|
|
9671
|
+
"metadata": zod.looseObject({
|
|
9388
9672
|
"authorization": zod.object({
|
|
9389
9673
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9390
9674
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9398,11 +9682,11 @@ export const ListEventsResponse = zod.object({
|
|
|
9398
9682
|
}).describe('The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n').and(zod.object({
|
|
9399
9683
|
"event_type": zod.literal("release.revoked"),
|
|
9400
9684
|
"payload": zod.object({
|
|
9401
|
-
"content_hash": zod.string().min(
|
|
9685
|
+
"content_hash": zod.string().min(listEventsResponseEventsItemFouroneTwoPayloadContentHashMin).max(listEventsResponseEventsItemFouroneTwoPayloadContentHashMax).regex(listEventsResponseEventsItemFouroneTwoPayloadContentHashRegExp, "must be sha256: followed by 64 lowercase hex digits").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`, `idp` or `oauth`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding and oauth, or the identity provider\'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')
|
|
9402
9686
|
}).describe('Payload for `release.revoked`. The release ID is the event\'s `entity_id`.\nThe payload repeats the content hash, which is how the CLI prints a\n[release](https://preview.zitadel.com/docs/concepts/repo-config) and how builds pin it.\n')
|
|
9403
9687
|
})).describe('An event of type release.revoked, with the shared event fields and its own payload.\n'),zod.object({
|
|
9404
9688
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9405
|
-
"project_id": zod.string().regex(
|
|
9689
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemFourtwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9406
9690
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9407
9691
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9408
9692
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9422,7 +9706,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9422
9706
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9423
9707
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9424
9708
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9425
|
-
"metadata": zod.
|
|
9709
|
+
"metadata": zod.looseObject({
|
|
9426
9710
|
"authorization": zod.object({
|
|
9427
9711
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9428
9712
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9439,12 +9723,12 @@ export const ListEventsResponse = zod.object({
|
|
|
9439
9723
|
"operation_id": zod.string(),
|
|
9440
9724
|
"method": zod.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS']).describe('HTTP method.'),
|
|
9441
9725
|
"route_template": zod.string(),
|
|
9442
|
-
"status": zod.int().min(
|
|
9443
|
-
"duration_ms": zod.int().min(
|
|
9726
|
+
"status": zod.int().min(listEventsResponseEventsItemFourtwoTwoPayloadStatusMin).max(listEventsResponseEventsItemFourtwoTwoPayloadStatusMax),
|
|
9727
|
+
"duration_ms": zod.int().min(listEventsResponseEventsItemFourtwoTwoPayloadDurationMsMin)
|
|
9444
9728
|
}).describe('Payload for `request.api` events.')
|
|
9445
9729
|
})).describe('An event of type request.api, with the shared event fields and its own payload.\n'),zod.object({
|
|
9446
9730
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9447
|
-
"project_id": zod.string().regex(
|
|
9731
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemFourthreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9448
9732
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9449
9733
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9450
9734
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9464,7 +9748,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9464
9748
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9465
9749
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9466
9750
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9467
|
-
"metadata": zod.
|
|
9751
|
+
"metadata": zod.looseObject({
|
|
9468
9752
|
"authorization": zod.object({
|
|
9469
9753
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9470
9754
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9483,7 +9767,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9483
9767
|
}).describe('Payload for `schema.created`. It leaves out the schema document, which the\ncustomer writes and which has no size bound; the event\'s `entity_id`\nidentifies the schema that was created.\n')
|
|
9484
9768
|
})).describe('An event of type schema.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
9485
9769
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9486
|
-
"project_id": zod.string().regex(
|
|
9770
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemFourfourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9487
9771
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9488
9772
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9489
9773
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9503,7 +9787,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9503
9787
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9504
9788
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9505
9789
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9506
|
-
"metadata": zod.
|
|
9790
|
+
"metadata": zod.looseObject({
|
|
9507
9791
|
"authorization": zod.object({
|
|
9508
9792
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9509
9793
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9521,7 +9805,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9521
9805
|
}).describe('Payload for `session.deleted` events.')
|
|
9522
9806
|
})).describe('An event of type session.deleted, with the shared event fields and its own payload.\n'),zod.object({
|
|
9523
9807
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9524
|
-
"project_id": zod.string().regex(
|
|
9808
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemFourfiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9525
9809
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9526
9810
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9527
9811
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9541,7 +9825,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9541
9825
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9542
9826
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9543
9827
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9544
|
-
"metadata": zod.
|
|
9828
|
+
"metadata": zod.looseObject({
|
|
9545
9829
|
"authorization": zod.object({
|
|
9546
9830
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9547
9831
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9559,7 +9843,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9559
9843
|
}).describe('Payload for `session.established` events.')
|
|
9560
9844
|
})).describe('An event of type session.established, with the shared event fields and its own payload.\n'),zod.object({
|
|
9561
9845
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9562
|
-
"project_id": zod.string().regex(
|
|
9846
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemFoursixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9563
9847
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9564
9848
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9565
9849
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9579,7 +9863,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9579
9863
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9580
9864
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9581
9865
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9582
|
-
"metadata": zod.
|
|
9866
|
+
"metadata": zod.looseObject({
|
|
9583
9867
|
"authorization": zod.object({
|
|
9584
9868
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9585
9869
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9597,7 +9881,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9597
9881
|
}).describe('Payload for `team.created`, which holds every field, and `team.updated`,\nwhich holds only the changed fields.\n')
|
|
9598
9882
|
})).describe('An event of type team.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
9599
9883
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9600
|
-
"project_id": zod.string().regex(
|
|
9884
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemFoursevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9601
9885
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9602
9886
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9603
9887
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9617,7 +9901,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9617
9901
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9618
9902
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9619
9903
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9620
|
-
"metadata": zod.
|
|
9904
|
+
"metadata": zod.looseObject({
|
|
9621
9905
|
"authorization": zod.object({
|
|
9622
9906
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9623
9907
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9635,7 +9919,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9635
9919
|
}).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
|
|
9636
9920
|
})).describe('An event of type team.deactivated, with the shared event fields and its own payload.\n'),zod.object({
|
|
9637
9921
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9638
|
-
"project_id": zod.string().regex(
|
|
9922
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemFoureightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9639
9923
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9640
9924
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9641
9925
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9655,7 +9939,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9655
9939
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9656
9940
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9657
9941
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9658
|
-
"metadata": zod.
|
|
9942
|
+
"metadata": zod.looseObject({
|
|
9659
9943
|
"authorization": zod.object({
|
|
9660
9944
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9661
9945
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9673,7 +9957,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9673
9957
|
}).describe('Payload for `team.created`, which holds every field, and `team.updated`,\nwhich holds only the changed fields.\n')
|
|
9674
9958
|
})).describe('An event of type team.updated, with the shared event fields and its own payload.\n'),zod.object({
|
|
9675
9959
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9676
|
-
"project_id": zod.string().regex(
|
|
9960
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemFournineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9677
9961
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9678
9962
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9679
9963
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9693,7 +9977,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9693
9977
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9694
9978
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9695
9979
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9696
|
-
"metadata": zod.
|
|
9980
|
+
"metadata": zod.looseObject({
|
|
9697
9981
|
"authorization": zod.object({
|
|
9698
9982
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9699
9983
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9711,7 +9995,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9711
9995
|
}).describe('Payload for `user.create.failed` events.')
|
|
9712
9996
|
})).describe('An event of type user.create.failed, with the shared event fields and its own payload.\n'),zod.object({
|
|
9713
9997
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9714
|
-
"project_id": zod.string().regex(
|
|
9998
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemFivezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9715
9999
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9716
10000
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9717
10001
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9731,7 +10015,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9731
10015
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9732
10016
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9733
10017
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9734
|
-
"metadata": zod.
|
|
10018
|
+
"metadata": zod.looseObject({
|
|
9735
10019
|
"authorization": zod.object({
|
|
9736
10020
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9737
10021
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9751,7 +10035,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9751
10035
|
}).describe('Payload for `user.created`. The user\'s ID is the event\'s `entity_id`;\nattribute values appear only for schema fields marked `x-audit`.\n')
|
|
9752
10036
|
})).describe('An event of type user.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
9753
10037
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9754
|
-
"project_id": zod.string().regex(
|
|
10038
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemFiveoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9755
10039
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9756
10040
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9757
10041
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9771,7 +10055,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9771
10055
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9772
10056
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9773
10057
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9774
|
-
"metadata": zod.
|
|
10058
|
+
"metadata": zod.looseObject({
|
|
9775
10059
|
"authorization": zod.object({
|
|
9776
10060
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9777
10061
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9789,7 +10073,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9789
10073
|
}).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
|
|
9790
10074
|
})).describe('An event of type user.deleted, with the shared event fields and its own payload.\n'),zod.object({
|
|
9791
10075
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9792
|
-
"project_id": zod.string().regex(
|
|
10076
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemFivetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9793
10077
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9794
10078
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9795
10079
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9809,7 +10093,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9809
10093
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9810
10094
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9811
10095
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9812
|
-
"metadata": zod.
|
|
10096
|
+
"metadata": zod.looseObject({
|
|
9813
10097
|
"authorization": zod.object({
|
|
9814
10098
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9815
10099
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9828,7 +10112,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9828
10112
|
}).describe('Payload for `user.updated`. The attribute rules are those of `user.created`:\nthe keys written, plus values only for fields marked `x-audit`.\n')
|
|
9829
10113
|
})).describe('An event of type user.updated, with the shared event fields and its own payload.\n'),zod.object({
|
|
9830
10114
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9831
|
-
"project_id": zod.string().regex(
|
|
10115
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemFivethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9832
10116
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9833
10117
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9834
10118
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9848,7 +10132,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9848
10132
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9849
10133
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9850
10134
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9851
|
-
"metadata": zod.
|
|
10135
|
+
"metadata": zod.looseObject({
|
|
9852
10136
|
"authorization": zod.object({
|
|
9853
10137
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9854
10138
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9866,7 +10150,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9866
10150
|
}).describe('Payload for `variable.removed` events, one value of the variable removed.')
|
|
9867
10151
|
})).describe('An event of type variable.removed, with the shared event fields and its own payload.\n'),zod.object({
|
|
9868
10152
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
9869
|
-
"project_id": zod.string().regex(
|
|
10153
|
+
"project_id": zod.string().regex(listEventsResponseEventsItemFivefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
9870
10154
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
9871
10155
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
9872
10156
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -9886,7 +10170,7 @@ export const ListEventsResponse = zod.object({
|
|
|
9886
10170
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
9887
10171
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
9888
10172
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
9889
|
-
"metadata": zod.
|
|
10173
|
+
"metadata": zod.looseObject({
|
|
9890
10174
|
"authorization": zod.object({
|
|
9891
10175
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
9892
10176
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -9958,11 +10242,11 @@ export const getEventResponseTwothreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-
|
|
|
9958
10242
|
export const getEventResponseTwofourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9959
10243
|
export const getEventResponseTwofiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9960
10244
|
export const getEventResponseTwosixOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9961
|
-
export const getEventResponseTwosixTwoPayloadTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9962
10245
|
export const getEventResponseTwosevenOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
10246
|
+
export const getEventResponseTwosevenTwoPayloadTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9963
10247
|
export const getEventResponseTwoeightOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9964
|
-
export const getEventResponseTwoeightTwoPayloadTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9965
10248
|
export const getEventResponseTwonineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
10249
|
+
export const getEventResponseTwonineTwoPayloadTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9966
10250
|
export const getEventResponseThreezeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9967
10251
|
export const getEventResponseThreeoneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9968
10252
|
export const getEventResponseThreetwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -9973,19 +10257,19 @@ export const getEventResponseThreesixOneProjectIdRegExp = new RegExp('^[a-zA-Z0-
|
|
|
9973
10257
|
export const getEventResponseThreesevenOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9974
10258
|
export const getEventResponseThreeeightOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9975
10259
|
export const getEventResponseThreenineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9976
|
-
export const getEventResponseThreenineTwoPayloadContentHashMin = 71;
|
|
9977
|
-
export const getEventResponseThreenineTwoPayloadContentHashMax = 71;
|
|
9978
|
-
|
|
9979
|
-
|
|
9980
|
-
export const getEventResponseThreenineTwoPayloadContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
9981
10260
|
export const getEventResponseFourzeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9982
|
-
export const
|
|
9983
|
-
export const
|
|
10261
|
+
export const getEventResponseFouroneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
10262
|
+
export const getEventResponseFouroneTwoPayloadContentHashMin = 71;
|
|
10263
|
+
export const getEventResponseFouroneTwoPayloadContentHashMax = 71;
|
|
9984
10264
|
|
|
9985
|
-
export const getEventResponseFourzeroTwoPayloadDurationMsMin = 0;
|
|
9986
10265
|
|
|
9987
|
-
export const
|
|
10266
|
+
export const getEventResponseFouroneTwoPayloadContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
|
|
9988
10267
|
export const getEventResponseFourtwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
10268
|
+
export const getEventResponseFourtwoTwoPayloadStatusMin = 100;
|
|
10269
|
+
export const getEventResponseFourtwoTwoPayloadStatusMax = 599;
|
|
10270
|
+
|
|
10271
|
+
export const getEventResponseFourtwoTwoPayloadDurationMsMin = 0;
|
|
10272
|
+
|
|
9989
10273
|
export const getEventResponseFourthreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9990
10274
|
export const getEventResponseFourfourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9991
10275
|
export const getEventResponseFourfiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
@@ -9996,6 +10280,8 @@ export const getEventResponseFournineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-
|
|
|
9996
10280
|
export const getEventResponseFivezeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9997
10281
|
export const getEventResponseFiveoneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9998
10282
|
export const getEventResponseFivetwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
10283
|
+
export const getEventResponseFivethreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
10284
|
+
export const getEventResponseFivefourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
|
|
9999
10285
|
|
|
10000
10286
|
|
|
10001
10287
|
export const GetEventResponse = zod.union([zod.object({
|
|
@@ -10020,7 +10306,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10020
10306
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10021
10307
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10022
10308
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10023
|
-
"metadata": zod.
|
|
10309
|
+
"metadata": zod.looseObject({
|
|
10024
10310
|
"authorization": zod.object({
|
|
10025
10311
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10026
10312
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10061,7 +10347,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10061
10347
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10062
10348
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10063
10349
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10064
|
-
"metadata": zod.
|
|
10350
|
+
"metadata": zod.looseObject({
|
|
10065
10351
|
"authorization": zod.object({
|
|
10066
10352
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10067
10353
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10102,7 +10388,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10102
10388
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10103
10389
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10104
10390
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10105
|
-
"metadata": zod.
|
|
10391
|
+
"metadata": zod.looseObject({
|
|
10106
10392
|
"authorization": zod.object({
|
|
10107
10393
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10108
10394
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10140,7 +10426,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10140
10426
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10141
10427
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10142
10428
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10143
|
-
"metadata": zod.
|
|
10429
|
+
"metadata": zod.looseObject({
|
|
10144
10430
|
"authorization": zod.object({
|
|
10145
10431
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10146
10432
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10178,7 +10464,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10178
10464
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10179
10465
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10180
10466
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10181
|
-
"metadata": zod.
|
|
10467
|
+
"metadata": zod.looseObject({
|
|
10182
10468
|
"authorization": zod.object({
|
|
10183
10469
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10184
10470
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10218,7 +10504,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10218
10504
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10219
10505
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10220
10506
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10221
|
-
"metadata": zod.
|
|
10507
|
+
"metadata": zod.looseObject({
|
|
10222
10508
|
"authorization": zod.object({
|
|
10223
10509
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10224
10510
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10258,7 +10544,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10258
10544
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10259
10545
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10260
10546
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10261
|
-
"metadata": zod.
|
|
10547
|
+
"metadata": zod.looseObject({
|
|
10262
10548
|
"authorization": zod.object({
|
|
10263
10549
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10264
10550
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10297,7 +10583,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10297
10583
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10298
10584
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10299
10585
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10300
|
-
"metadata": zod.
|
|
10586
|
+
"metadata": zod.looseObject({
|
|
10301
10587
|
"authorization": zod.object({
|
|
10302
10588
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10303
10589
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10336,7 +10622,45 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10336
10622
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10337
10623
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10338
10624
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10339
|
-
"metadata": zod.
|
|
10625
|
+
"metadata": zod.looseObject({
|
|
10626
|
+
"authorization": zod.object({
|
|
10627
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10628
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
10629
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject. Every event of such a request carries it.\n'),
|
|
10630
|
+
"client": zod.object({
|
|
10631
|
+
"ip": zod.string().optional().describe('The client IP, from the first `X-Forwarded-For` hop or the remote address.'),
|
|
10632
|
+
"user_agent": zod.string().optional().describe('The observed `User-Agent` header.'),
|
|
10633
|
+
"origin": zod.string().optional().describe('The `Origin` header, when present.')
|
|
10634
|
+
}).optional().describe('The observed HTTP requestor context, set only on events from an API request (`request.api`).')
|
|
10635
|
+
}).optional().describe('Metadata the server records when it emits the event, already redacted when\nwritten. An event from an API request (`request.api`) may set `client`\n(`ip`, `user_agent`, `origin`), so a SIEM can join it on `request_id`. It is\nnot a live risk-evaluator input.\n')
|
|
10636
|
+
}).describe('The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n').and(zod.object({
|
|
10637
|
+
"event_type": zod.literal("auth.request.created"),
|
|
10638
|
+
"payload": zod.object({
|
|
10639
|
+
"client_id": zod.string()
|
|
10640
|
+
}).describe('Payload for `auth.request.created` events.')
|
|
10641
|
+
})).describe('An event of type auth.request.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
10642
|
+
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10643
|
+
"project_id": zod.string().regex(getEventResponseOnezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10644
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10645
|
+
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10646
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
10647
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened, on the server\'s clock, to the millisecond.\n'),
|
|
10648
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the event was stored, on the server\'s clock, to the millisecond.\n'),
|
|
10649
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the actor that triggered the event.'),
|
|
10650
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('The kind of actor that triggered the event.'),
|
|
10651
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('The type of resource the event affected.'),
|
|
10652
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the resource the event affected.'),
|
|
10653
|
+
"user_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the user the event concerns, whoever triggered it: the user a\nsession, a token, a sign-in check or a credential belongs to, or the\nuser a change was made to. Absent on an event that concerns no user.\n'),
|
|
10654
|
+
"client_id": zod.string().describe('The application or agent that produced the event.'),
|
|
10655
|
+
"token_id": zod.string().optional().describe('The ID of the token in use when the event was emitted, when there was one.'),
|
|
10656
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('The kind of delegation. Absent when unset.'),
|
|
10657
|
+
"delegation_id": zod.string().optional(),
|
|
10658
|
+
"grantor": zod.string().optional(),
|
|
10659
|
+
"fingerprint": zod.string().optional().describe('A device fingerprint ID that correlates events from the same device.'),
|
|
10660
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10661
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10662
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10663
|
+
"metadata": zod.looseObject({
|
|
10340
10664
|
"authorization": zod.object({
|
|
10341
10665
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10342
10666
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10356,7 +10680,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10356
10680
|
}).describe('Payload for `auth.check.failed`, `auth.check.succeeded`,\n`auth.sso.authorization.failed`, `auth.sso.exchange.failed` and\n`auth.sso.exchange.succeeded`.\n`auth_attempt_id` joins the check to its authentication attempt, so a SIEM\ntool can correlate them.\n')
|
|
10357
10681
|
})).describe('An event of type auth.sso.authorization.failed, with the shared event fields and its own payload.\n'),zod.object({
|
|
10358
10682
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10359
|
-
"project_id": zod.string().regex(
|
|
10683
|
+
"project_id": zod.string().regex(getEventResponseOneoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10360
10684
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10361
10685
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10362
10686
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -10376,7 +10700,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10376
10700
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10377
10701
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10378
10702
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10379
|
-
"metadata": zod.
|
|
10703
|
+
"metadata": zod.looseObject({
|
|
10380
10704
|
"authorization": zod.object({
|
|
10381
10705
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10382
10706
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10396,7 +10720,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10396
10720
|
}).describe('Payload for `auth.check.failed`, `auth.check.succeeded`,\n`auth.sso.authorization.failed`, `auth.sso.exchange.failed` and\n`auth.sso.exchange.succeeded`.\n`auth_attempt_id` joins the check to its authentication attempt, so a SIEM\ntool can correlate them.\n')
|
|
10397
10721
|
})).describe('An event of type auth.sso.exchange.failed, with the shared event fields and its own payload.\n'),zod.object({
|
|
10398
10722
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10399
|
-
"project_id": zod.string().regex(
|
|
10723
|
+
"project_id": zod.string().regex(getEventResponseOnetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10400
10724
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10401
10725
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10402
10726
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -10416,7 +10740,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10416
10740
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10417
10741
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10418
10742
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10419
|
-
"metadata": zod.
|
|
10743
|
+
"metadata": zod.looseObject({
|
|
10420
10744
|
"authorization": zod.object({
|
|
10421
10745
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10422
10746
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10436,7 +10760,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10436
10760
|
}).describe('Payload for `auth.check.failed`, `auth.check.succeeded`,\n`auth.sso.authorization.failed`, `auth.sso.exchange.failed` and\n`auth.sso.exchange.succeeded`.\n`auth_attempt_id` joins the check to its authentication attempt, so a SIEM\ntool can correlate them.\n')
|
|
10437
10761
|
})).describe('An event of type auth.sso.exchange.succeeded, with the shared event fields and its own payload.\n'),zod.object({
|
|
10438
10762
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10439
|
-
"project_id": zod.string().regex(
|
|
10763
|
+
"project_id": zod.string().regex(getEventResponseOnethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10440
10764
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10441
10765
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10442
10766
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -10456,7 +10780,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10456
10780
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10457
10781
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10458
10782
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10459
|
-
"metadata": zod.
|
|
10783
|
+
"metadata": zod.looseObject({
|
|
10460
10784
|
"authorization": zod.object({
|
|
10461
10785
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10462
10786
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10474,7 +10798,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10474
10798
|
}).describe('Payload for `auth.token.issued` events.')
|
|
10475
10799
|
})).describe('An event of type auth.token.issued, with the shared event fields and its own payload.\n'),zod.object({
|
|
10476
10800
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10477
|
-
"project_id": zod.string().regex(
|
|
10801
|
+
"project_id": zod.string().regex(getEventResponseOnefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10478
10802
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10479
10803
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10480
10804
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -10494,7 +10818,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10494
10818
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10495
10819
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10496
10820
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10497
|
-
"metadata": zod.
|
|
10821
|
+
"metadata": zod.looseObject({
|
|
10498
10822
|
"authorization": zod.object({
|
|
10499
10823
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10500
10824
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10512,7 +10836,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10512
10836
|
}).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
|
|
10513
10837
|
})).describe('An event of type auth.token.revoked, with the shared event fields and its own payload.\n'),zod.object({
|
|
10514
10838
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10515
|
-
"project_id": zod.string().regex(
|
|
10839
|
+
"project_id": zod.string().regex(getEventResponseOnefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10516
10840
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10517
10841
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10518
10842
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -10532,7 +10856,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10532
10856
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10533
10857
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10534
10858
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10535
|
-
"metadata": zod.
|
|
10859
|
+
"metadata": zod.looseObject({
|
|
10536
10860
|
"authorization": zod.object({
|
|
10537
10861
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10538
10862
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10552,7 +10876,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10552
10876
|
}).describe('Payload for `authz.granted` events.')
|
|
10553
10877
|
})).describe('An event of type authz.granted, with the shared event fields and its own payload.\n'),zod.object({
|
|
10554
10878
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10555
|
-
"project_id": zod.string().regex(
|
|
10879
|
+
"project_id": zod.string().regex(getEventResponseOnesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10556
10880
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10557
10881
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10558
10882
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -10572,7 +10896,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10572
10896
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10573
10897
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10574
10898
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10575
|
-
"metadata": zod.
|
|
10899
|
+
"metadata": zod.looseObject({
|
|
10576
10900
|
"authorization": zod.object({
|
|
10577
10901
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10578
10902
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10592,7 +10916,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10592
10916
|
}).describe('Payload for `authz.granted` events.')
|
|
10593
10917
|
})).describe('An event of type authz.revoked, with the shared event fields and its own payload.\n'),zod.object({
|
|
10594
10918
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10595
|
-
"project_id": zod.string().regex(
|
|
10919
|
+
"project_id": zod.string().regex(getEventResponseOnesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10596
10920
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10597
10921
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10598
10922
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -10612,7 +10936,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10612
10936
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10613
10937
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10614
10938
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10615
|
-
"metadata": zod.
|
|
10939
|
+
"metadata": zod.looseObject({
|
|
10616
10940
|
"authorization": zod.object({
|
|
10617
10941
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10618
10942
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10633,7 +10957,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10633
10957
|
}).describe('Payload for `branding.created`. It holds only the fields listed here and\nleaves out `liquid_template`.\n')
|
|
10634
10958
|
})).describe('An event of type branding.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
10635
10959
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10636
|
-
"project_id": zod.string().regex(
|
|
10960
|
+
"project_id": zod.string().regex(getEventResponseOneeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10637
10961
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10638
10962
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10639
10963
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -10653,7 +10977,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10653
10977
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10654
10978
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10655
10979
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10656
|
-
"metadata": zod.
|
|
10980
|
+
"metadata": zod.looseObject({
|
|
10657
10981
|
"authorization": zod.object({
|
|
10658
10982
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10659
10983
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10675,7 +10999,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10675
10999
|
}).describe('Payload for `deployment.created`. The deployment ID is the event\'s\n`entity_id`; the fields here say which release went live on which origins.\n')
|
|
10676
11000
|
})).describe('An event of type deployment.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
10677
11001
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10678
|
-
"project_id": zod.string().regex(
|
|
11002
|
+
"project_id": zod.string().regex(getEventResponseOnenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10679
11003
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10680
11004
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10681
11005
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -10695,7 +11019,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10695
11019
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10696
11020
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10697
11021
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10698
|
-
"metadata": zod.
|
|
11022
|
+
"metadata": zod.looseObject({
|
|
10699
11023
|
"authorization": zod.object({
|
|
10700
11024
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10701
11025
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10713,7 +11037,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10713
11037
|
}).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
|
|
10714
11038
|
})).describe('An event of type flow.signup_challenge.consumed, with the shared event fields and its own payload.\n'),zod.object({
|
|
10715
11039
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10716
|
-
"project_id": zod.string().regex(
|
|
11040
|
+
"project_id": zod.string().regex(getEventResponseTwozeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10717
11041
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10718
11042
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10719
11043
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -10733,7 +11057,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10733
11057
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10734
11058
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10735
11059
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10736
|
-
"metadata": zod.
|
|
11060
|
+
"metadata": zod.looseObject({
|
|
10737
11061
|
"authorization": zod.object({
|
|
10738
11062
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10739
11063
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10751,7 +11075,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10751
11075
|
}).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
|
|
10752
11076
|
})).describe('An event of type flow.signup_challenge.issued, with the shared event fields and its own payload.\n'),zod.object({
|
|
10753
11077
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10754
|
-
"project_id": zod.string().regex(
|
|
11078
|
+
"project_id": zod.string().regex(getEventResponseTwooneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10755
11079
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10756
11080
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10757
11081
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -10771,7 +11095,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10771
11095
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10772
11096
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10773
11097
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10774
|
-
"metadata": zod.
|
|
11098
|
+
"metadata": zod.looseObject({
|
|
10775
11099
|
"authorization": zod.object({
|
|
10776
11100
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10777
11101
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10795,7 +11119,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10795
11119
|
}).describe('Payload for `flowdef.created`: the fields of the created flow definition\nrevision, without its steps. The retired `flowdef.updated` event carries the\nchanged fields in the same shape.\n')
|
|
10796
11120
|
})).describe('An event of type flowdef.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
10797
11121
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10798
|
-
"project_id": zod.string().regex(
|
|
11122
|
+
"project_id": zod.string().regex(getEventResponseTwotwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10799
11123
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10800
11124
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10801
11125
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -10815,7 +11139,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10815
11139
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10816
11140
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10817
11141
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10818
|
-
"metadata": zod.
|
|
11142
|
+
"metadata": zod.looseObject({
|
|
10819
11143
|
"authorization": zod.object({
|
|
10820
11144
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10821
11145
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10833,7 +11157,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10833
11157
|
}).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
|
|
10834
11158
|
})).describe('An event of type flowdef.deleted, with the shared event fields and its own payload.\n'),zod.object({
|
|
10835
11159
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10836
|
-
"project_id": zod.string().regex(
|
|
11160
|
+
"project_id": zod.string().regex(getEventResponseTwothreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10837
11161
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10838
11162
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10839
11163
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -10853,7 +11177,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10853
11177
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10854
11178
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10855
11179
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10856
|
-
"metadata": zod.
|
|
11180
|
+
"metadata": zod.looseObject({
|
|
10857
11181
|
"authorization": zod.object({
|
|
10858
11182
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10859
11183
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10877,7 +11201,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10877
11201
|
}).describe('Payload for `flowdef.created`: the fields of the created flow definition\nrevision, without its steps. The retired `flowdef.updated` event carries the\nchanged fields in the same shape.\n')
|
|
10878
11202
|
})).describe('An event of type flowdef.updated, with the shared event fields and its own payload.\n'),zod.object({
|
|
10879
11203
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10880
|
-
"project_id": zod.string().regex(
|
|
11204
|
+
"project_id": zod.string().regex(getEventResponseTwofourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10881
11205
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10882
11206
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10883
11207
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -10897,7 +11221,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10897
11221
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10898
11222
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10899
11223
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10900
|
-
"metadata": zod.
|
|
11224
|
+
"metadata": zod.looseObject({
|
|
10901
11225
|
"authorization": zod.object({
|
|
10902
11226
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10903
11227
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10919,7 +11243,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10919
11243
|
}).describe('Payload for `idp.created`, which holds every field, and `idp.updated`, which\nholds only the changed fields plus the new `revision_id`. The identity\nprovider (IdP) connection ID is the event\'s `entity_id`. The connection\ndocument, and with it the reference to its `client_secret`, is never\nincluded.\n')
|
|
10920
11244
|
})).describe('An event of type idp.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
10921
11245
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10922
|
-
"project_id": zod.string().regex(
|
|
11246
|
+
"project_id": zod.string().regex(getEventResponseTwofiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10923
11247
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10924
11248
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10925
11249
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -10939,7 +11263,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10939
11263
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10940
11264
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10941
11265
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10942
|
-
"metadata": zod.
|
|
11266
|
+
"metadata": zod.looseObject({
|
|
10943
11267
|
"authorization": zod.object({
|
|
10944
11268
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10945
11269
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -10958,7 +11282,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10958
11282
|
}).describe('Payload for `idp.identity_link.created`, sent when a sign-in through an\nidentity provider (IdP) creates a user and links the provider account to it.\nThe link ID is the event\'s `entity_id`. The provider\'s subject and claims, the\nprofile data it sends about the account, are never included.\n')
|
|
10959
11283
|
})).describe('An event of type idp.identity_link.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
10960
11284
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
10961
|
-
"project_id": zod.string().regex(
|
|
11285
|
+
"project_id": zod.string().regex(getEventResponseTwosixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
10962
11286
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
10963
11287
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
10964
11288
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -10978,7 +11302,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
10978
11302
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
10979
11303
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
10980
11304
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
10981
|
-
"metadata": zod.
|
|
11305
|
+
"metadata": zod.looseObject({
|
|
10982
11306
|
"authorization": zod.object({
|
|
10983
11307
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
10984
11308
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11000,7 +11324,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11000
11324
|
}).describe('Payload for `idp.created`, which holds every field, and `idp.updated`, which\nholds only the changed fields plus the new `revision_id`. The identity\nprovider (IdP) connection ID is the event\'s `entity_id`. The connection\ndocument, and with it the reference to its `client_secret`, is never\nincluded.\n')
|
|
11001
11325
|
})).describe('An event of type idp.updated, with the shared event fields and its own payload.\n'),zod.object({
|
|
11002
11326
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11003
|
-
"project_id": zod.string().regex(
|
|
11327
|
+
"project_id": zod.string().regex(getEventResponseTwosevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11004
11328
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11005
11329
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11006
11330
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11020,7 +11344,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11020
11344
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11021
11345
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11022
11346
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11023
|
-
"metadata": zod.
|
|
11347
|
+
"metadata": zod.looseObject({
|
|
11024
11348
|
"authorization": zod.object({
|
|
11025
11349
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11026
11350
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11047,13 +11371,13 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11047
11371
|
}).describe('Fields every `invitation.accepted` payload carries, whatever its `type`.\n').and(zod.object({
|
|
11048
11372
|
"type": zod.enum(['team_member']),
|
|
11049
11373
|
"team_member": zod.object({
|
|
11050
|
-
"team_id": zod.string().regex(
|
|
11374
|
+
"team_id": zod.string().regex(getEventResponseTwosevenTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11051
11375
|
"role": zod.enum(['member']).describe('The team role the accepter receives.')
|
|
11052
11376
|
}).describe('Type-specific input for a `team_member` invitation.')
|
|
11053
11377
|
})).describe('An `invitation.accepted` payload for a `team_member` invitation.\n')]).describe('Payload for `invitation.accepted`. The invitation ID is the event\'s\n`entity_id`, and `user_id` is the user who redeemed the link. Discriminate\non `type`; the object named after it says what the invitation granted. Grant\nevents the acceptance writes, such as `authz.granted`, carry this event\'s\n`request_id`. There are none when the user already holds an identical\nactive grant.\n')
|
|
11054
11378
|
})).describe('An event of type invitation.accepted, with the shared event fields and its own payload.\n'),zod.object({
|
|
11055
11379
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11056
|
-
"project_id": zod.string().regex(
|
|
11380
|
+
"project_id": zod.string().regex(getEventResponseTwoeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11057
11381
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11058
11382
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11059
11383
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11073,7 +11397,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11073
11397
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11074
11398
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11075
11399
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11076
|
-
"metadata": zod.
|
|
11400
|
+
"metadata": zod.looseObject({
|
|
11077
11401
|
"authorization": zod.object({
|
|
11078
11402
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11079
11403
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11096,7 +11420,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11096
11420
|
}).describe('An `invitation.cancelled` payload for an invitation a replacement\ncancelled.\n')]).describe('Payload for `invitation.cancelled`. The invitation ID is the event\'s\n`entity_id`. Discriminate on `reason`: `cancelled` when an administrator\ncancelled it, `replaced` when a replacement cancelled it, which then names\nthe replacement in `replaced_by_invitation_id`.\n')
|
|
11097
11421
|
})).describe('An event of type invitation.cancelled, with the shared event fields and its own payload.\n'),zod.object({
|
|
11098
11422
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11099
|
-
"project_id": zod.string().regex(
|
|
11423
|
+
"project_id": zod.string().regex(getEventResponseTwonineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11100
11424
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11101
11425
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11102
11426
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11116,7 +11440,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11116
11440
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11117
11441
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11118
11442
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11119
|
-
"metadata": zod.
|
|
11443
|
+
"metadata": zod.looseObject({
|
|
11120
11444
|
"authorization": zod.object({
|
|
11121
11445
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11122
11446
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11145,13 +11469,13 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11145
11469
|
}).describe('Fields every `invitation.created` payload carries, whatever its `type`.\n').and(zod.object({
|
|
11146
11470
|
"type": zod.enum(['team_member']),
|
|
11147
11471
|
"team_member": zod.object({
|
|
11148
|
-
"team_id": zod.string().regex(
|
|
11472
|
+
"team_id": zod.string().regex(getEventResponseTwonineTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11149
11473
|
"role": zod.enum(['member']).describe('The team role the accepter receives.')
|
|
11150
11474
|
}).describe('Type-specific input for a `team_member` invitation.')
|
|
11151
11475
|
})).describe('An `invitation.created` payload for a `team_member` invitation.\n')]).describe('Payload for `invitation.created`. The invitation ID is the event\'s\n`entity_id`. Discriminate on `type`; the object named after it says what\nthe invitation\'s link grants. The metadata entered at creation and the\nlink\'s token never appear.\n')
|
|
11152
11476
|
})).describe('An event of type invitation.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
11153
11477
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11154
|
-
"project_id": zod.string().regex(
|
|
11478
|
+
"project_id": zod.string().regex(getEventResponseThreezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11155
11479
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11156
11480
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11157
11481
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11171,7 +11495,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11171
11495
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11172
11496
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11173
11497
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11174
|
-
"metadata": zod.
|
|
11498
|
+
"metadata": zod.looseObject({
|
|
11175
11499
|
"authorization": zod.object({
|
|
11176
11500
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11177
11501
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11190,7 +11514,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11190
11514
|
}).describe('Payload for `invitation.rejected`. The invitation ID is the event\'s\n`entity_id`, and `user_id` is the user who declined it.\n')
|
|
11191
11515
|
})).describe('An event of type invitation.rejected, with the shared event fields and its own payload.\n'),zod.object({
|
|
11192
11516
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11193
|
-
"project_id": zod.string().regex(
|
|
11517
|
+
"project_id": zod.string().regex(getEventResponseThreeoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11194
11518
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11195
11519
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11196
11520
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11210,7 +11534,45 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11210
11534
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11211
11535
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11212
11536
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11213
|
-
"metadata": zod.
|
|
11537
|
+
"metadata": zod.looseObject({
|
|
11538
|
+
"authorization": zod.object({
|
|
11539
|
+
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11540
|
+
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
11541
|
+
}).optional().describe('What authorized the request, when it was not a grant on the event\'s\nproject. Every event of such a request carries it.\n'),
|
|
11542
|
+
"client": zod.object({
|
|
11543
|
+
"ip": zod.string().optional().describe('The client IP, from the first `X-Forwarded-For` hop or the remote address.'),
|
|
11544
|
+
"user_agent": zod.string().optional().describe('The observed `User-Agent` header.'),
|
|
11545
|
+
"origin": zod.string().optional().describe('The `Origin` header, when present.')
|
|
11546
|
+
}).optional().describe('The observed HTTP requestor context, set only on events from an API request (`request.api`).')
|
|
11547
|
+
}).optional().describe('Metadata the server records when it emits the event, already redacted when\nwritten. An event from an API request (`request.api`) may set `client`\n(`ip`, `user_agent`, `origin`), so a SIEM can join it on `request_id`. It is\nnot a live risk-evaluator input.\n')
|
|
11548
|
+
}).describe('The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n').and(zod.object({
|
|
11549
|
+
"event_type": zod.literal("oauth_settings.created"),
|
|
11550
|
+
"payload": zod.object({
|
|
11551
|
+
"enabled": zod.boolean().describe('Whether the project\'s OAuth authorization server answers.')
|
|
11552
|
+
}).describe('Payload for `oauth_settings.created`: the settings the new revision holds.\nThe revision id is the event\'s `entity_id`.\n')
|
|
11553
|
+
})).describe('An event of type oauth_settings.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
11554
|
+
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11555
|
+
"project_id": zod.string().regex(getEventResponseThreetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11556
|
+
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11557
|
+
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11558
|
+
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
11559
|
+
"occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened, on the server\'s clock, to the millisecond.\n'),
|
|
11560
|
+
"created_at": zod.iso.datetime({"offset":true}).describe('When the event was stored, on the server\'s clock, to the millisecond.\n'),
|
|
11561
|
+
"actor_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the actor that triggered the event.'),
|
|
11562
|
+
"actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('The kind of actor that triggered the event.'),
|
|
11563
|
+
"entity_type": zod.union([zod.string(),zod.null()]).optional().describe('The type of resource the event affected.'),
|
|
11564
|
+
"entity_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the resource the event affected.'),
|
|
11565
|
+
"user_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the user the event concerns, whoever triggered it: the user a\nsession, a token, a sign-in check or a credential belongs to, or the\nuser a change was made to. Absent on an event that concerns no user.\n'),
|
|
11566
|
+
"client_id": zod.string().describe('The application or agent that produced the event.'),
|
|
11567
|
+
"token_id": zod.string().optional().describe('The ID of the token in use when the event was emitted, when there was one.'),
|
|
11568
|
+
"delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('The kind of delegation. Absent when unset.'),
|
|
11569
|
+
"delegation_id": zod.string().optional(),
|
|
11570
|
+
"grantor": zod.string().optional(),
|
|
11571
|
+
"fingerprint": zod.string().optional().describe('A device fingerprint ID that correlates events from the same device.'),
|
|
11572
|
+
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11573
|
+
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11574
|
+
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11575
|
+
"metadata": zod.looseObject({
|
|
11214
11576
|
"authorization": zod.object({
|
|
11215
11577
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11216
11578
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11229,7 +11591,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11229
11591
|
}).describe('Payload for `origin.added` and `origin.removed`.\n')
|
|
11230
11592
|
})).describe('An event of type origin.added, with the shared event fields and its own payload.\n'),zod.object({
|
|
11231
11593
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11232
|
-
"project_id": zod.string().regex(
|
|
11594
|
+
"project_id": zod.string().regex(getEventResponseThreethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11233
11595
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11234
11596
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11235
11597
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11249,7 +11611,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11249
11611
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11250
11612
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11251
11613
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11252
|
-
"metadata": zod.
|
|
11614
|
+
"metadata": zod.looseObject({
|
|
11253
11615
|
"authorization": zod.object({
|
|
11254
11616
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11255
11617
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11268,7 +11630,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11268
11630
|
}).describe('Payload for `origin.added` and `origin.removed`.\n')
|
|
11269
11631
|
})).describe('An event of type origin.removed, with the shared event fields and its own payload.\n'),zod.object({
|
|
11270
11632
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11271
|
-
"project_id": zod.string().regex(
|
|
11633
|
+
"project_id": zod.string().regex(getEventResponseThreefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11272
11634
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11273
11635
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11274
11636
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11288,7 +11650,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11288
11650
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11289
11651
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11290
11652
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11291
|
-
"metadata": zod.
|
|
11653
|
+
"metadata": zod.looseObject({
|
|
11292
11654
|
"authorization": zod.object({
|
|
11293
11655
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11294
11656
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11308,7 +11670,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11308
11670
|
}).describe('Payload for `policy.created`, the first publish of an operation\'s policy,\nand `policy.updated`, every later publish. The policy ID is the event\'s\n`entity_id`. `config` holds the published settings, which are configuration\nvalues, never user data.\n')
|
|
11309
11671
|
})).describe('An event of type policy.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
11310
11672
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11311
|
-
"project_id": zod.string().regex(
|
|
11673
|
+
"project_id": zod.string().regex(getEventResponseThreefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11312
11674
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11313
11675
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11314
11676
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11328,7 +11690,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11328
11690
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11329
11691
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11330
11692
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11331
|
-
"metadata": zod.
|
|
11693
|
+
"metadata": zod.looseObject({
|
|
11332
11694
|
"authorization": zod.object({
|
|
11333
11695
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11334
11696
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11348,7 +11710,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11348
11710
|
}).describe('Payload for `policy.created`, the first publish of an operation\'s policy,\nand `policy.updated`, every later publish. The policy ID is the event\'s\n`entity_id`. `config` holds the published settings, which are configuration\nvalues, never user data.\n')
|
|
11349
11711
|
})).describe('An event of type policy.updated, with the shared event fields and its own payload.\n'),zod.object({
|
|
11350
11712
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11351
|
-
"project_id": zod.string().regex(
|
|
11713
|
+
"project_id": zod.string().regex(getEventResponseThreesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11352
11714
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11353
11715
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11354
11716
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11368,7 +11730,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11368
11730
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11369
11731
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11370
11732
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11371
|
-
"metadata": zod.
|
|
11733
|
+
"metadata": zod.looseObject({
|
|
11372
11734
|
"authorization": zod.object({
|
|
11373
11735
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11374
11736
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11386,7 +11748,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11386
11748
|
}).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
|
|
11387
11749
|
})).describe('An event of type preview.removed, with the shared event fields and its own payload.\n'),zod.object({
|
|
11388
11750
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11389
|
-
"project_id": zod.string().regex(
|
|
11751
|
+
"project_id": zod.string().regex(getEventResponseThreesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11390
11752
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11391
11753
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11392
11754
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11406,7 +11768,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11406
11768
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11407
11769
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11408
11770
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11409
|
-
"metadata": zod.
|
|
11771
|
+
"metadata": zod.looseObject({
|
|
11410
11772
|
"authorization": zod.object({
|
|
11411
11773
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11412
11774
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11429,7 +11791,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11429
11791
|
}).describe('Payload for `project.created`, which holds every field, and\n`project.updated`, which holds only the changed fields.\n')
|
|
11430
11792
|
})).describe('An event of type project.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
11431
11793
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11432
|
-
"project_id": zod.string().regex(
|
|
11794
|
+
"project_id": zod.string().regex(getEventResponseThreeeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11433
11795
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11434
11796
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11435
11797
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11449,7 +11811,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11449
11811
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11450
11812
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11451
11813
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11452
|
-
"metadata": zod.
|
|
11814
|
+
"metadata": zod.looseObject({
|
|
11453
11815
|
"authorization": zod.object({
|
|
11454
11816
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11455
11817
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11467,7 +11829,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11467
11829
|
}).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
|
|
11468
11830
|
})).describe('An event of type project.deleted, with the shared event fields and its own payload.\n'),zod.object({
|
|
11469
11831
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11470
|
-
"project_id": zod.string().regex(
|
|
11832
|
+
"project_id": zod.string().regex(getEventResponseThreenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11471
11833
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11472
11834
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11473
11835
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11487,7 +11849,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11487
11849
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11488
11850
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11489
11851
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11490
|
-
"metadata": zod.
|
|
11852
|
+
"metadata": zod.looseObject({
|
|
11491
11853
|
"authorization": zod.object({
|
|
11492
11854
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11493
11855
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11510,7 +11872,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11510
11872
|
}).describe('Payload for `project.created`, which holds every field, and\n`project.updated`, which holds only the changed fields.\n')
|
|
11511
11873
|
})).describe('An event of type project.updated, with the shared event fields and its own payload.\n'),zod.object({
|
|
11512
11874
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11513
|
-
"project_id": zod.string().regex(
|
|
11875
|
+
"project_id": zod.string().regex(getEventResponseFourzeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11514
11876
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11515
11877
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11516
11878
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11530,7 +11892,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11530
11892
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11531
11893
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11532
11894
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11533
|
-
"metadata": zod.
|
|
11895
|
+
"metadata": zod.looseObject({
|
|
11534
11896
|
"authorization": zod.object({
|
|
11535
11897
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11536
11898
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11556,7 +11918,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11556
11918
|
}).describe('Payload for `release.created`. The release ID is the event\'s `entity_id`.\nThe payload repeats the pinned set, the revisions the\n[release](https://preview.zitadel.com/docs/concepts/repo-config) freezes, so the event stream shows\nwhat a release contained without reading the release itself.\n')
|
|
11557
11919
|
})).describe('An event of type release.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
11558
11920
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11559
|
-
"project_id": zod.string().regex(
|
|
11921
|
+
"project_id": zod.string().regex(getEventResponseFouroneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11560
11922
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11561
11923
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11562
11924
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11576,7 +11938,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11576
11938
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11577
11939
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11578
11940
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11579
|
-
"metadata": zod.
|
|
11941
|
+
"metadata": zod.looseObject({
|
|
11580
11942
|
"authorization": zod.object({
|
|
11581
11943
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11582
11944
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11590,11 +11952,11 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11590
11952
|
}).describe('The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n').and(zod.object({
|
|
11591
11953
|
"event_type": zod.literal("release.revoked"),
|
|
11592
11954
|
"payload": zod.object({
|
|
11593
|
-
"content_hash": zod.string().min(
|
|
11955
|
+
"content_hash": zod.string().min(getEventResponseFouroneTwoPayloadContentHashMin).max(getEventResponseFouroneTwoPayloadContentHashMax).regex(getEventResponseFouroneTwoPayloadContentHashRegExp, "must be sha256: followed by 64 lowercase hex digits").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`, `idp` or `oauth`, and `handle` set to the\n schema\'s `objectType`, the flow definition\'s `name`, `default` for\n branding and oauth, or the identity provider\'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')
|
|
11594
11956
|
}).describe('Payload for `release.revoked`. The release ID is the event\'s `entity_id`.\nThe payload repeats the content hash, which is how the CLI prints a\n[release](https://preview.zitadel.com/docs/concepts/repo-config) and how builds pin it.\n')
|
|
11595
11957
|
})).describe('An event of type release.revoked, with the shared event fields and its own payload.\n'),zod.object({
|
|
11596
11958
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11597
|
-
"project_id": zod.string().regex(
|
|
11959
|
+
"project_id": zod.string().regex(getEventResponseFourtwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11598
11960
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11599
11961
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11600
11962
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11614,7 +11976,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11614
11976
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11615
11977
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11616
11978
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11617
|
-
"metadata": zod.
|
|
11979
|
+
"metadata": zod.looseObject({
|
|
11618
11980
|
"authorization": zod.object({
|
|
11619
11981
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11620
11982
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11631,12 +11993,12 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11631
11993
|
"operation_id": zod.string(),
|
|
11632
11994
|
"method": zod.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS']).describe('HTTP method.'),
|
|
11633
11995
|
"route_template": zod.string(),
|
|
11634
|
-
"status": zod.int().min(
|
|
11635
|
-
"duration_ms": zod.int().min(
|
|
11996
|
+
"status": zod.int().min(getEventResponseFourtwoTwoPayloadStatusMin).max(getEventResponseFourtwoTwoPayloadStatusMax),
|
|
11997
|
+
"duration_ms": zod.int().min(getEventResponseFourtwoTwoPayloadDurationMsMin)
|
|
11636
11998
|
}).describe('Payload for `request.api` events.')
|
|
11637
11999
|
})).describe('An event of type request.api, with the shared event fields and its own payload.\n'),zod.object({
|
|
11638
12000
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11639
|
-
"project_id": zod.string().regex(
|
|
12001
|
+
"project_id": zod.string().regex(getEventResponseFourthreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11640
12002
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11641
12003
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11642
12004
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11656,7 +12018,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11656
12018
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11657
12019
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11658
12020
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11659
|
-
"metadata": zod.
|
|
12021
|
+
"metadata": zod.looseObject({
|
|
11660
12022
|
"authorization": zod.object({
|
|
11661
12023
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11662
12024
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11675,7 +12037,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11675
12037
|
}).describe('Payload for `schema.created`. It leaves out the schema document, which the\ncustomer writes and which has no size bound; the event\'s `entity_id`\nidentifies the schema that was created.\n')
|
|
11676
12038
|
})).describe('An event of type schema.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
11677
12039
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11678
|
-
"project_id": zod.string().regex(
|
|
12040
|
+
"project_id": zod.string().regex(getEventResponseFourfourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11679
12041
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11680
12042
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11681
12043
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11695,7 +12057,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11695
12057
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11696
12058
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11697
12059
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11698
|
-
"metadata": zod.
|
|
12060
|
+
"metadata": zod.looseObject({
|
|
11699
12061
|
"authorization": zod.object({
|
|
11700
12062
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11701
12063
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11713,7 +12075,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11713
12075
|
}).describe('Payload for `session.deleted` events.')
|
|
11714
12076
|
})).describe('An event of type session.deleted, with the shared event fields and its own payload.\n'),zod.object({
|
|
11715
12077
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11716
|
-
"project_id": zod.string().regex(
|
|
12078
|
+
"project_id": zod.string().regex(getEventResponseFourfiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11717
12079
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11718
12080
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11719
12081
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11733,7 +12095,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11733
12095
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11734
12096
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11735
12097
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11736
|
-
"metadata": zod.
|
|
12098
|
+
"metadata": zod.looseObject({
|
|
11737
12099
|
"authorization": zod.object({
|
|
11738
12100
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11739
12101
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11751,7 +12113,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11751
12113
|
}).describe('Payload for `session.established` events.')
|
|
11752
12114
|
})).describe('An event of type session.established, with the shared event fields and its own payload.\n'),zod.object({
|
|
11753
12115
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11754
|
-
"project_id": zod.string().regex(
|
|
12116
|
+
"project_id": zod.string().regex(getEventResponseFoursixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11755
12117
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11756
12118
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11757
12119
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11771,7 +12133,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11771
12133
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11772
12134
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11773
12135
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11774
|
-
"metadata": zod.
|
|
12136
|
+
"metadata": zod.looseObject({
|
|
11775
12137
|
"authorization": zod.object({
|
|
11776
12138
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11777
12139
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11789,7 +12151,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11789
12151
|
}).describe('Payload for `team.created`, which holds every field, and `team.updated`,\nwhich holds only the changed fields.\n')
|
|
11790
12152
|
})).describe('An event of type team.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
11791
12153
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11792
|
-
"project_id": zod.string().regex(
|
|
12154
|
+
"project_id": zod.string().regex(getEventResponseFoursevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11793
12155
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11794
12156
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11795
12157
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11809,7 +12171,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11809
12171
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11810
12172
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11811
12173
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11812
|
-
"metadata": zod.
|
|
12174
|
+
"metadata": zod.looseObject({
|
|
11813
12175
|
"authorization": zod.object({
|
|
11814
12176
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11815
12177
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11827,7 +12189,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11827
12189
|
}).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
|
|
11828
12190
|
})).describe('An event of type team.deactivated, with the shared event fields and its own payload.\n'),zod.object({
|
|
11829
12191
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11830
|
-
"project_id": zod.string().regex(
|
|
12192
|
+
"project_id": zod.string().regex(getEventResponseFoureightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11831
12193
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11832
12194
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11833
12195
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11847,7 +12209,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11847
12209
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11848
12210
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11849
12211
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11850
|
-
"metadata": zod.
|
|
12212
|
+
"metadata": zod.looseObject({
|
|
11851
12213
|
"authorization": zod.object({
|
|
11852
12214
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11853
12215
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11865,7 +12227,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11865
12227
|
}).describe('Payload for `team.created`, which holds every field, and `team.updated`,\nwhich holds only the changed fields.\n')
|
|
11866
12228
|
})).describe('An event of type team.updated, with the shared event fields and its own payload.\n'),zod.object({
|
|
11867
12229
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11868
|
-
"project_id": zod.string().regex(
|
|
12230
|
+
"project_id": zod.string().regex(getEventResponseFournineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11869
12231
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11870
12232
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11871
12233
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11885,7 +12247,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11885
12247
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11886
12248
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11887
12249
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11888
|
-
"metadata": zod.
|
|
12250
|
+
"metadata": zod.looseObject({
|
|
11889
12251
|
"authorization": zod.object({
|
|
11890
12252
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11891
12253
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11903,7 +12265,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11903
12265
|
}).describe('Payload for `user.create.failed` events.')
|
|
11904
12266
|
})).describe('An event of type user.create.failed, with the shared event fields and its own payload.\n'),zod.object({
|
|
11905
12267
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11906
|
-
"project_id": zod.string().regex(
|
|
12268
|
+
"project_id": zod.string().regex(getEventResponseFivezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11907
12269
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11908
12270
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11909
12271
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11923,7 +12285,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11923
12285
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11924
12286
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11925
12287
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11926
|
-
"metadata": zod.
|
|
12288
|
+
"metadata": zod.looseObject({
|
|
11927
12289
|
"authorization": zod.object({
|
|
11928
12290
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11929
12291
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11943,7 +12305,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11943
12305
|
}).describe('Payload for `user.created`. The user\'s ID is the event\'s `entity_id`;\nattribute values appear only for schema fields marked `x-audit`.\n')
|
|
11944
12306
|
})).describe('An event of type user.created, with the shared event fields and its own payload.\n'),zod.object({
|
|
11945
12307
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11946
|
-
"project_id": zod.string().regex(
|
|
12308
|
+
"project_id": zod.string().regex(getEventResponseFiveoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11947
12309
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11948
12310
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11949
12311
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -11963,7 +12325,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11963
12325
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
11964
12326
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
11965
12327
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
11966
|
-
"metadata": zod.
|
|
12328
|
+
"metadata": zod.looseObject({
|
|
11967
12329
|
"authorization": zod.object({
|
|
11968
12330
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
11969
12331
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -11981,7 +12343,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
11981
12343
|
}).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
|
|
11982
12344
|
})).describe('An event of type user.deleted, with the shared event fields and its own payload.\n'),zod.object({
|
|
11983
12345
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
11984
|
-
"project_id": zod.string().regex(
|
|
12346
|
+
"project_id": zod.string().regex(getEventResponseFivetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
11985
12347
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
11986
12348
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
11987
12349
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -12001,7 +12363,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
12001
12363
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
12002
12364
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
12003
12365
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
12004
|
-
"metadata": zod.
|
|
12366
|
+
"metadata": zod.looseObject({
|
|
12005
12367
|
"authorization": zod.object({
|
|
12006
12368
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
12007
12369
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -12020,7 +12382,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
12020
12382
|
}).describe('Payload for `user.updated`. The attribute rules are those of `user.created`:\nthe keys written, plus values only for fields marked `x-audit`.\n')
|
|
12021
12383
|
})).describe('An event of type user.updated, with the shared event fields and its own payload.\n'),zod.object({
|
|
12022
12384
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
12023
|
-
"project_id": zod.string().regex(
|
|
12385
|
+
"project_id": zod.string().regex(getEventResponseFivethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
12024
12386
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
12025
12387
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
12026
12388
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -12040,7 +12402,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
12040
12402
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
12041
12403
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
12042
12404
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
12043
|
-
"metadata": zod.
|
|
12405
|
+
"metadata": zod.looseObject({
|
|
12044
12406
|
"authorization": zod.object({
|
|
12045
12407
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
12046
12408
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|
|
@@ -12058,7 +12420,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
12058
12420
|
}).describe('Payload for `variable.removed` events, one value of the variable removed.')
|
|
12059
12421
|
})).describe('An event of type variable.removed, with the shared event fields and its own payload.\n'),zod.object({
|
|
12060
12422
|
"id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
|
|
12061
|
-
"project_id": zod.string().regex(
|
|
12423
|
+
"project_id": zod.string().regex(getEventResponseFivefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
|
|
12062
12424
|
"team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
|
|
12063
12425
|
"event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
|
|
12064
12426
|
"category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
|
|
@@ -12078,7 +12440,7 @@ export const GetEventResponse = zod.union([zod.object({
|
|
|
12078
12440
|
"request_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the HTTP request that caused the event. Events of one request\nshare it. Only the `request.api` event of a request carries\n`metadata.client`.\n'),
|
|
12079
12441
|
"session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
|
|
12080
12442
|
"flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
|
|
12081
|
-
"metadata": zod.
|
|
12443
|
+
"metadata": zod.looseObject({
|
|
12082
12444
|
"authorization": zod.object({
|
|
12083
12445
|
"path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
|
|
12084
12446
|
"actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
|