@taprsvp/types
Version:
TypeScript types and interfaces for the Transaction Authorization Protocol (TAP)
509 lines • 25.2 kB
JavaScript
;
/**
* @fileoverview Fast-Check Arbitraries for TAP Message Types
*
* This module provides fast-check arbitraries that can generate valid TAP data structures
* for property-based testing.
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.arbitraries = exports.tapMessage = exports.revertMessage = exports.cancelMessage = exports.rejectMessage = exports.settleMessage = exports.connectMessage = exports.authorizeMessage = exports.captureMessage = exports.lockMessage = exports.quoteMessage = exports.rfqMessage = exports.paymentMessage = exports.transferMessage = exports.didcommReply = exports.didcommMessage = exports.revert = exports.cancel = exports.reject = exports.settle = exports.connect = exports.authorize = exports.capture = exports.lock = exports.quote = exports.rfq = exports.payment = exports.transfer = exports.agent = exports.party = exports.organization = exports.person = exports.participant = exports.supportedAssetPricing = exports.isoCurrency = exports.amount = exports.caip19 = exports.caip10 = exports.uuid = exports.iri = exports.did = void 0;
const fc = __importStar(require("fast-check"));
// ============================================================================
// FUNDAMENTAL TYPE ARBITRARIES
// ============================================================================
const did = () => fc.oneof(
// did:web with valid domain names
fc.domain().map(domain => `did:web:${domain}`),
// did:ethr with Ethereum addresses (simplified format)
fc.string({ minLength: 40, maxLength: 40, unit: fc.constantFrom('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f') })
.map(ethAddress => `did:ethr:0x${ethAddress}`),
// did:key with standard multibase key
fc.constantFrom("did:key:z6MkiTBz1ymuepAQ4HEHYSF1H8quG5GLVVQR3djdX3mDooWp", "did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK", "did:key:z6Mkfriq1MqLBoPWecGoDHRzEyqZY6ksafzCJ8nfaqJNgHgN"),
// Generic did:example for testing
fc.constantFrom("did:example:123456789abcdefg", "did:example:alice", "did:example:bob"),
// did:pkh with simplified identifier (validator doesn't support full CAIP-10)
fc.string({ minLength: 20, maxLength: 50, unit: fc.constantFrom(...'abcdefghijklmnopqrstuvwxyz0123456789._%-'.split('')) })
.map(identifier => `did:pkh:${identifier}`));
exports.did = did;
const iri = () => fc.oneof(fc.webUrl(), fc.record({
scheme: fc.constantFrom("mailto", "urn", "tel"),
path: fc.string({ minLength: 5, maxLength: 50 })
}).map(({ scheme, path }) => `${scheme}:${path}`));
exports.iri = iri;
const uuid = () => fc.uuid();
exports.uuid = uuid;
const caip10 = () => fc.oneof(
// Ethereum addresses
fc.record({
namespace: fc.constant("eip155"),
reference: fc.constantFrom("1", "137", "56", "10", "42161"),
address: fc.string({ minLength: 40, maxLength: 40, unit: fc.constantFrom('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f') })
}).map(({ namespace, reference, address }) => `${namespace}:${reference}:0x${address}`),
// Bitcoin addresses
fc.record({
namespace: fc.constant("bip122"),
reference: fc.constantFrom("000000000019d6689c085ae165831e93", "000000000000000000651ef99cb9fcbe"),
address: fc.constantFrom("1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa", "bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4")
}).map(({ namespace, reference, address }) => `${namespace}:${reference}:${address}`),
// Cosmos addresses
fc.record({
namespace: fc.constant("cosmos"),
reference: fc.constantFrom("cosmoshub-3", "cosmoshub-4"),
address: fc.constantFrom("cosmos1t2uflqwqe0fsj0shcfkrvpukewcw40yjj6hdc0", "cosmos1fqzqejwkk898fcslw4z4eeqjzesynvwsjk3r8")
}).map(({ namespace, reference, address }) => `${namespace}:${reference}:${address}`));
exports.caip10 = caip10;
const caip19 = () => fc.record({
namespace: fc.constantFrom("eip155", "bip122"),
reference: fc.string({ minLength: 1, maxLength: 32, unit: fc.constantFrom('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', '-') }),
assetName: fc.constantFrom("erc20", "slip44"),
assetId: fc.string({ minLength: 32, maxLength: 42, unit: fc.constantFrom('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f') })
}).map(({ namespace, reference, assetName, assetId }) => `${namespace}:${reference}/${assetName}:${assetId}`);
exports.caip19 = caip19;
const amount = () => fc.float({ min: Math.fround(0.01), max: Math.fround(1000000) })
.map(n => n.toFixed(2))
.filter(s => /^\d+\.\d{2}$/.test(s));
exports.amount = amount;
const isoCurrency = () => fc.constantFrom("USD", "EUR", "GBP", "JPY", "CHF", "CAD", "AUD");
exports.isoCurrency = isoCurrency;
const supportedAssetPricing = () => fc.record({
asset: fc.oneof((0, exports.caip19)(), (0, exports.isoCurrency)()),
amount: (0, exports.amount)(),
expires: fc.option(fc.constantFrom(new Date(Date.now() + 3600000).toISOString(), // 1 hour from now
new Date(Date.now() + 86400000).toISOString(), // 1 day from now
new Date(Date.now() + 1800000).toISOString() // 30 minutes from now
), { nil: undefined })
});
exports.supportedAssetPricing = supportedAssetPricing;
// ============================================================================
// PARTICIPANT ARBITRARIES
// ============================================================================
const participant = () => fc.record({
"@id": (0, exports.did)(),
name: fc.constantFrom("Alice Smith", "Bob Jones", "Carol Davis", "Dave Miller", "Eva Brown", "Frank Wilson", "Grace Taylor", "Henry Johnson"),
email: fc.option(fc.constantFrom("alice@example.com", "bob@test.org", "carol@demo.net"), { freq: 7 }),
telephone: fc.option(fc.constantFrom("+1-555-0123", "+44-20-7946-0958", "+49-30-12345678"), { freq: 5 })
}).map(obj => {
const result = { ...obj };
if (result.email === null)
delete result.email;
if (result.telephone === null)
delete result.telephone;
return result;
});
exports.participant = participant;
const person = () => fc.record({
"@id": (0, exports.did)(),
"@type": fc.constant("https://schema.org/Person"),
name: fc.constantFrom("Alice Smith", "Bob Jones", "Carol Davis", "Dave Miller", "Eva Brown"),
givenName: fc.option(fc.constantFrom("Alice", "Bob", "Carol", "Dave", "Eva"), { freq: 6 }),
familyName: fc.option(fc.constantFrom("Smith", "Jones", "Davis", "Miller", "Brown"), { freq: 6 }),
email: fc.option(fc.constantFrom("alice@example.com", "bob@test.org", "carol@demo.net"), { freq: 7 })
}).map(obj => {
const result = { ...obj };
if (result.givenName === null)
delete result.givenName;
if (result.familyName === null)
delete result.familyName;
if (result.email === null)
delete result.email;
return result;
});
exports.person = person;
const organization = () => fc.record({
"@id": (0, exports.did)(),
"@type": fc.constant("https://schema.org/Organization"),
name: fc.constantFrom("Acme Corp", "TechStart Inc", "Global Bank", "Crypto Exchange", "Payment Services"),
legalName: fc.option(fc.constantFrom("Acme Corporation Ltd", "TechStart Incorporated", "Global Banking Solutions"), { freq: 5 }),
url: fc.option(fc.constantFrom("https://acme.com", "https://techstart.io", "https://globalbank.net"), { freq: 6 })
}).map(obj => {
const result = { ...obj };
if (result.legalName === null)
delete result.legalName;
if (result.url === null)
delete result.url;
return result;
});
exports.organization = organization;
const party = () => fc.oneof((0, exports.person)(), (0, exports.organization)());
exports.party = party;
const agent = () => fc.record({
"@id": (0, exports.did)(),
for: (0, exports.did)(),
name: fc.constantFrom("Wallet Agent", "Exchange Agent", "Bank Agent", "Payment Agent", "Trading Bot"),
role: fc.option(fc.constantFrom("PaymentProcessor", "WalletProvider", "Exchange", "Bank"), { freq: 8 })
}).map(obj => {
const result = { ...obj };
if (result.role === null)
delete result.role;
return result;
});
exports.agent = agent;
// ============================================================================
// MESSAGE BODY ARBITRARIES
// ============================================================================
const transfer = () => fc.record({
"@context": fc.constant("https://tap.rsvp/schema/1.0"),
"@type": fc.constant("Transfer"),
asset: (0, exports.caip19)(),
amount: (0, exports.amount)(),
originator: (0, exports.party)(),
beneficiary: (0, exports.party)(),
agents: fc.array((0, exports.agent)(), { minLength: 1, maxLength: 3 }),
purposeCode: fc.option(fc.constantFrom("TRAD", "SALA", "RENT", "INTC", "SUPP"), { nil: undefined })
});
exports.transfer = transfer;
const payment = () => fc.record({
"@context": fc.constant("https://tap.rsvp/schema/1.0"),
"@type": fc.constant("Payment"),
amount: (0, exports.amount)(),
currency: (0, exports.isoCurrency)(),
supportedAssets: fc.option(fc.array(fc.oneof(fc.oneof((0, exports.caip19)(), (0, exports.isoCurrency)()), // Simple asset strings
(0, exports.supportedAssetPricing)() // Pricing objects
), { minLength: 1, maxLength: 5 }), { nil: undefined }),
fallbackSettlementAddresses: fc.option(fc.array(fc.oneof((0, exports.caip10)(), fc.constantFrom("payto://iban/DE75512108001245126199", "payto://iban/GB29NWBK60161331926819")), { minLength: 1, maxLength: 3 }), { nil: undefined }),
merchant: (0, exports.party)(),
customer: fc.option((0, exports.party)(), { nil: undefined }),
agents: fc.array((0, exports.agent)(), { minLength: 1, maxLength: 3 }),
expiry: fc.option(fc.constantFrom(new Date(Date.now() + 3600000).toISOString(), // 1 hour from now
new Date(Date.now() + 86400000).toISOString(), // 1 day from now
new Date(Date.now() + 1800000).toISOString() // 30 minutes from now
), { nil: undefined }),
purposeCode: fc.option(fc.constantFrom("TRAD", "SALA", "RENT", "INTC", "SUPP"), { nil: undefined })
});
exports.payment = payment;
const rfq = () => fc.oneof(fc.record({
"@context": fc.constant("https://tap.rsvp/schema/1.0"),
"@type": fc.constant("RFQ"),
fromAssets: fc.array(fc.oneof((0, exports.caip19)(), (0, exports.isoCurrency)()), { minLength: 1, maxLength: 5 }),
toAssets: fc.array(fc.oneof((0, exports.caip19)(), (0, exports.isoCurrency)()), { minLength: 1, maxLength: 5 }),
fromAmount: (0, exports.amount)(),
requester: (0, exports.party)(),
provider: fc.option((0, exports.party)(), { nil: undefined }),
agents: fc.array((0, exports.agent)(), { minLength: 1, maxLength: 3 })
}), fc.record({
"@context": fc.constant("https://tap.rsvp/schema/1.0"),
"@type": fc.constant("RFQ"),
fromAssets: fc.array(fc.oneof((0, exports.caip19)(), (0, exports.isoCurrency)()), { minLength: 1, maxLength: 5 }),
toAssets: fc.array(fc.oneof((0, exports.caip19)(), (0, exports.isoCurrency)()), { minLength: 1, maxLength: 5 }),
toAmount: (0, exports.amount)(),
requester: (0, exports.party)(),
provider: fc.option((0, exports.party)(), { nil: undefined }),
agents: fc.array((0, exports.agent)(), { minLength: 1, maxLength: 3 })
}));
exports.rfq = rfq;
const quote = () => fc.record({
"@context": fc.constant("https://tap.rsvp/schema/1.0"),
"@type": fc.constant("Quote"),
fromAsset: fc.oneof((0, exports.caip19)(), (0, exports.isoCurrency)()),
toAsset: fc.oneof((0, exports.caip19)(), (0, exports.isoCurrency)()),
fromAmount: (0, exports.amount)(),
toAmount: (0, exports.amount)(),
provider: (0, exports.party)(),
agents: fc.array((0, exports.agent)(), { minLength: 1, maxLength: 3 }),
expiresAt: fc.constantFrom(new Date(Date.now() + 3600000).toISOString(), // 1 hour from now
new Date(Date.now() + 86400000).toISOString(), // 1 day from now
new Date(Date.now() + 604800000).toISOString() // 1 week from now
)
});
exports.quote = quote;
const lock = () => fc.record({
"@context": fc.constant("https://tap.rsvp/schema/1.0"),
"@type": fc.constant("Lock"),
asset: (0, exports.caip19)(),
amount: (0, exports.amount)(),
originator: (0, exports.party)(),
beneficiary: (0, exports.party)(),
expiry: fc.constantFrom(new Date(Date.now() + 3600000).toISOString(), // 1 hour from now
new Date(Date.now() + 86400000).toISOString(), // 1 day from now
new Date(Date.now() + 604800000).toISOString() // 1 week from now
),
agents: fc.array((0, exports.agent)(), { minLength: 1, maxLength: 3 }),
agreement: fc.option(fc.webUrl(), { nil: undefined })
});
exports.lock = lock;
const capture = () => fc.record({
"@context": fc.constant("https://tap.rsvp/schema/1.0"),
"@type": fc.constant("Capture"),
amount: fc.option((0, exports.amount)(), { nil: undefined }),
settlementAddress: fc.option((0, exports.caip10)(), { nil: undefined })
});
exports.capture = capture;
const authorize = () => fc.record({
"@context": fc.constant("https://tap.rsvp/schema/1.0"),
"@type": fc.constant("Authorize"),
decision: fc.constantFrom("approve", "deny"),
reason: fc.option(fc.string({ minLength: 10, maxLength: 100 }), { nil: undefined })
});
exports.authorize = authorize;
const connect = () => fc.record({
"@context": fc.constant("https://tap.rsvp/schema/1.0"),
"@type": fc.constant("Connect"),
requester: (0, exports.party)(),
principal: (0, exports.party)(),
agents: fc.array((0, exports.agent)(), { minLength: 1, maxLength: 3 }),
constraints: fc.record({
purposes: fc.option(fc.array(fc.constantFrom("TRAD", "SALA", "RENT", "INTC", "SUPP"), { minLength: 1, maxLength: 5 }), { nil: undefined })
})
});
exports.connect = connect;
const settle = () => fc.record({
"@context": fc.constant("https://tap.rsvp/schema/1.0"),
"@type": fc.constant("Settle"),
txHash: fc.string({ minLength: 64, maxLength: 64, unit: fc.constantFrom('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f') }),
settlementAddress: (0, exports.caip10)()
});
exports.settle = settle;
const reject = () => fc.record({
"@context": fc.constant("https://tap.rsvp/schema/1.0"),
"@type": fc.constant("Reject"),
reason: fc.string({ minLength: 10, maxLength: 100 })
});
exports.reject = reject;
const cancel = () => fc.record({
"@context": fc.constant("https://tap.rsvp/schema/1.0"),
"@type": fc.constant("Cancel"),
by: (0, exports.did)(),
reason: fc.option(fc.string({ minLength: 10, maxLength: 100 }), { nil: undefined })
});
exports.cancel = cancel;
const revert = () => fc.record({
"@context": fc.constant("https://tap.rsvp/schema/1.0"),
"@type": fc.constant("Revert"),
settlementAddress: (0, exports.caip10)(),
reason: fc.string({ minLength: 10, maxLength: 100 })
});
exports.revert = revert;
// ============================================================================
// DIDCOMM MESSAGE ARBITRARIES
// ============================================================================
const didcommMessage = (bodyArb) => fc.record({
id: (0, exports.uuid)(),
type: fc.string({ minLength: 10, maxLength: 100 }),
from: (0, exports.did)(),
to: fc.array((0, exports.did)(), { minLength: 1, maxLength: 3 }),
created_time: fc.integer({ min: Date.now() - 86400000, max: Date.now() }),
body: bodyArb,
thid: fc.option((0, exports.uuid)(), { nil: undefined })
});
exports.didcommMessage = didcommMessage;
const didcommReply = (bodyArb) => fc.record({
id: (0, exports.uuid)(),
type: fc.string({ minLength: 10, maxLength: 100 }),
from: (0, exports.did)(),
to: fc.array((0, exports.did)(), { minLength: 1, maxLength: 3 }),
created_time: fc.integer({ min: Date.now() - 86400000, max: Date.now() }),
thid: (0, exports.uuid)(),
body: bodyArb
});
exports.didcommReply = didcommReply;
const transferMessage = () => fc.record({
id: (0, exports.uuid)(),
type: fc.constant("https://tap.rsvp/schema/1.0#Transfer"),
from: (0, exports.did)(),
to: fc.array((0, exports.did)(), { minLength: 1, maxLength: 1 }),
created_time: fc.integer({ min: Date.now() - 86400000, max: Date.now() }),
body: (0, exports.transfer)(),
thid: fc.option((0, exports.uuid)(), { nil: undefined })
});
exports.transferMessage = transferMessage;
const paymentMessage = () => fc.record({
id: (0, exports.uuid)(),
type: fc.constant("https://tap.rsvp/schema/1.0#Payment"),
from: (0, exports.did)(),
to: fc.array((0, exports.did)(), { minLength: 1, maxLength: 1 }),
created_time: fc.integer({ min: Date.now() - 86400000, max: Date.now() }),
body: (0, exports.payment)(),
thid: fc.option((0, exports.uuid)(), { nil: undefined })
});
exports.paymentMessage = paymentMessage;
const rfqMessage = () => fc.record({
id: (0, exports.uuid)(),
type: fc.constant("https://tap.rsvp/schema/1.0#RFQ"),
from: (0, exports.did)(),
to: fc.array((0, exports.did)(), { minLength: 1, maxLength: 1 }),
created_time: fc.integer({ min: Date.now() - 86400000, max: Date.now() }),
body: (0, exports.rfq)(),
thid: fc.option((0, exports.uuid)(), { nil: undefined })
});
exports.rfqMessage = rfqMessage;
const quoteMessage = () => fc.record({
id: (0, exports.uuid)(),
type: fc.constant("https://tap.rsvp/schema/1.0#Quote"),
from: (0, exports.did)(),
to: fc.array((0, exports.did)(), { minLength: 1, maxLength: 1 }),
created_time: fc.integer({ min: Date.now() - 86400000, max: Date.now() }),
thid: (0, exports.uuid)(),
body: (0, exports.quote)()
});
exports.quoteMessage = quoteMessage;
const lockMessage = () => fc.record({
id: (0, exports.uuid)(),
type: fc.constant("https://tap.rsvp/schema/1.0#Lock"),
from: (0, exports.did)(),
to: fc.array((0, exports.did)(), { minLength: 1, maxLength: 1 }),
created_time: fc.integer({ min: Date.now() - 86400000, max: Date.now() }),
body: (0, exports.lock)(),
thid: fc.option((0, exports.uuid)(), { nil: undefined })
});
exports.lockMessage = lockMessage;
const captureMessage = () => fc.record({
id: (0, exports.uuid)(),
type: fc.constant("https://tap.rsvp/schema/1.0#Capture"),
from: (0, exports.did)(),
to: fc.array((0, exports.did)(), { minLength: 1, maxLength: 1 }),
created_time: fc.integer({ min: Date.now() - 86400000, max: Date.now() }),
thid: (0, exports.uuid)(),
body: (0, exports.capture)()
});
exports.captureMessage = captureMessage;
const authorizeMessage = () => fc.record({
id: (0, exports.uuid)(),
type: fc.constant("https://tap.rsvp/schema/1.0#Authorize"),
from: (0, exports.did)(),
to: fc.array((0, exports.did)(), { minLength: 1, maxLength: 1 }),
created_time: fc.integer({ min: Date.now() - 86400000, max: Date.now() }),
thid: (0, exports.uuid)(),
body: (0, exports.authorize)()
});
exports.authorizeMessage = authorizeMessage;
const connectMessage = () => fc.record({
id: (0, exports.uuid)(),
type: fc.constant("https://tap.rsvp/schema/1.0#Connect"),
from: (0, exports.did)(),
to: fc.array((0, exports.did)(), { minLength: 1, maxLength: 1 }),
created_time: fc.integer({ min: Date.now() - 86400000, max: Date.now() }),
body: (0, exports.connect)(),
thid: fc.option((0, exports.uuid)(), { nil: undefined })
});
exports.connectMessage = connectMessage;
const settleMessage = () => fc.record({
id: (0, exports.uuid)(),
type: fc.constant("https://tap.rsvp/schema/1.0#Settle"),
from: (0, exports.did)(),
to: fc.array((0, exports.did)(), { minLength: 1, maxLength: 1 }),
created_time: fc.integer({ min: Date.now() - 86400000, max: Date.now() }),
thid: (0, exports.uuid)(),
body: (0, exports.settle)()
});
exports.settleMessage = settleMessage;
const rejectMessage = () => fc.record({
id: (0, exports.uuid)(),
type: fc.constant("https://tap.rsvp/schema/1.0#Reject"),
from: (0, exports.did)(),
to: fc.array((0, exports.did)(), { minLength: 1, maxLength: 1 }),
created_time: fc.integer({ min: Date.now() - 86400000, max: Date.now() }),
thid: (0, exports.uuid)(),
body: (0, exports.reject)()
});
exports.rejectMessage = rejectMessage;
const cancelMessage = () => fc.record({
id: (0, exports.uuid)(),
type: fc.constant("https://tap.rsvp/schema/1.0#Cancel"),
from: (0, exports.did)(),
to: fc.array((0, exports.did)(), { minLength: 1, maxLength: 1 }),
created_time: fc.integer({ min: Date.now() - 86400000, max: Date.now() }),
thid: (0, exports.uuid)(),
body: (0, exports.cancel)()
});
exports.cancelMessage = cancelMessage;
const revertMessage = () => fc.record({
id: (0, exports.uuid)(),
type: fc.constant("https://tap.rsvp/schema/1.0#Revert"),
from: (0, exports.did)(),
to: fc.array((0, exports.did)(), { minLength: 1, maxLength: 1 }),
created_time: fc.integer({ min: Date.now() - 86400000, max: Date.now() }),
thid: (0, exports.uuid)(),
body: (0, exports.revert)()
});
exports.revertMessage = revertMessage;
const tapMessage = () => fc.oneof((0, exports.transferMessage)(), (0, exports.paymentMessage)(), (0, exports.rfqMessage)(), (0, exports.quoteMessage)(), (0, exports.lockMessage)(), (0, exports.captureMessage)(), (0, exports.authorizeMessage)(), (0, exports.connectMessage)(), (0, exports.settleMessage)(), (0, exports.rejectMessage)(), (0, exports.cancelMessage)(), (0, exports.revertMessage)());
exports.tapMessage = tapMessage;
// ============================================================================
// GROUPED EXPORT
// ============================================================================
exports.arbitraries = {
// Fundamental types
fundamental: {
did: () => (0, exports.did)(),
iri: () => (0, exports.iri)(),
uuid: () => (0, exports.uuid)(),
caip10: () => (0, exports.caip10)(),
caip19: () => (0, exports.caip19)(),
amount: () => (0, exports.amount)(),
isoCurrency: () => (0, exports.isoCurrency)(),
supportedAssetPricing: () => (0, exports.supportedAssetPricing)(),
},
// Participants
participants: {
participant: () => (0, exports.participant)(),
person: () => (0, exports.person)(),
organization: () => (0, exports.organization)(),
party: () => (0, exports.party)(),
agent: () => (0, exports.agent)(),
},
// Message bodies
messageBodies: {
transfer: () => (0, exports.transfer)(),
payment: () => (0, exports.payment)(),
rfq: () => (0, exports.rfq)(),
quote: () => (0, exports.quote)(),
lock: () => (0, exports.lock)(),
capture: () => (0, exports.capture)(),
authorize: () => (0, exports.authorize)(),
connect: () => (0, exports.connect)(),
settle: () => (0, exports.settle)(),
reject: () => (0, exports.reject)(),
cancel: () => (0, exports.cancel)(),
revert: () => (0, exports.revert)(),
},
// DIDComm messages
messages: {
transferMessage: () => (0, exports.transferMessage)(),
paymentMessage: () => (0, exports.paymentMessage)(),
rfqMessage: () => (0, exports.rfqMessage)(),
quoteMessage: () => (0, exports.quoteMessage)(),
lockMessage: () => (0, exports.lockMessage)(),
captureMessage: () => (0, exports.captureMessage)(),
authorizeMessage: () => (0, exports.authorizeMessage)(),
connectMessage: () => (0, exports.connectMessage)(),
settleMessage: () => (0, exports.settleMessage)(),
rejectMessage: () => (0, exports.rejectMessage)(),
cancelMessage: () => (0, exports.cancelMessage)(),
revertMessage: () => (0, exports.revertMessage)(),
tapMessage: () => (0, exports.tapMessage)(),
},
};
//# sourceMappingURL=arbitraries.js.map