@omnixhq/ucp-client 1.0.1 → 2.0.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/README.md +2 -3
- package/dist/adapters/anthropic.d.cts +1 -1
- package/dist/adapters/anthropic.d.ts +1 -1
- package/dist/adapters/langchain.d.cts +1 -1
- package/dist/adapters/langchain.d.ts +1 -1
- package/dist/adapters/mcp.d.cts +1 -1
- package/dist/adapters/mcp.d.ts +1 -1
- package/dist/adapters/openai.d.cts +1 -1
- package/dist/adapters/openai.d.ts +1 -1
- package/dist/adapters/vercel-ai.d.cts +1 -1
- package/dist/adapters/vercel-ai.d.ts +1 -1
- package/dist/{catch-errors-H8gObrht.d.ts → catch-errors-BW8p9Abt.d.ts} +12 -71
- package/dist/catch-errors-BW8p9Abt.d.ts.map +1 -0
- package/dist/{catch-errors-CbIHeFvF.d.cts → catch-errors-jyrE4r9F.d.cts} +12 -71
- package/dist/catch-errors-jyrE4r9F.d.cts.map +1 -0
- package/dist/index.cjs +173 -163
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8327 -6178
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +8327 -6178
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +80 -146
- package/dist/index.js.map +1 -1
- package/package.json +2 -4
- package/dist/catch-errors-CbIHeFvF.d.cts.map +0 -1
- package/dist/catch-errors-H8gObrht.d.ts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -25,8 +25,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
const require_errors = require('./errors-C1XqxNmZ.cjs');
|
|
26
26
|
const zod = __toESM(require("zod"));
|
|
27
27
|
const node_crypto = __toESM(require("node:crypto"));
|
|
28
|
-
const
|
|
28
|
+
const __omnixhq_ucp_js_sdk = __toESM(require("@omnixhq/ucp-js-sdk"));
|
|
29
29
|
|
|
30
|
+
//#region src/schemas.ts
|
|
31
|
+
const CheckoutSessionSchema = __omnixhq_ucp_js_sdk.ExtendedCheckoutResponseSchema.passthrough();
|
|
32
|
+
const UCPProfileSchema = __omnixhq_ucp_js_sdk.UcpDiscoveryProfileSchema.passthrough();
|
|
33
|
+
const CreateCheckoutRequestSchema = __omnixhq_ucp_js_sdk.ExtendedCheckoutCreateRequestSchema.passthrough();
|
|
34
|
+
const UpdateCheckoutRequestSchema = __omnixhq_ucp_js_sdk.ExtendedCheckoutUpdateRequestSchema.passthrough();
|
|
35
|
+
const CompleteCheckoutRequestSchema = __omnixhq_ucp_js_sdk.CheckoutCompleteRequestSchema.passthrough();
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
30
38
|
//#region src/http.ts
|
|
31
39
|
var HttpClient = class HttpClient {
|
|
32
40
|
gatewayUrl;
|
|
@@ -106,6 +114,37 @@ function parseMessages(rawMessages) {
|
|
|
106
114
|
return rawMessages.map((m) => {
|
|
107
115
|
const record = m;
|
|
108
116
|
const rawType = String(record["type"] ?? "error");
|
|
117
|
+
if (rawType === "error") {
|
|
118
|
+
const parsed = __omnixhq_ucp_js_sdk.MessageErrorSchema.safeParse(m);
|
|
119
|
+
if (parsed.success) return {
|
|
120
|
+
type: "error",
|
|
121
|
+
code: parsed.data.code,
|
|
122
|
+
content: parsed.data.content,
|
|
123
|
+
severity: parsed.data.severity,
|
|
124
|
+
...parsed.data.path !== void 0 ? { path: parsed.data.path } : {},
|
|
125
|
+
...parsed.data.content_type !== void 0 ? { content_type: parsed.data.content_type } : {}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
if (rawType === "warning") {
|
|
129
|
+
const parsed = __omnixhq_ucp_js_sdk.MessageWarningSchema.safeParse(m);
|
|
130
|
+
if (parsed.success) return {
|
|
131
|
+
type: "warning",
|
|
132
|
+
code: parsed.data.code,
|
|
133
|
+
content: parsed.data.content,
|
|
134
|
+
...parsed.data.path !== void 0 ? { path: parsed.data.path } : {},
|
|
135
|
+
...parsed.data.content_type !== void 0 ? { content_type: parsed.data.content_type } : {}
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
if (rawType === "info") {
|
|
139
|
+
const parsed = __omnixhq_ucp_js_sdk.MessageInfoSchema.safeParse(m);
|
|
140
|
+
if (parsed.success) return {
|
|
141
|
+
type: "info",
|
|
142
|
+
content: parsed.data.content,
|
|
143
|
+
...parsed.data.code !== void 0 ? { code: parsed.data.code } : {},
|
|
144
|
+
...parsed.data.path !== void 0 ? { path: parsed.data.path } : {},
|
|
145
|
+
...parsed.data.content_type !== void 0 ? { content_type: parsed.data.content_type } : {}
|
|
146
|
+
};
|
|
147
|
+
}
|
|
109
148
|
const validTypes = [
|
|
110
149
|
"error",
|
|
111
150
|
"warning",
|
|
@@ -123,54 +162,6 @@ function parseMessages(rawMessages) {
|
|
|
123
162
|
});
|
|
124
163
|
}
|
|
125
164
|
|
|
126
|
-
//#endregion
|
|
127
|
-
//#region src/schemas.ts
|
|
128
|
-
const CheckoutSessionSchema = __ucp_js_sdk.ExtendedCheckoutResponseSchema.passthrough();
|
|
129
|
-
const UCPProfileSchema = __ucp_js_sdk.UcpDiscoveryProfileSchema.passthrough();
|
|
130
|
-
const UCPProductSchema = zod.z.object({
|
|
131
|
-
id: zod.z.string(),
|
|
132
|
-
title: zod.z.string(),
|
|
133
|
-
description: zod.z.string().nullable(),
|
|
134
|
-
price_cents: zod.z.number().int(),
|
|
135
|
-
currency: zod.z.string().min(3).max(3),
|
|
136
|
-
in_stock: zod.z.boolean(),
|
|
137
|
-
stock_quantity: zod.z.number().int().min(0),
|
|
138
|
-
images: zod.z.array(zod.z.string().url()),
|
|
139
|
-
variants: zod.z.array(zod.z.object({
|
|
140
|
-
id: zod.z.string(),
|
|
141
|
-
title: zod.z.string(),
|
|
142
|
-
price_cents: zod.z.number().int(),
|
|
143
|
-
in_stock: zod.z.boolean(),
|
|
144
|
-
attributes: zod.z.record(zod.z.string())
|
|
145
|
-
}).passthrough())
|
|
146
|
-
}).passthrough();
|
|
147
|
-
const UCPOrderSchema = zod.z.object({
|
|
148
|
-
id: zod.z.string(),
|
|
149
|
-
status: zod.z.enum([
|
|
150
|
-
"pending",
|
|
151
|
-
"processing",
|
|
152
|
-
"shipped",
|
|
153
|
-
"delivered",
|
|
154
|
-
"canceled"
|
|
155
|
-
]),
|
|
156
|
-
total_cents: zod.z.number().int(),
|
|
157
|
-
currency: zod.z.string().min(3).max(3),
|
|
158
|
-
created_at_iso: zod.z.string().datetime({ offset: true })
|
|
159
|
-
}).passthrough();
|
|
160
|
-
const CreateCheckoutRequestSchema = __ucp_js_sdk.ExtendedCheckoutCreateRequestSchema.passthrough();
|
|
161
|
-
const UpdateCheckoutRequestSchema = __ucp_js_sdk.ExtendedCheckoutUpdateRequestSchema.passthrough();
|
|
162
|
-
const CompleteCheckoutRequestSchema = zod.z.object({ payment: zod.z.object({ instruments: zod.z.array(zod.z.object({
|
|
163
|
-
id: zod.z.string(),
|
|
164
|
-
handler_id: zod.z.string(),
|
|
165
|
-
type: zod.z.string(),
|
|
166
|
-
selected: zod.z.boolean().optional(),
|
|
167
|
-
credential: zod.z.object({
|
|
168
|
-
type: zod.z.string(),
|
|
169
|
-
token: zod.z.string().optional()
|
|
170
|
-
}).optional(),
|
|
171
|
-
billing_address: zod.z.unknown().optional()
|
|
172
|
-
}).passthrough()) }) });
|
|
173
|
-
|
|
174
165
|
//#endregion
|
|
175
166
|
//#region src/capabilities/checkout.ts
|
|
176
167
|
const DEFAULT_METHOD_ID = "default";
|
|
@@ -262,7 +253,12 @@ var OrderCapability = class {
|
|
|
262
253
|
/** Retrieve an order by ID. Returns the UCP spec-compliant Order object. */
|
|
263
254
|
async get(id) {
|
|
264
255
|
const data = await this.http.request("GET", `/orders/${encodeURIComponent(id)}`);
|
|
265
|
-
return this.http.validate(data,
|
|
256
|
+
return this.http.validate(data, __omnixhq_ucp_js_sdk.OrderSchema);
|
|
257
|
+
}
|
|
258
|
+
/** Update an order with fulfillment events, adjustments, or status changes. */
|
|
259
|
+
async update(id, payload) {
|
|
260
|
+
const data = await this.http.request("PUT", `/orders/${encodeURIComponent(id)}`, payload);
|
|
261
|
+
return this.http.validate(data, __omnixhq_ucp_js_sdk.OrderSchema);
|
|
266
262
|
}
|
|
267
263
|
};
|
|
268
264
|
|
|
@@ -344,36 +340,6 @@ function encodeBasicAuth(username, password) {
|
|
|
344
340
|
return `Basic ${Buffer.from(`${username}:${password}`).toString("base64")}`;
|
|
345
341
|
}
|
|
346
342
|
|
|
347
|
-
//#endregion
|
|
348
|
-
//#region src/capabilities/products.ts
|
|
349
|
-
/** Product catalog search and retrieval. Always available (gateway-specific, not part of UCP spec). */
|
|
350
|
-
var ProductsCapability = class {
|
|
351
|
-
constructor(http) {
|
|
352
|
-
this.http = http;
|
|
353
|
-
}
|
|
354
|
-
/** Search products by query string with optional filters. */
|
|
355
|
-
async search(query, filters = {}) {
|
|
356
|
-
const params = new URLSearchParams({ q: query });
|
|
357
|
-
const filterEntries = [
|
|
358
|
-
["max_price_cents", filters.max_price_cents],
|
|
359
|
-
["min_price_cents", filters.min_price_cents],
|
|
360
|
-
["in_stock", filters.in_stock],
|
|
361
|
-
["category", filters.category],
|
|
362
|
-
["limit", filters.limit],
|
|
363
|
-
["page", filters.page]
|
|
364
|
-
];
|
|
365
|
-
for (const [key, value] of filterEntries) if (value != null) params.set(key, String(value));
|
|
366
|
-
const res = await this.http.request("GET", `/ucp/products?${params.toString()}`);
|
|
367
|
-
const data = res;
|
|
368
|
-
const products = Array.isArray(data) ? data : data.products ?? [];
|
|
369
|
-
return products.map((p) => this.http.validate(p, UCPProductSchema));
|
|
370
|
-
}
|
|
371
|
-
async get(id) {
|
|
372
|
-
const data = await this.http.request("GET", `/ucp/products/${encodeURIComponent(id)}`);
|
|
373
|
-
return this.http.validate(data, UCPProductSchema);
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
|
|
377
343
|
//#endregion
|
|
378
344
|
//#region src/types/config.ts
|
|
379
345
|
const DEFAULT_UCP_VERSION = "2026-01-23";
|
|
@@ -424,7 +390,7 @@ const UCP_CAPABILITIES = {
|
|
|
424
390
|
* ```
|
|
425
391
|
*/
|
|
426
392
|
function getAgentTools(client) {
|
|
427
|
-
const tools = [
|
|
393
|
+
const tools = [];
|
|
428
394
|
if (client.checkout) {
|
|
429
395
|
tools.push(...checkoutTools(client));
|
|
430
396
|
if (client.checkout.extensions.fulfillment) tools.push(...fulfillmentTools(client));
|
|
@@ -434,58 +400,6 @@ function getAgentTools(client) {
|
|
|
434
400
|
if (client.identityLinking) tools.push(...identityLinkingTools(client));
|
|
435
401
|
return tools;
|
|
436
402
|
}
|
|
437
|
-
function productTools(client) {
|
|
438
|
-
return [{
|
|
439
|
-
name: "search_products",
|
|
440
|
-
description: "Search the product catalog by query string. Returns matching products with prices, availability, and images.",
|
|
441
|
-
parameters: {
|
|
442
|
-
type: "object",
|
|
443
|
-
properties: {
|
|
444
|
-
query: {
|
|
445
|
-
type: "string",
|
|
446
|
-
description: "Search query (e.g., \"running shoes\")"
|
|
447
|
-
},
|
|
448
|
-
max_price_cents: {
|
|
449
|
-
type: "number",
|
|
450
|
-
description: "Maximum price in cents"
|
|
451
|
-
},
|
|
452
|
-
min_price_cents: {
|
|
453
|
-
type: "number",
|
|
454
|
-
description: "Minimum price in cents"
|
|
455
|
-
},
|
|
456
|
-
in_stock: {
|
|
457
|
-
type: "boolean",
|
|
458
|
-
description: "Filter to in-stock items only"
|
|
459
|
-
},
|
|
460
|
-
category: {
|
|
461
|
-
type: "string",
|
|
462
|
-
description: "Product category"
|
|
463
|
-
},
|
|
464
|
-
limit: {
|
|
465
|
-
type: "number",
|
|
466
|
-
description: "Max results to return"
|
|
467
|
-
}
|
|
468
|
-
},
|
|
469
|
-
required: ["query"]
|
|
470
|
-
},
|
|
471
|
-
execute: async (params) => {
|
|
472
|
-
const { query,...filters } = params;
|
|
473
|
-
return client.products.search(query, filters);
|
|
474
|
-
}
|
|
475
|
-
}, {
|
|
476
|
-
name: "get_product",
|
|
477
|
-
description: "Get detailed product information by ID, including variants, images, and stock.",
|
|
478
|
-
parameters: {
|
|
479
|
-
type: "object",
|
|
480
|
-
properties: { id: {
|
|
481
|
-
type: "string",
|
|
482
|
-
description: "Product ID"
|
|
483
|
-
} },
|
|
484
|
-
required: ["id"]
|
|
485
|
-
},
|
|
486
|
-
execute: async (params) => client.products.get(params["id"])
|
|
487
|
-
}];
|
|
488
|
-
}
|
|
489
403
|
function checkoutTools(client) {
|
|
490
404
|
return [
|
|
491
405
|
{
|
|
@@ -769,6 +683,32 @@ function orderTools(client) {
|
|
|
769
683
|
required: ["id"]
|
|
770
684
|
},
|
|
771
685
|
execute: async (params) => client.order.get(params["id"])
|
|
686
|
+
}, {
|
|
687
|
+
name: "update_order",
|
|
688
|
+
description: "Update an order with fulfillment events, adjustments, or status changes.",
|
|
689
|
+
parameters: {
|
|
690
|
+
type: "object",
|
|
691
|
+
properties: {
|
|
692
|
+
id: {
|
|
693
|
+
type: "string",
|
|
694
|
+
description: "Order ID"
|
|
695
|
+
},
|
|
696
|
+
fulfillment: {
|
|
697
|
+
type: "object",
|
|
698
|
+
description: "Fulfillment update data (events, tracking)"
|
|
699
|
+
},
|
|
700
|
+
adjustments: {
|
|
701
|
+
type: "array",
|
|
702
|
+
description: "Order adjustments (refunds, returns)",
|
|
703
|
+
items: { type: "object" }
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
required: ["id"]
|
|
707
|
+
},
|
|
708
|
+
execute: async (params) => {
|
|
709
|
+
const { id,...payload } = params;
|
|
710
|
+
return client.order.update(id, payload);
|
|
711
|
+
}
|
|
772
712
|
}];
|
|
773
713
|
}
|
|
774
714
|
function identityLinkingTools(client) {
|
|
@@ -926,14 +866,12 @@ async function connect(config, options) {
|
|
|
926
866
|
const checkout = buildCheckoutCapability(http, capabilityNames);
|
|
927
867
|
const order = capabilityNames.has(UCP_CAPABILITIES.ORDER) ? new OrderCapability(http) : null;
|
|
928
868
|
const identityLinking = await buildIdentityLinking(config, capabilityNames);
|
|
929
|
-
const products = new ProductsCapability(http);
|
|
930
869
|
const paymentHandlers = extractPaymentHandlers(profile);
|
|
931
870
|
const client = {
|
|
932
871
|
profile,
|
|
933
872
|
checkout,
|
|
934
873
|
order,
|
|
935
874
|
identityLinking,
|
|
936
|
-
products,
|
|
937
875
|
paymentHandlers,
|
|
938
876
|
describeTools: () => buildToolDescriptors(checkout, order, identityLinking),
|
|
939
877
|
getAgentTools: () => getAgentTools(client)
|
|
@@ -963,8 +901,8 @@ function validateConfig(config) {
|
|
|
963
901
|
}
|
|
964
902
|
function extractCapabilityNames(profile) {
|
|
965
903
|
const capabilities = profile.ucp?.capabilities;
|
|
966
|
-
if (
|
|
967
|
-
return new Set(
|
|
904
|
+
if (typeof capabilities !== "object" || capabilities === null) return new Set();
|
|
905
|
+
return new Set(Object.keys(capabilities));
|
|
968
906
|
}
|
|
969
907
|
const PaymentHandlerInstanceSchema = zod.z.object({
|
|
970
908
|
id: zod.z.string(),
|
|
@@ -1014,15 +952,7 @@ async function buildIdentityLinking(config, capabilityNames) {
|
|
|
1014
952
|
return new IdentityLinkingCapability(parsed.data);
|
|
1015
953
|
}
|
|
1016
954
|
function buildToolDescriptors(checkout, order, identityLinking) {
|
|
1017
|
-
const tools = [
|
|
1018
|
-
name: "search_products",
|
|
1019
|
-
capability: "products",
|
|
1020
|
-
description: "Search product catalog"
|
|
1021
|
-
}, {
|
|
1022
|
-
name: "get_product",
|
|
1023
|
-
capability: "products",
|
|
1024
|
-
description: "Get product by ID"
|
|
1025
|
-
}];
|
|
955
|
+
const tools = [];
|
|
1026
956
|
if (checkout) {
|
|
1027
957
|
tools.push({
|
|
1028
958
|
name: "create_checkout",
|
|
@@ -1068,6 +998,10 @@ function buildToolDescriptors(checkout, order, identityLinking) {
|
|
|
1068
998
|
name: "get_order",
|
|
1069
999
|
capability: "order",
|
|
1070
1000
|
description: "Get order by ID"
|
|
1001
|
+
}, {
|
|
1002
|
+
name: "update_order",
|
|
1003
|
+
capability: "order",
|
|
1004
|
+
description: "Update an order"
|
|
1071
1005
|
});
|
|
1072
1006
|
if (identityLinking) tools.push({
|
|
1073
1007
|
name: "get_authorization_url",
|
|
@@ -1090,37 +1024,113 @@ function buildToolDescriptors(checkout, order, identityLinking) {
|
|
|
1090
1024
|
}
|
|
1091
1025
|
|
|
1092
1026
|
//#endregion
|
|
1093
|
-
exports.
|
|
1027
|
+
exports.AccountInfoSchema = __omnixhq_ucp_js_sdk.AccountInfoSchema
|
|
1028
|
+
exports.AdjustmentSchema = __omnixhq_ucp_js_sdk.AdjustmentSchema
|
|
1029
|
+
exports.Ap2MandateAp2WithCheckoutMandateSchema = __omnixhq_ucp_js_sdk.Ap2MandateAp2WithCheckoutMandateSchema
|
|
1030
|
+
exports.Ap2MandateAp2WithMerchantAuthorizationSchema = __omnixhq_ucp_js_sdk.Ap2MandateAp2WithMerchantAuthorizationSchema
|
|
1031
|
+
exports.Ap2MandateCheckoutMandateSchema = __omnixhq_ucp_js_sdk.Ap2MandateCheckoutMandateSchema
|
|
1032
|
+
exports.Ap2MandateErrorCodeSchema = __omnixhq_ucp_js_sdk.Ap2MandateErrorCodeSchema
|
|
1033
|
+
exports.Ap2MandateMerchantAuthorizationSchema = __omnixhq_ucp_js_sdk.Ap2MandateMerchantAuthorizationSchema
|
|
1034
|
+
exports.BindingSchema = __omnixhq_ucp_js_sdk.BindingSchema
|
|
1035
|
+
exports.BusinessFulfillmentConfigSchema = __omnixhq_ucp_js_sdk.BusinessFulfillmentConfigSchema
|
|
1036
|
+
exports.BuyerConsentBuyerSchema = __omnixhq_ucp_js_sdk.BuyerConsentBuyerSchema
|
|
1037
|
+
exports.BuyerConsentConsentSchema = __omnixhq_ucp_js_sdk.BuyerConsentConsentSchema
|
|
1038
|
+
exports.BuyerSchema = __omnixhq_ucp_js_sdk.BuyerSchema
|
|
1039
|
+
exports.CapabilityBaseSchema = __omnixhq_ucp_js_sdk.CapabilityBaseSchema
|
|
1040
|
+
exports.CapabilityBusinessSchema = __omnixhq_ucp_js_sdk.CapabilityBusinessSchema
|
|
1041
|
+
exports.CapabilityPlatformSchema = __omnixhq_ucp_js_sdk.CapabilityPlatformSchema
|
|
1042
|
+
exports.CapabilityResponseSchema = __omnixhq_ucp_js_sdk.CapabilityResponseSchema
|
|
1043
|
+
exports.CardCredentialSchema = __omnixhq_ucp_js_sdk.CardCredentialSchema
|
|
1044
|
+
exports.CardPaymentInstrumentSchema = __omnixhq_ucp_js_sdk.CardPaymentInstrumentSchema
|
|
1094
1045
|
exports.CheckoutCapability = CheckoutCapability
|
|
1095
|
-
exports.
|
|
1046
|
+
exports.CheckoutCompleteRequestSchema = __omnixhq_ucp_js_sdk.CheckoutCompleteRequestSchema
|
|
1047
|
+
exports.CheckoutCreateRequestSchema = __omnixhq_ucp_js_sdk.CheckoutCreateRequestSchema
|
|
1048
|
+
exports.CheckoutResponseSchema = __omnixhq_ucp_js_sdk.CheckoutResponseSchema
|
|
1049
|
+
exports.CheckoutResponseStatusSchema = __omnixhq_ucp_js_sdk.CheckoutResponseStatusSchema
|
|
1050
|
+
exports.CheckoutSchema = __omnixhq_ucp_js_sdk.CheckoutSchema
|
|
1096
1051
|
exports.CheckoutSessionSchema = CheckoutSessionSchema
|
|
1052
|
+
exports.CheckoutUpdateRequestSchema = __omnixhq_ucp_js_sdk.CheckoutUpdateRequestSchema
|
|
1097
1053
|
exports.CompleteCheckoutRequestSchema = CompleteCheckoutRequestSchema
|
|
1054
|
+
exports.ContextSchema = __omnixhq_ucp_js_sdk.ContextSchema
|
|
1098
1055
|
exports.CreateCheckoutRequestSchema = CreateCheckoutRequestSchema
|
|
1099
1056
|
exports.DEFAULT_UCP_VERSION = DEFAULT_UCP_VERSION
|
|
1100
|
-
exports.
|
|
1101
|
-
exports.
|
|
1057
|
+
exports.DiscountAllocationSchema = __omnixhq_ucp_js_sdk.DiscountAllocationSchema
|
|
1058
|
+
exports.DiscountAppliedDiscountSchema = __omnixhq_ucp_js_sdk.DiscountAppliedDiscountSchema
|
|
1059
|
+
exports.DiscountDiscountsObjectSchema = __omnixhq_ucp_js_sdk.DiscountDiscountsObjectSchema
|
|
1060
|
+
exports.EmbeddedConfigSchema = __omnixhq_ucp_js_sdk.EmbeddedConfigSchema
|
|
1061
|
+
exports.ExpectationSchema = __omnixhq_ucp_js_sdk.ExpectationSchema
|
|
1062
|
+
exports.ExtendedPaymentCredentialSchema = __omnixhq_ucp_js_sdk.ExtendedPaymentCredentialSchema
|
|
1063
|
+
exports.FulfillmentAvailableMethodSchema = __omnixhq_ucp_js_sdk.FulfillmentAvailableMethodSchema
|
|
1064
|
+
exports.FulfillmentDestinationSchema = __omnixhq_ucp_js_sdk.FulfillmentDestinationSchema
|
|
1065
|
+
exports.FulfillmentEventSchema = __omnixhq_ucp_js_sdk.FulfillmentEventSchema
|
|
1066
|
+
exports.FulfillmentExtensionFulfillmentAvailableMethodSchema = __omnixhq_ucp_js_sdk.FulfillmentExtensionFulfillmentAvailableMethodSchema
|
|
1067
|
+
exports.FulfillmentExtensionFulfillmentGroupSchema = __omnixhq_ucp_js_sdk.FulfillmentExtensionFulfillmentGroupSchema
|
|
1068
|
+
exports.FulfillmentExtensionFulfillmentMethodSchema = __omnixhq_ucp_js_sdk.FulfillmentExtensionFulfillmentMethodSchema
|
|
1069
|
+
exports.FulfillmentExtensionFulfillmentOptionSchema = __omnixhq_ucp_js_sdk.FulfillmentExtensionFulfillmentOptionSchema
|
|
1070
|
+
exports.FulfillmentExtensionFulfillmentSchema = __omnixhq_ucp_js_sdk.FulfillmentExtensionFulfillmentSchema
|
|
1071
|
+
exports.FulfillmentGroupSchema = __omnixhq_ucp_js_sdk.FulfillmentGroupSchema
|
|
1072
|
+
exports.FulfillmentGroupUpdateRequestSchema = __omnixhq_ucp_js_sdk.FulfillmentGroupUpdateRequestSchema
|
|
1073
|
+
exports.FulfillmentMethodCreateRequestSchema = __omnixhq_ucp_js_sdk.FulfillmentMethodCreateRequestSchema
|
|
1074
|
+
exports.FulfillmentMethodResponseSchema = __omnixhq_ucp_js_sdk.FulfillmentMethodResponseSchema
|
|
1075
|
+
exports.FulfillmentMethodSchema = __omnixhq_ucp_js_sdk.FulfillmentMethodSchema
|
|
1076
|
+
exports.FulfillmentMethodUpdateRequestSchema = __omnixhq_ucp_js_sdk.FulfillmentMethodUpdateRequestSchema
|
|
1077
|
+
exports.FulfillmentOptionSchema = __omnixhq_ucp_js_sdk.FulfillmentOptionSchema
|
|
1078
|
+
exports.FulfillmentResponseSchema = __omnixhq_ucp_js_sdk.FulfillmentResponseSchema
|
|
1079
|
+
exports.FulfillmentSchema = __omnixhq_ucp_js_sdk.FulfillmentSchema
|
|
1102
1080
|
exports.IdentityLinkingCapability = IdentityLinkingCapability
|
|
1103
|
-
exports.ItemResponseSchema =
|
|
1104
|
-
exports.
|
|
1105
|
-
exports.
|
|
1106
|
-
exports.
|
|
1081
|
+
exports.ItemResponseSchema = __omnixhq_ucp_js_sdk.ItemResponseSchema
|
|
1082
|
+
exports.ItemSchema = __omnixhq_ucp_js_sdk.ItemSchema
|
|
1083
|
+
exports.LineItemResponseSchema = __omnixhq_ucp_js_sdk.LineItemResponseSchema
|
|
1084
|
+
exports.LineItemSchema = __omnixhq_ucp_js_sdk.LineItemSchema
|
|
1085
|
+
exports.LineItemUpdateRequestSchema = __omnixhq_ucp_js_sdk.LineItemUpdateRequestSchema
|
|
1086
|
+
exports.LinkSchema = __omnixhq_ucp_js_sdk.LinkSchema
|
|
1087
|
+
exports.MerchantFulfillmentConfigSchema = __omnixhq_ucp_js_sdk.MerchantFulfillmentConfigSchema
|
|
1088
|
+
exports.MessageErrorSchema = __omnixhq_ucp_js_sdk.MessageErrorSchema
|
|
1089
|
+
exports.MessageInfoSchema = __omnixhq_ucp_js_sdk.MessageInfoSchema
|
|
1090
|
+
exports.MessageSchema = __omnixhq_ucp_js_sdk.MessageSchema
|
|
1091
|
+
exports.MessageWarningSchema = __omnixhq_ucp_js_sdk.MessageWarningSchema
|
|
1107
1092
|
exports.OrderCapability = OrderCapability
|
|
1108
|
-
exports.
|
|
1109
|
-
exports.
|
|
1110
|
-
exports.
|
|
1111
|
-
exports.
|
|
1112
|
-
exports.
|
|
1113
|
-
exports.
|
|
1093
|
+
exports.OrderConfirmationSchema = __omnixhq_ucp_js_sdk.OrderConfirmationSchema
|
|
1094
|
+
exports.OrderLineItemSchema = __omnixhq_ucp_js_sdk.OrderLineItemSchema
|
|
1095
|
+
exports.OrderUpdateSchema = __omnixhq_ucp_js_sdk.OrderUpdateSchema
|
|
1096
|
+
exports.PaymentCredentialSchema = __omnixhq_ucp_js_sdk.PaymentCredentialSchema
|
|
1097
|
+
exports.PaymentHandlerBaseSchema = __omnixhq_ucp_js_sdk.PaymentHandlerBaseSchema
|
|
1098
|
+
exports.PaymentHandlerBusinessSchema = __omnixhq_ucp_js_sdk.PaymentHandlerBusinessSchema
|
|
1099
|
+
exports.PaymentHandlerPlatformSchema = __omnixhq_ucp_js_sdk.PaymentHandlerPlatformSchema
|
|
1100
|
+
exports.PaymentHandlerResponseSchema = __omnixhq_ucp_js_sdk.PaymentHandlerResponseSchema
|
|
1101
|
+
exports.PaymentIdentitySchema = __omnixhq_ucp_js_sdk.PaymentIdentitySchema
|
|
1102
|
+
exports.PaymentInstrumentResponseSchema = __omnixhq_ucp_js_sdk.PaymentInstrumentResponseSchema
|
|
1103
|
+
exports.PaymentInstrumentSchema = __omnixhq_ucp_js_sdk.PaymentInstrumentSchema
|
|
1104
|
+
exports.PaymentResponseSchema = __omnixhq_ucp_js_sdk.PaymentResponseSchema
|
|
1105
|
+
exports.PaymentSchema = __omnixhq_ucp_js_sdk.PaymentSchema
|
|
1106
|
+
exports.PlatformConfigSchema = __omnixhq_ucp_js_sdk.PlatformConfigSchema
|
|
1107
|
+
exports.PlatformFulfillmentConfigSchema = __omnixhq_ucp_js_sdk.PlatformFulfillmentConfigSchema
|
|
1108
|
+
exports.PostalAddressSchema = __omnixhq_ucp_js_sdk.PostalAddressSchema
|
|
1109
|
+
exports.RetailLocationSchema = __omnixhq_ucp_js_sdk.RetailLocationSchema
|
|
1110
|
+
exports.ServiceBaseSchema = __omnixhq_ucp_js_sdk.ServiceBaseSchema
|
|
1111
|
+
exports.ServiceBusinessSchema = __omnixhq_ucp_js_sdk.ServiceBusinessSchema
|
|
1112
|
+
exports.ServicePlatformSchema = __omnixhq_ucp_js_sdk.ServicePlatformSchema
|
|
1113
|
+
exports.ServiceResponseSchema = __omnixhq_ucp_js_sdk.ServiceResponseSchema
|
|
1114
|
+
exports.ShippingDestinationSchema = __omnixhq_ucp_js_sdk.ShippingDestinationSchema
|
|
1115
|
+
exports.TokenCredentialSchema = __omnixhq_ucp_js_sdk.TokenCredentialSchema
|
|
1116
|
+
exports.TotalResponseSchema = __omnixhq_ucp_js_sdk.TotalResponseSchema
|
|
1117
|
+
exports.TotalSchema = __omnixhq_ucp_js_sdk.TotalSchema
|
|
1114
1118
|
exports.UCPClient = UCPClient
|
|
1115
1119
|
exports.UCPError = require_errors.UCPError
|
|
1116
1120
|
exports.UCPEscalationError = require_errors.UCPEscalationError
|
|
1117
1121
|
exports.UCPIdempotencyConflictError = require_errors.UCPIdempotencyConflictError
|
|
1118
1122
|
exports.UCPOAuthError = require_errors.UCPOAuthError
|
|
1119
|
-
exports.UCPOrderSchema = UCPOrderSchema
|
|
1120
|
-
exports.UCPProductSchema = UCPProductSchema
|
|
1121
1123
|
exports.UCPProfileSchema = UCPProfileSchema
|
|
1122
|
-
exports.UCPSpecOrderSchema =
|
|
1124
|
+
exports.UCPSpecOrderSchema = __omnixhq_ucp_js_sdk.OrderSchema
|
|
1123
1125
|
exports.UCP_CAPABILITIES = UCP_CAPABILITIES
|
|
1126
|
+
exports.UcpBaseSchema = __omnixhq_ucp_js_sdk.UcpBaseSchema
|
|
1127
|
+
exports.UcpBusinessSchema = __omnixhq_ucp_js_sdk.UcpBusinessSchema
|
|
1128
|
+
exports.UcpEntitySchema = __omnixhq_ucp_js_sdk.UcpEntitySchema
|
|
1129
|
+
exports.UcpPlatformSchema = __omnixhq_ucp_js_sdk.UcpPlatformSchema
|
|
1130
|
+
exports.UcpResponseCheckoutSchema = __omnixhq_ucp_js_sdk.UcpResponseCheckoutSchema
|
|
1131
|
+
exports.UcpResponseOrderSchema = __omnixhq_ucp_js_sdk.UcpResponseOrderSchema
|
|
1132
|
+
exports.UcpReverseDomainNameSchema = __omnixhq_ucp_js_sdk.UcpReverseDomainNameSchema
|
|
1133
|
+
exports.UcpVersionSchema = __omnixhq_ucp_js_sdk.UcpVersionSchema
|
|
1124
1134
|
exports.UpdateCheckoutRequestSchema = UpdateCheckoutRequestSchema
|
|
1125
1135
|
exports.connect = connect
|
|
1126
1136
|
exports.getAgentTools = getAgentTools
|