@keystrokehq/simplesat 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-or-update-customer2.cjs +3 -3
  4. package/dist/actions/create-or-update-customer2.cjs.map +1 -1
  5. package/dist/actions/create-or-update-customer2.d.cts +25 -3
  6. package/dist/actions/create-or-update-customer2.d.cts.map +1 -1
  7. package/dist/actions/create-or-update-customer2.d.mts +25 -3
  8. package/dist/actions/create-or-update-customer2.d.mts.map +1 -1
  9. package/dist/actions/create-or-update-customer2.mjs +3 -3
  10. package/dist/actions/create-or-update-customer2.mjs.map +1 -1
  11. package/dist/actions/create-or-update-team-member.cjs +5 -5
  12. package/dist/actions/create-or-update-team-member.cjs.map +1 -1
  13. package/dist/actions/create-or-update-team-member.d.cts +25 -3
  14. package/dist/actions/create-or-update-team-member.d.cts.map +1 -1
  15. package/dist/actions/create-or-update-team-member.d.mts +25 -3
  16. package/dist/actions/create-or-update-team-member.d.mts.map +1 -1
  17. package/dist/actions/create-or-update-team-member.mjs +5 -5
  18. package/dist/actions/create-or-update-team-member.mjs.map +1 -1
  19. package/dist/actions/get-customer.cjs +3 -3
  20. package/dist/actions/get-customer.cjs.map +1 -1
  21. package/dist/actions/get-customer.d.cts +15 -3
  22. package/dist/actions/get-customer.d.cts.map +1 -1
  23. package/dist/actions/get-customer.d.mts +15 -3
  24. package/dist/actions/get-customer.d.mts.map +1 -1
  25. package/dist/actions/get-customer.mjs +3 -3
  26. package/dist/actions/get-customer.mjs.map +1 -1
  27. package/dist/actions/list-questions.cjs +8 -8
  28. package/dist/actions/list-questions.cjs.map +1 -1
  29. package/dist/actions/list-questions.d.cts +43 -3
  30. package/dist/actions/list-questions.d.cts.map +1 -1
  31. package/dist/actions/list-questions.d.mts +43 -3
  32. package/dist/actions/list-questions.d.mts.map +1 -1
  33. package/dist/actions/list-questions.mjs +8 -8
  34. package/dist/actions/list-questions.mjs.map +1 -1
  35. package/dist/actions/list-surveys.cjs +5 -5
  36. package/dist/actions/list-surveys.cjs.map +1 -1
  37. package/dist/actions/list-surveys.d.cts +15 -3
  38. package/dist/actions/list-surveys.d.cts.map +1 -1
  39. package/dist/actions/list-surveys.d.mts +15 -3
  40. package/dist/actions/list-surveys.d.mts.map +1 -1
  41. package/dist/actions/list-surveys.mjs +5 -5
  42. package/dist/actions/list-surveys.mjs.map +1 -1
  43. package/dist/actions/search-answers.cjs +11 -11
  44. package/dist/actions/search-answers.cjs.map +1 -1
  45. package/dist/actions/search-answers.d.cts +97 -3
  46. package/dist/actions/search-answers.d.cts.map +1 -1
  47. package/dist/actions/search-answers.d.mts +97 -3
  48. package/dist/actions/search-answers.d.mts.map +1 -1
  49. package/dist/actions/search-answers.mjs +11 -11
  50. package/dist/actions/search-answers.mjs.map +1 -1
  51. package/dist/actions/search-responses.cjs +3 -3
  52. package/dist/actions/search-responses.cjs.map +1 -1
  53. package/dist/actions/search-responses.d.cts +63 -3
  54. package/dist/actions/search-responses.d.cts.map +1 -1
  55. package/dist/actions/search-responses.d.mts +63 -3
  56. package/dist/actions/search-responses.d.mts.map +1 -1
  57. package/dist/actions/search-responses.mjs +3 -3
  58. package/dist/actions/search-responses.mjs.map +1 -1
  59. package/dist/actions/update-customer.cjs +3 -3
  60. package/dist/actions/update-customer.cjs.map +1 -1
  61. package/dist/actions/update-customer.d.cts +27 -3
  62. package/dist/actions/update-customer.d.cts.map +1 -1
  63. package/dist/actions/update-customer.d.mts +27 -3
  64. package/dist/actions/update-customer.d.mts.map +1 -1
  65. package/dist/actions/update-customer.mjs +3 -3
  66. package/dist/actions/update-customer.mjs.map +1 -1
  67. package/dist/catalog.cjs +7 -1
  68. package/dist/catalog.cjs.map +1 -1
  69. package/dist/catalog.d.cts +8 -0
  70. package/dist/catalog.d.mts +8 -0
  71. package/dist/catalog.mjs +7 -1
  72. package/dist/catalog.mjs.map +1 -1
  73. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["simplesat","executeSimplesatTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { simplesat } from \"./app\";\nimport { executeSimplesatTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return simplesat.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 executeSimplesatTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,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,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["simplesat","executeSimplesatTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { simplesat } from \"./app\";\nimport { executeSimplesatTool } 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 simplesat.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 executeSimplesatTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,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,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { simplesat } from \"./app\";\nimport { executeSimplesatTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return simplesat.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 executeSimplesatTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { simplesat } from \"./app\";\nimport { executeSimplesatTool } 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 simplesat.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 executeSimplesatTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -10,14 +10,14 @@ const SimplesatCreateOrUpdateCustomer2Input = zod.z.object({
10
10
  custom_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Object with custom attribute key-value pairs. Any custom attribute fields that didn't previously exist will be created.").optional()
11
11
  }).describe("Request model for creating or updating a customer.");
12
12
  const SimplesatCreateOrUpdateCustomer2Output = zod.z.object({
13
- id: zod.z.number().int().describe("Unique identifier of the customer in Simplesat"),
13
+ id: zod.z.number().int().describe("Unique identifier of the customer in Simplesat").nullable(),
14
14
  name: zod.z.string().describe("Full name of the customer").nullable().optional(),
15
15
  tags: zod.z.array(zod.z.string()).describe("List of tags associated with the customer").nullable().optional(),
16
- email: zod.z.string().describe("Email address of the customer"),
16
+ email: zod.z.string().describe("Email address of the customer").nullable(),
17
17
  company: zod.z.string().describe("Company name of the customer").nullable().optional(),
18
18
  external_id: zod.z.string().describe("External ID for integrations with other systems").nullable().optional(),
19
19
  custom_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom attributes of the customer").nullable().optional()
20
- }).describe("Response model for creating or updating a customer.");
20
+ }).passthrough().describe("Response model for creating or updating a customer.");
21
21
  const simplesatCreateOrUpdateCustomer2 = require_action.action("SIMPLESAT_CREATE_OR_UPDATE_CUSTOMER2", {
22
22
  slug: "simplesat-create-or-update-customer2",
23
23
  name: "Create or Update Customer V2",
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-customer2.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-customer2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatCreateOrUpdateCustomer2Input: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Full name of the customer\").optional(),\n tags: z.array(z.string()).describe(\"Array of tag strings to associate with the customer\").optional(),\n email: z.string().describe(\"Email address of the customer (used as unique identifier)\"),\n company: z.string().describe(\"Company name of the customer\").optional(),\n external_id: z.string().describe(\"External ID for the customer from your system for integrations with other systems\").optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Object with custom attribute key-value pairs. Any custom attribute fields that didn't previously exist will be created.\").optional(),\n}).describe(\"Request model for creating or updating a customer.\");\nexport const SimplesatCreateOrUpdateCustomer2Output: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the customer in Simplesat\"),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n tags: z.array(z.string()).describe(\"List of tags associated with the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\"),\n company: z.string().describe(\"Company name of the customer\").nullable().optional(),\n external_id: z.string().describe(\"External ID for integrations with other systems\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes of the customer\").nullable().optional(),\n}).describe(\"Response model for creating or updating a customer.\");\n\nexport const simplesatCreateOrUpdateCustomer2 = action(\"SIMPLESAT_CREATE_OR_UPDATE_CUSTOMER2\", {\n slug: \"simplesat-create-or-update-customer2\",\n name: \"Create or Update Customer V2\",\n description: \"Tool to create a new customer or update an existing customer if one already exists with the same email. Use when you need to add or modify customer information including name, email, company, tags, external_id, and custom attributes.\",\n input: SimplesatCreateOrUpdateCustomer2Input,\n output: SimplesatCreateOrUpdateCustomer2Output,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAA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a,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-or-update-customer2.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-customer2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatCreateOrUpdateCustomer2Input = z.object({\n name: z.string().describe(\"Full name of the customer\").optional(),\n tags: z.array(z.string()).describe(\"Array of tag strings to associate with the customer\").optional(),\n email: z.string().describe(\"Email address of the customer (used as unique identifier)\"),\n company: z.string().describe(\"Company name of the customer\").optional(),\n external_id: z.string().describe(\"External ID for the customer from your system for integrations with other systems\").optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Object with custom attribute key-value pairs. Any custom attribute fields that didn't previously exist will be created.\").optional(),\n}).describe(\"Request model for creating or updating a customer.\");\nexport const SimplesatCreateOrUpdateCustomer2Output = z.object({\n id: z.number().int().describe(\"Unique identifier of the customer in Simplesat\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n tags: z.array(z.string()).describe(\"List of tags associated with the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable(),\n company: z.string().describe(\"Company name of the customer\").nullable().optional(),\n external_id: z.string().describe(\"External ID for integrations with other systems\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes of the customer\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating or updating a customer.\");\n\nexport const simplesatCreateOrUpdateCustomer2 = action(\"SIMPLESAT_CREATE_OR_UPDATE_CUSTOMER2\", {\n slug: \"simplesat-create-or-update-customer2\",\n name: \"Create or Update Customer V2\",\n description: \"Tool to create a new customer or update an existing customer if one already exists with the same email. Use when you need to add or modify customer information including name, email, company, tags, external_id, and custom attributes.\",\n input: SimplesatCreateOrUpdateCustomer2Input,\n output: SimplesatCreateOrUpdateCustomer2Output,\n});\n"],"mappings":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CACxG,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-or-update-customer2.d.ts
4
- declare const SimplesatCreateOrUpdateCustomer2Input: z.ZodTypeAny;
5
- declare const SimplesatCreateOrUpdateCustomer2Output: z.ZodTypeAny;
6
- declare const simplesatCreateOrUpdateCustomer2: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimplesatCreateOrUpdateCustomer2Input: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
+ email: z.ZodString;
8
+ company: z.ZodOptional<z.ZodString>;
9
+ external_id: z.ZodOptional<z.ZodString>;
10
+ custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11
+ }, z.core.$strip>;
12
+ declare const SimplesatCreateOrUpdateCustomer2Output: z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodNumber>;
14
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
16
+ email: z.ZodNullable<z.ZodString>;
17
+ company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
20
+ }, z.core.$loose>;
21
+ declare const simplesatCreateOrUpdateCustomer2: import("@keystrokehq/action").WorkflowActionDefinition<{
22
+ email: string;
23
+ name?: string | undefined;
24
+ tags?: string[] | undefined;
25
+ company?: string | undefined;
26
+ external_id?: string | undefined;
27
+ custom_attributes?: Record<string, unknown> | undefined;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { simplesatCreateOrUpdateCustomer2 };
9
31
  //# sourceMappingURL=create-or-update-customer2.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-customer2.d.cts","names":[],"sources":["../../src/actions/create-or-update-customer2.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAOW;AAAA,cACpD,sCAAA,EAAwC,CAAA,CAAE,UAQW;AAAA,cAErD,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-or-update-customer2.d.cts","names":[],"sources":["../../src/actions/create-or-update-customer2.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;cAQrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;cAUtC,gCAAA,gCAAgC,wBAAA;;;;;;sBAM3C,MAAA;AAAA"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-or-update-customer2.d.ts
4
- declare const SimplesatCreateOrUpdateCustomer2Input: z.ZodTypeAny;
5
- declare const SimplesatCreateOrUpdateCustomer2Output: z.ZodTypeAny;
6
- declare const simplesatCreateOrUpdateCustomer2: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimplesatCreateOrUpdateCustomer2Input: z.ZodObject<{
5
+ name: z.ZodOptional<z.ZodString>;
6
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
+ email: z.ZodString;
8
+ company: z.ZodOptional<z.ZodString>;
9
+ external_id: z.ZodOptional<z.ZodString>;
10
+ custom_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11
+ }, z.core.$strip>;
12
+ declare const SimplesatCreateOrUpdateCustomer2Output: z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodNumber>;
14
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
16
+ email: z.ZodNullable<z.ZodString>;
17
+ company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
20
+ }, z.core.$loose>;
21
+ declare const simplesatCreateOrUpdateCustomer2: import("@keystrokehq/action").WorkflowActionDefinition<{
22
+ email: string;
23
+ name?: string | undefined;
24
+ tags?: string[] | undefined;
25
+ company?: string | undefined;
26
+ external_id?: string | undefined;
27
+ custom_attributes?: Record<string, unknown> | undefined;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { simplesatCreateOrUpdateCustomer2 };
9
31
  //# sourceMappingURL=create-or-update-customer2.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-customer2.d.mts","names":[],"sources":["../../src/actions/create-or-update-customer2.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAOW;AAAA,cACpD,sCAAA,EAAwC,CAAA,CAAE,UAQW;AAAA,cAErD,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-or-update-customer2.d.mts","names":[],"sources":["../../src/actions/create-or-update-customer2.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;cAQrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;cAUtC,gCAAA,gCAAgC,wBAAA;;;;;;sBAM3C,MAAA;AAAA"}
@@ -13,14 +13,14 @@ const simplesatCreateOrUpdateCustomer2 = action("SIMPLESAT_CREATE_OR_UPDATE_CUST
13
13
  custom_attributes: z.record(z.string(), z.unknown()).describe("Object with custom attribute key-value pairs. Any custom attribute fields that didn't previously exist will be created.").optional()
14
14
  }).describe("Request model for creating or updating a customer."),
15
15
  output: z.object({
16
- id: z.number().int().describe("Unique identifier of the customer in Simplesat"),
16
+ id: z.number().int().describe("Unique identifier of the customer in Simplesat").nullable(),
17
17
  name: z.string().describe("Full name of the customer").nullable().optional(),
18
18
  tags: z.array(z.string()).describe("List of tags associated with the customer").nullable().optional(),
19
- email: z.string().describe("Email address of the customer"),
19
+ email: z.string().describe("Email address of the customer").nullable(),
20
20
  company: z.string().describe("Company name of the customer").nullable().optional(),
21
21
  external_id: z.string().describe("External ID for integrations with other systems").nullable().optional(),
22
22
  custom_attributes: z.record(z.string(), z.unknown()).describe("Custom attributes of the customer").nullable().optional()
23
- }).describe("Response model for creating or updating a customer.")
23
+ }).passthrough().describe("Response model for creating or updating a customer.")
24
24
  });
25
25
  //#endregion
26
26
  export { simplesatCreateOrUpdateCustomer2 };
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-customer2.mjs","names":[],"sources":["../../src/actions/create-or-update-customer2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatCreateOrUpdateCustomer2Input: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Full name of the customer\").optional(),\n tags: z.array(z.string()).describe(\"Array of tag strings to associate with the customer\").optional(),\n email: z.string().describe(\"Email address of the customer (used as unique identifier)\"),\n company: z.string().describe(\"Company name of the customer\").optional(),\n external_id: z.string().describe(\"External ID for the customer from your system for integrations with other systems\").optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Object with custom attribute key-value pairs. Any custom attribute fields that didn't previously exist will be created.\").optional(),\n}).describe(\"Request model for creating or updating a customer.\");\nexport const SimplesatCreateOrUpdateCustomer2Output: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the customer in Simplesat\"),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n tags: z.array(z.string()).describe(\"List of tags associated with the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\"),\n company: z.string().describe(\"Company name of the customer\").nullable().optional(),\n external_id: z.string().describe(\"External ID for integrations with other systems\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes of the customer\").nullable().optional(),\n}).describe(\"Response model for creating or updating a customer.\");\n\nexport const simplesatCreateOrUpdateCustomer2 = action(\"SIMPLESAT_CREATE_OR_UPDATE_CUSTOMER2\", {\n slug: \"simplesat-create-or-update-customer2\",\n name: \"Create or Update Customer V2\",\n description: \"Tool to create a new customer or update an existing customer if one already exists with the same email. Use when you need to add or modify customer information including name, email, company, tags, external_id, and custom attributes.\",\n input: SimplesatCreateOrUpdateCustomer2Input,\n output: SimplesatCreateOrUpdateCustomer2Output,\n});\n"],"mappings":";;AAsBA,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBiE,EAAE,OAAO;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAChE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACnG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EACtF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACtE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EAC/H,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CACpM,CAAC,CAAC,CAAC,SAAS,oDAeH;CACP,QAfkE,EAAE,OAAO;EAC3E,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;EAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-or-update-customer2.mjs","names":[],"sources":["../../src/actions/create-or-update-customer2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatCreateOrUpdateCustomer2Input = z.object({\n name: z.string().describe(\"Full name of the customer\").optional(),\n tags: z.array(z.string()).describe(\"Array of tag strings to associate with the customer\").optional(),\n email: z.string().describe(\"Email address of the customer (used as unique identifier)\"),\n company: z.string().describe(\"Company name of the customer\").optional(),\n external_id: z.string().describe(\"External ID for the customer from your system for integrations with other systems\").optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Object with custom attribute key-value pairs. Any custom attribute fields that didn't previously exist will be created.\").optional(),\n}).describe(\"Request model for creating or updating a customer.\");\nexport const SimplesatCreateOrUpdateCustomer2Output = z.object({\n id: z.number().int().describe(\"Unique identifier of the customer in Simplesat\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n tags: z.array(z.string()).describe(\"List of tags associated with the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable(),\n company: z.string().describe(\"Company name of the customer\").nullable().optional(),\n external_id: z.string().describe(\"External ID for integrations with other systems\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes of the customer\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating or updating a customer.\");\n\nexport const simplesatCreateOrUpdateCustomer2 = action(\"SIMPLESAT_CREATE_OR_UPDATE_CUSTOMER2\", {\n slug: \"simplesat-create-or-update-customer2\",\n name: \"Create or Update Customer V2\",\n description: \"Tool to create a new customer or update an existing customer if one already exists with the same email. Use when you need to add or modify customer information including name, email, company, tags, external_id, and custom attributes.\",\n input: SimplesatCreateOrUpdateCustomer2Input,\n output: SimplesatCreateOrUpdateCustomer2Output,\n});\n"],"mappings":";;AAsBA,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtBmD,EAAE,OAAO;EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAChE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACnG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EACtF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACtE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EAC/H,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;CACpM,CAAC,CAAC,CAAC,SAAS,oDAeH;CACP,QAfoD,EAAE,OAAO;EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
@@ -9,16 +9,16 @@ const SimplesatCreateOrUpdateTeamMemberInput = zod.z.object({
9
9
  first_name: zod.z.string().describe("First name of the team member")
10
10
  }).describe("Request model for creating or updating a team member.");
11
11
  const SimplesatCreateOrUpdateTeamMemberOutput = zod.z.object({
12
- id: zod.z.string().describe("Unique identifier of the team member in Simplesat"),
12
+ id: zod.z.string().describe("Unique identifier of the team member in Simplesat").nullable(),
13
13
  name: zod.z.string().describe("Full name of the team member (may be auto-generated from first and last name)").nullable().optional(),
14
- email: zod.z.string().describe("Email address of the team member"),
14
+ email: zod.z.string().describe("Email address of the team member").nullable(),
15
15
  phone: zod.z.string().describe("Phone number of the team member").nullable().optional(),
16
16
  title: zod.z.string().describe("Job title of the team member").nullable().optional(),
17
- last_name: zod.z.string().describe("Last name of the team member"),
18
- first_name: zod.z.string().describe("First name of the team member"),
17
+ last_name: zod.z.string().describe("Last name of the team member").nullable(),
18
+ first_name: zod.z.string().describe("First name of the team member").nullable(),
19
19
  external_id: zod.z.string().describe("External identifier for the team member from an integrated system").nullable().optional(),
20
20
  custom_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom attributes associated with the team member").nullable().optional()
21
- }).describe("Response model for creating or updating a team member.");
21
+ }).passthrough().describe("Response model for creating or updating a team member.");
22
22
  const simplesatCreateOrUpdateTeamMember = require_action.action("SIMPLESAT_CREATE_OR_UPDATE_TEAM_MEMBER", {
23
23
  slug: "simplesat-create-or-update-team-member",
24
24
  name: "Create or Update Team Member",
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-team-member.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-team-member.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatCreateOrUpdateTeamMemberInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the team member\"),\n phone: z.string().describe(\"Phone number of the team member\").optional(),\n title: z.string().describe(\"Job title of the team member\").optional(),\n last_name: z.string().describe(\"Last name of the team member\"),\n first_name: z.string().describe(\"First name of the team member\"),\n}).describe(\"Request model for creating or updating a team member.\");\nexport const SimplesatCreateOrUpdateTeamMemberOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the team member in Simplesat\"),\n name: z.string().describe(\"Full name of the team member (may be auto-generated from first and last name)\").nullable().optional(),\n email: z.string().describe(\"Email address of the team member\"),\n phone: z.string().describe(\"Phone number of the team member\").nullable().optional(),\n title: z.string().describe(\"Job title of the team member\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the team member\"),\n first_name: z.string().describe(\"First name of the team member\"),\n external_id: z.string().describe(\"External identifier for the team member from an integrated system\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes associated with the team member\").nullable().optional(),\n}).describe(\"Response model for creating or updating a team member.\");\n\nexport const simplesatCreateOrUpdateTeamMember = action(\"SIMPLESAT_CREATE_OR_UPDATE_TEAM_MEMBER\", {\n slug: \"simplesat-create-or-update-team-member\",\n name: \"Create or Update Team Member\",\n description: \"This tool creates a new team member or updates an existing one if a team member with the same email address is found. It is an independent action that requires only basic team member information (email, first_name, last_name, and optionally title and phone) and does not depend on any other resource IDs.\",\n input: SimplesatCreateOrUpdateTeamMemberInput,\n output: SimplesatCreateOrUpdateTeamMemberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;AACjE,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzI,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-or-update-team-member.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-team-member.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatCreateOrUpdateTeamMemberInput = z.object({\n email: z.string().describe(\"Email address of the team member\"),\n phone: z.string().describe(\"Phone number of the team member\").optional(),\n title: z.string().describe(\"Job title of the team member\").optional(),\n last_name: z.string().describe(\"Last name of the team member\"),\n first_name: z.string().describe(\"First name of the team member\"),\n}).describe(\"Request model for creating or updating a team member.\");\nexport const SimplesatCreateOrUpdateTeamMemberOutput = z.object({\n id: z.string().describe(\"Unique identifier of the team member in Simplesat\").nullable(),\n name: z.string().describe(\"Full name of the team member (may be auto-generated from first and last name)\").nullable().optional(),\n email: z.string().describe(\"Email address of the team member\").nullable(),\n phone: z.string().describe(\"Phone number of the team member\").nullable().optional(),\n title: z.string().describe(\"Job title of the team member\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the team member\").nullable(),\n first_name: z.string().describe(\"First name of the team member\").nullable(),\n external_id: z.string().describe(\"External identifier for the team member from an integrated system\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes associated with the team member\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating or updating a team member.\");\n\nexport const simplesatCreateOrUpdateTeamMember = action(\"SIMPLESAT_CREATE_OR_UPDATE_TEAM_MEMBER\", {\n slug: \"simplesat-create-or-update-team-member\",\n name: \"Create or Update Team Member\",\n description: \"This tool creates a new team member or updates an existing one if a team member with the same email address is found. It is an independent action that requires only basic team member information (email, first_name, last_name, and optionally title and phone) and does not depend on any other resource IDs.\",\n input: SimplesatCreateOrUpdateTeamMemberInput,\n output: SimplesatCreateOrUpdateTeamMemberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;AACjE,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACtF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-or-update-team-member.d.ts
4
- declare const SimplesatCreateOrUpdateTeamMemberInput: z.ZodTypeAny;
5
- declare const SimplesatCreateOrUpdateTeamMemberOutput: z.ZodTypeAny;
6
- declare const simplesatCreateOrUpdateTeamMember: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimplesatCreateOrUpdateTeamMemberInput: z.ZodObject<{
5
+ email: z.ZodString;
6
+ phone: z.ZodOptional<z.ZodString>;
7
+ title: z.ZodOptional<z.ZodString>;
8
+ last_name: z.ZodString;
9
+ first_name: z.ZodString;
10
+ }, z.core.$strip>;
11
+ declare const SimplesatCreateOrUpdateTeamMemberOutput: z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodString>;
13
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ email: z.ZodNullable<z.ZodString>;
15
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ last_name: z.ZodNullable<z.ZodString>;
18
+ first_name: z.ZodNullable<z.ZodString>;
19
+ external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
+ }, z.core.$loose>;
22
+ declare const simplesatCreateOrUpdateTeamMember: import("@keystrokehq/action").WorkflowActionDefinition<{
23
+ email: string;
24
+ last_name: string;
25
+ first_name: string;
26
+ phone?: string | undefined;
27
+ title?: string | undefined;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { simplesatCreateOrUpdateTeamMember };
9
31
  //# sourceMappingURL=create-or-update-team-member.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-team-member.d.cts","names":[],"sources":["../../src/actions/create-or-update-team-member.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAMa;AAAA,cACvD,uCAAA,EAAyC,CAAA,CAAE,UAUa;AAAA,cAExD,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-or-update-team-member.d.cts","names":[],"sources":["../../src/actions/create-or-update-team-member.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;cAOtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;cAYvC,iCAAA,gCAAiC,wBAAA"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-or-update-team-member.d.ts
4
- declare const SimplesatCreateOrUpdateTeamMemberInput: z.ZodTypeAny;
5
- declare const SimplesatCreateOrUpdateTeamMemberOutput: z.ZodTypeAny;
6
- declare const simplesatCreateOrUpdateTeamMember: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimplesatCreateOrUpdateTeamMemberInput: z.ZodObject<{
5
+ email: z.ZodString;
6
+ phone: z.ZodOptional<z.ZodString>;
7
+ title: z.ZodOptional<z.ZodString>;
8
+ last_name: z.ZodString;
9
+ first_name: z.ZodString;
10
+ }, z.core.$strip>;
11
+ declare const SimplesatCreateOrUpdateTeamMemberOutput: z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodString>;
13
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ email: z.ZodNullable<z.ZodString>;
15
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ last_name: z.ZodNullable<z.ZodString>;
18
+ first_name: z.ZodNullable<z.ZodString>;
19
+ external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
+ }, z.core.$loose>;
22
+ declare const simplesatCreateOrUpdateTeamMember: import("@keystrokehq/action").WorkflowActionDefinition<{
23
+ email: string;
24
+ last_name: string;
25
+ first_name: string;
26
+ phone?: string | undefined;
27
+ title?: string | undefined;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { simplesatCreateOrUpdateTeamMember };
9
31
  //# sourceMappingURL=create-or-update-team-member.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-team-member.d.mts","names":[],"sources":["../../src/actions/create-or-update-team-member.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAMa;AAAA,cACvD,uCAAA,EAAyC,CAAA,CAAE,UAUa;AAAA,cAExD,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-or-update-team-member.d.mts","names":[],"sources":["../../src/actions/create-or-update-team-member.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;cAOtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;cAYvC,iCAAA,gCAAiC,wBAAA"}
@@ -12,16 +12,16 @@ const simplesatCreateOrUpdateTeamMember = action("SIMPLESAT_CREATE_OR_UPDATE_TEA
12
12
  first_name: z.string().describe("First name of the team member")
13
13
  }).describe("Request model for creating or updating a team member."),
14
14
  output: z.object({
15
- id: z.string().describe("Unique identifier of the team member in Simplesat"),
15
+ id: z.string().describe("Unique identifier of the team member in Simplesat").nullable(),
16
16
  name: z.string().describe("Full name of the team member (may be auto-generated from first and last name)").nullable().optional(),
17
- email: z.string().describe("Email address of the team member"),
17
+ email: z.string().describe("Email address of the team member").nullable(),
18
18
  phone: z.string().describe("Phone number of the team member").nullable().optional(),
19
19
  title: z.string().describe("Job title of the team member").nullable().optional(),
20
- last_name: z.string().describe("Last name of the team member"),
21
- first_name: z.string().describe("First name of the team member"),
20
+ last_name: z.string().describe("Last name of the team member").nullable(),
21
+ first_name: z.string().describe("First name of the team member").nullable(),
22
22
  external_id: z.string().describe("External identifier for the team member from an integrated system").nullable().optional(),
23
23
  custom_attributes: z.record(z.string(), z.unknown()).describe("Custom attributes associated with the team member").nullable().optional()
24
- }).describe("Response model for creating or updating a team member.")
24
+ }).passthrough().describe("Response model for creating or updating a team member.")
25
25
  });
26
26
  //#endregion
27
27
  export { simplesatCreateOrUpdateTeamMember };
@@ -1 +1 @@
1
- {"version":3,"file":"create-or-update-team-member.mjs","names":[],"sources":["../../src/actions/create-or-update-team-member.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatCreateOrUpdateTeamMemberInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the team member\"),\n phone: z.string().describe(\"Phone number of the team member\").optional(),\n title: z.string().describe(\"Job title of the team member\").optional(),\n last_name: z.string().describe(\"Last name of the team member\"),\n first_name: z.string().describe(\"First name of the team member\"),\n}).describe(\"Request model for creating or updating a team member.\");\nexport const SimplesatCreateOrUpdateTeamMemberOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the team member in Simplesat\"),\n name: z.string().describe(\"Full name of the team member (may be auto-generated from first and last name)\").nullable().optional(),\n email: z.string().describe(\"Email address of the team member\"),\n phone: z.string().describe(\"Phone number of the team member\").nullable().optional(),\n title: z.string().describe(\"Job title of the team member\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the team member\"),\n first_name: z.string().describe(\"First name of the team member\"),\n external_id: z.string().describe(\"External identifier for the team member from an integrated system\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes associated with the team member\").nullable().optional(),\n}).describe(\"Response model for creating or updating a team member.\");\n\nexport const simplesatCreateOrUpdateTeamMember = action(\"SIMPLESAT_CREATE_OR_UPDATE_TEAM_MEMBER\", {\n slug: \"simplesat-create-or-update-team-member\",\n name: \"Create or Update Team Member\",\n description: \"This tool creates a new team member or updates an existing one if a team member with the same email address is found. It is an independent action that requires only basic team member information (email, first_name, last_name, and optionally title and phone) and does not depend on any other resource IDs.\",\n input: SimplesatCreateOrUpdateTeamMemberInput,\n output: SimplesatCreateOrUpdateTeamMemberOutput,\n});\n"],"mappings":";;AAuBA,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBkE,EAAE,OAAO;EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACpE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACjE,CAAC,CAAC,CAAC,SAAS,uDAiBH;CACP,QAjBmE,EAAE,OAAO;EAC5E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-or-update-team-member.mjs","names":[],"sources":["../../src/actions/create-or-update-team-member.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatCreateOrUpdateTeamMemberInput = z.object({\n email: z.string().describe(\"Email address of the team member\"),\n phone: z.string().describe(\"Phone number of the team member\").optional(),\n title: z.string().describe(\"Job title of the team member\").optional(),\n last_name: z.string().describe(\"Last name of the team member\"),\n first_name: z.string().describe(\"First name of the team member\"),\n}).describe(\"Request model for creating or updating a team member.\");\nexport const SimplesatCreateOrUpdateTeamMemberOutput = z.object({\n id: z.string().describe(\"Unique identifier of the team member in Simplesat\").nullable(),\n name: z.string().describe(\"Full name of the team member (may be auto-generated from first and last name)\").nullable().optional(),\n email: z.string().describe(\"Email address of the team member\").nullable(),\n phone: z.string().describe(\"Phone number of the team member\").nullable().optional(),\n title: z.string().describe(\"Job title of the team member\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the team member\").nullable(),\n first_name: z.string().describe(\"First name of the team member\").nullable(),\n external_id: z.string().describe(\"External identifier for the team member from an integrated system\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes associated with the team member\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating or updating a team member.\");\n\nexport const simplesatCreateOrUpdateTeamMember = action(\"SIMPLESAT_CREATE_OR_UPDATE_TEAM_MEMBER\", {\n slug: \"simplesat-create-or-update-team-member\",\n name: \"Create or Update Team Member\",\n description: \"This tool creates a new team member or updates an existing one if a team member with the same email address is found. It is an independent action that requires only basic team member information (email, first_name, last_name, and optionally title and phone) and does not depend on any other resource IDs.\",\n input: SimplesatCreateOrUpdateTeamMemberInput,\n output: SimplesatCreateOrUpdateTeamMemberOutput,\n});\n"],"mappings":";;AAuBA,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBoD,EAAE,OAAO;EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACpE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACjE,CAAC,CAAC,CAAC,SAAS,uDAiBH;CACP,QAjBqD,EAAE,OAAO;EAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACtF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
@@ -3,14 +3,14 @@ let zod = require("zod");
3
3
  //#region src/actions/get-customer.ts
4
4
  const SimplesatGetCustomerInput = zod.z.object({ id: zod.z.string().describe("Unique identifier of the customer in Simplesat") }).describe("Request model for getting a customer.");
5
5
  const SimplesatGetCustomerOutput = zod.z.object({
6
- id: zod.z.number().int().describe("Unique identifier of the customer in Simplesat"),
6
+ id: zod.z.number().int().describe("Unique identifier of the customer in Simplesat").nullable(),
7
7
  name: zod.z.string().describe("Full name of the customer").nullable().optional(),
8
8
  tags: zod.z.array(zod.z.string()).describe("List of tags associated with the customer").nullable().optional(),
9
9
  email: zod.z.string().describe("Email address of the customer").nullable().optional(),
10
10
  company: zod.z.string().describe("Company name of the customer").nullable().optional(),
11
11
  external_id: zod.z.record(zod.z.string(), zod.z.unknown()).describe("External identifier for integrations with other systems").nullable().optional(),
12
- custom_attributes: zod.z.object({}).describe("Custom attributes of the customer").nullable().optional()
13
- }).describe("Response model for getting a customer.");
12
+ custom_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom attributes of the customer").nullable().optional()
13
+ }).passthrough().describe("Response model for getting a customer.");
14
14
  const simplesatGetCustomer = require_action.action("SIMPLESAT_GET_CUSTOMER", {
15
15
  slug: "simplesat-get-customer",
16
16
  name: "Get Customer",
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer.cjs","names":["z","action"],"sources":["../../src/actions/get-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatGetCustomerInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the customer in Simplesat\"),\n}).describe(\"Request model for getting a customer.\");\nexport const SimplesatGetCustomerOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the customer in Simplesat\"),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n tags: z.array(z.string()).describe(\"List of tags associated with the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n company: z.string().describe(\"Company name of the customer\").nullable().optional(),\n external_id: z.record(z.string(), z.unknown()).describe(\"External identifier for integrations with other systems\").nullable().optional(),\n custom_attributes: z.object({}).describe(\"Custom attributes of the customer\").nullable().optional(),\n}).describe(\"Response model for getting a customer.\");\n\nexport const simplesatGetCustomer = action(\"SIMPLESAT_GET_CUSTOMER\", {\n slug: \"simplesat-get-customer\",\n name: \"Get Customer\",\n description: \"Tool to retrieve a single customer by their Simplesat ID. Returns customer details including name, email, company, tags, and custom attributes.\",\n input: SimplesatGetCustomerInput,\n output: SimplesatGetCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAC1E,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-customer.cjs","names":["z","action"],"sources":["../../src/actions/get-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatGetCustomerInput = z.object({\n id: z.string().describe(\"Unique identifier of the customer in Simplesat\"),\n}).describe(\"Request model for getting a customer.\");\nexport const SimplesatGetCustomerOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the customer in Simplesat\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n tags: z.array(z.string()).describe(\"List of tags associated with the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n company: z.string().describe(\"Company name of the customer\").nullable().optional(),\n external_id: z.record(z.string(), z.unknown()).describe(\"External identifier for integrations with other systems\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes of the customer\").nullable().optional(),\n}).passthrough().describe(\"Response model for getting a customer.\");\n\nexport const simplesatGetCustomer = action(\"SIMPLESAT_GET_CUSTOMER\", {\n slug: \"simplesat-get-customer\",\n name: \"Get Customer\",\n description: \"Tool to retrieve a single customer by their Simplesat ID. Returns customer details including name, email, company, tags, and custom attributes.\",\n input: SimplesatGetCustomerInput,\n output: SimplesatGetCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAC1E,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-customer.d.ts
4
- declare const SimplesatGetCustomerInput: z.ZodTypeAny;
5
- declare const SimplesatGetCustomerOutput: z.ZodTypeAny;
6
- declare const simplesatGetCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimplesatGetCustomerInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const SimplesatGetCustomerOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodNumber>;
9
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
11
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ external_id: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
+ custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
+ }, z.core.$loose>;
16
+ declare const simplesatGetCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ id: string;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { simplesatGetCustomer };
9
21
  //# sourceMappingURL=get-customer.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer.d.cts","names":[],"sources":["../../src/actions/get-customer.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEU;AAAA,cACvC,0BAAA,EAA4B,CAAA,CAAE,UAQU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-customer.d.cts","names":[],"sources":["../../src/actions/get-customer.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;cAU1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-customer.d.ts
4
- declare const SimplesatGetCustomerInput: z.ZodTypeAny;
5
- declare const SimplesatGetCustomerOutput: z.ZodTypeAny;
6
- declare const simplesatGetCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimplesatGetCustomerInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const SimplesatGetCustomerOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodNumber>;
9
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
11
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ external_id: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
+ custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
+ }, z.core.$loose>;
16
+ declare const simplesatGetCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ id: string;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { simplesatGetCustomer };
9
21
  //# sourceMappingURL=get-customer.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer.d.mts","names":[],"sources":["../../src/actions/get-customer.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEU;AAAA,cACvC,0BAAA,EAA4B,CAAA,CAAE,UAQU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-customer.d.mts","names":[],"sources":["../../src/actions/get-customer.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;cAU1B,oBAAA,gCAAoB,wBAAA"}
@@ -6,14 +6,14 @@ const simplesatGetCustomer = action("SIMPLESAT_GET_CUSTOMER", {
6
6
  description: "Tool to retrieve a single customer by their Simplesat ID. Returns customer details including name, email, company, tags, and custom attributes.",
7
7
  input: z.object({ id: z.string().describe("Unique identifier of the customer in Simplesat") }).describe("Request model for getting a customer."),
8
8
  output: z.object({
9
- id: z.number().int().describe("Unique identifier of the customer in Simplesat"),
9
+ id: z.number().int().describe("Unique identifier of the customer in Simplesat").nullable(),
10
10
  name: z.string().describe("Full name of the customer").nullable().optional(),
11
11
  tags: z.array(z.string()).describe("List of tags associated with the customer").nullable().optional(),
12
12
  email: z.string().describe("Email address of the customer").nullable().optional(),
13
13
  company: z.string().describe("Company name of the customer").nullable().optional(),
14
14
  external_id: z.record(z.string(), z.unknown()).describe("External identifier for integrations with other systems").nullable().optional(),
15
- custom_attributes: z.object({}).describe("Custom attributes of the customer").nullable().optional()
16
- }).describe("Response model for getting a customer.")
15
+ custom_attributes: z.record(z.string(), z.unknown()).describe("Custom attributes of the customer").nullable().optional()
16
+ }).passthrough().describe("Response model for getting a customer.")
17
17
  });
18
18
  //#endregion
19
19
  export { simplesatGetCustomer };
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer.mjs","names":[],"sources":["../../src/actions/get-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatGetCustomerInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the customer in Simplesat\"),\n}).describe(\"Request model for getting a customer.\");\nexport const SimplesatGetCustomerOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the customer in Simplesat\"),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n tags: z.array(z.string()).describe(\"List of tags associated with the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n company: z.string().describe(\"Company name of the customer\").nullable().optional(),\n external_id: z.record(z.string(), z.unknown()).describe(\"External identifier for integrations with other systems\").nullable().optional(),\n custom_attributes: z.object({}).describe(\"Custom attributes of the customer\").nullable().optional(),\n}).describe(\"Response model for getting a customer.\");\n\nexport const simplesatGetCustomer = action(\"SIMPLESAT_GET_CUSTOMER\", {\n slug: \"simplesat-get-customer\",\n name: \"Get Customer\",\n description: \"Tool to retrieve a single customer by their Simplesat ID. Returns customer details including name, email, company, tags, and custom attributes.\",\n input: SimplesatGetCustomerInput,\n output: SimplesatGetCustomerOutput,\n});\n"],"mappings":";;AAiBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBqD,EAAE,OAAO,EAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAC1E,CAAC,CAAC,CAAC,SAAS,uCAeH;CACP,QAfsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;EAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,mBAAmB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-customer.mjs","names":[],"sources":["../../src/actions/get-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatGetCustomerInput = z.object({\n id: z.string().describe(\"Unique identifier of the customer in Simplesat\"),\n}).describe(\"Request model for getting a customer.\");\nexport const SimplesatGetCustomerOutput = z.object({\n id: z.number().int().describe(\"Unique identifier of the customer in Simplesat\").nullable(),\n name: z.string().describe(\"Full name of the customer\").nullable().optional(),\n tags: z.array(z.string()).describe(\"List of tags associated with the customer\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer\").nullable().optional(),\n company: z.string().describe(\"Company name of the customer\").nullable().optional(),\n external_id: z.record(z.string(), z.unknown()).describe(\"External identifier for integrations with other systems\").nullable().optional(),\n custom_attributes: z.record(z.string(), z.unknown()).describe(\"Custom attributes of the customer\").nullable().optional(),\n}).passthrough().describe(\"Response model for getting a customer.\");\n\nexport const simplesatGetCustomer = action(\"SIMPLESAT_GET_CUSTOMER\", {\n slug: \"simplesat-get-customer\",\n name: \"Get Customer\",\n description: \"Tool to retrieve a single customer by their Simplesat ID. Returns customer details including name, email, company, tags, and custom attributes.\",\n input: SimplesatGetCustomerInput,\n output: SimplesatGetCustomerOutput,\n});\n"],"mappings":";;AAiBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBuC,EAAE,OAAO,EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAC1E,CAAC,CAAC,CAAC,SAAS,uCAeH;CACP,QAfwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
@@ -15,19 +15,19 @@ const SimplesatListQuestions_QuestionRuleSchema = zod.z.object({
15
15
  id: zod.z.number().int().describe("Rule ID").nullable().optional(),
16
16
  action: zod.z.string().describe("Rule action").nullable().optional(),
17
17
  condition: zod.z.string().describe("Rule condition").nullable().optional()
18
- }).describe("Conditional rule for a question.");
18
+ }).passthrough().describe("Conditional rule for a question.");
19
19
  const SimplesatListQuestions_QuestionSurveySchema = zod.z.object({
20
20
  id: zod.z.number().int().describe("Survey ID").nullable().optional(),
21
21
  name: zod.z.string().describe("Survey name").nullable().optional()
22
- }).describe("Survey details within a question.");
22
+ }).passthrough().describe("Survey details within a question.");
23
23
  const SimplesatListQuestions_QuestionChoiceSchema = zod.z.object({
24
24
  id: zod.z.number().int().describe("Choice ID").nullable().optional(),
25
25
  text: zod.z.string().describe("Choice text").nullable().optional(),
26
26
  order: zod.z.number().int().describe("Order of the choice").nullable().optional()
27
- }).describe("Choice option for a question.");
27
+ }).passthrough().describe("Choice option for a question.");
28
28
  const SimplesatListQuestions_QuestionSchema = zod.z.object({
29
- id: zod.z.number().int().describe("Question ID"),
30
- text: zod.z.string().describe("Question text"),
29
+ id: zod.z.number().int().describe("Question ID").nullable(),
30
+ text: zod.z.string().describe("Question text").nullable(),
31
31
  order: zod.z.number().int().describe("Display order of the question").nullable().optional(),
32
32
  rules: zod.z.array(SimplesatListQuestions_QuestionRuleSchema).describe("List of conditional rules for the question").nullable().optional(),
33
33
  metric: zod.z.string().describe("Metric type (csat, nps, or ces)").nullable().optional(),
@@ -35,13 +35,13 @@ const SimplesatListQuestions_QuestionSchema = zod.z.object({
35
35
  choices: zod.z.array(SimplesatListQuestions_QuestionChoiceSchema).describe("List of choice options for the question").nullable().optional(),
36
36
  required: zod.z.boolean().describe("Whether the question is required").nullable().optional(),
37
37
  rating_scale: zod.z.boolean().describe("Whether the question uses a rating scale").nullable().optional()
38
- }).describe("Individual question details.");
38
+ }).passthrough().describe("Individual question details.");
39
39
  const SimplesatListQuestionsOutput = zod.z.object({
40
40
  next: zod.z.string().describe("URL for the next page of results").nullable().optional(),
41
- count: zod.z.number().int().describe("Total count of questions"),
41
+ count: zod.z.number().int().describe("Total count of questions").nullable(),
42
42
  previous: zod.z.string().describe("URL for the previous page of results").nullable().optional(),
43
43
  questions: zod.z.array(SimplesatListQuestions_QuestionSchema).describe("List of questions")
44
- }).describe("Response model for listing questions.");
44
+ }).passthrough().describe("Response model for listing questions.");
45
45
  const simplesatListQuestions = require_action.action("SIMPLESAT_LIST_QUESTIONS", {
46
46
  slug: "simplesat-list-questions",
47
47
  name: "List Questions",
@@ -1 +1 @@
1
- {"version":3,"file":"list-questions.cjs","names":["z","action"],"sources":["../../src/actions/list-questions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatListQuestionsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (starts at 1)\").optional(),\n metric: z.enum([\"csat\", \"nps\", \"ces\"]).describe(\"Metric type enum for filtering questions.\").optional(),\n page_size: z.number().int().describe(\"Number of records per page (default 100)\").optional(),\n survey_id: z.number().int().describe(\"Filter questions by survey ID\").optional(),\n}).describe(\"Request model for listing questions.\");\nconst SimplesatListQuestions_QuestionRuleSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Rule ID\").nullable().optional(),\n action: z.string().describe(\"Rule action\").nullable().optional(),\n condition: z.string().describe(\"Rule condition\").nullable().optional(),\n}).describe(\"Conditional rule for a question.\");\nconst SimplesatListQuestions_QuestionSurveySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Survey ID\").nullable().optional(),\n name: z.string().describe(\"Survey name\").nullable().optional(),\n}).describe(\"Survey details within a question.\");\nconst SimplesatListQuestions_QuestionChoiceSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Choice ID\").nullable().optional(),\n text: z.string().describe(\"Choice text\").nullable().optional(),\n order: z.number().int().describe(\"Order of the choice\").nullable().optional(),\n}).describe(\"Choice option for a question.\");\nconst SimplesatListQuestions_QuestionSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Question ID\"),\n text: z.string().describe(\"Question text\"),\n order: z.number().int().describe(\"Display order of the question\").nullable().optional(),\n rules: z.array(SimplesatListQuestions_QuestionRuleSchema).describe(\"List of conditional rules for the question\").nullable().optional(),\n metric: z.string().describe(\"Metric type (csat, nps, or ces)\").nullable().optional(),\n survey: SimplesatListQuestions_QuestionSurveySchema.nullable().optional(),\n choices: z.array(SimplesatListQuestions_QuestionChoiceSchema).describe(\"List of choice options for the question\").nullable().optional(),\n required: z.boolean().describe(\"Whether the question is required\").nullable().optional(),\n rating_scale: z.boolean().describe(\"Whether the question uses a rating scale\").nullable().optional(),\n}).describe(\"Individual question details.\");\nexport const SimplesatListQuestionsOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total count of questions\"),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n questions: z.array(SimplesatListQuestions_QuestionSchema).describe(\"List of questions\"),\n}).describe(\"Response model for listing questions.\");\n\nexport const simplesatListQuestions = action(\"SIMPLESAT_LIST_QUESTIONS\", {\n slug: \"simplesat-list-questions\",\n name: \"List Questions\",\n description: \"Tool to retrieve a paginated list of all questions in Simplesat. Use when you need to fetch question details including order, metric type, text, rating scale, choices, and conditional rules. Supports filtering by metric (csat, nps, ces) and survey_id.\",\n input: SimplesatListQuestionsInput,\n output: SimplesatListQuestionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAK,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC1F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAA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A,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,WAAWA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,mBAAmB;AACxF,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-questions.cjs","names":["z","action"],"sources":["../../src/actions/list-questions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatListQuestionsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (starts at 1)\").optional(),\n metric: z.enum([\"csat\", \"nps\", \"ces\"]).describe(\"Metric type enum for filtering questions.\").optional(),\n page_size: z.number().int().describe(\"Number of records per page (default 100)\").optional(),\n survey_id: z.number().int().describe(\"Filter questions by survey ID\").optional(),\n}).describe(\"Request model for listing questions.\");\nconst SimplesatListQuestions_QuestionRuleSchema = z.object({\n id: z.number().int().describe(\"Rule ID\").nullable().optional(),\n action: z.string().describe(\"Rule action\").nullable().optional(),\n condition: z.string().describe(\"Rule condition\").nullable().optional(),\n}).passthrough().describe(\"Conditional rule for a question.\");\nconst SimplesatListQuestions_QuestionSurveySchema = z.object({\n id: z.number().int().describe(\"Survey ID\").nullable().optional(),\n name: z.string().describe(\"Survey name\").nullable().optional(),\n}).passthrough().describe(\"Survey details within a question.\");\nconst SimplesatListQuestions_QuestionChoiceSchema = z.object({\n id: z.number().int().describe(\"Choice ID\").nullable().optional(),\n text: z.string().describe(\"Choice text\").nullable().optional(),\n order: z.number().int().describe(\"Order of the choice\").nullable().optional(),\n}).passthrough().describe(\"Choice option for a question.\");\nconst SimplesatListQuestions_QuestionSchema = z.object({\n id: z.number().int().describe(\"Question ID\").nullable(),\n text: z.string().describe(\"Question text\").nullable(),\n order: z.number().int().describe(\"Display order of the question\").nullable().optional(),\n rules: z.array(SimplesatListQuestions_QuestionRuleSchema).describe(\"List of conditional rules for the question\").nullable().optional(),\n metric: z.string().describe(\"Metric type (csat, nps, or ces)\").nullable().optional(),\n survey: SimplesatListQuestions_QuestionSurveySchema.nullable().optional(),\n choices: z.array(SimplesatListQuestions_QuestionChoiceSchema).describe(\"List of choice options for the question\").nullable().optional(),\n required: z.boolean().describe(\"Whether the question is required\").nullable().optional(),\n rating_scale: z.boolean().describe(\"Whether the question uses a rating scale\").nullable().optional(),\n}).passthrough().describe(\"Individual question details.\");\nexport const SimplesatListQuestionsOutput = z.object({\n next: z.string().describe(\"URL for the next page of results\").nullable().optional(),\n count: z.number().int().describe(\"Total count of questions\").nullable(),\n previous: z.string().describe(\"URL for the previous page of results\").nullable().optional(),\n questions: z.array(SimplesatListQuestions_QuestionSchema).describe(\"List of questions\"),\n}).passthrough().describe(\"Response model for listing questions.\");\n\nexport const simplesatListQuestions = action(\"SIMPLESAT_LIST_QUESTIONS\", {\n slug: \"simplesat-list-questions\",\n name: \"List Questions\",\n description: \"Tool to retrieve a paginated list of all questions in Simplesat. Use when you need to fetch question details including order, metric type, text, rating scale, choices, and conditional rules. Supports filtering by metric (csat, nps, ces) and survey_id.\",\n input: SimplesatListQuestionsInput,\n output: SimplesatListQuestionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OA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