digirails 0.1.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/LICENSE +21 -0
- package/README.md +102 -0
- package/dist/agent.d.ts +72 -0
- package/dist/agent.d.ts.map +1 -0
- package/dist/agent.js +176 -0
- package/dist/agent.js.map +1 -0
- package/dist/config.d.ts +24 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +46 -0
- package/dist/config.js.map +1 -0
- package/dist/crypto/base58.d.ts +9 -0
- package/dist/crypto/base58.d.ts.map +1 -0
- package/dist/crypto/base58.js +107 -0
- package/dist/crypto/base58.js.map +1 -0
- package/dist/crypto/bech32.d.ts +9 -0
- package/dist/crypto/bech32.d.ts.map +1 -0
- package/dist/crypto/bech32.js +141 -0
- package/dist/crypto/bech32.js.map +1 -0
- package/dist/crypto/index.d.ts +6 -0
- package/dist/crypto/index.d.ts.map +1 -0
- package/dist/crypto/index.js +22 -0
- package/dist/crypto/index.js.map +1 -0
- package/dist/crypto/keys.d.ts +25 -0
- package/dist/crypto/keys.d.ts.map +1 -0
- package/dist/crypto/keys.js +129 -0
- package/dist/crypto/keys.js.map +1 -0
- package/dist/crypto/script.d.ts +12 -0
- package/dist/crypto/script.d.ts.map +1 -0
- package/dist/crypto/script.js +105 -0
- package/dist/crypto/script.js.map +1 -0
- package/dist/crypto/transaction.d.ts +47 -0
- package/dist/crypto/transaction.d.ts.map +1 -0
- package/dist/crypto/transaction.js +227 -0
- package/dist/crypto/transaction.js.map +1 -0
- package/dist/discovery/index.d.ts +2 -0
- package/dist/discovery/index.d.ts.map +1 -0
- package/dist/discovery/index.js +6 -0
- package/dist/discovery/index.js.map +1 -0
- package/dist/discovery/manifest_client.d.ts +9 -0
- package/dist/discovery/manifest_client.d.ts.map +1 -0
- package/dist/discovery/manifest_client.js +29 -0
- package/dist/discovery/manifest_client.js.map +1 -0
- package/dist/exceptions.d.ts +32 -0
- package/dist/exceptions.d.ts.map +1 -0
- package/dist/exceptions.js +72 -0
- package/dist/exceptions.js.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +135 -0
- package/dist/index.js.map +1 -0
- package/dist/models/enums.d.ts +48 -0
- package/dist/models/enums.d.ts.map +1 -0
- package/dist/models/enums.js +84 -0
- package/dist/models/enums.js.map +1 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +20 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/manifest.d.ts +327 -0
- package/dist/models/manifest.d.ts.map +1 -0
- package/dist/models/manifest.js +47 -0
- package/dist/models/manifest.js.map +1 -0
- package/dist/models/messages.d.ts +336 -0
- package/dist/models/messages.d.ts.map +1 -0
- package/dist/models/messages.js +166 -0
- package/dist/models/messages.js.map +1 -0
- package/dist/network/constants.d.ts +51 -0
- package/dist/network/constants.d.ts.map +1 -0
- package/dist/network/constants.js +63 -0
- package/dist/network/constants.js.map +1 -0
- package/dist/network/index.d.ts +3 -0
- package/dist/network/index.d.ts.map +1 -0
- package/dist/network/index.js +19 -0
- package/dist/network/index.js.map +1 -0
- package/dist/network/params.d.ts +21 -0
- package/dist/network/params.d.ts.map +1 -0
- package/dist/network/params.js +57 -0
- package/dist/network/params.js.map +1 -0
- package/dist/opreturn.d.ts +25 -0
- package/dist/opreturn.d.ts.map +1 -0
- package/dist/opreturn.js +118 -0
- package/dist/opreturn.js.map +1 -0
- package/dist/payment/buyer.d.ts +29 -0
- package/dist/payment/buyer.d.ts.map +1 -0
- package/dist/payment/buyer.js +118 -0
- package/dist/payment/buyer.js.map +1 -0
- package/dist/payment/flow.d.ts +20 -0
- package/dist/payment/flow.d.ts.map +1 -0
- package/dist/payment/flow.js +29 -0
- package/dist/payment/flow.js.map +1 -0
- package/dist/payment/index.d.ts +5 -0
- package/dist/payment/index.d.ts.map +1 -0
- package/dist/payment/index.js +13 -0
- package/dist/payment/index.js.map +1 -0
- package/dist/payment/seller.d.ts +27 -0
- package/dist/payment/seller.d.ts.map +1 -0
- package/dist/payment/seller.js +193 -0
- package/dist/payment/seller.js.map +1 -0
- package/dist/payment/verification.d.ts +8 -0
- package/dist/payment/verification.d.ts.map +1 -0
- package/dist/payment/verification.js +89 -0
- package/dist/payment/verification.js.map +1 -0
- package/dist/rpc/client.d.ts +21 -0
- package/dist/rpc/client.d.ts.map +1 -0
- package/dist/rpc/client.js +131 -0
- package/dist/rpc/client.js.map +1 -0
- package/dist/rpc/index.d.ts +2 -0
- package/dist/rpc/index.d.ts.map +1 -0
- package/dist/rpc/index.js +6 -0
- package/dist/rpc/index.js.map +1 -0
- package/dist/server.d.ts +24 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +104 -0
- package/dist/server.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +5 -0
- package/dist/version.js.map +1 -0
- package/dist/wallet/index.d.ts +4 -0
- package/dist/wallet/index.d.ts.map +1 -0
- package/dist/wallet/index.js +14 -0
- package/dist/wallet/index.js.map +1 -0
- package/dist/wallet/keystore.d.ts +32 -0
- package/dist/wallet/keystore.d.ts.map +1 -0
- package/dist/wallet/keystore.js +111 -0
- package/dist/wallet/keystore.js.map +1 -0
- package/dist/wallet/utxo.d.ts +32 -0
- package/dist/wallet/utxo.d.ts.map +1 -0
- package/dist/wallet/utxo.js +88 -0
- package/dist/wallet/utxo.js.map +1 -0
- package/dist/wallet/wallet.d.ts +52 -0
- package/dist/wallet/wallet.d.ts.map +1 -0
- package/dist/wallet/wallet.js +249 -0
- package/dist/wallet/wallet.js.map +1 -0
- package/package.json +43 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Protocol enumerations: confirmation tiers, service categories, error codes.
|
|
3
|
+
*/
|
|
4
|
+
/** Confirmation tiers with their required confirmations and max DGB limits */
|
|
5
|
+
export declare enum ConfirmationTier {
|
|
6
|
+
MEMPOOL = "mempool",
|
|
7
|
+
FLASH = "flash",
|
|
8
|
+
STANDARD = "standard",
|
|
9
|
+
SECURE = "secure"
|
|
10
|
+
}
|
|
11
|
+
export declare function tierConfirmations(tier: ConfirmationTier): number;
|
|
12
|
+
export declare function tierMaxDgb(tier: ConfirmationTier): number | null;
|
|
13
|
+
/** DR-Pay service categories (18 defined in spec v0.2.0) */
|
|
14
|
+
export declare enum ServiceCategory {
|
|
15
|
+
LLM_INFERENCE = 1,
|
|
16
|
+
IMAGE_GENERATION = 2,
|
|
17
|
+
CODE_EXECUTION = 3,
|
|
18
|
+
DATA_RETRIEVAL = 4,
|
|
19
|
+
EMBEDDING_VECTOR_SEARCH = 5,
|
|
20
|
+
MEDIA_PROCESSING = 6,
|
|
21
|
+
TRANSLATION = 7,
|
|
22
|
+
GENERAL_COMPUTE = 8,
|
|
23
|
+
STORAGE = 9,
|
|
24
|
+
RELAY_PROXY = 10,
|
|
25
|
+
WEB_SEARCH = 11,
|
|
26
|
+
WEB_SCRAPING = 12,
|
|
27
|
+
DOCUMENT_PARSING = 13,
|
|
28
|
+
DATA_ENRICHMENT = 14,
|
|
29
|
+
FACT_VERIFICATION = 15,
|
|
30
|
+
AGENT_TASK_DELEGATION = 16,
|
|
31
|
+
KNOWLEDGE_GRAPH = 17,
|
|
32
|
+
COMPLIANCE = 18
|
|
33
|
+
}
|
|
34
|
+
/** DR-Pay error codes */
|
|
35
|
+
export declare enum ErrorCode {
|
|
36
|
+
INVALID_REQUEST = "INVALID_REQUEST",
|
|
37
|
+
UNKNOWN_SERVICE = "UNKNOWN_SERVICE",
|
|
38
|
+
INSUFFICIENT_PAYMENT = "INSUFFICIENT_PAYMENT",
|
|
39
|
+
INVOICE_EXPIRED = "INVOICE_EXPIRED",
|
|
40
|
+
PAYMENT_NOT_FOUND = "PAYMENT_NOT_FOUND",
|
|
41
|
+
PAYMENT_MISMATCH = "PAYMENT_MISMATCH",
|
|
42
|
+
TIER_REJECTED = "TIER_REJECTED",
|
|
43
|
+
SERVICE_UNAVAILABLE = "SERVICE_UNAVAILABLE",
|
|
44
|
+
RATE_LIMITED = "RATE_LIMITED",
|
|
45
|
+
CURRENCY_NOT_ACCEPTED = "CURRENCY_NOT_ACCEPTED"
|
|
46
|
+
}
|
|
47
|
+
export declare function isRetryable(code: ErrorCode): boolean;
|
|
48
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../src/models/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,8EAA8E;AAC9E,oBAAY,gBAAgB;IAC1B,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB;AAgBD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,gBAAgB,GAAG,MAAM,CAEhE;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,gBAAgB,GAAG,MAAM,GAAG,IAAI,CAEhE;AAED,4DAA4D;AAC5D,oBAAY,eAAe;IACzB,aAAa,IAAS;IACtB,gBAAgB,IAAS;IACzB,cAAc,IAAS;IACvB,cAAc,IAAS;IACvB,uBAAuB,IAAS;IAChC,gBAAgB,IAAS;IACzB,WAAW,IAAS;IACpB,eAAe,IAAS;IACxB,OAAO,IAAS;IAChB,WAAW,KAAS;IACpB,UAAU,KAAS;IACnB,YAAY,KAAS;IACrB,gBAAgB,KAAS;IACzB,eAAe,KAAS;IACxB,iBAAiB,KAAS;IAC1B,qBAAqB,KAAS;IAC9B,eAAe,KAAS;IACxB,UAAU,KAAS;CACpB;AAED,yBAAyB;AACzB,oBAAY,SAAS;IACnB,eAAe,oBAAoB;IACnC,eAAe,oBAAoB;IACnC,oBAAoB,yBAAyB;IAC7C,eAAe,oBAAoB;IACnC,iBAAiB,sBAAsB;IACvC,gBAAgB,qBAAqB;IACrC,aAAa,kBAAkB;IAC/B,mBAAmB,wBAAwB;IAC3C,YAAY,iBAAiB;IAC7B,qBAAqB,0BAA0B;CAChD;AAYD,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAEpD"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Protocol enumerations: confirmation tiers, service categories, error codes.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ErrorCode = exports.ServiceCategory = exports.ConfirmationTier = void 0;
|
|
7
|
+
exports.tierConfirmations = tierConfirmations;
|
|
8
|
+
exports.tierMaxDgb = tierMaxDgb;
|
|
9
|
+
exports.isRetryable = isRetryable;
|
|
10
|
+
/** Confirmation tiers with their required confirmations and max DGB limits */
|
|
11
|
+
var ConfirmationTier;
|
|
12
|
+
(function (ConfirmationTier) {
|
|
13
|
+
ConfirmationTier["MEMPOOL"] = "mempool";
|
|
14
|
+
ConfirmationTier["FLASH"] = "flash";
|
|
15
|
+
ConfirmationTier["STANDARD"] = "standard";
|
|
16
|
+
ConfirmationTier["SECURE"] = "secure";
|
|
17
|
+
})(ConfirmationTier || (exports.ConfirmationTier = ConfirmationTier = {}));
|
|
18
|
+
const TIER_CONFIRMATIONS = {
|
|
19
|
+
[ConfirmationTier.MEMPOOL]: 0,
|
|
20
|
+
[ConfirmationTier.FLASH]: 1,
|
|
21
|
+
[ConfirmationTier.STANDARD]: 4,
|
|
22
|
+
[ConfirmationTier.SECURE]: 10,
|
|
23
|
+
};
|
|
24
|
+
const TIER_MAX_DGB = {
|
|
25
|
+
[ConfirmationTier.MEMPOOL]: 1,
|
|
26
|
+
[ConfirmationTier.FLASH]: 100,
|
|
27
|
+
[ConfirmationTier.STANDARD]: 10_000,
|
|
28
|
+
[ConfirmationTier.SECURE]: null,
|
|
29
|
+
};
|
|
30
|
+
function tierConfirmations(tier) {
|
|
31
|
+
return TIER_CONFIRMATIONS[tier];
|
|
32
|
+
}
|
|
33
|
+
function tierMaxDgb(tier) {
|
|
34
|
+
return TIER_MAX_DGB[tier];
|
|
35
|
+
}
|
|
36
|
+
/** DR-Pay service categories (18 defined in spec v0.2.0) */
|
|
37
|
+
var ServiceCategory;
|
|
38
|
+
(function (ServiceCategory) {
|
|
39
|
+
ServiceCategory[ServiceCategory["LLM_INFERENCE"] = 1] = "LLM_INFERENCE";
|
|
40
|
+
ServiceCategory[ServiceCategory["IMAGE_GENERATION"] = 2] = "IMAGE_GENERATION";
|
|
41
|
+
ServiceCategory[ServiceCategory["CODE_EXECUTION"] = 3] = "CODE_EXECUTION";
|
|
42
|
+
ServiceCategory[ServiceCategory["DATA_RETRIEVAL"] = 4] = "DATA_RETRIEVAL";
|
|
43
|
+
ServiceCategory[ServiceCategory["EMBEDDING_VECTOR_SEARCH"] = 5] = "EMBEDDING_VECTOR_SEARCH";
|
|
44
|
+
ServiceCategory[ServiceCategory["MEDIA_PROCESSING"] = 6] = "MEDIA_PROCESSING";
|
|
45
|
+
ServiceCategory[ServiceCategory["TRANSLATION"] = 7] = "TRANSLATION";
|
|
46
|
+
ServiceCategory[ServiceCategory["GENERAL_COMPUTE"] = 8] = "GENERAL_COMPUTE";
|
|
47
|
+
ServiceCategory[ServiceCategory["STORAGE"] = 9] = "STORAGE";
|
|
48
|
+
ServiceCategory[ServiceCategory["RELAY_PROXY"] = 10] = "RELAY_PROXY";
|
|
49
|
+
ServiceCategory[ServiceCategory["WEB_SEARCH"] = 11] = "WEB_SEARCH";
|
|
50
|
+
ServiceCategory[ServiceCategory["WEB_SCRAPING"] = 12] = "WEB_SCRAPING";
|
|
51
|
+
ServiceCategory[ServiceCategory["DOCUMENT_PARSING"] = 13] = "DOCUMENT_PARSING";
|
|
52
|
+
ServiceCategory[ServiceCategory["DATA_ENRICHMENT"] = 14] = "DATA_ENRICHMENT";
|
|
53
|
+
ServiceCategory[ServiceCategory["FACT_VERIFICATION"] = 15] = "FACT_VERIFICATION";
|
|
54
|
+
ServiceCategory[ServiceCategory["AGENT_TASK_DELEGATION"] = 16] = "AGENT_TASK_DELEGATION";
|
|
55
|
+
ServiceCategory[ServiceCategory["KNOWLEDGE_GRAPH"] = 17] = "KNOWLEDGE_GRAPH";
|
|
56
|
+
ServiceCategory[ServiceCategory["COMPLIANCE"] = 18] = "COMPLIANCE";
|
|
57
|
+
})(ServiceCategory || (exports.ServiceCategory = ServiceCategory = {}));
|
|
58
|
+
/** DR-Pay error codes */
|
|
59
|
+
var ErrorCode;
|
|
60
|
+
(function (ErrorCode) {
|
|
61
|
+
ErrorCode["INVALID_REQUEST"] = "INVALID_REQUEST";
|
|
62
|
+
ErrorCode["UNKNOWN_SERVICE"] = "UNKNOWN_SERVICE";
|
|
63
|
+
ErrorCode["INSUFFICIENT_PAYMENT"] = "INSUFFICIENT_PAYMENT";
|
|
64
|
+
ErrorCode["INVOICE_EXPIRED"] = "INVOICE_EXPIRED";
|
|
65
|
+
ErrorCode["PAYMENT_NOT_FOUND"] = "PAYMENT_NOT_FOUND";
|
|
66
|
+
ErrorCode["PAYMENT_MISMATCH"] = "PAYMENT_MISMATCH";
|
|
67
|
+
ErrorCode["TIER_REJECTED"] = "TIER_REJECTED";
|
|
68
|
+
ErrorCode["SERVICE_UNAVAILABLE"] = "SERVICE_UNAVAILABLE";
|
|
69
|
+
ErrorCode["RATE_LIMITED"] = "RATE_LIMITED";
|
|
70
|
+
ErrorCode["CURRENCY_NOT_ACCEPTED"] = "CURRENCY_NOT_ACCEPTED";
|
|
71
|
+
})(ErrorCode || (exports.ErrorCode = ErrorCode = {}));
|
|
72
|
+
const RETRYABLE_ERRORS = new Set([
|
|
73
|
+
ErrorCode.INSUFFICIENT_PAYMENT,
|
|
74
|
+
ErrorCode.INVOICE_EXPIRED,
|
|
75
|
+
ErrorCode.PAYMENT_NOT_FOUND,
|
|
76
|
+
ErrorCode.TIER_REJECTED,
|
|
77
|
+
ErrorCode.SERVICE_UNAVAILABLE,
|
|
78
|
+
ErrorCode.RATE_LIMITED,
|
|
79
|
+
ErrorCode.CURRENCY_NOT_ACCEPTED,
|
|
80
|
+
]);
|
|
81
|
+
function isRetryable(code) {
|
|
82
|
+
return RETRYABLE_ERRORS.has(code);
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/models/enums.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAwBH,8CAEC;AAED,gCAEC;AAgDD,kCAEC;AA9ED,8EAA8E;AAC9E,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,mCAAe,CAAA;IACf,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;AACnB,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B;AAED,MAAM,kBAAkB,GAAqC;IAC3D,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC;IAC3B,CAAC,gBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC9B,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,EAAE;CAC9B,CAAC;AAEF,MAAM,YAAY,GAA4C;IAC5D,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,GAAG;IAC7B,CAAC,gBAAgB,CAAC,QAAQ,CAAC,EAAE,MAAM;IACnC,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,IAAI;CAChC,CAAC;AAEF,SAAgB,iBAAiB,CAAC,IAAsB;IACtD,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC;AAED,SAAgB,UAAU,CAAC,IAAsB;IAC/C,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAED,4DAA4D;AAC5D,IAAY,eAmBX;AAnBD,WAAY,eAAe;IACzB,uEAAsB,CAAA;IACtB,6EAAyB,CAAA;I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1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./enums"), exports);
|
|
18
|
+
__exportStar(require("./messages"), exports);
|
|
19
|
+
__exportStar(require("./manifest"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B;AAC3B,6CAA2B"}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capabilities manifest model (served at /.well-known/digirails.json).
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
declare const PricingSchema: z.ZodObject<{
|
|
6
|
+
model: z.ZodString;
|
|
7
|
+
amount: z.ZodString;
|
|
8
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
9
|
+
pricing_reference: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
target_currency: z.ZodString;
|
|
11
|
+
target_amount: z.ZodString;
|
|
12
|
+
update_frequency_seconds: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
target_currency: string;
|
|
15
|
+
target_amount: string;
|
|
16
|
+
update_frequency_seconds?: number | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
target_currency: string;
|
|
19
|
+
target_amount: string;
|
|
20
|
+
update_frequency_seconds?: number | undefined;
|
|
21
|
+
}>>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
amount: string;
|
|
24
|
+
currency: string;
|
|
25
|
+
model: string;
|
|
26
|
+
pricing_reference?: {
|
|
27
|
+
target_currency: string;
|
|
28
|
+
target_amount: string;
|
|
29
|
+
update_frequency_seconds?: number | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
amount: string;
|
|
33
|
+
model: string;
|
|
34
|
+
currency?: string | undefined;
|
|
35
|
+
pricing_reference?: {
|
|
36
|
+
target_currency: string;
|
|
37
|
+
target_amount: string;
|
|
38
|
+
update_frequency_seconds?: number | undefined;
|
|
39
|
+
} | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
declare const PaymentTermsSchema: z.ZodObject<{
|
|
42
|
+
confirmations_required: z.ZodDefault<z.ZodNumber>;
|
|
43
|
+
max_invoice_age_seconds: z.ZodDefault<z.ZodNumber>;
|
|
44
|
+
streaming_supported: z.ZodDefault<z.ZodBoolean>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
confirmations_required: number;
|
|
47
|
+
max_invoice_age_seconds: number;
|
|
48
|
+
streaming_supported: boolean;
|
|
49
|
+
}, {
|
|
50
|
+
confirmations_required?: number | undefined;
|
|
51
|
+
max_invoice_age_seconds?: number | undefined;
|
|
52
|
+
streaming_supported?: boolean | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
declare const ServiceSchema: z.ZodObject<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
description: z.ZodDefault<z.ZodString>;
|
|
57
|
+
pricing: z.ZodObject<{
|
|
58
|
+
model: z.ZodString;
|
|
59
|
+
amount: z.ZodString;
|
|
60
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
61
|
+
pricing_reference: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
target_currency: z.ZodString;
|
|
63
|
+
target_amount: z.ZodString;
|
|
64
|
+
update_frequency_seconds: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
target_currency: string;
|
|
67
|
+
target_amount: string;
|
|
68
|
+
update_frequency_seconds?: number | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
target_currency: string;
|
|
71
|
+
target_amount: string;
|
|
72
|
+
update_frequency_seconds?: number | undefined;
|
|
73
|
+
}>>;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
amount: string;
|
|
76
|
+
currency: string;
|
|
77
|
+
model: string;
|
|
78
|
+
pricing_reference?: {
|
|
79
|
+
target_currency: string;
|
|
80
|
+
target_amount: string;
|
|
81
|
+
update_frequency_seconds?: number | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
amount: string;
|
|
85
|
+
model: string;
|
|
86
|
+
currency?: string | undefined;
|
|
87
|
+
pricing_reference?: {
|
|
88
|
+
target_currency: string;
|
|
89
|
+
target_amount: string;
|
|
90
|
+
update_frequency_seconds?: number | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
}>;
|
|
93
|
+
endpoint: z.ZodString;
|
|
94
|
+
payment: z.ZodObject<{
|
|
95
|
+
confirmations_required: z.ZodDefault<z.ZodNumber>;
|
|
96
|
+
max_invoice_age_seconds: z.ZodDefault<z.ZodNumber>;
|
|
97
|
+
streaming_supported: z.ZodDefault<z.ZodBoolean>;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
confirmations_required: number;
|
|
100
|
+
max_invoice_age_seconds: number;
|
|
101
|
+
streaming_supported: boolean;
|
|
102
|
+
}, {
|
|
103
|
+
confirmations_required?: number | undefined;
|
|
104
|
+
max_invoice_age_seconds?: number | undefined;
|
|
105
|
+
streaming_supported?: boolean | undefined;
|
|
106
|
+
}>;
|
|
107
|
+
params_schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
id: string;
|
|
110
|
+
payment: {
|
|
111
|
+
confirmations_required: number;
|
|
112
|
+
max_invoice_age_seconds: number;
|
|
113
|
+
streaming_supported: boolean;
|
|
114
|
+
};
|
|
115
|
+
description: string;
|
|
116
|
+
pricing: {
|
|
117
|
+
amount: string;
|
|
118
|
+
currency: string;
|
|
119
|
+
model: string;
|
|
120
|
+
pricing_reference?: {
|
|
121
|
+
target_currency: string;
|
|
122
|
+
target_amount: string;
|
|
123
|
+
update_frequency_seconds?: number | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
};
|
|
126
|
+
endpoint: string;
|
|
127
|
+
params_schema?: Record<string, unknown> | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
id: string;
|
|
130
|
+
payment: {
|
|
131
|
+
confirmations_required?: number | undefined;
|
|
132
|
+
max_invoice_age_seconds?: number | undefined;
|
|
133
|
+
streaming_supported?: boolean | undefined;
|
|
134
|
+
};
|
|
135
|
+
pricing: {
|
|
136
|
+
amount: string;
|
|
137
|
+
model: string;
|
|
138
|
+
currency?: string | undefined;
|
|
139
|
+
pricing_reference?: {
|
|
140
|
+
target_currency: string;
|
|
141
|
+
target_amount: string;
|
|
142
|
+
update_frequency_seconds?: number | undefined;
|
|
143
|
+
} | undefined;
|
|
144
|
+
};
|
|
145
|
+
endpoint: string;
|
|
146
|
+
description?: string | undefined;
|
|
147
|
+
params_schema?: Record<string, unknown> | undefined;
|
|
148
|
+
}>;
|
|
149
|
+
declare const DiscoverySchema: z.ZodObject<{
|
|
150
|
+
manifest_url: z.ZodOptional<z.ZodString>;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
manifest_url?: string | undefined;
|
|
153
|
+
}, {
|
|
154
|
+
manifest_url?: string | undefined;
|
|
155
|
+
}>;
|
|
156
|
+
export declare const ManifestSchema: z.ZodObject<{
|
|
157
|
+
drpay: z.ZodString;
|
|
158
|
+
agent: z.ZodString;
|
|
159
|
+
address: z.ZodString;
|
|
160
|
+
services: z.ZodArray<z.ZodObject<{
|
|
161
|
+
id: z.ZodString;
|
|
162
|
+
description: z.ZodDefault<z.ZodString>;
|
|
163
|
+
pricing: z.ZodObject<{
|
|
164
|
+
model: z.ZodString;
|
|
165
|
+
amount: z.ZodString;
|
|
166
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
167
|
+
pricing_reference: z.ZodOptional<z.ZodObject<{
|
|
168
|
+
target_currency: z.ZodString;
|
|
169
|
+
target_amount: z.ZodString;
|
|
170
|
+
update_frequency_seconds: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
target_currency: string;
|
|
173
|
+
target_amount: string;
|
|
174
|
+
update_frequency_seconds?: number | undefined;
|
|
175
|
+
}, {
|
|
176
|
+
target_currency: string;
|
|
177
|
+
target_amount: string;
|
|
178
|
+
update_frequency_seconds?: number | undefined;
|
|
179
|
+
}>>;
|
|
180
|
+
}, "strip", z.ZodTypeAny, {
|
|
181
|
+
amount: string;
|
|
182
|
+
currency: string;
|
|
183
|
+
model: string;
|
|
184
|
+
pricing_reference?: {
|
|
185
|
+
target_currency: string;
|
|
186
|
+
target_amount: string;
|
|
187
|
+
update_frequency_seconds?: number | undefined;
|
|
188
|
+
} | undefined;
|
|
189
|
+
}, {
|
|
190
|
+
amount: string;
|
|
191
|
+
model: string;
|
|
192
|
+
currency?: string | undefined;
|
|
193
|
+
pricing_reference?: {
|
|
194
|
+
target_currency: string;
|
|
195
|
+
target_amount: string;
|
|
196
|
+
update_frequency_seconds?: number | undefined;
|
|
197
|
+
} | undefined;
|
|
198
|
+
}>;
|
|
199
|
+
endpoint: z.ZodString;
|
|
200
|
+
payment: z.ZodObject<{
|
|
201
|
+
confirmations_required: z.ZodDefault<z.ZodNumber>;
|
|
202
|
+
max_invoice_age_seconds: z.ZodDefault<z.ZodNumber>;
|
|
203
|
+
streaming_supported: z.ZodDefault<z.ZodBoolean>;
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
confirmations_required: number;
|
|
206
|
+
max_invoice_age_seconds: number;
|
|
207
|
+
streaming_supported: boolean;
|
|
208
|
+
}, {
|
|
209
|
+
confirmations_required?: number | undefined;
|
|
210
|
+
max_invoice_age_seconds?: number | undefined;
|
|
211
|
+
streaming_supported?: boolean | undefined;
|
|
212
|
+
}>;
|
|
213
|
+
params_schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
214
|
+
}, "strip", z.ZodTypeAny, {
|
|
215
|
+
id: string;
|
|
216
|
+
payment: {
|
|
217
|
+
confirmations_required: number;
|
|
218
|
+
max_invoice_age_seconds: number;
|
|
219
|
+
streaming_supported: boolean;
|
|
220
|
+
};
|
|
221
|
+
description: string;
|
|
222
|
+
pricing: {
|
|
223
|
+
amount: string;
|
|
224
|
+
currency: string;
|
|
225
|
+
model: string;
|
|
226
|
+
pricing_reference?: {
|
|
227
|
+
target_currency: string;
|
|
228
|
+
target_amount: string;
|
|
229
|
+
update_frequency_seconds?: number | undefined;
|
|
230
|
+
} | undefined;
|
|
231
|
+
};
|
|
232
|
+
endpoint: string;
|
|
233
|
+
params_schema?: Record<string, unknown> | undefined;
|
|
234
|
+
}, {
|
|
235
|
+
id: string;
|
|
236
|
+
payment: {
|
|
237
|
+
confirmations_required?: number | undefined;
|
|
238
|
+
max_invoice_age_seconds?: number | undefined;
|
|
239
|
+
streaming_supported?: boolean | undefined;
|
|
240
|
+
};
|
|
241
|
+
pricing: {
|
|
242
|
+
amount: string;
|
|
243
|
+
model: string;
|
|
244
|
+
currency?: string | undefined;
|
|
245
|
+
pricing_reference?: {
|
|
246
|
+
target_currency: string;
|
|
247
|
+
target_amount: string;
|
|
248
|
+
update_frequency_seconds?: number | undefined;
|
|
249
|
+
} | undefined;
|
|
250
|
+
};
|
|
251
|
+
endpoint: string;
|
|
252
|
+
description?: string | undefined;
|
|
253
|
+
params_schema?: Record<string, unknown> | undefined;
|
|
254
|
+
}>, "many">;
|
|
255
|
+
discovery: z.ZodOptional<z.ZodObject<{
|
|
256
|
+
manifest_url: z.ZodOptional<z.ZodString>;
|
|
257
|
+
}, "strip", z.ZodTypeAny, {
|
|
258
|
+
manifest_url?: string | undefined;
|
|
259
|
+
}, {
|
|
260
|
+
manifest_url?: string | undefined;
|
|
261
|
+
}>>;
|
|
262
|
+
}, "strip", z.ZodTypeAny, {
|
|
263
|
+
address: string;
|
|
264
|
+
drpay: string;
|
|
265
|
+
agent: string;
|
|
266
|
+
services: {
|
|
267
|
+
id: string;
|
|
268
|
+
payment: {
|
|
269
|
+
confirmations_required: number;
|
|
270
|
+
max_invoice_age_seconds: number;
|
|
271
|
+
streaming_supported: boolean;
|
|
272
|
+
};
|
|
273
|
+
description: string;
|
|
274
|
+
pricing: {
|
|
275
|
+
amount: string;
|
|
276
|
+
currency: string;
|
|
277
|
+
model: string;
|
|
278
|
+
pricing_reference?: {
|
|
279
|
+
target_currency: string;
|
|
280
|
+
target_amount: string;
|
|
281
|
+
update_frequency_seconds?: number | undefined;
|
|
282
|
+
} | undefined;
|
|
283
|
+
};
|
|
284
|
+
endpoint: string;
|
|
285
|
+
params_schema?: Record<string, unknown> | undefined;
|
|
286
|
+
}[];
|
|
287
|
+
discovery?: {
|
|
288
|
+
manifest_url?: string | undefined;
|
|
289
|
+
} | undefined;
|
|
290
|
+
}, {
|
|
291
|
+
address: string;
|
|
292
|
+
drpay: string;
|
|
293
|
+
agent: string;
|
|
294
|
+
services: {
|
|
295
|
+
id: string;
|
|
296
|
+
payment: {
|
|
297
|
+
confirmations_required?: number | undefined;
|
|
298
|
+
max_invoice_age_seconds?: number | undefined;
|
|
299
|
+
streaming_supported?: boolean | undefined;
|
|
300
|
+
};
|
|
301
|
+
pricing: {
|
|
302
|
+
amount: string;
|
|
303
|
+
model: string;
|
|
304
|
+
currency?: string | undefined;
|
|
305
|
+
pricing_reference?: {
|
|
306
|
+
target_currency: string;
|
|
307
|
+
target_amount: string;
|
|
308
|
+
update_frequency_seconds?: number | undefined;
|
|
309
|
+
} | undefined;
|
|
310
|
+
};
|
|
311
|
+
endpoint: string;
|
|
312
|
+
description?: string | undefined;
|
|
313
|
+
params_schema?: Record<string, unknown> | undefined;
|
|
314
|
+
}[];
|
|
315
|
+
discovery?: {
|
|
316
|
+
manifest_url?: string | undefined;
|
|
317
|
+
} | undefined;
|
|
318
|
+
}>;
|
|
319
|
+
export type Pricing = z.infer<typeof PricingSchema>;
|
|
320
|
+
export type PaymentTerms = z.infer<typeof PaymentTermsSchema>;
|
|
321
|
+
export type Service = z.infer<typeof ServiceSchema>;
|
|
322
|
+
export type Discovery = z.infer<typeof DiscoverySchema>;
|
|
323
|
+
export type Manifest = z.infer<typeof ManifestSchema>;
|
|
324
|
+
/** Find a service by ID in a manifest */
|
|
325
|
+
export declare function findService(manifest: Manifest, serviceId: string): Service | undefined;
|
|
326
|
+
export {};
|
|
327
|
+
//# sourceMappingURL=manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/models/manifest.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKjB,CAAC;AAEH,QAAA,MAAM,kBAAkB;;;;;;;;;;;;EAItB,CAAC;AAEH,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOjB,CAAC;AAEH,QAAA,MAAM,eAAe;;;;;;EAEnB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMzB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,yCAAyC;AACzC,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAEtF"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ManifestSchema = void 0;
|
|
4
|
+
exports.findService = findService;
|
|
5
|
+
/**
|
|
6
|
+
* Capabilities manifest model (served at /.well-known/digirails.json).
|
|
7
|
+
*/
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
const PricingReferenceSchema = zod_1.z.object({
|
|
10
|
+
target_currency: zod_1.z.string(),
|
|
11
|
+
target_amount: zod_1.z.string(),
|
|
12
|
+
update_frequency_seconds: zod_1.z.number().optional(),
|
|
13
|
+
});
|
|
14
|
+
const PricingSchema = zod_1.z.object({
|
|
15
|
+
model: zod_1.z.string(),
|
|
16
|
+
amount: zod_1.z.string(),
|
|
17
|
+
currency: zod_1.z.string().default('DGB'),
|
|
18
|
+
pricing_reference: PricingReferenceSchema.optional(),
|
|
19
|
+
});
|
|
20
|
+
const PaymentTermsSchema = zod_1.z.object({
|
|
21
|
+
confirmations_required: zod_1.z.number().default(0),
|
|
22
|
+
max_invoice_age_seconds: zod_1.z.number().default(300),
|
|
23
|
+
streaming_supported: zod_1.z.boolean().default(false),
|
|
24
|
+
});
|
|
25
|
+
const ServiceSchema = zod_1.z.object({
|
|
26
|
+
id: zod_1.z.string(),
|
|
27
|
+
description: zod_1.z.string().default(''),
|
|
28
|
+
pricing: PricingSchema,
|
|
29
|
+
endpoint: zod_1.z.string(),
|
|
30
|
+
payment: PaymentTermsSchema,
|
|
31
|
+
params_schema: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
32
|
+
});
|
|
33
|
+
const DiscoverySchema = zod_1.z.object({
|
|
34
|
+
manifest_url: zod_1.z.string().optional(),
|
|
35
|
+
});
|
|
36
|
+
exports.ManifestSchema = zod_1.z.object({
|
|
37
|
+
drpay: zod_1.z.string(),
|
|
38
|
+
agent: zod_1.z.string(),
|
|
39
|
+
address: zod_1.z.string(),
|
|
40
|
+
services: zod_1.z.array(ServiceSchema),
|
|
41
|
+
discovery: DiscoverySchema.optional(),
|
|
42
|
+
});
|
|
43
|
+
/** Find a service by ID in a manifest */
|
|
44
|
+
function findService(manifest, serviceId) {
|
|
45
|
+
return manifest.services.find((s) => s.id === serviceId);
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/models/manifest.ts"],"names":[],"mappings":";;;AAoDA,kCAEC;AAtDD;;GAEG;AACH,6BAAwB;AAExB,MAAM,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,eAAe,EAAE,OAAC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