@janssenproject/cedarling_wasm 0.0.467-nodejs → 0.0.468
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 +201 -0
- package/README.md +458 -55
- package/dist/browser/index.js +3159 -0
- package/dist/browser/index.js.map +7 -0
- package/dist/cjs/index.cjs +3140 -0
- package/dist/cjs/index.cjs.map +7 -0
- package/dist/edge/index.js +3089 -0
- package/dist/edge/index.js.map +7 -0
- package/dist/esm/index.js +3154 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/manual/index.js +3104 -0
- package/dist/manual/index.js.map +7 -0
- package/{cedarling_wasm.d.ts → dist/types/cjs/generated.d.ts} +225 -54
- package/dist/types/cjs/index.d.ts +6 -0
- package/dist/types/cjs/package.json +1 -0
- package/dist/types/esm/edge.d.ts +7 -0
- package/dist/types/esm/generated.d.ts +1084 -0
- package/dist/types/esm/index.d.ts +6 -0
- package/dist/types/esm/manual.d.ts +2 -0
- package/dist/types/esm/wasm.d.ts +2 -0
- package/{cedarling_wasm_bg.wasm → dist/wasm/cedarling_wasm_bg.wasm} +0 -0
- package/package.json +81 -8
- package/cedarling_wasm.js +0 -3157
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference lib="esnext.disposable" />
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -237,21 +238,6 @@ export class Cedarling {
|
|
|
237
238
|
* ```
|
|
238
239
|
*/
|
|
239
240
|
annotationsMap(policy_ids: string[]): any;
|
|
240
|
-
/**
|
|
241
|
-
* Authorize multi-issuer request.
|
|
242
|
-
* Makes authorization decision based on multiple JWT tokens from different issuers.
|
|
243
|
-
*
|
|
244
|
-
* # Arguments
|
|
245
|
-
*
|
|
246
|
-
* * `request` - JSON string representation of [`AuthorizeMultiIssuerRequest`].
|
|
247
|
-
*
|
|
248
|
-
* # Example
|
|
249
|
-
*
|
|
250
|
-
* ```javascript
|
|
251
|
-
* const result = await cedarling.authorizeMultiIssuer(JSON.stringify(request));
|
|
252
|
-
* ```
|
|
253
|
-
*/
|
|
254
|
-
authorizeMultiIssuer(request: string): Promise<MultiIssuerAuthorizeResult>;
|
|
255
241
|
/**
|
|
256
242
|
* Authorize a batch of multi-issuer requests against one shared token set.
|
|
257
243
|
*
|
|
@@ -274,25 +260,20 @@ export class Cedarling {
|
|
|
274
260
|
*/
|
|
275
261
|
authorizeMultiIssuerBatch(request: string): Promise<BatchAuthorizeMultiIssuerResponse>;
|
|
276
262
|
/**
|
|
277
|
-
* Authorize
|
|
278
|
-
* Makes
|
|
279
|
-
*
|
|
280
|
-
* When `principal` is omitted / `null` on the JS side the core uses Cedar
|
|
281
|
-
* partial evaluation; residual-dependent requests fail closed with
|
|
282
|
-
* `Decision::Deny` and surface residual policy ids in
|
|
283
|
-
* `response.diagnostics.reason`.
|
|
263
|
+
* Authorize multi-issuer request.
|
|
264
|
+
* Makes authorization decision based on multiple JWT tokens from different issuers.
|
|
284
265
|
*
|
|
285
266
|
* # Arguments
|
|
286
267
|
*
|
|
287
|
-
* * `request` - JSON string representation of [`
|
|
268
|
+
* * `request` - JSON string representation of [`AuthorizeMultiIssuerRequest`].
|
|
288
269
|
*
|
|
289
270
|
* # Example
|
|
290
271
|
*
|
|
291
272
|
* ```javascript
|
|
292
|
-
* const result = await cedarling.
|
|
273
|
+
* const result = await cedarling.authorizeMultiIssuer(JSON.stringify(request));
|
|
293
274
|
* ```
|
|
294
275
|
*/
|
|
295
|
-
|
|
276
|
+
authorizeMultiIssuer(request: string): Promise<MultiIssuerAuthorizeResult>;
|
|
296
277
|
/**
|
|
297
278
|
* Authorize a batch of unsigned requests against one shared principal.
|
|
298
279
|
*
|
|
@@ -314,6 +295,26 @@ export class Cedarling {
|
|
|
314
295
|
* ```
|
|
315
296
|
*/
|
|
316
297
|
authorizeUnsignedBatch(request: string): Promise<BatchAuthorizeUnsignedResponse>;
|
|
298
|
+
/**
|
|
299
|
+
* Authorize an unsigned request carrying an optional single principal.
|
|
300
|
+
* Makes an authorization decision based on the [`RequestUnsigned`].
|
|
301
|
+
*
|
|
302
|
+
* When `principal` is omitted / `null` on the JS side the core uses Cedar
|
|
303
|
+
* partial evaluation; residual-dependent requests fail closed with
|
|
304
|
+
* `Decision::Deny` and surface residual policy ids in
|
|
305
|
+
* `response.diagnostics.reason`.
|
|
306
|
+
*
|
|
307
|
+
* # Arguments
|
|
308
|
+
*
|
|
309
|
+
* * `request` - JSON string representation of [`RequestUnsigned`].
|
|
310
|
+
*
|
|
311
|
+
* # Example
|
|
312
|
+
*
|
|
313
|
+
* ```javascript
|
|
314
|
+
* const result = await cedarling.authorizeUnsigned(JSON.stringify(request));
|
|
315
|
+
* ```
|
|
316
|
+
*/
|
|
317
|
+
authorizeUnsigned(request: string): Promise<AuthorizeResult>;
|
|
317
318
|
/**
|
|
318
319
|
* Clear all entries from the data store.
|
|
319
320
|
*
|
|
@@ -412,35 +413,35 @@ export class Cedarling {
|
|
|
412
413
|
*/
|
|
413
414
|
getLogIds(): Array<any>;
|
|
414
415
|
/**
|
|
415
|
-
* Returns retained memory logs
|
|
416
|
+
* Returns retained memory logs matching one request ID and indexed value.
|
|
416
417
|
*
|
|
417
418
|
* # Arguments
|
|
418
419
|
*
|
|
419
420
|
* * `requestId` - The request identifier to match.
|
|
421
|
+
* * `tag` - A log kind (`"System"`, `"Decision"`, or `"Metric"`) or a
|
|
422
|
+
* system-log level such as `"DEBUG"`.
|
|
420
423
|
*
|
|
421
424
|
* # Example
|
|
422
425
|
*
|
|
423
426
|
* ```javascript
|
|
424
|
-
* const logs = cedarling.
|
|
427
|
+
* const logs = cedarling.getLogsByRequestIdAndTag("request-id", "System");
|
|
425
428
|
* ```
|
|
426
429
|
*/
|
|
427
|
-
|
|
430
|
+
getLogsByRequestIdAndTag(request_id: string, tag: string): any[];
|
|
428
431
|
/**
|
|
429
|
-
* Returns retained memory logs
|
|
432
|
+
* Returns retained memory logs for one request ID.
|
|
430
433
|
*
|
|
431
434
|
* # Arguments
|
|
432
435
|
*
|
|
433
436
|
* * `requestId` - The request identifier to match.
|
|
434
|
-
* * `tag` - A log kind (`"System"`, `"Decision"`, or `"Metric"`) or a
|
|
435
|
-
* system-log level such as `"DEBUG"`.
|
|
436
437
|
*
|
|
437
438
|
* # Example
|
|
438
439
|
*
|
|
439
440
|
* ```javascript
|
|
440
|
-
* const logs = cedarling.
|
|
441
|
+
* const logs = cedarling.getLogsByRequestId("request-id");
|
|
441
442
|
* ```
|
|
442
443
|
*/
|
|
443
|
-
|
|
444
|
+
getLogsByRequestId(request_id: string): any[];
|
|
444
445
|
/**
|
|
445
446
|
* Returns retained memory logs matching an indexed value.
|
|
446
447
|
*
|
|
@@ -548,45 +549,45 @@ export class Cedarling {
|
|
|
548
549
|
*/
|
|
549
550
|
loadedTrustedIssuersCount(): number;
|
|
550
551
|
/**
|
|
551
|
-
* Creates a Cedarling application from
|
|
552
|
+
* Creates a new Cedarling application from a JavaScript `Map`.
|
|
552
553
|
*
|
|
553
554
|
* # Arguments
|
|
554
555
|
*
|
|
555
|
-
* * `config` - A
|
|
556
|
+
* * `config` - A `Map` of Cedarling bootstrap-property names and values.
|
|
556
557
|
*
|
|
557
558
|
* # Example
|
|
558
559
|
*
|
|
559
560
|
* ```javascript
|
|
560
561
|
* await initWasm();
|
|
561
|
-
* const cedarling = await Cedarling.new(
|
|
562
|
-
* CEDARLING_APPLICATION_NAME
|
|
563
|
-
* CEDARLING_POLICY_STORE_URI
|
|
564
|
-
* CEDARLING_LOG_TYPE
|
|
565
|
-
* CEDARLING_LOG_TTL
|
|
566
|
-
*
|
|
562
|
+
* const cedarling = await Cedarling.newFromMap(new Map([
|
|
563
|
+
* ["CEDARLING_APPLICATION_NAME", "task-api"],
|
|
564
|
+
* ["CEDARLING_POLICY_STORE_URI", "https://example.com/policy-store.cjar"],
|
|
565
|
+
* ["CEDARLING_LOG_TYPE", "memory"],
|
|
566
|
+
* ["CEDARLING_LOG_TTL", 120],
|
|
567
|
+
* ]));
|
|
567
568
|
* ```
|
|
568
569
|
*/
|
|
569
|
-
static
|
|
570
|
+
static newFromMap(config: Map<any, any>): Promise<Cedarling>;
|
|
570
571
|
/**
|
|
571
|
-
* Creates a
|
|
572
|
+
* Creates a Cedarling application from bootstrap properties.
|
|
572
573
|
*
|
|
573
574
|
* # Arguments
|
|
574
575
|
*
|
|
575
|
-
* * `config` - A
|
|
576
|
+
* * `config` - A plain object of Cedarling bootstrap-property names and values.
|
|
576
577
|
*
|
|
577
578
|
* # Example
|
|
578
579
|
*
|
|
579
580
|
* ```javascript
|
|
580
581
|
* await initWasm();
|
|
581
|
-
* const cedarling = await Cedarling.
|
|
582
|
-
*
|
|
583
|
-
*
|
|
584
|
-
*
|
|
585
|
-
*
|
|
586
|
-
*
|
|
582
|
+
* const cedarling = await Cedarling.new({
|
|
583
|
+
* CEDARLING_APPLICATION_NAME: "task-api",
|
|
584
|
+
* CEDARLING_POLICY_STORE_URI: "https://example.com/policy-store.cjar",
|
|
585
|
+
* CEDARLING_LOG_TYPE: "memory",
|
|
586
|
+
* CEDARLING_LOG_TTL: 120,
|
|
587
|
+
* });
|
|
587
588
|
* ```
|
|
588
589
|
*/
|
|
589
|
-
static
|
|
590
|
+
static new(config: object): Promise<Cedarling>;
|
|
590
591
|
/**
|
|
591
592
|
* Returns all retained memory logs and removes them from storage.
|
|
592
593
|
* Other log configurations return an empty array.
|
|
@@ -785,7 +786,7 @@ export class Diagnostics {
|
|
|
785
786
|
readonly reason: string[];
|
|
786
787
|
}
|
|
787
788
|
|
|
788
|
-
|
|
789
|
+
declare class IntoUnderlyingByteSource {
|
|
789
790
|
private constructor();
|
|
790
791
|
free(): void;
|
|
791
792
|
[Symbol.dispose](): void;
|
|
@@ -795,8 +796,9 @@ export class IntoUnderlyingByteSource {
|
|
|
795
796
|
readonly autoAllocateChunkSize: number;
|
|
796
797
|
readonly type: ReadableStreamType;
|
|
797
798
|
}
|
|
799
|
+
export type { IntoUnderlyingByteSource };
|
|
798
800
|
|
|
799
|
-
|
|
801
|
+
declare class IntoUnderlyingSink {
|
|
800
802
|
private constructor();
|
|
801
803
|
free(): void;
|
|
802
804
|
[Symbol.dispose](): void;
|
|
@@ -804,14 +806,16 @@ export class IntoUnderlyingSink {
|
|
|
804
806
|
close(): Promise<any>;
|
|
805
807
|
write(chunk: any): Promise<any>;
|
|
806
808
|
}
|
|
809
|
+
export type { IntoUnderlyingSink };
|
|
807
810
|
|
|
808
|
-
|
|
811
|
+
declare class IntoUnderlyingSource {
|
|
809
812
|
private constructor();
|
|
810
813
|
free(): void;
|
|
811
814
|
[Symbol.dispose](): void;
|
|
812
815
|
cancel(): void;
|
|
813
816
|
pull(controller: ReadableStreamDefaultController): Promise<any>;
|
|
814
817
|
}
|
|
818
|
+
export type { IntoUnderlyingSource };
|
|
815
819
|
|
|
816
820
|
/**
|
|
817
821
|
* A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
|
|
@@ -911,3 +915,170 @@ export function init(config: any): Promise<Cedarling>;
|
|
|
911
915
|
* ```
|
|
912
916
|
*/
|
|
913
917
|
export function initFromArchiveBytes(config: any, archive_bytes: Uint8Array): Promise<Cedarling>;
|
|
918
|
+
|
|
919
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
920
|
+
|
|
921
|
+
export interface InitOutput {
|
|
922
|
+
readonly memory: WebAssembly.Memory;
|
|
923
|
+
readonly __wbg_authorizeresult_free: (a: number, b: number) => void;
|
|
924
|
+
readonly __wbg_authorizeresultresponse_free: (a: number, b: number) => void;
|
|
925
|
+
readonly __wbg_batchauthorizemultiissuerresponse_free: (a: number, b: number) => void;
|
|
926
|
+
readonly __wbg_batchauthorizeunsignedresponse_free: (a: number, b: number) => void;
|
|
927
|
+
readonly __wbg_batchitemerror_free: (a: number, b: number) => void;
|
|
928
|
+
readonly __wbg_batchitemmultiissuerresult_free: (a: number, b: number) => void;
|
|
929
|
+
readonly __wbg_batchitemunsignedresult_free: (a: number, b: number) => void;
|
|
930
|
+
readonly __wbg_cedarling_free: (a: number, b: number) => void;
|
|
931
|
+
readonly __wbg_dataentry_free: (a: number, b: number) => void;
|
|
932
|
+
readonly __wbg_datastorestats_free: (a: number, b: number) => void;
|
|
933
|
+
readonly __wbg_diagnostics_free: (a: number, b: number) => void;
|
|
934
|
+
readonly __wbg_get_authorizeresult_decision: (a: number) => number;
|
|
935
|
+
readonly __wbg_get_authorizeresult_request_id: (a: number, b: number) => void;
|
|
936
|
+
readonly __wbg_get_authorizeresult_response: (a: number) => number;
|
|
937
|
+
readonly __wbg_get_dataentry_access_count: (a: number) => bigint;
|
|
938
|
+
readonly __wbg_get_dataentry_created_at: (a: number, b: number) => void;
|
|
939
|
+
readonly __wbg_get_dataentry_data_type: (a: number, b: number) => void;
|
|
940
|
+
readonly __wbg_get_dataentry_expires_at: (a: number, b: number) => void;
|
|
941
|
+
readonly __wbg_get_dataentry_key: (a: number, b: number) => void;
|
|
942
|
+
readonly __wbg_get_datastorestats_avg_entry_size_bytes: (a: number) => number;
|
|
943
|
+
readonly __wbg_get_datastorestats_capacity_usage_percent: (a: number) => number;
|
|
944
|
+
readonly __wbg_get_datastorestats_entry_count: (a: number) => number;
|
|
945
|
+
readonly __wbg_get_datastorestats_max_entries: (a: number) => number;
|
|
946
|
+
readonly __wbg_get_datastorestats_max_entry_size: (a: number) => number;
|
|
947
|
+
readonly __wbg_get_datastorestats_memory_alert_threshold: (a: number) => number;
|
|
948
|
+
readonly __wbg_get_datastorestats_memory_alert_triggered: (a: number) => number;
|
|
949
|
+
readonly __wbg_get_datastorestats_metrics_enabled: (a: number) => number;
|
|
950
|
+
readonly __wbg_get_datastorestats_total_size_bytes: (a: number) => number;
|
|
951
|
+
readonly __wbg_get_multiissuerauthorizeresult_decision: (a: number) => number;
|
|
952
|
+
readonly __wbg_get_multiissuerauthorizeresult_request_id: (a: number, b: number) => void;
|
|
953
|
+
readonly __wbg_get_multiissuerauthorizeresult_response: (a: number) => number;
|
|
954
|
+
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
955
|
+
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
956
|
+
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
957
|
+
readonly __wbg_multiissuerauthorizeresult_free: (a: number, b: number) => void;
|
|
958
|
+
readonly __wbg_policyevaluationerror_free: (a: number, b: number) => void;
|
|
959
|
+
readonly __wbg_set_authorizeresult_decision: (a: number, b: number) => void;
|
|
960
|
+
readonly __wbg_set_authorizeresult_request_id: (a: number, b: number, c: number) => void;
|
|
961
|
+
readonly __wbg_set_authorizeresult_response: (a: number, b: number) => void;
|
|
962
|
+
readonly __wbg_set_dataentry_access_count: (a: number, b: bigint) => void;
|
|
963
|
+
readonly __wbg_set_dataentry_created_at: (a: number, b: number, c: number) => void;
|
|
964
|
+
readonly __wbg_set_dataentry_data_type: (a: number, b: number, c: number) => void;
|
|
965
|
+
readonly __wbg_set_dataentry_expires_at: (a: number, b: number, c: number) => void;
|
|
966
|
+
readonly __wbg_set_dataentry_key: (a: number, b: number, c: number) => void;
|
|
967
|
+
readonly __wbg_set_datastorestats_avg_entry_size_bytes: (a: number, b: number) => void;
|
|
968
|
+
readonly __wbg_set_datastorestats_capacity_usage_percent: (a: number, b: number) => void;
|
|
969
|
+
readonly __wbg_set_datastorestats_entry_count: (a: number, b: number) => void;
|
|
970
|
+
readonly __wbg_set_datastorestats_max_entries: (a: number, b: number) => void;
|
|
971
|
+
readonly __wbg_set_datastorestats_max_entry_size: (a: number, b: number) => void;
|
|
972
|
+
readonly __wbg_set_datastorestats_memory_alert_threshold: (a: number, b: number) => void;
|
|
973
|
+
readonly __wbg_set_datastorestats_memory_alert_triggered: (a: number, b: number) => void;
|
|
974
|
+
readonly __wbg_set_datastorestats_metrics_enabled: (a: number, b: number) => void;
|
|
975
|
+
readonly __wbg_set_datastorestats_total_size_bytes: (a: number, b: number) => void;
|
|
976
|
+
readonly __wbg_set_multiissuerauthorizeresult_decision: (a: number, b: number) => void;
|
|
977
|
+
readonly __wbg_set_multiissuerauthorizeresult_request_id: (a: number, b: number, c: number) => void;
|
|
978
|
+
readonly __wbg_set_multiissuerauthorizeresult_response: (a: number, b: number) => void;
|
|
979
|
+
readonly authorizeresult_jsonString: (a: number, b: number) => void;
|
|
980
|
+
readonly authorizeresultresponse_decision: (a: number) => number;
|
|
981
|
+
readonly authorizeresultresponse_diagnostics: (a: number) => number;
|
|
982
|
+
readonly batchauthorizemultiissuerresponse_batch_id: (a: number, b: number) => void;
|
|
983
|
+
readonly batchauthorizemultiissuerresponse_results: (a: number, b: number) => void;
|
|
984
|
+
readonly batchauthorizeunsignedresponse_batch_id: (a: number, b: number) => void;
|
|
985
|
+
readonly batchauthorizeunsignedresponse_results: (a: number, b: number) => void;
|
|
986
|
+
readonly batchitemerror_category: (a: number, b: number) => void;
|
|
987
|
+
readonly batchitemerror_item_index: (a: number) => number;
|
|
988
|
+
readonly batchitemerror_message: (a: number, b: number) => void;
|
|
989
|
+
readonly batchitemmultiissuerresult_error: (a: number) => number;
|
|
990
|
+
readonly batchitemmultiissuerresult_is_ok: (a: number) => number;
|
|
991
|
+
readonly batchitemmultiissuerresult_unwrap: (a: number, b: number) => void;
|
|
992
|
+
readonly batchitemunsignedresult_error: (a: number) => number;
|
|
993
|
+
readonly batchitemunsignedresult_is_ok: (a: number) => number;
|
|
994
|
+
readonly batchitemunsignedresult_unwrap: (a: number, b: number) => void;
|
|
995
|
+
readonly cedarling_annotationValues: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
996
|
+
readonly cedarling_annotationsByPolicy: (a: number, b: number, c: number, d: number) => void;
|
|
997
|
+
readonly cedarling_annotationsMap: (a: number, b: number, c: number, d: number) => void;
|
|
998
|
+
readonly cedarling_authorizeMultiIssuer: (a: number, b: number, c: number) => number;
|
|
999
|
+
readonly cedarling_authorizeMultiIssuerBatch: (a: number, b: number, c: number) => number;
|
|
1000
|
+
readonly cedarling_authorizeUnsigned: (a: number, b: number, c: number) => number;
|
|
1001
|
+
readonly cedarling_authorizeUnsignedBatch: (a: number, b: number, c: number) => number;
|
|
1002
|
+
readonly cedarling_clearDataCtx: (a: number, b: number) => void;
|
|
1003
|
+
readonly cedarling_failedTrustedIssuerIds: (a: number) => number;
|
|
1004
|
+
readonly cedarling_getDataCtx: (a: number, b: number, c: number, d: number) => void;
|
|
1005
|
+
readonly cedarling_getDataEntryCtx: (a: number, b: number, c: number, d: number) => void;
|
|
1006
|
+
readonly cedarling_getLogById: (a: number, b: number, c: number, d: number) => void;
|
|
1007
|
+
readonly cedarling_getLogIds: (a: number) => number;
|
|
1008
|
+
readonly cedarling_getLogsByRequestId: (a: number, b: number, c: number, d: number) => void;
|
|
1009
|
+
readonly cedarling_getLogsByRequestIdAndTag: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1010
|
+
readonly cedarling_getLogsByTag: (a: number, b: number, c: number, d: number) => void;
|
|
1011
|
+
readonly cedarling_getStatsCtx: (a: number, b: number) => void;
|
|
1012
|
+
readonly cedarling_isTrustedIssuerLoadedByIss: (a: number, b: number, c: number) => number;
|
|
1013
|
+
readonly cedarling_isTrustedIssuerLoadedByName: (a: number, b: number, c: number) => number;
|
|
1014
|
+
readonly cedarling_listDataCtx: (a: number, b: number) => void;
|
|
1015
|
+
readonly cedarling_loadedTrustedIssuerIds: (a: number) => number;
|
|
1016
|
+
readonly cedarling_loadedTrustedIssuersCount: (a: number) => number;
|
|
1017
|
+
readonly cedarling_new: (a: number) => number;
|
|
1018
|
+
readonly cedarling_newFromMap: (a: number) => number;
|
|
1019
|
+
readonly cedarling_popLogs: (a: number, b: number) => void;
|
|
1020
|
+
readonly cedarling_pushDataCtx: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint) => void;
|
|
1021
|
+
readonly cedarling_removeDataCtx: (a: number, b: number, c: number, d: number) => void;
|
|
1022
|
+
readonly cedarling_shutDown: (a: number) => number;
|
|
1023
|
+
readonly cedarling_totalIssuers: (a: number) => number;
|
|
1024
|
+
readonly dataentry_jsonString: (a: number, b: number) => void;
|
|
1025
|
+
readonly dataentry_value: (a: number, b: number) => void;
|
|
1026
|
+
readonly datastorestats_jsonString: (a: number, b: number) => void;
|
|
1027
|
+
readonly diagnostics_errors: (a: number, b: number) => void;
|
|
1028
|
+
readonly diagnostics_reason: (a: number, b: number) => void;
|
|
1029
|
+
readonly init: (a: number) => number;
|
|
1030
|
+
readonly initFromArchiveBytes: (a: number, b: number) => number;
|
|
1031
|
+
readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
|
|
1032
|
+
readonly rust_zstd_wasm_shim_free: (a: number) => void;
|
|
1033
|
+
readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
1034
|
+
readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
|
|
1035
|
+
readonly rust_zstd_wasm_shim_memcpy: (a: number, b: number, c: number) => number;
|
|
1036
|
+
readonly rust_zstd_wasm_shim_memmove: (a: number, b: number, c: number) => number;
|
|
1037
|
+
readonly rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => number;
|
|
1038
|
+
readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
1039
|
+
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
1040
|
+
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
1041
|
+
readonly intounderlyingbytesource_pull: (a: number, b: number) => number;
|
|
1042
|
+
readonly intounderlyingbytesource_start: (a: number, b: number) => void;
|
|
1043
|
+
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
1044
|
+
readonly intounderlyingsink_abort: (a: number, b: number) => number;
|
|
1045
|
+
readonly intounderlyingsink_close: (a: number) => number;
|
|
1046
|
+
readonly intounderlyingsink_write: (a: number, b: number) => number;
|
|
1047
|
+
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
1048
|
+
readonly intounderlyingsource_pull: (a: number, b: number) => number;
|
|
1049
|
+
readonly multiissuerauthorizeresult_jsonString: (a: number, b: number) => void;
|
|
1050
|
+
readonly policyevaluationerror_error: (a: number, b: number) => void;
|
|
1051
|
+
readonly policyevaluationerror_id: (a: number, b: number) => void;
|
|
1052
|
+
readonly __wasm_bindgen_func_elem_8900: (a: number, b: number, c: number, d: number) => void;
|
|
1053
|
+
readonly __wasm_bindgen_func_elem_8955: (a: number, b: number, c: number, d: number) => void;
|
|
1054
|
+
readonly __wasm_bindgen_func_elem_12460: (a: number, b: number, c: number) => void;
|
|
1055
|
+
readonly __wasm_bindgen_func_elem_8734: (a: number, b: number) => void;
|
|
1056
|
+
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
1057
|
+
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
1058
|
+
readonly __wbindgen_export3: (a: number) => void;
|
|
1059
|
+
readonly __wbindgen_export4: (a: number, b: number) => void;
|
|
1060
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
1061
|
+
readonly __wbindgen_export5: (a: number, b: number, c: number) => void;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
1068
|
+
* a precompiled `WebAssembly.Module`.
|
|
1069
|
+
*
|
|
1070
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
1071
|
+
*
|
|
1072
|
+
* @returns {InitOutput}
|
|
1073
|
+
*/
|
|
1074
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
1078
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
1079
|
+
*
|
|
1080
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
1081
|
+
*
|
|
1082
|
+
* @returns {Promise<InitOutput>}
|
|
1083
|
+
*/
|
|
1084
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const init: typeof import("./generated.js").init;
|
|
2
|
+
export declare const initSync: typeof import("./generated.js").initSync;
|
|
3
|
+
export declare const initWasm: typeof import("./generated.js").default;
|
|
4
|
+
export declare const initFromArchiveBytes: typeof import("./generated.js").initFromArchiveBytes;
|
|
5
|
+
export { initWasm as default };
|
|
6
|
+
export type * from "./generated.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { InitOutput } from "./generated.js";
|
|
2
|
+
export declare const init: typeof import("./generated.js").init;
|
|
3
|
+
export declare const initSync: typeof import("./generated.js").initSync;
|
|
4
|
+
export declare const initWasm: () => Promise<InitOutput>;
|
|
5
|
+
export declare const initFromArchiveBytes: typeof import("./generated.js").initFromArchiveBytes;
|
|
6
|
+
export { initWasm as default };
|
|
7
|
+
export type * from "./generated.js";
|