@keystrokehq/simplero 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 (161) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-tag-to-contact.cjs +1 -1
  4. package/dist/actions/add-tag-to-contact.cjs.map +1 -1
  5. package/dist/actions/add-tag-to-contact.d.cts +30 -3
  6. package/dist/actions/add-tag-to-contact.d.cts.map +1 -1
  7. package/dist/actions/add-tag-to-contact.d.mts +30 -3
  8. package/dist/actions/add-tag-to-contact.d.mts.map +1 -1
  9. package/dist/actions/add-tag-to-contact.mjs +1 -1
  10. package/dist/actions/add-tag-to-contact.mjs.map +1 -1
  11. package/dist/actions/bulk-subscribe-to-list.cjs +2 -2
  12. package/dist/actions/bulk-subscribe-to-list.cjs.map +1 -1
  13. package/dist/actions/bulk-subscribe-to-list.d.cts +40 -3
  14. package/dist/actions/bulk-subscribe-to-list.d.cts.map +1 -1
  15. package/dist/actions/bulk-subscribe-to-list.d.mts +40 -3
  16. package/dist/actions/bulk-subscribe-to-list.d.mts.map +1 -1
  17. package/dist/actions/bulk-subscribe-to-list.mjs +2 -2
  18. package/dist/actions/bulk-subscribe-to-list.mjs.map +1 -1
  19. package/dist/actions/create-or-update-administrator.cjs +3 -3
  20. package/dist/actions/create-or-update-administrator.cjs.map +1 -1
  21. package/dist/actions/create-or-update-administrator.d.cts +49 -3
  22. package/dist/actions/create-or-update-administrator.d.cts.map +1 -1
  23. package/dist/actions/create-or-update-administrator.d.mts +49 -3
  24. package/dist/actions/create-or-update-administrator.d.mts.map +1 -1
  25. package/dist/actions/create-or-update-administrator.mjs +3 -3
  26. package/dist/actions/create-or-update-administrator.mjs.map +1 -1
  27. package/dist/actions/create-or-update-contact.cjs +1 -1
  28. package/dist/actions/create-or-update-contact.cjs.map +1 -1
  29. package/dist/actions/create-or-update-contact.d.cts +46 -3
  30. package/dist/actions/create-or-update-contact.d.cts.map +1 -1
  31. package/dist/actions/create-or-update-contact.d.mts +46 -3
  32. package/dist/actions/create-or-update-contact.d.mts.map +1 -1
  33. package/dist/actions/create-or-update-contact.mjs +1 -1
  34. package/dist/actions/create-or-update-contact.mjs.map +1 -1
  35. package/dist/actions/find-contact-by-email.cjs +1 -1
  36. package/dist/actions/find-contact-by-email.cjs.map +1 -1
  37. package/dist/actions/find-contact-by-email.d.cts +25 -3
  38. package/dist/actions/find-contact-by-email.d.cts.map +1 -1
  39. package/dist/actions/find-contact-by-email.d.mts +25 -3
  40. package/dist/actions/find-contact-by-email.d.mts.map +1 -1
  41. package/dist/actions/find-contact-by-email.mjs +1 -1
  42. package/dist/actions/find-contact-by-email.mjs.map +1 -1
  43. package/dist/actions/find-subscription-by-email.cjs +3 -3
  44. package/dist/actions/find-subscription-by-email.cjs.map +1 -1
  45. package/dist/actions/find-subscription-by-email.d.cts +57 -3
  46. package/dist/actions/find-subscription-by-email.d.cts.map +1 -1
  47. package/dist/actions/find-subscription-by-email.d.mts +57 -3
  48. package/dist/actions/find-subscription-by-email.d.mts.map +1 -1
  49. package/dist/actions/find-subscription-by-email.mjs +3 -3
  50. package/dist/actions/find-subscription-by-email.mjs.map +1 -1
  51. package/dist/actions/get-admin-roles.cjs +2 -2
  52. package/dist/actions/get-admin-roles.cjs.map +1 -1
  53. package/dist/actions/get-admin-roles.d.cts +8 -3
  54. package/dist/actions/get-admin-roles.d.cts.map +1 -1
  55. package/dist/actions/get-admin-roles.d.mts +8 -3
  56. package/dist/actions/get-admin-roles.d.mts.map +1 -1
  57. package/dist/actions/get-admin-roles.mjs +2 -2
  58. package/dist/actions/get-admin-roles.mjs.map +1 -1
  59. package/dist/actions/get-administrator-by-id.cjs +14 -14
  60. package/dist/actions/get-administrator-by-id.cjs.map +1 -1
  61. package/dist/actions/get-administrator-by-id.d.cts +33 -3
  62. package/dist/actions/get-administrator-by-id.d.cts.map +1 -1
  63. package/dist/actions/get-administrator-by-id.d.mts +33 -3
  64. package/dist/actions/get-administrator-by-id.d.mts.map +1 -1
  65. package/dist/actions/get-administrator-by-id.mjs +14 -14
  66. package/dist/actions/get-administrator-by-id.mjs.map +1 -1
  67. package/dist/actions/get-administrators.cjs +4 -4
  68. package/dist/actions/get-administrators.cjs.map +1 -1
  69. package/dist/actions/get-administrators.d.cts +33 -3
  70. package/dist/actions/get-administrators.d.cts.map +1 -1
  71. package/dist/actions/get-administrators.d.mts +33 -3
  72. package/dist/actions/get-administrators.d.mts.map +1 -1
  73. package/dist/actions/get-administrators.mjs +4 -4
  74. package/dist/actions/get-administrators.mjs.map +1 -1
  75. package/dist/actions/get-async-request-status.cjs +4 -4
  76. package/dist/actions/get-async-request-status.cjs.map +1 -1
  77. package/dist/actions/get-async-request-status.d.cts +15 -3
  78. package/dist/actions/get-async-request-status.d.cts.map +1 -1
  79. package/dist/actions/get-async-request-status.d.mts +15 -3
  80. package/dist/actions/get-async-request-status.d.mts.map +1 -1
  81. package/dist/actions/get-async-request-status.mjs +4 -4
  82. package/dist/actions/get-async-request-status.mjs.map +1 -1
  83. package/dist/actions/get-contact-by-id.cjs +5 -5
  84. package/dist/actions/get-contact-by-id.cjs.map +1 -1
  85. package/dist/actions/get-contact-by-id.d.cts +21 -3
  86. package/dist/actions/get-contact-by-id.d.cts.map +1 -1
  87. package/dist/actions/get-contact-by-id.d.mts +21 -3
  88. package/dist/actions/get-contact-by-id.d.mts.map +1 -1
  89. package/dist/actions/get-contact-by-id.mjs +5 -5
  90. package/dist/actions/get-contact-by-id.mjs.map +1 -1
  91. package/dist/actions/get-invoices.cjs +2 -2
  92. package/dist/actions/get-invoices.cjs.map +1 -1
  93. package/dist/actions/get-invoices.d.cts +29 -3
  94. package/dist/actions/get-invoices.d.cts.map +1 -1
  95. package/dist/actions/get-invoices.d.mts +29 -3
  96. package/dist/actions/get-invoices.d.mts.map +1 -1
  97. package/dist/actions/get-invoices.mjs +2 -2
  98. package/dist/actions/get-invoices.mjs.map +1 -1
  99. package/dist/actions/get-lists.cjs +2 -2
  100. package/dist/actions/get-lists.cjs.map +1 -1
  101. package/dist/actions/get-lists.d.cts +18 -3
  102. package/dist/actions/get-lists.d.cts.map +1 -1
  103. package/dist/actions/get-lists.d.mts +18 -3
  104. package/dist/actions/get-lists.d.mts.map +1 -1
  105. package/dist/actions/get-lists.mjs +2 -2
  106. package/dist/actions/get-lists.mjs.map +1 -1
  107. package/dist/actions/get-products.cjs +2 -2
  108. package/dist/actions/get-products.cjs.map +1 -1
  109. package/dist/actions/get-products.d.cts +13 -3
  110. package/dist/actions/get-products.d.cts.map +1 -1
  111. package/dist/actions/get-products.d.mts +13 -3
  112. package/dist/actions/get-products.d.mts.map +1 -1
  113. package/dist/actions/get-products.mjs +2 -2
  114. package/dist/actions/get-products.mjs.map +1 -1
  115. package/dist/actions/remove-administrator.cjs +1 -1
  116. package/dist/actions/remove-administrator.cjs.map +1 -1
  117. package/dist/actions/remove-administrator.d.cts +10 -3
  118. package/dist/actions/remove-administrator.d.cts.map +1 -1
  119. package/dist/actions/remove-administrator.d.mts +10 -3
  120. package/dist/actions/remove-administrator.d.mts.map +1 -1
  121. package/dist/actions/remove-administrator.mjs +1 -1
  122. package/dist/actions/remove-administrator.mjs.map +1 -1
  123. package/dist/actions/remove-tag-from-contact.cjs +1 -1
  124. package/dist/actions/remove-tag-from-contact.cjs.map +1 -1
  125. package/dist/actions/remove-tag-from-contact.d.cts +13 -3
  126. package/dist/actions/remove-tag-from-contact.d.cts.map +1 -1
  127. package/dist/actions/remove-tag-from-contact.d.mts +13 -3
  128. package/dist/actions/remove-tag-from-contact.d.mts.map +1 -1
  129. package/dist/actions/remove-tag-from-contact.mjs +1 -1
  130. package/dist/actions/remove-tag-from-contact.mjs.map +1 -1
  131. package/dist/actions/subscribe-to-list.cjs +2 -2
  132. package/dist/actions/subscribe-to-list.cjs.map +1 -1
  133. package/dist/actions/subscribe-to-list.d.cts +49 -3
  134. package/dist/actions/subscribe-to-list.d.cts.map +1 -1
  135. package/dist/actions/subscribe-to-list.d.mts +49 -3
  136. package/dist/actions/subscribe-to-list.d.mts.map +1 -1
  137. package/dist/actions/subscribe-to-list.mjs +2 -2
  138. package/dist/actions/subscribe-to-list.mjs.map +1 -1
  139. package/dist/actions/unsubscribe-from-list.cjs +1 -1
  140. package/dist/actions/unsubscribe-from-list.cjs.map +1 -1
  141. package/dist/actions/unsubscribe-from-list.d.cts +11 -3
  142. package/dist/actions/unsubscribe-from-list.d.cts.map +1 -1
  143. package/dist/actions/unsubscribe-from-list.d.mts +11 -3
  144. package/dist/actions/unsubscribe-from-list.d.mts.map +1 -1
  145. package/dist/actions/unsubscribe-from-list.mjs +1 -1
  146. package/dist/actions/unsubscribe-from-list.mjs.map +1 -1
  147. package/dist/actions/update-contact-credentials.cjs +1 -1
  148. package/dist/actions/update-contact-credentials.cjs.map +1 -1
  149. package/dist/actions/update-contact-credentials.d.cts +37 -3
  150. package/dist/actions/update-contact-credentials.d.cts.map +1 -1
  151. package/dist/actions/update-contact-credentials.d.mts +37 -3
  152. package/dist/actions/update-contact-credentials.d.mts.map +1 -1
  153. package/dist/actions/update-contact-credentials.mjs +1 -1
  154. package/dist/actions/update-contact-credentials.mjs.map +1 -1
  155. package/dist/catalog.cjs +7 -1
  156. package/dist/catalog.cjs.map +1 -1
  157. package/dist/catalog.d.cts +8 -0
  158. package/dist/catalog.d.mts +8 -0
  159. package/dist/catalog.mjs +7 -1
  160. package/dist/catalog.mjs.map +1 -1
  161. package/package.json +2 -2
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-administrators.d.ts
4
- declare const SimpleroGetAdministratorsInput: z.ZodTypeAny;
5
- declare const SimpleroGetAdministratorsOutput: z.ZodTypeAny;
6
- declare const simpleroGetAdministrators: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimpleroGetAdministratorsInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const SimpleroGetAdministratorsOutput: z.ZodObject<{
6
+ administratorships: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
+ enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
9
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
+ account_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
+ admin_role: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$loose>>>;
14
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ num_logins: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ admin_role_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ invitation_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ last_login_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ show_on_ticket: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
21
+ ticket_assignee: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
22
+ ticket_sms_alerts: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
23
+ notifications_seen: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
24
+ accessible_object_ids: z.ZodOptional<z.ZodNullable<z.ZodObject<{
25
+ site: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
26
+ course: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
27
+ product: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
28
+ worksheet: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
29
+ landing_page: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
30
+ affiliate_program: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
31
+ }, z.core.$loose>>>;
32
+ second_to_last_login_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ can_self_grant_super_admin: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>;
36
+ declare const simpleroGetAdministrators: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { simpleroGetAdministrators };
9
39
  //# sourceMappingURL=get-administrators.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-administrators.d.cts","names":[],"sources":["../../src/actions/get-administrators.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAAkH;AAAA,cAgCpJ,+BAAA,EAAiC,CAAA,CAAE,UAEgC;AAAA,cAEnE,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-administrators.d.cts","names":[],"sources":["../../src/actions/get-administrators.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAgC9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-administrators.d.ts
4
- declare const SimpleroGetAdministratorsInput: z.ZodTypeAny;
5
- declare const SimpleroGetAdministratorsOutput: z.ZodTypeAny;
6
- declare const simpleroGetAdministrators: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimpleroGetAdministratorsInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const SimpleroGetAdministratorsOutput: z.ZodObject<{
6
+ administratorships: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
+ enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
9
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
+ account_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
+ admin_role: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$loose>>>;
14
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ num_logins: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ admin_role_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ invitation_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ last_login_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ show_on_ticket: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
21
+ ticket_assignee: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
22
+ ticket_sms_alerts: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
23
+ notifications_seen: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
24
+ accessible_object_ids: z.ZodOptional<z.ZodNullable<z.ZodObject<{
25
+ site: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
26
+ course: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
27
+ product: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
28
+ worksheet: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
29
+ landing_page: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
30
+ affiliate_program: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
31
+ }, z.core.$loose>>>;
32
+ second_to_last_login_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ can_self_grant_super_admin: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>;
36
+ declare const simpleroGetAdministrators: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { simpleroGetAdministrators };
9
39
  //# sourceMappingURL=get-administrators.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-administrators.d.mts","names":[],"sources":["../../src/actions/get-administrators.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAAkH;AAAA,cAgCpJ,+BAAA,EAAiC,CAAA,CAAE,UAEgC;AAAA,cAEnE,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-administrators.d.mts","names":[],"sources":["../../src/actions/get-administrators.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAgC9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -2,7 +2,7 @@ import { action } from "../action.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/actions/get-administrators.ts
4
4
  const SimpleroGetAdministratorsInput = z.object({}).describe("Request model for retrieving administratorships. No parameters are required.");
5
- const SimpleroGetAdministrators_AdminRoleSchema = z.object({ name: z.string().describe("The name of the admin role.").nullable().optional() }).describe("Admin role information.");
5
+ const SimpleroGetAdministrators_AdminRoleSchema = z.object({ name: z.string().describe("The name of the admin role.").nullable().optional() }).passthrough().describe("Admin role information.");
6
6
  const SimpleroGetAdministrators_AccessibleObjectIdsSchema = z.object({
7
7
  site: z.array(z.number().int()).describe("List of accessible site IDs.").nullable().optional(),
8
8
  course: z.array(z.number().int()).describe("List of accessible course IDs.").nullable().optional(),
@@ -10,7 +10,7 @@ const SimpleroGetAdministrators_AccessibleObjectIdsSchema = z.object({
10
10
  worksheet: z.array(z.number().int()).describe("List of accessible worksheet IDs.").nullable().optional(),
11
11
  landing_page: z.array(z.number().int()).describe("List of accessible landing page IDs.").nullable().optional(),
12
12
  affiliate_program: z.array(z.number().int()).describe("List of accessible affiliate program IDs.").nullable().optional()
13
- }).describe("Permission scope for different object types.");
13
+ }).passthrough().describe("Permission scope for different object types.");
14
14
  const SimpleroGetAdministrators_AdministratorshipSchema = z.object({
15
15
  id: z.number().int().describe("Unique administratorship identifier.").nullable().optional(),
16
16
  enabled: z.boolean().describe("Whether the administratorship is active.").nullable().optional(),
@@ -30,13 +30,13 @@ const SimpleroGetAdministrators_AdministratorshipSchema = z.object({
30
30
  accessible_object_ids: SimpleroGetAdministrators_AccessibleObjectIdsSchema.nullable().optional(),
31
31
  second_to_last_login_at: z.string().describe("ISO-8601 timestamp of the second most recent login.").nullable().optional(),
32
32
  can_self_grant_super_admin: z.boolean().describe("Whether the admin can elevate their own permissions.").nullable().optional()
33
- }).describe("Administratorship object representing the relationship between a user and an account.");
33
+ }).passthrough().describe("Administratorship object representing the relationship between a user and an account.");
34
34
  const simpleroGetAdministrators = action("SIMPLERO_GET_ADMINISTRATORS", {
35
35
  slug: "simplero-get-administrators",
36
36
  name: "Get Administrators",
37
37
  description: "Tool to retrieve all administratorships for the account. Use when you need to get information about account administrators, their roles, and permissions.",
38
38
  input: SimpleroGetAdministratorsInput,
39
- output: z.object({ administratorships: z.array(SimpleroGetAdministrators_AdministratorshipSchema).describe("List of administratorship objects.") }).describe("Response model containing all administratorships for the account.")
39
+ output: z.object({ administratorships: z.array(SimpleroGetAdministrators_AdministratorshipSchema).describe("List of administratorship objects.") }).passthrough().describe("Response model containing all administratorships for the account.")
40
40
  });
41
41
  //#endregion
42
42
  export { simpleroGetAdministrators };
@@ -1 +1 @@
1
- {"version":3,"file":"get-administrators.mjs","names":[],"sources":["../../src/actions/get-administrators.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetAdministratorsInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving administratorships. No parameters are required.\");\nconst SimpleroGetAdministrators_AdminRoleSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the admin role.\").nullable().optional(),\n}).describe(\"Admin role information.\");\nconst SimpleroGetAdministrators_AccessibleObjectIdsSchema: z.ZodTypeAny = z.object({\n site: z.array(z.number().int()).describe(\"List of accessible site IDs.\").nullable().optional(),\n course: z.array(z.number().int()).describe(\"List of accessible course IDs.\").nullable().optional(),\n product: z.array(z.number().int()).describe(\"List of accessible product IDs.\").nullable().optional(),\n worksheet: z.array(z.number().int()).describe(\"List of accessible worksheet IDs.\").nullable().optional(),\n landing_page: z.array(z.number().int()).describe(\"List of accessible landing page IDs.\").nullable().optional(),\n affiliate_program: z.array(z.number().int()).describe(\"List of accessible affiliate program IDs.\").nullable().optional(),\n}).describe(\"Permission scope for different object types.\");\nconst SimpleroGetAdministrators_AdministratorshipSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique administratorship identifier.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the administratorship is active.\").nullable().optional(),\n user_id: z.number().int().describe(\"Associated user ID.\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account ID.\").nullable().optional(),\n admin_role: SimpleroGetAdministrators_AdminRoleSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was created.\").nullable().optional(),\n num_logins: z.number().int().describe(\"Total number of logins.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was last updated.\").nullable().optional(),\n admin_role_id: z.number().int().describe(\"Role identifier.\").nullable().optional(),\n invitation_id: z.number().int().describe(\"Invitation reference if applicable.\").nullable().optional(),\n last_login_at: z.string().describe(\"ISO-8601 timestamp of the most recent login.\").nullable().optional(),\n show_on_ticket: z.boolean().describe(\"Whether the admin is listed as a support team member.\").nullable().optional(),\n ticket_assignee: z.boolean().describe(\"Whether the admin can be assigned support tickets.\").nullable().optional(),\n ticket_sms_alerts: z.boolean().describe(\"Whether the admin receives SMS alerts for tickets.\").nullable().optional(),\n notifications_seen: z.array(z.unknown()).describe(\"Array tracking notification visibility.\").nullable().optional(),\n accessible_object_ids: SimpleroGetAdministrators_AccessibleObjectIdsSchema.nullable().optional(),\n second_to_last_login_at: z.string().describe(\"ISO-8601 timestamp of the second most recent login.\").nullable().optional(),\n can_self_grant_super_admin: z.boolean().describe(\"Whether the admin can elevate their own permissions.\").nullable().optional(),\n}).describe(\"Administratorship object representing the relationship between a user and an account.\");\nexport const SimpleroGetAdministratorsOutput: z.ZodTypeAny = z.object({\n administratorships: z.array(SimpleroGetAdministrators_AdministratorshipSchema).describe(\"List of administratorship objects.\"),\n}).describe(\"Response model containing all administratorships for the account.\");\n\nexport const simpleroGetAdministrators = action(\"SIMPLERO_GET_ADMINISTRATORS\", {\n slug: \"simplero-get-administrators\",\n name: \"Get Administrators\",\n description: \"Tool to retrieve all administratorships for the account. Use when you need to get information about account administrators, their roles, and permissions.\",\n input: SimpleroGetAdministratorsInput,\n output: SimpleroGetAdministratorsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAChK,MAAM,4CAA0D,EAAE,OAAO,EAC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AAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,4BAA4B,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,uFAAuF;AAKnG,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT2D,EAAE,OAAO,EACpE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,oCAAoC,EAC9H,CAAC,CAAC,CAAC,SAAS,mEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-administrators.mjs","names":[],"sources":["../../src/actions/get-administrators.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetAdministratorsInput = z.object({}).describe(\"Request model for retrieving administratorships. No parameters are required.\");\nconst SimpleroGetAdministrators_AdminRoleSchema = z.object({\n name: z.string().describe(\"The name of the admin role.\").nullable().optional(),\n}).passthrough().describe(\"Admin role information.\");\nconst SimpleroGetAdministrators_AccessibleObjectIdsSchema = z.object({\n site: z.array(z.number().int()).describe(\"List of accessible site IDs.\").nullable().optional(),\n course: z.array(z.number().int()).describe(\"List of accessible course IDs.\").nullable().optional(),\n product: z.array(z.number().int()).describe(\"List of accessible product IDs.\").nullable().optional(),\n worksheet: z.array(z.number().int()).describe(\"List of accessible worksheet IDs.\").nullable().optional(),\n landing_page: z.array(z.number().int()).describe(\"List of accessible landing page IDs.\").nullable().optional(),\n affiliate_program: z.array(z.number().int()).describe(\"List of accessible affiliate program IDs.\").nullable().optional(),\n}).passthrough().describe(\"Permission scope for different object types.\");\nconst SimpleroGetAdministrators_AdministratorshipSchema = z.object({\n id: z.number().int().describe(\"Unique administratorship identifier.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the administratorship is active.\").nullable().optional(),\n user_id: z.number().int().describe(\"Associated user ID.\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account ID.\").nullable().optional(),\n admin_role: SimpleroGetAdministrators_AdminRoleSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was created.\").nullable().optional(),\n num_logins: z.number().int().describe(\"Total number of logins.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was last updated.\").nullable().optional(),\n admin_role_id: z.number().int().describe(\"Role identifier.\").nullable().optional(),\n invitation_id: z.number().int().describe(\"Invitation reference if applicable.\").nullable().optional(),\n last_login_at: z.string().describe(\"ISO-8601 timestamp of the most recent login.\").nullable().optional(),\n show_on_ticket: z.boolean().describe(\"Whether the admin is listed as a support team member.\").nullable().optional(),\n ticket_assignee: z.boolean().describe(\"Whether the admin can be assigned support tickets.\").nullable().optional(),\n ticket_sms_alerts: z.boolean().describe(\"Whether the admin receives SMS alerts for tickets.\").nullable().optional(),\n notifications_seen: z.array(z.unknown()).describe(\"Array tracking notification visibility.\").nullable().optional(),\n accessible_object_ids: SimpleroGetAdministrators_AccessibleObjectIdsSchema.nullable().optional(),\n second_to_last_login_at: z.string().describe(\"ISO-8601 timestamp of the second most recent login.\").nullable().optional(),\n can_self_grant_super_admin: z.boolean().describe(\"Whether the admin can elevate their own permissions.\").nullable().optional(),\n}).passthrough().describe(\"Administratorship object representing the relationship between a user and an account.\");\nexport const SimpleroGetAdministratorsOutput = z.object({\n administratorships: z.array(SimpleroGetAdministrators_AdministratorshipSchema).describe(\"List of administratorship objects.\"),\n}).passthrough().describe(\"Response model containing all administratorships for the account.\");\n\nexport const simpleroGetAdministrators = action(\"SIMPLERO_GET_ADMINISTRATORS\", {\n slug: \"simplero-get-administrators\",\n name: \"Get Administrators\",\n description: \"Tool to retrieve all administratorships for the account. Use when you need to get information about account administrators, their roles, and permissions.\",\n input: SimpleroGetAdministratorsInput,\n output: SimpleroGetAdministratorsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,CAAC,CAAC,CAAC,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S;CACjH,uBAAuB,oDAAoD,SAAS,CAAC,CAAC,SAAS;CAC/F,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,4BAA4B,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uFAAuF;AAKjH,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6C,EAAE,OAAO,EACtD,oBAAoB,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,oCAAoC,EAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAOhB;AACV,CAAC"}
@@ -3,14 +3,14 @@ let zod = require("zod");
3
3
  //#region src/actions/get-async-request-status.ts
4
4
  const SimpleroGetAsyncRequestStatusInput = zod.z.object({ token: zod.z.string().describe("Request identifier received from the initial asynchronous request. This token is used to identify which async request status to retrieve.") }).describe("Request model for checking the status of an asynchronous API request.");
5
5
  const SimpleroGetAsyncRequestStatusOutput = zod.z.object({
6
- token: zod.z.string().describe("Request identifier"),
7
- action: zod.z.string().describe("Type of async operation being performed (e.g., 'bulk_subscribe')"),
6
+ token: zod.z.string().describe("Request identifier").nullable(),
7
+ action: zod.z.string().describe("Type of async operation being performed (e.g., 'bulk_subscribe')").nullable(),
8
8
  result: zod.z.union([zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())), zod.z.record(zod.z.string(), zod.z.unknown())]).nullable().optional(),
9
- status: zod.z.string().describe("Current status of the request. Possible values: 'pending' (not started), 'running' (being processed), 'success' (completed successfully), 'failure' (failed)"),
9
+ status: zod.z.string().describe("Current status of the request. Possible values: 'pending' (not started), 'running' (being processed), 'success' (completed successfully), 'failure' (failed)").nullable(),
10
10
  enqueued_at: zod.z.string().describe("ISO-8601 timestamp when the request was queued").nullable().optional(),
11
11
  completed_at: zod.z.string().describe("ISO-8601 timestamp when processing finished").nullable().optional(),
12
12
  processing_started_at: zod.z.string().describe("ISO-8601 timestamp when processing began").nullable().optional()
13
- }).describe("Response model containing the status and details of an asynchronous request.");
13
+ }).passthrough().describe("Response model containing the status and details of an asynchronous request.");
14
14
  const simpleroGetAsyncRequestStatus = require_action.action("SIMPLERO_GET_ASYNC_REQUEST_STATUS", {
15
15
  slug: "simplero-get-async-request-status",
16
16
  name: "Get Async Request Status",
@@ -1 +1 @@
1
- {"version":3,"file":"get-async-request-status.cjs","names":["z","action"],"sources":["../../src/actions/get-async-request-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetAsyncRequestStatusInput: z.ZodTypeAny = z.object({\n token: z.string().describe(\"Request identifier received from the initial asynchronous request. This token is used to identify which async request status to retrieve.\"),\n}).describe(\"Request model for checking the status of an asynchronous API request.\");\nexport const SimpleroGetAsyncRequestStatusOutput: z.ZodTypeAny = z.object({\n token: z.string().describe(\"Request identifier\"),\n action: z.string().describe(\"Type of async operation being performed (e.g., 'bulk_subscribe')\"),\n result: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())]).nullable().optional(),\n status: z.string().describe(\"Current status of the request. Possible values: 'pending' (not started), 'running' (being processed), 'success' (completed successfully), 'failure' (failed)\"),\n enqueued_at: z.string().describe(\"ISO-8601 timestamp when the request was queued\").nullable().optional(),\n completed_at: z.string().describe(\"ISO-8601 timestamp when processing finished\").nullable().optional(),\n processing_started_at: z.string().describe(\"ISO-8601 timestamp when processing began\").nullable().optional(),\n}).describe(\"Response model containing the status and details of an asynchronous request.\");\n\nexport const simpleroGetAsyncRequestStatus = action(\"SIMPLERO_GET_ASYNC_REQUEST_STATUS\", {\n slug: \"simplero-get-async-request-status\",\n name: \"Get Async Request Status\",\n description: \"Tool to check the status of an asynchronous API request. Use when you need to monitor the progress of a previously initiated async operation using its token.\",\n input: SimpleroGetAsyncRequestStatusInput,\n output: SimpleroGetAsyncRequestStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,EACxK,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAC9F,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J;CAC1L,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAE1F,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-async-request-status.cjs","names":["z","action"],"sources":["../../src/actions/get-async-request-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetAsyncRequestStatusInput = z.object({\n token: z.string().describe(\"Request identifier received from the initial asynchronous request. This token is used to identify which async request status to retrieve.\"),\n}).describe(\"Request model for checking the status of an asynchronous API request.\");\nexport const SimpleroGetAsyncRequestStatusOutput = z.object({\n token: z.string().describe(\"Request identifier\").nullable(),\n action: z.string().describe(\"Type of async operation being performed (e.g., 'bulk_subscribe')\").nullable(),\n result: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())]).nullable().optional(),\n status: z.string().describe(\"Current status of the request. Possible values: 'pending' (not started), 'running' (being processed), 'success' (completed successfully), 'failure' (failed)\").nullable(),\n enqueued_at: z.string().describe(\"ISO-8601 timestamp when the request was queued\").nullable().optional(),\n completed_at: z.string().describe(\"ISO-8601 timestamp when processing finished\").nullable().optional(),\n processing_started_at: z.string().describe(\"ISO-8601 timestamp when processing began\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the status and details of an asynchronous request.\");\n\nexport const simpleroGetAsyncRequestStatus = action(\"SIMPLERO_GET_ASYNC_REQUEST_STATUS\", {\n slug: \"simplero-get-async-request-status\",\n name: \"Get Async Request Status\",\n description: \"Tool to check the status of an asynchronous API request. Use when you need to monitor the progress of a previously initiated async operation using its token.\",\n input: SimpleroGetAsyncRequestStatusInput,\n output: SimpleroGetAsyncRequestStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,EACxK,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACzG,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CACrM,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAA8E;AAExG,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-async-request-status.d.ts
4
- declare const SimpleroGetAsyncRequestStatusInput: z.ZodTypeAny;
5
- declare const SimpleroGetAsyncRequestStatusOutput: z.ZodTypeAny;
6
- declare const simpleroGetAsyncRequestStatus: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimpleroGetAsyncRequestStatusInput: z.ZodObject<{
5
+ token: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const SimpleroGetAsyncRequestStatusOutput: z.ZodObject<{
8
+ token: z.ZodNullable<z.ZodString>;
9
+ action: z.ZodNullable<z.ZodString>;
10
+ result: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
11
+ status: z.ZodNullable<z.ZodString>;
12
+ enqueued_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ processing_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, z.core.$loose>;
16
+ declare const simpleroGetAsyncRequestStatus: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ token: string;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { simpleroGetAsyncRequestStatus };
9
21
  //# sourceMappingURL=get-async-request-status.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-async-request-status.d.cts","names":[],"sources":["../../src/actions/get-async-request-status.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAEiC;AAAA,cACvE,mCAAA,EAAqC,CAAA,CAAE,UAQuC;AAAA,cAE9E,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-async-request-status.d.cts","names":[],"sources":["../../src/actions/get-async-request-status.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAGlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;cAUnC,6BAAA,gCAA6B,wBAAA"}
@@ -1,9 +1,21 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-async-request-status.d.ts
4
- declare const SimpleroGetAsyncRequestStatusInput: z.ZodTypeAny;
5
- declare const SimpleroGetAsyncRequestStatusOutput: z.ZodTypeAny;
6
- declare const simpleroGetAsyncRequestStatus: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimpleroGetAsyncRequestStatusInput: z.ZodObject<{
5
+ token: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const SimpleroGetAsyncRequestStatusOutput: z.ZodObject<{
8
+ token: z.ZodNullable<z.ZodString>;
9
+ action: z.ZodNullable<z.ZodString>;
10
+ result: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
11
+ status: z.ZodNullable<z.ZodString>;
12
+ enqueued_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ processing_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, z.core.$loose>;
16
+ declare const simpleroGetAsyncRequestStatus: import("@keystrokehq/action").WorkflowActionDefinition<{
17
+ token: string;
18
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
19
  //#endregion
8
20
  export { simpleroGetAsyncRequestStatus };
9
21
  //# sourceMappingURL=get-async-request-status.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-async-request-status.d.mts","names":[],"sources":["../../src/actions/get-async-request-status.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAEiC;AAAA,cACvE,mCAAA,EAAqC,CAAA,CAAE,UAQuC;AAAA,cAE9E,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-async-request-status.d.mts","names":[],"sources":["../../src/actions/get-async-request-status.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAGlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;cAUnC,6BAAA,gCAA6B,wBAAA"}
@@ -6,14 +6,14 @@ const simpleroGetAsyncRequestStatus = action("SIMPLERO_GET_ASYNC_REQUEST_STATUS"
6
6
  description: "Tool to check the status of an asynchronous API request. Use when you need to monitor the progress of a previously initiated async operation using its token.",
7
7
  input: z.object({ token: z.string().describe("Request identifier received from the initial asynchronous request. This token is used to identify which async request status to retrieve.") }).describe("Request model for checking the status of an asynchronous API request."),
8
8
  output: z.object({
9
- token: z.string().describe("Request identifier"),
10
- action: z.string().describe("Type of async operation being performed (e.g., 'bulk_subscribe')"),
9
+ token: z.string().describe("Request identifier").nullable(),
10
+ action: z.string().describe("Type of async operation being performed (e.g., 'bulk_subscribe')").nullable(),
11
11
  result: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())]).nullable().optional(),
12
- status: z.string().describe("Current status of the request. Possible values: 'pending' (not started), 'running' (being processed), 'success' (completed successfully), 'failure' (failed)"),
12
+ status: z.string().describe("Current status of the request. Possible values: 'pending' (not started), 'running' (being processed), 'success' (completed successfully), 'failure' (failed)").nullable(),
13
13
  enqueued_at: z.string().describe("ISO-8601 timestamp when the request was queued").nullable().optional(),
14
14
  completed_at: z.string().describe("ISO-8601 timestamp when processing finished").nullable().optional(),
15
15
  processing_started_at: z.string().describe("ISO-8601 timestamp when processing began").nullable().optional()
16
- }).describe("Response model containing the status and details of an asynchronous request.")
16
+ }).passthrough().describe("Response model containing the status and details of an asynchronous request.")
17
17
  });
18
18
  //#endregion
19
19
  export { simpleroGetAsyncRequestStatus };
@@ -1 +1 @@
1
- {"version":3,"file":"get-async-request-status.mjs","names":[],"sources":["../../src/actions/get-async-request-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetAsyncRequestStatusInput: z.ZodTypeAny = z.object({\n token: z.string().describe(\"Request identifier received from the initial asynchronous request. This token is used to identify which async request status to retrieve.\"),\n}).describe(\"Request model for checking the status of an asynchronous API request.\");\nexport const SimpleroGetAsyncRequestStatusOutput: z.ZodTypeAny = z.object({\n token: z.string().describe(\"Request identifier\"),\n action: z.string().describe(\"Type of async operation being performed (e.g., 'bulk_subscribe')\"),\n result: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())]).nullable().optional(),\n status: z.string().describe(\"Current status of the request. Possible values: 'pending' (not started), 'running' (being processed), 'success' (completed successfully), 'failure' (failed)\"),\n enqueued_at: z.string().describe(\"ISO-8601 timestamp when the request was queued\").nullable().optional(),\n completed_at: z.string().describe(\"ISO-8601 timestamp when processing finished\").nullable().optional(),\n processing_started_at: z.string().describe(\"ISO-8601 timestamp when processing began\").nullable().optional(),\n}).describe(\"Response model containing the status and details of an asynchronous request.\");\n\nexport const simpleroGetAsyncRequestStatus = action(\"SIMPLERO_GET_ASYNC_REQUEST_STATUS\", {\n slug: \"simplero-get-async-request-status\",\n name: \"Get Async Request Status\",\n description: \"Tool to check the status of an asynchronous API request. Use when you need to monitor the progress of a previously initiated async operation using its token.\",\n input: SimpleroGetAsyncRequestStatusInput,\n output: SimpleroGetAsyncRequestStatusOutput,\n});\n"],"mappings":";;AAiBA,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB8D,EAAE,OAAO,EACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,EACxK,CAAC,CAAC,CAAC,SAAS,uEAeH;CACP,QAf+D,EAAE,OAAO;EACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;EAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EAC9F,QAAQ,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J;EAC1L,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,8EAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-async-request-status.mjs","names":[],"sources":["../../src/actions/get-async-request-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetAsyncRequestStatusInput = z.object({\n token: z.string().describe(\"Request identifier received from the initial asynchronous request. This token is used to identify which async request status to retrieve.\"),\n}).describe(\"Request model for checking the status of an asynchronous API request.\");\nexport const SimpleroGetAsyncRequestStatusOutput = z.object({\n token: z.string().describe(\"Request identifier\").nullable(),\n action: z.string().describe(\"Type of async operation being performed (e.g., 'bulk_subscribe')\").nullable(),\n result: z.union([z.array(z.record(z.string(), z.unknown())), z.record(z.string(), z.unknown())]).nullable().optional(),\n status: z.string().describe(\"Current status of the request. Possible values: 'pending' (not started), 'running' (being processed), 'success' (completed successfully), 'failure' (failed)\").nullable(),\n enqueued_at: z.string().describe(\"ISO-8601 timestamp when the request was queued\").nullable().optional(),\n completed_at: z.string().describe(\"ISO-8601 timestamp when processing finished\").nullable().optional(),\n processing_started_at: z.string().describe(\"ISO-8601 timestamp when processing began\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the status and details of an asynchronous request.\");\n\nexport const simpleroGetAsyncRequestStatus = action(\"SIMPLERO_GET_ASYNC_REQUEST_STATUS\", {\n slug: \"simplero-get-async-request-status\",\n name: \"Get Async Request Status\",\n description: \"Tool to check the status of an asynchronous API request. Use when you need to monitor the progress of a previously initiated async operation using its token.\",\n input: SimpleroGetAsyncRequestStatusInput,\n output: SimpleroGetAsyncRequestStatusOutput,\n});\n"],"mappings":";;AAiBA,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBgD,EAAE,OAAO,EACzD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,EACxK,CAAC,CAAC,CAAC,SAAS,uEAeH;CACP,QAfiD,EAAE,OAAO;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC1D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACzG,QAAQ,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;EACrM,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAOhB;AACV,CAAC"}
@@ -3,20 +3,20 @@ let zod = require("zod");
3
3
  //#region src/actions/get-contact-by-id.ts
4
4
  const SimpleroGetContactByIdInput = zod.z.object({ id: zod.z.number().int().describe("The internal ID of the contact to retrieve. This ID is obtained from previous API calls.") }).describe("Request model for retrieving a contact by internal ID.");
5
5
  const SimpleroGetContactByIdOutput = zod.z.object({
6
- id: zod.z.number().int().describe("Contact's internal identifier"),
6
+ id: zod.z.number().int().describe("Contact's internal identifier").nullable(),
7
7
  name: zod.z.string().describe("Full name of the contact").nullable().optional(),
8
- email: zod.z.string().describe("Contact's email address"),
8
+ email: zod.z.string().describe("Contact's email address").nullable(),
9
9
  phone: zod.z.string().describe("Sanitized phone number with country code").nullable().optional(),
10
10
  referrer: zod.z.string().describe("Referring URL").nullable().optional(),
11
11
  last_name: zod.z.string().describe("Contact's surname").nullable().optional(),
12
12
  tag_names: zod.z.string().describe("Comma-separated list of tags").nullable().optional(),
13
- created_at: zod.z.string().describe("Timestamp of creation in ISO 8601 format"),
13
+ created_at: zod.z.string().describe("Timestamp of creation in ISO 8601 format").nullable(),
14
14
  ip_address: zod.z.string().describe("IP address").nullable().optional(),
15
- updated_at: zod.z.string().describe("Timestamp of last update in ISO 8601 format"),
15
+ updated_at: zod.z.string().describe("Timestamp of last update in ISO 8601 format").nullable(),
16
16
  first_names: zod.z.string().describe("Contact's first name(s)").nullable().optional(),
17
17
  contact_since: zod.z.string().describe("Human-readable contact duration").nullable().optional(),
18
18
  do_not_contact: zod.z.boolean().describe("Flag indicating do not contact preference").nullable().optional()
19
- }).describe("Response model for contact details.");
19
+ }).passthrough().describe("Response model for contact details.");
20
20
  const simpleroGetContactById = require_action.action("SIMPLERO_GET_CONTACT_BY_ID", {
21
21
  slug: "simplero-get-contact-by-id",
22
22
  name: "Get Contact By ID",
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetContactByIdInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The internal ID of the contact to retrieve. This ID is obtained from previous API calls.\"),\n}).describe(\"Request model for retrieving a contact by internal ID.\");\nexport const SimpleroGetContactByIdOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Contact's internal identifier\"),\n name: z.string().describe(\"Full name of the contact\").nullable().optional(),\n email: z.string().describe(\"Contact's email address\"),\n phone: z.string().describe(\"Sanitized phone number with country code\").nullable().optional(),\n referrer: z.string().describe(\"Referring URL\").nullable().optional(),\n last_name: z.string().describe(\"Contact's surname\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated list of tags\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of creation in ISO 8601 format\"),\n ip_address: z.string().describe(\"IP address\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of last update in ISO 8601 format\"),\n first_names: z.string().describe(\"Contact's first name(s)\").nullable().optional(),\n contact_since: z.string().describe(\"Human-readable contact duration\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Flag indicating do not contact preference\").nullable().optional(),\n}).describe(\"Response model for contact details.\");\n\nexport const simpleroGetContactById = action(\"SIMPLERO_GET_CONTACT_BY_ID\", {\n slug: \"simplero-get-contact-by-id\",\n name: \"Get Contact By ID\",\n description: \"Tool to retrieve a JSON representation of a contact by internal ID. Use when you need to fetch detailed information about a specific contact. Returns 404 if no contact exists with the provided ID.\",\n input: SimpleroGetContactByIdInput,\n output: SimpleroGetContactByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,EAC1H,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAEjD,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-contact-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-contact-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetContactByIdInput = z.object({\n id: z.number().int().describe(\"The internal ID of the contact to retrieve. This ID is obtained from previous API calls.\"),\n}).describe(\"Request model for retrieving a contact by internal ID.\");\nexport const SimpleroGetContactByIdOutput = z.object({\n id: z.number().int().describe(\"Contact's internal identifier\").nullable(),\n name: z.string().describe(\"Full name of the contact\").nullable().optional(),\n email: z.string().describe(\"Contact's email address\").nullable(),\n phone: z.string().describe(\"Sanitized phone number with country code\").nullable().optional(),\n referrer: z.string().describe(\"Referring URL\").nullable().optional(),\n last_name: z.string().describe(\"Contact's surname\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated list of tags\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of creation in ISO 8601 format\").nullable(),\n ip_address: z.string().describe(\"IP address\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of last update in ISO 8601 format\").nullable(),\n first_names: z.string().describe(\"Contact's first name(s)\").nullable().optional(),\n contact_since: z.string().describe(\"Human-readable contact duration\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Flag indicating do not contact preference\").nullable().optional(),\n}).passthrough().describe(\"Response model for contact details.\");\n\nexport const simpleroGetContactById = action(\"SIMPLERO_GET_CONTACT_BY_ID\", {\n slug: \"simplero-get-contact-by-id\",\n name: \"Get Contact By ID\",\n description: \"Tool to retrieve a JSON representation of a contact by internal ID. Use when you need to fetch detailed information about a specific contact. Returns 404 if no contact exists with the provided ID.\",\n input: SimpleroGetContactByIdInput,\n output: SimpleroGetContactByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,EAC1H,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA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,CAAC"}
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-contact-by-id.d.ts
4
- declare const SimpleroGetContactByIdInput: z.ZodTypeAny;
5
- declare const SimpleroGetContactByIdOutput: z.ZodTypeAny;
6
- declare const simpleroGetContactById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimpleroGetContactByIdInput: z.ZodObject<{
5
+ id: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ declare const SimpleroGetContactByIdOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodNumber>;
9
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ email: z.ZodNullable<z.ZodString>;
11
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ referrer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ tag_names: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ created_at: z.ZodNullable<z.ZodString>;
16
+ ip_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ updated_at: z.ZodNullable<z.ZodString>;
18
+ first_names: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ contact_since: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ do_not_contact: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
21
+ }, z.core.$loose>;
22
+ declare const simpleroGetContactById: import("@keystrokehq/action").WorkflowActionDefinition<{
23
+ id: number;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { simpleroGetContactById };
9
27
  //# sourceMappingURL=get-contact-by-id.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact-by-id.d.cts","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEyB;AAAA,cACxD,4BAAA,EAA8B,CAAA,CAAE,UAcK;AAAA,cAErC,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-contact-by-id.d.cts","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAgB5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-contact-by-id.d.ts
4
- declare const SimpleroGetContactByIdInput: z.ZodTypeAny;
5
- declare const SimpleroGetContactByIdOutput: z.ZodTypeAny;
6
- declare const simpleroGetContactById: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimpleroGetContactByIdInput: z.ZodObject<{
5
+ id: z.ZodNumber;
6
+ }, z.core.$strip>;
7
+ declare const SimpleroGetContactByIdOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodNumber>;
9
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ email: z.ZodNullable<z.ZodString>;
11
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ referrer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ tag_names: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ created_at: z.ZodNullable<z.ZodString>;
16
+ ip_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ updated_at: z.ZodNullable<z.ZodString>;
18
+ first_names: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ contact_since: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ do_not_contact: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
21
+ }, z.core.$loose>;
22
+ declare const simpleroGetContactById: import("@keystrokehq/action").WorkflowActionDefinition<{
23
+ id: number;
24
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { simpleroGetContactById };
9
27
  //# sourceMappingURL=get-contact-by-id.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact-by-id.d.mts","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEyB;AAAA,cACxD,4BAAA,EAA8B,CAAA,CAAE,UAcK;AAAA,cAErC,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-contact-by-id.d.mts","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAgB5B,sBAAA,gCAAsB,wBAAA"}
@@ -6,20 +6,20 @@ const simpleroGetContactById = action("SIMPLERO_GET_CONTACT_BY_ID", {
6
6
  description: "Tool to retrieve a JSON representation of a contact by internal ID. Use when you need to fetch detailed information about a specific contact. Returns 404 if no contact exists with the provided ID.",
7
7
  input: z.object({ id: z.number().int().describe("The internal ID of the contact to retrieve. This ID is obtained from previous API calls.") }).describe("Request model for retrieving a contact by internal ID."),
8
8
  output: z.object({
9
- id: z.number().int().describe("Contact's internal identifier"),
9
+ id: z.number().int().describe("Contact's internal identifier").nullable(),
10
10
  name: z.string().describe("Full name of the contact").nullable().optional(),
11
- email: z.string().describe("Contact's email address"),
11
+ email: z.string().describe("Contact's email address").nullable(),
12
12
  phone: z.string().describe("Sanitized phone number with country code").nullable().optional(),
13
13
  referrer: z.string().describe("Referring URL").nullable().optional(),
14
14
  last_name: z.string().describe("Contact's surname").nullable().optional(),
15
15
  tag_names: z.string().describe("Comma-separated list of tags").nullable().optional(),
16
- created_at: z.string().describe("Timestamp of creation in ISO 8601 format"),
16
+ created_at: z.string().describe("Timestamp of creation in ISO 8601 format").nullable(),
17
17
  ip_address: z.string().describe("IP address").nullable().optional(),
18
- updated_at: z.string().describe("Timestamp of last update in ISO 8601 format"),
18
+ updated_at: z.string().describe("Timestamp of last update in ISO 8601 format").nullable(),
19
19
  first_names: z.string().describe("Contact's first name(s)").nullable().optional(),
20
20
  contact_since: z.string().describe("Human-readable contact duration").nullable().optional(),
21
21
  do_not_contact: z.boolean().describe("Flag indicating do not contact preference").nullable().optional()
22
- }).describe("Response model for contact details.")
22
+ }).passthrough().describe("Response model for contact details.")
23
23
  });
24
24
  //#endregion
25
25
  export { simpleroGetContactById };
@@ -1 +1 @@
1
- {"version":3,"file":"get-contact-by-id.mjs","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetContactByIdInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The internal ID of the contact to retrieve. This ID is obtained from previous API calls.\"),\n}).describe(\"Request model for retrieving a contact by internal ID.\");\nexport const SimpleroGetContactByIdOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Contact's internal identifier\"),\n name: z.string().describe(\"Full name of the contact\").nullable().optional(),\n email: z.string().describe(\"Contact's email address\"),\n phone: z.string().describe(\"Sanitized phone number with country code\").nullable().optional(),\n referrer: z.string().describe(\"Referring URL\").nullable().optional(),\n last_name: z.string().describe(\"Contact's surname\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated list of tags\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of creation in ISO 8601 format\"),\n ip_address: z.string().describe(\"IP address\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of last update in ISO 8601 format\"),\n first_names: z.string().describe(\"Contact's first name(s)\").nullable().optional(),\n contact_since: z.string().describe(\"Human-readable contact duration\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Flag indicating do not contact preference\").nullable().optional(),\n}).describe(\"Response model for contact details.\");\n\nexport const simpleroGetContactById = action(\"SIMPLERO_GET_CONTACT_BY_ID\", {\n slug: \"simplero-get-contact-by-id\",\n name: \"Get Contact By ID\",\n description: \"Tool to retrieve a JSON representation of a contact by internal ID. Use when you need to fetch detailed information about a specific contact. Returns 404 if no contact exists with the provided ID.\",\n input: SimpleroGetContactByIdInput,\n output: SimpleroGetContactByIdOutput,\n});\n"],"mappings":";;AAuBA,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBuD,EAAE,OAAO,EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,EAC1H,CAAC,CAAC,CAAC,SAAS,wDAqBH;CACP,QArBwD,EAAE,OAAO;EACjE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;EAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,SAAS,qCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-contact-by-id.mjs","names":[],"sources":["../../src/actions/get-contact-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetContactByIdInput = z.object({\n id: z.number().int().describe(\"The internal ID of the contact to retrieve. This ID is obtained from previous API calls.\"),\n}).describe(\"Request model for retrieving a contact by internal ID.\");\nexport const SimpleroGetContactByIdOutput = z.object({\n id: z.number().int().describe(\"Contact's internal identifier\").nullable(),\n name: z.string().describe(\"Full name of the contact\").nullable().optional(),\n email: z.string().describe(\"Contact's email address\").nullable(),\n phone: z.string().describe(\"Sanitized phone number with country code\").nullable().optional(),\n referrer: z.string().describe(\"Referring URL\").nullable().optional(),\n last_name: z.string().describe(\"Contact's surname\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated list of tags\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of creation in ISO 8601 format\").nullable(),\n ip_address: z.string().describe(\"IP address\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of last update in ISO 8601 format\").nullable(),\n first_names: z.string().describe(\"Contact's first name(s)\").nullable().optional(),\n contact_since: z.string().describe(\"Human-readable contact duration\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Flag indicating do not contact preference\").nullable().optional(),\n}).passthrough().describe(\"Response model for contact details.\");\n\nexport const simpleroGetContactById = action(\"SIMPLERO_GET_CONTACT_BY_ID\", {\n slug: \"simplero-get-contact-by-id\",\n name: \"Get Contact By ID\",\n description: \"Tool to retrieve a JSON representation of a contact by internal ID. Use when you need to fetch detailed information about a specific contact. Returns 404 if no contact exists with the provided ID.\",\n input: SimpleroGetContactByIdInput,\n output: SimpleroGetContactByIdOutput,\n});\n"],"mappings":";;AAuBA,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvByC,EAAE,OAAO,EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,EAC1H,CAAC,CAAC,CAAC,SAAS,wDAqBH;CACP,QArB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAOhB;AACV,CAAC"}
@@ -19,8 +19,8 @@ const SimpleroGetInvoices_InvoiceSchema = zod.z.object({
19
19
  customer_id: zod.z.number().int().describe("Associated customer ID").nullable().optional(),
20
20
  amount_cents: zod.z.number().int().describe("Invoice amount in cents").nullable().optional(),
21
21
  invoice_number: zod.z.string().describe("Invoice number").nullable().optional()
22
- }).describe("Model representing an invoice object.");
23
- const SimpleroGetInvoicesOutput = zod.z.object({ invoices: zod.z.array(SimpleroGetInvoices_InvoiceSchema).describe("List of invoice objects. Each invoice contains invoice details. Returns up to 20 invoices per page ordered by invoice number.") }).describe("Response model containing a list of invoices.");
22
+ }).passthrough().describe("Model representing an invoice object.");
23
+ const SimpleroGetInvoicesOutput = zod.z.object({ invoices: zod.z.array(SimpleroGetInvoices_InvoiceSchema).describe("List of invoice objects. Each invoice contains invoice details. Returns up to 20 invoices per page ordered by invoice number.") }).passthrough().describe("Response model containing a list of invoices.");
24
24
  const simpleroGetInvoices = require_action.action("SIMPLERO_GET_INVOICES", {
25
25
  slug: "simplero-get-invoices",
26
26
  name: "Get Invoices",
@@ -1 +1 @@
1
- {"version":3,"file":"get-invoices.cjs","names":["z","action"],"sources":["../../src/actions/get-invoices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetInvoicesInput: z.ZodTypeAny = z.object({\n dir: z.string().describe(\"Sort direction for results. Use 'asc' for ascending or 'desc' for descending (case-insensitive). Defaults to 'asc' if not specified.\").optional(),\n page: z.number().int().describe(\"Page number for pagination. Returns 20 invoices per page. Defaults to 1 if not specified.\").optional(),\n created_at_to: z.string().describe(\"Return invoices created before this time. Must be an ISO-8601 datetime string (e.g., '2024-12-31T23:59:59Z').\").optional(),\n created_at_from: z.string().describe(\"Return invoices created at or after this time. Must be an ISO-8601 datetime string (e.g., '2024-01-01T00:00:00Z').\").optional(),\n invoice_number_to: z.string().describe(\"Return invoices with an invoice number alphabetically less than this value.\").optional(),\n invoice_number_from: z.string().describe(\"Return invoices with an invoice number alphabetically equal to or greater than this value.\").optional(),\n}).describe(\"Request model for retrieving invoices with optional filtering.\");\nconst SimpleroGetInvoices_InvoiceSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Invoice identifier\").nullable().optional(),\n status: z.string().describe(\"Invoice status\").nullable().optional(),\n paid_at: z.string().describe(\"ISO 8601 timestamp when invoice was paid\").nullable().optional(),\n currency: z.string().describe(\"Currency code\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of invoice creation\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n customer_id: z.number().int().describe(\"Associated customer ID\").nullable().optional(),\n amount_cents: z.number().int().describe(\"Invoice amount in cents\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number\").nullable().optional(),\n}).describe(\"Model representing an invoice object.\");\nexport const SimpleroGetInvoicesOutput: z.ZodTypeAny = z.object({\n invoices: z.array(SimpleroGetInvoices_InvoiceSchema).describe(\"List of invoice objects. Each invoice contains invoice details. Returns up to 20 invoices per page ordered by invoice number.\"),\n}).describe(\"Response model containing a list of invoices.\");\n\nexport const simpleroGetInvoices = action(\"SIMPLERO_GET_INVOICES\", {\n slug: \"simplero-get-invoices\",\n name: \"Get Invoices\",\n description: \"Tool to get invoice information with optional filtering by date and invoice number. Use when you need to retrieve invoices from Simplero. Returns 20 invoices per page ordered by invoice number.\",\n input: SimpleroGetInvoicesInput,\n output: SimpleroGetInvoicesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;CAC1K,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACtI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAC7J,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACpK,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC/H,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;AAClJ,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC5E,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,UAAUA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,+HAA+H,EAC/L,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-invoices.cjs","names":["z","action"],"sources":["../../src/actions/get-invoices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroGetInvoicesInput = z.object({\n dir: z.string().describe(\"Sort direction for results. Use 'asc' for ascending or 'desc' for descending (case-insensitive). Defaults to 'asc' if not specified.\").optional(),\n page: z.number().int().describe(\"Page number for pagination. Returns 20 invoices per page. Defaults to 1 if not specified.\").optional(),\n created_at_to: z.string().describe(\"Return invoices created before this time. Must be an ISO-8601 datetime string (e.g., '2024-12-31T23:59:59Z').\").optional(),\n created_at_from: z.string().describe(\"Return invoices created at or after this time. Must be an ISO-8601 datetime string (e.g., '2024-01-01T00:00:00Z').\").optional(),\n invoice_number_to: z.string().describe(\"Return invoices with an invoice number alphabetically less than this value.\").optional(),\n invoice_number_from: z.string().describe(\"Return invoices with an invoice number alphabetically equal to or greater than this value.\").optional(),\n}).describe(\"Request model for retrieving invoices with optional filtering.\");\nconst SimpleroGetInvoices_InvoiceSchema = z.object({\n id: z.number().int().describe(\"Invoice identifier\").nullable().optional(),\n status: z.string().describe(\"Invoice status\").nullable().optional(),\n paid_at: z.string().describe(\"ISO 8601 timestamp when invoice was paid\").nullable().optional(),\n currency: z.string().describe(\"Currency code\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of invoice creation\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n customer_id: z.number().int().describe(\"Associated customer ID\").nullable().optional(),\n amount_cents: z.number().int().describe(\"Invoice amount in cents\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number\").nullable().optional(),\n}).passthrough().describe(\"Model representing an invoice object.\");\nexport const SimpleroGetInvoicesOutput = z.object({\n invoices: z.array(SimpleroGetInvoices_InvoiceSchema).describe(\"List of invoice objects. Each invoice contains invoice details. Returns up to 20 invoices per page ordered by invoice number.\"),\n}).passthrough().describe(\"Response model containing a list of invoices.\");\n\nexport const simpleroGetInvoices = action(\"SIMPLERO_GET_INVOICES\", {\n slug: \"simplero-get-invoices\",\n name: \"Get Invoices\",\n description: \"Tool to get invoice information with optional filtering by date and invoice number. Use when you need to retrieve invoices from Simplero. Returns 20 invoices per page ordered by invoice number.\",\n input: SimpleroGetInvoicesInput,\n output: SimpleroGetInvoicesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;CAC1K,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,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ACvF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,UAAUA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,+HAA+H,EAC/L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,35 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-invoices.d.ts
4
- declare const SimpleroGetInvoicesInput: z.ZodTypeAny;
5
- declare const SimpleroGetInvoicesOutput: z.ZodTypeAny;
6
- declare const simpleroGetInvoices: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SimpleroGetInvoicesInput: z.ZodObject<{
5
+ dir: z.ZodOptional<z.ZodString>;
6
+ page: z.ZodOptional<z.ZodNumber>;
7
+ created_at_to: z.ZodOptional<z.ZodString>;
8
+ created_at_from: z.ZodOptional<z.ZodString>;
9
+ invoice_number_to: z.ZodOptional<z.ZodString>;
10
+ invoice_number_from: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ declare const SimpleroGetInvoicesOutput: z.ZodObject<{
13
+ invoices: z.ZodArray<z.ZodObject<{
14
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ paid_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ customer_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ amount_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ invoice_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ }, z.core.$loose>>;
24
+ }, z.core.$loose>;
25
+ declare const simpleroGetInvoices: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ dir?: string | undefined;
27
+ page?: number | undefined;
28
+ created_at_to?: string | undefined;
29
+ created_at_from?: string | undefined;
30
+ invoice_number_to?: string | undefined;
31
+ invoice_number_from?: string | undefined;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
33
  //#endregion
8
34
  export { simpleroGetInvoices };
9
35
  //# sourceMappingURL=get-invoices.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-invoices.d.cts","names":[],"sources":["../../src/actions/get-invoices.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAOoC;AAAA,cAYhE,yBAAA,EAA2B,CAAA,CAAE,UAEkB;AAAA,cAE/C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-invoices.d.cts","names":[],"sources":["../../src/actions/get-invoices.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAmBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}