@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.
Files changed (87) hide show
  1. package/dist/schema/conversations.d.ts +6 -0
  2. package/dist/schema/conversations.d.ts.map +1 -1
  3. package/dist/schema/conversations.js +3 -0
  4. package/dist/schema/conversations.js.map +1 -1
  5. package/dist/schema/identity.d.ts.map +1 -1
  6. package/dist/schema/identity.js +1 -0
  7. package/dist/schema/identity.js.map +1 -1
  8. package/dist/schema/methods/auth.d.ts +32 -0
  9. package/dist/schema/methods/auth.d.ts.map +1 -1
  10. package/dist/schema/methods/auth.js +25 -0
  11. package/dist/schema/methods/auth.js.map +1 -1
  12. package/dist/schema/methods/conversations.d.ts +6 -0
  13. package/dist/schema/methods/conversations.d.ts.map +1 -1
  14. package/dist/types.d.ts +1 -1
  15. package/dist/types.d.ts.map +1 -1
  16. package/dist/validators.d.ts +6 -0
  17. package/dist/validators.d.ts.map +1 -1
  18. package/dist/validators.js +3 -1
  19. package/dist/validators.js.map +1 -1
  20. package/package.json +9 -11
  21. package/dist/schemas/Agent.json +0 -46
  22. package/dist/schemas/Contact.json +0 -40
  23. package/dist/schemas/ContactAcceptedEvent.json +0 -49
  24. package/dist/schemas/ContactIdParams.json +0 -14
  25. package/dist/schemas/ContactRequestEvent.json +0 -49
  26. package/dist/schemas/ContactsAcceptParams.json +0 -14
  27. package/dist/schemas/ContactsAcceptResult.json +0 -49
  28. package/dist/schemas/ContactsAddParams.json +0 -18
  29. package/dist/schemas/ContactsAddResult.json +0 -19
  30. package/dist/schemas/ContactsListParams.json +0 -14
  31. package/dist/schemas/ContactsListResult.json +0 -52
  32. package/dist/schemas/Conversation.json +0 -57
  33. package/dist/schemas/ConversationCreatedEvent.json +0 -66
  34. package/dist/schemas/ConversationParticipant.json +0 -59
  35. package/dist/schemas/ConversationSummary.json +0 -37
  36. package/dist/schemas/ConversationUpdatedEvent.json +0 -66
  37. package/dist/schemas/ConversationsAddParticipantParams.json +0 -36
  38. package/dist/schemas/ConversationsCreateParams.json +0 -47
  39. package/dist/schemas/ConversationsCreateResult.json +0 -66
  40. package/dist/schemas/ConversationsGetParams.json +0 -14
  41. package/dist/schemas/ConversationsGetResult.json +0 -129
  42. package/dist/schemas/ConversationsLeaveParams.json +0 -14
  43. package/dist/schemas/ConversationsListParams.json +0 -14
  44. package/dist/schemas/ConversationsListResult.json +0 -52
  45. package/dist/schemas/ConversationsMuteParams.json +0 -18
  46. package/dist/schemas/ConversationsRemoveParticipantParams.json +0 -36
  47. package/dist/schemas/ConversationsUnmuteParams.json +0 -14
  48. package/dist/schemas/ConversationsUpdateParams.json +0 -19
  49. package/dist/schemas/DeliveryEntry.json +0 -59
  50. package/dist/schemas/EmptyResult.json +0 -5
  51. package/dist/schemas/EventFrame.json +0 -23
  52. package/dist/schemas/HelloOk.json +0 -118
  53. package/dist/schemas/Invite.json +0 -63
  54. package/dist/schemas/InvitesAcceptParams.json +0 -13
  55. package/dist/schemas/InvitesAcceptResult.json +0 -103
  56. package/dist/schemas/InvitesCreateParams.json +0 -18
  57. package/dist/schemas/InvitesCreateResult.json +0 -17
  58. package/dist/schemas/Message.json +0 -96
  59. package/dist/schemas/MessageDeletedEvent.json +0 -20
  60. package/dist/schemas/MessageDeliveredEvent.json +0 -42
  61. package/dist/schemas/MessageReactedEvent.json +0 -48
  62. package/dist/schemas/MessageReadEvent.json +0 -41
  63. package/dist/schemas/MessageReceivedEvent.json +0 -105
  64. package/dist/schemas/MessagesDeleteParams.json +0 -14
  65. package/dist/schemas/MessagesListParams.json +0 -27
  66. package/dist/schemas/MessagesListResult.json +0 -112
  67. package/dist/schemas/MessagesReactParams.json +0 -28
  68. package/dist/schemas/MessagesReadParams.json +0 -19
  69. package/dist/schemas/MessagesSendParams.json +0 -46
  70. package/dist/schemas/MessagesSendResult.json +0 -105
  71. package/dist/schemas/ParticipantRef.json +0 -21
  72. package/dist/schemas/Policy.json +0 -45
  73. package/dist/schemas/PresenceChangedEvent.json +0 -39
  74. package/dist/schemas/PresenceEntry.json +0 -39
  75. package/dist/schemas/PresenceSubscribeParams.json +0 -33
  76. package/dist/schemas/PresenceSubscribeResult.json +0 -51
  77. package/dist/schemas/PresenceUpdateParams.json +0 -17
  78. package/dist/schemas/RateLimits.json +0 -16
  79. package/dist/schemas/RegisterParams.json +0 -17
  80. package/dist/schemas/RegisterResult.json +0 -27
  81. package/dist/schemas/RequestFrame.json +0 -27
  82. package/dist/schemas/ResponseFrame.json +0 -40
  83. package/dist/schemas/RpcError.json +0 -17
  84. package/dist/schemas/TextPart.json +0 -19
  85. package/dist/schemas/TypingIndicator.json +0 -36
  86. package/dist/schemas/TypingIndicatorEvent.json +0 -36
  87. 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,17 +0,0 @@
1
- {
2
- "additionalProperties": false,
3
- "type": "object",
4
- "required": [
5
- "status"
6
- ],
7
- "properties": {
8
- "status": {
9
- "type": "string",
10
- "enum": [
11
- "online",
12
- "offline",
13
- "away"
14
- ]
15
- }
16
- }
17
- }
@@ -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,17 +0,0 @@
1
- {
2
- "additionalProperties": false,
3
- "type": "object",
4
- "required": [
5
- "code",
6
- "message"
7
- ],
8
- "properties": {
9
- "code": {
10
- "type": "integer"
11
- },
12
- "message": {
13
- "type": "string"
14
- },
15
- "data": {}
16
- }
17
- }
@@ -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
- }
@@ -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
- }