@keystrokehq/splitwise 0.1.4 → 0.1.5
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 +1 -0
- package/dist/actions/add-friend.cjs.map +1 -1
- package/dist/actions/add-friend.d.cts +3 -17
- package/dist/actions/add-friend.d.cts.map +1 -1
- package/dist/actions/add-friend.d.mts +3 -17
- package/dist/actions/add-friend.d.mts.map +1 -1
- package/dist/actions/add-friend.mjs +1 -0
- package/dist/actions/add-friend.mjs.map +1 -1
- package/dist/actions/add-user-to-group.cjs +1 -0
- package/dist/actions/add-user-to-group.cjs.map +1 -1
- package/dist/actions/add-user-to-group.d.cts +3 -16
- package/dist/actions/add-user-to-group.d.cts.map +1 -1
- package/dist/actions/add-user-to-group.d.mts +3 -16
- package/dist/actions/add-user-to-group.d.mts.map +1 -1
- package/dist/actions/add-user-to-group.mjs +1 -0
- package/dist/actions/add-user-to-group.mjs.map +1 -1
- package/dist/actions/create-comment.cjs +1 -0
- package/dist/actions/create-comment.cjs.map +1 -1
- package/dist/actions/create-comment.d.cts +3 -16
- package/dist/actions/create-comment.d.cts.map +1 -1
- package/dist/actions/create-comment.d.mts +3 -16
- package/dist/actions/create-comment.d.mts.map +1 -1
- package/dist/actions/create-comment.mjs +1 -0
- package/dist/actions/create-comment.mjs.map +1 -1
- package/dist/actions/create-expense.cjs +1 -0
- package/dist/actions/create-expense.cjs.map +1 -1
- package/dist/actions/create-expense.d.cts +3 -32
- package/dist/actions/create-expense.d.cts.map +1 -1
- package/dist/actions/create-expense.d.mts +3 -32
- package/dist/actions/create-expense.d.mts.map +1 -1
- package/dist/actions/create-expense.mjs +1 -0
- package/dist/actions/create-expense.mjs.map +1 -1
- package/dist/actions/create-friends.cjs +1 -0
- package/dist/actions/create-friends.cjs.map +1 -1
- package/dist/actions/create-friends.d.cts +3 -20
- package/dist/actions/create-friends.d.cts.map +1 -1
- package/dist/actions/create-friends.d.mts +3 -20
- package/dist/actions/create-friends.d.mts.map +1 -1
- package/dist/actions/create-friends.mjs +1 -0
- package/dist/actions/create-friends.mjs.map +1 -1
- package/dist/actions/create-group.cjs +1 -0
- package/dist/actions/create-group.cjs.map +1 -1
- package/dist/actions/create-group.d.cts +3 -24
- package/dist/actions/create-group.d.cts.map +1 -1
- package/dist/actions/create-group.d.mts +3 -24
- package/dist/actions/create-group.d.mts.map +1 -1
- package/dist/actions/create-group.mjs +1 -0
- package/dist/actions/create-group.mjs.map +1 -1
- package/dist/actions/delete-comment.cjs +1 -0
- package/dist/actions/delete-comment.cjs.map +1 -1
- package/dist/actions/delete-comment.d.cts +3 -15
- package/dist/actions/delete-comment.d.cts.map +1 -1
- package/dist/actions/delete-comment.d.mts +3 -15
- package/dist/actions/delete-comment.d.mts.map +1 -1
- package/dist/actions/delete-comment.mjs +1 -0
- package/dist/actions/delete-comment.mjs.map +1 -1
- package/dist/actions/delete-expense.cjs +1 -0
- package/dist/actions/delete-expense.cjs.map +1 -1
- package/dist/actions/delete-expense.d.cts +3 -15
- package/dist/actions/delete-expense.d.cts.map +1 -1
- package/dist/actions/delete-expense.d.mts +3 -15
- package/dist/actions/delete-expense.d.mts.map +1 -1
- package/dist/actions/delete-expense.mjs +1 -0
- package/dist/actions/delete-expense.mjs.map +1 -1
- package/dist/actions/delete-friend.cjs +1 -0
- package/dist/actions/delete-friend.cjs.map +1 -1
- package/dist/actions/delete-friend.d.cts +3 -15
- package/dist/actions/delete-friend.d.cts.map +1 -1
- package/dist/actions/delete-friend.d.mts +3 -15
- package/dist/actions/delete-friend.d.mts.map +1 -1
- package/dist/actions/delete-friend.mjs +1 -0
- package/dist/actions/delete-friend.mjs.map +1 -1
- package/dist/actions/delete-group.cjs +1 -0
- package/dist/actions/delete-group.cjs.map +1 -1
- package/dist/actions/delete-group.d.cts +3 -15
- package/dist/actions/delete-group.d.cts.map +1 -1
- package/dist/actions/delete-group.d.mts +3 -15
- package/dist/actions/delete-group.d.mts.map +1 -1
- package/dist/actions/delete-group.mjs +1 -0
- package/dist/actions/delete-group.mjs.map +1 -1
- package/dist/actions/get-categories.cjs +1 -0
- package/dist/actions/get-categories.cjs.map +1 -1
- package/dist/actions/get-categories.d.cts +3 -13
- package/dist/actions/get-categories.d.cts.map +1 -1
- package/dist/actions/get-categories.d.mts +3 -13
- package/dist/actions/get-categories.d.mts.map +1 -1
- package/dist/actions/get-categories.mjs +1 -0
- package/dist/actions/get-categories.mjs.map +1 -1
- package/dist/actions/get-comments.cjs +1 -0
- package/dist/actions/get-comments.cjs.map +1 -1
- package/dist/actions/get-comments.d.cts +3 -15
- package/dist/actions/get-comments.d.cts.map +1 -1
- package/dist/actions/get-comments.d.mts +3 -15
- package/dist/actions/get-comments.d.mts.map +1 -1
- package/dist/actions/get-comments.mjs +1 -0
- package/dist/actions/get-comments.mjs.map +1 -1
- package/dist/actions/get-currencies.cjs +1 -0
- package/dist/actions/get-currencies.cjs.map +1 -1
- package/dist/actions/get-currencies.d.cts +3 -13
- package/dist/actions/get-currencies.d.cts.map +1 -1
- package/dist/actions/get-currencies.d.mts +3 -13
- package/dist/actions/get-currencies.d.mts.map +1 -1
- package/dist/actions/get-currencies.mjs +1 -0
- package/dist/actions/get-currencies.mjs.map +1 -1
- package/dist/actions/get-current-user.cjs +1 -0
- package/dist/actions/get-current-user.cjs.map +1 -1
- package/dist/actions/get-current-user.d.cts +3 -13
- package/dist/actions/get-current-user.d.cts.map +1 -1
- package/dist/actions/get-current-user.d.mts +3 -13
- package/dist/actions/get-current-user.d.mts.map +1 -1
- package/dist/actions/get-current-user.mjs +1 -0
- package/dist/actions/get-current-user.mjs.map +1 -1
- package/dist/actions/get-expense.cjs +1 -0
- package/dist/actions/get-expense.cjs.map +1 -1
- package/dist/actions/get-expense.d.cts +3 -15
- package/dist/actions/get-expense.d.cts.map +1 -1
- package/dist/actions/get-expense.d.mts +3 -15
- package/dist/actions/get-expense.d.mts.map +1 -1
- package/dist/actions/get-expense.mjs +1 -0
- package/dist/actions/get-expense.mjs.map +1 -1
- package/dist/actions/get-expenses.cjs +1 -0
- package/dist/actions/get-expenses.cjs.map +1 -1
- package/dist/actions/get-expenses.d.cts +3 -23
- package/dist/actions/get-expenses.d.cts.map +1 -1
- package/dist/actions/get-expenses.d.mts +3 -23
- package/dist/actions/get-expenses.d.mts.map +1 -1
- package/dist/actions/get-expenses.mjs +1 -0
- package/dist/actions/get-expenses.mjs.map +1 -1
- package/dist/actions/get-friend.cjs +1 -0
- package/dist/actions/get-friend.cjs.map +1 -1
- package/dist/actions/get-friend.d.cts +3 -15
- package/dist/actions/get-friend.d.cts.map +1 -1
- package/dist/actions/get-friend.d.mts +3 -15
- package/dist/actions/get-friend.d.mts.map +1 -1
- package/dist/actions/get-friend.mjs +1 -0
- package/dist/actions/get-friend.mjs.map +1 -1
- package/dist/actions/get-friends.cjs +1 -0
- package/dist/actions/get-friends.cjs.map +1 -1
- package/dist/actions/get-friends.d.cts +3 -13
- package/dist/actions/get-friends.d.cts.map +1 -1
- package/dist/actions/get-friends.d.mts +3 -13
- package/dist/actions/get-friends.d.mts.map +1 -1
- package/dist/actions/get-friends.mjs +1 -0
- package/dist/actions/get-friends.mjs.map +1 -1
- package/dist/actions/get-group.cjs +1 -0
- package/dist/actions/get-group.cjs.map +1 -1
- package/dist/actions/get-group.d.cts +3 -15
- package/dist/actions/get-group.d.cts.map +1 -1
- package/dist/actions/get-group.d.mts +3 -15
- package/dist/actions/get-group.d.mts.map +1 -1
- package/dist/actions/get-group.mjs +1 -0
- package/dist/actions/get-group.mjs.map +1 -1
- package/dist/actions/get-groups.cjs +1 -0
- package/dist/actions/get-groups.cjs.map +1 -1
- package/dist/actions/get-groups.d.cts +3 -13
- package/dist/actions/get-groups.d.cts.map +1 -1
- package/dist/actions/get-groups.d.mts +3 -13
- package/dist/actions/get-groups.d.mts.map +1 -1
- package/dist/actions/get-groups.mjs +1 -0
- package/dist/actions/get-groups.mjs.map +1 -1
- package/dist/actions/get-notifications.cjs +1 -0
- package/dist/actions/get-notifications.cjs.map +1 -1
- package/dist/actions/get-notifications.d.cts +3 -16
- package/dist/actions/get-notifications.d.cts.map +1 -1
- package/dist/actions/get-notifications.d.mts +3 -16
- package/dist/actions/get-notifications.d.mts.map +1 -1
- package/dist/actions/get-notifications.mjs +1 -0
- package/dist/actions/get-notifications.mjs.map +1 -1
- package/dist/actions/get-user.cjs +1 -0
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +3 -15
- package/dist/actions/get-user.d.cts.map +1 -1
- package/dist/actions/get-user.d.mts +3 -15
- package/dist/actions/get-user.d.mts.map +1 -1
- package/dist/actions/get-user.mjs +1 -0
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/remove-user-from-group.cjs +1 -0
- package/dist/actions/remove-user-from-group.cjs.map +1 -1
- package/dist/actions/remove-user-from-group.d.cts +3 -16
- package/dist/actions/remove-user-from-group.d.cts.map +1 -1
- package/dist/actions/remove-user-from-group.d.mts +3 -16
- package/dist/actions/remove-user-from-group.d.mts.map +1 -1
- package/dist/actions/remove-user-from-group.mjs +1 -0
- package/dist/actions/remove-user-from-group.mjs.map +1 -1
- package/dist/actions/undelete-expense.cjs +1 -0
- package/dist/actions/undelete-expense.cjs.map +1 -1
- package/dist/actions/undelete-expense.d.cts +3 -15
- package/dist/actions/undelete-expense.d.cts.map +1 -1
- package/dist/actions/undelete-expense.d.mts +3 -15
- package/dist/actions/undelete-expense.d.mts.map +1 -1
- package/dist/actions/undelete-expense.mjs +1 -0
- package/dist/actions/undelete-expense.mjs.map +1 -1
- package/dist/actions/undelete-group.cjs +1 -0
- package/dist/actions/undelete-group.cjs.map +1 -1
- package/dist/actions/undelete-group.d.cts +3 -15
- package/dist/actions/undelete-group.d.cts.map +1 -1
- package/dist/actions/undelete-group.d.mts +3 -15
- package/dist/actions/undelete-group.d.mts.map +1 -1
- package/dist/actions/undelete-group.mjs +1 -0
- package/dist/actions/undelete-group.mjs.map +1 -1
- package/dist/actions/update-expense.cjs +1 -0
- package/dist/actions/update-expense.cjs.map +1 -1
- package/dist/actions/update-expense.d.cts +3 -32
- package/dist/actions/update-expense.d.cts.map +1 -1
- package/dist/actions/update-expense.d.mts +3 -32
- package/dist/actions/update-expense.d.mts.map +1 -1
- package/dist/actions/update-expense.mjs +1 -0
- package/dist/actions/update-expense.mjs.map +1 -1
- package/dist/actions/update-user.cjs +1 -0
- package/dist/actions/update-user.cjs.map +1 -1
- package/dist/actions/update-user.d.cts +3 -21
- package/dist/actions/update-user.d.cts.map +1 -1
- package/dist/actions/update-user.d.mts +3 -21
- package/dist/actions/update-user.d.mts.map +1 -1
- package/dist/actions/update-user.mjs +1 -0
- package/dist/actions/update-user.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { splitwise } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-expense.d.ts
|
|
@@ -109,38 +111,7 @@ declare const SplitwiseCreateExpenseOutput: z.ZodObject<{
|
|
|
109
111
|
email_reminder_in_advance: z.ZodNullable<z.ZodNumber>;
|
|
110
112
|
}, z.core.$loose>>;
|
|
111
113
|
}, z.core.$loose>;
|
|
112
|
-
declare const splitwiseCreateExpense:
|
|
113
|
-
cost: string;
|
|
114
|
-
group_id: number;
|
|
115
|
-
description: string;
|
|
116
|
-
date?: string | undefined;
|
|
117
|
-
users?: {
|
|
118
|
-
[x: string]: unknown;
|
|
119
|
-
owed_share: string;
|
|
120
|
-
paid_share: string;
|
|
121
|
-
email?: string | undefined;
|
|
122
|
-
user_id?: number | undefined;
|
|
123
|
-
last_name?: string | undefined;
|
|
124
|
-
first_name?: string | undefined;
|
|
125
|
-
}[] | undefined;
|
|
126
|
-
details?: string | undefined;
|
|
127
|
-
category_id?: number | undefined;
|
|
128
|
-
currency_code?: string | undefined;
|
|
129
|
-
split_equally?: boolean | undefined;
|
|
130
|
-
repeat_interval?: "never" | "weekly" | "fortnightly" | "monthly" | "yearly" | undefined;
|
|
131
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
132
|
-
connectionId: z.ZodString;
|
|
133
|
-
entityId: z.ZodString;
|
|
134
|
-
instanceId: z.ZodString;
|
|
135
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
136
|
-
accessToken: z.ZodString;
|
|
137
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
138
|
-
connectionId: z.ZodString;
|
|
139
|
-
entityId: z.ZodString;
|
|
140
|
-
instanceId: z.ZodString;
|
|
141
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
142
|
-
accessToken: z.ZodString;
|
|
143
|
-
}, z.core.$strip>>]>;
|
|
114
|
+
declare const splitwiseCreateExpense: AppAction<typeof SplitwiseCreateExpenseInput, typeof SplitwiseCreateExpenseOutput, typeof splitwise.credential>;
|
|
144
115
|
//#endregion
|
|
145
116
|
export { splitwiseCreateExpense };
|
|
146
117
|
//# sourceMappingURL=create-expense.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-expense.d.mts","names":[],"sources":["../../src/actions/create-expense.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-expense.d.mts","names":[],"sources":["../../src/actions/create-expense.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAiF3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-expense.mjs","names":[],"sources":["../../src/actions/create-expense.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseCreateExpenseInput = z.object({\n cost: z.string().describe(\"Total cost as string decimal (up to 2 decimal places)\"),\n date: z.string().describe(\"Date when the expense occurred (ISO 8601 format). Defaults to current time if omitted\").optional(),\n users: z.array(z.object({\n email: z.string().describe(\"Email address (required when adding new users without user_id)\").optional(),\n user_id: z.number().int().describe(\"Splitwise user ID of an existing friend or group member\").optional(),\n last_name: z.string().describe(\"Last name (required when adding new users without user_id)\").optional(),\n first_name: z.string().describe(\"First name (required when adding new users without user_id)\").optional(),\n owed_share: z.string().describe(\"Amount this participant owes for their portion of the expense (decimal string, up to 2 decimal places)\"),\n paid_share: z.string().describe(\"Amount this participant actually paid towards the expense (decimal string, up to 2 decimal places)\"),\n}).passthrough().describe(\"Represents a participant's share in an expense, specifying what they paid and what they owe.\\nMust include either user_id (for existing users) or all three fields: email, first_name, and last_name (for new users).\")).describe(\"List of participants with custom share amounts. Required when using custom splits instead of split_equally Each user object must include `paid_share` and `owed_share` as decimal strings with up to 2 decimal places (e.g., '25.00').\").optional(),\n details: z.string().describe(\"Additional notes or details about the expense\").optional(),\n group_id: z.number().int().describe(\"ID of the group to add this expense to. Use 0 for expenses between friends (not in a group)\"),\n category_id: z.number().int().describe(\"Expense category ID (use get_categories action to retrieve valid IDs). Defaults to 'General'\").optional(),\n description: z.string().describe(\"Brief description of what the expense is for\"),\n currency_code: z.string().describe(\"3-letter ISO currency code (e.g., USD, EUR, GBP). Defaults to user's default currency\").optional(),\n split_equally: z.boolean().describe(\"Set to true to split cost equally. When group_id=0, you must also provide users list to specify participants\").optional(),\n repeat_interval: z.enum([\"never\", \"weekly\", \"fortnightly\", \"monthly\", \"yearly\"]).describe(\"How often this expense repeats. Use 'never' or omit for one-time expenses\").optional(),\n}).describe(\"Request model for creating a new expense.\\nExactly one of split_equally or users must be provided.\");\nconst SplitwiseCreateExpense_PictureSchema = z.object({\n medium: z.string().describe(\"Medium-sized profile picture URL\").nullable().optional(),\n}).passthrough().describe(\"Profile picture URLs.\");\nconst SplitwiseCreateExpense_UserInfoSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable(),\n picture: SplitwiseCreateExpense_PictureSchema.nullable(),\n last_name: z.string().describe(\"User's last name\").nullable().optional(),\n first_name: z.string().describe(\"User's first name\").nullable(),\n custom_picture: z.boolean().describe(\"Whether the user has a custom picture\").nullable().optional(),\n}).passthrough().describe(\"Basic user information within an expense.\");\nconst SplitwiseCreateExpense_ExpenseUserSchema = z.object({\n user: SplitwiseCreateExpense_UserInfoSchema.nullable(),\n user_id: z.number().int().describe(\"User ID\").nullable(),\n owed_share: z.string().describe(\"Amount this user owes\").nullable(),\n paid_share: z.string().describe(\"Amount this user paid\").nullable(),\n net_balance: z.string().describe(\"Net balance for this user in the expense\").nullable(),\n}).passthrough().describe(\"User's share details in an expense.\");\nconst SplitwiseCreateExpense_ReceiptSchema = z.object({\n large: z.string().describe(\"Large receipt image URL\").nullable().optional(),\n original: z.string().describe(\"Original receipt image URL\").nullable().optional(),\n}).passthrough().describe(\"Receipt image URLs.\");\nconst SplitwiseCreateExpense_CategorySchema = z.object({\n id: z.number().int().describe(\"Category ID\").nullable(),\n name: z.string().describe(\"Category name\").nullable(),\n}).passthrough().describe(\"Expense category information.\");\nconst SplitwiseCreateExpense_RepaymentSchema = z.object({\n to: z.number().int().describe(\"User ID who is owed money\").nullable(),\n from: z.number().int().describe(\"User ID who owes money\").nullable(),\n amount: z.string().describe(\"Amount to be repaid\").nullable(),\n}).passthrough().describe(\"Repayment information showing who owes whom.\");\nconst SplitwiseCreateExpense_ExpenseSchema = z.object({\n id: z.number().int().describe(\"Unique expense ID\").nullable(),\n cost: z.string().describe(\"Total cost of the expense\").nullable(),\n date: z.string().describe(\"Date the expense occurred (ISO 8601)\").nullable(),\n users: z.array(SplitwiseCreateExpense_ExpenseUserSchema).describe(\"List of users involved in this expense with their shares\"),\n details: z.string().describe(\"Additional details or notes\").nullable().optional(),\n payment: z.boolean().describe(\"Whether this is a payment (vs. an expense)\").nullable(),\n receipt: SplitwiseCreateExpense_ReceiptSchema.nullable(),\n repeats: z.boolean().describe(\"Whether this expense repeats\").nullable(),\n category: SplitwiseCreateExpense_CategorySchema.nullable(),\n group_id: z.number().int().describe(\"Group ID, null if not in a group\").nullable().optional(),\n created_at: z.string().describe(\"Date the expense was created (ISO 8601)\").nullable(),\n created_by: SplitwiseCreateExpense_UserInfoSchema.nullable(),\n deleted_at: z.string().describe(\"Date the expense was deleted\").nullable().optional(),\n deleted_by: SplitwiseCreateExpense_UserInfoSchema.nullable().optional(),\n repayments: z.array(SplitwiseCreateExpense_RepaymentSchema).describe(\"List of repayments required to settle this expense\"),\n updated_at: z.string().describe(\"Date the expense was last updated (ISO 8601)\").nullable(),\n updated_by: SplitwiseCreateExpense_UserInfoSchema.nullable().optional(),\n description: z.string().describe(\"Expense description\").nullable(),\n next_repeat: z.string().describe(\"Date of next repeat\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., 'USD')\").nullable(),\n comments_count: z.number().int().describe(\"Number of comments on this expense\").nullable(),\n email_reminder: z.boolean().describe(\"Whether email reminders are enabled\").nullable(),\n transaction_id: z.string().describe(\"External transaction ID\").nullable().optional(),\n creation_method: z.string().describe(\"How the expense was created\").nullable().optional(),\n repeat_interval: z.string().describe(\"Repeat interval if applicable\").nullable().optional(),\n expense_bundle_id: z.number().int().describe(\"Bundle ID if part of a recurring expense\").nullable().optional(),\n transaction_method: z.string().describe(\"Transaction method (e.g., 'offline')\").nullable(),\n transaction_status: z.string().describe(\"Transaction status\").nullable().optional(),\n transaction_confirmed: z.boolean().describe(\"Whether the transaction is confirmed\").nullable(),\n email_reminder_in_advance: z.number().int().describe(\"Days in advance for email reminder\").nullable(),\n}).passthrough().describe(\"Complete expense object with all details.\");\nexport const SplitwiseCreateExpenseOutput = z.object({\n errors: z.record(z.string(), z.unknown()).describe(\"Errors returned by the API; empty if none\"),\n expenses: z.array(SplitwiseCreateExpense_ExpenseSchema).describe(\"List of created expense objects\"),\n}).passthrough().describe(\"Response model for create_expense action.\");\n\nexport const splitwiseCreateExpense = action(\"SPLITWISE_CREATE_EXPENSE\", {\n slug: \"splitwise-create-expense\",\n name: \"Create Expense\",\n description: \"Tool to create a new Splitwise expense. Use when you need to record a payment or bill in a group or between users. Provide exactly one of split_equally or users for shares — supplying both or neither causes a validation error and no expense is created.\",\n input: SplitwiseCreateExpenseInput,\n output: SplitwiseCreateExpenseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC5H,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACtG,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACvG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACtG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG;EACxI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;CACtI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GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C;EAC9F,UAAU,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,iCAAiC;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-expense.mjs","names":[],"sources":["../../src/actions/create-expense.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { splitwise } from \"../app\";\n\nexport const SplitwiseCreateExpenseInput = z.object({\n cost: z.string().describe(\"Total cost as string decimal (up to 2 decimal places)\"),\n date: z.string().describe(\"Date when the expense occurred (ISO 8601 format). Defaults to current time if omitted\").optional(),\n users: z.array(z.object({\n email: z.string().describe(\"Email address (required when adding new users without user_id)\").optional(),\n user_id: z.number().int().describe(\"Splitwise user ID of an existing friend or group member\").optional(),\n last_name: z.string().describe(\"Last name (required when adding new users without user_id)\").optional(),\n first_name: z.string().describe(\"First name (required when adding new users without user_id)\").optional(),\n owed_share: z.string().describe(\"Amount this participant owes for their portion of the expense (decimal string, up to 2 decimal places)\"),\n paid_share: z.string().describe(\"Amount this participant actually paid towards the expense (decimal string, up to 2 decimal places)\"),\n}).passthrough().describe(\"Represents a participant's share in an expense, specifying what they paid and what they owe.\\nMust include either user_id (for existing users) or all three fields: email, first_name, and last_name (for new users).\")).describe(\"List of participants with custom share amounts. Required when using custom splits instead of split_equally Each user object must include `paid_share` and `owed_share` as decimal strings with up to 2 decimal places (e.g., '25.00').\").optional(),\n details: z.string().describe(\"Additional notes or details about the expense\").optional(),\n group_id: z.number().int().describe(\"ID of the group to add this expense to. Use 0 for expenses between friends (not in a group)\"),\n category_id: z.number().int().describe(\"Expense category ID (use get_categories action to retrieve valid IDs). Defaults to 'General'\").optional(),\n description: z.string().describe(\"Brief description of what the expense is for\"),\n currency_code: z.string().describe(\"3-letter ISO currency code (e.g., USD, EUR, GBP). Defaults to user's default currency\").optional(),\n split_equally: z.boolean().describe(\"Set to true to split cost equally. When group_id=0, you must also provide users list to specify participants\").optional(),\n repeat_interval: z.enum([\"never\", \"weekly\", \"fortnightly\", \"monthly\", \"yearly\"]).describe(\"How often this expense repeats. Use 'never' or omit for one-time expenses\").optional(),\n}).describe(\"Request model for creating a new expense.\\nExactly one of split_equally or users must be provided.\");\nconst SplitwiseCreateExpense_PictureSchema = z.object({\n medium: z.string().describe(\"Medium-sized profile picture URL\").nullable().optional(),\n}).passthrough().describe(\"Profile picture URLs.\");\nconst SplitwiseCreateExpense_UserInfoSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable(),\n picture: SplitwiseCreateExpense_PictureSchema.nullable(),\n last_name: z.string().describe(\"User's last name\").nullable().optional(),\n first_name: z.string().describe(\"User's first name\").nullable(),\n custom_picture: z.boolean().describe(\"Whether the user has a custom picture\").nullable().optional(),\n}).passthrough().describe(\"Basic user information within an expense.\");\nconst SplitwiseCreateExpense_ExpenseUserSchema = z.object({\n user: SplitwiseCreateExpense_UserInfoSchema.nullable(),\n user_id: z.number().int().describe(\"User ID\").nullable(),\n owed_share: z.string().describe(\"Amount this user owes\").nullable(),\n paid_share: z.string().describe(\"Amount this user paid\").nullable(),\n net_balance: z.string().describe(\"Net balance for this user in the expense\").nullable(),\n}).passthrough().describe(\"User's share details in an expense.\");\nconst SplitwiseCreateExpense_ReceiptSchema = z.object({\n large: z.string().describe(\"Large receipt image URL\").nullable().optional(),\n original: z.string().describe(\"Original receipt image URL\").nullable().optional(),\n}).passthrough().describe(\"Receipt image URLs.\");\nconst SplitwiseCreateExpense_CategorySchema = z.object({\n id: z.number().int().describe(\"Category ID\").nullable(),\n name: z.string().describe(\"Category name\").nullable(),\n}).passthrough().describe(\"Expense category information.\");\nconst SplitwiseCreateExpense_RepaymentSchema = z.object({\n to: z.number().int().describe(\"User ID who is owed money\").nullable(),\n from: z.number().int().describe(\"User ID who owes money\").nullable(),\n amount: z.string().describe(\"Amount to be repaid\").nullable(),\n}).passthrough().describe(\"Repayment information showing who owes whom.\");\nconst SplitwiseCreateExpense_ExpenseSchema = z.object({\n id: z.number().int().describe(\"Unique expense ID\").nullable(),\n cost: z.string().describe(\"Total cost of the expense\").nullable(),\n date: z.string().describe(\"Date the expense occurred (ISO 8601)\").nullable(),\n users: z.array(SplitwiseCreateExpense_ExpenseUserSchema).describe(\"List of users involved in this expense with their shares\"),\n details: z.string().describe(\"Additional details or notes\").nullable().optional(),\n payment: z.boolean().describe(\"Whether this is a payment (vs. an expense)\").nullable(),\n receipt: SplitwiseCreateExpense_ReceiptSchema.nullable(),\n repeats: z.boolean().describe(\"Whether this expense repeats\").nullable(),\n category: SplitwiseCreateExpense_CategorySchema.nullable(),\n group_id: z.number().int().describe(\"Group ID, null if not in a group\").nullable().optional(),\n created_at: z.string().describe(\"Date the expense was created (ISO 8601)\").nullable(),\n created_by: SplitwiseCreateExpense_UserInfoSchema.nullable(),\n deleted_at: z.string().describe(\"Date the expense was deleted\").nullable().optional(),\n deleted_by: SplitwiseCreateExpense_UserInfoSchema.nullable().optional(),\n repayments: z.array(SplitwiseCreateExpense_RepaymentSchema).describe(\"List of repayments required to settle this expense\"),\n updated_at: z.string().describe(\"Date the expense was last updated (ISO 8601)\").nullable(),\n updated_by: SplitwiseCreateExpense_UserInfoSchema.nullable().optional(),\n description: z.string().describe(\"Expense description\").nullable(),\n next_repeat: z.string().describe(\"Date of next repeat\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., 'USD')\").nullable(),\n comments_count: z.number().int().describe(\"Number of comments on this expense\").nullable(),\n email_reminder: z.boolean().describe(\"Whether email reminders are enabled\").nullable(),\n transaction_id: z.string().describe(\"External transaction ID\").nullable().optional(),\n creation_method: z.string().describe(\"How the expense was created\").nullable().optional(),\n repeat_interval: z.string().describe(\"Repeat interval if applicable\").nullable().optional(),\n expense_bundle_id: z.number().int().describe(\"Bundle ID if part of a recurring expense\").nullable().optional(),\n transaction_method: z.string().describe(\"Transaction method (e.g., 'offline')\").nullable(),\n transaction_status: z.string().describe(\"Transaction status\").nullable().optional(),\n transaction_confirmed: z.boolean().describe(\"Whether the transaction is confirmed\").nullable(),\n email_reminder_in_advance: z.number().int().describe(\"Days in advance for email reminder\").nullable(),\n}).passthrough().describe(\"Complete expense object with all details.\");\nexport const SplitwiseCreateExpenseOutput = z.object({\n errors: z.record(z.string(), z.unknown()).describe(\"Errors returned by the API; empty if none\"),\n expenses: z.array(SplitwiseCreateExpense_ExpenseSchema).describe(\"List of created expense objects\"),\n}).passthrough().describe(\"Response model for create_expense action.\");\n\nexport const splitwiseCreateExpense: AppAction<\n typeof SplitwiseCreateExpenseInput,\n typeof SplitwiseCreateExpenseOutput,\n typeof splitwise.credential\n> = action(\"SPLITWISE_CREATE_EXPENSE\", {\n slug: \"splitwise-create-expense\",\n name: \"Create Expense\",\n description: \"Tool to create a new Splitwise expense. Use when you need to record a payment or bill in a group or between users. Provide exactly one of split_equally or users for shares — supplying both or neither causes a validation error and no expense is created.\",\n input: SplitwiseCreateExpenseInput,\n output: SplitwiseCreateExpenseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC5H,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACtG,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACvG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACtG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wGA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P,QAd0C,EAAE,OAAO;EACnD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C;EAC9F,UAAU,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,iCAAiC;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-friends.cjs","names":["z","action"],"sources":["../../src/actions/create-friends.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseCreateFriendsInput = z.object({\n users: z.array(z.object({\n email: z.string().describe(\"Email address of the user (required)\"),\n last_name: z.string().describe(\"Last name of the user (optional)\").optional(),\n first_name: z.string().describe(\"First name of the user (required for new users)\"),\n}).passthrough().describe(\"A single user to add as a friend.\")).describe(\"List of users to add as friends. Each user must have an email and first_name.\"),\n}).describe(\"Request parameters for adding multiple friends at once.\");\nconst SplitwiseCreateFriends_BalanceItemSchema = z.object({\n amount: z.string().describe(\"Balance amount as string\").nullable(),\n currency_code: z.string().describe(\"Currency code, e.g., 'USD'\").nullable(),\n}).passthrough().describe(\"A balance amount in a given currency.\");\nconst SplitwiseCreateFriends_GroupItemSchema = z.object({\n balance: z.array(SplitwiseCreateFriends_BalanceItemSchema).describe(\"List of balances within this group\"),\n group_id: z.number().int().describe(\"Unique ID of the group\").nullable(),\n}).passthrough().describe(\"Group membership and balances for the friend.\");\nconst SplitwiseCreateFriends_PictureSchema = z.object({\n large: z.string().describe(\"URL for large profile picture\").nullable().optional(),\n small: z.string().describe(\"URL for small profile picture\").nullable().optional(),\n medium: z.string().describe(\"URL for medium profile picture\").nullable().optional(),\n}).passthrough().describe(\"URLs for different sizes of the user's profile picture.\");\nconst SplitwiseCreateFriends_FriendUserSchema = z.object({\n id: z.number().int().describe(\"Unique user ID\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n groups: z.array(SplitwiseCreateFriends_GroupItemSchema).describe(\"Groups the user belongs to\").nullable().optional(),\n balance: z.array(SplitwiseCreateFriends_BalanceItemSchema).describe(\"Overall balances with this user\").nullable().optional(),\n picture: SplitwiseCreateFriends_PictureSchema.nullable().optional(),\n last_name: z.string().describe(\"Last name of the user\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n custom_picture: z.boolean().describe(\"Whether they have a custom profile picture\").nullable().optional(),\n registration_status: z.string().describe(\"Registration status, e.g., 'confirmed'\").nullable().optional(),\n}).passthrough().describe(\"Friend user object returned by Splitwise.\");\nexport const SplitwiseCreateFriendsOutput = z.object({\n users: z.array(SplitwiseCreateFriends_FriendUserSchema).describe(\"Array of user objects that were created or already existed\"),\n errors: z.record(z.string(), z.unknown()).describe(\"Key-value pairs mapping property names to validation failure messages\").nullable().optional(),\n}).passthrough().describe(\"Response for creating multiple friends.\");\n\nexport const splitwiseCreateFriends = action(\"SPLITWISE_CREATE_FRIENDS\", {\n slug: \"splitwise-create-friends\",\n name: \"Create Friends\",\n description: \"Tool to add multiple friends at once to Splitwise. Use when you need to add several friends in a single operation.\",\n input: SplitwiseCreateFriendsInput,\n output: SplitwiseCreateFriendsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-friends.cjs","names":["z","action"],"sources":["../../src/actions/create-friends.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { splitwise } from \"../app\";\n\nexport const SplitwiseCreateFriendsInput = z.object({\n users: z.array(z.object({\n email: z.string().describe(\"Email address of the user (required)\"),\n last_name: z.string().describe(\"Last name of the user (optional)\").optional(),\n first_name: z.string().describe(\"First name of the user (required for new users)\"),\n}).passthrough().describe(\"A single user to add as a friend.\")).describe(\"List of users to add as friends. Each user must have an email and first_name.\"),\n}).describe(\"Request parameters for adding multiple friends at once.\");\nconst SplitwiseCreateFriends_BalanceItemSchema = z.object({\n amount: z.string().describe(\"Balance amount as string\").nullable(),\n currency_code: z.string().describe(\"Currency code, e.g., 'USD'\").nullable(),\n}).passthrough().describe(\"A balance amount in a given currency.\");\nconst SplitwiseCreateFriends_GroupItemSchema = z.object({\n balance: z.array(SplitwiseCreateFriends_BalanceItemSchema).describe(\"List of balances within this group\"),\n group_id: z.number().int().describe(\"Unique ID of the group\").nullable(),\n}).passthrough().describe(\"Group membership and balances for the friend.\");\nconst SplitwiseCreateFriends_PictureSchema = z.object({\n large: z.string().describe(\"URL for large profile picture\").nullable().optional(),\n small: z.string().describe(\"URL for small profile picture\").nullable().optional(),\n medium: z.string().describe(\"URL for medium profile picture\").nullable().optional(),\n}).passthrough().describe(\"URLs for different sizes of the user's profile picture.\");\nconst SplitwiseCreateFriends_FriendUserSchema = z.object({\n id: z.number().int().describe(\"Unique user ID\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n groups: z.array(SplitwiseCreateFriends_GroupItemSchema).describe(\"Groups the user belongs to\").nullable().optional(),\n balance: z.array(SplitwiseCreateFriends_BalanceItemSchema).describe(\"Overall balances with this user\").nullable().optional(),\n picture: SplitwiseCreateFriends_PictureSchema.nullable().optional(),\n last_name: z.string().describe(\"Last name of the user\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n custom_picture: z.boolean().describe(\"Whether they have a custom profile picture\").nullable().optional(),\n registration_status: z.string().describe(\"Registration status, e.g., 'confirmed'\").nullable().optional(),\n}).passthrough().describe(\"Friend user object returned by Splitwise.\");\nexport const SplitwiseCreateFriendsOutput = z.object({\n users: z.array(SplitwiseCreateFriends_FriendUserSchema).describe(\"Array of user objects that were created or already existed\"),\n errors: z.record(z.string(), z.unknown()).describe(\"Key-value pairs mapping property names to validation failure messages\").nullable().optional(),\n}).passthrough().describe(\"Response for creating multiple friends.\");\n\nexport const splitwiseCreateFriends: AppAction<\n typeof SplitwiseCreateFriendsInput,\n typeof SplitwiseCreateFriendsOutput,\n typeof splitwise.credential\n> = action(\"SPLITWISE_CREATE_FRIENDS\", {\n slug: \"splitwise-create-friends\",\n name: \"Create Friends\",\n description: \"Tool to add multiple friends at once to Splitwise. Use when you need to add several friends in a single operation.\",\n input: SplitwiseCreateFriendsInput,\n output: SplitwiseCreateFriendsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CACxB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,CAAC,SAAS,+EAA+E,EACxJ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,oCAAoC;CACxG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE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AC,CAAC,SAAS;CACvG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,4DAA4D;CAC7H,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { splitwise } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-friends.d.ts
|
|
@@ -36,26 +38,7 @@ declare const SplitwiseCreateFriendsOutput: z.ZodObject<{
|
|
|
36
38
|
}, z.core.$loose>>;
|
|
37
39
|
errors: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
38
40
|
}, z.core.$loose>;
|
|
39
|
-
declare const splitwiseCreateFriends:
|
|
40
|
-
users: {
|
|
41
|
-
[x: string]: unknown;
|
|
42
|
-
email: string;
|
|
43
|
-
first_name: string;
|
|
44
|
-
last_name?: string | undefined;
|
|
45
|
-
}[];
|
|
46
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
47
|
-
connectionId: z.ZodString;
|
|
48
|
-
entityId: z.ZodString;
|
|
49
|
-
instanceId: z.ZodString;
|
|
50
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
-
accessToken: z.ZodString;
|
|
52
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
53
|
-
connectionId: z.ZodString;
|
|
54
|
-
entityId: z.ZodString;
|
|
55
|
-
instanceId: z.ZodString;
|
|
56
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
-
accessToken: z.ZodString;
|
|
58
|
-
}, z.core.$strip>>]>;
|
|
41
|
+
declare const splitwiseCreateFriends: AppAction<typeof SplitwiseCreateFriendsInput, typeof SplitwiseCreateFriendsOutput, typeof splitwise.credential>;
|
|
59
42
|
//#endregion
|
|
60
43
|
export { splitwiseCreateFriends };
|
|
61
44
|
//# sourceMappingURL=create-friends.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-friends.d.cts","names":[],"sources":["../../src/actions/create-friends.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-friends.d.cts","names":[],"sources":["../../src/actions/create-friends.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAgC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { splitwise } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-friends.d.ts
|
|
@@ -36,26 +38,7 @@ declare const SplitwiseCreateFriendsOutput: z.ZodObject<{
|
|
|
36
38
|
}, z.core.$loose>>;
|
|
37
39
|
errors: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
38
40
|
}, z.core.$loose>;
|
|
39
|
-
declare const splitwiseCreateFriends:
|
|
40
|
-
users: {
|
|
41
|
-
[x: string]: unknown;
|
|
42
|
-
email: string;
|
|
43
|
-
first_name: string;
|
|
44
|
-
last_name?: string | undefined;
|
|
45
|
-
}[];
|
|
46
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
47
|
-
connectionId: z.ZodString;
|
|
48
|
-
entityId: z.ZodString;
|
|
49
|
-
instanceId: z.ZodString;
|
|
50
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
-
accessToken: z.ZodString;
|
|
52
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
53
|
-
connectionId: z.ZodString;
|
|
54
|
-
entityId: z.ZodString;
|
|
55
|
-
instanceId: z.ZodString;
|
|
56
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
-
accessToken: z.ZodString;
|
|
58
|
-
}, z.core.$strip>>]>;
|
|
41
|
+
declare const splitwiseCreateFriends: AppAction<typeof SplitwiseCreateFriendsInput, typeof SplitwiseCreateFriendsOutput, typeof splitwise.credential>;
|
|
59
42
|
//#endregion
|
|
60
43
|
export { splitwiseCreateFriends };
|
|
61
44
|
//# sourceMappingURL=create-friends.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-friends.d.mts","names":[],"sources":["../../src/actions/create-friends.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-friends.d.mts","names":[],"sources":["../../src/actions/create-friends.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAgC3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-friends.mjs","names":[],"sources":["../../src/actions/create-friends.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseCreateFriendsInput = z.object({\n users: z.array(z.object({\n email: z.string().describe(\"Email address of the user (required)\"),\n last_name: z.string().describe(\"Last name of the user (optional)\").optional(),\n first_name: z.string().describe(\"First name of the user (required for new users)\"),\n}).passthrough().describe(\"A single user to add as a friend.\")).describe(\"List of users to add as friends. Each user must have an email and first_name.\"),\n}).describe(\"Request parameters for adding multiple friends at once.\");\nconst SplitwiseCreateFriends_BalanceItemSchema = z.object({\n amount: z.string().describe(\"Balance amount as string\").nullable(),\n currency_code: z.string().describe(\"Currency code, e.g., 'USD'\").nullable(),\n}).passthrough().describe(\"A balance amount in a given currency.\");\nconst SplitwiseCreateFriends_GroupItemSchema = z.object({\n balance: z.array(SplitwiseCreateFriends_BalanceItemSchema).describe(\"List of balances within this group\"),\n group_id: z.number().int().describe(\"Unique ID of the group\").nullable(),\n}).passthrough().describe(\"Group membership and balances for the friend.\");\nconst SplitwiseCreateFriends_PictureSchema = z.object({\n large: z.string().describe(\"URL for large profile picture\").nullable().optional(),\n small: z.string().describe(\"URL for small profile picture\").nullable().optional(),\n medium: z.string().describe(\"URL for medium profile picture\").nullable().optional(),\n}).passthrough().describe(\"URLs for different sizes of the user's profile picture.\");\nconst SplitwiseCreateFriends_FriendUserSchema = z.object({\n id: z.number().int().describe(\"Unique user ID\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n groups: z.array(SplitwiseCreateFriends_GroupItemSchema).describe(\"Groups the user belongs to\").nullable().optional(),\n balance: z.array(SplitwiseCreateFriends_BalanceItemSchema).describe(\"Overall balances with this user\").nullable().optional(),\n picture: SplitwiseCreateFriends_PictureSchema.nullable().optional(),\n last_name: z.string().describe(\"Last name of the user\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n custom_picture: z.boolean().describe(\"Whether they have a custom profile picture\").nullable().optional(),\n registration_status: z.string().describe(\"Registration status, e.g., 'confirmed'\").nullable().optional(),\n}).passthrough().describe(\"Friend user object returned by Splitwise.\");\nexport const SplitwiseCreateFriendsOutput = z.object({\n users: z.array(SplitwiseCreateFriends_FriendUserSchema).describe(\"Array of user objects that were created or already existed\"),\n errors: z.record(z.string(), z.unknown()).describe(\"Key-value pairs mapping property names to validation failure messages\").nullable().optional(),\n}).passthrough().describe(\"Response for creating multiple friends.\");\n\nexport const splitwiseCreateFriends = action(\"SPLITWISE_CREATE_FRIENDS\", {\n slug: \"splitwise-create-friends\",\n name: \"Create Friends\",\n description: \"Tool to add multiple friends at once to Splitwise. Use when you need to add several friends in a single operation.\",\n input: SplitwiseCreateFriendsInput,\n output: SplitwiseCreateFriendsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-friends.mjs","names":[],"sources":["../../src/actions/create-friends.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { splitwise } from \"../app\";\n\nexport const SplitwiseCreateFriendsInput = z.object({\n users: z.array(z.object({\n email: z.string().describe(\"Email address of the user (required)\"),\n last_name: z.string().describe(\"Last name of the user (optional)\").optional(),\n first_name: z.string().describe(\"First name of the user (required for new users)\"),\n}).passthrough().describe(\"A single user to add as a friend.\")).describe(\"List of users to add as friends. Each user must have an email and first_name.\"),\n}).describe(\"Request parameters for adding multiple friends at once.\");\nconst SplitwiseCreateFriends_BalanceItemSchema = z.object({\n amount: z.string().describe(\"Balance amount as string\").nullable(),\n currency_code: z.string().describe(\"Currency code, e.g., 'USD'\").nullable(),\n}).passthrough().describe(\"A balance amount in a given currency.\");\nconst SplitwiseCreateFriends_GroupItemSchema = z.object({\n balance: z.array(SplitwiseCreateFriends_BalanceItemSchema).describe(\"List of balances within this group\"),\n group_id: z.number().int().describe(\"Unique ID of the group\").nullable(),\n}).passthrough().describe(\"Group membership and balances for the friend.\");\nconst SplitwiseCreateFriends_PictureSchema = z.object({\n large: z.string().describe(\"URL for large profile picture\").nullable().optional(),\n small: z.string().describe(\"URL for small profile picture\").nullable().optional(),\n medium: z.string().describe(\"URL for medium profile picture\").nullable().optional(),\n}).passthrough().describe(\"URLs for different sizes of the user's profile picture.\");\nconst SplitwiseCreateFriends_FriendUserSchema = z.object({\n id: z.number().int().describe(\"Unique user ID\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n groups: z.array(SplitwiseCreateFriends_GroupItemSchema).describe(\"Groups the user belongs to\").nullable().optional(),\n balance: z.array(SplitwiseCreateFriends_BalanceItemSchema).describe(\"Overall balances with this user\").nullable().optional(),\n picture: SplitwiseCreateFriends_PictureSchema.nullable().optional(),\n last_name: z.string().describe(\"Last name of the user\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n custom_picture: z.boolean().describe(\"Whether they have a custom profile picture\").nullable().optional(),\n registration_status: z.string().describe(\"Registration status, e.g., 'confirmed'\").nullable().optional(),\n}).passthrough().describe(\"Friend user object returned by Splitwise.\");\nexport const SplitwiseCreateFriendsOutput = z.object({\n users: z.array(SplitwiseCreateFriends_FriendUserSchema).describe(\"Array of user objects that were created or already existed\"),\n errors: z.record(z.string(), z.unknown()).describe(\"Key-value pairs mapping property names to validation failure messages\").nullable().optional(),\n}).passthrough().describe(\"Response for creating multiple friends.\");\n\nexport const splitwiseCreateFriends: AppAction<\n typeof SplitwiseCreateFriendsInput,\n typeof SplitwiseCreateFriendsOutput,\n typeof splitwise.credential\n> = action(\"SPLITWISE_CREATE_FRIENDS\", {\n slug: \"splitwise-create-friends\",\n name: \"Create Friends\",\n description: \"Tool to add multiple friends at once to Splitwise. Use when you need to add several fri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AC,SAAS,CAAC,CAAC,SAAS;CAClJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-group.cjs","names":["z","action"],"sources":["../../src/actions/create-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseCreateGroupInput = z.object({\n name: z.string().describe(\"The name of the group to create\"),\n users: z.array(z.object({\n email: z.string().describe(\"Email address of the user to add to the group\").optional(),\n user_id: z.number().int().describe(\"ID of an existing Splitwise user to add to the group\").optional(),\n last_name: z.string().describe(\"Last name of the user\").optional(),\n first_name: z.string().describe(\"First name of the user. Required when inviting a user by email without user_id.\").optional(),\n}).passthrough().describe(\"A member to add to the group.\\nMust include either user_id or email. When email is provided without user_id, first_name is required.\")).describe(\"List of users to add to the group. Each user needs either user_id or email. If invited by email only, first_name is required by Splitwise; last_name is optional.\").optional(),\n group_type: z.enum([\"home\", \"trip\", \"couple\", \"other\", \"apartment\", \"house\"]).describe(\"Type of group being created. Options: 'home', 'trip', 'couple', 'other', 'apartment', 'house'\").optional(),\n simplify_by_default: z.boolean().describe(\"Whether to turn on simplified debts for this group\").optional(),\n}).describe(\"Request parameters for creating a new group.\");\nconst SplitwiseCreateGroup_AvatarSchema = z.object({\n large: z.string().describe(\"Large avatar URL\").nullable().optional(),\n small: z.string().describe(\"Small avatar URL\").nullable().optional(),\n medium: z.string().describe(\"Medium avatar URL\").nullable().optional(),\n xlarge: z.string().describe(\"Extra large avatar URL\").nullable().optional(),\n xxlarge: z.string().describe(\"Extra extra large avatar URL\").nullable().optional(),\n original: z.string().describe(\"Original avatar URL\").nullable().optional(),\n}).passthrough().describe(\"Group avatar URLs\");\nconst SplitwiseCreateGroup_BalanceSchema = z.object({\n amount: z.string().describe(\"Balance amount as string\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., USD)\").nullable().optional(),\n}).passthrough().describe(\"Balance in a specific currency\");\nconst SplitwiseCreateGroup_PictureSchema = z.object({\n large: z.string().describe(\"Large size picture URL\").nullable().optional(),\n small: z.string().describe(\"Small size picture URL\").nullable().optional(),\n medium: z.string().describe(\"Medium size picture URL\").nullable().optional(),\n}).passthrough().describe(\"User profile picture URLs\");\nconst SplitwiseCreateGroup_MemberSchema = z.object({\n id: z.number().int().describe(\"Member user ID\").nullable().optional(),\n email: z.string().describe(\"Member email address\").nullable().optional(),\n balance: z.array(SplitwiseCreateGroup_BalanceSchema).describe(\"Member balance in various currencies\").nullable().optional(),\n picture: SplitwiseCreateGroup_PictureSchema.nullable().optional(),\n last_name: z.string().describe(\"Member last name\").nullable().optional(),\n first_name: z.string().describe(\"Member first name\").nullable().optional(),\n custom_picture: z.boolean().describe(\"Whether member has custom picture\").nullable().optional(),\n registration_status: z.string().describe(\"Registration status of the member\").nullable().optional(),\n}).passthrough().describe(\"Group member information\");\nconst SplitwiseCreateGroup_CoverPhotoSchema = z.object({\n large: z.string().describe(\"Large cover photo URL\").nullable().optional(),\n small: z.string().describe(\"Small cover photo URL\").nullable().optional(),\n medium: z.string().describe(\"Medium cover photo URL\").nullable().optional(),\n xlarge: z.string().describe(\"Extra large cover photo URL\").nullable().optional(),\n xxlarge: z.string().describe(\"Extra extra large cover photo URL\").nullable().optional(),\n}).passthrough().describe(\"Group cover photo URLs\");\nconst SplitwiseCreateGroup_GroupSchema = z.object({\n id: z.number().int().describe(\"Unique group identifier\").nullable().optional(),\n name: z.string().describe(\"Group name\").nullable().optional(),\n avatar: SplitwiseCreateGroup_AvatarSchema.nullable().optional(),\n members: z.array(SplitwiseCreateGroup_MemberSchema).describe(\"List of group members\").nullable().optional(),\n group_type: z.string().describe(\"Type of group (home, trip, couple, other, apartment, house)\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n cover_photo: SplitwiseCreateGroup_CoverPhotoSchema.nullable().optional(),\n invite_link: z.string().describe(\"URL for inviting users to join the group\").nullable().optional(),\n custom_avatar: z.boolean().describe(\"Whether custom avatar is set\").nullable().optional(),\n original_debts: z.array(z.record(z.string(), z.unknown())).describe(\"Original debt records before simplification\").nullable().optional(),\n simplified_debts: z.array(z.record(z.string(), z.unknown())).describe(\"Simplified debt records\").nullable().optional(),\n simplify_by_default: z.boolean().describe(\"Whether debt simplification is enabled\").nullable().optional(),\n}).passthrough().describe(\"Group object returned by the API\");\nexport const SplitwiseCreateGroupOutput = z.object({\n group: SplitwiseCreateGroup_GroupSchema.nullable().optional(),\n errors: z.record(z.string(), z.unknown()).describe(\"Any errors encountered during the operation\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating a new group.\");\n\nexport const splitwiseCreateGroup = action(\"SPLITWISE_CREATE_GROUP\", {\n slug: \"splitwise-create-group\",\n name: \"Create Group\",\n description: \"Tool to create a new group in Splitwise. Use when you need to create a group for tracking shared expenses. The current user is automatically added to the group. You can optionally add other members during creation.\",\n input: SplitwiseCreateGroupInput,\n output: SplitwiseCreateGroupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC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AS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAO,iCAAiC,SAAS,CAAC,CAAC,SAAS;CAC5D,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-group.cjs","names":["z","action"],"sources":["../../src/actions/create-group.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { splitwise } from \"../app\";\n\nexport const SplitwiseCreateGroupInput = z.object({\n name: z.string().describe(\"The name of the group to create\"),\n users: z.array(z.object({\n email: z.string().describe(\"Email address of the user to add to the group\").optional(),\n user_id: z.number().int().describe(\"ID of an existing Splitwise user to add to the group\").optional(),\n last_name: z.string().describe(\"Last name of the user\").optional(),\n first_name: z.string().describe(\"First name of the user. Required when inviting a user by email without user_id.\").optional(),\n}).passthrough().describe(\"A member to add to the group.\\nMust include either user_id or email. When email is provided without user_id, first_name is required.\")).describe(\"List of users to add to the group. Each user needs either user_id or email. If invited by email only, first_name is required by Splitwise; last_name is optional.\").optional(),\n group_type: z.enum([\"home\", \"trip\", \"couple\", \"other\", \"apartment\", \"house\"]).describe(\"Type of group being created. Options: 'home', 'trip', 'couple', 'other', 'apartment', 'house'\").optional(),\n simplify_by_default: z.boolean().describe(\"Whether to turn on simplified debts for this group\").optional(),\n}).describe(\"Request parameters for creating a new group.\");\nconst SplitwiseCreateGroup_AvatarSchema = z.object({\n large: z.string().describe(\"Large avatar URL\").nullable().optional(),\n small: z.string().describe(\"Small avatar URL\").nullable().optional(),\n medium: z.string().describe(\"Medium avatar URL\").nullable().optional(),\n xlarge: z.string().describe(\"Extra large avatar URL\").nullable().optional(),\n xxlarge: z.string().describe(\"Extra extra large avatar URL\").nullable().optional(),\n original: z.string().describe(\"Original avatar URL\").nullable().optional(),\n}).passthrough().describe(\"Group avatar URLs\");\nconst SplitwiseCreateGroup_BalanceSchema = z.object({\n amount: z.string().describe(\"Balance amount as string\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., USD)\").nullable().optional(),\n}).passthrough().describe(\"Balance in a specific currency\");\nconst SplitwiseCreateGroup_PictureSchema = z.object({\n large: z.string().describe(\"Large size picture URL\").nullable().optional(),\n small: z.string().describe(\"Small size picture URL\").nullable().optional(),\n medium: z.string().describe(\"Medium size picture URL\").nullable().optional(),\n}).passthrough().describe(\"User profile picture URLs\");\nconst SplitwiseCreateGroup_MemberSchema = z.object({\n id: z.number().int().describe(\"Member user ID\").nullable().optional(),\n email: z.string().describe(\"Member email address\").nullable().optional(),\n balance: z.array(SplitwiseCreateGroup_BalanceSchema).describe(\"Member balance in various currencies\").nullable().optional(),\n picture: SplitwiseCreateGroup_PictureSchema.nullable().optional(),\n last_name: z.string().describe(\"Member last name\").nullable().optional(),\n first_name: z.string().describe(\"Member first name\").nullable().optional(),\n custom_picture: z.boolean().describe(\"Whether member has custom picture\").nullable().optional(),\n registration_status: z.string().describe(\"Registration status of the member\").nullable().optional(),\n}).passthrough().describe(\"Group member information\");\nconst SplitwiseCreateGroup_CoverPhotoSchema = z.object({\n large: z.string().describe(\"Large cover photo URL\").nullable().optional(),\n small: z.string().describe(\"Small cover photo URL\").nullable().optional(),\n medium: z.string().describe(\"Medium cover photo URL\").nullable().optional(),\n xlarge: z.string().describe(\"Extra large cover photo URL\").nullable().optional(),\n xxlarge: z.string().describe(\"Extra extra large cover photo URL\").nullable().optional(),\n}).passthrough().describe(\"Group cover photo URLs\");\nconst SplitwiseCreateGroup_GroupSchema = z.object({\n id: z.number().int().describe(\"Unique group identifier\").nullable().optional(),\n name: z.string().describe(\"Group name\").nullable().optional(),\n avatar: SplitwiseCreateGroup_AvatarSchema.nullable().optional(),\n members: z.array(SplitwiseCreateGroup_MemberSchema).describe(\"List of group members\").nullable().optional(),\n group_type: z.string().describe(\"Type of group (home, trip, couple, other, apartment, house)\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n cover_photo: SplitwiseCreateGroup_CoverPhotoSchema.nullable().optional(),\n invite_link: z.string().describe(\"URL for inviting users to join the group\").nullable().optional(),\n custom_avatar: z.boolean().describe(\"Whether custom avatar is set\").nullable().optional(),\n original_debts: z.array(z.record(z.string(), z.unknown())).describe(\"Original debt records before simplification\").nullable().optional(),\n simplified_debts: z.array(z.record(z.string(), z.unknown())).describe(\"Simplified debt records\").nullable().optional(),\n simplify_by_default: z.boolean().describe(\"Whether debt simplification is enabled\").nullable().optional(),\n}).passthrough().describe(\"Group object returned by the API\");\nexport const SplitwiseCreateGroupOutput = z.object({\n group: SplitwiseCreateGroup_GroupSchema.nullable().optional(),\n errors: z.record(z.string(), z.unknown()).describe(\"Any errors encountered during the operation\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating a new group.\");\n\nexport const splitwiseCreateGroup: AppAction<\n typeof SplitwiseCreateGroupInput,\n typeof SplitwiseCreateGroupOutput,\n typeof splitwise.credential\n> = action(\"SPLITWISE_CREATE_GROUP\", {\n slug: \"splitwise-create-group\",\n name: \"Create Group\",\n description: \"Tool to create a new group in Splitwise. Use when you need to create a group for tracking shared expenses. The current user is automatically added to the group. You can optionally add other members during creation.\",\n input: SplitwiseCreateGroupInput,\n output: SplitwiseCreateGroupOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;CACxV,YAAYA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAQ;EAAU;EAAS;EAAa;CAAO,CAAC,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACjM,qBAAqBA,IAAA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gBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAO,iCAAiC,SAAS,CAAC,CAAC,SAAS;CAC5D,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { splitwise } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-group.d.ts
|
|
@@ -65,30 +67,7 @@ declare const SplitwiseCreateGroupOutput: z.ZodObject<{
|
|
|
65
67
|
}, z.core.$loose>>>;
|
|
66
68
|
errors: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
67
69
|
}, z.core.$loose>;
|
|
68
|
-
declare const splitwiseCreateGroup:
|
|
69
|
-
name: string;
|
|
70
|
-
users?: {
|
|
71
|
-
[x: string]: unknown;
|
|
72
|
-
email?: string | undefined;
|
|
73
|
-
user_id?: number | undefined;
|
|
74
|
-
last_name?: string | undefined;
|
|
75
|
-
first_name?: string | undefined;
|
|
76
|
-
}[] | undefined;
|
|
77
|
-
group_type?: "home" | "trip" | "couple" | "other" | "apartment" | "house" | undefined;
|
|
78
|
-
simplify_by_default?: boolean | undefined;
|
|
79
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
80
|
-
connectionId: z.ZodString;
|
|
81
|
-
entityId: z.ZodString;
|
|
82
|
-
instanceId: z.ZodString;
|
|
83
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
-
accessToken: z.ZodString;
|
|
85
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
86
|
-
connectionId: z.ZodString;
|
|
87
|
-
entityId: z.ZodString;
|
|
88
|
-
instanceId: z.ZodString;
|
|
89
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
-
accessToken: z.ZodString;
|
|
91
|
-
}, z.core.$strip>>]>;
|
|
70
|
+
declare const splitwiseCreateGroup: AppAction<typeof SplitwiseCreateGroupInput, typeof SplitwiseCreateGroupOutput, typeof splitwise.credential>;
|
|
92
71
|
//#endregion
|
|
93
72
|
export { splitwiseCreateGroup };
|
|
94
73
|
//# sourceMappingURL=create-group.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-group.d.cts","names":[],"sources":["../../src/actions/create-group.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-group.d.cts","names":[],"sources":["../../src/actions/create-group.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cA2DzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { splitwise } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-group.d.ts
|
|
@@ -65,30 +67,7 @@ declare const SplitwiseCreateGroupOutput: z.ZodObject<{
|
|
|
65
67
|
}, z.core.$loose>>>;
|
|
66
68
|
errors: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
67
69
|
}, z.core.$loose>;
|
|
68
|
-
declare const splitwiseCreateGroup:
|
|
69
|
-
name: string;
|
|
70
|
-
users?: {
|
|
71
|
-
[x: string]: unknown;
|
|
72
|
-
email?: string | undefined;
|
|
73
|
-
user_id?: number | undefined;
|
|
74
|
-
last_name?: string | undefined;
|
|
75
|
-
first_name?: string | undefined;
|
|
76
|
-
}[] | undefined;
|
|
77
|
-
group_type?: "home" | "trip" | "couple" | "other" | "apartment" | "house" | undefined;
|
|
78
|
-
simplify_by_default?: boolean | undefined;
|
|
79
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
80
|
-
connectionId: z.ZodString;
|
|
81
|
-
entityId: z.ZodString;
|
|
82
|
-
instanceId: z.ZodString;
|
|
83
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
-
accessToken: z.ZodString;
|
|
85
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
86
|
-
connectionId: z.ZodString;
|
|
87
|
-
entityId: z.ZodString;
|
|
88
|
-
instanceId: z.ZodString;
|
|
89
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
-
accessToken: z.ZodString;
|
|
91
|
-
}, z.core.$strip>>]>;
|
|
70
|
+
declare const splitwiseCreateGroup: AppAction<typeof SplitwiseCreateGroupInput, typeof SplitwiseCreateGroupOutput, typeof splitwise.credential>;
|
|
92
71
|
//#endregion
|
|
93
72
|
export { splitwiseCreateGroup };
|
|
94
73
|
//# sourceMappingURL=create-group.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-group.d.mts","names":[],"sources":["../../src/actions/create-group.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-group.d.mts","names":[],"sources":["../../src/actions/create-group.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cA2DzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-group.mjs","names":[],"sources":["../../src/actions/create-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseCreateGroupInput = z.object({\n name: z.string().describe(\"The name of the group to create\"),\n users: z.array(z.object({\n email: z.string().describe(\"Email address of the user to add to the group\").optional(),\n user_id: z.number().int().describe(\"ID of an existing Splitwise user to add to the group\").optional(),\n last_name: z.string().describe(\"Last name of the user\").optional(),\n first_name: z.string().describe(\"First name of the user. Required when inviting a user by email without user_id.\").optional(),\n}).passthrough().describe(\"A member to add to the group.\\nMust include either user_id or email. When email is provided without user_id, first_name is required.\")).describe(\"List of users to add to the group. Each user needs either user_id or email. If invited by email only, first_name is required by Splitwise; last_name is optional.\").optional(),\n group_type: z.enum([\"home\", \"trip\", \"couple\", \"other\", \"apartment\", \"house\"]).describe(\"Type of group being created. Options: 'home', 'trip', 'couple', 'other', 'apartment', 'house'\").optional(),\n simplify_by_default: z.boolean().describe(\"Whether to turn on simplified debts for this group\").optional(),\n}).describe(\"Request parameters for creating a new group.\");\nconst SplitwiseCreateGroup_AvatarSchema = z.object({\n large: z.string().describe(\"Large avatar URL\").nullable().optional(),\n small: z.string().describe(\"Small avatar URL\").nullable().optional(),\n medium: z.string().describe(\"Medium avatar URL\").nullable().optional(),\n xlarge: z.string().describe(\"Extra large avatar URL\").nullable().optional(),\n xxlarge: z.string().describe(\"Extra extra large avatar URL\").nullable().optional(),\n original: z.string().describe(\"Original avatar URL\").nullable().optional(),\n}).passthrough().describe(\"Group avatar URLs\");\nconst SplitwiseCreateGroup_BalanceSchema = z.object({\n amount: z.string().describe(\"Balance amount as string\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., USD)\").nullable().optional(),\n}).passthrough().describe(\"Balance in a specific currency\");\nconst SplitwiseCreateGroup_PictureSchema = z.object({\n large: z.string().describe(\"Large size picture URL\").nullable().optional(),\n small: z.string().describe(\"Small size picture URL\").nullable().optional(),\n medium: z.string().describe(\"Medium size picture URL\").nullable().optional(),\n}).passthrough().describe(\"User profile picture URLs\");\nconst SplitwiseCreateGroup_MemberSchema = z.object({\n id: z.number().int().describe(\"Member user ID\").nullable().optional(),\n email: z.string().describe(\"Member email address\").nullable().optional(),\n balance: z.array(SplitwiseCreateGroup_BalanceSchema).describe(\"Member balance in various currencies\").nullable().optional(),\n picture: SplitwiseCreateGroup_PictureSchema.nullable().optional(),\n last_name: z.string().describe(\"Member last name\").nullable().optional(),\n first_name: z.string().describe(\"Member first name\").nullable().optional(),\n custom_picture: z.boolean().describe(\"Whether member has custom picture\").nullable().optional(),\n registration_status: z.string().describe(\"Registration status of the member\").nullable().optional(),\n}).passthrough().describe(\"Group member information\");\nconst SplitwiseCreateGroup_CoverPhotoSchema = z.object({\n large: z.string().describe(\"Large cover photo URL\").nullable().optional(),\n small: z.string().describe(\"Small cover photo URL\").nullable().optional(),\n medium: z.string().describe(\"Medium cover photo URL\").nullable().optional(),\n xlarge: z.string().describe(\"Extra large cover photo URL\").nullable().optional(),\n xxlarge: z.string().describe(\"Extra extra large cover photo URL\").nullable().optional(),\n}).passthrough().describe(\"Group cover photo URLs\");\nconst SplitwiseCreateGroup_GroupSchema = z.object({\n id: z.number().int().describe(\"Unique group identifier\").nullable().optional(),\n name: z.string().describe(\"Group name\").nullable().optional(),\n avatar: SplitwiseCreateGroup_AvatarSchema.nullable().optional(),\n members: z.array(SplitwiseCreateGroup_MemberSchema).describe(\"List of group members\").nullable().optional(),\n group_type: z.string().describe(\"Type of group (home, trip, couple, other, apartment, house)\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n cover_photo: SplitwiseCreateGroup_CoverPhotoSchema.nullable().optional(),\n invite_link: z.string().describe(\"URL for inviting users to join the group\").nullable().optional(),\n custom_avatar: z.boolean().describe(\"Whether custom avatar is set\").nullable().optional(),\n original_debts: z.array(z.record(z.string(), z.unknown())).describe(\"Original debt records before simplification\").nullable().optional(),\n simplified_debts: z.array(z.record(z.string(), z.unknown())).describe(\"Simplified debt records\").nullable().optional(),\n simplify_by_default: z.boolean().describe(\"Whether debt simplification is enabled\").nullable().optional(),\n}).passthrough().describe(\"Group object returned by the API\");\nexport const SplitwiseCreateGroupOutput = z.object({\n group: SplitwiseCreateGroup_GroupSchema.nullable().optional(),\n errors: z.record(z.string(), z.unknown()).describe(\"Any errors encountered during the operation\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating a new group.\");\n\nexport const splitwiseCreateGroup = action(\"SPLITWISE_CREATE_GROUP\", {\n slug: \"splitwise-create-group\",\n name: \"Create Group\",\n description: \"Tool to create a new group in Splitwise. Use when you need to create a group for tracking shared expenses. The current user is automatically added to the group. You can optionally add other members during creation.\",\n input: SplitwiseCreateGroupInput,\n output: SplitwiseCreateGroupOutput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ction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { splitwise } from \"../app\";\n\nexport const SplitwiseCreateGroupInput = z.object({\n name: z.string().describe(\"The name of the group to create\"),\n users: z.array(z.object({\n email: z.string().describe(\"Email address of the user to add to the group\").optional(),\n user_id: z.number().int().describe(\"ID of an existing Splitwise user to add to the group\").optional(),\n last_name: z.string().describe(\"Last name of the user\").optional(),\n first_name: z.string().describe(\"First name of the user. Required when inviting a user by email without user_id.\").optional(),\n}).passthrough().describe(\"A member to add to the group.\\nMust include either user_id or email. When email is provided without user_id, first_name is required.\")).describe(\"List of users to add to the group. Each user needs either user_id or email. If invited by email only, first_name is required by Splitwise; last_name is optional.\").optional(),\n group_type: z.enum([\"home\", \"trip\", \"couple\", \"other\", \"apartment\", \"house\"]).describe(\"Type of group being created. Options: 'home', 'trip', 'couple', 'other', 'apartment', 'house'\").optional(),\n simplify_by_default: z.boolean().describe(\"Whether to turn on simplified debts for this group\").optional(),\n}).describe(\"Request parameters for creating a new group.\");\nconst SplitwiseCreateGroup_AvatarSchema = z.object({\n large: z.string().describe(\"Large avatar URL\").nullable().optional(),\n small: z.string().describe(\"Small avatar URL\").nullable().optional(),\n medium: z.string().describe(\"Medium avatar URL\").nullable().optional(),\n xlarge: z.string().describe(\"Extra large avatar URL\").nullable().optional(),\n xxlarge: z.string().describe(\"Extra extra large avatar URL\").nullable().optional(),\n original: z.string().describe(\"Original avatar URL\").nullable().optional(),\n}).passthrough().describe(\"Group avatar URLs\");\nconst SplitwiseCreateGroup_BalanceSchema = z.object({\n amount: z.string().describe(\"Balance amount as string\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., USD)\").nullable().optional(),\n}).passthrough().describe(\"Balance in a specific currency\");\nconst SplitwiseCreateGroup_PictureSchema = z.object({\n large: z.string().describe(\"Large size picture URL\").nullable().optional(),\n small: z.string().describe(\"Small size picture URL\").nullable().optional(),\n medium: z.string().describe(\"Medium size picture URL\").nullable().optional(),\n}).passthrough().describe(\"User profile picture URLs\");\nconst SplitwiseCreateGroup_MemberSchema = z.object({\n id: z.number().int().describe(\"Member user ID\").nullable().optional(),\n email: z.string().describe(\"Member email address\").nullable().optional(),\n balance: z.array(SplitwiseCreateGroup_BalanceSchema).describe(\"Member balance in various currencies\").nullable().optional(),\n picture: SplitwiseCreateGroup_PictureSchema.nullable().optional(),\n last_name: z.string().describe(\"Member last name\").nullable().optional(),\n first_name: z.string().describe(\"Member first name\").nullable().optional(),\n custom_picture: z.boolean().describe(\"Whether member has custom picture\").nullable().optional(),\n registration_status: z.string().describe(\"Registration status of the member\").nullable().optional(),\n}).passthrough().describe(\"Group member information\");\nconst SplitwiseCreateGroup_CoverPhotoSchema = z.object({\n large: z.string().describe(\"Large cover photo URL\").nullable().optional(),\n small: z.string().describe(\"Small cover photo URL\").nullable().optional(),\n medium: z.string().describe(\"Medium cover photo URL\").nullable().optional(),\n xlarge: z.string().describe(\"Extra large cover photo URL\").nullable().optional(),\n xxlarge: z.string().describe(\"Extra extra large cover photo URL\").nullable().optional(),\n}).passthrough().describe(\"Group cover photo URLs\");\nconst SplitwiseCreateGroup_GroupSchema = z.object({\n id: z.number().int().describe(\"Unique group identifier\").nullable().optional(),\n name: z.string().describe(\"Group name\").nullable().optional(),\n avatar: SplitwiseCreateGroup_AvatarSchema.nullable().optional(),\n members: z.array(SplitwiseCreateGroup_MemberSchema).describe(\"List of group members\").nullable().optional(),\n group_type: z.string().describe(\"Type of group (home, trip, couple, other, apartment, house)\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n cover_photo: SplitwiseCreateGroup_CoverPhotoSchema.nullable().optional(),\n invite_link: z.string().describe(\"URL for inviting users to join the group\").nullable().optional(),\n custom_avatar: z.boolean().describe(\"Whether custom avatar is set\").nullable().optional(),\n original_debts: z.array(z.record(z.string(), z.unknown())).describe(\"Original debt records before simplification\").nullable().optional(),\n simplified_debts: z.array(z.record(z.string(), z.unknown())).describe(\"Simplified debt records\").nullable().optional(),\n simplify_by_default: z.boolean().describe(\"Whether debt simplification is enabled\").nullable().optional(),\n}).passthrough().describe(\"Group object returned by the API\");\nexport const SplitwiseCreateGroupOutput = z.object({\n group: SplitwiseCreateGroup_GroupSchema.nullable().optional(),\n errors: z.record(z.string(), z.unknown()).describe(\"Any errors encountered during the operation\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating a new group.\");\n\nexport const splitwiseCreateGroup: AppAction<\n typeof SplitwiseCreateGroupInput,\n typeof SplitwiseCreateGroupOutput,\n typeof splitwise.credential\n> = action(\"SPLITWISE_CREATE_GROUP\", {\n slug: \"splitwise-create-group\",\n name: \"Create Group\",\n description: \"Tool to create a new group in Splitwise. Use when you need to create a group for tracking shared expenses. The current user is automatically added to the group. You can optionally add other members during creation.\",\n input: SplitwiseCreateGroupInput,\n output: SplitwiseCreateGroupOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;CACxV,YAAY,EAAE,KAAK;EAAC;EAAQ;EAAQ;EAAU;EAAS;EAAa;CAAO,CAAC,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACjM,qBAAqB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EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAM5D,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdwC,EAAE,OAAO;EACjD,OAAO,iCAAiC,SAAS,CAAC,CAAC,SAAS;EAC5D,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-comment.cjs","names":["z","action"],"sources":["../../src/actions/delete-comment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SplitwiseDeleteCommentInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the comment to delete.\"),\n}).describe(\"Request model for deleting a comment.\");\nconst SplitwiseDeleteComment_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 SplitwiseDeleteComment_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: SplitwiseDeleteComment_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 SplitwiseDeleteComment_CommentObjectSchema = z.object({\n id: z.number().int().describe(\"Unique comment identifier.\").nullable(),\n user: SplitwiseDeleteComment_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().nullable(),\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 deleted comment object.\");\nexport const SplitwiseDeleteCommentOutput = z.object({\n comment: SplitwiseDeleteComment_CommentObjectSchema.nullable(),\n}).passthrough().describe(\"Response model for deleting a comment.\");\n\nexport const splitwiseDeleteComment = action(\"SPLITWISE_DELETE_COMMENT\", {\n slug: \"splitwise-delete-comment\",\n name: \"Delete Comment\",\n description: \"Tool to delete a comment by its ID. Use after confirming you have a valid comment ID.\",\n input: SplitwiseDeleteCommentInput,\n output: SplitwiseDeleteCommentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-comment.cjs","names":["z","action"],"sources":["../../src/actions/delete-comment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { splitwise } from \"../app\";\n\nexport const SplitwiseDeleteCommentInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the comment to delete.\"),\n}).describe(\"Request model for deleting a comment.\");\nconst SplitwiseDeleteComment_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 SplitwiseDeleteComment_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: SplitwiseDeleteComment_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 SplitwiseDeleteComment_CommentObjectSchema = z.object({\n id: z.number().int().describe(\"Unique comment identifier.\").nullable(),\n user: SplitwiseDeleteComment_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().nullable(),\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 deleted comment object.\");\nexport const SplitwiseDeleteCommentOutput = z.object({\n comment: SplitwiseDeleteComment_CommentObjectSchema.nullable(),\n}).passthrough().describe(\"Response model for deleting a comment.\");\n\nexport const splitwiseDeleteComment: AppAction<\n typeof SplitwiseDeleteCommentInput,\n typeof SplitwiseDeleteCommentOutput,\n typeof splitwise.credential\n> = action(\"SPLITWISE_DELETE_COMMENT\", {\n slug: \"splitwise-delete-comment\",\n name: \"Delete Comment\",\n description: \"Tool to delete a comment by its ID. Use after confirming you have a valid comment ID.\",\n input: SplitwiseDeleteCommentInput,\n output: SplitwiseDeleteCommentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,EACjF,CAAC,CA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SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,MAAM,wCAAwC,SAAS;CACvD,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;CAChC,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,sCAAsC;AAChE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,SAAS,2CAA2C,SAAS,EAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { splitwise } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-comment.d.ts
|
|
@@ -28,21 +30,7 @@ declare const SplitwiseDeleteCommentOutput: z.ZodObject<{
|
|
|
28
30
|
relation_type: z.ZodNullable<z.ZodString>;
|
|
29
31
|
}, z.core.$loose>>;
|
|
30
32
|
}, z.core.$loose>;
|
|
31
|
-
declare const splitwiseDeleteComment:
|
|
32
|
-
id: number;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
34
|
-
connectionId: z.ZodString;
|
|
35
|
-
entityId: z.ZodString;
|
|
36
|
-
instanceId: z.ZodString;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
accessToken: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
40
|
-
connectionId: z.ZodString;
|
|
41
|
-
entityId: z.ZodString;
|
|
42
|
-
instanceId: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
accessToken: z.ZodString;
|
|
45
|
-
}, z.core.$strip>>]>;
|
|
33
|
+
declare const splitwiseDeleteComment: AppAction<typeof SplitwiseDeleteCommentInput, typeof SplitwiseDeleteCommentOutput, typeof splitwise.credential>;
|
|
46
34
|
//#endregion
|
|
47
35
|
export { splitwiseDeleteComment };
|
|
48
36
|
//# sourceMappingURL=delete-comment.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-comment.d.cts","names":[],"sources":["../../src/actions/delete-comment.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-comment.d.cts","names":[],"sources":["../../src/actions/delete-comment.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cA2B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { splitwise } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/delete-comment.d.ts
|
|
@@ -28,21 +30,7 @@ declare const SplitwiseDeleteCommentOutput: z.ZodObject<{
|
|
|
28
30
|
relation_type: z.ZodNullable<z.ZodString>;
|
|
29
31
|
}, z.core.$loose>>;
|
|
30
32
|
}, z.core.$loose>;
|
|
31
|
-
declare const splitwiseDeleteComment:
|
|
32
|
-
id: number;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
34
|
-
connectionId: z.ZodString;
|
|
35
|
-
entityId: z.ZodString;
|
|
36
|
-
instanceId: z.ZodString;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
accessToken: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"splitwise", z.ZodObject<{
|
|
40
|
-
connectionId: z.ZodString;
|
|
41
|
-
entityId: z.ZodString;
|
|
42
|
-
instanceId: z.ZodString;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
accessToken: z.ZodString;
|
|
45
|
-
}, z.core.$strip>>]>;
|
|
33
|
+
declare const splitwiseDeleteComment: AppAction<typeof SplitwiseDeleteCommentInput, typeof SplitwiseDeleteCommentOutput, typeof splitwise.credential>;
|
|
46
34
|
//#endregion
|
|
47
35
|
export { splitwiseDeleteComment };
|
|
48
36
|
//# sourceMappingURL=delete-comment.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-comment.d.mts","names":[],"sources":["../../src/actions/delete-comment.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-comment.d.mts","names":[],"sources":["../../src/actions/delete-comment.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cA2B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAI5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
|