@keystrokehq/simplesat 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) 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 +1 -0
  4. package/dist/actions/create-or-update-customer2.cjs.map +1 -1
  5. package/dist/actions/create-or-update-customer2.d.cts +3 -20
  6. package/dist/actions/create-or-update-customer2.d.cts.map +1 -1
  7. package/dist/actions/create-or-update-customer2.d.mts +3 -20
  8. package/dist/actions/create-or-update-customer2.d.mts.map +1 -1
  9. package/dist/actions/create-or-update-customer2.mjs +1 -0
  10. package/dist/actions/create-or-update-customer2.mjs.map +1 -1
  11. package/dist/actions/create-or-update-team-member.cjs +1 -0
  12. package/dist/actions/create-or-update-team-member.cjs.map +1 -1
  13. package/dist/actions/create-or-update-team-member.d.cts +3 -19
  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 +3 -19
  16. package/dist/actions/create-or-update-team-member.d.mts.map +1 -1
  17. package/dist/actions/create-or-update-team-member.mjs +1 -0
  18. package/dist/actions/create-or-update-team-member.mjs.map +1 -1
  19. package/dist/actions/get-customer.cjs +1 -0
  20. package/dist/actions/get-customer.cjs.map +1 -1
  21. package/dist/actions/get-customer.d.cts +3 -15
  22. package/dist/actions/get-customer.d.cts.map +1 -1
  23. package/dist/actions/get-customer.d.mts +3 -15
  24. package/dist/actions/get-customer.d.mts.map +1 -1
  25. package/dist/actions/get-customer.mjs +1 -0
  26. package/dist/actions/get-customer.mjs.map +1 -1
  27. package/dist/actions/list-questions.cjs +1 -0
  28. package/dist/actions/list-questions.cjs.map +1 -1
  29. package/dist/actions/list-questions.d.cts +3 -18
  30. package/dist/actions/list-questions.d.cts.map +1 -1
  31. package/dist/actions/list-questions.d.mts +3 -18
  32. package/dist/actions/list-questions.d.mts.map +1 -1
  33. package/dist/actions/list-questions.mjs +1 -0
  34. package/dist/actions/list-questions.mjs.map +1 -1
  35. package/dist/actions/list-surveys.cjs +1 -0
  36. package/dist/actions/list-surveys.cjs.map +1 -1
  37. package/dist/actions/list-surveys.d.cts +3 -16
  38. package/dist/actions/list-surveys.d.cts.map +1 -1
  39. package/dist/actions/list-surveys.d.mts +3 -16
  40. package/dist/actions/list-surveys.d.mts.map +1 -1
  41. package/dist/actions/list-surveys.mjs +1 -0
  42. package/dist/actions/list-surveys.mjs.map +1 -1
  43. package/dist/actions/search-answers.cjs +1 -0
  44. package/dist/actions/search-answers.cjs.map +1 -1
  45. package/dist/actions/search-answers.d.cts +3 -25
  46. package/dist/actions/search-answers.d.cts.map +1 -1
  47. package/dist/actions/search-answers.d.mts +3 -25
  48. package/dist/actions/search-answers.d.mts.map +1 -1
  49. package/dist/actions/search-answers.mjs +1 -0
  50. package/dist/actions/search-answers.mjs.map +1 -1
  51. package/dist/actions/search-responses.cjs +1 -0
  52. package/dist/actions/search-responses.cjs.map +1 -1
  53. package/dist/actions/search-responses.d.cts +3 -25
  54. package/dist/actions/search-responses.d.cts.map +1 -1
  55. package/dist/actions/search-responses.d.mts +3 -25
  56. package/dist/actions/search-responses.d.mts.map +1 -1
  57. package/dist/actions/search-responses.mjs +1 -0
  58. package/dist/actions/search-responses.mjs.map +1 -1
  59. package/dist/actions/update-customer.cjs +1 -0
  60. package/dist/actions/update-customer.cjs.map +1 -1
  61. package/dist/actions/update-customer.d.cts +3 -21
  62. package/dist/actions/update-customer.d.cts.map +1 -1
  63. package/dist/actions/update-customer.d.mts +3 -21
  64. package/dist/actions/update-customer.d.mts.map +1 -1
  65. package/dist/actions/update-customer.mjs +1 -0
  66. package/dist/actions/update-customer.mjs.map +1 -1
  67. package/dist/app.cjs +2 -2
  68. package/dist/app.cjs.map +1 -1
  69. package/dist/app.d.cts +4 -6
  70. package/dist/app.d.cts.map +1 -1
  71. package/dist/app.d.mts +4 -6
  72. package/dist/app.d.mts.map +1 -1
  73. package/dist/app.mjs +0 -1
  74. package/dist/app.mjs.map +1 -1
  75. package/dist/index.d.cts +1 -1
  76. package/dist/index.d.mts +1 -1
  77. 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<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
+ {"version":3,"file":"action.cjs","names":["simplesat","executeSimplesatTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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, 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 simplesat.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,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<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"}
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 { 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, 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 simplesat.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,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,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-or-update-customer2.ts
@@ -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.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":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACnG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACtF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACtE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC/H,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yHAAyH,CAAC,CAAC,SAAS;AACpM,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,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;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;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
+ {"version":3,"file":"create-or-update-customer2.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-customer2.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplesat } from \"../app\";\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: AppAction<\n typeof SimplesatCreateOrUpdateCustomer2Input,\n typeof SimplesatCreateOrUpdateCustomer2Output,\n typeof simplesat.credential\n> = 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":";;;;AAMA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACnG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;C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b,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { simplesat } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-or-update-customer2.d.ts
@@ -18,26 +20,7 @@ declare const SimplesatCreateOrUpdateCustomer2Output: z.ZodObject<{
18
20
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
21
  custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
20
22
  }, 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<"simplesat", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- generic_api_key: z.ZodString;
34
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplesat", z.ZodObject<{
35
- connectionId: z.ZodString;
36
- entityId: z.ZodString;
37
- instanceId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- generic_api_key: z.ZodString;
40
- }, z.core.$strip>>]>;
23
+ declare const simplesatCreateOrUpdateCustomer2: AppAction<typeof SimplesatCreateOrUpdateCustomer2Input, typeof SimplesatCreateOrUpdateCustomer2Output, typeof simplesat.credential>;
41
24
  //#endregion
42
25
  export { simplesatCreateOrUpdateCustomer2 };
43
26
  //# 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,EAAqC,CAAA,CAAA,SAAA;;;;;;;;cAQrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;cAUtC,gCAAA,gCAAgC,wBAAA"}
1
+ {"version":3,"file":"create-or-update-customer2.d.cts","names":[],"sources":["../../src/actions/create-or-update-customer2.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;cAQrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;cAUtC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { simplesat } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-or-update-customer2.d.ts
@@ -18,26 +20,7 @@ declare const SimplesatCreateOrUpdateCustomer2Output: z.ZodObject<{
18
20
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
21
  custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
20
22
  }, 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<"simplesat", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- generic_api_key: z.ZodString;
34
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplesat", z.ZodObject<{
35
- connectionId: z.ZodString;
36
- entityId: z.ZodString;
37
- instanceId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- generic_api_key: z.ZodString;
40
- }, z.core.$strip>>]>;
23
+ declare const simplesatCreateOrUpdateCustomer2: AppAction<typeof SimplesatCreateOrUpdateCustomer2Input, typeof SimplesatCreateOrUpdateCustomer2Output, typeof simplesat.credential>;
41
24
  //#endregion
42
25
  export { simplesatCreateOrUpdateCustomer2 };
43
26
  //# 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,EAAqC,CAAA,CAAA,SAAA;;;;;;;;cAQrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;cAUtC,gCAAA,gCAAgC,wBAAA"}
1
+ {"version":3,"file":"create-or-update-customer2.d.mts","names":[],"sources":["../../src/actions/create-or-update-customer2.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;cAQrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;cAUtC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,SAAA,CAAU,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 simplesatCreateOrUpdateCustomer2 = action("SIMPLESAT_CREATE_OR_UPDATE_CUSTOMER2", {
@@ -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.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"}
1
+ {"version":3,"file":"create-or-update-customer2.mjs","names":[],"sources":["../../src/actions/create-or-update-customer2.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplesat } from \"../app\";\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: AppAction<\n typeof SimplesatCreateOrUpdateCustomer2Input,\n typeof SimplesatCreateOrUpdateCustomer2Output,\n typeof simplesat.credential\n> = 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":";;;AAwBA,MAAa,mCAIT,OAAO,wCAAwC;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1BmD,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,oDAmBH;CACP,QAnBoD,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,qDAWhB;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/create-or-update-team-member.ts
@@ -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.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,SAA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V,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 type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplesat } from \"../app\";\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: AppAction<\n typeof SimplesatCreateOrUpdateTeamMemberInput,\n typeof SimplesatCreateOrUpdateTeamMemberOutput,\n typeof simplesat.credential\n> = 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: SimplesatCre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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,oCAITC,eAAAA,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { simplesat } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-or-update-team-member.d.ts
@@ -19,25 +21,7 @@ declare const SimplesatCreateOrUpdateTeamMemberOutput: z.ZodObject<{
19
21
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
22
  custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
23
  }, 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<"simplesat", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- generic_api_key: z.ZodString;
34
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplesat", z.ZodObject<{
35
- connectionId: z.ZodString;
36
- entityId: z.ZodString;
37
- instanceId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- generic_api_key: z.ZodString;
40
- }, z.core.$strip>>]>;
24
+ declare const simplesatCreateOrUpdateTeamMember: AppAction<typeof SimplesatCreateOrUpdateTeamMemberInput, typeof SimplesatCreateOrUpdateTeamMemberOutput, typeof simplesat.credential>;
41
25
  //#endregion
42
26
  export { simplesatCreateOrUpdateTeamMember };
43
27
  //# 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,EAAsC,CAAA,CAAA,SAAA;;;;;;;cAOtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;cAYvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"create-or-update-team-member.d.cts","names":[],"sources":["../../src/actions/create-or-update-team-member.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;cAOtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;cAYvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { simplesat } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-or-update-team-member.d.ts
@@ -19,25 +21,7 @@ declare const SimplesatCreateOrUpdateTeamMemberOutput: z.ZodObject<{
19
21
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
22
  custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
23
  }, 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<"simplesat", z.ZodObject<{
29
- connectionId: z.ZodString;
30
- entityId: z.ZodString;
31
- instanceId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- generic_api_key: z.ZodString;
34
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplesat", z.ZodObject<{
35
- connectionId: z.ZodString;
36
- entityId: z.ZodString;
37
- instanceId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- generic_api_key: z.ZodString;
40
- }, z.core.$strip>>]>;
24
+ declare const simplesatCreateOrUpdateTeamMember: AppAction<typeof SimplesatCreateOrUpdateTeamMemberInput, typeof SimplesatCreateOrUpdateTeamMemberOutput, typeof simplesat.credential>;
41
25
  //#endregion
42
26
  export { simplesatCreateOrUpdateTeamMember };
43
27
  //# 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,EAAsC,CAAA,CAAA,SAAA;;;;;;;cAOtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;cAYvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"create-or-update-team-member.d.mts","names":[],"sources":["../../src/actions/create-or-update-team-member.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;cAOtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;cAYvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,SAAA,CAAU,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 simplesatCreateOrUpdateTeamMember = action("SIMPLESAT_CREATE_OR_UPDATE_TEAM_MEMBER", {
@@ -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.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"}
1
+ {"version":3,"file":"create-or-update-team-member.mjs","names":[],"sources":["../../src/actions/create-or-update-team-member.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplesat } from \"../app\";\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: AppAction<\n typeof SimplesatCreateOrUpdateTeamMemberInput,\n typeof SimplesatCreateOrUpdateTeamMemberOutput,\n typeof simplesat.credential\n> = 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":";;;AAyBA,MAAa,oCAIT,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BoD,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,uDAqBH;CACP,QArBqD,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,wDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-customer.ts
@@ -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.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
+ {"version":3,"file":"get-customer.cjs","names":["z","action"],"sources":["../../src/actions/get-customer.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplesat } from \"../app\";\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: AppAction<\n typeof SimplesatGetCustomerInput,\n typeof SimplesatGetCustomerOutput,\n typeof simplesat.credential\n> = 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":";;;;AAMA,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,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { simplesat } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-customer.d.ts
@@ -13,21 +15,7 @@ declare const SimplesatGetCustomerOutput: z.ZodObject<{
13
15
  external_id: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
16
  custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
17
  }, 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<"simplesat", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplesat", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- generic_api_key: z.ZodString;
30
- }, z.core.$strip>>]>;
18
+ declare const simplesatGetCustomer: AppAction<typeof SimplesatGetCustomerInput, typeof SimplesatGetCustomerOutput, typeof simplesat.credential>;
31
19
  //#endregion
32
20
  export { simplesatGetCustomer };
33
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,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;cAU1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"get-customer.d.cts","names":[],"sources":["../../src/actions/get-customer.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;cAU1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { simplesat } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-customer.d.ts
@@ -13,21 +15,7 @@ declare const SimplesatGetCustomerOutput: z.ZodObject<{
13
15
  external_id: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
16
  custom_attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
17
  }, 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<"simplesat", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplesat", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- generic_api_key: z.ZodString;
30
- }, z.core.$strip>>]>;
18
+ declare const simplesatGetCustomer: AppAction<typeof SimplesatGetCustomerInput, typeof SimplesatGetCustomerOutput, typeof simplesat.credential>;
31
19
  //#endregion
32
20
  export { simplesatGetCustomer };
33
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,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;cAU1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"get-customer.d.mts","names":[],"sources":["../../src/actions/get-customer.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;cAU1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,SAAA,CAAU,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 simplesatGetCustomer = action("SIMPLESAT_GET_CUSTOMER", {
@@ -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.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"}
1
+ {"version":3,"file":"get-customer.mjs","names":[],"sources":["../../src/actions/get-customer.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplesat } from \"../app\";\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: AppAction<\n typeof SimplesatGetCustomerInput,\n typeof SimplesatGetCustomerOutput,\n typeof simplesat.credential\n> = 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":";;;AAmBA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBuC,EAAE,OAAO,EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EAC1E,CAAC,CAAC,CAAC,SAAS,uCAmBH;CACP,QAnBwC,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,wCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-questions.ts
@@ -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.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 r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,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,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,CAAC,CAAC,SAAS;CACtE,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,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,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 type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplesat } from \"../app\";\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: AppAction<\n typeof SimplesatListQuestionsInput,\n typeof SimplesatListQuestionsOutput,\n typeof simplesat.credential\n> = 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":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,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,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,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,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAA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AS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,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,CAAC,CAAC,SAAS;CACtE,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,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { simplesat } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-questions.d.ts
@@ -38,24 +40,7 @@ declare const SimplesatListQuestionsOutput: z.ZodObject<{
38
40
  rating_scale: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
39
41
  }, z.core.$loose>>;
40
42
  }, z.core.$loose>;
41
- declare const simplesatListQuestions: import("@keystrokehq/action").WorkflowActionDefinition<{
42
- page?: number | undefined;
43
- metric?: "csat" | "nps" | "ces" | undefined;
44
- page_size?: number | undefined;
45
- survey_id?: number | undefined;
46
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"simplesat", z.ZodObject<{
47
- connectionId: z.ZodString;
48
- entityId: z.ZodString;
49
- instanceId: z.ZodString;
50
- }, z.core.$strip>, z.ZodObject<{
51
- generic_api_key: z.ZodString;
52
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplesat", z.ZodObject<{
53
- connectionId: z.ZodString;
54
- entityId: z.ZodString;
55
- instanceId: z.ZodString;
56
- }, z.core.$strip>, z.ZodObject<{
57
- generic_api_key: z.ZodString;
58
- }, z.core.$strip>>]>;
43
+ declare const simplesatListQuestions: AppAction<typeof SimplesatListQuestionsInput, typeof SimplesatListQuestionsOutput, typeof simplesat.credential>;
59
44
  //#endregion
60
45
  export { simplesatListQuestions };
61
46
  //# sourceMappingURL=list-questions.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-questions.d.cts","names":[],"sources":["../../src/actions/list-questions.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cA+B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAO5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"list-questions.d.cts","names":[],"sources":["../../src/actions/list-questions.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cA+B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAO5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { simplesat } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-questions.d.ts
@@ -38,24 +40,7 @@ declare const SimplesatListQuestionsOutput: z.ZodObject<{
38
40
  rating_scale: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
39
41
  }, z.core.$loose>>;
40
42
  }, z.core.$loose>;
41
- declare const simplesatListQuestions: import("@keystrokehq/action").WorkflowActionDefinition<{
42
- page?: number | undefined;
43
- metric?: "csat" | "nps" | "ces" | undefined;
44
- page_size?: number | undefined;
45
- survey_id?: number | undefined;
46
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"simplesat", z.ZodObject<{
47
- connectionId: z.ZodString;
48
- entityId: z.ZodString;
49
- instanceId: z.ZodString;
50
- }, z.core.$strip>, z.ZodObject<{
51
- generic_api_key: z.ZodString;
52
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"simplesat", z.ZodObject<{
53
- connectionId: z.ZodString;
54
- entityId: z.ZodString;
55
- instanceId: z.ZodString;
56
- }, z.core.$strip>, z.ZodObject<{
57
- generic_api_key: z.ZodString;
58
- }, z.core.$strip>>]>;
43
+ declare const simplesatListQuestions: AppAction<typeof SimplesatListQuestionsInput, typeof SimplesatListQuestionsOutput, typeof simplesat.credential>;
59
44
  //#endregion
60
45
  export { simplesatListQuestions };
61
46
  //# sourceMappingURL=list-questions.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-questions.d.mts","names":[],"sources":["../../src/actions/list-questions.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cA+B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAO5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"list-questions.d.mts","names":[],"sources":["../../src/actions/list-questions.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cA+B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAO5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-questions.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-questions.mjs","names":[],"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,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,QAAQ,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAK,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC1F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,QAAQ,EAAE,OAAO,CAA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CAAC,CAAC,SAAS;CACrI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,QAAQ,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACxE,SAAS,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AAQxD,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,WAAW,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,mBAAmB;CACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-questions.mjs","names":[],"sources":["../../src/actions/list-questions.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplesat } from \"../app\";\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: AppAction<\n typeof SimplesatListQuestionsInput,\n typeof SimplesatListQuestionsOutput,\n typeof simplesat.credential\n> = 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":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,QAAQ,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAK,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC1F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAM,8CAA8C,EAAE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,CAAC,CAAC,SAAS;CACtI,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AAQxD,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhB0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,WAAW,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,mBAAmB;CACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-surveys.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-surveys.cjs","names":["z","action"],"sources":["../../src/actions/list-surveys.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplesatListSurveysInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (must be positive integer)\").optional(),\n page_size: z.number().int().describe(\"Number of records per page (default 100, max 100)\").optional(),\n});\nconst SimplesatListSurveys_SurveySchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the survey\").nullable(),\n name: z.string().describe(\"Name of the survey\").nullable(),\n metric: z.string().describe(\"Type of metric used by the survey (e.g., CSAT, NPS, CES)\").nullable(),\n}).passthrough();\nexport const SimplesatListSurveysOutput = z.object({\n surveys: z.array(SimplesatListSurveys_SurveySchema).describe(\"List of surveys in the account\"),\n}).passthrough();\n\nexport const simplesatListSurveys = action(\"SIMPLESAT_LIST_SURVEYS\", {\n slug: \"simplesat-list-surveys\",\n name: \"List Surveys\",\n description: \"Tool to list all surveys in the Simplesat account. Returns survey details including id, name, and metric type (CSAT, NPS, CES). Use when you need to retrieve available surveys or find a specific survey by name or metric type.\",\n input: SimplesatListSurveysInput,\n output: SimplesatListSurveysOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACrG,CAAC;AACD,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,gCAAgC,EAC/F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-surveys.cjs","names":["z","action"],"sources":["../../src/actions/list-surveys.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplesat } from \"../app\";\n\nexport const SimplesatListSurveysInput = z.object({\n page: z.number().int().describe(\"Page number for pagination (must be positive integer)\").optional(),\n page_size: z.number().int().describe(\"Number of records per page (default 100, max 100)\").optional(),\n});\nconst SimplesatListSurveys_SurveySchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the survey\").nullable(),\n name: z.string().describe(\"Name of the survey\").nullable(),\n metric: z.string().describe(\"Type of metric used by the survey (e.g., CSAT, NPS, CES)\").nullable(),\n}).passthrough();\nexport const SimplesatListSurveysOutput = z.object({\n surveys: z.array(SimplesatListSurveys_SurveySchema).describe(\"List of surveys in the account\"),\n}).passthrough();\n\nexport const simplesatListSurveys: AppAction<\n typeof SimplesatListSurveysInput,\n typeof SimplesatListSurveysOutput,\n typeof simplesat.credential\n> = action(\"SIMPLESAT_LIST_SURVEYS\", {\n slug: \"simplesat-list-surveys\",\n name: \"List Surveys\",\n description: \"Tool to list all surveys in the Simplesat account. Returns survey details including id, name, and metric type (CSAT, NPS, CES). Use when you need to retrieve available surveys or find a specific survey by name or metric type.\",\n input: SimplesatListSurveysInput,\n output: SimplesatListSurveysOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACrG,CAAC;AACD,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,gCAAgC,EAC/F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}