cv-contracts 0.0.12 → 0.0.14
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/BasicUserSchema.d.ts +17 -0
- package/dist/BasicUserSchema.js +21 -0
- package/dist/BasicUserSchema.js.map +1 -0
- package/dist/ChannelTypeSchema.d.ts +5 -0
- package/dist/ChannelTypeSchema.js +14 -0
- package/dist/ChannelTypeSchema.js.map +1 -0
- package/dist/interfaces/Message.d.ts +0 -2
- package/dist/schemas/AsyncMeetingStatsSchema.d.ts +65 -0
- package/dist/schemas/AsyncMeetingStatsSchema.js +84 -0
- package/dist/schemas/AsyncMeetingStatsSchema.js.map +1 -0
- package/dist/schemas/BasicUserSchema.d.ts +22 -0
- package/dist/schemas/BasicUserSchema.js +27 -0
- package/dist/schemas/BasicUserSchema.js.map +1 -0
- package/dist/schemas/ChannelSchema.d.ts +164 -0
- package/dist/schemas/ChannelSchema.js +207 -0
- package/dist/schemas/ChannelSchema.js.map +1 -0
- package/dist/schemas/ChannelUserJoinedSchema.d.ts +175 -0
- package/dist/schemas/ChannelUserJoinedSchema.js +218 -0
- package/dist/schemas/ChannelUserJoinedSchema.js.map +1 -0
- package/dist/schemas/ChannelUserLeftSchema.d.ts +175 -0
- package/dist/schemas/ChannelUserLeftSchema.js +218 -0
- package/dist/schemas/ChannelUserLeftSchema.js.map +1 -0
- package/dist/schemas/ChannelUserRemovedSchema.d.ts +179 -0
- package/dist/schemas/ChannelUserRemovedSchema.js +222 -0
- package/dist/schemas/ChannelUserRemovedSchema.js.map +1 -0
- package/dist/schemas/ChannelUsersAddedSchema.d.ts +182 -0
- package/dist/schemas/ChannelUsersAddedSchema.js +225 -0
- package/dist/schemas/ChannelUsersAddedSchema.js.map +1 -0
- package/dist/schemas/LabelSchema.d.ts +56 -0
- package/dist/schemas/LabelSchema.js +61 -0
- package/dist/schemas/LabelSchema.js.map +1 -0
- package/dist/schemas/MessageSchema.d.ts +96 -0
- package/dist/schemas/MessageSchema.js +121 -0
- package/dist/schemas/MessageSchema.js.map +1 -0
- package/dist/schemas/SubscribedUserSettingsSchema.d.ts +22 -0
- package/dist/schemas/SubscribedUserSettingsSchema.js +27 -0
- package/dist/schemas/SubscribedUserSettingsSchema.js.map +1 -0
- package/dist/schemas/SubscriptionFilterSchema.d.ts +21 -0
- package/dist/schemas/SubscriptionFilterSchema.js +26 -0
- package/dist/schemas/SubscriptionFilterSchema.js.map +1 -0
- package/dist/schemas/WebhookPayloadSchema.d.ts +85 -0
- package/dist/schemas/WebhookPayloadSchema.js +132 -0
- package/dist/schemas/WebhookPayloadSchema.js.map +1 -0
- package/dist/schemas/WorkspaceFindableChannelCreatedSchema.d.ts +196 -0
- package/dist/schemas/WorkspaceFindableChannelCreatedSchema.js +247 -0
- package/dist/schemas/WorkspaceFindableChannelCreatedSchema.js.map +1 -0
- package/dist/schemas/WorkspaceSchema.d.ts +50 -0
- package/dist/schemas/WorkspaceSchema.js +63 -0
- package/dist/schemas/WorkspaceSchema.js.map +1 -0
- package/dist/schemas/WorkspaceUserAddedSchema.d.ts +73 -0
- package/dist/schemas/WorkspaceUserAddedSchema.js +86 -0
- package/dist/schemas/WorkspaceUserAddedSchema.js.map +1 -0
- package/dist/schemas/WorkspaceUserJoinedSchema.d.ts +73 -0
- package/dist/schemas/WorkspaceUserJoinedSchema.js +86 -0
- package/dist/schemas/WorkspaceUserJoinedSchema.js.map +1 -0
- package/dist/schemas/WorkspaceUserLeftSchema.d.ts +73 -0
- package/dist/schemas/WorkspaceUserLeftSchema.js +86 -0
- package/dist/schemas/WorkspaceUserLeftSchema.js.map +1 -0
- package/dist/schemas/WorkspaceUserRemovedSchema.d.ts +77 -0
- package/dist/schemas/WorkspaceUserRemovedSchema.js +90 -0
- package/dist/schemas/WorkspaceUserRemovedSchema.js.map +1 -0
- package/dist/schemas/index.d.ts +18 -0
- package/dist/schemas/index.js +35 -0
- package/dist/schemas/index.js.map +1 -0
- package/package.json +5 -3
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
export declare const ChannelUserJoinedSchema: {
|
|
2
|
+
readonly type: "object";
|
|
3
|
+
readonly properties: {
|
|
4
|
+
readonly channel: {
|
|
5
|
+
readonly $ref: "#/definitions/Channel";
|
|
6
|
+
};
|
|
7
|
+
readonly joinedUser: {
|
|
8
|
+
readonly $ref: "#/definitions/BasicUser";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
readonly additionalProperties: false;
|
|
12
|
+
readonly required: readonly ["channel", "joinedUser"];
|
|
13
|
+
readonly definitions: {
|
|
14
|
+
readonly Channel: {
|
|
15
|
+
readonly type: "object";
|
|
16
|
+
readonly properties: {
|
|
17
|
+
readonly channel_guid: {
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
};
|
|
20
|
+
readonly channel_name: {
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
};
|
|
23
|
+
readonly channel_description: {
|
|
24
|
+
readonly type: readonly ["null", "string"];
|
|
25
|
+
};
|
|
26
|
+
readonly workspace_guid: {
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
};
|
|
29
|
+
readonly workspace_name: {
|
|
30
|
+
readonly type: "string";
|
|
31
|
+
};
|
|
32
|
+
readonly workspace_image_url: {
|
|
33
|
+
readonly type: readonly ["null", "string"];
|
|
34
|
+
};
|
|
35
|
+
readonly owner_guid: {
|
|
36
|
+
readonly type: "string";
|
|
37
|
+
};
|
|
38
|
+
readonly owner_first_name: {
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
};
|
|
41
|
+
readonly owner_last_name: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
};
|
|
44
|
+
readonly type: {
|
|
45
|
+
readonly $ref: "#/definitions/ChannelType";
|
|
46
|
+
};
|
|
47
|
+
readonly visibility: {
|
|
48
|
+
readonly $ref: "#/definitions/ChannelVisibility";
|
|
49
|
+
};
|
|
50
|
+
readonly total_messages: {
|
|
51
|
+
readonly type: "number";
|
|
52
|
+
};
|
|
53
|
+
readonly total_duration_ms: {
|
|
54
|
+
readonly type: "number";
|
|
55
|
+
};
|
|
56
|
+
readonly image_url: {
|
|
57
|
+
readonly type: readonly ["null", "string"];
|
|
58
|
+
};
|
|
59
|
+
readonly is_private: {
|
|
60
|
+
readonly type: "boolean";
|
|
61
|
+
};
|
|
62
|
+
readonly is_async: {
|
|
63
|
+
readonly type: "boolean";
|
|
64
|
+
};
|
|
65
|
+
readonly async_stats: {
|
|
66
|
+
readonly anyOf: readonly [{
|
|
67
|
+
readonly $ref: "#/definitions/AsyncMeetingStats";
|
|
68
|
+
}, {
|
|
69
|
+
readonly type: "null";
|
|
70
|
+
}];
|
|
71
|
+
};
|
|
72
|
+
readonly created_at: {
|
|
73
|
+
readonly type: "number";
|
|
74
|
+
};
|
|
75
|
+
readonly last_updated_at: {
|
|
76
|
+
readonly type: "number";
|
|
77
|
+
};
|
|
78
|
+
readonly deleted_at: {
|
|
79
|
+
readonly type: readonly ["null", "number"];
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
readonly additionalProperties: false;
|
|
83
|
+
readonly required: readonly ["channel_guid", "channel_name", "created_at", "is_async", "is_private", "last_updated_at", "owner_first_name", "owner_guid", "owner_last_name", "total_duration_ms", "total_messages", "type", "visibility", "workspace_guid", "workspace_name"];
|
|
84
|
+
};
|
|
85
|
+
readonly ChannelType: {
|
|
86
|
+
readonly type: "string";
|
|
87
|
+
readonly enum: readonly ["directMessage", "customerConversation", "namedConversation", "asyncMeeting"];
|
|
88
|
+
};
|
|
89
|
+
readonly ChannelVisibility: {
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
readonly enum: readonly ["private", "workspace", "public"];
|
|
92
|
+
};
|
|
93
|
+
readonly AsyncMeetingStats: {
|
|
94
|
+
readonly type: "object";
|
|
95
|
+
readonly properties: {
|
|
96
|
+
readonly channel_stats: {
|
|
97
|
+
readonly type: "object";
|
|
98
|
+
readonly properties: {
|
|
99
|
+
readonly total_duration_milliseconds: {
|
|
100
|
+
readonly type: "number";
|
|
101
|
+
};
|
|
102
|
+
readonly total_heard_milliseconds: {
|
|
103
|
+
readonly type: "number";
|
|
104
|
+
};
|
|
105
|
+
readonly total_engaged_percentage: {
|
|
106
|
+
readonly type: "number";
|
|
107
|
+
};
|
|
108
|
+
readonly total_messages_posted: {
|
|
109
|
+
readonly type: "number";
|
|
110
|
+
};
|
|
111
|
+
readonly total_users: {
|
|
112
|
+
readonly type: "number";
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
readonly additionalProperties: false;
|
|
116
|
+
readonly required: readonly ["total_duration_milliseconds", "total_engaged_percentage", "total_heard_milliseconds", "total_messages_posted", "total_users"];
|
|
117
|
+
};
|
|
118
|
+
readonly user_stats: {
|
|
119
|
+
readonly type: "array";
|
|
120
|
+
readonly items: {
|
|
121
|
+
readonly type: "object";
|
|
122
|
+
readonly properties: {
|
|
123
|
+
readonly user_id: {
|
|
124
|
+
readonly type: "string";
|
|
125
|
+
};
|
|
126
|
+
readonly total_messages_posted: {
|
|
127
|
+
readonly type: "number";
|
|
128
|
+
};
|
|
129
|
+
readonly total_sent_milliseconds: {
|
|
130
|
+
readonly type: "number";
|
|
131
|
+
};
|
|
132
|
+
readonly total_heard_milliseconds: {
|
|
133
|
+
readonly type: "number";
|
|
134
|
+
};
|
|
135
|
+
readonly total_engaged_percentage: {
|
|
136
|
+
readonly type: "number";
|
|
137
|
+
};
|
|
138
|
+
readonly total_heard_messages: {
|
|
139
|
+
readonly type: "number";
|
|
140
|
+
};
|
|
141
|
+
readonly total_unheard_messages: {
|
|
142
|
+
readonly type: "number";
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
readonly additionalProperties: false;
|
|
146
|
+
readonly required: readonly ["total_engaged_percentage", "total_heard_messages", "total_heard_milliseconds", "total_messages_posted", "total_sent_milliseconds", "total_unheard_messages", "user_id"];
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
readonly additionalProperties: false;
|
|
151
|
+
readonly required: readonly ["channel_stats", "user_stats"];
|
|
152
|
+
};
|
|
153
|
+
readonly BasicUser: {
|
|
154
|
+
readonly type: "object";
|
|
155
|
+
readonly properties: {
|
|
156
|
+
readonly user_guid: {
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
};
|
|
159
|
+
readonly first_name: {
|
|
160
|
+
readonly type: "string";
|
|
161
|
+
};
|
|
162
|
+
readonly last_name: {
|
|
163
|
+
readonly type: "string";
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
readonly additionalProperties: false;
|
|
167
|
+
readonly required: readonly ["first_name", "last_name", "user_guid"];
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
171
|
+
};
|
|
172
|
+
export declare enum ChannelUserJoinedKeys {
|
|
173
|
+
channel = "channel",
|
|
174
|
+
joinedUser = "joinedUser"
|
|
175
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChannelUserJoinedKeys = exports.ChannelUserJoinedSchema = void 0;
|
|
4
|
+
exports.ChannelUserJoinedSchema = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
channel: {
|
|
8
|
+
$ref: '#/definitions/Channel',
|
|
9
|
+
},
|
|
10
|
+
joinedUser: {
|
|
11
|
+
$ref: '#/definitions/BasicUser',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
additionalProperties: false,
|
|
15
|
+
required: ['channel', 'joinedUser'],
|
|
16
|
+
definitions: {
|
|
17
|
+
Channel: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
properties: {
|
|
20
|
+
channel_guid: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
},
|
|
23
|
+
channel_name: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
},
|
|
26
|
+
channel_description: {
|
|
27
|
+
type: ['null', 'string'],
|
|
28
|
+
},
|
|
29
|
+
workspace_guid: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
},
|
|
32
|
+
workspace_name: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
},
|
|
35
|
+
workspace_image_url: {
|
|
36
|
+
type: ['null', 'string'],
|
|
37
|
+
},
|
|
38
|
+
owner_guid: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
},
|
|
41
|
+
owner_first_name: {
|
|
42
|
+
type: 'string',
|
|
43
|
+
},
|
|
44
|
+
owner_last_name: {
|
|
45
|
+
type: 'string',
|
|
46
|
+
},
|
|
47
|
+
type: {
|
|
48
|
+
$ref: '#/definitions/ChannelType',
|
|
49
|
+
},
|
|
50
|
+
visibility: {
|
|
51
|
+
$ref: '#/definitions/ChannelVisibility',
|
|
52
|
+
},
|
|
53
|
+
total_messages: {
|
|
54
|
+
type: 'number',
|
|
55
|
+
},
|
|
56
|
+
total_duration_ms: {
|
|
57
|
+
type: 'number',
|
|
58
|
+
},
|
|
59
|
+
image_url: {
|
|
60
|
+
type: ['null', 'string'],
|
|
61
|
+
},
|
|
62
|
+
is_private: {
|
|
63
|
+
type: 'boolean',
|
|
64
|
+
},
|
|
65
|
+
is_async: {
|
|
66
|
+
type: 'boolean',
|
|
67
|
+
},
|
|
68
|
+
async_stats: {
|
|
69
|
+
anyOf: [
|
|
70
|
+
{
|
|
71
|
+
$ref: '#/definitions/AsyncMeetingStats',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
type: 'null',
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
created_at: {
|
|
79
|
+
type: 'number',
|
|
80
|
+
},
|
|
81
|
+
last_updated_at: {
|
|
82
|
+
type: 'number',
|
|
83
|
+
},
|
|
84
|
+
deleted_at: {
|
|
85
|
+
type: ['null', 'number'],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
additionalProperties: false,
|
|
89
|
+
required: [
|
|
90
|
+
'channel_guid',
|
|
91
|
+
'channel_name',
|
|
92
|
+
'created_at',
|
|
93
|
+
'is_async',
|
|
94
|
+
'is_private',
|
|
95
|
+
'last_updated_at',
|
|
96
|
+
'owner_first_name',
|
|
97
|
+
'owner_guid',
|
|
98
|
+
'owner_last_name',
|
|
99
|
+
'total_duration_ms',
|
|
100
|
+
'total_messages',
|
|
101
|
+
'type',
|
|
102
|
+
'visibility',
|
|
103
|
+
'workspace_guid',
|
|
104
|
+
'workspace_name',
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
ChannelType: {
|
|
108
|
+
type: 'string',
|
|
109
|
+
enum: [
|
|
110
|
+
'directMessage',
|
|
111
|
+
'customerConversation',
|
|
112
|
+
'namedConversation',
|
|
113
|
+
'asyncMeeting',
|
|
114
|
+
],
|
|
115
|
+
},
|
|
116
|
+
ChannelVisibility: {
|
|
117
|
+
type: 'string',
|
|
118
|
+
enum: ['private', 'workspace', 'public'],
|
|
119
|
+
},
|
|
120
|
+
AsyncMeetingStats: {
|
|
121
|
+
type: 'object',
|
|
122
|
+
properties: {
|
|
123
|
+
channel_stats: {
|
|
124
|
+
type: 'object',
|
|
125
|
+
properties: {
|
|
126
|
+
total_duration_milliseconds: {
|
|
127
|
+
type: 'number',
|
|
128
|
+
},
|
|
129
|
+
total_heard_milliseconds: {
|
|
130
|
+
type: 'number',
|
|
131
|
+
},
|
|
132
|
+
total_engaged_percentage: {
|
|
133
|
+
type: 'number',
|
|
134
|
+
},
|
|
135
|
+
total_messages_posted: {
|
|
136
|
+
type: 'number',
|
|
137
|
+
},
|
|
138
|
+
total_users: {
|
|
139
|
+
type: 'number',
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
additionalProperties: false,
|
|
143
|
+
required: [
|
|
144
|
+
'total_duration_milliseconds',
|
|
145
|
+
'total_engaged_percentage',
|
|
146
|
+
'total_heard_milliseconds',
|
|
147
|
+
'total_messages_posted',
|
|
148
|
+
'total_users',
|
|
149
|
+
],
|
|
150
|
+
},
|
|
151
|
+
user_stats: {
|
|
152
|
+
type: 'array',
|
|
153
|
+
items: {
|
|
154
|
+
type: 'object',
|
|
155
|
+
properties: {
|
|
156
|
+
user_id: {
|
|
157
|
+
type: 'string',
|
|
158
|
+
},
|
|
159
|
+
total_messages_posted: {
|
|
160
|
+
type: 'number',
|
|
161
|
+
},
|
|
162
|
+
total_sent_milliseconds: {
|
|
163
|
+
type: 'number',
|
|
164
|
+
},
|
|
165
|
+
total_heard_milliseconds: {
|
|
166
|
+
type: 'number',
|
|
167
|
+
},
|
|
168
|
+
total_engaged_percentage: {
|
|
169
|
+
type: 'number',
|
|
170
|
+
},
|
|
171
|
+
total_heard_messages: {
|
|
172
|
+
type: 'number',
|
|
173
|
+
},
|
|
174
|
+
total_unheard_messages: {
|
|
175
|
+
type: 'number',
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
additionalProperties: false,
|
|
179
|
+
required: [
|
|
180
|
+
'total_engaged_percentage',
|
|
181
|
+
'total_heard_messages',
|
|
182
|
+
'total_heard_milliseconds',
|
|
183
|
+
'total_messages_posted',
|
|
184
|
+
'total_sent_milliseconds',
|
|
185
|
+
'total_unheard_messages',
|
|
186
|
+
'user_id',
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
additionalProperties: false,
|
|
192
|
+
required: ['channel_stats', 'user_stats'],
|
|
193
|
+
},
|
|
194
|
+
BasicUser: {
|
|
195
|
+
type: 'object',
|
|
196
|
+
properties: {
|
|
197
|
+
user_guid: {
|
|
198
|
+
type: 'string',
|
|
199
|
+
},
|
|
200
|
+
first_name: {
|
|
201
|
+
type: 'string',
|
|
202
|
+
},
|
|
203
|
+
last_name: {
|
|
204
|
+
type: 'string',
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
additionalProperties: false,
|
|
208
|
+
required: ['first_name', 'last_name', 'user_guid'],
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
212
|
+
};
|
|
213
|
+
var ChannelUserJoinedKeys;
|
|
214
|
+
(function (ChannelUserJoinedKeys) {
|
|
215
|
+
ChannelUserJoinedKeys["channel"] = "channel";
|
|
216
|
+
ChannelUserJoinedKeys["joinedUser"] = "joinedUser";
|
|
217
|
+
})(ChannelUserJoinedKeys = exports.ChannelUserJoinedKeys || (exports.ChannelUserJoinedKeys = {}));
|
|
218
|
+
//# sourceMappingURL=ChannelUserJoinedSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChannelUserJoinedSchema.js","sourceRoot":"","sources":["../../src/schemas/ChannelUserJoinedSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;IACrC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,OAAO,EAAE;YACP,IAAI,EAAE,uBAAuB;SAC9B;QACD,UAAU,EAAE;YACV,IAAI,EAAE,yBAAyB;SAChC;KACF;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,SAAS,EAAE,YAAY,CAAC;IACnC,WAAW,EAAE;QACX,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,YAAY,EAAE;oBACZ,IAAI,EAAE,QAAQ;iBACf;gBACD,YAAY,EAAE;oBACZ,IAAI,EAAE,QAAQ;iBACf;gBACD,mBAAmB,EAAE;oBACnB,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;iBACzB;gBACD,cAAc,EAAE;oBACd,IAAI,EAAE,QAAQ;iBACf;gBACD,cAAc,EAAE;oBACd,IAAI,EAAE,QAAQ;iBACf;gBACD,mBAAmB,EAAE;oBACnB,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;iBACzB;gBACD,UAAU,EAAE;oBACV,IAAI,EAAE,QAAQ;iBACf;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;iBACf;gBACD,eAAe,EAAE;oBACf,IAA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C;SAC1C;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,SAAS,EAAE;oBACT,IAAI,EAAE,QAAQ;iBACf;gBACD,UAAU,EAAE;oBACV,IAAI,EAAE,QAAQ;iBACf;gBACD,SAAS,EAAE;oBACT,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,WAAW,CAAC;SACnD;KACF;IACD,OAAO,EAAE,yCAAyC;CAC1C,CAAC;AAEX,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,kDAAyB,CAAA;AAC3B,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
export declare const ChannelUserLeftSchema: {
|
|
2
|
+
readonly type: "object";
|
|
3
|
+
readonly properties: {
|
|
4
|
+
readonly channel: {
|
|
5
|
+
readonly $ref: "#/definitions/Channel";
|
|
6
|
+
};
|
|
7
|
+
readonly leftUser: {
|
|
8
|
+
readonly $ref: "#/definitions/BasicUser";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
readonly additionalProperties: false;
|
|
12
|
+
readonly required: readonly ["channel", "leftUser"];
|
|
13
|
+
readonly definitions: {
|
|
14
|
+
readonly Channel: {
|
|
15
|
+
readonly type: "object";
|
|
16
|
+
readonly properties: {
|
|
17
|
+
readonly channel_guid: {
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
};
|
|
20
|
+
readonly channel_name: {
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
};
|
|
23
|
+
readonly channel_description: {
|
|
24
|
+
readonly type: readonly ["null", "string"];
|
|
25
|
+
};
|
|
26
|
+
readonly workspace_guid: {
|
|
27
|
+
readonly type: "string";
|
|
28
|
+
};
|
|
29
|
+
readonly workspace_name: {
|
|
30
|
+
readonly type: "string";
|
|
31
|
+
};
|
|
32
|
+
readonly workspace_image_url: {
|
|
33
|
+
readonly type: readonly ["null", "string"];
|
|
34
|
+
};
|
|
35
|
+
readonly owner_guid: {
|
|
36
|
+
readonly type: "string";
|
|
37
|
+
};
|
|
38
|
+
readonly owner_first_name: {
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
};
|
|
41
|
+
readonly owner_last_name: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
};
|
|
44
|
+
readonly type: {
|
|
45
|
+
readonly $ref: "#/definitions/ChannelType";
|
|
46
|
+
};
|
|
47
|
+
readonly visibility: {
|
|
48
|
+
readonly $ref: "#/definitions/ChannelVisibility";
|
|
49
|
+
};
|
|
50
|
+
readonly total_messages: {
|
|
51
|
+
readonly type: "number";
|
|
52
|
+
};
|
|
53
|
+
readonly total_duration_ms: {
|
|
54
|
+
readonly type: "number";
|
|
55
|
+
};
|
|
56
|
+
readonly image_url: {
|
|
57
|
+
readonly type: readonly ["null", "string"];
|
|
58
|
+
};
|
|
59
|
+
readonly is_private: {
|
|
60
|
+
readonly type: "boolean";
|
|
61
|
+
};
|
|
62
|
+
readonly is_async: {
|
|
63
|
+
readonly type: "boolean";
|
|
64
|
+
};
|
|
65
|
+
readonly async_stats: {
|
|
66
|
+
readonly anyOf: readonly [{
|
|
67
|
+
readonly $ref: "#/definitions/AsyncMeetingStats";
|
|
68
|
+
}, {
|
|
69
|
+
readonly type: "null";
|
|
70
|
+
}];
|
|
71
|
+
};
|
|
72
|
+
readonly created_at: {
|
|
73
|
+
readonly type: "number";
|
|
74
|
+
};
|
|
75
|
+
readonly last_updated_at: {
|
|
76
|
+
readonly type: "number";
|
|
77
|
+
};
|
|
78
|
+
readonly deleted_at: {
|
|
79
|
+
readonly type: readonly ["null", "number"];
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
readonly additionalProperties: false;
|
|
83
|
+
readonly required: readonly ["channel_guid", "channel_name", "created_at", "is_async", "is_private", "last_updated_at", "owner_first_name", "owner_guid", "owner_last_name", "total_duration_ms", "total_messages", "type", "visibility", "workspace_guid", "workspace_name"];
|
|
84
|
+
};
|
|
85
|
+
readonly ChannelType: {
|
|
86
|
+
readonly type: "string";
|
|
87
|
+
readonly enum: readonly ["directMessage", "customerConversation", "namedConversation", "asyncMeeting"];
|
|
88
|
+
};
|
|
89
|
+
readonly ChannelVisibility: {
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
readonly enum: readonly ["private", "workspace", "public"];
|
|
92
|
+
};
|
|
93
|
+
readonly AsyncMeetingStats: {
|
|
94
|
+
readonly type: "object";
|
|
95
|
+
readonly properties: {
|
|
96
|
+
readonly channel_stats: {
|
|
97
|
+
readonly type: "object";
|
|
98
|
+
readonly properties: {
|
|
99
|
+
readonly total_duration_milliseconds: {
|
|
100
|
+
readonly type: "number";
|
|
101
|
+
};
|
|
102
|
+
readonly total_heard_milliseconds: {
|
|
103
|
+
readonly type: "number";
|
|
104
|
+
};
|
|
105
|
+
readonly total_engaged_percentage: {
|
|
106
|
+
readonly type: "number";
|
|
107
|
+
};
|
|
108
|
+
readonly total_messages_posted: {
|
|
109
|
+
readonly type: "number";
|
|
110
|
+
};
|
|
111
|
+
readonly total_users: {
|
|
112
|
+
readonly type: "number";
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
readonly additionalProperties: false;
|
|
116
|
+
readonly required: readonly ["total_duration_milliseconds", "total_engaged_percentage", "total_heard_milliseconds", "total_messages_posted", "total_users"];
|
|
117
|
+
};
|
|
118
|
+
readonly user_stats: {
|
|
119
|
+
readonly type: "array";
|
|
120
|
+
readonly items: {
|
|
121
|
+
readonly type: "object";
|
|
122
|
+
readonly properties: {
|
|
123
|
+
readonly user_id: {
|
|
124
|
+
readonly type: "string";
|
|
125
|
+
};
|
|
126
|
+
readonly total_messages_posted: {
|
|
127
|
+
readonly type: "number";
|
|
128
|
+
};
|
|
129
|
+
readonly total_sent_milliseconds: {
|
|
130
|
+
readonly type: "number";
|
|
131
|
+
};
|
|
132
|
+
readonly total_heard_milliseconds: {
|
|
133
|
+
readonly type: "number";
|
|
134
|
+
};
|
|
135
|
+
readonly total_engaged_percentage: {
|
|
136
|
+
readonly type: "number";
|
|
137
|
+
};
|
|
138
|
+
readonly total_heard_messages: {
|
|
139
|
+
readonly type: "number";
|
|
140
|
+
};
|
|
141
|
+
readonly total_unheard_messages: {
|
|
142
|
+
readonly type: "number";
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
readonly additionalProperties: false;
|
|
146
|
+
readonly required: readonly ["total_engaged_percentage", "total_heard_messages", "total_heard_milliseconds", "total_messages_posted", "total_sent_milliseconds", "total_unheard_messages", "user_id"];
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
readonly additionalProperties: false;
|
|
151
|
+
readonly required: readonly ["channel_stats", "user_stats"];
|
|
152
|
+
};
|
|
153
|
+
readonly BasicUser: {
|
|
154
|
+
readonly type: "object";
|
|
155
|
+
readonly properties: {
|
|
156
|
+
readonly user_guid: {
|
|
157
|
+
readonly type: "string";
|
|
158
|
+
};
|
|
159
|
+
readonly first_name: {
|
|
160
|
+
readonly type: "string";
|
|
161
|
+
};
|
|
162
|
+
readonly last_name: {
|
|
163
|
+
readonly type: "string";
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
readonly additionalProperties: false;
|
|
167
|
+
readonly required: readonly ["first_name", "last_name", "user_guid"];
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
171
|
+
};
|
|
172
|
+
export declare enum ChannelUserLeftKeys {
|
|
173
|
+
channel = "channel",
|
|
174
|
+
leftUser = "leftUser"
|
|
175
|
+
}
|