@cellaflow/sdk 0.7.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/cellaflow/v1/common_pb.d.ts +119 -0
- package/dist/cellaflow/v1/common_pb.d.ts.map +1 -0
- package/dist/cellaflow/v1/common_pb.js +166 -0
- package/dist/cellaflow/v1/common_pb.js.map +1 -0
- package/dist/cellaflow/v1/idempotency_pb.d.ts +378 -0
- package/dist/cellaflow/v1/idempotency_pb.d.ts.map +1 -0
- package/dist/cellaflow/v1/idempotency_pb.js +513 -0
- package/dist/cellaflow/v1/idempotency_pb.js.map +1 -0
- package/dist/cellaflow/v1/internal_pb.d.ts +201 -0
- package/dist/cellaflow/v1/internal_pb.d.ts.map +1 -0
- package/dist/cellaflow/v1/internal_pb.js +254 -0
- package/dist/cellaflow/v1/internal_pb.js.map +1 -0
- package/dist/cellaflow/v1/service_connect.d.ts +84 -0
- package/dist/cellaflow/v1/service_connect.d.ts.map +1 -0
- package/dist/cellaflow/v1/service_connect.js +88 -0
- package/dist/cellaflow/v1/service_connect.js.map +1 -0
- package/dist/cellaflow/v1/service_pb.d.ts +172 -0
- package/dist/cellaflow/v1/service_pb.d.ts.map +1 -0
- package/dist/cellaflow/v1/service_pb.js +266 -0
- package/dist/cellaflow/v1/service_pb.js.map +1 -0
- package/dist/client.d.ts +88 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +187 -0
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/serialization.d.ts +18 -0
- package/dist/serialization.d.ts.map +1 -0
- package/dist/serialization.js +41 -0
- package/dist/serialization.js.map +1 -0
- package/package.json +59 -0
- package/src/cellaflow/v1/common_pb.ts +195 -0
- package/src/cellaflow/v1/idempotency_pb.ts +591 -0
- package/src/cellaflow/v1/internal_pb.ts +308 -0
- package/src/cellaflow/v1/service_connect.ts +90 -0
- package/src/cellaflow/v1/service_pb.ts +323 -0
- package/src/client.ts +277 -0
- package/src/index.ts +7 -0
- package/src/serialization.ts +53 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
import { StepResult } from "./common_pb.js";
|
|
4
|
+
import { IdempotencyCommitStatus } from "./idempotency_pb.js";
|
|
5
|
+
/**
|
|
6
|
+
* @generated from message cellaflow.v1.StartSessionRequest
|
|
7
|
+
*/
|
|
8
|
+
export declare class StartSessionRequest extends Message<StartSessionRequest> {
|
|
9
|
+
/**
|
|
10
|
+
* @generated from field: string workflow_id = 1;
|
|
11
|
+
*/
|
|
12
|
+
workflowId: string;
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: string version = 2;
|
|
15
|
+
*/
|
|
16
|
+
version: string;
|
|
17
|
+
/**
|
|
18
|
+
* Optional client-proposed session identifier.
|
|
19
|
+
*
|
|
20
|
+
* @generated from field: optional string session_id = 3;
|
|
21
|
+
*/
|
|
22
|
+
sessionId?: string;
|
|
23
|
+
constructor(data?: PartialMessage<StartSessionRequest>);
|
|
24
|
+
static readonly runtime: typeof proto3;
|
|
25
|
+
static readonly typeName = "cellaflow.v1.StartSessionRequest";
|
|
26
|
+
static readonly fields: FieldList;
|
|
27
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartSessionRequest;
|
|
28
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartSessionRequest;
|
|
29
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartSessionRequest;
|
|
30
|
+
static equals(a: StartSessionRequest | PlainMessage<StartSessionRequest> | undefined, b: StartSessionRequest | PlainMessage<StartSessionRequest> | undefined): boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @generated from message cellaflow.v1.StartSessionResponse
|
|
34
|
+
*/
|
|
35
|
+
export declare class StartSessionResponse extends Message<StartSessionResponse> {
|
|
36
|
+
/**
|
|
37
|
+
* @generated from field: string session_id = 1;
|
|
38
|
+
*/
|
|
39
|
+
sessionId: string;
|
|
40
|
+
/**
|
|
41
|
+
* @generated from field: string version = 2;
|
|
42
|
+
*/
|
|
43
|
+
version: string;
|
|
44
|
+
/**
|
|
45
|
+
* @generated from field: bool is_recovered = 3;
|
|
46
|
+
*/
|
|
47
|
+
isRecovered: boolean;
|
|
48
|
+
constructor(data?: PartialMessage<StartSessionResponse>);
|
|
49
|
+
static readonly runtime: typeof proto3;
|
|
50
|
+
static readonly typeName = "cellaflow.v1.StartSessionResponse";
|
|
51
|
+
static readonly fields: FieldList;
|
|
52
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartSessionResponse;
|
|
53
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartSessionResponse;
|
|
54
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartSessionResponse;
|
|
55
|
+
static equals(a: StartSessionResponse | PlainMessage<StartSessionResponse> | undefined, b: StartSessionResponse | PlainMessage<StartSessionResponse> | undefined): boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @generated from message cellaflow.v1.CommitStepRequest
|
|
59
|
+
*/
|
|
60
|
+
export declare class CommitStepRequest extends Message<CommitStepRequest> {
|
|
61
|
+
/**
|
|
62
|
+
* @generated from field: string session_id = 1;
|
|
63
|
+
*/
|
|
64
|
+
sessionId: string;
|
|
65
|
+
/**
|
|
66
|
+
* @generated from field: cellaflow.v1.StepResult step_result = 2;
|
|
67
|
+
*/
|
|
68
|
+
stepResult?: StepResult;
|
|
69
|
+
/**
|
|
70
|
+
* Idempotency lease validation fields
|
|
71
|
+
*
|
|
72
|
+
* @generated from field: optional string idempotency_key = 10;
|
|
73
|
+
*/
|
|
74
|
+
idempotencyKey?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Required whenever idempotency_key is set
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: optional uint64 idempotency_fencing_token = 11;
|
|
79
|
+
*/
|
|
80
|
+
idempotencyFencingToken?: bigint;
|
|
81
|
+
constructor(data?: PartialMessage<CommitStepRequest>);
|
|
82
|
+
static readonly runtime: typeof proto3;
|
|
83
|
+
static readonly typeName = "cellaflow.v1.CommitStepRequest";
|
|
84
|
+
static readonly fields: FieldList;
|
|
85
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CommitStepRequest;
|
|
86
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CommitStepRequest;
|
|
87
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CommitStepRequest;
|
|
88
|
+
static equals(a: CommitStepRequest | PlainMessage<CommitStepRequest> | undefined, b: CommitStepRequest | PlainMessage<CommitStepRequest> | undefined): boolean;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @generated from message cellaflow.v1.CommitStepResponse
|
|
92
|
+
*/
|
|
93
|
+
export declare class CommitStepResponse extends Message<CommitStepResponse> {
|
|
94
|
+
/**
|
|
95
|
+
* @generated from field: string session_id = 1;
|
|
96
|
+
*/
|
|
97
|
+
sessionId: string;
|
|
98
|
+
/**
|
|
99
|
+
* @generated from field: uint64 next_sequence = 2;
|
|
100
|
+
*/
|
|
101
|
+
nextSequence: bigint;
|
|
102
|
+
/**
|
|
103
|
+
* @generated from field: optional cellaflow.v1.IdempotencyCommitStatus idempotency_status = 5;
|
|
104
|
+
*/
|
|
105
|
+
idempotencyStatus?: IdempotencyCommitStatus;
|
|
106
|
+
constructor(data?: PartialMessage<CommitStepResponse>);
|
|
107
|
+
static readonly runtime: typeof proto3;
|
|
108
|
+
static readonly typeName = "cellaflow.v1.CommitStepResponse";
|
|
109
|
+
static readonly fields: FieldList;
|
|
110
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CommitStepResponse;
|
|
111
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CommitStepResponse;
|
|
112
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CommitStepResponse;
|
|
113
|
+
static equals(a: CommitStepResponse | PlainMessage<CommitStepResponse> | undefined, b: CommitStepResponse | PlainMessage<CommitStepResponse> | undefined): boolean;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* @generated from message cellaflow.v1.GetGraphRequest
|
|
117
|
+
*/
|
|
118
|
+
export declare class GetGraphRequest extends Message<GetGraphRequest> {
|
|
119
|
+
/**
|
|
120
|
+
* @generated from field: string session_id = 1;
|
|
121
|
+
*/
|
|
122
|
+
sessionId: string;
|
|
123
|
+
/**
|
|
124
|
+
* Maximum number of items to retrieve in a single page.
|
|
125
|
+
* Enforced limits: Default = 100, Max = 1000.
|
|
126
|
+
*
|
|
127
|
+
* @generated from field: optional uint32 limit = 2;
|
|
128
|
+
*/
|
|
129
|
+
limit?: number;
|
|
130
|
+
/**
|
|
131
|
+
* Cursor for pagination token.
|
|
132
|
+
*
|
|
133
|
+
* @generated from field: optional string cursor = 3;
|
|
134
|
+
*/
|
|
135
|
+
cursor?: string;
|
|
136
|
+
constructor(data?: PartialMessage<GetGraphRequest>);
|
|
137
|
+
static readonly runtime: typeof proto3;
|
|
138
|
+
static readonly typeName = "cellaflow.v1.GetGraphRequest";
|
|
139
|
+
static readonly fields: FieldList;
|
|
140
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetGraphRequest;
|
|
141
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetGraphRequest;
|
|
142
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetGraphRequest;
|
|
143
|
+
static equals(a: GetGraphRequest | PlainMessage<GetGraphRequest> | undefined, b: GetGraphRequest | PlainMessage<GetGraphRequest> | undefined): boolean;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* @generated from message cellaflow.v1.GetGraphResponse
|
|
147
|
+
*/
|
|
148
|
+
export declare class GetGraphResponse extends Message<GetGraphResponse> {
|
|
149
|
+
/**
|
|
150
|
+
* @generated from field: string session_id = 1;
|
|
151
|
+
*/
|
|
152
|
+
sessionId: string;
|
|
153
|
+
/**
|
|
154
|
+
* @generated from field: repeated cellaflow.v1.StepResult steps = 2;
|
|
155
|
+
*/
|
|
156
|
+
steps: StepResult[];
|
|
157
|
+
/**
|
|
158
|
+
* Token for fetching the next page, or empty if there are no more pages.
|
|
159
|
+
*
|
|
160
|
+
* @generated from field: optional string next_cursor = 3;
|
|
161
|
+
*/
|
|
162
|
+
nextCursor?: string;
|
|
163
|
+
constructor(data?: PartialMessage<GetGraphResponse>);
|
|
164
|
+
static readonly runtime: typeof proto3;
|
|
165
|
+
static readonly typeName = "cellaflow.v1.GetGraphResponse";
|
|
166
|
+
static readonly fields: FieldList;
|
|
167
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetGraphResponse;
|
|
168
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetGraphResponse;
|
|
169
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetGraphResponse;
|
|
170
|
+
static equals(a: GetGraphResponse | PlainMessage<GetGraphResponse> | undefined, b: GetGraphResponse | PlainMessage<GetGraphResponse> | undefined): boolean;
|
|
171
|
+
}
|
|
172
|
+
//# sourceMappingURL=service_pb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service_pb.d.ts","sourceRoot":"","sources":["../../../src/cellaflow/v1/service_pb.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACjI,OAAO,EAAE,OAAO,EAAE,MAAM,E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CAErJ;CACF;AAED;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,OAAO,CAAC,gBAAgB,CAAC;IAC7D;;OAEG;IACH,SAAS,SAAM;IAEf;;OAEG;IACH,KAAK,EAAE,UAAU,EAAE,CAAM;IAEzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,YAAY,IAAI,CAAC,EAAE,cAAc,CAAC,gBAAgB,CAAC,EAGlD;IAED,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,MAAM,CAAU;IAChD,MAAM,CAAC,QAAQ,CAAC,QAAQ,mCAAmC;IAC3D,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAI9B;IAEH,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,gBAAgB,CAE3F;IAED,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,gBAAgB,CAE1F;IAED,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,gBAAgB,CAE9F;IAED,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,gBAAgB,GAAG,YAAY,CAAC,gBAAgB,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,gBAAgB,GAAG,YAAY,CAAC,gBAAgB,CAAC,GAAG,SAAS,GAAG,OAAO,CAEzJ;CACF"}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=.js"
|
|
2
|
+
// @generated from file cellaflow/v1/service.proto (package cellaflow.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
6
|
+
import { StepResult } from "./common_pb.js";
|
|
7
|
+
import { IdempotencyCommitStatus } from "./idempotency_pb.js";
|
|
8
|
+
/**
|
|
9
|
+
* @generated from message cellaflow.v1.StartSessionRequest
|
|
10
|
+
*/
|
|
11
|
+
export class StartSessionRequest extends Message {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from field: string workflow_id = 1;
|
|
14
|
+
*/
|
|
15
|
+
workflowId = "";
|
|
16
|
+
/**
|
|
17
|
+
* @generated from field: string version = 2;
|
|
18
|
+
*/
|
|
19
|
+
version = "";
|
|
20
|
+
/**
|
|
21
|
+
* Optional client-proposed session identifier.
|
|
22
|
+
*
|
|
23
|
+
* @generated from field: optional string session_id = 3;
|
|
24
|
+
*/
|
|
25
|
+
sessionId;
|
|
26
|
+
constructor(data) {
|
|
27
|
+
super();
|
|
28
|
+
proto3.util.initPartial(data, this);
|
|
29
|
+
}
|
|
30
|
+
static runtime = proto3;
|
|
31
|
+
static typeName = "cellaflow.v1.StartSessionRequest";
|
|
32
|
+
static fields = proto3.util.newFieldList(() => [
|
|
33
|
+
{ no: 1, name: "workflow_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
34
|
+
{ no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
35
|
+
{ no: 3, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
36
|
+
]);
|
|
37
|
+
static fromBinary(bytes, options) {
|
|
38
|
+
return new StartSessionRequest().fromBinary(bytes, options);
|
|
39
|
+
}
|
|
40
|
+
static fromJson(jsonValue, options) {
|
|
41
|
+
return new StartSessionRequest().fromJson(jsonValue, options);
|
|
42
|
+
}
|
|
43
|
+
static fromJsonString(jsonString, options) {
|
|
44
|
+
return new StartSessionRequest().fromJsonString(jsonString, options);
|
|
45
|
+
}
|
|
46
|
+
static equals(a, b) {
|
|
47
|
+
return proto3.util.equals(StartSessionRequest, a, b);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @generated from message cellaflow.v1.StartSessionResponse
|
|
52
|
+
*/
|
|
53
|
+
export class StartSessionResponse extends Message {
|
|
54
|
+
/**
|
|
55
|
+
* @generated from field: string session_id = 1;
|
|
56
|
+
*/
|
|
57
|
+
sessionId = "";
|
|
58
|
+
/**
|
|
59
|
+
* @generated from field: string version = 2;
|
|
60
|
+
*/
|
|
61
|
+
version = "";
|
|
62
|
+
/**
|
|
63
|
+
* @generated from field: bool is_recovered = 3;
|
|
64
|
+
*/
|
|
65
|
+
isRecovered = false;
|
|
66
|
+
constructor(data) {
|
|
67
|
+
super();
|
|
68
|
+
proto3.util.initPartial(data, this);
|
|
69
|
+
}
|
|
70
|
+
static runtime = proto3;
|
|
71
|
+
static typeName = "cellaflow.v1.StartSessionResponse";
|
|
72
|
+
static fields = proto3.util.newFieldList(() => [
|
|
73
|
+
{ no: 1, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
74
|
+
{ no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
75
|
+
{ no: 3, name: "is_recovered", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
76
|
+
]);
|
|
77
|
+
static fromBinary(bytes, options) {
|
|
78
|
+
return new StartSessionResponse().fromBinary(bytes, options);
|
|
79
|
+
}
|
|
80
|
+
static fromJson(jsonValue, options) {
|
|
81
|
+
return new StartSessionResponse().fromJson(jsonValue, options);
|
|
82
|
+
}
|
|
83
|
+
static fromJsonString(jsonString, options) {
|
|
84
|
+
return new StartSessionResponse().fromJsonString(jsonString, options);
|
|
85
|
+
}
|
|
86
|
+
static equals(a, b) {
|
|
87
|
+
return proto3.util.equals(StartSessionResponse, a, b);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @generated from message cellaflow.v1.CommitStepRequest
|
|
92
|
+
*/
|
|
93
|
+
export class CommitStepRequest extends Message {
|
|
94
|
+
/**
|
|
95
|
+
* @generated from field: string session_id = 1;
|
|
96
|
+
*/
|
|
97
|
+
sessionId = "";
|
|
98
|
+
/**
|
|
99
|
+
* @generated from field: cellaflow.v1.StepResult step_result = 2;
|
|
100
|
+
*/
|
|
101
|
+
stepResult;
|
|
102
|
+
/**
|
|
103
|
+
* Idempotency lease validation fields
|
|
104
|
+
*
|
|
105
|
+
* @generated from field: optional string idempotency_key = 10;
|
|
106
|
+
*/
|
|
107
|
+
idempotencyKey;
|
|
108
|
+
/**
|
|
109
|
+
* Required whenever idempotency_key is set
|
|
110
|
+
*
|
|
111
|
+
* @generated from field: optional uint64 idempotency_fencing_token = 11;
|
|
112
|
+
*/
|
|
113
|
+
idempotencyFencingToken;
|
|
114
|
+
constructor(data) {
|
|
115
|
+
super();
|
|
116
|
+
proto3.util.initPartial(data, this);
|
|
117
|
+
}
|
|
118
|
+
static runtime = proto3;
|
|
119
|
+
static typeName = "cellaflow.v1.CommitStepRequest";
|
|
120
|
+
static fields = proto3.util.newFieldList(() => [
|
|
121
|
+
{ no: 1, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
122
|
+
{ no: 2, name: "step_result", kind: "message", T: StepResult },
|
|
123
|
+
{ no: 10, name: "idempotency_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
124
|
+
{ no: 11, name: "idempotency_fencing_token", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
|
|
125
|
+
]);
|
|
126
|
+
static fromBinary(bytes, options) {
|
|
127
|
+
return new CommitStepRequest().fromBinary(bytes, options);
|
|
128
|
+
}
|
|
129
|
+
static fromJson(jsonValue, options) {
|
|
130
|
+
return new CommitStepRequest().fromJson(jsonValue, options);
|
|
131
|
+
}
|
|
132
|
+
static fromJsonString(jsonString, options) {
|
|
133
|
+
return new CommitStepRequest().fromJsonString(jsonString, options);
|
|
134
|
+
}
|
|
135
|
+
static equals(a, b) {
|
|
136
|
+
return proto3.util.equals(CommitStepRequest, a, b);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* @generated from message cellaflow.v1.CommitStepResponse
|
|
141
|
+
*/
|
|
142
|
+
export class CommitStepResponse extends Message {
|
|
143
|
+
/**
|
|
144
|
+
* @generated from field: string session_id = 1;
|
|
145
|
+
*/
|
|
146
|
+
sessionId = "";
|
|
147
|
+
/**
|
|
148
|
+
* @generated from field: uint64 next_sequence = 2;
|
|
149
|
+
*/
|
|
150
|
+
nextSequence = protoInt64.zero;
|
|
151
|
+
/**
|
|
152
|
+
* @generated from field: optional cellaflow.v1.IdempotencyCommitStatus idempotency_status = 5;
|
|
153
|
+
*/
|
|
154
|
+
idempotencyStatus;
|
|
155
|
+
constructor(data) {
|
|
156
|
+
super();
|
|
157
|
+
proto3.util.initPartial(data, this);
|
|
158
|
+
}
|
|
159
|
+
static runtime = proto3;
|
|
160
|
+
static typeName = "cellaflow.v1.CommitStepResponse";
|
|
161
|
+
static fields = proto3.util.newFieldList(() => [
|
|
162
|
+
{ no: 1, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
163
|
+
{ no: 2, name: "next_sequence", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
164
|
+
{ no: 5, name: "idempotency_status", kind: "enum", T: proto3.getEnumType(IdempotencyCommitStatus), opt: true },
|
|
165
|
+
]);
|
|
166
|
+
static fromBinary(bytes, options) {
|
|
167
|
+
return new CommitStepResponse().fromBinary(bytes, options);
|
|
168
|
+
}
|
|
169
|
+
static fromJson(jsonValue, options) {
|
|
170
|
+
return new CommitStepResponse().fromJson(jsonValue, options);
|
|
171
|
+
}
|
|
172
|
+
static fromJsonString(jsonString, options) {
|
|
173
|
+
return new CommitStepResponse().fromJsonString(jsonString, options);
|
|
174
|
+
}
|
|
175
|
+
static equals(a, b) {
|
|
176
|
+
return proto3.util.equals(CommitStepResponse, a, b);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* @generated from message cellaflow.v1.GetGraphRequest
|
|
181
|
+
*/
|
|
182
|
+
export class GetGraphRequest extends Message {
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: string session_id = 1;
|
|
185
|
+
*/
|
|
186
|
+
sessionId = "";
|
|
187
|
+
/**
|
|
188
|
+
* Maximum number of items to retrieve in a single page.
|
|
189
|
+
* Enforced limits: Default = 100, Max = 1000.
|
|
190
|
+
*
|
|
191
|
+
* @generated from field: optional uint32 limit = 2;
|
|
192
|
+
*/
|
|
193
|
+
limit;
|
|
194
|
+
/**
|
|
195
|
+
* Cursor for pagination token.
|
|
196
|
+
*
|
|
197
|
+
* @generated from field: optional string cursor = 3;
|
|
198
|
+
*/
|
|
199
|
+
cursor;
|
|
200
|
+
constructor(data) {
|
|
201
|
+
super();
|
|
202
|
+
proto3.util.initPartial(data, this);
|
|
203
|
+
}
|
|
204
|
+
static runtime = proto3;
|
|
205
|
+
static typeName = "cellaflow.v1.GetGraphRequest";
|
|
206
|
+
static fields = proto3.util.newFieldList(() => [
|
|
207
|
+
{ no: 1, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
208
|
+
{ no: 2, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
209
|
+
{ no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
210
|
+
]);
|
|
211
|
+
static fromBinary(bytes, options) {
|
|
212
|
+
return new GetGraphRequest().fromBinary(bytes, options);
|
|
213
|
+
}
|
|
214
|
+
static fromJson(jsonValue, options) {
|
|
215
|
+
return new GetGraphRequest().fromJson(jsonValue, options);
|
|
216
|
+
}
|
|
217
|
+
static fromJsonString(jsonString, options) {
|
|
218
|
+
return new GetGraphRequest().fromJsonString(jsonString, options);
|
|
219
|
+
}
|
|
220
|
+
static equals(a, b) {
|
|
221
|
+
return proto3.util.equals(GetGraphRequest, a, b);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* @generated from message cellaflow.v1.GetGraphResponse
|
|
226
|
+
*/
|
|
227
|
+
export class GetGraphResponse extends Message {
|
|
228
|
+
/**
|
|
229
|
+
* @generated from field: string session_id = 1;
|
|
230
|
+
*/
|
|
231
|
+
sessionId = "";
|
|
232
|
+
/**
|
|
233
|
+
* @generated from field: repeated cellaflow.v1.StepResult steps = 2;
|
|
234
|
+
*/
|
|
235
|
+
steps = [];
|
|
236
|
+
/**
|
|
237
|
+
* Token for fetching the next page, or empty if there are no more pages.
|
|
238
|
+
*
|
|
239
|
+
* @generated from field: optional string next_cursor = 3;
|
|
240
|
+
*/
|
|
241
|
+
nextCursor;
|
|
242
|
+
constructor(data) {
|
|
243
|
+
super();
|
|
244
|
+
proto3.util.initPartial(data, this);
|
|
245
|
+
}
|
|
246
|
+
static runtime = proto3;
|
|
247
|
+
static typeName = "cellaflow.v1.GetGraphResponse";
|
|
248
|
+
static fields = proto3.util.newFieldList(() => [
|
|
249
|
+
{ no: 1, name: "session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
250
|
+
{ no: 2, name: "steps", kind: "message", T: StepResult, repeated: true },
|
|
251
|
+
{ no: 3, name: "next_cursor", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
252
|
+
]);
|
|
253
|
+
static fromBinary(bytes, options) {
|
|
254
|
+
return new GetGraphResponse().fromBinary(bytes, options);
|
|
255
|
+
}
|
|
256
|
+
static fromJson(jsonValue, options) {
|
|
257
|
+
return new GetGraphResponse().fromJson(jsonValue, options);
|
|
258
|
+
}
|
|
259
|
+
static fromJsonString(jsonString, options) {
|
|
260
|
+
return new GetGraphResponse().fromJsonString(jsonString, options);
|
|
261
|
+
}
|
|
262
|
+
static equals(a, b) {
|
|
263
|
+
return proto3.util.equals(GetGraphResponse, a, b);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
//# sourceMappingURL=service_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service_pb.js","sourceRoot":"","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EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,uBAAuB,EAAE,GAAG,EAAE,IAAI,EAAE;KACxF,CAAC,CAAC;IAEH,MAAM,CAAC,UAAU,CAAC,KAAiB,EAAE,OAAoC;QACvE,OAAO,IAAI,gBAAgB,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,SAAoB,EAAE,OAAkC;QACtE,OAAO,IAAI,gBAAgB,EAAE,CAAC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,UAAkB,EAAE,OAAkC;QAC1E,OAAO,IAAI,gBAAgB,EAAE,CAAC,cAAc,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,CAAgE,EAAE,CAAgE;QAC9I,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACpD,CAAC;CACF"}
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { StartSessionResponse, CommitStepResponse } from "./cellaflow/v1/service_pb.js";
|
|
2
|
+
import { StepStatus } from "./cellaflow/v1/common_pb.js";
|
|
3
|
+
import type { CheckCacheResponse, RenewLeaseResponse, ReleaseLeaseResponse } from "./cellaflow/v1/idempotency_pb.js";
|
|
4
|
+
export interface CellaflowClientOptions {
|
|
5
|
+
target?: string;
|
|
6
|
+
secure?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class CellaflowClient {
|
|
9
|
+
/**
|
|
10
|
+
* gRPC Client for the Cellaflow Engine (Connect-ES transport).
|
|
11
|
+
* Handles communication with the engine and strictly uses MessagePack
|
|
12
|
+
* for state payloads.
|
|
13
|
+
*/
|
|
14
|
+
private client;
|
|
15
|
+
constructor(options?: CellaflowClientOptions);
|
|
16
|
+
/**
|
|
17
|
+
* Starts a new workflow execution session.
|
|
18
|
+
*
|
|
19
|
+
* @param workflowId - The workflow definition ID.
|
|
20
|
+
* @param version - The workflow version string.
|
|
21
|
+
* @param sessionId - Optional client-proposed session ID. When provided, the
|
|
22
|
+
* engine performs a transactional check-and-insert to prevent concurrent
|
|
23
|
+
* race conditions. Omit to let the engine assign one.
|
|
24
|
+
*/
|
|
25
|
+
startSession(workflowId: string, version: string, sessionId?: string): Promise<StartSessionResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Commits a completed step result to the session graph.
|
|
28
|
+
*
|
|
29
|
+
* @param sessionId - The session to commit to.
|
|
30
|
+
* @param sequence - The step sequence number (1-based).
|
|
31
|
+
* @param name - Human-readable step name.
|
|
32
|
+
* @param status - The step outcome status.
|
|
33
|
+
* @param outputPayload - Arbitrary step output. Serialized as MessagePack.
|
|
34
|
+
* @param idempotencyKey - Optional idempotency lease key.
|
|
35
|
+
* @param idempotencyFencingToken - Required when `idempotencyKey` is set.
|
|
36
|
+
*/
|
|
37
|
+
commitStep(sessionId: string, sequence: number, name: string, status: StepStatus, outputPayload: Record<string, any>, idempotencyKey?: string, idempotencyFencingToken?: number): Promise<CommitStepResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Returns a paginated list of committed step results for a session.
|
|
40
|
+
*
|
|
41
|
+
* @returns A tuple of (step results, next_cursor). `next_cursor` is
|
|
42
|
+
* `undefined` when there are no more pages. Each step result's
|
|
43
|
+
* `outputPayload` is fully deserialized from MessagePack.
|
|
44
|
+
*/
|
|
45
|
+
getGraph(sessionId: string, limit?: number, cursor?: string): Promise<[Record<string, any>[], string | undefined]>;
|
|
46
|
+
/**
|
|
47
|
+
* Arbitrates the idempotency lease for `idempotencyKey`.
|
|
48
|
+
*
|
|
49
|
+
* Supplying `sessionId` also asks the engine for the session's committed
|
|
50
|
+
* position, returned as `currentSequence` on every status. The idempotency
|
|
51
|
+
* key is opaque to the engine, so the session cannot be inferred from it —
|
|
52
|
+
* without this the engine has nothing to answer from.
|
|
53
|
+
*
|
|
54
|
+
* Supplying `sequence` — the position this caller intends to write to —
|
|
55
|
+
* additionally lets the engine refuse a lease that would authorise a side
|
|
56
|
+
* effect at an already-committed position, instead of rejecting the commit
|
|
57
|
+
* afterwards once the side effect has happened. The engine raises
|
|
58
|
+
* `FAILED_PRECONDITION` when refused. Both fields are optional on the wire;
|
|
59
|
+
* omitting `sequence` keeps the position unguarded.
|
|
60
|
+
*/
|
|
61
|
+
checkIdempotencyCache(agentId: string, idempotencyKey: string, waitTimeoutMs?: number, leaseTtlMs?: number, sessionId?: string, sequence?: number): Promise<CheckCacheResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* Renews a held idempotency lease.
|
|
64
|
+
*
|
|
65
|
+
* @param timeoutSecs - Bounds the RPC in **seconds**. Heartbeat callers
|
|
66
|
+
* MUST supply a positive value: without a deadline a black-holed
|
|
67
|
+
* connection parks the calling thread indefinitely, and the shutdown
|
|
68
|
+
* path that joins that thread parks with it.
|
|
69
|
+
*/
|
|
70
|
+
renewLease(agentId: string, idempotencyKey: string, fencingToken: number, extendMs: number, timeoutSecs?: number): Promise<RenewLeaseResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* Releases a held idempotency lease.
|
|
73
|
+
*
|
|
74
|
+
* @param timeoutSecs - Bounds the RPC in **seconds**.
|
|
75
|
+
*/
|
|
76
|
+
releaseLease(agentId: string, idempotencyKey: string, fencingToken: number, reason?: string, timeoutSecs?: number): Promise<ReleaseLeaseResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* Provided for API compatibility with the Python client.
|
|
79
|
+
*
|
|
80
|
+
* Connect-ES v1 with `createGrpcTransport` does not expose an explicit
|
|
81
|
+
* close/shutdown method — HTTP/2 sessions are managed by Node.js and are
|
|
82
|
+
* cleaned up on process exit or when the client is garbage-collected.
|
|
83
|
+
* Long-lived server processes with many short-lived clients should let the
|
|
84
|
+
* garbage collector handle cleanup.
|
|
85
|
+
*/
|
|
86
|
+
close(): void;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAQ1C,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,qBAAa,eAAe;IAC1B;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAA8C;IAE5D,YAAY,OAAO,GAAE,sBAA2B,EAY/C;IAED;;;;;;;;OAQG;IACG,YAAY,CAChB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,oBAAoB,CAAC,CAQ/B;IAED;;;;;;;;;;OAUG;IACG,UAAU,CACd,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,UAAU,EAClB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClC,cAAc,CAAC,EAAE,MAAM,EACvB,uBAAuB,CAAC,EAAE,MAAM,GAC/B,OAAO,CAAC,kBAAkB,CAAC,CAyB7B;IAED;;;;;;OAMG;IACG,QAAQ,CACZ,SAAS,EAAE,MAAM,EACjB,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC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