@keystrokehq/plain 0.1.0 → 0.1.2

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 +11 -11
  4. package/dist/actions/add-customer-to-group.cjs.map +1 -1
  5. package/dist/actions/add-customer-to-group.d.cts +47 -3
  6. package/dist/actions/add-customer-to-group.d.cts.map +1 -1
  7. package/dist/actions/add-customer-to-group.d.mts +47 -3
  8. package/dist/actions/add-customer-to-group.d.mts.map +1 -1
  9. package/dist/actions/add-customer-to-group.mjs +11 -11
  10. package/dist/actions/add-customer-to-group.mjs.map +1 -1
  11. package/dist/actions/create-customer-group.cjs +11 -11
  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 +11 -11
  18. package/dist/actions/create-customer-group.mjs.map +1 -1
  19. package/dist/actions/create-thread.cjs +11 -11
  20. package/dist/actions/create-thread.cjs.map +1 -1
  21. package/dist/actions/create-thread.d.cts +63 -3
  22. package/dist/actions/create-thread.d.cts.map +1 -1
  23. package/dist/actions/create-thread.d.mts +63 -3
  24. package/dist/actions/create-thread.d.mts.map +1 -1
  25. package/dist/actions/create-thread.mjs +11 -11
  26. package/dist/actions/create-thread.mjs.map +1 -1
  27. package/dist/actions/delete-customer.cjs +6 -6
  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 +6 -6
  34. package/dist/actions/delete-customer.mjs.map +1 -1
  35. package/dist/actions/delete-user.cjs +6 -6
  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 +6 -6
  42. package/dist/actions/delete-user.mjs.map +1 -1
  43. package/dist/actions/fetch-company.cjs +9 -9
  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 +9 -9
  50. package/dist/actions/fetch-company.mjs.map +1 -1
  51. package/dist/actions/fetch-issues.cjs +7 -7
  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 +7 -7
  58. package/dist/actions/fetch-issues.mjs.map +1 -1
  59. package/dist/actions/fetch-tier.cjs +8 -8
  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 +8 -8
  66. package/dist/actions/fetch-tier.mjs.map +1 -1
  67. package/dist/actions/get-customer-by-email.cjs +5 -5
  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 +5 -5
  74. package/dist/actions/get-customer-by-email.mjs.map +1 -1
  75. package/dist/actions/get-customer-by-id.cjs +5 -5
  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 +5 -5
  82. package/dist/actions/get-customer-by-id.mjs.map +1 -1
  83. package/dist/actions/get-customers.cjs +8 -8
  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 +8 -8
  90. package/dist/actions/get-customers.mjs.map +1 -1
  91. package/dist/actions/get-thread-by-id.cjs +14 -14
  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 +14 -14
  98. package/dist/actions/get-thread-by-id.mjs.map +1 -1
  99. package/dist/actions/get-user-by-id.cjs +6 -6
  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 +6 -6
  106. package/dist/actions/get-user-by-id.mjs.map +1 -1
  107. package/dist/actions/list-customer-groups.cjs +9 -9
  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 +9 -9
  114. package/dist/actions/list-customer-groups.mjs.map +1 -1
  115. package/dist/actions/list-tiers.cjs +4 -4
  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 +4 -4
  122. package/dist/actions/list-tiers.mjs.map +1 -1
  123. package/dist/actions/query-threads.cjs +8 -8
  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 +8 -8
  130. package/dist/actions/query-threads.mjs.map +1 -1
  131. package/dist/actions/remove-customer-from-group.cjs +6 -6
  132. package/dist/actions/remove-customer-from-group.cjs.map +1 -1
  133. package/dist/actions/remove-customer-from-group.d.cts +34 -3
  134. package/dist/actions/remove-customer-from-group.d.cts.map +1 -1
  135. package/dist/actions/remove-customer-from-group.d.mts +34 -3
  136. package/dist/actions/remove-customer-from-group.d.mts.map +1 -1
  137. package/dist/actions/remove-customer-from-group.mjs +6 -6
  138. package/dist/actions/remove-customer-from-group.mjs.map +1 -1
  139. package/dist/actions/run-graphql-query.cjs +3 -3
  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 +3 -3
  146. package/dist/actions/run-graphql-query.mjs.map +1 -1
  147. package/dist/actions/send-message.cjs +1 -1
  148. package/dist/actions/send-message.cjs.map +1 -1
  149. package/dist/actions/send-message.d.cts +59 -3
  150. package/dist/actions/send-message.d.cts.map +1 -1
  151. package/dist/actions/send-message.d.mts +59 -3
  152. package/dist/actions/send-message.d.mts.map +1 -1
  153. package/dist/actions/send-message.mjs +1 -1
  154. package/dist/actions/send-message.mjs.map +1 -1
  155. package/dist/actions/update-company.cjs +11 -11
  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 +11 -11
  162. package/dist/actions/update-company.mjs.map +1 -1
  163. package/dist/actions/update-thread.cjs +9 -9
  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 +9 -9
  170. package/dist/actions/update-thread.mjs.map +1 -1
  171. package/dist/actions/upsert-customer.cjs +10 -10
  172. package/dist/actions/upsert-customer.cjs.map +1 -1
  173. package/dist/actions/upsert-customer.d.cts +110 -3
  174. package/dist/actions/upsert-customer.d.cts.map +1 -1
  175. package/dist/actions/upsert-customer.d.mts +110 -3
  176. package/dist/actions/upsert-customer.d.mts.map +1 -1
  177. package/dist/actions/upsert-customer.mjs +10 -10
  178. package/dist/actions/upsert-customer.mjs.map +1 -1
  179. package/dist/catalog.cjs +7 -1
  180. package/dist/catalog.cjs.map +1 -1
  181. package/dist/catalog.d.cts +8 -0
  182. package/dist/catalog.d.mts +8 -0
  183. package/dist/catalog.mjs +7 -1
  184. package/dist/catalog.mjs.map +1 -1
  185. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-company.d.cts","names":[],"sources":["../../src/actions/fetch-company.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAE0H;AAAA,cAUpJ,uBAAA,EAAyB,CAAA,CAAE,UAUS;AAAA,cAEpC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-company.d.cts","names":[],"sources":["../../src/actions/fetch-company.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAYtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAYvB,iBAAA,gCAAiB,wBAAA"}
@@ -1,9 +1,32 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-company.d.ts
4
- declare const PlainFetchCompanyInput: z.ZodTypeAny;
5
- declare const PlainFetchCompanyOutput: z.ZodTypeAny;
6
- declare const plainFetchCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainFetchCompanyInput: z.ZodObject<{
5
+ company_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PlainFetchCompanyOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ name: z.ZodNullable<z.ZodString>;
10
+ logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ createdAt: z.ZodNullable<z.ZodObject<{
12
+ iso8601: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$strip>>;
14
+ isDeleted: z.ZodNullable<z.ZodBoolean>;
15
+ updatedAt: z.ZodNullable<z.ZodObject<{
16
+ iso8601: z.ZodNullable<z.ZodString>;
17
+ }, z.core.$strip>>;
18
+ domainName: z.ZodNullable<z.ZodString>;
19
+ accountOwner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
+ id: z.ZodNullable<z.ZodString>;
21
+ email: z.ZodNullable<z.ZodString>;
22
+ fullName: z.ZodNullable<z.ZodString>;
23
+ publicName: z.ZodNullable<z.ZodString>;
24
+ }, z.core.$strip>>>;
25
+ contractValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ }, z.core.$strip>;
27
+ declare const plainFetchCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ company_id: string;
29
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
30
  //#endregion
8
31
  export { plainFetchCompany };
9
32
  //# sourceMappingURL=fetch-company.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-company.d.mts","names":[],"sources":["../../src/actions/fetch-company.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAE0H;AAAA,cAUpJ,uBAAA,EAAyB,CAAA,CAAE,UAUS;AAAA,cAEpC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-company.d.mts","names":[],"sources":["../../src/actions/fetch-company.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAYtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAYvB,iBAAA,gCAAiB,wBAAA"}
@@ -2,12 +2,12 @@ import { action } from "../action.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/actions/fetch-company.ts
4
4
  const PlainFetchCompanyInput = z.object({ company_id: z.string().describe("Plain's internal ID of the company to fetch, e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED'.") }).describe("Input parameters for fetching a company by ID\n\ncompany_id: Plain's internal identifier for the company (e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED').");
5
- const PlainFetchCompany_Iso8601DateTimeSchema = z.object({ iso8601: z.string().describe("Timestamp in ISO 8601 format") }).describe("Represents a DateTime with ISO8601 format.");
5
+ const PlainFetchCompany_Iso8601DateTimeSchema = z.object({ iso8601: z.string().describe("Timestamp in ISO 8601 format").nullable() }).describe("Represents a DateTime with ISO8601 format.");
6
6
  const PlainFetchCompany_CompanyAccountOwnerSchema = z.object({
7
- id: z.string().describe("Unique ID of the account owner user"),
8
- email: z.string().describe("Email address of the account owner user"),
9
- fullName: z.string().describe("Full name of the account owner user"),
10
- publicName: z.string().describe("Public display name of the account owner user")
7
+ id: z.string().describe("Unique ID of the account owner user").nullable(),
8
+ email: z.string().describe("Email address of the account owner user").nullable(),
9
+ fullName: z.string().describe("Full name of the account owner user").nullable(),
10
+ publicName: z.string().describe("Public display name of the account owner user").nullable()
11
11
  });
12
12
  const plainFetchCompany = action("PLAIN_FETCH_COMPANY", {
13
13
  slug: "plain-fetch-company",
@@ -15,13 +15,13 @@ const plainFetchCompany = action("PLAIN_FETCH_COMPANY", {
15
15
  description: "Tool to fetch company details by ID. Use when you need the full profile of a company, including name, domain, contract value, owner info, and timestamps.",
16
16
  input: PlainFetchCompanyInput,
17
17
  output: z.object({
18
- id: z.string().describe("Unique ID of the company"),
19
- name: z.string().describe("Name of the company"),
18
+ id: z.string().describe("Unique ID of the company").nullable(),
19
+ name: z.string().describe("Name of the company").nullable(),
20
20
  logoUrl: z.string().describe("URL of the company's logo, if available").nullable().optional(),
21
21
  createdAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),
22
- isDeleted: z.boolean().describe("Flag indicating if the company is deleted"),
22
+ isDeleted: z.boolean().describe("Flag indicating if the company is deleted").nullable(),
23
23
  updatedAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),
24
- domainName: z.string().describe("Domain name of the company"),
24
+ domainName: z.string().describe("Domain name of the company").nullable(),
25
25
  accountOwner: PlainFetchCompany_CompanyAccountOwnerSchema.nullable().optional(),
26
26
  contractValue: z.number().int().describe("Contract value for the company, if any").nullable().optional()
27
27
  }).describe("Response model for company details")
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-company.mjs","names":[],"sources":["../../src/actions/fetch-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchCompanyInput: z.ZodTypeAny = z.object({\n company_id: z.string().describe(\"Plain's internal ID of the company to fetch, e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED'.\"),\n}).describe(\"Input parameters for fetching a company by ID\\n\\ncompany_id: Plain's internal identifier for the company (e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED').\");\nconst PlainFetchCompany_Iso8601DateTimeSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\"),\n}).describe(\"Represents a DateTime with ISO8601 format.\");\nconst PlainFetchCompany_CompanyAccountOwnerSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique ID of the account owner user\"),\n email: z.string().describe(\"Email address of the account owner user\"),\n fullName: z.string().describe(\"Full name of the account owner user\"),\n publicName: z.string().describe(\"Public display name of the account owner user\"),\n});\nexport const PlainFetchCompanyOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique ID of the company\"),\n name: z.string().describe(\"Name of the company\"),\n logoUrl: z.string().describe(\"URL of the company's logo, if available\").nullable().optional(),\n createdAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n isDeleted: z.boolean().describe(\"Flag indicating if the company is deleted\"),\n updatedAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company\"),\n accountOwner: PlainFetchCompany_CompanyAccountOwnerSchema.nullable().optional(),\n contractValue: z.number().int().describe(\"Contract value for the company, if any\").nullable().optional(),\n}).describe(\"Response model for company details\");\n\nexport const plainFetchCompany = action(\"PLAIN_FETCH_COMPANY\", {\n slug: \"plain-fetch-company\",\n name: \"Fetch Company\",\n description: \"Tool to fetch company details by ID. Use when you need the full profile of a company, including name, domain, contract value, owner info, and timestamps.\",\n input: PlainFetchCompanyInput,\n output: PlainFetchCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO,EAC3D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,EACxH,CAAC,CAAC,CAAC,SAAS,oJAAoJ;AAChK,MAAM,0CAAwD,EAAE,OAAO,EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,EAC7D,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,8CAA4D,EAAE,OAAO;CACzE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AACjF,CAAC;AAaD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBmD,EAAE,OAAO;EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,WAAW,wCAAwC,SAAS;EAC5D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C;EAC3E,WAAW,wCAAwC,SAAS;EAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EAC5D,cAAc,4CAA4C,SAAS,CAAC,CAAC,SAAS;EAC9E,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,SAAS,oCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-company.mjs","names":[],"sources":["../../src/actions/fetch-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchCompanyInput = z.object({\n company_id: z.string().describe(\"Plain's internal ID of the company to fetch, e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED'.\"),\n}).describe(\"Input parameters for fetching a company by ID\\n\\ncompany_id: Plain's internal identifier for the company (e.g., 'cmp_01H1P4TE62AS5KZ4CZFC0578ED').\");\nconst PlainFetchCompany_Iso8601DateTimeSchema = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\").nullable(),\n}).describe(\"Represents a DateTime with ISO8601 format.\");\nconst PlainFetchCompany_CompanyAccountOwnerSchema = z.object({\n id: z.string().describe(\"Unique ID of the account owner user\").nullable(),\n email: z.string().describe(\"Email address of the account owner user\").nullable(),\n fullName: z.string().describe(\"Full name of the account owner user\").nullable(),\n publicName: z.string().describe(\"Public display name of the account owner user\").nullable(),\n});\nexport const PlainFetchCompanyOutput = z.object({\n id: z.string().describe(\"Unique ID of the company\").nullable(),\n name: z.string().describe(\"Name of the company\").nullable(),\n logoUrl: z.string().describe(\"URL of the company's logo, if available\").nullable().optional(),\n createdAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n isDeleted: z.boolean().describe(\"Flag indicating if the company is deleted\").nullable(),\n updatedAt: PlainFetchCompany_Iso8601DateTimeSchema.nullable(),\n domainName: z.string().describe(\"Domain name of the company\").nullable(),\n accountOwner: PlainFetchCompany_CompanyAccountOwnerSchema.nullable().optional(),\n contractValue: z.number().int().describe(\"Contract value for the company, if any\").nullable().optional(),\n}).describe(\"Response model for company details\");\n\nexport const plainFetchCompany = action(\"PLAIN_FETCH_COMPANY\", {\n slug: \"plain-fetch-company\",\n name: \"Fetch Company\",\n description: \"Tool to fetch company details by ID. Use when you need the full profile of a company, including name, domain, contract value, owner info, and timestamps.\",\n input: PlainFetchCompanyInput,\n output: PlainFetchCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,EACxH,CAAC,CAAC,CAAC,SAAS,oJAAoJ;AAChK,MAAM,0CAA0C,EAAE,OAAO,EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,EACxE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC5F,CAAC;AAaD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBqC,EAAE,OAAO;EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,WAAW,wCAAwC,SAAS;EAC5D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACtF,WAAW,wCAAwC,SAAS;EAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACvE,cAAc,4CAA4C,SAAS,CAAC,CAAC,SAAS;EAC9E,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,SAAS,oCAOF;AACV,CAAC"}
@@ -7,19 +7,19 @@ const PlainFetchIssuesInput = zod.z.object({
7
7
  threadFirst: zod.z.number().int().default(50).describe("Maximum number of customer threads to fetch. Must be between 1-100. Defaults to 50.").optional()
8
8
  }).describe("Request parameters for fetching issue links associated with a customer.");
9
9
  const PlainFetchIssues_IssueSchema = zod.z.object({
10
- id: zod.z.string().describe("The internal Plain ID of the link resource."),
11
- url: zod.z.string().describe("Direct URL to view the external issue in its source system."),
10
+ id: zod.z.string().describe("The internal Plain ID of the link resource.").nullable(),
11
+ url: zod.z.string().describe("Direct URL to view the external issue in its source system.").nullable(),
12
12
  title: zod.z.string().describe("The title/summary of the external issue.").nullable().optional(),
13
- status: zod.z.string().describe("Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN')."),
14
- sourceId: zod.z.string().describe("The external issue ID from the source system (e.g., JIRA-123, LIN-456)."),
15
- threadId: zod.z.string().describe("The Plain thread ID this issue is linked to."),
16
- sourceType: zod.z.string().describe("The type of external issue tracker system (e.g., 'jira', 'linear', 'github')."),
13
+ status: zod.z.string().describe("Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN').").nullable(),
14
+ sourceId: zod.z.string().describe("The external issue ID from the source system (e.g., JIRA-123, LIN-456).").nullable(),
15
+ threadId: zod.z.string().describe("The Plain thread ID this issue is linked to.").nullable(),
16
+ sourceType: zod.z.string().describe("The type of external issue tracker system (e.g., 'jira', 'linear', 'github').").nullable(),
17
17
  description: zod.z.string().describe("The detailed description of the external issue.").nullable().optional(),
18
18
  threadTitle: zod.z.string().describe("The title of the Plain thread.").nullable().optional()
19
19
  }).describe("Represents an external issue tracker link associated with a thread.");
20
20
  const PlainFetchIssuesOutput = zod.z.object({
21
21
  issues: zod.z.array(PlainFetchIssues_IssueSchema).describe("Flattened list of all external issue tracker links across the customer's threads. Empty list if no issues are linked."),
22
- totalCount: zod.z.number().int().describe("Total number of issue links found for this customer.")
22
+ totalCount: zod.z.number().int().describe("Total number of issue links found for this customer.").nullable()
23
23
  }).describe("Response model containing external issue tracker links for a customer.");
24
24
  const plainFetchIssues = require_action.action("PLAIN_FETCH_ISSUES", {
25
25
  slug: "plain-fetch-issues",
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-issues.cjs","names":["z","action"],"sources":["../../src/actions/fetch-issues.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchIssuesInput: z.ZodTypeAny = z.object({\n linkFirst: z.number().int().default(50).describe(\"Maximum number of issue links to fetch per thread. Must be between 1-100. Defaults to 50.\").optional(),\n customerId: z.string().describe(\"The unique identifier of the customer whose external issue tracker links (Jira, Linear, etc.) are to be retrieved.\"),\n threadFirst: z.number().int().default(50).describe(\"Maximum number of customer threads to fetch. Must be between 1-100. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for fetching issue links associated with a customer.\");\nconst PlainFetchIssues_IssueSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The internal Plain ID of the link resource.\"),\n url: z.string().describe(\"Direct URL to view the external issue in its source system.\"),\n title: z.string().describe(\"The title/summary of the external issue.\").nullable().optional(),\n status: z.string().describe(\"Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN').\"),\n sourceId: z.string().describe(\"The external issue ID from the source system (e.g., JIRA-123, LIN-456).\"),\n threadId: z.string().describe(\"The Plain thread ID this issue is linked to.\"),\n sourceType: z.string().describe(\"The type of external issue tracker system (e.g., 'jira', 'linear', 'github').\"),\n description: z.string().describe(\"The detailed description of the external issue.\").nullable().optional(),\n threadTitle: z.string().describe(\"The title of the Plain thread.\").nullable().optional(),\n}).describe(\"Represents an external issue tracker link associated with a thread.\");\nexport const PlainFetchIssuesOutput: z.ZodTypeAny = z.object({\n issues: z.array(PlainFetchIssues_IssueSchema).describe(\"Flattened list of all external issue tracker links across the customer's threads. Empty list if no issues are linked.\"),\n totalCount: z.number().int().describe(\"Total number of issue links found for this customer.\"),\n}).describe(\"Response model containing external issue tracker links for a customer.\");\n\nexport const plainFetchIssues = action(\"PLAIN_FETCH_ISSUES\", {\n slug: \"plain-fetch-issues\",\n name: \"Fetch Issues\",\n description: \"Fetches external issue tracker links (Jira, Linear, GitHub, etc.) associated with a customer's threads. Returns a flattened list of all issue links across the customer's threads, including the thread context for each issue. Useful for getting a complete view of all external issues related to a customer. With defaults, returns up to threadFirst×linkFirst (2,500) total issue links; results are truncated if limits are exceeded, so reduce threadFirst or linkFirst for large datasets.\",\n input: PlainFetchIssuesInput,\n output: PlainFetchIssuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACvJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACpJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,+BAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACpH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CACvG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC/G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,QAAQA,IAAAA,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,uHAAuH;CAC9K,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;AAC9F,CAAC,CAAC,CAAC,SAAS,wEAAwE;AAEpF,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-issues.cjs","names":["z","action"],"sources":["../../src/actions/fetch-issues.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchIssuesInput = z.object({\n linkFirst: z.number().int().default(50).describe(\"Maximum number of issue links to fetch per thread. Must be between 1-100. Defaults to 50.\").optional(),\n customerId: z.string().describe(\"The unique identifier of the customer whose external issue tracker links (Jira, Linear, etc.) are to be retrieved.\"),\n threadFirst: z.number().int().default(50).describe(\"Maximum number of customer threads to fetch. Must be between 1-100. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for fetching issue links associated with a customer.\");\nconst PlainFetchIssues_IssueSchema = z.object({\n id: z.string().describe(\"The internal Plain ID of the link resource.\").nullable(),\n url: z.string().describe(\"Direct URL to view the external issue in its source system.\").nullable(),\n title: z.string().describe(\"The title/summary of the external issue.\").nullable().optional(),\n status: z.string().describe(\"Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN').\").nullable(),\n sourceId: z.string().describe(\"The external issue ID from the source system (e.g., JIRA-123, LIN-456).\").nullable(),\n threadId: z.string().describe(\"The Plain thread ID this issue is linked to.\").nullable(),\n sourceType: z.string().describe(\"The type of external issue tracker system (e.g., 'jira', 'linear', 'github').\").nullable(),\n description: z.string().describe(\"The detailed description of the external issue.\").nullable().optional(),\n threadTitle: z.string().describe(\"The title of the Plain thread.\").nullable().optional(),\n}).describe(\"Represents an external issue tracker link associated with a thread.\");\nexport const PlainFetchIssuesOutput = z.object({\n issues: z.array(PlainFetchIssues_IssueSchema).describe(\"Flattened list of all external issue tracker links across the customer's threads. Empty list if no issues are linked.\"),\n totalCount: z.number().int().describe(\"Total number of issue links found for this customer.\").nullable(),\n}).describe(\"Response model containing external issue tracker links for a customer.\");\n\nexport const plainFetchIssues = action(\"PLAIN_FETCH_ISSUES\", {\n slug: \"plain-fetch-issues\",\n name: \"Fetch Issues\",\n description: \"Fetches external issue tracker links (Jira, Linear, GitHub, etc.) associated with a customer's threads. Returns a flattened list of all issue links across the customer's threads, including the thread context for each issue. Useful for getting a complete view of all external issues related to a customer. With defaults, returns up to threadFirst×linkFirst (2,500) total issue links; results are truncated if limits are exceeded, so reduce threadFirst or linkFirst for large datasets.\",\n input: PlainFetchIssuesInput,\n output: PlainFetchIssuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACvJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACpJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,+BAA+BA,IAAAA,EAAE,OAAO;CAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACjG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAC/H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAClH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC1H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,QAAQA,IAAAA,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,uHAAuH;CAC9K,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,wEAAwE;AAEpF,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,30 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-issues.d.ts
4
- declare const PlainFetchIssuesInput: z.ZodTypeAny;
5
- declare const PlainFetchIssuesOutput: z.ZodTypeAny;
6
- declare const plainFetchIssues: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainFetchIssuesInput: z.ZodObject<{
5
+ linkFirst: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ customerId: z.ZodString;
7
+ threadFirst: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ }, z.core.$strip>;
9
+ declare const PlainFetchIssuesOutput: z.ZodObject<{
10
+ issues: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodString>;
12
+ url: z.ZodNullable<z.ZodString>;
13
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ status: z.ZodNullable<z.ZodString>;
15
+ sourceId: z.ZodNullable<z.ZodString>;
16
+ threadId: z.ZodNullable<z.ZodString>;
17
+ sourceType: z.ZodNullable<z.ZodString>;
18
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ threadTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$strip>>;
21
+ totalCount: z.ZodNullable<z.ZodNumber>;
22
+ }, z.core.$strip>;
23
+ declare const plainFetchIssues: import("@keystrokehq/action").WorkflowActionDefinition<{
24
+ customerId: string;
25
+ linkFirst?: number | undefined;
26
+ threadFirst?: number | undefined;
27
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
28
  //#endregion
8
29
  export { plainFetchIssues };
9
30
  //# sourceMappingURL=fetch-issues.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-issues.d.cts","names":[],"sources":["../../src/actions/fetch-issues.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAIgD;AAAA,cAYzE,sBAAA,EAAwB,CAAA,CAAE,UAG8C;AAAA,cAExE,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-issues.d.cts","names":[],"sources":["../../src/actions/fetch-issues.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;cAgBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
@@ -1,9 +1,30 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-issues.d.ts
4
- declare const PlainFetchIssuesInput: z.ZodTypeAny;
5
- declare const PlainFetchIssuesOutput: z.ZodTypeAny;
6
- declare const plainFetchIssues: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainFetchIssuesInput: z.ZodObject<{
5
+ linkFirst: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ customerId: z.ZodString;
7
+ threadFirst: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ }, z.core.$strip>;
9
+ declare const PlainFetchIssuesOutput: z.ZodObject<{
10
+ issues: z.ZodArray<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodString>;
12
+ url: z.ZodNullable<z.ZodString>;
13
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ status: z.ZodNullable<z.ZodString>;
15
+ sourceId: z.ZodNullable<z.ZodString>;
16
+ threadId: z.ZodNullable<z.ZodString>;
17
+ sourceType: z.ZodNullable<z.ZodString>;
18
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ threadTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ }, z.core.$strip>>;
21
+ totalCount: z.ZodNullable<z.ZodNumber>;
22
+ }, z.core.$strip>;
23
+ declare const plainFetchIssues: import("@keystrokehq/action").WorkflowActionDefinition<{
24
+ customerId: string;
25
+ linkFirst?: number | undefined;
26
+ threadFirst?: number | undefined;
27
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
28
  //#endregion
8
29
  export { plainFetchIssues };
9
30
  //# sourceMappingURL=fetch-issues.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-issues.d.mts","names":[],"sources":["../../src/actions/fetch-issues.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAIgD;AAAA,cAYzE,sBAAA,EAAwB,CAAA,CAAE,UAG8C;AAAA,cAExE,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-issues.d.mts","names":[],"sources":["../../src/actions/fetch-issues.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;cAgBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
@@ -7,13 +7,13 @@ const PlainFetchIssuesInput = z.object({
7
7
  threadFirst: z.number().int().default(50).describe("Maximum number of customer threads to fetch. Must be between 1-100. Defaults to 50.").optional()
8
8
  }).describe("Request parameters for fetching issue links associated with a customer.");
9
9
  const PlainFetchIssues_IssueSchema = z.object({
10
- id: z.string().describe("The internal Plain ID of the link resource."),
11
- url: z.string().describe("Direct URL to view the external issue in its source system."),
10
+ id: z.string().describe("The internal Plain ID of the link resource.").nullable(),
11
+ url: z.string().describe("Direct URL to view the external issue in its source system.").nullable(),
12
12
  title: z.string().describe("The title/summary of the external issue.").nullable().optional(),
13
- status: z.string().describe("Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN')."),
14
- sourceId: z.string().describe("The external issue ID from the source system (e.g., JIRA-123, LIN-456)."),
15
- threadId: z.string().describe("The Plain thread ID this issue is linked to."),
16
- sourceType: z.string().describe("The type of external issue tracker system (e.g., 'jira', 'linear', 'github')."),
13
+ status: z.string().describe("Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN').").nullable(),
14
+ sourceId: z.string().describe("The external issue ID from the source system (e.g., JIRA-123, LIN-456).").nullable(),
15
+ threadId: z.string().describe("The Plain thread ID this issue is linked to.").nullable(),
16
+ sourceType: z.string().describe("The type of external issue tracker system (e.g., 'jira', 'linear', 'github').").nullable(),
17
17
  description: z.string().describe("The detailed description of the external issue.").nullable().optional(),
18
18
  threadTitle: z.string().describe("The title of the Plain thread.").nullable().optional()
19
19
  }).describe("Represents an external issue tracker link associated with a thread.");
@@ -24,7 +24,7 @@ const plainFetchIssues = action("PLAIN_FETCH_ISSUES", {
24
24
  input: PlainFetchIssuesInput,
25
25
  output: z.object({
26
26
  issues: z.array(PlainFetchIssues_IssueSchema).describe("Flattened list of all external issue tracker links across the customer's threads. Empty list if no issues are linked."),
27
- totalCount: z.number().int().describe("Total number of issue links found for this customer.")
27
+ totalCount: z.number().int().describe("Total number of issue links found for this customer.").nullable()
28
28
  }).describe("Response model containing external issue tracker links for a customer.")
29
29
  });
30
30
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-issues.mjs","names":[],"sources":["../../src/actions/fetch-issues.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchIssuesInput: z.ZodTypeAny = z.object({\n linkFirst: z.number().int().default(50).describe(\"Maximum number of issue links to fetch per thread. Must be between 1-100. Defaults to 50.\").optional(),\n customerId: z.string().describe(\"The unique identifier of the customer whose external issue tracker links (Jira, Linear, etc.) are to be retrieved.\"),\n threadFirst: z.number().int().default(50).describe(\"Maximum number of customer threads to fetch. Must be between 1-100. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for fetching issue links associated with a customer.\");\nconst PlainFetchIssues_IssueSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The internal Plain ID of the link resource.\"),\n url: z.string().describe(\"Direct URL to view the external issue in its source system.\"),\n title: z.string().describe(\"The title/summary of the external issue.\").nullable().optional(),\n status: z.string().describe(\"Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN').\"),\n sourceId: z.string().describe(\"The external issue ID from the source system (e.g., JIRA-123, LIN-456).\"),\n threadId: z.string().describe(\"The Plain thread ID this issue is linked to.\"),\n sourceType: z.string().describe(\"The type of external issue tracker system (e.g., 'jira', 'linear', 'github').\"),\n description: z.string().describe(\"The detailed description of the external issue.\").nullable().optional(),\n threadTitle: z.string().describe(\"The title of the Plain thread.\").nullable().optional(),\n}).describe(\"Represents an external issue tracker link associated with a thread.\");\nexport const PlainFetchIssuesOutput: z.ZodTypeAny = z.object({\n issues: z.array(PlainFetchIssues_IssueSchema).describe(\"Flattened list of all external issue tracker links across the customer's threads. Empty list if no issues are linked.\"),\n totalCount: z.number().int().describe(\"Total number of issue links found for this customer.\"),\n}).describe(\"Response model containing external issue tracker links for a customer.\");\n\nexport const plainFetchIssues = action(\"PLAIN_FETCH_ISSUES\", {\n slug: \"plain-fetch-issues\",\n name: \"Fetch Issues\",\n description: \"Fetches external issue tracker links (Jira, Linear, GitHub, etc.) associated with a customer's threads. Returns a flattened list of all issue links across the customer's threads, including the thread context for each issue. Useful for getting a complete view of all external issues related to a customer. With defaults, returns up to threadFirst×linkFirst (2,500) total issue links; results are truncated if limits are exceeded, so reduce threadFirst or linkFirst for large datasets.\",\n input: PlainFetchIssuesInput,\n output: PlainFetchIssuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO;CAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACvJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACpJ,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,+BAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACpH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CACvG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC/G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAMjF,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVkD,EAAE,OAAO;EAC3D,QAAQ,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,uHAAuH;EAC9K,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD;CAC9F,CAAC,CAAC,CAAC,SAAS,wEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-issues.mjs","names":[],"sources":["../../src/actions/fetch-issues.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchIssuesInput = z.object({\n linkFirst: z.number().int().default(50).describe(\"Maximum number of issue links to fetch per thread. Must be between 1-100. Defaults to 50.\").optional(),\n customerId: z.string().describe(\"The unique identifier of the customer whose external issue tracker links (Jira, Linear, etc.) are to be retrieved.\"),\n threadFirst: z.number().int().default(50).describe(\"Maximum number of customer threads to fetch. Must be between 1-100. Defaults to 50.\").optional(),\n}).describe(\"Request parameters for fetching issue links associated with a customer.\");\nconst PlainFetchIssues_IssueSchema = z.object({\n id: z.string().describe(\"The internal Plain ID of the link resource.\").nullable(),\n url: z.string().describe(\"Direct URL to view the external issue in its source system.\").nullable(),\n title: z.string().describe(\"The title/summary of the external issue.\").nullable().optional(),\n status: z.string().describe(\"Current status of the external issue (e.g., 'TODO', 'IN_PROGRESS', 'DONE', 'UNKNOWN').\").nullable(),\n sourceId: z.string().describe(\"The external issue ID from the source system (e.g., JIRA-123, LIN-456).\").nullable(),\n threadId: z.string().describe(\"The Plain thread ID this issue is linked to.\").nullable(),\n sourceType: z.string().describe(\"The type of external issue tracker system (e.g., 'jira', 'linear', 'github').\").nullable(),\n description: z.string().describe(\"The detailed description of the external issue.\").nullable().optional(),\n threadTitle: z.string().describe(\"The title of the Plain thread.\").nullable().optional(),\n}).describe(\"Represents an external issue tracker link associated with a thread.\");\nexport const PlainFetchIssuesOutput = z.object({\n issues: z.array(PlainFetchIssues_IssueSchema).describe(\"Flattened list of all external issue tracker links across the customer's threads. Empty list if no issues are linked.\"),\n totalCount: z.number().int().describe(\"Total number of issue links found for this customer.\").nullable(),\n}).describe(\"Response model containing external issue tracker links for a customer.\");\n\nexport const plainFetchIssues = action(\"PLAIN_FETCH_ISSUES\", {\n slug: \"plain-fetch-issues\",\n name: \"Fetch Issues\",\n description: \"Fetches external issue tracker links (Jira, Linear, GitHub, etc.) associated with a customer's threads. Returns a flattened list of all issue links across the customer's threads, including the thread context for each issue. Useful for getting a complete view of all external issues related to a customer. With defaults, returns up to threadFirst×linkFirst (2,500) total issue links; results are truncated if limits are exceeded, so reduce threadFirst or linkFirst for large datasets.\",\n input: PlainFetchIssuesInput,\n output: PlainFetchIssuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACvJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACpJ,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,+BAA+B,EAAE,OAAO;CAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACjG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAC/H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAClH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC1H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAMjF,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoC,EAAE,OAAO;EAC7C,QAAQ,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,uHAAuH;EAC9K,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,SAAS,wEAOF;AACV,CAAC"}
@@ -3,19 +3,19 @@ let zod = require("zod");
3
3
  //#region src/actions/fetch-tier.ts
4
4
  const PlainFetchTierInput = zod.z.object({ tier_id: zod.z.string().describe("The unique identifier of the tier to fetch (e.g., 'tier_123')") }).describe("Request parameters for fetching a tier by its ID.");
5
5
  const PlainFetchTier_DateTimeSchema = zod.z.object({
6
- iso8601: zod.z.string().describe("ISO 8601 datetime string."),
7
- unixTimestamp: zod.z.string().describe("Unix timestamp representation.")
6
+ iso8601: zod.z.string().describe("ISO 8601 datetime string.").nullable(),
7
+ unixTimestamp: zod.z.string().describe("Unix timestamp representation.").nullable()
8
8
  }).describe("DateTime object with Unix timestamp and ISO 8601 format.");
9
9
  const PlainFetchTier_TierSchema = zod.z.object({
10
- id: zod.z.string().describe("The unique identifier of the tier."),
11
- name: zod.z.string().describe("The display name of the tier."),
12
- color: zod.z.string().describe("Hex color code for UI representation."),
10
+ id: zod.z.string().describe("The unique identifier of the tier.").nullable(),
11
+ name: zod.z.string().describe("The display name of the tier.").nullable(),
12
+ color: zod.z.string().describe("Hex color code for UI representation.").nullable(),
13
13
  createdAt: PlainFetchTier_DateTimeSchema.nullable(),
14
- isDefault: zod.z.boolean().describe("Whether this tier applies to unmatched threads."),
14
+ isDefault: zod.z.boolean().describe("Whether this tier applies to unmatched threads.").nullable(),
15
15
  updatedAt: PlainFetchTier_DateTimeSchema.nullable(),
16
16
  externalId: zod.z.string().describe("Custom identifier from your system (unique per workspace).").nullable().optional(),
17
- isMachineTier: zod.z.boolean().describe("Whether the tier was auto-generated from tenant fields."),
18
- defaultThreadPriority: zod.z.number().int().describe("Default priority for threads created in this tier.")
17
+ isMachineTier: zod.z.boolean().describe("Whether the tier was auto-generated from tenant fields.").nullable(),
18
+ defaultThreadPriority: zod.z.number().int().describe("Default priority for threads created in this tier.").nullable()
19
19
  }).describe("Tier object returned by the API.");
20
20
  const PlainFetchTierOutput = zod.z.object({ tier: PlainFetchTier_TierSchema.nullable().optional() }).describe("Response schema for fetching a single tier.");
21
21
  const plainFetchTier = require_action.action("PLAIN_FETCH_TIER", {
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-tier.cjs","names":["z","action"],"sources":["../../src/actions/fetch-tier.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchTierInput: z.ZodTypeAny = z.object({\n tier_id: z.string().describe(\"The unique identifier of the tier to fetch (e.g., 'tier_123')\"),\n}).describe(\"Request parameters for fetching a tier by its ID.\");\nconst PlainFetchTier_DateTimeSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"ISO 8601 datetime string.\"),\n unixTimestamp: z.string().describe(\"Unix timestamp representation.\"),\n}).describe(\"DateTime object with Unix timestamp and ISO 8601 format.\");\nconst PlainFetchTier_TierSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the tier.\"),\n name: z.string().describe(\"The display name of the tier.\"),\n color: z.string().describe(\"Hex color code for UI representation.\"),\n createdAt: PlainFetchTier_DateTimeSchema.nullable(),\n isDefault: z.boolean().describe(\"Whether this tier applies to unmatched threads.\"),\n updatedAt: PlainFetchTier_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"Custom identifier from your system (unique per workspace).\").nullable().optional(),\n isMachineTier: z.boolean().describe(\"Whether the tier was auto-generated from tenant fields.\"),\n defaultThreadPriority: z.number().int().describe(\"Default priority for threads created in this tier.\"),\n}).describe(\"Tier object returned by the API.\");\nexport const PlainFetchTierOutput: z.ZodTypeAny = z.object({\n tier: PlainFetchTier_TierSchema.nullable().optional(),\n}).describe(\"Response schema for fetching a single tier.\");\n\nexport const plainFetchTier = action(\"PLAIN_FETCH_TIER\", {\n slug: \"plain-fetch-tier\",\n name: \"Fetch Tier\",\n description: \"Tool to fetch a tier by its ID. Use when you have a tier ID and need its metadata before proceeding. Example: \\\"Fetch tier with ID tier_123\\\".\",\n input: PlainFetchTierInput,\n output: PlainFetchTierOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoCA,IAAAA,EAAE,OAAO,EACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC9F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,gCAA8CA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACxD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;AACrE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4BAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,WAAW,8BAA8B,SAAS;CAClD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD;CACjF,WAAW,8BAA8B,SAAS;CAClD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD;CAC7F,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;AACvG,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAa,uBAAqCA,IAAAA,EAAE,OAAO,EACzD,MAAM,0BAA0B,SAAS,CAAC,CAAC,SAAS,EACtD,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-tier.cjs","names":["z","action"],"sources":["../../src/actions/fetch-tier.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchTierInput = z.object({\n tier_id: z.string().describe(\"The unique identifier of the tier to fetch (e.g., 'tier_123')\"),\n}).describe(\"Request parameters for fetching a tier by its ID.\");\nconst PlainFetchTier_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 datetime string.\").nullable(),\n unixTimestamp: z.string().describe(\"Unix timestamp representation.\").nullable(),\n}).describe(\"DateTime object with Unix timestamp and ISO 8601 format.\");\nconst PlainFetchTier_TierSchema = z.object({\n id: z.string().describe(\"The unique identifier of the tier.\").nullable(),\n name: z.string().describe(\"The display name of the tier.\").nullable(),\n color: z.string().describe(\"Hex color code for UI representation.\").nullable(),\n createdAt: PlainFetchTier_DateTimeSchema.nullable(),\n isDefault: z.boolean().describe(\"Whether this tier applies to unmatched threads.\").nullable(),\n updatedAt: PlainFetchTier_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"Custom identifier from your system (unique per workspace).\").nullable().optional(),\n isMachineTier: z.boolean().describe(\"Whether the tier was auto-generated from tenant fields.\").nullable(),\n defaultThreadPriority: z.number().int().describe(\"Default priority for threads created in this tier.\").nullable(),\n}).describe(\"Tier object returned by the API.\");\nexport const PlainFetchTierOutput = z.object({\n tier: PlainFetchTier_TierSchema.nullable().optional(),\n}).describe(\"Response schema for fetching a single tier.\");\n\nexport const plainFetchTier = action(\"PLAIN_FETCH_TIER\", {\n slug: \"plain-fetch-tier\",\n name: \"Fetch Tier\",\n description: \"Tool to fetch a tier by its ID. Use when you have a tier ID and need its metadata before proceeding. Example: \\\"Fetch tier with ID tier_123\\\".\",\n input: PlainFetchTierInput,\n output: PlainFetchTierOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC9F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACnE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4BAA4BA,IAAAA,EAAE,OAAO;CACzC,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,WAAW,8BAA8B,SAAS;CAClD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,WAAW,8BAA8B,SAAS;CAClD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACxG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,EAC3C,MAAM,0BAA0B,SAAS,CAAC,CAAC,SAAS,EACtD,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-tier.d.ts
4
- declare const PlainFetchTierInput: z.ZodTypeAny;
5
- declare const PlainFetchTierOutput: z.ZodTypeAny;
6
- declare const plainFetchTier: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainFetchTierInput: z.ZodObject<{
5
+ tier_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PlainFetchTierOutput: z.ZodObject<{
8
+ tier: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ name: z.ZodNullable<z.ZodString>;
11
+ color: z.ZodNullable<z.ZodString>;
12
+ createdAt: z.ZodNullable<z.ZodObject<{
13
+ iso8601: z.ZodNullable<z.ZodString>;
14
+ unixTimestamp: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$strip>>;
16
+ isDefault: z.ZodNullable<z.ZodBoolean>;
17
+ updatedAt: z.ZodNullable<z.ZodObject<{
18
+ iso8601: z.ZodNullable<z.ZodString>;
19
+ unixTimestamp: z.ZodNullable<z.ZodString>;
20
+ }, z.core.$strip>>;
21
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ isMachineTier: z.ZodNullable<z.ZodBoolean>;
23
+ defaultThreadPriority: z.ZodNullable<z.ZodNumber>;
24
+ }, z.core.$strip>>>;
25
+ }, z.core.$strip>;
26
+ declare const plainFetchTier: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ tier_id: string;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { plainFetchTier };
9
31
  //# sourceMappingURL=fetch-tier.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-tier.d.cts","names":[],"sources":["../../src/actions/fetch-tier.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAE4B;AAAA,cAgBnD,oBAAA,EAAsB,CAAA,CAAE,UAEqB;AAAA,cAE7C,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-tier.d.cts","names":[],"sources":["../../src/actions/fetch-tier.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAkBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIpB,cAAA,gCAAc,wBAAA"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-tier.d.ts
4
- declare const PlainFetchTierInput: z.ZodTypeAny;
5
- declare const PlainFetchTierOutput: z.ZodTypeAny;
6
- declare const plainFetchTier: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainFetchTierInput: z.ZodObject<{
5
+ tier_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PlainFetchTierOutput: z.ZodObject<{
8
+ tier: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodString>;
10
+ name: z.ZodNullable<z.ZodString>;
11
+ color: z.ZodNullable<z.ZodString>;
12
+ createdAt: z.ZodNullable<z.ZodObject<{
13
+ iso8601: z.ZodNullable<z.ZodString>;
14
+ unixTimestamp: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$strip>>;
16
+ isDefault: z.ZodNullable<z.ZodBoolean>;
17
+ updatedAt: z.ZodNullable<z.ZodObject<{
18
+ iso8601: z.ZodNullable<z.ZodString>;
19
+ unixTimestamp: z.ZodNullable<z.ZodString>;
20
+ }, z.core.$strip>>;
21
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ isMachineTier: z.ZodNullable<z.ZodBoolean>;
23
+ defaultThreadPriority: z.ZodNullable<z.ZodNumber>;
24
+ }, z.core.$strip>>>;
25
+ }, z.core.$strip>;
26
+ declare const plainFetchTier: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ tier_id: string;
28
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { plainFetchTier };
9
31
  //# sourceMappingURL=fetch-tier.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-tier.d.mts","names":[],"sources":["../../src/actions/fetch-tier.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAE4B;AAAA,cAgBnD,oBAAA,EAAsB,CAAA,CAAE,UAEqB;AAAA,cAE7C,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-tier.d.mts","names":[],"sources":["../../src/actions/fetch-tier.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;cAkBnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIpB,cAAA,gCAAc,wBAAA"}
@@ -3,19 +3,19 @@ import { z } from "zod";
3
3
  //#region src/actions/fetch-tier.ts
4
4
  const PlainFetchTierInput = z.object({ tier_id: z.string().describe("The unique identifier of the tier to fetch (e.g., 'tier_123')") }).describe("Request parameters for fetching a tier by its ID.");
5
5
  const PlainFetchTier_DateTimeSchema = z.object({
6
- iso8601: z.string().describe("ISO 8601 datetime string."),
7
- unixTimestamp: z.string().describe("Unix timestamp representation.")
6
+ iso8601: z.string().describe("ISO 8601 datetime string.").nullable(),
7
+ unixTimestamp: z.string().describe("Unix timestamp representation.").nullable()
8
8
  }).describe("DateTime object with Unix timestamp and ISO 8601 format.");
9
9
  const PlainFetchTier_TierSchema = z.object({
10
- id: z.string().describe("The unique identifier of the tier."),
11
- name: z.string().describe("The display name of the tier."),
12
- color: z.string().describe("Hex color code for UI representation."),
10
+ id: z.string().describe("The unique identifier of the tier.").nullable(),
11
+ name: z.string().describe("The display name of the tier.").nullable(),
12
+ color: z.string().describe("Hex color code for UI representation.").nullable(),
13
13
  createdAt: PlainFetchTier_DateTimeSchema.nullable(),
14
- isDefault: z.boolean().describe("Whether this tier applies to unmatched threads."),
14
+ isDefault: z.boolean().describe("Whether this tier applies to unmatched threads.").nullable(),
15
15
  updatedAt: PlainFetchTier_DateTimeSchema.nullable(),
16
16
  externalId: z.string().describe("Custom identifier from your system (unique per workspace).").nullable().optional(),
17
- isMachineTier: z.boolean().describe("Whether the tier was auto-generated from tenant fields."),
18
- defaultThreadPriority: z.number().int().describe("Default priority for threads created in this tier.")
17
+ isMachineTier: z.boolean().describe("Whether the tier was auto-generated from tenant fields.").nullable(),
18
+ defaultThreadPriority: z.number().int().describe("Default priority for threads created in this tier.").nullable()
19
19
  }).describe("Tier object returned by the API.");
20
20
  const plainFetchTier = action("PLAIN_FETCH_TIER", {
21
21
  slug: "plain-fetch-tier",
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-tier.mjs","names":[],"sources":["../../src/actions/fetch-tier.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchTierInput: z.ZodTypeAny = z.object({\n tier_id: z.string().describe(\"The unique identifier of the tier to fetch (e.g., 'tier_123')\"),\n}).describe(\"Request parameters for fetching a tier by its ID.\");\nconst PlainFetchTier_DateTimeSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"ISO 8601 datetime string.\"),\n unixTimestamp: z.string().describe(\"Unix timestamp representation.\"),\n}).describe(\"DateTime object with Unix timestamp and ISO 8601 format.\");\nconst PlainFetchTier_TierSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the tier.\"),\n name: z.string().describe(\"The display name of the tier.\"),\n color: z.string().describe(\"Hex color code for UI representation.\"),\n createdAt: PlainFetchTier_DateTimeSchema.nullable(),\n isDefault: z.boolean().describe(\"Whether this tier applies to unmatched threads.\"),\n updatedAt: PlainFetchTier_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"Custom identifier from your system (unique per workspace).\").nullable().optional(),\n isMachineTier: z.boolean().describe(\"Whether the tier was auto-generated from tenant fields.\"),\n defaultThreadPriority: z.number().int().describe(\"Default priority for threads created in this tier.\"),\n}).describe(\"Tier object returned by the API.\");\nexport const PlainFetchTierOutput: z.ZodTypeAny = z.object({\n tier: PlainFetchTier_TierSchema.nullable().optional(),\n}).describe(\"Response schema for fetching a single tier.\");\n\nexport const plainFetchTier = action(\"PLAIN_FETCH_TIER\", {\n slug: \"plain-fetch-tier\",\n name: \"Fetch Tier\",\n description: \"Tool to fetch a tier by its ID. Use when you have a tier ID and need its metadata before proceeding. Example: \\\"Fetch tier with ID tier_123\\\".\",\n input: PlainFetchTierInput,\n output: PlainFetchTierOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoC,EAAE,OAAO,EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC9F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,gCAA8C,EAAE,OAAO;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACxD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;AACrE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4BAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,WAAW,8BAA8B,SAAS;CAClD,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD;CACjF,WAAW,8BAA8B,SAAS;CAClD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD;CAC7F,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;AACvG,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAK9C,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATgD,EAAE,OAAO,EACzD,MAAM,0BAA0B,SAAS,CAAC,CAAC,SAAS,EACtD,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-tier.mjs","names":[],"sources":["../../src/actions/fetch-tier.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainFetchTierInput = z.object({\n tier_id: z.string().describe(\"The unique identifier of the tier to fetch (e.g., 'tier_123')\"),\n}).describe(\"Request parameters for fetching a tier by its ID.\");\nconst PlainFetchTier_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO 8601 datetime string.\").nullable(),\n unixTimestamp: z.string().describe(\"Unix timestamp representation.\").nullable(),\n}).describe(\"DateTime object with Unix timestamp and ISO 8601 format.\");\nconst PlainFetchTier_TierSchema = z.object({\n id: z.string().describe(\"The unique identifier of the tier.\").nullable(),\n name: z.string().describe(\"The display name of the tier.\").nullable(),\n color: z.string().describe(\"Hex color code for UI representation.\").nullable(),\n createdAt: PlainFetchTier_DateTimeSchema.nullable(),\n isDefault: z.boolean().describe(\"Whether this tier applies to unmatched threads.\").nullable(),\n updatedAt: PlainFetchTier_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"Custom identifier from your system (unique per workspace).\").nullable().optional(),\n isMachineTier: z.boolean().describe(\"Whether the tier was auto-generated from tenant fields.\").nullable(),\n defaultThreadPriority: z.number().int().describe(\"Default priority for threads created in this tier.\").nullable(),\n}).describe(\"Tier object returned by the API.\");\nexport const PlainFetchTierOutput = z.object({\n tier: PlainFetchTier_TierSchema.nullable().optional(),\n}).describe(\"Response schema for fetching a single tier.\");\n\nexport const plainFetchTier = action(\"PLAIN_FETCH_TIER\", {\n slug: \"plain-fetch-tier\",\n name: \"Fetch Tier\",\n description: \"Tool to fetch a tier by its ID. Use when you have a tier ID and need its metadata before proceeding. Example: \\\"Fetch tier with ID tier_123\\\".\",\n input: PlainFetchTierInput,\n output: PlainFetchTierOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO,EAC1C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC9F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,gCAAgC,EAAE,OAAO;CAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACnE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,4BAA4B,EAAE,OAAO;CACzC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,WAAW,8BAA8B,SAAS;CAClD,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,WAAW,8BAA8B,SAAS;CAClD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACxG,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAK9C,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkC,EAAE,OAAO,EAC3C,MAAM,0BAA0B,SAAS,CAAC,CAAC,SAAS,EACtD,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
@@ -3,14 +3,14 @@ let zod = require("zod");
3
3
  //#region src/actions/get-customer-by-email.ts
4
4
  const PlainGetCustomerByEmailInput = zod.z.object({ email: zod.z.string().describe("Email address of the customer to fetch") }).describe("Request input for fetching a customer by email in Plain.");
5
5
  const PlainGetCustomerByEmail_EmailInfoSchema = zod.z.object({
6
- email: zod.z.string().describe("Email address"),
7
- isVerified: zod.z.boolean().describe("Whether the email is verified")
6
+ email: zod.z.string().describe("Email address").nullable(),
7
+ isVerified: zod.z.boolean().describe("Whether the email is verified").nullable()
8
8
  });
9
- const PlainGetCustomerByEmail_TimestampSchema = zod.z.object({ iso8601: zod.z.string().describe("Timestamp in ISO 8601 format") });
9
+ const PlainGetCustomerByEmail_TimestampSchema = zod.z.object({ iso8601: zod.z.string().describe("Timestamp in ISO 8601 format").nullable() });
10
10
  const PlainGetCustomerByEmail_CustomerByEmailSchema = zod.z.object({
11
- id: zod.z.string().describe("Unique identifier of the customer"),
11
+ id: zod.z.string().describe("Unique identifier of the customer").nullable(),
12
12
  email: PlainGetCustomerByEmail_EmailInfoSchema.nullable(),
13
- fullName: zod.z.string().describe("Full name of the customer"),
13
+ fullName: zod.z.string().describe("Full name of the customer").nullable(),
14
14
  createdAt: PlainGetCustomerByEmail_TimestampSchema.nullable(),
15
15
  shortName: zod.z.string().describe("Short name (typically first name)").nullable().optional(),
16
16
  updatedAt: PlainGetCustomerByEmail_TimestampSchema.nullable(),
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer-by-email.cjs","names":["z","action"],"sources":["../../src/actions/get-customer-by-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomerByEmailInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address of the customer to fetch\"),\n}).describe(\"Request input for fetching a customer by email in Plain.\");\nconst PlainGetCustomerByEmail_EmailInfoSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address\"),\n isVerified: z.boolean().describe(\"Whether the email is verified\"),\n});\nconst PlainGetCustomerByEmail_TimestampSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\"),\n});\nconst PlainGetCustomerByEmail_CustomerByEmailSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the customer\"),\n email: PlainGetCustomerByEmail_EmailInfoSchema.nullable(),\n fullName: z.string().describe(\"Full name of the customer\"),\n createdAt: PlainGetCustomerByEmail_TimestampSchema.nullable(),\n shortName: z.string().describe(\"Short name (typically first name)\").nullable().optional(),\n updatedAt: PlainGetCustomerByEmail_TimestampSchema.nullable(),\n externalId: z.string().describe(\"External identifier from your system\").nullable().optional(),\n}).describe(\"Customer details returned by customerByEmail query.\");\nconst PlainGetCustomerByEmail_GetCustomerByEmailDataSchema: z.ZodTypeAny = z.object({\n customerByEmail: PlainGetCustomerByEmail_CustomerByEmailSchema.nullable().optional(),\n});\nexport const PlainGetCustomerByEmailOutput: z.ZodTypeAny = z.object({\n data: PlainGetCustomerByEmail_GetCustomerByEmailDataSchema.nullable(),\n}).describe(\"Response output containing customer details from Plain.\");\n\nexport const plainGetCustomerByEmail = action(\"PLAIN_GET_CUSTOMER_BY_EMAIL\", {\n slug: \"plain-get-customer-by-email\",\n name: \"Get Customer By Email\",\n description: \"Fetch customer details by email address. Returns customer information if found, or null if no customer exists with that email.\",\n input: PlainGetCustomerByEmailInput,\n output: PlainGetCustomerByEmailOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EACrE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;CAC1C,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B;AAClE,CAAC;AACD,MAAM,0CAAwDA,IAAAA,EAAE,OAAO,EACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,EAC7D,CAAC;AACD,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC3D,OAAO,wCAAwC,SAAS;CACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACzD,WAAW,wCAAwC,SAAS;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAW,wCAAwC,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,uDAAqEA,IAAAA,EAAE,OAAO,EAClF,iBAAiB,8CAA8C,SAAS,CAAC,CAAC,SAAS,EACrF,CAAC;AACD,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,MAAM,qDAAqD,SAAS,EACtE,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,0BAA0BC,eAAAA,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-customer-by-email.cjs","names":["z","action"],"sources":["../../src/actions/get-customer-by-email.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomerByEmailInput = z.object({\n email: z.string().describe(\"Email address of the customer to fetch\"),\n}).describe(\"Request input for fetching a customer by email in Plain.\");\nconst PlainGetCustomerByEmail_EmailInfoSchema = z.object({\n email: z.string().describe(\"Email address\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified\").nullable(),\n});\nconst PlainGetCustomerByEmail_TimestampSchema = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\").nullable(),\n});\nconst PlainGetCustomerByEmail_CustomerByEmailSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer\").nullable(),\n email: PlainGetCustomerByEmail_EmailInfoSchema.nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n createdAt: PlainGetCustomerByEmail_TimestampSchema.nullable(),\n shortName: z.string().describe(\"Short name (typically first name)\").nullable().optional(),\n updatedAt: PlainGetCustomerByEmail_TimestampSchema.nullable(),\n externalId: z.string().describe(\"External identifier from your system\").nullable().optional(),\n}).describe(\"Customer details returned by customerByEmail query.\");\nconst PlainGetCustomerByEmail_GetCustomerByEmailDataSchema = z.object({\n customerByEmail: PlainGetCustomerByEmail_CustomerByEmailSchema.nullable().optional(),\n});\nexport const PlainGetCustomerByEmailOutput = z.object({\n data: PlainGetCustomerByEmail_GetCustomerByEmailDataSchema.nullable(),\n}).describe(\"Response output containing customer details from Plain.\");\n\nexport const plainGetCustomerByEmail = action(\"PLAIN_GET_CUSTOMER_BY_EMAIL\", {\n slug: \"plain-get-customer-by-email\",\n name: \"Get Customer By Email\",\n description: \"Fetch customer details by email address. Returns customer information if found, or null if no customer exists with that email.\",\n input: PlainGetCustomerByEmailInput,\n output: PlainGetCustomerByEmailOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EACrE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACrD,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AAC7E,CAAC;AACD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,EACxE,CAAC;AACD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,OAAO,wCAAwC,SAAS;CACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,WAAW,wCAAwC,SAAS;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAW,wCAAwC,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,uDAAuDA,IAAAA,EAAE,OAAO,EACpE,iBAAiB,8CAA8C,SAAS,CAAC,CAAC,SAAS,EACrF,CAAC;AACD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,MAAM,qDAAqD,SAAS,EACtE,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,0BAA0BC,eAAAA,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,32 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-customer-by-email.d.ts
4
- declare const PlainGetCustomerByEmailInput: z.ZodTypeAny;
5
- declare const PlainGetCustomerByEmailOutput: z.ZodTypeAny;
6
- declare const plainGetCustomerByEmail: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainGetCustomerByEmailInput: z.ZodObject<{
5
+ email: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PlainGetCustomerByEmailOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ customerByEmail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ email: z.ZodNullable<z.ZodObject<{
12
+ email: z.ZodNullable<z.ZodString>;
13
+ isVerified: z.ZodNullable<z.ZodBoolean>;
14
+ }, z.core.$strip>>;
15
+ fullName: z.ZodNullable<z.ZodString>;
16
+ createdAt: z.ZodNullable<z.ZodObject<{
17
+ iso8601: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$strip>>;
19
+ shortName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ updatedAt: z.ZodNullable<z.ZodObject<{
21
+ iso8601: z.ZodNullable<z.ZodString>;
22
+ }, z.core.$strip>>;
23
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ }, z.core.$strip>>>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>;
27
+ declare const plainGetCustomerByEmail: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ email: string;
29
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
30
  //#endregion
8
31
  export { plainGetCustomerByEmail };
9
32
  //# sourceMappingURL=get-customer-by-email.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer-by-email.d.cts","names":[],"sources":["../../src/actions/get-customer-by-email.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAE0B;AAAA,cAoB1D,6BAAA,EAA+B,CAAA,CAAE,UAEwB;AAAA,cAEzD,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-customer-by-email.d.cts","names":[],"sources":["../../src/actions/get-customer-by-email.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAsB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
@@ -1,9 +1,32 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-customer-by-email.d.ts
4
- declare const PlainGetCustomerByEmailInput: z.ZodTypeAny;
5
- declare const PlainGetCustomerByEmailOutput: z.ZodTypeAny;
6
- declare const plainGetCustomerByEmail: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainGetCustomerByEmailInput: z.ZodObject<{
5
+ email: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PlainGetCustomerByEmailOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ customerByEmail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ email: z.ZodNullable<z.ZodObject<{
12
+ email: z.ZodNullable<z.ZodString>;
13
+ isVerified: z.ZodNullable<z.ZodBoolean>;
14
+ }, z.core.$strip>>;
15
+ fullName: z.ZodNullable<z.ZodString>;
16
+ createdAt: z.ZodNullable<z.ZodObject<{
17
+ iso8601: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$strip>>;
19
+ shortName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ updatedAt: z.ZodNullable<z.ZodObject<{
21
+ iso8601: z.ZodNullable<z.ZodString>;
22
+ }, z.core.$strip>>;
23
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ }, z.core.$strip>>>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>;
27
+ declare const plainGetCustomerByEmail: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ email: string;
29
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
30
  //#endregion
8
31
  export { plainGetCustomerByEmail };
9
32
  //# sourceMappingURL=get-customer-by-email.d.mts.map