@armor/zuora-mcp 1.0.1

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.
@@ -0,0 +1,734 @@
1
+ /**
2
+ * MCP Tool Definitions for Zuora Billing Operations
3
+ * Provides account, invoice, subscription, payment, and ZOQL query tools
4
+ */
5
+ import { z } from "zod";
6
+ import type { ZuoraClient } from "./zuora-client.js";
7
+ import type { ToolResult } from "./types.js";
8
+ export declare const schemas: {
9
+ getAccount: z.ZodObject<{
10
+ accountKey: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ accountKey: string;
13
+ }, {
14
+ accountKey: string;
15
+ }>;
16
+ getAccountSummary: z.ZodObject<{
17
+ accountKey: z.ZodString;
18
+ }, "strip", z.ZodTypeAny, {
19
+ accountKey: string;
20
+ }, {
21
+ accountKey: string;
22
+ }>;
23
+ getInvoice: z.ZodObject<{
24
+ invoiceId: z.ZodString;
25
+ }, "strip", z.ZodTypeAny, {
26
+ invoiceId: string;
27
+ }, {
28
+ invoiceId: string;
29
+ }>;
30
+ listInvoices: z.ZodObject<{
31
+ accountKey: z.ZodString;
32
+ page: z.ZodDefault<z.ZodNumber>;
33
+ pageSize: z.ZodDefault<z.ZodNumber>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ accountKey: string;
36
+ page: number;
37
+ pageSize: number;
38
+ }, {
39
+ accountKey: string;
40
+ page?: number | undefined;
41
+ pageSize?: number | undefined;
42
+ }>;
43
+ getSubscription: z.ZodObject<{
44
+ subscriptionKey: z.ZodString;
45
+ }, "strip", z.ZodTypeAny, {
46
+ subscriptionKey: string;
47
+ }, {
48
+ subscriptionKey: string;
49
+ }>;
50
+ listSubscriptions: z.ZodObject<{
51
+ accountKey: z.ZodString;
52
+ }, "strip", z.ZodTypeAny, {
53
+ accountKey: string;
54
+ }, {
55
+ accountKey: string;
56
+ }>;
57
+ getPayment: z.ZodObject<{
58
+ paymentId: z.ZodString;
59
+ }, "strip", z.ZodTypeAny, {
60
+ paymentId: string;
61
+ }, {
62
+ paymentId: string;
63
+ }>;
64
+ listPayments: z.ZodObject<{
65
+ accountKey: z.ZodOptional<z.ZodString>;
66
+ page: z.ZodDefault<z.ZodNumber>;
67
+ pageSize: z.ZodDefault<z.ZodNumber>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ page: number;
70
+ pageSize: number;
71
+ accountKey?: string | undefined;
72
+ }, {
73
+ accountKey?: string | undefined;
74
+ page?: number | undefined;
75
+ pageSize?: number | undefined;
76
+ }>;
77
+ executeZoqlQuery: z.ZodObject<{
78
+ zoqlQuery: z.ZodEffects<z.ZodString, string, string>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ zoqlQuery: string;
81
+ }, {
82
+ zoqlQuery: string;
83
+ }>;
84
+ continueZoqlQuery: z.ZodObject<{
85
+ queryLocator: z.ZodString;
86
+ }, "strip", z.ZodTypeAny, {
87
+ queryLocator: string;
88
+ }, {
89
+ queryLocator: string;
90
+ }>;
91
+ listProducts: z.ZodObject<{
92
+ page: z.ZodDefault<z.ZodNumber>;
93
+ pageSize: z.ZodDefault<z.ZodNumber>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ page: number;
96
+ pageSize: number;
97
+ }, {
98
+ page?: number | undefined;
99
+ pageSize?: number | undefined;
100
+ }>;
101
+ getInvoiceFiles: z.ZodObject<{
102
+ invoiceId: z.ZodString;
103
+ }, "strip", z.ZodTypeAny, {
104
+ invoiceId: string;
105
+ }, {
106
+ invoiceId: string;
107
+ }>;
108
+ getCreditMemo: z.ZodObject<{
109
+ creditMemoId: z.ZodString;
110
+ }, "strip", z.ZodTypeAny, {
111
+ creditMemoId: string;
112
+ }, {
113
+ creditMemoId: string;
114
+ }>;
115
+ listCreditMemos: z.ZodObject<{
116
+ accountId: z.ZodOptional<z.ZodString>;
117
+ page: z.ZodDefault<z.ZodNumber>;
118
+ pageSize: z.ZodDefault<z.ZodNumber>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ page: number;
121
+ pageSize: number;
122
+ accountId?: string | undefined;
123
+ }, {
124
+ page?: number | undefined;
125
+ pageSize?: number | undefined;
126
+ accountId?: string | undefined;
127
+ }>;
128
+ searchAccounts: z.ZodObject<{
129
+ field: z.ZodEnum<["Name", "AccountNumber", "Status", "Currency", "Balance"]>;
130
+ value: z.ZodEffects<z.ZodString, string, string>;
131
+ operator: z.ZodDefault<z.ZodEnum<["=", "!=", "LIKE", ">", "<", ">=", "<="]>>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ value: string;
134
+ field: "Name" | "AccountNumber" | "Status" | "Currency" | "Balance";
135
+ operator: "=" | "!=" | "LIKE" | ">" | "<" | ">=" | "<=";
136
+ }, {
137
+ value: string;
138
+ field: "Name" | "AccountNumber" | "Status" | "Currency" | "Balance";
139
+ operator?: "=" | "!=" | "LIKE" | ">" | "<" | ">=" | "<=" | undefined;
140
+ }>;
141
+ listUsage: z.ZodObject<{
142
+ accountKey: z.ZodString;
143
+ page: z.ZodDefault<z.ZodNumber>;
144
+ pageSize: z.ZodDefault<z.ZodNumber>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ accountKey: string;
147
+ page: number;
148
+ pageSize: number;
149
+ }, {
150
+ accountKey: string;
151
+ page?: number | undefined;
152
+ pageSize?: number | undefined;
153
+ }>;
154
+ createPayment: z.ZodEffects<z.ZodObject<{
155
+ accountId: z.ZodString;
156
+ amount: z.ZodEffects<z.ZodNumber, number, number>;
157
+ effectiveDate: z.ZodEffects<z.ZodString, string, string>;
158
+ type: z.ZodEnum<["Electronic", "External"]>;
159
+ paymentMethodId: z.ZodOptional<z.ZodString>;
160
+ comment: z.ZodOptional<z.ZodString>;
161
+ idempotencyKey: z.ZodString;
162
+ }, "strip", z.ZodTypeAny, {
163
+ type: "Electronic" | "External";
164
+ accountId: string;
165
+ amount: number;
166
+ effectiveDate: string;
167
+ idempotencyKey: string;
168
+ paymentMethodId?: string | undefined;
169
+ comment?: string | undefined;
170
+ }, {
171
+ type: "Electronic" | "External";
172
+ accountId: string;
173
+ amount: number;
174
+ effectiveDate: string;
175
+ idempotencyKey: string;
176
+ paymentMethodId?: string | undefined;
177
+ comment?: string | undefined;
178
+ }>, {
179
+ type: "Electronic" | "External";
180
+ accountId: string;
181
+ amount: number;
182
+ effectiveDate: string;
183
+ idempotencyKey: string;
184
+ paymentMethodId?: string | undefined;
185
+ comment?: string | undefined;
186
+ }, {
187
+ type: "Electronic" | "External";
188
+ accountId: string;
189
+ amount: number;
190
+ effectiveDate: string;
191
+ idempotencyKey: string;
192
+ paymentMethodId?: string | undefined;
193
+ comment?: string | undefined;
194
+ }>;
195
+ applyPayment: z.ZodObject<{
196
+ paymentId: z.ZodString;
197
+ invoices: z.ZodArray<z.ZodObject<{
198
+ invoiceId: z.ZodString;
199
+ amount: z.ZodEffects<z.ZodNumber, number, number>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ invoiceId: string;
202
+ amount: number;
203
+ }, {
204
+ invoiceId: string;
205
+ amount: number;
206
+ }>, "many">;
207
+ effectiveDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ paymentId: string;
210
+ invoices: {
211
+ invoiceId: string;
212
+ amount: number;
213
+ }[];
214
+ effectiveDate?: string | undefined;
215
+ }, {
216
+ paymentId: string;
217
+ invoices: {
218
+ invoiceId: string;
219
+ amount: number;
220
+ }[];
221
+ effectiveDate?: string | undefined;
222
+ }>;
223
+ createInvoice: z.ZodObject<{
224
+ accountId: z.ZodString;
225
+ invoiceDate: z.ZodEffects<z.ZodString, string, string>;
226
+ dueDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
227
+ idempotencyKey: z.ZodString;
228
+ }, "strip", z.ZodTypeAny, {
229
+ accountId: string;
230
+ idempotencyKey: string;
231
+ invoiceDate: string;
232
+ dueDate?: string | undefined;
233
+ }, {
234
+ accountId: string;
235
+ idempotencyKey: string;
236
+ invoiceDate: string;
237
+ dueDate?: string | undefined;
238
+ }>;
239
+ postInvoice: z.ZodObject<{
240
+ invoiceId: z.ZodString;
241
+ }, "strip", z.ZodTypeAny, {
242
+ invoiceId: string;
243
+ }, {
244
+ invoiceId: string;
245
+ }>;
246
+ cancelSubscription: z.ZodEffects<z.ZodObject<{
247
+ subscriptionKey: z.ZodString;
248
+ cancellationPolicy: z.ZodEnum<["EndOfCurrentTerm", "EndOfLastInvoicePeriod", "SpecificDate"]>;
249
+ cancellationEffectiveDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
250
+ invoiceCollect: z.ZodDefault<z.ZodBoolean>;
251
+ }, "strip", z.ZodTypeAny, {
252
+ subscriptionKey: string;
253
+ cancellationPolicy: "EndOfCurrentTerm" | "EndOfLastInvoicePeriod" | "SpecificDate";
254
+ invoiceCollect: boolean;
255
+ cancellationEffectiveDate?: string | undefined;
256
+ }, {
257
+ subscriptionKey: string;
258
+ cancellationPolicy: "EndOfCurrentTerm" | "EndOfLastInvoicePeriod" | "SpecificDate";
259
+ cancellationEffectiveDate?: string | undefined;
260
+ invoiceCollect?: boolean | undefined;
261
+ }>, {
262
+ subscriptionKey: string;
263
+ cancellationPolicy: "EndOfCurrentTerm" | "EndOfLastInvoicePeriod" | "SpecificDate";
264
+ invoiceCollect: boolean;
265
+ cancellationEffectiveDate?: string | undefined;
266
+ }, {
267
+ subscriptionKey: string;
268
+ cancellationPolicy: "EndOfCurrentTerm" | "EndOfLastInvoicePeriod" | "SpecificDate";
269
+ cancellationEffectiveDate?: string | undefined;
270
+ invoiceCollect?: boolean | undefined;
271
+ }>;
272
+ createSubscription: z.ZodEffects<z.ZodObject<{
273
+ accountKey: z.ZodString;
274
+ contractEffectiveDate: z.ZodEffects<z.ZodString, string, string>;
275
+ serviceActivationDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
276
+ customerAcceptanceDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
277
+ termType: z.ZodEnum<["TERMED", "EVERGREEN"]>;
278
+ initialTerm: z.ZodOptional<z.ZodNumber>;
279
+ initialTermPeriodType: z.ZodOptional<z.ZodEnum<["Month", "Year", "Day", "Week"]>>;
280
+ renewalTerm: z.ZodOptional<z.ZodNumber>;
281
+ renewalTermPeriodType: z.ZodOptional<z.ZodEnum<["Month", "Year", "Day", "Week"]>>;
282
+ autoRenew: z.ZodDefault<z.ZodBoolean>;
283
+ subscribeToRatePlans: z.ZodArray<z.ZodObject<{
284
+ productRatePlanId: z.ZodString;
285
+ }, "strip", z.ZodTypeAny, {
286
+ productRatePlanId: string;
287
+ }, {
288
+ productRatePlanId: string;
289
+ }>, "many">;
290
+ notes: z.ZodOptional<z.ZodString>;
291
+ idempotencyKey: z.ZodString;
292
+ }, "strip", z.ZodTypeAny, {
293
+ accountKey: string;
294
+ idempotencyKey: string;
295
+ contractEffectiveDate: string;
296
+ termType: "TERMED" | "EVERGREEN";
297
+ autoRenew: boolean;
298
+ subscribeToRatePlans: {
299
+ productRatePlanId: string;
300
+ }[];
301
+ serviceActivationDate?: string | undefined;
302
+ customerAcceptanceDate?: string | undefined;
303
+ initialTerm?: number | undefined;
304
+ initialTermPeriodType?: "Month" | "Year" | "Day" | "Week" | undefined;
305
+ renewalTerm?: number | undefined;
306
+ renewalTermPeriodType?: "Month" | "Year" | "Day" | "Week" | undefined;
307
+ notes?: string | undefined;
308
+ }, {
309
+ accountKey: string;
310
+ idempotencyKey: string;
311
+ contractEffectiveDate: string;
312
+ termType: "TERMED" | "EVERGREEN";
313
+ subscribeToRatePlans: {
314
+ productRatePlanId: string;
315
+ }[];
316
+ serviceActivationDate?: string | undefined;
317
+ customerAcceptanceDate?: string | undefined;
318
+ initialTerm?: number | undefined;
319
+ initialTermPeriodType?: "Month" | "Year" | "Day" | "Week" | undefined;
320
+ renewalTerm?: number | undefined;
321
+ renewalTermPeriodType?: "Month" | "Year" | "Day" | "Week" | undefined;
322
+ autoRenew?: boolean | undefined;
323
+ notes?: string | undefined;
324
+ }>, {
325
+ accountKey: string;
326
+ idempotencyKey: string;
327
+ contractEffectiveDate: string;
328
+ termType: "TERMED" | "EVERGREEN";
329
+ autoRenew: boolean;
330
+ subscribeToRatePlans: {
331
+ productRatePlanId: string;
332
+ }[];
333
+ serviceActivationDate?: string | undefined;
334
+ customerAcceptanceDate?: string | undefined;
335
+ initialTerm?: number | undefined;
336
+ initialTermPeriodType?: "Month" | "Year" | "Day" | "Week" | undefined;
337
+ renewalTerm?: number | undefined;
338
+ renewalTermPeriodType?: "Month" | "Year" | "Day" | "Week" | undefined;
339
+ notes?: string | undefined;
340
+ }, {
341
+ accountKey: string;
342
+ idempotencyKey: string;
343
+ contractEffectiveDate: string;
344
+ termType: "TERMED" | "EVERGREEN";
345
+ subscribeToRatePlans: {
346
+ productRatePlanId: string;
347
+ }[];
348
+ serviceActivationDate?: string | undefined;
349
+ customerAcceptanceDate?: string | undefined;
350
+ initialTerm?: number | undefined;
351
+ initialTermPeriodType?: "Month" | "Year" | "Day" | "Week" | undefined;
352
+ renewalTerm?: number | undefined;
353
+ renewalTermPeriodType?: "Month" | "Year" | "Day" | "Week" | undefined;
354
+ autoRenew?: boolean | undefined;
355
+ notes?: string | undefined;
356
+ }>;
357
+ updateSubscription: z.ZodEffects<z.ZodObject<{
358
+ subscriptionKey: z.ZodString;
359
+ autoRenew: z.ZodOptional<z.ZodBoolean>;
360
+ renewalTerm: z.ZodOptional<z.ZodNumber>;
361
+ renewalTermPeriodType: z.ZodOptional<z.ZodEnum<["Month", "Year", "Day", "Week"]>>;
362
+ notes: z.ZodOptional<z.ZodString>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ subscriptionKey: string;
365
+ renewalTerm?: number | undefined;
366
+ renewalTermPeriodType?: "Month" | "Year" | "Day" | "Week" | undefined;
367
+ autoRenew?: boolean | undefined;
368
+ notes?: string | undefined;
369
+ }, {
370
+ subscriptionKey: string;
371
+ renewalTerm?: number | undefined;
372
+ renewalTermPeriodType?: "Month" | "Year" | "Day" | "Week" | undefined;
373
+ autoRenew?: boolean | undefined;
374
+ notes?: string | undefined;
375
+ }>, {
376
+ subscriptionKey: string;
377
+ renewalTerm?: number | undefined;
378
+ renewalTermPeriodType?: "Month" | "Year" | "Day" | "Week" | undefined;
379
+ autoRenew?: boolean | undefined;
380
+ notes?: string | undefined;
381
+ }, {
382
+ subscriptionKey: string;
383
+ renewalTerm?: number | undefined;
384
+ renewalTermPeriodType?: "Month" | "Year" | "Day" | "Week" | undefined;
385
+ autoRenew?: boolean | undefined;
386
+ notes?: string | undefined;
387
+ }>;
388
+ createAccount: z.ZodObject<{
389
+ name: z.ZodString;
390
+ currency: z.ZodString;
391
+ billCycleDay: z.ZodNumber;
392
+ billToContact: z.ZodObject<{
393
+ firstName: z.ZodString;
394
+ lastName: z.ZodString;
395
+ workEmail: z.ZodString;
396
+ address1: z.ZodOptional<z.ZodString>;
397
+ city: z.ZodOptional<z.ZodString>;
398
+ state: z.ZodOptional<z.ZodString>;
399
+ postalCode: z.ZodOptional<z.ZodString>;
400
+ country: z.ZodOptional<z.ZodString>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ firstName: string;
403
+ lastName: string;
404
+ workEmail: string;
405
+ address1?: string | undefined;
406
+ city?: string | undefined;
407
+ state?: string | undefined;
408
+ postalCode?: string | undefined;
409
+ country?: string | undefined;
410
+ }, {
411
+ firstName: string;
412
+ lastName: string;
413
+ workEmail: string;
414
+ address1?: string | undefined;
415
+ city?: string | undefined;
416
+ state?: string | undefined;
417
+ postalCode?: string | undefined;
418
+ country?: string | undefined;
419
+ }>;
420
+ soldToContact: z.ZodOptional<z.ZodObject<{
421
+ firstName: z.ZodString;
422
+ lastName: z.ZodString;
423
+ workEmail: z.ZodString;
424
+ address1: z.ZodOptional<z.ZodString>;
425
+ city: z.ZodOptional<z.ZodString>;
426
+ state: z.ZodOptional<z.ZodString>;
427
+ postalCode: z.ZodOptional<z.ZodString>;
428
+ country: z.ZodOptional<z.ZodString>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ firstName: string;
431
+ lastName: string;
432
+ workEmail: string;
433
+ address1?: string | undefined;
434
+ city?: string | undefined;
435
+ state?: string | undefined;
436
+ postalCode?: string | undefined;
437
+ country?: string | undefined;
438
+ }, {
439
+ firstName: string;
440
+ lastName: string;
441
+ workEmail: string;
442
+ address1?: string | undefined;
443
+ city?: string | undefined;
444
+ state?: string | undefined;
445
+ postalCode?: string | undefined;
446
+ country?: string | undefined;
447
+ }>>;
448
+ paymentTerm: z.ZodOptional<z.ZodString>;
449
+ autoPay: z.ZodDefault<z.ZodBoolean>;
450
+ notes: z.ZodOptional<z.ZodString>;
451
+ idempotencyKey: z.ZodString;
452
+ }, "strip", z.ZodTypeAny, {
453
+ idempotencyKey: string;
454
+ name: string;
455
+ currency: string;
456
+ billCycleDay: number;
457
+ billToContact: {
458
+ firstName: string;
459
+ lastName: string;
460
+ workEmail: string;
461
+ address1?: string | undefined;
462
+ city?: string | undefined;
463
+ state?: string | undefined;
464
+ postalCode?: string | undefined;
465
+ country?: string | undefined;
466
+ };
467
+ autoPay: boolean;
468
+ notes?: string | undefined;
469
+ soldToContact?: {
470
+ firstName: string;
471
+ lastName: string;
472
+ workEmail: string;
473
+ address1?: string | undefined;
474
+ city?: string | undefined;
475
+ state?: string | undefined;
476
+ postalCode?: string | undefined;
477
+ country?: string | undefined;
478
+ } | undefined;
479
+ paymentTerm?: string | undefined;
480
+ }, {
481
+ idempotencyKey: string;
482
+ name: string;
483
+ currency: string;
484
+ billCycleDay: number;
485
+ billToContact: {
486
+ firstName: string;
487
+ lastName: string;
488
+ workEmail: string;
489
+ address1?: string | undefined;
490
+ city?: string | undefined;
491
+ state?: string | undefined;
492
+ postalCode?: string | undefined;
493
+ country?: string | undefined;
494
+ };
495
+ notes?: string | undefined;
496
+ soldToContact?: {
497
+ firstName: string;
498
+ lastName: string;
499
+ workEmail: string;
500
+ address1?: string | undefined;
501
+ city?: string | undefined;
502
+ state?: string | undefined;
503
+ postalCode?: string | undefined;
504
+ country?: string | undefined;
505
+ } | undefined;
506
+ paymentTerm?: string | undefined;
507
+ autoPay?: boolean | undefined;
508
+ }>;
509
+ updateAccount: z.ZodEffects<z.ZodObject<{
510
+ accountKey: z.ZodString;
511
+ name: z.ZodOptional<z.ZodString>;
512
+ notes: z.ZodOptional<z.ZodString>;
513
+ autoPay: z.ZodOptional<z.ZodBoolean>;
514
+ paymentTerm: z.ZodOptional<z.ZodString>;
515
+ billToContact: z.ZodOptional<z.ZodObject<{
516
+ firstName: z.ZodOptional<z.ZodString>;
517
+ lastName: z.ZodOptional<z.ZodString>;
518
+ workEmail: z.ZodOptional<z.ZodString>;
519
+ address1: z.ZodOptional<z.ZodOptional<z.ZodString>>;
520
+ city: z.ZodOptional<z.ZodOptional<z.ZodString>>;
521
+ state: z.ZodOptional<z.ZodOptional<z.ZodString>>;
522
+ postalCode: z.ZodOptional<z.ZodOptional<z.ZodString>>;
523
+ country: z.ZodOptional<z.ZodOptional<z.ZodString>>;
524
+ }, "strip", z.ZodTypeAny, {
525
+ address1?: string | undefined;
526
+ firstName?: string | undefined;
527
+ lastName?: string | undefined;
528
+ workEmail?: string | undefined;
529
+ city?: string | undefined;
530
+ state?: string | undefined;
531
+ postalCode?: string | undefined;
532
+ country?: string | undefined;
533
+ }, {
534
+ address1?: string | undefined;
535
+ firstName?: string | undefined;
536
+ lastName?: string | undefined;
537
+ workEmail?: string | undefined;
538
+ city?: string | undefined;
539
+ state?: string | undefined;
540
+ postalCode?: string | undefined;
541
+ country?: string | undefined;
542
+ }>>;
543
+ soldToContact: z.ZodOptional<z.ZodObject<{
544
+ firstName: z.ZodOptional<z.ZodString>;
545
+ lastName: z.ZodOptional<z.ZodString>;
546
+ workEmail: z.ZodOptional<z.ZodString>;
547
+ address1: z.ZodOptional<z.ZodOptional<z.ZodString>>;
548
+ city: z.ZodOptional<z.ZodOptional<z.ZodString>>;
549
+ state: z.ZodOptional<z.ZodOptional<z.ZodString>>;
550
+ postalCode: z.ZodOptional<z.ZodOptional<z.ZodString>>;
551
+ country: z.ZodOptional<z.ZodOptional<z.ZodString>>;
552
+ }, "strip", z.ZodTypeAny, {
553
+ address1?: string | undefined;
554
+ firstName?: string | undefined;
555
+ lastName?: string | undefined;
556
+ workEmail?: string | undefined;
557
+ city?: string | undefined;
558
+ state?: string | undefined;
559
+ postalCode?: string | undefined;
560
+ country?: string | undefined;
561
+ }, {
562
+ address1?: string | undefined;
563
+ firstName?: string | undefined;
564
+ lastName?: string | undefined;
565
+ workEmail?: string | undefined;
566
+ city?: string | undefined;
567
+ state?: string | undefined;
568
+ postalCode?: string | undefined;
569
+ country?: string | undefined;
570
+ }>>;
571
+ }, "strip", z.ZodTypeAny, {
572
+ accountKey: string;
573
+ notes?: string | undefined;
574
+ name?: string | undefined;
575
+ billToContact?: {
576
+ address1?: string | undefined;
577
+ firstName?: string | undefined;
578
+ lastName?: string | undefined;
579
+ workEmail?: string | undefined;
580
+ city?: string | undefined;
581
+ state?: string | undefined;
582
+ postalCode?: string | undefined;
583
+ country?: string | undefined;
584
+ } | undefined;
585
+ soldToContact?: {
586
+ address1?: string | undefined;
587
+ firstName?: string | undefined;
588
+ lastName?: string | undefined;
589
+ workEmail?: string | undefined;
590
+ city?: string | undefined;
591
+ state?: string | undefined;
592
+ postalCode?: string | undefined;
593
+ country?: string | undefined;
594
+ } | undefined;
595
+ paymentTerm?: string | undefined;
596
+ autoPay?: boolean | undefined;
597
+ }, {
598
+ accountKey: string;
599
+ notes?: string | undefined;
600
+ name?: string | undefined;
601
+ billToContact?: {
602
+ address1?: string | undefined;
603
+ firstName?: string | undefined;
604
+ lastName?: string | undefined;
605
+ workEmail?: string | undefined;
606
+ city?: string | undefined;
607
+ state?: string | undefined;
608
+ postalCode?: string | undefined;
609
+ country?: string | undefined;
610
+ } | undefined;
611
+ soldToContact?: {
612
+ address1?: string | undefined;
613
+ firstName?: string | undefined;
614
+ lastName?: string | undefined;
615
+ workEmail?: string | undefined;
616
+ city?: string | undefined;
617
+ state?: string | undefined;
618
+ postalCode?: string | undefined;
619
+ country?: string | undefined;
620
+ } | undefined;
621
+ paymentTerm?: string | undefined;
622
+ autoPay?: boolean | undefined;
623
+ }>, {
624
+ accountKey: string;
625
+ notes?: string | undefined;
626
+ name?: string | undefined;
627
+ billToContact?: {
628
+ address1?: string | undefined;
629
+ firstName?: string | undefined;
630
+ lastName?: string | undefined;
631
+ workEmail?: string | undefined;
632
+ city?: string | undefined;
633
+ state?: string | undefined;
634
+ postalCode?: string | undefined;
635
+ country?: string | undefined;
636
+ } | undefined;
637
+ soldToContact?: {
638
+ address1?: string | undefined;
639
+ firstName?: string | undefined;
640
+ lastName?: string | undefined;
641
+ workEmail?: string | undefined;
642
+ city?: string | undefined;
643
+ state?: string | undefined;
644
+ postalCode?: string | undefined;
645
+ country?: string | undefined;
646
+ } | undefined;
647
+ paymentTerm?: string | undefined;
648
+ autoPay?: boolean | undefined;
649
+ }, {
650
+ accountKey: string;
651
+ notes?: string | undefined;
652
+ name?: string | undefined;
653
+ billToContact?: {
654
+ address1?: string | undefined;
655
+ firstName?: string | undefined;
656
+ lastName?: string | undefined;
657
+ workEmail?: string | undefined;
658
+ city?: string | undefined;
659
+ state?: string | undefined;
660
+ postalCode?: string | undefined;
661
+ country?: string | undefined;
662
+ } | undefined;
663
+ soldToContact?: {
664
+ address1?: string | undefined;
665
+ firstName?: string | undefined;
666
+ lastName?: string | undefined;
667
+ workEmail?: string | undefined;
668
+ city?: string | undefined;
669
+ state?: string | undefined;
670
+ postalCode?: string | undefined;
671
+ country?: string | undefined;
672
+ } | undefined;
673
+ paymentTerm?: string | undefined;
674
+ autoPay?: boolean | undefined;
675
+ }>;
676
+ createRefund: z.ZodObject<{
677
+ paymentId: z.ZodString;
678
+ amount: z.ZodEffects<z.ZodNumber, number, number>;
679
+ type: z.ZodEnum<["Electronic", "External"]>;
680
+ comment: z.ZodOptional<z.ZodString>;
681
+ idempotencyKey: z.ZodString;
682
+ }, "strip", z.ZodTypeAny, {
683
+ type: "Electronic" | "External";
684
+ paymentId: string;
685
+ amount: number;
686
+ idempotencyKey: string;
687
+ comment?: string | undefined;
688
+ }, {
689
+ type: "Electronic" | "External";
690
+ paymentId: string;
691
+ amount: number;
692
+ idempotencyKey: string;
693
+ comment?: string | undefined;
694
+ }>;
695
+ };
696
+ export declare class ToolHandlers {
697
+ private readonly client;
698
+ constructor(client: ZuoraClient);
699
+ getAccount(input: unknown): Promise<ToolResult>;
700
+ getAccountSummary(input: unknown): Promise<ToolResult>;
701
+ getInvoice(input: unknown): Promise<ToolResult>;
702
+ listInvoices(input: unknown): Promise<ToolResult>;
703
+ getSubscription(input: unknown): Promise<ToolResult>;
704
+ listSubscriptions(input: unknown): Promise<ToolResult>;
705
+ getPayment(input: unknown): Promise<ToolResult>;
706
+ listPayments(input: unknown): Promise<ToolResult>;
707
+ executeZoqlQuery(input: unknown): Promise<ToolResult>;
708
+ continueZoqlQuery(input: unknown): Promise<ToolResult>;
709
+ listProducts(input: unknown): Promise<ToolResult>;
710
+ getInvoiceFiles(input: unknown): Promise<ToolResult>;
711
+ getCreditMemo(input: unknown): Promise<ToolResult>;
712
+ listCreditMemos(input: unknown): Promise<ToolResult>;
713
+ searchAccounts(input: unknown): Promise<ToolResult>;
714
+ listUsage(input: unknown): Promise<ToolResult>;
715
+ createPayment(input: unknown): Promise<ToolResult>;
716
+ applyPayment(input: unknown): Promise<ToolResult>;
717
+ createInvoice(input: unknown): Promise<ToolResult>;
718
+ postInvoice(input: unknown): Promise<ToolResult>;
719
+ cancelSubscription(input: unknown): Promise<ToolResult>;
720
+ createSubscription(input: unknown): Promise<ToolResult>;
721
+ updateSubscription(input: unknown): Promise<ToolResult>;
722
+ createAccount(input: unknown): Promise<ToolResult>;
723
+ updateAccount(input: unknown): Promise<ToolResult>;
724
+ createRefund(input: unknown): Promise<ToolResult>;
725
+ }
726
+ type ToolRegistration = {
727
+ name: string;
728
+ description: string;
729
+ inputSchema: z.ZodType;
730
+ invoke: (handlers: ToolHandlers, args: unknown) => Promise<ToolResult>;
731
+ };
732
+ export declare const toolRegistrations: ToolRegistration[];
733
+ export {};
734
+ //# sourceMappingURL=tools.d.ts.map