cv-contracts 2.0.13 → 3.0.4

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 (58) hide show
  1. package/dist/interfaces/v5/WorkspaceV5.d.ts +1 -0
  2. package/dist/interfaces/webhook/SubscribedUserSettings.d.ts +5 -0
  3. package/dist/interfaces/webhook/WebhookBasicUser.d.ts +5 -0
  4. package/dist/interfaces/webhook/WebhookChannel.d.ts +25 -0
  5. package/dist/interfaces/webhook/WebhookMessage.d.ts +29 -1
  6. package/dist/interfaces/webhook/WebhookWorkspace.d.ts +30 -0
  7. package/dist/schemas/v5/WorkspaceV5Schema.d.ts +4 -0
  8. package/dist/schemas/v5/WorkspaceV5Schema.js +4 -0
  9. package/dist/schemas/v5/WorkspaceV5Schema.js.map +1 -1
  10. package/dist/schemas/webhook/AIPromptResponseSchema.d.ts +35 -0
  11. package/dist/schemas/webhook/AIPromptResponseSchema.js +56 -1
  12. package/dist/schemas/webhook/AIPromptResponseSchema.js.map +1 -1
  13. package/dist/schemas/webhook/SubscribedUserSettingsSchema.d.ts +5 -0
  14. package/dist/schemas/webhook/SubscribedUserSettingsSchema.js +6 -1
  15. package/dist/schemas/webhook/SubscribedUserSettingsSchema.js.map +1 -1
  16. package/dist/schemas/webhook/WebhookBasicUserSchema.d.ts +5 -0
  17. package/dist/schemas/webhook/WebhookBasicUserSchema.js +6 -1
  18. package/dist/schemas/webhook/WebhookBasicUserSchema.js.map +1 -1
  19. package/dist/schemas/webhook/WebhookChannelSchema.d.ts +25 -0
  20. package/dist/schemas/webhook/WebhookChannelSchema.js +29 -0
  21. package/dist/schemas/webhook/WebhookChannelSchema.js.map +1 -1
  22. package/dist/schemas/webhook/WebhookChannelUserJoinedSchema.d.ts +24 -0
  23. package/dist/schemas/webhook/WebhookChannelUserJoinedSchema.js +29 -1
  24. package/dist/schemas/webhook/WebhookChannelUserJoinedSchema.js.map +1 -1
  25. package/dist/schemas/webhook/WebhookChannelUserLeftSchema.d.ts +24 -0
  26. package/dist/schemas/webhook/WebhookChannelUserLeftSchema.js +29 -1
  27. package/dist/schemas/webhook/WebhookChannelUserLeftSchema.js.map +1 -1
  28. package/dist/schemas/webhook/WebhookChannelUserRemovedSchema.d.ts +24 -0
  29. package/dist/schemas/webhook/WebhookChannelUserRemovedSchema.js +29 -1
  30. package/dist/schemas/webhook/WebhookChannelUserRemovedSchema.js.map +1 -1
  31. package/dist/schemas/webhook/WebhookChannelUsersAddedSchema.d.ts +24 -0
  32. package/dist/schemas/webhook/WebhookChannelUsersAddedSchema.js +29 -1
  33. package/dist/schemas/webhook/WebhookChannelUsersAddedSchema.js.map +1 -1
  34. package/dist/schemas/webhook/WebhookMessageSchema.d.ts +44 -1
  35. package/dist/schemas/webhook/WebhookMessageSchema.js +55 -0
  36. package/dist/schemas/webhook/WebhookMessageSchema.js.map +1 -1
  37. package/dist/schemas/webhook/WebhookPayloadSchema.d.ts +4 -0
  38. package/dist/schemas/webhook/WebhookPayloadSchema.js +5 -1
  39. package/dist/schemas/webhook/WebhookPayloadSchema.js.map +1 -1
  40. package/dist/schemas/webhook/WebhookWorkspaceFindableChannelCreatedSchema.d.ts +44 -0
  41. package/dist/schemas/webhook/WebhookWorkspaceFindableChannelCreatedSchema.js +53 -0
  42. package/dist/schemas/webhook/WebhookWorkspaceFindableChannelCreatedSchema.js.map +1 -1
  43. package/dist/schemas/webhook/WebhookWorkspaceSchema.d.ts +30 -0
  44. package/dist/schemas/webhook/WebhookWorkspaceSchema.js +35 -0
  45. package/dist/schemas/webhook/WebhookWorkspaceSchema.js.map +1 -1
  46. package/dist/schemas/webhook/WebhookWorkspaceUserAddedSchema.d.ts +28 -0
  47. package/dist/schemas/webhook/WebhookWorkspaceUserAddedSchema.js +34 -1
  48. package/dist/schemas/webhook/WebhookWorkspaceUserAddedSchema.js.map +1 -1
  49. package/dist/schemas/webhook/WebhookWorkspaceUserJoinedSchema.d.ts +28 -0
  50. package/dist/schemas/webhook/WebhookWorkspaceUserJoinedSchema.js +34 -1
  51. package/dist/schemas/webhook/WebhookWorkspaceUserJoinedSchema.js.map +1 -1
  52. package/dist/schemas/webhook/WebhookWorkspaceUserLeftSchema.d.ts +28 -0
  53. package/dist/schemas/webhook/WebhookWorkspaceUserLeftSchema.js +34 -1
  54. package/dist/schemas/webhook/WebhookWorkspaceUserLeftSchema.js.map +1 -1
  55. package/dist/schemas/webhook/WebhookWorkspaceUserRemovedSchema.d.ts +28 -0
  56. package/dist/schemas/webhook/WebhookWorkspaceUserRemovedSchema.js +34 -1
  57. package/dist/schemas/webhook/WebhookWorkspaceUserRemovedSchema.js.map +1 -1
  58. package/package.json +5 -1
@@ -23,24 +23,48 @@ exports.WebhookWorkspaceUserRemovedSchema = {
23
23
  workspace_guid: {
24
24
  type: 'string',
25
25
  },
26
+ id: {
27
+ description: 'Preferred workspace identifier. Same type and optionality as `workspace_guid`.',
28
+ type: 'string',
29
+ },
26
30
  workspace_name: {
27
31
  type: 'string',
28
32
  },
33
+ name: {
34
+ description: 'Preferred workspace display name. Same type and optionality as `workspace_name`.',
35
+ type: 'string',
36
+ },
29
37
  workspace_description: {
30
38
  type: ['null', 'string'],
31
39
  },
40
+ description: {
41
+ description: 'Preferred workspace description. Same type and optionality as `workspace_description`.',
42
+ type: ['null', 'string'],
43
+ },
32
44
  image_url: {
33
45
  type: ['null', 'string'],
34
46
  },
35
47
  owner_guid: {
36
48
  type: 'string',
37
49
  },
50
+ creator_id: {
51
+ description: 'Preferred owner/creator user identifier. Same type and optionality as `owner_guid`.',
52
+ type: 'string',
53
+ },
38
54
  owner_first_name: {
39
55
  type: 'string',
40
56
  },
57
+ creator_first_name: {
58
+ description: 'Preferred creator given name. Same type and optionality as `owner_first_name`.',
59
+ type: 'string',
60
+ },
41
61
  owner_last_name: {
42
62
  type: 'string',
43
63
  },
64
+ creator_last_name: {
65
+ description: 'Preferred creator family name. Same type and optionality as `owner_last_name`.',
66
+ type: 'string',
67
+ },
44
68
  created_at: {
45
69
  type: 'number',
46
70
  },
@@ -54,7 +78,12 @@ exports.WebhookWorkspaceUserRemovedSchema = {
54
78
  additionalProperties: false,
55
79
  required: [
56
80
  'created_at',
81
+ 'creator_first_name',
82
+ 'creator_id',
83
+ 'creator_last_name',
84
+ 'id',
57
85
  'last_updated_at',
86
+ 'name',
58
87
  'owner_first_name',
59
88
  'owner_guid',
60
89
  'owner_last_name',
@@ -68,6 +97,10 @@ exports.WebhookWorkspaceUserRemovedSchema = {
68
97
  user_guid: {
69
98
  type: 'string',
70
99
  },
100
+ id: {
101
+ description: 'Preferred user identifier. Same type and optionality as `user_guid`.',
102
+ type: 'string',
103
+ },
71
104
  first_name: {
72
105
  type: 'string',
73
106
  },
@@ -76,7 +109,7 @@ exports.WebhookWorkspaceUserRemovedSchema = {
76
109
  },
77
110
  },
78
111
  additionalProperties: false,
79
- required: ['first_name', 'last_name', 'user_guid'],
112
+ required: ['first_name', 'id', 'last_name', 'user_guid'],
80
113
  },
81
114
  },
82
115
  $schema: 'http://json-schema.org/draft-07/schema#',
@@ -1 +1 @@
1
- {"version":3,"file":"WebhookWorkspaceUserRemovedSchema.js","sourceRoot":"","sources":["../../../src/schemas/webhook/WebhookWorkspaceUserRemovedSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,iCAAiC,GAAG;IAC/C,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,SAAS,EAAE;YACT,IAAI,EAAE,gCAAgC;SACvC;QACD,SAAS,EAAE;YACT,IAAI,EAAE,gCAAgC;SACvC;QACD,WAAW,EAAE;YACX,IAAI,EAAE,gCAAgC;SACvC;KACF;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC;IACnD,WAAW,EAAE;QACX,gBAAgB,EAAE;YAChB,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,cAAc,EAAE;oBACd,IAAI,EAAE,QAAQ;iBACf;gBACD,cAAc,EAAE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chema.js","sourceRoot":"","sources":["../../../src/schemas/webhook/WebhookWorkspaceUserRemovedSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,iCAAiC,GAAG;IAC/C,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,SAAS,EAAE;YACT,IAAI,EAAE,gCAAgC;SACvC;QACD,SAAS,EAAE;YACT,IAAI,EAAE,gCAAgC;SACvC;QACD,WAAW,EAAE;YACX,IAAI,EAAE,gCAAgC;SACvC;KACF;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC;IACnD,WAAW,EAAE;QACX,gBAAgB,EAAE;YAChB,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,cAAc,EAAE;oBACd,IAAI,EAAE,QAAQ;iBACf;gBACD,EAAE,EAAE;oBACF,WAAW,EACT,gFAAgF;oBAClF,IAAI,EAAE,QAAQ;iBACf;gBACD,cAAc,EAAE;oBACd,IAAI,EAAE,QAAQ;iBACf;gBACD,IAAI,EAAE;oBACJ,WAAW,EACT,kFAAkF;oBACpF,IAAI,EAAE,QAAQ;iBACf;gBACD,qBAAqB,EAAE;oBACrB,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;iBACzB;gBACD,WAAW,EAAE;oBACX,WAAW,EACT,wFAAwF;oBAC1F,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,UAAU,EAAE;oBACV,WAAW,EACT,qFAAqF;oBACvF,IAAI,EAAE,QAAQ;iBACf;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;iBACf;gBACD,kBAAkB,EAAE;oBAClB,WAAW,EACT,gFAAgF;oBAClF,IAAI,EAAE,QAAQ;iBACf;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3.0.4",
4
4
  "description": "Carbon Voice Contracts",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,6 +20,10 @@
20
20
  ],
21
21
  "author": "Carbon Voice",
22
22
  "license": "ISC",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/PhononX/cv-contracts.git"
26
+ },
23
27
  "private": false,
24
28
  "devDependencies": {
25
29
  "@types/node": "^14",