@zitadel/components 0.1.0-alpha.18 → 0.1.0-alpha.19

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.
@@ -343,7 +343,7 @@ declare global {
343
343
  }
344
344
  } //# sourceMappingURL=zl-checkbox.d.ts.map
345
345
  //#endregion
346
- //#region ../api/dist/index-D6qIOslB.d.mts
346
+ //#region ../api/dist/index-Dt_0fSH9.d.mts
347
347
  //#region src/generated/model/completeClaim200.d.ts
348
348
  /**
349
349
  * Generated by orval v8.10.0 🍺
@@ -1704,6 +1704,17 @@ type CreateFlowDefinition201FlowDefinitionStepsItemTransitions = {
1704
1704
  Example: login → recovery → back to login.
1705
1705
  */
1706
1706
  action?: "switch" | "pivot" | null;
1707
+ /** Local re-purposing. When set, taking this transition changes the
1708
+ flow's current purpose to this value — the dispatch mode a step's
1709
+ challenges run under — while the flow's original purpose stays
1710
+ pinned. Must be a purpose this definition serves, and `target`
1711
+ must be that purpose's entry step. Mutually exclusive with
1712
+ `action`: a transition either re-purposes within this flow or
1713
+ targets another flow, never both.
1714
+ Example: a "Sign up" navigation on the login identifier step
1715
+ (`{ target: register, purpose: register }`).
1716
+ */
1717
+ purpose?: "login" | "register" | "recovery" | "profiling" | "reauth" | "link_account" | null;
1707
1718
  };
1708
1719
  }; //#endregion
1709
1720
  //#region src/generated/model/createFlowDefinition201FlowDefinitionStepsItem.d.ts
@@ -2096,6 +2107,17 @@ type CreateFlowDefinitionBodyFlowDefinitionStepsItemTransitions = {
2096
2107
  Example: login → recovery → back to login.
2097
2108
  */
2098
2109
  action?: "switch" | "pivot" | null;
2110
+ /** Local re-purposing. When set, taking this transition changes the
2111
+ flow's current purpose to this value — the dispatch mode a step's
2112
+ challenges run under — while the flow's original purpose stays
2113
+ pinned. Must be a purpose this definition serves, and `target`
2114
+ must be that purpose's entry step. Mutually exclusive with
2115
+ `action`: a transition either re-purposes within this flow or
2116
+ targets another flow, never both.
2117
+ Example: a "Sign up" navigation on the login identifier step
2118
+ (`{ target: register, purpose: register }`).
2119
+ */
2120
+ purpose?: "login" | "register" | "recovery" | "profiling" | "reauth" | "link_account" | null;
2099
2121
  };
2100
2122
  }; //#endregion
2101
2123
  //#region src/generated/model/createFlowDefinitionBodyFlowDefinitionStepsItem.d.ts
@@ -2382,43 +2404,18 @@ type CreateSchemaBody = {
2382
2404
  "x-auth-methods": {
2383
2405
  password?: {
2384
2406
  /** Whether the authentication method is enabled or not */enabled: boolean;
2385
- /**
2386
- * The position of the authentication method in the list of supported methods
2387
- * @minimum 0
2388
- */
2389
- position: number;
2390
2407
  };
2391
2408
  passkey?: {
2392
2409
  /** Whether the authentication method is enabled or not */enabled: boolean;
2393
- /**
2394
- * The position of the authentication method in the list of supported methods
2395
- * @minimum 0
2396
- */
2397
- position: number;
2398
2410
  };
2399
2411
  magic_link?: {
2400
2412
  /** Whether the authentication method is enabled or not */enabled: boolean;
2401
- /**
2402
- * The position of the authentication method in the list of supported methods
2403
- * @minimum 0
2404
- */
2405
- position: number;
2406
2413
  };
2407
2414
  sso?: {
2408
2415
  /** Whether the authentication method is enabled or not */enabled: boolean;
2409
- /**
2410
- * The position of the authentication method in the list of supported methods
2411
- * @minimum 0
2412
- */
2413
- position: number;
2414
2416
  };
2415
2417
  otp?: {
2416
2418
  /** Whether the authentication method is enabled or not */enabled: boolean;
2417
- /**
2418
- * The position of the authentication method in the list of supported methods
2419
- * @minimum 0
2420
- */
2421
- position: number;
2422
2419
  };
2423
2420
  };
2424
2421
  /** A map of additional properties for the user definition, where the
@@ -2426,14 +2423,13 @@ type CreateSchemaBody = {
2426
2423
  */
2427
2424
  properties?: {
2428
2425
  [key: string]: {
2429
- /** The verification method for this property, if applicable */"x-verify"?: string | null; /** The level of uniqueness for this property, if applicable */
2430
- "x-unique"?: "unspecified" | "project" | "team" | null; /** The claim name for this property, if applicable */
2431
- "x-claim"?: string | null; /** Whether this property is editable by the user or not */
2432
- "x-editable"?: boolean; /** Whether this property contains sensitive information or not */
2433
- "x-sensitive"?: boolean;
2434
- /** Whether this property is used for multi-factor authentication or not
2435
- */
2436
- "x-mfa"?: boolean;
2426
+ /** The level of uniqueness for this property, if applicable */"x-unique"?: "unspecified" | "project" | "team" | null; /** The claim name for this property, if applicable */
2427
+ "x-claim"?: string | null;
2428
+ /** Whether this property's value may appear in audit event payloads. Audit
2429
+ payloads are deny-by-default: a property without this annotation
2430
+ contributes its key but never its value.
2431
+ */
2432
+ "x-audit"?: boolean;
2437
2433
  /** A map of additional properties for the user definition, where the key is
2438
2434
  the property name and the value is the property schema.
2439
2435
  */
@@ -2563,7 +2559,7 @@ type CreateSession201SessionMetadata = {
2563
2559
  */
2564
2560
  /**
2565
2561
  * Current lifecycle state of the session:
2566
- - `building`: has a user factor but is still gathering authentication factors
2562
+ - `building`: no verified authentication factors yet
2567
2563
  - `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age
2568
2564
  - `expired`: TTL elapsed
2569
2565
 
@@ -2608,7 +2604,7 @@ type CreateSession201Session = {
2608
2604
  session_id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
2609
2605
  project_id: string;
2610
2606
  /** Current lifecycle state of the session:
2611
- - `building`: has a user factor but is still gathering authentication factors
2607
+ - `building`: no verified authentication factors yet
2612
2608
  - `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age
2613
2609
  - `expired`: TTL elapsed
2614
2610
  */
@@ -2816,7 +2812,7 @@ type CreateTeamParams = {
2816
2812
  */
2817
2813
  project_id: string;
2818
2814
  }; //#endregion
2819
- //#region src/generated/model/createUser201.d.ts
2815
+ //#region src/generated/model/createUser201Attributes.d.ts
2820
2816
  /**
2821
2817
  * Generated by orval v8.10.0 🍺
2822
2818
  * Do not edit manually.
@@ -2825,27 +2821,14 @@ type CreateTeamParams = {
2825
2821
  * OpenAPI spec version: 0.0.1
2826
2822
  */
2827
2823
  /**
2828
- * The content of this response is determined by the configured
2829
- schema for users.
2824
+ * The user's content, satisfying the schema named by `schema`. Property
2825
+ names and types are determined entirely by that schema.
2830
2826
 
2831
2827
  */
2832
- type CreateUser201 = {
2833
- /** The unique identifier of the created user. */id: string;
2828
+ type CreateUser201Attributes = {
2834
2829
  [key: string]: unknown;
2835
2830
  }; //#endregion
2836
- //#region src/generated/model/createUser400Details.d.ts
2837
- /**
2838
- * Generated by orval v8.10.0 🍺
2839
- * Do not edit manually.
2840
- * Zitadel NextGen
2841
- * This is the next generation of the Zitadel identity platform.
2842
- * OpenAPI spec version: 0.0.1
2843
- */
2844
- /**
2845
- * Additional error-specific context.
2846
- */
2847
- //#endregion
2848
- //#region src/generated/model/createUserBodyMetadataStatus.d.ts
2831
+ //#region src/generated/model/createUser201MetadataStatus.d.ts
2849
2832
  /**
2850
2833
  * Generated by orval v8.10.0 🍺
2851
2834
  * Do not edit manually.
@@ -2856,18 +2839,18 @@ type CreateUser201 = {
2856
2839
  /**
2857
2840
  * The status of the user.
2858
2841
  */
2859
- type CreateUserBodyMetadataStatus = (typeof CreateUserBodyMetadataStatus)[keyof typeof CreateUserBodyMetadataStatus];
2860
- declare const CreateUserBodyMetadataStatus: {
2842
+ type CreateUser201MetadataStatus = (typeof CreateUser201MetadataStatus)[keyof typeof CreateUser201MetadataStatus];
2843
+ declare const CreateUser201MetadataStatus: {
2861
2844
  readonly active: "active";
2862
2845
  readonly suspended: "suspended";
2863
2846
  readonly deactivated: "deactivated";
2864
2847
  readonly pending_purge: "pending_purge";
2865
2848
  }; //#endregion
2866
- //#region src/generated/model/createUserBodyMetadata.d.ts
2867
- type CreateUserBodyMetadata = {
2849
+ //#region src/generated/model/createUser201Metadata.d.ts
2850
+ type CreateUser201Metadata = {
2868
2851
  /** The time when the user was created. */created_at: string; /** The time when the user was last updated. */
2869
2852
  updated_at: string; /** The status of the user. */
2870
- status: CreateUserBodyMetadataStatus;
2853
+ status: CreateUser201MetadataStatus;
2871
2854
  /** The team that owns this user's identity lifecycle, or `null` when the
2872
2855
  user is self-owned. This is a single team and a different concept from
2873
2856
  the user's team roster: it decides who may deprovision the user, not
@@ -2876,52 +2859,35 @@ type CreateUserBodyMetadata = {
2876
2859
  */
2877
2860
  lifecycle_owner_team_id?: string | null;
2878
2861
  }; //#endregion
2879
- //#region src/generated/model/createUserBody.d.ts
2862
+ //#region src/generated/model/createUser201.d.ts
2880
2863
  /**
2881
2864
  * A user represents an individual identity in the system. It can be used to
2882
2865
  represent a human user, but also a service account or any other type of
2883
- identity. The content of a user is determined by the configured schema for
2884
- users, this is only a base schema.
2866
+ identity.
2885
2867
 
2886
- The server assigns the resource primary key (`id`) on create. Clients must
2887
- not send `id` in the create body; it is returned in the create response.
2868
+ `attributes` is the document that satisfies the user schema named by
2869
+ `schema`: its property names and types are defined entirely by that schema,
2870
+ and it is what the schema validates. The rest of the object — `id`,
2871
+ `schema`, `metadata` — is the server-owned envelope. Keeping the two apart
2872
+ means a schema may name a property `id` or `metadata` without colliding with
2873
+ the envelope, and closed-world keywords (`additionalProperties: false`,
2874
+ `propertyNames`, `unevaluatedProperties`) behave as their author expects.
2888
2875
 
2889
2876
  */
2890
- type CreateUserBody = {
2891
- /** @pattern ^user_[a-zA-Z0-9_-]+$ */id?: string;
2892
- metadata?: CreateUserBodyMetadata;
2893
- [key: string]: unknown;
2894
- }; //#endregion
2895
- //#region src/generated/model/createUserDefault.d.ts
2896
- /**
2897
- * Generated by orval v8.10.0 🍺
2898
- * Do not edit manually.
2899
- * Zitadel NextGen
2900
- * This is the next generation of the Zitadel identity platform.
2901
- * OpenAPI spec version: 0.0.1
2902
- */
2903
- //#endregion
2904
- //#region src/generated/model/createUserParams.d.ts
2905
- /**
2906
- * Generated by orval v8.10.0 🍺
2907
- * Do not edit manually.
2908
- * Zitadel NextGen
2909
- * This is the next generation of the Zitadel identity platform.
2910
- * OpenAPI spec version: 0.0.1
2911
- */
2912
- type CreateUserParams = {
2913
- /**
2914
- * The unique identifier of the project
2915
- * @pattern ^[a-zA-Z0-9_-]+$
2877
+ type CreateUser201 = {
2878
+ /** @pattern ^user_[a-zA-Z0-9_-]+$ */id: string;
2879
+ /** The schema that defines the content of `attributes`. These schemas can be
2880
+ created using the `/schemas` endpoint. A default schema is provided.
2881
+ This schema can be retrieved using the same endpoint.
2916
2882
  */
2917
- project_id: string;
2918
- /**
2919
- * The unique identifier of the team
2920
- * @pattern ^[a-zA-Z0-9_-]+$
2883
+ schema: string;
2884
+ /** The user's content, satisfying the schema named by `schema`. Property
2885
+ names and types are determined entirely by that schema.
2921
2886
  */
2922
- team_id?: string;
2887
+ attributes: CreateUser201Attributes;
2888
+ metadata: CreateUser201Metadata;
2923
2889
  }; //#endregion
2924
- //#region src/generated/model/deleteFlowDefinition409Details.d.ts
2890
+ //#region src/generated/model/createUser400Details.d.ts
2925
2891
  /**
2926
2892
  * Generated by orval v8.10.0 🍺
2927
2893
  * Do not edit manually.
@@ -2933,7 +2899,7 @@ type CreateUserParams = {
2933
2899
  * Additional error-specific context.
2934
2900
  */
2935
2901
  //#endregion
2936
- //#region src/generated/model/deleteFlowDefinitionParams.d.ts
2902
+ //#region src/generated/model/createUserBodyAttributes.d.ts
2937
2903
  /**
2938
2904
  * Generated by orval v8.10.0 🍺
2939
2905
  * Do not edit manually.
@@ -2941,14 +2907,42 @@ type CreateUserParams = {
2941
2907
  * This is the next generation of the Zitadel identity platform.
2942
2908
  * OpenAPI spec version: 0.0.1
2943
2909
  */
2944
- type DeleteFlowDefinitionParams = {
2910
+ /**
2911
+ * The user's schema-defined content. Validated against `schema`; a
2912
+ property the schema does not permit is rejected with `user.invalid`.
2913
+
2914
+ */
2915
+ type CreateUserBodyAttributes = {
2916
+ [key: string]: unknown;
2917
+ }; //#endregion
2918
+ //#region src/generated/model/createUserBody.d.ts
2919
+ /**
2920
+ * `attributes` is the document that must satisfy the user schema named by
2921
+ `schema`.
2922
+
2923
+ The resource primary key is server-assigned and returned in the response, so
2924
+ the request carries no `id`; `metadata` is server-owned for the same reason.
2925
+ Neither is part of this schema, which is what frees a user schema to declare
2926
+ properties of those names.
2927
+
2928
+ A request carrying any other top-level property is rejected rather than
2929
+ ignored. `attributes` stays open, since the user schema is what determines
2930
+ what belongs in it.
2931
+
2932
+ */
2933
+ type CreateUserBody = {
2945
2934
  /**
2946
- * The project id to filter by.
2947
- * @pattern ^[a-zA-Z0-9_-]+$
2935
+ * The schema that defines the content of `attributes`. These schemas can be
2936
+ created using the `/schemas` endpoint. A default schema is provided.
2937
+ * @minLength 1
2938
+ */
2939
+ schema: string;
2940
+ /** The user's schema-defined content. Validated against `schema`; a
2941
+ property the schema does not permit is rejected with `user.invalid`.
2948
2942
  */
2949
- project_id: string;
2943
+ attributes: CreateUserBodyAttributes;
2950
2944
  }; //#endregion
2951
- //#region src/generated/model/deleteTeam400Details.d.ts
2945
+ //#region src/generated/model/createUserDefault.d.ts
2952
2946
  /**
2953
2947
  * Generated by orval v8.10.0 🍺
2954
2948
  * Do not edit manually.
@@ -2956,11 +2950,8 @@ type DeleteFlowDefinitionParams = {
2956
2950
  * This is the next generation of the Zitadel identity platform.
2957
2951
  * OpenAPI spec version: 0.0.1
2958
2952
  */
2959
- /**
2960
- * Additional error-specific context.
2961
- */
2962
2953
  //#endregion
2963
- //#region src/generated/model/deleteTeamParams.d.ts
2954
+ //#region src/generated/model/createUserParams.d.ts
2964
2955
  /**
2965
2956
  * Generated by orval v8.10.0 🍺
2966
2957
  * Do not edit manually.
@@ -2968,14 +2959,19 @@ type DeleteFlowDefinitionParams = {
2968
2959
  * This is the next generation of the Zitadel identity platform.
2969
2960
  * OpenAPI spec version: 0.0.1
2970
2961
  */
2971
- type DeleteTeamParams = {
2962
+ type CreateUserParams = {
2972
2963
  /**
2973
2964
  * The unique identifier of the project
2974
2965
  * @pattern ^[a-zA-Z0-9_-]+$
2975
2966
  */
2976
2967
  project_id: string;
2968
+ /**
2969
+ * The unique identifier of the team
2970
+ * @pattern ^[a-zA-Z0-9_-]+$
2971
+ */
2972
+ team_id?: string;
2977
2973
  }; //#endregion
2978
- //#region src/generated/model/deleteUserByID401Details.d.ts
2974
+ //#region src/generated/model/deleteFlowDefinition409Details.d.ts
2979
2975
  /**
2980
2976
  * Generated by orval v8.10.0 🍺
2981
2977
  * Do not edit manually.
@@ -2987,21 +2983,6 @@ type DeleteTeamParams = {
2987
2983
  * Additional error-specific context.
2988
2984
  */
2989
2985
  //#endregion
2990
- //#region src/generated/model/deleteUserByIDParams.d.ts
2991
- /**
2992
- * Generated by orval v8.10.0 🍺
2993
- * Do not edit manually.
2994
- * Zitadel NextGen
2995
- * This is the next generation of the Zitadel identity platform.
2996
- * OpenAPI spec version: 0.0.1
2997
- */
2998
- type DeleteUserByIDParams = {
2999
- /**
3000
- * The unique identifier of the project
3001
- * @pattern ^[a-zA-Z0-9_-]+$
3002
- */
3003
- project_id: string;
3004
- }; //#endregion
3005
2986
  //#region src/generated/model/exchangeHandoff200SessionFactorsItemMethod.d.ts
3006
2987
  /**
3007
2988
  * Generated by orval v8.10.0 🍺
@@ -3085,7 +3066,7 @@ type ExchangeHandoff200SessionMetadata = {
3085
3066
  */
3086
3067
  /**
3087
3068
  * Current lifecycle state of the session:
3088
- - `building`: has a user factor but is still gathering authentication factors
3069
+ - `building`: no verified authentication factors yet
3089
3070
  - `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age
3090
3071
  - `expired`: TTL elapsed
3091
3072
 
@@ -3130,7 +3111,7 @@ type ExchangeHandoff200Session = {
3130
3111
  session_id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
3131
3112
  project_id: string;
3132
3113
  /** Current lifecycle state of the session:
3133
- - `building`: has a user factor but is still gathering authentication factors
3114
+ - `building`: no verified authentication factors yet
3134
3115
  - `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age
3135
3116
  - `expired`: TTL elapsed
3136
3117
  */
@@ -3604,21 +3585,6 @@ type GetBrandingById200 = {
3604
3585
  * Additional error-specific context.
3605
3586
  */
3606
3587
  //#endregion
3607
- //#region src/generated/model/getBrandingByIdParams.d.ts
3608
- /**
3609
- * Generated by orval v8.10.0 🍺
3610
- * Do not edit manually.
3611
- * Zitadel NextGen
3612
- * This is the next generation of the Zitadel identity platform.
3613
- * OpenAPI spec version: 0.0.1
3614
- */
3615
- type GetBrandingByIdParams = {
3616
- /**
3617
- * The unique identifier of the project
3618
- * @pattern ^[a-zA-Z0-9_-]+$
3619
- */
3620
- project_id: string;
3621
- }; //#endregion
3622
3588
  //#region src/generated/model/getClaimStatus200.d.ts
3623
3589
  /**
3624
3590
  * Generated by orval v8.10.0 🍺
@@ -3670,6 +3636,975 @@ type GetClaimStatusParams = {
3670
3636
  */
3671
3637
  challenge_id: string;
3672
3638
  }; //#endregion
3639
+ //#region src/generated/model/getEvent200.d.ts
3640
+ /**
3641
+ * Generated by orval v8.10.0 🍺
3642
+ * Do not edit manually.
3643
+ * Zitadel NextGen
3644
+ * This is the next generation of the Zitadel identity platform.
3645
+ * OpenAPI spec version: 0.0.1
3646
+ */
3647
+ /**
3648
+ * Discriminated wide-event union (ADR 048 / ADR 049). Clients select the
3649
+ member via event_type; each member carries a typed payload.
3650
+
3651
+ */
3652
+ type GetEvent200 = ({
3653
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
3654
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
3655
+ team_id?: string | null;
3656
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
3657
+ see docs/design/api/events-catalog.md.
3658
+ */
3659
+ event_type: string; /** Wide-event category. */
3660
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
3661
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
3662
+ created_at: string; /** Who triggered the event. */
3663
+ actor_id?: string | null; /** Actor kind. */
3664
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
3665
+ entity_type?: string | null; /** Resource id affected. */
3666
+ entity_id?: string | null; /** Application or agent that produced the event. */
3667
+ client_id: string; /** Token id present at emit time, when any. */
3668
+ token_id?: string; /** Delegation kind (omit when unset). */
3669
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
3670
+ delegation_id?: string;
3671
+ grantor?: string; /** Device fingerprint correlation id. */
3672
+ fingerprint?: string; /** HTTP request correlation id. */
3673
+ request_id?: string | null; /** Session correlation id. */
3674
+ session_id?: string | null; /** Login flow correlation id. */
3675
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
3676
+ metadata?: {
3677
+ [key: string]: unknown;
3678
+ };
3679
+ } & {
3680
+ event_type: "auth.attempt.created";
3681
+ /** Empty payload for event types with no typed fields
3682
+ (e.g. `project.deleted`, `user.deleted`, `session.expired`).
3683
+ */
3684
+ payload: {
3685
+ [key: string]: unknown;
3686
+ };
3687
+ }) | ({
3688
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
3689
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
3690
+ team_id?: string | null;
3691
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
3692
+ see docs/design/api/events-catalog.md.
3693
+ */
3694
+ event_type: string; /** Wide-event category. */
3695
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
3696
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
3697
+ created_at: string; /** Who triggered the event. */
3698
+ actor_id?: string | null; /** Actor kind. */
3699
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
3700
+ entity_type?: string | null; /** Resource id affected. */
3701
+ entity_id?: string | null; /** Application or agent that produced the event. */
3702
+ client_id: string; /** Token id present at emit time, when any. */
3703
+ token_id?: string; /** Delegation kind (omit when unset). */
3704
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
3705
+ delegation_id?: string;
3706
+ grantor?: string; /** Device fingerprint correlation id. */
3707
+ fingerprint?: string; /** HTTP request correlation id. */
3708
+ request_id?: string | null; /** Session correlation id. */
3709
+ session_id?: string | null; /** Login flow correlation id. */
3710
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
3711
+ metadata?: {
3712
+ [key: string]: unknown;
3713
+ };
3714
+ } & {
3715
+ event_type: "auth.attempt.handed_off";
3716
+ /** Empty payload for event types with no typed fields
3717
+ (e.g. `project.deleted`, `user.deleted`, `session.expired`).
3718
+ */
3719
+ payload: {
3720
+ [key: string]: unknown;
3721
+ };
3722
+ }) | ({
3723
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
3724
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
3725
+ team_id?: string | null;
3726
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
3727
+ see docs/design/api/events-catalog.md.
3728
+ */
3729
+ event_type: string; /** Wide-event category. */
3730
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
3731
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
3732
+ created_at: string; /** Who triggered the event. */
3733
+ actor_id?: string | null; /** Actor kind. */
3734
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
3735
+ entity_type?: string | null; /** Resource id affected. */
3736
+ entity_id?: string | null; /** Application or agent that produced the event. */
3737
+ client_id: string; /** Token id present at emit time, when any. */
3738
+ token_id?: string; /** Delegation kind (omit when unset). */
3739
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
3740
+ delegation_id?: string;
3741
+ grantor?: string; /** Device fingerprint correlation id. */
3742
+ fingerprint?: string; /** HTTP request correlation id. */
3743
+ request_id?: string | null; /** Session correlation id. */
3744
+ session_id?: string | null; /** Login flow correlation id. */
3745
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
3746
+ metadata?: {
3747
+ [key: string]: unknown;
3748
+ };
3749
+ } & {
3750
+ event_type: "auth.check.failed";
3751
+ /** Payload for `auth.check.failed` / `auth.check.succeeded`.
3752
+ `auth_attempt_id` joins the check to its attempt for SIEM correlation.
3753
+ */
3754
+ payload: {
3755
+ check_id: string;
3756
+ check_type?: string;
3757
+ auth_attempt_id?: string;
3758
+ };
3759
+ }) | ({
3760
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
3761
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
3762
+ team_id?: string | null;
3763
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
3764
+ see docs/design/api/events-catalog.md.
3765
+ */
3766
+ event_type: string; /** Wide-event category. */
3767
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
3768
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
3769
+ created_at: string; /** Who triggered the event. */
3770
+ actor_id?: string | null; /** Actor kind. */
3771
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
3772
+ entity_type?: string | null; /** Resource id affected. */
3773
+ entity_id?: string | null; /** Application or agent that produced the event. */
3774
+ client_id: string; /** Token id present at emit time, when any. */
3775
+ token_id?: string; /** Delegation kind (omit when unset). */
3776
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
3777
+ delegation_id?: string;
3778
+ grantor?: string; /** Device fingerprint correlation id. */
3779
+ fingerprint?: string; /** HTTP request correlation id. */
3780
+ request_id?: string | null; /** Session correlation id. */
3781
+ session_id?: string | null; /** Login flow correlation id. */
3782
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
3783
+ metadata?: {
3784
+ [key: string]: unknown;
3785
+ };
3786
+ } & {
3787
+ event_type: "auth.check.succeeded";
3788
+ /** Payload for `auth.check.failed` / `auth.check.succeeded`.
3789
+ `auth_attempt_id` joins the check to its attempt for SIEM correlation.
3790
+ */
3791
+ payload: {
3792
+ check_id: string;
3793
+ check_type?: string;
3794
+ auth_attempt_id?: string;
3795
+ };
3796
+ }) | ({
3797
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
3798
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
3799
+ team_id?: string | null;
3800
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
3801
+ see docs/design/api/events-catalog.md.
3802
+ */
3803
+ event_type: string; /** Wide-event category. */
3804
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
3805
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
3806
+ created_at: string; /** Who triggered the event. */
3807
+ actor_id?: string | null; /** Actor kind. */
3808
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
3809
+ entity_type?: string | null; /** Resource id affected. */
3810
+ entity_id?: string | null; /** Application or agent that produced the event. */
3811
+ client_id: string; /** Token id present at emit time, when any. */
3812
+ token_id?: string; /** Delegation kind (omit when unset). */
3813
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
3814
+ delegation_id?: string;
3815
+ grantor?: string; /** Device fingerprint correlation id. */
3816
+ fingerprint?: string; /** HTTP request correlation id. */
3817
+ request_id?: string | null; /** Session correlation id. */
3818
+ session_id?: string | null; /** Login flow correlation id. */
3819
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
3820
+ metadata?: {
3821
+ [key: string]: unknown;
3822
+ };
3823
+ } & {
3824
+ event_type: "auth.factor.passkey.enrolled"; /** Payload for `auth.factor.*` events. */
3825
+ payload: {
3826
+ user_id: string;
3827
+ factor_id?: string;
3828
+ };
3829
+ }) | ({
3830
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
3831
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
3832
+ team_id?: string | null;
3833
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
3834
+ see docs/design/api/events-catalog.md.
3835
+ */
3836
+ event_type: string; /** Wide-event category. */
3837
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
3838
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
3839
+ created_at: string; /** Who triggered the event. */
3840
+ actor_id?: string | null; /** Actor kind. */
3841
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
3842
+ entity_type?: string | null; /** Resource id affected. */
3843
+ entity_id?: string | null; /** Application or agent that produced the event. */
3844
+ client_id: string; /** Token id present at emit time, when any. */
3845
+ token_id?: string; /** Delegation kind (omit when unset). */
3846
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
3847
+ delegation_id?: string;
3848
+ grantor?: string; /** Device fingerprint correlation id. */
3849
+ fingerprint?: string; /** HTTP request correlation id. */
3850
+ request_id?: string | null; /** Session correlation id. */
3851
+ session_id?: string | null; /** Login flow correlation id. */
3852
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
3853
+ metadata?: {
3854
+ [key: string]: unknown;
3855
+ };
3856
+ } & {
3857
+ event_type: "auth.factor.password.set"; /** Payload for `auth.factor.*` events. */
3858
+ payload: {
3859
+ user_id: string;
3860
+ factor_id?: string;
3861
+ };
3862
+ }) | ({
3863
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
3864
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
3865
+ team_id?: string | null;
3866
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
3867
+ see docs/design/api/events-catalog.md.
3868
+ */
3869
+ event_type: string; /** Wide-event category. */
3870
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
3871
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
3872
+ created_at: string; /** Who triggered the event. */
3873
+ actor_id?: string | null; /** Actor kind. */
3874
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
3875
+ entity_type?: string | null; /** Resource id affected. */
3876
+ entity_id?: string | null; /** Application or agent that produced the event. */
3877
+ client_id: string; /** Token id present at emit time, when any. */
3878
+ token_id?: string; /** Delegation kind (omit when unset). */
3879
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
3880
+ delegation_id?: string;
3881
+ grantor?: string; /** Device fingerprint correlation id. */
3882
+ fingerprint?: string; /** HTTP request correlation id. */
3883
+ request_id?: string | null; /** Session correlation id. */
3884
+ session_id?: string | null; /** Login flow correlation id. */
3885
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
3886
+ metadata?: {
3887
+ [key: string]: unknown;
3888
+ };
3889
+ } & {
3890
+ event_type: "auth.token.issued"; /** Payload for `auth.token.issued` events. */
3891
+ payload: {
3892
+ scopes?: string[];
3893
+ };
3894
+ }) | ({
3895
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
3896
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
3897
+ team_id?: string | null;
3898
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
3899
+ see docs/design/api/events-catalog.md.
3900
+ */
3901
+ event_type: string; /** Wide-event category. */
3902
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
3903
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
3904
+ created_at: string; /** Who triggered the event. */
3905
+ actor_id?: string | null; /** Actor kind. */
3906
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
3907
+ entity_type?: string | null; /** Resource id affected. */
3908
+ entity_id?: string | null; /** Application or agent that produced the event. */
3909
+ client_id: string; /** Token id present at emit time, when any. */
3910
+ token_id?: string; /** Delegation kind (omit when unset). */
3911
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
3912
+ delegation_id?: string;
3913
+ grantor?: string; /** Device fingerprint correlation id. */
3914
+ fingerprint?: string; /** HTTP request correlation id. */
3915
+ request_id?: string | null; /** Session correlation id. */
3916
+ session_id?: string | null; /** Login flow correlation id. */
3917
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
3918
+ metadata?: {
3919
+ [key: string]: unknown;
3920
+ };
3921
+ } & {
3922
+ event_type: "auth.token.revoked";
3923
+ /** Empty payload for event types with no typed fields
3924
+ (e.g. `project.deleted`, `user.deleted`, `session.expired`).
3925
+ */
3926
+ payload: {
3927
+ [key: string]: unknown;
3928
+ };
3929
+ }) | ({
3930
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
3931
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
3932
+ team_id?: string | null;
3933
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
3934
+ see docs/design/api/events-catalog.md.
3935
+ */
3936
+ event_type: string; /** Wide-event category. */
3937
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
3938
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
3939
+ created_at: string; /** Who triggered the event. */
3940
+ actor_id?: string | null; /** Actor kind. */
3941
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
3942
+ entity_type?: string | null; /** Resource id affected. */
3943
+ entity_id?: string | null; /** Application or agent that produced the event. */
3944
+ client_id: string; /** Token id present at emit time, when any. */
3945
+ token_id?: string; /** Delegation kind (omit when unset). */
3946
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
3947
+ delegation_id?: string;
3948
+ grantor?: string; /** Device fingerprint correlation id. */
3949
+ fingerprint?: string; /** HTTP request correlation id. */
3950
+ request_id?: string | null; /** Session correlation id. */
3951
+ session_id?: string | null; /** Login flow correlation id. */
3952
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
3953
+ metadata?: {
3954
+ [key: string]: unknown;
3955
+ };
3956
+ } & {
3957
+ event_type: "authz.granted"; /** Payload for `authz.granted` events. */
3958
+ payload: {
3959
+ principal_type?: string;
3960
+ principal_id?: string;
3961
+ relation?: string;
3962
+ };
3963
+ }) | ({
3964
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
3965
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
3966
+ team_id?: string | null;
3967
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
3968
+ see docs/design/api/events-catalog.md.
3969
+ */
3970
+ event_type: string; /** Wide-event category. */
3971
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
3972
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
3973
+ created_at: string; /** Who triggered the event. */
3974
+ actor_id?: string | null; /** Actor kind. */
3975
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
3976
+ entity_type?: string | null; /** Resource id affected. */
3977
+ entity_id?: string | null; /** Application or agent that produced the event. */
3978
+ client_id: string; /** Token id present at emit time, when any. */
3979
+ token_id?: string; /** Delegation kind (omit when unset). */
3980
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
3981
+ delegation_id?: string;
3982
+ grantor?: string; /** Device fingerprint correlation id. */
3983
+ fingerprint?: string; /** HTTP request correlation id. */
3984
+ request_id?: string | null; /** Session correlation id. */
3985
+ session_id?: string | null; /** Login flow correlation id. */
3986
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
3987
+ metadata?: {
3988
+ [key: string]: unknown;
3989
+ };
3990
+ } & {
3991
+ event_type: "branding.created";
3992
+ /** Allowlisted fields for `branding.created`. Omits `liquid_template`.
3993
+ */
3994
+ payload: {
3995
+ layout?: string;
3996
+ logo_url?: string;
3997
+ font_url?: string;
3998
+ hero_url?: string;
3999
+ };
4000
+ }) | ({
4001
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4002
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
4003
+ team_id?: string | null;
4004
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
4005
+ see docs/design/api/events-catalog.md.
4006
+ */
4007
+ event_type: string; /** Wide-event category. */
4008
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
4009
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
4010
+ created_at: string; /** Who triggered the event. */
4011
+ actor_id?: string | null; /** Actor kind. */
4012
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
4013
+ entity_type?: string | null; /** Resource id affected. */
4014
+ entity_id?: string | null; /** Application or agent that produced the event. */
4015
+ client_id: string; /** Token id present at emit time, when any. */
4016
+ token_id?: string; /** Delegation kind (omit when unset). */
4017
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
4018
+ delegation_id?: string;
4019
+ grantor?: string; /** Device fingerprint correlation id. */
4020
+ fingerprint?: string; /** HTTP request correlation id. */
4021
+ request_id?: string | null; /** Session correlation id. */
4022
+ session_id?: string | null; /** Login flow correlation id. */
4023
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
4024
+ metadata?: {
4025
+ [key: string]: unknown;
4026
+ };
4027
+ } & {
4028
+ event_type: "flowdef.created";
4029
+ /** Shared allowlisted fields for `flowdef.created` (full snapshot) and
4030
+ `flowdef.updated` (delta: only changed fields present). Steps are omitted.
4031
+ */
4032
+ payload: {
4033
+ name?: string;
4034
+ status?: string;
4035
+ user_schema?: string;
4036
+ purposes?: {
4037
+ [key: string]: string;
4038
+ };
4039
+ audience?: {
4040
+ app_ids?: string[];
4041
+ team_ids?: string[];
4042
+ };
4043
+ };
4044
+ }) | ({
4045
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4046
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
4047
+ team_id?: string | null;
4048
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
4049
+ see docs/design/api/events-catalog.md.
4050
+ */
4051
+ event_type: string; /** Wide-event category. */
4052
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
4053
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
4054
+ created_at: string; /** Who triggered the event. */
4055
+ actor_id?: string | null; /** Actor kind. */
4056
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
4057
+ entity_type?: string | null; /** Resource id affected. */
4058
+ entity_id?: string | null; /** Application or agent that produced the event. */
4059
+ client_id: string; /** Token id present at emit time, when any. */
4060
+ token_id?: string; /** Delegation kind (omit when unset). */
4061
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
4062
+ delegation_id?: string;
4063
+ grantor?: string; /** Device fingerprint correlation id. */
4064
+ fingerprint?: string; /** HTTP request correlation id. */
4065
+ request_id?: string | null; /** Session correlation id. */
4066
+ session_id?: string | null; /** Login flow correlation id. */
4067
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
4068
+ metadata?: {
4069
+ [key: string]: unknown;
4070
+ };
4071
+ } & {
4072
+ event_type: "flowdef.deleted";
4073
+ /** Empty payload for event types with no typed fields
4074
+ (e.g. `project.deleted`, `user.deleted`, `session.expired`).
4075
+ */
4076
+ payload: {
4077
+ [key: string]: unknown;
4078
+ };
4079
+ }) | ({
4080
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4081
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
4082
+ team_id?: string | null;
4083
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
4084
+ see docs/design/api/events-catalog.md.
4085
+ */
4086
+ event_type: string; /** Wide-event category. */
4087
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
4088
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
4089
+ created_at: string; /** Who triggered the event. */
4090
+ actor_id?: string | null; /** Actor kind. */
4091
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
4092
+ entity_type?: string | null; /** Resource id affected. */
4093
+ entity_id?: string | null; /** Application or agent that produced the event. */
4094
+ client_id: string; /** Token id present at emit time, when any. */
4095
+ token_id?: string; /** Delegation kind (omit when unset). */
4096
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
4097
+ delegation_id?: string;
4098
+ grantor?: string; /** Device fingerprint correlation id. */
4099
+ fingerprint?: string; /** HTTP request correlation id. */
4100
+ request_id?: string | null; /** Session correlation id. */
4101
+ session_id?: string | null; /** Login flow correlation id. */
4102
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
4103
+ metadata?: {
4104
+ [key: string]: unknown;
4105
+ };
4106
+ } & {
4107
+ event_type: "flowdef.updated";
4108
+ /** Shared allowlisted fields for `flowdef.created` (full snapshot) and
4109
+ `flowdef.updated` (delta: only changed fields present). Steps are omitted.
4110
+ */
4111
+ payload: {
4112
+ name?: string;
4113
+ status?: string;
4114
+ user_schema?: string;
4115
+ purposes?: {
4116
+ [key: string]: string;
4117
+ };
4118
+ audience?: {
4119
+ app_ids?: string[];
4120
+ team_ids?: string[];
4121
+ };
4122
+ };
4123
+ }) | ({
4124
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4125
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
4126
+ team_id?: string | null;
4127
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
4128
+ see docs/design/api/events-catalog.md.
4129
+ */
4130
+ event_type: string; /** Wide-event category. */
4131
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
4132
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
4133
+ created_at: string; /** Who triggered the event. */
4134
+ actor_id?: string | null; /** Actor kind. */
4135
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
4136
+ entity_type?: string | null; /** Resource id affected. */
4137
+ entity_id?: string | null; /** Application or agent that produced the event. */
4138
+ client_id: string; /** Token id present at emit time, when any. */
4139
+ token_id?: string; /** Delegation kind (omit when unset). */
4140
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
4141
+ delegation_id?: string;
4142
+ grantor?: string; /** Device fingerprint correlation id. */
4143
+ fingerprint?: string; /** HTTP request correlation id. */
4144
+ request_id?: string | null; /** Session correlation id. */
4145
+ session_id?: string | null; /** Login flow correlation id. */
4146
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
4147
+ metadata?: {
4148
+ [key: string]: unknown;
4149
+ };
4150
+ } & {
4151
+ event_type: "project.created";
4152
+ /** Shared allowlisted fields for `project.created` (full snapshot) and
4153
+ `project.updated` (delta: only changed fields present).
4154
+ */
4155
+ payload: {
4156
+ name?: string;
4157
+ preview_origins?: string[];
4158
+ };
4159
+ }) | ({
4160
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4161
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
4162
+ team_id?: string | null;
4163
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
4164
+ see docs/design/api/events-catalog.md.
4165
+ */
4166
+ event_type: string; /** Wide-event category. */
4167
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
4168
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
4169
+ created_at: string; /** Who triggered the event. */
4170
+ actor_id?: string | null; /** Actor kind. */
4171
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
4172
+ entity_type?: string | null; /** Resource id affected. */
4173
+ entity_id?: string | null; /** Application or agent that produced the event. */
4174
+ client_id: string; /** Token id present at emit time, when any. */
4175
+ token_id?: string; /** Delegation kind (omit when unset). */
4176
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
4177
+ delegation_id?: string;
4178
+ grantor?: string; /** Device fingerprint correlation id. */
4179
+ fingerprint?: string; /** HTTP request correlation id. */
4180
+ request_id?: string | null; /** Session correlation id. */
4181
+ session_id?: string | null; /** Login flow correlation id. */
4182
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
4183
+ metadata?: {
4184
+ [key: string]: unknown;
4185
+ };
4186
+ } & {
4187
+ event_type: "project.deleted";
4188
+ /** Empty payload for event types with no typed fields
4189
+ (e.g. `project.deleted`, `user.deleted`, `session.expired`).
4190
+ */
4191
+ payload: {
4192
+ [key: string]: unknown;
4193
+ };
4194
+ }) | ({
4195
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4196
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
4197
+ team_id?: string | null;
4198
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
4199
+ see docs/design/api/events-catalog.md.
4200
+ */
4201
+ event_type: string; /** Wide-event category. */
4202
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
4203
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
4204
+ created_at: string; /** Who triggered the event. */
4205
+ actor_id?: string | null; /** Actor kind. */
4206
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
4207
+ entity_type?: string | null; /** Resource id affected. */
4208
+ entity_id?: string | null; /** Application or agent that produced the event. */
4209
+ client_id: string; /** Token id present at emit time, when any. */
4210
+ token_id?: string; /** Delegation kind (omit when unset). */
4211
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
4212
+ delegation_id?: string;
4213
+ grantor?: string; /** Device fingerprint correlation id. */
4214
+ fingerprint?: string; /** HTTP request correlation id. */
4215
+ request_id?: string | null; /** Session correlation id. */
4216
+ session_id?: string | null; /** Login flow correlation id. */
4217
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
4218
+ metadata?: {
4219
+ [key: string]: unknown;
4220
+ };
4221
+ } & {
4222
+ event_type: "project.updated";
4223
+ /** Shared allowlisted fields for `project.created` (full snapshot) and
4224
+ `project.updated` (delta: only changed fields present).
4225
+ */
4226
+ payload: {
4227
+ name?: string;
4228
+ preview_origins?: string[];
4229
+ };
4230
+ }) | ({
4231
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4232
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
4233
+ team_id?: string | null;
4234
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
4235
+ see docs/design/api/events-catalog.md.
4236
+ */
4237
+ event_type: string; /** Wide-event category. */
4238
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
4239
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
4240
+ created_at: string; /** Who triggered the event. */
4241
+ actor_id?: string | null; /** Actor kind. */
4242
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
4243
+ entity_type?: string | null; /** Resource id affected. */
4244
+ entity_id?: string | null; /** Application or agent that produced the event. */
4245
+ client_id: string; /** Token id present at emit time, when any. */
4246
+ token_id?: string; /** Delegation kind (omit when unset). */
4247
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
4248
+ delegation_id?: string;
4249
+ grantor?: string; /** Device fingerprint correlation id. */
4250
+ fingerprint?: string; /** HTTP request correlation id. */
4251
+ request_id?: string | null; /** Session correlation id. */
4252
+ session_id?: string | null; /** Login flow correlation id. */
4253
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
4254
+ metadata?: {
4255
+ [key: string]: unknown;
4256
+ };
4257
+ } & {
4258
+ event_type: "request.api"; /** Payload for `request.api` events. */
4259
+ payload: {
4260
+ operation_id: string; /** HTTP method. */
4261
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
4262
+ route_template: string;
4263
+ /**
4264
+ * @minimum 100
4265
+ * @maximum 599
4266
+ */
4267
+ status: number; /** @minimum 0 */
4268
+ duration_ms: number;
4269
+ };
4270
+ }) | ({
4271
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4272
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
4273
+ team_id?: string | null;
4274
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
4275
+ see docs/design/api/events-catalog.md.
4276
+ */
4277
+ event_type: string; /** Wide-event category. */
4278
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
4279
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
4280
+ created_at: string; /** Who triggered the event. */
4281
+ actor_id?: string | null; /** Actor kind. */
4282
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
4283
+ entity_type?: string | null; /** Resource id affected. */
4284
+ entity_id?: string | null; /** Application or agent that produced the event. */
4285
+ client_id: string; /** Token id present at emit time, when any. */
4286
+ token_id?: string; /** Delegation kind (omit when unset). */
4287
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
4288
+ delegation_id?: string;
4289
+ grantor?: string; /** Device fingerprint correlation id. */
4290
+ fingerprint?: string; /** HTTP request correlation id. */
4291
+ request_id?: string | null; /** Session correlation id. */
4292
+ session_id?: string | null; /** Login flow correlation id. */
4293
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
4294
+ metadata?: {
4295
+ [key: string]: unknown;
4296
+ };
4297
+ } & {
4298
+ event_type: "schema.created";
4299
+ /** Empty payload for event types with no typed fields
4300
+ (e.g. `project.deleted`, `user.deleted`, `session.expired`).
4301
+ */
4302
+ payload: {
4303
+ [key: string]: unknown;
4304
+ };
4305
+ }) | ({
4306
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4307
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
4308
+ team_id?: string | null;
4309
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
4310
+ see docs/design/api/events-catalog.md.
4311
+ */
4312
+ event_type: string; /** Wide-event category. */
4313
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
4314
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
4315
+ created_at: string; /** Who triggered the event. */
4316
+ actor_id?: string | null; /** Actor kind. */
4317
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
4318
+ entity_type?: string | null; /** Resource id affected. */
4319
+ entity_id?: string | null; /** Application or agent that produced the event. */
4320
+ client_id: string; /** Token id present at emit time, when any. */
4321
+ token_id?: string; /** Delegation kind (omit when unset). */
4322
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
4323
+ delegation_id?: string;
4324
+ grantor?: string; /** Device fingerprint correlation id. */
4325
+ fingerprint?: string; /** HTTP request correlation id. */
4326
+ request_id?: string | null; /** Session correlation id. */
4327
+ session_id?: string | null; /** Login flow correlation id. */
4328
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
4329
+ metadata?: {
4330
+ [key: string]: unknown;
4331
+ };
4332
+ } & {
4333
+ event_type: "session.deleted"; /** Payload for `session.deleted` events. */
4334
+ payload: {
4335
+ reason?: string;
4336
+ };
4337
+ }) | ({
4338
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4339
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
4340
+ team_id?: string | null;
4341
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
4342
+ see docs/design/api/events-catalog.md.
4343
+ */
4344
+ event_type: string; /** Wide-event category. */
4345
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
4346
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
4347
+ created_at: string; /** Who triggered the event. */
4348
+ actor_id?: string | null; /** Actor kind. */
4349
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
4350
+ entity_type?: string | null; /** Resource id affected. */
4351
+ entity_id?: string | null; /** Application or agent that produced the event. */
4352
+ client_id: string; /** Token id present at emit time, when any. */
4353
+ token_id?: string; /** Delegation kind (omit when unset). */
4354
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
4355
+ delegation_id?: string;
4356
+ grantor?: string; /** Device fingerprint correlation id. */
4357
+ fingerprint?: string; /** HTTP request correlation id. */
4358
+ request_id?: string | null; /** Session correlation id. */
4359
+ session_id?: string | null; /** Login flow correlation id. */
4360
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
4361
+ metadata?: {
4362
+ [key: string]: unknown;
4363
+ };
4364
+ } & {
4365
+ event_type: "session.established"; /** Payload for `session.established` events. */
4366
+ payload: {
4367
+ user_id?: string;
4368
+ };
4369
+ }) | ({
4370
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4371
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
4372
+ team_id?: string | null;
4373
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
4374
+ see docs/design/api/events-catalog.md.
4375
+ */
4376
+ event_type: string; /** Wide-event category. */
4377
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
4378
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
4379
+ created_at: string; /** Who triggered the event. */
4380
+ actor_id?: string | null; /** Actor kind. */
4381
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
4382
+ entity_type?: string | null; /** Resource id affected. */
4383
+ entity_id?: string | null; /** Application or agent that produced the event. */
4384
+ client_id: string; /** Token id present at emit time, when any. */
4385
+ token_id?: string; /** Delegation kind (omit when unset). */
4386
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
4387
+ delegation_id?: string;
4388
+ grantor?: string; /** Device fingerprint correlation id. */
4389
+ fingerprint?: string; /** HTTP request correlation id. */
4390
+ request_id?: string | null; /** Session correlation id. */
4391
+ session_id?: string | null; /** Login flow correlation id. */
4392
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
4393
+ metadata?: {
4394
+ [key: string]: unknown;
4395
+ };
4396
+ } & {
4397
+ event_type: "team.created";
4398
+ /** Shared allowlisted fields for `team.created` (snapshot) and
4399
+ `team.updated` (delta: only changed fields present).
4400
+ */
4401
+ payload: {
4402
+ name?: string;
4403
+ };
4404
+ }) | ({
4405
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4406
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
4407
+ team_id?: string | null;
4408
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
4409
+ see docs/design/api/events-catalog.md.
4410
+ */
4411
+ event_type: string; /** Wide-event category. */
4412
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
4413
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
4414
+ created_at: string; /** Who triggered the event. */
4415
+ actor_id?: string | null; /** Actor kind. */
4416
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
4417
+ entity_type?: string | null; /** Resource id affected. */
4418
+ entity_id?: string | null; /** Application or agent that produced the event. */
4419
+ client_id: string; /** Token id present at emit time, when any. */
4420
+ token_id?: string; /** Delegation kind (omit when unset). */
4421
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
4422
+ delegation_id?: string;
4423
+ grantor?: string; /** Device fingerprint correlation id. */
4424
+ fingerprint?: string; /** HTTP request correlation id. */
4425
+ request_id?: string | null; /** Session correlation id. */
4426
+ session_id?: string | null; /** Login flow correlation id. */
4427
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
4428
+ metadata?: {
4429
+ [key: string]: unknown;
4430
+ };
4431
+ } & {
4432
+ event_type: "team.deactivated";
4433
+ /** Empty payload for event types with no typed fields
4434
+ (e.g. `project.deleted`, `user.deleted`, `session.expired`).
4435
+ */
4436
+ payload: {
4437
+ [key: string]: unknown;
4438
+ };
4439
+ }) | ({
4440
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4441
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
4442
+ team_id?: string | null;
4443
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
4444
+ see docs/design/api/events-catalog.md.
4445
+ */
4446
+ event_type: string; /** Wide-event category. */
4447
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
4448
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
4449
+ created_at: string; /** Who triggered the event. */
4450
+ actor_id?: string | null; /** Actor kind. */
4451
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
4452
+ entity_type?: string | null; /** Resource id affected. */
4453
+ entity_id?: string | null; /** Application or agent that produced the event. */
4454
+ client_id: string; /** Token id present at emit time, when any. */
4455
+ token_id?: string; /** Delegation kind (omit when unset). */
4456
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
4457
+ delegation_id?: string;
4458
+ grantor?: string; /** Device fingerprint correlation id. */
4459
+ fingerprint?: string; /** HTTP request correlation id. */
4460
+ request_id?: string | null; /** Session correlation id. */
4461
+ session_id?: string | null; /** Login flow correlation id. */
4462
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
4463
+ metadata?: {
4464
+ [key: string]: unknown;
4465
+ };
4466
+ } & {
4467
+ event_type: "team.updated";
4468
+ /** Shared allowlisted fields for `team.created` (snapshot) and
4469
+ `team.updated` (delta: only changed fields present).
4470
+ */
4471
+ payload: {
4472
+ name?: string;
4473
+ };
4474
+ }) | ({
4475
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4476
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
4477
+ team_id?: string | null;
4478
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
4479
+ see docs/design/api/events-catalog.md.
4480
+ */
4481
+ event_type: string; /** Wide-event category. */
4482
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
4483
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
4484
+ created_at: string; /** Who triggered the event. */
4485
+ actor_id?: string | null; /** Actor kind. */
4486
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
4487
+ entity_type?: string | null; /** Resource id affected. */
4488
+ entity_id?: string | null; /** Application or agent that produced the event. */
4489
+ client_id: string; /** Token id present at emit time, when any. */
4490
+ token_id?: string; /** Delegation kind (omit when unset). */
4491
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
4492
+ delegation_id?: string;
4493
+ grantor?: string; /** Device fingerprint correlation id. */
4494
+ fingerprint?: string; /** HTTP request correlation id. */
4495
+ request_id?: string | null; /** Session correlation id. */
4496
+ session_id?: string | null; /** Login flow correlation id. */
4497
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
4498
+ metadata?: {
4499
+ [key: string]: unknown;
4500
+ };
4501
+ } & {
4502
+ event_type: "user.create.failed"; /** Payload for `user.create.failed` events. */
4503
+ payload: {
4504
+ key_name?: string;
4505
+ };
4506
+ }) | ({
4507
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4508
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
4509
+ team_id?: string | null;
4510
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
4511
+ see docs/design/api/events-catalog.md.
4512
+ */
4513
+ event_type: string; /** Wide-event category. */
4514
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
4515
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
4516
+ created_at: string; /** Who triggered the event. */
4517
+ actor_id?: string | null; /** Actor kind. */
4518
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
4519
+ entity_type?: string | null; /** Resource id affected. */
4520
+ entity_id?: string | null; /** Application or agent that produced the event. */
4521
+ client_id: string; /** Token id present at emit time, when any. */
4522
+ token_id?: string; /** Delegation kind (omit when unset). */
4523
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
4524
+ delegation_id?: string;
4525
+ grantor?: string; /** Device fingerprint correlation id. */
4526
+ fingerprint?: string; /** HTTP request correlation id. */
4527
+ request_id?: string | null; /** Session correlation id. */
4528
+ session_id?: string | null; /** Login flow correlation id. */
4529
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
4530
+ metadata?: {
4531
+ [key: string]: unknown;
4532
+ };
4533
+ } & {
4534
+ event_type: "user.created";
4535
+ /** Payload for `user.created`. Identity is `entity_id`; attribute values
4536
+ appear only for schema fields marked `x-audit`.
4537
+ */
4538
+ payload: {
4539
+ schema_id?: string;
4540
+ attribute_keys?: string[];
4541
+ attributes?: {
4542
+ [key: string]: unknown;
4543
+ };
4544
+ };
4545
+ }) | ({
4546
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4547
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
4548
+ team_id?: string | null;
4549
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
4550
+ see docs/design/api/events-catalog.md.
4551
+ */
4552
+ event_type: string; /** Wide-event category. */
4553
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
4554
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
4555
+ created_at: string; /** Who triggered the event. */
4556
+ actor_id?: string | null; /** Actor kind. */
4557
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
4558
+ entity_type?: string | null; /** Resource id affected. */
4559
+ entity_id?: string | null; /** Application or agent that produced the event. */
4560
+ client_id: string; /** Token id present at emit time, when any. */
4561
+ token_id?: string; /** Delegation kind (omit when unset). */
4562
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
4563
+ delegation_id?: string;
4564
+ grantor?: string; /** Device fingerprint correlation id. */
4565
+ fingerprint?: string; /** HTTP request correlation id. */
4566
+ request_id?: string | null; /** Session correlation id. */
4567
+ session_id?: string | null; /** Login flow correlation id. */
4568
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
4569
+ metadata?: {
4570
+ [key: string]: unknown;
4571
+ };
4572
+ } & {
4573
+ event_type: "user.deleted";
4574
+ /** Empty payload for event types with no typed fields
4575
+ (e.g. `project.deleted`, `user.deleted`, `session.expired`).
4576
+ */
4577
+ payload: {
4578
+ [key: string]: unknown;
4579
+ };
4580
+ }); //#endregion
4581
+ //#region src/generated/model/getEvent401Details.d.ts
4582
+ /**
4583
+ * Generated by orval v8.10.0 🍺
4584
+ * Do not edit manually.
4585
+ * Zitadel NextGen
4586
+ * This is the next generation of the Zitadel identity platform.
4587
+ * OpenAPI spec version: 0.0.1
4588
+ */
4589
+ /**
4590
+ * Additional error-specific context.
4591
+ */
4592
+ //#endregion
4593
+ //#region src/generated/model/getEventParams.d.ts
4594
+ /**
4595
+ * Generated by orval v8.10.0 🍺
4596
+ * Do not edit manually.
4597
+ * Zitadel NextGen
4598
+ * This is the next generation of the Zitadel identity platform.
4599
+ * OpenAPI spec version: 0.0.1
4600
+ */
4601
+ type GetEventParams = {
4602
+ /**
4603
+ * The unique identifier of the project
4604
+ * @pattern ^[a-zA-Z0-9_-]+$
4605
+ */
4606
+ project_id: string;
4607
+ }; //#endregion
3673
4608
  //#region src/generated/model/getFlowDefinition200FlowDefinitionAudience.d.ts
3674
4609
  /**
3675
4610
  * Generated by orval v8.10.0 🍺
@@ -3922,6 +4857,17 @@ type GetFlowDefinition200FlowDefinitionStepsItemTransitions = {
3922
4857
  Example: login → recovery → back to login.
3923
4858
  */
3924
4859
  action?: "switch" | "pivot" | null;
4860
+ /** Local re-purposing. When set, taking this transition changes the
4861
+ flow's current purpose to this value — the dispatch mode a step's
4862
+ challenges run under — while the flow's original purpose stays
4863
+ pinned. Must be a purpose this definition serves, and `target`
4864
+ must be that purpose's entry step. Mutually exclusive with
4865
+ `action`: a transition either re-purposes within this flow or
4866
+ targets another flow, never both.
4867
+ Example: a "Sign up" navigation on the login identifier step
4868
+ (`{ target: register, purpose: register }`).
4869
+ */
4870
+ purpose?: "login" | "register" | "recovery" | "profiling" | "reauth" | "link_account" | null;
3925
4871
  };
3926
4872
  }; //#endregion
3927
4873
  //#region src/generated/model/getFlowDefinition200FlowDefinitionStepsItem.d.ts
@@ -4059,21 +5005,6 @@ type GetFlowDefinition200 = {
4059
5005
  * OpenAPI spec version: 0.0.1
4060
5006
  */
4061
5007
  //#endregion
4062
- //#region src/generated/model/getFlowDefinitionParams.d.ts
4063
- /**
4064
- * Generated by orval v8.10.0 🍺
4065
- * Do not edit manually.
4066
- * Zitadel NextGen
4067
- * This is the next generation of the Zitadel identity platform.
4068
- * OpenAPI spec version: 0.0.1
4069
- */
4070
- type GetFlowDefinitionParams = {
4071
- /**
4072
- * The project id to filter by.
4073
- * @pattern ^[a-zA-Z0-9_-]+$
4074
- */
4075
- project_id: string;
4076
- }; //#endregion
4077
5008
  //#region src/generated/model/getFlowStep200BrandingLayout.d.ts
4078
5009
  /**
4079
5010
  * Generated by orval v8.10.0 🍺
@@ -4731,7 +5662,7 @@ type GetMySession200Metadata = {
4731
5662
  */
4732
5663
  /**
4733
5664
  * Current lifecycle state of the session:
4734
- - `building`: has a user factor but is still gathering authentication factors
5665
+ - `building`: no verified authentication factors yet
4735
5666
  - `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age
4736
5667
  - `expired`: TTL elapsed
4737
5668
 
@@ -4776,7 +5707,7 @@ type GetMySession200 = {
4776
5707
  session_id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
4777
5708
  project_id: string;
4778
5709
  /** Current lifecycle state of the session:
4779
- - `building`: has a user factor but is still gathering authentication factors
5710
+ - `building`: no verified authentication factors yet
4780
5711
  - `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age
4781
5712
  - `expired`: TTL elapsed
4782
5713
  */
@@ -4837,7 +5768,23 @@ Error code: auth.unauthorized
4837
5768
 
4838
5769
  */
4839
5770
  //#endregion
4840
- //#region src/generated/model/getMyUser200MetadataStatus.d.ts
5771
+ //#region src/generated/model/getMyUser200Attributes.d.ts
5772
+ /**
5773
+ * Generated by orval v8.10.0 🍺
5774
+ * Do not edit manually.
5775
+ * Zitadel NextGen
5776
+ * This is the next generation of the Zitadel identity platform.
5777
+ * OpenAPI spec version: 0.0.1
5778
+ */
5779
+ /**
5780
+ * The user's content, satisfying the schema named by `schema`. Property
5781
+ names and types are determined entirely by that schema.
5782
+
5783
+ */
5784
+ type GetMyUser200Attributes = {
5785
+ [key: string]: unknown;
5786
+ }; //#endregion
5787
+ //#region src/generated/model/getMyUser200MetadataStatus.d.ts
4841
5788
  /**
4842
5789
  * Generated by orval v8.10.0 🍺
4843
5790
  * Do not edit manually.
@@ -4872,17 +5819,29 @@ type GetMyUser200Metadata = {
4872
5819
  /**
4873
5820
  * A user represents an individual identity in the system. It can be used to
4874
5821
  represent a human user, but also a service account or any other type of
4875
- identity. The content of a user is determined by the configured schema for
4876
- users, this is only a base schema.
5822
+ identity.
4877
5823
 
4878
- The server assigns the resource primary key (`id`) on create. Clients must
4879
- not send `id` in the create body; it is returned in the create response.
5824
+ `attributes` is the document that satisfies the user schema named by
5825
+ `schema`: its property names and types are defined entirely by that schema,
5826
+ and it is what the schema validates. The rest of the object — `id`,
5827
+ `schema`, `metadata` — is the server-owned envelope. Keeping the two apart
5828
+ means a schema may name a property `id` or `metadata` without colliding with
5829
+ the envelope, and closed-world keywords (`additionalProperties: false`,
5830
+ `propertyNames`, `unevaluatedProperties`) behave as their author expects.
4880
5831
 
4881
5832
  */
4882
5833
  type GetMyUser200 = {
4883
- /** @pattern ^user_[a-zA-Z0-9_-]+$ */id?: string;
4884
- metadata?: GetMyUser200Metadata;
4885
- [key: string]: unknown;
5834
+ /** @pattern ^user_[a-zA-Z0-9_-]+$ */id: string;
5835
+ /** The schema that defines the content of `attributes`. These schemas can be
5836
+ created using the `/schemas` endpoint. A default schema is provided.
5837
+ This schema can be retrieved using the same endpoint.
5838
+ */
5839
+ schema: string;
5840
+ /** The user's content, satisfying the schema named by `schema`. Property
5841
+ names and types are determined entirely by that schema.
5842
+ */
5843
+ attributes: GetMyUser200Attributes;
5844
+ metadata: GetMyUser200Metadata;
4886
5845
  }; //#endregion
4887
5846
  //#region src/generated/model/getMyUser401Details.d.ts
4888
5847
  /**
@@ -4970,43 +5929,18 @@ type GetSchemaById200 = {
4970
5929
  "x-auth-methods": {
4971
5930
  password?: {
4972
5931
  /** Whether the authentication method is enabled or not */enabled: boolean;
4973
- /**
4974
- * The position of the authentication method in the list of supported methods
4975
- * @minimum 0
4976
- */
4977
- position: number;
4978
5932
  };
4979
5933
  passkey?: {
4980
5934
  /** Whether the authentication method is enabled or not */enabled: boolean;
4981
- /**
4982
- * The position of the authentication method in the list of supported methods
4983
- * @minimum 0
4984
- */
4985
- position: number;
4986
5935
  };
4987
5936
  magic_link?: {
4988
5937
  /** Whether the authentication method is enabled or not */enabled: boolean;
4989
- /**
4990
- * The position of the authentication method in the list of supported methods
4991
- * @minimum 0
4992
- */
4993
- position: number;
4994
5938
  };
4995
5939
  sso?: {
4996
5940
  /** Whether the authentication method is enabled or not */enabled: boolean;
4997
- /**
4998
- * The position of the authentication method in the list of supported methods
4999
- * @minimum 0
5000
- */
5001
- position: number;
5002
5941
  };
5003
5942
  otp?: {
5004
5943
  /** Whether the authentication method is enabled or not */enabled: boolean;
5005
- /**
5006
- * The position of the authentication method in the list of supported methods
5007
- * @minimum 0
5008
- */
5009
- position: number;
5010
5944
  };
5011
5945
  };
5012
5946
  /** A map of additional properties for the user definition, where the
@@ -5014,14 +5948,13 @@ type GetSchemaById200 = {
5014
5948
  */
5015
5949
  properties?: {
5016
5950
  [key: string]: {
5017
- /** The verification method for this property, if applicable */"x-verify"?: string | null; /** The level of uniqueness for this property, if applicable */
5018
- "x-unique"?: "unspecified" | "project" | "team" | null; /** The claim name for this property, if applicable */
5019
- "x-claim"?: string | null; /** Whether this property is editable by the user or not */
5020
- "x-editable"?: boolean; /** Whether this property contains sensitive information or not */
5021
- "x-sensitive"?: boolean;
5022
- /** Whether this property is used for multi-factor authentication or not
5023
- */
5024
- "x-mfa"?: boolean;
5951
+ /** The level of uniqueness for this property, if applicable */"x-unique"?: "unspecified" | "project" | "team" | null; /** The claim name for this property, if applicable */
5952
+ "x-claim"?: string | null;
5953
+ /** Whether this property's value may appear in audit event payloads. Audit
5954
+ payloads are deny-by-default: a property without this annotation
5955
+ contributes its key but never its value.
5956
+ */
5957
+ "x-audit"?: boolean;
5025
5958
  /** A map of additional properties for the user definition, where the key is
5026
5959
  the property name and the value is the property schema.
5027
5960
  */
@@ -5054,11 +5987,6 @@ type GetSchemaById200 = {
5054
5987
  * OpenAPI spec version: 0.0.1
5055
5988
  */
5056
5989
  type GetSchemaByIdParams = {
5057
- /**
5058
- * The unique identifier of the project
5059
- * @pattern ^[a-zA-Z0-9_-]+$
5060
- */
5061
- project_id: string;
5062
5990
  /**
5063
5991
  * The unique identifier of the team
5064
5992
  * @pattern ^[a-zA-Z0-9_-]+$
@@ -5148,7 +6076,7 @@ type GetSession200Metadata = {
5148
6076
  */
5149
6077
  /**
5150
6078
  * Current lifecycle state of the session:
5151
- - `building`: has a user factor but is still gathering authentication factors
6079
+ - `building`: no verified authentication factors yet
5152
6080
  - `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age
5153
6081
  - `expired`: TTL elapsed
5154
6082
 
@@ -5193,7 +6121,7 @@ type GetSession200 = {
5193
6121
  session_id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
5194
6122
  project_id: string;
5195
6123
  /** Current lifecycle state of the session:
5196
- - `building`: has a user factor but is still gathering authentication factors
6124
+ - `building`: no verified authentication factors yet
5197
6125
  - `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age
5198
6126
  - `expired`: TTL elapsed
5199
6127
  */
@@ -5251,21 +6179,6 @@ type GetSession200 = {
5251
6179
  * Additional error-specific context.
5252
6180
  */
5253
6181
  //#endregion
5254
- //#region src/generated/model/getSessionParams.d.ts
5255
- /**
5256
- * Generated by orval v8.10.0 🍺
5257
- * Do not edit manually.
5258
- * Zitadel NextGen
5259
- * This is the next generation of the Zitadel identity platform.
5260
- * OpenAPI spec version: 0.0.1
5261
- */
5262
- type GetSessionParams = {
5263
- /**
5264
- * The unique identifier of the project
5265
- * @pattern ^[a-zA-Z0-9_-]+$
5266
- */
5267
- project_id: string;
5268
- }; //#endregion
5269
6182
  //#region src/generated/model/getTeam200Status.d.ts
5270
6183
  /**
5271
6184
  * Generated by orval v8.10.0 🍺
@@ -5313,7 +6226,7 @@ type GetTeam200 = {
5313
6226
  * Additional error-specific context.
5314
6227
  */
5315
6228
  //#endregion
5316
- //#region src/generated/model/getTeamParams.d.ts
6229
+ //#region src/generated/model/getUserByID200Attributes.d.ts
5317
6230
  /**
5318
6231
  * Generated by orval v8.10.0 🍺
5319
6232
  * Do not edit manually.
@@ -5321,12 +6234,13 @@ type GetTeam200 = {
5321
6234
  * This is the next generation of the Zitadel identity platform.
5322
6235
  * OpenAPI spec version: 0.0.1
5323
6236
  */
5324
- type GetTeamParams = {
5325
- /**
5326
- * The unique identifier of the project
5327
- * @pattern ^[a-zA-Z0-9_-]+$
5328
- */
5329
- project_id: string;
6237
+ /**
6238
+ * The user's content, satisfying the schema named by `schema`. Property
6239
+ names and types are determined entirely by that schema.
6240
+
6241
+ */
6242
+ type GetUserByID200Attributes = {
6243
+ [key: string]: unknown;
5330
6244
  }; //#endregion
5331
6245
  //#region src/generated/model/getUserByID200MetadataStatus.d.ts
5332
6246
  /**
@@ -5363,17 +6277,29 @@ type GetUserByID200Metadata = {
5363
6277
  /**
5364
6278
  * A user represents an individual identity in the system. It can be used to
5365
6279
  represent a human user, but also a service account or any other type of
5366
- identity. The content of a user is determined by the configured schema for
5367
- users, this is only a base schema.
6280
+ identity.
5368
6281
 
5369
- The server assigns the resource primary key (`id`) on create. Clients must
5370
- not send `id` in the create body; it is returned in the create response.
6282
+ `attributes` is the document that satisfies the user schema named by
6283
+ `schema`: its property names and types are defined entirely by that schema,
6284
+ and it is what the schema validates. The rest of the object — `id`,
6285
+ `schema`, `metadata` — is the server-owned envelope. Keeping the two apart
6286
+ means a schema may name a property `id` or `metadata` without colliding with
6287
+ the envelope, and closed-world keywords (`additionalProperties: false`,
6288
+ `propertyNames`, `unevaluatedProperties`) behave as their author expects.
5371
6289
 
5372
6290
  */
5373
6291
  type GetUserByID200 = {
5374
- /** @pattern ^user_[a-zA-Z0-9_-]+$ */id?: string;
5375
- metadata?: GetUserByID200Metadata;
5376
- [key: string]: unknown;
6292
+ /** @pattern ^user_[a-zA-Z0-9_-]+$ */id: string;
6293
+ /** The schema that defines the content of `attributes`. These schemas can be
6294
+ created using the `/schemas` endpoint. A default schema is provided.
6295
+ This schema can be retrieved using the same endpoint.
6296
+ */
6297
+ schema: string;
6298
+ /** The user's content, satisfying the schema named by `schema`. Property
6299
+ names and types are determined entirely by that schema.
6300
+ */
6301
+ attributes: GetUserByID200Attributes;
6302
+ metadata: GetUserByID200Metadata;
5377
6303
  }; //#endregion
5378
6304
  //#region src/generated/model/getUserByID401Details.d.ts
5379
6305
  /**
@@ -5396,11 +6322,6 @@ type GetUserByID200 = {
5396
6322
  * OpenAPI spec version: 0.0.1
5397
6323
  */
5398
6324
  type GetUserByIDParams = {
5399
- /**
5400
- * The unique identifier of the project
5401
- * @pattern ^[a-zA-Z0-9_-]+$
5402
- */
5403
- project_id: string;
5404
6325
  /**
5405
6326
  * The unique identifier of the team
5406
6327
  * @pattern ^[a-zA-Z0-9_-]+$
@@ -5644,6 +6565,1067 @@ type ListBrandingParams = {
5644
6565
  */
5645
6566
  project_id: string;
5646
6567
  }; //#endregion
6568
+ //#region src/generated/model/listEvents200DataItem.d.ts
6569
+ /**
6570
+ * Generated by orval v8.10.0 🍺
6571
+ * Do not edit manually.
6572
+ * Zitadel NextGen
6573
+ * This is the next generation of the Zitadel identity platform.
6574
+ * OpenAPI spec version: 0.0.1
6575
+ */
6576
+ /**
6577
+ * Discriminated wide-event union (ADR 048 / ADR 049). Clients select the
6578
+ member via event_type; each member carries a typed payload.
6579
+
6580
+ */
6581
+ type ListEvents200DataItem = ({
6582
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
6583
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
6584
+ team_id?: string | null;
6585
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
6586
+ see docs/design/api/events-catalog.md.
6587
+ */
6588
+ event_type: string; /** Wide-event category. */
6589
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
6590
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
6591
+ created_at: string; /** Who triggered the event. */
6592
+ actor_id?: string | null; /** Actor kind. */
6593
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
6594
+ entity_type?: string | null; /** Resource id affected. */
6595
+ entity_id?: string | null; /** Application or agent that produced the event. */
6596
+ client_id: string; /** Token id present at emit time, when any. */
6597
+ token_id?: string; /** Delegation kind (omit when unset). */
6598
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
6599
+ delegation_id?: string;
6600
+ grantor?: string; /** Device fingerprint correlation id. */
6601
+ fingerprint?: string; /** HTTP request correlation id. */
6602
+ request_id?: string | null; /** Session correlation id. */
6603
+ session_id?: string | null; /** Login flow correlation id. */
6604
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
6605
+ metadata?: {
6606
+ [key: string]: unknown;
6607
+ };
6608
+ } & {
6609
+ event_type: "auth.attempt.created";
6610
+ /** Empty payload for event types with no typed fields
6611
+ (e.g. `project.deleted`, `user.deleted`, `session.expired`).
6612
+ */
6613
+ payload: {
6614
+ [key: string]: unknown;
6615
+ };
6616
+ }) | ({
6617
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
6618
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
6619
+ team_id?: string | null;
6620
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
6621
+ see docs/design/api/events-catalog.md.
6622
+ */
6623
+ event_type: string; /** Wide-event category. */
6624
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
6625
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
6626
+ created_at: string; /** Who triggered the event. */
6627
+ actor_id?: string | null; /** Actor kind. */
6628
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
6629
+ entity_type?: string | null; /** Resource id affected. */
6630
+ entity_id?: string | null; /** Application or agent that produced the event. */
6631
+ client_id: string; /** Token id present at emit time, when any. */
6632
+ token_id?: string; /** Delegation kind (omit when unset). */
6633
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
6634
+ delegation_id?: string;
6635
+ grantor?: string; /** Device fingerprint correlation id. */
6636
+ fingerprint?: string; /** HTTP request correlation id. */
6637
+ request_id?: string | null; /** Session correlation id. */
6638
+ session_id?: string | null; /** Login flow correlation id. */
6639
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
6640
+ metadata?: {
6641
+ [key: string]: unknown;
6642
+ };
6643
+ } & {
6644
+ event_type: "auth.attempt.handed_off";
6645
+ /** Empty payload for event types with no typed fields
6646
+ (e.g. `project.deleted`, `user.deleted`, `session.expired`).
6647
+ */
6648
+ payload: {
6649
+ [key: string]: unknown;
6650
+ };
6651
+ }) | ({
6652
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
6653
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
6654
+ team_id?: string | null;
6655
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
6656
+ see docs/design/api/events-catalog.md.
6657
+ */
6658
+ event_type: string; /** Wide-event category. */
6659
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
6660
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
6661
+ created_at: string; /** Who triggered the event. */
6662
+ actor_id?: string | null; /** Actor kind. */
6663
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
6664
+ entity_type?: string | null; /** Resource id affected. */
6665
+ entity_id?: string | null; /** Application or agent that produced the event. */
6666
+ client_id: string; /** Token id present at emit time, when any. */
6667
+ token_id?: string; /** Delegation kind (omit when unset). */
6668
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
6669
+ delegation_id?: string;
6670
+ grantor?: string; /** Device fingerprint correlation id. */
6671
+ fingerprint?: string; /** HTTP request correlation id. */
6672
+ request_id?: string | null; /** Session correlation id. */
6673
+ session_id?: string | null; /** Login flow correlation id. */
6674
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
6675
+ metadata?: {
6676
+ [key: string]: unknown;
6677
+ };
6678
+ } & {
6679
+ event_type: "auth.check.failed";
6680
+ /** Payload for `auth.check.failed` / `auth.check.succeeded`.
6681
+ `auth_attempt_id` joins the check to its attempt for SIEM correlation.
6682
+ */
6683
+ payload: {
6684
+ check_id: string;
6685
+ check_type?: string;
6686
+ auth_attempt_id?: string;
6687
+ };
6688
+ }) | ({
6689
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
6690
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
6691
+ team_id?: string | null;
6692
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
6693
+ see docs/design/api/events-catalog.md.
6694
+ */
6695
+ event_type: string; /** Wide-event category. */
6696
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
6697
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
6698
+ created_at: string; /** Who triggered the event. */
6699
+ actor_id?: string | null; /** Actor kind. */
6700
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
6701
+ entity_type?: string | null; /** Resource id affected. */
6702
+ entity_id?: string | null; /** Application or agent that produced the event. */
6703
+ client_id: string; /** Token id present at emit time, when any. */
6704
+ token_id?: string; /** Delegation kind (omit when unset). */
6705
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
6706
+ delegation_id?: string;
6707
+ grantor?: string; /** Device fingerprint correlation id. */
6708
+ fingerprint?: string; /** HTTP request correlation id. */
6709
+ request_id?: string | null; /** Session correlation id. */
6710
+ session_id?: string | null; /** Login flow correlation id. */
6711
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
6712
+ metadata?: {
6713
+ [key: string]: unknown;
6714
+ };
6715
+ } & {
6716
+ event_type: "auth.check.succeeded";
6717
+ /** Payload for `auth.check.failed` / `auth.check.succeeded`.
6718
+ `auth_attempt_id` joins the check to its attempt for SIEM correlation.
6719
+ */
6720
+ payload: {
6721
+ check_id: string;
6722
+ check_type?: string;
6723
+ auth_attempt_id?: string;
6724
+ };
6725
+ }) | ({
6726
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
6727
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
6728
+ team_id?: string | null;
6729
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
6730
+ see docs/design/api/events-catalog.md.
6731
+ */
6732
+ event_type: string; /** Wide-event category. */
6733
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
6734
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
6735
+ created_at: string; /** Who triggered the event. */
6736
+ actor_id?: string | null; /** Actor kind. */
6737
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
6738
+ entity_type?: string | null; /** Resource id affected. */
6739
+ entity_id?: string | null; /** Application or agent that produced the event. */
6740
+ client_id: string; /** Token id present at emit time, when any. */
6741
+ token_id?: string; /** Delegation kind (omit when unset). */
6742
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
6743
+ delegation_id?: string;
6744
+ grantor?: string; /** Device fingerprint correlation id. */
6745
+ fingerprint?: string; /** HTTP request correlation id. */
6746
+ request_id?: string | null; /** Session correlation id. */
6747
+ session_id?: string | null; /** Login flow correlation id. */
6748
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
6749
+ metadata?: {
6750
+ [key: string]: unknown;
6751
+ };
6752
+ } & {
6753
+ event_type: "auth.factor.passkey.enrolled"; /** Payload for `auth.factor.*` events. */
6754
+ payload: {
6755
+ user_id: string;
6756
+ factor_id?: string;
6757
+ };
6758
+ }) | ({
6759
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
6760
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
6761
+ team_id?: string | null;
6762
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
6763
+ see docs/design/api/events-catalog.md.
6764
+ */
6765
+ event_type: string; /** Wide-event category. */
6766
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
6767
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
6768
+ created_at: string; /** Who triggered the event. */
6769
+ actor_id?: string | null; /** Actor kind. */
6770
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
6771
+ entity_type?: string | null; /** Resource id affected. */
6772
+ entity_id?: string | null; /** Application or agent that produced the event. */
6773
+ client_id: string; /** Token id present at emit time, when any. */
6774
+ token_id?: string; /** Delegation kind (omit when unset). */
6775
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
6776
+ delegation_id?: string;
6777
+ grantor?: string; /** Device fingerprint correlation id. */
6778
+ fingerprint?: string; /** HTTP request correlation id. */
6779
+ request_id?: string | null; /** Session correlation id. */
6780
+ session_id?: string | null; /** Login flow correlation id. */
6781
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
6782
+ metadata?: {
6783
+ [key: string]: unknown;
6784
+ };
6785
+ } & {
6786
+ event_type: "auth.factor.password.set"; /** Payload for `auth.factor.*` events. */
6787
+ payload: {
6788
+ user_id: string;
6789
+ factor_id?: string;
6790
+ };
6791
+ }) | ({
6792
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
6793
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
6794
+ team_id?: string | null;
6795
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
6796
+ see docs/design/api/events-catalog.md.
6797
+ */
6798
+ event_type: string; /** Wide-event category. */
6799
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
6800
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
6801
+ created_at: string; /** Who triggered the event. */
6802
+ actor_id?: string | null; /** Actor kind. */
6803
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
6804
+ entity_type?: string | null; /** Resource id affected. */
6805
+ entity_id?: string | null; /** Application or agent that produced the event. */
6806
+ client_id: string; /** Token id present at emit time, when any. */
6807
+ token_id?: string; /** Delegation kind (omit when unset). */
6808
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
6809
+ delegation_id?: string;
6810
+ grantor?: string; /** Device fingerprint correlation id. */
6811
+ fingerprint?: string; /** HTTP request correlation id. */
6812
+ request_id?: string | null; /** Session correlation id. */
6813
+ session_id?: string | null; /** Login flow correlation id. */
6814
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
6815
+ metadata?: {
6816
+ [key: string]: unknown;
6817
+ };
6818
+ } & {
6819
+ event_type: "auth.token.issued"; /** Payload for `auth.token.issued` events. */
6820
+ payload: {
6821
+ scopes?: string[];
6822
+ };
6823
+ }) | ({
6824
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
6825
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
6826
+ team_id?: string | null;
6827
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
6828
+ see docs/design/api/events-catalog.md.
6829
+ */
6830
+ event_type: string; /** Wide-event category. */
6831
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
6832
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
6833
+ created_at: string; /** Who triggered the event. */
6834
+ actor_id?: string | null; /** Actor kind. */
6835
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
6836
+ entity_type?: string | null; /** Resource id affected. */
6837
+ entity_id?: string | null; /** Application or agent that produced the event. */
6838
+ client_id: string; /** Token id present at emit time, when any. */
6839
+ token_id?: string; /** Delegation kind (omit when unset). */
6840
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
6841
+ delegation_id?: string;
6842
+ grantor?: string; /** Device fingerprint correlation id. */
6843
+ fingerprint?: string; /** HTTP request correlation id. */
6844
+ request_id?: string | null; /** Session correlation id. */
6845
+ session_id?: string | null; /** Login flow correlation id. */
6846
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
6847
+ metadata?: {
6848
+ [key: string]: unknown;
6849
+ };
6850
+ } & {
6851
+ event_type: "auth.token.revoked";
6852
+ /** Empty payload for event types with no typed fields
6853
+ (e.g. `project.deleted`, `user.deleted`, `session.expired`).
6854
+ */
6855
+ payload: {
6856
+ [key: string]: unknown;
6857
+ };
6858
+ }) | ({
6859
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
6860
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
6861
+ team_id?: string | null;
6862
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
6863
+ see docs/design/api/events-catalog.md.
6864
+ */
6865
+ event_type: string; /** Wide-event category. */
6866
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
6867
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
6868
+ created_at: string; /** Who triggered the event. */
6869
+ actor_id?: string | null; /** Actor kind. */
6870
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
6871
+ entity_type?: string | null; /** Resource id affected. */
6872
+ entity_id?: string | null; /** Application or agent that produced the event. */
6873
+ client_id: string; /** Token id present at emit time, when any. */
6874
+ token_id?: string; /** Delegation kind (omit when unset). */
6875
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
6876
+ delegation_id?: string;
6877
+ grantor?: string; /** Device fingerprint correlation id. */
6878
+ fingerprint?: string; /** HTTP request correlation id. */
6879
+ request_id?: string | null; /** Session correlation id. */
6880
+ session_id?: string | null; /** Login flow correlation id. */
6881
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
6882
+ metadata?: {
6883
+ [key: string]: unknown;
6884
+ };
6885
+ } & {
6886
+ event_type: "authz.granted"; /** Payload for `authz.granted` events. */
6887
+ payload: {
6888
+ principal_type?: string;
6889
+ principal_id?: string;
6890
+ relation?: string;
6891
+ };
6892
+ }) | ({
6893
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
6894
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
6895
+ team_id?: string | null;
6896
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
6897
+ see docs/design/api/events-catalog.md.
6898
+ */
6899
+ event_type: string; /** Wide-event category. */
6900
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
6901
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
6902
+ created_at: string; /** Who triggered the event. */
6903
+ actor_id?: string | null; /** Actor kind. */
6904
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
6905
+ entity_type?: string | null; /** Resource id affected. */
6906
+ entity_id?: string | null; /** Application or agent that produced the event. */
6907
+ client_id: string; /** Token id present at emit time, when any. */
6908
+ token_id?: string; /** Delegation kind (omit when unset). */
6909
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
6910
+ delegation_id?: string;
6911
+ grantor?: string; /** Device fingerprint correlation id. */
6912
+ fingerprint?: string; /** HTTP request correlation id. */
6913
+ request_id?: string | null; /** Session correlation id. */
6914
+ session_id?: string | null; /** Login flow correlation id. */
6915
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
6916
+ metadata?: {
6917
+ [key: string]: unknown;
6918
+ };
6919
+ } & {
6920
+ event_type: "branding.created";
6921
+ /** Allowlisted fields for `branding.created`. Omits `liquid_template`.
6922
+ */
6923
+ payload: {
6924
+ layout?: string;
6925
+ logo_url?: string;
6926
+ font_url?: string;
6927
+ hero_url?: string;
6928
+ };
6929
+ }) | ({
6930
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
6931
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
6932
+ team_id?: string | null;
6933
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
6934
+ see docs/design/api/events-catalog.md.
6935
+ */
6936
+ event_type: string; /** Wide-event category. */
6937
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
6938
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
6939
+ created_at: string; /** Who triggered the event. */
6940
+ actor_id?: string | null; /** Actor kind. */
6941
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
6942
+ entity_type?: string | null; /** Resource id affected. */
6943
+ entity_id?: string | null; /** Application or agent that produced the event. */
6944
+ client_id: string; /** Token id present at emit time, when any. */
6945
+ token_id?: string; /** Delegation kind (omit when unset). */
6946
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
6947
+ delegation_id?: string;
6948
+ grantor?: string; /** Device fingerprint correlation id. */
6949
+ fingerprint?: string; /** HTTP request correlation id. */
6950
+ request_id?: string | null; /** Session correlation id. */
6951
+ session_id?: string | null; /** Login flow correlation id. */
6952
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
6953
+ metadata?: {
6954
+ [key: string]: unknown;
6955
+ };
6956
+ } & {
6957
+ event_type: "flowdef.created";
6958
+ /** Shared allowlisted fields for `flowdef.created` (full snapshot) and
6959
+ `flowdef.updated` (delta: only changed fields present). Steps are omitted.
6960
+ */
6961
+ payload: {
6962
+ name?: string;
6963
+ status?: string;
6964
+ user_schema?: string;
6965
+ purposes?: {
6966
+ [key: string]: string;
6967
+ };
6968
+ audience?: {
6969
+ app_ids?: string[];
6970
+ team_ids?: string[];
6971
+ };
6972
+ };
6973
+ }) | ({
6974
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
6975
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
6976
+ team_id?: string | null;
6977
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
6978
+ see docs/design/api/events-catalog.md.
6979
+ */
6980
+ event_type: string; /** Wide-event category. */
6981
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
6982
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
6983
+ created_at: string; /** Who triggered the event. */
6984
+ actor_id?: string | null; /** Actor kind. */
6985
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
6986
+ entity_type?: string | null; /** Resource id affected. */
6987
+ entity_id?: string | null; /** Application or agent that produced the event. */
6988
+ client_id: string; /** Token id present at emit time, when any. */
6989
+ token_id?: string; /** Delegation kind (omit when unset). */
6990
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
6991
+ delegation_id?: string;
6992
+ grantor?: string; /** Device fingerprint correlation id. */
6993
+ fingerprint?: string; /** HTTP request correlation id. */
6994
+ request_id?: string | null; /** Session correlation id. */
6995
+ session_id?: string | null; /** Login flow correlation id. */
6996
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
6997
+ metadata?: {
6998
+ [key: string]: unknown;
6999
+ };
7000
+ } & {
7001
+ event_type: "flowdef.deleted";
7002
+ /** Empty payload for event types with no typed fields
7003
+ (e.g. `project.deleted`, `user.deleted`, `session.expired`).
7004
+ */
7005
+ payload: {
7006
+ [key: string]: unknown;
7007
+ };
7008
+ }) | ({
7009
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
7010
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
7011
+ team_id?: string | null;
7012
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
7013
+ see docs/design/api/events-catalog.md.
7014
+ */
7015
+ event_type: string; /** Wide-event category. */
7016
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
7017
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
7018
+ created_at: string; /** Who triggered the event. */
7019
+ actor_id?: string | null; /** Actor kind. */
7020
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
7021
+ entity_type?: string | null; /** Resource id affected. */
7022
+ entity_id?: string | null; /** Application or agent that produced the event. */
7023
+ client_id: string; /** Token id present at emit time, when any. */
7024
+ token_id?: string; /** Delegation kind (omit when unset). */
7025
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
7026
+ delegation_id?: string;
7027
+ grantor?: string; /** Device fingerprint correlation id. */
7028
+ fingerprint?: string; /** HTTP request correlation id. */
7029
+ request_id?: string | null; /** Session correlation id. */
7030
+ session_id?: string | null; /** Login flow correlation id. */
7031
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
7032
+ metadata?: {
7033
+ [key: string]: unknown;
7034
+ };
7035
+ } & {
7036
+ event_type: "flowdef.updated";
7037
+ /** Shared allowlisted fields for `flowdef.created` (full snapshot) and
7038
+ `flowdef.updated` (delta: only changed fields present). Steps are omitted.
7039
+ */
7040
+ payload: {
7041
+ name?: string;
7042
+ status?: string;
7043
+ user_schema?: string;
7044
+ purposes?: {
7045
+ [key: string]: string;
7046
+ };
7047
+ audience?: {
7048
+ app_ids?: string[];
7049
+ team_ids?: string[];
7050
+ };
7051
+ };
7052
+ }) | ({
7053
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
7054
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
7055
+ team_id?: string | null;
7056
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
7057
+ see docs/design/api/events-catalog.md.
7058
+ */
7059
+ event_type: string; /** Wide-event category. */
7060
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
7061
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
7062
+ created_at: string; /** Who triggered the event. */
7063
+ actor_id?: string | null; /** Actor kind. */
7064
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
7065
+ entity_type?: string | null; /** Resource id affected. */
7066
+ entity_id?: string | null; /** Application or agent that produced the event. */
7067
+ client_id: string; /** Token id present at emit time, when any. */
7068
+ token_id?: string; /** Delegation kind (omit when unset). */
7069
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
7070
+ delegation_id?: string;
7071
+ grantor?: string; /** Device fingerprint correlation id. */
7072
+ fingerprint?: string; /** HTTP request correlation id. */
7073
+ request_id?: string | null; /** Session correlation id. */
7074
+ session_id?: string | null; /** Login flow correlation id. */
7075
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
7076
+ metadata?: {
7077
+ [key: string]: unknown;
7078
+ };
7079
+ } & {
7080
+ event_type: "project.created";
7081
+ /** Shared allowlisted fields for `project.created` (full snapshot) and
7082
+ `project.updated` (delta: only changed fields present).
7083
+ */
7084
+ payload: {
7085
+ name?: string;
7086
+ preview_origins?: string[];
7087
+ };
7088
+ }) | ({
7089
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
7090
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
7091
+ team_id?: string | null;
7092
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
7093
+ see docs/design/api/events-catalog.md.
7094
+ */
7095
+ event_type: string; /** Wide-event category. */
7096
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
7097
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
7098
+ created_at: string; /** Who triggered the event. */
7099
+ actor_id?: string | null; /** Actor kind. */
7100
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
7101
+ entity_type?: string | null; /** Resource id affected. */
7102
+ entity_id?: string | null; /** Application or agent that produced the event. */
7103
+ client_id: string; /** Token id present at emit time, when any. */
7104
+ token_id?: string; /** Delegation kind (omit when unset). */
7105
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
7106
+ delegation_id?: string;
7107
+ grantor?: string; /** Device fingerprint correlation id. */
7108
+ fingerprint?: string; /** HTTP request correlation id. */
7109
+ request_id?: string | null; /** Session correlation id. */
7110
+ session_id?: string | null; /** Login flow correlation id. */
7111
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
7112
+ metadata?: {
7113
+ [key: string]: unknown;
7114
+ };
7115
+ } & {
7116
+ event_type: "project.deleted";
7117
+ /** Empty payload for event types with no typed fields
7118
+ (e.g. `project.deleted`, `user.deleted`, `session.expired`).
7119
+ */
7120
+ payload: {
7121
+ [key: string]: unknown;
7122
+ };
7123
+ }) | ({
7124
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
7125
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
7126
+ team_id?: string | null;
7127
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
7128
+ see docs/design/api/events-catalog.md.
7129
+ */
7130
+ event_type: string; /** Wide-event category. */
7131
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
7132
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
7133
+ created_at: string; /** Who triggered the event. */
7134
+ actor_id?: string | null; /** Actor kind. */
7135
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
7136
+ entity_type?: string | null; /** Resource id affected. */
7137
+ entity_id?: string | null; /** Application or agent that produced the event. */
7138
+ client_id: string; /** Token id present at emit time, when any. */
7139
+ token_id?: string; /** Delegation kind (omit when unset). */
7140
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
7141
+ delegation_id?: string;
7142
+ grantor?: string; /** Device fingerprint correlation id. */
7143
+ fingerprint?: string; /** HTTP request correlation id. */
7144
+ request_id?: string | null; /** Session correlation id. */
7145
+ session_id?: string | null; /** Login flow correlation id. */
7146
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
7147
+ metadata?: {
7148
+ [key: string]: unknown;
7149
+ };
7150
+ } & {
7151
+ event_type: "project.updated";
7152
+ /** Shared allowlisted fields for `project.created` (full snapshot) and
7153
+ `project.updated` (delta: only changed fields present).
7154
+ */
7155
+ payload: {
7156
+ name?: string;
7157
+ preview_origins?: string[];
7158
+ };
7159
+ }) | ({
7160
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
7161
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
7162
+ team_id?: string | null;
7163
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
7164
+ see docs/design/api/events-catalog.md.
7165
+ */
7166
+ event_type: string; /** Wide-event category. */
7167
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
7168
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
7169
+ created_at: string; /** Who triggered the event. */
7170
+ actor_id?: string | null; /** Actor kind. */
7171
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
7172
+ entity_type?: string | null; /** Resource id affected. */
7173
+ entity_id?: string | null; /** Application or agent that produced the event. */
7174
+ client_id: string; /** Token id present at emit time, when any. */
7175
+ token_id?: string; /** Delegation kind (omit when unset). */
7176
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
7177
+ delegation_id?: string;
7178
+ grantor?: string; /** Device fingerprint correlation id. */
7179
+ fingerprint?: string; /** HTTP request correlation id. */
7180
+ request_id?: string | null; /** Session correlation id. */
7181
+ session_id?: string | null; /** Login flow correlation id. */
7182
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
7183
+ metadata?: {
7184
+ [key: string]: unknown;
7185
+ };
7186
+ } & {
7187
+ event_type: "request.api"; /** Payload for `request.api` events. */
7188
+ payload: {
7189
+ operation_id: string; /** HTTP method. */
7190
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
7191
+ route_template: string;
7192
+ /**
7193
+ * @minimum 100
7194
+ * @maximum 599
7195
+ */
7196
+ status: number; /** @minimum 0 */
7197
+ duration_ms: number;
7198
+ };
7199
+ }) | ({
7200
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
7201
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
7202
+ team_id?: string | null;
7203
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
7204
+ see docs/design/api/events-catalog.md.
7205
+ */
7206
+ event_type: string; /** Wide-event category. */
7207
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
7208
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
7209
+ created_at: string; /** Who triggered the event. */
7210
+ actor_id?: string | null; /** Actor kind. */
7211
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
7212
+ entity_type?: string | null; /** Resource id affected. */
7213
+ entity_id?: string | null; /** Application or agent that produced the event. */
7214
+ client_id: string; /** Token id present at emit time, when any. */
7215
+ token_id?: string; /** Delegation kind (omit when unset). */
7216
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
7217
+ delegation_id?: string;
7218
+ grantor?: string; /** Device fingerprint correlation id. */
7219
+ fingerprint?: string; /** HTTP request correlation id. */
7220
+ request_id?: string | null; /** Session correlation id. */
7221
+ session_id?: string | null; /** Login flow correlation id. */
7222
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
7223
+ metadata?: {
7224
+ [key: string]: unknown;
7225
+ };
7226
+ } & {
7227
+ event_type: "schema.created";
7228
+ /** Empty payload for event types with no typed fields
7229
+ (e.g. `project.deleted`, `user.deleted`, `session.expired`).
7230
+ */
7231
+ payload: {
7232
+ [key: string]: unknown;
7233
+ };
7234
+ }) | ({
7235
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
7236
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
7237
+ team_id?: string | null;
7238
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
7239
+ see docs/design/api/events-catalog.md.
7240
+ */
7241
+ event_type: string; /** Wide-event category. */
7242
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
7243
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
7244
+ created_at: string; /** Who triggered the event. */
7245
+ actor_id?: string | null; /** Actor kind. */
7246
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
7247
+ entity_type?: string | null; /** Resource id affected. */
7248
+ entity_id?: string | null; /** Application or agent that produced the event. */
7249
+ client_id: string; /** Token id present at emit time, when any. */
7250
+ token_id?: string; /** Delegation kind (omit when unset). */
7251
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
7252
+ delegation_id?: string;
7253
+ grantor?: string; /** Device fingerprint correlation id. */
7254
+ fingerprint?: string; /** HTTP request correlation id. */
7255
+ request_id?: string | null; /** Session correlation id. */
7256
+ session_id?: string | null; /** Login flow correlation id. */
7257
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
7258
+ metadata?: {
7259
+ [key: string]: unknown;
7260
+ };
7261
+ } & {
7262
+ event_type: "session.deleted"; /** Payload for `session.deleted` events. */
7263
+ payload: {
7264
+ reason?: string;
7265
+ };
7266
+ }) | ({
7267
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
7268
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
7269
+ team_id?: string | null;
7270
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
7271
+ see docs/design/api/events-catalog.md.
7272
+ */
7273
+ event_type: string; /** Wide-event category. */
7274
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
7275
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
7276
+ created_at: string; /** Who triggered the event. */
7277
+ actor_id?: string | null; /** Actor kind. */
7278
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
7279
+ entity_type?: string | null; /** Resource id affected. */
7280
+ entity_id?: string | null; /** Application or agent that produced the event. */
7281
+ client_id: string; /** Token id present at emit time, when any. */
7282
+ token_id?: string; /** Delegation kind (omit when unset). */
7283
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
7284
+ delegation_id?: string;
7285
+ grantor?: string; /** Device fingerprint correlation id. */
7286
+ fingerprint?: string; /** HTTP request correlation id. */
7287
+ request_id?: string | null; /** Session correlation id. */
7288
+ session_id?: string | null; /** Login flow correlation id. */
7289
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
7290
+ metadata?: {
7291
+ [key: string]: unknown;
7292
+ };
7293
+ } & {
7294
+ event_type: "session.established"; /** Payload for `session.established` events. */
7295
+ payload: {
7296
+ user_id?: string;
7297
+ };
7298
+ }) | ({
7299
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
7300
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
7301
+ team_id?: string | null;
7302
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
7303
+ see docs/design/api/events-catalog.md.
7304
+ */
7305
+ event_type: string; /** Wide-event category. */
7306
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
7307
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
7308
+ created_at: string; /** Who triggered the event. */
7309
+ actor_id?: string | null; /** Actor kind. */
7310
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
7311
+ entity_type?: string | null; /** Resource id affected. */
7312
+ entity_id?: string | null; /** Application or agent that produced the event. */
7313
+ client_id: string; /** Token id present at emit time, when any. */
7314
+ token_id?: string; /** Delegation kind (omit when unset). */
7315
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
7316
+ delegation_id?: string;
7317
+ grantor?: string; /** Device fingerprint correlation id. */
7318
+ fingerprint?: string; /** HTTP request correlation id. */
7319
+ request_id?: string | null; /** Session correlation id. */
7320
+ session_id?: string | null; /** Login flow correlation id. */
7321
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
7322
+ metadata?: {
7323
+ [key: string]: unknown;
7324
+ };
7325
+ } & {
7326
+ event_type: "team.created";
7327
+ /** Shared allowlisted fields for `team.created` (snapshot) and
7328
+ `team.updated` (delta: only changed fields present).
7329
+ */
7330
+ payload: {
7331
+ name?: string;
7332
+ };
7333
+ }) | ({
7334
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
7335
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
7336
+ team_id?: string | null;
7337
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
7338
+ see docs/design/api/events-catalog.md.
7339
+ */
7340
+ event_type: string; /** Wide-event category. */
7341
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
7342
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
7343
+ created_at: string; /** Who triggered the event. */
7344
+ actor_id?: string | null; /** Actor kind. */
7345
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
7346
+ entity_type?: string | null; /** Resource id affected. */
7347
+ entity_id?: string | null; /** Application or agent that produced the event. */
7348
+ client_id: string; /** Token id present at emit time, when any. */
7349
+ token_id?: string; /** Delegation kind (omit when unset). */
7350
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
7351
+ delegation_id?: string;
7352
+ grantor?: string; /** Device fingerprint correlation id. */
7353
+ fingerprint?: string; /** HTTP request correlation id. */
7354
+ request_id?: string | null; /** Session correlation id. */
7355
+ session_id?: string | null; /** Login flow correlation id. */
7356
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
7357
+ metadata?: {
7358
+ [key: string]: unknown;
7359
+ };
7360
+ } & {
7361
+ event_type: "team.deactivated";
7362
+ /** Empty payload for event types with no typed fields
7363
+ (e.g. `project.deleted`, `user.deleted`, `session.expired`).
7364
+ */
7365
+ payload: {
7366
+ [key: string]: unknown;
7367
+ };
7368
+ }) | ({
7369
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
7370
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
7371
+ team_id?: string | null;
7372
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
7373
+ see docs/design/api/events-catalog.md.
7374
+ */
7375
+ event_type: string; /** Wide-event category. */
7376
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
7377
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
7378
+ created_at: string; /** Who triggered the event. */
7379
+ actor_id?: string | null; /** Actor kind. */
7380
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
7381
+ entity_type?: string | null; /** Resource id affected. */
7382
+ entity_id?: string | null; /** Application or agent that produced the event. */
7383
+ client_id: string; /** Token id present at emit time, when any. */
7384
+ token_id?: string; /** Delegation kind (omit when unset). */
7385
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
7386
+ delegation_id?: string;
7387
+ grantor?: string; /** Device fingerprint correlation id. */
7388
+ fingerprint?: string; /** HTTP request correlation id. */
7389
+ request_id?: string | null; /** Session correlation id. */
7390
+ session_id?: string | null; /** Login flow correlation id. */
7391
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
7392
+ metadata?: {
7393
+ [key: string]: unknown;
7394
+ };
7395
+ } & {
7396
+ event_type: "team.updated";
7397
+ /** Shared allowlisted fields for `team.created` (snapshot) and
7398
+ `team.updated` (delta: only changed fields present).
7399
+ */
7400
+ payload: {
7401
+ name?: string;
7402
+ };
7403
+ }) | ({
7404
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
7405
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
7406
+ team_id?: string | null;
7407
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
7408
+ see docs/design/api/events-catalog.md.
7409
+ */
7410
+ event_type: string; /** Wide-event category. */
7411
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
7412
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
7413
+ created_at: string; /** Who triggered the event. */
7414
+ actor_id?: string | null; /** Actor kind. */
7415
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
7416
+ entity_type?: string | null; /** Resource id affected. */
7417
+ entity_id?: string | null; /** Application or agent that produced the event. */
7418
+ client_id: string; /** Token id present at emit time, when any. */
7419
+ token_id?: string; /** Delegation kind (omit when unset). */
7420
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
7421
+ delegation_id?: string;
7422
+ grantor?: string; /** Device fingerprint correlation id. */
7423
+ fingerprint?: string; /** HTTP request correlation id. */
7424
+ request_id?: string | null; /** Session correlation id. */
7425
+ session_id?: string | null; /** Login flow correlation id. */
7426
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
7427
+ metadata?: {
7428
+ [key: string]: unknown;
7429
+ };
7430
+ } & {
7431
+ event_type: "user.create.failed"; /** Payload for `user.create.failed` events. */
7432
+ payload: {
7433
+ key_name?: string;
7434
+ };
7435
+ }) | ({
7436
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
7437
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
7438
+ team_id?: string | null;
7439
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
7440
+ see docs/design/api/events-catalog.md.
7441
+ */
7442
+ event_type: string; /** Wide-event category. */
7443
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
7444
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
7445
+ created_at: string; /** Who triggered the event. */
7446
+ actor_id?: string | null; /** Actor kind. */
7447
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
7448
+ entity_type?: string | null; /** Resource id affected. */
7449
+ entity_id?: string | null; /** Application or agent that produced the event. */
7450
+ client_id: string; /** Token id present at emit time, when any. */
7451
+ token_id?: string; /** Delegation kind (omit when unset). */
7452
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
7453
+ delegation_id?: string;
7454
+ grantor?: string; /** Device fingerprint correlation id. */
7455
+ fingerprint?: string; /** HTTP request correlation id. */
7456
+ request_id?: string | null; /** Session correlation id. */
7457
+ session_id?: string | null; /** Login flow correlation id. */
7458
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
7459
+ metadata?: {
7460
+ [key: string]: unknown;
7461
+ };
7462
+ } & {
7463
+ event_type: "user.created";
7464
+ /** Payload for `user.created`. Identity is `entity_id`; attribute values
7465
+ appear only for schema fields marked `x-audit`.
7466
+ */
7467
+ payload: {
7468
+ schema_id?: string;
7469
+ attribute_keys?: string[];
7470
+ attributes?: {
7471
+ [key: string]: unknown;
7472
+ };
7473
+ };
7474
+ }) | ({
7475
+ /** Managed event id (`evt_<opaque>`). */id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
7476
+ project_id: string; /** Emit-time team scope, when the actor operated under a team. */
7477
+ team_id?: string | null;
7478
+ /** Semantic event name (dot-separated). Discriminator for the Event union —
7479
+ see docs/design/api/events-catalog.md.
7480
+ */
7481
+ event_type: string; /** Wide-event category. */
7482
+ category: "request" | "auth" | "session" | "admin" | "entity" | "signal"; /** When the action happened (server/storage clock, dialect-owned). */
7483
+ occurred_at: string; /** When the row was inserted (server/storage clock, dialect-owned). */
7484
+ created_at: string; /** Who triggered the event. */
7485
+ actor_id?: string | null; /** Actor kind. */
7486
+ actor_type?: "human" | "service" | "system" | "agent" | null; /** Resource type affected. */
7487
+ entity_type?: string | null; /** Resource id affected. */
7488
+ entity_id?: string | null; /** Application or agent that produced the event. */
7489
+ client_id: string; /** Token id present at emit time, when any. */
7490
+ token_id?: string; /** Delegation kind (omit when unset). */
7491
+ delegation_type?: "direct" | "delegated" | "pat_shared" | "exchanged";
7492
+ delegation_id?: string;
7493
+ grantor?: string; /** Device fingerprint correlation id. */
7494
+ fingerprint?: string; /** HTTP request correlation id. */
7495
+ request_id?: string | null; /** Session correlation id. */
7496
+ session_id?: string | null; /** Login flow correlation id. */
7497
+ flow_id?: string | null; /** Additional emit-time metadata (already redacted). */
7498
+ metadata?: {
7499
+ [key: string]: unknown;
7500
+ };
7501
+ } & {
7502
+ event_type: "user.deleted";
7503
+ /** Empty payload for event types with no typed fields
7504
+ (e.g. `project.deleted`, `user.deleted`, `session.expired`).
7505
+ */
7506
+ payload: {
7507
+ [key: string]: unknown;
7508
+ };
7509
+ }); //#endregion
7510
+ //#region src/generated/model/listEvents200.d.ts
7511
+ /**
7512
+ * Paginated list of events (ADR 027 / ADR 049).
7513
+ */
7514
+ type ListEvents200 = {
7515
+ data: ListEvents200DataItem[];
7516
+ /** Token to pass as `page_token` in the next request to fetch the following page.
7517
+ Absent when there are no more results.
7518
+ */
7519
+ next_page_token?: string | null;
7520
+ }; //#endregion
7521
+ //#region src/generated/model/listEvents400Details.d.ts
7522
+ /**
7523
+ * Generated by orval v8.10.0 🍺
7524
+ * Do not edit manually.
7525
+ * Zitadel NextGen
7526
+ * This is the next generation of the Zitadel identity platform.
7527
+ * OpenAPI spec version: 0.0.1
7528
+ */
7529
+ /**
7530
+ * Additional error-specific context.
7531
+ */
7532
+ //#endregion
7533
+ //#region src/generated/model/listEventsCategoryItem.d.ts
7534
+ /**
7535
+ * Generated by orval v8.10.0 🍺
7536
+ * Do not edit manually.
7537
+ * Zitadel NextGen
7538
+ * This is the next generation of the Zitadel identity platform.
7539
+ * OpenAPI spec version: 0.0.1
7540
+ */
7541
+ type ListEventsCategoryItem = (typeof ListEventsCategoryItem)[keyof typeof ListEventsCategoryItem];
7542
+ declare const ListEventsCategoryItem: {
7543
+ readonly request: "request";
7544
+ readonly auth: "auth";
7545
+ readonly session: "session";
7546
+ readonly admin: "admin";
7547
+ readonly entity: "entity";
7548
+ readonly signal: "signal";
7549
+ }; //#endregion
7550
+ //#region src/generated/model/listEventsDefaultDetails.d.ts
7551
+ /**
7552
+ * Generated by orval v8.10.0 🍺
7553
+ * Do not edit manually.
7554
+ * Zitadel NextGen
7555
+ * This is the next generation of the Zitadel identity platform.
7556
+ * OpenAPI spec version: 0.0.1
7557
+ */
7558
+ /**
7559
+ * Additional error-specific context.
7560
+ */
7561
+ //#endregion
7562
+ //#region src/generated/model/listEventsOrder.d.ts
7563
+ /**
7564
+ * Generated by orval v8.10.0 🍺
7565
+ * Do not edit manually.
7566
+ * Zitadel NextGen
7567
+ * This is the next generation of the Zitadel identity platform.
7568
+ * OpenAPI spec version: 0.0.1
7569
+ */
7570
+ type ListEventsOrder = (typeof ListEventsOrder)[keyof typeof ListEventsOrder];
7571
+ declare const ListEventsOrder: {
7572
+ readonly asc: "asc";
7573
+ readonly desc: "desc";
7574
+ }; //#endregion
7575
+ //#region src/generated/model/listEventsParams.d.ts
7576
+ type ListEventsParams = {
7577
+ /**
7578
+ * The unique identifier of the project
7579
+ * @pattern ^[a-zA-Z0-9_-]+$
7580
+ */
7581
+ project_id: string;
7582
+ /**
7583
+ * Filter by wide-event category. Repeatable (OR within the parameter).
7584
+ */
7585
+ category?: ListEventsCategoryItem[];
7586
+ /**
7587
+ * Exact-match filter on `event_type`. Repeatable (OR within the parameter).
7588
+ */
7589
+ event_type?: string[];
7590
+ actor_id?: string;
7591
+ client_id?: string;
7592
+ session_id?: string;
7593
+ flow_id?: string;
7594
+ request_id?: string;
7595
+ fingerprint?: string;
7596
+ entity_type?: string;
7597
+ entity_id?: string;
7598
+ /**
7599
+ * Filter by emit-time team scope stored on the event.
7600
+ */
7601
+ team_id?: string;
7602
+ /**
7603
+ * Inclusive lower bound on `created_at` (RFC 3339).
7604
+ */
7605
+ created_after?: string;
7606
+ /**
7607
+ * Exclusive upper bound on `created_at` (RFC 3339).
7608
+ */
7609
+ created_before?: string;
7610
+ /**
7611
+ * Sort direction on `(created_at, id)`. Default `desc` (newest first)
7612
+ for audit UI. Pass `asc` for oldest-first.
7613
+ */
7614
+ order?: ListEventsOrder;
7615
+ /**
7616
+ * Token for fetching the next page of results.
7617
+ Obtain this value from `next_page_token` in the previous response.
7618
+ Omit to start from the beginning.
7619
+ Its format is opaque and may change between releases.
7620
+ */
7621
+ page_token?: string;
7622
+ /**
7623
+ * Maximum number of items to return.
7624
+ * @minimum 1
7625
+ * @maximum 100
7626
+ */
7627
+ limit?: number;
7628
+ }; //#endregion
5647
7629
  //#region src/generated/model/listFlowDefinitions200FlowDefinitionsItemStatus.d.ts
5648
7630
  /**
5649
7631
  * Generated by orval v8.10.0 🍺
@@ -5869,11 +7851,22 @@ type ListUserPasskeysParams = {
5869
7851
  Its format is opaque and may change between releases.
5870
7852
  */
5871
7853
  page_token?: string;
5872
- /**
5873
- * The unique identifier of the project
5874
- * @pattern ^[a-zA-Z0-9_-]+$
5875
- */
5876
- project_id: string;
7854
+ }; //#endregion
7855
+ //#region src/generated/model/listUsers200UsersItemAttributes.d.ts
7856
+ /**
7857
+ * Generated by orval v8.10.0 🍺
7858
+ * Do not edit manually.
7859
+ * Zitadel NextGen
7860
+ * This is the next generation of the Zitadel identity platform.
7861
+ * OpenAPI spec version: 0.0.1
7862
+ */
7863
+ /**
7864
+ * The user's content, satisfying the schema named by `schema`. Property
7865
+ names and types are determined entirely by that schema.
7866
+
7867
+ */
7868
+ type ListUsers200UsersItemAttributes = {
7869
+ [key: string]: unknown;
5877
7870
  }; //#endregion
5878
7871
  //#region src/generated/model/listUsers200UsersItemMetadataStatus.d.ts
5879
7872
  /**
@@ -5910,17 +7903,29 @@ type ListUsers200UsersItemMetadata = {
5910
7903
  /**
5911
7904
  * A user represents an individual identity in the system. It can be used to
5912
7905
  represent a human user, but also a service account or any other type of
5913
- identity. The content of a user is determined by the configured schema for
5914
- users, this is only a base schema.
7906
+ identity.
5915
7907
 
5916
- The server assigns the resource primary key (`id`) on create. Clients must
5917
- not send `id` in the create body; it is returned in the create response.
7908
+ `attributes` is the document that satisfies the user schema named by
7909
+ `schema`: its property names and types are defined entirely by that schema,
7910
+ and it is what the schema validates. The rest of the object — `id`,
7911
+ `schema`, `metadata` — is the server-owned envelope. Keeping the two apart
7912
+ means a schema may name a property `id` or `metadata` without colliding with
7913
+ the envelope, and closed-world keywords (`additionalProperties: false`,
7914
+ `propertyNames`, `unevaluatedProperties`) behave as their author expects.
5918
7915
 
5919
7916
  */
5920
7917
  type ListUsers200UsersItem = {
5921
- /** @pattern ^user_[a-zA-Z0-9_-]+$ */id?: string;
5922
- metadata?: ListUsers200UsersItemMetadata;
5923
- [key: string]: unknown;
7918
+ /** @pattern ^user_[a-zA-Z0-9_-]+$ */id: string;
7919
+ /** The schema that defines the content of `attributes`. These schemas can be
7920
+ created using the `/schemas` endpoint. A default schema is provided.
7921
+ This schema can be retrieved using the same endpoint.
7922
+ */
7923
+ schema: string;
7924
+ /** The user's content, satisfying the schema named by `schema`. Property
7925
+ names and types are determined entirely by that schema.
7926
+ */
7927
+ attributes: ListUsers200UsersItemAttributes;
7928
+ metadata: ListUsers200UsersItemMetadata;
5924
7929
  }; //#endregion
5925
7930
  //#region src/generated/model/listUsers200.d.ts
5926
7931
  /**
@@ -6053,11 +8058,6 @@ type ListUserTeamsParams = {
6053
8058
  Its format is opaque and may change between releases.
6054
8059
  */
6055
8060
  page_token?: string;
6056
- /**
6057
- * The unique identifier of the project
6058
- * @pattern ^[a-zA-Z0-9_-]+$
6059
- */
6060
- project_id: string;
6061
8061
  }; //#endregion
6062
8062
  //#region src/generated/model/patchProject200.d.ts
6063
8063
  /**
@@ -6179,6 +8179,10 @@ declare const QueryProjectsBodyFilterItemField: {
6179
8179
  * Filter operation defines the operations which can be used when filtering on a
6180
8180
  query endpoint.
6181
8181
 
8182
+ On text fields, `contains` is a case-insensitive substring match. `equals`
8183
+ compares the whole value and is case-sensitive unless the field documents
8184
+ otherwise.
8185
+
6182
8186
  */
6183
8187
  type QueryProjectsBodyFilterItemOperation = (typeof QueryProjectsBodyFilterItemOperation)[keyof typeof QueryProjectsBodyFilterItemOperation];
6184
8188
  declare const QueryProjectsBodyFilterItemOperation: {
@@ -6201,6 +8205,9 @@ type QueryProjectsBodyFilterItem = {
6201
8205
  value?: string | number | boolean | null;
6202
8206
  /** Filter operation defines the operations which can be used when filtering on a
6203
8207
  query endpoint.
8208
+ On text fields, `contains` is a case-insensitive substring match. `equals`
8209
+ compares the whole value and is case-sensitive unless the field documents
8210
+ otherwise.
6204
8211
  */
6205
8212
  operation: QueryProjectsBodyFilterItemOperation;
6206
8213
  }; //#endregion
@@ -6344,7 +8351,7 @@ type QuerySessions200SessionsItemMetadata = {
6344
8351
  */
6345
8352
  /**
6346
8353
  * Current lifecycle state of the session:
6347
- - `building`: has a user factor but is still gathering authentication factors
8354
+ - `building`: no verified authentication factors yet
6348
8355
  - `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age
6349
8356
  - `expired`: TTL elapsed
6350
8357
 
@@ -6389,7 +8396,7 @@ type QuerySessions200SessionsItem = {
6389
8396
  session_id: string; /** @pattern ^[a-zA-Z0-9_-]+$ */
6390
8397
  project_id: string;
6391
8398
  /** Current lifecycle state of the session:
6392
- - `building`: has a user factor but is still gathering authentication factors
8399
+ - `building`: no verified authentication factors yet
6393
8400
  - `active`: has at least one verified authentication factor; `assurance_levels[]` may shrink as factors age
6394
8401
  - `expired`: TTL elapsed
6395
8402
  */
@@ -6470,7 +8477,8 @@ type QuerySessions200 = {
6470
8477
  * Field to filter sessions by:
6471
8478
  - `created_at`: RFC3339 timestamp
6472
8479
  - `user_id`: user id
6473
- - `state`: one of `building`, `active`, `expired`
8480
+ - `state`: one of `building`, `active`, `expired`. State is computed at read
8481
+ time, so a session expiring mid-request can match `active` but return `expired`.
6474
8482
 
6475
8483
  */
6476
8484
  type QuerySessionsBodyFilterItemField = (typeof QuerySessionsBodyFilterItemField)[keyof typeof QuerySessionsBodyFilterItemField];
@@ -6491,6 +8499,10 @@ declare const QuerySessionsBodyFilterItemField: {
6491
8499
  * Filter operation defines the operations which can be used when filtering on a
6492
8500
  query endpoint.
6493
8501
 
8502
+ On text fields, `contains` is a case-insensitive substring match. `equals`
8503
+ compares the whole value and is case-sensitive unless the field documents
8504
+ otherwise.
8505
+
6494
8506
  */
6495
8507
  type QuerySessionsBodyFilterItemOperation = (typeof QuerySessionsBodyFilterItemOperation)[keyof typeof QuerySessionsBodyFilterItemOperation];
6496
8508
  declare const QuerySessionsBodyFilterItemOperation: {
@@ -6508,7 +8520,8 @@ type QuerySessionsBodyFilterItem = {
6508
8520
  /** Field to filter sessions by:
6509
8521
  - `created_at`: RFC3339 timestamp
6510
8522
  - `user_id`: user id
6511
- - `state`: one of `building`, `active`, `expired`
8523
+ - `state`: one of `building`, `active`, `expired`. State is computed at read
8524
+ time, so a session expiring mid-request can match `active` but return `expired`.
6512
8525
  */
6513
8526
  field: QuerySessionsBodyFilterItemField;
6514
8527
  /** Filter-value specifies which values can be filtered by a query endpoint. This
@@ -6518,6 +8531,9 @@ type QuerySessionsBodyFilterItem = {
6518
8531
  value?: string | number | boolean | null;
6519
8532
  /** Filter operation defines the operations which can be used when filtering on a
6520
8533
  query endpoint.
8534
+ On text fields, `contains` is a case-insensitive substring match. `equals`
8535
+ compares the whole value and is case-sensitive unless the field documents
8536
+ otherwise.
6521
8537
  */
6522
8538
  operation: QuerySessionsBodyFilterItemOperation;
6523
8539
  }; //#endregion
@@ -6666,10 +8682,19 @@ type QueryTeams200 = {
6666
8682
  * Zitadel NextGen
6667
8683
  * This is the next generation of the Zitadel identity platform.
6668
8684
  * OpenAPI spec version: 0.0.1
8685
+ */
8686
+ /**
8687
+ * Field to filter or sort teams by.
8688
+
8689
+ Team names are unique per project case-insensitively, so `name` is matched
8690
+ case-insensitively by `equals` as well as by `contains`.
8691
+
6669
8692
  */
6670
8693
  type QueryTeamsBodyFilterItemField = (typeof QueryTeamsBodyFilterItemField)[keyof typeof QueryTeamsBodyFilterItemField];
6671
8694
  declare const QueryTeamsBodyFilterItemField: {
6672
8695
  readonly created_at: "created_at";
8696
+ readonly name: "name";
8697
+ readonly status: "status";
6673
8698
  }; //#endregion
6674
8699
  //#region src/generated/model/queryTeamsBodyFilterItemOperation.d.ts
6675
8700
  /**
@@ -6683,6 +8708,10 @@ declare const QueryTeamsBodyFilterItemField: {
6683
8708
  * Filter operation defines the operations which can be used when filtering on a
6684
8709
  query endpoint.
6685
8710
 
8711
+ On text fields, `contains` is a case-insensitive substring match. `equals`
8712
+ compares the whole value and is case-sensitive unless the field documents
8713
+ otherwise.
8714
+
6686
8715
  */
6687
8716
  type QueryTeamsBodyFilterItemOperation = (typeof QueryTeamsBodyFilterItemOperation)[keyof typeof QueryTeamsBodyFilterItemOperation];
6688
8717
  declare const QueryTeamsBodyFilterItemOperation: {
@@ -6697,6 +8726,10 @@ declare const QueryTeamsBodyFilterItemOperation: {
6697
8726
  }; //#endregion
6698
8727
  //#region src/generated/model/queryTeamsBodyFilterItem.d.ts
6699
8728
  type QueryTeamsBodyFilterItem = {
8729
+ /** Field to filter or sort teams by.
8730
+ Team names are unique per project case-insensitively, so `name` is matched
8731
+ case-insensitively by `equals` as well as by `contains`.
8732
+ */
6700
8733
  field: QueryTeamsBodyFilterItemField;
6701
8734
  /** Filter-value specifies which values can be filtered by a query endpoint. This
6702
8735
  is a union of types. When a value is specified which is not assignable to the
@@ -6705,6 +8738,9 @@ type QueryTeamsBodyFilterItem = {
6705
8738
  value?: string | number | boolean | null;
6706
8739
  /** Filter operation defines the operations which can be used when filtering on a
6707
8740
  query endpoint.
8741
+ On text fields, `contains` is a case-insensitive substring match. `equals`
8742
+ compares the whole value and is case-sensitive unless the field documents
8743
+ otherwise.
6708
8744
  */
6709
8745
  operation: QueryTeamsBodyFilterItemOperation;
6710
8746
  }; //#endregion
@@ -6728,13 +8764,26 @@ declare const QueryTeamsBodySortingDirection: {
6728
8764
  * Zitadel NextGen
6729
8765
  * This is the next generation of the Zitadel identity platform.
6730
8766
  * OpenAPI spec version: 0.0.1
8767
+ */
8768
+ /**
8769
+ * Field to filter or sort teams by.
8770
+
8771
+ Team names are unique per project case-insensitively, so `name` is matched
8772
+ case-insensitively by `equals` as well as by `contains`.
8773
+
6731
8774
  */
6732
8775
  type QueryTeamsBodySortingField = (typeof QueryTeamsBodySortingField)[keyof typeof QueryTeamsBodySortingField];
6733
8776
  declare const QueryTeamsBodySortingField: {
6734
8777
  readonly created_at: "created_at";
8778
+ readonly name: "name";
8779
+ readonly status: "status";
6735
8780
  }; //#endregion
6736
8781
  //#region src/generated/model/queryTeamsBodySorting.d.ts
6737
8782
  type QueryTeamsBodySorting = {
8783
+ /** Field to filter or sort teams by.
8784
+ Team names are unique per project case-insensitively, so `name` is matched
8785
+ case-insensitively by `equals` as well as by `contains`.
8786
+ */
6738
8787
  field: QueryTeamsBodySortingField;
6739
8788
  direction: QueryTeamsBodySortingDirection;
6740
8789
  }; //#endregion
@@ -6798,33 +8847,6 @@ Error code: auth.unauthorized
6798
8847
 
6799
8848
  */
6800
8849
  //#endregion
6801
- //#region src/generated/model/revokeSessionParams.d.ts
6802
- /**
6803
- * Generated by orval v8.10.0 🍺
6804
- * Do not edit manually.
6805
- * Zitadel NextGen
6806
- * This is the next generation of the Zitadel identity platform.
6807
- * OpenAPI spec version: 0.0.1
6808
- */
6809
- type RevokeSessionParams = {
6810
- /**
6811
- * The unique identifier of the project
6812
- * @pattern ^[a-zA-Z0-9_-]+$
6813
- */
6814
- project_id: string;
6815
- }; //#endregion
6816
- //#region src/generated/model/setUserPassword400Details.d.ts
6817
- /**
6818
- * Generated by orval v8.10.0 🍺
6819
- * Do not edit manually.
6820
- * Zitadel NextGen
6821
- * This is the next generation of the Zitadel identity platform.
6822
- * OpenAPI spec version: 0.0.1
6823
- */
6824
- /**
6825
- * Additional error-specific context.
6826
- */
6827
- //#endregion
6828
8850
  //#region src/generated/model/setUserPasswordBody.d.ts
6829
8851
  /**
6830
8852
  * Generated by orval v8.10.0 🍺
@@ -6852,21 +8874,6 @@ type SetUserPasswordBody = {
6852
8874
  * OpenAPI spec version: 0.0.1
6853
8875
  */
6854
8876
  //#endregion
6855
- //#region src/generated/model/setUserPasswordParams.d.ts
6856
- /**
6857
- * Generated by orval v8.10.0 🍺
6858
- * Do not edit manually.
6859
- * Zitadel NextGen
6860
- * This is the next generation of the Zitadel identity platform.
6861
- * OpenAPI spec version: 0.0.1
6862
- */
6863
- type SetUserPasswordParams = {
6864
- /**
6865
- * The unique identifier of the project
6866
- * @pattern ^[a-zA-Z0-9_-]+$
6867
- */
6868
- project_id: string;
6869
- }; //#endregion
6870
8877
  //#region src/generated/model/submitFlowStep200BrandingLayout.d.ts
6871
8878
  /**
6872
8879
  * Generated by orval v8.10.0 🍺
@@ -7738,6 +9745,17 @@ type UpdateFlowDefinition200FlowDefinitionStepsItemTransitions = {
7738
9745
  Example: login → recovery → back to login.
7739
9746
  */
7740
9747
  action?: "switch" | "pivot" | null;
9748
+ /** Local re-purposing. When set, taking this transition changes the
9749
+ flow's current purpose to this value — the dispatch mode a step's
9750
+ challenges run under — while the flow's original purpose stays
9751
+ pinned. Must be a purpose this definition serves, and `target`
9752
+ must be that purpose's entry step. Mutually exclusive with
9753
+ `action`: a transition either re-purposes within this flow or
9754
+ targets another flow, never both.
9755
+ Example: a "Sign up" navigation on the login identifier step
9756
+ (`{ target: register, purpose: register }`).
9757
+ */
9758
+ purpose?: "login" | "register" | "recovery" | "profiling" | "reauth" | "link_account" | null;
7741
9759
  };
7742
9760
  }; //#endregion
7743
9761
  //#region src/generated/model/updateFlowDefinition200FlowDefinitionStepsItem.d.ts
@@ -8130,6 +10148,17 @@ type UpdateFlowDefinitionBodyFlowDefinitionStepsItemTransitions = {
8130
10148
  Example: login → recovery → back to login.
8131
10149
  */
8132
10150
  action?: "switch" | "pivot" | null;
10151
+ /** Local re-purposing. When set, taking this transition changes the
10152
+ flow's current purpose to this value — the dispatch mode a step's
10153
+ challenges run under — while the flow's original purpose stays
10154
+ pinned. Must be a purpose this definition serves, and `target`
10155
+ must be that purpose's entry step. Mutually exclusive with
10156
+ `action`: a transition either re-purposes within this flow or
10157
+ targets another flow, never both.
10158
+ Example: a "Sign up" navigation on the login identifier step
10159
+ (`{ target: register, purpose: register }`).
10160
+ */
10161
+ purpose?: "login" | "register" | "recovery" | "profiling" | "reauth" | "link_account" | null;
8133
10162
  };
8134
10163
  }; //#endregion
8135
10164
  //#region src/generated/model/updateFlowDefinitionBodyFlowDefinitionStepsItem.d.ts
@@ -8272,21 +10301,6 @@ type UpdateFlowDefinitionBody = {
8272
10301
  * OpenAPI spec version: 0.0.1
8273
10302
  */
8274
10303
  //#endregion
8275
- //#region src/generated/model/updateFlowDefinitionParams.d.ts
8276
- /**
8277
- * Generated by orval v8.10.0 🍺
8278
- * Do not edit manually.
8279
- * Zitadel NextGen
8280
- * This is the next generation of the Zitadel identity platform.
8281
- * OpenAPI spec version: 0.0.1
8282
- */
8283
- type UpdateFlowDefinitionParams = {
8284
- /**
8285
- * The project id to filter by.
8286
- * @pattern ^[a-zA-Z0-9_-]+$
8287
- */
8288
- project_id: string;
8289
- }; //#endregion
8290
10304
  //#region src/generated/model/updateTeam200Status.d.ts
8291
10305
  /**
8292
10306
  * Generated by orval v8.10.0 🍺
@@ -8362,21 +10376,6 @@ type UpdateTeamBody = {
8362
10376
  * Additional error-specific context.
8363
10377
  */
8364
10378
  //#endregion
8365
- //#region src/generated/model/updateTeamParams.d.ts
8366
- /**
8367
- * Generated by orval v8.10.0 🍺
8368
- * Do not edit manually.
8369
- * Zitadel NextGen
8370
- * This is the next generation of the Zitadel identity platform.
8371
- * OpenAPI spec version: 0.0.1
8372
- */
8373
- type UpdateTeamParams = {
8374
- /**
8375
- * The unique identifier of the project
8376
- * @pattern ^[a-zA-Z0-9_-]+$
8377
- */
8378
- project_id: string;
8379
- }; //#endregion
8380
10379
  //#region src/generated/model/verifyChallengeProof200ChallengesItemMethod.d.ts
8381
10380
  /**
8382
10381
  * Generated by orval v8.10.0 🍺
@@ -9159,5 +11158,5 @@ declare global {
9159
11158
  }
9160
11159
  } //# sourceMappingURL=zl-select.d.ts.map
9161
11160
  //#endregion
9162
- export { ExchangeHandoff200 as $, SubmitFlowStepBody as $t, CreateFlow201StepGates as A, ListFlowDefinitionsParams as At, CreateSchemaBody as B, PatchProjectBody as Bt, CreateFlow201 as C, GetUserByIDParams as Ct, CreateFlow201StepActionsItem as D, ListBranding200Item as Dt, CreateFlow201Step as E, IssueChallengeBody as Et, CreateFlowDefinitionBody as F, ListUserTeams200 as Ft, CreateTeamBody as G, QuerySessionsParams as Gt, CreateSession201 as H, QueryProjectsBody as Ht, CreateHandoff200 as I, ListUserTeamsParams as It, CreateUserBody as J, QueryTeamsParams as Jt, CreateTeamParams as K, QueryTeams200 as Kt, CreateProject201 as L, ListUsers200 as Lt, CreateFlowBody as M, ListSchemasParams as Mt, CreateFlowBodyPurpose as N, ListUserPasskeys200 as Nt, CreateFlow201StepChallenge as O, ListBrandingParams as Ot, CreateFlowDefinition201 as P, ListUserPasskeysParams as Pt, DeleteUserByIDParams as Q, SubmitFlowStep200 as Qt, CreateProjectBody as R, ListUsersParams as Rt, CreateBrandingParams as S, GetUserByID200 as St, CreateFlow201BrandingLayout as T, IssueChallenge201 as Tt, CreateSessionBody as U, QuerySessions200 as Ut, CreateSchemaParams as V, QueryProjects200 as Vt, CreateTeam201 as W, QuerySessionsBody as Wt, DeleteFlowDefinitionParams as X, SetUserPasswordBody as Xt, CreateUserParams as Y, RevokeSessionParams as Yt, DeleteTeamParams as Z, SetUserPasswordParams as Zt, CompleteClaimBody as _, IconName as _n, GetSchemaByIdParams as _t, ZlPill as a, UpdateTeamParams as an, GetClaimStatus200 as at, CreateBranding201 as b, GetTeam200 as bt, ZlPasskeyErrorDetail as c, ZlCheckbox as cn, GetFlowDefinitionParams as ct, ZlPageShell as d, ZlCard as dn, GetLiveDefault as dt, UpdateFlowDefinition200 as en, ExchangeHandoffBody as et, zlPageShellManifest as f, zlCardManifest as fn, GetMySession200 as ft, CompleteClaim200 as g, zlAlertManifest as gn, GetSchemaById200 as gt, zlFieldManifest as h, ZlAlert as hn, GetReadyDefault as ht, zlSelectManifest as i, UpdateTeamBody as in, GetBrandingByIdParams as it, CreateFlow201StepSsoProvidersItem as j, ListSchemas200Item as jt, CreateFlow201StepFieldsItem as k, ListFlowDefinitions200 as kt, ZlPasskeyResultDetail as l, ZlCheckboxChangeDetail as ln, GetFlowStep200 as lt, ZlFieldType as m, zlButtonManifest as mn, GetProject200 as mt, ZlSelectChangeDetail as n, UpdateFlowDefinitionParams as nn, GetAuthAttempt200 as nt, zlPillManifest as o, VerifyChallengeProof200 as on, GetClaimStatusParams as ot, ZlField as p, ZlButton as pn, GetMyUser200 as pt, CreateUser201 as q, QueryTeamsBody as qt, ZlSelectOption as r, UpdateTeam200 as rn, GetBrandingById200 as rt, ZlPasskey as s, VerifyChallengeProofBody as sn, GetFlowDefinition200 as st, ZlSelect as t, UpdateFlowDefinitionBody as tn, ExchangeHandoffParams as tt, zlPasskeyManifest as u, zlCheckboxManifest as un, GetHealthDefault as ut, CreateAuthAttempt201 as v, ZlIcon as vn, GetSession200 as vt, CreateFlow201Branding as w, InitClaim201 as wt, CreateBrandingBody as x, GetTeamParams as xt, CreateAuthAttemptBody as y, zlIconManifest as yn, GetSessionParams as yt, CreateSchema201 as z, PatchProject200 as zt };
9163
- //# sourceMappingURL=index-DIGjtG4z.d.mts.map
11161
+ export { GetAuthAttempt200 as $, VerifyChallengeProof200 as $t, CreateFlow201StepGates as A, ListUserPasskeys200 as At, CreateSchemaBody as B, QuerySessions200 as Bt, CreateFlow201 as C, ListBrandingParams as Ct, CreateFlow201StepActionsItem as D, ListFlowDefinitionsParams as Dt, CreateFlow201Step as E, ListFlowDefinitions200 as Et, CreateFlowDefinitionBody as F, ListUsersParams as Ft, CreateTeamBody as G, QueryTeamsParams as Gt, CreateSession201 as H, QuerySessionsParams as Ht, CreateHandoff200 as I, PatchProject200 as It, CreateUserBody as J, SubmitFlowStepBody as Jt, CreateTeamParams as K, SetUserPasswordBody as Kt, CreateProject201 as L, PatchProjectBody as Lt, CreateFlowBody as M, ListUserTeams200 as Mt, CreateFlowBodyPurpose as N, ListUserTeamsParams as Nt, CreateFlow201StepChallenge as O, ListSchemas200Item as Ot, CreateFlowDefinition201 as P, ListUsers200 as Pt, ExchangeHandoffParams as Q, UpdateTeamBody as Qt, CreateProjectBody as R, QueryProjects200 as Rt, CreateBrandingParams as S, ListBranding200Item as St, CreateFlow201BrandingLayout as T, ListEventsParams as Tt, CreateSessionBody as U, QueryTeams200 as Ut, CreateSchemaParams as V, QuerySessionsBody as Vt, CreateTeam201 as W, QueryTeamsBody as Wt, ExchangeHandoff200 as X, UpdateFlowDefinitionBody as Xt, CreateUserParams as Y, UpdateFlowDefinition200 as Yt, ExchangeHandoffBody as Z, UpdateTeam200 as Zt, CompleteClaimBody as _, GetUserByID200 as _t, ZlPill as a, zlCardManifest as an, GetFlowDefinition200 as at, CreateBranding201 as b, IssueChallenge201 as bt, ZlPasskeyErrorDetail as c, ZlAlert as cn, GetLiveDefault as ct, ZlPageShell as d, ZlIcon as dn, GetProject200 as dt, VerifyChallengeProofBody as en, GetBrandingById200 as et, zlPageShellManifest as f, zlIconManifest as fn, GetReadyDefault as ft, CompleteClaim200 as g, GetTeam200 as gt, zlFieldManifest as h, GetSession200 as ht, zlSelectManifest as i, ZlCard as in, GetEventParams as it, CreateFlow201StepSsoProvidersItem as j, ListUserPasskeysParams as jt, CreateFlow201StepFieldsItem as k, ListSchemasParams as kt, ZlPasskeyResultDetail as l, zlAlertManifest as ln, GetMySession200 as lt, ZlFieldType as m, GetSchemaByIdParams as mt, ZlSelectChangeDetail as n, ZlCheckboxChangeDetail as nn, GetClaimStatusParams as nt, zlPillManifest as o, ZlButton as on, GetFlowStep200 as ot, ZlField as p, GetSchemaById200 as pt, CreateUser201 as q, SubmitFlowStep200 as qt, ZlSelectOption as r, zlCheckboxManifest as rn, GetEvent200 as rt, ZlPasskey as s, zlButtonManifest as sn, GetHealthDefault as st, ZlSelect as t, ZlCheckbox as tn, GetClaimStatus200 as tt, zlPasskeyManifest as u, IconName as un, GetMyUser200 as ut, CreateAuthAttempt201 as v, GetUserByIDParams as vt, CreateFlow201Branding as w, ListEvents200 as wt, CreateBrandingBody as x, IssueChallengeBody as xt, CreateAuthAttemptBody as y, InitClaim201 as yt, CreateSchema201 as z, QueryProjectsBody as zt };
11162
+ //# sourceMappingURL=index-CAi5gsHK.d.mts.map