@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 +1 @@
1
- {"version":3,"file":"run-graphql-query.d.cts","names":[],"sources":["../../src/actions/run-graphql-query.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGxC;AAAA,cAcW,0BAAA,EAA4B,CAAA,CAAE,UAIsD;AAAA,cAEpF,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"run-graphql-query.d.cts","names":[],"sources":["../../src/actions/run-graphql-query.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAiBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA;;cAM/B,MAAA;AAAA"}
@@ -1,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/run-graphql-query.d.ts
4
- declare const PlainRunGraphqlQueryInput: z.ZodTypeAny;
5
- declare const PlainRunGraphqlQueryOutput: z.ZodTypeAny;
6
- declare const plainRunGraphqlQuery: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainRunGraphqlQueryInput: z.ZodObject<{
5
+ query: z.ZodString;
6
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7
+ }, z.core.$strip>;
8
+ declare const PlainRunGraphqlQueryOutput: z.ZodObject<{
9
+ data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
10
+ errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
11
+ path: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
12
+ message: z.ZodNullable<z.ZodString>;
13
+ locations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
14
+ line: z.ZodNullable<z.ZodNumber>;
15
+ column: z.ZodNullable<z.ZodNumber>;
16
+ }, z.core.$loose>>>>;
17
+ extensions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18
+ code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ }, z.core.$loose>>>;
20
+ }, z.core.$loose>>>>;
21
+ extensions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
22
+ }, z.core.$loose>;
23
+ declare const plainRunGraphqlQuery: import("@keystrokehq/action").WorkflowActionDefinition<{
24
+ query: string;
25
+ variables?: Record<string, unknown> | undefined;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
27
  //#endregion
8
28
  export { plainRunGraphqlQuery };
9
29
  //# sourceMappingURL=run-graphql-query.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"run-graphql-query.d.mts","names":[],"sources":["../../src/actions/run-graphql-query.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGxC;AAAA,cAcW,0BAAA,EAA4B,CAAA,CAAE,UAIsD;AAAA,cAEpF,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"run-graphql-query.d.mts","names":[],"sources":["../../src/actions/run-graphql-query.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAiBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA;;cAM/B,MAAA;AAAA"}
@@ -6,16 +6,16 @@ const PlainRunGraphqlQueryInput = z.object({
6
6
  variables: z.record(z.string(), z.unknown()).describe("Variables for the GraphQL operation. Keys must match variable names in the query (without '$'). Use empty dict {} if no variables needed. Date range filter values must be UTC-normalized; non-UTC timestamps in createdAt or updatedAt filters silently exclude boundary records.").optional()
7
7
  });
8
8
  const PlainRunGraphqlQuery_GraphqlErrorLocationSchema = z.object({
9
- line: z.number().int().describe("The line number where the error occurred."),
10
- column: z.number().int().describe("The column number where the error occurred.")
11
- }).describe("Indicates where in the GraphQL document the error occurred.");
12
- const PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema = z.object({ code: z.string().describe("Machine-readable error code (e.g., input_validation, forbidden, internal, not_found, customer_already_exists_with_email, attachment_file_size_too_large, insufficient_permissions, etc.). Plain documents 77+ specific error codes.").nullable().optional() }).describe("Additional arbitrary information about the error.");
9
+ line: z.number().int().describe("The line number where the error occurred.").nullable(),
10
+ column: z.number().int().describe("The column number where the error occurred.").nullable()
11
+ }).passthrough().describe("Indicates where in the GraphQL document the error occurred.");
12
+ const PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema = z.object({ code: z.string().describe("Machine-readable error code (e.g., input_validation, forbidden, internal, not_found, customer_already_exists_with_email, attachment_file_size_too_large, insufficient_permissions, etc.). Plain documents 77+ specific error codes.").nullable().optional() }).passthrough().describe("Additional arbitrary information about the error.");
13
13
  const PlainRunGraphqlQuery_GraphqlErrorSchema = z.object({
14
14
  path: z.array(z.string()).describe("The path of the response field which experienced the error. This allows clients to identify which part of the requested data caused the error.").nullable().optional(),
15
- message: z.string().describe("A human-readable description of the error that occurred."),
15
+ message: z.string().describe("A human-readable description of the error that occurred.").nullable(),
16
16
  locations: z.array(PlainRunGraphqlQuery_GraphqlErrorLocationSchema).describe("Indicates where in the GraphQL document the error occurred.").nullable().optional(),
17
17
  extensions: PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema.nullable().optional()
18
- }).describe("Information about an error that occurred during validation or execution.");
18
+ }).passthrough().describe("Information about an error that occurred during validation or execution.");
19
19
  const plainRunGraphqlQuery = action("PLAIN_RUN_GRAPHQL_QUERY", {
20
20
  slug: "plain-run-graphql-query",
21
21
  name: "Run GraphQL Query",
@@ -25,7 +25,7 @@ const plainRunGraphqlQuery = action("PLAIN_RUN_GRAPHQL_QUERY", {
25
25
  data: z.record(z.string(), z.unknown()).describe("Contains the result of the executed GraphQL operation. The structure mirrors the shape of the query. May contain partial data if errors occurred during field resolver execution. This field is not present if errors occurred before execution could start.").nullable().optional(),
26
26
  errors: z.array(PlainRunGraphqlQuery_GraphqlErrorSchema).describe("Contains information about any errors that occurred during validation or execution. This field is not present if no errors occurred. Each error contains message, locations, path, and extensions fields.").nullable().optional(),
27
27
  extensions: z.record(z.string(), z.unknown()).describe("Optional field for additional metadata about the response. Content is at the discretion of the GraphQL implementation.").nullable().optional()
28
- }).describe("Standard GraphQL response format containing data, errors, and optional extensions.")
28
+ }).passthrough().describe("Standard GraphQL response format containing data, errors, and optional extensions.")
29
29
  });
30
30
  //#endregion
31
31
  export { plainRunGraphqlQuery };
@@ -1 +1 @@
1
- {"version":3,"file":"run-graphql-query.mjs","names":[],"sources":["../../src/actions/run-graphql-query.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainRunGraphqlQueryInput: z.ZodTypeAny = z.object({\n query: z.string().describe(\"A valid GraphQL query or mutation string for Plain API. Use this for any operation not covered by specific actions. Supports queries, mutations, inline fragments, and variables. DateTime fields (e.g., createdAt, updatedAt) are objects requiring subfield selection: use createdAt { iso8601 } — omitting subfields causes GRAPHQL_VALIDATION_FAILED. For paginated connections, request pageInfo { hasNextPage endCursor } and pass endCursor as the cursor argument in subsequent queries.\"),\n variables: z.record(z.string(), z.unknown()).describe(\"Variables for the GraphQL operation. Keys must match variable names in the query (without '$'). Use empty dict {} if no variables needed. Date range filter values must be UTC-normalized; non-UTC timestamps in createdAt or updatedAt filters silently exclude boundary records.\").optional(),\n});\nconst PlainRunGraphqlQuery_GraphqlErrorLocationSchema: z.ZodTypeAny = z.object({\n line: z.number().int().describe(\"The line number where the error occurred.\"),\n column: z.number().int().describe(\"The column number where the error occurred.\"),\n}).describe(\"Indicates where in the GraphQL document the error occurred.\");\nconst PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Machine-readable error code (e.g., input_validation, forbidden, internal, not_found, customer_already_exists_with_email, attachment_file_size_too_large, insufficient_permissions, etc.). Plain documents 77+ specific error codes.\").nullable().optional(),\n}).describe(\"Additional arbitrary information about the error.\");\nconst PlainRunGraphqlQuery_GraphqlErrorSchema: z.ZodTypeAny = z.object({\n path: z.array(z.string()).describe(\"The path of the response field which experienced the error. This allows clients to identify which part of the requested data caused the error.\").nullable().optional(),\n message: z.string().describe(\"A human-readable description of the error that occurred.\"),\n locations: z.array(PlainRunGraphqlQuery_GraphqlErrorLocationSchema).describe(\"Indicates where in the GraphQL document the error occurred.\").nullable().optional(),\n extensions: PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema.nullable().optional(),\n}).describe(\"Information about an error that occurred during validation or execution.\");\nexport const PlainRunGraphqlQueryOutput: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Contains the result of the executed GraphQL operation. The structure mirrors the shape of the query. May contain partial data if errors occurred during field resolver execution. This field is not present if errors occurred before execution could start.\").nullable().optional(),\n errors: z.array(PlainRunGraphqlQuery_GraphqlErrorSchema).describe(\"Contains information about any errors that occurred during validation or execution. This field is not present if no errors occurred. Each error contains message, locations, path, and extensions fields.\").nullable().optional(),\n extensions: z.record(z.string(), z.unknown()).describe(\"Optional field for additional metadata about the response. Content is at the discretion of the GraphQL implementation.\").nullable().optional(),\n}).describe(\"Standard GraphQL response format containing data, errors, and optional extensions.\");\n\nexport const plainRunGraphqlQuery = action(\"PLAIN_RUN_GRAPHQL_QUERY\", {\n slug: \"plain-run-graphql-query\",\n name: \"Run GraphQL Query\",\n description: \"Execute any GraphQL query or mutation against Plain API. Use when no specific action exists or for complex operations like thread timelines, advanced filtering, and custom data retrieval. Supports queries, mutations, fragments, and variables.\",\n input: PlainRunGraphqlQueryInput,\n output: PlainRunGraphqlQueryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,keAAke;CAC7f,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oRAAoR,CAAC,CAAC,SAAS;AACvV,CAAC;AACD,MAAM,kDAAgE,EAAE,OAAO;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC3E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;AACjF,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,oDAAkE,EAAE,OAAO,EAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qOAAqO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACvR,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,0CAAwD,EAAE,OAAO;CACrE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACvF,WAAW,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChK,YAAY,kDAAkD,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAOtF,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsD,EAAE,OAAO;EAC/D,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8PAA8P,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrU,QAAQ,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,2MAA2M,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnS,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvM,CAAC,CAAC,CAAC,SAAS,oFAOF;AACV,CAAC"}
1
+ {"version":3,"file":"run-graphql-query.mjs","names":[],"sources":["../../src/actions/run-graphql-query.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainRunGraphqlQueryInput = z.object({\n query: z.string().describe(\"A valid GraphQL query or mutation string for Plain API. Use this for any operation not covered by specific actions. Supports queries, mutations, inline fragments, and variables. DateTime fields (e.g., createdAt, updatedAt) are objects requiring subfield selection: use createdAt { iso8601 } — omitting subfields causes GRAPHQL_VALIDATION_FAILED. For paginated connections, request pageInfo { hasNextPage endCursor } and pass endCursor as the cursor argument in subsequent queries.\"),\n variables: z.record(z.string(), z.unknown()).describe(\"Variables for the GraphQL operation. Keys must match variable names in the query (without '$'). Use empty dict {} if no variables needed. Date range filter values must be UTC-normalized; non-UTC timestamps in createdAt or updatedAt filters silently exclude boundary records.\").optional(),\n});\nconst PlainRunGraphqlQuery_GraphqlErrorLocationSchema = z.object({\n line: z.number().int().describe(\"The line number where the error occurred.\").nullable(),\n column: z.number().int().describe(\"The column number where the error occurred.\").nullable(),\n}).passthrough().describe(\"Indicates where in the GraphQL document the error occurred.\");\nconst PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema = z.object({\n code: z.string().describe(\"Machine-readable error code (e.g., input_validation, forbidden, internal, not_found, customer_already_exists_with_email, attachment_file_size_too_large, insufficient_permissions, etc.). Plain documents 77+ specific error codes.\").nullable().optional(),\n}).passthrough().describe(\"Additional arbitrary information about the error.\");\nconst PlainRunGraphqlQuery_GraphqlErrorSchema = z.object({\n path: z.array(z.string()).describe(\"The path of the response field which experienced the error. This allows clients to identify which part of the requested data caused the error.\").nullable().optional(),\n message: z.string().describe(\"A human-readable description of the error that occurred.\").nullable(),\n locations: z.array(PlainRunGraphqlQuery_GraphqlErrorLocationSchema).describe(\"Indicates where in the GraphQL document the error occurred.\").nullable().optional(),\n extensions: PlainRunGraphqlQuery_GraphqlErrorExtensionsSchema.nullable().optional(),\n}).passthrough().describe(\"Information about an error that occurred during validation or execution.\");\nexport const PlainRunGraphqlQueryOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Contains the result of the executed GraphQL operation. The structure mirrors the shape of the query. May contain partial data if errors occurred during field resolver execution. This field is not present if errors occurred before execution could start.\").nullable().optional(),\n errors: z.array(PlainRunGraphqlQuery_GraphqlErrorSchema).describe(\"Contains information about any errors that occurred during validation or execution. This field is not present if no errors occurred. Each error contains message, locations, path, and extensions fields.\").nullable().optional(),\n extensions: z.record(z.string(), z.unknown()).describe(\"Optional field for additional metadata about the response. Content is at the discretion of the GraphQL implementation.\").nullable().optional(),\n}).passthrough().describe(\"Standard GraphQL response format containing data, errors, and optional extensions.\");\n\nexport const plainRunGraphqlQuery = action(\"PLAIN_RUN_GRAPHQL_QUERY\", {\n slug: \"plain-run-graphql-query\",\n name: \"Run GraphQL Query\",\n description: \"Execute any GraphQL query or mutation against Plain API. Use when no specific action exists or for complex operations like thread timelines, advanced filtering, and custom data retrieval. Supports queries, mutations, fragments, and variables.\",\n input: PlainRunGraphqlQueryInput,\n output: PlainRunGraphqlQueryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,keAAke;CAC7f,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oRAAoR,CAAC,CAAC,SAAS;AACvV,CAAC;AACD,M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AAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oFAOhB;AACV,CAAC"}
@@ -14,16 +14,16 @@ const PlainSendMessageInput = zod.z.object({
14
14
  hiddenRecipients: zod.z.array(zod.z.object({
15
15
  name: zod.z.string().describe("Name of the recipient").optional(),
16
16
  email: zod.z.string().describe("Email address of the recipient")
17
- })).describe("List of BCC recipients").optional(),
17
+ }).passthrough()).describe("List of BCC recipients").optional(),
18
18
  additionalRecipients: zod.z.array(zod.z.object({
19
19
  name: zod.z.string().describe("Name of the recipient").optional(),
20
20
  email: zod.z.string().describe("Email address of the recipient")
21
- })).describe("List of CC recipients").optional()
21
+ }).passthrough()).describe("List of CC recipients").optional()
22
22
  }).describe("Email-specific options like CC/BCC").optional() }).describe("Channel-specific options such as email CC/BCC recipients").optional()
23
23
  });
24
- const PlainSendMessage_ReplyToThreadOutputSchema = zod.z.object({ __typename: zod.z.string().describe("GraphQL type name, typically 'ReplyToThreadOutput'") });
25
- const PlainSendMessage_SendMessagePayloadSchema = zod.z.object({ replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable() });
26
- const PlainSendMessageOutput = zod.z.object({ data: PlainSendMessage_SendMessagePayloadSchema.nullable() });
24
+ const PlainSendMessage_ReplyToThreadOutputSchema = zod.z.object({ __typename: zod.z.string().describe("GraphQL type name, typically 'ReplyToThreadOutput'").nullable() }).passthrough();
25
+ const PlainSendMessage_SendMessagePayloadSchema = zod.z.object({ replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable() }).passthrough();
26
+ const PlainSendMessageOutput = zod.z.object({ data: PlainSendMessage_SendMessagePayloadSchema.nullable() }).passthrough();
27
27
  const plainSendMessage = require_action.action("PLAIN_SEND_MESSAGE", {
28
28
  slug: "plain-send-message",
29
29
  name: "Send Message",
@@ -1 +1 @@
1
- {"version":3,"file":"send-message.cjs","names":["z","action"],"sources":["../../src/actions/send-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainSendMessageInput: z.ZodTypeAny = z.object({\n threadId: z.string().describe(\"Unique identifier of the thread to reply to\"),\n textContent: z.string().describe(\"Plain text content of the message. If you want to send markdown-formatted content, provide the same content here and in markdownContent.\"),\n impersonation: z.object({\n asCustomer: z.object({\n customerIdentifier: z.object({\n customerId: z.string().describe(\"Plain customer ID to identify the customer\").optional(),\n externalId: z.string().describe(\"External ID for the customer\").optional(),\n emailAddress: z.string().describe(\"Email address of the customer\").optional(),\n}).describe(\"Identifier of the customer to impersonate\"),\n}).describe(\"Send the message as this customer\"),\n}).describe(\"Impersonate a customer when sending the message\").optional(),\n markdownContent: z.string().describe(\"Optional markdown-formatted content of the message. If provided, textContent should contain the plain text version of the same content.\").optional(),\n channelSpecificOptions: z.object({\n email: z.object({\n hiddenRecipients: z.array(z.object({\n name: z.string().describe(\"Name of the recipient\").optional(),\n email: z.string().describe(\"Email address of the recipient\"),\n})).describe(\"List of BCC recipients\").optional(),\n additionalRecipients: z.array(z.object({\n name: z.string().describe(\"Name of the recipient\").optional(),\n email: z.string().describe(\"Email address of the recipient\"),\n})).describe(\"List of CC recipients\").optional(),\n}).describe(\"Email-specific options like CC/BCC\").optional(),\n}).describe(\"Channel-specific options such as email CC/BCC recipients\").optional(),\n});\nconst PlainSendMessage_ReplyToThreadOutputSchema: z.ZodTypeAny = z.object({\n __typename: z.string().describe(\"GraphQL type name, typically 'ReplyToThreadOutput'\"),\n});\nconst PlainSendMessage_SendMessagePayloadSchema: z.ZodTypeAny = z.object({\n replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable(),\n});\nexport const PlainSendMessageOutput: z.ZodTypeAny = z.object({\n data: PlainSendMessage_SendMessagePayloadSchema.nullable(),\n});\n\nexport const plainSendMessage = action(\"PLAIN_SEND_MESSAGE\", {\n slug: \"plain-send-message\",\n name: \"Send Message\",\n description: \"Tool to send a new message within a thread. Use after identifying the thread and prepar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C5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC7D,CAAC,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC/C,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,EAC3D,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACjF,CAAC;AACD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO,EACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EACtF,CAAC;AACD,MAAM,4CAA0DA,IAAAA,EAAE,OAAO,EACvE,eAAe,2CAA2C,SAAS,EACrE,CAAC;AACD,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,MAAM,0CAA0C,SAAS,EAC3D,CAAC;AAED,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"send-message.cjs","names":["z","action"],"sources":["../../src/actions/send-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainSendMessageInput = z.object({\n threadId: z.string().describe(\"Unique identifier of the thread to reply to\"),\n textContent: z.string().describe(\"Plain text content of the message. If you want to send markdown-formatted content, provide the same content here and in markdownContent.\"),\n impersonation: z.object({\n asCustomer: z.object({\n customerIdentifier: z.object({\n customerId: z.string().describe(\"Plain customer ID to identify the customer\").optional(),\n externalId: z.string().describe(\"External ID for the customer\").optional(),\n emailAddress: z.string().describe(\"Email address of the customer\").optional(),\n}).describe(\"Identifier of the customer to impersonate\"),\n}).describe(\"Send the message as this customer\"),\n}).describe(\"Impersonate a customer when sending the message\").optional(),\n markdownContent: z.string().describe(\"Optional markdown-formatted content of the message. If provided, textContent should contain the plain text version of the same content.\").optional(),\n channelSpecificOptions: z.object({\n email: z.object({\n hiddenRecipients: z.array(z.object({\n name: z.string().describe(\"Name of the recipient\").optional(),\n email: z.string().describe(\"Email address of the recipient\"),\n}).passthrough()).describe(\"List of BCC recipients\").optional(),\n additionalRecipients: z.array(z.object({\n name: z.string().describe(\"Name of the recipient\").optional(),\n email: z.string().describe(\"Email address of the recipient\"),\n}).passthrough()).describe(\"List of CC recipients\").optional(),\n}).describe(\"Email-specific options like CC/BCC\").optional(),\n}).describe(\"Channel-specific options such as email CC/BCC recipients\").optional(),\n});\nconst PlainSendMessage_ReplyToThreadOutputSchema = z.object({\n __typename: z.string().describe(\"GraphQL type name, typically 'ReplyToThreadOutput'\").nullable(),\n}).passthrough();\nconst PlainSendMessage_SendMessagePayloadSchema = z.object({\n replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable(),\n}).passthrough();\nexport const PlainSendMessageOutput = z.object({\n data: PlainSendMessage_SendMessagePayloadSchema.nullable(),\n}).passthrough();\n\nexport const plainSendMessage = action(\"PLAIN_SEND_MESSAGE\", {\n slug: \"plain-send-message\",\n name: \"Send Message\",\n description: \"Tool to send a new message within a thread. Use after identifying the thread and preparing message content.\",\n input: PlainSendMessageInput,\n output: PlainSendMessageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I;CAC3K,eAAeA,IAAAA,EAAE,OAAO,EACxB,YAAYA,IAAAA,EAAE,OAAO,EACrB,oBAAoBA,IAAAA,EAAE,OAAO;EAC7B,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CA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AE,OAAO,EAC7C,MAAM,0CAA0C,SAAS,EAC3D,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,67 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/send-message.d.ts
4
- declare const PlainSendMessageInput: z.ZodTypeAny;
5
- declare const PlainSendMessageOutput: z.ZodTypeAny;
6
- declare const plainSendMessage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainSendMessageInput: z.ZodObject<{
5
+ threadId: z.ZodString;
6
+ textContent: z.ZodString;
7
+ impersonation: z.ZodOptional<z.ZodObject<{
8
+ asCustomer: z.ZodObject<{
9
+ customerIdentifier: z.ZodObject<{
10
+ customerId: z.ZodOptional<z.ZodString>;
11
+ externalId: z.ZodOptional<z.ZodString>;
12
+ emailAddress: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ }, z.core.$strip>;
15
+ }, z.core.$strip>>;
16
+ markdownContent: z.ZodOptional<z.ZodString>;
17
+ channelSpecificOptions: z.ZodOptional<z.ZodObject<{
18
+ email: z.ZodOptional<z.ZodObject<{
19
+ hiddenRecipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
20
+ name: z.ZodOptional<z.ZodString>;
21
+ email: z.ZodString;
22
+ }, z.core.$loose>>>;
23
+ additionalRecipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
24
+ name: z.ZodOptional<z.ZodString>;
25
+ email: z.ZodString;
26
+ }, z.core.$loose>>>;
27
+ }, z.core.$strip>>;
28
+ }, z.core.$strip>>;
29
+ }, z.core.$strip>;
30
+ declare const PlainSendMessageOutput: z.ZodObject<{
31
+ data: z.ZodNullable<z.ZodObject<{
32
+ replyToThread: z.ZodNullable<z.ZodObject<{
33
+ __typename: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>>;
36
+ }, z.core.$loose>;
37
+ declare const plainSendMessage: import("@keystrokehq/action").WorkflowActionDefinition<{
38
+ threadId: string;
39
+ textContent: string;
40
+ impersonation?: {
41
+ asCustomer: {
42
+ customerIdentifier: {
43
+ customerId?: string | undefined;
44
+ externalId?: string | undefined;
45
+ emailAddress?: string | undefined;
46
+ };
47
+ };
48
+ } | undefined;
49
+ markdownContent?: string | undefined;
50
+ channelSpecificOptions?: {
51
+ email?: {
52
+ hiddenRecipients?: {
53
+ [x: string]: unknown;
54
+ email: string;
55
+ name?: string | undefined;
56
+ }[] | undefined;
57
+ additionalRecipients?: {
58
+ [x: string]: unknown;
59
+ email: string;
60
+ name?: string | undefined;
61
+ }[] | undefined;
62
+ } | undefined;
63
+ } | undefined;
64
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
65
  //#endregion
8
66
  export { plainSendMessage };
9
67
  //# sourceMappingURL=send-message.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-message.d.cts","names":[],"sources":["../../src/actions/send-message.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAyBpC;AAAA,cAOW,sBAAA,EAAwB,CAAA,CAAE,UAErC;AAAA,cAEW,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"send-message.d.cts","names":[],"sources":["../../src/actions/send-message.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA"}
@@ -1,9 +1,67 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/send-message.d.ts
4
- declare const PlainSendMessageInput: z.ZodTypeAny;
5
- declare const PlainSendMessageOutput: z.ZodTypeAny;
6
- declare const plainSendMessage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainSendMessageInput: z.ZodObject<{
5
+ threadId: z.ZodString;
6
+ textContent: z.ZodString;
7
+ impersonation: z.ZodOptional<z.ZodObject<{
8
+ asCustomer: z.ZodObject<{
9
+ customerIdentifier: z.ZodObject<{
10
+ customerId: z.ZodOptional<z.ZodString>;
11
+ externalId: z.ZodOptional<z.ZodString>;
12
+ emailAddress: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ }, z.core.$strip>;
15
+ }, z.core.$strip>>;
16
+ markdownContent: z.ZodOptional<z.ZodString>;
17
+ channelSpecificOptions: z.ZodOptional<z.ZodObject<{
18
+ email: z.ZodOptional<z.ZodObject<{
19
+ hiddenRecipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
20
+ name: z.ZodOptional<z.ZodString>;
21
+ email: z.ZodString;
22
+ }, z.core.$loose>>>;
23
+ additionalRecipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
24
+ name: z.ZodOptional<z.ZodString>;
25
+ email: z.ZodString;
26
+ }, z.core.$loose>>>;
27
+ }, z.core.$strip>>;
28
+ }, z.core.$strip>>;
29
+ }, z.core.$strip>;
30
+ declare const PlainSendMessageOutput: z.ZodObject<{
31
+ data: z.ZodNullable<z.ZodObject<{
32
+ replyToThread: z.ZodNullable<z.ZodObject<{
33
+ __typename: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>>;
36
+ }, z.core.$loose>;
37
+ declare const plainSendMessage: import("@keystrokehq/action").WorkflowActionDefinition<{
38
+ threadId: string;
39
+ textContent: string;
40
+ impersonation?: {
41
+ asCustomer: {
42
+ customerIdentifier: {
43
+ customerId?: string | undefined;
44
+ externalId?: string | undefined;
45
+ emailAddress?: string | undefined;
46
+ };
47
+ };
48
+ } | undefined;
49
+ markdownContent?: string | undefined;
50
+ channelSpecificOptions?: {
51
+ email?: {
52
+ hiddenRecipients?: {
53
+ [x: string]: unknown;
54
+ email: string;
55
+ name?: string | undefined;
56
+ }[] | undefined;
57
+ additionalRecipients?: {
58
+ [x: string]: unknown;
59
+ email: string;
60
+ name?: string | undefined;
61
+ }[] | undefined;
62
+ } | undefined;
63
+ } | undefined;
64
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
65
  //#endregion
8
66
  export { plainSendMessage };
9
67
  //# sourceMappingURL=send-message.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-message.d.mts","names":[],"sources":["../../src/actions/send-message.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAyBpC;AAAA,cAOW,sBAAA,EAAwB,CAAA,CAAE,UAErC;AAAA,cAEW,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"send-message.d.mts","names":[],"sources":["../../src/actions/send-message.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA"}
@@ -14,21 +14,21 @@ const PlainSendMessageInput = z.object({
14
14
  hiddenRecipients: z.array(z.object({
15
15
  name: z.string().describe("Name of the recipient").optional(),
16
16
  email: z.string().describe("Email address of the recipient")
17
- })).describe("List of BCC recipients").optional(),
17
+ }).passthrough()).describe("List of BCC recipients").optional(),
18
18
  additionalRecipients: z.array(z.object({
19
19
  name: z.string().describe("Name of the recipient").optional(),
20
20
  email: z.string().describe("Email address of the recipient")
21
- })).describe("List of CC recipients").optional()
21
+ }).passthrough()).describe("List of CC recipients").optional()
22
22
  }).describe("Email-specific options like CC/BCC").optional() }).describe("Channel-specific options such as email CC/BCC recipients").optional()
23
23
  });
24
- const PlainSendMessage_ReplyToThreadOutputSchema = z.object({ __typename: z.string().describe("GraphQL type name, typically 'ReplyToThreadOutput'") });
25
- const PlainSendMessage_SendMessagePayloadSchema = z.object({ replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable() });
24
+ const PlainSendMessage_ReplyToThreadOutputSchema = z.object({ __typename: z.string().describe("GraphQL type name, typically 'ReplyToThreadOutput'").nullable() }).passthrough();
25
+ const PlainSendMessage_SendMessagePayloadSchema = z.object({ replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable() }).passthrough();
26
26
  const plainSendMessage = action("PLAIN_SEND_MESSAGE", {
27
27
  slug: "plain-send-message",
28
28
  name: "Send Message",
29
29
  description: "Tool to send a new message within a thread. Use after identifying the thread and preparing message content.",
30
30
  input: PlainSendMessageInput,
31
- output: z.object({ data: PlainSendMessage_SendMessagePayloadSchema.nullable() })
31
+ output: z.object({ data: PlainSendMessage_SendMessagePayloadSchema.nullable() }).passthrough()
32
32
  });
33
33
  //#endregion
34
34
  export { plainSendMessage };
@@ -1 +1 @@
1
- {"version":3,"file":"send-message.mjs","names":[],"sources":["../../src/actions/send-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainSendMessageInput: z.ZodTypeAny = z.object({\n threadId: z.string().describe(\"Unique identifier of the thread to reply to\"),\n textContent: z.string().describe(\"Plain text content of the message. If you want to send markdown-formatted content, provide the same content here and in markdownContent.\"),\n impersonation: z.object({\n asCustomer: z.object({\n customerIdentifier: z.object({\n customerId: z.string().describe(\"Plain customer ID to identify the customer\").optional(),\n externalId: z.string().describe(\"External ID for the customer\").optional(),\n emailAddress: z.string().describe(\"Email address of the customer\").optional(),\n}).describe(\"Identifier of the customer to impersonate\"),\n}).describe(\"Send the message as this customer\"),\n}).describe(\"Impersonate a customer when sending the message\").optional(),\n markdownContent: z.string().describe(\"Optional markdown-formatted content of the message. If provided, textContent should contain the plain text version of the same content.\").optional(),\n channelSpecificOptions: z.object({\n email: z.object({\n hiddenRecipients: z.array(z.object({\n name: z.string().describe(\"Name of the recipient\").optional(),\n email: z.string().describe(\"Email address of the recipient\"),\n})).describe(\"List of BCC recipients\").optional(),\n additionalRecipients: z.array(z.object({\n name: z.string().describe(\"Name of the recipient\").optional(),\n email: z.string().describe(\"Email address of the recipient\"),\n})).describe(\"List of CC recipients\").optional(),\n}).describe(\"Email-specific options like CC/BCC\").optional(),\n}).describe(\"Channel-specific options such as email CC/BCC recipients\").optional(),\n});\nconst PlainSendMessage_ReplyToThreadOutputSchema: z.ZodTypeAny = z.object({\n __typename: z.string().describe(\"GraphQL type name, typically 'ReplyToThreadOutput'\"),\n});\nconst PlainSendMessage_SendMessagePayloadSchema: z.ZodTypeAny = z.object({\n replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable(),\n});\nexport const PlainSendMessageOutput: z.ZodTypeAny = z.object({\n data: PlainSendMessage_SendMessagePayloadSchema.nullable(),\n});\n\nexport const plainSendMessage = action(\"PLAIN_SEND_MESSAGE\", {\n slug: \"plain-send-message\",\n name: \"Send Message\",\n description: \"Tool to send a new message within a thread. Use after identifying the thread and preparing message content.\",\n input: PlainSendMessageInput,\n output: PlainSendMessageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO;CAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I;CAC3K,eAAe,EAAE,OAAO,EACxB,YAAY,EAAE,OAAO,EACrB,oBAAoB,EAAE,OAAO;EAC7B,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACvF,YAAY,EAAE,OAAO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C,SAAS,EAC3D,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"send-message.mjs","names":[],"sources":["../../src/actions/send-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainSendMessageInput = z.object({\n threadId: z.string().describe(\"Unique identifier of the thread to reply to\"),\n textContent: z.string().describe(\"Plain text content of the message. If you want to send markdown-formatted content, provide the same content here and in markdownContent.\"),\n impersonation: z.object({\n asCustomer: z.object({\n customerIdentifier: z.object({\n customerId: z.string().describe(\"Plain customer ID to identify the customer\").optional(),\n externalId: z.string().describe(\"External ID for the customer\").optional(),\n emailAddress: z.string().describe(\"Email address of the customer\").optional(),\n}).describe(\"Identifier of the customer to impersonate\"),\n}).describe(\"Send the message as this customer\"),\n}).describe(\"Impersonate a customer when sending the message\").optional(),\n markdownContent: z.string().describe(\"Optional markdown-formatted content of the message. If provided, textContent should contain the plain text version of the same content.\").optional(),\n channelSpecificOptions: z.object({\n email: z.object({\n hiddenRecipients: z.array(z.object({\n name: z.string().describe(\"Name of the recipient\").optional(),\n email: z.string().describe(\"Email address of the recipient\"),\n}).passthrough()).describe(\"List of BCC recipients\").optional(),\n additionalRecipients: z.array(z.object({\n name: z.string().describe(\"Name of the recipient\").optional(),\n email: z.string().describe(\"Email address of the recipient\"),\n}).passthrough()).describe(\"List of CC recipients\").optional(),\n}).describe(\"Email-specific options like CC/BCC\").optional(),\n}).describe(\"Channel-specific options such as email CC/BCC recipients\").optional(),\n});\nconst PlainSendMessage_ReplyToThreadOutputSchema = z.object({\n __typename: z.string().describe(\"GraphQL type name, typically 'ReplyToThreadOutput'\").nullable(),\n}).passthrough();\nconst PlainSendMessage_SendMessagePayloadSchema = z.object({\n replyToThread: PlainSendMessage_ReplyToThreadOutputSchema.nullable(),\n}).passthrough();\nexport const PlainSendMessageOutput = z.object({\n data: PlainSendMessage_SendMessagePayloadSchema.nullable(),\n}).passthrough();\n\nexport const plainSendMessage = action(\"PLAIN_SEND_MESSAGE\", {\n slug: \"plain-send-message\",\n name: \"Send Message\",\n description: \"Tool to send a new message within a thread. Use after identifying the thread and preparing message content.\",\n input: PlainSendMessageInput,\n output: PlainSendMessageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I;CAC3K,eAAe,EAAE,OAAO,EACxB,YAAY,EAAE,OAAO,EACrB,oBAAoB,EAAE,OAAO;EAC7B,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACzE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,SAAS,2CAA2C,EACvD,CAAC,CAAC,CAAC,SAAS,mCAAmC,EAC/C,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACtE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CACzL,wBAAwB,EAAE,OAAO,EACjC,OAAO,EAAE,OAAO;EAChB,kBAAkB,EAAE,MAAM,EAAE,OAAO;GACnC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC5D,sBAAsB,EAAE,MAAM,EAAE,OAAO;GACvC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC7D,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,EAC3D,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACjF,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO,EAC1D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,4CAA4C,EAAE,OAAO,EACzD,eAAe,2CAA2C,SAAS,EACrE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,MAAM,0CAA0C,SAAS,EAC3D,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -10,28 +10,28 @@ const PlainUpdateCompanyInput = zod.z.object({
10
10
  accountOwnerUserId: zod.z.string().describe("ID of the user to assign as account owner.").optional()
11
11
  });
12
12
  const PlainUpdateCompany_MutationFieldErrorSchema = zod.z.object({
13
- type: zod.z.string().describe("Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND)."),
14
- field: zod.z.string().describe("Name of the input field with an error."),
15
- message: zod.z.string().describe("Technical description of the field error.")
16
- });
13
+ type: zod.z.string().describe("Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND).").nullable(),
14
+ field: zod.z.string().describe("Name of the input field with an error.").nullable(),
15
+ message: zod.z.string().describe("Technical description of the field error.").nullable()
16
+ }).passthrough();
17
17
  const PlainUpdateCompany_MutationErrorSchema = zod.z.object({
18
- code: zod.z.string().describe("Fixed error code for handling specific errors."),
19
- type: zod.z.string().describe("Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL)."),
18
+ code: zod.z.string().describe("Fixed error code for handling specific errors.").nullable(),
19
+ type: zod.z.string().describe("Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL).").nullable(),
20
20
  fields: zod.z.array(PlainUpdateCompany_MutationFieldErrorSchema).describe("List of field-level errors if validation failed.").nullable().optional(),
21
- message: zod.z.string().describe("Technical description of the mutation error.")
22
- });
23
- const PlainUpdateCompany_CreatedAtSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO 8601 timestamp of creation.") });
21
+ message: zod.z.string().describe("Technical description of the mutation error.").nullable()
22
+ }).passthrough();
23
+ const PlainUpdateCompany_CreatedAtSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO 8601 timestamp of creation.").nullable() }).passthrough();
24
24
  const PlainUpdateCompany_CompanySchema = zod.z.object({
25
- id: zod.z.string().describe("Unique ID of the company."),
26
- name: zod.z.string().describe("Name of the company."),
25
+ id: zod.z.string().describe("Unique ID of the company.").nullable(),
26
+ name: zod.z.string().describe("Name of the company.").nullable(),
27
27
  createdAt: PlainUpdateCompany_CreatedAtSchema.nullable(),
28
- domainName: zod.z.string().describe("Domain name of the company.")
29
- });
28
+ domainName: zod.z.string().describe("Domain name of the company.").nullable()
29
+ }).passthrough();
30
30
  const PlainUpdateCompanyOutput = zod.z.object({
31
31
  error: PlainUpdateCompany_MutationErrorSchema.nullable().optional(),
32
- result: zod.z.string().describe("Upsert result: 'CREATED' or 'UPDATED'."),
32
+ result: zod.z.string().describe("Upsert result: 'CREATED' or 'UPDATED'.").nullable(),
33
33
  company: PlainUpdateCompany_CompanySchema.nullable()
34
- });
34
+ }).passthrough();
35
35
  const plainUpdateCompany = require_action.action("PLAIN_UPDATE_COMPANY", {
36
36
  slug: "plain-update-company",
37
37
  name: "Update Company",
@@ -1 +1 @@
1
- {"version":3,"file":"update-company.cjs","names":["z","action"],"sources":["../../src/actions/update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpdateCompanyInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name for the company.\"),\n companyId: z.string().describe(\"Existing company ID to update (format: 'co_...'). Provide either companyId OR companyDomainName.\").optional(),\n domainName: z.string().describe(\"Domain name for the company (e.g., 'acme.com').\"),\n contractValue: z.number().int().describe(\"Optional contract value in cents. Must be non-negative.\").optional(),\n companyDomainName: z.string().describe(\"Company domain name for lookup/upsert (e.g., 'acme.com'). Provide either companyId OR companyDomainName.\").optional(),\n accountOwnerUserId: z.string().describe(\"ID of the user to assign as account owner.\").optional(),\n});\nconst PlainUpdateCompany_MutationFieldErrorSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND).\"),\n field: z.string().describe(\"Name of the input field with an error.\"),\n message: z.string().describe(\"Technical description of the field error.\"),\n});\nconst PlainUpdateCompany_MutationErrorSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Fixed error code for handling specific errors.\"),\n type: z.string().describe(\"Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL).\"),\n fields: z.array(PlainUpdateCompany_MutationFieldErrorSchema).describe(\"List of field-level errors if validation failed.\").nullable().optional(),\n message: z.string().describe(\"Technical description of the mutation error.\"),\n});\nconst PlainUpdateCompany_CreatedAtSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\"),\n});\nconst PlainUpdateCompany_CompanySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique ID of the company.\"),\n name: z.string().describe(\"Name of the company.\"),\n createdAt: PlainUpdateCompany_CreatedAtSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company.\"),\n});\nexport const PlainUpdateCompanyOutput: z.ZodTypeAny = z.object({\n error: PlainUpdateCompany_MutationErrorSchema.nullable().optional(),\n result: z.string().describe(\"Upsert result: 'CREATED' or 'UPDATED'.\"),\n company: PlainUpdateCompany_CompanySchema.nullable(),\n});\n\nexport const plainUpdateCompany = action(\"PLAIN_UPDATE_COMPANY\", {\n slug: \"plain-update-company\",\n name: \"Update Company\",\n description: \"Upserts (creates or updates) a company in Plain. Provide either companyId (for updating an existing company by ID) or companyDomainName (for upserting by domain). Use this to create new companies, update existing company details (name, domain, contract value), or assign account owners.\",\n input: PlainUpdateCompanyInput,\n output: PlainUpdateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC5I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACjF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC7G,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAC5J,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACjG,CAAC;AACD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;CAChG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AAC1E,CAAC;AACD,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC1F,QAAQA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AAC7E,CAAC;AACD,MAAM,qCAAmDA,IAAAA,EAAE,OAAO,EAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,EAChE,CAAC;AACD,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAChD,WAAW,mCAAmC,SAAS;CACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC/D,CAAC;AACD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,OAAO,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACpE,SAAS,iCAAiC,SAAS;AACrD,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-company.cjs","names":["z","action"],"sources":["../../src/actions/update-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainUpdateCompanyInput = z.object({\n name: z.string().describe(\"Name for the company.\"),\n companyId: z.string().describe(\"Existing company ID to update (format: 'co_...'). Provide either companyId OR companyDomainName.\").optional(),\n domainName: z.string().describe(\"Domain name for the company (e.g., 'acme.com').\"),\n contractValue: z.number().int().describe(\"Optional contract value in cents. Must be non-negative.\").optional(),\n companyDomainName: z.string().describe(\"Company domain name for lookup/upsert (e.g., 'acme.com'). Provide either companyId OR companyDomainName.\").optional(),\n accountOwnerUserId: z.string().describe(\"ID of the user to assign as account owner.\").optional(),\n});\nconst PlainUpdateCompany_MutationFieldErrorSchema = z.object({\n type: z.string().describe(\"Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND).\").nullable(),\n field: z.string().describe(\"Name of the input field with an error.\").nullable(),\n message: z.string().describe(\"Technical description of the field error.\").nullable(),\n}).passthrough();\nconst PlainUpdateCompany_MutationErrorSchema = z.object({\n code: z.string().describe(\"Fixed error code for handling specific errors.\").nullable(),\n type: z.string().describe(\"Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL).\").nullable(),\n fields: z.array(PlainUpdateCompany_MutationFieldErrorSchema).describe(\"List of field-level errors if validation failed.\").nullable().optional(),\n message: z.string().describe(\"Technical description of the mutation error.\").nullable(),\n}).passthrough();\nconst PlainUpdateCompany_CreatedAtSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n}).passthrough();\nconst PlainUpdateCompany_CompanySchema = z.object({\n id: z.string().describe(\"Unique ID of the company.\").nullable(),\n name: z.string().describe(\"Name of the company.\").nullable(),\n createdAt: PlainUpdateCompany_CreatedAtSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company.\").nullable(),\n}).passthrough();\nexport const PlainUpdateCompanyOutput = z.object({\n error: PlainUpdateCompany_MutationErrorSchema.nullable().optional(),\n result: z.string().describe(\"Upsert result: 'CREATED' or 'UPDATED'.\").nullable(),\n company: PlainUpdateCompany_CompanySchema.nullable(),\n}).passthrough();\n\nexport const plainUpdateCompany = action(\"PLAIN_UPDATE_COMPANY\", {\n slug: \"plain-update-company\",\n name: \"Update Company\",\n description: \"Upserts (creates or updates) a company in Plain. Provide either companyId (for updating an existing company by ID) or companyDomainName (for upserting by domain). Use this to create new companies, update existing company details (name, domain, contract value), or assign account owners.\",\n input: PlainUpdateCompanyInput,\n output: PlainUpdateCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC5I,YAAYA,IAAAA,EAAE,OAAO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C,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,WAAW,mCAAmC,SAAS;CACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAO,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC/E,SAAS,iCAAiC,SAAS;AACrD,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,43 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-company.d.ts
4
- declare const PlainUpdateCompanyInput: z.ZodTypeAny;
5
- declare const PlainUpdateCompanyOutput: z.ZodTypeAny;
6
- declare const plainUpdateCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainUpdateCompanyInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ companyId: z.ZodOptional<z.ZodString>;
7
+ domainName: z.ZodString;
8
+ contractValue: z.ZodOptional<z.ZodNumber>;
9
+ companyDomainName: z.ZodOptional<z.ZodString>;
10
+ accountOwnerUserId: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ declare const PlainUpdateCompanyOutput: z.ZodObject<{
13
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
+ code: z.ZodNullable<z.ZodString>;
15
+ type: z.ZodNullable<z.ZodString>;
16
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
17
+ type: z.ZodNullable<z.ZodString>;
18
+ field: z.ZodNullable<z.ZodString>;
19
+ message: z.ZodNullable<z.ZodString>;
20
+ }, z.core.$loose>>>>;
21
+ message: z.ZodNullable<z.ZodString>;
22
+ }, z.core.$loose>>>;
23
+ result: z.ZodNullable<z.ZodString>;
24
+ company: z.ZodNullable<z.ZodObject<{
25
+ id: z.ZodNullable<z.ZodString>;
26
+ name: z.ZodNullable<z.ZodString>;
27
+ createdAt: z.ZodNullable<z.ZodObject<{
28
+ iso8601: z.ZodNullable<z.ZodString>;
29
+ }, z.core.$loose>>;
30
+ domainName: z.ZodNullable<z.ZodString>;
31
+ }, z.core.$loose>>;
32
+ }, z.core.$loose>;
33
+ declare const plainUpdateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
34
+ name: string;
35
+ domainName: string;
36
+ companyId?: string | undefined;
37
+ contractValue?: number | undefined;
38
+ companyDomainName?: string | undefined;
39
+ accountOwnerUserId?: string | undefined;
40
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
41
  //#endregion
8
42
  export { plainUpdateCompany };
9
43
  //# sourceMappingURL=update-company.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-company.d.cts","names":[],"sources":["../../src/actions/update-company.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAOtC;AAAA,cAqBW,wBAAA,EAA0B,CAAA,CAAE,UAIvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-company.d.cts","names":[],"sources":["../../src/actions/update-company.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cA4BvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
@@ -1,9 +1,43 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-company.d.ts
4
- declare const PlainUpdateCompanyInput: z.ZodTypeAny;
5
- declare const PlainUpdateCompanyOutput: z.ZodTypeAny;
6
- declare const plainUpdateCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainUpdateCompanyInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ companyId: z.ZodOptional<z.ZodString>;
7
+ domainName: z.ZodString;
8
+ contractValue: z.ZodOptional<z.ZodNumber>;
9
+ companyDomainName: z.ZodOptional<z.ZodString>;
10
+ accountOwnerUserId: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ declare const PlainUpdateCompanyOutput: z.ZodObject<{
13
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
+ code: z.ZodNullable<z.ZodString>;
15
+ type: z.ZodNullable<z.ZodString>;
16
+ fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
17
+ type: z.ZodNullable<z.ZodString>;
18
+ field: z.ZodNullable<z.ZodString>;
19
+ message: z.ZodNullable<z.ZodString>;
20
+ }, z.core.$loose>>>>;
21
+ message: z.ZodNullable<z.ZodString>;
22
+ }, z.core.$loose>>>;
23
+ result: z.ZodNullable<z.ZodString>;
24
+ company: z.ZodNullable<z.ZodObject<{
25
+ id: z.ZodNullable<z.ZodString>;
26
+ name: z.ZodNullable<z.ZodString>;
27
+ createdAt: z.ZodNullable<z.ZodObject<{
28
+ iso8601: z.ZodNullable<z.ZodString>;
29
+ }, z.core.$loose>>;
30
+ domainName: z.ZodNullable<z.ZodString>;
31
+ }, z.core.$loose>>;
32
+ }, z.core.$loose>;
33
+ declare const plainUpdateCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
34
+ name: string;
35
+ domainName: string;
36
+ companyId?: string | undefined;
37
+ contractValue?: number | undefined;
38
+ companyDomainName?: string | undefined;
39
+ accountOwnerUserId?: string | undefined;
40
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
41
  //#endregion
8
42
  export { plainUpdateCompany };
9
43
  //# sourceMappingURL=update-company.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-company.d.mts","names":[],"sources":["../../src/actions/update-company.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAOtC;AAAA,cAqBW,wBAAA,EAA0B,CAAA,CAAE,UAIvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-company.d.mts","names":[],"sources":["../../src/actions/update-company.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cA4BvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
@@ -10,23 +10,23 @@ const PlainUpdateCompanyInput = z.object({
10
10
  accountOwnerUserId: z.string().describe("ID of the user to assign as account owner.").optional()
11
11
  });
12
12
  const PlainUpdateCompany_MutationFieldErrorSchema = z.object({
13
- type: z.string().describe("Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND)."),
14
- field: z.string().describe("Name of the input field with an error."),
15
- message: z.string().describe("Technical description of the field error.")
16
- });
13
+ type: z.string().describe("Category of the field error (e.g., VALIDATION, REQUIRED, NOT_FOUND).").nullable(),
14
+ field: z.string().describe("Name of the input field with an error.").nullable(),
15
+ message: z.string().describe("Technical description of the field error.").nullable()
16
+ }).passthrough();
17
17
  const PlainUpdateCompany_MutationErrorSchema = z.object({
18
- code: z.string().describe("Fixed error code for handling specific errors."),
19
- type: z.string().describe("Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL)."),
18
+ code: z.string().describe("Fixed error code for handling specific errors.").nullable(),
19
+ type: z.string().describe("Category of the error (e.g., VALIDATION, FORBIDDEN, INTERNAL).").nullable(),
20
20
  fields: z.array(PlainUpdateCompany_MutationFieldErrorSchema).describe("List of field-level errors if validation failed.").nullable().optional(),
21
- message: z.string().describe("Technical description of the mutation error.")
22
- });
23
- const PlainUpdateCompany_CreatedAtSchema = z.object({ iso8601: z.string().describe("ISO 8601 timestamp of creation.") });
21
+ message: z.string().describe("Technical description of the mutation error.").nullable()
22
+ }).passthrough();
23
+ const PlainUpdateCompany_CreatedAtSchema = z.object({ iso8601: z.string().describe("ISO 8601 timestamp of creation.").nullable() }).passthrough();
24
24
  const PlainUpdateCompany_CompanySchema = z.object({
25
- id: z.string().describe("Unique ID of the company."),
26
- name: z.string().describe("Name of the company."),
25
+ id: z.string().describe("Unique ID of the company.").nullable(),
26
+ name: z.string().describe("Name of the company.").nullable(),
27
27
  createdAt: PlainUpdateCompany_CreatedAtSchema.nullable(),
28
- domainName: z.string().describe("Domain name of the company.")
29
- });
28
+ domainName: z.string().describe("Domain name of the company.").nullable()
29
+ }).passthrough();
30
30
  const plainUpdateCompany = action("PLAIN_UPDATE_COMPANY", {
31
31
  slug: "plain-update-company",
32
32
  name: "Update Company",
@@ -34,9 +34,9 @@ const plainUpdateCompany = action("PLAIN_UPDATE_COMPANY", {
34
34
  input: PlainUpdateCompanyInput,
35
35
  output: z.object({
36
36
  error: PlainUpdateCompany_MutationErrorSchema.nullable().optional(),
37
- result: z.string().describe("Upsert result: 'CREATED' or 'UPDATED'."),
37
+ result: z.string().describe("Upsert result: 'CREATED' or 'UPDATED'.").nullable(),
38
38
  company: PlainUpdateCompany_CompanySchema.nullable()
39
- })
39
+ }).passthrough()
40
40
  });
41
41
  //#endregion
42
42
  export { plainUpdateCompany };