agentmail 0.0.54 → 0.0.55
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/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/drafts/client/Client.js +7 -1
- package/dist/cjs/api/resources/drafts/client/requests/ListDraftsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.js +7 -1
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/requests/ListDraftsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.js +7 -1
- package/dist/cjs/api/resources/inboxes/resources/messages/client/requests/ListMessagesRequest.d.ts +2 -0
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +7 -1
- package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/ListThreadsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/threads/client/Client.js +7 -1
- package/dist/cjs/api/resources/threads/client/requests/ListThreadsRequest.d.ts +2 -0
- package/dist/cjs/api/types/After.d.ts +7 -0
- package/dist/cjs/api/types/After.js +5 -0
- package/dist/cjs/api/types/Before.d.ts +7 -0
- package/dist/cjs/api/types/Before.js +5 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/drafts/client/Client.mjs +7 -1
- package/dist/esm/api/resources/drafts/client/requests/ListDraftsRequest.d.mts +2 -0
- package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.mjs +7 -1
- package/dist/esm/api/resources/inboxes/resources/drafts/client/requests/ListDraftsRequest.d.mts +2 -0
- package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +7 -1
- package/dist/esm/api/resources/inboxes/resources/messages/client/requests/ListMessagesRequest.d.mts +2 -0
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +7 -1
- package/dist/esm/api/resources/inboxes/resources/threads/client/requests/ListThreadsRequest.d.mts +2 -0
- package/dist/esm/api/resources/threads/client/Client.mjs +7 -1
- package/dist/esm/api/resources/threads/client/requests/ListThreadsRequest.d.mts +2 -0
- package/dist/esm/api/types/After.d.mts +7 -0
- package/dist/esm/api/types/After.mjs +4 -0
- package/dist/esm/api/types/Before.d.mts +7 -0
- package/dist/esm/api/types/Before.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/Client.js
CHANGED
|
@@ -51,8 +51,8 @@ class AgentMailClient {
|
|
|
51
51
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
52
52
|
"X-Fern-Language": "JavaScript",
|
|
53
53
|
"X-Fern-SDK-Name": "agentmail",
|
|
54
|
-
"X-Fern-SDK-Version": "0.0.
|
|
55
|
-
"User-Agent": "agentmail/0.0.
|
|
54
|
+
"X-Fern-SDK-Version": "0.0.55",
|
|
55
|
+
"User-Agent": "agentmail/0.0.55",
|
|
56
56
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
57
57
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
58
58
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -71,7 +71,7 @@ class Drafts {
|
|
|
71
71
|
__list() {
|
|
72
72
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
73
73
|
var _a, _b, _c;
|
|
74
|
-
const { limit, page_token: pageToken, labels, ascending } = request;
|
|
74
|
+
const { limit, page_token: pageToken, labels, before, after, ascending } = request;
|
|
75
75
|
const _queryParams = {};
|
|
76
76
|
if (limit != null) {
|
|
77
77
|
_queryParams["limit"] = limit.toString();
|
|
@@ -82,6 +82,12 @@ class Drafts {
|
|
|
82
82
|
if (labels != null) {
|
|
83
83
|
_queryParams["labels"] = (0, json_js_1.toJson)(labels);
|
|
84
84
|
}
|
|
85
|
+
if (before != null) {
|
|
86
|
+
_queryParams["before"] = before;
|
|
87
|
+
}
|
|
88
|
+
if (after != null) {
|
|
89
|
+
_queryParams["after"] = after;
|
|
90
|
+
}
|
|
85
91
|
if (ascending != null) {
|
|
86
92
|
_queryParams["ascending"] = ascending.toString();
|
|
87
93
|
}
|
|
@@ -72,7 +72,7 @@ class Drafts {
|
|
|
72
72
|
__list(inboxId_1) {
|
|
73
73
|
return __awaiter(this, arguments, void 0, function* (inboxId, request = {}, requestOptions) {
|
|
74
74
|
var _a, _b, _c;
|
|
75
|
-
const { limit, page_token: pageToken, labels, ascending } = request;
|
|
75
|
+
const { limit, page_token: pageToken, labels, before, after, ascending } = request;
|
|
76
76
|
const _queryParams = {};
|
|
77
77
|
if (limit != null) {
|
|
78
78
|
_queryParams["limit"] = limit.toString();
|
|
@@ -83,6 +83,12 @@ class Drafts {
|
|
|
83
83
|
if (labels != null) {
|
|
84
84
|
_queryParams["labels"] = (0, json_js_1.toJson)(labels);
|
|
85
85
|
}
|
|
86
|
+
if (before != null) {
|
|
87
|
+
_queryParams["before"] = before;
|
|
88
|
+
}
|
|
89
|
+
if (after != null) {
|
|
90
|
+
_queryParams["after"] = after;
|
|
91
|
+
}
|
|
86
92
|
if (ascending != null) {
|
|
87
93
|
_queryParams["ascending"] = ascending.toString();
|
|
88
94
|
}
|
|
@@ -72,7 +72,7 @@ class Messages {
|
|
|
72
72
|
__list(inboxId_1) {
|
|
73
73
|
return __awaiter(this, arguments, void 0, function* (inboxId, request = {}, requestOptions) {
|
|
74
74
|
var _a, _b, _c;
|
|
75
|
-
const { limit, page_token: pageToken, labels, ascending } = request;
|
|
75
|
+
const { limit, page_token: pageToken, labels, before, after, ascending } = request;
|
|
76
76
|
const _queryParams = {};
|
|
77
77
|
if (limit != null) {
|
|
78
78
|
_queryParams["limit"] = limit.toString();
|
|
@@ -83,6 +83,12 @@ class Messages {
|
|
|
83
83
|
if (labels != null) {
|
|
84
84
|
_queryParams["labels"] = (0, json_js_1.toJson)(labels);
|
|
85
85
|
}
|
|
86
|
+
if (before != null) {
|
|
87
|
+
_queryParams["before"] = before;
|
|
88
|
+
}
|
|
89
|
+
if (after != null) {
|
|
90
|
+
_queryParams["after"] = after;
|
|
91
|
+
}
|
|
86
92
|
if (ascending != null) {
|
|
87
93
|
_queryParams["ascending"] = ascending.toString();
|
|
88
94
|
}
|
|
@@ -72,7 +72,7 @@ class Threads {
|
|
|
72
72
|
__list(inboxId_1) {
|
|
73
73
|
return __awaiter(this, arguments, void 0, function* (inboxId, request = {}, requestOptions) {
|
|
74
74
|
var _a, _b, _c;
|
|
75
|
-
const { limit, page_token: pageToken, labels, ascending } = request;
|
|
75
|
+
const { limit, page_token: pageToken, labels, before, after, ascending } = request;
|
|
76
76
|
const _queryParams = {};
|
|
77
77
|
if (limit != null) {
|
|
78
78
|
_queryParams["limit"] = limit.toString();
|
|
@@ -83,6 +83,12 @@ class Threads {
|
|
|
83
83
|
if (labels != null) {
|
|
84
84
|
_queryParams["labels"] = (0, json_js_1.toJson)(labels);
|
|
85
85
|
}
|
|
86
|
+
if (before != null) {
|
|
87
|
+
_queryParams["before"] = before;
|
|
88
|
+
}
|
|
89
|
+
if (after != null) {
|
|
90
|
+
_queryParams["after"] = after;
|
|
91
|
+
}
|
|
86
92
|
if (ascending != null) {
|
|
87
93
|
_queryParams["ascending"] = ascending.toString();
|
|
88
94
|
}
|
|
@@ -71,7 +71,7 @@ class Threads {
|
|
|
71
71
|
__list() {
|
|
72
72
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
73
73
|
var _a, _b, _c;
|
|
74
|
-
const { limit, page_token: pageToken, labels, ascending } = request;
|
|
74
|
+
const { limit, page_token: pageToken, labels, before, after, ascending } = request;
|
|
75
75
|
const _queryParams = {};
|
|
76
76
|
if (limit != null) {
|
|
77
77
|
_queryParams["limit"] = limit.toString();
|
|
@@ -82,6 +82,12 @@ class Threads {
|
|
|
82
82
|
if (labels != null) {
|
|
83
83
|
_queryParams["labels"] = (0, json_js_1.toJson)(labels);
|
|
84
84
|
}
|
|
85
|
+
if (before != null) {
|
|
86
|
+
_queryParams["before"] = before;
|
|
87
|
+
}
|
|
88
|
+
if (after != null) {
|
|
89
|
+
_queryParams["after"] = after;
|
|
90
|
+
}
|
|
85
91
|
if (ascending != null) {
|
|
86
92
|
_queryParams["ascending"] = ascending.toString();
|
|
87
93
|
}
|
|
@@ -2,6 +2,8 @@ export * from "./Limit.js";
|
|
|
2
2
|
export * from "./Count.js";
|
|
3
3
|
export * from "./PageToken.js";
|
|
4
4
|
export * from "./Labels.js";
|
|
5
|
+
export * from "./Before.js";
|
|
6
|
+
export * from "./After.js";
|
|
5
7
|
export * from "./Ascending.js";
|
|
6
8
|
export * from "./OrganizationId.js";
|
|
7
9
|
export * from "./ErrorName.js";
|
|
@@ -18,6 +18,8 @@ __exportStar(require("./Limit.js"), exports);
|
|
|
18
18
|
__exportStar(require("./Count.js"), exports);
|
|
19
19
|
__exportStar(require("./PageToken.js"), exports);
|
|
20
20
|
__exportStar(require("./Labels.js"), exports);
|
|
21
|
+
__exportStar(require("./Before.js"), exports);
|
|
22
|
+
__exportStar(require("./After.js"), exports);
|
|
21
23
|
__exportStar(require("./Ascending.js"), exports);
|
|
22
24
|
__exportStar(require("./OrganizationId.js"), exports);
|
|
23
25
|
__exportStar(require("./ErrorName.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.55";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -15,8 +15,8 @@ export class AgentMailClient {
|
|
|
15
15
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
16
16
|
"X-Fern-Language": "JavaScript",
|
|
17
17
|
"X-Fern-SDK-Name": "agentmail",
|
|
18
|
-
"X-Fern-SDK-Version": "0.0.
|
|
19
|
-
"User-Agent": "agentmail/0.0.
|
|
18
|
+
"X-Fern-SDK-Version": "0.0.55",
|
|
19
|
+
"User-Agent": "agentmail/0.0.55",
|
|
20
20
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
21
21
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
22
22
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -35,7 +35,7 @@ export class Drafts {
|
|
|
35
35
|
__list() {
|
|
36
36
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
37
37
|
var _a, _b, _c;
|
|
38
|
-
const { limit, page_token: pageToken, labels, ascending } = request;
|
|
38
|
+
const { limit, page_token: pageToken, labels, before, after, ascending } = request;
|
|
39
39
|
const _queryParams = {};
|
|
40
40
|
if (limit != null) {
|
|
41
41
|
_queryParams["limit"] = limit.toString();
|
|
@@ -46,6 +46,12 @@ export class Drafts {
|
|
|
46
46
|
if (labels != null) {
|
|
47
47
|
_queryParams["labels"] = toJson(labels);
|
|
48
48
|
}
|
|
49
|
+
if (before != null) {
|
|
50
|
+
_queryParams["before"] = before;
|
|
51
|
+
}
|
|
52
|
+
if (after != null) {
|
|
53
|
+
_queryParams["after"] = after;
|
|
54
|
+
}
|
|
49
55
|
if (ascending != null) {
|
|
50
56
|
_queryParams["ascending"] = ascending.toString();
|
|
51
57
|
}
|
|
@@ -36,7 +36,7 @@ export class Drafts {
|
|
|
36
36
|
__list(inboxId_1) {
|
|
37
37
|
return __awaiter(this, arguments, void 0, function* (inboxId, request = {}, requestOptions) {
|
|
38
38
|
var _a, _b, _c;
|
|
39
|
-
const { limit, page_token: pageToken, labels, ascending } = request;
|
|
39
|
+
const { limit, page_token: pageToken, labels, before, after, ascending } = request;
|
|
40
40
|
const _queryParams = {};
|
|
41
41
|
if (limit != null) {
|
|
42
42
|
_queryParams["limit"] = limit.toString();
|
|
@@ -47,6 +47,12 @@ export class Drafts {
|
|
|
47
47
|
if (labels != null) {
|
|
48
48
|
_queryParams["labels"] = toJson(labels);
|
|
49
49
|
}
|
|
50
|
+
if (before != null) {
|
|
51
|
+
_queryParams["before"] = before;
|
|
52
|
+
}
|
|
53
|
+
if (after != null) {
|
|
54
|
+
_queryParams["after"] = after;
|
|
55
|
+
}
|
|
50
56
|
if (ascending != null) {
|
|
51
57
|
_queryParams["ascending"] = ascending.toString();
|
|
52
58
|
}
|
|
@@ -36,7 +36,7 @@ export class Messages {
|
|
|
36
36
|
__list(inboxId_1) {
|
|
37
37
|
return __awaiter(this, arguments, void 0, function* (inboxId, request = {}, requestOptions) {
|
|
38
38
|
var _a, _b, _c;
|
|
39
|
-
const { limit, page_token: pageToken, labels, ascending } = request;
|
|
39
|
+
const { limit, page_token: pageToken, labels, before, after, ascending } = request;
|
|
40
40
|
const _queryParams = {};
|
|
41
41
|
if (limit != null) {
|
|
42
42
|
_queryParams["limit"] = limit.toString();
|
|
@@ -47,6 +47,12 @@ export class Messages {
|
|
|
47
47
|
if (labels != null) {
|
|
48
48
|
_queryParams["labels"] = toJson(labels);
|
|
49
49
|
}
|
|
50
|
+
if (before != null) {
|
|
51
|
+
_queryParams["before"] = before;
|
|
52
|
+
}
|
|
53
|
+
if (after != null) {
|
|
54
|
+
_queryParams["after"] = after;
|
|
55
|
+
}
|
|
50
56
|
if (ascending != null) {
|
|
51
57
|
_queryParams["ascending"] = ascending.toString();
|
|
52
58
|
}
|
|
@@ -36,7 +36,7 @@ export class Threads {
|
|
|
36
36
|
__list(inboxId_1) {
|
|
37
37
|
return __awaiter(this, arguments, void 0, function* (inboxId, request = {}, requestOptions) {
|
|
38
38
|
var _a, _b, _c;
|
|
39
|
-
const { limit, page_token: pageToken, labels, ascending } = request;
|
|
39
|
+
const { limit, page_token: pageToken, labels, before, after, ascending } = request;
|
|
40
40
|
const _queryParams = {};
|
|
41
41
|
if (limit != null) {
|
|
42
42
|
_queryParams["limit"] = limit.toString();
|
|
@@ -47,6 +47,12 @@ export class Threads {
|
|
|
47
47
|
if (labels != null) {
|
|
48
48
|
_queryParams["labels"] = toJson(labels);
|
|
49
49
|
}
|
|
50
|
+
if (before != null) {
|
|
51
|
+
_queryParams["before"] = before;
|
|
52
|
+
}
|
|
53
|
+
if (after != null) {
|
|
54
|
+
_queryParams["after"] = after;
|
|
55
|
+
}
|
|
50
56
|
if (ascending != null) {
|
|
51
57
|
_queryParams["ascending"] = ascending.toString();
|
|
52
58
|
}
|
|
@@ -35,7 +35,7 @@ export class Threads {
|
|
|
35
35
|
__list() {
|
|
36
36
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
37
37
|
var _a, _b, _c;
|
|
38
|
-
const { limit, page_token: pageToken, labels, ascending } = request;
|
|
38
|
+
const { limit, page_token: pageToken, labels, before, after, ascending } = request;
|
|
39
39
|
const _queryParams = {};
|
|
40
40
|
if (limit != null) {
|
|
41
41
|
_queryParams["limit"] = limit.toString();
|
|
@@ -46,6 +46,12 @@ export class Threads {
|
|
|
46
46
|
if (labels != null) {
|
|
47
47
|
_queryParams["labels"] = toJson(labels);
|
|
48
48
|
}
|
|
49
|
+
if (before != null) {
|
|
50
|
+
_queryParams["before"] = before;
|
|
51
|
+
}
|
|
52
|
+
if (after != null) {
|
|
53
|
+
_queryParams["after"] = after;
|
|
54
|
+
}
|
|
49
55
|
if (ascending != null) {
|
|
50
56
|
_queryParams["ascending"] = ascending.toString();
|
|
51
57
|
}
|
|
@@ -2,6 +2,8 @@ export * from "./Limit.mjs";
|
|
|
2
2
|
export * from "./Count.mjs";
|
|
3
3
|
export * from "./PageToken.mjs";
|
|
4
4
|
export * from "./Labels.mjs";
|
|
5
|
+
export * from "./Before.mjs";
|
|
6
|
+
export * from "./After.mjs";
|
|
5
7
|
export * from "./Ascending.mjs";
|
|
6
8
|
export * from "./OrganizationId.mjs";
|
|
7
9
|
export * from "./ErrorName.mjs";
|
|
@@ -2,6 +2,8 @@ export * from "./Limit.mjs";
|
|
|
2
2
|
export * from "./Count.mjs";
|
|
3
3
|
export * from "./PageToken.mjs";
|
|
4
4
|
export * from "./Labels.mjs";
|
|
5
|
+
export * from "./Before.mjs";
|
|
6
|
+
export * from "./After.mjs";
|
|
5
7
|
export * from "./Ascending.mjs";
|
|
6
8
|
export * from "./OrganizationId.mjs";
|
|
7
9
|
export * from "./ErrorName.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.55";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.55";
|