import { IDevKnativeEventingPkgApisEventingV1SubscriptionsAPIFilter } from "../v1/SubscriptionsAPIFilter.js"; import { IDevKnativeEventingPkgApisEventingV1alpha1EventPolicySpecFrom } from "./EventPolicySpecFrom.js"; import { IDevKnativeEventingPkgApisEventingV1alpha1EventPolicySpecTo } from "./EventPolicySpecTo.js"; import { ModelData, Model } from "@kubernetes-models/base"; export interface IEventPolicySpec { /** * Filters is the list of SubscriptoinsApi filters which determine whether or not the event is accepted. * It is an array of filter expressions that evaluate to true or false. * If any filter expression in the array evaluates to false, the event will not * pass the target resource's ingress. Absence of any filters implies that the filters * always evaluate to true. */ "filters"?: Array; /** * From is the list of sources or oidc identities, which are allowed to send events to the targets (.spec.to). */ "from"?: Array; /** * To lists all resources for which this policy applies. * Resources in this list must act like an ingress and have an audience. * The resources are part of the same namespace as the EventPolicy. * An empty list means it applies to all resources in the EventPolicies namespace */ "to"?: Array; } export declare class EventPolicySpec extends Model implements IEventPolicySpec { "filters"?: Array; "from"?: Array; "to"?: Array; constructor(data?: ModelData); } export type { IEventPolicySpec as IDevKnativeEventingPkgApisEventingV1alpha1EventPolicySpec, EventPolicySpec as DevKnativeEventingPkgApisEventingV1alpha1EventPolicySpec };