@janssenproject/cedarling_wasm 1.11.0 → 1.12.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.
@@ -12,6 +12,7 @@ export function init(config: any): Promise<Cedarling>;
12
12
  export class AuthorizeResult {
13
13
  private constructor();
14
14
  free(): void;
15
+ [Symbol.dispose](): void;
15
16
  /**
16
17
  * Convert `AuthorizeResult` to json string value
17
18
  */
@@ -53,6 +54,7 @@ export class AuthorizeResult {
53
54
  export class AuthorizeResultResponse {
54
55
  private constructor();
55
56
  free(): void;
57
+ [Symbol.dispose](): void;
56
58
  /**
57
59
  * Authorization decision
58
60
  */
@@ -68,6 +70,7 @@ export class AuthorizeResultResponse {
68
70
  export class Cedarling {
69
71
  private constructor();
70
72
  free(): void;
73
+ [Symbol.dispose](): void;
71
74
  /**
72
75
  * Create a new instance of the Cedarling application.
73
76
  * Assume that config is `Object`
@@ -133,6 +136,7 @@ export class Cedarling {
133
136
  export class Diagnostics {
134
137
  private constructor();
135
138
  free(): void;
139
+ [Symbol.dispose](): void;
136
140
  /**
137
141
  * `PolicyId`s of the policies that contributed to the decision.
138
142
  * If no policies applied to the request, this set will be empty.
@@ -148,6 +152,7 @@ export class Diagnostics {
148
152
  }
149
153
  export class JsJsonLogic {
150
154
  free(): void;
155
+ [Symbol.dispose](): void;
151
156
  constructor();
152
157
  apply(logic: any, data: any): any;
153
158
  }
@@ -160,6 +165,7 @@ export class JsJsonLogic {
160
165
  export class PolicyEvaluationError {
161
166
  private constructor();
162
167
  free(): void;
168
+ [Symbol.dispose](): void;
163
169
  /**
164
170
  * Id of the policy with an error
165
171
  */
@@ -169,80 +175,3 @@ export class PolicyEvaluationError {
169
175
  */
170
176
  readonly error: string;
171
177
  }
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 wasm_bindgen__convert__closures_____invoke__ha606d566df222057: (a: number, b: number) => void;
224
- readonly closure545_externref_shim: (a: number, b: number, c: any) => void;
225
- readonly closure1825_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>;