@omnixhq/ucp-client 2.5.0 → 3.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/dist/adapters/anthropic.cjs +2 -6
- package/dist/adapters/anthropic.cjs.map +1 -1
- package/dist/adapters/anthropic.d.cts +1 -1
- package/dist/adapters/anthropic.d.ts +1 -1
- package/dist/adapters/anthropic.js +2 -6
- package/dist/adapters/anthropic.js.map +1 -1
- package/dist/adapters/langchain.cjs +1 -1
- package/dist/adapters/langchain.d.cts +1 -1
- package/dist/adapters/langchain.d.ts +1 -1
- package/dist/adapters/langchain.js +1 -1
- package/dist/adapters/mcp.cjs +2 -6
- package/dist/adapters/mcp.cjs.map +1 -1
- package/dist/adapters/mcp.d.cts +1 -1
- package/dist/adapters/mcp.d.ts +1 -1
- package/dist/adapters/mcp.js +2 -6
- package/dist/adapters/mcp.js.map +1 -1
- package/dist/adapters/openai.cjs +2 -6
- package/dist/adapters/openai.cjs.map +1 -1
- package/dist/adapters/openai.d.cts +1 -1
- package/dist/adapters/openai.d.ts +1 -1
- package/dist/adapters/openai.js +2 -6
- package/dist/adapters/openai.js.map +1 -1
- package/dist/adapters/vercel-ai.cjs +1 -1
- package/dist/adapters/vercel-ai.d.cts +1 -1
- package/dist/adapters/vercel-ai.d.ts +1 -1
- package/dist/adapters/vercel-ai.js +1 -1
- package/dist/{catch-errors-DRxDkLOW.d.cts → catch-errors-B4orhUQa.d.cts} +2123 -385
- package/dist/catch-errors-B4orhUQa.d.cts.map +1 -0
- package/dist/{catch-errors-Cpn2vHir.js → catch-errors-CLgZxgI8.js} +9 -2
- package/dist/catch-errors-CLgZxgI8.js.map +1 -0
- package/dist/{catch-errors-DkF9AMDo.d.ts → catch-errors-CM_1SIc1.d.ts} +2126 -388
- package/dist/catch-errors-CM_1SIc1.d.ts.map +1 -0
- package/dist/{catch-errors-BZP237w4.cjs → catch-errors-tAkTCXMe.cjs} +14 -1
- package/dist/catch-errors-tAkTCXMe.cjs.map +1 -0
- package/dist/index.cjs +1203 -121
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +325 -16
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/catch-errors-BZP237w4.cjs.map +0 -1
- package/dist/catch-errors-Cpn2vHir.js.map +0 -1
- package/dist/catch-errors-DRxDkLOW.d.cts.map +0 -1
- package/dist/catch-errors-DkF9AMDo.d.ts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -30,6 +30,7 @@ const __omnixhq_ucp_js_sdk = __toESM(require("@omnixhq/ucp-js-sdk"));
|
|
|
30
30
|
//#region src/schemas.ts
|
|
31
31
|
const CheckoutSessionSchema = __omnixhq_ucp_js_sdk.CheckoutResponseSchema;
|
|
32
32
|
const UCPProfileSchema = __omnixhq_ucp_js_sdk.UcpDiscoveryProfileSchema;
|
|
33
|
+
const CartResponseSchema = __omnixhq_ucp_js_sdk.CartSchema;
|
|
33
34
|
const CreateCheckoutRequestSchema = __omnixhq_ucp_js_sdk.CheckoutCreateRequestSchema;
|
|
34
35
|
const UpdateCheckoutRequestSchema = __omnixhq_ucp_js_sdk.CheckoutUpdateRequestSchema;
|
|
35
36
|
const CompleteCheckoutRequestSchema = __omnixhq_ucp_js_sdk.CheckoutCompleteRequestSchema;
|
|
@@ -82,7 +83,7 @@ var HttpClient = class HttpClient {
|
|
|
82
83
|
headers,
|
|
83
84
|
...body !== void 0 ? { body: JSON.stringify(body) } : {}
|
|
84
85
|
});
|
|
85
|
-
const data = await
|
|
86
|
+
const data = await this.parseResponseBody(res);
|
|
86
87
|
if (!res.ok) this.throwFromResponse(data, res.status);
|
|
87
88
|
return data;
|
|
88
89
|
}
|
|
@@ -94,6 +95,18 @@ var HttpClient = class HttpClient {
|
|
|
94
95
|
}
|
|
95
96
|
return result.data;
|
|
96
97
|
}
|
|
98
|
+
async parseResponseBody(res) {
|
|
99
|
+
if (typeof res.text === "function") {
|
|
100
|
+
const text = await res.text();
|
|
101
|
+
try {
|
|
102
|
+
return JSON.parse(text);
|
|
103
|
+
} catch {
|
|
104
|
+
if (!res.ok) throw new require_errors.UCPError("HTTP_ERROR", `Gateway returned ${res.status} with non-JSON body: ${text.slice(0, 200)}`, "error", res.status);
|
|
105
|
+
return {};
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return await res.json().catch(() => ({}));
|
|
109
|
+
}
|
|
97
110
|
throwFromResponse(data, statusCode) {
|
|
98
111
|
if (typeof data === "object" && data !== null && Array.isArray(data["messages"])) {
|
|
99
112
|
const rawMessages = data["messages"];
|
|
@@ -155,7 +168,7 @@ function parseMessages(rawMessages) {
|
|
|
155
168
|
const type = validTypes.includes(rawType) ? rawType : "error";
|
|
156
169
|
return {
|
|
157
170
|
type,
|
|
158
|
-
content: String(record["content"] ?? "Unknown error"),
|
|
171
|
+
content: String(record["content"] ?? record["text"] ?? record["message"] ?? "Unknown error"),
|
|
159
172
|
...record["code"] !== void 0 ? { code: String(record["code"]) } : {}
|
|
160
173
|
};
|
|
161
174
|
});
|
|
@@ -270,6 +283,58 @@ var OrderCapability = class {
|
|
|
270
283
|
}
|
|
271
284
|
};
|
|
272
285
|
|
|
286
|
+
//#endregion
|
|
287
|
+
//#region src/capabilities/catalog.ts
|
|
288
|
+
/**
|
|
289
|
+
* Catalog operations. Available when the server declares
|
|
290
|
+
* `dev.ucp.shopping.catalog.search` and/or `dev.ucp.shopping.catalog.lookup`.
|
|
291
|
+
*/
|
|
292
|
+
var CatalogCapability = class {
|
|
293
|
+
extensions;
|
|
294
|
+
constructor(http, extensions) {
|
|
295
|
+
this.http = http;
|
|
296
|
+
this.extensions = extensions;
|
|
297
|
+
}
|
|
298
|
+
async search(query, filters, pagination) {
|
|
299
|
+
const payload = {
|
|
300
|
+
query,
|
|
301
|
+
...filters !== void 0 ? { filters } : {},
|
|
302
|
+
...pagination !== void 0 ? { pagination } : {}
|
|
303
|
+
};
|
|
304
|
+
const data = await this.http.request("POST", "/catalog/search", payload);
|
|
305
|
+
return this.http.validate(data, __omnixhq_ucp_js_sdk.CatalogSearchSchema);
|
|
306
|
+
}
|
|
307
|
+
async getProduct(productId) {
|
|
308
|
+
const data = await this.http.request("POST", "/catalog/product", { id: productId });
|
|
309
|
+
return this.http.validate(data, __omnixhq_ucp_js_sdk.CatalogLookupSchema);
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
//#endregion
|
|
314
|
+
//#region src/capabilities/cart.ts
|
|
315
|
+
/** Cart operations. Available when the server declares `dev.ucp.shopping.cart`. */
|
|
316
|
+
var CartCapability = class {
|
|
317
|
+
constructor(http) {
|
|
318
|
+
this.http = http;
|
|
319
|
+
}
|
|
320
|
+
async create(payload) {
|
|
321
|
+
const data = await this.http.request("POST", "/carts", payload);
|
|
322
|
+
return this.http.validate(data, CartResponseSchema);
|
|
323
|
+
}
|
|
324
|
+
async get(id) {
|
|
325
|
+
const data = await this.http.request("GET", `/carts/${encodeURIComponent(id)}`);
|
|
326
|
+
return this.http.validate(data, CartResponseSchema);
|
|
327
|
+
}
|
|
328
|
+
async update(id, payload) {
|
|
329
|
+
const data = await this.http.request("PUT", `/carts/${encodeURIComponent(id)}`, payload);
|
|
330
|
+
return this.http.validate(data, CartResponseSchema);
|
|
331
|
+
}
|
|
332
|
+
async cancel(id) {
|
|
333
|
+
const data = await this.http.request("POST", `/carts/${encodeURIComponent(id)}/cancel`);
|
|
334
|
+
return this.http.validate(data, CartResponseSchema);
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
|
|
273
338
|
//#endregion
|
|
274
339
|
//#region src/capabilities/identity-linking.ts
|
|
275
340
|
const TokenResponseSchema = zod.z.object({
|
|
@@ -337,8 +402,16 @@ var IdentityLinkingCapability = class {
|
|
|
337
402
|
},
|
|
338
403
|
body: body.toString()
|
|
339
404
|
});
|
|
340
|
-
if (!res.ok)
|
|
341
|
-
|
|
405
|
+
if (!res.ok) {
|
|
406
|
+
const errorBody = await res.text().catch(() => "");
|
|
407
|
+
throw new require_errors.UCPOAuthError(`Token exchange failed with status ${res.status}${errorBody ? `: ${errorBody.slice(0, 200)}` : ""}`, res.status);
|
|
408
|
+
}
|
|
409
|
+
let raw;
|
|
410
|
+
try {
|
|
411
|
+
raw = await res.json();
|
|
412
|
+
} catch {
|
|
413
|
+
throw new require_errors.UCPOAuthError("Token endpoint returned non-JSON response", res.status);
|
|
414
|
+
}
|
|
342
415
|
const parsed = TokenResponseSchema.safeParse(raw);
|
|
343
416
|
if (!parsed.success) throw new require_errors.UCPOAuthError(`Invalid token response: ${parsed.error.message}`, res.status);
|
|
344
417
|
return parsed.data;
|
|
@@ -357,6 +430,9 @@ const UCP_CAPABILITIES = {
|
|
|
357
430
|
DISCOUNT: "dev.ucp.shopping.discount",
|
|
358
431
|
BUYER_CONSENT: "dev.ucp.shopping.buyer_consent",
|
|
359
432
|
ORDER: "dev.ucp.shopping.order",
|
|
433
|
+
CATALOG_SEARCH: "dev.ucp.shopping.catalog.search",
|
|
434
|
+
CATALOG_LOOKUP: "dev.ucp.shopping.catalog.lookup",
|
|
435
|
+
CART: "dev.ucp.shopping.cart",
|
|
360
436
|
IDENTITY_LINKING: "dev.ucp.common.identity_linking",
|
|
361
437
|
AP2_MANDATE: "dev.ucp.shopping.ap2_mandate"
|
|
362
438
|
};
|
|
@@ -405,6 +481,11 @@ function getAgentTools(client) {
|
|
|
405
481
|
if (client.checkout.extensions.discount) tools.push(...discountTools(client));
|
|
406
482
|
}
|
|
407
483
|
if (client.order) tools.push(...orderTools(client));
|
|
484
|
+
if (client.catalog) {
|
|
485
|
+
if (client.catalog.extensions.search) tools.push(...catalogSearchTools(client));
|
|
486
|
+
if (client.catalog.extensions.lookup) tools.push(...catalogLookupTools(client));
|
|
487
|
+
}
|
|
488
|
+
if (client.cart) tools.push(...cartTools(client));
|
|
408
489
|
if (client.identityLinking) tools.push(...identityLinkingTools(client));
|
|
409
490
|
return tools;
|
|
410
491
|
}
|
|
@@ -839,6 +920,180 @@ function orderTools(client) {
|
|
|
839
920
|
}
|
|
840
921
|
];
|
|
841
922
|
}
|
|
923
|
+
function catalogSearchTools(client) {
|
|
924
|
+
return [{
|
|
925
|
+
name: "search_catalog",
|
|
926
|
+
description: "Search the product catalog by query. Returns matching products with pagination.",
|
|
927
|
+
parameters: {
|
|
928
|
+
type: "object",
|
|
929
|
+
properties: {
|
|
930
|
+
query: {
|
|
931
|
+
type: "string",
|
|
932
|
+
description: "Search query string"
|
|
933
|
+
},
|
|
934
|
+
filters: {
|
|
935
|
+
type: "object",
|
|
936
|
+
description: "Optional search filters",
|
|
937
|
+
properties: {
|
|
938
|
+
categories: {
|
|
939
|
+
type: "array",
|
|
940
|
+
items: {
|
|
941
|
+
type: "object",
|
|
942
|
+
properties: {
|
|
943
|
+
value: { type: "string" },
|
|
944
|
+
taxonomy: { type: "string" }
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
description: "Category filters"
|
|
948
|
+
},
|
|
949
|
+
price: {
|
|
950
|
+
type: "object",
|
|
951
|
+
description: "Price range filter",
|
|
952
|
+
properties: {
|
|
953
|
+
min: { type: "number" },
|
|
954
|
+
max: { type: "number" }
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
},
|
|
959
|
+
pagination: {
|
|
960
|
+
type: "object",
|
|
961
|
+
description: "Pagination parameters"
|
|
962
|
+
}
|
|
963
|
+
},
|
|
964
|
+
required: ["query"]
|
|
965
|
+
},
|
|
966
|
+
execute: async (params) => client.catalog.search(params["query"], params["filters"], params["pagination"])
|
|
967
|
+
}];
|
|
968
|
+
}
|
|
969
|
+
function catalogLookupTools(client) {
|
|
970
|
+
return [{
|
|
971
|
+
name: "get_product",
|
|
972
|
+
description: "Get full product details by ID, including variants, pricing, and media.",
|
|
973
|
+
parameters: {
|
|
974
|
+
type: "object",
|
|
975
|
+
properties: { product_id: {
|
|
976
|
+
type: "string",
|
|
977
|
+
description: "Product ID"
|
|
978
|
+
} },
|
|
979
|
+
required: ["product_id"]
|
|
980
|
+
},
|
|
981
|
+
execute: async (params) => client.catalog.getProduct(params["product_id"])
|
|
982
|
+
}];
|
|
983
|
+
}
|
|
984
|
+
function cartTools(client) {
|
|
985
|
+
return [
|
|
986
|
+
{
|
|
987
|
+
name: "create_cart",
|
|
988
|
+
description: "Create a new cart with line items. Returns the cart with an ID for subsequent operations.",
|
|
989
|
+
parameters: {
|
|
990
|
+
type: "object",
|
|
991
|
+
properties: {
|
|
992
|
+
line_items: {
|
|
993
|
+
type: "array",
|
|
994
|
+
description: "Items to add to the cart",
|
|
995
|
+
items: {
|
|
996
|
+
type: "object",
|
|
997
|
+
properties: {
|
|
998
|
+
item: {
|
|
999
|
+
type: "object",
|
|
1000
|
+
properties: { id: {
|
|
1001
|
+
type: "string",
|
|
1002
|
+
description: "Product or variant ID"
|
|
1003
|
+
} },
|
|
1004
|
+
required: ["id"]
|
|
1005
|
+
},
|
|
1006
|
+
quantity: {
|
|
1007
|
+
type: "number",
|
|
1008
|
+
description: "Quantity"
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
1011
|
+
required: ["item", "quantity"]
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
context: {
|
|
1015
|
+
type: "object",
|
|
1016
|
+
description: "Localization context"
|
|
1017
|
+
},
|
|
1018
|
+
buyer: {
|
|
1019
|
+
type: "object",
|
|
1020
|
+
description: "Buyer information"
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
required: ["line_items"]
|
|
1024
|
+
},
|
|
1025
|
+
execute: async (params) => client.cart.create(params)
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
name: "get_cart",
|
|
1029
|
+
description: "Get the current state of a cart by ID, including line items, totals, and messages.",
|
|
1030
|
+
parameters: {
|
|
1031
|
+
type: "object",
|
|
1032
|
+
properties: { id: {
|
|
1033
|
+
type: "string",
|
|
1034
|
+
description: "Cart ID"
|
|
1035
|
+
} },
|
|
1036
|
+
required: ["id"]
|
|
1037
|
+
},
|
|
1038
|
+
execute: async (params) => client.cart.get(params["id"])
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
name: "update_cart",
|
|
1042
|
+
description: "Update an existing cart with changed line items, context, or buyer information.",
|
|
1043
|
+
parameters: {
|
|
1044
|
+
type: "object",
|
|
1045
|
+
properties: {
|
|
1046
|
+
id: {
|
|
1047
|
+
type: "string",
|
|
1048
|
+
description: "Cart ID"
|
|
1049
|
+
},
|
|
1050
|
+
line_items: {
|
|
1051
|
+
type: "array",
|
|
1052
|
+
description: "Updated line items",
|
|
1053
|
+
items: {
|
|
1054
|
+
type: "object",
|
|
1055
|
+
properties: {
|
|
1056
|
+
item: {
|
|
1057
|
+
type: "object",
|
|
1058
|
+
properties: { id: { type: "string" } },
|
|
1059
|
+
required: ["id"]
|
|
1060
|
+
},
|
|
1061
|
+
quantity: { type: "number" }
|
|
1062
|
+
},
|
|
1063
|
+
required: ["item", "quantity"]
|
|
1064
|
+
}
|
|
1065
|
+
},
|
|
1066
|
+
context: {
|
|
1067
|
+
type: "object",
|
|
1068
|
+
description: "Updated localization context"
|
|
1069
|
+
},
|
|
1070
|
+
buyer: {
|
|
1071
|
+
type: "object",
|
|
1072
|
+
description: "Updated buyer information"
|
|
1073
|
+
}
|
|
1074
|
+
},
|
|
1075
|
+
required: ["id"]
|
|
1076
|
+
},
|
|
1077
|
+
execute: async (params) => {
|
|
1078
|
+
const { id,...payload } = params;
|
|
1079
|
+
return client.cart.update(id, payload);
|
|
1080
|
+
}
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
name: "cancel_cart",
|
|
1084
|
+
description: "Cancel a cart by ID. Returns the final cart state before cleanup.",
|
|
1085
|
+
parameters: {
|
|
1086
|
+
type: "object",
|
|
1087
|
+
properties: { id: {
|
|
1088
|
+
type: "string",
|
|
1089
|
+
description: "Cart ID"
|
|
1090
|
+
} },
|
|
1091
|
+
required: ["id"]
|
|
1092
|
+
},
|
|
1093
|
+
execute: async (params) => client.cart.cancel(params["id"])
|
|
1094
|
+
}
|
|
1095
|
+
];
|
|
1096
|
+
}
|
|
842
1097
|
function identityLinkingTools(client) {
|
|
843
1098
|
return [
|
|
844
1099
|
{
|
|
@@ -978,6 +1233,8 @@ async function connect(config, options) {
|
|
|
978
1233
|
const capabilityNames = extractCapabilityNames(profile);
|
|
979
1234
|
const checkout = buildCheckoutCapability(http, capabilityNames);
|
|
980
1235
|
const order = capabilityNames.has(UCP_CAPABILITIES.ORDER) ? new OrderCapability(http) : null;
|
|
1236
|
+
const catalog = buildCatalogCapability(http, capabilityNames);
|
|
1237
|
+
const cart = capabilityNames.has(UCP_CAPABILITIES.CART) ? new CartCapability(http) : null;
|
|
981
1238
|
const identityLinking = await buildIdentityLinking(config, capabilityNames);
|
|
982
1239
|
const paymentHandlers = extractPaymentHandlers(profile);
|
|
983
1240
|
const signingKeys = extractSigningKeys(profile);
|
|
@@ -986,9 +1243,11 @@ async function connect(config, options) {
|
|
|
986
1243
|
signingKeys,
|
|
987
1244
|
checkout,
|
|
988
1245
|
order,
|
|
1246
|
+
catalog,
|
|
1247
|
+
cart,
|
|
989
1248
|
identityLinking,
|
|
990
1249
|
paymentHandlers,
|
|
991
|
-
describeTools: () => buildToolDescriptors(checkout, order, identityLinking),
|
|
1250
|
+
describeTools: () => buildToolDescriptors(checkout, order, catalog, cart, identityLinking),
|
|
992
1251
|
getAgentTools: () => getAgentTools(client)
|
|
993
1252
|
};
|
|
994
1253
|
return Object.freeze(client);
|
|
@@ -1043,6 +1302,14 @@ function buildCheckoutCapability(http, capabilityNames) {
|
|
|
1043
1302
|
};
|
|
1044
1303
|
return new CheckoutCapability(http, extensions);
|
|
1045
1304
|
}
|
|
1305
|
+
function buildCatalogCapability(http, capabilityNames) {
|
|
1306
|
+
const extensions = {
|
|
1307
|
+
search: capabilityNames.has(UCP_CAPABILITIES.CATALOG_SEARCH),
|
|
1308
|
+
lookup: capabilityNames.has(UCP_CAPABILITIES.CATALOG_LOOKUP)
|
|
1309
|
+
};
|
|
1310
|
+
if (!extensions.search && !extensions.lookup) return null;
|
|
1311
|
+
return new CatalogCapability(http, extensions);
|
|
1312
|
+
}
|
|
1046
1313
|
const OAuthServerMetadataSchema = zod.z.object({
|
|
1047
1314
|
issuer: zod.z.string(),
|
|
1048
1315
|
authorization_endpoint: zod.z.string().url(),
|
|
@@ -1060,12 +1327,17 @@ async function buildIdentityLinking(config, capabilityNames) {
|
|
|
1060
1327
|
const metadataUrl = `${gatewayUrl}/.well-known/oauth-authorization-server`;
|
|
1061
1328
|
const res = await fetch(metadataUrl);
|
|
1062
1329
|
if (!res.ok) throw new Error(`Identity linking capability declared but OAuth metadata fetch failed: ${res.status} from ${metadataUrl}`);
|
|
1063
|
-
|
|
1330
|
+
let raw;
|
|
1331
|
+
try {
|
|
1332
|
+
raw = await res.json();
|
|
1333
|
+
} catch {
|
|
1334
|
+
throw new Error(`Identity linking OAuth metadata endpoint returned non-JSON response from ${metadataUrl}`);
|
|
1335
|
+
}
|
|
1064
1336
|
const parsed = OAuthServerMetadataSchema.safeParse(raw);
|
|
1065
1337
|
if (!parsed.success) throw new Error(`Identity linking OAuth metadata validation failed: ${parsed.error.message}`);
|
|
1066
1338
|
return new IdentityLinkingCapability(parsed.data);
|
|
1067
1339
|
}
|
|
1068
|
-
function buildToolDescriptors(checkout, order, identityLinking) {
|
|
1340
|
+
function buildToolDescriptors(checkout, order, catalog, cart, identityLinking) {
|
|
1069
1341
|
const tools = [];
|
|
1070
1342
|
if (checkout) {
|
|
1071
1343
|
tools.push({
|
|
@@ -1133,6 +1405,35 @@ function buildToolDescriptors(checkout, order, identityLinking) {
|
|
|
1133
1405
|
capability: "order",
|
|
1134
1406
|
description: "Update a line item within an order"
|
|
1135
1407
|
});
|
|
1408
|
+
if (catalog) {
|
|
1409
|
+
if (catalog.extensions.search) tools.push({
|
|
1410
|
+
name: "search_catalog",
|
|
1411
|
+
capability: "catalog",
|
|
1412
|
+
description: "Search the product catalog"
|
|
1413
|
+
});
|
|
1414
|
+
if (catalog.extensions.lookup) tools.push({
|
|
1415
|
+
name: "get_product",
|
|
1416
|
+
capability: "catalog",
|
|
1417
|
+
description: "Get product details by ID"
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
if (cart) tools.push({
|
|
1421
|
+
name: "create_cart",
|
|
1422
|
+
capability: "cart",
|
|
1423
|
+
description: "Create a new cart"
|
|
1424
|
+
}, {
|
|
1425
|
+
name: "get_cart",
|
|
1426
|
+
capability: "cart",
|
|
1427
|
+
description: "Get cart by ID"
|
|
1428
|
+
}, {
|
|
1429
|
+
name: "update_cart",
|
|
1430
|
+
capability: "cart",
|
|
1431
|
+
description: "Update an existing cart"
|
|
1432
|
+
}, {
|
|
1433
|
+
name: "cancel_cart",
|
|
1434
|
+
capability: "cart",
|
|
1435
|
+
description: "Cancel a cart"
|
|
1436
|
+
});
|
|
1136
1437
|
if (identityLinking) tools.push({
|
|
1137
1438
|
name: "get_authorization_url",
|
|
1138
1439
|
capability: "identity_linking",
|
|
@@ -1220,10 +1521,12 @@ async function verifyRequestSignature(body, signature, signingKeys) {
|
|
|
1220
1521
|
* if (!valid) return res.status(401).send('Invalid signature');
|
|
1221
1522
|
* ```
|
|
1222
1523
|
*/
|
|
1223
|
-
function createWebhookVerifier(gatewayUrl) {
|
|
1524
|
+
function createWebhookVerifier(gatewayUrl, options) {
|
|
1224
1525
|
const baseUrl = gatewayUrl.replace(/\/+$/, "");
|
|
1526
|
+
const refetchCooldownMs = options?.refetchCooldownMs ?? 6e4;
|
|
1225
1527
|
const keyCache = new Map();
|
|
1226
1528
|
let fetched = false;
|
|
1529
|
+
let lastRefetchTime = 0;
|
|
1227
1530
|
let loadingPromise = null;
|
|
1228
1531
|
async function loadKeys() {
|
|
1229
1532
|
const res = await fetch(`${baseUrl}/.well-known/ucp`);
|
|
@@ -1260,7 +1563,13 @@ function createWebhookVerifier(gatewayUrl) {
|
|
|
1260
1563
|
const kid = extractKid(signature);
|
|
1261
1564
|
if (kid === null) return false;
|
|
1262
1565
|
if (!fetched) await ensureKeys();
|
|
1263
|
-
if (!keyCache.has(kid))
|
|
1566
|
+
if (!keyCache.has(kid)) {
|
|
1567
|
+
const now = Date.now();
|
|
1568
|
+
if (now - lastRefetchTime >= refetchCooldownMs) {
|
|
1569
|
+
lastRefetchTime = now;
|
|
1570
|
+
await ensureKeys();
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1264
1573
|
const key = keyCache.get(kid);
|
|
1265
1574
|
if (!key) return false;
|
|
1266
1575
|
return verifyRequestSignature(body, signature, [key]);
|
|
@@ -1324,134 +1633,907 @@ function parseWebhookEvent(body) {
|
|
|
1324
1633
|
}
|
|
1325
1634
|
|
|
1326
1635
|
//#endregion
|
|
1327
|
-
exports
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
exports
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
exports
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
exports
|
|
1346
|
-
|
|
1636
|
+
Object.defineProperty(exports, 'AccountInfoSchema', {
|
|
1637
|
+
enumerable: true,
|
|
1638
|
+
get: function () {
|
|
1639
|
+
return __omnixhq_ucp_js_sdk.AccountInfoSchema;
|
|
1640
|
+
}
|
|
1641
|
+
});
|
|
1642
|
+
Object.defineProperty(exports, 'AdjustmentSchema', {
|
|
1643
|
+
enumerable: true,
|
|
1644
|
+
get: function () {
|
|
1645
|
+
return __omnixhq_ucp_js_sdk.AdjustmentSchema;
|
|
1646
|
+
}
|
|
1647
|
+
});
|
|
1648
|
+
Object.defineProperty(exports, 'AdjustmentStatusEnumSchema', {
|
|
1649
|
+
enumerable: true,
|
|
1650
|
+
get: function () {
|
|
1651
|
+
return __omnixhq_ucp_js_sdk.AdjustmentStatusEnumSchema;
|
|
1652
|
+
}
|
|
1653
|
+
});
|
|
1654
|
+
Object.defineProperty(exports, 'AmountSchema', {
|
|
1655
|
+
enumerable: true,
|
|
1656
|
+
get: function () {
|
|
1657
|
+
return __omnixhq_ucp_js_sdk.AmountSchema;
|
|
1658
|
+
}
|
|
1659
|
+
});
|
|
1660
|
+
Object.defineProperty(exports, 'Ap2MandateAp2WithCheckoutMandateSchema', {
|
|
1661
|
+
enumerable: true,
|
|
1662
|
+
get: function () {
|
|
1663
|
+
return __omnixhq_ucp_js_sdk.Ap2MandateAp2WithCheckoutMandateSchema;
|
|
1664
|
+
}
|
|
1665
|
+
});
|
|
1666
|
+
Object.defineProperty(exports, 'Ap2MandateAp2WithMerchantAuthorizationSchema', {
|
|
1667
|
+
enumerable: true,
|
|
1668
|
+
get: function () {
|
|
1669
|
+
return __omnixhq_ucp_js_sdk.Ap2MandateAp2WithMerchantAuthorizationSchema;
|
|
1670
|
+
}
|
|
1671
|
+
});
|
|
1672
|
+
Object.defineProperty(exports, 'Ap2MandateCheckoutMandateSchema', {
|
|
1673
|
+
enumerable: true,
|
|
1674
|
+
get: function () {
|
|
1675
|
+
return __omnixhq_ucp_js_sdk.Ap2MandateCheckoutMandateSchema;
|
|
1676
|
+
}
|
|
1677
|
+
});
|
|
1678
|
+
Object.defineProperty(exports, 'Ap2MandateErrorCodeSchema', {
|
|
1679
|
+
enumerable: true,
|
|
1680
|
+
get: function () {
|
|
1681
|
+
return __omnixhq_ucp_js_sdk.Ap2MandateErrorCodeSchema;
|
|
1682
|
+
}
|
|
1683
|
+
});
|
|
1684
|
+
Object.defineProperty(exports, 'Ap2MandateMerchantAuthorizationSchema', {
|
|
1685
|
+
enumerable: true,
|
|
1686
|
+
get: function () {
|
|
1687
|
+
return __omnixhq_ucp_js_sdk.Ap2MandateMerchantAuthorizationSchema;
|
|
1688
|
+
}
|
|
1689
|
+
});
|
|
1690
|
+
Object.defineProperty(exports, 'AvailablePaymentInstrumentSchema', {
|
|
1691
|
+
enumerable: true,
|
|
1692
|
+
get: function () {
|
|
1693
|
+
return __omnixhq_ucp_js_sdk.AvailablePaymentInstrumentSchema;
|
|
1694
|
+
}
|
|
1695
|
+
});
|
|
1696
|
+
Object.defineProperty(exports, 'BindingSchema', {
|
|
1697
|
+
enumerable: true,
|
|
1698
|
+
get: function () {
|
|
1699
|
+
return __omnixhq_ucp_js_sdk.BindingSchema;
|
|
1700
|
+
}
|
|
1701
|
+
});
|
|
1702
|
+
Object.defineProperty(exports, 'BusinessFulfillmentConfigSchema', {
|
|
1703
|
+
enumerable: true,
|
|
1704
|
+
get: function () {
|
|
1705
|
+
return __omnixhq_ucp_js_sdk.BusinessFulfillmentConfigSchema;
|
|
1706
|
+
}
|
|
1707
|
+
});
|
|
1708
|
+
Object.defineProperty(exports, 'BuyerConsentBuyerSchema', {
|
|
1709
|
+
enumerable: true,
|
|
1710
|
+
get: function () {
|
|
1711
|
+
return __omnixhq_ucp_js_sdk.BuyerConsentBuyerSchema;
|
|
1712
|
+
}
|
|
1713
|
+
});
|
|
1714
|
+
Object.defineProperty(exports, 'BuyerConsentConsentSchema', {
|
|
1715
|
+
enumerable: true,
|
|
1716
|
+
get: function () {
|
|
1717
|
+
return __omnixhq_ucp_js_sdk.BuyerConsentConsentSchema;
|
|
1718
|
+
}
|
|
1719
|
+
});
|
|
1720
|
+
Object.defineProperty(exports, 'BuyerSchema', {
|
|
1721
|
+
enumerable: true,
|
|
1722
|
+
get: function () {
|
|
1723
|
+
return __omnixhq_ucp_js_sdk.BuyerSchema;
|
|
1724
|
+
}
|
|
1725
|
+
});
|
|
1726
|
+
Object.defineProperty(exports, 'CapabilityBaseSchema', {
|
|
1727
|
+
enumerable: true,
|
|
1728
|
+
get: function () {
|
|
1729
|
+
return __omnixhq_ucp_js_sdk.CapabilityBaseSchema;
|
|
1730
|
+
}
|
|
1731
|
+
});
|
|
1732
|
+
Object.defineProperty(exports, 'CapabilityBusinessSchema', {
|
|
1733
|
+
enumerable: true,
|
|
1734
|
+
get: function () {
|
|
1735
|
+
return __omnixhq_ucp_js_sdk.CapabilityBusinessSchema;
|
|
1736
|
+
}
|
|
1737
|
+
});
|
|
1738
|
+
Object.defineProperty(exports, 'CapabilityPlatformSchema', {
|
|
1739
|
+
enumerable: true,
|
|
1740
|
+
get: function () {
|
|
1741
|
+
return __omnixhq_ucp_js_sdk.CapabilityPlatformSchema;
|
|
1742
|
+
}
|
|
1743
|
+
});
|
|
1744
|
+
Object.defineProperty(exports, 'CapabilityResponseSchema', {
|
|
1745
|
+
enumerable: true,
|
|
1746
|
+
get: function () {
|
|
1747
|
+
return __omnixhq_ucp_js_sdk.CapabilityResponseSchema;
|
|
1748
|
+
}
|
|
1749
|
+
});
|
|
1750
|
+
Object.defineProperty(exports, 'CardCredentialCardNumberTypeEnumSchema', {
|
|
1751
|
+
enumerable: true,
|
|
1752
|
+
get: function () {
|
|
1753
|
+
return __omnixhq_ucp_js_sdk.CardCredentialCardNumberTypeEnumSchema;
|
|
1754
|
+
}
|
|
1755
|
+
});
|
|
1756
|
+
Object.defineProperty(exports, 'CardCredentialSchema', {
|
|
1757
|
+
enumerable: true,
|
|
1758
|
+
get: function () {
|
|
1759
|
+
return __omnixhq_ucp_js_sdk.CardCredentialSchema;
|
|
1760
|
+
}
|
|
1761
|
+
});
|
|
1762
|
+
Object.defineProperty(exports, 'CardPaymentInstrumentAvailableCardPaymentInstrumentSchema', {
|
|
1763
|
+
enumerable: true,
|
|
1764
|
+
get: function () {
|
|
1765
|
+
return __omnixhq_ucp_js_sdk.CardPaymentInstrumentAvailableCardPaymentInstrumentSchema;
|
|
1766
|
+
}
|
|
1767
|
+
});
|
|
1768
|
+
exports.CartCapability = CartCapability
|
|
1769
|
+
Object.defineProperty(exports, 'CartCreateRequestSchema', {
|
|
1770
|
+
enumerable: true,
|
|
1771
|
+
get: function () {
|
|
1772
|
+
return __omnixhq_ucp_js_sdk.CartCreateRequestSchema;
|
|
1773
|
+
}
|
|
1774
|
+
});
|
|
1775
|
+
exports.CartResponseSchema = CartResponseSchema
|
|
1776
|
+
Object.defineProperty(exports, 'CartSchema', {
|
|
1777
|
+
enumerable: true,
|
|
1778
|
+
get: function () {
|
|
1779
|
+
return __omnixhq_ucp_js_sdk.CartSchema;
|
|
1780
|
+
}
|
|
1781
|
+
});
|
|
1782
|
+
Object.defineProperty(exports, 'CartUpdateRequestSchema', {
|
|
1783
|
+
enumerable: true,
|
|
1784
|
+
get: function () {
|
|
1785
|
+
return __omnixhq_ucp_js_sdk.CartUpdateRequestSchema;
|
|
1786
|
+
}
|
|
1787
|
+
});
|
|
1788
|
+
exports.CatalogCapability = CatalogCapability
|
|
1789
|
+
Object.defineProperty(exports, 'CatalogLookupSchema', {
|
|
1790
|
+
enumerable: true,
|
|
1791
|
+
get: function () {
|
|
1792
|
+
return __omnixhq_ucp_js_sdk.CatalogLookupSchema;
|
|
1793
|
+
}
|
|
1794
|
+
});
|
|
1795
|
+
Object.defineProperty(exports, 'CatalogSearchSchema', {
|
|
1796
|
+
enumerable: true,
|
|
1797
|
+
get: function () {
|
|
1798
|
+
return __omnixhq_ucp_js_sdk.CatalogSearchSchema;
|
|
1799
|
+
}
|
|
1800
|
+
});
|
|
1801
|
+
Object.defineProperty(exports, 'CategorySchema', {
|
|
1802
|
+
enumerable: true,
|
|
1803
|
+
get: function () {
|
|
1804
|
+
return __omnixhq_ucp_js_sdk.CategorySchema;
|
|
1805
|
+
}
|
|
1806
|
+
});
|
|
1347
1807
|
exports.CheckoutCapability = CheckoutCapability
|
|
1348
|
-
exports
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1808
|
+
Object.defineProperty(exports, 'CheckoutCompleteRequestSchema', {
|
|
1809
|
+
enumerable: true,
|
|
1810
|
+
get: function () {
|
|
1811
|
+
return __omnixhq_ucp_js_sdk.CheckoutCompleteRequestSchema;
|
|
1812
|
+
}
|
|
1813
|
+
});
|
|
1814
|
+
Object.defineProperty(exports, 'CheckoutCreateRequestSchema', {
|
|
1815
|
+
enumerable: true,
|
|
1816
|
+
get: function () {
|
|
1817
|
+
return __omnixhq_ucp_js_sdk.CheckoutCreateRequestSchema;
|
|
1818
|
+
}
|
|
1819
|
+
});
|
|
1820
|
+
Object.defineProperty(exports, 'CheckoutResponseSchema', {
|
|
1821
|
+
enumerable: true,
|
|
1822
|
+
get: function () {
|
|
1823
|
+
return __omnixhq_ucp_js_sdk.CheckoutResponseSchema;
|
|
1824
|
+
}
|
|
1825
|
+
});
|
|
1826
|
+
Object.defineProperty(exports, 'CheckoutResponseStatusSchema', {
|
|
1827
|
+
enumerable: true,
|
|
1828
|
+
get: function () {
|
|
1829
|
+
return __omnixhq_ucp_js_sdk.CheckoutResponseStatusSchema;
|
|
1830
|
+
}
|
|
1831
|
+
});
|
|
1832
|
+
Object.defineProperty(exports, 'CheckoutSchema', {
|
|
1833
|
+
enumerable: true,
|
|
1834
|
+
get: function () {
|
|
1835
|
+
return __omnixhq_ucp_js_sdk.CheckoutSchema;
|
|
1836
|
+
}
|
|
1837
|
+
});
|
|
1353
1838
|
exports.CheckoutSessionSchema = CheckoutSessionSchema
|
|
1354
|
-
exports
|
|
1355
|
-
|
|
1839
|
+
Object.defineProperty(exports, 'CheckoutStatusEnumSchema', {
|
|
1840
|
+
enumerable: true,
|
|
1841
|
+
get: function () {
|
|
1842
|
+
return __omnixhq_ucp_js_sdk.CheckoutStatusEnumSchema;
|
|
1843
|
+
}
|
|
1844
|
+
});
|
|
1845
|
+
Object.defineProperty(exports, 'CheckoutUpdateRequestSchema', {
|
|
1846
|
+
enumerable: true,
|
|
1847
|
+
get: function () {
|
|
1848
|
+
return __omnixhq_ucp_js_sdk.CheckoutUpdateRequestSchema;
|
|
1849
|
+
}
|
|
1850
|
+
});
|
|
1356
1851
|
exports.CompleteCheckoutRequestSchema = CompleteCheckoutRequestSchema
|
|
1357
|
-
exports
|
|
1852
|
+
Object.defineProperty(exports, 'ContextSchema', {
|
|
1853
|
+
enumerable: true,
|
|
1854
|
+
get: function () {
|
|
1855
|
+
return __omnixhq_ucp_js_sdk.ContextSchema;
|
|
1856
|
+
}
|
|
1857
|
+
});
|
|
1358
1858
|
exports.CreateCheckoutRequestSchema = CreateCheckoutRequestSchema
|
|
1359
1859
|
exports.DEFAULT_UCP_VERSION = DEFAULT_UCP_VERSION
|
|
1360
|
-
exports
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
exports
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
exports
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
exports
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
exports
|
|
1385
|
-
|
|
1860
|
+
Object.defineProperty(exports, 'DescriptionSchema', {
|
|
1861
|
+
enumerable: true,
|
|
1862
|
+
get: function () {
|
|
1863
|
+
return __omnixhq_ucp_js_sdk.DescriptionSchema;
|
|
1864
|
+
}
|
|
1865
|
+
});
|
|
1866
|
+
Object.defineProperty(exports, 'DetailOptionValueSchema', {
|
|
1867
|
+
enumerable: true,
|
|
1868
|
+
get: function () {
|
|
1869
|
+
return __omnixhq_ucp_js_sdk.DetailOptionValueSchema;
|
|
1870
|
+
}
|
|
1871
|
+
});
|
|
1872
|
+
Object.defineProperty(exports, 'DiscountAllocationSchema', {
|
|
1873
|
+
enumerable: true,
|
|
1874
|
+
get: function () {
|
|
1875
|
+
return __omnixhq_ucp_js_sdk.DiscountAllocationSchema;
|
|
1876
|
+
}
|
|
1877
|
+
});
|
|
1878
|
+
Object.defineProperty(exports, 'DiscountAppliedDiscountMethodEnumSchema', {
|
|
1879
|
+
enumerable: true,
|
|
1880
|
+
get: function () {
|
|
1881
|
+
return __omnixhq_ucp_js_sdk.DiscountAppliedDiscountMethodEnumSchema;
|
|
1882
|
+
}
|
|
1883
|
+
});
|
|
1884
|
+
Object.defineProperty(exports, 'DiscountAppliedDiscountSchema', {
|
|
1885
|
+
enumerable: true,
|
|
1886
|
+
get: function () {
|
|
1887
|
+
return __omnixhq_ucp_js_sdk.DiscountAppliedDiscountSchema;
|
|
1888
|
+
}
|
|
1889
|
+
});
|
|
1890
|
+
Object.defineProperty(exports, 'DiscountDiscountsObjectSchema', {
|
|
1891
|
+
enumerable: true,
|
|
1892
|
+
get: function () {
|
|
1893
|
+
return __omnixhq_ucp_js_sdk.DiscountDiscountsObjectSchema;
|
|
1894
|
+
}
|
|
1895
|
+
});
|
|
1896
|
+
Object.defineProperty(exports, 'EmbeddedConfigSchema', {
|
|
1897
|
+
enumerable: true,
|
|
1898
|
+
get: function () {
|
|
1899
|
+
return __omnixhq_ucp_js_sdk.EmbeddedConfigSchema;
|
|
1900
|
+
}
|
|
1901
|
+
});
|
|
1902
|
+
Object.defineProperty(exports, 'ErrorCodeSchema', {
|
|
1903
|
+
enumerable: true,
|
|
1904
|
+
get: function () {
|
|
1905
|
+
return __omnixhq_ucp_js_sdk.ErrorCodeSchema;
|
|
1906
|
+
}
|
|
1907
|
+
});
|
|
1908
|
+
Object.defineProperty(exports, 'ErrorResponseSchema', {
|
|
1909
|
+
enumerable: true,
|
|
1910
|
+
get: function () {
|
|
1911
|
+
return __omnixhq_ucp_js_sdk.ErrorResponseSchema;
|
|
1912
|
+
}
|
|
1913
|
+
});
|
|
1914
|
+
Object.defineProperty(exports, 'ExpectationMethodTypeEnumSchema', {
|
|
1915
|
+
enumerable: true,
|
|
1916
|
+
get: function () {
|
|
1917
|
+
return __omnixhq_ucp_js_sdk.ExpectationMethodTypeEnumSchema;
|
|
1918
|
+
}
|
|
1919
|
+
});
|
|
1920
|
+
Object.defineProperty(exports, 'ExpectationSchema', {
|
|
1921
|
+
enumerable: true,
|
|
1922
|
+
get: function () {
|
|
1923
|
+
return __omnixhq_ucp_js_sdk.ExpectationSchema;
|
|
1924
|
+
}
|
|
1925
|
+
});
|
|
1926
|
+
Object.defineProperty(exports, 'FulfillmentAvailableMethodSchema', {
|
|
1927
|
+
enumerable: true,
|
|
1928
|
+
get: function () {
|
|
1929
|
+
return __omnixhq_ucp_js_sdk.FulfillmentAvailableMethodSchema;
|
|
1930
|
+
}
|
|
1931
|
+
});
|
|
1932
|
+
Object.defineProperty(exports, 'FulfillmentAvailableMethodTypeEnumSchema', {
|
|
1933
|
+
enumerable: true,
|
|
1934
|
+
get: function () {
|
|
1935
|
+
return __omnixhq_ucp_js_sdk.FulfillmentAvailableMethodTypeEnumSchema;
|
|
1936
|
+
}
|
|
1937
|
+
});
|
|
1938
|
+
Object.defineProperty(exports, 'FulfillmentDestinationSchema', {
|
|
1939
|
+
enumerable: true,
|
|
1940
|
+
get: function () {
|
|
1941
|
+
return __omnixhq_ucp_js_sdk.FulfillmentDestinationSchema;
|
|
1942
|
+
}
|
|
1943
|
+
});
|
|
1944
|
+
Object.defineProperty(exports, 'FulfillmentEventSchema', {
|
|
1945
|
+
enumerable: true,
|
|
1946
|
+
get: function () {
|
|
1947
|
+
return __omnixhq_ucp_js_sdk.FulfillmentEventSchema;
|
|
1948
|
+
}
|
|
1949
|
+
});
|
|
1950
|
+
Object.defineProperty(exports, 'FulfillmentExtensionFulfillmentAvailableMethodSchema', {
|
|
1951
|
+
enumerable: true,
|
|
1952
|
+
get: function () {
|
|
1953
|
+
return __omnixhq_ucp_js_sdk.FulfillmentExtensionFulfillmentAvailableMethodSchema;
|
|
1954
|
+
}
|
|
1955
|
+
});
|
|
1956
|
+
Object.defineProperty(exports, 'FulfillmentExtensionFulfillmentGroupSchema', {
|
|
1957
|
+
enumerable: true,
|
|
1958
|
+
get: function () {
|
|
1959
|
+
return __omnixhq_ucp_js_sdk.FulfillmentExtensionFulfillmentGroupSchema;
|
|
1960
|
+
}
|
|
1961
|
+
});
|
|
1962
|
+
Object.defineProperty(exports, 'FulfillmentExtensionFulfillmentMethodSchema', {
|
|
1963
|
+
enumerable: true,
|
|
1964
|
+
get: function () {
|
|
1965
|
+
return __omnixhq_ucp_js_sdk.FulfillmentExtensionFulfillmentMethodSchema;
|
|
1966
|
+
}
|
|
1967
|
+
});
|
|
1968
|
+
Object.defineProperty(exports, 'FulfillmentExtensionFulfillmentOptionSchema', {
|
|
1969
|
+
enumerable: true,
|
|
1970
|
+
get: function () {
|
|
1971
|
+
return __omnixhq_ucp_js_sdk.FulfillmentExtensionFulfillmentOptionSchema;
|
|
1972
|
+
}
|
|
1973
|
+
});
|
|
1974
|
+
Object.defineProperty(exports, 'FulfillmentExtensionFulfillmentSchema', {
|
|
1975
|
+
enumerable: true,
|
|
1976
|
+
get: function () {
|
|
1977
|
+
return __omnixhq_ucp_js_sdk.FulfillmentExtensionFulfillmentSchema;
|
|
1978
|
+
}
|
|
1979
|
+
});
|
|
1980
|
+
Object.defineProperty(exports, 'FulfillmentGroupSchema', {
|
|
1981
|
+
enumerable: true,
|
|
1982
|
+
get: function () {
|
|
1983
|
+
return __omnixhq_ucp_js_sdk.FulfillmentGroupSchema;
|
|
1984
|
+
}
|
|
1985
|
+
});
|
|
1986
|
+
Object.defineProperty(exports, 'FulfillmentGroupUpdateRequestSchema', {
|
|
1987
|
+
enumerable: true,
|
|
1988
|
+
get: function () {
|
|
1989
|
+
return __omnixhq_ucp_js_sdk.FulfillmentGroupUpdateRequestSchema;
|
|
1990
|
+
}
|
|
1991
|
+
});
|
|
1992
|
+
Object.defineProperty(exports, 'FulfillmentMethodCreateRequestSchema', {
|
|
1993
|
+
enumerable: true,
|
|
1994
|
+
get: function () {
|
|
1995
|
+
return __omnixhq_ucp_js_sdk.FulfillmentMethodCreateRequestSchema;
|
|
1996
|
+
}
|
|
1997
|
+
});
|
|
1998
|
+
Object.defineProperty(exports, 'FulfillmentMethodResponseSchema', {
|
|
1999
|
+
enumerable: true,
|
|
2000
|
+
get: function () {
|
|
2001
|
+
return __omnixhq_ucp_js_sdk.FulfillmentMethodResponseSchema;
|
|
2002
|
+
}
|
|
2003
|
+
});
|
|
2004
|
+
Object.defineProperty(exports, 'FulfillmentMethodSchema', {
|
|
2005
|
+
enumerable: true,
|
|
2006
|
+
get: function () {
|
|
2007
|
+
return __omnixhq_ucp_js_sdk.FulfillmentMethodSchema;
|
|
2008
|
+
}
|
|
2009
|
+
});
|
|
2010
|
+
Object.defineProperty(exports, 'FulfillmentMethodTypeEnumSchema', {
|
|
2011
|
+
enumerable: true,
|
|
2012
|
+
get: function () {
|
|
2013
|
+
return __omnixhq_ucp_js_sdk.FulfillmentMethodTypeEnumSchema;
|
|
2014
|
+
}
|
|
2015
|
+
});
|
|
2016
|
+
Object.defineProperty(exports, 'FulfillmentMethodUpdateRequestSchema', {
|
|
2017
|
+
enumerable: true,
|
|
2018
|
+
get: function () {
|
|
2019
|
+
return __omnixhq_ucp_js_sdk.FulfillmentMethodUpdateRequestSchema;
|
|
2020
|
+
}
|
|
2021
|
+
});
|
|
2022
|
+
Object.defineProperty(exports, 'FulfillmentOptionSchema', {
|
|
2023
|
+
enumerable: true,
|
|
2024
|
+
get: function () {
|
|
2025
|
+
return __omnixhq_ucp_js_sdk.FulfillmentOptionSchema;
|
|
2026
|
+
}
|
|
2027
|
+
});
|
|
2028
|
+
Object.defineProperty(exports, 'FulfillmentResponseSchema', {
|
|
2029
|
+
enumerable: true,
|
|
2030
|
+
get: function () {
|
|
2031
|
+
return __omnixhq_ucp_js_sdk.FulfillmentResponseSchema;
|
|
2032
|
+
}
|
|
2033
|
+
});
|
|
2034
|
+
Object.defineProperty(exports, 'FulfillmentSchema', {
|
|
2035
|
+
enumerable: true,
|
|
2036
|
+
get: function () {
|
|
2037
|
+
return __omnixhq_ucp_js_sdk.FulfillmentSchema;
|
|
2038
|
+
}
|
|
2039
|
+
});
|
|
1386
2040
|
exports.IdentityLinkingCapability = IdentityLinkingCapability
|
|
1387
|
-
exports
|
|
1388
|
-
|
|
2041
|
+
Object.defineProperty(exports, 'InputCorrelationSchema', {
|
|
2042
|
+
enumerable: true,
|
|
2043
|
+
get: function () {
|
|
2044
|
+
return __omnixhq_ucp_js_sdk.InputCorrelationSchema;
|
|
2045
|
+
}
|
|
2046
|
+
});
|
|
2047
|
+
Object.defineProperty(exports, 'ItemResponseSchema', {
|
|
2048
|
+
enumerable: true,
|
|
2049
|
+
get: function () {
|
|
2050
|
+
return __omnixhq_ucp_js_sdk.ItemResponseSchema;
|
|
2051
|
+
}
|
|
2052
|
+
});
|
|
2053
|
+
Object.defineProperty(exports, 'ItemSchema', {
|
|
2054
|
+
enumerable: true,
|
|
2055
|
+
get: function () {
|
|
2056
|
+
return __omnixhq_ucp_js_sdk.ItemSchema;
|
|
2057
|
+
}
|
|
2058
|
+
});
|
|
1389
2059
|
exports.JWKSchema = __omnixhq_ucp_js_sdk.UcpSigningKeySchema
|
|
1390
|
-
exports
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
exports
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
exports
|
|
2060
|
+
Object.defineProperty(exports, 'LineItemResponseSchema', {
|
|
2061
|
+
enumerable: true,
|
|
2062
|
+
get: function () {
|
|
2063
|
+
return __omnixhq_ucp_js_sdk.LineItemResponseSchema;
|
|
2064
|
+
}
|
|
2065
|
+
});
|
|
2066
|
+
Object.defineProperty(exports, 'LineItemSchema', {
|
|
2067
|
+
enumerable: true,
|
|
2068
|
+
get: function () {
|
|
2069
|
+
return __omnixhq_ucp_js_sdk.LineItemSchema;
|
|
2070
|
+
}
|
|
2071
|
+
});
|
|
2072
|
+
Object.defineProperty(exports, 'LineItemUpdateRequestSchema', {
|
|
2073
|
+
enumerable: true,
|
|
2074
|
+
get: function () {
|
|
2075
|
+
return __omnixhq_ucp_js_sdk.LineItemUpdateRequestSchema;
|
|
2076
|
+
}
|
|
2077
|
+
});
|
|
2078
|
+
Object.defineProperty(exports, 'LinkSchema', {
|
|
2079
|
+
enumerable: true,
|
|
2080
|
+
get: function () {
|
|
2081
|
+
return __omnixhq_ucp_js_sdk.LinkSchema;
|
|
2082
|
+
}
|
|
2083
|
+
});
|
|
2084
|
+
Object.defineProperty(exports, 'MediaSchema', {
|
|
2085
|
+
enumerable: true,
|
|
2086
|
+
get: function () {
|
|
2087
|
+
return __omnixhq_ucp_js_sdk.MediaSchema;
|
|
2088
|
+
}
|
|
2089
|
+
});
|
|
2090
|
+
Object.defineProperty(exports, 'MerchantFulfillmentConfigSchema', {
|
|
2091
|
+
enumerable: true,
|
|
2092
|
+
get: function () {
|
|
2093
|
+
return __omnixhq_ucp_js_sdk.MerchantFulfillmentConfigSchema;
|
|
2094
|
+
}
|
|
2095
|
+
});
|
|
2096
|
+
Object.defineProperty(exports, 'MessageErrorContentTypeEnumSchema', {
|
|
2097
|
+
enumerable: true,
|
|
2098
|
+
get: function () {
|
|
2099
|
+
return __omnixhq_ucp_js_sdk.MessageErrorContentTypeEnumSchema;
|
|
2100
|
+
}
|
|
2101
|
+
});
|
|
2102
|
+
Object.defineProperty(exports, 'MessageErrorSchema', {
|
|
2103
|
+
enumerable: true,
|
|
2104
|
+
get: function () {
|
|
2105
|
+
return __omnixhq_ucp_js_sdk.MessageErrorSchema;
|
|
2106
|
+
}
|
|
2107
|
+
});
|
|
2108
|
+
Object.defineProperty(exports, 'MessageErrorSeverityEnumSchema', {
|
|
2109
|
+
enumerable: true,
|
|
2110
|
+
get: function () {
|
|
2111
|
+
return __omnixhq_ucp_js_sdk.MessageErrorSeverityEnumSchema;
|
|
2112
|
+
}
|
|
2113
|
+
});
|
|
2114
|
+
Object.defineProperty(exports, 'MessageInfoContentTypeEnumSchema', {
|
|
2115
|
+
enumerable: true,
|
|
2116
|
+
get: function () {
|
|
2117
|
+
return __omnixhq_ucp_js_sdk.MessageInfoContentTypeEnumSchema;
|
|
2118
|
+
}
|
|
2119
|
+
});
|
|
2120
|
+
Object.defineProperty(exports, 'MessageInfoSchema', {
|
|
2121
|
+
enumerable: true,
|
|
2122
|
+
get: function () {
|
|
2123
|
+
return __omnixhq_ucp_js_sdk.MessageInfoSchema;
|
|
2124
|
+
}
|
|
2125
|
+
});
|
|
2126
|
+
Object.defineProperty(exports, 'MessageSchema', {
|
|
2127
|
+
enumerable: true,
|
|
2128
|
+
get: function () {
|
|
2129
|
+
return __omnixhq_ucp_js_sdk.MessageSchema;
|
|
2130
|
+
}
|
|
2131
|
+
});
|
|
2132
|
+
Object.defineProperty(exports, 'MessageWarningContentTypeEnumSchema', {
|
|
2133
|
+
enumerable: true,
|
|
2134
|
+
get: function () {
|
|
2135
|
+
return __omnixhq_ucp_js_sdk.MessageWarningContentTypeEnumSchema;
|
|
2136
|
+
}
|
|
2137
|
+
});
|
|
2138
|
+
Object.defineProperty(exports, 'MessageWarningSchema', {
|
|
2139
|
+
enumerable: true,
|
|
2140
|
+
get: function () {
|
|
2141
|
+
return __omnixhq_ucp_js_sdk.MessageWarningSchema;
|
|
2142
|
+
}
|
|
2143
|
+
});
|
|
2144
|
+
Object.defineProperty(exports, 'OptionValueSchema', {
|
|
2145
|
+
enumerable: true,
|
|
2146
|
+
get: function () {
|
|
2147
|
+
return __omnixhq_ucp_js_sdk.OptionValueSchema;
|
|
2148
|
+
}
|
|
2149
|
+
});
|
|
1403
2150
|
exports.OrderCapability = OrderCapability
|
|
1404
|
-
exports
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
exports
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
exports
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
exports
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
exports
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
exports
|
|
1435
|
-
|
|
2151
|
+
Object.defineProperty(exports, 'OrderConfirmationSchema', {
|
|
2152
|
+
enumerable: true,
|
|
2153
|
+
get: function () {
|
|
2154
|
+
return __omnixhq_ucp_js_sdk.OrderConfirmationSchema;
|
|
2155
|
+
}
|
|
2156
|
+
});
|
|
2157
|
+
Object.defineProperty(exports, 'OrderLineItemSchema', {
|
|
2158
|
+
enumerable: true,
|
|
2159
|
+
get: function () {
|
|
2160
|
+
return __omnixhq_ucp_js_sdk.OrderLineItemSchema;
|
|
2161
|
+
}
|
|
2162
|
+
});
|
|
2163
|
+
Object.defineProperty(exports, 'OrderLineItemStatusEnumSchema', {
|
|
2164
|
+
enumerable: true,
|
|
2165
|
+
get: function () {
|
|
2166
|
+
return __omnixhq_ucp_js_sdk.OrderLineItemStatusEnumSchema;
|
|
2167
|
+
}
|
|
2168
|
+
});
|
|
2169
|
+
Object.defineProperty(exports, 'OrderUpdateSchema', {
|
|
2170
|
+
enumerable: true,
|
|
2171
|
+
get: function () {
|
|
2172
|
+
return __omnixhq_ucp_js_sdk.OrderUpdateSchema;
|
|
2173
|
+
}
|
|
2174
|
+
});
|
|
2175
|
+
Object.defineProperty(exports, 'PaginationSchema', {
|
|
2176
|
+
enumerable: true,
|
|
2177
|
+
get: function () {
|
|
2178
|
+
return __omnixhq_ucp_js_sdk.PaginationSchema;
|
|
2179
|
+
}
|
|
2180
|
+
});
|
|
2181
|
+
Object.defineProperty(exports, 'PaymentCredentialSchema', {
|
|
2182
|
+
enumerable: true,
|
|
2183
|
+
get: function () {
|
|
2184
|
+
return __omnixhq_ucp_js_sdk.PaymentCredentialSchema;
|
|
2185
|
+
}
|
|
2186
|
+
});
|
|
2187
|
+
Object.defineProperty(exports, 'PaymentHandlerBaseSchema', {
|
|
2188
|
+
enumerable: true,
|
|
2189
|
+
get: function () {
|
|
2190
|
+
return __omnixhq_ucp_js_sdk.PaymentHandlerBaseSchema;
|
|
2191
|
+
}
|
|
2192
|
+
});
|
|
2193
|
+
Object.defineProperty(exports, 'PaymentHandlerBusinessSchema', {
|
|
2194
|
+
enumerable: true,
|
|
2195
|
+
get: function () {
|
|
2196
|
+
return __omnixhq_ucp_js_sdk.PaymentHandlerBusinessSchema;
|
|
2197
|
+
}
|
|
2198
|
+
});
|
|
2199
|
+
Object.defineProperty(exports, 'PaymentHandlerPlatformSchema', {
|
|
2200
|
+
enumerable: true,
|
|
2201
|
+
get: function () {
|
|
2202
|
+
return __omnixhq_ucp_js_sdk.PaymentHandlerPlatformSchema;
|
|
2203
|
+
}
|
|
2204
|
+
});
|
|
2205
|
+
Object.defineProperty(exports, 'PaymentHandlerResponseSchema', {
|
|
2206
|
+
enumerable: true,
|
|
2207
|
+
get: function () {
|
|
2208
|
+
return __omnixhq_ucp_js_sdk.PaymentHandlerResponseSchema;
|
|
2209
|
+
}
|
|
2210
|
+
});
|
|
2211
|
+
Object.defineProperty(exports, 'PaymentIdentitySchema', {
|
|
2212
|
+
enumerable: true,
|
|
2213
|
+
get: function () {
|
|
2214
|
+
return __omnixhq_ucp_js_sdk.PaymentIdentitySchema;
|
|
2215
|
+
}
|
|
2216
|
+
});
|
|
2217
|
+
Object.defineProperty(exports, 'PaymentInstrumentResponseSchema', {
|
|
2218
|
+
enumerable: true,
|
|
2219
|
+
get: function () {
|
|
2220
|
+
return __omnixhq_ucp_js_sdk.PaymentInstrumentResponseSchema;
|
|
2221
|
+
}
|
|
2222
|
+
});
|
|
2223
|
+
Object.defineProperty(exports, 'PaymentInstrumentSchema', {
|
|
2224
|
+
enumerable: true,
|
|
2225
|
+
get: function () {
|
|
2226
|
+
return __omnixhq_ucp_js_sdk.PaymentInstrumentSchema;
|
|
2227
|
+
}
|
|
2228
|
+
});
|
|
2229
|
+
Object.defineProperty(exports, 'PaymentResponseSchema', {
|
|
2230
|
+
enumerable: true,
|
|
2231
|
+
get: function () {
|
|
2232
|
+
return __omnixhq_ucp_js_sdk.PaymentResponseSchema;
|
|
2233
|
+
}
|
|
2234
|
+
});
|
|
2235
|
+
Object.defineProperty(exports, 'PaymentSchema', {
|
|
2236
|
+
enumerable: true,
|
|
2237
|
+
get: function () {
|
|
2238
|
+
return __omnixhq_ucp_js_sdk.PaymentSchema;
|
|
2239
|
+
}
|
|
2240
|
+
});
|
|
2241
|
+
Object.defineProperty(exports, 'PlatformFulfillmentConfigSchema', {
|
|
2242
|
+
enumerable: true,
|
|
2243
|
+
get: function () {
|
|
2244
|
+
return __omnixhq_ucp_js_sdk.PlatformFulfillmentConfigSchema;
|
|
2245
|
+
}
|
|
2246
|
+
});
|
|
2247
|
+
Object.defineProperty(exports, 'PostalAddressSchema', {
|
|
2248
|
+
enumerable: true,
|
|
2249
|
+
get: function () {
|
|
2250
|
+
return __omnixhq_ucp_js_sdk.PostalAddressSchema;
|
|
2251
|
+
}
|
|
2252
|
+
});
|
|
2253
|
+
Object.defineProperty(exports, 'PriceFilterSchema', {
|
|
2254
|
+
enumerable: true,
|
|
2255
|
+
get: function () {
|
|
2256
|
+
return __omnixhq_ucp_js_sdk.PriceFilterSchema;
|
|
2257
|
+
}
|
|
2258
|
+
});
|
|
2259
|
+
Object.defineProperty(exports, 'PriceRangeSchema', {
|
|
2260
|
+
enumerable: true,
|
|
2261
|
+
get: function () {
|
|
2262
|
+
return __omnixhq_ucp_js_sdk.PriceRangeSchema;
|
|
2263
|
+
}
|
|
2264
|
+
});
|
|
2265
|
+
Object.defineProperty(exports, 'PriceSchema', {
|
|
2266
|
+
enumerable: true,
|
|
2267
|
+
get: function () {
|
|
2268
|
+
return __omnixhq_ucp_js_sdk.PriceSchema;
|
|
2269
|
+
}
|
|
2270
|
+
});
|
|
2271
|
+
Object.defineProperty(exports, 'ProductOptionSchema', {
|
|
2272
|
+
enumerable: true,
|
|
2273
|
+
get: function () {
|
|
2274
|
+
return __omnixhq_ucp_js_sdk.ProductOptionSchema;
|
|
2275
|
+
}
|
|
2276
|
+
});
|
|
2277
|
+
Object.defineProperty(exports, 'ProductSchema', {
|
|
2278
|
+
enumerable: true,
|
|
2279
|
+
get: function () {
|
|
2280
|
+
return __omnixhq_ucp_js_sdk.ProductSchema;
|
|
2281
|
+
}
|
|
2282
|
+
});
|
|
2283
|
+
Object.defineProperty(exports, 'ProfileSchemaBaseSchema', {
|
|
2284
|
+
enumerable: true,
|
|
2285
|
+
get: function () {
|
|
2286
|
+
return __omnixhq_ucp_js_sdk.ProfileSchemaBaseSchema;
|
|
2287
|
+
}
|
|
2288
|
+
});
|
|
2289
|
+
Object.defineProperty(exports, 'ProfileSchemaBusinessProfileSchema', {
|
|
2290
|
+
enumerable: true,
|
|
2291
|
+
get: function () {
|
|
2292
|
+
return __omnixhq_ucp_js_sdk.ProfileSchemaBusinessProfileSchema;
|
|
2293
|
+
}
|
|
2294
|
+
});
|
|
2295
|
+
Object.defineProperty(exports, 'ProfileSchemaPlatformProfileSchema', {
|
|
2296
|
+
enumerable: true,
|
|
2297
|
+
get: function () {
|
|
2298
|
+
return __omnixhq_ucp_js_sdk.ProfileSchemaPlatformProfileSchema;
|
|
2299
|
+
}
|
|
2300
|
+
});
|
|
2301
|
+
Object.defineProperty(exports, 'ProfileSchemaSigningKeySchema', {
|
|
2302
|
+
enumerable: true,
|
|
2303
|
+
get: function () {
|
|
2304
|
+
return __omnixhq_ucp_js_sdk.ProfileSchemaSigningKeySchema;
|
|
2305
|
+
}
|
|
2306
|
+
});
|
|
2307
|
+
Object.defineProperty(exports, 'ProfileSchemaSigningKeyUseEnumSchema', {
|
|
2308
|
+
enumerable: true,
|
|
2309
|
+
get: function () {
|
|
2310
|
+
return __omnixhq_ucp_js_sdk.ProfileSchemaSigningKeyUseEnumSchema;
|
|
2311
|
+
}
|
|
2312
|
+
});
|
|
2313
|
+
Object.defineProperty(exports, 'RatingSchema', {
|
|
2314
|
+
enumerable: true,
|
|
2315
|
+
get: function () {
|
|
2316
|
+
return __omnixhq_ucp_js_sdk.RatingSchema;
|
|
2317
|
+
}
|
|
2318
|
+
});
|
|
2319
|
+
Object.defineProperty(exports, 'RetailLocationSchema', {
|
|
2320
|
+
enumerable: true,
|
|
2321
|
+
get: function () {
|
|
2322
|
+
return __omnixhq_ucp_js_sdk.RetailLocationSchema;
|
|
2323
|
+
}
|
|
2324
|
+
});
|
|
2325
|
+
Object.defineProperty(exports, 'ReverseDomainNameSchema', {
|
|
2326
|
+
enumerable: true,
|
|
2327
|
+
get: function () {
|
|
2328
|
+
return __omnixhq_ucp_js_sdk.ReverseDomainNameSchema;
|
|
2329
|
+
}
|
|
2330
|
+
});
|
|
2331
|
+
Object.defineProperty(exports, 'SearchFiltersSchema', {
|
|
2332
|
+
enumerable: true,
|
|
2333
|
+
get: function () {
|
|
2334
|
+
return __omnixhq_ucp_js_sdk.SearchFiltersSchema;
|
|
2335
|
+
}
|
|
2336
|
+
});
|
|
2337
|
+
Object.defineProperty(exports, 'SelectedOptionSchema', {
|
|
2338
|
+
enumerable: true,
|
|
2339
|
+
get: function () {
|
|
2340
|
+
return __omnixhq_ucp_js_sdk.SelectedOptionSchema;
|
|
2341
|
+
}
|
|
2342
|
+
});
|
|
2343
|
+
Object.defineProperty(exports, 'ServiceBaseSchema', {
|
|
2344
|
+
enumerable: true,
|
|
2345
|
+
get: function () {
|
|
2346
|
+
return __omnixhq_ucp_js_sdk.ServiceBaseSchema;
|
|
2347
|
+
}
|
|
2348
|
+
});
|
|
2349
|
+
Object.defineProperty(exports, 'ServiceBaseTransportEnumSchema', {
|
|
2350
|
+
enumerable: true,
|
|
2351
|
+
get: function () {
|
|
2352
|
+
return __omnixhq_ucp_js_sdk.ServiceBaseTransportEnumSchema;
|
|
2353
|
+
}
|
|
2354
|
+
});
|
|
2355
|
+
Object.defineProperty(exports, 'ServiceBusinessSchema', {
|
|
2356
|
+
enumerable: true,
|
|
2357
|
+
get: function () {
|
|
2358
|
+
return __omnixhq_ucp_js_sdk.ServiceBusinessSchema;
|
|
2359
|
+
}
|
|
2360
|
+
});
|
|
2361
|
+
Object.defineProperty(exports, 'ServicePlatformSchema', {
|
|
2362
|
+
enumerable: true,
|
|
2363
|
+
get: function () {
|
|
2364
|
+
return __omnixhq_ucp_js_sdk.ServicePlatformSchema;
|
|
2365
|
+
}
|
|
2366
|
+
});
|
|
2367
|
+
Object.defineProperty(exports, 'ServiceResponseSchema', {
|
|
2368
|
+
enumerable: true,
|
|
2369
|
+
get: function () {
|
|
2370
|
+
return __omnixhq_ucp_js_sdk.ServiceResponseSchema;
|
|
2371
|
+
}
|
|
2372
|
+
});
|
|
2373
|
+
Object.defineProperty(exports, 'ShippingDestinationSchema', {
|
|
2374
|
+
enumerable: true,
|
|
2375
|
+
get: function () {
|
|
2376
|
+
return __omnixhq_ucp_js_sdk.ShippingDestinationSchema;
|
|
2377
|
+
}
|
|
2378
|
+
});
|
|
2379
|
+
Object.defineProperty(exports, 'SignalsSchema', {
|
|
2380
|
+
enumerable: true,
|
|
2381
|
+
get: function () {
|
|
2382
|
+
return __omnixhq_ucp_js_sdk.SignalsSchema;
|
|
2383
|
+
}
|
|
2384
|
+
});
|
|
2385
|
+
Object.defineProperty(exports, 'SignedAmountSchema', {
|
|
2386
|
+
enumerable: true,
|
|
2387
|
+
get: function () {
|
|
2388
|
+
return __omnixhq_ucp_js_sdk.SignedAmountSchema;
|
|
2389
|
+
}
|
|
2390
|
+
});
|
|
2391
|
+
Object.defineProperty(exports, 'TokenCredentialSchema', {
|
|
2392
|
+
enumerable: true,
|
|
2393
|
+
get: function () {
|
|
2394
|
+
return __omnixhq_ucp_js_sdk.TokenCredentialSchema;
|
|
2395
|
+
}
|
|
2396
|
+
});
|
|
2397
|
+
Object.defineProperty(exports, 'TotalResponseSchema', {
|
|
2398
|
+
enumerable: true,
|
|
2399
|
+
get: function () {
|
|
2400
|
+
return __omnixhq_ucp_js_sdk.TotalResponseSchema;
|
|
2401
|
+
}
|
|
2402
|
+
});
|
|
2403
|
+
Object.defineProperty(exports, 'TotalSchema', {
|
|
2404
|
+
enumerable: true,
|
|
2405
|
+
get: function () {
|
|
2406
|
+
return __omnixhq_ucp_js_sdk.TotalSchema;
|
|
2407
|
+
}
|
|
2408
|
+
});
|
|
2409
|
+
Object.defineProperty(exports, 'TotalsSchema', {
|
|
2410
|
+
enumerable: true,
|
|
2411
|
+
get: function () {
|
|
2412
|
+
return __omnixhq_ucp_js_sdk.TotalsSchema;
|
|
2413
|
+
}
|
|
2414
|
+
});
|
|
1436
2415
|
exports.UCPClient = UCPClient
|
|
1437
2416
|
exports.UCPError = require_errors.UCPError
|
|
1438
2417
|
exports.UCPEscalationError = require_errors.UCPEscalationError
|
|
1439
2418
|
exports.UCPIdempotencyConflictError = require_errors.UCPIdempotencyConflictError
|
|
1440
2419
|
exports.UCPOAuthError = require_errors.UCPOAuthError
|
|
1441
2420
|
exports.UCPProfileSchema = UCPProfileSchema
|
|
1442
|
-
exports
|
|
2421
|
+
Object.defineProperty(exports, 'UCPSpecOrderSchema', {
|
|
2422
|
+
enumerable: true,
|
|
2423
|
+
get: function () {
|
|
2424
|
+
return __omnixhq_ucp_js_sdk.OrderSchema;
|
|
2425
|
+
}
|
|
2426
|
+
});
|
|
1443
2427
|
exports.UCP_CAPABILITIES = UCP_CAPABILITIES
|
|
1444
|
-
exports
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
exports
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
2428
|
+
Object.defineProperty(exports, 'UcpBaseSchema', {
|
|
2429
|
+
enumerable: true,
|
|
2430
|
+
get: function () {
|
|
2431
|
+
return __omnixhq_ucp_js_sdk.UcpBaseSchema;
|
|
2432
|
+
}
|
|
2433
|
+
});
|
|
2434
|
+
Object.defineProperty(exports, 'UcpBaseStatusEnumSchema', {
|
|
2435
|
+
enumerable: true,
|
|
2436
|
+
get: function () {
|
|
2437
|
+
return __omnixhq_ucp_js_sdk.UcpBaseStatusEnumSchema;
|
|
2438
|
+
}
|
|
2439
|
+
});
|
|
2440
|
+
Object.defineProperty(exports, 'UcpBusinessSchema', {
|
|
2441
|
+
enumerable: true,
|
|
2442
|
+
get: function () {
|
|
2443
|
+
return __omnixhq_ucp_js_sdk.UcpBusinessSchema;
|
|
2444
|
+
}
|
|
2445
|
+
});
|
|
2446
|
+
Object.defineProperty(exports, 'UcpDiscoveryBusinessProfileSchema', {
|
|
2447
|
+
enumerable: true,
|
|
2448
|
+
get: function () {
|
|
2449
|
+
return __omnixhq_ucp_js_sdk.UcpDiscoveryBusinessProfileSchema;
|
|
2450
|
+
}
|
|
2451
|
+
});
|
|
2452
|
+
Object.defineProperty(exports, 'UcpDiscoveryPlatformProfileSchema', {
|
|
2453
|
+
enumerable: true,
|
|
2454
|
+
get: function () {
|
|
2455
|
+
return __omnixhq_ucp_js_sdk.UcpDiscoveryPlatformProfileSchema;
|
|
2456
|
+
}
|
|
2457
|
+
});
|
|
2458
|
+
Object.defineProperty(exports, 'UcpEntitySchema', {
|
|
2459
|
+
enumerable: true,
|
|
2460
|
+
get: function () {
|
|
2461
|
+
return __omnixhq_ucp_js_sdk.UcpEntitySchema;
|
|
2462
|
+
}
|
|
2463
|
+
});
|
|
2464
|
+
Object.defineProperty(exports, 'UcpErrorSchema', {
|
|
2465
|
+
enumerable: true,
|
|
2466
|
+
get: function () {
|
|
2467
|
+
return __omnixhq_ucp_js_sdk.UcpErrorSchema;
|
|
2468
|
+
}
|
|
2469
|
+
});
|
|
2470
|
+
Object.defineProperty(exports, 'UcpPlatformSchema', {
|
|
2471
|
+
enumerable: true,
|
|
2472
|
+
get: function () {
|
|
2473
|
+
return __omnixhq_ucp_js_sdk.UcpPlatformSchema;
|
|
2474
|
+
}
|
|
2475
|
+
});
|
|
2476
|
+
Object.defineProperty(exports, 'UcpRequiresSchema', {
|
|
2477
|
+
enumerable: true,
|
|
2478
|
+
get: function () {
|
|
2479
|
+
return __omnixhq_ucp_js_sdk.UcpRequiresSchema;
|
|
2480
|
+
}
|
|
2481
|
+
});
|
|
2482
|
+
Object.defineProperty(exports, 'UcpResponseCartSchema', {
|
|
2483
|
+
enumerable: true,
|
|
2484
|
+
get: function () {
|
|
2485
|
+
return __omnixhq_ucp_js_sdk.UcpResponseCartSchema;
|
|
2486
|
+
}
|
|
2487
|
+
});
|
|
2488
|
+
Object.defineProperty(exports, 'UcpResponseCatalogSchema', {
|
|
2489
|
+
enumerable: true,
|
|
2490
|
+
get: function () {
|
|
2491
|
+
return __omnixhq_ucp_js_sdk.UcpResponseCatalogSchema;
|
|
2492
|
+
}
|
|
2493
|
+
});
|
|
2494
|
+
Object.defineProperty(exports, 'UcpResponseCheckoutSchema', {
|
|
2495
|
+
enumerable: true,
|
|
2496
|
+
get: function () {
|
|
2497
|
+
return __omnixhq_ucp_js_sdk.UcpResponseCheckoutSchema;
|
|
2498
|
+
}
|
|
2499
|
+
});
|
|
2500
|
+
Object.defineProperty(exports, 'UcpResponseOrderSchema', {
|
|
2501
|
+
enumerable: true,
|
|
2502
|
+
get: function () {
|
|
2503
|
+
return __omnixhq_ucp_js_sdk.UcpResponseOrderSchema;
|
|
2504
|
+
}
|
|
2505
|
+
});
|
|
2506
|
+
Object.defineProperty(exports, 'UcpSigningKeySchema', {
|
|
2507
|
+
enumerable: true,
|
|
2508
|
+
get: function () {
|
|
2509
|
+
return __omnixhq_ucp_js_sdk.UcpSigningKeySchema;
|
|
2510
|
+
}
|
|
2511
|
+
});
|
|
2512
|
+
Object.defineProperty(exports, 'UcpSuccessSchema', {
|
|
2513
|
+
enumerable: true,
|
|
2514
|
+
get: function () {
|
|
2515
|
+
return __omnixhq_ucp_js_sdk.UcpSuccessSchema;
|
|
2516
|
+
}
|
|
2517
|
+
});
|
|
2518
|
+
Object.defineProperty(exports, 'UcpVersionConstraintSchema', {
|
|
2519
|
+
enumerable: true,
|
|
2520
|
+
get: function () {
|
|
2521
|
+
return __omnixhq_ucp_js_sdk.UcpVersionConstraintSchema;
|
|
2522
|
+
}
|
|
2523
|
+
});
|
|
2524
|
+
Object.defineProperty(exports, 'UcpVersionSchema', {
|
|
2525
|
+
enumerable: true,
|
|
2526
|
+
get: function () {
|
|
2527
|
+
return __omnixhq_ucp_js_sdk.UcpVersionSchema;
|
|
2528
|
+
}
|
|
2529
|
+
});
|
|
1454
2530
|
exports.UpdateCheckoutRequestSchema = UpdateCheckoutRequestSchema
|
|
2531
|
+
Object.defineProperty(exports, 'VariantSchema', {
|
|
2532
|
+
enumerable: true,
|
|
2533
|
+
get: function () {
|
|
2534
|
+
return __omnixhq_ucp_js_sdk.VariantSchema;
|
|
2535
|
+
}
|
|
2536
|
+
});
|
|
1455
2537
|
exports.WebhookEventSchema = WebhookEventSchema
|
|
1456
2538
|
exports.connect = connect
|
|
1457
2539
|
exports.createWebhookVerifier = createWebhookVerifier
|