import { APIResource } from "../../resource.js"; import * as Core from "../../core.js"; import * as FlowRunNotificationPoliciesAPI from "./flow-run-notification-policies.js"; import * as FilterAPI from "./filter.js"; export declare class FlowRunNotificationPolicies extends APIResource { filter: FilterAPI.Filter; /** * Creates a new flow run notification policy. */ create(params: FlowRunNotificationPolicyCreateParams, options?: Core.RequestOptions): Core.APIPromise; /** * Get a flow run notification policy by id. */ retrieve(id: string, params?: FlowRunNotificationPolicyRetrieveParams, options?: Core.RequestOptions): Core.APIPromise; retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise; /** * Updates an existing flow run notification policy. */ update(id: string, params: FlowRunNotificationPolicyUpdateParams, options?: Core.RequestOptions): Core.APIPromise; /** * Delete a flow run notification policy by id. */ delete(id: string, params?: FlowRunNotificationPolicyDeleteParams, options?: Core.RequestOptions): Core.APIPromise; delete(id: string, options?: Core.RequestOptions): Core.APIPromise; } /** * An ORM representation of a flow run notification. */ export interface FlowRunNotificationPolicy { /** * The block document ID used for sending notifications */ block_document_id: string; /** * The flow run states that trigger notifications */ state_names: Array; /** * The flow run tags that trigger notifications (set [] to disable) */ tags: Array; id?: string; created?: string | null; /** * Whether the policy is currently active */ is_active?: boolean; /** * A templatable notification message. Use {braces} to add variables. Valid * variables include: 'flow_id', 'flow_name', 'flow_run_id', 'flow_run_name', * 'flow_run_notification_policy_id', 'flow_run_parameters', * 'flow_run_state_message', 'flow_run_state_name', 'flow_run_state_timestamp', * 'flow_run_state_type', 'flow_run_url' */ message_template?: string | null; updated?: string | null; } export interface FlowRunNotificationPolicyCreateParams { /** * Body param: The block document ID used for sending notifications */ block_document_id: string; /** * Body param: The flow run states that trigger notifications */ state_names: Array; /** * Body param: The flow run tags that trigger notifications (set [] to disable) */ tags: Array; /** * Body param: Whether the policy is currently active */ is_active?: boolean; /** * Body param: A templatable notification message. Use {braces} to add variables. * Valid variables include: 'flow_id', 'flow_name', 'flow_run_id', 'flow_run_name', * 'flow_run_notification_policy_id', 'flow_run_parameters', * 'flow_run_state_message', 'flow_run_state_name', 'flow_run_state_timestamp', * 'flow_run_state_type', 'flow_run_url' */ message_template?: string | null; /** * Header param: */ 'x-prefect-api-version'?: string; } export interface FlowRunNotificationPolicyRetrieveParams { 'x-prefect-api-version'?: string; } export interface FlowRunNotificationPolicyUpdateParams { /** * Body param: */ block_document_id?: string | null; /** * Body param: */ is_active?: boolean | null; /** * Body param: */ message_template?: string | null; /** * Body param: */ state_names?: Array | null; /** * Body param: */ tags?: Array | null; /** * Header param: */ 'x-prefect-api-version'?: string; } export interface FlowRunNotificationPolicyDeleteParams { 'x-prefect-api-version'?: string; } export declare namespace FlowRunNotificationPolicies { export import FlowRunNotificationPolicy = FlowRunNotificationPoliciesAPI.FlowRunNotificationPolicy; export import FlowRunNotificationPolicyCreateParams = FlowRunNotificationPoliciesAPI.FlowRunNotificationPolicyCreateParams; export import FlowRunNotificationPolicyRetrieveParams = FlowRunNotificationPoliciesAPI.FlowRunNotificationPolicyRetrieveParams; export import FlowRunNotificationPolicyUpdateParams = FlowRunNotificationPoliciesAPI.FlowRunNotificationPolicyUpdateParams; export import FlowRunNotificationPolicyDeleteParams = FlowRunNotificationPoliciesAPI.FlowRunNotificationPolicyDeleteParams; export import Filter = FilterAPI.Filter; export import FilterCreateResponse = FilterAPI.FilterCreateResponse; export import FilterCreateParams = FilterAPI.FilterCreateParams; } //# sourceMappingURL=flow-run-notification-policies.d.ts.map