@mhome/conversation-protocol 3.14.0 → 3.15.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/fixtures/talk/audio-upload-start.request.json +8 -0
- package/fixtures/talk/audio-upload-start.response.json +13 -0
- package/manifest/targets.v1.json +2 -2
- package/package.json +1 -1
- package/protocol.json +1 -1
- package/schema/pod-talk.v1.schema.json +10 -23
- package/fixtures/talk/audio-upload-prepare.request.json +0 -11
- package/fixtures/talk/audio-upload-prepare.response.json +0 -12
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"target": "/pod/talk/audio/upload/start",
|
|
3
|
+
"direction": "response",
|
|
4
|
+
"body": {
|
|
5
|
+
"uploadId": "operation",
|
|
6
|
+
"url": "https://core.example/audio/upload",
|
|
7
|
+
"headers": {
|
|
8
|
+
"Content-Type": "application/octet-stream"
|
|
9
|
+
},
|
|
10
|
+
"expiresAtUnixMs": 1800000000000,
|
|
11
|
+
"maxSizeBytes": 960000
|
|
12
|
+
}
|
|
13
|
+
}
|
package/manifest/targets.v1.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest": "mhome.conversation.targets.v1",
|
|
3
|
-
"contractVersion": "3.
|
|
3
|
+
"contractVersion": "3.15.0",
|
|
4
4
|
"requestTargets": [
|
|
5
5
|
"/chat/control/get",
|
|
6
6
|
"/chat/thread/list",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"/pod/talk/request/cancel",
|
|
31
31
|
"/pod/talk/reply/read",
|
|
32
32
|
"/pod/talk/interaction/answer",
|
|
33
|
-
"/pod/talk/audio/upload/
|
|
33
|
+
"/pod/talk/audio/upload/start",
|
|
34
34
|
"/pod/talk/audio/transcribe",
|
|
35
35
|
"/pod/talk/speech/prepare",
|
|
36
36
|
"/pod/talk/media/resolve"
|
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -249,13 +249,13 @@
|
|
|
249
249
|
"additionalProperties": false,
|
|
250
250
|
"properties": {
|
|
251
251
|
"target": {
|
|
252
|
-
"const": "/pod/talk/audio/upload/
|
|
252
|
+
"const": "/pod/talk/audio/upload/start"
|
|
253
253
|
},
|
|
254
254
|
"direction": {
|
|
255
255
|
"const": "request"
|
|
256
256
|
},
|
|
257
257
|
"body": {
|
|
258
|
-
"$ref": "#/$defs/
|
|
258
|
+
"$ref": "#/$defs/audio_upload_start_input"
|
|
259
259
|
}
|
|
260
260
|
},
|
|
261
261
|
"required": [
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
"additionalProperties": false,
|
|
270
270
|
"properties": {
|
|
271
271
|
"target": {
|
|
272
|
-
"const": "/pod/talk/audio/upload/
|
|
272
|
+
"const": "/pod/talk/audio/upload/start"
|
|
273
273
|
},
|
|
274
274
|
"direction": {
|
|
275
275
|
"const": "response"
|
|
@@ -1011,7 +1011,8 @@
|
|
|
1011
1011
|
"uploadId",
|
|
1012
1012
|
"url",
|
|
1013
1013
|
"headers",
|
|
1014
|
-
"expiresAtUnixMs"
|
|
1014
|
+
"expiresAtUnixMs",
|
|
1015
|
+
"maxSizeBytes"
|
|
1015
1016
|
],
|
|
1016
1017
|
"properties": {
|
|
1017
1018
|
"uploadId": {
|
|
@@ -1067,6 +1068,9 @@
|
|
|
1067
1068
|
}
|
|
1068
1069
|
}
|
|
1069
1070
|
}
|
|
1071
|
+
},
|
|
1072
|
+
"maxSizeBytes": {
|
|
1073
|
+
"const": 960000
|
|
1070
1074
|
}
|
|
1071
1075
|
}
|
|
1072
1076
|
},
|
|
@@ -1511,7 +1515,7 @@
|
|
|
1511
1515
|
"occurredAtUnixMs"
|
|
1512
1516
|
]
|
|
1513
1517
|
},
|
|
1514
|
-
"
|
|
1518
|
+
"audio_upload_start_input": {
|
|
1515
1519
|
"type": "object",
|
|
1516
1520
|
"additionalProperties": false,
|
|
1517
1521
|
"properties": {
|
|
@@ -1526,28 +1530,11 @@
|
|
|
1526
1530
|
"minLength": 1,
|
|
1527
1531
|
"maxLength": 256,
|
|
1528
1532
|
"pattern": "^[^\\u0000-\\u001f\\u007f]+$"
|
|
1529
|
-
},
|
|
1530
|
-
"sizeBytes": {
|
|
1531
|
-
"type": "integer",
|
|
1532
|
-
"minimum": 9644,
|
|
1533
|
-
"maximum": 960044
|
|
1534
|
-
},
|
|
1535
|
-
"durationMs": {
|
|
1536
|
-
"type": "integer",
|
|
1537
|
-
"minimum": 300,
|
|
1538
|
-
"maximum": 30000
|
|
1539
|
-
},
|
|
1540
|
-
"sha256": {
|
|
1541
|
-
"type": "string",
|
|
1542
|
-
"pattern": "^[a-f0-9]{64}$"
|
|
1543
1533
|
}
|
|
1544
1534
|
},
|
|
1545
1535
|
"required": [
|
|
1546
1536
|
"ownerId",
|
|
1547
|
-
"operationId"
|
|
1548
|
-
"sizeBytes",
|
|
1549
|
-
"durationMs",
|
|
1550
|
-
"sha256"
|
|
1537
|
+
"operationId"
|
|
1551
1538
|
]
|
|
1552
1539
|
},
|
|
1553
1540
|
"audio_transcribe_input": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"target": "/pod/talk/audio/upload/prepare",
|
|
3
|
-
"direction": "request",
|
|
4
|
-
"body": {
|
|
5
|
-
"ownerId": "core:one",
|
|
6
|
-
"operationId": "operation",
|
|
7
|
-
"sizeBytes": 32044,
|
|
8
|
-
"durationMs": 1000,
|
|
9
|
-
"sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
|
10
|
-
}
|
|
11
|
-
}
|