@moltzap/protocol 0.1.0

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 (160) hide show
  1. package/dist/helpers.d.ts +15 -0
  2. package/dist/helpers.d.ts.map +1 -0
  3. package/dist/helpers.js +20 -0
  4. package/dist/helpers.js.map +1 -0
  5. package/dist/index.d.ts +8 -0
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js +8 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/schema/contacts.d.ts +11 -0
  10. package/dist/schema/contacts.d.ts.map +1 -0
  11. package/dist/schema/contacts.js +12 -0
  12. package/dist/schema/contacts.js.map +1 -0
  13. package/dist/schema/conversations.d.ts +37 -0
  14. package/dist/schema/conversations.d.ts.map +1 -0
  15. package/dist/schema/conversations.js +31 -0
  16. package/dist/schema/conversations.js.map +1 -0
  17. package/dist/schema/delivery.d.ts +15 -0
  18. package/dist/schema/delivery.d.ts.map +1 -0
  19. package/dist/schema/delivery.js +14 -0
  20. package/dist/schema/delivery.js.map +1 -0
  21. package/dist/schema/errors.d.ts +24 -0
  22. package/dist/schema/errors.d.ts.map +1 -0
  23. package/dist/schema/errors.js +22 -0
  24. package/dist/schema/errors.js.map +1 -0
  25. package/dist/schema/events.d.ts +120 -0
  26. package/dist/schema/events.d.ts.map +1 -0
  27. package/dist/schema/events.js +52 -0
  28. package/dist/schema/events.js.map +1 -0
  29. package/dist/schema/frames.d.ts +29 -0
  30. package/dist/schema/frames.d.ts.map +1 -0
  31. package/dist/schema/frames.js +23 -0
  32. package/dist/schema/frames.js.map +1 -0
  33. package/dist/schema/identity.d.ts +28 -0
  34. package/dist/schema/identity.d.ts.map +1 -0
  35. package/dist/schema/identity.js +31 -0
  36. package/dist/schema/identity.js.map +1 -0
  37. package/dist/schema/index.d.ts +18 -0
  38. package/dist/schema/index.d.ts.map +1 -0
  39. package/dist/schema/index.js +18 -0
  40. package/dist/schema/index.js.map +1 -0
  41. package/dist/schema/invites.d.ts +17 -0
  42. package/dist/schema/invites.d.ts.map +1 -0
  43. package/dist/schema/invites.js +18 -0
  44. package/dist/schema/invites.js.map +1 -0
  45. package/dist/schema/messages.d.ts +25 -0
  46. package/dist/schema/messages.d.ts.map +1 -0
  47. package/dist/schema/messages.js +20 -0
  48. package/dist/schema/messages.js.map +1 -0
  49. package/dist/schema/methods/auth.d.ts +64 -0
  50. package/dist/schema/methods/auth.d.ts.map +1 -0
  51. package/dist/schema/methods/auth.js +46 -0
  52. package/dist/schema/methods/auth.js.map +1 -0
  53. package/dist/schema/methods/contacts.d.ts +38 -0
  54. package/dist/schema/methods/contacts.d.ts.map +1 -0
  55. package/dist/schema/methods/contacts.js +23 -0
  56. package/dist/schema/methods/contacts.js.map +1 -0
  57. package/dist/schema/methods/conversations.d.ts +92 -0
  58. package/dist/schema/methods/conversations.d.ts.map +1 -0
  59. package/dist/schema/methods/conversations.js +43 -0
  60. package/dist/schema/methods/conversations.js.map +1 -0
  61. package/dist/schema/methods/invites.d.ts +33 -0
  62. package/dist/schema/methods/invites.d.ts.map +1 -0
  63. package/dist/schema/methods/invites.js +19 -0
  64. package/dist/schema/methods/invites.js.map +1 -0
  65. package/dist/schema/methods/messages.d.ts +67 -0
  66. package/dist/schema/methods/messages.d.ts.map +1 -0
  67. package/dist/schema/methods/messages.js +32 -0
  68. package/dist/schema/methods/messages.js.map +1 -0
  69. package/dist/schema/methods/presence.d.ts +19 -0
  70. package/dist/schema/methods/presence.d.ts.map +1 -0
  71. package/dist/schema/methods/presence.js +7 -0
  72. package/dist/schema/methods/presence.js.map +1 -0
  73. package/dist/schema/presence.d.ts +19 -0
  74. package/dist/schema/presence.d.ts.map +1 -0
  75. package/dist/schema/presence.js +14 -0
  76. package/dist/schema/presence.js.map +1 -0
  77. package/dist/schema/primitives.d.ts +7 -0
  78. package/dist/schema/primitives.d.ts.map +1 -0
  79. package/dist/schema/primitives.js +13 -0
  80. package/dist/schema/primitives.js.map +1 -0
  81. package/dist/schemas/Agent.json +46 -0
  82. package/dist/schemas/Contact.json +40 -0
  83. package/dist/schemas/ContactAcceptedEvent.json +49 -0
  84. package/dist/schemas/ContactIdParams.json +14 -0
  85. package/dist/schemas/ContactRequestEvent.json +49 -0
  86. package/dist/schemas/ContactsAcceptParams.json +14 -0
  87. package/dist/schemas/ContactsAcceptResult.json +49 -0
  88. package/dist/schemas/ContactsAddParams.json +18 -0
  89. package/dist/schemas/ContactsAddResult.json +19 -0
  90. package/dist/schemas/ContactsListParams.json +14 -0
  91. package/dist/schemas/ContactsListResult.json +52 -0
  92. package/dist/schemas/Conversation.json +57 -0
  93. package/dist/schemas/ConversationCreatedEvent.json +66 -0
  94. package/dist/schemas/ConversationParticipant.json +59 -0
  95. package/dist/schemas/ConversationSummary.json +37 -0
  96. package/dist/schemas/ConversationUpdatedEvent.json +66 -0
  97. package/dist/schemas/ConversationsAddParticipantParams.json +36 -0
  98. package/dist/schemas/ConversationsCreateParams.json +47 -0
  99. package/dist/schemas/ConversationsCreateResult.json +66 -0
  100. package/dist/schemas/ConversationsGetParams.json +14 -0
  101. package/dist/schemas/ConversationsGetResult.json +129 -0
  102. package/dist/schemas/ConversationsLeaveParams.json +14 -0
  103. package/dist/schemas/ConversationsListParams.json +14 -0
  104. package/dist/schemas/ConversationsListResult.json +52 -0
  105. package/dist/schemas/ConversationsMuteParams.json +18 -0
  106. package/dist/schemas/ConversationsRemoveParticipantParams.json +36 -0
  107. package/dist/schemas/ConversationsUnmuteParams.json +14 -0
  108. package/dist/schemas/ConversationsUpdateParams.json +19 -0
  109. package/dist/schemas/DeliveryEntry.json +59 -0
  110. package/dist/schemas/EmptyResult.json +5 -0
  111. package/dist/schemas/EventFrame.json +23 -0
  112. package/dist/schemas/HelloOk.json +118 -0
  113. package/dist/schemas/Invite.json +63 -0
  114. package/dist/schemas/InvitesAcceptParams.json +13 -0
  115. package/dist/schemas/InvitesAcceptResult.json +103 -0
  116. package/dist/schemas/InvitesCreateParams.json +18 -0
  117. package/dist/schemas/InvitesCreateResult.json +17 -0
  118. package/dist/schemas/Message.json +96 -0
  119. package/dist/schemas/MessageDeletedEvent.json +20 -0
  120. package/dist/schemas/MessageDeliveredEvent.json +42 -0
  121. package/dist/schemas/MessageReactedEvent.json +48 -0
  122. package/dist/schemas/MessageReadEvent.json +41 -0
  123. package/dist/schemas/MessageReceivedEvent.json +105 -0
  124. package/dist/schemas/MessagesDeleteParams.json +14 -0
  125. package/dist/schemas/MessagesListParams.json +27 -0
  126. package/dist/schemas/MessagesListResult.json +112 -0
  127. package/dist/schemas/MessagesReactParams.json +28 -0
  128. package/dist/schemas/MessagesReadParams.json +19 -0
  129. package/dist/schemas/MessagesSendParams.json +46 -0
  130. package/dist/schemas/MessagesSendResult.json +105 -0
  131. package/dist/schemas/ParticipantRef.json +21 -0
  132. package/dist/schemas/Policy.json +45 -0
  133. package/dist/schemas/PresenceChangedEvent.json +39 -0
  134. package/dist/schemas/PresenceEntry.json +39 -0
  135. package/dist/schemas/PresenceSubscribeParams.json +33 -0
  136. package/dist/schemas/PresenceSubscribeResult.json +51 -0
  137. package/dist/schemas/PresenceUpdateParams.json +17 -0
  138. package/dist/schemas/RateLimits.json +16 -0
  139. package/dist/schemas/RegisterParams.json +17 -0
  140. package/dist/schemas/RegisterResult.json +27 -0
  141. package/dist/schemas/RequestFrame.json +27 -0
  142. package/dist/schemas/ResponseFrame.json +40 -0
  143. package/dist/schemas/RpcError.json +17 -0
  144. package/dist/schemas/TextPart.json +19 -0
  145. package/dist/schemas/TypingIndicator.json +36 -0
  146. package/dist/schemas/TypingIndicatorEvent.json +36 -0
  147. package/dist/schemas/User.json +43 -0
  148. package/dist/types.d.ts +11 -0
  149. package/dist/types.d.ts.map +1 -0
  150. package/dist/types.js +2 -0
  151. package/dist/types.js.map +1 -0
  152. package/dist/validators.d.ts +154 -0
  153. package/dist/validators.d.ts.map +1 -0
  154. package/dist/validators.js +40 -0
  155. package/dist/validators.js.map +1 -0
  156. package/dist/version.d.ts +2 -0
  157. package/dist/version.d.ts.map +1 -0
  158. package/dist/version.js +2 -0
  159. package/dist/version.js.map +1 -0
  160. package/package.json +42 -0
@@ -0,0 +1,19 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "conversationId"
6
+ ],
7
+ "properties": {
8
+ "conversationId": {
9
+ "format": "uuid",
10
+ "description": "Branded ConversationId",
11
+ "type": "string"
12
+ },
13
+ "name": {
14
+ "minLength": 1,
15
+ "maxLength": 100,
16
+ "type": "string"
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "messageId",
6
+ "conversationId",
7
+ "participant",
8
+ "status"
9
+ ],
10
+ "properties": {
11
+ "messageId": {
12
+ "format": "uuid",
13
+ "description": "Branded MessageId",
14
+ "type": "string"
15
+ },
16
+ "conversationId": {
17
+ "format": "uuid",
18
+ "description": "Branded ConversationId",
19
+ "type": "string"
20
+ },
21
+ "participant": {
22
+ "additionalProperties": false,
23
+ "type": "object",
24
+ "required": [
25
+ "type",
26
+ "id"
27
+ ],
28
+ "properties": {
29
+ "type": {
30
+ "type": "string",
31
+ "enum": [
32
+ "user",
33
+ "agent"
34
+ ]
35
+ },
36
+ "id": {
37
+ "format": "uuid",
38
+ "type": "string"
39
+ }
40
+ }
41
+ },
42
+ "status": {
43
+ "type": "string",
44
+ "enum": [
45
+ "sent",
46
+ "delivered",
47
+ "read"
48
+ ]
49
+ },
50
+ "deliveredAt": {
51
+ "format": "date-time",
52
+ "type": "string"
53
+ },
54
+ "readAt": {
55
+ "format": "date-time",
56
+ "type": "string"
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "properties": {}
5
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "jsonrpc",
6
+ "type",
7
+ "event"
8
+ ],
9
+ "properties": {
10
+ "jsonrpc": {
11
+ "const": "2.0",
12
+ "type": "string"
13
+ },
14
+ "type": {
15
+ "const": "event",
16
+ "type": "string"
17
+ },
18
+ "event": {
19
+ "type": "string"
20
+ },
21
+ "data": {}
22
+ }
23
+ }
@@ -0,0 +1,118 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "protocolVersion",
6
+ "conversations",
7
+ "unreadCounts",
8
+ "policy"
9
+ ],
10
+ "properties": {
11
+ "protocolVersion": {
12
+ "type": "string"
13
+ },
14
+ "userId": {
15
+ "format": "uuid",
16
+ "description": "Branded UserId",
17
+ "type": "string"
18
+ },
19
+ "agentId": {
20
+ "format": "uuid",
21
+ "description": "Branded AgentId",
22
+ "type": "string"
23
+ },
24
+ "conversations": {
25
+ "type": "array",
26
+ "items": {
27
+ "additionalProperties": false,
28
+ "type": "object",
29
+ "required": [
30
+ "id",
31
+ "type",
32
+ "unreadCount"
33
+ ],
34
+ "properties": {
35
+ "id": {
36
+ "format": "uuid",
37
+ "description": "Branded ConversationId",
38
+ "type": "string"
39
+ },
40
+ "type": {
41
+ "type": "string",
42
+ "enum": [
43
+ "dm",
44
+ "group"
45
+ ]
46
+ },
47
+ "name": {
48
+ "type": "string"
49
+ },
50
+ "lastMessagePreview": {
51
+ "type": "string"
52
+ },
53
+ "lastMessageAt": {
54
+ "format": "date-time",
55
+ "type": "string"
56
+ },
57
+ "unreadCount": {
58
+ "minimum": 0,
59
+ "type": "integer"
60
+ }
61
+ }
62
+ }
63
+ },
64
+ "unreadCounts": {
65
+ "type": "object",
66
+ "patternProperties": {
67
+ "^(.*)$": {
68
+ "type": "integer"
69
+ }
70
+ }
71
+ },
72
+ "policy": {
73
+ "additionalProperties": false,
74
+ "type": "object",
75
+ "required": [
76
+ "maxMessageBytes",
77
+ "maxPartsPerMessage",
78
+ "maxTextLength",
79
+ "maxGroupParticipants",
80
+ "heartbeatIntervalMs",
81
+ "rateLimits"
82
+ ],
83
+ "properties": {
84
+ "maxMessageBytes": {
85
+ "type": "integer"
86
+ },
87
+ "maxPartsPerMessage": {
88
+ "type": "integer"
89
+ },
90
+ "maxTextLength": {
91
+ "type": "integer"
92
+ },
93
+ "maxGroupParticipants": {
94
+ "type": "integer"
95
+ },
96
+ "heartbeatIntervalMs": {
97
+ "type": "integer"
98
+ },
99
+ "rateLimits": {
100
+ "additionalProperties": false,
101
+ "type": "object",
102
+ "required": [
103
+ "messagesPerMinute",
104
+ "requestsPerMinute"
105
+ ],
106
+ "properties": {
107
+ "messagesPerMinute": {
108
+ "type": "integer"
109
+ },
110
+ "requestsPerMinute": {
111
+ "type": "integer"
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "id",
6
+ "inviterId",
7
+ "token",
8
+ "type",
9
+ "status",
10
+ "createdAt",
11
+ "expiresAt"
12
+ ],
13
+ "properties": {
14
+ "id": {
15
+ "format": "uuid",
16
+ "type": "string"
17
+ },
18
+ "inviterId": {
19
+ "format": "uuid",
20
+ "description": "Branded UserId",
21
+ "type": "string"
22
+ },
23
+ "token": {
24
+ "minLength": 43,
25
+ "type": "string"
26
+ },
27
+ "type": {
28
+ "type": "string",
29
+ "enum": [
30
+ "contact",
31
+ "group"
32
+ ]
33
+ },
34
+ "targetEmail": {
35
+ "format": "email",
36
+ "type": "string"
37
+ },
38
+ "targetPhone": {
39
+ "type": "string"
40
+ },
41
+ "conversationId": {
42
+ "format": "uuid",
43
+ "description": "Branded ConversationId",
44
+ "type": "string"
45
+ },
46
+ "status": {
47
+ "type": "string",
48
+ "enum": [
49
+ "pending",
50
+ "accepted",
51
+ "expired"
52
+ ]
53
+ },
54
+ "createdAt": {
55
+ "format": "date-time",
56
+ "type": "string"
57
+ },
58
+ "expiresAt": {
59
+ "format": "date-time",
60
+ "type": "string"
61
+ }
62
+ }
63
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "token"
6
+ ],
7
+ "properties": {
8
+ "token": {
9
+ "minLength": 43,
10
+ "type": "string"
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,103 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "properties": {
5
+ "contact": {
6
+ "additionalProperties": false,
7
+ "type": "object",
8
+ "required": [
9
+ "id",
10
+ "requesterId",
11
+ "targetId",
12
+ "status",
13
+ "createdAt"
14
+ ],
15
+ "properties": {
16
+ "id": {
17
+ "format": "uuid",
18
+ "description": "Branded ContactId",
19
+ "type": "string"
20
+ },
21
+ "requesterId": {
22
+ "format": "uuid",
23
+ "description": "Branded UserId",
24
+ "type": "string"
25
+ },
26
+ "targetId": {
27
+ "format": "uuid",
28
+ "description": "Branded UserId",
29
+ "type": "string"
30
+ },
31
+ "status": {
32
+ "type": "string",
33
+ "enum": [
34
+ "pending",
35
+ "accepted",
36
+ "blocked"
37
+ ]
38
+ },
39
+ "createdAt": {
40
+ "format": "date-time",
41
+ "type": "string"
42
+ }
43
+ }
44
+ },
45
+ "conversation": {
46
+ "additionalProperties": false,
47
+ "type": "object",
48
+ "required": [
49
+ "id",
50
+ "type",
51
+ "createdBy",
52
+ "createdAt",
53
+ "updatedAt"
54
+ ],
55
+ "properties": {
56
+ "id": {
57
+ "format": "uuid",
58
+ "description": "Branded ConversationId",
59
+ "type": "string"
60
+ },
61
+ "type": {
62
+ "type": "string",
63
+ "enum": [
64
+ "dm",
65
+ "group"
66
+ ]
67
+ },
68
+ "name": {
69
+ "type": "string"
70
+ },
71
+ "createdBy": {
72
+ "additionalProperties": false,
73
+ "type": "object",
74
+ "required": [
75
+ "type",
76
+ "id"
77
+ ],
78
+ "properties": {
79
+ "type": {
80
+ "type": "string",
81
+ "enum": [
82
+ "user",
83
+ "agent"
84
+ ]
85
+ },
86
+ "id": {
87
+ "format": "uuid",
88
+ "type": "string"
89
+ }
90
+ }
91
+ },
92
+ "createdAt": {
93
+ "format": "date-time",
94
+ "type": "string"
95
+ },
96
+ "updatedAt": {
97
+ "format": "date-time",
98
+ "type": "string"
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "properties": {
5
+ "email": {
6
+ "format": "email",
7
+ "type": "string"
8
+ },
9
+ "phone": {
10
+ "type": "string"
11
+ },
12
+ "conversationId": {
13
+ "format": "uuid",
14
+ "description": "Branded ConversationId",
15
+ "type": "string"
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "inviteUrl",
6
+ "token"
7
+ ],
8
+ "properties": {
9
+ "inviteUrl": {
10
+ "format": "uri",
11
+ "type": "string"
12
+ },
13
+ "token": {
14
+ "type": "string"
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,96 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "id",
6
+ "conversationId",
7
+ "sender",
8
+ "seq",
9
+ "parts",
10
+ "createdAt"
11
+ ],
12
+ "properties": {
13
+ "id": {
14
+ "format": "uuid",
15
+ "description": "Branded MessageId",
16
+ "type": "string"
17
+ },
18
+ "conversationId": {
19
+ "format": "uuid",
20
+ "description": "Branded ConversationId",
21
+ "type": "string"
22
+ },
23
+ "sender": {
24
+ "additionalProperties": false,
25
+ "type": "object",
26
+ "required": [
27
+ "type",
28
+ "id"
29
+ ],
30
+ "properties": {
31
+ "type": {
32
+ "type": "string",
33
+ "enum": [
34
+ "user",
35
+ "agent"
36
+ ]
37
+ },
38
+ "id": {
39
+ "format": "uuid",
40
+ "type": "string"
41
+ }
42
+ }
43
+ },
44
+ "seq": {
45
+ "minimum": 0,
46
+ "type": "integer"
47
+ },
48
+ "replyToId": {
49
+ "format": "uuid",
50
+ "description": "Branded MessageId",
51
+ "type": "string"
52
+ },
53
+ "parts": {
54
+ "minItems": 1,
55
+ "maxItems": 10,
56
+ "type": "array",
57
+ "items": {
58
+ "additionalProperties": false,
59
+ "type": "object",
60
+ "required": [
61
+ "type",
62
+ "text"
63
+ ],
64
+ "properties": {
65
+ "type": {
66
+ "const": "text",
67
+ "type": "string"
68
+ },
69
+ "text": {
70
+ "minLength": 1,
71
+ "maxLength": 32768,
72
+ "type": "string"
73
+ }
74
+ }
75
+ }
76
+ },
77
+ "reactions": {
78
+ "type": "object",
79
+ "patternProperties": {
80
+ "^(.*)$": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "string"
84
+ }
85
+ }
86
+ }
87
+ },
88
+ "isDeleted": {
89
+ "type": "boolean"
90
+ },
91
+ "createdAt": {
92
+ "format": "date-time",
93
+ "type": "string"
94
+ }
95
+ }
96
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "messageId",
6
+ "conversationId"
7
+ ],
8
+ "properties": {
9
+ "messageId": {
10
+ "format": "uuid",
11
+ "description": "Branded MessageId",
12
+ "type": "string"
13
+ },
14
+ "conversationId": {
15
+ "format": "uuid",
16
+ "description": "Branded ConversationId",
17
+ "type": "string"
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "messageId",
6
+ "conversationId",
7
+ "participant"
8
+ ],
9
+ "properties": {
10
+ "messageId": {
11
+ "format": "uuid",
12
+ "description": "Branded MessageId",
13
+ "type": "string"
14
+ },
15
+ "conversationId": {
16
+ "format": "uuid",
17
+ "description": "Branded ConversationId",
18
+ "type": "string"
19
+ },
20
+ "participant": {
21
+ "additionalProperties": false,
22
+ "type": "object",
23
+ "required": [
24
+ "type",
25
+ "id"
26
+ ],
27
+ "properties": {
28
+ "type": {
29
+ "type": "string",
30
+ "enum": [
31
+ "user",
32
+ "agent"
33
+ ]
34
+ },
35
+ "id": {
36
+ "format": "uuid",
37
+ "type": "string"
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "messageId",
6
+ "emoji",
7
+ "participant",
8
+ "action"
9
+ ],
10
+ "properties": {
11
+ "messageId": {
12
+ "format": "uuid",
13
+ "description": "Branded MessageId",
14
+ "type": "string"
15
+ },
16
+ "emoji": {
17
+ "type": "string"
18
+ },
19
+ "participant": {
20
+ "additionalProperties": false,
21
+ "type": "object",
22
+ "required": [
23
+ "type",
24
+ "id"
25
+ ],
26
+ "properties": {
27
+ "type": {
28
+ "type": "string",
29
+ "enum": [
30
+ "user",
31
+ "agent"
32
+ ]
33
+ },
34
+ "id": {
35
+ "format": "uuid",
36
+ "type": "string"
37
+ }
38
+ }
39
+ },
40
+ "action": {
41
+ "type": "string",
42
+ "enum": [
43
+ "add",
44
+ "remove"
45
+ ]
46
+ }
47
+ }
48
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "conversationId",
6
+ "participant",
7
+ "seq"
8
+ ],
9
+ "properties": {
10
+ "conversationId": {
11
+ "format": "uuid",
12
+ "description": "Branded ConversationId",
13
+ "type": "string"
14
+ },
15
+ "participant": {
16
+ "additionalProperties": false,
17
+ "type": "object",
18
+ "required": [
19
+ "type",
20
+ "id"
21
+ ],
22
+ "properties": {
23
+ "type": {
24
+ "type": "string",
25
+ "enum": [
26
+ "user",
27
+ "agent"
28
+ ]
29
+ },
30
+ "id": {
31
+ "format": "uuid",
32
+ "type": "string"
33
+ }
34
+ }
35
+ },
36
+ "seq": {
37
+ "minimum": 0,
38
+ "type": "integer"
39
+ }
40
+ }
41
+ }