import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { Event } from "../components/event.js"; import { HTTPMetadata } from "../components/httpmetadata.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetEventsSecurity = { systemAccessAuth: string; }; /** * Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */ export declare const GetEventsHeaderXGustoAPIVersion: { readonly TwoThousandAndTwentyFiveMinus06Minus15: "2025-06-15"; }; /** * Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */ export type GetEventsHeaderXGustoAPIVersion = ClosedEnum; /** * A string indicating whether to sort resulting events in ascending (asc) or descending (desc) chronological order. Events are sorted by their `timestamp`. Defaults to asc if left empty. */ export declare const QueryParamSortOrder: { readonly Asc: "asc"; readonly Desc: "desc"; }; /** * A string indicating whether to sort resulting events in ascending (asc) or descending (desc) chronological order. Events are sorted by their `timestamp`. Defaults to asc if left empty. */ export type QueryParamSortOrder = ClosedEnum; export type GetEventsRequest = { /** * Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */ xGustoAPIVersion?: GetEventsHeaderXGustoAPIVersion | undefined; /** * A cursor for pagination. Returns all events occuring after the specified UUID (exclusive). Events are sorted according to the provided sort_order param. */ startingAfterUuid?: string | undefined; /** * The UUID of the company. If not specified, will return all events for all companies. */ resourceUuid?: string | undefined; /** * Limits the number of objects returned in a single response, between 1 and 100. The default is 25 */ limit?: string | undefined; /** * A string containing the exact event name (e.g. `employee.created`), or use a wildcard match to filter for a group of events (e.g. `employee.*`, `*.created`, `notification.*.created` etc.) */ eventType?: string | undefined; /** * A string indicating whether to sort resulting events in ascending (asc) or descending (desc) chronological order. Events are sorted by their `timestamp`. Defaults to asc if left empty. */ sortOrder?: QueryParamSortOrder | undefined; }; export type GetEventsResponse = { httpMeta: HTTPMetadata; /** * Successful */ eventList?: Array | undefined; }; /** @internal */ export type GetEventsSecurity$Outbound = { SystemAccessAuth: string; }; /** @internal */ export declare const GetEventsSecurity$outboundSchema: z.ZodType; export declare function getEventsSecurityToJSON(getEventsSecurity: GetEventsSecurity): string; /** @internal */ export declare const GetEventsHeaderXGustoAPIVersion$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const QueryParamSortOrder$outboundSchema: z.ZodNativeEnum; /** @internal */ export type GetEventsRequest$Outbound = { "X-Gusto-API-Version": string; starting_after_uuid?: string | undefined; resource_uuid?: string | undefined; limit?: string | undefined; event_type?: string | undefined; sort_order?: string | undefined; }; /** @internal */ export declare const GetEventsRequest$outboundSchema: z.ZodType; export declare function getEventsRequestToJSON(getEventsRequest: GetEventsRequest): string; /** @internal */ export declare const GetEventsResponse$inboundSchema: z.ZodType; export declare function getEventsResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getevents.d.ts.map