@weftlabs/sdk 0.26.3 → 0.26.7
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/facilitator/middleware/index.js +1 -1
- package/dist/facilitator/middleware/index.js.map +1 -1
- package/dist/facilitator/middleware/index.mjs +1 -1
- package/dist/facilitator/middleware/index.mjs.map +1 -1
- package/dist/index.d.mts +115 -95
- package/dist/index.d.ts +115 -95
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -0
- package/dist/index.mjs.map +1 -1
- package/dist/server.js +1 -1
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +1 -1
- package/dist/server.mjs.map +1 -1
- package/docs/Purchase.md +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -218,6 +218,7 @@ __export(src_exports, {
|
|
|
218
218
|
PurchaseArtifactFromJSONTyped: () => PurchaseArtifactFromJSONTyped,
|
|
219
219
|
PurchaseArtifactToJSON: () => PurchaseArtifactToJSON,
|
|
220
220
|
PurchaseArtifactToJSONTyped: () => PurchaseArtifactToJSONTyped,
|
|
221
|
+
PurchaseAttributionStatusEnum: () => PurchaseAttributionStatusEnum,
|
|
221
222
|
PurchaseFromJSON: () => PurchaseFromJSON,
|
|
222
223
|
PurchaseFromJSONTyped: () => PurchaseFromJSONTyped,
|
|
223
224
|
PurchaseListResponseFromJSON: () => PurchaseListResponseFromJSON,
|
|
@@ -2644,6 +2645,10 @@ var PurchaseProtocolEnum = {
|
|
|
2644
2645
|
Mpp: "mpp",
|
|
2645
2646
|
X402: "x402"
|
|
2646
2647
|
};
|
|
2648
|
+
var PurchaseAttributionStatusEnum = {
|
|
2649
|
+
Attributed: "attributed",
|
|
2650
|
+
Unattributed: "unattributed"
|
|
2651
|
+
};
|
|
2647
2652
|
function instanceOfPurchase(value) {
|
|
2648
2653
|
if (!("id" in value) || value["id"] === void 0) return false;
|
|
2649
2654
|
if (!("status" in value) || value["status"] === void 0) return false;
|
|
@@ -2652,6 +2657,8 @@ function instanceOfPurchase(value) {
|
|
|
2652
2657
|
if (!("network" in value) || value["network"] === void 0) return false;
|
|
2653
2658
|
if (!("protocol" in value) || value["protocol"] === void 0) return false;
|
|
2654
2659
|
if (!("context" in value) || value["context"] === void 0) return false;
|
|
2660
|
+
if (!("searchId" in value) || value["searchId"] === void 0) return false;
|
|
2661
|
+
if (!("attributionStatus" in value) || value["attributionStatus"] === void 0) return false;
|
|
2655
2662
|
if (!("txHash" in value) || value["txHash"] === void 0) return false;
|
|
2656
2663
|
if (!("rejectReason" in value) || value["rejectReason"] === void 0) return false;
|
|
2657
2664
|
if (!("failureReason" in value) || value["failureReason"] === void 0) return false;
|
|
@@ -2676,6 +2683,8 @@ function PurchaseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
2676
2683
|
"network": json["network"],
|
|
2677
2684
|
"protocol": json["protocol"],
|
|
2678
2685
|
"context": json["context"],
|
|
2686
|
+
"searchId": json["search_id"],
|
|
2687
|
+
"attributionStatus": json["attribution_status"],
|
|
2679
2688
|
"txHash": json["tx_hash"],
|
|
2680
2689
|
"rejectReason": json["reject_reason"],
|
|
2681
2690
|
"failureReason": json["failure_reason"],
|
|
@@ -2700,6 +2709,8 @@ function PurchaseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
2700
2709
|
"network": value["network"],
|
|
2701
2710
|
"protocol": value["protocol"],
|
|
2702
2711
|
"context": value["context"],
|
|
2712
|
+
"search_id": value["searchId"],
|
|
2713
|
+
"attribution_status": value["attributionStatus"],
|
|
2703
2714
|
"tx_hash": value["txHash"],
|
|
2704
2715
|
"reject_reason": value["rejectReason"],
|
|
2705
2716
|
"failure_reason": value["failureReason"],
|
|
@@ -5268,6 +5279,7 @@ __reExport(src_exports, facilitator_exports, module.exports);
|
|
|
5268
5279
|
PurchaseArtifactFromJSONTyped,
|
|
5269
5280
|
PurchaseArtifactToJSON,
|
|
5270
5281
|
PurchaseArtifactToJSONTyped,
|
|
5282
|
+
PurchaseAttributionStatusEnum,
|
|
5271
5283
|
PurchaseFromJSON,
|
|
5272
5284
|
PurchaseFromJSONTyped,
|
|
5273
5285
|
PurchaseListResponseFromJSON,
|