@ifsoul/core 0.3.0 → 0.5.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 (147) hide show
  1. package/README.md +30 -33
  2. package/dist/packages/memory/src/sql.js +54 -5
  3. package/dist/packages/protocol/src/generated/validators.cjs +1 -1
  4. package/dist/packages/protocol/src/index.d.ts +1 -6
  5. package/dist/packages/protocol/src/index.js +3 -16
  6. package/dist/packages/protocol/src/types.d.ts +1 -1
  7. package/dist/packages/runtime/src/behavior-types.d.ts +150 -0
  8. package/dist/packages/runtime/src/behavior-types.js +1 -0
  9. package/dist/packages/runtime/src/behavior.d.ts +40 -0
  10. package/dist/packages/runtime/src/behavior.js +621 -0
  11. package/dist/packages/runtime/src/group-scheduler.d.ts +165 -0
  12. package/dist/packages/runtime/src/group-scheduler.js +647 -0
  13. package/dist/packages/runtime/src/index.d.ts +4 -0
  14. package/dist/packages/runtime/src/index.js +4 -1
  15. package/dist/packages/runtime/src/participants.d.ts +107 -0
  16. package/dist/packages/runtime/src/participants.js +309 -0
  17. package/dist/packages/runtime/src/types.d.ts +1 -0
  18. package/package.json +2 -3
  19. package/packages/protocol/schemas/current/archive.schema.json +16 -16
  20. package/packages/protocol/schemas/current/character.schema.json +21 -21
  21. package/packages/protocol/schemas/current/common.schema.json +15 -15
  22. package/packages/protocol/schemas/current/context.schema.json +24 -24
  23. package/packages/protocol/schemas/current/conversation.schema.json +39 -39
  24. package/packages/protocol/schemas/current/environment.schema.json +18 -18
  25. package/packages/protocol/schemas/current/memory.schema.json +66 -66
  26. package/packages/protocol/schemas/current/model-provider.schema.json +40 -40
  27. package/packages/protocol/schemas/current/planning.schema.json +61 -61
  28. package/packages/protocol/schemas/current/provider-common.schema.json +6 -6
  29. package/release.json +7 -12
  30. package/specs/README.md +3 -86
  31. package/specs/current/README.md +3 -5
  32. package/specs/current/examples/archive-fork.json +12 -12
  33. package/specs/current/examples/archive-resume.json +12 -12
  34. package/specs/current/examples/character-instance.json +1 -1
  35. package/specs/current/examples/character-template.json +1 -1
  36. package/specs/current/examples/context-after-inspection.json +1 -1
  37. package/specs/current/examples/context-chat.json +1 -1
  38. package/specs/current/examples/context-daily.json +1 -1
  39. package/specs/current/examples/context-no-speech.json +1 -1
  40. package/specs/current/examples/conversation-delivery.json +1 -1
  41. package/specs/current/examples/conversation-live-request.json +1 -1
  42. package/specs/current/examples/conversation-live-response.json +1 -1
  43. package/specs/current/examples/conversation-no-speech-request.json +1 -1
  44. package/specs/current/examples/conversation-no-speech-response.json +1 -1
  45. package/specs/current/examples/conversation-requested-request.json +1 -1
  46. package/specs/current/examples/conversation-requested-response.json +1 -1
  47. package/specs/current/examples/environment-chat.json +1 -1
  48. package/specs/current/examples/environment-game.json +1 -1
  49. package/specs/current/examples/environment-no-speech.json +1 -1
  50. package/specs/current/examples/intent-checkpoint.json +1 -1
  51. package/specs/current/examples/memory-episode.json +1 -1
  52. package/specs/current/examples/memory-event-conversation.json +1 -1
  53. package/specs/current/examples/memory-event-observed.json +2 -2
  54. package/specs/current/examples/memory-event-plan-proposal.json +2 -2
  55. package/specs/current/examples/memory-event-proposed.json +2 -2
  56. package/specs/current/examples/memory-fact.json +1 -1
  57. package/specs/current/examples/memory-relationship.json +1 -1
  58. package/specs/current/examples/memory-working-context.json +1 -1
  59. package/specs/current/examples/plan-cancel-request.json +1 -1
  60. package/specs/current/examples/plan-cancel-result.json +1 -1
  61. package/specs/current/examples/plan-daily.json +1 -1
  62. package/specs/current/examples/plan-partial-decision.json +1 -1
  63. package/specs/current/examples/portable-memory.jsonl +9 -9
  64. package/specs/current/examples/task-outcome.json +1 -1
  65. package/specs/current/examples/task-progress.json +1 -1
  66. package/specs/current/model-provider/examples/capabilities.json +1 -1
  67. package/specs/current/model-provider/examples/error.json +1 -1
  68. package/specs/current/model-provider/examples/request.json +1 -1
  69. package/specs/current/model-provider/examples/response.json +1 -1
  70. package/docs/npm-publishing.md +0 -44
  71. package/packages/protocol/schemas/action-result.schema.json +0 -187
  72. package/packages/protocol/schemas/action.schema.json +0 -68
  73. package/packages/protocol/schemas/archive-manifest.schema.json +0 -126
  74. package/packages/protocol/schemas/capability.schema.json +0 -131
  75. package/packages/protocol/schemas/character-instance.schema.json +0 -73
  76. package/packages/protocol/schemas/character-template.schema.json +0 -67
  77. package/packages/protocol/schemas/common.schema.json +0 -154
  78. package/packages/protocol/schemas/derived-memory.schema.json +0 -145
  79. package/packages/protocol/schemas/memory-event.schema.json +0 -123
  80. package/packages/protocol/schemas/model-provider.schema.json +0 -326
  81. package/packages/protocol/schemas/perception.schema.json +0 -89
  82. package/packages/protocol/schemas/permission-policy.schema.json +0 -153
  83. package/packages/protocol/schemas/v0.2/archive.schema.json +0 -205
  84. package/packages/protocol/schemas/v0.2/character.schema.json +0 -344
  85. package/packages/protocol/schemas/v0.2/common.schema.json +0 -239
  86. package/packages/protocol/schemas/v0.2/context.schema.json +0 -230
  87. package/packages/protocol/schemas/v0.2/conversation.schema.json +0 -340
  88. package/packages/protocol/schemas/v0.2/environment.schema.json +0 -244
  89. package/packages/protocol/schemas/v0.2/memory.schema.json +0 -495
  90. package/packages/protocol/schemas/v0.2/planning.schema.json +0 -443
  91. package/packages/protocol/schemas/world-event.schema.json +0 -74
  92. package/specs/character/README.md +0 -84
  93. package/specs/character/examples/archive-manifest.json +0 -32
  94. package/specs/character/examples/character-instance.json +0 -20
  95. package/specs/character/examples/character-template.json +0 -19
  96. package/specs/memory/README.md +0 -80
  97. package/specs/memory/examples/derived-memory.json +0 -21
  98. package/specs/memory/examples/memory-event.json +0 -35
  99. package/specs/model-provider/README.md +0 -85
  100. package/specs/model-provider/examples/capabilities.json +0 -10
  101. package/specs/model-provider/examples/error.json +0 -18
  102. package/specs/model-provider/examples/request.json +0 -17
  103. package/specs/model-provider/examples/response.json +0 -19
  104. package/specs/v0.2/README.md +0 -421
  105. package/specs/v0.2/examples/archive-fork.json +0 -64
  106. package/specs/v0.2/examples/archive-resume.json +0 -63
  107. package/specs/v0.2/examples/character-instance.json +0 -57
  108. package/specs/v0.2/examples/character-template.json +0 -45
  109. package/specs/v0.2/examples/context-after-inspection.json +0 -44
  110. package/specs/v0.2/examples/context-chat.json +0 -27
  111. package/specs/v0.2/examples/context-daily.json +0 -69
  112. package/specs/v0.2/examples/context-no-speech.json +0 -27
  113. package/specs/v0.2/examples/conversation-delivery.json +0 -17
  114. package/specs/v0.2/examples/conversation-live-request.json +0 -31
  115. package/specs/v0.2/examples/conversation-live-response.json +0 -23
  116. package/specs/v0.2/examples/conversation-no-speech-request.json +0 -23
  117. package/specs/v0.2/examples/conversation-no-speech-response.json +0 -22
  118. package/specs/v0.2/examples/conversation-requested-request.json +0 -31
  119. package/specs/v0.2/examples/conversation-requested-response.json +0 -23
  120. package/specs/v0.2/examples/environment-chat.json +0 -43
  121. package/specs/v0.2/examples/environment-game.json +0 -80
  122. package/specs/v0.2/examples/environment-no-speech.json +0 -47
  123. package/specs/v0.2/examples/intent-checkpoint.json +0 -29
  124. package/specs/v0.2/examples/memory-episode.json +0 -28
  125. package/specs/v0.2/examples/memory-event-conversation.json +0 -32
  126. package/specs/v0.2/examples/memory-event-observed.json +0 -50
  127. package/specs/v0.2/examples/memory-event-plan-proposal.json +0 -82
  128. package/specs/v0.2/examples/memory-event-proposed.json +0 -53
  129. package/specs/v0.2/examples/memory-fact.json +0 -23
  130. package/specs/v0.2/examples/memory-relationship.json +0 -25
  131. package/specs/v0.2/examples/memory-working-context.json +0 -24
  132. package/specs/v0.2/examples/plan-cancel-request.json +0 -16
  133. package/specs/v0.2/examples/plan-cancel-result.json +0 -21
  134. package/specs/v0.2/examples/plan-daily.json +0 -57
  135. package/specs/v0.2/examples/plan-partial-decision.json +0 -28
  136. package/specs/v0.2/examples/portable-memory.jsonl +0 -9
  137. package/specs/v0.2/examples/task-outcome.json +0 -21
  138. package/specs/v0.2/examples/task-progress.json +0 -19
  139. package/specs/world-adapter/README.md +0 -114
  140. package/specs/world-adapter/examples/action-result-unknown.json +0 -23
  141. package/specs/world-adapter/examples/action-result.json +0 -45
  142. package/specs/world-adapter/examples/action.json +0 -17
  143. package/specs/world-adapter/examples/capability.json +0 -44
  144. package/specs/world-adapter/examples/perception.json +0 -30
  145. package/specs/world-adapter/examples/permission-decision.json +0 -14
  146. package/specs/world-adapter/examples/permission-policy.json +0 -17
  147. package/specs/world-adapter/examples/world-event.json +0 -25
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "urn:ifsoul:protocol:0.3.0:model-provider",
3
+ "$id": "urn:ifsoul:protocol:0.4.0:model-provider",
4
4
  "oneOf": [
5
5
  {
6
6
  "$ref": "#/$defs/capabilities"
@@ -20,16 +20,16 @@
20
20
  "type": "object",
21
21
  "properties": {
22
22
  "schemaVersion": {
23
- "const": "0.3.0"
23
+ "const": "0.4.0"
24
24
  },
25
25
  "kind": {
26
26
  "const": "provider-capabilities"
27
27
  },
28
28
  "providerId": {
29
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
29
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
30
30
  },
31
31
  "modelId": {
32
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
32
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
33
33
  },
34
34
  "toolCalling": {
35
35
  "type": "boolean"
@@ -44,12 +44,12 @@
44
44
  "type": "boolean"
45
45
  },
46
46
  "extensions": {
47
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensions"
47
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensions"
48
48
  },
49
49
  "requiredExtensions": {
50
50
  "type": "array",
51
51
  "items": {
52
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensionName"
52
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensionName"
53
53
  },
54
54
  "minItems": 0,
55
55
  "uniqueItems": true
@@ -71,19 +71,19 @@
71
71
  "type": "object",
72
72
  "properties": {
73
73
  "schemaVersion": {
74
- "const": "0.3.0"
74
+ "const": "0.4.0"
75
75
  },
76
76
  "kind": {
77
77
  "const": "model-request"
78
78
  },
79
79
  "requestId": {
80
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
80
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
81
81
  },
82
82
  "providerId": {
83
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
83
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
84
84
  },
85
85
  "modelId": {
86
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
86
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
87
87
  },
88
88
  "messages": {
89
89
  "type": "array",
@@ -97,7 +97,7 @@
97
97
  "type": "string"
98
98
  },
99
99
  "toolCallId": {
100
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
100
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
101
101
  },
102
102
  "toolCalls": {
103
103
  "type": "array",
@@ -105,13 +105,13 @@
105
105
  "type": "object",
106
106
  "properties": {
107
107
  "toolCallId": {
108
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
108
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
109
109
  },
110
110
  "name": {
111
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
111
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
112
112
  },
113
113
  "arguments": {
114
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/jsonObject"
114
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/jsonObject"
115
115
  }
116
116
  },
117
117
  "required": ["toolCallId", "name", "arguments"],
@@ -131,14 +131,14 @@
131
131
  "type": "object",
132
132
  "properties": {
133
133
  "name": {
134
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
134
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
135
135
  },
136
136
  "description": {
137
137
  "type": "string",
138
138
  "minLength": 1
139
139
  },
140
140
  "argumentsSchema": {
141
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/jsonSchema"
141
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/jsonSchema"
142
142
  }
143
143
  },
144
144
  "required": ["name", "description", "argumentsSchema"],
@@ -153,22 +153,22 @@
153
153
  "enum": ["text", "json-object"]
154
154
  },
155
155
  "deadlineAt": {
156
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/utcTimestamp"
156
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/utcTimestamp"
157
157
  },
158
158
  "cancellationId": {
159
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
159
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
160
160
  },
161
161
  "maxOutputTokens": {
162
162
  "type": "integer",
163
163
  "minimum": 1
164
164
  },
165
165
  "extensions": {
166
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensions"
166
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensions"
167
167
  },
168
168
  "requiredExtensions": {
169
169
  "type": "array",
170
170
  "items": {
171
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensionName"
171
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensionName"
172
172
  },
173
173
  "minItems": 0,
174
174
  "uniqueItems": true
@@ -191,22 +191,22 @@
191
191
  "type": "object",
192
192
  "properties": {
193
193
  "schemaVersion": {
194
- "const": "0.3.0"
194
+ "const": "0.4.0"
195
195
  },
196
196
  "kind": {
197
197
  "const": "model-response"
198
198
  },
199
199
  "requestId": {
200
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
200
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
201
201
  },
202
202
  "providerId": {
203
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
203
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
204
204
  },
205
205
  "modelId": {
206
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
206
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
207
207
  },
208
208
  "recordedAt": {
209
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/utcTimestamp"
209
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/utcTimestamp"
210
210
  },
211
211
  "status": {
212
212
  "enum": ["completed", "incomplete", "cancelled"]
@@ -223,13 +223,13 @@
223
223
  "type": "object",
224
224
  "properties": {
225
225
  "toolCallId": {
226
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
226
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
227
227
  },
228
228
  "name": {
229
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
229
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
230
230
  },
231
231
  "arguments": {
232
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/jsonObject"
232
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/jsonObject"
233
233
  }
234
234
  },
235
235
  "required": ["toolCallId", "name", "arguments"],
@@ -245,15 +245,15 @@
245
245
  "enum": ["stop", "tool-calls", "length", "cancelled"]
246
246
  },
247
247
  "usage": {
248
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/usage"
248
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/usage"
249
249
  },
250
250
  "extensions": {
251
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensions"
251
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensions"
252
252
  },
253
253
  "requiredExtensions": {
254
254
  "type": "array",
255
255
  "items": {
256
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensionName"
256
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensionName"
257
257
  },
258
258
  "minItems": 0,
259
259
  "uniqueItems": true
@@ -276,36 +276,36 @@
276
276
  "type": "object",
277
277
  "properties": {
278
278
  "schemaVersion": {
279
- "const": "0.3.0"
279
+ "const": "0.4.0"
280
280
  },
281
281
  "kind": {
282
282
  "const": "model-error"
283
283
  },
284
284
  "requestId": {
285
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
285
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
286
286
  },
287
287
  "providerId": {
288
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
288
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
289
289
  },
290
290
  "modelId": {
291
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
291
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
292
292
  },
293
293
  "recordedAt": {
294
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/utcTimestamp"
294
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/utcTimestamp"
295
295
  },
296
296
  "error": {
297
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/error"
297
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/error"
298
298
  },
299
299
  "usage": {
300
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/usage"
300
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/usage"
301
301
  },
302
302
  "extensions": {
303
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensions"
303
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensions"
304
304
  },
305
305
  "requiredExtensions": {
306
306
  "type": "array",
307
307
  "items": {
308
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensionName"
308
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensionName"
309
309
  },
310
310
  "minItems": 0,
311
311
  "uniqueItems": true
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "urn:ifsoul:protocol:0.3.0:planning",
3
+ "$id": "urn:ifsoul:protocol:0.4.0:planning",
4
4
  "oneOf": [
5
5
  {
6
6
  "$ref": "#/$defs/proposal"
@@ -23,40 +23,40 @@
23
23
  "type": "object",
24
24
  "properties": {
25
25
  "schemaVersion": {
26
- "const": "0.3.0"
26
+ "const": "0.4.0"
27
27
  },
28
28
  "kind": {
29
29
  "const": "plan-proposal"
30
30
  },
31
31
  "binding": {
32
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/binding"
32
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/binding"
33
33
  },
34
34
  "correlationId": {
35
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
35
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
36
36
  },
37
37
  "planId": {
38
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
38
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
39
39
  },
40
40
  "requestId": {
41
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
41
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
42
42
  },
43
43
  "contextReportId": {
44
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
44
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
45
45
  },
46
46
  "contextRevision": {
47
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
47
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
48
48
  },
49
49
  "environmentRevision": {
50
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
50
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
51
51
  },
52
52
  "createdAt": {
53
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
53
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
54
54
  },
55
55
  "expiresAt": {
56
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
56
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
57
57
  },
58
58
  "horizon": {
59
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/period"
59
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/period"
60
60
  },
61
61
  "tasks": {
62
62
  "type": "array",
@@ -64,28 +64,28 @@
64
64
  "type": "object",
65
65
  "properties": {
66
66
  "taskId": {
67
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
67
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
68
68
  },
69
69
  "intentId": {
70
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
70
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
71
71
  },
72
72
  "arguments": {
73
73
  "type": "object",
74
74
  "maxProperties": 16,
75
75
  "propertyNames": {
76
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
76
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
77
77
  },
78
78
  "additionalProperties": {
79
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/argument"
79
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/argument"
80
80
  }
81
81
  },
82
82
  "priority": {
83
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/priority"
83
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/priority"
84
84
  },
85
85
  "dependsOnTaskIds": {
86
86
  "type": "array",
87
87
  "items": {
88
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
88
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
89
89
  },
90
90
  "minItems": 0,
91
91
  "maxItems": 16,
@@ -110,12 +110,12 @@
110
110
  "maxItems": 16
111
111
  },
112
112
  "extensions": {
113
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensions"
113
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensions"
114
114
  },
115
115
  "requiredExtensions": {
116
116
  "type": "array",
117
117
  "items": {
118
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
118
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
119
119
  },
120
120
  "minItems": 0,
121
121
  "maxItems": 16,
@@ -143,31 +143,31 @@
143
143
  "type": "object",
144
144
  "properties": {
145
145
  "schemaVersion": {
146
- "const": "0.3.0"
146
+ "const": "0.4.0"
147
147
  },
148
148
  "kind": {
149
149
  "const": "plan-decision"
150
150
  },
151
151
  "binding": {
152
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/binding"
152
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/binding"
153
153
  },
154
154
  "correlationId": {
155
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
155
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
156
156
  },
157
157
  "planId": {
158
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
158
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
159
159
  },
160
160
  "decisionId": {
161
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
161
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
162
162
  },
163
163
  "requestId": {
164
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
164
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
165
165
  },
166
166
  "contextRevision": {
167
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
167
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
168
168
  },
169
169
  "recordedAt": {
170
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
170
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
171
171
  },
172
172
  "status": {
173
173
  "enum": ["accepted", "partially-accepted", "rejected"]
@@ -178,7 +178,7 @@
178
178
  "type": "object",
179
179
  "properties": {
180
180
  "taskId": {
181
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
181
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
182
182
  },
183
183
  "decision": {
184
184
  "enum": ["accepted", "rejected"]
@@ -196,12 +196,12 @@
196
196
  "maxItems": 16
197
197
  },
198
198
  "extensions": {
199
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensions"
199
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensions"
200
200
  },
201
201
  "requiredExtensions": {
202
202
  "type": "array",
203
203
  "items": {
204
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
204
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
205
205
  },
206
206
  "minItems": 0,
207
207
  "maxItems": 16,
@@ -227,34 +227,34 @@
227
227
  "type": "object",
228
228
  "properties": {
229
229
  "schemaVersion": {
230
- "const": "0.3.0"
230
+ "const": "0.4.0"
231
231
  },
232
232
  "kind": {
233
233
  "const": "task-report"
234
234
  },
235
235
  "binding": {
236
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/binding"
236
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/binding"
237
237
  },
238
238
  "correlationId": {
239
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
239
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
240
240
  },
241
241
  "planId": {
242
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
242
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
243
243
  },
244
244
  "reportId": {
245
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
245
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
246
246
  },
247
247
  "taskId": {
248
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
248
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
249
249
  },
250
250
  "contextRevision": {
251
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
251
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
252
252
  },
253
253
  "recordedAt": {
254
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
254
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
255
255
  },
256
256
  "status": {
257
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/taskStatus"
257
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/taskStatus"
258
258
  },
259
259
  "summary": {
260
260
  "type": "string",
@@ -272,15 +272,15 @@
272
272
  "maxItems": 16
273
273
  },
274
274
  "nextContextReportId": {
275
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
275
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
276
276
  },
277
277
  "extensions": {
278
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensions"
278
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensions"
279
279
  },
280
280
  "requiredExtensions": {
281
281
  "type": "array",
282
282
  "items": {
283
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
283
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
284
284
  },
285
285
  "minItems": 0,
286
286
  "maxItems": 16,
@@ -307,34 +307,34 @@
307
307
  "type": "object",
308
308
  "properties": {
309
309
  "schemaVersion": {
310
- "const": "0.3.0"
310
+ "const": "0.4.0"
311
311
  },
312
312
  "kind": {
313
313
  "const": "plan-cancel-request"
314
314
  },
315
315
  "binding": {
316
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/binding"
316
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/binding"
317
317
  },
318
318
  "correlationId": {
319
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
319
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
320
320
  },
321
321
  "planId": {
322
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
322
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
323
323
  },
324
324
  "cancellationId": {
325
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
325
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
326
326
  },
327
327
  "taskIds": {
328
328
  "type": "array",
329
329
  "items": {
330
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
330
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
331
331
  },
332
332
  "minItems": 1,
333
333
  "maxItems": 16,
334
334
  "uniqueItems": true
335
335
  },
336
336
  "requestedAt": {
337
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
337
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
338
338
  },
339
339
  "reason": {
340
340
  "type": "string",
@@ -342,12 +342,12 @@
342
342
  "maxLength": 500
343
343
  },
344
344
  "extensions": {
345
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensions"
345
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensions"
346
346
  },
347
347
  "requiredExtensions": {
348
348
  "type": "array",
349
349
  "items": {
350
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
350
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
351
351
  },
352
352
  "minItems": 0,
353
353
  "maxItems": 16,
@@ -371,25 +371,25 @@
371
371
  "type": "object",
372
372
  "properties": {
373
373
  "schemaVersion": {
374
- "const": "0.3.0"
374
+ "const": "0.4.0"
375
375
  },
376
376
  "kind": {
377
377
  "const": "plan-cancel-result"
378
378
  },
379
379
  "binding": {
380
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/binding"
380
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/binding"
381
381
  },
382
382
  "correlationId": {
383
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
383
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
384
384
  },
385
385
  "planId": {
386
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
386
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
387
387
  },
388
388
  "cancellationId": {
389
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
389
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
390
390
  },
391
391
  "recordedAt": {
392
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/utc"
392
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/utc"
393
393
  },
394
394
  "taskResults": {
395
395
  "type": "array",
@@ -397,7 +397,7 @@
397
397
  "type": "object",
398
398
  "properties": {
399
399
  "taskId": {
400
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/id"
400
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/id"
401
401
  },
402
402
  "status": {
403
403
  "enum": ["cancelled", "already-finished", "rejected", "unknown"]
@@ -415,12 +415,12 @@
415
415
  "maxItems": 16
416
416
  },
417
417
  "extensions": {
418
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensions"
418
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensions"
419
419
  },
420
420
  "requiredExtensions": {
421
421
  "type": "array",
422
422
  "items": {
423
- "$ref": "urn:ifsoul:protocol:0.3.0:common#/$defs/extensionName"
423
+ "$ref": "urn:ifsoul:protocol:0.4.0:common#/$defs/extensionName"
424
424
  },
425
425
  "minItems": 0,
426
426
  "maxItems": 16,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "urn:ifsoul:protocol:0.3.0:provider-common",
3
+ "$id": "urn:ifsoul:protocol:0.4.0:provider-common",
4
4
  "description": "Shared definitions, not an exchange document.",
5
5
  "$defs": {
6
6
  "id": {
@@ -19,7 +19,7 @@
19
19
  "extensions": {
20
20
  "type": "object",
21
21
  "propertyNames": {
22
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/extensionName"
22
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/extensionName"
23
23
  },
24
24
  "additionalProperties": true
25
25
  },
@@ -36,7 +36,7 @@
36
36
  "type": "object",
37
37
  "properties": {
38
38
  "timelineId": {
39
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
39
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
40
40
  },
41
41
  "tick": {
42
42
  "type": "integer",
@@ -56,7 +56,7 @@
56
56
  "subjectIds": {
57
57
  "type": "array",
58
58
  "items": {
59
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
59
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
60
60
  },
61
61
  "minItems": 0,
62
62
  "uniqueItems": true
@@ -82,7 +82,7 @@
82
82
  "traits": {
83
83
  "type": "object",
84
84
  "propertyNames": {
85
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
85
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
86
86
  },
87
87
  "additionalProperties": {
88
88
  "anyOf": [
@@ -106,7 +106,7 @@
106
106
  "type": "object",
107
107
  "properties": {
108
108
  "code": {
109
- "$ref": "urn:ifsoul:protocol:0.3.0:provider-common#/$defs/id"
109
+ "$ref": "urn:ifsoul:protocol:0.4.0:provider-common#/$defs/id"
110
110
  },
111
111
  "message": {
112
112
  "type": "string",