@keystrokehq/zendesk 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/actions/autocomplete-users.cjs +5 -5
- package/dist/actions/autocomplete-users.cjs.map +1 -1
- package/dist/actions/autocomplete-users.mjs +5 -5
- package/dist/actions/autocomplete-users.mjs.map +1 -1
- package/dist/actions/create-access-rule.cjs +1 -1
- package/dist/actions/create-access-rule.cjs.map +1 -1
- package/dist/actions/create-access-rule.d.cts +4 -4
- package/dist/actions/create-access-rule.d.mts +4 -4
- package/dist/actions/create-access-rule.mjs +1 -1
- package/dist/actions/create-access-rule.mjs.map +1 -1
- package/dist/actions/create-apps-installation.cjs +11 -6
- package/dist/actions/create-apps-installation.cjs.map +1 -1
- package/dist/actions/create-apps-installation.d.cts +1 -1
- package/dist/actions/create-apps-installation.d.mts +1 -1
- package/dist/actions/create-apps-installation.mjs +11 -6
- package/dist/actions/create-apps-installation.mjs.map +1 -1
- package/dist/actions/create-bookmark.cjs +1 -1
- package/dist/actions/create-bookmark.cjs.map +1 -1
- package/dist/actions/create-bookmark.d.cts +1 -1
- package/dist/actions/create-bookmark.d.mts +1 -1
- package/dist/actions/create-bookmark.mjs +1 -1
- package/dist/actions/create-bookmark.mjs.map +1 -1
- package/dist/actions/create-deletion-schedule.cjs +3 -3
- package/dist/actions/create-deletion-schedule.cjs.map +1 -1
- package/dist/actions/create-deletion-schedule.mjs +3 -3
- package/dist/actions/create-deletion-schedule.mjs.map +1 -1
- package/dist/actions/create-many-users.d.cts +2 -2
- package/dist/actions/create-many-users.d.mts +2 -2
- package/dist/actions/create-or-update-many-users.d.cts +2 -2
- package/dist/actions/create-or-update-many-users.d.mts +2 -2
- package/dist/actions/create-or-update-user.d.cts +2 -2
- package/dist/actions/create-or-update-user.d.mts +2 -2
- package/dist/actions/create-ticket-content-pin.cjs +1 -1
- package/dist/actions/create-ticket-content-pin.cjs.map +1 -1
- package/dist/actions/create-ticket-content-pin.mjs +1 -1
- package/dist/actions/create-ticket-content-pin.mjs.map +1 -1
- package/dist/actions/create-user-identity.d.cts +3 -3
- package/dist/actions/create-user-identity.d.mts +3 -3
- package/dist/actions/create-zendesk-request.cjs +1 -1
- package/dist/actions/create-zendesk-request.cjs.map +1 -1
- package/dist/actions/create-zendesk-request.d.cts +2 -2
- package/dist/actions/create-zendesk-request.d.mts +2 -2
- package/dist/actions/create-zendesk-request.mjs +1 -1
- package/dist/actions/create-zendesk-request.mjs.map +1 -1
- package/dist/actions/create-zendesk-user.d.cts +2 -2
- package/dist/actions/create-zendesk-user.d.mts +2 -2
- package/dist/actions/get-brands.cjs +12 -4
- package/dist/actions/get-brands.cjs.map +1 -1
- package/dist/actions/get-brands.d.cts +11 -2
- package/dist/actions/get-brands.d.cts.map +1 -1
- package/dist/actions/get-brands.d.mts +11 -2
- package/dist/actions/get-brands.d.mts.map +1 -1
- package/dist/actions/get-brands.mjs +12 -4
- package/dist/actions/get-brands.mjs.map +1 -1
- package/dist/actions/get-deleted-tickets.d.cts +4 -4
- package/dist/actions/get-deleted-tickets.d.mts +4 -4
- package/dist/actions/get-group-users.d.cts +2 -2
- package/dist/actions/get-group-users.d.mts +2 -2
- package/dist/actions/get-groups-users-count.d.cts +4 -4
- package/dist/actions/get-groups-users-count.d.mts +4 -4
- package/dist/actions/get-incremental-ticket-events.d.cts +2 -2
- package/dist/actions/get-incremental-ticket-events.d.mts +2 -2
- package/dist/actions/get-incremental-tickets.d.cts +2 -2
- package/dist/actions/get-incremental-tickets.d.mts +2 -2
- package/dist/actions/get-macros-active.d.cts +2 -2
- package/dist/actions/get-macros-active.d.mts +2 -2
- package/dist/actions/get-macros-search.d.cts +2 -2
- package/dist/actions/get-macros-search.d.mts +2 -2
- package/dist/actions/get-organization-users.d.cts +6 -6
- package/dist/actions/get-organization-users.d.mts +6 -6
- package/dist/actions/get-tickets-audits.cjs +1 -1
- package/dist/actions/get-tickets-audits.cjs.map +1 -1
- package/dist/actions/get-tickets-audits.d.cts +1 -1
- package/dist/actions/get-tickets-audits.d.mts +1 -1
- package/dist/actions/get-tickets-audits.mjs +1 -1
- package/dist/actions/get-tickets-audits.mjs.map +1 -1
- package/dist/actions/get-trigger-categories.d.cts +2 -2
- package/dist/actions/get-trigger-categories.d.mts +2 -2
- package/dist/actions/get-user-field-options.cjs +1 -1
- package/dist/actions/get-user-field-options.cjs.map +1 -1
- package/dist/actions/get-user-field-options.mjs +1 -1
- package/dist/actions/get-user-field-options.mjs.map +1 -1
- package/dist/actions/get-users-followed-tickets.d.cts +2 -2
- package/dist/actions/get-users-followed-tickets.d.mts +2 -2
- package/dist/actions/get-zendesk-ticket-by-id.cjs +38 -4
- package/dist/actions/get-zendesk-ticket-by-id.cjs.map +1 -1
- package/dist/actions/get-zendesk-ticket-by-id.d.cts +33 -0
- package/dist/actions/get-zendesk-ticket-by-id.d.cts.map +1 -1
- package/dist/actions/get-zendesk-ticket-by-id.d.mts +33 -0
- package/dist/actions/get-zendesk-ticket-by-id.d.mts.map +1 -1
- package/dist/actions/get-zendesk-ticket-by-id.mjs +38 -4
- package/dist/actions/get-zendesk-ticket-by-id.mjs.map +1 -1
- package/dist/actions/index.cjs +0 -2
- package/dist/actions/index.d.cts +1 -2
- package/dist/actions/index.d.mts +1 -2
- package/dist/actions/index.mjs +1 -2
- package/dist/actions/list-ticket-audits.cjs +1 -1
- package/dist/actions/list-ticket-audits.cjs.map +1 -1
- package/dist/actions/list-ticket-audits.d.cts +1 -1
- package/dist/actions/list-ticket-audits.d.mts +1 -1
- package/dist/actions/list-ticket-audits.mjs +1 -1
- package/dist/actions/list-ticket-audits.mjs.map +1 -1
- package/dist/actions/list-ticket-content-pins.cjs +2 -2
- package/dist/actions/list-ticket-content-pins.cjs.map +1 -1
- package/dist/actions/list-ticket-content-pins.d.cts +2 -2
- package/dist/actions/list-ticket-content-pins.d.mts +2 -2
- package/dist/actions/list-ticket-content-pins.mjs +2 -2
- package/dist/actions/list-ticket-content-pins.mjs.map +1 -1
- package/dist/actions/list-zendesk-users.d.cts +4 -4
- package/dist/actions/list-zendesk-users.d.mts +4 -4
- package/dist/actions/request-user-create.cjs +2 -2
- package/dist/actions/request-user-create.cjs.map +1 -1
- package/dist/actions/request-user-create.d.cts +6 -6
- package/dist/actions/request-user-create.d.mts +6 -6
- package/dist/actions/request-user-create.mjs +2 -2
- package/dist/actions/request-user-create.mjs.map +1 -1
- package/dist/actions/search-custom-object-records.d.cts +2 -2
- package/dist/actions/search-custom-object-records.d.mts +2 -2
- package/dist/actions/update-many-users.d.cts +4 -4
- package/dist/actions/update-many-users.d.mts +4 -4
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/dist/index.cjs +0 -2
- package/dist/index.d.cts +1 -2
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +1 -2
- package/package.json +1 -1
- package/dist/actions/get-apps-location.cjs +0 -25
- package/dist/actions/get-apps-location.cjs.map +0 -1
- package/dist/actions/get-apps-location.d.cts +0 -23
- package/dist/actions/get-apps-location.d.cts.map +0 -1
- package/dist/actions/get-apps-location.d.mts +0 -23
- package/dist/actions/get-apps-location.d.mts.map +0 -1
- package/dist/actions/get-apps-location.mjs +0 -24
- package/dist/actions/get-apps-location.mjs.map +0 -1
|
@@ -7,7 +7,7 @@ const ZendeskCreateDeletionScheduleInput = zod.z.object({
|
|
|
7
7
|
object: zod.z.string().describe("The entity type to delete. Cannot be modified after creation. Built-in values: 'zen:ticket' (tickets), 'zen:user' (users), 'zen:attachment' (attachments), 'zen:bot_only_conversation' (bot conversations). For custom objects, use 'zen:custom_object:CUSTOM_OBJECT_KEY' (the enum was widened to accept this documented pattern)."),
|
|
8
8
|
conditions: zod.z.object({
|
|
9
9
|
all: zod.z.array(zod.z.object({
|
|
10
|
-
field: zod.z.string().describe("The field to check in the condition. For
|
|
10
|
+
field: zod.z.string().describe("The field to check in the condition. This is object-type-specific and not fully covered by Zendesk's public docs. For 'zen:ticket' schedules, common fields include: 'duration_since_last_update', 'status', 'type', 'priority', 'assignee_id', 'group_id', 'requester_id', 'organization_id', 'tags', 'created_at', 'updated_at', 'channel', 'is_public', 'via_id', 'locale_id'. For 'zen:user' schedules, the time-based field is 'duration_since_last_activity' (NOT 'duration_since_last_update' or 'duration_since_last_login' — both are rejected with \"Invalid rule target\"), confirmed live."),
|
|
11
11
|
value: zod.z.union([
|
|
12
12
|
zod.z.string(),
|
|
13
13
|
zod.z.number().int(),
|
|
@@ -17,7 +17,7 @@ const ZendeskCreateDeletionScheduleInput = zod.z.object({
|
|
|
17
17
|
operator: zod.z.string().describe("The comparison operator. Common operators: 'is', 'is_not', 'contains', 'does_not_contain', 'starts_with', 'ends_with', 'less_than', 'greater_than', 'less_than_or_equal', 'greater_than_or_equal', 'is_set', 'is_not_set', 'regex'.")
|
|
18
18
|
}).passthrough().describe("A single condition item for deletion schedule conditions (all/any arrays).")).describe("Array of conditions that ALL must be true for items to be deleted. At least one condition should typically reference a time-based field.").optional(),
|
|
19
19
|
any: zod.z.array(zod.z.object({
|
|
20
|
-
field: zod.z.string().describe("The field to check in the condition. For
|
|
20
|
+
field: zod.z.string().describe("The field to check in the condition. This is object-type-specific and not fully covered by Zendesk's public docs. For 'zen:ticket' schedules, common fields include: 'duration_since_last_update', 'status', 'type', 'priority', 'assignee_id', 'group_id', 'requester_id', 'organization_id', 'tags', 'created_at', 'updated_at', 'channel', 'is_public', 'via_id', 'locale_id'. For 'zen:user' schedules, the time-based field is 'duration_since_last_activity' (NOT 'duration_since_last_update' or 'duration_since_last_login' — both are rejected with \"Invalid rule target\"), confirmed live."),
|
|
21
21
|
value: zod.z.union([
|
|
22
22
|
zod.z.string(),
|
|
23
23
|
zod.z.number().int(),
|
|
@@ -59,7 +59,7 @@ const ZendeskCreateDeletionScheduleOutput = zod.z.object({
|
|
|
59
59
|
const zendeskCreateDeletionSchedule = require_action.action("ZENDESK_CREATE_DELETION_SCHEDULE", {
|
|
60
60
|
slug: "zendesk-create-deletion-schedule",
|
|
61
61
|
name: "Create Deletion Schedule",
|
|
62
|
-
description: "Create a new deletion schedule in Zendesk that automatically deletes records matching specified conditions on a schedule. Deletion schedules are used for data retention and cleanup policies. Use this action when you need to: - Automatically clean up old closed tickets - Remove inactive users or attachments - Enforce data retention policies - Schedule periodic deletion of bot conversations Note: The 'object' field (entity type to delete) cannot be modified after creation. Use conditions to specify which records to delete - for time-based deletion, use 'duration_since_last_update'
|
|
62
|
+
description: "Create a new deletion schedule in Zendesk that automatically deletes records matching specified conditions on a schedule. Deletion schedules are used for data retention and cleanup policies. Use this action when you need to: - Automatically clean up old closed tickets - Remove inactive users or attachments - Enforce data retention policies - Schedule periodic deletion of bot conversations Note: The 'object' field (entity type to delete) cannot be modified after creation. Use conditions to specify which records to delete - for time-based ticket deletion, use 'duration_since_last_update'; for time-based end-user ('zen:user') deletion, use 'duration_since_last_activity' instead — both with a 'greater_than' operator and ISO 8601 duration values (e.g., 'P30D' for 30 days).",
|
|
63
63
|
input: ZendeskCreateDeletionScheduleInput,
|
|
64
64
|
output: ZendeskCreateDeletionScheduleOutput
|
|
65
65
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-deletion-schedule.cjs","names":["z","action"],"sources":["../../src/actions/create-deletion-schedule.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ZendeskCreateDeletionScheduleInput = z.object({\n title: z.string().describe(\"The title/name of the deletion schedule. Must be descriptive so you can identify it in the Zendesk admin panel.\"),\n active: z.boolean().default(true).describe(\"Whether the deletion schedule is active and will execute. Set to false to create a disabled schedule.\").optional(),\n object: z.string().describe(\"The entity type to delete. Cannot be modified after creation. Built-in values: 'zen:ticket' (tickets), 'zen:user' (users), 'zen:attachment' (attachments), 'zen:bot_only_conversation' (bot conversations). For custom objects, use 'zen:custom_object:CUSTOM_OBJECT_KEY' (the enum was widened to accept this documented pattern).\"),\n conditions: z.object({\n all: z.array(z.object({\n field: z.string().describe(\"The field to check in the condition. For
|
|
1
|
+
{"version":3,"file":"create-deletion-schedule.cjs","names":["z","action"],"sources":["../../src/actions/create-deletion-schedule.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ZendeskCreateDeletionScheduleInput = z.object({\n title: z.string().describe(\"The title/name of the deletion schedule. Must be descriptive so you can identify it in the Zendesk admin panel.\"),\n active: z.boolean().default(true).describe(\"Whether the deletion schedule is active and will execute. Set to false to create a disabled schedule.\").optional(),\n object: z.string().describe(\"The entity type to delete. Cannot be modified after creation. Built-in values: 'zen:ticket' (tickets), 'zen:user' (users), 'zen:attachment' (attachments), 'zen:bot_only_conversation' (bot conversations). For custom objects, use 'zen:custom_object:CUSTOM_OBJECT_KEY' (the enum was widened to accept this documented pattern).\"),\n conditions: z.object({\n all: z.array(z.object({\n field: z.string().describe(\"The field to check in the condition. This is object-type-specific and not fully covered by Zendesk's public docs. For 'zen:ticket' schedules, common fields include: 'duration_since_last_update', 'status', 'type', 'priority', 'assignee_id', 'group_id', 'requester_id', 'organization_id', 'tags', 'created_at', 'updated_at', 'channel', 'is_public', 'via_id', 'locale_id'. For 'zen:user' schedules, the time-based field is 'duration_since_last_activity' (NOT 'duration_since_last_update' or 'duration_since_last_login' — both are rejected with \\\"Invalid rule target\\\"), confirmed live.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable(),\n operator: z.string().describe(\"The comparison operator. Common operators: 'is', 'is_not', 'contains', 'does_not_contain', 'starts_with', 'ends_with', 'less_than', 'greater_than', 'less_than_or_equal', 'greater_than_or_equal', 'is_set', 'is_not_set', 'regex'.\"),\n}).passthrough().describe(\"A single condition item for deletion schedule conditions (all/any arrays).\")).describe(\"Array of conditions that ALL must be true for items to be deleted. At least one condition should typically reference a time-based field.\").optional(),\n any: z.array(z.object({\n field: z.string().describe(\"The field to check in the condition. This is object-type-specific and not fully covered by Zendesk's public docs. For 'zen:ticket' schedules, common fields include: 'duration_since_last_update', 'status', 'type', 'priority', 'assignee_id', 'group_id', 'requester_id', 'organization_id', 'tags', 'created_at', 'updated_at', 'channel', 'is_public', 'via_id', 'locale_id'. For 'zen:user' schedules, the time-based field is 'duration_since_last_activity' (NOT 'duration_since_last_update' or 'duration_since_last_login' — both are rejected with \\\"Invalid rule target\\\"), confirmed live.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable(),\n operator: z.string().describe(\"The comparison operator. Common operators: 'is', 'is_not', 'contains', 'does_not_contain', 'starts_with', 'ends_with', 'less_than', 'greater_than', 'less_than_or_equal', 'greater_than_or_equal', 'is_set', 'is_not_set', 'regex'.\"),\n}).passthrough().describe(\"A single condition item for deletion schedule conditions (all/any arrays).\")).describe(\"Array of conditions where ANY must be true for items to be deleted.\").optional(),\n}).describe(\"Conditions object for deletion schedule - defines when items should be deleted.\").optional(),\n description: z.string().describe(\"A description explaining what this deletion schedule does.\").optional(),\n}).describe(\"Request parameters for creating a Zendesk deletion schedule.\");\nconst ZendeskCreateDeletionSchedule_DeletionConditionItemResponseSchema = z.object({\n field: z.string().describe(\"The field checked in the condition\").nullable().optional(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable().optional(),\n operator: z.string().describe(\"The comparison operator used\").nullable().optional(),\n}).passthrough().describe(\"Response model for a single condition item.\");\nconst ZendeskCreateDeletionSchedule_DeletionConditionsResponseSchema = z.object({\n all: z.array(ZendeskCreateDeletionSchedule_DeletionConditionItemResponseSchema).describe(\"Conditions that all must be true\").nullable().optional(),\n any: z.array(ZendeskCreateDeletionSchedule_DeletionConditionItemResponseSchema).describe(\"Conditions where any must be true\").nullable().optional(),\n}).passthrough().describe(\"Response model for conditions.\");\nexport const ZendeskCreateDeletionScheduleOutput = z.object({\n title: z.string().describe(\"The title of the created deletion schedule\").nullable().optional(),\n active: z.boolean().describe(\"Whether the deletion schedule is active\").nullable().optional(),\n object: z.string().describe(\"The entity type being deleted\").nullable().optional(),\n \"default\": z.boolean().describe(\"Whether this is the default deletion schedule\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the deletion schedule creation was successful\").nullable(),\n conditions: ZendeskCreateDeletionSchedule_DeletionConditionsResponseSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the deletion schedule\").nullable().optional(),\n deletion_schedule_id: z.number().int().describe(\"ID of the created deletion schedule\").nullable(),\n deletion_schedule_url: z.string().describe(\"URL to view the deletion schedule in Zendesk admin\").nullable(),\n}).passthrough().describe(\"Response from creating a Zendesk deletion schedule.\");\n\nexport const zendeskCreateDeletionSchedule = action(\"ZENDESK_CREATE_DELETION_SCHEDULE\", {\n slug: \"zendesk-create-deletion-schedule\",\n name: \"Create Deletion Schedule\",\n description: \"Create a new deletion schedule in Zendesk that automatically deletes records matching specified conditions on a schedule. Deletion schedules are used for data retention and cleanup policies. Use this action when you need to: - Automatically clean up old closed tickets - Remove inactive users or attachments - Enforce data retention policies - Schedule periodic deletion of bot conversations Note: The 'object' field (entity type to delete) cannot be modified after creation. Use conditions to specify which records to delete - for time-based ticket deletion, use 'duration_since_last_update'; for time-based end-user ('zen:user') deletion, use 'duration_since_last_activity' instead — both with a 'greater_than' operator and ISO 8601 duration values (e.g., 'P30D' for 30 days).\",\n input: ZendeskCreateDeletionScheduleInput,\n output: ZendeskCreateDeletionScheduleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;CAC5I,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC7J,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qUAAqU;C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,+DAA+D,SAAS,CAAC,CAAC,SAAS;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ const ZendeskCreateDeletionScheduleInput = z.object({
|
|
|
7
7
|
object: z.string().describe("The entity type to delete. Cannot be modified after creation. Built-in values: 'zen:ticket' (tickets), 'zen:user' (users), 'zen:attachment' (attachments), 'zen:bot_only_conversation' (bot conversations). For custom objects, use 'zen:custom_object:CUSTOM_OBJECT_KEY' (the enum was widened to accept this documented pattern)."),
|
|
8
8
|
conditions: z.object({
|
|
9
9
|
all: z.array(z.object({
|
|
10
|
-
field: z.string().describe("The field to check in the condition. For
|
|
10
|
+
field: z.string().describe("The field to check in the condition. This is object-type-specific and not fully covered by Zendesk's public docs. For 'zen:ticket' schedules, common fields include: 'duration_since_last_update', 'status', 'type', 'priority', 'assignee_id', 'group_id', 'requester_id', 'organization_id', 'tags', 'created_at', 'updated_at', 'channel', 'is_public', 'via_id', 'locale_id'. For 'zen:user' schedules, the time-based field is 'duration_since_last_activity' (NOT 'duration_since_last_update' or 'duration_since_last_login' — both are rejected with \"Invalid rule target\"), confirmed live."),
|
|
11
11
|
value: z.union([
|
|
12
12
|
z.string(),
|
|
13
13
|
z.number().int(),
|
|
@@ -17,7 +17,7 @@ const ZendeskCreateDeletionScheduleInput = z.object({
|
|
|
17
17
|
operator: z.string().describe("The comparison operator. Common operators: 'is', 'is_not', 'contains', 'does_not_contain', 'starts_with', 'ends_with', 'less_than', 'greater_than', 'less_than_or_equal', 'greater_than_or_equal', 'is_set', 'is_not_set', 'regex'.")
|
|
18
18
|
}).passthrough().describe("A single condition item for deletion schedule conditions (all/any arrays).")).describe("Array of conditions that ALL must be true for items to be deleted. At least one condition should typically reference a time-based field.").optional(),
|
|
19
19
|
any: z.array(z.object({
|
|
20
|
-
field: z.string().describe("The field to check in the condition. For
|
|
20
|
+
field: z.string().describe("The field to check in the condition. This is object-type-specific and not fully covered by Zendesk's public docs. For 'zen:ticket' schedules, common fields include: 'duration_since_last_update', 'status', 'type', 'priority', 'assignee_id', 'group_id', 'requester_id', 'organization_id', 'tags', 'created_at', 'updated_at', 'channel', 'is_public', 'via_id', 'locale_id'. For 'zen:user' schedules, the time-based field is 'duration_since_last_activity' (NOT 'duration_since_last_update' or 'duration_since_last_login' — both are rejected with \"Invalid rule target\"), confirmed live."),
|
|
21
21
|
value: z.union([
|
|
22
22
|
z.string(),
|
|
23
23
|
z.number().int(),
|
|
@@ -46,7 +46,7 @@ const ZendeskCreateDeletionSchedule_DeletionConditionsResponseSchema = z.object(
|
|
|
46
46
|
const zendeskCreateDeletionSchedule = action("ZENDESK_CREATE_DELETION_SCHEDULE", {
|
|
47
47
|
slug: "zendesk-create-deletion-schedule",
|
|
48
48
|
name: "Create Deletion Schedule",
|
|
49
|
-
description: "Create a new deletion schedule in Zendesk that automatically deletes records matching specified conditions on a schedule. Deletion schedules are used for data retention and cleanup policies. Use this action when you need to: - Automatically clean up old closed tickets - Remove inactive users or attachments - Enforce data retention policies - Schedule periodic deletion of bot conversations Note: The 'object' field (entity type to delete) cannot be modified after creation. Use conditions to specify which records to delete - for time-based deletion, use 'duration_since_last_update'
|
|
49
|
+
description: "Create a new deletion schedule in Zendesk that automatically deletes records matching specified conditions on a schedule. Deletion schedules are used for data retention and cleanup policies. Use this action when you need to: - Automatically clean up old closed tickets - Remove inactive users or attachments - Enforce data retention policies - Schedule periodic deletion of bot conversations Note: The 'object' field (entity type to delete) cannot be modified after creation. Use conditions to specify which records to delete - for time-based ticket deletion, use 'duration_since_last_update'; for time-based end-user ('zen:user') deletion, use 'duration_since_last_activity' instead — both with a 'greater_than' operator and ISO 8601 duration values (e.g., 'P30D' for 30 days).",
|
|
50
50
|
input: ZendeskCreateDeletionScheduleInput,
|
|
51
51
|
output: z.object({
|
|
52
52
|
title: z.string().describe("The title of the created deletion schedule").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-deletion-schedule.mjs","names":[],"sources":["../../src/actions/create-deletion-schedule.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ZendeskCreateDeletionScheduleInput = z.object({\n title: z.string().describe(\"The title/name of the deletion schedule. Must be descriptive so you can identify it in the Zendesk admin panel.\"),\n active: z.boolean().default(true).describe(\"Whether the deletion schedule is active and will execute. Set to false to create a disabled schedule.\").optional(),\n object: z.string().describe(\"The entity type to delete. Cannot be modified after creation. Built-in values: 'zen:ticket' (tickets), 'zen:user' (users), 'zen:attachment' (attachments), 'zen:bot_only_conversation' (bot conversations). For custom objects, use 'zen:custom_object:CUSTOM_OBJECT_KEY' (the enum was widened to accept this documented pattern).\"),\n conditions: z.object({\n all: z.array(z.object({\n field: z.string().describe(\"The field to check in the condition. For
|
|
1
|
+
{"version":3,"file":"create-deletion-schedule.mjs","names":[],"sources":["../../src/actions/create-deletion-schedule.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ZendeskCreateDeletionScheduleInput = z.object({\n title: z.string().describe(\"The title/name of the deletion schedule. Must be descriptive so you can identify it in the Zendesk admin panel.\"),\n active: z.boolean().default(true).describe(\"Whether the deletion schedule is active and will execute. Set to false to create a disabled schedule.\").optional(),\n object: z.string().describe(\"The entity type to delete. Cannot be modified after creation. Built-in values: 'zen:ticket' (tickets), 'zen:user' (users), 'zen:attachment' (attachments), 'zen:bot_only_conversation' (bot conversations). For custom objects, use 'zen:custom_object:CUSTOM_OBJECT_KEY' (the enum was widened to accept this documented pattern).\"),\n conditions: z.object({\n all: z.array(z.object({\n field: z.string().describe(\"The field to check in the condition. This is object-type-specific and not fully covered by Zendesk's public docs. For 'zen:ticket' schedules, common fields include: 'duration_since_last_update', 'status', 'type', 'priority', 'assignee_id', 'group_id', 'requester_id', 'organization_id', 'tags', 'created_at', 'updated_at', 'channel', 'is_public', 'via_id', 'locale_id'. For 'zen:user' schedules, the time-based field is 'duration_since_last_activity' (NOT 'duration_since_last_update' or 'duration_since_last_login' — both are rejected with \\\"Invalid rule target\\\"), confirmed live.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable(),\n operator: z.string().describe(\"The comparison operator. Common operators: 'is', 'is_not', 'contains', 'does_not_contain', 'starts_with', 'ends_with', 'less_than', 'greater_than', 'less_than_or_equal', 'greater_than_or_equal', 'is_set', 'is_not_set', 'regex'.\"),\n}).passthrough().describe(\"A single condition item for deletion schedule conditions (all/any arrays).\")).describe(\"Array of conditions that ALL must be true for items to be deleted. At least one condition should typically reference a time-based field.\").optional(),\n any: z.array(z.object({\n field: z.string().describe(\"The field to check in the condition. This is object-type-specific and not fully covered by Zendesk's public docs. For 'zen:ticket' schedules, common fields include: 'duration_since_last_update', 'status', 'type', 'priority', 'assignee_id', 'group_id', 'requester_id', 'organization_id', 'tags', 'created_at', 'updated_at', 'channel', 'is_public', 'via_id', 'locale_id'. For 'zen:user' schedules, the time-based field is 'duration_since_last_activity' (NOT 'duration_since_last_update' or 'duration_since_last_login' — both are rejected with \\\"Invalid rule target\\\"), confirmed live.\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable(),\n operator: z.string().describe(\"The comparison operator. Common operators: 'is', 'is_not', 'contains', 'does_not_contain', 'starts_with', 'ends_with', 'less_than', 'greater_than', 'less_than_or_equal', 'greater_than_or_equal', 'is_set', 'is_not_set', 'regex'.\"),\n}).passthrough().describe(\"A single condition item for deletion schedule conditions (all/any arrays).\")).describe(\"Array of conditions where ANY must be true for items to be deleted.\").optional(),\n}).describe(\"Conditions object for deletion schedule - defines when items should be deleted.\").optional(),\n description: z.string().describe(\"A description explaining what this deletion schedule does.\").optional(),\n}).describe(\"Request parameters for creating a Zendesk deletion schedule.\");\nconst ZendeskCreateDeletionSchedule_DeletionConditionItemResponseSchema = z.object({\n field: z.string().describe(\"The field checked in the condition\").nullable().optional(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean()]).nullable().optional(),\n operator: z.string().describe(\"The comparison operator used\").nullable().optional(),\n}).passthrough().describe(\"Response model for a single condition item.\");\nconst ZendeskCreateDeletionSchedule_DeletionConditionsResponseSchema = z.object({\n all: z.array(ZendeskCreateDeletionSchedule_DeletionConditionItemResponseSchema).describe(\"Conditions that all must be true\").nullable().optional(),\n any: z.array(ZendeskCreateDeletionSchedule_DeletionConditionItemResponseSchema).describe(\"Conditions where any must be true\").nullable().optional(),\n}).passthrough().describe(\"Response model for conditions.\");\nexport const ZendeskCreateDeletionScheduleOutput = z.object({\n title: z.string().describe(\"The title of the created deletion schedule\").nullable().optional(),\n active: z.boolean().describe(\"Whether the deletion schedule is active\").nullable().optional(),\n object: z.string().describe(\"The entity type being deleted\").nullable().optional(),\n \"default\": z.boolean().describe(\"Whether this is the default deletion schedule\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the deletion schedule creation was successful\").nullable(),\n conditions: ZendeskCreateDeletionSchedule_DeletionConditionsResponseSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when last updated\").nullable().optional(),\n description: z.string().describe(\"Description of the deletion schedule\").nullable().optional(),\n deletion_schedule_id: z.number().int().describe(\"ID of the created deletion schedule\").nullable(),\n deletion_schedule_url: z.string().describe(\"URL to view the deletion schedule in Zendesk admin\").nullable(),\n}).passthrough().describe(\"Response from creating a Zendesk deletion schedule.\");\n\nexport const zendeskCreateDeletionSchedule = action(\"ZENDESK_CREATE_DELETION_SCHEDULE\", {\n slug: \"zendesk-create-deletion-schedule\",\n name: \"Create Deletion Schedule\",\n description: \"Create a new deletion schedule in Zendesk that automatically deletes records matching specified conditions on a schedule. Deletion schedules are used for data retention and cleanup policies. Use this action when you need to: - Automatically clean up old closed tickets - Remove inactive users or attachments - Enforce data retention policies - Schedule periodic deletion of bot conversations Note: The 'object' field (entity type to delete) cannot be modified after creation. Use conditions to specify which records to delete - for time-based ticket deletion, use 'duration_since_last_update'; for time-based end-user ('zen:user') deletion, use 'duration_since_last_activity' instead — both with a 'greater_than' operator and ISO 8601 duration values (e.g., 'P30D' for 30 days).\",\n input: ZendeskCreateDeletionScheduleInput,\n output: ZendeskCreateDeletionScheduleOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;CAC5I,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC7J,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qUAAqU;CACjW,YAAY,EAAE,OAAO;EACrB,KAAK,EAAE,MAAM,EAAE,OAAO;GACtB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wkBAAwkB;GACnmB,OAAO,EAAE,MAAM;IAAC,EAAE,OAAO;IAAG,EAAE,OAAO,CAAC,CAAC,IAAI;IAAG,EAAE,OAAO;IAAG,EAAE,QAAQ;GAAC,CAAC,CAAC,CAAC,SAAS;GACjF,U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C,SAAS,qDAOhB;AACV,CAAC"}
|
|
@@ -5,8 +5,8 @@ declare const ZendeskCreateManyUsersInput: z.ZodObject<{
|
|
|
5
5
|
users: z.ZodArray<z.ZodObject<{
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
role: z.ZodOptional<z.ZodEnum<{
|
|
8
|
-
agent: "agent";
|
|
9
8
|
"end-user": "end-user";
|
|
9
|
+
agent: "agent";
|
|
10
10
|
admin: "admin";
|
|
11
11
|
}>>;
|
|
12
12
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -59,7 +59,7 @@ declare const zendeskCreateManyUsers: import("@keystrokehq/action").WorkflowActi
|
|
|
59
59
|
users: {
|
|
60
60
|
[x: string]: unknown;
|
|
61
61
|
name: string;
|
|
62
|
-
role?: "
|
|
62
|
+
role?: "end-user" | "agent" | "admin" | undefined;
|
|
63
63
|
tags?: string[] | undefined;
|
|
64
64
|
alias?: string | undefined;
|
|
65
65
|
email?: string | undefined;
|
|
@@ -5,8 +5,8 @@ declare const ZendeskCreateManyUsersInput: z.ZodObject<{
|
|
|
5
5
|
users: z.ZodArray<z.ZodObject<{
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
role: z.ZodOptional<z.ZodEnum<{
|
|
8
|
-
agent: "agent";
|
|
9
8
|
"end-user": "end-user";
|
|
9
|
+
agent: "agent";
|
|
10
10
|
admin: "admin";
|
|
11
11
|
}>>;
|
|
12
12
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -59,7 +59,7 @@ declare const zendeskCreateManyUsers: import("@keystrokehq/action").WorkflowActi
|
|
|
59
59
|
users: {
|
|
60
60
|
[x: string]: unknown;
|
|
61
61
|
name: string;
|
|
62
|
-
role?: "
|
|
62
|
+
role?: "end-user" | "agent" | "admin" | undefined;
|
|
63
63
|
tags?: string[] | undefined;
|
|
64
64
|
alias?: string | undefined;
|
|
65
65
|
email?: string | undefined;
|
|
@@ -6,8 +6,8 @@ declare const ZendeskCreateOrUpdateManyUsersInput: z.ZodObject<{
|
|
|
6
6
|
id: z.ZodOptional<z.ZodNumber>;
|
|
7
7
|
name: z.ZodOptional<z.ZodString>;
|
|
8
8
|
role: z.ZodOptional<z.ZodEnum<{
|
|
9
|
-
agent: "agent";
|
|
10
9
|
"end-user": "end-user";
|
|
10
|
+
agent: "agent";
|
|
11
11
|
admin: "admin";
|
|
12
12
|
}>>;
|
|
13
13
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -76,7 +76,7 @@ declare const zendeskCreateOrUpdateManyUsers: import("@keystrokehq/action").Work
|
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
id?: number | undefined;
|
|
78
78
|
name?: string | undefined;
|
|
79
|
-
role?: "
|
|
79
|
+
role?: "end-user" | "agent" | "admin" | undefined;
|
|
80
80
|
tags?: string[] | undefined;
|
|
81
81
|
alias?: string | undefined;
|
|
82
82
|
email?: string | undefined;
|
|
@@ -6,8 +6,8 @@ declare const ZendeskCreateOrUpdateManyUsersInput: z.ZodObject<{
|
|
|
6
6
|
id: z.ZodOptional<z.ZodNumber>;
|
|
7
7
|
name: z.ZodOptional<z.ZodString>;
|
|
8
8
|
role: z.ZodOptional<z.ZodEnum<{
|
|
9
|
-
agent: "agent";
|
|
10
9
|
"end-user": "end-user";
|
|
10
|
+
agent: "agent";
|
|
11
11
|
admin: "admin";
|
|
12
12
|
}>>;
|
|
13
13
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -76,7 +76,7 @@ declare const zendeskCreateOrUpdateManyUsers: import("@keystrokehq/action").Work
|
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
id?: number | undefined;
|
|
78
78
|
name?: string | undefined;
|
|
79
|
-
role?: "
|
|
79
|
+
role?: "end-user" | "agent" | "admin" | undefined;
|
|
80
80
|
tags?: string[] | undefined;
|
|
81
81
|
alias?: string | undefined;
|
|
82
82
|
email?: string | undefined;
|
|
@@ -5,8 +5,8 @@ declare const ZendeskCreateOrUpdateUserInput: z.ZodObject<{
|
|
|
5
5
|
user: z.ZodObject<{
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
role: z.ZodOptional<z.ZodEnum<{
|
|
8
|
-
agent: "agent";
|
|
9
8
|
"end-user": "end-user";
|
|
9
|
+
agent: "agent";
|
|
10
10
|
admin: "admin";
|
|
11
11
|
}>>;
|
|
12
12
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -108,7 +108,7 @@ declare const ZendeskCreateOrUpdateUserOutput: z.ZodObject<{
|
|
|
108
108
|
declare const zendeskCreateOrUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
109
109
|
user: {
|
|
110
110
|
name: string;
|
|
111
|
-
role?: "
|
|
111
|
+
role?: "end-user" | "agent" | "admin" | undefined;
|
|
112
112
|
tags?: string[] | undefined;
|
|
113
113
|
alias?: string | undefined;
|
|
114
114
|
email?: string | undefined;
|
|
@@ -5,8 +5,8 @@ declare const ZendeskCreateOrUpdateUserInput: z.ZodObject<{
|
|
|
5
5
|
user: z.ZodObject<{
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
role: z.ZodOptional<z.ZodEnum<{
|
|
8
|
-
agent: "agent";
|
|
9
8
|
"end-user": "end-user";
|
|
9
|
+
agent: "agent";
|
|
10
10
|
admin: "admin";
|
|
11
11
|
}>>;
|
|
12
12
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -108,7 +108,7 @@ declare const ZendeskCreateOrUpdateUserOutput: z.ZodObject<{
|
|
|
108
108
|
declare const zendeskCreateOrUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
109
109
|
user: {
|
|
110
110
|
name: string;
|
|
111
|
-
role?: "
|
|
111
|
+
role?: "end-user" | "agent" | "admin" | undefined;
|
|
112
112
|
tags?: string[] | undefined;
|
|
113
113
|
alias?: string | undefined;
|
|
114
114
|
email?: string | undefined;
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/create-ticket-content-pin.ts
|
|
4
4
|
const ZendeskCreateTicketContentPinInput = zod.z.object({
|
|
5
|
-
locale: zod.z.string().describe("The locale for the content pin.
|
|
5
|
+
locale: zod.z.string().describe("The locale for the content pin. Required when content_type is 'external_content' — Zendesk rejects external-content pins with no locale ('External contents must have locale to be able to get pinned to tickets.'). Also required when pinning articles. Format: language + underscore + locale code (e.g., 'en-us', 'fr-ca').").optional(),
|
|
6
6
|
ticket_id: zod.z.string().describe("The ID of the ticket to which the content pin will be added"),
|
|
7
7
|
content_id: zod.z.string().describe("The ID of the content to pin"),
|
|
8
8
|
content_type: zod.z.string().describe("The type of content being pinned. Common values include 'article' for Help Center articles and 'external_content' for external resources.")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-ticket-content-pin.cjs","names":["z","action"],"sources":["../../src/actions/create-ticket-content-pin.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ZendeskCreateTicketContentPinInput = z.object({\n locale: z.string().describe(\"The locale for the content pin.
|
|
1
|
+
{"version":3,"file":"create-ticket-content-pin.cjs","names":["z","action"],"sources":["../../src/actions/create-ticket-content-pin.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ZendeskCreateTicketContentPinInput = z.object({\n locale: z.string().describe(\"The locale for the content pin. Required when content_type is 'external_content' — Zendesk rejects external-content pins with no locale ('External contents must have locale to be able to get pinned to tickets.'). Also required when pinning articles. Format: language + underscore + locale code (e.g., 'en-us', 'fr-ca').\").optional(),\n ticket_id: z.string().describe(\"The ID of the ticket to which the content pin will be added\"),\n content_id: z.string().describe(\"The ID of the content to pin\"),\n content_type: z.string().describe(\"The type of content being pinned. Common values include 'article' for Help Center articles and 'external_content' for external resources.\"),\n}).describe(\"Request parameters for creating a ticket content pin in Zendesk.\");\nexport const ZendeskCreateTicketContentPinOutput = z.object({\n id: z.string().describe(\"The unique identifier for the content pin\").nullable(),\n url: z.string().describe(\"The URL to access the pinned content\").nullable().optional(),\n locale: z.string().describe(\"The locale of the content pin\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the content pin creation was successful\").nullable(),\n ticket_id: z.string().describe(\"The ID of the ticket associated with the content pin\").nullable(),\n account_id: z.string().describe(\"The ID of the account that owns the content pin\").nullable().optional(),\n content_id: z.string().describe(\"The ID of the content that is pinned\").nullable(),\n created_at: z.string().describe(\"The timestamp when the content pin was created (ISO 8601 format)\").nullable().optional(),\n content_type: z.string().describe(\"The type of content that is pinned. Example: external_content\").nullable(),\n}).passthrough().describe(\"Response from creating a ticket content pin in Zendesk.\");\n\nexport const zendeskCreateTicketContentPin = action(\"ZENDESK_CREATE_TICKET_CONTENT_PIN\", {\n slug: \"zendesk-create-ticket-content-pin\",\n name: \"Create Ticket Content Pin\",\n description: \"Create a ticket content pin in Zendesk. Content pins allow you to attach helpful resources like Help Center articles or external content directly to tickets for easy reference. Use this action when you need to: - Attach a Help Center article to a ticket for context - Pin an external knowledge base article to a ticket - Add relevant documentation or resources to a support ticket\",\n input: ZendeskCreateTicketContentPinInput,\n output: ZendeskCreateTicketContentPinOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iUAAiU,CAAC,CAAC,SAAS;CACxW,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC9D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;AAC/K,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC9E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAChG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const zendeskCreateTicketContentPin = action("ZENDESK_CREATE_TICKET_CONTENT_PIN"
|
|
|
5
5
|
name: "Create Ticket Content Pin",
|
|
6
6
|
description: "Create a ticket content pin in Zendesk. Content pins allow you to attach helpful resources like Help Center articles or external content directly to tickets for easy reference. Use this action when you need to: - Attach a Help Center article to a ticket for context - Pin an external knowledge base article to a ticket - Add relevant documentation or resources to a support ticket",
|
|
7
7
|
input: z.object({
|
|
8
|
-
locale: z.string().describe("The locale for the content pin.
|
|
8
|
+
locale: z.string().describe("The locale for the content pin. Required when content_type is 'external_content' — Zendesk rejects external-content pins with no locale ('External contents must have locale to be able to get pinned to tickets.'). Also required when pinning articles. Format: language + underscore + locale code (e.g., 'en-us', 'fr-ca').").optional(),
|
|
9
9
|
ticket_id: z.string().describe("The ID of the ticket to which the content pin will be added"),
|
|
10
10
|
content_id: z.string().describe("The ID of the content to pin"),
|
|
11
11
|
content_type: z.string().describe("The type of content being pinned. Common values include 'article' for Help Center articles and 'external_content' for external resources.")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-ticket-content-pin.mjs","names":[],"sources":["../../src/actions/create-ticket-content-pin.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ZendeskCreateTicketContentPinInput = z.object({\n locale: z.string().describe(\"The locale for the content pin.
|
|
1
|
+
{"version":3,"file":"create-ticket-content-pin.mjs","names":[],"sources":["../../src/actions/create-ticket-content-pin.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ZendeskCreateTicketContentPinInput = z.object({\n locale: z.string().describe(\"The locale for the content pin. Required when content_type is 'external_content' — Zendesk rejects external-content pins with no locale ('External contents must have locale to be able to get pinned to tickets.'). Also required when pinning articles. Format: language + underscore + locale code (e.g., 'en-us', 'fr-ca').\").optional(),\n ticket_id: z.string().describe(\"The ID of the ticket to which the content pin will be added\"),\n content_id: z.string().describe(\"The ID of the content to pin\"),\n content_type: z.string().describe(\"The type of content being pinned. Common values include 'article' for Help Center articles and 'external_content' for external resources.\"),\n}).describe(\"Request parameters for creating a ticket content pin in Zendesk.\");\nexport const ZendeskCreateTicketContentPinOutput = z.object({\n id: z.string().describe(\"The unique identifier for the content pin\").nullable(),\n url: z.string().describe(\"The URL to access the pinned content\").nullable().optional(),\n locale: z.string().describe(\"The locale of the content pin\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the content pin creation was successful\").nullable(),\n ticket_id: z.string().describe(\"The ID of the ticket associated with the content pin\").nullable(),\n account_id: z.string().describe(\"The ID of the account that owns the content pin\").nullable().optional(),\n content_id: z.string().describe(\"The ID of the content that is pinned\").nullable(),\n created_at: z.string().describe(\"The timestamp when the content pin was created (ISO 8601 format)\").nullable().optional(),\n content_type: z.string().describe(\"The type of content that is pinned. Example: external_content\").nullable(),\n}).passthrough().describe(\"Response from creating a ticket content pin in Zendesk.\");\n\nexport const zendeskCreateTicketContentPin = action(\"ZENDESK_CREATE_TICKET_CONTENT_PIN\", {\n slug: \"zendesk-create-ticket-content-pin\",\n name: \"Create Ticket Content Pin\",\n description: \"Create a ticket content pin in Zendesk. Content pins allow you to attach helpful resources like Help Center articles or external content directly to tickets for easy reference. Use this action when you need to: - Attach a Help Center article to a ticket for context - Pin an external knowledge base article to a ticket - Add relevant documentation or resources to a support ticket\",\n input: ZendeskCreateTicketContentPinInput,\n output: ZendeskCreateTicketContentPinOutput,\n});\n"],"mappings":";;AAsBA,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBgD,EAAE,OAAO;EACzD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iUAAiU,CAAC,CAAC,SAAS;EACxW,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EAC9D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;CAC/K,CAAC,CAAC,CAAC,SAAS,kEAiBH;CACP,QAjBiD,EAAE,OAAO;EAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAChG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
|
|
@@ -6,9 +6,9 @@ declare const ZendeskCreateUserIdentityInput: z.ZodObject<{
|
|
|
6
6
|
email: "email";
|
|
7
7
|
twitter: "twitter";
|
|
8
8
|
facebook: "facebook";
|
|
9
|
-
agent_forwarding: "agent_forwarding";
|
|
10
|
-
phone_number: "phone_number";
|
|
11
9
|
google: "google";
|
|
10
|
+
phone_number: "phone_number";
|
|
11
|
+
agent_forwarding: "agent_forwarding";
|
|
12
12
|
any_channel: "any_channel";
|
|
13
13
|
foreign: "foreign";
|
|
14
14
|
sdk: "sdk";
|
|
@@ -36,7 +36,7 @@ declare const ZendeskCreateUserIdentityOutput: z.ZodObject<{
|
|
|
36
36
|
}, z.core.$loose>>;
|
|
37
37
|
}, z.core.$loose>;
|
|
38
38
|
declare const zendeskCreateUserIdentity: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
39
|
-
type: "email" | "twitter" | "facebook" | "
|
|
39
|
+
type: "email" | "twitter" | "facebook" | "google" | "phone_number" | "agent_forwarding" | "any_channel" | "foreign" | "sdk" | "messaging";
|
|
40
40
|
value: string;
|
|
41
41
|
user_id: number;
|
|
42
42
|
primary?: boolean | undefined;
|
|
@@ -6,9 +6,9 @@ declare const ZendeskCreateUserIdentityInput: z.ZodObject<{
|
|
|
6
6
|
email: "email";
|
|
7
7
|
twitter: "twitter";
|
|
8
8
|
facebook: "facebook";
|
|
9
|
-
agent_forwarding: "agent_forwarding";
|
|
10
|
-
phone_number: "phone_number";
|
|
11
9
|
google: "google";
|
|
10
|
+
phone_number: "phone_number";
|
|
11
|
+
agent_forwarding: "agent_forwarding";
|
|
12
12
|
any_channel: "any_channel";
|
|
13
13
|
foreign: "foreign";
|
|
14
14
|
sdk: "sdk";
|
|
@@ -36,7 +36,7 @@ declare const ZendeskCreateUserIdentityOutput: z.ZodObject<{
|
|
|
36
36
|
}, z.core.$loose>>;
|
|
37
37
|
}, z.core.$loose>;
|
|
38
38
|
declare const zendeskCreateUserIdentity: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
39
|
-
type: "email" | "twitter" | "facebook" | "
|
|
39
|
+
type: "email" | "twitter" | "facebook" | "google" | "phone_number" | "agent_forwarding" | "any_channel" | "foreign" | "sdk" | "messaging";
|
|
40
40
|
value: string;
|
|
41
41
|
user_id: number;
|
|
42
42
|
primary?: boolean | undefined;
|
|
@@ -25,7 +25,7 @@ const ZendeskCreateZendeskRequestInput = zod.z.object({
|
|
|
25
25
|
"low"
|
|
26
26
|
]).default("normal").describe("The priority of the request. Must be one of: 'low', 'normal', 'high', 'urgent'. Defaults to 'normal'.").optional(),
|
|
27
27
|
external_id: zod.z.string().describe("An external ID to link this request to records in another system.").optional(),
|
|
28
|
-
comment_body: zod.z.string().describe("The initial description or comment on the request.
|
|
28
|
+
comment_body: zod.z.string().describe("The initial description or comment on the request. Required -- Zendesk's Create Request API documents `comment` as mandatory (confirmed live: omitting it returns a 422)."),
|
|
29
29
|
requester_id: zod.z.number().int().describe("The ID of the user making the request.").optional(),
|
|
30
30
|
custom_fields: zod.z.array(zod.z.object({
|
|
31
31
|
id: zod.z.number().int().describe("The ID of the custom field"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-zendesk-request.cjs","names":["z","action"],"sources":["../../src/actions/create-zendesk-request.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ZendeskCreateZendeskRequestInput = z.object({\n tags: z.array(z.string()).describe(\"Array of tags to apply to the request.\").optional(),\n type: z.enum([\"problem\", \"incident\", \"question\", \"task\"]).describe(\"The type of the request. Must be one of: 'question', 'incident', 'problem', 'task'.\").optional(),\n status: z.enum([\"new\", \"open\", \"pending\", \"hold\", \"solved\", \"closed\"]).default(\"new\").describe(\"The state of the request. Must be one of: 'new', 'open', 'pending', 'hold', 'solved', 'closed'. Defaults to 'new'.\").optional(),\n subject: z.string().describe(\"The subject/title of the request. This is a required field.\"),\n priority: z.enum([\"urgent\", \"high\", \"normal\", \"low\"]).default(\"normal\").describe(\"The priority of the request. Must be one of: 'low', 'normal', 'high', 'urgent'. Defaults to 'normal'.\").optional(),\n external_id: z.string().describe(\"An external ID to link this request to records in another system.\").optional(),\n comment_body: z.string().describe(\"The initial description or comment on the request. When creating a request via the API, use `comment` to set the description.\").optional(),\n requester_id: z.number().int().describe(\"The ID of the user making the request.\").optional(),\n custom_fields: z.array(z.object({\n id: z.number().int().describe(\"The ID of the custom field\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.string())]).optional(),\n}).passthrough().describe(\"Custom field item with id and value.\")).describe(\"Custom fields for the request. Each item should include 'id' and 'value' properties.\").optional(),\n requester_name: z.string().describe(\"Name of the requester. If provided with requester_email, creates a user object for the requester.\").optional(),\n ticket_form_id: z.number().int().describe(\"The numeric ID of the ticket form associated with the request. Only applicable for enterprise accounts.\").optional(),\n requester_email: z.string().describe(\"Email of the requester. Must be provided together with requester_name.\").optional(),\n}).describe(\"Request model for creating a new Zendesk request.\");\nconst ZendeskCreateZendeskRequest_ViaSourceSchema = z.object({\n to: z.record(z.string(), z.unknown()).describe(\"Destination details\").nullable().optional(),\n from: z.record(z.string(), z.unknown()).describe(\"Source origin details\").nullable().optional(),\n}).passthrough().describe(\"Source object for the via field.\");\nconst ZendeskCreateZendeskRequest_ViaSchema = z.object({\n source: ZendeskCreateZendeskRequest_ViaSourceSchema.nullable().optional(),\n channel: z.string().describe(\"The channel through which the request was created (e.g., 'web', 'email')\").nullable().optional(),\n}).passthrough().describe(\"Describes how the request was created.\");\nexport const ZendeskCreateZendeskRequestOutput = z.object({\n id: z.number().int().describe(\"Automatically assigned unique ID when creating requests\").nullable().optional(),\n url: z.string().describe(\"The API URL of this request\").nullable().optional(),\n via: ZendeskCreateZendeskRequest_ViaSchema.nullable().optional(),\n type: z.string().describe(\"The type of the request (question, incident, problem, task)\").nullable().optional(),\n due_at: z.string().describe(\"When the task is due (only applies if the request is of type 'task')\").nullable().optional(),\n solved: z.boolean().describe(\"Whether the request is solved\").nullable().optional(),\n status: z.string().describe(\"The state of the request (new, open, pending, hold, solved, closed)\").nullable().optional(),\n subject: z.string().describe(\"The subject of the request\").nullable().optional(),\n group_id: z.number().int().describe(\"The ID of the assigned group\").nullable().optional(),\n priority: z.string().describe(\"The priority of the request (low, normal, high, urgent)\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether any comments are public\").nullable().optional(),\n recipient: z.string().describe(\"The original recipient email address of the request\").nullable().optional(),\n created_at: z.string().describe(\"When this record was created (ISO 8601 format)\").nullable().optional(),\n updated_at: z.string().describe(\"When this record was last updated (ISO 8601 format)\").nullable().optional(),\n assignee_id: z.number().int().describe(\"The ID of the assignee\").nullable().optional(),\n description: z.string().describe(\"Read-only first comment on the request\").nullable().optional(),\n email_cc_ids: z.array(z.number().int()).describe(\"IDs of users currently email CC'd on the request\").nullable().optional(),\n requester_id: z.number().int().describe(\"The ID of the requester\").nullable().optional(),\n ticket_form_id: z.number().int().describe(\"The numeric ID of the ticket form associated with the request\").nullable().optional(),\n organization_id: z.number().int().describe(\"The organization of the requester\").nullable().optional(),\n collaborator_ids: z.array(z.number().int()).describe(\"IDs of users currently CC'd on the request\").nullable().optional(),\n custom_status_id: z.number().int().describe(\"The custom ticket status ID of the request\").nullable().optional(),\n followup_source_id: z.number().int().describe(\"The ID of the original request if this is a follow-up\").nullable().optional(),\n can_be_solved_by_me: z.boolean().describe(\"Whether an end user can mark the request as solved\").nullable().optional(),\n}).passthrough().describe(\"Response model for a created Zendesk request.\");\n\nexport const zendeskCreateZendeskRequest = action(\"ZENDESK_CREATE_ZENDESK_REQUEST\", {\n slug: \"zendesk-create-zendesk-request\",\n name: \"Create Zendesk Request\",\n description: \"Create a new request in Zendesk. Use when an end user needs to submit a support request through the API. The request will be created with the provided subject, description, priority, and other optional fields. Returns the created request with its ID and URL.\",\n input: ZendeskCreateZendeskRequestInput,\n output: ZendeskCreateZendeskRequestOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACtF,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAY;EAAY;CAAM,CAAC,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CACnK,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;EAAW;EAAQ;EAAU;CAAQ,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC9N,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CAC1F,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAU;CAAK,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnM,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC/G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CAC5K,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAA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,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-zendesk-request.cjs","names":["z","action"],"sources":["../../src/actions/create-zendesk-request.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ZendeskCreateZendeskRequestInput = z.object({\n tags: z.array(z.string()).describe(\"Array of tags to apply to the request.\").optional(),\n type: z.enum([\"problem\", \"incident\", \"question\", \"task\"]).describe(\"The type of the request. Must be one of: 'question', 'incident', 'problem', 'task'.\").optional(),\n status: z.enum([\"new\", \"open\", \"pending\", \"hold\", \"solved\", \"closed\"]).default(\"new\").describe(\"The state of the request. Must be one of: 'new', 'open', 'pending', 'hold', 'solved', 'closed'. Defaults to 'new'.\").optional(),\n subject: z.string().describe(\"The subject/title of the request. This is a required field.\"),\n priority: z.enum([\"urgent\", \"high\", \"normal\", \"low\"]).default(\"normal\").describe(\"The priority of the request. Must be one of: 'low', 'normal', 'high', 'urgent'. Defaults to 'normal'.\").optional(),\n external_id: z.string().describe(\"An external ID to link this request to records in another system.\").optional(),\n comment_body: z.string().describe(\"The initial description or comment on the request. Required -- Zendesk's Create Request API documents `comment` as mandatory (confirmed live: omitting it returns a 422).\"),\n requester_id: z.number().int().describe(\"The ID of the user making the request.\").optional(),\n custom_fields: z.array(z.object({\n id: z.number().int().describe(\"The ID of the custom field\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.string())]).optional(),\n}).passthrough().describe(\"Custom field item with id and value.\")).describe(\"Custom fields for the request. Each item should include 'id' and 'value' properties.\").optional(),\n requester_name: z.string().describe(\"Name of the requester. If provided with requester_email, creates a user object for the requester.\").optional(),\n ticket_form_id: z.number().int().describe(\"The numeric ID of the ticket form associated with the request. Only applicable for enterprise accounts.\").optional(),\n requester_email: z.string().describe(\"Email of the requester. Must be provided together with requester_name.\").optional(),\n}).describe(\"Request model for creating a new Zendesk request.\");\nconst ZendeskCreateZendeskRequest_ViaSourceSchema = z.object({\n to: z.record(z.string(), z.unknown()).describe(\"Destination details\").nullable().optional(),\n from: z.record(z.string(), z.unknown()).describe(\"Source origin details\").nullable().optional(),\n}).passthrough().describe(\"Source object for the via field.\");\nconst ZendeskCreateZendeskRequest_ViaSchema = z.object({\n source: ZendeskCreateZendeskRequest_ViaSourceSchema.nullable().optional(),\n channel: z.string().describe(\"The channel through which the request was created (e.g., 'web', 'email')\").nullable().optional(),\n}).passthrough().describe(\"Describes how the request was created.\");\nexport const ZendeskCreateZendeskRequestOutput = z.object({\n id: z.number().int().describe(\"Automatically assigned unique ID when creating requests\").nullable().optional(),\n url: z.string().describe(\"The API URL of this request\").nullable().optional(),\n via: ZendeskCreateZendeskRequest_ViaSchema.nullable().optional(),\n type: z.string().describe(\"The type of the request (question, incident, problem, task)\").nullable().optional(),\n due_at: z.string().describe(\"When the task is due (only applies if the request is of type 'task')\").nullable().optional(),\n solved: z.boolean().describe(\"Whether the request is solved\").nullable().optional(),\n status: z.string().describe(\"The state of the request (new, open, pending, hold, solved, closed)\").nullable().optional(),\n subject: z.string().describe(\"The subject of the request\").nullable().optional(),\n group_id: z.number().int().describe(\"The ID of the assigned group\").nullable().optional(),\n priority: z.string().describe(\"The priority of the request (low, normal, high, urgent)\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether any comments are public\").nullable().optional(),\n recipient: z.string().describe(\"The original recipient email address of the request\").nullable().optional(),\n created_at: z.string().describe(\"When this record was created (ISO 8601 format)\").nullable().optional(),\n updated_at: z.string().describe(\"When this record was last updated (ISO 8601 format)\").nullable().optional(),\n assignee_id: z.number().int().describe(\"The ID of the assignee\").nullable().optional(),\n description: z.string().describe(\"Read-only first comment on the request\").nullable().optional(),\n email_cc_ids: z.array(z.number().int()).describe(\"IDs of users currently email CC'd on the request\").nullable().optional(),\n requester_id: z.number().int().describe(\"The ID of the requester\").nullable().optional(),\n ticket_form_id: z.number().int().describe(\"The numeric ID of the ticket form associated with the request\").nullable().optional(),\n organization_id: z.number().int().describe(\"The organization of the requester\").nullable().optional(),\n collaborator_ids: z.array(z.number().int()).describe(\"IDs of users currently CC'd on the request\").nullable().optional(),\n custom_status_id: z.number().int().describe(\"The custom ticket status ID of the request\").nullable().optional(),\n followup_source_id: z.number().int().describe(\"The ID of the original request if this is a follow-up\").nullable().optional(),\n can_be_solved_by_me: z.boolean().describe(\"Whether an end user can mark the request as solved\").nullable().optional(),\n}).passthrough().describe(\"Response model for a created Zendesk request.\");\n\nexport const zendeskCreateZendeskRequest = action(\"ZENDESK_CREATE_ZENDESK_REQUEST\", {\n slug: \"zendesk-create-zendesk-request\",\n name: \"Create Zendesk Request\",\n description: \"Create a new request in Zendesk. Use when an end user needs to submit a support request through the API. The request will be created with the provided subject, description, priority, and other optional fields. Returns the created request with its ID and URL.\",\n input: ZendeskCreateZendeskRequestInput,\n output: ZendeskCreateZendeskRequestOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACtF,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAY;EAAY;CAAM,CAAC,CAAC,CAAC,SAAS,qFAAqF,CAA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
requester_id: z.ZodOptional<z.ZodNumber>;
|
|
30
30
|
custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31
31
|
id: z.ZodNumber;
|
|
@@ -69,12 +69,12 @@ declare const ZendeskCreateZendeskRequestOutput: z.ZodObject<{
|
|
|
69
69
|
}, z.core.$loose>;
|
|
70
70
|
declare const zendeskCreateZendeskRequest: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
71
71
|
subject: string;
|
|
72
|
+
comment_body: string;
|
|
72
73
|
tags?: string[] | undefined;
|
|
73
74
|
type?: "problem" | "incident" | "question" | "task" | undefined;
|
|
74
75
|
status?: "new" | "open" | "pending" | "hold" | "solved" | "closed" | undefined;
|
|
75
76
|
priority?: "urgent" | "high" | "normal" | "low" | undefined;
|
|
76
77
|
external_id?: string | undefined;
|
|
77
|
-
comment_body?: string | undefined;
|
|
78
78
|
requester_id?: number | undefined;
|
|
79
79
|
custom_fields?: {
|
|
80
80
|
[x: string]: unknown;
|
|
@@ -25,7 +25,7 @@ declare const ZendeskCreateZendeskRequestInput: z.ZodObject<{
|
|
|
25
25
|
low: "low";
|
|
26
26
|
}>>>;
|
|
27
27
|
external_id: z.ZodOptional<z.ZodString>;
|
|
28
|
-
comment_body: z.
|
|
28
|
+
comment_body: z.ZodString;
|
|
29
29
|
requester_id: z.ZodOptional<z.ZodNumber>;
|
|
30
30
|
custom_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31
31
|
id: z.ZodNumber;
|
|
@@ -69,12 +69,12 @@ declare const ZendeskCreateZendeskRequestOutput: z.ZodObject<{
|
|
|
69
69
|
}, z.core.$loose>;
|
|
70
70
|
declare const zendeskCreateZendeskRequest: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
71
71
|
subject: string;
|
|
72
|
+
comment_body: string;
|
|
72
73
|
tags?: string[] | undefined;
|
|
73
74
|
type?: "problem" | "incident" | "question" | "task" | undefined;
|
|
74
75
|
status?: "new" | "open" | "pending" | "hold" | "solved" | "closed" | undefined;
|
|
75
76
|
priority?: "urgent" | "high" | "normal" | "low" | undefined;
|
|
76
77
|
external_id?: string | undefined;
|
|
77
|
-
comment_body?: string | undefined;
|
|
78
78
|
requester_id?: number | undefined;
|
|
79
79
|
custom_fields?: {
|
|
80
80
|
[x: string]: unknown;
|
|
@@ -25,7 +25,7 @@ const ZendeskCreateZendeskRequestInput = z.object({
|
|
|
25
25
|
"low"
|
|
26
26
|
]).default("normal").describe("The priority of the request. Must be one of: 'low', 'normal', 'high', 'urgent'. Defaults to 'normal'.").optional(),
|
|
27
27
|
external_id: z.string().describe("An external ID to link this request to records in another system.").optional(),
|
|
28
|
-
comment_body: z.string().describe("The initial description or comment on the request.
|
|
28
|
+
comment_body: z.string().describe("The initial description or comment on the request. Required -- Zendesk's Create Request API documents `comment` as mandatory (confirmed live: omitting it returns a 422)."),
|
|
29
29
|
requester_id: z.number().int().describe("The ID of the user making the request.").optional(),
|
|
30
30
|
custom_fields: z.array(z.object({
|
|
31
31
|
id: z.number().int().describe("The ID of the custom field"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-zendesk-request.mjs","names":[],"sources":["../../src/actions/create-zendesk-request.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ZendeskCreateZendeskRequestInput = z.object({\n tags: z.array(z.string()).describe(\"Array of tags to apply to the request.\").optional(),\n type: z.enum([\"problem\", \"incident\", \"question\", \"task\"]).describe(\"The type of the request. Must be one of: 'question', 'incident', 'problem', 'task'.\").optional(),\n status: z.enum([\"new\", \"open\", \"pending\", \"hold\", \"solved\", \"closed\"]).default(\"new\").describe(\"The state of the request. Must be one of: 'new', 'open', 'pending', 'hold', 'solved', 'closed'. Defaults to 'new'.\").optional(),\n subject: z.string().describe(\"The subject/title of the request. This is a required field.\"),\n priority: z.enum([\"urgent\", \"high\", \"normal\", \"low\"]).default(\"normal\").describe(\"The priority of the request. Must be one of: 'low', 'normal', 'high', 'urgent'. Defaults to 'normal'.\").optional(),\n external_id: z.string().describe(\"An external ID to link this request to records in another system.\").optional(),\n comment_body: z.string().describe(\"The initial description or comment on the request. When creating a request via the API, use `comment` to set the description.\").optional(),\n requester_id: z.number().int().describe(\"The ID of the user making the request.\").optional(),\n custom_fields: z.array(z.object({\n id: z.number().int().describe(\"The ID of the custom field\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.string())]).optional(),\n}).passthrough().describe(\"Custom field item with id and value.\")).describe(\"Custom fields for the request. Each item should include 'id' and 'value' properties.\").optional(),\n requester_name: z.string().describe(\"Name of the requester. If provided with requester_email, creates a user object for the requester.\").optional(),\n ticket_form_id: z.number().int().describe(\"The numeric ID of the ticket form associated with the request. Only applicable for enterprise accounts.\").optional(),\n requester_email: z.string().describe(\"Email of the requester. Must be provided together with requester_name.\").optional(),\n}).describe(\"Request model for creating a new Zendesk request.\");\nconst ZendeskCreateZendeskRequest_ViaSourceSchema = z.object({\n to: z.record(z.string(), z.unknown()).describe(\"Destination details\").nullable().optional(),\n from: z.record(z.string(), z.unknown()).describe(\"Source origin details\").nullable().optional(),\n}).passthrough().describe(\"Source object for the via field.\");\nconst ZendeskCreateZendeskRequest_ViaSchema = z.object({\n source: ZendeskCreateZendeskRequest_ViaSourceSchema.nullable().optional(),\n channel: z.string().describe(\"The channel through which the request was created (e.g., 'web', 'email')\").nullable().optional(),\n}).passthrough().describe(\"Describes how the request was created.\");\nexport const ZendeskCreateZendeskRequestOutput = z.object({\n id: z.number().int().describe(\"Automatically assigned unique ID when creating requests\").nullable().optional(),\n url: z.string().describe(\"The API URL of this request\").nullable().optional(),\n via: ZendeskCreateZendeskRequest_ViaSchema.nullable().optional(),\n type: z.string().describe(\"The type of the request (question, incident, problem, task)\").nullable().optional(),\n due_at: z.string().describe(\"When the task is due (only applies if the request is of type 'task')\").nullable().optional(),\n solved: z.boolean().describe(\"Whether the request is solved\").nullable().optional(),\n status: z.string().describe(\"The state of the request (new, open, pending, hold, solved, closed)\").nullable().optional(),\n subject: z.string().describe(\"The subject of the request\").nullable().optional(),\n group_id: z.number().int().describe(\"The ID of the assigned group\").nullable().optional(),\n priority: z.string().describe(\"The priority of the request (low, normal, high, urgent)\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether any comments are public\").nullable().optional(),\n recipient: z.string().describe(\"The original recipient email address of the request\").nullable().optional(),\n created_at: z.string().describe(\"When this record was created (ISO 8601 format)\").nullable().optional(),\n updated_at: z.string().describe(\"When this record was last updated (ISO 8601 format)\").nullable().optional(),\n assignee_id: z.number().int().describe(\"The ID of the assignee\").nullable().optional(),\n description: z.string().describe(\"Read-only first comment on the request\").nullable().optional(),\n email_cc_ids: z.array(z.number().int()).describe(\"IDs of users currently email CC'd on the request\").nullable().optional(),\n requester_id: z.number().int().describe(\"The ID of the requester\").nullable().optional(),\n ticket_form_id: z.number().int().describe(\"The numeric ID of the ticket form associated with the request\").nullable().optional(),\n organization_id: z.number().int().describe(\"The organization of the requester\").nullable().optional(),\n collaborator_ids: z.array(z.number().int()).describe(\"IDs of users currently CC'd on the request\").nullable().optional(),\n custom_status_id: z.number().int().describe(\"The custom ticket status ID of the request\").nullable().optional(),\n followup_source_id: z.number().int().describe(\"The ID of the original request if this is a follow-up\").nullable().optional(),\n can_be_solved_by_me: z.boolean().describe(\"Whether an end user can mark the request as solved\").nullable().optional(),\n}).passthrough().describe(\"Response model for a created Zendesk request.\");\n\nexport const zendeskCreateZendeskRequest = action(\"ZENDESK_CREATE_ZENDESK_REQUEST\", {\n slug: \"zendesk-create-zendesk-request\",\n name: \"Create Zendesk Request\",\n description: \"Create a new request in Zendesk. Use when an end user needs to submit a support request through the API. The request will be created with the provided subject, description, priority, and other optional fields. Returns the created request with its ID and URL.\",\n input: ZendeskCreateZendeskRequestInput,\n output: ZendeskCreateZendeskRequestOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,S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E,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-zendesk-request.mjs","names":[],"sources":["../../src/actions/create-zendesk-request.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ZendeskCreateZendeskRequestInput = z.object({\n tags: z.array(z.string()).describe(\"Array of tags to apply to the request.\").optional(),\n type: z.enum([\"problem\", \"incident\", \"question\", \"task\"]).describe(\"The type of the request. Must be one of: 'question', 'incident', 'problem', 'task'.\").optional(),\n status: z.enum([\"new\", \"open\", \"pending\", \"hold\", \"solved\", \"closed\"]).default(\"new\").describe(\"The state of the request. Must be one of: 'new', 'open', 'pending', 'hold', 'solved', 'closed'. Defaults to 'new'.\").optional(),\n subject: z.string().describe(\"The subject/title of the request. This is a required field.\"),\n priority: z.enum([\"urgent\", \"high\", \"normal\", \"low\"]).default(\"normal\").describe(\"The priority of the request. Must be one of: 'low', 'normal', 'high', 'urgent'. Defaults to 'normal'.\").optional(),\n external_id: z.string().describe(\"An external ID to link this request to records in another system.\").optional(),\n comment_body: z.string().describe(\"The initial description or comment on the request. Required -- Zendesk's Create Request API documents `comment` as mandatory (confirmed live: omitting it returns a 422).\"),\n requester_id: z.number().int().describe(\"The ID of the user making the request.\").optional(),\n custom_fields: z.array(z.object({\n id: z.number().int().describe(\"The ID of the custom field\"),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.string())]).optional(),\n}).passthrough().describe(\"Custom field item with id and value.\")).describe(\"Custom fields for the request. Each item should include 'id' and 'value' properties.\").optional(),\n requester_name: z.string().describe(\"Name of the requester. If provided with requester_email, creates a user object for the requester.\").optional(),\n ticket_form_id: z.number().int().describe(\"The numeric ID of the ticket form associated with the request. Only applicable for enterprise accounts.\").optional(),\n requester_email: z.string().describe(\"Email of the requester. Must be provided together with requester_name.\").optional(),\n}).describe(\"Request model for creating a new Zendesk request.\");\nconst ZendeskCreateZendeskRequest_ViaSourceSchema = z.object({\n to: z.record(z.string(), z.unknown()).describe(\"Destination details\").nullable().optional(),\n from: z.record(z.string(), z.unknown()).describe(\"Source origin details\").nullable().optional(),\n}).passthrough().describe(\"Source object for the via field.\");\nconst ZendeskCreateZendeskRequest_ViaSchema = z.object({\n source: ZendeskCreateZendeskRequest_ViaSourceSchema.nullable().optional(),\n channel: z.string().describe(\"The channel through which the request was created (e.g., 'web', 'email')\").nullable().optional(),\n}).passthrough().describe(\"Describes how the request was created.\");\nexport const ZendeskCreateZendeskRequestOutput = z.object({\n id: z.number().int().describe(\"Automatically assigned unique ID when creating requests\").nullable().optional(),\n url: z.string().describe(\"The API URL of this request\").nullable().optional(),\n via: ZendeskCreateZendeskRequest_ViaSchema.nullable().optional(),\n type: z.string().describe(\"The type of the request (question, incident, problem, task)\").nullable().optional(),\n due_at: z.string().describe(\"When the task is due (only applies if the request is of type 'task')\").nullable().optional(),\n solved: z.boolean().describe(\"Whether the request is solved\").nullable().optional(),\n status: z.string().describe(\"The state of the request (new, open, pending, hold, solved, closed)\").nullable().optional(),\n subject: z.string().describe(\"The subject of the request\").nullable().optional(),\n group_id: z.number().int().describe(\"The ID of the assigned group\").nullable().optional(),\n priority: z.string().describe(\"The priority of the request (low, normal, high, urgent)\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether any comments are public\").nullable().optional(),\n recipient: z.string().describe(\"The original recipient email address of the request\").nullable().optional(),\n created_at: z.string().describe(\"When this record was created (ISO 8601 format)\").nullable().optional(),\n updated_at: z.string().describe(\"When this record was last updated (ISO 8601 format)\").nullable().optional(),\n assignee_id: z.number().int().describe(\"The ID of the assignee\").nullable().optional(),\n description: z.string().describe(\"Read-only first comment on the request\").nullable().optional(),\n email_cc_ids: z.array(z.number().int()).describe(\"IDs of users currently email CC'd on the request\").nullable().optional(),\n requester_id: z.number().int().describe(\"The ID of the requester\").nullable().optional(),\n ticket_form_id: z.number().int().describe(\"The numeric ID of the ticket form associated with the request\").nullable().optional(),\n organization_id: z.number().int().describe(\"The organization of the requester\").nullable().optional(),\n collaborator_ids: z.array(z.number().int()).describe(\"IDs of users currently CC'd on the request\").nullable().optional(),\n custom_status_id: z.number().int().describe(\"The custom ticket status ID of the request\").nullable().optional(),\n followup_source_id: z.number().int().describe(\"The ID of the original request if this is a follow-up\").nullable().optional(),\n can_be_solved_by_me: z.boolean().describe(\"Whether an end user can mark the request as solved\").nullable().optional(),\n}).passthrough().describe(\"Response model for a created Zendesk request.\");\n\nexport const zendeskCreateZendeskRequest = action(\"ZENDESK_CREATE_ZENDESK_REQUEST\", {\n slug: \"zendesk-create-zendesk-request\",\n name: \"Create Zendesk Request\",\n description: \"Create a new request in Zendesk. Use when an end user needs to submit a support request through the API. The request will be created with the provided subject, description, priority, and other optional fields. Returns the created request with its ID and URL.\",\n input: ZendeskCreateZendeskRequestInput,\n output: ZendeskCreateZendeskRequestOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAA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