@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
@@ -4,7 +4,7 @@ let zod = require("zod");
4
4
  const PlainCreateThreadInput = zod.z.object({
5
5
  title: zod.z.string().describe("Title of the new thread"),
6
6
  assignedTo: zod.z.object({ userId: zod.z.string().describe("Plain user ID to assign the thread to") }).describe("Optional user assignment for the thread").optional(),
7
- components: zod.z.array(zod.z.object({ componentText: zod.z.object({ text: zod.z.string().describe("Text content of the component") }).describe("A text component to include in the thread").optional() })).describe("Optional list of content components for the thread").optional(),
7
+ components: zod.z.array(zod.z.object({ componentText: zod.z.object({ text: zod.z.string().describe("Text content of the component") }).describe("A text component to include in the thread").optional() }).passthrough()).describe("Optional list of content components for the thread").optional(),
8
8
  labelTypeIds: zod.z.array(zod.z.string()).describe("Optional list of label type IDs to assign").optional(),
9
9
  customerIdentifier: zod.z.object({
10
10
  customerId: zod.z.string().describe("Plain customer ID to identify the customer").optional(),
@@ -13,32 +13,32 @@ const PlainCreateThreadInput = zod.z.object({
13
13
  }).describe("Identifier object for the customer")
14
14
  });
15
15
  const PlainCreateThread_ThreadLabelTypeSchema = zod.z.object({
16
- id: zod.z.string().describe("LabelType unique identifier"),
17
- name: zod.z.string().describe("LabelType name")
18
- });
16
+ id: zod.z.string().describe("LabelType unique identifier").nullable(),
17
+ name: zod.z.string().describe("LabelType name").nullable()
18
+ }).passthrough();
19
19
  const PlainCreateThread_ThreadLabelSchema = zod.z.object({
20
- id: zod.z.string().describe("Label unique identifier"),
20
+ id: zod.z.string().describe("Label unique identifier").nullable(),
21
21
  labelType: PlainCreateThread_ThreadLabelTypeSchema.nullable()
22
- });
23
- const PlainCreateThread_CustomerEmailSchema = zod.z.object({ email: zod.z.string().describe("Email address of the customer") });
22
+ }).passthrough();
23
+ const PlainCreateThread_CustomerEmailSchema = zod.z.object({ email: zod.z.string().describe("Email address of the customer").nullable() }).passthrough();
24
24
  const PlainCreateThread_CustomerSchema = zod.z.object({
25
- id: zod.z.string().describe("Customer unique identifier"),
25
+ id: zod.z.string().describe("Customer unique identifier").nullable(),
26
26
  email: PlainCreateThread_CustomerEmailSchema.nullable(),
27
- fullName: zod.z.string().describe("Full name of the customer")
28
- });
29
- const PlainCreateThread_StatusChangedAtSchema = zod.z.object({ iso8601: zod.z.string().describe("Timestamp of last status change in ISO8601 format") });
27
+ fullName: zod.z.string().describe("Full name of the customer").nullable()
28
+ }).passthrough();
29
+ const PlainCreateThread_StatusChangedAtSchema = zod.z.object({ iso8601: zod.z.string().describe("Timestamp of last status change in ISO8601 format").nullable() }).passthrough();
30
30
  const PlainCreateThread_ThreadSchema = zod.z.object({
31
- id: zod.z.string().describe("Thread unique identifier"),
32
- title: zod.z.string().describe("Title of the thread"),
31
+ id: zod.z.string().describe("Thread unique identifier").nullable(),
32
+ title: zod.z.string().describe("Title of the thread").nullable(),
33
33
  labels: zod.z.array(PlainCreateThread_ThreadLabelSchema).describe("Labels assigned to the thread"),
34
- status: zod.z.string().describe("Current status of the thread"),
34
+ status: zod.z.string().describe("Current status of the thread").nullable(),
35
35
  customer: PlainCreateThread_CustomerSchema.nullable(),
36
- priority: zod.z.number().int().describe("Priority level of the thread"),
36
+ priority: zod.z.number().int().describe("Priority level of the thread").nullable(),
37
37
  statusChangedAt: PlainCreateThread_StatusChangedAtSchema.nullable()
38
- });
39
- const PlainCreateThread_CreateThreadDataSchema = zod.z.object({ thread: PlainCreateThread_ThreadSchema.nullable().optional() });
40
- const PlainCreateThread_CreateThreadPayloadSchema = zod.z.object({ createThread: PlainCreateThread_CreateThreadDataSchema.nullable() });
41
- const PlainCreateThreadOutput = zod.z.object({ data: PlainCreateThread_CreateThreadPayloadSchema.nullable() });
38
+ }).passthrough();
39
+ const PlainCreateThread_CreateThreadDataSchema = zod.z.object({ thread: PlainCreateThread_ThreadSchema.nullable().optional() }).passthrough();
40
+ const PlainCreateThread_CreateThreadPayloadSchema = zod.z.object({ createThread: PlainCreateThread_CreateThreadDataSchema.nullable() }).passthrough();
41
+ const PlainCreateThreadOutput = zod.z.object({ data: PlainCreateThread_CreateThreadPayloadSchema.nullable() }).passthrough();
42
42
  const plainCreateThread = require_action.action("PLAIN_CREATE_THREAD", {
43
43
  slug: "plain-create-thread",
44
44
  name: "Create Thread",
@@ -1 +1 @@
1
- {"version":3,"file":"create-thread.cjs","names":["z","action"],"sources":["../../src/actions/create-thread.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainCreateThreadInput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Title of the new thread\"),\n assignedTo: z.object({\n userId: z.string().describe(\"Plain user ID to assign the thread to\"),\n}).describe(\"Optional user assignment for the thread\").optional(),\n components: z.array(z.object({\n componentText: z.object({\n text: z.string().describe(\"Text content of the component\"),\n}).describe(\"A text component to include in the thread\").optional(),\n})).describe(\"Optional list of content components for the thread\").optional(),\n labelTypeIds: z.array(z.string()).describe(\"Optional list of label type IDs to assign\").optional(),\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 object for the customer\"),\n});\nconst PlainCreateThread_ThreadLabelTypeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"LabelType unique identifier\"),\n name: z.string().describe(\"LabelType name\"),\n});\nconst PlainCreateThread_ThreadLabelSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Label unique identifier\"),\n labelType: PlainCreateThread_ThreadLabelTypeSchema.nullable(),\n});\nconst PlainCreateThread_CustomerEmailSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the customer\"),\n});\nconst PlainCreateThread_CustomerSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Customer unique identifier\"),\n email: PlainCreateThread_CustomerEmailSchema.nullable(),\n fullName: z.string().describe(\"Full name of the customer\"),\n});\nconst PlainCreateThread_StatusChangedAtSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"Timestamp of last status change in ISO8601 format\"),\n});\nconst PlainCreateThread_ThreadSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Thread unique identifier\"),\n title: z.string().describe(\"Title of the thread\"),\n labels: z.array(PlainCreateThread_ThreadLabelSchema).describe(\"Labels assigned to the thread\"),\n status: z.string().describe(\"Current status of the thread\"),\n customer: PlainCreateThread_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\"),\n statusChangedAt: PlainCreateThread_StatusChangedAtSchema.nullable(),\n});\nconst PlainCreateThread_CreateThreadDataSchema: z.ZodTypeAny = z.object({\n thread: PlainCreateThread_ThreadSchema.nullable().optional(),\n});\nconst PlainCreateThread_CreateThreadPayloadSchema: z.ZodTypeAny = z.object({\n createThread: PlainCreateThread_CreateThreadDataSchema.nullable(),\n});\nexport const PlainCreateThreadOutput: z.ZodTypeAny = z.object({\n data: PlainCreateThread_CreateThreadPayloadSchema.nullable(),\n});\n\nexport const plainCreateThread = action(\"PLAIN_CREATE_THREAD\", {\n slug: \"plain-create-thread\",\n name: \"Create Thread\",\n description: \"Tool to create a new thread. Use after obtaining valid customer identifier.\",\n input: PlainCreateThreadInput,\n output: PlainCreateThreadOutput,\n});\n"],"mappings":"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"}
1
+ {"version":3,"file":"create-thread.cjs","names":["z","action"],"sources":["../../src/actions/create-thread.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainCreateThreadInput = z.object({\n title: z.string().describe(\"Title of the new thread\"),\n assignedTo: z.object({\n userId: z.string().describe(\"Plain user ID to assign the thread to\"),\n}).describe(\"Optional user assignment for the thread\").optional(),\n components: z.array(z.object({\n componentText: z.object({\n text: z.string().describe(\"Text content of the component\"),\n}).describe(\"A text component to include in the thread\").optional(),\n}).passthrough()).describe(\"Optional list of content components for the thread\").optional(),\n labelTypeIds: z.array(z.string()).describe(\"Optional list of label type IDs to assign\").optional(),\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 object for the customer\"),\n});\nconst PlainCreateThread_ThreadLabelTypeSchema = z.object({\n id: z.string().describe(\"LabelType unique identifier\").nullable(),\n name: z.string().describe(\"LabelType name\").nullable(),\n}).passthrough();\nconst PlainCreateThread_ThreadLabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainCreateThread_ThreadLabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainCreateThread_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n}).passthrough();\nconst PlainCreateThread_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainCreateThread_CustomerEmailSchema.nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n}).passthrough();\nconst PlainCreateThread_StatusChangedAtSchema = z.object({\n iso8601: z.string().describe(\"Timestamp of last status change in ISO8601 format\").nullable(),\n}).passthrough();\nconst PlainCreateThread_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n title: z.string().describe(\"Title of the thread\").nullable(),\n labels: z.array(PlainCreateThread_ThreadLabelSchema).describe(\"Labels assigned to the thread\"),\n status: z.string().describe(\"Current status of the thread\").nullable(),\n customer: PlainCreateThread_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\n statusChangedAt: PlainCreateThread_StatusChangedAtSchema.nullable(),\n}).passthrough();\nconst PlainCreateThread_CreateThreadDataSchema = z.object({\n thread: PlainCreateThread_ThreadSchema.nullable().optional(),\n}).passthrough();\nconst PlainCreateThread_CreateThreadPayloadSchema = z.object({\n createThread: PlainCreateThread_CreateThreadDataSchema.nullable(),\n}).passthrough();\nexport const PlainCreateThreadOutput = z.object({\n data: PlainCreateThread_CreateThreadPayloadSchema.nullable(),\n}).passthrough();\n\nexport const plainCreateThread = action(\"PLAIN_CREATE_THREAD\", {\n slug: \"plain-create-thread\",\n name: \"Create Thread\",\n description: \"Tool to create a new thread. Use after obtaining valid customer identifier.\",\n input: PlainCreateThreadInput,\n output: PlainCreateThreadOutput,\n});\n"],"mappings":"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"}
@@ -1,9 +1,70 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-thread.d.ts
4
- declare const PlainCreateThreadInput: z.ZodTypeAny;
5
- declare const PlainCreateThreadOutput: z.ZodTypeAny;
6
- declare const plainCreateThread: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainCreateThreadInput: z.ZodObject<{
5
+ title: z.ZodString;
6
+ assignedTo: z.ZodOptional<z.ZodObject<{
7
+ userId: z.ZodString;
8
+ }, z.core.$strip>>;
9
+ components: z.ZodOptional<z.ZodArray<z.ZodObject<{
10
+ componentText: z.ZodOptional<z.ZodObject<{
11
+ text: z.ZodString;
12
+ }, z.core.$strip>>;
13
+ }, z.core.$loose>>>;
14
+ labelTypeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
+ customerIdentifier: z.ZodObject<{
16
+ customerId: z.ZodOptional<z.ZodString>;
17
+ externalId: z.ZodOptional<z.ZodString>;
18
+ emailAddress: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ }, z.core.$strip>;
21
+ declare const PlainCreateThreadOutput: z.ZodObject<{
22
+ data: z.ZodNullable<z.ZodObject<{
23
+ createThread: z.ZodNullable<z.ZodObject<{
24
+ thread: z.ZodOptional<z.ZodNullable<z.ZodObject<{
25
+ id: z.ZodNullable<z.ZodString>;
26
+ title: z.ZodNullable<z.ZodString>;
27
+ labels: z.ZodArray<z.ZodObject<{
28
+ id: z.ZodNullable<z.ZodString>;
29
+ labelType: z.ZodNullable<z.ZodObject<{
30
+ id: z.ZodNullable<z.ZodString>;
31
+ name: z.ZodNullable<z.ZodString>;
32
+ }, z.core.$loose>>;
33
+ }, z.core.$loose>>;
34
+ status: z.ZodNullable<z.ZodString>;
35
+ customer: z.ZodNullable<z.ZodObject<{
36
+ id: z.ZodNullable<z.ZodString>;
37
+ email: z.ZodNullable<z.ZodObject<{
38
+ email: z.ZodNullable<z.ZodString>;
39
+ }, z.core.$loose>>;
40
+ fullName: z.ZodNullable<z.ZodString>;
41
+ }, z.core.$loose>>;
42
+ priority: z.ZodNullable<z.ZodNumber>;
43
+ statusChangedAt: z.ZodNullable<z.ZodObject<{
44
+ iso8601: z.ZodNullable<z.ZodString>;
45
+ }, z.core.$loose>>;
46
+ }, z.core.$loose>>>;
47
+ }, z.core.$loose>>;
48
+ }, z.core.$loose>>;
49
+ }, z.core.$loose>;
50
+ declare const plainCreateThread: import("@keystrokehq/action").WorkflowActionDefinition<{
51
+ title: string;
52
+ customerIdentifier: {
53
+ customerId?: string | undefined;
54
+ externalId?: string | undefined;
55
+ emailAddress?: string | undefined;
56
+ };
57
+ assignedTo?: {
58
+ userId: string;
59
+ } | undefined;
60
+ components?: {
61
+ [x: string]: unknown;
62
+ componentText?: {
63
+ text: string;
64
+ } | undefined;
65
+ }[] | undefined;
66
+ labelTypeIds?: string[] | undefined;
67
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
68
  //#endregion
8
69
  export { plainCreateThread };
9
70
  //# sourceMappingURL=create-thread.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-thread.d.cts","names":[],"sources":["../../src/actions/create-thread.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAgBrC;AAAA,cAmCW,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cAEW,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-thread.d.cts","names":[],"sources":["../../src/actions/create-thread.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAmDtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
@@ -1,9 +1,70 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-thread.d.ts
4
- declare const PlainCreateThreadInput: z.ZodTypeAny;
5
- declare const PlainCreateThreadOutput: z.ZodTypeAny;
6
- declare const plainCreateThread: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainCreateThreadInput: z.ZodObject<{
5
+ title: z.ZodString;
6
+ assignedTo: z.ZodOptional<z.ZodObject<{
7
+ userId: z.ZodString;
8
+ }, z.core.$strip>>;
9
+ components: z.ZodOptional<z.ZodArray<z.ZodObject<{
10
+ componentText: z.ZodOptional<z.ZodObject<{
11
+ text: z.ZodString;
12
+ }, z.core.$strip>>;
13
+ }, z.core.$loose>>>;
14
+ labelTypeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
+ customerIdentifier: z.ZodObject<{
16
+ customerId: z.ZodOptional<z.ZodString>;
17
+ externalId: z.ZodOptional<z.ZodString>;
18
+ emailAddress: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ }, z.core.$strip>;
21
+ declare const PlainCreateThreadOutput: z.ZodObject<{
22
+ data: z.ZodNullable<z.ZodObject<{
23
+ createThread: z.ZodNullable<z.ZodObject<{
24
+ thread: z.ZodOptional<z.ZodNullable<z.ZodObject<{
25
+ id: z.ZodNullable<z.ZodString>;
26
+ title: z.ZodNullable<z.ZodString>;
27
+ labels: z.ZodArray<z.ZodObject<{
28
+ id: z.ZodNullable<z.ZodString>;
29
+ labelType: z.ZodNullable<z.ZodObject<{
30
+ id: z.ZodNullable<z.ZodString>;
31
+ name: z.ZodNullable<z.ZodString>;
32
+ }, z.core.$loose>>;
33
+ }, z.core.$loose>>;
34
+ status: z.ZodNullable<z.ZodString>;
35
+ customer: z.ZodNullable<z.ZodObject<{
36
+ id: z.ZodNullable<z.ZodString>;
37
+ email: z.ZodNullable<z.ZodObject<{
38
+ email: z.ZodNullable<z.ZodString>;
39
+ }, z.core.$loose>>;
40
+ fullName: z.ZodNullable<z.ZodString>;
41
+ }, z.core.$loose>>;
42
+ priority: z.ZodNullable<z.ZodNumber>;
43
+ statusChangedAt: z.ZodNullable<z.ZodObject<{
44
+ iso8601: z.ZodNullable<z.ZodString>;
45
+ }, z.core.$loose>>;
46
+ }, z.core.$loose>>>;
47
+ }, z.core.$loose>>;
48
+ }, z.core.$loose>>;
49
+ }, z.core.$loose>;
50
+ declare const plainCreateThread: import("@keystrokehq/action").WorkflowActionDefinition<{
51
+ title: string;
52
+ customerIdentifier: {
53
+ customerId?: string | undefined;
54
+ externalId?: string | undefined;
55
+ emailAddress?: string | undefined;
56
+ };
57
+ assignedTo?: {
58
+ userId: string;
59
+ } | undefined;
60
+ components?: {
61
+ [x: string]: unknown;
62
+ componentText?: {
63
+ text: string;
64
+ } | undefined;
65
+ }[] | undefined;
66
+ labelTypeIds?: string[] | undefined;
67
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
68
  //#endregion
8
69
  export { plainCreateThread };
9
70
  //# sourceMappingURL=create-thread.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-thread.d.mts","names":[],"sources":["../../src/actions/create-thread.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAgBrC;AAAA,cAmCW,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cAEW,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-thread.d.mts","names":[],"sources":["../../src/actions/create-thread.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAmDtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIvB,iBAAA,gCAAiB,wBAAA"}
@@ -4,7 +4,7 @@ import { z } from "zod";
4
4
  const PlainCreateThreadInput = z.object({
5
5
  title: z.string().describe("Title of the new thread"),
6
6
  assignedTo: z.object({ userId: z.string().describe("Plain user ID to assign the thread to") }).describe("Optional user assignment for the thread").optional(),
7
- components: z.array(z.object({ componentText: z.object({ text: z.string().describe("Text content of the component") }).describe("A text component to include in the thread").optional() })).describe("Optional list of content components for the thread").optional(),
7
+ components: z.array(z.object({ componentText: z.object({ text: z.string().describe("Text content of the component") }).describe("A text component to include in the thread").optional() }).passthrough()).describe("Optional list of content components for the thread").optional(),
8
8
  labelTypeIds: z.array(z.string()).describe("Optional list of label type IDs to assign").optional(),
9
9
  customerIdentifier: z.object({
10
10
  customerId: z.string().describe("Plain customer ID to identify the customer").optional(),
@@ -13,37 +13,37 @@ const PlainCreateThreadInput = z.object({
13
13
  }).describe("Identifier object for the customer")
14
14
  });
15
15
  const PlainCreateThread_ThreadLabelTypeSchema = z.object({
16
- id: z.string().describe("LabelType unique identifier"),
17
- name: z.string().describe("LabelType name")
18
- });
16
+ id: z.string().describe("LabelType unique identifier").nullable(),
17
+ name: z.string().describe("LabelType name").nullable()
18
+ }).passthrough();
19
19
  const PlainCreateThread_ThreadLabelSchema = z.object({
20
- id: z.string().describe("Label unique identifier"),
20
+ id: z.string().describe("Label unique identifier").nullable(),
21
21
  labelType: PlainCreateThread_ThreadLabelTypeSchema.nullable()
22
- });
23
- const PlainCreateThread_CustomerEmailSchema = z.object({ email: z.string().describe("Email address of the customer") });
22
+ }).passthrough();
23
+ const PlainCreateThread_CustomerEmailSchema = z.object({ email: z.string().describe("Email address of the customer").nullable() }).passthrough();
24
24
  const PlainCreateThread_CustomerSchema = z.object({
25
- id: z.string().describe("Customer unique identifier"),
25
+ id: z.string().describe("Customer unique identifier").nullable(),
26
26
  email: PlainCreateThread_CustomerEmailSchema.nullable(),
27
- fullName: z.string().describe("Full name of the customer")
28
- });
29
- const PlainCreateThread_StatusChangedAtSchema = z.object({ iso8601: z.string().describe("Timestamp of last status change in ISO8601 format") });
27
+ fullName: z.string().describe("Full name of the customer").nullable()
28
+ }).passthrough();
29
+ const PlainCreateThread_StatusChangedAtSchema = z.object({ iso8601: z.string().describe("Timestamp of last status change in ISO8601 format").nullable() }).passthrough();
30
30
  const PlainCreateThread_ThreadSchema = z.object({
31
- id: z.string().describe("Thread unique identifier"),
32
- title: z.string().describe("Title of the thread"),
31
+ id: z.string().describe("Thread unique identifier").nullable(),
32
+ title: z.string().describe("Title of the thread").nullable(),
33
33
  labels: z.array(PlainCreateThread_ThreadLabelSchema).describe("Labels assigned to the thread"),
34
- status: z.string().describe("Current status of the thread"),
34
+ status: z.string().describe("Current status of the thread").nullable(),
35
35
  customer: PlainCreateThread_CustomerSchema.nullable(),
36
- priority: z.number().int().describe("Priority level of the thread"),
36
+ priority: z.number().int().describe("Priority level of the thread").nullable(),
37
37
  statusChangedAt: PlainCreateThread_StatusChangedAtSchema.nullable()
38
- });
39
- const PlainCreateThread_CreateThreadDataSchema = z.object({ thread: PlainCreateThread_ThreadSchema.nullable().optional() });
40
- const PlainCreateThread_CreateThreadPayloadSchema = z.object({ createThread: PlainCreateThread_CreateThreadDataSchema.nullable() });
38
+ }).passthrough();
39
+ const PlainCreateThread_CreateThreadDataSchema = z.object({ thread: PlainCreateThread_ThreadSchema.nullable().optional() }).passthrough();
40
+ const PlainCreateThread_CreateThreadPayloadSchema = z.object({ createThread: PlainCreateThread_CreateThreadDataSchema.nullable() }).passthrough();
41
41
  const plainCreateThread = action("PLAIN_CREATE_THREAD", {
42
42
  slug: "plain-create-thread",
43
43
  name: "Create Thread",
44
44
  description: "Tool to create a new thread. Use after obtaining valid customer identifier.",
45
45
  input: PlainCreateThreadInput,
46
- output: z.object({ data: PlainCreateThread_CreateThreadPayloadSchema.nullable() })
46
+ output: z.object({ data: PlainCreateThread_CreateThreadPayloadSchema.nullable() }).passthrough()
47
47
  });
48
48
  //#endregion
49
49
  export { plainCreateThread };
@@ -1 +1 @@
1
- {"version":3,"file":"create-thread.mjs","names":[],"sources":["../../src/actions/create-thread.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainCreateThreadInput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Title of the new thread\"),\n assignedTo: z.object({\n userId: z.string().describe(\"Plain user ID to assign the thread to\"),\n}).describe(\"Optional user assignment for the thread\").optional(),\n components: z.array(z.object({\n componentText: z.object({\n text: z.string().describe(\"Text content of the component\"),\n}).describe(\"A text component to include in the thread\").optional(),\n})).describe(\"Optional list of content components for the thread\").optional(),\n labelTypeIds: z.array(z.string()).describe(\"Optional list of label type IDs to assign\").optional(),\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 object for the customer\"),\n});\nconst PlainCreateThread_ThreadLabelTypeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"LabelType unique identifier\"),\n name: z.string().describe(\"LabelType name\"),\n});\nconst PlainCreateThread_ThreadLabelSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Label unique identifier\"),\n labelType: PlainCreateThread_ThreadLabelTypeSchema.nullable(),\n});\nconst PlainCreateThread_CustomerEmailSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the customer\"),\n});\nconst PlainCreateThread_CustomerSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Customer unique identifier\"),\n email: PlainCreateThread_CustomerEmailSchema.nullable(),\n fullName: z.string().describe(\"Full name of the customer\"),\n});\nconst PlainCreateThread_StatusChangedAtSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"Timestamp of last status change in ISO8601 format\"),\n});\nconst PlainCreateThread_ThreadSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Thread unique identifier\"),\n title: z.string().describe(\"Title of the thread\"),\n labels: z.array(PlainCreateThread_ThreadLabelSchema).describe(\"Labels assigned to the thread\"),\n status: z.string().describe(\"Current status of the thread\"),\n customer: PlainCreateThread_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\"),\n statusChangedAt: PlainCreateThread_StatusChangedAtSchema.nullable(),\n});\nconst PlainCreateThread_CreateThreadDataSchema: z.ZodTypeAny = z.object({\n thread: PlainCreateThread_ThreadSchema.nullable().optional(),\n});\nconst PlainCreateThread_CreateThreadPayloadSchema: z.ZodTypeAny = z.object({\n createThread: PlainCreateThread_CreateThreadDataSchema.nullable(),\n});\nexport const PlainCreateThreadOutput: z.ZodTypeAny = z.object({\n data: PlainCreateThread_CreateThreadPayloadSchema.nullable(),\n});\n\nexport const plainCreateThread = action(\"PLAIN_CREATE_THREAD\", {\n slug: \"plain-create-thread\",\n name: \"Create Thread\",\n description: \"Tool to create a new thread. Use after obtaining valid customer identifier.\",\n input: PlainCreateThreadInput,\n output: PlainCreateThreadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,YAAY,EAAE,OAAO,EACrB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,EACrE,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9D,YAAY,EAAE,MAAM,EAAE,OAAO,EAC7B,eAAe,EAAE,OAAO,EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,EAC3D,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,EAClE,CAAC,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1E,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,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,oCAAoC;AAChD,CAAC;AACD,MAAM,0CAAwD,EAAE,OAAO;CACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;AAC5C,CAAC;AACD,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACjD,WAAW,wCAAwC,SAAS;AAC9D,CAAC;AACD,MAAM,wCAAsD,EAAE,OAAO,EACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,EAC5D,CAAC;AACD,MAAM,mCAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACpD,OAAO,sCAAsC,SAAS;CACtD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AAC3D,CAAC;AACD,MAAM,0CAAwD,EAAE,OAAO,EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,EAClF,CAAC;AACD,MAAM,iCAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAChD,QAAQ,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,+BAA+B;CAC7F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC1D,UAAU,iCAAiC,SAAS;CACpD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CAClE,iBAAiB,wCAAwC,SAAS;AACpE,CAAC;AACD,MAAM,2CAAyD,EAAE,OAAO,EACtE,QAAQ,+BAA+B,SAAS,CAAC,CAAC,SAAS,EAC7D,CAAC;AACD,MAAM,8CAA4D,EAAE,OAAO,EACzE,cAAc,yCAAyC,SAAS,EAClE,CAAC;AAKD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmD,EAAE,OAAO,EAC5D,MAAM,4CAA4C,SAAS,EAC7D,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"create-thread.mjs","names":[],"sources":["../../src/actions/create-thread.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainCreateThreadInput = z.object({\n title: z.string().describe(\"Title of the new thread\"),\n assignedTo: z.object({\n userId: z.string().describe(\"Plain user ID to assign the thread to\"),\n}).describe(\"Optional user assignment for the thread\").optional(),\n components: z.array(z.object({\n componentText: z.object({\n text: z.string().describe(\"Text content of the component\"),\n}).describe(\"A text component to include in the thread\").optional(),\n}).passthrough()).describe(\"Optional list of content components for the thread\").optional(),\n labelTypeIds: z.array(z.string()).describe(\"Optional list of label type IDs to assign\").optional(),\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 object for the customer\"),\n});\nconst PlainCreateThread_ThreadLabelTypeSchema = z.object({\n id: z.string().describe(\"LabelType unique identifier\").nullable(),\n name: z.string().describe(\"LabelType name\").nullable(),\n}).passthrough();\nconst PlainCreateThread_ThreadLabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainCreateThread_ThreadLabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainCreateThread_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n}).passthrough();\nconst PlainCreateThread_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainCreateThread_CustomerEmailSchema.nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n}).passthrough();\nconst PlainCreateThread_StatusChangedAtSchema = z.object({\n iso8601: z.string().describe(\"Timestamp of last status change in ISO8601 format\").nullable(),\n}).passthrough();\nconst PlainCreateThread_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n title: z.string().describe(\"Title of the thread\").nullable(),\n labels: z.array(PlainCreateThread_ThreadLabelSchema).describe(\"Labels assigned to the thread\"),\n status: z.string().describe(\"Current status of the thread\").nullable(),\n customer: PlainCreateThread_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\n statusChangedAt: PlainCreateThread_StatusChangedAtSchema.nullable(),\n}).passthrough();\nconst PlainCreateThread_CreateThreadDataSchema = z.object({\n thread: PlainCreateThread_ThreadSchema.nullable().optional(),\n}).passthrough();\nconst PlainCreateThread_CreateThreadPayloadSchema = z.object({\n createThread: PlainCreateThread_CreateThreadDataSchema.nullable(),\n}).passthrough();\nexport const PlainCreateThreadOutput = z.object({\n data: PlainCreateThread_CreateThreadPayloadSchema.nullable(),\n}).passthrough();\n\nexport const plainCreateThread = action(\"PLAIN_CREATE_THREAD\", {\n slug: \"plain-create-thread\",\n name: \"Create Thread\",\n description: \"Tool to create a new thread. Use after obtaining valid customer identifier.\",\n input: PlainCreateThreadInput,\n output: PlainCreateThreadOutput,\n});\n"],"mappings":"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"}
@@ -3,17 +3,17 @@ let zod = require("zod");
3
3
  //#region src/actions/delete-customer.ts
4
4
  const PlainDeleteCustomerInput = zod.z.object({ customer_id: zod.z.string().describe("Unique identifier of the customer to delete, as returned by the Plain API.") });
5
5
  const PlainDeleteCustomer_DeleteCustomerErrorFieldSchema = zod.z.object({
6
- type: zod.z.string().describe("Type of the error for the field."),
7
- field: zod.z.string().describe("Name of the field with the error."),
8
- message: zod.z.string().describe("Validation message for the field.")
9
- });
6
+ type: zod.z.string().describe("Type of the error for the field.").nullable(),
7
+ field: zod.z.string().describe("Name of the field with the error.").nullable(),
8
+ message: zod.z.string().describe("Validation message for the field.").nullable()
9
+ }).passthrough();
10
10
  const PlainDeleteCustomer_DeleteCustomerErrorSchema = zod.z.object({
11
- code: zod.z.string().describe("Error code."),
12
- type: zod.z.string().describe("Error type."),
11
+ code: zod.z.string().describe("Error code.").nullable(),
12
+ type: zod.z.string().describe("Error type.").nullable(),
13
13
  fields: zod.z.array(PlainDeleteCustomer_DeleteCustomerErrorFieldSchema).describe("List of field-specific errors."),
14
- message: zod.z.string().describe("Error message.")
15
- });
16
- const PlainDeleteCustomerOutput = zod.z.object({ error: PlainDeleteCustomer_DeleteCustomerErrorSchema.nullable().optional() });
14
+ message: zod.z.string().describe("Error message.").nullable()
15
+ }).passthrough();
16
+ const PlainDeleteCustomerOutput = zod.z.object({ error: PlainDeleteCustomer_DeleteCustomerErrorSchema.nullable().optional() }).passthrough();
17
17
  const plainDeleteCustomer = require_action.action("PLAIN_DELETE_CUSTOMER", {
18
18
  slug: "plain-delete-customer",
19
19
  name: "Delete Customer",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-customer.cjs","names":["z","action"],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainDeleteCustomerInput: z.ZodTypeAny = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete, as returned by the Plain API.\"),\n});\nconst PlainDeleteCustomer_DeleteCustomerErrorFieldSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of the error for the field.\"),\n field: z.string().describe(\"Name of the field with the error.\"),\n message: z.string().describe(\"Validation message for the field.\"),\n});\nconst PlainDeleteCustomer_DeleteCustomerErrorSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Error code.\"),\n type: z.string().describe(\"Error type.\"),\n fields: z.array(PlainDeleteCustomer_DeleteCustomerErrorFieldSchema).describe(\"List of field-specific errors.\"),\n message: z.string().describe(\"Error message.\"),\n});\nexport const PlainDeleteCustomerOutput: z.ZodTypeAny = z.object({\n error: PlainDeleteCustomer_DeleteCustomerErrorSchema.nullable().optional(),\n});\n\nexport const plainDeleteCustomer = action(\"PLAIN_DELETE_CUSTOMER\", {\n slug: \"plain-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete a customer from the system. Use when you need to remove a customer by their ID.\",\n input: PlainDeleteCustomerInput,\n output: PlainDeleteCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,EAC/G,CAAC;AACD,MAAM,qDAAmEA,IAAAA,EAAE,OAAO;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;AAClE,CAAC;AACD,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACvC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACvC,QAAQA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,gCAAgC;CAC7G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;AAC/C,CAAC;AACD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,OAAO,8CAA8C,SAAS,CAAC,CAAC,SAAS,EAC3E,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-customer.cjs","names":["z","action"],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainDeleteCustomerInput = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete, as returned by the Plain API.\"),\n});\nconst PlainDeleteCustomer_DeleteCustomerErrorFieldSchema = z.object({\n type: z.string().describe(\"Type of the error for the field.\").nullable(),\n field: z.string().describe(\"Name of the field with the error.\").nullable(),\n message: z.string().describe(\"Validation message for the field.\").nullable(),\n}).passthrough();\nconst PlainDeleteCustomer_DeleteCustomerErrorSchema = z.object({\n code: z.string().describe(\"Error code.\").nullable(),\n type: z.string().describe(\"Error type.\").nullable(),\n fields: z.array(PlainDeleteCustomer_DeleteCustomerErrorFieldSchema).describe(\"List of field-specific errors.\"),\n message: z.string().describe(\"Error message.\").nullable(),\n}).passthrough();\nexport const PlainDeleteCustomerOutput = z.object({\n error: PlainDeleteCustomer_DeleteCustomerErrorSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainDeleteCustomer = action(\"PLAIN_DELETE_CUSTOMER\", {\n slug: \"plain-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete a customer from the system. Use when you need to remove a customer by their ID.\",\n input: PlainDeleteCustomerInput,\n output: PlainDeleteCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,EAC/G,CAAC;AACD,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,QAAQA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,gCAAgC;CAC7G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,OAAO,8CAA8C,SAAS,CAAC,CAAC,SAAS,EAC3E,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-customer.d.ts
4
- declare const PlainDeleteCustomerInput: z.ZodTypeAny;
5
- declare const PlainDeleteCustomerOutput: z.ZodTypeAny;
6
- declare const plainDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainDeleteCustomerInput: z.ZodObject<{
5
+ customer_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PlainDeleteCustomerOutput: z.ZodObject<{
8
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9
+ code: z.ZodNullable<z.ZodString>;
10
+ type: z.ZodNullable<z.ZodString>;
11
+ fields: z.ZodArray<z.ZodObject<{
12
+ type: z.ZodNullable<z.ZodString>;
13
+ field: z.ZodNullable<z.ZodString>;
14
+ message: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$loose>>;
16
+ message: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$loose>>>;
18
+ }, z.core.$loose>;
19
+ declare const plainDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ customer_id: string;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { plainDeleteCustomer };
9
24
  //# sourceMappingURL=delete-customer.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-customer.d.cts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEvC;AAAA,cAYW,yBAAA,EAA2B,CAAA,CAAE,UAExC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-customer.d.cts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAcxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-customer.d.ts
4
- declare const PlainDeleteCustomerInput: z.ZodTypeAny;
5
- declare const PlainDeleteCustomerOutput: z.ZodTypeAny;
6
- declare const plainDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainDeleteCustomerInput: z.ZodObject<{
5
+ customer_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PlainDeleteCustomerOutput: z.ZodObject<{
8
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9
+ code: z.ZodNullable<z.ZodString>;
10
+ type: z.ZodNullable<z.ZodString>;
11
+ fields: z.ZodArray<z.ZodObject<{
12
+ type: z.ZodNullable<z.ZodString>;
13
+ field: z.ZodNullable<z.ZodString>;
14
+ message: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$loose>>;
16
+ message: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$loose>>>;
18
+ }, z.core.$loose>;
19
+ declare const plainDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ customer_id: string;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { plainDeleteCustomer };
9
24
  //# sourceMappingURL=delete-customer.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-customer.d.mts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEvC;AAAA,cAYW,yBAAA,EAA2B,CAAA,CAAE,UAExC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-customer.d.mts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAcxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
@@ -3,22 +3,22 @@ import { z } from "zod";
3
3
  //#region src/actions/delete-customer.ts
4
4
  const PlainDeleteCustomerInput = z.object({ customer_id: z.string().describe("Unique identifier of the customer to delete, as returned by the Plain API.") });
5
5
  const PlainDeleteCustomer_DeleteCustomerErrorFieldSchema = z.object({
6
- type: z.string().describe("Type of the error for the field."),
7
- field: z.string().describe("Name of the field with the error."),
8
- message: z.string().describe("Validation message for the field.")
9
- });
6
+ type: z.string().describe("Type of the error for the field.").nullable(),
7
+ field: z.string().describe("Name of the field with the error.").nullable(),
8
+ message: z.string().describe("Validation message for the field.").nullable()
9
+ }).passthrough();
10
10
  const PlainDeleteCustomer_DeleteCustomerErrorSchema = z.object({
11
- code: z.string().describe("Error code."),
12
- type: z.string().describe("Error type."),
11
+ code: z.string().describe("Error code.").nullable(),
12
+ type: z.string().describe("Error type.").nullable(),
13
13
  fields: z.array(PlainDeleteCustomer_DeleteCustomerErrorFieldSchema).describe("List of field-specific errors."),
14
- message: z.string().describe("Error message.")
15
- });
14
+ message: z.string().describe("Error message.").nullable()
15
+ }).passthrough();
16
16
  const plainDeleteCustomer = action("PLAIN_DELETE_CUSTOMER", {
17
17
  slug: "plain-delete-customer",
18
18
  name: "Delete Customer",
19
19
  description: "Tool to delete a customer from the system. Use when you need to remove a customer by their ID.",
20
20
  input: PlainDeleteCustomerInput,
21
- output: z.object({ error: PlainDeleteCustomer_DeleteCustomerErrorSchema.nullable().optional() })
21
+ output: z.object({ error: PlainDeleteCustomer_DeleteCustomerErrorSchema.nullable().optional() }).passthrough()
22
22
  });
23
23
  //#endregion
24
24
  export { plainDeleteCustomer };
@@ -1 +1 @@
1
- {"version":3,"file":"delete-customer.mjs","names":[],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainDeleteCustomerInput: z.ZodTypeAny = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete, as returned by the Plain API.\"),\n});\nconst PlainDeleteCustomer_DeleteCustomerErrorFieldSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of the error for the field.\"),\n field: z.string().describe(\"Name of the field with the error.\"),\n message: z.string().describe(\"Validation message for the field.\"),\n});\nconst PlainDeleteCustomer_DeleteCustomerErrorSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Error code.\"),\n type: z.string().describe(\"Error type.\"),\n fields: z.array(PlainDeleteCustomer_DeleteCustomerErrorFieldSchema).describe(\"List of field-specific errors.\"),\n message: z.string().describe(\"Error message.\"),\n});\nexport const PlainDeleteCustomerOutput: z.ZodTypeAny = z.object({\n error: PlainDeleteCustomer_DeleteCustomerErrorSchema.nullable().optional(),\n});\n\nexport const plainDeleteCustomer = action(\"PLAIN_DELETE_CUSTOMER\", {\n slug: \"plain-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete a customer from the system. Use when you need to remove a customer by their ID.\",\n input: PlainDeleteCustomerInput,\n output: PlainDeleteCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO,EAC7D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,EAC/G,CAAC;AACD,MAAM,qDAAmE,EAAE,OAAO;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;AAClE,CAAC;AACD,MAAM,gDAA8D,EAAE,OAAO;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACvC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACvC,QAAQ,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,gCAAgC;CAC7G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;AAC/C,CAAC;AAKD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqD,EAAE,OAAO,EAC9D,OAAO,8CAA8C,SAAS,CAAC,CAAC,SAAS,EAC3E,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"delete-customer.mjs","names":[],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainDeleteCustomerInput = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete, as returned by the Plain API.\"),\n});\nconst PlainDeleteCustomer_DeleteCustomerErrorFieldSchema = z.object({\n type: z.string().describe(\"Type of the error for the field.\").nullable(),\n field: z.string().describe(\"Name of the field with the error.\").nullable(),\n message: z.string().describe(\"Validation message for the field.\").nullable(),\n}).passthrough();\nconst PlainDeleteCustomer_DeleteCustomerErrorSchema = z.object({\n code: z.string().describe(\"Error code.\").nullable(),\n type: z.string().describe(\"Error type.\").nullable(),\n fields: z.array(PlainDeleteCustomer_DeleteCustomerErrorFieldSchema).describe(\"List of field-specific errors.\"),\n message: z.string().describe(\"Error message.\").nullable(),\n}).passthrough();\nexport const PlainDeleteCustomerOutput = z.object({\n error: PlainDeleteCustomer_DeleteCustomerErrorSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainDeleteCustomer = action(\"PLAIN_DELETE_CUSTOMER\", {\n slug: \"plain-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete a customer from the system. Use when you need to remove a customer by their ID.\",\n input: PlainDeleteCustomerInput,\n output: PlainDeleteCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,EAC/C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,EAC/G,CAAC;AACD,MAAM,qDAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,QAAQ,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,gCAAgC;CAC7G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,OAAO,8CAA8C,SAAS,CAAC,CAAC,SAAS,EAC3E,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -3,17 +3,17 @@ let zod = require("zod");
3
3
  //#region src/actions/delete-user.ts
4
4
  const PlainDeleteUserInput = zod.z.object({ user_id: zod.z.string().describe("Unique identifier of the user to delete, as returned by the Plain API.") });
5
5
  const PlainDeleteUser_DeleteUserErrorFieldSchema = zod.z.object({
6
- type: zod.z.string().describe("Type of the error for the field."),
7
- field: zod.z.string().describe("Name of the field with the error."),
8
- message: zod.z.string().describe("Validation message for the field.")
9
- });
6
+ type: zod.z.string().describe("Type of the error for the field.").nullable(),
7
+ field: zod.z.string().describe("Name of the field with the error.").nullable(),
8
+ message: zod.z.string().describe("Validation message for the field.").nullable()
9
+ }).passthrough();
10
10
  const PlainDeleteUser_DeleteUserErrorSchema = zod.z.object({
11
- code: zod.z.string().describe("Error code."),
12
- type: zod.z.string().describe("Error type."),
11
+ code: zod.z.string().describe("Error code.").nullable(),
12
+ type: zod.z.string().describe("Error type.").nullable(),
13
13
  fields: zod.z.array(PlainDeleteUser_DeleteUserErrorFieldSchema).describe("List of field-specific errors."),
14
- message: zod.z.string().describe("Error message.")
15
- });
16
- const PlainDeleteUserOutput = zod.z.object({ error: PlainDeleteUser_DeleteUserErrorSchema.nullable().optional() });
14
+ message: zod.z.string().describe("Error message.").nullable()
15
+ }).passthrough();
16
+ const PlainDeleteUserOutput = zod.z.object({ error: PlainDeleteUser_DeleteUserErrorSchema.nullable().optional() }).passthrough();
17
17
  const plainDeleteUser = require_action.action("PLAIN_DELETE_USER", {
18
18
  slug: "plain-delete-user",
19
19
  name: "Delete User",
@@ -1 +1 @@
1
- {"version":3,"file":"delete-user.cjs","names":["z","action"],"sources":["../../src/actions/delete-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainDeleteUserInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique identifier of the user to delete, as returned by the Plain API.\"),\n});\nconst PlainDeleteUser_DeleteUserErrorFieldSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of the error for the field.\"),\n field: z.string().describe(\"Name of the field with the error.\"),\n message: z.string().describe(\"Validation message for the field.\"),\n});\nconst PlainDeleteUser_DeleteUserErrorSchema: z.ZodTypeAny = z.object({\n code: z.string().describe(\"Error code.\"),\n type: z.string().describe(\"Error type.\"),\n fields: z.array(PlainDeleteUser_DeleteUserErrorFieldSchema).describe(\"List of field-specific errors.\"),\n message: z.string().describe(\"Error message.\"),\n});\nexport const PlainDeleteUserOutput: z.ZodTypeAny = z.object({\n error: PlainDeleteUser_DeleteUserErrorSchema.nullable().optional(),\n});\n\nexport const plainDeleteUser = action(\"PLAIN_DELETE_USER\", {\n slug: \"plain-delete-user\",\n name: \"Delete User\",\n description: \"Tool to delete a user from the system. Use when you need to remove a user by their ID after confirming existence.\",\n input: PlainDeleteUserInput,\n output: PlainDeleteUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO,EACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,EACvG,CAAC;AACD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;AAClE,CAAC;AACD,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACvC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CACvC,QAAQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gCAAgC;CACrG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;AAC/C,CAAC;AACD,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,EAC1D,OAAO,sCAAsC,SAAS,CAAC,CAAC,SAAS,EACnE,CAAC;AAED,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-user.cjs","names":["z","action"],"sources":["../../src/actions/delete-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainDeleteUserInput = z.object({\n user_id: z.string().describe(\"Unique identifier of the user to delete, as returned by the Plain API.\"),\n});\nconst PlainDeleteUser_DeleteUserErrorFieldSchema = z.object({\n type: z.string().describe(\"Type of the error for the field.\").nullable(),\n field: z.string().describe(\"Name of the field with the error.\").nullable(),\n message: z.string().describe(\"Validation message for the field.\").nullable(),\n}).passthrough();\nconst PlainDeleteUser_DeleteUserErrorSchema = z.object({\n code: z.string().describe(\"Error code.\").nullable(),\n type: z.string().describe(\"Error type.\").nullable(),\n fields: z.array(PlainDeleteUser_DeleteUserErrorFieldSchema).describe(\"List of field-specific errors.\"),\n message: z.string().describe(\"Error message.\").nullable(),\n}).passthrough();\nexport const PlainDeleteUserOutput = z.object({\n error: PlainDeleteUser_DeleteUserErrorSchema.nullable().optional(),\n}).passthrough();\n\nexport const plainDeleteUser = action(\"PLAIN_DELETE_USER\", {\n slug: \"plain-delete-user\",\n name: \"Delete User\",\n description: \"Tool to delete a user from the system. Use when you need to remove a user by their ID after confirming existence.\",\n input: PlainDeleteUserInput,\n output: PlainDeleteUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,EAC3C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,EACvG,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,QAAQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gCAAgC;CACrG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,OAAO,sCAAsC,SAAS,CAAC,CAAC,SAAS,EACnE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/delete-user.d.ts
4
- declare const PlainDeleteUserInput: z.ZodTypeAny;
5
- declare const PlainDeleteUserOutput: z.ZodTypeAny;
6
- declare const plainDeleteUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainDeleteUserInput: z.ZodObject<{
5
+ user_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PlainDeleteUserOutput: z.ZodObject<{
8
+ error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9
+ code: z.ZodNullable<z.ZodString>;
10
+ type: z.ZodNullable<z.ZodString>;
11
+ fields: z.ZodArray<z.ZodObject<{
12
+ type: z.ZodNullable<z.ZodString>;
13
+ field: z.ZodNullable<z.ZodString>;
14
+ message: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$loose>>;
16
+ message: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$loose>>>;
18
+ }, z.core.$loose>;
19
+ declare const plainDeleteUser: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ user_id: string;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { plainDeleteUser };
9
24
  //# sourceMappingURL=delete-user.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-user.d.cts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAEnC;AAAA,cAYW,qBAAA,EAAuB,CAAA,CAAE,UAEpC;AAAA,cAEW,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"delete-user.d.cts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;cAcpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIrB,eAAA,gCAAe,wBAAA"}