cv-contracts 0.0.13 → 0.0.15

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 (61) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +1 -0
  3. package/dist/index.js.map +1 -1
  4. package/dist/schemas/AsyncMeetingStatsSchema.d.ts +65 -0
  5. package/dist/schemas/AsyncMeetingStatsSchema.js +84 -0
  6. package/dist/schemas/AsyncMeetingStatsSchema.js.map +1 -0
  7. package/dist/schemas/BasicUserSchema.d.ts +22 -0
  8. package/dist/schemas/BasicUserSchema.js +27 -0
  9. package/dist/schemas/BasicUserSchema.js.map +1 -0
  10. package/dist/schemas/ChannelSchema.d.ts +164 -0
  11. package/dist/schemas/ChannelSchema.js +207 -0
  12. package/dist/schemas/ChannelSchema.js.map +1 -0
  13. package/dist/schemas/ChannelUserJoinedSchema.d.ts +175 -0
  14. package/dist/schemas/ChannelUserJoinedSchema.js +218 -0
  15. package/dist/schemas/ChannelUserJoinedSchema.js.map +1 -0
  16. package/dist/schemas/ChannelUserLeftSchema.d.ts +175 -0
  17. package/dist/schemas/ChannelUserLeftSchema.js +218 -0
  18. package/dist/schemas/ChannelUserLeftSchema.js.map +1 -0
  19. package/dist/schemas/ChannelUserRemovedSchema.d.ts +179 -0
  20. package/dist/schemas/ChannelUserRemovedSchema.js +222 -0
  21. package/dist/schemas/ChannelUserRemovedSchema.js.map +1 -0
  22. package/dist/schemas/ChannelUsersAddedSchema.d.ts +182 -0
  23. package/dist/schemas/ChannelUsersAddedSchema.js +225 -0
  24. package/dist/schemas/ChannelUsersAddedSchema.js.map +1 -0
  25. package/dist/schemas/LabelSchema.d.ts +56 -0
  26. package/dist/schemas/LabelSchema.js +61 -0
  27. package/dist/schemas/LabelSchema.js.map +1 -0
  28. package/dist/schemas/MessageSchema.d.ts +96 -0
  29. package/dist/schemas/MessageSchema.js +121 -0
  30. package/dist/schemas/MessageSchema.js.map +1 -0
  31. package/dist/schemas/SubscribedUserSettingsSchema.d.ts +22 -0
  32. package/dist/schemas/SubscribedUserSettingsSchema.js +27 -0
  33. package/dist/schemas/SubscribedUserSettingsSchema.js.map +1 -0
  34. package/dist/schemas/SubscriptionFilterSchema.d.ts +21 -0
  35. package/dist/schemas/SubscriptionFilterSchema.js +26 -0
  36. package/dist/schemas/SubscriptionFilterSchema.js.map +1 -0
  37. package/dist/schemas/WebhookPayloadSchema.d.ts +85 -0
  38. package/dist/schemas/WebhookPayloadSchema.js +132 -0
  39. package/dist/schemas/WebhookPayloadSchema.js.map +1 -0
  40. package/dist/schemas/WorkspaceFindableChannelCreatedSchema.d.ts +196 -0
  41. package/dist/schemas/WorkspaceFindableChannelCreatedSchema.js +247 -0
  42. package/dist/schemas/WorkspaceFindableChannelCreatedSchema.js.map +1 -0
  43. package/dist/schemas/WorkspaceSchema.d.ts +50 -0
  44. package/dist/schemas/WorkspaceSchema.js +63 -0
  45. package/dist/schemas/WorkspaceSchema.js.map +1 -0
  46. package/dist/schemas/WorkspaceUserAddedSchema.d.ts +73 -0
  47. package/dist/schemas/WorkspaceUserAddedSchema.js +86 -0
  48. package/dist/schemas/WorkspaceUserAddedSchema.js.map +1 -0
  49. package/dist/schemas/WorkspaceUserJoinedSchema.d.ts +73 -0
  50. package/dist/schemas/WorkspaceUserJoinedSchema.js +86 -0
  51. package/dist/schemas/WorkspaceUserJoinedSchema.js.map +1 -0
  52. package/dist/schemas/WorkspaceUserLeftSchema.d.ts +73 -0
  53. package/dist/schemas/WorkspaceUserLeftSchema.js +86 -0
  54. package/dist/schemas/WorkspaceUserLeftSchema.js.map +1 -0
  55. package/dist/schemas/WorkspaceUserRemovedSchema.d.ts +77 -0
  56. package/dist/schemas/WorkspaceUserRemovedSchema.js +90 -0
  57. package/dist/schemas/WorkspaceUserRemovedSchema.js.map +1 -0
  58. package/dist/schemas/index.d.ts +18 -0
  59. package/dist/schemas/index.js +35 -0
  60. package/dist/schemas/index.js.map +1 -0
  61. package/package.json +5 -3
@@ -0,0 +1,182 @@
1
+ export declare const ChannelUsersAddedSchema: {
2
+ readonly type: "object";
3
+ readonly properties: {
4
+ readonly channel: {
5
+ readonly $ref: "#/definitions/Channel";
6
+ };
7
+ readonly addedBy: {
8
+ readonly $ref: "#/definitions/BasicUser";
9
+ };
10
+ readonly addedUsers: {
11
+ readonly type: "array";
12
+ readonly items: {
13
+ readonly $ref: "#/definitions/BasicUser";
14
+ };
15
+ };
16
+ };
17
+ readonly additionalProperties: false;
18
+ readonly required: readonly ["addedBy", "addedUsers", "channel"];
19
+ readonly definitions: {
20
+ readonly Channel: {
21
+ readonly type: "object";
22
+ readonly properties: {
23
+ readonly channel_guid: {
24
+ readonly type: "string";
25
+ };
26
+ readonly channel_name: {
27
+ readonly type: "string";
28
+ };
29
+ readonly channel_description: {
30
+ readonly type: readonly ["null", "string"];
31
+ };
32
+ readonly workspace_guid: {
33
+ readonly type: "string";
34
+ };
35
+ readonly workspace_name: {
36
+ readonly type: "string";
37
+ };
38
+ readonly workspace_image_url: {
39
+ readonly type: readonly ["null", "string"];
40
+ };
41
+ readonly owner_guid: {
42
+ readonly type: "string";
43
+ };
44
+ readonly owner_first_name: {
45
+ readonly type: "string";
46
+ };
47
+ readonly owner_last_name: {
48
+ readonly type: "string";
49
+ };
50
+ readonly type: {
51
+ readonly $ref: "#/definitions/ChannelType";
52
+ };
53
+ readonly visibility: {
54
+ readonly $ref: "#/definitions/ChannelVisibility";
55
+ };
56
+ readonly total_messages: {
57
+ readonly type: "number";
58
+ };
59
+ readonly total_duration_ms: {
60
+ readonly type: "number";
61
+ };
62
+ readonly image_url: {
63
+ readonly type: readonly ["null", "string"];
64
+ };
65
+ readonly is_private: {
66
+ readonly type: "boolean";
67
+ };
68
+ readonly is_async: {
69
+ readonly type: "boolean";
70
+ };
71
+ readonly async_stats: {
72
+ readonly anyOf: readonly [{
73
+ readonly $ref: "#/definitions/AsyncMeetingStats";
74
+ }, {
75
+ readonly type: "null";
76
+ }];
77
+ };
78
+ readonly created_at: {
79
+ readonly type: "number";
80
+ };
81
+ readonly last_updated_at: {
82
+ readonly type: "number";
83
+ };
84
+ readonly deleted_at: {
85
+ readonly type: readonly ["null", "number"];
86
+ };
87
+ };
88
+ readonly additionalProperties: false;
89
+ 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"];
90
+ };
91
+ readonly ChannelType: {
92
+ readonly type: "string";
93
+ readonly enum: readonly ["directMessage", "customerConversation", "namedConversation", "asyncMeeting"];
94
+ };
95
+ readonly ChannelVisibility: {
96
+ readonly type: "string";
97
+ readonly enum: readonly ["private", "workspace", "public"];
98
+ };
99
+ readonly AsyncMeetingStats: {
100
+ readonly type: "object";
101
+ readonly properties: {
102
+ readonly channel_stats: {
103
+ readonly type: "object";
104
+ readonly properties: {
105
+ readonly total_duration_milliseconds: {
106
+ readonly type: "number";
107
+ };
108
+ readonly total_heard_milliseconds: {
109
+ readonly type: "number";
110
+ };
111
+ readonly total_engaged_percentage: {
112
+ readonly type: "number";
113
+ };
114
+ readonly total_messages_posted: {
115
+ readonly type: "number";
116
+ };
117
+ readonly total_users: {
118
+ readonly type: "number";
119
+ };
120
+ };
121
+ readonly additionalProperties: false;
122
+ readonly required: readonly ["total_duration_milliseconds", "total_engaged_percentage", "total_heard_milliseconds", "total_messages_posted", "total_users"];
123
+ };
124
+ readonly user_stats: {
125
+ readonly type: "array";
126
+ readonly items: {
127
+ readonly type: "object";
128
+ readonly properties: {
129
+ readonly user_id: {
130
+ readonly type: "string";
131
+ };
132
+ readonly total_messages_posted: {
133
+ readonly type: "number";
134
+ };
135
+ readonly total_sent_milliseconds: {
136
+ readonly type: "number";
137
+ };
138
+ readonly total_heard_milliseconds: {
139
+ readonly type: "number";
140
+ };
141
+ readonly total_engaged_percentage: {
142
+ readonly type: "number";
143
+ };
144
+ readonly total_heard_messages: {
145
+ readonly type: "number";
146
+ };
147
+ readonly total_unheard_messages: {
148
+ readonly type: "number";
149
+ };
150
+ };
151
+ readonly additionalProperties: false;
152
+ readonly required: readonly ["total_engaged_percentage", "total_heard_messages", "total_heard_milliseconds", "total_messages_posted", "total_sent_milliseconds", "total_unheard_messages", "user_id"];
153
+ };
154
+ };
155
+ };
156
+ readonly additionalProperties: false;
157
+ readonly required: readonly ["channel_stats", "user_stats"];
158
+ };
159
+ readonly BasicUser: {
160
+ readonly type: "object";
161
+ readonly properties: {
162
+ readonly user_guid: {
163
+ readonly type: "string";
164
+ };
165
+ readonly first_name: {
166
+ readonly type: "string";
167
+ };
168
+ readonly last_name: {
169
+ readonly type: "string";
170
+ };
171
+ };
172
+ readonly additionalProperties: false;
173
+ readonly required: readonly ["first_name", "last_name", "user_guid"];
174
+ };
175
+ };
176
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
177
+ };
178
+ export declare enum ChannelUsersAddedKeys {
179
+ channel = "channel",
180
+ addedBy = "addedBy",
181
+ addedUsers = "addedUsers"
182
+ }
@@ -0,0 +1,225 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChannelUsersAddedKeys = exports.ChannelUsersAddedSchema = void 0;
4
+ exports.ChannelUsersAddedSchema = {
5
+ type: 'object',
6
+ properties: {
7
+ channel: {
8
+ $ref: '#/definitions/Channel',
9
+ },
10
+ addedBy: {
11
+ $ref: '#/definitions/BasicUser',
12
+ },
13
+ addedUsers: {
14
+ type: 'array',
15
+ items: {
16
+ $ref: '#/definitions/BasicUser',
17
+ },
18
+ },
19
+ },
20
+ additionalProperties: false,
21
+ required: ['addedBy', 'addedUsers', 'channel'],
22
+ definitions: {
23
+ Channel: {
24
+ type: 'object',
25
+ properties: {
26
+ channel_guid: {
27
+ type: 'string',
28
+ },
29
+ channel_name: {
30
+ type: 'string',
31
+ },
32
+ channel_description: {
33
+ type: ['null', 'string'],
34
+ },
35
+ workspace_guid: {
36
+ type: 'string',
37
+ },
38
+ workspace_name: {
39
+ type: 'string',
40
+ },
41
+ workspace_image_url: {
42
+ type: ['null', 'string'],
43
+ },
44
+ owner_guid: {
45
+ type: 'string',
46
+ },
47
+ owner_first_name: {
48
+ type: 'string',
49
+ },
50
+ owner_last_name: {
51
+ type: 'string',
52
+ },
53
+ type: {
54
+ $ref: '#/definitions/ChannelType',
55
+ },
56
+ visibility: {
57
+ $ref: '#/definitions/ChannelVisibility',
58
+ },
59
+ total_messages: {
60
+ type: 'number',
61
+ },
62
+ total_duration_ms: {
63
+ type: 'number',
64
+ },
65
+ image_url: {
66
+ type: ['null', 'string'],
67
+ },
68
+ is_private: {
69
+ type: 'boolean',
70
+ },
71
+ is_async: {
72
+ type: 'boolean',
73
+ },
74
+ async_stats: {
75
+ anyOf: [
76
+ {
77
+ $ref: '#/definitions/AsyncMeetingStats',
78
+ },
79
+ {
80
+ type: 'null',
81
+ },
82
+ ],
83
+ },
84
+ created_at: {
85
+ type: 'number',
86
+ },
87
+ last_updated_at: {
88
+ type: 'number',
89
+ },
90
+ deleted_at: {
91
+ type: ['null', 'number'],
92
+ },
93
+ },
94
+ additionalProperties: false,
95
+ required: [
96
+ 'channel_guid',
97
+ 'channel_name',
98
+ 'created_at',
99
+ 'is_async',
100
+ 'is_private',
101
+ 'last_updated_at',
102
+ 'owner_first_name',
103
+ 'owner_guid',
104
+ 'owner_last_name',
105
+ 'total_duration_ms',
106
+ 'total_messages',
107
+ 'type',
108
+ 'visibility',
109
+ 'workspace_guid',
110
+ 'workspace_name',
111
+ ],
112
+ },
113
+ ChannelType: {
114
+ type: 'string',
115
+ enum: [
116
+ 'directMessage',
117
+ 'customerConversation',
118
+ 'namedConversation',
119
+ 'asyncMeeting',
120
+ ],
121
+ },
122
+ ChannelVisibility: {
123
+ type: 'string',
124
+ enum: ['private', 'workspace', 'public'],
125
+ },
126
+ AsyncMeetingStats: {
127
+ type: 'object',
128
+ properties: {
129
+ channel_stats: {
130
+ type: 'object',
131
+ properties: {
132
+ total_duration_milliseconds: {
133
+ type: 'number',
134
+ },
135
+ total_heard_milliseconds: {
136
+ type: 'number',
137
+ },
138
+ total_engaged_percentage: {
139
+ type: 'number',
140
+ },
141
+ total_messages_posted: {
142
+ type: 'number',
143
+ },
144
+ total_users: {
145
+ type: 'number',
146
+ },
147
+ },
148
+ additionalProperties: false,
149
+ required: [
150
+ 'total_duration_milliseconds',
151
+ 'total_engaged_percentage',
152
+ 'total_heard_milliseconds',
153
+ 'total_messages_posted',
154
+ 'total_users',
155
+ ],
156
+ },
157
+ user_stats: {
158
+ type: 'array',
159
+ items: {
160
+ type: 'object',
161
+ properties: {
162
+ user_id: {
163
+ type: 'string',
164
+ },
165
+ total_messages_posted: {
166
+ type: 'number',
167
+ },
168
+ total_sent_milliseconds: {
169
+ type: 'number',
170
+ },
171
+ total_heard_milliseconds: {
172
+ type: 'number',
173
+ },
174
+ total_engaged_percentage: {
175
+ type: 'number',
176
+ },
177
+ total_heard_messages: {
178
+ type: 'number',
179
+ },
180
+ total_unheard_messages: {
181
+ type: 'number',
182
+ },
183
+ },
184
+ additionalProperties: false,
185
+ required: [
186
+ 'total_engaged_percentage',
187
+ 'total_heard_messages',
188
+ 'total_heard_milliseconds',
189
+ 'total_messages_posted',
190
+ 'total_sent_milliseconds',
191
+ 'total_unheard_messages',
192
+ 'user_id',
193
+ ],
194
+ },
195
+ },
196
+ },
197
+ additionalProperties: false,
198
+ required: ['channel_stats', 'user_stats'],
199
+ },
200
+ BasicUser: {
201
+ type: 'object',
202
+ properties: {
203
+ user_guid: {
204
+ type: 'string',
205
+ },
206
+ first_name: {
207
+ type: 'string',
208
+ },
209
+ last_name: {
210
+ type: 'string',
211
+ },
212
+ },
213
+ additionalProperties: false,
214
+ required: ['first_name', 'last_name', 'user_guid'],
215
+ },
216
+ },
217
+ $schema: 'http://json-schema.org/draft-07/schema#',
218
+ };
219
+ var ChannelUsersAddedKeys;
220
+ (function (ChannelUsersAddedKeys) {
221
+ ChannelUsersAddedKeys["channel"] = "channel";
222
+ ChannelUsersAddedKeys["addedBy"] = "addedBy";
223
+ ChannelUsersAddedKeys["addedUsers"] = "addedUsers";
224
+ })(ChannelUsersAddedKeys = exports.ChannelUsersAddedKeys || (exports.ChannelUsersAddedKeys = {}));
225
+ //# sourceMappingURL=ChannelUsersAddedSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelUsersAddedSchema.js","sourceRoot":"","sources":["../../src/schemas/ChannelUsersAddedSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;IACrC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,OAAO,EAAE;YACP,IAAI,EAAE,uBAAuB;SAC9B;QACD,OAAO,EAAE;YACP,IAAI,EAAE,yBAAyB;SAChC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,yBAAyB;aAChC;SACF;KACF;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,SAAS,CAAC;IAC9C,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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,CAAC;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,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,4CAAmB,CAAA;IACnB,kDAAyB,CAAA;AAC3B,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC"}
@@ -0,0 +1,56 @@
1
+ export declare const LabelSchema: {
2
+ readonly type: "object";
3
+ readonly properties: {
4
+ readonly _id: {
5
+ readonly type: "string";
6
+ };
7
+ readonly name: {
8
+ readonly type: "string";
9
+ };
10
+ readonly behavior: {
11
+ readonly $ref: "#/definitions/LabelBehavior";
12
+ };
13
+ readonly type: {
14
+ readonly $ref: "#/definitions/LabelType";
15
+ };
16
+ readonly creator_guid: {
17
+ readonly type: "string";
18
+ };
19
+ readonly space_guid: {
20
+ readonly type: readonly ["null", "string"];
21
+ };
22
+ readonly image_url: {
23
+ readonly type: readonly ["null", "string"];
24
+ };
25
+ readonly automatic_playlist: {
26
+ readonly type: "boolean";
27
+ };
28
+ readonly sort_order: {
29
+ readonly type: "number";
30
+ };
31
+ };
32
+ readonly additionalProperties: false;
33
+ readonly required: readonly ["_id", "behavior", "creator_guid", "name", "sort_order", "type"];
34
+ readonly definitions: {
35
+ readonly LabelBehavior: {
36
+ readonly type: "string";
37
+ readonly enum: readonly ["removeOnListenStart", "removeWhenHeard", "persistent"];
38
+ };
39
+ readonly LabelType: {
40
+ readonly type: "string";
41
+ readonly enum: readonly ["personal", "workspace", "system", "reaction"];
42
+ };
43
+ };
44
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
45
+ };
46
+ export declare enum LabelKeys {
47
+ _id = "_id",
48
+ name = "name",
49
+ behavior = "behavior",
50
+ type = "type",
51
+ creator_guid = "creator_guid",
52
+ space_guid = "space_guid",
53
+ image_url = "image_url",
54
+ automatic_playlist = "automatic_playlist",
55
+ sort_order = "sort_order"
56
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LabelKeys = exports.LabelSchema = void 0;
4
+ exports.LabelSchema = {
5
+ type: 'object',
6
+ properties: {
7
+ _id: {
8
+ type: 'string',
9
+ },
10
+ name: {
11
+ type: 'string',
12
+ },
13
+ behavior: {
14
+ $ref: '#/definitions/LabelBehavior',
15
+ },
16
+ type: {
17
+ $ref: '#/definitions/LabelType',
18
+ },
19
+ creator_guid: {
20
+ type: 'string',
21
+ },
22
+ space_guid: {
23
+ type: ['null', 'string'],
24
+ },
25
+ image_url: {
26
+ type: ['null', 'string'],
27
+ },
28
+ automatic_playlist: {
29
+ type: 'boolean',
30
+ },
31
+ sort_order: {
32
+ type: 'number',
33
+ },
34
+ },
35
+ additionalProperties: false,
36
+ required: ['_id', 'behavior', 'creator_guid', 'name', 'sort_order', 'type'],
37
+ definitions: {
38
+ LabelBehavior: {
39
+ type: 'string',
40
+ enum: ['removeOnListenStart', 'removeWhenHeard', 'persistent'],
41
+ },
42
+ LabelType: {
43
+ type: 'string',
44
+ enum: ['personal', 'workspace', 'system', 'reaction'],
45
+ },
46
+ },
47
+ $schema: 'http://json-schema.org/draft-07/schema#',
48
+ };
49
+ var LabelKeys;
50
+ (function (LabelKeys) {
51
+ LabelKeys["_id"] = "_id";
52
+ LabelKeys["name"] = "name";
53
+ LabelKeys["behavior"] = "behavior";
54
+ LabelKeys["type"] = "type";
55
+ LabelKeys["creator_guid"] = "creator_guid";
56
+ LabelKeys["space_guid"] = "space_guid";
57
+ LabelKeys["image_url"] = "image_url";
58
+ LabelKeys["automatic_playlist"] = "automatic_playlist";
59
+ LabelKeys["sort_order"] = "sort_order";
60
+ })(LabelKeys = exports.LabelKeys || (exports.LabelKeys = {}));
61
+ //# sourceMappingURL=LabelSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LabelSchema.js","sourceRoot":"","sources":["../../src/schemas/LabelSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,6BAA6B;SACpC;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,yBAAyB;SAChC;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,SAAS,EAAE;YACT,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,kBAAkB,EAAE;YAClB,IAAI,EAAE,SAAS;SAChB;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;KACF;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC;IAC3E,WAAW,EAAE;QACX,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,qBAAqB,EAAE,iBAAiB,EAAE,YAAY,CAAC;SAC/D;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,CAAC;SACtD;KACF;IACD,OAAO,EAAE,yCAAyC;CAC1C,CAAC;AAEX,IAAY,SAUX;AAVD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,0CAA6B,CAAA;IAC7B,sCAAyB,CAAA;IACzB,oCAAuB,CAAA;IACvB,sDAAyC,CAAA;IACzC,sCAAyB,CAAA;AAC3B,CAAC,EAVW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAUpB"}
@@ -0,0 +1,96 @@
1
+ export declare const MessageSchema: {
2
+ readonly type: "object";
3
+ readonly properties: {
4
+ readonly message_guid: {
5
+ readonly type: "string";
6
+ };
7
+ readonly creator_guid: {
8
+ readonly type: "string";
9
+ };
10
+ readonly channel_guid: {
11
+ readonly type: readonly ["null", "string"];
12
+ };
13
+ readonly workspace_guid: {
14
+ readonly type: readonly ["null", "string"];
15
+ };
16
+ readonly created_at: {
17
+ readonly type: "number";
18
+ };
19
+ readonly last_updated_at: {
20
+ readonly type: "number";
21
+ };
22
+ readonly deleted_at: {
23
+ readonly type: readonly ["null", "number"];
24
+ };
25
+ readonly duration_ms: {
26
+ readonly type: "number";
27
+ };
28
+ readonly message_url: {
29
+ readonly type: readonly ["null", "string"];
30
+ };
31
+ readonly audio_stream_url: {
32
+ readonly type: readonly ["null", "string"];
33
+ };
34
+ readonly transcript_txt: {
35
+ readonly type: readonly ["null", "string"];
36
+ };
37
+ readonly ai_summary_txt: {
38
+ readonly type: readonly ["null", "string"];
39
+ };
40
+ readonly has_ai_summary: {
41
+ readonly type: "boolean";
42
+ };
43
+ readonly waveform_url: {
44
+ readonly type: readonly ["null", "string"];
45
+ };
46
+ readonly reply_count: {
47
+ readonly type: "number";
48
+ };
49
+ readonly parent_message_guid: {
50
+ readonly type: readonly ["null", "string"];
51
+ };
52
+ readonly language: {
53
+ readonly type: readonly ["null", "string"];
54
+ };
55
+ readonly status: {
56
+ readonly $ref: "#/definitions/MessageStatus";
57
+ };
58
+ readonly type: {
59
+ readonly $ref: "#/definitions/MessageType";
60
+ };
61
+ };
62
+ readonly additionalProperties: false;
63
+ readonly required: readonly ["created_at", "creator_guid", "duration_ms", "last_updated_at", "message_guid", "reply_count", "status", "type"];
64
+ readonly definitions: {
65
+ readonly MessageStatus: {
66
+ readonly type: "string";
67
+ readonly enum: readonly ["offline", "paused", "processing", "scheduled", "active", "deleted", "account-deleted", "initializing", "inprogress", "canceled"];
68
+ };
69
+ readonly MessageType: {
70
+ readonly type: "string";
71
+ readonly enum: readonly ["channel", "prerecorded", "voicememo", "stored", "welcome"];
72
+ };
73
+ };
74
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
75
+ };
76
+ export declare enum MessageKeys {
77
+ message_guid = "message_guid",
78
+ creator_guid = "creator_guid",
79
+ channel_guid = "channel_guid",
80
+ workspace_guid = "workspace_guid",
81
+ created_at = "created_at",
82
+ last_updated_at = "last_updated_at",
83
+ deleted_at = "deleted_at",
84
+ duration_ms = "duration_ms",
85
+ message_url = "message_url",
86
+ audio_stream_url = "audio_stream_url",
87
+ transcript_txt = "transcript_txt",
88
+ ai_summary_txt = "ai_summary_txt",
89
+ has_ai_summary = "has_ai_summary",
90
+ waveform_url = "waveform_url",
91
+ reply_count = "reply_count",
92
+ parent_message_guid = "parent_message_guid",
93
+ language = "language",
94
+ status = "status",
95
+ type = "type"
96
+ }