@keystrokehq/splitwise 0.1.0
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.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-friend.cjs +46 -0
- package/dist/actions/add-friend.cjs.map +1 -0
- package/dist/actions/add-friend.d.cts +9 -0
- package/dist/actions/add-friend.d.cts.map +1 -0
- package/dist/actions/add-friend.d.mts +9 -0
- package/dist/actions/add-friend.d.mts.map +1 -0
- package/dist/actions/add-friend.mjs +45 -0
- package/dist/actions/add-friend.mjs.map +1 -0
- package/dist/actions/add-user-to-group.cjs +38 -0
- package/dist/actions/add-user-to-group.cjs.map +1 -0
- package/dist/actions/add-user-to-group.d.cts +9 -0
- package/dist/actions/add-user-to-group.d.cts.map +1 -0
- package/dist/actions/add-user-to-group.d.mts +9 -0
- package/dist/actions/add-user-to-group.d.mts.map +1 -0
- package/dist/actions/add-user-to-group.mjs +37 -0
- package/dist/actions/add-user-to-group.mjs.map +1 -0
- package/dist/actions/create-comment.cjs +42 -0
- package/dist/actions/create-comment.cjs.map +1 -0
- package/dist/actions/create-comment.d.cts +9 -0
- package/dist/actions/create-comment.d.cts.map +1 -0
- package/dist/actions/create-comment.d.mts +9 -0
- package/dist/actions/create-comment.d.mts.map +1 -0
- package/dist/actions/create-comment.mjs +41 -0
- package/dist/actions/create-comment.mjs.map +1 -0
- package/dist/actions/create-expense.cjs +103 -0
- package/dist/actions/create-expense.cjs.map +1 -0
- package/dist/actions/create-expense.d.cts +9 -0
- package/dist/actions/create-expense.d.cts.map +1 -0
- package/dist/actions/create-expense.d.mts +9 -0
- package/dist/actions/create-expense.d.mts.map +1 -0
- package/dist/actions/create-expense.mjs +102 -0
- package/dist/actions/create-expense.mjs.map +1 -0
- package/dist/actions/create-friends.cjs +48 -0
- package/dist/actions/create-friends.cjs.map +1 -0
- package/dist/actions/create-friends.d.cts +9 -0
- package/dist/actions/create-friends.d.cts.map +1 -0
- package/dist/actions/create-friends.d.mts +9 -0
- package/dist/actions/create-friends.d.mts.map +1 -0
- package/dist/actions/create-friends.mjs +47 -0
- package/dist/actions/create-friends.mjs.map +1 -0
- package/dist/actions/create-group.cjs +84 -0
- package/dist/actions/create-group.cjs.map +1 -0
- package/dist/actions/create-group.d.cts +9 -0
- package/dist/actions/create-group.d.cts.map +1 -0
- package/dist/actions/create-group.d.mts +9 -0
- package/dist/actions/create-group.d.mts.map +1 -0
- package/dist/actions/create-group.mjs +83 -0
- package/dist/actions/create-group.mjs.map +1 -0
- package/dist/actions/delete-comment.cjs +40 -0
- package/dist/actions/delete-comment.cjs.map +1 -0
- package/dist/actions/delete-comment.d.cts +9 -0
- package/dist/actions/delete-comment.d.cts.map +1 -0
- package/dist/actions/delete-comment.d.mts +9 -0
- package/dist/actions/delete-comment.d.mts.map +1 -0
- package/dist/actions/delete-comment.mjs +39 -0
- package/dist/actions/delete-comment.mjs.map +1 -0
- package/dist/actions/delete-expense.cjs +19 -0
- package/dist/actions/delete-expense.cjs.map +1 -0
- package/dist/actions/delete-expense.d.cts +9 -0
- package/dist/actions/delete-expense.d.cts.map +1 -0
- package/dist/actions/delete-expense.d.mts +9 -0
- package/dist/actions/delete-expense.d.mts.map +1 -0
- package/dist/actions/delete-expense.mjs +16 -0
- package/dist/actions/delete-expense.mjs.map +1 -0
- package/dist/actions/delete-friend.cjs +19 -0
- package/dist/actions/delete-friend.cjs.map +1 -0
- package/dist/actions/delete-friend.d.cts +9 -0
- package/dist/actions/delete-friend.d.cts.map +1 -0
- package/dist/actions/delete-friend.d.mts +9 -0
- package/dist/actions/delete-friend.d.mts.map +1 -0
- package/dist/actions/delete-friend.mjs +16 -0
- package/dist/actions/delete-friend.mjs.map +1 -0
- package/dist/actions/delete-group.cjs +19 -0
- package/dist/actions/delete-group.cjs.map +1 -0
- package/dist/actions/delete-group.d.cts +9 -0
- package/dist/actions/delete-group.d.cts.map +1 -0
- package/dist/actions/delete-group.d.mts +9 -0
- package/dist/actions/delete-group.d.mts.map +1 -0
- package/dist/actions/delete-group.mjs +16 -0
- package/dist/actions/delete-group.mjs.map +1 -0
- package/dist/actions/get-categories.cjs +25 -0
- package/dist/actions/get-categories.cjs.map +1 -0
- package/dist/actions/get-categories.d.cts +9 -0
- package/dist/actions/get-categories.d.cts.map +1 -0
- package/dist/actions/get-categories.d.mts +9 -0
- package/dist/actions/get-categories.d.mts.map +1 -0
- package/dist/actions/get-categories.mjs +24 -0
- package/dist/actions/get-categories.mjs.map +1 -0
- package/dist/actions/get-comments.cjs +40 -0
- package/dist/actions/get-comments.cjs.map +1 -0
- package/dist/actions/get-comments.d.cts +9 -0
- package/dist/actions/get-comments.d.cts.map +1 -0
- package/dist/actions/get-comments.d.mts +9 -0
- package/dist/actions/get-comments.d.mts.map +1 -0
- package/dist/actions/get-comments.mjs +39 -0
- package/dist/actions/get-comments.mjs.map +1 -0
- package/dist/actions/get-currencies.cjs +20 -0
- package/dist/actions/get-currencies.cjs.map +1 -0
- package/dist/actions/get-currencies.d.cts +9 -0
- package/dist/actions/get-currencies.d.cts.map +1 -0
- package/dist/actions/get-currencies.d.mts +9 -0
- package/dist/actions/get-currencies.d.mts.map +1 -0
- package/dist/actions/get-currencies.mjs +19 -0
- package/dist/actions/get-currencies.mjs.map +1 -0
- package/dist/actions/get-current-user.cjs +49 -0
- package/dist/actions/get-current-user.cjs.map +1 -0
- package/dist/actions/get-current-user.d.cts +9 -0
- package/dist/actions/get-current-user.d.cts.map +1 -0
- package/dist/actions/get-current-user.d.mts +9 -0
- package/dist/actions/get-current-user.d.mts.map +1 -0
- package/dist/actions/get-current-user.mjs +48 -0
- package/dist/actions/get-current-user.mjs.map +1 -0
- package/dist/actions/get-expense.cjs +91 -0
- package/dist/actions/get-expense.cjs.map +1 -0
- package/dist/actions/get-expense.d.cts +9 -0
- package/dist/actions/get-expense.d.cts.map +1 -0
- package/dist/actions/get-expense.d.mts +9 -0
- package/dist/actions/get-expense.d.mts.map +1 -0
- package/dist/actions/get-expense.mjs +90 -0
- package/dist/actions/get-expense.mjs.map +1 -0
- package/dist/actions/get-expenses.cjs +101 -0
- package/dist/actions/get-expenses.cjs.map +1 -0
- package/dist/actions/get-expenses.d.cts +9 -0
- package/dist/actions/get-expenses.d.cts.map +1 -0
- package/dist/actions/get-expenses.d.mts +9 -0
- package/dist/actions/get-expenses.d.mts.map +1 -0
- package/dist/actions/get-expenses.mjs +100 -0
- package/dist/actions/get-expenses.mjs.map +1 -0
- package/dist/actions/get-friend.cjs +41 -0
- package/dist/actions/get-friend.cjs.map +1 -0
- package/dist/actions/get-friend.d.cts +9 -0
- package/dist/actions/get-friend.d.cts.map +1 -0
- package/dist/actions/get-friend.d.mts +9 -0
- package/dist/actions/get-friend.d.mts.map +1 -0
- package/dist/actions/get-friend.mjs +40 -0
- package/dist/actions/get-friend.mjs.map +1 -0
- package/dist/actions/get-friends.cjs +41 -0
- package/dist/actions/get-friends.cjs.map +1 -0
- package/dist/actions/get-friends.d.cts +9 -0
- package/dist/actions/get-friends.d.cts.map +1 -0
- package/dist/actions/get-friends.d.mts +9 -0
- package/dist/actions/get-friends.d.mts.map +1 -0
- package/dist/actions/get-friends.mjs +40 -0
- package/dist/actions/get-friends.mjs.map +1 -0
- package/dist/actions/get-group.cjs +78 -0
- package/dist/actions/get-group.cjs.map +1 -0
- package/dist/actions/get-group.d.cts +9 -0
- package/dist/actions/get-group.d.cts.map +1 -0
- package/dist/actions/get-group.d.mts +9 -0
- package/dist/actions/get-group.d.mts.map +1 -0
- package/dist/actions/get-group.mjs +77 -0
- package/dist/actions/get-group.mjs.map +1 -0
- package/dist/actions/get-groups.cjs +77 -0
- package/dist/actions/get-groups.cjs.map +1 -0
- package/dist/actions/get-groups.d.cts +9 -0
- package/dist/actions/get-groups.d.cts.map +1 -0
- package/dist/actions/get-groups.d.mts +9 -0
- package/dist/actions/get-groups.d.mts.map +1 -0
- package/dist/actions/get-groups.mjs +76 -0
- package/dist/actions/get-groups.mjs.map +1 -0
- package/dist/actions/get-notifications.cjs +34 -0
- package/dist/actions/get-notifications.cjs.map +1 -0
- package/dist/actions/get-notifications.d.cts +9 -0
- package/dist/actions/get-notifications.d.cts.map +1 -0
- package/dist/actions/get-notifications.d.mts +9 -0
- package/dist/actions/get-notifications.d.mts.map +1 -0
- package/dist/actions/get-notifications.mjs +33 -0
- package/dist/actions/get-notifications.mjs.map +1 -0
- package/dist/actions/get-user.cjs +30 -0
- package/dist/actions/get-user.cjs.map +1 -0
- package/dist/actions/get-user.d.cts +9 -0
- package/dist/actions/get-user.d.cts.map +1 -0
- package/dist/actions/get-user.d.mts +9 -0
- package/dist/actions/get-user.d.mts.map +1 -0
- package/dist/actions/get-user.mjs +29 -0
- package/dist/actions/get-user.mjs.map +1 -0
- package/dist/actions/index.cjs +55 -0
- package/dist/actions/index.d.cts +28 -0
- package/dist/actions/index.d.mts +28 -0
- package/dist/actions/index.mjs +28 -0
- package/dist/actions/remove-user-from-group.cjs +22 -0
- package/dist/actions/remove-user-from-group.cjs.map +1 -0
- package/dist/actions/remove-user-from-group.d.cts +9 -0
- package/dist/actions/remove-user-from-group.d.cts.map +1 -0
- package/dist/actions/remove-user-from-group.d.mts +9 -0
- package/dist/actions/remove-user-from-group.d.mts.map +1 -0
- package/dist/actions/remove-user-from-group.mjs +19 -0
- package/dist/actions/remove-user-from-group.mjs.map +1 -0
- package/dist/actions/undelete-expense.cjs +19 -0
- package/dist/actions/undelete-expense.cjs.map +1 -0
- package/dist/actions/undelete-expense.d.cts +9 -0
- package/dist/actions/undelete-expense.d.cts.map +1 -0
- package/dist/actions/undelete-expense.d.mts +9 -0
- package/dist/actions/undelete-expense.d.mts.map +1 -0
- package/dist/actions/undelete-expense.mjs +16 -0
- package/dist/actions/undelete-expense.mjs.map +1 -0
- package/dist/actions/undelete-group.cjs +19 -0
- package/dist/actions/undelete-group.cjs.map +1 -0
- package/dist/actions/undelete-group.d.cts +9 -0
- package/dist/actions/undelete-group.d.cts.map +1 -0
- package/dist/actions/undelete-group.d.mts +9 -0
- package/dist/actions/undelete-group.d.mts.map +1 -0
- package/dist/actions/undelete-group.mjs +16 -0
- package/dist/actions/undelete-group.mjs.map +1 -0
- package/dist/actions/update-expense.cjs +43 -0
- package/dist/actions/update-expense.cjs.map +1 -0
- package/dist/actions/update-expense.d.cts +9 -0
- package/dist/actions/update-expense.d.cts.map +1 -0
- package/dist/actions/update-expense.d.mts +9 -0
- package/dist/actions/update-expense.d.mts.map +1 -0
- package/dist/actions/update-expense.mjs +40 -0
- package/dist/actions/update-expense.mjs.map +1 -0
- package/dist/actions/update-user.cjs +57 -0
- package/dist/actions/update-user.cjs.map +1 -0
- package/dist/actions/update-user.d.cts +9 -0
- package/dist/actions/update-user.d.cts.map +1 -0
- package/dist/actions/update-user.d.mts +9 -0
- package/dist/actions/update-user.d.mts.map +1 -0
- package/dist/actions/update-user.mjs +56 -0
- package/dist/actions/update-user.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +60 -0
- package/dist/index.d.cts +30 -0
- package/dist/index.d.mts +30 -0
- package/dist/index.mjs +31 -0
- package/package.json +49 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-comments.ts
|
|
4
|
+
const SplitwiseGetCommentsInput = z.object({ expense_id: z.number().int().describe("The ID of the expense for which to retrieve comments.") }).describe("Request model for retrieving expense comments.");
|
|
5
|
+
const SplitwiseGetComments_PictureSchema = z.object({
|
|
6
|
+
large: z.string().describe("URL for large-sized profile picture.").nullable().optional(),
|
|
7
|
+
small: z.string().describe("URL for small-sized profile picture.").nullable().optional(),
|
|
8
|
+
medium: z.string().describe("URL for medium-sized profile picture.").nullable().optional()
|
|
9
|
+
}).describe("URLs for user profile pictures in different sizes.");
|
|
10
|
+
const SplitwiseGetComments_UserObjectSchema = z.object({
|
|
11
|
+
id: z.number().int().describe("User ID."),
|
|
12
|
+
email: z.string().describe("User's email address.").nullable().optional(),
|
|
13
|
+
picture: SplitwiseGetComments_PictureSchema.nullable().optional(),
|
|
14
|
+
last_name: z.string().describe("User's last name.").nullable().optional(),
|
|
15
|
+
first_name: z.string().describe("User's first name.").nullable().optional(),
|
|
16
|
+
custom_picture: z.boolean().describe("Whether user has custom picture.").nullable().optional(),
|
|
17
|
+
registration_status: z.string().describe("Registration status.").nullable().optional()
|
|
18
|
+
}).describe("Represents a user object in the comment.");
|
|
19
|
+
const SplitwiseGetComments_CommentObjectSchema = z.object({
|
|
20
|
+
id: z.number().int().describe("Unique comment identifier."),
|
|
21
|
+
user: SplitwiseGetComments_UserObjectSchema.nullable(),
|
|
22
|
+
content: z.string().describe("The text content of the comment."),
|
|
23
|
+
created_at: z.string().describe("Timestamp when the comment was created."),
|
|
24
|
+
deleted_at: z.string().describe("Timestamp when the comment was deleted (null if not deleted).").nullable().optional(),
|
|
25
|
+
relation_id: z.number().int().describe("ID of the subject of the comment (the expense ID)."),
|
|
26
|
+
comment_type: z.string().describe("Type of comment. Can be 'System' for system-generated comments or 'User' for user-authored messages."),
|
|
27
|
+
relation_type: z.string().describe("Subject type of the comment. Typically 'ExpenseComment'.")
|
|
28
|
+
}).describe("Represents a comment object associated with an expense.");
|
|
29
|
+
const splitwiseGetComments = action("SPLITWISE_GET_COMMENTS", {
|
|
30
|
+
slug: "splitwise-get-comments",
|
|
31
|
+
name: "Get Comments",
|
|
32
|
+
description: "Tool to retrieve all comments associated with a specific expense. Use when you need to view comments on an expense, including both system-generated updates and user-authored messages.",
|
|
33
|
+
input: SplitwiseGetCommentsInput,
|
|
34
|
+
output: z.object({ comments: z.array(SplitwiseGetComments_CommentObjectSchema).describe("Array of comment objects associated with the expense.") }).describe("Response model for retrieving expense comments.")
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { splitwiseGetComments };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=get-comments.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-comments.mjs","names":[],"sources":["../../src/actions/get-comments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetCommentsInput: z.ZodTypeAny = z.object({\n expense_id: z.number().int().describe(\"The ID of the expense for which to retrieve comments.\"),\n}).describe(\"Request model for retrieving expense comments.\");\nconst SplitwiseGetComments_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 SplitwiseGetComments_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: SplitwiseGetComments_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.\");\nconst SplitwiseGetComments_CommentObjectSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique comment identifier.\"),\n user: SplitwiseGetComments_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(\"Represents a comment object associated with an expense.\");\nexport const SplitwiseGetCommentsOutput: z.ZodTypeAny = z.object({\n comments: z.array(SplitwiseGetComments_CommentObjectSchema).describe(\"Array of comment objects associated with the expense.\"),\n}).describe(\"Response model for retrieving expense comments.\");\n\nexport const splitwiseGetComments = action(\"SPLITWISE_GET_COMMENTS\", {\n slug: \"splitwise-get-comments\",\n name: \"Get Comments\",\n description: \"Tool to retrieve all comments associated with a specific expense. Use when you need to view comments on an expense, including both system-generated updates and user-authored messages.\",\n input: SplitwiseGetCommentsInput,\n output: SplitwiseGetCommentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO,EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,EAC/F,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,qCAAmD,EAAE,OAAO;CAChE,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,CA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O,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsD,EAAE,OAAO,EAC/D,UAAU,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,uDAAuD,EAC9H,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-currencies.ts
|
|
4
|
+
const SplitwiseGetCurrenciesInput = zod.z.object({}).describe("Request schema for fetching supported currencies. No parameters required.");
|
|
5
|
+
const SplitwiseGetCurrencies_CurrencySchema = zod.z.object({
|
|
6
|
+
unit: zod.z.string().describe("Currency symbol or unit representation, e.g., '$', 'R$'"),
|
|
7
|
+
currency_code: zod.z.string().describe("ISO 4217 currency code or unofficial variant, e.g., 'USD', 'BTC'")
|
|
8
|
+
}).describe("Represents a supported currency.");
|
|
9
|
+
const SplitwiseGetCurrenciesOutput = zod.z.object({ currencies: zod.z.array(SplitwiseGetCurrencies_CurrencySchema).describe("List of supported currencies") }).describe("Response schema for supported currencies list.");
|
|
10
|
+
const splitwiseGetCurrencies = require_action.action("SPLITWISE_GET_CURRENCIES", {
|
|
11
|
+
slug: "splitwise-get-currencies",
|
|
12
|
+
name: "Get Currencies",
|
|
13
|
+
description: "Tool to retrieve a list of supported currencies. Use when you need to display or validate currency options.",
|
|
14
|
+
input: SplitwiseGetCurrenciesInput,
|
|
15
|
+
output: SplitwiseGetCurrenciesOutput
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.splitwiseGetCurrencies = splitwiseGetCurrencies;
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=get-currencies.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-currencies.cjs","names":["z","action"],"sources":["../../src/actions/get-currencies.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetCurrenciesInput: z.ZodTypeAny = z.object({}).describe(\"Request schema for fetching supported currencies. No parameters required.\");\nconst SplitwiseGetCurrencies_CurrencySchema: z.ZodTypeAny = z.object({\n unit: z.string().describe(\"Currency symbol or unit representation, e.g., '$', 'R$'\"),\n currency_code: z.string().describe(\"ISO 4217 currency code or unofficial variant, e.g., 'USD', 'BTC'\"),\n}).describe(\"Represents a supported currency.\");\nexport const SplitwiseGetCurrenciesOutput: z.ZodTypeAny = z.object({\n currencies: z.array(SplitwiseGetCurrencies_CurrencySchema).describe(\"List of supported currencies\"),\n}).describe(\"Response schema for supported currencies list.\");\n\nexport const splitwiseGetCurrencies = action(\"SPLITWISE_GET_CURRENCIES\", {\n slug: \"splitwise-get-currencies\",\n name: \"Get Currencies\",\n description: \"Tool to retrieve a list of supported currencies. Use when you need to display or validate currency options.\",\n input: SplitwiseGetCurrenciesInput,\n output: SplitwiseGetCurrenciesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAC1J,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACnF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;AACvG,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,YAAYA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,8BAA8B,EACpG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-currencies.d.ts
|
|
4
|
+
declare const SplitwiseGetCurrenciesInput: z.ZodTypeAny;
|
|
5
|
+
declare const SplitwiseGetCurrenciesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const splitwiseGetCurrencies: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { splitwiseGetCurrencies };
|
|
9
|
+
//# sourceMappingURL=get-currencies.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-currencies.d.cts","names":[],"sources":["../../src/actions/get-currencies.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAA+G;AAAA,cAK9I,4BAAA,EAA8B,CAAA,CAAE,UAEgB;AAAA,cAEhD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-currencies.d.ts
|
|
4
|
+
declare const SplitwiseGetCurrenciesInput: z.ZodTypeAny;
|
|
5
|
+
declare const SplitwiseGetCurrenciesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const splitwiseGetCurrencies: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { splitwiseGetCurrencies };
|
|
9
|
+
//# sourceMappingURL=get-currencies.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-currencies.d.mts","names":[],"sources":["../../src/actions/get-currencies.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAA+G;AAAA,cAK9I,4BAAA,EAA8B,CAAA,CAAE,UAEgB;AAAA,cAEhD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-currencies.ts
|
|
4
|
+
const SplitwiseGetCurrenciesInput = z.object({}).describe("Request schema for fetching supported currencies. No parameters required.");
|
|
5
|
+
const SplitwiseGetCurrencies_CurrencySchema = z.object({
|
|
6
|
+
unit: z.string().describe("Currency symbol or unit representation, e.g., '$', 'R$'"),
|
|
7
|
+
currency_code: z.string().describe("ISO 4217 currency code or unofficial variant, e.g., 'USD', 'BTC'")
|
|
8
|
+
}).describe("Represents a supported currency.");
|
|
9
|
+
const splitwiseGetCurrencies = action("SPLITWISE_GET_CURRENCIES", {
|
|
10
|
+
slug: "splitwise-get-currencies",
|
|
11
|
+
name: "Get Currencies",
|
|
12
|
+
description: "Tool to retrieve a list of supported currencies. Use when you need to display or validate currency options.",
|
|
13
|
+
input: SplitwiseGetCurrenciesInput,
|
|
14
|
+
output: z.object({ currencies: z.array(SplitwiseGetCurrencies_CurrencySchema).describe("List of supported currencies") }).describe("Response schema for supported currencies list.")
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { splitwiseGetCurrencies };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=get-currencies.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-currencies.mjs","names":[],"sources":["../../src/actions/get-currencies.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetCurrenciesInput: z.ZodTypeAny = z.object({}).describe(\"Request schema for fetching supported currencies. No parameters required.\");\nconst SplitwiseGetCurrencies_CurrencySchema: z.ZodTypeAny = z.object({\n unit: z.string().describe(\"Currency symbol or unit representation, e.g., '$', 'R$'\"),\n currency_code: z.string().describe(\"ISO 4217 currency code or unofficial variant, e.g., 'USD', 'BTC'\"),\n}).describe(\"Represents a supported currency.\");\nexport const SplitwiseGetCurrenciesOutput: z.ZodTypeAny = z.object({\n currencies: z.array(SplitwiseGetCurrencies_CurrencySchema).describe(\"List of supported currencies\"),\n}).describe(\"Response schema for supported currencies list.\");\n\nexport const splitwiseGetCurrencies = action(\"SPLITWISE_GET_CURRENCIES\", {\n slug: \"splitwise-get-currencies\",\n name: \"Get Currencies\",\n description: \"Tool to retrieve a list of supported currencies. Use when you need to display or validate currency options.\",\n input: SplitwiseGetCurrenciesInput,\n output: SplitwiseGetCurrenciesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAC1J,MAAM,wCAAsD,EAAE,OAAO;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACnF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;AACvG,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAK9C,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwD,EAAE,OAAO,EACjE,YAAY,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,8BAA8B,EACpG,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-current-user.ts
|
|
4
|
+
const SplitwiseGetCurrentUserInput = zod.z.object({}).describe("Request schema for retrieving current user info. No parameters required.");
|
|
5
|
+
const SplitwiseGetCurrentUser_PictureSchema = zod.z.object({
|
|
6
|
+
large: zod.z.string().describe("URL for the large-sized profile picture."),
|
|
7
|
+
small: zod.z.string().describe("URL for the small-sized profile picture."),
|
|
8
|
+
medium: zod.z.string().describe("URL for the medium-sized profile picture.")
|
|
9
|
+
}).describe("URLs for the user's profile picture in different sizes.");
|
|
10
|
+
const SplitwiseGetCurrentUser_NotificationsSchema = zod.z.object({
|
|
11
|
+
bills: zod.z.boolean().describe("Notify about bills."),
|
|
12
|
+
payments: zod.z.boolean().describe("Notify about payments."),
|
|
13
|
+
announcements: zod.z.boolean().describe("Notify about announcements."),
|
|
14
|
+
expense_added: zod.z.boolean().describe("Notify when an expense is added."),
|
|
15
|
+
added_to_group: zod.z.boolean().describe("Notify when added to a group."),
|
|
16
|
+
added_as_friend: zod.z.boolean().describe("Notify when added as a friend."),
|
|
17
|
+
expense_updated: zod.z.boolean().describe("Notify when an expense is updated."),
|
|
18
|
+
monthly_summary: zod.z.boolean().describe("Notify with monthly summary.")
|
|
19
|
+
}).describe("Notification flags for the user.");
|
|
20
|
+
const SplitwiseGetCurrentUser_UserSchema = zod.z.object({
|
|
21
|
+
id: zod.z.number().int().describe("Unique identifier for the user."),
|
|
22
|
+
email: zod.z.string().describe("User's email address."),
|
|
23
|
+
locale: zod.z.string().describe("User's locale setting (e.g., 'en')."),
|
|
24
|
+
picture: SplitwiseGetCurrentUser_PictureSchema.nullable(),
|
|
25
|
+
last_name: zod.z.string().describe("User's last name.").nullable().optional(),
|
|
26
|
+
first_name: zod.z.string().describe("User's first name."),
|
|
27
|
+
date_format: zod.z.string().describe("User's preferred date format (e.g., 'MM/DD/YYYY').").nullable().optional(),
|
|
28
|
+
country_code: zod.z.string().describe("User's country code (e.g., 'US').").nullable().optional(),
|
|
29
|
+
notifications: SplitwiseGetCurrentUser_NotificationsSchema.nullable(),
|
|
30
|
+
custom_picture: zod.z.boolean().describe("Whether the user has a custom profile picture."),
|
|
31
|
+
default_currency: zod.z.string().describe("User's default currency code (e.g., 'USD')."),
|
|
32
|
+
default_group_id: zod.z.number().int().describe("User's default group ID (-1 if not set).").nullable().optional(),
|
|
33
|
+
force_refresh_at: zod.z.string().describe("Timestamp for when a forced refresh is required.").nullable().optional(),
|
|
34
|
+
notifications_read: zod.z.string().describe("Timestamp when notifications were last read."),
|
|
35
|
+
notifications_count: zod.z.number().int().describe("Number of unread notifications."),
|
|
36
|
+
registration_status: zod.z.string().describe("Registration status of the user (e.g., 'confirmed').")
|
|
37
|
+
}).describe("Details of the currently authenticated user.");
|
|
38
|
+
const SplitwiseGetCurrentUserOutput = zod.z.object({ user: SplitwiseGetCurrentUser_UserSchema.nullable() }).describe("Response schema for current user info.");
|
|
39
|
+
const splitwiseGetCurrentUser = require_action.action("SPLITWISE_GET_CURRENT_USER", {
|
|
40
|
+
slug: "splitwise-get-current-user",
|
|
41
|
+
name: "Get Current User",
|
|
42
|
+
description: "Tool to retrieve information about the current authenticated user. Use when you need profile details of the logged-in user.",
|
|
43
|
+
input: SplitwiseGetCurrentUserInput,
|
|
44
|
+
output: SplitwiseGetCurrentUserOutput
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
exports.splitwiseGetCurrentUser = splitwiseGetCurrentUser;
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=get-current-user.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-current-user.cjs","names":["z","action"],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetCurrentUserInput: z.ZodTypeAny = z.object({}).describe(\"Request schema for retrieving current user info. No parameters required.\");\nconst SplitwiseGetCurrentUser_PictureSchema: z.ZodTypeAny = z.object({\n large: z.string().describe(\"URL for the large-sized profile picture.\"),\n small: z.string().describe(\"URL for the small-sized profile picture.\"),\n medium: z.string().describe(\"URL for the medium-sized profile picture.\"),\n}).describe(\"URLs for the user's profile picture in different sizes.\");\nconst SplitwiseGetCurrentUser_NotificationsSchema: z.ZodTypeAny = z.object({\n bills: z.boolean().describe(\"Notify about bills.\"),\n payments: z.boolean().describe(\"Notify about payments.\"),\n announcements: z.boolean().describe(\"Notify about announcements.\"),\n expense_added: z.boolean().describe(\"Notify when an expense is added.\"),\n added_to_group: z.boolean().describe(\"Notify when added to a group.\"),\n added_as_friend: z.boolean().describe(\"Notify when added as a friend.\"),\n expense_updated: z.boolean().describe(\"Notify when an expense is updated.\"),\n monthly_summary: z.boolean().describe(\"Notify with monthly summary.\"),\n}).describe(\"Notification flags for the user.\");\nconst SplitwiseGetCurrentUser_UserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the user.\"),\n email: z.string().describe(\"User's email address.\"),\n locale: z.string().describe(\"User's locale setting (e.g., 'en').\"),\n picture: SplitwiseGetCurrentUser_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 date_format: z.string().describe(\"User's preferred date format (e.g., 'MM/DD/YYYY').\").nullable().optional(),\n country_code: z.string().describe(\"User's country code (e.g., 'US').\").nullable().optional(),\n notifications: SplitwiseGetCurrentUser_NotificationsSchema.nullable(),\n custom_picture: z.boolean().describe(\"Whether the user has a custom profile picture.\"),\n default_currency: z.string().describe(\"User's default currency code (e.g., 'USD').\"),\n default_group_id: z.number().int().describe(\"User's default group ID (-1 if not set).\").nullable().optional(),\n force_refresh_at: z.string().describe(\"Timestamp for when a forced refresh is required.\").nullable().optional(),\n notifications_read: z.string().describe(\"Timestamp when notifications were last read.\"),\n notifications_count: z.number().int().describe(\"Number of unread notifications.\"),\n registration_status: z.string().describe(\"Registration status of the user (e.g., 'confirmed').\"),\n}).describe(\"Details of the currently authenticated user.\");\nexport const SplitwiseGetCurrentUserOutput: z.ZodTypeAny = z.object({\n user: SplitwiseGetCurrentUser_UserSchema.nullable(),\n}).describe(\"Response schema for current user info.\");\n\nexport const splitwiseGetCurrentUser = action(\"SPLITWISE_GET_CURRENT_USER\", {\n slug: \"splitwise-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve information about the current authenticated user. Use when you need profile details of the logged-in user.\",\n input: SplitwiseGetCurrentUserInput,\n output: Split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/actions/get-current-user.d.ts
|
|
4
|
+
declare const SplitwiseGetCurrentUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const SplitwiseGetCurrentUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const splitwiseGetCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { splitwiseGetCurrentUser };
|
|
9
|
+
//# sourceMappingURL=get-current-user.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-current-user.d.cts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAA8G;AAAA,cAkC9I,6BAAA,EAA+B,CAAA,CAAE,UAEO;AAAA,cAExC,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-current-user.d.ts
|
|
4
|
+
declare const SplitwiseGetCurrentUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const SplitwiseGetCurrentUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const splitwiseGetCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { splitwiseGetCurrentUser };
|
|
9
|
+
//# sourceMappingURL=get-current-user.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-current-user.d.mts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAA8G;AAAA,cAkC9I,6BAAA,EAA+B,CAAA,CAAE,UAEO;AAAA,cAExC,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-current-user.ts
|
|
4
|
+
const SplitwiseGetCurrentUserInput = z.object({}).describe("Request schema for retrieving current user info. No parameters required.");
|
|
5
|
+
const SplitwiseGetCurrentUser_PictureSchema = z.object({
|
|
6
|
+
large: z.string().describe("URL for the large-sized profile picture."),
|
|
7
|
+
small: z.string().describe("URL for the small-sized profile picture."),
|
|
8
|
+
medium: z.string().describe("URL for the medium-sized profile picture.")
|
|
9
|
+
}).describe("URLs for the user's profile picture in different sizes.");
|
|
10
|
+
const SplitwiseGetCurrentUser_NotificationsSchema = z.object({
|
|
11
|
+
bills: z.boolean().describe("Notify about bills."),
|
|
12
|
+
payments: z.boolean().describe("Notify about payments."),
|
|
13
|
+
announcements: z.boolean().describe("Notify about announcements."),
|
|
14
|
+
expense_added: z.boolean().describe("Notify when an expense is added."),
|
|
15
|
+
added_to_group: z.boolean().describe("Notify when added to a group."),
|
|
16
|
+
added_as_friend: z.boolean().describe("Notify when added as a friend."),
|
|
17
|
+
expense_updated: z.boolean().describe("Notify when an expense is updated."),
|
|
18
|
+
monthly_summary: z.boolean().describe("Notify with monthly summary.")
|
|
19
|
+
}).describe("Notification flags for the user.");
|
|
20
|
+
const SplitwiseGetCurrentUser_UserSchema = z.object({
|
|
21
|
+
id: z.number().int().describe("Unique identifier for the user."),
|
|
22
|
+
email: z.string().describe("User's email address."),
|
|
23
|
+
locale: z.string().describe("User's locale setting (e.g., 'en')."),
|
|
24
|
+
picture: SplitwiseGetCurrentUser_PictureSchema.nullable(),
|
|
25
|
+
last_name: z.string().describe("User's last name.").nullable().optional(),
|
|
26
|
+
first_name: z.string().describe("User's first name."),
|
|
27
|
+
date_format: z.string().describe("User's preferred date format (e.g., 'MM/DD/YYYY').").nullable().optional(),
|
|
28
|
+
country_code: z.string().describe("User's country code (e.g., 'US').").nullable().optional(),
|
|
29
|
+
notifications: SplitwiseGetCurrentUser_NotificationsSchema.nullable(),
|
|
30
|
+
custom_picture: z.boolean().describe("Whether the user has a custom profile picture."),
|
|
31
|
+
default_currency: z.string().describe("User's default currency code (e.g., 'USD')."),
|
|
32
|
+
default_group_id: z.number().int().describe("User's default group ID (-1 if not set).").nullable().optional(),
|
|
33
|
+
force_refresh_at: z.string().describe("Timestamp for when a forced refresh is required.").nullable().optional(),
|
|
34
|
+
notifications_read: z.string().describe("Timestamp when notifications were last read."),
|
|
35
|
+
notifications_count: z.number().int().describe("Number of unread notifications."),
|
|
36
|
+
registration_status: z.string().describe("Registration status of the user (e.g., 'confirmed').")
|
|
37
|
+
}).describe("Details of the currently authenticated user.");
|
|
38
|
+
const splitwiseGetCurrentUser = action("SPLITWISE_GET_CURRENT_USER", {
|
|
39
|
+
slug: "splitwise-get-current-user",
|
|
40
|
+
name: "Get Current User",
|
|
41
|
+
description: "Tool to retrieve information about the current authenticated user. Use when you need profile details of the logged-in user.",
|
|
42
|
+
input: SplitwiseGetCurrentUserInput,
|
|
43
|
+
output: z.object({ user: SplitwiseGetCurrentUser_UserSchema.nullable() }).describe("Response schema for current user info.")
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
export { splitwiseGetCurrentUser };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=get-current-user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-current-user.mjs","names":[],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetCurrentUserInput: z.ZodTypeAny = z.object({}).describe(\"Request schema for retrieving current user info. No parameters required.\");\nconst SplitwiseGetCurrentUser_PictureSchema: z.ZodTypeAny = z.object({\n large: z.string().describe(\"URL for the large-sized profile picture.\"),\n small: z.string().describe(\"URL for the small-sized profile picture.\"),\n medium: z.string().describe(\"URL for the medium-sized profile picture.\"),\n}).describe(\"URLs for the user's profile picture in different sizes.\");\nconst SplitwiseGetCurrentUser_NotificationsSchema: z.ZodTypeAny = z.object({\n bills: z.boolean().describe(\"Notify about bills.\"),\n payments: z.boolean().describe(\"Notify about payments.\"),\n announcements: z.boolean().describe(\"Notify about announcements.\"),\n expense_added: z.boolean().describe(\"Notify when an expense is added.\"),\n added_to_group: z.boolean().describe(\"Notify when added to a group.\"),\n added_as_friend: z.boolean().describe(\"Notify when added as a friend.\"),\n expense_updated: z.boolean().describe(\"Notify when an expense is updated.\"),\n monthly_summary: z.boolean().describe(\"Notify with monthly summary.\"),\n}).describe(\"Notification flags for the user.\");\nconst SplitwiseGetCurrentUser_UserSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the user.\"),\n email: z.string().describe(\"User's email address.\"),\n locale: z.string().describe(\"User's locale setting (e.g., 'en').\"),\n picture: SplitwiseGetCurrentUser_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 date_format: z.string().describe(\"User's preferred date format (e.g., 'MM/DD/YYYY').\").nullable().optional(),\n country_code: z.string().describe(\"User's country code (e.g., 'US').\").nullable().optional(),\n notifications: SplitwiseGetCurrentUser_NotificationsSchema.nullable(),\n custom_picture: z.boolean().describe(\"Whether the user has a custom profile picture.\"),\n default_currency: z.string().describe(\"User's default currency code (e.g., 'USD').\"),\n default_group_id: z.number().int().describe(\"User's default group ID (-1 if not set).\").nullable().optional(),\n force_refresh_at: z.string().describe(\"Timestamp for when a forced refresh is required.\").nullable().optional(),\n notifications_read: z.string().describe(\"Timestamp when notifications were last read.\"),\n notifications_count: z.number().int().describe(\"Number of unread notifications.\"),\n registration_status: z.string().describe(\"Registration status of the user (e.g., 'confirmed').\"),\n}).describe(\"Details of the currently authenticated user.\");\nexport const SplitwiseGetCurrentUserOutput: z.ZodTypeAny = z.object({\n user: SplitwiseGetCurrentUser_UserSchema.nullable(),\n}).describe(\"Response schema for current user info.\");\n\nexport const splitwiseGetCurrentUser = action(\"SPLITWISE_GET_CURRENT_USER\", {\n slug: \"splitwise-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve information about the current authenticated user. Use when you need profile details of the logged-in user.\",\n input: SplitwiseGetCurrentUserInput,\n output: SplitwiseGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAC1J,MAAM,wCAAsD,EAAE,OAAO;CACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AACzE,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,8CAA4D,EAAE,OAAO;CACzE,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,qBAAqB;CACjD,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,wBAAwB;CACvD,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B;CACjE,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;CACtE,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B;CACpE,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;CACtE,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC;CAC1E,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B;AACtE,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAM,qCAAmD,EAAE,OAAO;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CAC/D,OAAO,EAAE,O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|
|
3
|
+
//#region src/actions/get-expense.ts
|
|
4
|
+
const SplitwiseGetExpenseInput = zod.z.object({ id: zod.z.number().int().describe("The unique identifier for the expense.") }).describe("Request model for retrieving expense information.");
|
|
5
|
+
const SplitwiseGetExpense_PictureSchema = zod.z.object({
|
|
6
|
+
large: zod.z.string().describe("URL for large-sized profile picture.").nullable().optional(),
|
|
7
|
+
small: zod.z.string().describe("URL for small-sized profile picture.").nullable().optional(),
|
|
8
|
+
medium: zod.z.string().describe("URL for medium-sized profile picture.").nullable().optional()
|
|
9
|
+
}).describe("URLs for user profile pictures in different sizes.");
|
|
10
|
+
const SplitwiseGetExpense_UserObjectSchema = zod.z.object({
|
|
11
|
+
id: zod.z.number().int().describe("User ID."),
|
|
12
|
+
email: zod.z.string().describe("User's email address.").nullable().optional(),
|
|
13
|
+
picture: SplitwiseGetExpense_PictureSchema.nullable().optional(),
|
|
14
|
+
last_name: zod.z.string().describe("User's last name.").nullable().optional(),
|
|
15
|
+
first_name: zod.z.string().describe("User's first name.").nullable().optional(),
|
|
16
|
+
custom_picture: zod.z.boolean().describe("Whether user has custom picture.").nullable().optional(),
|
|
17
|
+
registration_status: zod.z.string().describe("Registration status.").nullable().optional()
|
|
18
|
+
}).describe("Represents a user object in the expense.");
|
|
19
|
+
const SplitwiseGetExpense_ExpenseUserSchema = zod.z.object({
|
|
20
|
+
user: SplitwiseGetExpense_UserObjectSchema.nullable(),
|
|
21
|
+
user_id: zod.z.number().int().describe("User identifier."),
|
|
22
|
+
owed_share: zod.z.string().describe("Amount user owes."),
|
|
23
|
+
paid_share: zod.z.string().describe("Amount user paid."),
|
|
24
|
+
net_balance: zod.z.string().describe("Net balance for user.")
|
|
25
|
+
}).describe("Represents a participant in the expense with their share details.");
|
|
26
|
+
const SplitwiseGetExpense_ReceiptSchema = zod.z.object({
|
|
27
|
+
large: zod.z.string().describe("URL to large receipt image.").nullable().optional(),
|
|
28
|
+
original: zod.z.string().describe("URL to original receipt image.").nullable().optional()
|
|
29
|
+
}).describe("Receipt image URLs.");
|
|
30
|
+
const SplitwiseGetExpense_CategorySchema = zod.z.object({
|
|
31
|
+
id: zod.z.number().int().describe("Category ID.").nullable().optional(),
|
|
32
|
+
name: zod.z.string().describe("Category name.").nullable().optional()
|
|
33
|
+
}).describe("Expense category information.");
|
|
34
|
+
const SplitwiseGetExpense_CommentSchema = zod.z.object({
|
|
35
|
+
id: zod.z.number().int().describe("Comment ID.").nullable().optional(),
|
|
36
|
+
user: SplitwiseGetExpense_UserObjectSchema.nullable().optional(),
|
|
37
|
+
content: zod.z.string().describe("Comment text.").nullable().optional(),
|
|
38
|
+
created_at: zod.z.string().describe("Creation timestamp.").nullable().optional(),
|
|
39
|
+
deleted_at: zod.z.string().describe("Deletion timestamp.").nullable().optional(),
|
|
40
|
+
relation_id: zod.z.number().int().describe("Related entity ID.").nullable().optional(),
|
|
41
|
+
comment_type: zod.z.string().describe("Type of comment.").nullable().optional(),
|
|
42
|
+
relation_type: zod.z.string().describe("Relation type.").nullable().optional()
|
|
43
|
+
}).describe("Comment on the expense.");
|
|
44
|
+
const SplitwiseGetExpense_RepaymentSchema = zod.z.object({
|
|
45
|
+
to: zod.z.number().int().describe("Payee user ID."),
|
|
46
|
+
from: zod.z.number().int().describe("Payer user ID."),
|
|
47
|
+
amount: zod.z.string().describe("Payment amount.")
|
|
48
|
+
}).describe("Represents a repayment between users.");
|
|
49
|
+
const SplitwiseGetExpense_ExpenseSchema = zod.z.object({
|
|
50
|
+
id: zod.z.number().int().describe("Unique expense identifier."),
|
|
51
|
+
cost: zod.z.string().describe("Amount of the expense."),
|
|
52
|
+
date: zod.z.string().describe("Transaction date."),
|
|
53
|
+
users: zod.z.array(SplitwiseGetExpense_ExpenseUserSchema).describe("Expense participants with their shares."),
|
|
54
|
+
details: zod.z.string().describe("Additional details about the expense.").nullable().optional(),
|
|
55
|
+
payment: zod.z.boolean().describe("Whether this is a payment."),
|
|
56
|
+
receipt: SplitwiseGetExpense_ReceiptSchema.nullable().optional(),
|
|
57
|
+
repeats: zod.z.boolean().describe("Whether expense repeats."),
|
|
58
|
+
category: SplitwiseGetExpense_CategorySchema.nullable().optional(),
|
|
59
|
+
comments: zod.z.array(SplitwiseGetExpense_CommentSchema).describe("Array of comment objects.").nullable().optional(),
|
|
60
|
+
group_id: zod.z.number().int().describe("Associated group ID.").nullable().optional(),
|
|
61
|
+
created_at: zod.z.string().describe("Creation timestamp."),
|
|
62
|
+
created_by: SplitwiseGetExpense_UserObjectSchema.nullable().optional(),
|
|
63
|
+
deleted_at: zod.z.string().describe("Deletion timestamp.").nullable().optional(),
|
|
64
|
+
deleted_by: SplitwiseGetExpense_UserObjectSchema.nullable().optional(),
|
|
65
|
+
repayments: zod.z.array(SplitwiseGetExpense_RepaymentSchema).describe("Repayments between users."),
|
|
66
|
+
updated_at: zod.z.string().describe("Last update timestamp."),
|
|
67
|
+
updated_by: SplitwiseGetExpense_UserObjectSchema.nullable().optional(),
|
|
68
|
+
category_id: zod.z.number().int().describe("Expense category identifier.").nullable().optional(),
|
|
69
|
+
description: zod.z.string().describe("Brief description of the expense."),
|
|
70
|
+
next_repeat: zod.z.string().describe("Next occurrence date.").nullable().optional(),
|
|
71
|
+
currency_code: zod.z.string().describe("Currency type (e.g., 'USD')."),
|
|
72
|
+
friendship_id: zod.z.number().int().describe("Associated friendship ID.").nullable().optional(),
|
|
73
|
+
comments_count: zod.z.number().int().describe("Number of comments on expense."),
|
|
74
|
+
email_reminder: zod.z.boolean().describe("Reminder setting.").nullable().optional(),
|
|
75
|
+
repeat_interval: zod.z.string().describe("Recurrence pattern.").nullable().optional(),
|
|
76
|
+
expense_bundle_id: zod.z.number().int().describe("Bundle identifier for related expenses.").nullable().optional(),
|
|
77
|
+
transaction_confirmed: zod.z.boolean().describe("Confirmation flag."),
|
|
78
|
+
email_reminder_in_advance: zod.z.number().int().describe("Advance reminder setting.").nullable().optional()
|
|
79
|
+
}).describe("Complete expense information.");
|
|
80
|
+
const SplitwiseGetExpenseOutput = zod.z.object({ expense: SplitwiseGetExpense_ExpenseSchema.nullable() }).describe("Response model for retrieving expense information.");
|
|
81
|
+
const splitwiseGetExpense = require_action.action("SPLITWISE_GET_EXPENSE", {
|
|
82
|
+
slug: "splitwise-get-expense",
|
|
83
|
+
name: "Get Expense",
|
|
84
|
+
description: "Tool to retrieve detailed information about a specific expense by ID. Use when you need to view expense details including participants, shares, and repayments.",
|
|
85
|
+
input: SplitwiseGetExpenseInput,
|
|
86
|
+
output: SplitwiseGetExpenseOutput
|
|
87
|
+
});
|
|
88
|
+
//#endregion
|
|
89
|
+
exports.splitwiseGetExpense = splitwiseGetExpense;
|
|
90
|
+
|
|
91
|
+
//# sourceMappingURL=get-expense.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-expense.cjs","names":["z","action"],"sources":["../../src/actions/get-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetExpenseInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique identifier for the expense.\"),\n}).describe(\"Request model for retrieving expense information.\");\nconst SplitwiseGetExpense_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 SplitwiseGetExpense_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: SplitwiseGetExpense_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 expense.\");\nconst SplitwiseGetExpense_ExpenseUserSchema: z.ZodTypeAny = z.object({\n user: SplitwiseGetExpense_UserObjectSchema.nullable(),\n user_id: z.number().int().describe(\"User identifier.\"),\n owed_share: z.string().describe(\"Amount user owes.\"),\n paid_share: z.string().describe(\"Amount user paid.\"),\n net_balance: z.string().describe(\"Net balance for user.\"),\n}).describe(\"Represents a participant in the expense with their share details.\");\nconst SplitwiseGetExpense_ReceiptSchema: z.ZodTypeAny = z.object({\n large: z.string().describe(\"URL to large receipt image.\").nullable().optional(),\n original: z.string().describe(\"URL to original receipt image.\").nullable().optional(),\n}).describe(\"Receipt image URLs.\");\nconst SplitwiseGetExpense_CategorySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Category ID.\").nullable().optional(),\n name: z.string().describe(\"Category name.\").nullable().optional(),\n}).describe(\"Expense category information.\");\nconst SplitwiseGetExpense_CommentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Comment ID.\").nullable().optional(),\n user: SplitwiseGetExpense_UserObjectSchema.nullable().optional(),\n content: z.string().describe(\"Comment text.\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable().optional(),\n deleted_at: z.string().describe(\"Deletion timestamp.\").nullable().optional(),\n relation_id: z.number().int().describe(\"Related entity ID.\").nullable().optional(),\n comment_type: z.string().describe(\"Type of comment.\").nullable().optional(),\n relation_type: z.string().describe(\"Relation type.\").nullable().optional(),\n}).describe(\"Comment on the expense.\");\nconst SplitwiseGetExpense_RepaymentSchema: z.ZodTypeAny = z.object({\n to: z.number().int().describe(\"Payee user ID.\"),\n from: z.number().int().describe(\"Payer user ID.\"),\n amount: z.string().describe(\"Payment amount.\"),\n}).describe(\"Represents a repayment between users.\");\nconst SplitwiseGetExpense_ExpenseSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique expense identifier.\"),\n cost: z.string().describe(\"Amount of the expense.\"),\n date: z.string().describe(\"Transaction date.\"),\n users: z.array(SplitwiseGetExpense_ExpenseUserSchema).describe(\"Expense participants with their shares.\"),\n details: z.string().describe(\"Additional details about the expense.\").nullable().optional(),\n payment: z.boolean().describe(\"Whether this is a payment.\"),\n receipt: SplitwiseGetExpense_ReceiptSchema.nullable().optional(),\n repeats: z.boolean().describe(\"Whether expense repeats.\"),\n category: SplitwiseGetExpense_CategorySchema.nullable().optional(),\n comments: z.array(SplitwiseGetExpense_CommentSchema).describe(\"Array of comment objects.\").nullable().optional(),\n group_id: z.number().int().describe(\"Associated group ID.\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp.\"),\n created_by: SplitwiseGetExpense_UserObjectSchema.nullable().optional(),\n deleted_at: z.string().describe(\"Deletion timestamp.\").nullable().optional(),\n deleted_by: SplitwiseGetExpense_UserObjectSchema.nullable().optional(),\n repayments: z.array(SplitwiseGetExpense_RepaymentSchema).describe(\"Repayments between users.\"),\n updated_at: z.string().describe(\"Last update timestamp.\"),\n updated_by: SplitwiseGetExpense_UserObjectSchema.nullable().optional(),\n category_id: z.number().int().describe(\"Expense category identifier.\").nullable().optional(),\n description: z.string().describe(\"Brief description of the expense.\"),\n next_repeat: z.string().describe(\"Next occurrence date.\").nullable().optional(),\n currency_code: z.string().describe(\"Currency type (e.g., 'USD').\"),\n friendship_id: z.number().int().describe(\"Associated friendship ID.\").nullable().optional(),\n comments_count: z.number().int().describe(\"Number of comments on expense.\"),\n email_reminder: z.boolean().describe(\"Reminder setting.\").nullable().optional(),\n repeat_interval: z.string().describe(\"Recurrence pattern.\").nullable().optional(),\n expense_bundle_id: z.number().int().describe(\"Bundle identifier for related expenses.\").nullable().optional(),\n transaction_confirmed: z.boolean().describe(\"Confirmation flag.\"),\n email_reminder_in_advance: z.number().int().describe(\"Advance reminder setting.\").nullable().optional(),\n}).describe(\"Complete expense information.\");\nexport const SplitwiseGetExpenseOutput: z.ZodTypeAny = z.object({\n expense: SplitwiseGetExpense_ExpenseSchema.nullable(),\n}).describe(\"Response model for retrieving expense information.\");\n\nexport const splitwiseGetExpense = action(\"SPLITWISE_GET_EXPENSE\", {\n slug: \"splitwise-get-expense\",\n name: \"Get Expense\",\n description: \"Tool to retrieve detailed information about a specific expense by ID. Use when you need to view expense details including participants, shares, and repayments.\",\n input: SplitwiseGetExpenseInput,\n output: SplitwiseGetExpenseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,EACxE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,UAAU;CACxC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAAS,kCAAkC,SAAS,CAAC,CAAC,SAAS;CAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CA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|
+
declare const splitwiseGetExpense: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { splitwiseGetExpense };
|
|
9
|
+
//# sourceMappingURL=get-expense.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-expense.d.cts","names":[],"sources":["../../src/actions/get-expense.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEuB;AAAA,cA4EnD,yBAAA,EAA2B,CAAA,CAAE,UAEuB;AAAA,cAEpD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-expense.d.ts
|
|
4
|
+
declare const SplitwiseGetExpenseInput: z.ZodTypeAny;
|
|
5
|
+
declare const SplitwiseGetExpenseOutput: z.ZodTypeAny;
|
|
6
|
+
declare const splitwiseGetExpense: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { splitwiseGetExpense };
|
|
9
|
+
//# sourceMappingURL=get-expense.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-expense.d.mts","names":[],"sources":["../../src/actions/get-expense.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAEuB;AAAA,cA4EnD,yBAAA,EAA2B,CAAA,CAAE,UAEuB;AAAA,cAEpD,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-expense.ts
|
|
4
|
+
const SplitwiseGetExpenseInput = z.object({ id: z.number().int().describe("The unique identifier for the expense.") }).describe("Request model for retrieving expense information.");
|
|
5
|
+
const SplitwiseGetExpense_PictureSchema = z.object({
|
|
6
|
+
large: z.string().describe("URL for large-sized profile picture.").nullable().optional(),
|
|
7
|
+
small: z.string().describe("URL for small-sized profile picture.").nullable().optional(),
|
|
8
|
+
medium: z.string().describe("URL for medium-sized profile picture.").nullable().optional()
|
|
9
|
+
}).describe("URLs for user profile pictures in different sizes.");
|
|
10
|
+
const SplitwiseGetExpense_UserObjectSchema = z.object({
|
|
11
|
+
id: z.number().int().describe("User ID."),
|
|
12
|
+
email: z.string().describe("User's email address.").nullable().optional(),
|
|
13
|
+
picture: SplitwiseGetExpense_PictureSchema.nullable().optional(),
|
|
14
|
+
last_name: z.string().describe("User's last name.").nullable().optional(),
|
|
15
|
+
first_name: z.string().describe("User's first name.").nullable().optional(),
|
|
16
|
+
custom_picture: z.boolean().describe("Whether user has custom picture.").nullable().optional(),
|
|
17
|
+
registration_status: z.string().describe("Registration status.").nullable().optional()
|
|
18
|
+
}).describe("Represents a user object in the expense.");
|
|
19
|
+
const SplitwiseGetExpense_ExpenseUserSchema = z.object({
|
|
20
|
+
user: SplitwiseGetExpense_UserObjectSchema.nullable(),
|
|
21
|
+
user_id: z.number().int().describe("User identifier."),
|
|
22
|
+
owed_share: z.string().describe("Amount user owes."),
|
|
23
|
+
paid_share: z.string().describe("Amount user paid."),
|
|
24
|
+
net_balance: z.string().describe("Net balance for user.")
|
|
25
|
+
}).describe("Represents a participant in the expense with their share details.");
|
|
26
|
+
const SplitwiseGetExpense_ReceiptSchema = z.object({
|
|
27
|
+
large: z.string().describe("URL to large receipt image.").nullable().optional(),
|
|
28
|
+
original: z.string().describe("URL to original receipt image.").nullable().optional()
|
|
29
|
+
}).describe("Receipt image URLs.");
|
|
30
|
+
const SplitwiseGetExpense_CategorySchema = z.object({
|
|
31
|
+
id: z.number().int().describe("Category ID.").nullable().optional(),
|
|
32
|
+
name: z.string().describe("Category name.").nullable().optional()
|
|
33
|
+
}).describe("Expense category information.");
|
|
34
|
+
const SplitwiseGetExpense_CommentSchema = z.object({
|
|
35
|
+
id: z.number().int().describe("Comment ID.").nullable().optional(),
|
|
36
|
+
user: SplitwiseGetExpense_UserObjectSchema.nullable().optional(),
|
|
37
|
+
content: z.string().describe("Comment text.").nullable().optional(),
|
|
38
|
+
created_at: z.string().describe("Creation timestamp.").nullable().optional(),
|
|
39
|
+
deleted_at: z.string().describe("Deletion timestamp.").nullable().optional(),
|
|
40
|
+
relation_id: z.number().int().describe("Related entity ID.").nullable().optional(),
|
|
41
|
+
comment_type: z.string().describe("Type of comment.").nullable().optional(),
|
|
42
|
+
relation_type: z.string().describe("Relation type.").nullable().optional()
|
|
43
|
+
}).describe("Comment on the expense.");
|
|
44
|
+
const SplitwiseGetExpense_RepaymentSchema = z.object({
|
|
45
|
+
to: z.number().int().describe("Payee user ID."),
|
|
46
|
+
from: z.number().int().describe("Payer user ID."),
|
|
47
|
+
amount: z.string().describe("Payment amount.")
|
|
48
|
+
}).describe("Represents a repayment between users.");
|
|
49
|
+
const SplitwiseGetExpense_ExpenseSchema = z.object({
|
|
50
|
+
id: z.number().int().describe("Unique expense identifier."),
|
|
51
|
+
cost: z.string().describe("Amount of the expense."),
|
|
52
|
+
date: z.string().describe("Transaction date."),
|
|
53
|
+
users: z.array(SplitwiseGetExpense_ExpenseUserSchema).describe("Expense participants with their shares."),
|
|
54
|
+
details: z.string().describe("Additional details about the expense.").nullable().optional(),
|
|
55
|
+
payment: z.boolean().describe("Whether this is a payment."),
|
|
56
|
+
receipt: SplitwiseGetExpense_ReceiptSchema.nullable().optional(),
|
|
57
|
+
repeats: z.boolean().describe("Whether expense repeats."),
|
|
58
|
+
category: SplitwiseGetExpense_CategorySchema.nullable().optional(),
|
|
59
|
+
comments: z.array(SplitwiseGetExpense_CommentSchema).describe("Array of comment objects.").nullable().optional(),
|
|
60
|
+
group_id: z.number().int().describe("Associated group ID.").nullable().optional(),
|
|
61
|
+
created_at: z.string().describe("Creation timestamp."),
|
|
62
|
+
created_by: SplitwiseGetExpense_UserObjectSchema.nullable().optional(),
|
|
63
|
+
deleted_at: z.string().describe("Deletion timestamp.").nullable().optional(),
|
|
64
|
+
deleted_by: SplitwiseGetExpense_UserObjectSchema.nullable().optional(),
|
|
65
|
+
repayments: z.array(SplitwiseGetExpense_RepaymentSchema).describe("Repayments between users."),
|
|
66
|
+
updated_at: z.string().describe("Last update timestamp."),
|
|
67
|
+
updated_by: SplitwiseGetExpense_UserObjectSchema.nullable().optional(),
|
|
68
|
+
category_id: z.number().int().describe("Expense category identifier.").nullable().optional(),
|
|
69
|
+
description: z.string().describe("Brief description of the expense."),
|
|
70
|
+
next_repeat: z.string().describe("Next occurrence date.").nullable().optional(),
|
|
71
|
+
currency_code: z.string().describe("Currency type (e.g., 'USD')."),
|
|
72
|
+
friendship_id: z.number().int().describe("Associated friendship ID.").nullable().optional(),
|
|
73
|
+
comments_count: z.number().int().describe("Number of comments on expense."),
|
|
74
|
+
email_reminder: z.boolean().describe("Reminder setting.").nullable().optional(),
|
|
75
|
+
repeat_interval: z.string().describe("Recurrence pattern.").nullable().optional(),
|
|
76
|
+
expense_bundle_id: z.number().int().describe("Bundle identifier for related expenses.").nullable().optional(),
|
|
77
|
+
transaction_confirmed: z.boolean().describe("Confirmation flag."),
|
|
78
|
+
email_reminder_in_advance: z.number().int().describe("Advance reminder setting.").nullable().optional()
|
|
79
|
+
}).describe("Complete expense information.");
|
|
80
|
+
const splitwiseGetExpense = action("SPLITWISE_GET_EXPENSE", {
|
|
81
|
+
slug: "splitwise-get-expense",
|
|
82
|
+
name: "Get Expense",
|
|
83
|
+
description: "Tool to retrieve detailed information about a specific expense by ID. Use when you need to view expense details including participants, shares, and repayments.",
|
|
84
|
+
input: SplitwiseGetExpenseInput,
|
|
85
|
+
output: z.object({ expense: SplitwiseGetExpense_ExpenseSchema.nullable() }).describe("Response model for retrieving expense information.")
|
|
86
|
+
});
|
|
87
|
+
//#endregion
|
|
88
|
+
export { splitwiseGetExpense };
|
|
89
|
+
|
|
90
|
+
//# sourceMappingURL=get-expense.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-expense.mjs","names":[],"sources":["../../src/actions/get-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetExpenseInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique identifier for the expense.\"),\n}).describe(\"Request model for retrieving expense information.\");\nconst SplitwiseGetExpense_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 SplitwiseGetExpense_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: SplitwiseGetExpense_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 expense.\");\nconst SplitwiseGetExpense_ExpenseUserSchema: z.ZodTypeAny = z.object({\n user: SplitwiseGetExpense_UserObjectSchema.nullable(),\n user_id: z.number().int().describe(\"User identifier.\"),\n owed_share: z.string().describe(\"Amount user owes.\"),\n paid_share: z.string().describe(\"Amount user paid.\"),\n net_balance: z.string().describe(\"Net balance for user.\"),\n}).describe(\"Represents a participant in the expense with their share details.\");\nconst SplitwiseGetExpense_ReceiptSchema: z.ZodTypeAny = z.object({\n large: z.string().describe(\"URL to large receipt image.\").nullable().optional(),\n original: z.string().describe(\"URL to original receipt image.\").nullable().optional(),\n}).describe(\"Receipt image URLs.\");\nconst SplitwiseGetExpense_CategorySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Category ID.\").nullable().optional(),\n name: z.string().describe(\"Category name.\").nullable().optional(),\n}).describe(\"Expense category information.\");\nconst SplitwiseGetExpense_CommentSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Comment ID.\").nullable().optional(),\n user: SplitwiseGetExpense_UserObjectSchema.nullable().optional(),\n content: z.string().describe(\"Comment text.\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable().optional(),\n deleted_at: z.string().describe(\"Deletion timestamp.\").nullable().optional(),\n relation_id: z.number().int().describe(\"Related entity ID.\").nullable().optional(),\n comment_type: z.string().describe(\"Type of comment.\").nullable().optional(),\n relation_type: z.string().describe(\"Relation type.\").nullable().optional(),\n}).describe(\"Comment on the expense.\");\nconst SplitwiseGetExpense_RepaymentSchema: z.ZodTypeAny = z.object({\n to: z.number().int().describe(\"Payee user ID.\"),\n from: z.number().int().describe(\"Payer user ID.\"),\n amount: z.string().describe(\"Payment amount.\"),\n}).describe(\"Represents a repayment between users.\");\nconst SplitwiseGetExpense_ExpenseSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique expense identifier.\"),\n cost: z.string().describe(\"Amount of the expense.\"),\n date: z.string().describe(\"Transaction date.\"),\n users: z.array(SplitwiseGetExpense_ExpenseUserSchema).describe(\"Expense participants with their shares.\"),\n details: z.string().describe(\"Additional details about the expense.\").nullable().optional(),\n payment: z.boolean().describe(\"Whether this is a payment.\"),\n receipt: SplitwiseGetExpense_ReceiptSchema.nullable().optional(),\n repeats: z.boolean().describe(\"Whether expense repeats.\"),\n category: SplitwiseGetExpense_CategorySchema.nullable().optional(),\n comments: z.array(SplitwiseGetExpense_CommentSchema).describe(\"Array of comment objects.\").nullable().optional(),\n group_id: z.number().int().describe(\"Associated group ID.\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp.\"),\n created_by: SplitwiseGetExpense_UserObjectSchema.nullable().optional(),\n deleted_at: z.string().describe(\"Deletion timestamp.\").nullable().optional(),\n deleted_by: SplitwiseGetExpense_UserObjectSchema.nullable().optional(),\n repayments: z.array(SplitwiseGetExpense_RepaymentSchema).describe(\"Repayments between users.\"),\n updated_at: z.string().describe(\"Last update timestamp.\"),\n updated_by: SplitwiseGetExpense_UserObjectSchema.nullable().optional(),\n category_id: z.number().int().describe(\"Expense category identifier.\").nullable().optional(),\n description: z.string().describe(\"Brief description of the expense.\"),\n next_repeat: z.string().describe(\"Next occurrence date.\").nullable().optional(),\n currency_code: z.string().describe(\"Currency type (e.g., 'USD').\"),\n friendship_id: z.number().int().describe(\"Associated friendship ID.\").nullable().optional(),\n comments_count: z.number().int().describe(\"Number of comments on expense.\"),\n email_reminder: z.boolean().describe(\"Reminder setting.\").nullable().optional(),\n repeat_interval: z.string().describe(\"Recurrence pattern.\").nullable().optional(),\n expense_bundle_id: z.number().int().describe(\"Bundle identifier for related expenses.\").nullable().optional(),\n transaction_confirmed: z.boolean().describe(\"Confirmation flag.\"),\n email_reminder_in_advance: z.number().int().describe(\"Advance reminder setting.\").nullable().optional(),\n}).describe(\"Complete expense information.\");\nexport const SplitwiseGetExpenseOutput: z.ZodTypeAny = z.object({\n expense: SplitwiseGetExpense_ExpenseSchema.nullable(),\n}).describe(\"Response model for retrieving expense information.\");\n\nexport const splitwiseGetExpense = action(\"SPLITWISE_GET_EXPENSE\", {\n slug: \"splitwise-get-expense\",\n name: \"Get Expense\",\n description: \"Tool to retrieve detailed information about a specific expense by ID. Use when you need to view expense details including participants, shares, and repayments.\",\n input: SplitwiseGetExpenseInput,\n output: SplitwiseGetExpenseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO,EAC7D,IAAI,EAAE,OAAO,CAAC,C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