@dual-os/sdk 0.0.0-stage → 0.8.0-next.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 (214) hide show
  1. package/LICENSE +4 -0
  2. package/README.md +19 -2
  3. package/dist/Action.d.ts +201 -0
  4. package/dist/Action.d.ts.map +1 -0
  5. package/dist/Action.js +172 -0
  6. package/dist/Action.js.map +1 -0
  7. package/dist/AgentChannel.d.ts +1717 -0
  8. package/dist/AgentChannel.d.ts.map +1 -0
  9. package/dist/AgentChannel.js +708 -0
  10. package/dist/AgentChannel.js.map +1 -0
  11. package/dist/AgentChannelConformance.d.ts +1543 -0
  12. package/dist/AgentChannelConformance.d.ts.map +1 -0
  13. package/dist/AgentChannelConformance.js +163 -0
  14. package/dist/AgentChannelConformance.js.map +1 -0
  15. package/dist/AgentChannelRuntime.d.ts +78 -0
  16. package/dist/AgentChannelRuntime.d.ts.map +1 -0
  17. package/dist/AgentChannelRuntime.js +270 -0
  18. package/dist/AgentChannelRuntime.js.map +1 -0
  19. package/dist/AiProvider.d.ts +132 -0
  20. package/dist/AiProvider.d.ts.map +1 -0
  21. package/dist/AiProvider.js +100 -0
  22. package/dist/AiProvider.js.map +1 -0
  23. package/dist/AuthMethod.d.ts +381 -0
  24. package/dist/AuthMethod.d.ts.map +1 -0
  25. package/dist/AuthMethod.js +225 -0
  26. package/dist/AuthMethod.js.map +1 -0
  27. package/dist/AuthMethodBinding.d.ts +77 -0
  28. package/dist/AuthMethodBinding.d.ts.map +1 -0
  29. package/dist/AuthMethodBinding.js +31 -0
  30. package/dist/AuthMethodBinding.js.map +1 -0
  31. package/dist/AuthMethodExecution.d.ts +223 -0
  32. package/dist/AuthMethodExecution.d.ts.map +1 -0
  33. package/dist/AuthMethodExecution.js +277 -0
  34. package/dist/AuthMethodExecution.js.map +1 -0
  35. package/dist/ConnectionResolver.d.ts +219 -0
  36. package/dist/ConnectionResolver.d.ts.map +1 -0
  37. package/dist/ConnectionResolver.js +153 -0
  38. package/dist/ConnectionResolver.js.map +1 -0
  39. package/dist/DefinitionError.d.ts +67 -0
  40. package/dist/DefinitionError.d.ts.map +1 -0
  41. package/dist/DefinitionError.js +82 -0
  42. package/dist/DefinitionError.js.map +1 -0
  43. package/dist/DualRegistry.d.ts +71 -0
  44. package/dist/DualRegistry.d.ts.map +1 -0
  45. package/dist/DualRegistry.js +96 -0
  46. package/dist/DualRegistry.js.map +1 -0
  47. package/dist/DualRuntime.d.ts +279 -0
  48. package/dist/DualRuntime.d.ts.map +1 -0
  49. package/dist/DualRuntime.js +311 -0
  50. package/dist/DualRuntime.js.map +1 -0
  51. package/dist/Files.d.ts +80 -0
  52. package/dist/Files.d.ts.map +1 -0
  53. package/dist/Files.js +66 -0
  54. package/dist/Files.js.map +1 -0
  55. package/dist/Group.d.ts +106 -0
  56. package/dist/Group.d.ts.map +1 -0
  57. package/dist/Group.js +86 -0
  58. package/dist/Group.js.map +1 -0
  59. package/dist/Http.d.ts +342 -0
  60. package/dist/Http.d.ts.map +1 -0
  61. package/dist/Http.js +677 -0
  62. package/dist/Http.js.map +1 -0
  63. package/dist/Mcp.d.ts +109 -0
  64. package/dist/Mcp.d.ts.map +1 -0
  65. package/dist/Mcp.js +176 -0
  66. package/dist/Mcp.js.map +1 -0
  67. package/dist/OAuth2TokenRefresher.d.ts +18 -0
  68. package/dist/OAuth2TokenRefresher.d.ts.map +1 -0
  69. package/dist/OAuth2TokenRefresher.js +19 -0
  70. package/dist/OAuth2TokenRefresher.js.map +1 -0
  71. package/dist/OAuthFlow.d.ts +71 -0
  72. package/dist/OAuthFlow.d.ts.map +1 -0
  73. package/dist/OAuthFlow.js +488 -0
  74. package/dist/OAuthFlow.js.map +1 -0
  75. package/dist/Plugin.d.ts +383 -0
  76. package/dist/Plugin.d.ts.map +1 -0
  77. package/dist/Plugin.js +249 -0
  78. package/dist/Plugin.js.map +1 -0
  79. package/dist/PluginRuntime.d.ts +3186 -0
  80. package/dist/PluginRuntime.d.ts.map +1 -0
  81. package/dist/PluginRuntime.js +331 -0
  82. package/dist/PluginRuntime.js.map +1 -0
  83. package/dist/Runner.d.ts +1 -0
  84. package/dist/Runner.js +124 -0
  85. package/dist/Runner.js.map +1 -0
  86. package/dist/ToolFile.d.ts +23 -0
  87. package/dist/ToolFile.d.ts.map +1 -0
  88. package/dist/ToolFile.js +33 -0
  89. package/dist/ToolFile.js.map +1 -0
  90. package/dist/Trigger.d.ts +358 -0
  91. package/dist/Trigger.d.ts.map +1 -0
  92. package/dist/Trigger.js +287 -0
  93. package/dist/Trigger.js.map +1 -0
  94. package/dist/_virtual/_rolldown/runtime.js +13 -0
  95. package/dist/index.d.ts +24 -0
  96. package/dist/index.js +24 -0
  97. package/dist/internal/auth-context.d.ts +23 -0
  98. package/dist/internal/auth-context.d.ts.map +1 -0
  99. package/dist/internal/auth-context.js +1 -0
  100. package/dist/internal/auth-execution.d.ts +27 -0
  101. package/dist/internal/auth-execution.d.ts.map +1 -0
  102. package/dist/internal/auth-execution.js +66 -0
  103. package/dist/internal/auth-execution.js.map +1 -0
  104. package/dist/internal/auth-runtime.d.ts +5 -0
  105. package/dist/internal/auth-runtime.d.ts.map +1 -0
  106. package/dist/internal/auth-runtime.js +16 -0
  107. package/dist/internal/auth-runtime.js.map +1 -0
  108. package/dist/internal/capabilities.d.ts +24 -0
  109. package/dist/internal/capabilities.d.ts.map +1 -0
  110. package/dist/internal/capabilities.js +22 -0
  111. package/dist/internal/capabilities.js.map +1 -0
  112. package/dist/internal/children.d.ts +34 -0
  113. package/dist/internal/children.d.ts.map +1 -0
  114. package/dist/internal/children.js +53 -0
  115. package/dist/internal/children.js.map +1 -0
  116. package/dist/internal/collection-utils.d.ts +4 -0
  117. package/dist/internal/collection-utils.d.ts.map +1 -0
  118. package/dist/internal/collection-utils.js +6 -0
  119. package/dist/internal/collection-utils.js.map +1 -0
  120. package/dist/internal/dual/actions.d.ts +33 -0
  121. package/dist/internal/dual/actions.d.ts.map +1 -0
  122. package/dist/internal/dual/actions.js +26 -0
  123. package/dist/internal/dual/actions.js.map +1 -0
  124. package/dist/internal/dual/invoke.d.ts +63 -0
  125. package/dist/internal/dual/invoke.d.ts.map +1 -0
  126. package/dist/internal/dual/invoke.js +75 -0
  127. package/dist/internal/dual/invoke.js.map +1 -0
  128. package/dist/internal/dual/registry.d.ts +125 -0
  129. package/dist/internal/dual/registry.d.ts.map +1 -0
  130. package/dist/internal/dual/registry.js +172 -0
  131. package/dist/internal/dual/registry.js.map +1 -0
  132. package/dist/internal/dual/triggers.d.ts +29 -0
  133. package/dist/internal/dual/triggers.d.ts.map +1 -0
  134. package/dist/internal/dual/triggers.js +26 -0
  135. package/dist/internal/dual/triggers.js.map +1 -0
  136. package/dist/internal/handler-context.d.ts +9 -0
  137. package/dist/internal/handler-context.d.ts.map +1 -0
  138. package/dist/internal/handler-context.js +31 -0
  139. package/dist/internal/handler-context.js.map +1 -0
  140. package/dist/internal/identifier.d.ts +6 -0
  141. package/dist/internal/identifier.d.ts.map +1 -0
  142. package/dist/internal/identifier.js +28 -0
  143. package/dist/internal/identifier.js.map +1 -0
  144. package/dist/internal/plugin-handlers.d.ts +38 -0
  145. package/dist/internal/plugin-handlers.d.ts.map +1 -0
  146. package/dist/internal/plugin-handlers.js +52 -0
  147. package/dist/internal/plugin-handlers.js.map +1 -0
  148. package/dist/internal/proto.d.ts +7 -0
  149. package/dist/internal/proto.d.ts.map +1 -0
  150. package/dist/internal/proto.js +10 -0
  151. package/dist/internal/proto.js.map +1 -0
  152. package/dist/internal/schema-runtime.d.ts +6 -0
  153. package/dist/internal/schema-runtime.d.ts.map +1 -0
  154. package/dist/internal/schema-runtime.js +10 -0
  155. package/dist/internal/schema-runtime.js.map +1 -0
  156. package/dist/internal/trigger-runtime-shared.d.ts +41 -0
  157. package/dist/internal/trigger-runtime-shared.d.ts.map +1 -0
  158. package/dist/internal/trigger-runtime-shared.js +132 -0
  159. package/dist/internal/trigger-runtime-shared.js.map +1 -0
  160. package/dist/internal/trigger-runtime.d.ts +12 -0
  161. package/dist/internal/trigger-runtime.d.ts.map +1 -0
  162. package/dist/internal/trigger-runtime.js +95 -0
  163. package/dist/internal/trigger-runtime.js.map +1 -0
  164. package/dist/internal/types.d.ts +7 -0
  165. package/dist/internal/types.d.ts.map +1 -0
  166. package/dist/internal/types.js +1 -0
  167. package/dist/remote-runtime.d.ts +585 -0
  168. package/dist/remote-runtime.d.ts.map +1 -0
  169. package/dist/remote-runtime.js +367 -0
  170. package/dist/remote-runtime.js.map +1 -0
  171. package/package.json +55 -4
  172. package/src/Action.ts +370 -0
  173. package/src/AgentChannel.ts +860 -0
  174. package/src/AgentChannelConformance.ts +124 -0
  175. package/src/AgentChannelRuntime.ts +616 -0
  176. package/src/AiProvider.ts +255 -0
  177. package/src/AuthMethod.ts +954 -0
  178. package/src/AuthMethodBinding.ts +112 -0
  179. package/src/AuthMethodExecution.ts +542 -0
  180. package/src/ConnectionResolver.ts +265 -0
  181. package/src/DefinitionError.ts +115 -0
  182. package/src/DualRegistry.ts +152 -0
  183. package/src/DualRuntime.ts +1081 -0
  184. package/src/Files.ts +89 -0
  185. package/src/Group.ts +292 -0
  186. package/src/Http.ts +1205 -0
  187. package/src/Mcp.ts +299 -0
  188. package/src/OAuth2TokenRefresher.ts +22 -0
  189. package/src/OAuthFlow.ts +874 -0
  190. package/src/Plugin.ts +912 -0
  191. package/src/PluginRuntime.ts +414 -0
  192. package/src/Runner.ts +248 -0
  193. package/src/ToolFile.ts +28 -0
  194. package/src/Trigger.ts +722 -0
  195. package/src/index.ts +158 -0
  196. package/src/internal/auth-context.ts +27 -0
  197. package/src/internal/auth-execution.ts +241 -0
  198. package/src/internal/auth-runtime.ts +20 -0
  199. package/src/internal/capabilities.ts +55 -0
  200. package/src/internal/children.ts +126 -0
  201. package/src/internal/collection-utils.ts +8 -0
  202. package/src/internal/dual/actions.ts +116 -0
  203. package/src/internal/dual/invoke.ts +307 -0
  204. package/src/internal/dual/registry.ts +340 -0
  205. package/src/internal/dual/triggers.ts +128 -0
  206. package/src/internal/handler-context.ts +57 -0
  207. package/src/internal/identifier.ts +27 -0
  208. package/src/internal/plugin-handlers.ts +146 -0
  209. package/src/internal/proto.ts +8 -0
  210. package/src/internal/schema-runtime.ts +15 -0
  211. package/src/internal/trigger-runtime-shared.ts +449 -0
  212. package/src/internal/trigger-runtime.ts +223 -0
  213. package/src/internal/types.ts +12 -0
  214. package/src/remote-runtime.ts +469 -0
@@ -0,0 +1,1543 @@
1
+ import { ChannelError } from "./AgentChannel.js";
2
+ import { Service } from "./DualRuntime.js";
3
+ import "./AgentChannelConformance.js";
4
+ import { Effect, Schema } from "effect";
5
+ declare namespace AgentChannelConformance_d_exports {
6
+ export { AgentChannelConformance_d_exports as AgentChannelConformance, ConformanceError, Fixture, run };
7
+ }
8
+ export declare const Fixture: Schema.Struct<{
9
+ readonly activate: Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
10
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
11
+ readonly operationKey: Schema.NonEmptyString;
12
+ readonly kind: Schema.Literal<"activate">;
13
+ readonly ingressUrl: Schema.String;
14
+ readonly state: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
15
+ }>, Schema.Struct<{
16
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
17
+ readonly operationKey: Schema.NonEmptyString;
18
+ readonly installationKey: Schema.NonEmptyString;
19
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
20
+ readonly kind: Schema.Literal<"deactivate">;
21
+ }>, Schema.Struct<{
22
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
23
+ readonly operationKey: Schema.NonEmptyString;
24
+ readonly installationKey: Schema.NonEmptyString;
25
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
26
+ readonly kind: Schema.Literal<"receive">;
27
+ readonly request: Schema.Struct<{
28
+ readonly body: Schema.String;
29
+ readonly headers: Schema.$Record<Schema.NonEmptyString, Schema.String>;
30
+ readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE"]>;
31
+ readonly url: Schema.String;
32
+ }>;
33
+ }>, Schema.Struct<{
34
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
35
+ readonly operationKey: Schema.NonEmptyString;
36
+ readonly installationKey: Schema.NonEmptyString;
37
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
38
+ readonly kind: Schema.Literal<"deliver">;
39
+ readonly deliveryKey: Schema.NonEmptyString;
40
+ readonly destination: Schema.Struct<{
41
+ readonly conversationKey: Schema.NonEmptyString;
42
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
43
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
44
+ }>;
45
+ readonly content: Schema.Struct<{
46
+ readonly assets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
47
+ readonly assetKey: Schema.NonEmptyString;
48
+ readonly mediaType: Schema.NonEmptyString;
49
+ readonly url: Schema.String;
50
+ }>>>;
51
+ readonly mentions: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
52
+ readonly replyToMessageKey: Schema.optionalKey<Schema.NonEmptyString>;
53
+ readonly text: Schema.String;
54
+ }>;
55
+ readonly responseToTimestamp: Schema.optionalKey<Schema.String>;
56
+ }>]>, Schema.Struct<{
57
+ readonly asset: Schema.Struct<{
58
+ readonly assetKey: Schema.NonEmptyString;
59
+ readonly mediaType: Schema.NonEmptyString;
60
+ readonly url: Schema.String;
61
+ }>;
62
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
63
+ readonly identity: Schema.Struct<{
64
+ readonly conversation: Schema.Struct<{
65
+ readonly conversationKey: Schema.NonEmptyString;
66
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
67
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
68
+ }>;
69
+ readonly senderKey: Schema.NonEmptyString;
70
+ }>;
71
+ readonly installationKey: Schema.NonEmptyString;
72
+ readonly kind: Schema.Literal<"read_asset">;
73
+ readonly operationKey: Schema.NonEmptyString;
74
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
75
+ }>]>, Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
76
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
77
+ readonly operationKey: Schema.NonEmptyString;
78
+ readonly kind: Schema.Literal<"activate">;
79
+ readonly ingressUrl: Schema.String;
80
+ readonly state: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
81
+ }>, Schema.Struct<{
82
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
83
+ readonly operationKey: Schema.NonEmptyString;
84
+ readonly installationKey: Schema.NonEmptyString;
85
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
86
+ readonly kind: Schema.Literal<"deactivate">;
87
+ }>, Schema.Struct<{
88
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
89
+ readonly operationKey: Schema.NonEmptyString;
90
+ readonly installationKey: Schema.NonEmptyString;
91
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
92
+ readonly kind: Schema.Literal<"receive">;
93
+ readonly request: Schema.Struct<{
94
+ readonly body: Schema.String;
95
+ readonly headers: Schema.$Record<Schema.NonEmptyString, Schema.String>;
96
+ readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE"]>;
97
+ readonly url: Schema.String;
98
+ }>;
99
+ }>, Schema.Struct<{
100
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
101
+ readonly operationKey: Schema.NonEmptyString;
102
+ readonly installationKey: Schema.NonEmptyString;
103
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
104
+ readonly kind: Schema.Literal<"deliver">;
105
+ readonly activationMessageKey: Schema.optionalKey<Schema.NonEmptyString>;
106
+ readonly deliveryKey: Schema.NonEmptyString;
107
+ readonly destination: Schema.Struct<{
108
+ readonly conversationKey: Schema.NonEmptyString;
109
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
110
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
111
+ }>;
112
+ readonly operation: Schema.Union<readonly [Schema.Struct<{
113
+ readonly kind: Schema.Literal<"present_outcome">;
114
+ readonly options: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
115
+ readonly outcome: Schema.Literals<readonly ["completed", "failed", "awaiting_input"]>;
116
+ readonly text: Schema.String;
117
+ }>, Schema.Struct<{
118
+ readonly kind: Schema.Literal<"create_message">;
119
+ readonly messageKey: Schema.NonEmptyString;
120
+ readonly text: Schema.String;
121
+ }>, Schema.Struct<{
122
+ readonly kind: Schema.Literal<"update_message">;
123
+ readonly messageKey: Schema.NonEmptyString;
124
+ readonly reference: Schema.NonEmptyString;
125
+ readonly text: Schema.String;
126
+ }>, Schema.Struct<{
127
+ readonly kind: Schema.Literal<"delete_message">;
128
+ readonly messageKey: Schema.NonEmptyString;
129
+ readonly reference: Schema.NonEmptyString;
130
+ }>, Schema.Struct<{
131
+ readonly active: Schema.Boolean;
132
+ readonly kind: Schema.Literal<"set_reaction">;
133
+ readonly reaction: Schema.Literals<readonly ["thumbs_up", "thumbs_down", "laugh", "confused", "heart", "hooray", "rocket", "eyes"]>;
134
+ readonly target: Schema.Union<readonly [Schema.Struct<{
135
+ readonly kind: Schema.Literal<"activation">;
136
+ }>, Schema.Struct<{
137
+ readonly kind: Schema.Literal<"message">;
138
+ readonly reference: Schema.NonEmptyString;
139
+ }>]>;
140
+ }>, Schema.Struct<{
141
+ readonly activity: Schema.Union<readonly [Schema.Struct<{
142
+ readonly kind: Schema.Literal<"working">;
143
+ readonly text: Schema.optionalKey<Schema.NonEmptyString>;
144
+ }>, Schema.Struct<{
145
+ readonly kind: Schema.Literal<"idle">;
146
+ }>]>;
147
+ readonly kind: Schema.Literal<"set_activity">;
148
+ }>, Schema.Struct<{
149
+ readonly kind: Schema.Literal<"render_plan">;
150
+ readonly plan: Schema.Struct<{
151
+ readonly items: Schema.$Array<Schema.Struct<{
152
+ readonly itemKey: Schema.NonEmptyString;
153
+ readonly note: Schema.optionalKey<Schema.NonEmptyString>;
154
+ readonly state: Schema.Literals<readonly ["pending", "in_progress", "completed", "failed"]>;
155
+ readonly title: Schema.NonEmptyString;
156
+ }>>;
157
+ readonly title: Schema.optionalKey<Schema.NonEmptyString>;
158
+ }>;
159
+ readonly reference: Schema.optionalKey<Schema.NonEmptyString>;
160
+ readonly revision: Schema.Int;
161
+ }>]>;
162
+ readonly responseToTimestamp: Schema.optionalKey<Schema.String>;
163
+ }>, Schema.Struct<{
164
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
165
+ readonly operationKey: Schema.NonEmptyString;
166
+ readonly installationKey: Schema.NonEmptyString;
167
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
168
+ readonly kind: Schema.Literal<"read_context">;
169
+ readonly destination: Schema.Struct<{
170
+ readonly conversationKey: Schema.NonEmptyString;
171
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
172
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
173
+ }>;
174
+ readonly limit: Schema.Int;
175
+ }>]>, Schema.Struct<{
176
+ readonly asset: Schema.Struct<{
177
+ readonly assetKey: Schema.NonEmptyString;
178
+ readonly mediaType: Schema.NonEmptyString;
179
+ readonly url: Schema.String;
180
+ }>;
181
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
182
+ readonly identity: Schema.Struct<{
183
+ readonly conversation: Schema.Struct<{
184
+ readonly conversationKey: Schema.NonEmptyString;
185
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
186
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
187
+ }>;
188
+ readonly senderKey: Schema.NonEmptyString;
189
+ }>;
190
+ readonly installationKey: Schema.NonEmptyString;
191
+ readonly kind: Schema.Literal<"read_asset">;
192
+ readonly operationKey: Schema.NonEmptyString;
193
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
194
+ }>]>]>;
195
+ readonly channelId: Schema.NonEmptyString;
196
+ readonly connectionId: Schema.optionalKey<Schema.NonEmptyString>;
197
+ readonly deactivate: Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
198
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
199
+ readonly operationKey: Schema.NonEmptyString;
200
+ readonly kind: Schema.Literal<"activate">;
201
+ readonly ingressUrl: Schema.String;
202
+ readonly state: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
203
+ }>, Schema.Struct<{
204
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
205
+ readonly operationKey: Schema.NonEmptyString;
206
+ readonly installationKey: Schema.NonEmptyString;
207
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
208
+ readonly kind: Schema.Literal<"deactivate">;
209
+ }>, Schema.Struct<{
210
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
211
+ readonly operationKey: Schema.NonEmptyString;
212
+ readonly installationKey: Schema.NonEmptyString;
213
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
214
+ readonly kind: Schema.Literal<"receive">;
215
+ readonly request: Schema.Struct<{
216
+ readonly body: Schema.String;
217
+ readonly headers: Schema.$Record<Schema.NonEmptyString, Schema.String>;
218
+ readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE"]>;
219
+ readonly url: Schema.String;
220
+ }>;
221
+ }>, Schema.Struct<{
222
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
223
+ readonly operationKey: Schema.NonEmptyString;
224
+ readonly installationKey: Schema.NonEmptyString;
225
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
226
+ readonly kind: Schema.Literal<"deliver">;
227
+ readonly deliveryKey: Schema.NonEmptyString;
228
+ readonly destination: Schema.Struct<{
229
+ readonly conversationKey: Schema.NonEmptyString;
230
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
231
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
232
+ }>;
233
+ readonly content: Schema.Struct<{
234
+ readonly assets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
235
+ readonly assetKey: Schema.NonEmptyString;
236
+ readonly mediaType: Schema.NonEmptyString;
237
+ readonly url: Schema.String;
238
+ }>>>;
239
+ readonly mentions: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
240
+ readonly replyToMessageKey: Schema.optionalKey<Schema.NonEmptyString>;
241
+ readonly text: Schema.String;
242
+ }>;
243
+ readonly responseToTimestamp: Schema.optionalKey<Schema.String>;
244
+ }>]>, Schema.Struct<{
245
+ readonly asset: Schema.Struct<{
246
+ readonly assetKey: Schema.NonEmptyString;
247
+ readonly mediaType: Schema.NonEmptyString;
248
+ readonly url: Schema.String;
249
+ }>;
250
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
251
+ readonly identity: Schema.Struct<{
252
+ readonly conversation: Schema.Struct<{
253
+ readonly conversationKey: Schema.NonEmptyString;
254
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
255
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
256
+ }>;
257
+ readonly senderKey: Schema.NonEmptyString;
258
+ }>;
259
+ readonly installationKey: Schema.NonEmptyString;
260
+ readonly kind: Schema.Literal<"read_asset">;
261
+ readonly operationKey: Schema.NonEmptyString;
262
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
263
+ }>]>, Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
264
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
265
+ readonly operationKey: Schema.NonEmptyString;
266
+ readonly kind: Schema.Literal<"activate">;
267
+ readonly ingressUrl: Schema.String;
268
+ readonly state: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
269
+ }>, Schema.Struct<{
270
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
271
+ readonly operationKey: Schema.NonEmptyString;
272
+ readonly installationKey: Schema.NonEmptyString;
273
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
274
+ readonly kind: Schema.Literal<"deactivate">;
275
+ }>, Schema.Struct<{
276
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
277
+ readonly operationKey: Schema.NonEmptyString;
278
+ readonly installationKey: Schema.NonEmptyString;
279
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
280
+ readonly kind: Schema.Literal<"receive">;
281
+ readonly request: Schema.Struct<{
282
+ readonly body: Schema.String;
283
+ readonly headers: Schema.$Record<Schema.NonEmptyString, Schema.String>;
284
+ readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE"]>;
285
+ readonly url: Schema.String;
286
+ }>;
287
+ }>, Schema.Struct<{
288
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
289
+ readonly operationKey: Schema.NonEmptyString;
290
+ readonly installationKey: Schema.NonEmptyString;
291
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
292
+ readonly kind: Schema.Literal<"deliver">;
293
+ readonly activationMessageKey: Schema.optionalKey<Schema.NonEmptyString>;
294
+ readonly deliveryKey: Schema.NonEmptyString;
295
+ readonly destination: Schema.Struct<{
296
+ readonly conversationKey: Schema.NonEmptyString;
297
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
298
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
299
+ }>;
300
+ readonly operation: Schema.Union<readonly [Schema.Struct<{
301
+ readonly kind: Schema.Literal<"present_outcome">;
302
+ readonly options: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
303
+ readonly outcome: Schema.Literals<readonly ["completed", "failed", "awaiting_input"]>;
304
+ readonly text: Schema.String;
305
+ }>, Schema.Struct<{
306
+ readonly kind: Schema.Literal<"create_message">;
307
+ readonly messageKey: Schema.NonEmptyString;
308
+ readonly text: Schema.String;
309
+ }>, Schema.Struct<{
310
+ readonly kind: Schema.Literal<"update_message">;
311
+ readonly messageKey: Schema.NonEmptyString;
312
+ readonly reference: Schema.NonEmptyString;
313
+ readonly text: Schema.String;
314
+ }>, Schema.Struct<{
315
+ readonly kind: Schema.Literal<"delete_message">;
316
+ readonly messageKey: Schema.NonEmptyString;
317
+ readonly reference: Schema.NonEmptyString;
318
+ }>, Schema.Struct<{
319
+ readonly active: Schema.Boolean;
320
+ readonly kind: Schema.Literal<"set_reaction">;
321
+ readonly reaction: Schema.Literals<readonly ["thumbs_up", "thumbs_down", "laugh", "confused", "heart", "hooray", "rocket", "eyes"]>;
322
+ readonly target: Schema.Union<readonly [Schema.Struct<{
323
+ readonly kind: Schema.Literal<"activation">;
324
+ }>, Schema.Struct<{
325
+ readonly kind: Schema.Literal<"message">;
326
+ readonly reference: Schema.NonEmptyString;
327
+ }>]>;
328
+ }>, Schema.Struct<{
329
+ readonly activity: Schema.Union<readonly [Schema.Struct<{
330
+ readonly kind: Schema.Literal<"working">;
331
+ readonly text: Schema.optionalKey<Schema.NonEmptyString>;
332
+ }>, Schema.Struct<{
333
+ readonly kind: Schema.Literal<"idle">;
334
+ }>]>;
335
+ readonly kind: Schema.Literal<"set_activity">;
336
+ }>, Schema.Struct<{
337
+ readonly kind: Schema.Literal<"render_plan">;
338
+ readonly plan: Schema.Struct<{
339
+ readonly items: Schema.$Array<Schema.Struct<{
340
+ readonly itemKey: Schema.NonEmptyString;
341
+ readonly note: Schema.optionalKey<Schema.NonEmptyString>;
342
+ readonly state: Schema.Literals<readonly ["pending", "in_progress", "completed", "failed"]>;
343
+ readonly title: Schema.NonEmptyString;
344
+ }>>;
345
+ readonly title: Schema.optionalKey<Schema.NonEmptyString>;
346
+ }>;
347
+ readonly reference: Schema.optionalKey<Schema.NonEmptyString>;
348
+ readonly revision: Schema.Int;
349
+ }>]>;
350
+ readonly responseToTimestamp: Schema.optionalKey<Schema.String>;
351
+ }>, Schema.Struct<{
352
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
353
+ readonly operationKey: Schema.NonEmptyString;
354
+ readonly installationKey: Schema.NonEmptyString;
355
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
356
+ readonly kind: Schema.Literal<"read_context">;
357
+ readonly destination: Schema.Struct<{
358
+ readonly conversationKey: Schema.NonEmptyString;
359
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
360
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
361
+ }>;
362
+ readonly limit: Schema.Int;
363
+ }>]>, Schema.Struct<{
364
+ readonly asset: Schema.Struct<{
365
+ readonly assetKey: Schema.NonEmptyString;
366
+ readonly mediaType: Schema.NonEmptyString;
367
+ readonly url: Schema.String;
368
+ }>;
369
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
370
+ readonly identity: Schema.Struct<{
371
+ readonly conversation: Schema.Struct<{
372
+ readonly conversationKey: Schema.NonEmptyString;
373
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
374
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
375
+ }>;
376
+ readonly senderKey: Schema.NonEmptyString;
377
+ }>;
378
+ readonly installationKey: Schema.NonEmptyString;
379
+ readonly kind: Schema.Literal<"read_asset">;
380
+ readonly operationKey: Schema.NonEmptyString;
381
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
382
+ }>]>]>;
383
+ readonly definitionSettings: Schema.Codec<Schema.Json, Schema.Json, never, never>;
384
+ readonly deliver: Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
385
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
386
+ readonly operationKey: Schema.NonEmptyString;
387
+ readonly kind: Schema.Literal<"activate">;
388
+ readonly ingressUrl: Schema.String;
389
+ readonly state: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
390
+ }>, Schema.Struct<{
391
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
392
+ readonly operationKey: Schema.NonEmptyString;
393
+ readonly installationKey: Schema.NonEmptyString;
394
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
395
+ readonly kind: Schema.Literal<"deactivate">;
396
+ }>, Schema.Struct<{
397
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
398
+ readonly operationKey: Schema.NonEmptyString;
399
+ readonly installationKey: Schema.NonEmptyString;
400
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
401
+ readonly kind: Schema.Literal<"receive">;
402
+ readonly request: Schema.Struct<{
403
+ readonly body: Schema.String;
404
+ readonly headers: Schema.$Record<Schema.NonEmptyString, Schema.String>;
405
+ readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE"]>;
406
+ readonly url: Schema.String;
407
+ }>;
408
+ }>, Schema.Struct<{
409
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
410
+ readonly operationKey: Schema.NonEmptyString;
411
+ readonly installationKey: Schema.NonEmptyString;
412
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
413
+ readonly kind: Schema.Literal<"deliver">;
414
+ readonly deliveryKey: Schema.NonEmptyString;
415
+ readonly destination: Schema.Struct<{
416
+ readonly conversationKey: Schema.NonEmptyString;
417
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
418
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
419
+ }>;
420
+ readonly content: Schema.Struct<{
421
+ readonly assets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
422
+ readonly assetKey: Schema.NonEmptyString;
423
+ readonly mediaType: Schema.NonEmptyString;
424
+ readonly url: Schema.String;
425
+ }>>>;
426
+ readonly mentions: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
427
+ readonly replyToMessageKey: Schema.optionalKey<Schema.NonEmptyString>;
428
+ readonly text: Schema.String;
429
+ }>;
430
+ readonly responseToTimestamp: Schema.optionalKey<Schema.String>;
431
+ }>]>, Schema.Struct<{
432
+ readonly asset: Schema.Struct<{
433
+ readonly assetKey: Schema.NonEmptyString;
434
+ readonly mediaType: Schema.NonEmptyString;
435
+ readonly url: Schema.String;
436
+ }>;
437
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
438
+ readonly identity: Schema.Struct<{
439
+ readonly conversation: Schema.Struct<{
440
+ readonly conversationKey: Schema.NonEmptyString;
441
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
442
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
443
+ }>;
444
+ readonly senderKey: Schema.NonEmptyString;
445
+ }>;
446
+ readonly installationKey: Schema.NonEmptyString;
447
+ readonly kind: Schema.Literal<"read_asset">;
448
+ readonly operationKey: Schema.NonEmptyString;
449
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
450
+ }>]>, Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
451
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
452
+ readonly operationKey: Schema.NonEmptyString;
453
+ readonly kind: Schema.Literal<"activate">;
454
+ readonly ingressUrl: Schema.String;
455
+ readonly state: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
456
+ }>, Schema.Struct<{
457
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
458
+ readonly operationKey: Schema.NonEmptyString;
459
+ readonly installationKey: Schema.NonEmptyString;
460
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
461
+ readonly kind: Schema.Literal<"deactivate">;
462
+ }>, Schema.Struct<{
463
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
464
+ readonly operationKey: Schema.NonEmptyString;
465
+ readonly installationKey: Schema.NonEmptyString;
466
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
467
+ readonly kind: Schema.Literal<"receive">;
468
+ readonly request: Schema.Struct<{
469
+ readonly body: Schema.String;
470
+ readonly headers: Schema.$Record<Schema.NonEmptyString, Schema.String>;
471
+ readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE"]>;
472
+ readonly url: Schema.String;
473
+ }>;
474
+ }>, Schema.Struct<{
475
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
476
+ readonly operationKey: Schema.NonEmptyString;
477
+ readonly installationKey: Schema.NonEmptyString;
478
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
479
+ readonly kind: Schema.Literal<"deliver">;
480
+ readonly activationMessageKey: Schema.optionalKey<Schema.NonEmptyString>;
481
+ readonly deliveryKey: Schema.NonEmptyString;
482
+ readonly destination: Schema.Struct<{
483
+ readonly conversationKey: Schema.NonEmptyString;
484
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
485
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
486
+ }>;
487
+ readonly operation: Schema.Union<readonly [Schema.Struct<{
488
+ readonly kind: Schema.Literal<"present_outcome">;
489
+ readonly options: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
490
+ readonly outcome: Schema.Literals<readonly ["completed", "failed", "awaiting_input"]>;
491
+ readonly text: Schema.String;
492
+ }>, Schema.Struct<{
493
+ readonly kind: Schema.Literal<"create_message">;
494
+ readonly messageKey: Schema.NonEmptyString;
495
+ readonly text: Schema.String;
496
+ }>, Schema.Struct<{
497
+ readonly kind: Schema.Literal<"update_message">;
498
+ readonly messageKey: Schema.NonEmptyString;
499
+ readonly reference: Schema.NonEmptyString;
500
+ readonly text: Schema.String;
501
+ }>, Schema.Struct<{
502
+ readonly kind: Schema.Literal<"delete_message">;
503
+ readonly messageKey: Schema.NonEmptyString;
504
+ readonly reference: Schema.NonEmptyString;
505
+ }>, Schema.Struct<{
506
+ readonly active: Schema.Boolean;
507
+ readonly kind: Schema.Literal<"set_reaction">;
508
+ readonly reaction: Schema.Literals<readonly ["thumbs_up", "thumbs_down", "laugh", "confused", "heart", "hooray", "rocket", "eyes"]>;
509
+ readonly target: Schema.Union<readonly [Schema.Struct<{
510
+ readonly kind: Schema.Literal<"activation">;
511
+ }>, Schema.Struct<{
512
+ readonly kind: Schema.Literal<"message">;
513
+ readonly reference: Schema.NonEmptyString;
514
+ }>]>;
515
+ }>, Schema.Struct<{
516
+ readonly activity: Schema.Union<readonly [Schema.Struct<{
517
+ readonly kind: Schema.Literal<"working">;
518
+ readonly text: Schema.optionalKey<Schema.NonEmptyString>;
519
+ }>, Schema.Struct<{
520
+ readonly kind: Schema.Literal<"idle">;
521
+ }>]>;
522
+ readonly kind: Schema.Literal<"set_activity">;
523
+ }>, Schema.Struct<{
524
+ readonly kind: Schema.Literal<"render_plan">;
525
+ readonly plan: Schema.Struct<{
526
+ readonly items: Schema.$Array<Schema.Struct<{
527
+ readonly itemKey: Schema.NonEmptyString;
528
+ readonly note: Schema.optionalKey<Schema.NonEmptyString>;
529
+ readonly state: Schema.Literals<readonly ["pending", "in_progress", "completed", "failed"]>;
530
+ readonly title: Schema.NonEmptyString;
531
+ }>>;
532
+ readonly title: Schema.optionalKey<Schema.NonEmptyString>;
533
+ }>;
534
+ readonly reference: Schema.optionalKey<Schema.NonEmptyString>;
535
+ readonly revision: Schema.Int;
536
+ }>]>;
537
+ readonly responseToTimestamp: Schema.optionalKey<Schema.String>;
538
+ }>, Schema.Struct<{
539
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
540
+ readonly operationKey: Schema.NonEmptyString;
541
+ readonly installationKey: Schema.NonEmptyString;
542
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
543
+ readonly kind: Schema.Literal<"read_context">;
544
+ readonly destination: Schema.Struct<{
545
+ readonly conversationKey: Schema.NonEmptyString;
546
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
547
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
548
+ }>;
549
+ readonly limit: Schema.Int;
550
+ }>]>, Schema.Struct<{
551
+ readonly asset: Schema.Struct<{
552
+ readonly assetKey: Schema.NonEmptyString;
553
+ readonly mediaType: Schema.NonEmptyString;
554
+ readonly url: Schema.String;
555
+ }>;
556
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
557
+ readonly identity: Schema.Struct<{
558
+ readonly conversation: Schema.Struct<{
559
+ readonly conversationKey: Schema.NonEmptyString;
560
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
561
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
562
+ }>;
563
+ readonly senderKey: Schema.NonEmptyString;
564
+ }>;
565
+ readonly installationKey: Schema.NonEmptyString;
566
+ readonly kind: Schema.Literal<"read_asset">;
567
+ readonly operationKey: Schema.NonEmptyString;
568
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
569
+ }>]>]>;
570
+ readonly deploymentSettings: Schema.Codec<Schema.Json, Schema.Json, never, never>;
571
+ readonly receive: Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
572
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
573
+ readonly operationKey: Schema.NonEmptyString;
574
+ readonly kind: Schema.Literal<"activate">;
575
+ readonly ingressUrl: Schema.String;
576
+ readonly state: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
577
+ }>, Schema.Struct<{
578
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
579
+ readonly operationKey: Schema.NonEmptyString;
580
+ readonly installationKey: Schema.NonEmptyString;
581
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
582
+ readonly kind: Schema.Literal<"deactivate">;
583
+ }>, Schema.Struct<{
584
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
585
+ readonly operationKey: Schema.NonEmptyString;
586
+ readonly installationKey: Schema.NonEmptyString;
587
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
588
+ readonly kind: Schema.Literal<"receive">;
589
+ readonly request: Schema.Struct<{
590
+ readonly body: Schema.String;
591
+ readonly headers: Schema.$Record<Schema.NonEmptyString, Schema.String>;
592
+ readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE"]>;
593
+ readonly url: Schema.String;
594
+ }>;
595
+ }>, Schema.Struct<{
596
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
597
+ readonly operationKey: Schema.NonEmptyString;
598
+ readonly installationKey: Schema.NonEmptyString;
599
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
600
+ readonly kind: Schema.Literal<"deliver">;
601
+ readonly deliveryKey: Schema.NonEmptyString;
602
+ readonly destination: Schema.Struct<{
603
+ readonly conversationKey: Schema.NonEmptyString;
604
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
605
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
606
+ }>;
607
+ readonly content: Schema.Struct<{
608
+ readonly assets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
609
+ readonly assetKey: Schema.NonEmptyString;
610
+ readonly mediaType: Schema.NonEmptyString;
611
+ readonly url: Schema.String;
612
+ }>>>;
613
+ readonly mentions: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
614
+ readonly replyToMessageKey: Schema.optionalKey<Schema.NonEmptyString>;
615
+ readonly text: Schema.String;
616
+ }>;
617
+ readonly responseToTimestamp: Schema.optionalKey<Schema.String>;
618
+ }>]>, Schema.Struct<{
619
+ readonly asset: Schema.Struct<{
620
+ readonly assetKey: Schema.NonEmptyString;
621
+ readonly mediaType: Schema.NonEmptyString;
622
+ readonly url: Schema.String;
623
+ }>;
624
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
625
+ readonly identity: Schema.Struct<{
626
+ readonly conversation: Schema.Struct<{
627
+ readonly conversationKey: Schema.NonEmptyString;
628
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
629
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
630
+ }>;
631
+ readonly senderKey: Schema.NonEmptyString;
632
+ }>;
633
+ readonly installationKey: Schema.NonEmptyString;
634
+ readonly kind: Schema.Literal<"read_asset">;
635
+ readonly operationKey: Schema.NonEmptyString;
636
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
637
+ }>]>, Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
638
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
639
+ readonly operationKey: Schema.NonEmptyString;
640
+ readonly kind: Schema.Literal<"activate">;
641
+ readonly ingressUrl: Schema.String;
642
+ readonly state: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
643
+ }>, Schema.Struct<{
644
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
645
+ readonly operationKey: Schema.NonEmptyString;
646
+ readonly installationKey: Schema.NonEmptyString;
647
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
648
+ readonly kind: Schema.Literal<"deactivate">;
649
+ }>, Schema.Struct<{
650
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
651
+ readonly operationKey: Schema.NonEmptyString;
652
+ readonly installationKey: Schema.NonEmptyString;
653
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
654
+ readonly kind: Schema.Literal<"receive">;
655
+ readonly request: Schema.Struct<{
656
+ readonly body: Schema.String;
657
+ readonly headers: Schema.$Record<Schema.NonEmptyString, Schema.String>;
658
+ readonly method: Schema.Literals<readonly ["GET", "POST", "PUT", "PATCH", "DELETE"]>;
659
+ readonly url: Schema.String;
660
+ }>;
661
+ }>, Schema.Struct<{
662
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
663
+ readonly operationKey: Schema.NonEmptyString;
664
+ readonly installationKey: Schema.NonEmptyString;
665
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
666
+ readonly kind: Schema.Literal<"deliver">;
667
+ readonly activationMessageKey: Schema.optionalKey<Schema.NonEmptyString>;
668
+ readonly deliveryKey: Schema.NonEmptyString;
669
+ readonly destination: Schema.Struct<{
670
+ readonly conversationKey: Schema.NonEmptyString;
671
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
672
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
673
+ }>;
674
+ readonly operation: Schema.Union<readonly [Schema.Struct<{
675
+ readonly kind: Schema.Literal<"present_outcome">;
676
+ readonly options: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
677
+ readonly outcome: Schema.Literals<readonly ["completed", "failed", "awaiting_input"]>;
678
+ readonly text: Schema.String;
679
+ }>, Schema.Struct<{
680
+ readonly kind: Schema.Literal<"create_message">;
681
+ readonly messageKey: Schema.NonEmptyString;
682
+ readonly text: Schema.String;
683
+ }>, Schema.Struct<{
684
+ readonly kind: Schema.Literal<"update_message">;
685
+ readonly messageKey: Schema.NonEmptyString;
686
+ readonly reference: Schema.NonEmptyString;
687
+ readonly text: Schema.String;
688
+ }>, Schema.Struct<{
689
+ readonly kind: Schema.Literal<"delete_message">;
690
+ readonly messageKey: Schema.NonEmptyString;
691
+ readonly reference: Schema.NonEmptyString;
692
+ }>, Schema.Struct<{
693
+ readonly active: Schema.Boolean;
694
+ readonly kind: Schema.Literal<"set_reaction">;
695
+ readonly reaction: Schema.Literals<readonly ["thumbs_up", "thumbs_down", "laugh", "confused", "heart", "hooray", "rocket", "eyes"]>;
696
+ readonly target: Schema.Union<readonly [Schema.Struct<{
697
+ readonly kind: Schema.Literal<"activation">;
698
+ }>, Schema.Struct<{
699
+ readonly kind: Schema.Literal<"message">;
700
+ readonly reference: Schema.NonEmptyString;
701
+ }>]>;
702
+ }>, Schema.Struct<{
703
+ readonly activity: Schema.Union<readonly [Schema.Struct<{
704
+ readonly kind: Schema.Literal<"working">;
705
+ readonly text: Schema.optionalKey<Schema.NonEmptyString>;
706
+ }>, Schema.Struct<{
707
+ readonly kind: Schema.Literal<"idle">;
708
+ }>]>;
709
+ readonly kind: Schema.Literal<"set_activity">;
710
+ }>, Schema.Struct<{
711
+ readonly kind: Schema.Literal<"render_plan">;
712
+ readonly plan: Schema.Struct<{
713
+ readonly items: Schema.$Array<Schema.Struct<{
714
+ readonly itemKey: Schema.NonEmptyString;
715
+ readonly note: Schema.optionalKey<Schema.NonEmptyString>;
716
+ readonly state: Schema.Literals<readonly ["pending", "in_progress", "completed", "failed"]>;
717
+ readonly title: Schema.NonEmptyString;
718
+ }>>;
719
+ readonly title: Schema.optionalKey<Schema.NonEmptyString>;
720
+ }>;
721
+ readonly reference: Schema.optionalKey<Schema.NonEmptyString>;
722
+ readonly revision: Schema.Int;
723
+ }>]>;
724
+ readonly responseToTimestamp: Schema.optionalKey<Schema.String>;
725
+ }>, Schema.Struct<{
726
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
727
+ readonly operationKey: Schema.NonEmptyString;
728
+ readonly installationKey: Schema.NonEmptyString;
729
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
730
+ readonly kind: Schema.Literal<"read_context">;
731
+ readonly destination: Schema.Struct<{
732
+ readonly conversationKey: Schema.NonEmptyString;
733
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
734
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
735
+ }>;
736
+ readonly limit: Schema.Int;
737
+ }>]>, Schema.Struct<{
738
+ readonly asset: Schema.Struct<{
739
+ readonly assetKey: Schema.NonEmptyString;
740
+ readonly mediaType: Schema.NonEmptyString;
741
+ readonly url: Schema.String;
742
+ }>;
743
+ readonly extensions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
744
+ readonly identity: Schema.Struct<{
745
+ readonly conversation: Schema.Struct<{
746
+ readonly conversationKey: Schema.NonEmptyString;
747
+ readonly kind: Schema.Literals<readonly ["direct", "group"]>;
748
+ readonly threadKey: Schema.optionalKey<Schema.NonEmptyString>;
749
+ }>;
750
+ readonly senderKey: Schema.NonEmptyString;
751
+ }>;
752
+ readonly installationKey: Schema.NonEmptyString;
753
+ readonly kind: Schema.Literal<"read_asset">;
754
+ readonly operationKey: Schema.NonEmptyString;
755
+ readonly state: Schema.Codec<Schema.Json, Schema.Json, never, never>;
756
+ }>]>]>;
757
+ }>;
758
+ export type Fixture = typeof Fixture.Type;
759
+ declare const ConformanceError_base: Schema.Class<ConformanceError, Schema.TaggedStruct<"AgentChannelConformanceError", {
760
+ readonly command: Schema.Literals<readonly ["activate", "deactivate", "receive", "deliver"]>;
761
+ readonly rule: Schema.Literals<readonly ["command_kind", "stable_result", "stable_events", "boundary_rejection"]>;
762
+ }>, import("effect/Cause").YieldableError>;
763
+ export declare class ConformanceError extends ConformanceError_base {}
764
+ /**
765
+ * Replays operations that providers declare safe to replay. At-most-once delivery executes once;
766
+ * the durable host owns its replay prohibition. Use an isolated provider test installation: this
767
+ * suite performs provider effects. The host supplies stable keys; the plugin must recover the same
768
+ * external subscription and emit the same provider event keys, even for a fresh receipt key.
769
+ * Boundary rejection and feature/auth matrices are covered by the SDK's public runtime tests.
770
+ */
771
+ export declare const run: (input: {
772
+ readonly activate: {
773
+ readonly extensions?: {
774
+ readonly [x: string]: Schema.Json;
775
+ };
776
+ readonly operationKey: string;
777
+ readonly kind: "activate";
778
+ readonly ingressUrl: string;
779
+ readonly state?: Schema.Json;
780
+ } | {
781
+ readonly extensions?: {
782
+ readonly [x: string]: Schema.Json;
783
+ };
784
+ readonly operationKey: string;
785
+ readonly installationKey: string;
786
+ readonly state: Schema.Json;
787
+ readonly kind: "deactivate";
788
+ } | {
789
+ readonly extensions?: {
790
+ readonly [x: string]: Schema.Json;
791
+ };
792
+ readonly operationKey: string;
793
+ readonly installationKey: string;
794
+ readonly state: Schema.Json;
795
+ readonly kind: "receive";
796
+ readonly request: {
797
+ readonly body: string;
798
+ readonly headers: {
799
+ readonly [x: string]: string;
800
+ };
801
+ readonly method: "DELETE" | "GET" | "PATCH" | "POST" | "PUT";
802
+ readonly url: string;
803
+ };
804
+ } | {
805
+ readonly extensions?: {
806
+ readonly [x: string]: Schema.Json;
807
+ };
808
+ readonly operationKey: string;
809
+ readonly installationKey: string;
810
+ readonly state: Schema.Json;
811
+ readonly kind: "deliver";
812
+ readonly deliveryKey: string;
813
+ readonly destination: {
814
+ readonly conversationKey: string;
815
+ readonly kind: "direct" | "group";
816
+ readonly threadKey?: string;
817
+ };
818
+ readonly content: {
819
+ readonly assets?: readonly {
820
+ readonly assetKey: string;
821
+ readonly mediaType: string;
822
+ readonly url: string;
823
+ }[];
824
+ readonly mentions?: readonly string[];
825
+ readonly replyToMessageKey?: string;
826
+ readonly text: string;
827
+ };
828
+ readonly responseToTimestamp?: string;
829
+ } | {
830
+ readonly extensions?: {
831
+ readonly [x: string]: Schema.Json;
832
+ };
833
+ readonly operationKey: string;
834
+ readonly kind: "activate";
835
+ readonly ingressUrl: string;
836
+ readonly state?: Schema.Json;
837
+ } | {
838
+ readonly extensions?: {
839
+ readonly [x: string]: Schema.Json;
840
+ };
841
+ readonly operationKey: string;
842
+ readonly installationKey: string;
843
+ readonly state: Schema.Json;
844
+ readonly kind: "deactivate";
845
+ } | {
846
+ readonly extensions?: {
847
+ readonly [x: string]: Schema.Json;
848
+ };
849
+ readonly operationKey: string;
850
+ readonly installationKey: string;
851
+ readonly state: Schema.Json;
852
+ readonly kind: "receive";
853
+ readonly request: {
854
+ readonly body: string;
855
+ readonly headers: {
856
+ readonly [x: string]: string;
857
+ };
858
+ readonly method: "DELETE" | "GET" | "PATCH" | "POST" | "PUT";
859
+ readonly url: string;
860
+ };
861
+ } | {
862
+ readonly extensions?: {
863
+ readonly [x: string]: Schema.Json;
864
+ };
865
+ readonly operationKey: string;
866
+ readonly installationKey: string;
867
+ readonly state: Schema.Json;
868
+ readonly kind: "deliver";
869
+ readonly activationMessageKey?: string;
870
+ readonly deliveryKey: string;
871
+ readonly destination: {
872
+ readonly conversationKey: string;
873
+ readonly kind: "direct" | "group";
874
+ readonly threadKey?: string;
875
+ };
876
+ readonly operation: {
877
+ readonly kind: "create_message";
878
+ readonly messageKey: string;
879
+ readonly text: string;
880
+ } | {
881
+ readonly kind: "update_message";
882
+ readonly messageKey: string;
883
+ readonly reference: string;
884
+ readonly text: string;
885
+ } | {
886
+ readonly kind: "delete_message";
887
+ readonly messageKey: string;
888
+ readonly reference: string;
889
+ } | {
890
+ readonly active: boolean;
891
+ readonly kind: "set_reaction";
892
+ readonly reaction: "confused" | "eyes" | "heart" | "hooray" | "laugh" | "rocket" | "thumbs_down" | "thumbs_up";
893
+ readonly target: {
894
+ readonly kind: "activation";
895
+ } | {
896
+ readonly kind: "message";
897
+ readonly reference: string;
898
+ };
899
+ } | {
900
+ readonly activity: {
901
+ readonly kind: "idle";
902
+ } | {
903
+ readonly kind: "working";
904
+ readonly text?: string;
905
+ };
906
+ readonly kind: "set_activity";
907
+ } | {
908
+ readonly kind: "present_outcome";
909
+ readonly options?: readonly string[];
910
+ readonly outcome: "awaiting_input" | "completed" | "failed";
911
+ readonly text: string;
912
+ } | {
913
+ readonly kind: "render_plan";
914
+ readonly plan: {
915
+ readonly items: readonly {
916
+ readonly itemKey: string;
917
+ readonly note?: string;
918
+ readonly state: "completed" | "failed" | "in_progress" | "pending";
919
+ readonly title: string;
920
+ }[];
921
+ readonly title?: string;
922
+ };
923
+ readonly reference?: string;
924
+ readonly revision: number;
925
+ };
926
+ readonly responseToTimestamp?: string;
927
+ } | {
928
+ readonly extensions?: {
929
+ readonly [x: string]: Schema.Json;
930
+ };
931
+ readonly operationKey: string;
932
+ readonly installationKey: string;
933
+ readonly state: Schema.Json;
934
+ readonly kind: "read_context";
935
+ readonly destination: {
936
+ readonly conversationKey: string;
937
+ readonly kind: "direct" | "group";
938
+ readonly threadKey?: string;
939
+ };
940
+ readonly limit: number;
941
+ } | {
942
+ readonly asset: {
943
+ readonly assetKey: string;
944
+ readonly mediaType: string;
945
+ readonly url: string;
946
+ };
947
+ readonly extensions?: {
948
+ readonly [x: string]: Schema.Json;
949
+ };
950
+ readonly identity: {
951
+ readonly conversation: {
952
+ readonly conversationKey: string;
953
+ readonly kind: "direct" | "group";
954
+ readonly threadKey?: string;
955
+ };
956
+ readonly senderKey: string;
957
+ };
958
+ readonly installationKey: string;
959
+ readonly kind: "read_asset";
960
+ readonly operationKey: string;
961
+ readonly state: Schema.Json;
962
+ };
963
+ readonly channelId: string;
964
+ readonly connectionId?: string;
965
+ readonly deactivate: {
966
+ readonly extensions?: {
967
+ readonly [x: string]: Schema.Json;
968
+ };
969
+ readonly operationKey: string;
970
+ readonly kind: "activate";
971
+ readonly ingressUrl: string;
972
+ readonly state?: Schema.Json;
973
+ } | {
974
+ readonly extensions?: {
975
+ readonly [x: string]: Schema.Json;
976
+ };
977
+ readonly operationKey: string;
978
+ readonly installationKey: string;
979
+ readonly state: Schema.Json;
980
+ readonly kind: "deactivate";
981
+ } | {
982
+ readonly extensions?: {
983
+ readonly [x: string]: Schema.Json;
984
+ };
985
+ readonly operationKey: string;
986
+ readonly installationKey: string;
987
+ readonly state: Schema.Json;
988
+ readonly kind: "receive";
989
+ readonly request: {
990
+ readonly body: string;
991
+ readonly headers: {
992
+ readonly [x: string]: string;
993
+ };
994
+ readonly method: "DELETE" | "GET" | "PATCH" | "POST" | "PUT";
995
+ readonly url: string;
996
+ };
997
+ } | {
998
+ readonly extensions?: {
999
+ readonly [x: string]: Schema.Json;
1000
+ };
1001
+ readonly operationKey: string;
1002
+ readonly installationKey: string;
1003
+ readonly state: Schema.Json;
1004
+ readonly kind: "deliver";
1005
+ readonly deliveryKey: string;
1006
+ readonly destination: {
1007
+ readonly conversationKey: string;
1008
+ readonly kind: "direct" | "group";
1009
+ readonly threadKey?: string;
1010
+ };
1011
+ readonly content: {
1012
+ readonly assets?: readonly {
1013
+ readonly assetKey: string;
1014
+ readonly mediaType: string;
1015
+ readonly url: string;
1016
+ }[];
1017
+ readonly mentions?: readonly string[];
1018
+ readonly replyToMessageKey?: string;
1019
+ readonly text: string;
1020
+ };
1021
+ readonly responseToTimestamp?: string;
1022
+ } | {
1023
+ readonly extensions?: {
1024
+ readonly [x: string]: Schema.Json;
1025
+ };
1026
+ readonly operationKey: string;
1027
+ readonly kind: "activate";
1028
+ readonly ingressUrl: string;
1029
+ readonly state?: Schema.Json;
1030
+ } | {
1031
+ readonly extensions?: {
1032
+ readonly [x: string]: Schema.Json;
1033
+ };
1034
+ readonly operationKey: string;
1035
+ readonly installationKey: string;
1036
+ readonly state: Schema.Json;
1037
+ readonly kind: "deactivate";
1038
+ } | {
1039
+ readonly extensions?: {
1040
+ readonly [x: string]: Schema.Json;
1041
+ };
1042
+ readonly operationKey: string;
1043
+ readonly installationKey: string;
1044
+ readonly state: Schema.Json;
1045
+ readonly kind: "receive";
1046
+ readonly request: {
1047
+ readonly body: string;
1048
+ readonly headers: {
1049
+ readonly [x: string]: string;
1050
+ };
1051
+ readonly method: "DELETE" | "GET" | "PATCH" | "POST" | "PUT";
1052
+ readonly url: string;
1053
+ };
1054
+ } | {
1055
+ readonly extensions?: {
1056
+ readonly [x: string]: Schema.Json;
1057
+ };
1058
+ readonly operationKey: string;
1059
+ readonly installationKey: string;
1060
+ readonly state: Schema.Json;
1061
+ readonly kind: "deliver";
1062
+ readonly activationMessageKey?: string;
1063
+ readonly deliveryKey: string;
1064
+ readonly destination: {
1065
+ readonly conversationKey: string;
1066
+ readonly kind: "direct" | "group";
1067
+ readonly threadKey?: string;
1068
+ };
1069
+ readonly operation: {
1070
+ readonly kind: "create_message";
1071
+ readonly messageKey: string;
1072
+ readonly text: string;
1073
+ } | {
1074
+ readonly kind: "update_message";
1075
+ readonly messageKey: string;
1076
+ readonly reference: string;
1077
+ readonly text: string;
1078
+ } | {
1079
+ readonly kind: "delete_message";
1080
+ readonly messageKey: string;
1081
+ readonly reference: string;
1082
+ } | {
1083
+ readonly active: boolean;
1084
+ readonly kind: "set_reaction";
1085
+ readonly reaction: "confused" | "eyes" | "heart" | "hooray" | "laugh" | "rocket" | "thumbs_down" | "thumbs_up";
1086
+ readonly target: {
1087
+ readonly kind: "activation";
1088
+ } | {
1089
+ readonly kind: "message";
1090
+ readonly reference: string;
1091
+ };
1092
+ } | {
1093
+ readonly activity: {
1094
+ readonly kind: "idle";
1095
+ } | {
1096
+ readonly kind: "working";
1097
+ readonly text?: string;
1098
+ };
1099
+ readonly kind: "set_activity";
1100
+ } | {
1101
+ readonly kind: "present_outcome";
1102
+ readonly options?: readonly string[];
1103
+ readonly outcome: "awaiting_input" | "completed" | "failed";
1104
+ readonly text: string;
1105
+ } | {
1106
+ readonly kind: "render_plan";
1107
+ readonly plan: {
1108
+ readonly items: readonly {
1109
+ readonly itemKey: string;
1110
+ readonly note?: string;
1111
+ readonly state: "completed" | "failed" | "in_progress" | "pending";
1112
+ readonly title: string;
1113
+ }[];
1114
+ readonly title?: string;
1115
+ };
1116
+ readonly reference?: string;
1117
+ readonly revision: number;
1118
+ };
1119
+ readonly responseToTimestamp?: string;
1120
+ } | {
1121
+ readonly extensions?: {
1122
+ readonly [x: string]: Schema.Json;
1123
+ };
1124
+ readonly operationKey: string;
1125
+ readonly installationKey: string;
1126
+ readonly state: Schema.Json;
1127
+ readonly kind: "read_context";
1128
+ readonly destination: {
1129
+ readonly conversationKey: string;
1130
+ readonly kind: "direct" | "group";
1131
+ readonly threadKey?: string;
1132
+ };
1133
+ readonly limit: number;
1134
+ } | {
1135
+ readonly asset: {
1136
+ readonly assetKey: string;
1137
+ readonly mediaType: string;
1138
+ readonly url: string;
1139
+ };
1140
+ readonly extensions?: {
1141
+ readonly [x: string]: Schema.Json;
1142
+ };
1143
+ readonly identity: {
1144
+ readonly conversation: {
1145
+ readonly conversationKey: string;
1146
+ readonly kind: "direct" | "group";
1147
+ readonly threadKey?: string;
1148
+ };
1149
+ readonly senderKey: string;
1150
+ };
1151
+ readonly installationKey: string;
1152
+ readonly kind: "read_asset";
1153
+ readonly operationKey: string;
1154
+ readonly state: Schema.Json;
1155
+ };
1156
+ readonly definitionSettings: Schema.Json;
1157
+ readonly deliver: {
1158
+ readonly extensions?: {
1159
+ readonly [x: string]: Schema.Json;
1160
+ };
1161
+ readonly operationKey: string;
1162
+ readonly kind: "activate";
1163
+ readonly ingressUrl: string;
1164
+ readonly state?: Schema.Json;
1165
+ } | {
1166
+ readonly extensions?: {
1167
+ readonly [x: string]: Schema.Json;
1168
+ };
1169
+ readonly operationKey: string;
1170
+ readonly installationKey: string;
1171
+ readonly state: Schema.Json;
1172
+ readonly kind: "deactivate";
1173
+ } | {
1174
+ readonly extensions?: {
1175
+ readonly [x: string]: Schema.Json;
1176
+ };
1177
+ readonly operationKey: string;
1178
+ readonly installationKey: string;
1179
+ readonly state: Schema.Json;
1180
+ readonly kind: "receive";
1181
+ readonly request: {
1182
+ readonly body: string;
1183
+ readonly headers: {
1184
+ readonly [x: string]: string;
1185
+ };
1186
+ readonly method: "DELETE" | "GET" | "PATCH" | "POST" | "PUT";
1187
+ readonly url: string;
1188
+ };
1189
+ } | {
1190
+ readonly extensions?: {
1191
+ readonly [x: string]: Schema.Json;
1192
+ };
1193
+ readonly operationKey: string;
1194
+ readonly installationKey: string;
1195
+ readonly state: Schema.Json;
1196
+ readonly kind: "deliver";
1197
+ readonly deliveryKey: string;
1198
+ readonly destination: {
1199
+ readonly conversationKey: string;
1200
+ readonly kind: "direct" | "group";
1201
+ readonly threadKey?: string;
1202
+ };
1203
+ readonly content: {
1204
+ readonly assets?: readonly {
1205
+ readonly assetKey: string;
1206
+ readonly mediaType: string;
1207
+ readonly url: string;
1208
+ }[];
1209
+ readonly mentions?: readonly string[];
1210
+ readonly replyToMessageKey?: string;
1211
+ readonly text: string;
1212
+ };
1213
+ readonly responseToTimestamp?: string;
1214
+ } | {
1215
+ readonly extensions?: {
1216
+ readonly [x: string]: Schema.Json;
1217
+ };
1218
+ readonly operationKey: string;
1219
+ readonly kind: "activate";
1220
+ readonly ingressUrl: string;
1221
+ readonly state?: Schema.Json;
1222
+ } | {
1223
+ readonly extensions?: {
1224
+ readonly [x: string]: Schema.Json;
1225
+ };
1226
+ readonly operationKey: string;
1227
+ readonly installationKey: string;
1228
+ readonly state: Schema.Json;
1229
+ readonly kind: "deactivate";
1230
+ } | {
1231
+ readonly extensions?: {
1232
+ readonly [x: string]: Schema.Json;
1233
+ };
1234
+ readonly operationKey: string;
1235
+ readonly installationKey: string;
1236
+ readonly state: Schema.Json;
1237
+ readonly kind: "receive";
1238
+ readonly request: {
1239
+ readonly body: string;
1240
+ readonly headers: {
1241
+ readonly [x: string]: string;
1242
+ };
1243
+ readonly method: "DELETE" | "GET" | "PATCH" | "POST" | "PUT";
1244
+ readonly url: string;
1245
+ };
1246
+ } | {
1247
+ readonly extensions?: {
1248
+ readonly [x: string]: Schema.Json;
1249
+ };
1250
+ readonly operationKey: string;
1251
+ readonly installationKey: string;
1252
+ readonly state: Schema.Json;
1253
+ readonly kind: "deliver";
1254
+ readonly activationMessageKey?: string;
1255
+ readonly deliveryKey: string;
1256
+ readonly destination: {
1257
+ readonly conversationKey: string;
1258
+ readonly kind: "direct" | "group";
1259
+ readonly threadKey?: string;
1260
+ };
1261
+ readonly operation: {
1262
+ readonly kind: "create_message";
1263
+ readonly messageKey: string;
1264
+ readonly text: string;
1265
+ } | {
1266
+ readonly kind: "update_message";
1267
+ readonly messageKey: string;
1268
+ readonly reference: string;
1269
+ readonly text: string;
1270
+ } | {
1271
+ readonly kind: "delete_message";
1272
+ readonly messageKey: string;
1273
+ readonly reference: string;
1274
+ } | {
1275
+ readonly active: boolean;
1276
+ readonly kind: "set_reaction";
1277
+ readonly reaction: "confused" | "eyes" | "heart" | "hooray" | "laugh" | "rocket" | "thumbs_down" | "thumbs_up";
1278
+ readonly target: {
1279
+ readonly kind: "activation";
1280
+ } | {
1281
+ readonly kind: "message";
1282
+ readonly reference: string;
1283
+ };
1284
+ } | {
1285
+ readonly activity: {
1286
+ readonly kind: "idle";
1287
+ } | {
1288
+ readonly kind: "working";
1289
+ readonly text?: string;
1290
+ };
1291
+ readonly kind: "set_activity";
1292
+ } | {
1293
+ readonly kind: "present_outcome";
1294
+ readonly options?: readonly string[];
1295
+ readonly outcome: "awaiting_input" | "completed" | "failed";
1296
+ readonly text: string;
1297
+ } | {
1298
+ readonly kind: "render_plan";
1299
+ readonly plan: {
1300
+ readonly items: readonly {
1301
+ readonly itemKey: string;
1302
+ readonly note?: string;
1303
+ readonly state: "completed" | "failed" | "in_progress" | "pending";
1304
+ readonly title: string;
1305
+ }[];
1306
+ readonly title?: string;
1307
+ };
1308
+ readonly reference?: string;
1309
+ readonly revision: number;
1310
+ };
1311
+ readonly responseToTimestamp?: string;
1312
+ } | {
1313
+ readonly extensions?: {
1314
+ readonly [x: string]: Schema.Json;
1315
+ };
1316
+ readonly operationKey: string;
1317
+ readonly installationKey: string;
1318
+ readonly state: Schema.Json;
1319
+ readonly kind: "read_context";
1320
+ readonly destination: {
1321
+ readonly conversationKey: string;
1322
+ readonly kind: "direct" | "group";
1323
+ readonly threadKey?: string;
1324
+ };
1325
+ readonly limit: number;
1326
+ } | {
1327
+ readonly asset: {
1328
+ readonly assetKey: string;
1329
+ readonly mediaType: string;
1330
+ readonly url: string;
1331
+ };
1332
+ readonly extensions?: {
1333
+ readonly [x: string]: Schema.Json;
1334
+ };
1335
+ readonly identity: {
1336
+ readonly conversation: {
1337
+ readonly conversationKey: string;
1338
+ readonly kind: "direct" | "group";
1339
+ readonly threadKey?: string;
1340
+ };
1341
+ readonly senderKey: string;
1342
+ };
1343
+ readonly installationKey: string;
1344
+ readonly kind: "read_asset";
1345
+ readonly operationKey: string;
1346
+ readonly state: Schema.Json;
1347
+ };
1348
+ readonly deploymentSettings: Schema.Json;
1349
+ readonly receive: {
1350
+ readonly extensions?: {
1351
+ readonly [x: string]: Schema.Json;
1352
+ };
1353
+ readonly operationKey: string;
1354
+ readonly kind: "activate";
1355
+ readonly ingressUrl: string;
1356
+ readonly state?: Schema.Json;
1357
+ } | {
1358
+ readonly extensions?: {
1359
+ readonly [x: string]: Schema.Json;
1360
+ };
1361
+ readonly operationKey: string;
1362
+ readonly installationKey: string;
1363
+ readonly state: Schema.Json;
1364
+ readonly kind: "deactivate";
1365
+ } | {
1366
+ readonly extensions?: {
1367
+ readonly [x: string]: Schema.Json;
1368
+ };
1369
+ readonly operationKey: string;
1370
+ readonly installationKey: string;
1371
+ readonly state: Schema.Json;
1372
+ readonly kind: "receive";
1373
+ readonly request: {
1374
+ readonly body: string;
1375
+ readonly headers: {
1376
+ readonly [x: string]: string;
1377
+ };
1378
+ readonly method: "DELETE" | "GET" | "PATCH" | "POST" | "PUT";
1379
+ readonly url: string;
1380
+ };
1381
+ } | {
1382
+ readonly extensions?: {
1383
+ readonly [x: string]: Schema.Json;
1384
+ };
1385
+ readonly operationKey: string;
1386
+ readonly installationKey: string;
1387
+ readonly state: Schema.Json;
1388
+ readonly kind: "deliver";
1389
+ readonly deliveryKey: string;
1390
+ readonly destination: {
1391
+ readonly conversationKey: string;
1392
+ readonly kind: "direct" | "group";
1393
+ readonly threadKey?: string;
1394
+ };
1395
+ readonly content: {
1396
+ readonly assets?: readonly {
1397
+ readonly assetKey: string;
1398
+ readonly mediaType: string;
1399
+ readonly url: string;
1400
+ }[];
1401
+ readonly mentions?: readonly string[];
1402
+ readonly replyToMessageKey?: string;
1403
+ readonly text: string;
1404
+ };
1405
+ readonly responseToTimestamp?: string;
1406
+ } | {
1407
+ readonly extensions?: {
1408
+ readonly [x: string]: Schema.Json;
1409
+ };
1410
+ readonly operationKey: string;
1411
+ readonly kind: "activate";
1412
+ readonly ingressUrl: string;
1413
+ readonly state?: Schema.Json;
1414
+ } | {
1415
+ readonly extensions?: {
1416
+ readonly [x: string]: Schema.Json;
1417
+ };
1418
+ readonly operationKey: string;
1419
+ readonly installationKey: string;
1420
+ readonly state: Schema.Json;
1421
+ readonly kind: "deactivate";
1422
+ } | {
1423
+ readonly extensions?: {
1424
+ readonly [x: string]: Schema.Json;
1425
+ };
1426
+ readonly operationKey: string;
1427
+ readonly installationKey: string;
1428
+ readonly state: Schema.Json;
1429
+ readonly kind: "receive";
1430
+ readonly request: {
1431
+ readonly body: string;
1432
+ readonly headers: {
1433
+ readonly [x: string]: string;
1434
+ };
1435
+ readonly method: "DELETE" | "GET" | "PATCH" | "POST" | "PUT";
1436
+ readonly url: string;
1437
+ };
1438
+ } | {
1439
+ readonly extensions?: {
1440
+ readonly [x: string]: Schema.Json;
1441
+ };
1442
+ readonly operationKey: string;
1443
+ readonly installationKey: string;
1444
+ readonly state: Schema.Json;
1445
+ readonly kind: "deliver";
1446
+ readonly activationMessageKey?: string;
1447
+ readonly deliveryKey: string;
1448
+ readonly destination: {
1449
+ readonly conversationKey: string;
1450
+ readonly kind: "direct" | "group";
1451
+ readonly threadKey?: string;
1452
+ };
1453
+ readonly operation: {
1454
+ readonly kind: "create_message";
1455
+ readonly messageKey: string;
1456
+ readonly text: string;
1457
+ } | {
1458
+ readonly kind: "update_message";
1459
+ readonly messageKey: string;
1460
+ readonly reference: string;
1461
+ readonly text: string;
1462
+ } | {
1463
+ readonly kind: "delete_message";
1464
+ readonly messageKey: string;
1465
+ readonly reference: string;
1466
+ } | {
1467
+ readonly active: boolean;
1468
+ readonly kind: "set_reaction";
1469
+ readonly reaction: "confused" | "eyes" | "heart" | "hooray" | "laugh" | "rocket" | "thumbs_down" | "thumbs_up";
1470
+ readonly target: {
1471
+ readonly kind: "activation";
1472
+ } | {
1473
+ readonly kind: "message";
1474
+ readonly reference: string;
1475
+ };
1476
+ } | {
1477
+ readonly activity: {
1478
+ readonly kind: "idle";
1479
+ } | {
1480
+ readonly kind: "working";
1481
+ readonly text?: string;
1482
+ };
1483
+ readonly kind: "set_activity";
1484
+ } | {
1485
+ readonly kind: "present_outcome";
1486
+ readonly options?: readonly string[];
1487
+ readonly outcome: "awaiting_input" | "completed" | "failed";
1488
+ readonly text: string;
1489
+ } | {
1490
+ readonly kind: "render_plan";
1491
+ readonly plan: {
1492
+ readonly items: readonly {
1493
+ readonly itemKey: string;
1494
+ readonly note?: string;
1495
+ readonly state: "completed" | "failed" | "in_progress" | "pending";
1496
+ readonly title: string;
1497
+ }[];
1498
+ readonly title?: string;
1499
+ };
1500
+ readonly reference?: string;
1501
+ readonly revision: number;
1502
+ };
1503
+ readonly responseToTimestamp?: string;
1504
+ } | {
1505
+ readonly extensions?: {
1506
+ readonly [x: string]: Schema.Json;
1507
+ };
1508
+ readonly operationKey: string;
1509
+ readonly installationKey: string;
1510
+ readonly state: Schema.Json;
1511
+ readonly kind: "read_context";
1512
+ readonly destination: {
1513
+ readonly conversationKey: string;
1514
+ readonly kind: "direct" | "group";
1515
+ readonly threadKey?: string;
1516
+ };
1517
+ readonly limit: number;
1518
+ } | {
1519
+ readonly asset: {
1520
+ readonly assetKey: string;
1521
+ readonly mediaType: string;
1522
+ readonly url: string;
1523
+ };
1524
+ readonly extensions?: {
1525
+ readonly [x: string]: Schema.Json;
1526
+ };
1527
+ readonly identity: {
1528
+ readonly conversation: {
1529
+ readonly conversationKey: string;
1530
+ readonly kind: "direct" | "group";
1531
+ readonly threadKey?: string;
1532
+ };
1533
+ readonly senderKey: string;
1534
+ };
1535
+ readonly installationKey: string;
1536
+ readonly kind: "read_asset";
1537
+ readonly operationKey: string;
1538
+ readonly state: Schema.Json;
1539
+ };
1540
+ }) => Effect.Effect<undefined, ChannelError | ConformanceError | Schema.SchemaError, Service>;
1541
+ //#endregion
1542
+ export { AgentChannelConformance_d_exports as AgentChannelConformance, AgentChannelConformance_d_exports };
1543
+ //# sourceMappingURL=AgentChannelConformance.d.ts.map