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