@keystrokehq/plain 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 (185) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-customer-to-group.cjs +17 -17
  4. package/dist/actions/add-customer-to-group.cjs.map +1 -1
  5. package/dist/actions/add-customer-to-group.d.cts +48 -3
  6. package/dist/actions/add-customer-to-group.d.cts.map +1 -1
  7. package/dist/actions/add-customer-to-group.d.mts +48 -3
  8. package/dist/actions/add-customer-to-group.d.mts.map +1 -1
  9. package/dist/actions/add-customer-to-group.mjs +17 -17
  10. package/dist/actions/add-customer-to-group.mjs.map +1 -1
  11. package/dist/actions/create-customer-group.cjs +15 -15
  12. package/dist/actions/create-customer-group.cjs.map +1 -1
  13. package/dist/actions/create-customer-group.d.cts +37 -3
  14. package/dist/actions/create-customer-group.d.cts.map +1 -1
  15. package/dist/actions/create-customer-group.d.mts +37 -3
  16. package/dist/actions/create-customer-group.d.mts.map +1 -1
  17. package/dist/actions/create-customer-group.mjs +15 -15
  18. package/dist/actions/create-customer-group.mjs.map +1 -1
  19. package/dist/actions/create-thread.cjs +19 -19
  20. package/dist/actions/create-thread.cjs.map +1 -1
  21. package/dist/actions/create-thread.d.cts +64 -3
  22. package/dist/actions/create-thread.d.cts.map +1 -1
  23. package/dist/actions/create-thread.d.mts +64 -3
  24. package/dist/actions/create-thread.d.mts.map +1 -1
  25. package/dist/actions/create-thread.mjs +19 -19
  26. package/dist/actions/create-thread.mjs.map +1 -1
  27. package/dist/actions/delete-customer.cjs +9 -9
  28. package/dist/actions/delete-customer.cjs.map +1 -1
  29. package/dist/actions/delete-customer.d.cts +18 -3
  30. package/dist/actions/delete-customer.d.cts.map +1 -1
  31. package/dist/actions/delete-customer.d.mts +18 -3
  32. package/dist/actions/delete-customer.d.mts.map +1 -1
  33. package/dist/actions/delete-customer.mjs +9 -9
  34. package/dist/actions/delete-customer.mjs.map +1 -1
  35. package/dist/actions/delete-user.cjs +9 -9
  36. package/dist/actions/delete-user.cjs.map +1 -1
  37. package/dist/actions/delete-user.d.cts +18 -3
  38. package/dist/actions/delete-user.d.cts.map +1 -1
  39. package/dist/actions/delete-user.d.mts +18 -3
  40. package/dist/actions/delete-user.d.mts.map +1 -1
  41. package/dist/actions/delete-user.mjs +9 -9
  42. package/dist/actions/delete-user.mjs.map +1 -1
  43. package/dist/actions/fetch-company.cjs +11 -11
  44. package/dist/actions/fetch-company.cjs.map +1 -1
  45. package/dist/actions/fetch-company.d.cts +26 -3
  46. package/dist/actions/fetch-company.d.cts.map +1 -1
  47. package/dist/actions/fetch-company.d.mts +26 -3
  48. package/dist/actions/fetch-company.d.mts.map +1 -1
  49. package/dist/actions/fetch-company.mjs +11 -11
  50. package/dist/actions/fetch-company.mjs.map +1 -1
  51. package/dist/actions/fetch-issues.cjs +9 -9
  52. package/dist/actions/fetch-issues.cjs.map +1 -1
  53. package/dist/actions/fetch-issues.d.cts +24 -3
  54. package/dist/actions/fetch-issues.d.cts.map +1 -1
  55. package/dist/actions/fetch-issues.d.mts +24 -3
  56. package/dist/actions/fetch-issues.d.mts.map +1 -1
  57. package/dist/actions/fetch-issues.mjs +9 -9
  58. package/dist/actions/fetch-issues.mjs.map +1 -1
  59. package/dist/actions/fetch-tier.cjs +11 -11
  60. package/dist/actions/fetch-tier.cjs.map +1 -1
  61. package/dist/actions/fetch-tier.d.cts +25 -3
  62. package/dist/actions/fetch-tier.d.cts.map +1 -1
  63. package/dist/actions/fetch-tier.d.mts +25 -3
  64. package/dist/actions/fetch-tier.d.mts.map +1 -1
  65. package/dist/actions/fetch-tier.mjs +11 -11
  66. package/dist/actions/fetch-tier.mjs.map +1 -1
  67. package/dist/actions/get-customer-by-email.cjs +9 -9
  68. package/dist/actions/get-customer-by-email.cjs.map +1 -1
  69. package/dist/actions/get-customer-by-email.d.cts +26 -3
  70. package/dist/actions/get-customer-by-email.d.cts.map +1 -1
  71. package/dist/actions/get-customer-by-email.d.mts +26 -3
  72. package/dist/actions/get-customer-by-email.d.mts.map +1 -1
  73. package/dist/actions/get-customer-by-email.mjs +9 -9
  74. package/dist/actions/get-customer-by-email.mjs.map +1 -1
  75. package/dist/actions/get-customer-by-id.cjs +6 -6
  76. package/dist/actions/get-customer-by-id.cjs.map +1 -1
  77. package/dist/actions/get-customer-by-id.d.cts +13 -3
  78. package/dist/actions/get-customer-by-id.d.cts.map +1 -1
  79. package/dist/actions/get-customer-by-id.d.mts +13 -3
  80. package/dist/actions/get-customer-by-id.d.mts.map +1 -1
  81. package/dist/actions/get-customer-by-id.mjs +6 -6
  82. package/dist/actions/get-customer-by-id.mjs.map +1 -1
  83. package/dist/actions/get-customers.cjs +14 -14
  84. package/dist/actions/get-customers.cjs.map +1 -1
  85. package/dist/actions/get-customers.d.cts +59 -3
  86. package/dist/actions/get-customers.d.cts.map +1 -1
  87. package/dist/actions/get-customers.d.mts +59 -3
  88. package/dist/actions/get-customers.d.mts.map +1 -1
  89. package/dist/actions/get-customers.mjs +14 -14
  90. package/dist/actions/get-customers.mjs.map +1 -1
  91. package/dist/actions/get-thread-by-id.cjs +22 -22
  92. package/dist/actions/get-thread-by-id.cjs.map +1 -1
  93. package/dist/actions/get-thread-by-id.d.cts +63 -3
  94. package/dist/actions/get-thread-by-id.d.cts.map +1 -1
  95. package/dist/actions/get-thread-by-id.d.mts +63 -3
  96. package/dist/actions/get-thread-by-id.d.mts.map +1 -1
  97. package/dist/actions/get-thread-by-id.mjs +22 -22
  98. package/dist/actions/get-thread-by-id.mjs.map +1 -1
  99. package/dist/actions/get-user-by-id.cjs +9 -9
  100. package/dist/actions/get-user-by-id.cjs.map +1 -1
  101. package/dist/actions/get-user-by-id.d.cts +21 -3
  102. package/dist/actions/get-user-by-id.d.cts.map +1 -1
  103. package/dist/actions/get-user-by-id.d.mts +21 -3
  104. package/dist/actions/get-user-by-id.d.mts.map +1 -1
  105. package/dist/actions/get-user-by-id.mjs +9 -9
  106. package/dist/actions/get-user-by-id.mjs.map +1 -1
  107. package/dist/actions/list-customer-groups.cjs +14 -14
  108. package/dist/actions/list-customer-groups.cjs.map +1 -1
  109. package/dist/actions/list-customer-groups.d.cts +40 -3
  110. package/dist/actions/list-customer-groups.d.cts.map +1 -1
  111. package/dist/actions/list-customer-groups.d.mts +40 -3
  112. package/dist/actions/list-customer-groups.d.mts.map +1 -1
  113. package/dist/actions/list-customer-groups.mjs +14 -14
  114. package/dist/actions/list-customer-groups.mjs.map +1 -1
  115. package/dist/actions/list-tiers.cjs +9 -9
  116. package/dist/actions/list-tiers.cjs.map +1 -1
  117. package/dist/actions/list-tiers.d.cts +31 -3
  118. package/dist/actions/list-tiers.d.cts.map +1 -1
  119. package/dist/actions/list-tiers.d.mts +31 -3
  120. package/dist/actions/list-tiers.d.mts.map +1 -1
  121. package/dist/actions/list-tiers.mjs +9 -9
  122. package/dist/actions/list-tiers.mjs.map +1 -1
  123. package/dist/actions/query-threads.cjs +15 -15
  124. package/dist/actions/query-threads.cjs.map +1 -1
  125. package/dist/actions/query-threads.d.cts +31 -3
  126. package/dist/actions/query-threads.d.cts.map +1 -1
  127. package/dist/actions/query-threads.d.mts +31 -3
  128. package/dist/actions/query-threads.d.mts.map +1 -1
  129. package/dist/actions/query-threads.mjs +15 -15
  130. package/dist/actions/query-threads.mjs.map +1 -1
  131. package/dist/actions/remove-customer-from-group.cjs +10 -10
  132. package/dist/actions/remove-customer-from-group.cjs.map +1 -1
  133. package/dist/actions/remove-customer-from-group.d.cts +35 -3
  134. package/dist/actions/remove-customer-from-group.d.cts.map +1 -1
  135. package/dist/actions/remove-customer-from-group.d.mts +35 -3
  136. package/dist/actions/remove-customer-from-group.d.mts.map +1 -1
  137. package/dist/actions/remove-customer-from-group.mjs +10 -10
  138. package/dist/actions/remove-customer-from-group.mjs.map +1 -1
  139. package/dist/actions/run-graphql-query.cjs +7 -7
  140. package/dist/actions/run-graphql-query.cjs.map +1 -1
  141. package/dist/actions/run-graphql-query.d.cts +23 -3
  142. package/dist/actions/run-graphql-query.d.cts.map +1 -1
  143. package/dist/actions/run-graphql-query.d.mts +23 -3
  144. package/dist/actions/run-graphql-query.d.mts.map +1 -1
  145. package/dist/actions/run-graphql-query.mjs +7 -7
  146. package/dist/actions/run-graphql-query.mjs.map +1 -1
  147. package/dist/actions/send-message.cjs +5 -5
  148. package/dist/actions/send-message.cjs.map +1 -1
  149. package/dist/actions/send-message.d.cts +61 -3
  150. package/dist/actions/send-message.d.cts.map +1 -1
  151. package/dist/actions/send-message.d.mts +61 -3
  152. package/dist/actions/send-message.d.mts.map +1 -1
  153. package/dist/actions/send-message.mjs +5 -5
  154. package/dist/actions/send-message.mjs.map +1 -1
  155. package/dist/actions/update-company.cjs +15 -15
  156. package/dist/actions/update-company.cjs.map +1 -1
  157. package/dist/actions/update-company.d.cts +37 -3
  158. package/dist/actions/update-company.d.cts.map +1 -1
  159. package/dist/actions/update-company.d.mts +37 -3
  160. package/dist/actions/update-company.d.mts.map +1 -1
  161. package/dist/actions/update-company.mjs +15 -15
  162. package/dist/actions/update-company.mjs.map +1 -1
  163. package/dist/actions/update-thread.cjs +13 -13
  164. package/dist/actions/update-thread.cjs.map +1 -1
  165. package/dist/actions/update-thread.d.cts +27 -3
  166. package/dist/actions/update-thread.d.cts.map +1 -1
  167. package/dist/actions/update-thread.d.mts +27 -3
  168. package/dist/actions/update-thread.d.mts.map +1 -1
  169. package/dist/actions/update-thread.mjs +13 -13
  170. package/dist/actions/update-thread.mjs.map +1 -1
  171. package/dist/actions/upsert-customer.cjs +17 -17
  172. package/dist/actions/upsert-customer.cjs.map +1 -1
  173. package/dist/actions/upsert-customer.d.cts +112 -3
  174. package/dist/actions/upsert-customer.d.cts.map +1 -1
  175. package/dist/actions/upsert-customer.d.mts +112 -3
  176. package/dist/actions/upsert-customer.d.mts.map +1 -1
  177. package/dist/actions/upsert-customer.mjs +17 -17
  178. package/dist/actions/upsert-customer.mjs.map +1 -1
  179. package/dist/catalog.cjs +7 -1
  180. package/dist/catalog.cjs.map +1 -1
  181. package/dist/catalog.d.cts +8 -0
  182. package/dist/catalog.d.mts +8 -0
  183. package/dist/catalog.mjs +7 -1
  184. package/dist/catalog.mjs.map +1 -1
  185. package/package.json +2 -2
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-user.d.ts
4
- declare const PlainDeleteUserInput: z.ZodTypeAny;
5
- declare const PlainDeleteUserOutput: z.ZodTypeAny;
6
- declare const plainDeleteUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainDeleteUserInput: z.ZodObject<{
5
+ user_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PlainDeleteUserOutput: z.ZodObject<{
8
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9
+ code: z.ZodNullable<z.ZodString>;
10
+ type: z.ZodNullable<z.ZodString>;
11
+ fields: z.ZodArray<z.ZodObject<{
12
+ type: z.ZodNullable<z.ZodString>;
13
+ field: z.ZodNullable<z.ZodString>;
14
+ message: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$loose>>;
16
+ message: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$loose>>>;
18
+ }, z.core.$loose>;
19
+ declare const plainDeleteUser: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ user_id: string;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { plainDeleteUser };
9
24
  //# sourceMappingURL=delete-user.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-user.d.mts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAEnC;AAAA,cAYW,qBAAA,EAAuB,CAAA,CAAE,UAEpC;AAAA,cAEW,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-user.d.mts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;cAcpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIrB,eAAA,gCAAe,wBAAA"}
@@ -3,22 +3,22 @@ import { z } from "zod";
3
3
  //#region src/actions/delete-user.ts
4
4
  const PlainDeleteUserInput = z.object({ user_id: z.string().describe("Unique identifier of the user to delete, as returned by the Plain API.") });
5
5
  const PlainDeleteUser_DeleteUserErrorFieldSchema = z.object({
6
- type: z.string().describe("Type of the error for the field."),
7
- field: z.string().describe("Name of the field with the error."),
8
- message: z.string().describe("Validation message for the field.")
9
- });
6
+ type: z.string().describe("Type of the error for the field.").nullable(),
7
+ field: z.string().describe("Name of the field with the error.").nullable(),
8
+ message: z.string().describe("Validation message for the field.").nullable()
9
+ }).passthrough();
10
10
  const PlainDeleteUser_DeleteUserErrorSchema = z.object({
11
- code: z.string().describe("Error code."),
12
- type: z.string().describe("Error type."),
11
+ code: z.string().describe("Error code.").nullable(),
12
+ type: z.string().describe("Error type.").nullable(),
13
13
  fields: z.array(PlainDeleteUser_DeleteUserErrorFieldSchema).describe("List of field-specific errors."),
14
- message: z.string().describe("Error message.")
15
- });
14
+ message: z.string().describe("Error message.").nullable()
15
+ }).passthrough();
16
16
  const plainDeleteUser = action("PLAIN_DELETE_USER", {
17
17
  slug: "plain-delete-user",
18
18
  name: "Delete User",
19
19
  description: "Tool to delete a user from the system. Use when you need to remove a user by their ID after confirming existence.",
20
20
  input: PlainDeleteUserInput,
21
- output: z.object({ error: PlainDeleteUser_DeleteUserErrorSchema.nullable().optional() })
21
+ output: z.object({ error: PlainDeleteUser_DeleteUserErrorSchema.nullable().optional() }).passthrough()
22
22
  });
23
23
  //#endregion
24
24
  export { plainDeleteUser };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-user.mjs","names":[],"sources":["../../src/actions/delete-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainDeleteUserInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique identifier of the user to delete, as returned by the Plain API.\"),\n});\nconst PlainDeleteUser_DeleteUserErrorFieldSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of the error for the field.\"),\n field: z.string().describe(\"Name of the field with the error.\"),\n message: z.string().describe(\"Validation message for the field.\"),\n});\nconst PlainDeleteUser_DeleteUserErrorSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Error code.\"),\n type: z.string().describe(\"Error type.\"),\n fields: z.array(PlainDeleteUser_DeleteUserErrorFieldSchema).describe(\"List of field-specific errors.\"),\n message: z.string().describe(\"Error message.\"),\n});\nexport const PlainDeleteUserOutput: z.ZodTypeAny = z.object({\n error: PlainDeleteUser_DeleteUserErrorSchema.nullable().optional(),\n});\n\nexport const plainDeleteUser = action(\"PLAIN_DELETE_USER\", {\n slug: \"plain-delete-user\",\n name: \"Delete User\",\n description: \"Tool to delete a user from the system. Use when you need to remove a user by their ID after confirming existence.\",\n input: PlainDeleteUserInput,\n output: PlainDeleteUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqC,EAAE,OAAO,EACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,EACvG,CAAC;AACD,MAAM,6CAA2D,EAAE,OAAO;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;AAClE,CAAC;AACD,MAAM,wCAAsD,EAAE,OAAO;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACvC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACvC,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gCAAgC;CACrG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;AAC/C,CAAC;AAKD,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,OAAO,sCAAsC,SAAS,CAAC,CAAC,SAAS,EACnE,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"delete-user.mjs","names":[],"sources":["../../src/actions/delete-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainDeleteUserInput = z.object({\n user_id: z.string().describe(\"Unique identifier of the user to delete, as returned by the Plain API.\"),\n});\nconst PlainDeleteUser_DeleteUserErrorFieldSchema = z.object({\n type: z.string().describe(\"Type of the error for the field.\").nullable(),\n field: z.string().describe(\"Name of the field with the error.\").nullable(),\n message: z.string().describe(\"Validation message for the field.\").nullable(),\n}).passthrough();\nconst PlainDeleteUser_DeleteUserErrorSchema = z.object({\n code: z.string().describe(\"Error code.\").nullable(),\n type: z.string().describe(\"Error type.\").nullable(),\n fields: z.array(PlainDeleteUser_DeleteUserErrorFieldSchema).describe(\"List of field-specific errors.\"),\n message: z.string().describe(\"Error message.\").nullable(),\n}).passthrough();\nexport const PlainDeleteUserOutput = z.object({\n error: PlainDeleteUser_DeleteUserErrorSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainDeleteUser = action(\"PLAIN_DELETE_USER\", {\n slug: \"plain-delete-user\",\n name: \"Delete User\",\n description: \"Tool to delete a user from the system. Use when you need to remove a user by their ID after confirming existence.\",\n input: PlainDeleteUserInput,\n output: PlainDeleteUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO,EAC3C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,EACvG,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwC,EAAE,OAAO;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gCAAgC;CACrG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,kBAAkB,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmC,EAAE,OAAO,EAC5C,OAAO,sCAAsC,SAAS,CAAC,CAAC,SAAS,EACnE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -2,24 +2,24 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/fetch-company.ts
4
4
  const PlainFetchCompanyInput = zod.z.object({ company_id: zod.z.string().describe("Plain's internal ID of the company to fetch, e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED'.") }).describe("Input parameters for fetching a company by ID\n\ncompany_id: Plain's internal identifier for the company (e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED').");
5
- const PlainFetchCompany_Iso8601DateTimeSchema = zod.z.object({ iso8601: zod.z.string().describe("Timestamp in ISO 8601 format") }).describe("Represents a DateTime with ISO8601 format.");
5
+ const PlainFetchCompany_Iso8601DateTimeSchema = zod.z.object({ iso8601: zod.z.string().describe("Timestamp in ISO 8601 format").nullable() }).passthrough().describe("Represents a DateTime with ISO8601 format.");
6
6
  const PlainFetchCompany_CompanyAccountOwnerSchema = zod.z.object({
7
- id: zod.z.string().describe("Unique ID of the account owner user"),
8
- email: zod.z.string().describe("Email address of the account owner user"),
9
- fullName: zod.z.string().describe("Full name of the account owner user"),
10
- publicName: zod.z.string().describe("Public display name of the account owner user")
11
- });
7
+ id: zod.z.string().describe("Unique ID of the account owner user").nullable(),
8
+ email: zod.z.string().describe("Email address of the account owner user").nullable(),
9
+ fullName: zod.z.string().describe("Full name of the account owner user").nullable(),
10
+ publicName: zod.z.string().describe("Public display name of the account owner user").nullable()
11
+ }).passthrough();
12
12
  const PlainFetchCompanyOutput = zod.z.object({
13
- id: zod.z.string().describe("Unique ID of the company"),
14
- name: zod.z.string().describe("Name of the company"),
13
+ id: zod.z.string().describe("Unique ID of the company").nullable(),
14
+ name: zod.z.string().describe("Name of the company").nullable(),
15
15
  logoUrl: zod.z.string().describe("URL of the company's logo, if available").nullable().optional(),
16
16
  createdAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),
17
- isDeleted: zod.z.boolean().describe("Flag indicating if the company is deleted"),
17
+ isDeleted: zod.z.boolean().describe("Flag indicating if the company is deleted").nullable(),
18
18
  updatedAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),
19
- domainName: zod.z.string().describe("Domain name of the company"),
19
+ domainName: zod.z.string().describe("Domain name of the company").nullable(),
20
20
  accountOwner: PlainFetchCompany_CompanyAccountOwnerSchema.nullable().optional(),
21
21
  contractValue: zod.z.number().int().describe("Contract value for the company, if any").nullable().optional()
22
- }).describe("Response model for company details");
22
+ }).passthrough().describe("Response model for company details");
23
23
  const plainFetchCompany = require_action.action("PLAIN_FETCH_COMPANY", {
24
24
  slug: "plain-fetch-company",
25
25
  name: "Fetch Company",
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-company.cjs","names":["z","action"],"sources":["../../src/actions/fetch-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchCompanyInput: z.ZodTypeAny = z.object({\n company_id: z.string().describe(\"Plain's internal ID of the company to fetch, e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED'.\"),\n}).describe(\"Input parameters for fetching a company by ID\\n\\ncompany_id: Plain's internal identifier for the company (e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED').\");\nconst PlainFetchCompany_Iso8601DateTimeSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\"),\n}).describe(\"Represents a DateTime with ISO8601 format.\");\nconst PlainFetchCompany_CompanyAccountOwnerSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique ID of the account owner user\"),\n email: z.string().describe(\"Email address of the account owner user\"),\n fullName: z.string().describe(\"Full name of the account owner user\"),\n publicName: z.string().describe(\"Public display name of the account owner user\"),\n});\nexport const PlainFetchCompanyOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique ID of the company\"),\n name: z.string().describe(\"Name of the company\"),\n logoUrl: z.string().describe(\"URL of the company's logo, if available\").nullable().optional(),\n createdAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n isDeleted: z.boolean().describe(\"Flag indicating if the company is deleted\"),\n updatedAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company\"),\n accountOwner: PlainFetchCompany_CompanyAccountOwnerSchema.nullable().optional(),\n contractValue: z.number().int().describe(\"Contract value for the company, if any\").nullable().optional(),\n}).describe(\"Response model for company details\");\n\nexport const plainFetchCompany = action(\"PLAIN_FETCH_COMPANY\", {\n slug: \"plain-fetch-company\",\n name: \"Fetch Company\",\n description: \"Tool to fetch company details by ID. Use when you need the full profile of a company, including name, domain, contract value, owner info, and timestamps.\",\n input: PlainFetchCompanyInput,\n output: PlainFetchCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,EACxH,CAAC,CAAC,CAAC,SAAS,oJAAoJ;AAChK,MAAM,0CAAwDA,IAAAA,EAAE,OAAO,EACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,EAC7D,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AACjF,CAAC;AACD,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,WAAW,wCAAwC,SAAS;CAC5D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C;CAC3E,WAAW,wCAAwC,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CAC5D,cAAc,4CAA4C,SAAS,CAAC,CAAC,SAAS;CAC9E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAEhD,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-company.cjs","names":["z","action"],"sources":["../../src/actions/fetch-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchCompanyInput = z.object({\n company_id: z.string().describe(\"Plain's internal ID of the company to fetch, e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED'.\"),\n}).describe(\"Input parameters for fetching a company by ID\\n\\ncompany_id: Plain's internal identifier for the company (e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED').\");\nconst PlainFetchCompany_Iso8601DateTimeSchema = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"Represents a DateTime with ISO8601 format.\");\nconst PlainFetchCompany_CompanyAccountOwnerSchema = z.object({\n id: z.string().describe(\"Unique ID of the account owner user\").nullable(),\n email: z.string().describe(\"Email address of the account owner user\").nullable(),\n fullName: z.string().describe(\"Full name of the account owner user\").nullable(),\n publicName: z.string().describe(\"Public display name of the account owner user\").nullable(),\n}).passthrough();\nexport const PlainFetchCompanyOutput = z.object({\n id: z.string().describe(\"Unique ID of the company\").nullable(),\n name: z.string().describe(\"Name of the company\").nullable(),\n logoUrl: z.string().describe(\"URL of the company's logo, if available\").nullable().optional(),\n createdAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n isDeleted: z.boolean().describe(\"Flag indicating if the company is deleted\").nullable(),\n updatedAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company\").nullable(),\n accountOwner: PlainFetchCompany_CompanyAccountOwnerSchema.nullable().optional(),\n contractValue: z.number().int().describe(\"Contract value for the company, if any\").nullable().optional(),\n}).passthrough().describe(\"Response model for company details\");\n\nexport const plainFetchCompany = action(\"PLAIN_FETCH_COMPANY\", {\n slug: \"plain-fetch-company\",\n name: \"Fetch Company\",\n description: \"Tool to fetch company details by ID. Use when you need the full profile of a company, including name, domain, contract value, owner info, and timestamps.\",\n input: PlainFetchCompanyInput,\n output: PlainFetchCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,EACxH,CAAC,CAAC,CAAC,SAAS,oJAAoJ;AAChK,MAAM,0CAA0CA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,EACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,WAAW,wCAAwC,SAAS;CAC5D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,WAAW,wCAAwC,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,cAAc,4CAA4C,SAAS,CAAC,CAAC,SAAS;CAC9E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,32 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-company.d.ts
4
- declare const PlainFetchCompanyInput: z.ZodTypeAny;
5
- declare const PlainFetchCompanyOutput: z.ZodTypeAny;
6
- declare const plainFetchCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainFetchCompanyInput: z.ZodObject<{
5
+ company_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PlainFetchCompanyOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ createdAt: z.ZodNullable<z.ZodObject<{
12
+ iso8601: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$loose>>;
14
+ isDeleted: z.ZodNullable<z.ZodBoolean>;
15
+ updatedAt: z.ZodNullable<z.ZodObject<{
16
+ iso8601: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$loose>>;
18
+ domainName: z.ZodNullable<z.ZodString>;
19
+ accountOwner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
+ id: z.ZodNullable<z.ZodString>;
21
+ email: z.ZodNullable<z.ZodString>;
22
+ fullName: z.ZodNullable<z.ZodString>;
23
+ publicName: z.ZodNullable<z.ZodString>;
24
+ }, z.core.$loose>>>;
25
+ contractValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ }, z.core.$loose>;
27
+ declare const plainFetchCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ company_id: string;
29
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
30
  //#endregion
8
31
  export { plainFetchCompany };
9
32
  //# sourceMappingURL=fetch-company.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-company.d.cts","names":[],"sources":["../../src/actions/fetch-company.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAE0H;AAAA,cAUpJ,uBAAA,EAAyB,CAAA,CAAE,UAUS;AAAA,cAEpC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-company.d.cts","names":[],"sources":["../../src/actions/fetch-company.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAYtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAYvB,iBAAA,gCAAiB,wBAAA"}
@@ -1,9 +1,32 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-company.d.ts
4
- declare const PlainFetchCompanyInput: z.ZodTypeAny;
5
- declare const PlainFetchCompanyOutput: z.ZodTypeAny;
6
- declare const plainFetchCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainFetchCompanyInput: z.ZodObject<{
5
+ company_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PlainFetchCompanyOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ createdAt: z.ZodNullable<z.ZodObject<{
12
+ iso8601: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$loose>>;
14
+ isDeleted: z.ZodNullable<z.ZodBoolean>;
15
+ updatedAt: z.ZodNullable<z.ZodObject<{
16
+ iso8601: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$loose>>;
18
+ domainName: z.ZodNullable<z.ZodString>;
19
+ accountOwner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
+ id: z.ZodNullable<z.ZodString>;
21
+ email: z.ZodNullable<z.ZodString>;
22
+ fullName: z.ZodNullable<z.ZodString>;
23
+ publicName: z.ZodNullable<z.ZodString>;
24
+ }, z.core.$loose>>>;
25
+ contractValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ }, z.core.$loose>;
27
+ declare const plainFetchCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ company_id: string;
29
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
30
  //#endregion
8
31
  export { plainFetchCompany };
9
32
  //# sourceMappingURL=fetch-company.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-company.d.mts","names":[],"sources":["../../src/actions/fetch-company.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAE0H;AAAA,cAUpJ,uBAAA,EAAyB,CAAA,CAAE,UAUS;AAAA,cAEpC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-company.d.mts","names":[],"sources":["../../src/actions/fetch-company.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAYtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAYvB,iBAAA,gCAAiB,wBAAA"}
@@ -2,29 +2,29 @@ import { action } from "../action.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/actions/fetch-company.ts
4
4
  const PlainFetchCompanyInput = z.object({ company_id: z.string().describe("Plain's internal ID of the company to fetch, e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED'.") }).describe("Input parameters for fetching a company by ID\n\ncompany_id: Plain's internal identifier for the company (e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED').");
5
- const PlainFetchCompany_Iso8601DateTimeSchema = z.object({ iso8601: z.string().describe("Timestamp in ISO 8601 format") }).describe("Represents a DateTime with ISO8601 format.");
5
+ const PlainFetchCompany_Iso8601DateTimeSchema = z.object({ iso8601: z.string().describe("Timestamp in ISO 8601 format").nullable() }).passthrough().describe("Represents a DateTime with ISO8601 format.");
6
6
  const PlainFetchCompany_CompanyAccountOwnerSchema = z.object({
7
- id: z.string().describe("Unique ID of the account owner user"),
8
- email: z.string().describe("Email address of the account owner user"),
9
- fullName: z.string().describe("Full name of the account owner user"),
10
- publicName: z.string().describe("Public display name of the account owner user")
11
- });
7
+ id: z.string().describe("Unique ID of the account owner user").nullable(),
8
+ email: z.string().describe("Email address of the account owner user").nullable(),
9
+ fullName: z.string().describe("Full name of the account owner user").nullable(),
10
+ publicName: z.string().describe("Public display name of the account owner user").nullable()
11
+ }).passthrough();
12
12
  const plainFetchCompany = action("PLAIN_FETCH_COMPANY", {
13
13
  slug: "plain-fetch-company",
14
14
  name: "Fetch Company",
15
15
  description: "Tool to fetch company details by ID. Use when you need the full profile of a company, including name, domain, contract value, owner info, and timestamps.",
16
16
  input: PlainFetchCompanyInput,
17
17
  output: z.object({
18
- id: z.string().describe("Unique ID of the company"),
19
- name: z.string().describe("Name of the company"),
18
+ id: z.string().describe("Unique ID of the company").nullable(),
19
+ name: z.string().describe("Name of the company").nullable(),
20
20
  logoUrl: z.string().describe("URL of the company's logo, if available").nullable().optional(),
21
21
  createdAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),
22
- isDeleted: z.boolean().describe("Flag indicating if the company is deleted"),
22
+ isDeleted: z.boolean().describe("Flag indicating if the company is deleted").nullable(),
23
23
  updatedAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),
24
- domainName: z.string().describe("Domain name of the company"),
24
+ domainName: z.string().describe("Domain name of the company").nullable(),
25
25
  accountOwner: PlainFetchCompany_CompanyAccountOwnerSchema.nullable().optional(),
26
26
  contractValue: z.number().int().describe("Contract value for the company, if any").nullable().optional()
27
- }).describe("Response model for company details")
27
+ }).passthrough().describe("Response model for company details")
28
28
  });
29
29
  //#endregion
30
30
  export { plainFetchCompany };
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-company.mjs","names":[],"sources":["../../src/actions/fetch-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchCompanyInput: z.ZodTypeAny = z.object({\n company_id: z.string().describe(\"Plain's internal ID of the company to fetch, e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED'.\"),\n}).describe(\"Input parameters for fetching a company by ID\\n\\ncompany_id: Plain's internal identifier for the company (e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED').\");\nconst PlainFetchCompany_Iso8601DateTimeSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\"),\n}).describe(\"Represents a DateTime with ISO8601 format.\");\nconst PlainFetchCompany_CompanyAccountOwnerSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique ID of the account owner user\"),\n email: z.string().describe(\"Email address of the account owner user\"),\n fullName: z.string().describe(\"Full name of the account owner user\"),\n publicName: z.string().describe(\"Public display name of the account owner user\"),\n});\nexport const PlainFetchCompanyOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique ID of the company\"),\n name: z.string().describe(\"Name of the company\"),\n logoUrl: z.string().describe(\"URL of the company's logo, if available\").nullable().optional(),\n createdAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n isDeleted: z.boolean().describe(\"Flag indicating if the company is deleted\"),\n updatedAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company\"),\n accountOwner: PlainFetchCompany_CompanyAccountOwnerSchema.nullable().optional(),\n contractValue: z.number().int().describe(\"Contract value for the company, if any\").nullable().optional(),\n}).describe(\"Response model for company details\");\n\nexport const plainFetchCompany = action(\"PLAIN_FETCH_COMPANY\", {\n slug: \"plain-fetch-company\",\n name: \"Fetch Company\",\n description: \"Tool to fetch company details by ID. Use when you need the full profile of a company, including name, domain, contract value, owner info, and timestamps.\",\n input: PlainFetchCompanyInput,\n output: PlainFetchCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO,EAC3D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,EACxH,CAAC,CAAC,CAAC,SAAS,oJAAoJ;AAChK,MAAM,0CAAwD,EAAE,OAAO,EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,EAC7D,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,8CAA4D,EAAE,OAAO;CACzE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AACjF,CAAC;AAaD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBmD,EAAE,OAAO;EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,WAAW,wCAAwC,SAAS;EAC5D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C;EAC3E,WAAW,wCAAwC,SAAS;EAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EAC5D,cAAc,4CAA4C,SAAS,CAAC,CAAC,SAAS;EAC9E,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,SAAS,oCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-company.mjs","names":[],"sources":["../../src/actions/fetch-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchCompanyInput = z.object({\n company_id: z.string().describe(\"Plain's internal ID of the company to fetch, e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED'.\"),\n}).describe(\"Input parameters for fetching a company by ID\\n\\ncompany_id: Plain's internal identifier for the company (e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED').\");\nconst PlainFetchCompany_Iso8601DateTimeSchema = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"Represents a DateTime with ISO8601 format.\");\nconst PlainFetchCompany_CompanyAccountOwnerSchema = z.object({\n id: z.string().describe(\"Unique ID of the account owner user\").nullable(),\n email: z.string().describe(\"Email address of the account owner user\").nullable(),\n fullName: z.string().describe(\"Full name of the account owner user\").nullable(),\n publicName: z.string().describe(\"Public display name of the account owner user\").nullable(),\n}).passthrough();\nexport const PlainFetchCompanyOutput = z.object({\n id: z.string().describe(\"Unique ID of the company\").nullable(),\n name: z.string().describe(\"Name of the company\").nullable(),\n logoUrl: z.string().describe(\"URL of the company's logo, if available\").nullable().optional(),\n createdAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n isDeleted: z.boolean().describe(\"Flag indicating if the company is deleted\").nullable(),\n updatedAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company\").nullable(),\n accountOwner: PlainFetchCompany_CompanyAccountOwnerSchema.nullable().optional(),\n contractValue: z.number().int().describe(\"Contract value for the company, if any\").nullable().optional(),\n}).passthrough().describe(\"Response model for company details\");\n\nexport const plainFetchCompany = action(\"PLAIN_FETCH_COMPANY\", {\n slug: \"plain-fetch-company\",\n name: \"Fetch Company\",\n description: \"Tool to fetch company details by ID. Use when you need the full profile of a company, including name, domain, contract value, owner info, and timestamps.\",\n input: PlainFetchCompanyInput,\n output: PlainFetchCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,EACxH,CAAC,CAAC,CAAC,SAAS,oJAAoJ;AAChK,MAAM,0CAA0C,EAAE,OAAO,EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,EACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AAaf,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBqC,EAAE,OAAO;EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,WAAW,wCAAwC,SAAS;EAC5D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACtF,WAAW,wCAAwC,SAAS;EAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACvE,cAAc,4CAA4C,SAAS,CAAC,CAAC,SAAS;EAC9E,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAOhB;AACV,CAAC"}
@@ -7,20 +7,20 @@ const PlainFetchIssuesInput = zod.z.object({
7
7
  threadFirst: zod.z.number().int().default(50).describe("Maximum number of customer threads to fetch. Must be between 1-100. Defaults to 50.").optional()
8
8
  }).describe("Request parameters for fetching issue links associated with a customer.");
9
9
  const PlainFetchIssues_IssueSchema = zod.z.object({
10
- id: zod.z.string().describe("The internal Plain ID of the link resource."),
11
- url: zod.z.string().describe("Direct URL to view the external issue in its source system."),
10
+ id: zod.z.string().describe("The internal Plain ID of the link resource.").nullable(),
11
+ url: zod.z.string().describe("Direct URL to view the external issue in its source system.").nullable(),
12
12
  title: zod.z.string().describe("The title/summary of the external issue.").nullable().optional(),
13
- status: zod.z.string().describe("Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN')."),
14
- sourceId: zod.z.string().describe("The external issue ID from the source system (e.g., JIRA-123, LIN-456)."),
15
- threadId: zod.z.string().describe("The Plain thread ID this issue is linked to."),
16
- sourceType: zod.z.string().describe("The type of external issue tracker system (e.g., 'jira', 'linear', 'github')."),
13
+ status: zod.z.string().describe("Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN').").nullable(),
14
+ sourceId: zod.z.string().describe("The external issue ID from the source system (e.g., JIRA-123, LIN-456).").nullable(),
15
+ threadId: zod.z.string().describe("The Plain thread ID this issue is linked to.").nullable(),
16
+ sourceType: zod.z.string().describe("The type of external issue tracker system (e.g., 'jira', 'linear', 'github').").nullable(),
17
17
  description: zod.z.string().describe("The detailed description of the external issue.").nullable().optional(),
18
18
  threadTitle: zod.z.string().describe("The title of the Plain thread.").nullable().optional()
19
- }).describe("Represents an external issue tracker link associated with a thread.");
19
+ }).passthrough().describe("Represents an external issue tracker link associated with a thread.");
20
20
  const PlainFetchIssuesOutput = zod.z.object({
21
21
  issues: zod.z.array(PlainFetchIssues_IssueSchema).describe("Flattened list of all external issue tracker links across the customer's threads. Empty list if no issues are linked."),
22
- totalCount: zod.z.number().int().describe("Total number of issue links found for this customer.")
23
- }).describe("Response model containing external issue tracker links for a customer.");
22
+ totalCount: zod.z.number().int().describe("Total number of issue links found for this customer.").nullable()
23
+ }).passthrough().describe("Response model containing external issue tracker links for a customer.");
24
24
  const plainFetchIssues = require_action.action("PLAIN_FETCH_ISSUES", {
25
25
  slug: "plain-fetch-issues",
26
26
  name: "Fetch Issues",
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-issues.cjs","names":["z","action"],"sources":["../../src/actions/fetch-issues.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchIssuesInput: z.ZodTypeAny = z.object({\n linkFirst: z.number().int().default(50).describe(\"Maximum number of issue links to fetch per thread. Must be between 1-100. Defaults to 50.\").optional(),\n customerId: z.string().describe(\"The unique identifier of the customer whose external issue tracker links (Jira, Linear, etc.) are to be retrieved.\"),\n threadFirst: z.number().int().default(50).describe(\"Maximum number of customer threads to fetch. Must be between 1-100. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for fetching issue links associated with a customer.\");\nconst PlainFetchIssues_IssueSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The internal Plain ID of the link resource.\"),\n url: z.string().describe(\"Direct URL to view the external issue in its source system.\"),\n title: z.string().describe(\"The title/summary of the external issue.\").nullable().optional(),\n status: z.string().describe(\"Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN').\"),\n sourceId: z.string().describe(\"The external issue ID from the source system (e.g., JIRA-123, LIN-456).\"),\n threadId: z.string().describe(\"The Plain thread ID this issue is linked to.\"),\n sourceType: z.string().describe(\"The type of external issue tracker system (e.g., 'jira', 'linear', 'github').\"),\n description: z.string().describe(\"The detailed description of the external issue.\").nullable().optional(),\n threadTitle: z.string().describe(\"The title of the Plain thread.\").nullable().optional(),\n}).describe(\"Represents an external issue tracker link associated with a thread.\");\nexport const PlainFetchIssuesOutput: z.ZodTypeAny = z.object({\n issues: z.array(PlainFetchIssues_IssueSchema).describe(\"Flattened list of all external issue tracker links across the customer's threads. Empty list if no issues are linked.\"),\n totalCount: z.number().int().describe(\"Total number of issue links found for this customer.\"),\n}).describe(\"Response model containing external issue tracker links for a customer.\");\n\nexport const plainFetchIssues = action(\"PLAIN_FETCH_ISSUES\", {\n slug: \"plain-fetch-issues\",\n name: \"Fetch Issues\",\n description: \"Fetches external issue tracker links (Jira, Linear, GitHub, etc.) associated with a customer's threads. Returns a flattened list of all issue links across the customer's threads, including the thread context for each issue. Useful for getting a complete view of all external issues related to a customer. With defaults, returns up to threadFirst×linkFirst (2,500) total issue links; results are truncated if limits are exceeded, so reduce threadFirst or linkFirst for large datasets.\",\n input: PlainFetchIssuesInput,\n output: PlainFetchIssuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACvJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACpJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,+BAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACpH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CACvG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC/G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,QAAQA,IAAAA,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,uHAAuH;CAC9K,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;AAC9F,CAAC,CAAC,CAAC,SAAS,wEAAwE;AAEpF,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-issues.cjs","names":["z","action"],"sources":["../../src/actions/fetch-issues.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchIssuesInput = z.object({\n linkFirst: z.number().int().default(50).describe(\"Maximum number of issue links to fetch per thread. Must be between 1-100. Defaults to 50.\").optional(),\n customerId: z.string().describe(\"The unique identifier of the customer whose external issue tracker links (Jira, Linear, etc.) are to be retrieved.\"),\n threadFirst: z.number().int().default(50).describe(\"Maximum number of customer threads to fetch. Must be between 1-100. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for fetching issue links associated with a customer.\");\nconst PlainFetchIssues_IssueSchema = z.object({\n id: z.string().describe(\"The internal Plain ID of the link resource.\").nullable(),\n url: z.string().describe(\"Direct URL to view the external issue in its source system.\").nullable(),\n title: z.string().describe(\"The title/summary of the external issue.\").nullable().optional(),\n status: z.string().describe(\"Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN').\").nullable(),\n sourceId: z.string().describe(\"The external issue ID from the source system (e.g., JIRA-123, LIN-456).\").nullable(),\n threadId: z.string().describe(\"The Plain thread ID this issue is linked to.\").nullable(),\n sourceType: z.string().describe(\"The type of external issue tracker system (e.g., 'jira', 'linear', 'github').\").nullable(),\n description: z.string().describe(\"The detailed description of the external issue.\").nullable().optional(),\n threadTitle: z.string().describe(\"The title of the Plain thread.\").nullable().optional(),\n}).passthrough().describe(\"Represents an external issue tracker link associated with a thread.\");\nexport const PlainFetchIssuesOutput = z.object({\n issues: z.array(PlainFetchIssues_IssueSchema).describe(\"Flattened list of all external issue tracker links across the customer's threads. Empty list if no issues are linked.\"),\n totalCount: z.number().int().describe(\"Total number of issue links found for this customer.\").nullable(),\n}).passthrough().describe(\"Response model containing external issue tracker links for a customer.\");\n\nexport const plainFetchIssues = action(\"PLAIN_FETCH_ISSUES\", {\n slug: \"plain-fetch-issues\",\n name: \"Fetch Issues\",\n description: \"Fetches external issue tracker links (Jira, Linear, GitHub, etc.) associated with a customer's threads. Returns a flattened list of all issue links across the customer's threads, including the thread context for each issue. Useful for getting a complete view of all external issues related to a customer. With defaults, returns up to threadFirst×linkFirst (2,500) total issue links; results are truncated if limits are exceeded, so reduce threadFirst or linkFirst for large datasets.\",\n input: PlainFetchIssuesInput,\n output: PlainFetchIssuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACvJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACpJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,+BAA+BA,IAAAA,EAAE,OAAO;CAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACjG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAC/H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAClH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC1H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAC/F,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,QAAQA,IAAAA,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,uHAAuH;CAC9K,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAElG,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,30 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-issues.d.ts
4
- declare const PlainFetchIssuesInput: z.ZodTypeAny;
5
- declare const PlainFetchIssuesOutput: z.ZodTypeAny;
6
- declare const plainFetchIssues: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainFetchIssuesInput: z.ZodObject<{
5
+ linkFirst: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ customerId: z.ZodString;
7
+ threadFirst: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ }, z.core.$strip>;
9
+ declare const PlainFetchIssuesOutput: z.ZodObject<{
10
+ issues: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodString>;
12
+ url: z.ZodNullable<z.ZodString>;
13
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ status: z.ZodNullable<z.ZodString>;
15
+ sourceId: z.ZodNullable<z.ZodString>;
16
+ threadId: z.ZodNullable<z.ZodString>;
17
+ sourceType: z.ZodNullable<z.ZodString>;
18
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ threadTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$loose>>;
21
+ totalCount: z.ZodNullable<z.ZodNumber>;
22
+ }, z.core.$loose>;
23
+ declare const plainFetchIssues: import("@keystrokehq/action").WorkflowActionDefinition<{
24
+ customerId: string;
25
+ linkFirst?: number | undefined;
26
+ threadFirst?: number | undefined;
27
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
28
  //#endregion
8
29
  export { plainFetchIssues };
9
30
  //# sourceMappingURL=fetch-issues.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-issues.d.cts","names":[],"sources":["../../src/actions/fetch-issues.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAIgD;AAAA,cAYzE,sBAAA,EAAwB,CAAA,CAAE,UAG8C;AAAA,cAExE,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-issues.d.cts","names":[],"sources":["../../src/actions/fetch-issues.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;cAgBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
@@ -1,9 +1,30 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-issues.d.ts
4
- declare const PlainFetchIssuesInput: z.ZodTypeAny;
5
- declare const PlainFetchIssuesOutput: z.ZodTypeAny;
6
- declare const plainFetchIssues: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainFetchIssuesInput: z.ZodObject<{
5
+ linkFirst: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ customerId: z.ZodString;
7
+ threadFirst: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ }, z.core.$strip>;
9
+ declare const PlainFetchIssuesOutput: z.ZodObject<{
10
+ issues: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodString>;
12
+ url: z.ZodNullable<z.ZodString>;
13
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ status: z.ZodNullable<z.ZodString>;
15
+ sourceId: z.ZodNullable<z.ZodString>;
16
+ threadId: z.ZodNullable<z.ZodString>;
17
+ sourceType: z.ZodNullable<z.ZodString>;
18
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ threadTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$loose>>;
21
+ totalCount: z.ZodNullable<z.ZodNumber>;
22
+ }, z.core.$loose>;
23
+ declare const plainFetchIssues: import("@keystrokehq/action").WorkflowActionDefinition<{
24
+ customerId: string;
25
+ linkFirst?: number | undefined;
26
+ threadFirst?: number | undefined;
27
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
28
  //#endregion
8
29
  export { plainFetchIssues };
9
30
  //# sourceMappingURL=fetch-issues.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-issues.d.mts","names":[],"sources":["../../src/actions/fetch-issues.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAIgD;AAAA,cAYzE,sBAAA,EAAwB,CAAA,CAAE,UAG8C;AAAA,cAExE,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-issues.d.mts","names":[],"sources":["../../src/actions/fetch-issues.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;cAgBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
@@ -7,16 +7,16 @@ const PlainFetchIssuesInput = z.object({
7
7
  threadFirst: z.number().int().default(50).describe("Maximum number of customer threads to fetch. Must be between 1-100. Defaults to 50.").optional()
8
8
  }).describe("Request parameters for fetching issue links associated with a customer.");
9
9
  const PlainFetchIssues_IssueSchema = z.object({
10
- id: z.string().describe("The internal Plain ID of the link resource."),
11
- url: z.string().describe("Direct URL to view the external issue in its source system."),
10
+ id: z.string().describe("The internal Plain ID of the link resource.").nullable(),
11
+ url: z.string().describe("Direct URL to view the external issue in its source system.").nullable(),
12
12
  title: z.string().describe("The title/summary of the external issue.").nullable().optional(),
13
- status: z.string().describe("Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN')."),
14
- sourceId: z.string().describe("The external issue ID from the source system (e.g., JIRA-123, LIN-456)."),
15
- threadId: z.string().describe("The Plain thread ID this issue is linked to."),
16
- sourceType: z.string().describe("The type of external issue tracker system (e.g., 'jira', 'linear', 'github')."),
13
+ status: z.string().describe("Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN').").nullable(),
14
+ sourceId: z.string().describe("The external issue ID from the source system (e.g., JIRA-123, LIN-456).").nullable(),
15
+ threadId: z.string().describe("The Plain thread ID this issue is linked to.").nullable(),
16
+ sourceType: z.string().describe("The type of external issue tracker system (e.g., 'jira', 'linear', 'github').").nullable(),
17
17
  description: z.string().describe("The detailed description of the external issue.").nullable().optional(),
18
18
  threadTitle: z.string().describe("The title of the Plain thread.").nullable().optional()
19
- }).describe("Represents an external issue tracker link associated with a thread.");
19
+ }).passthrough().describe("Represents an external issue tracker link associated with a thread.");
20
20
  const plainFetchIssues = action("PLAIN_FETCH_ISSUES", {
21
21
  slug: "plain-fetch-issues",
22
22
  name: "Fetch Issues",
@@ -24,8 +24,8 @@ const plainFetchIssues = action("PLAIN_FETCH_ISSUES", {
24
24
  input: PlainFetchIssuesInput,
25
25
  output: z.object({
26
26
  issues: z.array(PlainFetchIssues_IssueSchema).describe("Flattened list of all external issue tracker links across the customer's threads. Empty list if no issues are linked."),
27
- totalCount: z.number().int().describe("Total number of issue links found for this customer.")
28
- }).describe("Response model containing external issue tracker links for a customer.")
27
+ totalCount: z.number().int().describe("Total number of issue links found for this customer.").nullable()
28
+ }).passthrough().describe("Response model containing external issue tracker links for a customer.")
29
29
  });
30
30
  //#endregion
31
31
  export { plainFetchIssues };
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-issues.mjs","names":[],"sources":["../../src/actions/fetch-issues.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchIssuesInput: z.ZodTypeAny = z.object({\n linkFirst: z.number().int().default(50).describe(\"Maximum number of issue links to fetch per thread. Must be between 1-100. Defaults to 50.\").optional(),\n customerId: z.string().describe(\"The unique identifier of the customer whose external issue tracker links (Jira, Linear, etc.) are to be retrieved.\"),\n threadFirst: z.number().int().default(50).describe(\"Maximum number of customer threads to fetch. Must be between 1-100. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for fetching issue links associated with a customer.\");\nconst PlainFetchIssues_IssueSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The internal Plain ID of the link resource.\"),\n url: z.string().describe(\"Direct URL to view the external issue in its source system.\"),\n title: z.string().describe(\"The title/summary of the external issue.\").nullable().optional(),\n status: z.string().describe(\"Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN').\"),\n sourceId: z.string().describe(\"The external issue ID from the source system (e.g., JIRA-123, LIN-456).\"),\n threadId: z.string().describe(\"The Plain thread ID this issue is linked to.\"),\n sourceType: z.string().describe(\"The type of external issue tracker system (e.g., 'jira', 'linear', 'github').\"),\n description: z.string().describe(\"The detailed description of the external issue.\").nullable().optional(),\n threadTitle: z.string().describe(\"The title of the Plain thread.\").nullable().optional(),\n}).describe(\"Represents an external issue tracker link associated with a thread.\");\nexport const PlainFetchIssuesOutput: z.ZodTypeAny = z.object({\n issues: z.array(PlainFetchIssues_IssueSchema).describe(\"Flattened list of all external issue tracker links across the customer's threads. Empty list if no issues are linked.\"),\n totalCount: z.number().int().describe(\"Total number of issue links found for this customer.\"),\n}).describe(\"Response model containing external issue tracker links for a customer.\");\n\nexport const plainFetchIssues = action(\"PLAIN_FETCH_ISSUES\", {\n slug: \"plain-fetch-issues\",\n name: \"Fetch Issues\",\n description: \"Fetches external issue tracker links (Jira, Linear, GitHub, etc.) associated with a customer's threads. Returns a flattened list of all issue links across the customer's threads, including the thread context for each issue. Useful for getting a complete view of all external issues related to a customer. With defaults, returns up to threadFirst×linkFirst (2,500) total issue links; results are truncated if limits are exceeded, so reduce threadFirst or linkFirst for large datasets.\",\n input: PlainFetchIssuesInput,\n output: PlainFetchIssuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO;CAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACvJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACpJ,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,+BAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACpH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CACvG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC/G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAMjF,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVkD,EAAE,OAAO;EAC3D,QAAQ,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,uHAAuH;EAC9K,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;CAC9F,CAAC,CAAC,CAAC,SAAS,wEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-issues.mjs","names":[],"sources":["../../src/actions/fetch-issues.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchIssuesInput = z.object({\n linkFirst: z.number().int().default(50).describe(\"Maximum number of issue links to fetch per thread. Must be between 1-100. Defaults to 50.\").optional(),\n customerId: z.string().describe(\"The unique identifier of the customer whose external issue tracker links (Jira, Linear, etc.) are to be retrieved.\"),\n threadFirst: z.number().int().default(50).describe(\"Maximum number of customer threads to fetch. Must be between 1-100. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for fetching issue links associated with a customer.\");\nconst PlainFetchIssues_IssueSchema = z.object({\n id: z.string().describe(\"The internal Plain ID of the link resource.\").nullable(),\n url: z.string().describe(\"Direct URL to view the external issue in its source system.\").nullable(),\n title: z.string().describe(\"The title/summary of the external issue.\").nullable().optional(),\n status: z.string().describe(\"Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN').\").nullable(),\n sourceId: z.string().describe(\"The external issue ID from the source system (e.g., JIRA-123, LIN-456).\").nullable(),\n threadId: z.string().describe(\"The Plain thread ID this issue is linked to.\").nullable(),\n sourceType: z.string().describe(\"The type of external issue tracker system (e.g., 'jira', 'linear', 'github').\").nullable(),\n description: z.string().describe(\"The detailed description of the external issue.\").nullable().optional(),\n threadTitle: z.string().describe(\"The title of the Plain thread.\").nullable().optional(),\n}).passthrough().describe(\"Represents an external issue tracker link associated with a thread.\");\nexport const PlainFetchIssuesOutput = z.object({\n issues: z.array(PlainFetchIssues_IssueSchema).describe(\"Flattened list of all external issue tracker links across the customer's threads. Empty list if no issues are linked.\"),\n totalCount: z.number().int().describe(\"Total number of issue links found for this customer.\").nullable(),\n}).passthrough().describe(\"Response model containing external issue tracker links for a customer.\");\n\nexport const plainFetchIssues = action(\"PLAIN_FETCH_ISSUES\", {\n slug: \"plain-fetch-issues\",\n name: \"Fetch Issues\",\n description: \"Fetches external issue tracker links (Jira, Linear, GitHub, etc.) associated with a customer's threads. Returns a flattened list of all issue links across the customer's threads, including the thread context for each issue. Useful for getting a complete view of all external issues related to a customer. With defaults, returns up to threadFirst×linkFirst (2,500) total issue links; results are truncated if limits are exceeded, so reduce threadFirst or linkFirst for large datasets.\",\n input: PlainFetchIssuesInput,\n output: PlainFetchIssuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACvJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACpJ,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,+BAA+B,EAAE,OAAO;CAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACjG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAC/H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAClH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC1H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAM/F,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoC,EAAE,OAAO;EAC7C,QAAQ,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,uHAAuH;EAC9K,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAOhB;AACV,CAAC"}
@@ -3,21 +3,21 @@ let zod = require("zod");
3
3
  //#region src/actions/fetch-tier.ts
4
4
  const PlainFetchTierInput = zod.z.object({ tier_id: zod.z.string().describe("The unique identifier of the tier to fetch (e.g., 'tier_123')") }).describe("Request parameters for fetching a tier by its ID.");
5
5
  const PlainFetchTier_DateTimeSchema = zod.z.object({
6
- iso8601: zod.z.string().describe("ISO 8601 datetime string."),
7
- unixTimestamp: zod.z.string().describe("Unix timestamp representation.")
8
- }).describe("DateTime object with Unix timestamp and ISO 8601 format.");
6
+ iso8601: zod.z.string().describe("ISO 8601 datetime string.").nullable(),
7
+ unixTimestamp: zod.z.string().describe("Unix timestamp representation.").nullable()
8
+ }).passthrough().describe("DateTime object with Unix timestamp and ISO 8601 format.");
9
9
  const PlainFetchTier_TierSchema = zod.z.object({
10
- id: zod.z.string().describe("The unique identifier of the tier."),
11
- name: zod.z.string().describe("The display name of the tier."),
12
- color: zod.z.string().describe("Hex color code for UI representation."),
10
+ id: zod.z.string().describe("The unique identifier of the tier.").nullable(),
11
+ name: zod.z.string().describe("The display name of the tier.").nullable(),
12
+ color: zod.z.string().describe("Hex color code for UI representation.").nullable(),
13
13
  createdAt: PlainFetchTier_DateTimeSchema.nullable(),
14
- isDefault: zod.z.boolean().describe("Whether this tier applies to unmatched threads."),
14
+ isDefault: zod.z.boolean().describe("Whether this tier applies to unmatched threads.").nullable(),
15
15
  updatedAt: PlainFetchTier_DateTimeSchema.nullable(),
16
16
  externalId: zod.z.string().describe("Custom identifier from your system (unique per workspace).").nullable().optional(),
17
- isMachineTier: zod.z.boolean().describe("Whether the tier was auto-generated from tenant fields."),
18
- defaultThreadPriority: zod.z.number().int().describe("Default priority for threads created in this tier.")
19
- }).describe("Tier object returned by the API.");
20
- const PlainFetchTierOutput = zod.z.object({ tier: PlainFetchTier_TierSchema.nullable().optional() }).describe("Response schema for fetching a single tier.");
17
+ isMachineTier: zod.z.boolean().describe("Whether the tier was auto-generated from tenant fields.").nullable(),
18
+ defaultThreadPriority: zod.z.number().int().describe("Default priority for threads created in this tier.").nullable()
19
+ }).passthrough().describe("Tier object returned by the API.");
20
+ const PlainFetchTierOutput = zod.z.object({ tier: PlainFetchTier_TierSchema.nullable().optional() }).passthrough().describe("Response schema for fetching a single tier.");
21
21
  const plainFetchTier = require_action.action("PLAIN_FETCH_TIER", {
22
22
  slug: "plain-fetch-tier",
23
23
  name: "Fetch Tier",
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-tier.cjs","names":["z","action"],"sources":["../../src/actions/fetch-tier.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchTierInput: z.ZodTypeAny = z.object({\n tier_id: z.string().describe(\"The unique identifier of the tier to fetch (e.g., 'tier_123')\"),\n}).describe(\"Request parameters for fetching a tier by its ID.\");\nconst PlainFetchTier_DateTimeSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"ISO 8601 datetime string.\"),\n unixTimestamp: z.string().describe(\"Unix timestamp representation.\"),\n}).describe(\"DateTime object with Unix timestamp and ISO 8601 format.\");\nconst PlainFetchTier_TierSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the tier.\"),\n name: z.string().describe(\"The display name of the tier.\"),\n color: z.string().describe(\"Hex color code for UI representation.\"),\n createdAt: PlainFetchTier_DateTimeSchema.nullable(),\n isDefault: z.boolean().describe(\"Whether this tier applies to unmatched threads.\"),\n updatedAt: PlainFetchTier_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"Custom identifier from your system (unique per workspace).\").nullable().optional(),\n isMachineTier: z.boolean().describe(\"Whether the tier was auto-generated from tenant fields.\"),\n defaultThreadPriority: z.number().int().describe(\"Default priority for threads created in this tier.\"),\n}).describe(\"Tier object returned by the API.\");\nexport const PlainFetchTierOutput: z.ZodTypeAny = z.object({\n tier: PlainFetchTier_TierSchema.nullable().optional(),\n}).describe(\"Response schema for fetching a single tier.\");\n\nexport const plainFetchTier = action(\"PLAIN_FETCH_TIER\", {\n slug: \"plain-fetch-tier\",\n name: \"Fetch Tier\",\n description: \"Tool to fetch a tier by its ID. Use when you have a tier ID and need its metadata before proceeding. Example: \\\"Fetch tier with ID tier_123\\\".\",\n input: PlainFetchTierInput,\n output: PlainFetchTierOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoCA,IAAAA,EAAE,OAAO,EACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC9F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,gCAA8CA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACxD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;AACrE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4BAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,WAAW,8BAA8B,SAAS;CAClD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD;CACjF,WAAW,8BAA8B,SAAS;CAClD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD;CAC7F,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;AACvG,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAa,uBAAqCA,IAAAA,EAAE,OAAO,EACzD,MAAM,0BAA0B,SAAS,CAAC,CAAC,SAAS,EACtD,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-tier.cjs","names":["z","action"],"sources":["../../src/actions/fetch-tier.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchTierInput = z.object({\n tier_id: z.string().describe(\"The unique identifier of the tier to fetch (e.g., 'tier_123')\"),\n}).describe(\"Request parameters for fetching a tier by its ID.\");\nconst PlainFetchTier_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 datetime string.\").nullable(),\n unixTimestamp: z.string().describe(\"Unix timestamp representation.\").nullable(),\n}).passthrough().describe(\"DateTime object with Unix timestamp and ISO 8601 format.\");\nconst PlainFetchTier_TierSchema = z.object({\n id: z.string().describe(\"The unique identifier of the tier.\").nullable(),\n name: z.string().describe(\"The display name of the tier.\").nullable(),\n color: z.string().describe(\"Hex color code for UI representation.\").nullable(),\n createdAt: PlainFetchTier_DateTimeSchema.nullable(),\n isDefault: z.boolean().describe(\"Whether this tier applies to unmatched threads.\").nullable(),\n updatedAt: PlainFetchTier_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"Custom identifier from your system (unique per workspace).\").nullable().optional(),\n isMachineTier: z.boolean().describe(\"Whether the tier was auto-generated from tenant fields.\").nullable(),\n defaultThreadPriority: z.number().int().describe(\"Default priority for threads created in this tier.\").nullable(),\n}).passthrough().describe(\"Tier object returned by the API.\");\nexport const PlainFetchTierOutput = z.object({\n tier: PlainFetchTier_TierSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for fetching a single tier.\");\n\nexport const plainFetchTier = action(\"PLAIN_FETCH_TIER\", {\n slug: \"plain-fetch-tier\",\n name: \"Fetch Tier\",\n description: \"Tool to fetch a tier by its ID. Use when you have a tier ID and need its metadata before proceeding. Example: \\\"Fetch tier with ID tier_123\\\".\",\n input: PlainFetchTierInput,\n output: PlainFetchTierOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC9F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACnE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,MAAM,4BAA4BA,IAAAA,EAAE,OAAO;CACzC,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,WAAW,8BAA8B,SAAS;CAClD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,WAAW,8BAA8B,SAAS;CAClD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACxG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,EAC3C,MAAM,0BAA0B,SAAS,CAAC,CAAC,SAAS,EACtD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-tier.d.ts
4
- declare const PlainFetchTierInput: z.ZodTypeAny;
5
- declare const PlainFetchTierOutput: z.ZodTypeAny;
6
- declare const plainFetchTier: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainFetchTierInput: z.ZodObject<{
5
+ tier_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PlainFetchTierOutput: z.ZodObject<{
8
+ tier: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ name: z.ZodNullable<z.ZodString>;
11
+ color: z.ZodNullable<z.ZodString>;
12
+ createdAt: z.ZodNullable<z.ZodObject<{
13
+ iso8601: z.ZodNullable<z.ZodString>;
14
+ unixTimestamp: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$loose>>;
16
+ isDefault: z.ZodNullable<z.ZodBoolean>;
17
+ updatedAt: z.ZodNullable<z.ZodObject<{
18
+ iso8601: z.ZodNullable<z.ZodString>;
19
+ unixTimestamp: z.ZodNullable<z.ZodString>;
20
+ }, z.core.$loose>>;
21
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ isMachineTier: z.ZodNullable<z.ZodBoolean>;
23
+ defaultThreadPriority: z.ZodNullable<z.ZodNumber>;
24
+ }, z.core.$loose>>>;
25
+ }, z.core.$loose>;
26
+ declare const plainFetchTier: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ tier_id: string;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { plainFetchTier };
9
31
  //# sourceMappingURL=fetch-tier.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-tier.d.cts","names":[],"sources":["../../src/actions/fetch-tier.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAE4B;AAAA,cAgBnD,oBAAA,EAAsB,CAAA,CAAE,UAEqB;AAAA,cAE7C,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-tier.d.cts","names":[],"sources":["../../src/actions/fetch-tier.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAkBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIpB,cAAA,gCAAc,wBAAA"}