@keystrokehq/salesmate 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 (57) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-product.cjs +15 -15
  4. package/dist/actions/add-product.cjs.map +1 -1
  5. package/dist/actions/add-product.d.cts +50 -3
  6. package/dist/actions/add-product.d.cts.map +1 -1
  7. package/dist/actions/add-product.d.mts +50 -3
  8. package/dist/actions/add-product.d.mts.map +1 -1
  9. package/dist/actions/add-product.mjs +15 -15
  10. package/dist/actions/add-product.mjs.map +1 -1
  11. package/dist/actions/create-company.cjs +3 -3
  12. package/dist/actions/create-company.cjs.map +1 -1
  13. package/dist/actions/create-company.d.cts +48 -3
  14. package/dist/actions/create-company.d.cts.map +1 -1
  15. package/dist/actions/create-company.d.mts +48 -3
  16. package/dist/actions/create-company.d.mts.map +1 -1
  17. package/dist/actions/create-company.mjs +3 -3
  18. package/dist/actions/create-company.mjs.map +1 -1
  19. package/dist/actions/delete-product.cjs +2 -2
  20. package/dist/actions/delete-product.cjs.map +1 -1
  21. package/dist/actions/delete-product.d.cts +10 -3
  22. package/dist/actions/delete-product.d.cts.map +1 -1
  23. package/dist/actions/delete-product.d.mts +10 -3
  24. package/dist/actions/delete-product.d.mts.map +1 -1
  25. package/dist/actions/delete-product.mjs +2 -2
  26. package/dist/actions/delete-product.mjs.map +1 -1
  27. package/dist/actions/get-active-users.cjs +8 -8
  28. package/dist/actions/get-active-users.cjs.map +1 -1
  29. package/dist/actions/get-active-users.d.cts +12 -3
  30. package/dist/actions/get-active-users.d.cts.map +1 -1
  31. package/dist/actions/get-active-users.d.mts +12 -3
  32. package/dist/actions/get-active-users.d.mts.map +1 -1
  33. package/dist/actions/get-active-users.mjs +8 -8
  34. package/dist/actions/get-active-users.mjs.map +1 -1
  35. package/dist/actions/get-company.cjs +2 -2
  36. package/dist/actions/get-company.cjs.map +1 -1
  37. package/dist/actions/get-company.d.cts +10 -3
  38. package/dist/actions/get-company.d.cts.map +1 -1
  39. package/dist/actions/get-company.d.mts +10 -3
  40. package/dist/actions/get-company.d.mts.map +1 -1
  41. package/dist/actions/get-company.mjs +2 -2
  42. package/dist/actions/get-company.mjs.map +1 -1
  43. package/dist/actions/list-modules.cjs +6 -6
  44. package/dist/actions/list-modules.cjs.map +1 -1
  45. package/dist/actions/list-modules.d.cts +10 -3
  46. package/dist/actions/list-modules.d.cts.map +1 -1
  47. package/dist/actions/list-modules.d.mts +10 -3
  48. package/dist/actions/list-modules.d.mts.map +1 -1
  49. package/dist/actions/list-modules.mjs +6 -6
  50. package/dist/actions/list-modules.mjs.map +1 -1
  51. package/dist/catalog.cjs +13 -1
  52. package/dist/catalog.cjs.map +1 -1
  53. package/dist/catalog.d.cts +12 -0
  54. package/dist/catalog.d.mts +12 -0
  55. package/dist/catalog.mjs +13 -1
  56. package/dist/catalog.mjs.map +1 -1
  57. package/package.json +2 -2
@@ -7,8 +7,8 @@ const salesmateDeleteProduct = action("SALESMATE_DELETE_PRODUCT", {
7
7
  input: z.object({ product_id: z.number().int().describe("Unique identifier of the product to delete") }).describe("Request model to delete a product by its ID."),
8
8
  output: z.object({
9
9
  Data: z.record(z.string(), z.unknown()).describe("Empty object on successful deletion"),
10
- Status: z.string().describe("Status of the API call, 'success' or 'failure'")
11
- }).describe("Response schema for delete product API.")
10
+ Status: z.string().describe("Status of the API call, 'success' or 'failure'").nullable()
11
+ }).passthrough().describe("Response schema for delete product API.")
12
12
  });
13
13
  //#endregion
14
14
  export { salesmateDeleteProduct };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-product.mjs","names":[],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateDeleteProductInput: z.ZodTypeAny = z.object({\n product_id: z.number().int().describe(\"Unique identifier of the product to delete\"),\n}).describe(\"Request model to delete a product by its ID.\");\nexport const SalesmateDeleteProductOutput: z.ZodTypeAny = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Empty object on successful deletion\"),\n Status: z.string().describe(\"Status of the API call, 'success' or 'failure'\"),\n}).describe(\"Response schema for delete product API.\");\n\nexport const salesmateDeleteProduct = action(\"SALESMATE_DELETE_PRODUCT\", {\n slug: \"salesmate-delete-product\",\n name: \"Delete Product\",\n description: \"Tool to delete a product by ProductId. Use when you need to remove a product from the catalog after confirming the correct ProductId.\",\n input: SalesmateDeleteProductInput,\n output: SalesmateDeleteProductOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuD,EAAE,OAAO,EAChE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EACpF,CAAC,CAAC,CAAC,SAAS,8CAUH;CACP,QAVwD,EAAE,OAAO;EACjE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC9E,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-product.mjs","names":[],"sources":["../../src/actions/delete-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateDeleteProductInput = z.object({\n product_id: z.number().int().describe(\"Unique identifier of the product to delete\"),\n}).describe(\"Request model to delete a product by its ID.\");\nexport const SalesmateDeleteProductOutput = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Empty object on successful deletion\"),\n Status: z.string().describe(\"Status of the API call, 'success' or 'failure'\").nullable(),\n}).passthrough().describe(\"Response schema for delete product API.\");\n\nexport const salesmateDeleteProduct = action(\"SALESMATE_DELETE_PRODUCT\", {\n slug: \"salesmate-delete-product\",\n name: \"Delete Product\",\n description: \"Tool to delete a product by ProductId. Use when you need to remove a product from the catalog after confirming the correct ProductId.\",\n input: SalesmateDeleteProductInput,\n output: SalesmateDeleteProductOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZyC,EAAE,OAAO,EAClD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,EACpF,CAAC,CAAC,CAAC,SAAS,8CAUH;CACP,QAV0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC;EACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
@@ -3,14 +3,14 @@ let zod = require("zod");
3
3
  //#region src/actions/get-active-users.ts
4
4
  const SalesmateGetActiveUsersInput = zod.z.object({}).describe("Request model for retrieving active users.\nNo parameters required; the status filter is always 'active'.");
5
5
  const SalesmateGetActiveUsers_UserSchema = zod.z.object({
6
- id: zod.z.number().int().describe("Unique identifier of the user"),
7
- role: zod.z.string().describe("Role of the user within the organization"),
8
- email: zod.z.string().describe("Email address of the user"),
9
- status: zod.z.string().describe("Current status of the user"),
10
- lastName: zod.z.string().describe("Last name of the user"),
11
- firstName: zod.z.string().describe("First name of the user")
12
- });
13
- const SalesmateGetActiveUsersOutput = zod.z.object({ users: zod.z.array(SalesmateGetActiveUsers_UserSchema).describe("List of active users returned by the Salesmate API") });
6
+ id: zod.z.number().int().describe("Unique identifier of the user").nullable(),
7
+ role: zod.z.string().describe("Role of the user within the organization").nullable(),
8
+ email: zod.z.string().describe("Email address of the user").nullable(),
9
+ status: zod.z.string().describe("Current status of the user").nullable(),
10
+ lastName: zod.z.string().describe("Last name of the user").nullable(),
11
+ firstName: zod.z.string().describe("First name of the user").nullable()
12
+ }).passthrough();
13
+ const SalesmateGetActiveUsersOutput = zod.z.object({ users: zod.z.array(SalesmateGetActiveUsers_UserSchema).describe("List of active users returned by the Salesmate API") }).passthrough();
14
14
  const salesmateGetActiveUsers = require_action.action("SALESMATE_GET_ACTIVE_USERS", {
15
15
  slug: "salesmate-get-active-users",
16
16
  name: "Get Active Users",
@@ -1 +1 @@
1
- {"version":3,"file":"get-active-users.cjs","names":["z","action"],"sources":["../../src/actions/get-active-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetActiveUsersInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving active users.\\nNo parameters required; the status filter is always 'active'.\");\nconst SalesmateGetActiveUsers_UserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\"),\n role: z.string().describe(\"Role of the user within the organization\"),\n email: z.string().describe(\"Email address of the user\"),\n status: z.string().describe(\"Current status of the user\"),\n lastName: z.string().describe(\"Last name of the user\"),\n firstName: z.string().describe(\"First name of the user\"),\n});\nexport const SalesmateGetActiveUsersOutput: z.ZodTypeAny = z.object({\n users: z.array(SalesmateGetActiveUsers_UserSchema).describe(\"List of active users returned by the Salesmate API\"),\n});\n\nexport const salesmateGetActiveUsers = action(\"SALESMATE_GET_ACTIVE_USERS\", {\n slug: \"salesmate-get-active-users\",\n name: \"Get Active Users\",\n description: \"Tool to retrieve all active users. Use when you need to fetch only users currently marked active for tasks, assignments, or user management audits.\",\n input: SalesmateGetActiveUsersInput,\n output: SalesmateGetActiveUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2GAA2G;AAC3L,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACrD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACzD,CAAC;AACD,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,OAAOA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,oDAAoD,EAClH,CAAC;AAED,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-active-users.cjs","names":["z","action"],"sources":["../../src/actions/get-active-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetActiveUsersInput = z.object({}).describe(\"Request model for retrieving active users.\\nNo parameters required; the status filter is always 'active'.\");\nconst SalesmateGetActiveUsers_UserSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n role: z.string().describe(\"Role of the user within the organization\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n status: z.string().describe(\"Current status of the user\").nullable(),\n lastName: z.string().describe(\"Last name of the user\").nullable(),\n firstName: z.string().describe(\"First name of the user\").nullable(),\n}).passthrough();\nexport const SalesmateGetActiveUsersOutput = z.object({\n users: z.array(SalesmateGetActiveUsers_UserSchema).describe(\"List of active users returned by the Salesmate API\"),\n}).passthrough();\n\nexport const salesmateGetActiveUsers = action(\"SALESMATE_GET_ACTIVE_USERS\", {\n slug: \"salesmate-get-active-users\",\n name: \"Get Active Users\",\n description: \"Tool to retrieve all active users. Use when you need to fetch only users currently marked active for tasks, assignments, or user management audits.\",\n input: SalesmateGetActiveUsersInput,\n output: SalesmateGetActiveUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2GAA2G;AAC7K,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,OAAOA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,oDAAoD,EAClH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-active-users.d.ts
4
- declare const SalesmateGetActiveUsersInput: z.ZodTypeAny;
5
- declare const SalesmateGetActiveUsersOutput: z.ZodTypeAny;
6
- declare const salesmateGetActiveUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateGetActiveUsersInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const SalesmateGetActiveUsersOutput: z.ZodObject<{
6
+ users: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodNumber>;
8
+ role: z.ZodNullable<z.ZodString>;
9
+ email: z.ZodNullable<z.ZodString>;
10
+ status: z.ZodNullable<z.ZodString>;
11
+ lastName: z.ZodNullable<z.ZodString>;
12
+ firstName: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$loose>>;
14
+ }, z.core.$loose>;
15
+ declare const salesmateGetActiveUsers: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { salesmateGetActiveUsers };
9
18
  //# sourceMappingURL=get-active-users.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-active-users.d.cts","names":[],"sources":["../../src/actions/get-active-users.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAA+I;AAAA,cAS/K,6BAAA,EAA+B,CAAA,CAAE,UAE5C;AAAA,cAEW,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-active-users.d.cts","names":[],"sources":["../../src/actions/get-active-users.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-active-users.d.ts
4
- declare const SalesmateGetActiveUsersInput: z.ZodTypeAny;
5
- declare const SalesmateGetActiveUsersOutput: z.ZodTypeAny;
6
- declare const salesmateGetActiveUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateGetActiveUsersInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const SalesmateGetActiveUsersOutput: z.ZodObject<{
6
+ users: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodNumber>;
8
+ role: z.ZodNullable<z.ZodString>;
9
+ email: z.ZodNullable<z.ZodString>;
10
+ status: z.ZodNullable<z.ZodString>;
11
+ lastName: z.ZodNullable<z.ZodString>;
12
+ firstName: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$loose>>;
14
+ }, z.core.$loose>;
15
+ declare const salesmateGetActiveUsers: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { salesmateGetActiveUsers };
9
18
  //# sourceMappingURL=get-active-users.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-active-users.d.mts","names":[],"sources":["../../src/actions/get-active-users.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAA+I;AAAA,cAS/K,6BAAA,EAA+B,CAAA,CAAE,UAE5C;AAAA,cAEW,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-active-users.d.mts","names":[],"sources":["../../src/actions/get-active-users.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -3,19 +3,19 @@ import { z } from "zod";
3
3
  //#region src/actions/get-active-users.ts
4
4
  const SalesmateGetActiveUsersInput = z.object({}).describe("Request model for retrieving active users.\nNo parameters required; the status filter is always 'active'.");
5
5
  const SalesmateGetActiveUsers_UserSchema = z.object({
6
- id: z.number().int().describe("Unique identifier of the user"),
7
- role: z.string().describe("Role of the user within the organization"),
8
- email: z.string().describe("Email address of the user"),
9
- status: z.string().describe("Current status of the user"),
10
- lastName: z.string().describe("Last name of the user"),
11
- firstName: z.string().describe("First name of the user")
12
- });
6
+ id: z.number().int().describe("Unique identifier of the user").nullable(),
7
+ role: z.string().describe("Role of the user within the organization").nullable(),
8
+ email: z.string().describe("Email address of the user").nullable(),
9
+ status: z.string().describe("Current status of the user").nullable(),
10
+ lastName: z.string().describe("Last name of the user").nullable(),
11
+ firstName: z.string().describe("First name of the user").nullable()
12
+ }).passthrough();
13
13
  const salesmateGetActiveUsers = action("SALESMATE_GET_ACTIVE_USERS", {
14
14
  slug: "salesmate-get-active-users",
15
15
  name: "Get Active Users",
16
16
  description: "Tool to retrieve all active users. Use when you need to fetch only users currently marked active for tasks, assignments, or user management audits.",
17
17
  input: SalesmateGetActiveUsersInput,
18
- output: z.object({ users: z.array(SalesmateGetActiveUsers_UserSchema).describe("List of active users returned by the Salesmate API") })
18
+ output: z.object({ users: z.array(SalesmateGetActiveUsers_UserSchema).describe("List of active users returned by the Salesmate API") }).passthrough()
19
19
  });
20
20
  //#endregion
21
21
  export { salesmateGetActiveUsers };
@@ -1 +1 @@
1
- {"version":3,"file":"get-active-users.mjs","names":[],"sources":["../../src/actions/get-active-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetActiveUsersInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving active users.\\nNo parameters required; the status filter is always 'active'.\");\nconst SalesmateGetActiveUsers_UserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\"),\n role: z.string().describe(\"Role of the user within the organization\"),\n email: z.string().describe(\"Email address of the user\"),\n status: z.string().describe(\"Current status of the user\"),\n lastName: z.string().describe(\"Last name of the user\"),\n firstName: z.string().describe(\"First name of the user\"),\n});\nexport const SalesmateGetActiveUsersOutput: z.ZodTypeAny = z.object({\n users: z.array(SalesmateGetActiveUsers_UserSchema).describe(\"List of active users returned by the Salesmate API\"),\n});\n\nexport const salesmateGetActiveUsers = action(\"SALESMATE_GET_ACTIVE_USERS\", {\n slug: \"salesmate-get-active-users\",\n name: \"Get Active Users\",\n description: \"Tool to retrieve all active users. Use when you need to fetch only users currently marked active for tasks, assignments, or user management audits.\",\n input: SalesmateGetActiveUsersInput,\n output: SalesmateGetActiveUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2GAA2G;AAC3L,MAAM,qCAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACrD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACzD,CAAC;AAKD,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyD,EAAE,OAAO,EAClE,OAAO,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,oDAAoD,EAClH,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-active-users.mjs","names":[],"sources":["../../src/actions/get-active-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetActiveUsersInput = z.object({}).describe(\"Request model for retrieving active users.\\nNo parameters required; the status filter is always 'active'.\");\nconst SalesmateGetActiveUsers_UserSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n role: z.string().describe(\"Role of the user within the organization\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n status: z.string().describe(\"Current status of the user\").nullable(),\n lastName: z.string().describe(\"Last name of the user\").nullable(),\n firstName: z.string().describe(\"First name of the user\").nullable(),\n}).passthrough();\nexport const SalesmateGetActiveUsersOutput = z.object({\n users: z.array(SalesmateGetActiveUsers_UserSchema).describe(\"List of active users returned by the Salesmate API\"),\n}).passthrough();\n\nexport const salesmateGetActiveUsers = action(\"SALESMATE_GET_ACTIVE_USERS\", {\n slug: \"salesmate-get-active-users\",\n name: \"Get Active Users\",\n description: \"Tool to retrieve all active users. Use when you need to fetch only users currently marked active for tasks, assignments, or user management audits.\",\n input: SalesmateGetActiveUsersInput,\n output: SalesmateGetActiveUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2GAA2G;AAC7K,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,OAAO,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,oDAAoD,EAClH,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -4,8 +4,8 @@ let zod = require("zod");
4
4
  const SalesmateGetCompanyInput = zod.z.object({ company_id: zod.z.number().int().describe("Unique identifier of the company to retrieve") }).describe("Parameters to retrieve a specific company by its ID.");
5
5
  const SalesmateGetCompanyOutput = zod.z.object({
6
6
  Data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Detailed information of the requested company"),
7
- Status: zod.z.string().describe("API response status, e.g., 'success'")
8
- }).describe("Response schema for retrieving a company. Contains status and data with company details.");
7
+ Status: zod.z.string().describe("API response status, e.g., 'success'").nullable()
8
+ }).passthrough().describe("Response schema for retrieving a company. Contains status and data with company details.");
9
9
  const salesmateGetCompany = require_action.action("SALESMATE_GET_COMPANY", {
10
10
  slug: "salesmate-get-company",
11
11
  name: "Get Company",
@@ -1 +1 @@
1
- {"version":3,"file":"get-company.cjs","names":["z","action"],"sources":["../../src/actions/get-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetCompanyInput: z.ZodTypeAny = z.object({\n company_id: z.number().int().describe(\"Unique identifier of the company to retrieve\"),\n}).describe(\"Parameters to retrieve a specific company by its ID.\");\nexport const SalesmateGetCompanyOutput: z.ZodTypeAny = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Detailed information of the requested company\"),\n Status: z.string().describe(\"API response status, e.g., 'success'\"),\n}).describe(\"Response schema for retrieving a company. Contains status and data with company details.\");\n\nexport const salesmateGetCompany = action(\"SALESMATE_GET_COMPANY\", {\n slug: \"salesmate-get-company\",\n name: \"Get Company\",\n description: \"Tool to retrieve details of a specific company by ID. Use when you have a company ID and need its full record. Example: \\\"Get company 42\\\".\",\n input: SalesmateGetCompanyInput,\n output: SalesmateGetCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACtF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AACpE,CAAC,CAAC,CAAC,SAAS,0FAA0F;AAEtG,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-company.cjs","names":["z","action"],"sources":["../../src/actions/get-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetCompanyInput = z.object({\n company_id: z.number().int().describe(\"Unique identifier of the company to retrieve\"),\n}).describe(\"Parameters to retrieve a specific company by its ID.\");\nexport const SalesmateGetCompanyOutput = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Detailed information of the requested company\"),\n Status: z.string().describe(\"API response status, e.g., 'success'\").nullable(),\n}).passthrough().describe(\"Response schema for retrieving a company. Contains status and data with company details.\");\n\nexport const salesmateGetCompany = action(\"SALESMATE_GET_COMPANY\", {\n slug: \"salesmate-get-company\",\n name: \"Get Company\",\n description: \"Tool to retrieve details of a specific company by ID. Use when you have a company ID and need its full record. Example: \\\"Get company 42\\\".\",\n input: SalesmateGetCompanyInput,\n output: SalesmateGetCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACtF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0FAA0F;AAEpH,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-company.d.ts
4
- declare const SalesmateGetCompanyInput: z.ZodTypeAny;
5
- declare const SalesmateGetCompanyOutput: z.ZodTypeAny;
6
- declare const salesmateGetCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateGetCompanyInput: z.ZodObject<{
5
+ company_id: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ declare const SalesmateGetCompanyOutput: z.ZodObject<{
8
+ Data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
+ Status: z.ZodNullable<z.ZodString>;
10
+ }, z.core.$loose>;
11
+ declare const salesmateGetCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ company_id: number;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { salesmateGetCompany };
9
16
  //# sourceMappingURL=get-company.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-company.d.cts","names":[],"sources":["../../src/actions/get-company.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAE0B;AAAA,cACtD,yBAAA,EAA2B,CAAA,CAAE,UAG6D;AAAA,cAE1F,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-company.d.cts","names":[],"sources":["../../src/actions/get-company.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-company.d.ts
4
- declare const SalesmateGetCompanyInput: z.ZodTypeAny;
5
- declare const SalesmateGetCompanyOutput: z.ZodTypeAny;
6
- declare const salesmateGetCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateGetCompanyInput: z.ZodObject<{
5
+ company_id: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ declare const SalesmateGetCompanyOutput: z.ZodObject<{
8
+ Data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
+ Status: z.ZodNullable<z.ZodString>;
10
+ }, z.core.$loose>;
11
+ declare const salesmateGetCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ company_id: number;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { salesmateGetCompany };
9
16
  //# sourceMappingURL=get-company.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-company.d.mts","names":[],"sources":["../../src/actions/get-company.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAE0B;AAAA,cACtD,yBAAA,EAA2B,CAAA,CAAE,UAG6D;AAAA,cAE1F,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-company.d.mts","names":[],"sources":["../../src/actions/get-company.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -7,8 +7,8 @@ const salesmateGetCompany = action("SALESMATE_GET_COMPANY", {
7
7
  input: z.object({ company_id: z.number().int().describe("Unique identifier of the company to retrieve") }).describe("Parameters to retrieve a specific company by its ID."),
8
8
  output: z.object({
9
9
  Data: z.record(z.string(), z.unknown()).describe("Detailed information of the requested company"),
10
- Status: z.string().describe("API response status, e.g., 'success'")
11
- }).describe("Response schema for retrieving a company. Contains status and data with company details.")
10
+ Status: z.string().describe("API response status, e.g., 'success'").nullable()
11
+ }).passthrough().describe("Response schema for retrieving a company. Contains status and data with company details.")
12
12
  });
13
13
  //#endregion
14
14
  export { salesmateGetCompany };
@@ -1 +1 @@
1
- {"version":3,"file":"get-company.mjs","names":[],"sources":["../../src/actions/get-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetCompanyInput: z.ZodTypeAny = z.object({\n company_id: z.number().int().describe(\"Unique identifier of the company to retrieve\"),\n}).describe(\"Parameters to retrieve a specific company by its ID.\");\nexport const SalesmateGetCompanyOutput: z.ZodTypeAny = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Detailed information of the requested company\"),\n Status: z.string().describe(\"API response status, e.g., 'success'\"),\n}).describe(\"Response schema for retrieving a company. Contains status and data with company details.\");\n\nexport const salesmateGetCompany = action(\"SALESMATE_GET_COMPANY\", {\n slug: \"salesmate-get-company\",\n name: \"Get Company\",\n description: \"Tool to retrieve details of a specific company by ID. Use when you have a company ID and need its full record. Example: \\\"Get company 42\\\".\",\n input: SalesmateGetCompanyInput,\n output: SalesmateGetCompanyOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZoD,EAAE,OAAO,EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACtF,CAAC,CAAC,CAAC,SAAS,sDAUH;CACP,QAVqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;EAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,CAAC,CAAC,CAAC,SAAS,0FAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-company.mjs","names":[],"sources":["../../src/actions/get-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateGetCompanyInput = z.object({\n company_id: z.number().int().describe(\"Unique identifier of the company to retrieve\"),\n}).describe(\"Parameters to retrieve a specific company by its ID.\");\nexport const SalesmateGetCompanyOutput = z.object({\n Data: z.record(z.string(), z.unknown()).describe(\"Detailed information of the requested company\"),\n Status: z.string().describe(\"API response status, e.g., 'success'\").nullable(),\n}).passthrough().describe(\"Response schema for retrieving a company. Contains status and data with company details.\");\n\nexport const salesmateGetCompany = action(\"SALESMATE_GET_COMPANY\", {\n slug: \"salesmate-get-company\",\n name: \"Get Company\",\n description: \"Tool to retrieve details of a specific company by ID. Use when you have a company ID and need its full record. Example: \\\"Get company 42\\\".\",\n input: SalesmateGetCompanyInput,\n output: SalesmateGetCompanyOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsC,EAAE,OAAO,EAC/C,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EACtF,CAAC,CAAC,CAAC,SAAS,sDAUH;CACP,QAVuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;EAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0FAOhB;AACV,CAAC"}
@@ -3,12 +3,12 @@ let zod = require("zod");
3
3
  //#region src/actions/list-modules.ts
4
4
  const SalesmateListModulesInput = zod.z.object({}).describe("Request model for listing modules. No parameters required; lists all modules available.");
5
5
  const SalesmateListModules_ModuleMetadataSchema = zod.z.object({
6
- id: zod.z.number().int().describe("Unique identifier of the module"),
7
- name: zod.z.string().describe("Name of the module"),
8
- api_name: zod.z.string().describe("API endpoint name for the module"),
9
- description: zod.z.string().describe("Description of the module")
10
- });
11
- const SalesmateListModulesOutput = zod.z.object({ modules: zod.z.array(SalesmateListModules_ModuleMetadataSchema).describe("List of module metadata objects") });
6
+ id: zod.z.number().int().describe("Unique identifier of the module").nullable(),
7
+ name: zod.z.string().describe("Name of the module").nullable(),
8
+ api_name: zod.z.string().describe("API endpoint name for the module").nullable(),
9
+ description: zod.z.string().describe("Description of the module").nullable()
10
+ }).passthrough();
11
+ const SalesmateListModulesOutput = zod.z.object({ modules: zod.z.array(SalesmateListModules_ModuleMetadataSchema).describe("List of module metadata objects") }).passthrough();
12
12
  const salesmateListModules = require_action.action("SALESMATE_LIST_MODULES", {
13
13
  slug: "salesmate-list-modules",
14
14
  name: "List Modules",
@@ -1 +1 @@
1
- {"version":3,"file":"list-modules.cjs","names":["z","action"],"sources":["../../src/actions/list-modules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateListModulesInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing modules. No parameters required; lists all modules available.\");\nconst SalesmateListModules_ModuleMetadataSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the module\"),\n name: z.string().describe(\"Name of the module\"),\n api_name: z.string().describe(\"API endpoint name for the module\"),\n description: z.string().describe(\"Description of the module\"),\n});\nexport const SalesmateListModulesOutput: z.ZodTypeAny = z.object({\n modules: z.array(SalesmateListModules_ModuleMetadataSchema).describe(\"List of module metadata objects\"),\n});\n\nexport const salesmateListModules = action(\"SALESMATE_LIST_MODULES\", {\n slug: \"salesmate-list-modules\",\n name: \"List Modules\",\n description: \"Tool to list all available Salesmate modules. Returns the core CRM modules including Contacts, Companies, Deals, Activities, Products, and Tickets. Use this to discover which modules are available for API operations.\",\n input: SalesmateListModulesInput,\n output: SalesmateListModulesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACtK,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC9C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAChE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AAC9D,CAAC;AACD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,iCAAiC,EACxG,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-modules.cjs","names":["z","action"],"sources":["../../src/actions/list-modules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateListModulesInput = z.object({}).describe(\"Request model for listing modules. No parameters required; lists all modules available.\");\nconst SalesmateListModules_ModuleMetadataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the module\").nullable(),\n name: z.string().describe(\"Name of the module\").nullable(),\n api_name: z.string().describe(\"API endpoint name for the module\").nullable(),\n description: z.string().describe(\"Description of the module\").nullable(),\n}).passthrough();\nexport const SalesmateListModulesOutput = z.object({\n modules: z.array(SalesmateListModules_ModuleMetadataSchema).describe(\"List of module metadata objects\"),\n}).passthrough();\n\nexport const salesmateListModules = action(\"SALESMATE_LIST_MODULES\", {\n slug: \"salesmate-list-modules\",\n name: \"List Modules\",\n description: \"Tool to list all available Salesmate modules. Returns the core CRM modules including Contacts, Companies, Deals, Activities, Products, and Tickets. Use this to discover which modules are available for API operations.\",\n input: SalesmateListModulesInput,\n output: SalesmateListModulesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACxJ,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,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,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,iCAAiC,EACxG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-modules.d.ts
4
- declare const SalesmateListModulesInput: z.ZodTypeAny;
5
- declare const SalesmateListModulesOutput: z.ZodTypeAny;
6
- declare const salesmateListModules: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateListModulesInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const SalesmateListModulesOutput: z.ZodObject<{
6
+ modules: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodNumber>;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ api_name: z.ZodNullable<z.ZodString>;
10
+ description: z.ZodNullable<z.ZodString>;
11
+ }, z.core.$loose>>;
12
+ }, z.core.$loose>;
13
+ declare const salesmateListModules: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { salesmateListModules };
9
16
  //# sourceMappingURL=list-modules.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-modules.d.cts","names":[],"sources":["../../src/actions/list-modules.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAA6H;AAAA,cAO1J,0BAAA,EAA4B,CAAA,CAAE,UAEzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-modules.d.cts","names":[],"sources":["../../src/actions/list-modules.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-modules.d.ts
4
- declare const SalesmateListModulesInput: z.ZodTypeAny;
5
- declare const SalesmateListModulesOutput: z.ZodTypeAny;
6
- declare const salesmateListModules: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SalesmateListModulesInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const SalesmateListModulesOutput: z.ZodObject<{
6
+ modules: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodNumber>;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ api_name: z.ZodNullable<z.ZodString>;
10
+ description: z.ZodNullable<z.ZodString>;
11
+ }, z.core.$loose>>;
12
+ }, z.core.$loose>;
13
+ declare const salesmateListModules: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { salesmateListModules };
9
16
  //# sourceMappingURL=list-modules.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-modules.d.mts","names":[],"sources":["../../src/actions/list-modules.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAA6H;AAAA,cAO1J,0BAAA,EAA4B,CAAA,CAAE,UAEzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-modules.d.mts","names":[],"sources":["../../src/actions/list-modules.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAOzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -3,17 +3,17 @@ import { z } from "zod";
3
3
  //#region src/actions/list-modules.ts
4
4
  const SalesmateListModulesInput = z.object({}).describe("Request model for listing modules. No parameters required; lists all modules available.");
5
5
  const SalesmateListModules_ModuleMetadataSchema = z.object({
6
- id: z.number().int().describe("Unique identifier of the module"),
7
- name: z.string().describe("Name of the module"),
8
- api_name: z.string().describe("API endpoint name for the module"),
9
- description: z.string().describe("Description of the module")
10
- });
6
+ id: z.number().int().describe("Unique identifier of the module").nullable(),
7
+ name: z.string().describe("Name of the module").nullable(),
8
+ api_name: z.string().describe("API endpoint name for the module").nullable(),
9
+ description: z.string().describe("Description of the module").nullable()
10
+ }).passthrough();
11
11
  const salesmateListModules = action("SALESMATE_LIST_MODULES", {
12
12
  slug: "salesmate-list-modules",
13
13
  name: "List Modules",
14
14
  description: "Tool to list all available Salesmate modules. Returns the core CRM modules including Contacts, Companies, Deals, Activities, Products, and Tickets. Use this to discover which modules are available for API operations.",
15
15
  input: SalesmateListModulesInput,
16
- output: z.object({ modules: z.array(SalesmateListModules_ModuleMetadataSchema).describe("List of module metadata objects") })
16
+ output: z.object({ modules: z.array(SalesmateListModules_ModuleMetadataSchema).describe("List of module metadata objects") }).passthrough()
17
17
  });
18
18
  //#endregion
19
19
  export { salesmateListModules };
@@ -1 +1 @@
1
- {"version":3,"file":"list-modules.mjs","names":[],"sources":["../../src/actions/list-modules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateListModulesInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing modules. No parameters required; lists all modules available.\");\nconst SalesmateListModules_ModuleMetadataSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the module\"),\n name: z.string().describe(\"Name of the module\"),\n api_name: z.string().describe(\"API endpoint name for the module\"),\n description: z.string().describe(\"Description of the module\"),\n});\nexport const SalesmateListModulesOutput: z.ZodTypeAny = z.object({\n modules: z.array(SalesmateListModules_ModuleMetadataSchema).describe(\"List of module metadata objects\"),\n});\n\nexport const salesmateListModules = action(\"SALESMATE_LIST_MODULES\", {\n slug: \"salesmate-list-modules\",\n name: \"List Modules\",\n description: \"Tool to list all available Salesmate modules. Returns the core CRM modules including Contacts, Companies, Deals, Activities, Products, and Tickets. Use this to discover which modules are available for API operations.\",\n input: SalesmateListModulesInput,\n output: SalesmateListModulesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACtK,MAAM,4CAA0D,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC9C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAChE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AAC9D,CAAC;AAKD,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,iCAAiC,EACxG,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"list-modules.mjs","names":[],"sources":["../../src/actions/list-modules.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SalesmateListModulesInput = z.object({}).describe(\"Request model for listing modules. No parameters required; lists all modules available.\");\nconst SalesmateListModules_ModuleMetadataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the module\").nullable(),\n name: z.string().describe(\"Name of the module\").nullable(),\n api_name: z.string().describe(\"API endpoint name for the module\").nullable(),\n description: z.string().describe(\"Description of the module\").nullable(),\n}).passthrough();\nexport const SalesmateListModulesOutput = z.object({\n modules: z.array(SalesmateListModules_ModuleMetadataSchema).describe(\"List of module metadata objects\"),\n}).passthrough();\n\nexport const salesmateListModules = action(\"SALESMATE_LIST_MODULES\", {\n slug: \"salesmate-list-modules\",\n name: \"List Modules\",\n description: \"Tool to list all available Salesmate modules. Returns the core CRM modules including Contacts, Companies, Deals, Activities, Products, and Tickets. Use this to discover which modules are available for API operations.\",\n input: SalesmateListModulesInput,\n output: SalesmateListModulesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACxJ,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,iCAAiC,EACxG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
package/dist/catalog.cjs CHANGED
@@ -7,7 +7,19 @@ const salesmateCatalog = {
7
7
  "category": "CRM",
8
8
  "logo": "https://logos.composio.dev/api/salesmate",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": {
12
+ "subdomain": {
13
+ "label": "Salesmate Subdomain",
14
+ "description": "The subdomain of your Salesmate account (e.g., 'demo' from 'demo.salesmate.io')."
15
+ },
16
+ "access_token": {
17
+ "label": "Session Token",
18
+ "secret": true,
19
+ "description": "Your Salesmate Session Token. Generate it from your Salesmate account: Profile Icon → Setup → API & Integrations → Session Tokens → Create."
20
+ }
21
+ },
22
+ "credentialScheme": "API_KEY"
11
23
  };
12
24
  //#endregion
13
25
  exports.salesmateCatalog = salesmateCatalog;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const salesmateCatalog = {\n \"slug\": \"salesmate\",\n \"name\": \"Salesmate\",\n \"description\": \"Salesmate is an AI-powered CRM platform designed to help businesses engage leads, close deals faster, nurture relationships, and provide seamless support through a unified, intuitive interface.\",\n \"category\": \"CRM\",\n \"logo\": \"https://logos.composio.dev/api/salesmate\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const salesmateCatalog = {\n \"slug\": \"salesmate\",\n \"name\": \"Salesmate\",\n \"description\": \"Salesmate is an AI-powered CRM platform designed to help businesses engage leads, close deals faster, nurture relationships, and provide seamless support through a unified, intuitive interface.\",\n \"category\": \"CRM\",\n \"logo\": \"https://logos.composio.dev/api/salesmate\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"subdomain\": {\n \"label\": \"Salesmate Subdomain\",\n \"description\": \"The subdomain of your Salesmate account (e.g., 'demo' from 'demo.salesmate.io').\"\n },\n \"access_token\": {\n \"label\": \"Session Token\",\n \"secret\": true,\n \"description\": \"Your Salesmate Session Token. Generate it from your Salesmate account: Profile Icon → Setup → API & Integrations → Session Tokens → Create.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,aAAa;GACX,SAAS;GACT,eAAe;EACjB;EACA,gBAAgB;GACd,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
@@ -8,6 +8,18 @@ declare const salesmateCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/salesmate";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly subdomain: {
13
+ readonly label: "Salesmate Subdomain";
14
+ readonly description: "The subdomain of your Salesmate account (e.g., 'demo' from 'demo.salesmate.io').";
15
+ };
16
+ readonly access_token: {
17
+ readonly label: "Session Token";
18
+ readonly secret: true;
19
+ readonly description: "Your Salesmate Session Token. Generate it from your Salesmate account: Profile Icon → Setup → API & Integrations → Session Tokens → Create.";
20
+ };
21
+ };
22
+ readonly credentialScheme: "API_KEY";
11
23
  };
12
24
  //#endregion
13
25
  export { salesmateCatalog };
@@ -8,6 +8,18 @@ declare const salesmateCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/salesmate";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly subdomain: {
13
+ readonly label: "Salesmate Subdomain";
14
+ readonly description: "The subdomain of your Salesmate account (e.g., 'demo' from 'demo.salesmate.io').";
15
+ };
16
+ readonly access_token: {
17
+ readonly label: "Session Token";
18
+ readonly secret: true;
19
+ readonly description: "Your Salesmate Session Token. Generate it from your Salesmate account: Profile Icon → Setup → API & Integrations → Session Tokens → Create.";
20
+ };
21
+ };
22
+ readonly credentialScheme: "API_KEY";
11
23
  };
12
24
  //#endregion
13
25
  export { salesmateCatalog };
package/dist/catalog.mjs CHANGED
@@ -7,7 +7,19 @@ const salesmateCatalog = {
7
7
  "category": "CRM",
8
8
  "logo": "https://logos.composio.dev/api/salesmate",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": {
12
+ "subdomain": {
13
+ "label": "Salesmate Subdomain",
14
+ "description": "The subdomain of your Salesmate account (e.g., 'demo' from 'demo.salesmate.io')."
15
+ },
16
+ "access_token": {
17
+ "label": "Session Token",
18
+ "secret": true,
19
+ "description": "Your Salesmate Session Token. Generate it from your Salesmate account: Profile Icon → Setup → API & Integrations → Session Tokens → Create."
20
+ }
21
+ },
22
+ "credentialScheme": "API_KEY"
11
23
  };
12
24
  //#endregion
13
25
  export { salesmateCatalog };
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const salesmateCatalog = {\n \"slug\": \"salesmate\",\n \"name\": \"Salesmate\",\n \"description\": \"Salesmate is an AI-powered CRM platform designed to help businesses engage leads, close deals faster, nurture relationships, and provide seamless support through a unified, intuitive interface.\",\n \"category\": \"CRM\",\n \"logo\": \"https://logos.composio.dev/api/salesmate\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const salesmateCatalog = {\n \"slug\": \"salesmate\",\n \"name\": \"Salesmate\",\n \"description\": \"Salesmate is an AI-powered CRM platform designed to help businesses engage leads, close deals faster, nurture relationships, and provide seamless support through a unified, intuitive interface.\",\n \"category\": \"CRM\",\n \"logo\": \"https://logos.composio.dev/api/salesmate\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"subdomain\": {\n \"label\": \"Salesmate Subdomain\",\n \"description\": \"The subdomain of your Salesmate account (e.g., 'demo' from 'demo.salesmate.io').\"\n },\n \"access_token\": {\n \"label\": \"Session Token\",\n \"secret\": true,\n \"description\": \"Your Salesmate Session Token. Generate it from your Salesmate account: Profile Icon → Setup → API & Integrations → Session Tokens → Create.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,aAAa;GACX,SAAS;GACT,eAAe;EACjB;EACA,gBAAgB;GACd,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/salesmate",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": "^0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.4",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {