@janssenproject/cedarling_wasm 2.3.0 → 2.4.0-nodejs
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/cedarling_wasm.d.ts +0 -167
- package/cedarling_wasm.js +221 -298
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +2 -6
package/cedarling_wasm.d.ts
CHANGED
|
@@ -757,170 +757,3 @@ export function init(config: any): Promise<Cedarling>;
|
|
|
757
757
|
* ```
|
|
758
758
|
*/
|
|
759
759
|
export function init_from_archive_bytes(config: any, archive_bytes: Uint8Array): Promise<Cedarling>;
|
|
760
|
-
|
|
761
|
-
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
762
|
-
|
|
763
|
-
export interface InitOutput {
|
|
764
|
-
readonly memory: WebAssembly.Memory;
|
|
765
|
-
readonly __wbg_authorizeresult_free: (a: number, b: number) => void;
|
|
766
|
-
readonly __wbg_authorizeresultresponse_free: (a: number, b: number) => void;
|
|
767
|
-
readonly __wbg_batchauthorizemultiissuerresponse_free: (a: number, b: number) => void;
|
|
768
|
-
readonly __wbg_batchitemerror_free: (a: number, b: number) => void;
|
|
769
|
-
readonly __wbg_batchitemmultiissuerresult_free: (a: number, b: number) => void;
|
|
770
|
-
readonly __wbg_cedarling_free: (a: number, b: number) => void;
|
|
771
|
-
readonly __wbg_dataentry_free: (a: number, b: number) => void;
|
|
772
|
-
readonly __wbg_datastorestats_free: (a: number, b: number) => void;
|
|
773
|
-
readonly __wbg_diagnostics_free: (a: number, b: number) => void;
|
|
774
|
-
readonly __wbg_get_authorizeresult_decision: (a: number) => number;
|
|
775
|
-
readonly __wbg_get_authorizeresult_request_id: (a: number, b: number) => void;
|
|
776
|
-
readonly __wbg_get_authorizeresult_response: (a: number) => number;
|
|
777
|
-
readonly __wbg_get_dataentry_access_count: (a: number) => bigint;
|
|
778
|
-
readonly __wbg_get_dataentry_created_at: (a: number, b: number) => void;
|
|
779
|
-
readonly __wbg_get_dataentry_data_type: (a: number, b: number) => void;
|
|
780
|
-
readonly __wbg_get_dataentry_expires_at: (a: number, b: number) => void;
|
|
781
|
-
readonly __wbg_get_dataentry_key: (a: number, b: number) => void;
|
|
782
|
-
readonly __wbg_get_datastorestats_avg_entry_size_bytes: (a: number) => number;
|
|
783
|
-
readonly __wbg_get_datastorestats_capacity_usage_percent: (a: number) => number;
|
|
784
|
-
readonly __wbg_get_datastorestats_entry_count: (a: number) => number;
|
|
785
|
-
readonly __wbg_get_datastorestats_max_entries: (a: number) => number;
|
|
786
|
-
readonly __wbg_get_datastorestats_max_entry_size: (a: number) => number;
|
|
787
|
-
readonly __wbg_get_datastorestats_memory_alert_threshold: (a: number) => number;
|
|
788
|
-
readonly __wbg_get_datastorestats_memory_alert_triggered: (a: number) => number;
|
|
789
|
-
readonly __wbg_get_datastorestats_metrics_enabled: (a: number) => number;
|
|
790
|
-
readonly __wbg_get_datastorestats_total_size_bytes: (a: number) => number;
|
|
791
|
-
readonly __wbg_policyevaluationerror_free: (a: number, b: number) => void;
|
|
792
|
-
readonly __wbg_set_authorizeresult_decision: (a: number, b: number) => void;
|
|
793
|
-
readonly __wbg_set_authorizeresult_request_id: (a: number, b: number, c: number) => void;
|
|
794
|
-
readonly __wbg_set_authorizeresult_response: (a: number, b: number) => void;
|
|
795
|
-
readonly __wbg_set_dataentry_access_count: (a: number, b: bigint) => void;
|
|
796
|
-
readonly __wbg_set_dataentry_created_at: (a: number, b: number, c: number) => void;
|
|
797
|
-
readonly __wbg_set_dataentry_data_type: (a: number, b: number, c: number) => void;
|
|
798
|
-
readonly __wbg_set_dataentry_expires_at: (a: number, b: number, c: number) => void;
|
|
799
|
-
readonly __wbg_set_dataentry_key: (a: number, b: number, c: number) => void;
|
|
800
|
-
readonly __wbg_set_datastorestats_avg_entry_size_bytes: (a: number, b: number) => void;
|
|
801
|
-
readonly __wbg_set_datastorestats_capacity_usage_percent: (a: number, b: number) => void;
|
|
802
|
-
readonly __wbg_set_datastorestats_entry_count: (a: number, b: number) => void;
|
|
803
|
-
readonly __wbg_set_datastorestats_max_entries: (a: number, b: number) => void;
|
|
804
|
-
readonly __wbg_set_datastorestats_max_entry_size: (a: number, b: number) => void;
|
|
805
|
-
readonly __wbg_set_datastorestats_memory_alert_threshold: (a: number, b: number) => void;
|
|
806
|
-
readonly __wbg_set_datastorestats_memory_alert_triggered: (a: number, b: number) => void;
|
|
807
|
-
readonly __wbg_set_datastorestats_metrics_enabled: (a: number, b: number) => void;
|
|
808
|
-
readonly __wbg_set_datastorestats_total_size_bytes: (a: number, b: number) => void;
|
|
809
|
-
readonly authorizeresult_json_string: (a: number, b: number) => void;
|
|
810
|
-
readonly authorizeresultresponse_decision: (a: number) => number;
|
|
811
|
-
readonly authorizeresultresponse_diagnostics: (a: number) => number;
|
|
812
|
-
readonly batchauthorizemultiissuerresponse_batch_id: (a: number, b: number) => void;
|
|
813
|
-
readonly batchauthorizemultiissuerresponse_results: (a: number, b: number) => void;
|
|
814
|
-
readonly batchauthorizeunsignedresponse_results: (a: number, b: number) => void;
|
|
815
|
-
readonly batchitemerror_category: (a: number, b: number) => void;
|
|
816
|
-
readonly batchitemerror_item_index: (a: number) => number;
|
|
817
|
-
readonly batchitemerror_message: (a: number, b: number) => void;
|
|
818
|
-
readonly batchitemmultiissuerresult_error: (a: number) => number;
|
|
819
|
-
readonly batchitemmultiissuerresult_is_ok: (a: number) => number;
|
|
820
|
-
readonly batchitemmultiissuerresult_unwrap: (a: number, b: number) => void;
|
|
821
|
-
readonly batchitemunsignedresult_unwrap: (a: number, b: number) => void;
|
|
822
|
-
readonly cedarling_annotation_values: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
823
|
-
readonly cedarling_annotations_by_policy: (a: number, b: number, c: number, d: number) => void;
|
|
824
|
-
readonly cedarling_annotations_map: (a: number, b: number, c: number, d: number) => void;
|
|
825
|
-
readonly cedarling_authorize_multi_issuer: (a: number, b: number, c: number) => number;
|
|
826
|
-
readonly cedarling_authorize_multi_issuer_batch: (a: number, b: number, c: number) => number;
|
|
827
|
-
readonly cedarling_authorize_unsigned: (a: number, b: number, c: number) => number;
|
|
828
|
-
readonly cedarling_authorize_unsigned_batch: (a: number, b: number, c: number) => number;
|
|
829
|
-
readonly cedarling_clear_data_ctx: (a: number, b: number) => void;
|
|
830
|
-
readonly cedarling_failed_trusted_issuer_ids: (a: number) => number;
|
|
831
|
-
readonly cedarling_get_data_ctx: (a: number, b: number, c: number, d: number) => void;
|
|
832
|
-
readonly cedarling_get_data_entry_ctx: (a: number, b: number, c: number, d: number) => void;
|
|
833
|
-
readonly cedarling_get_log_by_id: (a: number, b: number, c: number, d: number) => void;
|
|
834
|
-
readonly cedarling_get_log_ids: (a: number) => number;
|
|
835
|
-
readonly cedarling_get_logs_by_request_id: (a: number, b: number, c: number, d: number) => void;
|
|
836
|
-
readonly cedarling_get_logs_by_request_id_and_tag: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
837
|
-
readonly cedarling_get_stats_ctx: (a: number, b: number) => void;
|
|
838
|
-
readonly cedarling_is_trusted_issuer_loaded_by_iss: (a: number, b: number, c: number) => number;
|
|
839
|
-
readonly cedarling_is_trusted_issuer_loaded_by_name: (a: number, b: number, c: number) => number;
|
|
840
|
-
readonly cedarling_list_data_ctx: (a: number, b: number) => void;
|
|
841
|
-
readonly cedarling_loaded_trusted_issuer_ids: (a: number) => number;
|
|
842
|
-
readonly cedarling_loaded_trusted_issuers_count: (a: number) => number;
|
|
843
|
-
readonly cedarling_new: (a: number) => number;
|
|
844
|
-
readonly cedarling_new_from_map: (a: number) => number;
|
|
845
|
-
readonly cedarling_pop_logs: (a: number, b: number) => void;
|
|
846
|
-
readonly cedarling_push_data_ctx: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint) => void;
|
|
847
|
-
readonly cedarling_remove_data_ctx: (a: number, b: number, c: number, d: number) => void;
|
|
848
|
-
readonly cedarling_shut_down: (a: number) => number;
|
|
849
|
-
readonly cedarling_total_issuers: (a: number) => number;
|
|
850
|
-
readonly dataentry_json_string: (a: number, b: number) => void;
|
|
851
|
-
readonly dataentry_value: (a: number, b: number) => void;
|
|
852
|
-
readonly datastorestats_json_string: (a: number, b: number) => void;
|
|
853
|
-
readonly diagnostics_errors: (a: number, b: number) => void;
|
|
854
|
-
readonly diagnostics_reason: (a: number, b: number) => void;
|
|
855
|
-
readonly init: (a: number) => number;
|
|
856
|
-
readonly init_from_archive_bytes: (a: number, b: number) => number;
|
|
857
|
-
readonly multiissuerauthorizeresult_json_string: (a: number, b: number) => void;
|
|
858
|
-
readonly policyevaluationerror_error: (a: number, b: number) => void;
|
|
859
|
-
readonly policyevaluationerror_id: (a: number, b: number) => void;
|
|
860
|
-
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
861
|
-
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
862
|
-
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
863
|
-
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
864
|
-
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
865
|
-
readonly intounderlyingbytesource_pull: (a: number, b: number) => number;
|
|
866
|
-
readonly intounderlyingbytesource_start: (a: number, b: number) => void;
|
|
867
|
-
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
868
|
-
readonly intounderlyingsink_abort: (a: number, b: number) => number;
|
|
869
|
-
readonly intounderlyingsink_close: (a: number) => number;
|
|
870
|
-
readonly intounderlyingsink_write: (a: number, b: number) => number;
|
|
871
|
-
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
872
|
-
readonly intounderlyingsource_pull: (a: number, b: number) => number;
|
|
873
|
-
readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
|
|
874
|
-
readonly rust_zstd_wasm_shim_free: (a: number) => void;
|
|
875
|
-
readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
876
|
-
readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
|
|
877
|
-
readonly rust_zstd_wasm_shim_memcpy: (a: number, b: number, c: number) => number;
|
|
878
|
-
readonly rust_zstd_wasm_shim_memmove: (a: number, b: number, c: number) => number;
|
|
879
|
-
readonly rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => number;
|
|
880
|
-
readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
881
|
-
readonly __wbg_get_multiissuerauthorizeresult_decision: (a: number) => number;
|
|
882
|
-
readonly __wbg_set_multiissuerauthorizeresult_response: (a: number, b: number) => void;
|
|
883
|
-
readonly __wbg_set_multiissuerauthorizeresult_request_id: (a: number, b: number, c: number) => void;
|
|
884
|
-
readonly __wbg_set_multiissuerauthorizeresult_decision: (a: number, b: number) => void;
|
|
885
|
-
readonly __wbg_get_multiissuerauthorizeresult_response: (a: number) => number;
|
|
886
|
-
readonly __wbg_get_multiissuerauthorizeresult_request_id: (a: number, b: number) => void;
|
|
887
|
-
readonly __wbg_multiissuerauthorizeresult_free: (a: number, b: number) => void;
|
|
888
|
-
readonly __wbg_batchitemunsignedresult_free: (a: number, b: number) => void;
|
|
889
|
-
readonly __wbg_batchauthorizeunsignedresponse_free: (a: number, b: number) => void;
|
|
890
|
-
readonly batchitemunsignedresult_is_ok: (a: number) => number;
|
|
891
|
-
readonly batchitemunsignedresult_error: (a: number) => number;
|
|
892
|
-
readonly batchauthorizeunsignedresponse_batch_id: (a: number, b: number) => void;
|
|
893
|
-
readonly cedarling_get_logs_by_tag: (a: number, b: number, c: number, d: number) => void;
|
|
894
|
-
readonly __wasm_bindgen_func_elem_8780: (a: number, b: number, c: number, d: number) => void;
|
|
895
|
-
readonly __wasm_bindgen_func_elem_8835: (a: number, b: number, c: number, d: number) => void;
|
|
896
|
-
readonly __wasm_bindgen_func_elem_12259: (a: number, b: number, c: number) => void;
|
|
897
|
-
readonly __wasm_bindgen_func_elem_8615: (a: number, b: number) => void;
|
|
898
|
-
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
899
|
-
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
900
|
-
readonly __wbindgen_export3: (a: number) => void;
|
|
901
|
-
readonly __wbindgen_export4: (a: number, b: number) => void;
|
|
902
|
-
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
903
|
-
readonly __wbindgen_export5: (a: number, b: number, c: number) => void;
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
907
|
-
|
|
908
|
-
/**
|
|
909
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
910
|
-
* a precompiled `WebAssembly.Module`.
|
|
911
|
-
*
|
|
912
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
913
|
-
*
|
|
914
|
-
* @returns {InitOutput}
|
|
915
|
-
*/
|
|
916
|
-
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
917
|
-
|
|
918
|
-
/**
|
|
919
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
920
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
921
|
-
*
|
|
922
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
923
|
-
*
|
|
924
|
-
* @returns {Promise<InitOutput>}
|
|
925
|
-
*/
|
|
926
|
-
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|