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.
Files changed (108) hide show
  1. package/README.md +30 -0
  2. package/dist/_proto/ankka/protocol/v1/agent_pb.d.ts +350 -0
  3. package/dist/_proto/ankka/protocol/v1/agent_pb.js +90 -0
  4. package/dist/_proto/ankka/protocol/v1/client_pb.d.ts +254 -0
  5. package/dist/_proto/ankka/protocol/v1/client_pb.js +47 -0
  6. package/dist/_proto/ankka/protocol/v1/consumer_pb.d.ts +105 -0
  7. package/dist/_proto/ankka/protocol/v1/consumer_pb.js +28 -0
  8. package/dist/_proto/ankka/protocol/v1/discovery_pb.d.ts +598 -0
  9. package/dist/_proto/ankka/protocol/v1/discovery_pb.js +175 -0
  10. package/dist/_proto/ankka/protocol/v1/endpoint_pb.d.ts +224 -0
  11. package/dist/_proto/ankka/protocol/v1/endpoint_pb.js +44 -0
  12. package/dist/_proto/ankka/protocol/v1/event_sourced_pb.d.ts +212 -0
  13. package/dist/_proto/ankka/protocol/v1/event_sourced_pb.js +47 -0
  14. package/dist/_proto/ankka/protocol/v1/key_value_pb.d.ts +154 -0
  15. package/dist/_proto/ankka/protocol/v1/key_value_pb.js +36 -0
  16. package/dist/_proto/ankka/protocol/v1/payload_pb.d.ts +276 -0
  17. package/dist/_proto/ankka/protocol/v1/payload_pb.js +110 -0
  18. package/dist/_proto/ankka/protocol/v1/timed_action_pb.d.ts +75 -0
  19. package/dist/_proto/ankka/protocol/v1/timed_action_pb.js +23 -0
  20. package/dist/_proto/ankka/protocol/v1/view_pb.d.ts +93 -0
  21. package/dist/_proto/ankka/protocol/v1/view_pb.js +23 -0
  22. package/dist/_proto/ankka/protocol/v1/workflow_pb.d.ts +298 -0
  23. package/dist/_proto/ankka/protocol/v1/workflow_pb.js +67 -0
  24. package/dist/agent.d.ts +27 -0
  25. package/dist/agent.js +36 -0
  26. package/dist/client.d.ts +92 -0
  27. package/dist/client.js +239 -0
  28. package/dist/codec.d.ts +44 -0
  29. package/dist/codec.js +215 -0
  30. package/dist/consumer.d.ts +31 -0
  31. package/dist/consumer.js +32 -0
  32. package/dist/context.d.ts +61 -0
  33. package/dist/context.js +75 -0
  34. package/dist/effects/agent.d.ts +37 -0
  35. package/dist/effects/agent.js +48 -0
  36. package/dist/effects/common.d.ts +68 -0
  37. package/dist/effects/common.js +55 -0
  38. package/dist/effects/eventSourced.d.ts +50 -0
  39. package/dist/effects/eventSourced.js +66 -0
  40. package/dist/effects/keyValue.d.ts +36 -0
  41. package/dist/effects/keyValue.js +47 -0
  42. package/dist/effects/stateless.d.ts +40 -0
  43. package/dist/effects/stateless.js +35 -0
  44. package/dist/effects/workflow.d.ts +99 -0
  45. package/dist/effects/workflow.js +83 -0
  46. package/dist/endpoint.d.ts +21 -0
  47. package/dist/endpoint.js +29 -0
  48. package/dist/eventSourcedEntity.d.ts +40 -0
  49. package/dist/eventSourcedEntity.js +66 -0
  50. package/dist/handlers.d.ts +55 -0
  51. package/dist/handlers.js +64 -0
  52. package/dist/index.d.ts +29 -0
  53. package/dist/index.js +39 -0
  54. package/dist/json.d.ts +21 -0
  55. package/dist/json.js +362 -0
  56. package/dist/keyValueEntity.d.ts +29 -0
  57. package/dist/keyValueEntity.js +52 -0
  58. package/dist/kinds.d.ts +8 -0
  59. package/dist/kinds.js +41 -0
  60. package/dist/materialise.d.ts +33 -0
  61. package/dist/materialise.js +55 -0
  62. package/dist/routes.d.ts +71 -0
  63. package/dist/routes.js +79 -0
  64. package/dist/schema.d.ts +112 -0
  65. package/dist/schema.js +200 -0
  66. package/dist/server/agent.d.ts +14 -0
  67. package/dist/server/agent.js +113 -0
  68. package/dist/server/discovery.d.ts +5 -0
  69. package/dist/server/discovery.js +21 -0
  70. package/dist/server/eventSourced.d.ts +12 -0
  71. package/dist/server/eventSourced.js +168 -0
  72. package/dist/server/http.d.ts +10 -0
  73. package/dist/server/http.js +153 -0
  74. package/dist/server/keyValue.d.ts +5 -0
  75. package/dist/server/keyValue.js +122 -0
  76. package/dist/server/payloads.d.ts +6 -0
  77. package/dist/server/payloads.js +11 -0
  78. package/dist/server/queue.d.ts +10 -0
  79. package/dist/server/queue.js +67 -0
  80. package/dist/server/server.d.ts +34 -0
  81. package/dist/server/server.js +101 -0
  82. package/dist/server/stateless.d.ts +9 -0
  83. package/dist/server/stateless.js +108 -0
  84. package/dist/server/workflow.d.ts +5 -0
  85. package/dist/server/workflow.js +244 -0
  86. package/dist/service.d.ts +147 -0
  87. package/dist/service.js +384 -0
  88. package/dist/spec.d.ts +7 -0
  89. package/dist/spec.js +106 -0
  90. package/dist/testkit/index.d.ts +3 -0
  91. package/dist/testkit/index.js +6 -0
  92. package/dist/testkit/integration.d.ts +60 -0
  93. package/dist/testkit/integration.js +284 -0
  94. package/dist/testkit/kinds.d.ts +133 -0
  95. package/dist/testkit/kinds.js +398 -0
  96. package/dist/testkit/unit.d.ts +54 -0
  97. package/dist/testkit/unit.js +224 -0
  98. package/dist/time.d.ts +73 -0
  99. package/dist/time.js +275 -0
  100. package/dist/timedAction.d.ts +20 -0
  101. package/dist/timedAction.js +28 -0
  102. package/dist/version.d.ts +1 -0
  103. package/dist/version.js +2 -0
  104. package/dist/view.d.ts +37 -0
  105. package/dist/view.js +52 -0
  106. package/dist/workflow.d.ts +33 -0
  107. package/dist/workflow.js +61 -0
  108. package/package.json +75 -0
@@ -0,0 +1,254 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Empty, EmptySchema, Error, Metadata, Outcome_Reply, Payload } from "./payload_pb.ts";
3
+ import type { Kind } from "./discovery_pb.ts";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file ankka/protocol/v1/client.proto.
7
+ */
8
+ export declare const file_ankka_protocol_v1_client: GenFile;
9
+ /**
10
+ * @generated from message ankka.protocol.v1.InvokeRequest
11
+ */
12
+ export type InvokeRequest = Message<"ankka.protocol.v1.InvokeRequest"> & {
13
+ /**
14
+ * @generated from field: ankka.protocol.v1.Kind kind = 1;
15
+ */
16
+ kind: Kind;
17
+ /**
18
+ * @generated from field: string component_id = 2;
19
+ */
20
+ componentId: string;
21
+ /**
22
+ * @generated from field: string entity_id = 3;
23
+ */
24
+ entityId: string;
25
+ /**
26
+ * @generated from field: string name = 4;
27
+ */
28
+ name: string;
29
+ /**
30
+ * @generated from field: ankka.protocol.v1.Payload payload = 5;
31
+ */
32
+ payload?: Payload | undefined;
33
+ /**
34
+ * @generated from field: ankka.protocol.v1.Metadata metadata = 6;
35
+ */
36
+ metadata?: Metadata | undefined;
37
+ };
38
+ /**
39
+ * Describes the message ankka.protocol.v1.InvokeRequest.
40
+ * Use `create(InvokeRequestSchema)` to create a new message.
41
+ */
42
+ export declare const InvokeRequestSchema: GenMessage<InvokeRequest>;
43
+ /**
44
+ * @generated from message ankka.protocol.v1.InvokeReply
45
+ */
46
+ export type InvokeReply = Message<"ankka.protocol.v1.InvokeReply"> & {
47
+ /**
48
+ * @generated from oneof ankka.protocol.v1.InvokeReply.result
49
+ */
50
+ result: {
51
+ /**
52
+ * @generated from field: ankka.protocol.v1.Outcome.Reply reply = 1;
53
+ */
54
+ value: Outcome_Reply;
55
+ case: "reply";
56
+ } | {
57
+ /**
58
+ * @generated from field: ankka.protocol.v1.Error error = 2;
59
+ */
60
+ value: Error;
61
+ case: "error";
62
+ } | {
63
+ case: undefined;
64
+ value?: undefined;
65
+ };
66
+ };
67
+ /**
68
+ * Describes the message ankka.protocol.v1.InvokeReply.
69
+ * Use `create(InvokeReplySchema)` to create a new message.
70
+ */
71
+ export declare const InvokeReplySchema: GenMessage<InvokeReply>;
72
+ /**
73
+ * @generated from message ankka.protocol.v1.StreamToken
74
+ */
75
+ export type StreamToken = Message<"ankka.protocol.v1.StreamToken"> & {
76
+ /**
77
+ * @generated from oneof ankka.protocol.v1.StreamToken.token
78
+ */
79
+ token: {
80
+ /**
81
+ * @generated from field: string text = 1;
82
+ */
83
+ value: string;
84
+ case: "text";
85
+ } | {
86
+ /**
87
+ * @generated from field: ankka.protocol.v1.Empty completed = 2;
88
+ */
89
+ value: Empty;
90
+ case: "completed";
91
+ } | {
92
+ /**
93
+ * @generated from field: ankka.protocol.v1.Error failed = 3;
94
+ */
95
+ value: Error;
96
+ case: "failed";
97
+ } | {
98
+ case: undefined;
99
+ value?: undefined;
100
+ };
101
+ };
102
+ /**
103
+ * Describes the message ankka.protocol.v1.StreamToken.
104
+ * Use `create(StreamTokenSchema)` to create a new message.
105
+ */
106
+ export declare const StreamTokenSchema: GenMessage<StreamToken>;
107
+ /**
108
+ * @generated from message ankka.protocol.v1.QueryRequest
109
+ */
110
+ export type QueryRequest = Message<"ankka.protocol.v1.QueryRequest"> & {
111
+ /**
112
+ * @generated from field: string view_id = 1;
113
+ */
114
+ viewId: string;
115
+ /**
116
+ * @generated from field: string name = 2;
117
+ */
118
+ name: string;
119
+ /**
120
+ * @generated from field: ankka.protocol.v1.Payload payload = 3;
121
+ */
122
+ payload?: Payload | undefined;
123
+ };
124
+ /**
125
+ * Describes the message ankka.protocol.v1.QueryRequest.
126
+ * Use `create(QueryRequestSchema)` to create a new message.
127
+ */
128
+ export declare const QueryRequestSchema: GenMessage<QueryRequest>;
129
+ /**
130
+ * @generated from message ankka.protocol.v1.QueryReply
131
+ */
132
+ export type QueryReply = Message<"ankka.protocol.v1.QueryReply"> & {
133
+ /**
134
+ * @generated from oneof ankka.protocol.v1.QueryReply.result
135
+ */
136
+ result: {
137
+ /**
138
+ * @generated from field: ankka.protocol.v1.Payload rows = 1;
139
+ */
140
+ value: Payload;
141
+ case: "rows";
142
+ } | {
143
+ /**
144
+ * @generated from field: ankka.protocol.v1.Error error = 2;
145
+ */
146
+ value: Error;
147
+ case: "error";
148
+ } | {
149
+ case: undefined;
150
+ value?: undefined;
151
+ };
152
+ };
153
+ /**
154
+ * Describes the message ankka.protocol.v1.QueryReply.
155
+ * Use `create(QueryReplySchema)` to create a new message.
156
+ */
157
+ export declare const QueryReplySchema: GenMessage<QueryReply>;
158
+ /**
159
+ * @generated from message ankka.protocol.v1.ScheduleRequest
160
+ */
161
+ export type ScheduleRequest = Message<"ankka.protocol.v1.ScheduleRequest"> & {
162
+ /**
163
+ * @generated from field: string timer_id = 1;
164
+ */
165
+ timerId: string;
166
+ /**
167
+ * @generated from field: int64 delay_millis = 2;
168
+ */
169
+ delayMillis: bigint;
170
+ /**
171
+ * @generated from field: ankka.protocol.v1.Kind kind = 3;
172
+ */
173
+ kind: Kind;
174
+ /**
175
+ * @generated from field: string component_id = 4;
176
+ */
177
+ componentId: string;
178
+ /**
179
+ * @generated from field: optional string entity_id = 5;
180
+ */
181
+ entityId?: string | undefined;
182
+ /**
183
+ * @generated from field: string name = 6;
184
+ */
185
+ name: string;
186
+ /**
187
+ * @generated from field: ankka.protocol.v1.Payload payload = 7;
188
+ */
189
+ payload?: Payload | undefined;
190
+ };
191
+ /**
192
+ * Describes the message ankka.protocol.v1.ScheduleRequest.
193
+ * Use `create(ScheduleRequestSchema)` to create a new message.
194
+ */
195
+ export declare const ScheduleRequestSchema: GenMessage<ScheduleRequest>;
196
+ /**
197
+ * @generated from message ankka.protocol.v1.CancelRequest
198
+ */
199
+ export type CancelRequest = Message<"ankka.protocol.v1.CancelRequest"> & {
200
+ /**
201
+ * @generated from field: string timer_id = 1;
202
+ */
203
+ timerId: string;
204
+ };
205
+ /**
206
+ * Describes the message ankka.protocol.v1.CancelRequest.
207
+ * Use `create(CancelRequestSchema)` to create a new message.
208
+ */
209
+ export declare const CancelRequestSchema: GenMessage<CancelRequest>;
210
+ /**
211
+ * @generated from service ankka.protocol.v1.Client
212
+ */
213
+ export declare const Client: GenService<{
214
+ /**
215
+ * @generated from rpc ankka.protocol.v1.Client.Invoke
216
+ */
217
+ invoke: {
218
+ methodKind: "unary";
219
+ input: typeof InvokeRequestSchema;
220
+ output: typeof InvokeReplySchema;
221
+ };
222
+ /**
223
+ * @generated from rpc ankka.protocol.v1.Client.InvokeStream
224
+ */
225
+ invokeStream: {
226
+ methodKind: "server_streaming";
227
+ input: typeof InvokeRequestSchema;
228
+ output: typeof StreamTokenSchema;
229
+ };
230
+ /**
231
+ * @generated from rpc ankka.protocol.v1.Client.Query
232
+ */
233
+ query: {
234
+ methodKind: "unary";
235
+ input: typeof QueryRequestSchema;
236
+ output: typeof QueryReplySchema;
237
+ };
238
+ /**
239
+ * @generated from rpc ankka.protocol.v1.Client.Schedule
240
+ */
241
+ schedule: {
242
+ methodKind: "unary";
243
+ input: typeof ScheduleRequestSchema;
244
+ output: typeof EmptySchema;
245
+ };
246
+ /**
247
+ * @generated from rpc ankka.protocol.v1.Client.Cancel
248
+ */
249
+ cancel: {
250
+ methodKind: "unary";
251
+ input: typeof CancelRequestSchema;
252
+ output: typeof EmptySchema;
253
+ };
254
+ }>;
@@ -0,0 +1,47 @@
1
+ // The callback service, served by the sidecar on loopback: what a process calls back for.
2
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
3
+ import { file_ankka_protocol_v1_payload } from "./payload_pb.js";
4
+ import { file_ankka_protocol_v1_discovery } from "./discovery_pb.js";
5
+ /**
6
+ * Describes the file ankka/protocol/v1/client.proto.
7
+ */
8
+ export const file_ankka_protocol_v1_client = /*@__PURE__*/ fileDesc("Ch5hbmtrYS9wcm90b2NvbC92MS9jbGllbnQucHJvdG8SEWFua2thLnByb3RvY29sLnYxIskBCg1JbnZva2VSZXF1ZXN0EiUKBGtpbmQYASABKA4yFy5hbmtrYS5wcm90b2NvbC52MS5LaW5kEhQKDGNvbXBvbmVudF9pZBgCIAEoCRIRCgllbnRpdHlfaWQYAyABKAkSDAoEbmFtZRgEIAEoCRIrCgdwYXlsb2FkGAUgASgLMhouYW5ra2EucHJvdG9jb2wudjEuUGF5bG9hZBItCghtZXRhZGF0YRgGIAEoCzIbLmFua2thLnByb3RvY29sLnYxLk1ldGFkYXRhInUKC0ludm9rZVJlcGx5EjEKBXJlcGx5GAEgASgLMiAuYW5ra2EucHJvdG9jb2wudjEuT3V0Y29tZS5SZXBseUgAEikKBWVycm9yGAIgASgLMhguYW5ra2EucHJvdG9jb2wudjEuRXJyb3JIAEIICgZyZXN1bHQigQEKC1N0cmVhbVRva2VuEg4KBHRleHQYASABKAlIABItCgljb21wbGV0ZWQYAiABKAsyGC5hbmtrYS5wcm90b2NvbC52MS5FbXB0eUgAEioKBmZhaWxlZBgDIAEoCzIYLmFua2thLnByb3RvY29sLnYxLkVycm9ySABCBwoFdG9rZW4iWgoMUXVlcnlSZXF1ZXN0Eg8KB3ZpZXdfaWQYASABKAkSDAoEbmFtZRgCIAEoCRIrCgdwYXlsb2FkGAMgASgLMhouYW5ra2EucHJvdG9jb2wudjEuUGF5bG9hZCJtCgpRdWVyeVJlcGx5EioKBHJvd3MYASABKAsyGi5hbmtrYS5wcm90b2NvbC52MS5QYXlsb2FkSAASKQoFZXJyb3IYAiABKAsyGC5hbmtrYS5wcm90b2NvbC52MS5FcnJvckgAQggKBnJlc3VsdCLXAQoPU2NoZWR1bGVSZXF1ZXN0EhAKCHRpbWVyX2lkGAEgASgJEhQKDGRlbGF5X21pbGxpcxgCIAEoAxIlCgRraW5kGAMgASgOMhcuYW5ra2EucHJvdG9jb2wudjEuS2luZBIUCgxjb21wb25lbnRfaWQYBCABKAkSFgoJZW50aXR5X2lkGAUgASgJSACIAQESDAoEbmFtZRgGIAEoCRIrCgdwYXlsb2FkGAcgASgLMhouYW5ra2EucHJvdG9jb2wudjEuUGF5bG9hZEIMCgpfZW50aXR5X2lkIiEKDUNhbmNlbFJlcXVlc3QSEAoIdGltZXJfaWQYASABKAkygQMKBkNsaWVudBJKCgZJbnZva2USIC5hbmtrYS5wcm90b2NvbC52MS5JbnZva2VSZXF1ZXN0Gh4uYW5ra2EucHJvdG9jb2wudjEuSW52b2tlUmVwbHkSUgoMSW52b2tlU3RyZWFtEiAuYW5ra2EucHJvdG9jb2wudjEuSW52b2tlUmVxdWVzdBoeLmFua2thLnByb3RvY29sLnYxLlN0cmVhbVRva2VuMAESRwoFUXVlcnkSHy5hbmtrYS5wcm90b2NvbC52MS5RdWVyeVJlcXVlc3QaHS5hbmtrYS5wcm90b2NvbC52MS5RdWVyeVJlcGx5EkgKCFNjaGVkdWxlEiIuYW5ra2EucHJvdG9jb2wudjEuU2NoZWR1bGVSZXF1ZXN0GhguYW5ra2EucHJvdG9jb2wudjEuRW1wdHkSRAoGQ2FuY2VsEiAuYW5ra2EucHJvdG9jb2wudjEuQ2FuY2VsUmVxdWVzdBoYLmFua2thLnByb3RvY29sLnYxLkVtcHR5YgZwcm90bzM", [file_ankka_protocol_v1_payload, file_ankka_protocol_v1_discovery]);
9
+ /**
10
+ * Describes the message ankka.protocol.v1.InvokeRequest.
11
+ * Use `create(InvokeRequestSchema)` to create a new message.
12
+ */
13
+ export const InvokeRequestSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_client, 0);
14
+ /**
15
+ * Describes the message ankka.protocol.v1.InvokeReply.
16
+ * Use `create(InvokeReplySchema)` to create a new message.
17
+ */
18
+ export const InvokeReplySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_client, 1);
19
+ /**
20
+ * Describes the message ankka.protocol.v1.StreamToken.
21
+ * Use `create(StreamTokenSchema)` to create a new message.
22
+ */
23
+ export const StreamTokenSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_client, 2);
24
+ /**
25
+ * Describes the message ankka.protocol.v1.QueryRequest.
26
+ * Use `create(QueryRequestSchema)` to create a new message.
27
+ */
28
+ export const QueryRequestSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_client, 3);
29
+ /**
30
+ * Describes the message ankka.protocol.v1.QueryReply.
31
+ * Use `create(QueryReplySchema)` to create a new message.
32
+ */
33
+ export const QueryReplySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_client, 4);
34
+ /**
35
+ * Describes the message ankka.protocol.v1.ScheduleRequest.
36
+ * Use `create(ScheduleRequestSchema)` to create a new message.
37
+ */
38
+ export const ScheduleRequestSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_client, 5);
39
+ /**
40
+ * Describes the message ankka.protocol.v1.CancelRequest.
41
+ * Use `create(CancelRequestSchema)` to create a new message.
42
+ */
43
+ export const CancelRequestSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_client, 6);
44
+ /**
45
+ * @generated from service ankka.protocol.v1.Client
46
+ */
47
+ export const Client = /*@__PURE__*/ serviceDesc(file_ankka_protocol_v1_client, 0);
@@ -0,0 +1,105 @@
1
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Empty, Metadata, Payload } from "./payload_pb.ts";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file ankka/protocol/v1/consumer.proto.
6
+ */
7
+ export declare const file_ankka_protocol_v1_consumer: GenFile;
8
+ /**
9
+ * @generated from message ankka.protocol.v1.ConsumerRequest
10
+ */
11
+ export type ConsumerRequest = Message<"ankka.protocol.v1.ConsumerRequest"> & {
12
+ /**
13
+ * @generated from field: string component_id = 1;
14
+ */
15
+ componentId: string;
16
+ /**
17
+ * absent when deleted
18
+ *
19
+ * @generated from field: ankka.protocol.v1.Payload message = 2;
20
+ */
21
+ message?: Payload | undefined;
22
+ /**
23
+ * ce-subject: the source's id; ankka.sequence
24
+ *
25
+ * @generated from field: ankka.protocol.v1.Metadata metadata = 3;
26
+ */
27
+ metadata?: Metadata | undefined;
28
+ /**
29
+ * the source was deleted
30
+ *
31
+ * @generated from field: bool deleted = 4;
32
+ */
33
+ deleted: boolean;
34
+ };
35
+ /**
36
+ * Describes the message ankka.protocol.v1.ConsumerRequest.
37
+ * Use `create(ConsumerRequestSchema)` to create a new message.
38
+ */
39
+ export declare const ConsumerRequestSchema: GenMessage<ConsumerRequest>;
40
+ /**
41
+ * @generated from message ankka.protocol.v1.ConsumerEffect
42
+ */
43
+ export type ConsumerEffect = Message<"ankka.protocol.v1.ConsumerEffect"> & {
44
+ /**
45
+ * @generated from oneof ankka.protocol.v1.ConsumerEffect.effect
46
+ */
47
+ effect: {
48
+ /**
49
+ * @generated from field: ankka.protocol.v1.ConsumerEffect.Produce produce = 1;
50
+ */
51
+ value: ConsumerEffect_Produce;
52
+ case: "produce";
53
+ } | {
54
+ /**
55
+ * @generated from field: ankka.protocol.v1.Empty done = 2;
56
+ */
57
+ value: Empty;
58
+ case: "done";
59
+ } | {
60
+ /**
61
+ * @generated from field: ankka.protocol.v1.Empty ignore = 3;
62
+ */
63
+ value: Empty;
64
+ case: "ignore";
65
+ } | {
66
+ case: undefined;
67
+ value?: undefined;
68
+ };
69
+ };
70
+ /**
71
+ * Describes the message ankka.protocol.v1.ConsumerEffect.
72
+ * Use `create(ConsumerEffectSchema)` to create a new message.
73
+ */
74
+ export declare const ConsumerEffectSchema: GenMessage<ConsumerEffect>;
75
+ /**
76
+ * @generated from message ankka.protocol.v1.ConsumerEffect.Produce
77
+ */
78
+ export type ConsumerEffect_Produce = Message<"ankka.protocol.v1.ConsumerEffect.Produce"> & {
79
+ /**
80
+ * @generated from field: ankka.protocol.v1.Payload payload = 1;
81
+ */
82
+ payload?: Payload | undefined;
83
+ /**
84
+ * @generated from field: ankka.protocol.v1.Metadata metadata = 2;
85
+ */
86
+ metadata?: Metadata | undefined;
87
+ };
88
+ /**
89
+ * Describes the message ankka.protocol.v1.ConsumerEffect.Produce.
90
+ * Use `create(ConsumerEffect_ProduceSchema)` to create a new message.
91
+ */
92
+ export declare const ConsumerEffect_ProduceSchema: GenMessage<ConsumerEffect_Produce>;
93
+ /**
94
+ * @generated from service ankka.protocol.v1.Consumer
95
+ */
96
+ export declare const Consumer: GenService<{
97
+ /**
98
+ * @generated from rpc ankka.protocol.v1.Consumer.Handle
99
+ */
100
+ handle: {
101
+ methodKind: "unary";
102
+ input: typeof ConsumerRequestSchema;
103
+ output: typeof ConsumerEffectSchema;
104
+ };
105
+ }>;
@@ -0,0 +1,28 @@
1
+ // @generated by protoc-gen-es v2.15.0 with parameter "target=ts,import_extension=ts,erasable_syntax=true"
2
+ // @generated from file ankka/protocol/v1/consumer.proto (package ankka.protocol.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_ankka_protocol_v1_payload } from "./payload_pb.js";
6
+ /**
7
+ * Describes the file ankka/protocol/v1/consumer.proto.
8
+ */
9
+ export const file_ankka_protocol_v1_consumer = /*@__PURE__*/ fileDesc("CiBhbmtrYS9wcm90b2NvbC92MS9jb25zdW1lci5wcm90bxIRYW5ra2EucHJvdG9jb2wudjEilAEKD0NvbnN1bWVyUmVxdWVzdBIUCgxjb21wb25lbnRfaWQYASABKAkSKwoHbWVzc2FnZRgCIAEoCzIaLmFua2thLnByb3RvY29sLnYxLlBheWxvYWQSLQoIbWV0YWRhdGEYAyABKAsyGy5hbmtrYS5wcm90b2NvbC52MS5NZXRhZGF0YRIPCgdkZWxldGVkGAQgASgIIpUCCg5Db25zdW1lckVmZmVjdBI8Cgdwcm9kdWNlGAEgASgLMikuYW5ra2EucHJvdG9jb2wudjEuQ29uc3VtZXJFZmZlY3QuUHJvZHVjZUgAEigKBGRvbmUYAiABKAsyGC5hbmtrYS5wcm90b2NvbC52MS5FbXB0eUgAEioKBmlnbm9yZRgDIAEoCzIYLmFua2thLnByb3RvY29sLnYxLkVtcHR5SAAaZQoHUHJvZHVjZRIrCgdwYXlsb2FkGAEgASgLMhouYW5ra2EucHJvdG9jb2wudjEuUGF5bG9hZBItCghtZXRhZGF0YRgCIAEoCzIbLmFua2thLnByb3RvY29sLnYxLk1ldGFkYXRhQggKBmVmZmVjdDJbCghDb25zdW1lchJPCgZIYW5kbGUSIi5hbmtrYS5wcm90b2NvbC52MS5Db25zdW1lclJlcXVlc3QaIS5hbmtrYS5wcm90b2NvbC52MS5Db25zdW1lckVmZmVjdGIGcHJvdG8z", [file_ankka_protocol_v1_payload]);
10
+ /**
11
+ * Describes the message ankka.protocol.v1.ConsumerRequest.
12
+ * Use `create(ConsumerRequestSchema)` to create a new message.
13
+ */
14
+ export const ConsumerRequestSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_consumer, 0);
15
+ /**
16
+ * Describes the message ankka.protocol.v1.ConsumerEffect.
17
+ * Use `create(ConsumerEffectSchema)` to create a new message.
18
+ */
19
+ export const ConsumerEffectSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_consumer, 1);
20
+ /**
21
+ * Describes the message ankka.protocol.v1.ConsumerEffect.Produce.
22
+ * Use `create(ConsumerEffect_ProduceSchema)` to create a new message.
23
+ */
24
+ export const ConsumerEffect_ProduceSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_consumer, 1, 0);
25
+ /**
26
+ * @generated from service ankka.protocol.v1.Consumer
27
+ */
28
+ export const Consumer = /*@__PURE__*/ serviceDesc(file_ankka_protocol_v1_consumer, 0);