@burdenoff/sdk-libs 2026.1026.2 → 2026.1028.1
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/index.d.cts +2 -38
- package/dist/core/index.d.ts +2 -38
- package/dist/errors-ClnhKi8d.d.cts +38 -0
- package/dist/errors-ClnhKi8d.d.ts +38 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/modules/fluidgrids/index.cjs +204 -89
- package/dist/modules/fluidgrids/index.d.cts +263 -1
- package/dist/modules/fluidgrids/index.d.ts +263 -1
- package/dist/modules/fluidgrids/index.js +204 -89
- package/package.json +1 -1
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import {b
|
|
1
|
+
import {b,f,e}from'../../chunk-NEREAHJ6.js';import Ze from'cross-fetch';var c=`
|
|
2
2
|
id workflowKey name description version status category tags icon isActive
|
|
3
3
|
totalVersions projectId createdAt updatedAt
|
|
4
|
-
`,
|
|
4
|
+
`,N=`
|
|
5
5
|
query FluidgridsListWorkflows($input: ListWorkflowDefinitionsInput!) {
|
|
6
6
|
workflowDefinitions(input: $input) {
|
|
7
|
-
items { ${
|
|
7
|
+
items { ${c} }
|
|
8
8
|
total
|
|
9
9
|
hasMore
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
`,
|
|
12
|
+
`,P=`
|
|
13
13
|
query FluidgridsGetWorkflow($id: ID, $workflowKey: String, $version: String) {
|
|
14
14
|
workflowDefinition(id: $id, workflowKey: $workflowKey, version: $version) {
|
|
15
|
-
${
|
|
15
|
+
${c}
|
|
16
16
|
alias
|
|
17
17
|
definitionJson
|
|
18
18
|
context
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
21
|
+
`,v=`
|
|
22
22
|
query FluidgridsWorkflowVersions($workflowKey: String!) {
|
|
23
|
-
workflowVersions(workflowKey: $workflowKey) { ${
|
|
23
|
+
workflowVersions(workflowKey: $workflowKey) { ${c} }
|
|
24
24
|
}
|
|
25
|
-
`,
|
|
25
|
+
`,K=`
|
|
26
26
|
mutation FluidgridsCreateWorkflow($input: CreateWorkflowDefinitionInput!) {
|
|
27
|
-
createWorkflowDefinition(input: $input) { ${
|
|
27
|
+
createWorkflowDefinition(input: $input) { ${c} }
|
|
28
28
|
}
|
|
29
|
-
`,
|
|
29
|
+
`,U=`
|
|
30
30
|
mutation FluidgridsUpdateWorkflow($id: ID!, $input: UpdateWorkflowDefinitionInput!) {
|
|
31
|
-
updateWorkflowDefinition(id: $id, input: $input) { ${
|
|
31
|
+
updateWorkflowDefinition(id: $id, input: $input) { ${c} }
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
`,x=`
|
|
34
34
|
mutation FluidgridsDeleteWorkflow($workflowKey: String!, $version: String) {
|
|
35
35
|
deleteWorkflowDefinition(workflowKey: $workflowKey, version: $version)
|
|
36
36
|
}
|
|
37
|
-
`,
|
|
37
|
+
`,q=`
|
|
38
38
|
mutation FluidgridsTriggerWorkflow($input: TriggerWorkflowInput!) {
|
|
39
39
|
triggerWorkflow(input: $input) {
|
|
40
40
|
runId
|
|
@@ -44,19 +44,19 @@ import {b as b$1,f}from'../../chunk-NEREAHJ6.js';var s=`
|
|
|
44
44
|
triggerNodeId
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
`,
|
|
47
|
+
`,J=`
|
|
48
48
|
mutation FluidgridsPublishWorkflow($id: ID!) {
|
|
49
|
-
publishWorkflow(id: $id) { ${
|
|
49
|
+
publishWorkflow(id: $id) { ${c} }
|
|
50
50
|
}
|
|
51
|
-
`,
|
|
51
|
+
`,M=`
|
|
52
52
|
mutation FluidgridsActivateWorkflow($id: ID!) {
|
|
53
|
-
activateWorkflowDefinition(id: $id) { ${
|
|
53
|
+
activateWorkflowDefinition(id: $id) { ${c} }
|
|
54
54
|
}
|
|
55
|
-
`,
|
|
55
|
+
`,B=`
|
|
56
56
|
mutation FluidgridsDeactivateWorkflow($id: ID!) {
|
|
57
|
-
deactivateWorkflowDefinition(id: $id) { ${
|
|
57
|
+
deactivateWorkflowDefinition(id: $id) { ${c} }
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,V=`
|
|
60
60
|
mutation FluidgridsDuplicateWorkflow(
|
|
61
61
|
$workflowKey: String!
|
|
62
62
|
$version: String!
|
|
@@ -65,37 +65,37 @@ import {b as b$1,f}from'../../chunk-NEREAHJ6.js';var s=`
|
|
|
65
65
|
duplicateWorkflow(workflowKey: $workflowKey, version: $version, input: $input) {
|
|
66
66
|
success
|
|
67
67
|
message
|
|
68
|
-
workflow { ${
|
|
68
|
+
workflow { ${c} }
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
`,
|
|
71
|
+
`,H=`
|
|
72
72
|
mutation FluidgridsArchiveWorkflow($id: ID!) {
|
|
73
|
-
archiveWorkflow(id: $id) { ${
|
|
73
|
+
archiveWorkflow(id: $id) { ${c} }
|
|
74
74
|
}
|
|
75
|
-
`,
|
|
75
|
+
`,G=`
|
|
76
76
|
mutation FluidgridsImportWorkflowTemplate($input: ImportWorkflowTemplateInput!) {
|
|
77
77
|
importWorkflowTemplate(input: $input) {
|
|
78
78
|
success
|
|
79
79
|
message
|
|
80
|
-
workflow { ${
|
|
80
|
+
workflow { ${c} }
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
`,
|
|
83
|
+
`,A=`
|
|
84
84
|
id workflowId workflowKey version status mode startedAt completedAt duration
|
|
85
85
|
triggeredById triggerNodeId errorMessage errorType progress totalNodes
|
|
86
86
|
completedNodes failedNodes skippedNodes createdAt
|
|
87
|
-
`,
|
|
87
|
+
`,j=`
|
|
88
88
|
query FluidgridsListRuns($input: ListWorkflowRunsInput!) {
|
|
89
89
|
workflowRuns(input: $input) {
|
|
90
|
-
items { ${
|
|
90
|
+
items { ${A} }
|
|
91
91
|
total
|
|
92
92
|
hasMore
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
`,
|
|
95
|
+
`,Y=`
|
|
96
96
|
query FluidgridsGetRun($id: ID!) {
|
|
97
97
|
workflowRun(id: $id) {
|
|
98
|
-
${
|
|
98
|
+
${A}
|
|
99
99
|
triggerData
|
|
100
100
|
nodeStates {
|
|
101
101
|
id nodeId nodeType nodeVersion status error errorType attemptCount
|
|
@@ -103,7 +103,7 @@ import {b as b$1,f}from'../../chunk-NEREAHJ6.js';var s=`
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
`,
|
|
106
|
+
`,Q=`
|
|
107
107
|
query FluidgridsRunLogs(
|
|
108
108
|
$runId: ID!
|
|
109
109
|
$nodeId: String
|
|
@@ -131,34 +131,34 @@ import {b as b$1,f}from'../../chunk-NEREAHJ6.js';var s=`
|
|
|
131
131
|
limitReached
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
`,
|
|
134
|
+
`,S="id status completedAt errorMessage",z=`
|
|
135
135
|
mutation FluidgridsCancelRun($id: ID!) {
|
|
136
|
-
cancelWorkflowRun(id: $id) { ${
|
|
136
|
+
cancelWorkflowRun(id: $id) { ${S} }
|
|
137
137
|
}
|
|
138
|
-
`,
|
|
138
|
+
`,X=`
|
|
139
139
|
mutation FluidgridsPauseRun($id: ID!) {
|
|
140
|
-
pauseWorkflowRun(id: $id) { ${
|
|
140
|
+
pauseWorkflowRun(id: $id) { ${S} }
|
|
141
141
|
}
|
|
142
|
-
`,
|
|
142
|
+
`,Z=`
|
|
143
143
|
mutation FluidgridsResumeRun($id: ID!, $payload: JSON) {
|
|
144
144
|
resumeWorkflowRun(id: $id, payload: $payload) {
|
|
145
145
|
success
|
|
146
146
|
message
|
|
147
147
|
resumedFromNodeId
|
|
148
|
-
run { ${
|
|
148
|
+
run { ${S} }
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
`,
|
|
151
|
+
`,ee=`
|
|
152
152
|
mutation FluidgridsRetryNode($id: ID!, $nodeId: String!) {
|
|
153
153
|
retryNode(id: $id, nodeId: $nodeId) {
|
|
154
154
|
id nodeId nodeType status error attemptCount
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
`,
|
|
157
|
+
`,ie=`
|
|
158
158
|
id nodeType nodeVersion name description category icon logo keywords kind author
|
|
159
159
|
publishType status isLatest endpointUrl operations supportsAdapterMode
|
|
160
160
|
adapterOutputType docsUrl createdAt updatedAt
|
|
161
|
-
`,
|
|
161
|
+
`,te=`
|
|
162
162
|
query FluidgridsListNodes(
|
|
163
163
|
$nodeType: String
|
|
164
164
|
$publishType: PublishType
|
|
@@ -171,40 +171,40 @@ import {b as b$1,f}from'../../chunk-NEREAHJ6.js';var s=`
|
|
|
171
171
|
status: $status
|
|
172
172
|
pagination: $pagination
|
|
173
173
|
) {
|
|
174
|
-
configs { ${
|
|
174
|
+
configs { ${ie} }
|
|
175
175
|
pagination { total limit offset hasMore }
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
`,
|
|
178
|
+
`,re=`
|
|
179
179
|
query FluidgridsGetNode($nodeType: String!, $nodeVersion: String!) {
|
|
180
180
|
nodeEndpointConfig(nodeType: $nodeType, nodeVersion: $nodeVersion) {
|
|
181
|
-
${
|
|
181
|
+
${ie}
|
|
182
182
|
healthCheckUrl
|
|
183
183
|
nodeAdapters
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
`,
|
|
186
|
+
`,C=`
|
|
187
187
|
id name description status providerId credentialSource externalAccountId
|
|
188
188
|
externalAccountName externalAccountEmail grantedScopes lastUsedAt lastHealthCheck
|
|
189
189
|
errorMessage createdAt updatedAt
|
|
190
|
-
`,
|
|
190
|
+
`,oe=`
|
|
191
191
|
query FluidgridsListCredentials(
|
|
192
192
|
$filter: ConnectionFilterInput
|
|
193
193
|
$pagination: IntegrationsPaginationInput
|
|
194
194
|
) {
|
|
195
195
|
getConnections(filter: $filter, pagination: $pagination) {
|
|
196
196
|
items {
|
|
197
|
-
${
|
|
197
|
+
${C}
|
|
198
198
|
provider { id key name category authType icon }
|
|
199
199
|
}
|
|
200
200
|
total
|
|
201
201
|
hasMore
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
`,
|
|
204
|
+
`,se=`
|
|
205
205
|
query FluidgridsGetCredential($id: ID!) {
|
|
206
206
|
getConnection(id: $id) {
|
|
207
|
-
${
|
|
207
|
+
${C}
|
|
208
208
|
config
|
|
209
209
|
metadata
|
|
210
210
|
workspaceId
|
|
@@ -214,7 +214,7 @@ import {b as b$1,f}from'../../chunk-NEREAHJ6.js';var s=`
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
`,
|
|
217
|
+
`,de=`
|
|
218
218
|
query FluidgridsListCredentialTypes(
|
|
219
219
|
$filter: ProviderFilterInput
|
|
220
220
|
$pagination: IntegrationsPaginationInput
|
|
@@ -228,107 +228,107 @@ import {b as b$1,f}from'../../chunk-NEREAHJ6.js';var s=`
|
|
|
228
228
|
hasMore
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
|
-
`,
|
|
231
|
+
`,ne=`
|
|
232
232
|
mutation FluidgridsCreateCredential($input: CreateConnectionInput!) {
|
|
233
233
|
createConnection(input: $input) {
|
|
234
|
-
${
|
|
234
|
+
${C}
|
|
235
235
|
provider { id key name authType }
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
`,
|
|
238
|
+
`,ue=`
|
|
239
239
|
id name status grantedScopes externalAccountName errorMessage updatedAt
|
|
240
|
-
`,
|
|
240
|
+
`,le=`
|
|
241
241
|
mutation FluidgridsAuthenticateCredentialApiKey($input: ApiKeyAuthInput!) {
|
|
242
|
-
authenticateWithApiKey(input: $input) { ${
|
|
242
|
+
authenticateWithApiKey(input: $input) { ${ue} }
|
|
243
243
|
}
|
|
244
|
-
`,
|
|
244
|
+
`,ae=`
|
|
245
245
|
mutation FluidgridsAuthenticateCredentialBasic($input: BasicAuthInput!) {
|
|
246
|
-
authenticateWithBasicAuth(input: $input) { ${
|
|
246
|
+
authenticateWithBasicAuth(input: $input) { ${ue} }
|
|
247
247
|
}
|
|
248
|
-
`,
|
|
248
|
+
`,ge=`
|
|
249
249
|
mutation FluidgridsUpdateCredential($id: ID!, $input: UpdateConnectionInput!) {
|
|
250
250
|
updateConnection(id: $id, input: $input) {
|
|
251
251
|
id name description status config updatedAt
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
`,
|
|
254
|
+
`,pe=`
|
|
255
255
|
mutation FluidgridsDeleteCredential($id: ID!, $deleteVaultSecret: Boolean) {
|
|
256
256
|
deleteConnection(id: $id, deleteVaultSecret: $deleteVaultSecret)
|
|
257
257
|
}
|
|
258
|
-
`,
|
|
258
|
+
`,ce=`
|
|
259
259
|
mutation FluidgridsTestCredential($connectionId: ID!) {
|
|
260
260
|
testConnection(connectionId: $connectionId) { success message latencyMs }
|
|
261
261
|
}
|
|
262
|
-
`,
|
|
262
|
+
`,W=`
|
|
263
263
|
id name description workflowKey triggerNodeId eventSource eventType status isActive
|
|
264
264
|
webhookUrl webhookToken validationMethod signatureHeader apiKeyHeader payloadMapping
|
|
265
265
|
config tags totalTriggers successfulTriggers failedTriggers lastTriggeredAt
|
|
266
266
|
projectId createdAt updatedAt
|
|
267
|
-
`,
|
|
267
|
+
`,fe=`
|
|
268
268
|
query FluidgridsListWebhooks($status: EventStatus, $workflowKey: String) {
|
|
269
|
-
eventRegistrations(status: $status, workflowKey: $workflowKey) { ${
|
|
269
|
+
eventRegistrations(status: $status, workflowKey: $workflowKey) { ${W} }
|
|
270
270
|
}
|
|
271
|
-
`,
|
|
271
|
+
`,Fe=`
|
|
272
272
|
query FluidgridsGetWebhook($id: ID!) {
|
|
273
|
-
eventRegistration(id: $id) { ${
|
|
273
|
+
eventRegistration(id: $id) { ${W} }
|
|
274
274
|
}
|
|
275
|
-
`,
|
|
275
|
+
`,we=`
|
|
276
276
|
mutation FluidgridsCreateWebhook($input: CreateEventRegistrationInput!) {
|
|
277
|
-
createEventRegistration(input: $input) { ${
|
|
277
|
+
createEventRegistration(input: $input) { ${W} }
|
|
278
278
|
}
|
|
279
|
-
`,
|
|
279
|
+
`,Re=`
|
|
280
280
|
mutation FluidgridsUpdateWebhook($id: ID!, $input: UpdateEventRegistrationInput!) {
|
|
281
|
-
updateEventRegistration(id: $id, input: $input) { ${
|
|
281
|
+
updateEventRegistration(id: $id, input: $input) { ${W} }
|
|
282
282
|
}
|
|
283
|
-
`,
|
|
283
|
+
`,ye=`
|
|
284
284
|
mutation FluidgridsDeleteWebhook($id: ID!) {
|
|
285
285
|
deleteEventRegistration(id: $id)
|
|
286
286
|
}
|
|
287
|
-
`,
|
|
287
|
+
`,me=`
|
|
288
288
|
mutation FluidgridsToggleWebhook($id: ID!, $isActive: Boolean!) {
|
|
289
|
-
toggleEventRegistration(id: $id, isActive: $isActive) { ${
|
|
289
|
+
toggleEventRegistration(id: $id, isActive: $isActive) { ${W} }
|
|
290
290
|
}
|
|
291
|
-
`,
|
|
291
|
+
`,h=`
|
|
292
292
|
id name workflowKey version schedule enabled nextRun lastRun config createdAt updatedAt
|
|
293
|
-
`,
|
|
293
|
+
`,ke=`
|
|
294
294
|
query FluidgridsListScheduledJobs(
|
|
295
295
|
$enabled: Boolean
|
|
296
296
|
$workflowKey: String
|
|
297
297
|
$pagination: WorkflowPaginationInput
|
|
298
298
|
) {
|
|
299
299
|
workflowScheduledJobs(enabled: $enabled, workflowKey: $workflowKey, pagination: $pagination) {
|
|
300
|
-
jobs { ${
|
|
300
|
+
jobs { ${h} }
|
|
301
301
|
pagination { total limit offset hasMore }
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
-
`,
|
|
304
|
+
`,Ee=`
|
|
305
305
|
query FluidgridsGetScheduledJob($jobId: ID!) {
|
|
306
306
|
workflowScheduledJob(jobId: $jobId) {
|
|
307
|
-
${
|
|
307
|
+
${h}
|
|
308
308
|
workspaceId
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
`,
|
|
311
|
+
`,Ie=`
|
|
312
312
|
mutation FluidgridsCreateScheduledJob($input: ScheduledJobInput!) {
|
|
313
313
|
createWorkflowScheduledJob(input: $input) {
|
|
314
314
|
success
|
|
315
315
|
message
|
|
316
|
-
job { ${
|
|
316
|
+
job { ${h} }
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
`,
|
|
319
|
+
`,We=`
|
|
320
320
|
mutation FluidgridsUpdateScheduledJob($jobId: ID!, $input: WorkflowUpdateScheduledJobInput!) {
|
|
321
321
|
updateWorkflowScheduledJob(jobId: $jobId, input: $input) {
|
|
322
322
|
success
|
|
323
323
|
message
|
|
324
|
-
job { ${
|
|
324
|
+
job { ${h} }
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
`,
|
|
327
|
+
`,Te=`
|
|
328
328
|
mutation FluidgridsDeleteScheduledJob($jobId: ID!) {
|
|
329
329
|
deleteWorkflowScheduledJob(jobId: $jobId) { success message }
|
|
330
330
|
}
|
|
331
|
-
`,
|
|
331
|
+
`,Se=`
|
|
332
332
|
query FluidgridsDashboardSummary($projectId: String) {
|
|
333
333
|
dashboardSummary(projectId: $projectId) {
|
|
334
334
|
userId
|
|
@@ -359,7 +359,7 @@ import {b as b$1,f}from'../../chunk-NEREAHJ6.js';var s=`
|
|
|
359
359
|
nodeUsageStats { nodeType totalExecutions successCount failureCount avgExecutionTime }
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
`,
|
|
362
|
+
`,he=`
|
|
363
363
|
query FluidgridsUsageMetrics($input: UsageQueryInput!) {
|
|
364
364
|
usageMetrics(input: $input) {
|
|
365
365
|
period
|
|
@@ -373,11 +373,11 @@ import {b as b$1,f}from'../../chunk-NEREAHJ6.js';var s=`
|
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
|
|
376
|
+
`,$e="query results entityCounts totalResults metadata",Ae=`
|
|
377
377
|
query FluidgridsSearch($input: SearchRequestInput!) {
|
|
378
|
-
search(input: $input) { ${
|
|
378
|
+
search(input: $input) { ${$e} }
|
|
379
379
|
}
|
|
380
|
-
`,
|
|
380
|
+
`,Ce=`
|
|
381
381
|
query FluidgridsSearchByEntityType(
|
|
382
382
|
$entityType: String!
|
|
383
383
|
$query: String!
|
|
@@ -391,10 +391,125 @@ import {b as b$1,f}from'../../chunk-NEREAHJ6.js';var s=`
|
|
|
391
391
|
filters: $filters
|
|
392
392
|
limit: $limit
|
|
393
393
|
offset: $offset
|
|
394
|
-
) { ${
|
|
394
|
+
) { ${$e} }
|
|
395
395
|
}
|
|
396
|
-
`,
|
|
396
|
+
`,De=`
|
|
397
397
|
query FluidgridsSystemConfig {
|
|
398
398
|
systemConfig { version revision environment deploymentType hostname hostIp }
|
|
399
399
|
}
|
|
400
|
-
|
|
400
|
+
`,ze=`
|
|
401
|
+
valid errors warnings missingNodes { nodeId nodeType nodeVersion }
|
|
402
|
+
`,Oe=`
|
|
403
|
+
query FluidgridsExportWorkflow(
|
|
404
|
+
$workflowKey: String!
|
|
405
|
+
$version: String
|
|
406
|
+
$format: WorkflowExportFormat
|
|
407
|
+
$options: ExportOptionsInput
|
|
408
|
+
) {
|
|
409
|
+
exportWorkflow(
|
|
410
|
+
workflowKey: $workflowKey
|
|
411
|
+
version: $version
|
|
412
|
+
format: $format
|
|
413
|
+
options: $options
|
|
414
|
+
) {
|
|
415
|
+
format schemaVersion exportedAt workflowKey version name description
|
|
416
|
+
definitionJson context tags icon category
|
|
417
|
+
nodeReferences { nodeId nodeType nodeVersion }
|
|
418
|
+
exportFormat
|
|
419
|
+
files { path contentType content url }
|
|
420
|
+
fidelity { level items { nodeId path kind detail } }
|
|
421
|
+
irHash
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
`,Le=`
|
|
425
|
+
mutation FluidgridsImportWorkflow($input: ImportWorkflowInput!) {
|
|
426
|
+
importWorkflow(input: $input) {
|
|
427
|
+
success
|
|
428
|
+
message
|
|
429
|
+
workflow { ${c} }
|
|
430
|
+
validation { ${ze} }
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
`,be=`
|
|
434
|
+
mutation FluidgridsCreateWorkflowVersion(
|
|
435
|
+
$workflowKey: String!
|
|
436
|
+
$input: CreateWorkflowVersionInput!
|
|
437
|
+
) {
|
|
438
|
+
createWorkflowVersion(workflowKey: $workflowKey, input: $input) {
|
|
439
|
+
success
|
|
440
|
+
message
|
|
441
|
+
workflow { ${c} }
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
`,_e=`
|
|
445
|
+
query FluidgridsValidateWorkflowDefinition($definitionJson: JSON!, $strict: Boolean) {
|
|
446
|
+
validateWorkflowDefinition(definitionJson: $definitionJson, strict: $strict) {
|
|
447
|
+
valid
|
|
448
|
+
errors { code message nodeId path }
|
|
449
|
+
warnings { code message nodeId path }
|
|
450
|
+
schemaVersion
|
|
451
|
+
irHash
|
|
452
|
+
taskQueues
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
`,Ne=`
|
|
456
|
+
query FluidgridsWorkflowInterface($workflowKey: String!, $version: String) {
|
|
457
|
+
workflowInterface(workflowKey: $workflowKey, version: $version)
|
|
458
|
+
}
|
|
459
|
+
`,Pe=`
|
|
460
|
+
${A}
|
|
461
|
+
executionKind workflowFn taskQueue buildId historyLength parentClosePolicy
|
|
462
|
+
cancelRequestedAt
|
|
463
|
+
determinism { failing cause attempts since lastFailureSeq message }
|
|
464
|
+
`,ve=`
|
|
465
|
+
mutation FluidgridsStartWorkflow($input: StartWorkflowInput!) {
|
|
466
|
+
startWorkflow(input: $input) {
|
|
467
|
+
run { ${Pe} }
|
|
468
|
+
existing
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
`,Ke=`
|
|
472
|
+
query FluidgridsDescribeRun($id: ID!) {
|
|
473
|
+
workflowRun(id: $id) { ${Pe} }
|
|
474
|
+
}
|
|
475
|
+
`,Ue=`
|
|
476
|
+
query FluidgridsRunHistory($runId: ID!, $after: Int, $limit: Int) {
|
|
477
|
+
workflowRunHistory(runId: $runId, after: $after, limit: $limit) {
|
|
478
|
+
events { runId seq type taskId payload payloadUrl createdAt }
|
|
479
|
+
nextAfter
|
|
480
|
+
hasMore
|
|
481
|
+
historyLength
|
|
482
|
+
historyBytes
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
`,xe=`
|
|
486
|
+
mutation FluidgridsSignalRun(
|
|
487
|
+
$runId: ID!
|
|
488
|
+
$name: String!
|
|
489
|
+
$payload: JSON
|
|
490
|
+
$idempotencyKey: String
|
|
491
|
+
) {
|
|
492
|
+
signalWorkflowRun(
|
|
493
|
+
runId: $runId
|
|
494
|
+
name: $name
|
|
495
|
+
payload: $payload
|
|
496
|
+
idempotencyKey: $idempotencyKey
|
|
497
|
+
) {
|
|
498
|
+
accepted delivered buffered forwardedToRunId seq duplicate
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
`,qe=`
|
|
502
|
+
query FluidgridsRunStackTrace($runId: ID!, $enhanced: Boolean) {
|
|
503
|
+
workflowRunStackTrace(runId: $runId, enhanced: $enhanced) { trace enhanced }
|
|
504
|
+
}
|
|
505
|
+
`,Je=`
|
|
506
|
+
query FluidgridsRunDeterminismStatus($runId: ID!) {
|
|
507
|
+
workflowRunDeterminismStatus(runId: $runId) {
|
|
508
|
+
failing cause attempts since lastFailureSeq message
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
`,Me=`
|
|
512
|
+
mutation FluidgridsTerminateRun($runId: ID!, $reason: String) {
|
|
513
|
+
terminateWorkflowRun(runId: $runId, reason: $reason) { ${S} }
|
|
514
|
+
}
|
|
515
|
+
`;var $=class extends b{constructor(p,a,s={}){let g=ti(s.failure),m=typeof s.reason=="string"?s.reason:void 0,F=ii(s.timeoutType),T=a.toLowerCase().replace(/_/g," "),E=g?.message??m??F;super(E?`Run ${p} ${T}: ${E}`:`Run ${p} ${T}`,`WORKFLOW_${a}`);this.runId=p;this.outcome=a;this.name="FluidgridsWorkflowRunError",this.payload=s,g&&(this.failure=g),s.details!==void 0&&(this.details=s.details),m!==void 0&&(this.reason=m),s.actor!==void 0&&(this.actor=s.actor),F&&(this.timeoutType=F),typeof s.newRunId=="string"&&(this.newRunId=s.newRunId);}runId;outcome;payload;failure;details;reason;actor;timeoutType;newRunId},ei={WORKFLOW_COMPLETED:"COMPLETED",WORKFLOW_FAILED:"FAILED",WORKFLOW_CANCELLED:"CANCELLED",WORKFLOW_TERMINATED:"TERMINATED",WORKFLOW_TIMED_OUT:"TIMED_OUT",WORKFLOW_CONTINUED_AS_NEW:"CONTINUED_AS_NEW"};function O(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function He(r){return O(r)&&r.$offloaded===true}function Be(r,t){if(r!==void 0&&(!Number.isInteger(r)||r<1||r>1e3))throw new f(`${t} must be an integer between 1 and 1000`)}function ii(r){return r==="WORKFLOW_RUN"||r==="WORKFLOW_EXECUTION"?r:void 0}function ti(r){if(!O(r))return;let t=typeof r.message=="string"?r.message:"unknown failure";return {...r,message:t}}function Ge(r){let t=typeof r=="object"&&r!==null?r.name:r;if(typeof t!="string"||t.trim()==="")throw new f("workflows.start needs a workflow key");return t}var ri=["CANCELLED","COMPLETED","FAILED","TERMINATED"];function D(r){let t=r.toUpperCase();return ri.some(p=>p===t)}function je(r,t,p){let a=p.filter(F=>F.nodeId===t);if(a.length===0)throw new b(`Node ${t} not found in run ${r}`,"NOT_FOUND");let s=a.filter(F=>["FAILED","TIMEOUT"].includes(F.status.toUpperCase()));if(s.length===0)throw new b(`Node ${t} is not failed in run ${r}`,"INVALID_STATE");let[g,...m]=s;if(!g||m.length>0)throw new b(`Node ${t} is ambiguous in run ${r}; retry a specific node state`,"AMBIGUOUS");return g}function l(r){if(!r)return;let t={},p=false;for(let a of Object.keys(r))r[a]!==void 0&&(t[a]=r[a],p=true);return p?t:void 0}function Ve(r,t){return new Promise((p,a)=>{if(t?.aborted){a(new b("Aborted","ABORTED"));return}let s=setTimeout(p,r);t?.addEventListener("abort",()=>{clearTimeout(s),a(new b("Aborted","ABORTED"));},{once:true});})}function Ye(r){let{workspace:t}=r.gql,p={async list(e){return (await t.request(N,{input:l(e)??{}})).workflowDefinitions},async get(e){return (await t.request(P,e.id!==void 0?{id:e.id}:{workflowKey:e.workflowKey,version:e.version})).workflowDefinition},async versions(e){return (await t.request(v,{workflowKey:e})).workflowVersions},async create(e){return (await t.request(K,{input:e})).createWorkflowDefinition},async update(e,i){return (await t.request(U,{id:e,input:i})).updateWorkflowDefinition},async delete(e,i){return (await t.request(x,{workflowKey:e,version:i})).deleteWorkflowDefinition},async trigger(e){return (await t.request(q,{input:e})).triggerWorkflow},async publish(e){return (await t.request(J,{id:e})).publishWorkflow},async activate(e){return (await t.request(M,{id:e})).activateWorkflowDefinition},async deactivate(e){return (await t.request(B,{id:e})).deactivateWorkflowDefinition},async archive(e){return (await t.request(H,{id:e})).archiveWorkflow},async duplicate(e,i,o){return (await t.request(V,{workflowKey:e,version:i,input:o})).duplicateWorkflow},async importTemplate(e){return (await t.request(G,{input:e})).importWorkflowTemplate},async export(e,i){return (await t.request(Oe,{workflowKey:e,version:i?.version,format:i?.format,options:l(i?.options)})).exportWorkflow},async import(e){if(e.definitionJson===void 0==(e.source===void 0))throw new f("workflows.import needs exactly one of definitionJson or source");return (await t.request(Le,{input:l(e)})).importWorkflow},async createVersion(e,i){return (await t.request(be,{workflowKey:e,input:l(i)})).createWorkflowVersion},async validate(e,i){return (await t.request(_e,{definitionJson:e,strict:i?.strict})).validateWorkflowDefinition},async interface(e,i){return (await t.request(Ne,{workflowKey:e,version:i})).workflowInterface??null},async start(e,i){let o=Ge(e);return (await t.request(ve,{input:{workflowKey:o,...l(i)}})).startWorkflow}};async function a(e$1,i){if(!i.payloadUrl)throw new b(`Payload of event ${i.seq} of run ${e$1} is offloaded but has no download URL`,"PAYLOAD_UNAVAILABLE");let o;try{o=await Ze(i.payloadUrl,{method:"GET",signal:r.signal});}catch(n){throw new e(`Could not download the payload of event ${i.seq} of run ${e$1}`,n)}if(!o.ok)throw new b(`Payload of event ${i.seq} of run ${e$1} could not be downloaded (HTTP ${o.status})`,"PAYLOAD_UNAVAILABLE");return await o.json()}async function s(e,i,o){let n=i.payload??{};return o&&He(n)?a(e,i):n}let g={async list(e){return (await t.request(j,{input:l(e)??{}})).workflowRuns},async get(e){return (await t.request(Y,{id:e})).workflowRun},async logs(e,i){if(i?.limit!==void 0&&(i.limit<1||i.limit>1e3))throw new f("logs limit must be between 1 and 1000");return (await t.request(Q,{runId:e,...l(i)})).workflowRunLogs},async cancel(e){return (await t.request(z,{id:e})).cancelWorkflowRun},async pause(e){return (await t.request(X,{id:e})).pauseWorkflowRun},async resume(e,i){return (await t.request(Z,{id:e,payload:i})).resumeWorkflowRun},async retryNode(e,i){let o=await g.get(e);if(!o)throw new b(`Run ${e} not found`,"NOT_FOUND");let n=je(e,i,o.nodeStates??[]);return (await t.request(ee,{id:n.id,nodeId:i})).retryNode},async waitForCompletion(e,i){let o=i?.pollInterval??1e3,n=i?.timeout??3e5,R=Date.now();for(;;){let d=await g.get(e);if(!d)throw new b(`Run ${e} not found`,"NOT_FOUND");if(D(d.status))return d;if(Date.now()-R>n)throw new b(`Timed out waiting for run ${e} (last status ${d.status})`,"TIMEOUT");await Ve(o,r.signal);}},async describe(e){return (await t.request(Ke,{id:e})).workflowRun},async history(e,i){if(Be(i?.limit,"history limit"),i?.after!==void 0&&(!Number.isInteger(i.after)||i.after<0))throw new f("history after must be a non-negative integer");return (await t.request(Ue,{runId:e,...l(i)})).workflowRunHistory},async historyAll(e,i){Be(i?.pageSize,"history pageSize");let o=i?.resolvePayloads??true,n=i?.pageSize??500,R=[],d=0;for(;;){let f=await g.history(e,{after:d,limit:n});for(let w of f.events){let I={seq:w.seq,type:w.type,payload:await s(e,w,o),createdAt:w.createdAt};w.taskId&&(I.taskId=w.taskId),R.push(I);}if(!f.hasMore)return {runId:e,events:R,historyLength:f.historyLength,historyBytes:f.historyBytes};let k=f.nextAfter??f.events.at(-1)?.seq;if(k===void 0||k<=d)throw new b(`History of run ${e} did not advance past seq ${d}`,"INVALID_STATE");d=k;}},async signal(e,i,o,n){if(i.trim()==="")throw new f("signal name must not be empty");return (await t.request(xe,{runId:e,name:i,payload:o,idempotencyKey:n?.idempotencyKey})).signalWorkflowRun},async stackTrace(e,i){return (await t.request(qe,{runId:e,enhanced:i?.enhanced})).workflowRunStackTrace},async determinism(e){return (await t.request(Je,{runId:e})).workflowRunDeterminismStatus},async terminate(e,i){return (await t.request(Me,{runId:e,reason:i})).terminateWorkflowRun},async result(e,i){let o=i?.pollInterval??1e3,n=i?.timeout??3e5,R=Date.now(),d=await g.describe(e);for(;;){if(!d)throw new b(`Run ${e} not found`,"NOT_FOUND");if(d.executionKind!=="DURABLE_FN")throw new f(`Run ${e} is a graph run; runs.result reads durable function runs (use runs.waitForCompletion)`);if(D(d.status))break;if(Date.now()-R>n)throw new b(`Timed out waiting for run ${e} (last status ${d.status})`,"TIMEOUT");await Ve(o,r.signal),d=await g.describe(e);}let f$1=d.historyLength>=1?(await g.history(e,{after:d.historyLength-1,limit:1})).events.find(Qe=>Qe.seq===d.historyLength):void 0,k=f$1?ei[f$1.type]:void 0;if(!f$1||!k)throw new b(`Run ${e} is ${d.status} but its history has no closing event`,"INVALID_STATE");let w=await s(e,f$1,true),I=O(w)?w:{};if(k==="COMPLETED")return I.output??null;throw new $(e,k,I)}},m={async list(e){return (await t.request(te,{nodeType:e?.nodeType,publishType:e?.publishType,status:e?.status,pagination:l({limit:e?.limit,offset:e?.offset})})).nodeEndpointConfigs},async get(e,i){return (await t.request(re,{nodeType:e,nodeVersion:i})).nodeEndpointConfig}},F={async list(e,i){return (await t.request(oe,{filter:l(e),pagination:l(i)})).getConnections},async get(e){return (await t.request(se,{id:e})).getConnection},async listTypes(e,i){return (await t.request(de,{filter:l(e),pagination:l(i)})).getProviders},async create(e){return (await t.request(ne,{input:e})).createConnection},async authenticateWithApiKey(e,i){return (await t.request(le,{input:{connectionId:e,apiKey:i}})).authenticateWithApiKey},async authenticateWithBasicAuth(e,i,o){return (await t.request(ae,{input:{connectionId:e,username:i,password:o}})).authenticateWithBasicAuth},async update(e,i){return (await t.request(ge,{id:e,input:i})).updateConnection},async delete(e,i){return (await t.request(pe,{id:e,deleteVaultSecret:i?.deleteVaultSecret})).deleteConnection},async test(e){return (await t.request(ce,{connectionId:e})).testConnection}},T={async list(e){return (await t.request(fe,{status:e?.status,workflowKey:e?.workflowKey})).eventRegistrations},async get(e){return (await t.request(Fe,{id:e})).eventRegistration},async create(e){return (await t.request(we,{input:e})).createEventRegistration},async update(e,i){return (await t.request(Re,{id:e,input:i})).updateEventRegistration},async delete(e){return (await t.request(ye,{id:e})).deleteEventRegistration},async toggle(e,i){return (await t.request(me,{id:e,isActive:i})).toggleEventRegistration}},E={async list(e){return (await t.request(ke,{enabled:e?.enabled,workflowKey:e?.workflowKey,pagination:l({limit:e?.limit,offset:e?.offset})})).workflowScheduledJobs},async get(e){return (await t.request(Ee,{jobId:e})).workflowScheduledJob},async create(e){return (await t.request(Ie,{input:e})).createWorkflowScheduledJob},async update(e,i){return (await t.request(We,{jobId:e,input:i})).updateWorkflowScheduledJob},async delete(e){return (await t.request(Te,{jobId:e})).deleteWorkflowScheduledJob},setEnabled(e,i){return E.update(e,{enabled:i})}};return {workflows:p,runs:g,nodes:m,credentials:F,webhooks:T,scheduledJobs:E,dashboard:{async summary(e){return (await t.request(Se,{projectId:e})).dashboardSummary},async usage(e){return (await t.request(he,{input:e})).usageMetrics}},search:{async search(e){return (await t.request(Ae,{input:e})).search},async byEntityType(e,i,o){return (await t.request(Ce,{entityType:e,query:i,...l(o)})).searchByEntityType}},admin:{async systemInfo(){return (await t.request(De)).systemConfig}}}}var oi={id:"fluidgrids",version:"1.0.0",displayName:"FluidGrids",dependsOn:["auth"],attach(r){return Ye(r)}},fi=oi;export{$ as FluidgridsWorkflowRunError,Ye as createFluidgridsApi,fi as default,He as isOffloadedPayload,D as isTerminalRunStatus,je as resolveRetryableNodeState,Ge as resolveWorkflowKey};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/sdk-libs",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.1028.1",
|
|
4
4
|
"description": "Modular SDK library shared across all Burdenoff product SDKs (vibecontrols, botlit, fluidgrids, bigconsole, healthybowl, devportal, workspaces). Each module exports an SdkModule contract with attach(ctx) returning a typed API; product SDKs become thin shells that pick which modules to mount. Sister to @burdenoff/cli-sdk.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|