@zama-fhe/relayer-sdk 0.4.1 → 0.4.3

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/lib/internal.js CHANGED
@@ -265,7 +265,7 @@ function setTKMS(tkms) {
265
265
  }
266
266
 
267
267
  // This file is auto-generated
268
- const version = '0.4.1';
268
+ const version = '0.4.2';
269
269
  const sdkName = '@zama-fhe/relayer-sdk';
270
270
 
271
271
  class RelayerErrorBase extends Error {
@@ -6057,7 +6057,8 @@ function assertIsRelayerApiError400NoDetailsType(value, name) {
6057
6057
  assertRecordStringProperty(value, 'label', name);
6058
6058
  if (!(value.label === 'malformed_json' ||
6059
6059
  value.label === 'request_error' ||
6060
- value.label === 'not_ready_for_decryption')) {
6060
+ value.label === 'not_ready_for_decryption' ||
6061
+ value.label === 'not_allowed_on_host_acl')) {
6061
6062
  throw new InvalidPropertyError({
6062
6063
  objName: name,
6063
6064
  property: 'label',
@@ -6066,6 +6067,7 @@ function assertIsRelayerApiError400NoDetailsType(value, name) {
6066
6067
  'malformed_json',
6067
6068
  'request_error',
6068
6069
  'not_ready_for_decryption',
6070
+ 'not_allowed_on_host_acl',
6069
6071
  ],
6070
6072
  type: typeof value.label, // === "string"
6071
6073
  value: value.label,
@@ -6174,7 +6176,9 @@ function assertIsRelayerV2ApiError(value, name) {
6174
6176
  value.label ===
6175
6177
  'request_error' ||
6176
6178
  value.label ===
6177
- 'not_ready_for_decryption') {
6179
+ 'not_ready_for_decryption' ||
6180
+ value.label ===
6181
+ 'not_allowed_on_host_acl') {
6178
6182
  assertIsRelayerApiError400NoDetailsType(value, name);
6179
6183
  }
6180
6184
  // 400 (with details)
@@ -6225,6 +6229,7 @@ function assertIsRelayerV2ApiError(value, name) {
6225
6229
  'malformed_json',
6226
6230
  'request_error',
6227
6231
  'not_ready_for_decryption',
6232
+ 'not_allowed_on_host_acl',
6228
6233
  'missing_fields',
6229
6234
  'validation_failed',
6230
6235
  'rate_limited',
@@ -6252,7 +6257,9 @@ function assertIsRelayerV2ResponseFailedWithError400(value, name) {
6252
6257
  value.error.label ===
6253
6258
  'request_error' ||
6254
6259
  value.error.label ===
6255
- 'not_ready_for_decryption') {
6260
+ 'not_ready_for_decryption' ||
6261
+ value.error.label ===
6262
+ 'not_allowed_on_host_acl') {
6256
6263
  assertIsRelayerApiError400NoDetailsType(value.error, `${name}.error`);
6257
6264
  }
6258
6265
  else if (value.error.label ===
@@ -6270,6 +6277,7 @@ function assertIsRelayerV2ResponseFailedWithError400(value, name) {
6270
6277
  'malformed_json',
6271
6278
  'request_error',
6272
6279
  'not_ready_for_decryption',
6280
+ 'not_allowed_on_host_acl',
6273
6281
  'missing_fields',
6274
6282
  'validation_failed',
6275
6283
  ],
package/lib/node.cjs CHANGED
@@ -286,7 +286,7 @@ function setTKMS(tkms) {
286
286
  }
287
287
 
288
288
  // This file is auto-generated
289
- const version = '0.4.1';
289
+ const version = '0.4.2';
290
290
  const sdkName = '@zama-fhe/relayer-sdk';
291
291
 
292
292
  class RelayerErrorBase extends Error {
@@ -6078,7 +6078,8 @@ function assertIsRelayerApiError400NoDetailsType(value, name) {
6078
6078
  assertRecordStringProperty(value, 'label', name);
6079
6079
  if (!(value.label === 'malformed_json' ||
6080
6080
  value.label === 'request_error' ||
6081
- value.label === 'not_ready_for_decryption')) {
6081
+ value.label === 'not_ready_for_decryption' ||
6082
+ value.label === 'not_allowed_on_host_acl')) {
6082
6083
  throw new InvalidPropertyError({
6083
6084
  objName: name,
6084
6085
  property: 'label',
@@ -6087,6 +6088,7 @@ function assertIsRelayerApiError400NoDetailsType(value, name) {
6087
6088
  'malformed_json',
6088
6089
  'request_error',
6089
6090
  'not_ready_for_decryption',
6091
+ 'not_allowed_on_host_acl',
6090
6092
  ],
6091
6093
  type: typeof value.label, // === "string"
6092
6094
  value: value.label,
@@ -6195,7 +6197,9 @@ function assertIsRelayerV2ApiError(value, name) {
6195
6197
  value.label ===
6196
6198
  'request_error' ||
6197
6199
  value.label ===
6198
- 'not_ready_for_decryption') {
6200
+ 'not_ready_for_decryption' ||
6201
+ value.label ===
6202
+ 'not_allowed_on_host_acl') {
6199
6203
  assertIsRelayerApiError400NoDetailsType(value, name);
6200
6204
  }
6201
6205
  // 400 (with details)
@@ -6246,6 +6250,7 @@ function assertIsRelayerV2ApiError(value, name) {
6246
6250
  'malformed_json',
6247
6251
  'request_error',
6248
6252
  'not_ready_for_decryption',
6253
+ 'not_allowed_on_host_acl',
6249
6254
  'missing_fields',
6250
6255
  'validation_failed',
6251
6256
  'rate_limited',
@@ -6273,7 +6278,9 @@ function assertIsRelayerV2ResponseFailedWithError400(value, name) {
6273
6278
  value.error.label ===
6274
6279
  'request_error' ||
6275
6280
  value.error.label ===
6276
- 'not_ready_for_decryption') {
6281
+ 'not_ready_for_decryption' ||
6282
+ value.error.label ===
6283
+ 'not_allowed_on_host_acl') {
6277
6284
  assertIsRelayerApiError400NoDetailsType(value.error, `${name}.error`);
6278
6285
  }
6279
6286
  else if (value.error.label ===
@@ -6291,6 +6298,7 @@ function assertIsRelayerV2ResponseFailedWithError400(value, name) {
6291
6298
  'malformed_json',
6292
6299
  'request_error',
6293
6300
  'not_ready_for_decryption',
6301
+ 'not_allowed_on_host_acl',
6294
6302
  'missing_fields',
6295
6303
  'validation_failed',
6296
6304
  ],
package/lib/node.d.ts CHANGED
@@ -1254,7 +1254,11 @@ export declare type PublicParams<T> = {
1254
1254
  };
1255
1255
 
1256
1256
  export declare type RelayerApiError400NoDetailsType = {
1257
- label: 'malformed_json' | 'request_error' | 'not_ready_for_decryption';
1257
+ label:
1258
+ | 'malformed_json'
1259
+ | 'request_error'
1260
+ | 'not_ready_for_decryption'
1261
+ | 'not_allowed_on_host_acl';
1258
1262
  message: string;
1259
1263
  };
1260
1264
 
package/lib/node.js CHANGED
@@ -265,7 +265,7 @@ function setTKMS(tkms) {
265
265
  }
266
266
 
267
267
  // This file is auto-generated
268
- const version = '0.4.1';
268
+ const version = '0.4.2';
269
269
  const sdkName = '@zama-fhe/relayer-sdk';
270
270
 
271
271
  class RelayerErrorBase extends Error {
@@ -6057,7 +6057,8 @@ function assertIsRelayerApiError400NoDetailsType(value, name) {
6057
6057
  assertRecordStringProperty(value, 'label', name);
6058
6058
  if (!(value.label === 'malformed_json' ||
6059
6059
  value.label === 'request_error' ||
6060
- value.label === 'not_ready_for_decryption')) {
6060
+ value.label === 'not_ready_for_decryption' ||
6061
+ value.label === 'not_allowed_on_host_acl')) {
6061
6062
  throw new InvalidPropertyError({
6062
6063
  objName: name,
6063
6064
  property: 'label',
@@ -6066,6 +6067,7 @@ function assertIsRelayerApiError400NoDetailsType(value, name) {
6066
6067
  'malformed_json',
6067
6068
  'request_error',
6068
6069
  'not_ready_for_decryption',
6070
+ 'not_allowed_on_host_acl',
6069
6071
  ],
6070
6072
  type: typeof value.label, // === "string"
6071
6073
  value: value.label,
@@ -6174,7 +6176,9 @@ function assertIsRelayerV2ApiError(value, name) {
6174
6176
  value.label ===
6175
6177
  'request_error' ||
6176
6178
  value.label ===
6177
- 'not_ready_for_decryption') {
6179
+ 'not_ready_for_decryption' ||
6180
+ value.label ===
6181
+ 'not_allowed_on_host_acl') {
6178
6182
  assertIsRelayerApiError400NoDetailsType(value, name);
6179
6183
  }
6180
6184
  // 400 (with details)
@@ -6225,6 +6229,7 @@ function assertIsRelayerV2ApiError(value, name) {
6225
6229
  'malformed_json',
6226
6230
  'request_error',
6227
6231
  'not_ready_for_decryption',
6232
+ 'not_allowed_on_host_acl',
6228
6233
  'missing_fields',
6229
6234
  'validation_failed',
6230
6235
  'rate_limited',
@@ -6252,7 +6257,9 @@ function assertIsRelayerV2ResponseFailedWithError400(value, name) {
6252
6257
  value.error.label ===
6253
6258
  'request_error' ||
6254
6259
  value.error.label ===
6255
- 'not_ready_for_decryption') {
6260
+ 'not_ready_for_decryption' ||
6261
+ value.error.label ===
6262
+ 'not_allowed_on_host_acl') {
6256
6263
  assertIsRelayerApiError400NoDetailsType(value.error, `${name}.error`);
6257
6264
  }
6258
6265
  else if (value.error.label ===
@@ -6270,6 +6277,7 @@ function assertIsRelayerV2ResponseFailedWithError400(value, name) {
6270
6277
  'malformed_json',
6271
6278
  'request_error',
6272
6279
  'not_ready_for_decryption',
6280
+ 'not_allowed_on_host_acl',
6273
6281
  'missing_fields',
6274
6282
  'validation_failed',
6275
6283
  ],
package/lib/web.d.ts CHANGED
@@ -1253,7 +1253,11 @@ export declare type PublicParams<T> = {
1253
1253
  };
1254
1254
 
1255
1255
  export declare type RelayerApiError400NoDetailsType = {
1256
- label: 'malformed_json' | 'request_error' | 'not_ready_for_decryption';
1256
+ label:
1257
+ | 'malformed_json'
1258
+ | 'request_error'
1259
+ | 'not_ready_for_decryption'
1260
+ | 'not_allowed_on_host_acl';
1257
1261
  message: string;
1258
1262
  };
1259
1263
 
package/lib/web.js CHANGED
@@ -26933,7 +26933,7 @@ async function __wbg_init(module_or_path) {
26933
26933
  }
26934
26934
 
26935
26935
  // This file is auto-generated
26936
- const version = '0.4.1';
26936
+ const version = '0.4.2';
26937
26937
  const sdkName = '@zama-fhe/relayer-sdk';
26938
26938
 
26939
26939
  class RelayerErrorBase extends Error {
@@ -32725,7 +32725,8 @@ function assertIsRelayerApiError400NoDetailsType(value, name) {
32725
32725
  assertRecordStringProperty(value, 'label', name);
32726
32726
  if (!(value.label === 'malformed_json' ||
32727
32727
  value.label === 'request_error' ||
32728
- value.label === 'not_ready_for_decryption')) {
32728
+ value.label === 'not_ready_for_decryption' ||
32729
+ value.label === 'not_allowed_on_host_acl')) {
32729
32730
  throw new InvalidPropertyError({
32730
32731
  objName: name,
32731
32732
  property: 'label',
@@ -32734,6 +32735,7 @@ function assertIsRelayerApiError400NoDetailsType(value, name) {
32734
32735
  'malformed_json',
32735
32736
  'request_error',
32736
32737
  'not_ready_for_decryption',
32738
+ 'not_allowed_on_host_acl',
32737
32739
  ],
32738
32740
  type: typeof value.label, // === "string"
32739
32741
  value: value.label,
@@ -32842,7 +32844,9 @@ function assertIsRelayerV2ApiError(value, name) {
32842
32844
  value.label ===
32843
32845
  'request_error' ||
32844
32846
  value.label ===
32845
- 'not_ready_for_decryption') {
32847
+ 'not_ready_for_decryption' ||
32848
+ value.label ===
32849
+ 'not_allowed_on_host_acl') {
32846
32850
  assertIsRelayerApiError400NoDetailsType(value, name);
32847
32851
  }
32848
32852
  // 400 (with details)
@@ -32893,6 +32897,7 @@ function assertIsRelayerV2ApiError(value, name) {
32893
32897
  'malformed_json',
32894
32898
  'request_error',
32895
32899
  'not_ready_for_decryption',
32900
+ 'not_allowed_on_host_acl',
32896
32901
  'missing_fields',
32897
32902
  'validation_failed',
32898
32903
  'rate_limited',
@@ -32920,7 +32925,9 @@ function assertIsRelayerV2ResponseFailedWithError400(value, name) {
32920
32925
  value.error.label ===
32921
32926
  'request_error' ||
32922
32927
  value.error.label ===
32923
- 'not_ready_for_decryption') {
32928
+ 'not_ready_for_decryption' ||
32929
+ value.error.label ===
32930
+ 'not_allowed_on_host_acl') {
32924
32931
  assertIsRelayerApiError400NoDetailsType(value.error, `${name}.error`);
32925
32932
  }
32926
32933
  else if (value.error.label ===
@@ -32938,6 +32945,7 @@ function assertIsRelayerV2ResponseFailedWithError400(value, name) {
32938
32945
  'malformed_json',
32939
32946
  'request_error',
32940
32947
  'not_ready_for_decryption',
32948
+ 'not_allowed_on_host_acl',
32941
32949
  'missing_fields',
32942
32950
  'validation_failed',
32943
32951
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zama-fhe/relayer-sdk",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "fhevm Relayer SDK",
5
5
  "main": "lib/node.js",
6
6
  "types": "lib/node.d.ts",