@workos/openapi-spec 0.154.0 → 0.156.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -2305,7 +2305,7 @@ export interface paths {
2305
2305
  get: operations["DataIntegrationsOrganizationController_getOrganizationDataInstallation"];
2306
2306
  /**
2307
2307
  * Update an organization connected account
2308
- * @description Updates an organization's [connected account](/reference/pipes/connected-account) tokens, scopes, or state for a specific provider.
2308
+ * @description Updates an organization's [connected account](/reference/pipes/connected-account) tokens, scopes, state, or provider configuration for a specific provider.
2309
2309
  */
2310
2310
  put: operations["DataIntegrationsOrganizationController_updateOrganizationDataInstallation"];
2311
2311
  /**
@@ -3627,7 +3627,7 @@ export interface paths {
3627
3627
  get: operations["DataIntegrationsUserManagementController_getUserDataInstallation"];
3628
3628
  /**
3629
3629
  * Update a connected account
3630
- * @description Updates a user's [connected account](/reference/pipes/connected-account) tokens, scopes, or state for a specific provider.
3630
+ * @description Updates a user's [connected account](/reference/pipes/connected-account) tokens, scopes, state, or provider configuration for a specific provider.
3631
3631
  */
3632
3632
  put: operations["DataIntegrationsUserManagementController_updateUserDataInstallation"];
3633
3633
  /**
@@ -5694,6 +5694,13 @@ export interface components {
5694
5694
  * @example workspace_123
5695
5695
  */
5696
5696
  account_identifier?: string | null;
5697
+ /**
5698
+ * @description Installation-scoped provider configuration for this connection, such as Salesforce salesforce_host. Imports apply supplied values over installation-scoped integration pins and inherit other config from the credential source. Credential-bearing imports must satisfy required configuration even when config is omitted or {}. On update, a supplied object replaces installation-scoped values; omitted config preserves the stored snapshot. Stored integration-scoped values remain bound to the OAuth client and cannot be overridden or replaced with current integration pins. Replacements must satisfy required configuration; {} and empty-string values clear installation-scoped values only when the result is valid. Provider defaults count toward completeness but are resolved at read time, not stored. Only tokenless needs_reauthorization placeholders may remain incomplete; attaching their first tokens validates configuration even when config is omitted. Unrelated updates do not revalidate unchanged configuration. Clearing salesforce_host falls back to login.salesforce.com, which may not work for sandbox or My Domain-only connections.
5699
+ * @example {}
5700
+ */
5701
+ config?: {
5702
+ [key: string]: string;
5703
+ };
5697
5704
  /**
5698
5705
  * @description The OAuth access token for the connected account.
5699
5706
  * @example gho_16C7e42F292c6912E7710c838347Ae178B4a
@@ -5729,6 +5736,13 @@ export interface components {
5729
5736
  * @example user_01EHZNVPK3SFK441A1RGBFSHRT
5730
5737
  */
5731
5738
  user_id: string;
5739
+ /**
5740
+ * @description Provider token-response metadata to preserve during import, such as Salesforce instance_url. Only allowlisted, non-sensitive scalar fields from this provider are accepted, including nested fields. Provider refresh responses can update these values. Not accepted on update.
5741
+ * @example {}
5742
+ */
5743
+ metadata?: {
5744
+ [key: string]: unknown;
5745
+ };
5732
5746
  /**
5733
5747
  * @description Set to `add` to create another connected account. Omit this field for permanent compatibility behavior.
5734
5748
  * @example add
@@ -5747,6 +5761,13 @@ export interface components {
5747
5761
  * @example workspace_123
5748
5762
  */
5749
5763
  account_identifier?: string | null;
5764
+ /**
5765
+ * @description Installation-scoped provider configuration for this connection, such as Salesforce salesforce_host. Imports apply supplied values over installation-scoped integration pins and inherit other config from the credential source. Credential-bearing imports must satisfy required configuration even when config is omitted or {}. On update, a supplied object replaces installation-scoped values; omitted config preserves the stored snapshot. Stored integration-scoped values remain bound to the OAuth client and cannot be overridden or replaced with current integration pins. Replacements must satisfy required configuration; {} and empty-string values clear installation-scoped values only when the result is valid. Provider defaults count toward completeness but are resolved at read time, not stored. Only tokenless needs_reauthorization placeholders may remain incomplete; attaching their first tokens validates configuration even when config is omitted. Unrelated updates do not revalidate unchanged configuration. Clearing salesforce_host falls back to login.salesforce.com, which may not work for sandbox or My Domain-only connections.
5766
+ * @example {}
5767
+ */
5768
+ config?: {
5769
+ [key: string]: string;
5770
+ };
5750
5771
  /**
5751
5772
  * @description The OAuth access token for the connected account.
5752
5773
  * @example gho_16C7e42F292c6912E7710c838347Ae178B4a
@@ -5794,6 +5815,13 @@ export interface components {
5794
5815
  * @example workspace_123
5795
5816
  */
5796
5817
  account_identifier?: string | null;
5818
+ /**
5819
+ * @description Installation-scoped provider configuration for this connection, such as Salesforce salesforce_host. Imports apply supplied values over installation-scoped integration pins and inherit other config from the credential source. Credential-bearing imports must satisfy required configuration even when config is omitted or {}. On update, a supplied object replaces installation-scoped values; omitted config preserves the stored snapshot. Stored integration-scoped values remain bound to the OAuth client and cannot be overridden or replaced with current integration pins. Replacements must satisfy required configuration; {} and empty-string values clear installation-scoped values only when the result is valid. Provider defaults count toward completeness but are resolved at read time, not stored. Only tokenless needs_reauthorization placeholders may remain incomplete; attaching their first tokens validates configuration even when config is omitted. Unrelated updates do not revalidate unchanged configuration. Clearing salesforce_host falls back to login.salesforce.com, which may not work for sandbox or My Domain-only connections.
5820
+ * @example {}
5821
+ */
5822
+ config?: {
5823
+ [key: string]: string;
5824
+ };
5797
5825
  /**
5798
5826
  * @description The OAuth access token for the connected account.
5799
5827
  * @example gho_16C7e42F292c6912E7710c838347Ae178B4a
@@ -5824,6 +5852,13 @@ export interface components {
5824
5852
  * @enum {string}
5825
5853
  */
5826
5854
  state?: "connected" | "needs_reauthorization";
5855
+ /**
5856
+ * @description Provider token-response metadata to preserve during import, such as Salesforce instance_url. Only allowlisted, non-sensitive scalar fields from this provider are accepted, including nested fields. Provider refresh responses can update these values. Not accepted on update.
5857
+ * @example {}
5858
+ */
5859
+ metadata?: {
5860
+ [key: string]: unknown;
5861
+ };
5827
5862
  /**
5828
5863
  * @description Set to `add` to create another connected account. Omit this field for permanent compatibility behavior.
5829
5864
  * @example add
@@ -5842,6 +5877,13 @@ export interface components {
5842
5877
  * @example workspace_123
5843
5878
  */
5844
5879
  account_identifier?: string | null;
5880
+ /**
5881
+ * @description Installation-scoped provider configuration for this connection, such as Salesforce salesforce_host. Imports apply supplied values over installation-scoped integration pins and inherit other config from the credential source. Credential-bearing imports must satisfy required configuration even when config is omitted or {}. On update, a supplied object replaces installation-scoped values; omitted config preserves the stored snapshot. Stored integration-scoped values remain bound to the OAuth client and cannot be overridden or replaced with current integration pins. Replacements must satisfy required configuration; {} and empty-string values clear installation-scoped values only when the result is valid. Provider defaults count toward completeness but are resolved at read time, not stored. Only tokenless needs_reauthorization placeholders may remain incomplete; attaching their first tokens validates configuration even when config is omitted. Unrelated updates do not revalidate unchanged configuration. Clearing salesforce_host falls back to login.salesforce.com, which may not work for sandbox or My Domain-only connections.
5882
+ * @example {}
5883
+ */
5884
+ config?: {
5885
+ [key: string]: string;
5886
+ };
5845
5887
  /**
5846
5888
  * @description The OAuth access token for the connected account.
5847
5889
  * @example gho_16C7e42F292c6912E7710c838347Ae178B4a
@@ -6422,7 +6464,7 @@ export interface components {
6422
6464
  * "dsync.user.created"
6423
6465
  * ]
6424
6466
  */
6425
- events: ("agent.blueprint.created" | "agent.blueprint.deleted" | "agent.blueprint.updated" | "agent.instance.created" | "agent.instance.deleted" | "agent.instance.session.created" | "agent.instance.session.revoked" | "agent.registration.created" | "agent.registration.claim.attempt.created" | "agent.registration.claim.completed" | "agent.registration.credential.issued" | "agent.registration.deleted" | "agent.registration.refreshed" | "agent.registration.expired" | "agent.registration.organization.switched" | "agent.registration.revoked" | "authentication.email_verification_succeeded" | "authentication.magic_auth_failed" | "authentication.magic_auth_succeeded" | "authentication.mfa_succeeded" | "authentication.oauth_failed" | "authentication.oauth_succeeded" | "authentication.password_failed" | "authentication.password_succeeded" | "authentication.passkey_failed" | "authentication.passkey_succeeded" | "authentication.sso_failed" | "authentication.sso_started" | "authentication.sso_succeeded" | "authentication.sso_timed_out" | "radar.challenge_created" | "authentication.radar_risk_detected" | "authentication.reauthentication_succeeded" | "api_key.created" | "api_key.revoked" | "api_key.updated" | "connection.activated" | "connection.deactivated" | "connection.saml_certificate_renewal_required" | "connection.saml_certificate_renewed" | "connection.deleted" | "dsync.activated" | "dsync.deleted" | "dsync.group.created" | "dsync.group.deleted" | "dsync.group.updated" | "dsync.group.user_added" | "dsync.group.user_removed" | "dsync.user.created" | "dsync.user.deleted" | "dsync.user.updated" | "email_verification.created" | "group.created" | "group.deleted" | "group.member_added" | "group.member_removed" | "group.updated" | "flag.created" | "flag.deleted" | "flag.updated" | "flag.rule_updated" | "invitation.accepted" | "invitation.created" | "invitation.resent" | "invitation.revoked" | "magic_auth.created" | "organization.created" | "organization.deleted" | "organization.updated" | "organization_domain.created" | "organization_domain.deleted" | "organization_domain.updated" | "organization_domain.verified" | "organization_domain.verification_failed" | "password_reset.created" | "password_reset.succeeded" | "user.created" | "user.updated" | "user.deleted" | "organization_membership.created" | "organization_membership.deleted" | "organization_membership.updated" | "role.created" | "role.deleted" | "role.updated" | "organization_role.created" | "organization_role.deleted" | "organization_role.updated" | "permission.created" | "permission.deleted" | "permission.updated" | "pipes.account_connection.add_failed" | "pipes.account_connection.connected" | "pipes.account_connection.connection_failed" | "pipes.account_connection.disconnected" | "pipes.account_connection.reauthorization_needed" | "pipes.connected_account.connected" | "pipes.connected_account.connection_failed" | "pipes.connected_account.disconnected" | "pipes.connected_account.reauthorization_needed" | "session.created" | "session.revoked" | "waitlist_user.approved" | "waitlist_user.created" | "waitlist_user.denied")[];
6467
+ events: ("agent.blueprint.created" | "agent.blueprint.deleted" | "agent.blueprint.updated" | "agent.instance.created" | "agent.instance.deleted" | "agent.instance.session.created" | "agent.instance.session.revoked" | "agent.registration.created" | "agent.registration.claim.attempt.created" | "agent.registration.claim.completed" | "agent.registration.credential.issued" | "agent.registration.deleted" | "agent.registration.refreshed" | "agent.registration.expired" | "agent.registration.organization.switched" | "agent.registration.revoked" | "authentication.email_verification_succeeded" | "authentication.magic_auth_failed" | "authentication.magic_auth_succeeded" | "authentication.mfa_succeeded" | "authentication.oauth_failed" | "authentication.oauth_succeeded" | "authentication.password_failed" | "authentication.password_succeeded" | "authentication.passkey_failed" | "authentication.passkey_succeeded" | "authentication.sso_failed" | "authentication.sso_started" | "authentication.sso_succeeded" | "authentication.sso_timed_out" | "radar.challenge_created" | "authentication.radar_risk_detected" | "authentication.reauthentication_succeeded" | "api_key.created" | "api_key.revoked" | "api_key.updated" | "connection.activated" | "connection.deactivated" | "connection.saml_certificate_renewal_required" | "connection.saml_certificate_renewed" | "connection.deleted" | "dsync.activated" | "dsync.deleted" | "dsync.group.created" | "dsync.group.deleted" | "dsync.group.updated" | "dsync.group.user_added" | "dsync.group.user_removed" | "dsync.user.created" | "dsync.user.deleted" | "dsync.user.updated" | "email_verification.created" | "group.created" | "group.deleted" | "group.member_added" | "group.member_removed" | "group.updated" | "flag.created" | "flag.deleted" | "flag.updated" | "flag.rule_updated" | "feature_flags.flag.created" | "feature_flags.flag.updated" | "feature_flags.flag.deleted" | "feature_flags.flag_rule.created" | "feature_flags.flag_rule.updated" | "feature_flags.flag_target.created" | "feature_flags.flag_rule.deleted" | "feature_flags.flag_target.deleted" | "invitation.accepted" | "invitation.created" | "invitation.resent" | "invitation.revoked" | "magic_auth.created" | "organization.created" | "organization.deleted" | "organization.updated" | "organization_domain.created" | "organization_domain.deleted" | "organization_domain.updated" | "organization_domain.verified" | "organization_domain.verification_failed" | "password_reset.created" | "password_reset.succeeded" | "user.created" | "user.updated" | "user.deleted" | "organization_membership.created" | "organization_membership.deleted" | "organization_membership.updated" | "role.created" | "role.deleted" | "role.updated" | "organization_role.created" | "organization_role.deleted" | "organization_role.updated" | "permission.created" | "permission.deleted" | "permission.updated" | "pipes.account_connection.add_failed" | "pipes.account_connection.connected" | "pipes.account_connection.connection_failed" | "pipes.account_connection.disconnected" | "pipes.account_connection.reauthorization_needed" | "pipes.connected_account.connected" | "pipes.connected_account.connection_failed" | "pipes.connected_account.disconnected" | "pipes.connected_account.reauthorization_needed" | "session.created" | "session.revoked" | "waitlist_user.approved" | "waitlist_user.created" | "waitlist_user.denied")[];
6426
6468
  };
6427
6469
  UpdateWebhookEndpointDto: {
6428
6470
  /**
@@ -6443,7 +6485,7 @@ export interface components {
6443
6485
  * "dsync.user.created"
6444
6486
  * ]
6445
6487
  */
6446
- events?: ("agent.blueprint.created" | "agent.blueprint.deleted" | "agent.blueprint.updated" | "agent.instance.created" | "agent.instance.deleted" | "agent.instance.session.created" | "agent.instance.session.revoked" | "agent.registration.created" | "agent.registration.claim.attempt.created" | "agent.registration.claim.completed" | "agent.registration.credential.issued" | "agent.registration.deleted" | "agent.registration.refreshed" | "agent.registration.expired" | "agent.registration.organization.switched" | "agent.registration.revoked" | "authentication.email_verification_succeeded" | "authentication.magic_auth_failed" | "authentication.magic_auth_succeeded" | "authentication.mfa_succeeded" | "authentication.oauth_failed" | "authentication.oauth_succeeded" | "authentication.password_failed" | "authentication.password_succeeded" | "authentication.passkey_failed" | "authentication.passkey_succeeded" | "authentication.sso_failed" | "authentication.sso_started" | "authentication.sso_succeeded" | "authentication.sso_timed_out" | "radar.challenge_created" | "authentication.radar_risk_detected" | "authentication.reauthentication_succeeded" | "api_key.created" | "api_key.revoked" | "api_key.updated" | "connection.activated" | "connection.deactivated" | "connection.saml_certificate_renewal_required" | "connection.saml_certificate_renewed" | "connection.deleted" | "dsync.activated" | "dsync.deleted" | "dsync.group.created" | "dsync.group.deleted" | "dsync.group.updated" | "dsync.group.user_added" | "dsync.group.user_removed" | "dsync.user.created" | "dsync.user.deleted" | "dsync.user.updated" | "email_verification.created" | "group.created" | "group.deleted" | "group.member_added" | "group.member_removed" | "group.updated" | "flag.created" | "flag.deleted" | "flag.updated" | "flag.rule_updated" | "invitation.accepted" | "invitation.created" | "invitation.resent" | "invitation.revoked" | "magic_auth.created" | "organization.created" | "organization.deleted" | "organization.updated" | "organization_domain.created" | "organization_domain.deleted" | "organization_domain.updated" | "organization_domain.verified" | "organization_domain.verification_failed" | "password_reset.created" | "password_reset.succeeded" | "user.created" | "user.updated" | "user.deleted" | "organization_membership.created" | "organization_membership.deleted" | "organization_membership.updated" | "role.created" | "role.deleted" | "role.updated" | "organization_role.created" | "organization_role.deleted" | "organization_role.updated" | "permission.created" | "permission.deleted" | "permission.updated" | "pipes.account_connection.add_failed" | "pipes.account_connection.connected" | "pipes.account_connection.connection_failed" | "pipes.account_connection.disconnected" | "pipes.account_connection.reauthorization_needed" | "pipes.connected_account.connected" | "pipes.connected_account.connection_failed" | "pipes.connected_account.disconnected" | "pipes.connected_account.reauthorization_needed" | "session.created" | "session.revoked" | "waitlist_user.approved" | "waitlist_user.created" | "waitlist_user.denied")[];
6488
+ events?: ("agent.blueprint.created" | "agent.blueprint.deleted" | "agent.blueprint.updated" | "agent.instance.created" | "agent.instance.deleted" | "agent.instance.session.created" | "agent.instance.session.revoked" | "agent.registration.created" | "agent.registration.claim.attempt.created" | "agent.registration.claim.completed" | "agent.registration.credential.issued" | "agent.registration.deleted" | "agent.registration.refreshed" | "agent.registration.expired" | "agent.registration.organization.switched" | "agent.registration.revoked" | "authentication.email_verification_succeeded" | "authentication.magic_auth_failed" | "authentication.magic_auth_succeeded" | "authentication.mfa_succeeded" | "authentication.oauth_failed" | "authentication.oauth_succeeded" | "authentication.password_failed" | "authentication.password_succeeded" | "authentication.passkey_failed" | "authentication.passkey_succeeded" | "authentication.sso_failed" | "authentication.sso_started" | "authentication.sso_succeeded" | "authentication.sso_timed_out" | "radar.challenge_created" | "authentication.radar_risk_detected" | "authentication.reauthentication_succeeded" | "api_key.created" | "api_key.revoked" | "api_key.updated" | "connection.activated" | "connection.deactivated" | "connection.saml_certificate_renewal_required" | "connection.saml_certificate_renewed" | "connection.deleted" | "dsync.activated" | "dsync.deleted" | "dsync.group.created" | "dsync.group.deleted" | "dsync.group.updated" | "dsync.group.user_added" | "dsync.group.user_removed" | "dsync.user.created" | "dsync.user.deleted" | "dsync.user.updated" | "email_verification.created" | "group.created" | "group.deleted" | "group.member_added" | "group.member_removed" | "group.updated" | "flag.created" | "flag.deleted" | "flag.updated" | "flag.rule_updated" | "feature_flags.flag.created" | "feature_flags.flag.updated" | "feature_flags.flag.deleted" | "feature_flags.flag_rule.created" | "feature_flags.flag_rule.updated" | "feature_flags.flag_target.created" | "feature_flags.flag_rule.deleted" | "feature_flags.flag_target.deleted" | "invitation.accepted" | "invitation.created" | "invitation.resent" | "invitation.revoked" | "magic_auth.created" | "organization.created" | "organization.deleted" | "organization.updated" | "organization_domain.created" | "organization_domain.deleted" | "organization_domain.updated" | "organization_domain.verified" | "organization_domain.verification_failed" | "password_reset.created" | "password_reset.succeeded" | "user.created" | "user.updated" | "user.deleted" | "organization_membership.created" | "organization_membership.deleted" | "organization_membership.updated" | "role.created" | "role.deleted" | "role.updated" | "organization_role.created" | "organization_role.deleted" | "organization_role.updated" | "permission.created" | "permission.deleted" | "permission.updated" | "pipes.account_connection.add_failed" | "pipes.account_connection.connected" | "pipes.account_connection.connection_failed" | "pipes.account_connection.disconnected" | "pipes.account_connection.reauthorization_needed" | "pipes.connected_account.connected" | "pipes.connected_account.connection_failed" | "pipes.connected_account.disconnected" | "pipes.connected_account.reauthorization_needed" | "session.created" | "session.revoked" | "waitlist_user.approved" | "waitlist_user.created" | "waitlist_user.denied")[];
6447
6489
  };
6448
6490
  WidgetSessionTokenDto: {
6449
6491
  /**
@@ -10796,6 +10838,172 @@ export interface components {
10796
10838
  */
10797
10839
  updated_at: string;
10798
10840
  };
10841
+ FlagRule: {
10842
+ /** @constant */
10843
+ object: "flag_rule";
10844
+ /**
10845
+ * @description Unique identifier of the Flag Rule.
10846
+ * @example flag_rule_01EHZNVPK3SFK441A1RGBFSHRT
10847
+ */
10848
+ id: string;
10849
+ /**
10850
+ * @description The ID of the Feature Flag the rule belongs to.
10851
+ * @example flag_01EHZNVPK3SFK441A1RGBFSHRT
10852
+ */
10853
+ flag_id: string;
10854
+ /**
10855
+ * @description The slug of the Feature Flag the rule belongs to.
10856
+ * @example new-checkout
10857
+ */
10858
+ flag_slug: string;
10859
+ /**
10860
+ * @description The ID of the environment the Flag Rule belongs to.
10861
+ * @example environment_01EHWNCE74X7JSDV0X3SZ3KJNY
10862
+ */
10863
+ environment_id: string;
10864
+ /**
10865
+ * @description The target type slug, if the rule targets a specific type.
10866
+ * @example organization
10867
+ */
10868
+ target_type: string | null;
10869
+ /**
10870
+ * @description The zero-based position of the rule in evaluation order.
10871
+ * @example 0
10872
+ */
10873
+ position: number;
10874
+ /** @constant */
10875
+ value_type: "boolean";
10876
+ /**
10877
+ * @description The value the Feature Flag evaluates to when the rule matches.
10878
+ * @example false
10879
+ */
10880
+ value: boolean;
10881
+ /**
10882
+ * Format: date-time
10883
+ * @description An ISO 8601 timestamp.
10884
+ * @example 2026-01-15T12:00:00.000Z
10885
+ */
10886
+ created_at: string;
10887
+ /**
10888
+ * Format: date-time
10889
+ * @description An ISO 8601 timestamp.
10890
+ * @example 2026-01-15T12:00:00.000Z
10891
+ */
10892
+ updated_at: string;
10893
+ };
10894
+ FlagTarget: {
10895
+ /**
10896
+ * @description Distinguishes the Flag Target object.
10897
+ * @constant
10898
+ */
10899
+ object: "flag_target";
10900
+ /**
10901
+ * @description Unique identifier of the Flag Target.
10902
+ * @example flag_target_01EHZNVPK3SFK441A1RGBFSHRT
10903
+ */
10904
+ id: string;
10905
+ /**
10906
+ * @description The ID of the Feature Flag the target belongs to.
10907
+ * @example flag_01EHZNVPK3SFK441A1RGBFSHRT
10908
+ */
10909
+ flag_id: string;
10910
+ /**
10911
+ * @description The slug of the Feature Flag the target belongs to, which is how the Feature Flag endpoints address it.
10912
+ * @example new-checkout
10913
+ */
10914
+ flag_slug: string;
10915
+ /**
10916
+ * @description The ID of the environment the Flag Target belongs to.
10917
+ * @example environment_01EHWNCE74X7JSDV0X3SZ3KJNY
10918
+ */
10919
+ environment_id: string;
10920
+ /**
10921
+ * @description The type of the target: `organization`, `user`, or a custom target type slug.
10922
+ * @example organization
10923
+ */
10924
+ target_type: string;
10925
+ /**
10926
+ * @description The ID of the targeted entity.
10927
+ * @example org_01EHWNCE74X7JSDV0X3SZ3KJNY
10928
+ */
10929
+ target_id: string;
10930
+ /**
10931
+ * Format: date-time
10932
+ * @description An ISO 8601 timestamp.
10933
+ * @example 2026-01-15T12:00:00.000Z
10934
+ */
10935
+ created_at: string;
10936
+ /**
10937
+ * Format: date-time
10938
+ * @description An ISO 8601 timestamp.
10939
+ * @example 2026-01-15T12:00:00.000Z
10940
+ */
10941
+ updated_at: string;
10942
+ /**
10943
+ * @description The ID of the rule this target belongs to.
10944
+ * @example flag_rule_01EHZNVPK3SFK441A1RGBFSHRT
10945
+ */
10946
+ rule_id: string;
10947
+ } | {
10948
+ /**
10949
+ * @description Distinguishes the Flag Target object.
10950
+ * @constant
10951
+ */
10952
+ object: "flag_target";
10953
+ /**
10954
+ * @description Unique identifier of the Flag Target.
10955
+ * @example flag_target_01EHZNVPK3SFK441A1RGBFSHRT
10956
+ */
10957
+ id: string;
10958
+ /**
10959
+ * @description The ID of the Feature Flag the target belongs to.
10960
+ * @example flag_01EHZNVPK3SFK441A1RGBFSHRT
10961
+ */
10962
+ flag_id: string;
10963
+ /**
10964
+ * @description The slug of the Feature Flag the target belongs to, which is how the Feature Flag endpoints address it.
10965
+ * @example new-checkout
10966
+ */
10967
+ flag_slug: string;
10968
+ /**
10969
+ * @description The ID of the environment the Flag Target belongs to.
10970
+ * @example environment_01EHWNCE74X7JSDV0X3SZ3KJNY
10971
+ */
10972
+ environment_id: string;
10973
+ /**
10974
+ * @description The type of the target: `organization`, `user`, or a custom target type slug.
10975
+ * @example organization
10976
+ */
10977
+ target_type: string;
10978
+ /**
10979
+ * @description The ID of the targeted entity.
10980
+ * @example org_01EHWNCE74X7JSDV0X3SZ3KJNY
10981
+ */
10982
+ target_id: string;
10983
+ /**
10984
+ * @description The type of `value`. Only `boolean` is supported today; additional types are reserved for future multivariate Feature Flags.
10985
+ * @example boolean
10986
+ * @constant
10987
+ */
10988
+ value_type: "boolean";
10989
+ /**
10990
+ * @description The value the Feature Flag evaluates to for this target.
10991
+ * @example true
10992
+ */
10993
+ value: boolean;
10994
+ /**
10995
+ * Format: date-time
10996
+ * @description An ISO 8601 timestamp.
10997
+ * @example 2026-01-15T12:00:00.000Z
10998
+ */
10999
+ created_at: string;
11000
+ /**
11001
+ * Format: date-time
11002
+ * @description An ISO 8601 timestamp.
11003
+ * @example 2026-01-15T12:00:00.000Z
11004
+ */
11005
+ updated_at: string;
11006
+ };
10799
11007
  PipesConnectedAccount: {
10800
11008
  /**
10801
11009
  * @description The connected account object.
@@ -14571,7 +14779,7 @@ export interface components {
14571
14779
  */
14572
14780
  id: string;
14573
14781
  /** @constant */
14574
- event: "flag.created";
14782
+ event: "feature_flags.flag.created";
14575
14783
  /** @description The event payload. */
14576
14784
  data: {
14577
14785
  /** @constant */
@@ -14693,7 +14901,7 @@ export interface components {
14693
14901
  */
14694
14902
  id: string;
14695
14903
  /** @constant */
14696
- event: "flag.deleted";
14904
+ event: "feature_flags.flag.deleted";
14697
14905
  /** @description The event payload. */
14698
14906
  data: {
14699
14907
  /** @constant */
@@ -14815,84 +15023,56 @@ export interface components {
14815
15023
  */
14816
15024
  id: string;
14817
15025
  /** @constant */
14818
- event: "flag.rule_updated";
15026
+ event: "feature_flags.flag_rule.created";
14819
15027
  /** @description The event payload. */
14820
- data: {
14821
- /** @constant */
14822
- object: "feature_flag";
14823
- /**
14824
- * @description Unique identifier of the Feature Flag.
14825
- * @example flag_01EHZNVPK3SFK441A1RGBFSHRT
14826
- */
14827
- id: string;
14828
- /**
14829
- * @description The ID of the environment the Feature Flag belongs to.
14830
- * @example environment_01EHWNCE74X7JSDV0X3SZ3KJNY
14831
- */
14832
- environment_id: string;
14833
- /**
14834
- * @description A unique key to reference the Feature Flag.
14835
- * @example advanced-analytics
14836
- */
14837
- slug: string;
14838
- /**
14839
- * @description A descriptive name for the Feature Flag.
14840
- * @example Advanced Analytics
14841
- */
14842
- name: string;
15028
+ data: components["schemas"]["FlagRule"];
15029
+ /**
15030
+ * Format: date-time
15031
+ * @description An ISO 8601 timestamp.
15032
+ * @example 2026-01-15T12:00:00.000Z
15033
+ */
15034
+ created_at: string;
15035
+ /** @description Additional context about the event. */
15036
+ context: {
14843
15037
  /**
14844
- * @description A description for the Feature Flag.
14845
- * @example Enable advanced analytics dashboard feature
15038
+ * @description The client ID associated with the flag event.
15039
+ * @example client_01EHWNCE74X7JSDV0X3SZ3KJNY
14846
15040
  */
14847
- description: string | null;
14848
- /** @description The owner of the Feature Flag. */
14849
- owner: {
15041
+ client_id: string;
15042
+ /** @description The actor who performed the action. */
15043
+ actor?: {
14850
15044
  /**
14851
- * @description The email address of the flag owner.
14852
- * @example jane@example.com
15045
+ * @description Unique identifier of the actor.
15046
+ * @example user_01EHWNCE74X7JSDV0X3SZ3KJNY
14853
15047
  */
14854
- email: string;
15048
+ id: string;
14855
15049
  /**
14856
- * @description The first name of the flag owner.
14857
- * @example Jane
15050
+ * @description The source of the actor that performed the action.
15051
+ * @enum {string}
14858
15052
  */
14859
- first_name: string | null;
15053
+ source: "api" | "dashboard" | "admin_portal" | "system";
14860
15054
  /**
14861
- * @description The last name of the flag owner.
14862
- * @example Doe
15055
+ * @description The name of the actor.
15056
+ * @example Jane Doe
14863
15057
  */
14864
- last_name: string | null;
14865
- } | null;
14866
- /**
14867
- * @description Labels assigned to the Feature Flag for categorizing and filtering.
14868
- * @example [
14869
- * "reports"
14870
- * ]
14871
- */
14872
- tags: string[];
14873
- /**
14874
- * @description Specifies whether the Feature Flag is active for the current environment.
14875
- * @example true
14876
- */
14877
- enabled: boolean;
14878
- /**
14879
- * @description The value returned for users and organizations who don't match any configured targeting rules.
14880
- * @example false
14881
- */
14882
- default_value: boolean;
14883
- /**
14884
- * Format: date-time
14885
- * @description An ISO 8601 timestamp.
14886
- * @example 2026-01-15T12:00:00.000Z
14887
- */
14888
- created_at: string;
14889
- /**
14890
- * Format: date-time
14891
- * @description An ISO 8601 timestamp.
14892
- * @example 2026-01-15T12:00:00.000Z
14893
- */
14894
- updated_at: string;
15058
+ name: string | null;
15059
+ };
14895
15060
  };
15061
+ /**
15062
+ * @description Distinguishes the Event object.
15063
+ * @constant
15064
+ */
15065
+ object: "event";
15066
+ } | {
15067
+ /**
15068
+ * @description Unique identifier for the event.
15069
+ * @example event_01EHZNVPK3SFK441A1RGBFSHRT
15070
+ */
15071
+ id: string;
15072
+ /** @constant */
15073
+ event: "feature_flags.flag_rule.deleted";
15074
+ /** @description The event payload. */
15075
+ data: components["schemas"]["FlagRule"];
14896
15076
  /**
14897
15077
  * Format: date-time
14898
15078
  * @description An ISO 8601 timestamp.
@@ -14907,13 +15087,16 @@ export interface components {
14907
15087
  */
14908
15088
  client_id: string;
14909
15089
  /** @description The actor who performed the action. */
14910
- actor: {
15090
+ actor?: {
14911
15091
  /**
14912
15092
  * @description Unique identifier of the actor.
14913
15093
  * @example user_01EHWNCE74X7JSDV0X3SZ3KJNY
14914
15094
  */
14915
15095
  id: string;
14916
- /** @enum {string} */
15096
+ /**
15097
+ * @description The source of the actor that performed the action.
15098
+ * @enum {string}
15099
+ */
14917
15100
  source: "api" | "dashboard" | "admin_portal" | "system";
14918
15101
  /**
14919
15102
  * @description The name of the actor.
@@ -14921,13 +15104,608 @@ export interface components {
14921
15104
  */
14922
15105
  name: string | null;
14923
15106
  };
14924
- /**
14925
- * @description The access type of the flag rule.
14926
- * @enum {string}
14927
- */
14928
- access_type: "none" | "some" | "all";
14929
- /** @description The configured targets for the flag rule. */
14930
- configured_targets: {
15107
+ };
15108
+ /**
15109
+ * @description Distinguishes the Event object.
15110
+ * @constant
15111
+ */
15112
+ object: "event";
15113
+ } | {
15114
+ /**
15115
+ * @description Unique identifier for the event.
15116
+ * @example event_01EHZNVPK3SFK441A1RGBFSHRT
15117
+ */
15118
+ id: string;
15119
+ /** @constant */
15120
+ event: "feature_flags.flag_rule.updated";
15121
+ /** @description The event payload. */
15122
+ data: components["schemas"]["FlagRule"];
15123
+ /**
15124
+ * Format: date-time
15125
+ * @description An ISO 8601 timestamp.
15126
+ * @example 2026-01-15T12:00:00.000Z
15127
+ */
15128
+ created_at: string;
15129
+ /** @description Additional context about the event. */
15130
+ context: {
15131
+ /**
15132
+ * @description The client ID associated with the flag event.
15133
+ * @example client_01EHWNCE74X7JSDV0X3SZ3KJNY
15134
+ */
15135
+ client_id: string;
15136
+ /** @description The actor who performed the action. */
15137
+ actor?: {
15138
+ /**
15139
+ * @description Unique identifier of the actor.
15140
+ * @example user_01EHWNCE74X7JSDV0X3SZ3KJNY
15141
+ */
15142
+ id: string;
15143
+ /**
15144
+ * @description The source of the actor that performed the action.
15145
+ * @enum {string}
15146
+ */
15147
+ source: "api" | "dashboard" | "admin_portal" | "system";
15148
+ /**
15149
+ * @description The name of the actor.
15150
+ * @example Jane Doe
15151
+ */
15152
+ name: string | null;
15153
+ };
15154
+ /** @description Attributes that changed from their previous values. */
15155
+ previous_attributes?: {
15156
+ /** @description The previous data attributes of the flag rule. */
15157
+ data?: {
15158
+ /**
15159
+ * @description The value the rule served before the update.
15160
+ * @example true
15161
+ */
15162
+ value?: boolean;
15163
+ };
15164
+ };
15165
+ };
15166
+ /**
15167
+ * @description Distinguishes the Event object.
15168
+ * @constant
15169
+ */
15170
+ object: "event";
15171
+ } | {
15172
+ /**
15173
+ * @description Unique identifier for the event.
15174
+ * @example event_01EHZNVPK3SFK441A1RGBFSHRT
15175
+ */
15176
+ id: string;
15177
+ /** @constant */
15178
+ event: "feature_flags.flag.updated";
15179
+ /** @description The event payload. */
15180
+ data: {
15181
+ /** @constant */
15182
+ object: "feature_flag";
15183
+ /**
15184
+ * @description Unique identifier of the Feature Flag.
15185
+ * @example flag_01EHZNVPK3SFK441A1RGBFSHRT
15186
+ */
15187
+ id: string;
15188
+ /**
15189
+ * @description The ID of the environment the Feature Flag belongs to.
15190
+ * @example environment_01EHWNCE74X7JSDV0X3SZ3KJNY
15191
+ */
15192
+ environment_id: string;
15193
+ /**
15194
+ * @description A unique key to reference the Feature Flag.
15195
+ * @example advanced-analytics
15196
+ */
15197
+ slug: string;
15198
+ /**
15199
+ * @description A descriptive name for the Feature Flag.
15200
+ * @example Advanced Analytics
15201
+ */
15202
+ name: string;
15203
+ /**
15204
+ * @description A description for the Feature Flag.
15205
+ * @example Enable advanced analytics dashboard feature
15206
+ */
15207
+ description: string | null;
15208
+ /** @description The owner of the Feature Flag. */
15209
+ owner: {
15210
+ /**
15211
+ * @description The email address of the flag owner.
15212
+ * @example jane@example.com
15213
+ */
15214
+ email: string;
15215
+ /**
15216
+ * @description The first name of the flag owner.
15217
+ * @example Jane
15218
+ */
15219
+ first_name: string | null;
15220
+ /**
15221
+ * @description The last name of the flag owner.
15222
+ * @example Doe
15223
+ */
15224
+ last_name: string | null;
15225
+ } | null;
15226
+ /**
15227
+ * @description Labels assigned to the Feature Flag for categorizing and filtering.
15228
+ * @example [
15229
+ * "reports"
15230
+ * ]
15231
+ */
15232
+ tags: string[];
15233
+ /**
15234
+ * @description Specifies whether the Feature Flag is active for the current environment.
15235
+ * @example true
15236
+ */
15237
+ enabled: boolean;
15238
+ /**
15239
+ * @description The value returned for users and organizations who don't match any configured targeting rules.
15240
+ * @example false
15241
+ */
15242
+ default_value: boolean;
15243
+ /**
15244
+ * Format: date-time
15245
+ * @description An ISO 8601 timestamp.
15246
+ * @example 2026-01-15T12:00:00.000Z
15247
+ */
15248
+ created_at: string;
15249
+ /**
15250
+ * Format: date-time
15251
+ * @description An ISO 8601 timestamp.
15252
+ * @example 2026-01-15T12:00:00.000Z
15253
+ */
15254
+ updated_at: string;
15255
+ };
15256
+ /**
15257
+ * Format: date-time
15258
+ * @description An ISO 8601 timestamp.
15259
+ * @example 2026-01-15T12:00:00.000Z
15260
+ */
15261
+ created_at: string;
15262
+ /** @description Additional context about the event. */
15263
+ context: {
15264
+ /**
15265
+ * @description The client ID associated with the flag event.
15266
+ * @example client_01EHWNCE74X7JSDV0X3SZ3KJNY
15267
+ */
15268
+ client_id: string;
15269
+ /** @description The actor who performed the action. */
15270
+ actor: {
15271
+ /**
15272
+ * @description Unique identifier of the actor.
15273
+ * @example user_01EHWNCE74X7JSDV0X3SZ3KJNY
15274
+ */
15275
+ id: string;
15276
+ /**
15277
+ * @description The source of the actor that performed the action.
15278
+ * @enum {string}
15279
+ */
15280
+ source: "api" | "dashboard" | "admin_portal" | "system";
15281
+ /**
15282
+ * @description The name of the actor.
15283
+ * @example Jane Doe
15284
+ */
15285
+ name: string | null;
15286
+ };
15287
+ /** @description Attributes that changed from their previous values. */
15288
+ previous_attributes?: {
15289
+ /** @description The previous data attributes of the flag. */
15290
+ data?: {
15291
+ /**
15292
+ * @description The previous name of the flag.
15293
+ * @example My Feature Flag
15294
+ */
15295
+ name?: string;
15296
+ /**
15297
+ * @description The previous description of the flag.
15298
+ * @example Enables the new feature.
15299
+ */
15300
+ description?: string | null;
15301
+ /**
15302
+ * @description The previous tags of the flag.
15303
+ * @example [
15304
+ * "beta",
15305
+ * "release"
15306
+ * ]
15307
+ */
15308
+ tags?: string[];
15309
+ /** @description The previous owner of the flag, or `null` if it had none. */
15310
+ owner?: {
15311
+ /**
15312
+ * @description The email address of the flag owner.
15313
+ * @example jane@example.com
15314
+ */
15315
+ email: string;
15316
+ /**
15317
+ * @description The first name of the flag owner.
15318
+ * @example Jane
15319
+ */
15320
+ first_name: string | null;
15321
+ /**
15322
+ * @description The last name of the flag owner.
15323
+ * @example Doe
15324
+ */
15325
+ last_name: string | null;
15326
+ } | null;
15327
+ /**
15328
+ * @description Whether the flag was previously enabled.
15329
+ * @example true
15330
+ */
15331
+ enabled?: boolean;
15332
+ /**
15333
+ * @description The previous default value of the flag.
15334
+ * @example false
15335
+ */
15336
+ default_value?: boolean;
15337
+ };
15338
+ };
15339
+ };
15340
+ /**
15341
+ * @description Distinguishes the Event object.
15342
+ * @constant
15343
+ */
15344
+ object: "event";
15345
+ } | {
15346
+ /**
15347
+ * @description Unique identifier for the event.
15348
+ * @example event_01EHZNVPK3SFK441A1RGBFSHRT
15349
+ */
15350
+ id: string;
15351
+ /** @constant */
15352
+ event: "flag.created";
15353
+ /** @description The event payload. */
15354
+ data: {
15355
+ /** @constant */
15356
+ object: "feature_flag";
15357
+ /**
15358
+ * @description Unique identifier of the Feature Flag.
15359
+ * @example flag_01EHZNVPK3SFK441A1RGBFSHRT
15360
+ */
15361
+ id: string;
15362
+ /**
15363
+ * @description The ID of the environment the Feature Flag belongs to.
15364
+ * @example environment_01EHWNCE74X7JSDV0X3SZ3KJNY
15365
+ */
15366
+ environment_id: string;
15367
+ /**
15368
+ * @description A unique key to reference the Feature Flag.
15369
+ * @example advanced-analytics
15370
+ */
15371
+ slug: string;
15372
+ /**
15373
+ * @description A descriptive name for the Feature Flag.
15374
+ * @example Advanced Analytics
15375
+ */
15376
+ name: string;
15377
+ /**
15378
+ * @description A description for the Feature Flag.
15379
+ * @example Enable advanced analytics dashboard feature
15380
+ */
15381
+ description: string | null;
15382
+ /** @description The owner of the Feature Flag. */
15383
+ owner: {
15384
+ /**
15385
+ * @description The email address of the flag owner.
15386
+ * @example jane@example.com
15387
+ */
15388
+ email: string;
15389
+ /**
15390
+ * @description The first name of the flag owner.
15391
+ * @example Jane
15392
+ */
15393
+ first_name: string | null;
15394
+ /**
15395
+ * @description The last name of the flag owner.
15396
+ * @example Doe
15397
+ */
15398
+ last_name: string | null;
15399
+ } | null;
15400
+ /**
15401
+ * @description Labels assigned to the Feature Flag for categorizing and filtering.
15402
+ * @example [
15403
+ * "reports"
15404
+ * ]
15405
+ */
15406
+ tags: string[];
15407
+ /**
15408
+ * @description Specifies whether the Feature Flag is active for the current environment.
15409
+ * @example true
15410
+ */
15411
+ enabled: boolean;
15412
+ /**
15413
+ * @description The value returned for users and organizations who don't match any configured targeting rules.
15414
+ * @example false
15415
+ */
15416
+ default_value: boolean;
15417
+ /**
15418
+ * Format: date-time
15419
+ * @description An ISO 8601 timestamp.
15420
+ * @example 2026-01-15T12:00:00.000Z
15421
+ */
15422
+ created_at: string;
15423
+ /**
15424
+ * Format: date-time
15425
+ * @description An ISO 8601 timestamp.
15426
+ * @example 2026-01-15T12:00:00.000Z
15427
+ */
15428
+ updated_at: string;
15429
+ };
15430
+ /**
15431
+ * Format: date-time
15432
+ * @description An ISO 8601 timestamp.
15433
+ * @example 2026-01-15T12:00:00.000Z
15434
+ */
15435
+ created_at: string;
15436
+ /** @description Additional context about the event. */
15437
+ context: {
15438
+ /**
15439
+ * @description The client ID associated with the flag event.
15440
+ * @example client_01EHWNCE74X7JSDV0X3SZ3KJNY
15441
+ */
15442
+ client_id: string;
15443
+ /** @description The actor who performed the action. */
15444
+ actor: {
15445
+ /**
15446
+ * @description Unique identifier of the actor.
15447
+ * @example user_01EHWNCE74X7JSDV0X3SZ3KJNY
15448
+ */
15449
+ id: string;
15450
+ /**
15451
+ * @description The source of the actor that performed the action.
15452
+ * @enum {string}
15453
+ */
15454
+ source: "api" | "dashboard" | "admin_portal" | "system";
15455
+ /**
15456
+ * @description The name of the actor.
15457
+ * @example Jane Doe
15458
+ */
15459
+ name: string | null;
15460
+ };
15461
+ };
15462
+ /**
15463
+ * @description Distinguishes the Event object.
15464
+ * @constant
15465
+ */
15466
+ object: "event";
15467
+ } | {
15468
+ /**
15469
+ * @description Unique identifier for the event.
15470
+ * @example event_01EHZNVPK3SFK441A1RGBFSHRT
15471
+ */
15472
+ id: string;
15473
+ /** @constant */
15474
+ event: "flag.deleted";
15475
+ /** @description The event payload. */
15476
+ data: {
15477
+ /** @constant */
15478
+ object: "feature_flag";
15479
+ /**
15480
+ * @description Unique identifier of the Feature Flag.
15481
+ * @example flag_01EHZNVPK3SFK441A1RGBFSHRT
15482
+ */
15483
+ id: string;
15484
+ /**
15485
+ * @description The ID of the environment the Feature Flag belongs to.
15486
+ * @example environment_01EHWNCE74X7JSDV0X3SZ3KJNY
15487
+ */
15488
+ environment_id: string;
15489
+ /**
15490
+ * @description A unique key to reference the Feature Flag.
15491
+ * @example advanced-analytics
15492
+ */
15493
+ slug: string;
15494
+ /**
15495
+ * @description A descriptive name for the Feature Flag.
15496
+ * @example Advanced Analytics
15497
+ */
15498
+ name: string;
15499
+ /**
15500
+ * @description A description for the Feature Flag.
15501
+ * @example Enable advanced analytics dashboard feature
15502
+ */
15503
+ description: string | null;
15504
+ /** @description The owner of the Feature Flag. */
15505
+ owner: {
15506
+ /**
15507
+ * @description The email address of the flag owner.
15508
+ * @example jane@example.com
15509
+ */
15510
+ email: string;
15511
+ /**
15512
+ * @description The first name of the flag owner.
15513
+ * @example Jane
15514
+ */
15515
+ first_name: string | null;
15516
+ /**
15517
+ * @description The last name of the flag owner.
15518
+ * @example Doe
15519
+ */
15520
+ last_name: string | null;
15521
+ } | null;
15522
+ /**
15523
+ * @description Labels assigned to the Feature Flag for categorizing and filtering.
15524
+ * @example [
15525
+ * "reports"
15526
+ * ]
15527
+ */
15528
+ tags: string[];
15529
+ /**
15530
+ * @description Specifies whether the Feature Flag is active for the current environment.
15531
+ * @example true
15532
+ */
15533
+ enabled: boolean;
15534
+ /**
15535
+ * @description The value returned for users and organizations who don't match any configured targeting rules.
15536
+ * @example false
15537
+ */
15538
+ default_value: boolean;
15539
+ /**
15540
+ * Format: date-time
15541
+ * @description An ISO 8601 timestamp.
15542
+ * @example 2026-01-15T12:00:00.000Z
15543
+ */
15544
+ created_at: string;
15545
+ /**
15546
+ * Format: date-time
15547
+ * @description An ISO 8601 timestamp.
15548
+ * @example 2026-01-15T12:00:00.000Z
15549
+ */
15550
+ updated_at: string;
15551
+ };
15552
+ /**
15553
+ * Format: date-time
15554
+ * @description An ISO 8601 timestamp.
15555
+ * @example 2026-01-15T12:00:00.000Z
15556
+ */
15557
+ created_at: string;
15558
+ /** @description Additional context about the event. */
15559
+ context: {
15560
+ /**
15561
+ * @description The client ID associated with the flag event.
15562
+ * @example client_01EHWNCE74X7JSDV0X3SZ3KJNY
15563
+ */
15564
+ client_id: string;
15565
+ /** @description The actor who performed the action. */
15566
+ actor: {
15567
+ /**
15568
+ * @description Unique identifier of the actor.
15569
+ * @example user_01EHWNCE74X7JSDV0X3SZ3KJNY
15570
+ */
15571
+ id: string;
15572
+ /**
15573
+ * @description The source of the actor that performed the action.
15574
+ * @enum {string}
15575
+ */
15576
+ source: "api" | "dashboard" | "admin_portal" | "system";
15577
+ /**
15578
+ * @description The name of the actor.
15579
+ * @example Jane Doe
15580
+ */
15581
+ name: string | null;
15582
+ };
15583
+ };
15584
+ /**
15585
+ * @description Distinguishes the Event object.
15586
+ * @constant
15587
+ */
15588
+ object: "event";
15589
+ } | {
15590
+ /**
15591
+ * @description Unique identifier for the event.
15592
+ * @example event_01EHZNVPK3SFK441A1RGBFSHRT
15593
+ */
15594
+ id: string;
15595
+ /** @constant */
15596
+ event: "flag.rule_updated";
15597
+ /** @description The event payload. */
15598
+ data: {
15599
+ /** @constant */
15600
+ object: "feature_flag";
15601
+ /**
15602
+ * @description Unique identifier of the Feature Flag.
15603
+ * @example flag_01EHZNVPK3SFK441A1RGBFSHRT
15604
+ */
15605
+ id: string;
15606
+ /**
15607
+ * @description The ID of the environment the Feature Flag belongs to.
15608
+ * @example environment_01EHWNCE74X7JSDV0X3SZ3KJNY
15609
+ */
15610
+ environment_id: string;
15611
+ /**
15612
+ * @description A unique key to reference the Feature Flag.
15613
+ * @example advanced-analytics
15614
+ */
15615
+ slug: string;
15616
+ /**
15617
+ * @description A descriptive name for the Feature Flag.
15618
+ * @example Advanced Analytics
15619
+ */
15620
+ name: string;
15621
+ /**
15622
+ * @description A description for the Feature Flag.
15623
+ * @example Enable advanced analytics dashboard feature
15624
+ */
15625
+ description: string | null;
15626
+ /** @description The owner of the Feature Flag. */
15627
+ owner: {
15628
+ /**
15629
+ * @description The email address of the flag owner.
15630
+ * @example jane@example.com
15631
+ */
15632
+ email: string;
15633
+ /**
15634
+ * @description The first name of the flag owner.
15635
+ * @example Jane
15636
+ */
15637
+ first_name: string | null;
15638
+ /**
15639
+ * @description The last name of the flag owner.
15640
+ * @example Doe
15641
+ */
15642
+ last_name: string | null;
15643
+ } | null;
15644
+ /**
15645
+ * @description Labels assigned to the Feature Flag for categorizing and filtering.
15646
+ * @example [
15647
+ * "reports"
15648
+ * ]
15649
+ */
15650
+ tags: string[];
15651
+ /**
15652
+ * @description Specifies whether the Feature Flag is active for the current environment.
15653
+ * @example true
15654
+ */
15655
+ enabled: boolean;
15656
+ /**
15657
+ * @description The value returned for users and organizations who don't match any configured targeting rules.
15658
+ * @example false
15659
+ */
15660
+ default_value: boolean;
15661
+ /**
15662
+ * Format: date-time
15663
+ * @description An ISO 8601 timestamp.
15664
+ * @example 2026-01-15T12:00:00.000Z
15665
+ */
15666
+ created_at: string;
15667
+ /**
15668
+ * Format: date-time
15669
+ * @description An ISO 8601 timestamp.
15670
+ * @example 2026-01-15T12:00:00.000Z
15671
+ */
15672
+ updated_at: string;
15673
+ };
15674
+ /**
15675
+ * Format: date-time
15676
+ * @description An ISO 8601 timestamp.
15677
+ * @example 2026-01-15T12:00:00.000Z
15678
+ */
15679
+ created_at: string;
15680
+ /** @description Additional context about the event. */
15681
+ context: {
15682
+ /**
15683
+ * @description The client ID associated with the flag event.
15684
+ * @example client_01EHWNCE74X7JSDV0X3SZ3KJNY
15685
+ */
15686
+ client_id: string;
15687
+ /** @description The actor who performed the action. */
15688
+ actor: {
15689
+ /**
15690
+ * @description Unique identifier of the actor.
15691
+ * @example user_01EHWNCE74X7JSDV0X3SZ3KJNY
15692
+ */
15693
+ id: string;
15694
+ /** @enum {string} */
15695
+ source: "api" | "dashboard" | "admin_portal" | "system";
15696
+ /**
15697
+ * @description The name of the actor.
15698
+ * @example Jane Doe
15699
+ */
15700
+ name: string | null;
15701
+ };
15702
+ /**
15703
+ * @description The access type of the flag rule.
15704
+ * @enum {string}
15705
+ */
15706
+ access_type: "none" | "some" | "all";
15707
+ /** @description The configured targets for the flag rule. */
15708
+ configured_targets: {
14931
15709
  /** @description The organizations targeted by the flag rule. */
14932
15710
  organizations: {
14933
15711
  /**
@@ -15014,6 +15792,100 @@ export interface components {
15014
15792
  * @constant
15015
15793
  */
15016
15794
  object: "event";
15795
+ } | {
15796
+ /**
15797
+ * @description Unique identifier for the event.
15798
+ * @example event_01EHZNVPK3SFK441A1RGBFSHRT
15799
+ */
15800
+ id: string;
15801
+ /** @constant */
15802
+ event: "feature_flags.flag_target.created";
15803
+ /** @description The event payload. */
15804
+ data: components["schemas"]["FlagTarget"];
15805
+ /**
15806
+ * Format: date-time
15807
+ * @description An ISO 8601 timestamp.
15808
+ * @example 2026-01-15T12:00:00.000Z
15809
+ */
15810
+ created_at: string;
15811
+ /** @description Additional context about the event. */
15812
+ context: {
15813
+ /**
15814
+ * @description The client ID associated with the flag event.
15815
+ * @example client_01EHWNCE74X7JSDV0X3SZ3KJNY
15816
+ */
15817
+ client_id: string;
15818
+ /** @description The actor who performed the action. */
15819
+ actor: {
15820
+ /**
15821
+ * @description Unique identifier of the actor.
15822
+ * @example user_01EHWNCE74X7JSDV0X3SZ3KJNY
15823
+ */
15824
+ id: string;
15825
+ /**
15826
+ * @description The source of the actor that performed the action.
15827
+ * @enum {string}
15828
+ */
15829
+ source: "api" | "dashboard" | "admin_portal" | "system";
15830
+ /**
15831
+ * @description The name of the actor.
15832
+ * @example Jane Doe
15833
+ */
15834
+ name: string | null;
15835
+ };
15836
+ };
15837
+ /**
15838
+ * @description Distinguishes the Event object.
15839
+ * @constant
15840
+ */
15841
+ object: "event";
15842
+ } | {
15843
+ /**
15844
+ * @description Unique identifier for the event.
15845
+ * @example event_01EHZNVPK3SFK441A1RGBFSHRT
15846
+ */
15847
+ id: string;
15848
+ /** @constant */
15849
+ event: "feature_flags.flag_target.deleted";
15850
+ /** @description The event payload. */
15851
+ data: components["schemas"]["FlagTarget"];
15852
+ /**
15853
+ * Format: date-time
15854
+ * @description An ISO 8601 timestamp.
15855
+ * @example 2026-01-15T12:00:00.000Z
15856
+ */
15857
+ created_at: string;
15858
+ /** @description Additional context about the event. */
15859
+ context: {
15860
+ /**
15861
+ * @description The client ID associated with the flag event.
15862
+ * @example client_01EHWNCE74X7JSDV0X3SZ3KJNY
15863
+ */
15864
+ client_id: string;
15865
+ /** @description The actor who performed the action. */
15866
+ actor: {
15867
+ /**
15868
+ * @description Unique identifier of the actor.
15869
+ * @example user_01EHWNCE74X7JSDV0X3SZ3KJNY
15870
+ */
15871
+ id: string;
15872
+ /**
15873
+ * @description The source of the actor that performed the action.
15874
+ * @enum {string}
15875
+ */
15876
+ source: "api" | "dashboard" | "admin_portal" | "system";
15877
+ /**
15878
+ * @description The name of the actor.
15879
+ * @example Jane Doe
15880
+ */
15881
+ name: string | null;
15882
+ };
15883
+ };
15884
+ /**
15885
+ * @description Distinguishes the Event object.
15886
+ * @constant
15887
+ */
15888
+ object: "event";
15017
15889
  } | {
15018
15890
  /**
15019
15891
  * @description Unique identifier for the event.