agentmail 0.0.21 → 0.0.22
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/Client.d.ts +3 -0
- package/Client.js +5 -0
- package/api/resources/inboxes/client/Client.js +3 -3
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/messages/client/Client.js +5 -5
- package/api/resources/threads/client/Client.js +2 -2
- package/api/resources/webhooks/client/Client.d.ts +71 -0
- package/api/resources/webhooks/client/Client.js +316 -0
- package/api/resources/webhooks/client/index.d.ts +1 -0
- package/api/resources/webhooks/client/index.js +17 -0
- package/api/resources/webhooks/client/requests/ListWebhooksRequest.d.ts +12 -0
- package/api/resources/webhooks/client/requests/ListWebhooksRequest.js +5 -0
- package/api/resources/webhooks/client/requests/index.d.ts +1 -0
- package/api/resources/webhooks/client/requests/index.js +2 -0
- package/api/resources/webhooks/index.d.ts +2 -0
- package/api/resources/webhooks/index.js +18 -0
- package/api/resources/webhooks/types/CreateWebhookRequest.d.ts +9 -0
- package/api/resources/webhooks/types/CreateWebhookRequest.js +5 -0
- package/api/resources/webhooks/types/EventId.d.ts +7 -0
- package/api/resources/webhooks/types/EventId.js +5 -0
- package/api/resources/webhooks/types/EventType.d.ts +7 -0
- package/api/resources/webhooks/types/EventType.js +9 -0
- package/api/resources/webhooks/types/Events.d.ts +8 -0
- package/api/resources/webhooks/types/Events.js +5 -0
- package/api/resources/webhooks/types/Inboxes.d.ts +7 -0
- package/api/resources/webhooks/types/Inboxes.js +5 -0
- package/api/resources/webhooks/types/ListWebhooksResponse.d.ts +11 -0
- package/api/resources/webhooks/types/ListWebhooksResponse.js +5 -0
- package/api/resources/webhooks/types/MessageReceivedPayload.d.ts +7 -0
- package/api/resources/webhooks/types/MessageReceivedPayload.js +5 -0
- package/api/resources/webhooks/types/Payload.d.ts +8 -0
- package/api/resources/webhooks/types/Payload.js +5 -0
- package/api/resources/webhooks/types/SvixId.d.ts +7 -0
- package/api/resources/webhooks/types/SvixId.js +5 -0
- package/api/resources/webhooks/types/SvixSignature.d.ts +7 -0
- package/api/resources/webhooks/types/SvixSignature.js +5 -0
- package/api/resources/webhooks/types/SvixTimestamp.d.ts +7 -0
- package/api/resources/webhooks/types/SvixTimestamp.js +5 -0
- package/api/resources/webhooks/types/Url.d.ts +7 -0
- package/api/resources/webhooks/types/Url.js +5 -0
- package/api/resources/webhooks/types/Webhook.d.ts +14 -0
- package/api/resources/webhooks/types/Webhook.js +5 -0
- package/api/resources/webhooks/types/WebhookId.d.ts +7 -0
- package/api/resources/webhooks/types/WebhookId.js +5 -0
- package/api/resources/webhooks/types/index.d.ts +14 -0
- package/api/resources/webhooks/types/index.js +30 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +5 -0
- package/dist/api/resources/inboxes/client/Client.js +3 -3
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/threads/client/Client.js +2 -2
- package/dist/api/resources/webhooks/client/Client.d.ts +71 -0
- package/dist/api/resources/webhooks/client/Client.js +316 -0
- package/dist/api/resources/webhooks/client/index.d.ts +1 -0
- package/dist/api/resources/webhooks/client/index.js +17 -0
- package/dist/api/resources/webhooks/client/requests/ListWebhooksRequest.d.ts +12 -0
- package/dist/api/resources/webhooks/client/requests/ListWebhooksRequest.js +5 -0
- package/dist/api/resources/webhooks/client/requests/index.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/index.js +2 -0
- package/dist/api/resources/webhooks/index.d.ts +2 -0
- package/dist/api/resources/webhooks/index.js +18 -0
- package/dist/api/resources/webhooks/types/CreateWebhookRequest.d.ts +9 -0
- package/dist/api/resources/webhooks/types/CreateWebhookRequest.js +5 -0
- package/dist/api/resources/webhooks/types/EventId.d.ts +7 -0
- package/dist/api/resources/webhooks/types/EventId.js +5 -0
- package/dist/api/resources/webhooks/types/EventType.d.ts +7 -0
- package/dist/api/resources/webhooks/types/EventType.js +9 -0
- package/dist/api/resources/webhooks/types/Events.d.ts +8 -0
- package/dist/api/resources/webhooks/types/Events.js +5 -0
- package/dist/api/resources/webhooks/types/Inboxes.d.ts +7 -0
- package/dist/api/resources/webhooks/types/Inboxes.js +5 -0
- package/dist/api/resources/webhooks/types/ListWebhooksResponse.d.ts +11 -0
- package/dist/api/resources/webhooks/types/ListWebhooksResponse.js +5 -0
- package/dist/api/resources/webhooks/types/MessageReceivedPayload.d.ts +7 -0
- package/dist/api/resources/webhooks/types/MessageReceivedPayload.js +5 -0
- package/dist/api/resources/webhooks/types/Payload.d.ts +8 -0
- package/dist/api/resources/webhooks/types/Payload.js +5 -0
- package/dist/api/resources/webhooks/types/SvixId.d.ts +7 -0
- package/dist/api/resources/webhooks/types/SvixId.js +5 -0
- package/dist/api/resources/webhooks/types/SvixSignature.d.ts +7 -0
- package/dist/api/resources/webhooks/types/SvixSignature.js +5 -0
- package/dist/api/resources/webhooks/types/SvixTimestamp.d.ts +7 -0
- package/dist/api/resources/webhooks/types/SvixTimestamp.js +5 -0
- package/dist/api/resources/webhooks/types/Url.d.ts +7 -0
- package/dist/api/resources/webhooks/types/Url.js +5 -0
- package/dist/api/resources/webhooks/types/Webhook.d.ts +14 -0
- package/dist/api/resources/webhooks/types/Webhook.js +5 -0
- package/dist/api/resources/webhooks/types/WebhookId.d.ts +7 -0
- package/dist/api/resources/webhooks/types/WebhookId.js +5 -0
- package/dist/api/resources/webhooks/types/index.d.ts +14 -0
- package/dist/api/resources/webhooks/types/index.js +30 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/webhooks/index.d.ts +1 -0
- package/dist/serialization/resources/webhooks/index.js +17 -0
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequest.d.ts +17 -0
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequest.js +48 -0
- package/dist/serialization/resources/webhooks/types/EventId.d.ts +10 -0
- package/dist/serialization/resources/webhooks/types/EventId.js +41 -0
- package/dist/serialization/resources/webhooks/types/EventType.d.ts +10 -0
- package/dist/serialization/resources/webhooks/types/EventType.js +41 -0
- package/dist/serialization/resources/webhooks/types/Events.d.ts +11 -0
- package/dist/serialization/resources/webhooks/types/Events.js +42 -0
- package/dist/serialization/resources/webhooks/types/Inboxes.d.ts +10 -0
- package/dist/serialization/resources/webhooks/types/Inboxes.js +41 -0
- package/dist/serialization/resources/webhooks/types/ListWebhooksResponse.d.ts +19 -0
- package/dist/serialization/resources/webhooks/types/ListWebhooksResponse.js +50 -0
- package/dist/serialization/resources/webhooks/types/MessageReceivedPayload.d.ts +14 -0
- package/dist/serialization/resources/webhooks/types/MessageReceivedPayload.js +47 -0
- package/dist/serialization/resources/webhooks/types/Payload.d.ts +15 -0
- package/dist/serialization/resources/webhooks/types/Payload.js +46 -0
- package/dist/serialization/resources/webhooks/types/SvixId.d.ts +10 -0
- package/dist/serialization/resources/webhooks/types/SvixId.js +41 -0
- package/dist/serialization/resources/webhooks/types/SvixSignature.d.ts +10 -0
- package/dist/serialization/resources/webhooks/types/SvixSignature.js +41 -0
- package/dist/serialization/resources/webhooks/types/SvixTimestamp.d.ts +10 -0
- package/dist/serialization/resources/webhooks/types/SvixTimestamp.js +41 -0
- package/dist/serialization/resources/webhooks/types/Url.d.ts +10 -0
- package/dist/serialization/resources/webhooks/types/Url.js +41 -0
- package/dist/serialization/resources/webhooks/types/Webhook.d.ts +21 -0
- package/dist/serialization/resources/webhooks/types/Webhook.js +52 -0
- package/dist/serialization/resources/webhooks/types/WebhookId.d.ts +10 -0
- package/dist/serialization/resources/webhooks/types/WebhookId.js +41 -0
- package/dist/serialization/resources/webhooks/types/index.d.ts +14 -0
- package/dist/serialization/resources/webhooks/types/index.js +30 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +198 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/webhooks/index.d.ts +1 -0
- package/serialization/resources/webhooks/index.js +17 -0
- package/serialization/resources/webhooks/types/CreateWebhookRequest.d.ts +17 -0
- package/serialization/resources/webhooks/types/CreateWebhookRequest.js +48 -0
- package/serialization/resources/webhooks/types/EventId.d.ts +10 -0
- package/serialization/resources/webhooks/types/EventId.js +41 -0
- package/serialization/resources/webhooks/types/EventType.d.ts +10 -0
- package/serialization/resources/webhooks/types/EventType.js +41 -0
- package/serialization/resources/webhooks/types/Events.d.ts +11 -0
- package/serialization/resources/webhooks/types/Events.js +42 -0
- package/serialization/resources/webhooks/types/Inboxes.d.ts +10 -0
- package/serialization/resources/webhooks/types/Inboxes.js +41 -0
- package/serialization/resources/webhooks/types/ListWebhooksResponse.d.ts +19 -0
- package/serialization/resources/webhooks/types/ListWebhooksResponse.js +50 -0
- package/serialization/resources/webhooks/types/MessageReceivedPayload.d.ts +14 -0
- package/serialization/resources/webhooks/types/MessageReceivedPayload.js +47 -0
- package/serialization/resources/webhooks/types/Payload.d.ts +15 -0
- package/serialization/resources/webhooks/types/Payload.js +46 -0
- package/serialization/resources/webhooks/types/SvixId.d.ts +10 -0
- package/serialization/resources/webhooks/types/SvixId.js +41 -0
- package/serialization/resources/webhooks/types/SvixSignature.d.ts +10 -0
- package/serialization/resources/webhooks/types/SvixSignature.js +41 -0
- package/serialization/resources/webhooks/types/SvixTimestamp.d.ts +10 -0
- package/serialization/resources/webhooks/types/SvixTimestamp.js +41 -0
- package/serialization/resources/webhooks/types/Url.d.ts +10 -0
- package/serialization/resources/webhooks/types/Url.js +41 -0
- package/serialization/resources/webhooks/types/Webhook.d.ts +21 -0
- package/serialization/resources/webhooks/types/Webhook.js +52 -0
- package/serialization/resources/webhooks/types/WebhookId.d.ts +10 -0
- package/serialization/resources/webhooks/types/WebhookId.js +41 -0
- package/serialization/resources/webhooks/types/index.d.ts +14 -0
- package/serialization/resources/webhooks/types/index.js +30 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,52 @@
|
|
|
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.Webhook = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const WebhookId_1 = require("./WebhookId");
|
|
42
|
+
const Url_1 = require("./Url");
|
|
43
|
+
const Events_1 = require("./Events");
|
|
44
|
+
const Inboxes_1 = require("./Inboxes");
|
|
45
|
+
exports.Webhook = core.serialization.object({
|
|
46
|
+
webhookId: core.serialization.property("webhook_id", WebhookId_1.WebhookId),
|
|
47
|
+
url: Url_1.Url,
|
|
48
|
+
events: Events_1.Events.optional(),
|
|
49
|
+
inboxes: Inboxes_1.Inboxes.optional(),
|
|
50
|
+
secret: core.serialization.string(),
|
|
51
|
+
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
52
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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 WebhookId: core.serialization.Schema<serializers.WebhookId.Raw, AgentMail.WebhookId>;
|
|
8
|
+
export declare namespace WebhookId {
|
|
9
|
+
type Raw = string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.WebhookId = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.WebhookId = core.serialization.string();
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./WebhookId";
|
|
2
|
+
export * from "./Url";
|
|
3
|
+
export * from "./EventType";
|
|
4
|
+
export * from "./Events";
|
|
5
|
+
export * from "./Inboxes";
|
|
6
|
+
export * from "./Webhook";
|
|
7
|
+
export * from "./ListWebhooksResponse";
|
|
8
|
+
export * from "./CreateWebhookRequest";
|
|
9
|
+
export * from "./EventId";
|
|
10
|
+
export * from "./Payload";
|
|
11
|
+
export * from "./MessageReceivedPayload";
|
|
12
|
+
export * from "./SvixId";
|
|
13
|
+
export * from "./SvixTimestamp";
|
|
14
|
+
export * from "./SvixSignature";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./WebhookId"), exports);
|
|
18
|
+
__exportStar(require("./Url"), exports);
|
|
19
|
+
__exportStar(require("./EventType"), exports);
|
|
20
|
+
__exportStar(require("./Events"), exports);
|
|
21
|
+
__exportStar(require("./Inboxes"), exports);
|
|
22
|
+
__exportStar(require("./Webhook"), exports);
|
|
23
|
+
__exportStar(require("./ListWebhooksResponse"), exports);
|
|
24
|
+
__exportStar(require("./CreateWebhookRequest"), exports);
|
|
25
|
+
__exportStar(require("./EventId"), exports);
|
|
26
|
+
__exportStar(require("./Payload"), exports);
|
|
27
|
+
__exportStar(require("./MessageReceivedPayload"), exports);
|
|
28
|
+
__exportStar(require("./SvixId"), exports);
|
|
29
|
+
__exportStar(require("./SvixTimestamp"), exports);
|
|
30
|
+
__exportStar(require("./SvixSignature"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.22";
|
package/version.js
CHANGED