@aiqa/sdk 1.5.0-develop.2 → 1.5.0-develop.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.
@@ -3396,7 +3396,7 @@ var compareVersions = (left, right) => {
3396
3396
  // package.json
3397
3397
  var package_default = {
3398
3398
  name: "@aiqa/sdk",
3399
- version: "1.5.0-develop.1",
3399
+ version: "1.5.0-develop.2",
3400
3400
  main: "dist/node/node.js",
3401
3401
  module: "dist/node/node.js",
3402
3402
  types: "dist/node/node.d.ts",
@@ -3478,6 +3478,8 @@ var package_default = {
3478
3478
  var SDK_VERSION = package_default.version ?? "0.0.1";
3479
3479
  var DEFAULT_URL = "ws://localhost:3025/ws";
3480
3480
  var DEFAULT_TIMEOUT_MS = 6e4;
3481
+ var RUNTIME = typeof window !== "undefined" && typeof window.document !== "undefined" ? "browser" : "node";
3482
+ var USER_AGENT = RUNTIME === "browser" ? typeof navigator !== "undefined" ? navigator.userAgent : "browser/unknown" : typeof process !== "undefined" ? `node ${process.version} ${process.platform}` : "node/unknown";
3481
3483
  var AiQaSdk = class {
3482
3484
  constructor(applicationId, applicationSecret, url2) {
3483
3485
  this.socket = null;
@@ -3669,7 +3671,10 @@ var AiQaSdk = class {
3669
3671
  try {
3670
3672
  const result = await this.sendMessage("AUTHENTICATE" /* AUTHENTICATE */, {
3671
3673
  applicationId: this.applicationId,
3672
- applicationSecretKey: this.applicationSecretKey
3674
+ applicationSecretKey: this.applicationSecretKey,
3675
+ sdkVersion: SDK_VERSION,
3676
+ runtime: RUNTIME,
3677
+ userAgent: USER_AGENT
3673
3678
  });
3674
3679
  const application = result && result.data !== void 0 ? result.data : result;
3675
3680
  this.cachedApplication = application;