@zitadel/api 1.0.0-alpha.24 → 1.0.0-alpha.25

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 (986) hide show
  1. package/README.md +26 -1
  2. package/dist/fetch-DD3lSbnp.d.mts +107 -0
  3. package/dist/fetch-DD3lSbnp.d.mts.map +1 -0
  4. package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
  5. package/dist/generated/endpoints/zitadelNextGen.mjs +54 -12
  6. package/dist/generated/endpoints/zitadelNextGen.mjs.map +1 -1
  7. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +146 -147
  8. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
  9. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +1285 -347
  10. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  11. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +1809 -1320
  12. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  13. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +4287 -3812
  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 +38 -15
  17. package/dist/generated/model/index.mjs.map +1 -1
  18. package/dist/{index-DCCtHY7q.d.mts → index-C1weUrQx.d.mts} +10024 -4295
  19. package/dist/index-C1weUrQx.d.mts.map +1 -0
  20. package/dist/runtime/api-factory.d.mts +19 -9
  21. package/dist/runtime/api-factory.d.mts.map +1 -1
  22. package/dist/runtime/api-factory.mjs +5 -0
  23. package/dist/runtime/api-factory.mjs.map +1 -1
  24. package/dist/runtime/auth.d.mts +27 -3
  25. package/dist/runtime/auth.d.mts.map +1 -1
  26. package/dist/runtime/auth.mjs +75 -1
  27. package/dist/runtime/auth.mjs.map +1 -1
  28. package/dist/runtime/base-url.d.mts +2 -3
  29. package/dist/runtime/base-url.d.mts.map +1 -1
  30. package/dist/runtime/base-url.mjs.map +1 -1
  31. package/dist/runtime/config.d.mts +7 -8
  32. package/dist/runtime/config.d.mts.map +1 -1
  33. package/dist/runtime/config.mjs.map +1 -1
  34. package/dist/runtime/fetch.d.mts +2 -2
  35. package/dist/runtime/fetch.mjs +147 -11
  36. package/dist/runtime/fetch.mjs.map +1 -1
  37. package/dist/{zitadelNextGen-NzRGHVHl.d.mts → zitadelNextGen-KWjI2Uyj.d.mts} +48 -17
  38. package/dist/zitadelNextGen-KWjI2Uyj.d.mts.map +1 -0
  39. package/package.json +8 -4
  40. package/src/generated/endpoints/zitadelNextGen.faker.ts +188 -12162
  41. package/src/generated/endpoints/zitadelNextGen.msw.ts +923 -1858
  42. package/src/generated/endpoints/zitadelNextGen.ts +1475 -1296
  43. package/src/generated/endpoints/zitadelNextGen.zod.ts +6354 -19118
  44. package/src/generated/model/beginUserPasskeyRegistration201.ts +8 -8
  45. package/src/generated/model/beginUserPasskeyRegistration400.ts +1 -1
  46. package/src/generated/model/beginUserPasskeyRegistration401.ts +1 -1
  47. package/src/generated/model/beginUserPasskeyRegistration403.ts +1 -1
  48. package/src/generated/model/beginUserPasskeyRegistration404.ts +1 -1
  49. package/src/generated/model/beginUserPasskeyRegistration500.ts +1 -1
  50. package/src/generated/model/beginUserPasskeyRegistrationBody.ts +9 -9
  51. package/src/generated/model/beginUserPasskeyRegistrationDefault.ts +100 -111
  52. package/src/generated/model/completeClaim400.ts +1 -1
  53. package/src/generated/model/completeClaim401.ts +1 -1
  54. package/src/generated/model/completeClaim403.ts +28 -21
  55. package/src/generated/model/completeClaim404.ts +1 -1
  56. package/src/generated/model/completeClaim409.ts +2 -2
  57. package/src/generated/model/completeClaim410.ts +19 -21
  58. package/src/generated/model/completeClaim429.ts +1 -1
  59. package/src/generated/model/completeClaimBody.ts +3 -3
  60. package/src/generated/model/completeClaimDefault.ts +1 -1
  61. package/src/generated/model/createAuthAttempt201.ts +35 -35
  62. package/src/generated/model/createAuthAttempt201ChallengesItem.ts +20 -17
  63. package/src/generated/model/createAuthAttempt201ChallengesItemMethod.ts +7 -6
  64. package/src/generated/model/createAuthAttempt201ChallengesItemPayload.ts +20 -22
  65. package/src/generated/model/createAuthAttempt201ChallengesItemState.ts +5 -5
  66. package/src/generated/model/createAuthAttempt201CompletedFactorsItem.ts +8 -7
  67. package/src/generated/model/createAuthAttempt201CompletedFactorsItemMethod.ts +6 -5
  68. package/src/generated/model/createAuthAttempt201CompletedFactorsItemPayload.ts +23 -25
  69. package/src/generated/model/createAuthAttempt201RequiredFactorsItem.ts +6 -5
  70. package/src/generated/model/createAuthAttempt201State.ts +6 -6
  71. package/src/generated/model/createAuthAttemptBody.ts +7 -7
  72. package/src/generated/model/createAuthAttemptDefault.ts +46 -51
  73. package/src/generated/model/createBranding201.ts +11 -11
  74. package/src/generated/model/createBranding201Branding.ts +43 -43
  75. package/src/generated/model/createBranding201BrandingLayout.ts +4 -4
  76. package/src/generated/model/createBranding201BrandingShape.ts +12 -12
  77. package/src/generated/model/createBranding201BrandingShapeDensity.ts +5 -5
  78. package/src/generated/model/createBranding201BrandingTheme.ts +15 -15
  79. package/src/generated/model/createBranding201BrandingThemeDark.ts +13 -13
  80. package/src/generated/model/createBranding201BrandingThemeDarkPalette.ts +168 -168
  81. package/src/generated/model/createBranding201BrandingThemeLight.ts +13 -13
  82. package/src/generated/model/createBranding201BrandingThemeLightPalette.ts +168 -168
  83. package/src/generated/model/createBranding201BrandingThemeMode.ts +5 -5
  84. package/src/generated/model/createBranding201BrandingTypography.ts +27 -27
  85. package/src/generated/model/createBranding400.ts +1 -1
  86. package/src/generated/model/createBrandingBody.ts +43 -43
  87. package/src/generated/model/createBrandingBodyLayout.ts +4 -4
  88. package/src/generated/model/createBrandingBodyShape.ts +12 -12
  89. package/src/generated/model/createBrandingBodyShapeDensity.ts +5 -5
  90. package/src/generated/model/createBrandingBodyTheme.ts +15 -15
  91. package/src/generated/model/createBrandingBodyThemeDark.ts +13 -13
  92. package/src/generated/model/createBrandingBodyThemeDarkPalette.ts +168 -168
  93. package/src/generated/model/createBrandingBodyThemeLight.ts +13 -13
  94. package/src/generated/model/createBrandingBodyThemeLightPalette.ts +168 -168
  95. package/src/generated/model/createBrandingBodyThemeMode.ts +5 -5
  96. package/src/generated/model/createBrandingBodyTypography.ts +27 -27
  97. package/src/generated/model/createBrandingDefault.ts +1 -1
  98. package/src/generated/model/createBrandingParams.ts +5 -5
  99. package/src/generated/model/createDeployment200.ts +25 -25
  100. package/src/generated/model/createDeployment200Metadata.ts +29 -29
  101. package/src/generated/model/createDeployment200MetadataDeployedByType.ts +6 -7
  102. package/src/generated/model/createDeployment200MetadataReason.ts +5 -5
  103. package/src/generated/model/createDeployment200Release.ts +14 -14
  104. package/src/generated/model/createDeployment200ReleaseMetadata.ts +17 -17
  105. package/src/generated/model/createDeployment200ReleaseMetadataCreatedByType.ts +6 -7
  106. package/src/generated/model/createDeployment200ReleasePointersItem.ts +36 -36
  107. package/src/generated/model/createDeployment200ReleasePointersItemKind.ts +5 -5
  108. package/src/generated/model/createDeployment201.ts +25 -25
  109. package/src/generated/model/createDeployment201Metadata.ts +29 -29
  110. package/src/generated/model/createDeployment201MetadataDeployedByType.ts +6 -7
  111. package/src/generated/model/createDeployment201MetadataReason.ts +5 -5
  112. package/src/generated/model/createDeployment201Release.ts +14 -14
  113. package/src/generated/model/createDeployment201ReleaseMetadata.ts +17 -17
  114. package/src/generated/model/createDeployment201ReleaseMetadataCreatedByType.ts +6 -7
  115. package/src/generated/model/createDeployment201ReleasePointersItem.ts +36 -36
  116. package/src/generated/model/createDeployment201ReleasePointersItemKind.ts +5 -5
  117. package/src/generated/model/createDeploymentBody.ts +39 -39
  118. package/src/generated/model/createDeploymentBodyReason.ts +5 -5
  119. package/src/generated/model/createDeploymentDefault.ts +91 -101
  120. package/src/generated/model/createDeploymentParams.ts +5 -5
  121. package/src/generated/model/createFlow201.ts +28 -28
  122. package/src/generated/model/createFlow201Branding.ts +43 -43
  123. package/src/generated/model/createFlow201BrandingLayout.ts +4 -4
  124. package/src/generated/model/createFlow201BrandingShape.ts +12 -12
  125. package/src/generated/model/createFlow201BrandingShapeDensity.ts +5 -5
  126. package/src/generated/model/createFlow201BrandingTheme.ts +15 -15
  127. package/src/generated/model/createFlow201BrandingThemeDark.ts +13 -13
  128. package/src/generated/model/createFlow201BrandingThemeDarkPalette.ts +168 -168
  129. package/src/generated/model/createFlow201BrandingThemeLight.ts +13 -13
  130. package/src/generated/model/createFlow201BrandingThemeLightPalette.ts +168 -168
  131. package/src/generated/model/createFlow201BrandingThemeMode.ts +5 -5
  132. package/src/generated/model/createFlow201BrandingTypography.ts +27 -27
  133. package/src/generated/model/createFlow201Step.ts +79 -45
  134. package/src/generated/model/createFlow201StepActionsItem.ts +18 -18
  135. package/src/generated/model/createFlow201StepActionsItemKind.ts +7 -7
  136. package/src/generated/model/createFlow201StepChallenge.ts +10 -10
  137. package/src/generated/model/createFlow201StepChallengeMethod.ts +4 -4
  138. package/src/generated/model/createFlow201StepComplete.ts +4 -4
  139. package/src/generated/model/createFlow201StepFieldsItem.ts +48 -23
  140. package/src/generated/model/createFlow201StepFieldsItemType.ts +12 -12
  141. package/src/generated/model/createFlow201StepFieldsItemValidation.ts +18 -18
  142. package/src/generated/model/createFlow201StepFieldsItemValidationFormat.ts +6 -6
  143. package/src/generated/model/createFlow201StepGates.ts +10 -12
  144. package/src/generated/model/createFlow201StepGatesKind.ts +3 -3
  145. package/src/generated/model/createFlow201StepIdentifier.ts +53 -0
  146. package/src/generated/model/createFlow400.ts +1 -1
  147. package/src/generated/model/createFlowBody.ts +22 -22
  148. package/src/generated/model/createFlowBodyPurpose.ts +8 -8
  149. package/src/generated/model/createFlowDefault.ts +127 -141
  150. package/src/generated/model/createFlowDefinition201.ts +16 -16
  151. package/src/generated/model/createFlowDefinition201FlowDefinition.ts +39 -41
  152. package/src/generated/model/createFlowDefinition201FlowDefinitionStatus.ts +4 -4
  153. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItem.ts +55 -48
  154. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItem.ts +24 -24
  155. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemActionsItemKind.ts +6 -6
  156. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemComplete.ts +4 -4
  157. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGates.ts +10 -12
  158. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemGatesKind.ts +3 -3
  159. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemOnSuccess.ts +9 -3
  160. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitions.ts +11 -13
  161. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsAction.ts +4 -5
  162. package/src/generated/model/createFlowDefinition201FlowDefinitionStepsItemTransitionsPurpose.ts +8 -9
  163. package/src/generated/model/createFlowDefinition201UserSchema.ts +5 -5
  164. package/src/generated/model/createFlowDefinition201UserSchemaSchema.ts +75 -77
  165. package/src/generated/model/createFlowDefinition400.ts +1 -1
  166. package/src/generated/model/createFlowDefinitionBody.ts +14 -14
  167. package/src/generated/model/createFlowDefinitionBodyFlowDefinition.ts +39 -41
  168. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStatus.ts +4 -4
  169. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItem.ts +55 -48
  170. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItem.ts +24 -24
  171. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemActionsItemKind.ts +6 -6
  172. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemComplete.ts +4 -4
  173. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGates.ts +10 -12
  174. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemGatesKind.ts +3 -3
  175. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemOnSuccess.ts +9 -3
  176. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitions.ts +11 -13
  177. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsAction.ts +4 -5
  178. package/src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItemTransitionsPurpose.ts +8 -9
  179. package/src/generated/model/createFlowDefinitionDefault.ts +91 -101
  180. package/src/generated/model/createGrant201.ts +17 -17
  181. package/src/generated/model/createGrant201ObjectType.ts +3 -3
  182. package/src/generated/model/createGrant201Relation.ts +5 -5
  183. package/src/generated/model/createGrant201Team.ts +6 -6
  184. package/src/generated/model/createGrant201TeamStatus.ts +4 -4
  185. package/src/generated/model/createGrant201User.ts +22 -22
  186. package/src/generated/model/createGrant201UserMetadata.ts +25 -25
  187. package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeam.ts +6 -6
  188. package/src/generated/model/createGrant201UserMetadataLifecycleOwnerTeamStatus.ts +4 -4
  189. package/src/generated/model/createGrant201UserMetadataStatus.ts +6 -6
  190. package/src/generated/model/createGrant400.ts +1 -1
  191. package/src/generated/model/createGrant401.ts +1 -1
  192. package/src/generated/model/createGrant403.ts +1 -1
  193. package/src/generated/model/createGrant404.ts +1 -1
  194. package/src/generated/model/createGrant409.ts +1 -1
  195. package/src/generated/model/createGrant429.ts +1 -1
  196. package/src/generated/model/createGrantBody.ts +15 -15
  197. package/src/generated/model/createGrantBodyRelation.ts +5 -5
  198. package/src/generated/model/createGrantBodyTeam.ts +4 -4
  199. package/src/generated/model/createGrantBodyUser.ts +8 -8
  200. package/src/generated/model/createGrantDefault.ts +91 -91
  201. package/src/generated/model/createGrantParams.ts +5 -5
  202. package/src/generated/model/createHandoff200.ts +10 -10
  203. package/src/generated/model/createHandoffDefault.ts +73 -81
  204. package/src/generated/model/createIdp200.ts +14 -14
  205. package/src/generated/model/createIdp200Definition.ts +17 -17
  206. package/src/generated/model/createIdp200DefinitionClaimMapping.ts +1 -1
  207. package/src/generated/model/createIdp200DefinitionOauth2.ts +22 -22
  208. package/src/generated/model/createIdp200DefinitionOauth2StaticAuthorizeParameters.ts +1 -1
  209. package/src/generated/model/createIdp200DefinitionOauth2SupplementaryFetch.ts +3 -3
  210. package/src/generated/model/createIdp200DefinitionOauth2TokenEndpointAuthMethod.ts +4 -4
  211. package/src/generated/model/createIdp200DefinitionOidc.ts +28 -28
  212. package/src/generated/model/createIdp200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  213. package/src/generated/model/createIdp200DefinitionOidcTokenEndpointAuthMethod.ts +4 -4
  214. package/src/generated/model/createIdp200DefinitionProtocol.ts +4 -4
  215. package/src/generated/model/createIdp200DefinitionProvisioning.ts +1 -1
  216. package/src/generated/model/createIdp200DefinitionProvisioningCreation.ts +4 -4
  217. package/src/generated/model/createIdp200DefinitionVerifiedClaims.ts +1 -1
  218. package/src/generated/model/createIdp201.ts +14 -14
  219. package/src/generated/model/createIdp201Definition.ts +17 -17
  220. package/src/generated/model/createIdp201DefinitionClaimMapping.ts +1 -1
  221. package/src/generated/model/createIdp201DefinitionOauth2.ts +22 -22
  222. package/src/generated/model/createIdp201DefinitionOauth2StaticAuthorizeParameters.ts +1 -1
  223. package/src/generated/model/createIdp201DefinitionOauth2SupplementaryFetch.ts +3 -3
  224. package/src/generated/model/createIdp201DefinitionOauth2TokenEndpointAuthMethod.ts +4 -4
  225. package/src/generated/model/createIdp201DefinitionOidc.ts +28 -28
  226. package/src/generated/model/createIdp201DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  227. package/src/generated/model/createIdp201DefinitionOidcTokenEndpointAuthMethod.ts +4 -4
  228. package/src/generated/model/createIdp201DefinitionProtocol.ts +4 -4
  229. package/src/generated/model/createIdp201DefinitionProvisioning.ts +1 -1
  230. package/src/generated/model/createIdp201DefinitionProvisioningCreation.ts +4 -4
  231. package/src/generated/model/createIdp201DefinitionVerifiedClaims.ts +1 -1
  232. package/src/generated/model/createIdp400.ts +1 -1
  233. package/src/generated/model/createIdp401.ts +1 -1
  234. package/src/generated/model/createIdp403.ts +1 -1
  235. package/src/generated/model/createIdp404.ts +1 -1
  236. package/src/generated/model/createIdpBody.ts +1 -1
  237. package/src/generated/model/createIdpBodyIdp.ts +17 -17
  238. package/src/generated/model/createIdpBodyIdpClaimMapping.ts +1 -1
  239. package/src/generated/model/createIdpBodyIdpOauth2.ts +22 -22
  240. package/src/generated/model/createIdpBodyIdpOauth2StaticAuthorizeParameters.ts +1 -1
  241. package/src/generated/model/createIdpBodyIdpOauth2SupplementaryFetch.ts +3 -3
  242. package/src/generated/model/createIdpBodyIdpOauth2TokenEndpointAuthMethod.ts +4 -4
  243. package/src/generated/model/createIdpBodyIdpOidc.ts +28 -28
  244. package/src/generated/model/createIdpBodyIdpOidcStaticAuthorizeParameters.ts +1 -1
  245. package/src/generated/model/createIdpBodyIdpOidcTokenEndpointAuthMethod.ts +4 -4
  246. package/src/generated/model/createIdpBodyIdpProtocol.ts +4 -4
  247. package/src/generated/model/createIdpBodyIdpProvisioning.ts +1 -1
  248. package/src/generated/model/createIdpBodyIdpProvisioningCreation.ts +4 -4
  249. package/src/generated/model/createIdpBodyIdpVerifiedClaims.ts +1 -1
  250. package/src/generated/model/createIdpDefault.ts +73 -81
  251. package/src/generated/model/createIdpParams.ts +5 -5
  252. package/src/generated/model/createProject429.ts +1 -1
  253. package/src/generated/model/createProjectBody.ts +4 -4
  254. package/src/generated/model/createProjectDefault.ts +109 -121
  255. package/src/generated/model/createRelease200.ts +14 -14
  256. package/src/generated/model/createRelease200Metadata.ts +17 -17
  257. package/src/generated/model/createRelease200MetadataCreatedByType.ts +6 -7
  258. package/src/generated/model/createRelease200PointersItem.ts +36 -36
  259. package/src/generated/model/createRelease200PointersItemKind.ts +5 -5
  260. package/src/generated/model/createRelease201.ts +14 -14
  261. package/src/generated/model/createRelease201Metadata.ts +17 -17
  262. package/src/generated/model/createRelease201MetadataCreatedByType.ts +6 -7
  263. package/src/generated/model/createRelease201PointersItem.ts +36 -36
  264. package/src/generated/model/createRelease201PointersItemKind.ts +5 -5
  265. package/src/generated/model/createReleaseBody.ts +29 -29
  266. package/src/generated/model/createReleaseBodyPointersItem.ts +19 -19
  267. package/src/generated/model/createReleaseBodyPointersItemKind.ts +5 -5
  268. package/src/generated/model/createReleaseDefault.ts +91 -101
  269. package/src/generated/model/createReleaseParams.ts +5 -5
  270. package/src/generated/model/createSchemaBody.ts +91 -95
  271. package/src/generated/model/createSchemaDefault.ts +127 -141
  272. package/src/generated/model/createSchemaParams.ts +10 -10
  273. package/src/generated/model/createSession201.ts +12 -12
  274. package/src/generated/model/createSession201Session.ts +36 -36
  275. package/src/generated/model/createSession201SessionFactorsItem.ts +8 -7
  276. package/src/generated/model/createSession201SessionFactorsItemMethod.ts +6 -5
  277. package/src/generated/model/createSession201SessionFactorsItemPayload.ts +23 -25
  278. package/src/generated/model/createSession201SessionState.ts +5 -5
  279. package/src/generated/model/createSession201SessionUser.ts +14 -14
  280. package/src/generated/model/createSession201SessionUserAgent.ts +1 -1
  281. package/src/generated/model/createSession400.ts +1 -1
  282. package/src/generated/model/createSessionBody.ts +5 -5
  283. package/src/generated/model/createSessionBodyUserAgent.ts +1 -1
  284. package/src/generated/model/createSessionDefault.ts +91 -101
  285. package/src/generated/model/createTeam201.ts +6 -6
  286. package/src/generated/model/createTeam201Status.ts +4 -3
  287. package/src/generated/model/createTeam400.ts +1 -1
  288. package/src/generated/model/createTeam401.ts +1 -1
  289. package/src/generated/model/createTeam403.ts +1 -1
  290. package/src/generated/model/createTeam404.ts +1 -1
  291. package/src/generated/model/createTeam409.ts +1 -1
  292. package/src/generated/model/createTeam429.ts +1 -1
  293. package/src/generated/model/createTeamBody.ts +4 -4
  294. package/src/generated/model/createTeamDefault.ts +1 -1
  295. package/src/generated/model/createTeamParams.ts +5 -5
  296. package/src/generated/model/createUser201.ts +37 -37
  297. package/src/generated/model/createUser201Metadata.ts +25 -25
  298. package/src/generated/model/createUser201MetadataLifecycleOwnerTeam.ts +6 -6
  299. package/src/generated/model/createUser201MetadataLifecycleOwnerTeamStatus.ts +4 -4
  300. package/src/generated/model/createUser201MetadataStatus.ts +6 -6
  301. package/src/generated/model/createUser201TeamsItem.ts +4 -4
  302. package/src/generated/model/createUser201TeamsItemMembershipStatus.ts +5 -5
  303. package/src/generated/model/createUser400.ts +1 -1
  304. package/src/generated/model/createUser401.ts +1 -1
  305. package/src/generated/model/createUser403.ts +1 -1
  306. package/src/generated/model/createUser409.ts +1 -1
  307. package/src/generated/model/createUser500.ts +1 -1
  308. package/src/generated/model/createUserBody.ts +8 -8
  309. package/src/generated/model/createUserDefault.ts +82 -81
  310. package/src/generated/model/createUserParams.ts +21 -21
  311. package/src/generated/model/deleteGrant401.ts +1 -1
  312. package/src/generated/model/deleteGrant403.ts +1 -1
  313. package/src/generated/model/deleteGrant404.ts +1 -1
  314. package/src/generated/model/deleteGrantDefault.ts +64 -61
  315. package/src/generated/model/deleteGrantParams.ts +5 -5
  316. package/src/generated/model/deleteTeam400.ts +1 -1
  317. package/src/generated/model/deleteTeam401.ts +1 -1
  318. package/src/generated/model/deleteTeam403.ts +1 -1
  319. package/src/generated/model/deleteTeam409.ts +1 -1
  320. package/src/generated/model/deleteTeamDefault.ts +1 -1
  321. package/src/generated/model/deleteUserByID401.ts +1 -1
  322. package/src/generated/model/deleteUserByID404.ts +1 -1
  323. package/src/generated/model/deleteUserByIDDefault.ts +64 -61
  324. package/src/generated/model/deleteVariableDefault.ts +55 -61
  325. package/src/generated/model/deleteVariableParams.ts +15 -15
  326. package/src/generated/model/exchangeHandoff200.ts +12 -12
  327. package/src/generated/model/exchangeHandoff200Session.ts +36 -36
  328. package/src/generated/model/exchangeHandoff200SessionFactorsItem.ts +8 -7
  329. package/src/generated/model/exchangeHandoff200SessionFactorsItemMethod.ts +6 -5
  330. package/src/generated/model/exchangeHandoff200SessionFactorsItemPayload.ts +23 -25
  331. package/src/generated/model/exchangeHandoff200SessionState.ts +5 -5
  332. package/src/generated/model/exchangeHandoff200SessionUser.ts +14 -14
  333. package/src/generated/model/exchangeHandoff200SessionUserAgent.ts +1 -1
  334. package/src/generated/model/exchangeHandoff400.ts +1 -1
  335. package/src/generated/model/exchangeHandoff401.ts +1 -1
  336. package/src/generated/model/exchangeHandoff410.ts +1 -1
  337. package/src/generated/model/exchangeHandoffBody.ts +6 -6
  338. package/src/generated/model/exchangeHandoffDefault.ts +136 -151
  339. package/src/generated/model/exchangeHandoffParams.ts +5 -5
  340. package/src/generated/model/finishUserPasskeyRegistration400.ts +1 -1
  341. package/src/generated/model/finishUserPasskeyRegistration401.ts +1 -1
  342. package/src/generated/model/finishUserPasskeyRegistration403.ts +1 -1
  343. package/src/generated/model/finishUserPasskeyRegistration404.ts +1 -1
  344. package/src/generated/model/finishUserPasskeyRegistration500.ts +1 -1
  345. package/src/generated/model/finishUserPasskeyRegistrationBody.ts +4 -4
  346. package/src/generated/model/finishUserPasskeyRegistrationDefault.ts +145 -141
  347. package/src/generated/model/getAuthAttempt200.ts +35 -35
  348. package/src/generated/model/getAuthAttempt200ChallengesItem.ts +20 -17
  349. package/src/generated/model/getAuthAttempt200ChallengesItemMethod.ts +7 -6
  350. package/src/generated/model/getAuthAttempt200ChallengesItemPayload.ts +20 -22
  351. package/src/generated/model/getAuthAttempt200ChallengesItemState.ts +5 -5
  352. package/src/generated/model/getAuthAttempt200CompletedFactorsItem.ts +8 -7
  353. package/src/generated/model/getAuthAttempt200CompletedFactorsItemMethod.ts +6 -5
  354. package/src/generated/model/getAuthAttempt200CompletedFactorsItemPayload.ts +23 -25
  355. package/src/generated/model/getAuthAttempt200RequiredFactorsItem.ts +6 -5
  356. package/src/generated/model/getAuthAttempt200State.ts +6 -6
  357. package/src/generated/model/getAuthAttemptDefault.ts +37 -41
  358. package/src/generated/model/getBrandingById200.ts +11 -11
  359. package/src/generated/model/getBrandingById200Branding.ts +43 -43
  360. package/src/generated/model/getBrandingById200BrandingLayout.ts +4 -4
  361. package/src/generated/model/getBrandingById200BrandingShape.ts +12 -12
  362. package/src/generated/model/getBrandingById200BrandingShapeDensity.ts +5 -5
  363. package/src/generated/model/getBrandingById200BrandingTheme.ts +15 -15
  364. package/src/generated/model/getBrandingById200BrandingThemeDark.ts +13 -13
  365. package/src/generated/model/getBrandingById200BrandingThemeDarkPalette.ts +168 -168
  366. package/src/generated/model/getBrandingById200BrandingThemeLight.ts +13 -13
  367. package/src/generated/model/getBrandingById200BrandingThemeLightPalette.ts +168 -168
  368. package/src/generated/model/getBrandingById200BrandingThemeMode.ts +5 -5
  369. package/src/generated/model/getBrandingById200BrandingTypography.ts +27 -27
  370. package/src/generated/model/getBrandingById404.ts +1 -1
  371. package/src/generated/model/getBrandingByIdDefault.ts +1 -1
  372. package/src/generated/model/getClaimStatus200.ts +13 -15
  373. package/src/generated/model/getClaimStatus401.ts +1 -1
  374. package/src/generated/model/getClaimStatus403.ts +1 -1
  375. package/src/generated/model/getClaimStatus404.ts +1 -1
  376. package/src/generated/model/getClaimStatus410.ts +19 -21
  377. package/src/generated/model/getClaimStatus429.ts +1 -1
  378. package/src/generated/model/getClaimStatusDefault.ts +1 -1
  379. package/src/generated/model/getClaimStatusParams.ts +5 -5
  380. package/src/generated/model/getClaimWindow200.ts +4 -4
  381. package/src/generated/model/getClaimWindow404.ts +1 -1
  382. package/src/generated/model/getClaimWindow429.ts +1 -1
  383. package/src/generated/model/getClaimWindowDefault.ts +1 -1
  384. package/src/generated/model/getClaimWindowParams.ts +5 -5
  385. package/src/generated/model/getDeploymentById200.ts +25 -25
  386. package/src/generated/model/getDeploymentById200Metadata.ts +29 -29
  387. package/src/generated/model/getDeploymentById200MetadataDeployedByType.ts +6 -7
  388. package/src/generated/model/getDeploymentById200MetadataReason.ts +5 -5
  389. package/src/generated/model/getDeploymentById200Release.ts +14 -14
  390. package/src/generated/model/getDeploymentById200ReleaseMetadata.ts +17 -17
  391. package/src/generated/model/getDeploymentById200ReleaseMetadataCreatedByType.ts +6 -7
  392. package/src/generated/model/getDeploymentById200ReleasePointersItem.ts +36 -36
  393. package/src/generated/model/getDeploymentById200ReleasePointersItemKind.ts +5 -5
  394. package/src/generated/model/getDeploymentByIdDefault.ts +46 -51
  395. package/src/generated/model/getDeploymentByIdParams.ts +5 -5
  396. package/src/generated/model/getEnvironmentByName200.ts +12 -12
  397. package/src/generated/model/getEnvironmentByName200CurrentDeployment.ts +16 -16
  398. package/src/generated/model/getEnvironmentByName200CurrentDeploymentReason.ts +5 -5
  399. package/src/generated/model/getEnvironmentByNameDefault.ts +46 -51
  400. package/src/generated/model/getEnvironmentByNameParams.ts +5 -5
  401. package/src/generated/model/getEvent200.ts +2594 -2335
  402. package/src/generated/model/getEvent401.ts +1 -1
  403. package/src/generated/model/getEvent403.ts +1 -1
  404. package/src/generated/model/getEvent404.ts +1 -1
  405. package/src/generated/model/getEventDefault.ts +1 -1
  406. package/src/generated/model/getEventParams.ts +5 -5
  407. package/src/generated/model/getFlowDefinition200.ts +16 -16
  408. package/src/generated/model/getFlowDefinition200FlowDefinition.ts +39 -41
  409. package/src/generated/model/getFlowDefinition200FlowDefinitionStatus.ts +4 -4
  410. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItem.ts +55 -48
  411. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItem.ts +24 -24
  412. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemActionsItemKind.ts +6 -6
  413. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemComplete.ts +4 -4
  414. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGates.ts +10 -12
  415. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemGatesKind.ts +3 -3
  416. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemOnSuccess.ts +9 -3
  417. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitions.ts +11 -13
  418. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitionsAction.ts +4 -5
  419. package/src/generated/model/getFlowDefinition200FlowDefinitionStepsItemTransitionsPurpose.ts +8 -9
  420. package/src/generated/model/getFlowDefinition200UserSchema.ts +5 -5
  421. package/src/generated/model/getFlowDefinition200UserSchemaSchema.ts +75 -77
  422. package/src/generated/model/getFlowDefinitionDefault.ts +64 -71
  423. package/src/generated/model/getFlowStep200.ts +28 -28
  424. package/src/generated/model/getFlowStep200Branding.ts +43 -43
  425. package/src/generated/model/getFlowStep200BrandingLayout.ts +4 -4
  426. package/src/generated/model/getFlowStep200BrandingShape.ts +12 -12
  427. package/src/generated/model/getFlowStep200BrandingShapeDensity.ts +5 -5
  428. package/src/generated/model/getFlowStep200BrandingTheme.ts +15 -15
  429. package/src/generated/model/getFlowStep200BrandingThemeDark.ts +13 -13
  430. package/src/generated/model/getFlowStep200BrandingThemeDarkPalette.ts +168 -168
  431. package/src/generated/model/getFlowStep200BrandingThemeLight.ts +13 -13
  432. package/src/generated/model/getFlowStep200BrandingThemeLightPalette.ts +168 -168
  433. package/src/generated/model/getFlowStep200BrandingThemeMode.ts +5 -5
  434. package/src/generated/model/getFlowStep200BrandingTypography.ts +27 -27
  435. package/src/generated/model/getFlowStep200Step.ts +79 -45
  436. package/src/generated/model/getFlowStep200StepActionsItem.ts +18 -18
  437. package/src/generated/model/getFlowStep200StepActionsItemKind.ts +7 -7
  438. package/src/generated/model/getFlowStep200StepChallenge.ts +10 -10
  439. package/src/generated/model/getFlowStep200StepChallengeMethod.ts +4 -4
  440. package/src/generated/model/getFlowStep200StepComplete.ts +4 -4
  441. package/src/generated/model/getFlowStep200StepFieldsItem.ts +48 -23
  442. package/src/generated/model/getFlowStep200StepFieldsItemType.ts +12 -12
  443. package/src/generated/model/getFlowStep200StepFieldsItemValidation.ts +18 -18
  444. package/src/generated/model/getFlowStep200StepFieldsItemValidationFormat.ts +6 -6
  445. package/src/generated/model/getFlowStep200StepGates.ts +10 -12
  446. package/src/generated/model/getFlowStep200StepGatesKind.ts +3 -3
  447. package/src/generated/model/getFlowStep200StepIdentifier.ts +53 -0
  448. package/src/generated/model/getFlowStep404.ts +1 -1
  449. package/src/generated/model/getFlowStep409.ts +20 -0
  450. package/src/generated/model/getFlowStep409Details.ts +12 -0
  451. package/src/generated/model/getFlowStep410.ts +1 -1
  452. package/src/generated/model/getFlowStepDefault.ts +271 -111
  453. package/src/generated/model/getGrant200.ts +17 -17
  454. package/src/generated/model/getGrant200ObjectType.ts +3 -3
  455. package/src/generated/model/getGrant200Relation.ts +5 -4
  456. package/src/generated/model/getGrant200Team.ts +6 -6
  457. package/src/generated/model/getGrant200TeamStatus.ts +4 -4
  458. package/src/generated/model/getGrant200User.ts +22 -22
  459. package/src/generated/model/getGrant200UserMetadata.ts +25 -25
  460. package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeam.ts +6 -6
  461. package/src/generated/model/getGrant200UserMetadataLifecycleOwnerTeamStatus.ts +4 -4
  462. package/src/generated/model/getGrant200UserMetadataStatus.ts +6 -6
  463. package/src/generated/model/getGrant401.ts +1 -1
  464. package/src/generated/model/getGrant403.ts +1 -1
  465. package/src/generated/model/getGrant404.ts +1 -1
  466. package/src/generated/model/getGrantDefault.ts +64 -71
  467. package/src/generated/model/getGrantExpandItem.ts +3 -2
  468. package/src/generated/model/getGrantParams.ts +11 -11
  469. package/src/generated/model/getHealth4xx.ts +1 -1
  470. package/src/generated/model/getHealthDefault.ts +1 -1
  471. package/src/generated/model/getIdpById200.ts +14 -14
  472. package/src/generated/model/getIdpById200Definition.ts +17 -17
  473. package/src/generated/model/getIdpById200DefinitionClaimMapping.ts +1 -1
  474. package/src/generated/model/getIdpById200DefinitionOauth2.ts +22 -22
  475. package/src/generated/model/getIdpById200DefinitionOauth2StaticAuthorizeParameters.ts +1 -1
  476. package/src/generated/model/getIdpById200DefinitionOauth2SupplementaryFetch.ts +3 -3
  477. package/src/generated/model/getIdpById200DefinitionOauth2TokenEndpointAuthMethod.ts +4 -4
  478. package/src/generated/model/getIdpById200DefinitionOidc.ts +28 -28
  479. package/src/generated/model/getIdpById200DefinitionOidcStaticAuthorizeParameters.ts +1 -1
  480. package/src/generated/model/getIdpById200DefinitionOidcTokenEndpointAuthMethod.ts +4 -4
  481. package/src/generated/model/getIdpById200DefinitionProtocol.ts +4 -4
  482. package/src/generated/model/getIdpById200DefinitionProvisioning.ts +1 -1
  483. package/src/generated/model/getIdpById200DefinitionProvisioningCreation.ts +4 -4
  484. package/src/generated/model/getIdpById200DefinitionVerifiedClaims.ts +1 -1
  485. package/src/generated/model/getIdpById401.ts +1 -1
  486. package/src/generated/model/getIdpById403.ts +1 -1
  487. package/src/generated/model/getIdpById404.ts +1 -1
  488. package/src/generated/model/getIdpByIdDefault.ts +46 -51
  489. package/src/generated/model/getIdpByIdParams.ts +5 -5
  490. package/src/generated/model/getIdpRevisionById200.ts +14 -14
  491. package/src/generated/model/getIdpRevisionById200Definition.ts +17 -17
  492. package/src/generated/model/getIdpRevisionById200DefinitionClaimMapping.ts +1 -1
  493. package/src/generated/model/getIdpRevisionById200DefinitionOauth2.ts +22 -22
  494. package/src/generated/model/getIdpRevisionById200DefinitionOauth2StaticAuthorizeParameters.ts +1 -3
  495. package/src/generated/model/getIdpRevisionById200DefinitionOauth2SupplementaryFetch.ts +3 -3
  496. package/src/generated/model/getIdpRevisionById200DefinitionOauth2TokenEndpointAuthMethod.ts +4 -4
  497. package/src/generated/model/getIdpRevisionById200DefinitionOidc.ts +28 -28
  498. package/src/generated/model/getIdpRevisionById200DefinitionOidcStaticAuthorizeParameters.ts +1 -3
  499. package/src/generated/model/getIdpRevisionById200DefinitionOidcTokenEndpointAuthMethod.ts +4 -4
  500. package/src/generated/model/getIdpRevisionById200DefinitionProtocol.ts +4 -4
  501. package/src/generated/model/getIdpRevisionById200DefinitionProvisioning.ts +1 -1
  502. package/src/generated/model/getIdpRevisionById200DefinitionProvisioningCreation.ts +4 -4
  503. package/src/generated/model/getIdpRevisionById200DefinitionVerifiedClaims.ts +1 -1
  504. package/src/generated/model/getIdpRevisionById401.ts +1 -1
  505. package/src/generated/model/getIdpRevisionById403.ts +1 -1
  506. package/src/generated/model/getIdpRevisionById404.ts +1 -1
  507. package/src/generated/model/getIdpRevisionByIdDefault.ts +46 -51
  508. package/src/generated/model/getIdpRevisionByIdParams.ts +5 -5
  509. package/src/generated/model/getLive4xx.ts +1 -1
  510. package/src/generated/model/getLiveDefault.ts +1 -1
  511. package/src/generated/model/getMySession200.ts +36 -36
  512. package/src/generated/model/getMySession200FactorsItem.ts +8 -7
  513. package/src/generated/model/getMySession200FactorsItemMethod.ts +6 -5
  514. package/src/generated/model/getMySession200FactorsItemPayload.ts +23 -25
  515. package/src/generated/model/getMySession200State.ts +5 -4
  516. package/src/generated/model/getMySession200User.ts +14 -14
  517. package/src/generated/model/getMySession200UserAgent.ts +1 -1
  518. package/src/generated/model/getMySession401.ts +1 -1
  519. package/src/generated/model/getMySession404.ts +1 -1
  520. package/src/generated/model/getMySessionCsrfToken200.ts +18 -0
  521. package/src/generated/model/getMySessionCsrfToken401.ts +23 -0
  522. package/src/generated/model/getMySessionDefault.ts +37 -41
  523. package/src/generated/model/getMyUser200.ts +37 -37
  524. package/src/generated/model/getMyUser200Metadata.ts +25 -25
  525. package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeam.ts +6 -6
  526. package/src/generated/model/getMyUser200MetadataLifecycleOwnerTeamStatus.ts +4 -4
  527. package/src/generated/model/getMyUser200MetadataStatus.ts +6 -6
  528. package/src/generated/model/getMyUser200TeamsItem.ts +4 -4
  529. package/src/generated/model/getMyUser200TeamsItemMembershipStatus.ts +5 -5
  530. package/src/generated/model/getMyUser401.ts +1 -1
  531. package/src/generated/model/getMyUser404.ts +1 -1
  532. package/src/generated/model/getMyUserDefault.ts +46 -51
  533. package/src/generated/model/getProject200.ts +4 -4
  534. package/src/generated/model/getProject200PasswordHash.ts +24 -24
  535. package/src/generated/model/getProject200PasswordHashAlgorithm.ts +8 -8
  536. package/src/generated/model/getProject200PasswordHashParams.ts +6 -6
  537. package/src/generated/model/getProject200PasswordHashParamsHash.ts +7 -7
  538. package/src/generated/model/getProject401.ts +1 -1
  539. package/src/generated/model/getProject404.ts +1 -1
  540. package/src/generated/model/getProjectDefault.ts +64 -71
  541. package/src/generated/model/getReady4xx.ts +1 -1
  542. package/src/generated/model/getReadyDefault.ts +1 -1
  543. package/src/generated/model/getReleaseById200.ts +14 -14
  544. package/src/generated/model/getReleaseById200Metadata.ts +17 -17
  545. package/src/generated/model/getReleaseById200MetadataCreatedByType.ts +6 -7
  546. package/src/generated/model/getReleaseById200PointersItem.ts +36 -36
  547. package/src/generated/model/getReleaseById200PointersItemKind.ts +5 -5
  548. package/src/generated/model/getReleaseByIdDefault.ts +46 -51
  549. package/src/generated/model/getReleaseByIdParams.ts +5 -5
  550. package/src/generated/model/getSchemaById200.ts +5 -5
  551. package/src/generated/model/getSchemaById200Schema.ts +75 -77
  552. package/src/generated/model/getSchemaByIdDefault.ts +46 -51
  553. package/src/generated/model/getSchemaByIdParams.ts +11 -11
  554. package/src/generated/model/getSession200.ts +36 -36
  555. package/src/generated/model/getSession200FactorsItem.ts +8 -7
  556. package/src/generated/model/getSession200FactorsItemMethod.ts +6 -5
  557. package/src/generated/model/getSession200FactorsItemPayload.ts +23 -25
  558. package/src/generated/model/getSession200State.ts +5 -4
  559. package/src/generated/model/getSession200User.ts +14 -14
  560. package/src/generated/model/getSession200UserAgent.ts +1 -1
  561. package/src/generated/model/getSession401.ts +1 -1
  562. package/src/generated/model/getSession403.ts +1 -1
  563. package/src/generated/model/getSession404.ts +1 -1
  564. package/src/generated/model/getSessionDefault.ts +46 -51
  565. package/src/generated/model/getTeam200.ts +6 -6
  566. package/src/generated/model/getTeam200Status.ts +4 -3
  567. package/src/generated/model/getTeam401.ts +1 -1
  568. package/src/generated/model/getTeam404.ts +1 -1
  569. package/src/generated/model/getTeamDefault.ts +1 -1
  570. package/src/generated/model/getUserByID200.ts +37 -37
  571. package/src/generated/model/getUserByID200Metadata.ts +25 -25
  572. package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeam.ts +6 -6
  573. package/src/generated/model/getUserByID200MetadataLifecycleOwnerTeamStatus.ts +4 -4
  574. package/src/generated/model/getUserByID200MetadataStatus.ts +6 -6
  575. package/src/generated/model/getUserByID200TeamsItem.ts +4 -4
  576. package/src/generated/model/getUserByID200TeamsItemMembershipStatus.ts +5 -5
  577. package/src/generated/model/getUserByID401.ts +1 -1
  578. package/src/generated/model/getUserByID404.ts +1 -1
  579. package/src/generated/model/getUserByIDDefault.ts +46 -51
  580. package/src/generated/model/getUserByIDParams.ts +20 -15
  581. package/src/generated/model/getVariable200.ts +4 -8
  582. package/src/generated/model/getVariableDefault.ts +55 -61
  583. package/src/generated/model/getVariableParams.ts +15 -15
  584. package/src/generated/model/getVariables200.ts +4 -10
  585. package/src/generated/model/getVariablesDefault.ts +55 -61
  586. package/src/generated/model/getVariablesParams.ts +15 -15
  587. package/src/generated/model/index.ts +1155 -1147
  588. package/src/generated/model/initClaim201.ts +6 -6
  589. package/src/generated/model/initClaim401.ts +1 -1
  590. package/src/generated/model/initClaim404.ts +1 -1
  591. package/src/generated/model/initClaim409.ts +2 -2
  592. package/src/generated/model/initClaim410.ts +1 -1
  593. package/src/generated/model/initClaimDefault.ts +1 -1
  594. package/src/generated/model/issueChallenge201.ts +20 -17
  595. package/src/generated/model/issueChallenge201Method.ts +7 -6
  596. package/src/generated/model/issueChallenge201Payload.ts +20 -22
  597. package/src/generated/model/issueChallenge201State.ts +5 -5
  598. package/src/generated/model/issueChallengeBody.ts +6 -3
  599. package/src/generated/model/issueChallengeBodyMethod.ts +7 -6
  600. package/src/generated/model/issueChallengeBodyPasskeyOptions.ts +1 -1
  601. package/src/generated/model/issueChallengeBodyPasskeyOptionsUserVerification.ts +5 -5
  602. package/src/generated/model/issueChallengeDefault.ts +64 -71
  603. package/src/generated/model/listBrandingDefault.ts +1 -1
  604. package/src/generated/model/listBrandingParams.ts +5 -5
  605. package/src/generated/model/listDeployments200.ts +4 -4
  606. package/src/generated/model/listDeployments200DeploymentsItem.ts +25 -25
  607. package/src/generated/model/listDeployments200DeploymentsItemMetadata.ts +29 -29
  608. package/src/generated/model/listDeployments200DeploymentsItemMetadataDeployedByType.ts +6 -7
  609. package/src/generated/model/listDeployments200DeploymentsItemMetadataReason.ts +5 -5
  610. package/src/generated/model/listDeployments200DeploymentsItemRelease.ts +14 -14
  611. package/src/generated/model/listDeployments200DeploymentsItemReleaseMetadata.ts +17 -17
  612. package/src/generated/model/listDeployments200DeploymentsItemReleaseMetadataCreatedByType.ts +6 -7
  613. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItem.ts +36 -36
  614. package/src/generated/model/listDeployments200DeploymentsItemReleasePointersItemKind.ts +5 -5
  615. package/src/generated/model/listDeploymentsDefault.ts +55 -61
  616. package/src/generated/model/listDeploymentsExpandItem.ts +3 -3
  617. package/src/generated/model/listDeploymentsParams.ts +33 -33
  618. package/src/generated/model/listEnvironments200.ts +4 -4
  619. package/src/generated/model/listEnvironments200EnvironmentsItem.ts +12 -12
  620. package/src/generated/model/listEnvironments200EnvironmentsItemCurrentDeployment.ts +16 -16
  621. package/src/generated/model/listEnvironments200EnvironmentsItemCurrentDeploymentReason.ts +5 -5
  622. package/src/generated/model/listEnvironmentsDefault.ts +46 -51
  623. package/src/generated/model/listEnvironmentsParams.ts +18 -18
  624. package/src/generated/model/listEvents200.ts +4 -4
  625. package/src/generated/model/listEvents200DataItem.ts +2594 -2335
  626. package/src/generated/model/listEvents400.ts +1 -1
  627. package/src/generated/model/listEvents401.ts +1 -1
  628. package/src/generated/model/listEvents403.ts +1 -1
  629. package/src/generated/model/listEventsCategoryItem.ts +8 -8
  630. package/src/generated/model/listEventsDefault.ts +1 -1
  631. package/src/generated/model/listEventsOrder.ts +4 -3
  632. package/src/generated/model/listEventsParams.ts +53 -53
  633. package/src/generated/model/listFlowDefinitions200.ts +1 -1
  634. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItem.ts +16 -16
  635. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinition.ts +39 -41
  636. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStatus.ts +4 -4
  637. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItem.ts +55 -48
  638. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItem.ts +24 -24
  639. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemActionsItemKind.ts +6 -6
  640. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemComplete.ts +4 -4
  641. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGates.ts +10 -12
  642. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesConfig.ts +1 -3
  643. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemGatesKind.ts +3 -3
  644. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemOnSuccess.ts +9 -3
  645. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitions.ts +11 -13
  646. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitionsAction.ts +4 -5
  647. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemFlowDefinitionStepsItemTransitionsPurpose.ts +8 -9
  648. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchema.ts +5 -5
  649. package/src/generated/model/listFlowDefinitions200FlowDefinitionsItemUserSchemaSchema.ts +75 -77
  650. package/src/generated/model/listFlowDefinitions400.ts +1 -1
  651. package/src/generated/model/listFlowDefinitionsDefault.ts +82 -91
  652. package/src/generated/model/listFlowDefinitionsExpandItem.ts +3 -3
  653. package/src/generated/model/listFlowDefinitionsParams.ts +49 -49
  654. package/src/generated/model/listFlowDefinitionsPurpose.ts +8 -8
  655. package/src/generated/model/listFlowDefinitionsRevisions.ts +4 -4
  656. package/src/generated/model/listIdpRevisions200.ts +4 -4
  657. package/src/generated/model/listIdpRevisions200RevisionsItem.ts +14 -14
  658. package/src/generated/model/listIdpRevisions200RevisionsItemDefinition.ts +17 -17
  659. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionClaimMapping.ts +1 -1
  660. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2.ts +22 -22
  661. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2StaticAuthorizeParameters.ts +1 -3
  662. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2SupplementaryFetch.ts +3 -3
  663. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOauth2TokenEndpointAuthMethod.ts +4 -4
  664. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidc.ts +28 -28
  665. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcStaticAuthorizeParameters.ts +1 -3
  666. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionOidcTokenEndpointAuthMethod.ts +4 -4
  667. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProtocol.ts +4 -4
  668. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioning.ts +1 -1
  669. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionProvisioningCreation.ts +4 -4
  670. package/src/generated/model/listIdpRevisions200RevisionsItemDefinitionVerifiedClaims.ts +1 -3
  671. package/src/generated/model/listIdpRevisions401.ts +1 -1
  672. package/src/generated/model/listIdpRevisions403.ts +1 -1
  673. package/src/generated/model/listIdpRevisions404.ts +1 -1
  674. package/src/generated/model/listIdpRevisionsDefault.ts +46 -51
  675. package/src/generated/model/listIdpRevisionsParams.ts +18 -18
  676. package/src/generated/model/listMyProjects200.ts +5 -5
  677. package/src/generated/model/listMyProjects200ProjectsItem.ts +4 -4
  678. package/src/generated/model/listMyProjects200ProjectsItemPasswordHash.ts +24 -24
  679. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashAlgorithm.ts +8 -8
  680. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParams.ts +6 -6
  681. package/src/generated/model/listMyProjects200ProjectsItemPasswordHashParamsHash.ts +7 -7
  682. package/src/generated/model/listMyProjects400.ts +1 -1
  683. package/src/generated/model/listMyProjects401.ts +1 -1
  684. package/src/generated/model/listMyProjects500.ts +1 -1
  685. package/src/generated/model/listMyProjectsDefault.ts +28 -31
  686. package/src/generated/model/listMyProjectsParams.ts +13 -13
  687. package/src/generated/model/listReleases200.ts +4 -4
  688. package/src/generated/model/listReleases200ReleasesItem.ts +7 -7
  689. package/src/generated/model/listReleases200ReleasesItemMetadata.ts +17 -17
  690. package/src/generated/model/listReleases200ReleasesItemMetadataCreatedByType.ts +6 -7
  691. package/src/generated/model/listReleasesDefault.ts +46 -51
  692. package/src/generated/model/listReleasesParams.ts +18 -18
  693. package/src/generated/model/listSchemas200.ts +4 -4
  694. package/src/generated/model/listSchemas200SchemasItem.ts +5 -5
  695. package/src/generated/model/listSchemas200SchemasItemSchema.ts +75 -77
  696. package/src/generated/model/listSchemasDefault.ts +46 -51
  697. package/src/generated/model/listSchemasKind.ts +3 -2
  698. package/src/generated/model/listSchemasParams.ts +52 -52
  699. package/src/generated/model/listSchemasRevisions.ts +4 -3
  700. package/src/generated/model/listUserPasskeys200.ts +4 -4
  701. package/src/generated/model/listUserPasskeys400.ts +1 -1
  702. package/src/generated/model/listUserPasskeys401.ts +1 -1
  703. package/src/generated/model/listUserPasskeys403.ts +1 -1
  704. package/src/generated/model/listUserPasskeys404.ts +1 -1
  705. package/src/generated/model/listUserPasskeys500.ts +1 -1
  706. package/src/generated/model/listUserPasskeysDefault.ts +46 -51
  707. package/src/generated/model/listUserPasskeysParams.ts +13 -13
  708. package/src/generated/model/listUserTeams200.ts +4 -4
  709. package/src/generated/model/listUserTeams200TeamsItem.ts +4 -4
  710. package/src/generated/model/listUserTeams200TeamsItemMembershipStatus.ts +5 -5
  711. package/src/generated/model/listUserTeams400.ts +1 -1
  712. package/src/generated/model/listUserTeams401.ts +1 -1
  713. package/src/generated/model/listUserTeams403.ts +1 -1
  714. package/src/generated/model/listUserTeams404.ts +1 -1
  715. package/src/generated/model/listUserTeams500.ts +1 -1
  716. package/src/generated/model/listUserTeamsDefault.ts +46 -51
  717. package/src/generated/model/listUserTeamsParams.ts +13 -13
  718. package/src/generated/model/patchMyUser200.ts +37 -37
  719. package/src/generated/model/patchMyUser200Metadata.ts +25 -25
  720. package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeam.ts +6 -6
  721. package/src/generated/model/patchMyUser200MetadataLifecycleOwnerTeamStatus.ts +4 -4
  722. package/src/generated/model/patchMyUser200MetadataStatus.ts +6 -6
  723. package/src/generated/model/patchMyUser200TeamsItem.ts +4 -4
  724. package/src/generated/model/patchMyUser200TeamsItemMembershipStatus.ts +5 -5
  725. package/src/generated/model/patchMyUser400.ts +1 -1
  726. package/src/generated/model/patchMyUser401.ts +1 -1
  727. package/src/generated/model/patchMyUser404.ts +1 -1
  728. package/src/generated/model/patchMyUser409.ts +1 -1
  729. package/src/generated/model/patchMyUserBody.ts +4 -4
  730. package/src/generated/model/patchMyUserDefault.ts +91 -91
  731. package/src/generated/model/patchProject200.ts +4 -4
  732. package/src/generated/model/patchProject200PasswordHash.ts +24 -24
  733. package/src/generated/model/patchProject200PasswordHashAlgorithm.ts +8 -8
  734. package/src/generated/model/patchProject200PasswordHashParams.ts +6 -6
  735. package/src/generated/model/patchProject200PasswordHashParamsHash.ts +7 -7
  736. package/src/generated/model/patchProject400.ts +1 -1
  737. package/src/generated/model/patchProject401.ts +1 -1
  738. package/src/generated/model/patchProject404.ts +1 -1
  739. package/src/generated/model/patchProjectBody.ts +5 -5
  740. package/src/generated/model/patchProjectBodyPasswordHash.ts +24 -24
  741. package/src/generated/model/patchProjectBodyPasswordHashAlgorithm.ts +8 -8
  742. package/src/generated/model/patchProjectBodyPasswordHashParams.ts +6 -6
  743. package/src/generated/model/patchProjectBodyPasswordHashParamsHash.ts +7 -7
  744. package/src/generated/model/patchProjectDefault.ts +91 -91
  745. package/src/generated/model/patchUserByID200.ts +37 -37
  746. package/src/generated/model/patchUserByID200Metadata.ts +25 -25
  747. package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeam.ts +6 -6
  748. package/src/generated/model/patchUserByID200MetadataLifecycleOwnerTeamStatus.ts +4 -4
  749. package/src/generated/model/patchUserByID200MetadataStatus.ts +6 -6
  750. package/src/generated/model/patchUserByID200TeamsItem.ts +4 -4
  751. package/src/generated/model/patchUserByID200TeamsItemMembershipStatus.ts +5 -5
  752. package/src/generated/model/patchUserByID400.ts +1 -1
  753. package/src/generated/model/patchUserByID401.ts +1 -1
  754. package/src/generated/model/patchUserByID403.ts +1 -1
  755. package/src/generated/model/patchUserByID404.ts +1 -1
  756. package/src/generated/model/patchUserByID409.ts +1 -1
  757. package/src/generated/model/patchUserByIDBody.ts +8 -8
  758. package/src/generated/model/patchUserByIDDefault.ts +82 -91
  759. package/src/generated/model/queryGrants200.ts +5 -5
  760. package/src/generated/model/queryGrants200GrantsItem.ts +17 -17
  761. package/src/generated/model/queryGrants200GrantsItemObjectType.ts +3 -3
  762. package/src/generated/model/queryGrants200GrantsItemRelation.ts +5 -5
  763. package/src/generated/model/queryGrants200GrantsItemTeam.ts +6 -6
  764. package/src/generated/model/queryGrants200GrantsItemTeamStatus.ts +4 -4
  765. package/src/generated/model/queryGrants200GrantsItemUser.ts +22 -22
  766. package/src/generated/model/queryGrants200GrantsItemUserMetadata.ts +25 -25
  767. package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeam.ts +6 -6
  768. package/src/generated/model/queryGrants200GrantsItemUserMetadataLifecycleOwnerTeamStatus.ts +4 -4
  769. package/src/generated/model/queryGrants200GrantsItemUserMetadataStatus.ts +6 -6
  770. package/src/generated/model/queryGrants400.ts +1 -1
  771. package/src/generated/model/queryGrants401.ts +1 -1
  772. package/src/generated/model/queryGrants403.ts +1 -1
  773. package/src/generated/model/queryGrantsBody.ts +14 -14
  774. package/src/generated/model/queryGrantsBodyExpandItem.ts +3 -3
  775. package/src/generated/model/queryGrantsBodyFilterItem.ts +20 -20
  776. package/src/generated/model/queryGrantsBodyFilterItemField.ts +7 -7
  777. package/src/generated/model/queryGrantsBodyFilterItemOperation.ts +10 -10
  778. package/src/generated/model/queryGrantsBodySorting.ts +5 -5
  779. package/src/generated/model/queryGrantsBodySortingDirection.ts +4 -4
  780. package/src/generated/model/queryGrantsBodySortingField.ts +5 -5
  781. package/src/generated/model/queryGrantsDefault.ts +91 -91
  782. package/src/generated/model/queryGrantsParams.ts +5 -5
  783. package/src/generated/model/queryIdps200.ts +5 -5
  784. package/src/generated/model/queryIdps200IdpsItem.ts +14 -14
  785. package/src/generated/model/queryIdps200IdpsItemDefinition.ts +17 -17
  786. package/src/generated/model/queryIdps200IdpsItemDefinitionClaimMapping.ts +1 -1
  787. package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2.ts +22 -22
  788. package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2StaticAuthorizeParameters.ts +1 -3
  789. package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2SupplementaryFetch.ts +3 -3
  790. package/src/generated/model/queryIdps200IdpsItemDefinitionOauth2TokenEndpointAuthMethod.ts +4 -4
  791. package/src/generated/model/queryIdps200IdpsItemDefinitionOidc.ts +28 -28
  792. package/src/generated/model/queryIdps200IdpsItemDefinitionOidcStaticAuthorizeParameters.ts +1 -1
  793. package/src/generated/model/queryIdps200IdpsItemDefinitionOidcTokenEndpointAuthMethod.ts +4 -4
  794. package/src/generated/model/queryIdps200IdpsItemDefinitionProtocol.ts +4 -4
  795. package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioning.ts +1 -1
  796. package/src/generated/model/queryIdps200IdpsItemDefinitionProvisioningCreation.ts +4 -4
  797. package/src/generated/model/queryIdps200IdpsItemDefinitionVerifiedClaims.ts +1 -1
  798. package/src/generated/model/queryIdps400.ts +1 -1
  799. package/src/generated/model/queryIdps401.ts +1 -1
  800. package/src/generated/model/queryIdps403.ts +1 -1
  801. package/src/generated/model/queryIdps404.ts +1 -1
  802. package/src/generated/model/queryIdpsBody.ts +9 -9
  803. package/src/generated/model/queryIdpsBodyFilterItem.ts +18 -18
  804. package/src/generated/model/queryIdpsBodyFilterItemField.ts +4 -4
  805. package/src/generated/model/queryIdpsBodyFilterItemOperation.ts +10 -10
  806. package/src/generated/model/queryIdpsBodySorting.ts +7 -7
  807. package/src/generated/model/queryIdpsBodySortingDirection.ts +4 -4
  808. package/src/generated/model/queryIdpsBodySortingField.ts +4 -4
  809. package/src/generated/model/queryIdpsDefault.ts +55 -61
  810. package/src/generated/model/queryIdpsParams.ts +5 -5
  811. package/src/generated/model/queryProjects200.ts +5 -5
  812. package/src/generated/model/queryProjects200ProjectsItem.ts +4 -4
  813. package/src/generated/model/queryProjects200ProjectsItemPasswordHash.ts +24 -24
  814. package/src/generated/model/queryProjects200ProjectsItemPasswordHashAlgorithm.ts +8 -8
  815. package/src/generated/model/queryProjects200ProjectsItemPasswordHashParams.ts +6 -6
  816. package/src/generated/model/queryProjects200ProjectsItemPasswordHashParamsHash.ts +7 -7
  817. package/src/generated/model/queryProjects400.ts +1 -1
  818. package/src/generated/model/queryProjects401.ts +1 -1
  819. package/src/generated/model/queryProjects403.ts +1 -1
  820. package/src/generated/model/queryProjects429.ts +1 -1
  821. package/src/generated/model/queryProjectsBody.ts +9 -9
  822. package/src/generated/model/queryProjectsBodyFilterItem.ts +13 -13
  823. package/src/generated/model/queryProjectsBodyFilterItemField.ts +3 -3
  824. package/src/generated/model/queryProjectsBodyFilterItemOperation.ts +10 -10
  825. package/src/generated/model/queryProjectsBodySorting.ts +2 -2
  826. package/src/generated/model/queryProjectsBodySortingDirection.ts +4 -4
  827. package/src/generated/model/queryProjectsBodySortingField.ts +3 -3
  828. package/src/generated/model/queryProjectsDefault.ts +64 -71
  829. package/src/generated/model/querySessions200.ts +4 -4
  830. package/src/generated/model/querySessions200SessionsItem.ts +36 -36
  831. package/src/generated/model/querySessions200SessionsItemFactorsItem.ts +8 -7
  832. package/src/generated/model/querySessions200SessionsItemFactorsItemMethod.ts +6 -5
  833. package/src/generated/model/querySessions200SessionsItemFactorsItemPayload.ts +23 -25
  834. package/src/generated/model/querySessions200SessionsItemState.ts +5 -5
  835. package/src/generated/model/querySessions200SessionsItemUser.ts +14 -14
  836. package/src/generated/model/querySessions200SessionsItemUserAgent.ts +1 -1
  837. package/src/generated/model/querySessions400.ts +1 -1
  838. package/src/generated/model/querySessions401.ts +1 -1
  839. package/src/generated/model/querySessions403.ts +1 -1
  840. package/src/generated/model/querySessionsBody.ts +5 -5
  841. package/src/generated/model/querySessionsBodyFilterItem.ts +27 -27
  842. package/src/generated/model/querySessionsBodyFilterItemField.ts +6 -6
  843. package/src/generated/model/querySessionsBodyFilterItemOperation.ts +10 -10
  844. package/src/generated/model/querySessionsBodySorting.ts +6 -6
  845. package/src/generated/model/querySessionsBodySortingDirection.ts +4 -4
  846. package/src/generated/model/querySessionsBodySortingField.ts +4 -4
  847. package/src/generated/model/querySessionsDefault.ts +64 -71
  848. package/src/generated/model/querySessionsParams.ts +5 -5
  849. package/src/generated/model/queryTeams200.ts +5 -5
  850. package/src/generated/model/queryTeams200TeamsItem.ts +6 -6
  851. package/src/generated/model/queryTeams200TeamsItemStatus.ts +4 -4
  852. package/src/generated/model/queryTeams400.ts +1 -1
  853. package/src/generated/model/queryTeams401.ts +1 -1
  854. package/src/generated/model/queryTeams403.ts +1 -1
  855. package/src/generated/model/queryTeams404.ts +1 -1
  856. package/src/generated/model/queryTeams429.ts +1 -1
  857. package/src/generated/model/queryTeamsBody.ts +9 -9
  858. package/src/generated/model/queryTeamsBodyFilterItem.ts +18 -18
  859. package/src/generated/model/queryTeamsBodyFilterItemField.ts +5 -5
  860. package/src/generated/model/queryTeamsBodyFilterItemOperation.ts +10 -10
  861. package/src/generated/model/queryTeamsBodySorting.ts +7 -7
  862. package/src/generated/model/queryTeamsBodySortingDirection.ts +4 -4
  863. package/src/generated/model/queryTeamsBodySortingField.ts +5 -5
  864. package/src/generated/model/queryTeamsDefault.ts +1 -1
  865. package/src/generated/model/queryTeamsParams.ts +5 -5
  866. package/src/generated/model/queryUsers200.ts +4 -4
  867. package/src/generated/model/queryUsers200UsersItem.ts +37 -37
  868. package/src/generated/model/queryUsers200UsersItemMetadata.ts +25 -25
  869. package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeam.ts +6 -6
  870. package/src/generated/model/queryUsers200UsersItemMetadataLifecycleOwnerTeamStatus.ts +4 -4
  871. package/src/generated/model/queryUsers200UsersItemMetadataStatus.ts +6 -6
  872. package/src/generated/model/queryUsers200UsersItemTeamsItem.ts +4 -4
  873. package/src/generated/model/queryUsers200UsersItemTeamsItemMembershipStatus.ts +5 -5
  874. package/src/generated/model/queryUsers400.ts +1 -1
  875. package/src/generated/model/queryUsers401.ts +1 -1
  876. package/src/generated/model/queryUsers403.ts +1 -1
  877. package/src/generated/model/queryUsersBody.ts +13 -13
  878. package/src/generated/model/queryUsersBodyExpandItem.ts +8 -6
  879. package/src/generated/model/queryUsersBodyFilterItem.ts +43 -42
  880. package/src/generated/model/queryUsersBodyFilterItemField.ts +11 -10
  881. package/src/generated/model/queryUsersBodyFilterItemOperation.ts +10 -10
  882. package/src/generated/model/queryUsersBodySorting.ts +9 -9
  883. package/src/generated/model/queryUsersBodySortingDirection.ts +4 -4
  884. package/src/generated/model/queryUsersBodySortingField.ts +7 -7
  885. package/src/generated/model/queryUsersDefault.ts +64 -61
  886. package/src/generated/model/queryUsersParams.ts +6 -6
  887. package/src/generated/model/revokeMySession401.ts +1 -1
  888. package/src/generated/model/revokeMySessionDefault.ts +55 -51
  889. package/src/generated/model/revokeSession401.ts +1 -1
  890. package/src/generated/model/revokeSession403.ts +1 -1
  891. package/src/generated/model/revokeSessionDefault.ts +55 -61
  892. package/src/generated/model/setUserPassword400.ts +1 -1
  893. package/src/generated/model/setUserPassword404.ts +1 -1
  894. package/src/generated/model/setUserPassword500.ts +1 -1
  895. package/src/generated/model/setUserPasswordBody.ts +0 -5
  896. package/src/generated/model/setUserPasswordDefault.ts +82 -71
  897. package/src/generated/model/submitFlowStep200.ts +28 -28
  898. package/src/generated/model/submitFlowStep200Branding.ts +43 -43
  899. package/src/generated/model/submitFlowStep200BrandingLayout.ts +4 -4
  900. package/src/generated/model/submitFlowStep200BrandingShape.ts +12 -12
  901. package/src/generated/model/submitFlowStep200BrandingShapeDensity.ts +5 -5
  902. package/src/generated/model/submitFlowStep200BrandingTheme.ts +15 -15
  903. package/src/generated/model/submitFlowStep200BrandingThemeDark.ts +13 -13
  904. package/src/generated/model/submitFlowStep200BrandingThemeDarkPalette.ts +168 -168
  905. package/src/generated/model/submitFlowStep200BrandingThemeLight.ts +13 -13
  906. package/src/generated/model/submitFlowStep200BrandingThemeLightPalette.ts +168 -168
  907. package/src/generated/model/submitFlowStep200BrandingThemeMode.ts +5 -5
  908. package/src/generated/model/submitFlowStep200BrandingTypography.ts +27 -27
  909. package/src/generated/model/submitFlowStep200Step.ts +79 -45
  910. package/src/generated/model/submitFlowStep200StepActionsItem.ts +18 -18
  911. package/src/generated/model/submitFlowStep200StepActionsItemKind.ts +7 -7
  912. package/src/generated/model/submitFlowStep200StepChallenge.ts +10 -10
  913. package/src/generated/model/submitFlowStep200StepChallengeMethod.ts +4 -4
  914. package/src/generated/model/submitFlowStep200StepComplete.ts +4 -4
  915. package/src/generated/model/submitFlowStep200StepFieldsItem.ts +48 -23
  916. package/src/generated/model/submitFlowStep200StepFieldsItemType.ts +12 -12
  917. package/src/generated/model/submitFlowStep200StepFieldsItemValidation.ts +18 -18
  918. package/src/generated/model/submitFlowStep200StepFieldsItemValidationFormat.ts +6 -6
  919. package/src/generated/model/submitFlowStep200StepGates.ts +10 -12
  920. package/src/generated/model/submitFlowStep200StepGatesKind.ts +3 -3
  921. package/src/generated/model/submitFlowStep200StepIdentifier.ts +53 -0
  922. package/src/generated/model/submitFlowStep400.ts +28 -28
  923. package/src/generated/model/submitFlowStep400Branding.ts +43 -43
  924. package/src/generated/model/submitFlowStep400BrandingLayout.ts +4 -4
  925. package/src/generated/model/submitFlowStep400BrandingShape.ts +12 -12
  926. package/src/generated/model/submitFlowStep400BrandingShapeDensity.ts +5 -5
  927. package/src/generated/model/submitFlowStep400BrandingTheme.ts +15 -15
  928. package/src/generated/model/submitFlowStep400BrandingThemeDark.ts +13 -13
  929. package/src/generated/model/submitFlowStep400BrandingThemeDarkPalette.ts +168 -168
  930. package/src/generated/model/submitFlowStep400BrandingThemeLight.ts +13 -13
  931. package/src/generated/model/submitFlowStep400BrandingThemeLightPalette.ts +168 -168
  932. package/src/generated/model/submitFlowStep400BrandingThemeMode.ts +5 -5
  933. package/src/generated/model/submitFlowStep400BrandingTypography.ts +27 -27
  934. package/src/generated/model/submitFlowStep400Step.ts +79 -45
  935. package/src/generated/model/submitFlowStep400StepActionsItem.ts +18 -18
  936. package/src/generated/model/submitFlowStep400StepActionsItemKind.ts +7 -7
  937. package/src/generated/model/submitFlowStep400StepChallenge.ts +10 -10
  938. package/src/generated/model/submitFlowStep400StepChallengeMethod.ts +4 -4
  939. package/src/generated/model/submitFlowStep400StepComplete.ts +4 -4
  940. package/src/generated/model/submitFlowStep400StepFieldsItem.ts +48 -23
  941. package/src/generated/model/submitFlowStep400StepFieldsItemType.ts +12 -12
  942. package/src/generated/model/submitFlowStep400StepFieldsItemValidation.ts +18 -18
  943. package/src/generated/model/submitFlowStep400StepFieldsItemValidationFormat.ts +6 -6
  944. package/src/generated/model/submitFlowStep400StepGates.ts +10 -12
  945. package/src/generated/model/submitFlowStep400StepGatesKind.ts +3 -3
  946. package/src/generated/model/submitFlowStep400StepIdentifier.ts +53 -0
  947. package/src/generated/model/submitFlowStep409.ts +1 -1
  948. package/src/generated/model/submitFlowStepBody.ts +29 -17
  949. package/src/generated/model/submitFlowStepBodyChallengeResponse.ts +7 -7
  950. package/src/generated/model/submitFlowStepBodyGateProofs.ts +1 -1
  951. package/src/generated/model/submitFlowStepDefault.ts +262 -261
  952. package/src/generated/model/updateTeam200.ts +6 -6
  953. package/src/generated/model/updateTeam200Status.ts +4 -3
  954. package/src/generated/model/updateTeam400.ts +1 -1
  955. package/src/generated/model/updateTeam401.ts +1 -1
  956. package/src/generated/model/updateTeam403.ts +1 -1
  957. package/src/generated/model/updateTeam404.ts +1 -1
  958. package/src/generated/model/updateTeam409.ts +1 -1
  959. package/src/generated/model/updateTeamBody.ts +4 -4
  960. package/src/generated/model/updateTeamDefault.ts +1 -1
  961. package/src/generated/model/updateVariables200.ts +4 -10
  962. package/src/generated/model/updateVariablesBody.ts +20 -27
  963. package/src/generated/model/updateVariablesDefault.ts +118 -131
  964. package/src/generated/model/updateVariablesParams.ts +15 -15
  965. package/src/generated/model/verifyChallengeProof200.ts +35 -35
  966. package/src/generated/model/verifyChallengeProof200ChallengesItem.ts +20 -17
  967. package/src/generated/model/verifyChallengeProof200ChallengesItemMethod.ts +7 -6
  968. package/src/generated/model/verifyChallengeProof200ChallengesItemPayload.ts +20 -22
  969. package/src/generated/model/verifyChallengeProof200ChallengesItemState.ts +5 -5
  970. package/src/generated/model/verifyChallengeProof200CompletedFactorsItem.ts +8 -7
  971. package/src/generated/model/verifyChallengeProof200CompletedFactorsItemMethod.ts +6 -5
  972. package/src/generated/model/verifyChallengeProof200CompletedFactorsItemPayload.ts +23 -25
  973. package/src/generated/model/verifyChallengeProof200RequiredFactorsItem.ts +6 -5
  974. package/src/generated/model/verifyChallengeProof200State.ts +6 -6
  975. package/src/generated/model/verifyChallengeProofBody.ts +13 -16
  976. package/src/generated/model/verifyChallengeProofDefault.ts +145 -141
  977. package/src/runtime/api-factory.ts +13 -0
  978. package/src/runtime/auth.ts +95 -0
  979. package/src/runtime/config.spec.ts +5 -7
  980. package/src/runtime/fetch.spec.ts +358 -0
  981. package/src/runtime/fetch.ts +192 -6
  982. package/dist/fetch-DEQBdRAE.d.mts +0 -44
  983. package/dist/fetch-DEQBdRAE.d.mts.map +0 -1
  984. package/dist/index-DCCtHY7q.d.mts.map +0 -1
  985. package/dist/zitadelNextGen-NzRGHVHl.d.mts.map +0 -1
  986. /package/dist/{chunk-CfYAbeIz.mjs → rolldown-runtime-D7D4PA-g.mjs} +0 -0
@@ -10,2338 +10,2597 @@
10
10
  * Discriminated wide-event union (ADR 048 / ADR 049). Clients select the
11
11
  * member via event_type; each member carries a typed payload.
12
12
  */
13
- export type ListEvents200DataItem =
14
- | ({
15
- /** Managed event id (`evt_<opaque>`). */
16
- id: string;
17
- /** @pattern ^[a-zA-Z0-9_-]+$ */
18
- project_id: string;
19
- /** Emit-time team scope, when the actor operated under a team. */
20
- team_id?: string | null;
21
- /**
22
- * Semantic event name (dot-separated). Discriminator for the Event union —
23
- * see docs/design/api/events-catalog.md.
24
- */
25
- event_type: string;
26
- /** Wide-event category. */
27
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
28
- /** When the action happened (server/storage clock, dialect-owned). */
29
- occurred_at: string;
30
- /** When the row was inserted (server/storage clock, dialect-owned). */
31
- created_at: string;
32
- /** Who triggered the event. */
33
- actor_id?: string | null;
34
- /** Actor kind. */
35
- actor_type?: "human" | "service" | "system" | "agent" | null;
36
- /** Resource type affected. */
37
- entity_type?: string | null;
38
- /** Resource id affected. */
39
- entity_id?: string | null;
40
- /** Application or agent that produced the event. */
41
- client_id: string;
42
- /** Token id present at emit time, when any. */
43
- token_id?: string;
44
- /** Delegation kind (omit when unset). */
45
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
46
- delegation_id?: string;
47
- grantor?: string;
48
- /** Device fingerprint correlation id. */
49
- fingerprint?: string;
50
- /** HTTP request correlation id. */
51
- request_id?: string | null;
52
- /** Session correlation id. */
53
- session_id?: string | null;
54
- /** Login flow correlation id. */
55
- flow_id?: string | null;
56
- /**
57
- * Emit-time metadata, already redacted at write. Path A request.api may
58
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
59
- * live risk-evaluator input.
60
- */
61
- metadata?: {
62
- /** Observed HTTP requestor context on Path A request.api only. */
63
- client?: {
64
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
65
- ip?: string;
66
- /** Observed User-Agent header. */
67
- user_agent?: string;
68
- /** Origin header when present. */
69
- origin?: string;
70
- };
71
- [key: string]: unknown;
72
- };
73
- } & {
74
- event_type: "auth.attempt.created";
75
- /**
76
- * Empty payload for event types with no typed fields
77
- * (e.g. `project.deleted`, `user.deleted`, `session.expired`).
78
- */
79
- payload: { [key: string]: unknown };
80
- })
81
- | ({
82
- /** Managed event id (`evt_<opaque>`). */
83
- id: string;
84
- /** @pattern ^[a-zA-Z0-9_-]+$ */
85
- project_id: string;
86
- /** Emit-time team scope, when the actor operated under a team. */
87
- team_id?: string | null;
88
- /**
89
- * Semantic event name (dot-separated). Discriminator for the Event union —
90
- * see docs/design/api/events-catalog.md.
91
- */
92
- event_type: string;
93
- /** Wide-event category. */
94
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
95
- /** When the action happened (server/storage clock, dialect-owned). */
96
- occurred_at: string;
97
- /** When the row was inserted (server/storage clock, dialect-owned). */
98
- created_at: string;
99
- /** Who triggered the event. */
100
- actor_id?: string | null;
101
- /** Actor kind. */
102
- actor_type?: "human" | "service" | "system" | "agent" | null;
103
- /** Resource type affected. */
104
- entity_type?: string | null;
105
- /** Resource id affected. */
106
- entity_id?: string | null;
107
- /** Application or agent that produced the event. */
108
- client_id: string;
109
- /** Token id present at emit time, when any. */
110
- token_id?: string;
111
- /** Delegation kind (omit when unset). */
112
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
113
- delegation_id?: string;
114
- grantor?: string;
115
- /** Device fingerprint correlation id. */
116
- fingerprint?: string;
117
- /** HTTP request correlation id. */
118
- request_id?: string | null;
119
- /** Session correlation id. */
120
- session_id?: string | null;
121
- /** Login flow correlation id. */
122
- flow_id?: string | null;
123
- /**
124
- * Emit-time metadata, already redacted at write. Path A request.api may
125
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
126
- * live risk-evaluator input.
127
- */
128
- metadata?: {
129
- /** Observed HTTP requestor context on Path A request.api only. */
130
- client?: {
131
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
132
- ip?: string;
133
- /** Observed User-Agent header. */
134
- user_agent?: string;
135
- /** Origin header when present. */
136
- origin?: string;
137
- };
138
- [key: string]: unknown;
139
- };
140
- } & {
141
- event_type: "auth.attempt.handed_off";
142
- /**
143
- * Empty payload for event types with no typed fields
144
- * (e.g. `project.deleted`, `user.deleted`, `session.expired`).
145
- */
146
- payload: { [key: string]: unknown };
147
- })
148
- | ({
149
- /** Managed event id (`evt_<opaque>`). */
150
- id: string;
151
- /** @pattern ^[a-zA-Z0-9_-]+$ */
152
- project_id: string;
153
- /** Emit-time team scope, when the actor operated under a team. */
154
- team_id?: string | null;
155
- /**
156
- * Semantic event name (dot-separated). Discriminator for the Event union —
157
- * see docs/design/api/events-catalog.md.
158
- */
159
- event_type: string;
160
- /** Wide-event category. */
161
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
162
- /** When the action happened (server/storage clock, dialect-owned). */
163
- occurred_at: string;
164
- /** When the row was inserted (server/storage clock, dialect-owned). */
165
- created_at: string;
166
- /** Who triggered the event. */
167
- actor_id?: string | null;
168
- /** Actor kind. */
169
- actor_type?: "human" | "service" | "system" | "agent" | null;
170
- /** Resource type affected. */
171
- entity_type?: string | null;
172
- /** Resource id affected. */
173
- entity_id?: string | null;
174
- /** Application or agent that produced the event. */
175
- client_id: string;
176
- /** Token id present at emit time, when any. */
177
- token_id?: string;
178
- /** Delegation kind (omit when unset). */
179
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
180
- delegation_id?: string;
181
- grantor?: string;
182
- /** Device fingerprint correlation id. */
183
- fingerprint?: string;
184
- /** HTTP request correlation id. */
185
- request_id?: string | null;
186
- /** Session correlation id. */
187
- session_id?: string | null;
188
- /** Login flow correlation id. */
189
- flow_id?: string | null;
190
- /**
191
- * Emit-time metadata, already redacted at write. Path A request.api may
192
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
193
- * live risk-evaluator input.
194
- */
195
- metadata?: {
196
- /** Observed HTTP requestor context on Path A request.api only. */
197
- client?: {
198
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
199
- ip?: string;
200
- /** Observed User-Agent header. */
201
- user_agent?: string;
202
- /** Origin header when present. */
203
- origin?: string;
204
- };
205
- [key: string]: unknown;
206
- };
207
- } & {
208
- event_type: "auth.check.failed";
209
- /**
210
- * Payload for `auth.check.failed` / `auth.check.succeeded`.
211
- * `auth_attempt_id` joins the check to its attempt for SIEM correlation.
212
- */
213
- payload: {
214
- check_id: string;
215
- check_type?: string;
216
- auth_attempt_id?: string;
217
- };
218
- })
219
- | ({
220
- /** Managed event id (`evt_<opaque>`). */
221
- id: string;
222
- /** @pattern ^[a-zA-Z0-9_-]+$ */
223
- project_id: string;
224
- /** Emit-time team scope, when the actor operated under a team. */
225
- team_id?: string | null;
226
- /**
227
- * Semantic event name (dot-separated). Discriminator for the Event union —
228
- * see docs/design/api/events-catalog.md.
229
- */
230
- event_type: string;
231
- /** Wide-event category. */
232
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
233
- /** When the action happened (server/storage clock, dialect-owned). */
234
- occurred_at: string;
235
- /** When the row was inserted (server/storage clock, dialect-owned). */
236
- created_at: string;
237
- /** Who triggered the event. */
238
- actor_id?: string | null;
239
- /** Actor kind. */
240
- actor_type?: "human" | "service" | "system" | "agent" | null;
241
- /** Resource type affected. */
242
- entity_type?: string | null;
243
- /** Resource id affected. */
244
- entity_id?: string | null;
245
- /** Application or agent that produced the event. */
246
- client_id: string;
247
- /** Token id present at emit time, when any. */
248
- token_id?: string;
249
- /** Delegation kind (omit when unset). */
250
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
251
- delegation_id?: string;
252
- grantor?: string;
253
- /** Device fingerprint correlation id. */
254
- fingerprint?: string;
255
- /** HTTP request correlation id. */
256
- request_id?: string | null;
257
- /** Session correlation id. */
258
- session_id?: string | null;
259
- /** Login flow correlation id. */
260
- flow_id?: string | null;
261
- /**
262
- * Emit-time metadata, already redacted at write. Path A request.api may
263
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
264
- * live risk-evaluator input.
265
- */
266
- metadata?: {
267
- /** Observed HTTP requestor context on Path A request.api only. */
268
- client?: {
269
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
270
- ip?: string;
271
- /** Observed User-Agent header. */
272
- user_agent?: string;
273
- /** Origin header when present. */
274
- origin?: string;
275
- };
276
- [key: string]: unknown;
277
- };
278
- } & {
279
- event_type: "auth.check.succeeded";
280
- /**
281
- * Payload for `auth.check.failed` / `auth.check.succeeded`.
282
- * `auth_attempt_id` joins the check to its attempt for SIEM correlation.
283
- */
284
- payload: {
285
- check_id: string;
286
- check_type?: string;
287
- auth_attempt_id?: string;
288
- };
289
- })
290
- | ({
291
- /** Managed event id (`evt_<opaque>`). */
292
- id: string;
293
- /** @pattern ^[a-zA-Z0-9_-]+$ */
294
- project_id: string;
295
- /** Emit-time team scope, when the actor operated under a team. */
296
- team_id?: string | null;
297
- /**
298
- * Semantic event name (dot-separated). Discriminator for the Event union —
299
- * see docs/design/api/events-catalog.md.
300
- */
301
- event_type: string;
302
- /** Wide-event category. */
303
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
304
- /** When the action happened (server/storage clock, dialect-owned). */
305
- occurred_at: string;
306
- /** When the row was inserted (server/storage clock, dialect-owned). */
307
- created_at: string;
308
- /** Who triggered the event. */
309
- actor_id?: string | null;
310
- /** Actor kind. */
311
- actor_type?: "human" | "service" | "system" | "agent" | null;
312
- /** Resource type affected. */
313
- entity_type?: string | null;
314
- /** Resource id affected. */
315
- entity_id?: string | null;
316
- /** Application or agent that produced the event. */
317
- client_id: string;
318
- /** Token id present at emit time, when any. */
319
- token_id?: string;
320
- /** Delegation kind (omit when unset). */
321
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
322
- delegation_id?: string;
323
- grantor?: string;
324
- /** Device fingerprint correlation id. */
325
- fingerprint?: string;
326
- /** HTTP request correlation id. */
327
- request_id?: string | null;
328
- /** Session correlation id. */
329
- session_id?: string | null;
330
- /** Login flow correlation id. */
331
- flow_id?: string | null;
332
- /**
333
- * Emit-time metadata, already redacted at write. Path A request.api may
334
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
335
- * live risk-evaluator input.
336
- */
337
- metadata?: {
338
- /** Observed HTTP requestor context on Path A request.api only. */
339
- client?: {
340
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
341
- ip?: string;
342
- /** Observed User-Agent header. */
343
- user_agent?: string;
344
- /** Origin header when present. */
345
- origin?: string;
346
- };
347
- [key: string]: unknown;
348
- };
349
- } & {
350
- event_type: "auth.factor.passkey.enrolled";
351
- /** Payload for `auth.factor.*` events. */
352
- payload: {
353
- user_id: string;
354
- factor_id?: string;
355
- };
356
- })
357
- | ({
358
- /** Managed event id (`evt_<opaque>`). */
359
- id: string;
360
- /** @pattern ^[a-zA-Z0-9_-]+$ */
361
- project_id: string;
362
- /** Emit-time team scope, when the actor operated under a team. */
363
- team_id?: string | null;
364
- /**
365
- * Semantic event name (dot-separated). Discriminator for the Event union —
366
- * see docs/design/api/events-catalog.md.
367
- */
368
- event_type: string;
369
- /** Wide-event category. */
370
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
371
- /** When the action happened (server/storage clock, dialect-owned). */
372
- occurred_at: string;
373
- /** When the row was inserted (server/storage clock, dialect-owned). */
374
- created_at: string;
375
- /** Who triggered the event. */
376
- actor_id?: string | null;
377
- /** Actor kind. */
378
- actor_type?: "human" | "service" | "system" | "agent" | null;
379
- /** Resource type affected. */
380
- entity_type?: string | null;
381
- /** Resource id affected. */
382
- entity_id?: string | null;
383
- /** Application or agent that produced the event. */
384
- client_id: string;
385
- /** Token id present at emit time, when any. */
386
- token_id?: string;
387
- /** Delegation kind (omit when unset). */
388
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
389
- delegation_id?: string;
390
- grantor?: string;
391
- /** Device fingerprint correlation id. */
392
- fingerprint?: string;
393
- /** HTTP request correlation id. */
394
- request_id?: string | null;
395
- /** Session correlation id. */
396
- session_id?: string | null;
397
- /** Login flow correlation id. */
398
- flow_id?: string | null;
399
- /**
400
- * Emit-time metadata, already redacted at write. Path A request.api may
401
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
402
- * live risk-evaluator input.
403
- */
404
- metadata?: {
405
- /** Observed HTTP requestor context on Path A request.api only. */
406
- client?: {
407
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
408
- ip?: string;
409
- /** Observed User-Agent header. */
410
- user_agent?: string;
411
- /** Origin header when present. */
412
- origin?: string;
413
- };
414
- [key: string]: unknown;
415
- };
416
- } & {
417
- event_type: "auth.factor.password.set";
418
- /** Payload for `auth.factor.*` events. */
419
- payload: {
420
- user_id: string;
421
- factor_id?: string;
422
- };
423
- })
424
- | ({
425
- /** Managed event id (`evt_<opaque>`). */
426
- id: string;
427
- /** @pattern ^[a-zA-Z0-9_-]+$ */
428
- project_id: string;
429
- /** Emit-time team scope, when the actor operated under a team. */
430
- team_id?: string | null;
431
- /**
432
- * Semantic event name (dot-separated). Discriminator for the Event union —
433
- * see docs/design/api/events-catalog.md.
434
- */
435
- event_type: string;
436
- /** Wide-event category. */
437
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
438
- /** When the action happened (server/storage clock, dialect-owned). */
439
- occurred_at: string;
440
- /** When the row was inserted (server/storage clock, dialect-owned). */
441
- created_at: string;
442
- /** Who triggered the event. */
443
- actor_id?: string | null;
444
- /** Actor kind. */
445
- actor_type?: "human" | "service" | "system" | "agent" | null;
446
- /** Resource type affected. */
447
- entity_type?: string | null;
448
- /** Resource id affected. */
449
- entity_id?: string | null;
450
- /** Application or agent that produced the event. */
451
- client_id: string;
452
- /** Token id present at emit time, when any. */
453
- token_id?: string;
454
- /** Delegation kind (omit when unset). */
455
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
456
- delegation_id?: string;
457
- grantor?: string;
458
- /** Device fingerprint correlation id. */
459
- fingerprint?: string;
460
- /** HTTP request correlation id. */
461
- request_id?: string | null;
462
- /** Session correlation id. */
463
- session_id?: string | null;
464
- /** Login flow correlation id. */
465
- flow_id?: string | null;
466
- /**
467
- * Emit-time metadata, already redacted at write. Path A request.api may
468
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
469
- * live risk-evaluator input.
470
- */
471
- metadata?: {
472
- /** Observed HTTP requestor context on Path A request.api only. */
473
- client?: {
474
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
475
- ip?: string;
476
- /** Observed User-Agent header. */
477
- user_agent?: string;
478
- /** Origin header when present. */
479
- origin?: string;
480
- };
481
- [key: string]: unknown;
482
- };
483
- } & {
484
- event_type: "auth.token.issued";
485
- /** Payload for `auth.token.issued` events. */
486
- payload: {
487
- scopes?: string[];
488
- };
489
- })
490
- | ({
491
- /** Managed event id (`evt_<opaque>`). */
492
- id: string;
493
- /** @pattern ^[a-zA-Z0-9_-]+$ */
494
- project_id: string;
495
- /** Emit-time team scope, when the actor operated under a team. */
496
- team_id?: string | null;
497
- /**
498
- * Semantic event name (dot-separated). Discriminator for the Event union —
499
- * see docs/design/api/events-catalog.md.
500
- */
501
- event_type: string;
502
- /** Wide-event category. */
503
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
504
- /** When the action happened (server/storage clock, dialect-owned). */
505
- occurred_at: string;
506
- /** When the row was inserted (server/storage clock, dialect-owned). */
507
- created_at: string;
508
- /** Who triggered the event. */
509
- actor_id?: string | null;
510
- /** Actor kind. */
511
- actor_type?: "human" | "service" | "system" | "agent" | null;
512
- /** Resource type affected. */
513
- entity_type?: string | null;
514
- /** Resource id affected. */
515
- entity_id?: string | null;
516
- /** Application or agent that produced the event. */
517
- client_id: string;
518
- /** Token id present at emit time, when any. */
519
- token_id?: string;
520
- /** Delegation kind (omit when unset). */
521
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
522
- delegation_id?: string;
523
- grantor?: string;
524
- /** Device fingerprint correlation id. */
525
- fingerprint?: string;
526
- /** HTTP request correlation id. */
527
- request_id?: string | null;
528
- /** Session correlation id. */
529
- session_id?: string | null;
530
- /** Login flow correlation id. */
531
- flow_id?: string | null;
532
- /**
533
- * Emit-time metadata, already redacted at write. Path A request.api may
534
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
535
- * live risk-evaluator input.
536
- */
537
- metadata?: {
538
- /** Observed HTTP requestor context on Path A request.api only. */
539
- client?: {
540
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
541
- ip?: string;
542
- /** Observed User-Agent header. */
543
- user_agent?: string;
544
- /** Origin header when present. */
545
- origin?: string;
546
- };
547
- [key: string]: unknown;
548
- };
549
- } & {
550
- event_type: "auth.token.revoked";
551
- /**
552
- * Empty payload for event types with no typed fields
553
- * (e.g. `project.deleted`, `user.deleted`, `session.expired`).
554
- */
555
- payload: { [key: string]: unknown };
556
- })
557
- | ({
558
- /** Managed event id (`evt_<opaque>`). */
559
- id: string;
560
- /** @pattern ^[a-zA-Z0-9_-]+$ */
561
- project_id: string;
562
- /** Emit-time team scope, when the actor operated under a team. */
563
- team_id?: string | null;
564
- /**
565
- * Semantic event name (dot-separated). Discriminator for the Event union —
566
- * see docs/design/api/events-catalog.md.
567
- */
568
- event_type: string;
569
- /** Wide-event category. */
570
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
571
- /** When the action happened (server/storage clock, dialect-owned). */
572
- occurred_at: string;
573
- /** When the row was inserted (server/storage clock, dialect-owned). */
574
- created_at: string;
575
- /** Who triggered the event. */
576
- actor_id?: string | null;
577
- /** Actor kind. */
578
- actor_type?: "human" | "service" | "system" | "agent" | null;
579
- /** Resource type affected. */
580
- entity_type?: string | null;
581
- /** Resource id affected. */
582
- entity_id?: string | null;
583
- /** Application or agent that produced the event. */
584
- client_id: string;
585
- /** Token id present at emit time, when any. */
586
- token_id?: string;
587
- /** Delegation kind (omit when unset). */
588
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
589
- delegation_id?: string;
590
- grantor?: string;
591
- /** Device fingerprint correlation id. */
592
- fingerprint?: string;
593
- /** HTTP request correlation id. */
594
- request_id?: string | null;
595
- /** Session correlation id. */
596
- session_id?: string | null;
597
- /** Login flow correlation id. */
598
- flow_id?: string | null;
599
- /**
600
- * Emit-time metadata, already redacted at write. Path A request.api may
601
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
602
- * live risk-evaluator input.
603
- */
604
- metadata?: {
605
- /** Observed HTTP requestor context on Path A request.api only. */
606
- client?: {
607
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
608
- ip?: string;
609
- /** Observed User-Agent header. */
610
- user_agent?: string;
611
- /** Origin header when present. */
612
- origin?: string;
613
- };
614
- [key: string]: unknown;
615
- };
616
- } & {
617
- event_type: "authz.granted";
618
- /** Payload for `authz.granted` events. */
619
- payload: {
620
- principal_type?: string;
621
- principal_id?: string;
622
- relation?: string;
623
- };
624
- })
625
- | ({
626
- /** Managed event id (`evt_<opaque>`). */
627
- id: string;
628
- /** @pattern ^[a-zA-Z0-9_-]+$ */
629
- project_id: string;
630
- /** Emit-time team scope, when the actor operated under a team. */
631
- team_id?: string | null;
632
- /**
633
- * Semantic event name (dot-separated). Discriminator for the Event union —
634
- * see docs/design/api/events-catalog.md.
635
- */
636
- event_type: string;
637
- /** Wide-event category. */
638
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
639
- /** When the action happened (server/storage clock, dialect-owned). */
640
- occurred_at: string;
641
- /** When the row was inserted (server/storage clock, dialect-owned). */
642
- created_at: string;
643
- /** Who triggered the event. */
644
- actor_id?: string | null;
645
- /** Actor kind. */
646
- actor_type?: "human" | "service" | "system" | "agent" | null;
647
- /** Resource type affected. */
648
- entity_type?: string | null;
649
- /** Resource id affected. */
650
- entity_id?: string | null;
651
- /** Application or agent that produced the event. */
652
- client_id: string;
653
- /** Token id present at emit time, when any. */
654
- token_id?: string;
655
- /** Delegation kind (omit when unset). */
656
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
657
- delegation_id?: string;
658
- grantor?: string;
659
- /** Device fingerprint correlation id. */
660
- fingerprint?: string;
661
- /** HTTP request correlation id. */
662
- request_id?: string | null;
663
- /** Session correlation id. */
664
- session_id?: string | null;
665
- /** Login flow correlation id. */
666
- flow_id?: string | null;
667
- /**
668
- * Emit-time metadata, already redacted at write. Path A request.api may
669
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
670
- * live risk-evaluator input.
671
- */
672
- metadata?: {
673
- /** Observed HTTP requestor context on Path A request.api only. */
674
- client?: {
675
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
676
- ip?: string;
677
- /** Observed User-Agent header. */
678
- user_agent?: string;
679
- /** Origin header when present. */
680
- origin?: string;
681
- };
682
- [key: string]: unknown;
683
- };
684
- } & {
685
- event_type: "authz.revoked";
686
- /** Payload for `authz.granted` events. */
687
- payload: {
688
- principal_type?: string;
689
- principal_id?: string;
690
- relation?: string;
691
- };
692
- })
693
- | ({
694
- /** Managed event id (`evt_<opaque>`). */
695
- id: string;
696
- /** @pattern ^[a-zA-Z0-9_-]+$ */
697
- project_id: string;
698
- /** Emit-time team scope, when the actor operated under a team. */
699
- team_id?: string | null;
700
- /**
701
- * Semantic event name (dot-separated). Discriminator for the Event union —
702
- * see docs/design/api/events-catalog.md.
703
- */
704
- event_type: string;
705
- /** Wide-event category. */
706
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
707
- /** When the action happened (server/storage clock, dialect-owned). */
708
- occurred_at: string;
709
- /** When the row was inserted (server/storage clock, dialect-owned). */
710
- created_at: string;
711
- /** Who triggered the event. */
712
- actor_id?: string | null;
713
- /** Actor kind. */
714
- actor_type?: "human" | "service" | "system" | "agent" | null;
715
- /** Resource type affected. */
716
- entity_type?: string | null;
717
- /** Resource id affected. */
718
- entity_id?: string | null;
719
- /** Application or agent that produced the event. */
720
- client_id: string;
721
- /** Token id present at emit time, when any. */
722
- token_id?: string;
723
- /** Delegation kind (omit when unset). */
724
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
725
- delegation_id?: string;
726
- grantor?: string;
727
- /** Device fingerprint correlation id. */
728
- fingerprint?: string;
729
- /** HTTP request correlation id. */
730
- request_id?: string | null;
731
- /** Session correlation id. */
732
- session_id?: string | null;
733
- /** Login flow correlation id. */
734
- flow_id?: string | null;
735
- /**
736
- * Emit-time metadata, already redacted at write. Path A request.api may
737
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
738
- * live risk-evaluator input.
739
- */
740
- metadata?: {
741
- /** Observed HTTP requestor context on Path A request.api only. */
742
- client?: {
743
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
744
- ip?: string;
745
- /** Observed User-Agent header. */
746
- user_agent?: string;
747
- /** Origin header when present. */
748
- origin?: string;
749
- };
750
- [key: string]: unknown;
751
- };
752
- } & {
753
- event_type: "branding.created";
754
- /** Allowlisted fields for `branding.created`. Omits `liquid_template`. */
755
- payload: {
756
- layout?: string;
757
- logo_url?: string;
758
- font_url?: string;
759
- hero_url?: string;
760
- };
761
- })
762
- | ({
763
- /** Managed event id (`evt_<opaque>`). */
764
- id: string;
765
- /** @pattern ^[a-zA-Z0-9_-]+$ */
766
- project_id: string;
767
- /** Emit-time team scope, when the actor operated under a team. */
768
- team_id?: string | null;
769
- /**
770
- * Semantic event name (dot-separated). Discriminator for the Event union —
771
- * see docs/design/api/events-catalog.md.
772
- */
773
- event_type: string;
774
- /** Wide-event category. */
775
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
776
- /** When the action happened (server/storage clock, dialect-owned). */
777
- occurred_at: string;
778
- /** When the row was inserted (server/storage clock, dialect-owned). */
779
- created_at: string;
780
- /** Who triggered the event. */
781
- actor_id?: string | null;
782
- /** Actor kind. */
783
- actor_type?: "human" | "service" | "system" | "agent" | null;
784
- /** Resource type affected. */
785
- entity_type?: string | null;
786
- /** Resource id affected. */
787
- entity_id?: string | null;
788
- /** Application or agent that produced the event. */
789
- client_id: string;
790
- /** Token id present at emit time, when any. */
791
- token_id?: string;
792
- /** Delegation kind (omit when unset). */
793
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
794
- delegation_id?: string;
795
- grantor?: string;
796
- /** Device fingerprint correlation id. */
797
- fingerprint?: string;
798
- /** HTTP request correlation id. */
799
- request_id?: string | null;
800
- /** Session correlation id. */
801
- session_id?: string | null;
802
- /** Login flow correlation id. */
803
- flow_id?: string | null;
804
- /**
805
- * Emit-time metadata, already redacted at write. Path A request.api may
806
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
807
- * live risk-evaluator input.
808
- */
809
- metadata?: {
810
- /** Observed HTTP requestor context on Path A request.api only. */
811
- client?: {
812
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
813
- ip?: string;
814
- /** Observed User-Agent header. */
815
- user_agent?: string;
816
- /** Origin header when present. */
817
- origin?: string;
818
- };
819
- [key: string]: unknown;
820
- };
821
- } & {
822
- event_type: "deployment.created";
823
- /**
824
- * Allowlisted fields for `deployment.created`. The deployment id is already
825
- * the event's `entity_id`; the ids here say what went live where. Ids, not
826
- * names: they survive environment renames, and because events carry no
827
- * foreign key, the audit trail of a deleted environment lives on here.
828
- */
829
- payload: {
830
- environment_id?: string;
831
- release_id?: string;
832
- reason?: string;
833
- message?: string;
834
- source_environment_id?: string;
835
- };
836
- })
837
- | ({
838
- /** Managed event id (`evt_<opaque>`). */
839
- id: string;
840
- /** @pattern ^[a-zA-Z0-9_-]+$ */
841
- project_id: string;
842
- /** Emit-time team scope, when the actor operated under a team. */
843
- team_id?: string | null;
844
- /**
845
- * Semantic event name (dot-separated). Discriminator for the Event union —
846
- * see docs/design/api/events-catalog.md.
847
- */
848
- event_type: string;
849
- /** Wide-event category. */
850
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
851
- /** When the action happened (server/storage clock, dialect-owned). */
852
- occurred_at: string;
853
- /** When the row was inserted (server/storage clock, dialect-owned). */
854
- created_at: string;
855
- /** Who triggered the event. */
856
- actor_id?: string | null;
857
- /** Actor kind. */
858
- actor_type?: "human" | "service" | "system" | "agent" | null;
859
- /** Resource type affected. */
860
- entity_type?: string | null;
861
- /** Resource id affected. */
862
- entity_id?: string | null;
863
- /** Application or agent that produced the event. */
864
- client_id: string;
865
- /** Token id present at emit time, when any. */
866
- token_id?: string;
867
- /** Delegation kind (omit when unset). */
868
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
869
- delegation_id?: string;
870
- grantor?: string;
871
- /** Device fingerprint correlation id. */
872
- fingerprint?: string;
873
- /** HTTP request correlation id. */
874
- request_id?: string | null;
875
- /** Session correlation id. */
876
- session_id?: string | null;
877
- /** Login flow correlation id. */
878
- flow_id?: string | null;
879
- /**
880
- * Emit-time metadata, already redacted at write. Path A request.api may
881
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
882
- * live risk-evaluator input.
883
- */
884
- metadata?: {
885
- /** Observed HTTP requestor context on Path A request.api only. */
886
- client?: {
887
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
888
- ip?: string;
889
- /** Observed User-Agent header. */
890
- user_agent?: string;
891
- /** Origin header when present. */
892
- origin?: string;
893
- };
894
- [key: string]: unknown;
895
- };
896
- } & {
897
- event_type: "environment.created";
898
- /**
899
- * Allowlisted fields for `environment.created`. The environment id is already
900
- * the event's `entity_id`, so the name is the only field carried here.
901
- */
902
- payload: {
903
- name?: string;
904
- };
905
- })
906
- | ({
907
- /** Managed event id (`evt_<opaque>`). */
908
- id: string;
909
- /** @pattern ^[a-zA-Z0-9_-]+$ */
910
- project_id: string;
911
- /** Emit-time team scope, when the actor operated under a team. */
912
- team_id?: string | null;
913
- /**
914
- * Semantic event name (dot-separated). Discriminator for the Event union —
915
- * see docs/design/api/events-catalog.md.
916
- */
917
- event_type: string;
918
- /** Wide-event category. */
919
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
920
- /** When the action happened (server/storage clock, dialect-owned). */
921
- occurred_at: string;
922
- /** When the row was inserted (server/storage clock, dialect-owned). */
923
- created_at: string;
924
- /** Who triggered the event. */
925
- actor_id?: string | null;
926
- /** Actor kind. */
927
- actor_type?: "human" | "service" | "system" | "agent" | null;
928
- /** Resource type affected. */
929
- entity_type?: string | null;
930
- /** Resource id affected. */
931
- entity_id?: string | null;
932
- /** Application or agent that produced the event. */
933
- client_id: string;
934
- /** Token id present at emit time, when any. */
935
- token_id?: string;
936
- /** Delegation kind (omit when unset). */
937
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
938
- delegation_id?: string;
939
- grantor?: string;
940
- /** Device fingerprint correlation id. */
941
- fingerprint?: string;
942
- /** HTTP request correlation id. */
943
- request_id?: string | null;
944
- /** Session correlation id. */
945
- session_id?: string | null;
946
- /** Login flow correlation id. */
947
- flow_id?: string | null;
948
- /**
949
- * Emit-time metadata, already redacted at write. Path A request.api may
950
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
951
- * live risk-evaluator input.
952
- */
953
- metadata?: {
954
- /** Observed HTTP requestor context on Path A request.api only. */
955
- client?: {
956
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
957
- ip?: string;
958
- /** Observed User-Agent header. */
959
- user_agent?: string;
960
- /** Origin header when present. */
961
- origin?: string;
962
- };
963
- [key: string]: unknown;
964
- };
965
- } & {
966
- event_type: "flowdef.created";
967
- /**
968
- * Allowlisted fields of the created revision. Retired `flowdef.updated`
969
- * rows carry a delta in the same shape. Steps are omitted.
970
- */
971
- payload: {
972
- name?: string;
973
- status?: string;
974
- user_schema?: string;
975
- purposes?: { [key: string]: string };
976
- audience?: {
977
- app_ids?: string[];
978
- team_ids?: string[];
979
- };
980
- };
981
- })
982
- | ({
983
- /** Managed event id (`evt_<opaque>`). */
984
- id: string;
985
- /** @pattern ^[a-zA-Z0-9_-]+$ */
986
- project_id: string;
987
- /** Emit-time team scope, when the actor operated under a team. */
988
- team_id?: string | null;
989
- /**
990
- * Semantic event name (dot-separated). Discriminator for the Event union —
991
- * see docs/design/api/events-catalog.md.
992
- */
993
- event_type: string;
994
- /** Wide-event category. */
995
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
996
- /** When the action happened (server/storage clock, dialect-owned). */
997
- occurred_at: string;
998
- /** When the row was inserted (server/storage clock, dialect-owned). */
999
- created_at: string;
1000
- /** Who triggered the event. */
1001
- actor_id?: string | null;
1002
- /** Actor kind. */
1003
- actor_type?: "human" | "service" | "system" | "agent" | null;
1004
- /** Resource type affected. */
1005
- entity_type?: string | null;
1006
- /** Resource id affected. */
1007
- entity_id?: string | null;
1008
- /** Application or agent that produced the event. */
1009
- client_id: string;
1010
- /** Token id present at emit time, when any. */
1011
- token_id?: string;
1012
- /** Delegation kind (omit when unset). */
1013
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
1014
- delegation_id?: string;
1015
- grantor?: string;
1016
- /** Device fingerprint correlation id. */
1017
- fingerprint?: string;
1018
- /** HTTP request correlation id. */
1019
- request_id?: string | null;
1020
- /** Session correlation id. */
1021
- session_id?: string | null;
1022
- /** Login flow correlation id. */
1023
- flow_id?: string | null;
1024
- /**
1025
- * Emit-time metadata, already redacted at write. Path A request.api may
1026
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1027
- * live risk-evaluator input.
1028
- */
1029
- metadata?: {
1030
- /** Observed HTTP requestor context on Path A request.api only. */
1031
- client?: {
1032
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1033
- ip?: string;
1034
- /** Observed User-Agent header. */
1035
- user_agent?: string;
1036
- /** Origin header when present. */
1037
- origin?: string;
1038
- };
1039
- [key: string]: unknown;
1040
- };
1041
- } & {
1042
- event_type: "flowdef.deleted";
1043
- /**
1044
- * Empty payload for event types with no typed fields
1045
- * (e.g. `project.deleted`, `user.deleted`, `session.expired`).
1046
- */
1047
- payload: { [key: string]: unknown };
1048
- })
1049
- | ({
1050
- /** Managed event id (`evt_<opaque>`). */
1051
- id: string;
1052
- /** @pattern ^[a-zA-Z0-9_-]+$ */
1053
- project_id: string;
1054
- /** Emit-time team scope, when the actor operated under a team. */
1055
- team_id?: string | null;
1056
- /**
1057
- * Semantic event name (dot-separated). Discriminator for the Event union —
1058
- * see docs/design/api/events-catalog.md.
1059
- */
1060
- event_type: string;
1061
- /** Wide-event category. */
1062
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
1063
- /** When the action happened (server/storage clock, dialect-owned). */
1064
- occurred_at: string;
1065
- /** When the row was inserted (server/storage clock, dialect-owned). */
1066
- created_at: string;
1067
- /** Who triggered the event. */
1068
- actor_id?: string | null;
1069
- /** Actor kind. */
1070
- actor_type?: "human" | "service" | "system" | "agent" | null;
1071
- /** Resource type affected. */
1072
- entity_type?: string | null;
1073
- /** Resource id affected. */
1074
- entity_id?: string | null;
1075
- /** Application or agent that produced the event. */
1076
- client_id: string;
1077
- /** Token id present at emit time, when any. */
1078
- token_id?: string;
1079
- /** Delegation kind (omit when unset). */
1080
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
1081
- delegation_id?: string;
1082
- grantor?: string;
1083
- /** Device fingerprint correlation id. */
1084
- fingerprint?: string;
1085
- /** HTTP request correlation id. */
1086
- request_id?: string | null;
1087
- /** Session correlation id. */
1088
- session_id?: string | null;
1089
- /** Login flow correlation id. */
1090
- flow_id?: string | null;
1091
- /**
1092
- * Emit-time metadata, already redacted at write. Path A request.api may
1093
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1094
- * live risk-evaluator input.
1095
- */
1096
- metadata?: {
1097
- /** Observed HTTP requestor context on Path A request.api only. */
1098
- client?: {
1099
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1100
- ip?: string;
1101
- /** Observed User-Agent header. */
1102
- user_agent?: string;
1103
- /** Origin header when present. */
1104
- origin?: string;
1105
- };
1106
- [key: string]: unknown;
1107
- };
1108
- } & {
1109
- event_type: "flowdef.updated";
1110
- /**
1111
- * Allowlisted fields of the created revision. Retired `flowdef.updated`
1112
- * rows carry a delta in the same shape. Steps are omitted.
1113
- */
1114
- payload: {
1115
- name?: string;
1116
- status?: string;
1117
- user_schema?: string;
1118
- purposes?: { [key: string]: string };
1119
- audience?: {
1120
- app_ids?: string[];
1121
- team_ids?: string[];
1122
- };
1123
- };
1124
- })
1125
- | ({
1126
- /** Managed event id (`evt_<opaque>`). */
1127
- id: string;
1128
- /** @pattern ^[a-zA-Z0-9_-]+$ */
1129
- project_id: string;
1130
- /** Emit-time team scope, when the actor operated under a team. */
1131
- team_id?: string | null;
1132
- /**
1133
- * Semantic event name (dot-separated). Discriminator for the Event union —
1134
- * see docs/design/api/events-catalog.md.
1135
- */
1136
- event_type: string;
1137
- /** Wide-event category. */
1138
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
1139
- /** When the action happened (server/storage clock, dialect-owned). */
1140
- occurred_at: string;
1141
- /** When the row was inserted (server/storage clock, dialect-owned). */
1142
- created_at: string;
1143
- /** Who triggered the event. */
1144
- actor_id?: string | null;
1145
- /** Actor kind. */
1146
- actor_type?: "human" | "service" | "system" | "agent" | null;
1147
- /** Resource type affected. */
1148
- entity_type?: string | null;
1149
- /** Resource id affected. */
1150
- entity_id?: string | null;
1151
- /** Application or agent that produced the event. */
1152
- client_id: string;
1153
- /** Token id present at emit time, when any. */
1154
- token_id?: string;
1155
- /** Delegation kind (omit when unset). */
1156
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
1157
- delegation_id?: string;
1158
- grantor?: string;
1159
- /** Device fingerprint correlation id. */
1160
- fingerprint?: string;
1161
- /** HTTP request correlation id. */
1162
- request_id?: string | null;
1163
- /** Session correlation id. */
1164
- session_id?: string | null;
1165
- /** Login flow correlation id. */
1166
- flow_id?: string | null;
1167
- /**
1168
- * Emit-time metadata, already redacted at write. Path A request.api may
1169
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1170
- * live risk-evaluator input.
1171
- */
1172
- metadata?: {
1173
- /** Observed HTTP requestor context on Path A request.api only. */
1174
- client?: {
1175
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1176
- ip?: string;
1177
- /** Observed User-Agent header. */
1178
- user_agent?: string;
1179
- /** Origin header when present. */
1180
- origin?: string;
1181
- };
1182
- [key: string]: unknown;
1183
- };
1184
- } & {
1185
- event_type: "idp.created";
1186
- /**
1187
- * Shared allowlisted fields for `idp.created` (snapshot) and `idp.updated`
1188
- * (delta: only changed fields present, plus the new `revision_id`). The
1189
- * connection id is the event's `entity_id`. The connection document, and with
1190
- * it the `client_secret` reference, is never included.
1191
- */
1192
- payload: {
1193
- slug?: string;
1194
- protocol?: string;
1195
- /**
1196
- * The rendering template hint. On `idp.updated`, the empty string means
1197
- * the revision removed it.
1198
- */
1199
- template?: string;
1200
- display_name?: string;
1201
- /** The revision the write appended. */
1202
- revision_id: string;
1203
- };
1204
- })
1205
- | ({
1206
- /** Managed event id (`evt_<opaque>`). */
1207
- id: string;
1208
- /** @pattern ^[a-zA-Z0-9_-]+$ */
1209
- project_id: string;
1210
- /** Emit-time team scope, when the actor operated under a team. */
1211
- team_id?: string | null;
1212
- /**
1213
- * Semantic event name (dot-separated). Discriminator for the Event union —
1214
- * see docs/design/api/events-catalog.md.
1215
- */
1216
- event_type: string;
1217
- /** Wide-event category. */
1218
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
1219
- /** When the action happened (server/storage clock, dialect-owned). */
1220
- occurred_at: string;
1221
- /** When the row was inserted (server/storage clock, dialect-owned). */
1222
- created_at: string;
1223
- /** Who triggered the event. */
1224
- actor_id?: string | null;
1225
- /** Actor kind. */
1226
- actor_type?: "human" | "service" | "system" | "agent" | null;
1227
- /** Resource type affected. */
1228
- entity_type?: string | null;
1229
- /** Resource id affected. */
1230
- entity_id?: string | null;
1231
- /** Application or agent that produced the event. */
1232
- client_id: string;
1233
- /** Token id present at emit time, when any. */
1234
- token_id?: string;
1235
- /** Delegation kind (omit when unset). */
1236
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
1237
- delegation_id?: string;
1238
- grantor?: string;
1239
- /** Device fingerprint correlation id. */
1240
- fingerprint?: string;
1241
- /** HTTP request correlation id. */
1242
- request_id?: string | null;
1243
- /** Session correlation id. */
1244
- session_id?: string | null;
1245
- /** Login flow correlation id. */
1246
- flow_id?: string | null;
1247
- /**
1248
- * Emit-time metadata, already redacted at write. Path A request.api may
1249
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1250
- * live risk-evaluator input.
1251
- */
1252
- metadata?: {
1253
- /** Observed HTTP requestor context on Path A request.api only. */
1254
- client?: {
1255
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1256
- ip?: string;
1257
- /** Observed User-Agent header. */
1258
- user_agent?: string;
1259
- /** Origin header when present. */
1260
- origin?: string;
1261
- };
1262
- [key: string]: unknown;
1263
- };
1264
- } & {
1265
- event_type: "idp.updated";
1266
- /**
1267
- * Shared allowlisted fields for `idp.created` (snapshot) and `idp.updated`
1268
- * (delta: only changed fields present, plus the new `revision_id`). The
1269
- * connection id is the event's `entity_id`. The connection document, and with
1270
- * it the `client_secret` reference, is never included.
1271
- */
1272
- payload: {
1273
- slug?: string;
1274
- protocol?: string;
1275
- /**
1276
- * The rendering template hint. On `idp.updated`, the empty string means
1277
- * the revision removed it.
1278
- */
1279
- template?: string;
1280
- display_name?: string;
1281
- /** The revision the write appended. */
1282
- revision_id: string;
1283
- };
1284
- })
1285
- | ({
1286
- /** Managed event id (`evt_<opaque>`). */
1287
- id: string;
1288
- /** @pattern ^[a-zA-Z0-9_-]+$ */
1289
- project_id: string;
1290
- /** Emit-time team scope, when the actor operated under a team. */
1291
- team_id?: string | null;
1292
- /**
1293
- * Semantic event name (dot-separated). Discriminator for the Event union —
1294
- * see docs/design/api/events-catalog.md.
1295
- */
1296
- event_type: string;
1297
- /** Wide-event category. */
1298
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
1299
- /** When the action happened (server/storage clock, dialect-owned). */
1300
- occurred_at: string;
1301
- /** When the row was inserted (server/storage clock, dialect-owned). */
1302
- created_at: string;
1303
- /** Who triggered the event. */
1304
- actor_id?: string | null;
1305
- /** Actor kind. */
1306
- actor_type?: "human" | "service" | "system" | "agent" | null;
1307
- /** Resource type affected. */
1308
- entity_type?: string | null;
1309
- /** Resource id affected. */
1310
- entity_id?: string | null;
1311
- /** Application or agent that produced the event. */
1312
- client_id: string;
1313
- /** Token id present at emit time, when any. */
1314
- token_id?: string;
1315
- /** Delegation kind (omit when unset). */
1316
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
1317
- delegation_id?: string;
1318
- grantor?: string;
1319
- /** Device fingerprint correlation id. */
1320
- fingerprint?: string;
1321
- /** HTTP request correlation id. */
1322
- request_id?: string | null;
1323
- /** Session correlation id. */
1324
- session_id?: string | null;
1325
- /** Login flow correlation id. */
1326
- flow_id?: string | null;
1327
- /**
1328
- * Emit-time metadata, already redacted at write. Path A request.api may
1329
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1330
- * live risk-evaluator input.
1331
- */
1332
- metadata?: {
1333
- /** Observed HTTP requestor context on Path A request.api only. */
1334
- client?: {
1335
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1336
- ip?: string;
1337
- /** Observed User-Agent header. */
1338
- user_agent?: string;
1339
- /** Origin header when present. */
1340
- origin?: string;
1341
- };
1342
- [key: string]: unknown;
1343
- };
1344
- } & {
1345
- event_type: "project.created";
1346
- /**
1347
- * Shared allowlisted fields for `project.created` (full snapshot) and
1348
- * `project.updated` (delta: only changed fields present).
1349
- */
1350
- payload: {
1351
- name?: string;
1352
- preview_origins?: string[];
1353
- /**
1354
- * The password hashing algorithm the project switched to. The empty string
1355
- * means it was handed back to the server default. Absent when the update
1356
- * did not touch hashing.
1357
- */
1358
- password_hash_algorithm?: string;
1359
- };
1360
- })
1361
- | ({
1362
- /** Managed event id (`evt_<opaque>`). */
1363
- id: string;
1364
- /** @pattern ^[a-zA-Z0-9_-]+$ */
1365
- project_id: string;
1366
- /** Emit-time team scope, when the actor operated under a team. */
1367
- team_id?: string | null;
1368
- /**
1369
- * Semantic event name (dot-separated). Discriminator for the Event union —
1370
- * see docs/design/api/events-catalog.md.
1371
- */
1372
- event_type: string;
1373
- /** Wide-event category. */
1374
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
1375
- /** When the action happened (server/storage clock, dialect-owned). */
1376
- occurred_at: string;
1377
- /** When the row was inserted (server/storage clock, dialect-owned). */
1378
- created_at: string;
1379
- /** Who triggered the event. */
1380
- actor_id?: string | null;
1381
- /** Actor kind. */
1382
- actor_type?: "human" | "service" | "system" | "agent" | null;
1383
- /** Resource type affected. */
1384
- entity_type?: string | null;
1385
- /** Resource id affected. */
1386
- entity_id?: string | null;
1387
- /** Application or agent that produced the event. */
1388
- client_id: string;
1389
- /** Token id present at emit time, when any. */
1390
- token_id?: string;
1391
- /** Delegation kind (omit when unset). */
1392
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
1393
- delegation_id?: string;
1394
- grantor?: string;
1395
- /** Device fingerprint correlation id. */
1396
- fingerprint?: string;
1397
- /** HTTP request correlation id. */
1398
- request_id?: string | null;
1399
- /** Session correlation id. */
1400
- session_id?: string | null;
1401
- /** Login flow correlation id. */
1402
- flow_id?: string | null;
1403
- /**
1404
- * Emit-time metadata, already redacted at write. Path A request.api may
1405
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1406
- * live risk-evaluator input.
1407
- */
1408
- metadata?: {
1409
- /** Observed HTTP requestor context on Path A request.api only. */
1410
- client?: {
1411
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1412
- ip?: string;
1413
- /** Observed User-Agent header. */
1414
- user_agent?: string;
1415
- /** Origin header when present. */
1416
- origin?: string;
1417
- };
1418
- [key: string]: unknown;
1419
- };
1420
- } & {
1421
- event_type: "project.deleted";
1422
- /**
1423
- * Empty payload for event types with no typed fields
1424
- * (e.g. `project.deleted`, `user.deleted`, `session.expired`).
1425
- */
1426
- payload: { [key: string]: unknown };
1427
- })
1428
- | ({
1429
- /** Managed event id (`evt_<opaque>`). */
1430
- id: string;
1431
- /** @pattern ^[a-zA-Z0-9_-]+$ */
1432
- project_id: string;
1433
- /** Emit-time team scope, when the actor operated under a team. */
1434
- team_id?: string | null;
1435
- /**
1436
- * Semantic event name (dot-separated). Discriminator for the Event union —
1437
- * see docs/design/api/events-catalog.md.
1438
- */
1439
- event_type: string;
1440
- /** Wide-event category. */
1441
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
1442
- /** When the action happened (server/storage clock, dialect-owned). */
1443
- occurred_at: string;
1444
- /** When the row was inserted (server/storage clock, dialect-owned). */
1445
- created_at: string;
1446
- /** Who triggered the event. */
1447
- actor_id?: string | null;
1448
- /** Actor kind. */
1449
- actor_type?: "human" | "service" | "system" | "agent" | null;
1450
- /** Resource type affected. */
1451
- entity_type?: string | null;
1452
- /** Resource id affected. */
1453
- entity_id?: string | null;
1454
- /** Application or agent that produced the event. */
1455
- client_id: string;
1456
- /** Token id present at emit time, when any. */
1457
- token_id?: string;
1458
- /** Delegation kind (omit when unset). */
1459
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
1460
- delegation_id?: string;
1461
- grantor?: string;
1462
- /** Device fingerprint correlation id. */
1463
- fingerprint?: string;
1464
- /** HTTP request correlation id. */
1465
- request_id?: string | null;
1466
- /** Session correlation id. */
1467
- session_id?: string | null;
1468
- /** Login flow correlation id. */
1469
- flow_id?: string | null;
1470
- /**
1471
- * Emit-time metadata, already redacted at write. Path A request.api may
1472
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1473
- * live risk-evaluator input.
1474
- */
1475
- metadata?: {
1476
- /** Observed HTTP requestor context on Path A request.api only. */
1477
- client?: {
1478
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1479
- ip?: string;
1480
- /** Observed User-Agent header. */
1481
- user_agent?: string;
1482
- /** Origin header when present. */
1483
- origin?: string;
1484
- };
1485
- [key: string]: unknown;
1486
- };
1487
- } & {
1488
- event_type: "project.updated";
1489
- /**
1490
- * Shared allowlisted fields for `project.created` (full snapshot) and
1491
- * `project.updated` (delta: only changed fields present).
1492
- */
1493
- payload: {
1494
- name?: string;
1495
- preview_origins?: string[];
1496
- /**
1497
- * The password hashing algorithm the project switched to. The empty string
1498
- * means it was handed back to the server default. Absent when the update
1499
- * did not touch hashing.
1500
- */
1501
- password_hash_algorithm?: string;
1502
- };
1503
- })
1504
- | ({
1505
- /** Managed event id (`evt_<opaque>`). */
1506
- id: string;
1507
- /** @pattern ^[a-zA-Z0-9_-]+$ */
1508
- project_id: string;
1509
- /** Emit-time team scope, when the actor operated under a team. */
1510
- team_id?: string | null;
1511
- /**
1512
- * Semantic event name (dot-separated). Discriminator for the Event union —
1513
- * see docs/design/api/events-catalog.md.
1514
- */
1515
- event_type: string;
1516
- /** Wide-event category. */
1517
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
1518
- /** When the action happened (server/storage clock, dialect-owned). */
1519
- occurred_at: string;
1520
- /** When the row was inserted (server/storage clock, dialect-owned). */
1521
- created_at: string;
1522
- /** Who triggered the event. */
1523
- actor_id?: string | null;
1524
- /** Actor kind. */
1525
- actor_type?: "human" | "service" | "system" | "agent" | null;
1526
- /** Resource type affected. */
1527
- entity_type?: string | null;
1528
- /** Resource id affected. */
1529
- entity_id?: string | null;
1530
- /** Application or agent that produced the event. */
1531
- client_id: string;
1532
- /** Token id present at emit time, when any. */
1533
- token_id?: string;
1534
- /** Delegation kind (omit when unset). */
1535
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
1536
- delegation_id?: string;
1537
- grantor?: string;
1538
- /** Device fingerprint correlation id. */
1539
- fingerprint?: string;
1540
- /** HTTP request correlation id. */
1541
- request_id?: string | null;
1542
- /** Session correlation id. */
1543
- session_id?: string | null;
1544
- /** Login flow correlation id. */
1545
- flow_id?: string | null;
1546
- /**
1547
- * Emit-time metadata, already redacted at write. Path A request.api may
1548
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1549
- * live risk-evaluator input.
1550
- */
1551
- metadata?: {
1552
- /** Observed HTTP requestor context on Path A request.api only. */
1553
- client?: {
1554
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1555
- ip?: string;
1556
- /** Observed User-Agent header. */
1557
- user_agent?: string;
1558
- /** Origin header when present. */
1559
- origin?: string;
1560
- };
1561
- [key: string]: unknown;
1562
- };
1563
- } & {
1564
- event_type: "release.created";
1565
- /**
1566
- * Allowlisted fields for `release.created`. The release id is already the
1567
- * event's `entity_id`; the pinned set is repeated here so the audit stream
1568
- * answers what a release contained without reading the release itself.
1569
- */
1570
- payload: {
1571
- content_hash?: string;
1572
- message?: string;
1573
- git_sha?: string;
1574
- git_dirty?: boolean;
1575
- pointers?: {
1576
- kind?: string;
1577
- handle?: string;
1578
- revision_id?: string;
1579
- }[];
1580
- };
1581
- })
1582
- | ({
1583
- /** Managed event id (`evt_<opaque>`). */
1584
- id: string;
1585
- /** @pattern ^[a-zA-Z0-9_-]+$ */
1586
- project_id: string;
1587
- /** Emit-time team scope, when the actor operated under a team. */
1588
- team_id?: string | null;
1589
- /**
1590
- * Semantic event name (dot-separated). Discriminator for the Event union —
1591
- * see docs/design/api/events-catalog.md.
1592
- */
1593
- event_type: string;
1594
- /** Wide-event category. */
1595
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
1596
- /** When the action happened (server/storage clock, dialect-owned). */
1597
- occurred_at: string;
1598
- /** When the row was inserted (server/storage clock, dialect-owned). */
1599
- created_at: string;
1600
- /** Who triggered the event. */
1601
- actor_id?: string | null;
1602
- /** Actor kind. */
1603
- actor_type?: "human" | "service" | "system" | "agent" | null;
1604
- /** Resource type affected. */
1605
- entity_type?: string | null;
1606
- /** Resource id affected. */
1607
- entity_id?: string | null;
1608
- /** Application or agent that produced the event. */
1609
- client_id: string;
1610
- /** Token id present at emit time, when any. */
1611
- token_id?: string;
1612
- /** Delegation kind (omit when unset). */
1613
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
1614
- delegation_id?: string;
1615
- grantor?: string;
1616
- /** Device fingerprint correlation id. */
1617
- fingerprint?: string;
1618
- /** HTTP request correlation id. */
1619
- request_id?: string | null;
1620
- /** Session correlation id. */
1621
- session_id?: string | null;
1622
- /** Login flow correlation id. */
1623
- flow_id?: string | null;
1624
- /**
1625
- * Emit-time metadata, already redacted at write. Path A request.api may
1626
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1627
- * live risk-evaluator input.
1628
- */
1629
- metadata?: {
1630
- /** Observed HTTP requestor context on Path A request.api only. */
1631
- client?: {
1632
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1633
- ip?: string;
1634
- /** Observed User-Agent header. */
1635
- user_agent?: string;
1636
- /** Origin header when present. */
1637
- origin?: string;
1638
- };
1639
- [key: string]: unknown;
1640
- };
1641
- } & {
1642
- event_type: "request.api";
1643
- /** Payload for `request.api` events. */
1644
- payload: {
1645
- operation_id: string;
1646
- /** HTTP method. */
1647
- method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1648
- route_template: string;
1649
- /**
1650
- * @minimum 100
1651
- * @maximum 599
1652
- */
1653
- status: number;
1654
- /** @minimum 0 */
1655
- duration_ms: number;
1656
- };
1657
- })
1658
- | ({
1659
- /** Managed event id (`evt_<opaque>`). */
1660
- id: string;
1661
- /** @pattern ^[a-zA-Z0-9_-]+$ */
1662
- project_id: string;
1663
- /** Emit-time team scope, when the actor operated under a team. */
1664
- team_id?: string | null;
1665
- /**
1666
- * Semantic event name (dot-separated). Discriminator for the Event union —
1667
- * see docs/design/api/events-catalog.md.
1668
- */
1669
- event_type: string;
1670
- /** Wide-event category. */
1671
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
1672
- /** When the action happened (server/storage clock, dialect-owned). */
1673
- occurred_at: string;
1674
- /** When the row was inserted (server/storage clock, dialect-owned). */
1675
- created_at: string;
1676
- /** Who triggered the event. */
1677
- actor_id?: string | null;
1678
- /** Actor kind. */
1679
- actor_type?: "human" | "service" | "system" | "agent" | null;
1680
- /** Resource type affected. */
1681
- entity_type?: string | null;
1682
- /** Resource id affected. */
1683
- entity_id?: string | null;
1684
- /** Application or agent that produced the event. */
1685
- client_id: string;
1686
- /** Token id present at emit time, when any. */
1687
- token_id?: string;
1688
- /** Delegation kind (omit when unset). */
1689
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
1690
- delegation_id?: string;
1691
- grantor?: string;
1692
- /** Device fingerprint correlation id. */
1693
- fingerprint?: string;
1694
- /** HTTP request correlation id. */
1695
- request_id?: string | null;
1696
- /** Session correlation id. */
1697
- session_id?: string | null;
1698
- /** Login flow correlation id. */
1699
- flow_id?: string | null;
1700
- /**
1701
- * Emit-time metadata, already redacted at write. Path A request.api may
1702
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1703
- * live risk-evaluator input.
1704
- */
1705
- metadata?: {
1706
- /** Observed HTTP requestor context on Path A request.api only. */
1707
- client?: {
1708
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1709
- ip?: string;
1710
- /** Observed User-Agent header. */
1711
- user_agent?: string;
1712
- /** Origin header when present. */
1713
- origin?: string;
1714
- };
1715
- [key: string]: unknown;
1716
- };
1717
- } & {
1718
- event_type: "schema.created";
1719
- /**
1720
- * Allowlisted fields for `schema.created`. The schema document itself is
1721
- * omitted — it is customer-authored and unbounded, and the event's `entity_id`
1722
- * already identifies which schema was created.
1723
- */
1724
- payload: {
1725
- /**
1726
- * The kind the stored document declares. `unknown` when the schema was
1727
- * persisted without its document being parsed.
1728
- */
1729
- kind?: string;
1730
- /**
1731
- * The customer-chosen object type the schema describes. Absent when the
1732
- * document declares none.
1733
- */
1734
- object_type?: string;
1735
- };
1736
- })
1737
- | ({
1738
- /** Managed event id (`evt_<opaque>`). */
1739
- id: string;
1740
- /** @pattern ^[a-zA-Z0-9_-]+$ */
1741
- project_id: string;
1742
- /** Emit-time team scope, when the actor operated under a team. */
1743
- team_id?: string | null;
1744
- /**
1745
- * Semantic event name (dot-separated). Discriminator for the Event union —
1746
- * see docs/design/api/events-catalog.md.
1747
- */
1748
- event_type: string;
1749
- /** Wide-event category. */
1750
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
1751
- /** When the action happened (server/storage clock, dialect-owned). */
1752
- occurred_at: string;
1753
- /** When the row was inserted (server/storage clock, dialect-owned). */
1754
- created_at: string;
1755
- /** Who triggered the event. */
1756
- actor_id?: string | null;
1757
- /** Actor kind. */
1758
- actor_type?: "human" | "service" | "system" | "agent" | null;
1759
- /** Resource type affected. */
1760
- entity_type?: string | null;
1761
- /** Resource id affected. */
1762
- entity_id?: string | null;
1763
- /** Application or agent that produced the event. */
1764
- client_id: string;
1765
- /** Token id present at emit time, when any. */
1766
- token_id?: string;
1767
- /** Delegation kind (omit when unset). */
1768
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
1769
- delegation_id?: string;
1770
- grantor?: string;
1771
- /** Device fingerprint correlation id. */
1772
- fingerprint?: string;
1773
- /** HTTP request correlation id. */
1774
- request_id?: string | null;
1775
- /** Session correlation id. */
1776
- session_id?: string | null;
1777
- /** Login flow correlation id. */
1778
- flow_id?: string | null;
1779
- /**
1780
- * Emit-time metadata, already redacted at write. Path A request.api may
1781
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1782
- * live risk-evaluator input.
1783
- */
1784
- metadata?: {
1785
- /** Observed HTTP requestor context on Path A request.api only. */
1786
- client?: {
1787
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1788
- ip?: string;
1789
- /** Observed User-Agent header. */
1790
- user_agent?: string;
1791
- /** Origin header when present. */
1792
- origin?: string;
1793
- };
1794
- [key: string]: unknown;
1795
- };
1796
- } & {
1797
- event_type: "session.deleted";
1798
- /** Payload for `session.deleted` events. */
1799
- payload: {
1800
- reason?: string;
1801
- };
1802
- })
1803
- | ({
1804
- /** Managed event id (`evt_<opaque>`). */
1805
- id: string;
1806
- /** @pattern ^[a-zA-Z0-9_-]+$ */
1807
- project_id: string;
1808
- /** Emit-time team scope, when the actor operated under a team. */
1809
- team_id?: string | null;
1810
- /**
1811
- * Semantic event name (dot-separated). Discriminator for the Event union —
1812
- * see docs/design/api/events-catalog.md.
1813
- */
1814
- event_type: string;
1815
- /** Wide-event category. */
1816
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
1817
- /** When the action happened (server/storage clock, dialect-owned). */
1818
- occurred_at: string;
1819
- /** When the row was inserted (server/storage clock, dialect-owned). */
1820
- created_at: string;
1821
- /** Who triggered the event. */
1822
- actor_id?: string | null;
1823
- /** Actor kind. */
1824
- actor_type?: "human" | "service" | "system" | "agent" | null;
1825
- /** Resource type affected. */
1826
- entity_type?: string | null;
1827
- /** Resource id affected. */
1828
- entity_id?: string | null;
1829
- /** Application or agent that produced the event. */
1830
- client_id: string;
1831
- /** Token id present at emit time, when any. */
1832
- token_id?: string;
1833
- /** Delegation kind (omit when unset). */
1834
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
1835
- delegation_id?: string;
1836
- grantor?: string;
1837
- /** Device fingerprint correlation id. */
1838
- fingerprint?: string;
1839
- /** HTTP request correlation id. */
1840
- request_id?: string | null;
1841
- /** Session correlation id. */
1842
- session_id?: string | null;
1843
- /** Login flow correlation id. */
1844
- flow_id?: string | null;
1845
- /**
1846
- * Emit-time metadata, already redacted at write. Path A request.api may
1847
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1848
- * live risk-evaluator input.
1849
- */
1850
- metadata?: {
1851
- /** Observed HTTP requestor context on Path A request.api only. */
1852
- client?: {
1853
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1854
- ip?: string;
1855
- /** Observed User-Agent header. */
1856
- user_agent?: string;
1857
- /** Origin header when present. */
1858
- origin?: string;
1859
- };
1860
- [key: string]: unknown;
1861
- };
1862
- } & {
1863
- event_type: "session.established";
1864
- /** Payload for `session.established` events. */
1865
- payload: {
1866
- user_id?: string;
1867
- };
1868
- })
1869
- | ({
1870
- /** Managed event id (`evt_<opaque>`). */
1871
- id: string;
1872
- /** @pattern ^[a-zA-Z0-9_-]+$ */
1873
- project_id: string;
1874
- /** Emit-time team scope, when the actor operated under a team. */
1875
- team_id?: string | null;
1876
- /**
1877
- * Semantic event name (dot-separated). Discriminator for the Event union —
1878
- * see docs/design/api/events-catalog.md.
1879
- */
1880
- event_type: string;
1881
- /** Wide-event category. */
1882
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
1883
- /** When the action happened (server/storage clock, dialect-owned). */
1884
- occurred_at: string;
1885
- /** When the row was inserted (server/storage clock, dialect-owned). */
1886
- created_at: string;
1887
- /** Who triggered the event. */
1888
- actor_id?: string | null;
1889
- /** Actor kind. */
1890
- actor_type?: "human" | "service" | "system" | "agent" | null;
1891
- /** Resource type affected. */
1892
- entity_type?: string | null;
1893
- /** Resource id affected. */
1894
- entity_id?: string | null;
1895
- /** Application or agent that produced the event. */
1896
- client_id: string;
1897
- /** Token id present at emit time, when any. */
1898
- token_id?: string;
1899
- /** Delegation kind (omit when unset). */
1900
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
1901
- delegation_id?: string;
1902
- grantor?: string;
1903
- /** Device fingerprint correlation id. */
1904
- fingerprint?: string;
1905
- /** HTTP request correlation id. */
1906
- request_id?: string | null;
1907
- /** Session correlation id. */
1908
- session_id?: string | null;
1909
- /** Login flow correlation id. */
1910
- flow_id?: string | null;
1911
- /**
1912
- * Emit-time metadata, already redacted at write. Path A request.api may
1913
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1914
- * live risk-evaluator input.
1915
- */
1916
- metadata?: {
1917
- /** Observed HTTP requestor context on Path A request.api only. */
1918
- client?: {
1919
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1920
- ip?: string;
1921
- /** Observed User-Agent header. */
1922
- user_agent?: string;
1923
- /** Origin header when present. */
1924
- origin?: string;
1925
- };
1926
- [key: string]: unknown;
1927
- };
1928
- } & {
1929
- event_type: "team.created";
1930
- /**
1931
- * Shared allowlisted fields for `team.created` (snapshot) and
1932
- * `team.updated` (delta: only changed fields present).
1933
- */
1934
- payload: {
1935
- name?: string;
1936
- };
1937
- })
1938
- | ({
1939
- /** Managed event id (`evt_<opaque>`). */
1940
- id: string;
1941
- /** @pattern ^[a-zA-Z0-9_-]+$ */
1942
- project_id: string;
1943
- /** Emit-time team scope, when the actor operated under a team. */
1944
- team_id?: string | null;
1945
- /**
1946
- * Semantic event name (dot-separated). Discriminator for the Event union —
1947
- * see docs/design/api/events-catalog.md.
1948
- */
1949
- event_type: string;
1950
- /** Wide-event category. */
1951
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
1952
- /** When the action happened (server/storage clock, dialect-owned). */
1953
- occurred_at: string;
1954
- /** When the row was inserted (server/storage clock, dialect-owned). */
1955
- created_at: string;
1956
- /** Who triggered the event. */
1957
- actor_id?: string | null;
1958
- /** Actor kind. */
1959
- actor_type?: "human" | "service" | "system" | "agent" | null;
1960
- /** Resource type affected. */
1961
- entity_type?: string | null;
1962
- /** Resource id affected. */
1963
- entity_id?: string | null;
1964
- /** Application or agent that produced the event. */
1965
- client_id: string;
1966
- /** Token id present at emit time, when any. */
1967
- token_id?: string;
1968
- /** Delegation kind (omit when unset). */
1969
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
1970
- delegation_id?: string;
1971
- grantor?: string;
1972
- /** Device fingerprint correlation id. */
1973
- fingerprint?: string;
1974
- /** HTTP request correlation id. */
1975
- request_id?: string | null;
1976
- /** Session correlation id. */
1977
- session_id?: string | null;
1978
- /** Login flow correlation id. */
1979
- flow_id?: string | null;
1980
- /**
1981
- * Emit-time metadata, already redacted at write. Path A request.api may
1982
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1983
- * live risk-evaluator input.
1984
- */
1985
- metadata?: {
1986
- /** Observed HTTP requestor context on Path A request.api only. */
1987
- client?: {
1988
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1989
- ip?: string;
1990
- /** Observed User-Agent header. */
1991
- user_agent?: string;
1992
- /** Origin header when present. */
1993
- origin?: string;
1994
- };
1995
- [key: string]: unknown;
1996
- };
1997
- } & {
1998
- event_type: "team.deactivated";
1999
- /**
2000
- * Empty payload for event types with no typed fields
2001
- * (e.g. `project.deleted`, `user.deleted`, `session.expired`).
2002
- */
2003
- payload: { [key: string]: unknown };
2004
- })
2005
- | ({
2006
- /** Managed event id (`evt_<opaque>`). */
2007
- id: string;
2008
- /** @pattern ^[a-zA-Z0-9_-]+$ */
2009
- project_id: string;
2010
- /** Emit-time team scope, when the actor operated under a team. */
2011
- team_id?: string | null;
2012
- /**
2013
- * Semantic event name (dot-separated). Discriminator for the Event union —
2014
- * see docs/design/api/events-catalog.md.
2015
- */
2016
- event_type: string;
2017
- /** Wide-event category. */
2018
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
2019
- /** When the action happened (server/storage clock, dialect-owned). */
2020
- occurred_at: string;
2021
- /** When the row was inserted (server/storage clock, dialect-owned). */
2022
- created_at: string;
2023
- /** Who triggered the event. */
2024
- actor_id?: string | null;
2025
- /** Actor kind. */
2026
- actor_type?: "human" | "service" | "system" | "agent" | null;
2027
- /** Resource type affected. */
2028
- entity_type?: string | null;
2029
- /** Resource id affected. */
2030
- entity_id?: string | null;
2031
- /** Application or agent that produced the event. */
2032
- client_id: string;
2033
- /** Token id present at emit time, when any. */
2034
- token_id?: string;
2035
- /** Delegation kind (omit when unset). */
2036
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
2037
- delegation_id?: string;
2038
- grantor?: string;
2039
- /** Device fingerprint correlation id. */
2040
- fingerprint?: string;
2041
- /** HTTP request correlation id. */
2042
- request_id?: string | null;
2043
- /** Session correlation id. */
2044
- session_id?: string | null;
2045
- /** Login flow correlation id. */
2046
- flow_id?: string | null;
2047
- /**
2048
- * Emit-time metadata, already redacted at write. Path A request.api may
2049
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
2050
- * live risk-evaluator input.
2051
- */
2052
- metadata?: {
2053
- /** Observed HTTP requestor context on Path A request.api only. */
2054
- client?: {
2055
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
2056
- ip?: string;
2057
- /** Observed User-Agent header. */
2058
- user_agent?: string;
2059
- /** Origin header when present. */
2060
- origin?: string;
2061
- };
2062
- [key: string]: unknown;
2063
- };
2064
- } & {
2065
- event_type: "team.updated";
2066
- /**
2067
- * Shared allowlisted fields for `team.created` (snapshot) and
2068
- * `team.updated` (delta: only changed fields present).
2069
- */
2070
- payload: {
2071
- name?: string;
2072
- };
2073
- })
2074
- | ({
2075
- /** Managed event id (`evt_<opaque>`). */
2076
- id: string;
2077
- /** @pattern ^[a-zA-Z0-9_-]+$ */
2078
- project_id: string;
2079
- /** Emit-time team scope, when the actor operated under a team. */
2080
- team_id?: string | null;
2081
- /**
2082
- * Semantic event name (dot-separated). Discriminator for the Event union —
2083
- * see docs/design/api/events-catalog.md.
2084
- */
2085
- event_type: string;
2086
- /** Wide-event category. */
2087
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
2088
- /** When the action happened (server/storage clock, dialect-owned). */
2089
- occurred_at: string;
2090
- /** When the row was inserted (server/storage clock, dialect-owned). */
2091
- created_at: string;
2092
- /** Who triggered the event. */
2093
- actor_id?: string | null;
2094
- /** Actor kind. */
2095
- actor_type?: "human" | "service" | "system" | "agent" | null;
2096
- /** Resource type affected. */
2097
- entity_type?: string | null;
2098
- /** Resource id affected. */
2099
- entity_id?: string | null;
2100
- /** Application or agent that produced the event. */
2101
- client_id: string;
2102
- /** Token id present at emit time, when any. */
2103
- token_id?: string;
2104
- /** Delegation kind (omit when unset). */
2105
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
2106
- delegation_id?: string;
2107
- grantor?: string;
2108
- /** Device fingerprint correlation id. */
2109
- fingerprint?: string;
2110
- /** HTTP request correlation id. */
2111
- request_id?: string | null;
2112
- /** Session correlation id. */
2113
- session_id?: string | null;
2114
- /** Login flow correlation id. */
2115
- flow_id?: string | null;
2116
- /**
2117
- * Emit-time metadata, already redacted at write. Path A request.api may
2118
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
2119
- * live risk-evaluator input.
2120
- */
2121
- metadata?: {
2122
- /** Observed HTTP requestor context on Path A request.api only. */
2123
- client?: {
2124
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
2125
- ip?: string;
2126
- /** Observed User-Agent header. */
2127
- user_agent?: string;
2128
- /** Origin header when present. */
2129
- origin?: string;
2130
- };
2131
- [key: string]: unknown;
2132
- };
2133
- } & {
2134
- event_type: "user.create.failed";
2135
- /** Payload for `user.create.failed` events. */
2136
- payload: {
2137
- key_name?: string;
2138
- };
2139
- })
2140
- | ({
2141
- /** Managed event id (`evt_<opaque>`). */
2142
- id: string;
2143
- /** @pattern ^[a-zA-Z0-9_-]+$ */
2144
- project_id: string;
2145
- /** Emit-time team scope, when the actor operated under a team. */
2146
- team_id?: string | null;
2147
- /**
2148
- * Semantic event name (dot-separated). Discriminator for the Event union —
2149
- * see docs/design/api/events-catalog.md.
2150
- */
2151
- event_type: string;
2152
- /** Wide-event category. */
2153
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
2154
- /** When the action happened (server/storage clock, dialect-owned). */
2155
- occurred_at: string;
2156
- /** When the row was inserted (server/storage clock, dialect-owned). */
2157
- created_at: string;
2158
- /** Who triggered the event. */
2159
- actor_id?: string | null;
2160
- /** Actor kind. */
2161
- actor_type?: "human" | "service" | "system" | "agent" | null;
2162
- /** Resource type affected. */
2163
- entity_type?: string | null;
2164
- /** Resource id affected. */
2165
- entity_id?: string | null;
2166
- /** Application or agent that produced the event. */
2167
- client_id: string;
2168
- /** Token id present at emit time, when any. */
2169
- token_id?: string;
2170
- /** Delegation kind (omit when unset). */
2171
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
2172
- delegation_id?: string;
2173
- grantor?: string;
2174
- /** Device fingerprint correlation id. */
2175
- fingerprint?: string;
2176
- /** HTTP request correlation id. */
2177
- request_id?: string | null;
2178
- /** Session correlation id. */
2179
- session_id?: string | null;
2180
- /** Login flow correlation id. */
2181
- flow_id?: string | null;
2182
- /**
2183
- * Emit-time metadata, already redacted at write. Path A request.api may
2184
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
2185
- * live risk-evaluator input.
2186
- */
2187
- metadata?: {
2188
- /** Observed HTTP requestor context on Path A request.api only. */
2189
- client?: {
2190
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
2191
- ip?: string;
2192
- /** Observed User-Agent header. */
2193
- user_agent?: string;
2194
- /** Origin header when present. */
2195
- origin?: string;
2196
- };
2197
- [key: string]: unknown;
2198
- };
2199
- } & {
2200
- event_type: "user.created";
2201
- /**
2202
- * Payload for `user.created`. Identity is `entity_id`; attribute values
2203
- * appear only for schema fields marked `x-audit`.
2204
- */
2205
- payload: {
2206
- schema_id?: string;
2207
- attribute_keys?: string[];
2208
- attributes?: { [key: string]: unknown };
2209
- };
2210
- })
2211
- | ({
2212
- /** Managed event id (`evt_<opaque>`). */
2213
- id: string;
2214
- /** @pattern ^[a-zA-Z0-9_-]+$ */
2215
- project_id: string;
2216
- /** Emit-time team scope, when the actor operated under a team. */
2217
- team_id?: string | null;
2218
- /**
2219
- * Semantic event name (dot-separated). Discriminator for the Event union —
2220
- * see docs/design/api/events-catalog.md.
2221
- */
2222
- event_type: string;
2223
- /** Wide-event category. */
2224
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
2225
- /** When the action happened (server/storage clock, dialect-owned). */
2226
- occurred_at: string;
2227
- /** When the row was inserted (server/storage clock, dialect-owned). */
2228
- created_at: string;
2229
- /** Who triggered the event. */
2230
- actor_id?: string | null;
2231
- /** Actor kind. */
2232
- actor_type?: "human" | "service" | "system" | "agent" | null;
2233
- /** Resource type affected. */
2234
- entity_type?: string | null;
2235
- /** Resource id affected. */
2236
- entity_id?: string | null;
2237
- /** Application or agent that produced the event. */
2238
- client_id: string;
2239
- /** Token id present at emit time, when any. */
2240
- token_id?: string;
2241
- /** Delegation kind (omit when unset). */
2242
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
2243
- delegation_id?: string;
2244
- grantor?: string;
2245
- /** Device fingerprint correlation id. */
2246
- fingerprint?: string;
2247
- /** HTTP request correlation id. */
2248
- request_id?: string | null;
2249
- /** Session correlation id. */
2250
- session_id?: string | null;
2251
- /** Login flow correlation id. */
2252
- flow_id?: string | null;
2253
- /**
2254
- * Emit-time metadata, already redacted at write. Path A request.api may
2255
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
2256
- * live risk-evaluator input.
2257
- */
2258
- metadata?: {
2259
- /** Observed HTTP requestor context on Path A request.api only. */
2260
- client?: {
2261
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
2262
- ip?: string;
2263
- /** Observed User-Agent header. */
2264
- user_agent?: string;
2265
- /** Origin header when present. */
2266
- origin?: string;
2267
- };
2268
- [key: string]: unknown;
2269
- };
2270
- } & {
2271
- event_type: "user.deleted";
2272
- /**
2273
- * Empty payload for event types with no typed fields
2274
- * (e.g. `project.deleted`, `user.deleted`, `session.expired`).
2275
- */
2276
- payload: { [key: string]: unknown };
2277
- })
2278
- | ({
2279
- /** Managed event id (`evt_<opaque>`). */
2280
- id: string;
2281
- /** @pattern ^[a-zA-Z0-9_-]+$ */
2282
- project_id: string;
2283
- /** Emit-time team scope, when the actor operated under a team. */
2284
- team_id?: string | null;
2285
- /**
2286
- * Semantic event name (dot-separated). Discriminator for the Event union —
2287
- * see docs/design/api/events-catalog.md.
2288
- */
2289
- event_type: string;
2290
- /** Wide-event category. */
2291
- category: "request" | "auth" | "session" | "admin" | "entity" | "signal";
2292
- /** When the action happened (server/storage clock, dialect-owned). */
2293
- occurred_at: string;
2294
- /** When the row was inserted (server/storage clock, dialect-owned). */
2295
- created_at: string;
2296
- /** Who triggered the event. */
2297
- actor_id?: string | null;
2298
- /** Actor kind. */
2299
- actor_type?: "human" | "service" | "system" | "agent" | null;
2300
- /** Resource type affected. */
2301
- entity_type?: string | null;
2302
- /** Resource id affected. */
2303
- entity_id?: string | null;
2304
- /** Application or agent that produced the event. */
2305
- client_id: string;
2306
- /** Token id present at emit time, when any. */
2307
- token_id?: string;
2308
- /** Delegation kind (omit when unset). */
2309
- delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
2310
- delegation_id?: string;
2311
- grantor?: string;
2312
- /** Device fingerprint correlation id. */
2313
- fingerprint?: string;
2314
- /** HTTP request correlation id. */
2315
- request_id?: string | null;
2316
- /** Session correlation id. */
2317
- session_id?: string | null;
2318
- /** Login flow correlation id. */
2319
- flow_id?: string | null;
2320
- /**
2321
- * Emit-time metadata, already redacted at write. Path A request.api may
2322
- * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
2323
- * live risk-evaluator input.
2324
- */
2325
- metadata?: {
2326
- /** Observed HTTP requestor context on Path A request.api only. */
2327
- client?: {
2328
- /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
2329
- ip?: string;
2330
- /** Observed User-Agent header. */
2331
- user_agent?: string;
2332
- /** Origin header when present. */
2333
- origin?: string;
2334
- };
2335
- [key: string]: unknown;
2336
- };
2337
- } & {
2338
- event_type: "user.updated";
2339
- /**
2340
- * Payload for `user.updated`. Same attribute rules as create: keys touched
2341
- * plus `x-audit` values only.
2342
- */
2343
- payload: {
2344
- attribute_keys?: string[];
2345
- attributes?: { [key: string]: unknown };
2346
- };
2347
- });
13
+ export type ListEvents200DataItem = ({
14
+ /** Managed event id (`evt_<opaque>`). */
15
+ id: string;
16
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
17
+ project_id: string;
18
+ /** Emit-time team scope, when the actor operated under a team. */
19
+ team_id?: string | null;
20
+ /**
21
+ * Semantic event name (dot-separated). Discriminator for the Event union —
22
+ * see docs/design/api/events-catalog.md.
23
+ */
24
+ event_type: string;
25
+ /** Wide-event category. */
26
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
27
+ /** When the action happened (server/storage clock, dialect-owned). */
28
+ occurred_at: string;
29
+ /** When the row was inserted (server/storage clock, dialect-owned). */
30
+ created_at: string;
31
+ /** Who triggered the event. */
32
+ actor_id?: string | null;
33
+ /** Actor kind. */
34
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
35
+ /** Resource type affected. */
36
+ entity_type?: string | null;
37
+ /** Resource id affected. */
38
+ entity_id?: string | null;
39
+ /** Application or agent that produced the event. */
40
+ client_id: string;
41
+ /** Token id present at emit time, when any. */
42
+ token_id?: string;
43
+ /** Delegation kind (omit when unset). */
44
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
45
+ delegation_id?: string;
46
+ grantor?: string;
47
+ /** Device fingerprint correlation id. */
48
+ fingerprint?: string;
49
+ /** HTTP request correlation id. */
50
+ request_id?: string | null;
51
+ /** Session correlation id. */
52
+ session_id?: string | null;
53
+ /** Login flow correlation id. */
54
+ flow_id?: string | null;
55
+ /**
56
+ * Emit-time metadata, already redacted at write. Path A request.api may
57
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
58
+ * live risk-evaluator input.
59
+ */
60
+ metadata?: {
61
+ /** Observed HTTP requestor context on Path A request.api only. */
62
+ client?: {
63
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
64
+ ip?: string;
65
+ /** Observed User-Agent header. */
66
+ user_agent?: string;
67
+ /** Origin header when present. */
68
+ origin?: string;
69
+ };
70
+ [key: string]: unknown;
71
+ };
72
+ }) & {
73
+ event_type: 'auth.attempt.created';
74
+ /**
75
+ * Empty payload for event types with no typed fields
76
+ * (e.g. `project.deleted`, `user.deleted`, `session.expired`).
77
+ */
78
+ payload: { [key: string]: unknown };
79
+ } | ({
80
+ /** Managed event id (`evt_<opaque>`). */
81
+ id: string;
82
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
83
+ project_id: string;
84
+ /** Emit-time team scope, when the actor operated under a team. */
85
+ team_id?: string | null;
86
+ /**
87
+ * Semantic event name (dot-separated). Discriminator for the Event union —
88
+ * see docs/design/api/events-catalog.md.
89
+ */
90
+ event_type: string;
91
+ /** Wide-event category. */
92
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
93
+ /** When the action happened (server/storage clock, dialect-owned). */
94
+ occurred_at: string;
95
+ /** When the row was inserted (server/storage clock, dialect-owned). */
96
+ created_at: string;
97
+ /** Who triggered the event. */
98
+ actor_id?: string | null;
99
+ /** Actor kind. */
100
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
101
+ /** Resource type affected. */
102
+ entity_type?: string | null;
103
+ /** Resource id affected. */
104
+ entity_id?: string | null;
105
+ /** Application or agent that produced the event. */
106
+ client_id: string;
107
+ /** Token id present at emit time, when any. */
108
+ token_id?: string;
109
+ /** Delegation kind (omit when unset). */
110
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
111
+ delegation_id?: string;
112
+ grantor?: string;
113
+ /** Device fingerprint correlation id. */
114
+ fingerprint?: string;
115
+ /** HTTP request correlation id. */
116
+ request_id?: string | null;
117
+ /** Session correlation id. */
118
+ session_id?: string | null;
119
+ /** Login flow correlation id. */
120
+ flow_id?: string | null;
121
+ /**
122
+ * Emit-time metadata, already redacted at write. Path A request.api may
123
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
124
+ * live risk-evaluator input.
125
+ */
126
+ metadata?: {
127
+ /** Observed HTTP requestor context on Path A request.api only. */
128
+ client?: {
129
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
130
+ ip?: string;
131
+ /** Observed User-Agent header. */
132
+ user_agent?: string;
133
+ /** Origin header when present. */
134
+ origin?: string;
135
+ };
136
+ [key: string]: unknown;
137
+ };
138
+ }) & {
139
+ event_type: 'auth.attempt.handed_off';
140
+ /**
141
+ * Empty payload for event types with no typed fields
142
+ * (e.g. `project.deleted`, `user.deleted`, `session.expired`).
143
+ */
144
+ payload: { [key: string]: unknown };
145
+ } | ({
146
+ /** Managed event id (`evt_<opaque>`). */
147
+ id: string;
148
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
149
+ project_id: string;
150
+ /** Emit-time team scope, when the actor operated under a team. */
151
+ team_id?: string | null;
152
+ /**
153
+ * Semantic event name (dot-separated). Discriminator for the Event union —
154
+ * see docs/design/api/events-catalog.md.
155
+ */
156
+ event_type: string;
157
+ /** Wide-event category. */
158
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
159
+ /** When the action happened (server/storage clock, dialect-owned). */
160
+ occurred_at: string;
161
+ /** When the row was inserted (server/storage clock, dialect-owned). */
162
+ created_at: string;
163
+ /** Who triggered the event. */
164
+ actor_id?: string | null;
165
+ /** Actor kind. */
166
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
167
+ /** Resource type affected. */
168
+ entity_type?: string | null;
169
+ /** Resource id affected. */
170
+ entity_id?: string | null;
171
+ /** Application or agent that produced the event. */
172
+ client_id: string;
173
+ /** Token id present at emit time, when any. */
174
+ token_id?: string;
175
+ /** Delegation kind (omit when unset). */
176
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
177
+ delegation_id?: string;
178
+ grantor?: string;
179
+ /** Device fingerprint correlation id. */
180
+ fingerprint?: string;
181
+ /** HTTP request correlation id. */
182
+ request_id?: string | null;
183
+ /** Session correlation id. */
184
+ session_id?: string | null;
185
+ /** Login flow correlation id. */
186
+ flow_id?: string | null;
187
+ /**
188
+ * Emit-time metadata, already redacted at write. Path A request.api may
189
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
190
+ * live risk-evaluator input.
191
+ */
192
+ metadata?: {
193
+ /** Observed HTTP requestor context on Path A request.api only. */
194
+ client?: {
195
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
196
+ ip?: string;
197
+ /** Observed User-Agent header. */
198
+ user_agent?: string;
199
+ /** Origin header when present. */
200
+ origin?: string;
201
+ };
202
+ [key: string]: unknown;
203
+ };
204
+ }) & {
205
+ event_type: 'auth.check.failed';
206
+ /**
207
+ * Payload for `auth.check.failed` / `auth.check.succeeded`,
208
+ * `auth.sso.authorization.failed`, and `auth.sso.exchange.failed` /
209
+ * `auth.sso.exchange.succeeded`.
210
+ * `auth_attempt_id` joins the check to its attempt for SIEM correlation.
211
+ */
212
+ payload: {
213
+ check_id: string;
214
+ check_type?: string;
215
+ auth_attempt_id?: string;
216
+ };
217
+ } | ({
218
+ /** Managed event id (`evt_<opaque>`). */
219
+ id: string;
220
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
221
+ project_id: string;
222
+ /** Emit-time team scope, when the actor operated under a team. */
223
+ team_id?: string | null;
224
+ /**
225
+ * Semantic event name (dot-separated). Discriminator for the Event union —
226
+ * see docs/design/api/events-catalog.md.
227
+ */
228
+ event_type: string;
229
+ /** Wide-event category. */
230
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
231
+ /** When the action happened (server/storage clock, dialect-owned). */
232
+ occurred_at: string;
233
+ /** When the row was inserted (server/storage clock, dialect-owned). */
234
+ created_at: string;
235
+ /** Who triggered the event. */
236
+ actor_id?: string | null;
237
+ /** Actor kind. */
238
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
239
+ /** Resource type affected. */
240
+ entity_type?: string | null;
241
+ /** Resource id affected. */
242
+ entity_id?: string | null;
243
+ /** Application or agent that produced the event. */
244
+ client_id: string;
245
+ /** Token id present at emit time, when any. */
246
+ token_id?: string;
247
+ /** Delegation kind (omit when unset). */
248
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
249
+ delegation_id?: string;
250
+ grantor?: string;
251
+ /** Device fingerprint correlation id. */
252
+ fingerprint?: string;
253
+ /** HTTP request correlation id. */
254
+ request_id?: string | null;
255
+ /** Session correlation id. */
256
+ session_id?: string | null;
257
+ /** Login flow correlation id. */
258
+ flow_id?: string | null;
259
+ /**
260
+ * Emit-time metadata, already redacted at write. Path A request.api may
261
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
262
+ * live risk-evaluator input.
263
+ */
264
+ metadata?: {
265
+ /** Observed HTTP requestor context on Path A request.api only. */
266
+ client?: {
267
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
268
+ ip?: string;
269
+ /** Observed User-Agent header. */
270
+ user_agent?: string;
271
+ /** Origin header when present. */
272
+ origin?: string;
273
+ };
274
+ [key: string]: unknown;
275
+ };
276
+ }) & {
277
+ event_type: 'auth.check.succeeded';
278
+ /**
279
+ * Payload for `auth.check.failed` / `auth.check.succeeded`,
280
+ * `auth.sso.authorization.failed`, and `auth.sso.exchange.failed` /
281
+ * `auth.sso.exchange.succeeded`.
282
+ * `auth_attempt_id` joins the check to its attempt for SIEM correlation.
283
+ */
284
+ payload: {
285
+ check_id: string;
286
+ check_type?: string;
287
+ auth_attempt_id?: string;
288
+ };
289
+ } | ({
290
+ /** Managed event id (`evt_<opaque>`). */
291
+ id: string;
292
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
293
+ project_id: string;
294
+ /** Emit-time team scope, when the actor operated under a team. */
295
+ team_id?: string | null;
296
+ /**
297
+ * Semantic event name (dot-separated). Discriminator for the Event union —
298
+ * see docs/design/api/events-catalog.md.
299
+ */
300
+ event_type: string;
301
+ /** Wide-event category. */
302
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
303
+ /** When the action happened (server/storage clock, dialect-owned). */
304
+ occurred_at: string;
305
+ /** When the row was inserted (server/storage clock, dialect-owned). */
306
+ created_at: string;
307
+ /** Who triggered the event. */
308
+ actor_id?: string | null;
309
+ /** Actor kind. */
310
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
311
+ /** Resource type affected. */
312
+ entity_type?: string | null;
313
+ /** Resource id affected. */
314
+ entity_id?: string | null;
315
+ /** Application or agent that produced the event. */
316
+ client_id: string;
317
+ /** Token id present at emit time, when any. */
318
+ token_id?: string;
319
+ /** Delegation kind (omit when unset). */
320
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
321
+ delegation_id?: string;
322
+ grantor?: string;
323
+ /** Device fingerprint correlation id. */
324
+ fingerprint?: string;
325
+ /** HTTP request correlation id. */
326
+ request_id?: string | null;
327
+ /** Session correlation id. */
328
+ session_id?: string | null;
329
+ /** Login flow correlation id. */
330
+ flow_id?: string | null;
331
+ /**
332
+ * Emit-time metadata, already redacted at write. Path A request.api may
333
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
334
+ * live risk-evaluator input.
335
+ */
336
+ metadata?: {
337
+ /** Observed HTTP requestor context on Path A request.api only. */
338
+ client?: {
339
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
340
+ ip?: string;
341
+ /** Observed User-Agent header. */
342
+ user_agent?: string;
343
+ /** Origin header when present. */
344
+ origin?: string;
345
+ };
346
+ [key: string]: unknown;
347
+ };
348
+ }) & {
349
+ event_type: 'auth.factor.passkey.enrolled';
350
+ /** Payload for `auth.factor.*` events. */
351
+ payload: {
352
+ user_id: string;
353
+ factor_id?: string;
354
+ };
355
+ } | ({
356
+ /** Managed event id (`evt_<opaque>`). */
357
+ id: string;
358
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
359
+ project_id: string;
360
+ /** Emit-time team scope, when the actor operated under a team. */
361
+ team_id?: string | null;
362
+ /**
363
+ * Semantic event name (dot-separated). Discriminator for the Event union —
364
+ * see docs/design/api/events-catalog.md.
365
+ */
366
+ event_type: string;
367
+ /** Wide-event category. */
368
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
369
+ /** When the action happened (server/storage clock, dialect-owned). */
370
+ occurred_at: string;
371
+ /** When the row was inserted (server/storage clock, dialect-owned). */
372
+ created_at: string;
373
+ /** Who triggered the event. */
374
+ actor_id?: string | null;
375
+ /** Actor kind. */
376
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
377
+ /** Resource type affected. */
378
+ entity_type?: string | null;
379
+ /** Resource id affected. */
380
+ entity_id?: string | null;
381
+ /** Application or agent that produced the event. */
382
+ client_id: string;
383
+ /** Token id present at emit time, when any. */
384
+ token_id?: string;
385
+ /** Delegation kind (omit when unset). */
386
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
387
+ delegation_id?: string;
388
+ grantor?: string;
389
+ /** Device fingerprint correlation id. */
390
+ fingerprint?: string;
391
+ /** HTTP request correlation id. */
392
+ request_id?: string | null;
393
+ /** Session correlation id. */
394
+ session_id?: string | null;
395
+ /** Login flow correlation id. */
396
+ flow_id?: string | null;
397
+ /**
398
+ * Emit-time metadata, already redacted at write. Path A request.api may
399
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
400
+ * live risk-evaluator input.
401
+ */
402
+ metadata?: {
403
+ /** Observed HTTP requestor context on Path A request.api only. */
404
+ client?: {
405
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
406
+ ip?: string;
407
+ /** Observed User-Agent header. */
408
+ user_agent?: string;
409
+ /** Origin header when present. */
410
+ origin?: string;
411
+ };
412
+ [key: string]: unknown;
413
+ };
414
+ }) & {
415
+ event_type: 'auth.factor.password.set';
416
+ /** Payload for `auth.factor.*` events. */
417
+ payload: {
418
+ user_id: string;
419
+ factor_id?: string;
420
+ };
421
+ } | ({
422
+ /** Managed event id (`evt_<opaque>`). */
423
+ id: string;
424
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
425
+ project_id: string;
426
+ /** Emit-time team scope, when the actor operated under a team. */
427
+ team_id?: string | null;
428
+ /**
429
+ * Semantic event name (dot-separated). Discriminator for the Event union —
430
+ * see docs/design/api/events-catalog.md.
431
+ */
432
+ event_type: string;
433
+ /** Wide-event category. */
434
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
435
+ /** When the action happened (server/storage clock, dialect-owned). */
436
+ occurred_at: string;
437
+ /** When the row was inserted (server/storage clock, dialect-owned). */
438
+ created_at: string;
439
+ /** Who triggered the event. */
440
+ actor_id?: string | null;
441
+ /** Actor kind. */
442
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
443
+ /** Resource type affected. */
444
+ entity_type?: string | null;
445
+ /** Resource id affected. */
446
+ entity_id?: string | null;
447
+ /** Application or agent that produced the event. */
448
+ client_id: string;
449
+ /** Token id present at emit time, when any. */
450
+ token_id?: string;
451
+ /** Delegation kind (omit when unset). */
452
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
453
+ delegation_id?: string;
454
+ grantor?: string;
455
+ /** Device fingerprint correlation id. */
456
+ fingerprint?: string;
457
+ /** HTTP request correlation id. */
458
+ request_id?: string | null;
459
+ /** Session correlation id. */
460
+ session_id?: string | null;
461
+ /** Login flow correlation id. */
462
+ flow_id?: string | null;
463
+ /**
464
+ * Emit-time metadata, already redacted at write. Path A request.api may
465
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
466
+ * live risk-evaluator input.
467
+ */
468
+ metadata?: {
469
+ /** Observed HTTP requestor context on Path A request.api only. */
470
+ client?: {
471
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
472
+ ip?: string;
473
+ /** Observed User-Agent header. */
474
+ user_agent?: string;
475
+ /** Origin header when present. */
476
+ origin?: string;
477
+ };
478
+ [key: string]: unknown;
479
+ };
480
+ }) & {
481
+ event_type: 'auth.sso.authorization.failed';
482
+ /**
483
+ * Payload for `auth.check.failed` / `auth.check.succeeded`,
484
+ * `auth.sso.authorization.failed`, and `auth.sso.exchange.failed` /
485
+ * `auth.sso.exchange.succeeded`.
486
+ * `auth_attempt_id` joins the check to its attempt for SIEM correlation.
487
+ */
488
+ payload: {
489
+ check_id: string;
490
+ check_type?: string;
491
+ auth_attempt_id?: string;
492
+ };
493
+ } | ({
494
+ /** Managed event id (`evt_<opaque>`). */
495
+ id: string;
496
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
497
+ project_id: string;
498
+ /** Emit-time team scope, when the actor operated under a team. */
499
+ team_id?: string | null;
500
+ /**
501
+ * Semantic event name (dot-separated). Discriminator for the Event union —
502
+ * see docs/design/api/events-catalog.md.
503
+ */
504
+ event_type: string;
505
+ /** Wide-event category. */
506
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
507
+ /** When the action happened (server/storage clock, dialect-owned). */
508
+ occurred_at: string;
509
+ /** When the row was inserted (server/storage clock, dialect-owned). */
510
+ created_at: string;
511
+ /** Who triggered the event. */
512
+ actor_id?: string | null;
513
+ /** Actor kind. */
514
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
515
+ /** Resource type affected. */
516
+ entity_type?: string | null;
517
+ /** Resource id affected. */
518
+ entity_id?: string | null;
519
+ /** Application or agent that produced the event. */
520
+ client_id: string;
521
+ /** Token id present at emit time, when any. */
522
+ token_id?: string;
523
+ /** Delegation kind (omit when unset). */
524
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
525
+ delegation_id?: string;
526
+ grantor?: string;
527
+ /** Device fingerprint correlation id. */
528
+ fingerprint?: string;
529
+ /** HTTP request correlation id. */
530
+ request_id?: string | null;
531
+ /** Session correlation id. */
532
+ session_id?: string | null;
533
+ /** Login flow correlation id. */
534
+ flow_id?: string | null;
535
+ /**
536
+ * Emit-time metadata, already redacted at write. Path A request.api may
537
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
538
+ * live risk-evaluator input.
539
+ */
540
+ metadata?: {
541
+ /** Observed HTTP requestor context on Path A request.api only. */
542
+ client?: {
543
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
544
+ ip?: string;
545
+ /** Observed User-Agent header. */
546
+ user_agent?: string;
547
+ /** Origin header when present. */
548
+ origin?: string;
549
+ };
550
+ [key: string]: unknown;
551
+ };
552
+ }) & {
553
+ event_type: 'auth.sso.exchange.failed';
554
+ /**
555
+ * Payload for `auth.check.failed` / `auth.check.succeeded`,
556
+ * `auth.sso.authorization.failed`, and `auth.sso.exchange.failed` /
557
+ * `auth.sso.exchange.succeeded`.
558
+ * `auth_attempt_id` joins the check to its attempt for SIEM correlation.
559
+ */
560
+ payload: {
561
+ check_id: string;
562
+ check_type?: string;
563
+ auth_attempt_id?: string;
564
+ };
565
+ } | ({
566
+ /** Managed event id (`evt_<opaque>`). */
567
+ id: string;
568
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
569
+ project_id: string;
570
+ /** Emit-time team scope, when the actor operated under a team. */
571
+ team_id?: string | null;
572
+ /**
573
+ * Semantic event name (dot-separated). Discriminator for the Event union —
574
+ * see docs/design/api/events-catalog.md.
575
+ */
576
+ event_type: string;
577
+ /** Wide-event category. */
578
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
579
+ /** When the action happened (server/storage clock, dialect-owned). */
580
+ occurred_at: string;
581
+ /** When the row was inserted (server/storage clock, dialect-owned). */
582
+ created_at: string;
583
+ /** Who triggered the event. */
584
+ actor_id?: string | null;
585
+ /** Actor kind. */
586
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
587
+ /** Resource type affected. */
588
+ entity_type?: string | null;
589
+ /** Resource id affected. */
590
+ entity_id?: string | null;
591
+ /** Application or agent that produced the event. */
592
+ client_id: string;
593
+ /** Token id present at emit time, when any. */
594
+ token_id?: string;
595
+ /** Delegation kind (omit when unset). */
596
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
597
+ delegation_id?: string;
598
+ grantor?: string;
599
+ /** Device fingerprint correlation id. */
600
+ fingerprint?: string;
601
+ /** HTTP request correlation id. */
602
+ request_id?: string | null;
603
+ /** Session correlation id. */
604
+ session_id?: string | null;
605
+ /** Login flow correlation id. */
606
+ flow_id?: string | null;
607
+ /**
608
+ * Emit-time metadata, already redacted at write. Path A request.api may
609
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
610
+ * live risk-evaluator input.
611
+ */
612
+ metadata?: {
613
+ /** Observed HTTP requestor context on Path A request.api only. */
614
+ client?: {
615
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
616
+ ip?: string;
617
+ /** Observed User-Agent header. */
618
+ user_agent?: string;
619
+ /** Origin header when present. */
620
+ origin?: string;
621
+ };
622
+ [key: string]: unknown;
623
+ };
624
+ }) & {
625
+ event_type: 'auth.sso.exchange.succeeded';
626
+ /**
627
+ * Payload for `auth.check.failed` / `auth.check.succeeded`,
628
+ * `auth.sso.authorization.failed`, and `auth.sso.exchange.failed` /
629
+ * `auth.sso.exchange.succeeded`.
630
+ * `auth_attempt_id` joins the check to its attempt for SIEM correlation.
631
+ */
632
+ payload: {
633
+ check_id: string;
634
+ check_type?: string;
635
+ auth_attempt_id?: string;
636
+ };
637
+ } | ({
638
+ /** Managed event id (`evt_<opaque>`). */
639
+ id: string;
640
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
641
+ project_id: string;
642
+ /** Emit-time team scope, when the actor operated under a team. */
643
+ team_id?: string | null;
644
+ /**
645
+ * Semantic event name (dot-separated). Discriminator for the Event union —
646
+ * see docs/design/api/events-catalog.md.
647
+ */
648
+ event_type: string;
649
+ /** Wide-event category. */
650
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
651
+ /** When the action happened (server/storage clock, dialect-owned). */
652
+ occurred_at: string;
653
+ /** When the row was inserted (server/storage clock, dialect-owned). */
654
+ created_at: string;
655
+ /** Who triggered the event. */
656
+ actor_id?: string | null;
657
+ /** Actor kind. */
658
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
659
+ /** Resource type affected. */
660
+ entity_type?: string | null;
661
+ /** Resource id affected. */
662
+ entity_id?: string | null;
663
+ /** Application or agent that produced the event. */
664
+ client_id: string;
665
+ /** Token id present at emit time, when any. */
666
+ token_id?: string;
667
+ /** Delegation kind (omit when unset). */
668
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
669
+ delegation_id?: string;
670
+ grantor?: string;
671
+ /** Device fingerprint correlation id. */
672
+ fingerprint?: string;
673
+ /** HTTP request correlation id. */
674
+ request_id?: string | null;
675
+ /** Session correlation id. */
676
+ session_id?: string | null;
677
+ /** Login flow correlation id. */
678
+ flow_id?: string | null;
679
+ /**
680
+ * Emit-time metadata, already redacted at write. Path A request.api may
681
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
682
+ * live risk-evaluator input.
683
+ */
684
+ metadata?: {
685
+ /** Observed HTTP requestor context on Path A request.api only. */
686
+ client?: {
687
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
688
+ ip?: string;
689
+ /** Observed User-Agent header. */
690
+ user_agent?: string;
691
+ /** Origin header when present. */
692
+ origin?: string;
693
+ };
694
+ [key: string]: unknown;
695
+ };
696
+ }) & {
697
+ event_type: 'auth.token.issued';
698
+ /** Payload for `auth.token.issued` events. */
699
+ payload: {
700
+ scopes?: string[];
701
+ };
702
+ } | ({
703
+ /** Managed event id (`evt_<opaque>`). */
704
+ id: string;
705
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
706
+ project_id: string;
707
+ /** Emit-time team scope, when the actor operated under a team. */
708
+ team_id?: string | null;
709
+ /**
710
+ * Semantic event name (dot-separated). Discriminator for the Event union —
711
+ * see docs/design/api/events-catalog.md.
712
+ */
713
+ event_type: string;
714
+ /** Wide-event category. */
715
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
716
+ /** When the action happened (server/storage clock, dialect-owned). */
717
+ occurred_at: string;
718
+ /** When the row was inserted (server/storage clock, dialect-owned). */
719
+ created_at: string;
720
+ /** Who triggered the event. */
721
+ actor_id?: string | null;
722
+ /** Actor kind. */
723
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
724
+ /** Resource type affected. */
725
+ entity_type?: string | null;
726
+ /** Resource id affected. */
727
+ entity_id?: string | null;
728
+ /** Application or agent that produced the event. */
729
+ client_id: string;
730
+ /** Token id present at emit time, when any. */
731
+ token_id?: string;
732
+ /** Delegation kind (omit when unset). */
733
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
734
+ delegation_id?: string;
735
+ grantor?: string;
736
+ /** Device fingerprint correlation id. */
737
+ fingerprint?: string;
738
+ /** HTTP request correlation id. */
739
+ request_id?: string | null;
740
+ /** Session correlation id. */
741
+ session_id?: string | null;
742
+ /** Login flow correlation id. */
743
+ flow_id?: string | null;
744
+ /**
745
+ * Emit-time metadata, already redacted at write. Path A request.api may
746
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
747
+ * live risk-evaluator input.
748
+ */
749
+ metadata?: {
750
+ /** Observed HTTP requestor context on Path A request.api only. */
751
+ client?: {
752
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
753
+ ip?: string;
754
+ /** Observed User-Agent header. */
755
+ user_agent?: string;
756
+ /** Origin header when present. */
757
+ origin?: string;
758
+ };
759
+ [key: string]: unknown;
760
+ };
761
+ }) & {
762
+ event_type: 'auth.token.revoked';
763
+ /**
764
+ * Empty payload for event types with no typed fields
765
+ * (e.g. `project.deleted`, `user.deleted`, `session.expired`).
766
+ */
767
+ payload: { [key: string]: unknown };
768
+ } | ({
769
+ /** Managed event id (`evt_<opaque>`). */
770
+ id: string;
771
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
772
+ project_id: string;
773
+ /** Emit-time team scope, when the actor operated under a team. */
774
+ team_id?: string | null;
775
+ /**
776
+ * Semantic event name (dot-separated). Discriminator for the Event union —
777
+ * see docs/design/api/events-catalog.md.
778
+ */
779
+ event_type: string;
780
+ /** Wide-event category. */
781
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
782
+ /** When the action happened (server/storage clock, dialect-owned). */
783
+ occurred_at: string;
784
+ /** When the row was inserted (server/storage clock, dialect-owned). */
785
+ created_at: string;
786
+ /** Who triggered the event. */
787
+ actor_id?: string | null;
788
+ /** Actor kind. */
789
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
790
+ /** Resource type affected. */
791
+ entity_type?: string | null;
792
+ /** Resource id affected. */
793
+ entity_id?: string | null;
794
+ /** Application or agent that produced the event. */
795
+ client_id: string;
796
+ /** Token id present at emit time, when any. */
797
+ token_id?: string;
798
+ /** Delegation kind (omit when unset). */
799
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
800
+ delegation_id?: string;
801
+ grantor?: string;
802
+ /** Device fingerprint correlation id. */
803
+ fingerprint?: string;
804
+ /** HTTP request correlation id. */
805
+ request_id?: string | null;
806
+ /** Session correlation id. */
807
+ session_id?: string | null;
808
+ /** Login flow correlation id. */
809
+ flow_id?: string | null;
810
+ /**
811
+ * Emit-time metadata, already redacted at write. Path A request.api may
812
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
813
+ * live risk-evaluator input.
814
+ */
815
+ metadata?: {
816
+ /** Observed HTTP requestor context on Path A request.api only. */
817
+ client?: {
818
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
819
+ ip?: string;
820
+ /** Observed User-Agent header. */
821
+ user_agent?: string;
822
+ /** Origin header when present. */
823
+ origin?: string;
824
+ };
825
+ [key: string]: unknown;
826
+ };
827
+ }) & {
828
+ event_type: 'authz.granted';
829
+ /** Payload for `authz.granted` events. */
830
+ payload: {
831
+ principal_type?: string;
832
+ principal_id?: string;
833
+ relation?: string;
834
+ };
835
+ } | ({
836
+ /** Managed event id (`evt_<opaque>`). */
837
+ id: string;
838
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
839
+ project_id: string;
840
+ /** Emit-time team scope, when the actor operated under a team. */
841
+ team_id?: string | null;
842
+ /**
843
+ * Semantic event name (dot-separated). Discriminator for the Event union —
844
+ * see docs/design/api/events-catalog.md.
845
+ */
846
+ event_type: string;
847
+ /** Wide-event category. */
848
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
849
+ /** When the action happened (server/storage clock, dialect-owned). */
850
+ occurred_at: string;
851
+ /** When the row was inserted (server/storage clock, dialect-owned). */
852
+ created_at: string;
853
+ /** Who triggered the event. */
854
+ actor_id?: string | null;
855
+ /** Actor kind. */
856
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
857
+ /** Resource type affected. */
858
+ entity_type?: string | null;
859
+ /** Resource id affected. */
860
+ entity_id?: string | null;
861
+ /** Application or agent that produced the event. */
862
+ client_id: string;
863
+ /** Token id present at emit time, when any. */
864
+ token_id?: string;
865
+ /** Delegation kind (omit when unset). */
866
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
867
+ delegation_id?: string;
868
+ grantor?: string;
869
+ /** Device fingerprint correlation id. */
870
+ fingerprint?: string;
871
+ /** HTTP request correlation id. */
872
+ request_id?: string | null;
873
+ /** Session correlation id. */
874
+ session_id?: string | null;
875
+ /** Login flow correlation id. */
876
+ flow_id?: string | null;
877
+ /**
878
+ * Emit-time metadata, already redacted at write. Path A request.api may
879
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
880
+ * live risk-evaluator input.
881
+ */
882
+ metadata?: {
883
+ /** Observed HTTP requestor context on Path A request.api only. */
884
+ client?: {
885
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
886
+ ip?: string;
887
+ /** Observed User-Agent header. */
888
+ user_agent?: string;
889
+ /** Origin header when present. */
890
+ origin?: string;
891
+ };
892
+ [key: string]: unknown;
893
+ };
894
+ }) & {
895
+ event_type: 'authz.revoked';
896
+ /** Payload for `authz.granted` events. */
897
+ payload: {
898
+ principal_type?: string;
899
+ principal_id?: string;
900
+ relation?: string;
901
+ };
902
+ } | ({
903
+ /** Managed event id (`evt_<opaque>`). */
904
+ id: string;
905
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
906
+ project_id: string;
907
+ /** Emit-time team scope, when the actor operated under a team. */
908
+ team_id?: string | null;
909
+ /**
910
+ * Semantic event name (dot-separated). Discriminator for the Event union —
911
+ * see docs/design/api/events-catalog.md.
912
+ */
913
+ event_type: string;
914
+ /** Wide-event category. */
915
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
916
+ /** When the action happened (server/storage clock, dialect-owned). */
917
+ occurred_at: string;
918
+ /** When the row was inserted (server/storage clock, dialect-owned). */
919
+ created_at: string;
920
+ /** Who triggered the event. */
921
+ actor_id?: string | null;
922
+ /** Actor kind. */
923
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
924
+ /** Resource type affected. */
925
+ entity_type?: string | null;
926
+ /** Resource id affected. */
927
+ entity_id?: string | null;
928
+ /** Application or agent that produced the event. */
929
+ client_id: string;
930
+ /** Token id present at emit time, when any. */
931
+ token_id?: string;
932
+ /** Delegation kind (omit when unset). */
933
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
934
+ delegation_id?: string;
935
+ grantor?: string;
936
+ /** Device fingerprint correlation id. */
937
+ fingerprint?: string;
938
+ /** HTTP request correlation id. */
939
+ request_id?: string | null;
940
+ /** Session correlation id. */
941
+ session_id?: string | null;
942
+ /** Login flow correlation id. */
943
+ flow_id?: string | null;
944
+ /**
945
+ * Emit-time metadata, already redacted at write. Path A request.api may
946
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
947
+ * live risk-evaluator input.
948
+ */
949
+ metadata?: {
950
+ /** Observed HTTP requestor context on Path A request.api only. */
951
+ client?: {
952
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
953
+ ip?: string;
954
+ /** Observed User-Agent header. */
955
+ user_agent?: string;
956
+ /** Origin header when present. */
957
+ origin?: string;
958
+ };
959
+ [key: string]: unknown;
960
+ };
961
+ }) & {
962
+ event_type: 'branding.created';
963
+ /** Allowlisted fields for `branding.created`. Omits `liquid_template`. */
964
+ payload: {
965
+ layout?: string;
966
+ logo_url?: string;
967
+ font_url?: string;
968
+ hero_url?: string;
969
+ };
970
+ } | ({
971
+ /** Managed event id (`evt_<opaque>`). */
972
+ id: string;
973
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
974
+ project_id: string;
975
+ /** Emit-time team scope, when the actor operated under a team. */
976
+ team_id?: string | null;
977
+ /**
978
+ * Semantic event name (dot-separated). Discriminator for the Event union —
979
+ * see docs/design/api/events-catalog.md.
980
+ */
981
+ event_type: string;
982
+ /** Wide-event category. */
983
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
984
+ /** When the action happened (server/storage clock, dialect-owned). */
985
+ occurred_at: string;
986
+ /** When the row was inserted (server/storage clock, dialect-owned). */
987
+ created_at: string;
988
+ /** Who triggered the event. */
989
+ actor_id?: string | null;
990
+ /** Actor kind. */
991
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
992
+ /** Resource type affected. */
993
+ entity_type?: string | null;
994
+ /** Resource id affected. */
995
+ entity_id?: string | null;
996
+ /** Application or agent that produced the event. */
997
+ client_id: string;
998
+ /** Token id present at emit time, when any. */
999
+ token_id?: string;
1000
+ /** Delegation kind (omit when unset). */
1001
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
1002
+ delegation_id?: string;
1003
+ grantor?: string;
1004
+ /** Device fingerprint correlation id. */
1005
+ fingerprint?: string;
1006
+ /** HTTP request correlation id. */
1007
+ request_id?: string | null;
1008
+ /** Session correlation id. */
1009
+ session_id?: string | null;
1010
+ /** Login flow correlation id. */
1011
+ flow_id?: string | null;
1012
+ /**
1013
+ * Emit-time metadata, already redacted at write. Path A request.api may
1014
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1015
+ * live risk-evaluator input.
1016
+ */
1017
+ metadata?: {
1018
+ /** Observed HTTP requestor context on Path A request.api only. */
1019
+ client?: {
1020
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1021
+ ip?: string;
1022
+ /** Observed User-Agent header. */
1023
+ user_agent?: string;
1024
+ /** Origin header when present. */
1025
+ origin?: string;
1026
+ };
1027
+ [key: string]: unknown;
1028
+ };
1029
+ }) & {
1030
+ event_type: 'deployment.created';
1031
+ /**
1032
+ * Allowlisted fields for `deployment.created`. The deployment id is already
1033
+ * the event's `entity_id`; the ids here say what went live where. Ids, not
1034
+ * names: they survive environment renames, and because events carry no
1035
+ * foreign key, the audit trail of a deleted environment lives on here.
1036
+ */
1037
+ payload: {
1038
+ environment_id?: string;
1039
+ release_id?: string;
1040
+ reason?: string;
1041
+ message?: string;
1042
+ source_environment_id?: string;
1043
+ };
1044
+ } | ({
1045
+ /** Managed event id (`evt_<opaque>`). */
1046
+ id: string;
1047
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
1048
+ project_id: string;
1049
+ /** Emit-time team scope, when the actor operated under a team. */
1050
+ team_id?: string | null;
1051
+ /**
1052
+ * Semantic event name (dot-separated). Discriminator for the Event union —
1053
+ * see docs/design/api/events-catalog.md.
1054
+ */
1055
+ event_type: string;
1056
+ /** Wide-event category. */
1057
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
1058
+ /** When the action happened (server/storage clock, dialect-owned). */
1059
+ occurred_at: string;
1060
+ /** When the row was inserted (server/storage clock, dialect-owned). */
1061
+ created_at: string;
1062
+ /** Who triggered the event. */
1063
+ actor_id?: string | null;
1064
+ /** Actor kind. */
1065
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
1066
+ /** Resource type affected. */
1067
+ entity_type?: string | null;
1068
+ /** Resource id affected. */
1069
+ entity_id?: string | null;
1070
+ /** Application or agent that produced the event. */
1071
+ client_id: string;
1072
+ /** Token id present at emit time, when any. */
1073
+ token_id?: string;
1074
+ /** Delegation kind (omit when unset). */
1075
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
1076
+ delegation_id?: string;
1077
+ grantor?: string;
1078
+ /** Device fingerprint correlation id. */
1079
+ fingerprint?: string;
1080
+ /** HTTP request correlation id. */
1081
+ request_id?: string | null;
1082
+ /** Session correlation id. */
1083
+ session_id?: string | null;
1084
+ /** Login flow correlation id. */
1085
+ flow_id?: string | null;
1086
+ /**
1087
+ * Emit-time metadata, already redacted at write. Path A request.api may
1088
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1089
+ * live risk-evaluator input.
1090
+ */
1091
+ metadata?: {
1092
+ /** Observed HTTP requestor context on Path A request.api only. */
1093
+ client?: {
1094
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1095
+ ip?: string;
1096
+ /** Observed User-Agent header. */
1097
+ user_agent?: string;
1098
+ /** Origin header when present. */
1099
+ origin?: string;
1100
+ };
1101
+ [key: string]: unknown;
1102
+ };
1103
+ }) & {
1104
+ event_type: 'environment.created';
1105
+ /**
1106
+ * Allowlisted fields for `environment.created`. The environment id is already
1107
+ * the event's `entity_id`, so the name is the only field carried here.
1108
+ */
1109
+ payload: {
1110
+ name?: string;
1111
+ };
1112
+ } | ({
1113
+ /** Managed event id (`evt_<opaque>`). */
1114
+ id: string;
1115
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
1116
+ project_id: string;
1117
+ /** Emit-time team scope, when the actor operated under a team. */
1118
+ team_id?: string | null;
1119
+ /**
1120
+ * Semantic event name (dot-separated). Discriminator for the Event union —
1121
+ * see docs/design/api/events-catalog.md.
1122
+ */
1123
+ event_type: string;
1124
+ /** Wide-event category. */
1125
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
1126
+ /** When the action happened (server/storage clock, dialect-owned). */
1127
+ occurred_at: string;
1128
+ /** When the row was inserted (server/storage clock, dialect-owned). */
1129
+ created_at: string;
1130
+ /** Who triggered the event. */
1131
+ actor_id?: string | null;
1132
+ /** Actor kind. */
1133
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
1134
+ /** Resource type affected. */
1135
+ entity_type?: string | null;
1136
+ /** Resource id affected. */
1137
+ entity_id?: string | null;
1138
+ /** Application or agent that produced the event. */
1139
+ client_id: string;
1140
+ /** Token id present at emit time, when any. */
1141
+ token_id?: string;
1142
+ /** Delegation kind (omit when unset). */
1143
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
1144
+ delegation_id?: string;
1145
+ grantor?: string;
1146
+ /** Device fingerprint correlation id. */
1147
+ fingerprint?: string;
1148
+ /** HTTP request correlation id. */
1149
+ request_id?: string | null;
1150
+ /** Session correlation id. */
1151
+ session_id?: string | null;
1152
+ /** Login flow correlation id. */
1153
+ flow_id?: string | null;
1154
+ /**
1155
+ * Emit-time metadata, already redacted at write. Path A request.api may
1156
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1157
+ * live risk-evaluator input.
1158
+ */
1159
+ metadata?: {
1160
+ /** Observed HTTP requestor context on Path A request.api only. */
1161
+ client?: {
1162
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1163
+ ip?: string;
1164
+ /** Observed User-Agent header. */
1165
+ user_agent?: string;
1166
+ /** Origin header when present. */
1167
+ origin?: string;
1168
+ };
1169
+ [key: string]: unknown;
1170
+ };
1171
+ }) & {
1172
+ event_type: 'flowdef.created';
1173
+ /**
1174
+ * Allowlisted fields of the created revision. Retired `flowdef.updated`
1175
+ * rows carry a delta in the same shape. Steps are omitted.
1176
+ */
1177
+ payload: {
1178
+ name?: string;
1179
+ status?: string;
1180
+ user_schema?: string;
1181
+ purposes?: {[key: string]: string};
1182
+ audience?: {
1183
+ app_ids?: string[];
1184
+ team_ids?: string[];
1185
+ };
1186
+ };
1187
+ } | ({
1188
+ /** Managed event id (`evt_<opaque>`). */
1189
+ id: string;
1190
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
1191
+ project_id: string;
1192
+ /** Emit-time team scope, when the actor operated under a team. */
1193
+ team_id?: string | null;
1194
+ /**
1195
+ * Semantic event name (dot-separated). Discriminator for the Event union —
1196
+ * see docs/design/api/events-catalog.md.
1197
+ */
1198
+ event_type: string;
1199
+ /** Wide-event category. */
1200
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
1201
+ /** When the action happened (server/storage clock, dialect-owned). */
1202
+ occurred_at: string;
1203
+ /** When the row was inserted (server/storage clock, dialect-owned). */
1204
+ created_at: string;
1205
+ /** Who triggered the event. */
1206
+ actor_id?: string | null;
1207
+ /** Actor kind. */
1208
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
1209
+ /** Resource type affected. */
1210
+ entity_type?: string | null;
1211
+ /** Resource id affected. */
1212
+ entity_id?: string | null;
1213
+ /** Application or agent that produced the event. */
1214
+ client_id: string;
1215
+ /** Token id present at emit time, when any. */
1216
+ token_id?: string;
1217
+ /** Delegation kind (omit when unset). */
1218
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
1219
+ delegation_id?: string;
1220
+ grantor?: string;
1221
+ /** Device fingerprint correlation id. */
1222
+ fingerprint?: string;
1223
+ /** HTTP request correlation id. */
1224
+ request_id?: string | null;
1225
+ /** Session correlation id. */
1226
+ session_id?: string | null;
1227
+ /** Login flow correlation id. */
1228
+ flow_id?: string | null;
1229
+ /**
1230
+ * Emit-time metadata, already redacted at write. Path A request.api may
1231
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1232
+ * live risk-evaluator input.
1233
+ */
1234
+ metadata?: {
1235
+ /** Observed HTTP requestor context on Path A request.api only. */
1236
+ client?: {
1237
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1238
+ ip?: string;
1239
+ /** Observed User-Agent header. */
1240
+ user_agent?: string;
1241
+ /** Origin header when present. */
1242
+ origin?: string;
1243
+ };
1244
+ [key: string]: unknown;
1245
+ };
1246
+ }) & {
1247
+ event_type: 'flowdef.deleted';
1248
+ /**
1249
+ * Empty payload for event types with no typed fields
1250
+ * (e.g. `project.deleted`, `user.deleted`, `session.expired`).
1251
+ */
1252
+ payload: { [key: string]: unknown };
1253
+ } | ({
1254
+ /** Managed event id (`evt_<opaque>`). */
1255
+ id: string;
1256
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
1257
+ project_id: string;
1258
+ /** Emit-time team scope, when the actor operated under a team. */
1259
+ team_id?: string | null;
1260
+ /**
1261
+ * Semantic event name (dot-separated). Discriminator for the Event union —
1262
+ * see docs/design/api/events-catalog.md.
1263
+ */
1264
+ event_type: string;
1265
+ /** Wide-event category. */
1266
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
1267
+ /** When the action happened (server/storage clock, dialect-owned). */
1268
+ occurred_at: string;
1269
+ /** When the row was inserted (server/storage clock, dialect-owned). */
1270
+ created_at: string;
1271
+ /** Who triggered the event. */
1272
+ actor_id?: string | null;
1273
+ /** Actor kind. */
1274
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
1275
+ /** Resource type affected. */
1276
+ entity_type?: string | null;
1277
+ /** Resource id affected. */
1278
+ entity_id?: string | null;
1279
+ /** Application or agent that produced the event. */
1280
+ client_id: string;
1281
+ /** Token id present at emit time, when any. */
1282
+ token_id?: string;
1283
+ /** Delegation kind (omit when unset). */
1284
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
1285
+ delegation_id?: string;
1286
+ grantor?: string;
1287
+ /** Device fingerprint correlation id. */
1288
+ fingerprint?: string;
1289
+ /** HTTP request correlation id. */
1290
+ request_id?: string | null;
1291
+ /** Session correlation id. */
1292
+ session_id?: string | null;
1293
+ /** Login flow correlation id. */
1294
+ flow_id?: string | null;
1295
+ /**
1296
+ * Emit-time metadata, already redacted at write. Path A request.api may
1297
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1298
+ * live risk-evaluator input.
1299
+ */
1300
+ metadata?: {
1301
+ /** Observed HTTP requestor context on Path A request.api only. */
1302
+ client?: {
1303
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1304
+ ip?: string;
1305
+ /** Observed User-Agent header. */
1306
+ user_agent?: string;
1307
+ /** Origin header when present. */
1308
+ origin?: string;
1309
+ };
1310
+ [key: string]: unknown;
1311
+ };
1312
+ }) & {
1313
+ event_type: 'flowdef.updated';
1314
+ /**
1315
+ * Allowlisted fields of the created revision. Retired `flowdef.updated`
1316
+ * rows carry a delta in the same shape. Steps are omitted.
1317
+ */
1318
+ payload: {
1319
+ name?: string;
1320
+ status?: string;
1321
+ user_schema?: string;
1322
+ purposes?: {[key: string]: string};
1323
+ audience?: {
1324
+ app_ids?: string[];
1325
+ team_ids?: string[];
1326
+ };
1327
+ };
1328
+ } | ({
1329
+ /** Managed event id (`evt_<opaque>`). */
1330
+ id: string;
1331
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
1332
+ project_id: string;
1333
+ /** Emit-time team scope, when the actor operated under a team. */
1334
+ team_id?: string | null;
1335
+ /**
1336
+ * Semantic event name (dot-separated). Discriminator for the Event union —
1337
+ * see docs/design/api/events-catalog.md.
1338
+ */
1339
+ event_type: string;
1340
+ /** Wide-event category. */
1341
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
1342
+ /** When the action happened (server/storage clock, dialect-owned). */
1343
+ occurred_at: string;
1344
+ /** When the row was inserted (server/storage clock, dialect-owned). */
1345
+ created_at: string;
1346
+ /** Who triggered the event. */
1347
+ actor_id?: string | null;
1348
+ /** Actor kind. */
1349
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
1350
+ /** Resource type affected. */
1351
+ entity_type?: string | null;
1352
+ /** Resource id affected. */
1353
+ entity_id?: string | null;
1354
+ /** Application or agent that produced the event. */
1355
+ client_id: string;
1356
+ /** Token id present at emit time, when any. */
1357
+ token_id?: string;
1358
+ /** Delegation kind (omit when unset). */
1359
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
1360
+ delegation_id?: string;
1361
+ grantor?: string;
1362
+ /** Device fingerprint correlation id. */
1363
+ fingerprint?: string;
1364
+ /** HTTP request correlation id. */
1365
+ request_id?: string | null;
1366
+ /** Session correlation id. */
1367
+ session_id?: string | null;
1368
+ /** Login flow correlation id. */
1369
+ flow_id?: string | null;
1370
+ /**
1371
+ * Emit-time metadata, already redacted at write. Path A request.api may
1372
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1373
+ * live risk-evaluator input.
1374
+ */
1375
+ metadata?: {
1376
+ /** Observed HTTP requestor context on Path A request.api only. */
1377
+ client?: {
1378
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1379
+ ip?: string;
1380
+ /** Observed User-Agent header. */
1381
+ user_agent?: string;
1382
+ /** Origin header when present. */
1383
+ origin?: string;
1384
+ };
1385
+ [key: string]: unknown;
1386
+ };
1387
+ }) & {
1388
+ event_type: 'idp.created';
1389
+ /**
1390
+ * Shared allowlisted fields for `idp.created` (snapshot) and `idp.updated`
1391
+ * (delta: only changed fields present, plus the new `revision_id`). The
1392
+ * connection id is the event's `entity_id`. The connection document, and with
1393
+ * it the `client_secret` reference, is never included.
1394
+ */
1395
+ payload: {
1396
+ slug?: string;
1397
+ protocol?: string;
1398
+ /**
1399
+ * The rendering template hint. On `idp.updated`, the empty string means
1400
+ * the revision removed it.
1401
+ */
1402
+ template?: string;
1403
+ display_name?: string;
1404
+ /** The revision the write appended. */
1405
+ revision_id: string;
1406
+ };
1407
+ } | ({
1408
+ /** Managed event id (`evt_<opaque>`). */
1409
+ id: string;
1410
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
1411
+ project_id: string;
1412
+ /** Emit-time team scope, when the actor operated under a team. */
1413
+ team_id?: string | null;
1414
+ /**
1415
+ * Semantic event name (dot-separated). Discriminator for the Event union —
1416
+ * see docs/design/api/events-catalog.md.
1417
+ */
1418
+ event_type: string;
1419
+ /** Wide-event category. */
1420
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
1421
+ /** When the action happened (server/storage clock, dialect-owned). */
1422
+ occurred_at: string;
1423
+ /** When the row was inserted (server/storage clock, dialect-owned). */
1424
+ created_at: string;
1425
+ /** Who triggered the event. */
1426
+ actor_id?: string | null;
1427
+ /** Actor kind. */
1428
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
1429
+ /** Resource type affected. */
1430
+ entity_type?: string | null;
1431
+ /** Resource id affected. */
1432
+ entity_id?: string | null;
1433
+ /** Application or agent that produced the event. */
1434
+ client_id: string;
1435
+ /** Token id present at emit time, when any. */
1436
+ token_id?: string;
1437
+ /** Delegation kind (omit when unset). */
1438
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
1439
+ delegation_id?: string;
1440
+ grantor?: string;
1441
+ /** Device fingerprint correlation id. */
1442
+ fingerprint?: string;
1443
+ /** HTTP request correlation id. */
1444
+ request_id?: string | null;
1445
+ /** Session correlation id. */
1446
+ session_id?: string | null;
1447
+ /** Login flow correlation id. */
1448
+ flow_id?: string | null;
1449
+ /**
1450
+ * Emit-time metadata, already redacted at write. Path A request.api may
1451
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1452
+ * live risk-evaluator input.
1453
+ */
1454
+ metadata?: {
1455
+ /** Observed HTTP requestor context on Path A request.api only. */
1456
+ client?: {
1457
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1458
+ ip?: string;
1459
+ /** Observed User-Agent header. */
1460
+ user_agent?: string;
1461
+ /** Origin header when present. */
1462
+ origin?: string;
1463
+ };
1464
+ [key: string]: unknown;
1465
+ };
1466
+ }) & {
1467
+ event_type: 'idp.identity_link.created';
1468
+ /**
1469
+ * Snapshot for `idp.identity_link.created`, written when a sign-in creates a
1470
+ * user and links the provider account to it. The link id is the event's
1471
+ * `entity_id`. The provider's subject and claims are never included.
1472
+ */
1473
+ payload: {
1474
+ /** The IdP connection the account signed in through. */
1475
+ connection_id: string;
1476
+ /** The user the provider account is linked to. */
1477
+ user_id: string;
1478
+ };
1479
+ } | ({
1480
+ /** Managed event id (`evt_<opaque>`). */
1481
+ id: string;
1482
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
1483
+ project_id: string;
1484
+ /** Emit-time team scope, when the actor operated under a team. */
1485
+ team_id?: string | null;
1486
+ /**
1487
+ * Semantic event name (dot-separated). Discriminator for the Event union —
1488
+ * see docs/design/api/events-catalog.md.
1489
+ */
1490
+ event_type: string;
1491
+ /** Wide-event category. */
1492
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
1493
+ /** When the action happened (server/storage clock, dialect-owned). */
1494
+ occurred_at: string;
1495
+ /** When the row was inserted (server/storage clock, dialect-owned). */
1496
+ created_at: string;
1497
+ /** Who triggered the event. */
1498
+ actor_id?: string | null;
1499
+ /** Actor kind. */
1500
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
1501
+ /** Resource type affected. */
1502
+ entity_type?: string | null;
1503
+ /** Resource id affected. */
1504
+ entity_id?: string | null;
1505
+ /** Application or agent that produced the event. */
1506
+ client_id: string;
1507
+ /** Token id present at emit time, when any. */
1508
+ token_id?: string;
1509
+ /** Delegation kind (omit when unset). */
1510
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
1511
+ delegation_id?: string;
1512
+ grantor?: string;
1513
+ /** Device fingerprint correlation id. */
1514
+ fingerprint?: string;
1515
+ /** HTTP request correlation id. */
1516
+ request_id?: string | null;
1517
+ /** Session correlation id. */
1518
+ session_id?: string | null;
1519
+ /** Login flow correlation id. */
1520
+ flow_id?: string | null;
1521
+ /**
1522
+ * Emit-time metadata, already redacted at write. Path A request.api may
1523
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1524
+ * live risk-evaluator input.
1525
+ */
1526
+ metadata?: {
1527
+ /** Observed HTTP requestor context on Path A request.api only. */
1528
+ client?: {
1529
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1530
+ ip?: string;
1531
+ /** Observed User-Agent header. */
1532
+ user_agent?: string;
1533
+ /** Origin header when present. */
1534
+ origin?: string;
1535
+ };
1536
+ [key: string]: unknown;
1537
+ };
1538
+ }) & {
1539
+ event_type: 'idp.updated';
1540
+ /**
1541
+ * Shared allowlisted fields for `idp.created` (snapshot) and `idp.updated`
1542
+ * (delta: only changed fields present, plus the new `revision_id`). The
1543
+ * connection id is the event's `entity_id`. The connection document, and with
1544
+ * it the `client_secret` reference, is never included.
1545
+ */
1546
+ payload: {
1547
+ slug?: string;
1548
+ protocol?: string;
1549
+ /**
1550
+ * The rendering template hint. On `idp.updated`, the empty string means
1551
+ * the revision removed it.
1552
+ */
1553
+ template?: string;
1554
+ display_name?: string;
1555
+ /** The revision the write appended. */
1556
+ revision_id: string;
1557
+ };
1558
+ } | ({
1559
+ /** Managed event id (`evt_<opaque>`). */
1560
+ id: string;
1561
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
1562
+ project_id: string;
1563
+ /** Emit-time team scope, when the actor operated under a team. */
1564
+ team_id?: string | null;
1565
+ /**
1566
+ * Semantic event name (dot-separated). Discriminator for the Event union —
1567
+ * see docs/design/api/events-catalog.md.
1568
+ */
1569
+ event_type: string;
1570
+ /** Wide-event category. */
1571
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
1572
+ /** When the action happened (server/storage clock, dialect-owned). */
1573
+ occurred_at: string;
1574
+ /** When the row was inserted (server/storage clock, dialect-owned). */
1575
+ created_at: string;
1576
+ /** Who triggered the event. */
1577
+ actor_id?: string | null;
1578
+ /** Actor kind. */
1579
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
1580
+ /** Resource type affected. */
1581
+ entity_type?: string | null;
1582
+ /** Resource id affected. */
1583
+ entity_id?: string | null;
1584
+ /** Application or agent that produced the event. */
1585
+ client_id: string;
1586
+ /** Token id present at emit time, when any. */
1587
+ token_id?: string;
1588
+ /** Delegation kind (omit when unset). */
1589
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
1590
+ delegation_id?: string;
1591
+ grantor?: string;
1592
+ /** Device fingerprint correlation id. */
1593
+ fingerprint?: string;
1594
+ /** HTTP request correlation id. */
1595
+ request_id?: string | null;
1596
+ /** Session correlation id. */
1597
+ session_id?: string | null;
1598
+ /** Login flow correlation id. */
1599
+ flow_id?: string | null;
1600
+ /**
1601
+ * Emit-time metadata, already redacted at write. Path A request.api may
1602
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1603
+ * live risk-evaluator input.
1604
+ */
1605
+ metadata?: {
1606
+ /** Observed HTTP requestor context on Path A request.api only. */
1607
+ client?: {
1608
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1609
+ ip?: string;
1610
+ /** Observed User-Agent header. */
1611
+ user_agent?: string;
1612
+ /** Origin header when present. */
1613
+ origin?: string;
1614
+ };
1615
+ [key: string]: unknown;
1616
+ };
1617
+ }) & {
1618
+ event_type: 'project.created';
1619
+ /**
1620
+ * Shared allowlisted fields for `project.created` (full snapshot) and
1621
+ * `project.updated` (delta: only changed fields present).
1622
+ */
1623
+ payload: {
1624
+ name?: string;
1625
+ preview_origins?: string[];
1626
+ /**
1627
+ * The password hashing algorithm the project switched to. The empty string
1628
+ * means it was handed back to the server default. Absent when the update
1629
+ * did not touch hashing.
1630
+ */
1631
+ password_hash_algorithm?: string;
1632
+ };
1633
+ } | ({
1634
+ /** Managed event id (`evt_<opaque>`). */
1635
+ id: string;
1636
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
1637
+ project_id: string;
1638
+ /** Emit-time team scope, when the actor operated under a team. */
1639
+ team_id?: string | null;
1640
+ /**
1641
+ * Semantic event name (dot-separated). Discriminator for the Event union —
1642
+ * see docs/design/api/events-catalog.md.
1643
+ */
1644
+ event_type: string;
1645
+ /** Wide-event category. */
1646
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
1647
+ /** When the action happened (server/storage clock, dialect-owned). */
1648
+ occurred_at: string;
1649
+ /** When the row was inserted (server/storage clock, dialect-owned). */
1650
+ created_at: string;
1651
+ /** Who triggered the event. */
1652
+ actor_id?: string | null;
1653
+ /** Actor kind. */
1654
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
1655
+ /** Resource type affected. */
1656
+ entity_type?: string | null;
1657
+ /** Resource id affected. */
1658
+ entity_id?: string | null;
1659
+ /** Application or agent that produced the event. */
1660
+ client_id: string;
1661
+ /** Token id present at emit time, when any. */
1662
+ token_id?: string;
1663
+ /** Delegation kind (omit when unset). */
1664
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
1665
+ delegation_id?: string;
1666
+ grantor?: string;
1667
+ /** Device fingerprint correlation id. */
1668
+ fingerprint?: string;
1669
+ /** HTTP request correlation id. */
1670
+ request_id?: string | null;
1671
+ /** Session correlation id. */
1672
+ session_id?: string | null;
1673
+ /** Login flow correlation id. */
1674
+ flow_id?: string | null;
1675
+ /**
1676
+ * Emit-time metadata, already redacted at write. Path A request.api may
1677
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1678
+ * live risk-evaluator input.
1679
+ */
1680
+ metadata?: {
1681
+ /** Observed HTTP requestor context on Path A request.api only. */
1682
+ client?: {
1683
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1684
+ ip?: string;
1685
+ /** Observed User-Agent header. */
1686
+ user_agent?: string;
1687
+ /** Origin header when present. */
1688
+ origin?: string;
1689
+ };
1690
+ [key: string]: unknown;
1691
+ };
1692
+ }) & {
1693
+ event_type: 'project.deleted';
1694
+ /**
1695
+ * Empty payload for event types with no typed fields
1696
+ * (e.g. `project.deleted`, `user.deleted`, `session.expired`).
1697
+ */
1698
+ payload: { [key: string]: unknown };
1699
+ } | ({
1700
+ /** Managed event id (`evt_<opaque>`). */
1701
+ id: string;
1702
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
1703
+ project_id: string;
1704
+ /** Emit-time team scope, when the actor operated under a team. */
1705
+ team_id?: string | null;
1706
+ /**
1707
+ * Semantic event name (dot-separated). Discriminator for the Event union —
1708
+ * see docs/design/api/events-catalog.md.
1709
+ */
1710
+ event_type: string;
1711
+ /** Wide-event category. */
1712
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
1713
+ /** When the action happened (server/storage clock, dialect-owned). */
1714
+ occurred_at: string;
1715
+ /** When the row was inserted (server/storage clock, dialect-owned). */
1716
+ created_at: string;
1717
+ /** Who triggered the event. */
1718
+ actor_id?: string | null;
1719
+ /** Actor kind. */
1720
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
1721
+ /** Resource type affected. */
1722
+ entity_type?: string | null;
1723
+ /** Resource id affected. */
1724
+ entity_id?: string | null;
1725
+ /** Application or agent that produced the event. */
1726
+ client_id: string;
1727
+ /** Token id present at emit time, when any. */
1728
+ token_id?: string;
1729
+ /** Delegation kind (omit when unset). */
1730
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
1731
+ delegation_id?: string;
1732
+ grantor?: string;
1733
+ /** Device fingerprint correlation id. */
1734
+ fingerprint?: string;
1735
+ /** HTTP request correlation id. */
1736
+ request_id?: string | null;
1737
+ /** Session correlation id. */
1738
+ session_id?: string | null;
1739
+ /** Login flow correlation id. */
1740
+ flow_id?: string | null;
1741
+ /**
1742
+ * Emit-time metadata, already redacted at write. Path A request.api may
1743
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1744
+ * live risk-evaluator input.
1745
+ */
1746
+ metadata?: {
1747
+ /** Observed HTTP requestor context on Path A request.api only. */
1748
+ client?: {
1749
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1750
+ ip?: string;
1751
+ /** Observed User-Agent header. */
1752
+ user_agent?: string;
1753
+ /** Origin header when present. */
1754
+ origin?: string;
1755
+ };
1756
+ [key: string]: unknown;
1757
+ };
1758
+ }) & {
1759
+ event_type: 'project.updated';
1760
+ /**
1761
+ * Shared allowlisted fields for `project.created` (full snapshot) and
1762
+ * `project.updated` (delta: only changed fields present).
1763
+ */
1764
+ payload: {
1765
+ name?: string;
1766
+ preview_origins?: string[];
1767
+ /**
1768
+ * The password hashing algorithm the project switched to. The empty string
1769
+ * means it was handed back to the server default. Absent when the update
1770
+ * did not touch hashing.
1771
+ */
1772
+ password_hash_algorithm?: string;
1773
+ };
1774
+ } | ({
1775
+ /** Managed event id (`evt_<opaque>`). */
1776
+ id: string;
1777
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
1778
+ project_id: string;
1779
+ /** Emit-time team scope, when the actor operated under a team. */
1780
+ team_id?: string | null;
1781
+ /**
1782
+ * Semantic event name (dot-separated). Discriminator for the Event union —
1783
+ * see docs/design/api/events-catalog.md.
1784
+ */
1785
+ event_type: string;
1786
+ /** Wide-event category. */
1787
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
1788
+ /** When the action happened (server/storage clock, dialect-owned). */
1789
+ occurred_at: string;
1790
+ /** When the row was inserted (server/storage clock, dialect-owned). */
1791
+ created_at: string;
1792
+ /** Who triggered the event. */
1793
+ actor_id?: string | null;
1794
+ /** Actor kind. */
1795
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
1796
+ /** Resource type affected. */
1797
+ entity_type?: string | null;
1798
+ /** Resource id affected. */
1799
+ entity_id?: string | null;
1800
+ /** Application or agent that produced the event. */
1801
+ client_id: string;
1802
+ /** Token id present at emit time, when any. */
1803
+ token_id?: string;
1804
+ /** Delegation kind (omit when unset). */
1805
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
1806
+ delegation_id?: string;
1807
+ grantor?: string;
1808
+ /** Device fingerprint correlation id. */
1809
+ fingerprint?: string;
1810
+ /** HTTP request correlation id. */
1811
+ request_id?: string | null;
1812
+ /** Session correlation id. */
1813
+ session_id?: string | null;
1814
+ /** Login flow correlation id. */
1815
+ flow_id?: string | null;
1816
+ /**
1817
+ * Emit-time metadata, already redacted at write. Path A request.api may
1818
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1819
+ * live risk-evaluator input.
1820
+ */
1821
+ metadata?: {
1822
+ /** Observed HTTP requestor context on Path A request.api only. */
1823
+ client?: {
1824
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1825
+ ip?: string;
1826
+ /** Observed User-Agent header. */
1827
+ user_agent?: string;
1828
+ /** Origin header when present. */
1829
+ origin?: string;
1830
+ };
1831
+ [key: string]: unknown;
1832
+ };
1833
+ }) & {
1834
+ event_type: 'release.created';
1835
+ /**
1836
+ * Allowlisted fields for `release.created`. The release id is already the
1837
+ * event's `entity_id`; the pinned set is repeated here so the audit stream
1838
+ * answers what a release contained without reading the release itself.
1839
+ */
1840
+ payload: {
1841
+ content_hash?: string;
1842
+ message?: string;
1843
+ git_sha?: string;
1844
+ git_dirty?: boolean;
1845
+ pointers?: {
1846
+ kind?: string;
1847
+ handle?: string;
1848
+ revision_id?: string;
1849
+ }[];
1850
+ };
1851
+ } | ({
1852
+ /** Managed event id (`evt_<opaque>`). */
1853
+ id: string;
1854
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
1855
+ project_id: string;
1856
+ /** Emit-time team scope, when the actor operated under a team. */
1857
+ team_id?: string | null;
1858
+ /**
1859
+ * Semantic event name (dot-separated). Discriminator for the Event union —
1860
+ * see docs/design/api/events-catalog.md.
1861
+ */
1862
+ event_type: string;
1863
+ /** Wide-event category. */
1864
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
1865
+ /** When the action happened (server/storage clock, dialect-owned). */
1866
+ occurred_at: string;
1867
+ /** When the row was inserted (server/storage clock, dialect-owned). */
1868
+ created_at: string;
1869
+ /** Who triggered the event. */
1870
+ actor_id?: string | null;
1871
+ /** Actor kind. */
1872
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
1873
+ /** Resource type affected. */
1874
+ entity_type?: string | null;
1875
+ /** Resource id affected. */
1876
+ entity_id?: string | null;
1877
+ /** Application or agent that produced the event. */
1878
+ client_id: string;
1879
+ /** Token id present at emit time, when any. */
1880
+ token_id?: string;
1881
+ /** Delegation kind (omit when unset). */
1882
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
1883
+ delegation_id?: string;
1884
+ grantor?: string;
1885
+ /** Device fingerprint correlation id. */
1886
+ fingerprint?: string;
1887
+ /** HTTP request correlation id. */
1888
+ request_id?: string | null;
1889
+ /** Session correlation id. */
1890
+ session_id?: string | null;
1891
+ /** Login flow correlation id. */
1892
+ flow_id?: string | null;
1893
+ /**
1894
+ * Emit-time metadata, already redacted at write. Path A request.api may
1895
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1896
+ * live risk-evaluator input.
1897
+ */
1898
+ metadata?: {
1899
+ /** Observed HTTP requestor context on Path A request.api only. */
1900
+ client?: {
1901
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1902
+ ip?: string;
1903
+ /** Observed User-Agent header. */
1904
+ user_agent?: string;
1905
+ /** Origin header when present. */
1906
+ origin?: string;
1907
+ };
1908
+ [key: string]: unknown;
1909
+ };
1910
+ }) & ({
1911
+ event_type: 'request.api';
1912
+ /** Payload for `request.api` events. */
1913
+ payload: {
1914
+ operation_id: string;
1915
+ /** HTTP method. */
1916
+ method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';
1917
+ route_template: string;
1918
+ /**
1919
+ * @minimum 100
1920
+ * @maximum 599
1921
+ */
1922
+ status: number;
1923
+ /** @minimum 0 */
1924
+ duration_ms: number;
1925
+ };
1926
+ }) | ({
1927
+ /** Managed event id (`evt_<opaque>`). */
1928
+ id: string;
1929
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
1930
+ project_id: string;
1931
+ /** Emit-time team scope, when the actor operated under a team. */
1932
+ team_id?: string | null;
1933
+ /**
1934
+ * Semantic event name (dot-separated). Discriminator for the Event union —
1935
+ * see docs/design/api/events-catalog.md.
1936
+ */
1937
+ event_type: string;
1938
+ /** Wide-event category. */
1939
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
1940
+ /** When the action happened (server/storage clock, dialect-owned). */
1941
+ occurred_at: string;
1942
+ /** When the row was inserted (server/storage clock, dialect-owned). */
1943
+ created_at: string;
1944
+ /** Who triggered the event. */
1945
+ actor_id?: string | null;
1946
+ /** Actor kind. */
1947
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
1948
+ /** Resource type affected. */
1949
+ entity_type?: string | null;
1950
+ /** Resource id affected. */
1951
+ entity_id?: string | null;
1952
+ /** Application or agent that produced the event. */
1953
+ client_id: string;
1954
+ /** Token id present at emit time, when any. */
1955
+ token_id?: string;
1956
+ /** Delegation kind (omit when unset). */
1957
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
1958
+ delegation_id?: string;
1959
+ grantor?: string;
1960
+ /** Device fingerprint correlation id. */
1961
+ fingerprint?: string;
1962
+ /** HTTP request correlation id. */
1963
+ request_id?: string | null;
1964
+ /** Session correlation id. */
1965
+ session_id?: string | null;
1966
+ /** Login flow correlation id. */
1967
+ flow_id?: string | null;
1968
+ /**
1969
+ * Emit-time metadata, already redacted at write. Path A request.api may
1970
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
1971
+ * live risk-evaluator input.
1972
+ */
1973
+ metadata?: {
1974
+ /** Observed HTTP requestor context on Path A request.api only. */
1975
+ client?: {
1976
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
1977
+ ip?: string;
1978
+ /** Observed User-Agent header. */
1979
+ user_agent?: string;
1980
+ /** Origin header when present. */
1981
+ origin?: string;
1982
+ };
1983
+ [key: string]: unknown;
1984
+ };
1985
+ }) & {
1986
+ event_type: 'schema.created';
1987
+ /**
1988
+ * Allowlisted fields for `schema.created`. The schema document itself is
1989
+ * omitted — it is customer-authored and unbounded, and the event's `entity_id`
1990
+ * already identifies which schema was created.
1991
+ */
1992
+ payload: {
1993
+ /**
1994
+ * The kind the stored document declares. `unknown` when the schema was
1995
+ * persisted without its document being parsed.
1996
+ */
1997
+ kind?: string;
1998
+ /**
1999
+ * The customer-chosen object type the schema describes. Absent when the
2000
+ * document declares none.
2001
+ */
2002
+ object_type?: string;
2003
+ };
2004
+ } | ({
2005
+ /** Managed event id (`evt_<opaque>`). */
2006
+ id: string;
2007
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
2008
+ project_id: string;
2009
+ /** Emit-time team scope, when the actor operated under a team. */
2010
+ team_id?: string | null;
2011
+ /**
2012
+ * Semantic event name (dot-separated). Discriminator for the Event union —
2013
+ * see docs/design/api/events-catalog.md.
2014
+ */
2015
+ event_type: string;
2016
+ /** Wide-event category. */
2017
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
2018
+ /** When the action happened (server/storage clock, dialect-owned). */
2019
+ occurred_at: string;
2020
+ /** When the row was inserted (server/storage clock, dialect-owned). */
2021
+ created_at: string;
2022
+ /** Who triggered the event. */
2023
+ actor_id?: string | null;
2024
+ /** Actor kind. */
2025
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
2026
+ /** Resource type affected. */
2027
+ entity_type?: string | null;
2028
+ /** Resource id affected. */
2029
+ entity_id?: string | null;
2030
+ /** Application or agent that produced the event. */
2031
+ client_id: string;
2032
+ /** Token id present at emit time, when any. */
2033
+ token_id?: string;
2034
+ /** Delegation kind (omit when unset). */
2035
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
2036
+ delegation_id?: string;
2037
+ grantor?: string;
2038
+ /** Device fingerprint correlation id. */
2039
+ fingerprint?: string;
2040
+ /** HTTP request correlation id. */
2041
+ request_id?: string | null;
2042
+ /** Session correlation id. */
2043
+ session_id?: string | null;
2044
+ /** Login flow correlation id. */
2045
+ flow_id?: string | null;
2046
+ /**
2047
+ * Emit-time metadata, already redacted at write. Path A request.api may
2048
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
2049
+ * live risk-evaluator input.
2050
+ */
2051
+ metadata?: {
2052
+ /** Observed HTTP requestor context on Path A request.api only. */
2053
+ client?: {
2054
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
2055
+ ip?: string;
2056
+ /** Observed User-Agent header. */
2057
+ user_agent?: string;
2058
+ /** Origin header when present. */
2059
+ origin?: string;
2060
+ };
2061
+ [key: string]: unknown;
2062
+ };
2063
+ }) & {
2064
+ event_type: 'session.deleted';
2065
+ /** Payload for `session.deleted` events. */
2066
+ payload: {
2067
+ reason?: string;
2068
+ };
2069
+ } | ({
2070
+ /** Managed event id (`evt_<opaque>`). */
2071
+ id: string;
2072
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
2073
+ project_id: string;
2074
+ /** Emit-time team scope, when the actor operated under a team. */
2075
+ team_id?: string | null;
2076
+ /**
2077
+ * Semantic event name (dot-separated). Discriminator for the Event union —
2078
+ * see docs/design/api/events-catalog.md.
2079
+ */
2080
+ event_type: string;
2081
+ /** Wide-event category. */
2082
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
2083
+ /** When the action happened (server/storage clock, dialect-owned). */
2084
+ occurred_at: string;
2085
+ /** When the row was inserted (server/storage clock, dialect-owned). */
2086
+ created_at: string;
2087
+ /** Who triggered the event. */
2088
+ actor_id?: string | null;
2089
+ /** Actor kind. */
2090
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
2091
+ /** Resource type affected. */
2092
+ entity_type?: string | null;
2093
+ /** Resource id affected. */
2094
+ entity_id?: string | null;
2095
+ /** Application or agent that produced the event. */
2096
+ client_id: string;
2097
+ /** Token id present at emit time, when any. */
2098
+ token_id?: string;
2099
+ /** Delegation kind (omit when unset). */
2100
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
2101
+ delegation_id?: string;
2102
+ grantor?: string;
2103
+ /** Device fingerprint correlation id. */
2104
+ fingerprint?: string;
2105
+ /** HTTP request correlation id. */
2106
+ request_id?: string | null;
2107
+ /** Session correlation id. */
2108
+ session_id?: string | null;
2109
+ /** Login flow correlation id. */
2110
+ flow_id?: string | null;
2111
+ /**
2112
+ * Emit-time metadata, already redacted at write. Path A request.api may
2113
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
2114
+ * live risk-evaluator input.
2115
+ */
2116
+ metadata?: {
2117
+ /** Observed HTTP requestor context on Path A request.api only. */
2118
+ client?: {
2119
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
2120
+ ip?: string;
2121
+ /** Observed User-Agent header. */
2122
+ user_agent?: string;
2123
+ /** Origin header when present. */
2124
+ origin?: string;
2125
+ };
2126
+ [key: string]: unknown;
2127
+ };
2128
+ }) & {
2129
+ event_type: 'session.established';
2130
+ /** Payload for `session.established` events. */
2131
+ payload: {
2132
+ user_id?: string;
2133
+ };
2134
+ } | ({
2135
+ /** Managed event id (`evt_<opaque>`). */
2136
+ id: string;
2137
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
2138
+ project_id: string;
2139
+ /** Emit-time team scope, when the actor operated under a team. */
2140
+ team_id?: string | null;
2141
+ /**
2142
+ * Semantic event name (dot-separated). Discriminator for the Event union —
2143
+ * see docs/design/api/events-catalog.md.
2144
+ */
2145
+ event_type: string;
2146
+ /** Wide-event category. */
2147
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
2148
+ /** When the action happened (server/storage clock, dialect-owned). */
2149
+ occurred_at: string;
2150
+ /** When the row was inserted (server/storage clock, dialect-owned). */
2151
+ created_at: string;
2152
+ /** Who triggered the event. */
2153
+ actor_id?: string | null;
2154
+ /** Actor kind. */
2155
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
2156
+ /** Resource type affected. */
2157
+ entity_type?: string | null;
2158
+ /** Resource id affected. */
2159
+ entity_id?: string | null;
2160
+ /** Application or agent that produced the event. */
2161
+ client_id: string;
2162
+ /** Token id present at emit time, when any. */
2163
+ token_id?: string;
2164
+ /** Delegation kind (omit when unset). */
2165
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
2166
+ delegation_id?: string;
2167
+ grantor?: string;
2168
+ /** Device fingerprint correlation id. */
2169
+ fingerprint?: string;
2170
+ /** HTTP request correlation id. */
2171
+ request_id?: string | null;
2172
+ /** Session correlation id. */
2173
+ session_id?: string | null;
2174
+ /** Login flow correlation id. */
2175
+ flow_id?: string | null;
2176
+ /**
2177
+ * Emit-time metadata, already redacted at write. Path A request.api may
2178
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
2179
+ * live risk-evaluator input.
2180
+ */
2181
+ metadata?: {
2182
+ /** Observed HTTP requestor context on Path A request.api only. */
2183
+ client?: {
2184
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
2185
+ ip?: string;
2186
+ /** Observed User-Agent header. */
2187
+ user_agent?: string;
2188
+ /** Origin header when present. */
2189
+ origin?: string;
2190
+ };
2191
+ [key: string]: unknown;
2192
+ };
2193
+ }) & {
2194
+ event_type: 'team.created';
2195
+ /**
2196
+ * Shared allowlisted fields for `team.created` (snapshot) and
2197
+ * `team.updated` (delta: only changed fields present).
2198
+ */
2199
+ payload: {
2200
+ name?: string;
2201
+ };
2202
+ } | ({
2203
+ /** Managed event id (`evt_<opaque>`). */
2204
+ id: string;
2205
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
2206
+ project_id: string;
2207
+ /** Emit-time team scope, when the actor operated under a team. */
2208
+ team_id?: string | null;
2209
+ /**
2210
+ * Semantic event name (dot-separated). Discriminator for the Event union —
2211
+ * see docs/design/api/events-catalog.md.
2212
+ */
2213
+ event_type: string;
2214
+ /** Wide-event category. */
2215
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
2216
+ /** When the action happened (server/storage clock, dialect-owned). */
2217
+ occurred_at: string;
2218
+ /** When the row was inserted (server/storage clock, dialect-owned). */
2219
+ created_at: string;
2220
+ /** Who triggered the event. */
2221
+ actor_id?: string | null;
2222
+ /** Actor kind. */
2223
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
2224
+ /** Resource type affected. */
2225
+ entity_type?: string | null;
2226
+ /** Resource id affected. */
2227
+ entity_id?: string | null;
2228
+ /** Application or agent that produced the event. */
2229
+ client_id: string;
2230
+ /** Token id present at emit time, when any. */
2231
+ token_id?: string;
2232
+ /** Delegation kind (omit when unset). */
2233
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
2234
+ delegation_id?: string;
2235
+ grantor?: string;
2236
+ /** Device fingerprint correlation id. */
2237
+ fingerprint?: string;
2238
+ /** HTTP request correlation id. */
2239
+ request_id?: string | null;
2240
+ /** Session correlation id. */
2241
+ session_id?: string | null;
2242
+ /** Login flow correlation id. */
2243
+ flow_id?: string | null;
2244
+ /**
2245
+ * Emit-time metadata, already redacted at write. Path A request.api may
2246
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
2247
+ * live risk-evaluator input.
2248
+ */
2249
+ metadata?: {
2250
+ /** Observed HTTP requestor context on Path A request.api only. */
2251
+ client?: {
2252
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
2253
+ ip?: string;
2254
+ /** Observed User-Agent header. */
2255
+ user_agent?: string;
2256
+ /** Origin header when present. */
2257
+ origin?: string;
2258
+ };
2259
+ [key: string]: unknown;
2260
+ };
2261
+ }) & {
2262
+ event_type: 'team.deactivated';
2263
+ /**
2264
+ * Empty payload for event types with no typed fields
2265
+ * (e.g. `project.deleted`, `user.deleted`, `session.expired`).
2266
+ */
2267
+ payload: { [key: string]: unknown };
2268
+ } | ({
2269
+ /** Managed event id (`evt_<opaque>`). */
2270
+ id: string;
2271
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
2272
+ project_id: string;
2273
+ /** Emit-time team scope, when the actor operated under a team. */
2274
+ team_id?: string | null;
2275
+ /**
2276
+ * Semantic event name (dot-separated). Discriminator for the Event union —
2277
+ * see docs/design/api/events-catalog.md.
2278
+ */
2279
+ event_type: string;
2280
+ /** Wide-event category. */
2281
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
2282
+ /** When the action happened (server/storage clock, dialect-owned). */
2283
+ occurred_at: string;
2284
+ /** When the row was inserted (server/storage clock, dialect-owned). */
2285
+ created_at: string;
2286
+ /** Who triggered the event. */
2287
+ actor_id?: string | null;
2288
+ /** Actor kind. */
2289
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
2290
+ /** Resource type affected. */
2291
+ entity_type?: string | null;
2292
+ /** Resource id affected. */
2293
+ entity_id?: string | null;
2294
+ /** Application or agent that produced the event. */
2295
+ client_id: string;
2296
+ /** Token id present at emit time, when any. */
2297
+ token_id?: string;
2298
+ /** Delegation kind (omit when unset). */
2299
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
2300
+ delegation_id?: string;
2301
+ grantor?: string;
2302
+ /** Device fingerprint correlation id. */
2303
+ fingerprint?: string;
2304
+ /** HTTP request correlation id. */
2305
+ request_id?: string | null;
2306
+ /** Session correlation id. */
2307
+ session_id?: string | null;
2308
+ /** Login flow correlation id. */
2309
+ flow_id?: string | null;
2310
+ /**
2311
+ * Emit-time metadata, already redacted at write. Path A request.api may
2312
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
2313
+ * live risk-evaluator input.
2314
+ */
2315
+ metadata?: {
2316
+ /** Observed HTTP requestor context on Path A request.api only. */
2317
+ client?: {
2318
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
2319
+ ip?: string;
2320
+ /** Observed User-Agent header. */
2321
+ user_agent?: string;
2322
+ /** Origin header when present. */
2323
+ origin?: string;
2324
+ };
2325
+ [key: string]: unknown;
2326
+ };
2327
+ }) & {
2328
+ event_type: 'team.updated';
2329
+ /**
2330
+ * Shared allowlisted fields for `team.created` (snapshot) and
2331
+ * `team.updated` (delta: only changed fields present).
2332
+ */
2333
+ payload: {
2334
+ name?: string;
2335
+ };
2336
+ } | ({
2337
+ /** Managed event id (`evt_<opaque>`). */
2338
+ id: string;
2339
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
2340
+ project_id: string;
2341
+ /** Emit-time team scope, when the actor operated under a team. */
2342
+ team_id?: string | null;
2343
+ /**
2344
+ * Semantic event name (dot-separated). Discriminator for the Event union —
2345
+ * see docs/design/api/events-catalog.md.
2346
+ */
2347
+ event_type: string;
2348
+ /** Wide-event category. */
2349
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
2350
+ /** When the action happened (server/storage clock, dialect-owned). */
2351
+ occurred_at: string;
2352
+ /** When the row was inserted (server/storage clock, dialect-owned). */
2353
+ created_at: string;
2354
+ /** Who triggered the event. */
2355
+ actor_id?: string | null;
2356
+ /** Actor kind. */
2357
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
2358
+ /** Resource type affected. */
2359
+ entity_type?: string | null;
2360
+ /** Resource id affected. */
2361
+ entity_id?: string | null;
2362
+ /** Application or agent that produced the event. */
2363
+ client_id: string;
2364
+ /** Token id present at emit time, when any. */
2365
+ token_id?: string;
2366
+ /** Delegation kind (omit when unset). */
2367
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
2368
+ delegation_id?: string;
2369
+ grantor?: string;
2370
+ /** Device fingerprint correlation id. */
2371
+ fingerprint?: string;
2372
+ /** HTTP request correlation id. */
2373
+ request_id?: string | null;
2374
+ /** Session correlation id. */
2375
+ session_id?: string | null;
2376
+ /** Login flow correlation id. */
2377
+ flow_id?: string | null;
2378
+ /**
2379
+ * Emit-time metadata, already redacted at write. Path A request.api may
2380
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
2381
+ * live risk-evaluator input.
2382
+ */
2383
+ metadata?: {
2384
+ /** Observed HTTP requestor context on Path A request.api only. */
2385
+ client?: {
2386
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
2387
+ ip?: string;
2388
+ /** Observed User-Agent header. */
2389
+ user_agent?: string;
2390
+ /** Origin header when present. */
2391
+ origin?: string;
2392
+ };
2393
+ [key: string]: unknown;
2394
+ };
2395
+ }) & {
2396
+ event_type: 'user.create.failed';
2397
+ /** Payload for `user.create.failed` events. */
2398
+ payload: {
2399
+ key_name?: string;
2400
+ };
2401
+ } | ({
2402
+ /** Managed event id (`evt_<opaque>`). */
2403
+ id: string;
2404
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
2405
+ project_id: string;
2406
+ /** Emit-time team scope, when the actor operated under a team. */
2407
+ team_id?: string | null;
2408
+ /**
2409
+ * Semantic event name (dot-separated). Discriminator for the Event union —
2410
+ * see docs/design/api/events-catalog.md.
2411
+ */
2412
+ event_type: string;
2413
+ /** Wide-event category. */
2414
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
2415
+ /** When the action happened (server/storage clock, dialect-owned). */
2416
+ occurred_at: string;
2417
+ /** When the row was inserted (server/storage clock, dialect-owned). */
2418
+ created_at: string;
2419
+ /** Who triggered the event. */
2420
+ actor_id?: string | null;
2421
+ /** Actor kind. */
2422
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
2423
+ /** Resource type affected. */
2424
+ entity_type?: string | null;
2425
+ /** Resource id affected. */
2426
+ entity_id?: string | null;
2427
+ /** Application or agent that produced the event. */
2428
+ client_id: string;
2429
+ /** Token id present at emit time, when any. */
2430
+ token_id?: string;
2431
+ /** Delegation kind (omit when unset). */
2432
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
2433
+ delegation_id?: string;
2434
+ grantor?: string;
2435
+ /** Device fingerprint correlation id. */
2436
+ fingerprint?: string;
2437
+ /** HTTP request correlation id. */
2438
+ request_id?: string | null;
2439
+ /** Session correlation id. */
2440
+ session_id?: string | null;
2441
+ /** Login flow correlation id. */
2442
+ flow_id?: string | null;
2443
+ /**
2444
+ * Emit-time metadata, already redacted at write. Path A request.api may
2445
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
2446
+ * live risk-evaluator input.
2447
+ */
2448
+ metadata?: {
2449
+ /** Observed HTTP requestor context on Path A request.api only. */
2450
+ client?: {
2451
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
2452
+ ip?: string;
2453
+ /** Observed User-Agent header. */
2454
+ user_agent?: string;
2455
+ /** Origin header when present. */
2456
+ origin?: string;
2457
+ };
2458
+ [key: string]: unknown;
2459
+ };
2460
+ }) & {
2461
+ event_type: 'user.created';
2462
+ /**
2463
+ * Payload for `user.created`. Identity is `entity_id`; attribute values
2464
+ * appear only for schema fields marked `x-audit`.
2465
+ */
2466
+ payload: {
2467
+ schema_id?: string;
2468
+ attribute_keys?: string[];
2469
+ attributes?: { [key: string]: unknown };
2470
+ };
2471
+ } | ({
2472
+ /** Managed event id (`evt_<opaque>`). */
2473
+ id: string;
2474
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
2475
+ project_id: string;
2476
+ /** Emit-time team scope, when the actor operated under a team. */
2477
+ team_id?: string | null;
2478
+ /**
2479
+ * Semantic event name (dot-separated). Discriminator for the Event union —
2480
+ * see docs/design/api/events-catalog.md.
2481
+ */
2482
+ event_type: string;
2483
+ /** Wide-event category. */
2484
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
2485
+ /** When the action happened (server/storage clock, dialect-owned). */
2486
+ occurred_at: string;
2487
+ /** When the row was inserted (server/storage clock, dialect-owned). */
2488
+ created_at: string;
2489
+ /** Who triggered the event. */
2490
+ actor_id?: string | null;
2491
+ /** Actor kind. */
2492
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
2493
+ /** Resource type affected. */
2494
+ entity_type?: string | null;
2495
+ /** Resource id affected. */
2496
+ entity_id?: string | null;
2497
+ /** Application or agent that produced the event. */
2498
+ client_id: string;
2499
+ /** Token id present at emit time, when any. */
2500
+ token_id?: string;
2501
+ /** Delegation kind (omit when unset). */
2502
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
2503
+ delegation_id?: string;
2504
+ grantor?: string;
2505
+ /** Device fingerprint correlation id. */
2506
+ fingerprint?: string;
2507
+ /** HTTP request correlation id. */
2508
+ request_id?: string | null;
2509
+ /** Session correlation id. */
2510
+ session_id?: string | null;
2511
+ /** Login flow correlation id. */
2512
+ flow_id?: string | null;
2513
+ /**
2514
+ * Emit-time metadata, already redacted at write. Path A request.api may
2515
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
2516
+ * live risk-evaluator input.
2517
+ */
2518
+ metadata?: {
2519
+ /** Observed HTTP requestor context on Path A request.api only. */
2520
+ client?: {
2521
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
2522
+ ip?: string;
2523
+ /** Observed User-Agent header. */
2524
+ user_agent?: string;
2525
+ /** Origin header when present. */
2526
+ origin?: string;
2527
+ };
2528
+ [key: string]: unknown;
2529
+ };
2530
+ }) & {
2531
+ event_type: 'user.deleted';
2532
+ /**
2533
+ * Empty payload for event types with no typed fields
2534
+ * (e.g. `project.deleted`, `user.deleted`, `session.expired`).
2535
+ */
2536
+ payload: { [key: string]: unknown };
2537
+ } | ({
2538
+ /** Managed event id (`evt_<opaque>`). */
2539
+ id: string;
2540
+ /** @pattern ^[a-zA-Z0-9_-]+$ */
2541
+ project_id: string;
2542
+ /** Emit-time team scope, when the actor operated under a team. */
2543
+ team_id?: string | null;
2544
+ /**
2545
+ * Semantic event name (dot-separated). Discriminator for the Event union —
2546
+ * see docs/design/api/events-catalog.md.
2547
+ */
2548
+ event_type: string;
2549
+ /** Wide-event category. */
2550
+ category: 'request' | 'auth' | 'session' | 'admin' | 'entity' | 'signal';
2551
+ /** When the action happened (server/storage clock, dialect-owned). */
2552
+ occurred_at: string;
2553
+ /** When the row was inserted (server/storage clock, dialect-owned). */
2554
+ created_at: string;
2555
+ /** Who triggered the event. */
2556
+ actor_id?: string | null;
2557
+ /** Actor kind. */
2558
+ actor_type?: 'human' | 'service' | 'system' | 'agent' | null;
2559
+ /** Resource type affected. */
2560
+ entity_type?: string | null;
2561
+ /** Resource id affected. */
2562
+ entity_id?: string | null;
2563
+ /** Application or agent that produced the event. */
2564
+ client_id: string;
2565
+ /** Token id present at emit time, when any. */
2566
+ token_id?: string;
2567
+ /** Delegation kind (omit when unset). */
2568
+ delegation_type?: 'direct' | 'delegated' | 'pat_shared' | 'exchanged';
2569
+ delegation_id?: string;
2570
+ grantor?: string;
2571
+ /** Device fingerprint correlation id. */
2572
+ fingerprint?: string;
2573
+ /** HTTP request correlation id. */
2574
+ request_id?: string | null;
2575
+ /** Session correlation id. */
2576
+ session_id?: string | null;
2577
+ /** Login flow correlation id. */
2578
+ flow_id?: string | null;
2579
+ /**
2580
+ * Emit-time metadata, already redacted at write. Path A request.api may
2581
+ * set client (ip, user_agent, origin) for SIEM join on request_id. Not a
2582
+ * live risk-evaluator input.
2583
+ */
2584
+ metadata?: {
2585
+ /** Observed HTTP requestor context on Path A request.api only. */
2586
+ client?: {
2587
+ /** Client IP from the first X-Forwarded-For hop or RemoteAddr. */
2588
+ ip?: string;
2589
+ /** Observed User-Agent header. */
2590
+ user_agent?: string;
2591
+ /** Origin header when present. */
2592
+ origin?: string;
2593
+ };
2594
+ [key: string]: unknown;
2595
+ };
2596
+ }) & {
2597
+ event_type: 'user.updated';
2598
+ /**
2599
+ * Payload for `user.updated`. Same attribute rules as create: keys touched
2600
+ * plus `x-audit` values only.
2601
+ */
2602
+ payload: {
2603
+ attribute_keys?: string[];
2604
+ attributes?: { [key: string]: unknown };
2605
+ };
2606
+ };