{"version":3,"file":"list-webhooks.mjs","names":[],"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,uBAAqC,EAAE,OAAO;CACzD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,SAAS,uCAAuC,EAAE,SAAS;CAC/F,QAAQ,EAAE,OAAO,EAAE,SAAS,0FAA0F,EAAE,SAAS;AACnI,CAAC,EAAE,SAAS,0CAA0C;AACtD,MAAM,gCAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,EAAE,SAAS,oCAAoC;CAC5D,KAAK,EAAE,OAAO,EAAE,SAAS,iDAAiD;CAC1E,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,oDAAoD;CACzF,QAAQ,EAAE,OAAO,EAAE,SAAS,wCAAwC;CACpE,QAAQ,EAAE,OAAO,EAAE,SAAS,uCAAuC;CACnE,QAAQ,EAAE,OAAO,EAAE,SAAS,iDAAiD;CAC7E,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,SAAS,4BAA4B,EAAE,SAAS;CAC5F,WAAW,EAAE,OAAO,EAAE,SAAS,kDAAkD;CACjF,WAAW,EAAE,OAAO,EAAE,SAAS,uDAAuD;AACxF,CAAC,EAAE,SAAS,qCAAqC;AAOjD,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXiD,EAAE,OAAO;EAC1D,MAAM,EAAE,MAAM,6BAA6B,EAAE,SAAS,2BAA2B;EACjF,SAAS,EAAE,QAAQ,EAAE,SAAS,qCAAqC;EACnE,YAAY,EAAE,OAAO,EAAE,SAAS,iEAAiE,EAAE,SAAS;CAC9G,CAAC,EAAE,SAAS,uCAOF;AACV,CAAC"}