ankka 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/dist/_proto/ankka/protocol/v1/agent_pb.d.ts +350 -0
- package/dist/_proto/ankka/protocol/v1/agent_pb.js +90 -0
- package/dist/_proto/ankka/protocol/v1/client_pb.d.ts +254 -0
- package/dist/_proto/ankka/protocol/v1/client_pb.js +47 -0
- package/dist/_proto/ankka/protocol/v1/consumer_pb.d.ts +105 -0
- package/dist/_proto/ankka/protocol/v1/consumer_pb.js +28 -0
- package/dist/_proto/ankka/protocol/v1/discovery_pb.d.ts +598 -0
- package/dist/_proto/ankka/protocol/v1/discovery_pb.js +175 -0
- package/dist/_proto/ankka/protocol/v1/endpoint_pb.d.ts +224 -0
- package/dist/_proto/ankka/protocol/v1/endpoint_pb.js +44 -0
- package/dist/_proto/ankka/protocol/v1/event_sourced_pb.d.ts +212 -0
- package/dist/_proto/ankka/protocol/v1/event_sourced_pb.js +47 -0
- package/dist/_proto/ankka/protocol/v1/key_value_pb.d.ts +154 -0
- package/dist/_proto/ankka/protocol/v1/key_value_pb.js +36 -0
- package/dist/_proto/ankka/protocol/v1/payload_pb.d.ts +276 -0
- package/dist/_proto/ankka/protocol/v1/payload_pb.js +110 -0
- package/dist/_proto/ankka/protocol/v1/timed_action_pb.d.ts +75 -0
- package/dist/_proto/ankka/protocol/v1/timed_action_pb.js +23 -0
- package/dist/_proto/ankka/protocol/v1/view_pb.d.ts +93 -0
- package/dist/_proto/ankka/protocol/v1/view_pb.js +23 -0
- package/dist/_proto/ankka/protocol/v1/workflow_pb.d.ts +298 -0
- package/dist/_proto/ankka/protocol/v1/workflow_pb.js +67 -0
- package/dist/agent.d.ts +27 -0
- package/dist/agent.js +36 -0
- package/dist/client.d.ts +92 -0
- package/dist/client.js +239 -0
- package/dist/codec.d.ts +44 -0
- package/dist/codec.js +215 -0
- package/dist/consumer.d.ts +31 -0
- package/dist/consumer.js +32 -0
- package/dist/context.d.ts +61 -0
- package/dist/context.js +75 -0
- package/dist/effects/agent.d.ts +37 -0
- package/dist/effects/agent.js +48 -0
- package/dist/effects/common.d.ts +68 -0
- package/dist/effects/common.js +55 -0
- package/dist/effects/eventSourced.d.ts +50 -0
- package/dist/effects/eventSourced.js +66 -0
- package/dist/effects/keyValue.d.ts +36 -0
- package/dist/effects/keyValue.js +47 -0
- package/dist/effects/stateless.d.ts +40 -0
- package/dist/effects/stateless.js +35 -0
- package/dist/effects/workflow.d.ts +99 -0
- package/dist/effects/workflow.js +83 -0
- package/dist/endpoint.d.ts +21 -0
- package/dist/endpoint.js +29 -0
- package/dist/eventSourcedEntity.d.ts +40 -0
- package/dist/eventSourcedEntity.js +66 -0
- package/dist/handlers.d.ts +55 -0
- package/dist/handlers.js +64 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +39 -0
- package/dist/json.d.ts +21 -0
- package/dist/json.js +362 -0
- package/dist/keyValueEntity.d.ts +29 -0
- package/dist/keyValueEntity.js +52 -0
- package/dist/kinds.d.ts +8 -0
- package/dist/kinds.js +41 -0
- package/dist/materialise.d.ts +33 -0
- package/dist/materialise.js +55 -0
- package/dist/routes.d.ts +71 -0
- package/dist/routes.js +79 -0
- package/dist/schema.d.ts +112 -0
- package/dist/schema.js +200 -0
- package/dist/server/agent.d.ts +14 -0
- package/dist/server/agent.js +113 -0
- package/dist/server/discovery.d.ts +5 -0
- package/dist/server/discovery.js +21 -0
- package/dist/server/eventSourced.d.ts +12 -0
- package/dist/server/eventSourced.js +168 -0
- package/dist/server/http.d.ts +10 -0
- package/dist/server/http.js +153 -0
- package/dist/server/keyValue.d.ts +5 -0
- package/dist/server/keyValue.js +122 -0
- package/dist/server/payloads.d.ts +6 -0
- package/dist/server/payloads.js +11 -0
- package/dist/server/queue.d.ts +10 -0
- package/dist/server/queue.js +67 -0
- package/dist/server/server.d.ts +34 -0
- package/dist/server/server.js +101 -0
- package/dist/server/stateless.d.ts +9 -0
- package/dist/server/stateless.js +108 -0
- package/dist/server/workflow.d.ts +5 -0
- package/dist/server/workflow.js +244 -0
- package/dist/service.d.ts +147 -0
- package/dist/service.js +384 -0
- package/dist/spec.d.ts +7 -0
- package/dist/spec.js +106 -0
- package/dist/testkit/index.d.ts +3 -0
- package/dist/testkit/index.js +6 -0
- package/dist/testkit/integration.d.ts +60 -0
- package/dist/testkit/integration.js +284 -0
- package/dist/testkit/kinds.d.ts +133 -0
- package/dist/testkit/kinds.js +398 -0
- package/dist/testkit/unit.d.ts +54 -0
- package/dist/testkit/unit.js +224 -0
- package/dist/time.d.ts +73 -0
- package/dist/time.js +275 -0
- package/dist/timedAction.d.ts +20 -0
- package/dist/timedAction.js +28 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +2 -0
- package/dist/view.d.ts +37 -0
- package/dist/view.js +52 -0
- package/dist/workflow.d.ts +33 -0
- package/dist/workflow.js +61 -0
- package/package.json +75 -0
|
@@ -0,0 +1,598 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { EmptySchema } from "./payload_pb.ts";
|
|
3
|
+
import type { Message, UnknownEnum } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file ankka/protocol/v1/discovery.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_ankka_protocol_v1_discovery: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* @generated from message ankka.protocol.v1.SidecarInfo
|
|
10
|
+
*/
|
|
11
|
+
export type SidecarInfo = Message<"ankka.protocol.v1.SidecarInfo"> & {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from field: string protocol_version = 1;
|
|
14
|
+
*/
|
|
15
|
+
protocolVersion: string;
|
|
16
|
+
/**
|
|
17
|
+
* @generated from field: string runtime_version = 2;
|
|
18
|
+
*/
|
|
19
|
+
runtimeVersion: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message ankka.protocol.v1.SidecarInfo.
|
|
23
|
+
* Use `create(SidecarInfoSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
export declare const SidecarInfoSchema: GenMessage<SidecarInfo>;
|
|
26
|
+
/**
|
|
27
|
+
* @generated from message ankka.protocol.v1.Spec
|
|
28
|
+
*/
|
|
29
|
+
export type Spec = Message<"ankka.protocol.v1.Spec"> & {
|
|
30
|
+
/**
|
|
31
|
+
* "1.0"
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: string protocol_version = 1;
|
|
34
|
+
*/
|
|
35
|
+
protocolVersion: string;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from field: ankka.protocol.v1.SdkInfo sdk = 2;
|
|
38
|
+
*/
|
|
39
|
+
sdk?: SdkInfo | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* @generated from field: repeated ankka.protocol.v1.Component components = 3;
|
|
42
|
+
*/
|
|
43
|
+
components: Component[];
|
|
44
|
+
/**
|
|
45
|
+
* @generated from field: repeated ankka.protocol.v1.Endpoint endpoints = 4;
|
|
46
|
+
*/
|
|
47
|
+
endpoints: Endpoint[];
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Describes the message ankka.protocol.v1.Spec.
|
|
51
|
+
* Use `create(SpecSchema)` to create a new message.
|
|
52
|
+
*/
|
|
53
|
+
export declare const SpecSchema: GenMessage<Spec>;
|
|
54
|
+
/**
|
|
55
|
+
* @generated from message ankka.protocol.v1.SdkInfo
|
|
56
|
+
*/
|
|
57
|
+
export type SdkInfo = Message<"ankka.protocol.v1.SdkInfo"> & {
|
|
58
|
+
/**
|
|
59
|
+
* @generated from field: string name = 1;
|
|
60
|
+
*/
|
|
61
|
+
name: string;
|
|
62
|
+
/**
|
|
63
|
+
* @generated from field: string version = 2;
|
|
64
|
+
*/
|
|
65
|
+
version: string;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Describes the message ankka.protocol.v1.SdkInfo.
|
|
69
|
+
* Use `create(SdkInfoSchema)` to create a new message.
|
|
70
|
+
*/
|
|
71
|
+
export declare const SdkInfoSchema: GenMessage<SdkInfo>;
|
|
72
|
+
/**
|
|
73
|
+
* @generated from message ankka.protocol.v1.Component
|
|
74
|
+
*/
|
|
75
|
+
export type Component = Message<"ankka.protocol.v1.Component"> & {
|
|
76
|
+
/**
|
|
77
|
+
* @generated from field: ankka.protocol.v1.Kind kind = 1;
|
|
78
|
+
*/
|
|
79
|
+
kind: Kind;
|
|
80
|
+
/**
|
|
81
|
+
* @generated from field: string id = 2;
|
|
82
|
+
*/
|
|
83
|
+
id: string;
|
|
84
|
+
/**
|
|
85
|
+
* @generated from field: repeated ankka.protocol.v1.Handler handlers = 3;
|
|
86
|
+
*/
|
|
87
|
+
handlers: Handler[];
|
|
88
|
+
/**
|
|
89
|
+
* @generated from oneof ankka.protocol.v1.Component.detail
|
|
90
|
+
*/
|
|
91
|
+
detail: {
|
|
92
|
+
/**
|
|
93
|
+
* @generated from field: ankka.protocol.v1.EventSourcedDetail event_sourced = 10;
|
|
94
|
+
*/
|
|
95
|
+
value: EventSourcedDetail;
|
|
96
|
+
case: "eventSourced";
|
|
97
|
+
} | {
|
|
98
|
+
/**
|
|
99
|
+
* @generated from field: ankka.protocol.v1.KeyValueDetail key_value = 11;
|
|
100
|
+
*/
|
|
101
|
+
value: KeyValueDetail;
|
|
102
|
+
case: "keyValue";
|
|
103
|
+
} | {
|
|
104
|
+
/**
|
|
105
|
+
* @generated from field: ankka.protocol.v1.WorkflowDetail workflow = 12;
|
|
106
|
+
*/
|
|
107
|
+
value: WorkflowDetail;
|
|
108
|
+
case: "workflow";
|
|
109
|
+
} | {
|
|
110
|
+
/**
|
|
111
|
+
* @generated from field: ankka.protocol.v1.ViewDetail view = 13;
|
|
112
|
+
*/
|
|
113
|
+
value: ViewDetail;
|
|
114
|
+
case: "view";
|
|
115
|
+
} | {
|
|
116
|
+
/**
|
|
117
|
+
* @generated from field: ankka.protocol.v1.ConsumerDetail consumer = 14;
|
|
118
|
+
*/
|
|
119
|
+
value: ConsumerDetail;
|
|
120
|
+
case: "consumer";
|
|
121
|
+
} | {
|
|
122
|
+
/**
|
|
123
|
+
* @generated from field: ankka.protocol.v1.TimedActionDetail timed_action = 15;
|
|
124
|
+
*/
|
|
125
|
+
value: TimedActionDetail;
|
|
126
|
+
case: "timedAction";
|
|
127
|
+
} | {
|
|
128
|
+
/**
|
|
129
|
+
* @generated from field: ankka.protocol.v1.AgentDetail agent = 16;
|
|
130
|
+
*/
|
|
131
|
+
value: AgentDetail;
|
|
132
|
+
case: "agent";
|
|
133
|
+
} | {
|
|
134
|
+
case: undefined;
|
|
135
|
+
value?: undefined;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Describes the message ankka.protocol.v1.Component.
|
|
140
|
+
* Use `create(ComponentSchema)` to create a new message.
|
|
141
|
+
*/
|
|
142
|
+
export declare const ComponentSchema: GenMessage<Component>;
|
|
143
|
+
/**
|
|
144
|
+
* @generated from message ankka.protocol.v1.Handler
|
|
145
|
+
*/
|
|
146
|
+
export type Handler = Message<"ankka.protocol.v1.Handler"> & {
|
|
147
|
+
/**
|
|
148
|
+
* @generated from field: string name = 1;
|
|
149
|
+
*/
|
|
150
|
+
name: string;
|
|
151
|
+
/**
|
|
152
|
+
* @generated from field: bool read_only = 2;
|
|
153
|
+
*/
|
|
154
|
+
readOnly: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* @generated from field: bool streaming = 3;
|
|
157
|
+
*/
|
|
158
|
+
streaming: boolean;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Describes the message ankka.protocol.v1.Handler.
|
|
162
|
+
* Use `create(HandlerSchema)` to create a new message.
|
|
163
|
+
*/
|
|
164
|
+
export declare const HandlerSchema: GenMessage<Handler>;
|
|
165
|
+
/**
|
|
166
|
+
* @generated from message ankka.protocol.v1.EventSourcedDetail
|
|
167
|
+
*/
|
|
168
|
+
export type EventSourcedDetail = Message<"ankka.protocol.v1.EventSourcedDetail"> & {
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: int32 snapshot_every = 1;
|
|
171
|
+
*/
|
|
172
|
+
snapshotEvery: number;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Describes the message ankka.protocol.v1.EventSourcedDetail.
|
|
176
|
+
* Use `create(EventSourcedDetailSchema)` to create a new message.
|
|
177
|
+
*/
|
|
178
|
+
export declare const EventSourcedDetailSchema: GenMessage<EventSourcedDetail>;
|
|
179
|
+
/**
|
|
180
|
+
* @generated from message ankka.protocol.v1.KeyValueDetail
|
|
181
|
+
*/
|
|
182
|
+
export type KeyValueDetail = Message<"ankka.protocol.v1.KeyValueDetail"> & {};
|
|
183
|
+
/**
|
|
184
|
+
* Describes the message ankka.protocol.v1.KeyValueDetail.
|
|
185
|
+
* Use `create(KeyValueDetailSchema)` to create a new message.
|
|
186
|
+
*/
|
|
187
|
+
export declare const KeyValueDetailSchema: GenMessage<KeyValueDetail>;
|
|
188
|
+
/**
|
|
189
|
+
* @generated from message ankka.protocol.v1.WorkflowDetail
|
|
190
|
+
*/
|
|
191
|
+
export type WorkflowDetail = Message<"ankka.protocol.v1.WorkflowDetail"> & {
|
|
192
|
+
/**
|
|
193
|
+
* @generated from field: repeated string steps = 1;
|
|
194
|
+
*/
|
|
195
|
+
steps: string[];
|
|
196
|
+
/**
|
|
197
|
+
* absent: no overall limit, 30s a step, a failed step fails the workflow
|
|
198
|
+
*
|
|
199
|
+
* @generated from field: optional ankka.protocol.v1.WorkflowDetail.Settings settings = 2;
|
|
200
|
+
*/
|
|
201
|
+
settings?: WorkflowDetail_Settings | undefined;
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* Describes the message ankka.protocol.v1.WorkflowDetail.
|
|
205
|
+
* Use `create(WorkflowDetailSchema)` to create a new message.
|
|
206
|
+
*/
|
|
207
|
+
export declare const WorkflowDetailSchema: GenMessage<WorkflowDetail>;
|
|
208
|
+
/**
|
|
209
|
+
* @generated from message ankka.protocol.v1.WorkflowDetail.Settings
|
|
210
|
+
*/
|
|
211
|
+
export type WorkflowDetail_Settings = Message<"ankka.protocol.v1.WorkflowDetail.Settings"> & {
|
|
212
|
+
/**
|
|
213
|
+
* a ceiling on the whole workflow
|
|
214
|
+
*
|
|
215
|
+
* @generated from field: optional int64 timeout_millis = 1;
|
|
216
|
+
*/
|
|
217
|
+
timeoutMillis?: bigint | undefined;
|
|
218
|
+
/**
|
|
219
|
+
* @generated from field: optional int64 default_step_timeout_millis = 2;
|
|
220
|
+
*/
|
|
221
|
+
defaultStepTimeoutMillis?: bigint | undefined;
|
|
222
|
+
/**
|
|
223
|
+
* @generated from field: optional ankka.protocol.v1.WorkflowDetail.Recovery default_recovery = 3;
|
|
224
|
+
*/
|
|
225
|
+
defaultRecovery?: WorkflowDetail_Recovery | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* @generated from field: repeated ankka.protocol.v1.WorkflowDetail.StepSettings steps = 4;
|
|
228
|
+
*/
|
|
229
|
+
steps: WorkflowDetail_StepSettings[];
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Describes the message ankka.protocol.v1.WorkflowDetail.Settings.
|
|
233
|
+
* Use `create(WorkflowDetail_SettingsSchema)` to create a new message.
|
|
234
|
+
*/
|
|
235
|
+
export declare const WorkflowDetail_SettingsSchema: GenMessage<WorkflowDetail_Settings>;
|
|
236
|
+
/**
|
|
237
|
+
* @generated from message ankka.protocol.v1.WorkflowDetail.StepSettings
|
|
238
|
+
*/
|
|
239
|
+
export type WorkflowDetail_StepSettings = Message<"ankka.protocol.v1.WorkflowDetail.StepSettings"> & {
|
|
240
|
+
/**
|
|
241
|
+
* @generated from field: string step = 1;
|
|
242
|
+
*/
|
|
243
|
+
step: string;
|
|
244
|
+
/**
|
|
245
|
+
* @generated from field: optional int64 timeout_millis = 2;
|
|
246
|
+
*/
|
|
247
|
+
timeoutMillis?: bigint | undefined;
|
|
248
|
+
/**
|
|
249
|
+
* @generated from field: optional ankka.protocol.v1.WorkflowDetail.Recovery recovery = 3;
|
|
250
|
+
*/
|
|
251
|
+
recovery?: WorkflowDetail_Recovery | undefined;
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Describes the message ankka.protocol.v1.WorkflowDetail.StepSettings.
|
|
255
|
+
* Use `create(WorkflowDetail_StepSettingsSchema)` to create a new message.
|
|
256
|
+
*/
|
|
257
|
+
export declare const WorkflowDetail_StepSettingsSchema: GenMessage<WorkflowDetail_StepSettings>;
|
|
258
|
+
/**
|
|
259
|
+
* @generated from message ankka.protocol.v1.WorkflowDetail.Recovery
|
|
260
|
+
*/
|
|
261
|
+
export type WorkflowDetail_Recovery = Message<"ankka.protocol.v1.WorkflowDetail.Recovery"> & {
|
|
262
|
+
/**
|
|
263
|
+
* @generated from field: int32 max_retries = 1;
|
|
264
|
+
*/
|
|
265
|
+
maxRetries: number;
|
|
266
|
+
/**
|
|
267
|
+
* @generated from field: optional string failover_to = 2;
|
|
268
|
+
*/
|
|
269
|
+
failoverTo?: string | undefined;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Describes the message ankka.protocol.v1.WorkflowDetail.Recovery.
|
|
273
|
+
* Use `create(WorkflowDetail_RecoverySchema)` to create a new message.
|
|
274
|
+
*/
|
|
275
|
+
export declare const WorkflowDetail_RecoverySchema: GenMessage<WorkflowDetail_Recovery>;
|
|
276
|
+
/**
|
|
277
|
+
* @generated from message ankka.protocol.v1.Source
|
|
278
|
+
*/
|
|
279
|
+
export type Source = Message<"ankka.protocol.v1.Source"> & {
|
|
280
|
+
/**
|
|
281
|
+
* @generated from oneof ankka.protocol.v1.Source.source
|
|
282
|
+
*/
|
|
283
|
+
source: {
|
|
284
|
+
/**
|
|
285
|
+
* @generated from field: ankka.protocol.v1.Source.ComponentRef component = 1;
|
|
286
|
+
*/
|
|
287
|
+
value: Source_ComponentRef;
|
|
288
|
+
case: "component";
|
|
289
|
+
} | {
|
|
290
|
+
/**
|
|
291
|
+
* @generated from field: string topic = 2;
|
|
292
|
+
*/
|
|
293
|
+
value: string;
|
|
294
|
+
case: "topic";
|
|
295
|
+
} | {
|
|
296
|
+
case: undefined;
|
|
297
|
+
value?: undefined;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* Describes the message ankka.protocol.v1.Source.
|
|
302
|
+
* Use `create(SourceSchema)` to create a new message.
|
|
303
|
+
*/
|
|
304
|
+
export declare const SourceSchema: GenMessage<Source>;
|
|
305
|
+
/**
|
|
306
|
+
* @generated from message ankka.protocol.v1.Source.ComponentRef
|
|
307
|
+
*/
|
|
308
|
+
export type Source_ComponentRef = Message<"ankka.protocol.v1.Source.ComponentRef"> & {
|
|
309
|
+
/**
|
|
310
|
+
* @generated from field: ankka.protocol.v1.Kind kind = 1;
|
|
311
|
+
*/
|
|
312
|
+
kind: Kind;
|
|
313
|
+
/**
|
|
314
|
+
* @generated from field: string id = 2;
|
|
315
|
+
*/
|
|
316
|
+
id: string;
|
|
317
|
+
};
|
|
318
|
+
/**
|
|
319
|
+
* Describes the message ankka.protocol.v1.Source.ComponentRef.
|
|
320
|
+
* Use `create(Source_ComponentRefSchema)` to create a new message.
|
|
321
|
+
*/
|
|
322
|
+
export declare const Source_ComponentRefSchema: GenMessage<Source_ComponentRef>;
|
|
323
|
+
/**
|
|
324
|
+
* @generated from message ankka.protocol.v1.ViewDetail
|
|
325
|
+
*/
|
|
326
|
+
export type ViewDetail = Message<"ankka.protocol.v1.ViewDetail"> & {
|
|
327
|
+
/**
|
|
328
|
+
* @generated from field: ankka.protocol.v1.Source source = 1;
|
|
329
|
+
*/
|
|
330
|
+
source?: Source | undefined;
|
|
331
|
+
/**
|
|
332
|
+
* @generated from field: string row_manifest = 2;
|
|
333
|
+
*/
|
|
334
|
+
rowManifest: string;
|
|
335
|
+
/**
|
|
336
|
+
* @generated from field: repeated string queries = 3;
|
|
337
|
+
*/
|
|
338
|
+
queries: string[];
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* Describes the message ankka.protocol.v1.ViewDetail.
|
|
342
|
+
* Use `create(ViewDetailSchema)` to create a new message.
|
|
343
|
+
*/
|
|
344
|
+
export declare const ViewDetailSchema: GenMessage<ViewDetail>;
|
|
345
|
+
/**
|
|
346
|
+
* @generated from message ankka.protocol.v1.ConsumerDetail
|
|
347
|
+
*/
|
|
348
|
+
export type ConsumerDetail = Message<"ankka.protocol.v1.ConsumerDetail"> & {
|
|
349
|
+
/**
|
|
350
|
+
* @generated from field: ankka.protocol.v1.Source source = 1;
|
|
351
|
+
*/
|
|
352
|
+
source?: Source | undefined;
|
|
353
|
+
/**
|
|
354
|
+
* @generated from field: optional string produces_to = 2;
|
|
355
|
+
*/
|
|
356
|
+
producesTo?: string | undefined;
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* Describes the message ankka.protocol.v1.ConsumerDetail.
|
|
360
|
+
* Use `create(ConsumerDetailSchema)` to create a new message.
|
|
361
|
+
*/
|
|
362
|
+
export declare const ConsumerDetailSchema: GenMessage<ConsumerDetail>;
|
|
363
|
+
/**
|
|
364
|
+
* @generated from message ankka.protocol.v1.TimedActionDetail
|
|
365
|
+
*/
|
|
366
|
+
export type TimedActionDetail = Message<"ankka.protocol.v1.TimedActionDetail"> & {};
|
|
367
|
+
/**
|
|
368
|
+
* Describes the message ankka.protocol.v1.TimedActionDetail.
|
|
369
|
+
* Use `create(TimedActionDetailSchema)` to create a new message.
|
|
370
|
+
*/
|
|
371
|
+
export declare const TimedActionDetailSchema: GenMessage<TimedActionDetail>;
|
|
372
|
+
/**
|
|
373
|
+
* @generated from message ankka.protocol.v1.AgentDetail
|
|
374
|
+
*/
|
|
375
|
+
export type AgentDetail = Message<"ankka.protocol.v1.AgentDetail"> & {
|
|
376
|
+
/**
|
|
377
|
+
* @generated from field: string role = 1;
|
|
378
|
+
*/
|
|
379
|
+
role: string;
|
|
380
|
+
/**
|
|
381
|
+
* @generated from field: int32 max_tool_call_steps = 2;
|
|
382
|
+
*/
|
|
383
|
+
maxToolCallSteps: number;
|
|
384
|
+
/**
|
|
385
|
+
* @generated from field: repeated ankka.protocol.v1.Tool tools = 3;
|
|
386
|
+
*/
|
|
387
|
+
tools: Tool[];
|
|
388
|
+
/**
|
|
389
|
+
* @generated from field: repeated string guardrails = 4;
|
|
390
|
+
*/
|
|
391
|
+
guardrails: string[];
|
|
392
|
+
};
|
|
393
|
+
/**
|
|
394
|
+
* Describes the message ankka.protocol.v1.AgentDetail.
|
|
395
|
+
* Use `create(AgentDetailSchema)` to create a new message.
|
|
396
|
+
*/
|
|
397
|
+
export declare const AgentDetailSchema: GenMessage<AgentDetail>;
|
|
398
|
+
/**
|
|
399
|
+
* @generated from message ankka.protocol.v1.Tool
|
|
400
|
+
*/
|
|
401
|
+
export type Tool = Message<"ankka.protocol.v1.Tool"> & {
|
|
402
|
+
/**
|
|
403
|
+
* @generated from field: string name = 1;
|
|
404
|
+
*/
|
|
405
|
+
name: string;
|
|
406
|
+
/**
|
|
407
|
+
* @generated from field: string description = 2;
|
|
408
|
+
*/
|
|
409
|
+
description: string;
|
|
410
|
+
/**
|
|
411
|
+
* @generated from field: string input_schema_json = 3;
|
|
412
|
+
*/
|
|
413
|
+
inputSchemaJson: string;
|
|
414
|
+
};
|
|
415
|
+
/**
|
|
416
|
+
* Describes the message ankka.protocol.v1.Tool.
|
|
417
|
+
* Use `create(ToolSchema)` to create a new message.
|
|
418
|
+
*/
|
|
419
|
+
export declare const ToolSchema: GenMessage<Tool>;
|
|
420
|
+
/**
|
|
421
|
+
* @generated from message ankka.protocol.v1.Endpoint
|
|
422
|
+
*/
|
|
423
|
+
export type Endpoint = Message<"ankka.protocol.v1.Endpoint"> & {
|
|
424
|
+
/**
|
|
425
|
+
* for log lines and the console; unique within the Spec
|
|
426
|
+
*
|
|
427
|
+
* @generated from field: string id = 1;
|
|
428
|
+
*/
|
|
429
|
+
id: string;
|
|
430
|
+
/**
|
|
431
|
+
* as HttpEndpoint's prefix: "/carts"
|
|
432
|
+
*
|
|
433
|
+
* @generated from field: string prefix = 2;
|
|
434
|
+
*/
|
|
435
|
+
prefix: string;
|
|
436
|
+
/**
|
|
437
|
+
* @generated from field: ankka.protocol.v1.Endpoint.Acl acl = 3;
|
|
438
|
+
*/
|
|
439
|
+
acl: Endpoint_Acl;
|
|
440
|
+
/**
|
|
441
|
+
* @generated from field: repeated ankka.protocol.v1.Route routes = 4;
|
|
442
|
+
*/
|
|
443
|
+
routes: Route[];
|
|
444
|
+
};
|
|
445
|
+
/**
|
|
446
|
+
* Describes the message ankka.protocol.v1.Endpoint.
|
|
447
|
+
* Use `create(EndpointSchema)` to create a new message.
|
|
448
|
+
*/
|
|
449
|
+
export declare const EndpointSchema: GenMessage<Endpoint>;
|
|
450
|
+
/**
|
|
451
|
+
* @generated from enum ankka.protocol.v1.Endpoint.Acl
|
|
452
|
+
*/
|
|
453
|
+
export declare const Endpoint_Acl: {
|
|
454
|
+
/**
|
|
455
|
+
* @generated from enum value: ALLOW_ALL = 0;
|
|
456
|
+
*/
|
|
457
|
+
readonly ALLOW_ALL: 0;
|
|
458
|
+
/**
|
|
459
|
+
* @generated from enum value: DENY_ALL = 1;
|
|
460
|
+
*/
|
|
461
|
+
readonly DENY_ALL: 1;
|
|
462
|
+
/**
|
|
463
|
+
* @generated from enum value: AUTHENTICATED = 2;
|
|
464
|
+
*/
|
|
465
|
+
readonly AUTHENTICATED: 2;
|
|
466
|
+
};
|
|
467
|
+
/**
|
|
468
|
+
* @generated from enum ankka.protocol.v1.Endpoint.Acl
|
|
469
|
+
*/
|
|
470
|
+
export type Endpoint_Acl = (typeof Endpoint_Acl)[keyof typeof Endpoint_Acl] | UnknownEnum;
|
|
471
|
+
/**
|
|
472
|
+
* Describes the enum ankka.protocol.v1.Endpoint.Acl.
|
|
473
|
+
*/
|
|
474
|
+
export declare const Endpoint_AclSchema: GenEnum<Endpoint_Acl>;
|
|
475
|
+
/**
|
|
476
|
+
* @generated from message ankka.protocol.v1.Route
|
|
477
|
+
*/
|
|
478
|
+
export type Route = Message<"ankka.protocol.v1.Route"> & {
|
|
479
|
+
/**
|
|
480
|
+
* unique within the endpoint; the sidecar sends it back on each request
|
|
481
|
+
*
|
|
482
|
+
* @generated from field: string id = 1;
|
|
483
|
+
*/
|
|
484
|
+
id: string;
|
|
485
|
+
/**
|
|
486
|
+
* GET, POST, PUT, DELETE, PATCH
|
|
487
|
+
*
|
|
488
|
+
* @generated from field: string method = 2;
|
|
489
|
+
*/
|
|
490
|
+
method: string;
|
|
491
|
+
/**
|
|
492
|
+
* HttpEndpoint's syntax: "/{cartId}/items"; relative to prefix
|
|
493
|
+
*
|
|
494
|
+
* @generated from field: string template = 3;
|
|
495
|
+
*/
|
|
496
|
+
template: string;
|
|
497
|
+
/**
|
|
498
|
+
* @generated from field: bool has_body = 4;
|
|
499
|
+
*/
|
|
500
|
+
hasBody: boolean;
|
|
501
|
+
/**
|
|
502
|
+
* served as SSE via Endpoint.HandleStream
|
|
503
|
+
*
|
|
504
|
+
* @generated from field: bool streaming = 5;
|
|
505
|
+
*/
|
|
506
|
+
streaming: boolean;
|
|
507
|
+
/**
|
|
508
|
+
* This route's own acl, replacing the endpoint's for this route alone. `optional` so that
|
|
509
|
+
* absent means "the endpoint's" rather than ALLOW_ALL, which is what lets a process built
|
|
510
|
+
* against an earlier protocol keep the endpoint-wide behaviour it expects.
|
|
511
|
+
*
|
|
512
|
+
* @generated from field: optional ankka.protocol.v1.Endpoint.Acl acl = 6;
|
|
513
|
+
*/
|
|
514
|
+
acl?: Endpoint_Acl | undefined;
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* Describes the message ankka.protocol.v1.Route.
|
|
518
|
+
* Use `create(RouteSchema)` to create a new message.
|
|
519
|
+
*/
|
|
520
|
+
export declare const RouteSchema: GenMessage<Route>;
|
|
521
|
+
/**
|
|
522
|
+
* @generated from message ankka.protocol.v1.Problem
|
|
523
|
+
*/
|
|
524
|
+
export type Problem = Message<"ankka.protocol.v1.Problem"> & {
|
|
525
|
+
/**
|
|
526
|
+
* @generated from field: string message = 1;
|
|
527
|
+
*/
|
|
528
|
+
message: string;
|
|
529
|
+
};
|
|
530
|
+
/**
|
|
531
|
+
* Describes the message ankka.protocol.v1.Problem.
|
|
532
|
+
* Use `create(ProblemSchema)` to create a new message.
|
|
533
|
+
*/
|
|
534
|
+
export declare const ProblemSchema: GenMessage<Problem>;
|
|
535
|
+
/**
|
|
536
|
+
* @generated from enum ankka.protocol.v1.Kind
|
|
537
|
+
*/
|
|
538
|
+
export declare const Kind: {
|
|
539
|
+
/**
|
|
540
|
+
* @generated from enum value: EVENT_SOURCED_ENTITY = 0;
|
|
541
|
+
*/
|
|
542
|
+
readonly EVENT_SOURCED_ENTITY: 0;
|
|
543
|
+
/**
|
|
544
|
+
* @generated from enum value: KEY_VALUE_ENTITY = 1;
|
|
545
|
+
*/
|
|
546
|
+
readonly KEY_VALUE_ENTITY: 1;
|
|
547
|
+
/**
|
|
548
|
+
* @generated from enum value: WORKFLOW = 2;
|
|
549
|
+
*/
|
|
550
|
+
readonly WORKFLOW: 2;
|
|
551
|
+
/**
|
|
552
|
+
* @generated from enum value: VIEW = 3;
|
|
553
|
+
*/
|
|
554
|
+
readonly VIEW: 3;
|
|
555
|
+
/**
|
|
556
|
+
* @generated from enum value: CONSUMER = 4;
|
|
557
|
+
*/
|
|
558
|
+
readonly CONSUMER: 4;
|
|
559
|
+
/**
|
|
560
|
+
* @generated from enum value: TIMED_ACTION = 5;
|
|
561
|
+
*/
|
|
562
|
+
readonly TIMED_ACTION: 5;
|
|
563
|
+
/**
|
|
564
|
+
* @generated from enum value: AGENT = 6;
|
|
565
|
+
*/
|
|
566
|
+
readonly AGENT: 6;
|
|
567
|
+
};
|
|
568
|
+
/**
|
|
569
|
+
* @generated from enum ankka.protocol.v1.Kind
|
|
570
|
+
*/
|
|
571
|
+
export type Kind = (typeof Kind)[keyof typeof Kind] | UnknownEnum;
|
|
572
|
+
/**
|
|
573
|
+
* Describes the enum ankka.protocol.v1.Kind.
|
|
574
|
+
*/
|
|
575
|
+
export declare const KindSchema: GenEnum<Kind>;
|
|
576
|
+
/**
|
|
577
|
+
* @generated from service ankka.protocol.v1.Discovery
|
|
578
|
+
*/
|
|
579
|
+
export declare const Discovery: GenService<{
|
|
580
|
+
/**
|
|
581
|
+
* @generated from rpc ankka.protocol.v1.Discovery.Discover
|
|
582
|
+
*/
|
|
583
|
+
discover: {
|
|
584
|
+
methodKind: "unary";
|
|
585
|
+
input: typeof SidecarInfoSchema;
|
|
586
|
+
output: typeof SpecSchema;
|
|
587
|
+
};
|
|
588
|
+
/**
|
|
589
|
+
* why the sidecar refused; lands in the process's log
|
|
590
|
+
*
|
|
591
|
+
* @generated from rpc ankka.protocol.v1.Discovery.ReportError
|
|
592
|
+
*/
|
|
593
|
+
reportError: {
|
|
594
|
+
methodKind: "unary";
|
|
595
|
+
input: typeof ProblemSchema;
|
|
596
|
+
output: typeof EmptySchema;
|
|
597
|
+
};
|
|
598
|
+
}>;
|