@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,66 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "conversation"
6
+ ],
7
+ "properties": {
8
+ "conversation": {
9
+ "additionalProperties": false,
10
+ "type": "object",
11
+ "required": [
12
+ "id",
13
+ "type",
14
+ "createdBy",
15
+ "createdAt",
16
+ "updatedAt"
17
+ ],
18
+ "properties": {
19
+ "id": {
20
+ "format": "uuid",
21
+ "description": "Branded ConversationId",
22
+ "type": "string"
23
+ },
24
+ "type": {
25
+ "type": "string",
26
+ "enum": [
27
+ "dm",
28
+ "group"
29
+ ]
30
+ },
31
+ "name": {
32
+ "type": "string"
33
+ },
34
+ "createdBy": {
35
+ "additionalProperties": false,
36
+ "type": "object",
37
+ "required": [
38
+ "type",
39
+ "id"
40
+ ],
41
+ "properties": {
42
+ "type": {
43
+ "type": "string",
44
+ "enum": [
45
+ "user",
46
+ "agent"
47
+ ]
48
+ },
49
+ "id": {
50
+ "format": "uuid",
51
+ "type": "string"
52
+ }
53
+ }
54
+ },
55
+ "createdAt": {
56
+ "format": "date-time",
57
+ "type": "string"
58
+ },
59
+ "updatedAt": {
60
+ "format": "date-time",
61
+ "type": "string"
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "conversationId",
6
+ "participant",
7
+ "role",
8
+ "joinedAt",
9
+ "lastReadSeq"
10
+ ],
11
+ "properties": {
12
+ "conversationId": {
13
+ "format": "uuid",
14
+ "description": "Branded ConversationId",
15
+ "type": "string"
16
+ },
17
+ "participant": {
18
+ "additionalProperties": false,
19
+ "type": "object",
20
+ "required": [
21
+ "type",
22
+ "id"
23
+ ],
24
+ "properties": {
25
+ "type": {
26
+ "type": "string",
27
+ "enum": [
28
+ "user",
29
+ "agent"
30
+ ]
31
+ },
32
+ "id": {
33
+ "format": "uuid",
34
+ "type": "string"
35
+ }
36
+ }
37
+ },
38
+ "role": {
39
+ "type": "string",
40
+ "enum": [
41
+ "owner",
42
+ "admin",
43
+ "member"
44
+ ]
45
+ },
46
+ "joinedAt": {
47
+ "format": "date-time",
48
+ "type": "string"
49
+ },
50
+ "lastReadSeq": {
51
+ "minimum": 0,
52
+ "type": "integer"
53
+ },
54
+ "mutedUntil": {
55
+ "format": "date-time",
56
+ "type": "string"
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "id",
6
+ "type",
7
+ "unreadCount"
8
+ ],
9
+ "properties": {
10
+ "id": {
11
+ "format": "uuid",
12
+ "description": "Branded ConversationId",
13
+ "type": "string"
14
+ },
15
+ "type": {
16
+ "type": "string",
17
+ "enum": [
18
+ "dm",
19
+ "group"
20
+ ]
21
+ },
22
+ "name": {
23
+ "type": "string"
24
+ },
25
+ "lastMessagePreview": {
26
+ "type": "string"
27
+ },
28
+ "lastMessageAt": {
29
+ "format": "date-time",
30
+ "type": "string"
31
+ },
32
+ "unreadCount": {
33
+ "minimum": 0,
34
+ "type": "integer"
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "conversation"
6
+ ],
7
+ "properties": {
8
+ "conversation": {
9
+ "additionalProperties": false,
10
+ "type": "object",
11
+ "required": [
12
+ "id",
13
+ "type",
14
+ "createdBy",
15
+ "createdAt",
16
+ "updatedAt"
17
+ ],
18
+ "properties": {
19
+ "id": {
20
+ "format": "uuid",
21
+ "description": "Branded ConversationId",
22
+ "type": "string"
23
+ },
24
+ "type": {
25
+ "type": "string",
26
+ "enum": [
27
+ "dm",
28
+ "group"
29
+ ]
30
+ },
31
+ "name": {
32
+ "type": "string"
33
+ },
34
+ "createdBy": {
35
+ "additionalProperties": false,
36
+ "type": "object",
37
+ "required": [
38
+ "type",
39
+ "id"
40
+ ],
41
+ "properties": {
42
+ "type": {
43
+ "type": "string",
44
+ "enum": [
45
+ "user",
46
+ "agent"
47
+ ]
48
+ },
49
+ "id": {
50
+ "format": "uuid",
51
+ "type": "string"
52
+ }
53
+ }
54
+ },
55
+ "createdAt": {
56
+ "format": "date-time",
57
+ "type": "string"
58
+ },
59
+ "updatedAt": {
60
+ "format": "date-time",
61
+ "type": "string"
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "conversationId",
6
+ "participant"
7
+ ],
8
+ "properties": {
9
+ "conversationId": {
10
+ "format": "uuid",
11
+ "description": "Branded ConversationId",
12
+ "type": "string"
13
+ },
14
+ "participant": {
15
+ "additionalProperties": false,
16
+ "type": "object",
17
+ "required": [
18
+ "type",
19
+ "id"
20
+ ],
21
+ "properties": {
22
+ "type": {
23
+ "type": "string",
24
+ "enum": [
25
+ "user",
26
+ "agent"
27
+ ]
28
+ },
29
+ "id": {
30
+ "format": "uuid",
31
+ "type": "string"
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "type",
6
+ "participants"
7
+ ],
8
+ "properties": {
9
+ "type": {
10
+ "type": "string",
11
+ "enum": [
12
+ "dm",
13
+ "group"
14
+ ]
15
+ },
16
+ "name": {
17
+ "minLength": 1,
18
+ "maxLength": 100,
19
+ "type": "string"
20
+ },
21
+ "participants": {
22
+ "minItems": 1,
23
+ "type": "array",
24
+ "items": {
25
+ "additionalProperties": false,
26
+ "type": "object",
27
+ "required": [
28
+ "type",
29
+ "id"
30
+ ],
31
+ "properties": {
32
+ "type": {
33
+ "type": "string",
34
+ "enum": [
35
+ "user",
36
+ "agent"
37
+ ]
38
+ },
39
+ "id": {
40
+ "format": "uuid",
41
+ "type": "string"
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "conversation"
6
+ ],
7
+ "properties": {
8
+ "conversation": {
9
+ "additionalProperties": false,
10
+ "type": "object",
11
+ "required": [
12
+ "id",
13
+ "type",
14
+ "createdBy",
15
+ "createdAt",
16
+ "updatedAt"
17
+ ],
18
+ "properties": {
19
+ "id": {
20
+ "format": "uuid",
21
+ "description": "Branded ConversationId",
22
+ "type": "string"
23
+ },
24
+ "type": {
25
+ "type": "string",
26
+ "enum": [
27
+ "dm",
28
+ "group"
29
+ ]
30
+ },
31
+ "name": {
32
+ "type": "string"
33
+ },
34
+ "createdBy": {
35
+ "additionalProperties": false,
36
+ "type": "object",
37
+ "required": [
38
+ "type",
39
+ "id"
40
+ ],
41
+ "properties": {
42
+ "type": {
43
+ "type": "string",
44
+ "enum": [
45
+ "user",
46
+ "agent"
47
+ ]
48
+ },
49
+ "id": {
50
+ "format": "uuid",
51
+ "type": "string"
52
+ }
53
+ }
54
+ },
55
+ "createdAt": {
56
+ "format": "date-time",
57
+ "type": "string"
58
+ },
59
+ "updatedAt": {
60
+ "format": "date-time",
61
+ "type": "string"
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,14 @@
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
+ }
14
+ }
@@ -0,0 +1,129 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "conversation",
6
+ "participants"
7
+ ],
8
+ "properties": {
9
+ "conversation": {
10
+ "additionalProperties": false,
11
+ "type": "object",
12
+ "required": [
13
+ "id",
14
+ "type",
15
+ "createdBy",
16
+ "createdAt",
17
+ "updatedAt"
18
+ ],
19
+ "properties": {
20
+ "id": {
21
+ "format": "uuid",
22
+ "description": "Branded ConversationId",
23
+ "type": "string"
24
+ },
25
+ "type": {
26
+ "type": "string",
27
+ "enum": [
28
+ "dm",
29
+ "group"
30
+ ]
31
+ },
32
+ "name": {
33
+ "type": "string"
34
+ },
35
+ "createdBy": {
36
+ "additionalProperties": false,
37
+ "type": "object",
38
+ "required": [
39
+ "type",
40
+ "id"
41
+ ],
42
+ "properties": {
43
+ "type": {
44
+ "type": "string",
45
+ "enum": [
46
+ "user",
47
+ "agent"
48
+ ]
49
+ },
50
+ "id": {
51
+ "format": "uuid",
52
+ "type": "string"
53
+ }
54
+ }
55
+ },
56
+ "createdAt": {
57
+ "format": "date-time",
58
+ "type": "string"
59
+ },
60
+ "updatedAt": {
61
+ "format": "date-time",
62
+ "type": "string"
63
+ }
64
+ }
65
+ },
66
+ "participants": {
67
+ "type": "array",
68
+ "items": {
69
+ "additionalProperties": false,
70
+ "type": "object",
71
+ "required": [
72
+ "conversationId",
73
+ "participant",
74
+ "role",
75
+ "joinedAt",
76
+ "lastReadSeq"
77
+ ],
78
+ "properties": {
79
+ "conversationId": {
80
+ "format": "uuid",
81
+ "description": "Branded ConversationId",
82
+ "type": "string"
83
+ },
84
+ "participant": {
85
+ "additionalProperties": false,
86
+ "type": "object",
87
+ "required": [
88
+ "type",
89
+ "id"
90
+ ],
91
+ "properties": {
92
+ "type": {
93
+ "type": "string",
94
+ "enum": [
95
+ "user",
96
+ "agent"
97
+ ]
98
+ },
99
+ "id": {
100
+ "format": "uuid",
101
+ "type": "string"
102
+ }
103
+ }
104
+ },
105
+ "role": {
106
+ "type": "string",
107
+ "enum": [
108
+ "owner",
109
+ "admin",
110
+ "member"
111
+ ]
112
+ },
113
+ "joinedAt": {
114
+ "format": "date-time",
115
+ "type": "string"
116
+ },
117
+ "lastReadSeq": {
118
+ "minimum": 0,
119
+ "type": "integer"
120
+ },
121
+ "mutedUntil": {
122
+ "format": "date-time",
123
+ "type": "string"
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
@@ -0,0 +1,14 @@
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
+ }
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "properties": {
5
+ "limit": {
6
+ "minimum": 1,
7
+ "maximum": 100,
8
+ "type": "integer"
9
+ },
10
+ "cursor": {
11
+ "type": "string"
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "conversations"
6
+ ],
7
+ "properties": {
8
+ "conversations": {
9
+ "type": "array",
10
+ "items": {
11
+ "additionalProperties": false,
12
+ "type": "object",
13
+ "required": [
14
+ "id",
15
+ "type",
16
+ "unreadCount"
17
+ ],
18
+ "properties": {
19
+ "id": {
20
+ "format": "uuid",
21
+ "description": "Branded ConversationId",
22
+ "type": "string"
23
+ },
24
+ "type": {
25
+ "type": "string",
26
+ "enum": [
27
+ "dm",
28
+ "group"
29
+ ]
30
+ },
31
+ "name": {
32
+ "type": "string"
33
+ },
34
+ "lastMessagePreview": {
35
+ "type": "string"
36
+ },
37
+ "lastMessageAt": {
38
+ "format": "date-time",
39
+ "type": "string"
40
+ },
41
+ "unreadCount": {
42
+ "minimum": 0,
43
+ "type": "integer"
44
+ }
45
+ }
46
+ }
47
+ },
48
+ "cursor": {
49
+ "type": "string"
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,18 @@
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
+ "until": {
14
+ "format": "date-time",
15
+ "type": "string"
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "additionalProperties": false,
3
+ "type": "object",
4
+ "required": [
5
+ "conversationId",
6
+ "participant"
7
+ ],
8
+ "properties": {
9
+ "conversationId": {
10
+ "format": "uuid",
11
+ "description": "Branded ConversationId",
12
+ "type": "string"
13
+ },
14
+ "participant": {
15
+ "additionalProperties": false,
16
+ "type": "object",
17
+ "required": [
18
+ "type",
19
+ "id"
20
+ ],
21
+ "properties": {
22
+ "type": {
23
+ "type": "string",
24
+ "enum": [
25
+ "user",
26
+ "agent"
27
+ ]
28
+ },
29
+ "id": {
30
+ "format": "uuid",
31
+ "type": "string"
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,14 @@
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
+ }
14
+ }