@maiaos/protocol 0.1.0-canary.44938d4.manual.1

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 (246) hide show
  1. package/README.md +239 -0
  2. package/dist/aggregate/revision-effect-schema.d.ts +3 -0
  3. package/dist/aggregate/revision-effect-schema.d.ts.map +1 -0
  4. package/dist/aggregate/revision-effect-schema.js +4 -0
  5. package/dist/aggregate/revision-effect-schema.js.map +1 -0
  6. package/dist/capability.d.ts +12 -0
  7. package/dist/capability.d.ts.map +1 -0
  8. package/dist/capability.js +27 -0
  9. package/dist/capability.js.map +1 -0
  10. package/dist/command-receipt/contract.d.ts +85 -0
  11. package/dist/command-receipt/contract.d.ts.map +1 -0
  12. package/dist/command-receipt/contract.js +12 -0
  13. package/dist/command-receipt/contract.js.map +1 -0
  14. package/dist/command-receipt/effect-schema.d.ts +78 -0
  15. package/dist/command-receipt/effect-schema.d.ts.map +1 -0
  16. package/dist/command-receipt/effect-schema.js +72 -0
  17. package/dist/command-receipt/effect-schema.js.map +1 -0
  18. package/dist/command-receipt/policy.d.ts +16 -0
  19. package/dist/command-receipt/policy.d.ts.map +1 -0
  20. package/dist/command-receipt/policy.js +76 -0
  21. package/dist/command-receipt/policy.js.map +1 -0
  22. package/dist/command-receipt/version.d.ts +2 -0
  23. package/dist/command-receipt/version.d.ts.map +1 -0
  24. package/dist/command-receipt/version.js +2 -0
  25. package/dist/command-receipt/version.js.map +1 -0
  26. package/dist/configuration.d.ts +63 -0
  27. package/dist/configuration.d.ts.map +1 -0
  28. package/dist/configuration.js +93 -0
  29. package/dist/configuration.js.map +1 -0
  30. package/dist/envelope-effect-schema.d.ts +49 -0
  31. package/dist/envelope-effect-schema.d.ts.map +1 -0
  32. package/dist/envelope-effect-schema.js +50 -0
  33. package/dist/envelope-effect-schema.js.map +1 -0
  34. package/dist/envelope-policy.d.ts +4 -0
  35. package/dist/envelope-policy.d.ts.map +1 -0
  36. package/dist/envelope-policy.js +4 -0
  37. package/dist/envelope-policy.js.map +1 -0
  38. package/dist/envelope.d.ts +52 -0
  39. package/dist/envelope.d.ts.map +1 -0
  40. package/dist/envelope.js +41 -0
  41. package/dist/envelope.js.map +1 -0
  42. package/dist/execution/contract.d.ts +230 -0
  43. package/dist/execution/contract.d.ts.map +1 -0
  44. package/dist/execution/contract.js +16 -0
  45. package/dist/execution/contract.js.map +1 -0
  46. package/dist/execution/effect-schema.d.ts +370 -0
  47. package/dist/execution/effect-schema.d.ts.map +1 -0
  48. package/dist/execution/effect-schema.js +148 -0
  49. package/dist/execution/effect-schema.js.map +1 -0
  50. package/dist/execution/version.d.ts +5 -0
  51. package/dist/execution/version.d.ts.map +1 -0
  52. package/dist/execution/version.js +5 -0
  53. package/dist/execution/version.js.map +1 -0
  54. package/dist/harness/installed/contract.d.ts +144 -0
  55. package/dist/harness/installed/contract.d.ts.map +1 -0
  56. package/dist/harness/installed/contract.js +6 -0
  57. package/dist/harness/installed/contract.js.map +1 -0
  58. package/dist/harness/installed/effect-schema.d.ts +261 -0
  59. package/dist/harness/installed/effect-schema.d.ts.map +1 -0
  60. package/dist/harness/installed/effect-schema.js +63 -0
  61. package/dist/harness/installed/effect-schema.js.map +1 -0
  62. package/dist/harness/installed/version.d.ts +2 -0
  63. package/dist/harness/installed/version.d.ts.map +1 -0
  64. package/dist/harness/installed/version.js +2 -0
  65. package/dist/harness/installed/version.js.map +1 -0
  66. package/dist/index.d.ts +18 -0
  67. package/dist/index.d.ts.map +1 -0
  68. package/dist/index.js +18 -0
  69. package/dist/index.js.map +1 -0
  70. package/dist/integration-authorization/contract.d.ts +3495 -0
  71. package/dist/integration-authorization/contract.d.ts.map +1 -0
  72. package/dist/integration-authorization/contract.js +25 -0
  73. package/dist/integration-authorization/contract.js.map +1 -0
  74. package/dist/integration-authorization/effect-schema.d.ts +4495 -0
  75. package/dist/integration-authorization/effect-schema.d.ts.map +1 -0
  76. package/dist/integration-authorization/effect-schema.js +293 -0
  77. package/dist/integration-authorization/effect-schema.js.map +1 -0
  78. package/dist/integration-authorization/policy.d.ts +5 -0
  79. package/dist/integration-authorization/policy.d.ts.map +1 -0
  80. package/dist/integration-authorization/policy.js +5 -0
  81. package/dist/integration-authorization/policy.js.map +1 -0
  82. package/dist/integration-authorization/version.d.ts +2 -0
  83. package/dist/integration-authorization/version.d.ts.map +1 -0
  84. package/dist/integration-authorization/version.js +2 -0
  85. package/dist/integration-authorization/version.js.map +1 -0
  86. package/dist/invocation-context/contract.d.ts +38 -0
  87. package/dist/invocation-context/contract.d.ts.map +1 -0
  88. package/dist/invocation-context/contract.js +7 -0
  89. package/dist/invocation-context/contract.js.map +1 -0
  90. package/dist/invocation-context/effect-schema.d.ts +63 -0
  91. package/dist/invocation-context/effect-schema.d.ts.map +1 -0
  92. package/dist/invocation-context/effect-schema.js +52 -0
  93. package/dist/invocation-context/effect-schema.js.map +1 -0
  94. package/dist/invocation-context/policy.d.ts +8 -0
  95. package/dist/invocation-context/policy.d.ts.map +1 -0
  96. package/dist/invocation-context/policy.js +8 -0
  97. package/dist/invocation-context/policy.js.map +1 -0
  98. package/dist/invocation-context/version.d.ts +2 -0
  99. package/dist/invocation-context/version.d.ts.map +1 -0
  100. package/dist/invocation-context/version.js +2 -0
  101. package/dist/invocation-context/version.js.map +1 -0
  102. package/dist/local-node/contract.d.ts +233 -0
  103. package/dist/local-node/contract.d.ts.map +1 -0
  104. package/dist/local-node/contract.js +43 -0
  105. package/dist/local-node/contract.js.map +1 -0
  106. package/dist/local-node/effect-schema.d.ts +58786 -0
  107. package/dist/local-node/effect-schema.d.ts.map +1 -0
  108. package/dist/local-node/effect-schema.js +279 -0
  109. package/dist/local-node/effect-schema.js.map +1 -0
  110. package/dist/local-node/methods.d.ts +4 -0
  111. package/dist/local-node/methods.d.ts.map +1 -0
  112. package/dist/local-node/methods.js +73 -0
  113. package/dist/local-node/methods.js.map +1 -0
  114. package/dist/local-node/policy.d.ts +11 -0
  115. package/dist/local-node/policy.d.ts.map +1 -0
  116. package/dist/local-node/policy.js +11 -0
  117. package/dist/local-node/policy.js.map +1 -0
  118. package/dist/local-node.d.ts +2 -0
  119. package/dist/local-node.d.ts.map +1 -0
  120. package/dist/local-node.js +2 -0
  121. package/dist/local-node.js.map +1 -0
  122. package/dist/orchestration/canonical.d.ts +12 -0
  123. package/dist/orchestration/canonical.d.ts.map +1 -0
  124. package/dist/orchestration/canonical.js +50 -0
  125. package/dist/orchestration/canonical.js.map +1 -0
  126. package/dist/orchestration/contract.d.ts +2867 -0
  127. package/dist/orchestration/contract.d.ts.map +1 -0
  128. package/dist/orchestration/contract.js +45 -0
  129. package/dist/orchestration/contract.js.map +1 -0
  130. package/dist/orchestration/effect-schema.d.ts +4933 -0
  131. package/dist/orchestration/effect-schema.d.ts.map +1 -0
  132. package/dist/orchestration/effect-schema.js +610 -0
  133. package/dist/orchestration/effect-schema.js.map +1 -0
  134. package/dist/orchestration/policy.d.ts +28 -0
  135. package/dist/orchestration/policy.d.ts.map +1 -0
  136. package/dist/orchestration/policy.js +28 -0
  137. package/dist/orchestration/policy.js.map +1 -0
  138. package/dist/orchestration/topology.d.ts +13 -0
  139. package/dist/orchestration/topology.d.ts.map +1 -0
  140. package/dist/orchestration/topology.js +109 -0
  141. package/dist/orchestration/topology.js.map +1 -0
  142. package/dist/orchestration/version.d.ts +3 -0
  143. package/dist/orchestration/version.d.ts.map +1 -0
  144. package/dist/orchestration/version.js +3 -0
  145. package/dist/orchestration/version.js.map +1 -0
  146. package/dist/project-workspace/contract.d.ts +346 -0
  147. package/dist/project-workspace/contract.d.ts.map +1 -0
  148. package/dist/project-workspace/contract.js +20 -0
  149. package/dist/project-workspace/contract.js.map +1 -0
  150. package/dist/project-workspace/effect-schema.d.ts +602 -0
  151. package/dist/project-workspace/effect-schema.d.ts.map +1 -0
  152. package/dist/project-workspace/effect-schema.js +185 -0
  153. package/dist/project-workspace/effect-schema.js.map +1 -0
  154. package/dist/project-workspace/version.d.ts +5 -0
  155. package/dist/project-workspace/version.d.ts.map +1 -0
  156. package/dist/project-workspace/version.js +5 -0
  157. package/dist/project-workspace/version.js.map +1 -0
  158. package/dist/runtime/contract.d.ts +172 -0
  159. package/dist/runtime/contract.d.ts.map +1 -0
  160. package/dist/runtime/contract.js +6 -0
  161. package/dist/runtime/contract.js.map +1 -0
  162. package/dist/runtime/effect-schema.d.ts +211 -0
  163. package/dist/runtime/effect-schema.d.ts.map +1 -0
  164. package/dist/runtime/effect-schema.js +137 -0
  165. package/dist/runtime/effect-schema.js.map +1 -0
  166. package/dist/runtime/version.d.ts +2 -0
  167. package/dist/runtime/version.d.ts.map +1 -0
  168. package/dist/runtime/version.js +2 -0
  169. package/dist/runtime/version.js.map +1 -0
  170. package/dist/runtime-schema-effect.d.ts +4 -0
  171. package/dist/runtime-schema-effect.d.ts.map +1 -0
  172. package/dist/runtime-schema-effect.js +25 -0
  173. package/dist/runtime-schema-effect.js.map +1 -0
  174. package/dist/runtime-schema.d.ts +23 -0
  175. package/dist/runtime-schema.d.ts.map +1 -0
  176. package/dist/runtime-schema.js +12 -0
  177. package/dist/runtime-schema.js.map +1 -0
  178. package/dist/session/contract.d.ts +666 -0
  179. package/dist/session/contract.d.ts.map +1 -0
  180. package/dist/session/contract.js +16 -0
  181. package/dist/session/contract.js.map +1 -0
  182. package/dist/session/effect-schema.d.ts +1176 -0
  183. package/dist/session/effect-schema.d.ts.map +1 -0
  184. package/dist/session/effect-schema.js +195 -0
  185. package/dist/session/effect-schema.js.map +1 -0
  186. package/dist/session/version.d.ts +4 -0
  187. package/dist/session/version.d.ts.map +1 -0
  188. package/dist/session/version.js +4 -0
  189. package/dist/session/version.js.map +1 -0
  190. package/dist/temporal/recorded-at.d.ts +3 -0
  191. package/dist/temporal/recorded-at.d.ts.map +1 -0
  192. package/dist/temporal/recorded-at.js +13 -0
  193. package/dist/temporal/recorded-at.js.map +1 -0
  194. package/dist/terminal/contract.d.ts +3502 -0
  195. package/dist/terminal/contract.d.ts.map +1 -0
  196. package/dist/terminal/contract.js +31 -0
  197. package/dist/terminal/contract.js.map +1 -0
  198. package/dist/terminal/effect-schema.d.ts +15745 -0
  199. package/dist/terminal/effect-schema.d.ts.map +1 -0
  200. package/dist/terminal/effect-schema.js +193 -0
  201. package/dist/terminal/effect-schema.js.map +1 -0
  202. package/dist/terminal/live-contract.d.ts +87 -0
  203. package/dist/terminal/live-contract.d.ts.map +1 -0
  204. package/dist/terminal/live-contract.js +52 -0
  205. package/dist/terminal/live-contract.js.map +1 -0
  206. package/dist/terminal/live-effect-schema.d.ts +24770 -0
  207. package/dist/terminal/live-effect-schema.d.ts.map +1 -0
  208. package/dist/terminal/live-effect-schema.js +987 -0
  209. package/dist/terminal/live-effect-schema.js.map +1 -0
  210. package/dist/terminal/live-policy.d.ts +79 -0
  211. package/dist/terminal/live-policy.d.ts.map +1 -0
  212. package/dist/terminal/live-policy.js +91 -0
  213. package/dist/terminal/live-policy.js.map +1 -0
  214. package/dist/terminal/live-types.d.ts +584 -0
  215. package/dist/terminal/live-types.d.ts.map +1 -0
  216. package/dist/terminal/live-types.js +2 -0
  217. package/dist/terminal/live-types.js.map +1 -0
  218. package/dist/terminal/live-version.d.ts +4 -0
  219. package/dist/terminal/live-version.d.ts.map +1 -0
  220. package/dist/terminal/live-version.js +4 -0
  221. package/dist/terminal/live-version.js.map +1 -0
  222. package/dist/terminal/policy.d.ts +5 -0
  223. package/dist/terminal/policy.d.ts.map +1 -0
  224. package/dist/terminal/policy.js +5 -0
  225. package/dist/terminal/policy.js.map +1 -0
  226. package/dist/terminal/version.d.ts +4 -0
  227. package/dist/terminal/version.d.ts.map +1 -0
  228. package/dist/terminal/version.js +4 -0
  229. package/dist/terminal/version.js.map +1 -0
  230. package/dist/turn/contract.d.ts +493 -0
  231. package/dist/turn/contract.d.ts.map +1 -0
  232. package/dist/turn/contract.js +14 -0
  233. package/dist/turn/contract.js.map +1 -0
  234. package/dist/turn/effect-schema.d.ts +1063 -0
  235. package/dist/turn/effect-schema.d.ts.map +1 -0
  236. package/dist/turn/effect-schema.js +215 -0
  237. package/dist/turn/effect-schema.js.map +1 -0
  238. package/dist/turn/policy.d.ts +3 -0
  239. package/dist/turn/policy.d.ts.map +1 -0
  240. package/dist/turn/policy.js +3 -0
  241. package/dist/turn/policy.js.map +1 -0
  242. package/dist/turn/version.d.ts +2 -0
  243. package/dist/turn/version.d.ts.map +1 -0
  244. package/dist/turn/version.js +2 -0
  245. package/dist/turn/version.js.map +1 -0
  246. package/package.json +40 -0
@@ -0,0 +1,1176 @@
1
+ import * as Schema from "effect/Schema";
2
+ export declare const sessionEffectSchema: Schema.Union<readonly [Schema.Struct<{
3
+ readonly runtime: Schema.Literal<"codex">;
4
+ readonly schemaVersion: Schema.Literal<2>;
5
+ readonly createdAt: Schema.String;
6
+ readonly id: Schema.String;
7
+ readonly projectId: Schema.String;
8
+ readonly revision: Schema.String;
9
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
10
+ readonly updatedAt: Schema.String;
11
+ readonly workspaceId: Schema.String;
12
+ readonly workspaceRevision: Schema.String;
13
+ }>, Schema.Struct<{
14
+ readonly schemaVersion: Schema.Literal<3>;
15
+ readonly profile: Schema.Literal<"codex">;
16
+ readonly runtime: Schema.Literal<"codex">;
17
+ readonly createdAt: Schema.String;
18
+ readonly id: Schema.String;
19
+ readonly projectId: Schema.String;
20
+ readonly revision: Schema.String;
21
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
22
+ readonly updatedAt: Schema.String;
23
+ readonly workspaceId: Schema.String;
24
+ readonly workspaceRevision: Schema.String;
25
+ }>, Schema.Struct<{
26
+ readonly schemaVersion: Schema.Literal<3>;
27
+ readonly profile: Schema.Literal<"pi-rpc">;
28
+ readonly runtime: Schema.Literal<"pi">;
29
+ readonly createdAt: Schema.String;
30
+ readonly id: Schema.String;
31
+ readonly projectId: Schema.String;
32
+ readonly revision: Schema.String;
33
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
34
+ readonly updatedAt: Schema.String;
35
+ readonly workspaceId: Schema.String;
36
+ readonly workspaceRevision: Schema.String;
37
+ }>]>;
38
+ export declare const sessionCreatedEventEffectSchema: Schema.Struct<{
39
+ readonly commandId: Schema.String;
40
+ readonly eventType: Schema.Literal<"session.created">;
41
+ readonly globalCursor: Schema.String;
42
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
43
+ readonly profile: Schema.Literal<"codex">;
44
+ readonly runtime: Schema.Literal<"codex">;
45
+ }>, Schema.Struct<{
46
+ readonly profile: Schema.Literal<"pi-rpc">;
47
+ readonly runtime: Schema.Literal<"pi">;
48
+ }>]>;
49
+ readonly recordedAt: Schema.String;
50
+ readonly schemaVersion: Schema.Literal<3>;
51
+ readonly sessionCursor: Schema.String;
52
+ readonly sessionId: Schema.String;
53
+ }>;
54
+ export declare const sessionStartRequestedEventEffectSchema: Schema.Struct<{
55
+ readonly commandId: Schema.String;
56
+ readonly eventType: Schema.Literal<"session.start.requested">;
57
+ readonly globalCursor: Schema.String;
58
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
59
+ readonly profile: Schema.Literal<"codex">;
60
+ readonly runtime: Schema.Literal<"codex">;
61
+ }>, Schema.Struct<{
62
+ readonly profile: Schema.Literal<"pi-rpc">;
63
+ readonly runtime: Schema.Literal<"pi">;
64
+ }>]>;
65
+ readonly recordedAt: Schema.String;
66
+ readonly schemaVersion: Schema.Literal<3>;
67
+ readonly sessionCursor: Schema.String;
68
+ readonly sessionId: Schema.String;
69
+ }>;
70
+ export declare const sessionRuntimeStartedEventEffectSchema: Schema.Struct<{
71
+ readonly commandId: Schema.String;
72
+ readonly eventType: Schema.Literal<"session.runtime.started">;
73
+ readonly globalCursor: Schema.String;
74
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
75
+ readonly profile: Schema.Literal<"codex">;
76
+ readonly runtime: Schema.Literal<"codex">;
77
+ }>, Schema.Struct<{
78
+ readonly profile: Schema.Literal<"pi-rpc">;
79
+ readonly runtime: Schema.Literal<"pi">;
80
+ }>]>;
81
+ readonly recordedAt: Schema.String;
82
+ readonly schemaVersion: Schema.Literal<3>;
83
+ readonly sessionCursor: Schema.String;
84
+ readonly sessionId: Schema.String;
85
+ }>;
86
+ export declare const sessionRuntimeRecoveryRequestedEventEffectSchema: Schema.Struct<{
87
+ readonly commandId: Schema.String;
88
+ readonly eventType: Schema.Literal<"session.runtime.recovery.requested">;
89
+ readonly globalCursor: Schema.String;
90
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
91
+ readonly profile: Schema.Literal<"codex">;
92
+ readonly runtime: Schema.Literal<"codex">;
93
+ }>, Schema.Struct<{
94
+ readonly profile: Schema.Literal<"pi-rpc">;
95
+ readonly runtime: Schema.Literal<"pi">;
96
+ }>]>;
97
+ readonly recordedAt: Schema.String;
98
+ readonly schemaVersion: Schema.Literal<3>;
99
+ readonly sessionCursor: Schema.String;
100
+ readonly sessionId: Schema.String;
101
+ }>;
102
+ export declare const sessionRuntimeResumedEventEffectSchema: Schema.Struct<{
103
+ readonly commandId: Schema.String;
104
+ readonly eventType: Schema.Literal<"session.runtime.resumed">;
105
+ readonly globalCursor: Schema.String;
106
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
107
+ readonly profile: Schema.Literal<"codex">;
108
+ readonly runtime: Schema.Literal<"codex">;
109
+ }>, Schema.Struct<{
110
+ readonly profile: Schema.Literal<"pi-rpc">;
111
+ readonly runtime: Schema.Literal<"pi">;
112
+ }>]>;
113
+ readonly recordedAt: Schema.String;
114
+ readonly schemaVersion: Schema.Literal<3>;
115
+ readonly sessionCursor: Schema.String;
116
+ readonly sessionId: Schema.String;
117
+ }>;
118
+ export declare const sessionRuntimeFailedEventEffectSchema: Schema.Struct<{
119
+ readonly commandId: Schema.String;
120
+ readonly eventType: Schema.Literal<"session.runtime.failed">;
121
+ readonly globalCursor: Schema.String;
122
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
123
+ readonly profile: Schema.Literal<"codex">;
124
+ readonly runtime: Schema.Literal<"codex">;
125
+ }>, Schema.Struct<{
126
+ readonly profile: Schema.Literal<"pi-rpc">;
127
+ readonly runtime: Schema.Literal<"pi">;
128
+ }>]>;
129
+ readonly recordedAt: Schema.String;
130
+ readonly schemaVersion: Schema.Literal<3>;
131
+ readonly sessionCursor: Schema.String;
132
+ readonly sessionId: Schema.String;
133
+ }>;
134
+ export declare const sessionEventEffectSchema: Schema.Union<readonly [Schema.Struct<{
135
+ readonly commandId: Schema.String;
136
+ readonly eventType: Schema.Literal<"session.created">;
137
+ readonly globalCursor: Schema.String;
138
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
139
+ readonly profile: Schema.Literal<"codex">;
140
+ readonly runtime: Schema.Literal<"codex">;
141
+ }>, Schema.Struct<{
142
+ readonly profile: Schema.Literal<"pi-rpc">;
143
+ readonly runtime: Schema.Literal<"pi">;
144
+ }>]>;
145
+ readonly recordedAt: Schema.String;
146
+ readonly schemaVersion: Schema.Literal<3>;
147
+ readonly sessionCursor: Schema.String;
148
+ readonly sessionId: Schema.String;
149
+ }>, Schema.Struct<{
150
+ readonly commandId: Schema.String;
151
+ readonly eventType: Schema.Literal<"session.start.requested">;
152
+ readonly globalCursor: Schema.String;
153
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
154
+ readonly profile: Schema.Literal<"codex">;
155
+ readonly runtime: Schema.Literal<"codex">;
156
+ }>, Schema.Struct<{
157
+ readonly profile: Schema.Literal<"pi-rpc">;
158
+ readonly runtime: Schema.Literal<"pi">;
159
+ }>]>;
160
+ readonly recordedAt: Schema.String;
161
+ readonly schemaVersion: Schema.Literal<3>;
162
+ readonly sessionCursor: Schema.String;
163
+ readonly sessionId: Schema.String;
164
+ }>, Schema.Struct<{
165
+ readonly commandId: Schema.String;
166
+ readonly eventType: Schema.Literal<"session.runtime.started">;
167
+ readonly globalCursor: Schema.String;
168
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
169
+ readonly profile: Schema.Literal<"codex">;
170
+ readonly runtime: Schema.Literal<"codex">;
171
+ }>, Schema.Struct<{
172
+ readonly profile: Schema.Literal<"pi-rpc">;
173
+ readonly runtime: Schema.Literal<"pi">;
174
+ }>]>;
175
+ readonly recordedAt: Schema.String;
176
+ readonly schemaVersion: Schema.Literal<3>;
177
+ readonly sessionCursor: Schema.String;
178
+ readonly sessionId: Schema.String;
179
+ }>, Schema.Struct<{
180
+ readonly commandId: Schema.String;
181
+ readonly eventType: Schema.Literal<"session.runtime.recovery.requested">;
182
+ readonly globalCursor: Schema.String;
183
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
184
+ readonly profile: Schema.Literal<"codex">;
185
+ readonly runtime: Schema.Literal<"codex">;
186
+ }>, Schema.Struct<{
187
+ readonly profile: Schema.Literal<"pi-rpc">;
188
+ readonly runtime: Schema.Literal<"pi">;
189
+ }>]>;
190
+ readonly recordedAt: Schema.String;
191
+ readonly schemaVersion: Schema.Literal<3>;
192
+ readonly sessionCursor: Schema.String;
193
+ readonly sessionId: Schema.String;
194
+ }>, Schema.Struct<{
195
+ readonly commandId: Schema.String;
196
+ readonly eventType: Schema.Literal<"session.runtime.resumed">;
197
+ readonly globalCursor: Schema.String;
198
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
199
+ readonly profile: Schema.Literal<"codex">;
200
+ readonly runtime: Schema.Literal<"codex">;
201
+ }>, Schema.Struct<{
202
+ readonly profile: Schema.Literal<"pi-rpc">;
203
+ readonly runtime: Schema.Literal<"pi">;
204
+ }>]>;
205
+ readonly recordedAt: Schema.String;
206
+ readonly schemaVersion: Schema.Literal<3>;
207
+ readonly sessionCursor: Schema.String;
208
+ readonly sessionId: Schema.String;
209
+ }>, Schema.Struct<{
210
+ readonly commandId: Schema.String;
211
+ readonly eventType: Schema.Literal<"session.runtime.failed">;
212
+ readonly globalCursor: Schema.String;
213
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
214
+ readonly profile: Schema.Literal<"codex">;
215
+ readonly runtime: Schema.Literal<"codex">;
216
+ }>, Schema.Struct<{
217
+ readonly profile: Schema.Literal<"pi-rpc">;
218
+ readonly runtime: Schema.Literal<"pi">;
219
+ }>]>;
220
+ readonly recordedAt: Schema.String;
221
+ readonly schemaVersion: Schema.Literal<3>;
222
+ readonly sessionCursor: Schema.String;
223
+ readonly sessionId: Schema.String;
224
+ }>, Schema.Union<readonly [Schema.Struct<{
225
+ readonly eventType: Schema.Literal<"turn.queued">;
226
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
227
+ readonly profile: Schema.Literal<"codex">;
228
+ readonly runtime: Schema.Literal<"codex">;
229
+ readonly turnId: Schema.String;
230
+ }>, Schema.Struct<{
231
+ readonly profile: Schema.Literal<"pi-rpc">;
232
+ readonly runtime: Schema.Literal<"pi">;
233
+ readonly turnId: Schema.String;
234
+ }>]>;
235
+ readonly commandId: Schema.String;
236
+ readonly globalCursor: Schema.String;
237
+ readonly recordedAt: Schema.String;
238
+ readonly schemaVersion: Schema.Literal<3>;
239
+ readonly sessionCursor: Schema.String;
240
+ readonly sessionId: Schema.String;
241
+ }>, Schema.Struct<{
242
+ readonly eventType: Schema.Literal<"turn.dispatching">;
243
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
244
+ readonly profile: Schema.Literal<"codex">;
245
+ readonly runtime: Schema.Literal<"codex">;
246
+ readonly turnId: Schema.String;
247
+ }>, Schema.Struct<{
248
+ readonly profile: Schema.Literal<"pi-rpc">;
249
+ readonly runtime: Schema.Literal<"pi">;
250
+ readonly turnId: Schema.String;
251
+ }>]>;
252
+ readonly commandId: Schema.String;
253
+ readonly globalCursor: Schema.String;
254
+ readonly recordedAt: Schema.String;
255
+ readonly schemaVersion: Schema.Literal<3>;
256
+ readonly sessionCursor: Schema.String;
257
+ readonly sessionId: Schema.String;
258
+ }>, Schema.Struct<{
259
+ readonly eventType: Schema.Literal<"turn.started">;
260
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
261
+ readonly profile: Schema.Literal<"codex">;
262
+ readonly runtime: Schema.Literal<"codex">;
263
+ readonly turnId: Schema.String;
264
+ }>, Schema.Struct<{
265
+ readonly profile: Schema.Literal<"pi-rpc">;
266
+ readonly runtime: Schema.Literal<"pi">;
267
+ readonly turnId: Schema.String;
268
+ }>]>;
269
+ readonly commandId: Schema.String;
270
+ readonly globalCursor: Schema.String;
271
+ readonly recordedAt: Schema.String;
272
+ readonly schemaVersion: Schema.Literal<3>;
273
+ readonly sessionCursor: Schema.String;
274
+ readonly sessionId: Schema.String;
275
+ }>, Schema.Struct<{
276
+ readonly eventType: Schema.Literal<"turn.completed">;
277
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
278
+ readonly profile: Schema.Literal<"codex">;
279
+ readonly runtime: Schema.Literal<"codex">;
280
+ readonly turnId: Schema.String;
281
+ }>, Schema.Struct<{
282
+ readonly profile: Schema.Literal<"pi-rpc">;
283
+ readonly runtime: Schema.Literal<"pi">;
284
+ readonly turnId: Schema.String;
285
+ }>]>;
286
+ readonly commandId: Schema.String;
287
+ readonly globalCursor: Schema.String;
288
+ readonly recordedAt: Schema.String;
289
+ readonly schemaVersion: Schema.Literal<3>;
290
+ readonly sessionCursor: Schema.String;
291
+ readonly sessionId: Schema.String;
292
+ }>, Schema.Struct<{
293
+ readonly eventType: Schema.Literal<"turn.interrupted">;
294
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
295
+ readonly profile: Schema.Literal<"codex">;
296
+ readonly runtime: Schema.Literal<"codex">;
297
+ readonly turnId: Schema.String;
298
+ }>, Schema.Struct<{
299
+ readonly profile: Schema.Literal<"pi-rpc">;
300
+ readonly runtime: Schema.Literal<"pi">;
301
+ readonly turnId: Schema.String;
302
+ }>]>;
303
+ readonly commandId: Schema.String;
304
+ readonly globalCursor: Schema.String;
305
+ readonly recordedAt: Schema.String;
306
+ readonly schemaVersion: Schema.Literal<3>;
307
+ readonly sessionCursor: Schema.String;
308
+ readonly sessionId: Schema.String;
309
+ }>, Schema.Struct<{
310
+ readonly eventType: Schema.Literal<"turn.failed">;
311
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
312
+ readonly profile: Schema.Literal<"codex">;
313
+ readonly runtime: Schema.Literal<"codex">;
314
+ readonly turnId: Schema.String;
315
+ }>, Schema.Struct<{
316
+ readonly profile: Schema.Literal<"pi-rpc">;
317
+ readonly runtime: Schema.Literal<"pi">;
318
+ readonly turnId: Schema.String;
319
+ }>]>;
320
+ readonly commandId: Schema.String;
321
+ readonly globalCursor: Schema.String;
322
+ readonly recordedAt: Schema.String;
323
+ readonly schemaVersion: Schema.Literal<3>;
324
+ readonly sessionCursor: Schema.String;
325
+ readonly sessionId: Schema.String;
326
+ }>]>]>;
327
+ export declare const sessionCreateParametersEffectSchema: Schema.Union<readonly [Schema.Struct<{
328
+ readonly profile: Schema.optional<Schema.Literal<"codex">>;
329
+ readonly runtime: Schema.Literal<"codex">;
330
+ readonly commandId: Schema.String;
331
+ readonly expectedRevision: Schema.Literal<"0">;
332
+ readonly workspaceId: Schema.String;
333
+ }>, Schema.Struct<{
334
+ readonly profile: Schema.Literal<"pi-rpc">;
335
+ readonly runtime: Schema.Literal<"pi">;
336
+ readonly commandId: Schema.String;
337
+ readonly expectedRevision: Schema.Literal<"0">;
338
+ readonly workspaceId: Schema.String;
339
+ }>]>;
340
+ export declare const sessionListParametersEffectSchema: Schema.Struct<{
341
+ readonly afterCursor: Schema.String;
342
+ readonly limit: Schema.Int;
343
+ readonly projectId: Schema.String;
344
+ }>;
345
+ export declare const sessionShowParametersEffectSchema: Schema.Struct<{
346
+ readonly sessionId: Schema.String;
347
+ }>;
348
+ export declare const sessionEventsListParametersEffectSchema: Schema.Struct<{
349
+ readonly afterSessionCursor: Schema.String;
350
+ readonly limit: Schema.Int;
351
+ readonly sessionId: Schema.String;
352
+ }>;
353
+ export declare const sessionStartParametersEffectSchema: Schema.Struct<{
354
+ readonly commandId: Schema.String;
355
+ readonly expectedRevision: Schema.String;
356
+ readonly sessionId: Schema.String;
357
+ }>;
358
+ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
359
+ readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
360
+ readonly method: Schema.Literal<"session.create">;
361
+ readonly receipt: Schema.Struct<{
362
+ readonly actorId: Schema.String;
363
+ readonly aggregateRevision: Schema.String;
364
+ readonly commandId: Schema.String;
365
+ readonly createdAt: Schema.String;
366
+ readonly eventCursor: Schema.String;
367
+ readonly method: Schema.String;
368
+ readonly receiptId: Schema.String;
369
+ readonly schemaVersion: Schema.Literal<1>;
370
+ readonly state: Schema.Literal<"succeeded">;
371
+ readonly target: Schema.Struct<{
372
+ readonly id: Schema.String;
373
+ readonly type: Schema.String;
374
+ }>;
375
+ readonly updatedAt: Schema.String;
376
+ }>;
377
+ readonly session: Schema.Union<readonly [Schema.Struct<{
378
+ readonly runtime: Schema.Literal<"codex">;
379
+ readonly schemaVersion: Schema.Literal<2>;
380
+ readonly createdAt: Schema.String;
381
+ readonly id: Schema.String;
382
+ readonly projectId: Schema.String;
383
+ readonly revision: Schema.String;
384
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
385
+ readonly updatedAt: Schema.String;
386
+ readonly workspaceId: Schema.String;
387
+ readonly workspaceRevision: Schema.String;
388
+ }>, Schema.Struct<{
389
+ readonly schemaVersion: Schema.Literal<3>;
390
+ readonly profile: Schema.Literal<"codex">;
391
+ readonly runtime: Schema.Literal<"codex">;
392
+ readonly createdAt: Schema.String;
393
+ readonly id: Schema.String;
394
+ readonly projectId: Schema.String;
395
+ readonly revision: Schema.String;
396
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
397
+ readonly updatedAt: Schema.String;
398
+ readonly workspaceId: Schema.String;
399
+ readonly workspaceRevision: Schema.String;
400
+ }>, Schema.Struct<{
401
+ readonly schemaVersion: Schema.Literal<3>;
402
+ readonly profile: Schema.Literal<"pi-rpc">;
403
+ readonly runtime: Schema.Literal<"pi">;
404
+ readonly createdAt: Schema.String;
405
+ readonly id: Schema.String;
406
+ readonly projectId: Schema.String;
407
+ readonly revision: Schema.String;
408
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
409
+ readonly updatedAt: Schema.String;
410
+ readonly workspaceId: Schema.String;
411
+ readonly workspaceRevision: Schema.String;
412
+ }>]>;
413
+ }>;
414
+ export declare const sessionListResultEffectSchema: Schema.Struct<{
415
+ readonly items: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
416
+ readonly runtime: Schema.Literal<"codex">;
417
+ readonly schemaVersion: Schema.Literal<2>;
418
+ readonly createdAt: Schema.String;
419
+ readonly id: Schema.String;
420
+ readonly projectId: Schema.String;
421
+ readonly revision: Schema.String;
422
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
423
+ readonly updatedAt: Schema.String;
424
+ readonly workspaceId: Schema.String;
425
+ readonly workspaceRevision: Schema.String;
426
+ }>, Schema.Struct<{
427
+ readonly schemaVersion: Schema.Literal<3>;
428
+ readonly profile: Schema.Literal<"codex">;
429
+ readonly runtime: Schema.Literal<"codex">;
430
+ readonly createdAt: Schema.String;
431
+ readonly id: Schema.String;
432
+ readonly projectId: Schema.String;
433
+ readonly revision: Schema.String;
434
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
435
+ readonly updatedAt: Schema.String;
436
+ readonly workspaceId: Schema.String;
437
+ readonly workspaceRevision: Schema.String;
438
+ }>, Schema.Struct<{
439
+ readonly schemaVersion: Schema.Literal<3>;
440
+ readonly profile: Schema.Literal<"pi-rpc">;
441
+ readonly runtime: Schema.Literal<"pi">;
442
+ readonly createdAt: Schema.String;
443
+ readonly id: Schema.String;
444
+ readonly projectId: Schema.String;
445
+ readonly revision: Schema.String;
446
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
447
+ readonly updatedAt: Schema.String;
448
+ readonly workspaceId: Schema.String;
449
+ readonly workspaceRevision: Schema.String;
450
+ }>]>>;
451
+ readonly method: Schema.Literal<"session.list">;
452
+ readonly nextCursor: Schema.optional<Schema.String>;
453
+ }>;
454
+ export declare const sessionShowResultEffectSchema: Schema.Struct<{
455
+ readonly method: Schema.Literal<"session.show">;
456
+ readonly session: Schema.Union<readonly [Schema.Struct<{
457
+ readonly runtime: Schema.Literal<"codex">;
458
+ readonly schemaVersion: Schema.Literal<2>;
459
+ readonly createdAt: Schema.String;
460
+ readonly id: Schema.String;
461
+ readonly projectId: Schema.String;
462
+ readonly revision: Schema.String;
463
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
464
+ readonly updatedAt: Schema.String;
465
+ readonly workspaceId: Schema.String;
466
+ readonly workspaceRevision: Schema.String;
467
+ }>, Schema.Struct<{
468
+ readonly schemaVersion: Schema.Literal<3>;
469
+ readonly profile: Schema.Literal<"codex">;
470
+ readonly runtime: Schema.Literal<"codex">;
471
+ readonly createdAt: Schema.String;
472
+ readonly id: Schema.String;
473
+ readonly projectId: Schema.String;
474
+ readonly revision: Schema.String;
475
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
476
+ readonly updatedAt: Schema.String;
477
+ readonly workspaceId: Schema.String;
478
+ readonly workspaceRevision: Schema.String;
479
+ }>, Schema.Struct<{
480
+ readonly schemaVersion: Schema.Literal<3>;
481
+ readonly profile: Schema.Literal<"pi-rpc">;
482
+ readonly runtime: Schema.Literal<"pi">;
483
+ readonly createdAt: Schema.String;
484
+ readonly id: Schema.String;
485
+ readonly projectId: Schema.String;
486
+ readonly revision: Schema.String;
487
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
488
+ readonly updatedAt: Schema.String;
489
+ readonly workspaceId: Schema.String;
490
+ readonly workspaceRevision: Schema.String;
491
+ }>]>;
492
+ }>;
493
+ export declare const sessionEventsListResultEffectSchema: Schema.Struct<{
494
+ readonly headSessionCursor: Schema.String;
495
+ readonly items: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
496
+ readonly commandId: Schema.String;
497
+ readonly eventType: Schema.Literal<"session.created">;
498
+ readonly globalCursor: Schema.String;
499
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
500
+ readonly profile: Schema.Literal<"codex">;
501
+ readonly runtime: Schema.Literal<"codex">;
502
+ }>, Schema.Struct<{
503
+ readonly profile: Schema.Literal<"pi-rpc">;
504
+ readonly runtime: Schema.Literal<"pi">;
505
+ }>]>;
506
+ readonly recordedAt: Schema.String;
507
+ readonly schemaVersion: Schema.Literal<3>;
508
+ readonly sessionCursor: Schema.String;
509
+ readonly sessionId: Schema.String;
510
+ }>, Schema.Struct<{
511
+ readonly commandId: Schema.String;
512
+ readonly eventType: Schema.Literal<"session.start.requested">;
513
+ readonly globalCursor: Schema.String;
514
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
515
+ readonly profile: Schema.Literal<"codex">;
516
+ readonly runtime: Schema.Literal<"codex">;
517
+ }>, Schema.Struct<{
518
+ readonly profile: Schema.Literal<"pi-rpc">;
519
+ readonly runtime: Schema.Literal<"pi">;
520
+ }>]>;
521
+ readonly recordedAt: Schema.String;
522
+ readonly schemaVersion: Schema.Literal<3>;
523
+ readonly sessionCursor: Schema.String;
524
+ readonly sessionId: Schema.String;
525
+ }>, Schema.Struct<{
526
+ readonly commandId: Schema.String;
527
+ readonly eventType: Schema.Literal<"session.runtime.started">;
528
+ readonly globalCursor: Schema.String;
529
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
530
+ readonly profile: Schema.Literal<"codex">;
531
+ readonly runtime: Schema.Literal<"codex">;
532
+ }>, Schema.Struct<{
533
+ readonly profile: Schema.Literal<"pi-rpc">;
534
+ readonly runtime: Schema.Literal<"pi">;
535
+ }>]>;
536
+ readonly recordedAt: Schema.String;
537
+ readonly schemaVersion: Schema.Literal<3>;
538
+ readonly sessionCursor: Schema.String;
539
+ readonly sessionId: Schema.String;
540
+ }>, Schema.Struct<{
541
+ readonly commandId: Schema.String;
542
+ readonly eventType: Schema.Literal<"session.runtime.recovery.requested">;
543
+ readonly globalCursor: Schema.String;
544
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
545
+ readonly profile: Schema.Literal<"codex">;
546
+ readonly runtime: Schema.Literal<"codex">;
547
+ }>, Schema.Struct<{
548
+ readonly profile: Schema.Literal<"pi-rpc">;
549
+ readonly runtime: Schema.Literal<"pi">;
550
+ }>]>;
551
+ readonly recordedAt: Schema.String;
552
+ readonly schemaVersion: Schema.Literal<3>;
553
+ readonly sessionCursor: Schema.String;
554
+ readonly sessionId: Schema.String;
555
+ }>, Schema.Struct<{
556
+ readonly commandId: Schema.String;
557
+ readonly eventType: Schema.Literal<"session.runtime.resumed">;
558
+ readonly globalCursor: Schema.String;
559
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
560
+ readonly profile: Schema.Literal<"codex">;
561
+ readonly runtime: Schema.Literal<"codex">;
562
+ }>, Schema.Struct<{
563
+ readonly profile: Schema.Literal<"pi-rpc">;
564
+ readonly runtime: Schema.Literal<"pi">;
565
+ }>]>;
566
+ readonly recordedAt: Schema.String;
567
+ readonly schemaVersion: Schema.Literal<3>;
568
+ readonly sessionCursor: Schema.String;
569
+ readonly sessionId: Schema.String;
570
+ }>, Schema.Struct<{
571
+ readonly commandId: Schema.String;
572
+ readonly eventType: Schema.Literal<"session.runtime.failed">;
573
+ readonly globalCursor: Schema.String;
574
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
575
+ readonly profile: Schema.Literal<"codex">;
576
+ readonly runtime: Schema.Literal<"codex">;
577
+ }>, Schema.Struct<{
578
+ readonly profile: Schema.Literal<"pi-rpc">;
579
+ readonly runtime: Schema.Literal<"pi">;
580
+ }>]>;
581
+ readonly recordedAt: Schema.String;
582
+ readonly schemaVersion: Schema.Literal<3>;
583
+ readonly sessionCursor: Schema.String;
584
+ readonly sessionId: Schema.String;
585
+ }>, Schema.Union<readonly [Schema.Struct<{
586
+ readonly eventType: Schema.Literal<"turn.queued">;
587
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
588
+ readonly profile: Schema.Literal<"codex">;
589
+ readonly runtime: Schema.Literal<"codex">;
590
+ readonly turnId: Schema.String;
591
+ }>, Schema.Struct<{
592
+ readonly profile: Schema.Literal<"pi-rpc">;
593
+ readonly runtime: Schema.Literal<"pi">;
594
+ readonly turnId: Schema.String;
595
+ }>]>;
596
+ readonly commandId: Schema.String;
597
+ readonly globalCursor: Schema.String;
598
+ readonly recordedAt: Schema.String;
599
+ readonly schemaVersion: Schema.Literal<3>;
600
+ readonly sessionCursor: Schema.String;
601
+ readonly sessionId: Schema.String;
602
+ }>, Schema.Struct<{
603
+ readonly eventType: Schema.Literal<"turn.dispatching">;
604
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
605
+ readonly profile: Schema.Literal<"codex">;
606
+ readonly runtime: Schema.Literal<"codex">;
607
+ readonly turnId: Schema.String;
608
+ }>, Schema.Struct<{
609
+ readonly profile: Schema.Literal<"pi-rpc">;
610
+ readonly runtime: Schema.Literal<"pi">;
611
+ readonly turnId: Schema.String;
612
+ }>]>;
613
+ readonly commandId: Schema.String;
614
+ readonly globalCursor: Schema.String;
615
+ readonly recordedAt: Schema.String;
616
+ readonly schemaVersion: Schema.Literal<3>;
617
+ readonly sessionCursor: Schema.String;
618
+ readonly sessionId: Schema.String;
619
+ }>, Schema.Struct<{
620
+ readonly eventType: Schema.Literal<"turn.started">;
621
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
622
+ readonly profile: Schema.Literal<"codex">;
623
+ readonly runtime: Schema.Literal<"codex">;
624
+ readonly turnId: Schema.String;
625
+ }>, Schema.Struct<{
626
+ readonly profile: Schema.Literal<"pi-rpc">;
627
+ readonly runtime: Schema.Literal<"pi">;
628
+ readonly turnId: Schema.String;
629
+ }>]>;
630
+ readonly commandId: Schema.String;
631
+ readonly globalCursor: Schema.String;
632
+ readonly recordedAt: Schema.String;
633
+ readonly schemaVersion: Schema.Literal<3>;
634
+ readonly sessionCursor: Schema.String;
635
+ readonly sessionId: Schema.String;
636
+ }>, Schema.Struct<{
637
+ readonly eventType: Schema.Literal<"turn.completed">;
638
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
639
+ readonly profile: Schema.Literal<"codex">;
640
+ readonly runtime: Schema.Literal<"codex">;
641
+ readonly turnId: Schema.String;
642
+ }>, Schema.Struct<{
643
+ readonly profile: Schema.Literal<"pi-rpc">;
644
+ readonly runtime: Schema.Literal<"pi">;
645
+ readonly turnId: Schema.String;
646
+ }>]>;
647
+ readonly commandId: Schema.String;
648
+ readonly globalCursor: Schema.String;
649
+ readonly recordedAt: Schema.String;
650
+ readonly schemaVersion: Schema.Literal<3>;
651
+ readonly sessionCursor: Schema.String;
652
+ readonly sessionId: Schema.String;
653
+ }>, Schema.Struct<{
654
+ readonly eventType: Schema.Literal<"turn.interrupted">;
655
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
656
+ readonly profile: Schema.Literal<"codex">;
657
+ readonly runtime: Schema.Literal<"codex">;
658
+ readonly turnId: Schema.String;
659
+ }>, Schema.Struct<{
660
+ readonly profile: Schema.Literal<"pi-rpc">;
661
+ readonly runtime: Schema.Literal<"pi">;
662
+ readonly turnId: Schema.String;
663
+ }>]>;
664
+ readonly commandId: Schema.String;
665
+ readonly globalCursor: Schema.String;
666
+ readonly recordedAt: Schema.String;
667
+ readonly schemaVersion: Schema.Literal<3>;
668
+ readonly sessionCursor: Schema.String;
669
+ readonly sessionId: Schema.String;
670
+ }>, Schema.Struct<{
671
+ readonly eventType: Schema.Literal<"turn.failed">;
672
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
673
+ readonly profile: Schema.Literal<"codex">;
674
+ readonly runtime: Schema.Literal<"codex">;
675
+ readonly turnId: Schema.String;
676
+ }>, Schema.Struct<{
677
+ readonly profile: Schema.Literal<"pi-rpc">;
678
+ readonly runtime: Schema.Literal<"pi">;
679
+ readonly turnId: Schema.String;
680
+ }>]>;
681
+ readonly commandId: Schema.String;
682
+ readonly globalCursor: Schema.String;
683
+ readonly recordedAt: Schema.String;
684
+ readonly schemaVersion: Schema.Literal<3>;
685
+ readonly sessionCursor: Schema.String;
686
+ readonly sessionId: Schema.String;
687
+ }>]>]>>;
688
+ readonly method: Schema.Literal<"session.events.list">;
689
+ readonly nextSessionCursor: Schema.optional<Schema.String>;
690
+ readonly sessionId: Schema.String;
691
+ }>;
692
+ export declare const sessionStartResultEffectSchema: Schema.Struct<{
693
+ readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
694
+ readonly method: Schema.Literal<"session.start">;
695
+ readonly receipt: Schema.Struct<{
696
+ readonly actorId: Schema.String;
697
+ readonly aggregateRevision: Schema.String;
698
+ readonly commandId: Schema.String;
699
+ readonly createdAt: Schema.String;
700
+ readonly eventCursor: Schema.String;
701
+ readonly method: Schema.String;
702
+ readonly receiptId: Schema.String;
703
+ readonly schemaVersion: Schema.Literal<1>;
704
+ readonly state: Schema.Literal<"succeeded">;
705
+ readonly target: Schema.Struct<{
706
+ readonly id: Schema.String;
707
+ readonly type: Schema.String;
708
+ }>;
709
+ readonly updatedAt: Schema.String;
710
+ }>;
711
+ readonly session: Schema.Union<readonly [Schema.Struct<{
712
+ readonly runtime: Schema.Literal<"codex">;
713
+ readonly schemaVersion: Schema.Literal<2>;
714
+ readonly createdAt: Schema.String;
715
+ readonly id: Schema.String;
716
+ readonly projectId: Schema.String;
717
+ readonly revision: Schema.String;
718
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
719
+ readonly updatedAt: Schema.String;
720
+ readonly workspaceId: Schema.String;
721
+ readonly workspaceRevision: Schema.String;
722
+ }>, Schema.Struct<{
723
+ readonly schemaVersion: Schema.Literal<3>;
724
+ readonly profile: Schema.Literal<"codex">;
725
+ readonly runtime: Schema.Literal<"codex">;
726
+ readonly createdAt: Schema.String;
727
+ readonly id: Schema.String;
728
+ readonly projectId: Schema.String;
729
+ readonly revision: Schema.String;
730
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
731
+ readonly updatedAt: Schema.String;
732
+ readonly workspaceId: Schema.String;
733
+ readonly workspaceRevision: Schema.String;
734
+ }>, Schema.Struct<{
735
+ readonly schemaVersion: Schema.Literal<3>;
736
+ readonly profile: Schema.Literal<"pi-rpc">;
737
+ readonly runtime: Schema.Literal<"pi">;
738
+ readonly createdAt: Schema.String;
739
+ readonly id: Schema.String;
740
+ readonly projectId: Schema.String;
741
+ readonly revision: Schema.String;
742
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
743
+ readonly updatedAt: Schema.String;
744
+ readonly workspaceId: Schema.String;
745
+ readonly workspaceRevision: Schema.String;
746
+ }>]>;
747
+ }>;
748
+ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [Schema.Struct<{
749
+ readonly method: Schema.Literal<"session.create">;
750
+ readonly parameters: Schema.Union<readonly [Schema.Struct<{
751
+ readonly profile: Schema.optional<Schema.Literal<"codex">>;
752
+ readonly runtime: Schema.Literal<"codex">;
753
+ readonly commandId: Schema.String;
754
+ readonly expectedRevision: Schema.Literal<"0">;
755
+ readonly workspaceId: Schema.String;
756
+ }>, Schema.Struct<{
757
+ readonly profile: Schema.Literal<"pi-rpc">;
758
+ readonly runtime: Schema.Literal<"pi">;
759
+ readonly commandId: Schema.String;
760
+ readonly expectedRevision: Schema.Literal<"0">;
761
+ readonly workspaceId: Schema.String;
762
+ }>]>;
763
+ }>, Schema.Struct<{
764
+ readonly method: Schema.Literal<"session.list">;
765
+ readonly parameters: Schema.Struct<{
766
+ readonly afterCursor: Schema.String;
767
+ readonly limit: Schema.Int;
768
+ readonly projectId: Schema.String;
769
+ }>;
770
+ }>, Schema.Struct<{
771
+ readonly method: Schema.Literal<"session.show">;
772
+ readonly parameters: Schema.Struct<{
773
+ readonly sessionId: Schema.String;
774
+ }>;
775
+ }>, Schema.Struct<{
776
+ readonly method: Schema.Literal<"session.events.list">;
777
+ readonly parameters: Schema.Struct<{
778
+ readonly afterSessionCursor: Schema.String;
779
+ readonly limit: Schema.Int;
780
+ readonly sessionId: Schema.String;
781
+ }>;
782
+ }>, Schema.Struct<{
783
+ readonly method: Schema.Literal<"session.start">;
784
+ readonly parameters: Schema.Struct<{
785
+ readonly commandId: Schema.String;
786
+ readonly expectedRevision: Schema.String;
787
+ readonly sessionId: Schema.String;
788
+ }>;
789
+ }>]>;
790
+ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Schema.Struct<{
791
+ readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
792
+ readonly method: Schema.Literal<"session.create">;
793
+ readonly receipt: Schema.Struct<{
794
+ readonly actorId: Schema.String;
795
+ readonly aggregateRevision: Schema.String;
796
+ readonly commandId: Schema.String;
797
+ readonly createdAt: Schema.String;
798
+ readonly eventCursor: Schema.String;
799
+ readonly method: Schema.String;
800
+ readonly receiptId: Schema.String;
801
+ readonly schemaVersion: Schema.Literal<1>;
802
+ readonly state: Schema.Literal<"succeeded">;
803
+ readonly target: Schema.Struct<{
804
+ readonly id: Schema.String;
805
+ readonly type: Schema.String;
806
+ }>;
807
+ readonly updatedAt: Schema.String;
808
+ }>;
809
+ readonly session: Schema.Union<readonly [Schema.Struct<{
810
+ readonly runtime: Schema.Literal<"codex">;
811
+ readonly schemaVersion: Schema.Literal<2>;
812
+ readonly createdAt: Schema.String;
813
+ readonly id: Schema.String;
814
+ readonly projectId: Schema.String;
815
+ readonly revision: Schema.String;
816
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
817
+ readonly updatedAt: Schema.String;
818
+ readonly workspaceId: Schema.String;
819
+ readonly workspaceRevision: Schema.String;
820
+ }>, Schema.Struct<{
821
+ readonly schemaVersion: Schema.Literal<3>;
822
+ readonly profile: Schema.Literal<"codex">;
823
+ readonly runtime: Schema.Literal<"codex">;
824
+ readonly createdAt: Schema.String;
825
+ readonly id: Schema.String;
826
+ readonly projectId: Schema.String;
827
+ readonly revision: Schema.String;
828
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
829
+ readonly updatedAt: Schema.String;
830
+ readonly workspaceId: Schema.String;
831
+ readonly workspaceRevision: Schema.String;
832
+ }>, Schema.Struct<{
833
+ readonly schemaVersion: Schema.Literal<3>;
834
+ readonly profile: Schema.Literal<"pi-rpc">;
835
+ readonly runtime: Schema.Literal<"pi">;
836
+ readonly createdAt: Schema.String;
837
+ readonly id: Schema.String;
838
+ readonly projectId: Schema.String;
839
+ readonly revision: Schema.String;
840
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
841
+ readonly updatedAt: Schema.String;
842
+ readonly workspaceId: Schema.String;
843
+ readonly workspaceRevision: Schema.String;
844
+ }>]>;
845
+ }>, Schema.Struct<{
846
+ readonly items: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
847
+ readonly runtime: Schema.Literal<"codex">;
848
+ readonly schemaVersion: Schema.Literal<2>;
849
+ readonly createdAt: Schema.String;
850
+ readonly id: Schema.String;
851
+ readonly projectId: Schema.String;
852
+ readonly revision: Schema.String;
853
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
854
+ readonly updatedAt: Schema.String;
855
+ readonly workspaceId: Schema.String;
856
+ readonly workspaceRevision: Schema.String;
857
+ }>, Schema.Struct<{
858
+ readonly schemaVersion: Schema.Literal<3>;
859
+ readonly profile: Schema.Literal<"codex">;
860
+ readonly runtime: Schema.Literal<"codex">;
861
+ readonly createdAt: Schema.String;
862
+ readonly id: Schema.String;
863
+ readonly projectId: Schema.String;
864
+ readonly revision: Schema.String;
865
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
866
+ readonly updatedAt: Schema.String;
867
+ readonly workspaceId: Schema.String;
868
+ readonly workspaceRevision: Schema.String;
869
+ }>, Schema.Struct<{
870
+ readonly schemaVersion: Schema.Literal<3>;
871
+ readonly profile: Schema.Literal<"pi-rpc">;
872
+ readonly runtime: Schema.Literal<"pi">;
873
+ readonly createdAt: Schema.String;
874
+ readonly id: Schema.String;
875
+ readonly projectId: Schema.String;
876
+ readonly revision: Schema.String;
877
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
878
+ readonly updatedAt: Schema.String;
879
+ readonly workspaceId: Schema.String;
880
+ readonly workspaceRevision: Schema.String;
881
+ }>]>>;
882
+ readonly method: Schema.Literal<"session.list">;
883
+ readonly nextCursor: Schema.optional<Schema.String>;
884
+ }>, Schema.Struct<{
885
+ readonly method: Schema.Literal<"session.show">;
886
+ readonly session: Schema.Union<readonly [Schema.Struct<{
887
+ readonly runtime: Schema.Literal<"codex">;
888
+ readonly schemaVersion: Schema.Literal<2>;
889
+ readonly createdAt: Schema.String;
890
+ readonly id: Schema.String;
891
+ readonly projectId: Schema.String;
892
+ readonly revision: Schema.String;
893
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
894
+ readonly updatedAt: Schema.String;
895
+ readonly workspaceId: Schema.String;
896
+ readonly workspaceRevision: Schema.String;
897
+ }>, Schema.Struct<{
898
+ readonly schemaVersion: Schema.Literal<3>;
899
+ readonly profile: Schema.Literal<"codex">;
900
+ readonly runtime: Schema.Literal<"codex">;
901
+ readonly createdAt: Schema.String;
902
+ readonly id: Schema.String;
903
+ readonly projectId: Schema.String;
904
+ readonly revision: Schema.String;
905
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
906
+ readonly updatedAt: Schema.String;
907
+ readonly workspaceId: Schema.String;
908
+ readonly workspaceRevision: Schema.String;
909
+ }>, Schema.Struct<{
910
+ readonly schemaVersion: Schema.Literal<3>;
911
+ readonly profile: Schema.Literal<"pi-rpc">;
912
+ readonly runtime: Schema.Literal<"pi">;
913
+ readonly createdAt: Schema.String;
914
+ readonly id: Schema.String;
915
+ readonly projectId: Schema.String;
916
+ readonly revision: Schema.String;
917
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
918
+ readonly updatedAt: Schema.String;
919
+ readonly workspaceId: Schema.String;
920
+ readonly workspaceRevision: Schema.String;
921
+ }>]>;
922
+ }>, Schema.Struct<{
923
+ readonly headSessionCursor: Schema.String;
924
+ readonly items: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
925
+ readonly commandId: Schema.String;
926
+ readonly eventType: Schema.Literal<"session.created">;
927
+ readonly globalCursor: Schema.String;
928
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
929
+ readonly profile: Schema.Literal<"codex">;
930
+ readonly runtime: Schema.Literal<"codex">;
931
+ }>, Schema.Struct<{
932
+ readonly profile: Schema.Literal<"pi-rpc">;
933
+ readonly runtime: Schema.Literal<"pi">;
934
+ }>]>;
935
+ readonly recordedAt: Schema.String;
936
+ readonly schemaVersion: Schema.Literal<3>;
937
+ readonly sessionCursor: Schema.String;
938
+ readonly sessionId: Schema.String;
939
+ }>, Schema.Struct<{
940
+ readonly commandId: Schema.String;
941
+ readonly eventType: Schema.Literal<"session.start.requested">;
942
+ readonly globalCursor: Schema.String;
943
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
944
+ readonly profile: Schema.Literal<"codex">;
945
+ readonly runtime: Schema.Literal<"codex">;
946
+ }>, Schema.Struct<{
947
+ readonly profile: Schema.Literal<"pi-rpc">;
948
+ readonly runtime: Schema.Literal<"pi">;
949
+ }>]>;
950
+ readonly recordedAt: Schema.String;
951
+ readonly schemaVersion: Schema.Literal<3>;
952
+ readonly sessionCursor: Schema.String;
953
+ readonly sessionId: Schema.String;
954
+ }>, Schema.Struct<{
955
+ readonly commandId: Schema.String;
956
+ readonly eventType: Schema.Literal<"session.runtime.started">;
957
+ readonly globalCursor: Schema.String;
958
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
959
+ readonly profile: Schema.Literal<"codex">;
960
+ readonly runtime: Schema.Literal<"codex">;
961
+ }>, Schema.Struct<{
962
+ readonly profile: Schema.Literal<"pi-rpc">;
963
+ readonly runtime: Schema.Literal<"pi">;
964
+ }>]>;
965
+ readonly recordedAt: Schema.String;
966
+ readonly schemaVersion: Schema.Literal<3>;
967
+ readonly sessionCursor: Schema.String;
968
+ readonly sessionId: Schema.String;
969
+ }>, Schema.Struct<{
970
+ readonly commandId: Schema.String;
971
+ readonly eventType: Schema.Literal<"session.runtime.recovery.requested">;
972
+ readonly globalCursor: Schema.String;
973
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
974
+ readonly profile: Schema.Literal<"codex">;
975
+ readonly runtime: Schema.Literal<"codex">;
976
+ }>, Schema.Struct<{
977
+ readonly profile: Schema.Literal<"pi-rpc">;
978
+ readonly runtime: Schema.Literal<"pi">;
979
+ }>]>;
980
+ readonly recordedAt: Schema.String;
981
+ readonly schemaVersion: Schema.Literal<3>;
982
+ readonly sessionCursor: Schema.String;
983
+ readonly sessionId: Schema.String;
984
+ }>, Schema.Struct<{
985
+ readonly commandId: Schema.String;
986
+ readonly eventType: Schema.Literal<"session.runtime.resumed">;
987
+ readonly globalCursor: Schema.String;
988
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
989
+ readonly profile: Schema.Literal<"codex">;
990
+ readonly runtime: Schema.Literal<"codex">;
991
+ }>, Schema.Struct<{
992
+ readonly profile: Schema.Literal<"pi-rpc">;
993
+ readonly runtime: Schema.Literal<"pi">;
994
+ }>]>;
995
+ readonly recordedAt: Schema.String;
996
+ readonly schemaVersion: Schema.Literal<3>;
997
+ readonly sessionCursor: Schema.String;
998
+ readonly sessionId: Schema.String;
999
+ }>, Schema.Struct<{
1000
+ readonly commandId: Schema.String;
1001
+ readonly eventType: Schema.Literal<"session.runtime.failed">;
1002
+ readonly globalCursor: Schema.String;
1003
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
1004
+ readonly profile: Schema.Literal<"codex">;
1005
+ readonly runtime: Schema.Literal<"codex">;
1006
+ }>, Schema.Struct<{
1007
+ readonly profile: Schema.Literal<"pi-rpc">;
1008
+ readonly runtime: Schema.Literal<"pi">;
1009
+ }>]>;
1010
+ readonly recordedAt: Schema.String;
1011
+ readonly schemaVersion: Schema.Literal<3>;
1012
+ readonly sessionCursor: Schema.String;
1013
+ readonly sessionId: Schema.String;
1014
+ }>, Schema.Union<readonly [Schema.Struct<{
1015
+ readonly eventType: Schema.Literal<"turn.queued">;
1016
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
1017
+ readonly profile: Schema.Literal<"codex">;
1018
+ readonly runtime: Schema.Literal<"codex">;
1019
+ readonly turnId: Schema.String;
1020
+ }>, Schema.Struct<{
1021
+ readonly profile: Schema.Literal<"pi-rpc">;
1022
+ readonly runtime: Schema.Literal<"pi">;
1023
+ readonly turnId: Schema.String;
1024
+ }>]>;
1025
+ readonly commandId: Schema.String;
1026
+ readonly globalCursor: Schema.String;
1027
+ readonly recordedAt: Schema.String;
1028
+ readonly schemaVersion: Schema.Literal<3>;
1029
+ readonly sessionCursor: Schema.String;
1030
+ readonly sessionId: Schema.String;
1031
+ }>, Schema.Struct<{
1032
+ readonly eventType: Schema.Literal<"turn.dispatching">;
1033
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
1034
+ readonly profile: Schema.Literal<"codex">;
1035
+ readonly runtime: Schema.Literal<"codex">;
1036
+ readonly turnId: Schema.String;
1037
+ }>, Schema.Struct<{
1038
+ readonly profile: Schema.Literal<"pi-rpc">;
1039
+ readonly runtime: Schema.Literal<"pi">;
1040
+ readonly turnId: Schema.String;
1041
+ }>]>;
1042
+ readonly commandId: Schema.String;
1043
+ readonly globalCursor: Schema.String;
1044
+ readonly recordedAt: Schema.String;
1045
+ readonly schemaVersion: Schema.Literal<3>;
1046
+ readonly sessionCursor: Schema.String;
1047
+ readonly sessionId: Schema.String;
1048
+ }>, Schema.Struct<{
1049
+ readonly eventType: Schema.Literal<"turn.started">;
1050
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
1051
+ readonly profile: Schema.Literal<"codex">;
1052
+ readonly runtime: Schema.Literal<"codex">;
1053
+ readonly turnId: Schema.String;
1054
+ }>, Schema.Struct<{
1055
+ readonly profile: Schema.Literal<"pi-rpc">;
1056
+ readonly runtime: Schema.Literal<"pi">;
1057
+ readonly turnId: Schema.String;
1058
+ }>]>;
1059
+ readonly commandId: Schema.String;
1060
+ readonly globalCursor: Schema.String;
1061
+ readonly recordedAt: Schema.String;
1062
+ readonly schemaVersion: Schema.Literal<3>;
1063
+ readonly sessionCursor: Schema.String;
1064
+ readonly sessionId: Schema.String;
1065
+ }>, Schema.Struct<{
1066
+ readonly eventType: Schema.Literal<"turn.completed">;
1067
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
1068
+ readonly profile: Schema.Literal<"codex">;
1069
+ readonly runtime: Schema.Literal<"codex">;
1070
+ readonly turnId: Schema.String;
1071
+ }>, Schema.Struct<{
1072
+ readonly profile: Schema.Literal<"pi-rpc">;
1073
+ readonly runtime: Schema.Literal<"pi">;
1074
+ readonly turnId: Schema.String;
1075
+ }>]>;
1076
+ readonly commandId: Schema.String;
1077
+ readonly globalCursor: Schema.String;
1078
+ readonly recordedAt: Schema.String;
1079
+ readonly schemaVersion: Schema.Literal<3>;
1080
+ readonly sessionCursor: Schema.String;
1081
+ readonly sessionId: Schema.String;
1082
+ }>, Schema.Struct<{
1083
+ readonly eventType: Schema.Literal<"turn.interrupted">;
1084
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
1085
+ readonly profile: Schema.Literal<"codex">;
1086
+ readonly runtime: Schema.Literal<"codex">;
1087
+ readonly turnId: Schema.String;
1088
+ }>, Schema.Struct<{
1089
+ readonly profile: Schema.Literal<"pi-rpc">;
1090
+ readonly runtime: Schema.Literal<"pi">;
1091
+ readonly turnId: Schema.String;
1092
+ }>]>;
1093
+ readonly commandId: Schema.String;
1094
+ readonly globalCursor: Schema.String;
1095
+ readonly recordedAt: Schema.String;
1096
+ readonly schemaVersion: Schema.Literal<3>;
1097
+ readonly sessionCursor: Schema.String;
1098
+ readonly sessionId: Schema.String;
1099
+ }>, Schema.Struct<{
1100
+ readonly eventType: Schema.Literal<"turn.failed">;
1101
+ readonly payload: Schema.Union<readonly [Schema.Struct<{
1102
+ readonly profile: Schema.Literal<"codex">;
1103
+ readonly runtime: Schema.Literal<"codex">;
1104
+ readonly turnId: Schema.String;
1105
+ }>, Schema.Struct<{
1106
+ readonly profile: Schema.Literal<"pi-rpc">;
1107
+ readonly runtime: Schema.Literal<"pi">;
1108
+ readonly turnId: Schema.String;
1109
+ }>]>;
1110
+ readonly commandId: Schema.String;
1111
+ readonly globalCursor: Schema.String;
1112
+ readonly recordedAt: Schema.String;
1113
+ readonly schemaVersion: Schema.Literal<3>;
1114
+ readonly sessionCursor: Schema.String;
1115
+ readonly sessionId: Schema.String;
1116
+ }>]>]>>;
1117
+ readonly method: Schema.Literal<"session.events.list">;
1118
+ readonly nextSessionCursor: Schema.optional<Schema.String>;
1119
+ readonly sessionId: Schema.String;
1120
+ }>, Schema.Struct<{
1121
+ readonly delivery: Schema.Literals<readonly ["new", "duplicate"]>;
1122
+ readonly method: Schema.Literal<"session.start">;
1123
+ readonly receipt: Schema.Struct<{
1124
+ readonly actorId: Schema.String;
1125
+ readonly aggregateRevision: Schema.String;
1126
+ readonly commandId: Schema.String;
1127
+ readonly createdAt: Schema.String;
1128
+ readonly eventCursor: Schema.String;
1129
+ readonly method: Schema.String;
1130
+ readonly receiptId: Schema.String;
1131
+ readonly schemaVersion: Schema.Literal<1>;
1132
+ readonly state: Schema.Literal<"succeeded">;
1133
+ readonly target: Schema.Struct<{
1134
+ readonly id: Schema.String;
1135
+ readonly type: Schema.String;
1136
+ }>;
1137
+ readonly updatedAt: Schema.String;
1138
+ }>;
1139
+ readonly session: Schema.Union<readonly [Schema.Struct<{
1140
+ readonly runtime: Schema.Literal<"codex">;
1141
+ readonly schemaVersion: Schema.Literal<2>;
1142
+ readonly createdAt: Schema.String;
1143
+ readonly id: Schema.String;
1144
+ readonly projectId: Schema.String;
1145
+ readonly revision: Schema.String;
1146
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
1147
+ readonly updatedAt: Schema.String;
1148
+ readonly workspaceId: Schema.String;
1149
+ readonly workspaceRevision: Schema.String;
1150
+ }>, Schema.Struct<{
1151
+ readonly schemaVersion: Schema.Literal<3>;
1152
+ readonly profile: Schema.Literal<"codex">;
1153
+ readonly runtime: Schema.Literal<"codex">;
1154
+ readonly createdAt: Schema.String;
1155
+ readonly id: Schema.String;
1156
+ readonly projectId: Schema.String;
1157
+ readonly revision: Schema.String;
1158
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
1159
+ readonly updatedAt: Schema.String;
1160
+ readonly workspaceId: Schema.String;
1161
+ readonly workspaceRevision: Schema.String;
1162
+ }>, Schema.Struct<{
1163
+ readonly schemaVersion: Schema.Literal<3>;
1164
+ readonly profile: Schema.Literal<"pi-rpc">;
1165
+ readonly runtime: Schema.Literal<"pi">;
1166
+ readonly createdAt: Schema.String;
1167
+ readonly id: Schema.String;
1168
+ readonly projectId: Schema.String;
1169
+ readonly revision: Schema.String;
1170
+ readonly state: Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>;
1171
+ readonly updatedAt: Schema.String;
1172
+ readonly workspaceId: Schema.String;
1173
+ readonly workspaceRevision: Schema.String;
1174
+ }>]>;
1175
+ }>]>;
1176
+ //# sourceMappingURL=effect-schema.d.ts.map