@oatscenter/trellis 0.100.0-rc.25 → 0.100.0-rc.27

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.
@@ -72,17 +72,17 @@ export function classify_transport_authorization(admitted_json: string, allowed_
72
72
  /**
73
73
  * Authenticate a canonical catalog snapshot once.
74
74
  */
75
- export function create_catalog_handle(bytes: Uint8Array, verification_json: string): AuthenticatedCatalogHandle;
75
+ export function create_catalog_handle(bytes: Uint8Array | number[], verification_json: string): AuthenticatedCatalogHandle;
76
76
 
77
77
  /**
78
78
  * Authenticate a canonical provider certificate once, valid at `nowUnixSeconds`.
79
79
  */
80
- export function create_provider_certificate_handle(bytes: Uint8Array, verification_json: string): AuthenticatedProviderCertificateHandle;
80
+ export function create_provider_certificate_handle(bytes: Uint8Array | number[], verification_json: string): AuthenticatedProviderCertificateHandle;
81
81
 
82
82
  /**
83
83
  * Verify bounded target authority using explicit pinned trust and instance/account.
84
84
  */
85
- export function create_session_authority_handle(verification_json: string, authority_bytes: Uint8Array): VerifiedSessionAuthorityHandle;
85
+ export function create_session_authority_handle(verification_json: string, authority_bytes: Uint8Array | number[]): VerifiedSessionAuthorityHandle;
86
86
 
87
87
  /**
88
88
  * Decode and query-bind a shared versioned pagination cursor.
@@ -142,12 +142,12 @@ export function live_observe_wildcard_subject(base_subject: string, provider_con
142
142
  /**
143
143
  * Parse one strict JSON live control and return its canonical projection.
144
144
  */
145
- export function live_parse_control(raw: Uint8Array): string;
145
+ export function live_parse_control(raw: Uint8Array | number[]): string;
146
146
 
147
147
  /**
148
148
  * Parse one strict signed control response and return its tagged projection.
149
149
  */
150
- export function live_parse_control_response(raw: Uint8Array): string;
150
+ export function live_parse_control_response(raw: Uint8Array | number[]): string;
151
151
 
152
152
  /**
153
153
  * Parse one strict JSON provider data-channel frame and return its projection.
@@ -155,12 +155,12 @@ export function live_parse_control_response(raw: Uint8Array): string;
155
155
  * `max_data_body_bytes` is the negotiated application-data body limit; DATA is
156
156
  * bounded by it while CHALLENGE/END use the tighter protocol-control limit.
157
157
  */
158
- export function live_parse_frame(raw: Uint8Array, max_data_body_bytes: number): string;
158
+ export function live_parse_frame(raw: Uint8Array | number[], max_data_body_bytes: number): string;
159
159
 
160
160
  /**
161
161
  * Parse one strict signed provider offer and return its canonical projection.
162
162
  */
163
- export function live_parse_offer(raw: Uint8Array): string;
163
+ export function live_parse_offer(raw: Uint8Array | number[]): string;
164
164
 
165
165
  /**
166
166
  * Parse one canonical unsigned 64-bit wire counter.
@@ -195,7 +195,7 @@ export function session_proof_signing_digest(input_json: string): string;
195
195
  /**
196
196
  * Sign the native own-admission request with the ephemeral session seed.
197
197
  */
198
- export function sign_admission_get(request_json: string, subject: string, reply: string, seed: Uint8Array): string;
198
+ export function sign_admission_get(request_json: string, subject: string, reply: string, seed: Uint8Array | number[]): string;
199
199
 
200
200
  /**
201
201
  * Return canonical Transfer limits and protocol header names as JSON.
@@ -205,7 +205,7 @@ export function transfer_constants(): string;
205
205
  /**
206
206
  * Compute a compact frame digest as base64url, hashing raw bytes in place.
207
207
  */
208
- export function transfer_frame_digest(descriptor_json: string, payload: Uint8Array): string;
208
+ export function transfer_frame_digest(descriptor_json: string, payload: Uint8Array | number[]): string;
209
209
 
210
210
  /**
211
211
  * Negotiate raw DATA size from exact safe-integer NATS payload limits.
@@ -220,17 +220,17 @@ export function transfer_parse_counter(value: string): string;
220
220
  /**
221
221
  * Parse a direction-specific grant, validating exact subjects and identities.
222
222
  */
223
- export function transfer_parse_grant(raw: Uint8Array): string;
223
+ export function transfer_parse_grant(raw: Uint8Array | number[]): string;
224
224
 
225
225
  /**
226
226
  * Parse a strict provider signal and return its normalized JSON.
227
227
  */
228
- export function transfer_parse_signal(raw: Uint8Array): string;
228
+ export function transfer_parse_signal(raw: Uint8Array | number[]): string;
229
229
 
230
230
  /**
231
231
  * Parse signed zero-byte EOF's terminal header and return normalized JSON.
232
232
  */
233
- export function transfer_parse_terminal(raw: Uint8Array): string;
233
+ export function transfer_parse_terminal(raw: Uint8Array | number[]): string;
234
234
 
235
235
  /**
236
236
  * Receive window `[frames, bytes]` to offer from `available` admission bytes,
@@ -241,7 +241,7 @@ export function transfer_receive_window(available: number, max_frame_bytes: numb
241
241
  /**
242
242
  * Compute the Transfer-domain provider signature digest as base64url.
243
243
  */
244
- export function transfer_server_proof_digest(context_digest: string, subject: string, descriptor_json: string, payload: Uint8Array): string;
244
+ export function transfer_server_proof_digest(context_digest: string, subject: string, descriptor_json: string, payload: Uint8Array | number[]): string;
245
245
 
246
246
  /**
247
247
  * Validate an exact subject, returning its canonical family name.
@@ -251,7 +251,7 @@ export function transfer_validate_subject(subject: string): string;
251
251
  /**
252
252
  * Verify a Transfer-only provider proof against the pinned session key.
253
253
  */
254
- export function transfer_verify_server_proof(proof: string, context_digest: string, subject: string, descriptor_json: string, payload: Uint8Array, provider_key: string): void;
254
+ export function transfer_verify_server_proof(proof: string, context_digest: string, subject: string, descriptor_json: string, payload: Uint8Array | number[], provider_key: string): void;
255
255
 
256
256
  /**
257
257
  * Return the canonical digest of a signed transport-authorization policy.
@@ -261,13 +261,13 @@ export function transport_authorization_digest(policy_json: string): string;
261
261
  /**
262
262
  * Authenticate a signed admission reply against the exact pending request.
263
263
  */
264
- export function verify_admission_context(bytes: Uint8Array, verification_json: string): string;
264
+ export function verify_admission_context(bytes: Uint8Array | number[], verification_json: string): string;
265
265
 
266
266
  /**
267
267
  * Authenticate one canonical revocation or issuer rotation; decoding alone never
268
268
  * establishes trust. Catalogs and certificates become handles instead.
269
269
  */
270
- export function verify_authority_metadata(kind: string, bytes: Uint8Array, verification_json: string): string;
270
+ export function verify_authority_metadata(kind: string, bytes: Uint8Array | number[], verification_json: string): string;
271
271
 
272
272
  /**
273
273
  * Authenticate public metadata against a retained nonce and configured issuer.
@@ -275,7 +275,7 @@ export function verify_authority_metadata(kind: string, bytes: Uint8Array, verif
275
275
  * The responder's own context is deliberately unnecessary: the pinned Auth
276
276
  * signature authenticates the objects required to resolve that context.
277
277
  */
278
- export function verify_issuer_metadata(verification_json: string, raw_response: Uint8Array): string;
278
+ export function verify_issuer_metadata(verification_json: string, raw_response: Uint8Array | number[]): string;
279
279
 
280
280
  /**
281
281
  * Authenticate a bounded OAuth admission against explicitly selected trust.
@@ -283,7 +283,7 @@ export function verify_issuer_metadata(verification_json: string, raw_response:
283
283
  * The caller must additionally match runtime, client, durable DPoP binding and
284
284
  * saved grant identity before installing credentials or connecting.
285
285
  */
286
- export function verify_oauth_admission(bytes: Uint8Array, verification_json: string): string;
286
+ export function verify_oauth_admission(bytes: Uint8Array | number[], verification_json: string): string;
287
287
 
288
288
  /**
289
289
  * Verify a provider's Ed25519 proof over a 32-byte domain-separated digest.
@@ -291,7 +291,7 @@ export function verify_oauth_admission(bytes: Uint8Array, verification_json: str
291
291
  * Transfer DATA and Live server proofs are digested natively by the caller;
292
292
  * signature verification keeps the shared strict rules.
293
293
  */
294
- export function verify_proof_digest(proof: string, digest: Uint8Array, public_key: string): void;
294
+ export function verify_proof_digest(proof: string, digest: Uint8Array | number[], public_key: string): void;
295
295
 
296
296
  /**
297
297
  * Authenticate an event using the same native publication-time checks.
@@ -299,7 +299,7 @@ export function verify_proof_digest(proof: string, digest: Uint8Array, public_ke
299
299
  * Historical verification requires original metadata from a trusted broker or
300
300
  * preserved projector record, not fields supplied by the event publisher.
301
301
  */
302
- export function verify_session_event(authority: VerifiedSessionAuthorityHandle, event_json: string, payload_sha256: Uint8Array): string;
302
+ export function verify_session_event(authority: VerifiedSessionAuthorityHandle, event_json: string, payload_sha256: Uint8Array | number[]): string;
303
303
 
304
304
  /**
305
305
  * Verify a JSON-encoded session proof.
@@ -309,7 +309,7 @@ export function verify_session_proof(input_json: string, proof_json: string, sig
309
309
  /**
310
310
  * Verify a provider response against a retained opening request and certified action.
311
311
  */
312
- export function verify_session_response(provider: VerifiedSessionAuthorityHandle, certificate: AuthenticatedProviderCertificateHandle, response_json: string, payload_sha256: Uint8Array): string;
312
+ export function verify_session_response(provider: VerifiedSessionAuthorityHandle, certificate: AuthenticatedProviderCertificateHandle, response_json: string, payload_sha256: Uint8Array | number[]): string;
313
313
 
314
314
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
315
315
 
@@ -371,10 +371,14 @@ export interface InitOutput {
371
371
  readonly verify_session_proof: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
372
372
  readonly verify_session_response: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
373
373
  readonly __wbindgen_export: (a: number) => void;
374
+ readonly __wbindgen_export2: () => number;
375
+ readonly __wbindgen_externrefs: WebAssembly.Table;
374
376
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
375
- readonly __wbindgen_export2: (a: number, b: number, c: number) => void;
376
- readonly __wbindgen_export3: (a: number, b: number) => number;
377
- readonly __wbindgen_export4: (a: number, b: number, c: number, d: number) => number;
377
+ readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
378
+ readonly __wbindgen_export4: (a: number, b: number) => number;
379
+ readonly __wbindgen_export5: (a: number, b: number, c: number, d: number) => number;
380
+ readonly __wbindgen_export6: (a: number) => void;
381
+ readonly __wbindgen_start: () => void;
378
382
  }
379
383
 
380
384
  export type SyncInitInput = BufferSource | WebAssembly.Module;