cv-contracts 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/enums/ChannelType.d.ts +6 -0
- package/dist/enums/ChannelType.js +11 -0
- package/dist/enums/ChannelType.js.map +1 -0
- package/dist/enums/ChannelVisibility.d.ts +5 -0
- package/dist/enums/ChannelVisibility.js +10 -0
- package/dist/enums/ChannelVisibility.js.map +1 -0
- package/dist/enums/MessageStatus.d.ts +12 -0
- package/dist/enums/MessageStatus.js +17 -0
- package/dist/enums/MessageStatus.js.map +1 -0
- package/dist/enums/MessageType.d.ts +7 -0
- package/dist/enums/MessageType.js +12 -0
- package/dist/enums/MessageType.js.map +1 -0
- package/dist/enums/ResourceType.d.ts +13 -0
- package/dist/enums/ResourceType.js +18 -0
- package/dist/enums/ResourceType.js.map +1 -0
- package/dist/enums/SubscriptionEvents.d.ts +34 -0
- package/dist/enums/SubscriptionEvents.js +40 -0
- package/dist/enums/SubscriptionEvents.js.map +1 -0
- package/dist/enums/index.d.ts +4 -0
- package/dist/enums/index.js +21 -0
- package/dist/enums/index.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces/AsyncMeetingStats.d.ts +18 -0
- package/dist/interfaces/AsyncMeetingStats.js +3 -0
- package/dist/interfaces/AsyncMeetingStats.js.map +1 -0
- package/dist/interfaces/BasicUser.d.ts +5 -0
- package/dist/interfaces/BasicUser.js +3 -0
- package/dist/interfaces/BasicUser.js.map +1 -0
- package/dist/interfaces/Channel.d.ts +24 -0
- package/dist/interfaces/Channel.js +3 -0
- package/dist/interfaces/Channel.js.map +1 -0
- package/dist/interfaces/ChannelUserJoined.d.ts +6 -0
- package/dist/interfaces/ChannelUserJoined.js +3 -0
- package/dist/interfaces/ChannelUserJoined.js.map +1 -0
- package/dist/interfaces/ChannelUserLeft.d.ts +6 -0
- package/dist/interfaces/ChannelUserLeft.js +3 -0
- package/dist/interfaces/ChannelUserLeft.js.map +1 -0
- package/dist/interfaces/ChannelUserRemoved.d.ts +7 -0
- package/dist/interfaces/ChannelUserRemoved.js +3 -0
- package/dist/interfaces/ChannelUserRemoved.js.map +1 -0
- package/dist/interfaces/ChannelUsersAdded.d.ts +7 -0
- package/dist/interfaces/ChannelUsersAdded.js +3 -0
- package/dist/interfaces/ChannelUsersAdded.js.map +1 -0
- package/dist/interfaces/Message.d.ts +25 -0
- package/dist/interfaces/Message.js +3 -0
- package/dist/interfaces/Message.js.map +1 -0
- package/dist/interfaces/SubscribedUserSettings.js.map +1 -0
- package/dist/interfaces/WebhookPayload.d.ts +35 -0
- package/dist/interfaces/WebhookPayload.js +3 -0
- package/dist/interfaces/WebhookPayload.js.map +1 -0
- package/dist/interfaces/Workspace.d.ts +12 -0
- package/dist/interfaces/Workspace.js +3 -0
- package/dist/interfaces/Workspace.js.map +1 -0
- package/dist/interfaces/WorkspaceFindableChannelCreated.d.ts +6 -0
- package/dist/interfaces/WorkspaceFindableChannelCreated.js +3 -0
- package/dist/interfaces/WorkspaceFindableChannelCreated.js.map +1 -0
- package/dist/interfaces/WorkspaceUserJoined.d.ts +6 -0
- package/dist/interfaces/WorkspaceUserJoined.js +3 -0
- package/dist/interfaces/WorkspaceUserJoined.js.map +1 -0
- package/dist/interfaces/WorkspaceUserLeft.d.ts +6 -0
- package/dist/interfaces/WorkspaceUserLeft.js +3 -0
- package/dist/interfaces/WorkspaceUserLeft.js.map +1 -0
- package/dist/interfaces/WorkspaceUserRemoved.d.ts +7 -0
- package/dist/interfaces/WorkspaceUserRemoved.js +3 -0
- package/dist/interfaces/WorkspaceUserRemoved.js.map +1 -0
- package/dist/interfaces/index.d.ts +15 -0
- package/dist/interfaces/index.js +32 -0
- package/dist/interfaces/index.js.map +1 -0
- package/package.json +1 -1
- package/dist/SubscribedUserSettings.js.map +0 -1
- /package/dist/{SubscribedUserSettings.d.ts → interfaces/SubscribedUserSettings.d.ts} +0 -0
- /package/dist/{SubscribedUserSettings.js → interfaces/SubscribedUserSettings.js} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChannelType = void 0;
|
|
4
|
+
var ChannelType;
|
|
5
|
+
(function (ChannelType) {
|
|
6
|
+
ChannelType["DirectMessage"] = "directMessage";
|
|
7
|
+
ChannelType["CustomerConversation"] = "customerConversation";
|
|
8
|
+
ChannelType["NamedConversation"] = "namedConversation";
|
|
9
|
+
ChannelType["AsyncMeeting"] = "asyncMeeting";
|
|
10
|
+
})(ChannelType = exports.ChannelType || (exports.ChannelType = {}));
|
|
11
|
+
//# sourceMappingURL=ChannelType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelType.js","sourceRoot":"","sources":["../../src/enums/ChannelType.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,8CAA+B,CAAA;IAC/B,4DAA6C,CAAA;IAC7C,sDAAuC,CAAA;IACvC,4CAA6B,CAAA;AAC/B,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChannelVisibility = void 0;
|
|
4
|
+
var ChannelVisibility;
|
|
5
|
+
(function (ChannelVisibility) {
|
|
6
|
+
ChannelVisibility["Private"] = "private";
|
|
7
|
+
ChannelVisibility["Workspace"] = "workspace";
|
|
8
|
+
ChannelVisibility["Public"] = "public";
|
|
9
|
+
})(ChannelVisibility = exports.ChannelVisibility || (exports.ChannelVisibility = {}));
|
|
10
|
+
//# sourceMappingURL=ChannelVisibility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelVisibility.js","sourceRoot":"","sources":["../../src/enums/ChannelVisibility.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;IACvB,sCAAiB,CAAA;AACnB,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum MessageStatus {
|
|
2
|
+
OFFLINE = "offline",
|
|
3
|
+
PAUSED = "paused",
|
|
4
|
+
PROCESSING = "processing",
|
|
5
|
+
SCHEDULED = "scheduled",
|
|
6
|
+
ACTIVE = "active",
|
|
7
|
+
DELETED = "deleted",
|
|
8
|
+
ACCOUNT_DELETED = "account-deleted",
|
|
9
|
+
INITIALIZING = "initializing",
|
|
10
|
+
INPROGRESS = "inprogress",
|
|
11
|
+
CANCELED = "canceled"
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageStatus = void 0;
|
|
4
|
+
var MessageStatus;
|
|
5
|
+
(function (MessageStatus) {
|
|
6
|
+
MessageStatus["OFFLINE"] = "offline";
|
|
7
|
+
MessageStatus["PAUSED"] = "paused";
|
|
8
|
+
MessageStatus["PROCESSING"] = "processing";
|
|
9
|
+
MessageStatus["SCHEDULED"] = "scheduled";
|
|
10
|
+
MessageStatus["ACTIVE"] = "active";
|
|
11
|
+
MessageStatus["DELETED"] = "deleted";
|
|
12
|
+
MessageStatus["ACCOUNT_DELETED"] = "account-deleted";
|
|
13
|
+
MessageStatus["INITIALIZING"] = "initializing";
|
|
14
|
+
MessageStatus["INPROGRESS"] = "inprogress";
|
|
15
|
+
MessageStatus["CANCELED"] = "canceled";
|
|
16
|
+
})(MessageStatus = exports.MessageStatus || (exports.MessageStatus = {}));
|
|
17
|
+
//# sourceMappingURL=MessageStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageStatus.js","sourceRoot":"","sources":["../../src/enums/MessageStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAWX;AAXD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,0CAAyB,CAAA;IACzB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;IACnB,oDAAmC,CAAA;IACnC,8CAA6B,CAAA;IAC7B,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;AACvB,CAAC,EAXW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAWxB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageType = void 0;
|
|
4
|
+
var MessageType;
|
|
5
|
+
(function (MessageType) {
|
|
6
|
+
MessageType["Channel"] = "channel";
|
|
7
|
+
MessageType["PreRecorded"] = "prerecorded";
|
|
8
|
+
MessageType["VoiceMemo"] = "voicememo";
|
|
9
|
+
MessageType["Stored"] = "stored";
|
|
10
|
+
MessageType["Welcome"] = "welcome";
|
|
11
|
+
})(MessageType = exports.MessageType || (exports.MessageType = {}));
|
|
12
|
+
//# sourceMappingURL=MessageType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageType.js","sourceRoot":"","sources":["../../src/enums/MessageType.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,0CAA2B,CAAA;IAC3B,sCAAuB,CAAA;IACvB,gCAAiB,CAAA;IACjB,kCAAmB,CAAA;AACrB,CAAC,EANW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAMtB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum ResourceType {
|
|
2
|
+
Message = "Message",
|
|
3
|
+
Channel = "Channel",
|
|
4
|
+
ChannelUsersAdded = "ChannelUsersAdded",
|
|
5
|
+
ChannelUserJoined = "ChannelUserJoined",
|
|
6
|
+
ChannelUserRemoved = "ChannelUserRemoved",
|
|
7
|
+
ChannelUserLeft = "ChannelUserLeft",
|
|
8
|
+
Workspace = "Workspace",
|
|
9
|
+
WorkspaceUserJoined = "WorkspaceUserJoined",
|
|
10
|
+
WorkspaceUserRemoved = "WorkspaceUserRemoved",
|
|
11
|
+
WorkspaceUserLeft = "WorkspaceUserLeft",
|
|
12
|
+
WorkspaceFindableChannelCreated = "WorkspaceFindableChannelCreated"
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceType = void 0;
|
|
4
|
+
var ResourceType;
|
|
5
|
+
(function (ResourceType) {
|
|
6
|
+
ResourceType["Message"] = "Message";
|
|
7
|
+
ResourceType["Channel"] = "Channel";
|
|
8
|
+
ResourceType["ChannelUsersAdded"] = "ChannelUsersAdded";
|
|
9
|
+
ResourceType["ChannelUserJoined"] = "ChannelUserJoined";
|
|
10
|
+
ResourceType["ChannelUserRemoved"] = "ChannelUserRemoved";
|
|
11
|
+
ResourceType["ChannelUserLeft"] = "ChannelUserLeft";
|
|
12
|
+
ResourceType["Workspace"] = "Workspace";
|
|
13
|
+
ResourceType["WorkspaceUserJoined"] = "WorkspaceUserJoined";
|
|
14
|
+
ResourceType["WorkspaceUserRemoved"] = "WorkspaceUserRemoved";
|
|
15
|
+
ResourceType["WorkspaceUserLeft"] = "WorkspaceUserLeft";
|
|
16
|
+
ResourceType["WorkspaceFindableChannelCreated"] = "WorkspaceFindableChannelCreated";
|
|
17
|
+
})(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
|
|
18
|
+
//# sourceMappingURL=ResourceType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceType.js","sourceRoot":"","sources":["../../src/enums/ResourceType.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAYX;AAZD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,uDAAuC,CAAA;IACvC,yDAAyC,CAAA;IACzC,mDAAmC,CAAA;IACnC,uCAAuB,CAAA;IACvB,2DAA2C,CAAA;IAC3C,6DAA6C,CAAA;IAC7C,uDAAuC,CAAA;IACvC,mFAAmE,CAAA;AACrE,CAAC,EAZW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAYvB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare enum SubscriptionEvents {
|
|
2
|
+
/** Messages */
|
|
3
|
+
MESSAGE_INITIALIZING = "message.initializing",
|
|
4
|
+
MESSAGE_STARTED = "message.started",
|
|
5
|
+
MESSAGE_PAUSED = "message.paused",
|
|
6
|
+
MESSAGE_RESUMED = "message.resumed",
|
|
7
|
+
MESSAGE_OFFLINE = "message.offline",
|
|
8
|
+
MESSAGE_PROCESSING = "message.processing",
|
|
9
|
+
MESSAGE_FINISHED = "message.finished",
|
|
10
|
+
MESSAGE_DELETED = "message.deleted",
|
|
11
|
+
MESSAGE_DISCUSSION_NOTES_ADDED = "message.discussion-notes.added",
|
|
12
|
+
MESSAGE_LABEL_ADDED = "message.label.added",
|
|
13
|
+
/** Channels */
|
|
14
|
+
CHANNEL_CREATED = "channel.created",
|
|
15
|
+
CHANNEL_DELETED = "channel.deleted",
|
|
16
|
+
CHANNEL_USER_JOINED = "channel.user.joined",
|
|
17
|
+
CHANNEL_USERS_ADDED = "channel.users.added",
|
|
18
|
+
CHANNEL_USER_LEFT = "channel.user.left",
|
|
19
|
+
CHANNEL_USER_REMOVED = "channel.user.removed",
|
|
20
|
+
CHANNEL_ASYNC_CHECK_MID = "channel.async-check.mid",
|
|
21
|
+
CHANNEL_ASYNC_CHECK_ENDING = "channel.async-check.ending",
|
|
22
|
+
CHANNEL_ASYNC_ENDED = "channel.async.ended",
|
|
23
|
+
CHANNEL_ASYNC_EXTENDED = "channel.async.extended",
|
|
24
|
+
CHANNEL_ASYNC_SHORTENED = "channel.async.shortened",
|
|
25
|
+
CHANNEL_AI_SUMMARY_GENERATED = "channel.ai-summary.generated",
|
|
26
|
+
/** Workspace */
|
|
27
|
+
WORKSPACE_USER_JOINED = "workspace.user.joined",
|
|
28
|
+
WORKSPACE_USER_ADDED = "workspace.user.added",
|
|
29
|
+
WORKSPACE_USER_LEFT = "workspace.user.left",
|
|
30
|
+
WORKSPACE_USER_REMOVED = "workspace.user.removed",
|
|
31
|
+
WORKSPACE_FINDABLE_CHANNEL_CREATED = "workspace.findable-channel.created",
|
|
32
|
+
WEBHOOK_ACCESS_TOKEN_EXPIRED = "access_token.expired",
|
|
33
|
+
WEBHOOK_REFRESH_TOKEN_EXPIRED = "refresh_token.expired"
|
|
34
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionEvents = void 0;
|
|
4
|
+
var SubscriptionEvents;
|
|
5
|
+
(function (SubscriptionEvents) {
|
|
6
|
+
/** Messages */
|
|
7
|
+
SubscriptionEvents["MESSAGE_INITIALIZING"] = "message.initializing";
|
|
8
|
+
SubscriptionEvents["MESSAGE_STARTED"] = "message.started";
|
|
9
|
+
SubscriptionEvents["MESSAGE_PAUSED"] = "message.paused";
|
|
10
|
+
SubscriptionEvents["MESSAGE_RESUMED"] = "message.resumed";
|
|
11
|
+
SubscriptionEvents["MESSAGE_OFFLINE"] = "message.offline";
|
|
12
|
+
SubscriptionEvents["MESSAGE_PROCESSING"] = "message.processing";
|
|
13
|
+
SubscriptionEvents["MESSAGE_FINISHED"] = "message.finished";
|
|
14
|
+
SubscriptionEvents["MESSAGE_DELETED"] = "message.deleted";
|
|
15
|
+
SubscriptionEvents["MESSAGE_DISCUSSION_NOTES_ADDED"] = "message.discussion-notes.added";
|
|
16
|
+
SubscriptionEvents["MESSAGE_LABEL_ADDED"] = "message.label.added";
|
|
17
|
+
/** Channels */
|
|
18
|
+
SubscriptionEvents["CHANNEL_CREATED"] = "channel.created";
|
|
19
|
+
SubscriptionEvents["CHANNEL_DELETED"] = "channel.deleted";
|
|
20
|
+
SubscriptionEvents["CHANNEL_USER_JOINED"] = "channel.user.joined";
|
|
21
|
+
SubscriptionEvents["CHANNEL_USERS_ADDED"] = "channel.users.added";
|
|
22
|
+
SubscriptionEvents["CHANNEL_USER_LEFT"] = "channel.user.left";
|
|
23
|
+
SubscriptionEvents["CHANNEL_USER_REMOVED"] = "channel.user.removed";
|
|
24
|
+
SubscriptionEvents["CHANNEL_ASYNC_CHECK_MID"] = "channel.async-check.mid";
|
|
25
|
+
SubscriptionEvents["CHANNEL_ASYNC_CHECK_ENDING"] = "channel.async-check.ending";
|
|
26
|
+
SubscriptionEvents["CHANNEL_ASYNC_ENDED"] = "channel.async.ended";
|
|
27
|
+
SubscriptionEvents["CHANNEL_ASYNC_EXTENDED"] = "channel.async.extended";
|
|
28
|
+
SubscriptionEvents["CHANNEL_ASYNC_SHORTENED"] = "channel.async.shortened";
|
|
29
|
+
SubscriptionEvents["CHANNEL_AI_SUMMARY_GENERATED"] = "channel.ai-summary.generated";
|
|
30
|
+
/** Workspace */
|
|
31
|
+
SubscriptionEvents["WORKSPACE_USER_JOINED"] = "workspace.user.joined";
|
|
32
|
+
SubscriptionEvents["WORKSPACE_USER_ADDED"] = "workspace.user.added";
|
|
33
|
+
SubscriptionEvents["WORKSPACE_USER_LEFT"] = "workspace.user.left";
|
|
34
|
+
SubscriptionEvents["WORKSPACE_USER_REMOVED"] = "workspace.user.removed";
|
|
35
|
+
SubscriptionEvents["WORKSPACE_FINDABLE_CHANNEL_CREATED"] = "workspace.findable-channel.created";
|
|
36
|
+
// Webhooks Events, users don't need to subscribe, every user that is subscribed to any event could get one of.
|
|
37
|
+
SubscriptionEvents["WEBHOOK_ACCESS_TOKEN_EXPIRED"] = "access_token.expired";
|
|
38
|
+
SubscriptionEvents["WEBHOOK_REFRESH_TOKEN_EXPIRED"] = "refresh_token.expired";
|
|
39
|
+
})(SubscriptionEvents = exports.SubscriptionEvents || (exports.SubscriptionEvents = {}));
|
|
40
|
+
//# sourceMappingURL=SubscriptionEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionEvents.js","sourceRoot":"","sources":["../../src/enums/SubscriptionEvents.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAqCX;AArCD,WAAY,kBAAkB;IAC5B,eAAe;IACf,mEAA6C,CAAA;IAC7C,yDAAmC,CAAA;IACnC,uDAAiC,CAAA;IACjC,yDAAmC,CAAA;IACnC,yDAAmC,CAAA;IACnC,+DAAyC,CAAA;IACzC,2DAAqC,CAAA;IACrC,yDAAmC,CAAA;IACnC,uFAAiE,CAAA;IACjE,iEAA2C,CAAA;IAE3C,eAAe;IACf,yDAAmC,CAAA;IACnC,yDAAmC,CAAA;IACnC,iEAA2C,CAAA;IAC3C,iEAA2C,CAAA;IAC3C,6DAAuC,CAAA;IACvC,mEAA6C,CAAA;IAC7C,yEAAmD,CAAA;IACnD,+EAAyD,CAAA;IACzD,iEAA2C,CAAA;IAC3C,uEAAiD,CAAA;IACjD,yEAAmD,CAAA;IACnD,mFAA6D,CAAA;IAE7D,gBAAgB;IAChB,qEAA+C,CAAA;IAC/C,mEAA6C,CAAA;IAC7C,iEAA2C,CAAA;IAC3C,uEAAiD,CAAA;IACjD,+FAAyE,CAAA;IAEzE,+GAA+G;IAC/G,2EAAqD,CAAA;IACrD,6EAAuD,CAAA;AACzD,CAAC,EArCW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAqC7B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./SubscriptionEvents"), exports);
|
|
18
|
+
__exportStar(require("./MessageStatus"), exports);
|
|
19
|
+
__exportStar(require("./ChannelVisibility"), exports);
|
|
20
|
+
__exportStar(require("./ChannelType"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './interfaces';
|
|
2
|
+
export * from './enums';
|
package/dist/index.js
CHANGED
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./interfaces"), exports);
|
|
18
|
+
__exportStar(require("./enums"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,0CAAwB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface AsyncMeetingStats {
|
|
2
|
+
channel_stats: {
|
|
3
|
+
total_duration_milliseconds: number;
|
|
4
|
+
total_heard_milliseconds: number;
|
|
5
|
+
total_engaged_percentage: number;
|
|
6
|
+
total_messages_posted: number;
|
|
7
|
+
total_users: number;
|
|
8
|
+
};
|
|
9
|
+
user_stats: {
|
|
10
|
+
user_id: string;
|
|
11
|
+
total_messages_posted: number;
|
|
12
|
+
total_sent_milliseconds: number;
|
|
13
|
+
total_heard_milliseconds: number;
|
|
14
|
+
total_engaged_percentage: number;
|
|
15
|
+
total_heard_messages: number;
|
|
16
|
+
total_unheard_messages: number;
|
|
17
|
+
}[];
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AsyncMeetingStats.js","sourceRoot":"","sources":["../../src/interfaces/AsyncMeetingStats.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasicUser.js","sourceRoot":"","sources":["../../src/interfaces/BasicUser.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AsyncMeetingStats } from './AsyncMeetingStats';
|
|
2
|
+
import { ChannelType, ChannelVisibility } from '../enums';
|
|
3
|
+
export interface Channel {
|
|
4
|
+
channel_guid: string;
|
|
5
|
+
channel_name: string;
|
|
6
|
+
channel_description?: string | null;
|
|
7
|
+
workspace_guid: string;
|
|
8
|
+
workspace_name: string;
|
|
9
|
+
workspace_image_url?: string | null;
|
|
10
|
+
owner_guid: string;
|
|
11
|
+
owner_first_name: string;
|
|
12
|
+
owner_last_name: string;
|
|
13
|
+
type: ChannelType;
|
|
14
|
+
visibility: ChannelVisibility;
|
|
15
|
+
total_messages: number;
|
|
16
|
+
total_duration_ms: number;
|
|
17
|
+
image_url?: string | null;
|
|
18
|
+
is_private: boolean;
|
|
19
|
+
is_async: boolean;
|
|
20
|
+
async_stats?: AsyncMeetingStats | null;
|
|
21
|
+
created_at: number;
|
|
22
|
+
last_updated_at: number;
|
|
23
|
+
deleted_at?: number | null;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Channel.js","sourceRoot":"","sources":["../../src/interfaces/Channel.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelUserJoined.js","sourceRoot":"","sources":["../../src/interfaces/ChannelUserJoined.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelUserLeft.js","sourceRoot":"","sources":["../../src/interfaces/ChannelUserLeft.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelUserRemoved.js","sourceRoot":"","sources":["../../src/interfaces/ChannelUserRemoved.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelUsersAdded.js","sourceRoot":"","sources":["../../src/interfaces/ChannelUsersAdded.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MessageStatus } from '../enums';
|
|
2
|
+
import { MessageType } from '../enums/MessageType';
|
|
3
|
+
export interface Message {
|
|
4
|
+
message_guid: string;
|
|
5
|
+
creator_guid: string;
|
|
6
|
+
channel_guid?: string | null;
|
|
7
|
+
workspace_guid?: string | null;
|
|
8
|
+
creator_first_name: string;
|
|
9
|
+
creator_last_name: string;
|
|
10
|
+
created_at: number;
|
|
11
|
+
last_updated_at: number;
|
|
12
|
+
deleted_at?: number | null;
|
|
13
|
+
duration_ms: number;
|
|
14
|
+
message_url?: string | null;
|
|
15
|
+
audio_stream_url?: string | null;
|
|
16
|
+
transcript_txt?: string | null;
|
|
17
|
+
ai_summary_txt?: string | null;
|
|
18
|
+
has_ai_summary?: boolean;
|
|
19
|
+
waveform_url?: string | null;
|
|
20
|
+
reply_count: number;
|
|
21
|
+
parent_message_guid?: string | null;
|
|
22
|
+
language?: string | null;
|
|
23
|
+
status: MessageStatus;
|
|
24
|
+
type: MessageType;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Message.js","sourceRoot":"","sources":["../../src/interfaces/Message.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscribedUserSettings.js","sourceRoot":"","sources":["../../src/interfaces/SubscribedUserSettings.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { SubscribedUserSettings } from './SubscribedUserSettings';
|
|
2
|
+
import { SubscriptionEvents } from '../enums';
|
|
3
|
+
import { ResourceType } from '../enums/ResourceType';
|
|
4
|
+
export interface WebhookPayload<Resource> {
|
|
5
|
+
/**
|
|
6
|
+
* The event name that happened
|
|
7
|
+
*/
|
|
8
|
+
eventName: SubscriptionEvents;
|
|
9
|
+
/**
|
|
10
|
+
* List of userIds that are subscribed to the event
|
|
11
|
+
*/
|
|
12
|
+
subscribedUserIds: string[];
|
|
13
|
+
/**
|
|
14
|
+
* List of subscribed users settings
|
|
15
|
+
*/
|
|
16
|
+
subscribedUserSettings?: SubscribedUserSettings[];
|
|
17
|
+
data: {
|
|
18
|
+
/**
|
|
19
|
+
* The event name that happened
|
|
20
|
+
*/
|
|
21
|
+
eventName: SubscriptionEvents;
|
|
22
|
+
/**
|
|
23
|
+
* The resource id e.g: MessageId, ChannelId, WorkspaceId
|
|
24
|
+
*/
|
|
25
|
+
resourceId: string;
|
|
26
|
+
/**
|
|
27
|
+
* The type of the resource
|
|
28
|
+
*/
|
|
29
|
+
resourceType: ResourceType;
|
|
30
|
+
/**
|
|
31
|
+
* The resource data, varies by event
|
|
32
|
+
*/
|
|
33
|
+
resource: Resource;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebhookPayload.js","sourceRoot":"","sources":["../../src/interfaces/WebhookPayload.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface Workspace {
|
|
2
|
+
workspace_guid: string;
|
|
3
|
+
workspace_name: string;
|
|
4
|
+
workspace_description?: string | null;
|
|
5
|
+
image_url?: string | null;
|
|
6
|
+
owner_guid: string;
|
|
7
|
+
owner_first_name: string;
|
|
8
|
+
owner_last_name: string;
|
|
9
|
+
created_at: number;
|
|
10
|
+
last_updated_at: number;
|
|
11
|
+
deleted_at?: number | null;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Workspace.js","sourceRoot":"","sources":["../../src/interfaces/Workspace.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceFindableChannelCreated.js","sourceRoot":"","sources":["../../src/interfaces/WorkspaceFindableChannelCreated.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceUserJoined.js","sourceRoot":"","sources":["../../src/interfaces/WorkspaceUserJoined.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceUserLeft.js","sourceRoot":"","sources":["../../src/interfaces/WorkspaceUserLeft.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceUserRemoved.js","sourceRoot":"","sources":["../../src/interfaces/WorkspaceUserRemoved.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './AsyncMeetingStats';
|
|
2
|
+
export * from './BasicUser';
|
|
3
|
+
export * from './Channel';
|
|
4
|
+
export * from './ChannelUserJoined';
|
|
5
|
+
export * from './ChannelUserLeft';
|
|
6
|
+
export * from './ChannelUserRemoved';
|
|
7
|
+
export * from './ChannelUsersAdded';
|
|
8
|
+
export * from './Message';
|
|
9
|
+
export * from './SubscribedUserSettings';
|
|
10
|
+
export * from './WebhookPayload';
|
|
11
|
+
export * from './Workspace';
|
|
12
|
+
export * from './WorkspaceFindableChannelCreated';
|
|
13
|
+
export * from './WorkspaceUserJoined';
|
|
14
|
+
export * from './WorkspaceUserLeft';
|
|
15
|
+
export * from './WorkspaceUserRemoved';
|
|
@@ -0,0 +1,32 @@
|
|
|
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("./AsyncMeetingStats"), exports);
|
|
18
|
+
__exportStar(require("./BasicUser"), exports);
|
|
19
|
+
__exportStar(require("./Channel"), exports);
|
|
20
|
+
__exportStar(require("./ChannelUserJoined"), exports);
|
|
21
|
+
__exportStar(require("./ChannelUserLeft"), exports);
|
|
22
|
+
__exportStar(require("./ChannelUserRemoved"), exports);
|
|
23
|
+
__exportStar(require("./ChannelUsersAdded"), exports);
|
|
24
|
+
__exportStar(require("./Message"), exports);
|
|
25
|
+
__exportStar(require("./SubscribedUserSettings"), exports);
|
|
26
|
+
__exportStar(require("./WebhookPayload"), exports);
|
|
27
|
+
__exportStar(require("./Workspace"), exports);
|
|
28
|
+
__exportStar(require("./WorkspaceFindableChannelCreated"), exports);
|
|
29
|
+
__exportStar(require("./WorkspaceUserJoined"), exports);
|
|
30
|
+
__exportStar(require("./WorkspaceUserLeft"), exports);
|
|
31
|
+
__exportStar(require("./WorkspaceUserRemoved"), exports);
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,8CAA4B;AAC5B,4CAA0B;AAC1B,sDAAoC;AACpC,oDAAkC;AAClC,uDAAqC;AACrC,sDAAoC;AACpC,4CAA0B;AAC1B,2DAAyC;AACzC,mDAAiC;AACjC,8CAA4B;AAC5B,oEAAkD;AAClD,wDAAsC;AACtC,sDAAoC;AACpC,yDAAuC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SubscribedUserSettings.js","sourceRoot":"","sources":["../src/SubscribedUserSettings.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|