@janssenproject/cedarling_wasm 0.0.479 → 0.0.481

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.
@@ -605,6 +605,23 @@ export class Cedarling {
605
605
  * ```
606
606
  */
607
607
  static new(config: object): Promise<Cedarling>;
608
+ /**
609
+ * Get the ID of the currently published policy store, if it carries one.
610
+ *
611
+ * `undefined` means the store carries no ID. The value is an opaque,
612
+ * source-dependent string; it may change after a background refresh.
613
+ *
614
+ * # Arguments
615
+ *
616
+ * None.
617
+ *
618
+ * # Example
619
+ *
620
+ * ```javascript
621
+ * const id = cedarling.policyStoreId();
622
+ * ```
623
+ */
624
+ policyStoreId(): string | undefined;
608
625
  /**
609
626
  * Returns all retained memory logs and removes them from storage.
610
627
  * Other log configurations return an empty array.
@@ -1079,6 +1096,7 @@ export interface InitOutput {
1079
1096
  readonly cedarling_loadedTrustedIssuersCount: (a: number) => number;
1080
1097
  readonly cedarling_new: (a: number) => number;
1081
1098
  readonly cedarling_newFromMap: (a: number) => number;
1099
+ readonly cedarling_policyStoreId: (a: number, b: number) => void;
1082
1100
  readonly cedarling_popLogs: (a: number, b: number) => void;
1083
1101
  readonly cedarling_pushDataCtx: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint) => void;
1084
1102
  readonly cedarling_removeDataCtx: (a: number, b: number, c: number, d: number) => void;
@@ -1113,10 +1131,10 @@ export interface InitOutput {
1113
1131
  readonly multiissuerauthorizeresult_jsonString: (a: number, b: number) => void;
1114
1132
  readonly policyevaluationerror_error: (a: number, b: number) => void;
1115
1133
  readonly policyevaluationerror_id: (a: number, b: number) => void;
1116
- readonly __wasm_bindgen_func_elem_8933: (a: number, b: number, c: number, d: number) => void;
1117
- readonly __wasm_bindgen_func_elem_8988: (a: number, b: number, c: number, d: number) => void;
1118
- readonly __wasm_bindgen_func_elem_12493: (a: number, b: number, c: number) => void;
1119
- readonly __wasm_bindgen_func_elem_8767: (a: number, b: number) => void;
1134
+ readonly __wasm_bindgen_func_elem_8936: (a: number, b: number, c: number, d: number) => void;
1135
+ readonly __wasm_bindgen_func_elem_8991: (a: number, b: number, c: number, d: number) => void;
1136
+ readonly __wasm_bindgen_func_elem_12496: (a: number, b: number, c: number) => void;
1137
+ readonly __wasm_bindgen_func_elem_8770: (a: number, b: number) => void;
1120
1138
  readonly __wbindgen_export: (a: number, b: number) => number;
1121
1139
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
1122
1140
  readonly __wbindgen_export3: (a: number) => void;
@@ -605,6 +605,23 @@ export class Cedarling {
605
605
  * ```
606
606
  */
607
607
  static new(config: object): Promise<Cedarling>;
608
+ /**
609
+ * Get the ID of the currently published policy store, if it carries one.
610
+ *
611
+ * `undefined` means the store carries no ID. The value is an opaque,
612
+ * source-dependent string; it may change after a background refresh.
613
+ *
614
+ * # Arguments
615
+ *
616
+ * None.
617
+ *
618
+ * # Example
619
+ *
620
+ * ```javascript
621
+ * const id = cedarling.policyStoreId();
622
+ * ```
623
+ */
624
+ policyStoreId(): string | undefined;
608
625
  /**
609
626
  * Returns all retained memory logs and removes them from storage.
610
627
  * Other log configurations return an empty array.
@@ -1079,6 +1096,7 @@ export interface InitOutput {
1079
1096
  readonly cedarling_loadedTrustedIssuersCount: (a: number) => number;
1080
1097
  readonly cedarling_new: (a: number) => number;
1081
1098
  readonly cedarling_newFromMap: (a: number) => number;
1099
+ readonly cedarling_policyStoreId: (a: number, b: number) => void;
1082
1100
  readonly cedarling_popLogs: (a: number, b: number) => void;
1083
1101
  readonly cedarling_pushDataCtx: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint) => void;
1084
1102
  readonly cedarling_removeDataCtx: (a: number, b: number, c: number, d: number) => void;
@@ -1113,10 +1131,10 @@ export interface InitOutput {
1113
1131
  readonly multiissuerauthorizeresult_jsonString: (a: number, b: number) => void;
1114
1132
  readonly policyevaluationerror_error: (a: number, b: number) => void;
1115
1133
  readonly policyevaluationerror_id: (a: number, b: number) => void;
1116
- readonly __wasm_bindgen_func_elem_8933: (a: number, b: number, c: number, d: number) => void;
1117
- readonly __wasm_bindgen_func_elem_8988: (a: number, b: number, c: number, d: number) => void;
1118
- readonly __wasm_bindgen_func_elem_12493: (a: number, b: number, c: number) => void;
1119
- readonly __wasm_bindgen_func_elem_8767: (a: number, b: number) => void;
1134
+ readonly __wasm_bindgen_func_elem_8936: (a: number, b: number, c: number, d: number) => void;
1135
+ readonly __wasm_bindgen_func_elem_8991: (a: number, b: number, c: number, d: number) => void;
1136
+ readonly __wasm_bindgen_func_elem_12496: (a: number, b: number, c: number) => void;
1137
+ readonly __wasm_bindgen_func_elem_8770: (a: number, b: number) => void;
1120
1138
  readonly __wbindgen_export: (a: number, b: number) => number;
1121
1139
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
1122
1140
  readonly __wbindgen_export3: (a: number) => void;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@janssenproject/cedarling_wasm",
3
- "version": "0.0.479",
3
+ "version": "0.0.481",
4
4
  "description": "Cedarling authorization for JavaScript, TypeScript, Node.js, browsers, and edge runtimes.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",