agentmail 0.3.4 → 0.3.5

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.3.4",
47
- "User-Agent": "agentmail/0.3.4",
46
+ "X-Fern-SDK-Version": "0.3.5",
47
+ "User-Agent": "agentmail/0.3.5",
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);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.3.4";
1
+ export declare const SDK_VERSION = "0.3.5";
@@ -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.3.4";
4
+ exports.SDK_VERSION = "0.3.5";
@@ -1,7 +1,7 @@
1
1
  export interface MppxClient {
2
2
  fetch: typeof globalThis.fetch;
3
3
  transport: {
4
- setCredential(request: Request, credential: string): Request;
4
+ setCredential(request: Request, credential: string): RequestInit;
5
5
  };
6
6
  createCredential(response: Response): Promise<string>;
7
7
  }
@@ -17,7 +17,7 @@ function getPaymentCredentials(wsUrl, mppx) {
17
17
  const credential = yield mppx.createCredential(response);
18
18
  const signed = mppx.transport.setCredential(new Request((0, util_js_1.wsToHttp)(wsUrl)), credential);
19
19
  const headers = {};
20
- signed.headers.forEach((value, key) => {
20
+ new Headers(signed.headers).forEach((value, key) => {
21
21
  headers[key] = value;
22
22
  });
23
23
  return headers;
@@ -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.3.4",
10
- "User-Agent": "agentmail/0.3.4",
9
+ "X-Fern-SDK-Version": "0.3.5",
10
+ "User-Agent": "agentmail/0.3.5",
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);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.3.4";
1
+ export declare const SDK_VERSION = "0.3.5";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.3.4";
1
+ export const SDK_VERSION = "0.3.5";
@@ -1,7 +1,7 @@
1
1
  export interface MppxClient {
2
2
  fetch: typeof globalThis.fetch;
3
3
  transport: {
4
- setCredential(request: Request, credential: string): Request;
4
+ setCredential(request: Request, credential: string): RequestInit;
5
5
  };
6
6
  createCredential(response: Response): Promise<string>;
7
7
  }
@@ -14,7 +14,7 @@ export function getPaymentCredentials(wsUrl, mppx) {
14
14
  const credential = yield mppx.createCredential(response);
15
15
  const signed = mppx.transport.setCredential(new Request(wsToHttp(wsUrl)), credential);
16
16
  const headers = {};
17
- signed.headers.forEach((value, key) => {
17
+ new Headers(signed.headers).forEach((value, key) => {
18
18
  headers[key] = value;
19
19
  });
20
20
  return headers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentmail",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",