{"version":3,"file":"list-webhooks.cjs","names":["z","action"],"sources":["../../src/actions/list-webhooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ExaListWebhooksInput: z.ZodTypeAny = z.object({\n  limit: z.number().int().default(25).describe(\"Number of results to return per page.\").optional(),\n  cursor: z.string().describe(\"Pagination cursor returned by a previous call. Must be at least 1 character if provided.\").optional(),\n}).describe(\"Request parameters for listing webhooks.\");\nconst ExaListWebhooks_WebhookSchema: z.ZodTypeAny = z.object({\n  id: z.string().describe(\"Unique identifier for the webhook.\"),\n  url: z.string().describe(\"The target URL that will receive webhook POSTs.\"),\n  events: z.array(z.string()).describe(\"List of event names this webhook is subscribed to.\"),\n  object: z.string().describe(\"Type of this object, always 'webhook'.\"),\n  secret: z.string().describe(\"Secret used to sign webhook payloads.\"),\n  status: z.string().describe(\"Current status of the webhook (e.g., 'active').\"),\n  metadata: z.record(z.string(), z.unknown()).describe(\"Arbitrary metadata object.\").optional(),\n  createdAt: z.string().describe(\"ISO-8601 timestamp when the webhook was created.\"),\n  updatedAt: z.string().describe(\"ISO-8601 timestamp when the webhook was last updated.\"),\n}).describe(\"Represents a single webhook object.\");\nexport const ExaListWebhooksOutput: z.ZodTypeAny = z.object({\n  data: z.array(ExaListWebhooks_WebhookSchema).describe(\"Array of webhook objects.\"),\n  hasMore: z.boolean().describe(\"Whether more results are available.\"),\n  nextCursor: z.string().describe(\"Cursor to use for the next page of results, if hasMore is true.\").optional(),\n}).describe(\"Response schema for listing webhooks.\");\n\nexport const exaListWebhooks = action(\"EXA_LIST_WEBHOOKS\", {\n  slug: \"exa-list-webhooks\",\n  name: \"List webhooks\",\n  description: \"Tool to list all webhooks for Websets. Use when you need to view existing webhooks and paginate through results.\",\n  input: ExaListWebhooksInput,\n  output: ExaListWebhooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,EAAE,IAAI,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