@keystrokehq/piggy 0.1.2 → 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.
- package/dist/actions/claim-anonymous-contact.cjs +2 -2
- package/dist/actions/claim-anonymous-contact.cjs.map +1 -1
- package/dist/actions/claim-anonymous-contact.d.cts +2 -2
- package/dist/actions/claim-anonymous-contact.d.mts +2 -2
- package/dist/actions/claim-anonymous-contact.mjs +2 -2
- package/dist/actions/claim-anonymous-contact.mjs.map +1 -1
- package/dist/actions/create-contact-attribute.cjs +4 -4
- package/dist/actions/create-contact-attribute.cjs.map +1 -1
- package/dist/actions/create-contact-attribute.d.cts +5 -4
- package/dist/actions/create-contact-attribute.d.mts +5 -4
- package/dist/actions/create-contact-attribute.mjs +4 -4
- package/dist/actions/create-contact-attribute.mjs.map +1 -1
- package/dist/actions/create-credit-reception.cjs +1 -1
- package/dist/actions/create-credit-reception.cjs.map +1 -1
- package/dist/actions/create-credit-reception.d.cts +1 -1
- package/dist/actions/create-credit-reception.d.mts +1 -1
- package/dist/actions/create-credit-reception.mjs +1 -1
- package/dist/actions/create-credit-reception.mjs.map +1 -1
- package/dist/actions/create-vouchers-batch.cjs +3 -3
- package/dist/actions/create-vouchers-batch.cjs.map +1 -1
- package/dist/actions/create-vouchers-batch.d.cts +4 -3
- package/dist/actions/create-vouchers-batch.d.mts +4 -3
- package/dist/actions/create-vouchers-batch.mjs +3 -3
- package/dist/actions/create-vouchers-batch.mjs.map +1 -1
- package/dist/actions/find-or-create-products.cjs +4 -4
- package/dist/actions/find-or-create-products.cjs.map +1 -1
- package/dist/actions/find-or-create-products.d.cts +5 -4
- package/dist/actions/find-or-create-products.d.mts +5 -4
- package/dist/actions/find-or-create-products.mjs +4 -4
- package/dist/actions/find-or-create-products.mjs.map +1 -1
- package/dist/actions/find-voucher-by-code.cjs +6 -6
- package/dist/actions/find-voucher-by-code.cjs.map +1 -1
- package/dist/actions/find-voucher-by-code.d.cts +6 -6
- package/dist/actions/find-voucher-by-code.d.mts +6 -6
- package/dist/actions/find-voucher-by-code.mjs +6 -6
- package/dist/actions/find-voucher-by-code.mjs.map +1 -1
- package/dist/actions/get-contact-auth-token.cjs +2 -2
- package/dist/actions/get-contact-auth-token.cjs.map +1 -1
- package/dist/actions/get-contact-auth-token.d.cts +2 -2
- package/dist/actions/get-contact-auth-token.d.mts +2 -2
- package/dist/actions/get-contact-auth-token.mjs +2 -2
- package/dist/actions/get-contact-auth-token.mjs.map +1 -1
- package/dist/actions/get-contacts-credit-balance.cjs +2 -2
- package/dist/actions/get-contacts-credit-balance.cjs.map +1 -1
- package/dist/actions/get-contacts-credit-balance.d.cts +2 -2
- package/dist/actions/get-contacts-credit-balance.d.mts +2 -2
- package/dist/actions/get-contacts-credit-balance.mjs +2 -2
- package/dist/actions/get-contacts-credit-balance.mjs.map +1 -1
- package/dist/actions/list-forms.cjs +2 -2
- package/dist/actions/list-forms.cjs.map +1 -1
- package/dist/actions/list-forms.d.cts +2 -2
- package/dist/actions/list-forms.d.mts +2 -2
- package/dist/actions/list-forms.mjs +2 -2
- package/dist/actions/list-forms.mjs.map +1 -1
- package/dist/actions/list-perks.cjs +3 -3
- package/dist/actions/list-perks.cjs.map +1 -1
- package/dist/actions/list-perks.d.cts +3 -3
- package/dist/actions/list-perks.d.mts +3 -3
- package/dist/actions/list-perks.mjs +3 -3
- package/dist/actions/list-perks.mjs.map +1 -1
- package/dist/actions/merge-contacts.cjs +1 -1
- package/dist/actions/merge-contacts.cjs.map +1 -1
- package/dist/actions/merge-contacts.d.cts +1 -1
- package/dist/actions/merge-contacts.d.mts +1 -1
- package/dist/actions/merge-contacts.mjs +1 -1
- package/dist/actions/merge-contacts.mjs.map +1 -1
- package/dist/actions/send-contact-verification-email.cjs +2 -2
- package/dist/actions/send-contact-verification-email.cjs.map +1 -1
- package/dist/actions/send-contact-verification-email.d.cts +2 -2
- package/dist/actions/send-contact-verification-email.d.mts +2 -2
- package/dist/actions/send-contact-verification-email.mjs +2 -2
- package/dist/actions/send-contact-verification-email.mjs.map +1 -1
- package/dist/actions/update-bookings.cjs +1 -1
- package/dist/actions/update-bookings.cjs.map +1 -1
- package/dist/actions/update-bookings.d.cts +1 -1
- package/dist/actions/update-bookings.d.mts +1 -1
- package/dist/actions/update-bookings.mjs +1 -1
- package/dist/actions/update-bookings.mjs.map +1 -1
- package/dist/actions/update-contact-identifiers.cjs +2 -2
- package/dist/actions/update-contact-identifiers.cjs.map +1 -1
- package/dist/actions/update-contact-identifiers.d.cts +2 -2
- package/dist/actions/update-contact-identifiers.d.mts +2 -2
- package/dist/actions/update-contact-identifiers.mjs +2 -2
- package/dist/actions/update-contact-identifiers.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ declare const PiggyFindOrCreateProductsInput: z.ZodObject<{
|
|
|
6
6
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7
7
|
uuid: z.ZodOptional<z.ZodString>;
|
|
8
8
|
external_identifier: z.ZodOptional<z.ZodString>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>>>;
|
|
10
10
|
description: z.ZodOptional<z.ZodString>;
|
|
11
11
|
external_identifier: z.ZodString;
|
|
12
12
|
}, z.core.$strip>;
|
|
@@ -17,16 +17,17 @@ declare const PiggyFindOrCreateProductsOutput: z.ZodObject<{
|
|
|
17
17
|
categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
18
18
|
uuid: z.ZodNullable<z.ZodString>;
|
|
19
19
|
external_identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>>>;
|
|
21
21
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
external_identifier: z.ZodNullable<z.ZodString>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
24
|
meta: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>;
|
|
26
26
|
declare const piggyFindOrCreateProducts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
27
|
external_identifier: string;
|
|
28
28
|
name?: string | undefined;
|
|
29
29
|
categories?: {
|
|
30
|
+
[x: string]: unknown;
|
|
30
31
|
uuid?: string | undefined;
|
|
31
32
|
external_identifier?: string | undefined;
|
|
32
33
|
}[] | undefined;
|
|
@@ -6,21 +6,21 @@ const PiggyFindOrCreateProductsInput = z.object({
|
|
|
6
6
|
categories: z.array(z.object({
|
|
7
7
|
uuid: z.string().describe("UUID of an existing category to associate with the product").optional(),
|
|
8
8
|
external_identifier: z.string().describe("External identifier of an existing category to associate with the product").optional()
|
|
9
|
-
}).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(),
|
|
9
|
+
}).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(),
|
|
10
10
|
description: z.string().describe("The description of the Product").optional(),
|
|
11
11
|
external_identifier: z.string().describe("A unique identifier from your system to find or create the product")
|
|
12
12
|
}).describe("Request model for finding or creating a product in Piggy.");
|
|
13
13
|
const PiggyFindOrCreateProducts_ProductCategoryResponseSchema = z.object({
|
|
14
14
|
uuid: z.string().describe("UUID of the category").nullable(),
|
|
15
15
|
external_identifier: z.string().describe("External identifier of the category").nullable().optional()
|
|
16
|
-
}).describe("Category information in product response.");
|
|
16
|
+
}).passthrough().describe("Category information in product response.");
|
|
17
17
|
const PiggyFindOrCreateProducts_ProductDataSchema = z.object({
|
|
18
18
|
name: z.string().describe("Name of the product").nullable(),
|
|
19
19
|
uuid: z.string().describe("Unique identifier for the product in Piggy system").nullable(),
|
|
20
20
|
categories: z.array(PiggyFindOrCreateProducts_ProductCategoryResponseSchema).describe("List of categories associated with the product").nullable().optional(),
|
|
21
21
|
description: z.string().describe("Description of the product").nullable().optional(),
|
|
22
22
|
external_identifier: z.string().describe("External identifier from your system").nullable()
|
|
23
|
-
}).describe("Product data object returned by the API.");
|
|
23
|
+
}).passthrough().describe("Product data object returned by the API.");
|
|
24
24
|
const piggyFindOrCreateProducts = action("PIGGY_FIND_OR_CREATE_PRODUCTS", {
|
|
25
25
|
slug: "piggy-find-or-create-products",
|
|
26
26
|
name: "Find or Create Products",
|
|
@@ -29,7 +29,7 @@ const piggyFindOrCreateProducts = action("PIGGY_FIND_OR_CREATE_PRODUCTS", {
|
|
|
29
29
|
output: z.object({
|
|
30
30
|
data: PiggyFindOrCreateProducts_ProductDataSchema.nullable(),
|
|
31
31
|
meta: z.array(z.unknown()).describe("Metadata array; typically empty").nullable().optional()
|
|
32
|
-
}).describe("Response model for finding or creating a product.")
|
|
32
|
+
}).passthrough().describe("Response model for finding or creating a product.")
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
35
|
export { piggyFindOrCreateProducts };
|
|
@@ -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}).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}).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}).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}).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,SAAS,6CAA6C,CAAC,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;
|
|
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"}
|
|
@@ -5,12 +5,12 @@ const PiggyFindVoucherByCodeInput = zod.z.object({ code: zod.z.string().describe
|
|
|
5
5
|
const PiggyFindVoucherByCode_VoucherContactSchema = zod.z.object({
|
|
6
6
|
uuid: zod.z.string().describe("UUID of the contact").nullable().optional(),
|
|
7
7
|
email: zod.z.string().describe("Email of the contact").nullable().optional()
|
|
8
|
-
}).describe("Contact associated with the voucher.");
|
|
8
|
+
}).passthrough().describe("Contact associated with the voucher.");
|
|
9
9
|
const PiggyFindVoucherByCode_VoucherPromotionSchema = zod.z.object({
|
|
10
10
|
name: zod.z.string().describe("Name of the promotion").nullable().optional(),
|
|
11
11
|
uuid: zod.z.string().describe("UUID of the promotion").nullable().optional(),
|
|
12
12
|
description: zod.z.string().describe("Description of the promotion").nullable().optional()
|
|
13
|
-
}).describe("Promotion details associated with the voucher.");
|
|
13
|
+
}).passthrough().describe("Promotion details associated with the voucher.");
|
|
14
14
|
const PiggyFindVoucherByCode_VoucherDataSchema = zod.z.object({
|
|
15
15
|
code: zod.z.string().describe("Unique code of the voucher").nullable(),
|
|
16
16
|
name: zod.z.string().describe("Name of the voucher").nullable().optional(),
|
|
@@ -18,7 +18,7 @@ const PiggyFindVoucherByCode_VoucherDataSchema = zod.z.object({
|
|
|
18
18
|
status: zod.z.string().describe("Status of the voucher (e.g., ACTIVE, REDEEMED)").nullable().optional(),
|
|
19
19
|
contact: PiggyFindVoucherByCode_VoucherContactSchema.nullable().optional(),
|
|
20
20
|
promotion: PiggyFindVoucherByCode_VoucherPromotionSchema.nullable().optional(),
|
|
21
|
-
attributes: zod.z.union([zod.z.
|
|
21
|
+
attributes: zod.z.union([zod.z.record(zod.z.string(), zod.z.unknown()), zod.z.array(zod.z.unknown())]).nullable().optional(),
|
|
22
22
|
description: zod.z.string().describe("Description of the voucher").nullable().optional(),
|
|
23
23
|
is_redeemed: zod.z.boolean().describe("Indicates if the voucher has been redeemed").nullable().optional(),
|
|
24
24
|
redeemed_at: zod.z.string().describe("Date when the voucher was redeemed in ISO 8601 format").nullable().optional(),
|
|
@@ -27,11 +27,11 @@ const PiggyFindVoucherByCode_VoucherDataSchema = zod.z.object({
|
|
|
27
27
|
expiration_date: zod.z.string().describe("Expiration date of the voucher in ISO 8601 format").nullable().optional(),
|
|
28
28
|
redemptions_remaining: zod.z.number().int().describe("Number of redemptions remaining for the voucher").nullable().optional(),
|
|
29
29
|
total_redemptions_allowed: zod.z.number().int().describe("Total number of redemptions allowed for the voucher").nullable().optional()
|
|
30
|
-
}).describe("Detailed voucher information.");
|
|
30
|
+
}).passthrough().describe("Detailed voucher information.");
|
|
31
31
|
const PiggyFindVoucherByCodeOutput = zod.z.object({
|
|
32
32
|
data: PiggyFindVoucherByCode_VoucherDataSchema.nullable(),
|
|
33
|
-
meta: zod.z.union([zod.z.
|
|
34
|
-
}).describe("Response schema for voucher retrieval by code.");
|
|
33
|
+
meta: zod.z.union([zod.z.record(zod.z.string(), zod.z.unknown()), zod.z.array(zod.z.unknown())]).nullable().optional()
|
|
34
|
+
}).passthrough().describe("Response schema for voucher retrieval by code.");
|
|
35
35
|
const piggyFindVoucherByCode = require_action.action("PIGGY_FIND_VOUCHER_BY_CODE", {
|
|
36
36
|
slug: "piggy-find-voucher-by-code",
|
|
37
37
|
name: "Find Voucher By Code",
|
|
@@ -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}).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}).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.
|
|
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":"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"}
|
|
@@ -13,13 +13,13 @@ declare const PiggyFindVoucherByCodeOutput: z.ZodObject<{
|
|
|
13
13
|
contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
14
|
uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>>;
|
|
17
17
|
promotion: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
18
18
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
}, z.core.$
|
|
22
|
-
attributes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.
|
|
21
|
+
}, z.core.$loose>>>;
|
|
22
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
23
23
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
is_redeemed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
25
25
|
redeemed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -28,9 +28,9 @@ declare const PiggyFindVoucherByCodeOutput: z.ZodObject<{
|
|
|
28
28
|
expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
redemptions_remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
30
|
total_redemptions_allowed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
-
}, z.core.$
|
|
32
|
-
meta: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.
|
|
33
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
33
|
+
}, z.core.$loose>;
|
|
34
34
|
declare const piggyFindVoucherByCode: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
35
35
|
code: string;
|
|
36
36
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -13,13 +13,13 @@ declare const PiggyFindVoucherByCodeOutput: z.ZodObject<{
|
|
|
13
13
|
contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
14
|
uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>>;
|
|
17
17
|
promotion: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
18
18
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
}, z.core.$
|
|
22
|
-
attributes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.
|
|
21
|
+
}, z.core.$loose>>>;
|
|
22
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
23
23
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
is_redeemed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
25
25
|
redeemed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -28,9 +28,9 @@ declare const PiggyFindVoucherByCodeOutput: z.ZodObject<{
|
|
|
28
28
|
expiration_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
redemptions_remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
30
|
total_redemptions_allowed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
-
}, z.core.$
|
|
32
|
-
meta: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.
|
|
33
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
33
|
+
}, z.core.$loose>;
|
|
34
34
|
declare const piggyFindVoucherByCode: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
35
35
|
code: string;
|
|
36
36
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,12 +5,12 @@ const PiggyFindVoucherByCodeInput = z.object({ code: z.string().describe("The un
|
|
|
5
5
|
const PiggyFindVoucherByCode_VoucherContactSchema = z.object({
|
|
6
6
|
uuid: z.string().describe("UUID of the contact").nullable().optional(),
|
|
7
7
|
email: z.string().describe("Email of the contact").nullable().optional()
|
|
8
|
-
}).describe("Contact associated with the voucher.");
|
|
8
|
+
}).passthrough().describe("Contact associated with the voucher.");
|
|
9
9
|
const PiggyFindVoucherByCode_VoucherPromotionSchema = z.object({
|
|
10
10
|
name: z.string().describe("Name of the promotion").nullable().optional(),
|
|
11
11
|
uuid: z.string().describe("UUID of the promotion").nullable().optional(),
|
|
12
12
|
description: z.string().describe("Description of the promotion").nullable().optional()
|
|
13
|
-
}).describe("Promotion details associated with the voucher.");
|
|
13
|
+
}).passthrough().describe("Promotion details associated with the voucher.");
|
|
14
14
|
const PiggyFindVoucherByCode_VoucherDataSchema = z.object({
|
|
15
15
|
code: z.string().describe("Unique code of the voucher").nullable(),
|
|
16
16
|
name: z.string().describe("Name of the voucher").nullable().optional(),
|
|
@@ -18,7 +18,7 @@ const PiggyFindVoucherByCode_VoucherDataSchema = z.object({
|
|
|
18
18
|
status: z.string().describe("Status of the voucher (e.g., ACTIVE, REDEEMED)").nullable().optional(),
|
|
19
19
|
contact: PiggyFindVoucherByCode_VoucherContactSchema.nullable().optional(),
|
|
20
20
|
promotion: PiggyFindVoucherByCode_VoucherPromotionSchema.nullable().optional(),
|
|
21
|
-
attributes: z.union([z.
|
|
21
|
+
attributes: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),
|
|
22
22
|
description: z.string().describe("Description of the voucher").nullable().optional(),
|
|
23
23
|
is_redeemed: z.boolean().describe("Indicates if the voucher has been redeemed").nullable().optional(),
|
|
24
24
|
redeemed_at: z.string().describe("Date when the voucher was redeemed in ISO 8601 format").nullable().optional(),
|
|
@@ -27,7 +27,7 @@ const PiggyFindVoucherByCode_VoucherDataSchema = z.object({
|
|
|
27
27
|
expiration_date: z.string().describe("Expiration date of the voucher in ISO 8601 format").nullable().optional(),
|
|
28
28
|
redemptions_remaining: z.number().int().describe("Number of redemptions remaining for the voucher").nullable().optional(),
|
|
29
29
|
total_redemptions_allowed: z.number().int().describe("Total number of redemptions allowed for the voucher").nullable().optional()
|
|
30
|
-
}).describe("Detailed voucher information.");
|
|
30
|
+
}).passthrough().describe("Detailed voucher information.");
|
|
31
31
|
const piggyFindVoucherByCode = action("PIGGY_FIND_VOUCHER_BY_CODE", {
|
|
32
32
|
slug: "piggy-find-voucher-by-code",
|
|
33
33
|
name: "Find Voucher By Code",
|
|
@@ -35,8 +35,8 @@ const piggyFindVoucherByCode = action("PIGGY_FIND_VOUCHER_BY_CODE", {
|
|
|
35
35
|
input: PiggyFindVoucherByCodeInput,
|
|
36
36
|
output: z.object({
|
|
37
37
|
data: PiggyFindVoucherByCode_VoucherDataSchema.nullable(),
|
|
38
|
-
meta: z.union([z.
|
|
39
|
-
}).describe("Response schema for voucher retrieval by code.")
|
|
38
|
+
meta: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional()
|
|
39
|
+
}).passthrough().describe("Response schema for voucher retrieval by code.")
|
|
40
40
|
});
|
|
41
41
|
//#endregion
|
|
42
42
|
export { piggyFindVoucherByCode };
|
|
@@ -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}).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}).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.
|
|
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":"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"}
|
|
@@ -2,11 +2,11 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/get-contact-auth-token.ts
|
|
4
4
|
const PiggyGetContactAuthTokenInput = zod.z.object({ contact_uuid: zod.z.string().describe("UUID of the Contact for which to retrieve an auth token") }).describe("Path parameter for fetching a Contact auth token by UUID.");
|
|
5
|
-
const PiggyGetContactAuthToken_AuthTokenDataSchema = zod.z.object({ auth_token: zod.z.string().describe("Authentication token for the Contact").nullable() }).describe("Inner data containing the auth token.");
|
|
5
|
+
const PiggyGetContactAuthToken_AuthTokenDataSchema = zod.z.object({ auth_token: zod.z.string().describe("Authentication token for the Contact").nullable() }).passthrough().describe("Inner data containing the auth token.");
|
|
6
6
|
const PiggyGetContactAuthTokenOutput = zod.z.object({
|
|
7
7
|
data: PiggyGetContactAuthToken_AuthTokenDataSchema.nullable(),
|
|
8
8
|
meta: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Response metadata (usually empty)")
|
|
9
|
-
}).describe("Response schema for Contact auth token retrieval.");
|
|
9
|
+
}).passthrough().describe("Response schema for Contact auth token retrieval.");
|
|
10
10
|
const piggyGetContactAuthToken = require_action.action("PIGGY_GET_CONTACT_AUTH_TOKEN", {
|
|
11
11
|
slug: "piggy-get-contact-auth-token",
|
|
12
12
|
name: "Get Contact Auth Token",
|
|
@@ -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}).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}).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,SAAS,uCAAuC;
|
|
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"}
|
|
@@ -7,9 +7,9 @@ declare const PiggyGetContactAuthTokenInput: z.ZodObject<{
|
|
|
7
7
|
declare const PiggyGetContactAuthTokenOutput: z.ZodObject<{
|
|
8
8
|
data: z.ZodNullable<z.ZodObject<{
|
|
9
9
|
auth_token: z.ZodNullable<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
11
|
meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const piggyGetContactAuthToken: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
contact_uuid: string;
|
|
15
15
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -7,9 +7,9 @@ declare const PiggyGetContactAuthTokenInput: z.ZodObject<{
|
|
|
7
7
|
declare const PiggyGetContactAuthTokenOutput: z.ZodObject<{
|
|
8
8
|
data: z.ZodNullable<z.ZodObject<{
|
|
9
9
|
auth_token: z.ZodNullable<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
11
|
meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const piggyGetContactAuthToken: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
contact_uuid: string;
|
|
15
15
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -2,7 +2,7 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/get-contact-auth-token.ts
|
|
4
4
|
const PiggyGetContactAuthTokenInput = z.object({ contact_uuid: z.string().describe("UUID of the Contact for which to retrieve an auth token") }).describe("Path parameter for fetching a Contact auth token by UUID.");
|
|
5
|
-
const PiggyGetContactAuthToken_AuthTokenDataSchema = z.object({ auth_token: z.string().describe("Authentication token for the Contact").nullable() }).describe("Inner data containing the auth token.");
|
|
5
|
+
const PiggyGetContactAuthToken_AuthTokenDataSchema = z.object({ auth_token: z.string().describe("Authentication token for the Contact").nullable() }).passthrough().describe("Inner data containing the auth token.");
|
|
6
6
|
const piggyGetContactAuthToken = action("PIGGY_GET_CONTACT_AUTH_TOKEN", {
|
|
7
7
|
slug: "piggy-get-contact-auth-token",
|
|
8
8
|
name: "Get Contact Auth Token",
|
|
@@ -11,7 +11,7 @@ const piggyGetContactAuthToken = action("PIGGY_GET_CONTACT_AUTH_TOKEN", {
|
|
|
11
11
|
output: z.object({
|
|
12
12
|
data: PiggyGetContactAuthToken_AuthTokenDataSchema.nullable(),
|
|
13
13
|
meta: z.array(z.record(z.string(), z.unknown())).describe("Response metadata (usually empty)")
|
|
14
|
-
}).describe("Response schema for Contact auth token retrieval.")
|
|
14
|
+
}).passthrough().describe("Response schema for Contact auth token retrieval.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { piggyGetContactAuthToken };
|
|
@@ -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}).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}).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,SAAS,uCAAuC;
|
|
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"}
|
|
@@ -2,11 +2,11 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/get-contacts-credit-balance.ts
|
|
4
4
|
const PiggyGetContactsCreditBalanceInput = zod.z.object({ contact_uuid: zod.z.string().describe("The UUID of the Contact for which to retrieve the credit balance") }).describe("Path parameter for fetching a Contact's credit balance by UUID.");
|
|
5
|
-
const PiggyGetContactsCreditBalance_CreditBalanceDataSchema = zod.z.object({ balance: zod.z.number().int().describe("The current credit balance amount for the contact").nullable() }).describe("Credit balance data containing the current balance amount.");
|
|
5
|
+
const PiggyGetContactsCreditBalance_CreditBalanceDataSchema = zod.z.object({ balance: zod.z.number().int().describe("The current credit balance amount for the contact").nullable() }).passthrough().describe("Credit balance data containing the current balance amount.");
|
|
6
6
|
const PiggyGetContactsCreditBalanceOutput = zod.z.object({
|
|
7
7
|
data: PiggyGetContactsCreditBalance_CreditBalanceDataSchema.nullable(),
|
|
8
8
|
meta: zod.z.union([zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())), zod.z.record(zod.z.string(), zod.z.unknown())])
|
|
9
|
-
}).describe("Response schema for Contact credit balance retrieval.");
|
|
9
|
+
}).passthrough().describe("Response schema for Contact credit balance retrieval.");
|
|
10
10
|
const piggyGetContactsCreditBalance = require_action.action("PIGGY_GET_CONTACTS_CREDIT_BALANCE", {
|
|
11
11
|
slug: "piggy-get-contacts-credit-balance",
|
|
12
12
|
name: "Get Contact's Credit Balance",
|
|
@@ -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}).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}).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,SAAS,4DAA4D;
|
|
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"}
|
|
@@ -7,9 +7,9 @@ declare const PiggyGetContactsCreditBalanceInput: z.ZodObject<{
|
|
|
7
7
|
declare const PiggyGetContactsCreditBalanceOutput: z.ZodObject<{
|
|
8
8
|
data: z.ZodNullable<z.ZodObject<{
|
|
9
9
|
balance: z.ZodNullable<z.ZodNumber>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
11
|
meta: z.ZodUnion<readonly [z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const piggyGetContactsCreditBalance: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
contact_uuid: string;
|
|
15
15
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -7,9 +7,9 @@ declare const PiggyGetContactsCreditBalanceInput: z.ZodObject<{
|
|
|
7
7
|
declare const PiggyGetContactsCreditBalanceOutput: z.ZodObject<{
|
|
8
8
|
data: z.ZodNullable<z.ZodObject<{
|
|
9
9
|
balance: z.ZodNullable<z.ZodNumber>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
11
|
meta: z.ZodUnion<readonly [z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const piggyGetContactsCreditBalance: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
14
|
contact_uuid: string;
|
|
15
15
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -2,7 +2,7 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/get-contacts-credit-balance.ts
|
|
4
4
|
const PiggyGetContactsCreditBalanceInput = z.object({ contact_uuid: z.string().describe("The UUID of the Contact for which to retrieve the credit balance") }).describe("Path parameter for fetching a Contact's credit balance by UUID.");
|
|
5
|
-
const PiggyGetContactsCreditBalance_CreditBalanceDataSchema = z.object({ balance: z.number().int().describe("The current credit balance amount for the contact").nullable() }).describe("Credit balance data containing the current balance amount.");
|
|
5
|
+
const PiggyGetContactsCreditBalance_CreditBalanceDataSchema = z.object({ balance: z.number().int().describe("The current credit balance amount for the contact").nullable() }).passthrough().describe("Credit balance data containing the current balance amount.");
|
|
6
6
|
const piggyGetContactsCreditBalance = action("PIGGY_GET_CONTACTS_CREDIT_BALANCE", {
|
|
7
7
|
slug: "piggy-get-contacts-credit-balance",
|
|
8
8
|
name: "Get Contact's Credit Balance",
|
|
@@ -11,7 +11,7 @@ const piggyGetContactsCreditBalance = action("PIGGY_GET_CONTACTS_CREDIT_BALANCE"
|
|
|
11
11
|
output: z.object({
|
|
12
12
|
data: PiggyGetContactsCreditBalance_CreditBalanceDataSchema.nullable(),
|
|
13
13
|
meta: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())])
|
|
14
|
-
}).describe("Response schema for Contact credit balance retrieval.")
|
|
14
|
+
}).passthrough().describe("Response schema for Contact credit balance retrieval.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { piggyGetContactsCreditBalance };
|
|
@@ -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}).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}).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,SAAS,4DAA4D;
|
|
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"}
|
|
@@ -8,11 +8,11 @@ const PiggyListForms_FormDataSchema = zod.z.object({
|
|
|
8
8
|
type: zod.z.string().describe("Type of the form").nullable(),
|
|
9
9
|
uuid: zod.z.string().describe("Unique identifier of the form").nullable(),
|
|
10
10
|
status: zod.z.string().describe("Status of the form").nullable()
|
|
11
|
-
}).describe("Individual form object in the response.");
|
|
11
|
+
}).passthrough().describe("Individual form object in the response.");
|
|
12
12
|
const PiggyListFormsOutput = zod.z.object({
|
|
13
13
|
data: zod.z.array(PiggyListForms_FormDataSchema).describe("List of form objects"),
|
|
14
14
|
meta: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Response metadata (usually empty)")
|
|
15
|
-
}).describe("Response schema for listing forms.");
|
|
15
|
+
}).passthrough().describe("Response schema for listing forms.");
|
|
16
16
|
const piggyListForms = require_action.action("PIGGY_LIST_FORMS", {
|
|
17
17
|
slug: "piggy-list-forms",
|
|
18
18
|
name: "List Forms",
|
|
@@ -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}).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}).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,SAAS,yCAAyC;
|
|
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"}
|
|
@@ -9,9 +9,9 @@ declare const PiggyListFormsOutput: z.ZodObject<{
|
|
|
9
9
|
type: z.ZodNullable<z.ZodString>;
|
|
10
10
|
uuid: z.ZodNullable<z.ZodString>;
|
|
11
11
|
status: z.ZodNullable<z.ZodString>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>>;
|
|
13
13
|
meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const piggyListForms: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { piggyListForms };
|
|
@@ -9,9 +9,9 @@ declare const PiggyListFormsOutput: z.ZodObject<{
|
|
|
9
9
|
type: z.ZodNullable<z.ZodString>;
|
|
10
10
|
uuid: z.ZodNullable<z.ZodString>;
|
|
11
11
|
status: z.ZodNullable<z.ZodString>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>>;
|
|
13
13
|
meta: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const piggyListForms: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { piggyListForms };
|
|
@@ -8,7 +8,7 @@ const PiggyListForms_FormDataSchema = z.object({
|
|
|
8
8
|
type: z.string().describe("Type of the form").nullable(),
|
|
9
9
|
uuid: z.string().describe("Unique identifier of the form").nullable(),
|
|
10
10
|
status: z.string().describe("Status of the form").nullable()
|
|
11
|
-
}).describe("Individual form object in the response.");
|
|
11
|
+
}).passthrough().describe("Individual form object in the response.");
|
|
12
12
|
const piggyListForms = action("PIGGY_LIST_FORMS", {
|
|
13
13
|
slug: "piggy-list-forms",
|
|
14
14
|
name: "List Forms",
|
|
@@ -17,7 +17,7 @@ const piggyListForms = action("PIGGY_LIST_FORMS", {
|
|
|
17
17
|
output: z.object({
|
|
18
18
|
data: z.array(PiggyListForms_FormDataSchema).describe("List of form objects"),
|
|
19
19
|
meta: z.array(z.record(z.string(), z.unknown())).describe("Response metadata (usually empty)")
|
|
20
|
-
}).describe("Response schema for listing forms.")
|
|
20
|
+
}).passthrough().describe("Response schema for listing forms.")
|
|
21
21
|
});
|
|
22
22
|
//#endregion
|
|
23
23
|
export { piggyListForms };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-forms.mjs","names":[],"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}).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}).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,sBAAsB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACnH,MAAM,gCAAgC,EAAE,OAAO;CAC7C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AAC7D,CAAC,CAAC,CAAC,SAAS,yCAAyC;
|
|
1
|
+
{"version":3,"file":"list-forms.mjs","names":[],"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,sBAAsB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACnH,MAAM,gCAAgC,EAAE,OAAO;CAC7C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAMnE,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVkC,EAAE,OAAO;EAC3C,MAAM,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,sBAAsB;EAC5E,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,oCAOhB;AACV,CAAC"}
|
|
@@ -6,13 +6,13 @@ const PiggyListPerks_PerkDataSchema = zod.z.object({
|
|
|
6
6
|
name: zod.z.string().describe("Internal name of the perk").nullable().optional(),
|
|
7
7
|
uuid: zod.z.string().describe("Unique identifier for the perk").nullable().optional(),
|
|
8
8
|
label: zod.z.string().describe("Display label of the perk").nullable().optional(),
|
|
9
|
-
options: zod.z.array(zod.z.union([zod.z.string(), zod.z.
|
|
9
|
+
options: zod.z.array(zod.z.union([zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown())])).describe("Available options for the perk if applicable").nullable().optional(),
|
|
10
10
|
data_type: zod.z.string().describe("Data type of the perk (e.g., single_select, boolean)").nullable().optional()
|
|
11
|
-
}).describe("Individual perk object containing perk details.");
|
|
11
|
+
}).passthrough().describe("Individual perk object containing perk details.");
|
|
12
12
|
const PiggyListPerksOutput = zod.z.object({
|
|
13
13
|
data: zod.z.array(PiggyListPerks_PerkDataSchema).describe("List of available perks").nullable().optional(),
|
|
14
14
|
meta: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata about the response").nullable().optional()
|
|
15
|
-
}).describe("Response model for listing perks.");
|
|
15
|
+
}).passthrough().describe("Response model for listing perks.");
|
|
16
16
|
const piggyListPerks = require_action.action("PIGGY_LIST_PERKS", {
|
|
17
17
|
slug: "piggy-list-perks",
|
|
18
18
|
name: "List Perks",
|