@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,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-expense.d.ts
|
|
4
|
+
declare const SplitwiseUpdateExpenseInput: z.ZodTypeAny;
|
|
5
|
+
declare const SplitwiseUpdateExpenseOutput: z.ZodTypeAny;
|
|
6
|
+
declare const splitwiseUpdateExpense: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { splitwiseUpdateExpense };
|
|
9
|
+
//# sourceMappingURL=update-expense.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-expense.d.cts","names":[],"sources":["../../src/actions/update-expense.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAkBwI;AAAA,cACvK,4BAAA,EAA8B,CAAA,CAAE,UAGW;AAAA,cAE3C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-expense.d.ts
|
|
4
|
+
declare const SplitwiseUpdateExpenseInput: z.ZodTypeAny;
|
|
5
|
+
declare const SplitwiseUpdateExpenseOutput: z.ZodTypeAny;
|
|
6
|
+
declare const splitwiseUpdateExpense: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { splitwiseUpdateExpense };
|
|
9
|
+
//# sourceMappingURL=update-expense.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-expense.d.mts","names":[],"sources":["../../src/actions/update-expense.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAkBwI;AAAA,cACvK,4BAAA,EAA8B,CAAA,CAAE,UAGW;AAAA,cAE3C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const splitwiseUpdateExpense = action("SPLITWISE_UPDATE_EXPENSE", {
|
|
4
|
+
slug: "splitwise-update-expense",
|
|
5
|
+
name: "Update Expense",
|
|
6
|
+
description: "Tool to update an existing Splitwise expense. Use when you need to modify expense details such as cost, description, or participant shares. Only include fields you want to change. Note that a 200 OK response does not guarantee success - check that the errors object is empty.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
id: z.number().int().describe("ID of the expense to update"),
|
|
9
|
+
cost: z.string().describe("Total cost as string decimal with max 2 dp").optional(),
|
|
10
|
+
date: z.string().describe("When the expense took place (ISO 8601) Convert natural-language or locale-specific dates to ISO 8601 before sending.").optional(),
|
|
11
|
+
users: z.array(z.object({
|
|
12
|
+
email: z.string().describe("Email of the participant").optional(),
|
|
13
|
+
user_id: z.number().int().describe("ID of an existing Splitwise user").optional(),
|
|
14
|
+
last_name: z.string().describe("Last name of the participant").optional(),
|
|
15
|
+
first_name: z.string().describe("First name of the participant").optional(),
|
|
16
|
+
owed_share: z.string().describe("Amount this user owes (string decimal, 2 dp)"),
|
|
17
|
+
paid_share: z.string().describe("Amount this user paid (string decimal, 2 dp)")
|
|
18
|
+
}).describe("A single participant's share when splitting an expense.\nMust include either user_id or the triplet (email, first_name, last_name).")).describe("List of custom share allocations. WARNING: If provided, ALL expense shares will be overwritten Each user entry must include `paid_share` and `owed_share`; both fields must each independently sum exactly to `cost`. Omit this field entirely unless a full overwrite of all shares is intended.").optional(),
|
|
19
|
+
details: z.string().describe("Additional notes for the expense").optional(),
|
|
20
|
+
group_id: z.number().int().describe("Group ID to assign this expense to (0 for no group)").optional(),
|
|
21
|
+
category_id: z.number().int().describe("Category ID from get_categories").optional(),
|
|
22
|
+
description: z.string().describe("Short description of the expense").optional(),
|
|
23
|
+
currency_code: z.string().describe("3-letter currency code, e.g., USD").optional(),
|
|
24
|
+
repeat_interval: z.enum([
|
|
25
|
+
"never",
|
|
26
|
+
"weekly",
|
|
27
|
+
"fortnightly",
|
|
28
|
+
"monthly",
|
|
29
|
+
"yearly"
|
|
30
|
+
]).describe("Repeat interval for the expense").optional()
|
|
31
|
+
}).describe("Request model for updating an existing expense.\nOnly include fields you want to change. If any users parameter is provided,\nALL expense shares will be overwritten."),
|
|
32
|
+
output: z.object({
|
|
33
|
+
errors: z.record(z.string(), z.unknown()).describe("Errors returned by the API; empty if none"),
|
|
34
|
+
expenses: z.array(z.record(z.string(), z.unknown())).describe("List containing the updated expense object")
|
|
35
|
+
}).describe("Response model for update_expense action.")
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { splitwiseUpdateExpense };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=update-expense.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-expense.mjs","names":[],"sources":["../../src/actions/update-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseUpdateExpenseInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"ID of the expense to update\"),\n cost: z.string().describe(\"Total cost as string decimal with max 2 dp\").optional(),\n date: z.string().describe(\"When the expense took place (ISO 8601) Convert natural-language or locale-specific dates to ISO 8601 before sending.\").optional(),\n users: z.array(z.object({\n email: z.string().describe(\"Email of the participant\").optional(),\n user_id: z.number().int().describe(\"ID of an existing Splitwise user\").optional(),\n last_name: z.string().describe(\"Last name of the participant\").optional(),\n first_name: z.string().describe(\"First name of the participant\").optional(),\n owed_share: z.string().describe(\"Amount this user owes (string decimal, 2 dp)\"),\n paid_share: z.string().describe(\"Amount this user paid (string decimal, 2 dp)\"),\n}).describe(\"A single participant's share when splitting an expense.\\nMust include either user_id or the triplet (email, first_name, last_name).\")).describe(\"List of custom share allocations. WARNING: If provided, ALL expense shares will be overwritten Each user entry must include `paid_share` and `owed_share`; both fields must each independently sum exactly to `cost`. Omit this field entirely unless a full overwrite of all shares is intended.\").optional(),\n details: z.string().describe(\"Additional notes for the expense\").optional(),\n group_id: z.number().int().describe(\"Group ID to assign this expense to (0 for no group)\").optional(),\n category_id: z.number().int().describe(\"Category ID from get_categories\").optional(),\n description: z.string().describe(\"Short description of the expense\").optional(),\n currency_code: z.string().describe(\"3-letter currency code, e.g., USD\").optional(),\n repeat_interval: z.enum([\"never\", \"weekly\", \"fortnightly\", \"monthly\", \"yearly\"]).describe(\"Repeat interval for the expense\").optional(),\n}).describe(\"Request model for updating an existing expense.\\nOnly include fields you want to change. If any users parameter is provided,\\nALL expense shares will be overwritten.\");\nexport const SplitwiseUpdateExpenseOutput: z.ZodTypeAny = z.object({\n errors: z.record(z.string(), z.unknown()).describe(\"Errors returned by the API; empty if none\"),\n expenses: z.array(z.record(z.string(), z.unknown())).describe(\"List containing the updated expense object\"),\n}).describe(\"Response model for update_expense action.\");\n\nexport const splitwiseUpdateExpense = action(\"SPLITWISE_UPDATE_EXPENSE\", {\n slug: \"splitwise-update-expense\",\n name: \"Update Expense\",\n description: \"Tool to update an existing Splitwise expense. Use when you need to modify expense details such as cost, description, or participant shares. Only include fields you want to change. Note that a 200 OK response does not guarantee success - check that the errors object is empty.\",\n input: SplitwiseUpdateExpenseInput,\n output: SplitwiseUpdateExpenseOutput,\n});\n"],"mappings":";;AA4BA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BuD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;EAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACjF,MAAM,EAA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U,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C;CAC5G,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-user.ts
|
|
4
|
+
const SplitwiseUpdateUserInput = zod.z.object({
|
|
5
|
+
id: zod.z.number().int().describe("The user ID to update. Must be the authenticated user's ID."),
|
|
6
|
+
email: zod.z.string().describe("User's email address").optional(),
|
|
7
|
+
locale: zod.z.string().describe("Language/region preference (e.g., 'en', 'es', 'fr')").optional(),
|
|
8
|
+
password: zod.z.string().describe("User's account password").optional(),
|
|
9
|
+
last_name: zod.z.string().describe("User's family name").optional(),
|
|
10
|
+
first_name: zod.z.string().describe("User's given name").optional(),
|
|
11
|
+
default_currency: zod.z.string().describe("Preferred currency code (e.g., 'USD', 'EUR', 'GBP')").optional()
|
|
12
|
+
}).describe("Request schema for updating user account details.");
|
|
13
|
+
const SplitwiseUpdateUser_PictureSchema = zod.z.object({
|
|
14
|
+
large: zod.z.string().describe("URL for the large-sized profile picture").nullable().optional(),
|
|
15
|
+
small: zod.z.string().describe("URL for the small-sized profile picture").nullable().optional(),
|
|
16
|
+
medium: zod.z.string().describe("URL for the medium-sized profile picture").nullable().optional()
|
|
17
|
+
}).describe("URLs for the user's profile picture in different sizes.");
|
|
18
|
+
const SplitwiseUpdateUser_NotificationsSchema = zod.z.object({
|
|
19
|
+
bills: zod.z.boolean().describe("Bill notifications").nullable().optional(),
|
|
20
|
+
payments: zod.z.boolean().describe("Payment notifications").nullable().optional(),
|
|
21
|
+
announcements: zod.z.boolean().describe("Announcement notifications").nullable().optional(),
|
|
22
|
+
expense_added: zod.z.boolean().describe("Notifications when an expense is added").nullable().optional(),
|
|
23
|
+
added_to_group: zod.z.boolean().describe("Notifications when added to a group").nullable().optional(),
|
|
24
|
+
added_as_friend: zod.z.boolean().describe("Notifications when added as a friend").nullable().optional(),
|
|
25
|
+
expense_updated: zod.z.boolean().describe("Notifications when an expense is updated").nullable().optional(),
|
|
26
|
+
monthly_summary: zod.z.boolean().describe("Monthly summary notifications").nullable().optional()
|
|
27
|
+
}).describe("User's notification preferences.");
|
|
28
|
+
const SplitwiseUpdateUser_UserSchema = zod.z.object({
|
|
29
|
+
id: zod.z.number().int().describe("Unique identifier for the user"),
|
|
30
|
+
email: zod.z.string().describe("User's email address").nullable().optional(),
|
|
31
|
+
locale: zod.z.string().describe("User's locale setting").nullable().optional(),
|
|
32
|
+
picture: SplitwiseUpdateUser_PictureSchema.nullable().optional(),
|
|
33
|
+
last_name: zod.z.string().describe("User's last name").nullable().optional(),
|
|
34
|
+
first_name: zod.z.string().describe("User's first name").nullable().optional(),
|
|
35
|
+
date_format: zod.z.string().describe("User's preferred date format (e.g., 'MM/DD/YYYY')").nullable().optional(),
|
|
36
|
+
country_code: zod.z.string().describe("User's country code (e.g., 'US', 'GB')").nullable().optional(),
|
|
37
|
+
notifications: SplitwiseUpdateUser_NotificationsSchema.nullable().optional(),
|
|
38
|
+
custom_picture: zod.z.boolean().describe("Whether user has uploaded a custom profile image").nullable().optional(),
|
|
39
|
+
default_currency: zod.z.string().describe("User's default currency code").nullable().optional(),
|
|
40
|
+
default_group_id: zod.z.number().int().describe("ID of user's default group (-1 if not set)").nullable().optional(),
|
|
41
|
+
force_refresh_at: zod.z.string().describe("Timestamp indicating when to force refresh user data").nullable().optional(),
|
|
42
|
+
notifications_read: zod.z.string().describe("Timestamp when notifications were last read").nullable().optional(),
|
|
43
|
+
notifications_count: zod.z.number().int().describe("Number of unread notifications").nullable().optional(),
|
|
44
|
+
registration_status: zod.z.string().describe("Account confirmation state (e.g., 'confirmed')").nullable().optional()
|
|
45
|
+
}).describe("Details of the updated user.");
|
|
46
|
+
const SplitwiseUpdateUserOutput = zod.z.object({ user: SplitwiseUpdateUser_UserSchema.nullable() }).describe("Response schema for updated user information.");
|
|
47
|
+
const splitwiseUpdateUser = require_action.action("SPLITWISE_UPDATE_USER", {
|
|
48
|
+
slug: "splitwise-update-user",
|
|
49
|
+
name: "Update User",
|
|
50
|
+
description: "Tool to update user account details including name, email, password, and preferences. Use when you need to modify the current user's profile information.",
|
|
51
|
+
input: SplitwiseUpdateUserInput,
|
|
52
|
+
output: SplitwiseUpdateUserOutput
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
exports.splitwiseUpdateUser = splitwiseUpdateUser;
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=update-user.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-user.cjs","names":["z","action"],"sources":["../../src/actions/update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseUpdateUserInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The user ID to update. Must be the authenticated user's ID.\"),\n email: z.string().describe(\"User's email address\").optional(),\n locale: z.string().describe(\"Language/region preference (e.g., 'en', 'es', 'fr')\").optional(),\n password: z.string().describe(\"User's account password\").optional(),\n last_name: z.string().describe(\"User's family name\").optional(),\n first_name: z.string().describe(\"User's given name\").optional(),\n default_currency: z.string().describe(\"Preferred currency code (e.g., 'USD', 'EUR', 'GBP')\").optional(),\n}).describe(\"Request schema for updating user account details.\");\nconst SplitwiseUpdateUser_PictureSchema: z.ZodTypeAny = z.object({\n large: z.string().describe(\"URL for the large-sized profile picture\").nullable().optional(),\n small: z.string().describe(\"URL for the small-sized profile picture\").nullable().optional(),\n medium: z.string().describe(\"URL for the medium-sized profile picture\").nullable().optional(),\n}).describe(\"URLs for the user's profile picture in different sizes.\");\nconst SplitwiseUpdateUser_NotificationsSchema: z.ZodTypeAny = z.object({\n bills: z.boolean().describe(\"Bill notifications\").nullable().optional(),\n payments: z.boolean().describe(\"Payment notifications\").nullable().optional(),\n announcements: z.boolean().describe(\"Announcement notifications\").nullable().optional(),\n expense_added: z.boolean().describe(\"Notifications when an expense is added\").nullable().optional(),\n added_to_group: z.boolean().describe(\"Notifications when added to a group\").nullable().optional(),\n added_as_friend: z.boolean().describe(\"Notifications when added as a friend\").nullable().optional(),\n expense_updated: z.boolean().describe(\"Notifications when an expense is updated\").nullable().optional(),\n monthly_summary: z.boolean().describe(\"Monthly summary notifications\").nullable().optional(),\n}).describe(\"User's notification preferences.\");\nconst SplitwiseUpdateUser_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\").nullable().optional(),\n locale: z.string().describe(\"User's locale setting\").nullable().optional(),\n picture: SplitwiseUpdateUser_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 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', 'GB')\").nullable().optional(),\n notifications: SplitwiseUpdateUser_NotificationsSchema.nullable().optional(),\n custom_picture: z.boolean().describe(\"Whether user has uploaded a custom profile image\").nullable().optional(),\n default_currency: z.string().describe(\"User's default currency code\").nullable().optional(),\n default_group_id: z.number().int().describe(\"ID of user's default group (-1 if not set)\").nullable().optional(),\n force_refresh_at: z.string().describe(\"Timestamp indicating when to force refresh user data\").nullable().optional(),\n notifications_read: z.string().describe(\"Timestamp when notifications were last read\").nullable().optional(),\n notifications_count: z.number().int().describe(\"Number of unread notifications\").nullable().optional(),\n registration_status: z.string().describe(\"Account confirmation state (e.g., 'confirmed')\").nullable().optional(),\n}).describe(\"Details of the updated user.\");\nexport const SplitwiseUpdateUserOutput: z.ZodTypeAny = z.object({\n user: SplitwiseUpdateUser_UserSchema.nullable(),\n}).describe(\"Response schema for updated user information.\");\n\nexport const splitwiseUpdateUser = action(\"SPLITWISE_UPDATE_USER\", {\n slug: \"splitwise-update-user\",\n name: \"Update User\",\n description: \"Tool to update user account details including name, email, password, and preferences. Use when you need to modify the current user's profile information.\",\n input: SplitwiseUpdateUserInput,\n output: SplitwiseUpdateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC5F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC9D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,oCAAkDA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oBAAoB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jE,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/update-user.d.ts
|
|
4
|
+
declare const SplitwiseUpdateUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const SplitwiseUpdateUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const splitwiseUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { splitwiseUpdateUser };
|
|
9
|
+
//# sourceMappingURL=update-user.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-user.d.cts","names":[],"sources":["../../src/actions/update-user.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAQuB;AAAA,cAkCnD,yBAAA,EAA2B,CAAA,CAAE,UAEkB;AAAA,cAE/C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-user.d.ts
|
|
4
|
+
declare const SplitwiseUpdateUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const SplitwiseUpdateUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const splitwiseUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { splitwiseUpdateUser };
|
|
9
|
+
//# sourceMappingURL=update-user.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-user.d.mts","names":[],"sources":["../../src/actions/update-user.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAQuB;AAAA,cAkCnD,yBAAA,EAA2B,CAAA,CAAE,UAEkB;AAAA,cAE/C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/update-user.ts
|
|
4
|
+
const SplitwiseUpdateUserInput = z.object({
|
|
5
|
+
id: z.number().int().describe("The user ID to update. Must be the authenticated user's ID."),
|
|
6
|
+
email: z.string().describe("User's email address").optional(),
|
|
7
|
+
locale: z.string().describe("Language/region preference (e.g., 'en', 'es', 'fr')").optional(),
|
|
8
|
+
password: z.string().describe("User's account password").optional(),
|
|
9
|
+
last_name: z.string().describe("User's family name").optional(),
|
|
10
|
+
first_name: z.string().describe("User's given name").optional(),
|
|
11
|
+
default_currency: z.string().describe("Preferred currency code (e.g., 'USD', 'EUR', 'GBP')").optional()
|
|
12
|
+
}).describe("Request schema for updating user account details.");
|
|
13
|
+
const SplitwiseUpdateUser_PictureSchema = z.object({
|
|
14
|
+
large: z.string().describe("URL for the large-sized profile picture").nullable().optional(),
|
|
15
|
+
small: z.string().describe("URL for the small-sized profile picture").nullable().optional(),
|
|
16
|
+
medium: z.string().describe("URL for the medium-sized profile picture").nullable().optional()
|
|
17
|
+
}).describe("URLs for the user's profile picture in different sizes.");
|
|
18
|
+
const SplitwiseUpdateUser_NotificationsSchema = z.object({
|
|
19
|
+
bills: z.boolean().describe("Bill notifications").nullable().optional(),
|
|
20
|
+
payments: z.boolean().describe("Payment notifications").nullable().optional(),
|
|
21
|
+
announcements: z.boolean().describe("Announcement notifications").nullable().optional(),
|
|
22
|
+
expense_added: z.boolean().describe("Notifications when an expense is added").nullable().optional(),
|
|
23
|
+
added_to_group: z.boolean().describe("Notifications when added to a group").nullable().optional(),
|
|
24
|
+
added_as_friend: z.boolean().describe("Notifications when added as a friend").nullable().optional(),
|
|
25
|
+
expense_updated: z.boolean().describe("Notifications when an expense is updated").nullable().optional(),
|
|
26
|
+
monthly_summary: z.boolean().describe("Monthly summary notifications").nullable().optional()
|
|
27
|
+
}).describe("User's notification preferences.");
|
|
28
|
+
const SplitwiseUpdateUser_UserSchema = z.object({
|
|
29
|
+
id: z.number().int().describe("Unique identifier for the user"),
|
|
30
|
+
email: z.string().describe("User's email address").nullable().optional(),
|
|
31
|
+
locale: z.string().describe("User's locale setting").nullable().optional(),
|
|
32
|
+
picture: SplitwiseUpdateUser_PictureSchema.nullable().optional(),
|
|
33
|
+
last_name: z.string().describe("User's last name").nullable().optional(),
|
|
34
|
+
first_name: z.string().describe("User's first name").nullable().optional(),
|
|
35
|
+
date_format: z.string().describe("User's preferred date format (e.g., 'MM/DD/YYYY')").nullable().optional(),
|
|
36
|
+
country_code: z.string().describe("User's country code (e.g., 'US', 'GB')").nullable().optional(),
|
|
37
|
+
notifications: SplitwiseUpdateUser_NotificationsSchema.nullable().optional(),
|
|
38
|
+
custom_picture: z.boolean().describe("Whether user has uploaded a custom profile image").nullable().optional(),
|
|
39
|
+
default_currency: z.string().describe("User's default currency code").nullable().optional(),
|
|
40
|
+
default_group_id: z.number().int().describe("ID of user's default group (-1 if not set)").nullable().optional(),
|
|
41
|
+
force_refresh_at: z.string().describe("Timestamp indicating when to force refresh user data").nullable().optional(),
|
|
42
|
+
notifications_read: z.string().describe("Timestamp when notifications were last read").nullable().optional(),
|
|
43
|
+
notifications_count: z.number().int().describe("Number of unread notifications").nullable().optional(),
|
|
44
|
+
registration_status: z.string().describe("Account confirmation state (e.g., 'confirmed')").nullable().optional()
|
|
45
|
+
}).describe("Details of the updated user.");
|
|
46
|
+
const splitwiseUpdateUser = action("SPLITWISE_UPDATE_USER", {
|
|
47
|
+
slug: "splitwise-update-user",
|
|
48
|
+
name: "Update User",
|
|
49
|
+
description: "Tool to update user account details including name, email, password, and preferences. Use when you need to modify the current user's profile information.",
|
|
50
|
+
input: SplitwiseUpdateUserInput,
|
|
51
|
+
output: z.object({ user: SplitwiseUpdateUser_UserSchema.nullable() }).describe("Response schema for updated user information.")
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
export { splitwiseUpdateUser };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=update-user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-user.mjs","names":[],"sources":["../../src/actions/update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseUpdateUserInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The user ID to update. Must be the authenticated user's ID.\"),\n email: z.string().describe(\"User's email address\").optional(),\n locale: z.string().describe(\"Language/region preference (e.g., 'en', 'es', 'fr')\").optional(),\n password: z.string().describe(\"User's account password\").optional(),\n last_name: z.string().describe(\"User's family name\").optional(),\n first_name: z.string().describe(\"User's given name\").optional(),\n default_currency: z.string().describe(\"Preferred currency code (e.g., 'USD', 'EUR', 'GBP')\").optional(),\n}).describe(\"Request schema for updating user account details.\");\nconst SplitwiseUpdateUser_PictureSchema: z.ZodTypeAny = z.object({\n large: z.string().describe(\"URL for the large-sized profile picture\").nullable().optional(),\n small: z.string().describe(\"URL for the small-sized profile picture\").nullable().optional(),\n medium: z.string().describe(\"URL for the medium-sized profile picture\").nullable().optional(),\n}).describe(\"URLs for the user's profile picture in different sizes.\");\nconst SplitwiseUpdateUser_NotificationsSchema: z.ZodTypeAny = z.object({\n bills: z.boolean().describe(\"Bill notifications\").nullable().optional(),\n payments: z.boolean().describe(\"Payment notifications\").nullable().optional(),\n announcements: z.boolean().describe(\"Announcement notifications\").nullable().optional(),\n expense_added: z.boolean().describe(\"Notifications when an expense is added\").nullable().optional(),\n added_to_group: z.boolean().describe(\"Notifications when added to a group\").nullable().optional(),\n added_as_friend: z.boolean().describe(\"Notifications when added as a friend\").nullable().optional(),\n expense_updated: z.boolean().describe(\"Notifications when an expense is updated\").nullable().optional(),\n monthly_summary: z.boolean().describe(\"Monthly summary notifications\").nullable().optional(),\n}).describe(\"User's notification preferences.\");\nconst SplitwiseUpdateUser_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\").nullable().optional(),\n locale: z.string().describe(\"User's locale setting\").nullable().optional(),\n picture: SplitwiseUpdateUser_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 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', 'GB')\").nullable().optional(),\n notifications: SplitwiseUpdateUser_NotificationsSchema.nullable().optional(),\n custom_picture: z.boolean().describe(\"Whether user has uploaded a custom profile image\").nullable().optional(),\n default_currency: z.string().describe(\"User's default currency code\").nullable().optional(),\n default_group_id: z.number().int().describe(\"ID of user's default group (-1 if not set)\").nullable().optional(),\n force_refresh_at: z.string().describe(\"Timestamp indicating when to force refresh user data\").nullable().optional(),\n notifications_read: z.string().describe(\"Timestamp when notifications were last read\").nullable().optional(),\n notifications_count: z.number().int().describe(\"Number of unread notifications\").nullable().optional(),\n registration_status: z.string().describe(\"Account confirmation state (e.g., 'confirmed')\").nullable().optional(),\n}).describe(\"Details of the updated user.\");\nexport const SplitwiseUpdateUserOutput: z.ZodTypeAny = z.object({\n user: SplitwiseUpdateUser_UserSchema.nullable(),\n}).describe(\"Response schema for updated user information.\");\n\nexport const splitwiseUpdateUser = action(\"SPLITWISE_UPDATE_USER\", {\n slug: \"splitwise-update-user\",\n name: \"Update User\",\n description: \"Tool to update user account details including name, email, password, and preferences. Use when you need to modify the current user's profile information.\",\n input: SplitwiseUpdateUserInput,\n output: SplitwiseUpdateUserOutput,\n});\n"],"mappings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AAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAK1C,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqD,EAAE,OAAO,EAC9D,MAAM,+BAA+B,SAAS,EAChD,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const splitwise = defineApp({\n slug: \"splitwise\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,aAAA,uCAAA,CAAA,CAAA,UAAA,CAAsB;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const splitwise = defineApp({\n slug: \"splitwise\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,YAAY,UAAU;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const splitwiseCatalog = {
|
|
4
|
+
"slug": "splitwise",
|
|
5
|
+
"name": "Splitwise",
|
|
6
|
+
"description": "Splitwise helps you split bills and expenses with friends and family.",
|
|
7
|
+
"category": "Accounting",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/splitwise",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.splitwiseCatalog = splitwiseCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const splitwiseCatalog = {\n \"slug\": \"splitwise\",\n \"name\": \"Splitwise\",\n \"description\": \"Splitwise helps you split bills and expenses with friends and family.\",\n \"category\": \"Accounting\",\n \"logo\": \"https://logos.composio.dev/api/splitwise\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const splitwiseCatalog: {
|
|
4
|
+
readonly slug: "splitwise";
|
|
5
|
+
readonly name: "Splitwise";
|
|
6
|
+
readonly description: "Splitwise helps you split bills and expenses with friends and family.";
|
|
7
|
+
readonly category: "Accounting";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/splitwise";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { splitwiseCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,gBAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const splitwiseCatalog: {
|
|
4
|
+
readonly slug: "splitwise";
|
|
5
|
+
readonly name: "Splitwise";
|
|
6
|
+
readonly description: "Splitwise helps you split bills and expenses with friends and family.";
|
|
7
|
+
readonly category: "Accounting";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/splitwise";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { splitwiseCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,gBAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const splitwiseCatalog = {
|
|
4
|
+
"slug": "splitwise",
|
|
5
|
+
"name": "Splitwise",
|
|
6
|
+
"description": "Splitwise helps you split bills and expenses with friends and family.",
|
|
7
|
+
"category": "Accounting",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/splitwise",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { splitwiseCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const splitwiseCatalog = {\n \"slug\": \"splitwise\",\n \"name\": \"Splitwise\",\n \"description\": \"Splitwise helps you split bills and expenses with friends and family.\",\n \"category\": \"Accounting\",\n \"logo\": \"https://logos.composio.dev/api/splitwise\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "splitwise";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeSplitwiseTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executeSplitwiseTool = executeSplitwiseTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"splitwise\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSplitwiseTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,qBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "splitwise";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeSplitwiseTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executeSplitwiseTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"splitwise\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSplitwiseTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,qBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_app = require("./app.cjs");
|
|
3
|
+
const require_catalog = require("./catalog.cjs");
|
|
4
|
+
const require_add_friend = require("./actions/add-friend.cjs");
|
|
5
|
+
const require_add_user_to_group = require("./actions/add-user-to-group.cjs");
|
|
6
|
+
const require_create_comment = require("./actions/create-comment.cjs");
|
|
7
|
+
const require_create_expense = require("./actions/create-expense.cjs");
|
|
8
|
+
const require_create_friends = require("./actions/create-friends.cjs");
|
|
9
|
+
const require_create_group = require("./actions/create-group.cjs");
|
|
10
|
+
const require_delete_comment = require("./actions/delete-comment.cjs");
|
|
11
|
+
const require_delete_expense = require("./actions/delete-expense.cjs");
|
|
12
|
+
const require_delete_friend = require("./actions/delete-friend.cjs");
|
|
13
|
+
const require_delete_group = require("./actions/delete-group.cjs");
|
|
14
|
+
const require_get_categories = require("./actions/get-categories.cjs");
|
|
15
|
+
const require_get_comments = require("./actions/get-comments.cjs");
|
|
16
|
+
const require_get_currencies = require("./actions/get-currencies.cjs");
|
|
17
|
+
const require_get_current_user = require("./actions/get-current-user.cjs");
|
|
18
|
+
const require_get_expense = require("./actions/get-expense.cjs");
|
|
19
|
+
const require_get_expenses = require("./actions/get-expenses.cjs");
|
|
20
|
+
const require_get_friend = require("./actions/get-friend.cjs");
|
|
21
|
+
const require_get_friends = require("./actions/get-friends.cjs");
|
|
22
|
+
const require_get_group = require("./actions/get-group.cjs");
|
|
23
|
+
const require_get_groups = require("./actions/get-groups.cjs");
|
|
24
|
+
const require_get_notifications = require("./actions/get-notifications.cjs");
|
|
25
|
+
const require_get_user = require("./actions/get-user.cjs");
|
|
26
|
+
const require_remove_user_from_group = require("./actions/remove-user-from-group.cjs");
|
|
27
|
+
const require_undelete_expense = require("./actions/undelete-expense.cjs");
|
|
28
|
+
const require_undelete_group = require("./actions/undelete-group.cjs");
|
|
29
|
+
const require_update_expense = require("./actions/update-expense.cjs");
|
|
30
|
+
const require_update_user = require("./actions/update-user.cjs");
|
|
31
|
+
require("./actions/index.cjs");
|
|
32
|
+
exports.splitwise = require_app.splitwise;
|
|
33
|
+
exports.splitwiseAddFriend = require_add_friend.splitwiseAddFriend;
|
|
34
|
+
exports.splitwiseAddUserToGroup = require_add_user_to_group.splitwiseAddUserToGroup;
|
|
35
|
+
exports.splitwiseCatalog = require_catalog.splitwiseCatalog;
|
|
36
|
+
exports.splitwiseCreateComment = require_create_comment.splitwiseCreateComment;
|
|
37
|
+
exports.splitwiseCreateExpense = require_create_expense.splitwiseCreateExpense;
|
|
38
|
+
exports.splitwiseCreateFriends = require_create_friends.splitwiseCreateFriends;
|
|
39
|
+
exports.splitwiseCreateGroup = require_create_group.splitwiseCreateGroup;
|
|
40
|
+
exports.splitwiseDeleteComment = require_delete_comment.splitwiseDeleteComment;
|
|
41
|
+
exports.splitwiseDeleteExpense = require_delete_expense.splitwiseDeleteExpense;
|
|
42
|
+
exports.splitwiseDeleteFriend = require_delete_friend.splitwiseDeleteFriend;
|
|
43
|
+
exports.splitwiseDeleteGroup = require_delete_group.splitwiseDeleteGroup;
|
|
44
|
+
exports.splitwiseGetCategories = require_get_categories.splitwiseGetCategories;
|
|
45
|
+
exports.splitwiseGetComments = require_get_comments.splitwiseGetComments;
|
|
46
|
+
exports.splitwiseGetCurrencies = require_get_currencies.splitwiseGetCurrencies;
|
|
47
|
+
exports.splitwiseGetCurrentUser = require_get_current_user.splitwiseGetCurrentUser;
|
|
48
|
+
exports.splitwiseGetExpense = require_get_expense.splitwiseGetExpense;
|
|
49
|
+
exports.splitwiseGetExpenses = require_get_expenses.splitwiseGetExpenses;
|
|
50
|
+
exports.splitwiseGetFriend = require_get_friend.splitwiseGetFriend;
|
|
51
|
+
exports.splitwiseGetFriends = require_get_friends.splitwiseGetFriends;
|
|
52
|
+
exports.splitwiseGetGroup = require_get_group.splitwiseGetGroup;
|
|
53
|
+
exports.splitwiseGetGroups = require_get_groups.splitwiseGetGroups;
|
|
54
|
+
exports.splitwiseGetNotifications = require_get_notifications.splitwiseGetNotifications;
|
|
55
|
+
exports.splitwiseGetUser = require_get_user.splitwiseGetUser;
|
|
56
|
+
exports.splitwiseRemoveUserFromGroup = require_remove_user_from_group.splitwiseRemoveUserFromGroup;
|
|
57
|
+
exports.splitwiseUndeleteExpense = require_undelete_expense.splitwiseUndeleteExpense;
|
|
58
|
+
exports.splitwiseUndeleteGroup = require_undelete_group.splitwiseUndeleteGroup;
|
|
59
|
+
exports.splitwiseUpdateExpense = require_update_expense.splitwiseUpdateExpense;
|
|
60
|
+
exports.splitwiseUpdateUser = require_update_user.splitwiseUpdateUser;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { splitwiseAddFriend } from "./actions/add-friend.cjs";
|
|
2
|
+
import { splitwiseAddUserToGroup } from "./actions/add-user-to-group.cjs";
|
|
3
|
+
import { splitwiseCreateComment } from "./actions/create-comment.cjs";
|
|
4
|
+
import { splitwiseCreateExpense } from "./actions/create-expense.cjs";
|
|
5
|
+
import { splitwiseCreateFriends } from "./actions/create-friends.cjs";
|
|
6
|
+
import { splitwiseCreateGroup } from "./actions/create-group.cjs";
|
|
7
|
+
import { splitwiseDeleteComment } from "./actions/delete-comment.cjs";
|
|
8
|
+
import { splitwiseDeleteExpense } from "./actions/delete-expense.cjs";
|
|
9
|
+
import { splitwiseDeleteFriend } from "./actions/delete-friend.cjs";
|
|
10
|
+
import { splitwiseDeleteGroup } from "./actions/delete-group.cjs";
|
|
11
|
+
import { splitwiseGetCategories } from "./actions/get-categories.cjs";
|
|
12
|
+
import { splitwiseGetComments } from "./actions/get-comments.cjs";
|
|
13
|
+
import { splitwiseGetCurrencies } from "./actions/get-currencies.cjs";
|
|
14
|
+
import { splitwiseGetCurrentUser } from "./actions/get-current-user.cjs";
|
|
15
|
+
import { splitwiseGetExpense } from "./actions/get-expense.cjs";
|
|
16
|
+
import { splitwiseGetExpenses } from "./actions/get-expenses.cjs";
|
|
17
|
+
import { splitwiseGetFriend } from "./actions/get-friend.cjs";
|
|
18
|
+
import { splitwiseGetFriends } from "./actions/get-friends.cjs";
|
|
19
|
+
import { splitwiseGetGroup } from "./actions/get-group.cjs";
|
|
20
|
+
import { splitwiseGetGroups } from "./actions/get-groups.cjs";
|
|
21
|
+
import { splitwiseGetNotifications } from "./actions/get-notifications.cjs";
|
|
22
|
+
import { splitwiseGetUser } from "./actions/get-user.cjs";
|
|
23
|
+
import { splitwiseRemoveUserFromGroup } from "./actions/remove-user-from-group.cjs";
|
|
24
|
+
import { splitwiseUndeleteExpense } from "./actions/undelete-expense.cjs";
|
|
25
|
+
import { splitwiseUndeleteGroup } from "./actions/undelete-group.cjs";
|
|
26
|
+
import { splitwiseUpdateExpense } from "./actions/update-expense.cjs";
|
|
27
|
+
import { splitwiseUpdateUser } from "./actions/update-user.cjs";
|
|
28
|
+
import { splitwise } from "./app.cjs";
|
|
29
|
+
import { splitwiseCatalog } from "./catalog.cjs";
|
|
30
|
+
export { splitwise, splitwiseAddFriend, splitwiseAddUserToGroup, splitwiseCatalog, splitwiseCreateComment, splitwiseCreateExpense, splitwiseCreateFriends, splitwiseCreateGroup, splitwiseDeleteComment, splitwiseDeleteExpense, splitwiseDeleteFriend, splitwiseDeleteGroup, splitwiseGetCategories, splitwiseGetComments, splitwiseGetCurrencies, splitwiseGetCurrentUser, splitwiseGetExpense, splitwiseGetExpenses, splitwiseGetFriend, splitwiseGetFriends, splitwiseGetGroup, splitwiseGetGroups, splitwiseGetNotifications, splitwiseGetUser, splitwiseRemoveUserFromGroup, splitwiseUndeleteExpense, splitwiseUndeleteGroup, splitwiseUpdateExpense, splitwiseUpdateUser };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { splitwiseAddFriend } from "./actions/add-friend.mjs";
|
|
2
|
+
import { splitwiseAddUserToGroup } from "./actions/add-user-to-group.mjs";
|
|
3
|
+
import { splitwiseCreateComment } from "./actions/create-comment.mjs";
|
|
4
|
+
import { splitwiseCreateExpense } from "./actions/create-expense.mjs";
|
|
5
|
+
import { splitwiseCreateFriends } from "./actions/create-friends.mjs";
|
|
6
|
+
import { splitwiseCreateGroup } from "./actions/create-group.mjs";
|
|
7
|
+
import { splitwiseDeleteComment } from "./actions/delete-comment.mjs";
|
|
8
|
+
import { splitwiseDeleteExpense } from "./actions/delete-expense.mjs";
|
|
9
|
+
import { splitwiseDeleteFriend } from "./actions/delete-friend.mjs";
|
|
10
|
+
import { splitwiseDeleteGroup } from "./actions/delete-group.mjs";
|
|
11
|
+
import { splitwiseGetCategories } from "./actions/get-categories.mjs";
|
|
12
|
+
import { splitwiseGetComments } from "./actions/get-comments.mjs";
|
|
13
|
+
import { splitwiseGetCurrencies } from "./actions/get-currencies.mjs";
|
|
14
|
+
import { splitwiseGetCurrentUser } from "./actions/get-current-user.mjs";
|
|
15
|
+
import { splitwiseGetExpense } from "./actions/get-expense.mjs";
|
|
16
|
+
import { splitwiseGetExpenses } from "./actions/get-expenses.mjs";
|
|
17
|
+
import { splitwiseGetFriend } from "./actions/get-friend.mjs";
|
|
18
|
+
import { splitwiseGetFriends } from "./actions/get-friends.mjs";
|
|
19
|
+
import { splitwiseGetGroup } from "./actions/get-group.mjs";
|
|
20
|
+
import { splitwiseGetGroups } from "./actions/get-groups.mjs";
|
|
21
|
+
import { splitwiseGetNotifications } from "./actions/get-notifications.mjs";
|
|
22
|
+
import { splitwiseGetUser } from "./actions/get-user.mjs";
|
|
23
|
+
import { splitwiseRemoveUserFromGroup } from "./actions/remove-user-from-group.mjs";
|
|
24
|
+
import { splitwiseUndeleteExpense } from "./actions/undelete-expense.mjs";
|
|
25
|
+
import { splitwiseUndeleteGroup } from "./actions/undelete-group.mjs";
|
|
26
|
+
import { splitwiseUpdateExpense } from "./actions/update-expense.mjs";
|
|
27
|
+
import { splitwiseUpdateUser } from "./actions/update-user.mjs";
|
|
28
|
+
import { splitwise } from "./app.mjs";
|
|
29
|
+
import { splitwiseCatalog } from "./catalog.mjs";
|
|
30
|
+
export { splitwise, splitwiseAddFriend, splitwiseAddUserToGroup, splitwiseCatalog, splitwiseCreateComment, splitwiseCreateExpense, splitwiseCreateFriends, splitwiseCreateGroup, splitwiseDeleteComment, splitwiseDeleteExpense, splitwiseDeleteFriend, splitwiseDeleteGroup, splitwiseGetCategories, splitwiseGetComments, splitwiseGetCurrencies, splitwiseGetCurrentUser, splitwiseGetExpense, splitwiseGetExpenses, splitwiseGetFriend, splitwiseGetFriends, splitwiseGetGroup, splitwiseGetGroups, splitwiseGetNotifications, splitwiseGetUser, splitwiseRemoveUserFromGroup, splitwiseUndeleteExpense, splitwiseUndeleteGroup, splitwiseUpdateExpense, splitwiseUpdateUser };
|