agentmail 0.2.13 → 0.2.14

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.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "agentmail",
46
- "X-Fern-SDK-Version": "0.2.13",
47
- "User-Agent": "agentmail/0.2.13",
46
+ "X-Fern-SDK-Version": "0.2.14",
47
+ "User-Agent": "agentmail/0.2.14",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -4,7 +4,7 @@ import { WebsocketsSocket } from "./Socket.js";
4
4
  export declare namespace WebsocketsClient {
5
5
  type Options = BaseClientOptions;
6
6
  interface ConnectArgs {
7
- authToken?: string;
7
+ apiKey: string;
8
8
  /** Additional query parameters to send with the websocket connect request. */
9
9
  queryParams?: Record<string, unknown>;
10
10
  /** Arbitrary headers to send with the websocket connect request. */
@@ -18,5 +18,5 @@ export declare namespace WebsocketsClient {
18
18
  export declare class WebsocketsClient {
19
19
  protected readonly _options: NormalizedClientOptionsWithAuth<WebsocketsClient.Options>;
20
20
  constructor(options?: WebsocketsClient.Options);
21
- connect(args?: WebsocketsClient.ConnectArgs): Promise<WebsocketsSocket>;
21
+ connect(args: WebsocketsClient.ConnectArgs): Promise<WebsocketsSocket>;
22
22
  }
@@ -53,12 +53,12 @@ class WebsocketsClient {
53
53
  constructor(options = {}) {
54
54
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
55
55
  }
56
- connect() {
57
- return __awaiter(this, arguments, void 0, function* (args = {}) {
56
+ connect(args) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
58
  var _a, _b;
59
- const { authToken, queryParams, headers, debug, reconnectAttempts } = args;
59
+ const { apiKey, queryParams, headers, debug, reconnectAttempts } = args;
60
60
  const _queryParams = {
61
- auth_token: authToken,
61
+ api_key: apiKey,
62
62
  };
63
63
  const _authRequest = yield this._options.authProvider.getAuthRequest();
64
64
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, headers);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.2.13";
1
+ export declare const SDK_VERSION = "0.2.14";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.2.13";
4
+ exports.SDK_VERSION = "0.2.14";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "agentmail",
9
- "X-Fern-SDK-Version": "0.2.13",
10
- "User-Agent": "agentmail/0.2.13",
9
+ "X-Fern-SDK-Version": "0.2.14",
10
+ "User-Agent": "agentmail/0.2.14",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -4,7 +4,7 @@ import { WebsocketsSocket } from "./Socket.mjs";
4
4
  export declare namespace WebsocketsClient {
5
5
  type Options = BaseClientOptions;
6
6
  interface ConnectArgs {
7
- authToken?: string;
7
+ apiKey: string;
8
8
  /** Additional query parameters to send with the websocket connect request. */
9
9
  queryParams?: Record<string, unknown>;
10
10
  /** Arbitrary headers to send with the websocket connect request. */
@@ -18,5 +18,5 @@ export declare namespace WebsocketsClient {
18
18
  export declare class WebsocketsClient {
19
19
  protected readonly _options: NormalizedClientOptionsWithAuth<WebsocketsClient.Options>;
20
20
  constructor(options?: WebsocketsClient.Options);
21
- connect(args?: WebsocketsClient.ConnectArgs): Promise<WebsocketsSocket>;
21
+ connect(args: WebsocketsClient.ConnectArgs): Promise<WebsocketsSocket>;
22
22
  }
@@ -17,12 +17,12 @@ export class WebsocketsClient {
17
17
  constructor(options = {}) {
18
18
  this._options = normalizeClientOptionsWithAuth(options);
19
19
  }
20
- connect() {
21
- return __awaiter(this, arguments, void 0, function* (args = {}) {
20
+ connect(args) {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
22
  var _a, _b;
23
- const { authToken, queryParams, headers, debug, reconnectAttempts } = args;
23
+ const { apiKey, queryParams, headers, debug, reconnectAttempts } = args;
24
24
  const _queryParams = {
25
- auth_token: authToken,
25
+ api_key: apiKey,
26
26
  };
27
27
  const _authRequest = yield this._options.authProvider.getAuthRequest();
28
28
  const _headers = mergeHeaders(_authRequest.headers, headers);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.2.13";
1
+ export declare const SDK_VERSION = "0.2.14";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.2.13";
1
+ export const SDK_VERSION = "0.2.14";