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,47 @@
|
|
|
1
|
+
// One bidirectional stream per loaded event sourced entity instance. The sidecar sends Init, the
|
|
2
|
+
// events after the snapshot, then commands one at a time; the process answers each command.
|
|
3
|
+
import { 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/event_sourced.proto.
|
|
7
|
+
*/
|
|
8
|
+
export const file_ankka_protocol_v1_event_sourced = /*@__PURE__*/ fileDesc("CiVhbmtrYS9wcm90b2NvbC92MS9ldmVudF9zb3VyY2VkLnByb3RvEhFhbmtrYS5wcm90b2NvbC52MSL9BAoORXZlbnRTb3VyY2VkSW4SNgoEaW5pdBgBIAEoCzImLmFua2thLnByb3RvY29sLnYxLkV2ZW50U291cmNlZEluLkluaXRIABI4CgVldmVudBgCIAEoCzInLmFua2thLnByb3RvY29sLnYxLkV2ZW50U291cmNlZEluLkV2ZW50SAASPAoHY29tbWFuZBgDIAEoCzIpLmFua2thLnByb3RvY29sLnYxLkV2ZW50U291cmNlZEluLkNvbW1hbmRIABp/CgRJbml0EhQKDGNvbXBvbmVudF9pZBgBIAEoCRIRCgllbnRpdHlfaWQYAiABKAkSQQoIc25hcHNob3QYAyABKAsyKi5hbmtrYS5wcm90b2NvbC52MS5FdmVudFNvdXJjZWRJbi5TbmFwc2hvdEgAiAEBQgsKCV9zbmFwc2hvdBpJCghTbmFwc2hvdBIQCghzZXF1ZW5jZRgBIAEoAxIrCgdwYXlsb2FkGAIgASgLMhouYW5ra2EucHJvdG9jb2wudjEuUGF5bG9hZBpGCgVFdmVudBIQCghzZXF1ZW5jZRgBIAEoAxIrCgdwYXlsb2FkGAIgASgLMhouYW5ra2EucHJvdG9jb2wudjEuUGF5bG9hZBqbAQoHQ29tbWFuZBIKCgJpZBgBIAEoAxIMCgRuYW1lGAIgASgJEisKB3BheWxvYWQYAyABKAsyGi5hbmtrYS5wcm90b2NvbC52MS5QYXlsb2FkEi0KCG1ldGFkYXRhGAQgASgLMhsuYW5ra2EucHJvdG9jb2wudjEuTWV0YWRhdGESGgoSc25hcHNob3RfcmVxdWVzdGVkGAUgASgIQgkKB21lc3NhZ2UigQMKD0V2ZW50U291cmNlZE91dBI5CgVyZXBseRgBIAEoCzIoLmFua2thLnByb3RvY29sLnYxLkV2ZW50U291cmNlZE91dC5SZXBseUgAEi0KB2ZhaWx1cmUYAiABKAsyGi5hbmtrYS5wcm90b2NvbC52MS5GYWlsdXJlSAAa+AEKBVJlcGx5EhIKCmNvbW1hbmRfaWQYASABKAMSKgoGZXZlbnRzGAIgAygLMhouYW5ra2EucHJvdG9jb2wudjEuUGF5bG9hZBI0CglyZXRlbnRpb24YAyABKAsyHC5hbmtrYS5wcm90b2NvbC52MS5SZXRlbnRpb25IAIgBARIrCgdvdXRjb21lGAQgASgLMhouYW5ra2EucHJvdG9jb2wudjEuT3V0Y29tZRIxCghzbmFwc2hvdBgFIAEoCzIaLmFua2thLnByb3RvY29sLnYxLlBheWxvYWRIAYgBAUIMCgpfcmV0ZW50aW9uQgsKCV9zbmFwc2hvdEIJCgdtZXNzYWdlMmMKDEV2ZW50U291cmNlZBJTCgZIYW5kbGUSIS5hbmtrYS5wcm90b2NvbC52MS5FdmVudFNvdXJjZWRJbhoiLmFua2thLnByb3RvY29sLnYxLkV2ZW50U291cmNlZE91dCgBMAFiBnByb3RvMw", [file_ankka_protocol_v1_payload]);
|
|
9
|
+
/**
|
|
10
|
+
* Describes the message ankka.protocol.v1.EventSourcedIn.
|
|
11
|
+
* Use `create(EventSourcedInSchema)` to create a new message.
|
|
12
|
+
*/
|
|
13
|
+
export const EventSourcedInSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_event_sourced, 0);
|
|
14
|
+
/**
|
|
15
|
+
* Describes the message ankka.protocol.v1.EventSourcedIn.Init.
|
|
16
|
+
* Use `create(EventSourcedIn_InitSchema)` to create a new message.
|
|
17
|
+
*/
|
|
18
|
+
export const EventSourcedIn_InitSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_event_sourced, 0, 0);
|
|
19
|
+
/**
|
|
20
|
+
* Describes the message ankka.protocol.v1.EventSourcedIn.Snapshot.
|
|
21
|
+
* Use `create(EventSourcedIn_SnapshotSchema)` to create a new message.
|
|
22
|
+
*/
|
|
23
|
+
export const EventSourcedIn_SnapshotSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_event_sourced, 0, 1);
|
|
24
|
+
/**
|
|
25
|
+
* Describes the message ankka.protocol.v1.EventSourcedIn.Event.
|
|
26
|
+
* Use `create(EventSourcedIn_EventSchema)` to create a new message.
|
|
27
|
+
*/
|
|
28
|
+
export const EventSourcedIn_EventSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_event_sourced, 0, 2);
|
|
29
|
+
/**
|
|
30
|
+
* Describes the message ankka.protocol.v1.EventSourcedIn.Command.
|
|
31
|
+
* Use `create(EventSourcedIn_CommandSchema)` to create a new message.
|
|
32
|
+
*/
|
|
33
|
+
export const EventSourcedIn_CommandSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_event_sourced, 0, 3);
|
|
34
|
+
/**
|
|
35
|
+
* Describes the message ankka.protocol.v1.EventSourcedOut.
|
|
36
|
+
* Use `create(EventSourcedOutSchema)` to create a new message.
|
|
37
|
+
*/
|
|
38
|
+
export const EventSourcedOutSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_event_sourced, 1);
|
|
39
|
+
/**
|
|
40
|
+
* Describes the message ankka.protocol.v1.EventSourcedOut.Reply.
|
|
41
|
+
* Use `create(EventSourcedOut_ReplySchema)` to create a new message.
|
|
42
|
+
*/
|
|
43
|
+
export const EventSourcedOut_ReplySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_event_sourced, 1, 0);
|
|
44
|
+
/**
|
|
45
|
+
* @generated from service ankka.protocol.v1.EventSourced
|
|
46
|
+
*/
|
|
47
|
+
export const EventSourced = /*@__PURE__*/ serviceDesc(file_ankka_protocol_v1_event_sourced, 0);
|
|
@@ -0,0 +1,154 @@
|
|
|
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/key_value.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_ankka_protocol_v1_key_value: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* @generated from message ankka.protocol.v1.KeyValueIn
|
|
10
|
+
*/
|
|
11
|
+
export type KeyValueIn = Message<"ankka.protocol.v1.KeyValueIn"> & {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from oneof ankka.protocol.v1.KeyValueIn.message
|
|
14
|
+
*/
|
|
15
|
+
message: {
|
|
16
|
+
/**
|
|
17
|
+
* @generated from field: ankka.protocol.v1.KeyValueIn.Init init = 1;
|
|
18
|
+
*/
|
|
19
|
+
value: KeyValueIn_Init;
|
|
20
|
+
case: "init";
|
|
21
|
+
} | {
|
|
22
|
+
/**
|
|
23
|
+
* @generated from field: ankka.protocol.v1.KeyValueIn.Command command = 2;
|
|
24
|
+
*/
|
|
25
|
+
value: KeyValueIn_Command;
|
|
26
|
+
case: "command";
|
|
27
|
+
} | {
|
|
28
|
+
case: undefined;
|
|
29
|
+
value?: undefined;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message ankka.protocol.v1.KeyValueIn.
|
|
34
|
+
* Use `create(KeyValueInSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export declare const KeyValueInSchema: GenMessage<KeyValueIn>;
|
|
37
|
+
/**
|
|
38
|
+
* @generated from message ankka.protocol.v1.KeyValueIn.Init
|
|
39
|
+
*/
|
|
40
|
+
export type KeyValueIn_Init = Message<"ankka.protocol.v1.KeyValueIn.Init"> & {
|
|
41
|
+
/**
|
|
42
|
+
* @generated from field: string component_id = 1;
|
|
43
|
+
*/
|
|
44
|
+
componentId: string;
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: string entity_id = 2;
|
|
47
|
+
*/
|
|
48
|
+
entityId: string;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: optional ankka.protocol.v1.Payload state = 3;
|
|
51
|
+
*/
|
|
52
|
+
state?: Payload | undefined;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Describes the message ankka.protocol.v1.KeyValueIn.Init.
|
|
56
|
+
* Use `create(KeyValueIn_InitSchema)` to create a new message.
|
|
57
|
+
*/
|
|
58
|
+
export declare const KeyValueIn_InitSchema: GenMessage<KeyValueIn_Init>;
|
|
59
|
+
/**
|
|
60
|
+
* @generated from message ankka.protocol.v1.KeyValueIn.Command
|
|
61
|
+
*/
|
|
62
|
+
export type KeyValueIn_Command = Message<"ankka.protocol.v1.KeyValueIn.Command"> & {
|
|
63
|
+
/**
|
|
64
|
+
* @generated from field: int64 id = 1;
|
|
65
|
+
*/
|
|
66
|
+
id: bigint;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: string name = 2;
|
|
69
|
+
*/
|
|
70
|
+
name: string;
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: ankka.protocol.v1.Payload payload = 3;
|
|
73
|
+
*/
|
|
74
|
+
payload?: Payload | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: ankka.protocol.v1.Metadata metadata = 4;
|
|
77
|
+
*/
|
|
78
|
+
metadata?: Metadata | undefined;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Describes the message ankka.protocol.v1.KeyValueIn.Command.
|
|
82
|
+
* Use `create(KeyValueIn_CommandSchema)` to create a new message.
|
|
83
|
+
*/
|
|
84
|
+
export declare const KeyValueIn_CommandSchema: GenMessage<KeyValueIn_Command>;
|
|
85
|
+
/**
|
|
86
|
+
* @generated from message ankka.protocol.v1.KeyValueOut
|
|
87
|
+
*/
|
|
88
|
+
export type KeyValueOut = Message<"ankka.protocol.v1.KeyValueOut"> & {
|
|
89
|
+
/**
|
|
90
|
+
* @generated from oneof ankka.protocol.v1.KeyValueOut.message
|
|
91
|
+
*/
|
|
92
|
+
message: {
|
|
93
|
+
/**
|
|
94
|
+
* @generated from field: ankka.protocol.v1.KeyValueOut.Reply reply = 1;
|
|
95
|
+
*/
|
|
96
|
+
value: KeyValueOut_Reply;
|
|
97
|
+
case: "reply";
|
|
98
|
+
} | {
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: ankka.protocol.v1.Failure failure = 2;
|
|
101
|
+
*/
|
|
102
|
+
value: Failure;
|
|
103
|
+
case: "failure";
|
|
104
|
+
} | {
|
|
105
|
+
case: undefined;
|
|
106
|
+
value?: undefined;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Describes the message ankka.protocol.v1.KeyValueOut.
|
|
111
|
+
* Use `create(KeyValueOutSchema)` to create a new message.
|
|
112
|
+
*/
|
|
113
|
+
export declare const KeyValueOutSchema: GenMessage<KeyValueOut>;
|
|
114
|
+
/**
|
|
115
|
+
* @generated from message ankka.protocol.v1.KeyValueOut.Reply
|
|
116
|
+
*/
|
|
117
|
+
export type KeyValueOut_Reply = Message<"ankka.protocol.v1.KeyValueOut.Reply"> & {
|
|
118
|
+
/**
|
|
119
|
+
* @generated from field: int64 command_id = 1;
|
|
120
|
+
*/
|
|
121
|
+
commandId: bigint;
|
|
122
|
+
/**
|
|
123
|
+
* absent: unchanged
|
|
124
|
+
*
|
|
125
|
+
* @generated from field: optional ankka.protocol.v1.Payload new_state = 2;
|
|
126
|
+
*/
|
|
127
|
+
newState?: Payload | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* @generated from field: optional ankka.protocol.v1.Retention retention = 3;
|
|
130
|
+
*/
|
|
131
|
+
retention?: Retention | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* @generated from field: ankka.protocol.v1.Outcome outcome = 4;
|
|
134
|
+
*/
|
|
135
|
+
outcome?: Outcome | undefined;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Describes the message ankka.protocol.v1.KeyValueOut.Reply.
|
|
139
|
+
* Use `create(KeyValueOut_ReplySchema)` to create a new message.
|
|
140
|
+
*/
|
|
141
|
+
export declare const KeyValueOut_ReplySchema: GenMessage<KeyValueOut_Reply>;
|
|
142
|
+
/**
|
|
143
|
+
* @generated from service ankka.protocol.v1.KeyValue
|
|
144
|
+
*/
|
|
145
|
+
export declare const KeyValue: GenService<{
|
|
146
|
+
/**
|
|
147
|
+
* @generated from rpc ankka.protocol.v1.KeyValue.Handle
|
|
148
|
+
*/
|
|
149
|
+
handle: {
|
|
150
|
+
methodKind: "bidi_streaming";
|
|
151
|
+
input: typeof KeyValueInSchema;
|
|
152
|
+
output: typeof KeyValueOutSchema;
|
|
153
|
+
};
|
|
154
|
+
}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// One bidirectional stream per loaded key value entity instance.
|
|
2
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
3
|
+
import { file_ankka_protocol_v1_payload } from "./payload_pb.js";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file ankka/protocol/v1/key_value.proto.
|
|
6
|
+
*/
|
|
7
|
+
export const file_ankka_protocol_v1_key_value = /*@__PURE__*/ fileDesc("CiFhbmtrYS9wcm90b2NvbC92MS9rZXlfdmFsdWUucHJvdG8SEWFua2thLnByb3RvY29sLnYxIvECCgpLZXlWYWx1ZUluEjIKBGluaXQYASABKAsyIi5hbmtrYS5wcm90b2NvbC52MS5LZXlWYWx1ZUluLkluaXRIABI4Cgdjb21tYW5kGAIgASgLMiUuYW5ra2EucHJvdG9jb2wudjEuS2V5VmFsdWVJbi5Db21tYW5kSAAaaQoESW5pdBIUCgxjb21wb25lbnRfaWQYASABKAkSEQoJZW50aXR5X2lkGAIgASgJEi4KBXN0YXRlGAMgASgLMhouYW5ra2EucHJvdG9jb2wudjEuUGF5bG9hZEgAiAEBQggKBl9zdGF0ZRp/CgdDb21tYW5kEgoKAmlkGAEgASgDEgwKBG5hbWUYAiABKAkSKwoHcGF5bG9hZBgDIAEoCzIaLmFua2thLnByb3RvY29sLnYxLlBheWxvYWQSLQoIbWV0YWRhdGEYBCABKAsyGy5hbmtrYS5wcm90b2NvbC52MS5NZXRhZGF0YUIJCgdtZXNzYWdlIs8CCgtLZXlWYWx1ZU91dBI1CgVyZXBseRgBIAEoCzIkLmFua2thLnByb3RvY29sLnYxLktleVZhbHVlT3V0LlJlcGx5SAASLQoHZmFpbHVyZRgCIAEoCzIaLmFua2thLnByb3RvY29sLnYxLkZhaWx1cmVIABrOAQoFUmVwbHkSEgoKY29tbWFuZF9pZBgBIAEoAxIyCgluZXdfc3RhdGUYAiABKAsyGi5hbmtrYS5wcm90b2NvbC52MS5QYXlsb2FkSACIAQESNAoJcmV0ZW50aW9uGAMgASgLMhwuYW5ra2EucHJvdG9jb2wudjEuUmV0ZW50aW9uSAGIAQESKwoHb3V0Y29tZRgEIAEoCzIaLmFua2thLnByb3RvY29sLnYxLk91dGNvbWVCDAoKX25ld19zdGF0ZUIMCgpfcmV0ZW50aW9uQgkKB21lc3NhZ2UyVwoIS2V5VmFsdWUSSwoGSGFuZGxlEh0uYW5ra2EucHJvdG9jb2wudjEuS2V5VmFsdWVJbhoeLmFua2thLnByb3RvY29sLnYxLktleVZhbHVlT3V0KAEwAWIGcHJvdG8z", [file_ankka_protocol_v1_payload]);
|
|
8
|
+
/**
|
|
9
|
+
* Describes the message ankka.protocol.v1.KeyValueIn.
|
|
10
|
+
* Use `create(KeyValueInSchema)` to create a new message.
|
|
11
|
+
*/
|
|
12
|
+
export const KeyValueInSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_key_value, 0);
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message ankka.protocol.v1.KeyValueIn.Init.
|
|
15
|
+
* Use `create(KeyValueIn_InitSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
export const KeyValueIn_InitSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_key_value, 0, 0);
|
|
18
|
+
/**
|
|
19
|
+
* Describes the message ankka.protocol.v1.KeyValueIn.Command.
|
|
20
|
+
* Use `create(KeyValueIn_CommandSchema)` to create a new message.
|
|
21
|
+
*/
|
|
22
|
+
export const KeyValueIn_CommandSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_key_value, 0, 1);
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message ankka.protocol.v1.KeyValueOut.
|
|
25
|
+
* Use `create(KeyValueOutSchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
export const KeyValueOutSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_key_value, 1);
|
|
28
|
+
/**
|
|
29
|
+
* Describes the message ankka.protocol.v1.KeyValueOut.Reply.
|
|
30
|
+
* Use `create(KeyValueOut_ReplySchema)` to create a new message.
|
|
31
|
+
*/
|
|
32
|
+
export const KeyValueOut_ReplySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_key_value, 1, 0);
|
|
33
|
+
/**
|
|
34
|
+
* @generated from service ankka.protocol.v1.KeyValue
|
|
35
|
+
*/
|
|
36
|
+
export const KeyValue = /*@__PURE__*/ serviceDesc(file_ankka_protocol_v1_key_value, 0);
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Message, UnknownEnum } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file ankka/protocol/v1/payload.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_ankka_protocol_v1_payload: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* @generated from message ankka.protocol.v1.Payload
|
|
9
|
+
*/
|
|
10
|
+
export type Payload = Message<"ankka.protocol.v1.Payload"> & {
|
|
11
|
+
/**
|
|
12
|
+
* application/json, text/plain, application/octet-stream (ENCODING.md)
|
|
13
|
+
*
|
|
14
|
+
* @generated from field: string content_type = 1;
|
|
15
|
+
*/
|
|
16
|
+
contentType: string;
|
|
17
|
+
/**
|
|
18
|
+
* the serializer's manifest; what JournalRecord stores
|
|
19
|
+
*
|
|
20
|
+
* @generated from field: string manifest = 2;
|
|
21
|
+
*/
|
|
22
|
+
manifest: string;
|
|
23
|
+
/**
|
|
24
|
+
* never inspected by the sidecar
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: bytes data = 3;
|
|
27
|
+
*/
|
|
28
|
+
data: Uint8Array;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message ankka.protocol.v1.Payload.
|
|
32
|
+
* Use `create(PayloadSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
export declare const PayloadSchema: GenMessage<Payload>;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from message ankka.protocol.v1.Metadata
|
|
37
|
+
*/
|
|
38
|
+
export type Metadata = Message<"ankka.protocol.v1.Metadata"> & {
|
|
39
|
+
/**
|
|
40
|
+
* @generated from field: repeated ankka.protocol.v1.Metadata.Entry entries = 1;
|
|
41
|
+
*/
|
|
42
|
+
entries: Metadata_Entry[];
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Describes the message ankka.protocol.v1.Metadata.
|
|
46
|
+
* Use `create(MetadataSchema)` to create a new message.
|
|
47
|
+
*/
|
|
48
|
+
export declare const MetadataSchema: GenMessage<Metadata>;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from message ankka.protocol.v1.Metadata.Entry
|
|
51
|
+
*/
|
|
52
|
+
export type Metadata_Entry = Message<"ankka.protocol.v1.Metadata.Entry"> & {
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: string key = 1;
|
|
55
|
+
*/
|
|
56
|
+
key: string;
|
|
57
|
+
/**
|
|
58
|
+
* @generated from field: string value = 2;
|
|
59
|
+
*/
|
|
60
|
+
value: string;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Describes the message ankka.protocol.v1.Metadata.Entry.
|
|
64
|
+
* Use `create(Metadata_EntrySchema)` to create a new message.
|
|
65
|
+
*/
|
|
66
|
+
export declare const Metadata_EntrySchema: GenMessage<Metadata_Entry>;
|
|
67
|
+
/**
|
|
68
|
+
* @generated from message ankka.protocol.v1.Error
|
|
69
|
+
*/
|
|
70
|
+
export type Error = Message<"ankka.protocol.v1.Error"> & {
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: string message = 1;
|
|
73
|
+
*/
|
|
74
|
+
message: string;
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: ankka.protocol.v1.ErrorCode code = 2;
|
|
77
|
+
*/
|
|
78
|
+
code: ErrorCode;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Describes the message ankka.protocol.v1.Error.
|
|
82
|
+
* Use `create(ErrorSchema)` to create a new message.
|
|
83
|
+
*/
|
|
84
|
+
export declare const ErrorSchema: GenMessage<Error>;
|
|
85
|
+
/**
|
|
86
|
+
* A fault in the process: the handler threw, the payload could not be decoded. Not a refusal.
|
|
87
|
+
*
|
|
88
|
+
* @generated from message ankka.protocol.v1.Failure
|
|
89
|
+
*/
|
|
90
|
+
export type Failure = Message<"ankka.protocol.v1.Failure"> & {
|
|
91
|
+
/**
|
|
92
|
+
* @generated from field: int64 command_id = 1;
|
|
93
|
+
*/
|
|
94
|
+
commandId: bigint;
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: ankka.protocol.v1.Error error = 2;
|
|
97
|
+
*/
|
|
98
|
+
error?: Error | undefined;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Describes the message ankka.protocol.v1.Failure.
|
|
102
|
+
* Use `create(FailureSchema)` to create a new message.
|
|
103
|
+
*/
|
|
104
|
+
export declare const FailureSchema: GenMessage<Failure>;
|
|
105
|
+
/**
|
|
106
|
+
* The three cases of core.effect.Outcome, as data.
|
|
107
|
+
*
|
|
108
|
+
* @generated from message ankka.protocol.v1.Outcome
|
|
109
|
+
*/
|
|
110
|
+
export type Outcome = Message<"ankka.protocol.v1.Outcome"> & {
|
|
111
|
+
/**
|
|
112
|
+
* @generated from oneof ankka.protocol.v1.Outcome.outcome
|
|
113
|
+
*/
|
|
114
|
+
outcome: {
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: ankka.protocol.v1.Outcome.Reply reply = 1;
|
|
117
|
+
*/
|
|
118
|
+
value: Outcome_Reply;
|
|
119
|
+
case: "reply";
|
|
120
|
+
} | {
|
|
121
|
+
/**
|
|
122
|
+
* @generated from field: ankka.protocol.v1.Outcome.NoReply no_reply = 2;
|
|
123
|
+
*/
|
|
124
|
+
value: Outcome_NoReply;
|
|
125
|
+
case: "noReply";
|
|
126
|
+
} | {
|
|
127
|
+
/**
|
|
128
|
+
* a refusal: nothing is persisted, the caller sees the code
|
|
129
|
+
*
|
|
130
|
+
* @generated from field: ankka.protocol.v1.Error error = 3;
|
|
131
|
+
*/
|
|
132
|
+
value: Error;
|
|
133
|
+
case: "error";
|
|
134
|
+
} | {
|
|
135
|
+
case: undefined;
|
|
136
|
+
value?: undefined;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Describes the message ankka.protocol.v1.Outcome.
|
|
141
|
+
* Use `create(OutcomeSchema)` to create a new message.
|
|
142
|
+
*/
|
|
143
|
+
export declare const OutcomeSchema: GenMessage<Outcome>;
|
|
144
|
+
/**
|
|
145
|
+
* @generated from message ankka.protocol.v1.Outcome.Reply
|
|
146
|
+
*/
|
|
147
|
+
export type Outcome_Reply = Message<"ankka.protocol.v1.Outcome.Reply"> & {
|
|
148
|
+
/**
|
|
149
|
+
* @generated from field: ankka.protocol.v1.Payload payload = 1;
|
|
150
|
+
*/
|
|
151
|
+
payload?: Payload | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* @generated from field: ankka.protocol.v1.Metadata metadata = 2;
|
|
154
|
+
*/
|
|
155
|
+
metadata?: Metadata | undefined;
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Describes the message ankka.protocol.v1.Outcome.Reply.
|
|
159
|
+
* Use `create(Outcome_ReplySchema)` to create a new message.
|
|
160
|
+
*/
|
|
161
|
+
export declare const Outcome_ReplySchema: GenMessage<Outcome_Reply>;
|
|
162
|
+
/**
|
|
163
|
+
* @generated from message ankka.protocol.v1.Outcome.NoReply
|
|
164
|
+
*/
|
|
165
|
+
export type Outcome_NoReply = Message<"ankka.protocol.v1.Outcome.NoReply"> & {};
|
|
166
|
+
/**
|
|
167
|
+
* Describes the message ankka.protocol.v1.Outcome.NoReply.
|
|
168
|
+
* Use `create(Outcome_NoReplySchema)` to create a new message.
|
|
169
|
+
*/
|
|
170
|
+
export declare const Outcome_NoReplySchema: GenMessage<Outcome_NoReply>;
|
|
171
|
+
/**
|
|
172
|
+
* @generated from message ankka.protocol.v1.Retention
|
|
173
|
+
*/
|
|
174
|
+
export type Retention = Message<"ankka.protocol.v1.Retention"> & {
|
|
175
|
+
/**
|
|
176
|
+
* @generated from oneof ankka.protocol.v1.Retention.retention
|
|
177
|
+
*/
|
|
178
|
+
retention: {
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: ankka.protocol.v1.Retention.DeleteNow delete_now = 1;
|
|
181
|
+
*/
|
|
182
|
+
value: Retention_DeleteNow;
|
|
183
|
+
case: "deleteNow";
|
|
184
|
+
} | {
|
|
185
|
+
/**
|
|
186
|
+
* @generated from field: ankka.protocol.v1.Retention.ExpireAfter expire_after = 2;
|
|
187
|
+
*/
|
|
188
|
+
value: Retention_ExpireAfter;
|
|
189
|
+
case: "expireAfter";
|
|
190
|
+
} | {
|
|
191
|
+
case: undefined;
|
|
192
|
+
value?: undefined;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Describes the message ankka.protocol.v1.Retention.
|
|
197
|
+
* Use `create(RetentionSchema)` to create a new message.
|
|
198
|
+
*/
|
|
199
|
+
export declare const RetentionSchema: GenMessage<Retention>;
|
|
200
|
+
/**
|
|
201
|
+
* @generated from message ankka.protocol.v1.Retention.DeleteNow
|
|
202
|
+
*/
|
|
203
|
+
export type Retention_DeleteNow = Message<"ankka.protocol.v1.Retention.DeleteNow"> & {};
|
|
204
|
+
/**
|
|
205
|
+
* Describes the message ankka.protocol.v1.Retention.DeleteNow.
|
|
206
|
+
* Use `create(Retention_DeleteNowSchema)` to create a new message.
|
|
207
|
+
*/
|
|
208
|
+
export declare const Retention_DeleteNowSchema: GenMessage<Retention_DeleteNow>;
|
|
209
|
+
/**
|
|
210
|
+
* @generated from message ankka.protocol.v1.Retention.ExpireAfter
|
|
211
|
+
*/
|
|
212
|
+
export type Retention_ExpireAfter = Message<"ankka.protocol.v1.Retention.ExpireAfter"> & {
|
|
213
|
+
/**
|
|
214
|
+
* @generated from field: int64 millis = 1;
|
|
215
|
+
*/
|
|
216
|
+
millis: bigint;
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* Describes the message ankka.protocol.v1.Retention.ExpireAfter.
|
|
220
|
+
* Use `create(Retention_ExpireAfterSchema)` to create a new message.
|
|
221
|
+
*/
|
|
222
|
+
export declare const Retention_ExpireAfterSchema: GenMessage<Retention_ExpireAfter>;
|
|
223
|
+
/**
|
|
224
|
+
* @generated from message ankka.protocol.v1.Empty
|
|
225
|
+
*/
|
|
226
|
+
export type Empty = Message<"ankka.protocol.v1.Empty"> & {};
|
|
227
|
+
/**
|
|
228
|
+
* Describes the message ankka.protocol.v1.Empty.
|
|
229
|
+
* Use `create(EmptySchema)` to create a new message.
|
|
230
|
+
*/
|
|
231
|
+
export declare const EmptySchema: GenMessage<Empty>;
|
|
232
|
+
/**
|
|
233
|
+
* @generated from enum ankka.protocol.v1.ErrorCode
|
|
234
|
+
*/
|
|
235
|
+
export declare const ErrorCode: {
|
|
236
|
+
/**
|
|
237
|
+
* @generated from enum value: INTERNAL = 0;
|
|
238
|
+
*/
|
|
239
|
+
readonly INTERNAL: 0;
|
|
240
|
+
/**
|
|
241
|
+
* @generated from enum value: BAD_REQUEST = 1;
|
|
242
|
+
*/
|
|
243
|
+
readonly BAD_REQUEST: 1;
|
|
244
|
+
/**
|
|
245
|
+
* @generated from enum value: UNAUTHORIZED = 2;
|
|
246
|
+
*/
|
|
247
|
+
readonly UNAUTHORIZED: 2;
|
|
248
|
+
/**
|
|
249
|
+
* @generated from enum value: FORBIDDEN = 3;
|
|
250
|
+
*/
|
|
251
|
+
readonly FORBIDDEN: 3;
|
|
252
|
+
/**
|
|
253
|
+
* @generated from enum value: NOT_FOUND = 4;
|
|
254
|
+
*/
|
|
255
|
+
readonly NOT_FOUND: 4;
|
|
256
|
+
/**
|
|
257
|
+
* @generated from enum value: CONFLICT = 5;
|
|
258
|
+
*/
|
|
259
|
+
readonly CONFLICT: 5;
|
|
260
|
+
/**
|
|
261
|
+
* @generated from enum value: TIMEOUT = 6;
|
|
262
|
+
*/
|
|
263
|
+
readonly TIMEOUT: 6;
|
|
264
|
+
/**
|
|
265
|
+
* @generated from enum value: UNAVAILABLE = 7;
|
|
266
|
+
*/
|
|
267
|
+
readonly UNAVAILABLE: 7;
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* @generated from enum ankka.protocol.v1.ErrorCode
|
|
271
|
+
*/
|
|
272
|
+
export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode] | UnknownEnum;
|
|
273
|
+
/**
|
|
274
|
+
* Describes the enum ankka.protocol.v1.ErrorCode.
|
|
275
|
+
*/
|
|
276
|
+
export declare const ErrorCodeSchema: GenEnum<ErrorCode>;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// The sidecar protocol, version 1: what every conversation carries.
|
|
2
|
+
//
|
|
3
|
+
// A Payload is opaque to the sidecar. `manifest` is the serializer's manifest and is exactly what
|
|
4
|
+
// the journal stores; `data` is never inspected. See ENCODING.md for what the bytes mean.
|
|
5
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file ankka/protocol/v1/payload.proto.
|
|
8
|
+
*/
|
|
9
|
+
export const file_ankka_protocol_v1_payload = /*@__PURE__*/ fileDesc("Ch9hbmtrYS9wcm90b2NvbC92MS9wYXlsb2FkLnByb3RvEhFhbmtrYS5wcm90b2NvbC52MSI/CgdQYXlsb2FkEhQKDGNvbnRlbnRfdHlwZRgBIAEoCRIQCghtYW5pZmVzdBgCIAEoCRIMCgRkYXRhGAMgASgMImMKCE1ldGFkYXRhEjIKB2VudHJpZXMYASADKAsyIS5hbmtrYS5wcm90b2NvbC52MS5NZXRhZGF0YS5FbnRyeRojCgVFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAkiRAoFRXJyb3ISDwoHbWVzc2FnZRgBIAEoCRIqCgRjb2RlGAIgASgOMhwuYW5ra2EucHJvdG9jb2wudjEuRXJyb3JDb2RlIkYKB0ZhaWx1cmUSEgoKY29tbWFuZF9pZBgBIAEoAxInCgVlcnJvchgCIAEoCzIYLmFua2thLnByb3RvY29sLnYxLkVycm9yIpoCCgdPdXRjb21lEjEKBXJlcGx5GAEgASgLMiAuYW5ra2EucHJvdG9jb2wudjEuT3V0Y29tZS5SZXBseUgAEjYKCG5vX3JlcGx5GAIgASgLMiIuYW5ra2EucHJvdG9jb2wudjEuT3V0Y29tZS5Ob1JlcGx5SAASKQoFZXJyb3IYAyABKAsyGC5hbmtrYS5wcm90b2NvbC52MS5FcnJvckgAGmMKBVJlcGx5EisKB3BheWxvYWQYASABKAsyGi5hbmtrYS5wcm90b2NvbC52MS5QYXlsb2FkEi0KCG1ldGFkYXRhGAIgASgLMhsuYW5ra2EucHJvdG9jb2wudjEuTWV0YWRhdGEaCQoHTm9SZXBseUIJCgdvdXRjb21lIsQBCglSZXRlbnRpb24SPAoKZGVsZXRlX25vdxgBIAEoCzImLmFua2thLnByb3RvY29sLnYxLlJldGVudGlvbi5EZWxldGVOb3dIABJACgxleHBpcmVfYWZ0ZXIYAiABKAsyKC5hbmtrYS5wcm90b2NvbC52MS5SZXRlbnRpb24uRXhwaXJlQWZ0ZXJIABoLCglEZWxldGVOb3caHQoLRXhwaXJlQWZ0ZXISDgoGbWlsbGlzGAEgASgDQgsKCXJldGVudGlvbiIHCgVFbXB0eSqGAQoJRXJyb3JDb2RlEgwKCElOVEVSTkFMEAASDwoLQkFEX1JFUVVFU1QQARIQCgxVTkFVVEhPUklaRUQQAhINCglGT1JCSURERU4QAxINCglOT1RfRk9VTkQQBBIMCghDT05GTElDVBAFEgsKB1RJTUVPVVQQBhIPCgtVTkFWQUlMQUJMRRAHYgZwcm90bzM");
|
|
10
|
+
/**
|
|
11
|
+
* Describes the message ankka.protocol.v1.Payload.
|
|
12
|
+
* Use `create(PayloadSchema)` to create a new message.
|
|
13
|
+
*/
|
|
14
|
+
export const PayloadSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_payload, 0);
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message ankka.protocol.v1.Metadata.
|
|
17
|
+
* Use `create(MetadataSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const MetadataSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_payload, 1);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message ankka.protocol.v1.Metadata.Entry.
|
|
22
|
+
* Use `create(Metadata_EntrySchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const Metadata_EntrySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_payload, 1, 0);
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message ankka.protocol.v1.Error.
|
|
27
|
+
* Use `create(ErrorSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
export const ErrorSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_payload, 2);
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message ankka.protocol.v1.Failure.
|
|
32
|
+
* Use `create(FailureSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
export const FailureSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_payload, 3);
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message ankka.protocol.v1.Outcome.
|
|
37
|
+
* Use `create(OutcomeSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
export const OutcomeSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_payload, 4);
|
|
40
|
+
/**
|
|
41
|
+
* Describes the message ankka.protocol.v1.Outcome.Reply.
|
|
42
|
+
* Use `create(Outcome_ReplySchema)` to create a new message.
|
|
43
|
+
*/
|
|
44
|
+
export const Outcome_ReplySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_payload, 4, 0);
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message ankka.protocol.v1.Outcome.NoReply.
|
|
47
|
+
* Use `create(Outcome_NoReplySchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
export const Outcome_NoReplySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_payload, 4, 1);
|
|
50
|
+
/**
|
|
51
|
+
* Describes the message ankka.protocol.v1.Retention.
|
|
52
|
+
* Use `create(RetentionSchema)` to create a new message.
|
|
53
|
+
*/
|
|
54
|
+
export const RetentionSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_payload, 5);
|
|
55
|
+
/**
|
|
56
|
+
* Describes the message ankka.protocol.v1.Retention.DeleteNow.
|
|
57
|
+
* Use `create(Retention_DeleteNowSchema)` to create a new message.
|
|
58
|
+
*/
|
|
59
|
+
export const Retention_DeleteNowSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_payload, 5, 0);
|
|
60
|
+
/**
|
|
61
|
+
* Describes the message ankka.protocol.v1.Retention.ExpireAfter.
|
|
62
|
+
* Use `create(Retention_ExpireAfterSchema)` to create a new message.
|
|
63
|
+
*/
|
|
64
|
+
export const Retention_ExpireAfterSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_payload, 5, 1);
|
|
65
|
+
/**
|
|
66
|
+
* Describes the message ankka.protocol.v1.Empty.
|
|
67
|
+
* Use `create(EmptySchema)` to create a new message.
|
|
68
|
+
*/
|
|
69
|
+
export const EmptySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_payload, 6);
|
|
70
|
+
/**
|
|
71
|
+
* @generated from enum ankka.protocol.v1.ErrorCode
|
|
72
|
+
*/
|
|
73
|
+
export const ErrorCode = {
|
|
74
|
+
/**
|
|
75
|
+
* @generated from enum value: INTERNAL = 0;
|
|
76
|
+
*/
|
|
77
|
+
INTERNAL: 0,
|
|
78
|
+
/**
|
|
79
|
+
* @generated from enum value: BAD_REQUEST = 1;
|
|
80
|
+
*/
|
|
81
|
+
BAD_REQUEST: 1,
|
|
82
|
+
/**
|
|
83
|
+
* @generated from enum value: UNAUTHORIZED = 2;
|
|
84
|
+
*/
|
|
85
|
+
UNAUTHORIZED: 2,
|
|
86
|
+
/**
|
|
87
|
+
* @generated from enum value: FORBIDDEN = 3;
|
|
88
|
+
*/
|
|
89
|
+
FORBIDDEN: 3,
|
|
90
|
+
/**
|
|
91
|
+
* @generated from enum value: NOT_FOUND = 4;
|
|
92
|
+
*/
|
|
93
|
+
NOT_FOUND: 4,
|
|
94
|
+
/**
|
|
95
|
+
* @generated from enum value: CONFLICT = 5;
|
|
96
|
+
*/
|
|
97
|
+
CONFLICT: 5,
|
|
98
|
+
/**
|
|
99
|
+
* @generated from enum value: TIMEOUT = 6;
|
|
100
|
+
*/
|
|
101
|
+
TIMEOUT: 6,
|
|
102
|
+
/**
|
|
103
|
+
* @generated from enum value: UNAVAILABLE = 7;
|
|
104
|
+
*/
|
|
105
|
+
UNAVAILABLE: 7,
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* Describes the enum ankka.protocol.v1.ErrorCode.
|
|
109
|
+
*/
|
|
110
|
+
export const ErrorCodeSchema = /*@__PURE__*/ enumDesc(file_ankka_protocol_v1_payload, 0);
|