axiam-sdk-wasm 1.0.0-alpha31 → 1.0.0-alpha35

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/README.md CHANGED
@@ -17,8 +17,8 @@ const client = new AxiamWasmClient(
17
17
  "default", // tenant slug
18
18
  );
19
19
 
20
- // SRP login — the password never leaves the browser.
21
- await client.loginSrp("alice", "correct horse battery staple");
20
+ // OPAQUE login — the password never leaves the browser.
21
+ await client.loginOpaque("alice", "correct horse battery staple");
22
22
 
23
23
  if (await client.can("documents:read", "3f8a…-uuid")) {
24
24
  renderDocument();
@@ -39,7 +39,7 @@ the TypeScript SDK. They are different trade-offs:
39
39
  | Shares code with | itself | the Rust server and SDK |
40
40
 
41
41
  Reach for this one when you want the *same* implementation the Rust SDK and
42
- the AXIAM server run — the SRP arithmetic, the JWKS verifier, the decision memo
42
+ the AXIAM server run — the OPAQUE implementation, the JWKS verifier, the decision memo
43
43
  are literally the same compiled code, not a second implementation that has to be
44
44
  kept in agreement. Reach for the TypeScript SDK when payload size matters, which
45
45
  for most web applications it does.
@@ -48,9 +48,9 @@ for most web applications it does.
48
48
 
49
49
  Everything the Rust SDK's REST surface offers:
50
50
 
51
- - `login`, `loginSrp`, `verifyMfa`, `refresh`, `logout`
51
+ - `login`, `loginOpaque`, `verifyMfa`, `refresh`, `logout`
52
52
  - `checkAccess`, `can`, `batchCheck` (with the client-side decision memo)
53
- - `srpEnrollment`, `srpAvailable`
53
+ - `opaqueEnrollment`, `opaqueAvailable`
54
54
  - local JWKS verification and the §12 OIDC relying-party helpers
55
55
 
56
56
  ## What is not, and why
@@ -81,20 +81,20 @@ same-origin with the AXIAM API, or configure the API to send
81
81
  without credentials carries no session and every call 401s — which looks like a
82
82
  broken login and is actually a CORS configuration.
83
83
 
84
- ## SRP in a browser: the honest limit
84
+ ## OPAQUE in a browser: the honest limit
85
85
 
86
- `loginSrp` keeps the password inside the wasm module. A TLS-terminating proxy,
86
+ `loginOpaque` keeps the password inside the wasm module. A TLS-terminating proxy,
87
87
  an accidentally verbose access log, or a server-side heap dump never sees it,
88
88
  because the server never has it.
89
89
 
90
90
  It does **not** protect you against a compromised AXIAM server. That server also
91
91
  serves the page that loads this module, and could serve one that posts the
92
- password instead. Browser SRP defends against the infrastructure between you and
92
+ password instead. Browser OPAQUE defends against the infrastructure between you and
93
93
  AXIAM, not against AXIAM. Do not tell your users otherwise.
94
94
 
95
95
  ### It blocks
96
96
 
97
- `loginSrp` runs the tenant's KDF — Argon2id at 19 MiB by default. That is tens
97
+ `loginOpaque` runs the tenant's KDF — Argon2id at 19 MiB by default. That is tens
98
98
  to hundreds of milliseconds of synchronous work, and the cost is the point: it
99
99
  is what makes a stolen verifier expensive to attack offline. In a page that must
100
100
  stay responsive, run this module in a Web Worker.
@@ -112,7 +112,7 @@ node scripts/wasm-smoke.mjs pkg-node
112
112
  ```
113
113
 
114
114
  The smoke test is not optional ceremony. It imports the built artifact and
115
- reproduces the cross-language SRP vectors *through* it, because "wasm-pack
115
+ runs a complete OPAQUE exchange *through* it, because "wasm-pack
116
116
  succeeded" is not evidence that the module works — see the `wasm-opt` note in
117
117
  `Cargo.toml` for the concrete case where it built cleanly and was broken.
118
118
 
@@ -12,7 +12,7 @@
12
12
  *
13
13
  * await init();
14
14
  * const client = new AxiamWasmClient("https://axiam.example", "acme", "default");
15
- * await client.loginSrp("alice", "correct horse battery staple");
15
+ * await client.loginOpaque("alice", "correct horse battery staple");
16
16
  * const decision = await client.can("documents:read", "doc-42");
17
17
  * ```
18
18
  */
@@ -50,27 +50,28 @@ export class AxiamWasmClient {
50
50
  /**
51
51
  * `POST /api/v1/auth/login` — password login.
52
52
  *
53
- * Prefer [`Self::loginSrp`] where the tenant offers it: this method puts
53
+ * Prefer [`Self::loginOpaque`] where the tenant offers it: this method puts
54
54
  * the password in the request body, where every TLS-terminating hop
55
55
  * between the browser and AXIAM can read it.
56
56
  */
57
57
  login(username_or_email: string, password: string): Promise<any>;
58
58
  /**
59
- * SRP-6a login (CONTRACT.md §23) — the password never leaves this module.
59
+ * OPAQUE login (CONTRACT.md §23) — the password never leaves this module.
60
60
  *
61
61
  * Returns the same shape as [`Self::login`], including the MFA-challenge
62
62
  * case, so one result handler serves both.
63
63
  *
64
- * Rejects with a message naming SRP when the tenant has it disabled, so a
65
- * caller can fall back to [`Self::login`] rather than mistaking it for a
66
- * bad password.
64
+ * Rejects with a message naming OPAQUE when the tenant has it disabled,
65
+ * so a caller can fall back to [`Self::login`] rather than mistaking it
66
+ * for a bad password.
67
67
  *
68
- * **This blocks the thread it runs on** for the duration of the KDF —
69
- * tens to hundreds of milliseconds at Argon2id's default parameters,
70
- * which is the cost that makes a stolen verifier expensive to attack. In
71
- * a page that must stay responsive, run this module in a Web Worker.
68
+ * **This blocks the thread it runs on** for the duration of the
69
+ * key-stretching function — tens to hundreds of milliseconds at
70
+ * Argon2id's default parameters, which is the cost that makes a stolen
71
+ * record expensive to attack. In a page that must stay responsive, run
72
+ * this module in a Web Worker.
72
73
  */
73
- loginSrp(username_or_email: string, password: string): Promise<any>;
74
+ loginOpaque(username_or_email: string, password: string): Promise<any>;
74
75
  /**
75
76
  * `POST /api/v1/auth/logout`.
76
77
  */
@@ -87,30 +88,34 @@ export class AxiamWasmClient {
87
88
  */
88
89
  constructor(base_url: string, org_slug: string, tenant_slug: string);
89
90
  /**
90
- * `POST /api/v1/auth/refresh` — rotate the session.
91
- *
92
- * Single-flight: concurrent callers coalesce onto one request, exactly as
93
- * in the native SDK (§9 rule 6).
91
+ * Whether this build can perform OPAQUE. Always `true` here — the
92
+ * implementation is compiled into the module.
94
93
  */
95
- refresh(): Promise<void>;
94
+ opaqueAvailable(): boolean;
96
95
  /**
97
- * Whether this build can perform SRP. Always `true` here — both KDFs and
98
- * all three groups are compiled in.
96
+ * Build an OPAQUE registration record for a password, to send with any
97
+ * request that sets one (user creation, change-password, reset
98
+ * completion).
99
+ *
100
+ * Performs a `register/start` round trip, which the SRP verifier this
101
+ * replaces did not need: the envelope is sealed under the server's
102
+ * oblivious PRF, so there is no offline computation that produces a valid
103
+ * record.
104
+ *
105
+ * Note the absence of the four arguments the SRP version required. There
106
+ * is no `identity` — a record binds to a credential identifier the server
107
+ * chooses, so passing an email can no longer produce something no login
108
+ * can satisfy — and no `group`/`kdf`/cost parameters, because the server
109
+ * names them in its response and this method honours what it names.
99
110
  */
100
- srpAvailable(): boolean;
111
+ opaqueEnrollment(password: string): Promise<any>;
101
112
  /**
102
- * Compute an SRP verifier for a password, to send with any request that
103
- * sets one (user creation, change-password, reset completion).
104
- *
105
- * `identity` MUST be the account's **username** — the canonical identity
106
- * the challenge endpoint hands back. Passing an email produces a verifier
107
- * no login can ever satisfy.
113
+ * `POST /api/v1/auth/refresh` — rotate the session.
108
114
  *
109
- * `group` and `kdf` come from the tenant's policy, which
110
- * `GET /api/v1/auth/me` reports for an authenticated caller and
111
- * `GET /api/v1/auth/reset/context` reports for a reset-token holder.
115
+ * Single-flight: concurrent callers coalesce onto one request, exactly as
116
+ * in the native SDK (§9 rule 6).
112
117
  */
113
- srpEnrollment(identity: string, password: string, group: string, kdf: string, iterations: number, memory_kib?: number | null, parallelism?: number | null): any;
118
+ refresh(): Promise<void>;
114
119
  /**
115
120
  * `POST /api/v1/auth/mfa/verify` — complete a login that returned
116
121
  * `mfaRequired`.
@@ -119,26 +124,29 @@ export class AxiamWasmClient {
119
124
  }
120
125
 
121
126
  /**
122
- * Compute a verifier from a **fixed** `x`, for conformance testing.
127
+ * Run a complete OPAQUE registration and login inside this module, for
128
+ * conformance testing.
123
129
  *
124
- * # This is for the shared vectors, and nothing else
130
+ * # This is for the smoke test, and nothing else
125
131
  *
126
- * `srpEnrollment` generates a random salt, as it must — so it cannot be
127
- * checked against `srp-test-vectors.json`, whose entries pin `x` directly.
128
- * Without this export, the only thing a test could assert about the *shipped
129
- * artifact* is that it loads and returns plausibly-shaped strings.
132
+ * Its SRP predecessor computed a verifier from a fixed `x` so that
133
+ * `scripts/wasm-smoke.mjs` could reproduce the shared vectors exactly. OPAQUE
134
+ * has no fixed-`x` equivalent — the blind is generated inside the protocol and
135
+ * is not injectable — so the check takes the other available shape: perform
136
+ * both halves of a real exchange and assert they agree.
130
137
  *
131
- * That distinction is not academic: an old `binaryen` silently miscompiles
138
+ * That distinction is not academic. An old `binaryen` silently miscompiles
132
139
  * this module (see `Cargo.toml`), and "it built" is not evidence that the
133
- * arithmetic inside survived. This lets `scripts/wasm-smoke.mjs` reproduce the
134
- * contract's verifiers exactly, from the artifact that is about to be
135
- * published.
140
+ * elliptic-curve arithmetic inside survived. A round trip that completes is:
141
+ * a miscompiled scalar multiplication produces an envelope that will not open.
142
+ *
143
+ * Returns `true` on success and throws on failure, so a smoke test can assert
144
+ * on either.
136
145
  *
137
- * **Never call this in application code.** `x` is the password's derivative;
138
- * an application that has it has already done the work `srpEnrollment` exists
139
- * to do, and should use that instead.
146
+ * **Never call this in application code.** It talks to no server and
147
+ * authenticates nobody.
140
148
  */
141
- export function __conformanceVerifier(group: string, x_hex: string): string;
149
+ export function __conformanceRoundTrip(): boolean;
142
150
 
143
151
  /**
144
152
  * The version of `axiam-sdk` this package wraps.
package/axiam_sdk_wasm.js CHANGED
@@ -5,5 +5,5 @@ import { __wbg_set_wasm } from "./axiam_sdk_wasm_bg.js";
5
5
  __wbg_set_wasm(wasm);
6
6
  wasm.__wbindgen_start();
7
7
  export {
8
- AxiamWasmClient, __conformanceVerifier, sdkVersion
8
+ AxiamWasmClient, __conformanceRoundTrip, sdkVersion
9
9
  } from "./axiam_sdk_wasm_bg.js";
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * await init();
11
11
  * const client = new AxiamWasmClient("https://axiam.example", "acme", "default");
12
- * await client.loginSrp("alice", "correct horse battery staple");
12
+ * await client.loginOpaque("alice", "correct horse battery staple");
13
13
  * const decision = await client.can("documents:read", "doc-42");
14
14
  * ```
15
15
  */
@@ -90,7 +90,7 @@ export class AxiamWasmClient {
90
90
  /**
91
91
  * `POST /api/v1/auth/login` — password login.
92
92
  *
93
- * Prefer [`Self::loginSrp`] where the tenant offers it: this method puts
93
+ * Prefer [`Self::loginOpaque`] where the tenant offers it: this method puts
94
94
  * the password in the request body, where every TLS-terminating hop
95
95
  * between the browser and AXIAM can read it.
96
96
  * @param {string} username_or_email
@@ -106,29 +106,30 @@ export class AxiamWasmClient {
106
106
  return ret;
107
107
  }
108
108
  /**
109
- * SRP-6a login (CONTRACT.md §23) — the password never leaves this module.
109
+ * OPAQUE login (CONTRACT.md §23) — the password never leaves this module.
110
110
  *
111
111
  * Returns the same shape as [`Self::login`], including the MFA-challenge
112
112
  * case, so one result handler serves both.
113
113
  *
114
- * Rejects with a message naming SRP when the tenant has it disabled, so a
115
- * caller can fall back to [`Self::login`] rather than mistaking it for a
116
- * bad password.
114
+ * Rejects with a message naming OPAQUE when the tenant has it disabled,
115
+ * so a caller can fall back to [`Self::login`] rather than mistaking it
116
+ * for a bad password.
117
117
  *
118
- * **This blocks the thread it runs on** for the duration of the KDF —
119
- * tens to hundreds of milliseconds at Argon2id's default parameters,
120
- * which is the cost that makes a stolen verifier expensive to attack. In
121
- * a page that must stay responsive, run this module in a Web Worker.
118
+ * **This blocks the thread it runs on** for the duration of the
119
+ * key-stretching function — tens to hundreds of milliseconds at
120
+ * Argon2id's default parameters, which is the cost that makes a stolen
121
+ * record expensive to attack. In a page that must stay responsive, run
122
+ * this module in a Web Worker.
122
123
  * @param {string} username_or_email
123
124
  * @param {string} password
124
125
  * @returns {Promise<any>}
125
126
  */
126
- loginSrp(username_or_email, password) {
127
+ loginOpaque(username_or_email, password) {
127
128
  const ptr0 = passStringToWasm0(username_or_email, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
128
129
  const len0 = WASM_VECTOR_LEN;
129
130
  const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
130
131
  const len1 = WASM_VECTOR_LEN;
131
- const ret = wasm.axiamwasmclient_loginSrp(this.__wbg_ptr, ptr0, len0, ptr1, len1);
132
+ const ret = wasm.axiamwasmclient_loginOpaque(this.__wbg_ptr, ptr0, len0, ptr1, len1);
132
133
  return ret;
133
134
  }
134
135
  /**
@@ -168,59 +169,48 @@ export class AxiamWasmClient {
168
169
  return this;
169
170
  }
170
171
  /**
171
- * `POST /api/v1/auth/refresh` — rotate the session.
172
- *
173
- * Single-flight: concurrent callers coalesce onto one request, exactly as
174
- * in the native SDK (§9 rule 6).
175
- * @returns {Promise<void>}
176
- */
177
- refresh() {
178
- const ret = wasm.axiamwasmclient_refresh(this.__wbg_ptr);
179
- return ret;
180
- }
181
- /**
182
- * Whether this build can perform SRP. Always `true` here — both KDFs and
183
- * all three groups are compiled in.
172
+ * Whether this build can perform OPAQUE. Always `true` here — the
173
+ * implementation is compiled into the module.
184
174
  * @returns {boolean}
185
175
  */
186
- srpAvailable() {
187
- const ret = wasm.axiamwasmclient_srpAvailable(this.__wbg_ptr);
176
+ opaqueAvailable() {
177
+ const ret = wasm.axiamwasmclient_opaqueAvailable(this.__wbg_ptr);
188
178
  return ret !== 0;
189
179
  }
190
180
  /**
191
- * Compute an SRP verifier for a password, to send with any request that
192
- * sets one (user creation, change-password, reset completion).
181
+ * Build an OPAQUE registration record for a password, to send with any
182
+ * request that sets one (user creation, change-password, reset
183
+ * completion).
193
184
  *
194
- * `identity` MUST be the account's **username** — the canonical identity
195
- * the challenge endpoint hands back. Passing an email produces a verifier
196
- * no login can ever satisfy.
185
+ * Performs a `register/start` round trip, which the SRP verifier this
186
+ * replaces did not need: the envelope is sealed under the server's
187
+ * oblivious PRF, so there is no offline computation that produces a valid
188
+ * record.
197
189
  *
198
- * `group` and `kdf` come from the tenant's policy, which
199
- * `GET /api/v1/auth/me` reports for an authenticated caller and
200
- * `GET /api/v1/auth/reset/context` reports for a reset-token holder.
201
- * @param {string} identity
190
+ * Note the absence of the four arguments the SRP version required. There
191
+ * is no `identity` — a record binds to a credential identifier the server
192
+ * chooses, so passing an email can no longer produce something no login
193
+ * can satisfy — and no `group`/`kdf`/cost parameters, because the server
194
+ * names them in its response and this method honours what it names.
202
195
  * @param {string} password
203
- * @param {string} group
204
- * @param {string} kdf
205
- * @param {number} iterations
206
- * @param {number | null} [memory_kib]
207
- * @param {number | null} [parallelism]
208
- * @returns {any}
196
+ * @returns {Promise<any>}
209
197
  */
210
- srpEnrollment(identity, password, group, kdf, iterations, memory_kib, parallelism) {
211
- const ptr0 = passStringToWasm0(identity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
198
+ opaqueEnrollment(password) {
199
+ const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
212
200
  const len0 = WASM_VECTOR_LEN;
213
- const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
214
- const len1 = WASM_VECTOR_LEN;
215
- const ptr2 = passStringToWasm0(group, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
216
- const len2 = WASM_VECTOR_LEN;
217
- const ptr3 = passStringToWasm0(kdf, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
218
- const len3 = WASM_VECTOR_LEN;
219
- const ret = wasm.axiamwasmclient_srpEnrollment(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, iterations, isLikeNone(memory_kib) ? Number.MAX_SAFE_INTEGER : (memory_kib) >>> 0, isLikeNone(parallelism) ? Number.MAX_SAFE_INTEGER : (parallelism) >>> 0);
220
- if (ret[2]) {
221
- throw takeFromExternrefTable0(ret[1]);
222
- }
223
- return takeFromExternrefTable0(ret[0]);
201
+ const ret = wasm.axiamwasmclient_opaqueEnrollment(this.__wbg_ptr, ptr0, len0);
202
+ return ret;
203
+ }
204
+ /**
205
+ * `POST /api/v1/auth/refresh` — rotate the session.
206
+ *
207
+ * Single-flight: concurrent callers coalesce onto one request, exactly as
208
+ * in the native SDK (§9 rule 6).
209
+ * @returns {Promise<void>}
210
+ */
211
+ refresh() {
212
+ const ret = wasm.axiamwasmclient_refresh(this.__wbg_ptr);
213
+ return ret;
224
214
  }
225
215
  /**
226
216
  * `POST /api/v1/auth/mfa/verify` — complete a login that returned
@@ -238,49 +228,35 @@ export class AxiamWasmClient {
238
228
  if (Symbol.dispose) AxiamWasmClient.prototype[Symbol.dispose] = AxiamWasmClient.prototype.free;
239
229
 
240
230
  /**
241
- * Compute a verifier from a **fixed** `x`, for conformance testing.
231
+ * Run a complete OPAQUE registration and login inside this module, for
232
+ * conformance testing.
242
233
  *
243
- * # This is for the shared vectors, and nothing else
234
+ * # This is for the smoke test, and nothing else
244
235
  *
245
- * `srpEnrollment` generates a random salt, as it must — so it cannot be
246
- * checked against `srp-test-vectors.json`, whose entries pin `x` directly.
247
- * Without this export, the only thing a test could assert about the *shipped
248
- * artifact* is that it loads and returns plausibly-shaped strings.
236
+ * Its SRP predecessor computed a verifier from a fixed `x` so that
237
+ * `scripts/wasm-smoke.mjs` could reproduce the shared vectors exactly. OPAQUE
238
+ * has no fixed-`x` equivalent — the blind is generated inside the protocol and
239
+ * is not injectable — so the check takes the other available shape: perform
240
+ * both halves of a real exchange and assert they agree.
249
241
  *
250
- * That distinction is not academic: an old `binaryen` silently miscompiles
242
+ * That distinction is not academic. An old `binaryen` silently miscompiles
251
243
  * this module (see `Cargo.toml`), and "it built" is not evidence that the
252
- * arithmetic inside survived. This lets `scripts/wasm-smoke.mjs` reproduce the
253
- * contract's verifiers exactly, from the artifact that is about to be
254
- * published.
244
+ * elliptic-curve arithmetic inside survived. A round trip that completes is:
245
+ * a miscompiled scalar multiplication produces an envelope that will not open.
255
246
  *
256
- * **Never call this in application code.** `x` is the password's derivative;
257
- * an application that has it has already done the work `srpEnrollment` exists
258
- * to do, and should use that instead.
259
- * @param {string} group
260
- * @param {string} x_hex
261
- * @returns {string}
247
+ * Returns `true` on success and throws on failure, so a smoke test can assert
248
+ * on either.
249
+ *
250
+ * **Never call this in application code.** It talks to no server and
251
+ * authenticates nobody.
252
+ * @returns {boolean}
262
253
  */
263
- export function __conformanceVerifier(group, x_hex) {
264
- let deferred4_0;
265
- let deferred4_1;
266
- try {
267
- const ptr0 = passStringToWasm0(group, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
268
- const len0 = WASM_VECTOR_LEN;
269
- const ptr1 = passStringToWasm0(x_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
270
- const len1 = WASM_VECTOR_LEN;
271
- const ret = wasm.__conformanceVerifier(ptr0, len0, ptr1, len1);
272
- var ptr3 = ret[0];
273
- var len3 = ret[1];
274
- if (ret[3]) {
275
- ptr3 = 0; len3 = 0;
276
- throw takeFromExternrefTable0(ret[2]);
277
- }
278
- deferred4_0 = ptr3;
279
- deferred4_1 = len3;
280
- return getStringFromWasm0(ptr3, len3);
281
- } finally {
282
- wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
254
+ export function __conformanceRoundTrip() {
255
+ const ret = wasm.__conformanceRoundTrip();
256
+ if (ret[2]) {
257
+ throw takeFromExternrefTable0(ret[1]);
283
258
  }
259
+ return ret[0] !== 0;
284
260
  }
285
261
 
286
262
  /**
@@ -545,7 +521,7 @@ export function __wbg_new_typed_cceaf62d8d95e9f2(arg0, arg1) {
545
521
  const a = state0.a;
546
522
  state0.a = 0;
547
523
  try {
548
- return wasm_bindgen_6971d5a3494a1047___convert__closures_____invoke___js_sys_e8852f8f4f778035___Function_fn_wasm_bindgen_6971d5a3494a1047___JsValue_____wasm_bindgen_6971d5a3494a1047___sys__Undefined___js_sys_e8852f8f4f778035___Function_fn_wasm_bindgen_6971d5a3494a1047___JsValue_____wasm_bindgen_6971d5a3494a1047___sys__Undefined_______true_(a, state0.b, arg0, arg1);
524
+ return wasm_bindgen_cb9419483d5fb0a0___convert__closures_____invoke___js_sys_56a029a60590d6b7___Function_fn_wasm_bindgen_cb9419483d5fb0a0___JsValue_____wasm_bindgen_cb9419483d5fb0a0___sys__Undefined___js_sys_56a029a60590d6b7___Function_fn_wasm_bindgen_cb9419483d5fb0a0___JsValue_____wasm_bindgen_cb9419483d5fb0a0___sys__Undefined_______true_(a, state0.b, arg0, arg1);
549
525
  } finally {
550
526
  state0.a = a;
551
527
  }
@@ -703,13 +679,13 @@ export function __wbg_versions_276b2795b1c6a219(arg0) {
703
679
  return ret;
704
680
  }
705
681
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
706
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 504, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
707
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_6971d5a3494a1047___convert__closures_____invoke___wasm_bindgen_6971d5a3494a1047___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_6971d5a3494a1047___JsError___true_);
682
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 520, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
683
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_cb9419483d5fb0a0___convert__closures_____invoke___wasm_bindgen_cb9419483d5fb0a0___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_cb9419483d5fb0a0___JsError___true_);
708
684
  return ret;
709
685
  }
710
686
  export function __wbindgen_cast_0000000000000002(arg0, arg1) {
711
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 157, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
712
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_6971d5a3494a1047___convert__closures_____invoke_______true_);
687
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 164, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
688
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_cb9419483d5fb0a0___convert__closures_____invoke_______true_);
713
689
  return ret;
714
690
  }
715
691
  export function __wbindgen_cast_0000000000000003(arg0) {
@@ -741,19 +717,19 @@ export function __wbindgen_init_externref_table() {
741
717
  table.set(offset + 2, true);
742
718
  table.set(offset + 3, false);
743
719
  }
744
- function wasm_bindgen_6971d5a3494a1047___convert__closures_____invoke_______true_(arg0, arg1) {
745
- wasm.wasm_bindgen_6971d5a3494a1047___convert__closures_____invoke_______true_(arg0, arg1);
720
+ function wasm_bindgen_cb9419483d5fb0a0___convert__closures_____invoke_______true_(arg0, arg1) {
721
+ wasm.wasm_bindgen_cb9419483d5fb0a0___convert__closures_____invoke_______true_(arg0, arg1);
746
722
  }
747
723
 
748
- function wasm_bindgen_6971d5a3494a1047___convert__closures_____invoke___wasm_bindgen_6971d5a3494a1047___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_6971d5a3494a1047___JsError___true_(arg0, arg1, arg2) {
749
- const ret = wasm.wasm_bindgen_6971d5a3494a1047___convert__closures_____invoke___wasm_bindgen_6971d5a3494a1047___JsValue__core_9b3796e30d99ddb7___result__Result_____wasm_bindgen_6971d5a3494a1047___JsError___true_(arg0, arg1, arg2);
724
+ function wasm_bindgen_cb9419483d5fb0a0___convert__closures_____invoke___wasm_bindgen_cb9419483d5fb0a0___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_cb9419483d5fb0a0___JsError___true_(arg0, arg1, arg2) {
725
+ const ret = wasm.wasm_bindgen_cb9419483d5fb0a0___convert__closures_____invoke___wasm_bindgen_cb9419483d5fb0a0___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_cb9419483d5fb0a0___JsError___true_(arg0, arg1, arg2);
750
726
  if (ret[1]) {
751
727
  throw takeFromExternrefTable0(ret[0]);
752
728
  }
753
729
  }
754
730
 
755
- function wasm_bindgen_6971d5a3494a1047___convert__closures_____invoke___js_sys_e8852f8f4f778035___Function_fn_wasm_bindgen_6971d5a3494a1047___JsValue_____wasm_bindgen_6971d5a3494a1047___sys__Undefined___js_sys_e8852f8f4f778035___Function_fn_wasm_bindgen_6971d5a3494a1047___JsValue_____wasm_bindgen_6971d5a3494a1047___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
756
- wasm.wasm_bindgen_6971d5a3494a1047___convert__closures_____invoke___js_sys_e8852f8f4f778035___Function_fn_wasm_bindgen_6971d5a3494a1047___JsValue_____wasm_bindgen_6971d5a3494a1047___sys__Undefined___js_sys_e8852f8f4f778035___Function_fn_wasm_bindgen_6971d5a3494a1047___JsValue_____wasm_bindgen_6971d5a3494a1047___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
731
+ function wasm_bindgen_cb9419483d5fb0a0___convert__closures_____invoke___js_sys_56a029a60590d6b7___Function_fn_wasm_bindgen_cb9419483d5fb0a0___JsValue_____wasm_bindgen_cb9419483d5fb0a0___sys__Undefined___js_sys_56a029a60590d6b7___Function_fn_wasm_bindgen_cb9419483d5fb0a0___JsValue_____wasm_bindgen_cb9419483d5fb0a0___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
732
+ wasm.wasm_bindgen_cb9419483d5fb0a0___convert__closures_____invoke___js_sys_56a029a60590d6b7___Function_fn_wasm_bindgen_cb9419483d5fb0a0___JsValue_____wasm_bindgen_cb9419483d5fb0a0___sys__Undefined___js_sys_56a029a60590d6b7___Function_fn_wasm_bindgen_cb9419483d5fb0a0___JsValue_____wasm_bindgen_cb9419483d5fb0a0___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
757
733
  }
758
734
 
759
735
 
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "axiam-sdk-wasm",
3
3
  "type": "module",
4
4
  "description": "Browser (WebAssembly) build of the official AXIAM IAM client SDK",
5
- "version": "1.0.0-alpha31",
5
+ "version": "1.0.0-alpha35",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",