@smplkit/sdk 3.0.89 → 3.0.90

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/dist/index.cjs CHANGED
@@ -20296,11 +20296,26 @@ var HttpConfiguration = class {
20296
20296
  * (`"2xx"`, `"4xx"`). Defaults to `"2xx"`.
20297
20297
  */
20298
20298
  successStatus;
20299
+ /**
20300
+ * Whether to verify the destination's TLS certificate chain. Defaults
20301
+ * to `true`; flip to `false` only for short-lived testing against a
20302
+ * destination that serves an untrusted certificate. Prefer pinning the
20303
+ * CA via {@link caCert} for long-lived self-signed setups.
20304
+ */
20305
+ tlsVerify;
20306
+ /**
20307
+ * Optional PEM-encoded certificate (or bundle) trusted in addition to
20308
+ * the system CA store. Ignored when {@link tlsVerify} is `false`.
20309
+ * `null` (the default) means "use system CAs only".
20310
+ */
20311
+ caCert;
20299
20312
  constructor(fields = {}) {
20300
20313
  this.method = fields.method ?? "POST" /* POST */;
20301
20314
  this.url = fields.url ?? "";
20302
20315
  this.headers = fields.headers ?? [];
20303
20316
  this.successStatus = fields.successStatus ?? "2xx";
20317
+ this.tlsVerify = fields.tlsVerify ?? true;
20318
+ this.caCert = fields.caCert ?? null;
20304
20319
  }
20305
20320
  };
20306
20321
  var Forwarder = class {
@@ -20455,7 +20470,9 @@ function _configurationToWire(config) {
20455
20470
  method: config.method,
20456
20471
  url: config.url,
20457
20472
  headers: config.headers.map((h) => ({ name: h.name, value: h.value })),
20458
- success_status: config.successStatus
20473
+ success_status: config.successStatus,
20474
+ tls_verify: config.tlsVerify,
20475
+ ca_cert: config.caCert
20459
20476
  };
20460
20477
  }
20461
20478
  function _configurationFromWire(raw) {
@@ -20468,7 +20485,9 @@ function _configurationFromWire(raw) {
20468
20485
  method: r.method ?? "POST" /* POST */,
20469
20486
  url: String(r.url ?? ""),
20470
20487
  headers,
20471
- successStatus: String(r.success_status ?? "2xx")
20488
+ successStatus: String(r.success_status ?? "2xx"),
20489
+ tlsVerify: r.tls_verify === void 0 ? true : Boolean(r.tls_verify),
20490
+ caCert: r.ca_cert == null ? null : String(r.ca_cert)
20472
20491
  });
20473
20492
  }
20474
20493
  function _forwarderAttrs(forwarder) {