@zuora/agent-toolkit 0.0.1-alpha.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.
@@ -0,0 +1,289 @@
1
+ {
2
+ "version": 1,
3
+ "bundles": {
4
+ "accounts": {
5
+ "description": "Customer accounts, contacts, billing profiles, and account summaries.",
6
+ "examples": [
7
+ "show account summary",
8
+ "find account by account number",
9
+ "update account contact",
10
+ "cancel customer account"
11
+ ],
12
+ "commonObjects": [
13
+ "Account",
14
+ "Contact",
15
+ "BillingProfile"
16
+ ],
17
+ "keywords": [
18
+ "account",
19
+ "customer",
20
+ "contact",
21
+ "billing profile",
22
+ "summary"
23
+ ]
24
+ },
25
+ "catalog": {
26
+ "description": "Products, plans, charges, tiers, pricing context, and commerce catalog setup.",
27
+ "examples": [
28
+ "show latest product",
29
+ "create product",
30
+ "update product charge",
31
+ "inspect pricing tiers"
32
+ ],
33
+ "commonObjects": [
34
+ "Product",
35
+ "Plan",
36
+ "Charge",
37
+ "Tier"
38
+ ],
39
+ "keywords": [
40
+ "product",
41
+ "catalog",
42
+ "plan",
43
+ "charge",
44
+ "price",
45
+ "tier"
46
+ ]
47
+ },
48
+ "subscriptions": {
49
+ "description": "Subscription lookup, previews, creation, changes, renewal, and cancellation.",
50
+ "examples": [
51
+ "show subscription",
52
+ "preview subscription change",
53
+ "create subscription",
54
+ "cancel subscription"
55
+ ],
56
+ "commonObjects": [
57
+ "Subscription",
58
+ "RatePlan",
59
+ "OrderAction"
60
+ ],
61
+ "keywords": [
62
+ "subscription",
63
+ "renewal",
64
+ "preview",
65
+ "amendment",
66
+ "cancel"
67
+ ]
68
+ },
69
+ "orders": {
70
+ "description": "Order preview and order lifecycle operations for subscription commerce changes.",
71
+ "examples": [
72
+ "preview order",
73
+ "create order",
74
+ "show order",
75
+ "cancel order"
76
+ ],
77
+ "commonObjects": [
78
+ "Order",
79
+ "OrderAction",
80
+ "OrderLineItem"
81
+ ],
82
+ "keywords": [
83
+ "order",
84
+ "order action",
85
+ "preview",
86
+ "subscription change"
87
+ ]
88
+ },
89
+ "billing": {
90
+ "description": "Invoices, bill runs, billing documents, credit memos, debit memos, and billing previews.",
91
+ "examples": [
92
+ "create bill run",
93
+ "check bill run status",
94
+ "show latest invoice",
95
+ "post bill run",
96
+ "generate billing documents"
97
+ ],
98
+ "commonObjects": [
99
+ "Invoice",
100
+ "BillRun",
101
+ "CreditMemo",
102
+ "DebitMemo",
103
+ "BillingPreview"
104
+ ],
105
+ "keywords": [
106
+ "invoice",
107
+ "bill run",
108
+ "billing",
109
+ "credit memo",
110
+ "debit memo",
111
+ "billing preview",
112
+ "pdf"
113
+ ]
114
+ },
115
+ "payments": {
116
+ "description": "Payments, payment runs, refunds, payment methods, and payment schedules.",
117
+ "examples": [
118
+ "show payment",
119
+ "refund payment",
120
+ "create payment run",
121
+ "inspect payment method"
122
+ ],
123
+ "commonObjects": [
124
+ "Payment",
125
+ "PaymentRun",
126
+ "Refund",
127
+ "PaymentMethod"
128
+ ],
129
+ "keywords": [
130
+ "payment",
131
+ "refund",
132
+ "payment method",
133
+ "payment run",
134
+ "settlement"
135
+ ]
136
+ },
137
+ "usage": {
138
+ "description": "Usage upload, usage query, chargeable events, and metered consumption operations.",
139
+ "examples": [
140
+ "upload usage",
141
+ "query usage records",
142
+ "inspect chargeable events"
143
+ ],
144
+ "commonObjects": [
145
+ "Usage",
146
+ "ChargeableEvent"
147
+ ],
148
+ "keywords": [
149
+ "usage",
150
+ "meter",
151
+ "consumption",
152
+ "chargeable event",
153
+ "upload"
154
+ ]
155
+ },
156
+ "revenue": {
157
+ "description": "Revenue reporting, journal runs, revenue schedules, and accounting recognition workflows.",
158
+ "examples": [
159
+ "show revenue schedule",
160
+ "run revenue report",
161
+ "check journal run status"
162
+ ],
163
+ "commonObjects": [
164
+ "RevenueSchedule",
165
+ "JournalRun",
166
+ "RevenueContract"
167
+ ],
168
+ "keywords": [
169
+ "revenue",
170
+ "journal",
171
+ "recognition",
172
+ "revenue schedule"
173
+ ]
174
+ },
175
+ "finance": {
176
+ "description": "Accounting periods, accounting codes, sequence sets, and finance configuration.",
177
+ "examples": [
178
+ "list accounting periods",
179
+ "close accounting period",
180
+ "show accounting code settings",
181
+ "update sequence set"
182
+ ],
183
+ "commonObjects": [
184
+ "AccountingPeriod",
185
+ "AccountingCode",
186
+ "SequenceSet"
187
+ ],
188
+ "keywords": [
189
+ "accounting",
190
+ "finance",
191
+ "period",
192
+ "sequence",
193
+ "trial balance"
194
+ ]
195
+ },
196
+ "workflows": {
197
+ "description": "Workflow discovery, execution, task status, and workflow monitoring.",
198
+ "examples": [
199
+ "list workflows",
200
+ "run workflow",
201
+ "check workflow task status"
202
+ ],
203
+ "commonObjects": [
204
+ "Workflow",
205
+ "WorkflowRun",
206
+ "WorkflowTask"
207
+ ],
208
+ "keywords": [
209
+ "workflow",
210
+ "task",
211
+ "automation",
212
+ "run",
213
+ "monitor"
214
+ ]
215
+ },
216
+ "query": {
217
+ "description": "Object Query, GraphQL Query, Data Query, metadata discovery, query jobs, and result retrieval.",
218
+ "examples": [
219
+ "manage_data_queries: query aggregations result like: how many active billing accounts",
220
+ "zuora_graphql__query: describe product object fields",
221
+ "zuora_graphql__query in sync mode: query nested subscription details",
222
+ "use query_objects for Object Query: simple object lookups, one primary object, small result sets, or object metadata and field discovery",
223
+ "use manage_data_queries: SQL-style reporting, joins, aggregations, or large read-only exports",
224
+ "use manage_data_queries for Data Query job status and result metadata",
225
+ "use download_query_result for completed Data Query result file downloads when a jobId is available",
226
+ "use zuora_graphql__query for nested related records in one response when the tenant exposes the needed graph schema",
227
+ "manage_data_queries: submit data query",
228
+ "manage_data_queries: check query job status"
229
+ ],
230
+ "commonObjects": [
231
+ "DataQueryJob",
232
+ "ObjectMetadata",
233
+ "QueryResult"
234
+ ],
235
+ "keywords": [
236
+ "query",
237
+ "data query",
238
+ "object",
239
+ "graphql",
240
+ "metadata",
241
+ "sql",
242
+ "job",
243
+ "result"
244
+ ]
245
+ },
246
+ "admin": {
247
+ "description": "Settings, custom fields, custom objects, feature configuration, and system health.",
248
+ "examples": [
249
+ "list custom fields",
250
+ "create custom object record",
251
+ "show tenant settings",
252
+ "check system health"
253
+ ],
254
+ "commonObjects": [
255
+ "CustomField",
256
+ "CustomObject",
257
+ "TenantSetting"
258
+ ],
259
+ "keywords": [
260
+ "admin",
261
+ "settings",
262
+ "custom field",
263
+ "custom object",
264
+ "tenant",
265
+ "health"
266
+ ]
267
+ },
268
+ "files": {
269
+ "description": "SDK-native file artifact downloads and bounded local artifact reads.",
270
+ "examples": [
271
+ "download data query result file",
272
+ "read downloaded file preview",
273
+ "inspect exported jsonl result"
274
+ ],
275
+ "commonObjects": [
276
+ "FileArtifact",
277
+ "DownloadedFile"
278
+ ],
279
+ "keywords": [
280
+ "file",
281
+ "download",
282
+ "artifact",
283
+ "jsonl",
284
+ "csv",
285
+ "result url"
286
+ ]
287
+ }
288
+ }
289
+ }
@@ -0,0 +1,42 @@
1
+ import { b as ZuoraToolExecutionResult, h as ZuoraBundleName } from './async-jobs-Dd8Jafv0.js';
2
+ export { A as ApprovalPolicy, j as ApprovalPolicyPreset, k as ApprovalPolicyPresetValue, l as ApprovalRequest, D as DEFAULT_ASYNC_JOB_TERMINAL_STATUSES, N as NativeFileApprovalMetadata, m as NativeFileToolsConfig, n as NativeToolApprovalMetadata, o as NativeToolMetadataConfig, T as ToolSelection, p as ToolkitBundleName, e as ZuoraAgentToolkitConfig, a as ZuoraAgentToolkitConfigInput, c as ZuoraAsyncJobResult, q as ZuoraAsyncJobStatusResolution, r as ZuoraAsyncJobTerminalState, s as ZuoraAsyncJobTerminalStatuses, g as ZuoraBundleDefinition, t as ZuoraSafetyMode, Z as ZuoraToolDefinition, u as ZuoraToolkitConfiguration, d as ZuoraToolkitEvent, v as ZuoraToolkitLogger, i as ZuoraWaitForJobOptions, w as buildAsyncJobResult, x as isAsyncJobResult, y as isAsyncJobTerminal, z as matchesAsyncJobTerminalStatus, B as resolveAsyncJobId, C as resolveAsyncJobPollingToolName, E as resolveAsyncJobStatus, F as resolveAsyncJobStatusDetails, G as resolveAsyncJobTerminalState } from './async-jobs-Dd8Jafv0.js';
3
+
4
+ type ZuoraAgentToolkitP0ErrorCode = "TOOL_EXECUTION_ERROR" | "TOOL_NOT_FOUND" | "BUNDLE_NOT_FOUND" | "APPROVAL_REJECTED" | "MALFORMED_METADATA" | "OAUTH_TOKEN_ERROR" | "ASYNC_JOB_TIMEOUT";
5
+ type ZuoraAgentToolkitErrorCode = ZuoraAgentToolkitP0ErrorCode | (string & {});
6
+ type ZuoraAgentToolkitP0ErrorCategory = "tool_execution" | "approval" | "metadata" | "auth";
7
+ type ZuoraAgentToolkitErrorCategory = ZuoraAgentToolkitP0ErrorCategory | "permission" | "validation" | "zuora" | "mcp" | "configuration" | "native_file_tools";
8
+ declare class ZuoraAgentToolkitError extends Error {
9
+ readonly code: ZuoraAgentToolkitErrorCode;
10
+ readonly category: ZuoraAgentToolkitErrorCategory;
11
+ readonly retryable: boolean;
12
+ readonly recoverable: boolean;
13
+ readonly requestId?: string | undefined;
14
+ readonly details?: unknown;
15
+ constructor(params: {
16
+ code: ZuoraAgentToolkitErrorCode;
17
+ message: string;
18
+ category: ZuoraAgentToolkitErrorCategory;
19
+ retryable?: boolean;
20
+ recoverable?: boolean;
21
+ requestId?: string;
22
+ details?: unknown;
23
+ });
24
+ }
25
+
26
+ type AgentToolFollowUpContext = {
27
+ /** Job id from a pending async job, when the caller already resolved it. */
28
+ asyncJobId?: string;
29
+ };
30
+ type AgentToolFollowUpResolution = {
31
+ followUpToolNames: string[];
32
+ requireToolOnNextStep: boolean;
33
+ recommendedNextTool?: string;
34
+ recommendedNextArgs?: Record<string, unknown>;
35
+ hasDownloadableOutput: boolean;
36
+ };
37
+ declare const resolveAgentToolFollowUps: (result: ZuoraToolExecutionResult, context?: AgentToolFollowUpContext) => AgentToolFollowUpResolution;
38
+ declare const buildToolMessagePayload: (result: ZuoraToolExecutionResult, followUp: AgentToolFollowUpResolution) => Record<string, unknown>;
39
+
40
+ declare const ZUORA_BUNDLE_NAME_SET: Set<ZuoraBundleName>;
41
+
42
+ export { type AgentToolFollowUpResolution, ZUORA_BUNDLE_NAME_SET, ZuoraAgentToolkitError, type ZuoraAgentToolkitErrorCategory, type ZuoraAgentToolkitErrorCode, ZuoraBundleName, ZuoraToolExecutionResult, buildToolMessagePayload, resolveAgentToolFollowUps };