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.
Files changed (64) hide show
  1. package/dist/BasicUserSchema.d.ts +17 -0
  2. package/dist/BasicUserSchema.js +21 -0
  3. package/dist/BasicUserSchema.js.map +1 -0
  4. package/dist/ChannelTypeSchema.d.ts +5 -0
  5. package/dist/ChannelTypeSchema.js +14 -0
  6. package/dist/ChannelTypeSchema.js.map +1 -0
  7. package/dist/schemas/AsyncMeetingStatsSchema.d.ts +65 -0
  8. package/dist/schemas/AsyncMeetingStatsSchema.js +84 -0
  9. package/dist/schemas/AsyncMeetingStatsSchema.js.map +1 -0
  10. package/dist/schemas/BasicUserSchema.d.ts +22 -0
  11. package/dist/schemas/BasicUserSchema.js +27 -0
  12. package/dist/schemas/BasicUserSchema.js.map +1 -0
  13. package/dist/schemas/ChannelSchema.d.ts +164 -0
  14. package/dist/schemas/ChannelSchema.js +207 -0
  15. package/dist/schemas/ChannelSchema.js.map +1 -0
  16. package/dist/schemas/ChannelUserJoinedSchema.d.ts +175 -0
  17. package/dist/schemas/ChannelUserJoinedSchema.js +218 -0
  18. package/dist/schemas/ChannelUserJoinedSchema.js.map +1 -0
  19. package/dist/schemas/ChannelUserLeftSchema.d.ts +175 -0
  20. package/dist/schemas/ChannelUserLeftSchema.js +218 -0
  21. package/dist/schemas/ChannelUserLeftSchema.js.map +1 -0
  22. package/dist/schemas/ChannelUserRemovedSchema.d.ts +179 -0
  23. package/dist/schemas/ChannelUserRemovedSchema.js +222 -0
  24. package/dist/schemas/ChannelUserRemovedSchema.js.map +1 -0
  25. package/dist/schemas/ChannelUsersAddedSchema.d.ts +182 -0
  26. package/dist/schemas/ChannelUsersAddedSchema.js +225 -0
  27. package/dist/schemas/ChannelUsersAddedSchema.js.map +1 -0
  28. package/dist/schemas/LabelSchema.d.ts +56 -0
  29. package/dist/schemas/LabelSchema.js +61 -0
  30. package/dist/schemas/LabelSchema.js.map +1 -0
  31. package/dist/schemas/MessageSchema.d.ts +96 -0
  32. package/dist/schemas/MessageSchema.js +121 -0
  33. package/dist/schemas/MessageSchema.js.map +1 -0
  34. package/dist/schemas/SubscribedUserSettingsSchema.d.ts +22 -0
  35. package/dist/schemas/SubscribedUserSettingsSchema.js +27 -0
  36. package/dist/schemas/SubscribedUserSettingsSchema.js.map +1 -0
  37. package/dist/schemas/SubscriptionFilterSchema.d.ts +21 -0
  38. package/dist/schemas/SubscriptionFilterSchema.js +26 -0
  39. package/dist/schemas/SubscriptionFilterSchema.js.map +1 -0
  40. package/dist/schemas/WebhookPayloadSchema.d.ts +85 -0
  41. package/dist/schemas/WebhookPayloadSchema.js +132 -0
  42. package/dist/schemas/WebhookPayloadSchema.js.map +1 -0
  43. package/dist/schemas/WorkspaceFindableChannelCreatedSchema.d.ts +196 -0
  44. package/dist/schemas/WorkspaceFindableChannelCreatedSchema.js +247 -0
  45. package/dist/schemas/WorkspaceFindableChannelCreatedSchema.js.map +1 -0
  46. package/dist/schemas/WorkspaceSchema.d.ts +50 -0
  47. package/dist/schemas/WorkspaceSchema.js +63 -0
  48. package/dist/schemas/WorkspaceSchema.js.map +1 -0
  49. package/dist/schemas/WorkspaceUserAddedSchema.d.ts +73 -0
  50. package/dist/schemas/WorkspaceUserAddedSchema.js +86 -0
  51. package/dist/schemas/WorkspaceUserAddedSchema.js.map +1 -0
  52. package/dist/schemas/WorkspaceUserJoinedSchema.d.ts +73 -0
  53. package/dist/schemas/WorkspaceUserJoinedSchema.js +86 -0
  54. package/dist/schemas/WorkspaceUserJoinedSchema.js.map +1 -0
  55. package/dist/schemas/WorkspaceUserLeftSchema.d.ts +73 -0
  56. package/dist/schemas/WorkspaceUserLeftSchema.js +86 -0
  57. package/dist/schemas/WorkspaceUserLeftSchema.js.map +1 -0
  58. package/dist/schemas/WorkspaceUserRemovedSchema.d.ts +77 -0
  59. package/dist/schemas/WorkspaceUserRemovedSchema.js +90 -0
  60. package/dist/schemas/WorkspaceUserRemovedSchema.js.map +1 -0
  61. package/dist/schemas/index.d.ts +18 -0
  62. package/dist/schemas/index.js +35 -0
  63. package/dist/schemas/index.js.map +1 -0
  64. package/package.json +5 -3
@@ -0,0 +1,17 @@
1
+ export declare const BasicUserSchema: {
2
+ readonly type: "object";
3
+ readonly properties: {
4
+ readonly user_guid: {
5
+ readonly type: "string";
6
+ };
7
+ readonly first_name: {
8
+ readonly type: "string";
9
+ };
10
+ readonly last_name: {
11
+ readonly type: "string";
12
+ };
13
+ };
14
+ readonly additionalProperties: false;
15
+ readonly required: readonly ["first_name", "last_name", "user_guid"];
16
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
17
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BasicUserSchema = void 0;
4
+ exports.BasicUserSchema = {
5
+ type: 'object',
6
+ properties: {
7
+ user_guid: {
8
+ type: 'string',
9
+ },
10
+ first_name: {
11
+ type: 'string',
12
+ },
13
+ last_name: {
14
+ type: 'string',
15
+ },
16
+ },
17
+ additionalProperties: false,
18
+ required: ['first_name', 'last_name', 'user_guid'],
19
+ $schema: 'http://json-schema.org/draft-07/schema#',
20
+ };
21
+ //# sourceMappingURL=BasicUserSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BasicUserSchema.js","sourceRoot":"","sources":["../src/BasicUserSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;KACF;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,WAAW,CAAC;IAClD,OAAO,EAAE,yCAAyC;CAC1C,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const ChannelTypeSchema: {
2
+ readonly type: "string";
3
+ readonly enum: readonly ["directMessage", "customerConversation", "namedConversation", "asyncMeeting"];
4
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
5
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChannelTypeSchema = void 0;
4
+ exports.ChannelTypeSchema = {
5
+ type: 'string',
6
+ enum: [
7
+ 'directMessage',
8
+ 'customerConversation',
9
+ 'namedConversation',
10
+ 'asyncMeeting',
11
+ ],
12
+ $schema: 'http://json-schema.org/draft-07/schema#',
13
+ };
14
+ //# sourceMappingURL=ChannelTypeSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelTypeSchema.js","sourceRoot":"","sources":["../src/ChannelTypeSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;IAC/B,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE;QACJ,eAAe;QACf,sBAAsB;QACtB,mBAAmB;QACnB,cAAc;KACf;IACD,OAAO,EAAE,yCAAyC;CAC1C,CAAC"}
@@ -0,0 +1,65 @@
1
+ export declare const AsyncMeetingStatsSchema: {
2
+ readonly type: "object";
3
+ readonly properties: {
4
+ readonly channel_stats: {
5
+ readonly type: "object";
6
+ readonly properties: {
7
+ readonly total_duration_milliseconds: {
8
+ readonly type: "number";
9
+ };
10
+ readonly total_heard_milliseconds: {
11
+ readonly type: "number";
12
+ };
13
+ readonly total_engaged_percentage: {
14
+ readonly type: "number";
15
+ };
16
+ readonly total_messages_posted: {
17
+ readonly type: "number";
18
+ };
19
+ readonly total_users: {
20
+ readonly type: "number";
21
+ };
22
+ };
23
+ readonly additionalProperties: false;
24
+ readonly required: readonly ["total_duration_milliseconds", "total_engaged_percentage", "total_heard_milliseconds", "total_messages_posted", "total_users"];
25
+ };
26
+ readonly user_stats: {
27
+ readonly type: "array";
28
+ readonly items: {
29
+ readonly type: "object";
30
+ readonly properties: {
31
+ readonly user_id: {
32
+ readonly type: "string";
33
+ };
34
+ readonly total_messages_posted: {
35
+ readonly type: "number";
36
+ };
37
+ readonly total_sent_milliseconds: {
38
+ readonly type: "number";
39
+ };
40
+ readonly total_heard_milliseconds: {
41
+ readonly type: "number";
42
+ };
43
+ readonly total_engaged_percentage: {
44
+ readonly type: "number";
45
+ };
46
+ readonly total_heard_messages: {
47
+ readonly type: "number";
48
+ };
49
+ readonly total_unheard_messages: {
50
+ readonly type: "number";
51
+ };
52
+ };
53
+ readonly additionalProperties: false;
54
+ readonly required: readonly ["total_engaged_percentage", "total_heard_messages", "total_heard_milliseconds", "total_messages_posted", "total_sent_milliseconds", "total_unheard_messages", "user_id"];
55
+ };
56
+ };
57
+ };
58
+ readonly additionalProperties: false;
59
+ readonly required: readonly ["channel_stats", "user_stats"];
60
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
61
+ };
62
+ export declare enum AsyncMeetingStatsKeys {
63
+ channel_stats = "channel_stats",
64
+ user_stats = "user_stats"
65
+ }
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AsyncMeetingStatsKeys = exports.AsyncMeetingStatsSchema = void 0;
4
+ exports.AsyncMeetingStatsSchema = {
5
+ type: 'object',
6
+ properties: {
7
+ channel_stats: {
8
+ type: 'object',
9
+ properties: {
10
+ total_duration_milliseconds: {
11
+ type: 'number',
12
+ },
13
+ total_heard_milliseconds: {
14
+ type: 'number',
15
+ },
16
+ total_engaged_percentage: {
17
+ type: 'number',
18
+ },
19
+ total_messages_posted: {
20
+ type: 'number',
21
+ },
22
+ total_users: {
23
+ type: 'number',
24
+ },
25
+ },
26
+ additionalProperties: false,
27
+ required: [
28
+ 'total_duration_milliseconds',
29
+ 'total_engaged_percentage',
30
+ 'total_heard_milliseconds',
31
+ 'total_messages_posted',
32
+ 'total_users',
33
+ ],
34
+ },
35
+ user_stats: {
36
+ type: 'array',
37
+ items: {
38
+ type: 'object',
39
+ properties: {
40
+ user_id: {
41
+ type: 'string',
42
+ },
43
+ total_messages_posted: {
44
+ type: 'number',
45
+ },
46
+ total_sent_milliseconds: {
47
+ type: 'number',
48
+ },
49
+ total_heard_milliseconds: {
50
+ type: 'number',
51
+ },
52
+ total_engaged_percentage: {
53
+ type: 'number',
54
+ },
55
+ total_heard_messages: {
56
+ type: 'number',
57
+ },
58
+ total_unheard_messages: {
59
+ type: 'number',
60
+ },
61
+ },
62
+ additionalProperties: false,
63
+ required: [
64
+ 'total_engaged_percentage',
65
+ 'total_heard_messages',
66
+ 'total_heard_milliseconds',
67
+ 'total_messages_posted',
68
+ 'total_sent_milliseconds',
69
+ 'total_unheard_messages',
70
+ 'user_id',
71
+ ],
72
+ },
73
+ },
74
+ },
75
+ additionalProperties: false,
76
+ required: ['channel_stats', 'user_stats'],
77
+ $schema: 'http://json-schema.org/draft-07/schema#',
78
+ };
79
+ var AsyncMeetingStatsKeys;
80
+ (function (AsyncMeetingStatsKeys) {
81
+ AsyncMeetingStatsKeys["channel_stats"] = "channel_stats";
82
+ AsyncMeetingStatsKeys["user_stats"] = "user_stats";
83
+ })(AsyncMeetingStatsKeys = exports.AsyncMeetingStatsKeys || (exports.AsyncMeetingStatsKeys = {}));
84
+ //# sourceMappingURL=AsyncMeetingStatsSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AsyncMeetingStatsSchema.js","sourceRoot":"","sources":["../../src/schemas/AsyncMeetingStatsSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;IACrC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,2BAA2B,EAAE;oBAC3B,IAAI,EAAE,QAAQ;iBACf;gBACD,wBAAwB,EAAE;oBACxB,IAAI,EAAE,QAAQ;iBACf;gBACD,wBAAwB,EAAE;oBACxB,IAAI,EAAE,QAA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ties: {
4
+ readonly user_guid: {
5
+ readonly type: "string";
6
+ };
7
+ readonly first_name: {
8
+ readonly type: "string";
9
+ };
10
+ readonly last_name: {
11
+ readonly type: "string";
12
+ };
13
+ };
14
+ readonly additionalProperties: false;
15
+ readonly required: readonly ["first_name", "last_name", "user_guid"];
16
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
17
+ };
18
+ export declare enum BasicUserKeys {
19
+ user_guid = "user_guid",
20
+ first_name = "first_name",
21
+ last_name = "last_name"
22
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BasicUserKeys = exports.BasicUserSchema = void 0;
4
+ exports.BasicUserSchema = {
5
+ type: 'object',
6
+ properties: {
7
+ user_guid: {
8
+ type: 'string',
9
+ },
10
+ first_name: {
11
+ type: 'string',
12
+ },
13
+ last_name: {
14
+ type: 'string',
15
+ },
16
+ },
17
+ additionalProperties: false,
18
+ required: ['first_name', 'last_name', 'user_guid'],
19
+ $schema: 'http://json-schema.org/draft-07/schema#',
20
+ };
21
+ var BasicUserKeys;
22
+ (function (BasicUserKeys) {
23
+ BasicUserKeys["user_guid"] = "user_guid";
24
+ BasicUserKeys["first_name"] = "first_name";
25
+ BasicUserKeys["last_name"] = "last_name";
26
+ })(BasicUserKeys = exports.BasicUserKeys || (exports.BasicUserKeys = {}));
27
+ //# sourceMappingURL=BasicUserSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BasicUserSchema.js","sourceRoot":"","sources":["../../src/schemas/BasicUserSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;KACF;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,WAAW,CAAC;IAClD,OAAO,EAAE,yCAAyC;CAC1C,CAAC;AAEX,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,wCAAuB,CAAA;AACzB,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB"}
@@ -0,0 +1,164 @@
1
+ export declare const ChannelSchema: {
2
+ readonly type: "object";
3
+ readonly properties: {
4
+ readonly channel_guid: {
5
+ readonly type: "string";
6
+ };
7
+ readonly channel_name: {
8
+ readonly type: "string";
9
+ };
10
+ readonly channel_description: {
11
+ readonly type: readonly ["null", "string"];
12
+ };
13
+ readonly workspace_guid: {
14
+ readonly type: "string";
15
+ };
16
+ readonly workspace_name: {
17
+ readonly type: "string";
18
+ };
19
+ readonly workspace_image_url: {
20
+ readonly type: readonly ["null", "string"];
21
+ };
22
+ readonly owner_guid: {
23
+ readonly type: "string";
24
+ };
25
+ readonly owner_first_name: {
26
+ readonly type: "string";
27
+ };
28
+ readonly owner_last_name: {
29
+ readonly type: "string";
30
+ };
31
+ readonly type: {
32
+ readonly $ref: "#/definitions/ChannelType";
33
+ };
34
+ readonly visibility: {
35
+ readonly $ref: "#/definitions/ChannelVisibility";
36
+ };
37
+ readonly total_messages: {
38
+ readonly type: "number";
39
+ };
40
+ readonly total_duration_ms: {
41
+ readonly type: "number";
42
+ };
43
+ readonly image_url: {
44
+ readonly type: readonly ["null", "string"];
45
+ };
46
+ readonly is_private: {
47
+ readonly type: "boolean";
48
+ };
49
+ readonly is_async: {
50
+ readonly type: "boolean";
51
+ };
52
+ readonly async_stats: {
53
+ readonly anyOf: readonly [{
54
+ readonly $ref: "#/definitions/AsyncMeetingStats";
55
+ }, {
56
+ readonly type: "null";
57
+ }];
58
+ };
59
+ readonly created_at: {
60
+ readonly type: "number";
61
+ };
62
+ readonly last_updated_at: {
63
+ readonly type: "number";
64
+ };
65
+ readonly deleted_at: {
66
+ readonly type: readonly ["null", "number"];
67
+ };
68
+ };
69
+ readonly additionalProperties: false;
70
+ 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"];
71
+ readonly definitions: {
72
+ readonly ChannelType: {
73
+ readonly type: "string";
74
+ readonly enum: readonly ["directMessage", "customerConversation", "namedConversation", "asyncMeeting"];
75
+ };
76
+ readonly ChannelVisibility: {
77
+ readonly type: "string";
78
+ readonly enum: readonly ["private", "workspace", "public"];
79
+ };
80
+ readonly AsyncMeetingStats: {
81
+ readonly type: "object";
82
+ readonly properties: {
83
+ readonly channel_stats: {
84
+ readonly type: "object";
85
+ readonly properties: {
86
+ readonly total_duration_milliseconds: {
87
+ readonly type: "number";
88
+ };
89
+ readonly total_heard_milliseconds: {
90
+ readonly type: "number";
91
+ };
92
+ readonly total_engaged_percentage: {
93
+ readonly type: "number";
94
+ };
95
+ readonly total_messages_posted: {
96
+ readonly type: "number";
97
+ };
98
+ readonly total_users: {
99
+ readonly type: "number";
100
+ };
101
+ };
102
+ readonly additionalProperties: false;
103
+ readonly required: readonly ["total_duration_milliseconds", "total_engaged_percentage", "total_heard_milliseconds", "total_messages_posted", "total_users"];
104
+ };
105
+ readonly user_stats: {
106
+ readonly type: "array";
107
+ readonly items: {
108
+ readonly type: "object";
109
+ readonly properties: {
110
+ readonly user_id: {
111
+ readonly type: "string";
112
+ };
113
+ readonly total_messages_posted: {
114
+ readonly type: "number";
115
+ };
116
+ readonly total_sent_milliseconds: {
117
+ readonly type: "number";
118
+ };
119
+ readonly total_heard_milliseconds: {
120
+ readonly type: "number";
121
+ };
122
+ readonly total_engaged_percentage: {
123
+ readonly type: "number";
124
+ };
125
+ readonly total_heard_messages: {
126
+ readonly type: "number";
127
+ };
128
+ readonly total_unheard_messages: {
129
+ readonly type: "number";
130
+ };
131
+ };
132
+ readonly additionalProperties: false;
133
+ readonly required: readonly ["total_engaged_percentage", "total_heard_messages", "total_heard_milliseconds", "total_messages_posted", "total_sent_milliseconds", "total_unheard_messages", "user_id"];
134
+ };
135
+ };
136
+ };
137
+ readonly additionalProperties: false;
138
+ readonly required: readonly ["channel_stats", "user_stats"];
139
+ };
140
+ };
141
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
142
+ };
143
+ export declare enum ChannelKeys {
144
+ channel_guid = "channel_guid",
145
+ channel_name = "channel_name",
146
+ channel_description = "channel_description",
147
+ workspace_guid = "workspace_guid",
148
+ workspace_name = "workspace_name",
149
+ workspace_image_url = "workspace_image_url",
150
+ owner_guid = "owner_guid",
151
+ owner_first_name = "owner_first_name",
152
+ owner_last_name = "owner_last_name",
153
+ type = "type",
154
+ visibility = "visibility",
155
+ total_messages = "total_messages",
156
+ total_duration_ms = "total_duration_ms",
157
+ image_url = "image_url",
158
+ is_private = "is_private",
159
+ is_async = "is_async",
160
+ async_stats = "async_stats",
161
+ created_at = "created_at",
162
+ last_updated_at = "last_updated_at",
163
+ deleted_at = "deleted_at"
164
+ }
@@ -0,0 +1,207 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChannelKeys = exports.ChannelSchema = void 0;
4
+ exports.ChannelSchema = {
5
+ type: 'object',
6
+ properties: {
7
+ channel_guid: {
8
+ type: 'string',
9
+ },
10
+ channel_name: {
11
+ type: 'string',
12
+ },
13
+ channel_description: {
14
+ type: ['null', 'string'],
15
+ },
16
+ workspace_guid: {
17
+ type: 'string',
18
+ },
19
+ workspace_name: {
20
+ type: 'string',
21
+ },
22
+ workspace_image_url: {
23
+ type: ['null', 'string'],
24
+ },
25
+ owner_guid: {
26
+ type: 'string',
27
+ },
28
+ owner_first_name: {
29
+ type: 'string',
30
+ },
31
+ owner_last_name: {
32
+ type: 'string',
33
+ },
34
+ type: {
35
+ $ref: '#/definitions/ChannelType',
36
+ },
37
+ visibility: {
38
+ $ref: '#/definitions/ChannelVisibility',
39
+ },
40
+ total_messages: {
41
+ type: 'number',
42
+ },
43
+ total_duration_ms: {
44
+ type: 'number',
45
+ },
46
+ image_url: {
47
+ type: ['null', 'string'],
48
+ },
49
+ is_private: {
50
+ type: 'boolean',
51
+ },
52
+ is_async: {
53
+ type: 'boolean',
54
+ },
55
+ async_stats: {
56
+ anyOf: [
57
+ {
58
+ $ref: '#/definitions/AsyncMeetingStats',
59
+ },
60
+ {
61
+ type: 'null',
62
+ },
63
+ ],
64
+ },
65
+ created_at: {
66
+ type: 'number',
67
+ },
68
+ last_updated_at: {
69
+ type: 'number',
70
+ },
71
+ deleted_at: {
72
+ type: ['null', 'number'],
73
+ },
74
+ },
75
+ additionalProperties: false,
76
+ required: [
77
+ 'channel_guid',
78
+ 'channel_name',
79
+ 'created_at',
80
+ 'is_async',
81
+ 'is_private',
82
+ 'last_updated_at',
83
+ 'owner_first_name',
84
+ 'owner_guid',
85
+ 'owner_last_name',
86
+ 'total_duration_ms',
87
+ 'total_messages',
88
+ 'type',
89
+ 'visibility',
90
+ 'workspace_guid',
91
+ 'workspace_name',
92
+ ],
93
+ definitions: {
94
+ ChannelType: {
95
+ type: 'string',
96
+ enum: [
97
+ 'directMessage',
98
+ 'customerConversation',
99
+ 'namedConversation',
100
+ 'asyncMeeting',
101
+ ],
102
+ },
103
+ ChannelVisibility: {
104
+ type: 'string',
105
+ enum: ['private', 'workspace', 'public'],
106
+ },
107
+ AsyncMeetingStats: {
108
+ type: 'object',
109
+ properties: {
110
+ channel_stats: {
111
+ type: 'object',
112
+ properties: {
113
+ total_duration_milliseconds: {
114
+ type: 'number',
115
+ },
116
+ total_heard_milliseconds: {
117
+ type: 'number',
118
+ },
119
+ total_engaged_percentage: {
120
+ type: 'number',
121
+ },
122
+ total_messages_posted: {
123
+ type: 'number',
124
+ },
125
+ total_users: {
126
+ type: 'number',
127
+ },
128
+ },
129
+ additionalProperties: false,
130
+ required: [
131
+ 'total_duration_milliseconds',
132
+ 'total_engaged_percentage',
133
+ 'total_heard_milliseconds',
134
+ 'total_messages_posted',
135
+ 'total_users',
136
+ ],
137
+ },
138
+ user_stats: {
139
+ type: 'array',
140
+ items: {
141
+ type: 'object',
142
+ properties: {
143
+ user_id: {
144
+ type: 'string',
145
+ },
146
+ total_messages_posted: {
147
+ type: 'number',
148
+ },
149
+ total_sent_milliseconds: {
150
+ type: 'number',
151
+ },
152
+ total_heard_milliseconds: {
153
+ type: 'number',
154
+ },
155
+ total_engaged_percentage: {
156
+ type: 'number',
157
+ },
158
+ total_heard_messages: {
159
+ type: 'number',
160
+ },
161
+ total_unheard_messages: {
162
+ type: 'number',
163
+ },
164
+ },
165
+ additionalProperties: false,
166
+ required: [
167
+ 'total_engaged_percentage',
168
+ 'total_heard_messages',
169
+ 'total_heard_milliseconds',
170
+ 'total_messages_posted',
171
+ 'total_sent_milliseconds',
172
+ 'total_unheard_messages',
173
+ 'user_id',
174
+ ],
175
+ },
176
+ },
177
+ },
178
+ additionalProperties: false,
179
+ required: ['channel_stats', 'user_stats'],
180
+ },
181
+ },
182
+ $schema: 'http://json-schema.org/draft-07/schema#',
183
+ };
184
+ var ChannelKeys;
185
+ (function (ChannelKeys) {
186
+ ChannelKeys["channel_guid"] = "channel_guid";
187
+ ChannelKeys["channel_name"] = "channel_name";
188
+ ChannelKeys["channel_description"] = "channel_description";
189
+ ChannelKeys["workspace_guid"] = "workspace_guid";
190
+ ChannelKeys["workspace_name"] = "workspace_name";
191
+ ChannelKeys["workspace_image_url"] = "workspace_image_url";
192
+ ChannelKeys["owner_guid"] = "owner_guid";
193
+ ChannelKeys["owner_first_name"] = "owner_first_name";
194
+ ChannelKeys["owner_last_name"] = "owner_last_name";
195
+ ChannelKeys["type"] = "type";
196
+ ChannelKeys["visibility"] = "visibility";
197
+ ChannelKeys["total_messages"] = "total_messages";
198
+ ChannelKeys["total_duration_ms"] = "total_duration_ms";
199
+ ChannelKeys["image_url"] = "image_url";
200
+ ChannelKeys["is_private"] = "is_private";
201
+ ChannelKeys["is_async"] = "is_async";
202
+ ChannelKeys["async_stats"] = "async_stats";
203
+ ChannelKeys["created_at"] = "created_at";
204
+ ChannelKeys["last_updated_at"] = "last_updated_at";
205
+ ChannelKeys["deleted_at"] = "deleted_at";
206
+ })(ChannelKeys = exports.ChannelKeys || (exports.ChannelKeys = {}));
207
+ //# sourceMappingURL=ChannelSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelSchema.js","sourceRoot":"","sources":["../../src/schemas/ChannelSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;SACf;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;SACf;QACD,mBAAmB,EAAE;YACnB,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,cAAc,EAAE;YACd,IAAI,EAAE,QAAQ;SACf;QACD,cAAc,EAAE;YACd,IAAI,EAAE,QAAQ;SACf;QACD,mBAAmB,EAAE;YACnB,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,gBAAgB,EAAE;YAChB,IAAI,EAAE,QAAQ;SACf;QACD,eAAe,EAAE;YACf,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,2BAA2B;SAClC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,iCAAiC;SACxC;QACD,cAAc,EAAE;YACd,IAAI,EAAE,QAAQ;SACf;QACD,iBAAiB,EAAE;YACjB,IAAI,EAAE,QAAQ;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,UAAU,EAAE;YACV,IAAI,EAAE,SAAS;SAChB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,SAAS;SA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