@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,65 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-customers.d.ts
4
- declare const PlainGetCustomersInput: z.ZodTypeAny;
5
- declare const PlainGetCustomersOutput: z.ZodTypeAny;
6
- declare const plainGetCustomers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainGetCustomersInput: z.ZodObject<{
5
+ last: z.ZodOptional<z.ZodNumber>;
6
+ after: z.ZodOptional<z.ZodString>;
7
+ first: z.ZodOptional<z.ZodNumber>;
8
+ before: z.ZodOptional<z.ZodString>;
9
+ sortBy: z.ZodOptional<z.ZodObject<{
10
+ field: z.ZodString;
11
+ direction: z.ZodEnum<{
12
+ ASC: "ASC";
13
+ DESC: "DESC";
14
+ }>;
15
+ }, z.core.$strip>>;
16
+ filters: z.ZodOptional<z.ZodObject<{
17
+ isMarkedAsSpam: z.ZodOptional<z.ZodBoolean>;
18
+ customerGroupIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
+ customerGroupKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
+ }, z.core.$strip>>;
21
+ }, z.core.$strip>;
22
+ declare const PlainGetCustomersOutput: z.ZodObject<{
23
+ customers: z.ZodNullable<z.ZodObject<{
24
+ edges: z.ZodArray<z.ZodObject<{
25
+ node: z.ZodNullable<z.ZodObject<{
26
+ id: z.ZodNullable<z.ZodString>;
27
+ email: z.ZodNullable<z.ZodObject<{
28
+ email: z.ZodNullable<z.ZodString>;
29
+ isVerified: z.ZodNullable<z.ZodBoolean>;
30
+ }, z.core.$loose>>;
31
+ fullName: z.ZodNullable<z.ZodString>;
32
+ shortName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ markedAsSpamAt: z.ZodOptional<z.ZodNullable<z.ZodObject<{
35
+ iso8601: z.ZodNullable<z.ZodString>;
36
+ }, z.core.$loose>>>;
37
+ }, z.core.$loose>>;
38
+ }, z.core.$loose>>;
39
+ pageInfo: z.ZodNullable<z.ZodObject<{
40
+ endCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ hasNextPage: z.ZodNullable<z.ZodBoolean>;
42
+ startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ hasPreviousPage: z.ZodNullable<z.ZodBoolean>;
44
+ }, z.core.$loose>>;
45
+ totalCount: z.ZodNullable<z.ZodNumber>;
46
+ }, z.core.$loose>>;
47
+ }, z.core.$loose>;
48
+ declare const plainGetCustomers: import("@keystrokehq/action").WorkflowActionDefinition<{
49
+ last?: number | undefined;
50
+ after?: string | undefined;
51
+ first?: number | undefined;
52
+ before?: string | undefined;
53
+ sortBy?: {
54
+ field: string;
55
+ direction: "ASC" | "DESC";
56
+ } | undefined;
57
+ filters?: {
58
+ isMarkedAsSpam?: boolean | undefined;
59
+ customerGroupIds?: string[] | undefined;
60
+ customerGroupKeys?: string[] | undefined;
61
+ } | undefined;
62
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
63
  //#endregion
8
64
  export { plainGetCustomers };
9
65
  //# sourceMappingURL=get-customers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-customers.d.mts","names":[],"sources":["../../src/actions/get-customers.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAc4D;AAAA,cA8BtF,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cAEW,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-customers.d.mts","names":[],"sources":["../../src/actions/get-customers.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cA4CtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
@@ -17,36 +17,36 @@ const PlainGetCustomersInput = z.object({
17
17
  }).describe("Filters to apply when fetching customers.").optional()
18
18
  }).describe("Request parameters for fetching a paginated, filtered, and sorted list of customers.");
19
19
  const PlainGetCustomers_CustomerEmailSchema = z.object({
20
- email: z.string().describe("Customer's email address."),
21
- isVerified: z.boolean().describe("Whether the email is verified.")
22
- });
23
- const PlainGetCustomers_MarkedAsSpamAtSchema = z.object({ iso8601: z.string().describe("ISO8601 timestamp when the customer was marked as spam.") });
20
+ email: z.string().describe("Customer's email address.").nullable(),
21
+ isVerified: z.boolean().describe("Whether the email is verified.").nullable()
22
+ }).passthrough();
23
+ const PlainGetCustomers_MarkedAsSpamAtSchema = z.object({ iso8601: z.string().describe("ISO8601 timestamp when the customer was marked as spam.").nullable() }).passthrough();
24
24
  const PlainGetCustomers_CustomerNodeSchema = z.object({
25
- id: z.string(),
25
+ id: z.string().nullable(),
26
26
  email: PlainGetCustomers_CustomerEmailSchema.nullable(),
27
- fullName: z.string(),
27
+ fullName: z.string().nullable(),
28
28
  shortName: z.string().nullable().optional(),
29
29
  externalId: z.string().nullable().optional(),
30
30
  markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional()
31
- });
32
- const PlainGetCustomers_CustomersEdgeSchema = z.object({ node: PlainGetCustomers_CustomerNodeSchema.nullable() });
31
+ }).passthrough();
32
+ const PlainGetCustomers_CustomersEdgeSchema = z.object({ node: PlainGetCustomers_CustomerNodeSchema.nullable() }).passthrough();
33
33
  const PlainGetCustomers_PageInfoSchema = z.object({
34
34
  endCursor: z.string().nullable().optional(),
35
- hasNextPage: z.boolean(),
35
+ hasNextPage: z.boolean().nullable(),
36
36
  startCursor: z.string().nullable().optional(),
37
- hasPreviousPage: z.boolean()
38
- });
37
+ hasPreviousPage: z.boolean().nullable()
38
+ }).passthrough();
39
39
  const PlainGetCustomers_CustomersConnectionSchema = z.object({
40
40
  edges: z.array(PlainGetCustomers_CustomersEdgeSchema),
41
41
  pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),
42
- totalCount: z.number().int()
43
- });
42
+ totalCount: z.number().int().nullable()
43
+ }).passthrough();
44
44
  const plainGetCustomers = action("PLAIN_GET_CUSTOMERS", {
45
45
  slug: "plain-get-customers",
46
46
  name: "Get Customers",
47
47
  description: "Tool to fetch a list of customers. Use when retrieving multiple customer records with pagination, filtering, or sorting.",
48
48
  input: PlainGetCustomersInput,
49
- output: z.object({ customers: PlainGetCustomers_CustomersConnectionSchema.nullable() })
49
+ output: z.object({ customers: PlainGetCustomers_CustomersConnectionSchema.nullable() }).passthrough()
50
50
  });
51
51
  //#endregion
52
52
  export { plainGetCustomers };
@@ -1 +1 @@
1
- {"version":3,"file":"get-customers.mjs","names":[],"sources":["../../src/actions/get-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomersInput: z.ZodTypeAny = z.object({\n last: z.number().int().describe(\"Number of customers to fetch before the 'before' cursor. Must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of customers to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n sortBy: z.object({\n field: z.string().describe(\"Which customer field to sort by (e.g., 'FULL_NAME', 'UPDATED_AT').\"),\n direction: z.enum([\"ASC\", \"DESC\"]).describe(\"Sort order: ASC for ascending, DESC for descending.\"),\n}).describe(\"Sorting instructions for the customers list.\").optional(),\n filters: z.object({\n isMarkedAsSpam: z.boolean().describe(\"If set, only returns customers whose spam status matches this flag.\").optional(),\n customerGroupIds: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group IDs.\").optional(),\n customerGroupKeys: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group keys.\").optional(),\n}).describe(\"Filters to apply when fetching customers.\").optional(),\n}).describe(\"Request parameters for fetching a paginated, filtered, and sorted list of customers.\");\nconst PlainGetCustomers_CustomerEmailSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Customer's email address.\"),\n isVerified: z.boolean().describe(\"Whether the email is verified.\"),\n});\nconst PlainGetCustomers_MarkedAsSpamAtSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp when the customer was marked as spam.\"),\n});\nconst PlainGetCustomers_CustomerNodeSchema: z.ZodTypeAny = z.object({\n id: z.string(),\n email: PlainGetCustomers_CustomerEmailSchema.nullable(),\n fullName: z.string(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional(),\n});\nconst PlainGetCustomers_CustomersEdgeSchema: z.ZodTypeAny = z.object({\n node: PlainGetCustomers_CustomerNodeSchema.nullable(),\n});\nconst PlainGetCustomers_PageInfoSchema: z.ZodTypeAny = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean(),\n});\nconst PlainGetCustomers_CustomersConnectionSchema: z.ZodTypeAny = z.object({\n edges: z.array(PlainGetCustomers_CustomersEdgeSchema),\n pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),\n totalCount: z.number().int(),\n});\nexport const PlainGetCustomersOutput: z.ZodTypeAny = z.object({\n customers: PlainGetCustomers_CustomersConnectionSchema.nullable(),\n});\n\nexport const plainGetCustomers = action(\"PLAIN_GET_CUSTOMERS\", {\n slug: \"plain-get-customers\",\n name: \"Get Customers\",\n description: \"Tool to fetch a list of customers. Use when retrieving multiple customer records with pagination, filtering, or sorting.\",\n input: PlainGetCustomersInput,\n output: PlainGetCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,QAAQ,EAAE,OAAO;EACjB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EAC/F,WAAW,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,qDAAqD;CACnG,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnE,SAAS,EAAE,OAAO;EAClB,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACrH,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACzI,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAClG,MAAM,wCAAsD,EAAE,OAAO;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;AACnE,CAAC;AACD,MAAM,yCAAuD,EAAE,OAAO,EACpE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,EACxF,CAAC;AACD,MAAM,uCAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO;CACb,OAAO,sCAAsC,SAAS;CACtD,UAAU,EAAE,OAAO;CACnB,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3C,gBAAgB,uCAAuC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC;AACD,MAAM,wCAAsD,EAAE,OAAO,EACnE,MAAM,qCAAqC,SAAS,EACtD,CAAC;AACD,MAAM,mCAAiD,EAAE,OAAO;CAC9D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1C,aAAa,EAAE,QAAQ;CACvB,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5C,iBAAiB,EAAE,QAAQ;AAC7B,CAAC;AACD,MAAM,8CAA4D,EAAE,OAAO;CACzE,OAAO,EAAE,MAAM,qCAAqC;CACpD,UAAU,iCAAiC,SAAS;CACpD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI;AAC7B,CAAC;AAKD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmD,EAAE,OAAO,EAC5D,WAAW,4CAA4C,SAAS,EAClE,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-customers.mjs","names":[],"sources":["../../src/actions/get-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomersInput = z.object({\n last: z.number().int().describe(\"Number of customers to fetch before the 'before' cursor. Must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of customers to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n sortBy: z.object({\n field: z.string().describe(\"Which customer field to sort by (e.g., 'FULL_NAME', 'UPDATED_AT').\"),\n direction: z.enum([\"ASC\", \"DESC\"]).describe(\"Sort order: ASC for ascending, DESC for descending.\"),\n}).describe(\"Sorting instructions for the customers list.\").optional(),\n filters: z.object({\n isMarkedAsSpam: z.boolean().describe(\"If set, only returns customers whose spam status matches this flag.\").optional(),\n customerGroupIds: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group IDs.\").optional(),\n customerGroupKeys: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group keys.\").optional(),\n}).describe(\"Filters to apply when fetching customers.\").optional(),\n}).describe(\"Request parameters for fetching a paginated, filtered, and sorted list of customers.\");\nconst PlainGetCustomers_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Customer's email address.\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_MarkedAsSpamAtSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp when the customer was marked as spam.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomerNodeSchema = z.object({\n id: z.string().nullable(),\n email: PlainGetCustomers_CustomerEmailSchema.nullable(),\n fullName: z.string().nullable(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetCustomers_CustomersEdgeSchema = z.object({\n node: PlainGetCustomers_CustomerNodeSchema.nullable(),\n}).passthrough();\nconst PlainGetCustomers_PageInfoSchema = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean().nullable(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean().nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomersConnectionSchema = z.object({\n edges: z.array(PlainGetCustomers_CustomersEdgeSchema),\n pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),\n totalCount: z.number().int().nullable(),\n}).passthrough();\nexport const PlainGetCustomersOutput = z.object({\n customers: PlainGetCustomers_CustomersConnectionSchema.nullable(),\n}).passthrough();\n\nexport const plainGetCustomers = action(\"PLAIN_GET_CUSTOMERS\", {\n slug: \"plain-get-customers\",\n name: \"Get Customers\",\n description: \"Tool to fetch a list of customers. Use when retrieving multiple customer records with pagination, filtering, or sorting.\",\n input: PlainGetCustomersInput,\n output: PlainGetCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,QAAQ,EAAE,OAAO;EACjB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EAC/F,WAAW,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,qDAAqD;CACnG,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnE,SAAS,EAAE,OAAO;EAClB,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACrH,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACzI,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,SA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AKf,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqC,EAAE,OAAO,EAC9C,WAAW,4CAA4C,SAAS,EAClE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -3,42 +3,42 @@ let zod = require("zod");
3
3
  //#region src/actions/get-thread-by-id.ts
4
4
  const PlainGetThreadByIdInput = zod.z.object({ id: zod.z.string().describe("Unique thread identifier in format: prefix_26chars (e.g., th_01ABC...). Use LIST_THREADS or CREATE_THREAD to obtain valid IDs.") }).describe("Request model for fetching a thread by its ID.");
5
5
  const PlainGetThreadById_LabelTypeSchema = zod.z.object({
6
- id: zod.z.string().describe("Label type unique identifier"),
7
- name: zod.z.string().describe("Label type name")
8
- });
6
+ id: zod.z.string().describe("Label type unique identifier").nullable(),
7
+ name: zod.z.string().describe("Label type name").nullable()
8
+ }).passthrough();
9
9
  const PlainGetThreadById_LabelSchema = zod.z.object({
10
- id: zod.z.string().describe("Label unique identifier"),
10
+ id: zod.z.string().describe("Label unique identifier").nullable(),
11
11
  labelType: PlainGetThreadById_LabelTypeSchema.nullable()
12
- });
13
- const PlainGetThreadById_DateTimeSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO8601 timestamp") });
12
+ }).passthrough();
13
+ const PlainGetThreadById_DateTimeSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO8601 timestamp").nullable() }).passthrough();
14
14
  const PlainGetThreadById_CustomerEmailSchema = zod.z.object({
15
- email: zod.z.string().describe("Email address of the customer"),
16
- isVerified: zod.z.boolean().describe("Whether the email is verified"),
15
+ email: zod.z.string().describe("Email address of the customer").nullable(),
16
+ isVerified: zod.z.boolean().describe("Whether the email is verified").nullable(),
17
17
  verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional()
18
- });
18
+ }).passthrough();
19
19
  const PlainGetThreadById_CustomerSchema = zod.z.object({
20
- id: zod.z.string().describe("Customer unique identifier"),
20
+ id: zod.z.string().describe("Customer unique identifier").nullable(),
21
21
  email: PlainGetThreadById_CustomerEmailSchema.nullable(),
22
- status: zod.z.string().describe("Customer status"),
23
- fullName: zod.z.string().describe("Full name of the customer"),
22
+ status: zod.z.string().describe("Customer status").nullable(),
23
+ fullName: zod.z.string().describe("Full name of the customer").nullable(),
24
24
  createdAt: PlainGetThreadById_DateTimeSchema.nullable(),
25
25
  shortName: zod.z.string().describe("Short/display name of the customer").nullable().optional(),
26
26
  updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),
27
27
  externalId: zod.z.string().describe("External identifier for the customer").nullable().optional()
28
- });
28
+ }).passthrough();
29
29
  const PlainGetThreadById_UserSchema = zod.z.object({
30
- id: zod.z.string().describe("User unique identifier"),
30
+ id: zod.z.string().describe("User unique identifier").nullable(),
31
31
  email: zod.z.string().describe("Email address of the user").nullable().optional(),
32
32
  fullName: zod.z.string().describe("Full name of the user").nullable().optional()
33
- });
33
+ }).passthrough();
34
34
  const PlainGetThreadById_ThreadSchema = zod.z.object({
35
- id: zod.z.string().describe("Thread unique identifier"),
36
- ref: zod.z.string().describe("Human-readable thread reference"),
35
+ id: zod.z.string().describe("Thread unique identifier").nullable(),
36
+ ref: zod.z.string().describe("Human-readable thread reference").nullable(),
37
37
  title: zod.z.string().describe("Title of the thread").nullable().optional(),
38
38
  labels: zod.z.array(PlainGetThreadById_LabelSchema).describe("Labels assigned to the thread").nullable().optional(),
39
- status: zod.z.string().describe("Current status of the thread"),
39
+ status: zod.z.string().describe("Current status of the thread").nullable(),
40
40
  customer: PlainGetThreadById_CustomerSchema.nullable(),
41
- priority: zod.z.number().int().describe("Priority level of the thread"),
41
+ priority: zod.z.number().int().describe("Priority level of the thread").nullable(),
42
42
  createdAt: PlainGetThreadById_DateTimeSchema.nullable(),
43
43
  updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),
44
44
  assignedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),
@@ -46,9 +46,9 @@ const PlainGetThreadById_ThreadSchema = zod.z.object({
46
46
  externalId: zod.z.string().describe("External identifier for the thread").nullable().optional(),
47
47
  previewText: zod.z.string().describe("Preview text of the thread").nullable().optional(),
48
48
  statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable()
49
- });
50
- const PlainGetThreadById_GetThreadByIdDataSchema = zod.z.object({ thread: PlainGetThreadById_ThreadSchema.nullable().optional() });
51
- const PlainGetThreadByIdOutput = zod.z.object({ data: PlainGetThreadById_GetThreadByIdDataSchema.nullable() }).describe("Response model for fetching a thread by ID.");
49
+ }).passthrough();
50
+ const PlainGetThreadById_GetThreadByIdDataSchema = zod.z.object({ thread: PlainGetThreadById_ThreadSchema.nullable().optional() }).passthrough();
51
+ const PlainGetThreadByIdOutput = zod.z.object({ data: PlainGetThreadById_GetThreadByIdDataSchema.nullable() }).passthrough().describe("Response model for fetching a thread by ID.");
52
52
  const plainGetThreadById = require_action.action("PLAIN_GET_THREAD_BY_ID", {
53
53
  slug: "plain-get-thread-by-id",
54
54
  name: "Get Thread By ID",
@@ -1 +1 @@
1
- {"version":3,"file":"get-thread-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-thread-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetThreadByIdInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique thread identifier in format: prefix_26chars (e.g., th_01ABC...). Use LIST_THREADS or CREATE_THREAD to obtain valid IDs.\"),\n}).describe(\"Request model for fetching a thread by its ID.\");\nconst PlainGetThreadById_LabelTypeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Label type unique identifier\"),\n name: z.string().describe(\"Label type name\"),\n});\nconst PlainGetThreadById_LabelSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Label unique identifier\"),\n labelType: PlainGetThreadById_LabelTypeSchema.nullable(),\n});\nconst PlainGetThreadById_DateTimeSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp\"),\n});\nconst PlainGetThreadById_CustomerEmailSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the customer\"),\n isVerified: z.boolean().describe(\"Whether the email is verified\"),\n verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n});\nconst PlainGetThreadById_CustomerSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Customer unique identifier\"),\n email: PlainGetThreadById_CustomerEmailSchema.nullable(),\n status: z.string().describe(\"Customer status\"),\n fullName: z.string().describe(\"Full name of the customer\"),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n shortName: z.string().describe(\"Short/display name of the customer\").nullable().optional(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"External identifier for the customer\").nullable().optional(),\n});\nconst PlainGetThreadById_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"User unique identifier\"),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user\").nullable().optional(),\n});\nconst PlainGetThreadById_ThreadSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Thread unique identifier\"),\n ref: z.string().describe(\"Human-readable thread reference\"),\n title: z.string().describe(\"Title of the thread\").nullable().optional(),\n labels: z.array(PlainGetThreadById_LabelSchema).describe(\"Labels assigned to the thread\").nullable().optional(),\n status: z.string().describe(\"Current status of the thread\"),\n customer: PlainGetThreadById_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\"),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n assignedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n assignedTo: PlainGetThreadById_UserSchema.nullable().optional(),\n externalId: z.string().describe(\"External identifier for the thread\").nullable().optional(),\n previewText: z.string().describe(\"Preview text of the thread\").nullable().optional(),\n statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n});\nconst PlainGetThreadById_GetThreadByIdDataSchema: z.ZodTypeAny = z.object({\n thread: PlainGetThreadById_ThreadSchema.nullable().optional(),\n});\nexport const PlainGetThreadByIdOutput: z.ZodTypeAny = z.object({\n data: PlainGetThreadById_GetThreadByIdDataSchema.nullable(),\n}).describe(\"Response model for fetching a thread by ID.\");\n\nexport const plainGetThreadById = action(\"PLAIN_GET_THREAD_BY_ID\", {\n slug: \"plain-get-thread-by-id\",\n name: \"Get Thread By ID\",\n description: \"Fetches comprehensive details of a specific thread by ID, including customer info, status, priority, labels, and assignments. Returns null if thread not found.\",\n input: PlainGetThreadByIdInput,\n output: PlainGetThreadByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,EAC1J,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;AAC7C,CAAC;AACD,MAAM,iCAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACjD,WAAW,mCAAmC,SAAS;AACzD,CAAC;AACD,MAAM,oCAAkDA,IAAAA,EAAE,OAAO,EAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,EAClD,CAAC;AACD,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC1D,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B;CAChE,YAAY,kCAAkC,SAAS,CAAC,CAAC,SAAS;AACpE,CAAC;AACD,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,O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I,CAAC,CAAC,SAAS,8BAA8B;CAClE,WAAW,kCAAkC,SAAS;CACtD,WAAW,kCAAkC,SAAS;CACtD,YAAY,kCAAkC,SAAS,CAAC,CAAC,SAAS;CAClE,YAAY,8BAA8B,SAAS,CAAC,CAAC,SAAS;CAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,iBAAiB,kCAAkC,SAAS;AAC9D,CAAC;AACD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO,EACxE,QAAQ,gCAAgC,SAAS,CAAC,CAAC,SAAS,EAC9D,CAAC;AACD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,qBAAqBC,eAAAA,OAAO,0BAA0B;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-thread-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-thread-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetThreadByIdInput = z.object({\n id: z.string().describe(\"Unique thread identifier in format: prefix_26chars (e.g., th_01ABC...). Use LIST_THREADS or CREATE_THREAD to obtain valid IDs.\"),\n}).describe(\"Request model for fetching a thread by its ID.\");\nconst PlainGetThreadById_LabelTypeSchema = z.object({\n id: z.string().describe(\"Label type unique identifier\").nullable(),\n name: z.string().describe(\"Label type name\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_LabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainGetThreadById_LabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified\").nullable(),\n verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainGetThreadById_CustomerEmailSchema.nullable(),\n status: z.string().describe(\"Customer status\").nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n shortName: z.string().describe(\"Short/display name of the customer\").nullable().optional(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"External identifier for the customer\").nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_UserSchema = z.object({\n id: z.string().describe(\"User unique identifier\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user\").nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n ref: z.string().describe(\"Human-readable thread reference\").nullable(),\n title: z.string().describe(\"Title of the thread\").nullable().optional(),\n labels: z.array(PlainGetThreadById_LabelSchema).describe(\"Labels assigned to the thread\").nullable().optional(),\n status: z.string().describe(\"Current status of the thread\").nullable(),\n customer: PlainGetThreadById_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n assignedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n assignedTo: PlainGetThreadById_UserSchema.nullable().optional(),\n externalId: z.string().describe(\"External identifier for the thread\").nullable().optional(),\n previewText: z.string().describe(\"Preview text of the thread\").nullable().optional(),\n statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_GetThreadByIdDataSchema = z.object({\n thread: PlainGetThreadById_ThreadSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetThreadByIdOutput = z.object({\n data: PlainGetThreadById_GetThreadByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response model for fetching a thread by ID.\");\n\nexport const plainGetThreadById = action(\"PLAIN_GET_THREAD_BY_ID\", {\n slug: \"plain-get-thread-by-id\",\n name: \"Get Thread By ID\",\n description: \"Fetches comprehensive details of a specific thread by ID, including customer info, status, priority, labels, and assignments. Returns null if thread not found.\",\n input: PlainGetThreadByIdInput,\n output: PlainGetThreadByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,EAC1J,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;AACxD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC5D,WAAW,mCAAmC,SAAS;AACzD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oCAAoCA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,EAC7D,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO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 -1,9 +1,69 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-thread-by-id.d.ts
4
- declare const PlainGetThreadByIdInput: z.ZodTypeAny;
5
- declare const PlainGetThreadByIdOutput: z.ZodTypeAny;
6
- declare const plainGetThreadById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainGetThreadByIdInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PlainGetThreadByIdOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ thread: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ ref: z.ZodNullable<z.ZodString>;
12
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodString>;
15
+ labelType: z.ZodNullable<z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodString>;
17
+ name: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$loose>>;
19
+ }, z.core.$loose>>>>;
20
+ status: z.ZodNullable<z.ZodString>;
21
+ customer: z.ZodNullable<z.ZodObject<{
22
+ id: z.ZodNullable<z.ZodString>;
23
+ email: z.ZodNullable<z.ZodObject<{
24
+ email: z.ZodNullable<z.ZodString>;
25
+ isVerified: z.ZodNullable<z.ZodBoolean>;
26
+ verifiedAt: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
+ iso8601: z.ZodNullable<z.ZodString>;
28
+ }, z.core.$loose>>>;
29
+ }, z.core.$loose>>;
30
+ status: z.ZodNullable<z.ZodString>;
31
+ fullName: z.ZodNullable<z.ZodString>;
32
+ createdAt: z.ZodNullable<z.ZodObject<{
33
+ iso8601: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$loose>>;
35
+ shortName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ updatedAt: z.ZodNullable<z.ZodObject<{
37
+ iso8601: z.ZodNullable<z.ZodString>;
38
+ }, z.core.$loose>>;
39
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ }, z.core.$loose>>;
41
+ priority: z.ZodNullable<z.ZodNumber>;
42
+ createdAt: z.ZodNullable<z.ZodObject<{
43
+ iso8601: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$loose>>;
45
+ updatedAt: z.ZodNullable<z.ZodObject<{
46
+ iso8601: z.ZodNullable<z.ZodString>;
47
+ }, z.core.$loose>>;
48
+ assignedAt: z.ZodOptional<z.ZodNullable<z.ZodObject<{
49
+ iso8601: z.ZodNullable<z.ZodString>;
50
+ }, z.core.$loose>>>;
51
+ assignedTo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
52
+ id: z.ZodNullable<z.ZodString>;
53
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ }, z.core.$loose>>>;
56
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ previewText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ statusChangedAt: z.ZodNullable<z.ZodObject<{
59
+ iso8601: z.ZodNullable<z.ZodString>;
60
+ }, z.core.$loose>>;
61
+ }, z.core.$loose>>>;
62
+ }, z.core.$loose>>;
63
+ }, z.core.$loose>;
64
+ declare const plainGetThreadById: import("@keystrokehq/action").WorkflowActionDefinition<{
65
+ id: string;
66
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
67
  //#endregion
8
68
  export { plainGetThreadById };
9
69
  //# sourceMappingURL=get-thread-by-id.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-thread-by-id.d.cts","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEqB;AAAA,cAmDhD,wBAAA,EAA0B,CAAA,CAAE,UAEiB;AAAA,cAE7C,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-thread-by-id.d.cts","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAqDvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
@@ -1,9 +1,69 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-thread-by-id.d.ts
4
- declare const PlainGetThreadByIdInput: z.ZodTypeAny;
5
- declare const PlainGetThreadByIdOutput: z.ZodTypeAny;
6
- declare const plainGetThreadById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainGetThreadByIdInput: z.ZodObject<{
5
+ id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PlainGetThreadByIdOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ thread: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ ref: z.ZodNullable<z.ZodString>;
12
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodString>;
15
+ labelType: z.ZodNullable<z.ZodObject<{
16
+ id: z.ZodNullable<z.ZodString>;
17
+ name: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$loose>>;
19
+ }, z.core.$loose>>>>;
20
+ status: z.ZodNullable<z.ZodString>;
21
+ customer: z.ZodNullable<z.ZodObject<{
22
+ id: z.ZodNullable<z.ZodString>;
23
+ email: z.ZodNullable<z.ZodObject<{
24
+ email: z.ZodNullable<z.ZodString>;
25
+ isVerified: z.ZodNullable<z.ZodBoolean>;
26
+ verifiedAt: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
+ iso8601: z.ZodNullable<z.ZodString>;
28
+ }, z.core.$loose>>>;
29
+ }, z.core.$loose>>;
30
+ status: z.ZodNullable<z.ZodString>;
31
+ fullName: z.ZodNullable<z.ZodString>;
32
+ createdAt: z.ZodNullable<z.ZodObject<{
33
+ iso8601: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$loose>>;
35
+ shortName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ updatedAt: z.ZodNullable<z.ZodObject<{
37
+ iso8601: z.ZodNullable<z.ZodString>;
38
+ }, z.core.$loose>>;
39
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ }, z.core.$loose>>;
41
+ priority: z.ZodNullable<z.ZodNumber>;
42
+ createdAt: z.ZodNullable<z.ZodObject<{
43
+ iso8601: z.ZodNullable<z.ZodString>;
44
+ }, z.core.$loose>>;
45
+ updatedAt: z.ZodNullable<z.ZodObject<{
46
+ iso8601: z.ZodNullable<z.ZodString>;
47
+ }, z.core.$loose>>;
48
+ assignedAt: z.ZodOptional<z.ZodNullable<z.ZodObject<{
49
+ iso8601: z.ZodNullable<z.ZodString>;
50
+ }, z.core.$loose>>>;
51
+ assignedTo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
52
+ id: z.ZodNullable<z.ZodString>;
53
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ fullName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ }, z.core.$loose>>>;
56
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ previewText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ statusChangedAt: z.ZodNullable<z.ZodObject<{
59
+ iso8601: z.ZodNullable<z.ZodString>;
60
+ }, z.core.$loose>>;
61
+ }, z.core.$loose>>>;
62
+ }, z.core.$loose>>;
63
+ }, z.core.$loose>;
64
+ declare const plainGetThreadById: import("@keystrokehq/action").WorkflowActionDefinition<{
65
+ id: string;
66
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
67
  //#endregion
8
68
  export { plainGetThreadById };
9
69
  //# sourceMappingURL=get-thread-by-id.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-thread-by-id.d.mts","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEqB;AAAA,cAmDhD,wBAAA,EAA0B,CAAA,CAAE,UAEiB;AAAA,cAE7C,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-thread-by-id.d.mts","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAqDvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
@@ -3,42 +3,42 @@ import { z } from "zod";
3
3
  //#region src/actions/get-thread-by-id.ts
4
4
  const PlainGetThreadByIdInput = z.object({ id: z.string().describe("Unique thread identifier in format: prefix_26chars (e.g., th_01ABC...). Use LIST_THREADS or CREATE_THREAD to obtain valid IDs.") }).describe("Request model for fetching a thread by its ID.");
5
5
  const PlainGetThreadById_LabelTypeSchema = z.object({
6
- id: z.string().describe("Label type unique identifier"),
7
- name: z.string().describe("Label type name")
8
- });
6
+ id: z.string().describe("Label type unique identifier").nullable(),
7
+ name: z.string().describe("Label type name").nullable()
8
+ }).passthrough();
9
9
  const PlainGetThreadById_LabelSchema = z.object({
10
- id: z.string().describe("Label unique identifier"),
10
+ id: z.string().describe("Label unique identifier").nullable(),
11
11
  labelType: PlainGetThreadById_LabelTypeSchema.nullable()
12
- });
13
- const PlainGetThreadById_DateTimeSchema = z.object({ iso8601: z.string().describe("ISO8601 timestamp") });
12
+ }).passthrough();
13
+ const PlainGetThreadById_DateTimeSchema = z.object({ iso8601: z.string().describe("ISO8601 timestamp").nullable() }).passthrough();
14
14
  const PlainGetThreadById_CustomerEmailSchema = z.object({
15
- email: z.string().describe("Email address of the customer"),
16
- isVerified: z.boolean().describe("Whether the email is verified"),
15
+ email: z.string().describe("Email address of the customer").nullable(),
16
+ isVerified: z.boolean().describe("Whether the email is verified").nullable(),
17
17
  verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional()
18
- });
18
+ }).passthrough();
19
19
  const PlainGetThreadById_CustomerSchema = z.object({
20
- id: z.string().describe("Customer unique identifier"),
20
+ id: z.string().describe("Customer unique identifier").nullable(),
21
21
  email: PlainGetThreadById_CustomerEmailSchema.nullable(),
22
- status: z.string().describe("Customer status"),
23
- fullName: z.string().describe("Full name of the customer"),
22
+ status: z.string().describe("Customer status").nullable(),
23
+ fullName: z.string().describe("Full name of the customer").nullable(),
24
24
  createdAt: PlainGetThreadById_DateTimeSchema.nullable(),
25
25
  shortName: z.string().describe("Short/display name of the customer").nullable().optional(),
26
26
  updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),
27
27
  externalId: z.string().describe("External identifier for the customer").nullable().optional()
28
- });
28
+ }).passthrough();
29
29
  const PlainGetThreadById_UserSchema = z.object({
30
- id: z.string().describe("User unique identifier"),
30
+ id: z.string().describe("User unique identifier").nullable(),
31
31
  email: z.string().describe("Email address of the user").nullable().optional(),
32
32
  fullName: z.string().describe("Full name of the user").nullable().optional()
33
- });
33
+ }).passthrough();
34
34
  const PlainGetThreadById_ThreadSchema = z.object({
35
- id: z.string().describe("Thread unique identifier"),
36
- ref: z.string().describe("Human-readable thread reference"),
35
+ id: z.string().describe("Thread unique identifier").nullable(),
36
+ ref: z.string().describe("Human-readable thread reference").nullable(),
37
37
  title: z.string().describe("Title of the thread").nullable().optional(),
38
38
  labels: z.array(PlainGetThreadById_LabelSchema).describe("Labels assigned to the thread").nullable().optional(),
39
- status: z.string().describe("Current status of the thread"),
39
+ status: z.string().describe("Current status of the thread").nullable(),
40
40
  customer: PlainGetThreadById_CustomerSchema.nullable(),
41
- priority: z.number().int().describe("Priority level of the thread"),
41
+ priority: z.number().int().describe("Priority level of the thread").nullable(),
42
42
  createdAt: PlainGetThreadById_DateTimeSchema.nullable(),
43
43
  updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),
44
44
  assignedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),
@@ -46,14 +46,14 @@ const PlainGetThreadById_ThreadSchema = z.object({
46
46
  externalId: z.string().describe("External identifier for the thread").nullable().optional(),
47
47
  previewText: z.string().describe("Preview text of the thread").nullable().optional(),
48
48
  statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable()
49
- });
50
- const PlainGetThreadById_GetThreadByIdDataSchema = z.object({ thread: PlainGetThreadById_ThreadSchema.nullable().optional() });
49
+ }).passthrough();
50
+ const PlainGetThreadById_GetThreadByIdDataSchema = z.object({ thread: PlainGetThreadById_ThreadSchema.nullable().optional() }).passthrough();
51
51
  const plainGetThreadById = action("PLAIN_GET_THREAD_BY_ID", {
52
52
  slug: "plain-get-thread-by-id",
53
53
  name: "Get Thread By ID",
54
54
  description: "Fetches comprehensive details of a specific thread by ID, including customer info, status, priority, labels, and assignments. Returns null if thread not found.",
55
55
  input: PlainGetThreadByIdInput,
56
- output: z.object({ data: PlainGetThreadById_GetThreadByIdDataSchema.nullable() }).describe("Response model for fetching a thread by ID.")
56
+ output: z.object({ data: PlainGetThreadById_GetThreadByIdDataSchema.nullable() }).passthrough().describe("Response model for fetching a thread by ID.")
57
57
  });
58
58
  //#endregion
59
59
  export { plainGetThreadById };
@@ -1 +1 @@
1
- {"version":3,"file":"get-thread-by-id.mjs","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetThreadByIdInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique thread identifier in format: prefix_26chars (e.g., th_01ABC...). Use LIST_THREADS or CREATE_THREAD to obtain valid IDs.\"),\n}).describe(\"Request model for fetching a thread by its ID.\");\nconst PlainGetThreadById_LabelTypeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Label type unique identifier\"),\n name: z.string().describe(\"Label type name\"),\n});\nconst PlainGetThreadById_LabelSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Label unique identifier\"),\n labelType: PlainGetThreadById_LabelTypeSchema.nullable(),\n});\nconst PlainGetThreadById_DateTimeSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp\"),\n});\nconst PlainGetThreadById_CustomerEmailSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the customer\"),\n isVerified: z.boolean().describe(\"Whether the email is verified\"),\n verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n});\nconst PlainGetThreadById_CustomerSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Customer unique identifier\"),\n email: PlainGetThreadById_CustomerEmailSchema.nullable(),\n status: z.string().describe(\"Customer status\"),\n fullName: z.string().describe(\"Full name of the customer\"),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n shortName: z.string().describe(\"Short/display name of the customer\").nullable().optional(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"External identifier for the customer\").nullable().optional(),\n});\nconst PlainGetThreadById_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"User unique identifier\"),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user\").nullable().optional(),\n});\nconst PlainGetThreadById_ThreadSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Thread unique identifier\"),\n ref: z.string().describe(\"Human-readable thread reference\"),\n title: z.string().describe(\"Title of the thread\").nullable().optional(),\n labels: z.array(PlainGetThreadById_LabelSchema).describe(\"Labels assigned to the thread\").nullable().optional(),\n status: z.string().describe(\"Current status of the thread\"),\n customer: PlainGetThreadById_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\"),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n assignedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n assignedTo: PlainGetThreadById_UserSchema.nullable().optional(),\n externalId: z.string().describe(\"External identifier for the thread\").nullable().optional(),\n previewText: z.string().describe(\"Preview text of the thread\").nullable().optional(),\n statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n});\nconst PlainGetThreadById_GetThreadByIdDataSchema: z.ZodTypeAny = z.object({\n thread: PlainGetThreadById_ThreadSchema.nullable().optional(),\n});\nexport const PlainGetThreadByIdOutput: z.ZodTypeAny = z.object({\n data: PlainGetThreadById_GetThreadByIdDataSchema.nullable(),\n}).describe(\"Response model for fetching a thread by ID.\");\n\nexport const plainGetThreadById = action(\"PLAIN_GET_THREAD_BY_ID\", {\n slug: \"plain-get-thread-by-id\",\n name: \"Get Thread By ID\",\n description: \"Fetches comprehensive details of a specific thread by ID, including customer info, status, priority, labels, and assignments. Returns null if thread not found.\",\n input: PlainGetThreadByIdInput,\n output: PlainGetThreadByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO,EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,EAC1J,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,qCAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC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AAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC1D,UAAU,kCAAkC,SAAS;CACrD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CAClE,WAAW,kCAAkC,SAAS;CACtD,WAAW,kCAAkC,SAAS;CACtD,YAAY,kCAAkC,SAAS,CAAC,CAAC,SAAS;CAClE,YAAY,8BAA8B,SAAS,CAAC,CAAC,SAAS;CAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,iBAAiB,kCAAkC,SAAS;AAC9D,CAAC;AACD,MAAM,6CAA2D,EAAE,OAAO,EACxE,QAAQ,gCAAgC,SAAS,CAAC,CAAC,SAAS,EAC9D,CAAC;AAKD,MAAa,qBAAqB,OAAO,0BAA0B;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-thread-by-id.mjs","names":[],"sources":["../../src/actions/get-thread-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetThreadByIdInput = z.object({\n id: z.string().describe(\"Unique thread identifier in format: prefix_26chars (e.g., th_01ABC...). Use LIST_THREADS or CREATE_THREAD to obtain valid IDs.\"),\n}).describe(\"Request model for fetching a thread by its ID.\");\nconst PlainGetThreadById_LabelTypeSchema = z.object({\n id: z.string().describe(\"Label type unique identifier\").nullable(),\n name: z.string().describe(\"Label type name\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_LabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainGetThreadById_LabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified\").nullable(),\n verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainGetThreadById_CustomerEmailSchema.nullable(),\n status: z.string().describe(\"Customer status\").nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n shortName: z.string().describe(\"Short/display name of the customer\").nullable().optional(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"External identifier for the customer\").nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_UserSchema = z.object({\n id: z.string().describe(\"User unique identifier\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user\").nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n ref: z.string().describe(\"Human-readable thread reference\").nullable(),\n title: z.string().describe(\"Title of the thread\").nullable().optional(),\n labels: z.array(PlainGetThreadById_LabelSchema).describe(\"Labels assigned to the thread\").nullable().optional(),\n status: z.string().describe(\"Current status of the thread\").nullable(),\n customer: PlainGetThreadById_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n assignedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n assignedTo: PlainGetThreadById_UserSchema.nullable().optional(),\n externalId: z.string().describe(\"External identifier for the thread\").nullable().optional(),\n previewText: z.string().describe(\"Preview text of the thread\").nullable().optional(),\n statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_GetThreadByIdDataSchema = z.object({\n thread: PlainGetThreadById_ThreadSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetThreadByIdOutput = z.object({\n data: PlainGetThreadById_GetThreadByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response model for fetching a thread by ID.\");\n\nexport const plainGetThreadById = action(\"PLAIN_GET_THREAD_BY_ID\", {\n slug: \"plain-get-thread-by-id\",\n name: \"Get Thread By ID\",\n description: \"Fetches comprehensive details of a specific thread by ID, including customer info, status, priority, labels, and assignments. Returns null if thread not found.\",\n input: PlainGetThreadByIdInput,\n output: PlainGetThreadByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,EAC1J,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;AACxD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,iCAAiC,EAAE,OAAO;CAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC5D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,6CAOhB;AACV,CAAC"}
@@ -2,18 +2,18 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/get-user-by-id.ts
4
4
  const PlainGetUserByIdInput = zod.z.object({ user_id: zod.z.string().describe("Unique identifier of the workspace user/team member to fetch (format: u_XXXXXX)") }).describe("Request input for fetching a user by their unique identifier.");
5
- const PlainGetUserById_StatusChangedAtSchema = zod.z.object({ iso8601: zod.z.string().describe("Timestamp when the user's status last changed in ISO 8601 format") });
5
+ const PlainGetUserById_StatusChangedAtSchema = zod.z.object({ iso8601: zod.z.string().describe("Timestamp when the user's status last changed in ISO 8601 format").nullable() }).passthrough();
6
6
  const PlainGetUserById_UserSchema = zod.z.object({
7
- id: zod.z.string().describe("Unique identifier of the user"),
8
- email: zod.z.string().describe("Email address of the user"),
9
- status: zod.z.string().describe("Current status of the user"),
10
- fullName: zod.z.string().describe("Full name of the user"),
7
+ id: zod.z.string().describe("Unique identifier of the user").nullable(),
8
+ email: zod.z.string().describe("Email address of the user").nullable(),
9
+ status: zod.z.string().describe("Current status of the user").nullable(),
10
+ fullName: zod.z.string().describe("Full name of the user").nullable(),
11
11
  avatarUrl: zod.z.string().describe("Avatar URL of the user, if available").nullable().optional(),
12
- publicName: zod.z.string().describe("Display name or short name of the user"),
12
+ publicName: zod.z.string().describe("Display name or short name of the user").nullable(),
13
13
  statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable()
14
- }).describe("User details returned by the getUser query.");
15
- const PlainGetUserById_GetUserByIdDataSchema = zod.z.object({ user: PlainGetUserById_UserSchema.nullable().optional() });
16
- const PlainGetUserByIdOutput = zod.z.object({ data: PlainGetUserById_GetUserByIdDataSchema.nullable() }).describe("Response output containing user details from Plain.");
14
+ }).passthrough().describe("User details returned by the getUser query.");
15
+ const PlainGetUserById_GetUserByIdDataSchema = zod.z.object({ user: PlainGetUserById_UserSchema.nullable().optional() }).passthrough();
16
+ const PlainGetUserByIdOutput = zod.z.object({ data: PlainGetUserById_GetUserByIdDataSchema.nullable() }).passthrough().describe("Response output containing user details from Plain.");
17
17
  const plainGetUserById = require_action.action("PLAIN_GET_USER_BY_ID", {
18
18
  slug: "plain-get-user-by-id",
19
19
  name: "Get User By ID",
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-user-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetUserByIdInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique identifier of the workspace user/team member to fetch (format: u_XXXXXX)\"),\n}).describe(\"Request input for fetching a user by their unique identifier.\");\nconst PlainGetUserById_StatusChangedAtSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"Timestamp when the user's status last changed in ISO 8601 format\"),\n});\nconst PlainGetUserById_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user\"),\n email: z.string().describe(\"Email address of the user\"),\n status: z.string().describe(\"Current status of the user\"),\n fullName: z.string().describe(\"Full name of the user\"),\n avatarUrl: z.string().describe(\"Avatar URL of the user, if available\").nullable().optional(),\n publicName: z.string().describe(\"Display name or short name of the user\"),\n statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable(),\n}).describe(\"User details returned by the getUser query.\");\nconst PlainGetUserById_GetUserByIdDataSchema: z.ZodTypeAny = z.object({\n user: PlainGetUserById_UserSchema.nullable().optional(),\n});\nexport const PlainGetUserByIdOutput: z.ZodTypeAny = z.object({\n data: PlainGetUserById_GetUserByIdDataSchema.nullable(),\n}).describe(\"Response output containing user details from Plain.\");\n\nexport const plainGetUserById = action(\"PLAIN_GET_USER_BY_ID\", {\n slug: \"plain-get-user-by-id\",\n name: \"Get User By ID\",\n description: \"Fetch workspace user/team member by ID. Returns detailed information about a workspace team member including their name, email, status, and avatar. Note: This fetches workspace users (team members), not customers. Use GET_CUSTOMER_BY_ID for customer data.\",\n input: PlainGetUserByIdInput,\n output: PlainGetUserByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,EAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAChH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,yCAAuDA,IAAAA,EAAE,OAAO,EACpE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,EACjG,CAAC;AACD,MAAM,8BAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACrD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACxE,iBAAiB,uCAAuC,SAAS;AACnE,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,yCAAuDA,IAAAA,EAAE,OAAO,EACpE,MAAM,4BAA4B,SAAS,CAAC,CAAC,SAAS,EACxD,CAAC;AACD,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAEjE,MAAa,mBAAmBC,eAAAA,OAAO,wBAAwB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-user-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-user-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetUserByIdInput = z.object({\n user_id: z.string().describe(\"Unique identifier of the workspace user/team member to fetch (format: u_XXXXXX)\"),\n}).describe(\"Request input for fetching a user by their unique identifier.\");\nconst PlainGetUserById_StatusChangedAtSchema = z.object({\n iso8601: z.string().describe(\"Timestamp when the user's status last changed in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainGetUserById_UserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n status: z.string().describe(\"Current status of the user\").nullable(),\n fullName: z.string().describe(\"Full name of the user\").nullable(),\n avatarUrl: z.string().describe(\"Avatar URL of the user, if available\").nullable().optional(),\n publicName: z.string().describe(\"Display name or short name of the user\").nullable(),\n statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable(),\n}).passthrough().describe(\"User details returned by the getUser query.\");\nconst PlainGetUserById_GetUserByIdDataSchema = z.object({\n user: PlainGetUserById_UserSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetUserByIdOutput = z.object({\n data: PlainGetUserById_GetUserByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response output containing user details from Plain.\");\n\nexport const plainGetUserById = action(\"PLAIN_GET_USER_BY_ID\", {\n slug: \"plain-get-user-by-id\",\n name: \"Get User By ID\",\n description: \"Fetch workspace user/team member by ID. Returns detailed information about a workspace team member including their name, email, status, and avatar. Note: This fetches workspace users (team members), not customers. Use GET_CUSTOMER_BY_ID for customer data.\",\n input: PlainGetUserByIdInput,\n output: PlainGetUserByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAChH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,yCAAyCA,IAAAA,EAAE,OAAO,EACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,EAC5G,CAAC,CAAC,CAAC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