@keystrokehq/splitwise 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 (219) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-friend.cjs +10 -10
  4. package/dist/actions/add-friend.cjs.map +1 -1
  5. package/dist/actions/add-friend.d.cts +38 -3
  6. package/dist/actions/add-friend.d.cts.map +1 -1
  7. package/dist/actions/add-friend.d.mts +38 -3
  8. package/dist/actions/add-friend.d.mts.map +1 -1
  9. package/dist/actions/add-friend.mjs +10 -10
  10. package/dist/actions/add-friend.mjs.map +1 -1
  11. package/dist/actions/add-user-to-group.cjs +6 -6
  12. package/dist/actions/add-user-to-group.cjs.map +1 -1
  13. package/dist/actions/add-user-to-group.d.cts +26 -3
  14. package/dist/actions/add-user-to-group.d.cts.map +1 -1
  15. package/dist/actions/add-user-to-group.d.mts +26 -3
  16. package/dist/actions/add-user-to-group.d.mts.map +1 -1
  17. package/dist/actions/add-user-to-group.mjs +6 -6
  18. package/dist/actions/add-user-to-group.mjs.map +1 -1
  19. package/dist/actions/create-comment.cjs +10 -10
  20. package/dist/actions/create-comment.cjs.map +1 -1
  21. package/dist/actions/create-comment.d.cts +30 -3
  22. package/dist/actions/create-comment.d.cts.map +1 -1
  23. package/dist/actions/create-comment.d.mts +30 -3
  24. package/dist/actions/create-comment.d.mts.map +1 -1
  25. package/dist/actions/create-comment.mjs +10 -10
  26. package/dist/actions/create-comment.mjs.map +1 -1
  27. package/dist/actions/create-expense.cjs +35 -35
  28. package/dist/actions/create-expense.cjs.map +1 -1
  29. package/dist/actions/create-expense.d.cts +128 -3
  30. package/dist/actions/create-expense.d.cts.map +1 -1
  31. package/dist/actions/create-expense.d.mts +128 -3
  32. package/dist/actions/create-expense.d.mts.map +1 -1
  33. package/dist/actions/create-expense.mjs +35 -35
  34. package/dist/actions/create-expense.mjs.map +1 -1
  35. package/dist/actions/create-friends.cjs +10 -10
  36. package/dist/actions/create-friends.cjs.map +1 -1
  37. package/dist/actions/create-friends.d.cts +43 -3
  38. package/dist/actions/create-friends.d.cts.map +1 -1
  39. package/dist/actions/create-friends.d.mts +43 -3
  40. package/dist/actions/create-friends.d.mts.map +1 -1
  41. package/dist/actions/create-friends.mjs +10 -10
  42. package/dist/actions/create-friends.mjs.map +1 -1
  43. package/dist/actions/create-group.cjs +8 -8
  44. package/dist/actions/create-group.cjs.map +1 -1
  45. package/dist/actions/create-group.d.cts +76 -3
  46. package/dist/actions/create-group.d.cts.map +1 -1
  47. package/dist/actions/create-group.d.mts +76 -3
  48. package/dist/actions/create-group.d.mts.map +1 -1
  49. package/dist/actions/create-group.mjs +8 -8
  50. package/dist/actions/create-group.mjs.map +1 -1
  51. package/dist/actions/delete-comment.cjs +11 -11
  52. package/dist/actions/delete-comment.cjs.map +1 -1
  53. package/dist/actions/delete-comment.d.cts +30 -3
  54. package/dist/actions/delete-comment.d.cts.map +1 -1
  55. package/dist/actions/delete-comment.d.mts +30 -3
  56. package/dist/actions/delete-comment.d.mts.map +1 -1
  57. package/dist/actions/delete-comment.mjs +11 -11
  58. package/dist/actions/delete-comment.mjs.map +1 -1
  59. package/dist/actions/delete-expense.cjs +2 -2
  60. package/dist/actions/delete-expense.cjs.map +1 -1
  61. package/dist/actions/delete-expense.d.cts +10 -3
  62. package/dist/actions/delete-expense.d.cts.map +1 -1
  63. package/dist/actions/delete-expense.d.mts +10 -3
  64. package/dist/actions/delete-expense.d.mts.map +1 -1
  65. package/dist/actions/delete-expense.mjs +2 -2
  66. package/dist/actions/delete-expense.mjs.map +1 -1
  67. package/dist/actions/delete-friend.cjs +2 -2
  68. package/dist/actions/delete-friend.cjs.map +1 -1
  69. package/dist/actions/delete-friend.d.cts +10 -3
  70. package/dist/actions/delete-friend.d.cts.map +1 -1
  71. package/dist/actions/delete-friend.d.mts +10 -3
  72. package/dist/actions/delete-friend.d.mts.map +1 -1
  73. package/dist/actions/delete-friend.mjs +2 -2
  74. package/dist/actions/delete-friend.mjs.map +1 -1
  75. package/dist/actions/delete-group.cjs +2 -2
  76. package/dist/actions/delete-group.cjs.map +1 -1
  77. package/dist/actions/delete-group.d.cts +10 -3
  78. package/dist/actions/delete-group.d.cts.map +1 -1
  79. package/dist/actions/delete-group.d.mts +10 -3
  80. package/dist/actions/delete-group.d.mts.map +1 -1
  81. package/dist/actions/delete-group.mjs +2 -2
  82. package/dist/actions/delete-group.mjs.map +1 -1
  83. package/dist/actions/get-categories.cjs +7 -7
  84. package/dist/actions/get-categories.cjs.map +1 -1
  85. package/dist/actions/get-categories.d.cts +12 -3
  86. package/dist/actions/get-categories.d.cts.map +1 -1
  87. package/dist/actions/get-categories.d.mts +12 -3
  88. package/dist/actions/get-categories.d.mts.map +1 -1
  89. package/dist/actions/get-categories.mjs +7 -7
  90. package/dist/actions/get-categories.mjs.map +1 -1
  91. package/dist/actions/get-comments.cjs +11 -11
  92. package/dist/actions/get-comments.cjs.map +1 -1
  93. package/dist/actions/get-comments.d.cts +30 -3
  94. package/dist/actions/get-comments.d.cts.map +1 -1
  95. package/dist/actions/get-comments.d.mts +30 -3
  96. package/dist/actions/get-comments.d.mts.map +1 -1
  97. package/dist/actions/get-comments.mjs +11 -11
  98. package/dist/actions/get-comments.mjs.map +1 -1
  99. package/dist/actions/get-currencies.cjs +4 -4
  100. package/dist/actions/get-currencies.cjs.map +1 -1
  101. package/dist/actions/get-currencies.d.cts +8 -3
  102. package/dist/actions/get-currencies.d.cts.map +1 -1
  103. package/dist/actions/get-currencies.d.mts +8 -3
  104. package/dist/actions/get-currencies.d.mts.map +1 -1
  105. package/dist/actions/get-currencies.mjs +4 -4
  106. package/dist/actions/get-currencies.mjs.map +1 -1
  107. package/dist/actions/get-current-user.cjs +24 -24
  108. package/dist/actions/get-current-user.cjs.map +1 -1
  109. package/dist/actions/get-current-user.d.cts +35 -3
  110. package/dist/actions/get-current-user.d.cts.map +1 -1
  111. package/dist/actions/get-current-user.d.mts +35 -3
  112. package/dist/actions/get-current-user.d.mts.map +1 -1
  113. package/dist/actions/get-current-user.mjs +24 -24
  114. package/dist/actions/get-current-user.mjs.map +1 -1
  115. package/dist/actions/get-expense.cjs +28 -28
  116. package/dist/actions/get-expense.cjs.map +1 -1
  117. package/dist/actions/get-expense.d.cts +124 -3
  118. package/dist/actions/get-expense.d.cts.map +1 -1
  119. package/dist/actions/get-expense.d.mts +124 -3
  120. package/dist/actions/get-expense.d.mts.map +1 -1
  121. package/dist/actions/get-expense.mjs +28 -28
  122. package/dist/actions/get-expense.mjs.map +1 -1
  123. package/dist/actions/get-expenses.cjs +28 -28
  124. package/dist/actions/get-expenses.cjs.map +1 -1
  125. package/dist/actions/get-expenses.d.cts +140 -3
  126. package/dist/actions/get-expenses.d.cts.map +1 -1
  127. package/dist/actions/get-expenses.d.mts +140 -3
  128. package/dist/actions/get-expenses.d.mts.map +1 -1
  129. package/dist/actions/get-expenses.mjs +28 -28
  130. package/dist/actions/get-expenses.mjs.map +1 -1
  131. package/dist/actions/get-friend.cjs +12 -12
  132. package/dist/actions/get-friend.cjs.map +1 -1
  133. package/dist/actions/get-friend.d.cts +33 -3
  134. package/dist/actions/get-friend.d.cts.map +1 -1
  135. package/dist/actions/get-friend.d.mts +33 -3
  136. package/dist/actions/get-friend.d.mts.map +1 -1
  137. package/dist/actions/get-friend.mjs +12 -12
  138. package/dist/actions/get-friend.mjs.map +1 -1
  139. package/dist/actions/get-friends.cjs +12 -12
  140. package/dist/actions/get-friends.cjs.map +1 -1
  141. package/dist/actions/get-friends.d.cts +29 -3
  142. package/dist/actions/get-friends.d.cts.map +1 -1
  143. package/dist/actions/get-friends.d.mts +29 -3
  144. package/dist/actions/get-friends.d.mts.map +1 -1
  145. package/dist/actions/get-friends.mjs +12 -12
  146. package/dist/actions/get-friends.mjs.map +1 -1
  147. package/dist/actions/get-group.cjs +18 -18
  148. package/dist/actions/get-group.cjs.map +1 -1
  149. package/dist/actions/get-group.d.cts +68 -3
  150. package/dist/actions/get-group.d.cts.map +1 -1
  151. package/dist/actions/get-group.d.mts +68 -3
  152. package/dist/actions/get-group.d.mts.map +1 -1
  153. package/dist/actions/get-group.mjs +18 -18
  154. package/dist/actions/get-group.mjs.map +1 -1
  155. package/dist/actions/get-groups.cjs +18 -18
  156. package/dist/actions/get-groups.cjs.map +1 -1
  157. package/dist/actions/get-groups.d.cts +63 -3
  158. package/dist/actions/get-groups.d.cts.map +1 -1
  159. package/dist/actions/get-groups.d.mts +63 -3
  160. package/dist/actions/get-groups.d.mts.map +1 -1
  161. package/dist/actions/get-groups.mjs +18 -18
  162. package/dist/actions/get-groups.mjs.map +1 -1
  163. package/dist/actions/get-notifications.cjs +7 -7
  164. package/dist/actions/get-notifications.cjs.map +1 -1
  165. package/dist/actions/get-notifications.d.cts +24 -3
  166. package/dist/actions/get-notifications.d.cts.map +1 -1
  167. package/dist/actions/get-notifications.d.mts +24 -3
  168. package/dist/actions/get-notifications.d.mts.map +1 -1
  169. package/dist/actions/get-notifications.mjs +7 -7
  170. package/dist/actions/get-notifications.mjs.map +1 -1
  171. package/dist/actions/get-user.cjs +4 -4
  172. package/dist/actions/get-user.cjs.map +1 -1
  173. package/dist/actions/get-user.d.cts +21 -3
  174. package/dist/actions/get-user.d.cts.map +1 -1
  175. package/dist/actions/get-user.d.mts +21 -3
  176. package/dist/actions/get-user.d.mts.map +1 -1
  177. package/dist/actions/get-user.mjs +4 -4
  178. package/dist/actions/get-user.mjs.map +1 -1
  179. package/dist/actions/remove-user-from-group.cjs +2 -2
  180. package/dist/actions/remove-user-from-group.cjs.map +1 -1
  181. package/dist/actions/remove-user-from-group.d.cts +12 -3
  182. package/dist/actions/remove-user-from-group.d.cts.map +1 -1
  183. package/dist/actions/remove-user-from-group.d.mts +12 -3
  184. package/dist/actions/remove-user-from-group.d.mts.map +1 -1
  185. package/dist/actions/remove-user-from-group.mjs +2 -2
  186. package/dist/actions/remove-user-from-group.mjs.map +1 -1
  187. package/dist/actions/undelete-expense.cjs +2 -2
  188. package/dist/actions/undelete-expense.cjs.map +1 -1
  189. package/dist/actions/undelete-expense.d.cts +10 -3
  190. package/dist/actions/undelete-expense.d.cts.map +1 -1
  191. package/dist/actions/undelete-expense.d.mts +10 -3
  192. package/dist/actions/undelete-expense.d.mts.map +1 -1
  193. package/dist/actions/undelete-expense.mjs +2 -2
  194. package/dist/actions/undelete-expense.mjs.map +1 -1
  195. package/dist/actions/undelete-group.cjs +2 -2
  196. package/dist/actions/undelete-group.cjs.map +1 -1
  197. package/dist/actions/undelete-group.d.cts +10 -3
  198. package/dist/actions/undelete-group.d.cts.map +1 -1
  199. package/dist/actions/undelete-group.d.mts +10 -3
  200. package/dist/actions/undelete-group.d.mts.map +1 -1
  201. package/dist/actions/undelete-group.mjs +2 -2
  202. package/dist/actions/undelete-group.mjs.map +1 -1
  203. package/dist/actions/update-expense.cjs +2 -2
  204. package/dist/actions/update-expense.cjs.map +1 -1
  205. package/dist/actions/update-expense.d.cts +49 -3
  206. package/dist/actions/update-expense.d.cts.map +1 -1
  207. package/dist/actions/update-expense.d.mts +49 -3
  208. package/dist/actions/update-expense.d.mts.map +1 -1
  209. package/dist/actions/update-expense.mjs +2 -2
  210. package/dist/actions/update-expense.mjs.map +1 -1
  211. package/dist/actions/update-user.cjs +5 -5
  212. package/dist/actions/update-user.cjs.map +1 -1
  213. package/dist/actions/update-user.d.cts +51 -3
  214. package/dist/actions/update-user.d.cts.map +1 -1
  215. package/dist/actions/update-user.d.mts +51 -3
  216. package/dist/actions/update-user.d.mts.map +1 -1
  217. package/dist/actions/update-user.mjs +5 -5
  218. package/dist/actions/update-user.mjs.map +1 -1
  219. package/package.json +2 -2
@@ -1,9 +1,36 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-comment.d.ts
4
- declare const SplitwiseCreateCommentInput: z.ZodTypeAny;
5
- declare const SplitwiseCreateCommentOutput: z.ZodTypeAny;
6
- declare const splitwiseCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SplitwiseCreateCommentInput: z.ZodObject<{
5
+ content: z.ZodString;
6
+ expense_id: z.ZodNumber;
7
+ }, z.core.$strip>;
8
+ declare const SplitwiseCreateCommentOutput: z.ZodObject<{
9
+ id: z.ZodNullable<z.ZodNumber>;
10
+ user: z.ZodNullable<z.ZodObject<{
11
+ id: z.ZodNullable<z.ZodNumber>;
12
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ picture: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
+ large: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ small: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ }, z.core.$loose>>>;
18
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ custom_picture: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
21
+ registration_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$loose>>;
23
+ content: z.ZodNullable<z.ZodString>;
24
+ created_at: z.ZodNullable<z.ZodString>;
25
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ relation_id: z.ZodNullable<z.ZodNumber>;
27
+ comment_type: z.ZodNullable<z.ZodString>;
28
+ relation_type: z.ZodNullable<z.ZodString>;
29
+ }, z.core.$loose>;
30
+ declare const splitwiseCreateComment: import("@keystrokehq/action").WorkflowActionDefinition<{
31
+ content: string;
32
+ expense_id: number;
33
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
34
  //#endregion
8
35
  export { splitwiseCreateComment };
9
36
  //# sourceMappingURL=create-comment.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-comment.d.mts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAGsB;AAAA,cAerD,4BAAA,EAA8B,CAAA,CAAE,UASQ;AAAA,cAExC,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-comment.d.mts","names":[],"sources":["../../src/actions/create-comment.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAkB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAW5B,sBAAA,gCAAsB,wBAAA"}
@@ -9,31 +9,31 @@ const SplitwiseCreateComment_PictureSchema = z.object({
9
9
  large: z.string().describe("URL for large-sized profile picture.").nullable().optional(),
10
10
  small: z.string().describe("URL for small-sized profile picture.").nullable().optional(),
11
11
  medium: z.string().describe("URL for medium-sized profile picture.").nullable().optional()
12
- }).describe("URLs for user profile pictures in different sizes.");
12
+ }).passthrough().describe("URLs for user profile pictures in different sizes.");
13
13
  const SplitwiseCreateComment_UserObjectSchema = z.object({
14
- id: z.number().int().describe("User ID."),
14
+ id: z.number().int().describe("User ID.").nullable(),
15
15
  email: z.string().describe("User's email address.").nullable().optional(),
16
16
  picture: SplitwiseCreateComment_PictureSchema.nullable().optional(),
17
17
  last_name: z.string().describe("User's last name.").nullable().optional(),
18
18
  first_name: z.string().describe("User's first name.").nullable().optional(),
19
19
  custom_picture: z.boolean().describe("Whether user has custom picture.").nullable().optional(),
20
20
  registration_status: z.string().describe("Registration status.").nullable().optional()
21
- }).describe("Represents a user object in the comment.");
21
+ }).passthrough().describe("Represents a user object in the comment.");
22
22
  const splitwiseCreateComment = action("SPLITWISE_CREATE_COMMENT", {
23
23
  slug: "splitwise-create-comment",
24
24
  name: "Create Comment",
25
25
  description: "Tool to create a comment on a specific expense. Use when you need to add a comment or note to an existing expense.",
26
26
  input: SplitwiseCreateCommentInput,
27
27
  output: z.object({
28
- id: z.number().int().describe("Unique identifier for the comment."),
28
+ id: z.number().int().describe("Unique identifier for the comment.").nullable(),
29
29
  user: SplitwiseCreateComment_UserObjectSchema.nullable(),
30
- content: z.string().describe("The text content of the comment."),
31
- created_at: z.string().describe("Timestamp when the comment was created."),
30
+ content: z.string().describe("The text content of the comment.").nullable(),
31
+ created_at: z.string().describe("Timestamp when the comment was created.").nullable(),
32
32
  deleted_at: z.string().describe("Timestamp when the comment was deleted (null if not deleted).").nullable().optional(),
33
- relation_id: z.number().int().describe("ID of the subject of the comment (the expense ID)."),
34
- comment_type: z.string().describe("Type of comment. Can be 'System' for system-generated comments or 'User' for user-authored messages."),
35
- relation_type: z.string().describe("Subject type of the comment. Typically 'ExpenseComment'.")
36
- }).describe("Response model for creating a comment.")
33
+ relation_id: z.number().int().describe("ID of the subject of the comment (the expense ID).").nullable(),
34
+ comment_type: z.string().describe("Type of comment. Can be 'System' for system-generated comments or 'User' for user-authored messages.").nullable(),
35
+ relation_type: z.string().describe("Subject type of the comment. Typically 'ExpenseComment'.").nullable()
36
+ }).passthrough().describe("Response model for creating a comment.")
37
37
  });
38
38
  //#endregion
39
39
  export { splitwiseCreateComment };
@@ -1 +1 @@
1
- {"version":3,"file":"create-comment.mjs","names":[],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseCreateCommentInput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"The text content of the comment.\"),\n expense_id: z.number().int().describe(\"The ID of the expense to which the comment will be added.\"),\n}).describe(\"Request model for creating a comment on an expense.\");\nconst SplitwiseCreateComment_PictureSchema: z.ZodTypeAny = z.object({\n large: z.string().describe(\"URL for large-sized profile picture.\").nullable().optional(),\n small: z.string().describe(\"URL for small-sized profile picture.\").nullable().optional(),\n medium: z.string().describe(\"URL for medium-sized profile picture.\").nullable().optional(),\n}).describe(\"URLs for user profile pictures in different sizes.\");\nconst SplitwiseCreateComment_UserObjectSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"User ID.\"),\n email: z.string().describe(\"User's email address.\").nullable().optional(),\n picture: SplitwiseCreateComment_PictureSchema.nullable().optional(),\n last_name: z.string().describe(\"User's last name.\").nullable().optional(),\n first_name: z.string().describe(\"User's first name.\").nullable().optional(),\n custom_picture: z.boolean().describe(\"Whether user has custom picture.\").nullable().optional(),\n registration_status: z.string().describe(\"Registration status.\").nullable().optional(),\n}).describe(\"Represents a user object in the comment.\");\nexport const SplitwiseCreateCommentOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the comment.\"),\n user: SplitwiseCreateComment_UserObjectSchema.nullable(),\n content: z.string().describe(\"The text content of the comment.\"),\n created_at: z.string().describe(\"Timestamp when the comment was created.\"),\n deleted_at: z.string().describe(\"Timestamp when the comment was deleted (null if not deleted).\").nullable().optional(),\n relation_id: z.number().int().describe(\"ID of the subject of the comment (the expense ID).\"),\n comment_type: z.string().describe(\"Type of comment. Can be 'System' for system-generated comments or 'User' for user-authored messages.\"),\n relation_type: z.string().describe(\"Subject type of the comment. Typically 'ExpenseComment'.\"),\n}).describe(\"Response model for creating a comment.\");\n\nexport const splitwiseCreateComment = action(\"SPLITWISE_CREATE_COMMENT\", {\n slug: \"splitwise-create-comment\",\n name: \"Create Comment\",\n description: \"Tool to create a comment on a specific expense. Use when you need to add a comment or note to an existing expense.\",\n input: SplitwiseCreateCommentInput,\n output: SplitwiseCreateCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO;CAChE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC/D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;AACnG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,uCAAqD,EAAE,OAAO;CAClE,OAAO,EAAE,OAAO,CAAC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C,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;EAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;EACxI,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CAC/F,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-comment.mjs","names":[],"sources":["../../src/actions/create-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseCreateCommentInput = z.object({\n content: z.string().describe(\"The text content of the comment.\"),\n expense_id: z.number().int().describe(\"The ID of the expense to which the comment will be added.\"),\n}).describe(\"Request model for creating a comment on an expense.\");\nconst SplitwiseCreateComment_PictureSchema = z.object({\n large: z.string().describe(\"URL for large-sized profile picture.\").nullable().optional(),\n small: z.string().describe(\"URL for small-sized profile picture.\").nullable().optional(),\n medium: z.string().describe(\"URL for medium-sized profile picture.\").nullable().optional(),\n}).passthrough().describe(\"URLs for user profile pictures in different sizes.\");\nconst SplitwiseCreateComment_UserObjectSchema = z.object({\n id: z.number().int().describe(\"User ID.\").nullable(),\n email: z.string().describe(\"User's email address.\").nullable().optional(),\n picture: SplitwiseCreateComment_PictureSchema.nullable().optional(),\n last_name: z.string().describe(\"User's last name.\").nullable().optional(),\n first_name: z.string().describe(\"User's first name.\").nullable().optional(),\n custom_picture: z.boolean().describe(\"Whether user has custom picture.\").nullable().optional(),\n registration_status: z.string().describe(\"Registration status.\").nullable().optional(),\n}).passthrough().describe(\"Represents a user object in the comment.\");\nexport const SplitwiseCreateCommentOutput = z.object({\n id: z.number().int().describe(\"Unique identifier for the comment.\").nullable(),\n user: SplitwiseCreateComment_UserObjectSchema.nullable(),\n content: z.string().describe(\"The text content of the comment.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the comment was created.\").nullable(),\n deleted_at: z.string().describe(\"Timestamp when the comment was deleted (null if not deleted).\").nullable().optional(),\n relation_id: z.number().int().describe(\"ID of the subject of the comment (the expense ID).\").nullable(),\n comment_type: z.string().describe(\"Type of comment. Can be 'System' for system-generated comments or 'User' for user-authored messages.\").nullable(),\n relation_type: z.string().describe(\"Subject type of the comment. Typically 'ExpenseComment'.\").nullable(),\n}).passthrough().describe(\"Response model for creating a comment.\");\n\nexport const splitwiseCreateComment = action(\"SPLITWISE_CREATE_COMMENT\", {\n slug: \"splitwise-create-comment\",\n name: \"Create Comment\",\n description: \"Tool to create a comment on a specific expense. Use when you need to add a comment or note to an existing expense.\",\n input: SplitwiseCreateCommentInput,\n output: SplitwiseCreateCommentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC/D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;AACnG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,uCAAuC,EAAE,OAAO;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAAS,qCAAqC,SAAS,CAAC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string().describe("First name (required when adding new users without user_id)").optional(),
12
12
  owed_share: zod.z.string().describe("Amount this participant owes for their portion of the expense (decimal string, up to 2 decimal places)"),
13
13
  paid_share: zod.z.string().describe("Amount this participant actually paid towards the expense (decimal string, up to 2 decimal places)")
14
- }).describe("Represents a participant's share in an expense, specifying what they paid and what they owe.\nMust include either user_id (for existing users) or all three fields: email, first_name, and last_name (for new users).")).describe("List of participants with custom share amounts. Required when using custom splits instead of split_equally Each user object must include `paid_share` and `owed_share` as decimal strings with up to 2 decimal places (e.g., '25.00').").optional(),
14
+ }).passthrough().describe("Represents a participant's share in an expense, specifying what they paid and what they owe.\nMust include either user_id (for existing users) or all three fields: email, first_name, and last_name (for new users).")).describe("List of participants with custom share amounts. Required when using custom splits instead of split_equally Each user object must include `paid_share` and `owed_share` as decimal strings with up to 2 decimal places (e.g., '25.00').").optional(),
15
15
  details: zod.z.string().describe("Additional notes or details about the expense").optional(),
16
16
  group_id: zod.z.number().int().describe("ID of the group to add this expense to. Use 0 for expenses between friends (not in a group)"),
17
17
  category_id: zod.z.number().int().describe("Expense category ID (use get_categories action to retrieve valid IDs). Defaults to 'General'").optional(),
@@ -26,70 +26,70 @@ const SplitwiseCreateExpenseInput = zod.z.object({
26
26
  "yearly"
27
27
  ]).describe("How often this expense repeats. Use 'never' or omit for one-time expenses").optional()
28
28
  }).describe("Request model for creating a new expense.\nExactly one of split_equally or users must be provided.");
29
- const SplitwiseCreateExpense_PictureSchema = zod.z.object({ medium: zod.z.string().describe("Medium-sized profile picture URL").nullable().optional() }).describe("Profile picture URLs.");
29
+ const SplitwiseCreateExpense_PictureSchema = zod.z.object({ medium: zod.z.string().describe("Medium-sized profile picture URL").nullable().optional() }).passthrough().describe("Profile picture URLs.");
30
30
  const SplitwiseCreateExpense_UserInfoSchema = zod.z.object({
31
- id: zod.z.number().int().describe("User ID"),
31
+ id: zod.z.number().int().describe("User ID").nullable(),
32
32
  picture: SplitwiseCreateExpense_PictureSchema.nullable(),
33
33
  last_name: zod.z.string().describe("User's last name").nullable().optional(),
34
- first_name: zod.z.string().describe("User's first name"),
34
+ first_name: zod.z.string().describe("User's first name").nullable(),
35
35
  custom_picture: zod.z.boolean().describe("Whether the user has a custom picture").nullable().optional()
36
- }).describe("Basic user information within an expense.");
36
+ }).passthrough().describe("Basic user information within an expense.");
37
37
  const SplitwiseCreateExpense_ExpenseUserSchema = zod.z.object({
38
38
  user: SplitwiseCreateExpense_UserInfoSchema.nullable(),
39
- user_id: zod.z.number().int().describe("User ID"),
40
- owed_share: zod.z.string().describe("Amount this user owes"),
41
- paid_share: zod.z.string().describe("Amount this user paid"),
42
- net_balance: zod.z.string().describe("Net balance for this user in the expense")
43
- }).describe("User's share details in an expense.");
39
+ user_id: zod.z.number().int().describe("User ID").nullable(),
40
+ owed_share: zod.z.string().describe("Amount this user owes").nullable(),
41
+ paid_share: zod.z.string().describe("Amount this user paid").nullable(),
42
+ net_balance: zod.z.string().describe("Net balance for this user in the expense").nullable()
43
+ }).passthrough().describe("User's share details in an expense.");
44
44
  const SplitwiseCreateExpense_ReceiptSchema = zod.z.object({
45
45
  large: zod.z.string().describe("Large receipt image URL").nullable().optional(),
46
46
  original: zod.z.string().describe("Original receipt image URL").nullable().optional()
47
- }).describe("Receipt image URLs.");
47
+ }).passthrough().describe("Receipt image URLs.");
48
48
  const SplitwiseCreateExpense_CategorySchema = zod.z.object({
49
- id: zod.z.number().int().describe("Category ID"),
50
- name: zod.z.string().describe("Category name")
51
- }).describe("Expense category information.");
49
+ id: zod.z.number().int().describe("Category ID").nullable(),
50
+ name: zod.z.string().describe("Category name").nullable()
51
+ }).passthrough().describe("Expense category information.");
52
52
  const SplitwiseCreateExpense_RepaymentSchema = zod.z.object({
53
- to: zod.z.number().int().describe("User ID who is owed money"),
54
- from: zod.z.number().int().describe("User ID who owes money"),
55
- amount: zod.z.string().describe("Amount to be repaid")
56
- }).describe("Repayment information showing who owes whom.");
53
+ to: zod.z.number().int().describe("User ID who is owed money").nullable(),
54
+ from: zod.z.number().int().describe("User ID who owes money").nullable(),
55
+ amount: zod.z.string().describe("Amount to be repaid").nullable()
56
+ }).passthrough().describe("Repayment information showing who owes whom.");
57
57
  const SplitwiseCreateExpense_ExpenseSchema = zod.z.object({
58
- id: zod.z.number().int().describe("Unique expense ID"),
59
- cost: zod.z.string().describe("Total cost of the expense"),
60
- date: zod.z.string().describe("Date the expense occurred (ISO 8601)"),
58
+ id: zod.z.number().int().describe("Unique expense ID").nullable(),
59
+ cost: zod.z.string().describe("Total cost of the expense").nullable(),
60
+ date: zod.z.string().describe("Date the expense occurred (ISO 8601)").nullable(),
61
61
  users: zod.z.array(SplitwiseCreateExpense_ExpenseUserSchema).describe("List of users involved in this expense with their shares"),
62
62
  details: zod.z.string().describe("Additional details or notes").nullable().optional(),
63
- payment: zod.z.boolean().describe("Whether this is a payment (vs. an expense)"),
63
+ payment: zod.z.boolean().describe("Whether this is a payment (vs. an expense)").nullable(),
64
64
  receipt: SplitwiseCreateExpense_ReceiptSchema.nullable(),
65
- repeats: zod.z.boolean().describe("Whether this expense repeats"),
65
+ repeats: zod.z.boolean().describe("Whether this expense repeats").nullable(),
66
66
  category: SplitwiseCreateExpense_CategorySchema.nullable(),
67
67
  group_id: zod.z.number().int().describe("Group ID, null if not in a group").nullable().optional(),
68
- created_at: zod.z.string().describe("Date the expense was created (ISO 8601)"),
68
+ created_at: zod.z.string().describe("Date the expense was created (ISO 8601)").nullable(),
69
69
  created_by: SplitwiseCreateExpense_UserInfoSchema.nullable(),
70
70
  deleted_at: zod.z.string().describe("Date the expense was deleted").nullable().optional(),
71
71
  deleted_by: SplitwiseCreateExpense_UserInfoSchema.nullable().optional(),
72
72
  repayments: zod.z.array(SplitwiseCreateExpense_RepaymentSchema).describe("List of repayments required to settle this expense"),
73
- updated_at: zod.z.string().describe("Date the expense was last updated (ISO 8601)"),
73
+ updated_at: zod.z.string().describe("Date the expense was last updated (ISO 8601)").nullable(),
74
74
  updated_by: SplitwiseCreateExpense_UserInfoSchema.nullable().optional(),
75
- description: zod.z.string().describe("Expense description"),
75
+ description: zod.z.string().describe("Expense description").nullable(),
76
76
  next_repeat: zod.z.string().describe("Date of next repeat").nullable().optional(),
77
- currency_code: zod.z.string().describe("Currency code (e.g., 'USD')"),
78
- comments_count: zod.z.number().int().describe("Number of comments on this expense"),
79
- email_reminder: zod.z.boolean().describe("Whether email reminders are enabled"),
77
+ currency_code: zod.z.string().describe("Currency code (e.g., 'USD')").nullable(),
78
+ comments_count: zod.z.number().int().describe("Number of comments on this expense").nullable(),
79
+ email_reminder: zod.z.boolean().describe("Whether email reminders are enabled").nullable(),
80
80
  transaction_id: zod.z.string().describe("External transaction ID").nullable().optional(),
81
81
  creation_method: zod.z.string().describe("How the expense was created").nullable().optional(),
82
82
  repeat_interval: zod.z.string().describe("Repeat interval if applicable").nullable().optional(),
83
83
  expense_bundle_id: zod.z.number().int().describe("Bundle ID if part of a recurring expense").nullable().optional(),
84
- transaction_method: zod.z.string().describe("Transaction method (e.g., 'offline')"),
84
+ transaction_method: zod.z.string().describe("Transaction method (e.g., 'offline')").nullable(),
85
85
  transaction_status: zod.z.string().describe("Transaction status").nullable().optional(),
86
- transaction_confirmed: zod.z.boolean().describe("Whether the transaction is confirmed"),
87
- email_reminder_in_advance: zod.z.number().int().describe("Days in advance for email reminder")
88
- }).describe("Complete expense object with all details.");
86
+ transaction_confirmed: zod.z.boolean().describe("Whether the transaction is confirmed").nullable(),
87
+ email_reminder_in_advance: zod.z.number().int().describe("Days in advance for email reminder").nullable()
88
+ }).passthrough().describe("Complete expense object with all details.");
89
89
  const SplitwiseCreateExpenseOutput = zod.z.object({
90
- errors: zod.z.object({}).describe("Errors returned by the API; empty if none"),
90
+ errors: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Errors returned by the API; empty if none"),
91
91
  expenses: zod.z.array(SplitwiseCreateExpense_ExpenseSchema).describe("List of created expense objects")
92
- }).describe("Response model for create_expense action.");
92
+ }).passthrough().describe("Response model for create_expense action.");
93
93
  const splitwiseCreateExpense = require_action.action("SPLITWISE_CREATE_EXPENSE", {
94
94
  slug: "splitwise-create-expense",
95
95
  name: "Create Expense",
@@ -1 +1 @@
1
- {"version":3,"file":"create-expense.cjs","names":["z","action"],"sources":["../../src/actions/create-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseCreateExpenseInput: z.ZodTypeAny = z.object({\n cost: z.string().describe(\"Total cost as string decimal (up to 2 decimal places)\"),\n date: z.string().describe(\"Date when the expense occurred (ISO 8601 format). Defaults to current time if omitted\").optional(),\n users: z.array(z.object({\n email: z.string().describe(\"Email address (required when adding new users without user_id)\").optional(),\n user_id: z.number().int().describe(\"Splitwise user ID of an existing friend or group member\").optional(),\n last_name: z.string().describe(\"Last name (required when adding new users without user_id)\").optional(),\n first_name: z.string().describe(\"First name (required when adding new users without user_id)\").optional(),\n owed_share: z.string().describe(\"Amount this participant owes for their portion of the expense (decimal string, up to 2 decimal places)\"),\n paid_share: z.string().describe(\"Amount this participant actually paid towards the expense (decimal string, up to 2 decimal places)\"),\n}).describe(\"Represents a participant's share in an expense, specifying what they paid and what they owe.\\nMust include either user_id (for existing users) or all three fields: email, first_name, and last_name (for new users).\")).describe(\"List of participants with custom share amounts. Required when using custom splits instead of split_equally Each user object must include `paid_share` and `owed_share` as decimal strings with up to 2 decimal places (e.g., '25.00').\").optional(),\n details: z.string().describe(\"Additional notes or details about the expense\").optional(),\n group_id: z.number().int().describe(\"ID of the group to add this expense to. Use 0 for expenses between friends (not in a group)\"),\n category_id: z.number().int().describe(\"Expense category ID (use get_categories action to retrieve valid IDs). Defaults to 'General'\").optional(),\n description: z.string().describe(\"Brief description of what the expense is for\"),\n currency_code: z.string().describe(\"3-letter ISO currency code (e.g., USD, EUR, GBP). Defaults to user's default currency\").optional(),\n split_equally: z.boolean().describe(\"Set to true to split cost equally. When group_id=0, you must also provide users list to specify participants\").optional(),\n repeat_interval: z.enum([\"never\", \"weekly\", \"fortnightly\", \"monthly\", \"yearly\"]).describe(\"How often this expense repeats. Use 'never' or omit for one-time expenses\").optional(),\n}).describe(\"Request model for creating a new expense.\\nExactly one of split_equally or users must be provided.\");\nconst SplitwiseCreateExpense_PictureSchema: z.ZodTypeAny = z.object({\n medium: z.string().describe(\"Medium-sized profile picture URL\").nullable().optional(),\n}).describe(\"Profile picture URLs.\");\nconst SplitwiseCreateExpense_UserInfoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"User ID\"),\n picture: SplitwiseCreateExpense_PictureSchema.nullable(),\n last_name: z.string().describe(\"User's last name\").nullable().optional(),\n first_name: z.string().describe(\"User's first name\"),\n custom_picture: z.boolean().describe(\"Whether the user has a custom picture\").nullable().optional(),\n}).describe(\"Basic user information within an expense.\");\nconst SplitwiseCreateExpense_ExpenseUserSchema: z.ZodTypeAny = z.object({\n user: SplitwiseCreateExpense_UserInfoSchema.nullable(),\n user_id: z.number().int().describe(\"User ID\"),\n owed_share: z.string().describe(\"Amount this user owes\"),\n paid_share: z.string().describe(\"Amount this user paid\"),\n net_balance: z.string().describe(\"Net balance for this user in the expense\"),\n}).describe(\"User's share details in an expense.\");\nconst SplitwiseCreateExpense_ReceiptSchema: z.ZodTypeAny = z.object({\n large: z.string().describe(\"Large receipt image URL\").nullable().optional(),\n original: z.string().describe(\"Original receipt image URL\").nullable().optional(),\n}).describe(\"Receipt image URLs.\");\nconst SplitwiseCreateExpense_CategorySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Category ID\"),\n name: z.string().describe(\"Category name\"),\n}).describe(\"Expense category information.\");\nconst SplitwiseCreateExpense_RepaymentSchema: z.ZodTypeAny = z.object({\n to: z.number().int().describe(\"User ID who is owed money\"),\n from: z.number().int().describe(\"User ID who owes money\"),\n amount: z.string().describe(\"Amount to be repaid\"),\n}).describe(\"Repayment information showing who owes whom.\");\nconst SplitwiseCreateExpense_ExpenseSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique expense ID\"),\n cost: z.string().describe(\"Total cost of the expense\"),\n date: z.string().describe(\"Date the expense occurred (ISO 8601)\"),\n users: z.array(SplitwiseCreateExpense_ExpenseUserSchema).describe(\"List of users involved in this expense with their shares\"),\n details: z.string().describe(\"Additional details or notes\").nullable().optional(),\n payment: z.boolean().describe(\"Whether this is a payment (vs. an expense)\"),\n receipt: SplitwiseCreateExpense_ReceiptSchema.nullable(),\n repeats: z.boolean().describe(\"Whether this expense repeats\"),\n category: SplitwiseCreateExpense_CategorySchema.nullable(),\n group_id: z.number().int().describe(\"Group ID, null if not in a group\").nullable().optional(),\n created_at: z.string().describe(\"Date the expense was created (ISO 8601)\"),\n created_by: SplitwiseCreateExpense_UserInfoSchema.nullable(),\n deleted_at: z.string().describe(\"Date the expense was deleted\").nullable().optional(),\n deleted_by: SplitwiseCreateExpense_UserInfoSchema.nullable().optional(),\n repayments: z.array(SplitwiseCreateExpense_RepaymentSchema).describe(\"List of repayments required to settle this expense\"),\n updated_at: z.string().describe(\"Date the expense was last updated (ISO 8601)\"),\n updated_by: SplitwiseCreateExpense_UserInfoSchema.nullable().optional(),\n description: z.string().describe(\"Expense description\"),\n next_repeat: z.string().describe(\"Date of next repeat\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., 'USD')\"),\n comments_count: z.number().int().describe(\"Number of comments on this expense\"),\n email_reminder: z.boolean().describe(\"Whether email reminders are enabled\"),\n transaction_id: z.string().describe(\"External transaction ID\").nullable().optional(),\n creation_method: z.string().describe(\"How the expense was created\").nullable().optional(),\n repeat_interval: z.string().describe(\"Repeat interval if applicable\").nullable().optional(),\n expense_bundle_id: z.number().int().describe(\"Bundle ID if part of a recurring expense\").nullable().optional(),\n transaction_method: z.string().describe(\"Transaction method (e.g., 'offline')\"),\n transaction_status: z.string().describe(\"Transaction status\").nullable().optional(),\n transaction_confirmed: z.boolean().describe(\"Whether the transaction is confirmed\"),\n email_reminder_in_advance: z.number().int().describe(\"Days in advance for email reminder\"),\n}).describe(\"Complete expense object with all details.\");\nexport const SplitwiseCreateExpenseOutput: z.ZodTypeAny = z.object({\n errors: z.object({}).describe(\"Errors returned by the API; empty if none\"),\n expenses: z.array(SplitwiseCreateExpense_ExpenseSchema).describe(\"List of created expense objects\"),\n}).describe(\"Response model for create_expense action.\");\n\nexport const splitwiseCreateExpense = action(\"SPLITWISE_CREATE_EXPENSE\", {\n slug: \"splitwise-create-expense\",\n name: \"Create Expense\",\n description: \"Tool to create a new Splitwise expense. Use when you need to record a payment or bill in a group or between users. Provide exactly one of split_equally or users for shares — supplying both or neither causes a validation error and no expense is created.\",\n input: SplitwiseCreateExpenseInput,\n output: SplitwiseCreateExpenseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC5H,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACtG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACvG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACtG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EACxG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG;EACxI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;CACtI,CAAC,CAAC,CAAC,SAAS,uNAAuN,CAAC,CAAC,CAAC,SAAS,wOAAwO,CAAC,CAAC,SAAS;CAChe,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,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import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseCreateExpenseInput = z.object({\n cost: z.string().describe(\"Total cost as string decimal (up to 2 decimal places)\"),\n date: z.string().describe(\"Date when the expense occurred (ISO 8601 format). Defaults to current time if omitted\").optional(),\n users: z.array(z.object({\n email: z.string().describe(\"Email address (required when adding new users without user_id)\").optional(),\n user_id: z.number().int().describe(\"Splitwise user ID of an existing friend or group member\").optional(),\n last_name: z.string().describe(\"Last name (required when adding new users without user_id)\").optional(),\n first_name: z.string().describe(\"First name (required when adding new users without user_id)\").optional(),\n owed_share: z.string().describe(\"Amount this participant owes for their portion of the expense (decimal string, up to 2 decimal places)\"),\n paid_share: z.string().describe(\"Amount this participant actually paid towards the expense (decimal string, up to 2 decimal places)\"),\n}).passthrough().describe(\"Represents a participant's share in an expense, specifying what they paid and what they owe.\\nMust include either user_id (for existing users) or all three fields: email, first_name, and last_name (for new users).\")).describe(\"List of participants with custom share amounts. Required when using custom splits instead of split_equally Each user object must include `paid_share` and `owed_share` as decimal strings with up to 2 decimal places (e.g., '25.00').\").optional(),\n details: z.string().describe(\"Additional notes or details about the expense\").optional(),\n group_id: z.number().int().describe(\"ID of the group to add this expense to. Use 0 for expenses between friends (not in a group)\"),\n category_id: z.number().int().describe(\"Expense category ID (use get_categories action to retrieve valid IDs). Defaults to 'General'\").optional(),\n description: z.string().describe(\"Brief description of what the expense is for\"),\n currency_code: z.string().describe(\"3-letter ISO currency code (e.g., USD, EUR, GBP). Defaults to user's default currency\").optional(),\n split_equally: z.boolean().describe(\"Set to true to split cost equally. When group_id=0, you must also provide users list to specify participants\").optional(),\n repeat_interval: z.enum([\"never\", \"weekly\", \"fortnightly\", \"monthly\", \"yearly\"]).describe(\"How often this expense repeats. Use 'never' or omit for one-time expenses\").optional(),\n}).describe(\"Request model for creating a new expense.\\nExactly one of split_equally or users must be provided.\");\nconst SplitwiseCreateExpense_PictureSchema = z.object({\n medium: z.string().describe(\"Medium-sized profile picture URL\").nullable().optional(),\n}).passthrough().describe(\"Profile picture URLs.\");\nconst SplitwiseCreateExpense_UserInfoSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable(),\n picture: SplitwiseCreateExpense_PictureSchema.nullable(),\n last_name: z.string().describe(\"User's last name\").nullable().optional(),\n first_name: z.string().describe(\"User's first name\").nullable(),\n custom_picture: z.boolean().describe(\"Whether the user has a custom picture\").nullable().optional(),\n}).passthrough().describe(\"Basic user information within an expense.\");\nconst SplitwiseCreateExpense_ExpenseUserSchema = z.object({\n user: SplitwiseCreateExpense_UserInfoSchema.nullable(),\n user_id: z.number().int().describe(\"User ID\").nullable(),\n owed_share: z.string().describe(\"Amount this user owes\").nullable(),\n paid_share: z.string().describe(\"Amount this user paid\").nullable(),\n net_balance: z.string().describe(\"Net balance for this user in the expense\").nullable(),\n}).passthrough().describe(\"User's share details in an expense.\");\nconst SplitwiseCreateExpense_ReceiptSchema = z.object({\n large: z.string().describe(\"Large receipt image URL\").nullable().optional(),\n original: z.string().describe(\"Original receipt image URL\").nullable().optional(),\n}).passthrough().describe(\"Receipt image URLs.\");\nconst SplitwiseCreateExpense_CategorySchema = z.object({\n id: z.number().int().describe(\"Category ID\").nullable(),\n name: z.string().describe(\"Category name\").nullable(),\n}).passthrough().describe(\"Expense category information.\");\nconst SplitwiseCreateExpense_RepaymentSchema = z.object({\n to: z.number().int().describe(\"User ID who is owed money\").nullable(),\n from: z.number().int().describe(\"User ID who owes money\").nullable(),\n amount: z.string().describe(\"Amount to be repaid\").nullable(),\n}).passthrough().describe(\"Repayment information showing who owes whom.\");\nconst SplitwiseCreateExpense_ExpenseSchema = z.object({\n id: z.number().int().describe(\"Unique expense ID\").nullable(),\n cost: z.string().describe(\"Total cost of the expense\").nullable(),\n date: z.string().describe(\"Date the expense occurred (ISO 8601)\").nullable(),\n users: z.array(SplitwiseCreateExpense_ExpenseUserSchema).describe(\"List of users involved in this expense with their shares\"),\n details: z.string().describe(\"Additional details or notes\").nullable().optional(),\n payment: z.boolean().describe(\"Whether this is a payment (vs. an expense)\").nullable(),\n receipt: SplitwiseCreateExpense_ReceiptSchema.nullable(),\n repeats: z.boolean().describe(\"Whether this expense repeats\").nullable(),\n category: SplitwiseCreateExpense_CategorySchema.nullable(),\n group_id: z.number().int().describe(\"Group ID, null if not in a group\").nullable().optional(),\n created_at: z.string().describe(\"Date the expense was created (ISO 8601)\").nullable(),\n created_by: SplitwiseCreateExpense_UserInfoSchema.nullable(),\n deleted_at: z.string().describe(\"Date the expense was deleted\").nullable().optional(),\n deleted_by: SplitwiseCreateExpense_UserInfoSchema.nullable().optional(),\n repayments: z.array(SplitwiseCreateExpense_RepaymentSchema).describe(\"List of repayments required to settle this expense\"),\n updated_at: z.string().describe(\"Date the expense was last updated (ISO 8601)\").nullable(),\n updated_by: SplitwiseCreateExpense_UserInfoSchema.nullable().optional(),\n description: z.string().describe(\"Expense description\").nullable(),\n next_repeat: z.string().describe(\"Date of next repeat\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., 'USD')\").nullable(),\n comments_count: z.number().int().describe(\"Number of comments on this expense\").nullable(),\n email_reminder: z.boolean().describe(\"Whether email reminders are enabled\").nullable(),\n transaction_id: z.string().describe(\"External transaction ID\").nullable().optional(),\n creation_method: z.string().describe(\"How the expense was created\").nullable().optional(),\n repeat_interval: z.string().describe(\"Repeat interval if applicable\").nullable().optional(),\n expense_bundle_id: z.number().int().describe(\"Bundle ID if part of a recurring expense\").nullable().optional(),\n transaction_method: z.string().describe(\"Transaction method (e.g., 'offline')\").nullable(),\n transaction_status: z.string().describe(\"Transaction status\").nullable().optional(),\n transaction_confirmed: z.boolean().describe(\"Whether the transaction is confirmed\").nullable(),\n email_reminder_in_advance: z.number().int().describe(\"Days in advance for email reminder\").nullable(),\n}).passthrough().describe(\"Complete expense object with all details.\");\nexport const SplitwiseCreateExpenseOutput = z.object({\n errors: z.record(z.string(), z.unknown()).describe(\"Errors returned by the API; empty if none\"),\n expenses: z.array(SplitwiseCreateExpense_ExpenseSchema).describe(\"List of created expense objects\"),\n}).passthrough().describe(\"Response model for create_expense action.\");\n\nexport const splitwiseCreateExpense = action(\"SPLITWISE_CREATE_EXPENSE\", {\n slug: \"splitwise-create-expense\",\n name: \"Create Expense\",\n description: \"Tool to create a new Splitwise expense. Use when you need to record a payment or bill in a group or between users. Provide exactly one of split_equally or users for shares — supplying both or neither causes a validation error and no expense is created.\",\n input: SplitwiseCreateExpenseInput,\n output: SplitwiseCreateExpenseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC5H,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACtG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACvG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACtG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EACxG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG;EACxI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;CACtI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uNAAuN,CAAC,CAAC,CAAC,SAAS,wOAAwO,CAAC,CAAC,SAAS;CAC9e,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC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AC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C;CAC9F,UAAUA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,iCAAiC;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,134 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-expense.d.ts
4
- declare const SplitwiseCreateExpenseInput: z.ZodTypeAny;
5
- declare const SplitwiseCreateExpenseOutput: z.ZodTypeAny;
6
- declare const splitwiseCreateExpense: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SplitwiseCreateExpenseInput: z.ZodObject<{
5
+ cost: z.ZodString;
6
+ date: z.ZodOptional<z.ZodString>;
7
+ users: z.ZodOptional<z.ZodArray<z.ZodObject<{
8
+ email: z.ZodOptional<z.ZodString>;
9
+ user_id: z.ZodOptional<z.ZodNumber>;
10
+ last_name: z.ZodOptional<z.ZodString>;
11
+ first_name: z.ZodOptional<z.ZodString>;
12
+ owed_share: z.ZodString;
13
+ paid_share: z.ZodString;
14
+ }, z.core.$loose>>>;
15
+ details: z.ZodOptional<z.ZodString>;
16
+ group_id: z.ZodNumber;
17
+ category_id: z.ZodOptional<z.ZodNumber>;
18
+ description: z.ZodString;
19
+ currency_code: z.ZodOptional<z.ZodString>;
20
+ split_equally: z.ZodOptional<z.ZodBoolean>;
21
+ repeat_interval: z.ZodOptional<z.ZodEnum<{
22
+ never: "never";
23
+ weekly: "weekly";
24
+ fortnightly: "fortnightly";
25
+ monthly: "monthly";
26
+ yearly: "yearly";
27
+ }>>;
28
+ }, z.core.$strip>;
29
+ declare const SplitwiseCreateExpenseOutput: z.ZodObject<{
30
+ errors: z.ZodRecord<z.ZodString, z.ZodUnknown>;
31
+ expenses: z.ZodArray<z.ZodObject<{
32
+ id: z.ZodNullable<z.ZodNumber>;
33
+ cost: z.ZodNullable<z.ZodString>;
34
+ date: z.ZodNullable<z.ZodString>;
35
+ users: z.ZodArray<z.ZodObject<{
36
+ user: z.ZodNullable<z.ZodObject<{
37
+ id: z.ZodNullable<z.ZodNumber>;
38
+ picture: z.ZodNullable<z.ZodObject<{
39
+ medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ }, z.core.$loose>>;
41
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ first_name: z.ZodNullable<z.ZodString>;
43
+ custom_picture: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
44
+ }, z.core.$loose>>;
45
+ user_id: z.ZodNullable<z.ZodNumber>;
46
+ owed_share: z.ZodNullable<z.ZodString>;
47
+ paid_share: z.ZodNullable<z.ZodString>;
48
+ net_balance: z.ZodNullable<z.ZodString>;
49
+ }, z.core.$loose>>;
50
+ details: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ payment: z.ZodNullable<z.ZodBoolean>;
52
+ receipt: z.ZodNullable<z.ZodObject<{
53
+ large: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ original: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ }, z.core.$loose>>;
56
+ repeats: z.ZodNullable<z.ZodBoolean>;
57
+ category: z.ZodNullable<z.ZodObject<{
58
+ id: z.ZodNullable<z.ZodNumber>;
59
+ name: z.ZodNullable<z.ZodString>;
60
+ }, z.core.$loose>>;
61
+ group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
62
+ created_at: z.ZodNullable<z.ZodString>;
63
+ created_by: z.ZodNullable<z.ZodObject<{
64
+ id: z.ZodNullable<z.ZodNumber>;
65
+ picture: z.ZodNullable<z.ZodObject<{
66
+ medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ }, z.core.$loose>>;
68
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ first_name: z.ZodNullable<z.ZodString>;
70
+ custom_picture: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
71
+ }, z.core.$loose>>;
72
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ deleted_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
74
+ id: z.ZodNullable<z.ZodNumber>;
75
+ picture: z.ZodNullable<z.ZodObject<{
76
+ medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ }, z.core.$loose>>;
78
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ first_name: z.ZodNullable<z.ZodString>;
80
+ custom_picture: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
81
+ }, z.core.$loose>>>;
82
+ repayments: z.ZodArray<z.ZodObject<{
83
+ to: z.ZodNullable<z.ZodNumber>;
84
+ from: z.ZodNullable<z.ZodNumber>;
85
+ amount: z.ZodNullable<z.ZodString>;
86
+ }, z.core.$loose>>;
87
+ updated_at: z.ZodNullable<z.ZodString>;
88
+ updated_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
89
+ id: z.ZodNullable<z.ZodNumber>;
90
+ picture: z.ZodNullable<z.ZodObject<{
91
+ medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ }, z.core.$loose>>;
93
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ first_name: z.ZodNullable<z.ZodString>;
95
+ custom_picture: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
96
+ }, z.core.$loose>>>;
97
+ description: z.ZodNullable<z.ZodString>;
98
+ next_repeat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ currency_code: z.ZodNullable<z.ZodString>;
100
+ comments_count: z.ZodNullable<z.ZodNumber>;
101
+ email_reminder: z.ZodNullable<z.ZodBoolean>;
102
+ transaction_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ creation_method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
+ repeat_interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ expense_bundle_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
106
+ transaction_method: z.ZodNullable<z.ZodString>;
107
+ transaction_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ transaction_confirmed: z.ZodNullable<z.ZodBoolean>;
109
+ email_reminder_in_advance: z.ZodNullable<z.ZodNumber>;
110
+ }, z.core.$loose>>;
111
+ }, z.core.$loose>;
112
+ declare const splitwiseCreateExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
113
+ cost: string;
114
+ group_id: number;
115
+ description: string;
116
+ date?: string | undefined;
117
+ users?: {
118
+ [x: string]: unknown;
119
+ owed_share: string;
120
+ paid_share: string;
121
+ email?: string | undefined;
122
+ user_id?: number | undefined;
123
+ last_name?: string | undefined;
124
+ first_name?: string | undefined;
125
+ }[] | undefined;
126
+ details?: string | undefined;
127
+ category_id?: number | undefined;
128
+ currency_code?: string | undefined;
129
+ split_equally?: boolean | undefined;
130
+ repeat_interval?: "never" | "weekly" | "fortnightly" | "monthly" | "yearly" | undefined;
131
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
132
  //#endregion
8
133
  export { splitwiseCreateExpense };
9
134
  //# sourceMappingURL=create-expense.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-expense.d.cts","names":[],"sources":["../../src/actions/create-expense.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAkBqE;AAAA,cA+DpG,4BAAA,EAA8B,CAAA,CAAE,UAGW;AAAA,cAE3C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-expense.d.cts","names":[],"sources":["../../src/actions/create-expense.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAiF3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,134 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-expense.d.ts
4
- declare const SplitwiseCreateExpenseInput: z.ZodTypeAny;
5
- declare const SplitwiseCreateExpenseOutput: z.ZodTypeAny;
6
- declare const splitwiseCreateExpense: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const SplitwiseCreateExpenseInput: z.ZodObject<{
5
+ cost: z.ZodString;
6
+ date: z.ZodOptional<z.ZodString>;
7
+ users: z.ZodOptional<z.ZodArray<z.ZodObject<{
8
+ email: z.ZodOptional<z.ZodString>;
9
+ user_id: z.ZodOptional<z.ZodNumber>;
10
+ last_name: z.ZodOptional<z.ZodString>;
11
+ first_name: z.ZodOptional<z.ZodString>;
12
+ owed_share: z.ZodString;
13
+ paid_share: z.ZodString;
14
+ }, z.core.$loose>>>;
15
+ details: z.ZodOptional<z.ZodString>;
16
+ group_id: z.ZodNumber;
17
+ category_id: z.ZodOptional<z.ZodNumber>;
18
+ description: z.ZodString;
19
+ currency_code: z.ZodOptional<z.ZodString>;
20
+ split_equally: z.ZodOptional<z.ZodBoolean>;
21
+ repeat_interval: z.ZodOptional<z.ZodEnum<{
22
+ never: "never";
23
+ weekly: "weekly";
24
+ fortnightly: "fortnightly";
25
+ monthly: "monthly";
26
+ yearly: "yearly";
27
+ }>>;
28
+ }, z.core.$strip>;
29
+ declare const SplitwiseCreateExpenseOutput: z.ZodObject<{
30
+ errors: z.ZodRecord<z.ZodString, z.ZodUnknown>;
31
+ expenses: z.ZodArray<z.ZodObject<{
32
+ id: z.ZodNullable<z.ZodNumber>;
33
+ cost: z.ZodNullable<z.ZodString>;
34
+ date: z.ZodNullable<z.ZodString>;
35
+ users: z.ZodArray<z.ZodObject<{
36
+ user: z.ZodNullable<z.ZodObject<{
37
+ id: z.ZodNullable<z.ZodNumber>;
38
+ picture: z.ZodNullable<z.ZodObject<{
39
+ medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ }, z.core.$loose>>;
41
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ first_name: z.ZodNullable<z.ZodString>;
43
+ custom_picture: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
44
+ }, z.core.$loose>>;
45
+ user_id: z.ZodNullable<z.ZodNumber>;
46
+ owed_share: z.ZodNullable<z.ZodString>;
47
+ paid_share: z.ZodNullable<z.ZodString>;
48
+ net_balance: z.ZodNullable<z.ZodString>;
49
+ }, z.core.$loose>>;
50
+ details: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ payment: z.ZodNullable<z.ZodBoolean>;
52
+ receipt: z.ZodNullable<z.ZodObject<{
53
+ large: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ original: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ }, z.core.$loose>>;
56
+ repeats: z.ZodNullable<z.ZodBoolean>;
57
+ category: z.ZodNullable<z.ZodObject<{
58
+ id: z.ZodNullable<z.ZodNumber>;
59
+ name: z.ZodNullable<z.ZodString>;
60
+ }, z.core.$loose>>;
61
+ group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
62
+ created_at: z.ZodNullable<z.ZodString>;
63
+ created_by: z.ZodNullable<z.ZodObject<{
64
+ id: z.ZodNullable<z.ZodNumber>;
65
+ picture: z.ZodNullable<z.ZodObject<{
66
+ medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ }, z.core.$loose>>;
68
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ first_name: z.ZodNullable<z.ZodString>;
70
+ custom_picture: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
71
+ }, z.core.$loose>>;
72
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ deleted_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
74
+ id: z.ZodNullable<z.ZodNumber>;
75
+ picture: z.ZodNullable<z.ZodObject<{
76
+ medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ }, z.core.$loose>>;
78
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ first_name: z.ZodNullable<z.ZodString>;
80
+ custom_picture: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
81
+ }, z.core.$loose>>>;
82
+ repayments: z.ZodArray<z.ZodObject<{
83
+ to: z.ZodNullable<z.ZodNumber>;
84
+ from: z.ZodNullable<z.ZodNumber>;
85
+ amount: z.ZodNullable<z.ZodString>;
86
+ }, z.core.$loose>>;
87
+ updated_at: z.ZodNullable<z.ZodString>;
88
+ updated_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
89
+ id: z.ZodNullable<z.ZodNumber>;
90
+ picture: z.ZodNullable<z.ZodObject<{
91
+ medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ }, z.core.$loose>>;
93
+ last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ first_name: z.ZodNullable<z.ZodString>;
95
+ custom_picture: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
96
+ }, z.core.$loose>>>;
97
+ description: z.ZodNullable<z.ZodString>;
98
+ next_repeat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ currency_code: z.ZodNullable<z.ZodString>;
100
+ comments_count: z.ZodNullable<z.ZodNumber>;
101
+ email_reminder: z.ZodNullable<z.ZodBoolean>;
102
+ transaction_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ creation_method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
+ repeat_interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ expense_bundle_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
106
+ transaction_method: z.ZodNullable<z.ZodString>;
107
+ transaction_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ transaction_confirmed: z.ZodNullable<z.ZodBoolean>;
109
+ email_reminder_in_advance: z.ZodNullable<z.ZodNumber>;
110
+ }, z.core.$loose>>;
111
+ }, z.core.$loose>;
112
+ declare const splitwiseCreateExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
113
+ cost: string;
114
+ group_id: number;
115
+ description: string;
116
+ date?: string | undefined;
117
+ users?: {
118
+ [x: string]: unknown;
119
+ owed_share: string;
120
+ paid_share: string;
121
+ email?: string | undefined;
122
+ user_id?: number | undefined;
123
+ last_name?: string | undefined;
124
+ first_name?: string | undefined;
125
+ }[] | undefined;
126
+ details?: string | undefined;
127
+ category_id?: number | undefined;
128
+ currency_code?: string | undefined;
129
+ split_equally?: boolean | undefined;
130
+ repeat_interval?: "never" | "weekly" | "fortnightly" | "monthly" | "yearly" | undefined;
131
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
132
  //#endregion
8
133
  export { splitwiseCreateExpense };
9
134
  //# sourceMappingURL=create-expense.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-expense.d.mts","names":[],"sources":["../../src/actions/create-expense.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAkBqE;AAAA,cA+DpG,4BAAA,EAA8B,CAAA,CAAE,UAGW;AAAA,cAE3C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-expense.d.mts","names":[],"sources":["../../src/actions/create-expense.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAiF3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}