@restatedev/restate-sdk 1.17.4 → 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.
- 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/endpoint/components.cjs +28 -6
- package/dist/endpoint/components.js +28 -6
- package/dist/endpoint/components.js.map +1 -1
- 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/fetch.d.cts +2 -2
- package/dist/fetch.d.ts +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/lambda.d.cts +2 -2
- package/dist/lambda.d.ts +2 -2
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- 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,5 +0,0 @@
|
|
|
1
|
-
import type { RestateResponse } from "./types.js";
|
|
2
|
-
import type { Endpoint } from "../endpoint.js";
|
|
3
|
-
import type { Endpoint as EndpointManifest, ProtocolMode } from "../discovery.js";
|
|
4
|
-
export declare function handleDiscovery(endpoint: Endpoint, protocolMode: ProtocolMode, additionalDiscoveryFields: Partial<EndpointManifest>, acceptVersionsString: string | string[] | undefined): RestateResponse;
|
|
5
|
-
//# sourceMappingURL=discovery.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../../src/endpoint/handlers/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EACV,QAAQ,IAAI,gBAAgB,EAC5B,YAAY,EACb,MAAM,iBAAiB,CAAC;AAQzB,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,yBAAyB,EAAE,OAAO,CAAC,gBAAgB,CAAC,EACpD,oBAAoB,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,GAClD,eAAe,CA0HjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../src/endpoint/handlers/fetch.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAOjD,wBAAgB,OAAO,CAAC,OAAO,EAAE,cAAc;mBAE5B,OAAO,gBAAgB,OAAO,EAAE,KAAG,OAAO,CAAC,QAAQ,CAAC;EAiEtE"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Endpoint as EndpointManifest, ProtocolMode } from "../discovery.js";
|
|
2
|
-
import type { Endpoint } from "../endpoint.js";
|
|
3
|
-
import { type RestateHandler } from "./types.js";
|
|
4
|
-
export declare function createRestateHandler(endpoint: Endpoint, protocolMode: ProtocolMode, additionalDiscoveryFields: Partial<EndpointManifest>): RestateHandler;
|
|
5
|
-
//# sourceMappingURL=generic.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generic.d.ts","sourceRoot":"","sources":["../../../src/endpoint/handlers/generic.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EACV,QAAQ,IAAI,gBAAgB,EAC5B,YAAY,EACb,MAAM,iBAAiB,CAAC;AAyBzB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EACL,KAAK,cAAc,EAQpB,MAAM,YAAY,CAAC;AAkBpB,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,yBAAyB,EAAE,OAAO,CAAC,gBAAgB,CAAC,GACnD,cAAc,CAMhB"}
|
|
@@ -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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AE,OAAO,EAAE,eAAe,KAAK,IAAI,CAAC;QAClE,WAAW,EAAE,WAAW,CAAC;KAC1B,GAAG,OAAO,CAAC,IAAI,CAAC,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 +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,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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ACV,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"}
|