agentmail 0.2.14 → 0.2.15

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.14",
47
- "User-Agent": "agentmail/0.2.14",
46
+ "X-Fern-SDK-Version": "0.2.15",
47
+ "User-Agent": "agentmail/0.2.15",
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
- apiKey: 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,8 +53,8 @@ class WebsocketsClient {
53
53
  constructor(options = {}) {
54
54
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
55
55
  }
56
- connect(args) {
57
- return __awaiter(this, void 0, void 0, function* () {
56
+ connect() {
57
+ return __awaiter(this, arguments, void 0, function* (args = {}) {
58
58
  var _a, _b;
59
59
  const { apiKey, queryParams, headers, debug, reconnectAttempts } = args;
60
60
  const _queryParams = {
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.2.14";
1
+ export declare const SDK_VERSION = "0.2.15";
@@ -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.14";
4
+ exports.SDK_VERSION = "0.2.15";
@@ -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.14",
10
- "User-Agent": "agentmail/0.2.14",
9
+ "X-Fern-SDK-Version": "0.2.15",
10
+ "User-Agent": "agentmail/0.2.15",
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
- apiKey: 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,8 +17,8 @@ export class WebsocketsClient {
17
17
  constructor(options = {}) {
18
18
  this._options = normalizeClientOptionsWithAuth(options);
19
19
  }
20
- connect(args) {
21
- return __awaiter(this, void 0, void 0, function* () {
20
+ connect() {
21
+ return __awaiter(this, arguments, void 0, function* (args = {}) {
22
22
  var _a, _b;
23
23
  const { apiKey, queryParams, headers, debug, reconnectAttempts } = args;
24
24
  const _queryParams = {
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.2.14";
1
+ export declare const SDK_VERSION = "0.2.15";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.2.14";
1
+ export const SDK_VERSION = "0.2.15";
@@ -21826,7 +21826,7 @@ channels:
21826
21826
  query:
21827
21827
  type: object
21828
21828
  properties:
21829
- auth_token:
21829
+ api_key:
21830
21830
  type: string
21831
21831
  publish:
21832
21832
  operationId: websockets-publish
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentmail",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",