@restatedev/restate-sdk-core 1.17.1 → 1.17.3
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/core.d.ts +27 -29
- package/dist/core.d.ts.map +1 -1
- package/dist/duration.d.ts +11 -8
- package/dist/duration.d.ts.map +1 -1
- package/dist/duration.js +9 -23
- package/dist/duration.js.map +1 -1
- package/dist/entry_codec.d.ts +22 -19
- package/dist/entry_codec.d.ts.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +7 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -14
- package/dist/interface.cjs +24 -16
- package/dist/interface.d.cts +37 -11
- package/dist/interface.d.cts.map +1 -1
- package/dist/interface.d.ts +81 -50
- package/dist/interface.d.ts.map +1 -1
- package/dist/interface.js +74 -60
- package/dist/interface.js.map +1 -1
- package/dist/serde_api.d.ts +111 -106
- package/dist/serde_api.d.ts.map +1 -1
- package/dist/serde_api.js +88 -152
- package/dist/serde_api.js.map +1 -1
- package/dist/standard_schema.d.ts +109 -108
- package/dist/standard_schema.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/core.d.ts
CHANGED
|
@@ -1,33 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
}
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export type HandlerReturnType<T> = T extends (ctx: any, input: any) => Promise<infer R> ? R : never;
|
|
13
|
-
export type ServiceHandler<F, C = RestateContext> = F extends (ctx: C) => Promise<any> ? F : F extends (ctx: C, input: any) => Promise<any> ? F : (ctx: C, input?: any) => Promise<any>;
|
|
14
|
-
export type ServiceDefinition<P extends string, M> = {
|
|
15
|
-
name: P;
|
|
1
|
+
//#region src/core.d.ts
|
|
2
|
+
interface RestateContext {}
|
|
3
|
+
interface RestateObjectContext {}
|
|
4
|
+
interface RestateObjectSharedContext {}
|
|
5
|
+
interface RestateWorkflowSharedContext extends RestateObjectSharedContext {}
|
|
6
|
+
interface RestateWorkflowContext extends RestateObjectContext, RestateWorkflowSharedContext {}
|
|
7
|
+
type ArgType<T> = T extends ((ctx: any) => any) ? void : T extends ((ctx: any, input: infer I) => any) ? I : never;
|
|
8
|
+
type HandlerReturnType<T> = T extends ((ctx: any, input: any) => Promise<infer R>) ? R : never;
|
|
9
|
+
type ServiceHandler<F, C = RestateContext> = F extends ((ctx: C) => Promise<any>) ? F : F extends ((ctx: C, input: any) => Promise<any>) ? F : (ctx: C, input?: any) => Promise<any>;
|
|
10
|
+
type ServiceDefinition<P extends string, M> = {
|
|
11
|
+
name: P;
|
|
16
12
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
type Service<M> = M extends ServiceDefinition<string, infer S> ? S : M;
|
|
14
|
+
type ServiceDefinitionFrom<M> = M extends ServiceDefinition<string, unknown> ? M : ServiceDefinition<string, M>;
|
|
15
|
+
type ObjectSharedHandler<F, SC = RestateObjectSharedContext> = F extends ((ctx: SC, param: any) => Promise<any>) ? F : F extends ((ctx: SC) => Promise<any>) ? F : (ctx: SC, param?: any) => Promise<any>;
|
|
16
|
+
type ObjectHandler<F, C = RestateObjectContext> = F extends ((ctx: C, param: any) => Promise<any>) ? F : F extends ((ctx: C) => Promise<any>) ? F : (ctx: C, param?: any) => Promise<any>;
|
|
17
|
+
type VirtualObjectDefinition<P extends string, M> = {
|
|
18
|
+
name: P;
|
|
23
19
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
type VirtualObject<M> = M extends VirtualObjectDefinition<string, infer O> ? O : M;
|
|
21
|
+
type VirtualObjectDefinitionFrom<M> = M extends VirtualObjectDefinition<string, unknown> ? M : VirtualObjectDefinition<string, M>;
|
|
22
|
+
type WorkflowSharedHandler<F, SC = RestateWorkflowSharedContext> = F extends ((ctx: SC, param: any) => Promise<any>) ? F : F extends ((ctx: SC) => Promise<any>) ? F : (ctx: SC, param?: any) => Promise<any>;
|
|
23
|
+
type WorkflowHandler<F, C = RestateWorkflowContext> = F extends ((ctx: C, param: any) => Promise<any>) ? F : F extends ((ctx: C) => Promise<any>) ? F : (ctx: C, param?: any) => Promise<any>;
|
|
24
|
+
type WorkflowDefinition<P extends string, M> = {
|
|
25
|
+
name: P;
|
|
30
26
|
};
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
type Workflow<M> = M extends WorkflowDefinition<string, infer W> ? W : M;
|
|
28
|
+
type WorkflowDefinitionFrom<M> = M extends WorkflowDefinition<string, unknown> ? M : WorkflowDefinition<string, M>;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { ArgType, HandlerReturnType, ObjectHandler, ObjectSharedHandler, RestateContext, RestateObjectContext, RestateObjectSharedContext, RestateWorkflowContext, RestateWorkflowSharedContext, Service, ServiceDefinition, ServiceDefinitionFrom, ServiceHandler, VirtualObject, VirtualObjectDefinition, VirtualObjectDefinitionFrom, Workflow, WorkflowDefinition, WorkflowDefinitionFrom, WorkflowHandler, WorkflowSharedHandler };
|
|
33
31
|
//# sourceMappingURL=core.d.ts.map
|
package/dist/core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","
|
|
1
|
+
{"version":3,"file":"core.d.ts","names":[],"sources":["../src/core.ts"],"sourcesContent":[],"mappings":";UAeiB,cAAA,EAAjB;AACiB,UAAA,oBAAA,CAAoB,CACrC;AAGiB,UAHA,0BAAA,CAG6B,CAC9C;AAKY,UANK,4BAAA,SAAqC,0BAMnC,CAAA;AAEf,UAPa,sBAAA,SACP,oBAMN,EAN4B,4BAM5B,CAAA;AACG,KAHK,OAGL,CAAA,CAAA,CAAA,GAHkB,CAGlB,UAAA,CAAA,GAAA,EAAA,GAAA,EAAA,GAAA,GAAA,IAA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+
type Duration = {
|
|
6
|
+
days?: number;
|
|
7
|
+
hours?: number;
|
|
8
|
+
minutes?: number;
|
|
9
|
+
seconds?: number;
|
|
10
|
+
milliseconds?: number;
|
|
10
11
|
};
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
declare function millisOrDurationToMillis(duration: number | Duration): number;
|
|
13
|
+
declare function durationToMillis(duration: Duration): number;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Duration, durationToMillis, millisOrDurationToMillis };
|
|
13
16
|
//# sourceMappingURL=duration.d.ts.map
|
package/dist/duration.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duration.d.ts","
|
|
1
|
+
{"version":3,"file":"duration.d.ts","names":[],"sources":["../src/duration.ts"],"sourcesContent":[],"mappings":";;AAcA;AAQA;AAQgB,KAhBJ,QAAA,GAgBoB;;;;;;;iBARhB,wBAAA,oBAA4C;iBAQ5C,gBAAA,WAA2B"}
|
package/dist/duration.js
CHANGED
|
@@ -1,26 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 function millisOrDurationToMillis(duration) {
|
|
12
|
-
if (typeof duration === "number") {
|
|
13
|
-
return Math.trunc(duration);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
return Math.trunc(durationToMillis(duration));
|
|
17
|
-
}
|
|
1
|
+
//#region src/duration.ts
|
|
2
|
+
function millisOrDurationToMillis(duration) {
|
|
3
|
+
if (typeof duration === "number") return Math.trunc(duration);
|
|
4
|
+
else return Math.trunc(durationToMillis(duration));
|
|
18
5
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
1000 * (duration.seconds ?? 0) +
|
|
22
|
-
1000 * 60 * (duration.minutes ?? 0) +
|
|
23
|
-
1000 * 60 * 60 * (duration.hours ?? 0) +
|
|
24
|
-
1000 * 60 * 60 * 24 * (duration.days ?? 0));
|
|
6
|
+
function durationToMillis(duration) {
|
|
7
|
+
return (duration.milliseconds ?? 0) + 1e3 * (duration.seconds ?? 0) + 1e3 * 60 * (duration.minutes ?? 0) + 1e3 * 60 * 60 * (duration.hours ?? 0) + 1e3 * 60 * 60 * 24 * (duration.days ?? 0);
|
|
25
8
|
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { durationToMillis, millisOrDurationToMillis };
|
|
26
12
|
//# sourceMappingURL=duration.js.map
|
package/dist/duration.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duration.js","
|
|
1
|
+
{"version":3,"file":"duration.js","names":[],"sources":["../src/duration.ts"],"sourcesContent":["/*\n * Copyright (c) 2023-2025 - Restate Software, Inc., Restate GmbH\n *\n * This file is part of the Restate SDK for Node.js/TypeScript,\n * which is released under the MIT license.\n *\n * You can find a copy of the license in file LICENSE in the root\n * directory of this repository or package, or at\n * https://github.com/restatedev/sdk-typescript/blob/main/LICENSE\n */\n\n/**\n * Duration type. Note that fields are additive.\n */\nexport type Duration = {\n days?: number;\n hours?: number;\n minutes?: number;\n seconds?: number;\n milliseconds?: number;\n};\n\nexport function millisOrDurationToMillis(duration: number | Duration): number {\n if (typeof duration === \"number\") {\n return Math.trunc(duration);\n } else {\n return Math.trunc(durationToMillis(duration));\n }\n}\n\nexport function durationToMillis(duration: Duration): number {\n return (\n (duration.milliseconds ?? 0) +\n 1000 * (duration.seconds ?? 0) +\n 1000 * 60 * (duration.minutes ?? 0) +\n 1000 * 60 * 60 * (duration.hours ?? 0) +\n 1000 * 60 * 60 * 24 * (duration.days ?? 0)\n );\n}\n"],"mappings":";AAsBA,SAAgB,yBAAyB,UAAqC;AAC5E,KAAI,OAAO,aAAa,SACtB,QAAO,KAAK,MAAM,SAAS;KAE3B,QAAO,KAAK,MAAM,iBAAiB,SAAS,CAAC;;AAIjD,SAAgB,iBAAiB,UAA4B;AAC3D,SACG,SAAS,gBAAgB,KAC1B,OAAQ,SAAS,WAAW,KAC5B,MAAO,MAAM,SAAS,WAAW,KACjC,MAAO,KAAK,MAAM,SAAS,SAAS,KACpC,MAAO,KAAK,KAAK,MAAM,SAAS,QAAQ"}
|
package/dist/entry_codec.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/entry_codec.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Journal values codec.
|
|
3
4
|
*
|
|
@@ -12,24 +13,26 @@
|
|
|
12
13
|
*
|
|
13
14
|
* @experimental
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
16
|
+
type JournalValueCodec = {
|
|
17
|
+
/**
|
|
18
|
+
* Encodes the given buffer.
|
|
19
|
+
*
|
|
20
|
+
* This will be applied *after* serialization.
|
|
21
|
+
*
|
|
22
|
+
* @param buf The buffer to encode. Empty byte buffers should be appropriately handled as well.
|
|
23
|
+
* @returns The encoded buffer
|
|
24
|
+
*/
|
|
25
|
+
encode(buf: Uint8Array): Uint8Array;
|
|
26
|
+
/**
|
|
27
|
+
* Decodes the given buffer.
|
|
28
|
+
*
|
|
29
|
+
* This will be applied *before* deserialization.
|
|
30
|
+
*
|
|
31
|
+
* @param buf The buffer to decode.
|
|
32
|
+
* @returns A promise that resolves to the decoded buffer.
|
|
33
|
+
*/
|
|
34
|
+
decode(buf: Uint8Array): Promise<Uint8Array>;
|
|
34
35
|
};
|
|
36
|
+
//#endregion
|
|
37
|
+
export { JournalValueCodec };
|
|
35
38
|
//# sourceMappingURL=entry_codec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry_codec.d.ts","
|
|
1
|
+
{"version":3,"file":"entry_codec.d.ts","names":[],"sources":["../src/entry_codec.ts"],"sourcesContent":[],"mappings":";;AAyBA;;;;;;;;;;;;;KAAY,iBAAA;;;;;;;;;cASE,aAAa;;;;;;;;;cAUb,aAAa,QAAQ"}
|
package/dist/index.d.cts
CHANGED
|
@@ -3,5 +3,5 @@ import { StandardJSONSchemaV1, StandardSchemaV1, StandardTypedV1 } from "./stand
|
|
|
3
3
|
import { Serde, serde } from "./serde_api.cjs";
|
|
4
4
|
import { Duration, durationToMillis, millisOrDurationToMillis } from "./duration.cjs";
|
|
5
5
|
import { JournalValueCodec } from "./entry_codec.cjs";
|
|
6
|
-
import { Descriptor, HandlerDescriptor, ImplementedDefinition, ImplementedObjectDefinition, ImplementedServiceDefinition, ImplementedWorkflowDefinition, InferInput, InferOutput, ObjectDescriptor, SerdeType, ServiceDescriptor, ServiceInterface, WorkflowDescriptor, iface, makeHandlerDescriptor } from "./interface.cjs";
|
|
7
|
-
export { type ArgType, type Descriptor, type Duration, type HandlerDescriptor, type HandlerReturnType, type ImplementedDefinition, type ImplementedObjectDefinition, type ImplementedServiceDefinition, type ImplementedWorkflowDefinition, type InferInput, type InferOutput, type JournalValueCodec, type ObjectDescriptor, type ObjectHandler, type ObjectSharedHandler, type RestateContext, type RestateObjectContext, type RestateObjectSharedContext, type RestateWorkflowContext, type RestateWorkflowSharedContext, type Serde, type SerdeType, type Service, type ServiceDefinition, type ServiceDefinitionFrom, type ServiceDescriptor, type ServiceHandler, type ServiceInterface, type StandardJSONSchemaV1, type StandardSchemaV1, type StandardTypedV1, type VirtualObject, type VirtualObjectDefinition, type VirtualObjectDefinitionFrom, type Workflow, type WorkflowDefinition, type WorkflowDefinitionFrom, type WorkflowDescriptor, type WorkflowHandler, type WorkflowSharedHandler, durationToMillis, iface, makeHandlerDescriptor, millisOrDurationToMillis, serde };
|
|
6
|
+
import { Descriptor, DescriptorOpts, HandlerDescriptor, ImplementedDefinition, ImplementedObjectDefinition, ImplementedServiceDefinition, ImplementedWorkflowDefinition, InferInput, InferOutput, ObjectDescriptor, SerdeType, ServiceDescriptor, ServiceInterface, WorkflowDescriptor, iface, makeHandlerDescriptor } from "./interface.cjs";
|
|
7
|
+
export { type ArgType, type Descriptor, type DescriptorOpts, type Duration, type HandlerDescriptor, type HandlerReturnType, type ImplementedDefinition, type ImplementedObjectDefinition, type ImplementedServiceDefinition, type ImplementedWorkflowDefinition, type InferInput, type InferOutput, type JournalValueCodec, type ObjectDescriptor, type ObjectHandler, type ObjectSharedHandler, type RestateContext, type RestateObjectContext, type RestateObjectSharedContext, type RestateWorkflowContext, type RestateWorkflowSharedContext, type Serde, type SerdeType, type Service, type ServiceDefinition, type ServiceDefinitionFrom, type ServiceDescriptor, type ServiceHandler, type ServiceInterface, type StandardJSONSchemaV1, type StandardSchemaV1, type StandardTypedV1, type VirtualObject, type VirtualObjectDefinition, type VirtualObjectDefinitionFrom, type Workflow, type WorkflowDefinition, type WorkflowDefinitionFrom, type WorkflowDescriptor, type WorkflowHandler, type WorkflowSharedHandler, durationToMillis, iface, makeHandlerDescriptor, millisOrDurationToMillis, serde };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export type
|
|
8
|
-
export { iface, makeHandlerDescriptor } from "./interface.js";
|
|
9
|
-
export type { ServiceInterface, HandlerDescriptor, Descriptor, ServiceDescriptor, ObjectDescriptor, WorkflowDescriptor, ImplementedServiceDefinition, ImplementedObjectDefinition, ImplementedWorkflowDefinition, ImplementedDefinition, InferInput, InferOutput, SerdeType, } from "./interface.js";
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { ArgType, HandlerReturnType, ObjectHandler, ObjectSharedHandler, RestateContext, RestateObjectContext, RestateObjectSharedContext, RestateWorkflowContext, RestateWorkflowSharedContext, Service, ServiceDefinition, ServiceDefinitionFrom, ServiceHandler, VirtualObject, VirtualObjectDefinition, VirtualObjectDefinitionFrom, Workflow, WorkflowDefinition, WorkflowDefinitionFrom, WorkflowHandler, WorkflowSharedHandler } from "./core.js";
|
|
2
|
+
import { StandardJSONSchemaV1, StandardSchemaV1, StandardTypedV1 } from "./standard_schema.js";
|
|
3
|
+
import { Serde, serde } from "./serde_api.js";
|
|
4
|
+
import { Duration, durationToMillis, millisOrDurationToMillis } from "./duration.js";
|
|
5
|
+
import { JournalValueCodec } from "./entry_codec.js";
|
|
6
|
+
import { Descriptor, DescriptorOpts, HandlerDescriptor, ImplementedDefinition, ImplementedObjectDefinition, ImplementedServiceDefinition, ImplementedWorkflowDefinition, InferInput, InferOutput, ObjectDescriptor, SerdeType, ServiceDescriptor, ServiceInterface, WorkflowDescriptor, iface, makeHandlerDescriptor } from "./interface.js";
|
|
7
|
+
export { type ArgType, type Descriptor, type DescriptorOpts, type Duration, type HandlerDescriptor, type HandlerReturnType, type ImplementedDefinition, type ImplementedObjectDefinition, type ImplementedServiceDefinition, type ImplementedWorkflowDefinition, type InferInput, type InferOutput, type JournalValueCodec, type ObjectDescriptor, type ObjectHandler, type ObjectSharedHandler, type RestateContext, type RestateObjectContext, type RestateObjectSharedContext, type RestateWorkflowContext, type RestateWorkflowSharedContext, type Serde, type SerdeType, type Service, type ServiceDefinition, type ServiceDefinitionFrom, type ServiceDescriptor, type ServiceHandler, type ServiceInterface, type StandardJSONSchemaV1, type StandardSchemaV1, type StandardTypedV1, type VirtualObject, type VirtualObjectDefinition, type VirtualObjectDefinitionFrom, type Workflow, type WorkflowDefinition, type WorkflowDefinitionFrom, type WorkflowDescriptor, type WorkflowHandler, type WorkflowSharedHandler, durationToMillis, iface, makeHandlerDescriptor, millisOrDurationToMillis, serde };
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAWA,YAAY,EACV,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,qBAAqB,EACrB,oBAAoB,EACpB,0BAA0B,EAC1B,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,uBAAuB,EACvB,2BAA2B,EAC3B,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,4BAA4B,EAC5B,QAAQ,EACR,sBAAsB,EACtB,OAAO,EACP,iBAAiB,GAClB,MAAM,WAAW,CAAC;AAEnB,YAAY,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAE3E,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC9D,YAAY,EACV,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,4BAA4B,EAC5B,2BAA2B,EAC3B,6BAA6B,EAC7B,qBAAqB,EACrB,UAAU,EACV,WAAW,EACX,SAAS,GACV,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAWA,YAAY,EACV,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,qBAAqB,EACrB,oBAAoB,EACpB,0BAA0B,EAC1B,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,uBAAuB,EACvB,2BAA2B,EAC3B,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,4BAA4B,EAC5B,QAAQ,EACR,sBAAsB,EACtB,OAAO,EACP,iBAAiB,GAClB,MAAM,WAAW,CAAC;AAEnB,YAAY,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAE3E,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC9D,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,4BAA4B,EAC5B,2BAA2B,EAC3B,6BAA6B,EAC7B,qBAAqB,EACrB,UAAU,EACV,WAAW,EACX,SAAS,GACV,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 { serde } from "./serde_api.js";
|
|
12
|
-
export { durationToMillis, millisOrDurationToMillis } from "./duration.js";
|
|
13
|
-
export { iface, makeHandlerDescriptor } from "./interface.js";
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { serde } from "./serde_api.js";
|
|
2
|
+
import { durationToMillis, millisOrDurationToMillis } from "./duration.js";
|
|
3
|
+
import { iface, makeHandlerDescriptor } from "./interface.js";
|
|
4
|
+
|
|
5
|
+
export { durationToMillis, iface, makeHandlerDescriptor, millisOrDurationToMillis, serde };
|
package/dist/interface.cjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
const require_serde_api = require('./serde_api.cjs');
|
|
2
2
|
|
|
3
3
|
//#region src/interface.ts
|
|
4
|
-
function makeHandlerDescriptor(inputSerde, outputSerde, shared) {
|
|
4
|
+
function makeHandlerDescriptor(inputSerde, outputSerde, shared, opts) {
|
|
5
5
|
return {
|
|
6
6
|
_inputSerde: inputSerde,
|
|
7
7
|
_outputSerde: outputSerde,
|
|
8
|
-
_shared: shared
|
|
8
|
+
_shared: shared,
|
|
9
|
+
_description: opts?.description,
|
|
10
|
+
_metadata: opts?.metadata
|
|
9
11
|
};
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
@@ -23,45 +25,51 @@ function makeHandlerDescriptor(inputSerde, outputSerde, shared) {
|
|
|
23
25
|
* ```
|
|
24
26
|
*/
|
|
25
27
|
const iface = {
|
|
26
|
-
service: function(name, handlers) {
|
|
28
|
+
service: function(name, handlers, opts) {
|
|
27
29
|
return {
|
|
28
30
|
name,
|
|
29
31
|
_kind: "service",
|
|
30
|
-
_handlers: handlers
|
|
32
|
+
_handlers: handlers,
|
|
33
|
+
_description: opts?.description,
|
|
34
|
+
_metadata: opts?.metadata
|
|
31
35
|
};
|
|
32
36
|
},
|
|
33
|
-
object: function(name, handlers) {
|
|
37
|
+
object: function(name, handlers, opts) {
|
|
34
38
|
return {
|
|
35
39
|
name,
|
|
36
40
|
_kind: "object",
|
|
37
|
-
_handlers: handlers
|
|
41
|
+
_handlers: handlers,
|
|
42
|
+
_description: opts?.description,
|
|
43
|
+
_metadata: opts?.metadata
|
|
38
44
|
};
|
|
39
45
|
},
|
|
40
|
-
workflow: function(name, handlers) {
|
|
46
|
+
workflow: function(name, handlers, opts) {
|
|
41
47
|
return {
|
|
42
48
|
name,
|
|
43
49
|
_kind: "workflow",
|
|
44
|
-
_handlers: handlers
|
|
50
|
+
_handlers: handlers,
|
|
51
|
+
_description: opts?.description,
|
|
52
|
+
_metadata: opts?.metadata
|
|
45
53
|
};
|
|
46
54
|
},
|
|
47
|
-
json: function() {
|
|
48
|
-
return makeHandlerDescriptor(void 0, void 0, false);
|
|
55
|
+
json: function(opts) {
|
|
56
|
+
return makeHandlerDescriptor(void 0, void 0, false, opts);
|
|
49
57
|
},
|
|
50
58
|
serdes: function(opts) {
|
|
51
|
-
return makeHandlerDescriptor(opts.input, opts.output, false);
|
|
59
|
+
return makeHandlerDescriptor(opts.input, opts.output, false, opts);
|
|
52
60
|
},
|
|
53
61
|
schemas: function(opts) {
|
|
54
|
-
return makeHandlerDescriptor(opts.input ? require_serde_api.serde.schema(opts.input) : void 0, opts.output ? require_serde_api.serde.schema(opts.output) : void 0, false);
|
|
62
|
+
return makeHandlerDescriptor(opts.input ? require_serde_api.serde.schema(opts.input) : void 0, opts.output ? require_serde_api.serde.schema(opts.output) : void 0, false, opts);
|
|
55
63
|
},
|
|
56
64
|
shared: {
|
|
57
|
-
json: function() {
|
|
58
|
-
return makeHandlerDescriptor(void 0, void 0, true);
|
|
65
|
+
json: function(opts) {
|
|
66
|
+
return makeHandlerDescriptor(void 0, void 0, true, opts);
|
|
59
67
|
},
|
|
60
68
|
serdes: function(opts) {
|
|
61
|
-
return makeHandlerDescriptor(opts.input, opts.output, true);
|
|
69
|
+
return makeHandlerDescriptor(opts.input, opts.output, true, opts);
|
|
62
70
|
},
|
|
63
71
|
schemas: function(opts) {
|
|
64
|
-
return makeHandlerDescriptor(opts.input ? require_serde_api.serde.schema(opts.input) : void 0, opts.output ? require_serde_api.serde.schema(opts.output) : void 0, true);
|
|
72
|
+
return makeHandlerDescriptor(opts.input ? require_serde_api.serde.schema(opts.input) : void 0, opts.output ? require_serde_api.serde.schema(opts.output) : void 0, true, opts);
|
|
65
73
|
}
|
|
66
74
|
}
|
|
67
75
|
};
|
package/dist/interface.d.cts
CHANGED
|
@@ -4,6 +4,24 @@ import { Serde } from "./serde_api.cjs";
|
|
|
4
4
|
|
|
5
5
|
//#region src/interface.d.ts
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Documentation and metadata that can be attached to a service/object/workflow
|
|
9
|
+
* contract or to a single handler declared with {@link iface}.
|
|
10
|
+
*
|
|
11
|
+
* These values are advisory: they are folded into the service definition when the
|
|
12
|
+
* contract is implemented (see `implement()`), and surface in the discovery manifest
|
|
13
|
+
* as `documentation` (from {@link description}) and `metadata`.
|
|
14
|
+
*/
|
|
15
|
+
type DescriptorOpts = {
|
|
16
|
+
/**
|
|
17
|
+
* Human-readable description, shown in documentation/admin tools.
|
|
18
|
+
*/
|
|
19
|
+
description?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Arbitrary key/value metadata, exposed via the Admin API.
|
|
22
|
+
*/
|
|
23
|
+
metadata?: Record<string, string>;
|
|
24
|
+
};
|
|
7
25
|
/**
|
|
8
26
|
* Minimal descriptor stored in {@link Descriptor}._handlers per handler.
|
|
9
27
|
*/
|
|
@@ -12,8 +30,12 @@ type HandlerDescriptor<I$1 = any, O$1 = any, Shared extends boolean = boolean> =
|
|
|
12
30
|
readonly _outputSerde?: Serde<O$1>;
|
|
13
31
|
/** @internal virtual-object handler shared/exclusive marker (phantom + runtime) */
|
|
14
32
|
readonly _shared?: Shared;
|
|
33
|
+
/** @internal handler description declared on the contract */
|
|
34
|
+
readonly _description?: string;
|
|
35
|
+
/** @internal handler metadata declared on the contract */
|
|
36
|
+
readonly _metadata?: Record<string, string>;
|
|
15
37
|
};
|
|
16
|
-
declare function makeHandlerDescriptor<I$1, O$1, Shared extends boolean = false>(inputSerde?: Serde<I$1>, outputSerde?: Serde<O$1>, shared?: Shared): HandlerDescriptor<I$1, O$1, Shared>;
|
|
38
|
+
declare function makeHandlerDescriptor<I$1, O$1, Shared extends boolean = false>(inputSerde?: Serde<I$1>, outputSerde?: Serde<O$1>, shared?: Shared, opts?: DescriptorOpts): HandlerDescriptor<I$1, O$1, Shared>;
|
|
17
39
|
/** Recover the input type declared by a {@link HandlerDescriptor}. */
|
|
18
40
|
type InferInput<D> = D extends HandlerDescriptor<infer I, any, any> ? I : any;
|
|
19
41
|
/** Recover the output type declared by a {@link HandlerDescriptor}. */
|
|
@@ -24,6 +46,10 @@ type Descriptor<P extends string = string, H extends Record<string, HandlerDescr
|
|
|
24
46
|
readonly name: P;
|
|
25
47
|
readonly _kind: Kind;
|
|
26
48
|
readonly _handlers: H;
|
|
49
|
+
/** @internal service description declared on the contract */
|
|
50
|
+
readonly _description?: string;
|
|
51
|
+
/** @internal service metadata declared on the contract */
|
|
52
|
+
readonly _metadata?: Record<string, string>;
|
|
27
53
|
};
|
|
28
54
|
type ServiceDescriptor<P extends string = string, H extends Record<string, HandlerDescriptor> = Record<string, HandlerDescriptor>> = Descriptor<P, H, "service">;
|
|
29
55
|
type ObjectDescriptor<P extends string = string, H extends Record<string, HandlerDescriptor> = Record<string, HandlerDescriptor>> = Descriptor<P, H, "object">;
|
|
@@ -35,32 +61,32 @@ type ImplementedWorkflowDefinition<P extends string, H extends Record<string, Ha
|
|
|
35
61
|
type ImplementedDefinition<P extends string, H extends Record<string, HandlerDescriptor>, Kind extends "service" | "object" | "workflow"> = Kind extends "service" ? ImplementedServiceDefinition<P, H> : Kind extends "object" ? ImplementedObjectDefinition<P, H> : ImplementedWorkflowDefinition<P, H>;
|
|
36
62
|
/** The shape of the {@link iface} service-interface declaration API. */
|
|
37
63
|
interface ServiceInterface {
|
|
38
|
-
service<P extends string, H extends Record<string, HandlerDescriptor>>(name: P, handlers: H): ServiceDescriptor<P, H>;
|
|
39
|
-
object<P extends string, H extends Record<string, HandlerDescriptor>>(name: P, handlers: H): ObjectDescriptor<P, H>;
|
|
40
|
-
workflow<P extends string, H extends Record<string, HandlerDescriptor>>(name: P, handlers: H): WorkflowDescriptor<P, H>;
|
|
64
|
+
service<P extends string, H extends Record<string, HandlerDescriptor>>(name: P, handlers: H, opts?: DescriptorOpts): ServiceDescriptor<P, H>;
|
|
65
|
+
object<P extends string, H extends Record<string, HandlerDescriptor>>(name: P, handlers: H, opts?: DescriptorOpts): ObjectDescriptor<P, H>;
|
|
66
|
+
workflow<P extends string, H extends Record<string, HandlerDescriptor>>(name: P, handlers: H, opts?: DescriptorOpts): WorkflowDescriptor<P, H>;
|
|
41
67
|
/** `json<I, O>()` — type params, default JSON serde. */
|
|
42
|
-
json<I$1 = void, O$1 = void>(): HandlerDescriptor<I$1, O$1, false>;
|
|
68
|
+
json<I$1 = void, O$1 = void>(opts?: DescriptorOpts): HandlerDescriptor<I$1, O$1, false>;
|
|
43
69
|
/** `serdes({ input, output })` — explicit Serde per direction. */
|
|
44
70
|
serdes<SI extends Serde<any>, SO extends Serde<any>>(opts: {
|
|
45
71
|
input?: SI;
|
|
46
72
|
output?: SO;
|
|
47
|
-
}): HandlerDescriptor<SerdeType<SI>, SerdeType<SO>, false>;
|
|
73
|
+
} & DescriptorOpts): HandlerDescriptor<SerdeType<SI>, SerdeType<SO>, false>;
|
|
48
74
|
/** `schemas({ input, output })` — Standard Schema per direction. */
|
|
49
75
|
schemas<SI extends StandardSchemaV1<any>, SO extends StandardSchemaV1<any>>(opts: {
|
|
50
76
|
input?: SI;
|
|
51
77
|
output?: SO;
|
|
52
|
-
}): HandlerDescriptor<StandardSchemaV1.InferOutput<NonNullable<SI>>, StandardSchemaV1.InferOutput<NonNullable<SO>>, false>;
|
|
78
|
+
} & DescriptorOpts): HandlerDescriptor<StandardSchemaV1.InferOutput<NonNullable<SI>>, StandardSchemaV1.InferOutput<NonNullable<SO>>, false>;
|
|
53
79
|
/** Shared (read-only) virtual-object / non-`run` workflow handler declarators. */
|
|
54
80
|
shared: {
|
|
55
|
-
json<I$1 = void, O$1 = void>(): HandlerDescriptor<I$1, O$1, true>;
|
|
81
|
+
json<I$1 = void, O$1 = void>(opts?: DescriptorOpts): HandlerDescriptor<I$1, O$1, true>;
|
|
56
82
|
serdes<SI extends Serde<any>, SO extends Serde<any>>(opts: {
|
|
57
83
|
input?: SI;
|
|
58
84
|
output?: SO;
|
|
59
|
-
}): HandlerDescriptor<SerdeType<SI>, SerdeType<SO>, true>;
|
|
85
|
+
} & DescriptorOpts): HandlerDescriptor<SerdeType<SI>, SerdeType<SO>, true>;
|
|
60
86
|
schemas<SI extends StandardSchemaV1<any>, SO extends StandardSchemaV1<any>>(opts: {
|
|
61
87
|
input?: SI;
|
|
62
88
|
output?: SO;
|
|
63
|
-
}): HandlerDescriptor<StandardSchemaV1.InferOutput<NonNullable<SI>>, StandardSchemaV1.InferOutput<NonNullable<SO>>, true>;
|
|
89
|
+
} & DescriptorOpts): HandlerDescriptor<StandardSchemaV1.InferOutput<NonNullable<SI>>, StandardSchemaV1.InferOutput<NonNullable<SO>>, true>;
|
|
64
90
|
};
|
|
65
91
|
}
|
|
66
92
|
/**
|
|
@@ -79,5 +105,5 @@ interface ServiceInterface {
|
|
|
79
105
|
*/
|
|
80
106
|
declare const iface: ServiceInterface;
|
|
81
107
|
//#endregion
|
|
82
|
-
export { Descriptor, HandlerDescriptor, ImplementedDefinition, ImplementedObjectDefinition, ImplementedServiceDefinition, ImplementedWorkflowDefinition, InferInput, InferOutput, ObjectDescriptor, SerdeType, ServiceDescriptor, ServiceInterface, WorkflowDescriptor, iface, makeHandlerDescriptor };
|
|
108
|
+
export { Descriptor, DescriptorOpts, HandlerDescriptor, ImplementedDefinition, ImplementedObjectDefinition, ImplementedServiceDefinition, ImplementedWorkflowDefinition, InferInput, InferOutput, ObjectDescriptor, SerdeType, ServiceDescriptor, ServiceInterface, WorkflowDescriptor, iface, makeHandlerDescriptor };
|
|
83
109
|
//# sourceMappingURL=interface.d.cts.map
|
package/dist/interface.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.d.cts","names":[],"sources":["../src/interface.ts"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"interface.d.cts","names":[],"sources":["../src/interface.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA6BA;AAcA;;;;;AAQqB,KAtBT,cAAA,GAsBS;EAIE;;AAGvB;EACqB,WAAA,CAAA,EAAA,MAAA;EAAN;;;EAEJ,QAAA,CAAA,EAxBE,MAwBF,CAAA,MAAA,EAAA,MAAA,CAAA;CACF;;;;AACN,KApBS,iBAoBT,CAAA,MAAA,GAAA,EAAA,MAAA,GAAA,EAAA,eAAA,OAAA,GAAA,OAAA,CAAA,GAAA;EAAiB,SAAA,WAAA,CAAA,EAfK,KAeL,CAfW,GAeX,CAAA;EAWR,SAAA,YAAU,CAAA,EAzBI,KAyBJ,CAzBU,GAyBV,CAAA;EACpB;EAAU,SAAA,OAAA,CAAA,EAxBS,MAwBT;EAAuC;EAAC,SAAA,YAAA,CAAA,EAAA,MAAA;EAExC;EACV,SAAA,SAAA,CAAA,EAvBqB,MAuBrB,CAAA,MAAA,EAAA,MAAA,CAAA;CAAU;AAAuC,iBApBnC,qBAoBmC,CAAA,GAAA,EAAA,GAAA,EAAA,eAAA,OAAA,GAAA,KAAA,CAAA,CAAA,UAAA,CAAA,EAnBpC,KAmBoC,CAnB9B,GAmB8B,CAAA,EAAA,WAAA,CAAA,EAlBnC,KAkBmC,CAlB7B,GAkB6B,CAAA,EAAA,MAAA,CAAA,EAjBxC,MAiBwC,EAAA,IAAA,CAAA,EAhB1C,cAgB0C,CAAA,EAfhD,iBAegD,CAf9B,GAe8B,EAf3B,GAe2B,EAfxB,MAewB,CAAA;;AAEvC,KANA,UAMS,CAAA,CAAA,CAAA,GALnB,CAKmB,SALT,iBAKS,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,GAAA,CAAA,GAL8B,CAK9B,GAAA,GAAA;;AAAgB,KAHzB,WAGyB,CAAA,CAAA,CA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