@keystrokehq/sendspark 0.1.0 → 0.1.2

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.
Files changed (79) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-multiple-prospects-to-dynamic-campaign.cjs +18 -18
  4. package/dist/actions/add-multiple-prospects-to-dynamic-campaign.cjs.map +1 -1
  5. package/dist/actions/add-multiple-prospects-to-dynamic-campaign.d.cts +81 -3
  6. package/dist/actions/add-multiple-prospects-to-dynamic-campaign.d.cts.map +1 -1
  7. package/dist/actions/add-multiple-prospects-to-dynamic-campaign.d.mts +81 -3
  8. package/dist/actions/add-multiple-prospects-to-dynamic-campaign.d.mts.map +1 -1
  9. package/dist/actions/add-multiple-prospects-to-dynamic-campaign.mjs +18 -18
  10. package/dist/actions/add-multiple-prospects-to-dynamic-campaign.mjs.map +1 -1
  11. package/dist/actions/add-prospect-to-dynamic-video-campaign.cjs +7 -7
  12. package/dist/actions/add-prospect-to-dynamic-video-campaign.cjs.map +1 -1
  13. package/dist/actions/add-prospect-to-dynamic-video-campaign.d.cts +56 -3
  14. package/dist/actions/add-prospect-to-dynamic-video-campaign.d.cts.map +1 -1
  15. package/dist/actions/add-prospect-to-dynamic-video-campaign.d.mts +56 -3
  16. package/dist/actions/add-prospect-to-dynamic-video-campaign.d.mts.map +1 -1
  17. package/dist/actions/add-prospect-to-dynamic-video-campaign.mjs +7 -7
  18. package/dist/actions/add-prospect-to-dynamic-video-campaign.mjs.map +1 -1
  19. package/dist/actions/api-health-status.cjs +1 -1
  20. package/dist/actions/api-health-status.cjs.map +1 -1
  21. package/dist/actions/api-health-status.d.cts +5 -3
  22. package/dist/actions/api-health-status.d.cts.map +1 -1
  23. package/dist/actions/api-health-status.d.mts +5 -3
  24. package/dist/actions/api-health-status.d.mts.map +1 -1
  25. package/dist/actions/api-health-status.mjs +1 -1
  26. package/dist/actions/api-health-status.mjs.map +1 -1
  27. package/dist/actions/create-dynamic-video-campaign2.cjs +6 -6
  28. package/dist/actions/create-dynamic-video-campaign2.cjs.map +1 -1
  29. package/dist/actions/create-dynamic-video-campaign2.d.cts +31 -3
  30. package/dist/actions/create-dynamic-video-campaign2.d.cts.map +1 -1
  31. package/dist/actions/create-dynamic-video-campaign2.d.mts +31 -3
  32. package/dist/actions/create-dynamic-video-campaign2.d.mts.map +1 -1
  33. package/dist/actions/create-dynamic-video-campaign2.mjs +6 -6
  34. package/dist/actions/create-dynamic-video-campaign2.mjs.map +1 -1
  35. package/dist/actions/delete-webhook.cjs +1 -1
  36. package/dist/actions/delete-webhook.cjs.map +1 -1
  37. package/dist/actions/delete-webhook.d.cts +12 -3
  38. package/dist/actions/delete-webhook.d.cts.map +1 -1
  39. package/dist/actions/delete-webhook.d.mts +12 -3
  40. package/dist/actions/delete-webhook.d.mts.map +1 -1
  41. package/dist/actions/delete-webhook.mjs +1 -1
  42. package/dist/actions/delete-webhook.mjs.map +1 -1
  43. package/dist/actions/get-dynamic-campaign-by-id.cjs +17 -17
  44. package/dist/actions/get-dynamic-campaign-by-id.cjs.map +1 -1
  45. package/dist/actions/get-dynamic-campaign-by-id.d.cts +47 -3
  46. package/dist/actions/get-dynamic-campaign-by-id.d.cts.map +1 -1
  47. package/dist/actions/get-dynamic-campaign-by-id.d.mts +47 -3
  48. package/dist/actions/get-dynamic-campaign-by-id.d.mts.map +1 -1
  49. package/dist/actions/get-dynamic-campaign-by-id.mjs +17 -17
  50. package/dist/actions/get-dynamic-campaign-by-id.mjs.map +1 -1
  51. package/dist/actions/get-workspace-prospect-data-by-email.cjs +9 -9
  52. package/dist/actions/get-workspace-prospect-data-by-email.cjs.map +1 -1
  53. package/dist/actions/get-workspace-prospect-data-by-email.d.cts +36 -3
  54. package/dist/actions/get-workspace-prospect-data-by-email.d.cts.map +1 -1
  55. package/dist/actions/get-workspace-prospect-data-by-email.d.mts +36 -3
  56. package/dist/actions/get-workspace-prospect-data-by-email.d.mts.map +1 -1
  57. package/dist/actions/get-workspace-prospect-data-by-email.mjs +9 -9
  58. package/dist/actions/get-workspace-prospect-data-by-email.mjs.map +1 -1
  59. package/dist/actions/list-dynamic-video-campaigns.cjs +49 -49
  60. package/dist/actions/list-dynamic-video-campaigns.cjs.map +1 -1
  61. package/dist/actions/list-dynamic-video-campaigns.d.cts +106 -3
  62. package/dist/actions/list-dynamic-video-campaigns.d.cts.map +1 -1
  63. package/dist/actions/list-dynamic-video-campaigns.d.mts +106 -3
  64. package/dist/actions/list-dynamic-video-campaigns.d.mts.map +1 -1
  65. package/dist/actions/list-dynamic-video-campaigns.mjs +49 -49
  66. package/dist/actions/list-dynamic-video-campaigns.mjs.map +1 -1
  67. package/dist/actions/list-webhooks.cjs.map +1 -1
  68. package/dist/actions/list-webhooks.d.cts +7 -3
  69. package/dist/actions/list-webhooks.d.cts.map +1 -1
  70. package/dist/actions/list-webhooks.d.mts +7 -3
  71. package/dist/actions/list-webhooks.d.mts.map +1 -1
  72. package/dist/actions/list-webhooks.mjs.map +1 -1
  73. package/dist/catalog.cjs +14 -1
  74. package/dist/catalog.cjs.map +1 -1
  75. package/dist/catalog.d.cts +13 -0
  76. package/dist/catalog.d.mts +13 -0
  77. package/dist/catalog.mjs +14 -1
  78. package/dist/catalog.mjs.map +1 -1
  79. package/package.json +2 -2
@@ -1,9 +1,62 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/add-prospect-to-dynamic-video-campaign.d.ts
4
- declare const SendsparkAddProspectToDynamicVideoCampaignInput: z.ZodTypeAny;
5
- declare const SendsparkAddProspectToDynamicVideoCampaignOutput: z.ZodTypeAny;
6
- declare const sendsparkAddProspectToDynamicVideoCampaign: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SendsparkAddProspectToDynamicVideoCampaignInput: z.ZodObject<{
5
+ prospect: z.ZodObject<{
6
+ company: z.ZodOptional<z.ZodString>;
7
+ jobTitle: z.ZodOptional<z.ZodString>;
8
+ contactName: z.ZodString;
9
+ contactEmail: z.ZodString;
10
+ backgroundUrl: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ dynamicId: z.ZodString;
13
+ workspaceId: z.ZodString;
14
+ prospectDepurationConfig: z.ZodOptional<z.ZodObject<{
15
+ forceCreation: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
16
+ payloadDepurationStrategy: z.ZodEnum<{
17
+ "keep-first-valid": "keep-first-valid";
18
+ "keep-last-valid": "keep-last-valid";
19
+ }>;
20
+ }, z.core.$strip>>;
21
+ processAndAuthorizeCharge: z.ZodBoolean;
22
+ }, z.core.$strip>;
23
+ declare const SendsparkAddProspectToDynamicVideoCampaignOutput: z.ZodObject<{
24
+ prospectList: z.ZodArray<z.ZodObject<{
25
+ _id: z.ZodNullable<z.ZodString>;
26
+ valid: z.ZodNullable<z.ZodBoolean>;
27
+ bulkId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ status: z.ZodNullable<z.ZodString>;
29
+ company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ campaign: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ jobTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ createdAt: z.ZodNullable<z.ZodString>;
33
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ updatedAt: z.ZodNullable<z.ZodString>;
35
+ webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ contactName: z.ZodNullable<z.ZodString>;
37
+ contactEmail: z.ZodNullable<z.ZodString>;
38
+ backgroundUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ screenshotUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ webhookEvents: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
41
+ validationDetails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
42
+ }, z.core.$strip>>;
43
+ }, z.core.$loose>;
44
+ declare const sendsparkAddProspectToDynamicVideoCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
45
+ prospect: {
46
+ contactName: string;
47
+ contactEmail: string;
48
+ company?: string | undefined;
49
+ jobTitle?: string | undefined;
50
+ backgroundUrl?: string | undefined;
51
+ };
52
+ dynamicId: string;
53
+ workspaceId: string;
54
+ processAndAuthorizeCharge: boolean;
55
+ prospectDepurationConfig?: {
56
+ payloadDepurationStrategy: "keep-first-valid" | "keep-last-valid";
57
+ forceCreation?: boolean | undefined;
58
+ } | undefined;
59
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
60
  //#endregion
8
61
  export { sendsparkAddProspectToDynamicVideoCampaign };
9
62
  //# sourceMappingURL=add-prospect-to-dynamic-video-campaign.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-prospect-to-dynamic-video-campaign.d.mts","names":[],"sources":["../../src/actions/add-prospect-to-dynamic-video-campaign.ts"],"mappings":";;;cAIa,+CAAA,EAAiD,CAAA,CAAE,UAee;AAAA,cAoBlE,gDAAA,EAAkD,CAAA,CAAE,UAEiD;AAAA,cAErG,0CAAA,gCAA0C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"add-prospect-to-dynamic-video-campaign.d.mts","names":[],"sources":["../../src/actions/add-prospect-to-dynamic-video-campaign.ts"],"mappings":";;;cAIa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAmC/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAIhD,0CAAA,gCAA0C,wBAAA"}
@@ -18,19 +18,19 @@ const SendsparkAddProspectToDynamicVideoCampaignInput = z.object({
18
18
  processAndAuthorizeCharge: z.boolean().describe("Must be true to acknowledge and authorize any associated charges.")
19
19
  }).describe("Request model for adding a prospect to a dynamic video campaign.");
20
20
  const SendsparkAddProspectToDynamicVideoCampaign_ProspectListItemSchema = z.object({
21
- _id: z.string().describe("Unique prospect identifier."),
22
- valid: z.boolean().describe("Whether the prospect data was validated."),
21
+ _id: z.string().describe("Unique prospect identifier.").nullable(),
22
+ valid: z.boolean().describe("Whether the prospect data was validated.").nullable(),
23
23
  bulkId: z.string().describe("Bulk operation identifier.").nullable().optional(),
24
- status: z.string().describe("Processing status of the prospect."),
24
+ status: z.string().describe("Processing status of the prospect.").nullable(),
25
25
  company: z.string().describe("Company of the prospect.").nullable().optional(),
26
26
  campaign: z.string().describe("Campaign identifier.").nullable().optional(),
27
27
  jobTitle: z.string().describe("Job title of the prospect.").nullable().optional(),
28
- createdAt: z.string().describe("ISO timestamp when created."),
28
+ createdAt: z.string().describe("ISO timestamp when created.").nullable(),
29
29
  deletedAt: z.string().describe("ISO timestamp when deleted, if applicable.").nullable().optional(),
30
- updatedAt: z.string().describe("ISO timestamp when last updated."),
30
+ updatedAt: z.string().describe("ISO timestamp when last updated.").nullable(),
31
31
  webhookUrl: z.string().describe("Webhook callback URL.").nullable().optional(),
32
- contactName: z.string().describe("Name of the prospect."),
33
- contactEmail: z.string().describe("Email of the prospect."),
32
+ contactName: z.string().describe("Name of the prospect.").nullable(),
33
+ contactEmail: z.string().describe("Email of the prospect.").nullable(),
34
34
  backgroundUrl: z.string().describe("Background image URL.").nullable().optional(),
35
35
  screenshotUrl: z.string().describe("Screenshot URL for the video.").nullable().optional(),
36
36
  webhookEvents: z.array(z.string()).describe("List of webhook event names subscribed.").nullable().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"add-prospect-to-dynamic-video-campaign.mjs","names":[],"sources":["../../src/actions/add-prospect-to-dynamic-video-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendsparkAddProspectToDynamicVideoCampaignInput: z.ZodTypeAny = z.object({\n prospect: z.object({\n company: z.string().describe(\"Company name of the prospect.\").optional(),\n jobTitle: z.string().describe(\"Job title of the prospect.\").optional(),\n contactName: z.string().describe(\"Full name of the prospect.\"),\n contactEmail: z.string().describe(\"Valid email address of the prospect.\"),\n backgroundUrl: z.string().describe(\"URL of the background image to use in the video.\").optional(),\n}).describe(\"The prospect data to add to the dynamic video campaign.\"),\n dynamicId: z.string().describe(\"Identifier of the dynamic video campaign.\"),\n workspaceId: z.string().describe(\"Workspace identifier under which the campaign resides.\"),\n prospectDepurationConfig: z.object({\n forceCreation: z.boolean().default(false).describe(\"If true, create the prospect even if one with the same email already exists.\").optional(),\n payloadDepurationStrategy: z.enum([\"keep-first-valid\", \"keep-last-valid\"]).describe(\"Strategy to resolve duplicates: 'keep-first-valid' or 'keep-last-valid'.\"),\n}).describe(\"Optional deduplication settings for prospect creation.\").optional(),\n processAndAuthorizeCharge: z.boolean().describe(\"Must be true to acknowledge and authorize any associated charges.\"),\n}).describe(\"Request model for adding a prospect to a dynamic video campaign.\");\nconst SendsparkAddProspectToDynamicVideoCampaign_ProspectListItemSchema: z.ZodTypeAny = z.object({\n _id: z.string().describe(\"Unique prospect identifier.\"),\n valid: z.boolean().describe(\"Whether the prospect data was validated.\"),\n bulkId: z.string().describe(\"Bulk operation identifier.\").nullable().optional(),\n status: z.string().describe(\"Processing status of the prospect.\"),\n company: z.string().describe(\"Company of the prospect.\").nullable().optional(),\n campaign: z.string().describe(\"Campaign identifier.\").nullable().optional(),\n jobTitle: z.string().describe(\"Job title of the prospect.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO timestamp when created.\"),\n deletedAt: z.string().describe(\"ISO timestamp when deleted, if applicable.\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO timestamp when last updated.\"),\n webhookUrl: z.string().describe(\"Webhook callback URL.\").nullable().optional(),\n contactName: z.string().describe(\"Name of the prospect.\"),\n contactEmail: z.string().describe(\"Email of the prospect.\"),\n backgroundUrl: z.string().describe(\"Background image URL.\").nullable().optional(),\n screenshotUrl: z.string().describe(\"Screenshot URL for the video.\").nullable().optional(),\n webhookEvents: z.array(z.string()).describe(\"List of webhook event names subscribed.\").nullable().optional(),\n validationDetails: z.array(z.string()).describe(\"List of validation error details, if any.\").nullable().optional(),\n}).describe(\"Represents a prospect entry in the response.\");\nexport const SendsparkAddProspectToDynamicVideoCampaignOutput: z.ZodTypeAny = z.object({\n prospectList: z.array(SendsparkAddProspectToDynamicVideoCampaign_ProspectListItemSchema).describe(\"List of prospect items and their processing status.\"),\n}).passthrough().describe(\"Response model containing campaign details and the list of created/updated prospects.\");\n\nexport const sendsparkAddProspectToDynamicVideoCampaign = action(\"SENDSPARK_ADD_PROSPECT_TO_DYNAMIC_VIDEO_CAMPAIGN\", {\n slug: \"sendspark-add-prospect-to-dynamic-video-campaign\",\n name: \"Add Prospect to Dynamic Video Campaign\",\n description: \"Tool to add a prospect to a dynamic video campaign. Use after confirming workspace and campaign IDs. Example: Add new prospect with name/contact details to dynamic \\\"dyn12345\\\" under a known workspace.\",\n input: SendsparkAddProspectToDynamicVideoCampaignInput,\n output: SendsparkAddProspectToDynamicVideoCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAgE,EAAE,OAAO;CACpF,UAAU,EAAE,OAAO;EACnB,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACrE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EAC7D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EACxE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,SAAS,yDAAyD;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAC1E,aAAa,EAAE,OAAO,CAAC,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S,uBAAuB;CACxD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAC1D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAK1D,MAAa,6CAA6C,OAAO,oDAAoD;CACnH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4E,EAAE,OAAO,EACrF,cAAc,EAAE,MAAM,iEAAiE,CAAC,CAAC,SAAS,qDAAqD,EACzJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uFAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"add-prospect-to-dynamic-video-campaign.mjs","names":[],"sources":["../../src/actions/add-prospect-to-dynamic-video-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendsparkAddProspectToDynamicVideoCampaignInput = z.object({\n prospect: z.object({\n company: z.string().describe(\"Company name of the prospect.\").optional(),\n jobTitle: z.string().describe(\"Job title of the prospect.\").optional(),\n contactName: z.string().describe(\"Full name of the prospect.\"),\n contactEmail: z.string().describe(\"Valid email address of the prospect.\"),\n backgroundUrl: z.string().describe(\"URL of the background image to use in the video.\").optional(),\n}).describe(\"The prospect data to add to the dynamic video campaign.\"),\n dynamicId: z.string().describe(\"Identifier of the dynamic video campaign.\"),\n workspaceId: z.string().describe(\"Workspace identifier under which the campaign resides.\"),\n prospectDepurationConfig: z.object({\n forceCreation: z.boolean().default(false).describe(\"If true, create the prospect even if one with the same email already exists.\").optional(),\n payloadDepurationStrategy: z.enum([\"keep-first-valid\", \"keep-last-valid\"]).describe(\"Strategy to resolve duplicates: 'keep-first-valid' or 'keep-last-valid'.\"),\n}).describe(\"Optional deduplication settings for prospect creation.\").optional(),\n processAndAuthorizeCharge: z.boolean().describe(\"Must be true to acknowledge and authorize any associated charges.\"),\n}).describe(\"Request model for adding a prospect to a dynamic video campaign.\");\nconst SendsparkAddProspectToDynamicVideoCampaign_ProspectListItemSchema = z.object({\n _id: z.string().describe(\"Unique prospect identifier.\").nullable(),\n valid: z.boolean().describe(\"Whether the prospect data was validated.\").nullable(),\n bulkId: z.string().describe(\"Bulk operation identifier.\").nullable().optional(),\n status: z.string().describe(\"Processing status of the prospect.\").nullable(),\n company: z.string().describe(\"Company of the prospect.\").nullable().optional(),\n campaign: z.string().describe(\"Campaign identifier.\").nullable().optional(),\n jobTitle: z.string().describe(\"Job title of the prospect.\").nullable().optional(),\n createdAt: z.string().describe(\"ISO timestamp when created.\").nullable(),\n deletedAt: z.string().describe(\"ISO timestamp when deleted, if applicable.\").nullable().optional(),\n updatedAt: z.string().describe(\"ISO timestamp when last updated.\").nullable(),\n webhookUrl: z.string().describe(\"Webhook callback URL.\").nullable().optional(),\n contactName: z.string().describe(\"Name of the prospect.\").nullable(),\n contactEmail: z.string().describe(\"Email of the prospect.\").nullable(),\n backgroundUrl: z.string().describe(\"Background image URL.\").nullable().optional(),\n screenshotUrl: z.string().describe(\"Screenshot URL for the video.\").nullable().optional(),\n webhookEvents: z.array(z.string()).describe(\"List of webhook event names subscribed.\").nullable().optional(),\n validationDetails: z.array(z.string()).describe(\"List of validation error details, if any.\").nullable().optional(),\n}).describe(\"Represents a prospect entry in the response.\");\nexport const SendsparkAddProspectToDynamicVideoCampaignOutput = z.object({\n prospectList: z.array(SendsparkAddProspectToDynamicVideoCampaign_ProspectListItemSchema).describe(\"List of prospect items and their processing status.\"),\n}).passthrough().describe(\"Response model containing campaign details and the list of created/updated prospects.\");\n\nexport const sendsparkAddProspectToDynamicVideoCampaign = action(\"SENDSPARK_ADD_PROSPECT_TO_DYNAMIC_VIDEO_CAMPAIGN\", {\n slug: \"sendspark-add-prospect-to-dynamic-video-campaign\",\n name: \"Add Prospect to Dynamic Video Campaign\",\n description: \"Tool to add a prospect to a dynamic video campaign. Use after confirming workspace and campaign IDs. Example: Add new prospect with name/contact details to dynamic \\\"dyn12345\\\" under a known workspace.\",\n input: SendsparkAddProspectToDynamicVideoCampaignInput,\n output: SendsparkAddProspectToDynamicVideoCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAkD,EAAE,OAAO;CACtE,UAAU,EAAE,OAAO;EACnB,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACrE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EAC7D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EACxE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,SAAS,yDAAyD;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACzF,0BAA0B,EAAE,OAAO;EACnC,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EAC5I,2BAA2B,EAAE,KAAK,CAAC,oBAAoB,iBAAiB,CAAC,CAAC,CAAC,SAAS,0EAA0E;CAChK,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC7E,2BAA2B,EAAE,QAAQ,CAAC,CAAC,SAAS,mEAAmE;AACrH,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CAAC,CAAC,SAAS;CACxF,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAK1D,MAAa,6CAA6C,OAAO,oDAAoD;CACnH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8D,EAAE,OAAO,EACvE,cAAc,EAAE,MAAM,iEAAiE,CAAC,CAAC,SAAS,qDAAqD,EACzJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uFAOhB;AACV,CAAC"}
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/api-health-status.ts
4
4
  const SendsparkApiHealthStatusInput = zod.z.object({}).describe("Request model for checking Sendspark API health status. No parameters required.");
5
- const SendsparkApiHealthStatusOutput = zod.z.object({ message: zod.z.string().describe("Health message returned by the API, e.g., \"everything is ok!\"") }).describe("Response model for health status check.");
5
+ const SendsparkApiHealthStatusOutput = zod.z.object({ message: zod.z.string().describe("Health message returned by the API, e.g., \"everything is ok!\"").nullable() }).describe("Response model for health status check.");
6
6
  const sendsparkApiHealthStatus = require_action.action("SENDSPARK_API_HEALTH_STATUS", {
7
7
  slug: "sendspark-api-health-status",
8
8
  name: "API Health Status",
@@ -1 +1 @@
1
- {"version":3,"file":"api-health-status.cjs","names":["z","action"],"sources":["../../src/actions/api-health-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendsparkApiHealthStatusInput: z.ZodTypeAny = z.object({}).describe(\"Request model for checking Sendspark API health status. No parameters required.\");\nexport const SendsparkApiHealthStatusOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Health message returned by the API, e.g., \\\"everything is ok!\\\"\"),\n}).describe(\"Response model for health status check.\");\n\nexport const sendsparkApiHealthStatus = action(\"SENDSPARK_API_HEALTH_STATUS\", {\n slug: \"sendspark-api-health-status\",\n name: \"API Health Status\",\n description: \"Tool to check the health status of the Sendspark API. Use before making other API calls to ensure the service is up.\",\n input: SendsparkApiHealthStatusInput,\n output: SendsparkApiHealthStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAClK,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EAChG,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"api-health-status.cjs","names":["z","action"],"sources":["../../src/actions/api-health-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendsparkApiHealthStatusInput = z.object({}).describe(\"Request model for checking Sendspark API health status. No parameters required.\");\nexport const SendsparkApiHealthStatusOutput = z.object({\n message: z.string().describe(\"Health message returned by the API, e.g., \\\"everything is ok!\\\"\").nullable(),\n}).describe(\"Response model for health status check.\");\n\nexport const sendsparkApiHealthStatus = action(\"SENDSPARK_API_HEALTH_STATUS\", {\n slug: \"sendspark-api-health-status\",\n name: \"API Health Status\",\n description: \"Tool to check the health status of the Sendspark API. Use before making other API calls to ensure the service is up.\",\n input: SendsparkApiHealthStatusInput,\n output: SendsparkApiHealthStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iFAAiF;AACpJ,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/api-health-status.d.ts
4
- declare const SendsparkApiHealthStatusInput: z.ZodTypeAny;
5
- declare const SendsparkApiHealthStatusOutput: z.ZodTypeAny;
6
- declare const sendsparkApiHealthStatus: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SendsparkApiHealthStatusInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const SendsparkApiHealthStatusOutput: z.ZodObject<{
6
+ message: z.ZodNullable<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const sendsparkApiHealthStatus: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
9
  //#endregion
8
10
  export { sendsparkApiHealthStatus };
9
11
  //# sourceMappingURL=api-health-status.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-health-status.d.cts","names":[],"sources":["../../src/actions/api-health-status.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAAqH;AAAA,cACtJ,8BAAA,EAAgC,CAAA,CAAE,UAEO;AAAA,cAEzC,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"api-health-status.d.cts","names":[],"sources":["../../src/actions/api-health-status.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,gCAAwB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,11 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/api-health-status.d.ts
4
- declare const SendsparkApiHealthStatusInput: z.ZodTypeAny;
5
- declare const SendsparkApiHealthStatusOutput: z.ZodTypeAny;
6
- declare const sendsparkApiHealthStatus: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SendsparkApiHealthStatusInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const SendsparkApiHealthStatusOutput: z.ZodObject<{
6
+ message: z.ZodNullable<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const sendsparkApiHealthStatus: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
9
  //#endregion
8
10
  export { sendsparkApiHealthStatus };
9
11
  //# sourceMappingURL=api-health-status.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-health-status.d.mts","names":[],"sources":["../../src/actions/api-health-status.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAAqH;AAAA,cACtJ,8BAAA,EAAgC,CAAA,CAAE,UAEO;AAAA,cAEzC,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"api-health-status.d.mts","names":[],"sources":["../../src/actions/api-health-status.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,gCAAwB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -5,7 +5,7 @@ const sendsparkApiHealthStatus = action("SENDSPARK_API_HEALTH_STATUS", {
5
5
  name: "API Health Status",
6
6
  description: "Tool to check the health status of the Sendspark API. Use before making other API calls to ensure the service is up.",
7
7
  input: z.object({}).describe("Request model for checking Sendspark API health status. No parameters required."),
8
- output: z.object({ message: z.string().describe("Health message returned by the API, e.g., \"everything is ok!\"") }).describe("Response model for health status check.")
8
+ output: z.object({ message: z.string().describe("Health message returned by the API, e.g., \"everything is ok!\"").nullable() }).describe("Response model for health status check.")
9
9
  });
10
10
  //#endregion
11
11
  export { sendsparkApiHealthStatus };
@@ -1 +1 @@
1
- {"version":3,"file":"api-health-status.mjs","names":[],"sources":["../../src/actions/api-health-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendsparkApiHealthStatusInput: z.ZodTypeAny = z.object({}).describe(\"Request model for checking Sendspark API health status. No parameters required.\");\nexport const SendsparkApiHealthStatusOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Health message returned by the API, e.g., \\\"everything is ok!\\\"\"),\n}).describe(\"Response model for health status check.\");\n\nexport const sendsparkApiHealthStatus = action(\"SENDSPARK_API_HEALTH_STATUS\", {\n slug: \"sendspark-api-health-status\",\n name: \"API Health Status\",\n description: \"Tool to check the health status of the Sendspark API. Use before making other API calls to ensure the service is up.\",\n input: SendsparkApiHealthStatusInput,\n output: SendsparkApiHealthStatusOutput,\n});\n"],"mappings":";;AASA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATyD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iFASxE;CACP,QAT0D,EAAE,OAAO,EACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EAChG,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"api-health-status.mjs","names":[],"sources":["../../src/actions/api-health-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendsparkApiHealthStatusInput = z.object({}).describe(\"Request model for checking Sendspark API health status. No parameters required.\");\nexport const SendsparkApiHealthStatusOutput = z.object({\n message: z.string().describe(\"Health message returned by the API, e.g., \\\"everything is ok!\\\"\").nullable(),\n}).describe(\"Response model for health status check.\");\n\nexport const sendsparkApiHealthStatus = action(\"SENDSPARK_API_HEALTH_STATUS\", {\n slug: \"sendspark-api-health-status\",\n name: \"API Health Status\",\n description: \"Tool to check the health status of the Sendspark API. Use before making other API calls to ensure the service is up.\",\n input: SendsparkApiHealthStatusInput,\n output: SendsparkApiHealthStatusOutput,\n});\n"],"mappings":";;AASA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT2C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iFAS1D;CACP,QAT4C,EAAE,OAAO,EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,EAC3G,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
@@ -14,14 +14,14 @@ const SendsparkCreateDynamicVideoCampaign2_SharePageSchema = zod.z.object({
14
14
  }).passthrough().describe("Share page properties.");
15
15
  const SendsparkCreateDynamicVideoCampaign2_VideoPropertiesSchema = zod.z.object({ sharePage: SendsparkCreateDynamicVideoCampaign2_SharePageSchema.nullable().optional() }).passthrough().describe("Video properties and settings.");
16
16
  const SendsparkCreateDynamicVideoCampaign2Output = zod.z.object({
17
- _id: zod.z.string().describe("Unique campaign identifier"),
18
- name: zod.z.string().describe("Campaign name"),
19
- folder: zod.z.string().describe("Associated folder ID"),
17
+ _id: zod.z.string().describe("Unique campaign identifier").nullable(),
18
+ name: zod.z.string().describe("Campaign name").nullable(),
19
+ folder: zod.z.string().describe("Associated folder ID").nullable(),
20
20
  status: zod.z.string().describe("Current status of the campaign (e.g., 'pending')").nullable().optional(),
21
- creator: zod.z.string().describe("Creator user ID"),
21
+ creator: zod.z.string().describe("Creator user ID").nullable(),
22
22
  metadata: SendsparkCreateDynamicVideoCampaign2_MetadataSchema.nullable().optional(),
23
- createdAt: zod.z.string().describe("ISO timestamp when campaign was created"),
24
- workspace: zod.z.string().describe("Associated workspace ID"),
23
+ createdAt: zod.z.string().describe("ISO timestamp when campaign was created").nullable(),
24
+ workspace: zod.z.string().describe("Associated workspace ID").nullable(),
25
25
  videosAssets: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of video assets in the campaign").nullable().optional(),
26
26
  combinedVideo: zod.z.union([zod.z.boolean(), zod.z.string()]).nullable().optional(),
27
27
  videoProperties: SendsparkCreateDynamicVideoCampaign2_VideoPropertiesSchema.nullable().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"create-dynamic-video-campaign2.cjs","names":["z","action"],"sources":["../../src/actions/create-dynamic-video-campaign2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendsparkCreateDynamicVideoCampaign2Input: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the dynamic campaign. Must be unique within the workspace\"),\n workspaceId: z.string().describe(\"The ID of the Sendspark workspace where the campaign will be created\"),\n}).describe(\"Request parameters for creating a dynamic video campaign.\");\nconst SendsparkCreateDynamicVideoCampaign2_MetadataSchema: z.ZodTypeAny = z.object({\n version: z.string().describe(\"Metadata version\").nullable().optional(),\n}).passthrough().describe(\"Campaign metadata.\");\nconst SendsparkCreateDynamicVideoCampaign2_SharePageSchema: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Share page title\").nullable().optional(),\n layout: z.string().describe(\"Layout configuration (e.g., 'layout-default')\").nullable().optional(),\n buttons: z.array(z.unknown()).describe(\"Share page buttons\").nullable().optional(),\n calendar: z.record(z.string(), z.unknown()).describe(\"Calendar configuration\").nullable().optional(),\n}).passthrough().describe(\"Share page properties.\");\nconst SendsparkCreateDynamicVideoCampaign2_VideoPropertiesSchema: z.ZodTypeAny = z.object({\n sharePage: SendsparkCreateDynamicVideoCampaign2_SharePageSchema.nullable().optional(),\n}).passthrough().describe(\"Video properties and settings.\");\nexport const SendsparkCreateDynamicVideoCampaign2Output: z.ZodTypeAny = z.object({\n _id: z.string().describe(\"Unique campaign identifier\"),\n name: z.string().describe(\"Campaign name\"),\n folder: z.string().describe(\"Associated folder ID\"),\n status: z.string().describe(\"Current status of the campaign (e.g., 'pending')\").nullable().optional(),\n creator: z.string().describe(\"Creator user ID\"),\n metadata: SendsparkCreateDynamicVideoCampaign2_MetadataSchema.nullable().optional(),\n createdAt: z.string().describe(\"ISO timestamp when campaign was created\"),\n workspace: z.string().describe(\"Associated workspace ID\"),\n videosAssets: z.array(z.record(z.string(), z.unknown())).describe(\"List of video assets in the campaign\").nullable().optional(),\n combinedVideo: z.union([z.boolean(), z.string()]).nullable().optional(),\n videoProperties: SendsparkCreateDynamicVideoCampaign2_VideoPropertiesSchema.nullable().optional(),\n dynamicBackground: z.union([z.boolean(), z.string()]).nullable().optional(),\n}).passthrough().describe(\"Response containing the created dynamic campaign details.\\nThe API returns the campaign object directly.\");\n\nexport const sendsparkCreateDynamicVideoCampaign2 = action(\"SENDSPARK_CREATE_DYNAMIC_VIDEO_CAMPAIGN2\", {\n slug: \"sendspark-create-dynamic-video-campaign2\",\n name: \"Create Dynamic Video Campaign V2\",\n description: \"Tool to create a dynamic video campaign in a workspace. Use when you need to create a container for AI-personalized dynamic videos that can be sent to prospects.\",\n input: SendsparkCreateDynamicVideoCampaign2Input,\n output: SendsparkCreateDynamicVideoCampaign2Output,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA0DA,IAAAA,EAAE,OAAO;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,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ClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC9C,UAAU,oDAAoD,SAAS,CAAC,CAAC,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACxD,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,eAAeA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,iBAAiB,2DAA2D,SAAS,CAAC,CAAC,SAAS;CAChG,mBAAmBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0GAA0G;AAEpI,MAAa,uCAAuCC,eAAAA,OAAO,4CAA4C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-dynamic-video-campaign2.cjs","names":["z","action"],"sources":["../../src/actions/create-dynamic-video-campaign2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendsparkCreateDynamicVideoCampaign2Input = z.object({\n name: z.string().describe(\"Name of the dynamic campaign. Must be unique within the workspace\"),\n workspaceId: z.string().describe(\"The ID of the Sendspark workspace where the campaign will be created\"),\n}).describe(\"Request parameters for creating a dynamic video campaign.\");\nconst SendsparkCreateDynamicVideoCampaign2_MetadataSchema = z.object({\n version: z.string().describe(\"Metadata version\").nullable().optional(),\n}).passthrough().describe(\"Campaign metadata.\");\nconst SendsparkCreateDynamicVideoCampaign2_SharePageSchema = z.object({\n title: z.string().describe(\"Share page title\").nullable().optional(),\n layout: z.string().describe(\"Layout configuration (e.g., 'layout-default')\").nullable().optional(),\n buttons: z.array(z.unknown()).describe(\"Share page buttons\").nullable().optional(),\n calendar: z.record(z.string(), z.unknown()).describe(\"Calendar configuration\").nullable().optional(),\n}).passthrough().describe(\"Share page properties.\");\nconst SendsparkCreateDynamicVideoCampaign2_VideoPropertiesSchema = z.object({\n sharePage: SendsparkCreateDynamicVideoCampaign2_SharePageSchema.nullable().optional(),\n}).passthrough().describe(\"Video properties and settings.\");\nexport const SendsparkCreateDynamicVideoCampaign2Output = z.object({\n _id: z.string().describe(\"Unique campaign identifier\").nullable(),\n name: z.string().describe(\"Campaign name\").nullable(),\n folder: z.string().describe(\"Associated folder ID\").nullable(),\n status: z.string().describe(\"Current status of the campaign (e.g., 'pending')\").nullable().optional(),\n creator: z.string().describe(\"Creator user ID\").nullable(),\n metadata: SendsparkCreateDynamicVideoCampaign2_MetadataSchema.nullable().optional(),\n createdAt: z.string().describe(\"ISO timestamp when campaign was created\").nullable(),\n workspace: z.string().describe(\"Associated workspace ID\").nullable(),\n videosAssets: z.array(z.record(z.string(), z.unknown())).describe(\"List of video assets in the campaign\").nullable().optional(),\n combinedVideo: z.union([z.boolean(), z.string()]).nullable().optional(),\n videoProperties: SendsparkCreateDynamicVideoCampaign2_VideoPropertiesSchema.nullable().optional(),\n dynamicBackground: z.union([z.boolean(), z.string()]).nullable().optional(),\n}).passthrough().describe(\"Response containing the created dynamic campaign details.\\nThe API returns the campaign object directly.\");\n\nexport const sendsparkCreateDynamicVideoCampaign2 = action(\"SENDSPARK_CREATE_DYNAMIC_VIDEO_CAMPAIGN2\", {\n slug: \"sendspark-create-dynamic-video-campaign2\",\n name: \"Create Dynamic Video Campaign V2\",\n description: \"Tool to create a dynamic video campaign in a workspace. Use when you need to create a container for AI-personalized dynamic videos that can be sent to prospects.\",\n input: SendsparkCreateDynamicVideoCampaign2Input,\n output: SendsparkCreateDynamicVideoCampaign2Output,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;AACzG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,sDAAsDA,IAAAA,EAAE,OAAO,EACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oBAAoB;AAC9C,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wBAAwB;AAClD,MAAM,6DAA6DA,IAAAA,EAAE,OAAO,EAC1E,WAAW,qDAAqD,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C,CAAC,YAAY,CAAC,CAAC,SAAS,0GAA0G;AAEpI,MAAa,uCAAuCC,eAAAA,OAAO,4CAA4C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,37 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-dynamic-video-campaign2.d.ts
4
- declare const SendsparkCreateDynamicVideoCampaign2Input: z.ZodTypeAny;
5
- declare const SendsparkCreateDynamicVideoCampaign2Output: z.ZodTypeAny;
6
- declare const sendsparkCreateDynamicVideoCampaign2: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SendsparkCreateDynamicVideoCampaign2Input: z.ZodObject<{
5
+ name: z.ZodString;
6
+ workspaceId: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const SendsparkCreateDynamicVideoCampaign2Output: z.ZodObject<{
9
+ _id: z.ZodNullable<z.ZodString>;
10
+ name: z.ZodNullable<z.ZodString>;
11
+ folder: z.ZodNullable<z.ZodString>;
12
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ creator: z.ZodNullable<z.ZodString>;
14
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, z.core.$loose>>>;
17
+ createdAt: z.ZodNullable<z.ZodString>;
18
+ workspace: z.ZodNullable<z.ZodString>;
19
+ videosAssets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
20
+ combinedVideo: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
21
+ videoProperties: z.ZodOptional<z.ZodNullable<z.ZodObject<{
22
+ sharePage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
23
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ layout: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
26
+ calendar: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
27
+ }, z.core.$loose>>>;
28
+ }, z.core.$loose>>>;
29
+ dynamicBackground: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
30
+ }, z.core.$loose>;
31
+ declare const sendsparkCreateDynamicVideoCampaign2: import("@keystrokehq/action").WorkflowActionDefinition<{
32
+ name: string;
33
+ workspaceId: string;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
35
  //#endregion
8
36
  export { sendsparkCreateDynamicVideoCampaign2 };
9
37
  //# sourceMappingURL=create-dynamic-video-campaign2.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-dynamic-video-campaign2.d.cts","names":[],"sources":["../../src/actions/create-dynamic-video-campaign2.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAGc;AAAA,cAa3D,0CAAA,EAA4C,CAAA,CAAE,UAa0E;AAAA,cAExH,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-dynamic-video-campaign2.d.cts","names":[],"sources":["../../src/actions/create-dynamic-video-campaign2.ts"],"mappings":";;;cAIa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;cAgBzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAe1C,oCAAA,gCAAoC,wBAAA"}
@@ -1,9 +1,37 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-dynamic-video-campaign2.d.ts
4
- declare const SendsparkCreateDynamicVideoCampaign2Input: z.ZodTypeAny;
5
- declare const SendsparkCreateDynamicVideoCampaign2Output: z.ZodTypeAny;
6
- declare const sendsparkCreateDynamicVideoCampaign2: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SendsparkCreateDynamicVideoCampaign2Input: z.ZodObject<{
5
+ name: z.ZodString;
6
+ workspaceId: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const SendsparkCreateDynamicVideoCampaign2Output: z.ZodObject<{
9
+ _id: z.ZodNullable<z.ZodString>;
10
+ name: z.ZodNullable<z.ZodString>;
11
+ folder: z.ZodNullable<z.ZodString>;
12
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ creator: z.ZodNullable<z.ZodString>;
14
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, z.core.$loose>>>;
17
+ createdAt: z.ZodNullable<z.ZodString>;
18
+ workspace: z.ZodNullable<z.ZodString>;
19
+ videosAssets: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
20
+ combinedVideo: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
21
+ videoProperties: z.ZodOptional<z.ZodNullable<z.ZodObject<{
22
+ sharePage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
23
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ layout: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ buttons: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
26
+ calendar: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
27
+ }, z.core.$loose>>>;
28
+ }, z.core.$loose>>>;
29
+ dynamicBackground: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>>;
30
+ }, z.core.$loose>;
31
+ declare const sendsparkCreateDynamicVideoCampaign2: import("@keystrokehq/action").WorkflowActionDefinition<{
32
+ name: string;
33
+ workspaceId: string;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
35
  //#endregion
8
36
  export { sendsparkCreateDynamicVideoCampaign2 };
9
37
  //# sourceMappingURL=create-dynamic-video-campaign2.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-dynamic-video-campaign2.d.mts","names":[],"sources":["../../src/actions/create-dynamic-video-campaign2.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAGc;AAAA,cAa3D,0CAAA,EAA4C,CAAA,CAAE,UAa0E;AAAA,cAExH,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-dynamic-video-campaign2.d.mts","names":[],"sources":["../../src/actions/create-dynamic-video-campaign2.ts"],"mappings":";;;cAIa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;cAgBzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAe1C,oCAAA,gCAAoC,wBAAA"}
@@ -19,14 +19,14 @@ const sendsparkCreateDynamicVideoCampaign2 = action("SENDSPARK_CREATE_DYNAMIC_VI
19
19
  description: "Tool to create a dynamic video campaign in a workspace. Use when you need to create a container for AI-personalized dynamic videos that can be sent to prospects.",
20
20
  input: SendsparkCreateDynamicVideoCampaign2Input,
21
21
  output: z.object({
22
- _id: z.string().describe("Unique campaign identifier"),
23
- name: z.string().describe("Campaign name"),
24
- folder: z.string().describe("Associated folder ID"),
22
+ _id: z.string().describe("Unique campaign identifier").nullable(),
23
+ name: z.string().describe("Campaign name").nullable(),
24
+ folder: z.string().describe("Associated folder ID").nullable(),
25
25
  status: z.string().describe("Current status of the campaign (e.g., 'pending')").nullable().optional(),
26
- creator: z.string().describe("Creator user ID"),
26
+ creator: z.string().describe("Creator user ID").nullable(),
27
27
  metadata: SendsparkCreateDynamicVideoCampaign2_MetadataSchema.nullable().optional(),
28
- createdAt: z.string().describe("ISO timestamp when campaign was created"),
29
- workspace: z.string().describe("Associated workspace ID"),
28
+ createdAt: z.string().describe("ISO timestamp when campaign was created").nullable(),
29
+ workspace: z.string().describe("Associated workspace ID").nullable(),
30
30
  videosAssets: z.array(z.record(z.string(), z.unknown())).describe("List of video assets in the campaign").nullable().optional(),
31
31
  combinedVideo: z.union([z.boolean(), z.string()]).nullable().optional(),
32
32
  videoProperties: SendsparkCreateDynamicVideoCampaign2_VideoPropertiesSchema.nullable().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"create-dynamic-video-campaign2.mjs","names":[],"sources":["../../src/actions/create-dynamic-video-campaign2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendsparkCreateDynamicVideoCampaign2Input: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the dynamic campaign. Must be unique within the workspace\"),\n workspaceId: z.string().describe(\"The ID of the Sendspark workspace where the campaign will be created\"),\n}).describe(\"Request parameters for creating a dynamic video campaign.\");\nconst SendsparkCreateDynamicVideoCampaign2_MetadataSchema: z.ZodTypeAny = z.object({\n version: z.string().describe(\"Metadata version\").nullable().optional(),\n}).passthrough().describe(\"Campaign metadata.\");\nconst SendsparkCreateDynamicVideoCampaign2_SharePageSchema: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Share page title\").nullable().optional(),\n layout: z.string().describe(\"Layout configuration (e.g., 'layout-default')\").nullable().optional(),\n buttons: z.array(z.unknown()).describe(\"Share page buttons\").nullable().optional(),\n calendar: z.record(z.string(), z.unknown()).describe(\"Calendar configuration\").nullable().optional(),\n}).passthrough().describe(\"Share page properties.\");\nconst SendsparkCreateDynamicVideoCampaign2_VideoPropertiesSchema: z.ZodTypeAny = z.object({\n sharePage: SendsparkCreateDynamicVideoCampaign2_SharePageSchema.nullable().optional(),\n}).passthrough().describe(\"Video properties and settings.\");\nexport const SendsparkCreateDynamicVideoCampaign2Output: z.ZodTypeAny = z.object({\n _id: z.string().describe(\"Unique campaign identifier\"),\n name: z.string().describe(\"Campaign name\"),\n folder: z.string().describe(\"Associated folder ID\"),\n status: z.string().describe(\"Current status of the campaign (e.g., 'pending')\").nullable().optional(),\n creator: z.string().describe(\"Creator user ID\"),\n metadata: SendsparkCreateDynamicVideoCampaign2_MetadataSchema.nullable().optional(),\n createdAt: z.string().describe(\"ISO timestamp when campaign was created\"),\n workspace: z.string().describe(\"Associated workspace ID\"),\n videosAssets: z.array(z.record(z.string(), z.unknown())).describe(\"List of video assets in the campaign\").nullable().optional(),\n combinedVideo: z.union([z.boolean(), z.string()]).nullable().optional(),\n videoProperties: SendsparkCreateDynamicVideoCampaign2_VideoPropertiesSchema.nullable().optional(),\n dynamicBackground: z.union([z.boolean(), z.string()]).nullable().optional(),\n}).passthrough().describe(\"Response containing the created dynamic campaign details.\\nThe API returns the campaign object directly.\");\n\nexport const sendsparkCreateDynamicVideoCampaign2 = action(\"SENDSPARK_CREATE_DYNAMIC_VIDEO_CAMPAIGN2\", {\n slug: \"sendspark-create-dynamic-video-campaign2\",\n name: \"Create Dynamic Video Campaign V2\",\n description: \"Tool to create a dynamic video campaign in a workspace. Use when you need to create a container for AI-personalized dynamic videos that can be sent to prospects.\",\n input: SendsparkCreateDynamicVideoCampaign2Input,\n output: SendsparkCreateDynamicVideoCampaign2Output,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA0D,EAAE,OAAO;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;AACzG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,sDAAoE,EAAE,OAAO,EACjF,SAA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,CAAC,SAAS,yCAAyC;EACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EACxD,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,eAAe,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtE,iBAAiB,2DAA2D,SAAS,CAAC,CAAC,SAAS;EAChG,mBAAmB,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0GAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-dynamic-video-campaign2.mjs","names":[],"sources":["../../src/actions/create-dynamic-video-campaign2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendsparkCreateDynamicVideoCampaign2Input = z.object({\n name: z.string().describe(\"Name of the dynamic campaign. Must be unique within the workspace\"),\n workspaceId: z.string().describe(\"The ID of the Sendspark workspace where the campaign will be created\"),\n}).describe(\"Request parameters for creating a dynamic video campaign.\");\nconst SendsparkCreateDynamicVideoCampaign2_MetadataSchema = z.object({\n version: z.string().describe(\"Metadata version\").nullable().optional(),\n}).passthrough().describe(\"Campaign metadata.\");\nconst SendsparkCreateDynamicVideoCampaign2_SharePageSchema = z.object({\n title: z.string().describe(\"Share page title\").nullable().optional(),\n layout: z.string().describe(\"Layout configuration (e.g., 'layout-default')\").nullable().optional(),\n buttons: z.array(z.unknown()).describe(\"Share page buttons\").nullable().optional(),\n calendar: z.record(z.string(), z.unknown()).describe(\"Calendar configuration\").nullable().optional(),\n}).passthrough().describe(\"Share page properties.\");\nconst SendsparkCreateDynamicVideoCampaign2_VideoPropertiesSchema = z.object({\n sharePage: SendsparkCreateDynamicVideoCampaign2_SharePageSchema.nullable().optional(),\n}).passthrough().describe(\"Video properties and settings.\");\nexport const SendsparkCreateDynamicVideoCampaign2Output = z.object({\n _id: z.string().describe(\"Unique campaign identifier\").nullable(),\n name: z.string().describe(\"Campaign name\").nullable(),\n folder: z.string().describe(\"Associated folder ID\").nullable(),\n status: z.string().describe(\"Current status of the campaign (e.g., 'pending')\").nullable().optional(),\n creator: z.string().describe(\"Creator user ID\").nullable(),\n metadata: SendsparkCreateDynamicVideoCampaign2_MetadataSchema.nullable().optional(),\n createdAt: z.string().describe(\"ISO timestamp when campaign was created\").nullable(),\n workspace: z.string().describe(\"Associated workspace ID\").nullable(),\n videosAssets: z.array(z.record(z.string(), z.unknown())).describe(\"List of video assets in the campaign\").nullable().optional(),\n combinedVideo: z.union([z.boolean(), z.string()]).nullable().optional(),\n videoProperties: SendsparkCreateDynamicVideoCampaign2_VideoPropertiesSchema.nullable().optional(),\n dynamicBackground: z.union([z.boolean(), z.string()]).nullable().optional(),\n}).passthrough().describe(\"Response containing the created dynamic campaign details.\\nThe API returns the campaign object directly.\");\n\nexport const sendsparkCreateDynamicVideoCampaign2 = action(\"SENDSPARK_CREATE_DYNAMIC_VIDEO_CAMPAIGN2\", {\n slug: \"sendspark-create-dynamic-video-campaign2\",\n name: \"Create Dynamic Video Campaign V2\",\n description: \"Tool to create a dynamic video campaign in a workspace. Use when you need to create a container for AI-personalized dynamic videos that can be sent to prospects.\",\n input: SendsparkCreateDynamicVideoCampaign2Input,\n output: SendsparkCreateDynamicVideoCampaign2Output,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4C,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;AACzG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,sDAAsD,EAAE,OAAO,EACn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AAS;EACzD,UAAU,oDAAoD,SAAS,CAAC,CAAC,SAAS;EAClF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACnF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACnE,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,eAAe,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtE,iBAAiB,2DAA2D,SAAS,CAAC,CAAC,SAAS;EAChG,mBAAmB,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0GAOhB;AACV,CAAC"}
@@ -7,7 +7,7 @@ const SendsparkDeleteWebhookInput = zod.z.object({
7
7
  }).describe("Request model for deleting a webhook by ID.");
8
8
  const SendsparkDeleteWebhookOutput = zod.z.object({
9
9
  message: zod.z.string().describe("Descriptive message from the API. Examples: 'Webhook not found or already deleted (idempotent)' for 404 with workspaceId, 'Invalid request params input' for 400 errors.").nullable().optional(),
10
- statusCode: zod.z.number().int().describe("HTTP status code: 200/204 for successful deletion, 400 for invalid webhook ID, 404 for not found (idempotent when workspaceId provided).")
10
+ statusCode: zod.z.number().int().describe("HTTP status code: 200/204 for successful deletion, 400 for invalid webhook ID, 404 for not found (idempotent when workspaceId provided).").nullable()
11
11
  }).describe("Response model for webhook deletion.");
12
12
  const sendsparkDeleteWebhook = require_action.action("SENDSPARK_DELETE_WEBHOOK", {
13
13
  slug: "sendspark-delete-webhook",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-webhook.cjs","names":["z","action"],"sources":["../../src/actions/delete-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendsparkDeleteWebhookInput: z.ZodTypeAny = z.object({\n webhook_id: z.string().describe(\"Unique identifier of the webhook to delete.\"),\n workspaceId: z.string().describe(\"Workspace unique identifier. Required to use the workspace-scoped endpoint (/v1/workspaces/{workspaceId}/webhooks/{webhook_id}). Strongly recommended: The unscoped endpoint (/api/webhooks/{webhook_id}) may not be available.\").optional(),\n}).describe(\"Request model for deleting a webhook by ID.\");\nexport const SendsparkDeleteWebhookOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Descriptive message from the API. Examples: 'Webhook not found or already deleted (idempotent)' for 404 with workspaceId, 'Invalid request params input' for 400 errors.\").nullable().optional(),\n statusCode: z.number().int().describe(\"HTTP status code: 200/204 for successful deletion, 400 for invalid webhook ID, 404 for not found (idempotent when workspaceId provided).\"),\n}).describe(\"Response model for webhook deletion.\");\n\nexport const sendsparkDeleteWebhook = action(\"SENDSPARK_DELETE_WEBHOOK\", {\n slug: \"sendspark-delete-webhook\",\n name: \"Delete Webhook\",\n description: \"Delete a webhook by its unique ID. Returns a structured response with status code and message. This action is idempotent: deleting a non-existent webhook (404) with workspaceId provided returns success. Invalid webhook IDs return 400 with error details. Best practice: Always provide workspaceId to use the reliable workspace-scoped endpoint.\",\n input: SendsparkDeleteWebhookInput,\n output: SendsparkDeleteWebhookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iOAAiO,CAAC,CAAC,SAAS;AAC/Q,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7N,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0IAA0I;AAClL,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-webhook.cjs","names":["z","action"],"sources":["../../src/actions/delete-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendsparkDeleteWebhookInput = z.object({\n webhook_id: z.string().describe(\"Unique identifier of the webhook to delete.\"),\n workspaceId: z.string().describe(\"Workspace unique identifier. Required to use the workspace-scoped endpoint (/v1/workspaces/{workspaceId}/webhooks/{webhook_id}). Strongly recommended: The unscoped endpoint (/api/webhooks/{webhook_id}) may not be available.\").optional(),\n}).describe(\"Request model for deleting a webhook by ID.\");\nexport const SendsparkDeleteWebhookOutput = z.object({\n message: z.string().describe(\"Descriptive message from the API. Examples: 'Webhook not found or already deleted (idempotent)' for 404 with workspaceId, 'Invalid request params input' for 400 errors.\").nullable().optional(),\n statusCode: z.number().int().describe(\"HTTP status code: 200/204 for successful deletion, 400 for invalid webhook ID, 404 for not found (idempotent when workspaceId provided).\").nullable(),\n}).describe(\"Response model for webhook deletion.\");\n\nexport const sendsparkDeleteWebhook = action(\"SENDSPARK_DELETE_WEBHOOK\", {\n slug: \"sendspark-delete-webhook\",\n name: \"Delete Webhook\",\n description: \"Delete a webhook by its unique ID. Returns a structured response with status code and message. This action is idempotent: deleting a non-existent webhook (404) with workspaceId provided returns success. Invalid webhook IDs return 400 with error details. Best practice: Always provide workspaceId to use the reliable workspace-scoped endpoint.\",\n input: SendsparkDeleteWebhookInput,\n output: SendsparkDeleteWebhookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iOAAiO,CAAC,CAAC,SAAS;AAC/Q,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7N,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS;AAC7L,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-webhook.d.ts
4
- declare const SendsparkDeleteWebhookInput: z.ZodTypeAny;
5
- declare const SendsparkDeleteWebhookOutput: z.ZodTypeAny;
6
- declare const sendsparkDeleteWebhook: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SendsparkDeleteWebhookInput: z.ZodObject<{
5
+ webhook_id: z.ZodString;
6
+ workspaceId: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const SendsparkDeleteWebhookOutput: z.ZodObject<{
9
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ statusCode: z.ZodNullable<z.ZodNumber>;
11
+ }, z.core.$strip>;
12
+ declare const sendsparkDeleteWebhook: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ webhook_id: string;
14
+ workspaceId?: string | undefined;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { sendsparkDeleteWebhook };
9
18
  //# sourceMappingURL=delete-webhook.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-webhook.d.cts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAGc;AAAA,cAC7C,4BAAA,EAA8B,CAAA,CAAE,UAGM;AAAA,cAEtC,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-webhook.d.cts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-webhook.d.ts
4
- declare const SendsparkDeleteWebhookInput: z.ZodTypeAny;
5
- declare const SendsparkDeleteWebhookOutput: z.ZodTypeAny;
6
- declare const sendsparkDeleteWebhook: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SendsparkDeleteWebhookInput: z.ZodObject<{
5
+ webhook_id: z.ZodString;
6
+ workspaceId: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const SendsparkDeleteWebhookOutput: z.ZodObject<{
9
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ statusCode: z.ZodNullable<z.ZodNumber>;
11
+ }, z.core.$strip>;
12
+ declare const sendsparkDeleteWebhook: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ webhook_id: string;
14
+ workspaceId?: string | undefined;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { sendsparkDeleteWebhook };
9
18
  //# sourceMappingURL=delete-webhook.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-webhook.d.mts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAGc;AAAA,cAC7C,4BAAA,EAA8B,CAAA,CAAE,UAGM;AAAA,cAEtC,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-webhook.d.mts","names":[],"sources":["../../src/actions/delete-webhook.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
@@ -10,7 +10,7 @@ const sendsparkDeleteWebhook = action("SENDSPARK_DELETE_WEBHOOK", {
10
10
  }).describe("Request model for deleting a webhook by ID."),
11
11
  output: z.object({
12
12
  message: z.string().describe("Descriptive message from the API. Examples: 'Webhook not found or already deleted (idempotent)' for 404 with workspaceId, 'Invalid request params input' for 400 errors.").nullable().optional(),
13
- statusCode: z.number().int().describe("HTTP status code: 200/204 for successful deletion, 400 for invalid webhook ID, 404 for not found (idempotent when workspaceId provided).")
13
+ statusCode: z.number().int().describe("HTTP status code: 200/204 for successful deletion, 400 for invalid webhook ID, 404 for not found (idempotent when workspaceId provided).").nullable()
14
14
  }).describe("Response model for webhook deletion.")
15
15
  });
16
16
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"delete-webhook.mjs","names":[],"sources":["../../src/actions/delete-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendsparkDeleteWebhookInput: z.ZodTypeAny = z.object({\n webhook_id: z.string().describe(\"Unique identifier of the webhook to delete.\"),\n workspaceId: z.string().describe(\"Workspace unique identifier. Required to use the workspace-scoped endpoint (/v1/workspaces/{workspaceId}/webhooks/{webhook_id}). Strongly recommended: The unscoped endpoint (/api/webhooks/{webhook_id}) may not be available.\").optional(),\n}).describe(\"Request model for deleting a webhook by ID.\");\nexport const SendsparkDeleteWebhookOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Descriptive message from the API. Examples: 'Webhook not found or already deleted (idempotent)' for 404 with workspaceId, 'Invalid request params input' for 400 errors.\").nullable().optional(),\n statusCode: z.number().int().describe(\"HTTP status code: 200/204 for successful deletion, 400 for invalid webhook ID, 404 for not found (idempotent when workspaceId provided).\"),\n}).describe(\"Response model for webhook deletion.\");\n\nexport const sendsparkDeleteWebhook = action(\"SENDSPARK_DELETE_WEBHOOK\", {\n slug: \"sendspark-delete-webhook\",\n name: \"Delete Webhook\",\n description: \"Delete a webhook by its unique ID. Returns a structured response with status code and message. This action is idempotent: deleting a non-existent webhook (404) with workspaceId provided returns success. Invalid webhook IDs return 400 with error details. Best practice: Always provide workspaceId to use the reliable workspace-scoped endpoint.\",\n input: SendsparkDeleteWebhookInput,\n output: SendsparkDeleteWebhookOutput,\n});\n"],"mappings":";;AAaA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbuD,EAAE,OAAO;EAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iOAAiO,CAAC,CAAC,SAAS;CAC/Q,CAAC,CAAC,CAAC,SAAS,6CAUH;CACP,QAVwD,EAAE,OAAO;EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7N,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0IAA0I;CAClL,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-webhook.mjs","names":[],"sources":["../../src/actions/delete-webhook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendsparkDeleteWebhookInput = z.object({\n webhook_id: z.string().describe(\"Unique identifier of the webhook to delete.\"),\n workspaceId: z.string().describe(\"Workspace unique identifier. Required to use the workspace-scoped endpoint (/v1/workspaces/{workspaceId}/webhooks/{webhook_id}). Strongly recommended: The unscoped endpoint (/api/webhooks/{webhook_id}) may not be available.\").optional(),\n}).describe(\"Request model for deleting a webhook by ID.\");\nexport const SendsparkDeleteWebhookOutput = z.object({\n message: z.string().describe(\"Descriptive message from the API. Examples: 'Webhook not found or already deleted (idempotent)' for 404 with workspaceId, 'Invalid request params input' for 400 errors.\").nullable().optional(),\n statusCode: z.number().int().describe(\"HTTP status code: 200/204 for successful deletion, 400 for invalid webhook ID, 404 for not found (idempotent when workspaceId provided).\").nullable(),\n}).describe(\"Response model for webhook deletion.\");\n\nexport const sendsparkDeleteWebhook = action(\"SENDSPARK_DELETE_WEBHOOK\", {\n slug: \"sendspark-delete-webhook\",\n name: \"Delete Webhook\",\n description: \"Delete a webhook by its unique ID. Returns a structured response with status code and message. This action is idempotent: deleting a non-existent webhook (404) with workspaceId provided returns success. Invalid webhook IDs return 400 with error details. Best practice: Always provide workspaceId to use the reliable workspace-scoped endpoint.\",\n input: SendsparkDeleteWebhookInput,\n output: SendsparkDeleteWebhookOutput,\n});\n"],"mappings":";;AAaA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbyC,EAAE,OAAO;EAClD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iOAAiO,CAAC,CAAC,SAAS;CAC/Q,CAAC,CAAC,CAAC,SAAS,6CAUH;CACP,QAV0C,EAAE,OAAO;EACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7N,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS;CAC7L,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
@@ -6,8 +6,8 @@ const SendsparkGetDynamicCampaignByIdInput = zod.z.object({
6
6
  workspace_id: zod.z.string().describe("ID of the workspace containing the dynamic campaign")
7
7
  }).describe("Request model for retrieving a dynamic campaign by ID.");
8
8
  const SendsparkGetDynamicCampaignById_CreatorSchema = zod.z.object({
9
- _id: zod.z.string().describe("Creator user ID"),
10
- name: zod.z.string().describe("Full name of the creator"),
9
+ _id: zod.z.string().describe("Creator user ID").nullable(),
10
+ name: zod.z.string().describe("Full name of the creator").nullable(),
11
11
  email: zod.z.string().describe("Creator email address").nullable().optional()
12
12
  });
13
13
  const SendsparkGetDynamicCampaignById_FeaturesSchema = zod.z.object({
@@ -18,33 +18,33 @@ const SendsparkGetDynamicCampaignById_FeaturesSchema = zod.z.object({
18
18
  });
19
19
  const SendsparkGetDynamicCampaignById_MetadataSchema = zod.z.object({ version: zod.z.string().describe("Internal version tag").nullable().optional() });
20
20
  const SendsparkGetDynamicCampaignById_VideoAssetSchema = zod.z.object({
21
- _id: zod.z.string().describe("Asset unique identifier"),
22
- url: zod.z.string().describe("Publicly accessible asset URL"),
23
- assetId: zod.z.string().describe("Provider-specific asset ID"),
24
- assetUrl: zod.z.string().describe("Alternate URL for the asset"),
25
- duration: zod.z.number().describe("Asset duration in seconds"),
26
- provider: zod.z.string().describe("Asset provider name")
21
+ _id: zod.z.string().describe("Asset unique identifier").nullable(),
22
+ url: zod.z.string().describe("Publicly accessible asset URL").nullable(),
23
+ assetId: zod.z.string().describe("Provider-specific asset ID").nullable(),
24
+ assetUrl: zod.z.string().describe("Alternate URL for the asset").nullable(),
25
+ duration: zod.z.number().describe("Asset duration in seconds").nullable(),
26
+ provider: zod.z.string().describe("Asset provider name").nullable()
27
27
  });
28
28
  const SendsparkGetDynamicCampaignById_SharePageSchema = zod.z.object({
29
- title: zod.z.string().describe("Title shown on the share page"),
29
+ title: zod.z.string().describe("Title shown on the share page").nullable(),
30
30
  buttons: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Configuration of any share buttons"),
31
31
  calendar: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Calendar settings for the share page").nullable().optional()
32
32
  });
33
33
  const SendsparkGetDynamicCampaignById_VideoPropertiesSchema = zod.z.object({ sharePage: SendsparkGetDynamicCampaignById_SharePageSchema.nullable() });
34
34
  const SendsparkGetDynamicCampaignByIdOutput = zod.z.object({
35
- _id: zod.z.string().describe("Campaign unique ID"),
36
- name: zod.z.string().describe("Human-readable campaign name"),
37
- folder: zod.z.string().describe("Folder ID where campaign is stored"),
38
- status: zod.z.string().describe("Current campaign status"),
35
+ _id: zod.z.string().describe("Campaign unique ID").nullable(),
36
+ name: zod.z.string().describe("Human-readable campaign name").nullable(),
37
+ folder: zod.z.string().describe("Folder ID where campaign is stored").nullable(),
38
+ status: zod.z.string().describe("Current campaign status").nullable(),
39
39
  creator: SendsparkGetDynamicCampaignById_CreatorSchema.nullable(),
40
40
  features: SendsparkGetDynamicCampaignById_FeaturesSchema.nullable(),
41
41
  metadata: SendsparkGetDynamicCampaignById_MetadataSchema.nullable(),
42
- createdAt: zod.z.string().describe("ISO timestamp of creation"),
43
- workspace: zod.z.string().describe("Workspace ID"),
42
+ createdAt: zod.z.string().describe("ISO timestamp of creation").nullable(),
43
+ workspace: zod.z.string().describe("Workspace ID").nullable(),
44
44
  videosAssets: zod.z.array(SendsparkGetDynamicCampaignById_VideoAssetSchema),
45
- combinedVideo: zod.z.boolean().describe("True if combined video is used"),
45
+ combinedVideo: zod.z.boolean().describe("True if combined video is used").nullable(),
46
46
  videoProperties: SendsparkGetDynamicCampaignById_VideoPropertiesSchema.nullable(),
47
- dynamicBackground: zod.z.boolean().describe("True if background is dynamic")
47
+ dynamicBackground: zod.z.boolean().describe("True if background is dynamic").nullable()
48
48
  }).describe("Response model for a dynamic campaign retrieval.");
49
49
  const sendsparkGetDynamicCampaignById = require_action.action("SENDSPARK_GET_DYNAMIC_CAMPAIGN_BY_ID", {
50
50
  slug: "sendspark-get-dynamic-campaign-by-id",