@moltzap/protocol 0.1.0 → 0.3.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.
- package/dist/schema/conversations.d.ts +6 -0
- package/dist/schema/conversations.d.ts.map +1 -1
- package/dist/schema/conversations.js +3 -0
- package/dist/schema/conversations.js.map +1 -1
- package/dist/schema/identity.d.ts.map +1 -1
- package/dist/schema/identity.js +1 -0
- package/dist/schema/identity.js.map +1 -1
- package/dist/schema/methods/auth.d.ts +37 -0
- package/dist/schema/methods/auth.d.ts.map +1 -1
- package/dist/schema/methods/auth.js +29 -0
- package/dist/schema/methods/auth.js.map +1 -1
- package/dist/schema/methods/conversations.d.ts +6 -0
- package/dist/schema/methods/conversations.d.ts.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/validators.d.ts +9 -0
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +4 -1
- package/dist/validators.js.map +1 -1
- package/package.json +9 -11
- package/dist/schemas/Agent.json +0 -46
- package/dist/schemas/Contact.json +0 -40
- package/dist/schemas/ContactAcceptedEvent.json +0 -49
- package/dist/schemas/ContactIdParams.json +0 -14
- package/dist/schemas/ContactRequestEvent.json +0 -49
- package/dist/schemas/ContactsAcceptParams.json +0 -14
- package/dist/schemas/ContactsAcceptResult.json +0 -49
- package/dist/schemas/ContactsAddParams.json +0 -18
- package/dist/schemas/ContactsAddResult.json +0 -19
- package/dist/schemas/ContactsListParams.json +0 -14
- package/dist/schemas/ContactsListResult.json +0 -52
- package/dist/schemas/Conversation.json +0 -57
- package/dist/schemas/ConversationCreatedEvent.json +0 -66
- package/dist/schemas/ConversationParticipant.json +0 -59
- package/dist/schemas/ConversationSummary.json +0 -37
- package/dist/schemas/ConversationUpdatedEvent.json +0 -66
- package/dist/schemas/ConversationsAddParticipantParams.json +0 -36
- package/dist/schemas/ConversationsCreateParams.json +0 -47
- package/dist/schemas/ConversationsCreateResult.json +0 -66
- package/dist/schemas/ConversationsGetParams.json +0 -14
- package/dist/schemas/ConversationsGetResult.json +0 -129
- package/dist/schemas/ConversationsLeaveParams.json +0 -14
- package/dist/schemas/ConversationsListParams.json +0 -14
- package/dist/schemas/ConversationsListResult.json +0 -52
- package/dist/schemas/ConversationsMuteParams.json +0 -18
- package/dist/schemas/ConversationsRemoveParticipantParams.json +0 -36
- package/dist/schemas/ConversationsUnmuteParams.json +0 -14
- package/dist/schemas/ConversationsUpdateParams.json +0 -19
- package/dist/schemas/DeliveryEntry.json +0 -59
- package/dist/schemas/EmptyResult.json +0 -5
- package/dist/schemas/EventFrame.json +0 -23
- package/dist/schemas/HelloOk.json +0 -118
- package/dist/schemas/Invite.json +0 -63
- package/dist/schemas/InvitesAcceptParams.json +0 -13
- package/dist/schemas/InvitesAcceptResult.json +0 -103
- package/dist/schemas/InvitesCreateParams.json +0 -18
- package/dist/schemas/InvitesCreateResult.json +0 -17
- package/dist/schemas/Message.json +0 -96
- package/dist/schemas/MessageDeletedEvent.json +0 -20
- package/dist/schemas/MessageDeliveredEvent.json +0 -42
- package/dist/schemas/MessageReactedEvent.json +0 -48
- package/dist/schemas/MessageReadEvent.json +0 -41
- package/dist/schemas/MessageReceivedEvent.json +0 -105
- package/dist/schemas/MessagesDeleteParams.json +0 -14
- package/dist/schemas/MessagesListParams.json +0 -27
- package/dist/schemas/MessagesListResult.json +0 -112
- package/dist/schemas/MessagesReactParams.json +0 -28
- package/dist/schemas/MessagesReadParams.json +0 -19
- package/dist/schemas/MessagesSendParams.json +0 -46
- package/dist/schemas/MessagesSendResult.json +0 -105
- package/dist/schemas/ParticipantRef.json +0 -21
- package/dist/schemas/Policy.json +0 -45
- package/dist/schemas/PresenceChangedEvent.json +0 -39
- package/dist/schemas/PresenceEntry.json +0 -39
- package/dist/schemas/PresenceSubscribeParams.json +0 -33
- package/dist/schemas/PresenceSubscribeResult.json +0 -51
- package/dist/schemas/PresenceUpdateParams.json +0 -17
- package/dist/schemas/RateLimits.json +0 -16
- package/dist/schemas/RegisterParams.json +0 -17
- package/dist/schemas/RegisterResult.json +0 -27
- package/dist/schemas/RequestFrame.json +0 -27
- package/dist/schemas/ResponseFrame.json +0 -40
- package/dist/schemas/RpcError.json +0 -17
- package/dist/schemas/TextPart.json +0 -19
- package/dist/schemas/TypingIndicator.json +0 -36
- package/dist/schemas/TypingIndicatorEvent.json +0 -36
- package/dist/schemas/User.json +0 -43
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
"userId": {
|
|
13
|
-
"format": "uuid",
|
|
14
|
-
"description": "Branded UserId",
|
|
15
|
-
"type": "string"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"additionalProperties": false,
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": [
|
|
5
|
-
"contactId",
|
|
6
|
-
"status"
|
|
7
|
-
],
|
|
8
|
-
"properties": {
|
|
9
|
-
"contactId": {
|
|
10
|
-
"format": "uuid",
|
|
11
|
-
"description": "Branded ContactId",
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
14
|
-
"status": {
|
|
15
|
-
"const": "pending",
|
|
16
|
-
"type": "string"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"additionalProperties": false,
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": [
|
|
5
|
-
"contacts"
|
|
6
|
-
],
|
|
7
|
-
"properties": {
|
|
8
|
-
"contacts": {
|
|
9
|
-
"type": "array",
|
|
10
|
-
"items": {
|
|
11
|
-
"additionalProperties": false,
|
|
12
|
-
"type": "object",
|
|
13
|
-
"required": [
|
|
14
|
-
"id",
|
|
15
|
-
"requesterId",
|
|
16
|
-
"targetId",
|
|
17
|
-
"status",
|
|
18
|
-
"createdAt"
|
|
19
|
-
],
|
|
20
|
-
"properties": {
|
|
21
|
-
"id": {
|
|
22
|
-
"format": "uuid",
|
|
23
|
-
"description": "Branded ContactId",
|
|
24
|
-
"type": "string"
|
|
25
|
-
},
|
|
26
|
-
"requesterId": {
|
|
27
|
-
"format": "uuid",
|
|
28
|
-
"description": "Branded UserId",
|
|
29
|
-
"type": "string"
|
|
30
|
-
},
|
|
31
|
-
"targetId": {
|
|
32
|
-
"format": "uuid",
|
|
33
|
-
"description": "Branded UserId",
|
|
34
|
-
"type": "string"
|
|
35
|
-
},
|
|
36
|
-
"status": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"enum": [
|
|
39
|
-
"pending",
|
|
40
|
-
"accepted",
|
|
41
|
-
"blocked"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"createdAt": {
|
|
45
|
-
"format": "date-time",
|
|
46
|
-
"type": "string"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"additionalProperties": false,
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": [
|
|
5
|
-
"id",
|
|
6
|
-
"type",
|
|
7
|
-
"createdBy",
|
|
8
|
-
"createdAt",
|
|
9
|
-
"updatedAt"
|
|
10
|
-
],
|
|
11
|
-
"properties": {
|
|
12
|
-
"id": {
|
|
13
|
-
"format": "uuid",
|
|
14
|
-
"description": "Branded ConversationId",
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
"type": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"enum": [
|
|
20
|
-
"dm",
|
|
21
|
-
"group"
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"name": {
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
"createdBy": {
|
|
28
|
-
"additionalProperties": false,
|
|
29
|
-
"type": "object",
|
|
30
|
-
"required": [
|
|
31
|
-
"type",
|
|
32
|
-
"id"
|
|
33
|
-
],
|
|
34
|
-
"properties": {
|
|
35
|
-
"type": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"enum": [
|
|
38
|
-
"user",
|
|
39
|
-
"agent"
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
|
-
"id": {
|
|
43
|
-
"format": "uuid",
|
|
44
|
-
"type": "string"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"createdAt": {
|
|
49
|
-
"format": "date-time",
|
|
50
|
-
"type": "string"
|
|
51
|
-
},
|
|
52
|
-
"updatedAt": {
|
|
53
|
-
"format": "date-time",
|
|
54
|
-
"type": "string"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,129 +0,0 @@
|
|
|
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
|
-
}
|