@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,397 @@
1
+ import { PoeRecord, SigEntry } from '@cardanowall/poe-standard';
2
+ import { F as FetchImpl, A as AccountBalance, Q as QuoteInput, r as QuoteResponse, D as UploadsInput, E as UploadsResponse, l as PublishInput, p as PublishResponse, g as PublishBatchInput, h as PublishBatchResponse, k as PublishContentInput, o as PublishPrehashedInput, q as PublishSealedInput, m as PublishMerkleInput, n as PublishMerkleResponse, v as RecordsListInput, w as RecordsListResponse, R as RecordResource, c as PoeVerifyInput, C as Cip309ClientConfig, z as UploadFailureEntry } from '../types-BQMtbRCb.cjs';
3
+ export { a as ConformanceProfile, P as PoeItemResponse, b as PoeStatus, d as PublishBatchEntry, e as PublishBatchFailureEntry, f as PublishBatchFailureError, i as PublishBatchResultEntry, j as PublishBatchSuccessEntry, s as RecordScheme, t as RecordSignature, u as RecordStatus, S as Signer, x as StorageTarget, y as SupportedHashAlg, U as UploadEntry, B as UploadSuccessEntry } from '../types-BQMtbRCb.cjs';
4
+ import { g as VerifyReport } from '../types-CLXdbjqr.cjs';
5
+ import '../fetch-outbound-BT5-NiYN.cjs';
6
+
7
+ type OffHostSignErrorCode = 'INVALID_PUBKEY_LENGTH' | 'INVALID_SIGNATURE_LENGTH';
8
+ declare class OffHostSignError extends Error {
9
+ readonly code: OffHostSignErrorCode;
10
+ constructor(code: OffHostSignErrorCode, message: string);
11
+ }
12
+ interface PrepareSigStructureArgs {
13
+ readonly record: PoeRecord;
14
+ readonly signerPubkey: Uint8Array;
15
+ }
16
+ interface PrepareSigStructureResult {
17
+ readonly sigStructureBytes: Uint8Array;
18
+ readonly protectedHeaderBytes: Uint8Array;
19
+ }
20
+ interface PrepareSigStructureHashedResult extends PrepareSigStructureResult {
21
+ readonly toSignHashBytes: Uint8Array;
22
+ }
23
+ interface AssembleCoseSign1Args {
24
+ readonly record: PoeRecord;
25
+ readonly signerPubkey: Uint8Array;
26
+ readonly signature: Uint8Array;
27
+ }
28
+ interface AssembleCoseSign1Result {
29
+ readonly coseSign1Bytes: Uint8Array;
30
+ readonly sigEntry: SigEntry;
31
+ }
32
+ declare function buildToSign(record: PoeRecord): Uint8Array;
33
+ declare function prepareSigStructure(args: PrepareSigStructureArgs): PrepareSigStructureResult;
34
+ declare function assembleCoseSign1(args: AssembleCoseSign1Args): AssembleCoseSign1Result;
35
+ declare function prepareSigStructureHashed(args: PrepareSigStructureArgs): PrepareSigStructureHashedResult;
36
+ declare function assembleCoseSign1Hashed(args: AssembleCoseSign1Args): AssembleCoseSign1Result;
37
+
38
+ interface ResolvedConfig$2 {
39
+ readonly apiKey: string | undefined;
40
+ readonly baseUrl: string;
41
+ readonly fetch: FetchImpl;
42
+ }
43
+ declare class AccountNamespace {
44
+ private readonly config;
45
+ constructor(config: ResolvedConfig$2);
46
+ /**
47
+ * Fetch the caller's current prepaid USD balance.
48
+ *
49
+ * Returns `{ balanceUsdMicros }`, the gateway's `balance_usd_micros` field
50
+ * (USD micro-cents as a decimal string). The string is preserved verbatim —
51
+ * never parsed into a number — so no precision is lost. An account with no
52
+ * ledger activity yet reads `"0"`.
53
+ *
54
+ * Requires authentication: 401 (UnauthorizedError) when anonymous, 403
55
+ * (InsufficientScopeError) when the Bearer key lacks the `account:read`
56
+ * scope.
57
+ */
58
+ balance(): Promise<AccountBalance>;
59
+ }
60
+
61
+ interface ResolvedConfig$1 {
62
+ readonly apiKey: string | undefined;
63
+ readonly baseUrl: string;
64
+ readonly fetch: FetchImpl;
65
+ }
66
+ declare class PoeNamespace {
67
+ private readonly config;
68
+ constructor(config: ResolvedConfig$1);
69
+ /**
70
+ * Request an opaque price lock for an upcoming /publish call. The gateway
71
+ * prices the described publish from the supplied byte counts, records the
72
+ * lock, and returns a sealed price token: `quote_id`, the total `amount` in
73
+ * `currency`, and an `expires_at`. The gateway's pricing internals are
74
+ * deliberately NOT part of the response.
75
+ *
76
+ * `amount` is a decimal string; promote it to `BigInt` (or a decimal type)
77
+ * at the application boundary if you need exact arithmetic.
78
+ *
79
+ * Pass the returned `quote_id` to `publish()` (or one of the high-level
80
+ * `publishContent` / `publishSealed` / `publishMerkle` helpers).
81
+ */
82
+ quote(input: QuoteInput): Promise<QuoteResponse>;
83
+ /**
84
+ * Upload 1..32 binary files to a storage backend. Returns one entry per file
85
+ * — successful entries carry the `ar://` URI + content hash, failed entries
86
+ * carry an error code / detail so the caller can retry just the failed
87
+ * indices.
88
+ *
89
+ * Billing: free. The storage cost is part of the publish quote (POST
90
+ * /api/v1/poe/quote → POST /api/v1/poe/publish) and is debited once at
91
+ * publish time against the locked price snapshot.
92
+ *
93
+ * On HTTP-level failure (auth, rate limit, malformed request) this throws
94
+ * a typed `Cip309HttpError` subclass. Per-file failures inside a 200
95
+ * response are NOT thrown by `uploads()` itself — the response body is
96
+ * returned verbatim so the caller can decide how to react. The
97
+ * higher-level helpers (`publishSealed`, `publishMerkle`) treat any failed
98
+ * file as a `PartialUploadError`.
99
+ */
100
+ uploads(input: UploadsInput): Promise<UploadsResponse>;
101
+ /**
102
+ * Submit a single finalised canonical-CBOR record to Cardano. Caller is
103
+ * responsible for constructing the record bytes (use `publishContent` /
104
+ * `publishSealed` / `publishMerkle` for the assisted flows) and for
105
+ * acquiring a `quote_id` via `quote()` first.
106
+ *
107
+ * Returns 202 (`dedup_hit: false`) on freshly enqueued records, or 200
108
+ * (`dedup_hit: true`) when the same record bytes were previously submitted
109
+ * by this account. Dedup hits debit nothing.
110
+ */
111
+ publish(input: PublishInput): Promise<PublishResponse>;
112
+ /**
113
+ * Submit 1..50 finalised records as independent Cardano transactions.
114
+ * Each entry carries its own `quote_id` — request quotes ahead of time
115
+ * with one `quote()` call per record. Returns 200 with `results[]` —
116
+ * successful entries land alongside failed ones; per-record errors do NOT
117
+ * roll back the batch.
118
+ */
119
+ publishBatch(input: PublishBatchInput): Promise<PublishBatchResponse>;
120
+ /**
121
+ * High-level hash-only publish: hash the supplied content, build a
122
+ * single-item CIP-309 record, optionally sign it with the caller-supplied
123
+ * signer, and submit. No Arweave, no storage round-trip — anchors the
124
+ * digest only.
125
+ */
126
+ publishContent(input: PublishContentInput): Promise<PublishResponse>;
127
+ /**
128
+ * Hash-already-computed publish: caller already holds the digest(s) — e.g.
129
+ * the CLI `--hash <hex>` mode, an air-gapped offline hashing flow, or any
130
+ * pipeline that proxies digests from another tool. No client-side hashing.
131
+ */
132
+ publishPrehashed(input: PublishPrehashedInput): Promise<PublishResponse>;
133
+ /**
134
+ * Sealed-PoE: encrypt the supplied content to the recipient X25519 public
135
+ * keys (age-style sealed envelope), upload the ciphertext to Arweave via
136
+ * /uploads, build a CIP-309 record with the resulting `ar://` URI, sign
137
+ * it (optional), and submit via /publish.
138
+ *
139
+ * The sender SHOULD include their own X25519 public key in `recipients`
140
+ * to retain decrypt access — the SDK does NOT inject the sender silently.
141
+ */
142
+ publishSealed(input: PublishSealedInput): Promise<PublishResponse>;
143
+ /**
144
+ * Merkle batch publish: compute the RFC 9162 §2.1.1 root over N
145
+ * caller-supplied 32-byte leaf hashes, upload the canonical leaves-list
146
+ * CBOR to Arweave via /uploads, bind the root + leaf_count into
147
+ * `merkle[0]` of an on-chain record, optionally sign, and submit.
148
+ *
149
+ * Returns the on-chain id + tx hash + root + leaf count + the canonical
150
+ * `ar://<tx>` URI of the leaves-list. Anyone with that URI can later
151
+ * fetch the leaves-list, recompute the root, and prove inclusion of any
152
+ * leaf via `merkleSha2256VerifyInclusion`.
153
+ */
154
+ publishMerkle(input: PublishMerkleInput): Promise<PublishMerkleResponse>;
155
+ }
156
+
157
+ interface ResolvedConfig {
158
+ readonly apiKey: string | undefined;
159
+ readonly baseUrl: string;
160
+ readonly fetch: FetchImpl;
161
+ }
162
+ declare class RecordsNamespace {
163
+ private readonly config;
164
+ constructor(config: ResolvedConfig);
165
+ /**
166
+ * List records as a paginated `RecordsListResponse` whose `data[]` entries
167
+ * are the same `RecordResource` projection `get()` returns.
168
+ *
169
+ * Pass `{ sealed: true }` to restrict the page to sealed records addressed
170
+ * to the authenticated caller (the gateway resolves the recipient from the
171
+ * bearer identity); omit it to list every record the caller may read. Page
172
+ * with `{ cursor: previous.next_cursor }` until `has_more` is false.
173
+ */
174
+ list(input?: RecordsListInput): Promise<RecordsListResponse>;
175
+ /**
176
+ * Fetch a record by Cardano transaction hash. Returns the JSON
177
+ * `RecordResource` projection — same shape every `records.list` page entry
178
+ * carries inside `data[]`.
179
+ *
180
+ * 404 (RecordNotFoundError) on tx_hashes the indexer has not seen, OR on
181
+ * un-anchored rows when the caller is not their owner (oracle-safe
182
+ * indistinguishable response per the route's privacy invariant).
183
+ */
184
+ get(txHash: string): Promise<RecordResource>;
185
+ /**
186
+ * Run the canonical CIP-309 verifier against the record at `txHash`.
187
+ * Returns the same `VerifyReport` shape the standalone verifier emits —
188
+ * `VerifyReport` IS the wire body of this endpoint, with no transformer in
189
+ * between.
190
+ *
191
+ * Auth required (Bearer with `poe:read` scope, or NextAuth session
192
+ * cookie). Optional `verify_uris` toggles URI hash-equivalence checks;
193
+ * `decryption[]` drives trial-decrypt of sealed envelopes per item.
194
+ */
195
+ verify(txHash: string, input?: PoeVerifyInput): Promise<VerifyReport>;
196
+ }
197
+
198
+ declare class Cip309Client {
199
+ readonly poe: PoeNamespace;
200
+ readonly records: RecordsNamespace;
201
+ readonly account: AccountNamespace;
202
+ /**
203
+ * Construct a client against a CIP-309 gateway.
204
+ *
205
+ * `config.baseUrl` is required — there is no default deployment. The
206
+ * `config.apiKey`, when supplied, is an opaque bearer token sent verbatim as
207
+ * `Authorization: Bearer <apiKey>`; omit it for anonymous read-only access.
208
+ *
209
+ * PoE submissions debit the gateway's own balance model. Acquire a price lock
210
+ * via `client.poe.quote(...)` first; the resulting `quote_id` is consumed by
211
+ * the publish call.
212
+ */
213
+ constructor(config: Cip309ClientConfig);
214
+ }
215
+
216
+ declare class PublishError extends Error {
217
+ readonly code: 'INVALID_SIGNER_PUBKEY' | 'INVALID_SIGNER_SIGNATURE' | 'INVALID_LEAVES' | 'INVALID_DIGEST' | 'INVALID_RECIPIENT' | 'UNSUPPORTED_HASH_ALG';
218
+ constructor(code: PublishError['code'], message: string);
219
+ }
220
+
221
+ declare class PartialUploadError extends Error {
222
+ readonly response: UploadsResponse;
223
+ readonly failed: ReadonlyArray<UploadFailureEntry>;
224
+ constructor(response: UploadsResponse);
225
+ /** Convenience: the `idx` of every failed entry, in input order. */
226
+ get failedIndices(): ReadonlyArray<number>;
227
+ }
228
+
229
+ /** RFC 7807 per-field error entry. */
230
+ interface ProblemErrorEntry {
231
+ /** Dotted JSON path of the offending field; empty for body-level errors. */
232
+ readonly field: string;
233
+ /** Stable lowercase-kebab (or Zod issue) code for the specific failure. */
234
+ readonly code: string;
235
+ /** Human-readable explanation of this individual field error. */
236
+ readonly detail: string;
237
+ }
238
+ /**
239
+ * RFC 7807 `application/problem+json` document as emitted by every CIP-309
240
+ * gateway `/api/v1/*` route.
241
+ *
242
+ * Canonical fields (`type`, `title`, `status`, `detail`, `code`, `trace_id`)
243
+ * are always present. `errors` is present on validation responses.
244
+ * `instance` is optional per RFC 7807 §3.1.
245
+ *
246
+ * Additional top-level fields are RFC 7807 §3.2 extension members and are
247
+ * preserved verbatim on `Cip309HttpError.extensions`.
248
+ */
249
+ interface ProblemDetails {
250
+ readonly type: string;
251
+ readonly title: string;
252
+ readonly status: number;
253
+ readonly detail: string;
254
+ readonly code: string;
255
+ readonly trace_id: string;
256
+ readonly errors?: ReadonlyArray<ProblemErrorEntry>;
257
+ readonly instance?: string;
258
+ /** RFC 7807 §3.2 extension members. */
259
+ readonly [extension: string]: unknown;
260
+ }
261
+ interface Cip309HttpErrorInit {
262
+ /** The verbatim problem document. */
263
+ readonly problem: ProblemDetails;
264
+ /** Pre-split extension members. Computed from `problem` when omitted. */
265
+ readonly extensions?: Record<string, unknown>;
266
+ /** Value of the `X-Request-Id` response header. Falls back to `problem.trace_id`. */
267
+ readonly requestId?: string | undefined;
268
+ /** Value of the `Retry-After` response header (seconds), if present. */
269
+ readonly retryAfterSeconds?: number | undefined;
270
+ }
271
+ /**
272
+ * Parent class for every typed SDK HTTP error. Carries the full RFC 7807
273
+ * problem document plus headers (`X-Request-Id`, `Retry-After`) relevant for
274
+ * retry logic and log correlation.
275
+ *
276
+ * Consumers can dispatch on:
277
+ * - `err.code` — lowercase-kebab problem code
278
+ * - `err.httpStatus` — HTTP status (= `err.problem.status`)
279
+ * - `instanceof <SpecificError>` — see the subclasses re-exported from
280
+ * `@cardanowall/sdk-ts`
281
+ */
282
+ declare class Cip309HttpError extends Error {
283
+ readonly problem: ProblemDetails;
284
+ readonly code: string;
285
+ readonly httpStatus: number;
286
+ readonly title: string;
287
+ readonly detail: string;
288
+ readonly type: string;
289
+ readonly traceId: string;
290
+ readonly instance: string | undefined;
291
+ readonly errors: ReadonlyArray<ProblemErrorEntry> | undefined;
292
+ readonly extensions: Record<string, unknown>;
293
+ readonly requestId: string;
294
+ readonly retryAfterSeconds: number | undefined;
295
+ constructor(init: Cip309HttpErrorInit);
296
+ }
297
+
298
+ declare class BatchEmptyError extends Cip309HttpError {
299
+ constructor(init: Cip309HttpErrorInit);
300
+ }
301
+
302
+ declare class BatchTooLargeError extends Cip309HttpError {
303
+ readonly max: number | undefined;
304
+ readonly got: number | undefined;
305
+ constructor(init: Cip309HttpErrorInit);
306
+ }
307
+
308
+ declare class ForbiddenError extends Cip309HttpError {
309
+ constructor(init: Cip309HttpErrorInit);
310
+ }
311
+
312
+ declare class IdempotencyConflictError extends Cip309HttpError {
313
+ constructor(init: Cip309HttpErrorInit);
314
+ }
315
+
316
+ declare class InvalidClientConfigError extends Error {
317
+ readonly code: "INVALID_CLIENT_CONFIG";
318
+ constructor(message: string);
319
+ }
320
+
321
+ declare class InsufficientFundsError extends Cip309HttpError {
322
+ readonly balanceUsdMicros: bigint | undefined;
323
+ readonly requiredUsdMicros: bigint | undefined;
324
+ readonly topUpUrl: string | undefined;
325
+ constructor(init: Cip309HttpErrorInit);
326
+ }
327
+
328
+ declare class InsufficientScopeError extends Cip309HttpError {
329
+ readonly requiredScopes: ReadonlyArray<string>;
330
+ readonly grantedScopes: ReadonlyArray<string>;
331
+ constructor(init: Cip309HttpErrorInit);
332
+ /** Convenience for the single-scope case; first entry of `requiredScopes`. */
333
+ get requiredScope(): string | undefined;
334
+ }
335
+
336
+ declare class InternalServerError extends Cip309HttpError {
337
+ constructor(init: Cip309HttpErrorInit);
338
+ }
339
+
340
+ declare class InvalidBodyError extends Cip309HttpError {
341
+ constructor(init: Cip309HttpErrorInit);
342
+ }
343
+
344
+ declare class MalformedCborError extends Cip309HttpError {
345
+ constructor(init: Cip309HttpErrorInit);
346
+ }
347
+
348
+ declare class NotFoundError extends Cip309HttpError {
349
+ constructor(init: Cip309HttpErrorInit);
350
+ }
351
+
352
+ declare class QuoteAlreadyConsumedError extends Cip309HttpError {
353
+ readonly quoteId: string | undefined;
354
+ constructor(init: Cip309HttpErrorInit);
355
+ }
356
+
357
+ declare class QuoteExpiredError extends Cip309HttpError {
358
+ readonly quoteId: string | undefined;
359
+ constructor(init: Cip309HttpErrorInit);
360
+ }
361
+
362
+ declare class QuoteNotFoundError extends Cip309HttpError {
363
+ readonly quoteId: string | undefined;
364
+ constructor(init: Cip309HttpErrorInit);
365
+ }
366
+
367
+ declare class RateLimitedError extends Cip309HttpError {
368
+ constructor(init: Cip309HttpErrorInit);
369
+ }
370
+
371
+ declare class RecordNotFoundError extends Cip309HttpError {
372
+ constructor(init: Cip309HttpErrorInit);
373
+ }
374
+
375
+ declare class ServiceUnavailableError extends Cip309HttpError {
376
+ constructor(init: Cip309HttpErrorInit);
377
+ }
378
+
379
+ declare class UnauthorizedError extends Cip309HttpError {
380
+ constructor(init: Cip309HttpErrorInit);
381
+ }
382
+
383
+ declare class ValidationFailedError extends Cip309HttpError {
384
+ constructor(init: Cip309HttpErrorInit);
385
+ }
386
+
387
+ interface ParseHttpErrorArgs {
388
+ readonly httpStatus: number;
389
+ readonly body: unknown;
390
+ /** `X-Request-Id` header from the response, when available. */
391
+ readonly requestId?: string | undefined;
392
+ /** `Retry-After` header from the response, parsed as integer seconds. */
393
+ readonly retryAfterSeconds?: number | undefined;
394
+ }
395
+ declare function parseHttpError(args: ParseHttpErrorArgs): Cip309HttpError;
396
+
397
+ export { AccountBalance, AccountNamespace, type AssembleCoseSign1Args, type AssembleCoseSign1Result, BatchEmptyError, BatchTooLargeError, Cip309Client, Cip309ClientConfig, Cip309HttpError, type Cip309HttpErrorInit, FetchImpl, ForbiddenError, IdempotencyConflictError, InsufficientFundsError, InsufficientScopeError, InternalServerError, InvalidBodyError, InvalidClientConfigError, MalformedCborError, NotFoundError, OffHostSignError, type OffHostSignErrorCode, PartialUploadError, PoeNamespace, PoeVerifyInput, type PrepareSigStructureArgs, type PrepareSigStructureHashedResult, type PrepareSigStructureResult, type ProblemDetails, type ProblemErrorEntry, PublishBatchInput, PublishBatchResponse, PublishContentInput, PublishError, PublishInput, PublishMerkleInput, PublishMerkleResponse, PublishPrehashedInput, PublishResponse, PublishSealedInput, QuoteAlreadyConsumedError, QuoteExpiredError, QuoteInput, QuoteNotFoundError, QuoteResponse, RateLimitedError, RecordNotFoundError, RecordResource, RecordsListInput, RecordsListResponse, RecordsNamespace, ServiceUnavailableError, UnauthorizedError, UploadFailureEntry, UploadsInput, UploadsResponse, ValidationFailedError, assembleCoseSign1, assembleCoseSign1Hashed, buildToSign, parseHttpError, prepareSigStructure, prepareSigStructureHashed };