@keystrokehq/payhip 0.1.4 → 0.1.6

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 (85) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-coupon.cjs +1 -0
  4. package/dist/actions/create-coupon.cjs.map +1 -1
  5. package/dist/actions/create-coupon.d.cts +3 -10
  6. package/dist/actions/create-coupon.d.cts.map +1 -1
  7. package/dist/actions/create-coupon.d.mts +3 -10
  8. package/dist/actions/create-coupon.d.mts.map +1 -1
  9. package/dist/actions/create-coupon.mjs +1 -0
  10. package/dist/actions/create-coupon.mjs.map +1 -1
  11. package/dist/actions/delete-coupon.cjs +1 -0
  12. package/dist/actions/delete-coupon.cjs.map +1 -1
  13. package/dist/actions/delete-coupon.d.cts +3 -3
  14. package/dist/actions/delete-coupon.d.cts.map +1 -1
  15. package/dist/actions/delete-coupon.d.mts +3 -3
  16. package/dist/actions/delete-coupon.d.mts.map +1 -1
  17. package/dist/actions/delete-coupon.mjs +1 -0
  18. package/dist/actions/delete-coupon.mjs.map +1 -1
  19. package/dist/actions/get-coupon.cjs +1 -0
  20. package/dist/actions/get-coupon.cjs.map +1 -1
  21. package/dist/actions/get-coupon.d.cts +3 -3
  22. package/dist/actions/get-coupon.d.cts.map +1 -1
  23. package/dist/actions/get-coupon.d.mts +3 -3
  24. package/dist/actions/get-coupon.d.mts.map +1 -1
  25. package/dist/actions/get-coupon.mjs +1 -0
  26. package/dist/actions/get-coupon.mjs.map +1 -1
  27. package/dist/actions/update-coupon.cjs +1 -0
  28. package/dist/actions/update-coupon.cjs.map +1 -1
  29. package/dist/actions/update-coupon.d.cts +3 -8
  30. package/dist/actions/update-coupon.d.cts.map +1 -1
  31. package/dist/actions/update-coupon.d.mts +3 -8
  32. package/dist/actions/update-coupon.d.mts.map +1 -1
  33. package/dist/actions/update-coupon.mjs +1 -0
  34. package/dist/actions/update-coupon.mjs.map +1 -1
  35. package/dist/actions/verify-coupon.cjs +1 -0
  36. package/dist/actions/verify-coupon.cjs.map +1 -1
  37. package/dist/actions/verify-coupon.d.cts +3 -3
  38. package/dist/actions/verify-coupon.d.cts.map +1 -1
  39. package/dist/actions/verify-coupon.d.mts +3 -3
  40. package/dist/actions/verify-coupon.d.mts.map +1 -1
  41. package/dist/actions/verify-coupon.mjs +1 -0
  42. package/dist/actions/verify-coupon.mjs.map +1 -1
  43. package/dist/actions/webhook-event-paid.cjs +1 -0
  44. package/dist/actions/webhook-event-paid.cjs.map +1 -1
  45. package/dist/actions/webhook-event-paid.d.cts +3 -31
  46. package/dist/actions/webhook-event-paid.d.cts.map +1 -1
  47. package/dist/actions/webhook-event-paid.d.mts +3 -31
  48. package/dist/actions/webhook-event-paid.d.mts.map +1 -1
  49. package/dist/actions/webhook-event-paid.mjs +1 -0
  50. package/dist/actions/webhook-event-paid.mjs.map +1 -1
  51. package/dist/actions/webhook-event-refunded.cjs +1 -0
  52. package/dist/actions/webhook-event-refunded.cjs.map +1 -1
  53. package/dist/actions/webhook-event-refunded.d.cts +3 -33
  54. package/dist/actions/webhook-event-refunded.d.cts.map +1 -1
  55. package/dist/actions/webhook-event-refunded.d.mts +3 -33
  56. package/dist/actions/webhook-event-refunded.d.mts.map +1 -1
  57. package/dist/actions/webhook-event-refunded.mjs +1 -0
  58. package/dist/actions/webhook-event-refunded.mjs.map +1 -1
  59. package/dist/actions/webhook-event-subscription-created.cjs +1 -0
  60. package/dist/actions/webhook-event-subscription-created.cjs.map +1 -1
  61. package/dist/actions/webhook-event-subscription-created.d.cts +3 -15
  62. package/dist/actions/webhook-event-subscription-created.d.cts.map +1 -1
  63. package/dist/actions/webhook-event-subscription-created.d.mts +3 -15
  64. package/dist/actions/webhook-event-subscription-created.d.mts.map +1 -1
  65. package/dist/actions/webhook-event-subscription-created.mjs +1 -0
  66. package/dist/actions/webhook-event-subscription-created.mjs.map +1 -1
  67. package/dist/actions/webhook-event-subscription-deleted.cjs +1 -0
  68. package/dist/actions/webhook-event-subscription-deleted.cjs.map +1 -1
  69. package/dist/actions/webhook-event-subscription-deleted.d.cts +3 -16
  70. package/dist/actions/webhook-event-subscription-deleted.d.cts.map +1 -1
  71. package/dist/actions/webhook-event-subscription-deleted.d.mts +3 -16
  72. package/dist/actions/webhook-event-subscription-deleted.d.mts.map +1 -1
  73. package/dist/actions/webhook-event-subscription-deleted.mjs +1 -0
  74. package/dist/actions/webhook-event-subscription-deleted.mjs.map +1 -1
  75. package/dist/app.cjs +5 -2
  76. package/dist/app.cjs.map +1 -1
  77. package/dist/app.d.cts +7 -1
  78. package/dist/app.d.cts.map +1 -1
  79. package/dist/app.d.mts +7 -1
  80. package/dist/app.d.mts.map +1 -1
  81. package/dist/app.mjs +3 -2
  82. package/dist/app.mjs.map +1 -1
  83. package/dist/index.d.cts +1 -1
  84. package/dist/index.d.mts +1 -1
  85. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-event-paid.cjs","names":["z","action"],"sources":["../../src/actions/webhook-event-paid.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhipWebhookEventPaidInput = z.object({\n id: z.string().describe(\"Unique ID of the transaction\"),\n date: z.number().int().describe(\"Unix timestamp when purchase occurred\"),\n type: z.string().describe(\"Event type identifier\"),\n email: z.string().nullable(),\n items: z.array(z.object({\n on_sale: z.boolean().describe(\"Whether the product was on sale\"),\n quantity: z.number().int().describe(\"Quantity purchased\"),\n product_id: z.string().describe(\"ID of the product\"),\n has_variant: z.boolean().describe(\"Whether the product has variants\"),\n product_key: z.string().describe(\"Link key for the product\"),\n used_coupon: z.boolean().describe(\"Whether a coupon was used\"),\n product_name: z.string().describe(\"Name of the product\"),\n product_permalink: z.string().nullable(),\n used_social_discount: z.boolean().describe(\"Whether a social discount was used\"),\n promoted_by_affiliate: z.boolean().describe(\"Whether an affiliate promotion was applied\"),\n used_upgrade_discount: z.boolean().describe(\"Whether an upgrade discount was used\"),\n used_cross_sell_discount: z.boolean().describe(\"Whether a cross-sell discount was used\"),\n}).passthrough()).describe(\"List of items in the order\"),\n price: z.number().int().describe(\"Total price in cents\"),\n is_gift: z.boolean().describe(\"Whether the purchase was a gift\"),\n currency: z.string().describe(\"Three-letter currency code\"),\n signature: z.string().describe(\"HMAC SHA-256 signature of the payload using your API key\"),\n ip_address: z.string().nullable(),\n payhip_fee: z.number().int().describe(\"Payhip fee in cents\"),\n stripe_fee: z.number().int().describe(\"Stripe fee in cents\"),\n vat_applied: z.boolean().describe(\"Whether VAT was applied to the purchase\"),\n payment_type: z.enum([\"card\", \"paypal\"]).describe(\"Payment method used\"),\n unconsented_from_emails: z.boolean().describe(\"Whether customer has opted out of emails\"),\n}).describe(\"Request model for Payhip 'paid' webhook event.\");\nconst PayhipWebhookEventPaid_PayhipWebhookItemSchema = z.object({\n on_sale: z.boolean().describe(\"Whether the product was on sale\").nullable(),\n quantity: z.number().int().describe(\"Quantity purchased\").nullable(),\n product_id: z.string().describe(\"ID of the product\").nullable(),\n has_variant: z.boolean().describe(\"Whether the product has variants\").nullable(),\n product_key: z.string().describe(\"Link key for the product\").nullable(),\n used_coupon: z.boolean().describe(\"Whether a coupon was used\").nullable(),\n product_name: z.string().describe(\"Name of the product\").nullable(),\n product_permalink: z.string().nullable(),\n used_social_discount: z.boolean().describe(\"Whether a social discount was used\").nullable(),\n promoted_by_affiliate: z.boolean().describe(\"Whether an affiliate promotion was applied\").nullable(),\n used_upgrade_discount: z.boolean().describe(\"Whether an upgrade discount was used\").nullable(),\n used_cross_sell_discount: z.boolean().describe(\"Whether a cross-sell discount was used\").nullable(),\n}).passthrough();\nexport const PayhipWebhookEventPaidOutput = z.object({\n id: z.string().nullable(),\n date: z.number().int().nullable(),\n type: z.string().nullable(),\n email: z.string().nullable(),\n items: z.array(PayhipWebhookEventPaid_PayhipWebhookItemSchema),\n price: z.number().int().nullable(),\n is_gift: z.boolean().nullable(),\n currency: z.string().nullable(),\n signature: z.string().nullable(),\n ip_address: z.string().nullable(),\n payhip_fee: z.number().int().nullable(),\n stripe_fee: z.number().int().nullable(),\n vat_applied: z.boolean().nullable(),\n payment_type: z.enum([\"card\", \"paypal\"]).nullable(),\n unconsented_from_emails: z.boolean().nullable(),\n}).passthrough().describe(\"Response model for Payhip 'paid' webhook event.\");\n\nexport const payhipWebhookEventPaid = action(\"PAYHIP_WEBHOOK_EVENT_PAID\", {\n slug: \"payhip-webhook-event-paid\",\n name: \"Webhook Event - Paid\",\n description: \"Tool to process Payhip's paid webhook event. Use when handling a purchase completion webhook from Payhip.\",\n input: PayhipWebhookEventPaidInput,\n output: PayhipWebhookEventPaidOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC3B,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC;EAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB;EACxD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;EACnD,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;EACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EAC3D,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B;EAC7D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EACvD,mBAAmBA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IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC9B,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC9B,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAChC,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACtC,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACtC,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAClC,cAAcA,IAAAA,EAAE,KAAK,CAAC,QAAQ,QAAQ,CAAC,CAAC,CAAC,SAAS;CAClD,yBAAyBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;AAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"webhook-event-paid.cjs","names":["z","action"],"sources":["../../src/actions/webhook-event-paid.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhip } from \"../app\";\n\nexport const PayhipWebhookEventPaidInput = z.object({\n id: z.string().describe(\"Unique ID of the transaction\"),\n date: z.number().int().describe(\"Unix timestamp when purchase occurred\"),\n type: z.string().describe(\"Event type identifier\"),\n email: z.string().nullable(),\n items: z.array(z.object({\n on_sale: z.boolean().describe(\"Whether the product was on sale\"),\n quantity: z.number().int().describe(\"Quantity purchased\"),\n product_id: z.string().describe(\"ID of the product\"),\n has_variant: z.boolean().describe(\"Whether the product has variants\"),\n product_key: z.string().describe(\"Link key for the product\"),\n used_coupon: z.boolean().describe(\"Whether a coupon was used\"),\n product_name: z.string().describe(\"Name of the product\"),\n product_permalink: z.string().nullable(),\n used_social_discount: z.boolean().describe(\"Whether a social discount was used\"),\n promoted_by_affiliate: z.boolean().describe(\"Whether an affiliate promotion was applied\"),\n used_upgrade_discount: z.boolean().describe(\"Whether an upgrade discount was used\"),\n used_cross_sell_discount: z.boolean().describe(\"Whether a cross-sell discount was used\"),\n}).passthrough()).describe(\"List of items in the order\"),\n price: z.number().int().describe(\"Total price in cents\"),\n is_gift: z.boolean().describe(\"Whether the purchase was a gift\"),\n currency: z.string().describe(\"Three-letter currency code\"),\n signature: z.string().describe(\"HMAC SHA-256 signature of the payload using your API key\"),\n ip_address: z.string().nullable(),\n payhip_fee: z.number().int().describe(\"Payhip fee in cents\"),\n stripe_fee: z.number().int().describe(\"Stripe fee in cents\"),\n vat_applied: z.boolean().describe(\"Whether VAT was applied to the purchase\"),\n payment_type: z.enum([\"card\", \"paypal\"]).describe(\"Payment method used\"),\n unconsented_from_emails: z.boolean().describe(\"Whether customer has opted out of emails\"),\n}).describe(\"Request model for Payhip 'paid' webhook event.\");\nconst PayhipWebhookEventPaid_PayhipWebhookItemSchema = z.object({\n on_sale: z.boolean().describe(\"Whether the product was on sale\").nullable(),\n quantity: z.number().int().describe(\"Quantity purchased\").nullable(),\n product_id: z.string().describe(\"ID of the product\").nullable(),\n has_variant: z.boolean().describe(\"Whether the product has variants\").nullable(),\n product_key: z.string().describe(\"Link key for the product\").nullable(),\n used_coupon: z.boolean().describe(\"Whether a coupon was used\").nullable(),\n product_name: z.string().describe(\"Name of the product\").nullable(),\n product_permalink: z.string().nullable(),\n used_social_discount: z.boolean().describe(\"Whether a social discount was used\").nullable(),\n promoted_by_affiliate: z.boolean().describe(\"Whether an affiliate promotion was applied\").nullable(),\n used_upgrade_discount: z.boolean().describe(\"Whether an upgrade discount was used\").nullable(),\n used_cross_sell_discount: z.boolean().describe(\"Whether a cross-sell discount was used\").nullable(),\n}).passthrough();\nexport const PayhipWebhookEventPaidOutput = z.object({\n id: z.string().nullable(),\n date: z.number().int().nullable(),\n type: z.string().nullable(),\n email: z.string().nullable(),\n items: z.array(PayhipWebhookEventPaid_PayhipWebhookItemSchema),\n price: z.number().int().nullable(),\n is_gift: z.boolean().nullable(),\n currency: z.string().nullable(),\n signature: z.string().nullable(),\n ip_address: z.string().nullable(),\n payhip_fee: z.number().int().nullable(),\n stripe_fee: z.number().int().nullable(),\n vat_applied: z.boolean().nullable(),\n payment_type: z.enum([\"card\", \"paypal\"]).nullable(),\n unconsented_from_emails: z.boolean().nullable(),\n}).passthrough().describe(\"Response model for Payhip 'paid' webhook event.\");\n\nexport const payhipWebhookEventPaid: AppAction<\n typeof PayhipWebhookEventPaidInput,\n typeof PayhipWebhookEventPaidOutput,\n typeof payhip.credential\n> = action(\"PAYHIP_WEBHOOK_EVENT_PAID\", {\n slug: \"payhip-webhook-event-paid\",\n name: \"Webhook Event - Paid\",\n description: \"Tool to process Payhip's paid webhook event. Use when handling a purchase completion webhook from Payhip.\",\n input: PayhipWebhookEventPaidInput,\n output: PayhipWebhookEventPaidOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC3B,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC;EAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB;EACxD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;EACnD,aAAaA,IAAAA,EAAE,QAAQ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ChC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC3B,OAAOA,IAAAA,EAAE,MAAM,8CAA8C;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACjC,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC9B,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC9B,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAChC,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACtC,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACtC,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAClC,cAAcA,IAAAA,EAAE,KAAK,CAAC,QAAQ,QAAQ,CAAC,CAAC,CAAC,SAAS;CAClD,yBAAyBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;AAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { payhip } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/webhook-event-paid.d.ts
@@ -67,37 +69,7 @@ declare const PayhipWebhookEventPaidOutput: z.ZodObject<{
67
69
  }>>;
68
70
  unconsented_from_emails: z.ZodNullable<z.ZodBoolean>;
69
71
  }, z.core.$loose>;
70
- declare const payhipWebhookEventPaid: import("@keystrokehq/action").WorkflowActionDefinition<{
71
- id: string;
72
- date: number;
73
- type: string;
74
- email: string | null;
75
- items: {
76
- [x: string]: unknown;
77
- on_sale: boolean;
78
- quantity: number;
79
- product_id: string;
80
- has_variant: boolean;
81
- product_key: string;
82
- used_coupon: boolean;
83
- product_name: string;
84
- product_permalink: string | null;
85
- used_social_discount: boolean;
86
- promoted_by_affiliate: boolean;
87
- used_upgrade_discount: boolean;
88
- used_cross_sell_discount: boolean;
89
- }[];
90
- price: number;
91
- is_gift: boolean;
92
- currency: string;
93
- signature: string;
94
- ip_address: string | null;
95
- payhip_fee: number;
96
- stripe_fee: number;
97
- vat_applied: boolean;
98
- payment_type: "card" | "paypal";
99
- unconsented_from_emails: boolean;
100
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
72
+ declare const payhipWebhookEventPaid: AppAction<typeof PayhipWebhookEventPaidInput, typeof PayhipWebhookEventPaidOutput, typeof payhip.credential>;
101
73
  //#endregion
102
74
  export { payhipWebhookEventPaid };
103
75
  //# sourceMappingURL=webhook-event-paid.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-event-paid.d.cts","names":[],"sources":["../../src/actions/webhook-event-paid.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkB5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"webhook-event-paid.d.cts","names":[],"sources":["../../src/actions/webhook-event-paid.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkB5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { payhip } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/webhook-event-paid.d.ts
@@ -67,37 +69,7 @@ declare const PayhipWebhookEventPaidOutput: z.ZodObject<{
67
69
  }>>;
68
70
  unconsented_from_emails: z.ZodNullable<z.ZodBoolean>;
69
71
  }, z.core.$loose>;
70
- declare const payhipWebhookEventPaid: import("@keystrokehq/action").WorkflowActionDefinition<{
71
- id: string;
72
- date: number;
73
- type: string;
74
- email: string | null;
75
- items: {
76
- [x: string]: unknown;
77
- on_sale: boolean;
78
- quantity: number;
79
- product_id: string;
80
- has_variant: boolean;
81
- product_key: string;
82
- used_coupon: boolean;
83
- product_name: string;
84
- product_permalink: string | null;
85
- used_social_discount: boolean;
86
- promoted_by_affiliate: boolean;
87
- used_upgrade_discount: boolean;
88
- used_cross_sell_discount: boolean;
89
- }[];
90
- price: number;
91
- is_gift: boolean;
92
- currency: string;
93
- signature: string;
94
- ip_address: string | null;
95
- payhip_fee: number;
96
- stripe_fee: number;
97
- vat_applied: boolean;
98
- payment_type: "card" | "paypal";
99
- unconsented_from_emails: boolean;
100
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
72
+ declare const payhipWebhookEventPaid: AppAction<typeof PayhipWebhookEventPaidInput, typeof PayhipWebhookEventPaidOutput, typeof payhip.credential>;
101
73
  //#endregion
102
74
  export { payhipWebhookEventPaid };
103
75
  //# sourceMappingURL=webhook-event-paid.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-event-paid.d.mts","names":[],"sources":["../../src/actions/webhook-event-paid.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkB5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"webhook-event-paid.d.mts","names":[],"sources":["../../src/actions/webhook-event-paid.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkB5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/webhook-event-paid.ts
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-event-paid.mjs","names":[],"sources":["../../src/actions/webhook-event-paid.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhipWebhookEventPaidInput = z.object({\n id: z.string().describe(\"Unique ID of the transaction\"),\n date: z.number().int().describe(\"Unix timestamp when purchase occurred\"),\n type: z.string().describe(\"Event type identifier\"),\n email: z.string().nullable(),\n items: z.array(z.object({\n on_sale: z.boolean().describe(\"Whether the product was on sale\"),\n quantity: z.number().int().describe(\"Quantity purchased\"),\n product_id: z.string().describe(\"ID of the product\"),\n has_variant: z.boolean().describe(\"Whether the product has variants\"),\n product_key: z.string().describe(\"Link key for the product\"),\n used_coupon: z.boolean().describe(\"Whether a coupon was used\"),\n product_name: z.string().describe(\"Name of the product\"),\n product_permalink: z.string().nullable(),\n used_social_discount: z.boolean().describe(\"Whether a social discount was used\"),\n promoted_by_affiliate: z.boolean().describe(\"Whether an affiliate promotion was applied\"),\n used_upgrade_discount: z.boolean().describe(\"Whether an upgrade discount was used\"),\n used_cross_sell_discount: z.boolean().describe(\"Whether a cross-sell discount was used\"),\n}).passthrough()).describe(\"List of items in the order\"),\n price: z.number().int().describe(\"Total price in cents\"),\n is_gift: z.boolean().describe(\"Whether the purchase was a gift\"),\n currency: z.string().describe(\"Three-letter currency code\"),\n signature: z.string().describe(\"HMAC SHA-256 signature of the payload using your API key\"),\n ip_address: z.string().nullable(),\n payhip_fee: z.number().int().describe(\"Payhip fee in cents\"),\n stripe_fee: z.number().int().describe(\"Stripe fee in cents\"),\n vat_applied: z.boolean().describe(\"Whether VAT was applied to the purchase\"),\n payment_type: z.enum([\"card\", \"paypal\"]).describe(\"Payment method used\"),\n unconsented_from_emails: z.boolean().describe(\"Whether customer has opted out of emails\"),\n}).describe(\"Request model for Payhip 'paid' webhook event.\");\nconst PayhipWebhookEventPaid_PayhipWebhookItemSchema = z.object({\n on_sale: z.boolean().describe(\"Whether the product was on sale\").nullable(),\n quantity: z.number().int().describe(\"Quantity purchased\").nullable(),\n product_id: z.string().describe(\"ID of the product\").nullable(),\n has_variant: z.boolean().describe(\"Whether the product has variants\").nullable(),\n product_key: z.string().describe(\"Link key for the product\").nullable(),\n used_coupon: z.boolean().describe(\"Whether a coupon was used\").nullable(),\n product_name: z.string().describe(\"Name of the product\").nullable(),\n product_permalink: z.string().nullable(),\n used_social_discount: z.boolean().describe(\"Whether a social discount was used\").nullable(),\n promoted_by_affiliate: z.boolean().describe(\"Whether an affiliate promotion was applied\").nullable(),\n used_upgrade_discount: z.boolean().describe(\"Whether an upgrade discount was used\").nullable(),\n used_cross_sell_discount: z.boolean().describe(\"Whether a cross-sell discount was used\").nullable(),\n}).passthrough();\nexport const PayhipWebhookEventPaidOutput = z.object({\n id: z.string().nullable(),\n date: z.number().int().nullable(),\n type: z.string().nullable(),\n email: z.string().nullable(),\n items: z.array(PayhipWebhookEventPaid_PayhipWebhookItemSchema),\n price: z.number().int().nullable(),\n is_gift: z.boolean().nullable(),\n currency: z.string().nullable(),\n signature: z.string().nullable(),\n ip_address: z.string().nullable(),\n payhip_fee: z.number().int().nullable(),\n stripe_fee: z.number().int().nullable(),\n vat_applied: z.boolean().nullable(),\n payment_type: z.enum([\"card\", \"paypal\"]).nullable(),\n unconsented_from_emails: z.boolean().nullable(),\n}).passthrough().describe(\"Response model for Payhip 'paid' webhook event.\");\n\nexport const payhipWebhookEventPaid = action(\"PAYHIP_WEBHOOK_EVENT_PAID\", {\n slug: \"payhip-webhook-event-paid\",\n name: \"Webhook Event - Paid\",\n description: \"Tool to process Payhip's paid webhook event. Use when handling a purchase completion webhook from Payhip.\",\n input: PayhipWebhookEventPaidInput,\n output: PayhipWebhookEventPaidOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS;CAC3B,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC;EAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB;EACxD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;EACnD,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;EACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EAC3D,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B;EAC7D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EACvD,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS;EACvC,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC;EAC/E,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C;EACxF,uBAAuB,EAAE,QA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,CAAC,SAAS;EAClD,yBAAyB,EAAE,QAAQ,CAAC,CAAC,SAAS;CAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"webhook-event-paid.mjs","names":[],"sources":["../../src/actions/webhook-event-paid.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhip } from \"../app\";\n\nexport const PayhipWebhookEventPaidInput = z.object({\n id: z.string().describe(\"Unique ID of the transaction\"),\n date: z.number().int().describe(\"Unix timestamp when purchase occurred\"),\n type: z.string().describe(\"Event type identifier\"),\n email: z.string().nullable(),\n items: z.array(z.object({\n on_sale: z.boolean().describe(\"Whether the product was on sale\"),\n quantity: z.number().int().describe(\"Quantity purchased\"),\n product_id: z.string().describe(\"ID of the product\"),\n has_variant: z.boolean().describe(\"Whether the product has variants\"),\n product_key: z.string().describe(\"Link key for the product\"),\n used_coupon: z.boolean().describe(\"Whether a coupon was used\"),\n product_name: z.string().describe(\"Name of the product\"),\n product_permalink: z.string().nullable(),\n used_social_discount: z.boolean().describe(\"Whether a social discount was used\"),\n promoted_by_affiliate: z.boolean().describe(\"Whether an affiliate promotion was applied\"),\n used_upgrade_discount: z.boolean().describe(\"Whether an upgrade discount was used\"),\n used_cross_sell_discount: z.boolean().describe(\"Whether a cross-sell discount was used\"),\n}).passthrough()).describe(\"List of items in the order\"),\n price: z.number().int().describe(\"Total price in cents\"),\n is_gift: z.boolean().describe(\"Whether the purchase was a gift\"),\n currency: z.string().describe(\"Three-letter currency code\"),\n signature: z.string().describe(\"HMAC SHA-256 signature of the payload using your API key\"),\n ip_address: z.string().nullable(),\n payhip_fee: z.number().int().describe(\"Payhip fee in cents\"),\n stripe_fee: z.number().int().describe(\"Stripe fee in cents\"),\n vat_applied: z.boolean().describe(\"Whether VAT was applied to the purchase\"),\n payment_type: z.enum([\"card\", \"paypal\"]).describe(\"Payment method used\"),\n unconsented_from_emails: z.boolean().describe(\"Whether customer has opted out of emails\"),\n}).describe(\"Request model for Payhip 'paid' webhook event.\");\nconst PayhipWebhookEventPaid_PayhipWebhookItemSchema = z.object({\n on_sale: z.boolean().describe(\"Whether the product was on sale\").nullable(),\n quantity: z.number().int().describe(\"Quantity purchased\").nullable(),\n product_id: z.string().describe(\"ID of the product\").nullable(),\n has_variant: z.boolean().describe(\"Whether the product has variants\").nullable(),\n product_key: z.string().describe(\"Link key for the product\").nullable(),\n used_coupon: z.boolean().describe(\"Whether a coupon was used\").nullable(),\n product_name: z.string().describe(\"Name of the product\").nullable(),\n product_permalink: z.string().nullable(),\n used_social_discount: z.boolean().describe(\"Whether a social discount was used\").nullable(),\n promoted_by_affiliate: z.boolean().describe(\"Whether an affiliate promotion was applied\").nullable(),\n used_upgrade_discount: z.boolean().describe(\"Whether an upgrade discount was used\").nullable(),\n used_cross_sell_discount: z.boolean().describe(\"Whether a cross-sell discount was used\").nullable(),\n}).passthrough();\nexport const PayhipWebhookEventPaidOutput = z.object({\n id: z.string().nullable(),\n date: z.number().int().nullable(),\n type: z.string().nullable(),\n email: z.string().nullable(),\n items: z.array(PayhipWebhookEventPaid_PayhipWebhookItemSchema),\n price: z.number().int().nullable(),\n is_gift: z.boolean().nullable(),\n currency: z.string().nullable(),\n signature: z.string().nullable(),\n ip_address: z.string().nullable(),\n payhip_fee: z.number().int().nullable(),\n stripe_fee: z.number().int().nullable(),\n vat_applied: z.boolean().nullable(),\n payment_type: z.enum([\"card\", \"paypal\"]).nullable(),\n unconsented_from_emails: z.boolean().nullable(),\n}).passthrough().describe(\"Response model for Payhip 'paid' webhook event.\");\n\nexport const payhipWebhookEventPaid: AppAction<\n typeof PayhipWebhookEventPaidInput,\n typeof PayhipWebhookEventPaidOutput,\n typeof payhip.credential\n> = action(\"PAYHIP_WEBHOOK_EVENT_PAID\", {\n slug: \"payhip-webhook-event-paid\",\n name: \"Webhook Event - Paid\",\n description: \"Tool to process Payhip's paid webhook event. Use when handling a purchase completion webhook from Payhip.\",\n input: PayhipWebhookEventPaidInput,\n output: PayhipWebhookEventPaidOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS;CAC3B,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC;EAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB;EACxD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;EACnD,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;EACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EAC3D,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B;EAC7D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EACvD,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS;EACvC,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC;EAC/E,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C;EACxF,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC;EAClF,0BAA0B,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,4BAA4B;CACrD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;CACvD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC;CAC/D,UAAU,EAAE,OAA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AAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7F,0BAA0B,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY;AAmBf,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QA3B0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS;EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;EAChC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;EAC1B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS;EAC3B,OAAO,EAAE,MAAM,8CAA8C;EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;EACjC,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS;EAC9B,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;EAC9B,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;EAC/B,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS;EAChC,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;EACtC,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;EACtC,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS;EAClC,cAAc,EAAE,KAAK,CAAC,QAAQ,QAAQ,CAAC,CAAC,CAAC,SAAS;EAClD,yBAAyB,EAAE,QAAQ,CAAC,CAAC,SAAS;CAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/webhook-event-refunded.ts
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-event-refunded.cjs","names":["z","action"],"sources":["../../src/actions/webhook-event-refunded.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhipWebhookEventRefundedInput = z.object({\n id: z.string().describe(\"Transaction ID\"),\n type: z.string().describe(\"Event type identifier\"),\n email: z.string().describe(\"Buyer email address\"),\n items: z.array(z.object({\n on_sale: z.boolean().describe(\"Whether product was on sale\"),\n quantity: z.string().describe(\"Quantity purchased\"),\n product_id: z.string().describe(\"Unique identifier for the product\"),\n has_variant: z.boolean().describe(\"Whether product has a variant\"),\n product_key: z.string().describe(\"Product key\"),\n used_coupon: z.boolean().describe(\"Whether coupon was used\"),\n product_name: z.string().describe(\"Name of the product\"),\n product_permalink: z.string().describe(\"Product permalink URL\"),\n used_social_discount: z.boolean().describe(\"Whether social discount was used\"),\n promoted_by_affiliate: z.boolean().describe(\"Whether purchase was promoted by an affiliate\"),\n used_upgrade_discount: z.boolean().describe(\"Whether upgrade discount was used\"),\n used_cross_sell_discount: z.boolean().describe(\"Whether cross-sell discount was used\"),\n}).passthrough().describe(\"Details of an item in the refunded event\")).describe(\"List of items included in the transaction\"),\n price: z.number().int().describe(\"Original price in cents or pennies\"),\n is_gift: z.boolean().describe(\"Whether purchase was a gift\"),\n currency: z.string().describe(\"ISO 4217 currency code, e.g., USD\"),\n signature: z.string().describe(\"HMAC SHA-256 signature of the payload using your API key\"),\n ip_address: z.string().describe(\"IP address of the buyer\"),\n payhip_fee: z.number().int().describe(\"Payhip fee in cents\"),\n stripe_fee: z.number().int().describe(\"Stripe fee in cents\"),\n vat_applied: z.boolean().describe(\"Whether VAT was applied\"),\n date_created: z.number().int().describe(\"Unix timestamp when transaction was created\"),\n payment_type: z.string().describe(\"Payment method used, e.g., card\"),\n date_refunded: z.number().int().describe(\"Unix timestamp when refund occurred\"),\n amount_refunded: z.number().int().describe(\"Amount refunded in cents or pennies\"),\n unconsented_from_emails: z.boolean().describe(\"Whether buyer did not consent to marketing emails\"),\n}).describe(\"Request model for Payhip refunded webhook event.\");\nconst PayhipWebhookEventRefunded_PayhipWebhookEventRefundedItemSchema = z.object({\n on_sale: z.boolean().describe(\"Whether product was on sale\").nullable(),\n quantity: z.string().describe(\"Quantity purchased\").nullable(),\n product_id: z.string().describe(\"Unique identifier for the product\").nullable(),\n has_variant: z.boolean().describe(\"Whether product has a variant\").nullable(),\n product_key: z.string().describe(\"Product key\").nullable(),\n used_coupon: z.boolean().describe(\"Whether coupon was used\").nullable(),\n product_name: z.string().describe(\"Name of the product\").nullable(),\n product_permalink: z.string().describe(\"Product permalink URL\").nullable(),\n used_social_discount: z.boolean().describe(\"Whether social discount was used\").nullable(),\n promoted_by_affiliate: z.boolean().describe(\"Whether purchase was promoted by an affiliate\").nullable(),\n used_upgrade_discount: z.boolean().describe(\"Whether upgrade discount was used\").nullable(),\n used_cross_sell_discount: z.boolean().describe(\"Whether cross-sell discount was used\").nullable(),\n}).passthrough().describe(\"Details of an item in the refunded event\");\nexport const PayhipWebhookEventRefundedOutput = z.object({\n id: z.string().nullable(),\n type: z.string().nullable(),\n email: z.string().nullable(),\n items: z.array(PayhipWebhookEventRefunded_PayhipWebhookEventRefundedItemSchema),\n price: z.number().int().nullable(),\n is_gift: z.boolean().nullable(),\n currency: z.string().nullable(),\n signature: z.string().nullable(),\n ip_address: z.string().nullable(),\n payhip_fee: z.number().int().nullable(),\n stripe_fee: z.number().int().nullable(),\n vat_applied: z.boolean().nullable(),\n date_created: z.number().int().nullable(),\n payment_type: z.string().nullable(),\n date_refunded: z.number().int().nullable(),\n amount_refunded: z.number().int().nullable(),\n unconsented_from_emails: z.boolean().nullable(),\n}).passthrough().describe(\"Response model for Payhip refunded webhook event.\");\n\nexport const payhipWebhookEventRefunded = action(\"PAYHIP_WEBHOOK_EVENT_REFUNDED\", {\n slug: \"payhip-webhook-event-refunded\",\n name: \"Webhook Event - Refunded Payment\",\n description: \"Tool to process Payhip's refunded webhook event. Use when handling a payment refund event from Payhip.\",\n input: PayhipWebhookEventRefundedInput,\n output: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,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACtC,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;CAClC,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACxC,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAClC,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACzC,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CAC3C,yBAAyBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS;AAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"webhook-event-refunded.cjs","names":["z","action"],"sources":["../../src/actions/webhook-event-refunded.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhip } from \"../app\";\n\nexport const PayhipWebhookEventRefundedInput = z.object({\n id: z.string().describe(\"Transaction ID\"),\n type: z.string().describe(\"Event type identifier\"),\n email: z.string().describe(\"Buyer email address\"),\n items: z.array(z.object({\n on_sale: z.boolean().describe(\"Whether product was on sale\"),\n quantity: z.string().describe(\"Quantity purchased\"),\n product_id: z.string().describe(\"Unique identifier for the product\"),\n has_variant: z.boolean().describe(\"Whether product has a variant\"),\n product_key: z.string().describe(\"Product key\"),\n used_coupon: z.boolean().describe(\"Whether coupon was used\"),\n product_name: z.string().describe(\"Name of the product\"),\n product_permalink: z.string().describe(\"Product permalink URL\"),\n used_social_discount: z.boolean().describe(\"Whether social discount was used\"),\n promoted_by_affiliate: z.boolean().describe(\"Whether purchase was promoted by an affiliate\"),\n used_upgrade_discount: z.boolean().describe(\"Whether upgrade discount was used\"),\n used_cross_sell_discount: z.boolean().describe(\"Whether cross-sell discount was used\"),\n}).passthrough().describe(\"Details of an item in the refunded event\")).describe(\"List of items included in the transaction\"),\n price: z.number().int().describe(\"Original price in cents or pennies\"),\n is_gift: z.boolean().describe(\"Whether purchase was a gift\"),\n currency: z.string().describe(\"ISO 4217 currency code, e.g., USD\"),\n signature: z.string().describe(\"HMAC SHA-256 signature of the payload using your API key\"),\n ip_address: z.string().describe(\"IP address of the buyer\"),\n payhip_fee: z.number().int().describe(\"Payhip fee in cents\"),\n stripe_fee: z.number().int().describe(\"Stripe fee in cents\"),\n vat_applied: z.boolean().describe(\"Whether VAT was applied\"),\n date_created: z.number().int().describe(\"Unix timestamp when transaction was created\"),\n payment_type: z.string().describe(\"Payment method used, e.g., card\"),\n date_refunded: z.number().int().describe(\"Unix timestamp when refund occurred\"),\n amount_refunded: z.number().int().describe(\"Amount refunded in cents or pennies\"),\n unconsented_from_emails: z.boolean().describe(\"Whether buyer did not consent to marketing emails\"),\n}).describe(\"Request model for Payhip refunded webhook event.\");\nconst PayhipWebhookEventRefunded_PayhipWebhookEventRefundedItemSchema = z.object({\n on_sale: z.boolean().describe(\"Whether product was on sale\").nullable(),\n quantity: z.string().describe(\"Quantity purchased\").nullable(),\n product_id: z.string().describe(\"Unique identifier for the product\").nullable(),\n has_variant: z.boolean().describe(\"Whether product has a variant\").nullable(),\n product_key: z.string().describe(\"Product key\").nullable(),\n used_coupon: z.boolean().describe(\"Whether coupon was used\").nullable(),\n product_name: z.string().describe(\"Name of the product\").nullable(),\n product_permalink: z.string().describe(\"Product permalink URL\").nullable(),\n used_social_discount: z.boolean().describe(\"Whether social discount was used\").nullable(),\n promoted_by_affiliate: z.boolean().describe(\"Whether purchase was promoted by an affiliate\").nullable(),\n used_upgrade_discount: z.boolean().describe(\"Whether upgrade discount was used\").nullable(),\n used_cross_sell_discount: z.boolean().describe(\"Whether cross-sell discount was used\").nullable(),\n}).passthrough().describe(\"Details of an item in the refunded event\");\nexport const PayhipWebhookEventRefundedOutput = z.object({\n id: z.string().nullable(),\n type: z.string().nullable(),\n email: z.string().nullable(),\n items: z.array(PayhipWebhookEventRefunded_PayhipWebhookEventRefundedItemSchema),\n price: z.number().int().nullable(),\n is_gift: z.boolean().nullable(),\n currency: z.string().nullable(),\n signature: z.string().nullable(),\n ip_address: z.string().nullable(),\n payhip_fee: z.number().int().nullable(),\n stripe_fee: z.number().int().nullable(),\n vat_applied: z.boolean().nullable(),\n date_created: z.number().int().nullable(),\n payment_type: z.string().nullable(),\n date_refunded: z.number().int().nullable(),\n amount_refunded: z.number().int().nullable(),\n unconsented_from_emails: z.boolean().nullable(),\n}).passthrough().describe(\"Response model for Payhip refunded webhook event.\");\n\nexport const payhipWebhookEventRefunded: AppAction<\n typeof PayhipWebhookEventRefundedInput,\n typeof PayhipWebhookEventRefundedOutput,\n typeof payhip.credential\n> = action(\"PAYHIP_WEBHOOK_EVENT_REFUNDED\", {\n slug: \"payhip-webhook-event-refunded\",\n name: \"Webhook Event - Refunded Payment\",\n description: \"Tool to process Payhip's refunded webhook event. Use when handling a payment refund event from Payhip.\",\n input: PayhipWebhookEventRefundedInput,\n output: PayhipWebhookEventRefundedOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CACxC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAChD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B;EAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;EAClD,YAAYA,IAAAA,EAAE,OAAO,C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,SAAS,mDAAmD;AAE7E,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { payhip } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/webhook-event-refunded.d.ts
@@ -65,39 +67,7 @@ declare const PayhipWebhookEventRefundedOutput: z.ZodObject<{
65
67
  amount_refunded: z.ZodNullable<z.ZodNumber>;
66
68
  unconsented_from_emails: z.ZodNullable<z.ZodBoolean>;
67
69
  }, z.core.$loose>;
68
- declare const payhipWebhookEventRefunded: import("@keystrokehq/action").WorkflowActionDefinition<{
69
- id: string;
70
- type: string;
71
- email: string;
72
- items: {
73
- [x: string]: unknown;
74
- on_sale: boolean;
75
- quantity: string;
76
- product_id: string;
77
- has_variant: boolean;
78
- product_key: string;
79
- used_coupon: boolean;
80
- product_name: string;
81
- product_permalink: string;
82
- used_social_discount: boolean;
83
- promoted_by_affiliate: boolean;
84
- used_upgrade_discount: boolean;
85
- used_cross_sell_discount: boolean;
86
- }[];
87
- price: number;
88
- is_gift: boolean;
89
- currency: string;
90
- signature: string;
91
- ip_address: string;
92
- payhip_fee: number;
93
- stripe_fee: number;
94
- vat_applied: boolean;
95
- date_created: number;
96
- payment_type: string;
97
- date_refunded: number;
98
- amount_refunded: number;
99
- unconsented_from_emails: boolean;
100
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
70
+ declare const payhipWebhookEventRefunded: AppAction<typeof PayhipWebhookEventRefundedInput, typeof PayhipWebhookEventRefundedOutput, typeof payhip.credential>;
101
71
  //#endregion
102
72
  export { payhipWebhookEventRefunded };
103
73
  //# sourceMappingURL=webhook-event-refunded.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-event-refunded.d.cts","names":[],"sources":["../../src/actions/webhook-event-refunded.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoBhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"webhook-event-refunded.d.cts","names":[],"sources":["../../src/actions/webhook-event-refunded.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoBhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { payhip } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/webhook-event-refunded.d.ts
@@ -65,39 +67,7 @@ declare const PayhipWebhookEventRefundedOutput: z.ZodObject<{
65
67
  amount_refunded: z.ZodNullable<z.ZodNumber>;
66
68
  unconsented_from_emails: z.ZodNullable<z.ZodBoolean>;
67
69
  }, z.core.$loose>;
68
- declare const payhipWebhookEventRefunded: import("@keystrokehq/action").WorkflowActionDefinition<{
69
- id: string;
70
- type: string;
71
- email: string;
72
- items: {
73
- [x: string]: unknown;
74
- on_sale: boolean;
75
- quantity: string;
76
- product_id: string;
77
- has_variant: boolean;
78
- product_key: string;
79
- used_coupon: boolean;
80
- product_name: string;
81
- product_permalink: string;
82
- used_social_discount: boolean;
83
- promoted_by_affiliate: boolean;
84
- used_upgrade_discount: boolean;
85
- used_cross_sell_discount: boolean;
86
- }[];
87
- price: number;
88
- is_gift: boolean;
89
- currency: string;
90
- signature: string;
91
- ip_address: string;
92
- payhip_fee: number;
93
- stripe_fee: number;
94
- vat_applied: boolean;
95
- date_created: number;
96
- payment_type: string;
97
- date_refunded: number;
98
- amount_refunded: number;
99
- unconsented_from_emails: boolean;
100
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
70
+ declare const payhipWebhookEventRefunded: AppAction<typeof PayhipWebhookEventRefundedInput, typeof PayhipWebhookEventRefundedOutput, typeof payhip.credential>;
101
71
  //#endregion
102
72
  export { payhipWebhookEventRefunded };
103
73
  //# sourceMappingURL=webhook-event-refunded.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-event-refunded.d.mts","names":[],"sources":["../../src/actions/webhook-event-refunded.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoBhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"webhook-event-refunded.d.mts","names":[],"sources":["../../src/actions/webhook-event-refunded.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA8C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoBhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/webhook-event-refunded.ts
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-event-refunded.mjs","names":[],"sources":["../../src/actions/webhook-event-refunded.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhipWebhookEventRefundedInput = z.object({\n id: z.string().describe(\"Transaction ID\"),\n type: z.string().describe(\"Event type identifier\"),\n email: z.string().describe(\"Buyer email address\"),\n items: z.array(z.object({\n on_sale: z.boolean().describe(\"Whether product was on sale\"),\n quantity: z.string().describe(\"Quantity purchased\"),\n product_id: z.string().describe(\"Unique identifier for the product\"),\n has_variant: z.boolean().describe(\"Whether product has a variant\"),\n product_key: z.string().describe(\"Product key\"),\n used_coupon: z.boolean().describe(\"Whether coupon was used\"),\n product_name: z.string().describe(\"Name of the product\"),\n product_permalink: z.string().describe(\"Product permalink URL\"),\n used_social_discount: z.boolean().describe(\"Whether social discount was used\"),\n promoted_by_affiliate: z.boolean().describe(\"Whether purchase was promoted by an affiliate\"),\n used_upgrade_discount: z.boolean().describe(\"Whether upgrade discount was used\"),\n used_cross_sell_discount: z.boolean().describe(\"Whether cross-sell discount was used\"),\n}).passthrough().describe(\"Details of an item in the refunded event\")).describe(\"List of items included in the transaction\"),\n price: z.number().int().describe(\"Original price in cents or pennies\"),\n is_gift: z.boolean().describe(\"Whether purchase was a gift\"),\n currency: z.string().describe(\"ISO 4217 currency code, e.g., USD\"),\n signature: z.string().describe(\"HMAC SHA-256 signature of the payload using your API key\"),\n ip_address: z.string().describe(\"IP address of the buyer\"),\n payhip_fee: z.number().int().describe(\"Payhip fee in cents\"),\n stripe_fee: z.number().int().describe(\"Stripe fee in cents\"),\n vat_applied: z.boolean().describe(\"Whether VAT was applied\"),\n date_created: z.number().int().describe(\"Unix timestamp when transaction was created\"),\n payment_type: z.string().describe(\"Payment method used, e.g., card\"),\n date_refunded: z.number().int().describe(\"Unix timestamp when refund occurred\"),\n amount_refunded: z.number().int().describe(\"Amount refunded in cents or pennies\"),\n unconsented_from_emails: z.boolean().describe(\"Whether buyer did not consent to marketing emails\"),\n}).describe(\"Request model for Payhip refunded webhook event.\");\nconst PayhipWebhookEventRefunded_PayhipWebhookEventRefundedItemSchema = z.object({\n on_sale: z.boolean().describe(\"Whether product was on sale\").nullable(),\n quantity: z.string().describe(\"Quantity purchased\").nullable(),\n product_id: z.string().describe(\"Unique identifier for the product\").nullable(),\n has_variant: z.boolean().describe(\"Whether product has a variant\").nullable(),\n product_key: z.string().describe(\"Product key\").nullable(),\n used_coupon: z.boolean().describe(\"Whether coupon was used\").nullable(),\n product_name: z.string().describe(\"Name of the product\").nullable(),\n product_permalink: z.string().describe(\"Product permalink URL\").nullable(),\n used_social_discount: z.boolean().describe(\"Whether social discount was used\").nullable(),\n promoted_by_affiliate: z.boolean().describe(\"Whether purchase was promoted by an affiliate\").nullable(),\n used_upgrade_discount: z.boolean().describe(\"Whether upgrade discount was used\").nullable(),\n used_cross_sell_discount: z.boolean().describe(\"Whether cross-sell discount was used\").nullable(),\n}).passthrough().describe(\"Details of an item in the refunded event\");\nexport const PayhipWebhookEventRefundedOutput = z.object({\n id: z.string().nullable(),\n type: z.string().nullable(),\n email: z.string().nullable(),\n items: z.array(PayhipWebhookEventRefunded_PayhipWebhookEventRefundedItemSchema),\n price: z.number().int().nullable(),\n is_gift: z.boolean().nullable(),\n currency: z.string().nullable(),\n signature: z.string().nullable(),\n ip_address: z.string().nullable(),\n payhip_fee: z.number().int().nullable(),\n stripe_fee: z.number().int().nullable(),\n vat_applied: z.boolean().nullable(),\n date_created: z.number().int().nullable(),\n payment_type: z.string().nullable(),\n date_refunded: z.number().int().nullable(),\n amount_refunded: z.number().int().nullable(),\n unconsented_from_emails: z.boolean().nullable(),\n}).passthrough().describe(\"Response model for Payhip refunded webhook event.\");\n\nexport const payhipWebhookEventRefunded = action(\"PAYHIP_WEBHOOK_EVENT_REFUNDED\", {\n slug: \"payhip-webhook-event-refunded\",\n name: \"Webhook Event - Refunded Payment\",\n description: \"Tool to process Payhip's refunded webhook event. Use when handling a payment refund event from Payhip.\",\n input: PayhipWebhookEventRefundedInput,\n output: PayhipWebhookEventRefundedOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,IAAI,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":[],"sources":["../../src/actions/webhook-event-refunded.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhip } from \"../app\";\n\nexport const PayhipWebhookEventRefundedInput = z.object({\n id: z.string().describe(\"Transaction ID\"),\n type: z.string().describe(\"Event type identifier\"),\n email: z.string().describe(\"Buyer email address\"),\n items: z.array(z.object({\n on_sale: z.boolean().describe(\"Whether product was on sale\"),\n quantity: z.string().describe(\"Quantity purchased\"),\n product_id: z.string().describe(\"Unique identifier for the product\"),\n has_variant: z.boolean().describe(\"Whether product has a variant\"),\n product_key: z.string().describe(\"Product key\"),\n used_coupon: z.boolean().describe(\"Whether coupon was used\"),\n product_name: z.string().describe(\"Name of the product\"),\n product_permalink: z.string().describe(\"Product permalink URL\"),\n used_social_discount: z.boolean().describe(\"Whether social discount was used\"),\n promoted_by_affiliate: z.boolean().describe(\"Whether purchase was promoted by an affiliate\"),\n used_upgrade_discount: z.boolean().describe(\"Whether upgrade discount was used\"),\n used_cross_sell_discount: z.boolean().describe(\"Whether cross-sell discount was used\"),\n}).passthrough().describe(\"Details of an item in the refunded event\")).describe(\"List of items included in the transaction\"),\n price: z.number().int().describe(\"Original price in cents or pennies\"),\n is_gift: z.boolean().describe(\"Whether purchase was a gift\"),\n currency: z.string().describe(\"ISO 4217 currency code, e.g., USD\"),\n signature: z.string().describe(\"HMAC SHA-256 signature of the payload using your API key\"),\n ip_address: z.string().describe(\"IP address of the buyer\"),\n payhip_fee: z.number().int().describe(\"Payhip fee in cents\"),\n stripe_fee: z.number().int().describe(\"Stripe fee in cents\"),\n vat_applied: z.boolean().describe(\"Whether VAT was applied\"),\n date_created: z.number().int().describe(\"Unix timestamp when transaction was created\"),\n payment_type: z.string().describe(\"Payment method used, e.g., card\"),\n date_refunded: z.number().int().describe(\"Unix timestamp when refund occurred\"),\n amount_refunded: z.number().int().describe(\"Amount refunded in cents or pennies\"),\n unconsented_from_emails: z.boolean().describe(\"Whether buyer did not consent to marketing emails\"),\n}).describe(\"Request model for Payhip refunded webhook event.\");\nconst PayhipWebhookEventRefunded_PayhipWebhookEventRefundedItemSchema = z.object({\n on_sale: z.boolean().describe(\"Whether product was on sale\").nullable(),\n quantity: z.string().describe(\"Quantity purchased\").nullable(),\n product_id: z.string().describe(\"Unique identifier for the product\").nullable(),\n has_variant: z.boolean().describe(\"Whether product has a variant\").nullable(),\n product_key: z.string().describe(\"Product key\").nullable(),\n used_coupon: z.boolean().describe(\"Whether coupon was used\").nullable(),\n product_name: z.string().describe(\"Name of the product\").nullable(),\n product_permalink: z.string().describe(\"Product permalink URL\").nullable(),\n used_social_discount: z.boolean().describe(\"Whether social discount was used\").nullable(),\n promoted_by_affiliate: z.boolean().describe(\"Whether purchase was promoted by an affiliate\").nullable(),\n used_upgrade_discount: z.boolean().describe(\"Whether upgrade discount was used\").nullable(),\n used_cross_sell_discount: z.boolean().describe(\"Whether cross-sell discount was used\").nullable(),\n}).passthrough().describe(\"Details of an item in the refunded event\");\nexport const PayhipWebhookEventRefundedOutput = z.object({\n id: z.string().nullable(),\n type: z.string().nullable(),\n email: z.string().nullable(),\n items: z.array(PayhipWebhookEventRefunded_PayhipWebhookEventRefundedItemSchema),\n price: z.number().int().nullable(),\n is_gift: z.boolean().nullable(),\n currency: z.string().nullable(),\n signature: z.string().nullable(),\n ip_address: z.string().nullable(),\n payhip_fee: z.number().int().nullable(),\n stripe_fee: z.number().int().nullable(),\n vat_applied: z.boolean().nullable(),\n date_created: z.number().int().nullable(),\n payment_type: z.string().nullable(),\n date_refunded: z.number().int().nullable(),\n amount_refunded: z.number().int().nullable(),\n unconsented_from_emails: z.boolean().nullable(),\n}).passthrough().describe(\"Response model for Payhip refunded webhook event.\");\n\nexport const payhipWebhookEventRefunded: AppAction<\n typeof PayhipWebhookEventRefundedInput,\n typeof PayhipWebhookEventRefundedOutput,\n typeof payhip.credential\n> = action(\"PAYHIP_WEBHOOK_EVENT_REFUNDED\", {\n slug: \"payhip-webhook-event-refunded\",\n name: \"Webhook Event - Refunded Payment\",\n description: \"Tool to process Payhip's refunded webhook event. Use when handling a payment refund event from Payhip.\",\n input: PayhipWebhookEventRefundedInput,\n output: PayhipWebhookEventRefundedOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CACxC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAChD,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B;EAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;EAClD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACnE,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B;EACjE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;EAC9C,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,yBAAyB;EAC3D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EACvD,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EAC9D,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;EAC7E,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C;EAC3F,uBAAuB,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;EAC/E,0BAA0B,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC;CACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,CAAC,SAAS,2CAA2C;CACzH,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CACrE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,6B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SAAS;EACzC,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;EAC3C,yBAAyB,EAAE,QAAQ,CAAC,CAAC,SAAS;CAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/webhook-event-subscription-created.ts
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-event-subscription-created.cjs","names":["z","action"],"sources":["../../src/actions/webhook-event-subscription-created.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhipWebhookEventSubscriptionCreatedInput = z.object({\n type: z.string().describe(\"Event type identifier\"),\n status: z.string().describe(\"Subscription status at creation; always 'active' for this event\"),\n plan_name: z.string().describe(\"Name of the subscription plan\"),\n signature: z.string().describe(\"HMAC SHA-256 signature of the payload using your API key\"),\n customer_id: z.string().describe(\"Unique identifier for the customer\"),\n gdpr_consent: z.enum([\"Yes\", \"No\"]).describe(\"Customer's GDPR consent status\"),\n product_link: z.string().describe(\"Payhip product link identifier\"),\n product_name: z.string().describe(\"Name of the product\"),\n customer_email: z.string().nullable(),\n subscription_id: z.string().describe(\"Unique identifier for the subscription\"),\n customer_last_name: z.string().describe(\"Customer's last name\"),\n customer_first_name: z.string().describe(\"Customer's first name\"),\n date_subscription_started: z.number().int().describe(\"Unix timestamp when the subscription started\"),\n}).describe(\"Request model for Payhip subscription.created webhook event.\");\nexport const PayhipWebhookEventSubscriptionCreatedOutput = z.object({\n type: z.string().nullable(),\n status: z.string().nullable(),\n plan_name: z.string().nullable(),\n signature: z.string().nullable(),\n customer_id: z.string().nullable(),\n gdpr_consent: z.enum([\"Yes\", \"No\"]).nullable(),\n product_link: z.string().nullable(),\n product_name: z.string().nullable(),\n customer_email: z.string().nullable(),\n subscription_id: z.string().nullable(),\n customer_last_name: z.string().nullable(),\n customer_first_name: z.string().nullable(),\n date_subscription_started: z.number().int().nullable(),\n}).passthrough().describe(\"Response model for Payhip subscription.created webhook event.\");\n\nexport const payhipWebhookEventSubscriptionCreated = action(\"PAYHIP_WEBHOOK_EVENT_SUBSCRIPTION_CREATED\", {\n slug: \"payhip-webhook-event-subscription-created\",\n name: \"Webhook Event - Subscription Created\",\n description: \"Tool to process Payhip's subscription.created webhook event. Use when handling a subscription start event from Payhip.\",\n input: PayhipWebhookEventSubscriptionCreatedInput,\n output: PayhipWebhookEventSubscriptionCreatedOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC7F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACrE,cAAcA,IAAAA,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,gCAAgC;CAC7E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAClE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CACvD,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACpC,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAC7E,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAC9D,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CAChE,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;AACrG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,8CAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC5B,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACjC,cAAcA,IAAAA,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS;CAC7C,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAClC,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAClC,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACpC,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACrC,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACxC,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACzC,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;AACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,wCAAwCC,eAAAA,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"webhook-event-subscription-created.cjs","names":["z","action"],"sources":["../../src/actions/webhook-event-subscription-created.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhip } from \"../app\";\n\nexport const PayhipWebhookEventSubscriptionCreatedInput = z.object({\n type: z.string().describe(\"Event type identifier\"),\n status: z.string().describe(\"Subscription status at creation; always 'active' for this event\"),\n plan_name: z.string().describe(\"Name of the subscription plan\"),\n signature: z.string().describe(\"HMAC SHA-256 signature of the payload using your API key\"),\n customer_id: z.string().describe(\"Unique identifier for the customer\"),\n gdpr_consent: z.enum([\"Yes\", \"No\"]).describe(\"Customer's GDPR consent status\"),\n product_link: z.string().describe(\"Payhip product link identifier\"),\n product_name: z.string().describe(\"Name of the product\"),\n customer_email: z.string().nullable(),\n subscription_id: z.string().describe(\"Unique identifier for the subscription\"),\n customer_last_name: z.string().describe(\"Customer's last name\"),\n customer_first_name: z.string().describe(\"Customer's first name\"),\n date_subscription_started: z.number().int().describe(\"Unix timestamp when the subscription started\"),\n}).describe(\"Request model for Payhip subscription.created webhook event.\");\nexport const PayhipWebhookEventSubscriptionCreatedOutput = z.object({\n type: z.string().nullable(),\n status: z.string().nullable(),\n plan_name: z.string().nullable(),\n signature: z.string().nullable(),\n customer_id: z.string().nullable(),\n gdpr_consent: z.enum([\"Yes\", \"No\"]).nullable(),\n product_link: z.string().nullable(),\n product_name: z.string().nullable(),\n customer_email: z.string().nullable(),\n subscription_id: z.string().nullable(),\n customer_last_name: z.string().nullable(),\n customer_first_name: z.string().nullable(),\n date_subscription_started: z.number().int().nullable(),\n}).passthrough().describe(\"Response model for Payhip subscription.created webhook event.\");\n\nexport const payhipWebhookEventSubscriptionCreated: AppAction<\n typeof PayhipWebhookEventSubscriptionCreatedInput,\n typeof PayhipWebhookEventSubscriptionCreatedOutput,\n typeof payhip.credential\n> = action(\"PAYHIP_WEBHOOK_EVENT_SUBSCRIPTION_CREATED\", {\n slug: \"payhip-webhook-event-subscription-created\",\n name: \"Webhook Event - Subscription Created\",\n description: \"Tool to process Payhip's subscription.created webhook event. Use when handling a subscription start event from Payhip.\",\n input: PayhipWebhookEventSubscriptionCreatedInput,\n output: PayhipWebhookEventSubscriptionCreatedOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EA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AE,OAAO,CAAC,CAAC,SAAS;CAClC,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAClC,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACpC,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACrC,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACxC,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACzC,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;AACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,wCAITC,eAAAA,OAAO,6CAA6C;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { payhip } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/webhook-event-subscription-created.d.ts
@@ -37,21 +39,7 @@ declare const PayhipWebhookEventSubscriptionCreatedOutput: z.ZodObject<{
37
39
  customer_first_name: z.ZodNullable<z.ZodString>;
38
40
  date_subscription_started: z.ZodNullable<z.ZodNumber>;
39
41
  }, z.core.$loose>;
40
- declare const payhipWebhookEventSubscriptionCreated: import("@keystrokehq/action").WorkflowActionDefinition<{
41
- type: string;
42
- status: string;
43
- plan_name: string;
44
- signature: string;
45
- customer_id: string;
46
- gdpr_consent: "Yes" | "No";
47
- product_link: string;
48
- product_name: string;
49
- customer_email: string | null;
50
- subscription_id: string;
51
- customer_last_name: string;
52
- customer_first_name: string;
53
- date_subscription_started: number;
54
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
42
+ declare const payhipWebhookEventSubscriptionCreated: AppAction<typeof PayhipWebhookEventSubscriptionCreatedInput, typeof PayhipWebhookEventSubscriptionCreatedOutput, typeof payhip.credential>;
55
43
  //#endregion
56
44
  export { payhipWebhookEventSubscriptionCreated };
57
45
  //# sourceMappingURL=webhook-event-subscription-created.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-event-subscription-created.d.cts","names":[],"sources":["../../src/actions/webhook-event-subscription-created.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAe1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAgB3C,qCAAA,gCAAqC,wBAAA"}
1
+ {"version":3,"file":"webhook-event-subscription-created.d.cts","names":[],"sources":["../../src/actions/webhook-event-subscription-created.ts"],"mappings":";;;;;cAMa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAe1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAgB3C,qCAAA,EAAuC,SAAA,QAC3C,0CAAA,SACA,2CAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { payhip } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/webhook-event-subscription-created.d.ts
@@ -37,21 +39,7 @@ declare const PayhipWebhookEventSubscriptionCreatedOutput: z.ZodObject<{
37
39
  customer_first_name: z.ZodNullable<z.ZodString>;
38
40
  date_subscription_started: z.ZodNullable<z.ZodNumber>;
39
41
  }, z.core.$loose>;
40
- declare const payhipWebhookEventSubscriptionCreated: import("@keystrokehq/action").WorkflowActionDefinition<{
41
- type: string;
42
- status: string;
43
- plan_name: string;
44
- signature: string;
45
- customer_id: string;
46
- gdpr_consent: "Yes" | "No";
47
- product_link: string;
48
- product_name: string;
49
- customer_email: string | null;
50
- subscription_id: string;
51
- customer_last_name: string;
52
- customer_first_name: string;
53
- date_subscription_started: number;
54
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
42
+ declare const payhipWebhookEventSubscriptionCreated: AppAction<typeof PayhipWebhookEventSubscriptionCreatedInput, typeof PayhipWebhookEventSubscriptionCreatedOutput, typeof payhip.credential>;
55
43
  //#endregion
56
44
  export { payhipWebhookEventSubscriptionCreated };
57
45
  //# sourceMappingURL=webhook-event-subscription-created.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-event-subscription-created.d.mts","names":[],"sources":["../../src/actions/webhook-event-subscription-created.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAe1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAgB3C,qCAAA,gCAAqC,wBAAA"}
1
+ {"version":3,"file":"webhook-event-subscription-created.d.mts","names":[],"sources":["../../src/actions/webhook-event-subscription-created.ts"],"mappings":";;;;;cAMa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAe1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAgB3C,qCAAA,EAAuC,SAAA,QAC3C,0CAAA,SACA,2CAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const payhipWebhookEventSubscriptionCreated = action("PAYHIP_WEBHOOK_EVENT_SUBSCRIPTION_CREATED", {
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-event-subscription-created.mjs","names":[],"sources":["../../src/actions/webhook-event-subscription-created.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhipWebhookEventSubscriptionCreatedInput = z.object({\n type: z.string().describe(\"Event type identifier\"),\n status: z.string().describe(\"Subscription status at creation; always 'active' for this event\"),\n plan_name: z.string().describe(\"Name of the subscription plan\"),\n signature: z.string().describe(\"HMAC SHA-256 signature of the payload using your API key\"),\n customer_id: z.string().describe(\"Unique identifier for the customer\"),\n gdpr_consent: z.enum([\"Yes\", \"No\"]).describe(\"Customer's GDPR consent status\"),\n product_link: z.string().describe(\"Payhip product link identifier\"),\n product_name: z.string().describe(\"Name of the product\"),\n customer_email: z.string().nullable(),\n subscription_id: z.string().describe(\"Unique identifier for the subscription\"),\n customer_last_name: z.string().describe(\"Customer's last name\"),\n customer_first_name: z.string().describe(\"Customer's first name\"),\n date_subscription_started: z.number().int().describe(\"Unix timestamp when the subscription started\"),\n}).describe(\"Request model for Payhip subscription.created webhook event.\");\nexport const PayhipWebhookEventSubscriptionCreatedOutput = z.object({\n type: z.string().nullable(),\n status: z.string().nullable(),\n plan_name: z.string().nullable(),\n signature: z.string().nullable(),\n customer_id: z.string().nullable(),\n gdpr_consent: z.enum([\"Yes\", \"No\"]).nullable(),\n product_link: z.string().nullable(),\n product_name: z.string().nullable(),\n customer_email: z.string().nullable(),\n subscription_id: z.string().nullable(),\n customer_last_name: z.string().nullable(),\n customer_first_name: z.string().nullable(),\n date_subscription_started: z.number().int().nullable(),\n}).passthrough().describe(\"Response model for Payhip subscription.created webhook event.\");\n\nexport const payhipWebhookEventSubscriptionCreated = action(\"PAYHIP_WEBHOOK_EVENT_SUBSCRIPTION_CREATED\", {\n slug: \"payhip-webhook-event-subscription-created\",\n name: \"Webhook Event - Subscription Created\",\n description: \"Tool to process Payhip's subscription.created webhook event. Use when handling a subscription start event from Payhip.\",\n input: PayhipWebhookEventSubscriptionCreatedInput,\n output: PayhipWebhookEventSubscriptionCreatedOutput,\n});\n"],"mappings":";;AAmCA,MAAa,wCAAwC,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnCwD,EAAE,OAAO;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,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zC,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"webhook-event-subscription-created.mjs","names":[],"sources":["../../src/actions/webhook-event-subscription-created.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhip } from \"../app\";\n\nexport const PayhipWebhookEventSubscriptionCreatedInput = z.object({\n type: z.string().describe(\"Event type identifier\"),\n status: z.string().describe(\"Subscription status at creation; always 'active' for this event\"),\n plan_name: z.string().describe(\"Name of the subscription plan\"),\n signature: z.string().describe(\"HMAC SHA-256 signature of the payload using your API key\"),\n customer_id: z.string().describe(\"Unique identifier for the customer\"),\n gdpr_consent: z.enum([\"Yes\", \"No\"]).describe(\"Customer's GDPR consent status\"),\n product_link: z.string().describe(\"Payhip product link identifier\"),\n product_name: z.string().describe(\"Name of the product\"),\n customer_email: z.string().nullable(),\n subscription_id: z.string().describe(\"Unique identifier for the subscription\"),\n customer_last_name: z.string().describe(\"Customer's last name\"),\n customer_first_name: z.string().describe(\"Customer's first name\"),\n date_subscription_started: z.number().int().describe(\"Unix timestamp when the subscription started\"),\n}).describe(\"Request model for Payhip subscription.created webhook event.\");\nexport const PayhipWebhookEventSubscriptionCreatedOutput = z.object({\n type: z.string().nullable(),\n status: z.string().nullable(),\n plan_name: z.string().nullable(),\n signature: z.string().nullable(),\n customer_id: z.string().nullable(),\n gdpr_consent: z.enum([\"Yes\", \"No\"]).nullable(),\n product_link: z.string().nullable(),\n product_name: z.string().nullable(),\n customer_email: z.string().nullable(),\n subscription_id: z.string().nullable(),\n customer_last_name: z.string().nullable(),\n customer_first_name: z.string().nullable(),\n date_subscription_started: z.number().int().nullable(),\n}).passthrough().describe(\"Response model for Payhip subscription.created webhook event.\");\n\nexport const payhipWebhookEventSubscriptionCreated: AppAction<\n typeof PayhipWebhookEventSubscriptionCreatedInput,\n typeof PayhipWebhookEventSubscriptionCreatedOutput,\n typeof payhip.credential\n> = action(\"PAYHIP_WEBHOOK_EVENT_SUBSCRIPTION_CREATED\", {\n slug: \"payhip-webhook-event-subscription-created\",\n name: \"Webhook Event - Subscription Created\",\n description: \"Tool to process Payhip's subscription.created webhook event. Use when handling a subscription start event from Payhip.\",\n input: PayhipWebhookEventSubscriptionCreatedInput,\n output: PayhipWebhookEventSubscriptionCreatedOutput,\n});\n"],"mappings":";;;AAqCA,MAAa,wCAIT,OAAO,6CAA6C;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvCwD,EAAE,OAAO;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;EAC7F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC9D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EACzF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EACrE,cAAc,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,gCAAgC;EAC7E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAClE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EACvD,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS;EACpC,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EAC7E,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAC9D,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EAChE,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CACrG,CAAC,CAAC,CAAC,SAAS,8DAyBH;CACP,QAzByD,EAAE,OAAO;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;EAC1B,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS;EAC5B,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;EAC/B,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;EAC/B,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS;EACjC,cAAc,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS;EAC7C,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS;EAClC,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS;EAClC,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS;EACpC,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS;EACrC,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS;EACxC,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS;EACzC,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/webhook-event-subscription-deleted.ts
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-event-subscription-deleted.cjs","names":["z","action"],"sources":["../../src/actions/webhook-event-subscription-deleted.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhipWebhookEventSubscriptionDeletedInput = z.object({\n type: z.string().describe(\"Event type identifier\"),\n status: z.string().describe(\"Current subscription status; always 'canceled' for this event\"),\n plan_name: z.string().describe(\"Name of the subscription plan\"),\n signature: z.string().describe(\"HMAC SHA-256 signature of the payload using your API key\"),\n customer_id: z.string().describe(\"Unique identifier for the customer\"),\n gdpr_consent: z.enum([\"Yes\", \"No\"]).describe(\"Whether the customer gave GDPR consent ('Yes' or 'No')\"),\n product_link: z.string().describe(\"Payhip product link identifier\"),\n product_name: z.string().describe(\"Name of the product\"),\n customer_email: z.string().describe(\"Customer's email address\"),\n subscription_id: z.string().describe(\"Unique identifier for the subscription\"),\n customer_last_name: z.string().describe(\"Customer's last name\"),\n customer_first_name: z.string().describe(\"Customer's first name\"),\n date_subscription_deleted: z.number().int().describe(\"Unix timestamp when subscription was canceled\"),\n date_subscription_started: z.number().int().describe(\"Unix timestamp when subscription started\"),\n}).describe(\"Request model for Payhip 'subscription.deleted' webhook event.\");\nexport const PayhipWebhookEventSubscriptionDeletedOutput = z.object({\n type: z.string().nullable(),\n status: z.string().nullable(),\n plan_name: z.string().nullable(),\n signature: z.string().nullable(),\n customer_id: z.string().nullable(),\n gdpr_consent: z.enum([\"Yes\", \"No\"]).nullable(),\n product_link: z.string().nullable(),\n product_name: z.string().nullable(),\n customer_email: z.string().nullable(),\n subscription_id: z.string().nullable(),\n customer_last_name: z.string().nullable(),\n customer_first_name: z.string().nullable(),\n date_subscription_deleted: z.number().int().nullable(),\n date_subscription_started: z.number().int().nullable(),\n}).passthrough().describe(\"Response model for Payhip 'subscription.deleted' webhook event.\");\n\nexport const payhipWebhookEventSubscriptionDeleted = action(\"PAYHIP_WEBHOOK_EVENT_SUBSCRIPTION_DELETED\", {\n slug: \"payhip-webhook-event-subscription-deleted\",\n name: \"Webhook Event - Subscription Deleted\",\n description: \"Tool to process Payhip's 'subscription.deleted' webhook event. Use when handling a subscription cancellation event from Payhip.\",\n input: PayhipWebhookEventSubscriptionDeletedInput,\n output: PayhipWebhookEventSubscriptionDeletedOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC3F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS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,CAAC,SAAS;CACpC,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACrC,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACxC,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACzC,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACrD,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;AACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAE3F,MAAa,wCAAwCC,eAAAA,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"webhook-event-subscription-deleted.cjs","names":["z","action"],"sources":["../../src/actions/webhook-event-subscription-deleted.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhip } from \"../app\";\n\nexport const PayhipWebhookEventSubscriptionDeletedInput = z.object({\n type: z.string().describe(\"Event type identifier\"),\n status: z.string().describe(\"Current subscription status; always 'canceled' for this event\"),\n plan_name: z.string().describe(\"Name of the subscription plan\"),\n signature: z.string().describe(\"HMAC SHA-256 signature of the payload using your API key\"),\n customer_id: z.string().describe(\"Unique identifier for the customer\"),\n gdpr_consent: z.enum([\"Yes\", \"No\"]).describe(\"Whether the customer gave GDPR consent ('Yes' or 'No')\"),\n product_link: z.string().describe(\"Payhip product link identifier\"),\n product_name: z.string().describe(\"Name of the product\"),\n customer_email: z.string().describe(\"Customer's email address\"),\n subscription_id: z.string().describe(\"Unique identifier for the subscription\"),\n customer_last_name: z.string().describe(\"Customer's last name\"),\n customer_first_name: z.string().describe(\"Customer's first name\"),\n date_subscription_deleted: z.number().int().describe(\"Unix timestamp when subscription was canceled\"),\n date_subscription_started: z.number().int().describe(\"Unix timestamp when subscription started\"),\n}).describe(\"Request model for Payhip 'subscription.deleted' webhook event.\");\nexport const PayhipWebhookEventSubscriptionDeletedOutput = z.object({\n type: z.string().nullable(),\n status: z.string().nullable(),\n plan_name: z.string().nullable(),\n signature: z.string().nullable(),\n customer_id: z.string().nullable(),\n gdpr_consent: z.enum([\"Yes\", \"No\"]).nullable(),\n product_link: z.string().nullable(),\n product_name: z.string().nullable(),\n customer_email: z.string().nullable(),\n subscription_id: z.string().nullable(),\n customer_last_name: z.string().nullable(),\n customer_first_name: z.string().nullable(),\n date_subscription_deleted: z.number().int().nullable(),\n date_subscription_started: z.number().int().nullable(),\n}).passthrough().describe(\"Response model for Payhip 'subscription.deleted' webhook event.\");\n\nexport const payhipWebhookEventSubscriptionDeleted: AppAction<\n typeof PayhipWebhookEventSubscriptionDeletedInput,\n typeof PayhipWebhookEventSubscriptionDeletedOutput,\n typeof payhip.credential\n> = action(\"PAYHIP_WEBHOOK_EVENT_SUBSCRIPTION_DELETED\", {\n slug: \"payhip-webhook-event-subscription-deleted\",\n name: \"Webhook Event - Subscription Deleted\",\n description: \"Tool to process Payhip's 'subscription.deleted' webhook event. Use when handling a subscription cancellation event from Payhip.\",\n input: PayhipWebhookEventSubscriptionDeletedInput,\n output: PayhipWebhookEventSubscriptionDeletedOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC3F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACrE,cAAcA,IAAAA,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC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AAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CACzC,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACrD,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;AACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAE3F,MAAa,wCAITC,eAAAA,OAAO,6CAA6C;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { payhip } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/webhook-event-subscription-deleted.d.ts
@@ -39,22 +41,7 @@ declare const PayhipWebhookEventSubscriptionDeletedOutput: z.ZodObject<{
39
41
  date_subscription_deleted: z.ZodNullable<z.ZodNumber>;
40
42
  date_subscription_started: z.ZodNullable<z.ZodNumber>;
41
43
  }, z.core.$loose>;
42
- declare const payhipWebhookEventSubscriptionDeleted: import("@keystrokehq/action").WorkflowActionDefinition<{
43
- type: string;
44
- status: string;
45
- plan_name: string;
46
- signature: string;
47
- customer_id: string;
48
- gdpr_consent: "Yes" | "No";
49
- product_link: string;
50
- product_name: string;
51
- customer_email: string;
52
- subscription_id: string;
53
- customer_last_name: string;
54
- customer_first_name: string;
55
- date_subscription_deleted: number;
56
- date_subscription_started: number;
57
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
44
+ declare const payhipWebhookEventSubscriptionDeleted: AppAction<typeof PayhipWebhookEventSubscriptionDeletedInput, typeof PayhipWebhookEventSubscriptionDeletedOutput, typeof payhip.credential>;
58
45
  //#endregion
59
46
  export { payhipWebhookEventSubscriptionDeleted };
60
47
  //# sourceMappingURL=webhook-event-subscription-deleted.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-event-subscription-deleted.d.cts","names":[],"sources":["../../src/actions/webhook-event-subscription-deleted.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAgB1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAiB3C,qCAAA,gCAAqC,wBAAA"}
1
+ {"version":3,"file":"webhook-event-subscription-deleted.d.cts","names":[],"sources":["../../src/actions/webhook-event-subscription-deleted.ts"],"mappings":";;;;;cAMa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAgB1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAiB3C,qCAAA,EAAuC,SAAA,QAC3C,0CAAA,SACA,2CAAA,SACA,MAAA,CAAO,UAAA"}