@keystrokehq/plain 0.1.2 → 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 (133) hide show
  1. package/dist/actions/add-customer-to-group.cjs +7 -7
  2. package/dist/actions/add-customer-to-group.cjs.map +1 -1
  3. package/dist/actions/add-customer-to-group.d.cts +8 -7
  4. package/dist/actions/add-customer-to-group.d.mts +8 -7
  5. package/dist/actions/add-customer-to-group.mjs +7 -7
  6. package/dist/actions/add-customer-to-group.mjs.map +1 -1
  7. package/dist/actions/create-customer-group.cjs +5 -5
  8. package/dist/actions/create-customer-group.cjs.map +1 -1
  9. package/dist/actions/create-customer-group.d.cts +6 -6
  10. package/dist/actions/create-customer-group.d.mts +6 -6
  11. package/dist/actions/create-customer-group.mjs +5 -5
  12. package/dist/actions/create-customer-group.mjs.map +1 -1
  13. package/dist/actions/create-thread.cjs +10 -10
  14. package/dist/actions/create-thread.cjs.map +1 -1
  15. package/dist/actions/create-thread.d.cts +11 -10
  16. package/dist/actions/create-thread.d.mts +11 -10
  17. package/dist/actions/create-thread.mjs +10 -10
  18. package/dist/actions/create-thread.mjs.map +1 -1
  19. package/dist/actions/delete-customer.cjs +3 -3
  20. package/dist/actions/delete-customer.cjs.map +1 -1
  21. package/dist/actions/delete-customer.d.cts +3 -3
  22. package/dist/actions/delete-customer.d.mts +3 -3
  23. package/dist/actions/delete-customer.mjs +3 -3
  24. package/dist/actions/delete-customer.mjs.map +1 -1
  25. package/dist/actions/delete-user.cjs +3 -3
  26. package/dist/actions/delete-user.cjs.map +1 -1
  27. package/dist/actions/delete-user.d.cts +3 -3
  28. package/dist/actions/delete-user.d.mts +3 -3
  29. package/dist/actions/delete-user.mjs +3 -3
  30. package/dist/actions/delete-user.mjs.map +1 -1
  31. package/dist/actions/fetch-company.cjs +3 -3
  32. package/dist/actions/fetch-company.cjs.map +1 -1
  33. package/dist/actions/fetch-company.d.cts +4 -4
  34. package/dist/actions/fetch-company.d.mts +4 -4
  35. package/dist/actions/fetch-company.mjs +3 -3
  36. package/dist/actions/fetch-company.mjs.map +1 -1
  37. package/dist/actions/fetch-issues.cjs +2 -2
  38. package/dist/actions/fetch-issues.cjs.map +1 -1
  39. package/dist/actions/fetch-issues.d.cts +2 -2
  40. package/dist/actions/fetch-issues.d.mts +2 -2
  41. package/dist/actions/fetch-issues.mjs +2 -2
  42. package/dist/actions/fetch-issues.mjs.map +1 -1
  43. package/dist/actions/fetch-tier.cjs +3 -3
  44. package/dist/actions/fetch-tier.cjs.map +1 -1
  45. package/dist/actions/fetch-tier.d.cts +4 -4
  46. package/dist/actions/fetch-tier.d.mts +4 -4
  47. package/dist/actions/fetch-tier.mjs +3 -3
  48. package/dist/actions/fetch-tier.mjs.map +1 -1
  49. package/dist/actions/get-customer-by-email.cjs +5 -5
  50. package/dist/actions/get-customer-by-email.cjs.map +1 -1
  51. package/dist/actions/get-customer-by-email.d.cts +6 -6
  52. package/dist/actions/get-customer-by-email.d.mts +6 -6
  53. package/dist/actions/get-customer-by-email.mjs +5 -5
  54. package/dist/actions/get-customer-by-email.mjs.map +1 -1
  55. package/dist/actions/get-customer-by-id.cjs +1 -1
  56. package/dist/actions/get-customer-by-id.cjs.map +1 -1
  57. package/dist/actions/get-customer-by-id.d.cts +1 -1
  58. package/dist/actions/get-customer-by-id.d.mts +1 -1
  59. package/dist/actions/get-customer-by-id.mjs +1 -1
  60. package/dist/actions/get-customer-by-id.mjs.map +1 -1
  61. package/dist/actions/get-customers.cjs +7 -7
  62. package/dist/actions/get-customers.cjs.map +1 -1
  63. package/dist/actions/get-customers.d.cts +7 -7
  64. package/dist/actions/get-customers.d.mts +7 -7
  65. package/dist/actions/get-customers.mjs +7 -7
  66. package/dist/actions/get-customers.mjs.map +1 -1
  67. package/dist/actions/get-thread-by-id.cjs +9 -9
  68. package/dist/actions/get-thread-by-id.cjs.map +1 -1
  69. package/dist/actions/get-thread-by-id.d.cts +15 -15
  70. package/dist/actions/get-thread-by-id.d.mts +15 -15
  71. package/dist/actions/get-thread-by-id.mjs +9 -9
  72. package/dist/actions/get-thread-by-id.mjs.map +1 -1
  73. package/dist/actions/get-user-by-id.cjs +4 -4
  74. package/dist/actions/get-user-by-id.cjs.map +1 -1
  75. package/dist/actions/get-user-by-id.d.cts +4 -4
  76. package/dist/actions/get-user-by-id.d.mts +4 -4
  77. package/dist/actions/get-user-by-id.mjs +4 -4
  78. package/dist/actions/get-user-by-id.mjs.map +1 -1
  79. package/dist/actions/list-customer-groups.cjs +5 -5
  80. package/dist/actions/list-customer-groups.cjs.map +1 -1
  81. package/dist/actions/list-customer-groups.d.cts +5 -5
  82. package/dist/actions/list-customer-groups.d.mts +5 -5
  83. package/dist/actions/list-customer-groups.mjs +5 -5
  84. package/dist/actions/list-customer-groups.mjs.map +1 -1
  85. package/dist/actions/list-tiers.cjs +5 -5
  86. package/dist/actions/list-tiers.cjs.map +1 -1
  87. package/dist/actions/list-tiers.d.cts +5 -5
  88. package/dist/actions/list-tiers.d.mts +5 -5
  89. package/dist/actions/list-tiers.mjs +5 -5
  90. package/dist/actions/list-tiers.mjs.map +1 -1
  91. package/dist/actions/query-threads.cjs +7 -7
  92. package/dist/actions/query-threads.cjs.map +1 -1
  93. package/dist/actions/query-threads.d.cts +7 -7
  94. package/dist/actions/query-threads.d.mts +7 -7
  95. package/dist/actions/query-threads.mjs +7 -7
  96. package/dist/actions/query-threads.mjs.map +1 -1
  97. package/dist/actions/remove-customer-from-group.cjs +4 -4
  98. package/dist/actions/remove-customer-from-group.cjs.map +1 -1
  99. package/dist/actions/remove-customer-from-group.d.cts +5 -4
  100. package/dist/actions/remove-customer-from-group.d.mts +5 -4
  101. package/dist/actions/remove-customer-from-group.mjs +4 -4
  102. package/dist/actions/remove-customer-from-group.mjs.map +1 -1
  103. package/dist/actions/run-graphql-query.cjs +4 -4
  104. package/dist/actions/run-graphql-query.cjs.map +1 -1
  105. package/dist/actions/run-graphql-query.d.cts +4 -4
  106. package/dist/actions/run-graphql-query.d.mts +4 -4
  107. package/dist/actions/run-graphql-query.mjs +4 -4
  108. package/dist/actions/run-graphql-query.mjs.map +1 -1
  109. package/dist/actions/send-message.cjs +5 -5
  110. package/dist/actions/send-message.cjs.map +1 -1
  111. package/dist/actions/send-message.d.cts +7 -5
  112. package/dist/actions/send-message.d.mts +7 -5
  113. package/dist/actions/send-message.mjs +5 -5
  114. package/dist/actions/send-message.mjs.map +1 -1
  115. package/dist/actions/update-company.cjs +5 -5
  116. package/dist/actions/update-company.cjs.map +1 -1
  117. package/dist/actions/update-company.d.cts +5 -5
  118. package/dist/actions/update-company.d.mts +5 -5
  119. package/dist/actions/update-company.mjs +5 -5
  120. package/dist/actions/update-company.mjs.map +1 -1
  121. package/dist/actions/update-thread.cjs +5 -5
  122. package/dist/actions/update-thread.cjs.map +1 -1
  123. package/dist/actions/update-thread.d.cts +5 -5
  124. package/dist/actions/update-thread.d.mts +5 -5
  125. package/dist/actions/update-thread.mjs +5 -5
  126. package/dist/actions/update-thread.mjs.map +1 -1
  127. package/dist/actions/upsert-customer.cjs +7 -7
  128. package/dist/actions/upsert-customer.cjs.map +1 -1
  129. package/dist/actions/upsert-customer.d.cts +9 -7
  130. package/dist/actions/upsert-customer.d.mts +9 -7
  131. package/dist/actions/upsert-customer.mjs +7 -7
  132. package/dist/actions/upsert-customer.mjs.map +1 -1
  133. package/package.json +1 -1
@@ -12,17 +12,17 @@ declare const PlainFetchTierOutput: z.ZodObject<{
12
12
  createdAt: z.ZodNullable<z.ZodObject<{
13
13
  iso8601: z.ZodNullable<z.ZodString>;
14
14
  unixTimestamp: z.ZodNullable<z.ZodString>;
15
- }, z.core.$strip>>;
15
+ }, z.core.$loose>>;
16
16
  isDefault: z.ZodNullable<z.ZodBoolean>;
17
17
  updatedAt: z.ZodNullable<z.ZodObject<{
18
18
  iso8601: z.ZodNullable<z.ZodString>;
19
19
  unixTimestamp: z.ZodNullable<z.ZodString>;
20
- }, z.core.$strip>>;
20
+ }, z.core.$loose>>;
21
21
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  isMachineTier: z.ZodNullable<z.ZodBoolean>;
23
23
  defaultThreadPriority: z.ZodNullable<z.ZodNumber>;
24
- }, z.core.$strip>>>;
25
- }, z.core.$strip>;
24
+ }, z.core.$loose>>>;
25
+ }, z.core.$loose>;
26
26
  declare const plainFetchTier: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  tier_id: string;
28
28
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -12,17 +12,17 @@ declare const PlainFetchTierOutput: z.ZodObject<{
12
12
  createdAt: z.ZodNullable<z.ZodObject<{
13
13
  iso8601: z.ZodNullable<z.ZodString>;
14
14
  unixTimestamp: z.ZodNullable<z.ZodString>;
15
- }, z.core.$strip>>;
15
+ }, z.core.$loose>>;
16
16
  isDefault: z.ZodNullable<z.ZodBoolean>;
17
17
  updatedAt: z.ZodNullable<z.ZodObject<{
18
18
  iso8601: z.ZodNullable<z.ZodString>;
19
19
  unixTimestamp: z.ZodNullable<z.ZodString>;
20
- }, z.core.$strip>>;
20
+ }, z.core.$loose>>;
21
21
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  isMachineTier: z.ZodNullable<z.ZodBoolean>;
23
23
  defaultThreadPriority: z.ZodNullable<z.ZodNumber>;
24
- }, z.core.$strip>>>;
25
- }, z.core.$strip>;
24
+ }, z.core.$loose>>>;
25
+ }, z.core.$loose>;
26
26
  declare const plainFetchTier: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  tier_id: string;
28
28
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -5,7 +5,7 @@ const PlainFetchTierInput = z.object({ tier_id: z.string().describe("The unique
5
5
  const PlainFetchTier_DateTimeSchema = z.object({
6
6
  iso8601: z.string().describe("ISO 8601 datetime string.").nullable(),
7
7
  unixTimestamp: z.string().describe("Unix timestamp representation.").nullable()
8
- }).describe("DateTime object with Unix timestamp and ISO 8601 format.");
8
+ }).passthrough().describe("DateTime object with Unix timestamp and ISO 8601 format.");
9
9
  const PlainFetchTier_TierSchema = z.object({
10
10
  id: z.string().describe("The unique identifier of the tier.").nullable(),
11
11
  name: z.string().describe("The display name of the tier.").nullable(),
@@ -16,13 +16,13 @@ const PlainFetchTier_TierSchema = z.object({
16
16
  externalId: z.string().describe("Custom identifier from your system (unique per workspace).").nullable().optional(),
17
17
  isMachineTier: z.boolean().describe("Whether the tier was auto-generated from tenant fields.").nullable(),
18
18
  defaultThreadPriority: z.number().int().describe("Default priority for threads created in this tier.").nullable()
19
- }).describe("Tier object returned by the API.");
19
+ }).passthrough().describe("Tier object returned by the API.");
20
20
  const plainFetchTier = action("PLAIN_FETCH_TIER", {
21
21
  slug: "plain-fetch-tier",
22
22
  name: "Fetch Tier",
23
23
  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\".",
24
24
  input: PlainFetchTierInput,
25
- output: z.object({ tier: PlainFetchTier_TierSchema.nullable().optional() }).describe("Response schema for fetching a single tier.")
25
+ output: z.object({ tier: PlainFetchTier_TierSchema.nullable().optional() }).passthrough().describe("Response schema for fetching a single tier.")
26
26
  });
27
27
  //#endregion
28
28
  export { plainFetchTier };
@@ -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.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"}
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}).passthrough().describe(\"DateTime object with Unix timestamp and ISO 8601 format.\");\nconst PlainFetchTier_TierSchema = z.object({\n id: z.string().describe(\"The unique identifier of the tier.\").nullable(),\n name: z.string().describe(\"The display name of the tier.\").nullable(),\n color: z.string().describe(\"Hex color code for UI representation.\").nullable(),\n createdAt: PlainFetchTier_DateTimeSchema.nullable(),\n isDefault: z.boolean().describe(\"Whether this tier applies to unmatched threads.\").nullable(),\n updatedAt: PlainFetchTier_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"Custom identifier from your system (unique per workspace).\").nullable().optional(),\n isMachineTier: z.boolean().describe(\"Whether the tier was auto-generated from tenant fields.\").nullable(),\n defaultThreadPriority: z.number().int().describe(\"Default priority for threads created in this tier.\").nullable(),\n}).passthrough().describe(\"Tier object returned by the API.\");\nexport const PlainFetchTierOutput = z.object({\n tier: PlainFetchTier_TierSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for fetching a single tier.\");\n\nexport const plainFetchTier = action(\"PLAIN_FETCH_TIER\", {\n slug: \"plain-fetch-tier\",\n name: \"Fetch Tier\",\n description: \"Tool to fetch a tier by its ID. Use when you have a tier ID and need its metadata before proceeding. Example: \\\"Fetch tier with ID tier_123\\\".\",\n input: PlainFetchTierInput,\n output: PlainFetchTierOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,YAAY,CAAC,CAAC,SAAS,0DAA0D;AACpF,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,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAK5D,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,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
@@ -5,8 +5,8 @@ const PlainGetCustomerByEmailInput = zod.z.object({ email: zod.z.string().descri
5
5
  const PlainGetCustomerByEmail_EmailInfoSchema = zod.z.object({
6
6
  email: zod.z.string().describe("Email address").nullable(),
7
7
  isVerified: zod.z.boolean().describe("Whether the email is verified").nullable()
8
- });
9
- const PlainGetCustomerByEmail_TimestampSchema = zod.z.object({ iso8601: zod.z.string().describe("Timestamp in ISO 8601 format").nullable() });
8
+ }).passthrough();
9
+ const PlainGetCustomerByEmail_TimestampSchema = zod.z.object({ iso8601: zod.z.string().describe("Timestamp in ISO 8601 format").nullable() }).passthrough();
10
10
  const PlainGetCustomerByEmail_CustomerByEmailSchema = zod.z.object({
11
11
  id: zod.z.string().describe("Unique identifier of the customer").nullable(),
12
12
  email: PlainGetCustomerByEmail_EmailInfoSchema.nullable(),
@@ -15,9 +15,9 @@ const PlainGetCustomerByEmail_CustomerByEmailSchema = zod.z.object({
15
15
  shortName: zod.z.string().describe("Short name (typically first name)").nullable().optional(),
16
16
  updatedAt: PlainGetCustomerByEmail_TimestampSchema.nullable(),
17
17
  externalId: zod.z.string().describe("External identifier from your system").nullable().optional()
18
- }).describe("Customer details returned by customerByEmail query.");
19
- const PlainGetCustomerByEmail_GetCustomerByEmailDataSchema = zod.z.object({ customerByEmail: PlainGetCustomerByEmail_CustomerByEmailSchema.nullable().optional() });
20
- const PlainGetCustomerByEmailOutput = zod.z.object({ data: PlainGetCustomerByEmail_GetCustomerByEmailDataSchema.nullable() }).describe("Response output containing customer details from Plain.");
18
+ }).passthrough().describe("Customer details returned by customerByEmail query.");
19
+ const PlainGetCustomerByEmail_GetCustomerByEmailDataSchema = zod.z.object({ customerByEmail: PlainGetCustomerByEmail_CustomerByEmailSchema.nullable().optional() }).passthrough();
20
+ const PlainGetCustomerByEmailOutput = zod.z.object({ data: PlainGetCustomerByEmail_GetCustomerByEmailDataSchema.nullable() }).passthrough().describe("Response output containing customer details from Plain.");
21
21
  const plainGetCustomerByEmail = require_action.action("PLAIN_GET_CUSTOMER_BY_EMAIL", {
22
22
  slug: "plain-get-customer-by-email",
23
23
  name: "Get Customer By Email",
@@ -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.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
+ {"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}).passthrough();\nconst PlainGetCustomerByEmail_TimestampSchema = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\").nullable(),\n}).passthrough();\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}).passthrough().describe(\"Customer details returned by customerByEmail query.\");\nconst PlainGetCustomerByEmail_GetCustomerByEmailDataSchema = z.object({\n customerByEmail: PlainGetCustomerByEmail_CustomerByEmailSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetCustomerByEmailOutput = z.object({\n data: PlainGetCustomerByEmail_GetCustomerByEmailDataSchema.nullable(),\n}).passthrough().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,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0CA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,EACxE,CAAC,CAAC,CAAC,YAAY;AACf,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,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,uDAAuDA,IAAAA,EAAE,OAAO,EACpE,iBAAiB,8CAA8C,SAAS,CAAC,CAAC,SAAS,EACrF,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,MAAM,qDAAqD,SAAS,EACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,0BAA0BC,eAAAA,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -11,19 +11,19 @@ declare const PlainGetCustomerByEmailOutput: z.ZodObject<{
11
11
  email: z.ZodNullable<z.ZodObject<{
12
12
  email: z.ZodNullable<z.ZodString>;
13
13
  isVerified: z.ZodNullable<z.ZodBoolean>;
14
- }, z.core.$strip>>;
14
+ }, z.core.$loose>>;
15
15
  fullName: z.ZodNullable<z.ZodString>;
16
16
  createdAt: z.ZodNullable<z.ZodObject<{
17
17
  iso8601: z.ZodNullable<z.ZodString>;
18
- }, z.core.$strip>>;
18
+ }, z.core.$loose>>;
19
19
  shortName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  updatedAt: z.ZodNullable<z.ZodObject<{
21
21
  iso8601: z.ZodNullable<z.ZodString>;
22
- }, z.core.$strip>>;
22
+ }, z.core.$loose>>;
23
23
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
- }, z.core.$strip>>>;
25
- }, z.core.$strip>>;
26
- }, z.core.$strip>;
24
+ }, z.core.$loose>>>;
25
+ }, z.core.$loose>>;
26
+ }, z.core.$loose>;
27
27
  declare const plainGetCustomerByEmail: import("@keystrokehq/action").WorkflowActionDefinition<{
28
28
  email: string;
29
29
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -11,19 +11,19 @@ declare const PlainGetCustomerByEmailOutput: z.ZodObject<{
11
11
  email: z.ZodNullable<z.ZodObject<{
12
12
  email: z.ZodNullable<z.ZodString>;
13
13
  isVerified: z.ZodNullable<z.ZodBoolean>;
14
- }, z.core.$strip>>;
14
+ }, z.core.$loose>>;
15
15
  fullName: z.ZodNullable<z.ZodString>;
16
16
  createdAt: z.ZodNullable<z.ZodObject<{
17
17
  iso8601: z.ZodNullable<z.ZodString>;
18
- }, z.core.$strip>>;
18
+ }, z.core.$loose>>;
19
19
  shortName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  updatedAt: z.ZodNullable<z.ZodObject<{
21
21
  iso8601: z.ZodNullable<z.ZodString>;
22
- }, z.core.$strip>>;
22
+ }, z.core.$loose>>;
23
23
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
- }, z.core.$strip>>>;
25
- }, z.core.$strip>>;
26
- }, z.core.$strip>;
24
+ }, z.core.$loose>>>;
25
+ }, z.core.$loose>>;
26
+ }, z.core.$loose>;
27
27
  declare const plainGetCustomerByEmail: import("@keystrokehq/action").WorkflowActionDefinition<{
28
28
  email: string;
29
29
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -5,8 +5,8 @@ const PlainGetCustomerByEmailInput = z.object({ email: z.string().describe("Emai
5
5
  const PlainGetCustomerByEmail_EmailInfoSchema = z.object({
6
6
  email: z.string().describe("Email address").nullable(),
7
7
  isVerified: z.boolean().describe("Whether the email is verified").nullable()
8
- });
9
- const PlainGetCustomerByEmail_TimestampSchema = z.object({ iso8601: z.string().describe("Timestamp in ISO 8601 format").nullable() });
8
+ }).passthrough();
9
+ const PlainGetCustomerByEmail_TimestampSchema = z.object({ iso8601: z.string().describe("Timestamp in ISO 8601 format").nullable() }).passthrough();
10
10
  const PlainGetCustomerByEmail_CustomerByEmailSchema = z.object({
11
11
  id: z.string().describe("Unique identifier of the customer").nullable(),
12
12
  email: PlainGetCustomerByEmail_EmailInfoSchema.nullable(),
@@ -15,14 +15,14 @@ const PlainGetCustomerByEmail_CustomerByEmailSchema = z.object({
15
15
  shortName: z.string().describe("Short name (typically first name)").nullable().optional(),
16
16
  updatedAt: PlainGetCustomerByEmail_TimestampSchema.nullable(),
17
17
  externalId: z.string().describe("External identifier from your system").nullable().optional()
18
- }).describe("Customer details returned by customerByEmail query.");
19
- const PlainGetCustomerByEmail_GetCustomerByEmailDataSchema = z.object({ customerByEmail: PlainGetCustomerByEmail_CustomerByEmailSchema.nullable().optional() });
18
+ }).passthrough().describe("Customer details returned by customerByEmail query.");
19
+ const PlainGetCustomerByEmail_GetCustomerByEmailDataSchema = z.object({ customerByEmail: PlainGetCustomerByEmail_CustomerByEmailSchema.nullable().optional() }).passthrough();
20
20
  const plainGetCustomerByEmail = action("PLAIN_GET_CUSTOMER_BY_EMAIL", {
21
21
  slug: "plain-get-customer-by-email",
22
22
  name: "Get Customer By Email",
23
23
  description: "Fetch customer details by email address. Returns customer information if found, or null if no customer exists with that email.",
24
24
  input: PlainGetCustomerByEmailInput,
25
- output: z.object({ data: PlainGetCustomerByEmail_GetCustomerByEmailDataSchema.nullable() }).describe("Response output containing customer details from Plain.")
25
+ output: z.object({ data: PlainGetCustomerByEmail_GetCustomerByEmailDataSchema.nullable() }).passthrough().describe("Response output containing customer details from Plain.")
26
26
  });
27
27
  //#endregion
28
28
  export { plainGetCustomerByEmail };
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer-by-email.mjs","names":[],"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+B,EAAE,OAAO,EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,EACrE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,0CAA0C,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACrD,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AAC7E,CAAC;AACD,MAAM,0CAA0C,EAAE,OAAO,EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,EACxE,CAAC;AACD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,OAAO,wCAAwC,SAAS;CACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,WAAW,wCAAwC,SAAS;CAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAW,wCAAwC,SAAS;CAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,uDAAuD,EAAE,OAAO,EACpE,iBAAiB,8CAA8C,SAAS,CAAC,CAAC,SAAS,EACrF,CAAC;AAKD,MAAa,0BAA0B,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,MAAM,qDAAqD,SAAS,EACtE,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-customer-by-email.mjs","names":[],"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}).passthrough();\nconst PlainGetCustomerByEmail_TimestampSchema = z.object({\n iso8601: z.string().describe(\"Timestamp in ISO 8601 format\").nullable(),\n}).passthrough();\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}).passthrough().describe(\"Customer details returned by customerByEmail query.\");\nconst PlainGetCustomerByEmail_GetCustomerByEmailDataSchema = z.object({\n customerByEmail: PlainGetCustomerByEmail_CustomerByEmailSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetCustomerByEmailOutput = z.object({\n data: PlainGetCustomerByEmail_GetCustomerByEmailDataSchema.nullable(),\n}).passthrough().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: Pl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AS,EACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
@@ -8,7 +8,7 @@ const PlainGetCustomerByIdOutput = zod.z.object({
8
8
  full_name: zod.z.string().describe("The full name of the customer.").nullable(),
9
9
  created_at: zod.z.string().describe("ISO-8601 timestamp when the customer was created.").nullable(),
10
10
  updated_at: zod.z.string().describe("ISO-8601 timestamp when the customer was last updated.").nullable()
11
- }).describe("Response schema for customer details.");
11
+ }).passthrough().describe("Response schema for customer details.");
12
12
  const plainGetCustomerById = require_action.action("PLAIN_GET_CUSTOMER_BY_ID", {
13
13
  slug: "plain-get-customer-by-id",
14
14
  name: "Get Customer By ID",
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-customer-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomerByIdInput = z.object({\n id: z.string().describe(\"The unique identifier of the customer to retrieve.\"),\n}).describe(\"Request input for fetching a customer by their ID.\");\nexport const PlainGetCustomerByIdOutput = z.object({\n id: z.string().describe(\"Plain's internal customer ID.\").nullable(),\n email: z.string().describe(\"The email address of the customer.\").nullable(),\n full_name: z.string().describe(\"The full name of the customer.\").nullable(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the customer was created.\").nullable(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the customer was last updated.\").nullable(),\n}).describe(\"Response schema for customer details.\");\n\nexport const plainGetCustomerById = action(\"PLAIN_GET_CUSTOMER_BY_ID\", {\n slug: \"plain-get-customer-by-id\",\n name: \"Get Customer By ID\",\n description: \"Tool to retrieve details of a specific customer by their unique ID. Use after obtaining the customer's ID to fetch their complete record.\",\n input: PlainGetCustomerByIdInput,\n output: PlainGetCustomerByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EAC9E,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,uBAAuBC,eAAAA,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-customer-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-customer-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomerByIdInput = z.object({\n id: z.string().describe(\"The unique identifier of the customer to retrieve.\"),\n}).describe(\"Request input for fetching a customer by their ID.\");\nexport const PlainGetCustomerByIdOutput = z.object({\n id: z.string().describe(\"Plain's internal customer ID.\").nullable(),\n email: z.string().describe(\"The email address of the customer.\").nullable(),\n full_name: z.string().describe(\"The full name of the customer.\").nullable(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the customer was created.\").nullable(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the customer was last updated.\").nullable(),\n}).passthrough().describe(\"Response schema for customer details.\");\n\nexport const plainGetCustomerById = action(\"PLAIN_GET_CUSTOMER_BY_ID\", {\n slug: \"plain-get-customer-by-id\",\n name: \"Get Customer By ID\",\n description: \"Tool to retrieve details of a specific customer by their unique ID. Use after obtaining the customer's ID to fetch their complete record.\",\n input: PlainGetCustomerByIdInput,\n output: PlainGetCustomerByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EAC9E,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,uBAAuBC,eAAAA,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -10,7 +10,7 @@ declare const PlainGetCustomerByIdOutput: z.ZodObject<{
10
10
  full_name: z.ZodNullable<z.ZodString>;
11
11
  created_at: z.ZodNullable<z.ZodString>;
12
12
  updated_at: z.ZodNullable<z.ZodString>;
13
- }, z.core.$strip>;
13
+ }, z.core.$loose>;
14
14
  declare const plainGetCustomerById: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  id: string;
16
16
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -10,7 +10,7 @@ declare const PlainGetCustomerByIdOutput: z.ZodObject<{
10
10
  full_name: z.ZodNullable<z.ZodString>;
11
11
  created_at: z.ZodNullable<z.ZodString>;
12
12
  updated_at: z.ZodNullable<z.ZodString>;
13
- }, z.core.$strip>;
13
+ }, z.core.$loose>;
14
14
  declare const plainGetCustomerById: import("@keystrokehq/action").WorkflowActionDefinition<{
15
15
  id: string;
16
16
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -11,7 +11,7 @@ const plainGetCustomerById = action("PLAIN_GET_CUSTOMER_BY_ID", {
11
11
  full_name: z.string().describe("The full name of the customer.").nullable(),
12
12
  created_at: z.string().describe("ISO-8601 timestamp when the customer was created.").nullable(),
13
13
  updated_at: z.string().describe("ISO-8601 timestamp when the customer was last updated.").nullable()
14
- }).describe("Response schema for customer details.")
14
+ }).passthrough().describe("Response schema for customer details.")
15
15
  });
16
16
  //#endregion
17
17
  export { plainGetCustomerById };
@@ -1 +1 @@
1
- {"version":3,"file":"get-customer-by-id.mjs","names":[],"sources":["../../src/actions/get-customer-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomerByIdInput = z.object({\n id: z.string().describe(\"The unique identifier of the customer to retrieve.\"),\n}).describe(\"Request input for fetching a customer by their ID.\");\nexport const PlainGetCustomerByIdOutput = z.object({\n id: z.string().describe(\"Plain's internal customer ID.\").nullable(),\n email: z.string().describe(\"The email address of the customer.\").nullable(),\n full_name: z.string().describe(\"The full name of the customer.\").nullable(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the customer was created.\").nullable(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the customer was last updated.\").nullable(),\n}).describe(\"Response schema for customer details.\");\n\nexport const plainGetCustomerById = action(\"PLAIN_GET_CUSTOMER_BY_ID\", {\n slug: \"plain-get-customer-by-id\",\n name: \"Get Customer By ID\",\n description: \"Tool to retrieve details of a specific customer by their unique ID. Use after obtaining the customer's ID to fetch their complete record.\",\n input: PlainGetCustomerByIdInput,\n output: PlainGetCustomerByIdOutput,\n});\n"],"mappings":";;AAeA,MAAa,uBAAuB,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfuC,EAAE,OAAO,EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EAC9E,CAAC,CAAC,CAAC,SAAS,oDAaH;CACP,QAbwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-customer-by-id.mjs","names":[],"sources":["../../src/actions/get-customer-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomerByIdInput = z.object({\n id: z.string().describe(\"The unique identifier of the customer to retrieve.\"),\n}).describe(\"Request input for fetching a customer by their ID.\");\nexport const PlainGetCustomerByIdOutput = z.object({\n id: z.string().describe(\"Plain's internal customer ID.\").nullable(),\n email: z.string().describe(\"The email address of the customer.\").nullable(),\n full_name: z.string().describe(\"The full name of the customer.\").nullable(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the customer was created.\").nullable(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the customer was last updated.\").nullable(),\n}).passthrough().describe(\"Response schema for customer details.\");\n\nexport const plainGetCustomerById = action(\"PLAIN_GET_CUSTOMER_BY_ID\", {\n slug: \"plain-get-customer-by-id\",\n name: \"Get Customer By ID\",\n description: \"Tool to retrieve details of a specific customer by their unique ID. Use after obtaining the customer's ID to fetch their complete record.\",\n input: PlainGetCustomerByIdInput,\n output: PlainGetCustomerByIdOutput,\n});\n"],"mappings":";;AAeA,MAAa,uBAAuB,OAAO,4BAA4B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfuC,EAAE,OAAO,EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,EAC9E,CAAC,CAAC,CAAC,SAAS,oDAaH;CACP,QAbwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
@@ -19,8 +19,8 @@ const PlainGetCustomersInput = zod.z.object({
19
19
  const PlainGetCustomers_CustomerEmailSchema = zod.z.object({
20
20
  email: zod.z.string().describe("Customer's email address.").nullable(),
21
21
  isVerified: zod.z.boolean().describe("Whether the email is verified.").nullable()
22
- });
23
- const PlainGetCustomers_MarkedAsSpamAtSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO8601 timestamp when the customer was marked as spam.").nullable() });
22
+ }).passthrough();
23
+ const PlainGetCustomers_MarkedAsSpamAtSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO8601 timestamp when the customer was marked as spam.").nullable() }).passthrough();
24
24
  const PlainGetCustomers_CustomerNodeSchema = zod.z.object({
25
25
  id: zod.z.string().nullable(),
26
26
  email: PlainGetCustomers_CustomerEmailSchema.nullable(),
@@ -28,20 +28,20 @@ const PlainGetCustomers_CustomerNodeSchema = zod.z.object({
28
28
  shortName: zod.z.string().nullable().optional(),
29
29
  externalId: zod.z.string().nullable().optional(),
30
30
  markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional()
31
- });
32
- const PlainGetCustomers_CustomersEdgeSchema = zod.z.object({ node: PlainGetCustomers_CustomerNodeSchema.nullable() });
31
+ }).passthrough();
32
+ const PlainGetCustomers_CustomersEdgeSchema = zod.z.object({ node: PlainGetCustomers_CustomerNodeSchema.nullable() }).passthrough();
33
33
  const PlainGetCustomers_PageInfoSchema = zod.z.object({
34
34
  endCursor: zod.z.string().nullable().optional(),
35
35
  hasNextPage: zod.z.boolean().nullable(),
36
36
  startCursor: zod.z.string().nullable().optional(),
37
37
  hasPreviousPage: zod.z.boolean().nullable()
38
- });
38
+ }).passthrough();
39
39
  const PlainGetCustomers_CustomersConnectionSchema = zod.z.object({
40
40
  edges: zod.z.array(PlainGetCustomers_CustomersEdgeSchema),
41
41
  pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),
42
42
  totalCount: zod.z.number().int().nullable()
43
- });
44
- const PlainGetCustomersOutput = zod.z.object({ customers: PlainGetCustomers_CustomersConnectionSchema.nullable() });
43
+ }).passthrough();
44
+ const PlainGetCustomersOutput = zod.z.object({ customers: PlainGetCustomers_CustomersConnectionSchema.nullable() }).passthrough();
45
45
  const plainGetCustomers = require_action.action("PLAIN_GET_CUSTOMERS", {
46
46
  slug: "plain-get-customers",
47
47
  name: "Get Customers",
@@ -1 +1 @@
1
- {"version":3,"file":"get-customers.cjs","names":["z","action"],"sources":["../../src/actions/get-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomersInput = z.object({\n last: z.number().int().describe(\"Number of customers to fetch before the 'before' cursor. Must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of customers to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n sortBy: z.object({\n field: z.string().describe(\"Which customer field to sort by (e.g., 'FULL_NAME', 'UPDATED_AT').\"),\n direction: z.enum([\"ASC\", \"DESC\"]).describe(\"Sort order: ASC for ascending, DESC for descending.\"),\n}).describe(\"Sorting instructions for the customers list.\").optional(),\n filters: z.object({\n isMarkedAsSpam: z.boolean().describe(\"If set, only returns customers whose spam status matches this flag.\").optional(),\n customerGroupIds: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group IDs.\").optional(),\n customerGroupKeys: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group keys.\").optional(),\n}).describe(\"Filters to apply when fetching customers.\").optional(),\n}).describe(\"Request parameters for fetching a paginated, filtered, and sorted list of customers.\");\nconst PlainGetCustomers_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Customer's email address.\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified.\").nullable(),\n});\nconst PlainGetCustomers_MarkedAsSpamAtSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp when the customer was marked as spam.\").nullable(),\n});\nconst PlainGetCustomers_CustomerNodeSchema = z.object({\n id: z.string().nullable(),\n email: PlainGetCustomers_CustomerEmailSchema.nullable(),\n fullName: z.string().nullable(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional(),\n});\nconst PlainGetCustomers_CustomersEdgeSchema = z.object({\n node: PlainGetCustomers_CustomerNodeSchema.nullable(),\n});\nconst PlainGetCustomers_PageInfoSchema = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean().nullable(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean().nullable(),\n});\nconst PlainGetCustomers_CustomersConnectionSchema = z.object({\n edges: z.array(PlainGetCustomers_CustomersEdgeSchema),\n pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),\n totalCount: z.number().int().nullable(),\n});\nexport const PlainGetCustomersOutput = z.object({\n customers: PlainGetCustomers_CustomersConnectionSchema.nullable(),\n});\n\nexport const plainGetCustomers = action(\"PLAIN_GET_CUSTOMERS\", {\n slug: \"plain-get-customers\",\n name: \"Get Customers\",\n description: \"Tool to fetch a list of customers. Use when retrieving multiple customer records with pagination, filtering, or sorting.\",\n input: PlainGetCustomersInput,\n output: PlainGetCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,OAAO;EACjB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EAC/F,WAAWA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,qDAAqD;CACnG,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnE,SAASA,IAAAA,EAAE,OAAO;EAClB,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACrH,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACzI,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,EAAE,QAAQ,CAAC,CAAC,SAAS;AACxC,CAAC;AACD,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,MAAM,qCAAqC;CACpD,UAAU,iCAAiC,SAAS;CACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;AACxC,CAAC;AACD,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,WAAW,4CAA4C,SAAS,EAClE,CAAC;AAED,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-customers.cjs","names":["z","action"],"sources":["../../src/actions/get-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomersInput = z.object({\n last: z.number().int().describe(\"Number of customers to fetch before the 'before' cursor. Must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of customers to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n sortBy: z.object({\n field: z.string().describe(\"Which customer field to sort by (e.g., 'FULL_NAME', 'UPDATED_AT').\"),\n direction: z.enum([\"ASC\", \"DESC\"]).describe(\"Sort order: ASC for ascending, DESC for descending.\"),\n}).describe(\"Sorting instructions for the customers list.\").optional(),\n filters: z.object({\n isMarkedAsSpam: z.boolean().describe(\"If set, only returns customers whose spam status matches this flag.\").optional(),\n customerGroupIds: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group IDs.\").optional(),\n customerGroupKeys: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group keys.\").optional(),\n}).describe(\"Filters to apply when fetching customers.\").optional(),\n}).describe(\"Request parameters for fetching a paginated, filtered, and sorted list of customers.\");\nconst PlainGetCustomers_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Customer's email address.\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_MarkedAsSpamAtSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp when the customer was marked as spam.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomerNodeSchema = z.object({\n id: z.string().nullable(),\n email: PlainGetCustomers_CustomerEmailSchema.nullable(),\n fullName: z.string().nullable(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetCustomers_CustomersEdgeSchema = z.object({\n node: PlainGetCustomers_CustomerNodeSchema.nullable(),\n}).passthrough();\nconst PlainGetCustomers_PageInfoSchema = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean().nullable(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean().nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomersConnectionSchema = z.object({\n edges: z.array(PlainGetCustomers_CustomersEdgeSchema),\n pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),\n totalCount: z.number().int().nullable(),\n}).passthrough();\nexport const PlainGetCustomersOutput = z.object({\n customers: PlainGetCustomers_CustomersConnectionSchema.nullable(),\n}).passthrough();\n\nexport const plainGetCustomers = action(\"PLAIN_GET_CUSTOMERS\", {\n slug: \"plain-get-customers\",\n name: \"Get Customers\",\n description: \"Tool to fetch a list of customers. Use when retrieving multiple customer records with pagination, filtering, or sorting.\",\n input: PlainGetCustomersInput,\n output: PlainGetCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,OAAOA,IAAAA,EAAE,OAAO,C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24 +27,24 @@ declare const PlainGetCustomersOutput: z.ZodObject<{
27
27
  email: z.ZodNullable<z.ZodObject<{
28
28
  email: z.ZodNullable<z.ZodString>;
29
29
  isVerified: z.ZodNullable<z.ZodBoolean>;
30
- }, z.core.$strip>>;
30
+ }, z.core.$loose>>;
31
31
  fullName: z.ZodNullable<z.ZodString>;
32
32
  shortName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
34
  markedAsSpamAt: z.ZodOptional<z.ZodNullable<z.ZodObject<{
35
35
  iso8601: z.ZodNullable<z.ZodString>;
36
- }, z.core.$strip>>>;
37
- }, z.core.$strip>>;
38
- }, z.core.$strip>>;
36
+ }, z.core.$loose>>>;
37
+ }, z.core.$loose>>;
38
+ }, z.core.$loose>>;
39
39
  pageInfo: z.ZodNullable<z.ZodObject<{
40
40
  endCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  hasNextPage: z.ZodNullable<z.ZodBoolean>;
42
42
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
43
  hasPreviousPage: z.ZodNullable<z.ZodBoolean>;
44
- }, z.core.$strip>>;
44
+ }, z.core.$loose>>;
45
45
  totalCount: z.ZodNullable<z.ZodNumber>;
46
- }, z.core.$strip>>;
47
- }, z.core.$strip>;
46
+ }, z.core.$loose>>;
47
+ }, z.core.$loose>;
48
48
  declare const plainGetCustomers: import("@keystrokehq/action").WorkflowActionDefinition<{
49
49
  last?: number | undefined;
50
50
  after?: string | undefined;
@@ -27,24 +27,24 @@ declare const PlainGetCustomersOutput: z.ZodObject<{
27
27
  email: z.ZodNullable<z.ZodObject<{
28
28
  email: z.ZodNullable<z.ZodString>;
29
29
  isVerified: z.ZodNullable<z.ZodBoolean>;
30
- }, z.core.$strip>>;
30
+ }, z.core.$loose>>;
31
31
  fullName: z.ZodNullable<z.ZodString>;
32
32
  shortName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
34
  markedAsSpamAt: z.ZodOptional<z.ZodNullable<z.ZodObject<{
35
35
  iso8601: z.ZodNullable<z.ZodString>;
36
- }, z.core.$strip>>>;
37
- }, z.core.$strip>>;
38
- }, z.core.$strip>>;
36
+ }, z.core.$loose>>>;
37
+ }, z.core.$loose>>;
38
+ }, z.core.$loose>>;
39
39
  pageInfo: z.ZodNullable<z.ZodObject<{
40
40
  endCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  hasNextPage: z.ZodNullable<z.ZodBoolean>;
42
42
  startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
43
  hasPreviousPage: z.ZodNullable<z.ZodBoolean>;
44
- }, z.core.$strip>>;
44
+ }, z.core.$loose>>;
45
45
  totalCount: z.ZodNullable<z.ZodNumber>;
46
- }, z.core.$strip>>;
47
- }, z.core.$strip>;
46
+ }, z.core.$loose>>;
47
+ }, z.core.$loose>;
48
48
  declare const plainGetCustomers: import("@keystrokehq/action").WorkflowActionDefinition<{
49
49
  last?: number | undefined;
50
50
  after?: string | undefined;
@@ -19,8 +19,8 @@ const PlainGetCustomersInput = z.object({
19
19
  const PlainGetCustomers_CustomerEmailSchema = z.object({
20
20
  email: z.string().describe("Customer's email address.").nullable(),
21
21
  isVerified: z.boolean().describe("Whether the email is verified.").nullable()
22
- });
23
- const PlainGetCustomers_MarkedAsSpamAtSchema = z.object({ iso8601: z.string().describe("ISO8601 timestamp when the customer was marked as spam.").nullable() });
22
+ }).passthrough();
23
+ const PlainGetCustomers_MarkedAsSpamAtSchema = z.object({ iso8601: z.string().describe("ISO8601 timestamp when the customer was marked as spam.").nullable() }).passthrough();
24
24
  const PlainGetCustomers_CustomerNodeSchema = z.object({
25
25
  id: z.string().nullable(),
26
26
  email: PlainGetCustomers_CustomerEmailSchema.nullable(),
@@ -28,25 +28,25 @@ const PlainGetCustomers_CustomerNodeSchema = z.object({
28
28
  shortName: z.string().nullable().optional(),
29
29
  externalId: z.string().nullable().optional(),
30
30
  markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional()
31
- });
32
- const PlainGetCustomers_CustomersEdgeSchema = z.object({ node: PlainGetCustomers_CustomerNodeSchema.nullable() });
31
+ }).passthrough();
32
+ const PlainGetCustomers_CustomersEdgeSchema = z.object({ node: PlainGetCustomers_CustomerNodeSchema.nullable() }).passthrough();
33
33
  const PlainGetCustomers_PageInfoSchema = z.object({
34
34
  endCursor: z.string().nullable().optional(),
35
35
  hasNextPage: z.boolean().nullable(),
36
36
  startCursor: z.string().nullable().optional(),
37
37
  hasPreviousPage: z.boolean().nullable()
38
- });
38
+ }).passthrough();
39
39
  const PlainGetCustomers_CustomersConnectionSchema = z.object({
40
40
  edges: z.array(PlainGetCustomers_CustomersEdgeSchema),
41
41
  pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),
42
42
  totalCount: z.number().int().nullable()
43
- });
43
+ }).passthrough();
44
44
  const plainGetCustomers = action("PLAIN_GET_CUSTOMERS", {
45
45
  slug: "plain-get-customers",
46
46
  name: "Get Customers",
47
47
  description: "Tool to fetch a list of customers. Use when retrieving multiple customer records with pagination, filtering, or sorting.",
48
48
  input: PlainGetCustomersInput,
49
- output: z.object({ customers: PlainGetCustomers_CustomersConnectionSchema.nullable() })
49
+ output: z.object({ customers: PlainGetCustomers_CustomersConnectionSchema.nullable() }).passthrough()
50
50
  });
51
51
  //#endregion
52
52
  export { plainGetCustomers };
@@ -1 +1 @@
1
- {"version":3,"file":"get-customers.mjs","names":[],"sources":["../../src/actions/get-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomersInput = z.object({\n last: z.number().int().describe(\"Number of customers to fetch before the 'before' cursor. Must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of customers to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n sortBy: z.object({\n field: z.string().describe(\"Which customer field to sort by (e.g., 'FULL_NAME', 'UPDATED_AT').\"),\n direction: z.enum([\"ASC\", \"DESC\"]).describe(\"Sort order: ASC for ascending, DESC for descending.\"),\n}).describe(\"Sorting instructions for the customers list.\").optional(),\n filters: z.object({\n isMarkedAsSpam: z.boolean().describe(\"If set, only returns customers whose spam status matches this flag.\").optional(),\n customerGroupIds: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group IDs.\").optional(),\n customerGroupKeys: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group keys.\").optional(),\n}).describe(\"Filters to apply when fetching customers.\").optional(),\n}).describe(\"Request parameters for fetching a paginated, filtered, and sorted list of customers.\");\nconst PlainGetCustomers_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Customer's email address.\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified.\").nullable(),\n});\nconst PlainGetCustomers_MarkedAsSpamAtSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp when the customer was marked as spam.\").nullable(),\n});\nconst PlainGetCustomers_CustomerNodeSchema = z.object({\n id: z.string().nullable(),\n email: PlainGetCustomers_CustomerEmailSchema.nullable(),\n fullName: z.string().nullable(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional(),\n});\nconst PlainGetCustomers_CustomersEdgeSchema = z.object({\n node: PlainGetCustomers_CustomerNodeSchema.nullable(),\n});\nconst PlainGetCustomers_PageInfoSchema = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean().nullable(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean().nullable(),\n});\nconst PlainGetCustomers_CustomersConnectionSchema = z.object({\n edges: z.array(PlainGetCustomers_CustomersEdgeSchema),\n pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),\n totalCount: z.number().int().nullable(),\n});\nexport const PlainGetCustomersOutput = z.object({\n customers: PlainGetCustomers_CustomersConnectionSchema.nullable(),\n});\n\nexport const plainGetCustomers = action(\"PLAIN_GET_CUSTOMERS\", {\n slug: \"plain-get-customers\",\n name: \"Get Customers\",\n description: \"Tool to fetch a list of customers. Use when retrieving multiple customer records with pagination, filtering, or sorting.\",\n input: PlainGetCustomersInput,\n output: PlainGetCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,QAAQ,EAAE,OAAO;EACjB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EAC/F,WAAW,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,qDAAqD;CACnG,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnE,SAAS,EAAE,OAAO;EAClB,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACrH,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACzI,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAClG,MAAM,wCAAwC,EAAE,O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AAC"}
1
+ {"version":3,"file":"get-customers.mjs","names":[],"sources":["../../src/actions/get-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetCustomersInput = z.object({\n last: z.number().int().describe(\"Number of customers to fetch before the 'before' cursor. Must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination. Use with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of customers to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n sortBy: z.object({\n field: z.string().describe(\"Which customer field to sort by (e.g., 'FULL_NAME', 'UPDATED_AT').\"),\n direction: z.enum([\"ASC\", \"DESC\"]).describe(\"Sort order: ASC for ascending, DESC for descending.\"),\n}).describe(\"Sorting instructions for the customers list.\").optional(),\n filters: z.object({\n isMarkedAsSpam: z.boolean().describe(\"If set, only returns customers whose spam status matches this flag.\").optional(),\n customerGroupIds: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group IDs.\").optional(),\n customerGroupKeys: z.array(z.string()).describe(\"Filters customers to those with at least one of the given customer group keys.\").optional(),\n}).describe(\"Filters to apply when fetching customers.\").optional(),\n}).describe(\"Request parameters for fetching a paginated, filtered, and sorted list of customers.\");\nconst PlainGetCustomers_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Customer's email address.\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_MarkedAsSpamAtSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp when the customer was marked as spam.\").nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomerNodeSchema = z.object({\n id: z.string().nullable(),\n email: PlainGetCustomers_CustomerEmailSchema.nullable(),\n fullName: z.string().nullable(),\n shortName: z.string().nullable().optional(),\n externalId: z.string().nullable().optional(),\n markedAsSpamAt: PlainGetCustomers_MarkedAsSpamAtSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetCustomers_CustomersEdgeSchema = z.object({\n node: PlainGetCustomers_CustomerNodeSchema.nullable(),\n}).passthrough();\nconst PlainGetCustomers_PageInfoSchema = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean().nullable(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean().nullable(),\n}).passthrough();\nconst PlainGetCustomers_CustomersConnectionSchema = z.object({\n edges: z.array(PlainGetCustomers_CustomersEdgeSchema),\n pageInfo: PlainGetCustomers_PageInfoSchema.nullable(),\n totalCount: z.number().int().nullable(),\n}).passthrough();\nexport const PlainGetCustomersOutput = z.object({\n customers: PlainGetCustomers_CustomersConnectionSchema.nullable(),\n}).passthrough();\n\nexport const plainGetCustomers = action(\"PLAIN_GET_CUSTOMERS\", {\n slug: \"plain-get-customers\",\n name: \"Get Customers\",\n description: \"Tool to fetch a list of customers. Use when retrieving multiple customer records with pagination, filtering, or sorting.\",\n input: PlainGetCustomersInput,\n output: PlainGetCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAClH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,QAAQ,EAAE,OAAO;EACjB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EAC/F,WAAW,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,qDAAqD;CACnG,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnE,SAAS,EAAE,OAAO;EAClB,gBAAgB,EA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ClC,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5C,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS;AACxC,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8C,EAAE,OAAO;CAC3D,OAAO,EAAE,MAAM,qCAAqC;CACpD,UAAU,iCAAiC,SAAS;CACpD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS;AACxC,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqC,EAAE,OAAO,EAC9C,WAAW,4CAA4C,SAAS,EAClE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -5,17 +5,17 @@ const PlainGetThreadByIdInput = zod.z.object({ id: zod.z.string().describe("Uniq
5
5
  const PlainGetThreadById_LabelTypeSchema = zod.z.object({
6
6
  id: zod.z.string().describe("Label type unique identifier").nullable(),
7
7
  name: zod.z.string().describe("Label type name").nullable()
8
- });
8
+ }).passthrough();
9
9
  const PlainGetThreadById_LabelSchema = zod.z.object({
10
10
  id: zod.z.string().describe("Label unique identifier").nullable(),
11
11
  labelType: PlainGetThreadById_LabelTypeSchema.nullable()
12
- });
13
- const PlainGetThreadById_DateTimeSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO8601 timestamp").nullable() });
12
+ }).passthrough();
13
+ const PlainGetThreadById_DateTimeSchema = zod.z.object({ iso8601: zod.z.string().describe("ISO8601 timestamp").nullable() }).passthrough();
14
14
  const PlainGetThreadById_CustomerEmailSchema = zod.z.object({
15
15
  email: zod.z.string().describe("Email address of the customer").nullable(),
16
16
  isVerified: zod.z.boolean().describe("Whether the email is verified").nullable(),
17
17
  verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional()
18
- });
18
+ }).passthrough();
19
19
  const PlainGetThreadById_CustomerSchema = zod.z.object({
20
20
  id: zod.z.string().describe("Customer unique identifier").nullable(),
21
21
  email: PlainGetThreadById_CustomerEmailSchema.nullable(),
@@ -25,12 +25,12 @@ const PlainGetThreadById_CustomerSchema = zod.z.object({
25
25
  shortName: zod.z.string().describe("Short/display name of the customer").nullable().optional(),
26
26
  updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),
27
27
  externalId: zod.z.string().describe("External identifier for the customer").nullable().optional()
28
- });
28
+ }).passthrough();
29
29
  const PlainGetThreadById_UserSchema = zod.z.object({
30
30
  id: zod.z.string().describe("User unique identifier").nullable(),
31
31
  email: zod.z.string().describe("Email address of the user").nullable().optional(),
32
32
  fullName: zod.z.string().describe("Full name of the user").nullable().optional()
33
- });
33
+ }).passthrough();
34
34
  const PlainGetThreadById_ThreadSchema = zod.z.object({
35
35
  id: zod.z.string().describe("Thread unique identifier").nullable(),
36
36
  ref: zod.z.string().describe("Human-readable thread reference").nullable(),
@@ -46,9 +46,9 @@ const PlainGetThreadById_ThreadSchema = zod.z.object({
46
46
  externalId: zod.z.string().describe("External identifier for the thread").nullable().optional(),
47
47
  previewText: zod.z.string().describe("Preview text of the thread").nullable().optional(),
48
48
  statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable()
49
- });
50
- const PlainGetThreadById_GetThreadByIdDataSchema = zod.z.object({ thread: PlainGetThreadById_ThreadSchema.nullable().optional() });
51
- const PlainGetThreadByIdOutput = zod.z.object({ data: PlainGetThreadById_GetThreadByIdDataSchema.nullable() }).describe("Response model for fetching a thread by ID.");
49
+ }).passthrough();
50
+ const PlainGetThreadById_GetThreadByIdDataSchema = zod.z.object({ thread: PlainGetThreadById_ThreadSchema.nullable().optional() }).passthrough();
51
+ const PlainGetThreadByIdOutput = zod.z.object({ data: PlainGetThreadById_GetThreadByIdDataSchema.nullable() }).passthrough().describe("Response model for fetching a thread by ID.");
52
52
  const plainGetThreadById = require_action.action("PLAIN_GET_THREAD_BY_ID", {
53
53
  slug: "plain-get-thread-by-id",
54
54
  name: "Get Thread By ID",
@@ -1 +1 @@
1
- {"version":3,"file":"get-thread-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-thread-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetThreadByIdInput = z.object({\n id: z.string().describe(\"Unique thread identifier in format: prefix_26chars (e.g., th_01ABC...). Use LIST_THREADS or CREATE_THREAD to obtain valid IDs.\"),\n}).describe(\"Request model for fetching a thread by its ID.\");\nconst PlainGetThreadById_LabelTypeSchema = z.object({\n id: z.string().describe(\"Label type unique identifier\").nullable(),\n name: z.string().describe(\"Label type name\").nullable(),\n});\nconst PlainGetThreadById_LabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainGetThreadById_LabelTypeSchema.nullable(),\n});\nconst PlainGetThreadById_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp\").nullable(),\n});\nconst PlainGetThreadById_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified\").nullable(),\n verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n});\nconst PlainGetThreadById_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainGetThreadById_CustomerEmailSchema.nullable(),\n status: z.string().describe(\"Customer status\").nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n shortName: z.string().describe(\"Short/display name of the customer\").nullable().optional(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"External identifier for the customer\").nullable().optional(),\n});\nconst PlainGetThreadById_UserSchema = z.object({\n id: z.string().describe(\"User unique identifier\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user\").nullable().optional(),\n});\nconst PlainGetThreadById_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n ref: z.string().describe(\"Human-readable thread reference\").nullable(),\n title: z.string().describe(\"Title of the thread\").nullable().optional(),\n labels: z.array(PlainGetThreadById_LabelSchema).describe(\"Labels assigned to the thread\").nullable().optional(),\n status: z.string().describe(\"Current status of the thread\").nullable(),\n customer: PlainGetThreadById_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n assignedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n assignedTo: PlainGetThreadById_UserSchema.nullable().optional(),\n externalId: z.string().describe(\"External identifier for the thread\").nullable().optional(),\n previewText: z.string().describe(\"Preview text of the thread\").nullable().optional(),\n statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n});\nconst PlainGetThreadById_GetThreadByIdDataSchema = z.object({\n thread: PlainGetThreadById_ThreadSchema.nullable().optional(),\n});\nexport const PlainGetThreadByIdOutput = z.object({\n data: PlainGetThreadById_GetThreadByIdDataSchema.nullable(),\n}).describe(\"Response model for fetching a thread by ID.\");\n\nexport const plainGetThreadById = action(\"PLAIN_GET_THREAD_BY_ID\", {\n slug: \"plain-get-thread-by-id\",\n name: \"Get Thread By ID\",\n description: \"Fetches comprehensive details of a specific thread by ID, including customer info, status, priority, labels, and assignments. Returns null if thread not found.\",\n input: PlainGetThreadByIdInput,\n output: PlainGetThreadByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gIAAgI,EAC1J,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS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AAO,EAC1D,QAAQ,gCAAgC,SAAS,CAAC,CAAC,SAAS,EAC9D,CAAC;AACD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,MAAM,2CAA2C,SAAS,EAC5D,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,qBAAqBC,eAAAA,OAAO,0BAA0B;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-thread-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-thread-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetThreadByIdInput = z.object({\n id: z.string().describe(\"Unique thread identifier in format: prefix_26chars (e.g., th_01ABC...). Use LIST_THREADS or CREATE_THREAD to obtain valid IDs.\"),\n}).describe(\"Request model for fetching a thread by its ID.\");\nconst PlainGetThreadById_LabelTypeSchema = z.object({\n id: z.string().describe(\"Label type unique identifier\").nullable(),\n name: z.string().describe(\"Label type name\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_LabelSchema = z.object({\n id: z.string().describe(\"Label unique identifier\").nullable(),\n labelType: PlainGetThreadById_LabelTypeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_DateTimeSchema = z.object({\n iso8601: z.string().describe(\"ISO8601 timestamp\").nullable(),\n}).passthrough();\nconst PlainGetThreadById_CustomerEmailSchema = z.object({\n email: z.string().describe(\"Email address of the customer\").nullable(),\n isVerified: z.boolean().describe(\"Whether the email is verified\").nullable(),\n verifiedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_CustomerSchema = z.object({\n id: z.string().describe(\"Customer unique identifier\").nullable(),\n email: PlainGetThreadById_CustomerEmailSchema.nullable(),\n status: z.string().describe(\"Customer status\").nullable(),\n fullName: z.string().describe(\"Full name of the customer\").nullable(),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n shortName: z.string().describe(\"Short/display name of the customer\").nullable().optional(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n externalId: z.string().describe(\"External identifier for the customer\").nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_UserSchema = z.object({\n id: z.string().describe(\"User unique identifier\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n fullName: z.string().describe(\"Full name of the user\").nullable().optional(),\n}).passthrough();\nconst PlainGetThreadById_ThreadSchema = z.object({\n id: z.string().describe(\"Thread unique identifier\").nullable(),\n ref: z.string().describe(\"Human-readable thread reference\").nullable(),\n title: z.string().describe(\"Title of the thread\").nullable().optional(),\n labels: z.array(PlainGetThreadById_LabelSchema).describe(\"Labels assigned to the thread\").nullable().optional(),\n status: z.string().describe(\"Current status of the thread\").nullable(),\n customer: PlainGetThreadById_CustomerSchema.nullable(),\n priority: z.number().int().describe(\"Priority level of the thread\").nullable(),\n createdAt: PlainGetThreadById_DateTimeSchema.nullable(),\n updatedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n assignedAt: PlainGetThreadById_DateTimeSchema.nullable().optional(),\n assignedTo: PlainGetThreadById_UserSchema.nullable().optional(),\n externalId: z.string().describe(\"External identifier for the thread\").nullable().optional(),\n previewText: z.string().describe(\"Preview text of the thread\").nullable().optional(),\n statusChangedAt: PlainGetThreadById_DateTimeSchema.nullable(),\n}).passthrough();\nconst PlainGetThreadById_GetThreadByIdDataSchema = z.object({\n thread: PlainGetThreadById_ThreadSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetThreadByIdOutput = z.object({\n data: PlainGetThreadById_GetThreadByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response model for fetching a thread by ID.\");\n\nexport const plainGetThreadById = action(\"PLAIN_GET_THREAD_BY_ID\", {\n slug: \"plain-get-thread-by-id\",\n name: \"Get Thread By ID\",\n description: \"Fetches comprehensive details of a specific thread by ID, including customer info, status, priority, labels, and assignments. Returns null if thread not found.\",\n input: PlainGetThreadByIdInput,\n output: Plain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