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,175 @@
|
|
|
1
|
+
// Discovery: the first conversation. The developer's process describes its components and
|
|
2
|
+
// endpoints; the sidecar validates them and hosts exactly what it was told about.
|
|
3
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
4
|
+
import { file_ankka_protocol_v1_payload } from "./payload_pb.js";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file ankka/protocol/v1/discovery.proto.
|
|
7
|
+
*/
|
|
8
|
+
export const file_ankka_protocol_v1_discovery = /*@__PURE__*/ fileDesc("CiFhbmtrYS9wcm90b2NvbC92MS9kaXNjb3ZlcnkucHJvdG8SEWFua2thLnByb3RvY29sLnYxIkAKC1NpZGVjYXJJbmZvEhgKEHByb3RvY29sX3ZlcnNpb24YASABKAkSFwoPcnVudGltZV92ZXJzaW9uGAIgASgJIqsBCgRTcGVjEhgKEHByb3RvY29sX3ZlcnNpb24YASABKAkSJwoDc2RrGAIgASgLMhouYW5ra2EucHJvdG9jb2wudjEuU2RrSW5mbxIwC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AEEhAKDFRJTUVEX0FDVElPThAFEgkKBUFHRU5UEAYylQEKCURpc2NvdmVyeRJDCghEaXNjb3ZlchIeLmFua2thLnByb3RvY29sLnYxLlNpZGVjYXJJbmZvGhcuYW5ra2EucHJvdG9jb2wudjEuU3BlYxJDCgtSZXBvcnRFcnJvchIaLmFua2thLnByb3RvY29sLnYxLlByb2JsZW0aGC5hbmtrYS5wcm90b2NvbC52MS5FbXB0eWIGcHJvdG8z", [file_ankka_protocol_v1_payload]);
|
|
9
|
+
/**
|
|
10
|
+
* Describes the message ankka.protocol.v1.SidecarInfo.
|
|
11
|
+
* Use `create(SidecarInfoSchema)` to create a new message.
|
|
12
|
+
*/
|
|
13
|
+
export const SidecarInfoSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 0);
|
|
14
|
+
/**
|
|
15
|
+
* Describes the message ankka.protocol.v1.Spec.
|
|
16
|
+
* Use `create(SpecSchema)` to create a new message.
|
|
17
|
+
*/
|
|
18
|
+
export const SpecSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 1);
|
|
19
|
+
/**
|
|
20
|
+
* Describes the message ankka.protocol.v1.SdkInfo.
|
|
21
|
+
* Use `create(SdkInfoSchema)` to create a new message.
|
|
22
|
+
*/
|
|
23
|
+
export const SdkInfoSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 2);
|
|
24
|
+
/**
|
|
25
|
+
* Describes the message ankka.protocol.v1.Component.
|
|
26
|
+
* Use `create(ComponentSchema)` to create a new message.
|
|
27
|
+
*/
|
|
28
|
+
export const ComponentSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 3);
|
|
29
|
+
/**
|
|
30
|
+
* Describes the message ankka.protocol.v1.Handler.
|
|
31
|
+
* Use `create(HandlerSchema)` to create a new message.
|
|
32
|
+
*/
|
|
33
|
+
export const HandlerSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 4);
|
|
34
|
+
/**
|
|
35
|
+
* Describes the message ankka.protocol.v1.EventSourcedDetail.
|
|
36
|
+
* Use `create(EventSourcedDetailSchema)` to create a new message.
|
|
37
|
+
*/
|
|
38
|
+
export const EventSourcedDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 5);
|
|
39
|
+
/**
|
|
40
|
+
* Describes the message ankka.protocol.v1.KeyValueDetail.
|
|
41
|
+
* Use `create(KeyValueDetailSchema)` to create a new message.
|
|
42
|
+
*/
|
|
43
|
+
export const KeyValueDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 6);
|
|
44
|
+
/**
|
|
45
|
+
* Describes the message ankka.protocol.v1.WorkflowDetail.
|
|
46
|
+
* Use `create(WorkflowDetailSchema)` to create a new message.
|
|
47
|
+
*/
|
|
48
|
+
export const WorkflowDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 7);
|
|
49
|
+
/**
|
|
50
|
+
* Describes the message ankka.protocol.v1.WorkflowDetail.Settings.
|
|
51
|
+
* Use `create(WorkflowDetail_SettingsSchema)` to create a new message.
|
|
52
|
+
*/
|
|
53
|
+
export const WorkflowDetail_SettingsSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 7, 0);
|
|
54
|
+
/**
|
|
55
|
+
* Describes the message ankka.protocol.v1.WorkflowDetail.StepSettings.
|
|
56
|
+
* Use `create(WorkflowDetail_StepSettingsSchema)` to create a new message.
|
|
57
|
+
*/
|
|
58
|
+
export const WorkflowDetail_StepSettingsSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 7, 1);
|
|
59
|
+
/**
|
|
60
|
+
* Describes the message ankka.protocol.v1.WorkflowDetail.Recovery.
|
|
61
|
+
* Use `create(WorkflowDetail_RecoverySchema)` to create a new message.
|
|
62
|
+
*/
|
|
63
|
+
export const WorkflowDetail_RecoverySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 7, 2);
|
|
64
|
+
/**
|
|
65
|
+
* Describes the message ankka.protocol.v1.Source.
|
|
66
|
+
* Use `create(SourceSchema)` to create a new message.
|
|
67
|
+
*/
|
|
68
|
+
export const SourceSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 8);
|
|
69
|
+
/**
|
|
70
|
+
* Describes the message ankka.protocol.v1.Source.ComponentRef.
|
|
71
|
+
* Use `create(Source_ComponentRefSchema)` to create a new message.
|
|
72
|
+
*/
|
|
73
|
+
export const Source_ComponentRefSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 8, 0);
|
|
74
|
+
/**
|
|
75
|
+
* Describes the message ankka.protocol.v1.ViewDetail.
|
|
76
|
+
* Use `create(ViewDetailSchema)` to create a new message.
|
|
77
|
+
*/
|
|
78
|
+
export const ViewDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 9);
|
|
79
|
+
/**
|
|
80
|
+
* Describes the message ankka.protocol.v1.ConsumerDetail.
|
|
81
|
+
* Use `create(ConsumerDetailSchema)` to create a new message.
|
|
82
|
+
*/
|
|
83
|
+
export const ConsumerDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 10);
|
|
84
|
+
/**
|
|
85
|
+
* Describes the message ankka.protocol.v1.TimedActionDetail.
|
|
86
|
+
* Use `create(TimedActionDetailSchema)` to create a new message.
|
|
87
|
+
*/
|
|
88
|
+
export const TimedActionDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 11);
|
|
89
|
+
/**
|
|
90
|
+
* Describes the message ankka.protocol.v1.AgentDetail.
|
|
91
|
+
* Use `create(AgentDetailSchema)` to create a new message.
|
|
92
|
+
*/
|
|
93
|
+
export const AgentDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 12);
|
|
94
|
+
/**
|
|
95
|
+
* Describes the message ankka.protocol.v1.Tool.
|
|
96
|
+
* Use `create(ToolSchema)` to create a new message.
|
|
97
|
+
*/
|
|
98
|
+
export const ToolSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 13);
|
|
99
|
+
/**
|
|
100
|
+
* Describes the message ankka.protocol.v1.Endpoint.
|
|
101
|
+
* Use `create(EndpointSchema)` to create a new message.
|
|
102
|
+
*/
|
|
103
|
+
export const EndpointSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 14);
|
|
104
|
+
/**
|
|
105
|
+
* @generated from enum ankka.protocol.v1.Endpoint.Acl
|
|
106
|
+
*/
|
|
107
|
+
export const Endpoint_Acl = {
|
|
108
|
+
/**
|
|
109
|
+
* @generated from enum value: ALLOW_ALL = 0;
|
|
110
|
+
*/
|
|
111
|
+
ALLOW_ALL: 0,
|
|
112
|
+
/**
|
|
113
|
+
* @generated from enum value: DENY_ALL = 1;
|
|
114
|
+
*/
|
|
115
|
+
DENY_ALL: 1,
|
|
116
|
+
/**
|
|
117
|
+
* @generated from enum value: AUTHENTICATED = 2;
|
|
118
|
+
*/
|
|
119
|
+
AUTHENTICATED: 2,
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Describes the enum ankka.protocol.v1.Endpoint.Acl.
|
|
123
|
+
*/
|
|
124
|
+
export const Endpoint_AclSchema = /*@__PURE__*/ enumDesc(file_ankka_protocol_v1_discovery, 14, 0);
|
|
125
|
+
/**
|
|
126
|
+
* Describes the message ankka.protocol.v1.Route.
|
|
127
|
+
* Use `create(RouteSchema)` to create a new message.
|
|
128
|
+
*/
|
|
129
|
+
export const RouteSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 15);
|
|
130
|
+
/**
|
|
131
|
+
* Describes the message ankka.protocol.v1.Problem.
|
|
132
|
+
* Use `create(ProblemSchema)` to create a new message.
|
|
133
|
+
*/
|
|
134
|
+
export const ProblemSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 16);
|
|
135
|
+
/**
|
|
136
|
+
* @generated from enum ankka.protocol.v1.Kind
|
|
137
|
+
*/
|
|
138
|
+
export const Kind = {
|
|
139
|
+
/**
|
|
140
|
+
* @generated from enum value: EVENT_SOURCED_ENTITY = 0;
|
|
141
|
+
*/
|
|
142
|
+
EVENT_SOURCED_ENTITY: 0,
|
|
143
|
+
/**
|
|
144
|
+
* @generated from enum value: KEY_VALUE_ENTITY = 1;
|
|
145
|
+
*/
|
|
146
|
+
KEY_VALUE_ENTITY: 1,
|
|
147
|
+
/**
|
|
148
|
+
* @generated from enum value: WORKFLOW = 2;
|
|
149
|
+
*/
|
|
150
|
+
WORKFLOW: 2,
|
|
151
|
+
/**
|
|
152
|
+
* @generated from enum value: VIEW = 3;
|
|
153
|
+
*/
|
|
154
|
+
VIEW: 3,
|
|
155
|
+
/**
|
|
156
|
+
* @generated from enum value: CONSUMER = 4;
|
|
157
|
+
*/
|
|
158
|
+
CONSUMER: 4,
|
|
159
|
+
/**
|
|
160
|
+
* @generated from enum value: TIMED_ACTION = 5;
|
|
161
|
+
*/
|
|
162
|
+
TIMED_ACTION: 5,
|
|
163
|
+
/**
|
|
164
|
+
* @generated from enum value: AGENT = 6;
|
|
165
|
+
*/
|
|
166
|
+
AGENT: 6,
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Describes the enum ankka.protocol.v1.Kind.
|
|
170
|
+
*/
|
|
171
|
+
export const KindSchema = /*@__PURE__*/ enumDesc(file_ankka_protocol_v1_discovery, 0);
|
|
172
|
+
/**
|
|
173
|
+
* @generated from service ankka.protocol.v1.Discovery
|
|
174
|
+
*/
|
|
175
|
+
export const Discovery = /*@__PURE__*/ serviceDesc(file_ankka_protocol_v1_discovery, 0);
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Empty, Error, Failure, Metadata } from "./payload_pb.ts";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file ankka/protocol/v1/endpoint.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_ankka_protocol_v1_endpoint: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* @generated from message ankka.protocol.v1.HttpRequest
|
|
10
|
+
*/
|
|
11
|
+
export type HttpRequest = Message<"ankka.protocol.v1.HttpRequest"> & {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from field: string endpoint_id = 1;
|
|
14
|
+
*/
|
|
15
|
+
endpointId: string;
|
|
16
|
+
/**
|
|
17
|
+
* from discovery
|
|
18
|
+
*
|
|
19
|
+
* @generated from field: string route_id = 2;
|
|
20
|
+
*/
|
|
21
|
+
routeId: string;
|
|
22
|
+
/**
|
|
23
|
+
* in template order
|
|
24
|
+
*
|
|
25
|
+
* @generated from field: repeated string path_args = 3;
|
|
26
|
+
*/
|
|
27
|
+
pathArgs: string[];
|
|
28
|
+
/**
|
|
29
|
+
* repeatable, in request order
|
|
30
|
+
*
|
|
31
|
+
* @generated from field: repeated ankka.protocol.v1.HttpRequest.Pair query = 4;
|
|
32
|
+
*/
|
|
33
|
+
query: HttpRequest_Pair[];
|
|
34
|
+
/**
|
|
35
|
+
* @generated from field: repeated ankka.protocol.v1.HttpRequest.Pair headers = 5;
|
|
36
|
+
*/
|
|
37
|
+
headers: HttpRequest_Pair[];
|
|
38
|
+
/**
|
|
39
|
+
* @generated from field: string content_type = 6;
|
|
40
|
+
*/
|
|
41
|
+
contentType: string;
|
|
42
|
+
/**
|
|
43
|
+
* empty when the route has no body
|
|
44
|
+
*
|
|
45
|
+
* @generated from field: bytes body = 7;
|
|
46
|
+
*/
|
|
47
|
+
body: Uint8Array;
|
|
48
|
+
/**
|
|
49
|
+
* when the ACL is AUTHENTICATED
|
|
50
|
+
*
|
|
51
|
+
* @generated from field: optional ankka.protocol.v1.Principal principal = 8;
|
|
52
|
+
*/
|
|
53
|
+
principal?: Principal | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* trace and span ids for this request's span
|
|
56
|
+
*
|
|
57
|
+
* @generated from field: ankka.protocol.v1.Metadata metadata = 9;
|
|
58
|
+
*/
|
|
59
|
+
metadata?: Metadata | undefined;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Describes the message ankka.protocol.v1.HttpRequest.
|
|
63
|
+
* Use `create(HttpRequestSchema)` to create a new message.
|
|
64
|
+
*/
|
|
65
|
+
export declare const HttpRequestSchema: GenMessage<HttpRequest>;
|
|
66
|
+
/**
|
|
67
|
+
* @generated from message ankka.protocol.v1.HttpRequest.Pair
|
|
68
|
+
*/
|
|
69
|
+
export type HttpRequest_Pair = Message<"ankka.protocol.v1.HttpRequest.Pair"> & {
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: string name = 1;
|
|
72
|
+
*/
|
|
73
|
+
name: string;
|
|
74
|
+
/**
|
|
75
|
+
* @generated from field: string value = 2;
|
|
76
|
+
*/
|
|
77
|
+
value: string;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Describes the message ankka.protocol.v1.HttpRequest.Pair.
|
|
81
|
+
* Use `create(HttpRequest_PairSchema)` to create a new message.
|
|
82
|
+
*/
|
|
83
|
+
export declare const HttpRequest_PairSchema: GenMessage<HttpRequest_Pair>;
|
|
84
|
+
/**
|
|
85
|
+
* @generated from message ankka.protocol.v1.Principal
|
|
86
|
+
*/
|
|
87
|
+
export type Principal = Message<"ankka.protocol.v1.Principal"> & {
|
|
88
|
+
/**
|
|
89
|
+
* @generated from field: string subject = 1;
|
|
90
|
+
*/
|
|
91
|
+
subject: string;
|
|
92
|
+
/**
|
|
93
|
+
* @generated from field: optional string name = 2;
|
|
94
|
+
*/
|
|
95
|
+
name?: string | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* @generated from field: optional string email = 3;
|
|
98
|
+
*/
|
|
99
|
+
email?: string | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* @generated from field: bool email_verified = 4;
|
|
102
|
+
*/
|
|
103
|
+
emailVerified: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* @generated from field: repeated string roles = 5;
|
|
106
|
+
*/
|
|
107
|
+
roles: string[];
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Describes the message ankka.protocol.v1.Principal.
|
|
111
|
+
* Use `create(PrincipalSchema)` to create a new message.
|
|
112
|
+
*/
|
|
113
|
+
export declare const PrincipalSchema: GenMessage<Principal>;
|
|
114
|
+
/**
|
|
115
|
+
* @generated from message ankka.protocol.v1.HttpReply
|
|
116
|
+
*/
|
|
117
|
+
export type HttpReply = Message<"ankka.protocol.v1.HttpReply"> & {
|
|
118
|
+
/**
|
|
119
|
+
* @generated from oneof ankka.protocol.v1.HttpReply.message
|
|
120
|
+
*/
|
|
121
|
+
message: {
|
|
122
|
+
/**
|
|
123
|
+
* @generated from field: ankka.protocol.v1.HttpResponse response = 1;
|
|
124
|
+
*/
|
|
125
|
+
value: HttpResponse;
|
|
126
|
+
case: "response";
|
|
127
|
+
} | {
|
|
128
|
+
/**
|
|
129
|
+
* @generated from field: ankka.protocol.v1.Failure failure = 2;
|
|
130
|
+
*/
|
|
131
|
+
value: Failure;
|
|
132
|
+
case: "failure";
|
|
133
|
+
} | {
|
|
134
|
+
case: undefined;
|
|
135
|
+
value?: undefined;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Describes the message ankka.protocol.v1.HttpReply.
|
|
140
|
+
* Use `create(HttpReplySchema)` to create a new message.
|
|
141
|
+
*/
|
|
142
|
+
export declare const HttpReplySchema: GenMessage<HttpReply>;
|
|
143
|
+
/**
|
|
144
|
+
* @generated from message ankka.protocol.v1.HttpResponse
|
|
145
|
+
*/
|
|
146
|
+
export type HttpResponse = Message<"ankka.protocol.v1.HttpResponse"> & {
|
|
147
|
+
/**
|
|
148
|
+
* @generated from field: int32 status = 1;
|
|
149
|
+
*/
|
|
150
|
+
status: number;
|
|
151
|
+
/**
|
|
152
|
+
* @generated from field: string content_type = 2;
|
|
153
|
+
*/
|
|
154
|
+
contentType: string;
|
|
155
|
+
/**
|
|
156
|
+
* @generated from field: bytes body = 3;
|
|
157
|
+
*/
|
|
158
|
+
body: Uint8Array;
|
|
159
|
+
/**
|
|
160
|
+
* @generated from field: repeated ankka.protocol.v1.HttpRequest.Pair headers = 4;
|
|
161
|
+
*/
|
|
162
|
+
headers: HttpRequest_Pair[];
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Describes the message ankka.protocol.v1.HttpResponse.
|
|
166
|
+
* Use `create(HttpResponseSchema)` to create a new message.
|
|
167
|
+
*/
|
|
168
|
+
export declare const HttpResponseSchema: GenMessage<HttpResponse>;
|
|
169
|
+
/**
|
|
170
|
+
* @generated from message ankka.protocol.v1.StreamFrame
|
|
171
|
+
*/
|
|
172
|
+
export type StreamFrame = Message<"ankka.protocol.v1.StreamFrame"> & {
|
|
173
|
+
/**
|
|
174
|
+
* @generated from oneof ankka.protocol.v1.StreamFrame.frame
|
|
175
|
+
*/
|
|
176
|
+
frame: {
|
|
177
|
+
/**
|
|
178
|
+
* @generated from field: string text = 1;
|
|
179
|
+
*/
|
|
180
|
+
value: string;
|
|
181
|
+
case: "text";
|
|
182
|
+
} | {
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: ankka.protocol.v1.Empty completed = 2;
|
|
185
|
+
*/
|
|
186
|
+
value: Empty;
|
|
187
|
+
case: "completed";
|
|
188
|
+
} | {
|
|
189
|
+
/**
|
|
190
|
+
* @generated from field: ankka.protocol.v1.Error failed = 3;
|
|
191
|
+
*/
|
|
192
|
+
value: Error;
|
|
193
|
+
case: "failed";
|
|
194
|
+
} | {
|
|
195
|
+
case: undefined;
|
|
196
|
+
value?: undefined;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Describes the message ankka.protocol.v1.StreamFrame.
|
|
201
|
+
* Use `create(StreamFrameSchema)` to create a new message.
|
|
202
|
+
*/
|
|
203
|
+
export declare const StreamFrameSchema: GenMessage<StreamFrame>;
|
|
204
|
+
/**
|
|
205
|
+
* @generated from service ankka.protocol.v1.Http
|
|
206
|
+
*/
|
|
207
|
+
export declare const Http: GenService<{
|
|
208
|
+
/**
|
|
209
|
+
* @generated from rpc ankka.protocol.v1.Http.Handle
|
|
210
|
+
*/
|
|
211
|
+
handle: {
|
|
212
|
+
methodKind: "unary";
|
|
213
|
+
input: typeof HttpRequestSchema;
|
|
214
|
+
output: typeof HttpReplySchema;
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* @generated from rpc ankka.protocol.v1.Http.HandleStream
|
|
218
|
+
*/
|
|
219
|
+
handleStream: {
|
|
220
|
+
methodKind: "server_streaming";
|
|
221
|
+
input: typeof HttpRequestSchema;
|
|
222
|
+
output: typeof StreamFrameSchema;
|
|
223
|
+
};
|
|
224
|
+
}>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// HTTP endpoints the process declared in discovery, served by the sidecar. The service is `Http`
|
|
2
|
+
// because `Endpoint` is the discovery entry that declares one. The sidecar's router
|
|
3
|
+
// matches the route, applies the ACL and opens the span before forwarding; the process only runs
|
|
4
|
+
// the handler.
|
|
5
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { file_ankka_protocol_v1_payload } from "./payload_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file ankka/protocol/v1/endpoint.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_ankka_protocol_v1_endpoint = /*@__PURE__*/ fileDesc("CiBhbmtrYS9wcm90b2NvbC92MS9lbmRwb2ludC5wcm90bxIRYW5ra2EucHJvdG9jb2wudjEi7QIKC0h0dHBSZXF1ZXN0EhMKC2VuZHBvaW50X2lkGAEgASgJEhAKCHJvdXRlX2lkGAIgASgJEhEKCXBhdGhfYXJncxgDIAMoCRIyCgVxdWVyeRgEIAMoCzIjLmFua2thLnByb3RvY29sLnYxLkh0dHBSZXF1ZXN0LlBhaXISNAoHaGVhZGVycxgFIAMoCzIj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W5ra2EucHJvdG9jb2wudjEuSHR0cFJlcXVlc3QaHi5hbmtrYS5wcm90b2NvbC52MS5TdHJlYW1GcmFtZTABYgZwcm90bzM", [file_ankka_protocol_v1_payload]);
|
|
11
|
+
/**
|
|
12
|
+
* Describes the message ankka.protocol.v1.HttpRequest.
|
|
13
|
+
* Use `create(HttpRequestSchema)` to create a new message.
|
|
14
|
+
*/
|
|
15
|
+
export const HttpRequestSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint, 0);
|
|
16
|
+
/**
|
|
17
|
+
* Describes the message ankka.protocol.v1.HttpRequest.Pair.
|
|
18
|
+
* Use `create(HttpRequest_PairSchema)` to create a new message.
|
|
19
|
+
*/
|
|
20
|
+
export const HttpRequest_PairSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint, 0, 0);
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message ankka.protocol.v1.Principal.
|
|
23
|
+
* Use `create(PrincipalSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
export const PrincipalSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint, 1);
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message ankka.protocol.v1.HttpReply.
|
|
28
|
+
* Use `create(HttpReplySchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
export const HttpReplySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint, 2);
|
|
31
|
+
/**
|
|
32
|
+
* Describes the message ankka.protocol.v1.HttpResponse.
|
|
33
|
+
* Use `create(HttpResponseSchema)` to create a new message.
|
|
34
|
+
*/
|
|
35
|
+
export const HttpResponseSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint, 3);
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message ankka.protocol.v1.StreamFrame.
|
|
38
|
+
* Use `create(StreamFrameSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
export const StreamFrameSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint, 4);
|
|
41
|
+
/**
|
|
42
|
+
* @generated from service ankka.protocol.v1.Http
|
|
43
|
+
*/
|
|
44
|
+
export const Http = /*@__PURE__*/ serviceDesc(file_ankka_protocol_v1_endpoint, 0);
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Failure, Metadata, Outcome, Payload, Retention } from "./payload_pb.ts";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file ankka/protocol/v1/event_sourced.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_ankka_protocol_v1_event_sourced: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* @generated from message ankka.protocol.v1.EventSourcedIn
|
|
10
|
+
*/
|
|
11
|
+
export type EventSourcedIn = Message<"ankka.protocol.v1.EventSourcedIn"> & {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from oneof ankka.protocol.v1.EventSourcedIn.message
|
|
14
|
+
*/
|
|
15
|
+
message: {
|
|
16
|
+
/**
|
|
17
|
+
* @generated from field: ankka.protocol.v1.EventSourcedIn.Init init = 1;
|
|
18
|
+
*/
|
|
19
|
+
value: EventSourcedIn_Init;
|
|
20
|
+
case: "init";
|
|
21
|
+
} | {
|
|
22
|
+
/**
|
|
23
|
+
* @generated from field: ankka.protocol.v1.EventSourcedIn.Event event = 2;
|
|
24
|
+
*/
|
|
25
|
+
value: EventSourcedIn_Event;
|
|
26
|
+
case: "event";
|
|
27
|
+
} | {
|
|
28
|
+
/**
|
|
29
|
+
* @generated from field: ankka.protocol.v1.EventSourcedIn.Command command = 3;
|
|
30
|
+
*/
|
|
31
|
+
value: EventSourcedIn_Command;
|
|
32
|
+
case: "command";
|
|
33
|
+
} | {
|
|
34
|
+
case: undefined;
|
|
35
|
+
value?: undefined;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Describes the message ankka.protocol.v1.EventSourcedIn.
|
|
40
|
+
* Use `create(EventSourcedInSchema)` to create a new message.
|
|
41
|
+
*/
|
|
42
|
+
export declare const EventSourcedInSchema: GenMessage<EventSourcedIn>;
|
|
43
|
+
/**
|
|
44
|
+
* @generated from message ankka.protocol.v1.EventSourcedIn.Init
|
|
45
|
+
*/
|
|
46
|
+
export type EventSourcedIn_Init = Message<"ankka.protocol.v1.EventSourcedIn.Init"> & {
|
|
47
|
+
/**
|
|
48
|
+
* @generated from field: string component_id = 1;
|
|
49
|
+
*/
|
|
50
|
+
componentId: string;
|
|
51
|
+
/**
|
|
52
|
+
* @generated from field: string entity_id = 2;
|
|
53
|
+
*/
|
|
54
|
+
entityId: string;
|
|
55
|
+
/**
|
|
56
|
+
* absent: fresh, or deleted, or expired
|
|
57
|
+
*
|
|
58
|
+
* @generated from field: optional ankka.protocol.v1.EventSourcedIn.Snapshot snapshot = 3;
|
|
59
|
+
*/
|
|
60
|
+
snapshot?: EventSourcedIn_Snapshot | undefined;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Describes the message ankka.protocol.v1.EventSourcedIn.Init.
|
|
64
|
+
* Use `create(EventSourcedIn_InitSchema)` to create a new message.
|
|
65
|
+
*/
|
|
66
|
+
export declare const EventSourcedIn_InitSchema: GenMessage<EventSourcedIn_Init>;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from message ankka.protocol.v1.EventSourcedIn.Snapshot
|
|
69
|
+
*/
|
|
70
|
+
export type EventSourcedIn_Snapshot = Message<"ankka.protocol.v1.EventSourcedIn.Snapshot"> & {
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: int64 sequence = 1;
|
|
73
|
+
*/
|
|
74
|
+
sequence: bigint;
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: ankka.protocol.v1.Payload payload = 2;
|
|
77
|
+
*/
|
|
78
|
+
payload?: Payload | undefined;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Describes the message ankka.protocol.v1.EventSourcedIn.Snapshot.
|
|
82
|
+
* Use `create(EventSourcedIn_SnapshotSchema)` to create a new message.
|
|
83
|
+
*/
|
|
84
|
+
export declare const EventSourcedIn_SnapshotSchema: GenMessage<EventSourcedIn_Snapshot>;
|
|
85
|
+
/**
|
|
86
|
+
* @generated from message ankka.protocol.v1.EventSourcedIn.Event
|
|
87
|
+
*/
|
|
88
|
+
export type EventSourcedIn_Event = Message<"ankka.protocol.v1.EventSourcedIn.Event"> & {
|
|
89
|
+
/**
|
|
90
|
+
* @generated from field: int64 sequence = 1;
|
|
91
|
+
*/
|
|
92
|
+
sequence: bigint;
|
|
93
|
+
/**
|
|
94
|
+
* @generated from field: ankka.protocol.v1.Payload payload = 2;
|
|
95
|
+
*/
|
|
96
|
+
payload?: Payload | undefined;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Describes the message ankka.protocol.v1.EventSourcedIn.Event.
|
|
100
|
+
* Use `create(EventSourcedIn_EventSchema)` to create a new message.
|
|
101
|
+
*/
|
|
102
|
+
export declare const EventSourcedIn_EventSchema: GenMessage<EventSourcedIn_Event>;
|
|
103
|
+
/**
|
|
104
|
+
* @generated from message ankka.protocol.v1.EventSourcedIn.Command
|
|
105
|
+
*/
|
|
106
|
+
export type EventSourcedIn_Command = Message<"ankka.protocol.v1.EventSourcedIn.Command"> & {
|
|
107
|
+
/**
|
|
108
|
+
* per stream, from 1, monotonic
|
|
109
|
+
*
|
|
110
|
+
* @generated from field: int64 id = 1;
|
|
111
|
+
*/
|
|
112
|
+
id: bigint;
|
|
113
|
+
/**
|
|
114
|
+
* the handler's wire name
|
|
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
|
+
* @generated from field: ankka.protocol.v1.Metadata metadata = 4;
|
|
125
|
+
*/
|
|
126
|
+
metadata?: Metadata | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* include `snapshot` in the reply
|
|
129
|
+
*
|
|
130
|
+
* @generated from field: bool snapshot_requested = 5;
|
|
131
|
+
*/
|
|
132
|
+
snapshotRequested: boolean;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Describes the message ankka.protocol.v1.EventSourcedIn.Command.
|
|
136
|
+
* Use `create(EventSourcedIn_CommandSchema)` to create a new message.
|
|
137
|
+
*/
|
|
138
|
+
export declare const EventSourcedIn_CommandSchema: GenMessage<EventSourcedIn_Command>;
|
|
139
|
+
/**
|
|
140
|
+
* @generated from message ankka.protocol.v1.EventSourcedOut
|
|
141
|
+
*/
|
|
142
|
+
export type EventSourcedOut = Message<"ankka.protocol.v1.EventSourcedOut"> & {
|
|
143
|
+
/**
|
|
144
|
+
* @generated from oneof ankka.protocol.v1.EventSourcedOut.message
|
|
145
|
+
*/
|
|
146
|
+
message: {
|
|
147
|
+
/**
|
|
148
|
+
* @generated from field: ankka.protocol.v1.EventSourcedOut.Reply reply = 1;
|
|
149
|
+
*/
|
|
150
|
+
value: EventSourcedOut_Reply;
|
|
151
|
+
case: "reply";
|
|
152
|
+
} | {
|
|
153
|
+
/**
|
|
154
|
+
* @generated from field: ankka.protocol.v1.Failure failure = 2;
|
|
155
|
+
*/
|
|
156
|
+
value: Failure;
|
|
157
|
+
case: "failure";
|
|
158
|
+
} | {
|
|
159
|
+
case: undefined;
|
|
160
|
+
value?: undefined;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Describes the message ankka.protocol.v1.EventSourcedOut.
|
|
165
|
+
* Use `create(EventSourcedOutSchema)` to create a new message.
|
|
166
|
+
*/
|
|
167
|
+
export declare const EventSourcedOutSchema: GenMessage<EventSourcedOut>;
|
|
168
|
+
/**
|
|
169
|
+
* @generated from message ankka.protocol.v1.EventSourcedOut.Reply
|
|
170
|
+
*/
|
|
171
|
+
export type EventSourcedOut_Reply = Message<"ankka.protocol.v1.EventSourcedOut.Reply"> & {
|
|
172
|
+
/**
|
|
173
|
+
* @generated from field: int64 command_id = 1;
|
|
174
|
+
*/
|
|
175
|
+
commandId: bigint;
|
|
176
|
+
/**
|
|
177
|
+
* @generated from field: repeated ankka.protocol.v1.Payload events = 2;
|
|
178
|
+
*/
|
|
179
|
+
events: Payload[];
|
|
180
|
+
/**
|
|
181
|
+
* @generated from field: optional ankka.protocol.v1.Retention retention = 3;
|
|
182
|
+
*/
|
|
183
|
+
retention?: Retention | undefined;
|
|
184
|
+
/**
|
|
185
|
+
* @generated from field: ankka.protocol.v1.Outcome outcome = 4;
|
|
186
|
+
*/
|
|
187
|
+
outcome?: Outcome | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* the state after `events`, when requested
|
|
190
|
+
*
|
|
191
|
+
* @generated from field: optional ankka.protocol.v1.Payload snapshot = 5;
|
|
192
|
+
*/
|
|
193
|
+
snapshot?: Payload | undefined;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Describes the message ankka.protocol.v1.EventSourcedOut.Reply.
|
|
197
|
+
* Use `create(EventSourcedOut_ReplySchema)` to create a new message.
|
|
198
|
+
*/
|
|
199
|
+
export declare const EventSourcedOut_ReplySchema: GenMessage<EventSourcedOut_Reply>;
|
|
200
|
+
/**
|
|
201
|
+
* @generated from service ankka.protocol.v1.EventSourced
|
|
202
|
+
*/
|
|
203
|
+
export declare const EventSourced: GenService<{
|
|
204
|
+
/**
|
|
205
|
+
* @generated from rpc ankka.protocol.v1.EventSourced.Handle
|
|
206
|
+
*/
|
|
207
|
+
handle: {
|
|
208
|
+
methodKind: "bidi_streaming";
|
|
209
|
+
input: typeof EventSourcedInSchema;
|
|
210
|
+
output: typeof EventSourcedOutSchema;
|
|
211
|
+
};
|
|
212
|
+
}>;
|