@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-expense.d.mts","names":[],"sources":["../../src/actions/delete-expense.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"delete-expense.d.mts","names":[],"sources":["../../src/actions/delete-expense.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -7,8 +7,8 @@ const splitwiseDeleteExpense = action("SPLITWISE_DELETE_EXPENSE", {
|
|
|
7
7
|
input: z.object({ id: z.number().int().describe("Unique identifier of the expense to delete.") }).describe("Request model for deleting an expense."),
|
|
8
8
|
output: z.object({
|
|
9
9
|
errors: z.array(z.string()).describe("List of error messages returned by the API, if any.").nullable().optional(),
|
|
10
|
-
success: z.boolean().describe("Indicates whether the deletion was successful.")
|
|
11
|
-
}).describe("Response model for deleting an expense.")
|
|
10
|
+
success: z.boolean().describe("Indicates whether the deletion was successful.").nullable()
|
|
11
|
+
}).passthrough().describe("Response model for deleting an expense.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { splitwiseDeleteExpense };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-expense.mjs","names":[],"sources":["../../src/actions/delete-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseDeleteExpenseInput
|
|
1
|
+
{"version":3,"file":"delete-expense.mjs","names":[],"sources":["../../src/actions/delete-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseDeleteExpenseInput = z.object({\n id: z.number().int().describe(\"Unique identifier of the expense to delete.\"),\n}).describe(\"Request model for deleting an expense.\");\nexport const SplitwiseDeleteExpenseOutput = z.object({\n errors: z.array(z.string()).describe(\"List of error messages returned by the API, if any.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the deletion was successful.\").nullable(),\n}).passthrough().describe(\"Response model for deleting an expense.\");\n\nexport const splitwiseDeleteExpense = action(\"SPLITWISE_DELETE_EXPENSE\", {\n slug: \"splitwise-delete-expense\",\n name: \"Delete Expense\",\n description: \"Tool to delete an existing expense by its ID. Deletion is irreversible — no undelete capability exists. Use after confirming you have the correct expense ID. Inspect the response's `success` and `error` fields to verify deletion succeeded; failures (e.g., user lacks owner/participant permissions) are surfaced there.\",\n input: SplitwiseDeleteExpenseInput,\n output: SplitwiseDeleteExpenseOutput,\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,6CAA6C,EAC7E,CAAC,CAAC,CAAC,SAAS,wCAUH;CACP,QAV0C,EAAE,OAAO;EACnD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
|
|
@@ -4,8 +4,8 @@ let zod = require("zod");
|
|
|
4
4
|
const SplitwiseDeleteFriendInput = zod.z.object({ friend_id: zod.z.number().int().describe("The unique identifier of the friend to delete.") }).describe("Request model for deleting a friend relationship.");
|
|
5
5
|
const SplitwiseDeleteFriendOutput = zod.z.object({
|
|
6
6
|
errors: zod.z.array(zod.z.string()).describe("List of error messages if the deletion failed.").nullable().optional(),
|
|
7
|
-
success: zod.z.boolean().describe("Indicates whether the deletion was successful.")
|
|
8
|
-
}).describe("Response model for the DeleteFriend action.");
|
|
7
|
+
success: zod.z.boolean().describe("Indicates whether the deletion was successful.").nullable()
|
|
8
|
+
}).passthrough().describe("Response model for the DeleteFriend action.");
|
|
9
9
|
const splitwiseDeleteFriend = require_action.action("SPLITWISE_DELETE_FRIEND", {
|
|
10
10
|
slug: "splitwise-delete-friend",
|
|
11
11
|
name: "Delete Friend",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-friend.cjs","names":["z","action"],"sources":["../../src/actions/delete-friend.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseDeleteFriendInput
|
|
1
|
+
{"version":3,"file":"delete-friend.cjs","names":["z","action"],"sources":["../../src/actions/delete-friend.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseDeleteFriendInput = z.object({\n friend_id: z.number().int().describe(\"The unique identifier of the friend to delete.\"),\n}).describe(\"Request model for deleting a friend relationship.\");\nexport const SplitwiseDeleteFriendOutput = z.object({\n errors: z.array(z.string()).describe(\"List of error messages if the deletion failed.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the deletion was successful.\").nullable(),\n}).passthrough().describe(\"Response model for the DeleteFriend action.\");\n\nexport const splitwiseDeleteFriend = action(\"SPLITWISE_DELETE_FRIEND\", {\n slug: \"splitwise-delete-friend\",\n name: \"Delete Friend\",\n description: \"Tool to delete an existing friend by ID. Use when you need to remove a friend relationship by its user ID. Call after confirming the correct friend ID.\",\n input: SplitwiseDeleteFriendInput,\n output: SplitwiseDeleteFriendOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EACvF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,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/delete-friend.d.ts
|
|
4
|
-
declare const SplitwiseDeleteFriendInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseDeleteFriendInput: z.ZodObject<{
|
|
5
|
+
friend_id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SplitwiseDeleteFriendOutput: 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 splitwiseDeleteFriend: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
friend_id: number;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { splitwiseDeleteFriend };
|
|
9
16
|
//# sourceMappingURL=delete-friend.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-friend.d.cts","names":[],"sources":["../../src/actions/delete-friend.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"delete-friend.d.cts","names":[],"sources":["../../src/actions/delete-friend.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-friend.d.ts
|
|
4
|
-
declare const SplitwiseDeleteFriendInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseDeleteFriendInput: z.ZodObject<{
|
|
5
|
+
friend_id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SplitwiseDeleteFriendOutput: 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 splitwiseDeleteFriend: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
friend_id: number;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { splitwiseDeleteFriend };
|
|
9
16
|
//# sourceMappingURL=delete-friend.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-friend.d.mts","names":[],"sources":["../../src/actions/delete-friend.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"delete-friend.d.mts","names":[],"sources":["../../src/actions/delete-friend.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -7,8 +7,8 @@ const splitwiseDeleteFriend = action("SPLITWISE_DELETE_FRIEND", {
|
|
|
7
7
|
input: z.object({ friend_id: z.number().int().describe("The unique identifier of the friend to delete.") }).describe("Request model for deleting a friend relationship."),
|
|
8
8
|
output: z.object({
|
|
9
9
|
errors: z.array(z.string()).describe("List of error messages if the deletion failed.").nullable().optional(),
|
|
10
|
-
success: z.boolean().describe("Indicates whether the deletion was successful.")
|
|
11
|
-
}).describe("Response model for the DeleteFriend action.")
|
|
10
|
+
success: z.boolean().describe("Indicates whether the deletion was successful.").nullable()
|
|
11
|
+
}).passthrough().describe("Response model for the DeleteFriend action.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { splitwiseDeleteFriend };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-friend.mjs","names":[],"sources":["../../src/actions/delete-friend.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseDeleteFriendInput
|
|
1
|
+
{"version":3,"file":"delete-friend.mjs","names":[],"sources":["../../src/actions/delete-friend.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseDeleteFriendInput = z.object({\n friend_id: z.number().int().describe(\"The unique identifier of the friend to delete.\"),\n}).describe(\"Request model for deleting a friend relationship.\");\nexport const SplitwiseDeleteFriendOutput = z.object({\n errors: z.array(z.string()).describe(\"List of error messages if the deletion failed.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the deletion was successful.\").nullable(),\n}).passthrough().describe(\"Response model for the DeleteFriend action.\");\n\nexport const splitwiseDeleteFriend = action(\"SPLITWISE_DELETE_FRIEND\", {\n slug: \"splitwise-delete-friend\",\n name: \"Delete Friend\",\n description: \"Tool to delete an existing friend by ID. Use when you need to remove a friend relationship by its user ID. Call after confirming the correct friend ID.\",\n input: SplitwiseDeleteFriendInput,\n output: SplitwiseDeleteFriendOutput,\n});\n"],"mappings":";;AAYA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZwC,EAAE,OAAO,EACjD,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,EACvF,CAAC,CAAC,CAAC,SAAS,mDAUH;CACP,QAVyC,EAAE,OAAO;EAClD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -4,8 +4,8 @@ let zod = require("zod");
|
|
|
4
4
|
const SplitwiseDeleteGroupInput = zod.z.object({ id: zod.z.number().int().describe("The unique identifier of the group to delete.") }).describe("Request model for deleting a group.");
|
|
5
5
|
const SplitwiseDeleteGroupOutput = zod.z.object({
|
|
6
6
|
errors: zod.z.array(zod.z.string()).describe("List of error messages if the deletion failed.").nullable().optional(),
|
|
7
|
-
success: zod.z.boolean().describe("Indicates whether the deletion was successful.")
|
|
8
|
-
}).describe("Response model for the DeleteGroup action.");
|
|
7
|
+
success: zod.z.boolean().describe("Indicates whether the deletion was successful.").nullable()
|
|
8
|
+
}).passthrough().describe("Response model for the DeleteGroup action.");
|
|
9
9
|
const splitwiseDeleteGroup = require_action.action("SPLITWISE_DELETE_GROUP", {
|
|
10
10
|
slug: "splitwise-delete-group",
|
|
11
11
|
name: "Delete Group",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-group.cjs","names":["z","action"],"sources":["../../src/actions/delete-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseDeleteGroupInput
|
|
1
|
+
{"version":3,"file":"delete-group.cjs","names":["z","action"],"sources":["../../src/actions/delete-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseDeleteGroupInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the group to delete.\"),\n}).describe(\"Request model for deleting a group.\");\nexport const SplitwiseDeleteGroupOutput = z.object({\n errors: z.array(z.string()).describe(\"List of error messages if the deletion failed.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the deletion was successful.\").nullable(),\n}).passthrough().describe(\"Response model for the DeleteGroup action.\");\n\nexport const splitwiseDeleteGroup = action(\"SPLITWISE_DELETE_GROUP\", {\n slug: \"splitwise-delete-group\",\n name: \"Delete Group\",\n description: \"Tool to delete a group and all associated records by its ID. Use when you need to permanently remove a group and its expenses. Call after confirming the correct group ID.\",\n input: SplitwiseDeleteGroupInput,\n output: SplitwiseDeleteGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,EAC/E,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,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/delete-group.d.ts
|
|
4
|
-
declare const SplitwiseDeleteGroupInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseDeleteGroupInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SplitwiseDeleteGroupOutput: 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 splitwiseDeleteGroup: 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 { splitwiseDeleteGroup };
|
|
9
16
|
//# sourceMappingURL=delete-group.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-group.d.cts","names":[],"sources":["../../src/actions/delete-group.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"delete-group.d.cts","names":[],"sources":["../../src/actions/delete-group.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/delete-group.d.ts
|
|
4
|
-
declare const SplitwiseDeleteGroupInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseDeleteGroupInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SplitwiseDeleteGroupOutput: 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 splitwiseDeleteGroup: 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 { splitwiseDeleteGroup };
|
|
9
16
|
//# sourceMappingURL=delete-group.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-group.d.mts","names":[],"sources":["../../src/actions/delete-group.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"delete-group.d.mts","names":[],"sources":["../../src/actions/delete-group.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -7,8 +7,8 @@ const splitwiseDeleteGroup = action("SPLITWISE_DELETE_GROUP", {
|
|
|
7
7
|
input: z.object({ id: z.number().int().describe("The unique identifier of the group to delete.") }).describe("Request model for deleting a group."),
|
|
8
8
|
output: z.object({
|
|
9
9
|
errors: z.array(z.string()).describe("List of error messages if the deletion failed.").nullable().optional(),
|
|
10
|
-
success: z.boolean().describe("Indicates whether the deletion was successful.")
|
|
11
|
-
}).describe("Response model for the DeleteGroup action.")
|
|
10
|
+
success: z.boolean().describe("Indicates whether the deletion was successful.").nullable()
|
|
11
|
+
}).passthrough().describe("Response model for the DeleteGroup action.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { splitwiseDeleteGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-group.mjs","names":[],"sources":["../../src/actions/delete-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseDeleteGroupInput
|
|
1
|
+
{"version":3,"file":"delete-group.mjs","names":[],"sources":["../../src/actions/delete-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseDeleteGroupInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the group to delete.\"),\n}).describe(\"Request model for deleting a group.\");\nexport const SplitwiseDeleteGroupOutput = z.object({\n errors: z.array(z.string()).describe(\"List of error messages if the deletion failed.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the deletion was successful.\").nullable(),\n}).passthrough().describe(\"Response model for the DeleteGroup action.\");\n\nexport const splitwiseDeleteGroup = action(\"SPLITWISE_DELETE_GROUP\", {\n slug: \"splitwise-delete-group\",\n name: \"Delete Group\",\n description: \"Tool to delete a group and all associated records by its ID. Use when you need to permanently remove a group and its expenses. Call after confirming the correct group ID.\",\n input: SplitwiseDeleteGroupInput,\n output: SplitwiseDeleteGroupOutput,\n});\n"],"mappings":";;AAYA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuC,EAAE,OAAO,EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,EAC/E,CAAC,CAAC,CAAC,SAAS,qCAUH;CACP,QAVwC,EAAE,OAAO;EACjD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
|
|
@@ -3,15 +3,15 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-categories.ts
|
|
4
4
|
const SplitwiseGetCategoriesInput = zod.z.object({}).describe("Request model for fetching expense categories. No parameters required.");
|
|
5
5
|
const SplitwiseGetCategories_SubcategorySchema = zod.z.object({
|
|
6
|
-
id: zod.z.number().int().describe("Unique ID of the subcategory"),
|
|
7
|
-
name: zod.z.string().describe("Name of the subcategory")
|
|
8
|
-
}).describe("Represents a subcategory under a main expense category.");
|
|
6
|
+
id: zod.z.number().int().describe("Unique ID of the subcategory").nullable(),
|
|
7
|
+
name: zod.z.string().describe("Name of the subcategory").nullable()
|
|
8
|
+
}).passthrough().describe("Represents a subcategory under a main expense category.");
|
|
9
9
|
const SplitwiseGetCategories_CategorySchema = zod.z.object({
|
|
10
|
-
id: zod.z.number().int().describe("Unique ID of the category"),
|
|
11
|
-
name: zod.z.string().describe("Name of the category"),
|
|
10
|
+
id: zod.z.number().int().describe("Unique ID of the category").nullable(),
|
|
11
|
+
name: zod.z.string().describe("Name of the category").nullable(),
|
|
12
12
|
subcategories: zod.z.array(SplitwiseGetCategories_SubcategorySchema).describe("List of subcategories belonging to this category")
|
|
13
|
-
}).describe("Represents a main expense category.");
|
|
14
|
-
const SplitwiseGetCategoriesOutput = zod.z.object({ categories: zod.z.array(SplitwiseGetCategories_CategorySchema).describe("List of expense categories and their subcategories") }).describe("Response model for the get_categories action.");
|
|
13
|
+
}).passthrough().describe("Represents a main expense category.");
|
|
14
|
+
const SplitwiseGetCategoriesOutput = zod.z.object({ categories: zod.z.array(SplitwiseGetCategories_CategorySchema).describe("List of expense categories and their subcategories") }).passthrough().describe("Response model for the get_categories action.");
|
|
15
15
|
const splitwiseGetCategories = require_action.action("SPLITWISE_GET_CATEGORIES", {
|
|
16
16
|
slug: "splitwise-get-categories",
|
|
17
17
|
name: "Get Categories",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-categories.cjs","names":["z","action"],"sources":["../../src/actions/get-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetCategoriesInput
|
|
1
|
+
{"version":3,"file":"get-categories.cjs","names":["z","action"],"sources":["../../src/actions/get-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetCategoriesInput = z.object({}).describe(\"Request model for fetching expense categories. No parameters required.\");\nconst SplitwiseGetCategories_SubcategorySchema = z.object({\n id: z.number().int().describe(\"Unique ID of the subcategory\").nullable(),\n name: z.string().describe(\"Name of the subcategory\").nullable(),\n}).passthrough().describe(\"Represents a subcategory under a main expense category.\");\nconst SplitwiseGetCategories_CategorySchema = z.object({\n id: z.number().int().describe(\"Unique ID of the category\").nullable(),\n name: z.string().describe(\"Name of the category\").nullable(),\n subcategories: z.array(SplitwiseGetCategories_SubcategorySchema).describe(\"List of subcategories belonging to this category\"),\n}).passthrough().describe(\"Represents a main expense category.\");\nexport const SplitwiseGetCategoriesOutput = z.object({\n categories: z.array(SplitwiseGetCategories_CategorySchema).describe(\"List of expense categories and their subcategories\"),\n}).passthrough().describe(\"Response model for the get_categories action.\");\n\nexport const splitwiseGetCategories = action(\"SPLITWISE_GET_CATEGORIES\", {\n slug: \"splitwise-get-categories\",\n name: \"Get Categories\",\n description: \"Tool to retrieve expense categories. Use when you need to list available categories before creating an expense.\",\n input: SplitwiseGetCategoriesInput,\n output: SplitwiseGetCategoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACzI,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,eAAeA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,kDAAkD;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,YAAYA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,oDAAoD,EAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-categories.d.ts
|
|
4
|
-
declare const SplitwiseGetCategoriesInput: z.
|
|
5
|
-
declare const SplitwiseGetCategoriesOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseGetCategoriesInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SplitwiseGetCategoriesOutput: z.ZodObject<{
|
|
6
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
name: z.ZodNullable<z.ZodString>;
|
|
9
|
+
subcategories: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
}, z.core.$loose>>;
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
|
+
}, z.core.$loose>;
|
|
15
|
+
declare const splitwiseGetCategories: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { splitwiseGetCategories };
|
|
9
18
|
//# sourceMappingURL=get-categories.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-categories.d.cts","names":[],"sources":["../../src/actions/get-categories.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-categories.d.cts","names":[],"sources":["../../src/actions/get-categories.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAU3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-categories.d.ts
|
|
4
|
-
declare const SplitwiseGetCategoriesInput: z.
|
|
5
|
-
declare const SplitwiseGetCategoriesOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseGetCategoriesInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SplitwiseGetCategoriesOutput: z.ZodObject<{
|
|
6
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
name: z.ZodNullable<z.ZodString>;
|
|
9
|
+
subcategories: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
}, z.core.$loose>>;
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
|
+
}, z.core.$loose>;
|
|
15
|
+
declare const splitwiseGetCategories: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { splitwiseGetCategories };
|
|
9
18
|
//# sourceMappingURL=get-categories.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-categories.d.mts","names":[],"sources":["../../src/actions/get-categories.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-categories.d.mts","names":[],"sources":["../../src/actions/get-categories.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAU3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,20 +3,20 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-categories.ts
|
|
4
4
|
const SplitwiseGetCategoriesInput = z.object({}).describe("Request model for fetching expense categories. No parameters required.");
|
|
5
5
|
const SplitwiseGetCategories_SubcategorySchema = z.object({
|
|
6
|
-
id: z.number().int().describe("Unique ID of the subcategory"),
|
|
7
|
-
name: z.string().describe("Name of the subcategory")
|
|
8
|
-
}).describe("Represents a subcategory under a main expense category.");
|
|
6
|
+
id: z.number().int().describe("Unique ID of the subcategory").nullable(),
|
|
7
|
+
name: z.string().describe("Name of the subcategory").nullable()
|
|
8
|
+
}).passthrough().describe("Represents a subcategory under a main expense category.");
|
|
9
9
|
const SplitwiseGetCategories_CategorySchema = z.object({
|
|
10
|
-
id: z.number().int().describe("Unique ID of the category"),
|
|
11
|
-
name: z.string().describe("Name of the category"),
|
|
10
|
+
id: z.number().int().describe("Unique ID of the category").nullable(),
|
|
11
|
+
name: z.string().describe("Name of the category").nullable(),
|
|
12
12
|
subcategories: z.array(SplitwiseGetCategories_SubcategorySchema).describe("List of subcategories belonging to this category")
|
|
13
|
-
}).describe("Represents a main expense category.");
|
|
13
|
+
}).passthrough().describe("Represents a main expense category.");
|
|
14
14
|
const splitwiseGetCategories = action("SPLITWISE_GET_CATEGORIES", {
|
|
15
15
|
slug: "splitwise-get-categories",
|
|
16
16
|
name: "Get Categories",
|
|
17
17
|
description: "Tool to retrieve expense categories. Use when you need to list available categories before creating an expense.",
|
|
18
18
|
input: SplitwiseGetCategoriesInput,
|
|
19
|
-
output: z.object({ categories: z.array(SplitwiseGetCategories_CategorySchema).describe("List of expense categories and their subcategories") }).describe("Response model for the get_categories action.")
|
|
19
|
+
output: z.object({ categories: z.array(SplitwiseGetCategories_CategorySchema).describe("List of expense categories and their subcategories") }).passthrough().describe("Response model for the get_categories action.")
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
22
22
|
export { splitwiseGetCategories };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-categories.mjs","names":[],"sources":["../../src/actions/get-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetCategoriesInput
|
|
1
|
+
{"version":3,"file":"get-categories.mjs","names":[],"sources":["../../src/actions/get-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetCategoriesInput = z.object({}).describe(\"Request model for fetching expense categories. No parameters required.\");\nconst SplitwiseGetCategories_SubcategorySchema = z.object({\n id: z.number().int().describe(\"Unique ID of the subcategory\").nullable(),\n name: z.string().describe(\"Name of the subcategory\").nullable(),\n}).passthrough().describe(\"Represents a subcategory under a main expense category.\");\nconst SplitwiseGetCategories_CategorySchema = z.object({\n id: z.number().int().describe(\"Unique ID of the category\").nullable(),\n name: z.string().describe(\"Name of the category\").nullable(),\n subcategories: z.array(SplitwiseGetCategories_SubcategorySchema).describe(\"List of subcategories belonging to this category\"),\n}).passthrough().describe(\"Represents a main expense category.\");\nexport const SplitwiseGetCategoriesOutput = z.object({\n categories: z.array(SplitwiseGetCategories_CategorySchema).describe(\"List of expense categories and their subcategories\"),\n}).passthrough().describe(\"Response model for the get_categories action.\");\n\nexport const splitwiseGetCategories = action(\"SPLITWISE_GET_CATEGORIES\", {\n slug: \"splitwise-get-categories\",\n name: \"Get Categories\",\n description: \"Tool to retrieve expense categories. Use when you need to list available categories before creating an expense.\",\n input: SplitwiseGetCategoriesInput,\n output: SplitwiseGetCategoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACzI,MAAM,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,eAAe,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,kDAAkD;AAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAK/D,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,YAAY,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,oDAAoD,EAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
|
@@ -6,27 +6,27 @@ const SplitwiseGetComments_PictureSchema = zod.z.object({
|
|
|
6
6
|
large: zod.z.string().describe("URL for large-sized profile picture.").nullable().optional(),
|
|
7
7
|
small: zod.z.string().describe("URL for small-sized profile picture.").nullable().optional(),
|
|
8
8
|
medium: zod.z.string().describe("URL for medium-sized profile picture.").nullable().optional()
|
|
9
|
-
}).describe("URLs for user profile pictures in different sizes.");
|
|
9
|
+
}).passthrough().describe("URLs for user profile pictures in different sizes.");
|
|
10
10
|
const SplitwiseGetComments_UserObjectSchema = zod.z.object({
|
|
11
|
-
id: zod.z.number().int().describe("User ID."),
|
|
11
|
+
id: zod.z.number().int().describe("User ID.").nullable(),
|
|
12
12
|
email: zod.z.string().describe("User's email address.").nullable().optional(),
|
|
13
13
|
picture: SplitwiseGetComments_PictureSchema.nullable().optional(),
|
|
14
14
|
last_name: zod.z.string().describe("User's last name.").nullable().optional(),
|
|
15
15
|
first_name: zod.z.string().describe("User's first name.").nullable().optional(),
|
|
16
16
|
custom_picture: zod.z.boolean().describe("Whether user has custom picture.").nullable().optional(),
|
|
17
17
|
registration_status: zod.z.string().describe("Registration status.").nullable().optional()
|
|
18
|
-
}).describe("Represents a user object in the comment.");
|
|
18
|
+
}).passthrough().describe("Represents a user object in the comment.");
|
|
19
19
|
const SplitwiseGetComments_CommentObjectSchema = zod.z.object({
|
|
20
|
-
id: zod.z.number().int().describe("Unique comment identifier."),
|
|
20
|
+
id: zod.z.number().int().describe("Unique comment identifier.").nullable(),
|
|
21
21
|
user: SplitwiseGetComments_UserObjectSchema.nullable(),
|
|
22
|
-
content: zod.z.string().describe("The text content of the comment."),
|
|
23
|
-
created_at: zod.z.string().describe("Timestamp when the comment was created."),
|
|
22
|
+
content: zod.z.string().describe("The text content of the comment.").nullable(),
|
|
23
|
+
created_at: zod.z.string().describe("Timestamp when the comment was created.").nullable(),
|
|
24
24
|
deleted_at: zod.z.string().describe("Timestamp when the comment was deleted (null if not deleted).").nullable().optional(),
|
|
25
|
-
relation_id: zod.z.number().int().describe("ID of the subject of the comment (the expense ID)."),
|
|
26
|
-
comment_type: zod.z.string().describe("Type of comment. Can be 'System' for system-generated comments or 'User' for user-authored messages."),
|
|
27
|
-
relation_type: zod.z.string().describe("Subject type of the comment. Typically 'ExpenseComment'.")
|
|
28
|
-
}).describe("Represents a comment object associated with an expense.");
|
|
29
|
-
const SplitwiseGetCommentsOutput = zod.z.object({ comments: zod.z.array(SplitwiseGetComments_CommentObjectSchema).describe("Array of comment objects associated with the expense.") }).describe("Response model for retrieving expense comments.");
|
|
25
|
+
relation_id: zod.z.number().int().describe("ID of the subject of the comment (the expense ID).").nullable(),
|
|
26
|
+
comment_type: zod.z.string().describe("Type of comment. Can be 'System' for system-generated comments or 'User' for user-authored messages.").nullable(),
|
|
27
|
+
relation_type: zod.z.string().describe("Subject type of the comment. Typically 'ExpenseComment'.").nullable()
|
|
28
|
+
}).passthrough().describe("Represents a comment object associated with an expense.");
|
|
29
|
+
const SplitwiseGetCommentsOutput = zod.z.object({ comments: zod.z.array(SplitwiseGetComments_CommentObjectSchema).describe("Array of comment objects associated with the expense.") }).passthrough().describe("Response model for retrieving expense comments.");
|
|
30
30
|
const splitwiseGetComments = require_action.action("SPLITWISE_GET_COMMENTS", {
|
|
31
31
|
slug: "splitwise-get-comments",
|
|
32
32
|
name: "Get Comments",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-comments.cjs","names":["z","action"],"sources":["../../src/actions/get-comments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetCommentsInput
|
|
1
|
+
{"version":3,"file":"get-comments.cjs","names":["z","action"],"sources":["../../src/actions/get-comments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetCommentsInput = z.object({\n expense_id: z.number().int().describe(\"The ID of the expense for which to retrieve comments.\"),\n}).describe(\"Request model for retrieving expense comments.\");\nconst SplitwiseGetComments_PictureSchema = z.object({\n large: z.string().describe(\"URL for large-sized profile picture.\").nullable().optional(),\n small: z.string().describe(\"URL for small-sized profile picture.\").nullable().optional(),\n medium: z.string().describe(\"URL for medium-sized profile picture.\").nullable().optional(),\n}).passthrough().describe(\"URLs for user profile pictures in different sizes.\");\nconst SplitwiseGetComments_UserObjectSchema = z.object({\n id: z.number().int().describe(\"User ID.\").nullable(),\n email: z.string().describe(\"User's email address.\").nullable().optional(),\n picture: SplitwiseGetComments_PictureSchema.nullable().optional(),\n last_name: z.string().describe(\"User's last name.\").nullable().optional(),\n first_name: z.string().describe(\"User's first name.\").nullable().optional(),\n custom_picture: z.boolean().describe(\"Whether user has custom picture.\").nullable().optional(),\n registration_status: z.string().describe(\"Registration status.\").nullable().optional(),\n}).passthrough().describe(\"Represents a user object in the comment.\");\nconst SplitwiseGetComments_CommentObjectSchema = z.object({\n id: z.number().int().describe(\"Unique comment identifier.\").nullable(),\n user: SplitwiseGetComments_UserObjectSchema.nullable(),\n content: z.string().describe(\"The text content of the comment.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the comment was created.\").nullable(),\n deleted_at: z.string().describe(\"Timestamp when the comment was deleted (null if not deleted).\").nullable().optional(),\n relation_id: z.number().int().describe(\"ID of the subject of the comment (the expense ID).\").nullable(),\n comment_type: z.string().describe(\"Type of comment. Can be 'System' for system-generated comments or 'User' for user-authored messages.\").nullable(),\n relation_type: z.string().describe(\"Subject type of the comment. Typically 'ExpenseComment'.\").nullable(),\n}).passthrough().describe(\"Represents a comment object associated with an expense.\");\nexport const SplitwiseGetCommentsOutput = z.object({\n comments: z.array(SplitwiseGetComments_CommentObjectSchema).describe(\"Array of comment objects associated with the expense.\"),\n}).passthrough().describe(\"Response model for retrieving expense comments.\");\n\nexport const splitwiseGetComments = action(\"SPLITWISE_GET_COMMENTS\", {\n slug: \"splitwise-get-comments\",\n name: \"Get Comments\",\n description: \"Tool to retrieve all comments associated with a specific expense. Use when you need to view comments on an expense, including both system-generated updates and user-authored messages.\",\n input: SplitwiseGetCommentsInput,\n output: SplitwiseGetCommentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,EAC/F,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAAS,mCAAmC,SAAS,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,MAAM,sCAAsC,SAAS;CACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACtG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACnJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,UAAUA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,uDAAuD,EAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-comments.d.ts
|
|
4
|
-
declare const SplitwiseGetCommentsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseGetCommentsInput: z.ZodObject<{
|
|
5
|
+
expense_id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SplitwiseGetCommentsOutput: z.ZodObject<{
|
|
8
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
picture: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
|
+
large: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
small: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$loose>>>;
|
|
18
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
custom_picture: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
|
+
registration_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
content: z.ZodNullable<z.ZodString>;
|
|
24
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
25
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
relation_id: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
comment_type: z.ZodNullable<z.ZodString>;
|
|
28
|
+
relation_type: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const splitwiseGetComments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
expense_id: number;
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
34
|
//#endregion
|
|
8
35
|
export { splitwiseGetComments };
|
|
9
36
|
//# sourceMappingURL=get-comments.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-comments.d.cts","names":[],"sources":["../../src/actions/get-comments.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"get-comments.d.cts","names":[],"sources":["../../src/actions/get-comments.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cA2BzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-comments.d.ts
|
|
4
|
-
declare const SplitwiseGetCommentsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseGetCommentsInput: z.ZodObject<{
|
|
5
|
+
expense_id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SplitwiseGetCommentsOutput: z.ZodObject<{
|
|
8
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
picture: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
|
+
large: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
small: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$loose>>>;
|
|
18
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
custom_picture: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
|
+
registration_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
content: z.ZodNullable<z.ZodString>;
|
|
24
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
25
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
relation_id: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
comment_type: z.ZodNullable<z.ZodString>;
|
|
28
|
+
relation_type: z.ZodNullable<z.ZodString>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const splitwiseGetComments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
expense_id: number;
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
34
|
//#endregion
|
|
8
35
|
export { splitwiseGetComments };
|
|
9
36
|
//# sourceMappingURL=get-comments.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-comments.d.mts","names":[],"sources":["../../src/actions/get-comments.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"get-comments.d.mts","names":[],"sources":["../../src/actions/get-comments.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cA2BzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -6,32 +6,32 @@ const SplitwiseGetComments_PictureSchema = z.object({
|
|
|
6
6
|
large: z.string().describe("URL for large-sized profile picture.").nullable().optional(),
|
|
7
7
|
small: z.string().describe("URL for small-sized profile picture.").nullable().optional(),
|
|
8
8
|
medium: z.string().describe("URL for medium-sized profile picture.").nullable().optional()
|
|
9
|
-
}).describe("URLs for user profile pictures in different sizes.");
|
|
9
|
+
}).passthrough().describe("URLs for user profile pictures in different sizes.");
|
|
10
10
|
const SplitwiseGetComments_UserObjectSchema = z.object({
|
|
11
|
-
id: z.number().int().describe("User ID."),
|
|
11
|
+
id: z.number().int().describe("User ID.").nullable(),
|
|
12
12
|
email: z.string().describe("User's email address.").nullable().optional(),
|
|
13
13
|
picture: SplitwiseGetComments_PictureSchema.nullable().optional(),
|
|
14
14
|
last_name: z.string().describe("User's last name.").nullable().optional(),
|
|
15
15
|
first_name: z.string().describe("User's first name.").nullable().optional(),
|
|
16
16
|
custom_picture: z.boolean().describe("Whether user has custom picture.").nullable().optional(),
|
|
17
17
|
registration_status: z.string().describe("Registration status.").nullable().optional()
|
|
18
|
-
}).describe("Represents a user object in the comment.");
|
|
18
|
+
}).passthrough().describe("Represents a user object in the comment.");
|
|
19
19
|
const SplitwiseGetComments_CommentObjectSchema = z.object({
|
|
20
|
-
id: z.number().int().describe("Unique comment identifier."),
|
|
20
|
+
id: z.number().int().describe("Unique comment identifier.").nullable(),
|
|
21
21
|
user: SplitwiseGetComments_UserObjectSchema.nullable(),
|
|
22
|
-
content: z.string().describe("The text content of the comment."),
|
|
23
|
-
created_at: z.string().describe("Timestamp when the comment was created."),
|
|
22
|
+
content: z.string().describe("The text content of the comment.").nullable(),
|
|
23
|
+
created_at: z.string().describe("Timestamp when the comment was created.").nullable(),
|
|
24
24
|
deleted_at: z.string().describe("Timestamp when the comment was deleted (null if not deleted).").nullable().optional(),
|
|
25
|
-
relation_id: z.number().int().describe("ID of the subject of the comment (the expense ID)."),
|
|
26
|
-
comment_type: z.string().describe("Type of comment. Can be 'System' for system-generated comments or 'User' for user-authored messages."),
|
|
27
|
-
relation_type: z.string().describe("Subject type of the comment. Typically 'ExpenseComment'.")
|
|
28
|
-
}).describe("Represents a comment object associated with an expense.");
|
|
25
|
+
relation_id: z.number().int().describe("ID of the subject of the comment (the expense ID).").nullable(),
|
|
26
|
+
comment_type: z.string().describe("Type of comment. Can be 'System' for system-generated comments or 'User' for user-authored messages.").nullable(),
|
|
27
|
+
relation_type: z.string().describe("Subject type of the comment. Typically 'ExpenseComment'.").nullable()
|
|
28
|
+
}).passthrough().describe("Represents a comment object associated with an expense.");
|
|
29
29
|
const splitwiseGetComments = action("SPLITWISE_GET_COMMENTS", {
|
|
30
30
|
slug: "splitwise-get-comments",
|
|
31
31
|
name: "Get Comments",
|
|
32
32
|
description: "Tool to retrieve all comments associated with a specific expense. Use when you need to view comments on an expense, including both system-generated updates and user-authored messages.",
|
|
33
33
|
input: SplitwiseGetCommentsInput,
|
|
34
|
-
output: z.object({ comments: z.array(SplitwiseGetComments_CommentObjectSchema).describe("Array of comment objects associated with the expense.") }).describe("Response model for retrieving expense comments.")
|
|
34
|
+
output: z.object({ comments: z.array(SplitwiseGetComments_CommentObjectSchema).describe("Array of comment objects associated with the expense.") }).passthrough().describe("Response model for retrieving expense comments.")
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { splitwiseGetComments };
|