@omnixhq/ucp-client 0.1.3 → 0.2.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.
Files changed (50) hide show
  1. package/README.md +73 -16
  2. package/dist/adapters/anthropic.cjs +23 -0
  3. package/dist/adapters/anthropic.cjs.map +1 -0
  4. package/dist/adapters/anthropic.d.cts +22 -0
  5. package/dist/adapters/anthropic.d.cts.map +1 -0
  6. package/dist/adapters/anthropic.d.ts +22 -0
  7. package/dist/adapters/anthropic.d.ts.map +1 -0
  8. package/dist/adapters/anthropic.js +20 -0
  9. package/dist/adapters/anthropic.js.map +1 -0
  10. package/dist/adapters/langchain.cjs +18 -0
  11. package/dist/adapters/langchain.cjs.map +1 -0
  12. package/dist/adapters/langchain.d.cts +16 -0
  13. package/dist/adapters/langchain.d.cts.map +1 -0
  14. package/dist/adapters/langchain.d.ts +16 -0
  15. package/dist/adapters/langchain.d.ts.map +1 -0
  16. package/dist/adapters/langchain.js +16 -0
  17. package/dist/adapters/langchain.js.map +1 -0
  18. package/dist/adapters/mcp.cjs +23 -0
  19. package/dist/adapters/mcp.cjs.map +1 -0
  20. package/dist/adapters/mcp.d.cts +22 -0
  21. package/dist/adapters/mcp.d.cts.map +1 -0
  22. package/dist/adapters/mcp.d.ts +22 -0
  23. package/dist/adapters/mcp.d.ts.map +1 -0
  24. package/dist/adapters/mcp.js +20 -0
  25. package/dist/adapters/mcp.js.map +1 -0
  26. package/dist/adapters/openai.cjs +23 -0
  27. package/dist/adapters/openai.cjs.map +1 -0
  28. package/dist/adapters/openai.d.cts +20 -0
  29. package/dist/adapters/openai.d.cts.map +1 -0
  30. package/dist/adapters/openai.d.ts +20 -0
  31. package/dist/adapters/openai.d.ts.map +1 -0
  32. package/dist/adapters/openai.js +20 -0
  33. package/dist/adapters/openai.js.map +1 -0
  34. package/dist/adapters/vercel-ai.cjs +17 -0
  35. package/dist/adapters/vercel-ai.cjs.map +1 -0
  36. package/dist/adapters/vercel-ai.d.cts +16 -0
  37. package/dist/adapters/vercel-ai.d.cts.map +1 -0
  38. package/dist/adapters/vercel-ai.d.ts +16 -0
  39. package/dist/adapters/vercel-ai.d.ts.map +1 -0
  40. package/dist/adapters/vercel-ai.js +15 -0
  41. package/dist/adapters/vercel-ai.js.map +1 -0
  42. package/dist/agent-tools-DBOuuSEd.d.ts +483 -0
  43. package/dist/agent-tools-DBOuuSEd.d.ts.map +1 -0
  44. package/dist/agent-tools-o2PEyGqh.d.cts +483 -0
  45. package/dist/agent-tools-o2PEyGqh.d.cts.map +1 -0
  46. package/dist/index.d.cts +5 -482
  47. package/dist/index.d.cts.map +1 -1
  48. package/dist/index.d.ts +5 -482
  49. package/dist/index.d.ts.map +1 -1
  50. package/package.json +51 -1
@@ -0,0 +1,483 @@
1
+ import { CheckoutResponseStatus, ExtendedCheckoutResponse, Order, UcpDiscoveryProfile } from "@ucp-js/sdk";
2
+ import { ZodType } from "zod";
3
+
4
+ //#region src/http.d.ts
5
+ type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE';
6
+ type LogFn = (message: string, detail?: string) => void;
7
+ interface HttpClientConfig {
8
+ readonly gatewayUrl: string;
9
+ readonly agentProfileUrl: string;
10
+ readonly ucpVersion: string;
11
+ readonly requestSignature?: string;
12
+ readonly accessToken?: string;
13
+ readonly onValidationWarning?: LogFn;
14
+ }
15
+ declare class HttpClient {
16
+ private readonly gatewayUrl;
17
+ private readonly agentProfileUrl;
18
+ private readonly ucpVersion;
19
+ private readonly requestSignature;
20
+ private readonly accessToken;
21
+ private readonly onValidationWarning;
22
+ constructor(config: HttpClientConfig);
23
+ withAccessToken(token: string): HttpClient;
24
+ request(method: HttpMethod, path: string, body?: unknown): Promise<unknown>;
25
+ validate<T>(data: unknown, schema: ZodType<T>): T;
26
+ private throwFromResponse;
27
+ } //#endregion
28
+ //#region src/types/common.d.ts
29
+ interface PostalAddress {
30
+ readonly first_name?: string;
31
+ readonly last_name?: string;
32
+ readonly street_address?: string;
33
+ readonly extended_address?: string;
34
+ readonly address_locality?: string;
35
+ readonly address_region?: string;
36
+ readonly address_country?: string;
37
+ readonly postal_code?: string;
38
+ readonly phone_number?: string;
39
+ }
40
+ interface BuyerConsent {
41
+ readonly analytics?: boolean;
42
+ readonly preferences?: boolean;
43
+ readonly marketing?: boolean;
44
+ readonly sale_of_data?: boolean;
45
+ }
46
+ interface LocalizationContext {
47
+ readonly address_country?: string;
48
+ readonly address_region?: string;
49
+ readonly postal_code?: string;
50
+ }
51
+ interface SearchFilters {
52
+ readonly max_price_cents?: number;
53
+ readonly min_price_cents?: number;
54
+ readonly in_stock?: boolean;
55
+ readonly category?: string;
56
+ readonly limit?: number;
57
+ readonly page?: number;
58
+ } //#endregion
59
+ //#region src/types/payment.d.ts
60
+
61
+ //# sourceMappingURL=common.d.ts.map
62
+ interface TokenCredential {
63
+ readonly type: string;
64
+ readonly token: string;
65
+ }
66
+ interface CardCredential {
67
+ readonly type: 'card';
68
+ readonly card_number_type?: 'fpan' | 'network_token' | 'dpan';
69
+ readonly number?: string;
70
+ readonly expiry_month?: string;
71
+ readonly expiry_year?: string;
72
+ readonly name?: string;
73
+ readonly cvc?: string;
74
+ readonly cryptogram?: string;
75
+ readonly eci_value?: string;
76
+ }
77
+ type PaymentCredential = TokenCredential | CardCredential;
78
+ interface PaymentInstrument {
79
+ readonly id: string;
80
+ readonly handler_id: string;
81
+ readonly type: string;
82
+ readonly brand?: string;
83
+ readonly last_digits?: string;
84
+ readonly handler_name?: string;
85
+ readonly selected?: boolean;
86
+ readonly display?: Readonly<Record<string, unknown>>;
87
+ readonly credential?: PaymentCredential;
88
+ readonly billing_address?: PostalAddress;
89
+ }
90
+ interface PaymentHandlerInstance {
91
+ readonly id: string;
92
+ readonly version: string;
93
+ readonly spec: string;
94
+ readonly schema: string;
95
+ readonly config?: Readonly<Record<string, unknown>>;
96
+ }
97
+ interface PaymentHandlerMap {
98
+ readonly [namespace: string]: readonly PaymentHandlerInstance[];
99
+ }
100
+
101
+ //#endregion
102
+ //#region src/types/checkout.d.ts
103
+ //# sourceMappingURL=payment.d.ts.map
104
+ type CheckoutSession = ExtendedCheckoutResponse;
105
+ type CheckoutSessionStatus = CheckoutResponseStatus;
106
+ interface CheckoutExtensions {
107
+ readonly fulfillment: boolean;
108
+ readonly discount: boolean;
109
+ readonly buyerConsent: boolean;
110
+ readonly ap2Mandate: boolean;
111
+ }
112
+ interface CreateCheckoutPayload {
113
+ readonly line_items: ReadonlyArray<{
114
+ readonly item: {
115
+ readonly id: string;
116
+ };
117
+ readonly quantity: number;
118
+ }>;
119
+ readonly currency?: string;
120
+ readonly buyer?: {
121
+ readonly first_name?: string;
122
+ readonly last_name?: string;
123
+ readonly email?: string;
124
+ readonly phone_number?: string;
125
+ readonly consent?: BuyerConsent;
126
+ };
127
+ readonly context?: LocalizationContext;
128
+ readonly payment?: {
129
+ readonly instruments?: readonly unknown[];
130
+ readonly handlers?: readonly unknown[];
131
+ };
132
+ }
133
+ interface UpdateCheckoutPayload {
134
+ readonly buyer?: {
135
+ readonly first_name?: string;
136
+ readonly last_name?: string;
137
+ readonly email?: string;
138
+ readonly phone_number?: string;
139
+ readonly consent?: BuyerConsent;
140
+ };
141
+ readonly fulfillment?: {
142
+ readonly destinations?: ReadonlyArray<{
143
+ readonly id: string;
144
+ readonly address: {
145
+ readonly street_address?: string;
146
+ readonly address_locality?: string;
147
+ readonly address_region?: string;
148
+ readonly postal_code?: string;
149
+ readonly address_country?: string;
150
+ };
151
+ }>;
152
+ readonly methods?: ReadonlyArray<{
153
+ readonly id: string;
154
+ readonly type: string;
155
+ readonly line_item_ids?: readonly string[];
156
+ readonly selected_destination_id?: string;
157
+ readonly groups?: ReadonlyArray<{
158
+ readonly id: string;
159
+ readonly selected_option_id?: string;
160
+ }>;
161
+ }>;
162
+ };
163
+ readonly payment?: {
164
+ readonly instruments?: ReadonlyArray<PaymentInstrument>;
165
+ };
166
+ readonly discounts?: {
167
+ readonly codes?: readonly string[];
168
+ };
169
+ readonly context?: LocalizationContext;
170
+ }
171
+ interface CompleteCheckoutPayload {
172
+ readonly payment?: {
173
+ readonly instruments: ReadonlyArray<PaymentInstrument>;
174
+ };
175
+ readonly payment_data?: PaymentInstrument;
176
+ readonly risk_signals?: Readonly<Record<string, unknown>>;
177
+ readonly ap2?: {
178
+ readonly checkout_mandate?: string;
179
+ };
180
+ } //#endregion
181
+ //#region src/capabilities/checkout.d.ts
182
+ //# sourceMappingURL=checkout.d.ts.map
183
+ type FulfillmentPatch = Omit<UpdateCheckoutPayload, 'fulfillment' | 'discounts'>;
184
+ /**
185
+ * Checkout session operations. Available when the server declares `dev.ucp.shopping.checkout`.
186
+ * Check `extensions` to see which optional features (fulfillment, discount, etc.) are supported.
187
+ */
188
+ declare class CheckoutCapability {
189
+ private readonly http;
190
+ /** Which checkout extensions the server supports. */
191
+ readonly extensions: CheckoutExtensions;
192
+ constructor(http: HttpClient, extensions: CheckoutExtensions);
193
+ create(payload: CreateCheckoutPayload): Promise<CheckoutSession>;
194
+ get(id: string): Promise<CheckoutSession>;
195
+ update(id: string, patch: UpdateCheckoutPayload): Promise<CheckoutSession>;
196
+ complete(id: string, payload: CompleteCheckoutPayload): Promise<CheckoutSession>;
197
+ cancel(id: string): Promise<CheckoutSession>;
198
+ setFulfillment(id: string, type: string, patch?: FulfillmentPatch): Promise<CheckoutSession>;
199
+ selectDestination(id: string, destinationId: string, fulfillmentType?: string, patch?: FulfillmentPatch): Promise<CheckoutSession>;
200
+ selectFulfillmentOption(id: string, optionId: string, destinationId?: string, fulfillmentType?: string, patch?: FulfillmentPatch): Promise<CheckoutSession>;
201
+ applyDiscountCodes(id: string, codes: readonly string[], patch?: FulfillmentPatch): Promise<CheckoutSession>;
202
+ private validateSession;
203
+ }
204
+
205
+ //#endregion
206
+ //#region src/types/order.d.ts
207
+ type UCPSpecOrder = Order;
208
+ interface UCPOrder {
209
+ readonly id: string;
210
+ readonly status: 'pending' | 'processing' | 'shipped' | 'delivered' | 'canceled';
211
+ readonly total_cents: number;
212
+ readonly currency: string;
213
+ readonly created_at_iso: string;
214
+ }
215
+ interface WebhookEvent {
216
+ readonly event_id: string;
217
+ readonly created_time: string;
218
+ readonly [key: string]: unknown;
219
+ }
220
+
221
+ //#endregion
222
+ //#region src/capabilities/order.d.ts
223
+ //# sourceMappingURL=order.d.ts.map
224
+ /** Order operations. Available when the server declares `dev.ucp.shopping.order`. */
225
+ declare class OrderCapability {
226
+ private readonly http;
227
+ constructor(http: HttpClient);
228
+ /** Retrieve an order by ID. Returns the UCP spec-compliant Order object. */
229
+ get(id: string): Promise<UCPSpecOrder>;
230
+ }
231
+
232
+ //#endregion
233
+ //#region src/types/identity-linking.d.ts
234
+ //# sourceMappingURL=order.d.ts.map
235
+ interface OAuthServerMetadata {
236
+ readonly issuer: string;
237
+ readonly authorization_endpoint: string;
238
+ readonly token_endpoint: string;
239
+ readonly revocation_endpoint: string;
240
+ readonly scopes_supported: readonly string[];
241
+ readonly response_types_supported: readonly string[];
242
+ readonly grant_types_supported: readonly string[];
243
+ readonly token_endpoint_auth_methods_supported: readonly string[];
244
+ readonly service_documentation?: string;
245
+ }
246
+ interface AuthorizationParams {
247
+ readonly client_id: string;
248
+ readonly redirect_uri: string;
249
+ readonly scope?: string;
250
+ readonly state?: string;
251
+ }
252
+ interface TokenResponse {
253
+ readonly access_token: string;
254
+ readonly token_type: string;
255
+ readonly expires_in?: number;
256
+ readonly refresh_token?: string;
257
+ readonly scope?: string;
258
+ }
259
+ interface TokenExchangeParams {
260
+ readonly client_id: string;
261
+ readonly client_secret: string;
262
+ readonly code: string;
263
+ readonly redirect_uri: string;
264
+ }
265
+ interface TokenRefreshParams {
266
+ readonly client_id: string;
267
+ readonly client_secret: string;
268
+ readonly refresh_token: string;
269
+ }
270
+ interface TokenRevokeParams {
271
+ readonly client_id: string;
272
+ readonly client_secret: string;
273
+ readonly token: string;
274
+ readonly token_type_hint?: 'access_token' | 'refresh_token';
275
+ }
276
+
277
+ //#endregion
278
+ //#region src/capabilities/identity-linking.d.ts
279
+ //# sourceMappingURL=identity-linking.d.ts.map
280
+ /**
281
+ * OAuth 2.0 identity linking for account linking between platforms and merchants.
282
+ * Available when the server declares `dev.ucp.common.identity_linking`.
283
+ */
284
+ declare class IdentityLinkingCapability {
285
+ private readonly metadata;
286
+ constructor(metadata: OAuthServerMetadata);
287
+ /** Build the OAuth authorization URL to redirect the buyer to. */
288
+ getAuthorizationUrl(params: AuthorizationParams): string;
289
+ exchangeCode(params: TokenExchangeParams): Promise<TokenResponse>;
290
+ refreshToken(params: TokenRefreshParams): Promise<TokenResponse>;
291
+ revokeToken(params: TokenRevokeParams): Promise<void>;
292
+ getMetadata(): Readonly<OAuthServerMetadata>;
293
+ private tokenRequest;
294
+ }
295
+
296
+ //#endregion
297
+ //#region src/types/product.d.ts
298
+ //# sourceMappingURL=identity-linking.d.ts.map
299
+ interface UCPProduct {
300
+ readonly id: string;
301
+ readonly title: string;
302
+ readonly description: string | null;
303
+ readonly price_cents: number;
304
+ readonly currency: string;
305
+ readonly in_stock: boolean;
306
+ readonly stock_quantity: number;
307
+ readonly images: readonly string[];
308
+ readonly variants: ReadonlyArray<{
309
+ readonly id: string;
310
+ readonly title: string;
311
+ readonly price_cents: number;
312
+ readonly in_stock: boolean;
313
+ readonly attributes: Readonly<Record<string, string>>;
314
+ }>;
315
+ }
316
+
317
+ //#endregion
318
+ //#region src/capabilities/products.d.ts
319
+ //# sourceMappingURL=product.d.ts.map
320
+ /** Product catalog search and retrieval. Always available (gateway-specific, not part of UCP spec). */
321
+ declare class ProductsCapability {
322
+ private readonly http;
323
+ constructor(http: HttpClient);
324
+ /** Search products by query string with optional filters. */
325
+ search(query: string, filters?: SearchFilters): Promise<readonly UCPProduct[]>;
326
+ get(id: string): Promise<UCPProduct>;
327
+ }
328
+
329
+ //#endregion
330
+ //#region src/types/config.d.ts
331
+ //# sourceMappingURL=products.d.ts.map
332
+ interface UCPClientConfig {
333
+ readonly gatewayUrl: string;
334
+ readonly agentProfileUrl: string;
335
+ readonly ucpVersion?: string;
336
+ readonly requestSignature?: string;
337
+ }
338
+ declare const DEFAULT_UCP_VERSION = "2026-01-23";
339
+ declare const UCP_CAPABILITIES: {
340
+ readonly CHECKOUT: "dev.ucp.shopping.checkout";
341
+ readonly FULFILLMENT: "dev.ucp.shopping.fulfillment";
342
+ readonly DISCOUNT: "dev.ucp.shopping.discount";
343
+ readonly BUYER_CONSENT: "dev.ucp.shopping.buyer_consent";
344
+ readonly ORDER: "dev.ucp.shopping.order";
345
+ readonly IDENTITY_LINKING: "dev.ucp.common.identity_linking";
346
+ readonly AP2_MANDATE: "dev.ucp.shopping.ap2_mandate";
347
+ };
348
+
349
+ //#endregion
350
+ //#region src/UCPClient.d.ts
351
+ //# sourceMappingURL=config.d.ts.map
352
+ /** UCP discovery profile returned by `GET /.well-known/ucp`. */
353
+ type UCPProfile = UcpDiscoveryProfile;
354
+ /** Describes a single tool the agent can use with the connected server. */
355
+ interface ToolDescriptor {
356
+ readonly name: string;
357
+ readonly capability: string;
358
+ readonly description: string;
359
+ }
360
+ /**
361
+ * A connected UCP client. Only capabilities the server declared are non-null.
362
+ * Use `describeTools()` to get the list of available tools for agent registration.
363
+ */
364
+ interface ConnectedClient {
365
+ /** The server's UCP discovery profile. */
366
+ readonly profile: UCPProfile;
367
+ /** Checkout operations. Null if server does not support `dev.ucp.shopping.checkout`. */
368
+ readonly checkout: CheckoutCapability | null;
369
+ /** Order operations. Null if server does not support `dev.ucp.shopping.order`. */
370
+ readonly order: OrderCapability | null;
371
+ /** OAuth 2.0 identity linking. Null if server does not support `dev.ucp.common.identity_linking`. */
372
+ readonly identityLinking: IdentityLinkingCapability | null;
373
+ /** Product search and retrieval. Always available (gateway-specific). */
374
+ readonly products: ProductsCapability;
375
+ /** Payment handlers declared by the server, keyed by namespace. */
376
+ readonly paymentHandlers: PaymentHandlerMap;
377
+ /** Returns only the tools this server supports (name + description only). */
378
+ describeTools(): readonly ToolDescriptor[];
379
+ /**
380
+ * Returns complete tool definitions with JSON Schema parameters and execute functions.
381
+ * Ready for direct use with any AI agent framework (Claude API, OpenAI, Vercel AI SDK, LangChain, MCP).
382
+ */
383
+ getAgentTools(): readonly AgentTool[];
384
+ }
385
+ /**
386
+ * Connect to a UCP server, discover its capabilities, and return a {@link ConnectedClient}.
387
+ *
388
+ * @example
389
+ * ```typescript
390
+ * const client = await connect({
391
+ * gatewayUrl: 'https://store.example.com/ucp',
392
+ * agentProfileUrl: 'https://platform.example.com/.well-known/ucp',
393
+ * });
394
+ *
395
+ * if (client.checkout) {
396
+ * const session = await client.checkout.create({ line_items: [...] });
397
+ * }
398
+ * ```
399
+ */
400
+ declare function connect(config: UCPClientConfig, options?: {
401
+ readonly onValidationWarning?: LogFn;
402
+ }): Promise<ConnectedClient>;
403
+ /**
404
+ * UCP client entry point. Use `UCPClient.connect()` to discover server capabilities
405
+ * and get a {@link ConnectedClient}.
406
+ *
407
+ * @example
408
+ * ```typescript
409
+ * const client = await UCPClient.connect({
410
+ * gatewayUrl: 'https://store.example.com/ucp',
411
+ * agentProfileUrl: 'https://platform.example.com/.well-known/ucp',
412
+ * });
413
+ * ```
414
+ */
415
+ declare class UCPClient {
416
+ private constructor();
417
+ static connect: typeof connect;
418
+ }
419
+
420
+ //#endregion
421
+ //#region src/agent-tools.d.ts
422
+ //# sourceMappingURL=UCPClient.d.ts.map
423
+ /** JSON Schema type subset used for tool parameter definitions. */
424
+ interface JsonSchema {
425
+ readonly type: string;
426
+ readonly properties?: Readonly<Record<string, JsonSchema>>;
427
+ readonly required?: readonly string[];
428
+ readonly items?: JsonSchema;
429
+ readonly enum?: readonly string[];
430
+ readonly description?: string;
431
+ readonly default?: unknown;
432
+ }
433
+ /**
434
+ * A complete tool definition ready for any AI agent framework.
435
+ * Contains everything an LLM needs: name, description, parameter schema, and executor.
436
+ */
437
+ interface AgentTool {
438
+ readonly name: string;
439
+ readonly description: string;
440
+ readonly parameters: JsonSchema;
441
+ readonly execute: (params: Record<string, unknown>) => Promise<unknown>;
442
+ }
443
+ /**
444
+ * Returns ready-to-use tool definitions for agent registration.
445
+ * Only tools supported by the connected server are included.
446
+ *
447
+ * Each tool has:
448
+ * - `name` — unique tool identifier
449
+ * - `description` — what the tool does (for the LLM)
450
+ * - `parameters` — JSON Schema describing the expected input
451
+ * - `execute(params)` — function that calls the right capability method
452
+ *
453
+ * @example
454
+ * ```typescript
455
+ * const client = await UCPClient.connect(config);
456
+ * const tools = getAgentTools(client);
457
+ *
458
+ * // Register with Anthropic Claude API
459
+ * const response = await anthropic.messages.create({
460
+ * tools: tools.map(t => ({
461
+ * name: t.name,
462
+ * description: t.description,
463
+ * input_schema: t.parameters,
464
+ * })),
465
+ * // ...
466
+ * });
467
+ *
468
+ * // Execute tool calls
469
+ * for (const block of response.content) {
470
+ * if (block.type === 'tool_use') {
471
+ * const tool = tools.find(t => t.name === block.name);
472
+ * const result = await tool.execute(block.input);
473
+ * }
474
+ * }
475
+ * ```
476
+ */
477
+ declare function getAgentTools(client: ConnectedClient): readonly AgentTool[];
478
+
479
+ //#endregion
480
+ //# sourceMappingURL=agent-tools.d.ts.map
481
+
482
+ export { AgentTool, AuthorizationParams, BuyerConsent, CardCredential, CheckoutCapability, CheckoutExtensions, CheckoutSession, CheckoutSessionStatus, CompleteCheckoutPayload, ConnectedClient, CreateCheckoutPayload, DEFAULT_UCP_VERSION, IdentityLinkingCapability, JsonSchema, LocalizationContext, OAuthServerMetadata, OrderCapability, PaymentCredential, PaymentHandlerInstance, PaymentHandlerMap, PaymentInstrument, PostalAddress, ProductsCapability, SearchFilters, TokenCredential, TokenExchangeParams, TokenRefreshParams, TokenResponse, TokenRevokeParams, ToolDescriptor, UCPClient, UCPClientConfig, UCPOrder, UCPProduct, UCPProfile, UCPSpecOrder, UCP_CAPABILITIES, UpdateCheckoutPayload, WebhookEvent, connect, getAgentTools };
483
+ //# sourceMappingURL=agent-tools-o2PEyGqh.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-tools-o2PEyGqh.d.cts","names":[],"sources":["../src/http.ts","../src/types/common.ts","../src/types/payment.ts","../src/types/checkout.ts","../src/capabilities/checkout.ts","../src/types/order.ts","../src/capabilities/order.ts","../src/types/identity-linking.ts","../src/capabilities/identity-linking.ts","../src/types/product.ts","../src/capabilities/products.ts","../src/types/config.ts","../src/UCPClient.ts","../src/agent-tools.ts"],"sourcesContent":null,"mappings":";;;;KAKK,UAAA;KAEO,KAAA;UAEK,gBAAA;EAJZ,SAAA,UAAU,EAAA,MAAA;EAEH,SAAK,eAAA,EAAA,MAAA;EAEA,SAAA,UAAgB,EAAA,MAAA;EASpB,SAAA,gBAAU,CAAA,EAAA,MAAA;EAAA,SAAA,WAAA,CAAA,EAAA,MAAA;EAAA,SAQD,mBAAA,CAAA,EAXW,KAWX;;AAsBE,cA9BX,UAAA,CA8BW;EAAU,iBAAiC,UAAA;EAAO,iBAwC7B,eAAA;EAAC,iBAAT,UAAA;EAAO,iBAAM,gBAAA;EAAC,iBAAA,WAAA;;sBA9D7B;kCAWY;ECrCjB,OAAA,CAAA,MAAA,EDgDO,UChDM,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,CAAA,EAAA,OAAA,CAAA,EDgDqC,OChDrC,CAAA,OAAA,CAAA;EAYb,QAAA,CAAA,CAAA,CAAA,CAAA,IAAY,EAAA,OAAA,EAAA,MAAA,ED4EQ,OC5ER,CD4EgB,CC5EhB,CAAA,CAAA,ED4EqB,CC5ErB;EAOZ,QAAA,iBAAmB;AAMpC,CAAA;;UAzBiB,aAAA;;;;EDKZ,SAAA,gBAAU,CAAA,EAAA,MAAA;EAEH,SAAK,gBAAA,CAAA,EAAA,MAAA;EAEA,SAAA,cAAgB,CAAA,EAAA,MAMA;EAGpB,SAAA,eAAU,CAAA,EAAA,MAAA;EAAA,SAAA,WAAA,CAAA,EAAA,MAAA;EAAA,SAQD,YAAA,CAAA,EAAA,MAAA;;AAsBE,UCpCP,YAAA,CDoCO;EAAU,SAAiC,SAAA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