@keystrokehq/spoki 0.1.2 → 0.1.3
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/package.json +1 -1
|
@@ -5,7 +5,7 @@ const SpokiAddContactOperatorInput = zod.z.object({
|
|
|
5
5
|
id: zod.z.string().describe("The contact ID to assign the operator to. This is the unique identifier of the contact in Spoki"),
|
|
6
6
|
email: zod.z.string().describe("Operator's email address. The operator must be invited to join the account first before being assigned to a contact. If the operator is not found, the API will return a 400 error")
|
|
7
7
|
}).describe("Request parameters for assigning an operator to a contact's chat.");
|
|
8
|
-
const SpokiAddContactOperatorOutput = zod.z.
|
|
8
|
+
const SpokiAddContactOperatorOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response from adding an operator to a contact. Returns success confirmation.");
|
|
9
9
|
const spokiAddContactOperator = require_action.action("SPOKI_ADD_CONTACT_OPERATOR", {
|
|
10
10
|
slug: "spoki-add-contact-operator",
|
|
11
11
|
name: "Add Contact Operator",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-contact-operator.cjs","names":["z","action"],"sources":["../../src/actions/add-contact-operator.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiAddContactOperatorInput = z.object({\n id: z.string().describe(\"The contact ID to assign the operator to. This is the unique identifier of the contact in Spoki\"),\n email: z.string().describe(\"Operator's email address. The operator must be invited to join the account first before being assigned to a contact. If the operator is not found, the API will return a 400 error\"),\n}).describe(\"Request parameters for assigning an operator to a contact's chat.\");\nexport const SpokiAddContactOperatorOutput = z.
|
|
1
|
+
{"version":3,"file":"add-contact-operator.cjs","names":["z","action"],"sources":["../../src/actions/add-contact-operator.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiAddContactOperatorInput = z.object({\n id: z.string().describe(\"The contact ID to assign the operator to. This is the unique identifier of the contact in Spoki\"),\n email: z.string().describe(\"Operator's email address. The operator must be invited to join the account first before being assigned to a contact. If the operator is not found, the API will return a 400 error\"),\n}).describe(\"Request parameters for assigning an operator to a contact's chat.\");\nexport const SpokiAddContactOperatorOutput = z.record(z.string(), z.unknown()).describe(\"Response from adding an operator to a contact. Returns success confirmation.\");\n\nexport const spokiAddContactOperator = action(\"SPOKI_ADD_CONTACT_OPERATOR\", {\n slug: \"spoki-add-contact-operator\",\n name: \"Add Contact Operator\",\n description: \"Tool to assign an operator to a contact's chat. Use this when you need to assign a team member to handle a specific contact's conversation. The operator must have been invited to the account first. Rate limited to 5 requests per minute.\",\n input: SpokiAddContactOperatorInput,\n output: SpokiAddContactOperatorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CACzH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL;AACjN,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,gCAAgCA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAEtK,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ declare const SpokiAddContactOperatorInput: z.ZodObject<{
|
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
email: z.ZodString;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
|
-
declare const SpokiAddContactOperatorOutput: z.
|
|
8
|
+
declare const SpokiAddContactOperatorOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
9
|
declare const spokiAddContactOperator: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
10
10
|
id: string;
|
|
11
11
|
email: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-contact-operator.d.cts","names":[],"sources":["../../src/actions/add-contact-operator.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAI5B,6BAAA,EAA6B,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"add-contact-operator.d.cts","names":[],"sources":["../../src/actions/add-contact-operator.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAI5B,6BAAA,EAA6B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -5,7 +5,7 @@ declare const SpokiAddContactOperatorInput: z.ZodObject<{
|
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
email: z.ZodString;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
|
-
declare const SpokiAddContactOperatorOutput: z.
|
|
8
|
+
declare const SpokiAddContactOperatorOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9
9
|
declare const spokiAddContactOperator: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
10
10
|
id: string;
|
|
11
11
|
email: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-contact-operator.d.mts","names":[],"sources":["../../src/actions/add-contact-operator.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAI5B,6BAAA,EAA6B,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"add-contact-operator.d.mts","names":[],"sources":["../../src/actions/add-contact-operator.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAI5B,6BAAA,EAA6B,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAE7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -8,7 +8,7 @@ const spokiAddContactOperator = action("SPOKI_ADD_CONTACT_OPERATOR", {
|
|
|
8
8
|
id: z.string().describe("The contact ID to assign the operator to. This is the unique identifier of the contact in Spoki"),
|
|
9
9
|
email: z.string().describe("Operator's email address. The operator must be invited to join the account first before being assigned to a contact. If the operator is not found, the API will return a 400 error")
|
|
10
10
|
}).describe("Request parameters for assigning an operator to a contact's chat."),
|
|
11
|
-
output: z.
|
|
11
|
+
output: z.record(z.string(), z.unknown()).describe("Response from adding an operator to a contact. Returns success confirmation.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { spokiAddContactOperator };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-contact-operator.mjs","names":[],"sources":["../../src/actions/add-contact-operator.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiAddContactOperatorInput = z.object({\n id: z.string().describe(\"The contact ID to assign the operator to. This is the unique identifier of the contact in Spoki\"),\n email: z.string().describe(\"Operator's email address. The operator must be invited to join the account first before being assigned to a contact. If the operator is not found, the API will return a 400 error\"),\n}).describe(\"Request parameters for assigning an operator to a contact's chat.\");\nexport const SpokiAddContactOperatorOutput = z.
|
|
1
|
+
{"version":3,"file":"add-contact-operator.mjs","names":[],"sources":["../../src/actions/add-contact-operator.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiAddContactOperatorInput = z.object({\n id: z.string().describe(\"The contact ID to assign the operator to. This is the unique identifier of the contact in Spoki\"),\n email: z.string().describe(\"Operator's email address. The operator must be invited to join the account first before being assigned to a contact. If the operator is not found, the API will return a 400 error\"),\n}).describe(\"Request parameters for assigning an operator to a contact's chat.\");\nexport const SpokiAddContactOperatorOutput = z.record(z.string(), z.unknown()).describe(\"Response from adding an operator to a contact. Returns success confirmation.\");\n\nexport const spokiAddContactOperator = action(\"SPOKI_ADD_CONTACT_OPERATOR\", {\n slug: \"spoki-add-contact-operator\",\n name: \"Add Contact Operator\",\n description: \"Tool to assign an operator to a contact's chat. Use this when you need to assign a team member to handle a specific contact's conversation. The operator must have been invited to the account first. Rate limited to 5 requests per minute.\",\n input: SpokiAddContactOperatorInput,\n output: SpokiAddContactOperatorOutput,\n});\n"],"mappings":";;AAUA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAV0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;EACzH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL;CACjN,CAAC,CAAC,CAAC,SAAS,mEAOH;CACP,QAP2C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8EAO9E;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ const SpokiAddServiceUserOutput = zod.z.object({
|
|
|
9
9
|
id: zod.z.number().int().describe("Unique identifier assigned to the service user by Spoki").nullable(),
|
|
10
10
|
name: zod.z.string().describe("Name of the service user").nullable(),
|
|
11
11
|
role: zod.z.string().describe("Role assigned to the service user").nullable()
|
|
12
|
-
}).describe("Response containing details of the newly created service user.");
|
|
12
|
+
}).passthrough().describe("Response containing details of the newly created service user.");
|
|
13
13
|
const spokiAddServiceUser = require_action.action("SPOKI_ADD_SERVICE_USER", {
|
|
14
14
|
slug: "spoki-add-service-user",
|
|
15
15
|
name: "Add Service User",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-service-user.cjs","names":["z","action"],"sources":["../../src/actions/add-service-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiAddServiceUserInput = z.object({\n name: z.string().describe(\"Name of the service user to be created. This is a human-readable identifier for the service user\"),\n role: z.string().describe(\"Role to assign to the service user. Common roles include 'Chat Operator', 'Admin', 'Agent', etc. The role must exist in your Spoki account\"),\n}).describe(\"Request model to add a new service user with a specific role in Spoki.\");\nexport const SpokiAddServiceUserOutput = z.object({\n id: z.number().int().describe(\"Unique identifier assigned to the service user by Spoki\").nullable(),\n name: z.string().describe(\"Name of the service user\").nullable(),\n role: z.string().describe(\"Role assigned to the service user\").nullable(),\n}).describe(\"Response containing details of the newly created service user.\");\n\nexport const spokiAddServiceUser = action(\"SPOKI_ADD_SERVICE_USER\", {\n slug: \"spoki-add-service-user\",\n name: \"Add Service User\",\n description: \"Adds a new service user with a specific role to your Spoki account. Use this when you need to create service accounts for automation, API integrations, or specialized operator roles. Rate limit: 10 requests per minute.\",\n input: SpokiAddServiceUserInput,\n output: SpokiAddServiceUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;CAC5H,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;AACxK,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAClG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,gEAAgE;
|
|
1
|
+
{"version":3,"file":"add-service-user.cjs","names":["z","action"],"sources":["../../src/actions/add-service-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiAddServiceUserInput = z.object({\n name: z.string().describe(\"Name of the service user to be created. This is a human-readable identifier for the service user\"),\n role: z.string().describe(\"Role to assign to the service user. Common roles include 'Chat Operator', 'Admin', 'Agent', etc. The role must exist in your Spoki account\"),\n}).describe(\"Request model to add a new service user with a specific role in Spoki.\");\nexport const SpokiAddServiceUserOutput = z.object({\n id: z.number().int().describe(\"Unique identifier assigned to the service user by Spoki\").nullable(),\n name: z.string().describe(\"Name of the service user\").nullable(),\n role: z.string().describe(\"Role assigned to the service user\").nullable(),\n}).passthrough().describe(\"Response containing details of the newly created service user.\");\n\nexport const spokiAddServiceUser = action(\"SPOKI_ADD_SERVICE_USER\", {\n slug: \"spoki-add-service-user\",\n name: \"Add Service User\",\n description: \"Adds a new service user with a specific role to your Spoki account. Use this when you need to create service accounts for automation, API integrations, or specialized operator roles. Rate limit: 10 requests per minute.\",\n input: SpokiAddServiceUserInput,\n output: SpokiAddServiceUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;CAC5H,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;AACxK,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAClG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAE1F,MAAa,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ declare const SpokiAddServiceUserOutput: z.ZodObject<{
|
|
|
9
9
|
id: z.ZodNullable<z.ZodNumber>;
|
|
10
10
|
name: z.ZodNullable<z.ZodString>;
|
|
11
11
|
role: z.ZodNullable<z.ZodString>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const spokiAddServiceUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
name: string;
|
|
15
15
|
role: string;
|
|
@@ -9,7 +9,7 @@ declare const SpokiAddServiceUserOutput: z.ZodObject<{
|
|
|
9
9
|
id: z.ZodNullable<z.ZodNumber>;
|
|
10
10
|
name: z.ZodNullable<z.ZodString>;
|
|
11
11
|
role: z.ZodNullable<z.ZodString>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const spokiAddServiceUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
name: string;
|
|
15
15
|
role: string;
|
|
@@ -12,7 +12,7 @@ const spokiAddServiceUser = action("SPOKI_ADD_SERVICE_USER", {
|
|
|
12
12
|
id: z.number().int().describe("Unique identifier assigned to the service user by Spoki").nullable(),
|
|
13
13
|
name: z.string().describe("Name of the service user").nullable(),
|
|
14
14
|
role: z.string().describe("Role assigned to the service user").nullable()
|
|
15
|
-
}).describe("Response containing details of the newly created service user.")
|
|
15
|
+
}).passthrough().describe("Response containing details of the newly created service user.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { spokiAddServiceUser };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-service-user.mjs","names":[],"sources":["../../src/actions/add-service-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiAddServiceUserInput = z.object({\n name: z.string().describe(\"Name of the service user to be created. This is a human-readable identifier for the service user\"),\n role: z.string().describe(\"Role to assign to the service user. Common roles include 'Chat Operator', 'Admin', 'Agent', etc. The role must exist in your Spoki account\"),\n}).describe(\"Request model to add a new service user with a specific role in Spoki.\");\nexport const SpokiAddServiceUserOutput = z.object({\n id: z.number().int().describe(\"Unique identifier assigned to the service user by Spoki\").nullable(),\n name: z.string().describe(\"Name of the service user\").nullable(),\n role: z.string().describe(\"Role assigned to the service user\").nullable(),\n}).describe(\"Response containing details of the newly created service user.\");\n\nexport const spokiAddServiceUser = action(\"SPOKI_ADD_SERVICE_USER\", {\n slug: \"spoki-add-service-user\",\n name: \"Add Service User\",\n description: \"Adds a new service user with a specific role to your Spoki account. Use this when you need to create service accounts for automation, API integrations, or specialized operator roles. Rate limit: 10 requests per minute.\",\n input: SpokiAddServiceUserInput,\n output: SpokiAddServiceUserOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;EAC5H,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;CACxK,CAAC,CAAC,CAAC,SAAS,wEAWH;CACP,QAXuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAClG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"add-service-user.mjs","names":[],"sources":["../../src/actions/add-service-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiAddServiceUserInput = z.object({\n name: z.string().describe(\"Name of the service user to be created. This is a human-readable identifier for the service user\"),\n role: z.string().describe(\"Role to assign to the service user. Common roles include 'Chat Operator', 'Admin', 'Agent', etc. The role must exist in your Spoki account\"),\n}).describe(\"Request model to add a new service user with a specific role in Spoki.\");\nexport const SpokiAddServiceUserOutput = z.object({\n id: z.number().int().describe(\"Unique identifier assigned to the service user by Spoki\").nullable(),\n name: z.string().describe(\"Name of the service user\").nullable(),\n role: z.string().describe(\"Role assigned to the service user\").nullable(),\n}).passthrough().describe(\"Response containing details of the newly created service user.\");\n\nexport const spokiAddServiceUser = action(\"SPOKI_ADD_SERVICE_USER\", {\n slug: \"spoki-add-service-user\",\n name: \"Add Service User\",\n description: \"Adds a new service user with a specific role to your Spoki account. Use this when you need to create service accounts for automation, API integrations, or specialized operator roles. Rate limit: 10 requests per minute.\",\n input: SpokiAddServiceUserInput,\n output: SpokiAddServiceUserOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;EAC5H,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;CACxK,CAAC,CAAC,CAAC,SAAS,wEAWH;CACP,QAXuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAClG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/check-role-private-key.ts
|
|
4
4
|
const SpokiCheckRolePrivateKeyInput = zod.z.object({ role_id: zod.z.number().int().describe("The unique identifier of the role to check for private key") }).describe("Request model for checking if a role has a private key.");
|
|
5
|
-
const SpokiCheckRolePrivateKeyOutput = zod.z.object({ has_private_key: zod.z.boolean().describe("Whether the service user role has a private key configured").nullable() }).describe("Response model indicating if a role has a private key.");
|
|
5
|
+
const SpokiCheckRolePrivateKeyOutput = zod.z.object({ has_private_key: zod.z.boolean().describe("Whether the service user role has a private key configured").nullable() }).passthrough().describe("Response model indicating if a role has a private key.");
|
|
6
6
|
const spokiCheckRolePrivateKey = require_action.action("SPOKI_CHECK_ROLE_PRIVATE_KEY", {
|
|
7
7
|
slug: "spoki-check-role-private-key",
|
|
8
8
|
name: "Check Role Private Key",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-role-private-key.cjs","names":["z","action"],"sources":["../../src/actions/check-role-private-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiCheckRolePrivateKeyInput = z.object({\n role_id: z.number().int().describe(\"The unique identifier of the role to check for private key\"),\n}).describe(\"Request model for checking if a role has a private key.\");\nexport const SpokiCheckRolePrivateKeyOutput = z.object({\n has_private_key: z.boolean().describe(\"Whether the service user role has a private key configured\").nullable(),\n}).describe(\"Response model indicating if a role has a private key.\");\n\nexport const spokiCheckRolePrivateKey = action(\"SPOKI_CHECK_ROLE_PRIVATE_KEY\", {\n slug: \"spoki-check-role-private-key\",\n name: \"Check Role Private Key\",\n description: \"Tool to check if a service user role has a private key configured. Use when you need to verify key status for a role. Rate limit: 10 requests per minute.\",\n input: SpokiCheckRolePrivateKeyInput,\n output: SpokiCheckRolePrivateKeyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,EACjG,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,SAAS,wDAAwD;
|
|
1
|
+
{"version":3,"file":"check-role-private-key.cjs","names":["z","action"],"sources":["../../src/actions/check-role-private-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiCheckRolePrivateKeyInput = z.object({\n role_id: z.number().int().describe(\"The unique identifier of the role to check for private key\"),\n}).describe(\"Request model for checking if a role has a private key.\");\nexport const SpokiCheckRolePrivateKeyOutput = z.object({\n has_private_key: z.boolean().describe(\"Whether the service user role has a private key configured\").nullable(),\n}).passthrough().describe(\"Response model indicating if a role has a private key.\");\n\nexport const spokiCheckRolePrivateKey = action(\"SPOKI_CHECK_ROLE_PRIVATE_KEY\", {\n slug: \"spoki-check-role-private-key\",\n name: \"Check Role Private Key\",\n description: \"Tool to check if a service user role has a private key configured. Use when you need to verify key status for a role. Rate limit: 10 requests per minute.\",\n input: SpokiCheckRolePrivateKeyInput,\n output: SpokiCheckRolePrivateKeyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,EACjG,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ declare const SpokiCheckRolePrivateKeyInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const SpokiCheckRolePrivateKeyOutput: z.ZodObject<{
|
|
8
8
|
has_private_key: z.ZodNullable<z.ZodBoolean>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const spokiCheckRolePrivateKey: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
role_id: number;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -6,7 +6,7 @@ declare const SpokiCheckRolePrivateKeyInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const SpokiCheckRolePrivateKeyOutput: z.ZodObject<{
|
|
8
8
|
has_private_key: z.ZodNullable<z.ZodBoolean>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const spokiCheckRolePrivateKey: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
role_id: number;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,7 +5,7 @@ const spokiCheckRolePrivateKey = action("SPOKI_CHECK_ROLE_PRIVATE_KEY", {
|
|
|
5
5
|
name: "Check Role Private Key",
|
|
6
6
|
description: "Tool to check if a service user role has a private key configured. Use when you need to verify key status for a role. Rate limit: 10 requests per minute.",
|
|
7
7
|
input: z.object({ role_id: z.number().int().describe("The unique identifier of the role to check for private key") }).describe("Request model for checking if a role has a private key."),
|
|
8
|
-
output: z.object({ has_private_key: z.boolean().describe("Whether the service user role has a private key configured").nullable() }).describe("Response model indicating if a role has a private key.")
|
|
8
|
+
output: z.object({ has_private_key: z.boolean().describe("Whether the service user role has a private key configured").nullable() }).passthrough().describe("Response model indicating if a role has a private key.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { spokiCheckRolePrivateKey };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-role-private-key.mjs","names":[],"sources":["../../src/actions/check-role-private-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiCheckRolePrivateKeyInput = z.object({\n role_id: z.number().int().describe(\"The unique identifier of the role to check for private key\"),\n}).describe(\"Request model for checking if a role has a private key.\");\nexport const SpokiCheckRolePrivateKeyOutput = z.object({\n has_private_key: z.boolean().describe(\"Whether the service user role has a private key configured\").nullable(),\n}).describe(\"Response model indicating if a role has a private key.\");\n\nexport const spokiCheckRolePrivateKey = action(\"SPOKI_CHECK_ROLE_PRIVATE_KEY\", {\n slug: \"spoki-check-role-private-key\",\n name: \"Check Role Private Key\",\n description: \"Tool to check if a service user role has a private key configured. Use when you need to verify key status for a role. Rate limit: 10 requests per minute.\",\n input: SpokiCheckRolePrivateKeyInput,\n output: SpokiCheckRolePrivateKeyOutput,\n});\n"],"mappings":";;AAWA,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX2C,EAAE,OAAO,EACpD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,EACjG,CAAC,CAAC,CAAC,SAAS,yDASH;CACP,QAT4C,EAAE,OAAO,EACrD,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"check-role-private-key.mjs","names":[],"sources":["../../src/actions/check-role-private-key.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiCheckRolePrivateKeyInput = z.object({\n role_id: z.number().int().describe(\"The unique identifier of the role to check for private key\"),\n}).describe(\"Request model for checking if a role has a private key.\");\nexport const SpokiCheckRolePrivateKeyOutput = z.object({\n has_private_key: z.boolean().describe(\"Whether the service user role has a private key configured\").nullable(),\n}).passthrough().describe(\"Response model indicating if a role has a private key.\");\n\nexport const spokiCheckRolePrivateKey = action(\"SPOKI_CHECK_ROLE_PRIVATE_KEY\", {\n slug: \"spoki-check-role-private-key\",\n name: \"Check Role Private Key\",\n description: \"Tool to check if a service user role has a private key configured. Use when you need to verify key status for a role. Rate limit: 10 requests per minute.\",\n input: SpokiCheckRolePrivateKeyInput,\n output: SpokiCheckRolePrivateKeyOutput,\n});\n"],"mappings":";;AAWA,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX2C,EAAE,OAAO,EACpD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,EACjG,CAAC,CAAC,CAAC,SAAS,yDASH;CACP,QAT4C,EAAE,OAAO,EACrD,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
|
|
@@ -6,14 +6,14 @@ const SpokiCloneTemplate_TemplateComponentSchema = zod.z.object({
|
|
|
6
6
|
text: zod.z.string().describe("Text content of the component").nullable(),
|
|
7
7
|
format: zod.z.string().describe("Format of the component, e.g., 'text'").nullable().optional(),
|
|
8
8
|
component_type: zod.z.string().describe("Type of the component, e.g., 'body'").nullable()
|
|
9
|
-
}).describe("Component for template parts such as header, body, footer.");
|
|
9
|
+
}).passthrough().describe("Component for template parts such as header, body, footer.");
|
|
10
10
|
const SpokiCloneTemplate_TemplateButtonSchema = zod.z.object({
|
|
11
11
|
url: zod.z.string().describe("URL for link button, if applicable").nullable().optional(),
|
|
12
12
|
text: zod.z.string().describe("Text displayed on the button").nullable(),
|
|
13
13
|
order: zod.z.number().int().describe("Order index of the button").nullable(),
|
|
14
14
|
button_type: zod.z.string().describe("Type of button, e.g., 'quick_reply'").nullable(),
|
|
15
15
|
phone_number: zod.z.string().describe("Phone number for call button, if applicable").nullable().optional()
|
|
16
|
-
}).describe("Button definition within a template localization.");
|
|
16
|
+
}).passthrough().describe("Button definition within a template localization.");
|
|
17
17
|
const SpokiCloneTemplate_TemplateLocalizationSchema = zod.z.object({
|
|
18
18
|
status: zod.z.string().describe("Approval status of this localization").nullable(),
|
|
19
19
|
language: zod.z.string().describe("Language code of this localization, e.g., 'it'").nullable(),
|
|
@@ -26,7 +26,7 @@ const SpokiCloneTemplate_TemplateLocalizationSchema = zod.z.object({
|
|
|
26
26
|
header_template_component: SpokiCloneTemplate_TemplateComponentSchema.nullable().optional(),
|
|
27
27
|
templatebuttoncomponent_set: zod.z.array(SpokiCloneTemplate_TemplateButtonSchema).describe("List of buttons defined for this localization").nullable().optional(),
|
|
28
28
|
templatecarouselcomponent_set: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of carousel components, if any").nullable().optional()
|
|
29
|
-
}).describe("Localization details for a template.");
|
|
29
|
+
}).passthrough().describe("Localization details for a template.");
|
|
30
30
|
const SpokiCloneTemplateOutput = zod.z.object({
|
|
31
31
|
id: zod.z.number().int().describe("Template unique identifier").nullable(),
|
|
32
32
|
name: zod.z.string().describe("Template name").nullable(),
|
|
@@ -38,7 +38,7 @@ const SpokiCloneTemplateOutput = zod.z.object({
|
|
|
38
38
|
customfield_set: zod.z.array(zod.z.string()).describe("List of dynamic field codes used in the template").nullable().optional(),
|
|
39
39
|
template_groups: zod.z.array(zod.z.number().int()).describe("List of template group IDs, if any").nullable().optional(),
|
|
40
40
|
templatelocalization_set: zod.z.array(SpokiCloneTemplate_TemplateLocalizationSchema).describe("Localizations available for this template")
|
|
41
|
-
}).describe("Full representation of a cloned template returned by Spoki.");
|
|
41
|
+
}).passthrough().describe("Full representation of a cloned template returned by Spoki.");
|
|
42
42
|
const spokiCloneTemplate = require_action.action("SPOKI_CLONE_TEMPLATE", {
|
|
43
43
|
slug: "spoki-clone-template",
|
|
44
44
|
name: "Clone Template",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-template.cjs","names":["z","action"],"sources":["../../src/actions/clone-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiCloneTemplateInput = z.object({\n template_id: z.number().int().describe(\"The template ID to clone\"),\n}).describe(\"Request model for cloning a template.\");\nconst SpokiCloneTemplate_TemplateComponentSchema = z.object({\n text: z.string().describe(\"Text content of the component\").nullable(),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").nullable().optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body'\").nullable(),\n}).describe(\"Component for template parts such as header, body, footer.\");\nconst SpokiCloneTemplate_TemplateButtonSchema = z.object({\n url: z.string().describe(\"URL for link button, if applicable\").nullable().optional(),\n text: z.string().describe(\"Text displayed on the button\").nullable(),\n order: z.number().int().describe(\"Order index of the button\").nullable(),\n button_type: z.string().describe(\"Type of button, e.g., 'quick_reply'\").nullable(),\n phone_number: z.string().describe(\"Phone number for call button, if applicable\").nullable().optional(),\n}).describe(\"Button definition within a template localization.\");\nconst SpokiCloneTemplate_TemplateLocalizationSchema = z.object({\n status: z.string().describe(\"Approval status of this localization\").nullable(),\n language: z.string().describe(\"Language code of this localization, e.g., 'it'\").nullable(),\n rejection_reason: z.string().describe(\"Reason for rejection, if any\").nullable().optional(),\n default_header_media: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n example_header_media: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n example_custom_fields: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n body_template_component: SpokiCloneTemplate_TemplateComponentSchema.nullable().optional(),\n footer_template_component: SpokiCloneTemplate_TemplateComponentSchema.nullable().optional(),\n header_template_component: SpokiCloneTemplate_TemplateComponentSchema.nullable().optional(),\n templatebuttoncomponent_set: z.array(SpokiCloneTemplate_TemplateButtonSchema).describe(\"List of buttons defined for this localization\").nullable().optional(),\n templatecarouselcomponent_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of carousel components, if any\").nullable().optional(),\n}).describe(\"Localization details for a template.\");\nexport const SpokiCloneTemplateOutput = z.object({\n id: z.number().int().describe(\"Template unique identifier\").nullable(),\n name: z.string().describe(\"Template name\").nullable(),\n category: z.string().describe(\"Template category, e.g., 'ACCOUNT_UPDATE'\").nullable(),\n integration: z.number().int().describe(\"Integration ID associated with the template\").nullable().optional(),\n is_approved: z.boolean().describe(\"Whether the template is approved\").nullable(),\n is_favorite: z.boolean().describe(\"Whether the template is marked as favorite\").nullable(),\n subcategory: z.string().describe(\"Template subcategory, if any\").nullable().optional(),\n customfield_set: z.array(z.string()).describe(\"List of dynamic field codes used in the template\").nullable().optional(),\n template_groups: z.array(z.number().int()).describe(\"List of template group IDs, if any\").nullable().optional(),\n templatelocalization_set: z.array(SpokiCloneTemplate_TemplateLocalizationSchema).describe(\"Localizations available for this template\"),\n}).describe(\"Full representation of a cloned template returned by Spoki.\");\n\nexport const spokiCloneTemplate = action(\"SPOKI_CLONE_TEMPLATE\", {\n slug: \"spoki-clone-template\",\n name: \"Clone Template\",\n description: \"Tool to create a duplicate copy of an existing template. Clone starts in DRAFT status. Use when you need to duplicate a template by ID.\",\n input: SpokiCloneTemplateInput,\n output: SpokiCloneTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,EACnE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,4DAA4D;
|
|
1
|
+
{"version":3,"file":"clone-template.cjs","names":["z","action"],"sources":["../../src/actions/clone-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiCloneTemplateInput = z.object({\n template_id: z.number().int().describe(\"The template ID to clone\"),\n}).describe(\"Request model for cloning a template.\");\nconst SpokiCloneTemplate_TemplateComponentSchema = z.object({\n text: z.string().describe(\"Text content of the component\").nullable(),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").nullable().optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body'\").nullable(),\n}).passthrough().describe(\"Component for template parts such as header, body, footer.\");\nconst SpokiCloneTemplate_TemplateButtonSchema = z.object({\n url: z.string().describe(\"URL for link button, if applicable\").nullable().optional(),\n text: z.string().describe(\"Text displayed on the button\").nullable(),\n order: z.number().int().describe(\"Order index of the button\").nullable(),\n button_type: z.string().describe(\"Type of button, e.g., 'quick_reply'\").nullable(),\n phone_number: z.string().describe(\"Phone number for call button, if applicable\").nullable().optional(),\n}).passthrough().describe(\"Button definition within a template localization.\");\nconst SpokiCloneTemplate_TemplateLocalizationSchema = z.object({\n status: z.string().describe(\"Approval status of this localization\").nullable(),\n language: z.string().describe(\"Language code of this localization, e.g., 'it'\").nullable(),\n rejection_reason: z.string().describe(\"Reason for rejection, if any\").nullable().optional(),\n default_header_media: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n example_header_media: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n example_custom_fields: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n body_template_component: SpokiCloneTemplate_TemplateComponentSchema.nullable().optional(),\n footer_template_component: SpokiCloneTemplate_TemplateComponentSchema.nullable().optional(),\n header_template_component: SpokiCloneTemplate_TemplateComponentSchema.nullable().optional(),\n templatebuttoncomponent_set: z.array(SpokiCloneTemplate_TemplateButtonSchema).describe(\"List of buttons defined for this localization\").nullable().optional(),\n templatecarouselcomponent_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of carousel components, if any\").nullable().optional(),\n}).passthrough().describe(\"Localization details for a template.\");\nexport const SpokiCloneTemplateOutput = z.object({\n id: z.number().int().describe(\"Template unique identifier\").nullable(),\n name: z.string().describe(\"Template name\").nullable(),\n category: z.string().describe(\"Template category, e.g., 'ACCOUNT_UPDATE'\").nullable(),\n integration: z.number().int().describe(\"Integration ID associated with the template\").nullable().optional(),\n is_approved: z.boolean().describe(\"Whether the template is approved\").nullable(),\n is_favorite: z.boolean().describe(\"Whether the template is marked as favorite\").nullable(),\n subcategory: z.string().describe(\"Template subcategory, if any\").nullable().optional(),\n customfield_set: z.array(z.string()).describe(\"List of dynamic field codes used in the template\").nullable().optional(),\n template_groups: z.array(z.number().int()).describe(\"List of template group IDs, if any\").nullable().optional(),\n templatelocalization_set: z.array(SpokiCloneTemplate_TemplateLocalizationSchema).describe(\"Localizations available for this template\"),\n}).passthrough().describe(\"Full representation of a cloned template returned by Spoki.\");\n\nexport const spokiCloneTemplate = action(\"SPOKI_CLONE_TEMPLATE\", {\n slug: \"spoki-clone-template\",\n name: \"Clone Template\",\n description: \"Tool to create a duplicate copy of an existing template. Clone starts in DRAFT status. Use when you need to duplicate a template by ID.\",\n input: SpokiCloneTemplateInput,\n output: SpokiCloneTemplateOutput,\n});\n"],"mappings":"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"}
|
|
@@ -25,27 +25,27 @@ declare const SpokiCloneTemplateOutput: z.ZodObject<{
|
|
|
25
25
|
text: z.ZodNullable<z.ZodString>;
|
|
26
26
|
format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
component_type: z.ZodNullable<z.ZodString>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
29
|
footer_template_component: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
30
30
|
text: z.ZodNullable<z.ZodString>;
|
|
31
31
|
format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
component_type: z.ZodNullable<z.ZodString>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>>;
|
|
34
34
|
header_template_component: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
35
|
text: z.ZodNullable<z.ZodString>;
|
|
36
36
|
format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
component_type: z.ZodNullable<z.ZodString>;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>>>;
|
|
39
39
|
templatebuttoncomponent_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
40
40
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
text: z.ZodNullable<z.ZodString>;
|
|
42
42
|
order: z.ZodNullable<z.ZodNumber>;
|
|
43
43
|
button_type: z.ZodNullable<z.ZodString>;
|
|
44
44
|
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>>>;
|
|
46
46
|
templatecarouselcomponent_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
47
|
-
}, z.core.$
|
|
48
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>>;
|
|
48
|
+
}, z.core.$loose>;
|
|
49
49
|
declare const spokiCloneTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
50
|
template_id: number;
|
|
51
51
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -25,27 +25,27 @@ declare const SpokiCloneTemplateOutput: z.ZodObject<{
|
|
|
25
25
|
text: z.ZodNullable<z.ZodString>;
|
|
26
26
|
format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
component_type: z.ZodNullable<z.ZodString>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
29
|
footer_template_component: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
30
30
|
text: z.ZodNullable<z.ZodString>;
|
|
31
31
|
format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
component_type: z.ZodNullable<z.ZodString>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>>;
|
|
34
34
|
header_template_component: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
35
|
text: z.ZodNullable<z.ZodString>;
|
|
36
36
|
format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
component_type: z.ZodNullable<z.ZodString>;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>>>;
|
|
39
39
|
templatebuttoncomponent_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
40
40
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
text: z.ZodNullable<z.ZodString>;
|
|
42
42
|
order: z.ZodNullable<z.ZodNumber>;
|
|
43
43
|
button_type: z.ZodNullable<z.ZodString>;
|
|
44
44
|
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>>>;
|
|
46
46
|
templatecarouselcomponent_set: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
47
|
-
}, z.core.$
|
|
48
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>>;
|
|
48
|
+
}, z.core.$loose>;
|
|
49
49
|
declare const spokiCloneTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
50
|
template_id: number;
|
|
51
51
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -6,14 +6,14 @@ const SpokiCloneTemplate_TemplateComponentSchema = z.object({
|
|
|
6
6
|
text: z.string().describe("Text content of the component").nullable(),
|
|
7
7
|
format: z.string().describe("Format of the component, e.g., 'text'").nullable().optional(),
|
|
8
8
|
component_type: z.string().describe("Type of the component, e.g., 'body'").nullable()
|
|
9
|
-
}).describe("Component for template parts such as header, body, footer.");
|
|
9
|
+
}).passthrough().describe("Component for template parts such as header, body, footer.");
|
|
10
10
|
const SpokiCloneTemplate_TemplateButtonSchema = z.object({
|
|
11
11
|
url: z.string().describe("URL for link button, if applicable").nullable().optional(),
|
|
12
12
|
text: z.string().describe("Text displayed on the button").nullable(),
|
|
13
13
|
order: z.number().int().describe("Order index of the button").nullable(),
|
|
14
14
|
button_type: z.string().describe("Type of button, e.g., 'quick_reply'").nullable(),
|
|
15
15
|
phone_number: z.string().describe("Phone number for call button, if applicable").nullable().optional()
|
|
16
|
-
}).describe("Button definition within a template localization.");
|
|
16
|
+
}).passthrough().describe("Button definition within a template localization.");
|
|
17
17
|
const SpokiCloneTemplate_TemplateLocalizationSchema = z.object({
|
|
18
18
|
status: z.string().describe("Approval status of this localization").nullable(),
|
|
19
19
|
language: z.string().describe("Language code of this localization, e.g., 'it'").nullable(),
|
|
@@ -26,7 +26,7 @@ const SpokiCloneTemplate_TemplateLocalizationSchema = z.object({
|
|
|
26
26
|
header_template_component: SpokiCloneTemplate_TemplateComponentSchema.nullable().optional(),
|
|
27
27
|
templatebuttoncomponent_set: z.array(SpokiCloneTemplate_TemplateButtonSchema).describe("List of buttons defined for this localization").nullable().optional(),
|
|
28
28
|
templatecarouselcomponent_set: z.array(z.record(z.string(), z.unknown())).describe("List of carousel components, if any").nullable().optional()
|
|
29
|
-
}).describe("Localization details for a template.");
|
|
29
|
+
}).passthrough().describe("Localization details for a template.");
|
|
30
30
|
const spokiCloneTemplate = action("SPOKI_CLONE_TEMPLATE", {
|
|
31
31
|
slug: "spoki-clone-template",
|
|
32
32
|
name: "Clone Template",
|
|
@@ -43,7 +43,7 @@ const spokiCloneTemplate = action("SPOKI_CLONE_TEMPLATE", {
|
|
|
43
43
|
customfield_set: z.array(z.string()).describe("List of dynamic field codes used in the template").nullable().optional(),
|
|
44
44
|
template_groups: z.array(z.number().int()).describe("List of template group IDs, if any").nullable().optional(),
|
|
45
45
|
templatelocalization_set: z.array(SpokiCloneTemplate_TemplateLocalizationSchema).describe("Localizations available for this template")
|
|
46
|
-
}).describe("Full representation of a cloned template returned by Spoki.")
|
|
46
|
+
}).passthrough().describe("Full representation of a cloned template returned by Spoki.")
|
|
47
47
|
});
|
|
48
48
|
//#endregion
|
|
49
49
|
export { spokiCloneTemplate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-template.mjs","names":[],"sources":["../../src/actions/clone-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiCloneTemplateInput = z.object({\n template_id: z.number().int().describe(\"The template ID to clone\"),\n}).describe(\"Request model for cloning a template.\");\nconst SpokiCloneTemplate_TemplateComponentSchema = z.object({\n text: z.string().describe(\"Text content of the component\").nullable(),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").nullable().optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body'\").nullable(),\n}).describe(\"Component for template parts such as header, body, footer.\");\nconst SpokiCloneTemplate_TemplateButtonSchema = z.object({\n url: z.string().describe(\"URL for link button, if applicable\").nullable().optional(),\n text: z.string().describe(\"Text displayed on the button\").nullable(),\n order: z.number().int().describe(\"Order index of the button\").nullable(),\n button_type: z.string().describe(\"Type of button, e.g., 'quick_reply'\").nullable(),\n phone_number: z.string().describe(\"Phone number for call button, if applicable\").nullable().optional(),\n}).describe(\"Button definition within a template localization.\");\nconst SpokiCloneTemplate_TemplateLocalizationSchema = z.object({\n status: z.string().describe(\"Approval status of this localization\").nullable(),\n language: z.string().describe(\"Language code of this localization, e.g., 'it'\").nullable(),\n rejection_reason: z.string().describe(\"Reason for rejection, if any\").nullable().optional(),\n default_header_media: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n example_header_media: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n example_custom_fields: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n body_template_component: SpokiCloneTemplate_TemplateComponentSchema.nullable().optional(),\n footer_template_component: SpokiCloneTemplate_TemplateComponentSchema.nullable().optional(),\n header_template_component: SpokiCloneTemplate_TemplateComponentSchema.nullable().optional(),\n templatebuttoncomponent_set: z.array(SpokiCloneTemplate_TemplateButtonSchema).describe(\"List of buttons defined for this localization\").nullable().optional(),\n templatecarouselcomponent_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of carousel components, if any\").nullable().optional(),\n}).describe(\"Localization details for a template.\");\nexport const SpokiCloneTemplateOutput = z.object({\n id: z.number().int().describe(\"Template unique identifier\").nullable(),\n name: z.string().describe(\"Template name\").nullable(),\n category: z.string().describe(\"Template category, e.g., 'ACCOUNT_UPDATE'\").nullable(),\n integration: z.number().int().describe(\"Integration ID associated with the template\").nullable().optional(),\n is_approved: z.boolean().describe(\"Whether the template is approved\").nullable(),\n is_favorite: z.boolean().describe(\"Whether the template is marked as favorite\").nullable(),\n subcategory: z.string().describe(\"Template subcategory, if any\").nullable().optional(),\n customfield_set: z.array(z.string()).describe(\"List of dynamic field codes used in the template\").nullable().optional(),\n template_groups: z.array(z.number().int()).describe(\"List of template group IDs, if any\").nullable().optional(),\n templatelocalization_set: z.array(SpokiCloneTemplate_TemplateLocalizationSchema).describe(\"Localizations available for this template\"),\n}).describe(\"Full representation of a cloned template returned by Spoki.\");\n\nexport const spokiCloneTemplate = action(\"SPOKI_CLONE_TEMPLATE\", {\n slug: \"spoki-clone-template\",\n name: \"Clone Template\",\n description: \"Tool to create a duplicate copy of an existing template. Clone starts in DRAFT status. Use when you need to duplicate a template by ID.\",\n input: SpokiCloneTemplateInput,\n output: SpokiCloneTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,EACnE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,4DAA4D;
|
|
1
|
+
{"version":3,"file":"clone-template.mjs","names":[],"sources":["../../src/actions/clone-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiCloneTemplateInput = z.object({\n template_id: z.number().int().describe(\"The template ID to clone\"),\n}).describe(\"Request model for cloning a template.\");\nconst SpokiCloneTemplate_TemplateComponentSchema = z.object({\n text: z.string().describe(\"Text content of the component\").nullable(),\n format: z.string().describe(\"Format of the component, e.g., 'text'\").nullable().optional(),\n component_type: z.string().describe(\"Type of the component, e.g., 'body'\").nullable(),\n}).passthrough().describe(\"Component for template parts such as header, body, footer.\");\nconst SpokiCloneTemplate_TemplateButtonSchema = z.object({\n url: z.string().describe(\"URL for link button, if applicable\").nullable().optional(),\n text: z.string().describe(\"Text displayed on the button\").nullable(),\n order: z.number().int().describe(\"Order index of the button\").nullable(),\n button_type: z.string().describe(\"Type of button, e.g., 'quick_reply'\").nullable(),\n phone_number: z.string().describe(\"Phone number for call button, if applicable\").nullable().optional(),\n}).passthrough().describe(\"Button definition within a template localization.\");\nconst SpokiCloneTemplate_TemplateLocalizationSchema = z.object({\n status: z.string().describe(\"Approval status of this localization\").nullable(),\n language: z.string().describe(\"Language code of this localization, e.g., 'it'\").nullable(),\n rejection_reason: z.string().describe(\"Reason for rejection, if any\").nullable().optional(),\n default_header_media: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n example_header_media: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n example_custom_fields: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),\n body_template_component: SpokiCloneTemplate_TemplateComponentSchema.nullable().optional(),\n footer_template_component: SpokiCloneTemplate_TemplateComponentSchema.nullable().optional(),\n header_template_component: SpokiCloneTemplate_TemplateComponentSchema.nullable().optional(),\n templatebuttoncomponent_set: z.array(SpokiCloneTemplate_TemplateButtonSchema).describe(\"List of buttons defined for this localization\").nullable().optional(),\n templatecarouselcomponent_set: z.array(z.record(z.string(), z.unknown())).describe(\"List of carousel components, if any\").nullable().optional(),\n}).passthrough().describe(\"Localization details for a template.\");\nexport const SpokiCloneTemplateOutput = z.object({\n id: z.number().int().describe(\"Template unique identifier\").nullable(),\n name: z.string().describe(\"Template name\").nullable(),\n category: z.string().describe(\"Template category, e.g., 'ACCOUNT_UPDATE'\").nullable(),\n integration: z.number().int().describe(\"Integration ID associated with the template\").nullable().optional(),\n is_approved: z.boolean().describe(\"Whether the template is approved\").nullable(),\n is_favorite: z.boolean().describe(\"Whether the template is marked as favorite\").nullable(),\n subcategory: z.string().describe(\"Template subcategory, if any\").nullable().optional(),\n customfield_set: z.array(z.string()).describe(\"List of dynamic field codes used in the template\").nullable().optional(),\n template_groups: z.array(z.number().int()).describe(\"List of template group IDs, if any\").nullable().optional(),\n templatelocalization_set: z.array(SpokiCloneTemplate_TemplateLocalizationSchema).describe(\"Localizations available for this template\"),\n}).passthrough().describe(\"Full representation of a cloned template returned by Spoki.\");\n\nexport const spokiCloneTemplate = action(\"SPOKI_CLONE_TEMPLATE\", {\n slug: \"spoki-clone-template\",\n name: \"Clone Template\",\n description: \"Tool to create a duplicate copy of an existing template. Clone starts in DRAFT status. Use when you need to duplicate a template by ID.\",\n input: SpokiCloneTemplateInput,\n output: SpokiCloneTemplateOutput,\n});\n"],"mappings":"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"}
|
|
@@ -6,7 +6,7 @@ const SpokiCreateAccountOnboardingLinkOutput = zod.z.object({
|
|
|
6
6
|
lang: zod.z.string().describe("The language code for the onboarding interface").nullable(),
|
|
7
7
|
auth_token: zod.z.string().describe("The authentication token included in the redirect URL").nullable(),
|
|
8
8
|
redirect_url: zod.z.string().describe("The generated onboarding redirect URL for the account with authentication token").nullable()
|
|
9
|
-
}).describe("Response model for account onboarding link creation.");
|
|
9
|
+
}).passthrough().describe("Response model for account onboarding link creation.");
|
|
10
10
|
const spokiCreateAccountOnboardingLink = require_action.action("SPOKI_CREATE_ACCOUNT_ONBOARDING_LINK", {
|
|
11
11
|
slug: "spoki-create-account-onboarding-link",
|
|
12
12
|
name: "Create Account Onboarding Link",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-account-onboarding-link.cjs","names":["z","action"],"sources":["../../src/actions/create-account-onboarding-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiCreateAccountOnboardingLinkInput = z.object({\n account_id: z.number().int().describe(\"The unique identifier of the Spoki account to create an onboarding link for. Must be a valid account ID accessible to the authenticated user.\"),\n}).describe(\"Request model for creating an onboarding link for a specific account.\");\nexport const SpokiCreateAccountOnboardingLinkOutput = z.object({\n lang: z.string().describe(\"The language code for the onboarding interface\").nullable(),\n auth_token: z.string().describe(\"The authentication token included in the redirect URL\").nullable(),\n redirect_url: z.string().describe(\"The generated onboarding redirect URL for the account with authentication token\").nullable(),\n}).describe(\"Response model for account onboarding link creation.\");\n\nexport const spokiCreateAccountOnboardingLink = action(\"SPOKI_CREATE_ACCOUNT_ONBOARDING_LINK\", {\n slug: \"spoki-create-account-onboarding-link\",\n name: \"Create Account Onboarding Link\",\n description: \"Tool to create an onboarding link for a specific Spoki account. Use when you need to generate a setup link to help users configure their account.\",\n input: SpokiCreateAccountOnboardingLinkInput,\n output: SpokiCreateAccountOnboardingLinkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO,EAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+IAA+I,EACvL,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,SAAS,sDAAsD;
|
|
1
|
+
{"version":3,"file":"create-account-onboarding-link.cjs","names":["z","action"],"sources":["../../src/actions/create-account-onboarding-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiCreateAccountOnboardingLinkInput = z.object({\n account_id: z.number().int().describe(\"The unique identifier of the Spoki account to create an onboarding link for. Must be a valid account ID accessible to the authenticated user.\"),\n}).describe(\"Request model for creating an onboarding link for a specific account.\");\nexport const SpokiCreateAccountOnboardingLinkOutput = z.object({\n lang: z.string().describe(\"The language code for the onboarding interface\").nullable(),\n auth_token: z.string().describe(\"The authentication token included in the redirect URL\").nullable(),\n redirect_url: z.string().describe(\"The generated onboarding redirect URL for the account with authentication token\").nullable(),\n}).passthrough().describe(\"Response model for account onboarding link creation.\");\n\nexport const spokiCreateAccountOnboardingLink = action(\"SPOKI_CREATE_ACCOUNT_ONBOARDING_LINK\", {\n slug: \"spoki-create-account-onboarding-link\",\n name: \"Create Account Onboarding Link\",\n description: \"Tool to create an onboarding link for a specific Spoki account. Use when you need to generate a setup link to help users configure their account.\",\n input: SpokiCreateAccountOnboardingLinkInput,\n output: SpokiCreateAccountOnboardingLinkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO,EAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+IAA+I,EACvL,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ declare const SpokiCreateAccountOnboardingLinkOutput: z.ZodObject<{
|
|
|
8
8
|
lang: z.ZodNullable<z.ZodString>;
|
|
9
9
|
auth_token: z.ZodNullable<z.ZodString>;
|
|
10
10
|
redirect_url: z.ZodNullable<z.ZodString>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const spokiCreateAccountOnboardingLink: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
13
|
account_id: number;
|
|
14
14
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -8,7 +8,7 @@ declare const SpokiCreateAccountOnboardingLinkOutput: z.ZodObject<{
|
|
|
8
8
|
lang: z.ZodNullable<z.ZodString>;
|
|
9
9
|
auth_token: z.ZodNullable<z.ZodString>;
|
|
10
10
|
redirect_url: z.ZodNullable<z.ZodString>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>;
|
|
12
12
|
declare const spokiCreateAccountOnboardingLink: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
13
|
account_id: number;
|
|
14
14
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -9,7 +9,7 @@ const spokiCreateAccountOnboardingLink = action("SPOKI_CREATE_ACCOUNT_ONBOARDING
|
|
|
9
9
|
lang: z.string().describe("The language code for the onboarding interface").nullable(),
|
|
10
10
|
auth_token: z.string().describe("The authentication token included in the redirect URL").nullable(),
|
|
11
11
|
redirect_url: z.string().describe("The generated onboarding redirect URL for the account with authentication token").nullable()
|
|
12
|
-
}).describe("Response model for account onboarding link creation.")
|
|
12
|
+
}).passthrough().describe("Response model for account onboarding link creation.")
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
15
15
|
export { spokiCreateAccountOnboardingLink };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-account-onboarding-link.mjs","names":[],"sources":["../../src/actions/create-account-onboarding-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiCreateAccountOnboardingLinkInput = z.object({\n account_id: z.number().int().describe(\"The unique identifier of the Spoki account to create an onboarding link for. Must be a valid account ID accessible to the authenticated user.\"),\n}).describe(\"Request model for creating an onboarding link for a specific account.\");\nexport const SpokiCreateAccountOnboardingLinkOutput = z.object({\n lang: z.string().describe(\"The language code for the onboarding interface\").nullable(),\n auth_token: z.string().describe(\"The authentication token included in the redirect URL\").nullable(),\n redirect_url: z.string().describe(\"The generated onboarding redirect URL for the account with authentication token\").nullable(),\n}).describe(\"Response model for account onboarding link creation.\");\n\nexport const spokiCreateAccountOnboardingLink = action(\"SPOKI_CREATE_ACCOUNT_ONBOARDING_LINK\", {\n slug: \"spoki-create-account-onboarding-link\",\n name: \"Create Account Onboarding Link\",\n description: \"Tool to create an onboarding link for a specific Spoki account. Use when you need to generate a setup link to help users configure their account.\",\n input: SpokiCreateAccountOnboardingLinkInput,\n output: SpokiCreateAccountOnboardingLinkOutput,\n});\n"],"mappings":";;AAaA,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbmD,EAAE,OAAO,EAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+IAA+I,EACvL,CAAC,CAAC,CAAC,SAAS,uEAWH;CACP,QAXoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAClG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"create-account-onboarding-link.mjs","names":[],"sources":["../../src/actions/create-account-onboarding-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiCreateAccountOnboardingLinkInput = z.object({\n account_id: z.number().int().describe(\"The unique identifier of the Spoki account to create an onboarding link for. Must be a valid account ID accessible to the authenticated user.\"),\n}).describe(\"Request model for creating an onboarding link for a specific account.\");\nexport const SpokiCreateAccountOnboardingLinkOutput = z.object({\n lang: z.string().describe(\"The language code for the onboarding interface\").nullable(),\n auth_token: z.string().describe(\"The authentication token included in the redirect URL\").nullable(),\n redirect_url: z.string().describe(\"The generated onboarding redirect URL for the account with authentication token\").nullable(),\n}).passthrough().describe(\"Response model for account onboarding link creation.\");\n\nexport const spokiCreateAccountOnboardingLink = action(\"SPOKI_CREATE_ACCOUNT_ONBOARDING_LINK\", {\n slug: \"spoki-create-account-onboarding-link\",\n name: \"Create Account Onboarding Link\",\n description: \"Tool to create an onboarding link for a specific Spoki account. Use when you need to generate a setup link to help users configure their account.\",\n input: SpokiCreateAccountOnboardingLinkInput,\n output: SpokiCreateAccountOnboardingLinkOutput,\n});\n"],"mappings":";;AAaA,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbmD,EAAE,OAAO,EAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+IAA+I,EACvL,CAAC,CAAC,CAAC,SAAS,uEAWH;CACP,QAXoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAClG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
|
|
@@ -18,7 +18,7 @@ const SpokiCreateCustomFieldOutput = zod.z.object({
|
|
|
18
18
|
example: zod.z.string().describe("Example or default value for the custom field.").nullable(),
|
|
19
19
|
is_linked: zod.z.boolean().describe("Indicates whether this custom field is linked/active in the system.").nullable(),
|
|
20
20
|
field_type: zod.z.number().int().describe("Data type: 1=TEXT, 2=DATE, 3=DATETIME.").nullable()
|
|
21
|
-
}).describe("Response containing details of the newly created custom field.\nReturns HTTP 201 Created on success with the created field information.");
|
|
21
|
+
}).passthrough().describe("Response containing details of the newly created custom field.\nReturns HTTP 201 Created on success with the created field information.");
|
|
22
22
|
const spokiCreateCustomField = require_action.action("SPOKI_CREATE_CUSTOM_FIELD", {
|
|
23
23
|
slug: "spoki-create-custom-field",
|
|
24
24
|
name: "Create Custom Field",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiCreateCustomFieldInput = z.object({\n code: z.string().describe(\"Programmatic identifier for the custom field. Must be uppercase with underscores, unique across all custom fields, and not use reserved keywords. Use this code when referencing the field in API calls.\"),\n label: z.string().describe(\"Human-readable label for the custom field. Must be uppercase, unique across all custom fields, and not use reserved keywords. This label will be visible in the Spoki UI.\"),\n example: z.string().describe(\"Example or default value for the custom field. Should match the field_type: plain text for TEXT, date format 'YYYY-MM-DD' for DATE, datetime format 'YYYY-MM-DD HH:MM:SS' for DATETIME.\"),\n field_type: z.union([z.literal(1), z.literal(2), z.literal(3)]).describe(\"Data type for the custom field. 1 = TEXT (string values), 2 = DATE (date-only values like '2024-01-15'), 3 = DATETIME (date and time values like '2024-01-15 10:30:00').\"),\n}).describe(\"Request model to create a new custom field in Spoki.\\nCustom fields allow you to store additional structured data on contacts.\");\nexport const SpokiCreateCustomFieldOutput = z.object({\n id: z.number().int().describe(\"Unique identifier assigned to the custom field by Spoki.\").nullable(),\n code: z.string().describe(\"Programmatic identifier of the custom field.\").nullable(),\n label: z.string().describe(\"Human-readable label of the custom field.\").nullable(),\n example: z.string().describe(\"Example or default value for the custom field.\").nullable(),\n is_linked: z.boolean().describe(\"Indicates whether this custom field is linked/active in the system.\").nullable(),\n field_type: z.number().int().describe(\"Data type: 1=TEXT, 2=DATE, 3=DATETIME.\").nullable(),\n}).describe(\"Response containing details of the newly created custom field.\\nReturns HTTP 201 Created on success with the created field information.\");\n\nexport const spokiCreateCustomField = action(\"SPOKI_CREATE_CUSTOM_FIELD\", {\n slug: \"spoki-create-custom-field\",\n name: \"Create Custom Field\",\n description: \"Creates a new custom field in Spoki for storing additional contact data. Use this action when you need to define extra data points that can be stored on contacts beyond the standard fields. Custom fields are useful for tracking business-specific information like customer IDs, preferences, subscription dates, or any other structured data. The custom field will be available for use immediately after creation across contact management, automation workflows, and API operations. Ensure the label and code are unique and descriptive for easy identification and usage.\",\n input: SpokiCreateCustomFieldInput,\n output: SpokiCreateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0MAA0M;CACpO,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K;CACtM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;CACtN,YAAYA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,0KAA0K;AACrP,CAAC,CAAC,CAAC,SAAS,gIAAgI;AAC5I,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAChH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,yIAAyI;
|
|
1
|
+
{"version":3,"file":"create-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiCreateCustomFieldInput = z.object({\n code: z.string().describe(\"Programmatic identifier for the custom field. Must be uppercase with underscores, unique across all custom fields, and not use reserved keywords. Use this code when referencing the field in API calls.\"),\n label: z.string().describe(\"Human-readable label for the custom field. Must be uppercase, unique across all custom fields, and not use reserved keywords. This label will be visible in the Spoki UI.\"),\n example: z.string().describe(\"Example or default value for the custom field. Should match the field_type: plain text for TEXT, date format 'YYYY-MM-DD' for DATE, datetime format 'YYYY-MM-DD HH:MM:SS' for DATETIME.\"),\n field_type: z.union([z.literal(1), z.literal(2), z.literal(3)]).describe(\"Data type for the custom field. 1 = TEXT (string values), 2 = DATE (date-only values like '2024-01-15'), 3 = DATETIME (date and time values like '2024-01-15 10:30:00').\"),\n}).describe(\"Request model to create a new custom field in Spoki.\\nCustom fields allow you to store additional structured data on contacts.\");\nexport const SpokiCreateCustomFieldOutput = z.object({\n id: z.number().int().describe(\"Unique identifier assigned to the custom field by Spoki.\").nullable(),\n code: z.string().describe(\"Programmatic identifier of the custom field.\").nullable(),\n label: z.string().describe(\"Human-readable label of the custom field.\").nullable(),\n example: z.string().describe(\"Example or default value for the custom field.\").nullable(),\n is_linked: z.boolean().describe(\"Indicates whether this custom field is linked/active in the system.\").nullable(),\n field_type: z.number().int().describe(\"Data type: 1=TEXT, 2=DATE, 3=DATETIME.\").nullable(),\n}).passthrough().describe(\"Response containing details of the newly created custom field.\\nReturns HTTP 201 Created on success with the created field information.\");\n\nexport const spokiCreateCustomField = action(\"SPOKI_CREATE_CUSTOM_FIELD\", {\n slug: \"spoki-create-custom-field\",\n name: \"Create Custom Field\",\n description: \"Creates a new custom field in Spoki for storing additional contact data. Use this action when you need to define extra data points that can be stored on contacts beyond the standard fields. Custom fields are useful for tracking business-specific information like customer IDs, preferences, subscription dates, or any other structured data. The custom field will be available for use immediately after creation across contact management, automation workflows, and API operations. Ensure the label and code are unique and descriptive for easy identification and usage.\",\n input: SpokiCreateCustomFieldInput,\n output: SpokiCreateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0MAA0M;CACpO,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K;CACtM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;CACtN,YAAYA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,0KAA0K;AACrP,CAAC,CAAC,CAAC,SAAS,gIAAgI;AAC5I,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAChH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yIAAyI;AAEnK,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -14,7 +14,7 @@ declare const SpokiCreateCustomFieldOutput: z.ZodObject<{
|
|
|
14
14
|
example: z.ZodNullable<z.ZodString>;
|
|
15
15
|
is_linked: z.ZodNullable<z.ZodBoolean>;
|
|
16
16
|
field_type: z.ZodNullable<z.ZodNumber>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const spokiCreateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
code: string;
|
|
20
20
|
label: string;
|
|
@@ -14,7 +14,7 @@ declare const SpokiCreateCustomFieldOutput: z.ZodObject<{
|
|
|
14
14
|
example: z.ZodNullable<z.ZodString>;
|
|
15
15
|
is_linked: z.ZodNullable<z.ZodBoolean>;
|
|
16
16
|
field_type: z.ZodNullable<z.ZodNumber>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const spokiCreateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
code: string;
|
|
20
20
|
label: string;
|
|
@@ -21,7 +21,7 @@ const spokiCreateCustomField = action("SPOKI_CREATE_CUSTOM_FIELD", {
|
|
|
21
21
|
example: z.string().describe("Example or default value for the custom field.").nullable(),
|
|
22
22
|
is_linked: z.boolean().describe("Indicates whether this custom field is linked/active in the system.").nullable(),
|
|
23
23
|
field_type: z.number().int().describe("Data type: 1=TEXT, 2=DATE, 3=DATETIME.").nullable()
|
|
24
|
-
}).describe("Response containing details of the newly created custom field.\nReturns HTTP 201 Created on success with the created field information.")
|
|
24
|
+
}).passthrough().describe("Response containing details of the newly created custom field.\nReturns HTTP 201 Created on success with the created field information.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { spokiCreateCustomField };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-custom-field.mjs","names":[],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiCreateCustomFieldInput = z.object({\n code: z.string().describe(\"Programmatic identifier for the custom field. Must be uppercase with underscores, unique across all custom fields, and not use reserved keywords. Use this code when referencing the field in API calls.\"),\n label: z.string().describe(\"Human-readable label for the custom field. Must be uppercase, unique across all custom fields, and not use reserved keywords. This label will be visible in the Spoki UI.\"),\n example: z.string().describe(\"Example or default value for the custom field. Should match the field_type: plain text for TEXT, date format 'YYYY-MM-DD' for DATE, datetime format 'YYYY-MM-DD HH:MM:SS' for DATETIME.\"),\n field_type: z.union([z.literal(1), z.literal(2), z.literal(3)]).describe(\"Data type for the custom field. 1 = TEXT (string values), 2 = DATE (date-only values like '2024-01-15'), 3 = DATETIME (date and time values like '2024-01-15 10:30:00').\"),\n}).describe(\"Request model to create a new custom field in Spoki.\\nCustom fields allow you to store additional structured data on contacts.\");\nexport const SpokiCreateCustomFieldOutput = z.object({\n id: z.number().int().describe(\"Unique identifier assigned to the custom field by Spoki.\").nullable(),\n code: z.string().describe(\"Programmatic identifier of the custom field.\").nullable(),\n label: z.string().describe(\"Human-readable label of the custom field.\").nullable(),\n example: z.string().describe(\"Example or default value for the custom field.\").nullable(),\n is_linked: z.boolean().describe(\"Indicates whether this custom field is linked/active in the system.\").nullable(),\n field_type: z.number().int().describe(\"Data type: 1=TEXT, 2=DATE, 3=DATETIME.\").nullable(),\n}).describe(\"Response containing details of the newly created custom field.\\nReturns HTTP 201 Created on success with the created field information.\");\n\nexport const spokiCreateCustomField = action(\"SPOKI_CREATE_CUSTOM_FIELD\", {\n slug: \"spoki-create-custom-field\",\n name: \"Create Custom Field\",\n description: \"Creates a new custom field in Spoki for storing additional contact data. Use this action when you need to define extra data points that can be stored on contacts beyond the standard fields. Custom fields are useful for tracking business-specific information like customer IDs, preferences, subscription dates, or any other structured data. The custom field will be available for use immediately after creation across contact management, automation workflows, and API operations. Ensure the label and code are unique and descriptive for easy identification and usage.\",\n input: SpokiCreateCustomFieldInput,\n output: SpokiCreateCustomFieldOutput,\n});\n"],"mappings":";;AAmBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0MAA0M;EACpO,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K;EACtM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;EACtN,YAAY,EAAE,MAAM;GAAC,EAAE,QAAQ,CAAC;GAAG,EAAE,QAAQ,CAAC;GAAG,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,0KAA0K;CACrP,CAAC,CAAC,CAAC,SAAS,gIAcH;CACP,QAd0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EACnG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACnF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACxF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAChH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"create-custom-field.mjs","names":[],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpokiCreateCustomFieldInput = z.object({\n code: z.string().describe(\"Programmatic identifier for the custom field. Must be uppercase with underscores, unique across all custom fields, and not use reserved keywords. Use this code when referencing the field in API calls.\"),\n label: z.string().describe(\"Human-readable label for the custom field. Must be uppercase, unique across all custom fields, and not use reserved keywords. This label will be visible in the Spoki UI.\"),\n example: z.string().describe(\"Example or default value for the custom field. Should match the field_type: plain text for TEXT, date format 'YYYY-MM-DD' for DATE, datetime format 'YYYY-MM-DD HH:MM:SS' for DATETIME.\"),\n field_type: z.union([z.literal(1), z.literal(2), z.literal(3)]).describe(\"Data type for the custom field. 1 = TEXT (string values), 2 = DATE (date-only values like '2024-01-15'), 3 = DATETIME (date and time values like '2024-01-15 10:30:00').\"),\n}).describe(\"Request model to create a new custom field in Spoki.\\nCustom fields allow you to store additional structured data on contacts.\");\nexport const SpokiCreateCustomFieldOutput = z.object({\n id: z.number().int().describe(\"Unique identifier assigned to the custom field by Spoki.\").nullable(),\n code: z.string().describe(\"Programmatic identifier of the custom field.\").nullable(),\n label: z.string().describe(\"Human-readable label of the custom field.\").nullable(),\n example: z.string().describe(\"Example or default value for the custom field.\").nullable(),\n is_linked: z.boolean().describe(\"Indicates whether this custom field is linked/active in the system.\").nullable(),\n field_type: z.number().int().describe(\"Data type: 1=TEXT, 2=DATE, 3=DATETIME.\").nullable(),\n}).passthrough().describe(\"Response containing details of the newly created custom field.\\nReturns HTTP 201 Created on success with the created field information.\");\n\nexport const spokiCreateCustomField = action(\"SPOKI_CREATE_CUSTOM_FIELD\", {\n slug: \"spoki-create-custom-field\",\n name: \"Create Custom Field\",\n description: \"Creates a new custom field in Spoki for storing additional contact data. Use this action when you need to define extra data points that can be stored on contacts beyond the standard fields. Custom fields are useful for tracking business-specific information like customer IDs, preferences, subscription dates, or any other structured data. The custom field will be available for use immediately after creation across contact management, automation workflows, and API operations. Ensure the label and code are unique and descriptive for easy identification and usage.\",\n input: SpokiCreateCustomFieldInput,\n output: SpokiCreateCustomFieldOutput,\n});\n"],"mappings":";;AAmBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0MAA0M;EACpO,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K;EACtM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yLAAyL;EACtN,YAAY,EAAE,MAAM;GAAC,EAAE,QAAQ,CAAC;GAAG,EAAE,QAAQ,CAAC;GAAG,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,0KAA0K;CACrP,CAAC,CAAC,CAAC,SAAS,gIAcH;CACP,QAd0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EACnG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACnF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACxF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAChH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yIAOhB;AACV,CAAC"}
|