@burdenoff/sdk-libs 2026.929.1 → 2026.1026.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.
Files changed (129) hide show
  1. package/dist/chunk-JWI7ANZM.js +2 -0
  2. package/dist/core/index.cjs +2 -2
  3. package/dist/core/index.d.cts +2 -2
  4. package/dist/core/index.d.ts +2 -2
  5. package/dist/core/index.js +1 -1
  6. package/dist/index.cjs +2 -2
  7. package/dist/index.d.cts +1 -1
  8. package/dist/index.d.ts +1 -1
  9. package/dist/index.js +1 -1
  10. package/dist/{module-CTWrNzF5.d.cts → module-Bq-w9Ws5.d.cts} +2 -0
  11. package/dist/{module-CTWrNzF5.d.ts → module-Bq-w9Ws5.d.ts} +2 -0
  12. package/dist/modules/adaptercloud/index.d.cts +1 -1
  13. package/dist/modules/adaptercloud/index.d.ts +1 -1
  14. package/dist/modules/artistrybase/index.d.cts +1 -1
  15. package/dist/modules/artistrybase/index.d.ts +1 -1
  16. package/dist/modules/assethandler/index.d.cts +1 -1
  17. package/dist/modules/assethandler/index.d.ts +1 -1
  18. package/dist/modules/atheletebridge/index.d.cts +1 -1
  19. package/dist/modules/atheletebridge/index.d.ts +1 -1
  20. package/dist/modules/auth/index.d.cts +1 -1
  21. package/dist/modules/auth/index.d.ts +1 -1
  22. package/dist/modules/billing/index.d.cts +1 -1
  23. package/dist/modules/billing/index.d.ts +1 -1
  24. package/dist/modules/brainyrich/index.d.cts +1 -1
  25. package/dist/modules/brainyrich/index.d.ts +1 -1
  26. package/dist/modules/buildmyiq/index.d.cts +1 -1
  27. package/dist/modules/buildmyiq/index.d.ts +1 -1
  28. package/dist/modules/channels/index.d.cts +1 -1
  29. package/dist/modules/channels/index.d.ts +1 -1
  30. package/dist/modules/collabkin/index.d.cts +1 -1
  31. package/dist/modules/collabkin/index.d.ts +1 -1
  32. package/dist/modules/comradecircle/index.d.cts +1 -1
  33. package/dist/modules/comradecircle/index.d.ts +1 -1
  34. package/dist/modules/conversations/index.d.cts +1 -1
  35. package/dist/modules/conversations/index.d.ts +1 -1
  36. package/dist/modules/coolandlovely/index.d.cts +1 -1
  37. package/dist/modules/coolandlovely/index.d.ts +1 -1
  38. package/dist/modules/cosmicintersection/index.d.cts +1 -1
  39. package/dist/modules/cosmicintersection/index.d.ts +1 -1
  40. package/dist/modules/crewfoundry/index.d.cts +1 -1
  41. package/dist/modules/crewfoundry/index.d.ts +1 -1
  42. package/dist/modules/devportal/index.d.cts +1 -1
  43. package/dist/modules/devportal/index.d.ts +1 -1
  44. package/dist/modules/ecoimpacthub/index.d.cts +1 -1
  45. package/dist/modules/ecoimpacthub/index.d.ts +1 -1
  46. package/dist/modules/eventfullymanaged/index.d.cts +1 -1
  47. package/dist/modules/eventfullymanaged/index.d.ts +1 -1
  48. package/dist/modules/export/index.d.cts +1 -1
  49. package/dist/modules/export/index.d.ts +1 -1
  50. package/dist/modules/files/index.d.cts +1 -1
  51. package/dist/modules/files/index.d.ts +1 -1
  52. package/dist/modules/fluidgrids/index.cjs +400 -0
  53. package/dist/modules/fluidgrids/index.d.cts +641 -0
  54. package/dist/modules/fluidgrids/index.d.ts +641 -0
  55. package/dist/modules/fluidgrids/index.js +400 -0
  56. package/dist/modules/ggnomad/index.d.cts +1 -1
  57. package/dist/modules/ggnomad/index.d.ts +1 -1
  58. package/dist/modules/govcitizenhub/index.d.cts +1 -1
  59. package/dist/modules/govcitizenhub/index.d.ts +1 -1
  60. package/dist/modules/groups/index.d.cts +1 -1
  61. package/dist/modules/groups/index.d.ts +1 -1
  62. package/dist/modules/headshotmarketing/index.d.cts +1 -1
  63. package/dist/modules/headshotmarketing/index.d.ts +1 -1
  64. package/dist/modules/health/index.d.cts +1 -1
  65. package/dist/modules/health/index.d.ts +1 -1
  66. package/dist/modules/hookmovies/index.d.cts +1 -1
  67. package/dist/modules/hookmovies/index.d.ts +1 -1
  68. package/dist/modules/housingvista/index.d.cts +1 -1
  69. package/dist/modules/housingvista/index.d.ts +1 -1
  70. package/dist/modules/integrations/index.d.cts +1 -1
  71. package/dist/modules/integrations/index.d.ts +1 -1
  72. package/dist/modules/intelwatchtower/index.d.cts +1 -1
  73. package/dist/modules/intelwatchtower/index.d.ts +1 -1
  74. package/dist/modules/kadaikodi/index.d.cts +1 -1
  75. package/dist/modules/kadaikodi/index.d.ts +1 -1
  76. package/dist/modules/labsofscience/index.d.cts +1 -1
  77. package/dist/modules/labsofscience/index.d.ts +1 -1
  78. package/dist/modules/manufacturedops/index.d.cts +1 -1
  79. package/dist/modules/manufacturedops/index.d.ts +1 -1
  80. package/dist/modules/movethewheels/index.d.cts +1 -1
  81. package/dist/modules/movethewheels/index.d.ts +1 -1
  82. package/dist/modules/mybodyshield/index.d.cts +1 -1
  83. package/dist/modules/mybodyshield/index.d.ts +1 -1
  84. package/dist/modules/notifications/index.d.cts +1 -1
  85. package/dist/modules/notifications/index.d.ts +1 -1
  86. package/dist/modules/organizations/index.d.cts +1 -1
  87. package/dist/modules/organizations/index.d.ts +1 -1
  88. package/dist/modules/planmagnet/index.d.cts +1 -1
  89. package/dist/modules/planmagnet/index.d.ts +1 -1
  90. package/dist/modules/products/index.d.cts +1 -1
  91. package/dist/modules/products/index.d.ts +1 -1
  92. package/dist/modules/proserviceworld/index.d.cts +1 -1
  93. package/dist/modules/proserviceworld/index.d.ts +1 -1
  94. package/dist/modules/rbac/index.d.cts +1 -1
  95. package/dist/modules/rbac/index.d.ts +1 -1
  96. package/dist/modules/sandbox/index.d.cts +1 -1
  97. package/dist/modules/sandbox/index.d.ts +1 -1
  98. package/dist/modules/scheduler/index.d.cts +1 -1
  99. package/dist/modules/scheduler/index.d.ts +1 -1
  100. package/dist/modules/security/index.d.cts +1 -1
  101. package/dist/modules/security/index.d.ts +1 -1
  102. package/dist/modules/semanticfed/index.cjs +61 -46
  103. package/dist/modules/semanticfed/index.d.cts +25 -2
  104. package/dist/modules/semanticfed/index.d.ts +25 -2
  105. package/dist/modules/semanticfed/index.js +57 -42
  106. package/dist/modules/store/index.d.cts +1 -1
  107. package/dist/modules/store/index.d.ts +1 -1
  108. package/dist/modules/subscriberbot/index.d.cts +1 -1
  109. package/dist/modules/subscriberbot/index.d.ts +1 -1
  110. package/dist/modules/support/index.d.cts +1 -1
  111. package/dist/modules/support/index.d.ts +1 -1
  112. package/dist/modules/tags/index.d.cts +1 -1
  113. package/dist/modules/tags/index.d.ts +1 -1
  114. package/dist/modules/technospam/index.d.cts +1 -1
  115. package/dist/modules/technospam/index.d.ts +1 -1
  116. package/dist/modules/theculturepost/index.d.cts +1 -1
  117. package/dist/modules/theculturepost/index.d.ts +1 -1
  118. package/dist/modules/theglobalfuel/index.d.cts +1 -1
  119. package/dist/modules/theglobalfuel/index.d.ts +1 -1
  120. package/dist/modules/timecampus/index.d.cts +1 -1
  121. package/dist/modules/timecampus/index.d.ts +1 -1
  122. package/dist/modules/tours/index.d.cts +1 -1
  123. package/dist/modules/tours/index.d.ts +1 -1
  124. package/dist/modules/vibecontrols/index.d.cts +1 -1
  125. package/dist/modules/vibecontrols/index.d.ts +1 -1
  126. package/dist/modules/workspaces/index.d.cts +1 -1
  127. package/dist/modules/workspaces/index.d.ts +1 -1
  128. package/package.json +1 -1
  129. package/dist/chunk-Q2R2HBZ7.js +0 -2
@@ -0,0 +1,400 @@
1
+ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var ke=["password","secret","clientSecret","apiKey","token","mfaCode","accessToken","refreshToken","workspaceToken","authorization"],Se=/\b(eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+)\b/g;function he(o){let t=o.replace(Se,"<redacted-jwt>");for(let s of ke){let d=new RegExp(`("${s}"\\s*:\\s*")[^"]*(")`,"gi");t=t.replace(d,"$1<redacted>$2");}return t}var n=class extends Error{code;cause;constructor(t,s="SDK_ERROR",d){super(he(t)),this.name="SdkError",this.code=s,this.cause=d;}};var w=class extends n{constructor(t,s){super(t,"VALIDATION_ERROR",s),this.name="ValidationError";}};var u=`
2
+ id workflowKey name description version status category tags icon isActive
3
+ totalVersions projectId createdAt updatedAt
4
+ `,k=`
5
+ query FluidgridsListWorkflows($input: ListWorkflowDefinitionsInput!) {
6
+ workflowDefinitions(input: $input) {
7
+ items { ${u} }
8
+ total
9
+ hasMore
10
+ }
11
+ }
12
+ `,S=`
13
+ query FluidgridsGetWorkflow($id: ID, $workflowKey: String, $version: String) {
14
+ workflowDefinition(id: $id, workflowKey: $workflowKey, version: $version) {
15
+ ${u}
16
+ alias
17
+ definitionJson
18
+ context
19
+ }
20
+ }
21
+ `,h=`
22
+ query FluidgridsWorkflowVersions($workflowKey: String!) {
23
+ workflowVersions(workflowKey: $workflowKey) { ${u} }
24
+ }
25
+ `,W=`
26
+ mutation FluidgridsCreateWorkflow($input: CreateWorkflowDefinitionInput!) {
27
+ createWorkflowDefinition(input: $input) { ${u} }
28
+ }
29
+ `,C=`
30
+ mutation FluidgridsUpdateWorkflow($id: ID!, $input: UpdateWorkflowDefinitionInput!) {
31
+ updateWorkflowDefinition(id: $id, input: $input) { ${u} }
32
+ }
33
+ `,A=`
34
+ mutation FluidgridsDeleteWorkflow($workflowKey: String!, $version: String) {
35
+ deleteWorkflowDefinition(workflowKey: $workflowKey, version: $version)
36
+ }
37
+ `,$=`
38
+ mutation FluidgridsTriggerWorkflow($input: TriggerWorkflowInput!) {
39
+ triggerWorkflow(input: $input) {
40
+ runId
41
+ status
42
+ workflowKey
43
+ version
44
+ triggerNodeId
45
+ }
46
+ }
47
+ `,D=`
48
+ mutation FluidgridsPublishWorkflow($id: ID!) {
49
+ publishWorkflow(id: $id) { ${u} }
50
+ }
51
+ `,b=`
52
+ mutation FluidgridsActivateWorkflow($id: ID!) {
53
+ activateWorkflowDefinition(id: $id) { ${u} }
54
+ }
55
+ `,L=`
56
+ mutation FluidgridsDeactivateWorkflow($id: ID!) {
57
+ deactivateWorkflowDefinition(id: $id) { ${u} }
58
+ }
59
+ `,_=`
60
+ mutation FluidgridsDuplicateWorkflow(
61
+ $workflowKey: String!
62
+ $version: String!
63
+ $input: DuplicateWorkflowInput!
64
+ ) {
65
+ duplicateWorkflow(workflowKey: $workflowKey, version: $version, input: $input) {
66
+ success
67
+ message
68
+ workflow { ${u} }
69
+ }
70
+ }
71
+ `,O=`
72
+ mutation FluidgridsArchiveWorkflow($id: ID!) {
73
+ archiveWorkflow(id: $id) { ${u} }
74
+ }
75
+ `,N=`
76
+ mutation FluidgridsImportWorkflowTemplate($input: ImportWorkflowTemplateInput!) {
77
+ importWorkflowTemplate(input: $input) {
78
+ success
79
+ message
80
+ workflow { ${u} }
81
+ }
82
+ }
83
+ `,P=`
84
+ id workflowId workflowKey version status mode startedAt completedAt duration
85
+ triggeredById triggerNodeId errorMessage errorType progress totalNodes
86
+ completedNodes failedNodes skippedNodes createdAt
87
+ `,v=`
88
+ query FluidgridsListRuns($input: ListWorkflowRunsInput!) {
89
+ workflowRuns(input: $input) {
90
+ items { ${P} }
91
+ total
92
+ hasMore
93
+ }
94
+ }
95
+ `,x=`
96
+ query FluidgridsGetRun($id: ID!) {
97
+ workflowRun(id: $id) {
98
+ ${P}
99
+ triggerData
100
+ nodeStates {
101
+ id nodeId nodeType nodeVersion status error errorType attemptCount
102
+ startTime endTime duration output
103
+ }
104
+ }
105
+ }
106
+ `,U=`
107
+ query FluidgridsRunLogs(
108
+ $runId: ID!
109
+ $nodeId: String
110
+ $minLevel: RunLogLevel
111
+ $limit: Int
112
+ $after: String
113
+ $search: String
114
+ $includeChildRuns: Boolean
115
+ ) {
116
+ workflowRunLogs(
117
+ runId: $runId
118
+ nodeId: $nodeId
119
+ minLevel: $minLevel
120
+ limit: $limit
121
+ after: $after
122
+ search: $search
123
+ includeChildRuns: $includeChildRuns
124
+ ) {
125
+ lines {
126
+ id runId nodeId nodeStateId level message timestamp data attempt phase
127
+ stream truncated
128
+ }
129
+ hasMore
130
+ nextCursor
131
+ limitReached
132
+ }
133
+ }
134
+ `,m="id status completedAt errorMessage",K=`
135
+ mutation FluidgridsCancelRun($id: ID!) {
136
+ cancelWorkflowRun(id: $id) { ${m} }
137
+ }
138
+ `,q=`
139
+ mutation FluidgridsPauseRun($id: ID!) {
140
+ pauseWorkflowRun(id: $id) { ${m} }
141
+ }
142
+ `,J=`
143
+ mutation FluidgridsResumeRun($id: ID!, $payload: JSON) {
144
+ resumeWorkflowRun(id: $id, payload: $payload) {
145
+ success
146
+ message
147
+ resumedFromNodeId
148
+ run { ${m} }
149
+ }
150
+ }
151
+ `,M=`
152
+ mutation FluidgridsRetryNode($id: ID!, $nodeId: String!) {
153
+ retryNode(id: $id, nodeId: $nodeId) {
154
+ id nodeId nodeType status error attemptCount
155
+ }
156
+ }
157
+ `,B=`
158
+ id nodeType nodeVersion name description category icon logo keywords kind author
159
+ publishType status isLatest endpointUrl operations supportsAdapterMode
160
+ adapterOutputType docsUrl createdAt updatedAt
161
+ `,H=`
162
+ query FluidgridsListNodes(
163
+ $nodeType: String
164
+ $publishType: PublishType
165
+ $status: NodeConfigStatus
166
+ $pagination: WorkflowPaginationInput
167
+ ) {
168
+ nodeEndpointConfigs(
169
+ nodeType: $nodeType
170
+ publishType: $publishType
171
+ status: $status
172
+ pagination: $pagination
173
+ ) {
174
+ configs { ${B} }
175
+ pagination { total limit offset hasMore }
176
+ }
177
+ }
178
+ `,G=`
179
+ query FluidgridsGetNode($nodeType: String!, $nodeVersion: String!) {
180
+ nodeEndpointConfig(nodeType: $nodeType, nodeVersion: $nodeVersion) {
181
+ ${B}
182
+ healthCheckUrl
183
+ nodeAdapters
184
+ }
185
+ }
186
+ `,I=`
187
+ id name description status providerId credentialSource externalAccountId
188
+ externalAccountName externalAccountEmail grantedScopes lastUsedAt lastHealthCheck
189
+ errorMessage createdAt updatedAt
190
+ `,V=`
191
+ query FluidgridsListCredentials(
192
+ $filter: ConnectionFilterInput
193
+ $pagination: IntegrationsPaginationInput
194
+ ) {
195
+ getConnections(filter: $filter, pagination: $pagination) {
196
+ items {
197
+ ${I}
198
+ provider { id key name category authType icon }
199
+ }
200
+ total
201
+ hasMore
202
+ }
203
+ }
204
+ `,j=`
205
+ query FluidgridsGetCredential($id: ID!) {
206
+ getConnection(id: $id) {
207
+ ${I}
208
+ config
209
+ metadata
210
+ workspaceId
211
+ provider {
212
+ id key name description category authType configSchema availableScopes
213
+ defaultScopes icon docsUrl
214
+ }
215
+ }
216
+ }
217
+ `,Y=`
218
+ query FluidgridsListCredentialTypes(
219
+ $filter: ProviderFilterInput
220
+ $pagination: IntegrationsPaginationInput
221
+ ) {
222
+ getProviders(filter: $filter, pagination: $pagination) {
223
+ items {
224
+ id key name description category authType configSchema availableScopes
225
+ defaultScopes icon docsUrl isBuiltIn isEnabled connectionCount
226
+ }
227
+ total
228
+ hasMore
229
+ }
230
+ }
231
+ `,z=`
232
+ mutation FluidgridsCreateCredential($input: CreateConnectionInput!) {
233
+ createConnection(input: $input) {
234
+ ${I}
235
+ provider { id key name authType }
236
+ }
237
+ }
238
+ `,Q=`
239
+ id name status grantedScopes externalAccountName errorMessage updatedAt
240
+ `,Z=`
241
+ mutation FluidgridsAuthenticateCredentialApiKey($input: ApiKeyAuthInput!) {
242
+ authenticateWithApiKey(input: $input) { ${Q} }
243
+ }
244
+ `,X=`
245
+ mutation FluidgridsAuthenticateCredentialBasic($input: BasicAuthInput!) {
246
+ authenticateWithBasicAuth(input: $input) { ${Q} }
247
+ }
248
+ `,ee=`
249
+ mutation FluidgridsUpdateCredential($id: ID!, $input: UpdateConnectionInput!) {
250
+ updateConnection(id: $id, input: $input) {
251
+ id name description status config updatedAt
252
+ }
253
+ }
254
+ `,ie=`
255
+ mutation FluidgridsDeleteCredential($id: ID!, $deleteVaultSecret: Boolean) {
256
+ deleteConnection(id: $id, deleteVaultSecret: $deleteVaultSecret)
257
+ }
258
+ `,te=`
259
+ mutation FluidgridsTestCredential($connectionId: ID!) {
260
+ testConnection(connectionId: $connectionId) { success message latencyMs }
261
+ }
262
+ `,c=`
263
+ id name description workflowKey triggerNodeId eventSource eventType status isActive
264
+ webhookUrl webhookToken validationMethod signatureHeader apiKeyHeader payloadMapping
265
+ config tags totalTriggers successfulTriggers failedTriggers lastTriggeredAt
266
+ projectId createdAt updatedAt
267
+ `,re=`
268
+ query FluidgridsListWebhooks($status: EventStatus, $workflowKey: String) {
269
+ eventRegistrations(status: $status, workflowKey: $workflowKey) { ${c} }
270
+ }
271
+ `,oe=`
272
+ query FluidgridsGetWebhook($id: ID!) {
273
+ eventRegistration(id: $id) { ${c} }
274
+ }
275
+ `,de=`
276
+ mutation FluidgridsCreateWebhook($input: CreateEventRegistrationInput!) {
277
+ createEventRegistration(input: $input) { ${c} }
278
+ }
279
+ `,se=`
280
+ mutation FluidgridsUpdateWebhook($id: ID!, $input: UpdateEventRegistrationInput!) {
281
+ updateEventRegistration(id: $id, input: $input) { ${c} }
282
+ }
283
+ `,ne=`
284
+ mutation FluidgridsDeleteWebhook($id: ID!) {
285
+ deleteEventRegistration(id: $id)
286
+ }
287
+ `,ue=`
288
+ mutation FluidgridsToggleWebhook($id: ID!, $isActive: Boolean!) {
289
+ toggleEventRegistration(id: $id, isActive: $isActive) { ${c} }
290
+ }
291
+ `,E=`
292
+ id name workflowKey version schedule enabled nextRun lastRun config createdAt updatedAt
293
+ `,le=`
294
+ query FluidgridsListScheduledJobs(
295
+ $enabled: Boolean
296
+ $workflowKey: String
297
+ $pagination: WorkflowPaginationInput
298
+ ) {
299
+ workflowScheduledJobs(enabled: $enabled, workflowKey: $workflowKey, pagination: $pagination) {
300
+ jobs { ${E} }
301
+ pagination { total limit offset hasMore }
302
+ }
303
+ }
304
+ `,ae=`
305
+ query FluidgridsGetScheduledJob($jobId: ID!) {
306
+ workflowScheduledJob(jobId: $jobId) {
307
+ ${E}
308
+ workspaceId
309
+ }
310
+ }
311
+ `,ge=`
312
+ mutation FluidgridsCreateScheduledJob($input: ScheduledJobInput!) {
313
+ createWorkflowScheduledJob(input: $input) {
314
+ success
315
+ message
316
+ job { ${E} }
317
+ }
318
+ }
319
+ `,pe=`
320
+ mutation FluidgridsUpdateScheduledJob($jobId: ID!, $input: WorkflowUpdateScheduledJobInput!) {
321
+ updateWorkflowScheduledJob(jobId: $jobId, input: $input) {
322
+ success
323
+ message
324
+ job { ${E} }
325
+ }
326
+ }
327
+ `,ce=`
328
+ mutation FluidgridsDeleteScheduledJob($jobId: ID!) {
329
+ deleteWorkflowScheduledJob(jobId: $jobId) { success message }
330
+ }
331
+ `,Fe=`
332
+ query FluidgridsDashboardSummary($projectId: String) {
333
+ dashboardSummary(projectId: $projectId) {
334
+ userId
335
+ username
336
+ workflowsCount
337
+ activeWorkflowsCount
338
+ archivedWorkflowsCount
339
+ runsCountTotal
340
+ runsCompletedCount
341
+ runsFailedCount
342
+ runsCancelledCount
343
+ runsPendingCount
344
+ runsRunningCount
345
+ runsWaitingCount
346
+ runsCompletedLast24h
347
+ runsFailedLast24h
348
+ runsCompletedLast7d
349
+ runsFailedLast7d
350
+ runsCompletedLast30d
351
+ runsFailedLast30d
352
+ totalNodesExecutedCount
353
+ workflowSuccessRate
354
+ avgWorkflowExecutionTimeSeconds
355
+ avgNodeExecutionTimeSeconds
356
+ timeSavedEstimateHours
357
+ recentRuns { id workflowKey version status startedAt completedAt duration }
358
+ recentWorkflows { workflowKey name version updatedAt }
359
+ nodeUsageStats { nodeType totalExecutions successCount failureCount avgExecutionTime }
360
+ }
361
+ }
362
+ `,fe=`
363
+ query FluidgridsUsageMetrics($input: UsageQueryInput!) {
364
+ usageMetrics(input: $input) {
365
+ period
366
+ workflowMetrics {
367
+ totalRuns successfulRuns failedRuns cancelledRuns totalDurationSeconds
368
+ averageDurationSeconds minDurationSeconds maxDurationSeconds medianDurationSeconds
369
+ }
370
+ nodeMetrics {
371
+ totalNodes successfulNodes failedNodes skippedNodes totalDurationSeconds
372
+ averageDurationSeconds nodeTypeBreakdown
373
+ }
374
+ }
375
+ }
376
+ `,we="query results entityCounts totalResults metadata",Ee=`
377
+ query FluidgridsSearch($input: SearchRequestInput!) {
378
+ search(input: $input) { ${we} }
379
+ }
380
+ `,Re=`
381
+ query FluidgridsSearchByEntityType(
382
+ $entityType: String!
383
+ $query: String!
384
+ $filters: SearchFilterInput
385
+ $limit: Int
386
+ $offset: Int
387
+ ) {
388
+ searchByEntityType(
389
+ entityType: $entityType
390
+ query: $query
391
+ filters: $filters
392
+ limit: $limit
393
+ offset: $offset
394
+ ) { ${we} }
395
+ }
396
+ `,ye=`
397
+ query FluidgridsSystemConfig {
398
+ systemConfig { version revision environment deploymentType hostname hostIp }
399
+ }
400
+ `;var Ce=["CANCELLED","COMPLETED","FAILED","TERMINATED"];function me(o){let t=o.toUpperCase();return Ce.some(s=>s===t)}function Ie(o,t,s){let d=s.filter(g=>g.nodeId===t);if(d.length===0)throw new n(`Node ${t} not found in run ${o}`,"NOT_FOUND");let a=d.filter(g=>["FAILED","TIMEOUT"].includes(g.status.toUpperCase()));if(a.length===0)throw new n(`Node ${t} is not failed in run ${o}`,"INVALID_STATE");let[F,...R]=a;if(!F||R.length>0)throw new n(`Node ${t} is ambiguous in run ${o}; retry a specific node state`,"AMBIGUOUS");return F}function l(o){if(!o)return;let t={},s=false;for(let d of Object.keys(o))o[d]!==void 0&&(t[d]=o[d],s=true);return s?t:void 0}function Ae(o,t){return new Promise((s,d)=>{if(t?.aborted){d(new n("Aborted","ABORTED"));return}let a=setTimeout(s,o);t?.addEventListener("abort",()=>{clearTimeout(a),d(new n("Aborted","ABORTED"));},{once:true});})}function Te(o){let{workspace:t}=o.gql,s={async list(e){return (await t.request(k,{input:l(e)??{}})).workflowDefinitions},async get(e){return (await t.request(S,e.id!==void 0?{id:e.id}:{workflowKey:e.workflowKey,version:e.version})).workflowDefinition},async versions(e){return (await t.request(h,{workflowKey:e})).workflowVersions},async create(e){return (await t.request(W,{input:e})).createWorkflowDefinition},async update(e,i){return (await t.request(C,{id:e,input:i})).updateWorkflowDefinition},async delete(e,i){return (await t.request(A,{workflowKey:e,version:i})).deleteWorkflowDefinition},async trigger(e){return (await t.request($,{input:e})).triggerWorkflow},async publish(e){return (await t.request(D,{id:e})).publishWorkflow},async activate(e){return (await t.request(b,{id:e})).activateWorkflowDefinition},async deactivate(e){return (await t.request(L,{id:e})).deactivateWorkflowDefinition},async archive(e){return (await t.request(O,{id:e})).archiveWorkflow},async duplicate(e,i,r){return (await t.request(_,{workflowKey:e,version:i,input:r})).duplicateWorkflow},async importTemplate(e){return (await t.request(N,{input:e})).importWorkflowTemplate}},d={async list(e){return (await t.request(v,{input:l(e)??{}})).workflowRuns},async get(e){return (await t.request(x,{id:e})).workflowRun},async logs(e,i){if(i?.limit!==void 0&&(i.limit<1||i.limit>1e3))throw new w("logs limit must be between 1 and 1000");return (await t.request(U,{runId:e,...l(i)})).workflowRunLogs},async cancel(e){return (await t.request(K,{id:e})).cancelWorkflowRun},async pause(e){return (await t.request(q,{id:e})).pauseWorkflowRun},async resume(e,i){return (await t.request(J,{id:e,payload:i})).resumeWorkflowRun},async retryNode(e,i){let r=await d.get(e);if(!r)throw new n(`Run ${e} not found`,"NOT_FOUND");let p=Ie(e,i,r.nodeStates??[]);return (await t.request(M,{id:p.id,nodeId:i})).retryNode},async waitForCompletion(e,i){let r=i?.pollInterval??1e3,p=i?.timeout??3e5,T=Date.now();for(;;){let f=await d.get(e);if(!f)throw new n(`Run ${e} not found`,"NOT_FOUND");if(me(f.status))return f;if(Date.now()-T>p)throw new n(`Timed out waiting for run ${e} (last status ${f.status})`,"TIMEOUT");await Ae(r,o.signal);}}},a={async list(e){return (await t.request(H,{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(G,{nodeType:e,nodeVersion:i})).nodeEndpointConfig}},F={async list(e,i){return (await t.request(V,{filter:l(e),pagination:l(i)})).getConnections},async get(e){return (await t.request(j,{id:e})).getConnection},async listTypes(e,i){return (await t.request(Y,{filter:l(e),pagination:l(i)})).getProviders},async create(e){return (await t.request(z,{input:e})).createConnection},async authenticateWithApiKey(e,i){return (await t.request(Z,{input:{connectionId:e,apiKey:i}})).authenticateWithApiKey},async authenticateWithBasicAuth(e,i,r){return (await t.request(X,{input:{connectionId:e,username:i,password:r}})).authenticateWithBasicAuth},async update(e,i){return (await t.request(ee,{id:e,input:i})).updateConnection},async delete(e,i){return (await t.request(ie,{id:e,deleteVaultSecret:i?.deleteVaultSecret})).deleteConnection},async test(e){return (await t.request(te,{connectionId:e})).testConnection}},R={async list(e){return (await t.request(re,{status:e?.status,workflowKey:e?.workflowKey})).eventRegistrations},async get(e){return (await t.request(oe,{id:e})).eventRegistration},async create(e){return (await t.request(de,{input:e})).createEventRegistration},async update(e,i){return (await t.request(se,{id:e,input:i})).updateEventRegistration},async delete(e){return (await t.request(ne,{id:e})).deleteEventRegistration},async toggle(e,i){return (await t.request(ue,{id:e,isActive:i})).toggleEventRegistration}},g={async list(e){return (await t.request(le,{enabled:e?.enabled,workflowKey:e?.workflowKey,pagination:l({limit:e?.limit,offset:e?.offset})})).workflowScheduledJobs},async get(e){return (await t.request(ae,{jobId:e})).workflowScheduledJob},async create(e){return (await t.request(ge,{input:e})).createWorkflowScheduledJob},async update(e,i){return (await t.request(pe,{jobId:e,input:i})).updateWorkflowScheduledJob},async delete(e){return (await t.request(ce,{jobId:e})).deleteWorkflowScheduledJob},setEnabled(e,i){return g.update(e,{enabled:i})}};return {workflows:s,runs:d,nodes:a,credentials:F,webhooks:R,scheduledJobs:g,dashboard:{async summary(e){return (await t.request(Fe,{projectId:e})).dashboardSummary},async usage(e){return (await t.request(fe,{input:e})).usageMetrics}},search:{async search(e){return (await t.request(Ee,{input:e})).search},async byEntityType(e,i,r){return (await t.request(Re,{entityType:e,query:i,...l(r)})).searchByEntityType}},admin:{async systemInfo(){return (await t.request(ye)).systemConfig}}}}var $e={id:"fluidgrids",version:"1.0.0",displayName:"FluidGrids",dependsOn:["auth"],attach(o){return Te(o)}},Ke=$e;exports.createFluidgridsApi=Te;exports.default=Ke;exports.isTerminalRunStatus=me;exports.resolveRetryableNodeState=Ie;