@restatedev/restate-sdk 0.0.0-SNAPSHOT-20231025205407

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 (163) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +157 -0
  3. package/dist/connection/connection.d.ts +19 -0
  4. package/dist/connection/connection.d.ts.map +1 -0
  5. package/dist/connection/connection.js +13 -0
  6. package/dist/connection/connection.js.map +1 -0
  7. package/dist/connection/embedded_connection.d.ts +22 -0
  8. package/dist/connection/embedded_connection.d.ts.map +1 -0
  9. package/dist/connection/embedded_connection.js +78 -0
  10. package/dist/connection/embedded_connection.js.map +1 -0
  11. package/dist/connection/http_connection.d.ts +73 -0
  12. package/dist/connection/http_connection.d.ts.map +1 -0
  13. package/dist/connection/http_connection.js +203 -0
  14. package/dist/connection/http_connection.js.map +1 -0
  15. package/dist/connection/lambda_connection.d.ts +14 -0
  16. package/dist/connection/lambda_connection.d.ts.map +1 -0
  17. package/dist/connection/lambda_connection.js +56 -0
  18. package/dist/connection/lambda_connection.js.map +1 -0
  19. package/dist/embedded/api.d.ts +18 -0
  20. package/dist/embedded/api.d.ts.map +1 -0
  21. package/dist/embedded/api.js +37 -0
  22. package/dist/embedded/api.js.map +1 -0
  23. package/dist/embedded/handler.d.ts +4 -0
  24. package/dist/embedded/handler.d.ts.map +1 -0
  25. package/dist/embedded/handler.js +28 -0
  26. package/dist/embedded/handler.js.map +1 -0
  27. package/dist/embedded/http2_remote.d.ts +10 -0
  28. package/dist/embedded/http2_remote.d.ts.map +1 -0
  29. package/dist/embedded/http2_remote.js +85 -0
  30. package/dist/embedded/http2_remote.js.map +1 -0
  31. package/dist/embedded/invocation.d.ts +4 -0
  32. package/dist/embedded/invocation.d.ts.map +1 -0
  33. package/dist/embedded/invocation.js +90 -0
  34. package/dist/embedded/invocation.js.map +1 -0
  35. package/dist/generated/dev/restate/events.d.ts +96 -0
  36. package/dist/generated/dev/restate/events.d.ts.map +1 -0
  37. package/dist/generated/dev/restate/events.js +371 -0
  38. package/dist/generated/dev/restate/events.js.map +1 -0
  39. package/dist/generated/dev/restate/ext.d.ts +88 -0
  40. package/dist/generated/dev/restate/ext.d.ts.map +1 -0
  41. package/dist/generated/dev/restate/ext.js +212 -0
  42. package/dist/generated/dev/restate/ext.js.map +1 -0
  43. package/dist/generated/google/protobuf/descriptor.d.ts +1204 -0
  44. package/dist/generated/google/protobuf/descriptor.d.ts.map +1 -0
  45. package/dist/generated/google/protobuf/descriptor.js +6676 -0
  46. package/dist/generated/google/protobuf/descriptor.js.map +1 -0
  47. package/dist/generated/google/protobuf/empty.d.ts +86 -0
  48. package/dist/generated/google/protobuf/empty.d.ts.map +1 -0
  49. package/dist/generated/google/protobuf/empty.js +107 -0
  50. package/dist/generated/google/protobuf/empty.js.map +1 -0
  51. package/dist/generated/google/protobuf/struct.d.ts +175 -0
  52. package/dist/generated/google/protobuf/struct.d.ts.map +1 -0
  53. package/dist/generated/google/protobuf/struct.js +754 -0
  54. package/dist/generated/google/protobuf/struct.js.map +1 -0
  55. package/dist/generated/proto/discovery.d.ts +105 -0
  56. package/dist/generated/proto/discovery.d.ts.map +1 -0
  57. package/dist/generated/proto/discovery.js +364 -0
  58. package/dist/generated/proto/discovery.js.map +1 -0
  59. package/dist/generated/proto/dynrpc.d.ts +150 -0
  60. package/dist/generated/proto/dynrpc.d.ts.map +1 -0
  61. package/dist/generated/proto/dynrpc.js +668 -0
  62. package/dist/generated/proto/dynrpc.js.map +1 -0
  63. package/dist/generated/proto/javascript.d.ts +97 -0
  64. package/dist/generated/proto/javascript.d.ts.map +1 -0
  65. package/dist/generated/proto/javascript.js +297 -0
  66. package/dist/generated/proto/javascript.js.map +1 -0
  67. package/dist/generated/proto/protocol.d.ts +371 -0
  68. package/dist/generated/proto/protocol.d.ts.map +1 -0
  69. package/dist/generated/proto/protocol.js +2179 -0
  70. package/dist/generated/proto/protocol.js.map +1 -0
  71. package/dist/generated/proto/services.d.ts +307 -0
  72. package/dist/generated/proto/services.d.ts.map +1 -0
  73. package/dist/generated/proto/services.js +1535 -0
  74. package/dist/generated/proto/services.js.map +1 -0
  75. package/dist/generated/proto/test.d.ts +116 -0
  76. package/dist/generated/proto/test.d.ts.map +1 -0
  77. package/dist/generated/proto/test.js +321 -0
  78. package/dist/generated/proto/test.js.map +1 -0
  79. package/dist/invocation.d.ts +39 -0
  80. package/dist/invocation.d.ts.map +1 -0
  81. package/dist/invocation.js +138 -0
  82. package/dist/invocation.js.map +1 -0
  83. package/dist/io/decoder.d.ts +8 -0
  84. package/dist/io/decoder.d.ts.map +1 -0
  85. package/dist/io/decoder.js +133 -0
  86. package/dist/io/decoder.js.map +1 -0
  87. package/dist/io/encoder.d.ts +7 -0
  88. package/dist/io/encoder.d.ts.map +1 -0
  89. package/dist/io/encoder.js +57 -0
  90. package/dist/io/encoder.js.map +1 -0
  91. package/dist/journal.d.ts +42 -0
  92. package/dist/journal.d.ts.map +1 -0
  93. package/dist/journal.js +368 -0
  94. package/dist/journal.js.map +1 -0
  95. package/dist/local_state_store.d.ts +13 -0
  96. package/dist/local_state_store.d.ts.map +1 -0
  97. package/dist/local_state_store.js +72 -0
  98. package/dist/local_state_store.js.map +1 -0
  99. package/dist/public_api.d.ts +10 -0
  100. package/dist/public_api.d.ts.map +1 -0
  101. package/dist/public_api.js +59 -0
  102. package/dist/public_api.js.map +1 -0
  103. package/dist/restate_context.d.ts +405 -0
  104. package/dist/restate_context.d.ts.map +1 -0
  105. package/dist/restate_context.js +46 -0
  106. package/dist/restate_context.js.map +1 -0
  107. package/dist/restate_context_impl.d.ts +54 -0
  108. package/dist/restate_context_impl.d.ts.map +1 -0
  109. package/dist/restate_context_impl.js +364 -0
  110. package/dist/restate_context_impl.js.map +1 -0
  111. package/dist/server/base_restate_server.d.ts +30 -0
  112. package/dist/server/base_restate_server.d.ts.map +1 -0
  113. package/dist/server/base_restate_server.js +360 -0
  114. package/dist/server/base_restate_server.js.map +1 -0
  115. package/dist/server/restate_lambda_handler.d.ts +104 -0
  116. package/dist/server/restate_lambda_handler.d.ts.map +1 -0
  117. package/dist/server/restate_lambda_handler.js +245 -0
  118. package/dist/server/restate_lambda_handler.js.map +1 -0
  119. package/dist/server/restate_server.d.ts +91 -0
  120. package/dist/server/restate_server.d.ts.map +1 -0
  121. package/dist/server/restate_server.js +230 -0
  122. package/dist/server/restate_server.js.map +1 -0
  123. package/dist/state_machine.d.ts +75 -0
  124. package/dist/state_machine.d.ts.map +1 -0
  125. package/dist/state_machine.js +380 -0
  126. package/dist/state_machine.js.map +1 -0
  127. package/dist/types/errors.d.ts +40 -0
  128. package/dist/types/errors.d.ts.map +1 -0
  129. package/dist/types/errors.js +121 -0
  130. package/dist/types/errors.js.map +1 -0
  131. package/dist/types/grpc.d.ts +88 -0
  132. package/dist/types/grpc.d.ts.map +1 -0
  133. package/dist/types/grpc.js +68 -0
  134. package/dist/types/grpc.js.map +1 -0
  135. package/dist/types/protocol.d.ts +24 -0
  136. package/dist/types/protocol.d.ts.map +1 -0
  137. package/dist/types/protocol.js +115 -0
  138. package/dist/types/protocol.js.map +1 -0
  139. package/dist/types/router.d.ts +33 -0
  140. package/dist/types/router.d.ts.map +1 -0
  141. package/dist/types/router.js +36 -0
  142. package/dist/types/router.js.map +1 -0
  143. package/dist/types/types.d.ts +30 -0
  144. package/dist/types/types.d.ts.map +1 -0
  145. package/dist/types/types.js +125 -0
  146. package/dist/types/types.js.map +1 -0
  147. package/dist/utils/assumpsions.d.ts +8 -0
  148. package/dist/utils/assumpsions.d.ts.map +1 -0
  149. package/dist/utils/assumpsions.js +101 -0
  150. package/dist/utils/assumpsions.js.map +1 -0
  151. package/dist/utils/logger.d.ts +60 -0
  152. package/dist/utils/logger.d.ts.map +1 -0
  153. package/dist/utils/logger.js +102 -0
  154. package/dist/utils/logger.js.map +1 -0
  155. package/dist/utils/public_utils.d.ts +58 -0
  156. package/dist/utils/public_utils.d.ts.map +1 -0
  157. package/dist/utils/public_utils.js +49 -0
  158. package/dist/utils/public_utils.js.map +1 -0
  159. package/dist/utils/utils.d.ts +14 -0
  160. package/dist/utils/utils.d.ts.map +1 -0
  161. package/dist/utils/utils.js +119 -0
  162. package/dist/utils/utils.js.map +1 -0
  163. package/package.json +75 -0
@@ -0,0 +1,371 @@
1
+ /// <reference types="node" />
2
+ import _m0 from "protobufjs/minimal";
3
+ import { FileDescriptorProto as FileDescriptorProto1 } from "ts-proto-descriptors";
4
+ import { Empty } from "../google/protobuf/empty";
5
+ export declare const protobufPackage = "dev.restate.service.protocol";
6
+ /** Type: 0x0000 + 0 */
7
+ export interface StartMessage {
8
+ /** Unique id of the invocation. This id is unique across invocations and won't change when replaying the journal. */
9
+ id: Buffer;
10
+ /**
11
+ * Invocation id that can be used for logging.
12
+ * The user can use this id to address this invocation in admin and status introspection apis.
13
+ */
14
+ debugId: string;
15
+ knownEntries: number;
16
+ /** protolint:disable:next REPEATED_FIELD_NAMES_PLURALIZED */
17
+ stateMap: StartMessage_StateEntry[];
18
+ partialState: boolean;
19
+ }
20
+ export interface StartMessage_StateEntry {
21
+ key: Buffer;
22
+ /**
23
+ * If value is an empty byte array,
24
+ * then it means the value is empty and not "missing" (e.g. empty string).
25
+ */
26
+ value: Buffer;
27
+ }
28
+ /**
29
+ * Type: 0x0000 + 1
30
+ * Note: Acks to custom messages will have the `empty` field filled.
31
+ */
32
+ export interface CompletionMessage {
33
+ entryIndex: number;
34
+ empty?: Empty | undefined;
35
+ value?: Buffer | undefined;
36
+ failure?: Failure | undefined;
37
+ }
38
+ /**
39
+ * Type: 0x0000 + 2
40
+ * Implementations MUST send this message when suspending an invocation.
41
+ */
42
+ export interface SuspensionMessage {
43
+ /**
44
+ * This list represents any of the entry_index the invocation is waiting on to progress.
45
+ * The runtime will resume the invocation as soon as one of the given entry_index is completed.
46
+ * This list MUST not be empty.
47
+ * False positive, entry_indexes is a valid plural of entry_indices.
48
+ * https://learn.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/i/index-indexes-indices
49
+ */
50
+ entryIndexes: number[];
51
+ }
52
+ /** Type: 0x0000 + 3 */
53
+ export interface ErrorMessage {
54
+ /**
55
+ * The code can be:
56
+ * * Any of the error codes defined by OutputStreamEntry.failure (see Failure message)
57
+ * * JOURNAL_MISMATCH = 32, that is when the SDK cannot replay a journal due to the mismatch between the journal and the actual code.
58
+ * * PROTOCOL_VIOLATION = 33, that is when the SDK receives an unexpected message or an expected message variant, given its state.
59
+ *
60
+ * If 16 < code < 32, or code > 33, the runtime will interpret it as code 2 (UNKNOWN).
61
+ */
62
+ code: number;
63
+ /** Contains a concise error message, e.g. Throwable#getMessage() in Java. */
64
+ message: string;
65
+ /** Contains a verbose error description, e.g. the exception stacktrace. */
66
+ description: string;
67
+ }
68
+ /**
69
+ * Kind: Completable JournalEntry
70
+ * Type: 0x0400 + 0
71
+ */
72
+ export interface PollInputStreamEntryMessage {
73
+ value: Buffer;
74
+ }
75
+ /**
76
+ * Kind: Non-Completable JournalEntry
77
+ * Type: 0x0400 + 1
78
+ */
79
+ export interface OutputStreamEntryMessage {
80
+ value?: Buffer | undefined;
81
+ failure?: Failure | undefined;
82
+ }
83
+ /**
84
+ * Kind: Completable JournalEntry
85
+ * Type: 0x0800 + 0
86
+ */
87
+ export interface GetStateEntryMessage {
88
+ key: Buffer;
89
+ empty?: Empty | undefined;
90
+ value?: Buffer | undefined;
91
+ }
92
+ /**
93
+ * Kind: Non-Completable JournalEntry
94
+ * Type: 0x0800 + 1
95
+ */
96
+ export interface SetStateEntryMessage {
97
+ key: Buffer;
98
+ value: Buffer;
99
+ }
100
+ /**
101
+ * Kind: Non-Completable JournalEntry
102
+ * Type: 0x0800 + 2
103
+ */
104
+ export interface ClearStateEntryMessage {
105
+ key: Buffer;
106
+ }
107
+ /**
108
+ * Kind: Completable JournalEntry
109
+ * Type: 0x0C00 + 0
110
+ */
111
+ export interface SleepEntryMessage {
112
+ /**
113
+ * Wake up time.
114
+ * The time is set as duration since UNIX Epoch.
115
+ */
116
+ wakeUpTime: number;
117
+ result: Empty | undefined;
118
+ }
119
+ /**
120
+ * Kind: Completable JournalEntry
121
+ * Type: 0x0C00 + 1
122
+ */
123
+ export interface InvokeEntryMessage {
124
+ serviceName: string;
125
+ methodName: string;
126
+ parameter: Buffer;
127
+ value?: Buffer | undefined;
128
+ failure?: Failure | undefined;
129
+ }
130
+ /**
131
+ * Kind: Non-Completable JournalEntry
132
+ * Type: 0x0C00 + 2
133
+ */
134
+ export interface BackgroundInvokeEntryMessage {
135
+ serviceName: string;
136
+ methodName: string;
137
+ parameter: Buffer;
138
+ /**
139
+ * Time when this BackgroundInvoke should be executed.
140
+ * The time is set as duration since UNIX Epoch.
141
+ * If this value is not set, equal to 0, or past in time,
142
+ * the runtime will execute this BackgroundInvoke as soon as possible.
143
+ */
144
+ invokeTime: number;
145
+ }
146
+ /**
147
+ * Kind: Completable JournalEntry
148
+ * Type: 0x0C00 + 3
149
+ * Awakeables are addressed by an identifier exposed to the user. See the spec for more details.
150
+ */
151
+ export interface AwakeableEntryMessage {
152
+ value?: Buffer | undefined;
153
+ failure?: Failure | undefined;
154
+ }
155
+ /**
156
+ * Kind: Non-Completable JournalEntry
157
+ * Type: 0x0C00 + 4
158
+ */
159
+ export interface CompleteAwakeableEntryMessage {
160
+ /** Identifier of the awakeable. See the spec for more details. */
161
+ id: string;
162
+ value?: Buffer | undefined;
163
+ failure?: Failure | undefined;
164
+ }
165
+ /**
166
+ * This failure object carries user visible errors,
167
+ * e.g. invocation failure return value or failure result of an InvokeEntryMessage.
168
+ */
169
+ export interface Failure {
170
+ /**
171
+ * The code should be any of the gRPC error codes,
172
+ * as defined here: https://github.com/grpc/grpc/blob/master/doc/statuscodes.md#status-codes-and-their-use-in-grpc
173
+ *
174
+ * If code > 16, the runtime will interpret it as code 2 (UNKNOWN).
175
+ */
176
+ code: number;
177
+ /** Contains a concise error message, e.g. Throwable#getMessage() in Java. */
178
+ message: string;
179
+ }
180
+ export declare const StartMessage: {
181
+ encode(message: StartMessage, writer?: _m0.Writer): _m0.Writer;
182
+ decode(input: _m0.Reader | Uint8Array, length?: number): StartMessage;
183
+ fromJSON(object: any): StartMessage;
184
+ toJSON(message: StartMessage): unknown;
185
+ create(base?: DeepPartial<StartMessage>): StartMessage;
186
+ fromPartial(object: DeepPartial<StartMessage>): StartMessage;
187
+ };
188
+ export declare const StartMessage_StateEntry: {
189
+ encode(message: StartMessage_StateEntry, writer?: _m0.Writer): _m0.Writer;
190
+ decode(input: _m0.Reader | Uint8Array, length?: number): StartMessage_StateEntry;
191
+ fromJSON(object: any): StartMessage_StateEntry;
192
+ toJSON(message: StartMessage_StateEntry): unknown;
193
+ create(base?: DeepPartial<StartMessage_StateEntry>): StartMessage_StateEntry;
194
+ fromPartial(object: DeepPartial<StartMessage_StateEntry>): StartMessage_StateEntry;
195
+ };
196
+ export declare const CompletionMessage: {
197
+ encode(message: CompletionMessage, writer?: _m0.Writer): _m0.Writer;
198
+ decode(input: _m0.Reader | Uint8Array, length?: number): CompletionMessage;
199
+ fromJSON(object: any): CompletionMessage;
200
+ toJSON(message: CompletionMessage): unknown;
201
+ create(base?: DeepPartial<CompletionMessage>): CompletionMessage;
202
+ fromPartial(object: DeepPartial<CompletionMessage>): CompletionMessage;
203
+ };
204
+ export declare const SuspensionMessage: {
205
+ encode(message: SuspensionMessage, writer?: _m0.Writer): _m0.Writer;
206
+ decode(input: _m0.Reader | Uint8Array, length?: number): SuspensionMessage;
207
+ fromJSON(object: any): SuspensionMessage;
208
+ toJSON(message: SuspensionMessage): unknown;
209
+ create(base?: DeepPartial<SuspensionMessage>): SuspensionMessage;
210
+ fromPartial(object: DeepPartial<SuspensionMessage>): SuspensionMessage;
211
+ };
212
+ export declare const ErrorMessage: {
213
+ encode(message: ErrorMessage, writer?: _m0.Writer): _m0.Writer;
214
+ decode(input: _m0.Reader | Uint8Array, length?: number): ErrorMessage;
215
+ fromJSON(object: any): ErrorMessage;
216
+ toJSON(message: ErrorMessage): unknown;
217
+ create(base?: DeepPartial<ErrorMessage>): ErrorMessage;
218
+ fromPartial(object: DeepPartial<ErrorMessage>): ErrorMessage;
219
+ };
220
+ export declare const PollInputStreamEntryMessage: {
221
+ encode(message: PollInputStreamEntryMessage, writer?: _m0.Writer): _m0.Writer;
222
+ decode(input: _m0.Reader | Uint8Array, length?: number): PollInputStreamEntryMessage;
223
+ fromJSON(object: any): PollInputStreamEntryMessage;
224
+ toJSON(message: PollInputStreamEntryMessage): unknown;
225
+ create(base?: DeepPartial<PollInputStreamEntryMessage>): PollInputStreamEntryMessage;
226
+ fromPartial(object: DeepPartial<PollInputStreamEntryMessage>): PollInputStreamEntryMessage;
227
+ };
228
+ export declare const OutputStreamEntryMessage: {
229
+ encode(message: OutputStreamEntryMessage, writer?: _m0.Writer): _m0.Writer;
230
+ decode(input: _m0.Reader | Uint8Array, length?: number): OutputStreamEntryMessage;
231
+ fromJSON(object: any): OutputStreamEntryMessage;
232
+ toJSON(message: OutputStreamEntryMessage): unknown;
233
+ create(base?: DeepPartial<OutputStreamEntryMessage>): OutputStreamEntryMessage;
234
+ fromPartial(object: DeepPartial<OutputStreamEntryMessage>): OutputStreamEntryMessage;
235
+ };
236
+ export declare const GetStateEntryMessage: {
237
+ encode(message: GetStateEntryMessage, writer?: _m0.Writer): _m0.Writer;
238
+ decode(input: _m0.Reader | Uint8Array, length?: number): GetStateEntryMessage;
239
+ fromJSON(object: any): GetStateEntryMessage;
240
+ toJSON(message: GetStateEntryMessage): unknown;
241
+ create(base?: DeepPartial<GetStateEntryMessage>): GetStateEntryMessage;
242
+ fromPartial(object: DeepPartial<GetStateEntryMessage>): GetStateEntryMessage;
243
+ };
244
+ export declare const SetStateEntryMessage: {
245
+ encode(message: SetStateEntryMessage, writer?: _m0.Writer): _m0.Writer;
246
+ decode(input: _m0.Reader | Uint8Array, length?: number): SetStateEntryMessage;
247
+ fromJSON(object: any): SetStateEntryMessage;
248
+ toJSON(message: SetStateEntryMessage): unknown;
249
+ create(base?: DeepPartial<SetStateEntryMessage>): SetStateEntryMessage;
250
+ fromPartial(object: DeepPartial<SetStateEntryMessage>): SetStateEntryMessage;
251
+ };
252
+ export declare const ClearStateEntryMessage: {
253
+ encode(message: ClearStateEntryMessage, writer?: _m0.Writer): _m0.Writer;
254
+ decode(input: _m0.Reader | Uint8Array, length?: number): ClearStateEntryMessage;
255
+ fromJSON(object: any): ClearStateEntryMessage;
256
+ toJSON(message: ClearStateEntryMessage): unknown;
257
+ create(base?: DeepPartial<ClearStateEntryMessage>): ClearStateEntryMessage;
258
+ fromPartial(object: DeepPartial<ClearStateEntryMessage>): ClearStateEntryMessage;
259
+ };
260
+ export declare const SleepEntryMessage: {
261
+ encode(message: SleepEntryMessage, writer?: _m0.Writer): _m0.Writer;
262
+ decode(input: _m0.Reader | Uint8Array, length?: number): SleepEntryMessage;
263
+ fromJSON(object: any): SleepEntryMessage;
264
+ toJSON(message: SleepEntryMessage): unknown;
265
+ create(base?: DeepPartial<SleepEntryMessage>): SleepEntryMessage;
266
+ fromPartial(object: DeepPartial<SleepEntryMessage>): SleepEntryMessage;
267
+ };
268
+ export declare const InvokeEntryMessage: {
269
+ encode(message: InvokeEntryMessage, writer?: _m0.Writer): _m0.Writer;
270
+ decode(input: _m0.Reader | Uint8Array, length?: number): InvokeEntryMessage;
271
+ fromJSON(object: any): InvokeEntryMessage;
272
+ toJSON(message: InvokeEntryMessage): unknown;
273
+ create(base?: DeepPartial<InvokeEntryMessage>): InvokeEntryMessage;
274
+ fromPartial(object: DeepPartial<InvokeEntryMessage>): InvokeEntryMessage;
275
+ };
276
+ export declare const BackgroundInvokeEntryMessage: {
277
+ encode(message: BackgroundInvokeEntryMessage, writer?: _m0.Writer): _m0.Writer;
278
+ decode(input: _m0.Reader | Uint8Array, length?: number): BackgroundInvokeEntryMessage;
279
+ fromJSON(object: any): BackgroundInvokeEntryMessage;
280
+ toJSON(message: BackgroundInvokeEntryMessage): unknown;
281
+ create(base?: DeepPartial<BackgroundInvokeEntryMessage>): BackgroundInvokeEntryMessage;
282
+ fromPartial(object: DeepPartial<BackgroundInvokeEntryMessage>): BackgroundInvokeEntryMessage;
283
+ };
284
+ export declare const AwakeableEntryMessage: {
285
+ encode(message: AwakeableEntryMessage, writer?: _m0.Writer): _m0.Writer;
286
+ decode(input: _m0.Reader | Uint8Array, length?: number): AwakeableEntryMessage;
287
+ fromJSON(object: any): AwakeableEntryMessage;
288
+ toJSON(message: AwakeableEntryMessage): unknown;
289
+ create(base?: DeepPartial<AwakeableEntryMessage>): AwakeableEntryMessage;
290
+ fromPartial(object: DeepPartial<AwakeableEntryMessage>): AwakeableEntryMessage;
291
+ };
292
+ export declare const CompleteAwakeableEntryMessage: {
293
+ encode(message: CompleteAwakeableEntryMessage, writer?: _m0.Writer): _m0.Writer;
294
+ decode(input: _m0.Reader | Uint8Array, length?: number): CompleteAwakeableEntryMessage;
295
+ fromJSON(object: any): CompleteAwakeableEntryMessage;
296
+ toJSON(message: CompleteAwakeableEntryMessage): unknown;
297
+ create(base?: DeepPartial<CompleteAwakeableEntryMessage>): CompleteAwakeableEntryMessage;
298
+ fromPartial(object: DeepPartial<CompleteAwakeableEntryMessage>): CompleteAwakeableEntryMessage;
299
+ };
300
+ export declare const Failure: {
301
+ encode(message: Failure, writer?: _m0.Writer): _m0.Writer;
302
+ decode(input: _m0.Reader | Uint8Array, length?: number): Failure;
303
+ fromJSON(object: any): Failure;
304
+ toJSON(message: Failure): unknown;
305
+ create(base?: DeepPartial<Failure>): Failure;
306
+ fromPartial(object: DeepPartial<Failure>): Failure;
307
+ };
308
+ type ProtoMetaMessageOptions = {
309
+ options?: {
310
+ [key: string]: any;
311
+ };
312
+ fields?: {
313
+ [key: string]: {
314
+ [key: string]: any;
315
+ };
316
+ };
317
+ oneof?: {
318
+ [key: string]: {
319
+ [key: string]: any;
320
+ };
321
+ };
322
+ nested?: {
323
+ [key: string]: ProtoMetaMessageOptions;
324
+ };
325
+ };
326
+ export interface ProtoMetadata {
327
+ fileDescriptor: FileDescriptorProto1;
328
+ references: {
329
+ [key: string]: any;
330
+ };
331
+ dependencies?: ProtoMetadata[];
332
+ options?: {
333
+ options?: {
334
+ [key: string]: any;
335
+ };
336
+ services?: {
337
+ [key: string]: {
338
+ options?: {
339
+ [key: string]: any;
340
+ };
341
+ methods?: {
342
+ [key: string]: {
343
+ [key: string]: any;
344
+ };
345
+ };
346
+ };
347
+ };
348
+ messages?: {
349
+ [key: string]: ProtoMetaMessageOptions;
350
+ };
351
+ enums?: {
352
+ [key: string]: {
353
+ options?: {
354
+ [key: string]: any;
355
+ };
356
+ values?: {
357
+ [key: string]: {
358
+ [key: string]: any;
359
+ };
360
+ };
361
+ };
362
+ };
363
+ };
364
+ }
365
+ export declare const protoMetadata: ProtoMetadata;
366
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
367
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
368
+ [K in keyof T]?: DeepPartial<T[K]>;
369
+ } : Partial<T>;
370
+ export {};
371
+ //# sourceMappingURL=protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../src/generated/proto/protocol.ts"],"names":[],"mappings":";AAEA,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,EAAE,mBAAmB,IAAI,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,KAAK,EAAmC,MAAM,0BAA0B,CAAC;AAElF,eAAO,MAAM,eAAe,iCAAiC,CAAC;AAE9D,uBAAuB;AACvB,MAAM,WAAW,YAAY;IAC3B,qHAAqH;IACrH,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,6DAA6D;IAC7D,QAAQ,EAAE,uBAAuB,EAAE,CAAC;IACpC,YAAY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