@harness-control/protocol 0.3.0 → 0.4.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 (27) hide show
  1. package/dist/accounts.d.ts +312 -0
  2. package/dist/accounts.js +132 -0
  3. package/dist/index.d.ts +136 -156
  4. package/dist/index.js +8 -10
  5. package/fixtures/conformance/invalid/accounts-negative-quota.json +35 -0
  6. package/fixtures/conformance/invalid/accounts-secret.json +36 -0
  7. package/fixtures/conformance/invalid/local-action-lease-binding-mismatch.json +1 -3
  8. package/fixtures/conformance/invalid/local-action-missing-turn-id.json +0 -1
  9. package/fixtures/conformance/invalid/local-action-patch-missing-base-hash.json +1 -3
  10. package/fixtures/conformance/invalid/local-action-shell-missing-approval.json +4 -4
  11. package/fixtures/conformance/valid/accounts-read.json +11 -0
  12. package/fixtures/conformance/valid/accounts-snapshot.json +35 -0
  13. package/fixtures/conformance/valid/accounts-unavailable.json +21 -0
  14. package/fixtures/conformance/valid/local-action-dev-server-start.json +5 -4
  15. package/fixtures/conformance/valid/local-action-dev-server-stop.json +1 -3
  16. package/fixtures/conformance/valid/local-action-error.json +1 -3
  17. package/fixtures/conformance/valid/local-action-filesystem-list.json +1 -3
  18. package/fixtures/conformance/valid/local-action-filesystem-patch.json +1 -3
  19. package/fixtures/conformance/valid/local-action-filesystem-read.json +1 -3
  20. package/fixtures/conformance/valid/local-action-filesystem-write.json +1 -3
  21. package/fixtures/conformance/valid/local-action-git-diff.json +4 -4
  22. package/fixtures/conformance/valid/local-action-git-status.json +1 -3
  23. package/fixtures/conformance/valid/local-action-response.json +4 -4
  24. package/fixtures/conformance/valid/local-action-shell-exec.json +4 -4
  25. package/fixtures/conformance/valid/session-start-with-leases.json +13 -8
  26. package/package.json +1 -1
  27. package/schemas/hcp-message.schema.json +306 -244
@@ -1,6 +1,293 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "oneOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string",
9
+ "minLength": 1
10
+ },
11
+ "type": {
12
+ "type": "string",
13
+ "const": "host.accounts.read"
14
+ },
15
+ "version": {
16
+ "type": "string",
17
+ "const": "hcp.v0"
18
+ },
19
+ "sent_at": {
20
+ "type": "string",
21
+ "format": "date-time",
22
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
23
+ },
24
+ "payload": {
25
+ "type": "object",
26
+ "properties": {
27
+ "provider_instance_ids": {
28
+ "minItems": 1,
29
+ "maxItems": 32,
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string",
33
+ "minLength": 1,
34
+ "maxLength": 256
35
+ }
36
+ }
37
+ },
38
+ "additionalProperties": false
39
+ },
40
+ "metadata": {
41
+ "type": "object",
42
+ "propertyNames": {
43
+ "type": "string"
44
+ },
45
+ "additionalProperties": {}
46
+ }
47
+ },
48
+ "required": [
49
+ "id",
50
+ "type",
51
+ "version",
52
+ "sent_at",
53
+ "payload"
54
+ ],
55
+ "additionalProperties": false
56
+ },
57
+ {
58
+ "type": "object",
59
+ "properties": {
60
+ "id": {
61
+ "type": "string",
62
+ "minLength": 1
63
+ },
64
+ "type": {
65
+ "type": "string",
66
+ "const": "host.accounts.snapshot"
67
+ },
68
+ "version": {
69
+ "type": "string",
70
+ "const": "hcp.v0"
71
+ },
72
+ "sent_at": {
73
+ "type": "string",
74
+ "format": "date-time",
75
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
76
+ },
77
+ "payload": {
78
+ "type": "object",
79
+ "properties": {
80
+ "request_id": {
81
+ "type": "string",
82
+ "minLength": 1,
83
+ "maxLength": 256
84
+ },
85
+ "host_id": {
86
+ "type": "string",
87
+ "minLength": 1,
88
+ "maxLength": 256
89
+ },
90
+ "providers": {
91
+ "maxItems": 32,
92
+ "type": "array",
93
+ "items": {
94
+ "type": "object",
95
+ "properties": {
96
+ "provider_instance_id": {
97
+ "type": "string",
98
+ "minLength": 1,
99
+ "maxLength": 256
100
+ },
101
+ "observation": {
102
+ "oneOf": [
103
+ {
104
+ "type": "object",
105
+ "properties": {
106
+ "status": {
107
+ "type": "string",
108
+ "const": "available"
109
+ },
110
+ "observed_at": {
111
+ "type": "string",
112
+ "format": "date-time",
113
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
114
+ },
115
+ "account": {
116
+ "type": "object",
117
+ "properties": {
118
+ "key": {
119
+ "type": "string",
120
+ "minLength": 1,
121
+ "maxLength": 256
122
+ },
123
+ "provider": {
124
+ "type": "string",
125
+ "minLength": 1,
126
+ "maxLength": 256
127
+ },
128
+ "scope_source": {
129
+ "type": "string",
130
+ "enum": [
131
+ "provider",
132
+ "operator",
133
+ "local"
134
+ ]
135
+ },
136
+ "label": {
137
+ "type": "string",
138
+ "minLength": 1,
139
+ "maxLength": 256
140
+ }
141
+ },
142
+ "required": [
143
+ "key",
144
+ "provider",
145
+ "scope_source",
146
+ "label"
147
+ ],
148
+ "additionalProperties": false
149
+ },
150
+ "source": {
151
+ "type": "string",
152
+ "enum": [
153
+ "codex_app_server",
154
+ "claude_sdk_experimental"
155
+ ]
156
+ },
157
+ "plan": {
158
+ "type": "string",
159
+ "minLength": 1,
160
+ "maxLength": 256
161
+ },
162
+ "limits": {
163
+ "maxItems": 64,
164
+ "type": "array",
165
+ "items": {
166
+ "type": "object",
167
+ "properties": {
168
+ "id": {
169
+ "type": "string",
170
+ "minLength": 1,
171
+ "maxLength": 256
172
+ },
173
+ "label": {
174
+ "type": "string",
175
+ "minLength": 1,
176
+ "maxLength": 256
177
+ },
178
+ "kind": {
179
+ "type": "string",
180
+ "enum": [
181
+ "quota",
182
+ "spend"
183
+ ]
184
+ },
185
+ "used_percent": {
186
+ "type": "number",
187
+ "minimum": 0
188
+ },
189
+ "resets_at": {
190
+ "type": "string",
191
+ "format": "date-time",
192
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
193
+ },
194
+ "window_minutes": {
195
+ "type": "integer",
196
+ "exclusiveMinimum": 0,
197
+ "maximum": 9007199254740991
198
+ }
199
+ },
200
+ "required": [
201
+ "id",
202
+ "label",
203
+ "kind"
204
+ ],
205
+ "additionalProperties": false
206
+ }
207
+ }
208
+ },
209
+ "required": [
210
+ "status",
211
+ "observed_at",
212
+ "account",
213
+ "source",
214
+ "limits"
215
+ ],
216
+ "additionalProperties": false
217
+ },
218
+ {
219
+ "type": "object",
220
+ "properties": {
221
+ "status": {
222
+ "type": "string",
223
+ "const": "unavailable"
224
+ },
225
+ "observed_at": {
226
+ "type": "string",
227
+ "format": "date-time",
228
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
229
+ },
230
+ "reason": {
231
+ "type": "string",
232
+ "enum": [
233
+ "disabled",
234
+ "unsupported",
235
+ "unauthenticated",
236
+ "not_applicable",
237
+ "timeout",
238
+ "provider_error",
239
+ "invalid_response"
240
+ ]
241
+ },
242
+ "message": {
243
+ "type": "string",
244
+ "minLength": 1,
245
+ "maxLength": 512
246
+ }
247
+ },
248
+ "required": [
249
+ "status",
250
+ "observed_at",
251
+ "reason",
252
+ "message"
253
+ ],
254
+ "additionalProperties": false
255
+ }
256
+ ]
257
+ }
258
+ },
259
+ "required": [
260
+ "provider_instance_id",
261
+ "observation"
262
+ ],
263
+ "additionalProperties": false
264
+ }
265
+ }
266
+ },
267
+ "required": [
268
+ "request_id",
269
+ "host_id",
270
+ "providers"
271
+ ],
272
+ "additionalProperties": false
273
+ },
274
+ "metadata": {
275
+ "type": "object",
276
+ "propertyNames": {
277
+ "type": "string"
278
+ },
279
+ "additionalProperties": {}
280
+ }
281
+ },
282
+ "required": [
283
+ "id",
284
+ "type",
285
+ "version",
286
+ "sent_at",
287
+ "payload"
288
+ ],
289
+ "additionalProperties": false
290
+ },
4
291
  {
5
292
  "type": "object",
6
293
  "properties": {
@@ -1604,26 +1891,10 @@
1604
1891
  "type": "string",
1605
1892
  "minLength": 1
1606
1893
  },
1607
- "org_id": {
1608
- "type": "string",
1609
- "minLength": 1
1610
- },
1611
1894
  "actor_id": {
1612
1895
  "type": "string",
1613
1896
  "minLength": 1
1614
1897
  },
1615
- "workflow_id": {
1616
- "type": "string",
1617
- "minLength": 1
1618
- },
1619
- "run_id": {
1620
- "type": "string",
1621
- "minLength": 1
1622
- },
1623
- "node_id": {
1624
- "type": "string",
1625
- "minLength": 1
1626
- },
1627
1898
  "hcp_session_id": {
1628
1899
  "type": "string",
1629
1900
  "minLength": 1
@@ -1755,10 +2026,6 @@
1755
2026
  },
1756
2027
  "required": [
1757
2028
  "lease_id",
1758
- "org_id",
1759
- "workflow_id",
1760
- "run_id",
1761
- "node_id",
1762
2029
  "hcp_session_id",
1763
2030
  "execution_host_id",
1764
2031
  "provider_instance_id",
@@ -2787,18 +3054,13 @@
2787
3054
  "provider_instance_id": {
2788
3055
  "type": "string",
2789
3056
  "minLength": 1
2790
- },
2791
- "run_id": {
2792
- "type": "string",
2793
- "minLength": 1
2794
3057
  }
2795
3058
  },
2796
3059
  "required": [
2797
3060
  "session_id",
2798
3061
  "turn_id",
2799
3062
  "workspace_id",
2800
- "provider_instance_id",
2801
- "run_id"
3063
+ "provider_instance_id"
2802
3064
  ],
2803
3065
  "additionalProperties": false
2804
3066
  },
@@ -2817,10 +3079,6 @@
2817
3079
  "type": "string",
2818
3080
  "const": "workspace_read"
2819
3081
  },
2820
- "run_id": {
2821
- "type": "string",
2822
- "minLength": 1
2823
- },
2824
3082
  "hcp_session_id": {
2825
3083
  "type": "string",
2826
3084
  "minLength": 1
@@ -2847,7 +3105,6 @@
2847
3105
  "lease_id",
2848
3106
  "capability_id",
2849
3107
  "scope",
2850
- "run_id",
2851
3108
  "hcp_session_id",
2852
3109
  "execution_host_id",
2853
3110
  "provider_instance_id",
@@ -3115,18 +3372,13 @@
3115
3372
  "provider_instance_id": {
3116
3373
  "type": "string",
3117
3374
  "minLength": 1
3118
- },
3119
- "run_id": {
3120
- "type": "string",
3121
- "minLength": 1
3122
3375
  }
3123
3376
  },
3124
3377
  "required": [
3125
3378
  "session_id",
3126
3379
  "turn_id",
3127
3380
  "workspace_id",
3128
- "provider_instance_id",
3129
- "run_id"
3381
+ "provider_instance_id"
3130
3382
  ],
3131
3383
  "additionalProperties": false
3132
3384
  },
@@ -3145,10 +3397,6 @@
3145
3397
  "type": "string",
3146
3398
  "const": "workspace_read"
3147
3399
  },
3148
- "run_id": {
3149
- "type": "string",
3150
- "minLength": 1
3151
- },
3152
3400
  "hcp_session_id": {
3153
3401
  "type": "string",
3154
3402
  "minLength": 1
@@ -3175,7 +3423,6 @@
3175
3423
  "lease_id",
3176
3424
  "capability_id",
3177
3425
  "scope",
3178
- "run_id",
3179
3426
  "hcp_session_id",
3180
3427
  "execution_host_id",
3181
3428
  "provider_instance_id",
@@ -3431,18 +3678,13 @@
3431
3678
  "provider_instance_id": {
3432
3679
  "type": "string",
3433
3680
  "minLength": 1
3434
- },
3435
- "run_id": {
3436
- "type": "string",
3437
- "minLength": 1
3438
3681
  }
3439
3682
  },
3440
3683
  "required": [
3441
3684
  "session_id",
3442
3685
  "turn_id",
3443
3686
  "workspace_id",
3444
- "provider_instance_id",
3445
- "run_id"
3687
+ "provider_instance_id"
3446
3688
  ],
3447
3689
  "additionalProperties": false
3448
3690
  },
@@ -3461,10 +3703,6 @@
3461
3703
  "type": "string",
3462
3704
  "const": "workspace_write"
3463
3705
  },
3464
- "run_id": {
3465
- "type": "string",
3466
- "minLength": 1
3467
- },
3468
3706
  "hcp_session_id": {
3469
3707
  "type": "string",
3470
3708
  "minLength": 1
@@ -3491,7 +3729,6 @@
3491
3729
  "lease_id",
3492
3730
  "capability_id",
3493
3731
  "scope",
3494
- "run_id",
3495
3732
  "hcp_session_id",
3496
3733
  "execution_host_id",
3497
3734
  "provider_instance_id",
@@ -3760,18 +3997,13 @@
3760
3997
  "provider_instance_id": {
3761
3998
  "type": "string",
3762
3999
  "minLength": 1
3763
- },
3764
- "run_id": {
3765
- "type": "string",
3766
- "minLength": 1
3767
4000
  }
3768
4001
  },
3769
4002
  "required": [
3770
4003
  "session_id",
3771
4004
  "turn_id",
3772
4005
  "workspace_id",
3773
- "provider_instance_id",
3774
- "run_id"
4006
+ "provider_instance_id"
3775
4007
  ],
3776
4008
  "additionalProperties": false
3777
4009
  },
@@ -3790,10 +4022,6 @@
3790
4022
  "type": "string",
3791
4023
  "const": "workspace_write"
3792
4024
  },
3793
- "run_id": {
3794
- "type": "string",
3795
- "minLength": 1
3796
- },
3797
4025
  "hcp_session_id": {
3798
4026
  "type": "string",
3799
4027
  "minLength": 1
@@ -3820,7 +4048,6 @@
3820
4048
  "lease_id",
3821
4049
  "capability_id",
3822
4050
  "scope",
3823
- "run_id",
3824
4051
  "hcp_session_id",
3825
4052
  "execution_host_id",
3826
4053
  "provider_instance_id",
@@ -4089,18 +4316,13 @@
4089
4316
  "provider_instance_id": {
4090
4317
  "type": "string",
4091
4318
  "minLength": 1
4092
- },
4093
- "run_id": {
4094
- "type": "string",
4095
- "minLength": 1
4096
4319
  }
4097
4320
  },
4098
4321
  "required": [
4099
4322
  "session_id",
4100
4323
  "turn_id",
4101
4324
  "workspace_id",
4102
- "provider_instance_id",
4103
- "run_id"
4325
+ "provider_instance_id"
4104
4326
  ],
4105
4327
  "additionalProperties": false
4106
4328
  },
@@ -4119,10 +4341,6 @@
4119
4341
  "type": "string",
4120
4342
  "const": "workspace_read"
4121
4343
  },
4122
- "run_id": {
4123
- "type": "string",
4124
- "minLength": 1
4125
- },
4126
4344
  "hcp_session_id": {
4127
4345
  "type": "string",
4128
4346
  "minLength": 1
@@ -4149,7 +4367,6 @@
4149
4367
  "lease_id",
4150
4368
  "capability_id",
4151
4369
  "scope",
4152
- "run_id",
4153
4370
  "hcp_session_id",
4154
4371
  "execution_host_id",
4155
4372
  "provider_instance_id",
@@ -4400,18 +4617,13 @@
4400
4617
  "provider_instance_id": {
4401
4618
  "type": "string",
4402
4619
  "minLength": 1
4403
- },
4404
- "run_id": {
4405
- "type": "string",
4406
- "minLength": 1
4407
4620
  }
4408
4621
  },
4409
4622
  "required": [
4410
4623
  "session_id",
4411
4624
  "turn_id",
4412
4625
  "workspace_id",
4413
- "provider_instance_id",
4414
- "run_id"
4626
+ "provider_instance_id"
4415
4627
  ],
4416
4628
  "additionalProperties": false
4417
4629
  },
@@ -4430,10 +4642,6 @@
4430
4642
  "type": "string",
4431
4643
  "const": "workspace_read"
4432
4644
  },
4433
- "run_id": {
4434
- "type": "string",
4435
- "minLength": 1
4436
- },
4437
4645
  "hcp_session_id": {
4438
4646
  "type": "string",
4439
4647
  "minLength": 1
@@ -4460,7 +4668,6 @@
4460
4668
  "lease_id",
4461
4669
  "capability_id",
4462
4670
  "scope",
4463
- "run_id",
4464
4671
  "hcp_session_id",
4465
4672
  "execution_host_id",
4466
4673
  "provider_instance_id",
@@ -4712,18 +4919,13 @@
4712
4919
  "provider_instance_id": {
4713
4920
  "type": "string",
4714
4921
  "minLength": 1
4715
- },
4716
- "run_id": {
4717
- "type": "string",
4718
- "minLength": 1
4719
4922
  }
4720
4923
  },
4721
4924
  "required": [
4722
4925
  "session_id",
4723
4926
  "turn_id",
4724
4927
  "workspace_id",
4725
- "provider_instance_id",
4726
- "run_id"
4928
+ "provider_instance_id"
4727
4929
  ],
4728
4930
  "additionalProperties": false
4729
4931
  },
@@ -4742,10 +4944,6 @@
4742
4944
  "type": "string",
4743
4945
  "const": "workspace"
4744
4946
  },
4745
- "run_id": {
4746
- "type": "string",
4747
- "minLength": 1
4748
- },
4749
4947
  "hcp_session_id": {
4750
4948
  "type": "string",
4751
4949
  "minLength": 1
@@ -4772,7 +4970,6 @@
4772
4970
  "lease_id",
4773
4971
  "capability_id",
4774
4972
  "scope",
4775
- "run_id",
4776
4973
  "hcp_session_id",
4777
4974
  "execution_host_id",
4778
4975
  "provider_instance_id",
@@ -5029,18 +5226,13 @@
5029
5226
  "provider_instance_id": {
5030
5227
  "type": "string",
5031
5228
  "minLength": 1
5032
- },
5033
- "run_id": {
5034
- "type": "string",
5035
- "minLength": 1
5036
5229
  }
5037
5230
  },
5038
5231
  "required": [
5039
5232
  "session_id",
5040
5233
  "turn_id",
5041
5234
  "workspace_id",
5042
- "provider_instance_id",
5043
- "run_id"
5235
+ "provider_instance_id"
5044
5236
  ],
5045
5237
  "additionalProperties": false
5046
5238
  },
@@ -5059,10 +5251,6 @@
5059
5251
  "type": "string",
5060
5252
  "const": "workspace"
5061
5253
  },
5062
- "run_id": {
5063
- "type": "string",
5064
- "minLength": 1
5065
- },
5066
5254
  "hcp_session_id": {
5067
5255
  "type": "string",
5068
5256
  "minLength": 1
@@ -5089,7 +5277,6 @@
5089
5277
  "lease_id",
5090
5278
  "capability_id",
5091
5279
  "scope",
5092
- "run_id",
5093
5280
  "hcp_session_id",
5094
5281
  "execution_host_id",
5095
5282
  "provider_instance_id",
@@ -5376,18 +5563,13 @@
5376
5563
  "provider_instance_id": {
5377
5564
  "type": "string",
5378
5565
  "minLength": 1
5379
- },
5380
- "run_id": {
5381
- "type": "string",
5382
- "minLength": 1
5383
5566
  }
5384
5567
  },
5385
5568
  "required": [
5386
5569
  "session_id",
5387
5570
  "turn_id",
5388
5571
  "workspace_id",
5389
- "provider_instance_id",
5390
- "run_id"
5572
+ "provider_instance_id"
5391
5573
  ],
5392
5574
  "additionalProperties": false
5393
5575
  },
@@ -5406,10 +5588,6 @@
5406
5588
  "type": "string",
5407
5589
  "const": "workspace"
5408
5590
  },
5409
- "run_id": {
5410
- "type": "string",
5411
- "minLength": 1
5412
- },
5413
5591
  "hcp_session_id": {
5414
5592
  "type": "string",
5415
5593
  "minLength": 1
@@ -5436,7 +5614,6 @@
5436
5614
  "lease_id",
5437
5615
  "capability_id",
5438
5616
  "scope",
5439
- "run_id",
5440
5617
  "hcp_session_id",
5441
5618
  "execution_host_id",
5442
5619
  "provider_instance_id",
@@ -5735,18 +5912,13 @@
5735
5912
  "provider_instance_id": {
5736
5913
  "type": "string",
5737
5914
  "minLength": 1
5738
- },
5739
- "run_id": {
5740
- "type": "string",
5741
- "minLength": 1
5742
5915
  }
5743
5916
  },
5744
5917
  "required": [
5745
5918
  "session_id",
5746
5919
  "turn_id",
5747
5920
  "workspace_id",
5748
- "provider_instance_id",
5749
- "run_id"
5921
+ "provider_instance_id"
5750
5922
  ],
5751
5923
  "additionalProperties": false
5752
5924
  },
@@ -5765,10 +5937,6 @@
5765
5937
  "type": "string",
5766
5938
  "const": "workspace_read"
5767
5939
  },
5768
- "run_id": {
5769
- "type": "string",
5770
- "minLength": 1
5771
- },
5772
5940
  "hcp_session_id": {
5773
5941
  "type": "string",
5774
5942
  "minLength": 1
@@ -5795,7 +5963,6 @@
5795
5963
  "lease_id",
5796
5964
  "capability_id",
5797
5965
  "scope",
5798
- "run_id",
5799
5966
  "hcp_session_id",
5800
5967
  "execution_host_id",
5801
5968
  "provider_instance_id",
@@ -5932,18 +6099,13 @@
5932
6099
  "provider_instance_id": {
5933
6100
  "type": "string",
5934
6101
  "minLength": 1
5935
- },
5936
- "run_id": {
5937
- "type": "string",
5938
- "minLength": 1
5939
6102
  }
5940
6103
  },
5941
6104
  "required": [
5942
6105
  "session_id",
5943
6106
  "turn_id",
5944
6107
  "workspace_id",
5945
- "provider_instance_id",
5946
- "run_id"
6108
+ "provider_instance_id"
5947
6109
  ],
5948
6110
  "additionalProperties": false
5949
6111
  },
@@ -5962,10 +6124,6 @@
5962
6124
  "type": "string",
5963
6125
  "const": "workspace_read"
5964
6126
  },
5965
- "run_id": {
5966
- "type": "string",
5967
- "minLength": 1
5968
- },
5969
6127
  "hcp_session_id": {
5970
6128
  "type": "string",
5971
6129
  "minLength": 1
@@ -5992,7 +6150,6 @@
5992
6150
  "lease_id",
5993
6151
  "capability_id",
5994
6152
  "scope",
5995
- "run_id",
5996
6153
  "hcp_session_id",
5997
6154
  "execution_host_id",
5998
6155
  "provider_instance_id",
@@ -6138,18 +6295,13 @@
6138
6295
  "provider_instance_id": {
6139
6296
  "type": "string",
6140
6297
  "minLength": 1
6141
- },
6142
- "run_id": {
6143
- "type": "string",
6144
- "minLength": 1
6145
6298
  }
6146
6299
  },
6147
6300
  "required": [
6148
6301
  "session_id",
6149
6302
  "turn_id",
6150
6303
  "workspace_id",
6151
- "provider_instance_id",
6152
- "run_id"
6304
+ "provider_instance_id"
6153
6305
  ],
6154
6306
  "additionalProperties": false
6155
6307
  },
@@ -6168,10 +6320,6 @@
6168
6320
  "type": "string",
6169
6321
  "const": "workspace_write"
6170
6322
  },
6171
- "run_id": {
6172
- "type": "string",
6173
- "minLength": 1
6174
- },
6175
6323
  "hcp_session_id": {
6176
6324
  "type": "string",
6177
6325
  "minLength": 1
@@ -6198,7 +6346,6 @@
6198
6346
  "lease_id",
6199
6347
  "capability_id",
6200
6348
  "scope",
6201
- "run_id",
6202
6349
  "hcp_session_id",
6203
6350
  "execution_host_id",
6204
6351
  "provider_instance_id",
@@ -6326,18 +6473,13 @@
6326
6473
  "provider_instance_id": {
6327
6474
  "type": "string",
6328
6475
  "minLength": 1
6329
- },
6330
- "run_id": {
6331
- "type": "string",
6332
- "minLength": 1
6333
6476
  }
6334
6477
  },
6335
6478
  "required": [
6336
6479
  "session_id",
6337
6480
  "turn_id",
6338
6481
  "workspace_id",
6339
- "provider_instance_id",
6340
- "run_id"
6482
+ "provider_instance_id"
6341
6483
  ],
6342
6484
  "additionalProperties": false
6343
6485
  },
@@ -6356,10 +6498,6 @@
6356
6498
  "type": "string",
6357
6499
  "const": "workspace_write"
6358
6500
  },
6359
- "run_id": {
6360
- "type": "string",
6361
- "minLength": 1
6362
- },
6363
6501
  "hcp_session_id": {
6364
6502
  "type": "string",
6365
6503
  "minLength": 1
@@ -6386,7 +6524,6 @@
6386
6524
  "lease_id",
6387
6525
  "capability_id",
6388
6526
  "scope",
6389
- "run_id",
6390
6527
  "hcp_session_id",
6391
6528
  "execution_host_id",
6392
6529
  "provider_instance_id",
@@ -6512,18 +6649,13 @@
6512
6649
  "provider_instance_id": {
6513
6650
  "type": "string",
6514
6651
  "minLength": 1
6515
- },
6516
- "run_id": {
6517
- "type": "string",
6518
- "minLength": 1
6519
6652
  }
6520
6653
  },
6521
6654
  "required": [
6522
6655
  "session_id",
6523
6656
  "turn_id",
6524
6657
  "workspace_id",
6525
- "provider_instance_id",
6526
- "run_id"
6658
+ "provider_instance_id"
6527
6659
  ],
6528
6660
  "additionalProperties": false
6529
6661
  },
@@ -6542,10 +6674,6 @@
6542
6674
  "type": "string",
6543
6675
  "const": "workspace_read"
6544
6676
  },
6545
- "run_id": {
6546
- "type": "string",
6547
- "minLength": 1
6548
- },
6549
6677
  "hcp_session_id": {
6550
6678
  "type": "string",
6551
6679
  "minLength": 1
@@ -6572,7 +6700,6 @@
6572
6700
  "lease_id",
6573
6701
  "capability_id",
6574
6702
  "scope",
6575
- "run_id",
6576
6703
  "hcp_session_id",
6577
6704
  "execution_host_id",
6578
6705
  "provider_instance_id",
@@ -6695,18 +6822,13 @@
6695
6822
  "provider_instance_id": {
6696
6823
  "type": "string",
6697
6824
  "minLength": 1
6698
- },
6699
- "run_id": {
6700
- "type": "string",
6701
- "minLength": 1
6702
6825
  }
6703
6826
  },
6704
6827
  "required": [
6705
6828
  "session_id",
6706
6829
  "turn_id",
6707
6830
  "workspace_id",
6708
- "provider_instance_id",
6709
- "run_id"
6831
+ "provider_instance_id"
6710
6832
  ],
6711
6833
  "additionalProperties": false
6712
6834
  },
@@ -6725,10 +6847,6 @@
6725
6847
  "type": "string",
6726
6848
  "const": "workspace_read"
6727
6849
  },
6728
- "run_id": {
6729
- "type": "string",
6730
- "minLength": 1
6731
- },
6732
6850
  "hcp_session_id": {
6733
6851
  "type": "string",
6734
6852
  "minLength": 1
@@ -6755,7 +6873,6 @@
6755
6873
  "lease_id",
6756
6874
  "capability_id",
6757
6875
  "scope",
6758
- "run_id",
6759
6876
  "hcp_session_id",
6760
6877
  "execution_host_id",
6761
6878
  "provider_instance_id",
@@ -6874,18 +6991,13 @@
6874
6991
  "provider_instance_id": {
6875
6992
  "type": "string",
6876
6993
  "minLength": 1
6877
- },
6878
- "run_id": {
6879
- "type": "string",
6880
- "minLength": 1
6881
6994
  }
6882
6995
  },
6883
6996
  "required": [
6884
6997
  "session_id",
6885
6998
  "turn_id",
6886
6999
  "workspace_id",
6887
- "provider_instance_id",
6888
- "run_id"
7000
+ "provider_instance_id"
6889
7001
  ],
6890
7002
  "additionalProperties": false
6891
7003
  },
@@ -6904,10 +7016,6 @@
6904
7016
  "type": "string",
6905
7017
  "const": "workspace"
6906
7018
  },
6907
- "run_id": {
6908
- "type": "string",
6909
- "minLength": 1
6910
- },
6911
7019
  "hcp_session_id": {
6912
7020
  "type": "string",
6913
7021
  "minLength": 1
@@ -6934,7 +7042,6 @@
6934
7042
  "lease_id",
6935
7043
  "capability_id",
6936
7044
  "scope",
6937
- "run_id",
6938
7045
  "hcp_session_id",
6939
7046
  "execution_host_id",
6940
7047
  "provider_instance_id",
@@ -7104,18 +7211,13 @@
7104
7211
  "provider_instance_id": {
7105
7212
  "type": "string",
7106
7213
  "minLength": 1
7107
- },
7108
- "run_id": {
7109
- "type": "string",
7110
- "minLength": 1
7111
7214
  }
7112
7215
  },
7113
7216
  "required": [
7114
7217
  "session_id",
7115
7218
  "turn_id",
7116
7219
  "workspace_id",
7117
- "provider_instance_id",
7118
- "run_id"
7220
+ "provider_instance_id"
7119
7221
  ],
7120
7222
  "additionalProperties": false
7121
7223
  },
@@ -7134,10 +7236,6 @@
7134
7236
  "type": "string",
7135
7237
  "const": "workspace"
7136
7238
  },
7137
- "run_id": {
7138
- "type": "string",
7139
- "minLength": 1
7140
- },
7141
7239
  "hcp_session_id": {
7142
7240
  "type": "string",
7143
7241
  "minLength": 1
@@ -7164,7 +7262,6 @@
7164
7262
  "lease_id",
7165
7263
  "capability_id",
7166
7264
  "scope",
7167
- "run_id",
7168
7265
  "hcp_session_id",
7169
7266
  "execution_host_id",
7170
7267
  "provider_instance_id",
@@ -7313,18 +7410,13 @@
7313
7410
  "provider_instance_id": {
7314
7411
  "type": "string",
7315
7412
  "minLength": 1
7316
- },
7317
- "run_id": {
7318
- "type": "string",
7319
- "minLength": 1
7320
7413
  }
7321
7414
  },
7322
7415
  "required": [
7323
7416
  "session_id",
7324
7417
  "turn_id",
7325
7418
  "workspace_id",
7326
- "provider_instance_id",
7327
- "run_id"
7419
+ "provider_instance_id"
7328
7420
  ],
7329
7421
  "additionalProperties": false
7330
7422
  },
@@ -7343,10 +7435,6 @@
7343
7435
  "type": "string",
7344
7436
  "const": "workspace"
7345
7437
  },
7346
- "run_id": {
7347
- "type": "string",
7348
- "minLength": 1
7349
- },
7350
7438
  "hcp_session_id": {
7351
7439
  "type": "string",
7352
7440
  "minLength": 1
@@ -7373,7 +7461,6 @@
7373
7461
  "lease_id",
7374
7462
  "capability_id",
7375
7463
  "scope",
7376
- "run_id",
7377
7464
  "hcp_session_id",
7378
7465
  "execution_host_id",
7379
7466
  "provider_instance_id",
@@ -7553,18 +7640,13 @@
7553
7640
  "provider_instance_id": {
7554
7641
  "type": "string",
7555
7642
  "minLength": 1
7556
- },
7557
- "run_id": {
7558
- "type": "string",
7559
- "minLength": 1
7560
7643
  }
7561
7644
  },
7562
7645
  "required": [
7563
7646
  "session_id",
7564
7647
  "turn_id",
7565
7648
  "workspace_id",
7566
- "provider_instance_id",
7567
- "run_id"
7649
+ "provider_instance_id"
7568
7650
  ],
7569
7651
  "additionalProperties": false
7570
7652
  },
@@ -7588,10 +7670,6 @@
7588
7670
  "type": "string",
7589
7671
  "minLength": 1
7590
7672
  },
7591
- "run_id": {
7592
- "type": "string",
7593
- "minLength": 1
7594
- },
7595
7673
  "hcp_session_id": {
7596
7674
  "type": "string",
7597
7675
  "minLength": 1
@@ -7618,7 +7696,6 @@
7618
7696
  "lease_id",
7619
7697
  "capability_id",
7620
7698
  "scope",
7621
- "run_id",
7622
7699
  "hcp_session_id",
7623
7700
  "execution_host_id",
7624
7701
  "provider_instance_id",
@@ -13801,10 +13878,6 @@
13801
13878
  "type": "string",
13802
13879
  "minLength": 1
13803
13880
  },
13804
- "run_id": {
13805
- "type": "string",
13806
- "minLength": 1
13807
- },
13808
13881
  "workspace_id": {
13809
13882
  "type": "string",
13810
13883
  "minLength": 1
@@ -13867,7 +13940,6 @@
13867
13940
  },
13868
13941
  "required": [
13869
13942
  "lease_id",
13870
- "run_id",
13871
13943
  "workspace_id",
13872
13944
  "provider_instance_id",
13873
13945
  "capability_id",
@@ -13977,10 +14049,6 @@
13977
14049
  "type": "string",
13978
14050
  "minLength": 1
13979
14051
  },
13980
- "run_id": {
13981
- "type": "string",
13982
- "minLength": 1
13983
- },
13984
14052
  "workspace_id": {
13985
14053
  "type": "string",
13986
14054
  "minLength": 1
@@ -14043,7 +14111,6 @@
14043
14111
  },
14044
14112
  "required": [
14045
14113
  "lease_id",
14046
- "run_id",
14047
14114
  "workspace_id",
14048
14115
  "provider_instance_id",
14049
14116
  "capability_id",
@@ -14153,10 +14220,6 @@
14153
14220
  "type": "string",
14154
14221
  "minLength": 1
14155
14222
  },
14156
- "run_id": {
14157
- "type": "string",
14158
- "minLength": 1
14159
- },
14160
14223
  "workspace_id": {
14161
14224
  "type": "string",
14162
14225
  "minLength": 1
@@ -14219,7 +14282,6 @@
14219
14282
  },
14220
14283
  "required": [
14221
14284
  "lease_id",
14222
- "run_id",
14223
14285
  "workspace_id",
14224
14286
  "provider_instance_id",
14225
14287
  "capability_id",