@keystrokehq/piggy 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 (125) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/claim-anonymous-contact.cjs +1 -0
  4. package/dist/actions/claim-anonymous-contact.cjs.map +1 -1
  5. package/dist/actions/claim-anonymous-contact.d.cts +3 -4
  6. package/dist/actions/claim-anonymous-contact.d.cts.map +1 -1
  7. package/dist/actions/claim-anonymous-contact.d.mts +3 -4
  8. package/dist/actions/claim-anonymous-contact.d.mts.map +1 -1
  9. package/dist/actions/claim-anonymous-contact.mjs +1 -0
  10. package/dist/actions/claim-anonymous-contact.mjs.map +1 -1
  11. package/dist/actions/create-contact-attribute.cjs +1 -0
  12. package/dist/actions/create-contact-attribute.cjs.map +1 -1
  13. package/dist/actions/create-contact-attribute.d.cts +4 -12
  14. package/dist/actions/create-contact-attribute.d.cts.map +1 -1
  15. package/dist/actions/create-contact-attribute.d.mts +4 -12
  16. package/dist/actions/create-contact-attribute.d.mts.map +1 -1
  17. package/dist/actions/create-contact-attribute.mjs +1 -0
  18. package/dist/actions/create-contact-attribute.mjs.map +1 -1
  19. package/dist/actions/create-credit-reception.cjs +1 -0
  20. package/dist/actions/create-credit-reception.cjs.map +1 -1
  21. package/dist/actions/create-credit-reception.d.cts +3 -6
  22. package/dist/actions/create-credit-reception.d.cts.map +1 -1
  23. package/dist/actions/create-credit-reception.d.mts +3 -6
  24. package/dist/actions/create-credit-reception.d.mts.map +1 -1
  25. package/dist/actions/create-credit-reception.mjs +1 -0
  26. package/dist/actions/create-credit-reception.mjs.map +1 -1
  27. package/dist/actions/create-vouchers-batch.cjs +1 -0
  28. package/dist/actions/create-vouchers-batch.cjs.map +1 -1
  29. package/dist/actions/create-vouchers-batch.d.cts +3 -12
  30. package/dist/actions/create-vouchers-batch.d.cts.map +1 -1
  31. package/dist/actions/create-vouchers-batch.d.mts +3 -12
  32. package/dist/actions/create-vouchers-batch.d.mts.map +1 -1
  33. package/dist/actions/create-vouchers-batch.mjs +1 -0
  34. package/dist/actions/create-vouchers-batch.mjs.map +1 -1
  35. package/dist/actions/find-or-create-products.cjs +1 -0
  36. package/dist/actions/find-or-create-products.cjs.map +1 -1
  37. package/dist/actions/find-or-create-products.d.cts +3 -10
  38. package/dist/actions/find-or-create-products.d.cts.map +1 -1
  39. package/dist/actions/find-or-create-products.d.mts +3 -10
  40. package/dist/actions/find-or-create-products.d.mts.map +1 -1
  41. package/dist/actions/find-or-create-products.mjs +1 -0
  42. package/dist/actions/find-or-create-products.mjs.map +1 -1
  43. package/dist/actions/find-voucher-by-code.cjs +1 -0
  44. package/dist/actions/find-voucher-by-code.cjs.map +1 -1
  45. package/dist/actions/find-voucher-by-code.d.cts +3 -3
  46. package/dist/actions/find-voucher-by-code.d.cts.map +1 -1
  47. package/dist/actions/find-voucher-by-code.d.mts +3 -3
  48. package/dist/actions/find-voucher-by-code.d.mts.map +1 -1
  49. package/dist/actions/find-voucher-by-code.mjs +1 -0
  50. package/dist/actions/find-voucher-by-code.mjs.map +1 -1
  51. package/dist/actions/get-contact-auth-token.cjs +1 -0
  52. package/dist/actions/get-contact-auth-token.cjs.map +1 -1
  53. package/dist/actions/get-contact-auth-token.d.cts +3 -3
  54. package/dist/actions/get-contact-auth-token.d.cts.map +1 -1
  55. package/dist/actions/get-contact-auth-token.d.mts +3 -3
  56. package/dist/actions/get-contact-auth-token.d.mts.map +1 -1
  57. package/dist/actions/get-contact-auth-token.mjs +1 -0
  58. package/dist/actions/get-contact-auth-token.mjs.map +1 -1
  59. package/dist/actions/get-contacts-credit-balance.cjs +1 -0
  60. package/dist/actions/get-contacts-credit-balance.cjs.map +1 -1
  61. package/dist/actions/get-contacts-credit-balance.d.cts +3 -3
  62. package/dist/actions/get-contacts-credit-balance.d.cts.map +1 -1
  63. package/dist/actions/get-contacts-credit-balance.d.mts +3 -3
  64. package/dist/actions/get-contacts-credit-balance.d.mts.map +1 -1
  65. package/dist/actions/get-contacts-credit-balance.mjs +1 -0
  66. package/dist/actions/get-contacts-credit-balance.mjs.map +1 -1
  67. package/dist/actions/list-forms.cjs +1 -0
  68. package/dist/actions/list-forms.cjs.map +1 -1
  69. package/dist/actions/list-forms.d.cts +3 -1
  70. package/dist/actions/list-forms.d.cts.map +1 -1
  71. package/dist/actions/list-forms.d.mts +3 -1
  72. package/dist/actions/list-forms.d.mts.map +1 -1
  73. package/dist/actions/list-forms.mjs +1 -0
  74. package/dist/actions/list-forms.mjs.map +1 -1
  75. package/dist/actions/list-perks.cjs +1 -0
  76. package/dist/actions/list-perks.cjs.map +1 -1
  77. package/dist/actions/list-perks.d.cts +3 -1
  78. package/dist/actions/list-perks.d.cts.map +1 -1
  79. package/dist/actions/list-perks.d.mts +3 -1
  80. package/dist/actions/list-perks.d.mts.map +1 -1
  81. package/dist/actions/list-perks.mjs +1 -0
  82. package/dist/actions/list-perks.mjs.map +1 -1
  83. package/dist/actions/merge-contacts.cjs +1 -0
  84. package/dist/actions/merge-contacts.cjs.map +1 -1
  85. package/dist/actions/merge-contacts.d.cts +3 -4
  86. package/dist/actions/merge-contacts.d.cts.map +1 -1
  87. package/dist/actions/merge-contacts.d.mts +3 -4
  88. package/dist/actions/merge-contacts.d.mts.map +1 -1
  89. package/dist/actions/merge-contacts.mjs +1 -0
  90. package/dist/actions/merge-contacts.mjs.map +1 -1
  91. package/dist/actions/send-contact-verification-email.cjs +1 -0
  92. package/dist/actions/send-contact-verification-email.cjs.map +1 -1
  93. package/dist/actions/send-contact-verification-email.d.cts +3 -3
  94. package/dist/actions/send-contact-verification-email.d.cts.map +1 -1
  95. package/dist/actions/send-contact-verification-email.d.mts +3 -3
  96. package/dist/actions/send-contact-verification-email.d.mts.map +1 -1
  97. package/dist/actions/send-contact-verification-email.mjs +1 -0
  98. package/dist/actions/send-contact-verification-email.mjs.map +1 -1
  99. package/dist/actions/update-bookings.cjs +1 -0
  100. package/dist/actions/update-bookings.cjs.map +1 -1
  101. package/dist/actions/update-bookings.d.cts +3 -12
  102. package/dist/actions/update-bookings.d.cts.map +1 -1
  103. package/dist/actions/update-bookings.d.mts +3 -12
  104. package/dist/actions/update-bookings.d.mts.map +1 -1
  105. package/dist/actions/update-bookings.mjs +1 -0
  106. package/dist/actions/update-bookings.mjs.map +1 -1
  107. package/dist/actions/update-contact-identifiers.cjs +1 -0
  108. package/dist/actions/update-contact-identifiers.cjs.map +1 -1
  109. package/dist/actions/update-contact-identifiers.d.cts +3 -5
  110. package/dist/actions/update-contact-identifiers.d.cts.map +1 -1
  111. package/dist/actions/update-contact-identifiers.d.mts +3 -5
  112. package/dist/actions/update-contact-identifiers.d.mts.map +1 -1
  113. package/dist/actions/update-contact-identifiers.mjs +1 -0
  114. package/dist/actions/update-contact-identifiers.mjs.map +1 -1
  115. package/dist/app.cjs +5 -2
  116. package/dist/app.cjs.map +1 -1
  117. package/dist/app.d.cts +7 -1
  118. package/dist/app.d.cts.map +1 -1
  119. package/dist/app.d.mts +7 -1
  120. package/dist/app.d.mts.map +1 -1
  121. package/dist/app.mjs +3 -2
  122. package/dist/app.mjs.map +1 -1
  123. package/dist/index.d.cts +1 -1
  124. package/dist/index.d.mts +1 -1
  125. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"merge-contacts.mjs","names":[],"sources":["../../src/actions/merge-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyMergeContactsInput = z.object({\n source_contact_uuid: z.string().describe(\"UUID of the source contact to merge. This contact will be removed after the merge, and all its data will be transferred to the destination contact.\"),\n destination_contact_uuid: z.string().describe(\"UUID of the destination contact. This contact will remain active and receive all data from the source contact after the merge.\"),\n}).describe(\"Request model for merging two Piggy contacts.\");\nexport const PiggyMergeContactsOutput = z.object({\n data: z.array(z.string()).nullable(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty for this endpoint.\").nullable().optional(),\n}).passthrough().describe(\"Response model for merging contacts. The merge operation is queued and processed asynchronously.\");\n\nexport const piggyMergeContacts = action(\"PIGGY_MERGE_CONTACTS\", {\n slug: \"piggy-merge-contacts\",\n name: \"Merge Contacts\",\n description: \"Merges a source contact into a destination contact in Piggy's CRM. The source contact's data (attributes, balances, transactions) is transferred to the destination contact, and the source contact is removed. This operation is irreversible and processed asynchronously via a job queue. Use this when consolidating duplicate customer records.\",\n input: PiggyMergeContactsInput,\n output: PiggyMergeContactsOutput,\n});\n"],"mappings":";;AAaA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbqC,EAAE,OAAO;EAC9C,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;EAC9L,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI;CAChL,CAAC,CAAC,CAAC,SAAS,+CAUH;CACP,QAVsC,EAAE,OAAO;EAC/C,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;EACnC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kGAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"merge-contacts.mjs","names":[],"sources":["../../src/actions/merge-contacts.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\n\nexport const PiggyMergeContactsInput = z.object({\n source_contact_uuid: z.string().describe(\"UUID of the source contact to merge. This contact will be removed after the merge, and all its data will be transferred to the destination contact.\"),\n destination_contact_uuid: z.string().describe(\"UUID of the destination contact. This contact will remain active and receive all data from the source contact after the merge.\"),\n}).describe(\"Request model for merging two Piggy contacts.\");\nexport const PiggyMergeContactsOutput = z.object({\n data: z.array(z.string()).nullable(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty for this endpoint.\").nullable().optional(),\n}).passthrough().describe(\"Response model for merging contacts. The merge operation is queued and processed asynchronously.\");\n\nexport const piggyMergeContacts: AppAction<\n typeof PiggyMergeContactsInput,\n typeof PiggyMergeContactsOutput,\n typeof piggy.credential\n> = action(\"PIGGY_MERGE_CONTACTS\", {\n slug: \"piggy-merge-contacts\",\n name: \"Merge Contacts\",\n description: \"Merges a source contact into a destination contact in Piggy's CRM. The source contact's data (attributes, balances, transactions) is transferred to the destination contact, and the source contact is removed. This operation is irreversible and processed asynchronously via a job queue. Use this when consolidating duplicate customer records.\",\n input: PiggyMergeContactsInput,\n output: PiggyMergeContactsOutput,\n});\n"],"mappings":";;;AAeA,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBqC,EAAE,OAAO;EAC9C,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;EAC9L,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI;CAChL,CAAC,CAAC,CAAC,SAAS,+CAcH;CACP,QAdsC,EAAE,OAAO;EAC/C,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS;EACnC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kGAWhB;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/send-contact-verification-email.ts
@@ -1 +1 @@
1
- {"version":3,"file":"send-contact-verification-email.cjs","names":["z","action"],"sources":["../../src/actions/send-contact-verification-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggySendContactVerificationEmailInput = z.object({\n email: z.string().describe(\"Email address of the Contact to send the verification email to. The contact must already exist in the Piggy system.\"),\n}).describe(\"Request body to send a verification email to a Piggy contact.\");\nconst PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema = z.object({\n type: z.string().describe(\"Result type indicating operation status (typically 'success').\").nullable(),\n message: z.string().describe(\"Human-readable success message confirming the verification email was sent, including the recipient email address and a reminder to check spam/junk folders.\").nullable(),\n}).passthrough().describe(\"Data returned after sending a verification email.\");\nexport const PiggySendContactVerificationEmailOutput = z.object({\n data: PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Additional metadata about the response, usually empty.\"),\n}).passthrough().describe(\"Response model for sending a contact verification email.\");\n\nexport const piggySendContactVerificationEmail = action(\"PIGGY_SEND_CONTACT_VERIFICATION_EMAIL\", {\n slug: \"piggy-send-contact-verification-email\",\n name: \"Send Contact Verification Email\",\n description: \"Send a verification email to a Piggy contact for identity verification. The contact must exist in the system with a configured Contacts Portal. Returns success message with email sent confirmation. Use this when implementing email-based authentication workflows or when contacts need to verify their email address to access the Contacts Portal.\",\n input: PiggySendContactVerificationEmailInput,\n output: PiggySendContactVerificationEmailOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,EAClJ,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,2EAA2EA,IAAAA,EAAE,OAAO;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACrG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS;AACvM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAM,yEAAyE,SAAS;CACxF,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,oCAAoCC,eAAAA,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"send-contact-verification-email.cjs","names":["z","action"],"sources":["../../src/actions/send-contact-verification-email.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\n\nexport const PiggySendContactVerificationEmailInput = z.object({\n email: z.string().describe(\"Email address of the Contact to send the verification email to. The contact must already exist in the Piggy system.\"),\n}).describe(\"Request body to send a verification email to a Piggy contact.\");\nconst PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema = z.object({\n type: z.string().describe(\"Result type indicating operation status (typically 'success').\").nullable(),\n message: z.string().describe(\"Human-readable success message confirming the verification email was sent, including the recipient email address and a reminder to check spam/junk folders.\").nullable(),\n}).passthrough().describe(\"Data returned after sending a verification email.\");\nexport const PiggySendContactVerificationEmailOutput = z.object({\n data: PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Additional metadata about the response, usually empty.\"),\n}).passthrough().describe(\"Response model for sending a contact verification email.\");\n\nexport const piggySendContactVerificationEmail: AppAction<\n typeof PiggySendContactVerificationEmailInput,\n typeof PiggySendContactVerificationEmailOutput,\n typeof piggy.credential\n> = action(\"PIGGY_SEND_CONTACT_VERIFICATION_EMAIL\", {\n slug: \"piggy-send-contact-verification-email\",\n name: \"Send Contact Verification Email\",\n description: \"Send a verification email to a Piggy contact for identity verification. The contact must exist in the system with a configured Contacts Portal. Returns success message with email sent confirmation. Use this when implementing email-based authentication workflows or when contacts need to verify their email address to access the Contacts Portal.\",\n input: PiggySendContactVerificationEmailInput,\n output: PiggySendContactVerificationEmailOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,EAClJ,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,2EAA2EA,IAAAA,EAAE,OAAO;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACrG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS;AACvM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAM,yEAAyE,SAAS;CACxF,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,oCAITC,eAAAA,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { piggy } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/send-contact-verification-email.d.ts
@@ -11,9 +13,7 @@ declare const PiggySendContactVerificationEmailOutput: z.ZodObject<{
11
13
  }, z.core.$loose>>;
12
14
  meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
15
  }, z.core.$loose>;
14
- declare const piggySendContactVerificationEmail: import("@keystrokehq/action").WorkflowActionDefinition<{
15
- email: string;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ declare const piggySendContactVerificationEmail: AppAction<typeof PiggySendContactVerificationEmailInput, typeof PiggySendContactVerificationEmailOutput, typeof piggy.credential>;
17
17
  //#endregion
18
18
  export { piggySendContactVerificationEmail };
19
19
  //# sourceMappingURL=send-contact-verification-email.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-contact-verification-email.d.cts","names":[],"sources":["../../src/actions/send-contact-verification-email.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cAOtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;cAKvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"send-contact-verification-email.d.cts","names":[],"sources":["../../src/actions/send-contact-verification-email.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cAOtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;cAKvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { piggy } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/send-contact-verification-email.d.ts
@@ -11,9 +13,7 @@ declare const PiggySendContactVerificationEmailOutput: z.ZodObject<{
11
13
  }, z.core.$loose>>;
12
14
  meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
15
  }, z.core.$loose>;
14
- declare const piggySendContactVerificationEmail: import("@keystrokehq/action").WorkflowActionDefinition<{
15
- email: string;
16
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ declare const piggySendContactVerificationEmail: AppAction<typeof PiggySendContactVerificationEmailInput, typeof PiggySendContactVerificationEmailOutput, typeof piggy.credential>;
17
17
  //#endregion
18
18
  export { piggySendContactVerificationEmail };
19
19
  //# sourceMappingURL=send-contact-verification-email.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-contact-verification-email.d.mts","names":[],"sources":["../../src/actions/send-contact-verification-email.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cAOtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;cAKvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"send-contact-verification-email.d.mts","names":[],"sources":["../../src/actions/send-contact-verification-email.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cAOtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;cAKvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,KAAA,CAAM,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/send-contact-verification-email.ts
@@ -1 +1 @@
1
- {"version":3,"file":"send-contact-verification-email.mjs","names":[],"sources":["../../src/actions/send-contact-verification-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggySendContactVerificationEmailInput = z.object({\n email: z.string().describe(\"Email address of the Contact to send the verification email to. The contact must already exist in the Piggy system.\"),\n}).describe(\"Request body to send a verification email to a Piggy contact.\");\nconst PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema = z.object({\n type: z.string().describe(\"Result type indicating operation status (typically 'success').\").nullable(),\n message: z.string().describe(\"Human-readable success message confirming the verification email was sent, including the recipient email address and a reminder to check spam/junk folders.\").nullable(),\n}).passthrough().describe(\"Data returned after sending a verification email.\");\nexport const PiggySendContactVerificationEmailOutput = z.object({\n data: PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Additional metadata about the response, usually empty.\"),\n}).passthrough().describe(\"Response model for sending a contact verification email.\");\n\nexport const piggySendContactVerificationEmail = action(\"PIGGY_SEND_CONTACT_VERIFICATION_EMAIL\", {\n slug: \"piggy-send-contact-verification-email\",\n name: \"Send Contact Verification Email\",\n description: \"Send a verification email to a Piggy contact for identity verification. The contact must exist in the system with a configured Contacts Portal. Returns success message with email sent confirmation. Use this when implementing email-based authentication workflows or when contacts need to verify their email address to access the Contacts Portal.\",\n input: PiggySendContactVerificationEmailInput,\n output: PiggySendContactVerificationEmailOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyC,EAAE,OAAO,EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,EAClJ,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,2EAA2E,EAAE,OAAO;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACrG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS;AACvM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAM7E,MAAa,oCAAoC,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqD,EAAE,OAAO;EAC9D,MAAM,yEAAyE,SAAS;EACxF,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wDAAwD;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"send-contact-verification-email.mjs","names":[],"sources":["../../src/actions/send-contact-verification-email.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\n\nexport const PiggySendContactVerificationEmailInput = z.object({\n email: z.string().describe(\"Email address of the Contact to send the verification email to. The contact must already exist in the Piggy system.\"),\n}).describe(\"Request body to send a verification email to a Piggy contact.\");\nconst PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema = z.object({\n type: z.string().describe(\"Result type indicating operation status (typically 'success').\").nullable(),\n message: z.string().describe(\"Human-readable success message confirming the verification email was sent, including the recipient email address and a reminder to check spam/junk folders.\").nullable(),\n}).passthrough().describe(\"Data returned after sending a verification email.\");\nexport const PiggySendContactVerificationEmailOutput = z.object({\n data: PiggySendContactVerificationEmail_SendContactVerificationEmailDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Additional metadata about the response, usually empty.\"),\n}).passthrough().describe(\"Response model for sending a contact verification email.\");\n\nexport const piggySendContactVerificationEmail: AppAction<\n typeof PiggySendContactVerificationEmailInput,\n typeof PiggySendContactVerificationEmailOutput,\n typeof piggy.credential\n> = action(\"PIGGY_SEND_CONTACT_VERIFICATION_EMAIL\", {\n slug: \"piggy-send-contact-verification-email\",\n name: \"Send Contact Verification Email\",\n description: \"Send a verification email to a Piggy contact for identity verification. The contact must exist in the system with a configured Contacts Portal. Returns success message with email sent confirmation. Use this when implementing email-based authentication workflows or when contacts need to verify their email address to access the Contacts Portal.\",\n input: PiggySendContactVerificationEmailInput,\n output: PiggySendContactVerificationEmailOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yCAAyC,EAAE,OAAO,EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,EAClJ,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,2EAA2E,EAAE,OAAO;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACrG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS;AACvM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAM7E,MAAa,oCAIT,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdqD,EAAE,OAAO;EAC9D,MAAM,yEAAyE,SAAS;EACxF,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wDAAwD;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAWhB;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/update-bookings.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-bookings.cjs","names":["z","action"],"sources":["../../src/actions/update-bookings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyUpdateBookingsInput = z.object({\n source: z.string().describe(\"Source from where the Booking was created\").optional(),\n status: z.enum([\"created\", \"in_progress\", \"canceled\", \"completed\"]).describe(\"Booking status values.\").optional(),\n ends_at: z.string().describe(\"The end date and time of the Booking in ISO 8601 format\").optional(),\n starts_at: z.string().describe(\"The start date and time of the Booking in ISO 8601 format\").optional(),\n external_id: z.string().describe(\"External identifier for the Booking\").optional(),\n booking_uuid: z.string().describe(\"The UUID of the Booking to update\"),\n company_name: z.string().describe(\"Company name associated with the booking\").optional(),\n checked_in_at: z.string().describe(\"The date and time when the party checked into the booking in ISO 8601 format\").optional(),\n prepaid_amount: z.number().int().describe(\"Amount prepaid (in cents) prior to booking start\").optional(),\n number_of_people: z.number().int().describe(\"Party size for the booking\").optional(),\n}).describe(\"Request schema for updating a booking.\");\nexport const PiggyUpdateBookingsOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Updated booking data\"),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]),\n}).passthrough().describe(\"Response schema for updating a booking.\");\n\nexport const piggyUpdateBookings = action(\"PIGGY_UPDATE_BOOKINGS\", {\n slug: \"piggy-update-bookings\",\n name: \"Update Bookings\",\n description: \"Tool to update an existing booking in Piggy. Use when you need to modify booking details such as party size, status, or company name. Note: Shop and contact cannot be updated after creation.\",\n input: PiggyUpdateBookingsInput,\n output: PiggyUpdateBookingsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAe;EAAY;CAAW,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACjG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACrE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC5H,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB;CACvE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-bookings.cjs","names":["z","action"],"sources":["../../src/actions/update-bookings.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\n\nexport const PiggyUpdateBookingsInput = z.object({\n source: z.string().describe(\"Source from where the Booking was created\").optional(),\n status: z.enum([\"created\", \"in_progress\", \"canceled\", \"completed\"]).describe(\"Booking status values.\").optional(),\n ends_at: z.string().describe(\"The end date and time of the Booking in ISO 8601 format\").optional(),\n starts_at: z.string().describe(\"The start date and time of the Booking in ISO 8601 format\").optional(),\n external_id: z.string().describe(\"External identifier for the Booking\").optional(),\n booking_uuid: z.string().describe(\"The UUID of the Booking to update\"),\n company_name: z.string().describe(\"Company name associated with the booking\").optional(),\n checked_in_at: z.string().describe(\"The date and time when the party checked into the booking in ISO 8601 format\").optional(),\n prepaid_amount: z.number().int().describe(\"Amount prepaid (in cents) prior to booking start\").optional(),\n number_of_people: z.number().int().describe(\"Party size for the booking\").optional(),\n}).describe(\"Request schema for updating a booking.\");\nexport const PiggyUpdateBookingsOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Updated booking data\"),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]),\n}).passthrough().describe(\"Response schema for updating a booking.\");\n\nexport const piggyUpdateBookings: AppAction<\n typeof PiggyUpdateBookingsInput,\n typeof PiggyUpdateBookingsOutput,\n typeof piggy.credential\n> = action(\"PIGGY_UPDATE_BOOKINGS\", {\n slug: \"piggy-update-bookings\",\n name: \"Update Bookings\",\n description: \"Tool to update an existing booking in Piggy. Use when you need to modify booking details such as party size, status, or company name. Note: Shop and contact cannot be updated after creation.\",\n input: PiggyUpdateBookingsInput,\n output: PiggyUpdateBookingsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAe;EAAY;CAAW,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACjG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACrE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC5H,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB;CACvE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { piggy } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-bookings.d.ts
@@ -22,18 +24,7 @@ declare const PiggyUpdateBookingsOutput: z.ZodObject<{
22
24
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23
25
  meta: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
24
26
  }, z.core.$loose>;
25
- declare const piggyUpdateBookings: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- booking_uuid: string;
27
- source?: string | undefined;
28
- status?: "created" | "in_progress" | "canceled" | "completed" | undefined;
29
- ends_at?: string | undefined;
30
- starts_at?: string | undefined;
31
- external_id?: string | undefined;
32
- company_name?: string | undefined;
33
- checked_in_at?: string | undefined;
34
- prepaid_amount?: number | undefined;
35
- number_of_people?: number | undefined;
36
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
27
+ declare const piggyUpdateBookings: AppAction<typeof PiggyUpdateBookingsInput, typeof PiggyUpdateBookingsOutput, typeof piggy.credential>;
37
28
  //#endregion
38
29
  export { piggyUpdateBookings };
39
30
  //# sourceMappingURL=update-bookings.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-bookings.d.cts","names":[],"sources":["../../src/actions/update-bookings.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAYxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"update-bookings.d.cts","names":[],"sources":["../../src/actions/update-bookings.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAYxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { piggy } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-bookings.d.ts
@@ -22,18 +24,7 @@ declare const PiggyUpdateBookingsOutput: z.ZodObject<{
22
24
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23
25
  meta: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
24
26
  }, z.core.$loose>;
25
- declare const piggyUpdateBookings: import("@keystrokehq/action").WorkflowActionDefinition<{
26
- booking_uuid: string;
27
- source?: string | undefined;
28
- status?: "created" | "in_progress" | "canceled" | "completed" | undefined;
29
- ends_at?: string | undefined;
30
- starts_at?: string | undefined;
31
- external_id?: string | undefined;
32
- company_name?: string | undefined;
33
- checked_in_at?: string | undefined;
34
- prepaid_amount?: number | undefined;
35
- number_of_people?: number | undefined;
36
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
27
+ declare const piggyUpdateBookings: AppAction<typeof PiggyUpdateBookingsInput, typeof PiggyUpdateBookingsOutput, typeof piggy.credential>;
37
28
  //#endregion
38
29
  export { piggyUpdateBookings };
39
30
  //# sourceMappingURL=update-bookings.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-bookings.d.mts","names":[],"sources":["../../src/actions/update-bookings.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAYxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"update-bookings.d.mts","names":[],"sources":["../../src/actions/update-bookings.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAYxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,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 piggyUpdateBookings = action("PIGGY_UPDATE_BOOKINGS", {
@@ -1 +1 @@
1
- {"version":3,"file":"update-bookings.mjs","names":[],"sources":["../../src/actions/update-bookings.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyUpdateBookingsInput = z.object({\n source: z.string().describe(\"Source from where the Booking was created\").optional(),\n status: z.enum([\"created\", \"in_progress\", \"canceled\", \"completed\"]).describe(\"Booking status values.\").optional(),\n ends_at: z.string().describe(\"The end date and time of the Booking in ISO 8601 format\").optional(),\n starts_at: z.string().describe(\"The start date and time of the Booking in ISO 8601 format\").optional(),\n external_id: z.string().describe(\"External identifier for the Booking\").optional(),\n booking_uuid: z.string().describe(\"The UUID of the Booking to update\"),\n company_name: z.string().describe(\"Company name associated with the booking\").optional(),\n checked_in_at: z.string().describe(\"The date and time when the party checked into the booking in ISO 8601 format\").optional(),\n prepaid_amount: z.number().int().describe(\"Amount prepaid (in cents) prior to booking start\").optional(),\n number_of_people: z.number().int().describe(\"Party size for the booking\").optional(),\n}).describe(\"Request schema for updating a booking.\");\nexport const PiggyUpdateBookingsOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Updated booking data\"),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]),\n}).passthrough().describe(\"Response schema for updating a booking.\");\n\nexport const piggyUpdateBookings = action(\"PIGGY_UPDATE_BOOKINGS\", {\n slug: \"piggy-update-bookings\",\n name: \"Update Bookings\",\n description: \"Tool to update an existing booking in Piggy. Use when you need to modify booking details such as party size, status, or company name. Note: Shop and contact cannot be updated after creation.\",\n input: PiggyUpdateBookingsInput,\n output: PiggyUpdateBookingsOutput,\n});\n"],"mappings":";;AAqBA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBsC,EAAE,OAAO;EAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,QAAQ,EAAE,KAAK;GAAC;GAAW;GAAe;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAChH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACjG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACrE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EAC5H,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACvG,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,SAAS,wCAUH;CACP,QAVuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB;EACvE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-bookings.mjs","names":[],"sources":["../../src/actions/update-bookings.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\n\nexport const PiggyUpdateBookingsInput = z.object({\n source: z.string().describe(\"Source from where the Booking was created\").optional(),\n status: z.enum([\"created\", \"in_progress\", \"canceled\", \"completed\"]).describe(\"Booking status values.\").optional(),\n ends_at: z.string().describe(\"The end date and time of the Booking in ISO 8601 format\").optional(),\n starts_at: z.string().describe(\"The start date and time of the Booking in ISO 8601 format\").optional(),\n external_id: z.string().describe(\"External identifier for the Booking\").optional(),\n booking_uuid: z.string().describe(\"The UUID of the Booking to update\"),\n company_name: z.string().describe(\"Company name associated with the booking\").optional(),\n checked_in_at: z.string().describe(\"The date and time when the party checked into the booking in ISO 8601 format\").optional(),\n prepaid_amount: z.number().int().describe(\"Amount prepaid (in cents) prior to booking start\").optional(),\n number_of_people: z.number().int().describe(\"Party size for the booking\").optional(),\n}).describe(\"Request schema for updating a booking.\");\nexport const PiggyUpdateBookingsOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Updated booking data\"),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]),\n}).passthrough().describe(\"Response schema for updating a booking.\");\n\nexport const piggyUpdateBookings: AppAction<\n typeof PiggyUpdateBookingsInput,\n typeof PiggyUpdateBookingsOutput,\n typeof piggy.credential\n> = action(\"PIGGY_UPDATE_BOOKINGS\", {\n slug: \"piggy-update-bookings\",\n name: \"Update Bookings\",\n description: \"Tool to update an existing booking in Piggy. Use when you need to modify booking details such as party size, status, or company name. Note: Shop and contact cannot be updated after creation.\",\n input: PiggyUpdateBookingsInput,\n output: PiggyUpdateBookingsOutput,\n});\n"],"mappings":";;;AAuBA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBsC,EAAE,OAAO;EAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,QAAQ,EAAE,KAAK;GAAC;GAAW;GAAe;GAAY;EAAW,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAChH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACjG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACrE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EAC5H,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACvG,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,SAAS,wCAcH;CACP,QAduC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB;EACvE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;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/update-contact-identifiers.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact-identifiers.cjs","names":["z","action"],"sources":["../../src/actions/update-contact-identifiers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyUpdateContactIdentifiersInput = z.object({\n contact_identifier_name: z.string().describe(\"Display name of the contact identifier. Use this to update the human-readable label.\").optional(),\n contact_identifier_value: z.string().describe(\"The unique value of the contact identifier to update. This is the identifier of the contact identifier record itself.\"),\n contact_identifier_active: z.boolean().describe(\"Active state of the contact identifier. Set to false to deactivate, true to activate.\").optional(),\n}).describe(\"Request body to update a contact identifier in Piggy.\");\nconst PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema = z.object({\n name: z.string().describe(\"Display name of the contact identifier\").nullable().optional(),\n value: z.string().describe(\"The unique value of the contact identifier\").nullable(),\n active: z.boolean().describe(\"Active state of the contact identifier\").nullable(),\n contact: z.record(z.string(), z.unknown()).describe(\"Associated contact information (if linked)\").nullable().optional(),\n \"default\": z.boolean().describe(\"Whether this is the default contact identifier\").nullable(),\n}).passthrough().describe(\"Data returned after updating a contact identifier.\");\nexport const PiggyUpdateContactIdentifiersOutput = z.object({\n data: PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema.nullable(),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]),\n}).passthrough().describe(\"Response model for updating contact identifiers.\");\n\nexport const piggyUpdateContactIdentifiers = action(\"PIGGY_UPDATE_CONTACT_IDENTIFIERS\", {\n slug: \"piggy-update-contact-identifiers\",\n name: \"Update Contact Identifiers\",\n description: \"Tool to update a contact identifier in Piggy. Use when you need to modify the display name or active state of an existing contact identifier. Only the name and active properties can be updated; the identifier value itself cannot be changed.\",\n input: PiggyUpdateContactIdentifiersInput,\n output: PiggyUpdateContactIdentifiersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC9I,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;CACrK,2BAA2BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,4DAA4DA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAM,0DAA0D,SAAS;CACzE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-contact-identifiers.cjs","names":["z","action"],"sources":["../../src/actions/update-contact-identifiers.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\n\nexport const PiggyUpdateContactIdentifiersInput = z.object({\n contact_identifier_name: z.string().describe(\"Display name of the contact identifier. Use this to update the human-readable label.\").optional(),\n contact_identifier_value: z.string().describe(\"The unique value of the contact identifier to update. This is the identifier of the contact identifier record itself.\"),\n contact_identifier_active: z.boolean().describe(\"Active state of the contact identifier. Set to false to deactivate, true to activate.\").optional(),\n}).describe(\"Request body to update a contact identifier in Piggy.\");\nconst PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema = z.object({\n name: z.string().describe(\"Display name of the contact identifier\").nullable().optional(),\n value: z.string().describe(\"The unique value of the contact identifier\").nullable(),\n active: z.boolean().describe(\"Active state of the contact identifier\").nullable(),\n contact: z.record(z.string(), z.unknown()).describe(\"Associated contact information (if linked)\").nullable().optional(),\n \"default\": z.boolean().describe(\"Whether this is the default contact identifier\").nullable(),\n}).passthrough().describe(\"Data returned after updating a contact identifier.\");\nexport const PiggyUpdateContactIdentifiersOutput = z.object({\n data: PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema.nullable(),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]),\n}).passthrough().describe(\"Response model for updating contact identifiers.\");\n\nexport const piggyUpdateContactIdentifiers: AppAction<\n typeof PiggyUpdateContactIdentifiersInput,\n typeof PiggyUpdateContactIdentifiersOutput,\n typeof piggy.credential\n> = action(\"PIGGY_UPDATE_CONTACT_IDENTIFIERS\", {\n slug: \"piggy-update-contact-identifiers\",\n name: \"Update Contact Identifiers\",\n description: \"Tool to update a contact identifier in Piggy. Use when you need to modify the display name or active state of an existing contact identifier. Only the name and active properties can be updated; the identifier value itself cannot be changed.\",\n input: PiggyUpdateContactIdentifiersInput,\n output: PiggyUpdateContactIdentifiersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC9I,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;CACrK,2BAA2BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,4DAA4DA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAM,0DAA0D,SAAS;CACzE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,gCAITC,eAAAA,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { piggy } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-contact-identifiers.d.ts
@@ -16,11 +18,7 @@ declare const PiggyUpdateContactIdentifiersOutput: z.ZodObject<{
16
18
  }, z.core.$loose>>;
17
19
  meta: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
18
20
  }, z.core.$loose>;
19
- declare const piggyUpdateContactIdentifiers: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- contact_identifier_value: string;
21
- contact_identifier_name?: string | undefined;
22
- contact_identifier_active?: boolean | undefined;
23
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const piggyUpdateContactIdentifiers: AppAction<typeof PiggyUpdateContactIdentifiersInput, typeof PiggyUpdateContactIdentifiersOutput, typeof piggy.credential>;
24
22
  //#endregion
25
23
  export { piggyUpdateContactIdentifiers };
26
24
  //# sourceMappingURL=update-contact-identifiers.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact-identifiers.d.cts","names":[],"sources":["../../src/actions/update-contact-identifiers.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAYlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;cAKnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"update-contact-identifiers.d.cts","names":[],"sources":["../../src/actions/update-contact-identifiers.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAYlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;cAKnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { piggy } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-contact-identifiers.d.ts
@@ -16,11 +18,7 @@ declare const PiggyUpdateContactIdentifiersOutput: z.ZodObject<{
16
18
  }, z.core.$loose>>;
17
19
  meta: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>;
18
20
  }, z.core.$loose>;
19
- declare const piggyUpdateContactIdentifiers: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- contact_identifier_value: string;
21
- contact_identifier_name?: string | undefined;
22
- contact_identifier_active?: boolean | undefined;
23
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const piggyUpdateContactIdentifiers: AppAction<typeof PiggyUpdateContactIdentifiersInput, typeof PiggyUpdateContactIdentifiersOutput, typeof piggy.credential>;
24
22
  //#endregion
25
23
  export { piggyUpdateContactIdentifiers };
26
24
  //# sourceMappingURL=update-contact-identifiers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact-identifiers.d.mts","names":[],"sources":["../../src/actions/update-contact-identifiers.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAYlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;cAKnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"update-contact-identifiers.d.mts","names":[],"sources":["../../src/actions/update-contact-identifiers.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAYlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;cAKnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,KAAA,CAAM,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/update-contact-identifiers.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-contact-identifiers.mjs","names":[],"sources":["../../src/actions/update-contact-identifiers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyUpdateContactIdentifiersInput = z.object({\n contact_identifier_name: z.string().describe(\"Display name of the contact identifier. Use this to update the human-readable label.\").optional(),\n contact_identifier_value: z.string().describe(\"The unique value of the contact identifier to update. This is the identifier of the contact identifier record itself.\"),\n contact_identifier_active: z.boolean().describe(\"Active state of the contact identifier. Set to false to deactivate, true to activate.\").optional(),\n}).describe(\"Request body to update a contact identifier in Piggy.\");\nconst PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema = z.object({\n name: z.string().describe(\"Display name of the contact identifier\").nullable().optional(),\n value: z.string().describe(\"The unique value of the contact identifier\").nullable(),\n active: z.boolean().describe(\"Active state of the contact identifier\").nullable(),\n contact: z.record(z.string(), z.unknown()).describe(\"Associated contact information (if linked)\").nullable().optional(),\n \"default\": z.boolean().describe(\"Whether this is the default contact identifier\").nullable(),\n}).passthrough().describe(\"Data returned after updating a contact identifier.\");\nexport const PiggyUpdateContactIdentifiersOutput = z.object({\n data: PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema.nullable(),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]),\n}).passthrough().describe(\"Response model for updating contact identifiers.\");\n\nexport const piggyUpdateContactIdentifiers = action(\"PIGGY_UPDATE_CONTACT_IDENTIFIERS\", {\n slug: \"piggy-update-contact-identifiers\",\n name: \"Update Contact Identifiers\",\n description: \"Tool to update a contact identifier in Piggy. Use when you need to modify the display name or active state of an existing contact identifier. Only the name and active properties can be updated; the identifier value itself cannot be changed.\",\n input: PiggyUpdateContactIdentifiersInput,\n output: PiggyUpdateContactIdentifiersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC9I,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;CACrK,2BAA2B,EAAE,QAAQ,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,4DAA4D,EAAE,OAAO;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAM9E,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAViD,EAAE,OAAO;EAC1D,MAAM,0DAA0D,SAAS;EACzE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-contact-identifiers.mjs","names":[],"sources":["../../src/actions/update-contact-identifiers.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { piggy } from \"../app\";\n\nexport const PiggyUpdateContactIdentifiersInput = z.object({\n contact_identifier_name: z.string().describe(\"Display name of the contact identifier. Use this to update the human-readable label.\").optional(),\n contact_identifier_value: z.string().describe(\"The unique value of the contact identifier to update. This is the identifier of the contact identifier record itself.\"),\n contact_identifier_active: z.boolean().describe(\"Active state of the contact identifier. Set to false to deactivate, true to activate.\").optional(),\n}).describe(\"Request body to update a contact identifier in Piggy.\");\nconst PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema = z.object({\n name: z.string().describe(\"Display name of the contact identifier\").nullable().optional(),\n value: z.string().describe(\"The unique value of the contact identifier\").nullable(),\n active: z.boolean().describe(\"Active state of the contact identifier\").nullable(),\n contact: z.record(z.string(), z.unknown()).describe(\"Associated contact information (if linked)\").nullable().optional(),\n \"default\": z.boolean().describe(\"Whether this is the default contact identifier\").nullable(),\n}).passthrough().describe(\"Data returned after updating a contact identifier.\");\nexport const PiggyUpdateContactIdentifiersOutput = z.object({\n data: PiggyUpdateContactIdentifiers_ContactIdentifierDataSchema.nullable(),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]),\n}).passthrough().describe(\"Response model for updating contact identifiers.\");\n\nexport const piggyUpdateContactIdentifiers: AppAction<\n typeof PiggyUpdateContactIdentifiersInput,\n typeof PiggyUpdateContactIdentifiersOutput,\n typeof piggy.credential\n> = action(\"PIGGY_UPDATE_CONTACT_IDENTIFIERS\", {\n slug: \"piggy-update-contact-identifiers\",\n name: \"Update Contact Identifiers\",\n description: \"Tool to update a contact identifier in Piggy. Use when you need to modify the display name or active state of an existing contact identifier. Only the name and active properties can be updated; the identifier value itself cannot be changed.\",\n input: PiggyUpdateContactIdentifiersInput,\n output: PiggyUpdateContactIdentifiersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqC,EAAE,OAAO;CACzD,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC9I,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;CACrK,2BAA2B,EAAE,QAAQ,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,4DAA4D,EAAE,OAAO;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAM9E,MAAa,gCAIT,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdiD,EAAE,OAAO;EAC1D,MAAM,0DAA0D,SAAS;EACzE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,7 +1,10 @@
1
+ let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
1
2
  //#region src/app.ts
2
- const piggy = (0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
+ const piggy = (0, _keystrokehq_keystroke_app.defineApp)({
3
5
  slug: "piggy",
4
- auth: "keystroke"
6
+ auth: "keystroke",
7
+ credential
5
8
  });
6
9
  //#endregion
7
10
  exports.piggy = piggy;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const piggy = defineApp({\n slug: \"piggy\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,SAAA,uCAAA,CAAA,CAAA,UAAA,CAAkB;CAC7B,MAAM;CACN,MAAM;AACR,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 piggy: KeystrokeApp<\"piggy\", typeof credential> = defineApp({\n slug: \"piggy\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,SAAA,GAAA,2BAAA,UAAA,CAA4D;CACvE,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,5 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const piggy: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ };
8
+ declare const piggy: KeystrokeApp<"piggy", typeof credential>;
3
9
  //#endregion
4
10
  export { piggy };
5
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,KAAA,6BAAK,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,KAAA,EAAO,YAAY,iBAAiB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,5 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const piggy: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ };
8
+ declare const piggy: KeystrokeApp<"piggy", typeof credential>;
3
9
  //#endregion
4
10
  export { piggy };
5
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,KAAA,6BAAK,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,KAAA,EAAO,YAAY,iBAAiB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
- //#region src/app.ts
2
+ import { z } from "zod";
3
3
  const piggy = defineApp({
4
4
  slug: "piggy",
5
- auth: "keystroke"
5
+ auth: "keystroke",
6
+ credential: { generic_api_key: z.string() }
6
7
  });
7
8
  //#endregion
8
9
  export { piggy };
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\";\n\nexport const piggy = defineApp({\n slug: \"piggy\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,QAAQ,UAAU;CAC7B,MAAM;CACN,MAAM;AACR,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 piggy: KeystrokeApp<\"piggy\", typeof credential> = defineApp({\n slug: \"piggy\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,QAAkD,UAAU;CACvE,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { piggy } from "./app.cjs";
1
2
  import { piggyClaimAnonymousContact } from "./actions/claim-anonymous-contact.cjs";
2
3
  import { piggyCreateContactAttribute } from "./actions/create-contact-attribute.cjs";
3
4
  import { piggyCreateCreditReception } from "./actions/create-credit-reception.cjs";
@@ -12,6 +13,5 @@ import { piggyMergeContacts } from "./actions/merge-contacts.cjs";
12
13
  import { piggySendContactVerificationEmail } from "./actions/send-contact-verification-email.cjs";
13
14
  import { piggyUpdateBookings } from "./actions/update-bookings.cjs";
14
15
  import { piggyUpdateContactIdentifiers } from "./actions/update-contact-identifiers.cjs";
15
- import { piggy } from "./app.cjs";
16
16
  import { piggyCatalog } from "./catalog.cjs";
17
17
  export { piggy, piggyCatalog, piggyClaimAnonymousContact, piggyCreateContactAttribute, piggyCreateCreditReception, piggyCreateVouchersBatch, piggyFindOrCreateProducts, piggyFindVoucherByCode, piggyGetContactAuthToken, piggyGetContactsCreditBalance, piggyListForms, piggyListPerks, piggyMergeContacts, piggySendContactVerificationEmail, piggyUpdateBookings, piggyUpdateContactIdentifiers };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { piggy } from "./app.mjs";
1
2
  import { piggyClaimAnonymousContact } from "./actions/claim-anonymous-contact.mjs";
2
3
  import { piggyCreateContactAttribute } from "./actions/create-contact-attribute.mjs";
3
4
  import { piggyCreateCreditReception } from "./actions/create-credit-reception.mjs";
@@ -12,6 +13,5 @@ import { piggyMergeContacts } from "./actions/merge-contacts.mjs";
12
13
  import { piggySendContactVerificationEmail } from "./actions/send-contact-verification-email.mjs";
13
14
  import { piggyUpdateBookings } from "./actions/update-bookings.mjs";
14
15
  import { piggyUpdateContactIdentifiers } from "./actions/update-contact-identifiers.mjs";
15
- import { piggy } from "./app.mjs";
16
16
  import { piggyCatalog } from "./catalog.mjs";
17
17
  export { piggy, piggyCatalog, piggyClaimAnonymousContact, piggyCreateContactAttribute, piggyCreateCreditReception, piggyCreateVouchersBatch, piggyFindOrCreateProducts, piggyFindVoucherByCode, piggyGetContactAuthToken, piggyGetContactsCreditBalance, piggyListForms, piggyListPerks, piggyMergeContacts, piggySendContactVerificationEmail, piggyUpdateBookings, piggyUpdateContactIdentifiers };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/piggy",
3
- "version": "0.1.4",
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": {