@keystrokehq/piggy 0.1.0 → 0.1.3

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 (121) 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 +2 -2
  4. package/dist/actions/claim-anonymous-contact.cjs.map +1 -1
  5. package/dist/actions/claim-anonymous-contact.d.cts +15 -3
  6. package/dist/actions/claim-anonymous-contact.d.cts.map +1 -1
  7. package/dist/actions/claim-anonymous-contact.d.mts +15 -3
  8. package/dist/actions/claim-anonymous-contact.d.mts.map +1 -1
  9. package/dist/actions/claim-anonymous-contact.mjs +2 -2
  10. package/dist/actions/claim-anonymous-contact.mjs.map +1 -1
  11. package/dist/actions/create-contact-attribute.cjs +12 -12
  12. package/dist/actions/create-contact-attribute.cjs.map +1 -1
  13. package/dist/actions/create-contact-attribute.d.cts +60 -3
  14. package/dist/actions/create-contact-attribute.d.cts.map +1 -1
  15. package/dist/actions/create-contact-attribute.d.mts +60 -3
  16. package/dist/actions/create-contact-attribute.d.mts.map +1 -1
  17. package/dist/actions/create-contact-attribute.mjs +12 -12
  18. package/dist/actions/create-contact-attribute.mjs.map +1 -1
  19. package/dist/actions/create-credit-reception.cjs +1 -1
  20. package/dist/actions/create-credit-reception.cjs.map +1 -1
  21. package/dist/actions/create-credit-reception.d.cts +16 -3
  22. package/dist/actions/create-credit-reception.d.cts.map +1 -1
  23. package/dist/actions/create-credit-reception.d.mts +16 -3
  24. package/dist/actions/create-credit-reception.d.mts.map +1 -1
  25. package/dist/actions/create-credit-reception.mjs +1 -1
  26. package/dist/actions/create-credit-reception.mjs.map +1 -1
  27. package/dist/actions/create-vouchers-batch.cjs +8 -8
  28. package/dist/actions/create-vouchers-batch.cjs.map +1 -1
  29. package/dist/actions/create-vouchers-batch.d.cts +33 -3
  30. package/dist/actions/create-vouchers-batch.d.cts.map +1 -1
  31. package/dist/actions/create-vouchers-batch.d.mts +33 -3
  32. package/dist/actions/create-vouchers-batch.d.mts.map +1 -1
  33. package/dist/actions/create-vouchers-batch.mjs +8 -8
  34. package/dist/actions/create-vouchers-batch.mjs.map +1 -1
  35. package/dist/actions/find-or-create-products.cjs +8 -8
  36. package/dist/actions/find-or-create-products.cjs.map +1 -1
  37. package/dist/actions/find-or-create-products.d.cts +32 -3
  38. package/dist/actions/find-or-create-products.d.cts.map +1 -1
  39. package/dist/actions/find-or-create-products.d.mts +32 -3
  40. package/dist/actions/find-or-create-products.d.mts.map +1 -1
  41. package/dist/actions/find-or-create-products.mjs +8 -8
  42. package/dist/actions/find-or-create-products.mjs.map +1 -1
  43. package/dist/actions/find-voucher-by-code.cjs +8 -8
  44. package/dist/actions/find-voucher-by-code.cjs.map +1 -1
  45. package/dist/actions/find-voucher-by-code.d.cts +33 -3
  46. package/dist/actions/find-voucher-by-code.d.cts.map +1 -1
  47. package/dist/actions/find-voucher-by-code.d.mts +33 -3
  48. package/dist/actions/find-voucher-by-code.d.mts.map +1 -1
  49. package/dist/actions/find-voucher-by-code.mjs +8 -8
  50. package/dist/actions/find-voucher-by-code.mjs.map +1 -1
  51. package/dist/actions/get-contact-auth-token.cjs +2 -2
  52. package/dist/actions/get-contact-auth-token.cjs.map +1 -1
  53. package/dist/actions/get-contact-auth-token.d.cts +12 -3
  54. package/dist/actions/get-contact-auth-token.d.cts.map +1 -1
  55. package/dist/actions/get-contact-auth-token.d.mts +12 -3
  56. package/dist/actions/get-contact-auth-token.d.mts.map +1 -1
  57. package/dist/actions/get-contact-auth-token.mjs +2 -2
  58. package/dist/actions/get-contact-auth-token.mjs.map +1 -1
  59. package/dist/actions/get-contacts-credit-balance.cjs +2 -2
  60. package/dist/actions/get-contacts-credit-balance.cjs.map +1 -1
  61. package/dist/actions/get-contacts-credit-balance.d.cts +12 -3
  62. package/dist/actions/get-contacts-credit-balance.d.cts.map +1 -1
  63. package/dist/actions/get-contacts-credit-balance.d.mts +12 -3
  64. package/dist/actions/get-contacts-credit-balance.d.mts.map +1 -1
  65. package/dist/actions/get-contacts-credit-balance.mjs +2 -2
  66. package/dist/actions/get-contacts-credit-balance.mjs.map +1 -1
  67. package/dist/actions/list-forms.cjs +7 -7
  68. package/dist/actions/list-forms.cjs.map +1 -1
  69. package/dist/actions/list-forms.d.cts +12 -3
  70. package/dist/actions/list-forms.d.cts.map +1 -1
  71. package/dist/actions/list-forms.d.mts +12 -3
  72. package/dist/actions/list-forms.d.mts.map +1 -1
  73. package/dist/actions/list-forms.mjs +7 -7
  74. package/dist/actions/list-forms.mjs.map +1 -1
  75. package/dist/actions/list-perks.cjs +3 -3
  76. package/dist/actions/list-perks.cjs.map +1 -1
  77. package/dist/actions/list-perks.d.cts +12 -3
  78. package/dist/actions/list-perks.d.cts.map +1 -1
  79. package/dist/actions/list-perks.d.mts +12 -3
  80. package/dist/actions/list-perks.d.mts.map +1 -1
  81. package/dist/actions/list-perks.mjs +3 -3
  82. package/dist/actions/list-perks.mjs.map +1 -1
  83. package/dist/actions/merge-contacts.cjs +1 -1
  84. package/dist/actions/merge-contacts.cjs.map +1 -1
  85. package/dist/actions/merge-contacts.d.cts +12 -3
  86. package/dist/actions/merge-contacts.d.cts.map +1 -1
  87. package/dist/actions/merge-contacts.d.mts +12 -3
  88. package/dist/actions/merge-contacts.d.mts.map +1 -1
  89. package/dist/actions/merge-contacts.mjs +1 -1
  90. package/dist/actions/merge-contacts.mjs.map +1 -1
  91. package/dist/actions/send-contact-verification-email.cjs +4 -4
  92. package/dist/actions/send-contact-verification-email.cjs.map +1 -1
  93. package/dist/actions/send-contact-verification-email.d.cts +13 -3
  94. package/dist/actions/send-contact-verification-email.d.cts.map +1 -1
  95. package/dist/actions/send-contact-verification-email.d.mts +13 -3
  96. package/dist/actions/send-contact-verification-email.d.mts.map +1 -1
  97. package/dist/actions/send-contact-verification-email.mjs +4 -4
  98. package/dist/actions/send-contact-verification-email.mjs.map +1 -1
  99. package/dist/actions/update-bookings.cjs +1 -1
  100. package/dist/actions/update-bookings.cjs.map +1 -1
  101. package/dist/actions/update-bookings.d.cts +33 -3
  102. package/dist/actions/update-bookings.d.cts.map +1 -1
  103. package/dist/actions/update-bookings.d.mts +33 -3
  104. package/dist/actions/update-bookings.d.mts.map +1 -1
  105. package/dist/actions/update-bookings.mjs +1 -1
  106. package/dist/actions/update-bookings.mjs.map +1 -1
  107. package/dist/actions/update-contact-identifiers.cjs +5 -5
  108. package/dist/actions/update-contact-identifiers.cjs.map +1 -1
  109. package/dist/actions/update-contact-identifiers.d.cts +20 -3
  110. package/dist/actions/update-contact-identifiers.d.cts.map +1 -1
  111. package/dist/actions/update-contact-identifiers.d.mts +20 -3
  112. package/dist/actions/update-contact-identifiers.d.mts.map +1 -1
  113. package/dist/actions/update-contact-identifiers.mjs +5 -5
  114. package/dist/actions/update-contact-identifiers.mjs.map +1 -1
  115. package/dist/catalog.cjs +7 -1
  116. package/dist/catalog.cjs.map +1 -1
  117. package/dist/catalog.d.cts +8 -0
  118. package/dist/catalog.d.mts +8 -0
  119. package/dist/catalog.mjs +7 -1
  120. package/dist/catalog.mjs.map +1 -1
  121. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["piggy","executePiggyTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { piggy } from \"./app\";\nimport { executePiggyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return piggy.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePiggyTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["piggy","executePiggyTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { piggy } from \"./app\";\nimport { executePiggyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return piggy.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePiggyTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { piggy } from \"./app\";\nimport { executePiggyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return piggy.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePiggyTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { piggy } from \"./app\";\nimport { executePiggyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return piggy.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePiggyTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
@@ -8,11 +8,11 @@ const PiggyClaimAnonymousContactInput = zod.z.object({
8
8
  const PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema = zod.z.object({
9
9
  type: zod.z.string().describe("Result type indicating operation status").nullable().optional(),
10
10
  message: zod.z.string().describe("Human-readable message about the claim operation result").nullable().optional()
11
- }).describe("Data returned after claiming an anonymous contact.");
11
+ }).passthrough().describe("Data returned after claiming an anonymous contact.");
12
12
  const PiggyClaimAnonymousContactOutput = zod.z.object({
13
13
  data: PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema.nullable().optional(),
14
14
  meta: zod.z.array(zod.z.unknown()).describe("Metadata array; typically empty for this endpoint.").nullable().optional()
15
- }).describe("Response model for claiming an anonymous contact.");
15
+ }).passthrough().describe("Response model for claiming an anonymous contact.");
16
16
  const piggyClaimAnonymousContact = require_action.action("PIGGY_CLAIM_ANONYMOUS_CONTACT", {
17
17
  slug: "piggy-claim-anonymous-contact",
18
18
  name: "Claim Anonymous Contact",
@@ -1 +1 @@
1
- {"version":3,"file":"claim-anonymous-contact.cjs","names":["z","action"],"sources":["../../src/actions/claim-anonymous-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyClaimAnonymousContactInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"The real email address for the Contact that is about to be not anonymous anymore\").optional(),\n anonymous_contact_uuid: z.string().describe(\"The anonymous Contact's UUID containing the fictional email address\"),\n}).describe(\"Request model for claiming an anonymous contact.\");\nconst PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Result type indicating operation status\").nullable().optional(),\n message: z.string().describe(\"Human-readable message about the claim operation result\").nullable().optional(),\n}).describe(\"Data returned after claiming an anonymous contact.\");\nexport const PiggyClaimAnonymousContactOutput: z.ZodTypeAny = z.object({\n data: PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema.nullable().optional(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty for this endpoint.\").nullable().optional(),\n}).describe(\"Response model for claiming an anonymous contact.\");\n\nexport const piggyClaimAnonymousContact = action(\"PIGGY_CLAIM_ANONYMOUS_CONTACT\", {\n slug: \"piggy-claim-anonymous-contact\",\n name: \"Claim Anonymous Contact\",\n description: \"Tool to claim an anonymous contact by associating it with a real email address. Use when converting an anonymous contact (with a fictional email) into a verified contact with a real email address.\",\n input: PiggyClaimAnonymousContactInput,\n output: PiggyClaimAnonymousContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACxH,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACnH,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,6DAA2EA,IAAAA,EAAE,OAAO;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,MAAM,2DAA2D,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"claim-anonymous-contact.cjs","names":["z","action"],"sources":["../../src/actions/claim-anonymous-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyClaimAnonymousContactInput = z.object({\n email: z.string().describe(\"The real email address for the Contact that is about to be not anonymous anymore\").optional(),\n anonymous_contact_uuid: z.string().describe(\"The anonymous Contact's UUID containing the fictional email address\"),\n}).describe(\"Request model for claiming an anonymous contact.\");\nconst PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema = z.object({\n type: z.string().describe(\"Result type indicating operation status\").nullable().optional(),\n message: z.string().describe(\"Human-readable message about the claim operation result\").nullable().optional(),\n}).passthrough().describe(\"Data returned after claiming an anonymous contact.\");\nexport const PiggyClaimAnonymousContactOutput = z.object({\n data: PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema.nullable().optional(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty for this endpoint.\").nullable().optional(),\n}).passthrough().describe(\"Response model for claiming an anonymous contact.\");\n\nexport const piggyClaimAnonymousContact = action(\"PIGGY_CLAIM_ANONYMOUS_CONTACT\", {\n slug: \"piggy-claim-anonymous-contact\",\n name: \"Claim Anonymous Contact\",\n description: \"Tool to claim an anonymous contact by associating it with a real email address. Use when converting an anonymous contact (with a fictional email) into a verified contact with a real email address.\",\n input: PiggyClaimAnonymousContactInput,\n output: PiggyClaimAnonymousContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACxH,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACnH,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,6DAA6DA,IAAAA,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAM,2DAA2D,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/claim-anonymous-contact.d.ts
4
- declare const PiggyClaimAnonymousContactInput: z.ZodTypeAny;
5
- declare const PiggyClaimAnonymousContactOutput: z.ZodTypeAny;
6
- declare const piggyClaimAnonymousContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PiggyClaimAnonymousContactInput: z.ZodObject<{
5
+ email: z.ZodOptional<z.ZodString>;
6
+ anonymous_contact_uuid: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const PiggyClaimAnonymousContactOutput: z.ZodObject<{
9
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, z.core.$loose>>>;
13
+ meta: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
14
+ }, z.core.$loose>;
15
+ declare const piggyClaimAnonymousContact: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ anonymous_contact_uuid: string;
17
+ email?: string | undefined;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { piggyClaimAnonymousContact };
9
21
  //# sourceMappingURL=claim-anonymous-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"claim-anonymous-contact.d.cts","names":[],"sources":["../../src/actions/claim-anonymous-contact.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAGe;AAAA,cAKlD,gCAAA,EAAkC,CAAA,CAAE,UAGe;AAAA,cAEnD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"claim-anonymous-contact.d.cts","names":[],"sources":["../../src/actions/claim-anonymous-contact.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/claim-anonymous-contact.d.ts
4
- declare const PiggyClaimAnonymousContactInput: z.ZodTypeAny;
5
- declare const PiggyClaimAnonymousContactOutput: z.ZodTypeAny;
6
- declare const piggyClaimAnonymousContact: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PiggyClaimAnonymousContactInput: z.ZodObject<{
5
+ email: z.ZodOptional<z.ZodString>;
6
+ anonymous_contact_uuid: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const PiggyClaimAnonymousContactOutput: z.ZodObject<{
9
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, z.core.$loose>>>;
13
+ meta: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
14
+ }, z.core.$loose>;
15
+ declare const piggyClaimAnonymousContact: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ anonymous_contact_uuid: string;
17
+ email?: string | undefined;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { piggyClaimAnonymousContact };
9
21
  //# sourceMappingURL=claim-anonymous-contact.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"claim-anonymous-contact.d.mts","names":[],"sources":["../../src/actions/claim-anonymous-contact.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAGe;AAAA,cAKlD,gCAAA,EAAkC,CAAA,CAAE,UAGe;AAAA,cAEnD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"claim-anonymous-contact.d.mts","names":[],"sources":["../../src/actions/claim-anonymous-contact.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
@@ -8,7 +8,7 @@ const PiggyClaimAnonymousContactInput = z.object({
8
8
  const PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema = z.object({
9
9
  type: z.string().describe("Result type indicating operation status").nullable().optional(),
10
10
  message: z.string().describe("Human-readable message about the claim operation result").nullable().optional()
11
- }).describe("Data returned after claiming an anonymous contact.");
11
+ }).passthrough().describe("Data returned after claiming an anonymous contact.");
12
12
  const piggyClaimAnonymousContact = action("PIGGY_CLAIM_ANONYMOUS_CONTACT", {
13
13
  slug: "piggy-claim-anonymous-contact",
14
14
  name: "Claim Anonymous Contact",
@@ -17,7 +17,7 @@ const piggyClaimAnonymousContact = action("PIGGY_CLAIM_ANONYMOUS_CONTACT", {
17
17
  output: z.object({
18
18
  data: PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema.nullable().optional(),
19
19
  meta: z.array(z.unknown()).describe("Metadata array; typically empty for this endpoint.").nullable().optional()
20
- }).describe("Response model for claiming an anonymous contact.")
20
+ }).passthrough().describe("Response model for claiming an anonymous contact.")
21
21
  });
22
22
  //#endregion
23
23
  export { piggyClaimAnonymousContact };
@@ -1 +1 @@
1
- {"version":3,"file":"claim-anonymous-contact.mjs","names":[],"sources":["../../src/actions/claim-anonymous-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyClaimAnonymousContactInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"The real email address for the Contact that is about to be not anonymous anymore\").optional(),\n anonymous_contact_uuid: z.string().describe(\"The anonymous Contact's UUID containing the fictional email address\"),\n}).describe(\"Request model for claiming an anonymous contact.\");\nconst PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Result type indicating operation status\").nullable().optional(),\n message: z.string().describe(\"Human-readable message about the claim operation result\").nullable().optional(),\n}).describe(\"Data returned after claiming an anonymous contact.\");\nexport const PiggyClaimAnonymousContactOutput: z.ZodTypeAny = z.object({\n data: PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema.nullable().optional(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty for this endpoint.\").nullable().optional(),\n}).describe(\"Response model for claiming an anonymous contact.\");\n\nexport const piggyClaimAnonymousContact = action(\"PIGGY_CLAIM_ANONYMOUS_CONTACT\", {\n slug: \"piggy-claim-anonymous-contact\",\n name: \"Claim Anonymous Contact\",\n description: \"Tool to claim an anonymous contact by associating it with a real email address. Use when converting an anonymous contact (with a fictional email) into a verified contact with a real email address.\",\n input: PiggyClaimAnonymousContactInput,\n output: PiggyClaimAnonymousContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACxH,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACnH,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,6DAA2E,EAAE,OAAO;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAMhE,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4D,EAAE,OAAO;EACrE,MAAM,2DAA2D,SAAS,CAAC,CAAC,SAAS;EACrF,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"claim-anonymous-contact.mjs","names":[],"sources":["../../src/actions/claim-anonymous-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyClaimAnonymousContactInput = z.object({\n email: z.string().describe(\"The real email address for the Contact that is about to be not anonymous anymore\").optional(),\n anonymous_contact_uuid: z.string().describe(\"The anonymous Contact's UUID containing the fictional email address\"),\n}).describe(\"Request model for claiming an anonymous contact.\");\nconst PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema = z.object({\n type: z.string().describe(\"Result type indicating operation status\").nullable().optional(),\n message: z.string().describe(\"Human-readable message about the claim operation result\").nullable().optional(),\n}).passthrough().describe(\"Data returned after claiming an anonymous contact.\");\nexport const PiggyClaimAnonymousContactOutput = z.object({\n data: PiggyClaimAnonymousContact_ClaimAnonymousContactDataSchema.nullable().optional(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty for this endpoint.\").nullable().optional(),\n}).passthrough().describe(\"Response model for claiming an anonymous contact.\");\n\nexport const piggyClaimAnonymousContact = action(\"PIGGY_CLAIM_ANONYMOUS_CONTACT\", {\n slug: \"piggy-claim-anonymous-contact\",\n name: \"Claim Anonymous Contact\",\n description: \"Tool to claim an anonymous contact by associating it with a real email address. Use when converting an anonymous contact (with a fictional email) into a verified contact with a real email address.\",\n input: PiggyClaimAnonymousContactInput,\n output: PiggyClaimAnonymousContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CACxH,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACnH,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,6DAA6D,EAAE,OAAO;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAM9E,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV8C,EAAE,OAAO;EACvD,MAAM,2DAA2D,SAAS,CAAC,CAAC,SAAS;EACrF,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
@@ -7,7 +7,7 @@ const PiggyCreateContactAttributeInput = zod.z.object({
7
7
  options: zod.z.array(zod.z.object({
8
8
  label: zod.z.string().describe("Option label for select or multi_select types"),
9
9
  value: zod.z.string().describe("Option value for select or multi_select types")
10
- })).describe("List of options for select or multi_select types. Each option has label and value").optional(),
10
+ }).passthrough()).describe("List of options for select or multi_select types. Each option has label and value").optional(),
11
11
  data_type: zod.z.enum([
12
12
  "url",
13
13
  "text",
@@ -34,24 +34,24 @@ const PiggyCreateContactAttributeInput = zod.z.object({
34
34
  description: zod.z.string().describe("Human-readable description of the Contact Attribute").optional()
35
35
  });
36
36
  const PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema = zod.z.object({
37
- label: zod.z.string().describe("Option label"),
38
- value: zod.z.string().describe("Option value")
39
- });
37
+ label: zod.z.string().describe("Option label").nullable(),
38
+ value: zod.z.string().describe("Option value").nullable()
39
+ }).passthrough();
40
40
  const PiggyCreateContactAttribute_ContactAttributeDataSchema = zod.z.object({
41
- name: zod.z.string().describe("Internal name of the attribute"),
42
- type: zod.z.string().describe("Attribute data type"),
41
+ name: zod.z.string().describe("Internal name of the attribute").nullable(),
42
+ type: zod.z.string().describe("Attribute data type").nullable(),
43
43
  label: zod.z.string().describe("Display label of the attribute").nullable().optional(),
44
44
  options: zod.z.array(PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema).describe("Available options for select or multi_select types").nullable().optional(),
45
- field_type: zod.z.string().describe("Field rendering type in UI"),
45
+ field_type: zod.z.string().describe("Field rendering type in UI").nullable(),
46
46
  description: zod.z.string().describe("Description of the attribute").nullable().optional(),
47
- is_piggy_defined: zod.z.boolean().describe("True if attribute is defined by Piggy"),
48
- is_hard_read_only: zod.z.boolean().describe("Indicates if attribute is hard read-only"),
49
- is_soft_read_only: zod.z.boolean().describe("Indicates if attribute is soft read-only")
50
- });
47
+ is_piggy_defined: zod.z.boolean().describe("True if attribute is defined by Piggy").nullable(),
48
+ is_hard_read_only: zod.z.boolean().describe("Indicates if attribute is hard read-only").nullable(),
49
+ is_soft_read_only: zod.z.boolean().describe("Indicates if attribute is soft read-only").nullable()
50
+ }).passthrough();
51
51
  const PiggyCreateContactAttributeOutput = zod.z.object({
52
52
  data: PiggyCreateContactAttribute_ContactAttributeDataSchema.nullable(),
53
53
  meta: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata about the response")
54
- });
54
+ }).passthrough();
55
55
  const piggyCreateContactAttribute = require_action.action("PIGGY_CREATE_CONTACT_ATTRIBUTE", {
56
56
  slug: "piggy-create-contact-attribute",
57
57
  name: "Create Contact Attribute",
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact-attribute.cjs","names":["z","action"],"sources":["../../src/actions/create-contact-attribute.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateContactAttributeInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Unique internal identifier for the Contact Attribute\"),\n label: z.string().describe(\"Display label for the Contact Attribute\").optional(),\n options: z.array(z.object({\n label: z.string().describe(\"Option label for select or multi_select types\"),\n value: z.string().describe(\"Option value for select or multi_select types\"),\n})).describe(\"List of options for select or multi_select types. Each option has label and value\").optional(),\n data_type: z.enum([\"url\", \"text\", \"date\", \"phone\", \"float\", \"color\", \"email\", \"number\", \"select\", \"boolean\", \"rich_text\", \"date_time\", \"long_text\", \"date_range\", \"time_range\", \"identifier\", \"birth_date\", \"file_upload\", \"media_upload\", \"multi_select\", \"license_plate\"]).describe(\"Data type of the attribute. Determines how values are validated and rendered\"),\n description: z.string().describe(\"Human-readable description of the Contact Attribute\").optional(),\n});\nconst PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema: z.ZodTypeAny = z.object({\n label: z.string().describe(\"Option label\"),\n value: z.string().describe(\"Option value\"),\n});\nconst PiggyCreateContactAttribute_ContactAttributeDataSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Internal name of the attribute\"),\n type: z.string().describe(\"Attribute data type\"),\n label: z.string().describe(\"Display label of the attribute\").nullable().optional(),\n options: z.array(PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema).describe(\"Available options for select or multi_select types\").nullable().optional(),\n field_type: z.string().describe(\"Field rendering type in UI\"),\n description: z.string().describe(\"Description of the attribute\").nullable().optional(),\n is_piggy_defined: z.boolean().describe(\"True if attribute is defined by Piggy\"),\n is_hard_read_only: z.boolean().describe(\"Indicates if attribute is hard read-only\"),\n is_soft_read_only: z.boolean().describe(\"Indicates if attribute is soft read-only\"),\n});\nexport const PiggyCreateContactAttributeOutput: z.ZodTypeAny = z.object({\n data: PiggyCreateContactAttribute_ContactAttributeDataSchema.nullable(),\n meta: z.record(z.string(), z.unknown()).describe(\"Metadata about the response\"),\n});\n\nexport const piggyCreateContactAttribute = action(\"PIGGY_CREATE_CONTACT_ATTRIBUTE\", {\n slug: \"piggy-create-contact-attribute\",\n name: \"Create Contact Attribute\",\n description: \"Tool to create a custom Contact Attribute. Use when you need to define new fields for contacts after initial setup.\",\n input: PiggyCreateContactAttributeInput,\n output: PiggyCreateContactAttributeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC5E,CAAC,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACzG,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;EAAQ;EAAS;EAAS;EAAS;EAAS;EAAU;EAAU;EAAW;EAAa;EAAa;EAAa;EAAc;EAAc;EAAc;EAAc;EAAe;EAAgB;EAAgB;CAAe,CAAC,CAAC,CAAC,SAAS,8EAA8E;CACpW,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACnG,CAAC;AACD,MAAM,mEAAiFA,IAAAA,EAAE,OAAO;CAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACzC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;AAC3C,CAAC;AACD,MAAM,yDAAuEA,IAAAA,EAAE,OAAO;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,MAAM,gEAAgE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtK,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CAC5D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;CAC9E,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;CAClF,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;AACpF,CAAC;AACD,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,MAAM,uDAAuD,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6BAA6B;AAChF,CAAC;AAED,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-contact-attribute.cjs","names":["z","action"],"sources":["../../src/actions/create-contact-attribute.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateContactAttributeInput = z.object({\n name: z.string().describe(\"Unique internal identifier for the Contact Attribute\"),\n label: z.string().describe(\"Display label for the Contact Attribute\").optional(),\n options: z.array(z.object({\n label: z.string().describe(\"Option label for select or multi_select types\"),\n value: z.string().describe(\"Option value for select or multi_select types\"),\n}).passthrough()).describe(\"List of options for select or multi_select types. Each option has label and value\").optional(),\n data_type: z.enum([\"url\", \"text\", \"date\", \"phone\", \"float\", \"color\", \"email\", \"number\", \"select\", \"boolean\", \"rich_text\", \"date_time\", \"long_text\", \"date_range\", \"time_range\", \"identifier\", \"birth_date\", \"file_upload\", \"media_upload\", \"multi_select\", \"license_plate\"]).describe(\"Data type of the attribute. Determines how values are validated and rendered\"),\n description: z.string().describe(\"Human-readable description of the Contact Attribute\").optional(),\n});\nconst PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema = z.object({\n label: z.string().describe(\"Option label\").nullable(),\n value: z.string().describe(\"Option value\").nullable(),\n}).passthrough();\nconst PiggyCreateContactAttribute_ContactAttributeDataSchema = z.object({\n name: z.string().describe(\"Internal name of the attribute\").nullable(),\n type: z.string().describe(\"Attribute data type\").nullable(),\n label: z.string().describe(\"Display label of the attribute\").nullable().optional(),\n options: z.array(PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema).describe(\"Available options for select or multi_select types\").nullable().optional(),\n field_type: z.string().describe(\"Field rendering type in UI\").nullable(),\n description: z.string().describe(\"Description of the attribute\").nullable().optional(),\n is_piggy_defined: z.boolean().describe(\"True if attribute is defined by Piggy\").nullable(),\n is_hard_read_only: z.boolean().describe(\"Indicates if attribute is hard read-only\").nullable(),\n is_soft_read_only: z.boolean().describe(\"Indicates if attribute is soft read-only\").nullable(),\n}).passthrough();\nexport const PiggyCreateContactAttributeOutput = z.object({\n data: PiggyCreateContactAttribute_ContactAttributeDataSchema.nullable(),\n meta: z.record(z.string(), z.unknown()).describe(\"Metadata about the response\"),\n}).passthrough();\n\nexport const piggyCreateContactAttribute = action(\"PIGGY_CREATE_CONTACT_ATTRIBUTE\", {\n slug: \"piggy-create-contact-attribute\",\n name: \"Create Contact Attribute\",\n description: \"Tool to create a custom Contact Attribute. Use when you need to define new fields for contacts after initial setup.\",\n input: PiggyCreateContactAttributeInput,\n output: PiggyCreateContactAttributeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACvH,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;EAAQ;EAAS;EAAS;EAAS;EAAS;EAAU;EAAU;EAAW;EAAa;EAAa;EAAa;EAAc;EAAc;EAAc;EAAc;EAAe;EAAgB;EAAgB;CAAe,CAAC,CAAC,CAAC,SAAS,8EAA8E;CACpW,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACnG,CAAC;AACD,MAAM,mEAAmEA,IAAAA,EAAE,OAAO;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;AACtD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yDAAyDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,MAAM,gEAAgE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtK,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACzF,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7F,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAM,uDAAuD,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6BAA6B;AAChF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,66 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-contact-attribute.d.ts
4
- declare const PiggyCreateContactAttributeInput: z.ZodTypeAny;
5
- declare const PiggyCreateContactAttributeOutput: z.ZodTypeAny;
6
- declare const piggyCreateContactAttribute: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PiggyCreateContactAttributeInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ label: z.ZodOptional<z.ZodString>;
7
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
8
+ label: z.ZodString;
9
+ value: z.ZodString;
10
+ }, z.core.$loose>>>;
11
+ data_type: z.ZodEnum<{
12
+ number: "number";
13
+ boolean: "boolean";
14
+ date: "date";
15
+ email: "email";
16
+ url: "url";
17
+ text: "text";
18
+ phone: "phone";
19
+ float: "float";
20
+ color: "color";
21
+ select: "select";
22
+ rich_text: "rich_text";
23
+ date_time: "date_time";
24
+ long_text: "long_text";
25
+ date_range: "date_range";
26
+ time_range: "time_range";
27
+ identifier: "identifier";
28
+ birth_date: "birth_date";
29
+ file_upload: "file_upload";
30
+ media_upload: "media_upload";
31
+ multi_select: "multi_select";
32
+ license_plate: "license_plate";
33
+ }>;
34
+ description: z.ZodOptional<z.ZodString>;
35
+ }, z.core.$strip>;
36
+ declare const PiggyCreateContactAttributeOutput: z.ZodObject<{
37
+ data: z.ZodNullable<z.ZodObject<{
38
+ name: z.ZodNullable<z.ZodString>;
39
+ type: z.ZodNullable<z.ZodString>;
40
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
42
+ label: z.ZodNullable<z.ZodString>;
43
+ value: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$loose>>>>;
45
+ field_type: z.ZodNullable<z.ZodString>;
46
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ is_piggy_defined: z.ZodNullable<z.ZodBoolean>;
48
+ is_hard_read_only: z.ZodNullable<z.ZodBoolean>;
49
+ is_soft_read_only: z.ZodNullable<z.ZodBoolean>;
50
+ }, z.core.$loose>>;
51
+ meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
52
+ }, z.core.$loose>;
53
+ declare const piggyCreateContactAttribute: import("@keystrokehq/action").WorkflowActionDefinition<{
54
+ name: string;
55
+ data_type: "number" | "boolean" | "date" | "email" | "url" | "text" | "phone" | "float" | "color" | "select" | "rich_text" | "date_time" | "long_text" | "date_range" | "time_range" | "identifier" | "birth_date" | "file_upload" | "media_upload" | "multi_select" | "license_plate";
56
+ label?: string | undefined;
57
+ options?: {
58
+ [x: string]: unknown;
59
+ label: string;
60
+ value: string;
61
+ }[] | undefined;
62
+ description?: string | undefined;
63
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
64
  //#endregion
8
65
  export { piggyCreateContactAttribute };
9
66
  //# sourceMappingURL=create-contact-attribute.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact-attribute.d.cts","names":[],"sources":["../../src/actions/create-contact-attribute.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAS/C;AAAA,cAgBW,iCAAA,EAAmC,CAAA,CAAE,UAGhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-contact-attribute.d.cts","names":[],"sources":["../../src/actions/create-contact-attribute.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKjC,2BAAA,gCAA2B,wBAAA"}
@@ -1,9 +1,66 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-contact-attribute.d.ts
4
- declare const PiggyCreateContactAttributeInput: z.ZodTypeAny;
5
- declare const PiggyCreateContactAttributeOutput: z.ZodTypeAny;
6
- declare const piggyCreateContactAttribute: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PiggyCreateContactAttributeInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ label: z.ZodOptional<z.ZodString>;
7
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
8
+ label: z.ZodString;
9
+ value: z.ZodString;
10
+ }, z.core.$loose>>>;
11
+ data_type: z.ZodEnum<{
12
+ number: "number";
13
+ boolean: "boolean";
14
+ date: "date";
15
+ email: "email";
16
+ url: "url";
17
+ text: "text";
18
+ phone: "phone";
19
+ float: "float";
20
+ color: "color";
21
+ select: "select";
22
+ rich_text: "rich_text";
23
+ date_time: "date_time";
24
+ long_text: "long_text";
25
+ date_range: "date_range";
26
+ time_range: "time_range";
27
+ identifier: "identifier";
28
+ birth_date: "birth_date";
29
+ file_upload: "file_upload";
30
+ media_upload: "media_upload";
31
+ multi_select: "multi_select";
32
+ license_plate: "license_plate";
33
+ }>;
34
+ description: z.ZodOptional<z.ZodString>;
35
+ }, z.core.$strip>;
36
+ declare const PiggyCreateContactAttributeOutput: z.ZodObject<{
37
+ data: z.ZodNullable<z.ZodObject<{
38
+ name: z.ZodNullable<z.ZodString>;
39
+ type: z.ZodNullable<z.ZodString>;
40
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
42
+ label: z.ZodNullable<z.ZodString>;
43
+ value: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$loose>>>>;
45
+ field_type: z.ZodNullable<z.ZodString>;
46
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ is_piggy_defined: z.ZodNullable<z.ZodBoolean>;
48
+ is_hard_read_only: z.ZodNullable<z.ZodBoolean>;
49
+ is_soft_read_only: z.ZodNullable<z.ZodBoolean>;
50
+ }, z.core.$loose>>;
51
+ meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
52
+ }, z.core.$loose>;
53
+ declare const piggyCreateContactAttribute: import("@keystrokehq/action").WorkflowActionDefinition<{
54
+ name: string;
55
+ data_type: "number" | "boolean" | "date" | "email" | "url" | "text" | "phone" | "float" | "color" | "select" | "rich_text" | "date_time" | "long_text" | "date_range" | "time_range" | "identifier" | "birth_date" | "file_upload" | "media_upload" | "multi_select" | "license_plate";
56
+ label?: string | undefined;
57
+ options?: {
58
+ [x: string]: unknown;
59
+ label: string;
60
+ value: string;
61
+ }[] | undefined;
62
+ description?: string | undefined;
63
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
64
  //#endregion
8
65
  export { piggyCreateContactAttribute };
9
66
  //# sourceMappingURL=create-contact-attribute.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact-attribute.d.mts","names":[],"sources":["../../src/actions/create-contact-attribute.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAS/C;AAAA,cAgBW,iCAAA,EAAmC,CAAA,CAAE,UAGhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-contact-attribute.d.mts","names":[],"sources":["../../src/actions/create-contact-attribute.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAKjC,2BAAA,gCAA2B,wBAAA"}
@@ -7,7 +7,7 @@ const PiggyCreateContactAttributeInput = z.object({
7
7
  options: z.array(z.object({
8
8
  label: z.string().describe("Option label for select or multi_select types"),
9
9
  value: z.string().describe("Option value for select or multi_select types")
10
- })).describe("List of options for select or multi_select types. Each option has label and value").optional(),
10
+ }).passthrough()).describe("List of options for select or multi_select types. Each option has label and value").optional(),
11
11
  data_type: z.enum([
12
12
  "url",
13
13
  "text",
@@ -34,20 +34,20 @@ const PiggyCreateContactAttributeInput = z.object({
34
34
  description: z.string().describe("Human-readable description of the Contact Attribute").optional()
35
35
  });
36
36
  const PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema = z.object({
37
- label: z.string().describe("Option label"),
38
- value: z.string().describe("Option value")
39
- });
37
+ label: z.string().describe("Option label").nullable(),
38
+ value: z.string().describe("Option value").nullable()
39
+ }).passthrough();
40
40
  const PiggyCreateContactAttribute_ContactAttributeDataSchema = z.object({
41
- name: z.string().describe("Internal name of the attribute"),
42
- type: z.string().describe("Attribute data type"),
41
+ name: z.string().describe("Internal name of the attribute").nullable(),
42
+ type: z.string().describe("Attribute data type").nullable(),
43
43
  label: z.string().describe("Display label of the attribute").nullable().optional(),
44
44
  options: z.array(PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema).describe("Available options for select or multi_select types").nullable().optional(),
45
- field_type: z.string().describe("Field rendering type in UI"),
45
+ field_type: z.string().describe("Field rendering type in UI").nullable(),
46
46
  description: z.string().describe("Description of the attribute").nullable().optional(),
47
- is_piggy_defined: z.boolean().describe("True if attribute is defined by Piggy"),
48
- is_hard_read_only: z.boolean().describe("Indicates if attribute is hard read-only"),
49
- is_soft_read_only: z.boolean().describe("Indicates if attribute is soft read-only")
50
- });
47
+ is_piggy_defined: z.boolean().describe("True if attribute is defined by Piggy").nullable(),
48
+ is_hard_read_only: z.boolean().describe("Indicates if attribute is hard read-only").nullable(),
49
+ is_soft_read_only: z.boolean().describe("Indicates if attribute is soft read-only").nullable()
50
+ }).passthrough();
51
51
  const piggyCreateContactAttribute = action("PIGGY_CREATE_CONTACT_ATTRIBUTE", {
52
52
  slug: "piggy-create-contact-attribute",
53
53
  name: "Create Contact Attribute",
@@ -56,7 +56,7 @@ const piggyCreateContactAttribute = action("PIGGY_CREATE_CONTACT_ATTRIBUTE", {
56
56
  output: z.object({
57
57
  data: PiggyCreateContactAttribute_ContactAttributeDataSchema.nullable(),
58
58
  meta: z.record(z.string(), z.unknown()).describe("Metadata about the response")
59
- })
59
+ }).passthrough()
60
60
  });
61
61
  //#endregion
62
62
  export { piggyCreateContactAttribute };
@@ -1 +1 @@
1
- {"version":3,"file":"create-contact-attribute.mjs","names":[],"sources":["../../src/actions/create-contact-attribute.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateContactAttributeInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Unique internal identifier for the Contact Attribute\"),\n label: z.string().describe(\"Display label for the Contact Attribute\").optional(),\n options: z.array(z.object({\n label: z.string().describe(\"Option label for select or multi_select types\"),\n value: z.string().describe(\"Option value for select or multi_select types\"),\n})).describe(\"List of options for select or multi_select types. Each option has label and value\").optional(),\n data_type: z.enum([\"url\", \"text\", \"date\", \"phone\", \"float\", \"color\", \"email\", \"number\", \"select\", \"boolean\", \"rich_text\", \"date_time\", \"long_text\", \"date_range\", \"time_range\", \"identifier\", \"birth_date\", \"file_upload\", \"media_upload\", \"multi_select\", \"license_plate\"]).describe(\"Data type of the attribute. Determines how values are validated and rendered\"),\n description: z.string().describe(\"Human-readable description of the Contact Attribute\").optional(),\n});\nconst PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema: z.ZodTypeAny = z.object({\n label: z.string().describe(\"Option label\"),\n value: z.string().describe(\"Option value\"),\n});\nconst PiggyCreateContactAttribute_ContactAttributeDataSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Internal name of the attribute\"),\n type: z.string().describe(\"Attribute data type\"),\n label: z.string().describe(\"Display label of the attribute\").nullable().optional(),\n options: z.array(PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema).describe(\"Available options for select or multi_select types\").nullable().optional(),\n field_type: z.string().describe(\"Field rendering type in UI\"),\n description: z.string().describe(\"Description of the attribute\").nullable().optional(),\n is_piggy_defined: z.boolean().describe(\"True if attribute is defined by Piggy\"),\n is_hard_read_only: z.boolean().describe(\"Indicates if attribute is hard read-only\"),\n is_soft_read_only: z.boolean().describe(\"Indicates if attribute is soft read-only\"),\n});\nexport const PiggyCreateContactAttributeOutput: z.ZodTypeAny = z.object({\n data: PiggyCreateContactAttribute_ContactAttributeDataSchema.nullable(),\n meta: z.record(z.string(), z.unknown()).describe(\"Metadata about the response\"),\n});\n\nexport const piggyCreateContactAttribute = action(\"PIGGY_CREATE_CONTACT_ATTRIBUTE\", {\n slug: \"piggy-create-contact-attribute\",\n name: \"Create Contact Attribute\",\n description: \"Tool to create a custom Contact Attribute. Use when you need to define new fields for contacts after initial setup.\",\n input: PiggyCreateContactAttributeInput,\n output: PiggyCreateContactAttributeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAAS,EAAE,MAAM,EAAE,OAAO;EAC1B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC5E,CAAC,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACzG,WAAW,EAAE,KAAK;EAAC;EAAO;EAAQ;EAAQ;EAAS;EAAS;EAAS;EAAS;EAAU;EAAU;EAAW;EAAa;EAAa;EAAa;EAAc;EAAc;EAAc;EAAc;EAAe;EAAgB;EAAgB;CAAe,CAAC,CAAC,CAAC,SAAS,8EAA8E;CACpW,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACnG,CAAC;AACD,MAAM,mEAAiF,EAAE,OAAO;CAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACzC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;AAC3C,CAAC;AACD,MAAM,yDAAuE,EAAE,OAAO;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,MAAM,gEAAgE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CAC5D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;CAC9E,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;CAClF,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;AACpF,CAAC;AAMD,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6D,EAAE,OAAO;EACtE,MAAM,uDAAuD,SAAS;EACtE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6BAA6B;CAChF,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"create-contact-attribute.mjs","names":[],"sources":["../../src/actions/create-contact-attribute.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateContactAttributeInput = z.object({\n name: z.string().describe(\"Unique internal identifier for the Contact Attribute\"),\n label: z.string().describe(\"Display label for the Contact Attribute\").optional(),\n options: z.array(z.object({\n label: z.string().describe(\"Option label for select or multi_select types\"),\n value: z.string().describe(\"Option value for select or multi_select types\"),\n}).passthrough()).describe(\"List of options for select or multi_select types. Each option has label and value\").optional(),\n data_type: z.enum([\"url\", \"text\", \"date\", \"phone\", \"float\", \"color\", \"email\", \"number\", \"select\", \"boolean\", \"rich_text\", \"date_time\", \"long_text\", \"date_range\", \"time_range\", \"identifier\", \"birth_date\", \"file_upload\", \"media_upload\", \"multi_select\", \"license_plate\"]).describe(\"Data type of the attribute. Determines how values are validated and rendered\"),\n description: z.string().describe(\"Human-readable description of the Contact Attribute\").optional(),\n});\nconst PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema = z.object({\n label: z.string().describe(\"Option label\").nullable(),\n value: z.string().describe(\"Option value\").nullable(),\n}).passthrough();\nconst PiggyCreateContactAttribute_ContactAttributeDataSchema = z.object({\n name: z.string().describe(\"Internal name of the attribute\").nullable(),\n type: z.string().describe(\"Attribute data type\").nullable(),\n label: z.string().describe(\"Display label of the attribute\").nullable().optional(),\n options: z.array(PiggyCreateContactAttribute_ContactAttributeOptionResponseSchema).describe(\"Available options for select or multi_select types\").nullable().optional(),\n field_type: z.string().describe(\"Field rendering type in UI\").nullable(),\n description: z.string().describe(\"Description of the attribute\").nullable().optional(),\n is_piggy_defined: z.boolean().describe(\"True if attribute is defined by Piggy\").nullable(),\n is_hard_read_only: z.boolean().describe(\"Indicates if attribute is hard read-only\").nullable(),\n is_soft_read_only: z.boolean().describe(\"Indicates if attribute is soft read-only\").nullable(),\n}).passthrough();\nexport const PiggyCreateContactAttributeOutput = z.object({\n data: PiggyCreateContactAttribute_ContactAttributeDataSchema.nullable(),\n meta: z.record(z.string(), z.unknown()).describe(\"Metadata about the response\"),\n}).passthrough();\n\nexport const piggyCreateContactAttribute = action(\"PIGGY_CREATE_CONTACT_ATTRIBUTE\", {\n slug: \"piggy-create-contact-attribute\",\n name: \"Create Contact Attribute\",\n description: \"Tool to create a custom Contact Attribute. Use when you need to define new fields for contacts after initial setup.\",\n input: PiggyCreateContactAttributeInput,\n output: PiggyCreateContactAttributeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,SAAS,EAAE,MAAM,EAAE,OAAO;EAC1B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACvH,WAAW,EAAE,KAAK;EAAC;EAAO;EAAQ;EAAQ;EAAS;EAAS;EAAS;EAAS;EAAU;EAAU;EAAW;EAAa;EAAa;EAAa;EAAc;EAAc;EAAc;EAAc;EAAe;EAAgB;EAAgB;CAAe,CAAC,CAAC,CAAC,SAAS,8EAA8E;CACpW,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACnG,CAAC;AACD,MAAM,mEAAmE,EAAE,OAAO;CAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;AACtD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yDAAyD,EAAE,OAAO;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,MAAM,gEAAgE,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACzF,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7F,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+C,EAAE,OAAO;EACxD,MAAM,uDAAuD,SAAS;EACtE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6BAA6B;CAChF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -10,7 +10,7 @@ const PiggyCreateCreditReceptionInput = zod.z.object({
10
10
  const PiggyCreateCreditReceptionOutput = zod.z.object({
11
11
  data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Created credit reception data"),
12
12
  meta: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Response metadata")
13
- }).describe("Response schema for credit reception creation.");
13
+ }).passthrough().describe("Response schema for credit reception creation.");
14
14
  const piggyCreateCreditReception = require_action.action("PIGGY_CREATE_CREDIT_RECEPTION", {
15
15
  slug: "piggy-create-credit-reception",
16
16
  name: "Create Credit Reception",
@@ -1 +1 @@
1
- {"version":3,"file":"create-credit-reception.cjs","names":["z","action"],"sources":["../../src/actions/create-credit-reception.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateCreditReceptionInput: z.ZodTypeAny = z.object({\n credits: z.number().int().describe(\"Fixed number of credits to award. Either unit_value or credits must be provided\").optional(),\n shop_uuid: z.string().describe(\"UUID of the shop where the transaction occurred\"),\n unit_value: z.number().int().describe(\"Unit value (e.g., purchase amount in cents) for calculating credits. Either unit_value or credits must be provided\").optional(),\n contact_uuid: z.string().describe(\"UUID of the contact to receive credits\"),\n}).describe(\"Request schema for creating a credit reception.\");\nexport const PiggyCreateCreditReceptionOutput: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Created credit reception data\"),\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n}).describe(\"Response schema for credit reception creation.\");\n\nexport const piggyCreateCreditReception = action(\"PIGGY_CREATE_CREDIT_RECEPTION\", {\n slug: \"piggy-create-credit-reception\",\n name: \"Create Credit Reception\",\n description: \"Tool to create a credit reception for a contact. Use when awarding credits to customers based on purchases or fixed amounts.\",\n input: PiggyCreateCreditReceptionInput,\n output: PiggyCreateCreditReceptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC/H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACrK,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AAC5E,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B;CAChF,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mBAAmB;AACtE,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-credit-reception.cjs","names":["z","action"],"sources":["../../src/actions/create-credit-reception.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateCreditReceptionInput = z.object({\n credits: z.number().int().describe(\"Fixed number of credits to award. Either unit_value or credits must be provided\").optional(),\n shop_uuid: z.string().describe(\"UUID of the shop where the transaction occurred\"),\n unit_value: z.number().int().describe(\"Unit value (e.g., purchase amount in cents) for calculating credits. Either unit_value or credits must be provided\").optional(),\n contact_uuid: z.string().describe(\"UUID of the contact to receive credits\"),\n}).describe(\"Request schema for creating a credit reception.\");\nexport const PiggyCreateCreditReceptionOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Created credit reception data\"),\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n}).passthrough().describe(\"Response schema for credit reception creation.\");\n\nexport const piggyCreateCreditReception = action(\"PIGGY_CREATE_CREDIT_RECEPTION\", {\n slug: \"piggy-create-credit-reception\",\n name: \"Create Credit Reception\",\n description: \"Tool to create a credit reception for a contact. Use when awarding credits to customers based on purchases or fixed amounts.\",\n input: PiggyCreateCreditReceptionInput,\n output: PiggyCreateCreditReceptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC/H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACrK,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AAC5E,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B;CAChF,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mBAAmB;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,22 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-credit-reception.d.ts
4
- declare const PiggyCreateCreditReceptionInput: z.ZodTypeAny;
5
- declare const PiggyCreateCreditReceptionOutput: z.ZodTypeAny;
6
- declare const piggyCreateCreditReception: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PiggyCreateCreditReceptionInput: z.ZodObject<{
5
+ credits: z.ZodOptional<z.ZodNumber>;
6
+ shop_uuid: z.ZodString;
7
+ unit_value: z.ZodOptional<z.ZodNumber>;
8
+ contact_uuid: z.ZodString;
9
+ }, z.core.$strip>;
10
+ declare const PiggyCreateCreditReceptionOutput: z.ZodObject<{
11
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
12
+ meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13
+ }, z.core.$loose>;
14
+ declare const piggyCreateCreditReception: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ shop_uuid: string;
16
+ contact_uuid: string;
17
+ credits?: number | undefined;
18
+ unit_value?: number | undefined;
19
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
20
  //#endregion
8
21
  export { piggyCreateCreditReception };
9
22
  //# sourceMappingURL=create-credit-reception.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-credit-reception.d.cts","names":[],"sources":["../../src/actions/create-credit-reception.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAKc;AAAA,cACjD,gCAAA,EAAkC,CAAA,CAAE,UAGY;AAAA,cAEhD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-credit-reception.d.cts","names":[],"sources":["../../src/actions/create-credit-reception.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAM/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,22 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-credit-reception.d.ts
4
- declare const PiggyCreateCreditReceptionInput: z.ZodTypeAny;
5
- declare const PiggyCreateCreditReceptionOutput: z.ZodTypeAny;
6
- declare const piggyCreateCreditReception: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PiggyCreateCreditReceptionInput: z.ZodObject<{
5
+ credits: z.ZodOptional<z.ZodNumber>;
6
+ shop_uuid: z.ZodString;
7
+ unit_value: z.ZodOptional<z.ZodNumber>;
8
+ contact_uuid: z.ZodString;
9
+ }, z.core.$strip>;
10
+ declare const PiggyCreateCreditReceptionOutput: z.ZodObject<{
11
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
12
+ meta: z.ZodRecord<z.ZodString, z.ZodUnknown>;
13
+ }, z.core.$loose>;
14
+ declare const piggyCreateCreditReception: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ shop_uuid: string;
16
+ contact_uuid: string;
17
+ credits?: number | undefined;
18
+ unit_value?: number | undefined;
19
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
20
  //#endregion
8
21
  export { piggyCreateCreditReception };
9
22
  //# sourceMappingURL=create-credit-reception.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-credit-reception.d.mts","names":[],"sources":["../../src/actions/create-credit-reception.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAKc;AAAA,cACjD,gCAAA,EAAkC,CAAA,CAAE,UAGY;AAAA,cAEhD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-credit-reception.d.mts","names":[],"sources":["../../src/actions/create-credit-reception.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAM/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
@@ -13,7 +13,7 @@ const piggyCreateCreditReception = action("PIGGY_CREATE_CREDIT_RECEPTION", {
13
13
  output: z.object({
14
14
  data: z.record(z.string(), z.unknown()).describe("Created credit reception data"),
15
15
  meta: z.record(z.string(), z.unknown()).describe("Response metadata")
16
- }).describe("Response schema for credit reception creation.")
16
+ }).passthrough().describe("Response schema for credit reception creation.")
17
17
  });
18
18
  //#endregion
19
19
  export { piggyCreateCreditReception };
@@ -1 +1 @@
1
- {"version":3,"file":"create-credit-reception.mjs","names":[],"sources":["../../src/actions/create-credit-reception.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateCreditReceptionInput: z.ZodTypeAny = z.object({\n credits: z.number().int().describe(\"Fixed number of credits to award. Either unit_value or credits must be provided\").optional(),\n shop_uuid: z.string().describe(\"UUID of the shop where the transaction occurred\"),\n unit_value: z.number().int().describe(\"Unit value (e.g., purchase amount in cents) for calculating credits. Either unit_value or credits must be provided\").optional(),\n contact_uuid: z.string().describe(\"UUID of the contact to receive credits\"),\n}).describe(\"Request schema for creating a credit reception.\");\nexport const PiggyCreateCreditReceptionOutput: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Created credit reception data\"),\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n}).describe(\"Response schema for credit reception creation.\");\n\nexport const piggyCreateCreditReception = action(\"PIGGY_CREATE_CREDIT_RECEPTION\", {\n slug: \"piggy-create-credit-reception\",\n name: \"Create Credit Reception\",\n description: \"Tool to create a credit reception for a contact. Use when awarding credits to customers based on purchases or fixed amounts.\",\n input: PiggyCreateCreditReceptionInput,\n output: PiggyCreateCreditReceptionOutput,\n});\n"],"mappings":";;AAeA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf2D,EAAE,OAAO;EACpE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC/H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAChF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;EACrK,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAC5E,CAAC,CAAC,CAAC,SAAS,iDAUH;CACP,QAV4D,EAAE,OAAO;EACrE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B;EAChF,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mBAAmB;CACtE,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-credit-reception.mjs","names":[],"sources":["../../src/actions/create-credit-reception.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyCreateCreditReceptionInput = z.object({\n credits: z.number().int().describe(\"Fixed number of credits to award. Either unit_value or credits must be provided\").optional(),\n shop_uuid: z.string().describe(\"UUID of the shop where the transaction occurred\"),\n unit_value: z.number().int().describe(\"Unit value (e.g., purchase amount in cents) for calculating credits. Either unit_value or credits must be provided\").optional(),\n contact_uuid: z.string().describe(\"UUID of the contact to receive credits\"),\n}).describe(\"Request schema for creating a credit reception.\");\nexport const PiggyCreateCreditReceptionOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Created credit reception data\"),\n meta: z.record(z.string(), z.unknown()).describe(\"Response metadata\"),\n}).passthrough().describe(\"Response schema for credit reception creation.\");\n\nexport const piggyCreateCreditReception = action(\"PIGGY_CREATE_CREDIT_RECEPTION\", {\n slug: \"piggy-create-credit-reception\",\n name: \"Create Credit Reception\",\n description: \"Tool to create a credit reception for a contact. Use when awarding credits to customers based on purchases or fixed amounts.\",\n input: PiggyCreateCreditReceptionInput,\n output: PiggyCreateCreditReceptionOutput,\n});\n"],"mappings":";;AAeA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf6C,EAAE,OAAO;EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC/H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAChF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;EACrK,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAC5E,CAAC,CAAC,CAAC,SAAS,iDAUH;CACP,QAV8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B;EAChF,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mBAAmB;CACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
@@ -10,19 +10,19 @@ const PiggyCreateVouchersBatchInput = zod.z.object({
10
10
  custom_attributes: zod.z.array(zod.z.object({
11
11
  key: zod.z.string().describe("Attribute key"),
12
12
  value: zod.z.string().describe("Attribute value")
13
- }).describe("Custom attribute for vouchers.")).describe("Additional Custom Attributes for the Vouchers").optional()
13
+ }).passthrough().describe("Custom attribute for vouchers.")).describe("Additional Custom Attributes for the Vouchers").optional()
14
14
  }).describe("Request schema for batch voucher creation.");
15
15
  const PiggyCreateVouchersBatch_VoucherBatchDataSchema = zod.z.object({
16
- type: zod.z.string().describe("Resource type, always 'vouchers' for this endpoint"),
17
- uuid: zod.z.string().describe("Unique identifier for the batch operation"),
18
- status: zod.z.string().describe("Current batch status (e.g., 'PENDING', 'COMPLETED'). Batch creation is asynchronous"),
19
- quantity: zod.z.number().int().describe("The number of vouchers generated in this batch"),
20
- created_at: zod.z.string().describe("Timestamp when batch was created")
21
- }).describe("Batch voucher creation data.");
16
+ type: zod.z.string().describe("Resource type, always 'vouchers' for this endpoint").nullable(),
17
+ uuid: zod.z.string().describe("Unique identifier for the batch operation").nullable(),
18
+ status: zod.z.string().describe("Current batch status (e.g., 'PENDING', 'COMPLETED'). Batch creation is asynchronous").nullable(),
19
+ quantity: zod.z.number().int().describe("The number of vouchers generated in this batch").nullable(),
20
+ created_at: zod.z.string().describe("Timestamp when batch was created").nullable()
21
+ }).passthrough().describe("Batch voucher creation data.");
22
22
  const PiggyCreateVouchersBatchOutput = zod.z.object({
23
23
  data: PiggyCreateVouchersBatch_VoucherBatchDataSchema.nullable(),
24
24
  meta: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Response metadata (usually empty)")
25
- }).describe("Response schema for batch voucher creation.");
25
+ }).passthrough().describe("Response schema for batch voucher creation.");
26
26
  const piggyCreateVouchersBatch = require_action.action("PIGGY_CREATE_VOUCHERS_BATCH", {
27
27
  slug: "piggy-create-vouchers-batch",
28
28
  name: "Create Vouchers Batch",