@cardanowall/sdk-ts 0.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.
Files changed (67) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +207 -0
  3. package/dist/client/index.cjs +2695 -0
  4. package/dist/client/index.cjs.map +1 -0
  5. package/dist/client/index.d.cts +397 -0
  6. package/dist/client/index.d.ts +397 -0
  7. package/dist/client/index.js +2641 -0
  8. package/dist/client/index.js.map +1 -0
  9. package/dist/conformance/cli.cjs +4901 -0
  10. package/dist/conformance/cli.cjs.map +1 -0
  11. package/dist/conformance/cli.d.cts +18 -0
  12. package/dist/conformance/cli.d.ts +18 -0
  13. package/dist/conformance/cli.js +4878 -0
  14. package/dist/conformance/cli.js.map +1 -0
  15. package/dist/fetch/index.cjs +335 -0
  16. package/dist/fetch/index.cjs.map +1 -0
  17. package/dist/fetch/index.d.cts +13 -0
  18. package/dist/fetch/index.d.ts +13 -0
  19. package/dist/fetch/index.js +323 -0
  20. package/dist/fetch/index.js.map +1 -0
  21. package/dist/fetch-outbound-BT5-NiYN.d.cts +76 -0
  22. package/dist/fetch-outbound-BT5-NiYN.d.ts +76 -0
  23. package/dist/hash/index.cjs +25 -0
  24. package/dist/hash/index.cjs.map +1 -0
  25. package/dist/hash/index.d.cts +1 -0
  26. package/dist/hash/index.d.ts +1 -0
  27. package/dist/hash/index.js +21 -0
  28. package/dist/hash/index.js.map +1 -0
  29. package/dist/identity/index.cjs +1388 -0
  30. package/dist/identity/index.cjs.map +1 -0
  31. package/dist/identity/index.d.cts +27 -0
  32. package/dist/identity/index.d.ts +27 -0
  33. package/dist/identity/index.js +1362 -0
  34. package/dist/identity/index.js.map +1 -0
  35. package/dist/ids/index.cjs +146 -0
  36. package/dist/ids/index.cjs.map +1 -0
  37. package/dist/ids/index.d.cts +55 -0
  38. package/dist/ids/index.d.ts +55 -0
  39. package/dist/ids/index.js +135 -0
  40. package/dist/ids/index.js.map +1 -0
  41. package/dist/index-BhnlWJAY.d.cts +10 -0
  42. package/dist/index-BhnlWJAY.d.ts +10 -0
  43. package/dist/index-Cg1QqVmA.d.cts +19 -0
  44. package/dist/index-Cg1QqVmA.d.ts +19 -0
  45. package/dist/index.cjs +7127 -0
  46. package/dist/index.cjs.map +1 -0
  47. package/dist/index.d.cts +21 -0
  48. package/dist/index.d.ts +21 -0
  49. package/dist/index.js +7004 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/merkle/index.cjs +396 -0
  52. package/dist/merkle/index.cjs.map +1 -0
  53. package/dist/merkle/index.d.cts +2 -0
  54. package/dist/merkle/index.d.ts +2 -0
  55. package/dist/merkle/index.js +387 -0
  56. package/dist/merkle/index.js.map +1 -0
  57. package/dist/types-B8Q3gW54.d.ts +123 -0
  58. package/dist/types-BQMtbRCb.d.cts +321 -0
  59. package/dist/types-BQMtbRCb.d.ts +321 -0
  60. package/dist/types-CLXdbjqr.d.cts +123 -0
  61. package/dist/verifier/index.cjs +4901 -0
  62. package/dist/verifier/index.cjs.map +1 -0
  63. package/dist/verifier/index.d.cts +176 -0
  64. package/dist/verifier/index.d.ts +176 -0
  65. package/dist/verifier/index.js +4848 -0
  66. package/dist/verifier/index.js.map +1 -0
  67. package/package.json +108 -0
@@ -0,0 +1,21 @@
1
+ export { B as BodyTooLargeError, D as DEFAULT_OUTBOUND_MAX_BYTES, a as DENY_HOSTS_DEFAULT, b as DenyHostError, F as FetchOutbound, c as FetchOutboundOptions, d as FetchOutboundResult, H as HttpCallRecord, e as HttpMethod, f as HttpPurpose, O as OutboundExhaustedError, R as RetryConfig, U as UnsupportedMethodError, g as UnsupportedProtocolError, W as WrapFetchOutboundConfig, h as defaultFetchOutbound, i as fetchOutbound, m as matchesDenyList, w as wrapFetchOutbound } from './fetch-outbound-BT5-NiYN.cjs';
2
+ export { DenyHostsFetchOptions, HttpCall, denyHostsFetch } from './fetch/index.cjs';
3
+ export { D as DecryptionVerdict, E as ExitCode, I as ItemHashCheck, M as MerkleVerdict, N as Network, P as PROFILE_RANK, a as Profile, S as SignatureFailureReason, b as SignatureVerdict, c as SignerType, V as Verdict, d as VerifyItemDecryption, e as VerifyMerkleCheck, f as VerifyRecordSignature, g as VerifyReport, h as VerifyTxInput, i as VerifyTxOutput, j as VerifyTxSummary, k as VerifyTxWitness, l as VerifyUriCheck } from './types-CLXdbjqr.cjs';
4
+ export { BLOCKFROST_MAINNET_HOST, CONFIRMATION_DEPTH_THRESHOLD_DEFAULT, DEFAULT_PROFILE, KOIOS_MAINNET_URL, NotACip309RecordError, ResolvedTx, TxComponents, decodeTxSummary, decodeTxWitnesses, exitCodeForVerdict, extractLabel309Metadata, fetchItemCiphertext, planProfileSkips, profileImplements, resolveCardanoTx, sliceLabel309Value, sliceTxComponents, tryDecryptions, verifyMerkleCommitments, verifyRecordSignatures, verifyReportToDict, verifyResolved, verifyTx } from './verifier/index.cjs';
5
+ export { AccountNamespace, AssembleCoseSign1Args, AssembleCoseSign1Result, BatchEmptyError, BatchTooLargeError, Cip309Client, Cip309HttpError, Cip309HttpErrorInit, ForbiddenError, IdempotencyConflictError, InsufficientFundsError, InsufficientScopeError, InternalServerError, InvalidBodyError, InvalidClientConfigError, MalformedCborError, NotFoundError, OffHostSignError, OffHostSignErrorCode, PartialUploadError, PoeNamespace, PrepareSigStructureArgs, PrepareSigStructureHashedResult, PrepareSigStructureResult, ProblemDetails, ProblemErrorEntry, PublishError, QuoteAlreadyConsumedError, QuoteExpiredError, QuoteNotFoundError, RateLimitedError, RecordNotFoundError, RecordsNamespace, ServiceUnavailableError, UnauthorizedError, ValidationFailedError, assembleCoseSign1, assembleCoseSign1Hashed, buildToSign, parseHttpError, prepareSigStructure, prepareSigStructureHashed } from './client/index.cjs';
6
+ export { A as AccountBalance, C as Cip309ClientConfig, a as ConformanceProfile, F as FetchImpl, P as PoeItemResponse, b as PoeStatus, c as PoeVerifyInput, d as PublishBatchEntry, e as PublishBatchFailureEntry, f as PublishBatchFailureError, g as PublishBatchInput, h as PublishBatchResponse, i as PublishBatchResultEntry, j as PublishBatchSuccessEntry, k as PublishContentInput, l as PublishInput, m as PublishMerkleInput, n as PublishMerkleResponse, o as PublishPrehashedInput, p as PublishResponse, q as PublishSealedInput, Q as QuoteInput, r as QuoteResponse, R as RecordResource, s as RecordScheme, t as RecordSignature, u as RecordStatus, v as RecordsListInput, w as RecordsListResponse, S as Signer, x as StorageTarget, y as SupportedHashAlg, U as UploadEntry, z as UploadFailureEntry, B as UploadSuccessEntry, D as UploadsInput, E as UploadsResponse } from './types-BQMtbRCb.cjs';
7
+ export { CROCKFORD_ENCODED_LENGTH_FOR_UUID, POE_ID_PATTERN, POE_ID_PREFIX, PoeIdSchema, PrefixedId, decodeCrockfordBase32, decodePrefixedId, encodeBytesVariableLength, encodeCrockfordBase32, encodePrefixedId, isPrefixedId } from './ids/index.cjs';
8
+ export { i as merkle } from './index-Cg1QqVmA.cjs';
9
+ export { i as hash } from './index-BhnlWJAY.cjs';
10
+ export { ERROR_CODES, EncryptionEnvelope, ErrorCode, ItemEntry, MerkleCommit, PoeRecord, PoeRecordSchema, SEVERITY, STRUCTURAL_ERROR_CODES, Severity, SigEntry, Slot, StructuralErrorCode, Supersedes, VERIFIER_ERROR_CODES, ValidateResult, ValidationIssue, VerifierErrorCode, encodePoeRecord, encodeRecordBodyForSigning, severityOf, validatePoeRecord } from '@cardanowall/poe-standard';
11
+ export { RecipientKeyBundle, eciesSealedPoeUnwrap, eciesSealedPoeWrap } from '@cardanowall/crypto-core/sealed-poe';
12
+ export { DecryptSealedFromSeedArgs, SeedKeys, SeedRecipients, decryptSealedFromSeed, deriveKeysFromSeed, recipientKeyBundleFromSeed, recipientsFromSeed, signerFromSeed } from './identity/index.cjs';
13
+ export { ParsedAgeRecipient, RecipientKem, encodeAgeX25519Recipient, encodeAgeXWingRecipient, parseAgeRecipient } from '@cardanowall/crypto-core/recipient';
14
+ export { DerivedEd25519KeyPair, DerivedMlKem768X25519KeyPair, DerivedX25519KeyPair, deriveEd25519KeypairFromSeed, deriveMlKem768X25519KeypairFromSeed, deriveX25519KeypairFromSeed } from '@cardanowall/crypto-core/seed-derive';
15
+ import 'zod';
16
+ import '@cardanowall/crypto-core/hash';
17
+ import '@cardanowall/crypto-core/merkle';
18
+
19
+ declare function bytesToHex(bytes: Uint8Array): string;
20
+
21
+ export { bytesToHex };
@@ -0,0 +1,21 @@
1
+ export { B as BodyTooLargeError, D as DEFAULT_OUTBOUND_MAX_BYTES, a as DENY_HOSTS_DEFAULT, b as DenyHostError, F as FetchOutbound, c as FetchOutboundOptions, d as FetchOutboundResult, H as HttpCallRecord, e as HttpMethod, f as HttpPurpose, O as OutboundExhaustedError, R as RetryConfig, U as UnsupportedMethodError, g as UnsupportedProtocolError, W as WrapFetchOutboundConfig, h as defaultFetchOutbound, i as fetchOutbound, m as matchesDenyList, w as wrapFetchOutbound } from './fetch-outbound-BT5-NiYN.js';
2
+ export { DenyHostsFetchOptions, HttpCall, denyHostsFetch } from './fetch/index.js';
3
+ export { D as DecryptionVerdict, E as ExitCode, I as ItemHashCheck, M as MerkleVerdict, N as Network, P as PROFILE_RANK, a as Profile, S as SignatureFailureReason, b as SignatureVerdict, c as SignerType, V as Verdict, d as VerifyItemDecryption, e as VerifyMerkleCheck, f as VerifyRecordSignature, g as VerifyReport, h as VerifyTxInput, i as VerifyTxOutput, j as VerifyTxSummary, k as VerifyTxWitness, l as VerifyUriCheck } from './types-B8Q3gW54.js';
4
+ export { BLOCKFROST_MAINNET_HOST, CONFIRMATION_DEPTH_THRESHOLD_DEFAULT, DEFAULT_PROFILE, KOIOS_MAINNET_URL, NotACip309RecordError, ResolvedTx, TxComponents, decodeTxSummary, decodeTxWitnesses, exitCodeForVerdict, extractLabel309Metadata, fetchItemCiphertext, planProfileSkips, profileImplements, resolveCardanoTx, sliceLabel309Value, sliceTxComponents, tryDecryptions, verifyMerkleCommitments, verifyRecordSignatures, verifyReportToDict, verifyResolved, verifyTx } from './verifier/index.js';
5
+ export { AccountNamespace, AssembleCoseSign1Args, AssembleCoseSign1Result, BatchEmptyError, BatchTooLargeError, Cip309Client, Cip309HttpError, Cip309HttpErrorInit, ForbiddenError, IdempotencyConflictError, InsufficientFundsError, InsufficientScopeError, InternalServerError, InvalidBodyError, InvalidClientConfigError, MalformedCborError, NotFoundError, OffHostSignError, OffHostSignErrorCode, PartialUploadError, PoeNamespace, PrepareSigStructureArgs, PrepareSigStructureHashedResult, PrepareSigStructureResult, ProblemDetails, ProblemErrorEntry, PublishError, QuoteAlreadyConsumedError, QuoteExpiredError, QuoteNotFoundError, RateLimitedError, RecordNotFoundError, RecordsNamespace, ServiceUnavailableError, UnauthorizedError, ValidationFailedError, assembleCoseSign1, assembleCoseSign1Hashed, buildToSign, parseHttpError, prepareSigStructure, prepareSigStructureHashed } from './client/index.js';
6
+ export { A as AccountBalance, C as Cip309ClientConfig, a as ConformanceProfile, F as FetchImpl, P as PoeItemResponse, b as PoeStatus, c as PoeVerifyInput, d as PublishBatchEntry, e as PublishBatchFailureEntry, f as PublishBatchFailureError, g as PublishBatchInput, h as PublishBatchResponse, i as PublishBatchResultEntry, j as PublishBatchSuccessEntry, k as PublishContentInput, l as PublishInput, m as PublishMerkleInput, n as PublishMerkleResponse, o as PublishPrehashedInput, p as PublishResponse, q as PublishSealedInput, Q as QuoteInput, r as QuoteResponse, R as RecordResource, s as RecordScheme, t as RecordSignature, u as RecordStatus, v as RecordsListInput, w as RecordsListResponse, S as Signer, x as StorageTarget, y as SupportedHashAlg, U as UploadEntry, z as UploadFailureEntry, B as UploadSuccessEntry, D as UploadsInput, E as UploadsResponse } from './types-BQMtbRCb.js';
7
+ export { CROCKFORD_ENCODED_LENGTH_FOR_UUID, POE_ID_PATTERN, POE_ID_PREFIX, PoeIdSchema, PrefixedId, decodeCrockfordBase32, decodePrefixedId, encodeBytesVariableLength, encodeCrockfordBase32, encodePrefixedId, isPrefixedId } from './ids/index.js';
8
+ export { i as merkle } from './index-Cg1QqVmA.js';
9
+ export { i as hash } from './index-BhnlWJAY.js';
10
+ export { ERROR_CODES, EncryptionEnvelope, ErrorCode, ItemEntry, MerkleCommit, PoeRecord, PoeRecordSchema, SEVERITY, STRUCTURAL_ERROR_CODES, Severity, SigEntry, Slot, StructuralErrorCode, Supersedes, VERIFIER_ERROR_CODES, ValidateResult, ValidationIssue, VerifierErrorCode, encodePoeRecord, encodeRecordBodyForSigning, severityOf, validatePoeRecord } from '@cardanowall/poe-standard';
11
+ export { RecipientKeyBundle, eciesSealedPoeUnwrap, eciesSealedPoeWrap } from '@cardanowall/crypto-core/sealed-poe';
12
+ export { DecryptSealedFromSeedArgs, SeedKeys, SeedRecipients, decryptSealedFromSeed, deriveKeysFromSeed, recipientKeyBundleFromSeed, recipientsFromSeed, signerFromSeed } from './identity/index.js';
13
+ export { ParsedAgeRecipient, RecipientKem, encodeAgeX25519Recipient, encodeAgeXWingRecipient, parseAgeRecipient } from '@cardanowall/crypto-core/recipient';
14
+ export { DerivedEd25519KeyPair, DerivedMlKem768X25519KeyPair, DerivedX25519KeyPair, deriveEd25519KeypairFromSeed, deriveMlKem768X25519KeypairFromSeed, deriveX25519KeypairFromSeed } from '@cardanowall/crypto-core/seed-derive';
15
+ import 'zod';
16
+ import '@cardanowall/crypto-core/hash';
17
+ import '@cardanowall/crypto-core/merkle';
18
+
19
+ declare function bytesToHex(bytes: Uint8Array): string;
20
+
21
+ export { bytesToHex };