@hosty-sdk/app 0.55.0 → 0.57.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.
@@ -824,8 +824,56 @@
824
824
  ],
825
825
  "additionalProperties": false
826
826
  },
827
+ "DiscardInput": {
828
+ "type": "object",
829
+ "properties": {
830
+ "requestId": {
831
+ "type": "string",
832
+ "format": "uuid"
833
+ }
834
+ },
835
+ "required": [
836
+ "requestId"
837
+ ],
838
+ "additionalProperties": false
839
+ },
840
+ "DiscardReceipt": {
841
+ "type": "object",
842
+ "properties": {
843
+ "requestId": {
844
+ "type": "string",
845
+ "format": "uuid"
846
+ },
847
+ "runId": {
848
+ "type": "string",
849
+ "format": "uuid"
850
+ },
851
+ "state": {
852
+ "const": "discarded"
853
+ }
854
+ },
855
+ "required": [
856
+ "requestId",
857
+ "runId",
858
+ "state"
859
+ ],
860
+ "additionalProperties": false
861
+ },
827
862
  "CancelInput": {
828
863
  "oneOf": [
864
+ {
865
+ "type": "object",
866
+ "properties": {
867
+ "requestId": {
868
+ "type": "string",
869
+ "format": "uuid"
870
+ }
871
+ },
872
+ "required": [
873
+ "requestId"
874
+ ],
875
+ "additionalProperties": false
876
+ },
829
877
  {
830
878
  "type": "object",
831
879
  "properties": {
@@ -1514,6 +1562,9 @@
1514
1562
  "stopConfirmed": {
1515
1563
  "type": "boolean"
1516
1564
  },
1565
+ "writerScopeClosed": {
1566
+ "type": "boolean"
1567
+ },
1517
1568
  "freshness": {
1518
1569
  "enum": [
1519
1570
  "current",
@@ -1944,7 +1995,8 @@
1944
1995
  "principalId",
1945
1996
  "userId",
1946
1997
  "item",
1947
- "epoch"
1998
+ "epoch",
1999
+ "sessionPosition"
1948
2000
  ],
1949
2001
  "additionalProperties": false
1950
2002
  },
@@ -2335,6 +2387,95 @@
2335
2387
  ],
2336
2388
  "additionalProperties": true
2337
2389
  },
2390
+ "Closure": {
2391
+ "type": "object",
2392
+ "properties": {
2393
+ "ref": {
2394
+ "$ref": "#/$defs/QualifiedRef"
2395
+ },
2396
+ "sessionId": {
2397
+ "type": "string",
2398
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
2399
+ },
2400
+ "generation": {
2401
+ "type": "string",
2402
+ "format": "uuid"
2403
+ },
2404
+ "revision": {
2405
+ "type": "string",
2406
+ "pattern": "^(0|[1-9][0-9]{0,39})$"
2407
+ },
2408
+ "state": {
2409
+ "enum": [
2410
+ "queued",
2411
+ "running",
2412
+ "waiting_for_input",
2413
+ "succeeded",
2414
+ "failed",
2415
+ "cancelled",
2416
+ "unknown"
2417
+ ]
2418
+ },
2419
+ "phase": {
2420
+ "enum": [
2421
+ "preparing",
2422
+ "executing",
2423
+ "waiting",
2424
+ "finalizing",
2425
+ "cancelling",
2426
+ "parked",
2427
+ "interrupted",
2428
+ "terminal"
2429
+ ]
2430
+ },
2431
+ "stopConfirmed": {
2432
+ "type": "boolean"
2433
+ },
2434
+ "writerScopeClosed": {
2435
+ "type": "boolean"
2436
+ },
2437
+ "pendingContinuations": {
2438
+ "type": "array",
2439
+ "maxItems": 256,
2440
+ "items": {
2441
+ "type": "object",
2442
+ "properties": {
2443
+ "requestId": {
2444
+ "type": "string",
2445
+ "format": "uuid"
2446
+ },
2447
+ "run": {
2448
+ "$ref": "#/$defs/QualifiedRef"
2449
+ },
2450
+ "state": {
2451
+ "enum": [
2452
+ "pending",
2453
+ "awaiting_authorization",
2454
+ "admitted",
2455
+ "superseded"
2456
+ ]
2457
+ }
2458
+ },
2459
+ "required": [
2460
+ "requestId",
2461
+ "run",
2462
+ "state"
2463
+ ],
2464
+ "additionalProperties": false
2465
+ }
2466
+ }
2467
+ },
2468
+ "required": [
2469
+ "ref",
2470
+ "sessionId",
2471
+ "generation",
2472
+ "revision",
2473
+ "state",
2474
+ "phase",
2475
+ "stopConfirmed"
2476
+ ],
2477
+ "additionalProperties": false
2478
+ },
2338
2479
  "ControlReceipt": {
2339
2480
  "type": "object",
2340
2481
  "properties": {
@@ -2574,7 +2715,7 @@
2574
2715
  "type": "object",
2575
2716
  "properties": {
2576
2717
  "version": {
2577
- "const": 1
2718
+ "const": 2
2578
2719
  },
2579
2720
  "eventVersions": {
2580
2721
  "type": "array",
@@ -1,5 +1,5 @@
1
1
  {
2
- "schemaVersion": "agent-fixtures.1",
2
+ "schemaVersion": "agent-fixtures.2",
3
3
  "provider": {
4
4
  "appId": "org.example.unrelated",
5
5
  "installationId": "installation-1",
@@ -34,8 +34,8 @@
34
34
  }
35
35
  },
36
36
  {
37
- "method": "POST",
38
- "path": "/runs/22222222-2222-4222-8222-222222222222/cancel",
37
+ "method": "PUT",
38
+ "path": "/runs/22222222-2222-4222-8222-222222222222/stop",
39
39
  "body": {
40
40
  "requestId": "44444444-4444-4444-8444-444444444444",
41
41
  "expectedGeneration": "33333333-3333-4333-8333-333333333333",
@@ -43,8 +43,8 @@
43
43
  }
44
44
  },
45
45
  {
46
- "method": "POST",
47
- "path": "/runs/22222222-2222-4222-8222-222222222222/cancel",
46
+ "method": "PUT",
47
+ "path": "/runs/22222222-2222-4222-8222-222222222222/stop",
48
48
  "body": {
49
49
  "requestId": "44444444-4444-4444-8444-444444444444",
50
50
  "fenceIfNotAdmitted": {
@@ -104,6 +104,20 @@
104
104
  "count": 1,
105
105
  "data": "YQ=="
106
106
  }
107
+ },
108
+ {
109
+ "method": "PUT",
110
+ "path": "/runs/22222222-2222-4222-8222-222222222222/stop",
111
+ "body": {
112
+ "requestId": "44444444-4444-4444-8444-444444444444"
113
+ }
114
+ },
115
+ {
116
+ "method": "PUT",
117
+ "path": "/runs/22222222-2222-4222-8222-222222222222/discard",
118
+ "body": {
119
+ "requestId": "33333333-3333-4333-8333-333333333333"
120
+ }
107
121
  }
108
122
  ],
109
123
  "invalidRequests": [
@@ -145,8 +159,8 @@
145
159
  }
146
160
  },
147
161
  {
148
- "method": "POST",
149
- "path": "/runs/22222222-2222-4222-8222-222222222222/cancel",
162
+ "method": "PUT",
163
+ "path": "/runs/22222222-2222-4222-8222-222222222222/stop",
150
164
  "body": {
151
165
  "requestId": "44444444-4444-4444-8444-444444444444",
152
166
  "expectedGeneration": "33333333-3333-4333-8333-333333333333",
@@ -182,6 +196,30 @@
182
196
  "command": "retire",
183
197
  "stopped": true
184
198
  }
199
+ },
200
+ {
201
+ "method": "POST",
202
+ "path": "/runs/22222222-2222-4222-8222-222222222222/cancel",
203
+ "body": {
204
+ "requestId": "44444444-4444-4444-8444-444444444444",
205
+ "expectedGeneration": "33333333-3333-4333-8333-333333333333",
206
+ "expectedRevision": "1"
207
+ }
208
+ },
209
+ {
210
+ "method": "POST",
211
+ "path": "/runs/22222222-2222-4222-8222-222222222222/discard",
212
+ "body": {
213
+ "requestId": "33333333-3333-4333-8333-333333333333"
214
+ }
215
+ },
216
+ {
217
+ "method": "PUT",
218
+ "path": "/runs/22222222-2222-4222-8222-222222222222/discard",
219
+ "body": {
220
+ "requestId": "33333333-3333-4333-8333-333333333333",
221
+ "force": true
222
+ }
185
223
  }
186
224
  ]
187
225
  }