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