@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
|
@@ -9,18 +9,18 @@ const SplitwiseGetGroups_AvatarSchema = z.object({
|
|
|
9
9
|
xlarge: z.string().describe("URL for the xlarge-sized avatar").nullable().optional(),
|
|
10
10
|
xxlarge: z.string().describe("URL for the xxlarge-sized avatar").nullable().optional(),
|
|
11
11
|
original: z.string().describe("URL for the original avatar image").nullable().optional()
|
|
12
|
-
}).describe("URLs for group avatar images in different sizes.");
|
|
12
|
+
}).passthrough().describe("URLs for group avatar images in different sizes.");
|
|
13
13
|
const SplitwiseGetGroups_BalanceSchema = z.object({
|
|
14
|
-
amount: z.string().describe("Balance amount as a decimal string"),
|
|
15
|
-
currency_code: z.string().describe("Currency code (e.g., USD, EUR)")
|
|
16
|
-
}).describe("Represents a currency balance for a user.");
|
|
14
|
+
amount: z.string().describe("Balance amount as a decimal string").nullable(),
|
|
15
|
+
currency_code: z.string().describe("Currency code (e.g., USD, EUR)").nullable()
|
|
16
|
+
}).passthrough().describe("Represents a currency balance for a user.");
|
|
17
17
|
const SplitwiseGetGroups_PictureSchema = z.object({
|
|
18
18
|
large: z.string().describe("URL for the large-sized profile picture").nullable().optional(),
|
|
19
19
|
small: z.string().describe("URL for the small-sized profile picture").nullable().optional(),
|
|
20
20
|
medium: z.string().describe("URL for the medium-sized profile picture").nullable().optional()
|
|
21
|
-
}).describe("URLs for profile pictures in different sizes.");
|
|
21
|
+
}).passthrough().describe("URLs for profile pictures in different sizes.");
|
|
22
22
|
const SplitwiseGetGroups_MemberSchema = z.object({
|
|
23
|
-
id: z.number().int().describe("Unique identifier for the user"),
|
|
23
|
+
id: z.number().int().describe("Unique identifier for the user").nullable(),
|
|
24
24
|
email: z.string().describe("User's email address").nullable().optional(),
|
|
25
25
|
balance: z.array(SplitwiseGetGroups_BalanceSchema).describe("Currency balance objects for this member").nullable().optional(),
|
|
26
26
|
picture: SplitwiseGetGroups_PictureSchema.nullable().optional(),
|
|
@@ -28,24 +28,24 @@ const SplitwiseGetGroups_MemberSchema = z.object({
|
|
|
28
28
|
first_name: z.string().describe("User's first name").nullable().optional(),
|
|
29
29
|
custom_picture: z.boolean().describe("Indicates if user has custom profile picture").nullable().optional(),
|
|
30
30
|
registration_status: z.string().describe("Registration status of the user").nullable().optional()
|
|
31
|
-
}).describe("Represents a member in a group.");
|
|
31
|
+
}).passthrough().describe("Represents a member in a group.");
|
|
32
32
|
const SplitwiseGetGroups_CoverPhotoSchema = z.object({
|
|
33
33
|
xlarge: z.string().describe("URL for the xlarge-sized cover photo").nullable().optional(),
|
|
34
34
|
xxlarge: z.string().describe("URL for the xxlarge-sized cover photo").nullable().optional()
|
|
35
|
-
}).describe("URLs for group cover photo in different sizes.");
|
|
35
|
+
}).passthrough().describe("URLs for group cover photo in different sizes.");
|
|
36
36
|
const SplitwiseGetGroups_TallAvatarSchema = z.object({
|
|
37
37
|
large: z.string().describe("URL for the large-sized tall avatar").nullable().optional(),
|
|
38
38
|
xlarge: z.string().describe("URL for the xlarge-sized tall avatar").nullable().optional()
|
|
39
|
-
}).describe("URLs for group tall avatar images in different sizes.");
|
|
39
|
+
}).passthrough().describe("URLs for group tall avatar images in different sizes.");
|
|
40
40
|
const SplitwiseGetGroups_DebtSchema = z.object({
|
|
41
|
-
to: z.number().int().describe("Creditor user ID"),
|
|
42
|
-
from: z.number().int().describe("Debtor user ID"),
|
|
43
|
-
amount: z.string().describe("Debt amount as a decimal string"),
|
|
44
|
-
currency_code: z.string().describe("Currency code for the debt")
|
|
45
|
-
}).describe("Represents a debt between two users.");
|
|
41
|
+
to: z.number().int().describe("Creditor user ID").nullable(),
|
|
42
|
+
from: z.number().int().describe("Debtor user ID").nullable(),
|
|
43
|
+
amount: z.string().describe("Debt amount as a decimal string").nullable(),
|
|
44
|
+
currency_code: z.string().describe("Currency code for the debt").nullable()
|
|
45
|
+
}).passthrough().describe("Represents a debt between two users.");
|
|
46
46
|
const SplitwiseGetGroups_GroupSchema = z.object({
|
|
47
|
-
id: z.number().int().describe("Unique identifier for the group"),
|
|
48
|
-
name: z.string().describe("Group display name"),
|
|
47
|
+
id: z.number().int().describe("Unique identifier for the group").nullable(),
|
|
48
|
+
name: z.string().describe("Group display name").nullable(),
|
|
49
49
|
avatar: SplitwiseGetGroups_AvatarSchema.nullable().optional(),
|
|
50
50
|
members: z.array(SplitwiseGetGroups_MemberSchema).describe("Users belonging to the group").nullable().optional(),
|
|
51
51
|
created_at: z.string().describe("Group creation timestamp (ISO 8601)").nullable().optional(),
|
|
@@ -62,13 +62,13 @@ const SplitwiseGetGroups_GroupSchema = z.object({
|
|
|
62
62
|
whiteboard_updated_at: z.string().describe("Whiteboard last update timestamp (ISO 8601)").nullable().optional(),
|
|
63
63
|
whiteboard_updated_by: z.number().int().describe("User ID who last updated whiteboard").nullable().optional(),
|
|
64
64
|
whiteboard_lock_version: z.number().int().describe("Version lock for whiteboard updates").nullable().optional()
|
|
65
|
-
}).describe("Represents a Splitwise group.");
|
|
65
|
+
}).passthrough().describe("Represents a Splitwise group.");
|
|
66
66
|
const splitwiseGetGroups = action("SPLITWISE_GET_GROUPS", {
|
|
67
67
|
slug: "splitwise-get-groups",
|
|
68
68
|
name: "Get Groups",
|
|
69
69
|
description: "Retrieves all groups the authenticated user belongs to, including group details, members, balances, and debt information. Returns a 'groups' array with no server-side filtering; all name- or ID-based filtering must be done client-side on the full response. Group names may share similar strings or differ in case/whitespace — normalize when matching and prefer group_id once identified. The groups array may be empty if the user belongs to no groups.",
|
|
70
70
|
input: SplitwiseGetGroupsInput,
|
|
71
|
-
output: z.object({ groups: z.array(SplitwiseGetGroups_GroupSchema).describe("List of groups associated with the authenticated user") }).describe("Response model for the get_groups action.")
|
|
71
|
+
output: z.object({ groups: z.array(SplitwiseGetGroups_GroupSchema).describe("List of groups associated with the authenticated user") }).passthrough().describe("Response model for the get_groups action.")
|
|
72
72
|
});
|
|
73
73
|
//#endregion
|
|
74
74
|
export { splitwiseGetGroups };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-groups.mjs","names":[],"sources":["../../src/actions/get-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetGroupsInput: z.ZodTypeAny = z.object({}).describe(\"Request model for fetching groups. No parameters required.\");\nconst SplitwiseGetGroups_AvatarSchema: z.ZodTypeAny = z.object({\n large: z.string().describe(\"URL for the large-sized avatar\").nullable().optional(),\n small: z.string().describe(\"URL for the small-sized avatar\").nullable().optional(),\n medium: z.string().describe(\"URL for the medium-sized avatar\").nullable().optional(),\n xlarge: z.string().describe(\"URL for the xlarge-sized avatar\").nullable().optional(),\n xxlarge: z.string().describe(\"URL for the xxlarge-sized avatar\").nullable().optional(),\n original: z.string().describe(\"URL for the original avatar image\").nullable().optional(),\n}).describe(\"URLs for group avatar images in different sizes.\");\nconst SplitwiseGetGroups_BalanceSchema: z.ZodTypeAny = z.object({\n amount: z.string().describe(\"Balance amount as a decimal string\"),\n currency_code: z.string().describe(\"Currency code (e.g., USD, EUR)\"),\n}).describe(\"Represents a currency balance for a user.\");\nconst SplitwiseGetGroups_PictureSchema: z.ZodTypeAny = z.object({\n large: z.string().describe(\"URL for the large-sized profile picture\").nullable().optional(),\n small: z.string().describe(\"URL for the small-sized profile picture\").nullable().optional(),\n medium: z.string().describe(\"URL for the medium-sized profile picture\").nullable().optional(),\n}).describe(\"URLs for profile pictures in different sizes.\");\nconst SplitwiseGetGroups_MemberSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the user\"),\n email: z.string().describe(\"User's email address\").nullable().optional(),\n balance: z.array(SplitwiseGetGroups_BalanceSchema).describe(\"Currency balance objects for this member\").nullable().optional(),\n picture: SplitwiseGetGroups_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(\"Indicates if user has custom profile picture\").nullable().optional(),\n registration_status: z.string().describe(\"Registration status of the user\").nullable().optional(),\n}).describe(\"Represents a member in a group.\");\nconst SplitwiseGetGroups_CoverPhotoSchema: z.ZodTypeAny = z.object({\n xlarge: z.string().describe(\"URL for the xlarge-sized cover photo\").nullable().optional(),\n xxlarge: z.string().describe(\"URL for the xxlarge-sized cover photo\").nullable().optional(),\n}).describe(\"URLs for group cover photo in different sizes.\");\nconst SplitwiseGetGroups_TallAvatarSchema: z.ZodTypeAny = z.object({\n large: z.string().describe(\"URL for the large-sized tall avatar\").nullable().optional(),\n xlarge: z.string().describe(\"URL for the xlarge-sized tall avatar\").nullable().optional(),\n}).describe(\"URLs for group tall avatar images in different sizes.\");\nconst SplitwiseGetGroups_DebtSchema: z.ZodTypeAny = z.object({\n to: z.number().int().describe(\"Creditor user ID\"),\n from: z.number().int().describe(\"Debtor user ID\"),\n amount: z.string().describe(\"Debt amount as a decimal string\"),\n currency_code: z.string().describe(\"Currency code for the debt\"),\n}).describe(\"Represents a debt between two users.\");\nconst SplitwiseGetGroups_GroupSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the group\"),\n name: z.string().describe(\"Group display name\"),\n avatar: SplitwiseGetGroups_AvatarSchema.nullable().optional(),\n members: z.array(SplitwiseGetGroups_MemberSchema).describe(\"Users belonging to the group\").nullable().optional(),\n created_at: z.string().describe(\"Group creation timestamp (ISO 8601)\").nullable().optional(),\n group_type: z.string().describe(\"Category type (home, trip, couple, other, apartment, house)\").nullable().optional(),\n updated_at: z.string().describe(\"Most recent modification timestamp (ISO 8601)\").nullable().optional(),\n whiteboard: z.string().describe(\"Group whiteboard content\").nullable().optional(),\n cover_photo: SplitwiseGetGroups_CoverPhotoSchema.nullable().optional(),\n invite_link: z.string().describe(\"URL for group membership invitations\").nullable().optional(),\n tall_avatar: SplitwiseGetGroups_TallAvatarSchema.nullable().optional(),\n custom_avatar: z.boolean().describe(\"Indicates if group has custom avatar\").nullable().optional(),\n original_debts: z.array(SplitwiseGetGroups_DebtSchema).describe(\"Unsimplified financial obligations\").nullable().optional(),\n simplified_debts: z.array(SplitwiseGetGroups_DebtSchema).describe(\"Optimized financial obligations\").nullable().optional(),\n simplify_by_default: z.boolean().describe(\"Whether debt simplification is enabled\").nullable().optional(),\n whiteboard_updated_at: z.string().describe(\"Whiteboard last update timestamp (ISO 8601)\").nullable().optional(),\n whiteboard_updated_by: z.number().int().describe(\"User ID who last updated whiteboard\").nullable().optional(),\n whiteboard_lock_version: z.number().int().describe(\"Version lock for whiteboard updates\").nullable().optional(),\n}).describe(\"Represents a Splitwise group.\");\nexport const SplitwiseGetGroupsOutput: z.ZodTypeAny = z.object({\n groups: z.array(SplitwiseGetGroups_GroupSchema).describe(\"List of groups associated with the authenticated user\"),\n}).describe(\"Response model for the get_groups action.\");\n\nexport const splitwiseGetGroups = action(\"SPLITWISE_GET_GROUPS\", {\n slug: \"splitwise-get-groups\",\n name: \"Get Groups\",\n description: \"Retrieves all groups the authenticated user belongs to, including group details, members, balances, and debt information. Returns a 'groups' array with no server-side filtering; all name- or ID-based filtering must be done client-side on the full response. Group names may share similar strings or differ in case/whitespace — normalize when matching and prefer group_id once identified. The groups array may be empty if the user belongs to no groups.\",\n input: SplitwiseGetGroupsInput,\n output: SplitwiseGetGroupsOutput,\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oC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,kBAAkB,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,yBAAyB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAK3C,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,QAAQ,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,uDAAuD,EAClH,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-groups.mjs","names":[],"sources":["../../src/actions/get-groups.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetGroupsInput = z.object({}).describe(\"Request model for fetching groups. No parameters required.\");\nconst SplitwiseGetGroups_AvatarSchema = z.object({\n large: z.string().describe(\"URL for the large-sized avatar\").nullable().optional(),\n small: z.string().describe(\"URL for the small-sized avatar\").nullable().optional(),\n medium: z.string().describe(\"URL for the medium-sized avatar\").nullable().optional(),\n xlarge: z.string().describe(\"URL for the xlarge-sized avatar\").nullable().optional(),\n xxlarge: z.string().describe(\"URL for the xxlarge-sized avatar\").nullable().optional(),\n original: z.string().describe(\"URL for the original avatar image\").nullable().optional(),\n}).passthrough().describe(\"URLs for group avatar images in different sizes.\");\nconst SplitwiseGetGroups_BalanceSchema = z.object({\n amount: z.string().describe(\"Balance amount as a decimal string\").nullable(),\n currency_code: z.string().describe(\"Currency code (e.g., USD, EUR)\").nullable(),\n}).passthrough().describe(\"Represents a currency balance for a user.\");\nconst SplitwiseGetGroups_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 profile pictures in different sizes.\");\nconst SplitwiseGetGroups_MemberSchema = 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 balance: z.array(SplitwiseGetGroups_BalanceSchema).describe(\"Currency balance objects for this member\").nullable().optional(),\n picture: SplitwiseGetGroups_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(\"Indicates if user has custom profile picture\").nullable().optional(),\n registration_status: z.string().describe(\"Registration status of the user\").nullable().optional(),\n}).passthrough().describe(\"Represents a member in a group.\");\nconst SplitwiseGetGroups_CoverPhotoSchema = z.object({\n xlarge: z.string().describe(\"URL for the xlarge-sized cover photo\").nullable().optional(),\n xxlarge: z.string().describe(\"URL for the xxlarge-sized cover photo\").nullable().optional(),\n}).passthrough().describe(\"URLs for group cover photo in different sizes.\");\nconst SplitwiseGetGroups_TallAvatarSchema = z.object({\n large: z.string().describe(\"URL for the large-sized tall avatar\").nullable().optional(),\n xlarge: z.string().describe(\"URL for the xlarge-sized tall avatar\").nullable().optional(),\n}).passthrough().describe(\"URLs for group tall avatar images in different sizes.\");\nconst SplitwiseGetGroups_DebtSchema = z.object({\n to: z.number().int().describe(\"Creditor user ID\").nullable(),\n from: z.number().int().describe(\"Debtor user ID\").nullable(),\n amount: z.string().describe(\"Debt amount as a decimal string\").nullable(),\n currency_code: z.string().describe(\"Currency code for the debt\").nullable(),\n}).passthrough().describe(\"Represents a debt between two users.\");\nconst SplitwiseGetGroups_GroupSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the group\").nullable(),\n name: z.string().describe(\"Group display name\").nullable(),\n avatar: SplitwiseGetGroups_AvatarSchema.nullable().optional(),\n members: z.array(SplitwiseGetGroups_MemberSchema).describe(\"Users belonging to the group\").nullable().optional(),\n created_at: z.string().describe(\"Group creation timestamp (ISO 8601)\").nullable().optional(),\n group_type: z.string().describe(\"Category type (home, trip, couple, other, apartment, house)\").nullable().optional(),\n updated_at: z.string().describe(\"Most recent modification timestamp (ISO 8601)\").nullable().optional(),\n whiteboard: z.string().describe(\"Group whiteboard content\").nullable().optional(),\n cover_photo: SplitwiseGetGroups_CoverPhotoSchema.nullable().optional(),\n invite_link: z.string().describe(\"URL for group membership invitations\").nullable().optional(),\n tall_avatar: SplitwiseGetGroups_TallAvatarSchema.nullable().optional(),\n custom_avatar: z.boolean().describe(\"Indicates if group has custom avatar\").nullable().optional(),\n original_debts: z.array(SplitwiseGetGroups_DebtSchema).describe(\"Unsimplified financial obligations\").nullable().optional(),\n simplified_debts: z.array(SplitwiseGetGroups_DebtSchema).describe(\"Optimized financial obligations\").nullable().optional(),\n simplify_by_default: z.boolean().describe(\"Whether debt simplification is enabled\").nullable().optional(),\n whiteboard_updated_at: z.string().describe(\"Whiteboard last update timestamp (ISO 8601)\").nullable().optional(),\n whiteboard_updated_by: z.number().int().describe(\"User ID who last updated whiteboard\").nullable().optional(),\n whiteboard_lock_version: z.number().int().describe(\"Version lock for whiteboard updates\").nullable().optional(),\n}).passthrough().describe(\"Represents a Splitwise group.\");\nexport const SplitwiseGetGroupsOutput = z.object({\n groups: z.array(SplitwiseGetGroups_GroupSchema).describe(\"List of groups associated with the authenticated user\"),\n}).passthrough().describe(\"Response model for the get_groups action.\");\n\nexport const splitwiseGetGroups = action(\"SPLITWISE_GET_GROUPS\", {\n slug: \"splitwise-get-groups\",\n name: \"Get Groups\",\n description: \"Retrieves all groups the authenticated user belongs to, including group details, members, balances, and debt information. Returns a 'groups' array with no server-side filtering; all name- or ID-based filtering must be done client-side on the full response. Group names may share similar strings or differ in case/whitespace — normalize when matching and prefer group_id once identified. The groups array may be empty if the user belongs to no groups.\",\n input: SplitwiseGetGroupsInput,\n output: SplitwiseGetGroupsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACzH,MAAM,kCAAkC,EAAE,OAAO;CAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAM,mCAAmC,EAAE,OAAO;CAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE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M;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,QAAQ,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,uDAAuD,EAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -9,18 +9,18 @@ const SplitwiseGetNotifications_SourceObjectSchema = zod.z.object({
|
|
|
9
9
|
id: zod.z.number().int().describe("ID of the source object.").nullable().optional(),
|
|
10
10
|
url: zod.z.string().describe("URL of the source object.").nullable().optional(),
|
|
11
11
|
type: zod.z.string().describe("Type of the source object.").nullable().optional()
|
|
12
|
-
}).describe("Represents the source object associated with a notification.");
|
|
12
|
+
}).passthrough().describe("Represents the source object associated with a notification.");
|
|
13
13
|
const SplitwiseGetNotifications_NotificationObjectSchema = zod.z.object({
|
|
14
|
-
id: zod.z.number().int().describe("Unique notification identifier."),
|
|
15
|
-
type: zod.z.number().int().describe("Numeric type indicating what the notification is about. Notification types may be added in the future without warning."),
|
|
14
|
+
id: zod.z.number().int().describe("Unique notification identifier.").nullable(),
|
|
15
|
+
type: zod.z.number().int().describe("Numeric type indicating what the notification is about. Notification types may be added in the future without warning.").nullable(),
|
|
16
16
|
source: SplitwiseGetNotifications_SourceObjectSchema.nullable().optional(),
|
|
17
|
-
content: zod.z.string().describe("HTML content suitable for display. Uses only <strong>, <strike>, <small>, <br>, and <font color> tags."),
|
|
17
|
+
content: zod.z.string().describe("HTML content suitable for display. Uses only <strong>, <strike>, <small>, <br>, and <font color> tags.").nullable(),
|
|
18
18
|
image_url: zod.z.string().describe("URL of the image associated with the notification.").nullable().optional(),
|
|
19
|
-
created_at: zod.z.string().describe("Timestamp when the notification was created."),
|
|
19
|
+
created_at: zod.z.string().describe("Timestamp when the notification was created.").nullable(),
|
|
20
20
|
created_by: zod.z.number().int().describe("User ID of the user who created the notification.").nullable().optional(),
|
|
21
21
|
image_shape: zod.z.string().describe("Shape of the notification image (e.g., 'square', 'circle').").nullable().optional()
|
|
22
|
-
}).describe("Represents a notification object with activity details.");
|
|
23
|
-
const SplitwiseGetNotificationsOutput = zod.z.object({ notifications: zod.z.array(SplitwiseGetNotifications_NotificationObjectSchema).describe("Array of notification objects with the most recent items first.") }).describe("Response model for retrieving notifications.");
|
|
22
|
+
}).passthrough().describe("Represents a notification object with activity details.");
|
|
23
|
+
const SplitwiseGetNotificationsOutput = zod.z.object({ notifications: zod.z.array(SplitwiseGetNotifications_NotificationObjectSchema).describe("Array of notification objects with the most recent items first.") }).passthrough().describe("Response model for retrieving notifications.");
|
|
24
24
|
const splitwiseGetNotifications = require_action.action("SPLITWISE_GET_NOTIFICATIONS", {
|
|
25
25
|
slug: "splitwise-get-notifications",
|
|
26
26
|
name: "Get Notifications",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-notifications.cjs","names":["z","action"],"sources":["../../src/actions/get-notifications.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetNotificationsInput
|
|
1
|
+
{"version":3,"file":"get-notifications.cjs","names":["z","action"],"sources":["../../src/actions/get-notifications.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetNotificationsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of notifications to return. Omit or provide 0 to get the maximum number of notifications. The server sets arbitrary (but large) limits on the number returned.\").optional(),\n updated_after: z.string().describe(\"If provided, returns only notifications after this time. Must be ISO 8601 datetime format.\").optional(),\n}).describe(\"Request model for retrieving notifications.\");\nconst SplitwiseGetNotifications_SourceObjectSchema = z.object({\n id: z.number().int().describe(\"ID of the source object.\").nullable().optional(),\n url: z.string().describe(\"URL of the source object.\").nullable().optional(),\n type: z.string().describe(\"Type of the source object.\").nullable().optional(),\n}).passthrough().describe(\"Represents the source object associated with a notification.\");\nconst SplitwiseGetNotifications_NotificationObjectSchema = z.object({\n id: z.number().int().describe(\"Unique notification identifier.\").nullable(),\n type: z.number().int().describe(\"Numeric type indicating what the notification is about. Notification types may be added in the future without warning.\").nullable(),\n source: SplitwiseGetNotifications_SourceObjectSchema.nullable().optional(),\n content: z.string().describe(\"HTML content suitable for display. Uses only <strong>, <strike>, <small>, <br>, and <font color> tags.\").nullable(),\n image_url: z.string().describe(\"URL of the image associated with the notification.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the notification was created.\").nullable(),\n created_by: z.number().int().describe(\"User ID of the user who created the notification.\").nullable().optional(),\n image_shape: z.string().describe(\"Shape of the notification image (e.g., 'square', 'circle').\").nullable().optional(),\n}).passthrough().describe(\"Represents a notification object with activity details.\");\nexport const SplitwiseGetNotificationsOutput = z.object({\n notifications: z.array(SplitwiseGetNotifications_NotificationObjectSchema).describe(\"Array of notification objects with the most recent items first.\"),\n}).passthrough().describe(\"Response model for retrieving notifications.\");\n\nexport const splitwiseGetNotifications = action(\"SPLITWISE_GET_NOTIFICATIONS\", {\n slug: \"splitwise-get-notifications\",\n name: \"Get Notifications\",\n description: \"Tool to retrieve recent activity notifications from the user's Splitwise account. Returns notifications with HTML content suitable for display, with the most recent items first. Use when you need to view recent account activity or updates.\",\n input: SplitwiseGetNotificationsInput,\n output: SplitwiseGetNotificationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+KAA+K,CAAC,CAAC,SAAS;CAC3N,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAA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aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-notifications.d.ts
|
|
4
|
-
declare const SplitwiseGetNotificationsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseGetNotificationsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
updated_after: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SplitwiseGetNotificationsOutput: z.ZodObject<{
|
|
9
|
+
notifications: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
type: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
13
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$loose>>>;
|
|
17
|
+
content: z.ZodNullable<z.ZodString>;
|
|
18
|
+
image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
20
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
image_shape: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
24
|
+
declare const splitwiseGetNotifications: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
limit?: number | undefined;
|
|
26
|
+
updated_after?: string | undefined;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { splitwiseGetNotifications };
|
|
9
30
|
//# sourceMappingURL=get-notifications.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-notifications.d.cts","names":[],"sources":["../../src/actions/get-notifications.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-notifications.d.cts","names":[],"sources":["../../src/actions/get-notifications.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAmB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-notifications.d.ts
|
|
4
|
-
declare const SplitwiseGetNotificationsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseGetNotificationsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
updated_after: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SplitwiseGetNotificationsOutput: z.ZodObject<{
|
|
9
|
+
notifications: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
type: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
13
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$loose>>>;
|
|
17
|
+
content: z.ZodNullable<z.ZodString>;
|
|
18
|
+
image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
20
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
image_shape: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
24
|
+
declare const splitwiseGetNotifications: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
limit?: number | undefined;
|
|
26
|
+
updated_after?: string | undefined;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { splitwiseGetNotifications };
|
|
9
30
|
//# sourceMappingURL=get-notifications.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-notifications.d.mts","names":[],"sources":["../../src/actions/get-notifications.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-notifications.d.mts","names":[],"sources":["../../src/actions/get-notifications.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAmB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAI/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -9,23 +9,23 @@ const SplitwiseGetNotifications_SourceObjectSchema = z.object({
|
|
|
9
9
|
id: z.number().int().describe("ID of the source object.").nullable().optional(),
|
|
10
10
|
url: z.string().describe("URL of the source object.").nullable().optional(),
|
|
11
11
|
type: z.string().describe("Type of the source object.").nullable().optional()
|
|
12
|
-
}).describe("Represents the source object associated with a notification.");
|
|
12
|
+
}).passthrough().describe("Represents the source object associated with a notification.");
|
|
13
13
|
const SplitwiseGetNotifications_NotificationObjectSchema = z.object({
|
|
14
|
-
id: z.number().int().describe("Unique notification identifier."),
|
|
15
|
-
type: z.number().int().describe("Numeric type indicating what the notification is about. Notification types may be added in the future without warning."),
|
|
14
|
+
id: z.number().int().describe("Unique notification identifier.").nullable(),
|
|
15
|
+
type: z.number().int().describe("Numeric type indicating what the notification is about. Notification types may be added in the future without warning.").nullable(),
|
|
16
16
|
source: SplitwiseGetNotifications_SourceObjectSchema.nullable().optional(),
|
|
17
|
-
content: z.string().describe("HTML content suitable for display. Uses only <strong>, <strike>, <small>, <br>, and <font color> tags."),
|
|
17
|
+
content: z.string().describe("HTML content suitable for display. Uses only <strong>, <strike>, <small>, <br>, and <font color> tags.").nullable(),
|
|
18
18
|
image_url: z.string().describe("URL of the image associated with the notification.").nullable().optional(),
|
|
19
|
-
created_at: z.string().describe("Timestamp when the notification was created."),
|
|
19
|
+
created_at: z.string().describe("Timestamp when the notification was created.").nullable(),
|
|
20
20
|
created_by: z.number().int().describe("User ID of the user who created the notification.").nullable().optional(),
|
|
21
21
|
image_shape: z.string().describe("Shape of the notification image (e.g., 'square', 'circle').").nullable().optional()
|
|
22
|
-
}).describe("Represents a notification object with activity details.");
|
|
22
|
+
}).passthrough().describe("Represents a notification object with activity details.");
|
|
23
23
|
const splitwiseGetNotifications = action("SPLITWISE_GET_NOTIFICATIONS", {
|
|
24
24
|
slug: "splitwise-get-notifications",
|
|
25
25
|
name: "Get Notifications",
|
|
26
26
|
description: "Tool to retrieve recent activity notifications from the user's Splitwise account. Returns notifications with HTML content suitable for display, with the most recent items first. Use when you need to view recent account activity or updates.",
|
|
27
27
|
input: SplitwiseGetNotificationsInput,
|
|
28
|
-
output: z.object({ notifications: z.array(SplitwiseGetNotifications_NotificationObjectSchema).describe("Array of notification objects with the most recent items first.") }).describe("Response model for retrieving notifications.")
|
|
28
|
+
output: z.object({ notifications: z.array(SplitwiseGetNotifications_NotificationObjectSchema).describe("Array of notification objects with the most recent items first.") }).passthrough().describe("Response model for retrieving notifications.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
31
31
|
export { splitwiseGetNotifications };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-notifications.mjs","names":[],"sources":["../../src/actions/get-notifications.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetNotificationsInput
|
|
1
|
+
{"version":3,"file":"get-notifications.mjs","names":[],"sources":["../../src/actions/get-notifications.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetNotificationsInput = z.object({\n limit: z.number().int().describe(\"Maximum number of notifications to return. Omit or provide 0 to get the maximum number of notifications. The server sets arbitrary (but large) limits on the number returned.\").optional(),\n updated_after: z.string().describe(\"If provided, returns only notifications after this time. Must be ISO 8601 datetime format.\").optional(),\n}).describe(\"Request model for retrieving notifications.\");\nconst SplitwiseGetNotifications_SourceObjectSchema = z.object({\n id: z.number().int().describe(\"ID of the source object.\").nullable().optional(),\n url: z.string().describe(\"URL of the source object.\").nullable().optional(),\n type: z.string().describe(\"Type of the source object.\").nullable().optional(),\n}).passthrough().describe(\"Represents the source object associated with a notification.\");\nconst SplitwiseGetNotifications_NotificationObjectSchema = z.object({\n id: z.number().int().describe(\"Unique notification identifier.\").nullable(),\n type: z.number().int().describe(\"Numeric type indicating what the notification is about. Notification types may be added in the future without warning.\").nullable(),\n source: SplitwiseGetNotifications_SourceObjectSchema.nullable().optional(),\n content: z.string().describe(\"HTML content suitable for display. Uses only <strong>, <strike>, <small>, <br>, and <font color> tags.\").nullable(),\n image_url: z.string().describe(\"URL of the image associated with the notification.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the notification was created.\").nullable(),\n created_by: z.number().int().describe(\"User ID of the user who created the notification.\").nullable().optional(),\n image_shape: z.string().describe(\"Shape of the notification image (e.g., 'square', 'circle').\").nullable().optional(),\n}).passthrough().describe(\"Represents a notification object with activity details.\");\nexport const SplitwiseGetNotificationsOutput = z.object({\n notifications: z.array(SplitwiseGetNotifications_NotificationObjectSchema).describe(\"Array of notification objects with the most recent items first.\"),\n}).passthrough().describe(\"Response model for retrieving notifications.\");\n\nexport const splitwiseGetNotifications = action(\"SPLITWISE_GET_NOTIFICATIONS\", {\n slug: \"splitwise-get-notifications\",\n name: \"Get Notifications\",\n description: \"Tool to retrieve recent activity notifications from the user's Splitwise account. Returns notifications with HTML content suitable for display, with the most recent items first. Use when you need to view recent account activity or updates.\",\n input: SplitwiseGetNotificationsInput,\n output: SplitwiseGetNotificationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+KAA+K,CAAC,CAAC,SAAS;CAC3N,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AACxF,MAAM,qDAAqD,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CACnK,QAAQ,6CAA6C,SAAS,CAAC,CAAC,SAAS;CACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAChJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAKnF,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6C,EAAE,OAAO,EACtD,eAAe,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,iEAAiE,EACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
|
@@ -6,17 +6,17 @@ const SplitwiseGetUser_PictureSchema = zod.z.object({
|
|
|
6
6
|
large: zod.z.string().describe("URL for the large-sized profile picture.").nullable().optional(),
|
|
7
7
|
small: zod.z.string().describe("URL for the small-sized profile picture.").nullable().optional(),
|
|
8
8
|
medium: zod.z.string().describe("URL for the medium-sized profile picture.").nullable().optional()
|
|
9
|
-
}).describe("URLs for the user's profile picture in different sizes.");
|
|
9
|
+
}).passthrough().describe("URLs for the user's profile picture in different sizes.");
|
|
10
10
|
const SplitwiseGetUser_UserSchema = zod.z.object({
|
|
11
|
-
id: zod.z.number().int().describe("Unique identifier for the user."),
|
|
11
|
+
id: zod.z.number().int().describe("Unique identifier for the user.").nullable(),
|
|
12
12
|
email: zod.z.string().describe("User's email address.").nullable().optional(),
|
|
13
13
|
picture: SplitwiseGetUser_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("Indicates whether the user has a custom profile picture.").nullable().optional(),
|
|
17
17
|
registration_status: zod.z.string().describe("Registration status of the user (e.g., 'confirmed', 'dummy', 'invited').").nullable().optional()
|
|
18
|
-
}).describe("Details of another user. Note: This endpoint returns only basic user information.\nFor the authenticated user's full profile (including notifications, currency, and locale),\nuse the get_current_user endpoint instead.");
|
|
19
|
-
const SplitwiseGetUserOutput = zod.z.object({ user: SplitwiseGetUser_UserSchema.nullable() }).describe("Response schema for user information.");
|
|
18
|
+
}).passthrough().describe("Details of another user. Note: This endpoint returns only basic user information.\nFor the authenticated user's full profile (including notifications, currency, and locale),\nuse the get_current_user endpoint instead.");
|
|
19
|
+
const SplitwiseGetUserOutput = zod.z.object({ user: SplitwiseGetUser_UserSchema.nullable() }).passthrough().describe("Response schema for user information.");
|
|
20
20
|
const splitwiseGetUser = require_action.action("SPLITWISE_GET_USER", {
|
|
21
21
|
slug: "splitwise-get-user",
|
|
22
22
|
name: "Get User Information",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.cjs","names":["z","action"],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetUserInput
|
|
1
|
+
{"version":3,"file":"get-user.cjs","names":["z","action"],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetUserInput = z.object({\n id: z.number().int().describe(\"The user ID of the person whose information you want to retrieve Prefer IDs sourced from SPLITWISE_GET_GROUP responses to ensure validity.\"),\n}).describe(\"Request schema for retrieving user information by ID.\");\nconst SplitwiseGetUser_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 SplitwiseGetUser_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 picture: SplitwiseGetUser_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(\"Indicates whether the user has a custom profile picture.\").nullable().optional(),\n registration_status: z.string().describe(\"Registration status of the user (e.g., 'confirmed', 'dummy', 'invited').\").nullable().optional(),\n}).passthrough().describe(\"Details of another user. Note: This endpoint returns only basic user information.\\nFor the authenticated user's full profile (including notifications, currency, and locale),\\nuse the get_current_user endpoint instead.\");\nexport const SplitwiseGetUserOutput = z.object({\n user: SplitwiseGetUser_UserSchema.nullable(),\n}).passthrough().describe(\"Response schema for user information.\");\n\nexport const splitwiseGetUser = action(\"SPLITWISE_GET_USER\", {\n slug: \"splitwise-get-user\",\n name: \"Get User Information\",\n description: \"Retrieves basic profile information about any Splitwise user by their ID. Returns the user's name, email, registration status, and profile picture. This endpoint only returns public user information. For the authenticated user's full profile (including notifications, currency preferences, and locale settings), use get_current_user instead.\",\n input: SplitwiseGetUserInput,\n output: SplitwiseGetUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4IAA4I,EAC5K,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C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plitwiseGetUserInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SplitwiseGetUserOutput: z.ZodObject<{
|
|
8
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
picture: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12
|
+
large: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
small: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
}, z.core.$loose>>>;
|
|
16
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
custom_picture: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
19
|
+
registration_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
|
+
declare const splitwiseGetUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
|
+
id: number;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
25
|
//#endregion
|
|
8
26
|
export { splitwiseGetUser };
|
|
9
27
|
//# sourceMappingURL=get-user.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.d.cts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;cAIa,qBAAA,
|
|
1
|
+
{"version":3,"file":"get-user.d.cts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAiBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-user.d.ts
|
|
4
|
-
declare const SplitwiseGetUserInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseGetUserInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SplitwiseGetUserOutput: z.ZodObject<{
|
|
8
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
picture: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12
|
+
large: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
small: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
medium: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
}, z.core.$loose>>>;
|
|
16
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
custom_picture: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
19
|
+
registration_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
|
+
declare const splitwiseGetUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
|
+
id: number;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
25
|
//#endregion
|
|
8
26
|
export { splitwiseGetUser };
|
|
9
27
|
//# sourceMappingURL=get-user.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.d.mts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;cAIa,qBAAA,
|
|
1
|
+
{"version":3,"file":"get-user.d.mts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAiBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA"}
|
|
@@ -6,22 +6,22 @@ const SplitwiseGetUser_PictureSchema = z.object({
|
|
|
6
6
|
large: z.string().describe("URL for the large-sized profile picture.").nullable().optional(),
|
|
7
7
|
small: z.string().describe("URL for the small-sized profile picture.").nullable().optional(),
|
|
8
8
|
medium: z.string().describe("URL for the medium-sized profile picture.").nullable().optional()
|
|
9
|
-
}).describe("URLs for the user's profile picture in different sizes.");
|
|
9
|
+
}).passthrough().describe("URLs for the user's profile picture in different sizes.");
|
|
10
10
|
const SplitwiseGetUser_UserSchema = z.object({
|
|
11
|
-
id: z.number().int().describe("Unique identifier for the user."),
|
|
11
|
+
id: z.number().int().describe("Unique identifier for the user.").nullable(),
|
|
12
12
|
email: z.string().describe("User's email address.").nullable().optional(),
|
|
13
13
|
picture: SplitwiseGetUser_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("Indicates whether the user has a custom profile picture.").nullable().optional(),
|
|
17
17
|
registration_status: z.string().describe("Registration status of the user (e.g., 'confirmed', 'dummy', 'invited').").nullable().optional()
|
|
18
|
-
}).describe("Details of another user. Note: This endpoint returns only basic user information.\nFor the authenticated user's full profile (including notifications, currency, and locale),\nuse the get_current_user endpoint instead.");
|
|
18
|
+
}).passthrough().describe("Details of another user. Note: This endpoint returns only basic user information.\nFor the authenticated user's full profile (including notifications, currency, and locale),\nuse the get_current_user endpoint instead.");
|
|
19
19
|
const splitwiseGetUser = action("SPLITWISE_GET_USER", {
|
|
20
20
|
slug: "splitwise-get-user",
|
|
21
21
|
name: "Get User Information",
|
|
22
22
|
description: "Retrieves basic profile information about any Splitwise user by their ID. Returns the user's name, email, registration status, and profile picture. This endpoint only returns public user information. For the authenticated user's full profile (including notifications, currency preferences, and locale settings), use get_current_user instead.",
|
|
23
23
|
input: SplitwiseGetUserInput,
|
|
24
|
-
output: z.object({ user: SplitwiseGetUser_UserSchema.nullable() }).describe("Response schema for user information.")
|
|
24
|
+
output: z.object({ user: SplitwiseGetUser_UserSchema.nullable() }).passthrough().describe("Response schema for user information.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { splitwiseGetUser };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetUserInput
|
|
1
|
+
{"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseGetUserInput = z.object({\n id: z.number().int().describe(\"The user ID of the person whose information you want to retrieve Prefer IDs sourced from SPLITWISE_GET_GROUP responses to ensure validity.\"),\n}).describe(\"Request schema for retrieving user information by ID.\");\nconst SplitwiseGetUser_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 SplitwiseGetUser_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 picture: SplitwiseGetUser_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(\"Indicates whether the user has a custom profile picture.\").nullable().optional(),\n registration_status: z.string().describe(\"Registration status of the user (e.g., 'confirmed', 'dummy', 'invited').\").nullable().optional(),\n}).passthrough().describe(\"Details of another user. Note: This endpoint returns only basic user information.\\nFor the authenticated user's full profile (including notifications, currency, and locale),\\nuse the get_current_user endpoint instead.\");\nexport const SplitwiseGetUserOutput = z.object({\n user: SplitwiseGetUser_UserSchema.nullable(),\n}).passthrough().describe(\"Response schema for user information.\");\n\nexport const splitwiseGetUser = action(\"SPLITWISE_GET_USER\", {\n slug: \"splitwise-get-user\",\n name: \"Get User Information\",\n description: \"Retrieves basic profile information about any Splitwise user by their ID. Returns the user's name, email, registration status, and profile picture. This endpoint only returns public user information. For the authenticated user's full profile (including notifications, currency preferences, and locale settings), use get_current_user instead.\",\n input: SplitwiseGetUserInput,\n output: SplitwiseGetUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO,EAC5C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4IAA4I,EAC5K,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,iCAAiC,EAAE,OAAO;CAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AACnF,MAAM,8BAA8B,EAAE,OAAO;CAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAAS,+BAA+B,SAAS,CAAC,CAAC,SAAS;CAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2NAA2N;AAKrP,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,MAAM,4BAA4B,SAAS,EAC7C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
|
|
@@ -7,8 +7,8 @@ const SplitwiseRemoveUserFromGroupInput = zod.z.object({
|
|
|
7
7
|
}).describe("Request parameters for removing a user from a group.");
|
|
8
8
|
const SplitwiseRemoveUserFromGroupOutput = zod.z.object({
|
|
9
9
|
errors: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Any errors encountered during the operation. May contain details if user has non-zero balance.").nullable().optional(),
|
|
10
|
-
success: zod.z.boolean().describe("Indicates whether the removal was successful. Always check this field as 200 OK does not guarantee success.")
|
|
11
|
-
}).describe("Response model for removing a user from a group.");
|
|
10
|
+
success: zod.z.boolean().describe("Indicates whether the removal was successful. Always check this field as 200 OK does not guarantee success.").nullable()
|
|
11
|
+
}).passthrough().describe("Response model for removing a user from a group.");
|
|
12
12
|
const splitwiseRemoveUserFromGroup = require_action.action("SPLITWISE_REMOVE_USER_FROM_GROUP", {
|
|
13
13
|
slug: "splitwise-remove-user-from-group",
|
|
14
14
|
name: "Remove User from Group",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-user-from-group.cjs","names":["z","action"],"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.cjs","names":["z","action"],"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":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wGAAwG;CAC3I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;AACzF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzK,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,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/remove-user-from-group.d.ts
|
|
4
|
-
declare const SplitwiseRemoveUserFromGroupInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseRemoveUserFromGroupInput: z.ZodObject<{
|
|
5
|
+
user_id: z.ZodNumber;
|
|
6
|
+
group_id: z.ZodNumber;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SplitwiseRemoveUserFromGroupOutput: z.ZodObject<{
|
|
9
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
10
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
|
+
declare const splitwiseRemoveUserFromGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
user_id: number;
|
|
14
|
+
group_id: number;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { splitwiseRemoveUserFromGroup };
|
|
9
18
|
//# sourceMappingURL=remove-user-from-group.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-user-from-group.d.cts","names":[],"sources":["../../src/actions/remove-user-from-group.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"remove-user-from-group.d.cts","names":[],"sources":["../../src/actions/remove-user-from-group.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAIjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cAKlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/remove-user-from-group.d.ts
|
|
4
|
-
declare const SplitwiseRemoveUserFromGroupInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SplitwiseRemoveUserFromGroupInput: z.ZodObject<{
|
|
5
|
+
user_id: z.ZodNumber;
|
|
6
|
+
group_id: z.ZodNumber;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SplitwiseRemoveUserFromGroupOutput: z.ZodObject<{
|
|
9
|
+
errors: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
10
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
|
+
declare const splitwiseRemoveUserFromGroup: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
user_id: number;
|
|
14
|
+
group_id: number;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { splitwiseRemoveUserFromGroup };
|
|
9
18
|
//# sourceMappingURL=remove-user-from-group.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-user-from-group.d.mts","names":[],"sources":["../../src/actions/remove-user-from-group.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"remove-user-from-group.d.mts","names":[],"sources":["../../src/actions/remove-user-from-group.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAIjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;cAKlC,4BAAA,gCAA4B,wBAAA"}
|