@keystrokehq/plain 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-customer-to-group.cjs +17 -17
  4. package/dist/actions/add-customer-to-group.cjs.map +1 -1
  5. package/dist/actions/add-customer-to-group.d.cts +48 -3
  6. package/dist/actions/add-customer-to-group.d.cts.map +1 -1
  7. package/dist/actions/add-customer-to-group.d.mts +48 -3
  8. package/dist/actions/add-customer-to-group.d.mts.map +1 -1
  9. package/dist/actions/add-customer-to-group.mjs +17 -17
  10. package/dist/actions/add-customer-to-group.mjs.map +1 -1
  11. package/dist/actions/create-customer-group.cjs +15 -15
  12. package/dist/actions/create-customer-group.cjs.map +1 -1
  13. package/dist/actions/create-customer-group.d.cts +37 -3
  14. package/dist/actions/create-customer-group.d.cts.map +1 -1
  15. package/dist/actions/create-customer-group.d.mts +37 -3
  16. package/dist/actions/create-customer-group.d.mts.map +1 -1
  17. package/dist/actions/create-customer-group.mjs +15 -15
  18. package/dist/actions/create-customer-group.mjs.map +1 -1
  19. package/dist/actions/create-thread.cjs +19 -19
  20. package/dist/actions/create-thread.cjs.map +1 -1
  21. package/dist/actions/create-thread.d.cts +64 -3
  22. package/dist/actions/create-thread.d.cts.map +1 -1
  23. package/dist/actions/create-thread.d.mts +64 -3
  24. package/dist/actions/create-thread.d.mts.map +1 -1
  25. package/dist/actions/create-thread.mjs +19 -19
  26. package/dist/actions/create-thread.mjs.map +1 -1
  27. package/dist/actions/delete-customer.cjs +9 -9
  28. package/dist/actions/delete-customer.cjs.map +1 -1
  29. package/dist/actions/delete-customer.d.cts +18 -3
  30. package/dist/actions/delete-customer.d.cts.map +1 -1
  31. package/dist/actions/delete-customer.d.mts +18 -3
  32. package/dist/actions/delete-customer.d.mts.map +1 -1
  33. package/dist/actions/delete-customer.mjs +9 -9
  34. package/dist/actions/delete-customer.mjs.map +1 -1
  35. package/dist/actions/delete-user.cjs +9 -9
  36. package/dist/actions/delete-user.cjs.map +1 -1
  37. package/dist/actions/delete-user.d.cts +18 -3
  38. package/dist/actions/delete-user.d.cts.map +1 -1
  39. package/dist/actions/delete-user.d.mts +18 -3
  40. package/dist/actions/delete-user.d.mts.map +1 -1
  41. package/dist/actions/delete-user.mjs +9 -9
  42. package/dist/actions/delete-user.mjs.map +1 -1
  43. package/dist/actions/fetch-company.cjs +11 -11
  44. package/dist/actions/fetch-company.cjs.map +1 -1
  45. package/dist/actions/fetch-company.d.cts +26 -3
  46. package/dist/actions/fetch-company.d.cts.map +1 -1
  47. package/dist/actions/fetch-company.d.mts +26 -3
  48. package/dist/actions/fetch-company.d.mts.map +1 -1
  49. package/dist/actions/fetch-company.mjs +11 -11
  50. package/dist/actions/fetch-company.mjs.map +1 -1
  51. package/dist/actions/fetch-issues.cjs +9 -9
  52. package/dist/actions/fetch-issues.cjs.map +1 -1
  53. package/dist/actions/fetch-issues.d.cts +24 -3
  54. package/dist/actions/fetch-issues.d.cts.map +1 -1
  55. package/dist/actions/fetch-issues.d.mts +24 -3
  56. package/dist/actions/fetch-issues.d.mts.map +1 -1
  57. package/dist/actions/fetch-issues.mjs +9 -9
  58. package/dist/actions/fetch-issues.mjs.map +1 -1
  59. package/dist/actions/fetch-tier.cjs +11 -11
  60. package/dist/actions/fetch-tier.cjs.map +1 -1
  61. package/dist/actions/fetch-tier.d.cts +25 -3
  62. package/dist/actions/fetch-tier.d.cts.map +1 -1
  63. package/dist/actions/fetch-tier.d.mts +25 -3
  64. package/dist/actions/fetch-tier.d.mts.map +1 -1
  65. package/dist/actions/fetch-tier.mjs +11 -11
  66. package/dist/actions/fetch-tier.mjs.map +1 -1
  67. package/dist/actions/get-customer-by-email.cjs +9 -9
  68. package/dist/actions/get-customer-by-email.cjs.map +1 -1
  69. package/dist/actions/get-customer-by-email.d.cts +26 -3
  70. package/dist/actions/get-customer-by-email.d.cts.map +1 -1
  71. package/dist/actions/get-customer-by-email.d.mts +26 -3
  72. package/dist/actions/get-customer-by-email.d.mts.map +1 -1
  73. package/dist/actions/get-customer-by-email.mjs +9 -9
  74. package/dist/actions/get-customer-by-email.mjs.map +1 -1
  75. package/dist/actions/get-customer-by-id.cjs +6 -6
  76. package/dist/actions/get-customer-by-id.cjs.map +1 -1
  77. package/dist/actions/get-customer-by-id.d.cts +13 -3
  78. package/dist/actions/get-customer-by-id.d.cts.map +1 -1
  79. package/dist/actions/get-customer-by-id.d.mts +13 -3
  80. package/dist/actions/get-customer-by-id.d.mts.map +1 -1
  81. package/dist/actions/get-customer-by-id.mjs +6 -6
  82. package/dist/actions/get-customer-by-id.mjs.map +1 -1
  83. package/dist/actions/get-customers.cjs +14 -14
  84. package/dist/actions/get-customers.cjs.map +1 -1
  85. package/dist/actions/get-customers.d.cts +59 -3
  86. package/dist/actions/get-customers.d.cts.map +1 -1
  87. package/dist/actions/get-customers.d.mts +59 -3
  88. package/dist/actions/get-customers.d.mts.map +1 -1
  89. package/dist/actions/get-customers.mjs +14 -14
  90. package/dist/actions/get-customers.mjs.map +1 -1
  91. package/dist/actions/get-thread-by-id.cjs +22 -22
  92. package/dist/actions/get-thread-by-id.cjs.map +1 -1
  93. package/dist/actions/get-thread-by-id.d.cts +63 -3
  94. package/dist/actions/get-thread-by-id.d.cts.map +1 -1
  95. package/dist/actions/get-thread-by-id.d.mts +63 -3
  96. package/dist/actions/get-thread-by-id.d.mts.map +1 -1
  97. package/dist/actions/get-thread-by-id.mjs +22 -22
  98. package/dist/actions/get-thread-by-id.mjs.map +1 -1
  99. package/dist/actions/get-user-by-id.cjs +9 -9
  100. package/dist/actions/get-user-by-id.cjs.map +1 -1
  101. package/dist/actions/get-user-by-id.d.cts +21 -3
  102. package/dist/actions/get-user-by-id.d.cts.map +1 -1
  103. package/dist/actions/get-user-by-id.d.mts +21 -3
  104. package/dist/actions/get-user-by-id.d.mts.map +1 -1
  105. package/dist/actions/get-user-by-id.mjs +9 -9
  106. package/dist/actions/get-user-by-id.mjs.map +1 -1
  107. package/dist/actions/list-customer-groups.cjs +14 -14
  108. package/dist/actions/list-customer-groups.cjs.map +1 -1
  109. package/dist/actions/list-customer-groups.d.cts +40 -3
  110. package/dist/actions/list-customer-groups.d.cts.map +1 -1
  111. package/dist/actions/list-customer-groups.d.mts +40 -3
  112. package/dist/actions/list-customer-groups.d.mts.map +1 -1
  113. package/dist/actions/list-customer-groups.mjs +14 -14
  114. package/dist/actions/list-customer-groups.mjs.map +1 -1
  115. package/dist/actions/list-tiers.cjs +9 -9
  116. package/dist/actions/list-tiers.cjs.map +1 -1
  117. package/dist/actions/list-tiers.d.cts +31 -3
  118. package/dist/actions/list-tiers.d.cts.map +1 -1
  119. package/dist/actions/list-tiers.d.mts +31 -3
  120. package/dist/actions/list-tiers.d.mts.map +1 -1
  121. package/dist/actions/list-tiers.mjs +9 -9
  122. package/dist/actions/list-tiers.mjs.map +1 -1
  123. package/dist/actions/query-threads.cjs +15 -15
  124. package/dist/actions/query-threads.cjs.map +1 -1
  125. package/dist/actions/query-threads.d.cts +31 -3
  126. package/dist/actions/query-threads.d.cts.map +1 -1
  127. package/dist/actions/query-threads.d.mts +31 -3
  128. package/dist/actions/query-threads.d.mts.map +1 -1
  129. package/dist/actions/query-threads.mjs +15 -15
  130. package/dist/actions/query-threads.mjs.map +1 -1
  131. package/dist/actions/remove-customer-from-group.cjs +10 -10
  132. package/dist/actions/remove-customer-from-group.cjs.map +1 -1
  133. package/dist/actions/remove-customer-from-group.d.cts +35 -3
  134. package/dist/actions/remove-customer-from-group.d.cts.map +1 -1
  135. package/dist/actions/remove-customer-from-group.d.mts +35 -3
  136. package/dist/actions/remove-customer-from-group.d.mts.map +1 -1
  137. package/dist/actions/remove-customer-from-group.mjs +10 -10
  138. package/dist/actions/remove-customer-from-group.mjs.map +1 -1
  139. package/dist/actions/run-graphql-query.cjs +7 -7
  140. package/dist/actions/run-graphql-query.cjs.map +1 -1
  141. package/dist/actions/run-graphql-query.d.cts +23 -3
  142. package/dist/actions/run-graphql-query.d.cts.map +1 -1
  143. package/dist/actions/run-graphql-query.d.mts +23 -3
  144. package/dist/actions/run-graphql-query.d.mts.map +1 -1
  145. package/dist/actions/run-graphql-query.mjs +7 -7
  146. package/dist/actions/run-graphql-query.mjs.map +1 -1
  147. package/dist/actions/send-message.cjs +5 -5
  148. package/dist/actions/send-message.cjs.map +1 -1
  149. package/dist/actions/send-message.d.cts +61 -3
  150. package/dist/actions/send-message.d.cts.map +1 -1
  151. package/dist/actions/send-message.d.mts +61 -3
  152. package/dist/actions/send-message.d.mts.map +1 -1
  153. package/dist/actions/send-message.mjs +5 -5
  154. package/dist/actions/send-message.mjs.map +1 -1
  155. package/dist/actions/update-company.cjs +15 -15
  156. package/dist/actions/update-company.cjs.map +1 -1
  157. package/dist/actions/update-company.d.cts +37 -3
  158. package/dist/actions/update-company.d.cts.map +1 -1
  159. package/dist/actions/update-company.d.mts +37 -3
  160. package/dist/actions/update-company.d.mts.map +1 -1
  161. package/dist/actions/update-company.mjs +15 -15
  162. package/dist/actions/update-company.mjs.map +1 -1
  163. package/dist/actions/update-thread.cjs +13 -13
  164. package/dist/actions/update-thread.cjs.map +1 -1
  165. package/dist/actions/update-thread.d.cts +27 -3
  166. package/dist/actions/update-thread.d.cts.map +1 -1
  167. package/dist/actions/update-thread.d.mts +27 -3
  168. package/dist/actions/update-thread.d.mts.map +1 -1
  169. package/dist/actions/update-thread.mjs +13 -13
  170. package/dist/actions/update-thread.mjs.map +1 -1
  171. package/dist/actions/upsert-customer.cjs +17 -17
  172. package/dist/actions/upsert-customer.cjs.map +1 -1
  173. package/dist/actions/upsert-customer.d.cts +112 -3
  174. package/dist/actions/upsert-customer.d.cts.map +1 -1
  175. package/dist/actions/upsert-customer.d.mts +112 -3
  176. package/dist/actions/upsert-customer.d.mts.map +1 -1
  177. package/dist/actions/upsert-customer.mjs +17 -17
  178. package/dist/actions/upsert-customer.mjs.map +1 -1
  179. package/dist/catalog.cjs +7 -1
  180. package/dist/catalog.cjs.map +1 -1
  181. package/dist/catalog.d.cts +8 -0
  182. package/dist/catalog.d.mts +8 -0
  183. package/dist/catalog.mjs +7 -1
  184. package/dist/catalog.mjs.map +1 -1
  185. package/package.json +2 -2
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-user-by-id.d.ts
4
- declare const PlainGetUserByIdInput: z.ZodTypeAny;
5
- declare const PlainGetUserByIdOutput: z.ZodTypeAny;
6
- declare const plainGetUserById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainGetUserByIdInput: z.ZodObject<{
5
+ user_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PlainGetUserByIdOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ email: z.ZodNullable<z.ZodString>;
12
+ status: z.ZodNullable<z.ZodString>;
13
+ fullName: z.ZodNullable<z.ZodString>;
14
+ avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ publicName: z.ZodNullable<z.ZodString>;
16
+ statusChangedAt: z.ZodNullable<z.ZodObject<{
17
+ iso8601: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$loose>>;
19
+ }, z.core.$loose>>>;
20
+ }, z.core.$loose>>;
21
+ }, z.core.$loose>;
22
+ declare const plainGetUserById: import("@keystrokehq/action").WorkflowActionDefinition<{
23
+ user_id: string;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { plainGetUserById };
9
27
  //# sourceMappingURL=get-user-by-id.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-id.d.cts","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAEsC;AAAA,cAgB/D,sBAAA,EAAwB,CAAA,CAAE,UAE2B;AAAA,cAErD,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-user-by-id.d.cts","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAkBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA"}
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-user-by-id.d.ts
4
- declare const PlainGetUserByIdInput: z.ZodTypeAny;
5
- declare const PlainGetUserByIdOutput: z.ZodTypeAny;
6
- declare const plainGetUserById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainGetUserByIdInput: z.ZodObject<{
5
+ user_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const PlainGetUserByIdOutput: z.ZodObject<{
8
+ data: z.ZodNullable<z.ZodObject<{
9
+ user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ email: z.ZodNullable<z.ZodString>;
12
+ status: z.ZodNullable<z.ZodString>;
13
+ fullName: z.ZodNullable<z.ZodString>;
14
+ avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ publicName: z.ZodNullable<z.ZodString>;
16
+ statusChangedAt: z.ZodNullable<z.ZodObject<{
17
+ iso8601: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$loose>>;
19
+ }, z.core.$loose>>>;
20
+ }, z.core.$loose>>;
21
+ }, z.core.$loose>;
22
+ declare const plainGetUserById: import("@keystrokehq/action").WorkflowActionDefinition<{
23
+ user_id: string;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { plainGetUserById };
9
27
  //# sourceMappingURL=get-user-by-id.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-id.d.mts","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAEsC;AAAA,cAgB/D,sBAAA,EAAwB,CAAA,CAAE,UAE2B;AAAA,cAErD,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-user-by-id.d.mts","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAkBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA"}
@@ -2,23 +2,23 @@ import { action } from "../action.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/actions/get-user-by-id.ts
4
4
  const PlainGetUserByIdInput = z.object({ user_id: z.string().describe("Unique identifier of the workspace user/team member to fetch (format: u_XXXXXX)") }).describe("Request input for fetching a user by their unique identifier.");
5
- const PlainGetUserById_StatusChangedAtSchema = z.object({ iso8601: z.string().describe("Timestamp when the user's status last changed in ISO 8601 format") });
5
+ const PlainGetUserById_StatusChangedAtSchema = z.object({ iso8601: z.string().describe("Timestamp when the user's status last changed in ISO 8601 format").nullable() }).passthrough();
6
6
  const PlainGetUserById_UserSchema = z.object({
7
- id: z.string().describe("Unique identifier of the user"),
8
- email: z.string().describe("Email address of the user"),
9
- status: z.string().describe("Current status of the user"),
10
- fullName: z.string().describe("Full name of the user"),
7
+ id: z.string().describe("Unique identifier of the user").nullable(),
8
+ email: z.string().describe("Email address of the user").nullable(),
9
+ status: z.string().describe("Current status of the user").nullable(),
10
+ fullName: z.string().describe("Full name of the user").nullable(),
11
11
  avatarUrl: z.string().describe("Avatar URL of the user, if available").nullable().optional(),
12
- publicName: z.string().describe("Display name or short name of the user"),
12
+ publicName: z.string().describe("Display name or short name of the user").nullable(),
13
13
  statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable()
14
- }).describe("User details returned by the getUser query.");
15
- const PlainGetUserById_GetUserByIdDataSchema = z.object({ user: PlainGetUserById_UserSchema.nullable().optional() });
14
+ }).passthrough().describe("User details returned by the getUser query.");
15
+ const PlainGetUserById_GetUserByIdDataSchema = z.object({ user: PlainGetUserById_UserSchema.nullable().optional() }).passthrough();
16
16
  const plainGetUserById = action("PLAIN_GET_USER_BY_ID", {
17
17
  slug: "plain-get-user-by-id",
18
18
  name: "Get User By ID",
19
19
  description: "Fetch workspace user/team member by ID. Returns detailed information about a workspace team member including their name, email, status, and avatar. Note: This fetches workspace users (team members), not customers. Use GET_CUSTOMER_BY_ID for customer data.",
20
20
  input: PlainGetUserByIdInput,
21
- output: z.object({ data: PlainGetUserById_GetUserByIdDataSchema.nullable() }).describe("Response output containing user details from Plain.")
21
+ output: z.object({ data: PlainGetUserById_GetUserByIdDataSchema.nullable() }).passthrough().describe("Response output containing user details from Plain.")
22
22
  });
23
23
  //#endregion
24
24
  export { plainGetUserById };
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-id.mjs","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetUserByIdInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique identifier of the workspace user/team member to fetch (format: u_XXXXXX)\"),\n}).describe(\"Request input for fetching a user by their unique identifier.\");\nconst PlainGetUserById_StatusChangedAtSchema: z.ZodTypeAny = z.object({\n iso8601: z.string().describe(\"Timestamp when the user's status last changed in ISO 8601 format\"),\n});\nconst PlainGetUserById_UserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user\"),\n email: z.string().describe(\"Email address of the user\"),\n status: z.string().describe(\"Current status of the user\"),\n fullName: z.string().describe(\"Full name of the user\"),\n avatarUrl: z.string().describe(\"Avatar URL of the user, if available\").nullable().optional(),\n publicName: z.string().describe(\"Display name or short name of the user\"),\n statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable(),\n}).describe(\"User details returned by the getUser query.\");\nconst PlainGetUserById_GetUserByIdDataSchema: z.ZodTypeAny = z.object({\n user: PlainGetUserById_UserSchema.nullable().optional(),\n});\nexport const PlainGetUserByIdOutput: z.ZodTypeAny = z.object({\n data: PlainGetUserById_GetUserByIdDataSchema.nullable(),\n}).describe(\"Response output containing user details from Plain.\");\n\nexport const plainGetUserById = action(\"PLAIN_GET_USER_BY_ID\", {\n slug: \"plain-get-user-by-id\",\n name: \"Get User By ID\",\n description: \"Fetch workspace user/team member by ID. Returns detailed information about a workspace team member including their name, email, status, and avatar. Note: This fetches workspace users (team members), not customers. Use GET_CUSTOMER_BY_ID for customer data.\",\n input: PlainGetUserByIdInput,\n output: PlainGetUserByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO,EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAChH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,yCAAuD,EAAE,OAAO,EACpE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,EACjG,CAAC;AACD,MAAM,8BAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACrD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACxE,iBAAiB,uCAAuC,SAAS;AACnE,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,yCAAuD,EAAE,OAAO,EACpE,MAAM,4BAA4B,SAAS,CAAC,CAAC,SAAS,EACxD,CAAC;AAKD,MAAa,mBAAmB,OAAO,wBAAwB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-user-by-id.mjs","names":[],"sources":["../../src/actions/get-user-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainGetUserByIdInput = z.object({\n user_id: z.string().describe(\"Unique identifier of the workspace user/team member to fetch (format: u_XXXXXX)\"),\n}).describe(\"Request input for fetching a user by their unique identifier.\");\nconst PlainGetUserById_StatusChangedAtSchema = z.object({\n iso8601: z.string().describe(\"Timestamp when the user's status last changed in ISO 8601 format\").nullable(),\n}).passthrough();\nconst PlainGetUserById_UserSchema = z.object({\n id: z.string().describe(\"Unique identifier of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n status: z.string().describe(\"Current status of the user\").nullable(),\n fullName: z.string().describe(\"Full name of the user\").nullable(),\n avatarUrl: z.string().describe(\"Avatar URL of the user, if available\").nullable().optional(),\n publicName: z.string().describe(\"Display name or short name of the user\").nullable(),\n statusChangedAt: PlainGetUserById_StatusChangedAtSchema.nullable(),\n}).passthrough().describe(\"User details returned by the getUser query.\");\nconst PlainGetUserById_GetUserByIdDataSchema = z.object({\n user: PlainGetUserById_UserSchema.nullable().optional(),\n}).passthrough();\nexport const PlainGetUserByIdOutput = z.object({\n data: PlainGetUserById_GetUserByIdDataSchema.nullable(),\n}).passthrough().describe(\"Response output containing user details from Plain.\");\n\nexport const plainGetUserById = action(\"PLAIN_GET_USER_BY_ID\", {\n slug: \"plain-get-user-by-id\",\n name: \"Get User By ID\",\n description: \"Fetch workspace user/team member by ID. Returns detailed information about a workspace team member including their name, email, status, and avatar. Note: This fetches workspace users (team members), not customers. Use GET_CUSTOMER_BY_ID for customer data.\",\n input: PlainGetUserByIdInput,\n output: PlainGetUserByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO,EAC5C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,EAChH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,yCAAyC,EAAE,OAAO,EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,EAC5G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8BAA8B,EAAE,OAAO;CAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,iBAAiB,uCAAuC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAM,yCAAyC,EAAE,OAAO,EACtD,MAAM,4BAA4B,SAAS,CAAC,CAAC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mBAAmB,OAAO,wBAAwB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,MAAM,uCAAuC,SAAS,EACxD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
@@ -9,29 +9,29 @@ const PlainListCustomerGroupsInput = zod.z.object({
9
9
  filters: zod.z.object({ externalIds: zod.z.array(zod.z.string()).describe("Only returns groups with these external IDs.").optional() }).describe("Filters to apply when fetching customer groups.").optional()
10
10
  }).describe("Request parameters for listing customer groups.");
11
11
  const PlainListCustomerGroups_CustomerGroupNodeSchema = zod.z.object({
12
- id: zod.z.string().describe("Unique identifier of the customer group."),
13
- key: zod.z.string().describe("Key of the customer group."),
14
- name: zod.z.string().describe("Name of the customer group."),
15
- color: zod.z.string().describe("Hex color code assigned to the group."),
16
- createdAt: zod.z.string().describe("ISO8601 timestamp when the group was created."),
17
- updatedAt: zod.z.string().describe("ISO8601 timestamp when the group was last updated."),
12
+ id: zod.z.string().describe("Unique identifier of the customer group.").nullable(),
13
+ key: zod.z.string().describe("Key of the customer group.").nullable(),
14
+ name: zod.z.string().describe("Name of the customer group.").nullable(),
15
+ color: zod.z.string().describe("Hex color code assigned to the group.").nullable(),
16
+ createdAt: zod.z.string().describe("ISO8601 timestamp when the group was created.").nullable(),
17
+ updatedAt: zod.z.string().describe("ISO8601 timestamp when the group was last updated.").nullable(),
18
18
  externalId: zod.z.string().describe("External ID of the group.").nullable().optional()
19
- });
19
+ }).passthrough();
20
20
  const PlainListCustomerGroups_CustomerGroupEdgeSchema = zod.z.object({
21
21
  node: PlainListCustomerGroups_CustomerGroupNodeSchema.nullable(),
22
- cursor: zod.z.string().describe("Cursor for pagination.")
23
- });
22
+ cursor: zod.z.string().describe("Cursor for pagination.").nullable()
23
+ }).passthrough();
24
24
  const PlainListCustomerGroups_PageInfoSchema = zod.z.object({
25
25
  endCursor: zod.z.string().nullable().optional(),
26
- hasNextPage: zod.z.boolean(),
26
+ hasNextPage: zod.z.boolean().nullable(),
27
27
  startCursor: zod.z.string().nullable().optional(),
28
- hasPreviousPage: zod.z.boolean()
29
- });
28
+ hasPreviousPage: zod.z.boolean().nullable()
29
+ }).passthrough();
30
30
  const PlainListCustomerGroups_CustomerGroupsConnectionSchema = zod.z.object({
31
31
  edges: zod.z.array(PlainListCustomerGroups_CustomerGroupEdgeSchema),
32
32
  pageInfo: PlainListCustomerGroups_PageInfoSchema.nullable()
33
- });
34
- const PlainListCustomerGroupsOutput = zod.z.object({ customerGroups: PlainListCustomerGroups_CustomerGroupsConnectionSchema.nullable() });
33
+ }).passthrough();
34
+ const PlainListCustomerGroupsOutput = zod.z.object({ customerGroups: PlainListCustomerGroups_CustomerGroupsConnectionSchema.nullable() }).passthrough();
35
35
  const plainListCustomerGroups = require_action.action("PLAIN_LIST_CUSTOMER_GROUPS", {
36
36
  slug: "plain-list-customer-groups",
37
37
  name: "List Customer Groups",
@@ -1 +1 @@
1
- {"version":3,"file":"list-customer-groups.cjs","names":["z","action"],"sources":["../../src/actions/list-customer-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainListCustomerGroupsInput: z.ZodTypeAny = z.object({\n last: z.number().int().describe(\"Number of groups 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 groups to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n filters: z.object({\n externalIds: z.array(z.string()).describe(\"Only returns groups with these external IDs.\").optional(),\n}).describe(\"Filters to apply when fetching customer groups.\").optional(),\n}).describe(\"Request parameters for listing customer groups.\");\nconst PlainListCustomerGroups_CustomerGroupNodeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the customer group.\"),\n key: z.string().describe(\"Key of the customer group.\"),\n name: z.string().describe(\"Name of the customer group.\"),\n color: z.string().describe(\"Hex color code assigned to the group.\"),\n createdAt: z.string().describe(\"ISO8601 timestamp when the group was created.\"),\n updatedAt: z.string().describe(\"ISO8601 timestamp when the group was last updated.\"),\n externalId: z.string().describe(\"External ID of the group.\").nullable().optional(),\n});\nconst PlainListCustomerGroups_CustomerGroupEdgeSchema: z.ZodTypeAny = z.object({\n node: PlainListCustomerGroups_CustomerGroupNodeSchema.nullable(),\n cursor: z.string().describe(\"Cursor for pagination.\"),\n});\nconst PlainListCustomerGroups_PageInfoSchema: z.ZodTypeAny = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean(),\n});\nconst PlainListCustomerGroups_CustomerGroupsConnectionSchema: z.ZodTypeAny = z.object({\n edges: z.array(PlainListCustomerGroups_CustomerGroupEdgeSchema),\n pageInfo: PlainListCustomerGroups_PageInfoSchema.nullable(),\n});\nexport const PlainListCustomerGroupsOutput: z.ZodTypeAny = z.object({\n customerGroups: PlainListCustomerGroups_CustomerGroupsConnectionSchema.nullable(),\n});\n\nexport const plainListCustomerGroups = action(\"PLAIN_LIST_CUSTOMER_GROUPS\", {\n slug: \"plain-list-customer-groups\",\n name: \"List Customer Groups\",\n description: \"Tool to list all customer groups. Use when you need to retrieve group metadata with optional pagination or filters.\",\n input: PlainListCustomerGroupsInput,\n output: PlainListCustomerGroupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC/G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC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Q;AAC7B,CAAC;AACD,MAAM,yDAAuEA,IAAAA,EAAE,OAAO;CACpF,OAAOA,IAAAA,EAAE,MAAM,+CAA+C;CAC9D,UAAU,uCAAuC,SAAS;AAC5D,CAAC;AACD,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,gBAAgB,uDAAuD,SAAS,EAClF,CAAC;AAED,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-customer-groups.cjs","names":["z","action"],"sources":["../../src/actions/list-customer-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainListCustomerGroupsInput = z.object({\n last: z.number().int().describe(\"Number of groups 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 groups to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n filters: z.object({\n externalIds: z.array(z.string()).describe(\"Only returns groups with these external IDs.\").optional(),\n}).describe(\"Filters to apply when fetching customer groups.\").optional(),\n}).describe(\"Request parameters for listing customer groups.\");\nconst PlainListCustomerGroups_CustomerGroupNodeSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer group.\").nullable(),\n key: z.string().describe(\"Key of the customer group.\").nullable(),\n name: z.string().describe(\"Name of the customer group.\").nullable(),\n color: z.string().describe(\"Hex color code assigned to the group.\").nullable(),\n createdAt: z.string().describe(\"ISO8601 timestamp when the group was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when the group was last updated.\").nullable(),\n externalId: z.string().describe(\"External ID of the group.\").nullable().optional(),\n}).passthrough();\nconst PlainListCustomerGroups_CustomerGroupEdgeSchema = z.object({\n node: PlainListCustomerGroups_CustomerGroupNodeSchema.nullable(),\n cursor: z.string().describe(\"Cursor for pagination.\").nullable(),\n}).passthrough();\nconst PlainListCustomerGroups_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 PlainListCustomerGroups_CustomerGroupsConnectionSchema = z.object({\n edges: z.array(PlainListCustomerGroups_CustomerGroupEdgeSchema),\n pageInfo: PlainListCustomerGroups_PageInfoSchema.nullable(),\n}).passthrough();\nexport const PlainListCustomerGroupsOutput = z.object({\n customerGroups: PlainListCustomerGroups_CustomerGroupsConnectionSchema.nullable(),\n}).passthrough();\n\nexport const plainListCustomerGroups = action(\"PLAIN_LIST_CUSTOMER_GROUPS\", {\n slug: \"plain-list-customer-groups\",\n name: \"List Customer Groups\",\n description: \"Tool to list all customer groups. Use when you need to retrieve group metadata with optional pagination or filters.\",\n input: PlainListCustomerGroupsInput,\n output: PlainListCustomerGroupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC/G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,OAAO,EAClB,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACrG,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC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U,uCAAuC,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,gBAAgB,uDAAuD,SAAS,EAClF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,46 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-customer-groups.d.ts
4
- declare const PlainListCustomerGroupsInput: z.ZodTypeAny;
5
- declare const PlainListCustomerGroupsOutput: z.ZodTypeAny;
6
- declare const plainListCustomerGroups: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainListCustomerGroupsInput: z.ZodObject<{
5
+ last: z.ZodOptional<z.ZodNumber>;
6
+ after: z.ZodOptional<z.ZodString>;
7
+ first: z.ZodOptional<z.ZodNumber>;
8
+ before: z.ZodOptional<z.ZodString>;
9
+ filters: z.ZodOptional<z.ZodObject<{
10
+ externalIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const PlainListCustomerGroupsOutput: z.ZodObject<{
14
+ customerGroups: z.ZodNullable<z.ZodObject<{
15
+ edges: z.ZodArray<z.ZodObject<{
16
+ node: z.ZodNullable<z.ZodObject<{
17
+ id: z.ZodNullable<z.ZodString>;
18
+ key: z.ZodNullable<z.ZodString>;
19
+ name: z.ZodNullable<z.ZodString>;
20
+ color: z.ZodNullable<z.ZodString>;
21
+ createdAt: z.ZodNullable<z.ZodString>;
22
+ updatedAt: z.ZodNullable<z.ZodString>;
23
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ }, z.core.$loose>>;
25
+ cursor: z.ZodNullable<z.ZodString>;
26
+ }, z.core.$loose>>;
27
+ pageInfo: z.ZodNullable<z.ZodObject<{
28
+ endCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ hasNextPage: z.ZodNullable<z.ZodBoolean>;
30
+ startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ hasPreviousPage: z.ZodNullable<z.ZodBoolean>;
32
+ }, z.core.$loose>>;
33
+ }, z.core.$loose>>;
34
+ }, z.core.$loose>;
35
+ declare const plainListCustomerGroups: import("@keystrokehq/action").WorkflowActionDefinition<{
36
+ last?: number | undefined;
37
+ after?: string | undefined;
38
+ first?: number | undefined;
39
+ before?: string | undefined;
40
+ filters?: {
41
+ externalIds?: string[] | undefined;
42
+ } | undefined;
43
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
44
  //#endregion
8
45
  export { plainListCustomerGroups };
9
46
  //# sourceMappingURL=list-customer-groups.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-customer-groups.d.cts","names":[],"sources":["../../src/actions/list-customer-groups.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAQiB;AAAA,cAwBjD,6BAAA,EAA+B,CAAA,CAAE,UAE5C;AAAA,cAEW,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-customer-groups.d.cts","names":[],"sources":["../../src/actions/list-customer-groups.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAgC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
@@ -1,9 +1,46 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-customer-groups.d.ts
4
- declare const PlainListCustomerGroupsInput: z.ZodTypeAny;
5
- declare const PlainListCustomerGroupsOutput: z.ZodTypeAny;
6
- declare const plainListCustomerGroups: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainListCustomerGroupsInput: z.ZodObject<{
5
+ last: z.ZodOptional<z.ZodNumber>;
6
+ after: z.ZodOptional<z.ZodString>;
7
+ first: z.ZodOptional<z.ZodNumber>;
8
+ before: z.ZodOptional<z.ZodString>;
9
+ filters: z.ZodOptional<z.ZodObject<{
10
+ externalIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
+ }, z.core.$strip>>;
12
+ }, z.core.$strip>;
13
+ declare const PlainListCustomerGroupsOutput: z.ZodObject<{
14
+ customerGroups: z.ZodNullable<z.ZodObject<{
15
+ edges: z.ZodArray<z.ZodObject<{
16
+ node: z.ZodNullable<z.ZodObject<{
17
+ id: z.ZodNullable<z.ZodString>;
18
+ key: z.ZodNullable<z.ZodString>;
19
+ name: z.ZodNullable<z.ZodString>;
20
+ color: z.ZodNullable<z.ZodString>;
21
+ createdAt: z.ZodNullable<z.ZodString>;
22
+ updatedAt: z.ZodNullable<z.ZodString>;
23
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ }, z.core.$loose>>;
25
+ cursor: z.ZodNullable<z.ZodString>;
26
+ }, z.core.$loose>>;
27
+ pageInfo: z.ZodNullable<z.ZodObject<{
28
+ endCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ hasNextPage: z.ZodNullable<z.ZodBoolean>;
30
+ startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ hasPreviousPage: z.ZodNullable<z.ZodBoolean>;
32
+ }, z.core.$loose>>;
33
+ }, z.core.$loose>>;
34
+ }, z.core.$loose>;
35
+ declare const plainListCustomerGroups: import("@keystrokehq/action").WorkflowActionDefinition<{
36
+ last?: number | undefined;
37
+ after?: string | undefined;
38
+ first?: number | undefined;
39
+ before?: string | undefined;
40
+ filters?: {
41
+ externalIds?: string[] | undefined;
42
+ } | undefined;
43
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
44
  //#endregion
8
45
  export { plainListCustomerGroups };
9
46
  //# sourceMappingURL=list-customer-groups.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-customer-groups.d.mts","names":[],"sources":["../../src/actions/list-customer-groups.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAQiB;AAAA,cAwBjD,6BAAA,EAA+B,CAAA,CAAE,UAE5C;AAAA,cAEW,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-customer-groups.d.mts","names":[],"sources":["../../src/actions/list-customer-groups.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAgC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
@@ -9,34 +9,34 @@ const PlainListCustomerGroupsInput = z.object({
9
9
  filters: z.object({ externalIds: z.array(z.string()).describe("Only returns groups with these external IDs.").optional() }).describe("Filters to apply when fetching customer groups.").optional()
10
10
  }).describe("Request parameters for listing customer groups.");
11
11
  const PlainListCustomerGroups_CustomerGroupNodeSchema = z.object({
12
- id: z.string().describe("Unique identifier of the customer group."),
13
- key: z.string().describe("Key of the customer group."),
14
- name: z.string().describe("Name of the customer group."),
15
- color: z.string().describe("Hex color code assigned to the group."),
16
- createdAt: z.string().describe("ISO8601 timestamp when the group was created."),
17
- updatedAt: z.string().describe("ISO8601 timestamp when the group was last updated."),
12
+ id: z.string().describe("Unique identifier of the customer group.").nullable(),
13
+ key: z.string().describe("Key of the customer group.").nullable(),
14
+ name: z.string().describe("Name of the customer group.").nullable(),
15
+ color: z.string().describe("Hex color code assigned to the group.").nullable(),
16
+ createdAt: z.string().describe("ISO8601 timestamp when the group was created.").nullable(),
17
+ updatedAt: z.string().describe("ISO8601 timestamp when the group was last updated.").nullable(),
18
18
  externalId: z.string().describe("External ID of the group.").nullable().optional()
19
- });
19
+ }).passthrough();
20
20
  const PlainListCustomerGroups_CustomerGroupEdgeSchema = z.object({
21
21
  node: PlainListCustomerGroups_CustomerGroupNodeSchema.nullable(),
22
- cursor: z.string().describe("Cursor for pagination.")
23
- });
22
+ cursor: z.string().describe("Cursor for pagination.").nullable()
23
+ }).passthrough();
24
24
  const PlainListCustomerGroups_PageInfoSchema = z.object({
25
25
  endCursor: z.string().nullable().optional(),
26
- hasNextPage: z.boolean(),
26
+ hasNextPage: z.boolean().nullable(),
27
27
  startCursor: z.string().nullable().optional(),
28
- hasPreviousPage: z.boolean()
29
- });
28
+ hasPreviousPage: z.boolean().nullable()
29
+ }).passthrough();
30
30
  const PlainListCustomerGroups_CustomerGroupsConnectionSchema = z.object({
31
31
  edges: z.array(PlainListCustomerGroups_CustomerGroupEdgeSchema),
32
32
  pageInfo: PlainListCustomerGroups_PageInfoSchema.nullable()
33
- });
33
+ }).passthrough();
34
34
  const plainListCustomerGroups = action("PLAIN_LIST_CUSTOMER_GROUPS", {
35
35
  slug: "plain-list-customer-groups",
36
36
  name: "List Customer Groups",
37
37
  description: "Tool to list all customer groups. Use when you need to retrieve group metadata with optional pagination or filters.",
38
38
  input: PlainListCustomerGroupsInput,
39
- output: z.object({ customerGroups: PlainListCustomerGroups_CustomerGroupsConnectionSchema.nullable() })
39
+ output: z.object({ customerGroups: PlainListCustomerGroups_CustomerGroupsConnectionSchema.nullable() }).passthrough()
40
40
  });
41
41
  //#endregion
42
42
  export { plainListCustomerGroups };
@@ -1 +1 @@
1
- {"version":3,"file":"list-customer-groups.mjs","names":[],"sources":["../../src/actions/list-customer-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainListCustomerGroupsInput: z.ZodTypeAny = z.object({\n last: z.number().int().describe(\"Number of groups 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 groups to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n filters: z.object({\n externalIds: z.array(z.string()).describe(\"Only returns groups with these external IDs.\").optional(),\n}).describe(\"Filters to apply when fetching customer groups.\").optional(),\n}).describe(\"Request parameters for listing customer groups.\");\nconst PlainListCustomerGroups_CustomerGroupNodeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the customer group.\"),\n key: z.string().describe(\"Key of the customer group.\"),\n name: z.string().describe(\"Name of the customer group.\"),\n color: z.string().describe(\"Hex color code assigned to the group.\"),\n createdAt: z.string().describe(\"ISO8601 timestamp when the group was created.\"),\n updatedAt: z.string().describe(\"ISO8601 timestamp when the group was last updated.\"),\n externalId: z.string().describe(\"External ID of the group.\").nullable().optional(),\n});\nconst PlainListCustomerGroups_CustomerGroupEdgeSchema: z.ZodTypeAny = z.object({\n node: PlainListCustomerGroups_CustomerGroupNodeSchema.nullable(),\n cursor: z.string().describe(\"Cursor for pagination.\"),\n});\nconst PlainListCustomerGroups_PageInfoSchema: z.ZodTypeAny = z.object({\n endCursor: z.string().nullable().optional(),\n hasNextPage: z.boolean(),\n startCursor: z.string().nullable().optional(),\n hasPreviousPage: z.boolean(),\n});\nconst PlainListCustomerGroups_CustomerGroupsConnectionSchema: z.ZodTypeAny = z.object({\n edges: z.array(PlainListCustomerGroups_CustomerGroupEdgeSchema),\n pageInfo: PlainListCustomerGroups_PageInfoSchema.nullable(),\n});\nexport const PlainListCustomerGroupsOutput: z.ZodTypeAny = z.object({\n customerGroups: PlainListCustomerGroups_CustomerGroupsConnectionSchema.nullable(),\n});\n\nexport const plainListCustomerGroups = action(\"PLAIN_LIST_CUSTOMER_GROUPS\", {\n slug: \"plain-list-customer-groups\",\n name: \"List Customer Groups\",\n description: \"Tool to list all customer groups. Use when you need to retrieve group metadata with optional pagination or filters.\",\n input: PlainListCustomerGroupsInput,\n output: PlainListCustomerGroupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC/G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,SAAS,EAAE,OAAO,EAClB,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACrG,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,kDAAgE,EAAE,OAAO;CAC7E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC9E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC;AACD,MAAM,kDAAgE,EAAE,OAAO;CAC7E,MAAM,gDAAgD,SAAS;CAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACtD,CAAC;AACD,MAAM,yCAAuD,EAAE,OAAO;CACpE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1C,aAAa,EAAE,QAAQ;CACvB,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5C,iBAAiB,EAAE,QAAQ;AAC7B,CAAC;AACD,MAAM,yDAAuE,EAAE,OAAO;CACpF,OAAO,EAAE,MAAM,+CAA+C;CAC9D,UAAU,uCAAuC,SAAS;AAC5D,CAAC;AAKD,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyD,EAAE,OAAO,EAClE,gBAAgB,uDAAuD,SAAS,EAClF,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"list-customer-groups.mjs","names":[],"sources":["../../src/actions/list-customer-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainListCustomerGroupsInput = z.object({\n last: z.number().int().describe(\"Number of groups 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 groups to fetch after the 'after' cursor. Must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination. Use with 'last'.\").optional(),\n filters: z.object({\n externalIds: z.array(z.string()).describe(\"Only returns groups with these external IDs.\").optional(),\n}).describe(\"Filters to apply when fetching customer groups.\").optional(),\n}).describe(\"Request parameters for listing customer groups.\");\nconst PlainListCustomerGroups_CustomerGroupNodeSchema = z.object({\n id: z.string().describe(\"Unique identifier of the customer group.\").nullable(),\n key: z.string().describe(\"Key of the customer group.\").nullable(),\n name: z.string().describe(\"Name of the customer group.\").nullable(),\n color: z.string().describe(\"Hex color code assigned to the group.\").nullable(),\n createdAt: z.string().describe(\"ISO8601 timestamp when the group was created.\").nullable(),\n updatedAt: z.string().describe(\"ISO8601 timestamp when the group was last updated.\").nullable(),\n externalId: z.string().describe(\"External ID of the group.\").nullable().optional(),\n}).passthrough();\nconst PlainListCustomerGroups_CustomerGroupEdgeSchema = z.object({\n node: PlainListCustomerGroups_CustomerGroupNodeSchema.nullable(),\n cursor: z.string().describe(\"Cursor for pagination.\").nullable(),\n}).passthrough();\nconst PlainListCustomerGroups_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 PlainListCustomerGroups_CustomerGroupsConnectionSchema = z.object({\n edges: z.array(PlainListCustomerGroups_CustomerGroupEdgeSchema),\n pageInfo: PlainListCustomerGroups_PageInfoSchema.nullable(),\n}).passthrough();\nexport const PlainListCustomerGroupsOutput = z.object({\n customerGroups: PlainListCustomerGroups_CustomerGroupsConnectionSchema.nullable(),\n}).passthrough();\n\nexport const plainListCustomerGroups = action(\"PLAIN_LIST_CUSTOMER_GROUPS\", {\n slug: \"plain-list-customer-groups\",\n name: \"List Customer Groups\",\n description: \"Tool to list all customer groups. Use when you need to retrieve group metadata with optional pagination or filters.\",\n input: PlainListCustomerGroupsInput,\n output: PlainListCustomerGroupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC/G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,SAAS,EAAE,OAAO,EAClB,aAAa,E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CAC9D,UAAU,uCAAuC,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2C,EAAE,OAAO,EACpD,gBAAgB,uDAAuD,SAAS,EAClF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -8,26 +8,26 @@ const PlainListTiersInput = zod.z.object({
8
8
  before: zod.z.string().describe("Cursor for backward pagination, used together with 'last'.").optional()
9
9
  }).describe("Request parameters for listing tiers. You must supply at least one of 'first' or 'last'\nto paginate forward or backward through the result set.");
10
10
  const PlainListTiers_TierNodeSchema = zod.z.object({
11
- id: zod.z.string().describe("Unique identifier of the tier."),
11
+ id: zod.z.string().describe("Unique identifier of the tier.").nullable(),
12
12
  name: zod.z.string().describe("Name of the tier.").nullable().optional(),
13
13
  externalId: zod.z.string().describe("External identifier for the tier, if any.").nullable().optional(),
14
14
  defaultPriority: zod.z.number().int().describe("Default priority level of the tier.").nullable().optional()
15
- });
15
+ }).passthrough();
16
16
  const PlainListTiers_TierEdgeSchema = zod.z.object({
17
17
  node: PlainListTiers_TierNodeSchema.nullable(),
18
- cursor: zod.z.string().describe("Pagination cursor for this edge.")
19
- });
18
+ cursor: zod.z.string().describe("Pagination cursor for this edge.").nullable()
19
+ }).passthrough();
20
20
  const PlainListTiers_PageInfoSchema = zod.z.object({
21
21
  endCursor: zod.z.string().describe("Cursor corresponding to the last result in the current page.").nullable().optional(),
22
- hasNextPage: zod.z.boolean().describe("Whether there is a next page of results."),
22
+ hasNextPage: zod.z.boolean().describe("Whether there is a next page of results.").nullable(),
23
23
  startCursor: zod.z.string().describe("Cursor corresponding to the first result in the current page.").nullable().optional(),
24
- hasPreviousPage: zod.z.boolean().describe("Whether there is a previous page of results.")
25
- });
24
+ hasPreviousPage: zod.z.boolean().describe("Whether there is a previous page of results.").nullable()
25
+ }).passthrough();
26
26
  const PlainListTiers_TiersConnectionSchema = zod.z.object({
27
27
  edges: zod.z.array(PlainListTiers_TierEdgeSchema).describe("List of tier edges for pagination."),
28
28
  pageInfo: PlainListTiers_PageInfoSchema.nullable()
29
- });
30
- const PlainListTiersOutput = zod.z.object({ tiers: PlainListTiers_TiersConnectionSchema.nullable() }).describe("Response schema for listing tiers with pagination.");
29
+ }).passthrough();
30
+ const PlainListTiersOutput = zod.z.object({ tiers: PlainListTiers_TiersConnectionSchema.nullable() }).passthrough().describe("Response schema for listing tiers with pagination.");
31
31
  const plainListTiers = require_action.action("PLAIN_LIST_TIERS", {
32
32
  slug: "plain-list-tiers",
33
33
  name: "List Tiers",
@@ -1 +1 @@
1
- {"version":3,"file":"list-tiers.cjs","names":["z","action"],"sources":["../../src/actions/list-tiers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainListTiersInput: z.ZodTypeAny = z.object({\n last: z.number().int().describe(\"Number of items to fetch in backward pagination; must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination, used together with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of items to fetch in forward pagination; must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination, used together with 'last'.\").optional(),\n}).describe(\"Request parameters for listing tiers. You must supply at least one of 'first' or 'last'\\nto paginate forward or backward through the result set.\");\nconst PlainListTiers_TierNodeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the tier.\"),\n name: z.string().describe(\"Name of the tier.\").nullable().optional(),\n externalId: z.string().describe(\"External identifier for the tier, if any.\").nullable().optional(),\n defaultPriority: z.number().int().describe(\"Default priority level of the tier.\").nullable().optional(),\n});\nconst PlainListTiers_TierEdgeSchema: z.ZodTypeAny = z.object({\n node: PlainListTiers_TierNodeSchema.nullable(),\n cursor: z.string().describe(\"Pagination cursor for this edge.\"),\n});\nconst PlainListTiers_PageInfoSchema: z.ZodTypeAny = z.object({\n endCursor: z.string().describe(\"Cursor corresponding to the last result in the current page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"Whether there is a next page of results.\"),\n startCursor: z.string().describe(\"Cursor corresponding to the first result in the current page.\").nullable().optional(),\n hasPreviousPage: z.boolean().describe(\"Whether there is a previous page of results.\"),\n});\nconst PlainListTiers_TiersConnectionSchema: z.ZodTypeAny = z.object({\n edges: z.array(PlainListTiers_TierEdgeSchema).describe(\"List of tier edges for pagination.\"),\n pageInfo: PlainListTiers_PageInfoSchema.nullable(),\n});\nexport const PlainListTiersOutput: z.ZodTypeAny = z.object({\n tiers: PlainListTiers_TiersConnectionSchema.nullable(),\n}).describe(\"Response schema for listing tiers with pagination.\");\n\nexport const plainListTiers = action(\"PLAIN_LIST_TIERS\", {\n slug: \"plain-list-tiers\",\n name: \"List Tiers\",\n description: \"Tool to retrieve a list of tiers with pagination. Use when you need to browse available tiers after determining pagination cursors. Example: 'List tiers with first=25'.\",\n input: PlainListTiersInput,\n output: PlainListTiersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC1G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAClG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,kJAAkJ;AAC9J,MAAM,gCAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC;AACD,MAAM,gCAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAM,8BAA8B,SAAS;CAC7C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;AAChE,CAAC;AACD,MAAM,gCAA8CA,IAAAA,EAAE,OAAO;CAC3D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C;AACtF,CAAC;AACD,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,OAAOA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,oCAAoC;CAC3F,UAAU,8BAA8B,SAAS;AACnD,CAAC;AACD,MAAa,uBAAqCA,IAAAA,EAAE,OAAO,EACzD,OAAO,qCAAqC,SAAS,EACvD,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-tiers.cjs","names":["z","action"],"sources":["../../src/actions/list-tiers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlainListTiersInput = z.object({\n last: z.number().int().describe(\"Number of items to fetch in backward pagination; must be ≥ 1.\").optional(),\n after: z.string().describe(\"Cursor for forward pagination, used together with 'first'.\").optional(),\n first: z.number().int().describe(\"Number of items to fetch in forward pagination; must be ≥ 1.\").optional(),\n before: z.string().describe(\"Cursor for backward pagination, used together with 'last'.\").optional(),\n}).describe(\"Request parameters for listing tiers. You must supply at least one of 'first' or 'last'\\nto paginate forward or backward through the result set.\");\nconst PlainListTiers_TierNodeSchema = z.object({\n id: z.string().describe(\"Unique identifier of the tier.\").nullable(),\n name: z.string().describe(\"Name of the tier.\").nullable().optional(),\n externalId: z.string().describe(\"External identifier for the tier, if any.\").nullable().optional(),\n defaultPriority: z.number().int().describe(\"Default priority level of the tier.\").nullable().optional(),\n}).passthrough();\nconst PlainListTiers_TierEdgeSchema = z.object({\n node: PlainListTiers_TierNodeSchema.nullable(),\n cursor: z.string().describe(\"Pagination cursor for this edge.\").nullable(),\n}).passthrough();\nconst PlainListTiers_PageInfoSchema = z.object({\n endCursor: z.string().describe(\"Cursor corresponding to the last result in the current page.\").nullable().optional(),\n hasNextPage: z.boolean().describe(\"Whether there is a next page of results.\").nullable(),\n startCursor: z.string().describe(\"Cursor corresponding to the first result in the current page.\").nullable().optional(),\n hasPreviousPage: z.boolean().describe(\"Whether there is a previous page of results.\").nullable(),\n}).passthrough();\nconst PlainListTiers_TiersConnectionSchema = z.object({\n edges: z.array(PlainListTiers_TierEdgeSchema).describe(\"List of tier edges for pagination.\"),\n pageInfo: PlainListTiers_PageInfoSchema.nullable(),\n}).passthrough();\nexport const PlainListTiersOutput = z.object({\n tiers: PlainListTiers_TiersConnectionSchema.nullable(),\n}).passthrough().describe(\"Response schema for listing tiers with pagination.\");\n\nexport const plainListTiers = action(\"PLAIN_LIST_TIERS\", {\n slug: \"plain-list-tiers\",\n name: \"List Tiers\",\n description: \"Tool to retrieve a list of tiers with pagination. Use when you need to browse available tiers after determining pagination cursors. Example: 'List tiers with first=25'.\",\n input: PlainListTiersInput,\n output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nH,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,oCAAoC;CAC3F,UAAU,8BAA8B,SAAS;AACnD,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,EAC3C,OAAO,qCAAqC,SAAS,EACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,37 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-tiers.d.ts
4
- declare const PlainListTiersInput: z.ZodTypeAny;
5
- declare const PlainListTiersOutput: z.ZodTypeAny;
6
- declare const plainListTiers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainListTiersInput: z.ZodObject<{
5
+ last: z.ZodOptional<z.ZodNumber>;
6
+ after: z.ZodOptional<z.ZodString>;
7
+ first: z.ZodOptional<z.ZodNumber>;
8
+ before: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ declare const PlainListTiersOutput: z.ZodObject<{
11
+ tiers: z.ZodNullable<z.ZodObject<{
12
+ edges: z.ZodArray<z.ZodObject<{
13
+ node: z.ZodNullable<z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodString>;
15
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ defaultPriority: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ }, z.core.$loose>>;
19
+ cursor: z.ZodNullable<z.ZodString>;
20
+ }, z.core.$loose>>;
21
+ pageInfo: z.ZodNullable<z.ZodObject<{
22
+ endCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ hasNextPage: z.ZodNullable<z.ZodBoolean>;
24
+ startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ hasPreviousPage: z.ZodNullable<z.ZodBoolean>;
26
+ }, z.core.$loose>>;
27
+ }, z.core.$loose>>;
28
+ }, z.core.$loose>;
29
+ declare const plainListTiers: import("@keystrokehq/action").WorkflowActionDefinition<{
30
+ last?: number | undefined;
31
+ after?: string | undefined;
32
+ first?: number | undefined;
33
+ before?: string | undefined;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
35
  //#endregion
8
36
  export { plainListTiers };
9
37
  //# sourceMappingURL=list-tiers.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-tiers.d.cts","names":[],"sources":["../../src/actions/list-tiers.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAK2H;AAAA,cAqBlJ,oBAAA,EAAsB,CAAA,CAAE,UAE4B;AAAA,cAEpD,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-tiers.d.cts","names":[],"sources":["../../src/actions/list-tiers.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;cA0BnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIpB,cAAA,gCAAc,wBAAA"}
@@ -1,9 +1,37 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-tiers.d.ts
4
- declare const PlainListTiersInput: z.ZodTypeAny;
5
- declare const PlainListTiersOutput: z.ZodTypeAny;
6
- declare const plainListTiers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PlainListTiersInput: z.ZodObject<{
5
+ last: z.ZodOptional<z.ZodNumber>;
6
+ after: z.ZodOptional<z.ZodString>;
7
+ first: z.ZodOptional<z.ZodNumber>;
8
+ before: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ declare const PlainListTiersOutput: z.ZodObject<{
11
+ tiers: z.ZodNullable<z.ZodObject<{
12
+ edges: z.ZodArray<z.ZodObject<{
13
+ node: z.ZodNullable<z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodString>;
15
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ defaultPriority: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ }, z.core.$loose>>;
19
+ cursor: z.ZodNullable<z.ZodString>;
20
+ }, z.core.$loose>>;
21
+ pageInfo: z.ZodNullable<z.ZodObject<{
22
+ endCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ hasNextPage: z.ZodNullable<z.ZodBoolean>;
24
+ startCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ hasPreviousPage: z.ZodNullable<z.ZodBoolean>;
26
+ }, z.core.$loose>>;
27
+ }, z.core.$loose>>;
28
+ }, z.core.$loose>;
29
+ declare const plainListTiers: import("@keystrokehq/action").WorkflowActionDefinition<{
30
+ last?: number | undefined;
31
+ after?: string | undefined;
32
+ first?: number | undefined;
33
+ before?: string | undefined;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
35
  //#endregion
8
36
  export { plainListTiers };
9
37
  //# sourceMappingURL=list-tiers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-tiers.d.mts","names":[],"sources":["../../src/actions/list-tiers.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAK2H;AAAA,cAqBlJ,oBAAA,EAAsB,CAAA,CAAE,UAE4B;AAAA,cAEpD,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-tiers.d.mts","names":[],"sources":["../../src/actions/list-tiers.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;cA0BnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAIpB,cAAA,gCAAc,wBAAA"}
@@ -8,31 +8,31 @@ const PlainListTiersInput = z.object({
8
8
  before: z.string().describe("Cursor for backward pagination, used together with 'last'.").optional()
9
9
  }).describe("Request parameters for listing tiers. You must supply at least one of 'first' or 'last'\nto paginate forward or backward through the result set.");
10
10
  const PlainListTiers_TierNodeSchema = z.object({
11
- id: z.string().describe("Unique identifier of the tier."),
11
+ id: z.string().describe("Unique identifier of the tier.").nullable(),
12
12
  name: z.string().describe("Name of the tier.").nullable().optional(),
13
13
  externalId: z.string().describe("External identifier for the tier, if any.").nullable().optional(),
14
14
  defaultPriority: z.number().int().describe("Default priority level of the tier.").nullable().optional()
15
- });
15
+ }).passthrough();
16
16
  const PlainListTiers_TierEdgeSchema = z.object({
17
17
  node: PlainListTiers_TierNodeSchema.nullable(),
18
- cursor: z.string().describe("Pagination cursor for this edge.")
19
- });
18
+ cursor: z.string().describe("Pagination cursor for this edge.").nullable()
19
+ }).passthrough();
20
20
  const PlainListTiers_PageInfoSchema = z.object({
21
21
  endCursor: z.string().describe("Cursor corresponding to the last result in the current page.").nullable().optional(),
22
- hasNextPage: z.boolean().describe("Whether there is a next page of results."),
22
+ hasNextPage: z.boolean().describe("Whether there is a next page of results.").nullable(),
23
23
  startCursor: z.string().describe("Cursor corresponding to the first result in the current page.").nullable().optional(),
24
- hasPreviousPage: z.boolean().describe("Whether there is a previous page of results.")
25
- });
24
+ hasPreviousPage: z.boolean().describe("Whether there is a previous page of results.").nullable()
25
+ }).passthrough();
26
26
  const PlainListTiers_TiersConnectionSchema = z.object({
27
27
  edges: z.array(PlainListTiers_TierEdgeSchema).describe("List of tier edges for pagination."),
28
28
  pageInfo: PlainListTiers_PageInfoSchema.nullable()
29
- });
29
+ }).passthrough();
30
30
  const plainListTiers = action("PLAIN_LIST_TIERS", {
31
31
  slug: "plain-list-tiers",
32
32
  name: "List Tiers",
33
33
  description: "Tool to retrieve a list of tiers with pagination. Use when you need to browse available tiers after determining pagination cursors. Example: 'List tiers with first=25'.",
34
34
  input: PlainListTiersInput,
35
- output: z.object({ tiers: PlainListTiers_TiersConnectionSchema.nullable() }).describe("Response schema for listing tiers with pagination.")
35
+ output: z.object({ tiers: PlainListTiers_TiersConnectionSchema.nullable() }).passthrough().describe("Response schema for listing tiers with pagination.")
36
36
  });
37
37
  //#endregion
38
38
  export { plainListTiers };