@unlimited-messaging/sdk 0.1.20 → 0.1.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/package.json +1 -1
- package/src/api/resources/accounts/types/AccountGetAccountResponse.d.ts +3 -0
- package/src/api/resources/accounts/types/AccountGetAccountResponseOwner.d.ts +11 -0
- package/src/api/resources/accounts/types/AccountGetAccountResponseOwner.js +10 -0
- package/src/api/resources/accounts/types/AccountListAccountsResponseItem.d.ts +3 -0
- package/src/api/resources/accounts/types/AccountListAccountsResponseItemOwner.d.ts +11 -0
- package/src/api/resources/accounts/types/AccountListAccountsResponseItemOwner.js +10 -0
- package/src/api/resources/accounts/types/AccountUpdateAccountResponse.d.ts +3 -0
- package/src/api/resources/accounts/types/AccountUpdateAccountResponseOwner.d.ts +11 -0
- package/src/api/resources/accounts/types/AccountUpdateAccountResponseOwner.js +10 -0
- package/src/api/resources/accounts/types/index.d.ts +3 -0
- package/src/api/resources/accounts/types/index.js +3 -0
- package/src/api/resources/messages/client/Client.d.ts +13 -1
- package/src/api/resources/messages/client/Client.js +13 -1
- package/src/api/resources/messages/client/requests/MessageSendRequest.d.ts +10 -0
- package/src/api/resources/messages/types/MessageFindAllResponseDataItem.d.ts +12 -1
- package/src/api/resources/messages/types/MessageFindAllResponseDataItemAttachmentsItem.d.ts +11 -0
- package/src/api/resources/messages/types/MessageFindAllResponseDataItemAttachmentsItem.js +5 -0
- package/src/api/resources/messages/types/MessageFindOneResponse.d.ts +12 -1
- package/src/api/resources/messages/types/MessageFindOneResponseAttachmentsItem.d.ts +11 -0
- package/src/api/resources/messages/types/MessageFindOneResponseAttachmentsItem.js +5 -0
- package/src/api/resources/messages/types/MessageSendRequestAttachmentsItem.d.ts +9 -0
- package/src/api/resources/messages/types/MessageSendRequestAttachmentsItem.js +5 -0
- package/src/api/resources/messages/types/MessageSendRequestChannelsItem.d.ts +11 -0
- package/src/api/resources/messages/types/MessageSendRequestChannelsItem.js +5 -0
- package/src/api/resources/messages/types/MessageSendRequestChannelsItemChannel.d.ts +8 -0
- package/src/api/resources/messages/types/MessageSendRequestChannelsItemChannel.js +10 -0
- package/src/api/resources/messages/types/MessageSendRequestMediaType.d.ts +3 -0
- package/src/api/resources/messages/types/MessageSendRequestTo.d.ts +7 -0
- package/src/api/resources/messages/types/MessageSendRequestTo.js +5 -0
- package/src/api/resources/messages/types/MessageSendResponse.d.ts +13 -1
- package/src/api/resources/messages/types/MessageSendResponseAttachmentsItem.d.ts +11 -0
- package/src/api/resources/messages/types/MessageSendResponseAttachmentsItem.js +5 -0
- package/src/api/resources/messages/types/MessageSendResponseMessagesItem.d.ts +52 -0
- package/src/api/resources/messages/types/MessageSendResponseMessagesItem.js +5 -0
- package/src/api/resources/messages/types/MessageSendResponseMessagesItemAccountChannel.d.ts +10 -0
- package/src/api/resources/messages/types/MessageSendResponseMessagesItemAccountChannel.js +12 -0
- package/src/api/resources/messages/types/MessageSendResponseMessagesItemAttachmentsItem.d.ts +11 -0
- package/src/api/resources/messages/types/MessageSendResponseMessagesItemAttachmentsItem.js +5 -0
- package/src/api/resources/messages/types/MessageSendResponseMessagesItemChannel.d.ts +9 -0
- package/src/api/resources/messages/types/MessageSendResponseMessagesItemChannel.js +11 -0
- package/src/api/resources/messages/types/MessageSendResponseMessagesItemDirection.d.ts +8 -0
- package/src/api/resources/messages/types/MessageSendResponseMessagesItemDirection.js +10 -0
- package/src/api/resources/messages/types/MessageSendResponseMessagesItemStatus.d.ts +13 -0
- package/src/api/resources/messages/types/MessageSendResponseMessagesItemStatus.js +15 -0
- package/src/api/resources/messages/types/index.d.ts +13 -0
- package/src/api/resources/messages/types/index.js +13 -0
- package/src/api/resources/webhooks/client/Client.d.ts +130 -11
- package/src/api/resources/webhooks/client/Client.js +130 -11
- package/src/api/resources/webhooks/types/WebhookEndpointCreateRequestEventTypesItem.d.ts +2 -1
- package/src/api/resources/webhooks/types/WebhookEndpointCreateRequestEventTypesItem.js +1 -0
- package/src/api/resources/webhooks/types/WebhookEndpointCreateResponseEventTypesItem.d.ts +2 -1
- package/src/api/resources/webhooks/types/WebhookEndpointCreateResponseEventTypesItem.js +1 -0
- package/src/api/resources/webhooks/types/WebhookEndpointFindOneResponseEventTypesItem.d.ts +2 -1
- package/src/api/resources/webhooks/types/WebhookEndpointFindOneResponseEventTypesItem.js +1 -0
- package/src/api/resources/webhooks/types/WebhookEndpointListResponseDataItemEventTypesItem.d.ts +2 -1
- package/src/api/resources/webhooks/types/WebhookEndpointListResponseDataItemEventTypesItem.js +1 -0
- package/src/api/resources/webhooks/types/WebhookEndpointUpdateRequestEventTypesItem.d.ts +2 -1
- package/src/api/resources/webhooks/types/WebhookEndpointUpdateRequestEventTypesItem.js +1 -0
- package/src/api/resources/webhooks/types/WebhookEndpointUpdateResponseEventTypesItem.d.ts +2 -1
- package/src/api/resources/webhooks/types/WebhookEndpointUpdateResponseEventTypesItem.js +1 -0
- package/src/api/types/WebhookEventMessageHistoryDataMessagesItem.d.ts +3 -0
- package/src/api/types/WebhookEventMessageHistoryDataMessagesItemAttachmentsItem.d.ts +10 -0
- package/src/api/types/WebhookEventMessageHistoryDataMessagesItemAttachmentsItem.js +5 -0
- package/src/api/types/WebhookEventMessageReceivedDataMessage.d.ts +3 -0
- package/src/api/types/WebhookEventMessageReceivedDataMessageAttachmentsItem.d.ts +10 -0
- package/src/api/types/WebhookEventMessageReceivedDataMessageAttachmentsItem.js +5 -0
- package/src/api/types/WebhookEventMessageSelfSentDataMessage.d.ts +3 -0
- package/src/api/types/WebhookEventMessageSelfSentDataMessageAttachmentsItem.d.ts +10 -0
- package/src/api/types/WebhookEventMessageSelfSentDataMessageAttachmentsItem.js +5 -0
- package/src/api/types/WebhookEventMessageSent.d.ts +10 -0
- package/src/api/types/WebhookEventMessageSent.js +5 -0
- package/src/api/types/WebhookEventMessageSentData.d.ts +8 -0
- package/src/api/types/WebhookEventMessageSentData.js +5 -0
- package/src/api/types/WebhookEventMessageSentDataChannel.d.ts +9 -0
- package/src/api/types/WebhookEventMessageSentDataChannel.js +5 -0
- package/src/api/types/WebhookEventMessageSentDataChannelAccount.d.ts +7 -0
- package/src/api/types/WebhookEventMessageSentDataChannelAccount.js +5 -0
- package/src/api/types/WebhookEventMessageSentDataChannelConversation.d.ts +9 -0
- package/src/api/types/WebhookEventMessageSentDataChannelConversation.js +5 -0
- package/src/api/types/WebhookEventMessageSentDataChannelType.d.ts +9 -0
- package/src/api/types/WebhookEventMessageSentDataChannelType.js +11 -0
- package/src/api/types/WebhookEventMessageSentDataMessage.d.ts +29 -0
- package/src/api/types/WebhookEventMessageSentDataMessage.js +5 -0
- package/src/api/types/WebhookEventMessageSentDataMessageAttachmentsItem.d.ts +10 -0
- package/src/api/types/WebhookEventMessageSentDataMessageAttachmentsItem.js +5 -0
- package/src/api/types/WebhookEventMessageSentDataMessageDirection.d.ts +8 -0
- package/src/api/types/WebhookEventMessageSentDataMessageDirection.js +10 -0
- package/src/api/types/WebhookEventMessageSentDataMessageReplyTo.d.ts +7 -0
- package/src/api/types/WebhookEventMessageSentDataMessageReplyTo.js +5 -0
- package/src/api/types/WebhookEventMessageSentType.d.ts +7 -0
- package/src/api/types/WebhookEventMessageSentType.js +9 -0
- package/src/api/types/index.d.ts +14 -0
- package/src/api/types/index.js +14 -0
- package/src/serialization/resources/accounts/types/AccountGetAccountResponse.d.ts +2 -0
- package/src/serialization/resources/accounts/types/AccountGetAccountResponse.js +2 -0
- package/src/serialization/resources/accounts/types/AccountGetAccountResponseOwner.d.ts +10 -0
- package/src/serialization/resources/accounts/types/AccountGetAccountResponseOwner.js +41 -0
- package/src/serialization/resources/accounts/types/AccountListAccountsResponseItem.d.ts +2 -0
- package/src/serialization/resources/accounts/types/AccountListAccountsResponseItem.js +2 -0
- package/src/serialization/resources/accounts/types/AccountListAccountsResponseItemOwner.d.ts +10 -0
- package/src/serialization/resources/accounts/types/AccountListAccountsResponseItemOwner.js +41 -0
- package/src/serialization/resources/accounts/types/AccountUpdateAccountResponse.d.ts +2 -0
- package/src/serialization/resources/accounts/types/AccountUpdateAccountResponse.js +2 -0
- package/src/serialization/resources/accounts/types/AccountUpdateAccountResponseOwner.d.ts +10 -0
- package/src/serialization/resources/accounts/types/AccountUpdateAccountResponseOwner.js +41 -0
- package/src/serialization/resources/accounts/types/index.d.ts +3 -0
- package/src/serialization/resources/accounts/types/index.js +3 -0
- package/src/serialization/resources/messages/client/requests/MessageSendRequest.d.ts +8 -0
- package/src/serialization/resources/messages/client/requests/MessageSendRequest.js +8 -0
- package/src/serialization/resources/messages/types/MessageFindAllResponseDataItem.d.ts +5 -0
- package/src/serialization/resources/messages/types/MessageFindAllResponseDataItem.js +5 -0
- package/src/serialization/resources/messages/types/MessageFindAllResponseDataItemAttachmentsItem.d.ts +16 -0
- package/src/serialization/resources/messages/types/MessageFindAllResponseDataItemAttachmentsItem.js +47 -0
- package/src/serialization/resources/messages/types/MessageFindOneResponse.d.ts +5 -0
- package/src/serialization/resources/messages/types/MessageFindOneResponse.js +5 -0
- package/src/serialization/resources/messages/types/MessageFindOneResponseAttachmentsItem.d.ts +16 -0
- package/src/serialization/resources/messages/types/MessageFindOneResponseAttachmentsItem.js +47 -0
- package/src/serialization/resources/messages/types/MessageSendRequestAttachmentsItem.d.ts +15 -0
- package/src/serialization/resources/messages/types/MessageSendRequestAttachmentsItem.js +46 -0
- package/src/serialization/resources/messages/types/MessageSendRequestChannelsItem.d.ts +17 -0
- package/src/serialization/resources/messages/types/MessageSendRequestChannelsItem.js +48 -0
- package/src/serialization/resources/messages/types/MessageSendRequestChannelsItemChannel.d.ts +10 -0
- package/src/serialization/resources/messages/types/MessageSendRequestChannelsItemChannel.js +41 -0
- package/src/serialization/resources/messages/types/MessageSendRequestTo.d.ts +13 -0
- package/src/serialization/resources/messages/types/MessageSendRequestTo.js +44 -0
- package/src/serialization/resources/messages/types/MessageSendResponse.d.ts +7 -0
- package/src/serialization/resources/messages/types/MessageSendResponse.js +7 -0
- package/src/serialization/resources/messages/types/MessageSendResponseAttachmentsItem.d.ts +16 -0
- package/src/serialization/resources/messages/types/MessageSendResponseAttachmentsItem.js +47 -0
- package/src/serialization/resources/messages/types/MessageSendResponseMessagesItem.d.ts +47 -0
- package/src/serialization/resources/messages/types/MessageSendResponseMessagesItem.js +78 -0
- package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemAccountChannel.d.ts +10 -0
- package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemAccountChannel.js +41 -0
- package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemAttachmentsItem.d.ts +16 -0
- package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemAttachmentsItem.js +47 -0
- package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemChannel.d.ts +10 -0
- package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemChannel.js +41 -0
- package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemDirection.d.ts +10 -0
- package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemDirection.js +41 -0
- package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemStatus.d.ts +10 -0
- package/src/serialization/resources/messages/types/MessageSendResponseMessagesItemStatus.js +41 -0
- package/src/serialization/resources/messages/types/index.d.ts +13 -0
- package/src/serialization/resources/messages/types/index.js +13 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointCreateRequestEventTypesItem.d.ts +1 -1
- package/src/serialization/resources/webhooks/types/WebhookEndpointCreateRequestEventTypesItem.js +1 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointCreateResponseEventTypesItem.d.ts +1 -1
- package/src/serialization/resources/webhooks/types/WebhookEndpointCreateResponseEventTypesItem.js +1 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointFindOneResponseEventTypesItem.d.ts +1 -1
- package/src/serialization/resources/webhooks/types/WebhookEndpointFindOneResponseEventTypesItem.js +1 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointListResponseDataItemEventTypesItem.d.ts +1 -1
- package/src/serialization/resources/webhooks/types/WebhookEndpointListResponseDataItemEventTypesItem.js +1 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateRequestEventTypesItem.d.ts +1 -1
- package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateRequestEventTypesItem.js +1 -0
- package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateResponseEventTypesItem.d.ts +1 -1
- package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateResponseEventTypesItem.js +1 -0
- package/src/serialization/types/WebhookEventMessageHistoryDataMessagesItem.d.ts +4 -0
- package/src/serialization/types/WebhookEventMessageHistoryDataMessagesItem.js +4 -0
- package/src/serialization/types/WebhookEventMessageHistoryDataMessagesItemAttachmentsItem.d.ts +16 -0
- package/src/serialization/types/WebhookEventMessageHistoryDataMessagesItemAttachmentsItem.js +47 -0
- package/src/serialization/types/WebhookEventMessageReceivedDataMessage.d.ts +4 -0
- package/src/serialization/types/WebhookEventMessageReceivedDataMessage.js +4 -0
- package/src/serialization/types/WebhookEventMessageReceivedDataMessageAttachmentsItem.d.ts +16 -0
- package/src/serialization/types/WebhookEventMessageReceivedDataMessageAttachmentsItem.js +47 -0
- package/src/serialization/types/WebhookEventMessageSelfSentDataMessage.d.ts +4 -0
- package/src/serialization/types/WebhookEventMessageSelfSentDataMessage.js +4 -0
- package/src/serialization/types/WebhookEventMessageSelfSentDataMessageAttachmentsItem.d.ts +16 -0
- package/src/serialization/types/WebhookEventMessageSelfSentDataMessageAttachmentsItem.js +47 -0
- package/src/serialization/types/WebhookEventMessageSent.d.ts +17 -0
- package/src/serialization/types/WebhookEventMessageSent.js +48 -0
- package/src/serialization/types/WebhookEventMessageSentData.d.ts +15 -0
- package/src/serialization/types/WebhookEventMessageSentData.js +46 -0
- package/src/serialization/types/WebhookEventMessageSentDataChannel.d.ts +17 -0
- package/src/serialization/types/WebhookEventMessageSentDataChannel.js +48 -0
- package/src/serialization/types/WebhookEventMessageSentDataChannelAccount.d.ts +13 -0
- package/src/serialization/types/WebhookEventMessageSentDataChannelAccount.js +44 -0
- package/src/serialization/types/WebhookEventMessageSentDataChannelConversation.d.ts +15 -0
- package/src/serialization/types/WebhookEventMessageSentDataChannelConversation.js +46 -0
- package/src/serialization/types/WebhookEventMessageSentDataChannelType.d.ts +10 -0
- package/src/serialization/types/WebhookEventMessageSentDataChannelType.js +41 -0
- package/src/serialization/types/WebhookEventMessageSentDataMessage.d.ts +37 -0
- package/src/serialization/types/WebhookEventMessageSentDataMessage.js +68 -0
- package/src/serialization/types/WebhookEventMessageSentDataMessageAttachmentsItem.d.ts +16 -0
- package/src/serialization/types/WebhookEventMessageSentDataMessageAttachmentsItem.js +47 -0
- package/src/serialization/types/WebhookEventMessageSentDataMessageDirection.d.ts +10 -0
- package/src/serialization/types/WebhookEventMessageSentDataMessageDirection.js +41 -0
- package/src/serialization/types/WebhookEventMessageSentDataMessageReplyTo.d.ts +13 -0
- package/src/serialization/types/WebhookEventMessageSentDataMessageReplyTo.js +44 -0
- package/src/serialization/types/WebhookEventMessageSentType.d.ts +10 -0
- package/src/serialization/types/WebhookEventMessageSentType.js +41 -0
- package/src/serialization/types/index.d.ts +14 -0
- package/src/serialization/types/index.js +14 -0
|
@@ -0,0 +1,47 @@
|
|
|
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.WebhookEventMessageHistoryDataMessagesItemAttachmentsItem = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.WebhookEventMessageHistoryDataMessagesItemAttachmentsItem = core.serialization.object({
|
|
42
|
+
url: core.serialization.string(),
|
|
43
|
+
filename: core.serialization.string().nullable(),
|
|
44
|
+
mimeType: core.serialization.string(),
|
|
45
|
+
size: core.serialization.number(),
|
|
46
|
+
contentId: core.serialization.string().nullable(),
|
|
47
|
+
});
|
|
@@ -6,6 +6,7 @@ import * as UnlimitedMessagingApi from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { WebhookEventMessageReceivedDataMessageDirection } from "./WebhookEventMessageReceivedDataMessageDirection";
|
|
8
8
|
import { WebhookEventMessageReceivedDataMessageReplyTo } from "./WebhookEventMessageReceivedDataMessageReplyTo";
|
|
9
|
+
import { WebhookEventMessageReceivedDataMessageAttachmentsItem } from "./WebhookEventMessageReceivedDataMessageAttachmentsItem";
|
|
9
10
|
export declare const WebhookEventMessageReceivedDataMessage: core.serialization.ObjectSchema<serializers.WebhookEventMessageReceivedDataMessage.Raw, UnlimitedMessagingApi.WebhookEventMessageReceivedDataMessage>;
|
|
10
11
|
export declare namespace WebhookEventMessageReceivedDataMessage {
|
|
11
12
|
interface Raw {
|
|
@@ -29,5 +30,8 @@ export declare namespace WebhookEventMessageReceivedDataMessage {
|
|
|
29
30
|
durationSec?: number | null;
|
|
30
31
|
mediaError?: string | null;
|
|
31
32
|
transcript: string | null;
|
|
33
|
+
subject?: string | null;
|
|
34
|
+
html?: string | null;
|
|
35
|
+
attachments?: WebhookEventMessageReceivedDataMessageAttachmentsItem.Raw[] | null;
|
|
32
36
|
}
|
|
33
37
|
}
|
|
@@ -40,6 +40,7 @@ exports.WebhookEventMessageReceivedDataMessage = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const WebhookEventMessageReceivedDataMessageDirection_1 = require("./WebhookEventMessageReceivedDataMessageDirection");
|
|
42
42
|
const WebhookEventMessageReceivedDataMessageReplyTo_1 = require("./WebhookEventMessageReceivedDataMessageReplyTo");
|
|
43
|
+
const WebhookEventMessageReceivedDataMessageAttachmentsItem_1 = require("./WebhookEventMessageReceivedDataMessageAttachmentsItem");
|
|
43
44
|
exports.WebhookEventMessageReceivedDataMessage = core.serialization.object({
|
|
44
45
|
id: core.serialization.string(),
|
|
45
46
|
externalId: core.serialization.string().nullable(),
|
|
@@ -61,4 +62,7 @@ exports.WebhookEventMessageReceivedDataMessage = core.serialization.object({
|
|
|
61
62
|
durationSec: core.serialization.number().optional(),
|
|
62
63
|
mediaError: core.serialization.string().optional(),
|
|
63
64
|
transcript: core.serialization.string().nullable(),
|
|
65
|
+
subject: core.serialization.string().optional(),
|
|
66
|
+
html: core.serialization.string().optional(),
|
|
67
|
+
attachments: core.serialization.list(WebhookEventMessageReceivedDataMessageAttachmentsItem_1.WebhookEventMessageReceivedDataMessageAttachmentsItem).optional(),
|
|
64
68
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as UnlimitedMessagingApi from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const WebhookEventMessageReceivedDataMessageAttachmentsItem: core.serialization.ObjectSchema<serializers.WebhookEventMessageReceivedDataMessageAttachmentsItem.Raw, UnlimitedMessagingApi.WebhookEventMessageReceivedDataMessageAttachmentsItem>;
|
|
8
|
+
export declare namespace WebhookEventMessageReceivedDataMessageAttachmentsItem {
|
|
9
|
+
interface Raw {
|
|
10
|
+
url: string;
|
|
11
|
+
filename: string | null;
|
|
12
|
+
mimeType: string;
|
|
13
|
+
size: number;
|
|
14
|
+
contentId: string | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.WebhookEventMessageReceivedDataMessageAttachmentsItem = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.WebhookEventMessageReceivedDataMessageAttachmentsItem = core.serialization.object({
|
|
42
|
+
url: core.serialization.string(),
|
|
43
|
+
filename: core.serialization.string().nullable(),
|
|
44
|
+
mimeType: core.serialization.string(),
|
|
45
|
+
size: core.serialization.number(),
|
|
46
|
+
contentId: core.serialization.string().nullable(),
|
|
47
|
+
});
|
|
@@ -6,6 +6,7 @@ import * as UnlimitedMessagingApi from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { WebhookEventMessageSelfSentDataMessageDirection } from "./WebhookEventMessageSelfSentDataMessageDirection";
|
|
8
8
|
import { WebhookEventMessageSelfSentDataMessageReplyTo } from "./WebhookEventMessageSelfSentDataMessageReplyTo";
|
|
9
|
+
import { WebhookEventMessageSelfSentDataMessageAttachmentsItem } from "./WebhookEventMessageSelfSentDataMessageAttachmentsItem";
|
|
9
10
|
export declare const WebhookEventMessageSelfSentDataMessage: core.serialization.ObjectSchema<serializers.WebhookEventMessageSelfSentDataMessage.Raw, UnlimitedMessagingApi.WebhookEventMessageSelfSentDataMessage>;
|
|
10
11
|
export declare namespace WebhookEventMessageSelfSentDataMessage {
|
|
11
12
|
interface Raw {
|
|
@@ -29,5 +30,8 @@ export declare namespace WebhookEventMessageSelfSentDataMessage {
|
|
|
29
30
|
durationSec?: number | null;
|
|
30
31
|
mediaError?: string | null;
|
|
31
32
|
transcript: string | null;
|
|
33
|
+
subject?: string | null;
|
|
34
|
+
html?: string | null;
|
|
35
|
+
attachments?: WebhookEventMessageSelfSentDataMessageAttachmentsItem.Raw[] | null;
|
|
32
36
|
}
|
|
33
37
|
}
|
|
@@ -40,6 +40,7 @@ exports.WebhookEventMessageSelfSentDataMessage = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const WebhookEventMessageSelfSentDataMessageDirection_1 = require("./WebhookEventMessageSelfSentDataMessageDirection");
|
|
42
42
|
const WebhookEventMessageSelfSentDataMessageReplyTo_1 = require("./WebhookEventMessageSelfSentDataMessageReplyTo");
|
|
43
|
+
const WebhookEventMessageSelfSentDataMessageAttachmentsItem_1 = require("./WebhookEventMessageSelfSentDataMessageAttachmentsItem");
|
|
43
44
|
exports.WebhookEventMessageSelfSentDataMessage = core.serialization.object({
|
|
44
45
|
id: core.serialization.string(),
|
|
45
46
|
externalId: core.serialization.string().nullable(),
|
|
@@ -61,4 +62,7 @@ exports.WebhookEventMessageSelfSentDataMessage = core.serialization.object({
|
|
|
61
62
|
durationSec: core.serialization.number().optional(),
|
|
62
63
|
mediaError: core.serialization.string().optional(),
|
|
63
64
|
transcript: core.serialization.string().nullable(),
|
|
65
|
+
subject: core.serialization.string().optional(),
|
|
66
|
+
html: core.serialization.string().optional(),
|
|
67
|
+
attachments: core.serialization.list(WebhookEventMessageSelfSentDataMessageAttachmentsItem_1.WebhookEventMessageSelfSentDataMessageAttachmentsItem).optional(),
|
|
64
68
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as UnlimitedMessagingApi from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const WebhookEventMessageSelfSentDataMessageAttachmentsItem: core.serialization.ObjectSchema<serializers.WebhookEventMessageSelfSentDataMessageAttachmentsItem.Raw, UnlimitedMessagingApi.WebhookEventMessageSelfSentDataMessageAttachmentsItem>;
|
|
8
|
+
export declare namespace WebhookEventMessageSelfSentDataMessageAttachmentsItem {
|
|
9
|
+
interface Raw {
|
|
10
|
+
url: string;
|
|
11
|
+
filename: string | null;
|
|
12
|
+
mimeType: string;
|
|
13
|
+
size: number;
|
|
14
|
+
contentId: string | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.WebhookEventMessageSelfSentDataMessageAttachmentsItem = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.WebhookEventMessageSelfSentDataMessageAttachmentsItem = core.serialization.object({
|
|
42
|
+
url: core.serialization.string(),
|
|
43
|
+
filename: core.serialization.string().nullable(),
|
|
44
|
+
mimeType: core.serialization.string(),
|
|
45
|
+
size: core.serialization.number(),
|
|
46
|
+
contentId: core.serialization.string().nullable(),
|
|
47
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as UnlimitedMessagingApi from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { WebhookEventMessageSentType } from "./WebhookEventMessageSentType";
|
|
8
|
+
import { WebhookEventMessageSentData } from "./WebhookEventMessageSentData";
|
|
9
|
+
export declare const WebhookEventMessageSent: core.serialization.ObjectSchema<serializers.WebhookEventMessageSent.Raw, UnlimitedMessagingApi.WebhookEventMessageSent>;
|
|
10
|
+
export declare namespace WebhookEventMessageSent {
|
|
11
|
+
interface Raw {
|
|
12
|
+
type: WebhookEventMessageSentType.Raw;
|
|
13
|
+
eventId: string;
|
|
14
|
+
occurredAt: string;
|
|
15
|
+
data: WebhookEventMessageSentData.Raw;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.WebhookEventMessageSent = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const WebhookEventMessageSentType_1 = require("./WebhookEventMessageSentType");
|
|
42
|
+
const WebhookEventMessageSentData_1 = require("./WebhookEventMessageSentData");
|
|
43
|
+
exports.WebhookEventMessageSent = core.serialization.object({
|
|
44
|
+
type: WebhookEventMessageSentType_1.WebhookEventMessageSentType,
|
|
45
|
+
eventId: core.serialization.string(),
|
|
46
|
+
occurredAt: core.serialization.date(),
|
|
47
|
+
data: WebhookEventMessageSentData_1.WebhookEventMessageSentData,
|
|
48
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as UnlimitedMessagingApi from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { WebhookEventMessageSentDataMessage } from "./WebhookEventMessageSentDataMessage";
|
|
8
|
+
import { WebhookEventMessageSentDataChannel } from "./WebhookEventMessageSentDataChannel";
|
|
9
|
+
export declare const WebhookEventMessageSentData: core.serialization.ObjectSchema<serializers.WebhookEventMessageSentData.Raw, UnlimitedMessagingApi.WebhookEventMessageSentData>;
|
|
10
|
+
export declare namespace WebhookEventMessageSentData {
|
|
11
|
+
interface Raw {
|
|
12
|
+
message: WebhookEventMessageSentDataMessage.Raw;
|
|
13
|
+
channel: WebhookEventMessageSentDataChannel.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.WebhookEventMessageSentData = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const WebhookEventMessageSentDataMessage_1 = require("./WebhookEventMessageSentDataMessage");
|
|
42
|
+
const WebhookEventMessageSentDataChannel_1 = require("./WebhookEventMessageSentDataChannel");
|
|
43
|
+
exports.WebhookEventMessageSentData = core.serialization.object({
|
|
44
|
+
message: WebhookEventMessageSentDataMessage_1.WebhookEventMessageSentDataMessage,
|
|
45
|
+
channel: WebhookEventMessageSentDataChannel_1.WebhookEventMessageSentDataChannel,
|
|
46
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as UnlimitedMessagingApi from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { WebhookEventMessageSentDataChannelType } from "./WebhookEventMessageSentDataChannelType";
|
|
8
|
+
import { WebhookEventMessageSentDataChannelAccount } from "./WebhookEventMessageSentDataChannelAccount";
|
|
9
|
+
import { WebhookEventMessageSentDataChannelConversation } from "./WebhookEventMessageSentDataChannelConversation";
|
|
10
|
+
export declare const WebhookEventMessageSentDataChannel: core.serialization.ObjectSchema<serializers.WebhookEventMessageSentDataChannel.Raw, UnlimitedMessagingApi.WebhookEventMessageSentDataChannel>;
|
|
11
|
+
export declare namespace WebhookEventMessageSentDataChannel {
|
|
12
|
+
interface Raw {
|
|
13
|
+
type: WebhookEventMessageSentDataChannelType.Raw;
|
|
14
|
+
account: WebhookEventMessageSentDataChannelAccount.Raw;
|
|
15
|
+
conversation: WebhookEventMessageSentDataChannelConversation.Raw;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.WebhookEventMessageSentDataChannel = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const WebhookEventMessageSentDataChannelType_1 = require("./WebhookEventMessageSentDataChannelType");
|
|
42
|
+
const WebhookEventMessageSentDataChannelAccount_1 = require("./WebhookEventMessageSentDataChannelAccount");
|
|
43
|
+
const WebhookEventMessageSentDataChannelConversation_1 = require("./WebhookEventMessageSentDataChannelConversation");
|
|
44
|
+
exports.WebhookEventMessageSentDataChannel = core.serialization.object({
|
|
45
|
+
type: WebhookEventMessageSentDataChannelType_1.WebhookEventMessageSentDataChannelType,
|
|
46
|
+
account: WebhookEventMessageSentDataChannelAccount_1.WebhookEventMessageSentDataChannelAccount,
|
|
47
|
+
conversation: WebhookEventMessageSentDataChannelConversation_1.WebhookEventMessageSentDataChannelConversation,
|
|
48
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as UnlimitedMessagingApi from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const WebhookEventMessageSentDataChannelAccount: core.serialization.ObjectSchema<serializers.WebhookEventMessageSentDataChannelAccount.Raw, UnlimitedMessagingApi.WebhookEventMessageSentDataChannelAccount>;
|
|
8
|
+
export declare namespace WebhookEventMessageSentDataChannelAccount {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.WebhookEventMessageSentDataChannelAccount = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.WebhookEventMessageSentDataChannelAccount = core.serialization.object({
|
|
42
|
+
id: core.serialization.string(),
|
|
43
|
+
name: core.serialization.string().nullable(),
|
|
44
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as UnlimitedMessagingApi from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const WebhookEventMessageSentDataChannelConversation: core.serialization.ObjectSchema<serializers.WebhookEventMessageSentDataChannelConversation.Raw, UnlimitedMessagingApi.WebhookEventMessageSentDataChannelConversation>;
|
|
8
|
+
export declare namespace WebhookEventMessageSentDataChannelConversation {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string | null;
|
|
11
|
+
isGroup: boolean;
|
|
12
|
+
address: string | null;
|
|
13
|
+
participants?: string[] | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.WebhookEventMessageSentDataChannelConversation = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.WebhookEventMessageSentDataChannelConversation = core.serialization.object({
|
|
42
|
+
id: core.serialization.string().nullable(),
|
|
43
|
+
isGroup: core.serialization.boolean(),
|
|
44
|
+
address: core.serialization.string().nullable(),
|
|
45
|
+
participants: core.serialization.list(core.serialization.string()).optional(),
|
|
46
|
+
});
|
|
@@ -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 UnlimitedMessagingApi from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const WebhookEventMessageSentDataChannelType: core.serialization.Schema<serializers.WebhookEventMessageSentDataChannelType.Raw, UnlimitedMessagingApi.WebhookEventMessageSentDataChannelType>;
|
|
8
|
+
export declare namespace WebhookEventMessageSentDataChannelType {
|
|
9
|
+
type Raw = "WHATSAPP" | "SMS" | "EMAIL";
|
|
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.WebhookEventMessageSentDataChannelType = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.WebhookEventMessageSentDataChannelType = core.serialization.enum_(["WHATSAPP", "SMS", "EMAIL"]);
|