@bubblelab/bubble-core 0.1.214 → 0.1.215
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/bubble-bundle.d.ts +160 -121
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +3 -0
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubbles/service-bubble/agi-inc.d.ts +20 -20
- package/dist/bubbles/service-bubble/ai-agent.d.ts +74 -74
- package/dist/bubbles/service-bubble/airtable.d.ts +76 -76
- package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +8 -8
- package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +22 -22
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-detail.d.ts +38 -38
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +52 -52
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +6 -6
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +12 -12
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +12 -12
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +126 -126
- package/dist/bubbles/service-bubble/apify/apify.d.ts +18 -18
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts +2 -2
- package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +2 -2
- package/dist/bubbles/service-bubble/assembled/assembled.d.ts +6 -6
- package/dist/bubbles/service-bubble/assembled/assembled.schema.d.ts +6 -6
- package/dist/bubbles/service-bubble/attio/attio.d.ts +6 -6
- package/dist/bubbles/service-bubble/attio/attio.schema.d.ts +6 -6
- package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +1 -1
- package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +1 -1
- package/dist/bubbles/service-bubble/capability-pipeline.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/capability-pipeline.js +2 -1
- package/dist/bubbles/service-bubble/capability-pipeline.js.map +1 -1
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +4 -4
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +8 -8
- package/dist/bubbles/service-bubble/firecrawl.d.ts +334 -334
- package/dist/bubbles/service-bubble/followupboss.d.ts +4 -4
- package/dist/bubbles/service-bubble/github.d.ts +60 -60
- package/dist/bubbles/service-bubble/gmail.d.ts +164 -164
- package/dist/bubbles/service-bubble/google-calendar.d.ts +6 -6
- package/dist/bubbles/service-bubble/google-drive.d.ts +8 -8
- package/dist/bubbles/service-bubble/http.d.ts +2 -2
- package/dist/bubbles/service-bubble/insforge-db.d.ts +8 -8
- package/dist/bubbles/service-bubble/jira/jira.d.ts +30 -30
- package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +36 -36
- package/dist/bubbles/service-bubble/notion/notion.d.ts +168 -168
- package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +8 -8
- package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
- package/dist/bubbles/service-bubble/posthog/posthog.d.ts +10 -10
- package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +14 -14
- package/dist/bubbles/service-bubble/resend.d.ts +4 -4
- package/dist/bubbles/service-bubble/slack/slack.d.ts +388 -388
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +28 -28
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +34 -34
- package/dist/bubbles/service-bubble/xero/index.d.ts +3 -0
- package/dist/bubbles/service-bubble/xero/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/xero/index.js +3 -0
- package/dist/bubbles/service-bubble/xero/index.js.map +1 -0
- package/dist/bubbles/service-bubble/xero/xero.d.ts +975 -0
- package/dist/bubbles/service-bubble/xero/xero.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/xero/xero.js +477 -0
- package/dist/bubbles/service-bubble/xero/xero.js.map +1 -0
- package/dist/bubbles/service-bubble/xero/xero.schema.d.ts +924 -0
- package/dist/bubbles/service-bubble/xero/xero.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/xero/xero.schema.js +366 -0
- package/dist/bubbles/service-bubble/xero/xero.schema.js.map +1 -0
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +6 -6
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +8 -8
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +20 -20
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +380 -380
- package/dist/bubbles/tool-bubble/people-search-tool.d.ts +44 -44
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +60 -60
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +134 -134
- package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +20 -20
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +12 -12
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +8 -8
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +2 -2
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +26 -26
- package/dist/bubbles.json +1189 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xero.schema.d.ts","sourceRoot":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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8G3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC3D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC/D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { CredentialType } from '@bubblelab/shared-schemas';
|
|
3
|
+
// Shared field helpers
|
|
4
|
+
const credentialsField = z
|
|
5
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
6
|
+
.optional()
|
|
7
|
+
.describe('Object mapping credential types to values (injected at runtime)');
|
|
8
|
+
const invoiceIdField = z
|
|
9
|
+
.string()
|
|
10
|
+
.min(1, 'Invoice ID is required')
|
|
11
|
+
.describe('Xero invoice UUID');
|
|
12
|
+
const contactIdField = z
|
|
13
|
+
.string()
|
|
14
|
+
.min(1, 'Contact ID is required')
|
|
15
|
+
.describe('Xero contact UUID');
|
|
16
|
+
// Line item schema for invoices
|
|
17
|
+
const LineItemSchema = z
|
|
18
|
+
.object({
|
|
19
|
+
Description: z.string().describe('Description of the line item'),
|
|
20
|
+
Quantity: z
|
|
21
|
+
.number()
|
|
22
|
+
.optional()
|
|
23
|
+
.default(1)
|
|
24
|
+
.describe('Quantity of the line item (default 1)'),
|
|
25
|
+
UnitAmount: z.number().describe('Unit price of the line item'),
|
|
26
|
+
AccountCode: z
|
|
27
|
+
.string()
|
|
28
|
+
.optional()
|
|
29
|
+
.describe('Account code for the line item (e.g., "200" for Sales, "400" for Advertising)'),
|
|
30
|
+
TaxType: z
|
|
31
|
+
.string()
|
|
32
|
+
.optional()
|
|
33
|
+
.describe('Tax type for the line item (e.g., "OUTPUT", "INPUT")'),
|
|
34
|
+
ItemCode: z.string().optional().describe('Item code from Xero inventory'),
|
|
35
|
+
})
|
|
36
|
+
.describe('A single invoice line item');
|
|
37
|
+
// Parameter schema using discriminated union
|
|
38
|
+
export const XeroParamsSchema = z.discriminatedUnion('operation', [
|
|
39
|
+
// Create invoice
|
|
40
|
+
z.object({
|
|
41
|
+
operation: z
|
|
42
|
+
.literal('create_invoice')
|
|
43
|
+
.describe('Create a new invoice in Xero'),
|
|
44
|
+
type: z
|
|
45
|
+
.enum(['ACCREC', 'ACCPAY'])
|
|
46
|
+
.describe('Invoice type: ACCREC for accounts receivable (sales invoice), ACCPAY for accounts payable (bill)'),
|
|
47
|
+
contact_id: z
|
|
48
|
+
.string()
|
|
49
|
+
.min(1)
|
|
50
|
+
.describe('ContactID of the customer/supplier'),
|
|
51
|
+
line_items: z
|
|
52
|
+
.array(LineItemSchema)
|
|
53
|
+
.min(1)
|
|
54
|
+
.describe('Line items for the invoice'),
|
|
55
|
+
date: z
|
|
56
|
+
.string()
|
|
57
|
+
.optional()
|
|
58
|
+
.describe('Invoice date in YYYY-MM-DD format (defaults to today)'),
|
|
59
|
+
due_date: z.string().optional().describe('Due date in YYYY-MM-DD format'),
|
|
60
|
+
reference: z
|
|
61
|
+
.string()
|
|
62
|
+
.optional()
|
|
63
|
+
.describe('Reference number for the invoice'),
|
|
64
|
+
status: z
|
|
65
|
+
.enum(['DRAFT', 'SUBMITTED', 'AUTHORISED'])
|
|
66
|
+
.optional()
|
|
67
|
+
.default('DRAFT')
|
|
68
|
+
.describe('Invoice status (default DRAFT)'),
|
|
69
|
+
currency_code: z
|
|
70
|
+
.string()
|
|
71
|
+
.optional()
|
|
72
|
+
.describe('Currency code (e.g., "USD", "GBP", "AUD")'),
|
|
73
|
+
credentials: credentialsField,
|
|
74
|
+
}),
|
|
75
|
+
// Get invoice
|
|
76
|
+
z.object({
|
|
77
|
+
operation: z
|
|
78
|
+
.literal('get_invoice')
|
|
79
|
+
.describe('Retrieve a single invoice by ID'),
|
|
80
|
+
invoice_id: invoiceIdField,
|
|
81
|
+
credentials: credentialsField,
|
|
82
|
+
}),
|
|
83
|
+
// List invoices
|
|
84
|
+
z.object({
|
|
85
|
+
operation: z
|
|
86
|
+
.literal('list_invoices')
|
|
87
|
+
.describe('List invoices with optional filters'),
|
|
88
|
+
status: z
|
|
89
|
+
.enum(['DRAFT', 'SUBMITTED', 'AUTHORISED', 'PAID', 'VOIDED', 'DELETED'])
|
|
90
|
+
.optional()
|
|
91
|
+
.describe('Filter by invoice status'),
|
|
92
|
+
page: z
|
|
93
|
+
.number()
|
|
94
|
+
.min(1)
|
|
95
|
+
.optional()
|
|
96
|
+
.default(1)
|
|
97
|
+
.describe('Page number for pagination (default 1)'),
|
|
98
|
+
where: z
|
|
99
|
+
.string()
|
|
100
|
+
.optional()
|
|
101
|
+
.describe('Xero filter expression (e.g., "Type==\\"ACCREC\\"", "Contact.Name==\\"John\\"")'),
|
|
102
|
+
credentials: credentialsField,
|
|
103
|
+
}),
|
|
104
|
+
// Create contact
|
|
105
|
+
z.object({
|
|
106
|
+
operation: z
|
|
107
|
+
.literal('create_contact')
|
|
108
|
+
.describe('Create a new contact (customer or supplier)'),
|
|
109
|
+
name: z.string().min(1).describe('Contact name (required, must be unique)'),
|
|
110
|
+
email: z.string().optional().describe('Contact email address'),
|
|
111
|
+
first_name: z.string().optional().describe('First name'),
|
|
112
|
+
last_name: z.string().optional().describe('Last name'),
|
|
113
|
+
phone: z.string().optional().describe('Phone number'),
|
|
114
|
+
account_number: z
|
|
115
|
+
.string()
|
|
116
|
+
.optional()
|
|
117
|
+
.describe('Account number for the contact'),
|
|
118
|
+
tax_number: z
|
|
119
|
+
.string()
|
|
120
|
+
.optional()
|
|
121
|
+
.describe('Tax number (ABN, VAT, GST number)'),
|
|
122
|
+
credentials: credentialsField,
|
|
123
|
+
}),
|
|
124
|
+
// Get contact
|
|
125
|
+
z.object({
|
|
126
|
+
operation: z
|
|
127
|
+
.literal('get_contact')
|
|
128
|
+
.describe('Retrieve a single contact by ID'),
|
|
129
|
+
contact_id: contactIdField,
|
|
130
|
+
credentials: credentialsField,
|
|
131
|
+
}),
|
|
132
|
+
// List contacts
|
|
133
|
+
z.object({
|
|
134
|
+
operation: z
|
|
135
|
+
.literal('list_contacts')
|
|
136
|
+
.describe('List contacts with optional filters'),
|
|
137
|
+
page: z
|
|
138
|
+
.number()
|
|
139
|
+
.min(1)
|
|
140
|
+
.optional()
|
|
141
|
+
.default(1)
|
|
142
|
+
.describe('Page number for pagination (default 1)'),
|
|
143
|
+
where: z
|
|
144
|
+
.string()
|
|
145
|
+
.optional()
|
|
146
|
+
.describe('Xero filter expression (e.g., "Name.StartsWith(\\"John\\")")'),
|
|
147
|
+
credentials: credentialsField,
|
|
148
|
+
}),
|
|
149
|
+
// List accounts
|
|
150
|
+
z.object({
|
|
151
|
+
operation: z.literal('list_accounts').describe('List chart of accounts'),
|
|
152
|
+
type: z
|
|
153
|
+
.string()
|
|
154
|
+
.optional()
|
|
155
|
+
.describe('Filter by account type (e.g., "REVENUE", "EXPENSE", "BANK", "CURRENT")'),
|
|
156
|
+
credentials: credentialsField,
|
|
157
|
+
}),
|
|
158
|
+
// Get financial report
|
|
159
|
+
z.object({
|
|
160
|
+
operation: z
|
|
161
|
+
.literal('get_report')
|
|
162
|
+
.describe('Retrieve a financial report from Xero'),
|
|
163
|
+
report_type: z
|
|
164
|
+
.enum([
|
|
165
|
+
'BalanceSheet',
|
|
166
|
+
'ProfitAndLoss',
|
|
167
|
+
'TrialBalance',
|
|
168
|
+
'BankSummary',
|
|
169
|
+
'ExecutiveSummary',
|
|
170
|
+
'BudgetSummary',
|
|
171
|
+
'AgedReceivablesByContact',
|
|
172
|
+
'AgedPayablesByContact',
|
|
173
|
+
])
|
|
174
|
+
.describe('The type of report to generate'),
|
|
175
|
+
date: z
|
|
176
|
+
.string()
|
|
177
|
+
.optional()
|
|
178
|
+
.describe('Report date in YYYY-MM-DD format. "As at" date for BalanceSheet/TrialBalance/ExecutiveSummary. Not used for ProfitAndLoss (use from_date/to_date).'),
|
|
179
|
+
from_date: z
|
|
180
|
+
.string()
|
|
181
|
+
.optional()
|
|
182
|
+
.describe('Start date in YYYY-MM-DD format. Used by ProfitAndLoss, BankSummary, and aged reports.'),
|
|
183
|
+
to_date: z
|
|
184
|
+
.string()
|
|
185
|
+
.optional()
|
|
186
|
+
.describe('End date in YYYY-MM-DD format. Used by ProfitAndLoss, BankSummary, and aged reports.'),
|
|
187
|
+
periods: z
|
|
188
|
+
.number()
|
|
189
|
+
.optional()
|
|
190
|
+
.describe('Number of comparison periods (1-11 for most reports, 1-12 for BudgetSummary)'),
|
|
191
|
+
timeframe: z
|
|
192
|
+
.enum(['MONTH', 'QUARTER', 'YEAR'])
|
|
193
|
+
.optional()
|
|
194
|
+
.describe('Timeframe for comparison periods (MONTH, QUARTER, or YEAR)'),
|
|
195
|
+
contact_id: z
|
|
196
|
+
.string()
|
|
197
|
+
.optional()
|
|
198
|
+
.describe('Contact UUID — required for AgedReceivablesByContact and AgedPayablesByContact'),
|
|
199
|
+
payments_only: z
|
|
200
|
+
.boolean()
|
|
201
|
+
.optional()
|
|
202
|
+
.describe('Set true for cash-basis reporting (BalanceSheet, ProfitAndLoss, TrialBalance only)'),
|
|
203
|
+
tracking_category_id: z
|
|
204
|
+
.string()
|
|
205
|
+
.optional()
|
|
206
|
+
.describe('Optional tracking category ID to filter the report by'),
|
|
207
|
+
tracking_option_id: z
|
|
208
|
+
.string()
|
|
209
|
+
.optional()
|
|
210
|
+
.describe('Optional tracking option ID (requires tracking_category_id)'),
|
|
211
|
+
credentials: credentialsField,
|
|
212
|
+
}),
|
|
213
|
+
]);
|
|
214
|
+
// Xero record schemas for response data
|
|
215
|
+
const XeroInvoiceSchema = z
|
|
216
|
+
.object({
|
|
217
|
+
InvoiceID: z.string().describe('Invoice UUID'),
|
|
218
|
+
InvoiceNumber: z.string().optional().describe('Invoice number'),
|
|
219
|
+
Type: z.string().describe('Invoice type (ACCREC or ACCPAY)'),
|
|
220
|
+
Status: z.string().describe('Invoice status'),
|
|
221
|
+
Contact: z
|
|
222
|
+
.object({
|
|
223
|
+
ContactID: z.string(),
|
|
224
|
+
Name: z.string().optional(),
|
|
225
|
+
})
|
|
226
|
+
.optional()
|
|
227
|
+
.describe('Associated contact'),
|
|
228
|
+
Date: z.string().optional().describe('Invoice date'),
|
|
229
|
+
DueDate: z.string().optional().describe('Due date'),
|
|
230
|
+
SubTotal: z.number().optional().describe('Total before tax'),
|
|
231
|
+
Total: z.number().optional().describe('Total amount including tax'),
|
|
232
|
+
AmountDue: z.number().optional().describe('Amount due'),
|
|
233
|
+
AmountPaid: z.number().optional().describe('Amount paid'),
|
|
234
|
+
CurrencyCode: z.string().optional().describe('Currency code'),
|
|
235
|
+
Reference: z.string().optional().describe('Reference'),
|
|
236
|
+
LineItems: z.array(z.record(z.unknown())).optional().describe('Line items'),
|
|
237
|
+
})
|
|
238
|
+
.describe('A Xero invoice');
|
|
239
|
+
const XeroContactSchema = z
|
|
240
|
+
.object({
|
|
241
|
+
ContactID: z.string().describe('Contact UUID'),
|
|
242
|
+
Name: z.string().describe('Contact name'),
|
|
243
|
+
FirstName: z.string().optional().describe('First name'),
|
|
244
|
+
LastName: z.string().optional().describe('Last name'),
|
|
245
|
+
EmailAddress: z.string().optional().describe('Email address'),
|
|
246
|
+
AccountNumber: z.string().optional().describe('Account number'),
|
|
247
|
+
TaxNumber: z.string().optional().describe('Tax number'),
|
|
248
|
+
ContactStatus: z.string().optional().describe('Contact status'),
|
|
249
|
+
Phones: z.array(z.record(z.unknown())).optional().describe('Phone numbers'),
|
|
250
|
+
Addresses: z.array(z.record(z.unknown())).optional().describe('Addresses'),
|
|
251
|
+
})
|
|
252
|
+
.describe('A Xero contact');
|
|
253
|
+
const XeroAccountSchema = z
|
|
254
|
+
.object({
|
|
255
|
+
AccountID: z.string().describe('Account UUID'),
|
|
256
|
+
Code: z.string().optional().describe('Account code'),
|
|
257
|
+
Name: z.string().describe('Account name'),
|
|
258
|
+
Type: z.string().describe('Account type'),
|
|
259
|
+
Status: z.string().optional().describe('Account status'),
|
|
260
|
+
Description: z.string().optional().describe('Account description'),
|
|
261
|
+
Class: z.string().optional().describe('Account class'),
|
|
262
|
+
TaxType: z.string().optional().describe('Tax type'),
|
|
263
|
+
})
|
|
264
|
+
.describe('A Xero account');
|
|
265
|
+
// Result schema
|
|
266
|
+
export const XeroResultSchema = z.discriminatedUnion('operation', [
|
|
267
|
+
// Create invoice result
|
|
268
|
+
z.object({
|
|
269
|
+
operation: z.literal('create_invoice'),
|
|
270
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
271
|
+
invoice: XeroInvoiceSchema.optional().describe('Created invoice'),
|
|
272
|
+
error: z.string().describe('Error message if operation failed'),
|
|
273
|
+
}),
|
|
274
|
+
// Get invoice result
|
|
275
|
+
z.object({
|
|
276
|
+
operation: z.literal('get_invoice'),
|
|
277
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
278
|
+
invoice: XeroInvoiceSchema.optional().describe('Retrieved invoice'),
|
|
279
|
+
error: z.string().describe('Error message if operation failed'),
|
|
280
|
+
}),
|
|
281
|
+
// List invoices result
|
|
282
|
+
z.object({
|
|
283
|
+
operation: z.literal('list_invoices'),
|
|
284
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
285
|
+
invoices: z
|
|
286
|
+
.array(XeroInvoiceSchema)
|
|
287
|
+
.optional()
|
|
288
|
+
.describe('List of invoices'),
|
|
289
|
+
error: z.string().describe('Error message if operation failed'),
|
|
290
|
+
}),
|
|
291
|
+
// Create contact result
|
|
292
|
+
z.object({
|
|
293
|
+
operation: z.literal('create_contact'),
|
|
294
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
295
|
+
contact: XeroContactSchema.optional().describe('Created contact'),
|
|
296
|
+
error: z.string().describe('Error message if operation failed'),
|
|
297
|
+
}),
|
|
298
|
+
// Get contact result
|
|
299
|
+
z.object({
|
|
300
|
+
operation: z.literal('get_contact'),
|
|
301
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
302
|
+
contact: XeroContactSchema.optional().describe('Retrieved contact'),
|
|
303
|
+
error: z.string().describe('Error message if operation failed'),
|
|
304
|
+
}),
|
|
305
|
+
// List contacts result
|
|
306
|
+
z.object({
|
|
307
|
+
operation: z.literal('list_contacts'),
|
|
308
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
309
|
+
contacts: z
|
|
310
|
+
.array(XeroContactSchema)
|
|
311
|
+
.optional()
|
|
312
|
+
.describe('List of contacts'),
|
|
313
|
+
error: z.string().describe('Error message if operation failed'),
|
|
314
|
+
}),
|
|
315
|
+
// List accounts result
|
|
316
|
+
z.object({
|
|
317
|
+
operation: z.literal('list_accounts'),
|
|
318
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
319
|
+
accounts: z
|
|
320
|
+
.array(XeroAccountSchema)
|
|
321
|
+
.optional()
|
|
322
|
+
.describe('List of accounts'),
|
|
323
|
+
error: z.string().describe('Error message if operation failed'),
|
|
324
|
+
}),
|
|
325
|
+
// Get report result
|
|
326
|
+
z.object({
|
|
327
|
+
operation: z.literal('get_report'),
|
|
328
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
329
|
+
report: z
|
|
330
|
+
.object({
|
|
331
|
+
reportName: z.string().describe('Report title'),
|
|
332
|
+
reportType: z.string().describe('Report type identifier'),
|
|
333
|
+
reportDate: z.string().optional().describe('Report date'),
|
|
334
|
+
reportTitles: z
|
|
335
|
+
.array(z.string())
|
|
336
|
+
.optional()
|
|
337
|
+
.describe('Report title lines (e.g., org name, date range)'),
|
|
338
|
+
rows: z
|
|
339
|
+
.array(z.object({
|
|
340
|
+
rowType: z
|
|
341
|
+
.string()
|
|
342
|
+
.describe('Row type: Header, Section, Row, SummaryRow'),
|
|
343
|
+
title: z.string().optional().describe('Section title'),
|
|
344
|
+
cells: z
|
|
345
|
+
.array(z.object({
|
|
346
|
+
value: z.string().describe('Cell display value'),
|
|
347
|
+
accountId: z
|
|
348
|
+
.string()
|
|
349
|
+
.optional()
|
|
350
|
+
.describe('Account UUID if this row is an account'),
|
|
351
|
+
}))
|
|
352
|
+
.optional()
|
|
353
|
+
.describe('Cell values for this row'),
|
|
354
|
+
rows: z
|
|
355
|
+
.array(z.record(z.unknown()))
|
|
356
|
+
.optional()
|
|
357
|
+
.describe('Nested rows within a section'),
|
|
358
|
+
}))
|
|
359
|
+
.describe('Report rows'),
|
|
360
|
+
})
|
|
361
|
+
.optional()
|
|
362
|
+
.describe('Parsed report data'),
|
|
363
|
+
error: z.string().describe('Error message if operation failed'),
|
|
364
|
+
}),
|
|
365
|
+
]);
|
|
366
|
+
//# sourceMappingURL=xero.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xero.schema.js","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/xero/xero.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,uBAAuB;AACvB,MAAM,gBAAgB,GAAG,CAAC;KACvB,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;KAChD,QAAQ,EAAE;KACV,QAAQ,CAAC,iEAAiE,CAAC,CAAC;AAE/E,MAAM,cAAc,GAAG,CAAC;KACrB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,wBAAwB,CAAC;KAChC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAEjC,MAAM,cAAc,GAAG,CAAC;KACrB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,wBAAwB,CAAC;KAChC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;AAEjC,gCAAgC;AAChC,MAAM,cAAc,GAAG,CAAC;KACrB,MAAM,CAAC;IAC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CAAC;gBACtD,KAAK,EAAE,CAAC;qBACL,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;oBACP,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;oBAChD,SAAS,EAAE,CAAC;yBACT,MAAM,EAAE;yBACR,QAAQ,EAAE;yBACV,QAAQ,CAAC,wCAAwC,CAAC;iBACtD,CAAC,CACH;qBACA,QAAQ,EAAE;qBACV,QAAQ,CAAC,0BAA0B,CAAC;gBACvC,IAAI,EAAE,CAAC;qBACJ,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;qBAC5B,QAAQ,EAAE;qBACV,QAAQ,CAAC,8BAA8B,CAAC;aAC5C,CAAC,CACH;iBACA,QAAQ,CAAC,aAAa,CAAC;SAC3B,CAAC;aACD,QAAQ,EAAE;aACV,QAAQ,CAAC,oBAAoB,CAAC;QACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;KAChE,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -98,12 +98,12 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
98
98
|
}, "strip", import("zod").ZodTypeAny, {
|
|
99
99
|
operation: "screenshot";
|
|
100
100
|
full_page: boolean;
|
|
101
|
-
url?: string | undefined;
|
|
102
101
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
102
|
+
url?: string | undefined;
|
|
103
103
|
}, {
|
|
104
104
|
operation: "screenshot";
|
|
105
|
-
url?: string | undefined;
|
|
106
105
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
106
|
+
url?: string | undefined;
|
|
107
107
|
full_page?: boolean | undefined;
|
|
108
108
|
}>]>;
|
|
109
109
|
static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{
|
|
@@ -139,15 +139,15 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
139
139
|
price: string;
|
|
140
140
|
quantity: number;
|
|
141
141
|
asin: string;
|
|
142
|
-
url?: string | undefined;
|
|
143
142
|
image?: string | undefined;
|
|
143
|
+
url?: string | undefined;
|
|
144
144
|
}, {
|
|
145
145
|
title: string;
|
|
146
146
|
price: string;
|
|
147
147
|
quantity: number;
|
|
148
148
|
asin: string;
|
|
149
|
-
url?: string | undefined;
|
|
150
149
|
image?: string | undefined;
|
|
150
|
+
url?: string | undefined;
|
|
151
151
|
}>, "many">>;
|
|
152
152
|
subtotal: import("zod").ZodOptional<import("zod").ZodString>;
|
|
153
153
|
total_items: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -162,8 +162,8 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
162
162
|
price: string;
|
|
163
163
|
quantity: number;
|
|
164
164
|
asin: string;
|
|
165
|
-
url?: string | undefined;
|
|
166
165
|
image?: string | undefined;
|
|
166
|
+
url?: string | undefined;
|
|
167
167
|
}[] | undefined;
|
|
168
168
|
subtotal?: string | undefined;
|
|
169
169
|
total_items?: number | undefined;
|
|
@@ -177,8 +177,8 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
177
177
|
price: string;
|
|
178
178
|
quantity: number;
|
|
179
179
|
asin: string;
|
|
180
|
-
url?: string | undefined;
|
|
181
180
|
image?: string | undefined;
|
|
181
|
+
url?: string | undefined;
|
|
182
182
|
}[] | undefined;
|
|
183
183
|
subtotal?: string | undefined;
|
|
184
184
|
total_items?: number | undefined;
|
|
@@ -15,15 +15,15 @@ export declare const CartItemSchema: z.ZodObject<{
|
|
|
15
15
|
price: string;
|
|
16
16
|
quantity: number;
|
|
17
17
|
asin: string;
|
|
18
|
-
url?: string | undefined;
|
|
19
18
|
image?: string | undefined;
|
|
19
|
+
url?: string | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
title: string;
|
|
22
22
|
price: string;
|
|
23
23
|
quantity: number;
|
|
24
24
|
asin: string;
|
|
25
|
-
url?: string | undefined;
|
|
26
25
|
image?: string | undefined;
|
|
26
|
+
url?: string | undefined;
|
|
27
27
|
}>;
|
|
28
28
|
export type CartItem = z.infer<typeof CartItemSchema>;
|
|
29
29
|
/**
|
|
@@ -98,12 +98,12 @@ export declare const AmazonShoppingToolParamsSchema: z.ZodDiscriminatedUnion<"op
|
|
|
98
98
|
}, "strip", z.ZodTypeAny, {
|
|
99
99
|
operation: "screenshot";
|
|
100
100
|
full_page: boolean;
|
|
101
|
-
url?: string | undefined;
|
|
102
101
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
102
|
+
url?: string | undefined;
|
|
103
103
|
}, {
|
|
104
104
|
operation: "screenshot";
|
|
105
|
-
url?: string | undefined;
|
|
106
105
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
106
|
+
url?: string | undefined;
|
|
107
107
|
full_page?: boolean | undefined;
|
|
108
108
|
}>]>;
|
|
109
109
|
/**
|
|
@@ -212,15 +212,15 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
212
212
|
price: string;
|
|
213
213
|
quantity: number;
|
|
214
214
|
asin: string;
|
|
215
|
-
url?: string | undefined;
|
|
216
215
|
image?: string | undefined;
|
|
216
|
+
url?: string | undefined;
|
|
217
217
|
}, {
|
|
218
218
|
title: string;
|
|
219
219
|
price: string;
|
|
220
220
|
quantity: number;
|
|
221
221
|
asin: string;
|
|
222
|
-
url?: string | undefined;
|
|
223
222
|
image?: string | undefined;
|
|
223
|
+
url?: string | undefined;
|
|
224
224
|
}>, "many">>;
|
|
225
225
|
subtotal: z.ZodOptional<z.ZodString>;
|
|
226
226
|
total_items: z.ZodOptional<z.ZodNumber>;
|
|
@@ -235,8 +235,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
235
235
|
price: string;
|
|
236
236
|
quantity: number;
|
|
237
237
|
asin: string;
|
|
238
|
-
url?: string | undefined;
|
|
239
238
|
image?: string | undefined;
|
|
239
|
+
url?: string | undefined;
|
|
240
240
|
}[] | undefined;
|
|
241
241
|
subtotal?: string | undefined;
|
|
242
242
|
total_items?: number | undefined;
|
|
@@ -250,8 +250,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
250
250
|
price: string;
|
|
251
251
|
quantity: number;
|
|
252
252
|
asin: string;
|
|
253
|
-
url?: string | undefined;
|
|
254
253
|
image?: string | undefined;
|
|
254
|
+
url?: string | undefined;
|
|
255
255
|
}[] | undefined;
|
|
256
256
|
subtotal?: string | undefined;
|
|
257
257
|
total_items?: number | undefined;
|
|
@@ -135,13 +135,13 @@ declare const BubbleFlowValidationToolResultSchema: z.ZodObject<{
|
|
|
135
135
|
hasActionCall: boolean;
|
|
136
136
|
parameterCount: number;
|
|
137
137
|
}[] | undefined;
|
|
138
|
-
bubbleCount?: number | undefined;
|
|
139
138
|
variableTypes?: {
|
|
140
139
|
type: string;
|
|
141
140
|
name: string;
|
|
142
141
|
column: number;
|
|
143
142
|
line: number;
|
|
144
143
|
}[] | undefined;
|
|
144
|
+
bubbleCount?: number | undefined;
|
|
145
145
|
}, {
|
|
146
146
|
valid: boolean;
|
|
147
147
|
error: string;
|
|
@@ -160,13 +160,13 @@ declare const BubbleFlowValidationToolResultSchema: z.ZodObject<{
|
|
|
160
160
|
hasActionCall: boolean;
|
|
161
161
|
parameterCount: number;
|
|
162
162
|
}[] | undefined;
|
|
163
|
-
bubbleCount?: number | undefined;
|
|
164
163
|
variableTypes?: {
|
|
165
164
|
type: string;
|
|
166
165
|
name: string;
|
|
167
166
|
column: number;
|
|
168
167
|
line: number;
|
|
169
168
|
}[] | undefined;
|
|
169
|
+
bubbleCount?: number | undefined;
|
|
170
170
|
}>;
|
|
171
171
|
/**
|
|
172
172
|
* BubbleFlow Validation Tool
|
|
@@ -284,13 +284,13 @@ export declare class BubbleFlowValidationTool extends ToolBubble<BubbleFlowValid
|
|
|
284
284
|
hasActionCall: boolean;
|
|
285
285
|
parameterCount: number;
|
|
286
286
|
}[] | undefined;
|
|
287
|
-
bubbleCount?: number | undefined;
|
|
288
287
|
variableTypes?: {
|
|
289
288
|
type: string;
|
|
290
289
|
name: string;
|
|
291
290
|
column: number;
|
|
292
291
|
line: number;
|
|
293
292
|
}[] | undefined;
|
|
293
|
+
bubbleCount?: number | undefined;
|
|
294
294
|
}, {
|
|
295
295
|
valid: boolean;
|
|
296
296
|
error: string;
|
|
@@ -309,13 +309,13 @@ export declare class BubbleFlowValidationTool extends ToolBubble<BubbleFlowValid
|
|
|
309
309
|
hasActionCall: boolean;
|
|
310
310
|
parameterCount: number;
|
|
311
311
|
}[] | undefined;
|
|
312
|
-
bubbleCount?: number | undefined;
|
|
313
312
|
variableTypes?: {
|
|
314
313
|
type: string;
|
|
315
314
|
name: string;
|
|
316
315
|
column: number;
|
|
317
316
|
line: number;
|
|
318
317
|
}[] | undefined;
|
|
318
|
+
bubbleCount?: number | undefined;
|
|
319
319
|
}>;
|
|
320
320
|
static readonly shortDescription = "Validates BubbleFlow TypeScript code for syntax and structure";
|
|
321
321
|
static readonly longDescription = "\n A comprehensive validation tool for BubbleFlow TypeScript code.\n \n What it does:\n - Validates TypeScript syntax and compilation\n - Checks BubbleFlow class structure and requirements\n - Parses and analyzes bubble instantiations\n - Provides detailed error reporting with line numbers\n - Returns metadata about detected bubbles\n \n How it works:\n - Uses TypeScript compiler API for syntax validation\n - Validates that code extends BubbleFlow and has handle method\n - Parses bubble instantiations using AST analysis\n - Maps bubble class names to registered bubble types\n \n Use cases:\n - When an AI agent needs to validate user-provided BubbleFlow code\n - When checking code before execution or deployment\n - When providing feedback on BubbleFlow implementation\n - When analyzing bubble usage patterns in code\n ";
|