@zitadel/api 0.7.0 → 0.9.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.
Files changed (151) hide show
  1. package/dist/{api-factory-BPmRCU7u.mjs → api-factory-ConF3NN2.mjs} +14 -2
  2. package/dist/api-factory-ConF3NN2.mjs.map +1 -0
  3. package/dist/{api-factory-DCzYxpdV.d.mts → api-factory-DOg9w_Du.d.mts} +8 -3
  4. package/dist/api-factory-DOg9w_Du.d.mts.map +1 -0
  5. package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
  6. package/dist/generated/endpoints/zitadelNextGen.mjs +1 -1
  7. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +225 -109
  8. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
  9. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +737 -41
  10. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  11. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +607 -194
  12. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  13. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +801 -359
  14. package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
  15. package/dist/generated/model/index.d.mts +2 -2
  16. package/dist/generated/model/index.mjs +17 -3
  17. package/dist/generated/model/index.mjs.map +1 -1
  18. package/dist/generated/operations.d.mts.map +1 -1
  19. package/dist/generated/operations.mjs +46 -4
  20. package/dist/generated/operations.mjs.map +1 -1
  21. package/dist/{index-BwYxe7Dw.d.mts → index-REGtKmAu.d.mts} +1466 -327
  22. package/dist/index-REGtKmAu.d.mts.map +1 -0
  23. package/dist/runtime/api-factory.d.mts +1 -1
  24. package/dist/runtime/api-factory.mjs +1 -1
  25. package/dist/runtime/config.d.mts +1 -1
  26. package/dist/runtime/config.mjs +1 -1
  27. package/dist/{zitadelNextGen-DsPFGqLs.mjs → zitadelNextGen-CVFzR-dx.mjs} +154 -570
  28. package/dist/zitadelNextGen-CVFzR-dx.mjs.map +1 -0
  29. package/dist/{zitadelNextGen-SGK-fW1x.d.mts → zitadelNextGen-tszErftX.d.mts} +78 -32
  30. package/dist/zitadelNextGen-tszErftX.d.mts.map +1 -0
  31. package/package.json +2 -2
  32. package/src/generated/endpoints/zitadelNextGen.faker.ts +14 -10
  33. package/src/generated/endpoints/zitadelNextGen.msw.ts +278 -216
  34. package/src/generated/endpoints/zitadelNextGen.ts +222 -748
  35. package/src/generated/endpoints/zitadelNextGen.zod.ts +687 -324
  36. package/src/generated/model/acceptInvitation200.ts +84 -12
  37. package/src/generated/model/acceptInvitationDefault.ts +18 -0
  38. package/src/generated/model/buildReleaseBodyBundle.ts +1 -2
  39. package/src/generated/model/buildReleaseBodyBundleOauth.ts +1 -2
  40. package/src/generated/model/buildReleaseParams.ts +7 -7
  41. package/src/generated/model/cancelInvitationParams.ts +7 -7
  42. package/src/generated/model/createAuthAttempt201ChallengesItemPayload.ts +1 -1
  43. package/src/generated/model/createAuthAttemptChallenge201Payload.ts +1 -1
  44. package/src/generated/model/createDeploymentParams.ts +7 -7
  45. package/src/generated/model/createGrantParams.ts +7 -7
  46. package/src/generated/model/createInvitation201.ts +84 -12
  47. package/src/generated/model/createInvitationBody.ts +4 -4
  48. package/src/generated/model/createInvitationParams.ts +7 -7
  49. package/src/generated/model/createReleaseParams.ts +7 -7
  50. package/src/generated/model/createTeamParams.ts +7 -7
  51. package/src/generated/model/createUserParams.ts +23 -23
  52. package/src/generated/model/deleteGrantParams.ts +7 -7
  53. package/src/generated/model/deleteVariableParams.ts +12 -12
  54. package/src/generated/model/evaluatePolicyParams.ts +7 -7
  55. package/src/generated/model/exchangeHandoffParams.ts +7 -7
  56. package/src/generated/model/getApplicationParams.ts +7 -7
  57. package/src/generated/model/getAuthAttempt200ChallengesItemPayload.ts +1 -1
  58. package/src/generated/model/getDeploymentParams.ts +7 -7
  59. package/src/generated/model/getEvent200.ts +192 -10
  60. package/src/generated/model/getEventParams.ts +7 -7
  61. package/src/generated/model/getGrantParams.ts +13 -13
  62. package/src/generated/model/getIdpParams.ts +7 -7
  63. package/src/generated/model/getIdpRevisionParams.ts +7 -7
  64. package/src/generated/model/getInvitation200.ts +84 -12
  65. package/src/generated/model/getInvitationParams.ts +7 -7
  66. package/src/generated/model/getMyPasswordStateParams.ts +16 -16
  67. package/src/generated/model/getMySessionCsrfTokenParams.ts +16 -16
  68. package/src/generated/model/getMySessionParams.ts +16 -16
  69. package/src/generated/model/getMyUserParams.ts +16 -16
  70. package/src/generated/model/getMyUserSchemaParams.ts +16 -16
  71. package/src/generated/model/getOAuthSettings200.ts +1 -2
  72. package/src/generated/model/getOAuthSettings200Oauth.ts +1 -2
  73. package/src/generated/model/getOAuthSettingsDefault.ts +18 -0
  74. package/src/generated/model/getPolicyParams.ts +7 -7
  75. package/src/generated/model/getPolicyRevisionParams.ts +7 -7
  76. package/src/generated/model/getProjectClaimStatusParams.ts +5 -5
  77. package/src/generated/model/getProjectClaimWindowParams.ts +5 -5
  78. package/src/generated/model/getReleaseParams.ts +7 -7
  79. package/src/generated/model/getSchemaParams.ts +11 -11
  80. package/src/generated/model/getUserParams.ts +21 -21
  81. package/src/generated/model/getVariableParams.ts +12 -12
  82. package/src/generated/model/index.ts +18 -7
  83. package/src/generated/model/listBrandingParams.ts +20 -20
  84. package/src/generated/model/listDeploymentVariablesParams.ts +7 -7
  85. package/src/generated/model/listDeploymentsParams.ts +42 -44
  86. package/src/generated/model/listEvents200EventsItem.ts +192 -10
  87. package/src/generated/model/listEventsParams.ts +83 -105
  88. package/src/generated/model/listFlowDefinitionsParams.ts +44 -48
  89. package/src/generated/model/listIdpRevisionsParams.ts +20 -20
  90. package/src/generated/model/listInvitations200InvitationsItem.ts +84 -12
  91. package/src/generated/model/listInvitationsExpandItem.ts +25 -0
  92. package/src/generated/model/listInvitationsParams.ts +31 -31
  93. package/src/generated/model/listInvitationsStatusItem.ts +22 -0
  94. package/src/generated/model/listMyIdentityLinksParams.ts +29 -29
  95. package/src/generated/model/listMyPasskeysParams.ts +29 -29
  96. package/src/generated/model/listMyProjectsParams.ts +52 -52
  97. package/src/generated/model/listMyTeamsParams.ts +29 -29
  98. package/src/generated/model/listPoliciesParams.ts +22 -24
  99. package/src/generated/model/listPolicyRevisionsParams.ts +20 -20
  100. package/src/generated/model/listProjectAdminsParams.ts +13 -13
  101. package/src/generated/model/listProjectMembers200.ts +20 -0
  102. package/src/generated/model/listProjectMembers200MembersItem.ts +38 -0
  103. package/src/generated/model/listProjectMembers200MembersItemRelation.ts +20 -0
  104. package/src/generated/model/listProjectMembers200MembersItemSourcesItem.ts +55 -0
  105. package/src/generated/model/listProjectMembers200MembersItemUser.ts +40 -0
  106. package/src/generated/model/{acceptInvitation429.ts → listProjectMembers400.ts} +3 -3
  107. package/src/generated/model/{lookupInvitation429Details.ts → listProjectMembers400Details.ts} +1 -1
  108. package/src/generated/model/{lookupInvitation429.ts → listProjectMembers401.ts} +3 -3
  109. package/src/generated/model/{acceptInvitation429Details.ts → listProjectMembers401Details.ts} +1 -1
  110. package/src/generated/model/{rejectInvitation429.ts → listProjectMembers403.ts} +3 -3
  111. package/src/generated/model/{rejectInvitation429Details.ts → listProjectMembers403Details.ts} +1 -1
  112. package/src/generated/model/listProjectMembers404.ts +20 -0
  113. package/src/generated/model/listProjectMembers404Details.ts +12 -0
  114. package/src/generated/model/listProjectMembersDefault.ts +81 -0
  115. package/src/generated/model/listProjectMembersParams.ts +29 -0
  116. package/src/generated/model/listProjectMembersRelation.ts +16 -0
  117. package/src/generated/model/listProjectPreviewsParams.ts +13 -13
  118. package/src/generated/model/listReleasesParams.ts +60 -60
  119. package/src/generated/model/listSchemasParams.ts +54 -56
  120. package/src/generated/model/listUserIdentityLinksParams.ts +13 -13
  121. package/src/generated/model/listUserPasskeysParams.ts +13 -13
  122. package/src/generated/model/listUserTeamsParams.ts +13 -13
  123. package/src/generated/model/listVariablesParams.ts +12 -12
  124. package/src/generated/model/lookupInvitation200.ts +58 -0
  125. package/src/generated/model/publishApplicationParams.ts +7 -7
  126. package/src/generated/model/publishBrandingParams.ts +7 -7
  127. package/src/generated/model/publishIdpParams.ts +7 -7
  128. package/src/generated/model/publishPolicyParams.ts +7 -7
  129. package/src/generated/model/publishSchemaParams.ts +12 -12
  130. package/src/generated/model/queryGrantsParams.ts +7 -7
  131. package/src/generated/model/queryIdpsParams.ts +7 -7
  132. package/src/generated/model/querySessionsParams.ts +7 -7
  133. package/src/generated/model/queryTeamsParams.ts +6 -6
  134. package/src/generated/model/queryUsersParams.ts +6 -6
  135. package/src/generated/model/rejectInvitation200.ts +84 -12
  136. package/src/generated/model/rejectInvitationDefault.ts +18 -0
  137. package/src/generated/model/revokeMySessionParams.ts +16 -16
  138. package/src/generated/model/revokeReleaseParams.ts +7 -7
  139. package/src/generated/model/rollbackDeploymentParams.ts +7 -7
  140. package/src/generated/model/searchParams.ts +7 -7
  141. package/src/generated/model/setVariablesParams.ts +12 -12
  142. package/src/generated/model/updateMyUserParams.ts +16 -16
  143. package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItemPayload.ts +1 -1
  144. package/src/generated/operations.ts +46 -4
  145. package/src/generated/paging.ts +5 -0
  146. package/dist/api-factory-BPmRCU7u.mjs.map +0 -1
  147. package/dist/api-factory-DCzYxpdV.d.mts.map +0 -1
  148. package/dist/index-BwYxe7Dw.d.mts.map +0 -1
  149. package/dist/zitadelNextGen-DsPFGqLs.mjs.map +0 -1
  150. package/dist/zitadelNextGen-SGK-fW1x.d.mts.map +0 -1
  151. 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.object({
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.object({
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": zod.object({
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
- }).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'),
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": zod.object({
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
- }).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'),
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": zod.object({
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
- }).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'),
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, the list does not look at a person's user status beyond that, so a
2520
- * direct grant to a suspended person is listed.
2531
+ * check, a direct user grant requires an active user, so a suspended
2532
+ * person's direct grant is not listed.
2521
2533
  *
2522
- * A person whose access comes only through teams the caller is not a
2523
- * member of is left out. A team the caller is not in is named by `team_id`
2524
- * only. The grant to such a team still shows in the project's grants.
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.object({
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.object({
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.object({
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.object({
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.object({
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.object({
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.object({
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.object({
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.object({
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.object({
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.object({
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.object({
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.object({
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.object({
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.object({
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.object({
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.object({
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.object({
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.object({
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.object({
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": zod.object({
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
- }).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'),
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": zod.object({
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
- }).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'),
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": zod.object({
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
- }).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'),
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. Locally it is the descriptor in `.zitadel/` that `zitadel deploy`\npublishes with the rest of the bundle.\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')
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.object({
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.object({
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": zod.object({
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
- }).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'),
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. Locally it is the descriptor in `.zitadel/` that `zitadel deploy`\npublishes with the rest of the bundle.\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')
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.'),
@@ -6992,9 +7108,10 @@ export const CreateGrantResponse = zod.object({
6992
7108
  * Project-secret setup (`sk_proj`) and owning-team (`relation=team`) rows are
6993
7109
  * not returned. Requires `project.read`.
6994
7110
  *
6995
- * `expand: ["principal"]` adds envelope fields on `user` and `team`. For project
6996
- * secrets it additionally requires `user.read` and `team.read`. A user-bound
6997
- * console session that already passed the project check may expand without those scopes.
7111
+ * `expand: ["principal"]` adds envelope fields on `user` and `team`. Expanding
7112
+ * requires read access to the principal's home project (the platform project
7113
+ * when the server has one), for project secrets and for console sessions alike.
7114
+ * A caller without it gets `403` `user.permission_denied`.
6998
7115
  *
6999
7116
  * Authenticate with a project secret (`oauth2`) or a console session cookie
7000
7117
  * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
@@ -7083,10 +7200,10 @@ export const QueryGrantsResponse = zod.object({
7083
7200
  * Misses, revoked grants, project-secret setup rows (`sk_proj`), owning-team
7084
7201
  * (`relation=team`) rows and grants of another project all return `404`.
7085
7202
  *
7086
- * `expand=principal` adds envelope fields on `user` or `team`. For project
7087
- * secrets it requires `user.read` and `team.read` in addition to `project.read`.
7088
- * A user-bound console session that already passed the project check may expand
7089
- * without those scopes.
7203
+ * `expand=principal` adds envelope fields on `user` or `team`. Expanding
7204
+ * requires read access to the principal's home project (the platform project
7205
+ * when the server has one), for project secrets and for console sessions alike.
7206
+ * A caller without it gets `403` `user.permission_denied`.
7090
7207
  *
7091
7208
  * Authenticate with a project secret (`oauth2`) or a console session cookie
7092
7209
  * (`sessionCookie`). Cookie requests follow that scheme's CSRF rules.
@@ -7179,15 +7296,15 @@ export const DeleteGrantResponse = zod.void()
7179
7296
  * Send `type` and the object named after it. `project_member` takes
7180
7297
  * `relation` (`viewer`, `editor` or `admin`). `team_member` takes `team_id`
7181
7298
  * and `role`, and answers `501` `not_implemented` until team invitations
7182
- * ship. Optional `metadata.name` labels who the link is for. Optional
7183
- * `replaces_invitation_id` replaces that invitation: the new row keeps the
7184
- * original's `journey_id`, and the original is deleted in the same
7185
- * transaction unless it was accepted.
7299
+ * ship. Optional `metadata.name` (1–200 characters) labels who the link is
7300
+ * for. Optional `replaces_invitation_id` replaces that invitation: the new
7301
+ * row keeps the original's `journey_id`, and the original is deleted in the
7302
+ * same transaction unless it was accepted.
7186
7303
  *
7187
7304
  * The `link` appears only in this response. Share it out of band; whoever
7188
7305
  * opens it and is signed in can redeem the role. It expires in 72 hours.
7189
7306
  * Refused for an unclaimed project, on a server without a platform project,
7190
- * and when the project's pending-invitation cap is reached.
7307
+ * and when the project already has 100 pending unexpired invitations.
7191
7308
  *
7192
7309
  * Authenticate with a project secret (`oauth2`) or a console session cookie
7193
7310
  * (`sessionCookie`). Creation needs the same project `admin` check as
@@ -7214,7 +7331,7 @@ export const createInvitationBodyTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-
7214
7331
  export const CreateInvitationBody = zod.union([zod.object({
7215
7332
  "metadata": zod.object({
7216
7333
  "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 or declined. Cancel deletes the row with it; replace\nmoves it to the new invitation unless that sends its own.\n'),
7334
+ }).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
7335
  "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
7336
  }).describe('Shared optional fields on every create-invitation request.').and(zod.object({
7220
7337
  "type": zod.enum(['project_member']),
@@ -7224,7 +7341,7 @@ export const CreateInvitationBody = zod.union([zod.object({
7224
7341
  })).describe('Creates a project-member invitation, or replaces an existing one.'),zod.object({
7225
7342
  "metadata": zod.object({
7226
7343
  "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 or declined. Cancel deletes the row with it; replace\nmoves it to the new invitation unless that sends its own.\n'),
7344
+ }).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
7345
  "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
7346
  }).describe('Shared optional fields on every create-invitation request.').and(zod.object({
7230
7347
  "type": zod.enum(['team_member']),
@@ -7239,11 +7356,13 @@ export const createInvitationResponseOneOneOneProjectIdRegExp = new RegExp('^[a-
7239
7356
  export const createInvitationResponseOneOneOneMetadataOneNameMax = 200;
7240
7357
 
7241
7358
 
7359
+ export const createInvitationResponseOneOneOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
7242
7360
  export const createInvitationResponseTwoOneOneIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7243
7361
  export const createInvitationResponseTwoOneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7244
7362
  export const createInvitationResponseTwoOneOneMetadataOneNameMax = 200;
7245
7363
 
7246
7364
 
7365
+ export const createInvitationResponseTwoOneOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
7247
7366
  export const createInvitationResponseTwoOneTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7248
7367
 
7249
7368
 
@@ -7252,15 +7371,21 @@ export const CreateInvitationResponse = zod.union([zod.object({
7252
7371
  "project_id": zod.string().regex(createInvitationResponseOneOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
7253
7372
  "metadata": zod.union([zod.object({
7254
7373
  "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 or declined. Cancel deletes the row with it; replace\nmoves 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 or decline.\nCancel and replace delete the row.\n'),
7374
+ }).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
7375
  "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
7376
  "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
7377
  "created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
7259
7378
  "created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
7260
7379
  "expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
7261
7380
  "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
- "accepted_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who redeemed the link. Null until accepted.'),
7263
- "accepted_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted. Null until accepted.')
7381
+ "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'),
7382
+ "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'),
7383
+ "inviter": zod.union([zod.object({
7384
+ "user_id": zod.string().regex(createInvitationResponseOneOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
7385
+ "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'),
7386
+ "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'),
7387
+ "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')
7388
+ }).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
7389
  }).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
7390
  "type": zod.enum(['project_member']),
7266
7391
  "project_member": zod.object({
@@ -7273,15 +7398,21 @@ export const CreateInvitationResponse = zod.union([zod.object({
7273
7398
  "project_id": zod.string().regex(createInvitationResponseTwoOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
7274
7399
  "metadata": zod.union([zod.object({
7275
7400
  "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 or declined. Cancel deletes the row with it; replace\nmoves 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 or decline.\nCancel and replace delete the row.\n'),
7401
+ }).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
7402
  "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
7403
  "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
7404
  "created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
7280
7405
  "created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
7281
7406
  "expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
7282
7407
  "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
- "accepted_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who redeemed the link. Null until accepted.'),
7284
- "accepted_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted. Null until accepted.')
7408
+ "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'),
7409
+ "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'),
7410
+ "inviter": zod.union([zod.object({
7411
+ "user_id": zod.string().regex(createInvitationResponseTwoOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
7412
+ "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'),
7413
+ "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'),
7414
+ "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')
7415
+ }).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
7416
  }).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
7417
  "type": zod.enum(['team_member']),
7287
7418
  "team_member": zod.object({
@@ -7297,8 +7428,11 @@ export const CreateInvitationResponse = zod.union([zod.object({
7297
7428
  * Lists a project's invitations, newest first, in any status, paginated with
7298
7429
  * `limit` and `page_token`.
7299
7430
  *
7300
- * Optional `status` and `type` filters narrow the page. `expired` is derived
7301
- * on read from `expires_at`. Authenticate with a project secret (`oauth2`) or
7431
+ * Optional `status` and `type` filters narrow the page. Repeat `status` to
7432
+ * match any of several statuses, for example
7433
+ * `status=pending&status=expired&status=rejected`. `expired` is derived on
7434
+ * read from `expires_at`. `expand=inviter` adds `inviter` to each
7435
+ * invitation. Authenticate with a project secret (`oauth2`) or
7302
7436
  * a console session cookie (`sessionCookie`). Listing needs the same project
7303
7437
  * `admin` check as `createGrant` (`POST /grants`).
7304
7438
  * @summary List invitations
@@ -7313,8 +7447,9 @@ export const ListInvitationsQueryParams = zod.strictObject({
7313
7447
  "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
7448
  "limit": zod.int().min(1).max(listInvitationsQueryLimitMax).default(listInvitationsQueryLimitDefault).describe('Maximum number of items to return.'),
7315
7449
  "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.')
7450
+ "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'),
7451
+ "type": zod.enum(['project_member', 'team_member']).optional().describe('Only invitations of this type.'),
7452
+ "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
7453
  })
7319
7454
 
7320
7455
  export const listInvitationsResponseInvitationsItemOneOneIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
@@ -7322,11 +7457,13 @@ export const listInvitationsResponseInvitationsItemOneOneProjectIdRegExp = new R
7322
7457
  export const listInvitationsResponseInvitationsItemOneOneMetadataOneNameMax = 200;
7323
7458
 
7324
7459
 
7460
+ export const listInvitationsResponseInvitationsItemOneOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
7325
7461
  export const listInvitationsResponseInvitationsItemTwoOneIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7326
7462
  export const listInvitationsResponseInvitationsItemTwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7327
7463
  export const listInvitationsResponseInvitationsItemTwoOneMetadataOneNameMax = 200;
7328
7464
 
7329
7465
 
7466
+ export const listInvitationsResponseInvitationsItemTwoOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
7330
7467
  export const listInvitationsResponseInvitationsItemTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7331
7468
 
7332
7469
 
@@ -7336,15 +7473,21 @@ export const ListInvitationsResponse = zod.object({
7336
7473
  "project_id": zod.string().regex(listInvitationsResponseInvitationsItemOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
7337
7474
  "metadata": zod.union([zod.object({
7338
7475
  "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 or declined. Cancel deletes the row with it; replace\nmoves 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 or decline.\nCancel and replace delete the row.\n'),
7476
+ }).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
7477
  "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
7478
  "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
7479
  "created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
7343
7480
  "created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
7344
7481
  "expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
7345
7482
  "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
- "accepted_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who redeemed the link. Null until accepted.'),
7347
- "accepted_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted. Null until accepted.')
7483
+ "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'),
7484
+ "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'),
7485
+ "inviter": zod.union([zod.object({
7486
+ "user_id": zod.string().regex(listInvitationsResponseInvitationsItemOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
7487
+ "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'),
7488
+ "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'),
7489
+ "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')
7490
+ }).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
7491
  }).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
7492
  "type": zod.enum(['project_member']),
7350
7493
  "project_member": zod.object({
@@ -7355,15 +7498,21 @@ export const ListInvitationsResponse = zod.object({
7355
7498
  "project_id": zod.string().regex(listInvitationsResponseInvitationsItemTwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
7356
7499
  "metadata": zod.union([zod.object({
7357
7500
  "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 or declined. Cancel deletes the row with it; replace\nmoves 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 or decline.\nCancel and replace delete the row.\n'),
7501
+ }).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
7502
  "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
7503
  "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
7504
  "created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
7362
7505
  "created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
7363
7506
  "expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
7364
7507
  "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
- "accepted_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who redeemed the link. Null until accepted.'),
7366
- "accepted_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted. Null until accepted.')
7508
+ "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'),
7509
+ "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'),
7510
+ "inviter": zod.union([zod.object({
7511
+ "user_id": zod.string().regex(listInvitationsResponseInvitationsItemTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
7512
+ "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'),
7513
+ "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'),
7514
+ "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')
7515
+ }).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
7516
  }).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
7517
  "type": zod.enum(['team_member']),
7369
7518
  "team_member": zod.object({
@@ -7383,7 +7532,7 @@ export const ListInvitationsResponse = zod.object({
7383
7532
  * or finished token answers the same opaque `404`. Authenticate with a
7384
7533
  * platform-project user session cookie (`sessionCookie`). Lookup is a read:
7385
7534
  * same-origin cookie requests need no `X-Zitadel-CSRF` token (accept and
7386
- * reject still do). The call is rate-limited.
7535
+ * reject still do).
7387
7536
  * @summary Look up an invitation by token
7388
7537
  */
7389
7538
 
@@ -7394,7 +7543,9 @@ export const LookupInvitationBody = zod.object({
7394
7543
  }).describe('The redeem token from an invitation link\'s fragment.')
7395
7544
 
7396
7545
  export const lookupInvitationResponseOneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7546
+ export const lookupInvitationResponseOneOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
7397
7547
  export const lookupInvitationResponseTwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7548
+ export const lookupInvitationResponseTwoOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
7398
7549
  export const lookupInvitationResponseTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7399
7550
 
7400
7551
 
@@ -7403,6 +7554,12 @@ export const LookupInvitationResponse = zod.union([zod.object({
7403
7554
  "project_name": zod.string().describe('The project\'s display name.'),
7404
7555
  "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
7556
  "created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
7557
+ "inviter": zod.union([zod.object({
7558
+ "user_id": zod.string().regex(lookupInvitationResponseOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
7559
+ "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'),
7560
+ "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'),
7561
+ "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')
7562
+ }).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
7563
  "expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires.'),
7407
7564
  "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
7565
  }).describe('Shared fields of the lean invitation view for the accept page.\n').and(zod.object({
@@ -7415,6 +7572,12 @@ export const LookupInvitationResponse = zod.union([zod.object({
7415
7572
  "project_name": zod.string().describe('The project\'s display name.'),
7416
7573
  "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
7574
  "created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
7575
+ "inviter": zod.union([zod.object({
7576
+ "user_id": zod.string().regex(lookupInvitationResponseTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
7577
+ "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'),
7578
+ "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'),
7579
+ "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')
7580
+ }).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
7581
  "expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires.'),
7419
7582
  "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
7583
  }).describe('Shared fields of the lean invitation view for the accept page.\n').and(zod.object({
@@ -7438,7 +7601,7 @@ export const LookupInvitationResponse = zod.union([zod.object({
7438
7601
  * answers the same opaque `404`.
7439
7602
  *
7440
7603
  * Authenticate with a platform-project user session cookie (`sessionCookie`).
7441
- * Cookie requests follow that scheme's CSRF rules. The call is rate-limited.
7604
+ * Cookie requests follow that scheme's CSRF rules.
7442
7605
  * @summary Accept an invitation
7443
7606
  */
7444
7607
 
@@ -7453,11 +7616,13 @@ export const acceptInvitationResponseOneOneProjectIdRegExp = new RegExp('^[a-zA-
7453
7616
  export const acceptInvitationResponseOneOneMetadataOneNameMax = 200;
7454
7617
 
7455
7618
 
7619
+ export const acceptInvitationResponseOneOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
7456
7620
  export const acceptInvitationResponseTwoOneIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7457
7621
  export const acceptInvitationResponseTwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7458
7622
  export const acceptInvitationResponseTwoOneMetadataOneNameMax = 200;
7459
7623
 
7460
7624
 
7625
+ export const acceptInvitationResponseTwoOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
7461
7626
  export const acceptInvitationResponseTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7462
7627
 
7463
7628
 
@@ -7466,15 +7631,21 @@ export const AcceptInvitationResponse = zod.union([zod.object({
7466
7631
  "project_id": zod.string().regex(acceptInvitationResponseOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
7467
7632
  "metadata": zod.union([zod.object({
7468
7633
  "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 or declined. Cancel deletes the row with it; replace\nmoves 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 or decline.\nCancel and replace delete the row.\n'),
7634
+ }).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
7635
  "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
7636
  "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
7637
  "created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
7473
7638
  "created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
7474
7639
  "expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
7475
7640
  "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
- "accepted_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who redeemed the link. Null until accepted.'),
7477
- "accepted_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted. Null until accepted.')
7641
+ "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'),
7642
+ "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'),
7643
+ "inviter": zod.union([zod.object({
7644
+ "user_id": zod.string().regex(acceptInvitationResponseOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
7645
+ "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'),
7646
+ "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'),
7647
+ "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')
7648
+ }).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
7649
  }).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
7650
  "type": zod.enum(['project_member']),
7480
7651
  "project_member": zod.object({
@@ -7485,15 +7656,21 @@ export const AcceptInvitationResponse = zod.union([zod.object({
7485
7656
  "project_id": zod.string().regex(acceptInvitationResponseTwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
7486
7657
  "metadata": zod.union([zod.object({
7487
7658
  "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 or declined. Cancel deletes the row with it; replace\nmoves 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 or decline.\nCancel and replace delete the row.\n'),
7659
+ }).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
7660
  "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
7661
  "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
7662
  "created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
7492
7663
  "created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
7493
7664
  "expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
7494
7665
  "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
- "accepted_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who redeemed the link. Null until accepted.'),
7496
- "accepted_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted. Null until accepted.')
7666
+ "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'),
7667
+ "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'),
7668
+ "inviter": zod.union([zod.object({
7669
+ "user_id": zod.string().regex(acceptInvitationResponseTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
7670
+ "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'),
7671
+ "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'),
7672
+ "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')
7673
+ }).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
7674
  }).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
7675
  "type": zod.enum(['team_member']),
7499
7676
  "team_member": zod.object({
@@ -7507,10 +7684,13 @@ export const AcceptInvitationResponse = zod.union([zod.object({
7507
7684
  * Declines a pending invitation for the signed-in user and returns the
7508
7685
  * updated invitation with status `rejected`.
7509
7686
  *
7510
- * Send the plaintext token from the invitation link fragment. Metadata is
7511
- * cleared. Every unknown or finished token answers the same opaque `404`.
7687
+ * Send the plaintext token from the invitation link fragment. The
7688
+ * invitation keeps its metadata for administrators, but this response
7689
+ * returns `metadata` as null. The inviter cannot decline their own invitation; an administrator
7690
+ * cancels it instead. Every unknown or finished token answers the same
7691
+ * opaque `404`.
7512
7692
  * Authenticate with a platform-project user session cookie (`sessionCookie`).
7513
- * Cookie requests follow that scheme's CSRF rules. The call is rate-limited.
7693
+ * Cookie requests follow that scheme's CSRF rules.
7514
7694
  * @summary Decline an invitation
7515
7695
  */
7516
7696
 
@@ -7525,11 +7705,13 @@ export const rejectInvitationResponseOneOneProjectIdRegExp = new RegExp('^[a-zA-
7525
7705
  export const rejectInvitationResponseOneOneMetadataOneNameMax = 200;
7526
7706
 
7527
7707
 
7708
+ export const rejectInvitationResponseOneOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
7528
7709
  export const rejectInvitationResponseTwoOneIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7529
7710
  export const rejectInvitationResponseTwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7530
7711
  export const rejectInvitationResponseTwoOneMetadataOneNameMax = 200;
7531
7712
 
7532
7713
 
7714
+ export const rejectInvitationResponseTwoOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
7533
7715
  export const rejectInvitationResponseTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7534
7716
 
7535
7717
 
@@ -7538,15 +7720,21 @@ export const RejectInvitationResponse = zod.union([zod.object({
7538
7720
  "project_id": zod.string().regex(rejectInvitationResponseOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
7539
7721
  "metadata": zod.union([zod.object({
7540
7722
  "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 or declined. Cancel deletes the row with it; replace\nmoves 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 or decline.\nCancel and replace delete the row.\n'),
7723
+ }).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
7724
  "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
7725
  "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
7726
  "created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
7545
7727
  "created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
7546
7728
  "expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
7547
7729
  "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
- "accepted_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who redeemed the link. Null until accepted.'),
7549
- "accepted_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted. Null until accepted.')
7730
+ "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'),
7731
+ "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'),
7732
+ "inviter": zod.union([zod.object({
7733
+ "user_id": zod.string().regex(rejectInvitationResponseOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
7734
+ "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'),
7735
+ "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'),
7736
+ "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')
7737
+ }).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
7738
  }).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
7739
  "type": zod.enum(['project_member']),
7552
7740
  "project_member": zod.object({
@@ -7557,15 +7745,21 @@ export const RejectInvitationResponse = zod.union([zod.object({
7557
7745
  "project_id": zod.string().regex(rejectInvitationResponseTwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
7558
7746
  "metadata": zod.union([zod.object({
7559
7747
  "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 or declined. Cancel deletes the row with it; replace\nmoves 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 or decline.\nCancel and replace delete the row.\n'),
7748
+ }).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
7749
  "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
7750
  "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
7751
  "created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
7564
7752
  "created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
7565
7753
  "expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
7566
7754
  "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
- "accepted_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who redeemed the link. Null until accepted.'),
7568
- "accepted_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted. Null until accepted.')
7755
+ "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'),
7756
+ "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'),
7757
+ "inviter": zod.union([zod.object({
7758
+ "user_id": zod.string().regex(rejectInvitationResponseTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
7759
+ "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'),
7760
+ "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'),
7761
+ "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')
7762
+ }).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
7763
  }).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
7764
  "type": zod.enum(['team_member']),
7571
7765
  "team_member": zod.object({
@@ -7603,11 +7797,13 @@ export const getInvitationResponseOneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-
7603
7797
  export const getInvitationResponseOneOneMetadataOneNameMax = 200;
7604
7798
 
7605
7799
 
7800
+ export const getInvitationResponseOneOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
7606
7801
  export const getInvitationResponseTwoOneIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7607
7802
  export const getInvitationResponseTwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7608
7803
  export const getInvitationResponseTwoOneMetadataOneNameMax = 200;
7609
7804
 
7610
7805
 
7806
+ export const getInvitationResponseTwoOneInviterOneUserIdRegExp = new RegExp('^user_[a-zA-Z0-9_-]+$');
7611
7807
  export const getInvitationResponseTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7612
7808
 
7613
7809
 
@@ -7616,15 +7812,21 @@ export const GetInvitationResponse = zod.union([zod.object({
7616
7812
  "project_id": zod.string().regex(getInvitationResponseOneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
7617
7813
  "metadata": zod.union([zod.object({
7618
7814
  "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 or declined. Cancel deletes the row with it; replace\nmoves 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 or decline.\nCancel and replace delete the row.\n'),
7815
+ }).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
7816
  "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
7817
  "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
7818
  "created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
7623
7819
  "created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
7624
7820
  "expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
7625
7821
  "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
- "accepted_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who redeemed the link. Null until accepted.'),
7627
- "accepted_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted. Null until accepted.')
7822
+ "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'),
7823
+ "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'),
7824
+ "inviter": zod.union([zod.object({
7825
+ "user_id": zod.string().regex(getInvitationResponseOneOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
7826
+ "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'),
7827
+ "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'),
7828
+ "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')
7829
+ }).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
7830
  }).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
7831
  "type": zod.enum(['project_member']),
7630
7832
  "project_member": zod.object({
@@ -7635,15 +7837,21 @@ export const GetInvitationResponse = zod.union([zod.object({
7635
7837
  "project_id": zod.string().regex(getInvitationResponseTwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
7636
7838
  "metadata": zod.union([zod.object({
7637
7839
  "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 or declined. Cancel deletes the row with it; replace\nmoves 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 or decline.\nCancel and replace delete the row.\n'),
7840
+ }).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
7841
  "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
7842
  "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
7843
  "created_by_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('What kind of principal `created_by` names.'),
7642
7844
  "created_at": zod.iso.datetime({"offset":true}).describe('When the invitation was created.'),
7643
7845
  "expires_at": zod.iso.datetime({"offset":true}).describe('When the invitation expires (72 hours after create).'),
7644
7846
  "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
- "accepted_by": zod.union([zod.string(),zod.null()]).optional().describe('The user who redeemed the link. Null until accepted.'),
7646
- "accepted_at": zod.union([zod.iso.datetime({"offset":true}),zod.null()]).optional().describe('When the invitation was accepted. Null until accepted.')
7847
+ "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'),
7848
+ "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'),
7849
+ "inviter": zod.union([zod.object({
7850
+ "user_id": zod.string().regex(getInvitationResponseTwoOneInviterOneUserIdRegExp, "must be a user ID: user_ followed by letters, digits, _ or -"),
7851
+ "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'),
7852
+ "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'),
7853
+ "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')
7854
+ }).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
7855
  }).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
7856
  "type": zod.enum(['team_member']),
7649
7857
  "team_member": zod.object({
@@ -7654,10 +7862,9 @@ export const GetInvitationResponse = zod.union([zod.object({
7654
7862
 
7655
7863
 
7656
7864
  /**
7657
- * Deletes a pending invitation. Its link can no longer be redeemed. Only a
7658
- * `pending` invitation can be cancelled; a finished invitation answers the
7659
- * same opaque `404` as a miss. Expired invitations keep their row until a
7660
- * later cleanup job removes them.
7865
+ * Deletes a pending, expired or rejected invitation, with its metadata. A
7866
+ * pending invitation's link can no longer be redeemed. An accepted
7867
+ * invitation answers the same opaque `404` as a miss.
7661
7868
  *
7662
7869
  * Authenticate with a project secret (`oauth2`) or a console session cookie
7663
7870
  * (`sessionCookie`). Cancelling needs the same project `admin` check as
@@ -7765,11 +7972,11 @@ export const listEventsResponseEventsItemTwothreeOneProjectIdRegExp = new RegExp
7765
7972
  export const listEventsResponseEventsItemTwofourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7766
7973
  export const listEventsResponseEventsItemTwofiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7767
7974
  export const listEventsResponseEventsItemTwosixOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7768
- export const listEventsResponseEventsItemTwosixTwoPayloadTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7769
7975
  export const listEventsResponseEventsItemTwosevenOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7976
+ export const listEventsResponseEventsItemTwosevenTwoPayloadTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7770
7977
  export const listEventsResponseEventsItemTwoeightOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7771
- export const listEventsResponseEventsItemTwoeightTwoPayloadTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7772
7978
  export const listEventsResponseEventsItemTwonineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7979
+ export const listEventsResponseEventsItemTwonineTwoPayloadTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7773
7980
  export const listEventsResponseEventsItemThreezeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7774
7981
  export const listEventsResponseEventsItemThreeoneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7775
7982
  export const listEventsResponseEventsItemThreetwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
@@ -7780,19 +7987,19 @@ export const listEventsResponseEventsItemThreesixOneProjectIdRegExp = new RegExp
7780
7987
  export const listEventsResponseEventsItemThreesevenOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7781
7988
  export const listEventsResponseEventsItemThreeeightOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7782
7989
  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
7990
  export const listEventsResponseEventsItemFourzeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7789
- export const listEventsResponseEventsItemFourzeroTwoPayloadStatusMin = 100;
7790
- export const listEventsResponseEventsItemFourzeroTwoPayloadStatusMax = 599;
7991
+ export const listEventsResponseEventsItemFouroneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7992
+ export const listEventsResponseEventsItemFouroneTwoPayloadContentHashMin = 71;
7993
+ export const listEventsResponseEventsItemFouroneTwoPayloadContentHashMax = 71;
7791
7994
 
7792
- export const listEventsResponseEventsItemFourzeroTwoPayloadDurationMsMin = 0;
7793
7995
 
7794
- export const listEventsResponseEventsItemFouroneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7996
+ export const listEventsResponseEventsItemFouroneTwoPayloadContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
7795
7997
  export const listEventsResponseEventsItemFourtwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7998
+ export const listEventsResponseEventsItemFourtwoTwoPayloadStatusMin = 100;
7999
+ export const listEventsResponseEventsItemFourtwoTwoPayloadStatusMax = 599;
8000
+
8001
+ export const listEventsResponseEventsItemFourtwoTwoPayloadDurationMsMin = 0;
8002
+
7796
8003
  export const listEventsResponseEventsItemFourthreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7797
8004
  export const listEventsResponseEventsItemFourfourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7798
8005
  export const listEventsResponseEventsItemFourfiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
@@ -7803,6 +8010,8 @@ export const listEventsResponseEventsItemFournineOneProjectIdRegExp = new RegExp
7803
8010
  export const listEventsResponseEventsItemFivezeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7804
8011
  export const listEventsResponseEventsItemFiveoneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7805
8012
  export const listEventsResponseEventsItemFivetwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
8013
+ export const listEventsResponseEventsItemFivethreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
8014
+ export const listEventsResponseEventsItemFivefourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
7806
8015
 
7807
8016
 
7808
8017
  export const ListEventsResponse = zod.object({
@@ -7828,7 +8037,7 @@ export const ListEventsResponse = zod.object({
7828
8037
  "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
8038
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
7830
8039
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
7831
- "metadata": zod.object({
8040
+ "metadata": zod.looseObject({
7832
8041
  "authorization": zod.object({
7833
8042
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
7834
8043
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -7869,7 +8078,7 @@ export const ListEventsResponse = zod.object({
7869
8078
  "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
8079
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
7871
8080
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
7872
- "metadata": zod.object({
8081
+ "metadata": zod.looseObject({
7873
8082
  "authorization": zod.object({
7874
8083
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
7875
8084
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -7910,7 +8119,7 @@ export const ListEventsResponse = zod.object({
7910
8119
  "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
8120
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
7912
8121
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
7913
- "metadata": zod.object({
8122
+ "metadata": zod.looseObject({
7914
8123
  "authorization": zod.object({
7915
8124
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
7916
8125
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -7948,7 +8157,7 @@ export const ListEventsResponse = zod.object({
7948
8157
  "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
8158
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
7950
8159
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
7951
- "metadata": zod.object({
8160
+ "metadata": zod.looseObject({
7952
8161
  "authorization": zod.object({
7953
8162
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
7954
8163
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -7986,7 +8195,7 @@ export const ListEventsResponse = zod.object({
7986
8195
  "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
8196
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
7988
8197
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
7989
- "metadata": zod.object({
8198
+ "metadata": zod.looseObject({
7990
8199
  "authorization": zod.object({
7991
8200
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
7992
8201
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8026,7 +8235,7 @@ export const ListEventsResponse = zod.object({
8026
8235
  "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
8236
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8028
8237
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8029
- "metadata": zod.object({
8238
+ "metadata": zod.looseObject({
8030
8239
  "authorization": zod.object({
8031
8240
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8032
8241
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8066,7 +8275,7 @@ export const ListEventsResponse = zod.object({
8066
8275
  "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
8276
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8068
8277
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8069
- "metadata": zod.object({
8278
+ "metadata": zod.looseObject({
8070
8279
  "authorization": zod.object({
8071
8280
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8072
8281
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8105,7 +8314,7 @@ export const ListEventsResponse = zod.object({
8105
8314
  "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
8315
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8107
8316
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8108
- "metadata": zod.object({
8317
+ "metadata": zod.looseObject({
8109
8318
  "authorization": zod.object({
8110
8319
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8111
8320
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8144,7 +8353,45 @@ export const ListEventsResponse = zod.object({
8144
8353
  "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
8354
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8146
8355
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8147
- "metadata": zod.object({
8356
+ "metadata": zod.looseObject({
8357
+ "authorization": zod.object({
8358
+ "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8359
+ "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
8360
+ }).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'),
8361
+ "client": zod.object({
8362
+ "ip": zod.string().optional().describe('The client IP, from the first `X-Forwarded-For` hop or the remote address.'),
8363
+ "user_agent": zod.string().optional().describe('The observed `User-Agent` header.'),
8364
+ "origin": zod.string().optional().describe('The `Origin` header, when present.')
8365
+ }).optional().describe('The observed HTTP requestor context, set only on events from an API request (`request.api`).')
8366
+ }).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')
8367
+ }).describe('The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n').and(zod.object({
8368
+ "event_type": zod.literal("auth.request.created"),
8369
+ "payload": zod.object({
8370
+ "client_id": zod.string()
8371
+ }).describe('Payload for `auth.request.created` events.')
8372
+ })).describe('An event of type auth.request.created, with the shared event fields and its own payload.\n'),zod.object({
8373
+ "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8374
+ "project_id": zod.string().regex(listEventsResponseEventsItemOnezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8375
+ "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8376
+ "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8377
+ "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
8378
+ "occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened, on the server\'s clock, to the millisecond.\n'),
8379
+ "created_at": zod.iso.datetime({"offset":true}).describe('When the event was stored, on the server\'s clock, to the millisecond.\n'),
8380
+ "actor_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the actor that triggered the event.'),
8381
+ "actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('The kind of actor that triggered the event.'),
8382
+ "entity_type": zod.union([zod.string(),zod.null()]).optional().describe('The type of resource the event affected.'),
8383
+ "entity_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the resource the event affected.'),
8384
+ "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'),
8385
+ "client_id": zod.string().describe('The application or agent that produced the event.'),
8386
+ "token_id": zod.string().optional().describe('The ID of the token in use when the event was emitted, when there was one.'),
8387
+ "delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('The kind of delegation. Absent when unset.'),
8388
+ "delegation_id": zod.string().optional(),
8389
+ "grantor": zod.string().optional(),
8390
+ "fingerprint": zod.string().optional().describe('A device fingerprint ID that correlates events from the same device.'),
8391
+ "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'),
8392
+ "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8393
+ "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8394
+ "metadata": zod.looseObject({
8148
8395
  "authorization": zod.object({
8149
8396
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8150
8397
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8164,7 +8411,7 @@ export const ListEventsResponse = zod.object({
8164
8411
  }).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
8412
  })).describe('An event of type auth.sso.authorization.failed, with the shared event fields and its own payload.\n'),zod.object({
8166
8413
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8167
- "project_id": zod.string().regex(listEventsResponseEventsItemOnezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8414
+ "project_id": zod.string().regex(listEventsResponseEventsItemOneoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8168
8415
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8169
8416
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8170
8417
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8184,7 +8431,7 @@ export const ListEventsResponse = zod.object({
8184
8431
  "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
8432
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8186
8433
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8187
- "metadata": zod.object({
8434
+ "metadata": zod.looseObject({
8188
8435
  "authorization": zod.object({
8189
8436
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8190
8437
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8204,7 +8451,7 @@ export const ListEventsResponse = zod.object({
8204
8451
  }).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
8452
  })).describe('An event of type auth.sso.exchange.failed, with the shared event fields and its own payload.\n'),zod.object({
8206
8453
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8207
- "project_id": zod.string().regex(listEventsResponseEventsItemOneoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8454
+ "project_id": zod.string().regex(listEventsResponseEventsItemOnetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8208
8455
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8209
8456
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8210
8457
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8224,7 +8471,7 @@ export const ListEventsResponse = zod.object({
8224
8471
  "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
8472
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8226
8473
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8227
- "metadata": zod.object({
8474
+ "metadata": zod.looseObject({
8228
8475
  "authorization": zod.object({
8229
8476
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8230
8477
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8244,7 +8491,7 @@ export const ListEventsResponse = zod.object({
8244
8491
  }).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
8492
  })).describe('An event of type auth.sso.exchange.succeeded, with the shared event fields and its own payload.\n'),zod.object({
8246
8493
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8247
- "project_id": zod.string().regex(listEventsResponseEventsItemOnetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8494
+ "project_id": zod.string().regex(listEventsResponseEventsItemOnethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8248
8495
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8249
8496
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8250
8497
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8264,7 +8511,7 @@ export const ListEventsResponse = zod.object({
8264
8511
  "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
8512
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8266
8513
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8267
- "metadata": zod.object({
8514
+ "metadata": zod.looseObject({
8268
8515
  "authorization": zod.object({
8269
8516
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8270
8517
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8282,7 +8529,7 @@ export const ListEventsResponse = zod.object({
8282
8529
  }).describe('Payload for `auth.token.issued` events.')
8283
8530
  })).describe('An event of type auth.token.issued, with the shared event fields and its own payload.\n'),zod.object({
8284
8531
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8285
- "project_id": zod.string().regex(listEventsResponseEventsItemOnethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8532
+ "project_id": zod.string().regex(listEventsResponseEventsItemOnefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8286
8533
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8287
8534
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8288
8535
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8302,7 +8549,7 @@ export const ListEventsResponse = zod.object({
8302
8549
  "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
8550
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8304
8551
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8305
- "metadata": zod.object({
8552
+ "metadata": zod.looseObject({
8306
8553
  "authorization": zod.object({
8307
8554
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8308
8555
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8320,7 +8567,7 @@ export const ListEventsResponse = zod.object({
8320
8567
  }).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
8321
8568
  })).describe('An event of type auth.token.revoked, with the shared event fields and its own payload.\n'),zod.object({
8322
8569
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8323
- "project_id": zod.string().regex(listEventsResponseEventsItemOnefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8570
+ "project_id": zod.string().regex(listEventsResponseEventsItemOnefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8324
8571
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8325
8572
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8326
8573
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8340,7 +8587,7 @@ export const ListEventsResponse = zod.object({
8340
8587
  "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
8588
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8342
8589
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8343
- "metadata": zod.object({
8590
+ "metadata": zod.looseObject({
8344
8591
  "authorization": zod.object({
8345
8592
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8346
8593
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8360,7 +8607,7 @@ export const ListEventsResponse = zod.object({
8360
8607
  }).describe('Payload for `authz.granted` events.')
8361
8608
  })).describe('An event of type authz.granted, with the shared event fields and its own payload.\n'),zod.object({
8362
8609
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8363
- "project_id": zod.string().regex(listEventsResponseEventsItemOnefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8610
+ "project_id": zod.string().regex(listEventsResponseEventsItemOnesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8364
8611
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8365
8612
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8366
8613
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8380,7 +8627,7 @@ export const ListEventsResponse = zod.object({
8380
8627
  "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
8628
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8382
8629
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8383
- "metadata": zod.object({
8630
+ "metadata": zod.looseObject({
8384
8631
  "authorization": zod.object({
8385
8632
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8386
8633
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8400,7 +8647,7 @@ export const ListEventsResponse = zod.object({
8400
8647
  }).describe('Payload for `authz.granted` events.')
8401
8648
  })).describe('An event of type authz.revoked, with the shared event fields and its own payload.\n'),zod.object({
8402
8649
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8403
- "project_id": zod.string().regex(listEventsResponseEventsItemOnesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8650
+ "project_id": zod.string().regex(listEventsResponseEventsItemOnesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8404
8651
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8405
8652
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8406
8653
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8420,7 +8667,7 @@ export const ListEventsResponse = zod.object({
8420
8667
  "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
8668
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8422
8669
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8423
- "metadata": zod.object({
8670
+ "metadata": zod.looseObject({
8424
8671
  "authorization": zod.object({
8425
8672
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8426
8673
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8441,7 +8688,7 @@ export const ListEventsResponse = zod.object({
8441
8688
  }).describe('Payload for `branding.created`. It holds only the fields listed here and\nleaves out `liquid_template`.\n')
8442
8689
  })).describe('An event of type branding.created, with the shared event fields and its own payload.\n'),zod.object({
8443
8690
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8444
- "project_id": zod.string().regex(listEventsResponseEventsItemOnesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8691
+ "project_id": zod.string().regex(listEventsResponseEventsItemOneeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8445
8692
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8446
8693
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8447
8694
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8461,7 +8708,7 @@ export const ListEventsResponse = zod.object({
8461
8708
  "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
8709
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8463
8710
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8464
- "metadata": zod.object({
8711
+ "metadata": zod.looseObject({
8465
8712
  "authorization": zod.object({
8466
8713
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8467
8714
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8483,7 +8730,7 @@ export const ListEventsResponse = zod.object({
8483
8730
  }).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
8731
  })).describe('An event of type deployment.created, with the shared event fields and its own payload.\n'),zod.object({
8485
8732
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8486
- "project_id": zod.string().regex(listEventsResponseEventsItemOneeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8733
+ "project_id": zod.string().regex(listEventsResponseEventsItemOnenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8487
8734
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8488
8735
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8489
8736
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8503,7 +8750,7 @@ export const ListEventsResponse = zod.object({
8503
8750
  "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
8751
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8505
8752
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8506
- "metadata": zod.object({
8753
+ "metadata": zod.looseObject({
8507
8754
  "authorization": zod.object({
8508
8755
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8509
8756
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8521,7 +8768,7 @@ export const ListEventsResponse = zod.object({
8521
8768
  }).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
8522
8769
  })).describe('An event of type flow.signup_challenge.consumed, with the shared event fields and its own payload.\n'),zod.object({
8523
8770
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8524
- "project_id": zod.string().regex(listEventsResponseEventsItemOnenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8771
+ "project_id": zod.string().regex(listEventsResponseEventsItemTwozeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8525
8772
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8526
8773
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8527
8774
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8541,7 +8788,7 @@ export const ListEventsResponse = zod.object({
8541
8788
  "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
8789
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8543
8790
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8544
- "metadata": zod.object({
8791
+ "metadata": zod.looseObject({
8545
8792
  "authorization": zod.object({
8546
8793
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8547
8794
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8559,7 +8806,7 @@ export const ListEventsResponse = zod.object({
8559
8806
  }).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
8560
8807
  })).describe('An event of type flow.signup_challenge.issued, with the shared event fields and its own payload.\n'),zod.object({
8561
8808
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8562
- "project_id": zod.string().regex(listEventsResponseEventsItemTwozeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8809
+ "project_id": zod.string().regex(listEventsResponseEventsItemTwooneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8563
8810
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8564
8811
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8565
8812
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8579,7 +8826,7 @@ export const ListEventsResponse = zod.object({
8579
8826
  "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
8827
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8581
8828
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8582
- "metadata": zod.object({
8829
+ "metadata": zod.looseObject({
8583
8830
  "authorization": zod.object({
8584
8831
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8585
8832
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8603,7 +8850,7 @@ export const ListEventsResponse = zod.object({
8603
8850
  }).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
8851
  })).describe('An event of type flowdef.created, with the shared event fields and its own payload.\n'),zod.object({
8605
8852
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8606
- "project_id": zod.string().regex(listEventsResponseEventsItemTwooneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8853
+ "project_id": zod.string().regex(listEventsResponseEventsItemTwotwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8607
8854
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8608
8855
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8609
8856
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8623,7 +8870,7 @@ export const ListEventsResponse = zod.object({
8623
8870
  "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
8871
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8625
8872
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8626
- "metadata": zod.object({
8873
+ "metadata": zod.looseObject({
8627
8874
  "authorization": zod.object({
8628
8875
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8629
8876
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8641,7 +8888,7 @@ export const ListEventsResponse = zod.object({
8641
8888
  }).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
8642
8889
  })).describe('An event of type flowdef.deleted, with the shared event fields and its own payload.\n'),zod.object({
8643
8890
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8644
- "project_id": zod.string().regex(listEventsResponseEventsItemTwotwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8891
+ "project_id": zod.string().regex(listEventsResponseEventsItemTwothreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8645
8892
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8646
8893
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8647
8894
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8661,7 +8908,7 @@ export const ListEventsResponse = zod.object({
8661
8908
  "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
8909
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8663
8910
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8664
- "metadata": zod.object({
8911
+ "metadata": zod.looseObject({
8665
8912
  "authorization": zod.object({
8666
8913
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8667
8914
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8685,7 +8932,7 @@ export const ListEventsResponse = zod.object({
8685
8932
  }).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
8933
  })).describe('An event of type flowdef.updated, with the shared event fields and its own payload.\n'),zod.object({
8687
8934
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8688
- "project_id": zod.string().regex(listEventsResponseEventsItemTwothreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8935
+ "project_id": zod.string().regex(listEventsResponseEventsItemTwofourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8689
8936
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8690
8937
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8691
8938
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8705,7 +8952,7 @@ export const ListEventsResponse = zod.object({
8705
8952
  "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
8953
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8707
8954
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8708
- "metadata": zod.object({
8955
+ "metadata": zod.looseObject({
8709
8956
  "authorization": zod.object({
8710
8957
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8711
8958
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8727,7 +8974,7 @@ export const ListEventsResponse = zod.object({
8727
8974
  }).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
8975
  })).describe('An event of type idp.created, with the shared event fields and its own payload.\n'),zod.object({
8729
8976
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8730
- "project_id": zod.string().regex(listEventsResponseEventsItemTwofourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8977
+ "project_id": zod.string().regex(listEventsResponseEventsItemTwofiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8731
8978
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8732
8979
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8733
8980
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8747,7 +8994,7 @@ export const ListEventsResponse = zod.object({
8747
8994
  "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
8995
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8749
8996
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8750
- "metadata": zod.object({
8997
+ "metadata": zod.looseObject({
8751
8998
  "authorization": zod.object({
8752
8999
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8753
9000
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8766,7 +9013,7 @@ export const ListEventsResponse = zod.object({
8766
9013
  }).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
9014
  })).describe('An event of type idp.identity_link.created, with the shared event fields and its own payload.\n'),zod.object({
8768
9015
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8769
- "project_id": zod.string().regex(listEventsResponseEventsItemTwofiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9016
+ "project_id": zod.string().regex(listEventsResponseEventsItemTwosixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8770
9017
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8771
9018
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8772
9019
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8786,7 +9033,7 @@ export const ListEventsResponse = zod.object({
8786
9033
  "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
9034
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8788
9035
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8789
- "metadata": zod.object({
9036
+ "metadata": zod.looseObject({
8790
9037
  "authorization": zod.object({
8791
9038
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8792
9039
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8808,7 +9055,7 @@ export const ListEventsResponse = zod.object({
8808
9055
  }).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
9056
  })).describe('An event of type idp.updated, with the shared event fields and its own payload.\n'),zod.object({
8810
9057
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8811
- "project_id": zod.string().regex(listEventsResponseEventsItemTwosixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9058
+ "project_id": zod.string().regex(listEventsResponseEventsItemTwosevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8812
9059
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8813
9060
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8814
9061
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8828,7 +9075,7 @@ export const ListEventsResponse = zod.object({
8828
9075
  "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
9076
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8830
9077
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8831
- "metadata": zod.object({
9078
+ "metadata": zod.looseObject({
8832
9079
  "authorization": zod.object({
8833
9080
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8834
9081
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8855,13 +9102,13 @@ export const ListEventsResponse = zod.object({
8855
9102
  }).describe('Fields every `invitation.accepted` payload carries, whatever its `type`.\n').and(zod.object({
8856
9103
  "type": zod.enum(['team_member']),
8857
9104
  "team_member": zod.object({
8858
- "team_id": zod.string().regex(listEventsResponseEventsItemTwosixTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
9105
+ "team_id": zod.string().regex(listEventsResponseEventsItemTwosevenTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
8859
9106
  "role": zod.enum(['member']).describe('The team role the accepter receives.')
8860
9107
  }).describe('Type-specific input for a `team_member` invitation.')
8861
9108
  })).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
9109
  })).describe('An event of type invitation.accepted, with the shared event fields and its own payload.\n'),zod.object({
8863
9110
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8864
- "project_id": zod.string().regex(listEventsResponseEventsItemTwosevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9111
+ "project_id": zod.string().regex(listEventsResponseEventsItemTwoeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8865
9112
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8866
9113
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8867
9114
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8881,7 +9128,7 @@ export const ListEventsResponse = zod.object({
8881
9128
  "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
9129
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8883
9130
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8884
- "metadata": zod.object({
9131
+ "metadata": zod.looseObject({
8885
9132
  "authorization": zod.object({
8886
9133
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8887
9134
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8904,7 +9151,7 @@ export const ListEventsResponse = zod.object({
8904
9151
  }).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
9152
  })).describe('An event of type invitation.cancelled, with the shared event fields and its own payload.\n'),zod.object({
8906
9153
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8907
- "project_id": zod.string().regex(listEventsResponseEventsItemTwoeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9154
+ "project_id": zod.string().regex(listEventsResponseEventsItemTwonineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8908
9155
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8909
9156
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8910
9157
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8924,7 +9171,7 @@ export const ListEventsResponse = zod.object({
8924
9171
  "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
9172
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8926
9173
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8927
- "metadata": zod.object({
9174
+ "metadata": zod.looseObject({
8928
9175
  "authorization": zod.object({
8929
9176
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8930
9177
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8953,13 +9200,13 @@ export const ListEventsResponse = zod.object({
8953
9200
  }).describe('Fields every `invitation.created` payload carries, whatever its `type`.\n').and(zod.object({
8954
9201
  "type": zod.enum(['team_member']),
8955
9202
  "team_member": zod.object({
8956
- "team_id": zod.string().regex(listEventsResponseEventsItemTwoeightTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
9203
+ "team_id": zod.string().regex(listEventsResponseEventsItemTwonineTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
8957
9204
  "role": zod.enum(['member']).describe('The team role the accepter receives.')
8958
9205
  }).describe('Type-specific input for a `team_member` invitation.')
8959
9206
  })).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
9207
  })).describe('An event of type invitation.created, with the shared event fields and its own payload.\n'),zod.object({
8961
9208
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
8962
- "project_id": zod.string().regex(listEventsResponseEventsItemTwonineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9209
+ "project_id": zod.string().regex(listEventsResponseEventsItemThreezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
8963
9210
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
8964
9211
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
8965
9212
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -8979,7 +9226,7 @@ export const ListEventsResponse = zod.object({
8979
9226
  "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
9227
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
8981
9228
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
8982
- "metadata": zod.object({
9229
+ "metadata": zod.looseObject({
8983
9230
  "authorization": zod.object({
8984
9231
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
8985
9232
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -8998,7 +9245,7 @@ export const ListEventsResponse = zod.object({
8998
9245
  }).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
9246
  })).describe('An event of type invitation.rejected, with the shared event fields and its own payload.\n'),zod.object({
9000
9247
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9001
- "project_id": zod.string().regex(listEventsResponseEventsItemThreezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9248
+ "project_id": zod.string().regex(listEventsResponseEventsItemThreeoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9002
9249
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9003
9250
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9004
9251
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9018,7 +9265,45 @@ export const ListEventsResponse = zod.object({
9018
9265
  "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
9266
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9020
9267
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9021
- "metadata": zod.object({
9268
+ "metadata": zod.looseObject({
9269
+ "authorization": zod.object({
9270
+ "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9271
+ "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
9272
+ }).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'),
9273
+ "client": zod.object({
9274
+ "ip": zod.string().optional().describe('The client IP, from the first `X-Forwarded-For` hop or the remote address.'),
9275
+ "user_agent": zod.string().optional().describe('The observed `User-Agent` header.'),
9276
+ "origin": zod.string().optional().describe('The `Origin` header, when present.')
9277
+ }).optional().describe('The observed HTTP requestor context, set only on events from an API request (`request.api`).')
9278
+ }).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')
9279
+ }).describe('The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n').and(zod.object({
9280
+ "event_type": zod.literal("oauth_settings.created"),
9281
+ "payload": zod.object({
9282
+ "enabled": zod.boolean().describe('Whether the project\'s OAuth authorization server answers.')
9283
+ }).describe('Payload for `oauth_settings.created`: the settings the new revision holds.\nThe revision id is the event\'s `entity_id`.\n')
9284
+ })).describe('An event of type oauth_settings.created, with the shared event fields and its own payload.\n'),zod.object({
9285
+ "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9286
+ "project_id": zod.string().regex(listEventsResponseEventsItemThreetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9287
+ "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9288
+ "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9289
+ "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
9290
+ "occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened, on the server\'s clock, to the millisecond.\n'),
9291
+ "created_at": zod.iso.datetime({"offset":true}).describe('When the event was stored, on the server\'s clock, to the millisecond.\n'),
9292
+ "actor_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the actor that triggered the event.'),
9293
+ "actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('The kind of actor that triggered the event.'),
9294
+ "entity_type": zod.union([zod.string(),zod.null()]).optional().describe('The type of resource the event affected.'),
9295
+ "entity_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the resource the event affected.'),
9296
+ "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'),
9297
+ "client_id": zod.string().describe('The application or agent that produced the event.'),
9298
+ "token_id": zod.string().optional().describe('The ID of the token in use when the event was emitted, when there was one.'),
9299
+ "delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('The kind of delegation. Absent when unset.'),
9300
+ "delegation_id": zod.string().optional(),
9301
+ "grantor": zod.string().optional(),
9302
+ "fingerprint": zod.string().optional().describe('A device fingerprint ID that correlates events from the same device.'),
9303
+ "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'),
9304
+ "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9305
+ "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9306
+ "metadata": zod.looseObject({
9022
9307
  "authorization": zod.object({
9023
9308
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9024
9309
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9037,7 +9322,7 @@ export const ListEventsResponse = zod.object({
9037
9322
  }).describe('Payload for `origin.added` and `origin.removed`.\n')
9038
9323
  })).describe('An event of type origin.added, with the shared event fields and its own payload.\n'),zod.object({
9039
9324
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9040
- "project_id": zod.string().regex(listEventsResponseEventsItemThreeoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9325
+ "project_id": zod.string().regex(listEventsResponseEventsItemThreethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9041
9326
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9042
9327
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9043
9328
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9057,7 +9342,7 @@ export const ListEventsResponse = zod.object({
9057
9342
  "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
9343
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9059
9344
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9060
- "metadata": zod.object({
9345
+ "metadata": zod.looseObject({
9061
9346
  "authorization": zod.object({
9062
9347
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9063
9348
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9076,7 +9361,7 @@ export const ListEventsResponse = zod.object({
9076
9361
  }).describe('Payload for `origin.added` and `origin.removed`.\n')
9077
9362
  })).describe('An event of type origin.removed, with the shared event fields and its own payload.\n'),zod.object({
9078
9363
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9079
- "project_id": zod.string().regex(listEventsResponseEventsItemThreetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9364
+ "project_id": zod.string().regex(listEventsResponseEventsItemThreefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9080
9365
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9081
9366
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9082
9367
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9096,7 +9381,7 @@ export const ListEventsResponse = zod.object({
9096
9381
  "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
9382
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9098
9383
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9099
- "metadata": zod.object({
9384
+ "metadata": zod.looseObject({
9100
9385
  "authorization": zod.object({
9101
9386
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9102
9387
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9116,7 +9401,7 @@ export const ListEventsResponse = zod.object({
9116
9401
  }).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
9402
  })).describe('An event of type policy.created, with the shared event fields and its own payload.\n'),zod.object({
9118
9403
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9119
- "project_id": zod.string().regex(listEventsResponseEventsItemThreethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9404
+ "project_id": zod.string().regex(listEventsResponseEventsItemThreefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9120
9405
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9121
9406
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9122
9407
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9136,7 +9421,7 @@ export const ListEventsResponse = zod.object({
9136
9421
  "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
9422
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9138
9423
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9139
- "metadata": zod.object({
9424
+ "metadata": zod.looseObject({
9140
9425
  "authorization": zod.object({
9141
9426
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9142
9427
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9156,7 +9441,7 @@ export const ListEventsResponse = zod.object({
9156
9441
  }).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
9442
  })).describe('An event of type policy.updated, with the shared event fields and its own payload.\n'),zod.object({
9158
9443
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9159
- "project_id": zod.string().regex(listEventsResponseEventsItemThreefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9444
+ "project_id": zod.string().regex(listEventsResponseEventsItemThreesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9160
9445
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9161
9446
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9162
9447
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9176,7 +9461,7 @@ export const ListEventsResponse = zod.object({
9176
9461
  "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
9462
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9178
9463
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9179
- "metadata": zod.object({
9464
+ "metadata": zod.looseObject({
9180
9465
  "authorization": zod.object({
9181
9466
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9182
9467
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9194,7 +9479,7 @@ export const ListEventsResponse = zod.object({
9194
9479
  }).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
9195
9480
  })).describe('An event of type preview.removed, with the shared event fields and its own payload.\n'),zod.object({
9196
9481
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9197
- "project_id": zod.string().regex(listEventsResponseEventsItemThreefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9482
+ "project_id": zod.string().regex(listEventsResponseEventsItemThreesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9198
9483
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9199
9484
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9200
9485
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9214,7 +9499,7 @@ export const ListEventsResponse = zod.object({
9214
9499
  "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
9500
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9216
9501
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9217
- "metadata": zod.object({
9502
+ "metadata": zod.looseObject({
9218
9503
  "authorization": zod.object({
9219
9504
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9220
9505
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9237,7 +9522,7 @@ export const ListEventsResponse = zod.object({
9237
9522
  }).describe('Payload for `project.created`, which holds every field, and\n`project.updated`, which holds only the changed fields.\n')
9238
9523
  })).describe('An event of type project.created, with the shared event fields and its own payload.\n'),zod.object({
9239
9524
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9240
- "project_id": zod.string().regex(listEventsResponseEventsItemThreesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9525
+ "project_id": zod.string().regex(listEventsResponseEventsItemThreeeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9241
9526
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9242
9527
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9243
9528
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9257,7 +9542,7 @@ export const ListEventsResponse = zod.object({
9257
9542
  "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
9543
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9259
9544
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9260
- "metadata": zod.object({
9545
+ "metadata": zod.looseObject({
9261
9546
  "authorization": zod.object({
9262
9547
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9263
9548
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9275,7 +9560,7 @@ export const ListEventsResponse = zod.object({
9275
9560
  }).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
9276
9561
  })).describe('An event of type project.deleted, with the shared event fields and its own payload.\n'),zod.object({
9277
9562
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9278
- "project_id": zod.string().regex(listEventsResponseEventsItemThreesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9563
+ "project_id": zod.string().regex(listEventsResponseEventsItemThreenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9279
9564
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9280
9565
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9281
9566
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9295,7 +9580,7 @@ export const ListEventsResponse = zod.object({
9295
9580
  "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
9581
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9297
9582
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9298
- "metadata": zod.object({
9583
+ "metadata": zod.looseObject({
9299
9584
  "authorization": zod.object({
9300
9585
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9301
9586
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9318,7 +9603,7 @@ export const ListEventsResponse = zod.object({
9318
9603
  }).describe('Payload for `project.created`, which holds every field, and\n`project.updated`, which holds only the changed fields.\n')
9319
9604
  })).describe('An event of type project.updated, with the shared event fields and its own payload.\n'),zod.object({
9320
9605
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9321
- "project_id": zod.string().regex(listEventsResponseEventsItemThreeeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9606
+ "project_id": zod.string().regex(listEventsResponseEventsItemFourzeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9322
9607
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9323
9608
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9324
9609
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9338,7 +9623,7 @@ export const ListEventsResponse = zod.object({
9338
9623
  "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
9624
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9340
9625
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9341
- "metadata": zod.object({
9626
+ "metadata": zod.looseObject({
9342
9627
  "authorization": zod.object({
9343
9628
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9344
9629
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9364,7 +9649,7 @@ export const ListEventsResponse = zod.object({
9364
9649
  }).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
9650
  })).describe('An event of type release.created, with the shared event fields and its own payload.\n'),zod.object({
9366
9651
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9367
- "project_id": zod.string().regex(listEventsResponseEventsItemThreenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9652
+ "project_id": zod.string().regex(listEventsResponseEventsItemFouroneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9368
9653
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9369
9654
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9370
9655
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9384,7 +9669,7 @@ export const ListEventsResponse = zod.object({
9384
9669
  "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
9670
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9386
9671
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9387
- "metadata": zod.object({
9672
+ "metadata": zod.looseObject({
9388
9673
  "authorization": zod.object({
9389
9674
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9390
9675
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9398,11 +9683,11 @@ export const ListEventsResponse = zod.object({
9398
9683
  }).describe('The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n').and(zod.object({
9399
9684
  "event_type": zod.literal("release.revoked"),
9400
9685
  "payload": zod.object({
9401
- "content_hash": zod.string().min(listEventsResponseEventsItemThreenineTwoPayloadContentHashMin).max(listEventsResponseEventsItemThreenineTwoPayloadContentHashMax).regex(listEventsResponseEventsItemThreenineTwoPayloadContentHashRegExp, "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')
9686
+ "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
9687
  }).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
9688
  })).describe('An event of type release.revoked, with the shared event fields and its own payload.\n'),zod.object({
9404
9689
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9405
- "project_id": zod.string().regex(listEventsResponseEventsItemFourzeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9690
+ "project_id": zod.string().regex(listEventsResponseEventsItemFourtwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9406
9691
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9407
9692
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9408
9693
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9422,7 +9707,7 @@ export const ListEventsResponse = zod.object({
9422
9707
  "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
9708
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9424
9709
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9425
- "metadata": zod.object({
9710
+ "metadata": zod.looseObject({
9426
9711
  "authorization": zod.object({
9427
9712
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9428
9713
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9439,12 +9724,12 @@ export const ListEventsResponse = zod.object({
9439
9724
  "operation_id": zod.string(),
9440
9725
  "method": zod.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS']).describe('HTTP method.'),
9441
9726
  "route_template": zod.string(),
9442
- "status": zod.int().min(listEventsResponseEventsItemFourzeroTwoPayloadStatusMin).max(listEventsResponseEventsItemFourzeroTwoPayloadStatusMax),
9443
- "duration_ms": zod.int().min(listEventsResponseEventsItemFourzeroTwoPayloadDurationMsMin)
9727
+ "status": zod.int().min(listEventsResponseEventsItemFourtwoTwoPayloadStatusMin).max(listEventsResponseEventsItemFourtwoTwoPayloadStatusMax),
9728
+ "duration_ms": zod.int().min(listEventsResponseEventsItemFourtwoTwoPayloadDurationMsMin)
9444
9729
  }).describe('Payload for `request.api` events.')
9445
9730
  })).describe('An event of type request.api, with the shared event fields and its own payload.\n'),zod.object({
9446
9731
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9447
- "project_id": zod.string().regex(listEventsResponseEventsItemFouroneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9732
+ "project_id": zod.string().regex(listEventsResponseEventsItemFourthreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9448
9733
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9449
9734
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9450
9735
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9464,7 +9749,7 @@ export const ListEventsResponse = zod.object({
9464
9749
  "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
9750
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9466
9751
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9467
- "metadata": zod.object({
9752
+ "metadata": zod.looseObject({
9468
9753
  "authorization": zod.object({
9469
9754
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9470
9755
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9483,7 +9768,7 @@ export const ListEventsResponse = zod.object({
9483
9768
  }).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
9769
  })).describe('An event of type schema.created, with the shared event fields and its own payload.\n'),zod.object({
9485
9770
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9486
- "project_id": zod.string().regex(listEventsResponseEventsItemFourtwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9771
+ "project_id": zod.string().regex(listEventsResponseEventsItemFourfourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9487
9772
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9488
9773
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9489
9774
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9503,7 +9788,7 @@ export const ListEventsResponse = zod.object({
9503
9788
  "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
9789
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9505
9790
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9506
- "metadata": zod.object({
9791
+ "metadata": zod.looseObject({
9507
9792
  "authorization": zod.object({
9508
9793
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9509
9794
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9521,7 +9806,7 @@ export const ListEventsResponse = zod.object({
9521
9806
  }).describe('Payload for `session.deleted` events.')
9522
9807
  })).describe('An event of type session.deleted, with the shared event fields and its own payload.\n'),zod.object({
9523
9808
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9524
- "project_id": zod.string().regex(listEventsResponseEventsItemFourthreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9809
+ "project_id": zod.string().regex(listEventsResponseEventsItemFourfiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9525
9810
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9526
9811
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9527
9812
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9541,7 +9826,7 @@ export const ListEventsResponse = zod.object({
9541
9826
  "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
9827
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9543
9828
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9544
- "metadata": zod.object({
9829
+ "metadata": zod.looseObject({
9545
9830
  "authorization": zod.object({
9546
9831
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9547
9832
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9559,7 +9844,7 @@ export const ListEventsResponse = zod.object({
9559
9844
  }).describe('Payload for `session.established` events.')
9560
9845
  })).describe('An event of type session.established, with the shared event fields and its own payload.\n'),zod.object({
9561
9846
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9562
- "project_id": zod.string().regex(listEventsResponseEventsItemFourfourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9847
+ "project_id": zod.string().regex(listEventsResponseEventsItemFoursixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9563
9848
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9564
9849
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9565
9850
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9579,7 +9864,7 @@ export const ListEventsResponse = zod.object({
9579
9864
  "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
9865
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9581
9866
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9582
- "metadata": zod.object({
9867
+ "metadata": zod.looseObject({
9583
9868
  "authorization": zod.object({
9584
9869
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9585
9870
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9597,7 +9882,7 @@ export const ListEventsResponse = zod.object({
9597
9882
  }).describe('Payload for `team.created`, which holds every field, and `team.updated`,\nwhich holds only the changed fields.\n')
9598
9883
  })).describe('An event of type team.created, with the shared event fields and its own payload.\n'),zod.object({
9599
9884
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9600
- "project_id": zod.string().regex(listEventsResponseEventsItemFourfiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9885
+ "project_id": zod.string().regex(listEventsResponseEventsItemFoursevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9601
9886
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9602
9887
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9603
9888
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9617,7 +9902,7 @@ export const ListEventsResponse = zod.object({
9617
9902
  "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
9903
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9619
9904
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9620
- "metadata": zod.object({
9905
+ "metadata": zod.looseObject({
9621
9906
  "authorization": zod.object({
9622
9907
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9623
9908
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9635,7 +9920,7 @@ export const ListEventsResponse = zod.object({
9635
9920
  }).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
9636
9921
  })).describe('An event of type team.deactivated, with the shared event fields and its own payload.\n'),zod.object({
9637
9922
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9638
- "project_id": zod.string().regex(listEventsResponseEventsItemFoursixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9923
+ "project_id": zod.string().regex(listEventsResponseEventsItemFoureightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9639
9924
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9640
9925
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9641
9926
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9655,7 +9940,7 @@ export const ListEventsResponse = zod.object({
9655
9940
  "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
9941
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9657
9942
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9658
- "metadata": zod.object({
9943
+ "metadata": zod.looseObject({
9659
9944
  "authorization": zod.object({
9660
9945
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9661
9946
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9673,7 +9958,7 @@ export const ListEventsResponse = zod.object({
9673
9958
  }).describe('Payload for `team.created`, which holds every field, and `team.updated`,\nwhich holds only the changed fields.\n')
9674
9959
  })).describe('An event of type team.updated, with the shared event fields and its own payload.\n'),zod.object({
9675
9960
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9676
- "project_id": zod.string().regex(listEventsResponseEventsItemFoursevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9961
+ "project_id": zod.string().regex(listEventsResponseEventsItemFournineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9677
9962
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9678
9963
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9679
9964
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9693,7 +9978,7 @@ export const ListEventsResponse = zod.object({
9693
9978
  "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
9979
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9695
9980
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9696
- "metadata": zod.object({
9981
+ "metadata": zod.looseObject({
9697
9982
  "authorization": zod.object({
9698
9983
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9699
9984
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9711,7 +9996,7 @@ export const ListEventsResponse = zod.object({
9711
9996
  }).describe('Payload for `user.create.failed` events.')
9712
9997
  })).describe('An event of type user.create.failed, with the shared event fields and its own payload.\n'),zod.object({
9713
9998
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9714
- "project_id": zod.string().regex(listEventsResponseEventsItemFoureightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9999
+ "project_id": zod.string().regex(listEventsResponseEventsItemFivezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9715
10000
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9716
10001
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9717
10002
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9731,7 +10016,7 @@ export const ListEventsResponse = zod.object({
9731
10016
  "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
10017
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9733
10018
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9734
- "metadata": zod.object({
10019
+ "metadata": zod.looseObject({
9735
10020
  "authorization": zod.object({
9736
10021
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9737
10022
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9751,7 +10036,7 @@ export const ListEventsResponse = zod.object({
9751
10036
  }).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
10037
  })).describe('An event of type user.created, with the shared event fields and its own payload.\n'),zod.object({
9753
10038
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9754
- "project_id": zod.string().regex(listEventsResponseEventsItemFournineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10039
+ "project_id": zod.string().regex(listEventsResponseEventsItemFiveoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9755
10040
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9756
10041
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9757
10042
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9771,7 +10056,7 @@ export const ListEventsResponse = zod.object({
9771
10056
  "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
10057
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9773
10058
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9774
- "metadata": zod.object({
10059
+ "metadata": zod.looseObject({
9775
10060
  "authorization": zod.object({
9776
10061
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9777
10062
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9789,7 +10074,7 @@ export const ListEventsResponse = zod.object({
9789
10074
  }).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
9790
10075
  })).describe('An event of type user.deleted, with the shared event fields and its own payload.\n'),zod.object({
9791
10076
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9792
- "project_id": zod.string().regex(listEventsResponseEventsItemFivezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10077
+ "project_id": zod.string().regex(listEventsResponseEventsItemFivetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9793
10078
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9794
10079
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9795
10080
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9809,7 +10094,7 @@ export const ListEventsResponse = zod.object({
9809
10094
  "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
10095
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9811
10096
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9812
- "metadata": zod.object({
10097
+ "metadata": zod.looseObject({
9813
10098
  "authorization": zod.object({
9814
10099
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9815
10100
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9828,7 +10113,7 @@ export const ListEventsResponse = zod.object({
9828
10113
  }).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
10114
  })).describe('An event of type user.updated, with the shared event fields and its own payload.\n'),zod.object({
9830
10115
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9831
- "project_id": zod.string().regex(listEventsResponseEventsItemFiveoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10116
+ "project_id": zod.string().regex(listEventsResponseEventsItemFivethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9832
10117
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9833
10118
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9834
10119
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9848,7 +10133,7 @@ export const ListEventsResponse = zod.object({
9848
10133
  "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
10134
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9850
10135
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9851
- "metadata": zod.object({
10136
+ "metadata": zod.looseObject({
9852
10137
  "authorization": zod.object({
9853
10138
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9854
10139
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9866,7 +10151,7 @@ export const ListEventsResponse = zod.object({
9866
10151
  }).describe('Payload for `variable.removed` events, one value of the variable removed.')
9867
10152
  })).describe('An event of type variable.removed, with the shared event fields and its own payload.\n'),zod.object({
9868
10153
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
9869
- "project_id": zod.string().regex(listEventsResponseEventsItemFivetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10154
+ "project_id": zod.string().regex(listEventsResponseEventsItemFivefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
9870
10155
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
9871
10156
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
9872
10157
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -9886,7 +10171,7 @@ export const ListEventsResponse = zod.object({
9886
10171
  "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
10172
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
9888
10173
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
9889
- "metadata": zod.object({
10174
+ "metadata": zod.looseObject({
9890
10175
  "authorization": zod.object({
9891
10176
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
9892
10177
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -9958,11 +10243,11 @@ export const getEventResponseTwothreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-
9958
10243
  export const getEventResponseTwofourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9959
10244
  export const getEventResponseTwofiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9960
10245
  export const getEventResponseTwosixOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9961
- export const getEventResponseTwosixTwoPayloadTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9962
10246
  export const getEventResponseTwosevenOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
10247
+ export const getEventResponseTwosevenTwoPayloadTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9963
10248
  export const getEventResponseTwoeightOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9964
- export const getEventResponseTwoeightTwoPayloadTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9965
10249
  export const getEventResponseTwonineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
10250
+ export const getEventResponseTwonineTwoPayloadTwoTwoTeamMemberTeamIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9966
10251
  export const getEventResponseThreezeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9967
10252
  export const getEventResponseThreeoneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9968
10253
  export const getEventResponseThreetwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
@@ -9973,19 +10258,19 @@ export const getEventResponseThreesixOneProjectIdRegExp = new RegExp('^[a-zA-Z0-
9973
10258
  export const getEventResponseThreesevenOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9974
10259
  export const getEventResponseThreeeightOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9975
10260
  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
10261
  export const getEventResponseFourzeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9982
- export const getEventResponseFourzeroTwoPayloadStatusMin = 100;
9983
- export const getEventResponseFourzeroTwoPayloadStatusMax = 599;
10262
+ export const getEventResponseFouroneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
10263
+ export const getEventResponseFouroneTwoPayloadContentHashMin = 71;
10264
+ export const getEventResponseFouroneTwoPayloadContentHashMax = 71;
9984
10265
 
9985
- export const getEventResponseFourzeroTwoPayloadDurationMsMin = 0;
9986
10266
 
9987
- export const getEventResponseFouroneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
10267
+ export const getEventResponseFouroneTwoPayloadContentHashRegExp = new RegExp('^sha256:[0-9a-f]{64}$');
9988
10268
  export const getEventResponseFourtwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
10269
+ export const getEventResponseFourtwoTwoPayloadStatusMin = 100;
10270
+ export const getEventResponseFourtwoTwoPayloadStatusMax = 599;
10271
+
10272
+ export const getEventResponseFourtwoTwoPayloadDurationMsMin = 0;
10273
+
9989
10274
  export const getEventResponseFourthreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9990
10275
  export const getEventResponseFourfourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9991
10276
  export const getEventResponseFourfiveOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
@@ -9996,6 +10281,8 @@ export const getEventResponseFournineOneProjectIdRegExp = new RegExp('^[a-zA-Z0-
9996
10281
  export const getEventResponseFivezeroOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9997
10282
  export const getEventResponseFiveoneOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9998
10283
  export const getEventResponseFivetwoOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
10284
+ export const getEventResponseFivethreeOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
10285
+ export const getEventResponseFivefourOneProjectIdRegExp = new RegExp('^[a-zA-Z0-9_-]+$');
9999
10286
 
10000
10287
 
10001
10288
  export const GetEventResponse = zod.union([zod.object({
@@ -10020,7 +10307,7 @@ export const GetEventResponse = zod.union([zod.object({
10020
10307
  "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
10308
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10022
10309
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10023
- "metadata": zod.object({
10310
+ "metadata": zod.looseObject({
10024
10311
  "authorization": zod.object({
10025
10312
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10026
10313
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10061,7 +10348,7 @@ export const GetEventResponse = zod.union([zod.object({
10061
10348
  "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
10349
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10063
10350
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10064
- "metadata": zod.object({
10351
+ "metadata": zod.looseObject({
10065
10352
  "authorization": zod.object({
10066
10353
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10067
10354
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10102,7 +10389,7 @@ export const GetEventResponse = zod.union([zod.object({
10102
10389
  "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
10390
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10104
10391
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10105
- "metadata": zod.object({
10392
+ "metadata": zod.looseObject({
10106
10393
  "authorization": zod.object({
10107
10394
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10108
10395
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10140,7 +10427,7 @@ export const GetEventResponse = zod.union([zod.object({
10140
10427
  "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
10428
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10142
10429
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10143
- "metadata": zod.object({
10430
+ "metadata": zod.looseObject({
10144
10431
  "authorization": zod.object({
10145
10432
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10146
10433
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10178,7 +10465,7 @@ export const GetEventResponse = zod.union([zod.object({
10178
10465
  "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
10466
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10180
10467
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10181
- "metadata": zod.object({
10468
+ "metadata": zod.looseObject({
10182
10469
  "authorization": zod.object({
10183
10470
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10184
10471
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10218,7 +10505,7 @@ export const GetEventResponse = zod.union([zod.object({
10218
10505
  "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
10506
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10220
10507
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10221
- "metadata": zod.object({
10508
+ "metadata": zod.looseObject({
10222
10509
  "authorization": zod.object({
10223
10510
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10224
10511
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10258,7 +10545,7 @@ export const GetEventResponse = zod.union([zod.object({
10258
10545
  "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
10546
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10260
10547
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10261
- "metadata": zod.object({
10548
+ "metadata": zod.looseObject({
10262
10549
  "authorization": zod.object({
10263
10550
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10264
10551
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10297,7 +10584,7 @@ export const GetEventResponse = zod.union([zod.object({
10297
10584
  "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
10585
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10299
10586
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10300
- "metadata": zod.object({
10587
+ "metadata": zod.looseObject({
10301
10588
  "authorization": zod.object({
10302
10589
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10303
10590
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10336,7 +10623,45 @@ export const GetEventResponse = zod.union([zod.object({
10336
10623
  "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
10624
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10338
10625
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10339
- "metadata": zod.object({
10626
+ "metadata": zod.looseObject({
10627
+ "authorization": zod.object({
10628
+ "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10629
+ "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
10630
+ }).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'),
10631
+ "client": zod.object({
10632
+ "ip": zod.string().optional().describe('The client IP, from the first `X-Forwarded-For` hop or the remote address.'),
10633
+ "user_agent": zod.string().optional().describe('The observed `User-Agent` header.'),
10634
+ "origin": zod.string().optional().describe('The `Origin` header, when present.')
10635
+ }).optional().describe('The observed HTTP requestor context, set only on events from an API request (`request.api`).')
10636
+ }).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')
10637
+ }).describe('The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n').and(zod.object({
10638
+ "event_type": zod.literal("auth.request.created"),
10639
+ "payload": zod.object({
10640
+ "client_id": zod.string()
10641
+ }).describe('Payload for `auth.request.created` events.')
10642
+ })).describe('An event of type auth.request.created, with the shared event fields and its own payload.\n'),zod.object({
10643
+ "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10644
+ "project_id": zod.string().regex(getEventResponseOnezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10645
+ "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10646
+ "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10647
+ "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
10648
+ "occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened, on the server\'s clock, to the millisecond.\n'),
10649
+ "created_at": zod.iso.datetime({"offset":true}).describe('When the event was stored, on the server\'s clock, to the millisecond.\n'),
10650
+ "actor_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the actor that triggered the event.'),
10651
+ "actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('The kind of actor that triggered the event.'),
10652
+ "entity_type": zod.union([zod.string(),zod.null()]).optional().describe('The type of resource the event affected.'),
10653
+ "entity_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the resource the event affected.'),
10654
+ "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'),
10655
+ "client_id": zod.string().describe('The application or agent that produced the event.'),
10656
+ "token_id": zod.string().optional().describe('The ID of the token in use when the event was emitted, when there was one.'),
10657
+ "delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('The kind of delegation. Absent when unset.'),
10658
+ "delegation_id": zod.string().optional(),
10659
+ "grantor": zod.string().optional(),
10660
+ "fingerprint": zod.string().optional().describe('A device fingerprint ID that correlates events from the same device.'),
10661
+ "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'),
10662
+ "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10663
+ "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10664
+ "metadata": zod.looseObject({
10340
10665
  "authorization": zod.object({
10341
10666
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10342
10667
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10356,7 +10681,7 @@ export const GetEventResponse = zod.union([zod.object({
10356
10681
  }).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
10682
  })).describe('An event of type auth.sso.authorization.failed, with the shared event fields and its own payload.\n'),zod.object({
10358
10683
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10359
- "project_id": zod.string().regex(getEventResponseOnezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10684
+ "project_id": zod.string().regex(getEventResponseOneoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10360
10685
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10361
10686
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10362
10687
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -10376,7 +10701,7 @@ export const GetEventResponse = zod.union([zod.object({
10376
10701
  "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
10702
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10378
10703
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10379
- "metadata": zod.object({
10704
+ "metadata": zod.looseObject({
10380
10705
  "authorization": zod.object({
10381
10706
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10382
10707
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10396,7 +10721,7 @@ export const GetEventResponse = zod.union([zod.object({
10396
10721
  }).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
10722
  })).describe('An event of type auth.sso.exchange.failed, with the shared event fields and its own payload.\n'),zod.object({
10398
10723
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10399
- "project_id": zod.string().regex(getEventResponseOneoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10724
+ "project_id": zod.string().regex(getEventResponseOnetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10400
10725
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10401
10726
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10402
10727
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -10416,7 +10741,7 @@ export const GetEventResponse = zod.union([zod.object({
10416
10741
  "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
10742
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10418
10743
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10419
- "metadata": zod.object({
10744
+ "metadata": zod.looseObject({
10420
10745
  "authorization": zod.object({
10421
10746
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10422
10747
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10436,7 +10761,7 @@ export const GetEventResponse = zod.union([zod.object({
10436
10761
  }).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
10762
  })).describe('An event of type auth.sso.exchange.succeeded, with the shared event fields and its own payload.\n'),zod.object({
10438
10763
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10439
- "project_id": zod.string().regex(getEventResponseOnetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10764
+ "project_id": zod.string().regex(getEventResponseOnethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10440
10765
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10441
10766
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10442
10767
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -10456,7 +10781,7 @@ export const GetEventResponse = zod.union([zod.object({
10456
10781
  "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
10782
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10458
10783
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10459
- "metadata": zod.object({
10784
+ "metadata": zod.looseObject({
10460
10785
  "authorization": zod.object({
10461
10786
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10462
10787
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10474,7 +10799,7 @@ export const GetEventResponse = zod.union([zod.object({
10474
10799
  }).describe('Payload for `auth.token.issued` events.')
10475
10800
  })).describe('An event of type auth.token.issued, with the shared event fields and its own payload.\n'),zod.object({
10476
10801
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10477
- "project_id": zod.string().regex(getEventResponseOnethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10802
+ "project_id": zod.string().regex(getEventResponseOnefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10478
10803
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10479
10804
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10480
10805
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -10494,7 +10819,7 @@ export const GetEventResponse = zod.union([zod.object({
10494
10819
  "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
10820
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10496
10821
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10497
- "metadata": zod.object({
10822
+ "metadata": zod.looseObject({
10498
10823
  "authorization": zod.object({
10499
10824
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10500
10825
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10512,7 +10837,7 @@ export const GetEventResponse = zod.union([zod.object({
10512
10837
  }).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
10513
10838
  })).describe('An event of type auth.token.revoked, with the shared event fields and its own payload.\n'),zod.object({
10514
10839
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10515
- "project_id": zod.string().regex(getEventResponseOnefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10840
+ "project_id": zod.string().regex(getEventResponseOnefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10516
10841
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10517
10842
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10518
10843
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -10532,7 +10857,7 @@ export const GetEventResponse = zod.union([zod.object({
10532
10857
  "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
10858
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10534
10859
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10535
- "metadata": zod.object({
10860
+ "metadata": zod.looseObject({
10536
10861
  "authorization": zod.object({
10537
10862
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10538
10863
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10552,7 +10877,7 @@ export const GetEventResponse = zod.union([zod.object({
10552
10877
  }).describe('Payload for `authz.granted` events.')
10553
10878
  })).describe('An event of type authz.granted, with the shared event fields and its own payload.\n'),zod.object({
10554
10879
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10555
- "project_id": zod.string().regex(getEventResponseOnefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10880
+ "project_id": zod.string().regex(getEventResponseOnesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10556
10881
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10557
10882
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10558
10883
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -10572,7 +10897,7 @@ export const GetEventResponse = zod.union([zod.object({
10572
10897
  "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
10898
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10574
10899
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10575
- "metadata": zod.object({
10900
+ "metadata": zod.looseObject({
10576
10901
  "authorization": zod.object({
10577
10902
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10578
10903
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10592,7 +10917,7 @@ export const GetEventResponse = zod.union([zod.object({
10592
10917
  }).describe('Payload for `authz.granted` events.')
10593
10918
  })).describe('An event of type authz.revoked, with the shared event fields and its own payload.\n'),zod.object({
10594
10919
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10595
- "project_id": zod.string().regex(getEventResponseOnesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10920
+ "project_id": zod.string().regex(getEventResponseOnesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10596
10921
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10597
10922
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10598
10923
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -10612,7 +10937,7 @@ export const GetEventResponse = zod.union([zod.object({
10612
10937
  "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
10938
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10614
10939
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10615
- "metadata": zod.object({
10940
+ "metadata": zod.looseObject({
10616
10941
  "authorization": zod.object({
10617
10942
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10618
10943
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10633,7 +10958,7 @@ export const GetEventResponse = zod.union([zod.object({
10633
10958
  }).describe('Payload for `branding.created`. It holds only the fields listed here and\nleaves out `liquid_template`.\n')
10634
10959
  })).describe('An event of type branding.created, with the shared event fields and its own payload.\n'),zod.object({
10635
10960
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10636
- "project_id": zod.string().regex(getEventResponseOnesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10961
+ "project_id": zod.string().regex(getEventResponseOneeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10637
10962
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10638
10963
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10639
10964
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -10653,7 +10978,7 @@ export const GetEventResponse = zod.union([zod.object({
10653
10978
  "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
10979
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10655
10980
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10656
- "metadata": zod.object({
10981
+ "metadata": zod.looseObject({
10657
10982
  "authorization": zod.object({
10658
10983
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10659
10984
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10675,7 +11000,7 @@ export const GetEventResponse = zod.union([zod.object({
10675
11000
  }).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
11001
  })).describe('An event of type deployment.created, with the shared event fields and its own payload.\n'),zod.object({
10677
11002
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10678
- "project_id": zod.string().regex(getEventResponseOneeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11003
+ "project_id": zod.string().regex(getEventResponseOnenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10679
11004
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10680
11005
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10681
11006
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -10695,7 +11020,7 @@ export const GetEventResponse = zod.union([zod.object({
10695
11020
  "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
11021
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10697
11022
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10698
- "metadata": zod.object({
11023
+ "metadata": zod.looseObject({
10699
11024
  "authorization": zod.object({
10700
11025
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10701
11026
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10713,7 +11038,7 @@ export const GetEventResponse = zod.union([zod.object({
10713
11038
  }).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
10714
11039
  })).describe('An event of type flow.signup_challenge.consumed, with the shared event fields and its own payload.\n'),zod.object({
10715
11040
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10716
- "project_id": zod.string().regex(getEventResponseOnenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11041
+ "project_id": zod.string().regex(getEventResponseTwozeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10717
11042
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10718
11043
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10719
11044
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -10733,7 +11058,7 @@ export const GetEventResponse = zod.union([zod.object({
10733
11058
  "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
11059
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10735
11060
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10736
- "metadata": zod.object({
11061
+ "metadata": zod.looseObject({
10737
11062
  "authorization": zod.object({
10738
11063
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10739
11064
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10751,7 +11076,7 @@ export const GetEventResponse = zod.union([zod.object({
10751
11076
  }).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
10752
11077
  })).describe('An event of type flow.signup_challenge.issued, with the shared event fields and its own payload.\n'),zod.object({
10753
11078
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10754
- "project_id": zod.string().regex(getEventResponseTwozeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11079
+ "project_id": zod.string().regex(getEventResponseTwooneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10755
11080
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10756
11081
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10757
11082
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -10771,7 +11096,7 @@ export const GetEventResponse = zod.union([zod.object({
10771
11096
  "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
11097
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10773
11098
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10774
- "metadata": zod.object({
11099
+ "metadata": zod.looseObject({
10775
11100
  "authorization": zod.object({
10776
11101
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10777
11102
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10795,7 +11120,7 @@ export const GetEventResponse = zod.union([zod.object({
10795
11120
  }).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
11121
  })).describe('An event of type flowdef.created, with the shared event fields and its own payload.\n'),zod.object({
10797
11122
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10798
- "project_id": zod.string().regex(getEventResponseTwooneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11123
+ "project_id": zod.string().regex(getEventResponseTwotwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10799
11124
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10800
11125
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10801
11126
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -10815,7 +11140,7 @@ export const GetEventResponse = zod.union([zod.object({
10815
11140
  "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
11141
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10817
11142
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10818
- "metadata": zod.object({
11143
+ "metadata": zod.looseObject({
10819
11144
  "authorization": zod.object({
10820
11145
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10821
11146
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10833,7 +11158,7 @@ export const GetEventResponse = zod.union([zod.object({
10833
11158
  }).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
10834
11159
  })).describe('An event of type flowdef.deleted, with the shared event fields and its own payload.\n'),zod.object({
10835
11160
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10836
- "project_id": zod.string().regex(getEventResponseTwotwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11161
+ "project_id": zod.string().regex(getEventResponseTwothreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10837
11162
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10838
11163
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10839
11164
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -10853,7 +11178,7 @@ export const GetEventResponse = zod.union([zod.object({
10853
11178
  "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
11179
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10855
11180
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10856
- "metadata": zod.object({
11181
+ "metadata": zod.looseObject({
10857
11182
  "authorization": zod.object({
10858
11183
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10859
11184
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10877,7 +11202,7 @@ export const GetEventResponse = zod.union([zod.object({
10877
11202
  }).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
11203
  })).describe('An event of type flowdef.updated, with the shared event fields and its own payload.\n'),zod.object({
10879
11204
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10880
- "project_id": zod.string().regex(getEventResponseTwothreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11205
+ "project_id": zod.string().regex(getEventResponseTwofourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10881
11206
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10882
11207
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10883
11208
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -10897,7 +11222,7 @@ export const GetEventResponse = zod.union([zod.object({
10897
11222
  "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
11223
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10899
11224
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10900
- "metadata": zod.object({
11225
+ "metadata": zod.looseObject({
10901
11226
  "authorization": zod.object({
10902
11227
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10903
11228
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10919,7 +11244,7 @@ export const GetEventResponse = zod.union([zod.object({
10919
11244
  }).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
11245
  })).describe('An event of type idp.created, with the shared event fields and its own payload.\n'),zod.object({
10921
11246
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10922
- "project_id": zod.string().regex(getEventResponseTwofourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11247
+ "project_id": zod.string().regex(getEventResponseTwofiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10923
11248
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10924
11249
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10925
11250
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -10939,7 +11264,7 @@ export const GetEventResponse = zod.union([zod.object({
10939
11264
  "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
11265
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10941
11266
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10942
- "metadata": zod.object({
11267
+ "metadata": zod.looseObject({
10943
11268
  "authorization": zod.object({
10944
11269
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10945
11270
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -10958,7 +11283,7 @@ export const GetEventResponse = zod.union([zod.object({
10958
11283
  }).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
11284
  })).describe('An event of type idp.identity_link.created, with the shared event fields and its own payload.\n'),zod.object({
10960
11285
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
10961
- "project_id": zod.string().regex(getEventResponseTwofiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11286
+ "project_id": zod.string().regex(getEventResponseTwosixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
10962
11287
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
10963
11288
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
10964
11289
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -10978,7 +11303,7 @@ export const GetEventResponse = zod.union([zod.object({
10978
11303
  "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
11304
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
10980
11305
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
10981
- "metadata": zod.object({
11306
+ "metadata": zod.looseObject({
10982
11307
  "authorization": zod.object({
10983
11308
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
10984
11309
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11000,7 +11325,7 @@ export const GetEventResponse = zod.union([zod.object({
11000
11325
  }).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
11326
  })).describe('An event of type idp.updated, with the shared event fields and its own payload.\n'),zod.object({
11002
11327
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11003
- "project_id": zod.string().regex(getEventResponseTwosixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11328
+ "project_id": zod.string().regex(getEventResponseTwosevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11004
11329
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11005
11330
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11006
11331
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11020,7 +11345,7 @@ export const GetEventResponse = zod.union([zod.object({
11020
11345
  "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
11346
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11022
11347
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11023
- "metadata": zod.object({
11348
+ "metadata": zod.looseObject({
11024
11349
  "authorization": zod.object({
11025
11350
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11026
11351
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11047,13 +11372,13 @@ export const GetEventResponse = zod.union([zod.object({
11047
11372
  }).describe('Fields every `invitation.accepted` payload carries, whatever its `type`.\n').and(zod.object({
11048
11373
  "type": zod.enum(['team_member']),
11049
11374
  "team_member": zod.object({
11050
- "team_id": zod.string().regex(getEventResponseTwosixTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
11375
+ "team_id": zod.string().regex(getEventResponseTwosevenTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
11051
11376
  "role": zod.enum(['member']).describe('The team role the accepter receives.')
11052
11377
  }).describe('Type-specific input for a `team_member` invitation.')
11053
11378
  })).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
11379
  })).describe('An event of type invitation.accepted, with the shared event fields and its own payload.\n'),zod.object({
11055
11380
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11056
- "project_id": zod.string().regex(getEventResponseTwosevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11381
+ "project_id": zod.string().regex(getEventResponseTwoeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11057
11382
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11058
11383
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11059
11384
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11073,7 +11398,7 @@ export const GetEventResponse = zod.union([zod.object({
11073
11398
  "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
11399
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11075
11400
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11076
- "metadata": zod.object({
11401
+ "metadata": zod.looseObject({
11077
11402
  "authorization": zod.object({
11078
11403
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11079
11404
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11096,7 +11421,7 @@ export const GetEventResponse = zod.union([zod.object({
11096
11421
  }).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
11422
  })).describe('An event of type invitation.cancelled, with the shared event fields and its own payload.\n'),zod.object({
11098
11423
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11099
- "project_id": zod.string().regex(getEventResponseTwoeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11424
+ "project_id": zod.string().regex(getEventResponseTwonineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11100
11425
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11101
11426
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11102
11427
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11116,7 +11441,7 @@ export const GetEventResponse = zod.union([zod.object({
11116
11441
  "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
11442
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11118
11443
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11119
- "metadata": zod.object({
11444
+ "metadata": zod.looseObject({
11120
11445
  "authorization": zod.object({
11121
11446
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11122
11447
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11145,13 +11470,13 @@ export const GetEventResponse = zod.union([zod.object({
11145
11470
  }).describe('Fields every `invitation.created` payload carries, whatever its `type`.\n').and(zod.object({
11146
11471
  "type": zod.enum(['team_member']),
11147
11472
  "team_member": zod.object({
11148
- "team_id": zod.string().regex(getEventResponseTwoeightTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
11473
+ "team_id": zod.string().regex(getEventResponseTwonineTwoPayloadTwoTwoTeamMemberTeamIdRegExp, "must be one or more letters, digits, _ or -"),
11149
11474
  "role": zod.enum(['member']).describe('The team role the accepter receives.')
11150
11475
  }).describe('Type-specific input for a `team_member` invitation.')
11151
11476
  })).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
11477
  })).describe('An event of type invitation.created, with the shared event fields and its own payload.\n'),zod.object({
11153
11478
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11154
- "project_id": zod.string().regex(getEventResponseTwonineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11479
+ "project_id": zod.string().regex(getEventResponseThreezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11155
11480
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11156
11481
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11157
11482
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11171,7 +11496,7 @@ export const GetEventResponse = zod.union([zod.object({
11171
11496
  "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
11497
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11173
11498
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11174
- "metadata": zod.object({
11499
+ "metadata": zod.looseObject({
11175
11500
  "authorization": zod.object({
11176
11501
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11177
11502
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11190,7 +11515,7 @@ export const GetEventResponse = zod.union([zod.object({
11190
11515
  }).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
11516
  })).describe('An event of type invitation.rejected, with the shared event fields and its own payload.\n'),zod.object({
11192
11517
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11193
- "project_id": zod.string().regex(getEventResponseThreezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11518
+ "project_id": zod.string().regex(getEventResponseThreeoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11194
11519
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11195
11520
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11196
11521
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11210,7 +11535,45 @@ export const GetEventResponse = zod.union([zod.object({
11210
11535
  "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
11536
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11212
11537
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11213
- "metadata": zod.object({
11538
+ "metadata": zod.looseObject({
11539
+ "authorization": zod.object({
11540
+ "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11541
+ "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
11542
+ }).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'),
11543
+ "client": zod.object({
11544
+ "ip": zod.string().optional().describe('The client IP, from the first `X-Forwarded-For` hop or the remote address.'),
11545
+ "user_agent": zod.string().optional().describe('The observed `User-Agent` header.'),
11546
+ "origin": zod.string().optional().describe('The `Origin` header, when present.')
11547
+ }).optional().describe('The observed HTTP requestor context, set only on events from an API request (`request.api`).')
11548
+ }).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')
11549
+ }).describe('The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n').and(zod.object({
11550
+ "event_type": zod.literal("oauth_settings.created"),
11551
+ "payload": zod.object({
11552
+ "enabled": zod.boolean().describe('Whether the project\'s OAuth authorization server answers.')
11553
+ }).describe('Payload for `oauth_settings.created`: the settings the new revision holds.\nThe revision id is the event\'s `entity_id`.\n')
11554
+ })).describe('An event of type oauth_settings.created, with the shared event fields and its own payload.\n'),zod.object({
11555
+ "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11556
+ "project_id": zod.string().regex(getEventResponseThreetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11557
+ "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11558
+ "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11559
+ "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
11560
+ "occurred_at": zod.iso.datetime({"offset":true}).describe('When the action happened, on the server\'s clock, to the millisecond.\n'),
11561
+ "created_at": zod.iso.datetime({"offset":true}).describe('When the event was stored, on the server\'s clock, to the millisecond.\n'),
11562
+ "actor_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the actor that triggered the event.'),
11563
+ "actor_type": zod.union([zod.enum(['human', 'service', 'system', 'agent']),zod.null()]).optional().describe('The kind of actor that triggered the event.'),
11564
+ "entity_type": zod.union([zod.string(),zod.null()]).optional().describe('The type of resource the event affected.'),
11565
+ "entity_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the resource the event affected.'),
11566
+ "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'),
11567
+ "client_id": zod.string().describe('The application or agent that produced the event.'),
11568
+ "token_id": zod.string().optional().describe('The ID of the token in use when the event was emitted, when there was one.'),
11569
+ "delegation_type": zod.enum(['direct', 'delegated', 'pat_shared', 'exchanged']).optional().describe('The kind of delegation. Absent when unset.'),
11570
+ "delegation_id": zod.string().optional(),
11571
+ "grantor": zod.string().optional(),
11572
+ "fingerprint": zod.string().optional().describe('A device fingerprint ID that correlates events from the same device.'),
11573
+ "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'),
11574
+ "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11575
+ "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11576
+ "metadata": zod.looseObject({
11214
11577
  "authorization": zod.object({
11215
11578
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11216
11579
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11229,7 +11592,7 @@ export const GetEventResponse = zod.union([zod.object({
11229
11592
  }).describe('Payload for `origin.added` and `origin.removed`.\n')
11230
11593
  })).describe('An event of type origin.added, with the shared event fields and its own payload.\n'),zod.object({
11231
11594
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11232
- "project_id": zod.string().regex(getEventResponseThreeoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11595
+ "project_id": zod.string().regex(getEventResponseThreethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11233
11596
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11234
11597
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11235
11598
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11249,7 +11612,7 @@ export const GetEventResponse = zod.union([zod.object({
11249
11612
  "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
11613
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11251
11614
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11252
- "metadata": zod.object({
11615
+ "metadata": zod.looseObject({
11253
11616
  "authorization": zod.object({
11254
11617
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11255
11618
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11268,7 +11631,7 @@ export const GetEventResponse = zod.union([zod.object({
11268
11631
  }).describe('Payload for `origin.added` and `origin.removed`.\n')
11269
11632
  })).describe('An event of type origin.removed, with the shared event fields and its own payload.\n'),zod.object({
11270
11633
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11271
- "project_id": zod.string().regex(getEventResponseThreetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11634
+ "project_id": zod.string().regex(getEventResponseThreefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11272
11635
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11273
11636
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11274
11637
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11288,7 +11651,7 @@ export const GetEventResponse = zod.union([zod.object({
11288
11651
  "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
11652
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11290
11653
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11291
- "metadata": zod.object({
11654
+ "metadata": zod.looseObject({
11292
11655
  "authorization": zod.object({
11293
11656
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11294
11657
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11308,7 +11671,7 @@ export const GetEventResponse = zod.union([zod.object({
11308
11671
  }).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
11672
  })).describe('An event of type policy.created, with the shared event fields and its own payload.\n'),zod.object({
11310
11673
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11311
- "project_id": zod.string().regex(getEventResponseThreethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11674
+ "project_id": zod.string().regex(getEventResponseThreefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11312
11675
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11313
11676
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11314
11677
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11328,7 +11691,7 @@ export const GetEventResponse = zod.union([zod.object({
11328
11691
  "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
11692
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11330
11693
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11331
- "metadata": zod.object({
11694
+ "metadata": zod.looseObject({
11332
11695
  "authorization": zod.object({
11333
11696
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11334
11697
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11348,7 +11711,7 @@ export const GetEventResponse = zod.union([zod.object({
11348
11711
  }).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
11712
  })).describe('An event of type policy.updated, with the shared event fields and its own payload.\n'),zod.object({
11350
11713
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11351
- "project_id": zod.string().regex(getEventResponseThreefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11714
+ "project_id": zod.string().regex(getEventResponseThreesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11352
11715
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11353
11716
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11354
11717
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11368,7 +11731,7 @@ export const GetEventResponse = zod.union([zod.object({
11368
11731
  "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
11732
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11370
11733
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11371
- "metadata": zod.object({
11734
+ "metadata": zod.looseObject({
11372
11735
  "authorization": zod.object({
11373
11736
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11374
11737
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11386,7 +11749,7 @@ export const GetEventResponse = zod.union([zod.object({
11386
11749
  }).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
11387
11750
  })).describe('An event of type preview.removed, with the shared event fields and its own payload.\n'),zod.object({
11388
11751
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11389
- "project_id": zod.string().regex(getEventResponseThreefiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11752
+ "project_id": zod.string().regex(getEventResponseThreesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11390
11753
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11391
11754
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11392
11755
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11406,7 +11769,7 @@ export const GetEventResponse = zod.union([zod.object({
11406
11769
  "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
11770
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11408
11771
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11409
- "metadata": zod.object({
11772
+ "metadata": zod.looseObject({
11410
11773
  "authorization": zod.object({
11411
11774
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11412
11775
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11429,7 +11792,7 @@ export const GetEventResponse = zod.union([zod.object({
11429
11792
  }).describe('Payload for `project.created`, which holds every field, and\n`project.updated`, which holds only the changed fields.\n')
11430
11793
  })).describe('An event of type project.created, with the shared event fields and its own payload.\n'),zod.object({
11431
11794
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11432
- "project_id": zod.string().regex(getEventResponseThreesixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11795
+ "project_id": zod.string().regex(getEventResponseThreeeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11433
11796
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11434
11797
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11435
11798
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11449,7 +11812,7 @@ export const GetEventResponse = zod.union([zod.object({
11449
11812
  "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
11813
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11451
11814
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11452
- "metadata": zod.object({
11815
+ "metadata": zod.looseObject({
11453
11816
  "authorization": zod.object({
11454
11817
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11455
11818
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11467,7 +11830,7 @@ export const GetEventResponse = zod.union([zod.object({
11467
11830
  }).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
11468
11831
  })).describe('An event of type project.deleted, with the shared event fields and its own payload.\n'),zod.object({
11469
11832
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11470
- "project_id": zod.string().regex(getEventResponseThreesevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11833
+ "project_id": zod.string().regex(getEventResponseThreenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11471
11834
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11472
11835
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11473
11836
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11487,7 +11850,7 @@ export const GetEventResponse = zod.union([zod.object({
11487
11850
  "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
11851
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11489
11852
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11490
- "metadata": zod.object({
11853
+ "metadata": zod.looseObject({
11491
11854
  "authorization": zod.object({
11492
11855
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11493
11856
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11510,7 +11873,7 @@ export const GetEventResponse = zod.union([zod.object({
11510
11873
  }).describe('Payload for `project.created`, which holds every field, and\n`project.updated`, which holds only the changed fields.\n')
11511
11874
  })).describe('An event of type project.updated, with the shared event fields and its own payload.\n'),zod.object({
11512
11875
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11513
- "project_id": zod.string().regex(getEventResponseThreeeightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11876
+ "project_id": zod.string().regex(getEventResponseFourzeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11514
11877
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11515
11878
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11516
11879
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11530,7 +11893,7 @@ export const GetEventResponse = zod.union([zod.object({
11530
11893
  "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
11894
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11532
11895
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11533
- "metadata": zod.object({
11896
+ "metadata": zod.looseObject({
11534
11897
  "authorization": zod.object({
11535
11898
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11536
11899
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11556,7 +11919,7 @@ export const GetEventResponse = zod.union([zod.object({
11556
11919
  }).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
11920
  })).describe('An event of type release.created, with the shared event fields and its own payload.\n'),zod.object({
11558
11921
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11559
- "project_id": zod.string().regex(getEventResponseThreenineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11922
+ "project_id": zod.string().regex(getEventResponseFouroneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11560
11923
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11561
11924
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11562
11925
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11576,7 +11939,7 @@ export const GetEventResponse = zod.union([zod.object({
11576
11939
  "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
11940
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11578
11941
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11579
- "metadata": zod.object({
11942
+ "metadata": zod.looseObject({
11580
11943
  "authorization": zod.object({
11581
11944
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11582
11945
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11590,11 +11953,11 @@ export const GetEventResponse = zod.union([zod.object({
11590
11953
  }).describe('The fields every event carries. Each event type adds its own `event_type`\nand a typed `payload`.\n').and(zod.object({
11591
11954
  "event_type": zod.literal("release.revoked"),
11592
11955
  "payload": zod.object({
11593
- "content_hash": zod.string().min(getEventResponseThreenineTwoPayloadContentHashMin).max(getEventResponseThreenineTwoPayloadContentHashMax).regex(getEventResponseThreenineTwoPayloadContentHashRegExp, "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')
11956
+ "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
11957
  }).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
11958
  })).describe('An event of type release.revoked, with the shared event fields and its own payload.\n'),zod.object({
11596
11959
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11597
- "project_id": zod.string().regex(getEventResponseFourzeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11960
+ "project_id": zod.string().regex(getEventResponseFourtwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11598
11961
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11599
11962
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11600
11963
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11614,7 +11977,7 @@ export const GetEventResponse = zod.union([zod.object({
11614
11977
  "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
11978
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11616
11979
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11617
- "metadata": zod.object({
11980
+ "metadata": zod.looseObject({
11618
11981
  "authorization": zod.object({
11619
11982
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11620
11983
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11631,12 +11994,12 @@ export const GetEventResponse = zod.union([zod.object({
11631
11994
  "operation_id": zod.string(),
11632
11995
  "method": zod.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS']).describe('HTTP method.'),
11633
11996
  "route_template": zod.string(),
11634
- "status": zod.int().min(getEventResponseFourzeroTwoPayloadStatusMin).max(getEventResponseFourzeroTwoPayloadStatusMax),
11635
- "duration_ms": zod.int().min(getEventResponseFourzeroTwoPayloadDurationMsMin)
11997
+ "status": zod.int().min(getEventResponseFourtwoTwoPayloadStatusMin).max(getEventResponseFourtwoTwoPayloadStatusMax),
11998
+ "duration_ms": zod.int().min(getEventResponseFourtwoTwoPayloadDurationMsMin)
11636
11999
  }).describe('Payload for `request.api` events.')
11637
12000
  })).describe('An event of type request.api, with the shared event fields and its own payload.\n'),zod.object({
11638
12001
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11639
- "project_id": zod.string().regex(getEventResponseFouroneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
12002
+ "project_id": zod.string().regex(getEventResponseFourthreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11640
12003
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11641
12004
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11642
12005
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11656,7 +12019,7 @@ export const GetEventResponse = zod.union([zod.object({
11656
12019
  "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
12020
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11658
12021
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11659
- "metadata": zod.object({
12022
+ "metadata": zod.looseObject({
11660
12023
  "authorization": zod.object({
11661
12024
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11662
12025
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11675,7 +12038,7 @@ export const GetEventResponse = zod.union([zod.object({
11675
12038
  }).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
12039
  })).describe('An event of type schema.created, with the shared event fields and its own payload.\n'),zod.object({
11677
12040
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11678
- "project_id": zod.string().regex(getEventResponseFourtwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
12041
+ "project_id": zod.string().regex(getEventResponseFourfourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11679
12042
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11680
12043
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11681
12044
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11695,7 +12058,7 @@ export const GetEventResponse = zod.union([zod.object({
11695
12058
  "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
12059
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11697
12060
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11698
- "metadata": zod.object({
12061
+ "metadata": zod.looseObject({
11699
12062
  "authorization": zod.object({
11700
12063
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11701
12064
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11713,7 +12076,7 @@ export const GetEventResponse = zod.union([zod.object({
11713
12076
  }).describe('Payload for `session.deleted` events.')
11714
12077
  })).describe('An event of type session.deleted, with the shared event fields and its own payload.\n'),zod.object({
11715
12078
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11716
- "project_id": zod.string().regex(getEventResponseFourthreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
12079
+ "project_id": zod.string().regex(getEventResponseFourfiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11717
12080
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11718
12081
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11719
12082
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11733,7 +12096,7 @@ export const GetEventResponse = zod.union([zod.object({
11733
12096
  "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
12097
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11735
12098
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11736
- "metadata": zod.object({
12099
+ "metadata": zod.looseObject({
11737
12100
  "authorization": zod.object({
11738
12101
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11739
12102
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11751,7 +12114,7 @@ export const GetEventResponse = zod.union([zod.object({
11751
12114
  }).describe('Payload for `session.established` events.')
11752
12115
  })).describe('An event of type session.established, with the shared event fields and its own payload.\n'),zod.object({
11753
12116
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11754
- "project_id": zod.string().regex(getEventResponseFourfourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
12117
+ "project_id": zod.string().regex(getEventResponseFoursixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11755
12118
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11756
12119
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11757
12120
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11771,7 +12134,7 @@ export const GetEventResponse = zod.union([zod.object({
11771
12134
  "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
12135
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11773
12136
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11774
- "metadata": zod.object({
12137
+ "metadata": zod.looseObject({
11775
12138
  "authorization": zod.object({
11776
12139
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11777
12140
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11789,7 +12152,7 @@ export const GetEventResponse = zod.union([zod.object({
11789
12152
  }).describe('Payload for `team.created`, which holds every field, and `team.updated`,\nwhich holds only the changed fields.\n')
11790
12153
  })).describe('An event of type team.created, with the shared event fields and its own payload.\n'),zod.object({
11791
12154
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11792
- "project_id": zod.string().regex(getEventResponseFourfiveOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
12155
+ "project_id": zod.string().regex(getEventResponseFoursevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11793
12156
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11794
12157
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11795
12158
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11809,7 +12172,7 @@ export const GetEventResponse = zod.union([zod.object({
11809
12172
  "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
12173
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11811
12174
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11812
- "metadata": zod.object({
12175
+ "metadata": zod.looseObject({
11813
12176
  "authorization": zod.object({
11814
12177
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11815
12178
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11827,7 +12190,7 @@ export const GetEventResponse = zod.union([zod.object({
11827
12190
  }).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
11828
12191
  })).describe('An event of type team.deactivated, with the shared event fields and its own payload.\n'),zod.object({
11829
12192
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11830
- "project_id": zod.string().regex(getEventResponseFoursixOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
12193
+ "project_id": zod.string().regex(getEventResponseFoureightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11831
12194
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11832
12195
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11833
12196
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11847,7 +12210,7 @@ export const GetEventResponse = zod.union([zod.object({
11847
12210
  "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
12211
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11849
12212
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11850
- "metadata": zod.object({
12213
+ "metadata": zod.looseObject({
11851
12214
  "authorization": zod.object({
11852
12215
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11853
12216
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11865,7 +12228,7 @@ export const GetEventResponse = zod.union([zod.object({
11865
12228
  }).describe('Payload for `team.created`, which holds every field, and `team.updated`,\nwhich holds only the changed fields.\n')
11866
12229
  })).describe('An event of type team.updated, with the shared event fields and its own payload.\n'),zod.object({
11867
12230
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11868
- "project_id": zod.string().regex(getEventResponseFoursevenOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
12231
+ "project_id": zod.string().regex(getEventResponseFournineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11869
12232
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11870
12233
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11871
12234
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11885,7 +12248,7 @@ export const GetEventResponse = zod.union([zod.object({
11885
12248
  "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
12249
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11887
12250
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11888
- "metadata": zod.object({
12251
+ "metadata": zod.looseObject({
11889
12252
  "authorization": zod.object({
11890
12253
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11891
12254
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11903,7 +12266,7 @@ export const GetEventResponse = zod.union([zod.object({
11903
12266
  }).describe('Payload for `user.create.failed` events.')
11904
12267
  })).describe('An event of type user.create.failed, with the shared event fields and its own payload.\n'),zod.object({
11905
12268
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11906
- "project_id": zod.string().regex(getEventResponseFoureightOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
12269
+ "project_id": zod.string().regex(getEventResponseFivezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11907
12270
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11908
12271
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11909
12272
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11923,7 +12286,7 @@ export const GetEventResponse = zod.union([zod.object({
11923
12286
  "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
12287
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11925
12288
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11926
- "metadata": zod.object({
12289
+ "metadata": zod.looseObject({
11927
12290
  "authorization": zod.object({
11928
12291
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11929
12292
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11943,7 +12306,7 @@ export const GetEventResponse = zod.union([zod.object({
11943
12306
  }).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
12307
  })).describe('An event of type user.created, with the shared event fields and its own payload.\n'),zod.object({
11945
12308
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11946
- "project_id": zod.string().regex(getEventResponseFournineOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
12309
+ "project_id": zod.string().regex(getEventResponseFiveoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11947
12310
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11948
12311
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11949
12312
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -11963,7 +12326,7 @@ export const GetEventResponse = zod.union([zod.object({
11963
12326
  "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
12327
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
11965
12328
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
11966
- "metadata": zod.object({
12329
+ "metadata": zod.looseObject({
11967
12330
  "authorization": zod.object({
11968
12331
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
11969
12332
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -11981,7 +12344,7 @@ export const GetEventResponse = zod.union([zod.object({
11981
12344
  }).describe('Empty payload for event types with no typed fields, for example\n`project.deleted`, `user.deleted` and `session.expired`.\n')
11982
12345
  })).describe('An event of type user.deleted, with the shared event fields and its own payload.\n'),zod.object({
11983
12346
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
11984
- "project_id": zod.string().regex(getEventResponseFivezeroOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
12347
+ "project_id": zod.string().regex(getEventResponseFivetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
11985
12348
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
11986
12349
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
11987
12350
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -12001,7 +12364,7 @@ export const GetEventResponse = zod.union([zod.object({
12001
12364
  "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
12365
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
12003
12366
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
12004
- "metadata": zod.object({
12367
+ "metadata": zod.looseObject({
12005
12368
  "authorization": zod.object({
12006
12369
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
12007
12370
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -12020,7 +12383,7 @@ export const GetEventResponse = zod.union([zod.object({
12020
12383
  }).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
12384
  })).describe('An event of type user.updated, with the shared event fields and its own payload.\n'),zod.object({
12022
12385
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
12023
- "project_id": zod.string().regex(getEventResponseFiveoneOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
12386
+ "project_id": zod.string().regex(getEventResponseFivethreeOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
12024
12387
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
12025
12388
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
12026
12389
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -12040,7 +12403,7 @@ export const GetEventResponse = zod.union([zod.object({
12040
12403
  "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
12404
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
12042
12405
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
12043
- "metadata": zod.object({
12406
+ "metadata": zod.looseObject({
12044
12407
  "authorization": zod.object({
12045
12408
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
12046
12409
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')
@@ -12058,7 +12421,7 @@ export const GetEventResponse = zod.union([zod.object({
12058
12421
  }).describe('Payload for `variable.removed` events, one value of the variable removed.')
12059
12422
  })).describe('An event of type variable.removed, with the shared event fields and its own payload.\n'),zod.object({
12060
12423
  "id": zod.string().describe('The event ID, in the form `evt_<opaque>`.'),
12061
- "project_id": zod.string().regex(getEventResponseFivetwoOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
12424
+ "project_id": zod.string().regex(getEventResponseFivefourOneProjectIdRegExp, "must be one or more letters, digits, _ or -"),
12062
12425
  "team_id": zod.union([zod.string(),zod.null()]).optional().describe('The team the actor operated under when the event was emitted, if any.'),
12063
12426
  "event_type": zod.string().describe('The event type, dot-separated, for example `user.created`. It says which\n`payload` the event carries.\n'),
12064
12427
  "category": zod.enum(['request', 'auth', 'session', 'admin', 'entity', 'signal']).describe('The category of the event.'),
@@ -12078,7 +12441,7 @@ export const GetEventResponse = zod.union([zod.object({
12078
12441
  "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
12442
  "session_id": zod.union([zod.string(),zod.null()]).optional().describe('The ID of the session the event belongs to.'),
12080
12443
  "flow_id": zod.union([zod.string(),zod.null()]).optional().describe('An ID that correlates the events of one login flow.'),
12081
- "metadata": zod.object({
12444
+ "metadata": zod.looseObject({
12082
12445
  "authorization": zod.object({
12083
12446
  "path": zod.enum(['platform_operator']).describe('`platform_operator`: the deployment\'s platform operator relation,\nwhich administers every project.\n'),
12084
12447
  "actor_home_project_id": zod.string().optional().describe('The project the actor\'s user belongs to.')