@keystrokehq/omnisend 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/add-cart-product.cjs +1 -1
- package/dist/actions/add-cart-product.cjs.map +1 -1
- package/dist/actions/add-cart-product.d.cts +14 -2
- package/dist/actions/add-cart-product.d.mts +14 -2
- package/dist/actions/add-cart-product.mjs +1 -1
- package/dist/actions/add-cart-product.mjs.map +1 -1
- package/dist/actions/create-batch.cjs +3 -3
- package/dist/actions/create-batch.cjs.map +1 -1
- package/dist/actions/create-batch.d.cts +18 -6
- package/dist/actions/create-batch.d.cts.map +1 -1
- package/dist/actions/create-batch.d.mts +18 -6
- package/dist/actions/create-batch.d.mts.map +1 -1
- package/dist/actions/create-batch.mjs +3 -3
- package/dist/actions/create-batch.mjs.map +1 -1
- package/dist/actions/create-cart.cjs +2 -2
- package/dist/actions/create-cart.cjs.map +1 -1
- package/dist/actions/create-cart.d.cts +16 -3
- package/dist/actions/create-cart.d.mts +16 -3
- package/dist/actions/create-cart.mjs +2 -2
- package/dist/actions/create-cart.mjs.map +1 -1
- package/dist/actions/create-category.cjs +1 -1
- package/dist/actions/create-category.cjs.map +1 -1
- package/dist/actions/create-category.d.cts +14 -2
- package/dist/actions/create-category.d.mts +14 -2
- package/dist/actions/create-category.mjs +1 -1
- package/dist/actions/create-category.mjs.map +1 -1
- package/dist/actions/create-or-update-contact.cjs +2 -2
- package/dist/actions/create-or-update-contact.cjs.map +1 -1
- package/dist/actions/create-or-update-contact.d.cts +16 -3
- package/dist/actions/create-or-update-contact.d.mts +16 -3
- package/dist/actions/create-or-update-contact.mjs +2 -2
- package/dist/actions/create-or-update-contact.mjs.map +1 -1
- package/dist/actions/create-order.cjs +3 -3
- package/dist/actions/create-order.cjs.map +1 -1
- package/dist/actions/create-order.d.cts +18 -5
- package/dist/actions/create-order.d.cts.map +1 -1
- package/dist/actions/create-order.d.mts +18 -5
- package/dist/actions/create-order.d.mts.map +1 -1
- package/dist/actions/create-order.mjs +3 -3
- package/dist/actions/create-order.mjs.map +1 -1
- package/dist/actions/create-product-category.cjs +1 -1
- package/dist/actions/create-product-category.cjs.map +1 -1
- package/dist/actions/create-product-category.d.cts +14 -2
- package/dist/actions/create-product-category.d.mts +14 -2
- package/dist/actions/create-product-category.mjs +1 -1
- package/dist/actions/create-product-category.mjs.map +1 -1
- package/dist/actions/create-product.cjs +2 -2
- package/dist/actions/create-product.cjs.map +1 -1
- package/dist/actions/create-product.d.cts +16 -3
- package/dist/actions/create-product.d.mts +16 -3
- package/dist/actions/create-product.mjs +2 -2
- package/dist/actions/create-product.mjs.map +1 -1
- package/dist/actions/delete-cart.cjs +1 -1
- package/dist/actions/delete-cart.cjs.map +1 -1
- package/dist/actions/delete-cart.d.cts +14 -2
- package/dist/actions/delete-cart.d.cts.map +1 -1
- package/dist/actions/delete-cart.d.mts +14 -2
- package/dist/actions/delete-cart.d.mts.map +1 -1
- package/dist/actions/delete-cart.mjs +1 -1
- package/dist/actions/delete-cart.mjs.map +1 -1
- package/dist/actions/delete-category.cjs +1 -1
- package/dist/actions/delete-category.cjs.map +1 -1
- package/dist/actions/delete-category.d.cts +14 -2
- package/dist/actions/delete-category.d.cts.map +1 -1
- package/dist/actions/delete-category.d.mts +14 -2
- package/dist/actions/delete-category.d.mts.map +1 -1
- package/dist/actions/delete-category.mjs +1 -1
- package/dist/actions/delete-category.mjs.map +1 -1
- package/dist/actions/delete-order.cjs +1 -1
- package/dist/actions/delete-order.cjs.map +1 -1
- package/dist/actions/delete-order.d.cts +14 -2
- package/dist/actions/delete-order.d.cts.map +1 -1
- package/dist/actions/delete-order.d.mts +14 -2
- package/dist/actions/delete-order.d.mts.map +1 -1
- package/dist/actions/delete-order.mjs +1 -1
- package/dist/actions/delete-order.mjs.map +1 -1
- package/dist/actions/delete-product-category.cjs +1 -1
- package/dist/actions/delete-product-category.cjs.map +1 -1
- package/dist/actions/delete-product-category.d.cts +14 -2
- package/dist/actions/delete-product-category.d.cts.map +1 -1
- package/dist/actions/delete-product-category.d.mts +14 -2
- package/dist/actions/delete-product-category.d.mts.map +1 -1
- package/dist/actions/delete-product-category.mjs +1 -1
- package/dist/actions/delete-product-category.mjs.map +1 -1
- package/dist/actions/delete-product.cjs +1 -1
- package/dist/actions/delete-product.cjs.map +1 -1
- package/dist/actions/delete-product.d.cts +14 -2
- package/dist/actions/delete-product.d.cts.map +1 -1
- package/dist/actions/delete-product.d.mts +14 -2
- package/dist/actions/delete-product.d.mts.map +1 -1
- package/dist/actions/delete-product.mjs +1 -1
- package/dist/actions/delete-product.mjs.map +1 -1
- package/dist/actions/get-batch-information.cjs +1 -1
- package/dist/actions/get-batch-information.cjs.map +1 -1
- package/dist/actions/get-batch-information.d.cts +14 -2
- package/dist/actions/get-batch-information.d.mts +14 -2
- package/dist/actions/get-batch-information.mjs +1 -1
- package/dist/actions/get-batch-information.mjs.map +1 -1
- package/dist/actions/get-batch-item.cjs +1 -1
- package/dist/actions/get-batch-item.cjs.map +1 -1
- package/dist/actions/get-batch-item.d.cts +14 -2
- package/dist/actions/get-batch-item.d.mts +14 -2
- package/dist/actions/get-batch-item.mjs +1 -1
- package/dist/actions/get-batch-item.mjs.map +1 -1
- package/dist/actions/get-batch-items.cjs +2 -2
- package/dist/actions/get-batch-items.cjs.map +1 -1
- package/dist/actions/get-batch-items.d.cts +15 -3
- package/dist/actions/get-batch-items.d.mts +15 -3
- package/dist/actions/get-batch-items.mjs +2 -2
- package/dist/actions/get-batch-items.mjs.map +1 -1
- package/dist/actions/get-batches.cjs +3 -3
- package/dist/actions/get-batches.cjs.map +1 -1
- package/dist/actions/get-batches.d.cts +18 -6
- package/dist/actions/get-batches.d.mts +18 -6
- package/dist/actions/get-batches.mjs +3 -3
- package/dist/actions/get-batches.mjs.map +1 -1
- package/dist/actions/get-brand.cjs +1 -1
- package/dist/actions/get-brand.cjs.map +1 -1
- package/dist/actions/get-brand.d.cts +14 -2
- package/dist/actions/get-brand.d.cts.map +1 -1
- package/dist/actions/get-brand.d.mts +14 -2
- package/dist/actions/get-brand.d.mts.map +1 -1
- package/dist/actions/get-brand.mjs +1 -1
- package/dist/actions/get-brand.mjs.map +1 -1
- package/dist/actions/get-cart.cjs +2 -2
- package/dist/actions/get-cart.cjs.map +1 -1
- package/dist/actions/get-cart.d.cts +15 -3
- package/dist/actions/get-cart.d.mts +15 -3
- package/dist/actions/get-cart.mjs +2 -2
- package/dist/actions/get-cart.mjs.map +1 -1
- package/dist/actions/get-category.cjs +1 -1
- package/dist/actions/get-category.cjs.map +1 -1
- package/dist/actions/get-category.d.cts +14 -2
- package/dist/actions/get-category.d.mts +14 -2
- package/dist/actions/get-category.mjs +1 -1
- package/dist/actions/get-category.mjs.map +1 -1
- package/dist/actions/get-contact.cjs +6 -6
- package/dist/actions/get-contact.cjs.map +1 -1
- package/dist/actions/get-contact.d.cts +19 -7
- package/dist/actions/get-contact.d.mts +19 -7
- package/dist/actions/get-contact.mjs +6 -6
- package/dist/actions/get-contact.mjs.map +1 -1
- package/dist/actions/get-order.cjs +3 -3
- package/dist/actions/get-order.cjs.map +1 -1
- package/dist/actions/get-order.d.cts +17 -5
- package/dist/actions/get-order.d.mts +17 -5
- package/dist/actions/get-order.mjs +3 -3
- package/dist/actions/get-order.mjs.map +1 -1
- package/dist/actions/get-product-category.cjs +1 -1
- package/dist/actions/get-product-category.cjs.map +1 -1
- package/dist/actions/get-product-category.d.cts +14 -2
- package/dist/actions/get-product-category.d.mts +14 -2
- package/dist/actions/get-product-category.mjs +1 -1
- package/dist/actions/get-product-category.mjs.map +1 -1
- package/dist/actions/get-product.cjs +2 -2
- package/dist/actions/get-product.cjs.map +1 -1
- package/dist/actions/get-product.d.cts +15 -3
- package/dist/actions/get-product.d.mts +15 -3
- package/dist/actions/get-product.mjs +2 -2
- package/dist/actions/get-product.mjs.map +1 -1
- package/dist/actions/list-campaigns.cjs +5 -5
- package/dist/actions/list-campaigns.cjs.map +1 -1
- package/dist/actions/list-campaigns.d.cts +18 -6
- package/dist/actions/list-campaigns.d.mts +18 -6
- package/dist/actions/list-campaigns.mjs +5 -5
- package/dist/actions/list-campaigns.mjs.map +1 -1
- package/dist/actions/list-carts.cjs +3 -3
- package/dist/actions/list-carts.cjs.map +1 -1
- package/dist/actions/list-carts.d.cts +16 -4
- package/dist/actions/list-carts.d.mts +16 -4
- package/dist/actions/list-carts.mjs +3 -3
- package/dist/actions/list-carts.mjs.map +1 -1
- package/dist/actions/list-categories.cjs +3 -3
- package/dist/actions/list-categories.cjs.map +1 -1
- package/dist/actions/list-categories.d.cts +16 -4
- package/dist/actions/list-categories.d.mts +16 -4
- package/dist/actions/list-categories.mjs +3 -3
- package/dist/actions/list-categories.mjs.map +1 -1
- package/dist/actions/list-contacts.cjs +7 -7
- package/dist/actions/list-contacts.cjs.map +1 -1
- package/dist/actions/list-contacts.d.cts +20 -8
- package/dist/actions/list-contacts.d.mts +20 -8
- package/dist/actions/list-contacts.mjs +7 -7
- package/dist/actions/list-contacts.mjs.map +1 -1
- package/dist/actions/list-events.cjs +3 -3
- package/dist/actions/list-events.cjs.map +1 -1
- package/dist/actions/list-events.d.cts +16 -4
- package/dist/actions/list-events.d.cts.map +1 -1
- package/dist/actions/list-events.d.mts +16 -4
- package/dist/actions/list-events.d.mts.map +1 -1
- package/dist/actions/list-events.mjs +3 -3
- package/dist/actions/list-events.mjs.map +1 -1
- package/dist/actions/list-product-categories.cjs +3 -3
- package/dist/actions/list-product-categories.cjs.map +1 -1
- package/dist/actions/list-product-categories.d.cts +16 -4
- package/dist/actions/list-product-categories.d.mts +16 -4
- package/dist/actions/list-product-categories.mjs +3 -3
- package/dist/actions/list-product-categories.mjs.map +1 -1
- package/dist/actions/list-products.cjs +4 -4
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +17 -5
- package/dist/actions/list-products.d.mts +17 -5
- package/dist/actions/list-products.mjs +4 -4
- package/dist/actions/list-products.mjs.map +1 -1
- package/dist/actions/remove-cart-product.cjs +1 -1
- package/dist/actions/remove-cart-product.cjs.map +1 -1
- package/dist/actions/remove-cart-product.d.cts +14 -2
- package/dist/actions/remove-cart-product.d.cts.map +1 -1
- package/dist/actions/remove-cart-product.d.mts +14 -2
- package/dist/actions/remove-cart-product.d.mts.map +1 -1
- package/dist/actions/remove-cart-product.mjs +1 -1
- package/dist/actions/remove-cart-product.mjs.map +1 -1
- package/dist/actions/replace-cart-product.cjs +1 -1
- package/dist/actions/replace-cart-product.cjs.map +1 -1
- package/dist/actions/replace-cart-product.d.cts +14 -2
- package/dist/actions/replace-cart-product.d.mts +14 -2
- package/dist/actions/replace-cart-product.mjs +1 -1
- package/dist/actions/replace-cart-product.mjs.map +1 -1
- package/dist/actions/replace-cart.cjs +2 -2
- package/dist/actions/replace-cart.cjs.map +1 -1
- package/dist/actions/replace-cart.d.cts +16 -3
- package/dist/actions/replace-cart.d.mts +16 -3
- package/dist/actions/replace-cart.mjs +2 -2
- package/dist/actions/replace-cart.mjs.map +1 -1
- package/dist/actions/replace-category.cjs +1 -1
- package/dist/actions/replace-category.cjs.map +1 -1
- package/dist/actions/replace-category.d.cts +14 -2
- package/dist/actions/replace-category.d.mts +14 -2
- package/dist/actions/replace-category.mjs +1 -1
- package/dist/actions/replace-category.mjs.map +1 -1
- package/dist/actions/replace-order.cjs +2 -2
- package/dist/actions/replace-order.cjs.map +1 -1
- package/dist/actions/replace-order.d.cts +16 -3
- package/dist/actions/replace-order.d.mts +16 -3
- package/dist/actions/replace-order.mjs +2 -2
- package/dist/actions/replace-order.mjs.map +1 -1
- package/dist/actions/replace-product.cjs +2 -2
- package/dist/actions/replace-product.cjs.map +1 -1
- package/dist/actions/replace-product.d.cts +16 -3
- package/dist/actions/replace-product.d.mts +16 -3
- package/dist/actions/replace-product.mjs +2 -2
- package/dist/actions/replace-product.mjs.map +1 -1
- package/dist/actions/send-event.cjs +3 -3
- package/dist/actions/send-event.cjs.map +1 -1
- package/dist/actions/send-event.d.cts +18 -6
- package/dist/actions/send-event.d.cts.map +1 -1
- package/dist/actions/send-event.d.mts +18 -6
- package/dist/actions/send-event.d.mts.map +1 -1
- package/dist/actions/send-event.mjs +3 -3
- package/dist/actions/send-event.mjs.map +1 -1
- package/dist/actions/update-cart-product.cjs +1 -1
- package/dist/actions/update-cart-product.cjs.map +1 -1
- package/dist/actions/update-cart-product.d.cts +14 -2
- package/dist/actions/update-cart-product.d.mts +14 -2
- package/dist/actions/update-cart-product.mjs +1 -1
- package/dist/actions/update-cart-product.mjs.map +1 -1
- package/dist/actions/update-cart.cjs +2 -2
- package/dist/actions/update-cart.cjs.map +1 -1
- package/dist/actions/update-cart.d.cts +16 -3
- package/dist/actions/update-cart.d.mts +16 -3
- package/dist/actions/update-cart.mjs +2 -2
- package/dist/actions/update-cart.mjs.map +1 -1
- package/dist/actions/update-contact.cjs +3 -3
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +18 -5
- package/dist/actions/update-contact.d.cts.map +1 -1
- package/dist/actions/update-contact.d.mts +18 -5
- package/dist/actions/update-contact.d.mts.map +1 -1
- package/dist/actions/update-contact.mjs +3 -3
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/actions/update-order-status.cjs +1 -1
- package/dist/actions/update-order-status.cjs.map +1 -1
- package/dist/actions/update-order-status.d.cts +14 -2
- package/dist/actions/update-order-status.d.mts +14 -2
- package/dist/actions/update-order-status.mjs +1 -1
- package/dist/actions/update-order-status.mjs.map +1 -1
- package/dist/actions/update-product-category.cjs +1 -1
- package/dist/actions/update-product-category.cjs.map +1 -1
- package/dist/actions/update-product-category.d.cts +14 -2
- package/dist/actions/update-product-category.d.mts +14 -2
- package/dist/actions/update-product-category.mjs +1 -1
- package/dist/actions/update-product-category.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -1
- package/dist/app.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-categories.mjs","names":[],"sources":["../../src/actions/list-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendListCategoriesInput = z.object({\n sort: z.string().describe(\"Field to sort results by. Format: 'fieldName' for ascending, '-fieldName' for descending.\").optional(),\n limit: z.number().int().default(100).describe(\"Number of results to fetch. Defaults to 100, maximum 250.\").optional(),\n offset: z.number().int().default(0).describe(\"Number of results to skip. Defaults to 0. Use for pagination.\").optional(),\n}).describe(\"Query parameters for listing categories. All parameters are optional.\");\nconst OmnisendListCategories_PagingSchema = z.object({\n next: z.string().describe(\"URL for next page of results.\").nullable().optional(),\n limit: z.number().int().describe(\"Number of items requested per page.\").nullable(),\n offset: z.number().int().describe(\"Offset of the first item returned.\").nullable(),\n previous: z.string().describe(\"URL for previous page of results.\").nullable().optional(),\n});\nconst OmnisendListCategories_CategorySchema = z.object({\n title: z.string().describe(\"Category title/name.\").nullable(),\n createdAt: z.string().describe(\"Timestamp when category was created (ISO 8601).\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when category was last updated (ISO 8601).\").nullable(),\n categoryID: z.string().describe(\"Unique category identifier.\").nullable(),\n});\nexport const OmnisendListCategoriesOutput = z.object({\n paging: OmnisendListCategories_PagingSchema.nullable(),\n categories: z.array(OmnisendListCategories_CategorySchema).describe(\"List of category objects.\"),\n});\n\nexport const omnisendListCategories = action(\"OMNISEND_LIST_CATEGORIES\", {\n slug: \"omnisend-list-categories\",\n name: \"List Categories\",\n description: \"Tool to retrieve a paginated list of product categories. Use when you need category IDs for product management or catalog organization.\",\n input: OmnisendListCategoriesInput,\n output: OmnisendListCategoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAChI,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpH,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC;
|
|
1
|
+
{"version":3,"file":"list-categories.mjs","names":[],"sources":["../../src/actions/list-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendListCategoriesInput = z.object({\n sort: z.string().describe(\"Field to sort results by. Format: 'fieldName' for ascending, '-fieldName' for descending.\").optional(),\n limit: z.number().int().default(100).describe(\"Number of results to fetch. Defaults to 100, maximum 250.\").optional(),\n offset: z.number().int().default(0).describe(\"Number of results to skip. Defaults to 0. Use for pagination.\").optional(),\n}).describe(\"Query parameters for listing categories. All parameters are optional.\");\nconst OmnisendListCategories_PagingSchema = z.object({\n next: z.string().describe(\"URL for next page of results.\").nullable().optional(),\n limit: z.number().int().describe(\"Number of items requested per page.\").nullable(),\n offset: z.number().int().describe(\"Offset of the first item returned.\").nullable(),\n previous: z.string().describe(\"URL for previous page of results.\").nullable().optional(),\n}).passthrough();\nconst OmnisendListCategories_CategorySchema = z.object({\n title: z.string().describe(\"Category title/name.\").nullable(),\n createdAt: z.string().describe(\"Timestamp when category was created (ISO 8601).\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when category was last updated (ISO 8601).\").nullable(),\n categoryID: z.string().describe(\"Unique category identifier.\").nullable(),\n}).passthrough();\nexport const OmnisendListCategoriesOutput = z.object({\n paging: OmnisendListCategories_PagingSchema.nullable(),\n categories: z.array(OmnisendListCategories_CategorySchema).describe(\"List of category objects.\"),\n}).passthrough();\n\nexport const omnisendListCategories = action(\"OMNISEND_LIST_CATEGORIES\", {\n slug: \"omnisend-list-categories\",\n name: \"List Categories\",\n description: \"Tool to retrieve a paginated list of product categories. Use when you need category IDs for product management or catalog organization.\",\n input: OmnisendListCategoriesInput,\n output: OmnisendListCategoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAChI,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpH,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwC,EAAE,OAAO;CACrD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAChG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,EAAE,OAAO;EACnD,QAAQ,oCAAoC,SAAS;EACrD,YAAY,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,2BAA2B;CACjG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -20,28 +20,28 @@ const OmnisendListContacts_PagingSchema = zod.z.object({
|
|
|
20
20
|
limit: zod.z.number().int().describe("Page size returned.").nullable(),
|
|
21
21
|
offset: zod.z.number().int().describe("Offset value (deprecated).").nullable().optional(),
|
|
22
22
|
previous: zod.z.string().describe("URL for previous page of results.").nullable().optional()
|
|
23
|
-
});
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const OmnisendListContacts_OptInSchema = zod.z.object({
|
|
25
25
|
date: zod.z.string().describe("Timestamp of opt-in.").nullable(),
|
|
26
26
|
channel: zod.z.string().describe("Opt-in channel.").nullable()
|
|
27
|
-
});
|
|
27
|
+
}).passthrough();
|
|
28
28
|
const OmnisendListContacts_ConsentSchema = zod.z.object({
|
|
29
29
|
ip: zod.z.string().describe("IP address from which consent was given.").nullable(),
|
|
30
30
|
source: zod.z.string().describe("Source of consent (e.g., signup form).").nullable(),
|
|
31
31
|
channel: zod.z.string().describe("Consent channel (e.g., email, SMS).").nullable(),
|
|
32
32
|
createdAt: zod.z.string().describe("Timestamp when consent was recorded.").nullable(),
|
|
33
33
|
userAgent: zod.z.string().describe("User agent string at consent time.").nullable()
|
|
34
|
-
});
|
|
34
|
+
}).passthrough();
|
|
35
35
|
const OmnisendListContacts_StatusEntrySchema = zod.z.object({
|
|
36
36
|
date: zod.z.string().describe("Timestamp of status change.").nullable(),
|
|
37
37
|
status: zod.z.string().describe("New status value.").nullable(),
|
|
38
38
|
channel: zod.z.string().describe("Channel of the status update.").nullable()
|
|
39
|
-
});
|
|
39
|
+
}).passthrough();
|
|
40
40
|
const OmnisendListContacts_IdentifierSchema = zod.z.object({
|
|
41
41
|
id: zod.z.string().describe("Identifier value.").nullable(),
|
|
42
42
|
type: zod.z.string().describe("Identifier type.").nullable(),
|
|
43
43
|
channels: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Mapping of channel-specific identifier details.")
|
|
44
|
-
});
|
|
44
|
+
}).passthrough();
|
|
45
45
|
const OmnisendListContacts_ContactSchema = zod.z.object({
|
|
46
46
|
city: zod.z.string().describe("City.").nullable().optional(),
|
|
47
47
|
tags: zod.z.array(zod.z.string()).describe("Tags assigned to contact.").nullable().optional(),
|
|
@@ -64,11 +64,11 @@ const OmnisendListContacts_ContactSchema = zod.z.object({
|
|
|
64
64
|
countryCode: zod.z.string().describe("ISO country code.").nullable().optional(),
|
|
65
65
|
identifiers: zod.z.array(OmnisendListContacts_IdentifierSchema).describe("List of additional identifiers.").nullable().optional(),
|
|
66
66
|
customProperties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional custom properties.").nullable().optional()
|
|
67
|
-
});
|
|
67
|
+
}).passthrough();
|
|
68
68
|
const OmnisendListContactsOutput = zod.z.object({
|
|
69
69
|
paging: OmnisendListContacts_PagingSchema.nullable(),
|
|
70
70
|
contacts: zod.z.array(OmnisendListContacts_ContactSchema).describe("List of contacts.")
|
|
71
|
-
});
|
|
71
|
+
}).passthrough();
|
|
72
72
|
const omnisendListContacts = require_action.action("OMNISEND_LIST_CONTACTS", {
|
|
73
73
|
slug: "omnisend-list-contacts",
|
|
74
74
|
name: "List Contacts",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-contacts.cjs","names":["z","action"],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendListContactsInput = z.object({\n tag: z.string().describe(\"Filter contacts by tag.\").optional(),\n after: z.string().describe(\"Cursor for pagination: contacts after this base64-encoded ContactID.\").optional(),\n email: z.string().describe(\"Filter contacts by exact email address.\").optional(),\n limit: z.number().int().default(100).describe(\"Number of results per page. Defaults to 100, maximum 250.\").optional(),\n phone: z.string().describe(\"Filter contacts by full phone number including country code.\").optional(),\n before: z.string().describe(\"Cursor for pagination: contacts before this base64-encoded ContactID.\").optional(),\n status: z.enum([\"subscribed\", \"nonSubscribed\", \"unsubscribed\"]).describe(\"Filter contacts by email channel status.\").optional(),\n segmentID: z.number().int().describe(\"Filter contacts by segment ID.\").optional(),\n}).describe(\"Query parameters for listing contacts. Supply only needed filters.\");\nconst OmnisendListContacts_PagingSchema = z.object({\n next: z.string().describe(\"URL for next page of results.\").nullable().optional(),\n limit: z.number().int().describe(\"Page size returned.\").nullable(),\n offset: z.number().int().describe(\"Offset value (deprecated).\").nullable().optional(),\n previous: z.string().describe(\"URL for previous page of results.\").nullable().optional(),\n});\nconst OmnisendListContacts_OptInSchema = z.object({\n date: z.string().describe(\"Timestamp of opt-in.\").nullable(),\n channel: z.string().describe(\"Opt-in channel.\").nullable(),\n});\nconst OmnisendListContacts_ConsentSchema = z.object({\n ip: z.string().describe(\"IP address from which consent was given.\").nullable(),\n source: z.string().describe(\"Source of consent (e.g., signup form).\").nullable(),\n channel: z.string().describe(\"Consent channel (e.g., email, SMS).\").nullable(),\n createdAt: z.string().describe(\"Timestamp when consent was recorded.\").nullable(),\n userAgent: z.string().describe(\"User agent string at consent time.\").nullable(),\n});\nconst OmnisendListContacts_StatusEntrySchema = z.object({\n date: z.string().describe(\"Timestamp of status change.\").nullable(),\n status: z.string().describe(\"New status value.\").nullable(),\n channel: z.string().describe(\"Channel of the status update.\").nullable(),\n});\nconst OmnisendListContacts_IdentifierSchema = z.object({\n id: z.string().describe(\"Identifier value.\").nullable(),\n type: z.string().describe(\"Identifier type.\").nullable(),\n channels: z.record(z.string(), z.unknown()).describe(\"Mapping of channel-specific identifier details.\"),\n});\nconst OmnisendListContacts_ContactSchema = z.object({\n city: z.string().describe(\"City.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags assigned to contact.\").nullable().optional(),\n email: z.string().describe(\"Contact email address.\").nullable(),\n phone: z.array(z.string()).describe(\"List of phone numbers.\").nullable().optional(),\n state: z.string().describe(\"State or region.\").nullable().optional(),\n gender: z.string().describe(\"Gender.\").nullable().optional(),\n optIns: z.array(OmnisendListContacts_OptInSchema).describe(\"List of opt-in events.\").nullable().optional(),\n address: z.string().describe(\"Mailing address.\").nullable().optional(),\n country: z.string().describe(\"Country name.\").nullable().optional(),\n consents: z.array(OmnisendListContacts_ConsentSchema).describe(\"List of consent records.\").nullable().optional(),\n lastName: z.string().describe(\"Last name.\").nullable().optional(),\n segments: z.array(z.string()).describe(\"List of segment IDs.\").nullable().optional(),\n statuses: z.array(OmnisendListContacts_StatusEntrySchema).describe(\"History of status changes.\").nullable().optional(),\n birthdate: z.string().describe(\"Birthdate in ISO format.\").nullable().optional(),\n contactID: z.string().describe(\"Unique Contact ID.\").nullable(),\n createdAt: z.string().describe(\"Timestamp when contact was created.\").nullable(),\n firstName: z.string().describe(\"First name.\").nullable().optional(),\n postalCode: z.string().describe(\"Postal code.\").nullable().optional(),\n countryCode: z.string().describe(\"ISO country code.\").nullable().optional(),\n identifiers: z.array(OmnisendListContacts_IdentifierSchema).describe(\"List of additional identifiers.\").nullable().optional(),\n customProperties: z.record(z.string(), z.unknown()).describe(\"Additional custom properties.\").nullable().optional(),\n});\nexport const OmnisendListContactsOutput = z.object({\n paging: OmnisendListContacts_PagingSchema.nullable(),\n contacts: z.array(OmnisendListContacts_ContactSchema).describe(\"List of contacts.\"),\n});\n\nexport const omnisendListContacts = action(\"OMNISEND_LIST_CONTACTS\", {\n slug: \"omnisend-list-contacts\",\n name: \"List Contacts\",\n description: \"Tool to retrieve a paginated list of contacts with optional filtering. Use when you need to fetch contacts in batches and handle cursor pagination.\",\n input: OmnisendListContactsInput,\n output: OmnisendListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC5G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACpG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAc;EAAiB;CAAc,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC;
|
|
1
|
+
{"version":3,"file":"list-contacts.cjs","names":["z","action"],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendListContactsInput = z.object({\n tag: z.string().describe(\"Filter contacts by tag.\").optional(),\n after: z.string().describe(\"Cursor for pagination: contacts after this base64-encoded ContactID.\").optional(),\n email: z.string().describe(\"Filter contacts by exact email address.\").optional(),\n limit: z.number().int().default(100).describe(\"Number of results per page. Defaults to 100, maximum 250.\").optional(),\n phone: z.string().describe(\"Filter contacts by full phone number including country code.\").optional(),\n before: z.string().describe(\"Cursor for pagination: contacts before this base64-encoded ContactID.\").optional(),\n status: z.enum([\"subscribed\", \"nonSubscribed\", \"unsubscribed\"]).describe(\"Filter contacts by email channel status.\").optional(),\n segmentID: z.number().int().describe(\"Filter contacts by segment ID.\").optional(),\n}).describe(\"Query parameters for listing contacts. Supply only needed filters.\");\nconst OmnisendListContacts_PagingSchema = z.object({\n next: z.string().describe(\"URL for next page of results.\").nullable().optional(),\n limit: z.number().int().describe(\"Page size returned.\").nullable(),\n offset: z.number().int().describe(\"Offset value (deprecated).\").nullable().optional(),\n previous: z.string().describe(\"URL for previous page of results.\").nullable().optional(),\n}).passthrough();\nconst OmnisendListContacts_OptInSchema = z.object({\n date: z.string().describe(\"Timestamp of opt-in.\").nullable(),\n channel: z.string().describe(\"Opt-in channel.\").nullable(),\n}).passthrough();\nconst OmnisendListContacts_ConsentSchema = z.object({\n ip: z.string().describe(\"IP address from which consent was given.\").nullable(),\n source: z.string().describe(\"Source of consent (e.g., signup form).\").nullable(),\n channel: z.string().describe(\"Consent channel (e.g., email, SMS).\").nullable(),\n createdAt: z.string().describe(\"Timestamp when consent was recorded.\").nullable(),\n userAgent: z.string().describe(\"User agent string at consent time.\").nullable(),\n}).passthrough();\nconst OmnisendListContacts_StatusEntrySchema = z.object({\n date: z.string().describe(\"Timestamp of status change.\").nullable(),\n status: z.string().describe(\"New status value.\").nullable(),\n channel: z.string().describe(\"Channel of the status update.\").nullable(),\n}).passthrough();\nconst OmnisendListContacts_IdentifierSchema = z.object({\n id: z.string().describe(\"Identifier value.\").nullable(),\n type: z.string().describe(\"Identifier type.\").nullable(),\n channels: z.record(z.string(), z.unknown()).describe(\"Mapping of channel-specific identifier details.\"),\n}).passthrough();\nconst OmnisendListContacts_ContactSchema = z.object({\n city: z.string().describe(\"City.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags assigned to contact.\").nullable().optional(),\n email: z.string().describe(\"Contact email address.\").nullable(),\n phone: z.array(z.string()).describe(\"List of phone numbers.\").nullable().optional(),\n state: z.string().describe(\"State or region.\").nullable().optional(),\n gender: z.string().describe(\"Gender.\").nullable().optional(),\n optIns: z.array(OmnisendListContacts_OptInSchema).describe(\"List of opt-in events.\").nullable().optional(),\n address: z.string().describe(\"Mailing address.\").nullable().optional(),\n country: z.string().describe(\"Country name.\").nullable().optional(),\n consents: z.array(OmnisendListContacts_ConsentSchema).describe(\"List of consent records.\").nullable().optional(),\n lastName: z.string().describe(\"Last name.\").nullable().optional(),\n segments: z.array(z.string()).describe(\"List of segment IDs.\").nullable().optional(),\n statuses: z.array(OmnisendListContacts_StatusEntrySchema).describe(\"History of status changes.\").nullable().optional(),\n birthdate: z.string().describe(\"Birthdate in ISO format.\").nullable().optional(),\n contactID: z.string().describe(\"Unique Contact ID.\").nullable(),\n createdAt: z.string().describe(\"Timestamp when contact was created.\").nullable(),\n firstName: z.string().describe(\"First name.\").nullable().optional(),\n postalCode: z.string().describe(\"Postal code.\").nullable().optional(),\n countryCode: z.string().describe(\"ISO country code.\").nullable().optional(),\n identifiers: z.array(OmnisendListContacts_IdentifierSchema).describe(\"List of additional identifiers.\").nullable().optional(),\n customProperties: z.record(z.string(), z.unknown()).describe(\"Additional custom properties.\").nullable().optional(),\n}).passthrough();\nexport const OmnisendListContactsOutput = z.object({\n paging: OmnisendListContacts_PagingSchema.nullable(),\n contacts: z.array(OmnisendListContacts_ContactSchema).describe(\"List of contacts.\"),\n}).passthrough();\n\nexport const omnisendListContacts = action(\"OMNISEND_LIST_CONTACTS\", {\n slug: \"omnisend-list-contacts\",\n name: \"List Contacts\",\n description: \"Tool to retrieve a paginated list of contacts with optional filtering. Use when you need to fetch contacts in batches and handle cursor pagination.\",\n input: OmnisendListContactsInput,\n output: OmnisendListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC5G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACpG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAc;EAAiB;CAAc,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC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AC,SAAS,CAAC,CAAC,SAAS;CACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,kBAAkBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQ,kCAAkC,SAAS;CACnD,UAAUA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,mBAAmB;AACpF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -21,7 +21,7 @@ declare const OmnisendListContactsOutput: z.ZodObject<{
|
|
|
21
21
|
limit: z.ZodNullable<z.ZodNumber>;
|
|
22
22
|
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
23
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
25
|
contacts: z.ZodArray<z.ZodObject<{
|
|
26
26
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -32,7 +32,7 @@ declare const OmnisendListContactsOutput: z.ZodObject<{
|
|
|
32
32
|
optIns: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
33
33
|
date: z.ZodNullable<z.ZodString>;
|
|
34
34
|
channel: z.ZodNullable<z.ZodString>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>>>>;
|
|
36
36
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
38
|
consents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -41,14 +41,14 @@ declare const OmnisendListContactsOutput: z.ZodObject<{
|
|
|
41
41
|
channel: z.ZodNullable<z.ZodString>;
|
|
42
42
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
43
43
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
44
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>>>;
|
|
45
45
|
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
46
|
segments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
47
47
|
statuses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
48
48
|
date: z.ZodNullable<z.ZodString>;
|
|
49
49
|
status: z.ZodNullable<z.ZodString>;
|
|
50
50
|
channel: z.ZodNullable<z.ZodString>;
|
|
51
|
-
}, z.core.$
|
|
51
|
+
}, z.core.$loose>>>>;
|
|
52
52
|
birthdate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
53
|
contactID: z.ZodNullable<z.ZodString>;
|
|
54
54
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
@@ -59,10 +59,10 @@ declare const OmnisendListContactsOutput: z.ZodObject<{
|
|
|
59
59
|
id: z.ZodNullable<z.ZodString>;
|
|
60
60
|
type: z.ZodNullable<z.ZodString>;
|
|
61
61
|
channels: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
62
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$loose>>>>;
|
|
63
63
|
customProperties: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
64
|
-
}, z.core.$
|
|
65
|
-
}, z.core.$
|
|
64
|
+
}, z.core.$loose>>;
|
|
65
|
+
}, z.core.$loose>;
|
|
66
66
|
declare const omnisendListContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
67
67
|
tag?: string | undefined;
|
|
68
68
|
after?: string | undefined;
|
|
@@ -72,7 +72,19 @@ declare const omnisendListContacts: import("@keystrokehq/action").WorkflowAction
|
|
|
72
72
|
before?: string | undefined;
|
|
73
73
|
status?: "subscribed" | "nonSubscribed" | "unsubscribed" | undefined;
|
|
74
74
|
segmentID?: number | undefined;
|
|
75
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
75
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
76
|
+
connectionId: z.ZodString;
|
|
77
|
+
entityId: z.ZodString;
|
|
78
|
+
instanceId: z.ZodString;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
accessToken: z.ZodString;
|
|
81
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
82
|
+
connectionId: z.ZodString;
|
|
83
|
+
entityId: z.ZodString;
|
|
84
|
+
instanceId: z.ZodString;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
accessToken: z.ZodString;
|
|
87
|
+
}, z.core.$strip>>]>;
|
|
76
88
|
//#endregion
|
|
77
89
|
export { omnisendListContacts };
|
|
78
90
|
//# sourceMappingURL=list-contacts.d.cts.map
|
|
@@ -21,7 +21,7 @@ declare const OmnisendListContactsOutput: z.ZodObject<{
|
|
|
21
21
|
limit: z.ZodNullable<z.ZodNumber>;
|
|
22
22
|
offset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
23
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
25
|
contacts: z.ZodArray<z.ZodObject<{
|
|
26
26
|
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -32,7 +32,7 @@ declare const OmnisendListContactsOutput: z.ZodObject<{
|
|
|
32
32
|
optIns: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
33
33
|
date: z.ZodNullable<z.ZodString>;
|
|
34
34
|
channel: z.ZodNullable<z.ZodString>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>>>>;
|
|
36
36
|
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
38
|
consents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -41,14 +41,14 @@ declare const OmnisendListContactsOutput: z.ZodObject<{
|
|
|
41
41
|
channel: z.ZodNullable<z.ZodString>;
|
|
42
42
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
43
43
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
44
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>>>;
|
|
45
45
|
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
46
|
segments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
47
47
|
statuses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
48
48
|
date: z.ZodNullable<z.ZodString>;
|
|
49
49
|
status: z.ZodNullable<z.ZodString>;
|
|
50
50
|
channel: z.ZodNullable<z.ZodString>;
|
|
51
|
-
}, z.core.$
|
|
51
|
+
}, z.core.$loose>>>>;
|
|
52
52
|
birthdate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
53
|
contactID: z.ZodNullable<z.ZodString>;
|
|
54
54
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
@@ -59,10 +59,10 @@ declare const OmnisendListContactsOutput: z.ZodObject<{
|
|
|
59
59
|
id: z.ZodNullable<z.ZodString>;
|
|
60
60
|
type: z.ZodNullable<z.ZodString>;
|
|
61
61
|
channels: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
62
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$loose>>>>;
|
|
63
63
|
customProperties: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
64
|
-
}, z.core.$
|
|
65
|
-
}, z.core.$
|
|
64
|
+
}, z.core.$loose>>;
|
|
65
|
+
}, z.core.$loose>;
|
|
66
66
|
declare const omnisendListContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
67
67
|
tag?: string | undefined;
|
|
68
68
|
after?: string | undefined;
|
|
@@ -72,7 +72,19 @@ declare const omnisendListContacts: import("@keystrokehq/action").WorkflowAction
|
|
|
72
72
|
before?: string | undefined;
|
|
73
73
|
status?: "subscribed" | "nonSubscribed" | "unsubscribed" | undefined;
|
|
74
74
|
segmentID?: number | undefined;
|
|
75
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
75
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
76
|
+
connectionId: z.ZodString;
|
|
77
|
+
entityId: z.ZodString;
|
|
78
|
+
instanceId: z.ZodString;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
accessToken: z.ZodString;
|
|
81
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
82
|
+
connectionId: z.ZodString;
|
|
83
|
+
entityId: z.ZodString;
|
|
84
|
+
instanceId: z.ZodString;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
accessToken: z.ZodString;
|
|
87
|
+
}, z.core.$strip>>]>;
|
|
76
88
|
//#endregion
|
|
77
89
|
export { omnisendListContacts };
|
|
78
90
|
//# sourceMappingURL=list-contacts.d.mts.map
|
|
@@ -20,28 +20,28 @@ const OmnisendListContacts_PagingSchema = z.object({
|
|
|
20
20
|
limit: z.number().int().describe("Page size returned.").nullable(),
|
|
21
21
|
offset: z.number().int().describe("Offset value (deprecated).").nullable().optional(),
|
|
22
22
|
previous: z.string().describe("URL for previous page of results.").nullable().optional()
|
|
23
|
-
});
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const OmnisendListContacts_OptInSchema = z.object({
|
|
25
25
|
date: z.string().describe("Timestamp of opt-in.").nullable(),
|
|
26
26
|
channel: z.string().describe("Opt-in channel.").nullable()
|
|
27
|
-
});
|
|
27
|
+
}).passthrough();
|
|
28
28
|
const OmnisendListContacts_ConsentSchema = z.object({
|
|
29
29
|
ip: z.string().describe("IP address from which consent was given.").nullable(),
|
|
30
30
|
source: z.string().describe("Source of consent (e.g., signup form).").nullable(),
|
|
31
31
|
channel: z.string().describe("Consent channel (e.g., email, SMS).").nullable(),
|
|
32
32
|
createdAt: z.string().describe("Timestamp when consent was recorded.").nullable(),
|
|
33
33
|
userAgent: z.string().describe("User agent string at consent time.").nullable()
|
|
34
|
-
});
|
|
34
|
+
}).passthrough();
|
|
35
35
|
const OmnisendListContacts_StatusEntrySchema = z.object({
|
|
36
36
|
date: z.string().describe("Timestamp of status change.").nullable(),
|
|
37
37
|
status: z.string().describe("New status value.").nullable(),
|
|
38
38
|
channel: z.string().describe("Channel of the status update.").nullable()
|
|
39
|
-
});
|
|
39
|
+
}).passthrough();
|
|
40
40
|
const OmnisendListContacts_IdentifierSchema = z.object({
|
|
41
41
|
id: z.string().describe("Identifier value.").nullable(),
|
|
42
42
|
type: z.string().describe("Identifier type.").nullable(),
|
|
43
43
|
channels: z.record(z.string(), z.unknown()).describe("Mapping of channel-specific identifier details.")
|
|
44
|
-
});
|
|
44
|
+
}).passthrough();
|
|
45
45
|
const OmnisendListContacts_ContactSchema = z.object({
|
|
46
46
|
city: z.string().describe("City.").nullable().optional(),
|
|
47
47
|
tags: z.array(z.string()).describe("Tags assigned to contact.").nullable().optional(),
|
|
@@ -64,7 +64,7 @@ const OmnisendListContacts_ContactSchema = z.object({
|
|
|
64
64
|
countryCode: z.string().describe("ISO country code.").nullable().optional(),
|
|
65
65
|
identifiers: z.array(OmnisendListContacts_IdentifierSchema).describe("List of additional identifiers.").nullable().optional(),
|
|
66
66
|
customProperties: z.record(z.string(), z.unknown()).describe("Additional custom properties.").nullable().optional()
|
|
67
|
-
});
|
|
67
|
+
}).passthrough();
|
|
68
68
|
const omnisendListContacts = action("OMNISEND_LIST_CONTACTS", {
|
|
69
69
|
slug: "omnisend-list-contacts",
|
|
70
70
|
name: "List Contacts",
|
|
@@ -73,7 +73,7 @@ const omnisendListContacts = action("OMNISEND_LIST_CONTACTS", {
|
|
|
73
73
|
output: z.object({
|
|
74
74
|
paging: OmnisendListContacts_PagingSchema.nullable(),
|
|
75
75
|
contacts: z.array(OmnisendListContacts_ContactSchema).describe("List of contacts.")
|
|
76
|
-
})
|
|
76
|
+
}).passthrough()
|
|
77
77
|
});
|
|
78
78
|
//#endregion
|
|
79
79
|
export { omnisendListContacts };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-contacts.mjs","names":[],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendListContactsInput = z.object({\n tag: z.string().describe(\"Filter contacts by tag.\").optional(),\n after: z.string().describe(\"Cursor for pagination: contacts after this base64-encoded ContactID.\").optional(),\n email: z.string().describe(\"Filter contacts by exact email address.\").optional(),\n limit: z.number().int().default(100).describe(\"Number of results per page. Defaults to 100, maximum 250.\").optional(),\n phone: z.string().describe(\"Filter contacts by full phone number including country code.\").optional(),\n before: z.string().describe(\"Cursor for pagination: contacts before this base64-encoded ContactID.\").optional(),\n status: z.enum([\"subscribed\", \"nonSubscribed\", \"unsubscribed\"]).describe(\"Filter contacts by email channel status.\").optional(),\n segmentID: z.number().int().describe(\"Filter contacts by segment ID.\").optional(),\n}).describe(\"Query parameters for listing contacts. Supply only needed filters.\");\nconst OmnisendListContacts_PagingSchema = z.object({\n next: z.string().describe(\"URL for next page of results.\").nullable().optional(),\n limit: z.number().int().describe(\"Page size returned.\").nullable(),\n offset: z.number().int().describe(\"Offset value (deprecated).\").nullable().optional(),\n previous: z.string().describe(\"URL for previous page of results.\").nullable().optional(),\n});\nconst OmnisendListContacts_OptInSchema = z.object({\n date: z.string().describe(\"Timestamp of opt-in.\").nullable(),\n channel: z.string().describe(\"Opt-in channel.\").nullable(),\n});\nconst OmnisendListContacts_ConsentSchema = z.object({\n ip: z.string().describe(\"IP address from which consent was given.\").nullable(),\n source: z.string().describe(\"Source of consent (e.g., signup form).\").nullable(),\n channel: z.string().describe(\"Consent channel (e.g., email, SMS).\").nullable(),\n createdAt: z.string().describe(\"Timestamp when consent was recorded.\").nullable(),\n userAgent: z.string().describe(\"User agent string at consent time.\").nullable(),\n});\nconst OmnisendListContacts_StatusEntrySchema = z.object({\n date: z.string().describe(\"Timestamp of status change.\").nullable(),\n status: z.string().describe(\"New status value.\").nullable(),\n channel: z.string().describe(\"Channel of the status update.\").nullable(),\n});\nconst OmnisendListContacts_IdentifierSchema = z.object({\n id: z.string().describe(\"Identifier value.\").nullable(),\n type: z.string().describe(\"Identifier type.\").nullable(),\n channels: z.record(z.string(), z.unknown()).describe(\"Mapping of channel-specific identifier details.\"),\n});\nconst OmnisendListContacts_ContactSchema = z.object({\n city: z.string().describe(\"City.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags assigned to contact.\").nullable().optional(),\n email: z.string().describe(\"Contact email address.\").nullable(),\n phone: z.array(z.string()).describe(\"List of phone numbers.\").nullable().optional(),\n state: z.string().describe(\"State or region.\").nullable().optional(),\n gender: z.string().describe(\"Gender.\").nullable().optional(),\n optIns: z.array(OmnisendListContacts_OptInSchema).describe(\"List of opt-in events.\").nullable().optional(),\n address: z.string().describe(\"Mailing address.\").nullable().optional(),\n country: z.string().describe(\"Country name.\").nullable().optional(),\n consents: z.array(OmnisendListContacts_ConsentSchema).describe(\"List of consent records.\").nullable().optional(),\n lastName: z.string().describe(\"Last name.\").nullable().optional(),\n segments: z.array(z.string()).describe(\"List of segment IDs.\").nullable().optional(),\n statuses: z.array(OmnisendListContacts_StatusEntrySchema).describe(\"History of status changes.\").nullable().optional(),\n birthdate: z.string().describe(\"Birthdate in ISO format.\").nullable().optional(),\n contactID: z.string().describe(\"Unique Contact ID.\").nullable(),\n createdAt: z.string().describe(\"Timestamp when contact was created.\").nullable(),\n firstName: z.string().describe(\"First name.\").nullable().optional(),\n postalCode: z.string().describe(\"Postal code.\").nullable().optional(),\n countryCode: z.string().describe(\"ISO country code.\").nullable().optional(),\n identifiers: z.array(OmnisendListContacts_IdentifierSchema).describe(\"List of additional identifiers.\").nullable().optional(),\n customProperties: z.record(z.string(), z.unknown()).describe(\"Additional custom properties.\").nullable().optional(),\n});\nexport const OmnisendListContactsOutput = z.object({\n paging: OmnisendListContacts_PagingSchema.nullable(),\n contacts: z.array(OmnisendListContacts_ContactSchema).describe(\"List of contacts.\"),\n});\n\nexport const omnisendListContacts = action(\"OMNISEND_LIST_CONTACTS\", {\n slug: \"omnisend-list-contacts\",\n name: \"List Contacts\",\n description: \"Tool to retrieve a paginated list of contacts with optional filtering. Use when you need to fetch contacts in batches and handle cursor pagination.\",\n input: OmnisendListContactsInput,\n output: OmnisendListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC5G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACpG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,KAAK;EAAC;EAAc;EAAiB;CAAc,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9H,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,oCAAoC,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC;
|
|
1
|
+
{"version":3,"file":"list-contacts.mjs","names":[],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendListContactsInput = z.object({\n tag: z.string().describe(\"Filter contacts by tag.\").optional(),\n after: z.string().describe(\"Cursor for pagination: contacts after this base64-encoded ContactID.\").optional(),\n email: z.string().describe(\"Filter contacts by exact email address.\").optional(),\n limit: z.number().int().default(100).describe(\"Number of results per page. Defaults to 100, maximum 250.\").optional(),\n phone: z.string().describe(\"Filter contacts by full phone number including country code.\").optional(),\n before: z.string().describe(\"Cursor for pagination: contacts before this base64-encoded ContactID.\").optional(),\n status: z.enum([\"subscribed\", \"nonSubscribed\", \"unsubscribed\"]).describe(\"Filter contacts by email channel status.\").optional(),\n segmentID: z.number().int().describe(\"Filter contacts by segment ID.\").optional(),\n}).describe(\"Query parameters for listing contacts. Supply only needed filters.\");\nconst OmnisendListContacts_PagingSchema = z.object({\n next: z.string().describe(\"URL for next page of results.\").nullable().optional(),\n limit: z.number().int().describe(\"Page size returned.\").nullable(),\n offset: z.number().int().describe(\"Offset value (deprecated).\").nullable().optional(),\n previous: z.string().describe(\"URL for previous page of results.\").nullable().optional(),\n}).passthrough();\nconst OmnisendListContacts_OptInSchema = z.object({\n date: z.string().describe(\"Timestamp of opt-in.\").nullable(),\n channel: z.string().describe(\"Opt-in channel.\").nullable(),\n}).passthrough();\nconst OmnisendListContacts_ConsentSchema = z.object({\n ip: z.string().describe(\"IP address from which consent was given.\").nullable(),\n source: z.string().describe(\"Source of consent (e.g., signup form).\").nullable(),\n channel: z.string().describe(\"Consent channel (e.g., email, SMS).\").nullable(),\n createdAt: z.string().describe(\"Timestamp when consent was recorded.\").nullable(),\n userAgent: z.string().describe(\"User agent string at consent time.\").nullable(),\n}).passthrough();\nconst OmnisendListContacts_StatusEntrySchema = z.object({\n date: z.string().describe(\"Timestamp of status change.\").nullable(),\n status: z.string().describe(\"New status value.\").nullable(),\n channel: z.string().describe(\"Channel of the status update.\").nullable(),\n}).passthrough();\nconst OmnisendListContacts_IdentifierSchema = z.object({\n id: z.string().describe(\"Identifier value.\").nullable(),\n type: z.string().describe(\"Identifier type.\").nullable(),\n channels: z.record(z.string(), z.unknown()).describe(\"Mapping of channel-specific identifier details.\"),\n}).passthrough();\nconst OmnisendListContacts_ContactSchema = z.object({\n city: z.string().describe(\"City.\").nullable().optional(),\n tags: z.array(z.string()).describe(\"Tags assigned to contact.\").nullable().optional(),\n email: z.string().describe(\"Contact email address.\").nullable(),\n phone: z.array(z.string()).describe(\"List of phone numbers.\").nullable().optional(),\n state: z.string().describe(\"State or region.\").nullable().optional(),\n gender: z.string().describe(\"Gender.\").nullable().optional(),\n optIns: z.array(OmnisendListContacts_OptInSchema).describe(\"List of opt-in events.\").nullable().optional(),\n address: z.string().describe(\"Mailing address.\").nullable().optional(),\n country: z.string().describe(\"Country name.\").nullable().optional(),\n consents: z.array(OmnisendListContacts_ConsentSchema).describe(\"List of consent records.\").nullable().optional(),\n lastName: z.string().describe(\"Last name.\").nullable().optional(),\n segments: z.array(z.string()).describe(\"List of segment IDs.\").nullable().optional(),\n statuses: z.array(OmnisendListContacts_StatusEntrySchema).describe(\"History of status changes.\").nullable().optional(),\n birthdate: z.string().describe(\"Birthdate in ISO format.\").nullable().optional(),\n contactID: z.string().describe(\"Unique Contact ID.\").nullable(),\n createdAt: z.string().describe(\"Timestamp when contact was created.\").nullable(),\n firstName: z.string().describe(\"First name.\").nullable().optional(),\n postalCode: z.string().describe(\"Postal code.\").nullable().optional(),\n countryCode: z.string().describe(\"ISO country code.\").nullable().optional(),\n identifiers: z.array(OmnisendListContacts_IdentifierSchema).describe(\"List of additional identifiers.\").nullable().optional(),\n customProperties: z.record(z.string(), z.unknown()).describe(\"Additional custom properties.\").nullable().optional(),\n}).passthrough();\nexport const OmnisendListContactsOutput = z.object({\n paging: OmnisendListContacts_PagingSchema.nullable(),\n contacts: z.array(OmnisendListContacts_ContactSchema).describe(\"List of contacts.\"),\n}).passthrough();\n\nexport const omnisendListContacts = action(\"OMNISEND_LIST_CONTACTS\", {\n slug: \"omnisend-list-contacts\",\n name: \"List Contacts\",\n description: \"Tool to retrieve a paginated list of contacts with optional filtering. Use when you need to fetch contacts in batches and handle cursor pagination.\",\n input: OmnisendListContactsInput,\n output: OmnisendListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,KAAK,EAAE,OAAO,CAAC,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AC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,aAAa,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,kBAAkB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwC,EAAE,OAAO;EACjD,QAAQ,kCAAkC,SAAS;EACnD,UAAU,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,mBAAmB;CACpF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ const OmnisendListEvents_EventFieldSchema = zod.z.object({
|
|
|
6
6
|
name: zod.z.string().describe("Field name.").nullable().optional(),
|
|
7
7
|
type: zod.z.string().describe("Field type.").nullable().optional(),
|
|
8
8
|
required: zod.z.boolean().describe("Whether field is required.").nullable().optional()
|
|
9
|
-
}).describe("Individual field definition in an event.");
|
|
9
|
+
}).passthrough().describe("Individual field definition in an event.");
|
|
10
10
|
const OmnisendListEvents_EventSchema = zod.z.object({
|
|
11
11
|
name: zod.z.string().describe("Event display name.").nullable().optional(),
|
|
12
12
|
fields: zod.z.array(OmnisendListEvents_EventFieldSchema).describe("Custom fields defined for this event.").nullable().optional(),
|
|
@@ -16,8 +16,8 @@ const OmnisendListEvents_EventSchema = zod.z.object({
|
|
|
16
16
|
updatedAt: zod.z.string().describe("Last updated timestamp (ISO 8601).").nullable().optional(),
|
|
17
17
|
launchedAt: zod.z.string().describe("Event launch timestamp (ISO 8601).").nullable().optional(),
|
|
18
18
|
systemName: zod.z.string().describe("System name for the event.").nullable().optional()
|
|
19
|
-
}).describe("Custom event object.");
|
|
20
|
-
const OmnisendListEventsOutput = zod.z.object({ events: zod.z.array(OmnisendListEvents_EventSchema).describe("Array of custom event objects.").nullable().optional() }).describe("Response schema containing array of custom events.");
|
|
19
|
+
}).passthrough().describe("Custom event object.");
|
|
20
|
+
const OmnisendListEventsOutput = zod.z.object({ events: zod.z.array(OmnisendListEvents_EventSchema).describe("Array of custom event objects.").nullable().optional() }).passthrough().describe("Response schema containing array of custom events.");
|
|
21
21
|
const omnisendListEvents = require_action.action("OMNISEND_LIST_EVENTS", {
|
|
22
22
|
slug: "omnisend-list-events",
|
|
23
23
|
name: "List Events",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-events.cjs","names":["z","action"],"sources":["../../src/actions/list-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendListEventsInput = z.object({}).describe(\"Request schema for listing custom events. No parameters required.\");\nconst OmnisendListEvents_EventFieldSchema = z.object({\n name: z.string().describe(\"Field name.\").nullable().optional(),\n type: z.string().describe(\"Field type.\").nullable().optional(),\n required: z.boolean().describe(\"Whether field is required.\").nullable().optional(),\n}).describe(\"Individual field definition in an event.\");\nconst OmnisendListEvents_EventSchema = z.object({\n name: z.string().describe(\"Event display name.\").nullable().optional(),\n fields: z.array(OmnisendListEvents_EventFieldSchema).describe(\"Custom fields defined for this event.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the event is currently enabled.\").nullable().optional(),\n eventID: z.string().describe(\"Unique event identifier.\").nullable().optional(),\n createdAt: z.string().describe(\"Event creation timestamp (ISO 8601).\").nullable().optional(),\n updatedAt: z.string().describe(\"Last updated timestamp (ISO 8601).\").nullable().optional(),\n launchedAt: z.string().describe(\"Event launch timestamp (ISO 8601).\").nullable().optional(),\n systemName: z.string().describe(\"System name for the event.\").nullable().optional(),\n}).describe(\"Custom event object.\");\nexport const OmnisendListEventsOutput = z.object({\n events: z.array(OmnisendListEvents_EventSchema).describe(\"Array of custom event objects.\").nullable().optional(),\n}).describe(\"Response schema containing array of custom events.\");\n\nexport const omnisendListEvents = action(\"OMNISEND_LIST_EVENTS\", {\n slug: \"omnisend-list-events\",\n name: \"List Events\",\n description: \"Tool to retrieve all custom events created in Omnisend app. Use when you need to view available event types for automation workflows or event tracking.\",\n input: OmnisendListEventsInput,\n output: OmnisendListEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChI,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,SAAS,0CAA0C;
|
|
1
|
+
{"version":3,"file":"list-events.cjs","names":["z","action"],"sources":["../../src/actions/list-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendListEventsInput = z.object({}).describe(\"Request schema for listing custom events. No parameters required.\");\nconst OmnisendListEvents_EventFieldSchema = z.object({\n name: z.string().describe(\"Field name.\").nullable().optional(),\n type: z.string().describe(\"Field type.\").nullable().optional(),\n required: z.boolean().describe(\"Whether field is required.\").nullable().optional(),\n}).passthrough().describe(\"Individual field definition in an event.\");\nconst OmnisendListEvents_EventSchema = z.object({\n name: z.string().describe(\"Event display name.\").nullable().optional(),\n fields: z.array(OmnisendListEvents_EventFieldSchema).describe(\"Custom fields defined for this event.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the event is currently enabled.\").nullable().optional(),\n eventID: z.string().describe(\"Unique event identifier.\").nullable().optional(),\n createdAt: z.string().describe(\"Event creation timestamp (ISO 8601).\").nullable().optional(),\n updatedAt: z.string().describe(\"Last updated timestamp (ISO 8601).\").nullable().optional(),\n launchedAt: z.string().describe(\"Event launch timestamp (ISO 8601).\").nullable().optional(),\n systemName: z.string().describe(\"System name for the event.\").nullable().optional(),\n}).passthrough().describe(\"Custom event object.\");\nexport const OmnisendListEventsOutput = z.object({\n events: z.array(OmnisendListEvents_EventSchema).describe(\"Array of custom event objects.\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing array of custom events.\");\n\nexport const omnisendListEvents = action(\"OMNISEND_LIST_EVENTS\", {\n slug: \"omnisend-list-events\",\n name: \"List Events\",\n description: \"Tool to retrieve all custom events created in Omnisend app. Use when you need to view available event types for automation workflows or event tracking.\",\n input: OmnisendListEventsInput,\n output: OmnisendListEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChI,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC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ZodNullable<z.ZodString>>;
|
|
10
10
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>>>>;
|
|
13
13
|
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
14
14
|
eventID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
launchedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
systemName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
-
}, z.core.$
|
|
20
|
-
}, z.core.$
|
|
21
|
-
declare const omnisendListEvents: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
19
|
+
}, z.core.$loose>>>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
|
+
declare const omnisendListEvents: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
22
|
+
connectionId: z.ZodString;
|
|
23
|
+
entityId: z.ZodString;
|
|
24
|
+
instanceId: z.ZodString;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
accessToken: z.ZodString;
|
|
27
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
28
|
+
connectionId: z.ZodString;
|
|
29
|
+
entityId: z.ZodString;
|
|
30
|
+
instanceId: z.ZodString;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
accessToken: z.ZodString;
|
|
33
|
+
}, z.core.$strip>>]>;
|
|
22
34
|
//#endregion
|
|
23
35
|
export { omnisendListEvents };
|
|
24
36
|
//# sourceMappingURL=list-events.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-events.d.cts","names":[],"sources":["../../src/actions/list-events.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAgBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,
|
|
1
|
+
{"version":3,"file":"list-events.d.cts","names":[],"sources":["../../src/actions/list-events.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAgBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,aAAA,CAAA,CAAA,SAAA"}
|
|
@@ -9,16 +9,28 @@ declare const OmnisendListEventsOutput: z.ZodObject<{
|
|
|
9
9
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
10
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>>>>;
|
|
13
13
|
enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
14
14
|
eventID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
launchedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
18
|
systemName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
-
}, z.core.$
|
|
20
|
-
}, z.core.$
|
|
21
|
-
declare const omnisendListEvents: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
19
|
+
}, z.core.$loose>>>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
|
+
declare const omnisendListEvents: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
22
|
+
connectionId: z.ZodString;
|
|
23
|
+
entityId: z.ZodString;
|
|
24
|
+
instanceId: z.ZodString;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
accessToken: z.ZodString;
|
|
27
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
28
|
+
connectionId: z.ZodString;
|
|
29
|
+
entityId: z.ZodString;
|
|
30
|
+
instanceId: z.ZodString;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
accessToken: z.ZodString;
|
|
33
|
+
}, z.core.$strip>>]>;
|
|
22
34
|
//#endregion
|
|
23
35
|
export { omnisendListEvents };
|
|
24
36
|
//# sourceMappingURL=list-events.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-events.d.mts","names":[],"sources":["../../src/actions/list-events.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAgBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,
|
|
1
|
+
{"version":3,"file":"list-events.d.mts","names":[],"sources":["../../src/actions/list-events.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAgBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,aAAA,CAAA,CAAA,SAAA"}
|
|
@@ -6,7 +6,7 @@ const OmnisendListEvents_EventFieldSchema = z.object({
|
|
|
6
6
|
name: z.string().describe("Field name.").nullable().optional(),
|
|
7
7
|
type: z.string().describe("Field type.").nullable().optional(),
|
|
8
8
|
required: z.boolean().describe("Whether field is required.").nullable().optional()
|
|
9
|
-
}).describe("Individual field definition in an event.");
|
|
9
|
+
}).passthrough().describe("Individual field definition in an event.");
|
|
10
10
|
const OmnisendListEvents_EventSchema = z.object({
|
|
11
11
|
name: z.string().describe("Event display name.").nullable().optional(),
|
|
12
12
|
fields: z.array(OmnisendListEvents_EventFieldSchema).describe("Custom fields defined for this event.").nullable().optional(),
|
|
@@ -16,13 +16,13 @@ const OmnisendListEvents_EventSchema = z.object({
|
|
|
16
16
|
updatedAt: z.string().describe("Last updated timestamp (ISO 8601).").nullable().optional(),
|
|
17
17
|
launchedAt: z.string().describe("Event launch timestamp (ISO 8601).").nullable().optional(),
|
|
18
18
|
systemName: z.string().describe("System name for the event.").nullable().optional()
|
|
19
|
-
}).describe("Custom event object.");
|
|
19
|
+
}).passthrough().describe("Custom event object.");
|
|
20
20
|
const omnisendListEvents = action("OMNISEND_LIST_EVENTS", {
|
|
21
21
|
slug: "omnisend-list-events",
|
|
22
22
|
name: "List Events",
|
|
23
23
|
description: "Tool to retrieve all custom events created in Omnisend app. Use when you need to view available event types for automation workflows or event tracking.",
|
|
24
24
|
input: OmnisendListEventsInput,
|
|
25
|
-
output: z.object({ events: z.array(OmnisendListEvents_EventSchema).describe("Array of custom event objects.").nullable().optional() }).describe("Response schema containing array of custom events.")
|
|
25
|
+
output: z.object({ events: z.array(OmnisendListEvents_EventSchema).describe("Array of custom event objects.").nullable().optional() }).passthrough().describe("Response schema containing array of custom events.")
|
|
26
26
|
});
|
|
27
27
|
//#endregion
|
|
28
28
|
export { omnisendListEvents };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-events.mjs","names":[],"sources":["../../src/actions/list-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendListEventsInput = z.object({}).describe(\"Request schema for listing custom events. No parameters required.\");\nconst OmnisendListEvents_EventFieldSchema = z.object({\n name: z.string().describe(\"Field name.\").nullable().optional(),\n type: z.string().describe(\"Field type.\").nullable().optional(),\n required: z.boolean().describe(\"Whether field is required.\").nullable().optional(),\n}).describe(\"Individual field definition in an event.\");\nconst OmnisendListEvents_EventSchema = z.object({\n name: z.string().describe(\"Event display name.\").nullable().optional(),\n fields: z.array(OmnisendListEvents_EventFieldSchema).describe(\"Custom fields defined for this event.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the event is currently enabled.\").nullable().optional(),\n eventID: z.string().describe(\"Unique event identifier.\").nullable().optional(),\n createdAt: z.string().describe(\"Event creation timestamp (ISO 8601).\").nullable().optional(),\n updatedAt: z.string().describe(\"Last updated timestamp (ISO 8601).\").nullable().optional(),\n launchedAt: z.string().describe(\"Event launch timestamp (ISO 8601).\").nullable().optional(),\n systemName: z.string().describe(\"System name for the event.\").nullable().optional(),\n}).describe(\"Custom event object.\");\nexport const OmnisendListEventsOutput = z.object({\n events: z.array(OmnisendListEvents_EventSchema).describe(\"Array of custom event objects.\").nullable().optional(),\n}).describe(\"Response schema containing array of custom events.\");\n\nexport const omnisendListEvents = action(\"OMNISEND_LIST_EVENTS\", {\n slug: \"omnisend-list-events\",\n name: \"List Events\",\n description: \"Tool to retrieve all custom events created in Omnisend app. Use when you need to view available event types for automation workflows or event tracking.\",\n input: OmnisendListEventsInput,\n output: OmnisendListEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChI,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,SAAS,0CAA0C;
|
|
1
|
+
{"version":3,"file":"list-events.mjs","names":[],"sources":["../../src/actions/list-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendListEventsInput = z.object({}).describe(\"Request schema for listing custom events. No parameters required.\");\nconst OmnisendListEvents_EventFieldSchema = z.object({\n name: z.string().describe(\"Field name.\").nullable().optional(),\n type: z.string().describe(\"Field type.\").nullable().optional(),\n required: z.boolean().describe(\"Whether field is required.\").nullable().optional(),\n}).passthrough().describe(\"Individual field definition in an event.\");\nconst OmnisendListEvents_EventSchema = z.object({\n name: z.string().describe(\"Event display name.\").nullable().optional(),\n fields: z.array(OmnisendListEvents_EventFieldSchema).describe(\"Custom fields defined for this event.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the event is currently enabled.\").nullable().optional(),\n eventID: z.string().describe(\"Unique event identifier.\").nullable().optional(),\n createdAt: z.string().describe(\"Event creation timestamp (ISO 8601).\").nullable().optional(),\n updatedAt: z.string().describe(\"Last updated timestamp (ISO 8601).\").nullable().optional(),\n launchedAt: z.string().describe(\"Event launch timestamp (ISO 8601).\").nullable().optional(),\n systemName: z.string().describe(\"System name for the event.\").nullable().optional(),\n}).passthrough().describe(\"Custom event object.\");\nexport const OmnisendListEventsOutput = z.object({\n events: z.array(OmnisendListEvents_EventSchema).describe(\"Array of custom event objects.\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing array of custom events.\");\n\nexport const omnisendListEvents = action(\"OMNISEND_LIST_EVENTS\", {\n slug: \"omnisend-list-events\",\n name: \"List Events\",\n description: \"Tool to retrieve all custom events created in Omnisend app. Use when you need to view available event types for automation workflows or event tracking.\",\n input: OmnisendListEventsInput,\n output: OmnisendListEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChI,MAAM,sCAAsC,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAM,iCAAiC,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,QAAQ,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sBAAsB;AAKhD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,QAAQ,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
|
|
@@ -15,17 +15,17 @@ const OmnisendListProductCategories_PagingSchema = zod.z.object({
|
|
|
15
15
|
limit: zod.z.number().int().describe("Number of items requested per page.").nullable(),
|
|
16
16
|
offset: zod.z.number().int().describe("Offset of the first item returned.").nullable(),
|
|
17
17
|
previous: zod.z.string().describe("URL for previous page of results.").nullable().optional()
|
|
18
|
-
});
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const OmnisendListProductCategories_CategorySchema = zod.z.object({
|
|
20
20
|
title: zod.z.string().describe("Category title.").nullable(),
|
|
21
21
|
createdAt: zod.z.string().describe("Creation timestamp (ISO 8601).").nullable().optional(),
|
|
22
22
|
updatedAt: zod.z.string().describe("Last updated timestamp (ISO 8601).").nullable().optional(),
|
|
23
23
|
categoryID: zod.z.string().describe("Unique category identifier.").nullable()
|
|
24
|
-
});
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const OmnisendListProductCategoriesOutput = zod.z.object({
|
|
26
26
|
paging: OmnisendListProductCategories_PagingSchema.nullable(),
|
|
27
27
|
categories: zod.z.array(OmnisendListProductCategories_CategorySchema).describe("Array of product category objects.")
|
|
28
|
-
});
|
|
28
|
+
}).passthrough();
|
|
29
29
|
const omnisendListProductCategories = require_action.action("OMNISEND_LIST_PRODUCT_CATEGORIES", {
|
|
30
30
|
slug: "omnisend-list-product-categories",
|
|
31
31
|
name: "List Product Categories",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-product-categories.cjs","names":["z","action"],"sources":["../../src/actions/list-product-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendListProductCategoriesInput = z.object({\n sort: z.enum([\"date\", \"createdAt\", \"updatedAt\"]).describe(\"Field to sort by. Allowed values: 'date', 'createdAt', or 'updatedAt'.\").optional(),\n limit: z.number().int().default(100).describe(\"Maximum number of categories to return. Defaults to 100.\").optional(),\n offset: z.number().int().default(0).describe(\"Zero-based index of the first category to return. Use to page through results.\").optional(),\n});\nconst OmnisendListProductCategories_PagingSchema = z.object({\n next: z.string().describe(\"URL for next page of results.\").nullable().optional(),\n limit: z.number().int().describe(\"Number of items requested per page.\").nullable(),\n offset: z.number().int().describe(\"Offset of the first item returned.\").nullable(),\n previous: z.string().describe(\"URL for previous page of results.\").nullable().optional(),\n});\nconst OmnisendListProductCategories_CategorySchema = z.object({\n title: z.string().describe(\"Category title.\").nullable(),\n createdAt: z.string().describe(\"Creation timestamp (ISO 8601).\").nullable().optional(),\n updatedAt: z.string().describe(\"Last updated timestamp (ISO 8601).\").nullable().optional(),\n categoryID: z.string().describe(\"Unique category identifier.\").nullable(),\n});\nexport const OmnisendListProductCategoriesOutput = z.object({\n paging: OmnisendListProductCategories_PagingSchema.nullable(),\n categories: z.array(OmnisendListProductCategories_CategorySchema).describe(\"Array of product category objects.\"),\n});\n\nexport const omnisendListProductCategories = action(\"OMNISEND_LIST_PRODUCT_CATEGORIES\", {\n slug: \"omnisend-list-product-categories\",\n name: \"List Product Categories\",\n description: \"Tool to retrieve a paginated list of product categories from the Omnisend catalog. Use when fetching category data for product organization.\",\n input: OmnisendListProductCategoriesInput,\n output: OmnisendListProductCategoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAa;CAAW,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC7I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;AAC1I,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC;
|
|
1
|
+
{"version":3,"file":"list-product-categories.cjs","names":["z","action"],"sources":["../../src/actions/list-product-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendListProductCategoriesInput = z.object({\n sort: z.enum([\"date\", \"createdAt\", \"updatedAt\"]).describe(\"Field to sort by. Allowed values: 'date', 'createdAt', or 'updatedAt'.\").optional(),\n limit: z.number().int().default(100).describe(\"Maximum number of categories to return. Defaults to 100.\").optional(),\n offset: z.number().int().default(0).describe(\"Zero-based index of the first category to return. Use to page through results.\").optional(),\n});\nconst OmnisendListProductCategories_PagingSchema = z.object({\n next: z.string().describe(\"URL for next page of results.\").nullable().optional(),\n limit: z.number().int().describe(\"Number of items requested per page.\").nullable(),\n offset: z.number().int().describe(\"Offset of the first item returned.\").nullable(),\n previous: z.string().describe(\"URL for previous page of results.\").nullable().optional(),\n}).passthrough();\nconst OmnisendListProductCategories_CategorySchema = z.object({\n title: z.string().describe(\"Category title.\").nullable(),\n createdAt: z.string().describe(\"Creation timestamp (ISO 8601).\").nullable().optional(),\n updatedAt: z.string().describe(\"Last updated timestamp (ISO 8601).\").nullable().optional(),\n categoryID: z.string().describe(\"Unique category identifier.\").nullable(),\n}).passthrough();\nexport const OmnisendListProductCategoriesOutput = z.object({\n paging: OmnisendListProductCategories_PagingSchema.nullable(),\n categories: z.array(OmnisendListProductCategories_CategorySchema).describe(\"Array of product category objects.\"),\n}).passthrough();\n\nexport const omnisendListProductCategories = action(\"OMNISEND_LIST_PRODUCT_CATEGORIES\", {\n slug: \"omnisend-list-product-categories\",\n name: \"List Product Categories\",\n description: \"Tool to retrieve a paginated list of product categories from the Omnisend catalog. Use when fetching category data for product organization.\",\n input: OmnisendListProductCategoriesInput,\n output: OmnisendListProductCategoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAa;CAAW,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC7I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;AAC1I,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CA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ullable<z.ZodNumber>;
|
|
18
18
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
20
|
categories: z.ZodArray<z.ZodObject<{
|
|
21
21
|
title: z.ZodNullable<z.ZodString>;
|
|
22
22
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
23
|
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
categoryID: z.ZodNullable<z.ZodString>;
|
|
25
|
-
}, z.core.$
|
|
26
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const omnisendListProductCategories: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
sort?: "date" | "createdAt" | "updatedAt" | undefined;
|
|
29
29
|
limit?: number | undefined;
|
|
30
30
|
offset?: number | undefined;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
32
|
+
connectionId: z.ZodString;
|
|
33
|
+
entityId: z.ZodString;
|
|
34
|
+
instanceId: z.ZodString;
|
|
35
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
+
accessToken: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
38
|
+
connectionId: z.ZodString;
|
|
39
|
+
entityId: z.ZodString;
|
|
40
|
+
instanceId: z.ZodString;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
accessToken: z.ZodString;
|
|
43
|
+
}, z.core.$strip>>]>;
|
|
32
44
|
//#endregion
|
|
33
45
|
export { omnisendListProductCategories };
|
|
34
46
|
//# sourceMappingURL=list-product-categories.d.cts.map
|