@restatedev/restate-sdk 1.17.4 → 1.18.1
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/dist/common_api.d.cts +1 -1
- package/dist/common_api.d.cts.map +1 -1
- package/dist/common_api.d.ts +1 -1
- package/dist/common_api.d.ts.map +1 -1
- package/dist/common_api.js.map +1 -1
- package/dist/context.d.cts +3 -0
- package/dist/context.d.cts.map +1 -1
- package/dist/context.d.ts +3 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js.map +1 -1
- package/dist/context_impl.cjs +8 -3
- package/dist/context_impl.js +8 -3
- package/dist/context_impl.js.map +1 -1
- package/dist/endpoint/components.cjs +28 -6
- package/dist/endpoint/components.js +28 -6
- package/dist/endpoint/components.js.map +1 -1
- package/dist/endpoint/connect/env.cjs +206 -0
- package/dist/endpoint/connect/env.js +199 -0
- package/dist/endpoint/connect/env.js.map +1 -0
- package/dist/endpoint/connect/index.cjs +113 -0
- package/dist/endpoint/connect/index.d.cts +41 -0
- package/dist/endpoint/connect/index.d.cts.map +1 -0
- package/dist/endpoint/connect/index.d.ts +41 -0
- package/dist/endpoint/connect/index.d.ts.map +1 -0
- package/dist/endpoint/connect/index.js +114 -0
- package/dist/endpoint/connect/index.js.map +1 -0
- package/dist/endpoint/connect/key.cjs +53 -0
- package/dist/endpoint/connect/key.js +53 -0
- package/dist/endpoint/connect/key.js.map +1 -0
- package/dist/endpoint/handlers/discovery.cjs +12 -2
- package/dist/endpoint/handlers/discovery.js +12 -2
- package/dist/endpoint/handlers/discovery.js.map +1 -1
- package/dist/endpoint/handlers/vm/sdk_shared_core_wasm_bindings.cjs +1 -1
- package/dist/endpoint/handlers/vm/sdk_shared_core_wasm_bindings.js +1 -1
- package/dist/endpoint/handlers/vm/sdk_shared_core_wasm_bindings.js.map +1 -1
- package/dist/endpoint/tunnel/backoff.cjs +37 -0
- package/dist/endpoint/tunnel/backoff.js +36 -0
- package/dist/endpoint/tunnel/backoff.js.map +1 -0
- package/dist/endpoint/tunnel/connection.cjs +604 -0
- package/dist/endpoint/tunnel/connection.js +600 -0
- package/dist/endpoint/tunnel/connection.js.map +1 -0
- package/dist/endpoint/tunnel/draining.cjs +40 -0
- package/dist/endpoint/tunnel/draining.js +40 -0
- package/dist/endpoint/tunnel/draining.js.map +1 -0
- package/dist/endpoint/tunnel/engine.cjs +264 -0
- package/dist/endpoint/tunnel/engine.d.cts +1 -0
- package/dist/endpoint/tunnel/engine.d.ts +1 -0
- package/dist/endpoint/tunnel/engine.js +265 -0
- package/dist/endpoint/tunnel/engine.js.map +1 -0
- package/dist/endpoint/tunnel/forwarded.cjs +34 -0
- package/dist/endpoint/tunnel/forwarded.js +34 -0
- package/dist/endpoint/tunnel/forwarded.js.map +1 -0
- package/dist/endpoint/tunnel/handshake.cjs +98 -0
- package/dist/endpoint/tunnel/handshake.js +97 -0
- package/dist/endpoint/tunnel/handshake.js.map +1 -0
- package/dist/endpoint/tunnel/index.d.cts +3 -0
- package/dist/endpoint/tunnel/index.d.ts +3 -0
- package/dist/endpoint/tunnel/options.cjs +168 -0
- package/dist/endpoint/tunnel/options.d.cts +2 -0
- package/dist/endpoint/tunnel/options.d.ts +2 -0
- package/dist/endpoint/tunnel/options.js +161 -0
- package/dist/endpoint/tunnel/options.js.map +1 -0
- package/dist/endpoint/tunnel/supervisor.cjs +180 -0
- package/dist/endpoint/tunnel/supervisor.js +181 -0
- package/dist/endpoint/tunnel/supervisor.js.map +1 -0
- package/dist/endpoint/tunnel/targets.cjs +110 -0
- package/dist/endpoint/tunnel/targets.js +107 -0
- package/dist/endpoint/tunnel/targets.js.map +1 -0
- package/dist/endpoint/tunnel/types.d.cts +270 -0
- package/dist/endpoint/tunnel/types.d.cts.map +1 -0
- package/dist/endpoint/tunnel/types.d.ts +270 -0
- package/dist/endpoint/tunnel/types.d.ts.map +1 -0
- package/dist/endpoint/tunnel/util.cjs +67 -0
- package/dist/endpoint/tunnel/util.js +65 -0
- package/dist/endpoint/tunnel/util.js.map +1 -0
- package/dist/fetch.d.cts +2 -2
- package/dist/fetch.d.ts +2 -2
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +2 -1
- package/dist/lambda.d.cts +2 -2
- package/dist/lambda.d.ts +2 -2
- package/dist/node.cjs +2 -0
- package/dist/node.d.cts +5 -2
- package/dist/node.d.cts.map +1 -1
- package/dist/node.d.ts +5 -2
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +2 -1
- package/dist/node.js.map +1 -1
- package/dist/package.cjs +1 -1
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/dist/types/errors.cjs +4 -2
- package/dist/types/errors.d.cts.map +1 -1
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +4 -2
- package/dist/types/errors.js.map +1 -1
- package/dist/types/rpc.d.cts +42 -17
- package/dist/types/rpc.d.cts.map +1 -1
- package/dist/types/rpc.d.ts +42 -17
- package/dist/types/rpc.d.ts.map +1 -1
- package/dist/types/rpc.js.map +1 -1
- package/package.json +2 -2
- package/dist/context_impl.d.ts.map +0 -1
- package/dist/endpoint/components.d.ts.map +0 -1
- package/dist/endpoint/discovery.d.ts +0 -184
- package/dist/endpoint/discovery.d.ts.map +0 -1
- package/dist/endpoint/discovery.js +0 -7
- package/dist/endpoint/discovery.js.map +0 -1
- package/dist/endpoint/endpoint.d.ts.map +0 -1
- package/dist/endpoint/handlers/core_logging.d.ts +0 -14
- package/dist/endpoint/handlers/core_logging.d.ts.map +0 -1
- package/dist/endpoint/handlers/discovery.d.ts +0 -5
- package/dist/endpoint/handlers/discovery.d.ts.map +0 -1
- package/dist/endpoint/handlers/fetch.d.ts +0 -5
- package/dist/endpoint/handlers/fetch.d.ts.map +0 -1
- package/dist/endpoint/handlers/generic.d.ts +0 -5
- package/dist/endpoint/handlers/generic.d.ts.map +0 -1
- package/dist/endpoint/handlers/lambda.d.ts +0 -10
- package/dist/endpoint/handlers/lambda.d.ts.map +0 -1
- package/dist/endpoint/handlers/preview.d.ts +0 -5
- package/dist/endpoint/handlers/preview.d.ts.map +0 -1
- package/dist/endpoint/handlers/types.d.ts.map +0 -1
- package/dist/endpoint/handlers/types.js +0 -2
- package/dist/endpoint/handlers/types.js.map +0 -1
- package/dist/endpoint/handlers/utils.d.ts +0 -23
- package/dist/endpoint/handlers/utils.d.ts.map +0 -1
- package/dist/endpoint/handlers/vm/sdk_shared_core_wasm_bindings.d.ts +0 -454
- package/dist/endpoint/handlers/vm/sdk_shared_core_wasm_bindings.d.ts.map +0 -1
- package/dist/endpoint/node_endpoint.d.ts +0 -28
- package/dist/endpoint/node_endpoint.d.ts.map +0 -1
- package/dist/endpoint/types.js +0 -2
- package/dist/endpoint/types.js.map +0 -1
- package/dist/endpoint/withOptions.d.ts +0 -4
- package/dist/endpoint/withOptions.d.ts.map +0 -1
- package/dist/endpoint.js +0 -12
- package/dist/endpoint.js.map +0 -1
- package/dist/error_sanitization.d.ts +0 -13
- package/dist/error_sanitization.d.ts.map +0 -1
- package/dist/hooks.js +0 -2
- package/dist/hooks.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/io.d.ts.map +0 -1
- package/dist/logging/console_logger_transport.d.ts +0 -5
- package/dist/logging/console_logger_transport.d.ts.map +0 -1
- package/dist/logging/logger.d.ts.map +0 -1
- package/dist/user_agent.d.ts +0 -2
- package/dist/user_agent.d.ts.map +0 -1
- package/dist/utils/external_progress_channel.d.ts +0 -19
- package/dist/utils/external_progress_channel.d.ts.map +0 -1
- package/dist/utils/rand.d.ts +0 -13
- package/dist/utils/rand.d.ts.map +0 -1
|
@@ -1,454 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @returns {number}
|
|
3
|
-
*/
|
|
4
|
-
export function cancel_handle(): number;
|
|
5
|
-
/**
|
|
6
|
-
* This will set the log level of the overall log subscriber.
|
|
7
|
-
* @param {LogLevel} level
|
|
8
|
-
*/
|
|
9
|
-
export function set_log_level(level: LogLevel): void;
|
|
10
|
-
/**
|
|
11
|
-
* Setups the WASM module
|
|
12
|
-
*/
|
|
13
|
-
export function start(): void;
|
|
14
|
-
export type LogLevel = 0 | 1 | 2 | 3 | 4;
|
|
15
|
-
/**
|
|
16
|
-
* @enum {0 | 1 | 2 | 3 | 4}
|
|
17
|
-
*/
|
|
18
|
-
export const LogLevel: Readonly<{
|
|
19
|
-
TRACE: 0;
|
|
20
|
-
0: "TRACE";
|
|
21
|
-
DEBUG: 1;
|
|
22
|
-
1: "DEBUG";
|
|
23
|
-
INFO: 2;
|
|
24
|
-
2: "INFO";
|
|
25
|
-
WARN: 3;
|
|
26
|
-
3: "WARN";
|
|
27
|
-
ERROR: 4;
|
|
28
|
-
4: "ERROR";
|
|
29
|
-
}>;
|
|
30
|
-
export type WasmCommandType = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18;
|
|
31
|
-
/**
|
|
32
|
-
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18}
|
|
33
|
-
*/
|
|
34
|
-
export const WasmCommandType: Readonly<{
|
|
35
|
-
Input: 0;
|
|
36
|
-
0: "Input";
|
|
37
|
-
Output: 1;
|
|
38
|
-
1: "Output";
|
|
39
|
-
GetState: 2;
|
|
40
|
-
2: "GetState";
|
|
41
|
-
GetStateKeys: 3;
|
|
42
|
-
3: "GetStateKeys";
|
|
43
|
-
SetState: 4;
|
|
44
|
-
4: "SetState";
|
|
45
|
-
ClearState: 5;
|
|
46
|
-
5: "ClearState";
|
|
47
|
-
ClearAllState: 6;
|
|
48
|
-
6: "ClearAllState";
|
|
49
|
-
GetPromise: 7;
|
|
50
|
-
7: "GetPromise";
|
|
51
|
-
PeekPromise: 8;
|
|
52
|
-
8: "PeekPromise";
|
|
53
|
-
CompletePromise: 9;
|
|
54
|
-
9: "CompletePromise";
|
|
55
|
-
Sleep: 10;
|
|
56
|
-
10: "Sleep";
|
|
57
|
-
Call: 11;
|
|
58
|
-
11: "Call";
|
|
59
|
-
OneWayCall: 12;
|
|
60
|
-
12: "OneWayCall";
|
|
61
|
-
SendSignal: 13;
|
|
62
|
-
13: "SendSignal";
|
|
63
|
-
Run: 14;
|
|
64
|
-
14: "Run";
|
|
65
|
-
AttachInvocation: 15;
|
|
66
|
-
15: "AttachInvocation";
|
|
67
|
-
GetInvocationOutput: 16;
|
|
68
|
-
16: "GetInvocationOutput";
|
|
69
|
-
CompleteAwakeable: 17;
|
|
70
|
-
17: "CompleteAwakeable";
|
|
71
|
-
CancelInvocation: 18;
|
|
72
|
-
18: "CancelInvocation";
|
|
73
|
-
}>;
|
|
74
|
-
export class WasmHeader {
|
|
75
|
-
static __wrap(ptr: any): any;
|
|
76
|
-
static __unwrap(jsValue: any): any;
|
|
77
|
-
/**
|
|
78
|
-
* @param {string} key
|
|
79
|
-
* @param {string} value
|
|
80
|
-
*/
|
|
81
|
-
constructor(key: string, value: string);
|
|
82
|
-
__destroy_into_raw(): any;
|
|
83
|
-
__wbg_ptr: any;
|
|
84
|
-
free(): void;
|
|
85
|
-
/**
|
|
86
|
-
* @returns {string}
|
|
87
|
-
*/
|
|
88
|
-
get key(): string;
|
|
89
|
-
/**
|
|
90
|
-
* @returns {string}
|
|
91
|
-
*/
|
|
92
|
-
get value(): string;
|
|
93
|
-
}
|
|
94
|
-
export class WasmIdentityVerifier {
|
|
95
|
-
/**
|
|
96
|
-
* @param {string[]} keys
|
|
97
|
-
*/
|
|
98
|
-
constructor(keys: string[]);
|
|
99
|
-
__destroy_into_raw(): any;
|
|
100
|
-
__wbg_ptr: any;
|
|
101
|
-
free(): void;
|
|
102
|
-
/**
|
|
103
|
-
* @param {string} path
|
|
104
|
-
* @param {WasmHeader[]} headers
|
|
105
|
-
*/
|
|
106
|
-
verify_identity(path: string, headers: WasmHeader[]): void;
|
|
107
|
-
}
|
|
108
|
-
export class WasmInput {
|
|
109
|
-
static __wrap(ptr: any): any;
|
|
110
|
-
__destroy_into_raw(): number | undefined;
|
|
111
|
-
__wbg_ptr: number | undefined;
|
|
112
|
-
free(): void;
|
|
113
|
-
/**
|
|
114
|
-
* @returns {WasmHeader[]}
|
|
115
|
-
*/
|
|
116
|
-
get headers(): WasmHeader[];
|
|
117
|
-
/**
|
|
118
|
-
* @returns {string | undefined}
|
|
119
|
-
*/
|
|
120
|
-
get idempotency_key(): string | undefined;
|
|
121
|
-
/**
|
|
122
|
-
* @returns {Uint8Array}
|
|
123
|
-
*/
|
|
124
|
-
get input(): Uint8Array;
|
|
125
|
-
/**
|
|
126
|
-
* @returns {string}
|
|
127
|
-
*/
|
|
128
|
-
get invocation_id(): string;
|
|
129
|
-
/**
|
|
130
|
-
* @returns {string}
|
|
131
|
-
*/
|
|
132
|
-
get key(): string;
|
|
133
|
-
/**
|
|
134
|
-
* @returns {string | undefined}
|
|
135
|
-
*/
|
|
136
|
-
get limit_key(): string | undefined;
|
|
137
|
-
/**
|
|
138
|
-
* @returns {bigint}
|
|
139
|
-
*/
|
|
140
|
-
get random_seed(): bigint;
|
|
141
|
-
/**
|
|
142
|
-
* @returns {string | undefined}
|
|
143
|
-
*/
|
|
144
|
-
get scope(): string | undefined;
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* How the state machine should behave when it hits a journal mismatch (non-determinism) error.
|
|
148
|
-
*/
|
|
149
|
-
export type WasmJournalMismatchBehavior = 0 | 1 | 2;
|
|
150
|
-
/**
|
|
151
|
-
* How the state machine should behave when it hits a journal mismatch (non-determinism) error.
|
|
152
|
-
* @enum {0 | 1 | 2}
|
|
153
|
-
*/
|
|
154
|
-
export const WasmJournalMismatchBehavior: Readonly<{
|
|
155
|
-
/**
|
|
156
|
-
* Follow the normal retry policy.
|
|
157
|
-
*/
|
|
158
|
-
Retry: 0;
|
|
159
|
-
0: "Retry";
|
|
160
|
-
/**
|
|
161
|
-
* Pause the invocation instead of retrying.
|
|
162
|
-
*/
|
|
163
|
-
Pause: 1;
|
|
164
|
-
1: "Pause";
|
|
165
|
-
/**
|
|
166
|
-
* Fail the invocation terminally instead of retrying.
|
|
167
|
-
*/
|
|
168
|
-
Fail: 2;
|
|
169
|
-
2: "Fail";
|
|
170
|
-
}>;
|
|
171
|
-
export class WasmResponseHead {
|
|
172
|
-
static __wrap(ptr: any): any;
|
|
173
|
-
__destroy_into_raw(): number | undefined;
|
|
174
|
-
__wbg_ptr: number | undefined;
|
|
175
|
-
free(): void;
|
|
176
|
-
/**
|
|
177
|
-
* @returns {WasmHeader[]}
|
|
178
|
-
*/
|
|
179
|
-
get headers(): WasmHeader[];
|
|
180
|
-
/**
|
|
181
|
-
* @returns {number}
|
|
182
|
-
*/
|
|
183
|
-
get status_code(): number;
|
|
184
|
-
}
|
|
185
|
-
export class WasmVM {
|
|
186
|
-
/**
|
|
187
|
-
* @param {WasmHeader[]} headers
|
|
188
|
-
* @param {LogLevel} log_level
|
|
189
|
-
* @param {number} logger_id
|
|
190
|
-
* @param {boolean} disable_payload_checks
|
|
191
|
-
* @param {boolean} explicit_cancellation
|
|
192
|
-
* @param {WasmJournalMismatchBehavior} on_journal_mismatch
|
|
193
|
-
* @param {boolean} explicit_recovery
|
|
194
|
-
*/
|
|
195
|
-
constructor(headers: WasmHeader[], log_level: LogLevel, logger_id: number, disable_payload_checks: boolean, explicit_cancellation: boolean, on_journal_mismatch: WasmJournalMismatchBehavior, explicit_recovery: boolean);
|
|
196
|
-
__destroy_into_raw(): any;
|
|
197
|
-
__wbg_ptr: any;
|
|
198
|
-
free(): void;
|
|
199
|
-
/**
|
|
200
|
-
* @param {WasmUnresolvedFuture} future
|
|
201
|
-
* @returns {WasmDoProgressResult}
|
|
202
|
-
*/
|
|
203
|
-
do_progress(future: WasmUnresolvedFuture): WasmDoProgressResult;
|
|
204
|
-
/**
|
|
205
|
-
* @param {string} key
|
|
206
|
-
* @returns {number}
|
|
207
|
-
*/
|
|
208
|
-
ephemeral_state_get(key: string): number;
|
|
209
|
-
/**
|
|
210
|
-
* @returns {WasmResponseHead}
|
|
211
|
-
*/
|
|
212
|
-
get_response_head(): WasmResponseHead;
|
|
213
|
-
/**
|
|
214
|
-
* @param {number} handle
|
|
215
|
-
* @returns {boolean}
|
|
216
|
-
*/
|
|
217
|
-
is_completed(handle: number): boolean;
|
|
218
|
-
/**
|
|
219
|
-
* @returns {boolean}
|
|
220
|
-
*/
|
|
221
|
-
is_processing(): boolean;
|
|
222
|
-
/**
|
|
223
|
-
* @returns {boolean}
|
|
224
|
-
*/
|
|
225
|
-
is_ready_to_execute(): boolean;
|
|
226
|
-
/**
|
|
227
|
-
* @returns {number}
|
|
228
|
-
*/
|
|
229
|
-
last_command_index(): number;
|
|
230
|
-
/**
|
|
231
|
-
* @param {string} error_message
|
|
232
|
-
* @param {string | null} [stacktrace]
|
|
233
|
-
*/
|
|
234
|
-
notify_error(error_message: string, stacktrace?: string | null): void;
|
|
235
|
-
/**
|
|
236
|
-
* @param {string} error_message
|
|
237
|
-
* @param {string | null | undefined} stacktrace
|
|
238
|
-
* @param {WasmCommandType} wasm_command_type
|
|
239
|
-
*/
|
|
240
|
-
notify_error_for_next_command(error_message: string, stacktrace: string | null | undefined, wasm_command_type: WasmCommandType): void;
|
|
241
|
-
/**
|
|
242
|
-
* @param {string} error_message
|
|
243
|
-
* @param {string | null | undefined} stacktrace
|
|
244
|
-
* @param {WasmCommandType} wasm_command_type
|
|
245
|
-
* @param {number} command_index
|
|
246
|
-
* @param {string | null} [command_name]
|
|
247
|
-
*/
|
|
248
|
-
notify_error_for_specific_command(error_message: string, stacktrace: string | null | undefined, wasm_command_type: WasmCommandType, command_index: number, command_name?: string | null): void;
|
|
249
|
-
/**
|
|
250
|
-
* @param {string} error_message
|
|
251
|
-
* @param {string | null} [stacktrace]
|
|
252
|
-
* @param {bigint | null} [delay_override]
|
|
253
|
-
*/
|
|
254
|
-
notify_error_with_delay_override(error_message: string, stacktrace?: string | null, delay_override?: bigint | null): void;
|
|
255
|
-
/**
|
|
256
|
-
* @param {Uint8Array} buffer
|
|
257
|
-
*/
|
|
258
|
-
notify_input(buffer: Uint8Array): void;
|
|
259
|
-
notify_input_closed(): void;
|
|
260
|
-
/**
|
|
261
|
-
* @param {number} handle
|
|
262
|
-
* @param {WasmFailure} value
|
|
263
|
-
*/
|
|
264
|
-
propose_run_completion_failure(handle: number, value: WasmFailure): void;
|
|
265
|
-
/**
|
|
266
|
-
* @param {number} handle
|
|
267
|
-
* @param {string} error_message
|
|
268
|
-
* @param {string | null | undefined} error_stacktrace
|
|
269
|
-
* @param {bigint} attempt_duration
|
|
270
|
-
* @param {WasmExponentialRetryConfig | null} [config]
|
|
271
|
-
*/
|
|
272
|
-
propose_run_completion_failure_transient(handle: number, error_message: string, error_stacktrace: string | null | undefined, attempt_duration: bigint, config?: WasmExponentialRetryConfig | null): void;
|
|
273
|
-
/**
|
|
274
|
-
* @param {number} handle
|
|
275
|
-
* @param {string} error_message
|
|
276
|
-
* @param {string | null | undefined} error_stacktrace
|
|
277
|
-
* @param {bigint} attempt_duration
|
|
278
|
-
* @param {bigint | null} [delay_override]
|
|
279
|
-
* @param {number | null} [max_retry_attempts_override]
|
|
280
|
-
* @param {bigint | null} [max_retry_duration_override]
|
|
281
|
-
*/
|
|
282
|
-
propose_run_completion_failure_transient_with_delay_override(handle: number, error_message: string, error_stacktrace: string | null | undefined, attempt_duration: bigint, delay_override?: bigint | null, max_retry_attempts_override?: number | null, max_retry_duration_override?: bigint | null): void;
|
|
283
|
-
/**
|
|
284
|
-
* @param {number} handle
|
|
285
|
-
* @param {string} error_message
|
|
286
|
-
* @param {string | null | undefined} error_stacktrace
|
|
287
|
-
* @param {bigint} attempt_duration
|
|
288
|
-
*/
|
|
289
|
-
propose_run_completion_failure_transient_with_pause(handle: number, error_message: string, error_stacktrace: string | null | undefined, attempt_duration: bigint): void;
|
|
290
|
-
/**
|
|
291
|
-
* @param {number} handle
|
|
292
|
-
* @param {Uint8Array} buffer
|
|
293
|
-
*/
|
|
294
|
-
propose_run_completion_success(handle: number, buffer: Uint8Array): void;
|
|
295
|
-
/**
|
|
296
|
-
* @param {string} invocation_id
|
|
297
|
-
* @returns {number}
|
|
298
|
-
*/
|
|
299
|
-
sys_attach_invocation(invocation_id: string): number;
|
|
300
|
-
/**
|
|
301
|
-
* @returns {WasmAwakeable}
|
|
302
|
-
*/
|
|
303
|
-
sys_awakeable(): WasmAwakeable;
|
|
304
|
-
/**
|
|
305
|
-
* @param {string} service
|
|
306
|
-
* @param {string} handler
|
|
307
|
-
* @param {Uint8Array} buffer
|
|
308
|
-
* @param {string | null | undefined} key
|
|
309
|
-
* @param {WasmHeader[]} headers
|
|
310
|
-
* @param {string | null} [idempotency_key]
|
|
311
|
-
* @param {string | null} [scope]
|
|
312
|
-
* @param {string | null} [limit_key]
|
|
313
|
-
* @param {string | null} [name]
|
|
314
|
-
* @returns {WasmCallHandle}
|
|
315
|
-
*/
|
|
316
|
-
sys_call(service: string, handler: string, buffer: Uint8Array, key: string | null | undefined, headers: WasmHeader[], idempotency_key?: string | null, scope?: string | null, limit_key?: string | null, name?: string | null): WasmCallHandle;
|
|
317
|
-
/**
|
|
318
|
-
* @param {string} target_invocation_id
|
|
319
|
-
*/
|
|
320
|
-
sys_cancel_invocation(target_invocation_id: string): void;
|
|
321
|
-
/**
|
|
322
|
-
* @param {string | null} [name]
|
|
323
|
-
*/
|
|
324
|
-
sys_clear_all_state(name?: string | null): void;
|
|
325
|
-
/**
|
|
326
|
-
* @param {string} key
|
|
327
|
-
* @param {string | null} [name]
|
|
328
|
-
*/
|
|
329
|
-
sys_clear_state(key: string, name?: string | null): void;
|
|
330
|
-
/**
|
|
331
|
-
* @param {string} id
|
|
332
|
-
* @param {WasmFailure} value
|
|
333
|
-
*/
|
|
334
|
-
sys_complete_awakeable_failure(id: string, value: WasmFailure): void;
|
|
335
|
-
/**
|
|
336
|
-
* @param {string} id
|
|
337
|
-
* @param {Uint8Array} buffer
|
|
338
|
-
*/
|
|
339
|
-
sys_complete_awakeable_success(id: string, buffer: Uint8Array): void;
|
|
340
|
-
/**
|
|
341
|
-
* @param {string} key
|
|
342
|
-
* @param {WasmFailure} value
|
|
343
|
-
* @returns {number}
|
|
344
|
-
*/
|
|
345
|
-
sys_complete_promise_failure(key: string, value: WasmFailure): number;
|
|
346
|
-
/**
|
|
347
|
-
* @param {string} key
|
|
348
|
-
* @param {Uint8Array} buffer
|
|
349
|
-
* @returns {number}
|
|
350
|
-
*/
|
|
351
|
-
sys_complete_promise_success(key: string, buffer: Uint8Array): number;
|
|
352
|
-
/**
|
|
353
|
-
* @param {string} invocation_id
|
|
354
|
-
* @param {string} signal_name
|
|
355
|
-
* @param {WasmFailure} value
|
|
356
|
-
*/
|
|
357
|
-
sys_complete_signal_failure(invocation_id: string, signal_name: string, value: WasmFailure): void;
|
|
358
|
-
/**
|
|
359
|
-
* @param {string} invocation_id
|
|
360
|
-
* @param {string} signal_name
|
|
361
|
-
* @param {Uint8Array} buffer
|
|
362
|
-
*/
|
|
363
|
-
sys_complete_signal_success(invocation_id: string, signal_name: string, buffer: Uint8Array): void;
|
|
364
|
-
sys_end(): void;
|
|
365
|
-
/**
|
|
366
|
-
* @param {string} invocation_id
|
|
367
|
-
* @returns {number}
|
|
368
|
-
*/
|
|
369
|
-
sys_get_invocation_output(invocation_id: string): number;
|
|
370
|
-
/**
|
|
371
|
-
* @param {string} key
|
|
372
|
-
* @returns {number}
|
|
373
|
-
*/
|
|
374
|
-
sys_get_promise(key: string): number;
|
|
375
|
-
/**
|
|
376
|
-
* @param {string} key
|
|
377
|
-
* @param {string | null} [name]
|
|
378
|
-
* @returns {number}
|
|
379
|
-
*/
|
|
380
|
-
sys_get_state(key: string, name?: string | null): number;
|
|
381
|
-
/**
|
|
382
|
-
* @param {string | null} [name]
|
|
383
|
-
* @returns {number}
|
|
384
|
-
*/
|
|
385
|
-
sys_get_state_keys(name?: string | null): number;
|
|
386
|
-
/**
|
|
387
|
-
* @returns {WasmInput}
|
|
388
|
-
*/
|
|
389
|
-
sys_input(): WasmInput;
|
|
390
|
-
/**
|
|
391
|
-
* @param {string} key
|
|
392
|
-
* @returns {number}
|
|
393
|
-
*/
|
|
394
|
-
sys_peek_promise(key: string): number;
|
|
395
|
-
/**
|
|
396
|
-
* @param {string} name
|
|
397
|
-
* @returns {WasmRun}
|
|
398
|
-
*/
|
|
399
|
-
sys_run(name: string): WasmRun;
|
|
400
|
-
/**
|
|
401
|
-
* @param {string} service
|
|
402
|
-
* @param {string} handler
|
|
403
|
-
* @param {Uint8Array} buffer
|
|
404
|
-
* @param {string | null | undefined} key
|
|
405
|
-
* @param {WasmHeader[]} headers
|
|
406
|
-
* @param {bigint | null} [delay]
|
|
407
|
-
* @param {string | null} [idempotency_key]
|
|
408
|
-
* @param {string | null} [scope]
|
|
409
|
-
* @param {string | null} [limit_key]
|
|
410
|
-
* @param {string | null} [name]
|
|
411
|
-
* @returns {WasmSendHandle}
|
|
412
|
-
*/
|
|
413
|
-
sys_send(service: string, handler: string, buffer: Uint8Array, key: string | null | undefined, headers: WasmHeader[], delay?: bigint | null, idempotency_key?: string | null, scope?: string | null, limit_key?: string | null, name?: string | null): WasmSendHandle;
|
|
414
|
-
/**
|
|
415
|
-
* @param {string} key
|
|
416
|
-
* @param {Uint8Array} buffer
|
|
417
|
-
* @param {string | null} [name]
|
|
418
|
-
*/
|
|
419
|
-
sys_set_state(key: string, buffer: Uint8Array, name?: string | null): void;
|
|
420
|
-
/**
|
|
421
|
-
* @param {string} signal_name
|
|
422
|
-
* @returns {number}
|
|
423
|
-
*/
|
|
424
|
-
sys_signal(signal_name: string): number;
|
|
425
|
-
/**
|
|
426
|
-
* @param {bigint} millis
|
|
427
|
-
* @param {string | null} [name]
|
|
428
|
-
* @returns {number}
|
|
429
|
-
*/
|
|
430
|
-
sys_sleep(millis: bigint, name?: string | null): number;
|
|
431
|
-
/**
|
|
432
|
-
* @param {WasmFailure} value
|
|
433
|
-
*/
|
|
434
|
-
sys_write_output_failure(value: WasmFailure): void;
|
|
435
|
-
/**
|
|
436
|
-
* @param {Uint8Array} buffer
|
|
437
|
-
*/
|
|
438
|
-
sys_write_output_success(buffer: Uint8Array): void;
|
|
439
|
-
/**
|
|
440
|
-
* @param {number} ephemeral_notification_handle
|
|
441
|
-
* @returns {WasmAsyncResultValue}
|
|
442
|
-
*/
|
|
443
|
-
take_ephemeral_notification(ephemeral_notification_handle: number): WasmAsyncResultValue;
|
|
444
|
-
/**
|
|
445
|
-
* @param {number} handle
|
|
446
|
-
* @returns {WasmAsyncResultValue}
|
|
447
|
-
*/
|
|
448
|
-
take_notification(handle: number): WasmAsyncResultValue;
|
|
449
|
-
/**
|
|
450
|
-
* @returns {Uint8Array}
|
|
451
|
-
*/
|
|
452
|
-
take_output(): Uint8Array;
|
|
453
|
-
}
|
|
454
|
-
//# sourceMappingURL=sdk_shared_core_wasm_bindings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk_shared_core_wasm_bindings.d.ts","sourceRoot":"","sources":["../../../../src/endpoint/handlers/vm/sdk_shared_core_wasm_bindings.js"],"names":[],"mappings":"AA8+CA;;GAEG;AACH,iCAFa,MAAM,CAKlB;AAED;;;GAGG;AACH,qCAFW,QAAQ,QAIlB;AAED;;GAEG;AACH,8BAEC;uBAr/CS,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;AAD3B;;GAEG;AACH;;;;;;;;;;;GAWG;8BAGO,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE;AAD5F;;GAEG;AACH;;;;;;;;;;;;;;;;;;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ACN,UAAU,OACV,MAAM,GAAG,IAAI,GAAG,SAAS,WACzB,UAAU,EAAE,UACZ,MAAM,GAAG,IAAI,oBACb,MAAM,GAAG,IAAI,UACb,MAAM,GAAG,IAAI,cACb,MAAM,GAAG,IAAI,SACb,MAAM,GAAG,IAAI,GACX,cAAc,CA6F1B;IACD;;;;OAIG;IACH,mBAJW,MAAM,UACN,UAAU,SACV,MAAM,GAAG,IAAI,QA+BvB;IACD;;;OAGG;IACH,wBAHW,MAAM,GACJ,MAAM,CAclB;IACD;;;;OAIG;IACH,kBAJW,MAAM,SACN,MAAM,GAAG,IAAI,GACX,MAAM,CAgBlB;IACD;;OAEG;IACH,gCAFW,WAAW,QAOrB;IACD;;OAEG;IACH,iCAFW,UAAU,QAapB;IACD;;;OAGG;IACH,2DAHW,MAAM,GACJ,oBAAoB,CAWhC;IACD;;;OAGG;IACH,0BAHW,MAAM,GACJ,oBAAoB,CAQhC;IACD;;OAEG;IACH,eAFa,UAAU,CAKtB;CACF"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { RestateEndpoint } from "../index.js";
|
|
2
|
-
import type { JournalValueCodec, ServiceDefinition, VirtualObjectDefinition, WorkflowDefinition } from "@restatedev/restate-sdk-core";
|
|
3
|
-
import { IncomingMessage, ServerResponse } from "node:http";
|
|
4
|
-
import { Http2ServerRequest, Http2ServerResponse } from "node:http2";
|
|
5
|
-
import type { LoggerTransport } from "../logging/logger_transport.js";
|
|
6
|
-
import type { DefaultServiceOptions } from "../endpoint.js";
|
|
7
|
-
export declare class NodeEndpoint implements RestateEndpoint {
|
|
8
|
-
private builder;
|
|
9
|
-
bind<P extends string, M>(definition: ServiceDefinition<P, M> | VirtualObjectDefinition<P, M> | WorkflowDefinition<P, M>): RestateEndpoint;
|
|
10
|
-
withIdentityV1(...keys: string[]): RestateEndpoint;
|
|
11
|
-
defaultServiceOptions(options: DefaultServiceOptions): RestateEndpoint;
|
|
12
|
-
setLogger(logger: LoggerTransport): RestateEndpoint;
|
|
13
|
-
journalValueCodecProvider(codecProvider: () => Promise<JournalValueCodec>): RestateEndpoint;
|
|
14
|
-
http2Handler(options?: {
|
|
15
|
-
bidirectional?: boolean;
|
|
16
|
-
}): (request: Http2ServerRequest, response: Http2ServerResponse) => void;
|
|
17
|
-
http1Handler(options?: {
|
|
18
|
-
bidirectional?: boolean;
|
|
19
|
-
}): (request: IncomingMessage, response: ServerResponse) => void;
|
|
20
|
-
handler(options?: {
|
|
21
|
-
bidirectional?: boolean;
|
|
22
|
-
}): {
|
|
23
|
-
(request: IncomingMessage, response: ServerResponse): void;
|
|
24
|
-
(request: Http2ServerRequest, response: Http2ServerResponse): void;
|
|
25
|
-
};
|
|
26
|
-
listen(port?: number): Promise<number>;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=node_endpoint.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node_endpoint.d.ts","sourceRoot":"","sources":["../../src/endpoint/node_endpoint.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAMrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAK5D,qBAAa,YAAa,YAAW,eAAe;IAClD,OAAO,CAAC,OAAO,CAA0C;IAElD,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,EAC7B,UAAU,EACN,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,GACvB,uBAAuB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC7B,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC3B,eAAe;IAKX,cAAc,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,eAAe;IAKlD,qBAAqB,CAC1B,OAAO,EAAE,qBAAqB,GAC7B,eAAe;IAKX,SAAS,CAAC,MAAM,EAAE,eAAe,GAAG,eAAe;IAKnD,yBAAyB,CAC9B,aAAa,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,GAC9C,eAAe;IAKlB,YAAY,CAAC,OAAO,CAAC,EAAE;QACrB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,GAAG,CAAC,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,mBAAmB,KAAK,IAAI;IAOxE,YAAY,CAAC,OAAO,CAAC,EAAE;QACrB,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,GAAG,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,cAAc,KAAK,IAAI;IAOhE,OAAO,CAAC,OAAO,CAAC,EAAE;QAAE,aAAa,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG;QAC9C,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;QAC3D,CAAC,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAAC;KACpE;IA6BD,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAiCvC"}
|
package/dist/endpoint/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/endpoint/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { RestateEndpointBase } from "../endpoint.js";
|
|
2
|
-
import type { EndpointOptions } from "./types.js";
|
|
3
|
-
export declare function withOptions<E extends RestateEndpointBase<E>>(endpoint: E, { identityKeys, defaultServiceOptions, logger, services, journalValueCodecProvider, }: EndpointOptions): E;
|
|
4
|
-
//# sourceMappingURL=withOptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withOptions.d.ts","sourceRoot":"","sources":["../../src/endpoint/withOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,wBAAgB,WAAW,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,CAAC,EAC1D,QAAQ,EAAE,CAAC,EACX,EACE,YAAY,EACZ,qBAAqB,EACrB,MAAM,EACN,QAAQ,EACR,yBAAyB,GAC1B,EAAE,eAAe,GACjB,CAAC,CAsBH"}
|
package/dist/endpoint.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2023-2024 - Restate Software, Inc., Restate GmbH
|
|
3
|
-
*
|
|
4
|
-
* This file is part of the Restate SDK for Node.js/TypeScript,
|
|
5
|
-
* which is released under the MIT license.
|
|
6
|
-
*
|
|
7
|
-
* You can find a copy of the license in file LICENSE in the root
|
|
8
|
-
* directory of this repository or package, or at
|
|
9
|
-
* https://github.com/restatedev/sdk-typescript/blob/main/LICENSE
|
|
10
|
-
*/
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=endpoint.js.map
|
package/dist/endpoint.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpoint.js","sourceRoot":"","sources":["../src/endpoint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Strips SDK-internal metadata from an error before it enters the interceptor
|
|
3
|
-
* chain. Interceptors see a plain Error — no CommandError.
|
|
4
|
-
*/
|
|
5
|
-
export declare function sanitizeError(e: unknown): Error;
|
|
6
|
-
/**
|
|
7
|
-
* Restores SDK-internal metadata after the interceptor chain exits, using the
|
|
8
|
-
* original error's metadata and the interceptor's error as the new cause.
|
|
9
|
-
* If the original had no SDK metadata, the interceptor's error passes through
|
|
10
|
-
* unchanged.
|
|
11
|
-
*/
|
|
12
|
-
export declare function restoreError(interceptorError: unknown, original: unknown): unknown;
|
|
13
|
-
//# sourceMappingURL=error_sanitization.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error_sanitization.d.ts","sourceRoot":"","sources":["../src/error_sanitization.ts"],"names":[],"mappings":"AAcA;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,GAAG,KAAK,CAG/C;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,gBAAgB,EAAE,OAAO,EACzB,QAAQ,EAAE,OAAO,GAChB,OAAO,CAWT"}
|
package/dist/hooks.js
DELETED
package/dist/hooks.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAWA,cAAc,WAAW,CAAC"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,WAAW,CAAC"}
|
package/dist/io.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"io.d.ts","sourceRoot":"","sources":["../src/io.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,KAAK,EAAE,MAAM,yDAAyD,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E;;;;;GAKG;AACH,qBAAa,SAAS;IAKlB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAPhC,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAuB;gBAG5B,MAAM,EAAE,EAAE,CAAC,MAAM,EACjB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,uBAAuB,EAChC,aAAa,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI;IAOlD;;;OAGG;IACH,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC;YAKd,GAAG;CAsBlB;AAED;;GAEG;AACH,qBAAa,UAAU;IAEnB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,MAAM,EAAE,EAAE,CAAC,MAAM,EACjB,YAAY,EAAE,YAAY;IAGvC,iBAAiB;CAMxB"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { LoggerTransport } from "./logger_transport.js";
|
|
2
|
-
import { RestateLogLevel } from "./logger_transport.js";
|
|
3
|
-
export declare const defaultLoggerTransport: LoggerTransport;
|
|
4
|
-
export declare const DEFAULT_CONSOLE_LOGGER_LOG_LEVEL: RestateLogLevel;
|
|
5
|
-
//# sourceMappingURL=console_logger_transport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"console_logger_transport.d.ts","sourceRoot":"","sources":["../../src/logging/console_logger_transport.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAEV,eAAe,EAEhB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,eAAO,MAAM,sBAAsB,EAAE,eA0BpC,CAAC;AAKF,eAAO,MAAM,gCAAgC,iBAAwB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logging/logger.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,SAAS,EACV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,MAAO,SAAQ,OAAO;IACrC,WAAW,CACT,KAAK,EAAE,eAAe,EACtB,OAAO,CAAC,EAAE,GAAG,EACb,GAAG,cAAc,EAAE,GAAG,EAAE,GACvB,IAAI,CAAC;CACT;AAED,wBAAgB,YAAY,CAC1B,eAAe,EAAE,eAAe,EAChC,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE,aAAa,EACvB,WAAW,GAAE,MAAM,OAAqB,GACvC,MAAM,CA2FR"}
|
package/dist/user_agent.d.ts
DELETED
package/dist/user_agent.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user_agent.d.ts","sourceRoot":"","sources":["../src/user_agent.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,gBAAgB,QAA0C,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Multi-producer single-consumer unit-signal channel used to wake the
|
|
3
|
-
* {@link PromisesExecutor} when any external progress source (input read or
|
|
4
|
-
* run-closure completion) has made progress.
|
|
5
|
-
*
|
|
6
|
-
* Producers call {@link signal} to emit a progress event.
|
|
7
|
-
* The single consumer calls {@link awaitNext} to await the next signal.
|
|
8
|
-
*
|
|
9
|
-
* Signals emitted with no consumer waiting are buffered, so no progress signal
|
|
10
|
-
* is ever lost. At most one {@link awaitNext} may be pending at a time; a
|
|
11
|
-
* concurrent second call rejects.
|
|
12
|
-
*/
|
|
13
|
-
export declare class ExternalProgressChannel {
|
|
14
|
-
private pending;
|
|
15
|
-
private waiter;
|
|
16
|
-
signal(): void;
|
|
17
|
-
awaitNext(): Promise<void>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=external_progress_channel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"external_progress_channel.d.ts","sourceRoot":"","sources":["../../src/utils/external_progress_channel.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;GAWG;AACH,qBAAa,uBAAuB;IAClC,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,MAAM,CAA2B;IAEzC,MAAM,IAAI,IAAI;IAUd,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;CAY3B"}
|
package/dist/utils/rand.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Rand } from "../context.js";
|
|
2
|
-
export declare class RandImpl implements Rand {
|
|
3
|
-
private readonly checkState;
|
|
4
|
-
private randstate256;
|
|
5
|
-
constructor(id: bigint | [bigint, bigint, bigint, bigint], checkState?: (state: string) => void);
|
|
6
|
-
static U64_MASK: bigint;
|
|
7
|
-
u64(): bigint;
|
|
8
|
-
static rotl(x: bigint, k: bigint): bigint;
|
|
9
|
-
static U53_MASK: bigint;
|
|
10
|
-
random(): number;
|
|
11
|
-
uuidv4(): string;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=rand.d.ts.map
|
package/dist/utils/rand.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rand.d.ts","sourceRoot":"","sources":["../../src/utils/rand.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAG1C,qBAAa,QAAS,YAAW,IAAI;IAKjC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAJ7B,OAAO,CAAC,YAAY,CAAmC;gBAGrD,EAAE,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAC5B,UAAU,GAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAsB;IAqBxE,MAAM,CAAC,QAAQ,SAAoB;IAInC,GAAG,IAAI,MAAM;IAuBb,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM;IAIzC,MAAM,CAAC,QAAQ,SAAoB;IAE5B,MAAM,IAAI,MAAM;IAShB,MAAM,IAAI,MAAM;CAWxB"}
|