@mhome/conversation-protocol 3.9.2 → 3.11.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.
@@ -20,8 +20,12 @@
20
20
  "scope_id": "scope-1"
21
21
  },
22
22
  "actor": {
23
- "user_id": "user-1",
24
- "client_id": "client-1"
23
+ "principal": {
24
+ "kind": "user",
25
+ "userId": "user-1"
26
+ },
27
+ "client_id": "client-1",
28
+ "credential_id": null
25
29
  },
26
30
  "thread_id": "thread-1",
27
31
  "run_id": "run-1",
@@ -20,8 +20,12 @@
20
20
  "scope_id": "scope-1"
21
21
  },
22
22
  "actor": {
23
- "user_id": "user-1",
24
- "client_id": "client-1"
23
+ "principal": {
24
+ "kind": "user",
25
+ "userId": "user-1"
26
+ },
27
+ "client_id": "client-1",
28
+ "credential_id": null
25
29
  },
26
30
  "thread_id": "thread-1",
27
31
  "run_id": "run-1",
@@ -22,8 +22,12 @@
22
22
  "scope_id": "scope-1"
23
23
  },
24
24
  "actor": {
25
- "user_id": "user-1",
26
- "client_id": "client-1"
25
+ "principal": {
26
+ "kind": "user",
27
+ "userId": "user-1"
28
+ },
29
+ "client_id": "client-1",
30
+ "credential_id": null
27
31
  },
28
32
  "thread_id": "thread-1",
29
33
  "run_id": "run-1",
@@ -21,8 +21,12 @@
21
21
  "scope_id": "scope-1"
22
22
  },
23
23
  "actor": {
24
- "user_id": "user-1",
25
- "client_id": "client-1"
24
+ "principal": {
25
+ "kind": "user",
26
+ "userId": "user-1"
27
+ },
28
+ "client_id": "client-1",
29
+ "credential_id": null
26
30
  },
27
31
  "thread_id": "thread-1",
28
32
  "run_id": "run-1",
@@ -22,8 +22,12 @@
22
22
  "scope_id": "scope-1"
23
23
  },
24
24
  "actor": {
25
- "user_id": "user-1",
26
- "client_id": "client-1"
25
+ "principal": {
26
+ "kind": "user",
27
+ "userId": "user-1"
28
+ },
29
+ "client_id": "client-1",
30
+ "credential_id": null
27
31
  },
28
32
  "thread_id": "thread-1",
29
33
  "run_id": "run-1",
@@ -17,8 +17,18 @@
17
17
  "id": "event-1",
18
18
  "sequence": 2,
19
19
  "context": {
20
- "scope": { "tenant_id": "tenant-1", "scope_id": "scope-1" },
21
- "actor": { "user_id": "user-1", "client_id": "client-1" },
20
+ "scope": {
21
+ "tenant_id": "tenant-1",
22
+ "scope_id": "scope-1"
23
+ },
24
+ "actor": {
25
+ "principal": {
26
+ "kind": "user",
27
+ "userId": "user-1"
28
+ },
29
+ "client_id": "client-1",
30
+ "credential_id": null
31
+ },
22
32
  "thread_id": "thread-1",
23
33
  "run_id": "run-1",
24
34
  "operation_id": "operation-1",
@@ -42,7 +52,9 @@
42
52
  "proceedLabel": "Delete",
43
53
  "rejectLabel": "Cancel"
44
54
  },
45
- "payload": { "canvasId": "canvas-1" },
55
+ "payload": {
56
+ "canvasId": "canvas-1"
57
+ },
46
58
  "revision": 1,
47
59
  "approval": "when_interactive",
48
60
  "interaction_kind": "approval"
@@ -19,8 +19,12 @@
19
19
  "scope_id": "scope-1"
20
20
  },
21
21
  "actor": {
22
- "user_id": "user-1",
23
- "client_id": "client-1"
22
+ "principal": {
23
+ "kind": "user",
24
+ "userId": "user-1"
25
+ },
26
+ "client_id": "client-1",
27
+ "credential_id": null
24
28
  },
25
29
  "thread_id": "thread-1",
26
30
  "run_id": "run-1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.conversation.targets.v1",
3
- "contractVersion": "3.9.2",
3
+ "contractVersion": "3.11.0",
4
4
  "requestTargets": [
5
5
  "/chat/control/get",
6
6
  "/chat/thread/list",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mhome/conversation-protocol",
3
- "version": "3.9.2",
3
+ "version": "3.11.0",
4
4
  "description": "Build-time protocol artifacts for mhome.conversation",
5
5
  "license": "MIT",
6
6
  "repository": {
package/protocol.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "protocol": "mhome.conversation",
3
- "contractVersion": "3.9.2",
3
+ "contractVersion": "3.11.0",
4
4
  "manifest": "manifest/targets.v1.json",
5
5
  "schemas": {
6
6
  "frame": "schema/conversation-frame.v2.schema.json",
@@ -186,13 +186,11 @@
186
186
  "type": "object",
187
187
  "additionalProperties": false,
188
188
  "required": [
189
- "user_id",
190
- "client_id"
189
+ "principal",
190
+ "client_id",
191
+ "credential_id"
191
192
  ],
192
193
  "properties": {
193
- "user_id": {
194
- "$ref": "#/$defs/identifier"
195
- },
196
194
  "client_id": {
197
195
  "oneOf": [
198
196
  {
@@ -202,6 +200,19 @@
202
200
  "type": "null"
203
201
  }
204
202
  ]
203
+ },
204
+ "principal": {
205
+ "$ref": "#/$defs/client_principal"
206
+ },
207
+ "credential_id": {
208
+ "oneOf": [
209
+ {
210
+ "$ref": "#/$defs/identifier"
211
+ },
212
+ {
213
+ "type": "null"
214
+ }
215
+ ]
205
216
  }
206
217
  }
207
218
  },
@@ -310,7 +321,7 @@
310
321
  },
311
322
  "uri": {
312
323
  "type": "string",
313
- "pattern": "^meow-artifact://v2/"
324
+ "pattern": "^meow-artifact://v3/"
314
325
  }
315
326
  }
316
327
  },
@@ -1918,6 +1929,46 @@
1918
1929
  "$ref": "#/$defs/llm_generation_support"
1919
1930
  }
1920
1931
  }
1932
+ },
1933
+ "client_principal": {
1934
+ "oneOf": [
1935
+ {
1936
+ "type": "object",
1937
+ "additionalProperties": false,
1938
+ "required": [
1939
+ "kind",
1940
+ "userId"
1941
+ ],
1942
+ "properties": {
1943
+ "kind": {
1944
+ "const": "user"
1945
+ },
1946
+ "userId": {
1947
+ "$ref": "#/$defs/identifier"
1948
+ }
1949
+ }
1950
+ },
1951
+ {
1952
+ "type": "object",
1953
+ "additionalProperties": false,
1954
+ "required": [
1955
+ "kind",
1956
+ "tenantId",
1957
+ "scopeId"
1958
+ ],
1959
+ "properties": {
1960
+ "kind": {
1961
+ "const": "space"
1962
+ },
1963
+ "tenantId": {
1964
+ "$ref": "#/$defs/identifier"
1965
+ },
1966
+ "scopeId": {
1967
+ "$ref": "#/$defs/identifier"
1968
+ }
1969
+ }
1970
+ }
1971
+ ]
1921
1972
  }
1922
1973
  }
1923
1974
  }