@moltzap/protocol 0.1.0 → 0.2.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 +32 -0
- package/dist/schema/methods/auth.d.ts.map +1 -1
- package/dist/schema/methods/auth.js +25 -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 +6 -0
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +3 -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,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"additionalProperties": false,
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": [
|
|
5
|
-
"participant",
|
|
6
|
-
"status"
|
|
7
|
-
],
|
|
8
|
-
"properties": {
|
|
9
|
-
"participant": {
|
|
10
|
-
"additionalProperties": false,
|
|
11
|
-
"type": "object",
|
|
12
|
-
"required": [
|
|
13
|
-
"type",
|
|
14
|
-
"id"
|
|
15
|
-
],
|
|
16
|
-
"properties": {
|
|
17
|
-
"type": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"enum": [
|
|
20
|
-
"user",
|
|
21
|
-
"agent"
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"id": {
|
|
25
|
-
"format": "uuid",
|
|
26
|
-
"type": "string"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"status": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"enum": [
|
|
33
|
-
"online",
|
|
34
|
-
"offline",
|
|
35
|
-
"away"
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"additionalProperties": false,
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": [
|
|
5
|
-
"participant",
|
|
6
|
-
"status"
|
|
7
|
-
],
|
|
8
|
-
"properties": {
|
|
9
|
-
"participant": {
|
|
10
|
-
"additionalProperties": false,
|
|
11
|
-
"type": "object",
|
|
12
|
-
"required": [
|
|
13
|
-
"type",
|
|
14
|
-
"id"
|
|
15
|
-
],
|
|
16
|
-
"properties": {
|
|
17
|
-
"type": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"enum": [
|
|
20
|
-
"user",
|
|
21
|
-
"agent"
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"id": {
|
|
25
|
-
"format": "uuid",
|
|
26
|
-
"type": "string"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"status": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"enum": [
|
|
33
|
-
"online",
|
|
34
|
-
"offline",
|
|
35
|
-
"away"
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"additionalProperties": false,
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": [
|
|
5
|
-
"participants"
|
|
6
|
-
],
|
|
7
|
-
"properties": {
|
|
8
|
-
"participants": {
|
|
9
|
-
"type": "array",
|
|
10
|
-
"items": {
|
|
11
|
-
"additionalProperties": false,
|
|
12
|
-
"type": "object",
|
|
13
|
-
"required": [
|
|
14
|
-
"type",
|
|
15
|
-
"id"
|
|
16
|
-
],
|
|
17
|
-
"properties": {
|
|
18
|
-
"type": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"enum": [
|
|
21
|
-
"user",
|
|
22
|
-
"agent"
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
"id": {
|
|
26
|
-
"format": "uuid",
|
|
27
|
-
"type": "string"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"additionalProperties": false,
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": [
|
|
5
|
-
"statuses"
|
|
6
|
-
],
|
|
7
|
-
"properties": {
|
|
8
|
-
"statuses": {
|
|
9
|
-
"type": "array",
|
|
10
|
-
"items": {
|
|
11
|
-
"additionalProperties": false,
|
|
12
|
-
"type": "object",
|
|
13
|
-
"required": [
|
|
14
|
-
"participant",
|
|
15
|
-
"status"
|
|
16
|
-
],
|
|
17
|
-
"properties": {
|
|
18
|
-
"participant": {
|
|
19
|
-
"additionalProperties": false,
|
|
20
|
-
"type": "object",
|
|
21
|
-
"required": [
|
|
22
|
-
"type",
|
|
23
|
-
"id"
|
|
24
|
-
],
|
|
25
|
-
"properties": {
|
|
26
|
-
"type": {
|
|
27
|
-
"type": "string",
|
|
28
|
-
"enum": [
|
|
29
|
-
"user",
|
|
30
|
-
"agent"
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
"id": {
|
|
34
|
-
"format": "uuid",
|
|
35
|
-
"type": "string"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"status": {
|
|
40
|
-
"type": "string",
|
|
41
|
-
"enum": [
|
|
42
|
-
"online",
|
|
43
|
-
"offline",
|
|
44
|
-
"away"
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"additionalProperties": false,
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": [
|
|
5
|
-
"messagesPerMinute",
|
|
6
|
-
"requestsPerMinute"
|
|
7
|
-
],
|
|
8
|
-
"properties": {
|
|
9
|
-
"messagesPerMinute": {
|
|
10
|
-
"type": "integer"
|
|
11
|
-
},
|
|
12
|
-
"requestsPerMinute": {
|
|
13
|
-
"type": "integer"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"additionalProperties": false,
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": [
|
|
5
|
-
"name"
|
|
6
|
-
],
|
|
7
|
-
"properties": {
|
|
8
|
-
"name": {
|
|
9
|
-
"pattern": "^[a-z0-9][a-z0-9_-]{1,30}[a-z0-9]$",
|
|
10
|
-
"type": "string"
|
|
11
|
-
},
|
|
12
|
-
"description": {
|
|
13
|
-
"maxLength": 500,
|
|
14
|
-
"type": "string"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"additionalProperties": false,
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": [
|
|
5
|
-
"agentId",
|
|
6
|
-
"apiKey",
|
|
7
|
-
"claimUrl",
|
|
8
|
-
"claimToken"
|
|
9
|
-
],
|
|
10
|
-
"properties": {
|
|
11
|
-
"agentId": {
|
|
12
|
-
"format": "uuid",
|
|
13
|
-
"description": "Branded AgentId",
|
|
14
|
-
"type": "string"
|
|
15
|
-
},
|
|
16
|
-
"apiKey": {
|
|
17
|
-
"type": "string"
|
|
18
|
-
},
|
|
19
|
-
"claimUrl": {
|
|
20
|
-
"format": "uri",
|
|
21
|
-
"type": "string"
|
|
22
|
-
},
|
|
23
|
-
"claimToken": {
|
|
24
|
-
"type": "string"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"additionalProperties": false,
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": [
|
|
5
|
-
"jsonrpc",
|
|
6
|
-
"type",
|
|
7
|
-
"id",
|
|
8
|
-
"method"
|
|
9
|
-
],
|
|
10
|
-
"properties": {
|
|
11
|
-
"jsonrpc": {
|
|
12
|
-
"const": "2.0",
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
"type": {
|
|
16
|
-
"const": "request",
|
|
17
|
-
"type": "string"
|
|
18
|
-
},
|
|
19
|
-
"id": {
|
|
20
|
-
"type": "string"
|
|
21
|
-
},
|
|
22
|
-
"method": {
|
|
23
|
-
"type": "string"
|
|
24
|
-
},
|
|
25
|
-
"params": {}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"additionalProperties": false,
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": [
|
|
5
|
-
"jsonrpc",
|
|
6
|
-
"type",
|
|
7
|
-
"id"
|
|
8
|
-
],
|
|
9
|
-
"properties": {
|
|
10
|
-
"jsonrpc": {
|
|
11
|
-
"const": "2.0",
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
14
|
-
"type": {
|
|
15
|
-
"const": "response",
|
|
16
|
-
"type": "string"
|
|
17
|
-
},
|
|
18
|
-
"id": {
|
|
19
|
-
"type": "string"
|
|
20
|
-
},
|
|
21
|
-
"result": {},
|
|
22
|
-
"error": {
|
|
23
|
-
"additionalProperties": false,
|
|
24
|
-
"type": "object",
|
|
25
|
-
"required": [
|
|
26
|
-
"code",
|
|
27
|
-
"message"
|
|
28
|
-
],
|
|
29
|
-
"properties": {
|
|
30
|
-
"code": {
|
|
31
|
-
"type": "integer"
|
|
32
|
-
},
|
|
33
|
-
"message": {
|
|
34
|
-
"type": "string"
|
|
35
|
-
},
|
|
36
|
-
"data": {}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"additionalProperties": false,
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": [
|
|
5
|
-
"type",
|
|
6
|
-
"text"
|
|
7
|
-
],
|
|
8
|
-
"properties": {
|
|
9
|
-
"type": {
|
|
10
|
-
"const": "text",
|
|
11
|
-
"type": "string"
|
|
12
|
-
},
|
|
13
|
-
"text": {
|
|
14
|
-
"minLength": 1,
|
|
15
|
-
"maxLength": 32768,
|
|
16
|
-
"type": "string"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -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,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
|
-
}
|
package/dist/schemas/User.json
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"additionalProperties": false,
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": [
|
|
5
|
-
"id",
|
|
6
|
-
"displayName",
|
|
7
|
-
"status",
|
|
8
|
-
"createdAt"
|
|
9
|
-
],
|
|
10
|
-
"properties": {
|
|
11
|
-
"id": {
|
|
12
|
-
"format": "uuid",
|
|
13
|
-
"description": "Branded UserId",
|
|
14
|
-
"type": "string"
|
|
15
|
-
},
|
|
16
|
-
"email": {
|
|
17
|
-
"format": "email",
|
|
18
|
-
"type": "string"
|
|
19
|
-
},
|
|
20
|
-
"phone": {
|
|
21
|
-
"type": "string"
|
|
22
|
-
},
|
|
23
|
-
"displayName": {
|
|
24
|
-
"minLength": 1,
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
"avatarUrl": {
|
|
28
|
-
"format": "uri",
|
|
29
|
-
"type": "string"
|
|
30
|
-
},
|
|
31
|
-
"status": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"enum": [
|
|
34
|
-
"active",
|
|
35
|
-
"deactivated"
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
"createdAt": {
|
|
39
|
-
"format": "date-time",
|
|
40
|
-
"type": "string"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|