@bubblelab/bubble-core 0.1.216 → 0.1.217
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 +227 -188
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +4 -0
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubbles/service-bubble/agi-inc.d.ts +60 -60
- package/dist/bubbles/service-bubble/ai-agent.d.ts +8 -8
- package/dist/bubbles/service-bubble/airtable.d.ts +50 -50
- package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +4 -4
- package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +12 -12
- 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 +8 -8
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-detail.d.ts +52 -52
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +18 -18
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +10 -10
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +27 -27
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +8 -8
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +131 -131
- package/dist/bubbles/service-bubble/apify/apify.d.ts +12 -12
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts +62 -62
- package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +84 -84
- package/dist/bubbles/service-bubble/assembled/assembled.d.ts +36 -36
- package/dist/bubbles/service-bubble/assembled/assembled.schema.d.ts +36 -36
- package/dist/bubbles/service-bubble/attio/attio.d.ts +28 -28
- package/dist/bubbles/service-bubble/attio/attio.schema.d.ts +28 -28
- package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +30 -30
- package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +32 -32
- package/dist/bubbles/service-bubble/confluence/confluence.d.ts +24 -24
- package/dist/bubbles/service-bubble/confluence/confluence.schema.d.ts +24 -24
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +126 -126
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +158 -158
- package/dist/bubbles/service-bubble/eleven-labs.d.ts +28 -28
- package/dist/bubbles/service-bubble/firecrawl.d.ts +783 -783
- package/dist/bubbles/service-bubble/followupboss.d.ts +140 -140
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +68 -68
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.schema.d.ts +108 -108
- package/dist/bubbles/service-bubble/github.d.ts +84 -84
- package/dist/bubbles/service-bubble/gmail.d.ts +80 -80
- package/dist/bubbles/service-bubble/google-calendar.d.ts +138 -138
- package/dist/bubbles/service-bubble/google-drive.d.ts +56 -56
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +44 -44
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +48 -48
- package/dist/bubbles/service-bubble/hello-world.d.ts +8 -8
- package/dist/bubbles/service-bubble/http.d.ts +16 -16
- package/dist/bubbles/service-bubble/hubspot/hubspot.d.ts +8 -8
- package/dist/bubbles/service-bubble/hubspot/hubspot.schema.d.ts +8 -8
- package/dist/bubbles/service-bubble/insforge-db.d.ts +8 -8
- package/dist/bubbles/service-bubble/jira/jira.d.ts +86 -86
- package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +94 -94
- package/dist/bubbles/service-bubble/linear/linear.d.ts +32 -32
- package/dist/bubbles/service-bubble/linear/linear.schema.d.ts +32 -32
- package/dist/bubbles/service-bubble/notion/notion.d.ts +522 -522
- 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 +22 -22
- package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +26 -26
- package/dist/bubbles/service-bubble/resend.d.ts +28 -28
- package/dist/bubbles/service-bubble/s3/s3.d.ts +10 -10
- package/dist/bubbles/service-bubble/s3/s3.schema.d.ts +10 -10
- package/dist/bubbles/service-bubble/sendsafely/sendsafely.d.ts +10 -10
- package/dist/bubbles/service-bubble/sendsafely/sendsafely.schema.d.ts +12 -12
- package/dist/bubbles/service-bubble/slack/slack.d.ts +252 -252
- package/dist/bubbles/service-bubble/storage.d.ts +20 -20
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +129 -129
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +149 -149
- package/dist/bubbles/service-bubble/telegram.d.ts +1540 -1540
- 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 +13 -13
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +13 -13
- package/dist/bubbles/tool-bubble/browser-tools/_shared/schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +16 -16
- package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +26 -26
- package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +52 -52
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/instagram-tool.d.ts +14 -14
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +186 -186
- package/dist/bubbles/tool-bubble/list-airtable-bases-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/list-airtable-tables-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/people-search-tool.d.ts +14 -14
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +28 -28
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +28 -28
- package/dist/bubbles/tool-bubble/tool-template.d.ts +4 -4
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +54 -54
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +22 -22
- package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +22 -22
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +18 -18
- package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +28 -28
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +8 -8
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +72 -72
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +32 -32
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +34 -34
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +90 -90
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +8 -8
- 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":"","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;AA2C3D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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 @@
|
|
|
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;IACN,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAChE,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,OAAO,CAAC,CAAC,CAAC;SACV,QAAQ,CAAC,uCAAuC,CAAC;IACpD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IAC9D,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,+EAA+E,CAChF;IACH,OAAO,EA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AAM,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"}
|
|
@@ -37,8 +37,8 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
37
37
|
credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
|
|
38
38
|
}, "strip", import("zod").ZodTypeAny, {
|
|
39
39
|
operation: "add_to_cart";
|
|
40
|
-
product_url: string;
|
|
41
40
|
quantity: number;
|
|
41
|
+
product_url: string;
|
|
42
42
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
operation: "add_to_cart";
|
|
@@ -113,14 +113,14 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
113
113
|
cart_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
114
114
|
error: import("zod").ZodString;
|
|
115
115
|
}, "strip", import("zod").ZodTypeAny, {
|
|
116
|
-
success: boolean;
|
|
117
116
|
error: string;
|
|
117
|
+
success: boolean;
|
|
118
118
|
operation: "add_to_cart";
|
|
119
119
|
message?: string | undefined;
|
|
120
120
|
cart_count?: number | undefined;
|
|
121
121
|
}, {
|
|
122
|
-
success: boolean;
|
|
123
122
|
error: string;
|
|
123
|
+
success: boolean;
|
|
124
124
|
operation: "add_to_cart";
|
|
125
125
|
message?: string | undefined;
|
|
126
126
|
cart_count?: number | undefined;
|
|
@@ -154,8 +154,8 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
154
154
|
screenshot_url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
155
155
|
error: import("zod").ZodString;
|
|
156
156
|
}, "strip", import("zod").ZodTypeAny, {
|
|
157
|
-
success: boolean;
|
|
158
157
|
error: string;
|
|
158
|
+
success: boolean;
|
|
159
159
|
operation: "get_cart";
|
|
160
160
|
items?: {
|
|
161
161
|
title: string;
|
|
@@ -169,8 +169,8 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
169
169
|
total_items?: number | undefined;
|
|
170
170
|
screenshot_url?: string | undefined;
|
|
171
171
|
}, {
|
|
172
|
-
success: boolean;
|
|
173
172
|
error: string;
|
|
173
|
+
success: boolean;
|
|
174
174
|
operation: "get_cart";
|
|
175
175
|
items?: {
|
|
176
176
|
title: string;
|
|
@@ -210,8 +210,8 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
210
210
|
screenshot_url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
211
211
|
error: import("zod").ZodString;
|
|
212
212
|
}, "strip", import("zod").ZodTypeAny, {
|
|
213
|
-
success: boolean;
|
|
214
213
|
error: string;
|
|
214
|
+
success: boolean;
|
|
215
215
|
operation: "checkout";
|
|
216
216
|
items?: {
|
|
217
217
|
title: string;
|
|
@@ -228,8 +228,8 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
228
228
|
shipping_address?: string | undefined;
|
|
229
229
|
payment_method?: string | undefined;
|
|
230
230
|
}, {
|
|
231
|
-
success: boolean;
|
|
232
231
|
error: string;
|
|
232
|
+
success: boolean;
|
|
233
233
|
operation: "checkout";
|
|
234
234
|
items?: {
|
|
235
235
|
title: string;
|
|
@@ -279,8 +279,8 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
279
279
|
total_results: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
280
280
|
error: import("zod").ZodString;
|
|
281
281
|
}, "strip", import("zod").ZodTypeAny, {
|
|
282
|
-
success: boolean;
|
|
283
282
|
error: string;
|
|
283
|
+
success: boolean;
|
|
284
284
|
operation: "search";
|
|
285
285
|
results?: {
|
|
286
286
|
title: string;
|
|
@@ -294,8 +294,8 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
294
294
|
}[] | undefined;
|
|
295
295
|
total_results?: number | undefined;
|
|
296
296
|
}, {
|
|
297
|
-
success: boolean;
|
|
298
297
|
error: string;
|
|
298
|
+
success: boolean;
|
|
299
299
|
operation: "search";
|
|
300
300
|
results?: {
|
|
301
301
|
title: string;
|
|
@@ -347,8 +347,8 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
347
347
|
}>>;
|
|
348
348
|
error: import("zod").ZodString;
|
|
349
349
|
}, "strip", import("zod").ZodTypeAny, {
|
|
350
|
-
success: boolean;
|
|
351
350
|
error: string;
|
|
351
|
+
success: boolean;
|
|
352
352
|
operation: "get_product";
|
|
353
353
|
product?: {
|
|
354
354
|
title: string;
|
|
@@ -363,8 +363,8 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
363
363
|
availability?: string | undefined;
|
|
364
364
|
} | undefined;
|
|
365
365
|
}, {
|
|
366
|
-
success: boolean;
|
|
367
366
|
error: string;
|
|
367
|
+
success: boolean;
|
|
368
368
|
operation: "get_product";
|
|
369
369
|
product?: {
|
|
370
370
|
title: string;
|
|
@@ -384,13 +384,13 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
|
|
|
384
384
|
screenshot_url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
385
385
|
error: import("zod").ZodString;
|
|
386
386
|
}, "strip", import("zod").ZodTypeAny, {
|
|
387
|
-
success: boolean;
|
|
388
387
|
error: string;
|
|
388
|
+
success: boolean;
|
|
389
389
|
operation: "screenshot";
|
|
390
390
|
screenshot_url?: string | undefined;
|
|
391
391
|
}, {
|
|
392
|
-
success: boolean;
|
|
393
392
|
error: string;
|
|
393
|
+
success: boolean;
|
|
394
394
|
operation: "screenshot";
|
|
395
395
|
screenshot_url?: string | undefined;
|
|
396
396
|
}>]>;
|
|
@@ -37,8 +37,8 @@ export declare const AmazonShoppingToolParamsSchema: z.ZodDiscriminatedUnion<"op
|
|
|
37
37
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
operation: "add_to_cart";
|
|
40
|
-
product_url: string;
|
|
41
40
|
quantity: number;
|
|
41
|
+
product_url: string;
|
|
42
42
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
operation: "add_to_cart";
|
|
@@ -186,14 +186,14 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
186
186
|
cart_count: z.ZodOptional<z.ZodNumber>;
|
|
187
187
|
error: z.ZodString;
|
|
188
188
|
}, "strip", z.ZodTypeAny, {
|
|
189
|
-
success: boolean;
|
|
190
189
|
error: string;
|
|
190
|
+
success: boolean;
|
|
191
191
|
operation: "add_to_cart";
|
|
192
192
|
message?: string | undefined;
|
|
193
193
|
cart_count?: number | undefined;
|
|
194
194
|
}, {
|
|
195
|
-
success: boolean;
|
|
196
195
|
error: string;
|
|
196
|
+
success: boolean;
|
|
197
197
|
operation: "add_to_cart";
|
|
198
198
|
message?: string | undefined;
|
|
199
199
|
cart_count?: number | undefined;
|
|
@@ -227,8 +227,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
227
227
|
screenshot_url: z.ZodOptional<z.ZodString>;
|
|
228
228
|
error: z.ZodString;
|
|
229
229
|
}, "strip", z.ZodTypeAny, {
|
|
230
|
-
success: boolean;
|
|
231
230
|
error: string;
|
|
231
|
+
success: boolean;
|
|
232
232
|
operation: "get_cart";
|
|
233
233
|
items?: {
|
|
234
234
|
title: string;
|
|
@@ -242,8 +242,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
242
242
|
total_items?: number | undefined;
|
|
243
243
|
screenshot_url?: string | undefined;
|
|
244
244
|
}, {
|
|
245
|
-
success: boolean;
|
|
246
245
|
error: string;
|
|
246
|
+
success: boolean;
|
|
247
247
|
operation: "get_cart";
|
|
248
248
|
items?: {
|
|
249
249
|
title: string;
|
|
@@ -283,8 +283,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
283
283
|
screenshot_url: z.ZodOptional<z.ZodString>;
|
|
284
284
|
error: z.ZodString;
|
|
285
285
|
}, "strip", z.ZodTypeAny, {
|
|
286
|
-
success: boolean;
|
|
287
286
|
error: string;
|
|
287
|
+
success: boolean;
|
|
288
288
|
operation: "checkout";
|
|
289
289
|
items?: {
|
|
290
290
|
title: string;
|
|
@@ -301,8 +301,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
301
301
|
shipping_address?: string | undefined;
|
|
302
302
|
payment_method?: string | undefined;
|
|
303
303
|
}, {
|
|
304
|
-
success: boolean;
|
|
305
304
|
error: string;
|
|
305
|
+
success: boolean;
|
|
306
306
|
operation: "checkout";
|
|
307
307
|
items?: {
|
|
308
308
|
title: string;
|
|
@@ -352,8 +352,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
352
352
|
total_results: z.ZodOptional<z.ZodNumber>;
|
|
353
353
|
error: z.ZodString;
|
|
354
354
|
}, "strip", z.ZodTypeAny, {
|
|
355
|
-
success: boolean;
|
|
356
355
|
error: string;
|
|
356
|
+
success: boolean;
|
|
357
357
|
operation: "search";
|
|
358
358
|
results?: {
|
|
359
359
|
title: string;
|
|
@@ -367,8 +367,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
367
367
|
}[] | undefined;
|
|
368
368
|
total_results?: number | undefined;
|
|
369
369
|
}, {
|
|
370
|
-
success: boolean;
|
|
371
370
|
error: string;
|
|
371
|
+
success: boolean;
|
|
372
372
|
operation: "search";
|
|
373
373
|
results?: {
|
|
374
374
|
title: string;
|
|
@@ -420,8 +420,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
420
420
|
}>>;
|
|
421
421
|
error: z.ZodString;
|
|
422
422
|
}, "strip", z.ZodTypeAny, {
|
|
423
|
-
success: boolean;
|
|
424
423
|
error: string;
|
|
424
|
+
success: boolean;
|
|
425
425
|
operation: "get_product";
|
|
426
426
|
product?: {
|
|
427
427
|
title: string;
|
|
@@ -436,8 +436,8 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
436
436
|
availability?: string | undefined;
|
|
437
437
|
} | undefined;
|
|
438
438
|
}, {
|
|
439
|
-
success: boolean;
|
|
440
439
|
error: string;
|
|
440
|
+
success: boolean;
|
|
441
441
|
operation: "get_product";
|
|
442
442
|
product?: {
|
|
443
443
|
title: string;
|
|
@@ -457,13 +457,13 @@ export declare const AmazonShoppingToolResultSchema: z.ZodDiscriminatedUnion<"op
|
|
|
457
457
|
screenshot_url: z.ZodOptional<z.ZodString>;
|
|
458
458
|
error: z.ZodString;
|
|
459
459
|
}, "strip", z.ZodTypeAny, {
|
|
460
|
-
success: boolean;
|
|
461
460
|
error: string;
|
|
461
|
+
success: boolean;
|
|
462
462
|
operation: "screenshot";
|
|
463
463
|
screenshot_url?: string | undefined;
|
|
464
464
|
}, {
|
|
465
|
-
success: boolean;
|
|
466
465
|
error: string;
|
|
466
|
+
success: boolean;
|
|
467
467
|
operation: "screenshot";
|
|
468
468
|
screenshot_url?: string | undefined;
|
|
469
469
|
}>]>;
|
|
@@ -30,6 +30,7 @@ export declare const BrowserSessionDataSchema: z.ZodObject<{
|
|
|
30
30
|
secure?: boolean | undefined;
|
|
31
31
|
}>, "many">;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
contextId: string;
|
|
33
34
|
cookies: {
|
|
34
35
|
value: string;
|
|
35
36
|
name: string;
|
|
@@ -39,8 +40,8 @@ export declare const BrowserSessionDataSchema: z.ZodObject<{
|
|
|
39
40
|
httpOnly?: boolean | undefined;
|
|
40
41
|
secure?: boolean | undefined;
|
|
41
42
|
}[];
|
|
42
|
-
contextId: string;
|
|
43
43
|
}, {
|
|
44
|
+
contextId: string;
|
|
44
45
|
cookies: {
|
|
45
46
|
value: string;
|
|
46
47
|
name: string;
|
|
@@ -50,7 +51,6 @@ export declare const BrowserSessionDataSchema: z.ZodObject<{
|
|
|
50
51
|
httpOnly?: boolean | undefined;
|
|
51
52
|
secure?: boolean | undefined;
|
|
52
53
|
}[];
|
|
53
|
-
contextId: string;
|
|
54
54
|
}>;
|
|
55
55
|
/**
|
|
56
56
|
* Custom proxy configuration
|
|
@@ -127,8 +127,8 @@ export declare const LinkedInAcceptInvitationsToolResultSchema: z.ZodObject<{
|
|
|
127
127
|
message: z.ZodOptional<z.ZodString>;
|
|
128
128
|
error: z.ZodString;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
|
-
success: boolean;
|
|
131
130
|
error: string;
|
|
131
|
+
success: boolean;
|
|
132
132
|
operation: "accept_invitations";
|
|
133
133
|
message?: string | undefined;
|
|
134
134
|
accepted?: {
|
|
@@ -140,8 +140,8 @@ export declare const LinkedInAcceptInvitationsToolResultSchema: z.ZodObject<{
|
|
|
140
140
|
accepted_count?: number | undefined;
|
|
141
141
|
skipped_count?: number | undefined;
|
|
142
142
|
}, {
|
|
143
|
-
success: boolean;
|
|
144
143
|
error: string;
|
|
144
|
+
success: boolean;
|
|
145
145
|
operation: "accept_invitations";
|
|
146
146
|
message?: string | undefined;
|
|
147
147
|
accepted?: {
|