@janssenproject/cedarling_wasm 1.8.0-nodejs → 1.8.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.
@@ -169,3 +169,80 @@ export class PolicyEvaluationError {
169
169
  */
170
170
  readonly error: string;
171
171
  }
172
+
173
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
174
+
175
+ export interface InitOutput {
176
+ readonly memory: WebAssembly.Memory;
177
+ readonly __wbg_cedarling_free: (a: number, b: number) => void;
178
+ readonly init: (a: any) => any;
179
+ readonly cedarling_new: (a: any) => any;
180
+ readonly cedarling_new_from_map: (a: any) => any;
181
+ readonly cedarling_authorize: (a: number, b: any) => any;
182
+ readonly cedarling_authorize_unsigned: (a: number, b: any) => any;
183
+ readonly cedarling_pop_logs: (a: number) => [number, number, number];
184
+ readonly cedarling_get_log_by_id: (a: number, b: number, c: number) => [number, number, number];
185
+ readonly cedarling_get_log_ids: (a: number) => any;
186
+ readonly cedarling_get_logs_by_tag: (a: number, b: number, c: number) => [number, number, number, number];
187
+ readonly cedarling_get_logs_by_request_id: (a: number, b: number, c: number) => [number, number, number, number];
188
+ readonly cedarling_get_logs_by_request_id_and_tag: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
189
+ readonly cedarling_shut_down: (a: number) => any;
190
+ readonly __wbg_authorizeresult_free: (a: number, b: number) => void;
191
+ readonly __wbg_get_authorizeresult_workload: (a: number) => number;
192
+ readonly __wbg_set_authorizeresult_workload: (a: number, b: number) => void;
193
+ readonly __wbg_get_authorizeresult_person: (a: number) => number;
194
+ readonly __wbg_set_authorizeresult_person: (a: number, b: number) => void;
195
+ readonly __wbg_get_authorizeresult_decision: (a: number) => number;
196
+ readonly __wbg_set_authorizeresult_decision: (a: number, b: number) => void;
197
+ readonly __wbg_get_authorizeresult_request_id: (a: number) => [number, number];
198
+ readonly __wbg_set_authorizeresult_request_id: (a: number, b: number, c: number) => void;
199
+ readonly authorizeresult_json_string: (a: number) => [number, number];
200
+ readonly authorizeresult_principal: (a: number, b: number, c: number) => number;
201
+ readonly __wbg_authorizeresultresponse_free: (a: number, b: number) => void;
202
+ readonly authorizeresultresponse_decision: (a: number) => number;
203
+ readonly authorizeresultresponse_diagnostics: (a: number) => number;
204
+ readonly __wbg_diagnostics_free: (a: number, b: number) => void;
205
+ readonly diagnostics_reason: (a: number) => [number, number];
206
+ readonly diagnostics_errors: (a: number) => [number, number];
207
+ readonly __wbg_policyevaluationerror_free: (a: number, b: number) => void;
208
+ readonly policyevaluationerror_id: (a: number) => [number, number];
209
+ readonly policyevaluationerror_error: (a: number) => [number, number];
210
+ readonly __wbg_jsjsonlogic_free: (a: number, b: number) => void;
211
+ readonly jsjsonlogic_new: () => number;
212
+ readonly jsjsonlogic_apply: (a: number, b: any, c: any) => [number, number, number];
213
+ readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
214
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
215
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
216
+ readonly __wbindgen_exn_store: (a: number) => void;
217
+ readonly __externref_table_alloc: () => number;
218
+ readonly __wbindgen_export_4: WebAssembly.Table;
219
+ readonly __wbindgen_export_5: WebAssembly.Table;
220
+ readonly __externref_table_dealloc: (a: number) => void;
221
+ readonly __externref_drop_slice: (a: number, b: number) => void;
222
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
223
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb6b52a9d17ca9899: (a: number, b: number) => void;
224
+ readonly closure508_externref_shim: (a: number, b: number, c: any) => void;
225
+ readonly closure1774_externref_shim: (a: number, b: number, c: any, d: any) => void;
226
+ readonly __wbindgen_start: () => void;
227
+ }
228
+
229
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
230
+ /**
231
+ * Instantiates the given `module`, which can either be bytes or
232
+ * a precompiled `WebAssembly.Module`.
233
+ *
234
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
235
+ *
236
+ * @returns {InitOutput}
237
+ */
238
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
239
+
240
+ /**
241
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
242
+ * for everything else, calls `WebAssembly.instantiate` directly.
243
+ *
244
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
245
+ *
246
+ * @returns {Promise<InitOutput>}
247
+ */
248
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;