agentmail 0.0.22 → 0.0.23
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/api/resources/inboxes/client/Client.js +3 -3
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +1 -0
- package/api/resources/messages/client/Client.d.ts +2 -0
- package/api/resources/messages/client/Client.js +26 -12
- package/api/resources/messages/client/requests/ListMessagesRequest.d.ts +1 -2
- package/api/resources/messages/errors/MessageRejectedError.d.ts +8 -0
- package/{dist/serialization/resources/webhooks/types/Payload.js → api/resources/messages/errors/MessageRejectedError.js} +13 -8
- package/api/resources/messages/errors/index.d.ts +1 -0
- package/api/resources/messages/errors/index.js +17 -0
- package/api/resources/messages/index.d.ts +1 -0
- package/api/resources/messages/index.js +1 -0
- package/api/resources/messages/types/SendMessageResponse.d.ts +1 -0
- package/api/resources/threads/client/Client.js +7 -9
- package/api/resources/threads/client/requests/ListThreadsRequest.d.ts +1 -2
- package/api/resources/webhooks/client/Client.js +4 -4
- package/api/resources/webhooks/types/MessageReceivedPayload.d.ts +3 -1
- package/api/resources/webhooks/types/index.d.ts +0 -1
- package/api/resources/webhooks/types/index.js +0 -1
- package/api/types/{Sent.d.ts → Labels.d.ts} +2 -2
- package/api/types/index.d.ts +1 -2
- package/api/types/index.js +1 -2
- package/dist/api/resources/inboxes/client/Client.js +3 -3
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +1 -0
- package/dist/api/resources/messages/client/Client.d.ts +2 -0
- package/dist/api/resources/messages/client/Client.js +26 -12
- package/dist/api/resources/messages/client/requests/ListMessagesRequest.d.ts +1 -2
- package/dist/api/resources/messages/errors/MessageRejectedError.d.ts +8 -0
- package/dist/{serialization/types/Sent.js → api/resources/messages/errors/MessageRejectedError.js} +13 -3
- package/dist/api/resources/messages/errors/index.d.ts +1 -0
- package/dist/api/resources/messages/errors/index.js +17 -0
- package/dist/api/resources/messages/index.d.ts +1 -0
- package/dist/api/resources/messages/index.js +1 -0
- package/dist/api/resources/messages/types/SendMessageResponse.d.ts +1 -0
- package/dist/api/resources/threads/client/Client.js +7 -9
- package/dist/api/resources/threads/client/requests/ListThreadsRequest.d.ts +1 -2
- package/dist/api/resources/webhooks/client/Client.js +4 -4
- package/dist/api/resources/webhooks/types/MessageReceivedPayload.d.ts +3 -1
- package/dist/api/resources/webhooks/types/index.d.ts +0 -1
- package/dist/api/resources/webhooks/types/index.js +0 -1
- package/dist/api/types/{Sent.d.ts → Labels.d.ts} +2 -2
- package/dist/api/types/index.d.ts +1 -2
- package/dist/api/types/index.js +1 -2
- package/dist/serialization/resources/messages/types/SendMessageResponse.d.ts +2 -0
- package/dist/serialization/resources/messages/types/SendMessageResponse.js +2 -0
- package/dist/serialization/resources/webhooks/types/MessageReceivedPayload.d.ts +5 -2
- package/dist/serialization/resources/webhooks/types/MessageReceivedPayload.js +6 -5
- package/dist/serialization/resources/webhooks/types/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/types/index.js +0 -1
- package/{serialization/types/Sent.d.ts → dist/serialization/types/Labels.d.ts} +3 -3
- package/{serialization/types/Received.js → dist/serialization/types/Labels.js} +2 -2
- package/dist/serialization/types/index.d.ts +1 -2
- package/dist/serialization/types/index.js +1 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/resources/messages/types/SendMessageResponse.d.ts +2 -0
- package/serialization/resources/messages/types/SendMessageResponse.js +2 -0
- package/serialization/resources/webhooks/types/MessageReceivedPayload.d.ts +5 -2
- package/serialization/resources/webhooks/types/MessageReceivedPayload.js +6 -5
- package/serialization/resources/webhooks/types/index.d.ts +0 -1
- package/serialization/resources/webhooks/types/index.js +0 -1
- package/{dist/serialization/types/Sent.d.ts → serialization/types/Labels.d.ts} +3 -3
- package/{dist/serialization/types/Received.js → serialization/types/Labels.js} +2 -2
- package/serialization/types/index.d.ts +1 -2
- package/serialization/types/index.js +1 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/webhooks/types/Payload.d.ts +0 -8
- package/api/types/Received.d.ts +0 -7
- package/api/types/Sent.js +0 -5
- package/dist/api/resources/webhooks/types/Payload.d.ts +0 -8
- package/dist/api/resources/webhooks/types/Payload.js +0 -5
- package/dist/api/types/Received.d.ts +0 -7
- package/dist/api/types/Received.js +0 -5
- package/dist/api/types/Sent.js +0 -5
- package/dist/serialization/resources/webhooks/types/Payload.d.ts +0 -15
- package/dist/serialization/types/Received.d.ts +0 -10
- package/serialization/resources/webhooks/types/Payload.d.ts +0 -15
- package/serialization/resources/webhooks/types/Payload.js +0 -46
- package/serialization/types/Received.d.ts +0 -10
- package/serialization/types/Sent.js +0 -41
- /package/api/{resources/webhooks/types/Payload.js → types/Labels.js} +0 -0
- /package/{api/types/Received.js → dist/api/types/Labels.js} +0 -0
|
@@ -36,6 +36,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.Labels = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
exports.
|
|
41
|
+
exports.Labels = core.serialization.list(core.serialization.string());
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export * from "./Received";
|
|
2
|
-
export * from "./Sent";
|
|
3
1
|
export * from "./Limit";
|
|
4
2
|
export * from "./Count";
|
|
5
3
|
export * from "./LastKey";
|
|
4
|
+
export * from "./Labels";
|
|
6
5
|
export * from "./OrganizationId";
|
|
7
6
|
export * from "./ErrorName";
|
|
8
7
|
export * from "./ErrorResponse";
|
|
@@ -14,11 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./Received"), exports);
|
|
18
|
-
__exportStar(require("./Sent"), exports);
|
|
19
17
|
__exportStar(require("./Limit"), exports);
|
|
20
18
|
__exportStar(require("./Count"), exports);
|
|
21
19
|
__exportStar(require("./LastKey"), exports);
|
|
20
|
+
__exportStar(require("./Labels"), exports);
|
|
22
21
|
__exportStar(require("./OrganizationId"), exports);
|
|
23
22
|
__exportStar(require("./ErrorName"), exports);
|
|
24
23
|
__exportStar(require("./ErrorResponse"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.23";
|
package/version.js
CHANGED
package/api/types/Received.d.ts
DELETED
package/api/types/Sent.js
DELETED
package/dist/api/types/Sent.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index";
|
|
5
|
-
import * as AgentMail from "../../../../api/index";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
import { EventType } from "./EventType";
|
|
8
|
-
import { EventId } from "./EventId";
|
|
9
|
-
export declare const Payload: core.serialization.ObjectSchema<serializers.Payload.Raw, AgentMail.Payload>;
|
|
10
|
-
export declare namespace Payload {
|
|
11
|
-
interface Raw {
|
|
12
|
-
event_type: EventType.Raw;
|
|
13
|
-
event_id: EventId.Raw;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../index";
|
|
5
|
-
import * as AgentMail from "../../api/index";
|
|
6
|
-
import * as core from "../../core";
|
|
7
|
-
export declare const Received: core.serialization.Schema<serializers.Received.Raw, AgentMail.Received>;
|
|
8
|
-
export declare namespace Received {
|
|
9
|
-
type Raw = boolean;
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index";
|
|
5
|
-
import * as AgentMail from "../../../../api/index";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
import { EventType } from "./EventType";
|
|
8
|
-
import { EventId } from "./EventId";
|
|
9
|
-
export declare const Payload: core.serialization.ObjectSchema<serializers.Payload.Raw, AgentMail.Payload>;
|
|
10
|
-
export declare namespace Payload {
|
|
11
|
-
interface Raw {
|
|
12
|
-
event_type: EventType.Raw;
|
|
13
|
-
event_id: EventId.Raw;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Payload = void 0;
|
|
40
|
-
const core = __importStar(require("../../../../core"));
|
|
41
|
-
const EventType_1 = require("./EventType");
|
|
42
|
-
const EventId_1 = require("./EventId");
|
|
43
|
-
exports.Payload = core.serialization.object({
|
|
44
|
-
eventType: core.serialization.property("event_type", EventType_1.EventType),
|
|
45
|
-
eventId: core.serialization.property("event_id", EventId_1.EventId),
|
|
46
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../index";
|
|
5
|
-
import * as AgentMail from "../../api/index";
|
|
6
|
-
import * as core from "../../core";
|
|
7
|
-
export declare const Received: core.serialization.Schema<serializers.Received.Raw, AgentMail.Received>;
|
|
8
|
-
export declare namespace Received {
|
|
9
|
-
type Raw = boolean;
|
|
10
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Sent = void 0;
|
|
40
|
-
const core = __importStar(require("../../core"));
|
|
41
|
-
exports.Sent = core.serialization.boolean();
|
|
File without changes
|
|
File without changes
|