@keystrokehq/segmetrics 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-product.cjs +1 -0
  4. package/dist/actions/create-product.cjs.map +1 -1
  5. package/dist/actions/create-product.d.cts +3 -10
  6. package/dist/actions/create-product.d.cts.map +1 -1
  7. package/dist/actions/create-product.d.mts +3 -10
  8. package/dist/actions/create-product.d.mts.map +1 -1
  9. package/dist/actions/create-product.mjs +1 -0
  10. package/dist/actions/create-product.mjs.map +1 -1
  11. package/dist/actions/delete-contact.cjs +1 -0
  12. package/dist/actions/delete-contact.cjs.map +1 -1
  13. package/dist/actions/delete-contact.d.cts +3 -5
  14. package/dist/actions/delete-contact.d.cts.map +1 -1
  15. package/dist/actions/delete-contact.d.mts +3 -5
  16. package/dist/actions/delete-contact.d.mts.map +1 -1
  17. package/dist/actions/delete-contact.mjs +1 -0
  18. package/dist/actions/delete-contact.mjs.map +1 -1
  19. package/dist/actions/v1-add-or-update-contact.cjs +1 -0
  20. package/dist/actions/v1-add-or-update-contact.cjs.map +1 -1
  21. package/dist/actions/v1-add-or-update-contact.d.cts +3 -16
  22. package/dist/actions/v1-add-or-update-contact.d.cts.map +1 -1
  23. package/dist/actions/v1-add-or-update-contact.d.mts +3 -16
  24. package/dist/actions/v1-add-or-update-contact.d.mts.map +1 -1
  25. package/dist/actions/v1-add-or-update-contact.mjs +1 -0
  26. package/dist/actions/v1-add-or-update-contact.mjs.map +1 -1
  27. package/dist/app.cjs +9 -2
  28. package/dist/app.cjs.map +1 -1
  29. package/dist/app.d.cts +8 -1
  30. package/dist/app.d.cts.map +1 -1
  31. package/dist/app.d.mts +8 -1
  32. package/dist/app.d.mts.map +1 -1
  33. package/dist/app.mjs +6 -2
  34. package/dist/app.mjs.map +1 -1
  35. package/dist/index.d.cts +1 -1
  36. package/dist/index.d.mts +1 -1
  37. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["segmetrics","executeSegmetricsTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { segmetrics } from \"./app\";\nimport { executeSegmetricsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return segmetrics.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeSegmetricsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["segmetrics","executeSegmetricsTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { segmetrics } from \"./app\";\nimport { executeSegmetricsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof segmetrics.credential> {\n return segmetrics.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSegmetricsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAO0D;CAC1D,OAAOA,YAAAA,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { segmetrics } from \"./app\";\nimport { executeSegmetricsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return segmetrics.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeSegmetricsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { segmetrics } from \"./app\";\nimport { executeSegmetricsTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof segmetrics.credential> {\n return segmetrics.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSegmetricsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAO0D;CAC1D,OAAO,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
@@ -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/create-product.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-product.cjs","names":["z","action"],"sources":["../../src/actions/create-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmetricsCreateProductInput = z.object({\n id: z.string().describe(\"Unique identifier for the product.\"),\n name: z.string().describe(\"Name of the product.\"),\n type: z.enum([\"digital\", \"physical\"]).describe(\"Type of product. Must be 'digital' or 'physical'.\").optional(),\n price: z.number().describe(\"Default price of the product, must be non-negative.\").optional(),\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n description: z.string().describe(\"Description of the product.\").optional(),\n external_id: z.string().describe(\"External system reference ID for the product.\").optional(),\n integration_id: z.string().describe(\"Integration ID to which this product belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n});\nexport const SegmetricsCreateProductOutput = z.object({\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n}).passthrough();\n\nexport const segmetricsCreateProduct = action(\"SEGMETRICS_CREATE_PRODUCT\", {\n slug: \"segmetrics-create-product\",\n name: \"Create Product\",\n description: \"Tool to create a new product in SegMetrics. Use after confirming product details.\",\n input: SegmetricsCreateProductInput,\n output: SegmetricsCreateProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,MAAMA,IAAAA,EAAE,KAAK,CAAC,WAAW,UAAU,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CACtJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;AAC7K,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-product.cjs","names":["z","action"],"sources":["../../src/actions/create-product.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segmetrics } from \"../app\";\n\nexport const SegmetricsCreateProductInput = z.object({\n id: z.string().describe(\"Unique identifier for the product.\"),\n name: z.string().describe(\"Name of the product.\"),\n type: z.enum([\"digital\", \"physical\"]).describe(\"Type of product. Must be 'digital' or 'physical'.\").optional(),\n price: z.number().describe(\"Default price of the product, must be non-negative.\").optional(),\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n description: z.string().describe(\"Description of the product.\").optional(),\n external_id: z.string().describe(\"External system reference ID for the product.\").optional(),\n integration_id: z.string().describe(\"Integration ID to which this product belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n});\nexport const SegmetricsCreateProductOutput = z.object({\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n}).passthrough();\n\nexport const segmetricsCreateProduct: AppAction<\n typeof SegmetricsCreateProductInput,\n typeof SegmetricsCreateProductOutput,\n typeof segmetrics.credential\n> = action(\"SEGMETRICS_CREATE_PRODUCT\", {\n slug: \"segmetrics-create-product\",\n name: \"Create Product\",\n description: \"Tool to create a new product in SegMetrics. Use after confirming product details.\",\n input: SegmetricsCreateProductInput,\n output: SegmetricsCreateProductOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,MAAMA,IAAAA,EAAE,KAAK,CAAC,WAAW,UAAU,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CACtJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;AAC7K,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { segmetrics } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-product.d.ts
@@ -17,16 +19,7 @@ declare const SegmetricsCreateProductInput: z.ZodObject<{
17
19
  declare const SegmetricsCreateProductOutput: z.ZodObject<{
18
20
  status: z.ZodNullable<z.ZodString>;
19
21
  }, z.core.$loose>;
20
- declare const segmetricsCreateProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
21
- id: string;
22
- name: string;
23
- account_id: string;
24
- integration_id: string;
25
- type?: "digital" | "physical" | undefined;
26
- price?: number | undefined;
27
- description?: string | undefined;
28
- external_id?: string | undefined;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ declare const segmetricsCreateProduct: AppAction<typeof SegmetricsCreateProductInput, typeof SegmetricsCreateProductOutput, typeof segmetrics.credential>;
30
23
  //#endregion
31
24
  export { segmetricsCreateProduct };
32
25
  //# sourceMappingURL=create-product.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-product.d.cts","names":[],"sources":["../../src/actions/create-product.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"create-product.d.cts","names":[],"sources":["../../src/actions/create-product.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,UAAA,CAAW,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { segmetrics } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-product.d.ts
@@ -17,16 +19,7 @@ declare const SegmetricsCreateProductInput: z.ZodObject<{
17
19
  declare const SegmetricsCreateProductOutput: z.ZodObject<{
18
20
  status: z.ZodNullable<z.ZodString>;
19
21
  }, z.core.$loose>;
20
- declare const segmetricsCreateProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
21
- id: string;
22
- name: string;
23
- account_id: string;
24
- integration_id: string;
25
- type?: "digital" | "physical" | undefined;
26
- price?: number | undefined;
27
- description?: string | undefined;
28
- external_id?: string | undefined;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ declare const segmetricsCreateProduct: AppAction<typeof SegmetricsCreateProductInput, typeof SegmetricsCreateProductOutput, typeof segmetrics.credential>;
30
23
  //#endregion
31
24
  export { segmetricsCreateProduct };
32
25
  //# sourceMappingURL=create-product.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-product.d.mts","names":[],"sources":["../../src/actions/create-product.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"create-product.d.mts","names":[],"sources":["../../src/actions/create-product.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAI7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,UAAA,CAAW,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const segmetricsCreateProduct = action("SEGMETRICS_CREATE_PRODUCT", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-product.mjs","names":[],"sources":["../../src/actions/create-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmetricsCreateProductInput = z.object({\n id: z.string().describe(\"Unique identifier for the product.\"),\n name: z.string().describe(\"Name of the product.\"),\n type: z.enum([\"digital\", \"physical\"]).describe(\"Type of product. Must be 'digital' or 'physical'.\").optional(),\n price: z.number().describe(\"Default price of the product, must be non-negative.\").optional(),\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n description: z.string().describe(\"Description of the product.\").optional(),\n external_id: z.string().describe(\"External system reference ID for the product.\").optional(),\n integration_id: z.string().describe(\"Integration ID to which this product belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n});\nexport const SegmetricsCreateProductOutput = z.object({\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n}).passthrough();\n\nexport const segmetricsCreateProduct = action(\"SEGMETRICS_CREATE_PRODUCT\", {\n slug: \"segmetrics-create-product\",\n name: \"Create Product\",\n description: \"Tool to create a new product in SegMetrics. Use after confirming product details.\",\n input: SegmetricsCreateProductInput,\n output: SegmetricsCreateProductOutput,\n});\n"],"mappings":";;AAkBA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,EAAE,KAAK,CAAC,WAAW,UAAU,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;EACtJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC3F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;CAC7K,CASS;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"create-product.mjs","names":[],"sources":["../../src/actions/create-product.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segmetrics } from \"../app\";\n\nexport const SegmetricsCreateProductInput = z.object({\n id: z.string().describe(\"Unique identifier for the product.\"),\n name: z.string().describe(\"Name of the product.\"),\n type: z.enum([\"digital\", \"physical\"]).describe(\"Type of product. Must be 'digital' or 'physical'.\").optional(),\n price: z.number().describe(\"Default price of the product, must be non-negative.\").optional(),\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n description: z.string().describe(\"Description of the product.\").optional(),\n external_id: z.string().describe(\"External system reference ID for the product.\").optional(),\n integration_id: z.string().describe(\"Integration ID to which this product belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n});\nexport const SegmetricsCreateProductOutput = z.object({\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n}).passthrough();\n\nexport const segmetricsCreateProduct: AppAction<\n typeof SegmetricsCreateProductInput,\n typeof SegmetricsCreateProductOutput,\n typeof segmetrics.credential\n> = action(\"SEGMETRICS_CREATE_PRODUCT\", {\n slug: \"segmetrics-create-product\",\n name: \"Create Product\",\n description: \"Tool to create a new product in SegMetrics. Use after confirming product details.\",\n input: SegmetricsCreateProductInput,\n output: SegmetricsCreateProductOutput,\n});\n"],"mappings":";;;AAoBA,MAAa,0BAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,EAAE,KAAK,CAAC,WAAW,UAAU,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;EACtJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC3F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;CAC7K,CAaS;CACP,QAb2C,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAWO;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/delete-contact.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-contact.cjs","names":["z","action"],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmetricsDeleteContactInput = z.object({\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n integration_id: z.string().describe(\"Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n contact_id_or_email: z.string().describe(\"The unique identifier (contact_id) or email address of the contact to delete. Using an email will delete all contacts with that email in the integration.\"),\n}).describe(\"Request schema for deleting a contact.\");\nexport const SegmetricsDeleteContactOutput = z.object({\n id: z.string().describe(\"The ID of the deleted contact.\").nullable().optional(),\n object: z.string().describe(\"Object type, expected 'contact'.\").nullable().optional(),\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n deleted: z.boolean().describe(\"Whether the contact was deleted.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for successful deletion.\\n\\nA successful delete returns a JSON object with deletion confirmation.\");\n\nexport const segmetricsDeleteContact = action(\"SEGMETRICS_DELETE_CONTACT\", {\n slug: \"segmetrics-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to permanently delete a specific contact by ID or email from SegMetrics. Use after confirming the contact exists. This action is irreversible. Note: Associated invoices and purchases remain in the system.\",\n input: SegmetricsDeleteContactInput,\n output: SegmetricsDeleteContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CACtJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;CAC3K,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2JAA2J;AACtM,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mHAAmH;AAE7I,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-contact.cjs","names":["z","action"],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segmetrics } from \"../app\";\n\nexport const SegmetricsDeleteContactInput = z.object({\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n integration_id: z.string().describe(\"Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n contact_id_or_email: z.string().describe(\"The unique identifier (contact_id) or email address of the contact to delete. Using an email will delete all contacts with that email in the integration.\"),\n}).describe(\"Request schema for deleting a contact.\");\nexport const SegmetricsDeleteContactOutput = z.object({\n id: z.string().describe(\"The ID of the deleted contact.\").nullable().optional(),\n object: z.string().describe(\"Object type, expected 'contact'.\").nullable().optional(),\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n deleted: z.boolean().describe(\"Whether the contact was deleted.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for successful deletion.\\n\\nA successful delete returns a JSON object with deletion confirmation.\");\n\nexport const segmetricsDeleteContact: AppAction<\n typeof SegmetricsDeleteContactInput,\n typeof SegmetricsDeleteContactOutput,\n typeof segmetrics.credential\n> = action(\"SEGMETRICS_DELETE_CONTACT\", {\n slug: \"segmetrics-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to permanently delete a specific contact by ID or email from SegMetrics. Use after confirming the contact exists. This action is irreversible. Note: Associated invoices and purchases remain in the system.\",\n input: SegmetricsDeleteContactInput,\n output: SegmetricsDeleteContactOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CACtJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;CAC3K,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2JAA2J;AACtM,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mHAAmH;AAE7I,MAAa,0BAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { segmetrics } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-contact.d.ts
@@ -12,11 +14,7 @@ declare const SegmetricsDeleteContactOutput: z.ZodObject<{
12
14
  status: z.ZodNullable<z.ZodString>;
13
15
  deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
14
16
  }, z.core.$loose>;
15
- declare const segmetricsDeleteContact: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- account_id: string;
17
- integration_id: string;
18
- contact_id_or_email: string;
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ declare const segmetricsDeleteContact: AppAction<typeof SegmetricsDeleteContactInput, typeof SegmetricsDeleteContactOutput, typeof segmetrics.credential>;
20
18
  //#endregion
21
19
  export { segmetricsDeleteContact };
22
20
  //# sourceMappingURL=delete-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-contact.d.cts","names":[],"sources":["../../src/actions/delete-contact.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAK5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAO7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"delete-contact.d.cts","names":[],"sources":["../../src/actions/delete-contact.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAK5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAO7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,UAAA,CAAW,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { segmetrics } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/delete-contact.d.ts
@@ -12,11 +14,7 @@ declare const SegmetricsDeleteContactOutput: z.ZodObject<{
12
14
  status: z.ZodNullable<z.ZodString>;
13
15
  deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
14
16
  }, z.core.$loose>;
15
- declare const segmetricsDeleteContact: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- account_id: string;
17
- integration_id: string;
18
- contact_id_or_email: string;
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ declare const segmetricsDeleteContact: AppAction<typeof SegmetricsDeleteContactInput, typeof SegmetricsDeleteContactOutput, typeof segmetrics.credential>;
20
18
  //#endregion
21
19
  export { segmetricsDeleteContact };
22
20
  //# sourceMappingURL=delete-contact.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-contact.d.mts","names":[],"sources":["../../src/actions/delete-contact.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAK5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAO7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"delete-contact.d.mts","names":[],"sources":["../../src/actions/delete-contact.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAK5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAO7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,UAAA,CAAW,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const segmetricsDeleteContact = action("SEGMETRICS_DELETE_CONTACT", {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-contact.mjs","names":[],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmetricsDeleteContactInput = z.object({\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n integration_id: z.string().describe(\"Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n contact_id_or_email: z.string().describe(\"The unique identifier (contact_id) or email address of the contact to delete. Using an email will delete all contacts with that email in the integration.\"),\n}).describe(\"Request schema for deleting a contact.\");\nexport const SegmetricsDeleteContactOutput = z.object({\n id: z.string().describe(\"The ID of the deleted contact.\").nullable().optional(),\n object: z.string().describe(\"Object type, expected 'contact'.\").nullable().optional(),\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n deleted: z.boolean().describe(\"Whether the contact was deleted.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for successful deletion.\\n\\nA successful delete returns a JSON object with deletion confirmation.\");\n\nexport const segmetricsDeleteContact = action(\"SEGMETRICS_DELETE_CONTACT\", {\n slug: \"segmetrics-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to permanently delete a specific contact by ID or email from SegMetrics. Use after confirming the contact exists. This action is irreversible. Note: Associated invoices and purchases remain in the system.\",\n input: SegmetricsDeleteContactInput,\n output: SegmetricsDeleteContactOutput,\n});\n"],"mappings":";;AAgBA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB0C,EAAE,OAAO;EACnD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;EACtJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;EAC3K,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,2JAA2J;CACtM,CAAC,CAAC,CAAC,SAAS,wCAYH;CACP,QAZ2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mHAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"delete-contact.mjs","names":[],"sources":["../../src/actions/delete-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segmetrics } from \"../app\";\n\nexport const SegmetricsDeleteContactInput = z.object({\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n integration_id: z.string().describe(\"Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n contact_id_or_email: z.string().describe(\"The unique identifier (contact_id) or email address of the contact to delete. Using an email will delete all contacts with that email in the integration.\"),\n}).describe(\"Request schema for deleting a contact.\");\nexport const SegmetricsDeleteContactOutput = z.object({\n id: z.string().describe(\"The ID of the deleted contact.\").nullable().optional(),\n object: z.string().describe(\"Object type, expected 'contact'.\").nullable().optional(),\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n deleted: z.boolean().describe(\"Whether the contact was deleted.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for successful deletion.\\n\\nA successful delete returns a JSON object with deletion confirmation.\");\n\nexport const segmetricsDeleteContact: AppAction<\n typeof SegmetricsDeleteContactInput,\n typeof SegmetricsDeleteContactOutput,\n typeof segmetrics.credential\n> = action(\"SEGMETRICS_DELETE_CONTACT\", {\n slug: \"segmetrics-delete-contact\",\n name: \"Delete Contact\",\n description: \"Tool to permanently delete a specific contact by ID or email from SegMetrics. Use after confirming the contact exists. This action is irreversible. Note: Associated invoices and purchases remain in the system.\",\n input: SegmetricsDeleteContactInput,\n output: SegmetricsDeleteContactOutput,\n});\n"],"mappings":";;;AAkBA,MAAa,0BAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB0C,EAAE,OAAO;EACnD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;EACtJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;EAC3K,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,2JAA2J;CACtM,CAAC,CAAC,CAAC,SAAS,wCAgBH;CACP,QAhB2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mHAWhB;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/v1-add-or-update-contact.ts
@@ -1 +1 @@
1
- {"version":3,"file":"v1-add-or-update-contact.cjs","names":["z","action"],"sources":["../../src/actions/v1-add-or-update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmetricsV1AddOrUpdateContactInput = z.object({\n email: z.string().describe(\"Contact's email address.\"),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Contact status, either 'active' or 'inactive'.\").optional(),\n utm_term: z.string().describe(\"UTM term parameter.\").optional(),\n last_name: z.string().describe(\"Contact's last name.\").optional(),\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n contact_id: z.string().describe(\"Unique identifier for the contact (string or numeric). Optional if email is provided.\").optional(),\n first_name: z.string().describe(\"Contact's first name.\").optional(),\n utm_medium: z.string().describe(\"UTM medium parameter.\").optional(),\n utm_source: z.string().describe(\"UTM source parameter.\").optional(),\n utm_content: z.string().describe(\"UTM content parameter.\").optional(),\n date_created: z.string().describe(\"Creation timestamp (YYYY-MM-DD HH:MM:SS).\").optional(),\n last_updated: z.string().describe(\"Last-update timestamp (YYYY-MM-DD HH:MM:SS).\").optional(),\n utm_campaign: z.string().describe(\"UTM campaign parameter.\").optional(),\n integration_id: z.string().describe(\"Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n}).describe(\"Request schema for adding or updating a contact in SegMetrics.\");\nexport const SegmetricsV1AddOrUpdateContactOutput = z.object({\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n}).passthrough().describe(\"Response schema for add or update contact in SegMetrics.\");\n\nexport const segmetricsV1AddOrUpdateContact = action(\"SEGMETRICS_V1_ADD_OR_UPDATE_CONTACT\", {\n slug: \"segmetrics-v1-add-or-update-contact\",\n name: \"Add or Update Contact\",\n description: \"Tool to add or update a contact in SegMetrics. Use when you need to upsert the contact record during data import.\",\n input: SegmetricsV1AddOrUpdateContactInput,\n output: SegmetricsV1AddOrUpdateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,QAAQA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CACtJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAClI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACpE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACtE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;AAC7K,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"v1-add-or-update-contact.cjs","names":["z","action"],"sources":["../../src/actions/v1-add-or-update-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segmetrics } from \"../app\";\n\nexport const SegmetricsV1AddOrUpdateContactInput = z.object({\n email: z.string().describe(\"Contact's email address.\"),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Contact status, either 'active' or 'inactive'.\").optional(),\n utm_term: z.string().describe(\"UTM term parameter.\").optional(),\n last_name: z.string().describe(\"Contact's last name.\").optional(),\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n contact_id: z.string().describe(\"Unique identifier for the contact (string or numeric). Optional if email is provided.\").optional(),\n first_name: z.string().describe(\"Contact's first name.\").optional(),\n utm_medium: z.string().describe(\"UTM medium parameter.\").optional(),\n utm_source: z.string().describe(\"UTM source parameter.\").optional(),\n utm_content: z.string().describe(\"UTM content parameter.\").optional(),\n date_created: z.string().describe(\"Creation timestamp (YYYY-MM-DD HH:MM:SS).\").optional(),\n last_updated: z.string().describe(\"Last-update timestamp (YYYY-MM-DD HH:MM:SS).\").optional(),\n utm_campaign: z.string().describe(\"UTM campaign parameter.\").optional(),\n integration_id: z.string().describe(\"Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n}).describe(\"Request schema for adding or updating a contact in SegMetrics.\");\nexport const SegmetricsV1AddOrUpdateContactOutput = z.object({\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n}).passthrough().describe(\"Response schema for add or update contact in SegMetrics.\");\n\nexport const segmetricsV1AddOrUpdateContact: AppAction<\n typeof SegmetricsV1AddOrUpdateContactInput,\n typeof SegmetricsV1AddOrUpdateContactOutput,\n typeof segmetrics.credential\n> = action(\"SEGMETRICS_V1_ADD_OR_UPDATE_CONTACT\", {\n slug: \"segmetrics-v1-add-or-update-contact\",\n name: \"Add or Update Contact\",\n description: \"Tool to add or update a contact in SegMetrics. Use when you need to upsert the contact record during data import.\",\n input: SegmetricsV1AddOrUpdateContactInput,\n output: SegmetricsV1AddOrUpdateContactOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,QAAQA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CACtJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAClI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACpE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACtE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;AAC7K,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,iCAITC,eAAAA,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { segmetrics } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/v1-add-or-update-contact.d.ts
@@ -23,22 +25,7 @@ declare const SegmetricsV1AddOrUpdateContactInput: z.ZodObject<{
23
25
  declare const SegmetricsV1AddOrUpdateContactOutput: z.ZodObject<{
24
26
  status: z.ZodNullable<z.ZodString>;
25
27
  }, z.core.$loose>;
26
- declare const segmetricsV1AddOrUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- email: string;
28
- account_id: string;
29
- integration_id: string;
30
- status?: "active" | "inactive" | undefined;
31
- utm_term?: string | undefined;
32
- last_name?: string | undefined;
33
- contact_id?: string | undefined;
34
- first_name?: string | undefined;
35
- utm_medium?: string | undefined;
36
- utm_source?: string | undefined;
37
- utm_content?: string | undefined;
38
- date_created?: string | undefined;
39
- last_updated?: string | undefined;
40
- utm_campaign?: string | undefined;
41
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ declare const segmetricsV1AddOrUpdateContact: AppAction<typeof SegmetricsV1AddOrUpdateContactInput, typeof SegmetricsV1AddOrUpdateContactOutput, typeof segmetrics.credential>;
42
29
  //#endregion
43
30
  export { segmetricsV1AddOrUpdateContact };
44
31
  //# sourceMappingURL=v1-add-or-update-contact.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v1-add-or-update-contact.d.cts","names":[],"sources":["../../src/actions/v1-add-or-update-contact.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAgBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAIpC,8BAAA,gCAA8B,wBAAA"}
1
+ {"version":3,"file":"v1-add-or-update-contact.d.cts","names":[],"sources":["../../src/actions/v1-add-or-update-contact.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAgBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAIpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,UAAA,CAAW,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { segmetrics } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/v1-add-or-update-contact.d.ts
@@ -23,22 +25,7 @@ declare const SegmetricsV1AddOrUpdateContactInput: z.ZodObject<{
23
25
  declare const SegmetricsV1AddOrUpdateContactOutput: z.ZodObject<{
24
26
  status: z.ZodNullable<z.ZodString>;
25
27
  }, z.core.$loose>;
26
- declare const segmetricsV1AddOrUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- email: string;
28
- account_id: string;
29
- integration_id: string;
30
- status?: "active" | "inactive" | undefined;
31
- utm_term?: string | undefined;
32
- last_name?: string | undefined;
33
- contact_id?: string | undefined;
34
- first_name?: string | undefined;
35
- utm_medium?: string | undefined;
36
- utm_source?: string | undefined;
37
- utm_content?: string | undefined;
38
- date_created?: string | undefined;
39
- last_updated?: string | undefined;
40
- utm_campaign?: string | undefined;
41
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ declare const segmetricsV1AddOrUpdateContact: AppAction<typeof SegmetricsV1AddOrUpdateContactInput, typeof SegmetricsV1AddOrUpdateContactOutput, typeof segmetrics.credential>;
42
29
  //#endregion
43
30
  export { segmetricsV1AddOrUpdateContact };
44
31
  //# sourceMappingURL=v1-add-or-update-contact.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v1-add-or-update-contact.d.mts","names":[],"sources":["../../src/actions/v1-add-or-update-contact.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAgBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAIpC,8BAAA,gCAA8B,wBAAA"}
1
+ {"version":3,"file":"v1-add-or-update-contact.d.mts","names":[],"sources":["../../src/actions/v1-add-or-update-contact.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAgBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAIpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,UAAA,CAAW,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const segmetricsV1AddOrUpdateContact = action("SEGMETRICS_V1_ADD_OR_UPDATE_CONTACT", {
@@ -1 +1 @@
1
- {"version":3,"file":"v1-add-or-update-contact.mjs","names":[],"sources":["../../src/actions/v1-add-or-update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SegmetricsV1AddOrUpdateContactInput = z.object({\n email: z.string().describe(\"Contact's email address.\"),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Contact status, either 'active' or 'inactive'.\").optional(),\n utm_term: z.string().describe(\"UTM term parameter.\").optional(),\n last_name: z.string().describe(\"Contact's last name.\").optional(),\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n contact_id: z.string().describe(\"Unique identifier for the contact (string or numeric). Optional if email is provided.\").optional(),\n first_name: z.string().describe(\"Contact's first name.\").optional(),\n utm_medium: z.string().describe(\"UTM medium parameter.\").optional(),\n utm_source: z.string().describe(\"UTM source parameter.\").optional(),\n utm_content: z.string().describe(\"UTM content parameter.\").optional(),\n date_created: z.string().describe(\"Creation timestamp (YYYY-MM-DD HH:MM:SS).\").optional(),\n last_updated: z.string().describe(\"Last-update timestamp (YYYY-MM-DD HH:MM:SS).\").optional(),\n utm_campaign: z.string().describe(\"UTM campaign parameter.\").optional(),\n integration_id: z.string().describe(\"Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n}).describe(\"Request schema for adding or updating a contact in SegMetrics.\");\nexport const SegmetricsV1AddOrUpdateContactOutput = z.object({\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n}).passthrough().describe(\"Response schema for add or update contact in SegMetrics.\");\n\nexport const segmetricsV1AddOrUpdateContact = action(\"SEGMETRICS_V1_ADD_OR_UPDATE_CONTACT\", {\n slug: \"segmetrics-v1-add-or-update-contact\",\n name: \"Add or Update Contact\",\n description: \"Tool to add or update a contact in SegMetrics. Use when you need to upsert the contact record during data import.\",\n input: SegmetricsV1AddOrUpdateContactInput,\n output: SegmetricsV1AddOrUpdateContactOutput,\n});\n"],"mappings":";;AAwBA,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxBiD,EAAE,OAAO;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACrD,QAAQ,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC3G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC9D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;EACtJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EAClI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAClE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EACpE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACxF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACtE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;CAC7K,CAAC,CAAC,CAAC,SAAS,gEASH;CACP,QATkD,EAAE,OAAO,EAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"v1-add-or-update-contact.mjs","names":[],"sources":["../../src/actions/v1-add-or-update-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { segmetrics } from \"../app\";\n\nexport const SegmetricsV1AddOrUpdateContactInput = z.object({\n email: z.string().describe(\"Contact's email address.\"),\n status: z.enum([\"active\", \"inactive\"]).describe(\"Contact status, either 'active' or 'inactive'.\").optional(),\n utm_term: z.string().describe(\"UTM term parameter.\").optional(),\n last_name: z.string().describe(\"Contact's last name.\").optional(),\n account_id: z.string().describe(\"SegMetrics account ID (Site ID). Found in your SegMetrics Account settings. Format: 6+ characters starting with 'a'.\"),\n contact_id: z.string().describe(\"Unique identifier for the contact (string or numeric). Optional if email is provided.\").optional(),\n first_name: z.string().describe(\"Contact's first name.\").optional(),\n utm_medium: z.string().describe(\"UTM medium parameter.\").optional(),\n utm_source: z.string().describe(\"UTM source parameter.\").optional(),\n utm_content: z.string().describe(\"UTM content parameter.\").optional(),\n date_created: z.string().describe(\"Creation timestamp (YYYY-MM-DD HH:MM:SS).\").optional(),\n last_updated: z.string().describe(\"Last-update timestamp (YYYY-MM-DD HH:MM:SS).\").optional(),\n utm_campaign: z.string().describe(\"UTM campaign parameter.\").optional(),\n integration_id: z.string().describe(\"Integration ID to which this contact belongs. Found in SegMetrics integration settings or in the URL when configuring an integration.\"),\n}).describe(\"Request schema for adding or updating a contact in SegMetrics.\");\nexport const SegmetricsV1AddOrUpdateContactOutput = z.object({\n status: z.string().describe(\"API response status, expected 'success'.\").nullable(),\n}).passthrough().describe(\"Response schema for add or update contact in SegMetrics.\");\n\nexport const segmetricsV1AddOrUpdateContact: AppAction<\n typeof SegmetricsV1AddOrUpdateContactInput,\n typeof SegmetricsV1AddOrUpdateContactOutput,\n typeof segmetrics.credential\n> = action(\"SEGMETRICS_V1_ADD_OR_UPDATE_CONTACT\", {\n slug: \"segmetrics-v1-add-or-update-contact\",\n name: \"Add or Update Contact\",\n description: \"Tool to add or update a contact in SegMetrics. Use when you need to upsert the contact record during data import.\",\n input: SegmetricsV1AddOrUpdateContactInput,\n output: SegmetricsV1AddOrUpdateContactOutput,\n});\n"],"mappings":";;;AA0BA,MAAa,iCAIT,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BiD,EAAE,OAAO;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACrD,QAAQ,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC3G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC9D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;EACtJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EAClI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAClE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EACpE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACxF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACtE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uIAAuI;CAC7K,CAAC,CAAC,CAAC,SAAS,gEAaH;CACP,QAbkD,EAAE,OAAO,EAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,EACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAWhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,7 +1,14 @@
1
+ let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
+ let zod = require("zod");
1
3
  //#region src/app.ts
2
- const segmetrics = (0, require("@keystrokehq/keystroke/app").defineApp)({
4
+ const credential = {
5
+ generic_api_key: zod.z.string(),
6
+ generic_id: zod.z.string()
7
+ };
8
+ const segmetrics = (0, _keystrokehq_keystroke_app.defineApp)({
3
9
  slug: "segmetrics",
4
- auth: "keystroke"
10
+ auth: "keystroke",
11
+ credential
5
12
  });
6
13
  //#endregion
7
14
  exports.segmetrics = segmetrics;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const segmetrics = defineApp({\n slug: \"segmetrics\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,cAAA,uCAAA,CAAA,CAAA,UAAA,CAAuB;CAClC,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n generic_id: z.string(),\n};\n\nexport const segmetrics: KeystrokeApp<\"segmetrics\", typeof credential> = defineApp({\n slug: \"segmetrics\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;;AAGA,MAAM,aAAa;CACjB,iBAAiBA,IAAAA,EAAE,OAAO;CAC1B,YAAYA,IAAAA,EAAE,OAAO;AACvB;AAEA,MAAa,cAAA,GAAA,2BAAA,UAAA,CAAsE;CACjF,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,5 +1,12 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const segmetrics: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ generic_id: z.ZodString;
8
+ };
9
+ declare const segmetrics: KeystrokeApp<"segmetrics", typeof credential>;
3
10
  //#endregion
4
11
  export { segmetrics };
5
12
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,UAAA,6BAAU,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAGL,CAAA,CAAA,SAAA;cAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,UAAA,EAAY,YAAY,sBAAsB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,5 +1,12 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const segmetrics: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ generic_id: z.ZodString;
8
+ };
9
+ declare const segmetrics: KeystrokeApp<"segmetrics", typeof credential>;
3
10
  //#endregion
4
11
  export { segmetrics };
5
12
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,UAAA,6BAAU,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAGL,CAAA,CAAA,SAAA;cAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,UAAA,EAAY,YAAY,sBAAsB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,8 +1,12 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
- //#region src/app.ts
2
+ import { z } from "zod";
3
3
  const segmetrics = defineApp({
4
4
  slug: "segmetrics",
5
- auth: "keystroke"
5
+ auth: "keystroke",
6
+ credential: {
7
+ generic_api_key: z.string(),
8
+ generic_id: z.string()
9
+ }
6
10
  });
7
11
  //#endregion
8
12
  export { segmetrics };
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const segmetrics = defineApp({\n slug: \"segmetrics\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,aAAa,UAAU;CAClC,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n generic_id: z.string(),\n};\n\nexport const segmetrics: KeystrokeApp<\"segmetrics\", typeof credential> = defineApp({\n slug: \"segmetrics\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAQA,MAAa,aAA4D,UAAU;CACjF,MAAM;CACN,MAAM;CACN;EAPA,iBAAiB,EAAE,OAAO;EAC1B,YAAY,EAAE,OAAO;CAMrB;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
+ import { segmetrics } from "./app.cjs";
1
2
  import { segmetricsCreateProduct } from "./actions/create-product.cjs";
2
3
  import { segmetricsDeleteContact } from "./actions/delete-contact.cjs";
3
4
  import { segmetricsV1AddOrUpdateContact } from "./actions/v1-add-or-update-contact.cjs";
4
- import { segmetrics } from "./app.cjs";
5
5
  import { segmetricsCatalog } from "./catalog.cjs";
6
6
  export { segmetrics, segmetricsCatalog, segmetricsCreateProduct, segmetricsDeleteContact, segmetricsV1AddOrUpdateContact };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
+ import { segmetrics } from "./app.mjs";
1
2
  import { segmetricsCreateProduct } from "./actions/create-product.mjs";
2
3
  import { segmetricsDeleteContact } from "./actions/delete-contact.mjs";
3
4
  import { segmetricsV1AddOrUpdateContact } from "./actions/v1-add-or-update-contact.mjs";
4
- import { segmetrics } from "./app.mjs";
5
5
  import { segmetricsCatalog } from "./catalog.mjs";
6
6
  export { segmetrics, segmetricsCatalog, segmetricsCreateProduct, segmetricsDeleteContact, segmetricsV1AddOrUpdateContact };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/segmetrics",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {