@keystrokehq/splitwise 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-friend.cjs +10 -10
- package/dist/actions/add-friend.cjs.map +1 -1
- package/dist/actions/add-friend.d.cts +38 -3
- package/dist/actions/add-friend.d.cts.map +1 -1
- package/dist/actions/add-friend.d.mts +38 -3
- package/dist/actions/add-friend.d.mts.map +1 -1
- package/dist/actions/add-friend.mjs +10 -10
- package/dist/actions/add-friend.mjs.map +1 -1
- package/dist/actions/add-user-to-group.cjs +6 -6
- package/dist/actions/add-user-to-group.cjs.map +1 -1
- package/dist/actions/add-user-to-group.d.cts +26 -3
- package/dist/actions/add-user-to-group.d.cts.map +1 -1
- package/dist/actions/add-user-to-group.d.mts +26 -3
- package/dist/actions/add-user-to-group.d.mts.map +1 -1
- package/dist/actions/add-user-to-group.mjs +6 -6
- package/dist/actions/add-user-to-group.mjs.map +1 -1
- package/dist/actions/create-comment.cjs +10 -10
- package/dist/actions/create-comment.cjs.map +1 -1
- package/dist/actions/create-comment.d.cts +30 -3
- package/dist/actions/create-comment.d.cts.map +1 -1
- package/dist/actions/create-comment.d.mts +30 -3
- package/dist/actions/create-comment.d.mts.map +1 -1
- package/dist/actions/create-comment.mjs +10 -10
- package/dist/actions/create-comment.mjs.map +1 -1
- package/dist/actions/create-expense.cjs +35 -35
- package/dist/actions/create-expense.cjs.map +1 -1
- package/dist/actions/create-expense.d.cts +128 -3
- package/dist/actions/create-expense.d.cts.map +1 -1
- package/dist/actions/create-expense.d.mts +128 -3
- package/dist/actions/create-expense.d.mts.map +1 -1
- package/dist/actions/create-expense.mjs +35 -35
- package/dist/actions/create-expense.mjs.map +1 -1
- package/dist/actions/create-friends.cjs +10 -10
- package/dist/actions/create-friends.cjs.map +1 -1
- package/dist/actions/create-friends.d.cts +43 -3
- package/dist/actions/create-friends.d.cts.map +1 -1
- package/dist/actions/create-friends.d.mts +43 -3
- package/dist/actions/create-friends.d.mts.map +1 -1
- package/dist/actions/create-friends.mjs +10 -10
- 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 +76 -3
- package/dist/actions/create-group.d.cts.map +1 -1
- package/dist/actions/create-group.d.mts +76 -3
- package/dist/actions/create-group.d.mts.map +1 -1
- package/dist/actions/create-group.mjs +8 -8
- package/dist/actions/create-group.mjs.map +1 -1
- package/dist/actions/delete-comment.cjs +11 -11
- package/dist/actions/delete-comment.cjs.map +1 -1
- package/dist/actions/delete-comment.d.cts +30 -3
- package/dist/actions/delete-comment.d.cts.map +1 -1
- package/dist/actions/delete-comment.d.mts +30 -3
- package/dist/actions/delete-comment.d.mts.map +1 -1
- package/dist/actions/delete-comment.mjs +11 -11
- package/dist/actions/delete-comment.mjs.map +1 -1
- package/dist/actions/delete-expense.cjs +2 -2
- package/dist/actions/delete-expense.cjs.map +1 -1
- package/dist/actions/delete-expense.d.cts +10 -3
- package/dist/actions/delete-expense.d.cts.map +1 -1
- package/dist/actions/delete-expense.d.mts +10 -3
- package/dist/actions/delete-expense.d.mts.map +1 -1
- package/dist/actions/delete-expense.mjs +2 -2
- package/dist/actions/delete-expense.mjs.map +1 -1
- package/dist/actions/delete-friend.cjs +2 -2
- package/dist/actions/delete-friend.cjs.map +1 -1
- package/dist/actions/delete-friend.d.cts +10 -3
- package/dist/actions/delete-friend.d.cts.map +1 -1
- package/dist/actions/delete-friend.d.mts +10 -3
- package/dist/actions/delete-friend.d.mts.map +1 -1
- package/dist/actions/delete-friend.mjs +2 -2
- package/dist/actions/delete-friend.mjs.map +1 -1
- package/dist/actions/delete-group.cjs +2 -2
- package/dist/actions/delete-group.cjs.map +1 -1
- package/dist/actions/delete-group.d.cts +10 -3
- package/dist/actions/delete-group.d.cts.map +1 -1
- package/dist/actions/delete-group.d.mts +10 -3
- package/dist/actions/delete-group.d.mts.map +1 -1
- package/dist/actions/delete-group.mjs +2 -2
- package/dist/actions/delete-group.mjs.map +1 -1
- package/dist/actions/get-categories.cjs +7 -7
- package/dist/actions/get-categories.cjs.map +1 -1
- package/dist/actions/get-categories.d.cts +12 -3
- package/dist/actions/get-categories.d.cts.map +1 -1
- package/dist/actions/get-categories.d.mts +12 -3
- package/dist/actions/get-categories.d.mts.map +1 -1
- package/dist/actions/get-categories.mjs +7 -7
- package/dist/actions/get-categories.mjs.map +1 -1
- package/dist/actions/get-comments.cjs +11 -11
- package/dist/actions/get-comments.cjs.map +1 -1
- package/dist/actions/get-comments.d.cts +30 -3
- package/dist/actions/get-comments.d.cts.map +1 -1
- package/dist/actions/get-comments.d.mts +30 -3
- package/dist/actions/get-comments.d.mts.map +1 -1
- package/dist/actions/get-comments.mjs +11 -11
- package/dist/actions/get-comments.mjs.map +1 -1
- package/dist/actions/get-currencies.cjs +4 -4
- package/dist/actions/get-currencies.cjs.map +1 -1
- package/dist/actions/get-currencies.d.cts +8 -3
- package/dist/actions/get-currencies.d.cts.map +1 -1
- package/dist/actions/get-currencies.d.mts +8 -3
- package/dist/actions/get-currencies.d.mts.map +1 -1
- package/dist/actions/get-currencies.mjs +4 -4
- package/dist/actions/get-currencies.mjs.map +1 -1
- package/dist/actions/get-current-user.cjs +24 -24
- package/dist/actions/get-current-user.cjs.map +1 -1
- package/dist/actions/get-current-user.d.cts +35 -3
- package/dist/actions/get-current-user.d.cts.map +1 -1
- package/dist/actions/get-current-user.d.mts +35 -3
- package/dist/actions/get-current-user.d.mts.map +1 -1
- package/dist/actions/get-current-user.mjs +24 -24
- package/dist/actions/get-current-user.mjs.map +1 -1
- package/dist/actions/get-expense.cjs +28 -28
- package/dist/actions/get-expense.cjs.map +1 -1
- package/dist/actions/get-expense.d.cts +124 -3
- package/dist/actions/get-expense.d.cts.map +1 -1
- package/dist/actions/get-expense.d.mts +124 -3
- package/dist/actions/get-expense.d.mts.map +1 -1
- package/dist/actions/get-expense.mjs +28 -28
- package/dist/actions/get-expense.mjs.map +1 -1
- package/dist/actions/get-expenses.cjs +28 -28
- package/dist/actions/get-expenses.cjs.map +1 -1
- package/dist/actions/get-expenses.d.cts +140 -3
- package/dist/actions/get-expenses.d.cts.map +1 -1
- package/dist/actions/get-expenses.d.mts +140 -3
- package/dist/actions/get-expenses.d.mts.map +1 -1
- package/dist/actions/get-expenses.mjs +28 -28
- package/dist/actions/get-expenses.mjs.map +1 -1
- package/dist/actions/get-friend.cjs +12 -12
- package/dist/actions/get-friend.cjs.map +1 -1
- package/dist/actions/get-friend.d.cts +33 -3
- package/dist/actions/get-friend.d.cts.map +1 -1
- package/dist/actions/get-friend.d.mts +33 -3
- package/dist/actions/get-friend.d.mts.map +1 -1
- package/dist/actions/get-friend.mjs +12 -12
- package/dist/actions/get-friend.mjs.map +1 -1
- package/dist/actions/get-friends.cjs +12 -12
- package/dist/actions/get-friends.cjs.map +1 -1
- package/dist/actions/get-friends.d.cts +29 -3
- package/dist/actions/get-friends.d.cts.map +1 -1
- package/dist/actions/get-friends.d.mts +29 -3
- package/dist/actions/get-friends.d.mts.map +1 -1
- package/dist/actions/get-friends.mjs +12 -12
- package/dist/actions/get-friends.mjs.map +1 -1
- package/dist/actions/get-group.cjs +18 -18
- package/dist/actions/get-group.cjs.map +1 -1
- package/dist/actions/get-group.d.cts +68 -3
- package/dist/actions/get-group.d.cts.map +1 -1
- package/dist/actions/get-group.d.mts +68 -3
- package/dist/actions/get-group.d.mts.map +1 -1
- package/dist/actions/get-group.mjs +18 -18
- package/dist/actions/get-group.mjs.map +1 -1
- package/dist/actions/get-groups.cjs +18 -18
- package/dist/actions/get-groups.cjs.map +1 -1
- package/dist/actions/get-groups.d.cts +63 -3
- package/dist/actions/get-groups.d.cts.map +1 -1
- package/dist/actions/get-groups.d.mts +63 -3
- package/dist/actions/get-groups.d.mts.map +1 -1
- package/dist/actions/get-groups.mjs +18 -18
- package/dist/actions/get-groups.mjs.map +1 -1
- package/dist/actions/get-notifications.cjs +7 -7
- package/dist/actions/get-notifications.cjs.map +1 -1
- package/dist/actions/get-notifications.d.cts +24 -3
- package/dist/actions/get-notifications.d.cts.map +1 -1
- package/dist/actions/get-notifications.d.mts +24 -3
- package/dist/actions/get-notifications.d.mts.map +1 -1
- package/dist/actions/get-notifications.mjs +7 -7
- package/dist/actions/get-notifications.mjs.map +1 -1
- package/dist/actions/get-user.cjs +4 -4
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +21 -3
- package/dist/actions/get-user.d.cts.map +1 -1
- package/dist/actions/get-user.d.mts +21 -3
- package/dist/actions/get-user.d.mts.map +1 -1
- package/dist/actions/get-user.mjs +4 -4
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/remove-user-from-group.cjs +2 -2
- package/dist/actions/remove-user-from-group.cjs.map +1 -1
- package/dist/actions/remove-user-from-group.d.cts +12 -3
- package/dist/actions/remove-user-from-group.d.cts.map +1 -1
- package/dist/actions/remove-user-from-group.d.mts +12 -3
- package/dist/actions/remove-user-from-group.d.mts.map +1 -1
- package/dist/actions/remove-user-from-group.mjs +2 -2
- package/dist/actions/remove-user-from-group.mjs.map +1 -1
- package/dist/actions/undelete-expense.cjs +2 -2
- package/dist/actions/undelete-expense.cjs.map +1 -1
- package/dist/actions/undelete-expense.d.cts +10 -3
- package/dist/actions/undelete-expense.d.cts.map +1 -1
- package/dist/actions/undelete-expense.d.mts +10 -3
- package/dist/actions/undelete-expense.d.mts.map +1 -1
- package/dist/actions/undelete-expense.mjs +2 -2
- package/dist/actions/undelete-expense.mjs.map +1 -1
- package/dist/actions/undelete-group.cjs +2 -2
- package/dist/actions/undelete-group.cjs.map +1 -1
- package/dist/actions/undelete-group.d.cts +10 -3
- package/dist/actions/undelete-group.d.cts.map +1 -1
- package/dist/actions/undelete-group.d.mts +10 -3
- package/dist/actions/undelete-group.d.mts.map +1 -1
- package/dist/actions/undelete-group.mjs +2 -2
- 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 +49 -3
- package/dist/actions/update-expense.d.cts.map +1 -1
- package/dist/actions/update-expense.d.mts +49 -3
- package/dist/actions/update-expense.d.mts.map +1 -1
- package/dist/actions/update-expense.mjs +2 -2
- package/dist/actions/update-expense.mjs.map +1 -1
- package/dist/actions/update-user.cjs +5 -5
- package/dist/actions/update-user.cjs.map +1 -1
- package/dist/actions/update-user.d.cts +51 -3
- package/dist/actions/update-user.d.cts.map +1 -1
- package/dist/actions/update-user.d.mts +51 -3
- package/dist/actions/update-user.d.mts.map +1 -1
- package/dist/actions/update-user.mjs +5 -5
- package/dist/actions/update-user.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -10,8 +10,8 @@ const splitwiseRemoveUserFromGroup = action("SPLITWISE_REMOVE_USER_FROM_GROUP",
|
|
|
10
10
|
}).describe("Request parameters for removing a user from a group."),
|
|
11
11
|
output: z.object({
|
|
12
12
|
errors: z.record(z.string(), z.unknown()).describe("Any errors encountered during the operation. May contain details if user has non-zero balance.").nullable().optional(),
|
|
13
|
-
success: z.boolean().describe("Indicates whether the removal was successful. Always check this field as 200 OK does not guarantee success.")
|
|
14
|
-
}).describe("Response model for removing a user from a group.")
|
|
13
|
+
success: z.boolean().describe("Indicates whether the removal was successful. Always check this field as 200 OK does not guarantee success.").nullable()
|
|
14
|
+
}).passthrough().describe("Response model for removing a user from a group.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { splitwiseRemoveUserFromGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-user-from-group.mjs","names":[],"sources":["../../src/actions/remove-user-from-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseRemoveUserFromGroupInput
|
|
1
|
+
{"version":3,"file":"remove-user-from-group.mjs","names":[],"sources":["../../src/actions/remove-user-from-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseRemoveUserFromGroupInput = z.object({\n user_id: z.number().int().describe(\"The ID of the user to remove from the group. User must have a zero balance in the group to be removed.\"),\n group_id: z.number().int().describe(\"The ID of the group from which to remove the user\"),\n}).describe(\"Request parameters for removing a user from a group.\");\nexport const SplitwiseRemoveUserFromGroupOutput = z.object({\n errors: z.record(z.string(), z.unknown()).describe(\"Any errors encountered during the operation. May contain details if user has non-zero balance.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the removal was successful. Always check this field as 200 OK does not guarantee success.\").nullable(),\n}).passthrough().describe(\"Response model for removing a user from a group.\");\n\nexport const splitwiseRemoveUserFromGroup = action(\"SPLITWISE_REMOVE_USER_FROM_GROUP\", {\n slug: \"splitwise-remove-user-from-group\",\n name: \"Remove User from Group\",\n description: \"Tool to remove a user from a group. Use when you need to remove a user from a specific group. Note: User must have a zero balance in the group for removal to succeed. 200 OK does not indicate success; always check the response 'success' field.\",\n input: SplitwiseRemoveUserFromGroupInput,\n output: SplitwiseRemoveUserFromGroupOutput,\n});\n"],"mappings":";;AAaA,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb+C,EAAE,OAAO;EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wGAAwG;EAC3I,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;CACzF,CAAC,CAAC,CAAC,SAAS,sDAUH;CACP,QAVgD,EAAE,OAAO;EACzD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzK,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
|
|
@@ -4,8 +4,8 @@ let zod = require("zod");
|
|
|
4
4
|
const SplitwiseUndeleteExpenseInput = zod.z.object({ id: zod.z.number().int().describe("The unique identifier of the expense to restore.") }).describe("Request model for restoring a deleted expense.");
|
|
5
5
|
const SplitwiseUndeleteExpenseOutput = zod.z.object({
|
|
6
6
|
errors: zod.z.array(zod.z.string()).describe("List of error messages if the restoration failed.").nullable().optional(),
|
|
7
|
-
success: zod.z.boolean().describe("Indicates whether the expense was successfully restored.")
|
|
8
|
-
}).describe("Response model for the UndeleteExpense action.");
|
|
7
|
+
success: zod.z.boolean().describe("Indicates whether the expense was successfully restored.").nullable()
|
|
8
|
+
}).passthrough().describe("Response model for the UndeleteExpense action.");
|
|
9
9
|
const splitwiseUndeleteExpense = require_action.action("SPLITWISE_UNDELETE_EXPENSE", {
|
|
10
10
|
slug: "splitwise-undelete-expense",
|
|
11
11
|
name: "Restore Deleted Expense",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"undelete-expense.cjs","names":["z","action"],"sources":["../../src/actions/undelete-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseUndeleteExpenseInput
|
|
1
|
+
{"version":3,"file":"undelete-expense.cjs","names":["z","action"],"sources":["../../src/actions/undelete-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseUndeleteExpenseInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the expense to restore.\"),\n}).describe(\"Request model for restoring a deleted expense.\");\nexport const SplitwiseUndeleteExpenseOutput = 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 expense was successfully restored.\").nullable(),\n}).passthrough().describe(\"Response model for the UndeleteExpense action.\");\n\nexport const splitwiseUndeleteExpense = action(\"SPLITWISE_UNDELETE_EXPENSE\", {\n slug: \"splitwise-undelete-expense\",\n name: \"Restore Deleted Expense\",\n description: \"Tool to restore a previously deleted expense and its associated records. Use when you need to recover an expense that was deleted. Call after confirming the correct expense ID. Not a guaranteed undo mechanism — treat deletion as high-impact and verify restoration completeness afterward.\",\n input: SplitwiseUndeleteExpenseInput,\n output: SplitwiseUndeleteExpenseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,EAClF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/undelete-expense.d.ts
|
|
4
|
-
declare const SplitwiseUndeleteExpenseInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseUndeleteExpenseInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SplitwiseUndeleteExpenseOutput: z.ZodObject<{
|
|
8
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
9
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const splitwiseUndeleteExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
id: number;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { splitwiseUndeleteExpense };
|
|
9
16
|
//# sourceMappingURL=undelete-expense.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"undelete-expense.d.cts","names":[],"sources":["../../src/actions/undelete-expense.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"undelete-expense.d.cts","names":[],"sources":["../../src/actions/undelete-expense.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/undelete-expense.d.ts
|
|
4
|
-
declare const SplitwiseUndeleteExpenseInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseUndeleteExpenseInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SplitwiseUndeleteExpenseOutput: z.ZodObject<{
|
|
8
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
9
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const splitwiseUndeleteExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
id: number;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { splitwiseUndeleteExpense };
|
|
9
16
|
//# sourceMappingURL=undelete-expense.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"undelete-expense.d.mts","names":[],"sources":["../../src/actions/undelete-expense.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"undelete-expense.d.mts","names":[],"sources":["../../src/actions/undelete-expense.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAG7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -7,8 +7,8 @@ const splitwiseUndeleteExpense = action("SPLITWISE_UNDELETE_EXPENSE", {
|
|
|
7
7
|
input: z.object({ id: z.number().int().describe("The unique identifier of the expense to restore.") }).describe("Request model for restoring a deleted expense."),
|
|
8
8
|
output: z.object({
|
|
9
9
|
errors: z.array(z.string()).describe("List of error messages if the restoration failed.").nullable().optional(),
|
|
10
|
-
success: z.boolean().describe("Indicates whether the expense was successfully restored.")
|
|
11
|
-
}).describe("Response model for the UndeleteExpense action.")
|
|
10
|
+
success: z.boolean().describe("Indicates whether the expense was successfully restored.").nullable()
|
|
11
|
+
}).passthrough().describe("Response model for the UndeleteExpense action.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { splitwiseUndeleteExpense };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"undelete-expense.mjs","names":[],"sources":["../../src/actions/undelete-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseUndeleteExpenseInput
|
|
1
|
+
{"version":3,"file":"undelete-expense.mjs","names":[],"sources":["../../src/actions/undelete-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseUndeleteExpenseInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the expense to restore.\"),\n}).describe(\"Request model for restoring a deleted expense.\");\nexport const SplitwiseUndeleteExpenseOutput = 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 expense was successfully restored.\").nullable(),\n}).passthrough().describe(\"Response model for the UndeleteExpense action.\");\n\nexport const splitwiseUndeleteExpense = action(\"SPLITWISE_UNDELETE_EXPENSE\", {\n slug: \"splitwise-undelete-expense\",\n name: \"Restore Deleted Expense\",\n description: \"Tool to restore a previously deleted expense and its associated records. Use when you need to recover an expense that was deleted. Call after confirming the correct expense ID. Not a guaranteed undo mechanism — treat deletion as high-impact and verify restoration completeness afterward.\",\n input: SplitwiseUndeleteExpenseInput,\n output: SplitwiseUndeleteExpenseOutput,\n});\n"],"mappings":";;AAYA,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ2C,EAAE,OAAO,EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,EAClF,CAAC,CAAC,CAAC,SAAS,gDAUH;CACP,QAV4C,EAAE,OAAO;EACrD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
|
|
@@ -4,8 +4,8 @@ let zod = require("zod");
|
|
|
4
4
|
const SplitwiseUndeleteGroupInput = zod.z.object({ id: zod.z.number().int().describe("The unique identifier of the group to restore.") }).describe("Request model for restoring a deleted group.");
|
|
5
5
|
const SplitwiseUndeleteGroupOutput = zod.z.object({
|
|
6
6
|
errors: zod.z.array(zod.z.string()).describe("List of error messages if the restoration failed.").nullable().optional(),
|
|
7
|
-
success: zod.z.boolean().describe("Indicates whether the group was successfully restored.")
|
|
8
|
-
}).describe("Response model for the UndeleteGroup action.");
|
|
7
|
+
success: zod.z.boolean().describe("Indicates whether the group was successfully restored.").nullable()
|
|
8
|
+
}).passthrough().describe("Response model for the UndeleteGroup action.");
|
|
9
9
|
const splitwiseUndeleteGroup = require_action.action("SPLITWISE_UNDELETE_GROUP", {
|
|
10
10
|
slug: "splitwise-undelete-group",
|
|
11
11
|
name: "Restore Deleted Group",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"undelete-group.cjs","names":["z","action"],"sources":["../../src/actions/undelete-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseUndeleteGroupInput
|
|
1
|
+
{"version":3,"file":"undelete-group.cjs","names":["z","action"],"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":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EAChF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/undelete-group.d.ts
|
|
4
|
-
declare const SplitwiseUndeleteGroupInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseUndeleteGroupInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SplitwiseUndeleteGroupOutput: z.ZodObject<{
|
|
8
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
9
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const splitwiseUndeleteGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
id: number;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { splitwiseUndeleteGroup };
|
|
9
16
|
//# sourceMappingURL=undelete-group.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"undelete-group.d.cts","names":[],"sources":["../../src/actions/undelete-group.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"undelete-group.d.cts","names":[],"sources":["../../src/actions/undelete-group.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/undelete-group.d.ts
|
|
4
|
-
declare const SplitwiseUndeleteGroupInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseUndeleteGroupInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SplitwiseUndeleteGroupOutput: z.ZodObject<{
|
|
8
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
9
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const splitwiseUndeleteGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
id: number;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { splitwiseUndeleteGroup };
|
|
9
16
|
//# sourceMappingURL=undelete-group.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"undelete-group.d.mts","names":[],"sources":["../../src/actions/undelete-group.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"undelete-group.d.mts","names":[],"sources":["../../src/actions/undelete-group.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -7,8 +7,8 @@ const splitwiseUndeleteGroup = action("SPLITWISE_UNDELETE_GROUP", {
|
|
|
7
7
|
input: z.object({ id: z.number().int().describe("The unique identifier of the group to restore.") }).describe("Request model for restoring a deleted 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
|
-
success: z.boolean().describe("Indicates whether the group was successfully restored.")
|
|
11
|
-
}).describe("Response model for the UndeleteGroup action.")
|
|
10
|
+
success: z.boolean().describe("Indicates whether the group was successfully restored.").nullable()
|
|
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
|
|
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
|
|
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,CAAC,YAAY,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,CAAC,SAAS,mSAAmS,CAAC,CAAC,SAAS;CACvd,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACpG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACjF,iBAAiBA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;EAAe;EAAW;CAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,SAAS,uKAAuK;AACnL,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C;CAC9F,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,55 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-expense.d.ts
|
|
4
|
-
declare const SplitwiseUpdateExpenseInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseUpdateExpenseInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
cost: z.ZodOptional<z.ZodString>;
|
|
7
|
+
date: z.ZodOptional<z.ZodString>;
|
|
8
|
+
users: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
|
+
email: z.ZodOptional<z.ZodString>;
|
|
10
|
+
user_id: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
12
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
13
|
+
owed_share: z.ZodString;
|
|
14
|
+
paid_share: z.ZodString;
|
|
15
|
+
}, z.core.$loose>>>;
|
|
16
|
+
details: z.ZodOptional<z.ZodString>;
|
|
17
|
+
group_id: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
category_id: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
description: z.ZodOptional<z.ZodString>;
|
|
20
|
+
currency_code: z.ZodOptional<z.ZodString>;
|
|
21
|
+
repeat_interval: z.ZodOptional<z.ZodEnum<{
|
|
22
|
+
never: "never";
|
|
23
|
+
weekly: "weekly";
|
|
24
|
+
fortnightly: "fortnightly";
|
|
25
|
+
monthly: "monthly";
|
|
26
|
+
yearly: "yearly";
|
|
27
|
+
}>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const SplitwiseUpdateExpenseOutput: z.ZodObject<{
|
|
30
|
+
errors: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
31
|
+
expenses: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
32
|
+
}, z.core.$loose>;
|
|
33
|
+
declare const splitwiseUpdateExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
|
+
id: number;
|
|
35
|
+
cost?: string | undefined;
|
|
36
|
+
date?: string | undefined;
|
|
37
|
+
users?: {
|
|
38
|
+
[x: string]: unknown;
|
|
39
|
+
owed_share: string;
|
|
40
|
+
paid_share: string;
|
|
41
|
+
email?: string | undefined;
|
|
42
|
+
user_id?: number | undefined;
|
|
43
|
+
last_name?: string | undefined;
|
|
44
|
+
first_name?: string | undefined;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
details?: string | undefined;
|
|
47
|
+
group_id?: number | undefined;
|
|
48
|
+
category_id?: number | undefined;
|
|
49
|
+
description?: string | undefined;
|
|
50
|
+
currency_code?: string | undefined;
|
|
51
|
+
repeat_interval?: "never" | "weekly" | "fortnightly" | "monthly" | "yearly" | undefined;
|
|
52
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
53
|
//#endregion
|
|
8
54
|
export { splitwiseUpdateExpense };
|
|
9
55
|
//# sourceMappingURL=update-expense.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense.d.cts","names":[],"sources":["../../src/actions/update-expense.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"update-expense.d.cts","names":[],"sources":["../../src/actions/update-expense.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAmB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,55 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-expense.d.ts
|
|
4
|
-
declare const SplitwiseUpdateExpenseInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseUpdateExpenseInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
cost: z.ZodOptional<z.ZodString>;
|
|
7
|
+
date: z.ZodOptional<z.ZodString>;
|
|
8
|
+
users: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
|
+
email: z.ZodOptional<z.ZodString>;
|
|
10
|
+
user_id: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
12
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
13
|
+
owed_share: z.ZodString;
|
|
14
|
+
paid_share: z.ZodString;
|
|
15
|
+
}, z.core.$loose>>>;
|
|
16
|
+
details: z.ZodOptional<z.ZodString>;
|
|
17
|
+
group_id: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
category_id: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
description: z.ZodOptional<z.ZodString>;
|
|
20
|
+
currency_code: z.ZodOptional<z.ZodString>;
|
|
21
|
+
repeat_interval: z.ZodOptional<z.ZodEnum<{
|
|
22
|
+
never: "never";
|
|
23
|
+
weekly: "weekly";
|
|
24
|
+
fortnightly: "fortnightly";
|
|
25
|
+
monthly: "monthly";
|
|
26
|
+
yearly: "yearly";
|
|
27
|
+
}>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const SplitwiseUpdateExpenseOutput: z.ZodObject<{
|
|
30
|
+
errors: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
31
|
+
expenses: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
32
|
+
}, z.core.$loose>;
|
|
33
|
+
declare const splitwiseUpdateExpense: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
34
|
+
id: number;
|
|
35
|
+
cost?: string | undefined;
|
|
36
|
+
date?: string | undefined;
|
|
37
|
+
users?: {
|
|
38
|
+
[x: string]: unknown;
|
|
39
|
+
owed_share: string;
|
|
40
|
+
paid_share: string;
|
|
41
|
+
email?: string | undefined;
|
|
42
|
+
user_id?: number | undefined;
|
|
43
|
+
last_name?: string | undefined;
|
|
44
|
+
first_name?: string | undefined;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
details?: string | undefined;
|
|
47
|
+
group_id?: number | undefined;
|
|
48
|
+
category_id?: number | undefined;
|
|
49
|
+
description?: string | undefined;
|
|
50
|
+
currency_code?: string | undefined;
|
|
51
|
+
repeat_interval?: "never" | "weekly" | "fortnightly" | "monthly" | "yearly" | undefined;
|
|
52
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
53
|
//#endregion
|
|
8
54
|
export { splitwiseUpdateExpense };
|
|
9
55
|
//# sourceMappingURL=update-expense.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-expense.d.mts","names":[],"sources":["../../src/actions/update-expense.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"update-expense.d.mts","names":[],"sources":["../../src/actions/update-expense.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAmB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -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
|
|
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;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,YAAY,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,CAAC,SAAS,mSAAmS,CAAC,CAAC,SAAS;EACvd,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACpG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC9E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACjF,iBAAiB,EAAE,KAAK;GAAC;GAAS;GAAU;GAAe;GAAW;EAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxI,CAAC,CAAC,CAAC,SAAS,uKAUH;CACP,QAV0C,EAAE,OAAO;EACnD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C;EAC9F,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,4CAA4C;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,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,9 +24,9 @@ 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
|
-
id: zod.z.number().int().describe("Unique identifier for the user"),
|
|
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(),
|
|
31
31
|
locale: zod.z.string().describe("User's locale setting").nullable().optional(),
|
|
32
32
|
picture: SplitwiseUpdateUser_PictureSchema.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
|
|
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":"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"}
|
|
@@ -1,9 +1,57 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-user.d.ts
|
|
4
|
-
declare const SplitwiseUpdateUserInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseUpdateUserInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
email: z.ZodOptional<z.ZodString>;
|
|
7
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
8
|
+
password: z.ZodOptional<z.ZodString>;
|
|
9
|
+
last_name: z.ZodOptional<z.ZodString>;
|
|
10
|
+
first_name: z.ZodOptional<z.ZodString>;
|
|
11
|
+
default_currency: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const SplitwiseUpdateUserOutput: z.ZodObject<{
|
|
14
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
picture: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19
|
+
large: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
small: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
date_format: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
notifications: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
|
+
bills: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
29
|
+
payments: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
30
|
+
announcements: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
31
|
+
expense_added: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
32
|
+
added_to_group: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
33
|
+
added_as_friend: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
34
|
+
expense_updated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
35
|
+
monthly_summary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
36
|
+
}, z.core.$loose>>>;
|
|
37
|
+
custom_picture: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
38
|
+
default_currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
default_group_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
|
+
force_refresh_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
notifications_read: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
notifications_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
|
+
registration_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
|
+
declare const splitwiseUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
|
+
id: number;
|
|
48
|
+
email?: string | undefined;
|
|
49
|
+
locale?: string | undefined;
|
|
50
|
+
password?: string | undefined;
|
|
51
|
+
last_name?: string | undefined;
|
|
52
|
+
first_name?: string | undefined;
|
|
53
|
+
default_currency?: string | undefined;
|
|
54
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
55
|
//#endregion
|
|
8
56
|
export { splitwiseUpdateUser };
|
|
9
57
|
//# sourceMappingURL=update-user.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user.d.cts","names":[],"sources":["../../src/actions/update-user.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"update-user.d.cts","names":[],"sources":["../../src/actions/update-user.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;cA0CxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
|