@keystrokehq/spoki 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-contact-operator.cjs +1 -1
- package/dist/actions/add-contact-operator.cjs.map +1 -1
- package/dist/actions/add-contact-operator.d.cts +1 -1
- package/dist/actions/add-contact-operator.d.cts.map +1 -1
- package/dist/actions/add-contact-operator.d.mts +1 -1
- package/dist/actions/add-contact-operator.d.mts.map +1 -1
- package/dist/actions/add-contact-operator.mjs +1 -1
- package/dist/actions/add-contact-operator.mjs.map +1 -1
- package/dist/actions/add-service-user.cjs +1 -1
- package/dist/actions/add-service-user.cjs.map +1 -1
- package/dist/actions/add-service-user.d.cts +1 -1
- package/dist/actions/add-service-user.d.mts +1 -1
- package/dist/actions/add-service-user.mjs +1 -1
- package/dist/actions/add-service-user.mjs.map +1 -1
- package/dist/actions/check-role-private-key.cjs +1 -1
- package/dist/actions/check-role-private-key.cjs.map +1 -1
- package/dist/actions/check-role-private-key.d.cts +1 -1
- package/dist/actions/check-role-private-key.d.mts +1 -1
- package/dist/actions/check-role-private-key.mjs +1 -1
- package/dist/actions/check-role-private-key.mjs.map +1 -1
- package/dist/actions/clone-template.cjs +4 -4
- package/dist/actions/clone-template.cjs.map +1 -1
- package/dist/actions/clone-template.d.cts +6 -6
- package/dist/actions/clone-template.d.mts +6 -6
- package/dist/actions/clone-template.mjs +4 -4
- package/dist/actions/clone-template.mjs.map +1 -1
- package/dist/actions/create-account-onboarding-link.cjs +1 -1
- package/dist/actions/create-account-onboarding-link.cjs.map +1 -1
- package/dist/actions/create-account-onboarding-link.d.cts +1 -1
- package/dist/actions/create-account-onboarding-link.d.mts +1 -1
- package/dist/actions/create-account-onboarding-link.mjs +1 -1
- package/dist/actions/create-account-onboarding-link.mjs.map +1 -1
- package/dist/actions/create-custom-field.cjs +1 -1
- package/dist/actions/create-custom-field.cjs.map +1 -1
- package/dist/actions/create-custom-field.d.cts +1 -1
- package/dist/actions/create-custom-field.d.mts +1 -1
- package/dist/actions/create-custom-field.mjs +1 -1
- package/dist/actions/create-custom-field.mjs.map +1 -1
- package/dist/actions/create-list.cjs +1 -1
- package/dist/actions/create-list.cjs.map +1 -1
- package/dist/actions/create-list.d.cts +1 -1
- package/dist/actions/create-list.d.mts +1 -1
- package/dist/actions/create-list.mjs +1 -1
- package/dist/actions/create-list.mjs.map +1 -1
- package/dist/actions/create-media.cjs +1 -1
- package/dist/actions/create-media.cjs.map +1 -1
- package/dist/actions/create-media.d.cts +1 -1
- package/dist/actions/create-media.d.mts +1 -1
- package/dist/actions/create-media.mjs +1 -1
- package/dist/actions/create-media.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 +3 -3
- package/dist/actions/create-or-update-contact.d.mts +3 -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-template.cjs +7 -7
- package/dist/actions/create-template.cjs.map +1 -1
- package/dist/actions/create-template.d.cts +11 -9
- package/dist/actions/create-template.d.mts +11 -9
- package/dist/actions/create-template.mjs +7 -7
- package/dist/actions/create-template.mjs.map +1 -1
- package/dist/actions/create-ticket.cjs +4 -4
- package/dist/actions/create-ticket.cjs.map +1 -1
- package/dist/actions/create-ticket.d.cts +5 -5
- package/dist/actions/create-ticket.d.mts +5 -5
- package/dist/actions/create-ticket.mjs +4 -4
- package/dist/actions/create-ticket.mjs.map +1 -1
- package/dist/actions/delete-contact.cjs +1 -1
- package/dist/actions/delete-contact.cjs.map +1 -1
- package/dist/actions/delete-contact.d.cts +1 -1
- package/dist/actions/delete-contact.d.cts.map +1 -1
- package/dist/actions/delete-contact.d.mts +1 -1
- package/dist/actions/delete-contact.d.mts.map +1 -1
- package/dist/actions/delete-contact.mjs +1 -1
- package/dist/actions/delete-contact.mjs.map +1 -1
- package/dist/actions/delete-custom-field.cjs +1 -1
- package/dist/actions/delete-custom-field.cjs.map +1 -1
- package/dist/actions/delete-custom-field.d.cts +1 -1
- package/dist/actions/delete-custom-field.d.cts.map +1 -1
- package/dist/actions/delete-custom-field.d.mts +1 -1
- package/dist/actions/delete-custom-field.d.mts.map +1 -1
- package/dist/actions/delete-custom-field.mjs +1 -1
- package/dist/actions/delete-custom-field.mjs.map +1 -1
- package/dist/actions/delete-list.cjs +1 -1
- package/dist/actions/delete-list.cjs.map +1 -1
- package/dist/actions/delete-list.d.cts +1 -1
- package/dist/actions/delete-list.d.cts.map +1 -1
- package/dist/actions/delete-list.d.mts +1 -1
- package/dist/actions/delete-list.d.mts.map +1 -1
- package/dist/actions/delete-list.mjs +1 -1
- package/dist/actions/delete-list.mjs.map +1 -1
- package/dist/actions/delete-media.cjs +1 -1
- package/dist/actions/delete-media.cjs.map +1 -1
- package/dist/actions/delete-media.d.cts +1 -1
- package/dist/actions/delete-media.d.cts.map +1 -1
- package/dist/actions/delete-media.d.mts +1 -1
- package/dist/actions/delete-media.d.mts.map +1 -1
- package/dist/actions/delete-media.mjs +1 -1
- package/dist/actions/delete-media.mjs.map +1 -1
- package/dist/actions/delete-role.cjs +1 -1
- package/dist/actions/delete-role.cjs.map +1 -1
- package/dist/actions/delete-role.d.cts +1 -1
- package/dist/actions/delete-role.d.cts.map +1 -1
- package/dist/actions/delete-role.d.mts +1 -1
- package/dist/actions/delete-role.d.mts.map +1 -1
- package/dist/actions/delete-role.mjs +1 -1
- package/dist/actions/delete-role.mjs.map +1 -1
- package/dist/actions/delete-template.cjs +1 -1
- package/dist/actions/delete-template.cjs.map +1 -1
- package/dist/actions/delete-template.d.cts +1 -1
- package/dist/actions/delete-template.d.mts +1 -1
- package/dist/actions/delete-template.mjs +1 -1
- package/dist/actions/delete-template.mjs.map +1 -1
- package/dist/actions/delete-ticket.cjs +1 -1
- package/dist/actions/delete-ticket.cjs.map +1 -1
- package/dist/actions/delete-ticket.d.cts +1 -1
- package/dist/actions/delete-ticket.d.cts.map +1 -1
- package/dist/actions/delete-ticket.d.mts +1 -1
- package/dist/actions/delete-ticket.d.mts.map +1 -1
- package/dist/actions/delete-ticket.mjs +1 -1
- package/dist/actions/delete-ticket.mjs.map +1 -1
- package/dist/actions/generate-role-private-key.cjs +1 -1
- package/dist/actions/generate-role-private-key.cjs.map +1 -1
- package/dist/actions/generate-role-private-key.d.cts +1 -1
- package/dist/actions/generate-role-private-key.d.mts +1 -1
- package/dist/actions/generate-role-private-key.mjs +1 -1
- package/dist/actions/generate-role-private-key.mjs.map +1 -1
- package/dist/actions/get-account-current-report.cjs +1 -1
- package/dist/actions/get-account-current-report.cjs.map +1 -1
- package/dist/actions/get-account-current-report.d.cts +1 -1
- package/dist/actions/get-account-current-report.d.mts +1 -1
- package/dist/actions/get-account-current-report.mjs +1 -1
- package/dist/actions/get-account-current-report.mjs.map +1 -1
- package/dist/actions/list-accounts.cjs +2 -2
- package/dist/actions/list-accounts.cjs.map +1 -1
- package/dist/actions/list-accounts.d.cts +2 -2
- package/dist/actions/list-accounts.d.mts +2 -2
- package/dist/actions/list-accounts.mjs +2 -2
- package/dist/actions/list-accounts.mjs.map +1 -1
- package/dist/actions/list-automations.cjs +3 -3
- package/dist/actions/list-automations.cjs.map +1 -1
- package/dist/actions/list-automations.d.cts +3 -3
- package/dist/actions/list-automations.d.mts +3 -3
- package/dist/actions/list-automations.mjs +3 -3
- package/dist/actions/list-automations.mjs.map +1 -1
- package/dist/actions/list-campaigns.cjs +4 -4
- package/dist/actions/list-campaigns.cjs.map +1 -1
- package/dist/actions/list-campaigns.d.cts +4 -4
- package/dist/actions/list-campaigns.d.mts +4 -4
- package/dist/actions/list-campaigns.mjs +4 -4
- package/dist/actions/list-campaigns.mjs.map +1 -1
- package/dist/actions/list-contacts.cjs +5 -5
- package/dist/actions/list-contacts.cjs.map +1 -1
- package/dist/actions/list-contacts.d.cts +5 -5
- package/dist/actions/list-contacts.d.mts +5 -5
- package/dist/actions/list-contacts.mjs +5 -5
- package/dist/actions/list-contacts.mjs.map +1 -1
- package/dist/actions/list-custom-fields.cjs +2 -2
- package/dist/actions/list-custom-fields.cjs.map +1 -1
- package/dist/actions/list-custom-fields.d.cts +2 -2
- package/dist/actions/list-custom-fields.d.mts +2 -2
- package/dist/actions/list-custom-fields.mjs +2 -2
- package/dist/actions/list-custom-fields.mjs.map +1 -1
- package/dist/actions/list-lists.cjs +2 -2
- package/dist/actions/list-lists.cjs.map +1 -1
- package/dist/actions/list-lists.d.cts +2 -2
- package/dist/actions/list-lists.d.mts +2 -2
- package/dist/actions/list-lists.mjs +2 -2
- package/dist/actions/list-lists.mjs.map +1 -1
- package/dist/actions/list-media.cjs +2 -2
- package/dist/actions/list-media.cjs.map +1 -1
- package/dist/actions/list-media.d.cts +2 -2
- package/dist/actions/list-media.d.mts +2 -2
- package/dist/actions/list-media.mjs +2 -2
- package/dist/actions/list-media.mjs.map +1 -1
- package/dist/actions/list-reports.cjs +2 -2
- package/dist/actions/list-reports.cjs.map +1 -1
- package/dist/actions/list-reports.d.cts +2 -2
- package/dist/actions/list-reports.d.mts +2 -2
- package/dist/actions/list-reports.mjs +2 -2
- package/dist/actions/list-reports.mjs.map +1 -1
- package/dist/actions/list-roles.cjs +3 -3
- package/dist/actions/list-roles.cjs.map +1 -1
- package/dist/actions/list-roles.d.cts +3 -3
- package/dist/actions/list-roles.d.mts +3 -3
- package/dist/actions/list-roles.mjs +3 -3
- package/dist/actions/list-roles.mjs.map +1 -1
- package/dist/actions/list-tags.cjs +2 -2
- package/dist/actions/list-tags.cjs.map +1 -1
- package/dist/actions/list-tags.d.cts +2 -2
- package/dist/actions/list-tags.d.mts +2 -2
- package/dist/actions/list-tags.mjs +2 -2
- package/dist/actions/list-tags.mjs.map +1 -1
- package/dist/actions/list-templates.cjs +6 -6
- package/dist/actions/list-templates.cjs.map +1 -1
- package/dist/actions/list-templates.d.cts +8 -8
- package/dist/actions/list-templates.d.mts +8 -8
- package/dist/actions/list-templates.mjs +6 -6
- package/dist/actions/list-templates.mjs.map +1 -1
- package/dist/actions/list-tickets.cjs +5 -5
- package/dist/actions/list-tickets.cjs.map +1 -1
- package/dist/actions/list-tickets.d.cts +6 -6
- package/dist/actions/list-tickets.d.mts +6 -6
- package/dist/actions/list-tickets.mjs +5 -5
- package/dist/actions/list-tickets.mjs.map +1 -1
- package/dist/actions/remove-all-list-contacts.cjs +1 -1
- package/dist/actions/remove-all-list-contacts.cjs.map +1 -1
- package/dist/actions/remove-all-list-contacts.d.cts +1 -1
- package/dist/actions/remove-all-list-contacts.d.mts +1 -1
- package/dist/actions/remove-all-list-contacts.mjs +1 -1
- package/dist/actions/remove-all-list-contacts.mjs.map +1 -1
- package/dist/actions/remove-contact-operator.cjs +1 -1
- package/dist/actions/remove-contact-operator.cjs.map +1 -1
- package/dist/actions/remove-contact-operator.d.cts +1 -1
- package/dist/actions/remove-contact-operator.d.mts +1 -1
- package/dist/actions/remove-contact-operator.mjs +1 -1
- package/dist/actions/remove-contact-operator.mjs.map +1 -1
- package/dist/actions/remove-list-contacts.cjs +1 -1
- package/dist/actions/remove-list-contacts.cjs.map +1 -1
- package/dist/actions/remove-list-contacts.d.cts +1 -1
- package/dist/actions/remove-list-contacts.d.mts +1 -1
- package/dist/actions/remove-list-contacts.mjs +1 -1
- package/dist/actions/remove-list-contacts.mjs.map +1 -1
- package/dist/actions/resend-invitation.cjs +1 -1
- package/dist/actions/resend-invitation.cjs.map +1 -1
- package/dist/actions/resend-invitation.d.cts +1 -1
- package/dist/actions/resend-invitation.d.mts +1 -1
- package/dist/actions/resend-invitation.mjs +1 -1
- package/dist/actions/resend-invitation.mjs.map +1 -1
- package/dist/actions/retrieve-account.cjs +1 -1
- package/dist/actions/retrieve-account.cjs.map +1 -1
- package/dist/actions/retrieve-account.d.cts +1 -1
- package/dist/actions/retrieve-account.d.mts +1 -1
- package/dist/actions/retrieve-account.mjs +1 -1
- package/dist/actions/retrieve-account.mjs.map +1 -1
- package/dist/actions/retrieve-automation.cjs +2 -2
- package/dist/actions/retrieve-automation.cjs.map +1 -1
- package/dist/actions/retrieve-automation.d.cts +2 -2
- package/dist/actions/retrieve-automation.d.mts +2 -2
- package/dist/actions/retrieve-automation.mjs +2 -2
- package/dist/actions/retrieve-automation.mjs.map +1 -1
- package/dist/actions/retrieve-contact.cjs +6 -6
- package/dist/actions/retrieve-contact.cjs.map +1 -1
- package/dist/actions/retrieve-contact.d.cts +6 -6
- package/dist/actions/retrieve-contact.d.mts +6 -6
- package/dist/actions/retrieve-contact.mjs +6 -6
- package/dist/actions/retrieve-contact.mjs.map +1 -1
- package/dist/actions/retrieve-custom-field.cjs +1 -1
- package/dist/actions/retrieve-custom-field.cjs.map +1 -1
- package/dist/actions/retrieve-custom-field.d.cts +1 -1
- package/dist/actions/retrieve-custom-field.d.mts +1 -1
- package/dist/actions/retrieve-custom-field.mjs +1 -1
- package/dist/actions/retrieve-custom-field.mjs.map +1 -1
- package/dist/actions/retrieve-list.cjs +1 -1
- package/dist/actions/retrieve-list.cjs.map +1 -1
- package/dist/actions/retrieve-list.d.cts +1 -1
- package/dist/actions/retrieve-list.d.mts +1 -1
- package/dist/actions/retrieve-list.mjs +1 -1
- package/dist/actions/retrieve-list.mjs.map +1 -1
- package/dist/actions/retrieve-media.cjs +1 -1
- package/dist/actions/retrieve-media.cjs.map +1 -1
- package/dist/actions/retrieve-media.d.cts +1 -1
- package/dist/actions/retrieve-media.d.mts +1 -1
- package/dist/actions/retrieve-media.mjs +1 -1
- package/dist/actions/retrieve-media.mjs.map +1 -1
- package/dist/actions/retrieve-role.cjs +2 -2
- package/dist/actions/retrieve-role.cjs.map +1 -1
- package/dist/actions/retrieve-role.d.cts +2 -2
- package/dist/actions/retrieve-role.d.mts +2 -2
- package/dist/actions/retrieve-role.mjs +2 -2
- package/dist/actions/retrieve-role.mjs.map +1 -1
- package/dist/actions/retrieve-tag.cjs +1 -1
- package/dist/actions/retrieve-tag.cjs.map +1 -1
- package/dist/actions/retrieve-tag.d.cts +1 -1
- package/dist/actions/retrieve-tag.d.mts +1 -1
- package/dist/actions/retrieve-tag.mjs +1 -1
- package/dist/actions/retrieve-tag.mjs.map +1 -1
- package/dist/actions/retrieve-template.cjs +5 -5
- package/dist/actions/retrieve-template.cjs.map +1 -1
- package/dist/actions/retrieve-template.d.cts +7 -7
- package/dist/actions/retrieve-template.d.mts +7 -7
- package/dist/actions/retrieve-template.mjs +5 -5
- package/dist/actions/retrieve-template.mjs.map +1 -1
- package/dist/actions/revert-template-to-draft.cjs +1 -1
- package/dist/actions/revert-template-to-draft.cjs.map +1 -1
- package/dist/actions/revert-template-to-draft.d.cts +1 -1
- package/dist/actions/revert-template-to-draft.d.mts +1 -1
- package/dist/actions/revert-template-to-draft.mjs +1 -1
- package/dist/actions/revert-template-to-draft.mjs.map +1 -1
- package/dist/actions/sync-contacts-bulk.cjs +5 -5
- package/dist/actions/sync-contacts-bulk.cjs.map +1 -1
- package/dist/actions/sync-contacts-bulk.d.cts +7 -6
- package/dist/actions/sync-contacts-bulk.d.cts.map +1 -1
- package/dist/actions/sync-contacts-bulk.d.mts +7 -6
- package/dist/actions/sync-contacts-bulk.d.mts.map +1 -1
- package/dist/actions/sync-contacts-bulk.mjs +5 -5
- package/dist/actions/sync-contacts-bulk.mjs.map +1 -1
- package/dist/actions/sync-list-contacts.cjs +3 -3
- package/dist/actions/sync-list-contacts.cjs.map +1 -1
- package/dist/actions/sync-list-contacts.d.cts +6 -5
- package/dist/actions/sync-list-contacts.d.cts.map +1 -1
- package/dist/actions/sync-list-contacts.d.mts +6 -5
- package/dist/actions/sync-list-contacts.d.mts.map +1 -1
- package/dist/actions/sync-list-contacts.mjs +3 -3
- package/dist/actions/sync-list-contacts.mjs.map +1 -1
- package/dist/actions/update-campaign.cjs +1 -1
- package/dist/actions/update-campaign.cjs.map +1 -1
- package/dist/actions/update-campaign.d.cts +1 -1
- package/dist/actions/update-campaign.d.mts +1 -1
- package/dist/actions/update-campaign.mjs +1 -1
- package/dist/actions/update-campaign.mjs.map +1 -1
- package/dist/actions/update-contact.cjs +2 -2
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +3 -3
- package/dist/actions/update-contact.d.mts +3 -3
- package/dist/actions/update-contact.mjs +2 -2
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/actions/update-custom-field.cjs +1 -1
- package/dist/actions/update-custom-field.cjs.map +1 -1
- package/dist/actions/update-custom-field.d.cts +1 -1
- package/dist/actions/update-custom-field.d.mts +1 -1
- package/dist/actions/update-custom-field.mjs +1 -1
- package/dist/actions/update-custom-field.mjs.map +1 -1
- package/dist/actions/update-invitation-role.cjs +1 -1
- package/dist/actions/update-invitation-role.cjs.map +1 -1
- package/dist/actions/update-invitation-role.d.cts +1 -1
- package/dist/actions/update-invitation-role.d.mts +1 -1
- package/dist/actions/update-invitation-role.mjs +1 -1
- package/dist/actions/update-invitation-role.mjs.map +1 -1
- package/dist/actions/update-media.cjs +1 -1
- package/dist/actions/update-media.cjs.map +1 -1
- package/dist/actions/update-media.d.cts +1 -1
- package/dist/actions/update-media.d.mts +1 -1
- package/dist/actions/update-media.mjs +1 -1
- package/dist/actions/update-media.mjs.map +1 -1
- package/dist/actions/update-role.cjs +1 -1
- package/dist/actions/update-role.cjs.map +1 -1
- package/dist/actions/update-role.d.cts +1 -1
- package/dist/actions/update-role.d.mts +1 -1
- package/dist/actions/update-role.mjs +1 -1
- package/dist/actions/update-role.mjs.map +1 -1
- package/dist/actions/update-template.cjs +8 -8
- package/dist/actions/update-template.cjs.map +1 -1
- package/dist/actions/update-template.d.cts +10 -8
- package/dist/actions/update-template.d.mts +10 -8
- package/dist/actions/update-template.mjs +8 -8
- package/dist/actions/update-template.mjs.map +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ const SpokiListAutomations_WebhookSetSchema = z.object({
|
|
|
31
31
|
uuid: z.string().describe("Webhook identifier UUID").nullable(),
|
|
32
32
|
secret: z.string().describe("Webhook secret token").nullable(),
|
|
33
33
|
is_active: z.boolean().describe("Whether webhook is active").nullable()
|
|
34
|
-
});
|
|
34
|
+
}).passthrough();
|
|
35
35
|
const SpokiListAutomations_AutomationSummarySchema = z.object({
|
|
36
36
|
id: z.number().int().describe("Unique automation ID").nullable(),
|
|
37
37
|
name: z.string().describe("Automation name").nullable(),
|
|
@@ -43,7 +43,7 @@ const SpokiListAutomations_AutomationSummarySchema = z.object({
|
|
|
43
43
|
updated_datetime: z.string().describe("Last update timestamp").nullable(),
|
|
44
44
|
automation_groups: z.array(z.unknown()).describe("Associated automation groups").nullable().optional(),
|
|
45
45
|
first_message_text: z.string().describe("Initial message text of the automation").nullable().optional()
|
|
46
|
-
});
|
|
46
|
+
}).passthrough();
|
|
47
47
|
const spokiListAutomations = action("SPOKI_LIST_AUTOMATIONS", {
|
|
48
48
|
slug: "spoki-list-automations",
|
|
49
49
|
name: "List Automations",
|
|
@@ -54,7 +54,7 @@ const spokiListAutomations = action("SPOKI_LIST_AUTOMATIONS", {
|
|
|
54
54
|
count: z.number().int().describe("Total number of automations").nullable(),
|
|
55
55
|
results: z.array(SpokiListAutomations_AutomationSummarySchema).describe("List of automation objects"),
|
|
56
56
|
previous: z.string().describe("URL for previous page of results").nullable().optional()
|
|
57
|
-
})
|
|
57
|
+
}).passthrough()
|
|
58
58
|
});
|
|
59
59
|
//#endregion
|
|
60
60
|
export { spokiListAutomations };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-automations.mjs","names":[],"sources":["../../src/actions/list-automations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListAutomationsInput = z.object({\n search: z.string().describe(\"Search automations by name or webhook link\").optional(),\n is_active: z.boolean().describe(\"Filter by active (true) or inactive (false) automations\").optional(),\n webhook_platform: z.enum([\"Api\", \"Active Campaign\", \"Woocommerce\", \"Magento\", \"Prestashop\", \"Shopify\", \"Zapier\", \"Qapla'\", \"BrainLead\", \"HubSpot\", \"Klaviyo\", \"Zoho\", \"Sendinblue\", \"WPNotif\", \"Connectif\", \"IFTTT\", \"Pipedrive\", \"Meta\", \"Zendesk\"]).describe(\"Filter automations by webhook integration platform\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering automations.\");\nconst SpokiListAutomations_WebhookSetSchema = z.object({\n link: z.string().describe(\"Webhook callback URL\").nullable(),\n uuid: z.string().describe(\"Webhook identifier UUID\").nullable(),\n secret: z.string().describe(\"Webhook secret token\").nullable(),\n is_active: z.boolean().describe(\"Whether webhook is active\").nullable(),\n});\nconst SpokiListAutomations_AutomationSummarySchema = z.object({\n id: z.number().int().describe(\"Unique automation ID\").nullable(),\n name: z.string().describe(\"Automation name\").nullable(),\n is_active: z.boolean().describe(\"Automation active status\").nullable(),\n is_favorite: z.boolean().describe(\"Whether automation is marked as favorite\").nullable(),\n webhook_set: z.array(SpokiListAutomations_WebhookSetSchema).describe(\"List of webhook endpoints associated\"),\n updated_user: z.string().describe(\"User who last updated the automation\").nullable().optional(),\n created_datetime: z.string().describe(\"Creation timestamp\").nullable(),\n updated_datetime: z.string().describe(\"Last update timestamp\").nullable(),\n automation_groups: z.array(z.unknown()).describe(\"Associated automation groups\").nullable().optional(),\n first_message_text: z.string().describe(\"Initial message text of the automation\").nullable().optional(),\n});\nexport const SpokiListAutomationsOutput = z.object({\n next: z.string().describe(\"URL for next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of automations\").nullable(),\n results: z.array(SpokiListAutomations_AutomationSummarySchema).describe(\"List of automation objects\"),\n previous: z.string().describe(\"URL for previous page of results\").nullable().optional(),\n});\n\nexport const spokiListAutomations = action(\"SPOKI_LIST_AUTOMATIONS\", {\n slug: \"spoki-list-automations\",\n name: \"List Automations\",\n description: \"Tool to list, search, and filter automations. Use after authenticating to retrieve available automations and apply optional search or platform filters.\",\n input: SpokiListAutomationsInput,\n output: SpokiListAutomationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACpG,kBAAkB,EAAE,KAAK;EAAC;EAAO;EAAmB;EAAe;EAAW;EAAc;EAAW;EAAU;EAAU;EAAa;EAAW;EAAW;EAAQ;EAAc;EAAW;EAAa;EAAS;EAAa;EAAQ;CAAS,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAChU,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC7D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACxE,CAAC;
|
|
1
|
+
{"version":3,"file":"list-automations.mjs","names":[],"sources":["../../src/actions/list-automations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListAutomationsInput = z.object({\n search: z.string().describe(\"Search automations by name or webhook link\").optional(),\n is_active: z.boolean().describe(\"Filter by active (true) or inactive (false) automations\").optional(),\n webhook_platform: z.enum([\"Api\", \"Active Campaign\", \"Woocommerce\", \"Magento\", \"Prestashop\", \"Shopify\", \"Zapier\", \"Qapla'\", \"BrainLead\", \"HubSpot\", \"Klaviyo\", \"Zoho\", \"Sendinblue\", \"WPNotif\", \"Connectif\", \"IFTTT\", \"Pipedrive\", \"Meta\", \"Zendesk\"]).describe(\"Filter automations by webhook integration platform\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering automations.\");\nconst SpokiListAutomations_WebhookSetSchema = z.object({\n link: z.string().describe(\"Webhook callback URL\").nullable(),\n uuid: z.string().describe(\"Webhook identifier UUID\").nullable(),\n secret: z.string().describe(\"Webhook secret token\").nullable(),\n is_active: z.boolean().describe(\"Whether webhook is active\").nullable(),\n}).passthrough();\nconst SpokiListAutomations_AutomationSummarySchema = z.object({\n id: z.number().int().describe(\"Unique automation ID\").nullable(),\n name: z.string().describe(\"Automation name\").nullable(),\n is_active: z.boolean().describe(\"Automation active status\").nullable(),\n is_favorite: z.boolean().describe(\"Whether automation is marked as favorite\").nullable(),\n webhook_set: z.array(SpokiListAutomations_WebhookSetSchema).describe(\"List of webhook endpoints associated\"),\n updated_user: z.string().describe(\"User who last updated the automation\").nullable().optional(),\n created_datetime: z.string().describe(\"Creation timestamp\").nullable(),\n updated_datetime: z.string().describe(\"Last update timestamp\").nullable(),\n automation_groups: z.array(z.unknown()).describe(\"Associated automation groups\").nullable().optional(),\n first_message_text: z.string().describe(\"Initial message text of the automation\").nullable().optional(),\n}).passthrough();\nexport const SpokiListAutomationsOutput = z.object({\n next: z.string().describe(\"URL for next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of automations\").nullable(),\n results: z.array(SpokiListAutomations_AutomationSummarySchema).describe(\"List of automation objects\"),\n previous: z.string().describe(\"URL for previous page of results\").nullable().optional(),\n}).passthrough();\n\nexport const spokiListAutomations = action(\"SPOKI_LIST_AUTOMATIONS\", {\n slug: \"spoki-list-automations\",\n name: \"List Automations\",\n description: \"Tool to list, search, and filter automations. Use after authenticating to retrieve available automations and apply optional search or platform filters.\",\n input: SpokiListAutomationsInput,\n output: SpokiListAutomationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,QAAQ,EAAE,OAAO,CAAC,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SAAS;CACrE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACxE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY;AAQf,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACzE,SAAS,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,4BAA4B;EACpG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -13,11 +13,11 @@ const SpokiListCampaigns_ListResourceSchema = zod.z.object({
|
|
|
13
13
|
color: zod.z.string().describe("List display color, if any.").nullable().optional(),
|
|
14
14
|
contacts_count: zod.z.number().int().describe("Number of contacts in this list.").nullable(),
|
|
15
15
|
created_datetime: zod.z.string().describe("When this list was created (ISO 8601).").nullable()
|
|
16
|
-
});
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const SpokiListCampaigns_AutomationRefSchema = zod.z.object({
|
|
18
18
|
id: zod.z.number().int().describe("Automation ID associated with the campaign.").nullable(),
|
|
19
19
|
name: zod.z.string().describe("Automation name.").nullable()
|
|
20
|
-
});
|
|
20
|
+
}).passthrough();
|
|
21
21
|
const SpokiListCampaigns_CampaignItemSchema = zod.z.object({
|
|
22
22
|
id: zod.z.number().int().describe("Campaign unique ID.").nullable(),
|
|
23
23
|
name: zod.z.string().describe("Campaign name.").nullable(),
|
|
@@ -37,13 +37,13 @@ const SpokiListCampaigns_CampaignItemSchema = zod.z.object({
|
|
|
37
37
|
automation_completed: zod.z.number().int().nullable(),
|
|
38
38
|
automation_valid_failed: zod.z.number().int().nullable(),
|
|
39
39
|
automation_interacted_with: zod.z.number().int().nullable()
|
|
40
|
-
}).describe("A detailed campaign record returned by the list endpoint.");
|
|
40
|
+
}).passthrough().describe("A detailed campaign record returned by the list endpoint.");
|
|
41
41
|
const SpokiListCampaignsOutput = zod.z.object({
|
|
42
42
|
next: zod.z.string().describe("URL to next page of results, if any.").nullable().optional(),
|
|
43
43
|
count: zod.z.number().int().describe("Total count of matched campaigns.").nullable(),
|
|
44
44
|
results: zod.z.array(SpokiListCampaigns_CampaignItemSchema).describe("List of campaign records."),
|
|
45
45
|
previous: zod.z.string().describe("URL to previous page of results, if any.").nullable().optional()
|
|
46
|
-
});
|
|
46
|
+
}).passthrough();
|
|
47
47
|
const spokiListCampaigns = require_action.action("SPOKI_LIST_CAMPAIGNS", {
|
|
48
48
|
slug: "spoki-list-campaigns",
|
|
49
49
|
name: "List campaigns",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-campaigns.cjs","names":["z","action"],"sources":["../../src/actions/list-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListCampaignsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n scheduled_datetime_gte: z.string().describe(\"Only include campaigns scheduled on or after this timestamp (ISO 8601).\").optional(),\n scheduled_datetime_lte: z.string().describe(\"Only include campaigns scheduled on or before this timestamp (ISO 8601).\").optional(),\n}).describe(\"Query parameters for listing, searching, and filtering campaigns.\\nUse ISO 8601 strings for date constraints.\");\nconst SpokiListCampaigns_ListResourceSchema = z.object({\n id: z.number().int().describe(\"List ID targeted by the campaign.\").nullable(),\n name: z.string().describe(\"List name.\").nullable(),\n color: z.string().describe(\"List display color, if any.\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in this list.\").nullable(),\n created_datetime: z.string().describe(\"When this list was created (ISO 8601).\").nullable(),\n});\nconst SpokiListCampaigns_AutomationRefSchema = z.object({\n id: z.number().int().describe(\"Automation ID associated with the campaign.\").nullable(),\n name: z.string().describe(\"Automation name.\").nullable(),\n});\nconst SpokiListCampaigns_CampaignItemSchema = z.object({\n id: z.number().int().describe(\"Campaign unique ID.\").nullable(),\n name: z.string().describe(\"Campaign name.\").nullable(),\n lists: z.array(SpokiListCampaigns_ListResourceSchema).describe(\"Lists associated with the campaign.\"),\n status: z.string().describe(\"Campaign status: Draft, Scheduled, Processing, or Completed.\").nullable(),\n automation: SpokiListCampaigns_AutomationRefSchema.nullable(),\n messages_read: z.number().int().nullable(),\n messages_sent: z.number().int().nullable(),\n contacts_count: z.number().int().describe(\"Total number of contacts.\").nullable(),\n other_contacts: z.array(z.number().int()).describe(\"Additional contact IDs if specified.\"),\n messages_failed: z.number().int().nullable(),\n created_datetime: z.string().describe(\"When this campaign was created (ISO 8601).\").nullable(),\n automation_failed: z.number().int().nullable(),\n messages_received: z.number().int().nullable(),\n automation_started: z.number().int().nullable(),\n scheduled_datetime: z.string().describe(\"Datetime when campaign is scheduled (ISO 8601).\").nullable(),\n automation_completed: z.number().int().nullable(),\n automation_valid_failed: z.number().int().nullable(),\n automation_interacted_with: z.number().int().nullable(),\n}).describe(\"A detailed campaign record returned by the list endpoint.\");\nexport const SpokiListCampaignsOutput = z.object({\n next: z.string().describe(\"URL to next page of results, if any.\").nullable().optional(),\n count: z.number().int().describe(\"Total count of matched campaigns.\").nullable(),\n results: z.array(SpokiListCampaigns_CampaignItemSchema).describe(\"List of campaign records.\"),\n previous: z.string().describe(\"URL to previous page of results, if any.\").nullable().optional(),\n});\n\nexport const spokiListCampaigns = action(\"SPOKI_LIST_CAMPAIGNS\", {\n slug: \"spoki-list-campaigns\",\n name: \"List campaigns\",\n description: \"Tool to list, search, and filter campaigns. Use when you need to retrieve campaigns optionally filtered by scheduled datetime.\",\n input: SpokiListCampaignsInput,\n output: SpokiListCampaignsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAChI,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,+GAA+G;AAC3H,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC3F,CAAC;
|
|
1
|
+
{"version":3,"file":"list-campaigns.cjs","names":["z","action"],"sources":["../../src/actions/list-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListCampaignsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n scheduled_datetime_gte: z.string().describe(\"Only include campaigns scheduled on or after this timestamp (ISO 8601).\").optional(),\n scheduled_datetime_lte: z.string().describe(\"Only include campaigns scheduled on or before this timestamp (ISO 8601).\").optional(),\n}).describe(\"Query parameters for listing, searching, and filtering campaigns.\\nUse ISO 8601 strings for date constraints.\");\nconst SpokiListCampaigns_ListResourceSchema = z.object({\n id: z.number().int().describe(\"List ID targeted by the campaign.\").nullable(),\n name: z.string().describe(\"List name.\").nullable(),\n color: z.string().describe(\"List display color, if any.\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in this list.\").nullable(),\n created_datetime: z.string().describe(\"When this list was created (ISO 8601).\").nullable(),\n}).passthrough();\nconst SpokiListCampaigns_AutomationRefSchema = z.object({\n id: z.number().int().describe(\"Automation ID associated with the campaign.\").nullable(),\n name: z.string().describe(\"Automation name.\").nullable(),\n}).passthrough();\nconst SpokiListCampaigns_CampaignItemSchema = z.object({\n id: z.number().int().describe(\"Campaign unique ID.\").nullable(),\n name: z.string().describe(\"Campaign name.\").nullable(),\n lists: z.array(SpokiListCampaigns_ListResourceSchema).describe(\"Lists associated with the campaign.\"),\n status: z.string().describe(\"Campaign status: Draft, Scheduled, Processing, or Completed.\").nullable(),\n automation: SpokiListCampaigns_AutomationRefSchema.nullable(),\n messages_read: z.number().int().nullable(),\n messages_sent: z.number().int().nullable(),\n contacts_count: z.number().int().describe(\"Total number of contacts.\").nullable(),\n other_contacts: z.array(z.number().int()).describe(\"Additional contact IDs if specified.\"),\n messages_failed: z.number().int().nullable(),\n created_datetime: z.string().describe(\"When this campaign was created (ISO 8601).\").nullable(),\n automation_failed: z.number().int().nullable(),\n messages_received: z.number().int().nullable(),\n automation_started: z.number().int().nullable(),\n scheduled_datetime: z.string().describe(\"Datetime when campaign is scheduled (ISO 8601).\").nullable(),\n automation_completed: z.number().int().nullable(),\n automation_valid_failed: z.number().int().nullable(),\n automation_interacted_with: z.number().int().nullable(),\n}).passthrough().describe(\"A detailed campaign record returned by the list endpoint.\");\nexport const SpokiListCampaignsOutput = z.object({\n next: z.string().describe(\"URL to next page of results, if any.\").nullable().optional(),\n count: z.number().int().describe(\"Total count of matched campaigns.\").nullable(),\n results: z.array(SpokiListCampaigns_CampaignItemSchema).describe(\"List of campaign records.\"),\n previous: z.string().describe(\"URL to previous page of results, if any.\").nullable().optional(),\n}).passthrough();\n\nexport const spokiListCampaigns = action(\"SPOKI_LIST_CAMPAIGNS\", {\n slug: \"spoki-list-campaigns\",\n name: \"List campaigns\",\n description: \"Tool to list, search, and filter campaigns. Use when you need to retrieve campaigns optionally filtered by scheduled datetime.\",\n input: SpokiListCampaignsInput,\n output: SpokiListCampaignsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAChI,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,+GAA+G;AAC3H,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,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AAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -19,12 +19,12 @@ declare const SpokiListCampaignsOutput: z.ZodObject<{
|
|
|
19
19
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
contacts_count: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
created_datetime: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
status: z.ZodNullable<z.ZodString>;
|
|
24
24
|
automation: z.ZodNullable<z.ZodObject<{
|
|
25
25
|
id: z.ZodNullable<z.ZodNumber>;
|
|
26
26
|
name: z.ZodNullable<z.ZodString>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
28
|
messages_read: z.ZodNullable<z.ZodNumber>;
|
|
29
29
|
messages_sent: z.ZodNullable<z.ZodNumber>;
|
|
30
30
|
contacts_count: z.ZodNullable<z.ZodNumber>;
|
|
@@ -38,9 +38,9 @@ declare const SpokiListCampaignsOutput: z.ZodObject<{
|
|
|
38
38
|
automation_completed: z.ZodNullable<z.ZodNumber>;
|
|
39
39
|
automation_valid_failed: z.ZodNullable<z.ZodNumber>;
|
|
40
40
|
automation_interacted_with: z.ZodNullable<z.ZodNumber>;
|
|
41
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
42
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>;
|
|
44
44
|
declare const spokiListCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
45
45
|
page?: number | undefined;
|
|
46
46
|
per_page?: number | undefined;
|
|
@@ -19,12 +19,12 @@ declare const SpokiListCampaignsOutput: z.ZodObject<{
|
|
|
19
19
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
contacts_count: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
created_datetime: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
status: z.ZodNullable<z.ZodString>;
|
|
24
24
|
automation: z.ZodNullable<z.ZodObject<{
|
|
25
25
|
id: z.ZodNullable<z.ZodNumber>;
|
|
26
26
|
name: z.ZodNullable<z.ZodString>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
28
|
messages_read: z.ZodNullable<z.ZodNumber>;
|
|
29
29
|
messages_sent: z.ZodNullable<z.ZodNumber>;
|
|
30
30
|
contacts_count: z.ZodNullable<z.ZodNumber>;
|
|
@@ -38,9 +38,9 @@ declare const SpokiListCampaignsOutput: z.ZodObject<{
|
|
|
38
38
|
automation_completed: z.ZodNullable<z.ZodNumber>;
|
|
39
39
|
automation_valid_failed: z.ZodNullable<z.ZodNumber>;
|
|
40
40
|
automation_interacted_with: z.ZodNullable<z.ZodNumber>;
|
|
41
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>>;
|
|
42
42
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>;
|
|
44
44
|
declare const spokiListCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
45
45
|
page?: number | undefined;
|
|
46
46
|
per_page?: number | undefined;
|
|
@@ -13,11 +13,11 @@ const SpokiListCampaigns_ListResourceSchema = z.object({
|
|
|
13
13
|
color: z.string().describe("List display color, if any.").nullable().optional(),
|
|
14
14
|
contacts_count: z.number().int().describe("Number of contacts in this list.").nullable(),
|
|
15
15
|
created_datetime: z.string().describe("When this list was created (ISO 8601).").nullable()
|
|
16
|
-
});
|
|
16
|
+
}).passthrough();
|
|
17
17
|
const SpokiListCampaigns_AutomationRefSchema = z.object({
|
|
18
18
|
id: z.number().int().describe("Automation ID associated with the campaign.").nullable(),
|
|
19
19
|
name: z.string().describe("Automation name.").nullable()
|
|
20
|
-
});
|
|
20
|
+
}).passthrough();
|
|
21
21
|
const SpokiListCampaigns_CampaignItemSchema = z.object({
|
|
22
22
|
id: z.number().int().describe("Campaign unique ID.").nullable(),
|
|
23
23
|
name: z.string().describe("Campaign name.").nullable(),
|
|
@@ -37,7 +37,7 @@ const SpokiListCampaigns_CampaignItemSchema = z.object({
|
|
|
37
37
|
automation_completed: z.number().int().nullable(),
|
|
38
38
|
automation_valid_failed: z.number().int().nullable(),
|
|
39
39
|
automation_interacted_with: z.number().int().nullable()
|
|
40
|
-
}).describe("A detailed campaign record returned by the list endpoint.");
|
|
40
|
+
}).passthrough().describe("A detailed campaign record returned by the list endpoint.");
|
|
41
41
|
const spokiListCampaigns = action("SPOKI_LIST_CAMPAIGNS", {
|
|
42
42
|
slug: "spoki-list-campaigns",
|
|
43
43
|
name: "List campaigns",
|
|
@@ -48,7 +48,7 @@ const spokiListCampaigns = action("SPOKI_LIST_CAMPAIGNS", {
|
|
|
48
48
|
count: z.number().int().describe("Total count of matched campaigns.").nullable(),
|
|
49
49
|
results: z.array(SpokiListCampaigns_CampaignItemSchema).describe("List of campaign records."),
|
|
50
50
|
previous: z.string().describe("URL to previous page of results, if any.").nullable().optional()
|
|
51
|
-
})
|
|
51
|
+
}).passthrough()
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
54
54
|
export { spokiListCampaigns };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-campaigns.mjs","names":[],"sources":["../../src/actions/list-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListCampaignsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n scheduled_datetime_gte: z.string().describe(\"Only include campaigns scheduled on or after this timestamp (ISO 8601).\").optional(),\n scheduled_datetime_lte: z.string().describe(\"Only include campaigns scheduled on or before this timestamp (ISO 8601).\").optional(),\n}).describe(\"Query parameters for listing, searching, and filtering campaigns.\\nUse ISO 8601 strings for date constraints.\");\nconst SpokiListCampaigns_ListResourceSchema = z.object({\n id: z.number().int().describe(\"List ID targeted by the campaign.\").nullable(),\n name: z.string().describe(\"List name.\").nullable(),\n color: z.string().describe(\"List display color, if any.\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in this list.\").nullable(),\n created_datetime: z.string().describe(\"When this list was created (ISO 8601).\").nullable(),\n});\nconst SpokiListCampaigns_AutomationRefSchema = z.object({\n id: z.number().int().describe(\"Automation ID associated with the campaign.\").nullable(),\n name: z.string().describe(\"Automation name.\").nullable(),\n});\nconst SpokiListCampaigns_CampaignItemSchema = z.object({\n id: z.number().int().describe(\"Campaign unique ID.\").nullable(),\n name: z.string().describe(\"Campaign name.\").nullable(),\n lists: z.array(SpokiListCampaigns_ListResourceSchema).describe(\"Lists associated with the campaign.\"),\n status: z.string().describe(\"Campaign status: Draft, Scheduled, Processing, or Completed.\").nullable(),\n automation: SpokiListCampaigns_AutomationRefSchema.nullable(),\n messages_read: z.number().int().nullable(),\n messages_sent: z.number().int().nullable(),\n contacts_count: z.number().int().describe(\"Total number of contacts.\").nullable(),\n other_contacts: z.array(z.number().int()).describe(\"Additional contact IDs if specified.\"),\n messages_failed: z.number().int().nullable(),\n created_datetime: z.string().describe(\"When this campaign was created (ISO 8601).\").nullable(),\n automation_failed: z.number().int().nullable(),\n messages_received: z.number().int().nullable(),\n automation_started: z.number().int().nullable(),\n scheduled_datetime: z.string().describe(\"Datetime when campaign is scheduled (ISO 8601).\").nullable(),\n automation_completed: z.number().int().nullable(),\n automation_valid_failed: z.number().int().nullable(),\n automation_interacted_with: z.number().int().nullable(),\n}).describe(\"A detailed campaign record returned by the list endpoint.\");\nexport const SpokiListCampaignsOutput = z.object({\n next: z.string().describe(\"URL to next page of results, if any.\").nullable().optional(),\n count: z.number().int().describe(\"Total count of matched campaigns.\").nullable(),\n results: z.array(SpokiListCampaigns_CampaignItemSchema).describe(\"List of campaign records.\"),\n previous: z.string().describe(\"URL to previous page of results, if any.\").nullable().optional(),\n});\n\nexport const spokiListCampaigns = action(\"SPOKI_LIST_CAMPAIGNS\", {\n slug: \"spoki-list-campaigns\",\n name: \"List campaigns\",\n description: \"Tool to list, search, and filter campaigns. Use when you need to retrieve campaigns optionally filtered by scheduled datetime.\",\n input: SpokiListCampaignsInput,\n output: SpokiListCampaignsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAChI,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,+GAA+G;AAC3H,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC3F,CAAC;
|
|
1
|
+
{"version":3,"file":"list-campaigns.mjs","names":[],"sources":["../../src/actions/list-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListCampaignsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n scheduled_datetime_gte: z.string().describe(\"Only include campaigns scheduled on or after this timestamp (ISO 8601).\").optional(),\n scheduled_datetime_lte: z.string().describe(\"Only include campaigns scheduled on or before this timestamp (ISO 8601).\").optional(),\n}).describe(\"Query parameters for listing, searching, and filtering campaigns.\\nUse ISO 8601 strings for date constraints.\");\nconst SpokiListCampaigns_ListResourceSchema = z.object({\n id: z.number().int().describe(\"List ID targeted by the campaign.\").nullable(),\n name: z.string().describe(\"List name.\").nullable(),\n color: z.string().describe(\"List display color, if any.\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in this list.\").nullable(),\n created_datetime: z.string().describe(\"When this list was created (ISO 8601).\").nullable(),\n}).passthrough();\nconst SpokiListCampaigns_AutomationRefSchema = z.object({\n id: z.number().int().describe(\"Automation ID associated with the campaign.\").nullable(),\n name: z.string().describe(\"Automation name.\").nullable(),\n}).passthrough();\nconst SpokiListCampaigns_CampaignItemSchema = z.object({\n id: z.number().int().describe(\"Campaign unique ID.\").nullable(),\n name: z.string().describe(\"Campaign name.\").nullable(),\n lists: z.array(SpokiListCampaigns_ListResourceSchema).describe(\"Lists associated with the campaign.\"),\n status: z.string().describe(\"Campaign status: Draft, Scheduled, Processing, or Completed.\").nullable(),\n automation: SpokiListCampaigns_AutomationRefSchema.nullable(),\n messages_read: z.number().int().nullable(),\n messages_sent: z.number().int().nullable(),\n contacts_count: z.number().int().describe(\"Total number of contacts.\").nullable(),\n other_contacts: z.array(z.number().int()).describe(\"Additional contact IDs if specified.\"),\n messages_failed: z.number().int().nullable(),\n created_datetime: z.string().describe(\"When this campaign was created (ISO 8601).\").nullable(),\n automation_failed: z.number().int().nullable(),\n messages_received: z.number().int().nullable(),\n automation_started: z.number().int().nullable(),\n scheduled_datetime: z.string().describe(\"Datetime when campaign is scheduled (ISO 8601).\").nullable(),\n automation_completed: z.number().int().nullable(),\n automation_valid_failed: z.number().int().nullable(),\n automation_interacted_with: z.number().int().nullable(),\n}).passthrough().describe(\"A detailed campaign record returned by the list endpoint.\");\nexport const SpokiListCampaignsOutput = z.object({\n next: z.string().describe(\"URL to next page of results, if any.\").nullable().optional(),\n count: z.number().int().describe(\"Total count of matched campaigns.\").nullable(),\n results: z.array(SpokiListCampaigns_CampaignItemSchema).describe(\"List of campaign records.\"),\n previous: z.string().describe(\"URL to previous page of results, if any.\").nullable().optional(),\n}).passthrough();\n\nexport const spokiListCampaigns = action(\"SPOKI_LIST_CAMPAIGNS\", {\n slug: \"spoki-list-campaigns\",\n name: \"List campaigns\",\n description: \"Tool to list, search, and filter campaigns. Use when you need to retrieve campaigns optionally filtered by scheduled datetime.\",\n input: SpokiListCampaignsInput,\n output: SpokiListCampaignsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAChI,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,SAAS,+GAA+G;AAC3H,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,C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AAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CAC7C,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CAC7C,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CAC9C,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpG,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CAChD,yBAAyB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACnD,4BAA4B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;AACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAQrF,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC/E,SAAS,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,2BAA2B;EAC5F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -18,21 +18,21 @@ const SpokiListContacts_TagSchema = zod.z.object({
|
|
|
18
18
|
name: zod.z.string().describe("Name of the tag").nullable(),
|
|
19
19
|
color: zod.z.string().describe("Color code of the tag").nullable().optional(),
|
|
20
20
|
order: zod.z.number().int().describe("Order index of the tag").nullable()
|
|
21
|
-
});
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const SpokiListContacts_ListBaseSchema = zod.z.object({
|
|
23
23
|
id: zod.z.number().int().describe("Unique identifier of the list").nullable(),
|
|
24
24
|
name: zod.z.string().describe("Name of the list").nullable(),
|
|
25
25
|
color: zod.z.string().describe("Color code of the list").nullable().optional(),
|
|
26
26
|
contacts_count: zod.z.number().int().describe("Number of contacts in the list").nullable(),
|
|
27
27
|
created_datetime: zod.z.string().describe("Timestamp when the list was created").nullable()
|
|
28
|
-
});
|
|
28
|
+
}).passthrough();
|
|
29
29
|
const SpokiListContacts_ContactFieldSchema = zod.z.object({
|
|
30
30
|
id: zod.z.number().int().describe("Unique identifier of the contact field").nullable(),
|
|
31
31
|
field: zod.z.number().int().describe("Custom field ID").nullable(),
|
|
32
32
|
value: zod.z.string().describe("Value of the custom field").nullable(),
|
|
33
33
|
visual_code: zod.z.string().describe("Template placeholder code of the field").nullable(),
|
|
34
34
|
value_datetime: zod.z.string().describe("Datetime value of the custom field if applicable").nullable().optional()
|
|
35
|
-
});
|
|
35
|
+
}).passthrough();
|
|
36
36
|
const SpokiListContacts_ContactSchema = zod.z.object({
|
|
37
37
|
id: zod.z.number().int().describe("Unique identifier of the contact").nullable(),
|
|
38
38
|
email: zod.z.string().describe("Email address of the contact").nullable().optional(),
|
|
@@ -46,13 +46,13 @@ const SpokiListContacts_ContactSchema = zod.z.object({
|
|
|
46
46
|
contactfield_set: zod.z.array(SpokiListContacts_ContactFieldSchema).describe("List of custom fields associated with the contact"),
|
|
47
47
|
created_datetime: zod.z.string().describe("Timestamp when the contact was created").nullable(),
|
|
48
48
|
has_invalid_phone: zod.z.boolean().describe("Indicates if the phone number is invalid").nullable()
|
|
49
|
-
});
|
|
49
|
+
}).passthrough();
|
|
50
50
|
const SpokiListContactsOutput = zod.z.object({
|
|
51
51
|
next: zod.z.string().describe("URL for the next page of results").nullable().optional(),
|
|
52
52
|
count: zod.z.number().int().describe("Total number of contacts matching the filters").nullable(),
|
|
53
53
|
results: zod.z.array(SpokiListContacts_ContactSchema).describe("List of contact objects"),
|
|
54
54
|
previous: zod.z.string().describe("URL for the previous page of results").nullable().optional()
|
|
55
|
-
});
|
|
55
|
+
}).passthrough();
|
|
56
56
|
const spokiListContacts = require_action.action("SPOKI_LIST_CONTACTS", {
|
|
57
57
|
slug: "spoki-list-contacts",
|
|
58
58
|
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 SpokiListContactsInput = z.object({\n tag: z.number().int().describe(\"Filter by tag ID\").optional(),\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n email: z.string().describe(\"Filter by email (exact match)\").optional(),\n phone: z.string().describe(\"Filter by phone (exact match)\").optional(),\n search: z.string().describe(\"Search query for phone, email, first_name, last_name, language, or notes\").optional(),\n language: z.string().describe(\"Filter by language code\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n last_name: z.string().describe(\"Filter by last name\").optional(),\n first_name: z.string().describe(\"Filter by first name\").optional(),\n is_blocked: z.boolean().describe(\"Filter blocked contacts only when true\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering contacts.\");\nconst SpokiListContacts_TagSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the tag\").nullable(),\n name: z.string().describe(\"Name of the tag\").nullable(),\n color: z.string().describe(\"Color code of the tag\").nullable().optional(),\n order: z.number().int().describe(\"Order index of the tag\").nullable(),\n});\nconst SpokiListContacts_ListBaseSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the list\").nullable(),\n name: z.string().describe(\"Name of the list\").nullable(),\n color: z.string().describe(\"Color code of the list\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in the list\").nullable(),\n created_datetime: z.string().describe(\"Timestamp when the list was created\").nullable(),\n});\nconst SpokiListContacts_ContactFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact field\").nullable(),\n field: z.number().int().describe(\"Custom field ID\").nullable(),\n value: z.string().describe(\"Value of the custom field\").nullable(),\n visual_code: z.string().describe(\"Template placeholder code of the field\").nullable(),\n value_datetime: z.string().describe(\"Datetime value of the custom field if applicable\").nullable().optional(),\n});\nconst SpokiListContacts_ContactSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact\").nullable(),\n email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the contact in international format\").nullable(),\n tag_set: z.array(SpokiListContacts_TagSchema).describe(\"List of tags assigned to the contact\"),\n language: z.string().describe(\"Language code of the contact\").nullable(),\n list_set: z.array(SpokiListContacts_ListBaseSchema).describe(\"List of lists the contact belongs to\"),\n chat_link: z.string().describe(\"URL to open the chat with the contact\").nullable(),\n last_name: z.string().describe(\"Last name of the contact\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact\").nullable().optional(),\n contactfield_set: z.array(SpokiListContacts_ContactFieldSchema).describe(\"List of custom fields associated with the contact\"),\n created_datetime: z.string().describe(\"Timestamp when the contact was created\").nullable(),\n has_invalid_phone: z.boolean().describe(\"Indicates if the phone number is invalid\").nullable(),\n});\nexport const SpokiListContactsOutput = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of contacts matching the filters\").nullable(),\n results: z.array(SpokiListContacts_ContactSchema).describe(\"List of contact objects\"),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n});\n\nexport const spokiListContacts = action(\"SPOKI_LIST_CONTACTS\", {\n slug: \"spoki-list-contacts\",\n name: \"List Contacts\",\n description: \"Tool to list, search, and filter contacts. Use when you need to retrieve contacts with optional search and filters.\",\n input: SpokiListContactsInput,\n output: SpokiListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAA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z","action"],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListContactsInput = z.object({\n tag: z.number().int().describe(\"Filter by tag ID\").optional(),\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n email: z.string().describe(\"Filter by email (exact match)\").optional(),\n phone: z.string().describe(\"Filter by phone (exact match)\").optional(),\n search: z.string().describe(\"Search query for phone, email, first_name, last_name, language, or notes\").optional(),\n language: z.string().describe(\"Filter by language code\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n last_name: z.string().describe(\"Filter by last name\").optional(),\n first_name: z.string().describe(\"Filter by first name\").optional(),\n is_blocked: z.boolean().describe(\"Filter blocked contacts only when true\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering contacts.\");\nconst SpokiListContacts_TagSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the tag\").nullable(),\n name: z.string().describe(\"Name of the tag\").nullable(),\n color: z.string().describe(\"Color code of the tag\").nullable().optional(),\n order: z.number().int().describe(\"Order index of the tag\").nullable(),\n}).passthrough();\nconst SpokiListContacts_ListBaseSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the list\").nullable(),\n name: z.string().describe(\"Name of the list\").nullable(),\n color: z.string().describe(\"Color code of the list\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in the list\").nullable(),\n created_datetime: z.string().describe(\"Timestamp when the list was created\").nullable(),\n}).passthrough();\nconst SpokiListContacts_ContactFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact field\").nullable(),\n field: z.number().int().describe(\"Custom field ID\").nullable(),\n value: z.string().describe(\"Value of the custom field\").nullable(),\n visual_code: z.string().describe(\"Template placeholder code of the field\").nullable(),\n value_datetime: z.string().describe(\"Datetime value of the custom field if applicable\").nullable().optional(),\n}).passthrough();\nconst SpokiListContacts_ContactSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact\").nullable(),\n email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the contact in international format\").nullable(),\n tag_set: z.array(SpokiListContacts_TagSchema).describe(\"List of tags assigned to the contact\"),\n language: z.string().describe(\"Language code of the contact\").nullable(),\n list_set: z.array(SpokiListContacts_ListBaseSchema).describe(\"List of lists the contact belongs to\"),\n chat_link: z.string().describe(\"URL to open the chat with the contact\").nullable(),\n last_name: z.string().describe(\"Last name of the contact\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact\").nullable().optional(),\n contactfield_set: z.array(SpokiListContacts_ContactFieldSchema).describe(\"List of custom fields associated with the contact\"),\n created_datetime: z.string().describe(\"Timestamp when the contact was created\").nullable(),\n has_invalid_phone: z.boolean().describe(\"Indicates if the phone number is invalid\").nullable(),\n}).passthrough();\nexport const SpokiListContactsOutput = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of contacts matching the filters\").nullable(),\n results: z.array(SpokiListContacts_ContactSchema).describe(\"List of contact objects\"),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n}).passthrough();\n\nexport const spokiListContacts = action(\"SPOKI_LIST_CONTACTS\", {\n slug: \"spoki-list-contacts\",\n name: \"List Contacts\",\n description: \"Tool to list, search, and filter contacts. Use when you need to retrieve contacts with optional search and filters.\",\n input: SpokiListContactsInput,\n output: SpokiListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE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
name: z.ZodNullable<z.ZodString>;
|
|
26
26
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
order: z.ZodNullable<z.ZodNumber>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
29
|
language: z.ZodNullable<z.ZodString>;
|
|
30
30
|
list_set: z.ZodArray<z.ZodObject<{
|
|
31
31
|
id: z.ZodNullable<z.ZodNumber>;
|
|
@@ -33,7 +33,7 @@ declare const SpokiListContactsOutput: z.ZodObject<{
|
|
|
33
33
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
contacts_count: z.ZodNullable<z.ZodNumber>;
|
|
35
35
|
created_datetime: z.ZodNullable<z.ZodString>;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>;
|
|
37
37
|
chat_link: z.ZodNullable<z.ZodString>;
|
|
38
38
|
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -43,12 +43,12 @@ declare const SpokiListContactsOutput: z.ZodObject<{
|
|
|
43
43
|
value: z.ZodNullable<z.ZodString>;
|
|
44
44
|
visual_code: z.ZodNullable<z.ZodString>;
|
|
45
45
|
value_datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>>;
|
|
47
47
|
created_datetime: z.ZodNullable<z.ZodString>;
|
|
48
48
|
has_invalid_phone: z.ZodNullable<z.ZodBoolean>;
|
|
49
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>>;
|
|
50
50
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
-
}, z.core.$
|
|
51
|
+
}, z.core.$loose>;
|
|
52
52
|
declare const spokiListContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
53
53
|
tag?: number | undefined;
|
|
54
54
|
page?: number | undefined;
|
|
@@ -25,7 +25,7 @@ declare const SpokiListContactsOutput: z.ZodObject<{
|
|
|
25
25
|
name: z.ZodNullable<z.ZodString>;
|
|
26
26
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
order: z.ZodNullable<z.ZodNumber>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
29
|
language: z.ZodNullable<z.ZodString>;
|
|
30
30
|
list_set: z.ZodArray<z.ZodObject<{
|
|
31
31
|
id: z.ZodNullable<z.ZodNumber>;
|
|
@@ -33,7 +33,7 @@ declare const SpokiListContactsOutput: z.ZodObject<{
|
|
|
33
33
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
contacts_count: z.ZodNullable<z.ZodNumber>;
|
|
35
35
|
created_datetime: z.ZodNullable<z.ZodString>;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>;
|
|
37
37
|
chat_link: z.ZodNullable<z.ZodString>;
|
|
38
38
|
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -43,12 +43,12 @@ declare const SpokiListContactsOutput: z.ZodObject<{
|
|
|
43
43
|
value: z.ZodNullable<z.ZodString>;
|
|
44
44
|
visual_code: z.ZodNullable<z.ZodString>;
|
|
45
45
|
value_datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>>;
|
|
47
47
|
created_datetime: z.ZodNullable<z.ZodString>;
|
|
48
48
|
has_invalid_phone: z.ZodNullable<z.ZodBoolean>;
|
|
49
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>>;
|
|
50
50
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
-
}, z.core.$
|
|
51
|
+
}, z.core.$loose>;
|
|
52
52
|
declare const spokiListContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
53
53
|
tag?: number | undefined;
|
|
54
54
|
page?: number | undefined;
|
|
@@ -18,21 +18,21 @@ const SpokiListContacts_TagSchema = z.object({
|
|
|
18
18
|
name: z.string().describe("Name of the tag").nullable(),
|
|
19
19
|
color: z.string().describe("Color code of the tag").nullable().optional(),
|
|
20
20
|
order: z.number().int().describe("Order index of the tag").nullable()
|
|
21
|
-
});
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const SpokiListContacts_ListBaseSchema = z.object({
|
|
23
23
|
id: z.number().int().describe("Unique identifier of the list").nullable(),
|
|
24
24
|
name: z.string().describe("Name of the list").nullable(),
|
|
25
25
|
color: z.string().describe("Color code of the list").nullable().optional(),
|
|
26
26
|
contacts_count: z.number().int().describe("Number of contacts in the list").nullable(),
|
|
27
27
|
created_datetime: z.string().describe("Timestamp when the list was created").nullable()
|
|
28
|
-
});
|
|
28
|
+
}).passthrough();
|
|
29
29
|
const SpokiListContacts_ContactFieldSchema = z.object({
|
|
30
30
|
id: z.number().int().describe("Unique identifier of the contact field").nullable(),
|
|
31
31
|
field: z.number().int().describe("Custom field ID").nullable(),
|
|
32
32
|
value: z.string().describe("Value of the custom field").nullable(),
|
|
33
33
|
visual_code: z.string().describe("Template placeholder code of the field").nullable(),
|
|
34
34
|
value_datetime: z.string().describe("Datetime value of the custom field if applicable").nullable().optional()
|
|
35
|
-
});
|
|
35
|
+
}).passthrough();
|
|
36
36
|
const SpokiListContacts_ContactSchema = z.object({
|
|
37
37
|
id: z.number().int().describe("Unique identifier of the contact").nullable(),
|
|
38
38
|
email: z.string().describe("Email address of the contact").nullable().optional(),
|
|
@@ -46,7 +46,7 @@ const SpokiListContacts_ContactSchema = z.object({
|
|
|
46
46
|
contactfield_set: z.array(SpokiListContacts_ContactFieldSchema).describe("List of custom fields associated with the contact"),
|
|
47
47
|
created_datetime: z.string().describe("Timestamp when the contact was created").nullable(),
|
|
48
48
|
has_invalid_phone: z.boolean().describe("Indicates if the phone number is invalid").nullable()
|
|
49
|
-
});
|
|
49
|
+
}).passthrough();
|
|
50
50
|
const spokiListContacts = action("SPOKI_LIST_CONTACTS", {
|
|
51
51
|
slug: "spoki-list-contacts",
|
|
52
52
|
name: "List Contacts",
|
|
@@ -57,7 +57,7 @@ const spokiListContacts = action("SPOKI_LIST_CONTACTS", {
|
|
|
57
57
|
count: z.number().int().describe("Total number of contacts matching the filters").nullable(),
|
|
58
58
|
results: z.array(SpokiListContacts_ContactSchema).describe("List of contact objects"),
|
|
59
59
|
previous: z.string().describe("URL for the previous page of results").nullable().optional()
|
|
60
|
-
})
|
|
60
|
+
}).passthrough()
|
|
61
61
|
});
|
|
62
62
|
//#endregion
|
|
63
63
|
export { spokiListContacts };
|
|
@@ -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 SpokiListContactsInput = z.object({\n tag: z.number().int().describe(\"Filter by tag ID\").optional(),\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n email: z.string().describe(\"Filter by email (exact match)\").optional(),\n phone: z.string().describe(\"Filter by phone (exact match)\").optional(),\n search: z.string().describe(\"Search query for phone, email, first_name, last_name, language, or notes\").optional(),\n language: z.string().describe(\"Filter by language code\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n last_name: z.string().describe(\"Filter by last name\").optional(),\n first_name: z.string().describe(\"Filter by first name\").optional(),\n is_blocked: z.boolean().describe(\"Filter blocked contacts only when true\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering contacts.\");\nconst SpokiListContacts_TagSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the tag\").nullable(),\n name: z.string().describe(\"Name of the tag\").nullable(),\n color: z.string().describe(\"Color code of the tag\").nullable().optional(),\n order: z.number().int().describe(\"Order index of the tag\").nullable(),\n});\nconst SpokiListContacts_ListBaseSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the list\").nullable(),\n name: z.string().describe(\"Name of the list\").nullable(),\n color: z.string().describe(\"Color code of the list\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in the list\").nullable(),\n created_datetime: z.string().describe(\"Timestamp when the list was created\").nullable(),\n});\nconst SpokiListContacts_ContactFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact field\").nullable(),\n field: z.number().int().describe(\"Custom field ID\").nullable(),\n value: z.string().describe(\"Value of the custom field\").nullable(),\n visual_code: z.string().describe(\"Template placeholder code of the field\").nullable(),\n value_datetime: z.string().describe(\"Datetime value of the custom field if applicable\").nullable().optional(),\n});\nconst SpokiListContacts_ContactSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact\").nullable(),\n email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the contact in international format\").nullable(),\n tag_set: z.array(SpokiListContacts_TagSchema).describe(\"List of tags assigned to the contact\"),\n language: z.string().describe(\"Language code of the contact\").nullable(),\n list_set: z.array(SpokiListContacts_ListBaseSchema).describe(\"List of lists the contact belongs to\"),\n chat_link: z.string().describe(\"URL to open the chat with the contact\").nullable(),\n last_name: z.string().describe(\"Last name of the contact\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact\").nullable().optional(),\n contactfield_set: z.array(SpokiListContacts_ContactFieldSchema).describe(\"List of custom fields associated with the contact\"),\n created_datetime: z.string().describe(\"Timestamp when the contact was created\").nullable(),\n has_invalid_phone: z.boolean().describe(\"Indicates if the phone number is invalid\").nullable(),\n});\nexport const SpokiListContactsOutput = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of contacts matching the filters\").nullable(),\n results: z.array(SpokiListContacts_ContactSchema).describe(\"List of contact objects\"),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n});\n\nexport const spokiListContacts = action(\"SPOKI_LIST_CONTACTS\", {\n slug: \"spoki-list-contacts\",\n name: \"List Contacts\",\n description: \"Tool to list, search, and filter contacts. Use when you need to retrieve contacts with optional search and filters.\",\n input: SpokiListContactsInput,\n output: SpokiListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACjH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC1F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC/D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACjE,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,8BAA8B,EAAE,OAAO;CAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACtE,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 SpokiListContactsInput = z.object({\n tag: z.number().int().describe(\"Filter by tag ID\").optional(),\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n email: z.string().describe(\"Filter by email (exact match)\").optional(),\n phone: z.string().describe(\"Filter by phone (exact match)\").optional(),\n search: z.string().describe(\"Search query for phone, email, first_name, last_name, language, or notes\").optional(),\n language: z.string().describe(\"Filter by language code\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n last_name: z.string().describe(\"Filter by last name\").optional(),\n first_name: z.string().describe(\"Filter by first name\").optional(),\n is_blocked: z.boolean().describe(\"Filter blocked contacts only when true\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering contacts.\");\nconst SpokiListContacts_TagSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the tag\").nullable(),\n name: z.string().describe(\"Name of the tag\").nullable(),\n color: z.string().describe(\"Color code of the tag\").nullable().optional(),\n order: z.number().int().describe(\"Order index of the tag\").nullable(),\n}).passthrough();\nconst SpokiListContacts_ListBaseSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the list\").nullable(),\n name: z.string().describe(\"Name of the list\").nullable(),\n color: z.string().describe(\"Color code of the list\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in the list\").nullable(),\n created_datetime: z.string().describe(\"Timestamp when the list was created\").nullable(),\n}).passthrough();\nconst SpokiListContacts_ContactFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact field\").nullable(),\n field: z.number().int().describe(\"Custom field ID\").nullable(),\n value: z.string().describe(\"Value of the custom field\").nullable(),\n visual_code: z.string().describe(\"Template placeholder code of the field\").nullable(),\n value_datetime: z.string().describe(\"Datetime value of the custom field if applicable\").nullable().optional(),\n}).passthrough();\nconst SpokiListContacts_ContactSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the contact\").nullable(),\n email: z.string().describe(\"Email address of the contact\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the contact in international format\").nullable(),\n tag_set: z.array(SpokiListContacts_TagSchema).describe(\"List of tags assigned to the contact\"),\n language: z.string().describe(\"Language code of the contact\").nullable(),\n list_set: z.array(SpokiListContacts_ListBaseSchema).describe(\"List of lists the contact belongs to\"),\n chat_link: z.string().describe(\"URL to open the chat with the contact\").nullable(),\n last_name: z.string().describe(\"Last name of the contact\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact\").nullable().optional(),\n contactfield_set: z.array(SpokiListContacts_ContactFieldSchema).describe(\"List of custom fields associated with the contact\"),\n created_datetime: z.string().describe(\"Timestamp when the contact was created\").nullable(),\n has_invalid_phone: z.boolean().describe(\"Indicates if the phone number is invalid\").nullable(),\n}).passthrough();\nexport const SpokiListContactsOutput = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of contacts matching the filters\").nullable(),\n results: z.array(SpokiListContacts_ContactSchema).describe(\"List of contact objects\"),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n}).passthrough();\n\nexport const spokiListContacts = action(\"SPOKI_LIST_CONTACTS\", {\n slug: \"spoki-list-contacts\",\n name: \"List Contacts\",\n description: \"Tool to list, search, and filter contacts. Use when you need to retrieve contacts with optional search and filters.\",\n input: SpokiListContactsInput,\n output: SpokiListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;C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jF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,kBAAkB,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,mDAAmD;CAC5H,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACzF,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AAQf,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZqC,EAAE,OAAO;EAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,yBAAyB;EACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -12,8 +12,8 @@ const SpokiListCustomFields_CustomFieldSchema = zod.z.object({
|
|
|
12
12
|
example: zod.z.string().describe("Example value for this custom field").nullable().optional(),
|
|
13
13
|
is_linked: zod.z.boolean().describe("Whether this custom field is linked to contacts").nullable(),
|
|
14
14
|
field_type: zod.z.number().int().describe("Type of field: 1=TEXT, 2=DATE, 3=DATETIME").nullable()
|
|
15
|
-
});
|
|
16
|
-
const SpokiListCustomFieldsOutput = zod.z.object({ custom_fields: zod.z.array(SpokiListCustomFields_CustomFieldSchema).describe("List of matching custom field definitions") }).describe("Response schema for list custom fields.");
|
|
15
|
+
}).passthrough();
|
|
16
|
+
const SpokiListCustomFieldsOutput = zod.z.object({ custom_fields: zod.z.array(SpokiListCustomFields_CustomFieldSchema).describe("List of matching custom field definitions") }).passthrough().describe("Response schema for list custom fields.");
|
|
17
17
|
const spokiListCustomFields = require_action.action("SPOKI_LIST_CUSTOM_FIELDS", {
|
|
18
18
|
slug: "spoki-list-custom-fields",
|
|
19
19
|
name: "List Custom Fields",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-custom-fields.cjs","names":["z","action"],"sources":["../../src/actions/list-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListCustomFieldsInput = z.object({\n code: z.string().describe(\"Filter custom fields whose code contains this string\").optional(),\n label: z.string().describe(\"Filter custom fields whose label contains this string\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering custom fields.\");\nconst SpokiListCustomFields_CustomFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the custom field\").nullable(),\n code: z.string().describe(\"Machine key/code of the custom field\").nullable(),\n label: z.string().describe(\"Human-readable name of the custom field\").nullable(),\n example: z.string().describe(\"Example value for this custom field\").nullable().optional(),\n is_linked: z.boolean().describe(\"Whether this custom field is linked to contacts\").nullable(),\n field_type: z.number().int().describe(\"Type of field: 1=TEXT, 2=DATE, 3=DATETIME\").nullable(),\n});\nexport const SpokiListCustomFieldsOutput = z.object({\n custom_fields: z.array(SpokiListCustomFields_CustomFieldSchema).describe(\"List of matching custom field definitions\"),\n}).describe(\"Response schema for list custom fields.\");\n\nexport const spokiListCustomFields = action(\"SPOKI_LIST_CUSTOM_FIELDS\", {\n slug: \"spoki-list-custom-fields\",\n name: \"List Custom Fields\",\n description: \"Tool to list, search, and filter custom fields. Use when you need to fetch available custom-field definitions by label or code.\",\n input: SpokiListCustomFieldsInput,\n output: SpokiListCustomFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC9F,CAAC;
|
|
1
|
+
{"version":3,"file":"list-custom-fields.cjs","names":["z","action"],"sources":["../../src/actions/list-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListCustomFieldsInput = z.object({\n code: z.string().describe(\"Filter custom fields whose code contains this string\").optional(),\n label: z.string().describe(\"Filter custom fields whose label contains this string\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering custom fields.\");\nconst SpokiListCustomFields_CustomFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the custom field\").nullable(),\n code: z.string().describe(\"Machine key/code of the custom field\").nullable(),\n label: z.string().describe(\"Human-readable name of the custom field\").nullable(),\n example: z.string().describe(\"Example value for this custom field\").nullable().optional(),\n is_linked: z.boolean().describe(\"Whether this custom field is linked to contacts\").nullable(),\n field_type: z.number().int().describe(\"Type of field: 1=TEXT, 2=DATE, 3=DATETIME\").nullable(),\n}).passthrough();\nexport const SpokiListCustomFieldsOutput = z.object({\n custom_fields: z.array(SpokiListCustomFields_CustomFieldSchema).describe(\"List of matching custom field definitions\"),\n}).passthrough().describe(\"Response schema for list custom fields.\");\n\nexport const spokiListCustomFields = action(\"SPOKI_LIST_CUSTOM_FIELDS\", {\n slug: \"spoki-list-custom-fields\",\n name: \"List Custom Fields\",\n description: \"Tool to list, search, and filter custom fields. Use when you need to fetch available custom-field definitions by label or code.\",\n input: SpokiListCustomFieldsInput,\n output: SpokiListCustomFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,eAAeA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2CAA2C,EACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -13,8 +13,8 @@ declare const SpokiListCustomFieldsOutput: z.ZodObject<{
|
|
|
13
13
|
example: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
is_linked: z.ZodNullable<z.ZodBoolean>;
|
|
15
15
|
field_type: z.ZodNullable<z.ZodNumber>;
|
|
16
|
-
}, z.core.$
|
|
17
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const spokiListCustomFields: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
code?: string | undefined;
|
|
20
20
|
label?: string | undefined;
|
|
@@ -13,8 +13,8 @@ declare const SpokiListCustomFieldsOutput: z.ZodObject<{
|
|
|
13
13
|
example: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
is_linked: z.ZodNullable<z.ZodBoolean>;
|
|
15
15
|
field_type: z.ZodNullable<z.ZodNumber>;
|
|
16
|
-
}, z.core.$
|
|
17
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const spokiListCustomFields: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
code?: string | undefined;
|
|
20
20
|
label?: string | undefined;
|
|
@@ -12,13 +12,13 @@ const SpokiListCustomFields_CustomFieldSchema = z.object({
|
|
|
12
12
|
example: z.string().describe("Example value for this custom field").nullable().optional(),
|
|
13
13
|
is_linked: z.boolean().describe("Whether this custom field is linked to contacts").nullable(),
|
|
14
14
|
field_type: z.number().int().describe("Type of field: 1=TEXT, 2=DATE, 3=DATETIME").nullable()
|
|
15
|
-
});
|
|
15
|
+
}).passthrough();
|
|
16
16
|
const spokiListCustomFields = action("SPOKI_LIST_CUSTOM_FIELDS", {
|
|
17
17
|
slug: "spoki-list-custom-fields",
|
|
18
18
|
name: "List Custom Fields",
|
|
19
19
|
description: "Tool to list, search, and filter custom fields. Use when you need to fetch available custom-field definitions by label or code.",
|
|
20
20
|
input: SpokiListCustomFieldsInput,
|
|
21
|
-
output: z.object({ custom_fields: z.array(SpokiListCustomFields_CustomFieldSchema).describe("List of matching custom field definitions") }).describe("Response schema for list custom fields.")
|
|
21
|
+
output: z.object({ custom_fields: z.array(SpokiListCustomFields_CustomFieldSchema).describe("List of matching custom field definitions") }).passthrough().describe("Response schema for list custom fields.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { spokiListCustomFields };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-custom-fields.mjs","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListCustomFieldsInput = z.object({\n code: z.string().describe(\"Filter custom fields whose code contains this string\").optional(),\n label: z.string().describe(\"Filter custom fields whose label contains this string\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering custom fields.\");\nconst SpokiListCustomFields_CustomFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the custom field\").nullable(),\n code: z.string().describe(\"Machine key/code of the custom field\").nullable(),\n label: z.string().describe(\"Human-readable name of the custom field\").nullable(),\n example: z.string().describe(\"Example value for this custom field\").nullable().optional(),\n is_linked: z.boolean().describe(\"Whether this custom field is linked to contacts\").nullable(),\n field_type: z.number().int().describe(\"Type of field: 1=TEXT, 2=DATE, 3=DATETIME\").nullable(),\n});\nexport const SpokiListCustomFieldsOutput = z.object({\n custom_fields: z.array(SpokiListCustomFields_CustomFieldSchema).describe(\"List of matching custom field definitions\"),\n}).describe(\"Response schema for list custom fields.\");\n\nexport const spokiListCustomFields = action(\"SPOKI_LIST_CUSTOM_FIELDS\", {\n slug: \"spoki-list-custom-fields\",\n name: \"List Custom Fields\",\n description: \"Tool to list, search, and filter custom fields. Use when you need to fetch available custom-field definitions by label or code.\",\n input: SpokiListCustomFieldsInput,\n output: SpokiListCustomFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC9F,CAAC;
|
|
1
|
+
{"version":3,"file":"list-custom-fields.mjs","names":[],"sources":["../../src/actions/list-custom-fields.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListCustomFieldsInput = z.object({\n code: z.string().describe(\"Filter custom fields whose code contains this string\").optional(),\n label: z.string().describe(\"Filter custom fields whose label contains this string\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering custom fields.\");\nconst SpokiListCustomFields_CustomFieldSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the custom field\").nullable(),\n code: z.string().describe(\"Machine key/code of the custom field\").nullable(),\n label: z.string().describe(\"Human-readable name of the custom field\").nullable(),\n example: z.string().describe(\"Example value for this custom field\").nullable().optional(),\n is_linked: z.boolean().describe(\"Whether this custom field is linked to contacts\").nullable(),\n field_type: z.number().int().describe(\"Type of field: 1=TEXT, 2=DATE, 3=DATETIME\").nullable(),\n}).passthrough();\nexport const SpokiListCustomFieldsOutput = z.object({\n custom_fields: z.array(SpokiListCustomFields_CustomFieldSchema).describe(\"List of matching custom field definitions\"),\n}).passthrough().describe(\"Response schema for list custom fields.\");\n\nexport const spokiListCustomFields = action(\"SPOKI_LIST_CUSTOM_FIELDS\", {\n slug: \"spoki-list-custom-fields\",\n name: \"List Custom Fields\",\n description: \"Tool to list, search, and filter custom fields. Use when you need to fetch available custom-field definitions by label or code.\",\n input: SpokiListCustomFieldsInput,\n output: SpokiListCustomFieldsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,eAAe,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2CAA2C,EACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
|
|
@@ -12,13 +12,13 @@ const SpokiListLists_ListItemSchema = zod.z.object({
|
|
|
12
12
|
color: zod.z.string().describe("Color code of the list").nullable().optional(),
|
|
13
13
|
contacts_count: zod.z.number().int().describe("Number of contacts in the list").nullable(),
|
|
14
14
|
created_datetime: zod.z.string().describe("Timestamp when the list was created").nullable()
|
|
15
|
-
}).describe("Represents a contact list resource.");
|
|
15
|
+
}).passthrough().describe("Represents a contact list resource.");
|
|
16
16
|
const SpokiListListsOutput = zod.z.object({
|
|
17
17
|
next: zod.z.string().describe("URL for the next page of results").nullable().optional(),
|
|
18
18
|
count: zod.z.number().int().describe("Total number of lists matching the filters").nullable(),
|
|
19
19
|
results: zod.z.array(SpokiListLists_ListItemSchema).describe("List of contact list objects"),
|
|
20
20
|
previous: zod.z.string().describe("URL for the previous page of results").nullable().optional()
|
|
21
|
-
}).describe("Response model for listing contact lists.");
|
|
21
|
+
}).passthrough().describe("Response model for listing contact lists.");
|
|
22
22
|
const spokiListLists = require_action.action("SPOKI_LIST_LISTS", {
|
|
23
23
|
slug: "spoki-list-lists",
|
|
24
24
|
name: "List Lists",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-lists.cjs","names":["z","action"],"sources":["../../src/actions/list-lists.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListListsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n search: z.string().describe(\"Search query to filter lists by name\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering contact lists.\");\nconst SpokiListLists_ListItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the list\").nullable(),\n name: z.string().describe(\"Name of the list\").nullable(),\n color: z.string().describe(\"Color code of the list\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in the list\").nullable(),\n created_datetime: z.string().describe(\"Timestamp when the list was created\").nullable(),\n}).describe(\"Represents a contact list resource.\");\nexport const SpokiListListsOutput = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of lists matching the filters\").nullable(),\n results: z.array(SpokiListLists_ListItemSchema).describe(\"List of contact list objects\"),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n}).describe(\"Response model for listing contact lists.\");\n\nexport const spokiListLists = action(\"SPOKI_LIST_LISTS\", {\n slug: \"spoki-list-lists\",\n name: \"List Lists\",\n description: \"Tool to list, search, and filter contact lists. Use when you need to retrieve all lists or find specific lists by name. Rate limit: 5 requests per minute.\",\n input: SpokiListListsInput,\n output: SpokiListListsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,qCAAqC;
|
|
1
|
+
{"version":3,"file":"list-lists.cjs","names":["z","action"],"sources":["../../src/actions/list-lists.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiListListsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination, must be >= 1.\").optional(),\n search: z.string().describe(\"Search query to filter lists by name\").optional(),\n per_page: z.number().int().describe(\"Number of results per page, must be >= 1.\").optional(),\n}).describe(\"Request parameters for listing, searching, and filtering contact lists.\");\nconst SpokiListLists_ListItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the list\").nullable(),\n name: z.string().describe(\"Name of the list\").nullable(),\n color: z.string().describe(\"Color code of the list\").nullable().optional(),\n contacts_count: z.number().int().describe(\"Number of contacts in the list\").nullable(),\n created_datetime: z.string().describe(\"Timestamp when the list was created\").nullable(),\n}).passthrough().describe(\"Represents a contact list resource.\");\nexport const SpokiListListsOutput = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total number of lists matching the filters\").nullable(),\n results: z.array(SpokiListLists_ListItemSchema).describe(\"List of contact list objects\"),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing contact lists.\");\n\nexport const spokiListLists = action(\"SPOKI_LIST_LISTS\", {\n slug: \"spoki-list-lists\",\n name: \"List Lists\",\n description: \"Tool to list, search, and filter contact lists. Use when you need to retrieve all lists or find specific lists by name. Rate limit: 5 requests per minute.\",\n input: SpokiListListsInput,\n output: SpokiListListsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,uBA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