@keystrokehq/piggy 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 -16
  6. package/dist/actions/claim-anonymous-contact.d.cts.map +1 -1
  7. package/dist/actions/claim-anonymous-contact.d.mts +3 -16
  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 -24
  14. package/dist/actions/create-contact-attribute.d.cts.map +1 -1
  15. package/dist/actions/create-contact-attribute.d.mts +4 -24
  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 -18
  22. package/dist/actions/create-credit-reception.d.cts.map +1 -1
  23. package/dist/actions/create-credit-reception.d.mts +3 -18
  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 -24
  30. package/dist/actions/create-vouchers-batch.d.cts.map +1 -1
  31. package/dist/actions/create-vouchers-batch.d.mts +3 -24
  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 -22
  38. package/dist/actions/find-or-create-products.d.cts.map +1 -1
  39. package/dist/actions/find-or-create-products.d.mts +3 -22
  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 -15
  46. package/dist/actions/find-voucher-by-code.d.cts.map +1 -1
  47. package/dist/actions/find-voucher-by-code.d.mts +3 -15
  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 -15
  54. package/dist/actions/get-contact-auth-token.d.cts.map +1 -1
  55. package/dist/actions/get-contact-auth-token.d.mts +3 -15
  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 -15
  62. package/dist/actions/get-contacts-credit-balance.d.cts.map +1 -1
  63. package/dist/actions/get-contacts-credit-balance.d.mts +3 -15
  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 -13
  70. package/dist/actions/list-forms.d.cts.map +1 -1
  71. package/dist/actions/list-forms.d.mts +3 -13
  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 -13
  78. package/dist/actions/list-perks.d.cts.map +1 -1
  79. package/dist/actions/list-perks.d.mts +3 -13
  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 -16
  86. package/dist/actions/merge-contacts.d.cts.map +1 -1
  87. package/dist/actions/merge-contacts.d.mts +3 -16
  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 -15
  94. package/dist/actions/send-contact-verification-email.d.cts.map +1 -1
  95. package/dist/actions/send-contact-verification-email.d.mts +3 -15
  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 -24
  102. package/dist/actions/update-bookings.d.cts.map +1 -1
  103. package/dist/actions/update-bookings.d.mts +3 -24
  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 -17
  110. package/dist/actions/update-contact-identifiers.d.cts.map +1 -1
  111. package/dist/actions/update-contact-identifiers.d.mts +3 -17
  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 +2 -2
  116. package/dist/app.cjs.map +1 -1
  117. package/dist/app.d.cts +4 -6
  118. package/dist/app.d.cts.map +1 -1
  119. package/dist/app.d.mts +4 -6
  120. package/dist/app.d.mts.map +1 -1
  121. package/dist/app.mjs +0 -1
  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":"find-or-create-products.cjs","names":["z","action"],"sources":["../../src/actions/find-or-create-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyFindOrCreateProductsInput = z.object({\n name: z.string().describe(\"The name of the Product. Required when creating a new product\").optional(),\n categories: z.array(z.object({\n uuid: z.string().describe(\"UUID of an existing category to associate with the product\").optional(),\n external_identifier: z.string().describe(\"External identifier of an existing category to associate with the product\").optional(),\n}).passthrough().describe(\"Category reference for product association.\")).describe(\"List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier\").optional(),\n description: z.string().describe(\"The description of the Product\").optional(),\n external_identifier: z.string().describe(\"A unique identifier from your system to find or create the product\"),\n}).describe(\"Request model for finding or creating a product in Piggy.\");\nconst PiggyFindOrCreateProducts_ProductCategoryResponseSchema = z.object({\n uuid: z.string().describe(\"UUID of the category\").nullable(),\n external_identifier: z.string().describe(\"External identifier of the category\").nullable().optional(),\n}).passthrough().describe(\"Category information in product response.\");\nconst PiggyFindOrCreateProducts_ProductDataSchema = z.object({\n name: z.string().describe(\"Name of the product\").nullable(),\n uuid: z.string().describe(\"Unique identifier for the product in Piggy system\").nullable(),\n categories: z.array(PiggyFindOrCreateProducts_ProductCategoryResponseSchema).describe(\"List of categories associated with the product\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n external_identifier: z.string().describe(\"External identifier from your system\").nullable(),\n}).passthrough().describe(\"Product data object returned by the API.\");\nexport const PiggyFindOrCreateProductsOutput = z.object({\n data: PiggyFindOrCreateProducts_ProductDataSchema.nullable(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty\").nullable().optional(),\n}).passthrough().describe(\"Response model for finding or creating a product.\");\n\nexport const piggyFindOrCreateProducts = action(\"PIGGY_FIND_OR_CREATE_PRODUCTS\", {\n slug: \"piggy-find-or-create-products\",\n name: \"Find or Create Products\",\n description: \"Tool to find an existing product by external_identifier or create a new one if it doesn't exist. Use when you need to ensure a product exists in Piggy's system for loyalty programs or rewards.\",\n input: PiggyFindOrCreateProductsInput,\n output: PiggyFindOrCreateProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACjG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,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AC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"find-or-create-products.cjs","names":["z","action"],"sources":["../../src/actions/find-or-create-products.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 PiggyFindOrCreateProductsInput = z.object({\n name: z.string().describe(\"The name of the Product. Required when creating a new product\").optional(),\n categories: z.array(z.object({\n uuid: z.string().describe(\"UUID of an existing category to associate with the product\").optional(),\n external_identifier: z.string().describe(\"External identifier of an existing category to associate with the product\").optional(),\n}).passthrough().describe(\"Category reference for product association.\")).describe(\"List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier\").optional(),\n description: z.string().describe(\"The description of the Product\").optional(),\n external_identifier: z.string().describe(\"A unique identifier from your system to find or create the product\"),\n}).describe(\"Request model for finding or creating a product in Piggy.\");\nconst PiggyFindOrCreateProducts_ProductCategoryResponseSchema = z.object({\n uuid: z.string().describe(\"UUID of the category\").nullable(),\n external_identifier: z.string().describe(\"External identifier of the category\").nullable().optional(),\n}).passthrough().describe(\"Category information in product response.\");\nconst PiggyFindOrCreateProducts_ProductDataSchema = z.object({\n name: z.string().describe(\"Name of the product\").nullable(),\n uuid: z.string().describe(\"Unique identifier for the product in Piggy system\").nullable(),\n categories: z.array(PiggyFindOrCreateProducts_ProductCategoryResponseSchema).describe(\"List of categories associated with the product\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n external_identifier: z.string().describe(\"External identifier from your system\").nullable(),\n}).passthrough().describe(\"Product data object returned by the API.\");\nexport const PiggyFindOrCreateProductsOutput = z.object({\n data: PiggyFindOrCreateProducts_ProductDataSchema.nullable(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty\").nullable().optional(),\n}).passthrough().describe(\"Response model for finding or creating a product.\");\n\nexport const piggyFindOrCreateProducts: AppAction<\n typeof PiggyFindOrCreateProductsInput,\n typeof PiggyFindOrCreateProductsOutput,\n typeof piggy.credential\n> = action(\"PIGGY_FIND_OR_CREATE_PRODUCTS\", {\n slug: \"piggy-find-or-create-products\",\n name: \"Find or Create Products\",\n description: \"Tool to find an existing product by external_identifier or create a new one if it doesn't exist. Use when you need to ensure a product exists in Piggy's system for loyalty programs or rewards.\",\n input: PiggyFindOrCreateProductsInput,\n output: PiggyFindOrCreateProductsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACjG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACjI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC5M,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC5E,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;AAC/G,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAM,4CAA4C,SAAS;CAC3D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,4BAITC,eAAAA,OAAO,iCAAiC;CAC1C,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/find-or-create-products.d.ts
@@ -23,28 +25,7 @@ declare const PiggyFindOrCreateProductsOutput: z.ZodObject<{
23
25
  }, z.core.$loose>>;
24
26
  meta: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
25
27
  }, z.core.$loose>;
26
- declare const piggyFindOrCreateProducts: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- external_identifier: string;
28
- name?: string | undefined;
29
- categories?: {
30
- [x: string]: unknown;
31
- uuid?: string | undefined;
32
- external_identifier?: string | undefined;
33
- }[] | undefined;
34
- description?: string | undefined;
35
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- generic_api_key: z.ZodString;
41
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
42
- connectionId: z.ZodString;
43
- entityId: z.ZodString;
44
- instanceId: z.ZodString;
45
- }, z.core.$strip>, z.ZodObject<{
46
- generic_api_key: z.ZodString;
47
- }, z.core.$strip>>]>;
28
+ declare const piggyFindOrCreateProducts: AppAction<typeof PiggyFindOrCreateProductsInput, typeof PiggyFindOrCreateProductsOutput, typeof piggy.credential>;
48
29
  //#endregion
49
30
  export { piggyFindOrCreateProducts };
50
31
  //# sourceMappingURL=find-or-create-products.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"find-or-create-products.d.cts","names":[],"sources":["../../src/actions/find-or-create-products.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"find-or-create-products.d.cts","names":[],"sources":["../../src/actions/find-or-create-products.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,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/find-or-create-products.d.ts
@@ -23,28 +25,7 @@ declare const PiggyFindOrCreateProductsOutput: z.ZodObject<{
23
25
  }, z.core.$loose>>;
24
26
  meta: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
25
27
  }, z.core.$loose>;
26
- declare const piggyFindOrCreateProducts: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- external_identifier: string;
28
- name?: string | undefined;
29
- categories?: {
30
- [x: string]: unknown;
31
- uuid?: string | undefined;
32
- external_identifier?: string | undefined;
33
- }[] | undefined;
34
- description?: string | undefined;
35
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- generic_api_key: z.ZodString;
41
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
42
- connectionId: z.ZodString;
43
- entityId: z.ZodString;
44
- instanceId: z.ZodString;
45
- }, z.core.$strip>, z.ZodObject<{
46
- generic_api_key: z.ZodString;
47
- }, z.core.$strip>>]>;
28
+ declare const piggyFindOrCreateProducts: AppAction<typeof PiggyFindOrCreateProductsInput, typeof PiggyFindOrCreateProductsOutput, typeof piggy.credential>;
48
29
  //#endregion
49
30
  export { piggyFindOrCreateProducts };
50
31
  //# sourceMappingURL=find-or-create-products.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"find-or-create-products.d.mts","names":[],"sources":["../../src/actions/find-or-create-products.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"find-or-create-products.d.mts","names":[],"sources":["../../src/actions/find-or-create-products.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAoB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,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/find-or-create-products.ts
@@ -1 +1 @@
1
- {"version":3,"file":"find-or-create-products.mjs","names":[],"sources":["../../src/actions/find-or-create-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyFindOrCreateProductsInput = z.object({\n name: z.string().describe(\"The name of the Product. Required when creating a new product\").optional(),\n categories: z.array(z.object({\n uuid: z.string().describe(\"UUID of an existing category to associate with the product\").optional(),\n external_identifier: z.string().describe(\"External identifier of an existing category to associate with the product\").optional(),\n}).passthrough().describe(\"Category reference for product association.\")).describe(\"List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier\").optional(),\n description: z.string().describe(\"The description of the Product\").optional(),\n external_identifier: z.string().describe(\"A unique identifier from your system to find or create the product\"),\n}).describe(\"Request model for finding or creating a product in Piggy.\");\nconst PiggyFindOrCreateProducts_ProductCategoryResponseSchema = z.object({\n uuid: z.string().describe(\"UUID of the category\").nullable(),\n external_identifier: z.string().describe(\"External identifier of the category\").nullable().optional(),\n}).passthrough().describe(\"Category information in product response.\");\nconst PiggyFindOrCreateProducts_ProductDataSchema = z.object({\n name: z.string().describe(\"Name of the product\").nullable(),\n uuid: z.string().describe(\"Unique identifier for the product in Piggy system\").nullable(),\n categories: z.array(PiggyFindOrCreateProducts_ProductCategoryResponseSchema).describe(\"List of categories associated with the product\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n external_identifier: z.string().describe(\"External identifier from your system\").nullable(),\n}).passthrough().describe(\"Product data object returned by the API.\");\nexport const PiggyFindOrCreateProductsOutput = z.object({\n data: PiggyFindOrCreateProducts_ProductDataSchema.nullable(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty\").nullable().optional(),\n}).passthrough().describe(\"Response model for finding or creating a product.\");\n\nexport const piggyFindOrCreateProducts = action(\"PIGGY_FIND_OR_CREATE_PRODUCTS\", {\n slug: \"piggy-find-or-create-products\",\n name: \"Find or Create Products\",\n description: \"Tool to find an existing product by external_identifier or create a new one if it doesn't exist. Use when you need to ensure a product exists in Piggy's system for loyalty programs or rewards.\",\n input: PiggyFindOrCreateProductsInput,\n output: PiggyFindOrCreateProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACjG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACjI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC5M,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC5E,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;AAC/G,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,0DAA0D,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,YAAY,EAAE,MAAM,uDAAuD,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAMpE,MAAa,4BAA4B,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6C,EAAE,OAAO;EACtD,MAAM,4CAA4C,SAAS;EAC3D,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"find-or-create-products.mjs","names":[],"sources":["../../src/actions/find-or-create-products.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 PiggyFindOrCreateProductsInput = z.object({\n name: z.string().describe(\"The name of the Product. Required when creating a new product\").optional(),\n categories: z.array(z.object({\n uuid: z.string().describe(\"UUID of an existing category to associate with the product\").optional(),\n external_identifier: z.string().describe(\"External identifier of an existing category to associate with the product\").optional(),\n}).passthrough().describe(\"Category reference for product association.\")).describe(\"List of Categories that the product belongs to. Each category can be referenced by uuid or external_identifier\").optional(),\n description: z.string().describe(\"The description of the Product\").optional(),\n external_identifier: z.string().describe(\"A unique identifier from your system to find or create the product\"),\n}).describe(\"Request model for finding or creating a product in Piggy.\");\nconst PiggyFindOrCreateProducts_ProductCategoryResponseSchema = z.object({\n uuid: z.string().describe(\"UUID of the category\").nullable(),\n external_identifier: z.string().describe(\"External identifier of the category\").nullable().optional(),\n}).passthrough().describe(\"Category information in product response.\");\nconst PiggyFindOrCreateProducts_ProductDataSchema = z.object({\n name: z.string().describe(\"Name of the product\").nullable(),\n uuid: z.string().describe(\"Unique identifier for the product in Piggy system\").nullable(),\n categories: z.array(PiggyFindOrCreateProducts_ProductCategoryResponseSchema).describe(\"List of categories associated with the product\").nullable().optional(),\n description: z.string().describe(\"Description of the product\").nullable().optional(),\n external_identifier: z.string().describe(\"External identifier from your system\").nullable(),\n}).passthrough().describe(\"Product data object returned by the API.\");\nexport const PiggyFindOrCreateProductsOutput = z.object({\n data: PiggyFindOrCreateProducts_ProductDataSchema.nullable(),\n meta: z.array(z.unknown()).describe(\"Metadata array; typically empty\").nullable().optional(),\n}).passthrough().describe(\"Response model for finding or creating a product.\");\n\nexport const piggyFindOrCreateProducts: AppAction<\n typeof PiggyFindOrCreateProductsInput,\n typeof PiggyFindOrCreateProductsOutput,\n typeof piggy.credential\n> = action(\"PIGGY_FIND_OR_CREATE_PRODUCTS\", {\n slug: \"piggy-find-or-create-products\",\n name: \"Find or Create Products\",\n description: \"Tool to find an existing product by external_identifier or create a new one if it doesn't exist. Use when you need to ensure a product exists in Piggy's system for loyalty programs or rewards.\",\n input: PiggyFindOrCreateProductsInput,\n output: PiggyFindOrCreateProductsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,C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AC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd6C,EAAE,OAAO;EACtD,MAAM,4CAA4C,SAAS;EAC3D,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/find-voucher-by-code.ts
@@ -1 +1 @@
1
- {"version":3,"file":"find-voucher-by-code.cjs","names":["z","action"],"sources":["../../src/actions/find-voucher-by-code.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyFindVoucherByCodeInput = z.object({\n code: z.string().describe(\"The unique code of the Voucher, which serves as its identifier\"),\n}).describe(\"Request schema for finding a voucher by its unique code.\");\nconst PiggyFindVoucherByCode_VoucherContactSchema = z.object({\n uuid: z.string().describe(\"UUID of the contact\").nullable().optional(),\n email: z.string().describe(\"Email of the contact\").nullable().optional(),\n}).passthrough().describe(\"Contact associated with the voucher.\");\nconst PiggyFindVoucherByCode_VoucherPromotionSchema = z.object({\n name: z.string().describe(\"Name of the promotion\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the promotion\").nullable().optional(),\n description: z.string().describe(\"Description of the promotion\").nullable().optional(),\n}).passthrough().describe(\"Promotion details associated with the voucher.\");\nconst PiggyFindVoucherByCode_VoucherDataSchema = z.object({\n code: z.string().describe(\"Unique code of the voucher\").nullable(),\n name: z.string().describe(\"Name of the voucher\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the voucher\").nullable(),\n status: z.string().describe(\"Status of the voucher (e.g., ACTIVE, REDEEMED)\").nullable().optional(),\n contact: PiggyFindVoucherByCode_VoucherContactSchema.nullable().optional(),\n promotion: PiggyFindVoucherByCode_VoucherPromotionSchema.nullable().optional(),\n attributes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n description: z.string().describe(\"Description of the voucher\").nullable().optional(),\n is_redeemed: z.boolean().describe(\"Indicates if the voucher has been redeemed\").nullable().optional(),\n redeemed_at: z.string().describe(\"Date when the voucher was redeemed in ISO 8601 format\").nullable().optional(),\n times_redeemed: z.number().int().describe(\"Number of times the voucher has been redeemed\").nullable().optional(),\n activation_date: z.string().describe(\"Activation date of the voucher in ISO 8601 format\").nullable().optional(),\n expiration_date: z.string().describe(\"Expiration date of the voucher in ISO 8601 format\").nullable().optional(),\n redemptions_remaining: z.number().int().describe(\"Number of redemptions remaining for the voucher\").nullable().optional(),\n total_redemptions_allowed: z.number().int().describe(\"Total number of redemptions allowed for the voucher\").nullable().optional(),\n}).passthrough().describe(\"Detailed voucher information.\");\nexport const PiggyFindVoucherByCodeOutput = z.object({\n data: PiggyFindVoucherByCode_VoucherDataSchema.nullable(),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Response schema for voucher retrieval by code.\");\n\nexport const piggyFindVoucherByCode = action(\"PIGGY_FIND_VOUCHER_BY_CODE\", {\n slug: \"piggy-find-voucher-by-code\",\n name: \"Find Voucher By Code\",\n description: \"Tool to find a voucher by its unique code. Use when you need to retrieve voucher details, check redemption status, or validate a voucher code.\",\n input: PiggyFindVoucherByCodeInput,\n output: PiggyFindVoucherByCodeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,EAC5F,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAA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AA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"find-voucher-by-code.cjs","names":["z","action"],"sources":["../../src/actions/find-voucher-by-code.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 PiggyFindVoucherByCodeInput = z.object({\n code: z.string().describe(\"The unique code of the Voucher, which serves as its identifier\"),\n}).describe(\"Request schema for finding a voucher by its unique code.\");\nconst PiggyFindVoucherByCode_VoucherContactSchema = z.object({\n uuid: z.string().describe(\"UUID of the contact\").nullable().optional(),\n email: z.string().describe(\"Email of the contact\").nullable().optional(),\n}).passthrough().describe(\"Contact associated with the voucher.\");\nconst PiggyFindVoucherByCode_VoucherPromotionSchema = z.object({\n name: z.string().describe(\"Name of the promotion\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the promotion\").nullable().optional(),\n description: z.string().describe(\"Description of the promotion\").nullable().optional(),\n}).passthrough().describe(\"Promotion details associated with the voucher.\");\nconst PiggyFindVoucherByCode_VoucherDataSchema = z.object({\n code: z.string().describe(\"Unique code of the voucher\").nullable(),\n name: z.string().describe(\"Name of the voucher\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the voucher\").nullable(),\n status: z.string().describe(\"Status of the voucher (e.g., ACTIVE, REDEEMED)\").nullable().optional(),\n contact: PiggyFindVoucherByCode_VoucherContactSchema.nullable().optional(),\n promotion: PiggyFindVoucherByCode_VoucherPromotionSchema.nullable().optional(),\n attributes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n description: z.string().describe(\"Description of the voucher\").nullable().optional(),\n is_redeemed: z.boolean().describe(\"Indicates if the voucher has been redeemed\").nullable().optional(),\n redeemed_at: z.string().describe(\"Date when the voucher was redeemed in ISO 8601 format\").nullable().optional(),\n times_redeemed: z.number().int().describe(\"Number of times the voucher has been redeemed\").nullable().optional(),\n activation_date: z.string().describe(\"Activation date of the voucher in ISO 8601 format\").nullable().optional(),\n expiration_date: z.string().describe(\"Expiration date of the voucher in ISO 8601 format\").nullable().optional(),\n redemptions_remaining: z.number().int().describe(\"Number of redemptions remaining for the voucher\").nullable().optional(),\n total_redemptions_allowed: z.number().int().describe(\"Total number of redemptions allowed for the voucher\").nullable().optional(),\n}).passthrough().describe(\"Detailed voucher information.\");\nexport const PiggyFindVoucherByCodeOutput = z.object({\n data: PiggyFindVoucherByCode_VoucherDataSchema.nullable(),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Response schema for voucher retrieval by code.\");\n\nexport const piggyFindVoucherByCode: AppAction<\n typeof PiggyFindVoucherByCodeInput,\n typeof PiggyFindVoucherByCodeOutput,\n typeof piggy.credential\n> = action(\"PIGGY_FIND_VOUCHER_BY_CODE\", {\n slug: \"piggy-find-voucher-by-code\",\n name: \"Find Voucher By Code\",\n description: \"Tool to find a voucher by its unique code. Use when you need to retrieve voucher details, check redemption status, or validate a voucher code.\",\n input: PiggyFindVoucherByCodeInput,\n output: PiggyFindVoucherByCodeOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,EAC5F,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAM,gDAAgDA,IAAAA,EAAE,OAAO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} from "zod";
2
4
 
3
5
  //#region src/actions/find-voucher-by-code.d.ts
@@ -31,21 +33,7 @@ declare const PiggyFindVoucherByCodeOutput: z.ZodObject<{
31
33
  }, z.core.$loose>>;
32
34
  meta: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
33
35
  }, z.core.$loose>;
34
- declare const piggyFindVoucherByCode: import("@keystrokehq/action").WorkflowActionDefinition<{
35
- code: string;
36
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
37
- connectionId: z.ZodString;
38
- entityId: z.ZodString;
39
- instanceId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- generic_api_key: z.ZodString;
42
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
43
- connectionId: z.ZodString;
44
- entityId: z.ZodString;
45
- instanceId: z.ZodString;
46
- }, z.core.$strip>, z.ZodObject<{
47
- generic_api_key: z.ZodString;
48
- }, z.core.$strip>>]>;
36
+ declare const piggyFindVoucherByCode: AppAction<typeof PiggyFindVoucherByCodeInput, typeof PiggyFindVoucherByCodeOutput, typeof piggy.credential>;
49
37
  //#endregion
50
38
  export { piggyFindVoucherByCode };
51
39
  //# sourceMappingURL=find-voucher-by-code.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"find-voucher-by-code.d.cts","names":[],"sources":["../../src/actions/find-voucher-by-code.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cA6B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"find-voucher-by-code.d.cts","names":[],"sources":["../../src/actions/find-voucher-by-code.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cA6B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,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/find-voucher-by-code.d.ts
@@ -31,21 +33,7 @@ declare const PiggyFindVoucherByCodeOutput: z.ZodObject<{
31
33
  }, z.core.$loose>>;
32
34
  meta: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
33
35
  }, z.core.$loose>;
34
- declare const piggyFindVoucherByCode: import("@keystrokehq/action").WorkflowActionDefinition<{
35
- code: string;
36
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
37
- connectionId: z.ZodString;
38
- entityId: z.ZodString;
39
- instanceId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- generic_api_key: z.ZodString;
42
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
43
- connectionId: z.ZodString;
44
- entityId: z.ZodString;
45
- instanceId: z.ZodString;
46
- }, z.core.$strip>, z.ZodObject<{
47
- generic_api_key: z.ZodString;
48
- }, z.core.$strip>>]>;
36
+ declare const piggyFindVoucherByCode: AppAction<typeof PiggyFindVoucherByCodeInput, typeof PiggyFindVoucherByCodeOutput, typeof piggy.credential>;
49
37
  //#endregion
50
38
  export { piggyFindVoucherByCode };
51
39
  //# sourceMappingURL=find-voucher-by-code.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"find-voucher-by-code.d.mts","names":[],"sources":["../../src/actions/find-voucher-by-code.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cA6B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"find-voucher-by-code.d.mts","names":[],"sources":["../../src/actions/find-voucher-by-code.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cA6B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,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/find-voucher-by-code.ts
@@ -1 +1 @@
1
- {"version":3,"file":"find-voucher-by-code.mjs","names":[],"sources":["../../src/actions/find-voucher-by-code.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyFindVoucherByCodeInput = z.object({\n code: z.string().describe(\"The unique code of the Voucher, which serves as its identifier\"),\n}).describe(\"Request schema for finding a voucher by its unique code.\");\nconst PiggyFindVoucherByCode_VoucherContactSchema = z.object({\n uuid: z.string().describe(\"UUID of the contact\").nullable().optional(),\n email: z.string().describe(\"Email of the contact\").nullable().optional(),\n}).passthrough().describe(\"Contact associated with the voucher.\");\nconst PiggyFindVoucherByCode_VoucherPromotionSchema = z.object({\n name: z.string().describe(\"Name of the promotion\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the promotion\").nullable().optional(),\n description: z.string().describe(\"Description of the promotion\").nullable().optional(),\n}).passthrough().describe(\"Promotion details associated with the voucher.\");\nconst PiggyFindVoucherByCode_VoucherDataSchema = z.object({\n code: z.string().describe(\"Unique code of the voucher\").nullable(),\n name: z.string().describe(\"Name of the voucher\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the voucher\").nullable(),\n status: z.string().describe(\"Status of the voucher (e.g., ACTIVE, REDEEMED)\").nullable().optional(),\n contact: PiggyFindVoucherByCode_VoucherContactSchema.nullable().optional(),\n promotion: PiggyFindVoucherByCode_VoucherPromotionSchema.nullable().optional(),\n attributes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n description: z.string().describe(\"Description of the voucher\").nullable().optional(),\n is_redeemed: z.boolean().describe(\"Indicates if the voucher has been redeemed\").nullable().optional(),\n redeemed_at: z.string().describe(\"Date when the voucher was redeemed in ISO 8601 format\").nullable().optional(),\n times_redeemed: z.number().int().describe(\"Number of times the voucher has been redeemed\").nullable().optional(),\n activation_date: z.string().describe(\"Activation date of the voucher in ISO 8601 format\").nullable().optional(),\n expiration_date: z.string().describe(\"Expiration date of the voucher in ISO 8601 format\").nullable().optional(),\n redemptions_remaining: z.number().int().describe(\"Number of redemptions remaining for the voucher\").nullable().optional(),\n total_redemptions_allowed: z.number().int().describe(\"Total number of redemptions allowed for the voucher\").nullable().optional(),\n}).passthrough().describe(\"Detailed voucher information.\");\nexport const PiggyFindVoucherByCodeOutput = z.object({\n data: PiggyFindVoucherByCode_VoucherDataSchema.nullable(),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Response schema for voucher retrieval by code.\");\n\nexport const piggyFindVoucherByCode = action(\"PIGGY_FIND_VOUCHER_BY_CODE\", {\n slug: \"piggy-find-voucher-by-code\",\n name: \"Find Voucher By Code\",\n description: \"Tool to find a voucher by its unique code. Use when you need to retrieve voucher details, check redemption status, or validate a voucher code.\",\n input: PiggyFindVoucherByCodeInput,\n output: PiggyFindVoucherByCodeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,EAC5F,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE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,CAAC,CAAC,SAAS;CACnF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B;AAMzD,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,EAAE,OAAO;EACnD,MAAM,yCAAyC,SAAS;EACxD,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"find-voucher-by-code.mjs","names":[],"sources":["../../src/actions/find-voucher-by-code.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 PiggyFindVoucherByCodeInput = z.object({\n code: z.string().describe(\"The unique code of the Voucher, which serves as its identifier\"),\n}).describe(\"Request schema for finding a voucher by its unique code.\");\nconst PiggyFindVoucherByCode_VoucherContactSchema = z.object({\n uuid: z.string().describe(\"UUID of the contact\").nullable().optional(),\n email: z.string().describe(\"Email of the contact\").nullable().optional(),\n}).passthrough().describe(\"Contact associated with the voucher.\");\nconst PiggyFindVoucherByCode_VoucherPromotionSchema = z.object({\n name: z.string().describe(\"Name of the promotion\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the promotion\").nullable().optional(),\n description: z.string().describe(\"Description of the promotion\").nullable().optional(),\n}).passthrough().describe(\"Promotion details associated with the voucher.\");\nconst PiggyFindVoucherByCode_VoucherDataSchema = z.object({\n code: z.string().describe(\"Unique code of the voucher\").nullable(),\n name: z.string().describe(\"Name of the voucher\").nullable().optional(),\n uuid: z.string().describe(\"UUID of the voucher\").nullable(),\n status: z.string().describe(\"Status of the voucher (e.g., ACTIVE, REDEEMED)\").nullable().optional(),\n contact: PiggyFindVoucherByCode_VoucherContactSchema.nullable().optional(),\n promotion: PiggyFindVoucherByCode_VoucherPromotionSchema.nullable().optional(),\n attributes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n description: z.string().describe(\"Description of the voucher\").nullable().optional(),\n is_redeemed: z.boolean().describe(\"Indicates if the voucher has been redeemed\").nullable().optional(),\n redeemed_at: z.string().describe(\"Date when the voucher was redeemed in ISO 8601 format\").nullable().optional(),\n times_redeemed: z.number().int().describe(\"Number of times the voucher has been redeemed\").nullable().optional(),\n activation_date: z.string().describe(\"Activation date of the voucher in ISO 8601 format\").nullable().optional(),\n expiration_date: z.string().describe(\"Expiration date of the voucher in ISO 8601 format\").nullable().optional(),\n redemptions_remaining: z.number().int().describe(\"Number of redemptions remaining for the voucher\").nullable().optional(),\n total_redemptions_allowed: z.number().int().describe(\"Total number of redemptions allowed for the voucher\").nullable().optional(),\n}).passthrough().describe(\"Detailed voucher information.\");\nexport const PiggyFindVoucherByCodeOutput = z.object({\n data: PiggyFindVoucherByCode_VoucherDataSchema.nullable(),\n meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n}).passthrough().describe(\"Response schema for voucher retrieval by code.\");\n\nexport const piggyFindVoucherByCode: AppAction<\n typeof PiggyFindVoucherByCodeInput,\n typeof PiggyFindVoucherByCodeOutput,\n typeof piggy.credential\n> = action(\"PIGGY_FIND_VOUCHER_BY_CODE\", {\n slug: \"piggy-find-voucher-by-code\",\n name: \"Find Voucher By Code\",\n description: \"Tool to find a voucher by its unique code. Use when you need to retrieve voucher details, check redemption status, or validate a voucher code.\",\n input: PiggyFindVoucherByCodeInput,\n output: PiggyFindVoucherByCodeOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO,EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,EAC5F,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAA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EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B;AAMzD,MAAa,yBAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd0C,EAAE,OAAO;EACnD,MAAM,yCAAyC,SAAS;EACxD,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;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/get-contact-auth-token.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact-auth-token.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-auth-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyGetContactAuthTokenInput = z.object({\n contact_uuid: z.string().describe(\"UUID of the Contact for which to retrieve an auth token\"),\n}).describe(\"Path parameter for fetching a Contact auth token by UUID.\");\nconst PiggyGetContactAuthToken_AuthTokenDataSchema = z.object({\n auth_token: z.string().describe(\"Authentication token for the Contact\").nullable(),\n}).passthrough().describe(\"Inner data containing the auth token.\");\nexport const PiggyGetContactAuthTokenOutput = z.object({\n data: PiggyGetContactAuthToken_AuthTokenDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Response metadata (usually empty)\"),\n}).passthrough().describe(\"Response schema for Contact auth token retrieval.\");\n\nexport const piggyGetContactAuthToken = action(\"PIGGY_GET_CONTACT_AUTH_TOKEN\", {\n slug: \"piggy-get-contact-auth-token\",\n name: \"Get Contact Auth Token\",\n description: \"Tool to get an auth token for a Contact. Use after obtaining a Contact UUID and needing to verify identity for secure operations.\",\n input: PiggyGetContactAuthTokenInput,\n output: PiggyGetContactAuthTokenOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EAC7F,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,+CAA+CA,IAAAA,EAAE,OAAO,EAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAM,6CAA6C,SAAS;CAC5D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-contact-auth-token.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-auth-token.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 PiggyGetContactAuthTokenInput = z.object({\n contact_uuid: z.string().describe(\"UUID of the Contact for which to retrieve an auth token\"),\n}).describe(\"Path parameter for fetching a Contact auth token by UUID.\");\nconst PiggyGetContactAuthToken_AuthTokenDataSchema = z.object({\n auth_token: z.string().describe(\"Authentication token for the Contact\").nullable(),\n}).passthrough().describe(\"Inner data containing the auth token.\");\nexport const PiggyGetContactAuthTokenOutput = z.object({\n data: PiggyGetContactAuthToken_AuthTokenDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Response metadata (usually empty)\"),\n}).passthrough().describe(\"Response schema for Contact auth token retrieval.\");\n\nexport const piggyGetContactAuthToken: AppAction<\n typeof PiggyGetContactAuthTokenInput,\n typeof PiggyGetContactAuthTokenOutput,\n typeof piggy.credential\n> = action(\"PIGGY_GET_CONTACT_AUTH_TOKEN\", {\n slug: \"piggy-get-contact-auth-token\",\n name: \"Get Contact Auth Token\",\n description: \"Tool to get an auth token for a Contact. Use after obtaining a Contact UUID and needing to verify identity for secure operations.\",\n input: PiggyGetContactAuthTokenInput,\n output: PiggyGetContactAuthTokenOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EAC7F,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,+CAA+CA,IAAAA,EAAE,OAAO,EAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAM,6CAA6C,SAAS;CAC5D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,2BAITC,eAAAA,OAAO,gCAAgC;CACzC,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/get-contact-auth-token.d.ts
@@ -10,21 +12,7 @@ declare const PiggyGetContactAuthTokenOutput: z.ZodObject<{
10
12
  }, z.core.$loose>>;
11
13
  meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
14
  }, z.core.$loose>;
13
- declare const piggyGetContactAuthToken: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- contact_uuid: string;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
16
- connectionId: z.ZodString;
17
- entityId: z.ZodString;
18
- instanceId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>;
15
+ declare const piggyGetContactAuthToken: AppAction<typeof PiggyGetContactAuthTokenInput, typeof PiggyGetContactAuthTokenOutput, typeof piggy.credential>;
28
16
  //#endregion
29
17
  export { piggyGetContactAuthToken };
30
18
  //# sourceMappingURL=get-contact-auth-token.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact-auth-token.d.cts","names":[],"sources":["../../src/actions/get-contact-auth-token.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAM7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"get-contact-auth-token.d.cts","names":[],"sources":["../../src/actions/get-contact-auth-token.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAM7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/get-contact-auth-token.d.ts
@@ -10,21 +12,7 @@ declare const PiggyGetContactAuthTokenOutput: z.ZodObject<{
10
12
  }, z.core.$loose>>;
11
13
  meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
14
  }, z.core.$loose>;
13
- declare const piggyGetContactAuthToken: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- contact_uuid: string;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
16
- connectionId: z.ZodString;
17
- entityId: z.ZodString;
18
- instanceId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>;
15
+ declare const piggyGetContactAuthToken: AppAction<typeof PiggyGetContactAuthTokenInput, typeof PiggyGetContactAuthTokenOutput, typeof piggy.credential>;
28
16
  //#endregion
29
17
  export { piggyGetContactAuthToken };
30
18
  //# sourceMappingURL=get-contact-auth-token.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact-auth-token.d.mts","names":[],"sources":["../../src/actions/get-contact-auth-token.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAM7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"get-contact-auth-token.d.mts","names":[],"sources":["../../src/actions/get-contact-auth-token.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAM7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/get-contact-auth-token.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact-auth-token.mjs","names":[],"sources":["../../src/actions/get-contact-auth-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyGetContactAuthTokenInput = z.object({\n contact_uuid: z.string().describe(\"UUID of the Contact for which to retrieve an auth token\"),\n}).describe(\"Path parameter for fetching a Contact auth token by UUID.\");\nconst PiggyGetContactAuthToken_AuthTokenDataSchema = z.object({\n auth_token: z.string().describe(\"Authentication token for the Contact\").nullable(),\n}).passthrough().describe(\"Inner data containing the auth token.\");\nexport const PiggyGetContactAuthTokenOutput = z.object({\n data: PiggyGetContactAuthToken_AuthTokenDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Response metadata (usually empty)\"),\n}).passthrough().describe(\"Response schema for Contact auth token retrieval.\");\n\nexport const piggyGetContactAuthToken = action(\"PIGGY_GET_CONTACT_AUTH_TOKEN\", {\n slug: \"piggy-get-contact-auth-token\",\n name: \"Get Contact Auth Token\",\n description: \"Tool to get an auth token for a Contact. Use after obtaining a Contact UUID and needing to verify identity for secure operations.\",\n input: PiggyGetContactAuthTokenInput,\n output: PiggyGetContactAuthTokenOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,EACpD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EAC7F,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,+CAA+C,EAAE,OAAO,EAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAMjE,MAAa,2BAA2B,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,MAAM,6CAA6C,SAAS;EAC5D,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-contact-auth-token.mjs","names":[],"sources":["../../src/actions/get-contact-auth-token.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 PiggyGetContactAuthTokenInput = z.object({\n contact_uuid: z.string().describe(\"UUID of the Contact for which to retrieve an auth token\"),\n}).describe(\"Path parameter for fetching a Contact auth token by UUID.\");\nconst PiggyGetContactAuthToken_AuthTokenDataSchema = z.object({\n auth_token: z.string().describe(\"Authentication token for the Contact\").nullable(),\n}).passthrough().describe(\"Inner data containing the auth token.\");\nexport const PiggyGetContactAuthTokenOutput = z.object({\n data: PiggyGetContactAuthToken_AuthTokenDataSchema.nullable(),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Response metadata (usually empty)\"),\n}).passthrough().describe(\"Response schema for Contact auth token retrieval.\");\n\nexport const piggyGetContactAuthToken: AppAction<\n typeof PiggyGetContactAuthTokenInput,\n typeof PiggyGetContactAuthTokenOutput,\n typeof piggy.credential\n> = action(\"PIGGY_GET_CONTACT_AUTH_TOKEN\", {\n slug: \"piggy-get-contact-auth-token\",\n name: \"Get Contact Auth Token\",\n description: \"Tool to get an auth token for a Contact. Use after obtaining a Contact UUID and needing to verify identity for secure operations.\",\n input: PiggyGetContactAuthTokenInput,\n output: PiggyGetContactAuthTokenOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO,EACpD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EAC7F,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,+CAA+C,EAAE,OAAO,EAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAMjE,MAAa,2BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd4C,EAAE,OAAO;EACrD,MAAM,6CAA6C,SAAS;EAC5D,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-contacts-credit-balance.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-contacts-credit-balance.cjs","names":["z","action"],"sources":["../../src/actions/get-contacts-credit-balance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyGetContactsCreditBalanceInput = z.object({\n contact_uuid: z.string().describe(\"The UUID of the Contact for which to retrieve the credit balance\"),\n}).describe(\"Path parameter for fetching a Contact's credit balance by UUID.\");\nconst PiggyGetContactsCreditBalance_CreditBalanceDataSchema = z.object({\n balance: z.number().int().describe(\"The current credit balance amount for the contact\").nullable(),\n}).passthrough().describe(\"Credit balance data containing the current balance amount.\");\nexport const PiggyGetContactsCreditBalanceOutput = z.object({\n data: PiggyGetContactsCreditBalance_CreditBalanceDataSchema.nullable(),\n meta: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())]),\n}).passthrough().describe(\"Response schema for Contact credit balance retrieval.\");\n\nexport const piggyGetContactsCreditBalance = action(\"PIGGY_GET_CONTACTS_CREDIT_BALANCE\", {\n slug: \"piggy-get-contacts-credit-balance\",\n name: \"Get Contact's Credit Balance\",\n description: \"Tool to get a Contact's credit balance. Use when you need to check a contact's current credit balance before processing rewards or promotions.\",\n input: PiggyGetContactsCreditBalanceInput,\n output: PiggyGetContactsCreditBalanceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,EACtG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,wDAAwDA,IAAAA,EAAE,OAAO,EACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAM,sDAAsD,SAAS;CACrE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-contacts-credit-balance.cjs","names":["z","action"],"sources":["../../src/actions/get-contacts-credit-balance.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 PiggyGetContactsCreditBalanceInput = z.object({\n contact_uuid: z.string().describe(\"The UUID of the Contact for which to retrieve the credit balance\"),\n}).describe(\"Path parameter for fetching a Contact's credit balance by UUID.\");\nconst PiggyGetContactsCreditBalance_CreditBalanceDataSchema = z.object({\n balance: z.number().int().describe(\"The current credit balance amount for the contact\").nullable(),\n}).passthrough().describe(\"Credit balance data containing the current balance amount.\");\nexport const PiggyGetContactsCreditBalanceOutput = z.object({\n data: PiggyGetContactsCreditBalance_CreditBalanceDataSchema.nullable(),\n meta: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())]),\n}).passthrough().describe(\"Response schema for Contact credit balance retrieval.\");\n\nexport const piggyGetContactsCreditBalance: AppAction<\n typeof PiggyGetContactsCreditBalanceInput,\n typeof PiggyGetContactsCreditBalanceOutput,\n typeof piggy.credential\n> = action(\"PIGGY_GET_CONTACTS_CREDIT_BALANCE\", {\n slug: \"piggy-get-contacts-credit-balance\",\n name: \"Get Contact's Credit Balance\",\n description: \"Tool to get a Contact's credit balance. Use when you need to check a contact's current credit balance before processing rewards or promotions.\",\n input: PiggyGetContactsCreditBalanceInput,\n output: PiggyGetContactsCreditBalanceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,EACtG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,wDAAwDA,IAAAA,EAAE,OAAO,EACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAM,sDAAsD,SAAS;CACrE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,gCAITC,eAAAA,OAAO,qCAAqC;CAC9C,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/get-contacts-credit-balance.d.ts
@@ -10,21 +12,7 @@ declare const PiggyGetContactsCreditBalanceOutput: z.ZodObject<{
10
12
  }, z.core.$loose>>;
11
13
  meta: z.ZodUnion<readonly [z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
12
14
  }, z.core.$loose>;
13
- declare const piggyGetContactsCreditBalance: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- contact_uuid: string;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
16
- connectionId: z.ZodString;
17
- entityId: z.ZodString;
18
- instanceId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>;
15
+ declare const piggyGetContactsCreditBalance: AppAction<typeof PiggyGetContactsCreditBalanceInput, typeof PiggyGetContactsCreditBalanceOutput, typeof piggy.credential>;
28
16
  //#endregion
29
17
  export { piggyGetContactsCreditBalance };
30
18
  //# sourceMappingURL=get-contacts-credit-balance.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-contacts-credit-balance.d.cts","names":[],"sources":["../../src/actions/get-contacts-credit-balance.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAMlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;cAKnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"get-contacts-credit-balance.d.cts","names":[],"sources":["../../src/actions/get-contacts-credit-balance.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAMlC,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/get-contacts-credit-balance.d.ts
@@ -10,21 +12,7 @@ declare const PiggyGetContactsCreditBalanceOutput: z.ZodObject<{
10
12
  }, z.core.$loose>>;
11
13
  meta: z.ZodUnion<readonly [z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
12
14
  }, z.core.$loose>;
13
- declare const piggyGetContactsCreditBalance: import("@keystrokehq/action").WorkflowActionDefinition<{
14
- contact_uuid: string;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
16
- connectionId: z.ZodString;
17
- entityId: z.ZodString;
18
- instanceId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>;
15
+ declare const piggyGetContactsCreditBalance: AppAction<typeof PiggyGetContactsCreditBalanceInput, typeof PiggyGetContactsCreditBalanceOutput, typeof piggy.credential>;
28
16
  //#endregion
29
17
  export { piggyGetContactsCreditBalance };
30
18
  //# sourceMappingURL=get-contacts-credit-balance.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-contacts-credit-balance.d.mts","names":[],"sources":["../../src/actions/get-contacts-credit-balance.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAMlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;cAKnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"get-contacts-credit-balance.d.mts","names":[],"sources":["../../src/actions/get-contacts-credit-balance.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAMlC,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/get-contacts-credit-balance.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-contacts-credit-balance.mjs","names":[],"sources":["../../src/actions/get-contacts-credit-balance.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyGetContactsCreditBalanceInput = z.object({\n contact_uuid: z.string().describe(\"The UUID of the Contact for which to retrieve the credit balance\"),\n}).describe(\"Path parameter for fetching a Contact's credit balance by UUID.\");\nconst PiggyGetContactsCreditBalance_CreditBalanceDataSchema = z.object({\n balance: z.number().int().describe(\"The current credit balance amount for the contact\").nullable(),\n}).passthrough().describe(\"Credit balance data containing the current balance amount.\");\nexport const PiggyGetContactsCreditBalanceOutput = z.object({\n data: PiggyGetContactsCreditBalance_CreditBalanceDataSchema.nullable(),\n meta: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())]),\n}).passthrough().describe(\"Response schema for Contact credit balance retrieval.\");\n\nexport const piggyGetContactsCreditBalance = action(\"PIGGY_GET_CONTACTS_CREDIT_BALANCE\", {\n slug: \"piggy-get-contacts-credit-balance\",\n name: \"Get Contact's Credit Balance\",\n description: \"Tool to get a Contact's credit balance. Use when you need to check a contact's current credit balance before processing rewards or promotions.\",\n input: PiggyGetContactsCreditBalanceInput,\n output: PiggyGetContactsCreditBalanceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO,EACzD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,EACtG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,wDAAwD,EAAE,OAAO,EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAMtF,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAViD,EAAE,OAAO;EAC1D,MAAM,sDAAsD,SAAS;EACrE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-contacts-credit-balance.mjs","names":[],"sources":["../../src/actions/get-contacts-credit-balance.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 PiggyGetContactsCreditBalanceInput = z.object({\n contact_uuid: z.string().describe(\"The UUID of the Contact for which to retrieve the credit balance\"),\n}).describe(\"Path parameter for fetching a Contact's credit balance by UUID.\");\nconst PiggyGetContactsCreditBalance_CreditBalanceDataSchema = z.object({\n balance: z.number().int().describe(\"The current credit balance amount for the contact\").nullable(),\n}).passthrough().describe(\"Credit balance data containing the current balance amount.\");\nexport const PiggyGetContactsCreditBalanceOutput = z.object({\n data: PiggyGetContactsCreditBalance_CreditBalanceDataSchema.nullable(),\n meta: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())]),\n}).passthrough().describe(\"Response schema for Contact credit balance retrieval.\");\n\nexport const piggyGetContactsCreditBalance: AppAction<\n typeof PiggyGetContactsCreditBalanceInput,\n typeof PiggyGetContactsCreditBalanceOutput,\n typeof piggy.credential\n> = action(\"PIGGY_GET_CONTACTS_CREDIT_BALANCE\", {\n slug: \"piggy-get-contacts-credit-balance\",\n name: \"Get Contact's Credit Balance\",\n description: \"Tool to get a Contact's credit balance. Use when you need to check a contact's current credit balance before processing rewards or promotions.\",\n input: PiggyGetContactsCreditBalanceInput,\n output: PiggyGetContactsCreditBalanceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqC,EAAE,OAAO,EACzD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,EACtG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,wDAAwD,EAAE,OAAO,EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,EACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAMtF,MAAa,gCAIT,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdiD,EAAE,OAAO;EAC1D,MAAM,sDAAsD,SAAS;EACrE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAWhB;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/list-forms.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-forms.cjs","names":["z","action"],"sources":["../../src/actions/list-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PiggyListFormsInput = z.object({}).describe(\"Request model for listing forms. No parameters required.\");\nconst PiggyListForms_FormDataSchema = z.object({\n url: z.string().describe(\"URL of the form\").nullable(),\n name: z.string().describe(\"Name of the form\").nullable(),\n type: z.string().describe(\"Type of the form\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the form\").nullable(),\n status: z.string().describe(\"Status of the form\").nullable(),\n}).passthrough().describe(\"Individual form object in the response.\");\nexport const PiggyListFormsOutput = z.object({\n data: z.array(PiggyListForms_FormDataSchema).describe(\"List of form objects\"),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Response metadata (usually empty)\"),\n}).passthrough().describe(\"Response schema for listing forms.\");\n\nexport const piggyListForms = action(\"PIGGY_LIST_FORMS\", {\n slug: \"piggy-list-forms\",\n name: \"List Forms\",\n description: \"Tool to list all forms in the Piggy account. Use when you need to retrieve available forms for customer interactions.\",\n input: PiggyListFormsInput,\n output: PiggyListFormsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACnH,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,sBAAsB;CAC5E,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-forms.cjs","names":["z","action"],"sources":["../../src/actions/list-forms.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 PiggyListFormsInput = z.object({}).describe(\"Request model for listing forms. No parameters required.\");\nconst PiggyListForms_FormDataSchema = z.object({\n url: z.string().describe(\"URL of the form\").nullable(),\n name: z.string().describe(\"Name of the form\").nullable(),\n type: z.string().describe(\"Type of the form\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the form\").nullable(),\n status: z.string().describe(\"Status of the form\").nullable(),\n}).passthrough().describe(\"Individual form object in the response.\");\nexport const PiggyListFormsOutput = z.object({\n data: z.array(PiggyListForms_FormDataSchema).describe(\"List of form objects\"),\n meta: z.array(z.record(z.string(), z.unknown())).describe(\"Response metadata (usually empty)\"),\n}).passthrough().describe(\"Response schema for listing forms.\");\n\nexport const piggyListForms: AppAction<\n typeof PiggyListFormsInput,\n typeof PiggyListFormsOutput,\n typeof piggy.credential\n> = action(\"PIGGY_LIST_FORMS\", {\n slug: \"piggy-list-forms\",\n name: \"List Forms\",\n description: \"Tool to list all forms in the Piggy account. Use when you need to retrieve available forms for customer interactions.\",\n input: PiggyListFormsInput,\n output: PiggyListFormsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACnH,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,sBAAsB;CAC5E,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,iBAITC,eAAAA,OAAO,oBAAoB;CAC7B,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/list-forms.d.ts
@@ -12,19 +14,7 @@ declare const PiggyListFormsOutput: z.ZodObject<{
12
14
  }, z.core.$loose>>;
13
15
  meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
16
  }, z.core.$loose>;
15
- declare const piggyListForms: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
16
- connectionId: z.ZodString;
17
- entityId: z.ZodString;
18
- instanceId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>;
17
+ declare const piggyListForms: AppAction<typeof PiggyListFormsInput, typeof PiggyListFormsOutput, typeof piggy.credential>;
28
18
  //#endregion
29
19
  export { piggyListForms };
30
20
  //# sourceMappingURL=list-forms.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-forms.d.cts","names":[],"sources":["../../src/actions/list-forms.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAKpB,cAAA,gCAAc,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,UAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-forms.d.cts","names":[],"sources":["../../src/actions/list-forms.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAKpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,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/list-forms.d.ts
@@ -12,19 +14,7 @@ declare const PiggyListFormsOutput: z.ZodObject<{
12
14
  }, z.core.$loose>>;
13
15
  meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
16
  }, z.core.$loose>;
15
- declare const piggyListForms: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
16
- connectionId: z.ZodString;
17
- entityId: z.ZodString;
18
- instanceId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"piggy", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>;
17
+ declare const piggyListForms: AppAction<typeof PiggyListFormsInput, typeof PiggyListFormsOutput, typeof piggy.credential>;
28
18
  //#endregion
29
19
  export { piggyListForms };
30
20
  //# sourceMappingURL=list-forms.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-forms.d.mts","names":[],"sources":["../../src/actions/list-forms.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAKpB,cAAA,gCAAc,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,UAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-forms.d.mts","names":[],"sources":["../../src/actions/list-forms.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;cAKpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,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/list-forms.ts