@frogbotai/piece-xero 0.27.0 → 0.28.0

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/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { type PieceOAuthRecipe } from 'frogbot/pieces';
2
- import { createXeroClient, type XeroClient } from './client.js';
2
+ import { createXeroClient } from './client.js';
3
3
  import { xeroScopes } from './config.js';
4
4
  export { xeroScopes };
5
- export declare const xeroActionNames: string[];
6
- export declare const xeroTriggerNames: string[];
5
+ export declare const xeroActionNames: ("createOrUpdateContact" | "createOrUpdateInvoice" | "allocateCreditNote" | "createBankTransfer" | "createQuote" | "sendInvoiceEmail" | "createBill" | "createPayment" | "createPurchaseOrder" | "updatePurchaseOrder" | "uploadAttachment" | "addInvoiceItems" | "createCreditNote" | "createItem" | "createProject" | "updateInvoice" | "createRepeatingInvoice" | "findContact" | "findInvoice" | "findItem" | "findPurchaseOrder" | "getInvoiceHistory" | "createBankTransaction" | "findOrCreateContact" | "customApiCall")[];
6
+ export declare const xeroTriggerNames: ("contactCreated" | "contactCreatedOrUpdated" | "salesInvoiceCreated" | "salesInvoiceUpdated" | "bankTransactionCreated" | "paymentCreated" | "purchaseOrderCreated" | "paymentReconciled" | "quoteUpdated" | "billCreated" | "creditNoteCreated" | "projectCreated" | "quoteCreated")[];
7
7
  export declare const createXero: import("frogbot/pieces").PieceFactory<{
8
8
  readonly slug: "xero";
9
9
  readonly label: "Xero";
@@ -41,68 +41,487 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
41
41
  readonly webhook: import("frogbot/pieces").PieceWebhook<{
42
42
  webhookKey?: string | undefined;
43
43
  }>;
44
- readonly actions: ({
45
- slug: string;
46
- label: string;
47
- description: string;
48
- input: import("zod").ZodObject<{
49
- invoiceId: import("zod").ZodString;
50
- tenantId: import("zod").ZodString;
44
+ readonly actions: ((import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
45
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
46
+ name: import("zod").ZodString;
47
+ email: import("zod").ZodOptional<import("zod").ZodString>;
48
+ tenantId: import("zod").ZodString;
49
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
50
+ webhookKey?: string | undefined;
51
+ }, {
52
+ listTenants: (signal?: AbortSignal) => Promise<{
53
+ tenantId: string;
54
+ tenantName: string;
55
+ }[]>;
56
+ request: <TSchema extends import("zod").ZodType>(input: {
57
+ path: string;
58
+ tenantId?: string;
59
+ method?: "DELETE" | "GET" | "POST" | "PUT";
60
+ body?: BodyInit | import("./client.js").XeroJSON;
61
+ headers?: Record<string, string>;
62
+ query?: Record<string, boolean | number | string | undefined>;
63
+ signal?: AbortSignal;
64
+ base?: "accounting" | "connections" | "identity" | "projects";
65
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
66
+ }, {
67
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
68
+ }> & {
69
+ slug: "createOrUpdateContact";
70
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
71
+ invoiceId: import("zod").ZodOptional<import("zod").ZodString>;
72
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
73
+ name: import("zod").ZodString;
74
+ email: import("zod").ZodOptional<import("zod").ZodString>;
75
+ lineItem: import("zod").ZodObject<{
76
+ Description: import("zod").ZodString;
77
+ Quantity: import("zod").ZodOptional<import("zod").ZodNumber>;
78
+ UnitAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
79
+ AccountCode: import("zod").ZodOptional<import("zod").ZodString>;
80
+ ItemCode: import("zod").ZodOptional<import("zod").ZodString>;
81
+ TaxType: import("zod").ZodOptional<import("zod").ZodString>;
82
+ DiscountRate: import("zod").ZodOptional<import("zod").ZodNumber>;
83
+ LineItemID: import("zod").ZodOptional<import("zod").ZodString>;
84
+ }, import("zod/v4/core").$strip>;
85
+ date: import("zod").ZodOptional<import("zod").ZodString>;
86
+ dueDate: import("zod").ZodString;
87
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
88
+ status: import("zod").ZodEnum<{
89
+ DRAFT: "DRAFT";
90
+ SUBMITTED: "SUBMITTED";
91
+ AUTHORISED: "AUTHORISED";
92
+ DELETED: "DELETED";
93
+ VOIDED: "VOIDED";
94
+ }>;
95
+ tenantId: import("zod").ZodString;
96
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
97
+ webhookKey?: string | undefined;
98
+ }, {
99
+ listTenants: (signal?: AbortSignal) => Promise<{
100
+ tenantId: string;
101
+ tenantName: string;
102
+ }[]>;
103
+ request: <TSchema extends import("zod").ZodType>(input: {
104
+ path: string;
105
+ tenantId?: string;
106
+ method?: "DELETE" | "GET" | "POST" | "PUT";
107
+ body?: BodyInit | import("./client.js").XeroJSON;
108
+ headers?: Record<string, string>;
109
+ query?: Record<string, boolean | number | string | undefined>;
110
+ signal?: AbortSignal;
111
+ base?: "accounting" | "connections" | "identity" | "projects";
112
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
113
+ }, {
114
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
115
+ }> & {
116
+ slug: "createOrUpdateInvoice";
117
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
118
+ creditNoteId: import("zod").ZodString;
119
+ invoiceId: import("zod").ZodString;
120
+ amount: import("zod").ZodNumber;
121
+ date: import("zod").ZodOptional<import("zod").ZodString>;
122
+ tenantId: import("zod").ZodString;
123
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
124
+ webhookKey?: string | undefined;
125
+ }, {
126
+ listTenants: (signal?: AbortSignal) => Promise<{
127
+ tenantId: string;
128
+ tenantName: string;
129
+ }[]>;
130
+ request: <TSchema extends import("zod").ZodType>(input: {
131
+ path: string;
132
+ tenantId?: string;
133
+ method?: "DELETE" | "GET" | "POST" | "PUT";
134
+ body?: BodyInit | import("./client.js").XeroJSON;
135
+ headers?: Record<string, string>;
136
+ query?: Record<string, boolean | number | string | undefined>;
137
+ signal?: AbortSignal;
138
+ base?: "accounting" | "connections" | "identity" | "projects";
139
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
140
+ }, {
141
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
142
+ }> & {
143
+ slug: "allocateCreditNote";
144
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
145
+ fromBankAccountId: import("zod").ZodString;
146
+ toBankAccountId: import("zod").ZodString;
147
+ amount: import("zod").ZodNumber;
148
+ date: import("zod").ZodOptional<import("zod").ZodString>;
149
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
150
+ fromIsReconciled: import("zod").ZodDefault<import("zod").ZodBoolean>;
151
+ toIsReconciled: import("zod").ZodDefault<import("zod").ZodBoolean>;
152
+ tenantId: import("zod").ZodString;
153
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
154
+ webhookKey?: string | undefined;
155
+ }, {
156
+ listTenants: (signal?: AbortSignal) => Promise<{
157
+ tenantId: string;
158
+ tenantName: string;
159
+ }[]>;
160
+ request: <TSchema extends import("zod").ZodType>(input: {
161
+ path: string;
162
+ tenantId?: string;
163
+ method?: "DELETE" | "GET" | "POST" | "PUT";
164
+ body?: BodyInit | import("./client.js").XeroJSON;
165
+ headers?: Record<string, string>;
166
+ query?: Record<string, boolean | number | string | undefined>;
167
+ signal?: AbortSignal;
168
+ base?: "accounting" | "connections" | "identity" | "projects";
169
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
170
+ }, {
171
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
172
+ }> & {
173
+ slug: "createBankTransfer";
174
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
175
+ contactId: import("zod").ZodString;
176
+ date: import("zod").ZodString;
177
+ expiryDate: import("zod").ZodOptional<import("zod").ZodString>;
178
+ lineItem: import("zod").ZodObject<{
179
+ Description: import("zod").ZodString;
180
+ Quantity: import("zod").ZodOptional<import("zod").ZodNumber>;
181
+ UnitAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
182
+ AccountCode: import("zod").ZodOptional<import("zod").ZodString>;
183
+ ItemCode: import("zod").ZodOptional<import("zod").ZodString>;
184
+ TaxType: import("zod").ZodOptional<import("zod").ZodString>;
185
+ DiscountRate: import("zod").ZodOptional<import("zod").ZodNumber>;
186
+ LineItemID: import("zod").ZodOptional<import("zod").ZodString>;
51
187
  }, import("zod/v4/core").$strip>;
52
- output: import("zod").ZodObject<{
53
- success: import("zod").ZodLiteral<true>;
188
+ lineAmountTypes: import("zod").ZodOptional<import("zod").ZodEnum<{
189
+ Exclusive: "Exclusive";
190
+ Inclusive: "Inclusive";
191
+ NoTax: "NoTax";
192
+ }>>;
193
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
194
+ quoteNumber: import("zod").ZodOptional<import("zod").ZodString>;
195
+ title: import("zod").ZodOptional<import("zod").ZodString>;
196
+ summary: import("zod").ZodOptional<import("zod").ZodString>;
197
+ terms: import("zod").ZodOptional<import("zod").ZodString>;
198
+ status: import("zod").ZodDefault<import("zod").ZodLiteral<"DRAFT">>;
199
+ tenantId: import("zod").ZodString;
200
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
201
+ webhookKey?: string | undefined;
202
+ }, {
203
+ listTenants: (signal?: AbortSignal) => Promise<{
204
+ tenantId: string;
205
+ tenantName: string;
206
+ }[]>;
207
+ request: <TSchema extends import("zod").ZodType>(input: {
208
+ path: string;
209
+ tenantId?: string;
210
+ method?: "DELETE" | "GET" | "POST" | "PUT";
211
+ body?: BodyInit | import("./client.js").XeroJSON;
212
+ headers?: Record<string, string>;
213
+ query?: Record<string, boolean | number | string | undefined>;
214
+ signal?: AbortSignal;
215
+ base?: "accounting" | "connections" | "identity" | "projects";
216
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
217
+ }, {
218
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
219
+ }> & {
220
+ slug: "createQuote";
221
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
222
+ invoiceId: import("zod").ZodString;
223
+ tenantId: import("zod").ZodString;
224
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
225
+ success: import("zod").ZodLiteral<true>;
226
+ }, import("zod/v4/core").$strip>, {
227
+ webhookKey?: string | undefined;
228
+ }, {
229
+ listTenants: (signal?: AbortSignal) => Promise<{
230
+ tenantId: string;
231
+ tenantName: string;
232
+ }[]>;
233
+ request: <TSchema extends import("zod").ZodType>(input: {
234
+ path: string;
235
+ tenantId?: string;
236
+ method?: "DELETE" | "GET" | "POST" | "PUT";
237
+ body?: BodyInit | import("./client.js").XeroJSON;
238
+ headers?: Record<string, string>;
239
+ query?: Record<string, boolean | number | string | undefined>;
240
+ signal?: AbortSignal;
241
+ base?: "accounting" | "connections" | "identity" | "projects";
242
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
243
+ }, {
244
+ success: true;
245
+ }> & {
246
+ slug: "sendInvoiceEmail";
247
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
248
+ contactId: import("zod").ZodString;
249
+ lineItem: import("zod").ZodObject<{
250
+ Description: import("zod").ZodString;
251
+ Quantity: import("zod").ZodOptional<import("zod").ZodNumber>;
252
+ UnitAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
253
+ AccountCode: import("zod").ZodOptional<import("zod").ZodString>;
254
+ ItemCode: import("zod").ZodOptional<import("zod").ZodString>;
255
+ TaxType: import("zod").ZodOptional<import("zod").ZodString>;
256
+ DiscountRate: import("zod").ZodOptional<import("zod").ZodNumber>;
257
+ LineItemID: import("zod").ZodOptional<import("zod").ZodString>;
54
258
  }, import("zod/v4/core").$strip>;
55
- run({ input, client, req, }: import("frogbot/pieces").PieceRunArgs<import("zod").infer<import("zod").ZodObject<{
56
- invoiceId: import("zod").ZodString;
57
- tenantId: import("zod").ZodString;
58
- }, import("zod/v4/core").$strip>>, object, XeroClient>): Promise<{
59
- success: boolean;
259
+ date: import("zod").ZodOptional<import("zod").ZodString>;
260
+ dueDate: import("zod").ZodOptional<import("zod").ZodString>;
261
+ lineAmountTypes: import("zod").ZodOptional<import("zod").ZodEnum<{
262
+ Exclusive: "Exclusive";
263
+ Inclusive: "Inclusive";
264
+ NoTax: "NoTax";
265
+ }>>;
266
+ invoiceNumber: import("zod").ZodOptional<import("zod").ZodString>;
267
+ status: import("zod").ZodDefault<import("zod").ZodEnum<{
268
+ DRAFT: "DRAFT";
269
+ SUBMITTED: "SUBMITTED";
270
+ AUTHORISED: "AUTHORISED";
271
+ }>>;
272
+ tenantId: import("zod").ZodString;
273
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
274
+ webhookKey?: string | undefined;
275
+ }, {
276
+ listTenants: (signal?: AbortSignal) => Promise<{
277
+ tenantId: string;
278
+ tenantName: string;
279
+ }[]>;
280
+ request: <TSchema extends import("zod").ZodType>(input: {
281
+ path: string;
282
+ tenantId?: string;
283
+ method?: "DELETE" | "GET" | "POST" | "PUT";
284
+ body?: BodyInit | import("./client.js").XeroJSON;
285
+ headers?: Record<string, string>;
286
+ query?: Record<string, boolean | number | string | undefined>;
287
+ signal?: AbortSignal;
288
+ base?: "accounting" | "connections" | "identity" | "projects";
289
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
290
+ }, {
291
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
292
+ }> & {
293
+ slug: "createBill";
294
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
295
+ invoiceId: import("zod").ZodString;
296
+ accountId: import("zod").ZodString;
297
+ amount: import("zod").ZodNumber;
298
+ date: import("zod").ZodString;
299
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
300
+ isReconciled: import("zod").ZodDefault<import("zod").ZodBoolean>;
301
+ tenantId: import("zod").ZodString;
302
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
303
+ webhookKey?: string | undefined;
304
+ }, {
305
+ listTenants: (signal?: AbortSignal) => Promise<{
306
+ tenantId: string;
307
+ tenantName: string;
308
+ }[]>;
309
+ request: <TSchema extends import("zod").ZodType>(input: {
310
+ path: string;
311
+ tenantId?: string;
312
+ method?: "DELETE" | "GET" | "POST" | "PUT";
313
+ body?: BodyInit | import("./client.js").XeroJSON;
314
+ headers?: Record<string, string>;
315
+ query?: Record<string, boolean | number | string | undefined>;
316
+ signal?: AbortSignal;
317
+ base?: "accounting" | "connections" | "identity" | "projects";
318
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
319
+ }, {
320
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
321
+ }> & {
322
+ slug: "createPayment";
323
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
324
+ contactId: import("zod").ZodString;
325
+ lineItem: import("zod").ZodObject<{
326
+ Description: import("zod").ZodString;
327
+ Quantity: import("zod").ZodOptional<import("zod").ZodNumber>;
328
+ UnitAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
329
+ AccountCode: import("zod").ZodOptional<import("zod").ZodString>;
330
+ ItemCode: import("zod").ZodOptional<import("zod").ZodString>;
331
+ TaxType: import("zod").ZodOptional<import("zod").ZodString>;
332
+ DiscountRate: import("zod").ZodOptional<import("zod").ZodNumber>;
333
+ LineItemID: import("zod").ZodOptional<import("zod").ZodString>;
334
+ }, import("zod/v4/core").$strip>;
335
+ date: import("zod").ZodOptional<import("zod").ZodString>;
336
+ deliveryDate: import("zod").ZodOptional<import("zod").ZodString>;
337
+ lineAmountTypes: import("zod").ZodOptional<import("zod").ZodEnum<{
338
+ Exclusive: "Exclusive";
339
+ Inclusive: "Inclusive";
340
+ NoTax: "NoTax";
341
+ }>>;
342
+ purchaseOrderNumber: import("zod").ZodOptional<import("zod").ZodString>;
343
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
344
+ brandingThemeId: import("zod").ZodOptional<import("zod").ZodString>;
345
+ status: import("zod").ZodDefault<import("zod").ZodEnum<{
346
+ DRAFT: "DRAFT";
347
+ SUBMITTED: "SUBMITTED";
348
+ AUTHORISED: "AUTHORISED";
349
+ DELETED: "DELETED";
350
+ BILLED: "BILLED";
351
+ }>>;
352
+ deliveryAddress: import("zod").ZodOptional<import("zod").ZodString>;
353
+ attentionTo: import("zod").ZodOptional<import("zod").ZodString>;
354
+ telephone: import("zod").ZodOptional<import("zod").ZodString>;
355
+ deliveryInstructions: import("zod").ZodOptional<import("zod").ZodString>;
356
+ expectedArrivalDate: import("zod").ZodOptional<import("zod").ZodString>;
357
+ tenantId: import("zod").ZodString;
358
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
359
+ webhookKey?: string | undefined;
360
+ }, {
361
+ listTenants: (signal?: AbortSignal) => Promise<{
362
+ tenantId: string;
363
+ tenantName: string;
364
+ }[]>;
365
+ request: <TSchema extends import("zod").ZodType>(input: {
366
+ path: string;
367
+ tenantId?: string;
368
+ method?: "DELETE" | "GET" | "POST" | "PUT";
369
+ body?: BodyInit | import("./client.js").XeroJSON;
370
+ headers?: Record<string, string>;
371
+ query?: Record<string, boolean | number | string | undefined>;
372
+ signal?: AbortSignal;
373
+ base?: "accounting" | "connections" | "identity" | "projects";
374
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
375
+ }, {
376
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
377
+ }> & {
378
+ slug: "createPurchaseOrder";
379
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
380
+ purchaseOrderId: import("zod").ZodString;
381
+ status: import("zod").ZodOptional<import("zod").ZodEnum<{
382
+ DRAFT: "DRAFT";
383
+ SUBMITTED: "SUBMITTED";
384
+ AUTHORISED: "AUTHORISED";
385
+ DELETED: "DELETED";
386
+ BILLED: "BILLED";
387
+ }>>;
388
+ sentToContact: import("zod").ZodDefault<import("zod").ZodBoolean>;
389
+ deliveryAddress: import("zod").ZodOptional<import("zod").ZodString>;
390
+ attentionTo: import("zod").ZodOptional<import("zod").ZodString>;
391
+ telephone: import("zod").ZodOptional<import("zod").ZodString>;
392
+ deliveryInstructions: import("zod").ZodOptional<import("zod").ZodString>;
393
+ expectedArrivalDate: import("zod").ZodOptional<import("zod").ZodString>;
394
+ tenantId: import("zod").ZodString;
395
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
396
+ webhookKey?: string | undefined;
397
+ }, {
398
+ listTenants: (signal?: AbortSignal) => Promise<{
399
+ tenantId: string;
400
+ tenantName: string;
401
+ }[]>;
402
+ request: <TSchema extends import("zod").ZodType>(input: {
403
+ path: string;
404
+ tenantId?: string;
405
+ method?: "DELETE" | "GET" | "POST" | "PUT";
406
+ body?: BodyInit | import("./client.js").XeroJSON;
407
+ headers?: Record<string, string>;
408
+ query?: Record<string, boolean | number | string | undefined>;
409
+ signal?: AbortSignal;
410
+ base?: "accounting" | "connections" | "identity" | "projects";
411
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
412
+ }, {
413
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
414
+ }> & {
415
+ slug: "updatePurchaseOrder";
416
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
417
+ resourceType: import("zod").ZodEnum<{
418
+ Contacts: "Contacts";
419
+ Invoices: "Invoices";
420
+ BankTransfers: "BankTransfers";
421
+ Quotes: "Quotes";
422
+ PurchaseOrders: "PurchaseOrders";
423
+ CreditNotes: "CreditNotes";
424
+ BankTransactions: "BankTransactions";
425
+ Accounts: "Accounts";
426
+ ManualJournals: "ManualJournals";
427
+ Receipts: "Receipts";
428
+ RepeatingInvoices: "RepeatingInvoices";
60
429
  }>;
61
- } | {
62
- slug: string;
63
- label: string;
64
- description: string;
65
- input: import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
66
- output: import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>;
67
- idempotent: boolean;
68
- options: {
69
- tenantId({ client, req, }: {
70
- client: XeroClient;
71
- req: {
72
- signal?: AbortSignal | null;
73
- };
74
- }): Promise<{
75
- label: string;
76
- value: string;
77
- }[]>;
78
- };
79
- run: (args: import("frogbot/pieces").PieceRunArgs<unknown, object, {
80
- listTenants: (signal?: AbortSignal) => Promise<{
81
- tenantId: string;
82
- tenantName: string;
83
- }[]>;
84
- request: <TSchema extends import("zod").ZodType>(input: {
85
- path: string;
86
- tenantId?: string;
87
- method?: "DELETE" | "GET" | "POST" | "PUT";
88
- body?: BodyInit | import("./client.js").XeroJSON;
89
- headers?: Record<string, string>;
90
- query?: Record<string, boolean | number | string | undefined>;
91
- signal?: AbortSignal;
92
- base?: "accounting" | "connections" | "identity" | "projects";
93
- }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
94
- }>) => Promise<unknown>;
95
- })[];
96
- readonly triggers: (import("frogbot/pieces").PiecePollingTrigger<import("zod").ZodObject<{
430
+ resourceId: import("zod").ZodString;
431
+ file: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>;
432
+ fileName: import("zod").ZodString;
433
+ contentType: import("zod").ZodDefault<import("zod").ZodString>;
434
+ includeOnline: import("zod").ZodDefault<import("zod").ZodBoolean>;
97
435
  tenantId: import("zod").ZodString;
98
- statuses: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
99
- types: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
100
- contactId: import("zod").ZodOptional<import("zod").ZodString>;
436
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
437
+ webhookKey?: string | undefined;
438
+ }, {
439
+ listTenants: (signal?: AbortSignal) => Promise<{
440
+ tenantId: string;
441
+ tenantName: string;
442
+ }[]>;
443
+ request: <TSchema extends import("zod").ZodType>(input: {
444
+ path: string;
445
+ tenantId?: string;
446
+ method?: "DELETE" | "GET" | "POST" | "PUT";
447
+ body?: BodyInit | import("./client.js").XeroJSON;
448
+ headers?: Record<string, string>;
449
+ query?: Record<string, boolean | number | string | undefined>;
450
+ signal?: AbortSignal;
451
+ base?: "accounting" | "connections" | "identity" | "projects";
452
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
453
+ }, {
454
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
455
+ }> & {
456
+ slug: "uploadAttachment";
457
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
458
+ invoiceId: import("zod").ZodString;
459
+ newLineItems: import("zod").ZodArray<import("zod").ZodObject<{
460
+ Description: import("zod").ZodString;
461
+ Quantity: import("zod").ZodOptional<import("zod").ZodNumber>;
462
+ UnitAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
463
+ AccountCode: import("zod").ZodOptional<import("zod").ZodString>;
464
+ ItemCode: import("zod").ZodOptional<import("zod").ZodString>;
465
+ TaxType: import("zod").ZodOptional<import("zod").ZodString>;
466
+ DiscountRate: import("zod").ZodOptional<import("zod").ZodNumber>;
467
+ LineItemID: import("zod").ZodOptional<import("zod").ZodString>;
468
+ }, import("zod/v4/core").$strip>>;
469
+ tenantId: import("zod").ZodString;
470
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
471
+ webhookKey?: string | undefined;
472
+ }, {
473
+ listTenants: (signal?: AbortSignal) => Promise<{
474
+ tenantId: string;
475
+ tenantName: string;
476
+ }[]>;
477
+ request: <TSchema extends import("zod").ZodType>(input: {
478
+ path: string;
479
+ tenantId?: string;
480
+ method?: "DELETE" | "GET" | "POST" | "PUT";
481
+ body?: BodyInit | import("./client.js").XeroJSON;
482
+ headers?: Record<string, string>;
483
+ query?: Record<string, boolean | number | string | undefined>;
484
+ signal?: AbortSignal;
485
+ base?: "accounting" | "connections" | "identity" | "projects";
486
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
487
+ }, {
488
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
489
+ }> & {
490
+ slug: "addInvoiceItems";
491
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
492
+ type: import("zod").ZodDefault<import("zod").ZodEnum<{
493
+ ACCRECCREDIT: "ACCRECCREDIT";
494
+ ACCPAYCREDIT: "ACCPAYCREDIT";
495
+ }>>;
496
+ contactId: import("zod").ZodString;
497
+ date: import("zod").ZodOptional<import("zod").ZodString>;
498
+ status: import("zod").ZodDefault<import("zod").ZodEnum<{
499
+ DRAFT: "DRAFT";
500
+ AUTHORISED: "AUTHORISED";
501
+ }>>;
502
+ lineAmountTypes: import("zod").ZodOptional<import("zod").ZodEnum<{
503
+ Exclusive: "Exclusive";
504
+ Inclusive: "Inclusive";
505
+ NoTax: "NoTax";
506
+ }>>;
507
+ creditNoteNumber: import("zod").ZodOptional<import("zod").ZodString>;
101
508
  reference: import("zod").ZodOptional<import("zod").ZodString>;
102
- dateFrom: import("zod").ZodOptional<import("zod").ZodString>;
103
- dateTo: import("zod").ZodOptional<import("zod").ZodString>;
104
- pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
105
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>>, object, {
509
+ currencyCode: import("zod").ZodOptional<import("zod").ZodString>;
510
+ brandingThemeId: import("zod").ZodOptional<import("zod").ZodString>;
511
+ lineItems: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
512
+ Description: import("zod").ZodString;
513
+ Quantity: import("zod").ZodOptional<import("zod").ZodNumber>;
514
+ UnitAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
515
+ AccountCode: import("zod").ZodOptional<import("zod").ZodString>;
516
+ ItemCode: import("zod").ZodOptional<import("zod").ZodString>;
517
+ TaxType: import("zod").ZodOptional<import("zod").ZodString>;
518
+ DiscountRate: import("zod").ZodOptional<import("zod").ZodNumber>;
519
+ LineItemID: import("zod").ZodOptional<import("zod").ZodString>;
520
+ }, import("zod/v4/core").$strip>>>;
521
+ tenantId: import("zod").ZodString;
522
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
523
+ webhookKey?: string | undefined;
524
+ }, {
106
525
  listTenants: (signal?: AbortSignal) => Promise<{
107
526
  tenantId: string;
108
527
  tenantName: string;
@@ -118,15 +537,30 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
118
537
  base?: "accounting" | "connections" | "identity" | "projects";
119
538
  }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
120
539
  }, {
121
- nextPage: number;
122
- seenIds: string[];
123
- values: Record<string, number | boolean>;
124
- modifiedAfter?: string | undefined;
125
- windowStarted?: string | undefined;
126
- }> | import("frogbot/pieces").PieceAppTrigger<import("zod").ZodObject<{
540
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
541
+ }> & {
542
+ slug: "createCreditNote";
543
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
544
+ code: import("zod").ZodString;
545
+ name: import("zod").ZodOptional<import("zod").ZodString>;
546
+ description: import("zod").ZodOptional<import("zod").ZodString>;
547
+ purchaseDescription: import("zod").ZodOptional<import("zod").ZodString>;
548
+ isSold: import("zod").ZodDefault<import("zod").ZodBoolean>;
549
+ isPurchased: import("zod").ZodDefault<import("zod").ZodBoolean>;
550
+ salesDetails: import("zod").ZodOptional<import("zod").ZodObject<{
551
+ UnitPrice: import("zod").ZodNumber;
552
+ }, import("zod/v4/core").$strip>>;
553
+ purchaseDetails: import("zod").ZodOptional<import("zod").ZodObject<{
554
+ UnitPrice: import("zod").ZodNumber;
555
+ }, import("zod/v4/core").$strip>>;
556
+ salesAccountId: import("zod").ZodOptional<import("zod").ZodString>;
557
+ purchaseAccountId: import("zod").ZodOptional<import("zod").ZodString>;
558
+ cogsAccountId: import("zod").ZodOptional<import("zod").ZodString>;
559
+ inventoryAssetAccountId: import("zod").ZodOptional<import("zod").ZodString>;
127
560
  tenantId: import("zod").ZodString;
128
- fetchFullRecord: import("zod").ZodDefault<import("zod").ZodBoolean>;
129
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>>, object, {
561
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
562
+ webhookKey?: string | undefined;
563
+ }, {
130
564
  listTenants: (signal?: AbortSignal) => Promise<{
131
565
  tenantId: string;
132
566
  tenantName: string;
@@ -141,7 +575,1057 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
141
575
  signal?: AbortSignal;
142
576
  base?: "accounting" | "connections" | "identity" | "projects";
143
577
  }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
144
- }>)[];
578
+ }, {
579
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
580
+ }> & {
581
+ slug: "createItem";
582
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
583
+ contactId: import("zod").ZodString;
584
+ name: import("zod").ZodString;
585
+ deadlineUtc: import("zod").ZodOptional<import("zod").ZodString>;
586
+ estimateAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
587
+ tenantId: import("zod").ZodString;
588
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
589
+ webhookKey?: string | undefined;
590
+ }, {
591
+ listTenants: (signal?: AbortSignal) => Promise<{
592
+ tenantId: string;
593
+ tenantName: string;
594
+ }[]>;
595
+ request: <TSchema extends import("zod").ZodType>(input: {
596
+ path: string;
597
+ tenantId?: string;
598
+ method?: "DELETE" | "GET" | "POST" | "PUT";
599
+ body?: BodyInit | import("./client.js").XeroJSON;
600
+ headers?: Record<string, string>;
601
+ query?: Record<string, boolean | number | string | undefined>;
602
+ signal?: AbortSignal;
603
+ base?: "accounting" | "connections" | "identity" | "projects";
604
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
605
+ }, {
606
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
607
+ }> & {
608
+ slug: "createProject";
609
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
610
+ invoiceId: import("zod").ZodString;
611
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
612
+ dueDate: import("zod").ZodOptional<import("zod").ZodString>;
613
+ invoiceNumber: import("zod").ZodOptional<import("zod").ZodString>;
614
+ brandingThemeId: import("zod").ZodOptional<import("zod").ZodString>;
615
+ url: import("zod").ZodOptional<import("zod").ZodString>;
616
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
617
+ status: import("zod").ZodOptional<import("zod").ZodEnum<{
618
+ DRAFT: "DRAFT";
619
+ SUBMITTED: "SUBMITTED";
620
+ AUTHORISED: "AUTHORISED";
621
+ DELETED: "DELETED";
622
+ VOIDED: "VOIDED";
623
+ }>>;
624
+ sentToContact: import("zod").ZodDefault<import("zod").ZodBoolean>;
625
+ replaceAllLineItems: import("zod").ZodDefault<import("zod").ZodBoolean>;
626
+ lineItems: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
627
+ Description: import("zod").ZodString;
628
+ Quantity: import("zod").ZodOptional<import("zod").ZodNumber>;
629
+ UnitAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
630
+ AccountCode: import("zod").ZodOptional<import("zod").ZodString>;
631
+ ItemCode: import("zod").ZodOptional<import("zod").ZodString>;
632
+ TaxType: import("zod").ZodOptional<import("zod").ZodString>;
633
+ DiscountRate: import("zod").ZodOptional<import("zod").ZodNumber>;
634
+ LineItemID: import("zod").ZodOptional<import("zod").ZodString>;
635
+ }, import("zod/v4/core").$strip>>>;
636
+ tenantId: import("zod").ZodString;
637
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
638
+ webhookKey?: string | undefined;
639
+ }, {
640
+ listTenants: (signal?: AbortSignal) => Promise<{
641
+ tenantId: string;
642
+ tenantName: string;
643
+ }[]>;
644
+ request: <TSchema extends import("zod").ZodType>(input: {
645
+ path: string;
646
+ tenantId?: string;
647
+ method?: "DELETE" | "GET" | "POST" | "PUT";
648
+ body?: BodyInit | import("./client.js").XeroJSON;
649
+ headers?: Record<string, string>;
650
+ query?: Record<string, boolean | number | string | undefined>;
651
+ signal?: AbortSignal;
652
+ base?: "accounting" | "connections" | "identity" | "projects";
653
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
654
+ }, {
655
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
656
+ }> & {
657
+ slug: "updateInvoice";
658
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
659
+ contactId: import("zod").ZodString;
660
+ schedulePeriod: import("zod").ZodNumber;
661
+ scheduleUnit: import("zod").ZodEnum<{
662
+ WEEKLY: "WEEKLY";
663
+ MONTHLY: "MONTHLY";
664
+ }>;
665
+ dueDate: import("zod").ZodNumber;
666
+ dueDateType: import("zod").ZodEnum<{
667
+ OFCURRENTMONTH: "OFCURRENTMONTH";
668
+ OFFOLLOWINGMONTH: "OFFOLLOWINGMONTH";
669
+ DAYSAFTERBILLDATE: "DAYSAFTERBILLDATE";
670
+ DAYSAFTERBILLMONTH: "DAYSAFTERBILLMONTH";
671
+ }>;
672
+ startDate: import("zod").ZodString;
673
+ endDate: import("zod").ZodOptional<import("zod").ZodString>;
674
+ lineAmountTypes: import("zod").ZodDefault<import("zod").ZodEnum<{
675
+ Exclusive: "Exclusive";
676
+ Inclusive: "Inclusive";
677
+ NoTax: "NoTax";
678
+ }>>;
679
+ currencyCode: import("zod").ZodString;
680
+ status: import("zod").ZodDefault<import("zod").ZodEnum<{
681
+ DRAFT: "DRAFT";
682
+ AUTHORISED: "AUTHORISED";
683
+ }>>;
684
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
685
+ brandingThemeId: import("zod").ZodOptional<import("zod").ZodString>;
686
+ approvedForSending: import("zod").ZodDefault<import("zod").ZodBoolean>;
687
+ sendCopy: import("zod").ZodDefault<import("zod").ZodBoolean>;
688
+ markAsSent: import("zod").ZodDefault<import("zod").ZodBoolean>;
689
+ includePdf: import("zod").ZodDefault<import("zod").ZodBoolean>;
690
+ lineItems: import("zod").ZodArray<import("zod").ZodObject<{
691
+ Description: import("zod").ZodString;
692
+ Quantity: import("zod").ZodOptional<import("zod").ZodNumber>;
693
+ UnitAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
694
+ AccountCode: import("zod").ZodOptional<import("zod").ZodString>;
695
+ ItemCode: import("zod").ZodOptional<import("zod").ZodString>;
696
+ TaxType: import("zod").ZodOptional<import("zod").ZodString>;
697
+ DiscountRate: import("zod").ZodOptional<import("zod").ZodNumber>;
698
+ LineItemID: import("zod").ZodOptional<import("zod").ZodString>;
699
+ }, import("zod/v4/core").$strip>>;
700
+ tenantId: import("zod").ZodString;
701
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
702
+ webhookKey?: string | undefined;
703
+ }, {
704
+ listTenants: (signal?: AbortSignal) => Promise<{
705
+ tenantId: string;
706
+ tenantName: string;
707
+ }[]>;
708
+ request: <TSchema extends import("zod").ZodType>(input: {
709
+ path: string;
710
+ tenantId?: string;
711
+ method?: "DELETE" | "GET" | "POST" | "PUT";
712
+ body?: BodyInit | import("./client.js").XeroJSON;
713
+ headers?: Record<string, string>;
714
+ query?: Record<string, boolean | number | string | undefined>;
715
+ signal?: AbortSignal;
716
+ base?: "accounting" | "connections" | "identity" | "projects";
717
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
718
+ }, {
719
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
720
+ }> & {
721
+ slug: "createRepeatingInvoice";
722
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
723
+ searchBy: import("zod").ZodString;
724
+ value: import("zod").ZodString;
725
+ page: import("zod").ZodOptional<import("zod").ZodNumber>;
726
+ tenantId: import("zod").ZodString;
727
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
728
+ webhookKey?: string | undefined;
729
+ }, {
730
+ listTenants: (signal?: AbortSignal) => Promise<{
731
+ tenantId: string;
732
+ tenantName: string;
733
+ }[]>;
734
+ request: <TSchema extends import("zod").ZodType>(input: {
735
+ path: string;
736
+ tenantId?: string;
737
+ method?: "DELETE" | "GET" | "POST" | "PUT";
738
+ body?: BodyInit | import("./client.js").XeroJSON;
739
+ headers?: Record<string, string>;
740
+ query?: Record<string, boolean | number | string | undefined>;
741
+ signal?: AbortSignal;
742
+ base?: "accounting" | "connections" | "identity" | "projects";
743
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
744
+ }, {
745
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
746
+ }> & {
747
+ slug: "findContact";
748
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
749
+ searchBy: import("zod").ZodString;
750
+ value: import("zod").ZodString;
751
+ page: import("zod").ZodOptional<import("zod").ZodNumber>;
752
+ tenantId: import("zod").ZodString;
753
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
754
+ webhookKey?: string | undefined;
755
+ }, {
756
+ listTenants: (signal?: AbortSignal) => Promise<{
757
+ tenantId: string;
758
+ tenantName: string;
759
+ }[]>;
760
+ request: <TSchema extends import("zod").ZodType>(input: {
761
+ path: string;
762
+ tenantId?: string;
763
+ method?: "DELETE" | "GET" | "POST" | "PUT";
764
+ body?: BodyInit | import("./client.js").XeroJSON;
765
+ headers?: Record<string, string>;
766
+ query?: Record<string, boolean | number | string | undefined>;
767
+ signal?: AbortSignal;
768
+ base?: "accounting" | "connections" | "identity" | "projects";
769
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
770
+ }, {
771
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
772
+ }> & {
773
+ slug: "findInvoice";
774
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
775
+ searchBy: import("zod").ZodString;
776
+ value: import("zod").ZodString;
777
+ page: import("zod").ZodOptional<import("zod").ZodNumber>;
778
+ tenantId: import("zod").ZodString;
779
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
780
+ webhookKey?: string | undefined;
781
+ }, {
782
+ listTenants: (signal?: AbortSignal) => Promise<{
783
+ tenantId: string;
784
+ tenantName: string;
785
+ }[]>;
786
+ request: <TSchema extends import("zod").ZodType>(input: {
787
+ path: string;
788
+ tenantId?: string;
789
+ method?: "DELETE" | "GET" | "POST" | "PUT";
790
+ body?: BodyInit | import("./client.js").XeroJSON;
791
+ headers?: Record<string, string>;
792
+ query?: Record<string, boolean | number | string | undefined>;
793
+ signal?: AbortSignal;
794
+ base?: "accounting" | "connections" | "identity" | "projects";
795
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
796
+ }, {
797
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
798
+ }> & {
799
+ slug: "findItem";
800
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
801
+ searchBy: import("zod").ZodString;
802
+ value: import("zod").ZodString;
803
+ page: import("zod").ZodOptional<import("zod").ZodNumber>;
804
+ tenantId: import("zod").ZodString;
805
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
806
+ webhookKey?: string | undefined;
807
+ }, {
808
+ listTenants: (signal?: AbortSignal) => Promise<{
809
+ tenantId: string;
810
+ tenantName: string;
811
+ }[]>;
812
+ request: <TSchema extends import("zod").ZodType>(input: {
813
+ path: string;
814
+ tenantId?: string;
815
+ method?: "DELETE" | "GET" | "POST" | "PUT";
816
+ body?: BodyInit | import("./client.js").XeroJSON;
817
+ headers?: Record<string, string>;
818
+ query?: Record<string, boolean | number | string | undefined>;
819
+ signal?: AbortSignal;
820
+ base?: "accounting" | "connections" | "identity" | "projects";
821
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
822
+ }, {
823
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
824
+ }> & {
825
+ slug: "findPurchaseOrder";
826
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
827
+ invoiceId: import("zod").ZodString;
828
+ tenantId: import("zod").ZodString;
829
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
830
+ webhookKey?: string | undefined;
831
+ }, {
832
+ listTenants: (signal?: AbortSignal) => Promise<{
833
+ tenantId: string;
834
+ tenantName: string;
835
+ }[]>;
836
+ request: <TSchema extends import("zod").ZodType>(input: {
837
+ path: string;
838
+ tenantId?: string;
839
+ method?: "DELETE" | "GET" | "POST" | "PUT";
840
+ body?: BodyInit | import("./client.js").XeroJSON;
841
+ headers?: Record<string, string>;
842
+ query?: Record<string, boolean | number | string | undefined>;
843
+ signal?: AbortSignal;
844
+ base?: "accounting" | "connections" | "identity" | "projects";
845
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
846
+ }, {
847
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
848
+ }> & {
849
+ slug: "getInvoiceHistory";
850
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
851
+ type: import("zod").ZodDefault<import("zod").ZodEnum<{
852
+ SPEND: "SPEND";
853
+ RECEIVE: "RECEIVE";
854
+ }>>;
855
+ contactId: import("zod").ZodString;
856
+ bankAccountId: import("zod").ZodString;
857
+ lineItem: import("zod").ZodObject<{
858
+ Description: import("zod").ZodString;
859
+ Quantity: import("zod").ZodOptional<import("zod").ZodNumber>;
860
+ UnitAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
861
+ AccountCode: import("zod").ZodOptional<import("zod").ZodString>;
862
+ ItemCode: import("zod").ZodOptional<import("zod").ZodString>;
863
+ TaxType: import("zod").ZodOptional<import("zod").ZodString>;
864
+ DiscountRate: import("zod").ZodOptional<import("zod").ZodNumber>;
865
+ LineItemID: import("zod").ZodOptional<import("zod").ZodString>;
866
+ }, import("zod/v4/core").$strip>;
867
+ date: import("zod").ZodOptional<import("zod").ZodString>;
868
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
869
+ lineAmountTypes: import("zod").ZodOptional<import("zod").ZodEnum<{
870
+ Exclusive: "Exclusive";
871
+ Inclusive: "Inclusive";
872
+ NoTax: "NoTax";
873
+ }>>;
874
+ isReconciled: import("zod").ZodDefault<import("zod").ZodBoolean>;
875
+ tenantId: import("zod").ZodString;
876
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
877
+ webhookKey?: string | undefined;
878
+ }, {
879
+ listTenants: (signal?: AbortSignal) => Promise<{
880
+ tenantId: string;
881
+ tenantName: string;
882
+ }[]>;
883
+ request: <TSchema extends import("zod").ZodType>(input: {
884
+ path: string;
885
+ tenantId?: string;
886
+ method?: "DELETE" | "GET" | "POST" | "PUT";
887
+ body?: BodyInit | import("./client.js").XeroJSON;
888
+ headers?: Record<string, string>;
889
+ query?: Record<string, boolean | number | string | undefined>;
890
+ signal?: AbortSignal;
891
+ base?: "accounting" | "connections" | "identity" | "projects";
892
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
893
+ }, {
894
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
895
+ }> & {
896
+ slug: "createBankTransaction";
897
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
898
+ email: import("zod").ZodOptional<import("zod").ZodString>;
899
+ tenantId: import("zod").ZodString;
900
+ name: import("zod").ZodString;
901
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
902
+ webhookKey?: string | undefined;
903
+ }, {
904
+ listTenants: (signal?: AbortSignal) => Promise<{
905
+ tenantId: string;
906
+ tenantName: string;
907
+ }[]>;
908
+ request: <TSchema extends import("zod").ZodType>(input: {
909
+ path: string;
910
+ tenantId?: string;
911
+ method?: "DELETE" | "GET" | "POST" | "PUT";
912
+ body?: BodyInit | import("./client.js").XeroJSON;
913
+ headers?: Record<string, string>;
914
+ query?: Record<string, boolean | number | string | undefined>;
915
+ signal?: AbortSignal;
916
+ base?: "accounting" | "connections" | "identity" | "projects";
917
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
918
+ }, {
919
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
920
+ }> & {
921
+ slug: "findOrCreateContact";
922
+ }) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
923
+ method: import("zod").ZodEnum<{
924
+ DELETE: "DELETE";
925
+ GET: "GET";
926
+ POST: "POST";
927
+ PUT: "PUT";
928
+ }>;
929
+ path: import("zod").ZodString;
930
+ query: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>>;
931
+ body: import("zod").ZodOptional<import("zod").ZodJSONSchema>;
932
+ tenantId: import("zod").ZodString;
933
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
934
+ webhookKey?: string | undefined;
935
+ }, {
936
+ listTenants: (signal?: AbortSignal) => Promise<{
937
+ tenantId: string;
938
+ tenantName: string;
939
+ }[]>;
940
+ request: <TSchema extends import("zod").ZodType>(input: {
941
+ path: string;
942
+ tenantId?: string;
943
+ method?: "DELETE" | "GET" | "POST" | "PUT";
944
+ body?: BodyInit | import("./client.js").XeroJSON;
945
+ headers?: Record<string, string>;
946
+ query?: Record<string, boolean | number | string | undefined>;
947
+ signal?: AbortSignal;
948
+ base?: "accounting" | "connections" | "identity" | "projects";
949
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
950
+ }, {
951
+ [x: string]: import("zod").JSONType | import("zod").JSONType[];
952
+ }> & {
953
+ slug: "customApiCall";
954
+ }))[];
955
+ readonly triggers: (({
956
+ slug: string;
957
+ label?: string;
958
+ description: string;
959
+ input: import("zod").ZodObject<{
960
+ tenantId: import("zod").ZodString;
961
+ fetchFullRecord: import("zod").ZodDefault<import("zod").ZodBoolean>;
962
+ }, import("zod/v4/core").$strip>;
963
+ output?: import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>> | undefined;
964
+ sample?: {
965
+ [x: string]: import("zod").JSONType;
966
+ } | undefined;
967
+ } & {
968
+ type: "app";
969
+ event: string;
970
+ run(args: import("frogbot/pieces").PieceRunArgs<{
971
+ tenantId: string;
972
+ fetchFullRecord: boolean;
973
+ }, {
974
+ webhookKey?: string | undefined;
975
+ }, {
976
+ listTenants: (signal?: AbortSignal) => Promise<{
977
+ tenantId: string;
978
+ tenantName: string;
979
+ }[]>;
980
+ request: <TSchema extends import("zod").ZodType>(input: {
981
+ path: string;
982
+ tenantId?: string;
983
+ method?: "DELETE" | "GET" | "POST" | "PUT";
984
+ body?: BodyInit | import("./client.js").XeroJSON;
985
+ headers?: Record<string, string>;
986
+ query?: Record<string, boolean | number | string | undefined>;
987
+ signal?: AbortSignal;
988
+ base?: "accounting" | "connections" | "identity" | "projects";
989
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
990
+ }>): Promise<import("frogbot/pieces").TriggerEvent<{
991
+ [x: string]: import("zod").JSONType;
992
+ }>[]>;
993
+ } & {
994
+ slug: "contactCreated";
995
+ }) | ({
996
+ slug: string;
997
+ label?: string;
998
+ description: string;
999
+ input: import("zod").ZodObject<{
1000
+ tenantId: import("zod").ZodString;
1001
+ fetchFullRecord: import("zod").ZodDefault<import("zod").ZodBoolean>;
1002
+ }, import("zod/v4/core").$strip>;
1003
+ output?: import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>> | undefined;
1004
+ sample?: {
1005
+ [x: string]: import("zod").JSONType;
1006
+ } | undefined;
1007
+ } & {
1008
+ type: "app";
1009
+ event: string;
1010
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1011
+ tenantId: string;
1012
+ fetchFullRecord: boolean;
1013
+ }, {
1014
+ webhookKey?: string | undefined;
1015
+ }, {
1016
+ listTenants: (signal?: AbortSignal) => Promise<{
1017
+ tenantId: string;
1018
+ tenantName: string;
1019
+ }[]>;
1020
+ request: <TSchema extends import("zod").ZodType>(input: {
1021
+ path: string;
1022
+ tenantId?: string;
1023
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1024
+ body?: BodyInit | import("./client.js").XeroJSON;
1025
+ headers?: Record<string, string>;
1026
+ query?: Record<string, boolean | number | string | undefined>;
1027
+ signal?: AbortSignal;
1028
+ base?: "accounting" | "connections" | "identity" | "projects";
1029
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1030
+ }>): Promise<import("frogbot/pieces").TriggerEvent<{
1031
+ [x: string]: import("zod").JSONType;
1032
+ }>[]>;
1033
+ } & {
1034
+ slug: "contactCreatedOrUpdated";
1035
+ }) | ({
1036
+ slug: string;
1037
+ label?: string;
1038
+ description: string;
1039
+ input: import("zod").ZodObject<{
1040
+ tenantId: import("zod").ZodString;
1041
+ fetchFullRecord: import("zod").ZodDefault<import("zod").ZodBoolean>;
1042
+ }, import("zod/v4/core").$strip>;
1043
+ output?: import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>> | undefined;
1044
+ sample?: {
1045
+ [x: string]: import("zod").JSONType;
1046
+ } | undefined;
1047
+ } & {
1048
+ type: "app";
1049
+ event: string;
1050
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1051
+ tenantId: string;
1052
+ fetchFullRecord: boolean;
1053
+ }, {
1054
+ webhookKey?: string | undefined;
1055
+ }, {
1056
+ listTenants: (signal?: AbortSignal) => Promise<{
1057
+ tenantId: string;
1058
+ tenantName: string;
1059
+ }[]>;
1060
+ request: <TSchema extends import("zod").ZodType>(input: {
1061
+ path: string;
1062
+ tenantId?: string;
1063
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1064
+ body?: BodyInit | import("./client.js").XeroJSON;
1065
+ headers?: Record<string, string>;
1066
+ query?: Record<string, boolean | number | string | undefined>;
1067
+ signal?: AbortSignal;
1068
+ base?: "accounting" | "connections" | "identity" | "projects";
1069
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1070
+ }>): Promise<import("frogbot/pieces").TriggerEvent<{
1071
+ [x: string]: import("zod").JSONType;
1072
+ }>[]>;
1073
+ } & {
1074
+ slug: "salesInvoiceCreated";
1075
+ }) | ({
1076
+ slug: string;
1077
+ label?: string;
1078
+ description: string;
1079
+ input: import("zod").ZodObject<{
1080
+ tenantId: import("zod").ZodString;
1081
+ fetchFullRecord: import("zod").ZodDefault<import("zod").ZodBoolean>;
1082
+ }, import("zod/v4/core").$strip>;
1083
+ output?: import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>> | undefined;
1084
+ sample?: {
1085
+ [x: string]: import("zod").JSONType;
1086
+ } | undefined;
1087
+ } & {
1088
+ type: "app";
1089
+ event: string;
1090
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1091
+ tenantId: string;
1092
+ fetchFullRecord: boolean;
1093
+ }, {
1094
+ webhookKey?: string | undefined;
1095
+ }, {
1096
+ listTenants: (signal?: AbortSignal) => Promise<{
1097
+ tenantId: string;
1098
+ tenantName: string;
1099
+ }[]>;
1100
+ request: <TSchema extends import("zod").ZodType>(input: {
1101
+ path: string;
1102
+ tenantId?: string;
1103
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1104
+ body?: BodyInit | import("./client.js").XeroJSON;
1105
+ headers?: Record<string, string>;
1106
+ query?: Record<string, boolean | number | string | undefined>;
1107
+ signal?: AbortSignal;
1108
+ base?: "accounting" | "connections" | "identity" | "projects";
1109
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1110
+ }>): Promise<import("frogbot/pieces").TriggerEvent<{
1111
+ [x: string]: import("zod").JSONType;
1112
+ }>[]>;
1113
+ } & {
1114
+ slug: "salesInvoiceUpdated";
1115
+ }) | ({
1116
+ slug: string;
1117
+ label?: string;
1118
+ description: string;
1119
+ input: import("zod").ZodObject<{
1120
+ tenantId: import("zod").ZodString;
1121
+ statuses: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1122
+ types: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1123
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
1124
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
1125
+ dateFrom: import("zod").ZodOptional<import("zod").ZodString>;
1126
+ dateTo: import("zod").ZodOptional<import("zod").ZodString>;
1127
+ pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
1128
+ }, import("zod/v4/core").$strip>;
1129
+ output?: import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>> | undefined;
1130
+ sample?: {
1131
+ [x: string]: import("zod").JSONType;
1132
+ } | undefined;
1133
+ } & {
1134
+ type: "polling";
1135
+ schedule?: string;
1136
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1137
+ tenantId: string;
1138
+ statuses: string[];
1139
+ types: string[];
1140
+ pageSize: number;
1141
+ contactId?: string | undefined;
1142
+ reference?: string | undefined;
1143
+ dateFrom?: string | undefined;
1144
+ dateTo?: string | undefined;
1145
+ }, {
1146
+ webhookKey?: string | undefined;
1147
+ }, {
1148
+ listTenants: (signal?: AbortSignal) => Promise<{
1149
+ tenantId: string;
1150
+ tenantName: string;
1151
+ }[]>;
1152
+ request: <TSchema extends import("zod").ZodType>(input: {
1153
+ path: string;
1154
+ tenantId?: string;
1155
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1156
+ body?: BodyInit | import("./client.js").XeroJSON;
1157
+ headers?: Record<string, string>;
1158
+ query?: Record<string, boolean | number | string | undefined>;
1159
+ signal?: AbortSignal;
1160
+ base?: "accounting" | "connections" | "identity" | "projects";
1161
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1162
+ }> & {
1163
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1164
+ }): Promise<{
1165
+ events: {
1166
+ [x: string]: import("zod").JSONType;
1167
+ }[];
1168
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1169
+ }>;
1170
+ } & {
1171
+ slug: "bankTransactionCreated";
1172
+ }) | ({
1173
+ slug: string;
1174
+ label?: string;
1175
+ description: string;
1176
+ input: import("zod").ZodObject<{
1177
+ tenantId: import("zod").ZodString;
1178
+ statuses: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1179
+ types: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1180
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
1181
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
1182
+ dateFrom: import("zod").ZodOptional<import("zod").ZodString>;
1183
+ dateTo: import("zod").ZodOptional<import("zod").ZodString>;
1184
+ pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
1185
+ }, import("zod/v4/core").$strip>;
1186
+ output?: import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>> | undefined;
1187
+ sample?: {
1188
+ [x: string]: import("zod").JSONType;
1189
+ } | undefined;
1190
+ } & {
1191
+ type: "polling";
1192
+ schedule?: string;
1193
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1194
+ tenantId: string;
1195
+ statuses: string[];
1196
+ types: string[];
1197
+ pageSize: number;
1198
+ contactId?: string | undefined;
1199
+ reference?: string | undefined;
1200
+ dateFrom?: string | undefined;
1201
+ dateTo?: string | undefined;
1202
+ }, {
1203
+ webhookKey?: string | undefined;
1204
+ }, {
1205
+ listTenants: (signal?: AbortSignal) => Promise<{
1206
+ tenantId: string;
1207
+ tenantName: string;
1208
+ }[]>;
1209
+ request: <TSchema extends import("zod").ZodType>(input: {
1210
+ path: string;
1211
+ tenantId?: string;
1212
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1213
+ body?: BodyInit | import("./client.js").XeroJSON;
1214
+ headers?: Record<string, string>;
1215
+ query?: Record<string, boolean | number | string | undefined>;
1216
+ signal?: AbortSignal;
1217
+ base?: "accounting" | "connections" | "identity" | "projects";
1218
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1219
+ }> & {
1220
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1221
+ }): Promise<{
1222
+ events: {
1223
+ [x: string]: import("zod").JSONType;
1224
+ }[];
1225
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1226
+ }>;
1227
+ } & {
1228
+ slug: "paymentCreated";
1229
+ }) | ({
1230
+ slug: string;
1231
+ label?: string;
1232
+ description: string;
1233
+ input: import("zod").ZodObject<{
1234
+ tenantId: import("zod").ZodString;
1235
+ statuses: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1236
+ types: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1237
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
1238
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
1239
+ dateFrom: import("zod").ZodOptional<import("zod").ZodString>;
1240
+ dateTo: import("zod").ZodOptional<import("zod").ZodString>;
1241
+ pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
1242
+ }, import("zod/v4/core").$strip>;
1243
+ output?: import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>> | undefined;
1244
+ sample?: {
1245
+ [x: string]: import("zod").JSONType;
1246
+ } | undefined;
1247
+ } & {
1248
+ type: "polling";
1249
+ schedule?: string;
1250
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1251
+ tenantId: string;
1252
+ statuses: string[];
1253
+ types: string[];
1254
+ pageSize: number;
1255
+ contactId?: string | undefined;
1256
+ reference?: string | undefined;
1257
+ dateFrom?: string | undefined;
1258
+ dateTo?: string | undefined;
1259
+ }, {
1260
+ webhookKey?: string | undefined;
1261
+ }, {
1262
+ listTenants: (signal?: AbortSignal) => Promise<{
1263
+ tenantId: string;
1264
+ tenantName: string;
1265
+ }[]>;
1266
+ request: <TSchema extends import("zod").ZodType>(input: {
1267
+ path: string;
1268
+ tenantId?: string;
1269
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1270
+ body?: BodyInit | import("./client.js").XeroJSON;
1271
+ headers?: Record<string, string>;
1272
+ query?: Record<string, boolean | number | string | undefined>;
1273
+ signal?: AbortSignal;
1274
+ base?: "accounting" | "connections" | "identity" | "projects";
1275
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1276
+ }> & {
1277
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1278
+ }): Promise<{
1279
+ events: {
1280
+ [x: string]: import("zod").JSONType;
1281
+ }[];
1282
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1283
+ }>;
1284
+ } & {
1285
+ slug: "purchaseOrderCreated";
1286
+ }) | ({
1287
+ slug: string;
1288
+ label?: string;
1289
+ description: string;
1290
+ input: import("zod").ZodObject<{
1291
+ tenantId: import("zod").ZodString;
1292
+ statuses: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1293
+ types: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1294
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
1295
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
1296
+ dateFrom: import("zod").ZodOptional<import("zod").ZodString>;
1297
+ dateTo: import("zod").ZodOptional<import("zod").ZodString>;
1298
+ pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
1299
+ }, import("zod/v4/core").$strip>;
1300
+ output?: import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>> | undefined;
1301
+ sample?: {
1302
+ [x: string]: import("zod").JSONType;
1303
+ } | undefined;
1304
+ } & {
1305
+ type: "polling";
1306
+ schedule?: string;
1307
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1308
+ tenantId: string;
1309
+ statuses: string[];
1310
+ types: string[];
1311
+ pageSize: number;
1312
+ contactId?: string | undefined;
1313
+ reference?: string | undefined;
1314
+ dateFrom?: string | undefined;
1315
+ dateTo?: string | undefined;
1316
+ }, {
1317
+ webhookKey?: string | undefined;
1318
+ }, {
1319
+ listTenants: (signal?: AbortSignal) => Promise<{
1320
+ tenantId: string;
1321
+ tenantName: string;
1322
+ }[]>;
1323
+ request: <TSchema extends import("zod").ZodType>(input: {
1324
+ path: string;
1325
+ tenantId?: string;
1326
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1327
+ body?: BodyInit | import("./client.js").XeroJSON;
1328
+ headers?: Record<string, string>;
1329
+ query?: Record<string, boolean | number | string | undefined>;
1330
+ signal?: AbortSignal;
1331
+ base?: "accounting" | "connections" | "identity" | "projects";
1332
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1333
+ }> & {
1334
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1335
+ }): Promise<{
1336
+ events: {
1337
+ [x: string]: import("zod").JSONType;
1338
+ }[];
1339
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1340
+ }>;
1341
+ } & {
1342
+ slug: "paymentReconciled";
1343
+ }) | ({
1344
+ slug: string;
1345
+ label?: string;
1346
+ description: string;
1347
+ input: import("zod").ZodObject<{
1348
+ tenantId: import("zod").ZodString;
1349
+ statuses: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1350
+ types: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1351
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
1352
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
1353
+ dateFrom: import("zod").ZodOptional<import("zod").ZodString>;
1354
+ dateTo: import("zod").ZodOptional<import("zod").ZodString>;
1355
+ pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
1356
+ }, import("zod/v4/core").$strip>;
1357
+ output?: import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>> | undefined;
1358
+ sample?: {
1359
+ [x: string]: import("zod").JSONType;
1360
+ } | undefined;
1361
+ } & {
1362
+ type: "polling";
1363
+ schedule?: string;
1364
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1365
+ tenantId: string;
1366
+ statuses: string[];
1367
+ types: string[];
1368
+ pageSize: number;
1369
+ contactId?: string | undefined;
1370
+ reference?: string | undefined;
1371
+ dateFrom?: string | undefined;
1372
+ dateTo?: string | undefined;
1373
+ }, {
1374
+ webhookKey?: string | undefined;
1375
+ }, {
1376
+ listTenants: (signal?: AbortSignal) => Promise<{
1377
+ tenantId: string;
1378
+ tenantName: string;
1379
+ }[]>;
1380
+ request: <TSchema extends import("zod").ZodType>(input: {
1381
+ path: string;
1382
+ tenantId?: string;
1383
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1384
+ body?: BodyInit | import("./client.js").XeroJSON;
1385
+ headers?: Record<string, string>;
1386
+ query?: Record<string, boolean | number | string | undefined>;
1387
+ signal?: AbortSignal;
1388
+ base?: "accounting" | "connections" | "identity" | "projects";
1389
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1390
+ }> & {
1391
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1392
+ }): Promise<{
1393
+ events: {
1394
+ [x: string]: import("zod").JSONType;
1395
+ }[];
1396
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1397
+ }>;
1398
+ } & {
1399
+ slug: "quoteUpdated";
1400
+ }) | ({
1401
+ slug: string;
1402
+ label?: string;
1403
+ description: string;
1404
+ input: import("zod").ZodObject<{
1405
+ tenantId: import("zod").ZodString;
1406
+ statuses: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1407
+ types: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1408
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
1409
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
1410
+ dateFrom: import("zod").ZodOptional<import("zod").ZodString>;
1411
+ dateTo: import("zod").ZodOptional<import("zod").ZodString>;
1412
+ pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
1413
+ }, import("zod/v4/core").$strip>;
1414
+ output?: import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>> | undefined;
1415
+ sample?: {
1416
+ [x: string]: import("zod").JSONType;
1417
+ } | undefined;
1418
+ } & {
1419
+ type: "polling";
1420
+ schedule?: string;
1421
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1422
+ tenantId: string;
1423
+ statuses: string[];
1424
+ types: string[];
1425
+ pageSize: number;
1426
+ contactId?: string | undefined;
1427
+ reference?: string | undefined;
1428
+ dateFrom?: string | undefined;
1429
+ dateTo?: string | undefined;
1430
+ }, {
1431
+ webhookKey?: string | undefined;
1432
+ }, {
1433
+ listTenants: (signal?: AbortSignal) => Promise<{
1434
+ tenantId: string;
1435
+ tenantName: string;
1436
+ }[]>;
1437
+ request: <TSchema extends import("zod").ZodType>(input: {
1438
+ path: string;
1439
+ tenantId?: string;
1440
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1441
+ body?: BodyInit | import("./client.js").XeroJSON;
1442
+ headers?: Record<string, string>;
1443
+ query?: Record<string, boolean | number | string | undefined>;
1444
+ signal?: AbortSignal;
1445
+ base?: "accounting" | "connections" | "identity" | "projects";
1446
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1447
+ }> & {
1448
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1449
+ }): Promise<{
1450
+ events: {
1451
+ [x: string]: import("zod").JSONType;
1452
+ }[];
1453
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1454
+ }>;
1455
+ } & {
1456
+ slug: "billCreated";
1457
+ }) | ({
1458
+ slug: string;
1459
+ label?: string;
1460
+ description: string;
1461
+ input: import("zod").ZodObject<{
1462
+ tenantId: import("zod").ZodString;
1463
+ statuses: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1464
+ types: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1465
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
1466
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
1467
+ dateFrom: import("zod").ZodOptional<import("zod").ZodString>;
1468
+ dateTo: import("zod").ZodOptional<import("zod").ZodString>;
1469
+ pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
1470
+ }, import("zod/v4/core").$strip>;
1471
+ output?: import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>> | undefined;
1472
+ sample?: {
1473
+ [x: string]: import("zod").JSONType;
1474
+ } | undefined;
1475
+ } & {
1476
+ type: "polling";
1477
+ schedule?: string;
1478
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1479
+ tenantId: string;
1480
+ statuses: string[];
1481
+ types: string[];
1482
+ pageSize: number;
1483
+ contactId?: string | undefined;
1484
+ reference?: string | undefined;
1485
+ dateFrom?: string | undefined;
1486
+ dateTo?: string | undefined;
1487
+ }, {
1488
+ webhookKey?: string | undefined;
1489
+ }, {
1490
+ listTenants: (signal?: AbortSignal) => Promise<{
1491
+ tenantId: string;
1492
+ tenantName: string;
1493
+ }[]>;
1494
+ request: <TSchema extends import("zod").ZodType>(input: {
1495
+ path: string;
1496
+ tenantId?: string;
1497
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1498
+ body?: BodyInit | import("./client.js").XeroJSON;
1499
+ headers?: Record<string, string>;
1500
+ query?: Record<string, boolean | number | string | undefined>;
1501
+ signal?: AbortSignal;
1502
+ base?: "accounting" | "connections" | "identity" | "projects";
1503
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1504
+ }> & {
1505
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1506
+ }): Promise<{
1507
+ events: {
1508
+ [x: string]: import("zod").JSONType;
1509
+ }[];
1510
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1511
+ }>;
1512
+ } & {
1513
+ slug: "creditNoteCreated";
1514
+ }) | ({
1515
+ slug: string;
1516
+ label?: string;
1517
+ description: string;
1518
+ input: import("zod").ZodObject<{
1519
+ tenantId: import("zod").ZodString;
1520
+ statuses: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1521
+ types: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1522
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
1523
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
1524
+ dateFrom: import("zod").ZodOptional<import("zod").ZodString>;
1525
+ dateTo: import("zod").ZodOptional<import("zod").ZodString>;
1526
+ pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
1527
+ }, import("zod/v4/core").$strip>;
1528
+ output?: import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>> | undefined;
1529
+ sample?: {
1530
+ [x: string]: import("zod").JSONType;
1531
+ } | undefined;
1532
+ } & {
1533
+ type: "polling";
1534
+ schedule?: string;
1535
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1536
+ tenantId: string;
1537
+ statuses: string[];
1538
+ types: string[];
1539
+ pageSize: number;
1540
+ contactId?: string | undefined;
1541
+ reference?: string | undefined;
1542
+ dateFrom?: string | undefined;
1543
+ dateTo?: string | undefined;
1544
+ }, {
1545
+ webhookKey?: string | undefined;
1546
+ }, {
1547
+ listTenants: (signal?: AbortSignal) => Promise<{
1548
+ tenantId: string;
1549
+ tenantName: string;
1550
+ }[]>;
1551
+ request: <TSchema extends import("zod").ZodType>(input: {
1552
+ path: string;
1553
+ tenantId?: string;
1554
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1555
+ body?: BodyInit | import("./client.js").XeroJSON;
1556
+ headers?: Record<string, string>;
1557
+ query?: Record<string, boolean | number | string | undefined>;
1558
+ signal?: AbortSignal;
1559
+ base?: "accounting" | "connections" | "identity" | "projects";
1560
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1561
+ }> & {
1562
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1563
+ }): Promise<{
1564
+ events: {
1565
+ [x: string]: import("zod").JSONType;
1566
+ }[];
1567
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1568
+ }>;
1569
+ } & {
1570
+ slug: "projectCreated";
1571
+ }) | ({
1572
+ slug: string;
1573
+ label?: string;
1574
+ description: string;
1575
+ input: import("zod").ZodObject<{
1576
+ tenantId: import("zod").ZodString;
1577
+ statuses: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1578
+ types: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
1579
+ contactId: import("zod").ZodOptional<import("zod").ZodString>;
1580
+ reference: import("zod").ZodOptional<import("zod").ZodString>;
1581
+ dateFrom: import("zod").ZodOptional<import("zod").ZodString>;
1582
+ dateTo: import("zod").ZodOptional<import("zod").ZodString>;
1583
+ pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
1584
+ }, import("zod/v4/core").$strip>;
1585
+ output?: import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodJSONSchema>> | undefined;
1586
+ sample?: {
1587
+ [x: string]: import("zod").JSONType;
1588
+ } | undefined;
1589
+ } & {
1590
+ type: "polling";
1591
+ schedule?: string;
1592
+ run(args: import("frogbot/pieces").PieceRunArgs<{
1593
+ tenantId: string;
1594
+ statuses: string[];
1595
+ types: string[];
1596
+ pageSize: number;
1597
+ contactId?: string | undefined;
1598
+ reference?: string | undefined;
1599
+ dateFrom?: string | undefined;
1600
+ dateTo?: string | undefined;
1601
+ }, {
1602
+ webhookKey?: string | undefined;
1603
+ }, {
1604
+ listTenants: (signal?: AbortSignal) => Promise<{
1605
+ tenantId: string;
1606
+ tenantName: string;
1607
+ }[]>;
1608
+ request: <TSchema extends import("zod").ZodType>(input: {
1609
+ path: string;
1610
+ tenantId?: string;
1611
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1612
+ body?: BodyInit | import("./client.js").XeroJSON;
1613
+ headers?: Record<string, string>;
1614
+ query?: Record<string, boolean | number | string | undefined>;
1615
+ signal?: AbortSignal;
1616
+ base?: "accounting" | "connections" | "identity" | "projects";
1617
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1618
+ }> & {
1619
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1620
+ }): Promise<{
1621
+ events: {
1622
+ [x: string]: import("zod").JSONType;
1623
+ }[];
1624
+ cursor?: import("frogbot/pieces").PieceJSON | undefined;
1625
+ }>;
1626
+ } & {
1627
+ slug: "quoteCreated";
1628
+ }))[];
145
1629
  }>;
146
1630
  export { xeroActions } from './actions.js';
147
1631
  export { xeroTriggers } from './triggers.js';