/** * #fetch_domain.ts * * Code generated by ts-proto. DO NOT EDIT. * @packageDocumentation */ import type { GlobalListType } from "../fetch_domain_request/fetch_domain_request.js"; /** Represents a domain's global status. UNDECIDED means the domain is not globally decided, ie only applies at the app level. */ export declare enum FetchDomainGlobalStatus { UNDECIDED = 0, ALLOWED = 1, DENIED = 2, UNRECOGNIZED = -1 } export type FetchDomain = { /** The domain name, eg 'api.stlouisfed.org' */ domain: string; /** The status of the domain, one of UNDECIDED, ALLOWED, or DENIED */ globalStatus: FetchDomainGlobalStatus; /** When the domain was last updated (from the most recent FetchDomainRequest for this domain), eg for display as 'Updated 2h ago'. */ updatedAt?: string | undefined; }; export type GetFetchDomainsWithStatusRequest = { /** The status of the domains to retrieve. */ globalStatus: FetchDomainGlobalStatus; /** The page number to retrieve. */ pageNumber: number; /** The number of domains to retrieve per page. */ pageSize: number; /** Optional filter: only return domains whose name contains this string (case-insensitive). */ domainFilter?: string | undefined; }; export type GetFetchDomainsResponse = { /** The fetch domains to return. */ fetchDomains: FetchDomain[]; /** Indicates whether or not there is a next page of fetch domains. */ hasNextPage?: boolean | undefined; /** Total number of domains with the specified global status (across all pages). */ totalCount?: number | undefined; }; /** * Request to add a domain to a global list (allowlist or denylist). * If a domain already exists on the list, it will be updated with the new global status. */ export type AddGlobalDomainsRequest = { /** The list of domains to add to the global list. */ domains: string[]; /** The global status of the domains being added (ALLOWED or DENIED). */ globalStatus: FetchDomainGlobalStatus; }; export type RemoveGlobalDomainRequest = { /** The domain to remove from the global list, eg 'api.example.com' */ domain: string; /** The global list type to remove the domain from, eg ALLOWLIST or DENYLIST. */ globalListType: GlobalListType; }; //# sourceMappingURL=fetch_domain.d.ts.map