@clowder-ai/plugin-contract 0.1.0-beta.27 → 0.1.0-beta.29
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/codegen/generate-contract.d.ts.map +1 -1
- package/dist/codegen/generate-contract.js +73 -1
- package/dist/codegen/generate-contract.js.map +1 -1
- package/dist/generated/contract.generated.d.ts +177 -5
- package/dist/generated/contract.generated.d.ts.map +1 -1
- package/dist/generated/contract.generated.js.map +1 -1
- package/dist/validation/companion-bridge.d.ts.map +1 -1
- package/dist/validation/companion-bridge.js +37 -1
- package/dist/validation/companion-bridge.js.map +1 -1
- package/package.json +1 -1
- package/src/schemas/companion-bridge.schema.json +508 -4
- package/src/schemas/manifest.schema.json +1 -1
|
@@ -16,6 +16,16 @@
|
|
|
16
16
|
"type": "string",
|
|
17
17
|
"format": "uuid"
|
|
18
18
|
},
|
|
19
|
+
"CompanionAppAssistRef": {
|
|
20
|
+
"description": "Opaque Host-issued reference bound to one current application-assistance page scope or offer. It is correlation data, not authority.",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"maxLength": 200,
|
|
24
|
+
"pattern": "^[A-Za-z0-9_-]+$"
|
|
25
|
+
},
|
|
26
|
+
"CompanionAppAssistAction": {
|
|
27
|
+
"enum": ["dismiss", "timeout", "accept"]
|
|
28
|
+
},
|
|
19
29
|
"CompanionCorrelatableId": {
|
|
20
30
|
"description": "A bounded single-line opaque identity issued by the Host or its current provider session.",
|
|
21
31
|
"type": "string",
|
|
@@ -23,6 +33,20 @@
|
|
|
23
33
|
"maxLength": 256,
|
|
24
34
|
"pattern": "^[^\\s\\u2028\\u2029]+$"
|
|
25
35
|
},
|
|
36
|
+
"CompanionOpaqueReadReference": {
|
|
37
|
+
"description": "A bounded opaque continuation issued by the Host for this bound conversation. The renderer can only return it to the matching read command.",
|
|
38
|
+
"type": "string",
|
|
39
|
+
"minLength": 1,
|
|
40
|
+
"maxLength": 2048,
|
|
41
|
+
"pattern": "^[^\\s\\u2028\\u2029]+$"
|
|
42
|
+
},
|
|
43
|
+
"CompanionConversationScopeRef": {
|
|
44
|
+
"description": "Stable opaque owner + canonical conversation fingerprint derived by the Host. It fences thread-local revisions but is not an authorization token.",
|
|
45
|
+
"type": "string",
|
|
46
|
+
"minLength": 1,
|
|
47
|
+
"maxLength": 256,
|
|
48
|
+
"pattern": "^[^\\s\\u2028\\u2029]+$"
|
|
49
|
+
},
|
|
26
50
|
"CompanionPresentationReference": {
|
|
27
51
|
"description": "One Host-correlatable identity already present on the current call. The renderer cannot register or select a session with this reference.",
|
|
28
52
|
"oneOf": [
|
|
@@ -103,6 +127,19 @@
|
|
|
103
127
|
],
|
|
104
128
|
"additionalProperties": false
|
|
105
129
|
},
|
|
130
|
+
{
|
|
131
|
+
"type": "object",
|
|
132
|
+
"properties": {
|
|
133
|
+
"kind": { "const": "text" },
|
|
134
|
+
"v": { "const": 2 },
|
|
135
|
+
"scopeRef": { "$ref": "#/$defs/CompanionConversationScopeRef" },
|
|
136
|
+
"text": { "type": "string", "minLength": 1, "maxLength": 8000 },
|
|
137
|
+
"clientMessageId": { "$ref": "#/$defs/CompanionClientMessageId" },
|
|
138
|
+
"submissionRevision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
|
|
139
|
+
},
|
|
140
|
+
"required": ["kind", "v", "scopeRef", "text", "clientMessageId", "submissionRevision"],
|
|
141
|
+
"additionalProperties": false
|
|
142
|
+
},
|
|
106
143
|
{
|
|
107
144
|
"type": "object",
|
|
108
145
|
"properties": {
|
|
@@ -408,7 +445,8 @@
|
|
|
408
445
|
"chat",
|
|
409
446
|
"decisions",
|
|
410
447
|
"transcript",
|
|
411
|
-
"settings"
|
|
448
|
+
"settings",
|
|
449
|
+
"app-assist"
|
|
412
450
|
]
|
|
413
451
|
},
|
|
414
452
|
"width": {
|
|
@@ -420,6 +458,41 @@
|
|
|
420
458
|
"type": "integer",
|
|
421
459
|
"minimum": 32,
|
|
422
460
|
"maximum": 500
|
|
461
|
+
},
|
|
462
|
+
"call": {
|
|
463
|
+
"type": "object",
|
|
464
|
+
"properties": {
|
|
465
|
+
"presentation": {
|
|
466
|
+
"enum": [
|
|
467
|
+
"lite",
|
|
468
|
+
"controls"
|
|
469
|
+
]
|
|
470
|
+
},
|
|
471
|
+
"bubble": {
|
|
472
|
+
"type": "object",
|
|
473
|
+
"properties": {
|
|
474
|
+
"width": {
|
|
475
|
+
"type": "integer",
|
|
476
|
+
"minimum": 120,
|
|
477
|
+
"maximum": 420
|
|
478
|
+
},
|
|
479
|
+
"height": {
|
|
480
|
+
"type": "integer",
|
|
481
|
+
"minimum": 32,
|
|
482
|
+
"maximum": 500
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
"required": [
|
|
486
|
+
"width",
|
|
487
|
+
"height"
|
|
488
|
+
],
|
|
489
|
+
"additionalProperties": false
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
"required": [
|
|
493
|
+
"presentation"
|
|
494
|
+
],
|
|
495
|
+
"additionalProperties": false
|
|
423
496
|
}
|
|
424
497
|
},
|
|
425
498
|
"required": [
|
|
@@ -547,6 +620,27 @@
|
|
|
547
620
|
"required": ["kind", "field", "value"],
|
|
548
621
|
"additionalProperties": false
|
|
549
622
|
},
|
|
623
|
+
{
|
|
624
|
+
"type": "object",
|
|
625
|
+
"properties": {
|
|
626
|
+
"kind": { "const": "settings.update" },
|
|
627
|
+
"field": { "const": "appAssistEnabled" },
|
|
628
|
+
"value": { "type": "boolean" }
|
|
629
|
+
},
|
|
630
|
+
"required": ["kind", "field", "value"],
|
|
631
|
+
"additionalProperties": false
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"type": "object",
|
|
635
|
+
"properties": {
|
|
636
|
+
"kind": { "const": "app-assist.settle" },
|
|
637
|
+
"scopeRef": { "$ref": "#/$defs/CompanionAppAssistRef" },
|
|
638
|
+
"offerRef": { "$ref": "#/$defs/CompanionAppAssistRef" },
|
|
639
|
+
"action": { "$ref": "#/$defs/CompanionAppAssistAction" }
|
|
640
|
+
},
|
|
641
|
+
"required": ["kind", "scopeRef", "offerRef", "action"],
|
|
642
|
+
"additionalProperties": false
|
|
643
|
+
},
|
|
550
644
|
{
|
|
551
645
|
"type": "object",
|
|
552
646
|
"properties": {
|
|
@@ -567,6 +661,59 @@
|
|
|
567
661
|
],
|
|
568
662
|
"additionalProperties": false
|
|
569
663
|
},
|
|
664
|
+
{
|
|
665
|
+
"type": "object",
|
|
666
|
+
"properties": {
|
|
667
|
+
"kind": { "const": "conversation.read" },
|
|
668
|
+
"v": { "const": 2 },
|
|
669
|
+
"before": { "$ref": "#/$defs/CompanionOpaqueReadReference" },
|
|
670
|
+
"limit": { "type": "integer", "minimum": 1, "maximum": 32 }
|
|
671
|
+
},
|
|
672
|
+
"required": ["kind", "v"],
|
|
673
|
+
"additionalProperties": false
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"type": "object",
|
|
677
|
+
"properties": {
|
|
678
|
+
"kind": { "const": "conversation.body.read" },
|
|
679
|
+
"v": { "const": 2 },
|
|
680
|
+
"continuation": { "$ref": "#/$defs/CompanionOpaqueReadReference" }
|
|
681
|
+
},
|
|
682
|
+
"required": ["kind", "v", "continuation"],
|
|
683
|
+
"additionalProperties": false
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"type": "object",
|
|
687
|
+
"properties": {
|
|
688
|
+
"kind": { "const": "conversation.draft.read" },
|
|
689
|
+
"v": { "const": 1 }
|
|
690
|
+
},
|
|
691
|
+
"required": ["kind", "v"],
|
|
692
|
+
"additionalProperties": false
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"type": "object",
|
|
696
|
+
"properties": {
|
|
697
|
+
"kind": { "const": "conversation.draft.save" },
|
|
698
|
+
"v": { "const": 1 },
|
|
699
|
+
"scopeRef": { "$ref": "#/$defs/CompanionConversationScopeRef" },
|
|
700
|
+
"expectedRevision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
701
|
+
"text": { "type": "string", "maxLength": 8000 }
|
|
702
|
+
},
|
|
703
|
+
"required": ["kind", "v", "scopeRef", "expectedRevision", "text"],
|
|
704
|
+
"additionalProperties": false
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"type": "object",
|
|
708
|
+
"properties": {
|
|
709
|
+
"kind": { "const": "conversation.delivery.read" },
|
|
710
|
+
"v": { "const": 1 },
|
|
711
|
+
"scopeRef": { "$ref": "#/$defs/CompanionConversationScopeRef" },
|
|
712
|
+
"clientMessageId": { "$ref": "#/$defs/CompanionClientMessageId" }
|
|
713
|
+
},
|
|
714
|
+
"required": ["kind", "v", "scopeRef", "clientMessageId"],
|
|
715
|
+
"additionalProperties": false
|
|
716
|
+
},
|
|
570
717
|
{
|
|
571
718
|
"type": "object",
|
|
572
719
|
"properties": {
|
|
@@ -849,6 +996,85 @@
|
|
|
849
996
|
}
|
|
850
997
|
]
|
|
851
998
|
},
|
|
999
|
+
"CompanionAppAssistState": {
|
|
1000
|
+
"type": "object",
|
|
1001
|
+
"properties": {
|
|
1002
|
+
"scopeRef": { "$ref": "#/$defs/CompanionAppAssistRef" },
|
|
1003
|
+
"revision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
1004
|
+
"status": {
|
|
1005
|
+
"enum": [
|
|
1006
|
+
"off",
|
|
1007
|
+
"ready",
|
|
1008
|
+
"suspended",
|
|
1009
|
+
"unsupported",
|
|
1010
|
+
"source_unavailable",
|
|
1011
|
+
"permission_required",
|
|
1012
|
+
"timezone_required",
|
|
1013
|
+
"identity_unavailable"
|
|
1014
|
+
]
|
|
1015
|
+
},
|
|
1016
|
+
"offer": {
|
|
1017
|
+
"oneOf": [
|
|
1018
|
+
{ "type": "null" },
|
|
1019
|
+
{
|
|
1020
|
+
"type": "object",
|
|
1021
|
+
"properties": {
|
|
1022
|
+
"offerRef": { "$ref": "#/$defs/CompanionAppAssistRef" },
|
|
1023
|
+
"appName": {
|
|
1024
|
+
"type": "string",
|
|
1025
|
+
"minLength": 1,
|
|
1026
|
+
"maxLength": 128,
|
|
1027
|
+
"pattern": "^(?=.*\\S)[^\\u0000-\\u001F\\u007F-\\u009F\\u061C\\u200E\\u200F\\u2028-\\u202E\\u2066-\\u2069]+$"
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
"required": ["offerRef", "appName"],
|
|
1031
|
+
"additionalProperties": false
|
|
1032
|
+
}
|
|
1033
|
+
]
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
1036
|
+
"required": ["scopeRef", "revision", "status", "offer"],
|
|
1037
|
+
"additionalProperties": false,
|
|
1038
|
+
"oneOf": [
|
|
1039
|
+
{
|
|
1040
|
+
"properties": {
|
|
1041
|
+
"status": { "const": "ready" },
|
|
1042
|
+
"offer": {}
|
|
1043
|
+
},
|
|
1044
|
+
"required": ["status", "offer"]
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"properties": {
|
|
1048
|
+
"status": {
|
|
1049
|
+
"enum": [
|
|
1050
|
+
"off",
|
|
1051
|
+
"suspended",
|
|
1052
|
+
"unsupported",
|
|
1053
|
+
"source_unavailable",
|
|
1054
|
+
"permission_required",
|
|
1055
|
+
"timezone_required",
|
|
1056
|
+
"identity_unavailable"
|
|
1057
|
+
]
|
|
1058
|
+
},
|
|
1059
|
+
"offer": { "const": null }
|
|
1060
|
+
},
|
|
1061
|
+
"required": ["status", "offer"]
|
|
1062
|
+
}
|
|
1063
|
+
]
|
|
1064
|
+
},
|
|
1065
|
+
"CompanionAppAssistSettlement": {
|
|
1066
|
+
"type": "object",
|
|
1067
|
+
"properties": {
|
|
1068
|
+
"kind": { "const": "app-assist-settlement" },
|
|
1069
|
+
"scopeRef": { "$ref": "#/$defs/CompanionAppAssistRef" },
|
|
1070
|
+
"revision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
1071
|
+
"offerRef": { "$ref": "#/$defs/CompanionAppAssistRef" },
|
|
1072
|
+
"action": { "$ref": "#/$defs/CompanionAppAssistAction" },
|
|
1073
|
+
"outcome": { "enum": ["settled", "stale_offer"] }
|
|
1074
|
+
},
|
|
1075
|
+
"required": ["kind", "scopeRef", "revision", "offerRef", "action", "outcome"],
|
|
1076
|
+
"additionalProperties": false
|
|
1077
|
+
},
|
|
852
1078
|
"CompanionState": {
|
|
853
1079
|
"type": "object",
|
|
854
1080
|
"properties": {
|
|
@@ -903,6 +1129,9 @@
|
|
|
903
1129
|
"meeting": {
|
|
904
1130
|
"$ref": "#/$defs/CompanionMeetingState"
|
|
905
1131
|
},
|
|
1132
|
+
"appAssist": {
|
|
1133
|
+
"$ref": "#/$defs/CompanionAppAssistState"
|
|
1134
|
+
},
|
|
906
1135
|
"nativeWork": {
|
|
907
1136
|
"$ref": "#/$defs/CompanionNativeWork"
|
|
908
1137
|
}
|
|
@@ -920,6 +1149,7 @@
|
|
|
920
1149
|
"nativeActivity",
|
|
921
1150
|
"liveTransport",
|
|
922
1151
|
"meeting",
|
|
1152
|
+
"appAssist",
|
|
923
1153
|
"nativeWork"
|
|
924
1154
|
],
|
|
925
1155
|
"additionalProperties": false
|
|
@@ -1117,7 +1347,8 @@
|
|
|
1117
1347
|
"behaviorEnabled",
|
|
1118
1348
|
"proactivePolicy",
|
|
1119
1349
|
"personaTone",
|
|
1120
|
-
"householdReadsAllowed"
|
|
1350
|
+
"householdReadsAllowed",
|
|
1351
|
+
"appAssistEnabled"
|
|
1121
1352
|
]
|
|
1122
1353
|
},
|
|
1123
1354
|
"CompanionSettingsValues": {
|
|
@@ -1129,7 +1360,8 @@
|
|
|
1129
1360
|
"behaviorEnabled": { "type": "boolean" },
|
|
1130
1361
|
"proactivePolicy": { "enum": ["ambient", "quiet-badge"] },
|
|
1131
1362
|
"personaTone": { "type": "string", "minLength": 1, "maxLength": 200, "pattern": "^[^\\r\\n]+$" },
|
|
1132
|
-
"householdReadsAllowed": { "type": "boolean" }
|
|
1363
|
+
"householdReadsAllowed": { "type": "boolean" },
|
|
1364
|
+
"appAssistEnabled": { "type": "boolean" }
|
|
1133
1365
|
},
|
|
1134
1366
|
"required": [
|
|
1135
1367
|
"dutyCatProfileId",
|
|
@@ -1138,7 +1370,8 @@
|
|
|
1138
1370
|
"behaviorEnabled",
|
|
1139
1371
|
"proactivePolicy",
|
|
1140
1372
|
"personaTone",
|
|
1141
|
-
"householdReadsAllowed"
|
|
1373
|
+
"householdReadsAllowed",
|
|
1374
|
+
"appAssistEnabled"
|
|
1142
1375
|
],
|
|
1143
1376
|
"additionalProperties": false
|
|
1144
1377
|
},
|
|
@@ -1336,6 +1569,234 @@
|
|
|
1336
1569
|
}
|
|
1337
1570
|
]
|
|
1338
1571
|
},
|
|
1572
|
+
"CompanionDeliveryAcceptedV2": {
|
|
1573
|
+
"type": "object",
|
|
1574
|
+
"properties": {
|
|
1575
|
+
"kind": { "const": "delivery" },
|
|
1576
|
+
"v": { "const": 2 },
|
|
1577
|
+
"delivery": { "const": "accepted" },
|
|
1578
|
+
"clientMessageId": { "$ref": "#/$defs/CompanionClientMessageId" },
|
|
1579
|
+
"messageId": { "$ref": "#/$defs/CompanionCorrelatableId" },
|
|
1580
|
+
"callId": {
|
|
1581
|
+
"oneOf": [
|
|
1582
|
+
{ "$ref": "#/$defs/CompanionCallId" },
|
|
1583
|
+
{ "type": "null" }
|
|
1584
|
+
]
|
|
1585
|
+
}
|
|
1586
|
+
},
|
|
1587
|
+
"required": ["kind", "v", "delivery", "clientMessageId", "messageId", "callId"],
|
|
1588
|
+
"additionalProperties": false
|
|
1589
|
+
},
|
|
1590
|
+
"CompanionDeliveryUnconfirmedV2": {
|
|
1591
|
+
"type": "object",
|
|
1592
|
+
"properties": {
|
|
1593
|
+
"kind": { "const": "delivery" },
|
|
1594
|
+
"v": { "const": 2 },
|
|
1595
|
+
"delivery": { "const": "unconfirmed" },
|
|
1596
|
+
"clientMessageId": { "$ref": "#/$defs/CompanionClientMessageId" },
|
|
1597
|
+
"messageId": { "type": "null" },
|
|
1598
|
+
"callId": {
|
|
1599
|
+
"oneOf": [
|
|
1600
|
+
{ "$ref": "#/$defs/CompanionCallId" },
|
|
1601
|
+
{ "type": "null" }
|
|
1602
|
+
]
|
|
1603
|
+
}
|
|
1604
|
+
},
|
|
1605
|
+
"required": ["kind", "v", "delivery", "clientMessageId", "messageId", "callId"],
|
|
1606
|
+
"additionalProperties": false
|
|
1607
|
+
},
|
|
1608
|
+
"CompanionDeliveryRejectedV2": {
|
|
1609
|
+
"type": "object",
|
|
1610
|
+
"properties": {
|
|
1611
|
+
"kind": { "const": "delivery" },
|
|
1612
|
+
"v": { "const": 2 },
|
|
1613
|
+
"delivery": { "const": "rejected" },
|
|
1614
|
+
"clientMessageId": { "$ref": "#/$defs/CompanionClientMessageId" },
|
|
1615
|
+
"reason": { "enum": ["draft_changed", "unsupported_draft", "pending_limit"] },
|
|
1616
|
+
"draftRevision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
|
|
1617
|
+
},
|
|
1618
|
+
"required": ["kind", "v", "delivery", "clientMessageId", "reason", "draftRevision"],
|
|
1619
|
+
"additionalProperties": false
|
|
1620
|
+
},
|
|
1621
|
+
"CompanionDeliveryReceiptV2": {
|
|
1622
|
+
"oneOf": [
|
|
1623
|
+
{ "$ref": "#/$defs/CompanionDeliveryAcceptedV2" },
|
|
1624
|
+
{ "$ref": "#/$defs/CompanionDeliveryUnconfirmedV2" },
|
|
1625
|
+
{ "$ref": "#/$defs/CompanionDeliveryRejectedV2" }
|
|
1626
|
+
]
|
|
1627
|
+
},
|
|
1628
|
+
"CompanionConversationDraftSubmissionV1": {
|
|
1629
|
+
"type": "object",
|
|
1630
|
+
"properties": {
|
|
1631
|
+
"clientMessageId": { "$ref": "#/$defs/CompanionClientMessageId" },
|
|
1632
|
+
"text": { "type": "string", "minLength": 1, "maxLength": 8000 },
|
|
1633
|
+
"submissionRevision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
1634
|
+
"receipt": {
|
|
1635
|
+
"oneOf": [
|
|
1636
|
+
{ "$ref": "#/$defs/CompanionDeliveryAcceptedV2" },
|
|
1637
|
+
{ "$ref": "#/$defs/CompanionDeliveryUnconfirmedV2" }
|
|
1638
|
+
]
|
|
1639
|
+
}
|
|
1640
|
+
},
|
|
1641
|
+
"required": ["clientMessageId", "text", "submissionRevision", "receipt"],
|
|
1642
|
+
"additionalProperties": false
|
|
1643
|
+
},
|
|
1644
|
+
"CompanionConversationDraftV1": {
|
|
1645
|
+
"oneOf": [
|
|
1646
|
+
{
|
|
1647
|
+
"type": "object",
|
|
1648
|
+
"properties": {
|
|
1649
|
+
"kind": { "const": "conversation-draft" },
|
|
1650
|
+
"v": { "const": 1 },
|
|
1651
|
+
"status": { "const": "available" },
|
|
1652
|
+
"scopeRef": { "$ref": "#/$defs/CompanionConversationScopeRef" },
|
|
1653
|
+
"revision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
1654
|
+
"text": { "type": "string", "maxLength": 100000 },
|
|
1655
|
+
"writable": { "type": "boolean" },
|
|
1656
|
+
"submissions": {
|
|
1657
|
+
"type": "array",
|
|
1658
|
+
"maxItems": 32,
|
|
1659
|
+
"items": { "$ref": "#/$defs/CompanionConversationDraftSubmissionV1" }
|
|
1660
|
+
}
|
|
1661
|
+
},
|
|
1662
|
+
"required": ["kind", "v", "status", "scopeRef", "revision", "text", "writable", "submissions"],
|
|
1663
|
+
"additionalProperties": false
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
"type": "object",
|
|
1667
|
+
"properties": {
|
|
1668
|
+
"kind": { "const": "conversation-draft" },
|
|
1669
|
+
"v": { "const": 1 },
|
|
1670
|
+
"status": { "enum": ["conflict", "readonly"] },
|
|
1671
|
+
"revision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }
|
|
1672
|
+
},
|
|
1673
|
+
"required": ["kind", "v", "status", "revision"],
|
|
1674
|
+
"additionalProperties": false
|
|
1675
|
+
}
|
|
1676
|
+
]
|
|
1677
|
+
},
|
|
1678
|
+
"CompanionConversationResponsePhase": {
|
|
1679
|
+
"oneOf": [
|
|
1680
|
+
{ "enum": ["processing", "completed", "failed", "canceled", "interrupted"] },
|
|
1681
|
+
{ "type": "null" }
|
|
1682
|
+
]
|
|
1683
|
+
},
|
|
1684
|
+
"CompanionConversationBodyProjection": {
|
|
1685
|
+
"oneOf": [
|
|
1686
|
+
{
|
|
1687
|
+
"type": "object",
|
|
1688
|
+
"properties": {
|
|
1689
|
+
"revision": { "$ref": "#/$defs/CompanionCorrelatableId" },
|
|
1690
|
+
"complete": { "const": true },
|
|
1691
|
+
"continuation": { "type": "null" }
|
|
1692
|
+
},
|
|
1693
|
+
"required": ["revision", "complete", "continuation"],
|
|
1694
|
+
"additionalProperties": false
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
"type": "object",
|
|
1698
|
+
"properties": {
|
|
1699
|
+
"revision": { "$ref": "#/$defs/CompanionCorrelatableId" },
|
|
1700
|
+
"complete": { "const": false },
|
|
1701
|
+
"continuation": { "$ref": "#/$defs/CompanionOpaqueReadReference" }
|
|
1702
|
+
},
|
|
1703
|
+
"required": ["revision", "complete", "continuation"],
|
|
1704
|
+
"additionalProperties": false
|
|
1705
|
+
}
|
|
1706
|
+
]
|
|
1707
|
+
},
|
|
1708
|
+
"CompanionConversationRowV2": {
|
|
1709
|
+
"type": "object",
|
|
1710
|
+
"properties": {
|
|
1711
|
+
"id": { "$ref": "#/$defs/CompanionCorrelatableId" },
|
|
1712
|
+
"role": { "enum": ["user", "assistant"] },
|
|
1713
|
+
"name": { "type": "string", "maxLength": 256 },
|
|
1714
|
+
"text": { "type": "string", "maxLength": 16000 },
|
|
1715
|
+
"companionIdentity": { "$ref": "#/$defs/CompanionIdentitySnapshotV1" },
|
|
1716
|
+
"inputMessageIds": {
|
|
1717
|
+
"type": "array",
|
|
1718
|
+
"maxItems": 32,
|
|
1719
|
+
"uniqueItems": true,
|
|
1720
|
+
"items": { "$ref": "#/$defs/CompanionCorrelatableId" }
|
|
1721
|
+
},
|
|
1722
|
+
"responsePhase": { "$ref": "#/$defs/CompanionConversationResponsePhase" },
|
|
1723
|
+
"body": { "$ref": "#/$defs/CompanionConversationBodyProjection" },
|
|
1724
|
+
"deliveryReceipt": { "$ref": "#/$defs/CompanionDeliveryAcceptedV2" }
|
|
1725
|
+
},
|
|
1726
|
+
"required": ["id", "role", "name", "text", "inputMessageIds", "responsePhase", "body"],
|
|
1727
|
+
"additionalProperties": false
|
|
1728
|
+
},
|
|
1729
|
+
"CompanionConversationPageV2": {
|
|
1730
|
+
"oneOf": [
|
|
1731
|
+
{
|
|
1732
|
+
"type": "object",
|
|
1733
|
+
"properties": {
|
|
1734
|
+
"kind": { "const": "conversation" },
|
|
1735
|
+
"v": { "const": 2 },
|
|
1736
|
+
"status": { "const": "available" },
|
|
1737
|
+
"threadTitle": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
1738
|
+
"messages": {
|
|
1739
|
+
"type": "array",
|
|
1740
|
+
"maxItems": 32,
|
|
1741
|
+
"items": { "$ref": "#/$defs/CompanionConversationRowV2" }
|
|
1742
|
+
},
|
|
1743
|
+
"hasMoreOlder": { "type": "boolean" },
|
|
1744
|
+
"olderCursor": {
|
|
1745
|
+
"oneOf": [
|
|
1746
|
+
{ "$ref": "#/$defs/CompanionOpaqueReadReference" },
|
|
1747
|
+
{ "type": "null" }
|
|
1748
|
+
]
|
|
1749
|
+
}
|
|
1750
|
+
},
|
|
1751
|
+
"required": ["kind", "v", "status", "threadTitle", "messages", "hasMoreOlder", "olderCursor"],
|
|
1752
|
+
"additionalProperties": false,
|
|
1753
|
+
"allOf": [
|
|
1754
|
+
{
|
|
1755
|
+
"if": { "properties": { "hasMoreOlder": { "const": true } }, "required": ["hasMoreOlder"] },
|
|
1756
|
+
"then": { "properties": { "olderCursor": { "$ref": "#/$defs/CompanionOpaqueReadReference" } } },
|
|
1757
|
+
"else": { "properties": { "olderCursor": { "type": "null" } } }
|
|
1758
|
+
}
|
|
1759
|
+
]
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
"type": "object",
|
|
1763
|
+
"properties": {
|
|
1764
|
+
"kind": { "const": "conversation" },
|
|
1765
|
+
"v": { "const": 2 },
|
|
1766
|
+
"status": { "const": "stale" }
|
|
1767
|
+
},
|
|
1768
|
+
"required": ["kind", "v", "status"],
|
|
1769
|
+
"additionalProperties": false
|
|
1770
|
+
}
|
|
1771
|
+
]
|
|
1772
|
+
},
|
|
1773
|
+
"CompanionConversationBodyV2": {
|
|
1774
|
+
"oneOf": [
|
|
1775
|
+
{
|
|
1776
|
+
"type": "object",
|
|
1777
|
+
"properties": {
|
|
1778
|
+
"kind": { "const": "conversation-body" },
|
|
1779
|
+
"v": { "const": 2 },
|
|
1780
|
+
"status": { "const": "available" },
|
|
1781
|
+
"messageId": { "$ref": "#/$defs/CompanionCorrelatableId" },
|
|
1782
|
+
"text": { "type": "string", "maxLength": 16000 },
|
|
1783
|
+
"body": { "$ref": "#/$defs/CompanionConversationBodyProjection" }
|
|
1784
|
+
},
|
|
1785
|
+
"required": ["kind", "v", "status", "messageId", "text", "body"],
|
|
1786
|
+
"additionalProperties": false
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
"type": "object",
|
|
1790
|
+
"properties": {
|
|
1791
|
+
"kind": { "const": "conversation-body" },
|
|
1792
|
+
"v": { "const": 2 },
|
|
1793
|
+
"status": { "enum": ["stale", "withdrawn"] }
|
|
1794
|
+
},
|
|
1795
|
+
"required": ["kind", "v", "status"],
|
|
1796
|
+
"additionalProperties": false
|
|
1797
|
+
}
|
|
1798
|
+
]
|
|
1799
|
+
},
|
|
1339
1800
|
"CompanionErrorCode": {
|
|
1340
1801
|
"enum": [
|
|
1341
1802
|
"invalid_request",
|
|
@@ -1378,6 +1839,12 @@
|
|
|
1378
1839
|
{
|
|
1379
1840
|
"$ref": "#/$defs/CompanionDeliveryReceipt"
|
|
1380
1841
|
},
|
|
1842
|
+
{
|
|
1843
|
+
"$ref": "#/$defs/CompanionDeliveryReceiptV2"
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
"$ref": "#/$defs/CompanionConversationDraftV1"
|
|
1847
|
+
},
|
|
1381
1848
|
{
|
|
1382
1849
|
"$ref": "#/$defs/CompanionSettings"
|
|
1383
1850
|
},
|
|
@@ -1387,6 +1854,9 @@
|
|
|
1387
1854
|
{
|
|
1388
1855
|
"$ref": "#/$defs/CompanionLifecycleReceipt"
|
|
1389
1856
|
},
|
|
1857
|
+
{
|
|
1858
|
+
"$ref": "#/$defs/CompanionAppAssistSettlement"
|
|
1859
|
+
},
|
|
1390
1860
|
{
|
|
1391
1861
|
"type": "object",
|
|
1392
1862
|
"properties": {
|
|
@@ -1403,6 +1873,12 @@
|
|
|
1403
1873
|
],
|
|
1404
1874
|
"additionalProperties": false
|
|
1405
1875
|
},
|
|
1876
|
+
{
|
|
1877
|
+
"$ref": "#/$defs/CompanionConversationPageV2"
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
"$ref": "#/$defs/CompanionConversationBodyV2"
|
|
1881
|
+
},
|
|
1406
1882
|
{
|
|
1407
1883
|
"type": "object",
|
|
1408
1884
|
"properties": {
|
|
@@ -1492,6 +1968,34 @@
|
|
|
1492
1968
|
],
|
|
1493
1969
|
"additionalProperties": false
|
|
1494
1970
|
},
|
|
1971
|
+
"bubble": {
|
|
1972
|
+
"type": "object",
|
|
1973
|
+
"properties": {
|
|
1974
|
+
"x": {
|
|
1975
|
+
"type": "number"
|
|
1976
|
+
},
|
|
1977
|
+
"y": {
|
|
1978
|
+
"type": "number"
|
|
1979
|
+
},
|
|
1980
|
+
"width": {
|
|
1981
|
+
"type": "number",
|
|
1982
|
+
"minimum": 0,
|
|
1983
|
+
"maximum": 2000
|
|
1984
|
+
},
|
|
1985
|
+
"height": {
|
|
1986
|
+
"type": "number",
|
|
1987
|
+
"minimum": 0,
|
|
1988
|
+
"maximum": 2000
|
|
1989
|
+
}
|
|
1990
|
+
},
|
|
1991
|
+
"required": [
|
|
1992
|
+
"x",
|
|
1993
|
+
"y",
|
|
1994
|
+
"width",
|
|
1995
|
+
"height"
|
|
1996
|
+
],
|
|
1997
|
+
"additionalProperties": false
|
|
1998
|
+
},
|
|
1495
1999
|
"width": {
|
|
1496
2000
|
"type": "integer",
|
|
1497
2001
|
"minimum": 1,
|
|
@@ -485,7 +485,7 @@
|
|
|
485
485
|
"required": ["entrypoint", "integrity"],
|
|
486
486
|
"additionalProperties": false
|
|
487
487
|
},
|
|
488
|
-
"bridgeVersion": { "enum": ["1.0.0", "1.1.0", "1.2.0", "1.3.0", "1.4.0"] },
|
|
488
|
+
"bridgeVersion": { "enum": ["1.0.0", "1.1.0", "1.2.0", "1.3.0", "1.4.0", "1.5.0", "1.6.0"] },
|
|
489
489
|
"presentation": {
|
|
490
490
|
"type": "object",
|
|
491
491
|
"properties": {
|