@premai/reticle 0.4.8 → 0.5.1

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/reticle_bg.js CHANGED
@@ -66,6 +66,68 @@ export class AttestResult {
66
66
  }
67
67
  if (Symbol.dispose) AttestResult.prototype[Symbol.dispose] = AttestResult.prototype.free;
68
68
 
69
+ export class AzureNonce {
70
+ static __wrap(ptr) {
71
+ const obj = Object.create(AzureNonce.prototype);
72
+ obj.__wbg_ptr = ptr;
73
+ AzureNonceFinalization.register(obj, obj.__wbg_ptr, obj);
74
+ return obj;
75
+ }
76
+ __destroy_into_raw() {
77
+ const ptr = this.__wbg_ptr;
78
+ this.__wbg_ptr = 0;
79
+ AzureNonceFinalization.unregister(this);
80
+ return ptr;
81
+ }
82
+ free() {
83
+ const ptr = this.__destroy_into_raw();
84
+ wasm.__wbg_azurenonce_free(ptr, 0);
85
+ }
86
+ /**
87
+ * @returns {AzureNonce}
88
+ */
89
+ static generate() {
90
+ const ret = wasm.azurenonce_generate();
91
+ return AzureNonce.__wrap(ret);
92
+ }
93
+ /**
94
+ * @returns {string}
95
+ */
96
+ to_hex() {
97
+ let deferred1_0;
98
+ let deferred1_1;
99
+ try {
100
+ const ret = wasm.azurenonce_to_hex(this.__wbg_ptr);
101
+ deferred1_0 = ret[0];
102
+ deferred1_1 = ret[1];
103
+ return getStringFromWasm0(ret[0], ret[1]);
104
+ } finally {
105
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
106
+ }
107
+ }
108
+ }
109
+ if (Symbol.dispose) AzureNonce.prototype[Symbol.dispose] = AzureNonce.prototype.free;
110
+
111
+ export class AzureQuote {
112
+ static __wrap(ptr) {
113
+ const obj = Object.create(AzureQuote.prototype);
114
+ obj.__wbg_ptr = ptr;
115
+ AzureQuoteFinalization.register(obj, obj.__wbg_ptr, obj);
116
+ return obj;
117
+ }
118
+ __destroy_into_raw() {
119
+ const ptr = this.__wbg_ptr;
120
+ this.__wbg_ptr = 0;
121
+ AzureQuoteFinalization.unregister(this);
122
+ return ptr;
123
+ }
124
+ free() {
125
+ const ptr = this.__destroy_into_raw();
126
+ wasm.__wbg_azurequote_free(ptr, 0);
127
+ }
128
+ }
129
+ if (Symbol.dispose) AzureQuote.prototype[Symbol.dispose] = AzureQuote.prototype.free;
130
+
69
131
  /**
70
132
  * A parsed certificate revocation list
71
133
  */
@@ -143,6 +205,13 @@ export class Client {
143
205
  const ret = wasm.client_attest(this.__wbg_ptr);
144
206
  return ret;
145
207
  }
208
+ /**
209
+ * @returns {Promise<void>}
210
+ */
211
+ attest_azure() {
212
+ const ret = wasm.client_attest_azure(this.__wbg_ptr);
213
+ return ret;
214
+ }
146
215
  /**
147
216
  * Completes end-to-end nvidia attestation. Generates nonce and validates claims all in one
148
217
  * @returns {Promise<ResponseHeaders>}
@@ -167,6 +236,16 @@ export class Client {
167
236
  const ret = wasm.client_attest_tdx(this.__wbg_ptr);
168
237
  return ret;
169
238
  }
239
+ /**
240
+ * Requests and parses an Azure Quote
241
+ * @param {AzureNonce} nonce
242
+ * @returns {Promise<AzureQuote>}
243
+ */
244
+ request_azure(nonce) {
245
+ _assertClass(nonce, AzureNonce);
246
+ const ret = wasm.client_request_azure(this.__wbg_ptr, nonce.__wbg_ptr);
247
+ return ret;
248
+ }
170
249
  /**
171
250
  * Gather available attestable modules from remote attestation endpoint
172
251
  * @returns {Promise<Modules>}
@@ -198,7 +277,7 @@ export class Client {
198
277
  * or measurement checks on the attestation. If you want to perform end-to-end attestation
199
278
  * please refer to [`Self::attest_sev`]
200
279
  * @param {SevNonce} nonce
201
- * @returns {Promise<ParsedAttestation>}
280
+ * @returns {Promise<SevQuote>}
202
281
  */
203
282
  request_sev(nonce) {
204
283
  _assertClass(nonce, SevNonce);
@@ -307,7 +386,7 @@ export class ClientBuilder {
307
386
  return ClientBuilder.__wrap(ret);
308
387
  }
309
388
  /**
310
- * sets custom url for OPA policies index
389
+ * sets the confidential policy provider to URL source with the specified url
311
390
  * @param {string} url
312
391
  * @returns {ClientBuilder}
313
392
  */
@@ -316,7 +395,10 @@ export class ClientBuilder {
316
395
  const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
317
396
  const len0 = WASM_VECTOR_LEN;
318
397
  const ret = wasm.clientbuilder_with_policies_url(ptr, ptr0, len0);
319
- return ClientBuilder.__wrap(ret);
398
+ if (ret[2]) {
399
+ throw takeFromExternrefTable0(ret[1]);
400
+ }
401
+ return ClientBuilder.__wrap(ret[0]);
320
402
  }
321
403
  }
322
404
  if (Symbol.dispose) ClientBuilder.prototype[Symbol.dispose] = ClientBuilder.prototype.free;
@@ -342,11 +424,12 @@ export class Collateral {
342
424
  if (Symbol.dispose) Collateral.prototype[Symbol.dispose] = Collateral.prototype.free;
343
425
 
344
426
  /**
345
- * @enum {0 | 1}
427
+ * @enum {0 | 1 | 2}
346
428
  */
347
429
  export const CpuModule = Object.freeze({
348
430
  Sev: 0, "0": "Sev",
349
431
  Tdx: 1, "1": "Tdx",
432
+ Azure: 2, "2": "Azure",
350
433
  });
351
434
 
352
435
  export class DecodedClaims {
@@ -550,21 +633,21 @@ export class Kds {
550
633
  wasm.__wbg_kds_free(ptr, 0);
551
634
  }
552
635
  /**
553
- * @param {ParsedAttestation} attestation
636
+ * @param {SevQuote} attestation
554
637
  * @returns {Promise<VerifiedChain>}
555
638
  */
556
639
  fetch_certificates(attestation) {
557
- _assertClass(attestation, ParsedAttestation);
640
+ _assertClass(attestation, SevQuote);
558
641
  const ret = wasm.kds_fetch_certificates(this.__wbg_ptr, attestation.__wbg_ptr);
559
642
  return ret;
560
643
  }
561
644
  /**
562
645
  * Fetches the certificate revocation list from AMD's KDS
563
- * @param {ParsedAttestation} attestation
646
+ * @param {SevQuote} attestation
564
647
  * @returns {Promise<CRL>}
565
648
  */
566
649
  fetch_crl(attestation) {
567
- _assertClass(attestation, ParsedAttestation);
650
+ _assertClass(attestation, SevQuote);
568
651
  const ret = wasm.kds_fetch_crl(this.__wbg_ptr, attestation.__wbg_ptr);
569
652
  return ret;
570
653
  }
@@ -708,71 +791,6 @@ export class NvidiaNonce {
708
791
  }
709
792
  if (Symbol.dispose) NvidiaNonce.prototype[Symbol.dispose] = NvidiaNonce.prototype.free;
710
793
 
711
- /**
712
- * Represents a parsed attestation report with some already
713
- * parsed commonly accessed fields
714
- */
715
- export class ParsedAttestation {
716
- static __wrap(ptr) {
717
- const obj = Object.create(ParsedAttestation.prototype);
718
- obj.__wbg_ptr = ptr;
719
- ParsedAttestationFinalization.register(obj, obj.__wbg_ptr, obj);
720
- return obj;
721
- }
722
- __destroy_into_raw() {
723
- const ptr = this.__wbg_ptr;
724
- this.__wbg_ptr = 0;
725
- ParsedAttestationFinalization.unregister(this);
726
- return ptr;
727
- }
728
- free() {
729
- const ptr = this.__destroy_into_raw();
730
- wasm.__wbg_parsedattestation_free(ptr, 0);
731
- }
732
- /**
733
- * @returns {number}
734
- */
735
- cpu_fam_id() {
736
- const ret = wasm.parsedattestation_cpu_fam_id(this.__wbg_ptr);
737
- return ret;
738
- }
739
- /**
740
- * @returns {number}
741
- */
742
- cpu_mod_id() {
743
- const ret = wasm.parsedattestation_cpu_mod_id(this.__wbg_ptr);
744
- return ret;
745
- }
746
- /**
747
- * Parses and constructs a new attestation report from a stream of binary data
748
- * @param {Uint8Array} bytes
749
- * @returns {ParsedAttestation}
750
- */
751
- static new(bytes) {
752
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
753
- const len0 = WASM_VECTOR_LEN;
754
- const ret = wasm.parsedattestation_new(ptr0, len0);
755
- if (ret[2]) {
756
- throw takeFromExternrefTable0(ret[1]);
757
- }
758
- return ParsedAttestation.__wrap(ret[0]);
759
- }
760
- /**
761
- * Verifies the attestation report against a certificate chain
762
- * @param {VerifiedChain} chain
763
- * @param {SevNonce} nonce
764
- */
765
- verify(chain, nonce) {
766
- _assertClass(chain, VerifiedChain);
767
- _assertClass(nonce, SevNonce);
768
- const ret = wasm.parsedattestation_verify(this.__wbg_ptr, chain.__wbg_ptr, nonce.__wbg_ptr);
769
- if (ret[1]) {
770
- throw takeFromExternrefTable0(ret[0]);
771
- }
772
- }
773
- }
774
- if (Symbol.dispose) ParsedAttestation.prototype[Symbol.dispose] = ParsedAttestation.prototype.free;
775
-
776
794
  export class Pcs {
777
795
  __destroy_into_raw() {
778
796
  const ptr = this.__wbg_ptr;
@@ -858,44 +876,6 @@ export class QueryParams {
858
876
  }
859
877
  if (Symbol.dispose) QueryParams.prototype[Symbol.dispose] = QueryParams.prototype.free;
860
878
 
861
- export class QuoteVerifier {
862
- __destroy_into_raw() {
863
- const ptr = this.__wbg_ptr;
864
- this.__wbg_ptr = 0;
865
- QuoteVerifierFinalization.unregister(this);
866
- return ptr;
867
- }
868
- free() {
869
- const ptr = this.__destroy_into_raw();
870
- wasm.__wbg_quoteverifier_free(ptr, 0);
871
- }
872
- /**
873
- * @param {Collateral} collateral
874
- * @param {TdxQuote} quote
875
- */
876
- constructor(collateral, quote) {
877
- _assertClass(collateral, Collateral);
878
- var ptr0 = collateral.__destroy_into_raw();
879
- _assertClass(quote, TdxQuote);
880
- var ptr1 = quote.__destroy_into_raw();
881
- const ret = wasm.quoteverifier_new(ptr0, ptr1);
882
- this.__wbg_ptr = ret;
883
- QuoteVerifierFinalization.register(this, this.__wbg_ptr, this);
884
- return this;
885
- }
886
- /**
887
- * @param {TdxNonce} nonce
888
- */
889
- verify(nonce) {
890
- _assertClass(nonce, TdxNonce);
891
- const ret = wasm.quoteverifier_verify(this.__wbg_ptr, nonce.__wbg_ptr);
892
- if (ret[1]) {
893
- throw takeFromExternrefTable0(ret[0]);
894
- }
895
- }
896
- }
897
- if (Symbol.dispose) QuoteVerifier.prototype[Symbol.dispose] = QuoteVerifier.prototype.free;
898
-
899
879
  export class ResponseHeaders {
900
880
  static __wrap(ptr) {
901
881
  const obj = Object.create(ResponseHeaders.prototype);
@@ -982,6 +962,58 @@ export class SevNonce {
982
962
  }
983
963
  if (Symbol.dispose) SevNonce.prototype[Symbol.dispose] = SevNonce.prototype.free;
984
964
 
965
+ /**
966
+ * Represents a parsed attestation report with some already
967
+ * parsed commonly accessed fields
968
+ */
969
+ export class SevQuote {
970
+ static __wrap(ptr) {
971
+ const obj = Object.create(SevQuote.prototype);
972
+ obj.__wbg_ptr = ptr;
973
+ SevQuoteFinalization.register(obj, obj.__wbg_ptr, obj);
974
+ return obj;
975
+ }
976
+ __destroy_into_raw() {
977
+ const ptr = this.__wbg_ptr;
978
+ this.__wbg_ptr = 0;
979
+ SevQuoteFinalization.unregister(this);
980
+ return ptr;
981
+ }
982
+ free() {
983
+ const ptr = this.__destroy_into_raw();
984
+ wasm.__wbg_sevquote_free(ptr, 0);
985
+ }
986
+ /**
987
+ * @returns {number}
988
+ */
989
+ cpu_fam_id() {
990
+ const ret = wasm.sevquote_cpu_fam_id(this.__wbg_ptr);
991
+ return ret;
992
+ }
993
+ /**
994
+ * @returns {number}
995
+ */
996
+ cpu_mod_id() {
997
+ const ret = wasm.sevquote_cpu_mod_id(this.__wbg_ptr);
998
+ return ret;
999
+ }
1000
+ /**
1001
+ * Parses and constructs a new attestation report from a stream of binary data
1002
+ * @param {Uint8Array} bytes
1003
+ * @returns {SevQuote}
1004
+ */
1005
+ static new(bytes) {
1006
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
1007
+ const len0 = WASM_VECTOR_LEN;
1008
+ const ret = wasm.sevquote_new(ptr0, len0);
1009
+ if (ret[2]) {
1010
+ throw takeFromExternrefTable0(ret[1]);
1011
+ }
1012
+ return SevQuote.__wrap(ret[0]);
1013
+ }
1014
+ }
1015
+ if (Symbol.dispose) SevQuote.prototype[Symbol.dispose] = SevQuote.prototype.free;
1016
+
985
1017
  export class TcbLevels {
986
1018
  __destroy_into_raw() {
987
1019
  const ptr = this.__wbg_ptr;
@@ -997,6 +1029,12 @@ export class TcbLevels {
997
1029
  if (Symbol.dispose) TcbLevels.prototype[Symbol.dispose] = TcbLevels.prototype.free;
998
1030
 
999
1031
  export class TdxNonce {
1032
+ static __wrap(ptr) {
1033
+ const obj = Object.create(TdxNonce.prototype);
1034
+ obj.__wbg_ptr = ptr;
1035
+ TdxNonceFinalization.register(obj, obj.__wbg_ptr, obj);
1036
+ return obj;
1037
+ }
1000
1038
  __destroy_into_raw() {
1001
1039
  const ptr = this.__wbg_ptr;
1002
1040
  this.__wbg_ptr = 0;
@@ -1007,11 +1045,12 @@ export class TdxNonce {
1007
1045
  const ptr = this.__destroy_into_raw();
1008
1046
  wasm.__wbg_tdxnonce_free(ptr, 0);
1009
1047
  }
1010
- constructor() {
1048
+ /**
1049
+ * @returns {TdxNonce}
1050
+ */
1051
+ static generate() {
1011
1052
  const ret = wasm.tdxnonce_generate();
1012
- this.__wbg_ptr = ret;
1013
- TdxNonceFinalization.register(this, this.__wbg_ptr, this);
1014
- return this;
1053
+ return TdxNonce.__wrap(ret);
1015
1054
  }
1016
1055
  /**
1017
1056
  * @returns {string}
@@ -1065,6 +1104,31 @@ export class TdxQuote {
1065
1104
  }
1066
1105
  if (Symbol.dispose) TdxQuote.prototype[Symbol.dispose] = TdxQuote.prototype.free;
1067
1106
 
1107
+ export class TdxQuoteVerifier {
1108
+ __destroy_into_raw() {
1109
+ const ptr = this.__wbg_ptr;
1110
+ this.__wbg_ptr = 0;
1111
+ TdxQuoteVerifierFinalization.unregister(this);
1112
+ return ptr;
1113
+ }
1114
+ free() {
1115
+ const ptr = this.__destroy_into_raw();
1116
+ wasm.__wbg_tdxquoteverifier_free(ptr, 0);
1117
+ }
1118
+ /**
1119
+ * @param {Collateral} collateral
1120
+ */
1121
+ constructor(collateral) {
1122
+ _assertClass(collateral, Collateral);
1123
+ var ptr0 = collateral.__destroy_into_raw();
1124
+ const ret = wasm.tdxquoteverifier_new(ptr0);
1125
+ this.__wbg_ptr = ret;
1126
+ TdxQuoteVerifierFinalization.register(this, this.__wbg_ptr, this);
1127
+ return this;
1128
+ }
1129
+ }
1130
+ if (Symbol.dispose) TdxQuoteVerifier.prototype[Symbol.dispose] = TdxQuoteVerifier.prototype.free;
1131
+
1068
1132
  /**
1069
1133
  * A chain which has been cryptographically verified
1070
1134
  */
@@ -1193,19 +1257,15 @@ export function __wbg_attestresult_new(arg0) {
1193
1257
  const ret = AttestResult.__wrap(arg0);
1194
1258
  return ret;
1195
1259
  }
1196
- export function __wbg_call_13665d9f14390edc() { return handleError(function (arg0, arg1) {
1197
- const ret = arg0.call(arg1);
1260
+ export function __wbg_azurequote_new(arg0) {
1261
+ const ret = AzureQuote.__wrap(arg0);
1198
1262
  return ret;
1199
- }, arguments); }
1263
+ }
1200
1264
  export function __wbg_call_dfde26266607c996() { return handleError(function (arg0, arg1, arg2) {
1201
1265
  const ret = arg0.call(arg1, arg2);
1202
1266
  return ret;
1203
1267
  }, arguments); }
1204
- export function __wbg_clearTimeout_2256f1e7b94ef517(arg0) {
1205
- const ret = clearTimeout(arg0);
1206
- return ret;
1207
- }
1208
- export function __wbg_clearTimeout_6b8d9a38b9263d65(arg0) {
1268
+ export function __wbg_clearTimeout_333bba87532ab9d3(arg0) {
1209
1269
  const ret = clearTimeout(arg0);
1210
1270
  return ret;
1211
1271
  }
@@ -1233,23 +1293,19 @@ export function __wbg_entries_8c373da97ea5ada5(arg0) {
1233
1293
  const ret = arg0.entries();
1234
1294
  return ret;
1235
1295
  }
1236
- export function __wbg_fetch_2998af8c54e0997c(arg0, arg1) {
1237
- const ret = arg0.fetch(arg1);
1238
- return ret;
1239
- }
1240
- export function __wbg_fetch_43b2f110608a59ff(arg0) {
1296
+ export function __wbg_fetch_074561c3e313c86f(arg0) {
1241
1297
  const ret = fetch(arg0);
1242
1298
  return ret;
1243
1299
  }
1244
- export function __wbg_fetch_83bb2e17d4cf350b(arg0) {
1245
- const ret = globalThis.fetch(arg0);
1300
+ export function __wbg_fetch_2998af8c54e0997c(arg0, arg1) {
1301
+ const ret = arg0.fetch(arg1);
1246
1302
  return ret;
1247
1303
  }
1248
- export function __wbg_fetch_9dad4fe911207b37(arg0) {
1249
- const ret = fetch(arg0);
1304
+ export function __wbg_fetch_8319d82c48626664(arg0) {
1305
+ const ret = globalThis.fetch(arg0);
1250
1306
  return ret;
1251
1307
  }
1252
- export function __wbg_fetch_a05e9cf6b1d3dfab(arg0, arg1) {
1308
+ export function __wbg_fetch_afeeccd67d9f27cd(arg0, arg1) {
1253
1309
  const ret = globalThis.fetch(arg0, arg1);
1254
1310
  return ret;
1255
1311
  }
@@ -1267,10 +1323,6 @@ export function __wbg_getTime_09f1dd40a44edb30(arg0) {
1267
1323
  const ret = arg0.getTime();
1268
1324
  return ret;
1269
1325
  }
1270
- export function __wbg_get_3e9a707ab7d352eb() { return handleError(function (arg0, arg1) {
1271
- const ret = Reflect.get(arg0, arg1);
1272
- return ret;
1273
- }, arguments); }
1274
1326
  export function __wbg_get_98fdf51d029a75eb(arg0, arg1) {
1275
1327
  const ret = arg0[arg1 >>> 0];
1276
1328
  return ret;
@@ -1307,10 +1359,6 @@ export function __wbg_isArray_94898ed3aad6947b(arg0) {
1307
1359
  const ret = Array.isArray(arg0);
1308
1360
  return ret;
1309
1361
  }
1310
- export function __wbg_iterator_1441b47f341dc34f() {
1311
- const ret = Symbol.iterator;
1312
- return ret;
1313
- }
1314
1362
  export function __wbg_keychain_new(arg0) {
1315
1363
  const ret = KeyChain.__wrap(arg0);
1316
1364
  return ret;
@@ -1362,7 +1410,7 @@ export function __wbg_new_typed_c072c4ce9a2a0cdf(arg0, arg1) {
1362
1410
  const a = state0.a;
1363
1411
  state0.a = 0;
1364
1412
  try {
1365
- return wasm_bindgen__convert__closures_____invoke__h61e8cb59c1b109c6(a, state0.b, arg0, arg1);
1413
+ return wasm_bindgen__convert__closures_____invoke__h5ef40ebaf5c77d6d(a, state0.b, arg0, arg1);
1366
1414
  } finally {
1367
1415
  state0.a = a;
1368
1416
  }
@@ -1381,10 +1429,6 @@ export function __wbg_new_with_str_and_init_ffe9977c986ea039() { return handleEr
1381
1429
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
1382
1430
  return ret;
1383
1431
  }, arguments); }
1384
- export function __wbg_next_2a4e19f4f5083b0f(arg0) {
1385
- const ret = arg0.next;
1386
- return ret;
1387
- }
1388
1432
  export function __wbg_next_6429a146bf756f93() { return handleError(function (arg0) {
1389
1433
  const ret = arg0.next();
1390
1434
  return ret;
@@ -1401,10 +1445,6 @@ export function __wbg_nvidiaattestresult_new(arg0) {
1401
1445
  const ret = NvidiaAttestResult.__wrap(arg0);
1402
1446
  return ret;
1403
1447
  }
1404
- export function __wbg_parsedattestation_new(arg0) {
1405
- const ret = ParsedAttestation.__wrap(arg0);
1406
- return ret;
1407
- }
1408
1448
  export function __wbg_process_b2fea42461d03994(arg0) {
1409
1449
  const ret = arg0.process;
1410
1450
  return ret;
@@ -1434,11 +1474,7 @@ export function __wbg_responseheaders_new(arg0) {
1434
1474
  const ret = ResponseHeaders.__wrap(arg0);
1435
1475
  return ret;
1436
1476
  }
1437
- export function __wbg_setTimeout_b188b3bcc8977c7d(arg0, arg1) {
1438
- const ret = setTimeout(arg0, arg1);
1439
- return ret;
1440
- }
1441
- export function __wbg_setTimeout_f757f00851f76c42(arg0, arg1) {
1477
+ export function __wbg_setTimeout_3a808dd861dd3c12(arg0, arg1) {
1442
1478
  const ret = setTimeout(arg0, arg1);
1443
1479
  return ret;
1444
1480
  }
@@ -1473,6 +1509,10 @@ export function __wbg_set_name_e500733c75ec36b0(arg0, arg1, arg2) {
1473
1509
  export function __wbg_set_signal_2a5bd3615938edbc(arg0, arg1) {
1474
1510
  arg0.signal = arg1;
1475
1511
  }
1512
+ export function __wbg_sevquote_new(arg0) {
1513
+ const ret = SevQuote.__wrap(arg0);
1514
+ return ret;
1515
+ }
1476
1516
  export function __wbg_signal_304beac95c8c5ea0(arg0) {
1477
1517
  const ret = arg0.signal;
1478
1518
  return ret;
@@ -1497,10 +1537,6 @@ export function __wbg_status_0853c9f5752c7ee2(arg0) {
1497
1537
  const ret = arg0.status;
1498
1538
  return ret;
1499
1539
  }
1500
- export function __wbg_stringify_ef0c105b1ccc3849() { return handleError(function (arg0) {
1501
- const ret = JSON.stringify(arg0);
1502
- return ret;
1503
- }, arguments); }
1504
1540
  export function __wbg_subarray_7c6a0da8f3b4a1ba(arg0, arg1, arg2) {
1505
1541
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1506
1542
  return ret;
@@ -1548,31 +1584,26 @@ export function __wbg_versions_215a3ab1c9d5745a(arg0) {
1548
1584
  return ret;
1549
1585
  }
1550
1586
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
1551
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1964, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1552
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hae26513a56be1c77);
1587
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2325, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1588
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hf4a21e70682c3774);
1553
1589
  return ret;
1554
1590
  }
1555
1591
  export function __wbindgen_cast_0000000000000002(arg0, arg1) {
1556
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1789, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1557
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hba3e03ec0686df06);
1592
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2101, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1593
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hc164a5141a8f3733);
1558
1594
  return ret;
1559
1595
  }
1560
1596
  export function __wbindgen_cast_0000000000000003(arg0, arg1) {
1561
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 902, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1562
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hb48ee18b811a2652);
1563
- return ret;
1564
- }
1565
- export function __wbindgen_cast_0000000000000004(arg0, arg1) {
1566
1597
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1567
1598
  const ret = getArrayU8FromWasm0(arg0, arg1);
1568
1599
  return ret;
1569
1600
  }
1570
- export function __wbindgen_cast_0000000000000005(arg0, arg1) {
1601
+ export function __wbindgen_cast_0000000000000004(arg0, arg1) {
1571
1602
  // Cast intrinsic for `Ref(String) -> Externref`.
1572
1603
  const ret = getStringFromWasm0(arg0, arg1);
1573
1604
  return ret;
1574
1605
  }
1575
- export function __wbindgen_cast_0000000000000006(arg0, arg1) {
1606
+ export function __wbindgen_cast_0000000000000005(arg0, arg1) {
1576
1607
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1577
1608
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
1578
1609
  // Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
@@ -1588,23 +1619,19 @@ export function __wbindgen_init_externref_table() {
1588
1619
  table.set(offset + 2, true);
1589
1620
  table.set(offset + 3, false);
1590
1621
  }
1591
- function wasm_bindgen__convert__closures_____invoke__hba3e03ec0686df06(arg0, arg1) {
1592
- wasm.wasm_bindgen__convert__closures_____invoke__hba3e03ec0686df06(arg0, arg1);
1622
+ function wasm_bindgen__convert__closures_____invoke__hc164a5141a8f3733(arg0, arg1) {
1623
+ wasm.wasm_bindgen__convert__closures_____invoke__hc164a5141a8f3733(arg0, arg1);
1593
1624
  }
1594
1625
 
1595
- function wasm_bindgen__convert__closures_____invoke__hb48ee18b811a2652(arg0, arg1) {
1596
- wasm.wasm_bindgen__convert__closures_____invoke__hb48ee18b811a2652(arg0, arg1);
1597
- }
1598
-
1599
- function wasm_bindgen__convert__closures_____invoke__hae26513a56be1c77(arg0, arg1, arg2) {
1600
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__hae26513a56be1c77(arg0, arg1, arg2);
1626
+ function wasm_bindgen__convert__closures_____invoke__hf4a21e70682c3774(arg0, arg1, arg2) {
1627
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__hf4a21e70682c3774(arg0, arg1, arg2);
1601
1628
  if (ret[1]) {
1602
1629
  throw takeFromExternrefTable0(ret[0]);
1603
1630
  }
1604
1631
  }
1605
1632
 
1606
- function wasm_bindgen__convert__closures_____invoke__h61e8cb59c1b109c6(arg0, arg1, arg2, arg3) {
1607
- wasm.wasm_bindgen__convert__closures_____invoke__h61e8cb59c1b109c6(arg0, arg1, arg2, arg3);
1633
+ function wasm_bindgen__convert__closures_____invoke__h5ef40ebaf5c77d6d(arg0, arg1, arg2, arg3) {
1634
+ wasm.wasm_bindgen__convert__closures_____invoke__h5ef40ebaf5c77d6d(arg0, arg1, arg2, arg3);
1608
1635
  }
1609
1636
 
1610
1637
 
@@ -1621,6 +1648,12 @@ const AttestHeadersFinalization = (typeof FinalizationRegistry === 'undefined')
1621
1648
  const AttestResultFinalization = (typeof FinalizationRegistry === 'undefined')
1622
1649
  ? { register: () => {}, unregister: () => {} }
1623
1650
  : new FinalizationRegistry(ptr => wasm.__wbg_attestresult_free(ptr, 1));
1651
+ const AzureNonceFinalization = (typeof FinalizationRegistry === 'undefined')
1652
+ ? { register: () => {}, unregister: () => {} }
1653
+ : new FinalizationRegistry(ptr => wasm.__wbg_azurenonce_free(ptr, 1));
1654
+ const AzureQuoteFinalization = (typeof FinalizationRegistry === 'undefined')
1655
+ ? { register: () => {}, unregister: () => {} }
1656
+ : new FinalizationRegistry(ptr => wasm.__wbg_azurequote_free(ptr, 1));
1624
1657
  const CRLFinalization = (typeof FinalizationRegistry === 'undefined')
1625
1658
  ? { register: () => {}, unregister: () => {} }
1626
1659
  : new FinalizationRegistry(ptr => wasm.__wbg_crl_free(ptr, 1));
@@ -1660,24 +1693,21 @@ const NvidiaAttestResultFinalization = (typeof FinalizationRegistry === 'undefin
1660
1693
  const NvidiaNonceFinalization = (typeof FinalizationRegistry === 'undefined')
1661
1694
  ? { register: () => {}, unregister: () => {} }
1662
1695
  : new FinalizationRegistry(ptr => wasm.__wbg_nvidianonce_free(ptr, 1));
1663
- const ParsedAttestationFinalization = (typeof FinalizationRegistry === 'undefined')
1664
- ? { register: () => {}, unregister: () => {} }
1665
- : new FinalizationRegistry(ptr => wasm.__wbg_parsedattestation_free(ptr, 1));
1666
1696
  const PcsFinalization = (typeof FinalizationRegistry === 'undefined')
1667
1697
  ? { register: () => {}, unregister: () => {} }
1668
1698
  : new FinalizationRegistry(ptr => wasm.__wbg_pcs_free(ptr, 1));
1669
1699
  const QueryParamsFinalization = (typeof FinalizationRegistry === 'undefined')
1670
1700
  ? { register: () => {}, unregister: () => {} }
1671
1701
  : new FinalizationRegistry(ptr => wasm.__wbg_queryparams_free(ptr, 1));
1672
- const QuoteVerifierFinalization = (typeof FinalizationRegistry === 'undefined')
1673
- ? { register: () => {}, unregister: () => {} }
1674
- : new FinalizationRegistry(ptr => wasm.__wbg_quoteverifier_free(ptr, 1));
1675
1702
  const ResponseHeadersFinalization = (typeof FinalizationRegistry === 'undefined')
1676
1703
  ? { register: () => {}, unregister: () => {} }
1677
1704
  : new FinalizationRegistry(ptr => wasm.__wbg_responseheaders_free(ptr, 1));
1678
1705
  const SevNonceFinalization = (typeof FinalizationRegistry === 'undefined')
1679
1706
  ? { register: () => {}, unregister: () => {} }
1680
1707
  : new FinalizationRegistry(ptr => wasm.__wbg_sevnonce_free(ptr, 1));
1708
+ const SevQuoteFinalization = (typeof FinalizationRegistry === 'undefined')
1709
+ ? { register: () => {}, unregister: () => {} }
1710
+ : new FinalizationRegistry(ptr => wasm.__wbg_sevquote_free(ptr, 1));
1681
1711
  const TcbLevelsFinalization = (typeof FinalizationRegistry === 'undefined')
1682
1712
  ? { register: () => {}, unregister: () => {} }
1683
1713
  : new FinalizationRegistry(ptr => wasm.__wbg_tcblevels_free(ptr, 1));
@@ -1687,6 +1717,9 @@ const TdxNonceFinalization = (typeof FinalizationRegistry === 'undefined')
1687
1717
  const TdxQuoteFinalization = (typeof FinalizationRegistry === 'undefined')
1688
1718
  ? { register: () => {}, unregister: () => {} }
1689
1719
  : new FinalizationRegistry(ptr => wasm.__wbg_tdxquote_free(ptr, 1));
1720
+ const TdxQuoteVerifierFinalization = (typeof FinalizationRegistry === 'undefined')
1721
+ ? { register: () => {}, unregister: () => {} }
1722
+ : new FinalizationRegistry(ptr => wasm.__wbg_tdxquoteverifier_free(ptr, 1));
1690
1723
  const VerifiedChainFinalization = (typeof FinalizationRegistry === 'undefined')
1691
1724
  ? { register: () => {}, unregister: () => {} }
1692
1725
  : new FinalizationRegistry(ptr => wasm.__wbg_verifiedchain_free(ptr, 1));
package/reticle_bg.wasm CHANGED
Binary file