@bitwarden/sdk-internal 0.2.0-main.538 → 0.2.0-main.539

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/VERSION CHANGED
@@ -1 +1 @@
1
- c0c3ee5f64cddbb4f5c48709d6697d976ebd33a4
1
+ 794a7352a6bcd602cd893c22976baea4b67fe979
@@ -1359,15 +1359,15 @@ export interface SsoCookieVendorConfig {
1359
1359
  /**
1360
1360
  * Identity provider login URL for browser redirect during bootstrap
1361
1361
  */
1362
- idp_login_url: string | undefined;
1362
+ idpLoginUrl: string | undefined;
1363
1363
  /**
1364
1364
  * Cookie name (base name, without shard suffix)
1365
1365
  */
1366
- cookie_name: string | undefined;
1366
+ cookieName: string | undefined;
1367
1367
  /**
1368
1368
  * Cookie domain for validation
1369
1369
  */
1370
- cookie_domain: string | undefined;
1370
+ cookieDomain: string | undefined;
1371
1371
  /**
1372
1372
  * Acquired cookies
1373
1373
  *
@@ -1375,7 +1375,7 @@ export interface SsoCookieVendorConfig {
1375
1375
  * `AWSELBAuthSessionCookie-0`, `AWSELBAuthSessionCookie-1`, etc.
1376
1376
  * For unsharded cookies, this contains a single entry with the base name.
1377
1377
  */
1378
- cookie_value: AcquiredCookie[] | undefined;
1378
+ cookieValue: AcquiredCookie[] | undefined;
1379
1379
  }
1380
1380
 
1381
1381
  /**
@@ -3162,6 +3162,22 @@ export class ServerCommunicationConfigClient {
3162
3162
  * * `hostname` - The server hostname (e.g., "vault.acme.com")
3163
3163
  */
3164
3164
  needsBootstrap(hostname: string): Promise<boolean>;
3165
+ /**
3166
+ * Sets the server communication configuration for a hostname
3167
+ *
3168
+ * This method saves the provided communication configuration to the repository.
3169
+ * Typically called when receiving the `/api/config` response from the server.
3170
+ *
3171
+ * # Arguments
3172
+ *
3173
+ * * `hostname` - The server hostname (e.g., "vault.acme.com")
3174
+ * * `config` - The server communication configuration to store
3175
+ *
3176
+ * # Errors
3177
+ *
3178
+ * Returns an error if the repository save operation fails
3179
+ */
3180
+ setCommunicationType(hostname: string, config: ServerCommunicationConfig): Promise<void>;
3165
3181
  /**
3166
3182
  * Creates a new ServerCommunicationConfigClient with a JavaScript repository and platform API
3167
3183
  *
@@ -1025,14 +1025,14 @@ export function isGetFolderError(error) {
1025
1025
  }
1026
1026
  }
1027
1027
 
1028
- function wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743(arg0, arg1) {
1029
- wasm.wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743(arg0, arg1);
1030
- }
1031
-
1032
1028
  function wasm_bindgen__convert__closures_____invoke__h05f50e601cb9cbc9(arg0, arg1, arg2) {
1033
1029
  wasm.wasm_bindgen__convert__closures_____invoke__h05f50e601cb9cbc9(arg0, arg1, addHeapObject(arg2));
1034
1030
  }
1035
1031
 
1032
+ function wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743(arg0, arg1) {
1033
+ wasm.wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743(arg0, arg1);
1034
+ }
1035
+
1036
1036
  function wasm_bindgen__convert__closures_____invoke__hf245910ad5d68b6c(arg0, arg1, arg2) {
1037
1037
  try {
1038
1038
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
@@ -4543,6 +4543,30 @@ export class ServerCommunicationConfigClient {
4543
4543
  const ret = wasm.servercommunicationconfigclient_needsBootstrap(this.__wbg_ptr, ptr0, len0);
4544
4544
  return takeObject(ret);
4545
4545
  }
4546
+ /**
4547
+ * Sets the server communication configuration for a hostname
4548
+ *
4549
+ * This method saves the provided communication configuration to the repository.
4550
+ * Typically called when receiving the `/api/config` response from the server.
4551
+ *
4552
+ * # Arguments
4553
+ *
4554
+ * * `hostname` - The server hostname (e.g., "vault.acme.com")
4555
+ * * `config` - The server communication configuration to store
4556
+ *
4557
+ * # Errors
4558
+ *
4559
+ * Returns an error if the repository save operation fails
4560
+ * @param {string} hostname
4561
+ * @param {ServerCommunicationConfig} config
4562
+ * @returns {Promise<void>}
4563
+ */
4564
+ setCommunicationType(hostname, config) {
4565
+ const ptr0 = passStringToWasm0(hostname, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4566
+ const len0 = WASM_VECTOR_LEN;
4567
+ const ret = wasm.servercommunicationconfigclient_setCommunicationType(this.__wbg_ptr, ptr0, len0, addHeapObject(config));
4568
+ return takeObject(ret);
4569
+ }
4546
4570
  /**
4547
4571
  * Creates a new ServerCommunicationConfigClient with a JavaScript repository and platform API
4548
4572
  *
@@ -4970,7 +4994,7 @@ export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg
4970
4994
  return addHeapObject(ret);
4971
4995
  }, arguments) };
4972
4996
 
4973
- export function __wbg_cipher_24344a98a78636db(arg0) {
4997
+ export function __wbg_cipher_2b3634727708534f(arg0) {
4974
4998
  const ret = getObject(arg0).cipher;
4975
4999
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4976
5000
  };
@@ -5057,7 +5081,7 @@ export function __wbg_fetch_f8ba0e29a9d6de0d(arg0, arg1) {
5057
5081
  return addHeapObject(ret);
5058
5082
  };
5059
5083
 
5060
- export function __wbg_folder_8f3106cd36c26d6c(arg0) {
5084
+ export function __wbg_folder_7698678be31f61ac(arg0) {
5061
5085
  const ret = getObject(arg0).folder;
5062
5086
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
5063
5087
  };
@@ -5089,7 +5113,20 @@ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
5089
5113
  return ret;
5090
5114
  };
5091
5115
 
5092
- export function __wbg_get_67a4c7b697516466() { return handleError(function (arg0, arg1, arg2) {
5116
+ export function __wbg_get_1eb8994f1fdc189e() { return handleError(function (arg0, arg1, arg2) {
5117
+ let deferred0_0;
5118
+ let deferred0_1;
5119
+ try {
5120
+ deferred0_0 = arg1;
5121
+ deferred0_1 = arg2;
5122
+ const ret = getObject(arg0).get(getStringFromWasm0(arg1, arg2));
5123
+ return addHeapObject(ret);
5124
+ } finally {
5125
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5126
+ }
5127
+ }, arguments) };
5128
+
5129
+ export function __wbg_get_4fc925d1158f5a93() { return handleError(function (arg0, arg1, arg2) {
5093
5130
  let deferred0_0;
5094
5131
  let deferred0_1;
5095
5132
  try {
@@ -5107,7 +5144,7 @@ export function __wbg_get_7bed016f185add81(arg0, arg1) {
5107
5144
  return addHeapObject(ret);
5108
5145
  };
5109
5146
 
5110
- export function __wbg_get_access_token_6b0dd10f9c3ec994(arg0) {
5147
+ export function __wbg_get_access_token_0e4268fa96c3fcd9(arg0) {
5111
5148
  const ret = getObject(arg0).get_access_token();
5112
5149
  return addHeapObject(ret);
5113
5150
  };
@@ -5130,19 +5167,6 @@ export function __wbg_get_efcb449f58ec27c2() { return handleError(function (arg0
5130
5167
  return addHeapObject(ret);
5131
5168
  }, arguments) };
5132
5169
 
5133
- export function __wbg_get_f337258119fa3a93() { return handleError(function (arg0, arg1, arg2) {
5134
- let deferred0_0;
5135
- let deferred0_1;
5136
- try {
5137
- deferred0_0 = arg1;
5138
- deferred0_1 = arg2;
5139
- const ret = getObject(arg0).get(getStringFromWasm0(arg1, arg2));
5140
- return addHeapObject(ret);
5141
- } finally {
5142
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
5143
- }
5144
- }, arguments) };
5145
-
5146
5170
  export function __wbg_get_fb1fa70beb44a754() { return handleError(function (arg0, arg1) {
5147
5171
  const ret = getObject(arg0).get(getObject(arg1));
5148
5172
  return addHeapObject(ret);
@@ -5326,12 +5350,12 @@ export function __wbg_length_cdd215e10d9dd507(arg0) {
5326
5350
  return ret;
5327
5351
  };
5328
5352
 
5329
- export function __wbg_list_14d4a40ca686cfb7() { return handleError(function (arg0) {
5353
+ export function __wbg_list_7ab893e468ec64e7() { return handleError(function (arg0) {
5330
5354
  const ret = getObject(arg0).list();
5331
5355
  return addHeapObject(ret);
5332
5356
  }, arguments) };
5333
5357
 
5334
- export function __wbg_list_658bb663a1d58c93() { return handleError(function (arg0) {
5358
+ export function __wbg_list_f64dee81767ff9ff() { return handleError(function (arg0) {
5335
5359
  const ret = getObject(arg0).list();
5336
5360
  return addHeapObject(ret);
5337
5361
  }, arguments) };
@@ -5532,7 +5556,7 @@ export function __wbg_randomFillSync_f8c153b79f285817() { return handleError(fun
5532
5556
  getObject(arg0).randomFillSync(takeObject(arg1));
5533
5557
  }, arguments) };
5534
5558
 
5535
- export function __wbg_remove_1606aa23bd145826() { return handleError(function (arg0, arg1, arg2) {
5559
+ export function __wbg_remove_1021e726b3a804b7() { return handleError(function (arg0, arg1, arg2) {
5536
5560
  let deferred0_0;
5537
5561
  let deferred0_1;
5538
5562
  try {
@@ -5545,7 +5569,7 @@ export function __wbg_remove_1606aa23bd145826() { return handleError(function (a
5545
5569
  }
5546
5570
  }, arguments) };
5547
5571
 
5548
- export function __wbg_remove_84c4762c5e3fb31f() { return handleError(function (arg0, arg1, arg2) {
5572
+ export function __wbg_remove_83f35028aaeeef20() { return handleError(function (arg0, arg1, arg2) {
5549
5573
  let deferred0_0;
5550
5574
  let deferred0_1;
5551
5575
  try {
@@ -5596,7 +5620,7 @@ export function __wbg_setTimeout_4ec014681668a581(arg0, arg1) {
5596
5620
  return addHeapObject(ret);
5597
5621
  };
5598
5622
 
5599
- export function __wbg_set_2f781d79f748e6d4() { return handleError(function (arg0, arg1, arg2, arg3) {
5623
+ export function __wbg_set_0e6998c82e85bfe3() { return handleError(function (arg0, arg1, arg2, arg3) {
5600
5624
  let deferred0_0;
5601
5625
  let deferred0_1;
5602
5626
  try {
@@ -5609,11 +5633,7 @@ export function __wbg_set_2f781d79f748e6d4() { return handleError(function (arg0
5609
5633
  }
5610
5634
  }, arguments) };
5611
5635
 
5612
- export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5613
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5614
- };
5615
-
5616
- export function __wbg_set_4966bc0f86007e42() { return handleError(function (arg0, arg1, arg2, arg3) {
5636
+ export function __wbg_set_121cb724fd9c2cc3() { return handleError(function (arg0, arg1, arg2, arg3) {
5617
5637
  let deferred0_0;
5618
5638
  let deferred0_1;
5619
5639
  try {
@@ -5626,6 +5646,10 @@ export function __wbg_set_4966bc0f86007e42() { return handleError(function (arg0
5626
5646
  }
5627
5647
  }, arguments) };
5628
5648
 
5649
+ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
5650
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
5651
+ };
5652
+
5629
5653
  export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
5630
5654
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
5631
5655
  return addHeapObject(ret);
Binary file
@@ -360,6 +360,12 @@ export const servercommunicationconfigclient_needsBootstrap: (
360
360
  c: number,
361
361
  ) => number;
362
362
  export const servercommunicationconfigclient_new: (a: number, b: number) => number;
363
+ export const servercommunicationconfigclient_setCommunicationType: (
364
+ a: number,
365
+ b: number,
366
+ c: number,
367
+ d: number,
368
+ ) => number;
363
369
  export const isKeyGenerationError: (a: number) => number;
364
370
  export const isSshKeyExportError: (a: number) => number;
365
371
  export const isSshKeyImportError: (a: number) => number;
@@ -534,25 +540,25 @@ export const __wbg_get_outgoingmessage_destination: (a: number) => number;
534
540
  export const vaultclient_attachments: (a: number) => number;
535
541
  export const __wbg_set_outgoingmessage_destination: (a: number, b: number) => void;
536
542
  export const __wbg_cryptoclient_free: (a: number, b: number) => void;
537
- export const wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743: (
543
+ export const wasm_bindgen__convert__closures_____invoke__h05f50e601cb9cbc9: (
538
544
  a: number,
539
545
  b: number,
546
+ c: number,
540
547
  ) => void;
541
- export const wasm_bindgen__closure__destroy__h14b8abadf056d28e: (a: number, b: number) => void;
542
- export const wasm_bindgen__convert__closures_____invoke__h05f50e601cb9cbc9: (
548
+ export const wasm_bindgen__closure__destroy__h0d309ba826c21d2e: (a: number, b: number) => void;
549
+ export const wasm_bindgen__convert__closures_____invoke__h7c6e0808d83e1743: (
543
550
  a: number,
544
551
  b: number,
545
- c: number,
546
552
  ) => void;
553
+ export const wasm_bindgen__closure__destroy__h14b8abadf056d28e: (a: number, b: number) => void;
554
+ export const wasm_bindgen__closure__destroy__h2b9785764fab287c: (a: number, b: number) => void;
555
+ export const wasm_bindgen__closure__destroy__ha6acfc0fc44e75c9: (a: number, b: number) => void;
547
556
  export const wasm_bindgen__convert__closures_____invoke__hf245910ad5d68b6c: (
548
557
  a: number,
549
558
  b: number,
550
559
  c: number,
551
560
  d: number,
552
561
  ) => void;
553
- export const wasm_bindgen__closure__destroy__h0d309ba826c21d2e: (a: number, b: number) => void;
554
- export const wasm_bindgen__closure__destroy__ha6acfc0fc44e75c9: (a: number, b: number) => void;
555
- export const wasm_bindgen__closure__destroy__h2b9785764fab287c: (a: number, b: number) => void;
556
562
  export const wasm_bindgen__convert__closures_____invoke__hc4d57ad329cc6f58: (
557
563
  a: number,
558
564
  b: number,