@agent-phonon/protocol 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 (127) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +70 -0
  3. package/dist/index.d.ts +24 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.js +24 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/json-schema/_index.json +3794 -0
  8. package/dist/json-schema/connect.hello.json +117 -0
  9. package/dist/json-schema/discovery.changed.json +190 -0
  10. package/dist/json-schema/discovery.get.json +183 -0
  11. package/dist/json-schema/discovery.list.json +182 -0
  12. package/dist/json-schema/document.prepare_upload.json +96 -0
  13. package/dist/json-schema/document.send.json +165 -0
  14. package/dist/json-schema/hook.fired.json +100 -0
  15. package/dist/json-schema/hook.resolve.json +96 -0
  16. package/dist/json-schema/interaction.cancel.json +48 -0
  17. package/dist/json-schema/interaction.request.json +376 -0
  18. package/dist/json-schema/interaction.response.json +68 -0
  19. package/dist/json-schema/project.create.json +89 -0
  20. package/dist/json-schema/project.get.json +76 -0
  21. package/dist/json-schema/project.git.deleteBranch.json +64 -0
  22. package/dist/json-schema/project.list.json +72 -0
  23. package/dist/json-schema/project.remove.json +69 -0
  24. package/dist/json-schema/project.worktree.create.json +88 -0
  25. package/dist/json-schema/project.worktree.list.json +77 -0
  26. package/dist/json-schema/project.worktree.remove.json +61 -0
  27. package/dist/json-schema/session.compress.json +72 -0
  28. package/dist/json-schema/session.create.json +128 -0
  29. package/dist/json-schema/session.inject.json +72 -0
  30. package/dist/json-schema/session.interrupt.json +58 -0
  31. package/dist/json-schema/session.list.json +127 -0
  32. package/dist/json-schema/session.send.json +132 -0
  33. package/dist/json-schema/session.status.json +94 -0
  34. package/dist/json-schema/session.switchModel.json +73 -0
  35. package/dist/json-schema/session.terminate.json +54 -0
  36. package/dist/json-schema/skill.install.json +171 -0
  37. package/dist/json-schema/skill.list.json +101 -0
  38. package/dist/json-schema/skill.uninstall.json +76 -0
  39. package/dist/json-schema/stream.ack.json +36 -0
  40. package/dist/json-schema/stream.event.json +381 -0
  41. package/dist/schemas/capabilities.d.ts +90 -0
  42. package/dist/schemas/capabilities.d.ts.map +1 -0
  43. package/dist/schemas/capabilities.js +59 -0
  44. package/dist/schemas/capabilities.js.map +1 -0
  45. package/dist/schemas/common.d.ts +66 -0
  46. package/dist/schemas/common.d.ts.map +1 -0
  47. package/dist/schemas/common.js +97 -0
  48. package/dist/schemas/common.js.map +1 -0
  49. package/dist/schemas/connect.d.ts +111 -0
  50. package/dist/schemas/connect.d.ts.map +1 -0
  51. package/dist/schemas/connect.js +46 -0
  52. package/dist/schemas/connect.js.map +1 -0
  53. package/dist/schemas/device.d.ts +221 -0
  54. package/dist/schemas/device.d.ts.map +1 -0
  55. package/dist/schemas/device.js +59 -0
  56. package/dist/schemas/device.js.map +1 -0
  57. package/dist/schemas/discovery.d.ts +892 -0
  58. package/dist/schemas/discovery.d.ts.map +1 -0
  59. package/dist/schemas/discovery.js +66 -0
  60. package/dist/schemas/discovery.js.map +1 -0
  61. package/dist/schemas/document.d.ts +351 -0
  62. package/dist/schemas/document.d.ts.map +1 -0
  63. package/dist/schemas/document.js +103 -0
  64. package/dist/schemas/document.js.map +1 -0
  65. package/dist/schemas/env.d.ts +265 -0
  66. package/dist/schemas/env.d.ts.map +1 -0
  67. package/dist/schemas/env.js +44 -0
  68. package/dist/schemas/env.js.map +1 -0
  69. package/dist/schemas/file.d.ts +274 -0
  70. package/dist/schemas/file.d.ts.map +1 -0
  71. package/dist/schemas/file.js +72 -0
  72. package/dist/schemas/file.js.map +1 -0
  73. package/dist/schemas/hook.d.ts +132 -0
  74. package/dist/schemas/hook.d.ts.map +1 -0
  75. package/dist/schemas/hook.js +58 -0
  76. package/dist/schemas/hook.js.map +1 -0
  77. package/dist/schemas/interaction.d.ts +1583 -0
  78. package/dist/schemas/interaction.d.ts.map +1 -0
  79. package/dist/schemas/interaction.js +112 -0
  80. package/dist/schemas/interaction.js.map +1 -0
  81. package/dist/schemas/jsonrpc.d.ts +314 -0
  82. package/dist/schemas/jsonrpc.d.ts.map +1 -0
  83. package/dist/schemas/jsonrpc.js +64 -0
  84. package/dist/schemas/jsonrpc.js.map +1 -0
  85. package/dist/schemas/methods.d.ts +3826 -0
  86. package/dist/schemas/methods.d.ts.map +1 -0
  87. package/dist/schemas/methods.js +311 -0
  88. package/dist/schemas/methods.js.map +1 -0
  89. package/dist/schemas/policy.d.ts +81 -0
  90. package/dist/schemas/policy.d.ts.map +1 -0
  91. package/dist/schemas/policy.js +66 -0
  92. package/dist/schemas/policy.js.map +1 -0
  93. package/dist/schemas/project.d.ts +506 -0
  94. package/dist/schemas/project.d.ts.map +1 -0
  95. package/dist/schemas/project.js +148 -0
  96. package/dist/schemas/project.js.map +1 -0
  97. package/dist/schemas/session.d.ts +730 -0
  98. package/dist/schemas/session.d.ts.map +1 -0
  99. package/dist/schemas/session.js +287 -0
  100. package/dist/schemas/session.js.map +1 -0
  101. package/dist/schemas/skill.d.ts +465 -0
  102. package/dist/schemas/skill.d.ts.map +1 -0
  103. package/dist/schemas/skill.js +103 -0
  104. package/dist/schemas/skill.js.map +1 -0
  105. package/dist/schemas/stream.d.ts +688 -0
  106. package/dist/schemas/stream.d.ts.map +1 -0
  107. package/dist/schemas/stream.js +133 -0
  108. package/dist/schemas/stream.js.map +1 -0
  109. package/package.json +52 -0
  110. package/src/index.ts +24 -0
  111. package/src/schemas/capabilities.ts +62 -0
  112. package/src/schemas/common.ts +119 -0
  113. package/src/schemas/connect.ts +50 -0
  114. package/src/schemas/device.ts +67 -0
  115. package/src/schemas/discovery.ts +80 -0
  116. package/src/schemas/document.ts +121 -0
  117. package/src/schemas/env.ts +60 -0
  118. package/src/schemas/file.ts +97 -0
  119. package/src/schemas/hook.ts +66 -0
  120. package/src/schemas/interaction.ts +135 -0
  121. package/src/schemas/jsonrpc.ts +80 -0
  122. package/src/schemas/methods.ts +414 -0
  123. package/src/schemas/policy.ts +71 -0
  124. package/src/schemas/project.ts +185 -0
  125. package/src/schemas/session.ts +336 -0
  126. package/src/schemas/skill.ts +121 -0
  127. package/src/schemas/stream.ts +149 -0
@@ -0,0 +1,72 @@
1
+ {
2
+ "direction": "s2p",
3
+ "kind": "request",
4
+ "params": {
5
+ "$ref": "#/definitions/project.list.params",
6
+ "definitions": {
7
+ "project.list.params": {
8
+ "type": "object",
9
+ "properties": {},
10
+ "additionalProperties": false,
11
+ "default": {}
12
+ }
13
+ },
14
+ "$schema": "http://json-schema.org/draft-07/schema#"
15
+ },
16
+ "result": {
17
+ "$ref": "#/definitions/project.list.result",
18
+ "definitions": {
19
+ "project.list.result": {
20
+ "type": "object",
21
+ "properties": {
22
+ "projects": {
23
+ "type": "array",
24
+ "items": {
25
+ "type": "object",
26
+ "properties": {
27
+ "projectId": {
28
+ "type": "string",
29
+ "minLength": 1
30
+ },
31
+ "name": {
32
+ "type": "string",
33
+ "minLength": 1
34
+ },
35
+ "path": {
36
+ "type": "string",
37
+ "minLength": 1
38
+ },
39
+ "git": {
40
+ "type": "boolean",
41
+ "default": true
42
+ },
43
+ "branch": {
44
+ "type": "string"
45
+ },
46
+ "remote": {
47
+ "type": "string"
48
+ },
49
+ "createdAt": {
50
+ "type": "string",
51
+ "format": "date-time"
52
+ }
53
+ },
54
+ "required": [
55
+ "projectId",
56
+ "name",
57
+ "path",
58
+ "createdAt"
59
+ ],
60
+ "additionalProperties": false
61
+ }
62
+ }
63
+ },
64
+ "required": [
65
+ "projects"
66
+ ],
67
+ "additionalProperties": false
68
+ }
69
+ },
70
+ "$schema": "http://json-schema.org/draft-07/schema#"
71
+ }
72
+ }
@@ -0,0 +1,69 @@
1
+ {
2
+ "direction": "s2p",
3
+ "kind": "request",
4
+ "params": {
5
+ "$ref": "#/definitions/project.remove.params",
6
+ "definitions": {
7
+ "project.remove.params": {
8
+ "type": "object",
9
+ "properties": {
10
+ "projectId": {
11
+ "type": "string",
12
+ "minLength": 1
13
+ },
14
+ "deleteFiles": {
15
+ "type": "boolean",
16
+ "default": false
17
+ },
18
+ "whenActiveSessions": {
19
+ "type": "string",
20
+ "enum": [
21
+ "reject",
22
+ "cascade"
23
+ ],
24
+ "default": "reject"
25
+ }
26
+ },
27
+ "required": [
28
+ "projectId"
29
+ ],
30
+ "additionalProperties": false
31
+ }
32
+ },
33
+ "$schema": "http://json-schema.org/draft-07/schema#"
34
+ },
35
+ "result": {
36
+ "$ref": "#/definitions/project.remove.result",
37
+ "definitions": {
38
+ "project.remove.result": {
39
+ "type": "object",
40
+ "properties": {
41
+ "projectId": {
42
+ "type": "string",
43
+ "minLength": 1
44
+ },
45
+ "removed": {
46
+ "type": "boolean",
47
+ "const": true
48
+ },
49
+ "filesDeleted": {
50
+ "type": "boolean"
51
+ },
52
+ "terminatedSessions": {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "string"
56
+ }
57
+ }
58
+ },
59
+ "required": [
60
+ "projectId",
61
+ "removed",
62
+ "filesDeleted"
63
+ ],
64
+ "additionalProperties": false
65
+ }
66
+ },
67
+ "$schema": "http://json-schema.org/draft-07/schema#"
68
+ }
69
+ }
@@ -0,0 +1,88 @@
1
+ {
2
+ "direction": "s2p",
3
+ "kind": "request",
4
+ "params": {
5
+ "$ref": "#/definitions/project.worktree.create.params",
6
+ "definitions": {
7
+ "project.worktree.create.params": {
8
+ "type": "object",
9
+ "properties": {
10
+ "clientRequestId": {
11
+ "type": "string"
12
+ },
13
+ "projectId": {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ "baseBranch": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "newBranch": {
22
+ "type": "string"
23
+ },
24
+ "path": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": [
29
+ "projectId",
30
+ "baseBranch"
31
+ ],
32
+ "additionalProperties": false
33
+ }
34
+ },
35
+ "$schema": "http://json-schema.org/draft-07/schema#"
36
+ },
37
+ "result": {
38
+ "$ref": "#/definitions/project.worktree.create.result",
39
+ "definitions": {
40
+ "project.worktree.create.result": {
41
+ "type": "object",
42
+ "properties": {
43
+ "worktree": {
44
+ "type": "object",
45
+ "properties": {
46
+ "worktreeId": {
47
+ "type": "string",
48
+ "minLength": 1
49
+ },
50
+ "projectId": {
51
+ "type": "string",
52
+ "minLength": 1
53
+ },
54
+ "path": {
55
+ "type": "string",
56
+ "minLength": 1
57
+ },
58
+ "branch": {
59
+ "type": "string",
60
+ "minLength": 1
61
+ },
62
+ "isPrimary": {
63
+ "type": "boolean",
64
+ "default": false
65
+ },
66
+ "createdAt": {
67
+ "type": "string",
68
+ "format": "date-time"
69
+ }
70
+ },
71
+ "required": [
72
+ "worktreeId",
73
+ "projectId",
74
+ "path",
75
+ "branch"
76
+ ],
77
+ "additionalProperties": false
78
+ }
79
+ },
80
+ "required": [
81
+ "worktree"
82
+ ],
83
+ "additionalProperties": false
84
+ }
85
+ },
86
+ "$schema": "http://json-schema.org/draft-07/schema#"
87
+ }
88
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "direction": "s2p",
3
+ "kind": "request",
4
+ "params": {
5
+ "$ref": "#/definitions/project.worktree.list.params",
6
+ "definitions": {
7
+ "project.worktree.list.params": {
8
+ "type": "object",
9
+ "properties": {
10
+ "projectId": {
11
+ "type": "string",
12
+ "minLength": 1
13
+ }
14
+ },
15
+ "required": [
16
+ "projectId"
17
+ ],
18
+ "additionalProperties": false
19
+ }
20
+ },
21
+ "$schema": "http://json-schema.org/draft-07/schema#"
22
+ },
23
+ "result": {
24
+ "$ref": "#/definitions/project.worktree.list.result",
25
+ "definitions": {
26
+ "project.worktree.list.result": {
27
+ "type": "object",
28
+ "properties": {
29
+ "worktrees": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "object",
33
+ "properties": {
34
+ "worktreeId": {
35
+ "type": "string",
36
+ "minLength": 1
37
+ },
38
+ "projectId": {
39
+ "type": "string",
40
+ "minLength": 1
41
+ },
42
+ "path": {
43
+ "type": "string",
44
+ "minLength": 1
45
+ },
46
+ "branch": {
47
+ "type": "string",
48
+ "minLength": 1
49
+ },
50
+ "isPrimary": {
51
+ "type": "boolean",
52
+ "default": false
53
+ },
54
+ "createdAt": {
55
+ "type": "string",
56
+ "format": "date-time"
57
+ }
58
+ },
59
+ "required": [
60
+ "worktreeId",
61
+ "projectId",
62
+ "path",
63
+ "branch"
64
+ ],
65
+ "additionalProperties": false
66
+ }
67
+ }
68
+ },
69
+ "required": [
70
+ "worktrees"
71
+ ],
72
+ "additionalProperties": false
73
+ }
74
+ },
75
+ "$schema": "http://json-schema.org/draft-07/schema#"
76
+ }
77
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "direction": "s2p",
3
+ "kind": "request",
4
+ "params": {
5
+ "$ref": "#/definitions/project.worktree.remove.params",
6
+ "definitions": {
7
+ "project.worktree.remove.params": {
8
+ "type": "object",
9
+ "properties": {
10
+ "projectId": {
11
+ "type": "string",
12
+ "minLength": 1
13
+ },
14
+ "worktreeId": {
15
+ "type": "string",
16
+ "minLength": 1
17
+ },
18
+ "force": {
19
+ "type": "boolean",
20
+ "default": false
21
+ }
22
+ },
23
+ "required": [
24
+ "projectId",
25
+ "worktreeId"
26
+ ],
27
+ "additionalProperties": false
28
+ }
29
+ },
30
+ "$schema": "http://json-schema.org/draft-07/schema#"
31
+ },
32
+ "result": {
33
+ "$ref": "#/definitions/project.worktree.remove.result",
34
+ "definitions": {
35
+ "project.worktree.remove.result": {
36
+ "type": "object",
37
+ "properties": {
38
+ "worktreeId": {
39
+ "type": "string"
40
+ },
41
+ "removed": {
42
+ "type": "boolean",
43
+ "const": true
44
+ },
45
+ "affectedSessions": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "string"
49
+ }
50
+ }
51
+ },
52
+ "required": [
53
+ "worktreeId",
54
+ "removed"
55
+ ],
56
+ "additionalProperties": false
57
+ }
58
+ },
59
+ "$schema": "http://json-schema.org/draft-07/schema#"
60
+ }
61
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "direction": "s2p",
3
+ "kind": "request",
4
+ "params": {
5
+ "$ref": "#/definitions/session.compress.params",
6
+ "definitions": {
7
+ "session.compress.params": {
8
+ "type": "object",
9
+ "properties": {
10
+ "sessionId": {
11
+ "type": "string",
12
+ "minLength": 1
13
+ },
14
+ "mode": {
15
+ "type": "string",
16
+ "enum": [
17
+ "native",
18
+ "custom"
19
+ ]
20
+ },
21
+ "strategy": {
22
+ "type": "string"
23
+ }
24
+ },
25
+ "required": [
26
+ "sessionId",
27
+ "mode"
28
+ ],
29
+ "additionalProperties": false
30
+ }
31
+ },
32
+ "$schema": "http://json-schema.org/draft-07/schema#"
33
+ },
34
+ "result": {
35
+ "$ref": "#/definitions/session.compress.result",
36
+ "definitions": {
37
+ "session.compress.result": {
38
+ "type": "object",
39
+ "properties": {
40
+ "sessionId": {
41
+ "type": "string",
42
+ "minLength": 1
43
+ },
44
+ "mode": {
45
+ "type": "string",
46
+ "enum": [
47
+ "native",
48
+ "custom"
49
+ ]
50
+ },
51
+ "tokensBefore": {
52
+ "type": "integer",
53
+ "minimum": 0
54
+ },
55
+ "tokensAfter": {
56
+ "type": "integer",
57
+ "minimum": 0
58
+ },
59
+ "summary": {
60
+ "type": "string"
61
+ }
62
+ },
63
+ "required": [
64
+ "sessionId",
65
+ "mode"
66
+ ],
67
+ "additionalProperties": false
68
+ }
69
+ },
70
+ "$schema": "http://json-schema.org/draft-07/schema#"
71
+ }
72
+ }
@@ -0,0 +1,128 @@
1
+ {
2
+ "direction": "s2p",
3
+ "kind": "request",
4
+ "params": {
5
+ "$ref": "#/definitions/session.create.params",
6
+ "definitions": {
7
+ "session.create.params": {
8
+ "type": "object",
9
+ "properties": {
10
+ "clientRequestId": {
11
+ "type": "string"
12
+ },
13
+ "project": {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ "worktreeId": {
18
+ "type": "string"
19
+ },
20
+ "agent": {
21
+ "type": "string",
22
+ "minLength": 1
23
+ },
24
+ "model": {
25
+ "type": "string",
26
+ "minLength": 1
27
+ },
28
+ "agentConfig": {
29
+ "type": "object",
30
+ "additionalProperties": {}
31
+ },
32
+ "initialContext": {
33
+ "type": "array",
34
+ "items": {
35
+ "type": "object",
36
+ "properties": {
37
+ "role": {
38
+ "type": "string",
39
+ "enum": [
40
+ "system",
41
+ "user",
42
+ "assistant"
43
+ ]
44
+ },
45
+ "content": {
46
+ "type": "string"
47
+ }
48
+ },
49
+ "required": [
50
+ "role",
51
+ "content"
52
+ ],
53
+ "additionalProperties": false
54
+ }
55
+ },
56
+ "verbosity": {
57
+ "type": "string",
58
+ "enum": [
59
+ "final",
60
+ "messages",
61
+ "tools",
62
+ "trace"
63
+ ],
64
+ "default": "messages"
65
+ },
66
+ "clientTag": {
67
+ "type": "string"
68
+ }
69
+ },
70
+ "required": [
71
+ "project",
72
+ "agent",
73
+ "model"
74
+ ],
75
+ "additionalProperties": false
76
+ }
77
+ },
78
+ "$schema": "http://json-schema.org/draft-07/schema#"
79
+ },
80
+ "result": {
81
+ "$ref": "#/definitions/session.create.result",
82
+ "definitions": {
83
+ "session.create.result": {
84
+ "type": "object",
85
+ "properties": {
86
+ "sessionId": {
87
+ "type": "string",
88
+ "minLength": 1
89
+ },
90
+ "project": {
91
+ "type": "string",
92
+ "minLength": 1
93
+ },
94
+ "agent": {
95
+ "type": "string",
96
+ "minLength": 1
97
+ },
98
+ "model": {
99
+ "type": "string"
100
+ },
101
+ "status": {
102
+ "type": "string",
103
+ "enum": [
104
+ "idle",
105
+ "running",
106
+ "paused",
107
+ "terminated"
108
+ ]
109
+ },
110
+ "createdAt": {
111
+ "type": "string",
112
+ "format": "date-time"
113
+ }
114
+ },
115
+ "required": [
116
+ "sessionId",
117
+ "project",
118
+ "agent",
119
+ "model",
120
+ "status",
121
+ "createdAt"
122
+ ],
123
+ "additionalProperties": false
124
+ }
125
+ },
126
+ "$schema": "http://json-schema.org/draft-07/schema#"
127
+ }
128
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "direction": "s2p",
3
+ "kind": "request",
4
+ "params": {
5
+ "$ref": "#/definitions/session.inject.params",
6
+ "definitions": {
7
+ "session.inject.params": {
8
+ "type": "object",
9
+ "properties": {
10
+ "sessionId": {
11
+ "type": "string",
12
+ "minLength": 1
13
+ },
14
+ "context": {
15
+ "type": "array",
16
+ "items": {
17
+ "type": "object",
18
+ "properties": {
19
+ "role": {
20
+ "type": "string",
21
+ "enum": [
22
+ "system",
23
+ "user",
24
+ "assistant"
25
+ ]
26
+ },
27
+ "content": {
28
+ "type": "string"
29
+ }
30
+ },
31
+ "required": [
32
+ "role",
33
+ "content"
34
+ ],
35
+ "additionalProperties": false
36
+ }
37
+ }
38
+ },
39
+ "required": [
40
+ "sessionId",
41
+ "context"
42
+ ],
43
+ "additionalProperties": false
44
+ }
45
+ },
46
+ "$schema": "http://json-schema.org/draft-07/schema#"
47
+ },
48
+ "result": {
49
+ "$ref": "#/definitions/session.inject.result",
50
+ "definitions": {
51
+ "session.inject.result": {
52
+ "type": "object",
53
+ "properties": {
54
+ "sessionId": {
55
+ "type": "string",
56
+ "minLength": 1
57
+ },
58
+ "injected": {
59
+ "type": "integer",
60
+ "minimum": 0
61
+ }
62
+ },
63
+ "required": [
64
+ "sessionId",
65
+ "injected"
66
+ ],
67
+ "additionalProperties": false
68
+ }
69
+ },
70
+ "$schema": "http://json-schema.org/draft-07/schema#"
71
+ }
72
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "direction": "s2p",
3
+ "kind": "request",
4
+ "params": {
5
+ "$ref": "#/definitions/session.interrupt.params",
6
+ "definitions": {
7
+ "session.interrupt.params": {
8
+ "type": "object",
9
+ "properties": {
10
+ "sessionId": {
11
+ "type": "string",
12
+ "minLength": 1
13
+ },
14
+ "reason": {
15
+ "type": "string"
16
+ }
17
+ },
18
+ "required": [
19
+ "sessionId"
20
+ ],
21
+ "additionalProperties": false
22
+ }
23
+ },
24
+ "$schema": "http://json-schema.org/draft-07/schema#"
25
+ },
26
+ "result": {
27
+ "$ref": "#/definitions/session.interrupt.result",
28
+ "definitions": {
29
+ "session.interrupt.result": {
30
+ "type": "object",
31
+ "properties": {
32
+ "sessionId": {
33
+ "type": "string",
34
+ "minLength": 1
35
+ },
36
+ "interruptedTurnId": {
37
+ "type": "string"
38
+ },
39
+ "status": {
40
+ "type": "string",
41
+ "enum": [
42
+ "idle",
43
+ "running",
44
+ "paused",
45
+ "terminated"
46
+ ]
47
+ }
48
+ },
49
+ "required": [
50
+ "sessionId",
51
+ "status"
52
+ ],
53
+ "additionalProperties": false
54
+ }
55
+ },
56
+ "$schema": "http://json-schema.org/draft-07/schema#"
57
+ }
58
+ }