import * as S from "@distilled.cloud/core/schema"; import * as API from "@distilled.cloud/core/api"; import { type CloudflareOpError, type CloudflareOpContext } from "../protocol.ts"; import { ResultInfo } from "../pagination.ts"; export type { CloudflareOpError, CloudflareOpContext }; declare const Forbidden_base: S.Class, import("effect/Cause").YieldableError>; export declare class Forbidden extends /*@__PURE__*/ Forbidden_base { } declare const MaxRulesExceeded_base: S.Class, import("effect/Cause").YieldableError>; export declare class MaxRulesExceeded extends /*@__PURE__*/ MaxRulesExceeded_base { } declare const RuleNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class RuleNotFound extends /*@__PURE__*/ RuleNotFound_base { } declare const RulesetNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class RulesetNotFound extends /*@__PURE__*/ RulesetNotFound_base { } declare const RumSiteQuotaExceeded_base: S.Class, import("effect/Cause").YieldableError>; export declare class RumSiteQuotaExceeded extends /*@__PURE__*/ RumSiteQuotaExceeded_base { } declare const SiteNotFound_base: S.Class, import("effect/Cause").YieldableError>; export declare class SiteNotFound extends /*@__PURE__*/ SiteNotFound_base { } export type RulesBulkCreateRequestDeleteRulesList = Array; export declare const RulesBulkCreateRequestDeleteRulesList: S.Schema; export type RulesBulkCreateRequestRulesItemPathsList = Array; export declare const RulesBulkCreateRequestRulesItemPathsList: S.Schema; export interface RulesBulkCreateRequestRulesItem { /** The Web Analytics rule identifier. */ id?: string; host?: string; inclusive?: boolean; isPaused?: boolean; paths?: RulesBulkCreateRequestRulesItemPathsList; } export declare const RulesBulkCreateRequestRulesItem: S.Schema; export type RulesBulkCreateRequestRulesList = Array; export declare const RulesBulkCreateRequestRulesList: S.Schema; export interface BulkCreateRulesRequest { /** Identifier. */ accountId: string; /** The Web Analytics ruleset identifier. */ rulesetId: string; /** A list of rule identifiers to delete. */ deleteRules?: RulesBulkCreateRequestDeleteRulesList; /** A list of rules to create or update. */ rules?: RulesBulkCreateRequestRulesList; } export declare const BulkCreateRulesRequest: S.Schema; export type RulesBulkCreateResponseRulesItemPathsList = Array; export declare const RulesBulkCreateResponseRulesItemPathsList: S.Schema; export interface RulesBulkCreateResponseRulesItem { /** The Web Analytics rule identifier. */ id?: string | null; created?: string | null; /** The hostname the rule will be applied to. */ host?: string | null; /** Whether the rule includes or excludes traffic from being measured. */ inclusive?: boolean | null; /** Whether the rule is paused or not. */ isPaused?: boolean | null; /** The paths the rule will be applied to. */ paths?: RulesBulkCreateResponseRulesItemPathsList | null; priority?: number | null; } export declare const RulesBulkCreateResponseRulesItem: S.Schema; export type RulesBulkCreateResponseRulesList = Array; export declare const RulesBulkCreateResponseRulesList: S.Schema; export interface RulesBulkCreateResponseRuleset { /** The Web Analytics ruleset identifier. */ id?: string | null; /** Whether the ruleset is enabled. */ enabled?: boolean | null; zoneName?: string | null; /** The zone identifier. */ zoneTag?: string | null; } export declare const RulesBulkCreateResponseRuleset: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface BulkCreateRulesResponse { /** A list of rules. */ rules?: RulesBulkCreateResponseRulesList | null; ruleset?: RulesBulkCreateResponseRuleset | null; } export declare const BulkCreateRulesResponse: S.Schema; export type RulesCreateRequestPathsList = Array; export declare const RulesCreateRequestPathsList: S.Schema; export interface CreateRuleRequest { /** Identifier. */ accountId: string; /** The Web Analytics ruleset identifier. */ rulesetId: string; host?: string; /** Whether the rule includes or excludes traffic from being measured. */ inclusive?: boolean; /** Whether the rule is paused or not. */ isPaused?: boolean; paths?: RulesCreateRequestPathsList; } export declare const CreateRuleRequest: S.Schema; export type RulesCreateResponsePathsList = Array; export declare const RulesCreateResponsePathsList: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateRuleResponse { /** The Web Analytics rule identifier. */ id?: string | null; created?: string | null; /** The hostname the rule will be applied to. */ host?: string | null; /** Whether the rule includes or excludes traffic from being measured. */ inclusive?: boolean | null; /** Whether the rule is paused or not. */ isPaused?: boolean | null; /** The paths the rule will be applied to. */ paths?: RulesCreateResponsePathsList | null; priority?: number | null; } export declare const CreateRuleResponse: S.Schema; export interface CreateSiteInfoRequest { /** Identifier. */ accountId: string; /** If enabled, the JavaScript snippet is automatically injected for orange-clouded sites. */ autoInstall?: boolean; /** The hostname to use for gray-clouded sites. */ host?: string; /** The zone identifier. */ zoneTag?: string; } export declare const CreateSiteInfoRequest: S.Schema; export type SiteInfoCreateResponseRulesItemPathsList = Array; export declare const SiteInfoCreateResponseRulesItemPathsList: S.Schema; export interface SiteInfoCreateResponseRulesItem { /** The Web Analytics rule identifier. */ id?: string | null; created?: string | null; /** The hostname the rule will be applied to. */ host?: string | null; /** Whether the rule includes or excludes traffic from being measured. */ inclusive?: boolean | null; /** Whether the rule is paused or not. */ isPaused?: boolean | null; /** The paths the rule will be applied to. */ paths?: SiteInfoCreateResponseRulesItemPathsList | null; priority?: number | null; } export declare const SiteInfoCreateResponseRulesItem: S.Schema; export type SiteInfoCreateResponseRulesList = Array; export declare const SiteInfoCreateResponseRulesList: S.Schema; export type SiteInfoCreateResponseRuleset = RulesBulkCreateResponseRuleset; export declare const SiteInfoCreateResponseRuleset: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface CreateSiteInfoResponse { /** If enabled, the JavaScript snippet is automatically injected for orange-clouded sites. */ autoInstall?: boolean | null; created?: string | null; /** A list of rules. */ rules?: SiteInfoCreateResponseRulesList | null; ruleset?: RulesBulkCreateResponseRuleset | null; /** The Web Analytics site identifier. */ siteTag?: string | null; /** The Web Analytics site token. */ siteToken?: string | null; /** Encoded JavaScript snippet. */ snippet?: string | null; /** The hostname the site measures (gray-clouded sites). */ host?: string | null; } export declare const CreateSiteInfoResponse: S.Schema; export interface DeleteRuleRequest { /** Identifier. */ accountId: string; /** The Web Analytics ruleset identifier. */ rulesetId: string; /** The Web Analytics rule identifier. */ ruleId: string; } export declare const DeleteRuleRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DeleteRuleResponse { /** The Web Analytics rule identifier. */ id?: string | null; } export declare const DeleteRuleResponse: S.Schema; export interface DeleteSiteInfoRequest { /** Identifier. */ accountId: string; /** Identifier. */ siteId: string; } export declare const DeleteSiteInfoRequest: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface DeleteSiteInfoResponse { /** The Web Analytics site identifier. */ siteTag?: string | null; } export declare const DeleteSiteInfoResponse: S.Schema; export interface GetSiteInfoRequest { /** Identifier. */ accountId: string; /** Identifier. */ siteId: string; } export declare const GetSiteInfoRequest: S.Schema; export type SiteInfoGetResponseRulesItemPathsList = Array; export declare const SiteInfoGetResponseRulesItemPathsList: S.Schema; export interface SiteInfoGetResponseRulesItem { /** The Web Analytics rule identifier. */ id?: string | null; created?: string | null; /** The hostname the rule will be applied to. */ host?: string | null; /** Whether the rule includes or excludes traffic from being measured. */ inclusive?: boolean | null; /** Whether the rule is paused or not. */ isPaused?: boolean | null; /** The paths the rule will be applied to. */ paths?: SiteInfoGetResponseRulesItemPathsList | null; priority?: number | null; } export declare const SiteInfoGetResponseRulesItem: S.Schema; export type SiteInfoGetResponseRulesList = Array; export declare const SiteInfoGetResponseRulesList: S.Schema; export type SiteInfoGetResponseRuleset = RulesBulkCreateResponseRuleset; export declare const SiteInfoGetResponseRuleset: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface GetSiteInfoResponse { /** If enabled, the JavaScript snippet is automatically injected for orange-clouded sites. */ autoInstall?: boolean | null; created?: string | null; /** A list of rules. */ rules?: SiteInfoGetResponseRulesList | null; ruleset?: RulesBulkCreateResponseRuleset | null; /** The Web Analytics site identifier. */ siteTag?: string | null; /** The Web Analytics site token. */ siteToken?: string | null; /** Encoded JavaScript snippet. */ snippet?: string | null; /** The hostname the site measures (gray-clouded sites). */ host?: string | null; } export declare const GetSiteInfoResponse: S.Schema; export interface ListRulesRequest { /** Identifier. */ accountId: string; /** The Web Analytics ruleset identifier. */ rulesetId: string; } export declare const ListRulesRequest: S.Schema; export type RulesListResponseRulesItemPathsList = Array; export declare const RulesListResponseRulesItemPathsList: S.Schema; export interface RulesListResponseRulesItem { /** The Web Analytics rule identifier. */ id?: string | null; created?: string | null; /** The hostname the rule will be applied to. */ host?: string | null; /** Whether the rule includes or excludes traffic from being measured. */ inclusive?: boolean | null; /** Whether the rule is paused or not. */ isPaused?: boolean | null; /** The paths the rule will be applied to. */ paths?: RulesListResponseRulesItemPathsList | null; priority?: number | null; } export declare const RulesListResponseRulesItem: S.Schema; export type RulesListResponseRulesList = Array; export declare const RulesListResponseRulesList: S.Schema; export type RulesListResponseRuleset = RulesBulkCreateResponseRuleset; export declare const RulesListResponseRuleset: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface ListRulesResponse { /** A list of rules. */ rules?: RulesListResponseRulesList | null; ruleset?: RulesBulkCreateResponseRuleset | null; } export declare const ListRulesResponse: S.Schema; export type SiteInfoListRequestOrderBy = "host" | "created"; export declare const SiteInfoListRequestOrderBy: any; export interface ListSiteInfosRequest { /** Identifier. */ accountId: string; /** The property used to sort the list of results. */ orderBy?: SiteInfoListRequestOrderBy | (string & {}); /** Current page within the paginated list of results. */ page?: number; /** Number of items to return per page of results. */ perPage?: number; } export declare const ListSiteInfosRequest: S.Schema; export type SiteInfoListResultItemRulesItemPathsList = Array; export declare const SiteInfoListResultItemRulesItemPathsList: S.Schema; export interface SiteInfoListResultItemRulesItem { /** The Web Analytics rule identifier. */ id?: string | null; created?: string | null; /** The hostname the rule will be applied to. */ host?: string | null; /** Whether the rule includes or excludes traffic from being measured. */ inclusive?: boolean | null; /** Whether the rule is paused or not. */ isPaused?: boolean | null; /** The paths the rule will be applied to. */ paths?: SiteInfoListResultItemRulesItemPathsList | null; priority?: number | null; } export declare const SiteInfoListResultItemRulesItem: S.Schema; export type SiteInfoListResultItemRulesList = Array; export declare const SiteInfoListResultItemRulesList: S.Schema; export type SiteInfoListResultItemRuleset = RulesBulkCreateResponseRuleset; export declare const SiteInfoListResultItemRuleset: S.Schema; export interface SiteInfoListResultItem { /** If enabled, the JavaScript snippet is automatically injected for orange-clouded sites. */ autoInstall?: boolean | null; created?: string | null; /** A list of rules. */ rules?: SiteInfoListResultItemRulesList | null; ruleset?: RulesBulkCreateResponseRuleset | null; /** The Web Analytics site identifier. */ siteTag?: string | null; /** The Web Analytics site token. */ siteToken?: string | null; /** Encoded JavaScript snippet. */ snippet?: string | null; /** The hostname the site measures (gray-clouded sites). */ host?: string | null; } export declare const SiteInfoListResultItem: S.Schema; export type SiteInfoListResultList = Array; export declare const SiteInfoListResultList: S.Schema; export interface ListSiteInfosResponse { /** The unwrapped `result` payload of the v4 response envelope. */ result: SiteInfoListResultList; /** Pagination info from the envelope's `result_info`. */ resultInfo?: ResultInfo | null; } export declare const ListSiteInfosResponse: S.Schema; export type RulesUpdateRequestPathsList = Array; export declare const RulesUpdateRequestPathsList: S.Schema; export interface UpdateRuleRequest { /** Identifier. */ accountId: string; /** The Web Analytics ruleset identifier. */ rulesetId: string; /** The Web Analytics rule identifier. */ ruleId: string; host?: string; /** Whether the rule includes or excludes traffic from being measured. */ inclusive?: boolean; /** Whether the rule is paused or not. */ isPaused?: boolean; paths?: RulesUpdateRequestPathsList; } export declare const UpdateRuleRequest: S.Schema; export type RulesUpdateResponsePathsList = Array; export declare const RulesUpdateResponsePathsList: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateRuleResponse { /** The Web Analytics rule identifier. */ id?: string | null; created?: string | null; /** The hostname the rule will be applied to. */ host?: string | null; /** Whether the rule includes or excludes traffic from being measured. */ inclusive?: boolean | null; /** Whether the rule is paused or not. */ isPaused?: boolean | null; /** The paths the rule will be applied to. */ paths?: RulesUpdateResponsePathsList | null; priority?: number | null; } export declare const UpdateRuleResponse: S.Schema; export interface UpdateSiteInfoRequest { /** Identifier. */ accountId: string; /** Identifier. */ siteId: string; /** If enabled, the JavaScript snippet is automatically injected for orange-clouded sites. */ autoInstall?: boolean; /** Enables or disables RUM. This option can be used only when auto_install is set to true. */ enabled?: boolean; /** The hostname to use for gray-clouded sites. */ host?: string; /** If enabled, the JavaScript snippet will not be injected for visitors from the EU. */ lite?: boolean; /** The zone identifier. */ zoneTag?: string; } export declare const UpdateSiteInfoRequest: S.Schema; export type SiteInfoUpdateResponseRulesItemPathsList = Array; export declare const SiteInfoUpdateResponseRulesItemPathsList: S.Schema; export interface SiteInfoUpdateResponseRulesItem { /** The Web Analytics rule identifier. */ id?: string | null; created?: string | null; /** The hostname the rule will be applied to. */ host?: string | null; /** Whether the rule includes or excludes traffic from being measured. */ inclusive?: boolean | null; /** Whether the rule is paused or not. */ isPaused?: boolean | null; /** The paths the rule will be applied to. */ paths?: SiteInfoUpdateResponseRulesItemPathsList | null; priority?: number | null; } export declare const SiteInfoUpdateResponseRulesItem: S.Schema; export type SiteInfoUpdateResponseRulesList = Array; export declare const SiteInfoUpdateResponseRulesList: S.Schema; export type SiteInfoUpdateResponseRuleset = RulesBulkCreateResponseRuleset; export declare const SiteInfoUpdateResponseRuleset: S.Schema; /** Unwrapped `result` payload of the Cloudflare v4 response envelope. */ export interface UpdateSiteInfoResponse { /** If enabled, the JavaScript snippet is automatically injected for orange-clouded sites. */ autoInstall?: boolean | null; created?: string | null; /** A list of rules. */ rules?: SiteInfoUpdateResponseRulesList | null; ruleset?: RulesBulkCreateResponseRuleset | null; /** The Web Analytics site identifier. */ siteTag?: string | null; /** The Web Analytics site token. */ siteToken?: string | null; /** Encoded JavaScript snippet. */ snippet?: string | null; /** The hostname the site measures (gray-clouded sites). */ host?: string | null; } export declare const UpdateSiteInfoResponse: S.Schema; export type BulkCreateRulesError = CloudflareOpError; /** Modifies one or more rules in a Web Analytics ruleset with a single request. */ export declare const bulkCreateRules: API.OperationMethod; export type CreateRuleError = Forbidden | RulesetNotFound | MaxRulesExceeded | CloudflareOpError; /** Creates a new rule in a Web Analytics ruleset. */ export declare const createRule: API.OperationMethod; export type CreateSiteInfoError = Forbidden | RumSiteQuotaExceeded | CloudflareOpError; /** Creates a new Web Analytics site. */ export declare const createSiteInfo: API.OperationMethod; export type DeleteRuleError = Forbidden | RulesetNotFound | RuleNotFound | CloudflareOpError; /** Deletes an existing rule from a Web Analytics ruleset. */ export declare const deleteRule: API.OperationMethod; export type DeleteSiteInfoError = SiteNotFound | Forbidden | CloudflareOpError; /** Deletes an existing Web Analytics site. */ export declare const deleteSiteInfo: API.OperationMethod; export type GetSiteInfoError = SiteNotFound | Forbidden | CloudflareOpError; /** Retrieves a Web Analytics site. */ export declare const getSiteInfo: API.OperationMethod; export type ListRulesError = Forbidden | RulesetNotFound | CloudflareOpError; /** Lists all the rules in a Web Analytics ruleset. */ export declare const listRules: API.OperationMethod; export type ListSiteInfosError = Forbidden | CloudflareOpError; /** Lists all Web Analytics sites of an account. */ export declare const listSiteInfos: API.PaginatedOperationMethod; export type UpdateRuleError = Forbidden | RulesetNotFound | CloudflareOpError; /** Updates a rule in a Web Analytics ruleset. */ export declare const updateRule: API.OperationMethod; export type UpdateSiteInfoError = SiteNotFound | Forbidden | CloudflareOpError; /** Updates an existing Web Analytics site. */ export declare const updateSiteInfo: API.OperationMethod; //# sourceMappingURL=rum.d.ts.map