@keystrokehq/payhip 0.1.5 → 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 -22
  6. package/dist/actions/create-coupon.d.cts.map +1 -1
  7. package/dist/actions/create-coupon.d.mts +3 -22
  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 -15
  14. package/dist/actions/delete-coupon.d.cts.map +1 -1
  15. package/dist/actions/delete-coupon.d.mts +3 -15
  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 -15
  22. package/dist/actions/get-coupon.d.cts.map +1 -1
  23. package/dist/actions/get-coupon.d.mts +3 -15
  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 -20
  30. package/dist/actions/update-coupon.d.cts.map +1 -1
  31. package/dist/actions/update-coupon.d.mts +3 -20
  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 -15
  38. package/dist/actions/verify-coupon.d.cts.map +1 -1
  39. package/dist/actions/verify-coupon.d.mts +3 -15
  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 -43
  46. package/dist/actions/webhook-event-paid.d.cts.map +1 -1
  47. package/dist/actions/webhook-event-paid.d.mts +3 -43
  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 -45
  54. package/dist/actions/webhook-event-refunded.d.cts.map +1 -1
  55. package/dist/actions/webhook-event-refunded.d.mts +3 -45
  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 -27
  62. package/dist/actions/webhook-event-subscription-created.d.cts.map +1 -1
  63. package/dist/actions/webhook-event-subscription-created.d.mts +3 -27
  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 -28
  70. package/dist/actions/webhook-event-subscription-deleted.d.cts.map +1 -1
  71. package/dist/actions/webhook-event-subscription-deleted.d.mts +3 -28
  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 +2 -2
  76. package/dist/app.cjs.map +1 -1
  77. package/dist/app.d.cts +4 -6
  78. package/dist/app.d.cts.map +1 -1
  79. package/dist/app.d.mts +4 -6
  80. package/dist/app.d.mts.map +1 -1
  81. package/dist/app.mjs +0 -1
  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,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,33 +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<"payhip", z.ZodObject<{
55
- connectionId: z.ZodString;
56
- entityId: z.ZodString;
57
- instanceId: z.ZodString;
58
- }, z.core.$strip>, z.ZodObject<{
59
- generic_api_key: z.ZodString;
60
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhip", z.ZodObject<{
61
- connectionId: z.ZodString;
62
- entityId: z.ZodString;
63
- instanceId: z.ZodString;
64
- }, z.core.$strip>, z.ZodObject<{
65
- generic_api_key: z.ZodString;
66
- }, z.core.$strip>>]>;
42
+ declare const payhipWebhookEventSubscriptionCreated: AppAction<typeof PayhipWebhookEventSubscriptionCreatedInput, typeof PayhipWebhookEventSubscriptionCreatedOutput, typeof payhip.credential>;
67
43
  //#endregion
68
44
  export { payhipWebhookEventSubscriptionCreated };
69
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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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,+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,CAA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K,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;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;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AAC,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;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,34 +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<"payhip", z.ZodObject<{
58
- connectionId: z.ZodString;
59
- entityId: z.ZodString;
60
- instanceId: z.ZodString;
61
- }, z.core.$strip>, z.ZodObject<{
62
- generic_api_key: z.ZodString;
63
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhip", z.ZodObject<{
64
- connectionId: z.ZodString;
65
- entityId: z.ZodString;
66
- instanceId: z.ZodString;
67
- }, z.core.$strip>, z.ZodObject<{
68
- generic_api_key: z.ZodString;
69
- }, z.core.$strip>>]>;
44
+ declare const payhipWebhookEventSubscriptionDeleted: AppAction<typeof PayhipWebhookEventSubscriptionDeletedInput, typeof PayhipWebhookEventSubscriptionDeletedOutput, typeof payhip.credential>;
70
45
  //#endregion
71
46
  export { payhipWebhookEventSubscriptionDeleted };
72
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"}
@@ -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-deleted.d.ts
@@ -39,34 +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<"payhip", z.ZodObject<{
58
- connectionId: z.ZodString;
59
- entityId: z.ZodString;
60
- instanceId: z.ZodString;
61
- }, z.core.$strip>, z.ZodObject<{
62
- generic_api_key: z.ZodString;
63
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhip", z.ZodObject<{
64
- connectionId: z.ZodString;
65
- entityId: z.ZodString;
66
- instanceId: z.ZodString;
67
- }, z.core.$strip>, z.ZodObject<{
68
- generic_api_key: z.ZodString;
69
- }, z.core.$strip>>]>;
44
+ declare const payhipWebhookEventSubscriptionDeleted: AppAction<typeof PayhipWebhookEventSubscriptionDeletedInput, typeof PayhipWebhookEventSubscriptionDeletedOutput, typeof payhip.credential>;
70
45
  //#endregion
71
46
  export { payhipWebhookEventSubscriptionDeleted };
72
47
  //# sourceMappingURL=webhook-event-subscription-deleted.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-event-subscription-deleted.d.mts","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.mts","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"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const payhipWebhookEventSubscriptionDeleted = action("PAYHIP_WEBHOOK_EVENT_SUBSCRIPTION_DELETED", {
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-event-subscription-deleted.mjs","names":[],"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":";;AAqCA,MAAa,wCAAwC,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArCwD,EAAE,OAAO;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;EAC3F,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,wDAAwD;EACrG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAClE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EACvD,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EAC9D,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,+CAA+C;EACpG,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CACjG,CAAC,CAAC,CAAC,SAAS,gEAsBH;CACP,QAtByD,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;EACrD,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"webhook-event-subscription-deleted.mjs","names":[],"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":";;;AAuCA,MAAa,wCAIT,OAAO,6CAA6C;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzCwD,EAAE,OAAO;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;EAC3F,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,wDAAwD;EACrG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAClE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EACvD,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EAC9D,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,+CAA+C;EACpG,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CACjG,CAAC,CAAC,CAAC,SAAS,gEA0BH;CACP,QA1ByD,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;EACrD,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;CACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAWhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
- let zod = require("zod");
3
2
  //#region src/app.ts
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
4
  const payhip = (0, _keystrokehq_keystroke_app.defineApp)({
5
5
  slug: "payhip",
6
6
  auth: "keystroke",
7
- credential: { generic_api_key: zod.z.string() }
7
+ credential
8
8
  });
9
9
  //#endregion
10
10
  exports.payhip = payhip;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const payhip = defineApp({\n slug: \"payhip\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,UAAA,GAAA,2BAAA,UAAA,CAAmB;CAC9B,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiBA,IAAAA,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const payhip: KeystrokeApp<\"payhip\", typeof credential> = defineApp({\n slug: \"payhip\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,UAAA,GAAA,2BAAA,UAAA,CAA8D;CACzE,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const payhip: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"payhip", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const payhip: KeystrokeApp<"payhip", typeof credential>;
11
9
  //#endregion
12
10
  export { payhip };
13
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,MAAA,6BAAM,GAAA,+BAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,MAAA,EAAQ,YAAY,kBAAkB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const payhip: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"payhip", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_api_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const payhip: KeystrokeApp<"payhip", typeof credential>;
11
9
  //#endregion
12
10
  export { payhip };
13
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,MAAA,6BAAM,GAAA,+BAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,MAAA,EAAQ,YAAY,kBAAkB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
2
  import { z } from "zod";
3
- //#region src/app.ts
4
3
  const payhip = defineApp({
5
4
  slug: "payhip",
6
5
  auth: "keystroke",
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const payhip = defineApp({\n slug: \"payhip\",\n auth: \"keystroke\",\n credential: {\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,SAAS,UAAU;CAC9B,MAAM;CACN,MAAM;CACN,YAAY,EACV,iBAAiB,EAAE,OAAO,EAC5B;AACF,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const payhip: KeystrokeApp<\"payhip\", typeof credential> = defineApp({\n slug: \"payhip\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,SAAoD,UAAU;CACzE,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { payhip } from "./app.cjs";
1
2
  import { payhipCreateCoupon } from "./actions/create-coupon.cjs";
2
3
  import { payhipDeleteCoupon } from "./actions/delete-coupon.cjs";
3
4
  import { payhipGetCoupon } from "./actions/get-coupon.cjs";
@@ -7,6 +8,5 @@ import { payhipWebhookEventPaid } from "./actions/webhook-event-paid.cjs";
7
8
  import { payhipWebhookEventRefunded } from "./actions/webhook-event-refunded.cjs";
8
9
  import { payhipWebhookEventSubscriptionCreated } from "./actions/webhook-event-subscription-created.cjs";
9
10
  import { payhipWebhookEventSubscriptionDeleted } from "./actions/webhook-event-subscription-deleted.cjs";
10
- import { payhip } from "./app.cjs";
11
11
  import { payhipCatalog } from "./catalog.cjs";
12
12
  export { payhip, payhipCatalog, payhipCreateCoupon, payhipDeleteCoupon, payhipGetCoupon, payhipUpdateCoupon, payhipVerifyCoupon, payhipWebhookEventPaid, payhipWebhookEventRefunded, payhipWebhookEventSubscriptionCreated, payhipWebhookEventSubscriptionDeleted };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { payhip } from "./app.mjs";
1
2
  import { payhipCreateCoupon } from "./actions/create-coupon.mjs";
2
3
  import { payhipDeleteCoupon } from "./actions/delete-coupon.mjs";
3
4
  import { payhipGetCoupon } from "./actions/get-coupon.mjs";
@@ -7,6 +8,5 @@ import { payhipWebhookEventPaid } from "./actions/webhook-event-paid.mjs";
7
8
  import { payhipWebhookEventRefunded } from "./actions/webhook-event-refunded.mjs";
8
9
  import { payhipWebhookEventSubscriptionCreated } from "./actions/webhook-event-subscription-created.mjs";
9
10
  import { payhipWebhookEventSubscriptionDeleted } from "./actions/webhook-event-subscription-deleted.mjs";
10
- import { payhip } from "./app.mjs";
11
11
  import { payhipCatalog } from "./catalog.mjs";
12
12
  export { payhip, payhipCatalog, payhipCreateCoupon, payhipDeleteCoupon, payhipGetCoupon, payhipUpdateCoupon, payhipVerifyCoupon, payhipWebhookEventPaid, payhipWebhookEventRefunded, payhipWebhookEventSubscriptionCreated, payhipWebhookEventSubscriptionDeleted };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/payhip",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {