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,86 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkspaceUserJoinedKeys = exports.WorkspaceUserJoinedSchema = void 0;
4
+ exports.WorkspaceUserJoinedSchema = {
5
+ type: 'object',
6
+ properties: {
7
+ workspace: {
8
+ $ref: '#/definitions/Workspace',
9
+ },
10
+ joinedUser: {
11
+ $ref: '#/definitions/BasicUser',
12
+ },
13
+ },
14
+ additionalProperties: false,
15
+ required: ['joinedUser', 'workspace'],
16
+ definitions: {
17
+ Workspace: {
18
+ type: 'object',
19
+ properties: {
20
+ workspace_guid: {
21
+ type: 'string',
22
+ },
23
+ workspace_name: {
24
+ type: 'string',
25
+ },
26
+ workspace_description: {
27
+ type: ['null', 'string'],
28
+ },
29
+ image_url: {
30
+ type: ['null', 'string'],
31
+ },
32
+ owner_guid: {
33
+ type: 'string',
34
+ },
35
+ owner_first_name: {
36
+ type: 'string',
37
+ },
38
+ owner_last_name: {
39
+ type: 'string',
40
+ },
41
+ created_at: {
42
+ type: 'number',
43
+ },
44
+ last_updated_at: {
45
+ type: 'number',
46
+ },
47
+ deleted_at: {
48
+ type: ['null', 'number'],
49
+ },
50
+ },
51
+ additionalProperties: false,
52
+ required: [
53
+ 'created_at',
54
+ 'last_updated_at',
55
+ 'owner_first_name',
56
+ 'owner_guid',
57
+ 'owner_last_name',
58
+ 'workspace_guid',
59
+ 'workspace_name',
60
+ ],
61
+ },
62
+ BasicUser: {
63
+ type: 'object',
64
+ properties: {
65
+ user_guid: {
66
+ type: 'string',
67
+ },
68
+ first_name: {
69
+ type: 'string',
70
+ },
71
+ last_name: {
72
+ type: 'string',
73
+ },
74
+ },
75
+ additionalProperties: false,
76
+ required: ['first_name', 'last_name', 'user_guid'],
77
+ },
78
+ },
79
+ $schema: 'http://json-schema.org/draft-07/schema#',
80
+ };
81
+ var WorkspaceUserJoinedKeys;
82
+ (function (WorkspaceUserJoinedKeys) {
83
+ WorkspaceUserJoinedKeys["workspace"] = "workspace";
84
+ WorkspaceUserJoinedKeys["joinedUser"] = "joinedUser";
85
+ })(WorkspaceUserJoinedKeys = exports.WorkspaceUserJoinedKeys || (exports.WorkspaceUserJoinedKeys = {}));
86
+ //# sourceMappingURL=WorkspaceUserJoinedSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkspaceUserJoinedSchema.js","sourceRoot":"","sources":["../../src/schemas/WorkspaceUserJoinedSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG;IACvC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,SAAS,EAAE;YACT,IAAI,EAAE,yBAAyB;SAChC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,yBAAyB;SAChC;KACF;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,YAAY,EAAE,WAAW,CAAC;IACrC,WAAW,EAAE;QACX,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,cAAc,EAAE;oBACd,IAAI,EAAE,QAAQ;iBACf;gBACD,cAAc,EAAE;oBACd,IAAI,EAAE,QAAQ;iBACf;gBACD,qBAAqB,EAAE;oBACrB,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;iBACzB;gBACD,SAAS,EAAE;oBACT,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,IAAI,EAAE,QAAQ;iBACf;gBACD,UAAU,EAAE;oBACV,IAAI,EAAE,QAAQ;iBACf;gBACD,eAAe,EAAE;oBACf,IAAI,EAAE,QAAQ;iBACf;gBACD,UAAU,EAAE;oBACV,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;iBACzB;aACF;YACD,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE;gBACR,YAAY;gBACZ,iBAAiB;gBACjB,kBAAkB;gBAClB,YAAY;gBACZ,iBAAiB;gBACjB,gBAAgB;gBAChB,gBAAgB;aACjB;SACF;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,uBAGX;AAHD,WAAY,uBAAuB;IACjC,kDAAuB,CAAA;IACvB,oDAAyB,CAAA;AAC3B,CAAC,EAHW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAGlC"}
@@ -0,0 +1,73 @@
1
+ export declare const WorkspaceUserLeftSchema: {
2
+ readonly type: "object";
3
+ readonly properties: {
4
+ readonly workspace: {
5
+ readonly $ref: "#/definitions/Workspace";
6
+ };
7
+ readonly leftUser: {
8
+ readonly $ref: "#/definitions/BasicUser";
9
+ };
10
+ };
11
+ readonly additionalProperties: false;
12
+ readonly required: readonly ["leftUser", "workspace"];
13
+ readonly definitions: {
14
+ readonly Workspace: {
15
+ readonly type: "object";
16
+ readonly properties: {
17
+ readonly workspace_guid: {
18
+ readonly type: "string";
19
+ };
20
+ readonly workspace_name: {
21
+ readonly type: "string";
22
+ };
23
+ readonly workspace_description: {
24
+ readonly type: readonly ["null", "string"];
25
+ };
26
+ readonly image_url: {
27
+ readonly type: readonly ["null", "string"];
28
+ };
29
+ readonly owner_guid: {
30
+ readonly type: "string";
31
+ };
32
+ readonly owner_first_name: {
33
+ readonly type: "string";
34
+ };
35
+ readonly owner_last_name: {
36
+ readonly type: "string";
37
+ };
38
+ readonly created_at: {
39
+ readonly type: "number";
40
+ };
41
+ readonly last_updated_at: {
42
+ readonly type: "number";
43
+ };
44
+ readonly deleted_at: {
45
+ readonly type: readonly ["null", "number"];
46
+ };
47
+ };
48
+ readonly additionalProperties: false;
49
+ readonly required: readonly ["created_at", "last_updated_at", "owner_first_name", "owner_guid", "owner_last_name", "workspace_guid", "workspace_name"];
50
+ };
51
+ readonly BasicUser: {
52
+ readonly type: "object";
53
+ readonly properties: {
54
+ readonly user_guid: {
55
+ readonly type: "string";
56
+ };
57
+ readonly first_name: {
58
+ readonly type: "string";
59
+ };
60
+ readonly last_name: {
61
+ readonly type: "string";
62
+ };
63
+ };
64
+ readonly additionalProperties: false;
65
+ readonly required: readonly ["first_name", "last_name", "user_guid"];
66
+ };
67
+ };
68
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
69
+ };
70
+ export declare enum WorkspaceUserLeftKeys {
71
+ workspace = "workspace",
72
+ leftUser = "leftUser"
73
+ }
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkspaceUserLeftKeys = exports.WorkspaceUserLeftSchema = void 0;
4
+ exports.WorkspaceUserLeftSchema = {
5
+ type: 'object',
6
+ properties: {
7
+ workspace: {
8
+ $ref: '#/definitions/Workspace',
9
+ },
10
+ leftUser: {
11
+ $ref: '#/definitions/BasicUser',
12
+ },
13
+ },
14
+ additionalProperties: false,
15
+ required: ['leftUser', 'workspace'],
16
+ definitions: {
17
+ Workspace: {
18
+ type: 'object',
19
+ properties: {
20
+ workspace_guid: {
21
+ type: 'string',
22
+ },
23
+ workspace_name: {
24
+ type: 'string',
25
+ },
26
+ workspace_description: {
27
+ type: ['null', 'string'],
28
+ },
29
+ image_url: {
30
+ type: ['null', 'string'],
31
+ },
32
+ owner_guid: {
33
+ type: 'string',
34
+ },
35
+ owner_first_name: {
36
+ type: 'string',
37
+ },
38
+ owner_last_name: {
39
+ type: 'string',
40
+ },
41
+ created_at: {
42
+ type: 'number',
43
+ },
44
+ last_updated_at: {
45
+ type: 'number',
46
+ },
47
+ deleted_at: {
48
+ type: ['null', 'number'],
49
+ },
50
+ },
51
+ additionalProperties: false,
52
+ required: [
53
+ 'created_at',
54
+ 'last_updated_at',
55
+ 'owner_first_name',
56
+ 'owner_guid',
57
+ 'owner_last_name',
58
+ 'workspace_guid',
59
+ 'workspace_name',
60
+ ],
61
+ },
62
+ BasicUser: {
63
+ type: 'object',
64
+ properties: {
65
+ user_guid: {
66
+ type: 'string',
67
+ },
68
+ first_name: {
69
+ type: 'string',
70
+ },
71
+ last_name: {
72
+ type: 'string',
73
+ },
74
+ },
75
+ additionalProperties: false,
76
+ required: ['first_name', 'last_name', 'user_guid'],
77
+ },
78
+ },
79
+ $schema: 'http://json-schema.org/draft-07/schema#',
80
+ };
81
+ var WorkspaceUserLeftKeys;
82
+ (function (WorkspaceUserLeftKeys) {
83
+ WorkspaceUserLeftKeys["workspace"] = "workspace";
84
+ WorkspaceUserLeftKeys["leftUser"] = "leftUser";
85
+ })(WorkspaceUserLeftKeys = exports.WorkspaceUserLeftKeys || (exports.WorkspaceUserLeftKeys = {}));
86
+ //# sourceMappingURL=WorkspaceUserLeftSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkspaceUserLeftSchema.js","sourceRoot":"","sources":["../../src/schemas/WorkspaceUserLeftSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;IACrC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,SAAS,EAAE;YACT,IAAI,EAAE,yBAAyB;SAChC;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,yBAAyB;SAChC;KACF;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC;IACnC,WAAW,EAAE;QACX,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,cAAc,EAAE;oBACd,IAAI,EAAE,QAAQ;iBACf;gBACD,cAAc,EAAE;oBACd,IAAI,EAAE,QAAQ;iBACf;gBACD,qBAAqB,EAAE;oBACrB,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;iBACzB;gBACD,SAAS,EAAE;oBACT,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,IAAI,EAAE,QAAQ;iBACf;gBACD,UAAU,EAAE;oBACV,IAAI,EAAE,QAAQ;iBACf;gBACD,eAAe,EAAE;oBACf,IAAI,EAAE,QAAQ;iBACf;gBACD,UAAU,EAAE;oBACV,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;iBACzB;aACF;YACD,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE;gBACR,YAAY;gBACZ,iBAAiB;gBACjB,kBAAkB;gBAClB,YAAY;gBACZ,iBAAiB;gBACjB,gBAAgB;gBAChB,gBAAgB;aACjB;SACF;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,gDAAuB,CAAA;IACvB,8CAAqB,CAAA;AACvB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC"}
@@ -0,0 +1,77 @@
1
+ export declare const WorkspaceUserRemovedSchema: {
2
+ readonly type: "object";
3
+ readonly properties: {
4
+ readonly workspace: {
5
+ readonly $ref: "#/definitions/Workspace";
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 ["removedBy", "removedUser", "workspace"];
16
+ readonly definitions: {
17
+ readonly Workspace: {
18
+ readonly type: "object";
19
+ readonly properties: {
20
+ readonly workspace_guid: {
21
+ readonly type: "string";
22
+ };
23
+ readonly workspace_name: {
24
+ readonly type: "string";
25
+ };
26
+ readonly workspace_description: {
27
+ readonly type: readonly ["null", "string"];
28
+ };
29
+ readonly image_url: {
30
+ readonly type: readonly ["null", "string"];
31
+ };
32
+ readonly owner_guid: {
33
+ readonly type: "string";
34
+ };
35
+ readonly owner_first_name: {
36
+ readonly type: "string";
37
+ };
38
+ readonly owner_last_name: {
39
+ readonly type: "string";
40
+ };
41
+ readonly created_at: {
42
+ readonly type: "number";
43
+ };
44
+ readonly last_updated_at: {
45
+ readonly type: "number";
46
+ };
47
+ readonly deleted_at: {
48
+ readonly type: readonly ["null", "number"];
49
+ };
50
+ };
51
+ readonly additionalProperties: false;
52
+ readonly required: readonly ["created_at", "last_updated_at", "owner_first_name", "owner_guid", "owner_last_name", "workspace_guid", "workspace_name"];
53
+ };
54
+ readonly BasicUser: {
55
+ readonly type: "object";
56
+ readonly properties: {
57
+ readonly user_guid: {
58
+ readonly type: "string";
59
+ };
60
+ readonly first_name: {
61
+ readonly type: "string";
62
+ };
63
+ readonly last_name: {
64
+ readonly type: "string";
65
+ };
66
+ };
67
+ readonly additionalProperties: false;
68
+ readonly required: readonly ["first_name", "last_name", "user_guid"];
69
+ };
70
+ };
71
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
72
+ };
73
+ export declare enum WorkspaceUserRemovedKeys {
74
+ workspace = "workspace",
75
+ removedBy = "removedBy",
76
+ removedUser = "removedUser"
77
+ }
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkspaceUserRemovedKeys = exports.WorkspaceUserRemovedSchema = void 0;
4
+ exports.WorkspaceUserRemovedSchema = {
5
+ type: 'object',
6
+ properties: {
7
+ workspace: {
8
+ $ref: '#/definitions/Workspace',
9
+ },
10
+ removedBy: {
11
+ $ref: '#/definitions/BasicUser',
12
+ },
13
+ removedUser: {
14
+ $ref: '#/definitions/BasicUser',
15
+ },
16
+ },
17
+ additionalProperties: false,
18
+ required: ['removedBy', 'removedUser', 'workspace'],
19
+ definitions: {
20
+ Workspace: {
21
+ type: 'object',
22
+ properties: {
23
+ workspace_guid: {
24
+ type: 'string',
25
+ },
26
+ workspace_name: {
27
+ type: 'string',
28
+ },
29
+ workspace_description: {
30
+ type: ['null', 'string'],
31
+ },
32
+ image_url: {
33
+ type: ['null', 'string'],
34
+ },
35
+ owner_guid: {
36
+ type: 'string',
37
+ },
38
+ owner_first_name: {
39
+ type: 'string',
40
+ },
41
+ owner_last_name: {
42
+ type: 'string',
43
+ },
44
+ created_at: {
45
+ type: 'number',
46
+ },
47
+ last_updated_at: {
48
+ type: 'number',
49
+ },
50
+ deleted_at: {
51
+ type: ['null', 'number'],
52
+ },
53
+ },
54
+ additionalProperties: false,
55
+ required: [
56
+ 'created_at',
57
+ 'last_updated_at',
58
+ 'owner_first_name',
59
+ 'owner_guid',
60
+ 'owner_last_name',
61
+ 'workspace_guid',
62
+ 'workspace_name',
63
+ ],
64
+ },
65
+ BasicUser: {
66
+ type: 'object',
67
+ properties: {
68
+ user_guid: {
69
+ type: 'string',
70
+ },
71
+ first_name: {
72
+ type: 'string',
73
+ },
74
+ last_name: {
75
+ type: 'string',
76
+ },
77
+ },
78
+ additionalProperties: false,
79
+ required: ['first_name', 'last_name', 'user_guid'],
80
+ },
81
+ },
82
+ $schema: 'http://json-schema.org/draft-07/schema#',
83
+ };
84
+ var WorkspaceUserRemovedKeys;
85
+ (function (WorkspaceUserRemovedKeys) {
86
+ WorkspaceUserRemovedKeys["workspace"] = "workspace";
87
+ WorkspaceUserRemovedKeys["removedBy"] = "removedBy";
88
+ WorkspaceUserRemovedKeys["removedUser"] = "removedUser";
89
+ })(WorkspaceUserRemovedKeys = exports.WorkspaceUserRemovedKeys || (exports.WorkspaceUserRemovedKeys = {}));
90
+ //# sourceMappingURL=WorkspaceUserRemovedSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkspaceUserRemovedSchema.js","sourceRoot":"","sources":["../../src/schemas/WorkspaceUserRemovedSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;IACxC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,SAAS,EAAE;YACT,IAAI,EAAE,yBAAyB;SAChC;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,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC;IACnD,WAAW,EAAE;QACX,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,cAAc,EAAE;oBACd,IAAI,EAAE,QAAQ;iBACf;gBACD,cAAc,EAAE;oBACd,IAAI,EAAE,QAAQ;iBACf;gBACD,qBAAqB,EAAE;oBACrB,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;iBACzB;gBACD,SAAS,EAAE;oBACT,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,IAAI,EAAE,QAAQ;iBACf;gBACD,UAAU,EAAE;oBACV,IAAI,EAAE,QAAQ;iBACf;gBACD,eAAe,EAAE;oBACf,IAAI,EAAE,QAAQ;iBACf;gBACD,UAAU,EAAE;oBACV,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;iBACzB;aACF;YACD,oBAAoB,EAAE,KAAK;YAC3B,QAAQ,EAAE;gBACR,YAAY;gBACZ,iBAAiB;gBACjB,kBAAkB;gBAClB,YAAY;gBACZ,iBAAiB;gBACjB,gBAAgB;gBAChB,gBAAgB;aACjB;SACF;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,wBAIX;AAJD,WAAY,wBAAwB;IAClC,mDAAuB,CAAA;IACvB,mDAAuB,CAAA;IACvB,uDAA2B,CAAA;AAC7B,CAAC,EAJW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAInC"}
@@ -0,0 +1,18 @@
1
+ export * from './AsyncMeetingStatsSchema';
2
+ export * from './BasicUserSchema';
3
+ export * from './ChannelSchema';
4
+ export * from './ChannelUserJoinedSchema';
5
+ export * from './ChannelUserLeftSchema';
6
+ export * from './ChannelUserRemovedSchema';
7
+ export * from './ChannelUsersAddedSchema';
8
+ export * from './LabelSchema';
9
+ export * from './MessageSchema';
10
+ export * from './SubscribedUserSettingsSchema';
11
+ export * from './SubscriptionFilterSchema';
12
+ export * from './WebhookPayloadSchema';
13
+ export * from './WorkspaceSchema';
14
+ export * from './WorkspaceFindableChannelCreatedSchema';
15
+ export * from './WorkspaceUserAddedSchema';
16
+ export * from './WorkspaceUserJoinedSchema';
17
+ export * from './WorkspaceUserLeftSchema';
18
+ export * from './WorkspaceUserRemovedSchema';
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AsyncMeetingStatsSchema"), exports);
18
+ __exportStar(require("./BasicUserSchema"), exports);
19
+ __exportStar(require("./ChannelSchema"), exports);
20
+ __exportStar(require("./ChannelUserJoinedSchema"), exports);
21
+ __exportStar(require("./ChannelUserLeftSchema"), exports);
22
+ __exportStar(require("./ChannelUserRemovedSchema"), exports);
23
+ __exportStar(require("./ChannelUsersAddedSchema"), exports);
24
+ __exportStar(require("./LabelSchema"), exports);
25
+ __exportStar(require("./MessageSchema"), exports);
26
+ __exportStar(require("./SubscribedUserSettingsSchema"), exports);
27
+ __exportStar(require("./SubscriptionFilterSchema"), exports);
28
+ __exportStar(require("./WebhookPayloadSchema"), exports);
29
+ __exportStar(require("./WorkspaceSchema"), exports);
30
+ __exportStar(require("./WorkspaceFindableChannelCreatedSchema"), exports);
31
+ __exportStar(require("./WorkspaceUserAddedSchema"), exports);
32
+ __exportStar(require("./WorkspaceUserJoinedSchema"), exports);
33
+ __exportStar(require("./WorkspaceUserLeftSchema"), exports);
34
+ __exportStar(require("./WorkspaceUserRemovedSchema"), exports);
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,oDAAkC;AAClC,kDAAgC;AAChC,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,4DAA0C;AAC1C,gDAA8B;AAC9B,kDAAgC;AAChC,iEAA+C;AAC/C,6DAA2C;AAC3C,yDAAuC;AACvC,oDAAkC;AAClC,0EAAwD;AACxD,6DAA2C;AAC3C,8DAA4C;AAC5C,4DAA0C;AAC1C,+DAA6C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cv-contracts",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "Carbon Voice Contracts",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,7 +8,8 @@
8
8
  "test": "echo \"Error: no test specified\" && exit 1",
9
9
  "clean": "rimraf ./dist",
10
10
  "lint": "eslint --fix -c .eslintrc.js src/ --ext .ts",
11
- "build": "npm run clean && npm run lint && npx tsc",
11
+ "build": "npm run clean && npm run generate-schemas && npm run lint && npx tsc",
12
+ "generate-schemas": "node ./src/utils/generate-schema-from-contracts.js && prettier ./src/schemas/** --write && echo '✅ Finish generating schema files'",
12
13
  "prepare": "npm run build"
13
14
  },
14
15
  "keywords": [
@@ -30,6 +31,7 @@
30
31
  "eslint-plugin-unused-imports": "^3.2.0",
31
32
  "prettier": "^3.2.5",
32
33
  "rimraf": "^5.0.7",
33
- "typescript": "^4.9.4"
34
+ "typescript": "^4.9.4",
35
+ "typescript-json-schema": "^0.64.0"
34
36
  }
35
37
  }