@keystrokehq/splitwise 0.1.2 → 0.1.4
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/dist/actions/add-friend.cjs +5 -5
- package/dist/actions/add-friend.cjs.map +1 -1
- package/dist/actions/add-friend.d.cts +19 -7
- package/dist/actions/add-friend.d.mts +19 -7
- package/dist/actions/add-friend.mjs +5 -5
- package/dist/actions/add-friend.mjs.map +1 -1
- package/dist/actions/add-user-to-group.cjs +4 -4
- package/dist/actions/add-user-to-group.cjs.map +1 -1
- package/dist/actions/add-user-to-group.d.cts +17 -5
- package/dist/actions/add-user-to-group.d.mts +17 -5
- package/dist/actions/add-user-to-group.mjs +4 -4
- package/dist/actions/add-user-to-group.mjs.map +1 -1
- package/dist/actions/create-comment.cjs +3 -3
- package/dist/actions/create-comment.cjs.map +1 -1
- package/dist/actions/create-comment.d.cts +16 -4
- package/dist/actions/create-comment.d.mts +16 -4
- package/dist/actions/create-comment.mjs +3 -3
- package/dist/actions/create-comment.mjs.map +1 -1
- package/dist/actions/create-expense.cjs +10 -10
- package/dist/actions/create-expense.cjs.map +1 -1
- package/dist/actions/create-expense.d.cts +30 -17
- package/dist/actions/create-expense.d.mts +30 -17
- package/dist/actions/create-expense.mjs +10 -10
- package/dist/actions/create-expense.mjs.map +1 -1
- package/dist/actions/create-friends.cjs +6 -6
- package/dist/actions/create-friends.cjs.map +1 -1
- package/dist/actions/create-friends.d.cts +21 -8
- package/dist/actions/create-friends.d.mts +21 -8
- package/dist/actions/create-friends.mjs +6 -6
- package/dist/actions/create-friends.mjs.map +1 -1
- package/dist/actions/create-group.cjs +8 -8
- package/dist/actions/create-group.cjs.map +1 -1
- package/dist/actions/create-group.d.cts +22 -9
- package/dist/actions/create-group.d.mts +22 -9
- package/dist/actions/create-group.mjs +8 -8
- package/dist/actions/create-group.mjs.map +1 -1
- package/dist/actions/delete-comment.cjs +4 -4
- package/dist/actions/delete-comment.cjs.map +1 -1
- package/dist/actions/delete-comment.d.cts +17 -5
- package/dist/actions/delete-comment.d.mts +17 -5
- package/dist/actions/delete-comment.mjs +4 -4
- package/dist/actions/delete-comment.mjs.map +1 -1
- package/dist/actions/delete-expense.cjs +1 -1
- package/dist/actions/delete-expense.cjs.map +1 -1
- package/dist/actions/delete-expense.d.cts +14 -2
- package/dist/actions/delete-expense.d.mts +14 -2
- package/dist/actions/delete-expense.mjs +1 -1
- package/dist/actions/delete-expense.mjs.map +1 -1
- package/dist/actions/delete-friend.cjs +1 -1
- package/dist/actions/delete-friend.cjs.map +1 -1
- package/dist/actions/delete-friend.d.cts +14 -2
- package/dist/actions/delete-friend.d.mts +14 -2
- package/dist/actions/delete-friend.mjs +1 -1
- package/dist/actions/delete-friend.mjs.map +1 -1
- package/dist/actions/delete-group.cjs +1 -1
- package/dist/actions/delete-group.cjs.map +1 -1
- package/dist/actions/delete-group.d.cts +14 -2
- package/dist/actions/delete-group.d.mts +14 -2
- package/dist/actions/delete-group.mjs +1 -1
- package/dist/actions/delete-group.mjs.map +1 -1
- package/dist/actions/get-categories.cjs +3 -3
- package/dist/actions/get-categories.cjs.map +1 -1
- package/dist/actions/get-categories.d.cts +16 -4
- package/dist/actions/get-categories.d.cts.map +1 -1
- package/dist/actions/get-categories.d.mts +16 -4
- package/dist/actions/get-categories.d.mts.map +1 -1
- package/dist/actions/get-categories.mjs +3 -3
- package/dist/actions/get-categories.mjs.map +1 -1
- package/dist/actions/get-comments.cjs +4 -4
- package/dist/actions/get-comments.cjs.map +1 -1
- package/dist/actions/get-comments.d.cts +17 -5
- package/dist/actions/get-comments.d.mts +17 -5
- package/dist/actions/get-comments.mjs +4 -4
- package/dist/actions/get-comments.mjs.map +1 -1
- package/dist/actions/get-currencies.cjs +2 -2
- package/dist/actions/get-currencies.cjs.map +1 -1
- package/dist/actions/get-currencies.d.cts +15 -3
- package/dist/actions/get-currencies.d.cts.map +1 -1
- package/dist/actions/get-currencies.d.mts +15 -3
- package/dist/actions/get-currencies.d.mts.map +1 -1
- package/dist/actions/get-currencies.mjs +2 -2
- package/dist/actions/get-currencies.mjs.map +1 -1
- package/dist/actions/get-current-user.cjs +4 -4
- package/dist/actions/get-current-user.cjs.map +1 -1
- package/dist/actions/get-current-user.d.cts +17 -5
- package/dist/actions/get-current-user.d.cts.map +1 -1
- package/dist/actions/get-current-user.d.mts +17 -5
- package/dist/actions/get-current-user.d.mts.map +1 -1
- package/dist/actions/get-current-user.mjs +4 -4
- package/dist/actions/get-current-user.mjs.map +1 -1
- package/dist/actions/get-expense.cjs +9 -9
- package/dist/actions/get-expense.cjs.map +1 -1
- package/dist/actions/get-expense.d.cts +30 -18
- package/dist/actions/get-expense.d.mts +30 -18
- package/dist/actions/get-expense.mjs +9 -9
- package/dist/actions/get-expense.mjs.map +1 -1
- package/dist/actions/get-expenses.cjs +9 -9
- package/dist/actions/get-expenses.cjs.map +1 -1
- package/dist/actions/get-expenses.d.cts +30 -18
- package/dist/actions/get-expenses.d.mts +30 -18
- package/dist/actions/get-expenses.mjs +9 -9
- package/dist/actions/get-expenses.mjs.map +1 -1
- package/dist/actions/get-friend.cjs +5 -5
- package/dist/actions/get-friend.cjs.map +1 -1
- package/dist/actions/get-friend.d.cts +19 -7
- package/dist/actions/get-friend.d.mts +19 -7
- package/dist/actions/get-friend.mjs +5 -5
- package/dist/actions/get-friend.mjs.map +1 -1
- package/dist/actions/get-friends.cjs +5 -5
- package/dist/actions/get-friends.cjs.map +1 -1
- package/dist/actions/get-friends.d.cts +19 -7
- package/dist/actions/get-friends.d.cts.map +1 -1
- package/dist/actions/get-friends.d.mts +19 -7
- package/dist/actions/get-friends.d.mts.map +1 -1
- package/dist/actions/get-friends.mjs +5 -5
- package/dist/actions/get-friends.mjs.map +1 -1
- package/dist/actions/get-group.cjs +9 -9
- package/dist/actions/get-group.cjs.map +1 -1
- package/dist/actions/get-group.d.cts +23 -11
- package/dist/actions/get-group.d.mts +23 -11
- package/dist/actions/get-group.mjs +9 -9
- package/dist/actions/get-group.mjs.map +1 -1
- package/dist/actions/get-groups.cjs +9 -9
- package/dist/actions/get-groups.cjs.map +1 -1
- package/dist/actions/get-groups.d.cts +23 -11
- package/dist/actions/get-groups.d.cts.map +1 -1
- package/dist/actions/get-groups.d.mts +23 -11
- package/dist/actions/get-groups.d.mts.map +1 -1
- package/dist/actions/get-groups.mjs +9 -9
- package/dist/actions/get-groups.mjs.map +1 -1
- package/dist/actions/get-notifications.cjs +3 -3
- package/dist/actions/get-notifications.cjs.map +1 -1
- package/dist/actions/get-notifications.d.cts +16 -4
- package/dist/actions/get-notifications.d.mts +16 -4
- package/dist/actions/get-notifications.mjs +3 -3
- package/dist/actions/get-notifications.mjs.map +1 -1
- package/dist/actions/get-user.cjs +3 -3
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +16 -4
- package/dist/actions/get-user.d.mts +16 -4
- package/dist/actions/get-user.mjs +3 -3
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/remove-user-from-group.cjs +1 -1
- package/dist/actions/remove-user-from-group.cjs.map +1 -1
- package/dist/actions/remove-user-from-group.d.cts +14 -2
- package/dist/actions/remove-user-from-group.d.mts +14 -2
- package/dist/actions/remove-user-from-group.mjs +1 -1
- package/dist/actions/remove-user-from-group.mjs.map +1 -1
- package/dist/actions/undelete-expense.cjs +1 -1
- package/dist/actions/undelete-expense.cjs.map +1 -1
- package/dist/actions/undelete-expense.d.cts +14 -2
- package/dist/actions/undelete-expense.d.mts +14 -2
- package/dist/actions/undelete-expense.mjs +1 -1
- package/dist/actions/undelete-expense.mjs.map +1 -1
- package/dist/actions/undelete-group.cjs +1 -1
- package/dist/actions/undelete-group.cjs.map +1 -1
- package/dist/actions/undelete-group.d.cts +14 -2
- package/dist/actions/undelete-group.d.mts +14 -2
- package/dist/actions/undelete-group.mjs +1 -1
- package/dist/actions/undelete-group.mjs.map +1 -1
- package/dist/actions/update-expense.cjs +2 -2
- package/dist/actions/update-expense.cjs.map +1 -1
- package/dist/actions/update-expense.d.cts +16 -3
- package/dist/actions/update-expense.d.mts +16 -3
- package/dist/actions/update-expense.mjs +2 -2
- package/dist/actions/update-expense.mjs.map +1 -1
- package/dist/actions/update-user.cjs +4 -4
- package/dist/actions/update-user.cjs.map +1 -1
- package/dist/actions/update-user.d.cts +17 -5
- package/dist/actions/update-user.d.mts +17 -5
- package/dist/actions/update-user.mjs +4 -4
- package/dist/actions/update-user.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -1
- package/dist/app.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7,10 +7,22 @@ declare const SplitwiseUndeleteGroupInput: z.ZodObject<{
|
|
|
7
7
|
declare const SplitwiseUndeleteGroupOutput: z.ZodObject<{
|
|
8
8
|
errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
9
9
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const splitwiseUndeleteGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
id: number;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
14
|
+
connectionId: z.ZodString;
|
|
15
|
+
entityId: z.ZodString;
|
|
16
|
+
instanceId: z.ZodString;
|
|
17
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
+
accessToken: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
20
|
+
connectionId: z.ZodString;
|
|
21
|
+
entityId: z.ZodString;
|
|
22
|
+
instanceId: z.ZodString;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
accessToken: z.ZodString;
|
|
25
|
+
}, z.core.$strip>>]>;
|
|
14
26
|
//#endregion
|
|
15
27
|
export { splitwiseUndeleteGroup };
|
|
16
28
|
//# sourceMappingURL=undelete-group.d.mts.map
|
|
@@ -8,7 +8,7 @@ const splitwiseUndeleteGroup = action("SPLITWISE_UNDELETE_GROUP", {
|
|
|
8
8
|
output: z.object({
|
|
9
9
|
errors: z.array(z.string()).describe("List of error messages if the restoration failed.").nullable().optional(),
|
|
10
10
|
success: z.boolean().describe("Indicates whether the group was successfully restored.").nullable()
|
|
11
|
-
}).describe("Response model for the UndeleteGroup action.")
|
|
11
|
+
}).passthrough().describe("Response model for the UndeleteGroup action.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { splitwiseUndeleteGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"undelete-group.mjs","names":[],"sources":["../../src/actions/undelete-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseUndeleteGroupInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the group to restore.\"),\n}).describe(\"Request model for restoring a deleted group.\");\nexport const SplitwiseUndeleteGroupOutput = z.object({\n errors: z.array(z.string()).describe(\"List of error messages if the restoration failed.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the group was successfully restored.\").nullable(),\n}).describe(\"Response model for the UndeleteGroup action.\");\n\nexport const splitwiseUndeleteGroup = action(\"SPLITWISE_UNDELETE_GROUP\", {\n slug: \"splitwise-undelete-group\",\n name: \"Restore Deleted Group\",\n description: \"Tool to restore a previously deleted group and all its associated records. Use when you need to recover a group that was deleted. Call after confirming the correct group ID.\",\n input: SplitwiseUndeleteGroupInput,\n output: SplitwiseUndeleteGroupOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZyC,EAAE,OAAO,EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EAChF,CAAC,CAAC,CAAC,SAAS,8CAUH;CACP,QAV0C,EAAE,OAAO;EACnD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"undelete-group.mjs","names":[],"sources":["../../src/actions/undelete-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseUndeleteGroupInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the group to restore.\"),\n}).describe(\"Request model for restoring a deleted group.\");\nexport const SplitwiseUndeleteGroupOutput = z.object({\n errors: z.array(z.string()).describe(\"List of error messages if the restoration failed.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the group was successfully restored.\").nullable(),\n}).passthrough().describe(\"Response model for the UndeleteGroup action.\");\n\nexport const splitwiseUndeleteGroup = action(\"SPLITWISE_UNDELETE_GROUP\", {\n slug: \"splitwise-undelete-group\",\n name: \"Restore Deleted Group\",\n description: \"Tool to restore a previously deleted group and all its associated records. Use when you need to recover a group that was deleted. Call after confirming the correct group ID.\",\n input: SplitwiseUndeleteGroupInput,\n output: SplitwiseUndeleteGroupOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZyC,EAAE,OAAO,EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EAChF,CAAC,CAAC,CAAC,SAAS,8CAUH;CACP,QAV0C,EAAE,OAAO;EACnD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ const SplitwiseUpdateExpenseInput = zod.z.object({
|
|
|
12
12
|
first_name: zod.z.string().describe("First name of the participant").optional(),
|
|
13
13
|
owed_share: zod.z.string().describe("Amount this user owes (string decimal, 2 dp)"),
|
|
14
14
|
paid_share: zod.z.string().describe("Amount this user paid (string decimal, 2 dp)")
|
|
15
|
-
}).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(),
|
|
15
|
+
}).passthrough().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(),
|
|
16
16
|
details: zod.z.string().describe("Additional notes for the expense").optional(),
|
|
17
17
|
group_id: zod.z.number().int().describe("Group ID to assign this expense to (0 for no group)").optional(),
|
|
18
18
|
category_id: zod.z.number().int().describe("Category ID from get_categories").optional(),
|
|
@@ -29,7 +29,7 @@ const SplitwiseUpdateExpenseInput = zod.z.object({
|
|
|
29
29
|
const SplitwiseUpdateExpenseOutput = zod.z.object({
|
|
30
30
|
errors: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Errors returned by the API; empty if none"),
|
|
31
31
|
expenses: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List containing the updated expense object")
|
|
32
|
-
}).describe("Response model for update_expense action.");
|
|
32
|
+
}).passthrough().describe("Response model for update_expense action.");
|
|
33
33
|
const splitwiseUpdateExpense = require_action.action("SPLITWISE_UPDATE_EXPENSE", {
|
|
34
34
|
slug: "splitwise-update-expense",
|
|
35
35
|
name: "Update Expense",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense.cjs","names":["z","action"],"sources":["../../src/actions/update-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseUpdateExpenseInput = 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.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":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC3J,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAChF,CAAC,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,CAAC,SAAS,mSAAmS,CAAC,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"update-expense.cjs","names":["z","action"],"sources":["../../src/actions/update-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseUpdateExpenseInput = 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}).passthrough().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.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}).passthrough().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":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC3J,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAChF,CAAC,CAAC,CAA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>;
|
|
13
13
|
owed_share: z.ZodString;
|
|
14
14
|
paid_share: z.ZodString;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>>>;
|
|
16
16
|
details: z.ZodOptional<z.ZodString>;
|
|
17
17
|
group_id: z.ZodOptional<z.ZodNumber>;
|
|
18
18
|
category_id: z.ZodOptional<z.ZodNumber>;
|
|
@@ -29,12 +29,13 @@ declare const SplitwiseUpdateExpenseInput: z.ZodObject<{
|
|
|
29
29
|
declare const SplitwiseUpdateExpenseOutput: z.ZodObject<{
|
|
30
30
|
errors: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
31
31
|
expenses: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
32
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>;
|
|
33
33
|
declare const splitwiseUpdateExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
34
|
id: number;
|
|
35
35
|
cost?: string | undefined;
|
|
36
36
|
date?: string | undefined;
|
|
37
37
|
users?: {
|
|
38
|
+
[x: string]: unknown;
|
|
38
39
|
owed_share: string;
|
|
39
40
|
paid_share: string;
|
|
40
41
|
email?: string | undefined;
|
|
@@ -48,7 +49,19 @@ declare const splitwiseUpdateExpense: import("@keystrokehq/action").WorkflowActi
|
|
|
48
49
|
description?: string | undefined;
|
|
49
50
|
currency_code?: string | undefined;
|
|
50
51
|
repeat_interval?: "never" | "weekly" | "fortnightly" | "monthly" | "yearly" | undefined;
|
|
51
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
52
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
53
|
+
connectionId: z.ZodString;
|
|
54
|
+
entityId: z.ZodString;
|
|
55
|
+
instanceId: z.ZodString;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
accessToken: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
59
|
+
connectionId: z.ZodString;
|
|
60
|
+
entityId: z.ZodString;
|
|
61
|
+
instanceId: z.ZodString;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
accessToken: z.ZodString;
|
|
64
|
+
}, z.core.$strip>>]>;
|
|
52
65
|
//#endregion
|
|
53
66
|
export { splitwiseUpdateExpense };
|
|
54
67
|
//# sourceMappingURL=update-expense.d.cts.map
|
|
@@ -12,7 +12,7 @@ declare const SplitwiseUpdateExpenseInput: z.ZodObject<{
|
|
|
12
12
|
first_name: z.ZodOptional<z.ZodString>;
|
|
13
13
|
owed_share: z.ZodString;
|
|
14
14
|
paid_share: z.ZodString;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>>>;
|
|
16
16
|
details: z.ZodOptional<z.ZodString>;
|
|
17
17
|
group_id: z.ZodOptional<z.ZodNumber>;
|
|
18
18
|
category_id: z.ZodOptional<z.ZodNumber>;
|
|
@@ -29,12 +29,13 @@ declare const SplitwiseUpdateExpenseInput: z.ZodObject<{
|
|
|
29
29
|
declare const SplitwiseUpdateExpenseOutput: z.ZodObject<{
|
|
30
30
|
errors: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
31
31
|
expenses: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
32
|
-
}, z.core.$
|
|
32
|
+
}, z.core.$loose>;
|
|
33
33
|
declare const splitwiseUpdateExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
34
|
id: number;
|
|
35
35
|
cost?: string | undefined;
|
|
36
36
|
date?: string | undefined;
|
|
37
37
|
users?: {
|
|
38
|
+
[x: string]: unknown;
|
|
38
39
|
owed_share: string;
|
|
39
40
|
paid_share: string;
|
|
40
41
|
email?: string | undefined;
|
|
@@ -48,7 +49,19 @@ declare const splitwiseUpdateExpense: import("@keystrokehq/action").WorkflowActi
|
|
|
48
49
|
description?: string | undefined;
|
|
49
50
|
currency_code?: string | undefined;
|
|
50
51
|
repeat_interval?: "never" | "weekly" | "fortnightly" | "monthly" | "yearly" | undefined;
|
|
51
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
52
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
53
|
+
connectionId: z.ZodString;
|
|
54
|
+
entityId: z.ZodString;
|
|
55
|
+
instanceId: z.ZodString;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
accessToken: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
59
|
+
connectionId: z.ZodString;
|
|
60
|
+
entityId: z.ZodString;
|
|
61
|
+
instanceId: z.ZodString;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
accessToken: z.ZodString;
|
|
64
|
+
}, z.core.$strip>>]>;
|
|
52
65
|
//#endregion
|
|
53
66
|
export { splitwiseUpdateExpense };
|
|
54
67
|
//# sourceMappingURL=update-expense.d.mts.map
|
|
@@ -15,7 +15,7 @@ const splitwiseUpdateExpense = action("SPLITWISE_UPDATE_EXPENSE", {
|
|
|
15
15
|
first_name: z.string().describe("First name of the participant").optional(),
|
|
16
16
|
owed_share: z.string().describe("Amount this user owes (string decimal, 2 dp)"),
|
|
17
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(),
|
|
18
|
+
}).passthrough().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
19
|
details: z.string().describe("Additional notes for the expense").optional(),
|
|
20
20
|
group_id: z.number().int().describe("Group ID to assign this expense to (0 for no group)").optional(),
|
|
21
21
|
category_id: z.number().int().describe("Category ID from get_categories").optional(),
|
|
@@ -32,7 +32,7 @@ const splitwiseUpdateExpense = action("SPLITWISE_UPDATE_EXPENSE", {
|
|
|
32
32
|
output: z.object({
|
|
33
33
|
errors: z.record(z.string(), z.unknown()).describe("Errors returned by the API; empty if none"),
|
|
34
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.")
|
|
35
|
+
}).passthrough().describe("Response model for update_expense action.")
|
|
36
36
|
});
|
|
37
37
|
//#endregion
|
|
38
38
|
export { splitwiseUpdateExpense };
|
|
@@ -1 +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.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.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,OA5ByC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;EAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;EAC3J,OAAO,EAAE,MAAM,EAAE,OAAO;GACxB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GAChE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;GAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;GACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;GAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;GAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EAChF,CAAC,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,CAAC,SAAS,mSAAmS,CAAC,CAAC,SAAS;
|
|
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.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}).passthrough().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.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}).passthrough().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,OA5ByC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;EAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;EAC3J,OAAO,EAAE,MAAM,EAAE,OAAO;GACxB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GA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S,2CAOhB;AACV,CAAC"}
|
|
@@ -14,7 +14,7 @@ const SplitwiseUpdateUser_PictureSchema = zod.z.object({
|
|
|
14
14
|
large: zod.z.string().describe("URL for the large-sized profile picture").nullable().optional(),
|
|
15
15
|
small: zod.z.string().describe("URL for the small-sized profile picture").nullable().optional(),
|
|
16
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.");
|
|
17
|
+
}).passthrough().describe("URLs for the user's profile picture in different sizes.");
|
|
18
18
|
const SplitwiseUpdateUser_NotificationsSchema = zod.z.object({
|
|
19
19
|
bills: zod.z.boolean().describe("Bill notifications").nullable().optional(),
|
|
20
20
|
payments: zod.z.boolean().describe("Payment notifications").nullable().optional(),
|
|
@@ -24,7 +24,7 @@ const SplitwiseUpdateUser_NotificationsSchema = zod.z.object({
|
|
|
24
24
|
added_as_friend: zod.z.boolean().describe("Notifications when added as a friend").nullable().optional(),
|
|
25
25
|
expense_updated: zod.z.boolean().describe("Notifications when an expense is updated").nullable().optional(),
|
|
26
26
|
monthly_summary: zod.z.boolean().describe("Monthly summary notifications").nullable().optional()
|
|
27
|
-
}).describe("User's notification preferences.");
|
|
27
|
+
}).passthrough().describe("User's notification preferences.");
|
|
28
28
|
const SplitwiseUpdateUser_UserSchema = zod.z.object({
|
|
29
29
|
id: zod.z.number().int().describe("Unique identifier for the user").nullable(),
|
|
30
30
|
email: zod.z.string().describe("User's email address").nullable().optional(),
|
|
@@ -42,8 +42,8 @@ const SplitwiseUpdateUser_UserSchema = zod.z.object({
|
|
|
42
42
|
notifications_read: zod.z.string().describe("Timestamp when notifications were last read").nullable().optional(),
|
|
43
43
|
notifications_count: zod.z.number().int().describe("Number of unread notifications").nullable().optional(),
|
|
44
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.");
|
|
45
|
+
}).passthrough().describe("Details of the updated user.");
|
|
46
|
+
const SplitwiseUpdateUserOutput = zod.z.object({ user: SplitwiseUpdateUser_UserSchema.nullable() }).passthrough().describe("Response schema for updated user information.");
|
|
47
47
|
const splitwiseUpdateUser = require_action.action("SPLITWISE_UPDATE_USER", {
|
|
48
48
|
slug: "splitwise-update-user",
|
|
49
49
|
name: "Update User",
|
|
@@ -1 +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.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.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.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.object({\n id: z.number().int().describe(\"Unique identifier for the user\").nullable(),\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.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,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,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,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,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;
|
|
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.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.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}).passthrough().describe(\"URLs for the user's profile picture in different sizes.\");\nconst SplitwiseUpdateUser_NotificationsSchema = 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}).passthrough().describe(\"User's notification preferences.\");\nconst SplitwiseUpdateUser_UserSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the user\").nullable(),\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}).passthrough().describe(\"Details of the updated user.\");\nexport const SplitwiseUpdateUserOutput = z.object({\n user: SplitwiseUpdateUser_UserSchema.nullable(),\n}).passthrough().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,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,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,C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AS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAM,+BAA+B,SAAS,EAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -19,7 +19,7 @@ declare const SplitwiseUpdateUserOutput: z.ZodObject<{
|
|
|
19
19
|
large: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
small: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
23
|
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
date_format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -33,7 +33,7 @@ declare const SplitwiseUpdateUserOutput: z.ZodObject<{
|
|
|
33
33
|
added_as_friend: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
34
34
|
expense_updated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
35
35
|
monthly_summary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>>;
|
|
37
37
|
custom_picture: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
38
38
|
default_currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
default_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -41,8 +41,8 @@ declare const SplitwiseUpdateUserOutput: z.ZodObject<{
|
|
|
41
41
|
notifications_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
notifications_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
43
|
registration_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const splitwiseUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
id: number;
|
|
48
48
|
email?: string | undefined;
|
|
@@ -51,7 +51,19 @@ declare const splitwiseUpdateUser: import("@keystrokehq/action").WorkflowActionD
|
|
|
51
51
|
last_name?: string | undefined;
|
|
52
52
|
first_name?: string | undefined;
|
|
53
53
|
default_currency?: string | undefined;
|
|
54
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
54
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
55
|
+
connectionId: z.ZodString;
|
|
56
|
+
entityId: z.ZodString;
|
|
57
|
+
instanceId: z.ZodString;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
accessToken: z.ZodString;
|
|
60
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
61
|
+
connectionId: z.ZodString;
|
|
62
|
+
entityId: z.ZodString;
|
|
63
|
+
instanceId: z.ZodString;
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
+
accessToken: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>]>;
|
|
55
67
|
//#endregion
|
|
56
68
|
export { splitwiseUpdateUser };
|
|
57
69
|
//# sourceMappingURL=update-user.d.cts.map
|
|
@@ -19,7 +19,7 @@ declare const SplitwiseUpdateUserOutput: z.ZodObject<{
|
|
|
19
19
|
large: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
small: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
23
|
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
date_format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -33,7 +33,7 @@ declare const SplitwiseUpdateUserOutput: z.ZodObject<{
|
|
|
33
33
|
added_as_friend: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
34
34
|
expense_updated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
35
35
|
monthly_summary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>>;
|
|
37
37
|
custom_picture: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
38
38
|
default_currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
default_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -41,8 +41,8 @@ declare const SplitwiseUpdateUserOutput: z.ZodObject<{
|
|
|
41
41
|
notifications_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
notifications_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
43
|
registration_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const splitwiseUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
id: number;
|
|
48
48
|
email?: string | undefined;
|
|
@@ -51,7 +51,19 @@ declare const splitwiseUpdateUser: import("@keystrokehq/action").WorkflowActionD
|
|
|
51
51
|
last_name?: string | undefined;
|
|
52
52
|
first_name?: string | undefined;
|
|
53
53
|
default_currency?: string | undefined;
|
|
54
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
54
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
55
|
+
connectionId: z.ZodString;
|
|
56
|
+
entityId: z.ZodString;
|
|
57
|
+
instanceId: z.ZodString;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
accessToken: z.ZodString;
|
|
60
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
61
|
+
connectionId: z.ZodString;
|
|
62
|
+
entityId: z.ZodString;
|
|
63
|
+
instanceId: z.ZodString;
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
+
accessToken: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>]>;
|
|
55
67
|
//#endregion
|
|
56
68
|
export { splitwiseUpdateUser };
|
|
57
69
|
//# sourceMappingURL=update-user.d.mts.map
|
|
@@ -14,7 +14,7 @@ const SplitwiseUpdateUser_PictureSchema = z.object({
|
|
|
14
14
|
large: z.string().describe("URL for the large-sized profile picture").nullable().optional(),
|
|
15
15
|
small: z.string().describe("URL for the small-sized profile picture").nullable().optional(),
|
|
16
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.");
|
|
17
|
+
}).passthrough().describe("URLs for the user's profile picture in different sizes.");
|
|
18
18
|
const SplitwiseUpdateUser_NotificationsSchema = z.object({
|
|
19
19
|
bills: z.boolean().describe("Bill notifications").nullable().optional(),
|
|
20
20
|
payments: z.boolean().describe("Payment notifications").nullable().optional(),
|
|
@@ -24,7 +24,7 @@ const SplitwiseUpdateUser_NotificationsSchema = z.object({
|
|
|
24
24
|
added_as_friend: z.boolean().describe("Notifications when added as a friend").nullable().optional(),
|
|
25
25
|
expense_updated: z.boolean().describe("Notifications when an expense is updated").nullable().optional(),
|
|
26
26
|
monthly_summary: z.boolean().describe("Monthly summary notifications").nullable().optional()
|
|
27
|
-
}).describe("User's notification preferences.");
|
|
27
|
+
}).passthrough().describe("User's notification preferences.");
|
|
28
28
|
const SplitwiseUpdateUser_UserSchema = z.object({
|
|
29
29
|
id: z.number().int().describe("Unique identifier for the user").nullable(),
|
|
30
30
|
email: z.string().describe("User's email address").nullable().optional(),
|
|
@@ -42,13 +42,13 @@ const SplitwiseUpdateUser_UserSchema = z.object({
|
|
|
42
42
|
notifications_read: z.string().describe("Timestamp when notifications were last read").nullable().optional(),
|
|
43
43
|
notifications_count: z.number().int().describe("Number of unread notifications").nullable().optional(),
|
|
44
44
|
registration_status: z.string().describe("Account confirmation state (e.g., 'confirmed')").nullable().optional()
|
|
45
|
-
}).describe("Details of the updated user.");
|
|
45
|
+
}).passthrough().describe("Details of the updated user.");
|
|
46
46
|
const splitwiseUpdateUser = action("SPLITWISE_UPDATE_USER", {
|
|
47
47
|
slug: "splitwise-update-user",
|
|
48
48
|
name: "Update User",
|
|
49
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
50
|
input: SplitwiseUpdateUserInput,
|
|
51
|
-
output: z.object({ user: SplitwiseUpdateUser_UserSchema.nullable() }).describe("Response schema for updated user information.")
|
|
51
|
+
output: z.object({ user: SplitwiseUpdateUser_UserSchema.nullable() }).passthrough().describe("Response schema for updated user information.")
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
54
54
|
export { splitwiseUpdateUser };
|
|
@@ -1 +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.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.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.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.object({\n id: z.number().int().describe(\"Unique identifier for the user\").nullable(),\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.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,2BAA2B,EAAE,OAAO;CAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D;CAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC5F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC9D,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,oCAAoC,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,yDAAyD;
|
|
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.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.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}).passthrough().describe(\"URLs for the user's profile picture in different sizes.\");\nconst SplitwiseUpdateUser_NotificationsSchema = 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}).passthrough().describe(\"User's notification preferences.\");\nconst SplitwiseUpdateUser_UserSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the user\").nullable(),\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}).passthrough().describe(\"Details of the updated user.\");\nexport const SplitwiseUpdateUserOutput = z.object({\n user: SplitwiseUpdateUser_UserSchema.nullable(),\n}).passthrough().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,2BAA2B,EAAE,OAAO;CAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D;CAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC5F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC9D,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,oCAAoC,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,QAAQ,EAAE,OAAO,CAAC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uC,EAAE,OAAO,EAChD,MAAM,+BAA+B,SAAS,EAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
+
let zod = require("zod");
|
|
1
3
|
//#region src/app.ts
|
|
2
|
-
const splitwise = (0,
|
|
4
|
+
const splitwise = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
5
|
slug: "splitwise",
|
|
4
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential: { accessToken: zod.z.string() }
|
|
5
8
|
});
|
|
6
9
|
//#endregion
|
|
7
10
|
exports.splitwise = splitwise;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +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":"
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const splitwise = defineApp({\n slug: \"splitwise\",\n auth: \"keystroke\",\n credential: {\n accessToken: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,aAAA,GAAA,2BAAA,UAAA,CAAsB;CACjC,MAAM;CACN,MAAM;CACN,YAAY,EACV,aAAaA,IAAAA,EAAE,OAAO,EACxB;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
1
3
|
//#region src/app.d.ts
|
|
2
|
-
declare const splitwise: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential
|
|
4
|
+
declare const splitwise: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
5
|
+
connectionId: z.ZodString;
|
|
6
|
+
entityId: z.ZodString;
|
|
7
|
+
instanceId: z.ZodString;
|
|
8
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
+
accessToken: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
3
11
|
//#endregion
|
|
4
12
|
export { splitwise };
|
|
5
13
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,SAAA,6BAAS,GAAA,+BAAA,UAAA,cAAA,CAAA,CAAA,SAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
1
3
|
//#region src/app.d.ts
|
|
2
|
-
declare const splitwise: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential
|
|
4
|
+
declare const splitwise: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
5
|
+
connectionId: z.ZodString;
|
|
6
|
+
entityId: z.ZodString;
|
|
7
|
+
instanceId: z.ZodString;
|
|
8
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
+
accessToken: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
3
11
|
//#endregion
|
|
4
12
|
export { splitwise };
|
|
5
13
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,SAAA,6BAAS,GAAA,+BAAA,UAAA,cAAA,CAAA,CAAA,SAAA"}
|
package/dist/app.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { defineApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
//#region src/app.ts
|
|
3
4
|
const splitwise = defineApp({
|
|
4
5
|
slug: "splitwise",
|
|
5
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential: { accessToken: z.string() }
|
|
6
8
|
});
|
|
7
9
|
//#endregion
|
|
8
10
|
export { splitwise };
|
package/dist/app.mjs.map
CHANGED
|
@@ -1 +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":"
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const splitwise = defineApp({\n slug: \"splitwise\",\n auth: \"keystroke\",\n credential: {\n accessToken: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,YAAY,UAAU;CACjC,MAAM;CACN,MAAM;CACN,YAAY,EACV,aAAa,EAAE,OAAO,EACxB;AACF,CAAC"}
|