@osstack/protocol 0.20.0 → 0.22.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/dist/attention.d.ts +863 -0
- package/dist/attention.d.ts.map +1 -0
- package/dist/attention.js +112 -0
- package/dist/attention.js.map +1 -0
- package/dist/autonomy.d.ts +14 -14
- package/dist/delivery-contract.d.ts +734 -0
- package/dist/delivery-contract.d.ts.map +1 -0
- package/dist/delivery-contract.js +111 -0
- package/dist/delivery-contract.js.map +1 -0
- package/dist/envelope.d.ts +42 -42
- package/dist/event.d.ts +4 -4
- package/dist/follow-up-delivery.d.ts +1831 -0
- package/dist/follow-up-delivery.d.ts.map +1 -0
- package/dist/follow-up-delivery.js +174 -0
- package/dist/follow-up-delivery.js.map +1 -0
- package/dist/follow-up.d.ts +1100 -0
- package/dist/follow-up.d.ts.map +1 -0
- package/dist/follow-up.js +28 -0
- package/dist/follow-up.js.map +1 -0
- package/dist/generate.d.ts.map +1 -1
- package/dist/generate.js +18 -0
- package/dist/generate.js.map +1 -1
- package/dist/graph-checkpoint.d.ts +6 -6
- package/dist/graph-worker.d.ts +26 -26
- package/dist/graph.d.ts +886 -592
- package/dist/graph.d.ts.map +1 -1
- package/dist/graph.js +4 -0
- package/dist/graph.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/policy.d.ts +10 -10
- package/dist/run.d.ts +4 -4
- package/dist/session-continuation-grant.d.ts +36 -36
- package/dist/session-continuation.d.ts +26 -26
- package/dist/task.d.ts +2 -2
- package/package.json +10 -9
- package/schemas/attention-inbox.schema.json +271 -0
- package/schemas/attention-status.schema.json +434 -0
- package/schemas/delivery-contract-v2.schema.json +238 -0
- package/schemas/delivery-verification-receipt-v2.schema.json +223 -0
- package/schemas/follow-up-create-params.schema.json +78 -0
- package/schemas/follow-up-draft-params.schema.json +39 -0
- package/schemas/follow-up-list-params.schema.json +42 -0
- package/schemas/follow-up-list-result.schema.json +241 -0
- package/schemas/follow-up-mutation-result.schema.json +361 -0
- package/schemas/follow-up-obligation.schema.json +343 -0
- package/schemas/follow-up-resolve-params.schema.json +53 -0
- package/schemas/frozen-delivery-contract-v2.schema.json +258 -0
- package/schemas/graph.schema.json +30 -0
- package/LICENSE +0 -21
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "OSStack Delivery Contract v2",
|
|
4
|
+
"$comment": "Shape only. Zod additionally enforces completion/action/publication constraints, unique checks, canonical references and scout restrictions. Contract fields constrain existing host authorization; they never grant it.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"schema_version": {
|
|
8
|
+
"type": "number",
|
|
9
|
+
"const": 2
|
|
10
|
+
},
|
|
11
|
+
"contract_id": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"minLength": 1,
|
|
14
|
+
"maxLength": 256
|
|
15
|
+
},
|
|
16
|
+
"parent_contract_id": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1,
|
|
19
|
+
"maxLength": 256
|
|
20
|
+
},
|
|
21
|
+
"task_id": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1,
|
|
24
|
+
"maxLength": 256
|
|
25
|
+
},
|
|
26
|
+
"canonical_repo": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"maxLength": 4096
|
|
30
|
+
},
|
|
31
|
+
"mode": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"enum": [
|
|
34
|
+
"scout",
|
|
35
|
+
"implement"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"base_head": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"
|
|
41
|
+
},
|
|
42
|
+
"goal": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"minLength": 1,
|
|
45
|
+
"maxLength": 16000
|
|
46
|
+
},
|
|
47
|
+
"required_checks": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"properties": {
|
|
52
|
+
"id": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"minLength": 1,
|
|
55
|
+
"maxLength": 256
|
|
56
|
+
},
|
|
57
|
+
"registry_ref": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"required": [
|
|
63
|
+
"id",
|
|
64
|
+
"registry_ref"
|
|
65
|
+
],
|
|
66
|
+
"additionalProperties": false
|
|
67
|
+
},
|
|
68
|
+
"minItems": 1,
|
|
69
|
+
"maxItems": 100
|
|
70
|
+
},
|
|
71
|
+
"review_policy_ref": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"minLength": 1,
|
|
74
|
+
"maxLength": 256
|
|
75
|
+
},
|
|
76
|
+
"requested_completion": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"enum": [
|
|
79
|
+
"local_verified",
|
|
80
|
+
"pr_opened",
|
|
81
|
+
"merged",
|
|
82
|
+
"deployed"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"allowed_paths": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"items": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"minLength": 1,
|
|
90
|
+
"maxLength": 4096
|
|
91
|
+
},
|
|
92
|
+
"minItems": 1,
|
|
93
|
+
"maxItems": 1000
|
|
94
|
+
},
|
|
95
|
+
"requested_actions": {
|
|
96
|
+
"type": "array",
|
|
97
|
+
"items": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"enum": [
|
|
100
|
+
"build",
|
|
101
|
+
"verify",
|
|
102
|
+
"commit",
|
|
103
|
+
"push",
|
|
104
|
+
"open_pr",
|
|
105
|
+
"merge",
|
|
106
|
+
"deploy:staging",
|
|
107
|
+
"deploy:production"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"minItems": 1,
|
|
111
|
+
"maxItems": 8
|
|
112
|
+
},
|
|
113
|
+
"budget_ref": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"minLength": 1,
|
|
116
|
+
"maxLength": 256
|
|
117
|
+
},
|
|
118
|
+
"policy_digest": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
121
|
+
},
|
|
122
|
+
"publication_scope": {
|
|
123
|
+
"anyOf": [
|
|
124
|
+
{
|
|
125
|
+
"type": "object",
|
|
126
|
+
"properties": {
|
|
127
|
+
"mode": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"const": "none"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"required": [
|
|
133
|
+
"mode"
|
|
134
|
+
],
|
|
135
|
+
"additionalProperties": false
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"type": "object",
|
|
139
|
+
"properties": {
|
|
140
|
+
"mode": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"enum": [
|
|
143
|
+
"push",
|
|
144
|
+
"draft_pr",
|
|
145
|
+
"review_pr"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"hostname": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"const": "github.com"
|
|
151
|
+
},
|
|
152
|
+
"repository": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"pattern": "^[A-Za-z0-9_.-]+\\/[A-Za-z0-9_.-]+$"
|
|
155
|
+
},
|
|
156
|
+
"remote": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"
|
|
159
|
+
},
|
|
160
|
+
"base_ref": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"minLength": 1,
|
|
163
|
+
"maxLength": 255
|
|
164
|
+
},
|
|
165
|
+
"head_ref": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"minLength": 1,
|
|
168
|
+
"maxLength": 255
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"required": [
|
|
172
|
+
"mode",
|
|
173
|
+
"hostname",
|
|
174
|
+
"repository",
|
|
175
|
+
"remote",
|
|
176
|
+
"base_ref",
|
|
177
|
+
"head_ref"
|
|
178
|
+
],
|
|
179
|
+
"additionalProperties": false
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
"merge_authority": {
|
|
184
|
+
"anyOf": [
|
|
185
|
+
{
|
|
186
|
+
"type": "object",
|
|
187
|
+
"properties": {
|
|
188
|
+
"mode": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"const": "none"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"required": [
|
|
194
|
+
"mode"
|
|
195
|
+
],
|
|
196
|
+
"additionalProperties": false
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"type": "object",
|
|
200
|
+
"properties": {
|
|
201
|
+
"mode": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"const": "existing_guarded_policy"
|
|
204
|
+
},
|
|
205
|
+
"policy_ref": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"required": [
|
|
211
|
+
"mode",
|
|
212
|
+
"policy_ref"
|
|
213
|
+
],
|
|
214
|
+
"additionalProperties": false
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"required": [
|
|
220
|
+
"schema_version",
|
|
221
|
+
"contract_id",
|
|
222
|
+
"task_id",
|
|
223
|
+
"canonical_repo",
|
|
224
|
+
"mode",
|
|
225
|
+
"base_head",
|
|
226
|
+
"goal",
|
|
227
|
+
"required_checks",
|
|
228
|
+
"review_policy_ref",
|
|
229
|
+
"requested_completion",
|
|
230
|
+
"allowed_paths",
|
|
231
|
+
"requested_actions",
|
|
232
|
+
"budget_ref",
|
|
233
|
+
"policy_digest",
|
|
234
|
+
"publication_scope",
|
|
235
|
+
"merge_authority"
|
|
236
|
+
],
|
|
237
|
+
"additionalProperties": false
|
|
238
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "OSStack Host Delivery Verification Receipt v2",
|
|
4
|
+
"$comment": "Parsing does not authenticate provenance. Verify host-owned receipt, run/task/candidate/contract/policy binding, actual command results and independent review before deriving completion.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"schema_version": {
|
|
8
|
+
"type": "number",
|
|
9
|
+
"const": 2
|
|
10
|
+
},
|
|
11
|
+
"source": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "osstack_loop_host"
|
|
14
|
+
},
|
|
15
|
+
"run_id": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"minLength": 1,
|
|
18
|
+
"maxLength": 256
|
|
19
|
+
},
|
|
20
|
+
"task_id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"maxLength": 256
|
|
24
|
+
},
|
|
25
|
+
"run_kind": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"enum": [
|
|
28
|
+
"guarded-local",
|
|
29
|
+
"guarded-git"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"contract_digest": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
35
|
+
},
|
|
36
|
+
"policy_digest": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
39
|
+
},
|
|
40
|
+
"candidate": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"properties": {
|
|
43
|
+
"base_head": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"
|
|
46
|
+
},
|
|
47
|
+
"head": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"
|
|
50
|
+
},
|
|
51
|
+
"tree_id": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"
|
|
54
|
+
},
|
|
55
|
+
"diff_digest": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"required": [
|
|
61
|
+
"base_head",
|
|
62
|
+
"head",
|
|
63
|
+
"tree_id",
|
|
64
|
+
"diff_digest"
|
|
65
|
+
],
|
|
66
|
+
"additionalProperties": false
|
|
67
|
+
},
|
|
68
|
+
"workspace_state_digest": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
71
|
+
},
|
|
72
|
+
"checks": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"properties": {
|
|
77
|
+
"id": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"minLength": 1,
|
|
80
|
+
"maxLength": 256
|
|
81
|
+
},
|
|
82
|
+
"registry_ref": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
85
|
+
},
|
|
86
|
+
"command_digest": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
89
|
+
},
|
|
90
|
+
"exit_code": {
|
|
91
|
+
"type": "integer"
|
|
92
|
+
},
|
|
93
|
+
"duration_ms": {
|
|
94
|
+
"type": "number",
|
|
95
|
+
"minimum": 0
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"required": [
|
|
99
|
+
"id",
|
|
100
|
+
"registry_ref",
|
|
101
|
+
"command_digest",
|
|
102
|
+
"exit_code",
|
|
103
|
+
"duration_ms"
|
|
104
|
+
],
|
|
105
|
+
"additionalProperties": false
|
|
106
|
+
},
|
|
107
|
+
"minItems": 1,
|
|
108
|
+
"maxItems": 200
|
|
109
|
+
},
|
|
110
|
+
"review": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"properties": {
|
|
113
|
+
"policy_ref": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"minLength": 1,
|
|
116
|
+
"maxLength": 256
|
|
117
|
+
},
|
|
118
|
+
"verdict": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"enum": [
|
|
121
|
+
"approved",
|
|
122
|
+
"changes_requested",
|
|
123
|
+
"blocked",
|
|
124
|
+
"inconclusive"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
"builder_agent_id": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"minLength": 1,
|
|
130
|
+
"maxLength": 256
|
|
131
|
+
},
|
|
132
|
+
"reviewer_agent_id": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"minLength": 1,
|
|
135
|
+
"maxLength": 256
|
|
136
|
+
},
|
|
137
|
+
"builder_provider": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"minLength": 1,
|
|
140
|
+
"maxLength": 256
|
|
141
|
+
},
|
|
142
|
+
"builder_model": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"minLength": 1,
|
|
145
|
+
"maxLength": 256
|
|
146
|
+
},
|
|
147
|
+
"reviewer_provider": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"minLength": 1,
|
|
150
|
+
"maxLength": 256
|
|
151
|
+
},
|
|
152
|
+
"reviewer_model": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"minLength": 1,
|
|
155
|
+
"maxLength": 256
|
|
156
|
+
},
|
|
157
|
+
"identity_source": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"const": "reported"
|
|
160
|
+
},
|
|
161
|
+
"artifact_digest": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"required": [
|
|
167
|
+
"policy_ref",
|
|
168
|
+
"verdict",
|
|
169
|
+
"builder_agent_id",
|
|
170
|
+
"reviewer_agent_id",
|
|
171
|
+
"builder_provider",
|
|
172
|
+
"builder_model",
|
|
173
|
+
"reviewer_provider",
|
|
174
|
+
"reviewer_model",
|
|
175
|
+
"identity_source",
|
|
176
|
+
"artifact_digest"
|
|
177
|
+
],
|
|
178
|
+
"additionalProperties": false
|
|
179
|
+
},
|
|
180
|
+
"observed_at": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"format": "date-time"
|
|
183
|
+
},
|
|
184
|
+
"context_receipt_refs": {
|
|
185
|
+
"type": "array",
|
|
186
|
+
"items": {
|
|
187
|
+
"type": "object",
|
|
188
|
+
"properties": {
|
|
189
|
+
"path": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"minLength": 1
|
|
192
|
+
},
|
|
193
|
+
"digest": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"required": [
|
|
199
|
+
"path",
|
|
200
|
+
"digest"
|
|
201
|
+
],
|
|
202
|
+
"additionalProperties": false
|
|
203
|
+
},
|
|
204
|
+
"maxItems": 100,
|
|
205
|
+
"default": []
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"required": [
|
|
209
|
+
"schema_version",
|
|
210
|
+
"source",
|
|
211
|
+
"run_id",
|
|
212
|
+
"task_id",
|
|
213
|
+
"run_kind",
|
|
214
|
+
"contract_digest",
|
|
215
|
+
"policy_digest",
|
|
216
|
+
"candidate",
|
|
217
|
+
"workspace_state_digest",
|
|
218
|
+
"checks",
|
|
219
|
+
"review",
|
|
220
|
+
"observed_at"
|
|
221
|
+
],
|
|
222
|
+
"additionalProperties": false
|
|
223
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "OSStack FollowUpCreateParams",
|
|
4
|
+
"$comment": "Local ledger only; parsing does not authorize remote delivery. Runtime validates canonical repository, source binding, revisions and response byte budget.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"repo_path": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"maxLength": 4096
|
|
11
|
+
},
|
|
12
|
+
"default_tenant": {
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"const": true
|
|
15
|
+
},
|
|
16
|
+
"source_session_id": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1,
|
|
19
|
+
"maxLength": 256
|
|
20
|
+
},
|
|
21
|
+
"expected_source_version": {
|
|
22
|
+
"type": "integer",
|
|
23
|
+
"exclusiveMinimum": 0,
|
|
24
|
+
"maximum": 9007199254740990
|
|
25
|
+
},
|
|
26
|
+
"idempotency_key": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"maxLength": 128
|
|
30
|
+
},
|
|
31
|
+
"actor": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"minLength": 1,
|
|
34
|
+
"maxLength": 128
|
|
35
|
+
},
|
|
36
|
+
"promise": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"minLength": 1,
|
|
39
|
+
"maxLength": 4096
|
|
40
|
+
},
|
|
41
|
+
"destination_ref": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"const": "local_operator"
|
|
44
|
+
},
|
|
45
|
+
"resolution_condition": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"enum": [
|
|
48
|
+
"manual",
|
|
49
|
+
"session_completed"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"due_at": {
|
|
53
|
+
"anyOf": [
|
|
54
|
+
{
|
|
55
|
+
"type": "integer",
|
|
56
|
+
"minimum": 0,
|
|
57
|
+
"maximum": 8640000000000000
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "null"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"default": null
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": [
|
|
67
|
+
"repo_path",
|
|
68
|
+
"default_tenant",
|
|
69
|
+
"source_session_id",
|
|
70
|
+
"expected_source_version",
|
|
71
|
+
"idempotency_key",
|
|
72
|
+
"actor",
|
|
73
|
+
"promise",
|
|
74
|
+
"destination_ref",
|
|
75
|
+
"resolution_condition"
|
|
76
|
+
],
|
|
77
|
+
"additionalProperties": false
|
|
78
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "OSStack FollowUpDraftParams",
|
|
4
|
+
"$comment": "Local ledger only; parsing does not authorize remote delivery. Runtime validates canonical repository, source binding, revisions and response byte budget.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"repo_path": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"maxLength": 4096
|
|
11
|
+
},
|
|
12
|
+
"default_tenant": {
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"const": true
|
|
15
|
+
},
|
|
16
|
+
"obligation_id": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "uuid"
|
|
19
|
+
},
|
|
20
|
+
"expected_revision": {
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"exclusiveMinimum": 0,
|
|
23
|
+
"maximum": 9007199254740990
|
|
24
|
+
},
|
|
25
|
+
"actor": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1,
|
|
28
|
+
"maxLength": 128
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": [
|
|
32
|
+
"repo_path",
|
|
33
|
+
"default_tenant",
|
|
34
|
+
"obligation_id",
|
|
35
|
+
"expected_revision",
|
|
36
|
+
"actor"
|
|
37
|
+
],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "OSStack FollowUpListParams",
|
|
4
|
+
"$comment": "Local ledger only; parsing does not authorize remote delivery. Runtime validates canonical repository, source binding, revisions and response byte budget.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"repo_path": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"maxLength": 4096
|
|
11
|
+
},
|
|
12
|
+
"default_tenant": {
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"const": true
|
|
15
|
+
},
|
|
16
|
+
"limit": {
|
|
17
|
+
"type": "integer",
|
|
18
|
+
"minimum": 1,
|
|
19
|
+
"maximum": 50,
|
|
20
|
+
"default": 20
|
|
21
|
+
},
|
|
22
|
+
"cursor": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1,
|
|
25
|
+
"maxLength": 1024
|
|
26
|
+
},
|
|
27
|
+
"state": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": [
|
|
30
|
+
"open",
|
|
31
|
+
"drafted",
|
|
32
|
+
"fulfilled_local",
|
|
33
|
+
"waived"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": [
|
|
38
|
+
"repo_path",
|
|
39
|
+
"default_tenant"
|
|
40
|
+
],
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
}
|