import { APIResource } from "../../core/resource.js"; import * as Shared from "../shared.js"; import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.js"; import { RequestOptions } from "../../internal/request-options.js"; /** * AgentService manages AI agents at the WORKSPACE level. * Agents are workspace-scoped resources that define AI behavior and tool access. * All operations are implicitly scoped to the workspace determined by the JWT token. * * Authentication: Bearer token (JWT) * Scope: Workspace-level operations */ export declare class WebhookDeliveries extends APIResource { /** * Lists all webhook deliveries for an agent */ list(agentID: string, query?: WebhookDeliveryListParams | null | undefined, options?: RequestOptions): PagePromise; } export type WebhookDeliveriesCursorPagination = CursorPagination; export interface WebhookDelivery { /** * Webhook delivery data */ data: WebhookDelivery.Data; /** * Metadata for ephemeral operations and activities (e.g., objectives, executions, * runs) */ metadata: Shared.OperationMetadata; } export declare namespace WebhookDelivery { /** * Webhook delivery data */ interface Data { status: 'WEBHOOK_DELIVERY_STATUS_UNSPECIFIED' | 'WEBHOOK_DELIVERY_STATUS_PENDING' | 'WEBHOOK_DELIVERY_STATUS_COMPLETED' | 'WEBHOOK_DELIVERY_STATUS_FAILED' | 'WEBHOOK_DELIVERY_STATUS_DISABLED'; /** * Related resources */ agentId?: string; attemptCount?: number; errorMessage?: string; /** * Response details (no response_body to avoid storing large payloads) */ httpStatusCode?: number; lastAttemptAt?: string; latencyMs?: number; objectiveEventId?: string; objectiveId?: string; webhookId?: string; /** * Webhook delivery details */ webhookUrl?: string; } } export interface WebhookDeliveryListParams extends CursorPaginationParams { } export declare namespace WebhookDeliveries { export { type WebhookDelivery as WebhookDelivery, type WebhookDeliveriesCursorPagination as WebhookDeliveriesCursorPagination, type WebhookDeliveryListParams as WebhookDeliveryListParams, }; } //# sourceMappingURL=webhook-deliveries.d.ts.map