@burdenoff/fluidgrids-fe-sdk 2026.1113.1 → 2026.1113.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/dist/{AiStudioPage-D3MAk-bs.js → AiStudioPage-5KYZ8r8-.js} +464 -7
- package/dist/{ApprovalInboxPage-Bb8H9ruw.js → ApprovalInboxPage-BsJX4osU.js} +4 -3
- package/dist/{ConnectionFormDialog-Bg9_OdHX.js → ConnectionFormDialog-Dr1-CTan.js} +2 -1
- package/dist/CreateFluidgridsTagDocument-Dtp9KPLJ.js +1055 -0
- package/dist/{DataSinkDashboardPage-Dc2QuJbL.js → DataSinkDashboardPage-8ZDn85e2.js} +1 -1
- package/dist/{DataTablesPage-Cv4veaKK.js → DataTablesPage-BBvABuxE.js} +5 -4
- package/dist/{EntityTagPicker-D8ws706D.js → EntityTagPicker-BppBSEJk.js} +2 -2
- package/dist/{ExecutionDetailPage-CTVGE-d-.js → ExecutionDetailPage-BXDF2eoT.js} +1444 -18
- package/dist/ExecutionsListDocument-CzdLPpj5.js +1259 -0
- package/dist/{ExecutionsListPage-J0sJPuoM.js → ExecutionsListPage--4BthM8L.js} +285 -11
- package/dist/FailureTriagePanel-B5WCSRFo.js +1252 -0
- package/dist/{FluidGridsProvider-C4FVNz0n.js → FluidGridsProvider-Dc_Jhtch.js} +8666 -8734
- package/dist/{HistoryPage-B9XcTPrO.js → HistoryPage-BvFk2m1m.js} +4 -3
- package/dist/{InsightsPage-DFOltjyj.js → InsightsPage-Dwmb02F6.js} +2682 -5
- package/dist/{MissingNodesInstallModal-D8H-YNCJ.js → MissingNodesInstallModal-Cze674hp.js} +2 -2
- package/dist/{NodesPage-YQ-hP60x.js → NodesPage-C5Dq-ru-.js} +3 -2
- package/dist/{OpenTemplateAsCodeButton-hH26HQCk.js → OpenTemplateAsCodeButton-8MZHih6I.js} +2 -2
- package/dist/{PaidTemplateConfirm-DoKWMBtR.js → PaidTemplateConfirm-0G-gv29n.js} +1 -1
- package/dist/{PublishCustomNodeAction-5XXnSA3H.js → PublishCustomNodeAction-OOY35dUv.js} +1 -1
- package/dist/QuotaExhaustedDialog-wvu_-WJ-.js +55 -0
- package/dist/{RunnerStatusPill-Ctg4TJcP.js → RunnerStatusPill-Bh7mEsPh.js} +2 -1
- package/dist/{RunnersPage-CAt4YDhB.js → RunnersPage-DHeuUDil.js} +2 -2
- package/dist/{SettingsPage-DEKPCVVP.js → SettingsPage-CfjXiGpb.js} +694 -14
- package/dist/{TagFilterSelect-CwM2-DU6.js → TagFilterSelect-CAShgvbS.js} +1 -1
- package/dist/{TaskQueuesPage-Dhi6SIT4.js → TaskQueuesPage--Mmn36b-.js} +3 -3
- package/dist/{TemplateCard-DVSd_4zJ.js → TemplateCard-BA_9em22.js} +644 -352
- package/dist/{TemplateConfigurationModal-BKi1z7z7.js → TemplateConfigurationModal-BT3PaR0O.js} +4 -3
- package/dist/{TemplateDetailPanel-DK1gF7P5.js → TemplateDetailPanel-BxFNnlXm.js} +2 -1
- package/dist/{TemplatePreview-DuSX2Q7H.js → TemplatePreview-Bagja6WN.js} +7 -7
- package/dist/{TemplatesPage-CAWHh61l.js → TemplatesPage-CAajpJ5w.js} +711 -6
- package/dist/{VariablesPage-D7CoatWf.js → VariablesPage-CgUBKhAe.js} +3 -3
- package/dist/{VersionDiffDialog-DGwysiyE.js → VersionDiffDialog-D9W5Fm56.js} +233 -129
- package/dist/VersionLifecycleBar-DuphLOT0.js +131 -0
- package/dist/{WorkflowBuilder-DAeoQi5E.js → WorkflowBuilder-DMpSPElu.js} +16 -13
- package/dist/{WorkflowBuilder-BJgqDboZ.js → WorkflowBuilder-v8h8skwG.js} +5 -5
- package/dist/WorkflowDefinitionDocument-DZLbTPUZ.js +321 -0
- package/dist/WorkflowEditLeaseStatusDocument-Dp62med3.js +627 -0
- package/dist/WorkflowProposalCard-zCdUpCk8.js +249 -0
- package/dist/WorkflowProposalDocument-BdUbsrd0.js +620 -0
- package/dist/{WorkflowSearchRedirect-CMEvd_AR.js → WorkflowSearchRedirect-G78lINAE.js} +1 -1
- package/dist/{WorkflowShareDialog-BgHRsDP0.js → WorkflowShareDialog-B7VOgr4-.js} +304 -3
- package/dist/WorkflowVersionsDocument-CfPMloRW.js +3195 -0
- package/dist/{WorkflowsList-CcQPxWKL.js → WorkflowsList-CPYzfE4K.js} +11 -9
- package/dist/agent-form-D0uLvzx4.js +718 -0
- package/dist/{agentTools-DKpNKztf.js → agentTools-DTXUqtfu.js} +4 -4
- package/dist/api-BZVyX5d2.js +2286 -0
- package/dist/api-BqA-f-AD.js +8064 -0
- package/dist/app-BJUvugPM.js +3813 -0
- package/dist/assert-rules-CPNrO44K.js +318 -0
- package/dist/attach-node-helpers-CNsYtLOR.js +32 -0
- package/dist/badge-CXfPhoMH.js +26 -0
- package/dist/{canvasNoteTools-C_AN79m0.js → canvasNoteTools-DmfZwtnL.js} +3 -3
- package/dist/{channel-CZ70oI81.js → channel-DtF1n_ab.js} +1 -1
- package/dist/client-Ctl4jmY3.js +127 -0
- package/dist/code-editor-diagnostics-Zr0cIcx1.js +46 -0
- package/dist/{code-editor-field-Dt6KNWwN.js → code-editor-field-Cv907s3W.js} +2 -2
- package/dist/{codec-client-CJ95Rmqo.js → codec-client-CAYl6j46.js} +2 -1
- package/dist/conditionBuilder-D8aLGL1w.js +1134 -0
- package/dist/config-X97zrIvn.js +600 -0
- package/dist/{definition-canvas-Bshn_dSP.js → definition-canvas-DL25_6NH.js} +1 -1
- package/dist/{dialog-Cjb4lB4D.js → dialog-BVd152GS.js} +3 -14
- package/dist/durable-nodes-DXCCQYWD.js +81 -0
- package/dist/errors-xPZ-IbQd.js +142 -0
- package/dist/executions.js +2 -2
- package/dist/{flow-builder-D3Hl2AFk.js → flow-builder-Dv5fWJ6F.js} +9301 -8189
- package/dist/{node-registry-refresh-Dy0uRg9f.js → global-client-DP_Wxe5t.js} +2 -27
- package/dist/global-operations-7pvXw_j9.js +145 -0
- package/dist/history.js +1 -1
- package/dist/{index-CWcP-tG1.d.ts → index-DtMUtXNq.d.ts} +247 -247
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4403 -46
- package/dist/input-ChT6Q-Pr.js +17 -0
- package/dist/logs-panel-DtG93ocy.js +342 -0
- package/dist/mapping-colors-BIX_YeCQ.js +48 -0
- package/dist/{node-detail-view-bVLeYarT.js → node-detail-view-BKI_2kM6.js} +12 -11
- package/dist/{node-editor-tab-body-JHHVtQgR.js → node-editor-tab-body-Cc1MWEFR.js} +3 -3
- package/dist/{node-operation-selection-DAbS6jSY.js → node-operation-selection-Czeeb2D4.js} +2 -139
- package/dist/node-registry-refresh-s3okf83X.js +27 -0
- package/dist/nodes.js +1 -1
- package/dist/notesKey-5EaREBGA.js +12 -0
- package/dist/observability.d.ts +1 -1
- package/dist/observability.js +2 -2
- package/dist/{popover-Xx3gN7vg.js → popover-DDv7J1Kl.js} +717 -6
- package/dist/{quick-config-panel-BvVQXuIL.js → quick-config-panel-BPCRfqWI.js} +4 -4
- package/dist/read-only-context-Dt9N9SIG.js +18 -0
- package/dist/{schedule-panel-DCb40TPN.js → schedule-panel-C1KwfLCE.js} +14 -12
- package/dist/settings.js +1 -1
- package/dist/{shared-CMfn30xT.js → shared-Ctl9ZHo1.js} +2 -1
- package/dist/{sidebar-node-editor-DxCWFZG2.js → sidebar-node-editor-d9Rlq5pU.js} +4 -4
- package/dist/sticky-notes-23j-wL6Q.js +96 -0
- package/dist/template-code-dqRunGOv.js +184 -0
- package/dist/template-preview-C01KV277.js +29 -0
- package/dist/templates.js +2 -2
- package/dist/token-refresh-link-BjN7H4qA.js +291 -0
- package/dist/useAgentDefinitions-ZKX2N9aP.js +3101 -0
- package/dist/useConnections-BlB0gbOB.js +931 -0
- package/dist/useDurableParity-BgLH_SCF.js +2088 -0
- package/dist/{useEntityTags-Db4Pc8_M.js → useEntityTags-4iW6UTly.js} +227 -3
- package/dist/{useExecutions-DOpG1pUQ.js → useExecutions-Bm7q_UwN.js} +6 -3
- package/dist/useGlobalStoreClient-DMTrywdX.js +24 -0
- package/dist/{useHumanRequests-ZiR0sSzS.js → useHumanRequests-DwG2tQ3f.js} +2 -1
- package/dist/{useObservability-rQmwhoZZ.js → useObservability-DPATdbw7.js} +4 -2
- package/dist/{useRunHistory-COn6dl7l.js → useRunHistory-CGfjCsJ3.js} +1122 -4
- package/dist/{useVariables-2ddyJX4a.js → useVariables-DFdZofLQ.js} +2 -1
- package/dist/{useWorkflowCodeExport-ZoUJKRSK.js → useWorkflowCodeExport-D_mCuhKP.js} +289 -4
- package/dist/useWorkflowOrganization-r5FWNBs6.js +1690 -0
- package/dist/useWorkflowProposal-Bh2_qjmM.js +7478 -0
- package/dist/{useWorkflows-jOW60YmD.js → useWorkflows-aqVD7kGa.js} +694 -4
- package/dist/workflow-builder.js +5 -5
- package/dist/{workflow-code-transfer-l9wO34S0.js → workflow-code-transfer-5C0HUzae.js} +1 -53
- package/dist/workflow-host.js +4 -2
- package/dist/workflow-pages.d.ts +1 -1
- package/dist/workflow-pages.js +19 -19
- package/dist/workflow-preview.js +3 -2
- package/dist/workflows-list.js +1 -1
- package/package.json +1 -1
- package/dist/FailureTriagePanel-BbYFYeV_.js +0 -311
- package/dist/WorkflowProposalCard-DGMdZC4R.js +0 -1432
- package/dist/agent-form-Bfvm32j1.js +0 -83
- package/dist/api-DQtHXbIg.js +0 -224
- package/dist/api-MeAm6g7E.js +0 -55
- package/dist/client-C9XSzSXr.js +0 -1147
- package/dist/graphql-operation-types-C9qbvRa8.js +0 -53122
- package/dist/useAgentDefinitions-_hgNCK1A.js +0 -550
- package/dist/useConnections-Cs7LCWEM.js +0 -401
- package/dist/useDurableParity-CcLeCDfv.js +0 -504
- package/dist/useWorkflowOrganization-QxVePSkk.js +0 -282
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
// src/modules/agent-definitions/utils/agent-form.ts
|
|
3
|
-
const MAX_GRANT_DAYS = 365;
|
|
4
|
-
const MAX_TOOL_RULES = 100;
|
|
5
|
-
const MAX_CONNECTIONS = 100;
|
|
6
|
-
var AgentFormError = class extends Error {
|
|
7
|
-
constructor(message) {
|
|
8
|
-
super(message);
|
|
9
|
-
this.name = "AgentFormError";
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
function emptyAgentForm() {
|
|
13
|
-
return {
|
|
14
|
-
name: "",
|
|
15
|
-
description: "",
|
|
16
|
-
tools: [{
|
|
17
|
-
nodeType: "",
|
|
18
|
-
operations: ""
|
|
19
|
-
}],
|
|
20
|
-
connectionScope: [],
|
|
21
|
-
requireToolApproval: false,
|
|
22
|
-
status: "ACTIVE"
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function agentToForm(agent) {
|
|
26
|
-
return {
|
|
27
|
-
name: agent.name,
|
|
28
|
-
description: agent.description ?? "",
|
|
29
|
-
tools: agent.toolAllowlist.length > 0 ? agent.toolAllowlist.map((rule) => ({
|
|
30
|
-
nodeType: rule.nodeType,
|
|
31
|
-
operations: rule.operations.join(", ")
|
|
32
|
-
})) : [{
|
|
33
|
-
nodeType: "",
|
|
34
|
-
operations: ""
|
|
35
|
-
}],
|
|
36
|
-
connectionScope: [...agent.connectionScope],
|
|
37
|
-
requireToolApproval: agent.requireToolApproval,
|
|
38
|
-
status: agent.status
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function splitOperations(value) {
|
|
42
|
-
return [...new Set(value.split(",").map((operation) => operation.trim()).filter(Boolean))];
|
|
43
|
-
}
|
|
44
|
-
/** Validate the form and build the mutation input. Throws AgentFormError on invalid input. */
|
|
45
|
-
function formToInput(form) {
|
|
46
|
-
const name = form.name.trim();
|
|
47
|
-
if (name.length === 0 || name.length > 200) throw new AgentFormError("Give the agent a name of 1 to 200 characters.");
|
|
48
|
-
const description = form.description.trim();
|
|
49
|
-
if (description.length > 2e3) throw new AgentFormError("The description must be at most 2000 characters.");
|
|
50
|
-
const rules = form.tools.map((row) => ({
|
|
51
|
-
nodeType: row.nodeType.trim(),
|
|
52
|
-
operations: splitOperations(row.operations)
|
|
53
|
-
})).filter((rule) => rule.nodeType.length > 0 || rule.operations.length > 0);
|
|
54
|
-
if (rules.some((rule) => rule.nodeType.length === 0)) throw new AgentFormError("Every tool rule needs a node type.");
|
|
55
|
-
if (rules.length > 100) throw new AgentFormError(`At most ${100} tool rules.`);
|
|
56
|
-
const connectionScope = [...new Set(form.connectionScope.filter(Boolean))];
|
|
57
|
-
if (connectionScope.length > 100) throw new AgentFormError(`At most ${100} connections.`);
|
|
58
|
-
return {
|
|
59
|
-
name,
|
|
60
|
-
description: description || null,
|
|
61
|
-
toolAllowlist: rules,
|
|
62
|
-
connectionScope,
|
|
63
|
-
requireToolApproval: form.requireToolApproval,
|
|
64
|
-
status: form.status
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
/** Whole days for a grant, or an error message when out of range. */
|
|
68
|
-
function grantDays(value) {
|
|
69
|
-
const days = Number(value);
|
|
70
|
-
if (!Number.isInteger(days) || days < 1 || days > 365) throw new AgentFormError(`A grant lasts between 1 and ${365} days.`);
|
|
71
|
-
return days;
|
|
72
|
-
}
|
|
73
|
-
/** "store/slack: postMessage, listChannels" / "store/notion: any operation". */
|
|
74
|
-
function describeRule(rule) {
|
|
75
|
-
return rule.operations.length > 0 ? `${rule.nodeType}: ${rule.operations.join(", ")}` : `${rule.nodeType}: any operation`;
|
|
76
|
-
}
|
|
77
|
-
/** Whether a node type is the AI Agent node (raw types carry a `store:` prefix and an op suffix). */
|
|
78
|
-
function isAgentNodeType(nodeType) {
|
|
79
|
-
if (!nodeType) return false;
|
|
80
|
-
return nodeType === "store/ai-agent" || nodeType.includes("store/ai-agent");
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export { formToInput as a, emptyAgentForm as i, agentToForm as n, grantDays as o, describeRule as r, isAgentNodeType as s, AgentFormError as t };
|
package/dist/api-DQtHXbIg.js
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { d as readTyped, f as writeTyped } from "./shared-CMfn30xT.js";
|
|
3
|
-
import { Bn as StartBatchOperationDocument, Bt as PauseActivityDocument, E as CompleteActivityByIdDocument, Er as WorkflowBatchOperationsDocument, Ht as PauseWorkflowScheduleDocument, I as CreateWorkflowSearchAttributeDocument, L as CreateWorkflowSignalTokenDocument, Or as WorkflowCodeBundleSdkDocument, Qn as TriggerWorkflowScheduleDocument, T as CodecServerSettingsDocument, Vn as StartBatchTerminateDocument, W as DeleteActivityPauseRuleDocument, Xt as QueryWorkflowRunDocument, Z as DeleteWorkflowSearchAttributeDocument, _n as RunControlFieldsDocument, ar as UpdateArchiveSettingsDocument, b as CancelBatchOperationDocument, br as WorkflowActivityPauseRulesDocument, cn as ResetWorkflowRunToLastCleanTaskDocument, d as ArchiveSettingsDocument, er as UnpauseActivityDocument, gi as WorkflowSignalTokensDocument, hr as UpsertWorkflowRunSearchAttributesDocument, ht as FailActivityByIdDocument, ir as UpdateActivityOptionsDocument, k as CreateActivityPauseRuleDocument, li as WorkflowScheduleDescribeDocument, oi as WorkflowRunUpdateDocument, on as ResetActivityDocument, or as UpdateCodecServerSettingsDocument, p as BackfillWorkflowScheduleDocument, pi as WorkflowSearchAttributesDocument, pn as RevokeWorkflowSignalTokenDocument, pr as UpdateWorkflowRunDocument, sn as ResetWorkflowRunDocument, ti as WorkflowRunHistoryArchiveDocument, tr as UnpauseWorkflowScheduleDocument, wr as WorkflowBatchOperationDocument, zn as StartBatchExportDocument } from "./graphql-operation-types-C9qbvRa8.js";
|
|
4
|
-
|
|
5
|
-
// src/modules/run-control/api.ts
|
|
6
|
-
/**
|
|
7
|
-
* Phase C run control (BOFF-9906): the reads and writes the run page, the
|
|
8
|
-
* Runs list, Settings and the builder's schedule panel send. Each is a plain
|
|
9
|
-
* network call through the shared FluidGrids client; the callers send them
|
|
10
|
-
* only while the matching Phase C flag is on (usePhaseCFlags), so with every
|
|
11
|
-
* flag off none of these operations is ever sent.
|
|
12
|
-
*/
|
|
13
|
-
/**
|
|
14
|
-
* A JSON scalar argument. Codegen types every JSON scalar as an object
|
|
15
|
-
* record, but the service takes any JSON value (a string, a number, an
|
|
16
|
-
* array); the value is sent as is, so this is the one place the generated
|
|
17
|
-
* record type is widened.
|
|
18
|
-
*/
|
|
19
|
-
function jsonArg(value) {
|
|
20
|
-
if (value === void 0) return null;
|
|
21
|
-
return value;
|
|
22
|
-
}
|
|
23
|
-
async function fetchRunControlFields(runId) {
|
|
24
|
-
return (await readTyped(RunControlFieldsDocument, { id: runId })).workflowRun ?? null;
|
|
25
|
-
}
|
|
26
|
-
async function fetchRunHistoryArchive(runId) {
|
|
27
|
-
return (await readTyped(WorkflowRunHistoryArchiveDocument, { runId })).workflowRunHistory;
|
|
28
|
-
}
|
|
29
|
-
async function queryRun(input) {
|
|
30
|
-
return (await readTyped(QueryWorkflowRunDocument, {
|
|
31
|
-
runId: input.runId,
|
|
32
|
-
name: input.name,
|
|
33
|
-
args: jsonArg(input.args),
|
|
34
|
-
rejectCondition: input.rejectCondition ?? null
|
|
35
|
-
})).queryWorkflowRun;
|
|
36
|
-
}
|
|
37
|
-
async function sendRunUpdate(input) {
|
|
38
|
-
return (await writeTyped(UpdateWorkflowRunDocument, {
|
|
39
|
-
runId: input.runId,
|
|
40
|
-
name: input.name,
|
|
41
|
-
args: jsonArg(input.args),
|
|
42
|
-
updateId: input.updateId,
|
|
43
|
-
waitFor: input.waitFor,
|
|
44
|
-
timeoutMs: input.timeoutMs ?? null
|
|
45
|
-
})).updateWorkflowRun;
|
|
46
|
-
}
|
|
47
|
-
async function fetchRunUpdate(runId, updateId) {
|
|
48
|
-
return (await readTyped(WorkflowRunUpdateDocument, {
|
|
49
|
-
runId,
|
|
50
|
-
updateId
|
|
51
|
-
})).workflowRunUpdate;
|
|
52
|
-
}
|
|
53
|
-
async function pauseActivities(input) {
|
|
54
|
-
await writeTyped(PauseActivityDocument, input);
|
|
55
|
-
}
|
|
56
|
-
async function unpauseActivities(input) {
|
|
57
|
-
await writeTyped(UnpauseActivityDocument, {
|
|
58
|
-
runId: input.runId,
|
|
59
|
-
selector: input.selector,
|
|
60
|
-
resetAttempts: input.resetAttempts ?? false,
|
|
61
|
-
resetHeartbeat: input.resetHeartbeat ?? false
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
async function resetActivities(input) {
|
|
65
|
-
await writeTyped(ResetActivityDocument, {
|
|
66
|
-
runId: input.runId,
|
|
67
|
-
selector: input.selector,
|
|
68
|
-
resetHeartbeat: input.resetHeartbeat ?? false
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
async function updateActivityOptions(input) {
|
|
72
|
-
await writeTyped(UpdateActivityOptionsDocument, input);
|
|
73
|
-
}
|
|
74
|
-
async function completeActivityById(input) {
|
|
75
|
-
return (await writeTyped(CompleteActivityByIdDocument, {
|
|
76
|
-
runId: input.runId,
|
|
77
|
-
activityId: input.activityId,
|
|
78
|
-
result: jsonArg(input.result)
|
|
79
|
-
})).completeActivityById;
|
|
80
|
-
}
|
|
81
|
-
async function failActivityById(input) {
|
|
82
|
-
return (await writeTyped(FailActivityByIdDocument, input)).failActivityById;
|
|
83
|
-
}
|
|
84
|
-
/** The run the reset forked (the original is terminated with RESET). */
|
|
85
|
-
async function resetRun(input) {
|
|
86
|
-
return (await writeTyped(ResetWorkflowRunDocument, {
|
|
87
|
-
runId: input.runId,
|
|
88
|
-
to: input.to,
|
|
89
|
-
reason: input.reason?.trim() || null,
|
|
90
|
-
reapplySignals: input.reapplySignals ?? true,
|
|
91
|
-
reapplyUpdates: input.reapplyUpdates ?? true
|
|
92
|
-
})).resetWorkflowRun;
|
|
93
|
-
}
|
|
94
|
-
async function resetRunToLastCleanTask(input) {
|
|
95
|
-
return (await writeTyped(ResetWorkflowRunToLastCleanTaskDocument, {
|
|
96
|
-
runId: input.runId,
|
|
97
|
-
reason: input.reason?.trim() || null
|
|
98
|
-
})).resetWorkflowRunToLastCleanTask;
|
|
99
|
-
}
|
|
100
|
-
async function fetchSignalTokens(runId) {
|
|
101
|
-
return (await readTyped(WorkflowSignalTokensDocument, { runId })).workflowSignalTokens;
|
|
102
|
-
}
|
|
103
|
-
async function createSignalToken(input) {
|
|
104
|
-
return (await writeTyped(CreateWorkflowSignalTokenDocument, { input })).createWorkflowSignalToken;
|
|
105
|
-
}
|
|
106
|
-
async function revokeSignalToken(id) {
|
|
107
|
-
return (await writeTyped(RevokeWorkflowSignalTokenDocument, { id })).revokeWorkflowSignalToken;
|
|
108
|
-
}
|
|
109
|
-
async function fetchSearchAttributes() {
|
|
110
|
-
return (await readTyped(WorkflowSearchAttributesDocument, {})).workflowSearchAttributes;
|
|
111
|
-
}
|
|
112
|
-
async function createSearchAttribute(input) {
|
|
113
|
-
return (await writeTyped(CreateWorkflowSearchAttributeDocument, { input: {
|
|
114
|
-
name: input.name.trim(),
|
|
115
|
-
type: input.type,
|
|
116
|
-
description: input.description?.trim() || null
|
|
117
|
-
} })).createWorkflowSearchAttribute;
|
|
118
|
-
}
|
|
119
|
-
async function deleteSearchAttribute(id) {
|
|
120
|
-
return (await writeTyped(DeleteWorkflowSearchAttributeDocument, { id })).deleteWorkflowSearchAttribute;
|
|
121
|
-
}
|
|
122
|
-
async function upsertRunSearchAttributes(runId, attributes) {
|
|
123
|
-
return (await writeTyped(UpsertWorkflowRunSearchAttributesDocument, {
|
|
124
|
-
runId,
|
|
125
|
-
attributes
|
|
126
|
-
})).upsertWorkflowRunSearchAttributes.searchAttributes;
|
|
127
|
-
}
|
|
128
|
-
async function fetchPauseRules() {
|
|
129
|
-
return (await readTyped(WorkflowActivityPauseRulesDocument, {})).workflowActivityPauseRules;
|
|
130
|
-
}
|
|
131
|
-
async function createPauseRule(input) {
|
|
132
|
-
return (await writeTyped(CreateActivityPauseRuleDocument, { input })).createActivityPauseRule;
|
|
133
|
-
}
|
|
134
|
-
async function deletePauseRule(id) {
|
|
135
|
-
return (await writeTyped(DeleteActivityPauseRuleDocument, { id })).deleteActivityPauseRule;
|
|
136
|
-
}
|
|
137
|
-
async function fetchCodecServerSettings() {
|
|
138
|
-
return (await readTyped(CodecServerSettingsDocument, {})).workflowExecutionSettings ?? {
|
|
139
|
-
__typename: "WorkflowExecutionSettings",
|
|
140
|
-
codecServerUrl: null,
|
|
141
|
-
codecServerIncludeCredentials: false
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
async function saveCodecServerSettings(input) {
|
|
145
|
-
return (await writeTyped(UpdateCodecServerSettingsDocument, input)).updateWorkflowExecutionSettings;
|
|
146
|
-
}
|
|
147
|
-
async function fetchArchiveSettings() {
|
|
148
|
-
return (await readTyped(ArchiveSettingsDocument, {})).workflowExecutionSettings?.archive ?? null;
|
|
149
|
-
}
|
|
150
|
-
async function saveArchiveSettings(archive) {
|
|
151
|
-
return (await writeTyped(UpdateArchiveSettingsDocument, {
|
|
152
|
-
archive,
|
|
153
|
-
clearArchive: null
|
|
154
|
-
})).updateWorkflowExecutionSettings.archive ?? null;
|
|
155
|
-
}
|
|
156
|
-
async function clearArchiveSettings() {
|
|
157
|
-
await writeTyped(UpdateArchiveSettingsDocument, {
|
|
158
|
-
archive: null,
|
|
159
|
-
clearArchive: true
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
async function startBatchOperation(input) {
|
|
163
|
-
return (await writeTyped(StartBatchOperationDocument, { input })).startBatchOperation;
|
|
164
|
-
}
|
|
165
|
-
async function startBatchTerminate(input) {
|
|
166
|
-
return (await writeTyped(StartBatchTerminateDocument, { input })).startBatchTerminate;
|
|
167
|
-
}
|
|
168
|
-
async function startBatchExport(input) {
|
|
169
|
-
return (await writeTyped(StartBatchExportDocument, { input })).startBatchExport;
|
|
170
|
-
}
|
|
171
|
-
async function cancelBatchOperation(id) {
|
|
172
|
-
return (await writeTyped(CancelBatchOperationDocument, { id })).cancelBatchOperation;
|
|
173
|
-
}
|
|
174
|
-
async function fetchBatchOperation(id) {
|
|
175
|
-
return (await readTyped(WorkflowBatchOperationDocument, { id })).workflowBatchOperation;
|
|
176
|
-
}
|
|
177
|
-
async function fetchBatchOperations(input) {
|
|
178
|
-
const page = (await readTyped(WorkflowBatchOperationsDocument, {
|
|
179
|
-
status: input.status ?? null,
|
|
180
|
-
first: input.first ?? 20,
|
|
181
|
-
after: input.after ?? null
|
|
182
|
-
})).workflowBatchOperations;
|
|
183
|
-
return {
|
|
184
|
-
items: page.items,
|
|
185
|
-
nextCursor: page.nextCursor ?? null
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
async function describeSchedule(workflowKey, triggerNodeId) {
|
|
189
|
-
return (await readTyped(WorkflowScheduleDescribeDocument, {
|
|
190
|
-
workflowKey,
|
|
191
|
-
triggerNodeId
|
|
192
|
-
})).workflowScheduleDescribe;
|
|
193
|
-
}
|
|
194
|
-
async function triggerSchedule(input) {
|
|
195
|
-
return (await writeTyped(TriggerWorkflowScheduleDocument, {
|
|
196
|
-
workflowKey: input.workflowKey,
|
|
197
|
-
triggerNodeId: input.triggerNodeId,
|
|
198
|
-
overlapPolicy: input.overlapPolicy ?? null
|
|
199
|
-
})).triggerWorkflowSchedule;
|
|
200
|
-
}
|
|
201
|
-
async function backfillSchedule(input) {
|
|
202
|
-
return (await writeTyped(BackfillWorkflowScheduleDocument, {
|
|
203
|
-
...input,
|
|
204
|
-
overlapPolicy: input.overlapPolicy ?? null
|
|
205
|
-
})).backfillWorkflowSchedule;
|
|
206
|
-
}
|
|
207
|
-
async function pauseSchedule(input) {
|
|
208
|
-
return (await writeTyped(PauseWorkflowScheduleDocument, {
|
|
209
|
-
workflowKey: input.workflowKey,
|
|
210
|
-
triggerNodeId: input.triggerNodeId,
|
|
211
|
-
note: input.note?.trim() || null
|
|
212
|
-
})).pauseWorkflowSchedule;
|
|
213
|
-
}
|
|
214
|
-
async function unpauseSchedule(input) {
|
|
215
|
-
return (await writeTyped(UnpauseWorkflowScheduleDocument, input)).unpauseWorkflowSchedule;
|
|
216
|
-
}
|
|
217
|
-
async function fetchCodeBundleSdk(workflowKey, version) {
|
|
218
|
-
return (await readTyped(WorkflowCodeBundleSdkDocument, {
|
|
219
|
-
workflowKey,
|
|
220
|
-
version
|
|
221
|
-
})).workflowCodeBundle ?? null;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export { revokeSignalToken as A, updateActivityOptions as B, jsonArg as C, resetActivities as D, queryRun as E, startBatchOperation as F, startBatchTerminate as I, triggerSchedule as L, saveCodecServerSettings as M, sendRunUpdate as N, resetRun as O, startBatchExport as P, unpauseActivities as R, fetchSignalTokens as S, pauseSchedule as T, upsertRunSearchAttributes as V, fetchPauseRules as _, createPauseRule as a, fetchRunUpdate as b, deletePauseRule as c, failActivityById as d, fetchArchiveSettings as f, fetchCodecServerSettings as g, fetchCodeBundleSdk as h, completeActivityById as i, saveArchiveSettings as j, resetRunToLastCleanTask as k, deleteSearchAttribute as l, fetchBatchOperations as m, cancelBatchOperation as n, createSearchAttribute as o, fetchBatchOperation as p, clearArchiveSettings as r, createSignalToken as s, backfillSchedule as t, describeSchedule as u, fetchRunControlFields as v, pauseActivities as w, fetchSearchAttributes as x, fetchRunHistoryArchive as y, unpauseSchedule as z };
|
package/dist/api-MeAm6g7E.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { d as readTyped, f as writeTyped } from "./shared-CMfn30xT.js";
|
|
3
|
-
import { G as DeleteTaskQueueDocument, Jn as TaskQueuesDocument, K as DeleteWorkerTokenDocument, M as CreateWorkerTokenDocument, Nn as SetWorkerTokenConnectionAllowlistDocument, Oi as WorkflowWorkersDocument, j as CreateTaskQueueDocument, lr as UpdateTaskQueueDocument, mn as RotateWorkerTokenDocument, qn as TaskQueueStatsDocument, vr as WorkerTokensDocument } from "./graphql-operation-types-C9qbvRa8.js";
|
|
4
|
-
|
|
5
|
-
// src/modules/task-queues/api.ts
|
|
6
|
-
/**
|
|
7
|
-
* Task queues and self-hosted workers (BOFF-9906, spec code-first 04 §8 and
|
|
8
|
-
* 08 §3): the queue CRUD and stats of wspace-workflow-svc, and the workers
|
|
9
|
-
* and worker tokens of wspace-sandbox-svc, both through the workspace
|
|
10
|
-
* gateway. Sent only while fluidgrids.self-hosted-workers is on.
|
|
11
|
-
*/
|
|
12
|
-
async function fetchTaskQueues() {
|
|
13
|
-
return (await readTyped(TaskQueuesDocument, {})).taskQueues;
|
|
14
|
-
}
|
|
15
|
-
async function fetchTaskQueueStats(name, environment) {
|
|
16
|
-
return (await readTyped(TaskQueueStatsDocument, {
|
|
17
|
-
name,
|
|
18
|
-
environment: environment ?? null
|
|
19
|
-
})).taskQueueStats;
|
|
20
|
-
}
|
|
21
|
-
async function createTaskQueue(input) {
|
|
22
|
-
return (await writeTyped(CreateTaskQueueDocument, { input })).createTaskQueue;
|
|
23
|
-
}
|
|
24
|
-
async function updateTaskQueue(id, input) {
|
|
25
|
-
return (await writeTyped(UpdateTaskQueueDocument, {
|
|
26
|
-
id,
|
|
27
|
-
input
|
|
28
|
-
})).updateTaskQueue;
|
|
29
|
-
}
|
|
30
|
-
async function deleteTaskQueue(id) {
|
|
31
|
-
return (await writeTyped(DeleteTaskQueueDocument, { id })).deleteTaskQueue;
|
|
32
|
-
}
|
|
33
|
-
async function fetchWorkflowWorkers(filter) {
|
|
34
|
-
return (await readTyped(WorkflowWorkersDocument, { filter: filter ?? null })).workflowWorkers;
|
|
35
|
-
}
|
|
36
|
-
async function fetchWorkerTokens() {
|
|
37
|
-
return (await readTyped(WorkerTokensDocument, {})).workerTokens;
|
|
38
|
-
}
|
|
39
|
-
async function createWorkerToken(input) {
|
|
40
|
-
return (await writeTyped(CreateWorkerTokenDocument, input)).createWorkerToken;
|
|
41
|
-
}
|
|
42
|
-
async function rotateWorkerToken(id) {
|
|
43
|
-
return (await writeTyped(RotateWorkerTokenDocument, { id })).rotateWorkerToken;
|
|
44
|
-
}
|
|
45
|
-
async function deleteWorkerToken(id) {
|
|
46
|
-
return (await writeTyped(DeleteWorkerTokenDocument, { id })).deleteWorkerToken;
|
|
47
|
-
}
|
|
48
|
-
async function setWorkerTokenConnectionAllowlist(id, names) {
|
|
49
|
-
return (await writeTyped(SetWorkerTokenConnectionAllowlistDocument, {
|
|
50
|
-
id,
|
|
51
|
-
names
|
|
52
|
-
})).setWorkerTokenConnectionAllowlist;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export { fetchTaskQueueStats as a, fetchWorkflowWorkers as c, updateTaskQueue as d, deleteWorkerToken as i, rotateWorkerToken as l, createWorkerToken as n, fetchTaskQueues as o, deleteTaskQueue as r, fetchWorkerTokens as s, createTaskQueue as t, setWorkerTokenConnectionAllowlist as u };
|