@ironflow/core 0.1.0-test.2
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/README.md +60 -0
- package/dist/constants.d.ts +219 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +233 -0
- package/dist/constants.js.map +1 -0
- package/dist/errors.d.ts +140 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +205 -0
- package/dist/errors.js.map +1 -0
- package/dist/gen/index.d.ts +7 -0
- package/dist/gen/index.d.ts.map +1 -0
- package/dist/gen/index.js +7 -0
- package/dist/gen/index.js.map +1 -0
- package/dist/gen/ironflow/v1/index.d.ts +13 -0
- package/dist/gen/ironflow/v1/index.d.ts.map +1 -0
- package/dist/gen/ironflow/v1/index.js +15 -0
- package/dist/gen/ironflow/v1/index.js.map +1 -0
- package/dist/gen/ironflow/v1/ironflow_connect.d.ts +209 -0
- package/dist/gen/ironflow/v1/ironflow_connect.d.ts.map +1 -0
- package/dist/gen/ironflow/v1/ironflow_connect.js +216 -0
- package/dist/gen/ironflow/v1/ironflow_connect.js.map +1 -0
- package/dist/gen/ironflow/v1/ironflow_pb.d.ts +814 -0
- package/dist/gen/ironflow/v1/ironflow_pb.d.ts.map +1 -0
- package/dist/gen/ironflow/v1/ironflow_pb.js +157 -0
- package/dist/gen/ironflow/v1/ironflow_pb.js.map +1 -0
- package/dist/gen/ironflow/v1/pubsub_connect.d.ts +104 -0
- package/dist/gen/ironflow/v1/pubsub_connect.d.ts.map +1 -0
- package/dist/gen/ironflow/v1/pubsub_connect.js +110 -0
- package/dist/gen/ironflow/v1/pubsub_connect.js.map +1 -0
- package/dist/gen/ironflow/v1/pubsub_pb.d.ts +814 -0
- package/dist/gen/ironflow/v1/pubsub_pb.d.ts.map +1 -0
- package/dist/gen/ironflow/v1/pubsub_pb.js +202 -0
- package/dist/gen/ironflow/v1/pubsub_pb.js.map +1 -0
- package/dist/gen/ironflow/v1/types_pb.d.ts +698 -0
- package/dist/gen/ironflow/v1/types_pb.d.ts.map +1 -0
- package/dist/gen/ironflow/v1/types_pb.js +217 -0
- package/dist/gen/ironflow/v1/types_pb.js.map +1 -0
- package/dist/gen/ironflow/v1/worker_connect.d.ts +20 -0
- package/dist/gen/ironflow/v1/worker_connect.d.ts.map +1 -0
- package/dist/gen/ironflow/v1/worker_connect.js +26 -0
- package/dist/gen/ironflow/v1/worker_connect.js.map +1 -0
- package/dist/gen/ironflow/v1/worker_pb.d.ts +685 -0
- package/dist/gen/ironflow/v1/worker_pb.d.ts.map +1 -0
- package/dist/gen/ironflow/v1/worker_pb.js +135 -0
- package/dist/gen/ironflow/v1/worker_pb.js.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -0
- package/dist/logger.d.ts +26 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +78 -0
- package/dist/logger.js.map +1 -0
- package/dist/protocol.d.ts +250 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +34 -0
- package/dist/protocol.js.map +1 -0
- package/dist/schemas.d.ts +394 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +268 -0
- package/dist/schemas.js.map +1 -0
- package/dist/types.d.ts +577 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +49 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +60 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +109 -0
- package/dist/utils.js.map +1 -0
- package/package.json +78 -0
package/dist/errors.js
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ironflow SDK Error Classes
|
|
3
|
+
*
|
|
4
|
+
* Provides a hierarchy of error types for different failure scenarios.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Base error class for all Ironflow errors
|
|
8
|
+
*/
|
|
9
|
+
export class IronflowError extends Error {
|
|
10
|
+
/** Error code for programmatic handling */
|
|
11
|
+
code;
|
|
12
|
+
/** Whether this error is retryable */
|
|
13
|
+
retryable;
|
|
14
|
+
/** Additional error details */
|
|
15
|
+
details;
|
|
16
|
+
constructor(message, options) {
|
|
17
|
+
super(message, { cause: options?.cause });
|
|
18
|
+
this.name = "IronflowError";
|
|
19
|
+
this.code = options?.code ?? "UNKNOWN_ERROR";
|
|
20
|
+
this.retryable = options?.retryable ?? false;
|
|
21
|
+
this.details = options?.details;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Error thrown when a connection is lost
|
|
26
|
+
*/
|
|
27
|
+
export class ConnectionError extends IronflowError {
|
|
28
|
+
constructor(message, options) {
|
|
29
|
+
super(message, {
|
|
30
|
+
code: "CONNECTION_LOST",
|
|
31
|
+
retryable: true,
|
|
32
|
+
cause: options?.cause,
|
|
33
|
+
});
|
|
34
|
+
this.name = "ConnectionError";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Error thrown when a subscription fails
|
|
39
|
+
*/
|
|
40
|
+
export class SubscriptionError extends IronflowError {
|
|
41
|
+
/** The subscription ID that failed */
|
|
42
|
+
subscriptionId;
|
|
43
|
+
constructor(message, options) {
|
|
44
|
+
super(message, {
|
|
45
|
+
code: options?.code ?? "SUBSCRIPTION_ERROR",
|
|
46
|
+
retryable: options?.retryable ?? true,
|
|
47
|
+
cause: options?.cause,
|
|
48
|
+
});
|
|
49
|
+
this.name = "SubscriptionError";
|
|
50
|
+
this.subscriptionId = options?.subscriptionId;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Error thrown when a request times out
|
|
55
|
+
*/
|
|
56
|
+
export class TimeoutError extends IronflowError {
|
|
57
|
+
/** The timeout duration in milliseconds */
|
|
58
|
+
timeoutMs;
|
|
59
|
+
constructor(message, timeoutMs, options) {
|
|
60
|
+
super(message, {
|
|
61
|
+
code: "TIMEOUT",
|
|
62
|
+
retryable: true,
|
|
63
|
+
cause: options?.cause,
|
|
64
|
+
});
|
|
65
|
+
this.name = "TimeoutError";
|
|
66
|
+
this.timeoutMs = timeoutMs;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Error thrown when validation fails
|
|
71
|
+
*/
|
|
72
|
+
export class ValidationError extends IronflowError {
|
|
73
|
+
/** The validation errors */
|
|
74
|
+
validationErrors;
|
|
75
|
+
constructor(message, options) {
|
|
76
|
+
super(message, {
|
|
77
|
+
code: "VALIDATION_ERROR",
|
|
78
|
+
retryable: false,
|
|
79
|
+
cause: options?.cause,
|
|
80
|
+
});
|
|
81
|
+
this.name = "ValidationError";
|
|
82
|
+
this.validationErrors = options?.validationErrors;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Error thrown when schema validation fails
|
|
87
|
+
*/
|
|
88
|
+
export class SchemaValidationError extends ValidationError {
|
|
89
|
+
constructor(message, options) {
|
|
90
|
+
super(message, options);
|
|
91
|
+
this.name = "SchemaValidationError";
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Error thrown when a signature is invalid
|
|
96
|
+
*/
|
|
97
|
+
export class SignatureError extends IronflowError {
|
|
98
|
+
constructor(message, options) {
|
|
99
|
+
super(message, {
|
|
100
|
+
code: "SIGNATURE_INVALID",
|
|
101
|
+
retryable: false,
|
|
102
|
+
cause: options?.cause,
|
|
103
|
+
});
|
|
104
|
+
this.name = "SignatureError";
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Error thrown when a function is not found
|
|
109
|
+
*/
|
|
110
|
+
export class FunctionNotFoundError extends IronflowError {
|
|
111
|
+
/** The function ID that was not found */
|
|
112
|
+
functionId;
|
|
113
|
+
constructor(functionId, options) {
|
|
114
|
+
super(`Function not found: ${functionId}`, {
|
|
115
|
+
code: "FUNCTION_NOT_FOUND",
|
|
116
|
+
retryable: false,
|
|
117
|
+
details: { functionId },
|
|
118
|
+
cause: options?.cause,
|
|
119
|
+
});
|
|
120
|
+
this.name = "FunctionNotFoundError";
|
|
121
|
+
this.functionId = functionId;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Error thrown when a run is not found
|
|
126
|
+
*/
|
|
127
|
+
export class RunNotFoundError extends IronflowError {
|
|
128
|
+
/** The run ID that was not found */
|
|
129
|
+
runId;
|
|
130
|
+
constructor(runId, options) {
|
|
131
|
+
super(`Run not found: ${runId}`, {
|
|
132
|
+
code: "RUN_NOT_FOUND",
|
|
133
|
+
retryable: false,
|
|
134
|
+
details: { runId },
|
|
135
|
+
cause: options?.cause,
|
|
136
|
+
});
|
|
137
|
+
this.name = "RunNotFoundError";
|
|
138
|
+
this.runId = runId;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Error thrown when a step fails
|
|
143
|
+
*/
|
|
144
|
+
export class StepError extends IronflowError {
|
|
145
|
+
/** The step ID that failed */
|
|
146
|
+
stepId;
|
|
147
|
+
/** The step name that failed */
|
|
148
|
+
stepName;
|
|
149
|
+
constructor(message, options) {
|
|
150
|
+
super(message, {
|
|
151
|
+
code: "STEP_FAILED",
|
|
152
|
+
retryable: options.retryable ?? true,
|
|
153
|
+
details: { stepId: options.stepId, stepName: options.stepName },
|
|
154
|
+
cause: options.cause,
|
|
155
|
+
});
|
|
156
|
+
this.name = "StepError";
|
|
157
|
+
this.stepId = options.stepId;
|
|
158
|
+
this.stepName = options.stepName;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Error thrown for non-retryable failures
|
|
163
|
+
*/
|
|
164
|
+
export class NonRetryableError extends IronflowError {
|
|
165
|
+
constructor(message, options) {
|
|
166
|
+
super(message, {
|
|
167
|
+
code: options?.code ?? "NON_RETRYABLE",
|
|
168
|
+
retryable: false,
|
|
169
|
+
cause: options?.cause,
|
|
170
|
+
});
|
|
171
|
+
this.name = "NonRetryableError";
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Error thrown when the client is not configured
|
|
176
|
+
*/
|
|
177
|
+
export class NotConfiguredError extends IronflowError {
|
|
178
|
+
constructor(message = "Client not configured. Call configure() first.") {
|
|
179
|
+
super(message, {
|
|
180
|
+
code: "NOT_CONFIGURED",
|
|
181
|
+
retryable: false,
|
|
182
|
+
});
|
|
183
|
+
this.name = "NotConfiguredError";
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Check if an error is retryable
|
|
188
|
+
*/
|
|
189
|
+
export function isRetryable(error) {
|
|
190
|
+
if (error instanceof IronflowError) {
|
|
191
|
+
return error.retryable;
|
|
192
|
+
}
|
|
193
|
+
// Network errors are generally retryable
|
|
194
|
+
if (error instanceof TypeError && error.message.includes("fetch")) {
|
|
195
|
+
return true;
|
|
196
|
+
}
|
|
197
|
+
return false;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Type guard to check if an error is an IronflowError
|
|
201
|
+
*/
|
|
202
|
+
export function isIronflowError(error) {
|
|
203
|
+
return error instanceof IronflowError;
|
|
204
|
+
}
|
|
205
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,KAAK;IACtC,2CAA2C;IAClC,IAAI,CAAS;IACtB,sCAAsC;IAC7B,SAAS,CAAU;IAC5B,+BAA+B;IACtB,OAAO,CAA2B;IAE3C,YACE,OAAe,EACf,OAKC;QAED,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1C,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;QAC5B,IAAI,CAAC,IAA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AI,GAAG,mBAAmB,CAAC;IAClC,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,aAAa;IACnD,YAAY,UAAkB,gDAAgD;QAC5E,KAAK,CAAC,OAAO,EAAE;YACb,IAAI,EAAE,gBAAgB;YACtB,SAAS,EAAE,KAAK;SACjB,CAAC,CAAC;QACH,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACnC,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,IAAI,KAAK,YAAY,aAAa,EAAE,CAAC;QACnC,OAAO,KAAK,CAAC,SAAS,CAAC;IACzB,CAAC;IACD,yCAAyC;IACzC,IAAI,KAAK,YAAY,SAAS,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QAClE,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,OAAO,KAAK,YAAY,aAAa,CAAC;AACxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/gen/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/gen/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated protobuf and ConnectRPC code for Ironflow API
|
|
3
|
+
*
|
|
4
|
+
* @generated
|
|
5
|
+
*/
|
|
6
|
+
export * from "./types_pb.js";
|
|
7
|
+
export * from "./ironflow_pb.js";
|
|
8
|
+
export * from "./pubsub_pb.js";
|
|
9
|
+
export * from "./worker_pb.js";
|
|
10
|
+
export { IronflowService } from "./ironflow_connect.js";
|
|
11
|
+
export { PubSubService } from "./pubsub_connect.js";
|
|
12
|
+
export { WorkerService } from "./worker_connect.js";
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/gen/ironflow/v1/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated protobuf and ConnectRPC code for Ironflow API
|
|
3
|
+
*
|
|
4
|
+
* @generated
|
|
5
|
+
*/
|
|
6
|
+
// Protocol buffer message types
|
|
7
|
+
export * from "./types_pb.js";
|
|
8
|
+
export * from "./ironflow_pb.js";
|
|
9
|
+
export * from "./pubsub_pb.js";
|
|
10
|
+
export * from "./worker_pb.js";
|
|
11
|
+
// ConnectRPC service definitions
|
|
12
|
+
export { IronflowService } from "./ironflow_connect.js";
|
|
13
|
+
export { PubSubService } from "./pubsub_connect.js";
|
|
14
|
+
export { WorkerService } from "./worker_connect.js";
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/gen/ironflow/v1/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,gCAAgC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAE/B,iCAAiC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* --- Function Management ---
|
|
3
|
+
*
|
|
4
|
+
* @generated from service ironflow.v1.IronflowService
|
|
5
|
+
*/
|
|
6
|
+
export declare const IronflowService: {
|
|
7
|
+
readonly typeName: "ironflow.v1.IronflowService";
|
|
8
|
+
readonly methods: {
|
|
9
|
+
/**
|
|
10
|
+
* Register or update a function definition
|
|
11
|
+
*
|
|
12
|
+
* @generated from rpc ironflow.v1.IronflowService.RegisterFunction
|
|
13
|
+
*/
|
|
14
|
+
readonly registerFunction: {
|
|
15
|
+
readonly name: "RegisterFunction";
|
|
16
|
+
readonly I: any;
|
|
17
|
+
readonly O: any;
|
|
18
|
+
readonly kind: any;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Get a function by ID
|
|
22
|
+
*
|
|
23
|
+
* @generated from rpc ironflow.v1.IronflowService.GetFunction
|
|
24
|
+
*/
|
|
25
|
+
readonly getFunction: {
|
|
26
|
+
readonly name: "GetFunction";
|
|
27
|
+
readonly I: any;
|
|
28
|
+
readonly O: FunctionConstructor;
|
|
29
|
+
readonly kind: any;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* List all registered functions
|
|
33
|
+
*
|
|
34
|
+
* @generated from rpc ironflow.v1.IronflowService.ListFunctions
|
|
35
|
+
*/
|
|
36
|
+
readonly listFunctions: {
|
|
37
|
+
readonly name: "ListFunctions";
|
|
38
|
+
readonly I: any;
|
|
39
|
+
readonly O: any;
|
|
40
|
+
readonly kind: any;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Update function status (pause, activate, archive)
|
|
44
|
+
*
|
|
45
|
+
* @generated from rpc ironflow.v1.IronflowService.UpdateFunctionStatus
|
|
46
|
+
*/
|
|
47
|
+
readonly updateFunctionStatus: {
|
|
48
|
+
readonly name: "UpdateFunctionStatus";
|
|
49
|
+
readonly I: any;
|
|
50
|
+
readonly O: FunctionConstructor;
|
|
51
|
+
readonly kind: any;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Delete a function
|
|
55
|
+
*
|
|
56
|
+
* @generated from rpc ironflow.v1.IronflowService.DeleteFunction
|
|
57
|
+
*/
|
|
58
|
+
readonly deleteFunction: {
|
|
59
|
+
readonly name: "DeleteFunction";
|
|
60
|
+
readonly I: any;
|
|
61
|
+
readonly O: any;
|
|
62
|
+
readonly kind: any;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Trigger an event (async by default)
|
|
66
|
+
*
|
|
67
|
+
* @generated from rpc ironflow.v1.IronflowService.Trigger
|
|
68
|
+
*/
|
|
69
|
+
readonly trigger: {
|
|
70
|
+
readonly name: "Trigger";
|
|
71
|
+
readonly I: any;
|
|
72
|
+
readonly O: any;
|
|
73
|
+
readonly kind: any;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Emit an event (alias for Trigger with emit semantics)
|
|
77
|
+
*
|
|
78
|
+
* @generated from rpc ironflow.v1.IronflowService.Emit
|
|
79
|
+
*/
|
|
80
|
+
readonly emit: {
|
|
81
|
+
readonly name: "Emit";
|
|
82
|
+
readonly I: any;
|
|
83
|
+
readonly O: any;
|
|
84
|
+
readonly kind: any;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Trigger and wait for completion (sync)
|
|
88
|
+
*
|
|
89
|
+
* @generated from rpc ironflow.v1.IronflowService.TriggerSync
|
|
90
|
+
*/
|
|
91
|
+
readonly triggerSync: {
|
|
92
|
+
readonly name: "TriggerSync";
|
|
93
|
+
readonly I: any;
|
|
94
|
+
readonly O: any;
|
|
95
|
+
readonly kind: any;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Batch trigger multiple events
|
|
99
|
+
*
|
|
100
|
+
* @generated from rpc ironflow.v1.IronflowService.TriggerBatch
|
|
101
|
+
*/
|
|
102
|
+
readonly triggerBatch: {
|
|
103
|
+
readonly name: "TriggerBatch";
|
|
104
|
+
readonly I: any;
|
|
105
|
+
readonly O: any;
|
|
106
|
+
readonly kind: any;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Get a run by ID
|
|
110
|
+
*
|
|
111
|
+
* @generated from rpc ironflow.v1.IronflowService.GetRun
|
|
112
|
+
*/
|
|
113
|
+
readonly getRun: {
|
|
114
|
+
readonly name: "GetRun";
|
|
115
|
+
readonly I: any;
|
|
116
|
+
readonly O: any;
|
|
117
|
+
readonly kind: any;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* List runs with filtering
|
|
121
|
+
*
|
|
122
|
+
* @generated from rpc ironflow.v1.IronflowService.ListRuns
|
|
123
|
+
*/
|
|
124
|
+
readonly listRuns: {
|
|
125
|
+
readonly name: "ListRuns";
|
|
126
|
+
readonly I: any;
|
|
127
|
+
readonly O: any;
|
|
128
|
+
readonly kind: any;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Get steps for a run
|
|
132
|
+
*
|
|
133
|
+
* @generated from rpc ironflow.v1.IronflowService.GetRunSteps
|
|
134
|
+
*/
|
|
135
|
+
readonly getRunSteps: {
|
|
136
|
+
readonly name: "GetRunSteps";
|
|
137
|
+
readonly I: any;
|
|
138
|
+
readonly O: any;
|
|
139
|
+
readonly kind: any;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Cancel a running workflow
|
|
143
|
+
*
|
|
144
|
+
* @generated from rpc ironflow.v1.IronflowService.CancelRun
|
|
145
|
+
*/
|
|
146
|
+
readonly cancelRun: {
|
|
147
|
+
readonly name: "CancelRun";
|
|
148
|
+
readonly I: any;
|
|
149
|
+
readonly O: any;
|
|
150
|
+
readonly kind: any;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Retry a failed run
|
|
154
|
+
*
|
|
155
|
+
* @generated from rpc ironflow.v1.IronflowService.RetryRun
|
|
156
|
+
*/
|
|
157
|
+
readonly retryRun: {
|
|
158
|
+
readonly name: "RetryRun";
|
|
159
|
+
readonly I: any;
|
|
160
|
+
readonly O: any;
|
|
161
|
+
readonly kind: any;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Patch a step's output
|
|
165
|
+
*
|
|
166
|
+
* @generated from rpc ironflow.v1.IronflowService.PatchStep
|
|
167
|
+
*/
|
|
168
|
+
readonly patchStep: {
|
|
169
|
+
readonly name: "PatchStep";
|
|
170
|
+
readonly I: any;
|
|
171
|
+
readonly O: any;
|
|
172
|
+
readonly kind: any;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Resume a paused/failed run
|
|
176
|
+
*
|
|
177
|
+
* @generated from rpc ironflow.v1.IronflowService.ResumeRun
|
|
178
|
+
*/
|
|
179
|
+
readonly resumeRun: {
|
|
180
|
+
readonly name: "ResumeRun";
|
|
181
|
+
readonly I: any;
|
|
182
|
+
readonly O: any;
|
|
183
|
+
readonly kind: any;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* Health check
|
|
187
|
+
*
|
|
188
|
+
* @generated from rpc ironflow.v1.IronflowService.Health
|
|
189
|
+
*/
|
|
190
|
+
readonly health: {
|
|
191
|
+
readonly name: "Health";
|
|
192
|
+
readonly I: any;
|
|
193
|
+
readonly O: any;
|
|
194
|
+
readonly kind: any;
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* Server info
|
|
198
|
+
*
|
|
199
|
+
* @generated from rpc ironflow.v1.IronflowService.Info
|
|
200
|
+
*/
|
|
201
|
+
readonly info: {
|
|
202
|
+
readonly name: "Info";
|
|
203
|
+
readonly I: any;
|
|
204
|
+
readonly O: any;
|
|
205
|
+
readonly kind: any;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
//# sourceMappingURL=ironflow_connect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ironflow_connect.d.ts","sourceRoot":"","sources":["../../../../src/gen/ironflow/v1/ironflow_connect.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;QAGxB;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;QAOH;;;;WAIG;;;;;;;;CAQG,CAAC"}
|