@unlimited-messaging/sdk 0.1.21 → 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.
Files changed (75) hide show
  1. package/package.json +1 -1
  2. package/src/api/resources/webhooks/client/Client.d.ts +130 -11
  3. package/src/api/resources/webhooks/client/Client.js +130 -11
  4. package/src/api/resources/webhooks/types/WebhookEndpointCreateRequestEventTypesItem.d.ts +2 -1
  5. package/src/api/resources/webhooks/types/WebhookEndpointCreateRequestEventTypesItem.js +1 -0
  6. package/src/api/resources/webhooks/types/WebhookEndpointCreateResponseEventTypesItem.d.ts +2 -1
  7. package/src/api/resources/webhooks/types/WebhookEndpointCreateResponseEventTypesItem.js +1 -0
  8. package/src/api/resources/webhooks/types/WebhookEndpointFindOneResponseEventTypesItem.d.ts +2 -1
  9. package/src/api/resources/webhooks/types/WebhookEndpointFindOneResponseEventTypesItem.js +1 -0
  10. package/src/api/resources/webhooks/types/WebhookEndpointListResponseDataItemEventTypesItem.d.ts +2 -1
  11. package/src/api/resources/webhooks/types/WebhookEndpointListResponseDataItemEventTypesItem.js +1 -0
  12. package/src/api/resources/webhooks/types/WebhookEndpointUpdateRequestEventTypesItem.d.ts +2 -1
  13. package/src/api/resources/webhooks/types/WebhookEndpointUpdateRequestEventTypesItem.js +1 -0
  14. package/src/api/resources/webhooks/types/WebhookEndpointUpdateResponseEventTypesItem.d.ts +2 -1
  15. package/src/api/resources/webhooks/types/WebhookEndpointUpdateResponseEventTypesItem.js +1 -0
  16. package/src/api/types/WebhookEventMessageSent.d.ts +10 -0
  17. package/src/api/types/WebhookEventMessageSent.js +5 -0
  18. package/src/api/types/WebhookEventMessageSentData.d.ts +8 -0
  19. package/src/api/types/WebhookEventMessageSentData.js +5 -0
  20. package/src/api/types/WebhookEventMessageSentDataChannel.d.ts +9 -0
  21. package/src/api/types/WebhookEventMessageSentDataChannel.js +5 -0
  22. package/src/api/types/WebhookEventMessageSentDataChannelAccount.d.ts +7 -0
  23. package/src/api/types/WebhookEventMessageSentDataChannelAccount.js +5 -0
  24. package/src/api/types/WebhookEventMessageSentDataChannelConversation.d.ts +9 -0
  25. package/src/api/types/WebhookEventMessageSentDataChannelConversation.js +5 -0
  26. package/src/api/types/WebhookEventMessageSentDataChannelType.d.ts +9 -0
  27. package/src/api/types/WebhookEventMessageSentDataChannelType.js +11 -0
  28. package/src/api/types/WebhookEventMessageSentDataMessage.d.ts +29 -0
  29. package/src/api/types/WebhookEventMessageSentDataMessage.js +5 -0
  30. package/src/api/types/WebhookEventMessageSentDataMessageAttachmentsItem.d.ts +10 -0
  31. package/src/api/types/WebhookEventMessageSentDataMessageAttachmentsItem.js +5 -0
  32. package/src/api/types/WebhookEventMessageSentDataMessageDirection.d.ts +8 -0
  33. package/src/api/types/WebhookEventMessageSentDataMessageDirection.js +10 -0
  34. package/src/api/types/WebhookEventMessageSentDataMessageReplyTo.d.ts +7 -0
  35. package/src/api/types/WebhookEventMessageSentDataMessageReplyTo.js +5 -0
  36. package/src/api/types/WebhookEventMessageSentType.d.ts +7 -0
  37. package/src/api/types/WebhookEventMessageSentType.js +9 -0
  38. package/src/api/types/index.d.ts +11 -0
  39. package/src/api/types/index.js +11 -0
  40. package/src/serialization/resources/webhooks/types/WebhookEndpointCreateRequestEventTypesItem.d.ts +1 -1
  41. package/src/serialization/resources/webhooks/types/WebhookEndpointCreateRequestEventTypesItem.js +1 -0
  42. package/src/serialization/resources/webhooks/types/WebhookEndpointCreateResponseEventTypesItem.d.ts +1 -1
  43. package/src/serialization/resources/webhooks/types/WebhookEndpointCreateResponseEventTypesItem.js +1 -0
  44. package/src/serialization/resources/webhooks/types/WebhookEndpointFindOneResponseEventTypesItem.d.ts +1 -1
  45. package/src/serialization/resources/webhooks/types/WebhookEndpointFindOneResponseEventTypesItem.js +1 -0
  46. package/src/serialization/resources/webhooks/types/WebhookEndpointListResponseDataItemEventTypesItem.d.ts +1 -1
  47. package/src/serialization/resources/webhooks/types/WebhookEndpointListResponseDataItemEventTypesItem.js +1 -0
  48. package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateRequestEventTypesItem.d.ts +1 -1
  49. package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateRequestEventTypesItem.js +1 -0
  50. package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateResponseEventTypesItem.d.ts +1 -1
  51. package/src/serialization/resources/webhooks/types/WebhookEndpointUpdateResponseEventTypesItem.js +1 -0
  52. package/src/serialization/types/WebhookEventMessageSent.d.ts +17 -0
  53. package/src/serialization/types/WebhookEventMessageSent.js +48 -0
  54. package/src/serialization/types/WebhookEventMessageSentData.d.ts +15 -0
  55. package/src/serialization/types/WebhookEventMessageSentData.js +46 -0
  56. package/src/serialization/types/WebhookEventMessageSentDataChannel.d.ts +17 -0
  57. package/src/serialization/types/WebhookEventMessageSentDataChannel.js +48 -0
  58. package/src/serialization/types/WebhookEventMessageSentDataChannelAccount.d.ts +13 -0
  59. package/src/serialization/types/WebhookEventMessageSentDataChannelAccount.js +44 -0
  60. package/src/serialization/types/WebhookEventMessageSentDataChannelConversation.d.ts +15 -0
  61. package/src/serialization/types/WebhookEventMessageSentDataChannelConversation.js +46 -0
  62. package/src/serialization/types/WebhookEventMessageSentDataChannelType.d.ts +10 -0
  63. package/src/serialization/types/WebhookEventMessageSentDataChannelType.js +41 -0
  64. package/src/serialization/types/WebhookEventMessageSentDataMessage.d.ts +37 -0
  65. package/src/serialization/types/WebhookEventMessageSentDataMessage.js +68 -0
  66. package/src/serialization/types/WebhookEventMessageSentDataMessageAttachmentsItem.d.ts +16 -0
  67. package/src/serialization/types/WebhookEventMessageSentDataMessageAttachmentsItem.js +47 -0
  68. package/src/serialization/types/WebhookEventMessageSentDataMessageDirection.d.ts +10 -0
  69. package/src/serialization/types/WebhookEventMessageSentDataMessageDirection.js +41 -0
  70. package/src/serialization/types/WebhookEventMessageSentDataMessageReplyTo.d.ts +13 -0
  71. package/src/serialization/types/WebhookEventMessageSentDataMessageReplyTo.js +44 -0
  72. package/src/serialization/types/WebhookEventMessageSentType.d.ts +10 -0
  73. package/src/serialization/types/WebhookEventMessageSentType.js +41 -0
  74. package/src/serialization/types/index.d.ts +11 -0
  75. package/src/serialization/types/index.js +11 -0
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface WebhookEventMessageSentDataMessageAttachmentsItem {
5
+ url: string;
6
+ filename: string | null;
7
+ mimeType: string;
8
+ size: number;
9
+ contentId: string | null;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type WebhookEventMessageSentDataMessageDirection = "IN" | "OUT";
5
+ export declare const WebhookEventMessageSentDataMessageDirection: {
6
+ readonly In: "IN";
7
+ readonly Out: "OUT";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.WebhookEventMessageSentDataMessageDirection = void 0;
7
+ exports.WebhookEventMessageSentDataMessageDirection = {
8
+ In: "IN",
9
+ Out: "OUT",
10
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface WebhookEventMessageSentDataMessageReplyTo {
5
+ externalId: string;
6
+ participant: string | null;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type WebhookEventMessageSentType = "message.sent";
5
+ export declare const WebhookEventMessageSentType: {
6
+ readonly MessageSent: "message.sent";
7
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.WebhookEventMessageSentType = void 0;
7
+ exports.WebhookEventMessageSentType = {
8
+ MessageSent: "message.sent",
9
+ };
@@ -20,6 +20,17 @@ export * from "./WebhookEventMessageSelfSentDataChannelConversation";
20
20
  export * from "./WebhookEventMessageSelfSentDataChannel";
21
21
  export * from "./WebhookEventMessageSelfSentData";
22
22
  export * from "./WebhookEventMessageSelfSent";
23
+ export * from "./WebhookEventMessageSentType";
24
+ export * from "./WebhookEventMessageSentDataMessageDirection";
25
+ export * from "./WebhookEventMessageSentDataMessageReplyTo";
26
+ export * from "./WebhookEventMessageSentDataMessageAttachmentsItem";
27
+ export * from "./WebhookEventMessageSentDataMessage";
28
+ export * from "./WebhookEventMessageSentDataChannelType";
29
+ export * from "./WebhookEventMessageSentDataChannelAccount";
30
+ export * from "./WebhookEventMessageSentDataChannelConversation";
31
+ export * from "./WebhookEventMessageSentDataChannel";
32
+ export * from "./WebhookEventMessageSentData";
33
+ export * from "./WebhookEventMessageSent";
23
34
  export * from "./WebhookEventMessageStatusType";
24
35
  export * from "./WebhookEventMessageStatusDataMessageStatus";
25
36
  export * from "./WebhookEventMessageStatusDataMessagePreviousStatus";
@@ -36,6 +36,17 @@ __exportStar(require("./WebhookEventMessageSelfSentDataChannelConversation"), ex
36
36
  __exportStar(require("./WebhookEventMessageSelfSentDataChannel"), exports);
37
37
  __exportStar(require("./WebhookEventMessageSelfSentData"), exports);
38
38
  __exportStar(require("./WebhookEventMessageSelfSent"), exports);
39
+ __exportStar(require("./WebhookEventMessageSentType"), exports);
40
+ __exportStar(require("./WebhookEventMessageSentDataMessageDirection"), exports);
41
+ __exportStar(require("./WebhookEventMessageSentDataMessageReplyTo"), exports);
42
+ __exportStar(require("./WebhookEventMessageSentDataMessageAttachmentsItem"), exports);
43
+ __exportStar(require("./WebhookEventMessageSentDataMessage"), exports);
44
+ __exportStar(require("./WebhookEventMessageSentDataChannelType"), exports);
45
+ __exportStar(require("./WebhookEventMessageSentDataChannelAccount"), exports);
46
+ __exportStar(require("./WebhookEventMessageSentDataChannelConversation"), exports);
47
+ __exportStar(require("./WebhookEventMessageSentDataChannel"), exports);
48
+ __exportStar(require("./WebhookEventMessageSentData"), exports);
49
+ __exportStar(require("./WebhookEventMessageSent"), exports);
39
50
  __exportStar(require("./WebhookEventMessageStatusType"), exports);
40
51
  __exportStar(require("./WebhookEventMessageStatusDataMessageStatus"), exports);
41
52
  __exportStar(require("./WebhookEventMessageStatusDataMessagePreviousStatus"), exports);
@@ -6,5 +6,5 @@ import * as UnlimitedMessagingApi from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const WebhookEndpointCreateRequestEventTypesItem: core.serialization.Schema<serializers.WebhookEndpointCreateRequestEventTypesItem.Raw, UnlimitedMessagingApi.WebhookEndpointCreateRequestEventTypesItem>;
8
8
  export declare namespace WebhookEndpointCreateRequestEventTypesItem {
9
- type Raw = "message.received" | "message.self_sent" | "message.status" | "message.reaction" | "message.edited" | "account.status_changed" | "message.history" | "group.updated" | "message.deleted";
9
+ type Raw = "message.received" | "message.self_sent" | "message.status" | "message.reaction" | "message.edited" | "account.status_changed" | "message.history" | "group.updated" | "message.deleted" | "message.sent";
10
10
  }
@@ -48,4 +48,5 @@ exports.WebhookEndpointCreateRequestEventTypesItem = core.serialization.enum_([
48
48
  "message.history",
49
49
  "group.updated",
50
50
  "message.deleted",
51
+ "message.sent",
51
52
  ]);
@@ -6,5 +6,5 @@ import * as UnlimitedMessagingApi from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const WebhookEndpointCreateResponseEventTypesItem: core.serialization.Schema<serializers.WebhookEndpointCreateResponseEventTypesItem.Raw, UnlimitedMessagingApi.WebhookEndpointCreateResponseEventTypesItem>;
8
8
  export declare namespace WebhookEndpointCreateResponseEventTypesItem {
9
- type Raw = "message.received" | "message.self_sent" | "message.status" | "message.reaction" | "message.edited" | "account.status_changed" | "message.history" | "group.updated" | "message.deleted";
9
+ type Raw = "message.received" | "message.self_sent" | "message.status" | "message.reaction" | "message.edited" | "account.status_changed" | "message.history" | "group.updated" | "message.deleted" | "message.sent";
10
10
  }
@@ -48,4 +48,5 @@ exports.WebhookEndpointCreateResponseEventTypesItem = core.serialization.enum_([
48
48
  "message.history",
49
49
  "group.updated",
50
50
  "message.deleted",
51
+ "message.sent",
51
52
  ]);
@@ -6,5 +6,5 @@ import * as UnlimitedMessagingApi from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const WebhookEndpointFindOneResponseEventTypesItem: core.serialization.Schema<serializers.WebhookEndpointFindOneResponseEventTypesItem.Raw, UnlimitedMessagingApi.WebhookEndpointFindOneResponseEventTypesItem>;
8
8
  export declare namespace WebhookEndpointFindOneResponseEventTypesItem {
9
- type Raw = "message.received" | "message.self_sent" | "message.status" | "message.reaction" | "message.edited" | "account.status_changed" | "message.history" | "group.updated" | "message.deleted";
9
+ type Raw = "message.received" | "message.self_sent" | "message.status" | "message.reaction" | "message.edited" | "account.status_changed" | "message.history" | "group.updated" | "message.deleted" | "message.sent";
10
10
  }
@@ -48,4 +48,5 @@ exports.WebhookEndpointFindOneResponseEventTypesItem = core.serialization.enum_(
48
48
  "message.history",
49
49
  "group.updated",
50
50
  "message.deleted",
51
+ "message.sent",
51
52
  ]);
@@ -6,5 +6,5 @@ import * as UnlimitedMessagingApi from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const WebhookEndpointListResponseDataItemEventTypesItem: core.serialization.Schema<serializers.WebhookEndpointListResponseDataItemEventTypesItem.Raw, UnlimitedMessagingApi.WebhookEndpointListResponseDataItemEventTypesItem>;
8
8
  export declare namespace WebhookEndpointListResponseDataItemEventTypesItem {
9
- type Raw = "message.received" | "message.self_sent" | "message.status" | "message.reaction" | "message.edited" | "account.status_changed" | "message.history" | "group.updated" | "message.deleted";
9
+ type Raw = "message.received" | "message.self_sent" | "message.status" | "message.reaction" | "message.edited" | "account.status_changed" | "message.history" | "group.updated" | "message.deleted" | "message.sent";
10
10
  }
@@ -48,4 +48,5 @@ exports.WebhookEndpointListResponseDataItemEventTypesItem = core.serialization.e
48
48
  "message.history",
49
49
  "group.updated",
50
50
  "message.deleted",
51
+ "message.sent",
51
52
  ]);
@@ -6,5 +6,5 @@ import * as UnlimitedMessagingApi from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const WebhookEndpointUpdateRequestEventTypesItem: core.serialization.Schema<serializers.WebhookEndpointUpdateRequestEventTypesItem.Raw, UnlimitedMessagingApi.WebhookEndpointUpdateRequestEventTypesItem>;
8
8
  export declare namespace WebhookEndpointUpdateRequestEventTypesItem {
9
- type Raw = "message.received" | "message.self_sent" | "message.status" | "message.reaction" | "message.edited" | "account.status_changed" | "message.history" | "group.updated" | "message.deleted";
9
+ type Raw = "message.received" | "message.self_sent" | "message.status" | "message.reaction" | "message.edited" | "account.status_changed" | "message.history" | "group.updated" | "message.deleted" | "message.sent";
10
10
  }
@@ -48,4 +48,5 @@ exports.WebhookEndpointUpdateRequestEventTypesItem = core.serialization.enum_([
48
48
  "message.history",
49
49
  "group.updated",
50
50
  "message.deleted",
51
+ "message.sent",
51
52
  ]);
@@ -6,5 +6,5 @@ import * as UnlimitedMessagingApi from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const WebhookEndpointUpdateResponseEventTypesItem: core.serialization.Schema<serializers.WebhookEndpointUpdateResponseEventTypesItem.Raw, UnlimitedMessagingApi.WebhookEndpointUpdateResponseEventTypesItem>;
8
8
  export declare namespace WebhookEndpointUpdateResponseEventTypesItem {
9
- type Raw = "message.received" | "message.self_sent" | "message.status" | "message.reaction" | "message.edited" | "account.status_changed" | "message.history" | "group.updated" | "message.deleted";
9
+ type Raw = "message.received" | "message.self_sent" | "message.status" | "message.reaction" | "message.edited" | "account.status_changed" | "message.history" | "group.updated" | "message.deleted" | "message.sent";
10
10
  }
@@ -48,4 +48,5 @@ exports.WebhookEndpointUpdateResponseEventTypesItem = core.serialization.enum_([
48
48
  "message.history",
49
49
  "group.updated",
50
50
  "message.deleted",
51
+ "message.sent",
51
52
  ]);
@@ -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"]);
@@ -0,0 +1,37 @@
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 { WebhookEventMessageSentDataMessageDirection } from "./WebhookEventMessageSentDataMessageDirection";
8
+ import { WebhookEventMessageSentDataMessageReplyTo } from "./WebhookEventMessageSentDataMessageReplyTo";
9
+ import { WebhookEventMessageSentDataMessageAttachmentsItem } from "./WebhookEventMessageSentDataMessageAttachmentsItem";
10
+ export declare const WebhookEventMessageSentDataMessage: core.serialization.ObjectSchema<serializers.WebhookEventMessageSentDataMessage.Raw, UnlimitedMessagingApi.WebhookEventMessageSentDataMessage>;
11
+ export declare namespace WebhookEventMessageSentDataMessage {
12
+ interface Raw {
13
+ id: string;
14
+ externalId: string | null;
15
+ direction: WebhookEventMessageSentDataMessageDirection.Raw;
16
+ fromMe: boolean;
17
+ content: string | null;
18
+ sentAt: string;
19
+ receivedAt: string;
20
+ sender: string | null;
21
+ senderId: string;
22
+ senderName: string | null;
23
+ participant: string | null;
24
+ replyTo: WebhookEventMessageSentDataMessageReplyTo.Raw | null;
25
+ mediaUrl?: string | null;
26
+ mediaType?: string | null;
27
+ mimeType?: string | null;
28
+ mediaFilename?: string | null;
29
+ mediaSize?: number | null;
30
+ durationSec?: number | null;
31
+ mediaError?: string | null;
32
+ transcript: string | null;
33
+ subject?: string | null;
34
+ html?: string | null;
35
+ attachments?: WebhookEventMessageSentDataMessageAttachmentsItem.Raw[] | null;
36
+ }
37
+ }