@restatedev/restate-sdk 1.17.3 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/common_api.d.cts +2 -2
  2. package/dist/common_api.d.cts.map +1 -1
  3. package/dist/common_api.d.ts +2 -2
  4. package/dist/common_api.d.ts.map +1 -1
  5. package/dist/common_api.js.map +1 -1
  6. package/dist/context.d.cts +25 -8
  7. package/dist/context.d.cts.map +1 -1
  8. package/dist/context.d.ts +25 -8
  9. package/dist/context.d.ts.map +1 -1
  10. package/dist/context.js.map +1 -1
  11. package/dist/context_impl.cjs +10 -10
  12. package/dist/context_impl.js +10 -10
  13. package/dist/context_impl.js.map +1 -1
  14. package/dist/endpoint/components.cjs +39 -7
  15. package/dist/endpoint/components.js +39 -8
  16. package/dist/endpoint/components.js.map +1 -1
  17. package/dist/endpoint/handlers/discovery.cjs +12 -2
  18. package/dist/endpoint/handlers/discovery.js +12 -2
  19. package/dist/endpoint/handlers/discovery.js.map +1 -1
  20. package/dist/endpoint/handlers/generic.cjs +1 -1
  21. package/dist/endpoint/handlers/generic.js +1 -1
  22. package/dist/endpoint/handlers/generic.js.map +1 -1
  23. package/dist/endpoint/handlers/vm/sdk_shared_core_wasm_bindings.cjs +31 -13
  24. package/dist/endpoint/handlers/vm/sdk_shared_core_wasm_bindings.js +31 -13
  25. package/dist/endpoint/handlers/vm/sdk_shared_core_wasm_bindings.js.map +1 -1
  26. package/dist/fetch.d.cts +3 -3
  27. package/dist/fetch.d.ts +3 -3
  28. package/dist/index.d.cts +3 -3
  29. package/dist/index.d.ts +3 -3
  30. package/dist/internal.cjs +27 -0
  31. package/dist/internal.d.cts +30 -1
  32. package/dist/internal.d.cts.map +1 -1
  33. package/dist/internal.d.ts +30 -1
  34. package/dist/internal.d.ts.map +1 -1
  35. package/dist/internal.js +27 -0
  36. package/dist/internal.js.map +1 -1
  37. package/dist/lambda.d.cts +3 -3
  38. package/dist/lambda.d.ts +3 -3
  39. package/dist/node.d.cts +3 -3
  40. package/dist/node.d.ts +3 -3
  41. package/dist/package.cjs +1 -1
  42. package/dist/package.js +1 -1
  43. package/dist/package.js.map +1 -1
  44. package/dist/types/errors.cjs +4 -2
  45. package/dist/types/errors.d.cts.map +1 -1
  46. package/dist/types/errors.d.ts.map +1 -1
  47. package/dist/types/errors.js +4 -2
  48. package/dist/types/errors.js.map +1 -1
  49. package/dist/types/rpc.d.cts +45 -28
  50. package/dist/types/rpc.d.cts.map +1 -1
  51. package/dist/types/rpc.d.ts +45 -28
  52. package/dist/types/rpc.d.ts.map +1 -1
  53. package/dist/types/rpc.js.map +1 -1
  54. package/package.json +2 -2
  55. package/dist/context_impl.d.ts.map +0 -1
  56. package/dist/endpoint/components.d.ts.map +0 -1
  57. package/dist/endpoint/discovery.d.ts +0 -184
  58. package/dist/endpoint/discovery.d.ts.map +0 -1
  59. package/dist/endpoint/discovery.js +0 -7
  60. package/dist/endpoint/discovery.js.map +0 -1
  61. package/dist/endpoint/endpoint.d.ts.map +0 -1
  62. package/dist/endpoint/handlers/core_logging.d.ts +0 -14
  63. package/dist/endpoint/handlers/core_logging.d.ts.map +0 -1
  64. package/dist/endpoint/handlers/discovery.d.ts +0 -5
  65. package/dist/endpoint/handlers/discovery.d.ts.map +0 -1
  66. package/dist/endpoint/handlers/fetch.d.ts +0 -5
  67. package/dist/endpoint/handlers/fetch.d.ts.map +0 -1
  68. package/dist/endpoint/handlers/generic.d.ts +0 -5
  69. package/dist/endpoint/handlers/generic.d.ts.map +0 -1
  70. package/dist/endpoint/handlers/lambda.d.ts +0 -10
  71. package/dist/endpoint/handlers/lambda.d.ts.map +0 -1
  72. package/dist/endpoint/handlers/preview.d.ts +0 -5
  73. package/dist/endpoint/handlers/preview.d.ts.map +0 -1
  74. package/dist/endpoint/handlers/types.d.ts.map +0 -1
  75. package/dist/endpoint/handlers/types.js +0 -2
  76. package/dist/endpoint/handlers/types.js.map +0 -1
  77. package/dist/endpoint/handlers/utils.d.ts +0 -23
  78. package/dist/endpoint/handlers/utils.d.ts.map +0 -1
  79. package/dist/endpoint/handlers/vm/sdk_shared_core_wasm_bindings.d.ts +0 -446
  80. package/dist/endpoint/handlers/vm/sdk_shared_core_wasm_bindings.d.ts.map +0 -1
  81. package/dist/endpoint/node_endpoint.d.ts +0 -28
  82. package/dist/endpoint/node_endpoint.d.ts.map +0 -1
  83. package/dist/endpoint/types.js +0 -2
  84. package/dist/endpoint/types.js.map +0 -1
  85. package/dist/endpoint/withOptions.d.ts +0 -4
  86. package/dist/endpoint/withOptions.d.ts.map +0 -1
  87. package/dist/endpoint.js +0 -12
  88. package/dist/endpoint.js.map +0 -1
  89. package/dist/error_sanitization.d.ts +0 -13
  90. package/dist/error_sanitization.d.ts.map +0 -1
  91. package/dist/hooks.js +0 -2
  92. package/dist/hooks.js.map +0 -1
  93. package/dist/index.d.ts.map +0 -1
  94. package/dist/index.js.map +0 -1
  95. package/dist/io.d.ts.map +0 -1
  96. package/dist/logging/console_logger_transport.d.ts +0 -5
  97. package/dist/logging/console_logger_transport.d.ts.map +0 -1
  98. package/dist/logging/logger.d.ts.map +0 -1
  99. package/dist/user_agent.d.ts +0 -2
  100. package/dist/user_agent.d.ts.map +0 -1
  101. package/dist/utils/external_progress_channel.d.ts +0 -19
  102. package/dist/utils/external_progress_channel.d.ts.map +0 -1
  103. package/dist/utils/rand.d.ts +0 -13
  104. package/dist/utils/rand.d.ts.map +0 -1
@@ -1,10 +0,0 @@
1
- import type { APIGatewayProxyEvent, APIGatewayProxyEventV2, APIGatewayProxyResult, APIGatewayProxyStructuredResultV2, Context } from "aws-lambda";
2
- import { RestateHandler } from "./types.js";
3
- export declare class LambdaHandler {
4
- private readonly handler;
5
- private readonly compressionSupported;
6
- constructor(handler: RestateHandler, compressionSupported: boolean);
7
- handleRequest(event: APIGatewayProxyEvent | APIGatewayProxyEventV2, context: Context): Promise<APIGatewayProxyResult | APIGatewayProxyStructuredResultV2>;
8
- }
9
- export declare function isCompressionSupported(): boolean;
10
- //# sourceMappingURL=lambda.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lambda.d.ts","sourceRoot":"","sources":["../../../src/endpoint/handlers/lambda.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,iCAAiC,EACjC,OAAO,EACR,MAAM,YAAY,CAAC;AAKpB,OAAO,EAA6B,cAAc,EAAE,MAAM,YAAY,CAAC;AASvE,qBAAa,aAAa;IAEtB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBADpB,OAAO,EAAE,cAAc,EACvB,oBAAoB,EAAE,OAAO;IAG1C,aAAa,CACjB,KAAK,EAAE,oBAAoB,GAAG,sBAAsB,EACpD,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,qBAAqB,GAAG,iCAAiC,CAAC;CAuJtE;AAED,wBAAgB,sBAAsB,YAErC"}
@@ -1,5 +0,0 @@
1
- import type { Endpoint } from "../endpoint.js";
2
- import type { PreviewPathComponents } from "../components.js";
3
- import type { RestateResponse } from "./types.js";
4
- export declare function handlePreview(endpoint: Endpoint, previewPathComponent: PreviewPathComponents): RestateResponse;
5
- //# sourceMappingURL=preview.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../src/endpoint/handlers/preview.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAG9D,OAAO,KAAK,EAIV,eAAe,EAChB,MAAM,YAAY,CAAC;AAGpB,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,QAAQ,EAClB,oBAAoB,EAAE,qBAAqB,GAC1C,eAAe,CAmBjB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","s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,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAE7B,QAAQ,EAAE,QAAQ,CAAC;IAEnB,MAAM,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,eAAe,CAAC;CAC/E"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/endpoint/handlers/types.ts"],"names":[],"mappings":""}
@@ -1,23 +0,0 @@
1
- import { LoggerTransport } from "../../logging/logger_transport.js";
2
- import type { Headers, InputReader, ResponseHeaders, RestateResponse } from "./types.js";
3
- import { Logger } from "../../logging/logger.js";
4
- export declare function tryCreateContextualLogger(loggerTransport: LoggerTransport, url: string, headers: Headers, additionalContext?: {
5
- [name: string]: string;
6
- }): Logger | undefined;
7
- export declare function invocationIdFromHeaders(headers: Headers): string;
8
- export declare function errorResponse(code: number, message: string): RestateResponse;
9
- export declare function simpleResponse(statusCode: number, headers: ResponseHeaders, body: Uint8Array): RestateResponse;
10
- export declare function emptyInputReader(): InputReader;
11
- /**
12
- * Bundles a `writeHead` callback with a Promise that resolves once the head
13
- * is committed. Used by adapters (fetch, lambda) that need to observe the
14
- * head commit from outside the `process()` call.
15
- */
16
- export declare function captureHead(): {
17
- writeHead: (statusCode: number, headers: ResponseHeaders) => void;
18
- head: Promise<{
19
- statusCode: number;
20
- headers: ResponseHeaders;
21
- }>;
22
- };
23
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/endpoint/handlers/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EAChB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EACV,OAAO,EACP,WAAW,EACX,eAAe,EACf,eAAe,EAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAgB,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAI/D,wBAAgB,yBAAyB,CACvC,eAAe,EAAE,eAAe,EAChC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,OAAO,EAChB,iBAAiB,CAAC,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAC7C,MAAM,GAAG,SAAS,CAuBpB;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,UASvD;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,eAAe,CAS5E;AAED,wBAAgB,cAAc,CAC5B,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,UAAU,GACf,eAAe,CAgBjB;AAED,wBAAgB,gBAAgB,IAAI,WAAW,CAE9C;AAED;;;;GAIG;AACH,wBAAgB,WAAW,IAAI;IAC7B,SAAS,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,KAAK,IAAI,CAAC;IAClE,IAAI,EAAE,OAAO,CAAC;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,eAAe,CAAA;KAAE,CAAC,CAAC;CACjE,CAWA"}
@@ -1,446 +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
- */
194
- constructor(headers: WasmHeader[], log_level: LogLevel, logger_id: number, disable_payload_checks: boolean, explicit_cancellation: boolean, on_journal_mismatch: WasmJournalMismatchBehavior);
195
- __destroy_into_raw(): any;
196
- __wbg_ptr: any;
197
- free(): void;
198
- /**
199
- * @param {WasmUnresolvedFuture} future
200
- * @returns {WasmDoProgressResult}
201
- */
202
- do_progress(future: WasmUnresolvedFuture): WasmDoProgressResult;
203
- /**
204
- * @param {string} key
205
- * @returns {number}
206
- */
207
- ephemeral_state_get(key: string): number;
208
- /**
209
- * @returns {WasmResponseHead}
210
- */
211
- get_response_head(): WasmResponseHead;
212
- /**
213
- * @param {number} handle
214
- * @returns {boolean}
215
- */
216
- is_completed(handle: number): boolean;
217
- /**
218
- * @returns {boolean}
219
- */
220
- is_processing(): boolean;
221
- /**
222
- * @returns {boolean}
223
- */
224
- is_ready_to_execute(): boolean;
225
- /**
226
- * @returns {number}
227
- */
228
- last_command_index(): number;
229
- /**
230
- * @param {string} error_message
231
- * @param {string | null} [stacktrace]
232
- */
233
- notify_error(error_message: string, stacktrace?: string | null): void;
234
- /**
235
- * @param {string} error_message
236
- * @param {string | null | undefined} stacktrace
237
- * @param {WasmCommandType} wasm_command_type
238
- */
239
- notify_error_for_next_command(error_message: string, stacktrace: string | null | undefined, wasm_command_type: WasmCommandType): void;
240
- /**
241
- * @param {string} error_message
242
- * @param {string | null | undefined} stacktrace
243
- * @param {WasmCommandType} wasm_command_type
244
- * @param {number} command_index
245
- * @param {string | null} [command_name]
246
- */
247
- notify_error_for_specific_command(error_message: string, stacktrace: string | null | undefined, wasm_command_type: WasmCommandType, command_index: number, command_name?: string | null): void;
248
- /**
249
- * @param {string} error_message
250
- * @param {string | null} [stacktrace]
251
- * @param {bigint | null} [delay_override]
252
- */
253
- notify_error_with_delay_override(error_message: string, stacktrace?: string | null, delay_override?: bigint | null): void;
254
- /**
255
- * @param {Uint8Array} buffer
256
- */
257
- notify_input(buffer: Uint8Array): void;
258
- notify_input_closed(): void;
259
- /**
260
- * @param {number} handle
261
- * @param {WasmFailure} value
262
- */
263
- propose_run_completion_failure(handle: number, value: WasmFailure): void;
264
- /**
265
- * @param {number} handle
266
- * @param {string} error_message
267
- * @param {string | null | undefined} error_stacktrace
268
- * @param {bigint} attempt_duration
269
- * @param {WasmExponentialRetryConfig | null} [config]
270
- */
271
- propose_run_completion_failure_transient(handle: number, error_message: string, error_stacktrace: string | null | undefined, attempt_duration: bigint, config?: WasmExponentialRetryConfig | null): void;
272
- /**
273
- * @param {number} handle
274
- * @param {string} error_message
275
- * @param {string | null | undefined} error_stacktrace
276
- * @param {bigint} attempt_duration
277
- * @param {bigint | null} [delay_override]
278
- * @param {number | null} [max_retry_attempts_override]
279
- * @param {bigint | null} [max_retry_duration_override]
280
- */
281
- 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;
282
- /**
283
- * @param {number} handle
284
- * @param {string} error_message
285
- * @param {string | null | undefined} error_stacktrace
286
- * @param {bigint} attempt_duration
287
- */
288
- propose_run_completion_failure_transient_with_pause(handle: number, error_message: string, error_stacktrace: string | null | undefined, attempt_duration: bigint): void;
289
- /**
290
- * @param {number} handle
291
- * @param {Uint8Array} buffer
292
- */
293
- propose_run_completion_success(handle: number, buffer: Uint8Array): void;
294
- /**
295
- * @param {string} invocation_id
296
- * @returns {number}
297
- */
298
- sys_attach_invocation(invocation_id: string): number;
299
- /**
300
- * @returns {WasmAwakeable}
301
- */
302
- sys_awakeable(): WasmAwakeable;
303
- /**
304
- * @param {string} service
305
- * @param {string} handler
306
- * @param {Uint8Array} buffer
307
- * @param {string | null | undefined} key
308
- * @param {WasmHeader[]} headers
309
- * @param {string | null} [idempotency_key]
310
- * @param {string | null} [scope]
311
- * @param {string | null} [limit_key]
312
- * @param {string | null} [name]
313
- * @returns {WasmCallHandle}
314
- */
315
- 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;
316
- /**
317
- * @param {string} target_invocation_id
318
- */
319
- sys_cancel_invocation(target_invocation_id: string): void;
320
- sys_clear_all_state(): void;
321
- /**
322
- * @param {string} key
323
- */
324
- sys_clear_state(key: string): void;
325
- /**
326
- * @param {string} id
327
- * @param {WasmFailure} value
328
- */
329
- sys_complete_awakeable_failure(id: string, value: WasmFailure): void;
330
- /**
331
- * @param {string} id
332
- * @param {Uint8Array} buffer
333
- */
334
- sys_complete_awakeable_success(id: string, buffer: Uint8Array): void;
335
- /**
336
- * @param {string} key
337
- * @param {WasmFailure} value
338
- * @returns {number}
339
- */
340
- sys_complete_promise_failure(key: string, value: WasmFailure): number;
341
- /**
342
- * @param {string} key
343
- * @param {Uint8Array} buffer
344
- * @returns {number}
345
- */
346
- sys_complete_promise_success(key: string, buffer: Uint8Array): number;
347
- /**
348
- * @param {string} invocation_id
349
- * @param {string} signal_name
350
- * @param {WasmFailure} value
351
- */
352
- sys_complete_signal_failure(invocation_id: string, signal_name: string, value: WasmFailure): void;
353
- /**
354
- * @param {string} invocation_id
355
- * @param {string} signal_name
356
- * @param {Uint8Array} buffer
357
- */
358
- sys_complete_signal_success(invocation_id: string, signal_name: string, buffer: Uint8Array): void;
359
- sys_end(): void;
360
- /**
361
- * @param {string} invocation_id
362
- * @returns {number}
363
- */
364
- sys_get_invocation_output(invocation_id: string): number;
365
- /**
366
- * @param {string} key
367
- * @returns {number}
368
- */
369
- sys_get_promise(key: string): number;
370
- /**
371
- * @param {string} key
372
- * @returns {number}
373
- */
374
- sys_get_state(key: string): number;
375
- /**
376
- * @returns {number}
377
- */
378
- sys_get_state_keys(): number;
379
- /**
380
- * @returns {WasmInput}
381
- */
382
- sys_input(): WasmInput;
383
- /**
384
- * @param {string} key
385
- * @returns {number}
386
- */
387
- sys_peek_promise(key: string): number;
388
- /**
389
- * @param {string} name
390
- * @returns {WasmRun}
391
- */
392
- sys_run(name: string): WasmRun;
393
- /**
394
- * @param {string} service
395
- * @param {string} handler
396
- * @param {Uint8Array} buffer
397
- * @param {string | null | undefined} key
398
- * @param {WasmHeader[]} headers
399
- * @param {bigint | null} [delay]
400
- * @param {string | null} [idempotency_key]
401
- * @param {string | null} [scope]
402
- * @param {string | null} [limit_key]
403
- * @param {string | null} [name]
404
- * @returns {WasmSendHandle}
405
- */
406
- 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;
407
- /**
408
- * @param {string} key
409
- * @param {Uint8Array} buffer
410
- */
411
- sys_set_state(key: string, buffer: Uint8Array): void;
412
- /**
413
- * @param {string} signal_name
414
- * @returns {number}
415
- */
416
- sys_signal(signal_name: string): number;
417
- /**
418
- * @param {bigint} millis
419
- * @param {string | null} [name]
420
- * @returns {number}
421
- */
422
- sys_sleep(millis: bigint, name?: string | null): number;
423
- /**
424
- * @param {WasmFailure} value
425
- */
426
- sys_write_output_failure(value: WasmFailure): void;
427
- /**
428
- * @param {Uint8Array} buffer
429
- */
430
- sys_write_output_success(buffer: Uint8Array): void;
431
- /**
432
- * @param {number} ephemeral_notification_handle
433
- * @returns {WasmAsyncResultValue}
434
- */
435
- take_ephemeral_notification(ephemeral_notification_handle: number): WasmAsyncResultValue;
436
- /**
437
- * @param {number} handle
438
- * @returns {WasmAsyncResultValue}
439
- */
440
- take_notification(handle: number): WasmAsyncResultValue;
441
- /**
442
- * @returns {Uint8Array}
443
- */
444
- take_output(): Uint8Array;
445
- }
446
- //# sourceMappingURL=sdk_shared_core_wasm_bindings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sdk_shared_core_wasm_bindings.d.ts","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M,eACN,MAAM,UACN,UAAU,QA6BpB;IACD,gBAKC;IACD;;;OAGG;IACH,yCAHW,MAAM,GACJ,MAAM,CAkBlB;IACD;;;OAGG;IACH,qBAHW,MAAM,GACJ,MAAM,CAclB;IACD;;;OAGG;IACH,mBAHW,MAAM,GACJ,MAAM,CAclB;IACD;;OAEG;IACH,sBAFa,MAAM,CAQlB;IACD;;OAEG;IACH,aAFa,SAAS,CAQrB;IACD;;;OAGG;IACH,sBAHW,MAAM,GACJ,MAAM,CAclB;IACD;;;OAGG;IACH,cAHW,MAAM,GACJ,OAAO,CAcnB;IACD;;;;;;;;;;;;OAYG;IACH,kBAZW,MAAM,WACN,MAAM,UACN,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;;;OAGG;IACH,mBAHW,MAAM,UACN,UAAU,QAqBpB;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;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,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
@@ -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
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=hooks.js.map
package/dist/hooks.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../src/hooks.ts"],"names":[],"mappings":""}
@@ -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"}
@@ -1,2 +0,0 @@
1
- export declare const X_RESTATE_SERVER: string;
2
- //# sourceMappingURL=user_agent.d.ts.map
@@ -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"}