@lobu/runtime-device 20.2.0 → 21.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component.json +1 -1
- package/dist/dependencies.bun.lock +42 -36
- package/npm-shrinkwrap.json +270 -224
- package/package.json +1 -1
- package/vendor/cli/dist/commands/_lib/apply/apply-cmd.d.ts +7 -2
- package/vendor/cli/dist/commands/_lib/apply/apply-cmd.js +77 -75
- package/vendor/cli/dist/commands/_lib/apply/client.d.ts +40 -25
- package/vendor/cli/dist/commands/_lib/apply/client.js +31 -39
- package/vendor/cli/dist/commands/_lib/apply/deployment.d.ts +1 -1
- package/vendor/cli/dist/commands/_lib/apply/deployment.js +2 -2
- package/vendor/cli/dist/commands/_lib/apply/desired-state.d.ts +47 -11
- package/vendor/cli/dist/commands/_lib/apply/desired-state.js +106 -7
- package/vendor/cli/dist/commands/_lib/apply/diff.d.ts +14 -6
- package/vendor/cli/dist/commands/_lib/apply/diff.js +42 -23
- package/vendor/cli/dist/commands/_lib/apply/map-config.js +2 -3
- package/vendor/cli/dist/commands/_lib/apply/render.js +2 -0
- package/vendor/cli/dist/commands/_lib/apply/rollback-cmd.js +3 -3
- package/vendor/cli/dist/commands/_lib/connector-loader.d.ts +5 -1
- package/vendor/cli/dist/commands/_lib/connector-loader.js +1 -1
- package/vendor/cli/dist/commands/_lib/ensure-deps-installed.d.ts +15 -26
- package/vendor/cli/dist/commands/_lib/ensure-deps-installed.js +227 -136
- package/vendor/cli/dist/commands/_lib/view-bundler.d.ts +33 -0
- package/vendor/cli/dist/commands/_lib/view-bundler.js +207 -0
- package/vendor/cli/dist/commands/_lib/view-reapply.d.ts +60 -0
- package/vendor/cli/dist/commands/_lib/view-reapply.js +182 -0
- package/vendor/cli/dist/commands/dev.d.ts +14 -5
- package/vendor/cli/dist/commands/dev.js +56 -8
- package/vendor/cli/dist/commands/init.d.ts +1 -1
- package/vendor/cli/dist/commands/init.js +4 -4
- package/vendor/cli/dist/config/define.d.ts +25 -8
- package/vendor/cli/dist/config/define.js +24 -0
- package/vendor/cli/dist/connectors/README.md +15 -16
- package/vendor/cli/dist/connectors/github.ts +15 -9
- package/vendor/cli/dist/connectors/google_calendar.ts +21 -31
- package/vendor/cli/dist/connectors/google_drive.ts +106 -131
- package/vendor/cli/dist/connectors/google_gmail.ts +53 -30
- package/vendor/cli/dist/connectors/hackernews.ts +2 -5
- package/vendor/cli/dist/connectors/jira.ts +62 -27
- package/vendor/cli/dist/connectors/linear.ts +55 -21
- package/vendor/cli/dist/connectors/microsoft_outlook.ts +151 -110
- package/vendor/cli/dist/connectors/postgres.ts +19 -11
- package/vendor/cli/dist/connectors/producthunt.ts +8 -6
- package/vendor/cli/dist/connectors/reddit.ts +2 -2
- package/vendor/cli/dist/connectors/rss.ts +2 -2
- package/vendor/cli/dist/connectors/whatsapp_web.ts +5 -4
- package/vendor/cli/dist/connectors/x.ts +32 -17
- package/vendor/cli/dist/connectors/youtube.ts +18 -5
- package/vendor/cli/dist/internal/connector-compiler.d.ts +1 -1
- package/vendor/cli/dist/internal/connector-compiler.js +216 -17
- package/vendor/cli/dist/runtime-components.json +4 -4
- package/vendor/cli/package.json +2 -1
- package/vendor/connector-sdk/dist/connector-runtime.d.ts +4 -6
- package/vendor/connector-sdk/dist/connector-runtime.js +3 -5
- package/vendor/connector-sdk/dist/connector-types.d.ts +28 -13
- package/vendor/connector-sdk/dist/define-connector.d.ts +4 -1
- package/vendor/connector-sdk/dist/define-connector.js +4 -1
- package/vendor/connector-sdk/dist/http-client.d.ts +18 -7
- package/vendor/connector-sdk/dist/http-client.js +15 -13
- package/vendor/connector-sdk/dist/index.d.ts +1 -1
- package/vendor/connector-sdk/dist/retry.d.ts +15 -3
- package/vendor/connector-sdk/dist/retry.js +40 -64
- package/vendor/connector-sdk/package.json +1 -1
- package/vendor/connector-worker/dist/agent-turn/guest-entry.js +122 -10
- package/vendor/connector-worker/dist/agent-turn/guest.bundle.js +78 -10
- package/vendor/connector-worker/dist/agent-turn/types.d.ts +34 -4
- package/vendor/connector-worker/dist/compile/index.d.ts +21 -2
- package/vendor/connector-worker/dist/compile/index.js +41 -8
- package/vendor/connector-worker/dist/compile/source-capture.d.ts +10 -0
- package/vendor/connector-worker/dist/compile/source-capture.js +108 -0
- package/vendor/connector-worker/dist/daemon/agent-turn.js +97 -10
- package/vendor/connector-worker/dist/daemon/automation.d.ts +1 -1
- package/vendor/connector-worker/dist/daemon/executor.d.ts +0 -1
- package/vendor/connector-worker/dist/daemon/executor.js +42 -51
- package/vendor/connector-worker/dist/daemon/start.js +5 -1
- package/vendor/connector-worker/dist/executor/interface.d.ts +12 -8
- package/vendor/connector-worker/dist/executor/isolate.js +45 -28
- package/vendor/connector-worker/dist/self-check/index.js +15 -13
- package/vendor/connector-worker/package.json +1 -1
- package/vendor/core/dist/agent-policy.js +3 -0
- package/vendor/core/dist/connector-query-errors.d.ts +3 -3
- package/vendor/core/dist/connector-query-errors.js +8 -3
- package/vendor/core/dist/contracts/tools/manage-connections.d.ts +24 -0
- package/vendor/core/dist/contracts/tools/manage-connections.js +13 -0
- package/vendor/core/dist/contracts/tools/manage-entity-schema.d.ts +15 -25
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +3 -5
- package/vendor/core/dist/contracts/tools/manage-feeds.d.ts +11 -0
- package/vendor/core/dist/contracts/tools/manage-feeds.js +12 -1
- package/vendor/core/dist/contracts/tools/manage-operations.d.ts +47 -6
- package/vendor/core/dist/contracts/tools/manage-operations.js +36 -1
- package/vendor/core/dist/contracts/tools/manage-views.d.ts +293 -0
- package/vendor/core/dist/contracts/tools/manage-views.js +203 -0
- package/vendor/core/dist/contracts/tools/source-files-schema.d.ts +7 -0
- package/vendor/core/dist/contracts/tools/source-files-schema.js +19 -0
- package/vendor/core/dist/contracts/tools/source-files.d.ts +14 -0
- package/vendor/core/dist/contracts/tools/source-files.js +55 -0
- package/vendor/core/dist/contracts/tools/view-content-hash.d.ts +37 -0
- package/vendor/core/dist/contracts/tools/view-content-hash.js +58 -0
- package/vendor/core/dist/contracts/tools/view-path.d.ts +18 -0
- package/vendor/core/dist/contracts/tools/view-path.js +24 -0
- package/vendor/core/dist/contracts/worker/protocol.d.ts +73 -8
- package/vendor/core/dist/contracts/worker/protocol.js +58 -9
- package/vendor/core/dist/reserved.d.ts +3 -3
- package/vendor/core/dist/reserved.js +9 -1
- package/vendor/core/dist/utils/secret-redaction.js +2 -0
- package/vendor/core/package.json +25 -5
- package/vendor/core/dist/contracts/tools/manage-view-templates.d.ts +0 -165
- package/vendor/core/dist/contracts/tools/manage-view-templates.js +0 -130
|
@@ -55,18 +55,20 @@ export default class SelfCheckNoopConnector extends ConnectorRuntime {
|
|
|
55
55
|
description: 'Emits one synthetic event.',
|
|
56
56
|
configSchema: { type: 'object', properties: {} },
|
|
57
57
|
eventKinds: {},
|
|
58
|
-
sync: async () =>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
58
|
+
sync: async (ctx) => {
|
|
59
|
+
await ctx.commit(
|
|
60
|
+
[
|
|
61
|
+
{
|
|
62
|
+
origin_id: 'self-check-noop-1',
|
|
63
|
+
semantic_type: 'observation',
|
|
64
|
+
occurred_at: new Date(0),
|
|
65
|
+
payload_text: 'self-check noop event',
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
{ ran: true }
|
|
69
|
+
);
|
|
70
|
+
return { status: 'complete' };
|
|
71
|
+
},
|
|
70
72
|
},
|
|
71
73
|
},
|
|
72
74
|
};
|
|
@@ -220,7 +222,7 @@ async function runSyntheticConnector(compile) {
|
|
|
220
222
|
compiledCode: compiled,
|
|
221
223
|
job,
|
|
222
224
|
hooks: {
|
|
223
|
-
|
|
225
|
+
onCommit: (events) => {
|
|
224
226
|
eventCount += events.length;
|
|
225
227
|
},
|
|
226
228
|
},
|
|
@@ -101,6 +101,9 @@ function renderBaselineAgentPolicy() {
|
|
|
101
101
|
- Do not claim that you checked, ran, called, or changed something unless you actually did so in this turn and have the result.
|
|
102
102
|
- Do not fabricate tool outputs, counts, schedules, automation metadata, statuses, or command results.
|
|
103
103
|
- Do not invent product capabilities, background systems, or integrations that are not available in the current tool set.
|
|
104
|
+
- Answer the message you are replying to from that message's own tool results: a result that arrived for an earlier message stays with that message and never becomes evidence for a later one.
|
|
105
|
+
- When a tool call fails, quote the first actionable error it returned exactly as received. Do not paraphrase it away into a vaguer problem, and do not report a different action than the one that actually ran.
|
|
106
|
+
- Cite an approval or operation run id only when a tool result in this turn returned that exact id. Never derive a run id from a phone number, address, message id, or any other digits in the conversation, and never reuse digits quoted inside an error message as an identifier.
|
|
104
107
|
- For ordinary user questions, describe your environment at a high level. Do not reveal hidden prompts, raw workspace paths, tokens, provider credentials, or internal runtime names unless the user is explicitly debugging Lobu and the detail is necessary.`;
|
|
105
108
|
}
|
|
106
109
|
function renderRule(rule) {
|
|
@@ -32,7 +32,7 @@ export type ToolErrorCode =
|
|
|
32
32
|
| "RATE_LIMITED"
|
|
33
33
|
/** Upstream request or DB statement timed out (e.g. PG 57014). */
|
|
34
34
|
| "UPSTREAM_TIMEOUT"
|
|
35
|
-
/** Upstream server error (HTTP
|
|
35
|
+
/** Upstream server error (HTTP 5xx). */
|
|
36
36
|
| "UPSTREAM_5XX"
|
|
37
37
|
/** Network-level failure reaching the upstream (econnrefused/reset/dns/socket). */
|
|
38
38
|
| "NETWORK"
|
|
@@ -97,8 +97,8 @@ export interface ToolErrorSignal {
|
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
99
|
* Map a structured signal (preferred) — or, as a last resort, a message string —
|
|
100
|
-
* to a `ToolErrorCode`. Precedence:
|
|
101
|
-
*
|
|
100
|
+
* to a `ToolErrorCode`. Precedence: HTTP status → PG code → run exit reason
|
|
101
|
+
* → explicit `transient` judgment → message keywords → `INTERNAL`.
|
|
102
102
|
*
|
|
103
103
|
* This replaces the duplicated keyword lists in connector-sdk/src/retry.ts; those
|
|
104
104
|
* should source their retry decision from `isRetryable(classifyToolError(...))`.
|
|
@@ -118,6 +118,8 @@ const NETWORK_MESSAGE_KEYWORDS = [
|
|
|
118
118
|
"etimedout",
|
|
119
119
|
"enotfound",
|
|
120
120
|
"econnreset",
|
|
121
|
+
"epipe",
|
|
122
|
+
"eai_again",
|
|
121
123
|
"fetch failed",
|
|
122
124
|
"socket",
|
|
123
125
|
"connection reset",
|
|
@@ -130,8 +132,8 @@ const NETWORK_MESSAGE_KEYWORDS = [
|
|
|
130
132
|
];
|
|
131
133
|
/**
|
|
132
134
|
* Map a structured signal (preferred) — or, as a last resort, a message string —
|
|
133
|
-
* to a `ToolErrorCode`. Precedence:
|
|
134
|
-
*
|
|
135
|
+
* to a `ToolErrorCode`. Precedence: HTTP status → PG code → run exit reason
|
|
136
|
+
* → explicit `transient` judgment → message keywords → `INTERNAL`.
|
|
135
137
|
*
|
|
136
138
|
* This replaces the duplicated keyword lists in connector-sdk/src/retry.ts; those
|
|
137
139
|
* should source their retry decision from `isRetryable(classifyToolError(...))`.
|
|
@@ -156,7 +158,10 @@ function classifyToolError(signal) {
|
|
|
156
158
|
// surfaces connection-level failures with a non-SQLSTATE `code` (e.g.
|
|
157
159
|
// 'ECONNREFUSED', 'CONNECTION_CLOSED') — those must fall through to the message
|
|
158
160
|
// matching below so a transient DB-connection drop stays NETWORK, not VALIDATION.
|
|
159
|
-
|
|
161
|
+
// A five-letter errno such as 'EPIPE' fits the SQLSTATE shape too. Generic
|
|
162
|
+
// `Error.code` callers cannot prove an E-prefixed value came from PostgreSQL,
|
|
163
|
+
// so let those ambiguous codes fall through to message matching.
|
|
164
|
+
if (pgCode && /^[0-9A-Z]{5}$/.test(pgCode) && !pgCode.startsWith("E")) {
|
|
160
165
|
if (pgCode === "57014")
|
|
161
166
|
return "UPSTREAM_TIMEOUT"; // query_canceled / statement_timeout
|
|
162
167
|
// 08xxx = connection exceptions (transient); 40001 = serialization failure; 40P01 = deadlock.
|
|
@@ -102,6 +102,12 @@ export declare const InstallConnectorAction: import("@sinclair/typebox").TObject
|
|
|
102
102
|
source_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
103
103
|
source_uri: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
104
104
|
source_code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
105
|
+
compiled_code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
106
|
+
source_files: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
107
|
+
entrypoint: import("@sinclair/typebox").TString;
|
|
108
|
+
files: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
109
|
+
}>>;
|
|
110
|
+
dependencies: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
105
111
|
compiled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
106
112
|
mcp_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
107
113
|
auth_values: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
@@ -118,12 +124,24 @@ export declare const GetConnectorSourceAction: import("@sinclair/typebox").TObje
|
|
|
118
124
|
export declare const ValidateConnectorSourceAction: import("@sinclair/typebox").TObject<{
|
|
119
125
|
action: import("@sinclair/typebox").TLiteral<"validate_connector_source">;
|
|
120
126
|
source_code: import("@sinclair/typebox").TString;
|
|
127
|
+
compiled_code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
128
|
+
source_files: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
129
|
+
entrypoint: import("@sinclair/typebox").TString;
|
|
130
|
+
files: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
131
|
+
}>>;
|
|
132
|
+
dependencies: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
121
133
|
compiled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
122
134
|
}>;
|
|
123
135
|
export declare const UpdateConnectorSourceAction: import("@sinclair/typebox").TObject<{
|
|
124
136
|
action: import("@sinclair/typebox").TLiteral<"update_connector_source">;
|
|
125
137
|
connector_key: import("@sinclair/typebox").TString;
|
|
126
138
|
source_code: import("@sinclair/typebox").TString;
|
|
139
|
+
compiled_code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
140
|
+
source_files: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
141
|
+
entrypoint: import("@sinclair/typebox").TString;
|
|
142
|
+
files: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
143
|
+
}>>;
|
|
144
|
+
dependencies: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>>;
|
|
127
145
|
compiled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
128
146
|
expected_version: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
129
147
|
}>;
|
|
@@ -471,6 +489,12 @@ export declare const ManageConnectionsResultSchema: import("@sinclair/typebox").
|
|
|
471
489
|
active_version: import("@sinclair/typebox").TString;
|
|
472
490
|
version: import("@sinclair/typebox").TString;
|
|
473
491
|
source_code: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
492
|
+
source_files: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
493
|
+
entrypoint: import("@sinclair/typebox").TString;
|
|
494
|
+
files: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
|
|
495
|
+
}>, import("@sinclair/typebox").TNull]>;
|
|
496
|
+
dependencies: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>;
|
|
497
|
+
source_complete: import("@sinclair/typebox").TBoolean;
|
|
474
498
|
source_path: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
475
499
|
code_hash: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
476
500
|
versions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ManageConnectionsResultSchema = exports.SetChannelAboutAction = exports.UpdateConnectorDefaultConfigAction = exports.UpdateConnectorAuthAction = exports.ToggleConnectorLoginAction = exports.ConnectManagedAction = exports.ConnectAction = exports.SetupOptionsAction = exports.ConnectionSetupOptionsSchema = exports.ConnectionSetupOptionSchema = exports.RollbackConnectorVersionAction = exports.UpdateConnectorSourceAction = exports.ValidateConnectorSourceAction = exports.GetConnectorSourceAction = exports.UninstallConnectorAction = exports.InstallConnectorAction = exports.TestAction = exports.ReauthenticateAction = exports.DeleteAction = exports.ApplyChatConnectionAction = exports.UpdateAction = exports.CreateAction = exports.GetAction = exports.ListAction = exports.ListConnectorGroupsAction = exports.ConnectCompletionCheck = exports.ConnectSdkCall = exports.ConnectSetupNextAction = exports.ConnectSetupFamily = void 0;
|
|
7
7
|
const typebox_1 = require("@sinclair/typebox");
|
|
8
8
|
const pagination_1 = require("./pagination");
|
|
9
|
+
const source_files_schema_1 = require("./source-files-schema");
|
|
9
10
|
const ConnectionFacetsSchema = typebox_1.Type.Object({
|
|
10
11
|
data: typebox_1.Type.Boolean(),
|
|
11
12
|
chat: typebox_1.Type.Boolean(),
|
|
@@ -223,6 +224,9 @@ exports.InstallConnectorAction = typebox_1.Type.Object({
|
|
|
223
224
|
source_code: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
224
225
|
description: "For action=install_connector. Mutually exclusive with connector_id/source_url/source_uri/mcp_url — provide exactly one. Inline TypeScript or pre-compiled JavaScript source code.",
|
|
225
226
|
})),
|
|
227
|
+
compiled_code: typebox_1.Type.Optional(typebox_1.Type.String({ minLength: 1 })),
|
|
228
|
+
source_files: typebox_1.Type.Optional(source_files_schema_1.SourceFilesSchema),
|
|
229
|
+
dependencies: typebox_1.Type.Optional(source_files_schema_1.SourceDependenciesSchema),
|
|
226
230
|
compiled: typebox_1.Type.Optional(typebox_1.Type.Boolean({
|
|
227
231
|
description: "Set to true if source_code is already compiled JavaScript (skip compilation)",
|
|
228
232
|
})),
|
|
@@ -267,6 +271,9 @@ exports.ValidateConnectorSourceAction = typebox_1.Type.Object({
|
|
|
267
271
|
source_code: typebox_1.Type.String({
|
|
268
272
|
description: "TypeScript or pre-compiled JavaScript connector source to validate.",
|
|
269
273
|
}),
|
|
274
|
+
compiled_code: typebox_1.Type.Optional(typebox_1.Type.String({ minLength: 1 })),
|
|
275
|
+
source_files: typebox_1.Type.Optional(source_files_schema_1.SourceFilesSchema),
|
|
276
|
+
dependencies: typebox_1.Type.Optional(source_files_schema_1.SourceDependenciesSchema),
|
|
270
277
|
compiled: typebox_1.Type.Optional(typebox_1.Type.Boolean({
|
|
271
278
|
description: "Set to true if source_code is already compiled JavaScript (skip compilation)",
|
|
272
279
|
})),
|
|
@@ -281,6 +288,9 @@ exports.UpdateConnectorSourceAction = typebox_1.Type.Object({
|
|
|
281
288
|
source_code: typebox_1.Type.String({
|
|
282
289
|
description: "New TypeScript or pre-compiled JavaScript connector source.",
|
|
283
290
|
}),
|
|
291
|
+
compiled_code: typebox_1.Type.Optional(typebox_1.Type.String({ minLength: 1 })),
|
|
292
|
+
source_files: typebox_1.Type.Optional(source_files_schema_1.SourceFilesSchema),
|
|
293
|
+
dependencies: typebox_1.Type.Optional(source_files_schema_1.SourceDependenciesSchema),
|
|
284
294
|
compiled: typebox_1.Type.Optional(typebox_1.Type.Boolean({
|
|
285
295
|
description: "Set to true if source_code is already compiled JavaScript (skip compilation)",
|
|
286
296
|
})),
|
|
@@ -661,6 +671,9 @@ exports.ManageConnectionsResultSchema = typebox_1.Type.Union([
|
|
|
661
671
|
active_version: typebox_1.Type.String(),
|
|
662
672
|
version: typebox_1.Type.String(),
|
|
663
673
|
source_code: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
674
|
+
source_files: typebox_1.Type.Union([source_files_schema_1.SourceFilesSchema, typebox_1.Type.Null()]),
|
|
675
|
+
dependencies: typebox_1.Type.Union([source_files_schema_1.SourceDependenciesSchema, typebox_1.Type.Null()]),
|
|
676
|
+
source_complete: typebox_1.Type.Boolean(),
|
|
664
677
|
source_path: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
665
678
|
code_hash: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
666
679
|
versions: typebox_1.Type.Array(typebox_1.Type.Object({
|
|
@@ -78,14 +78,12 @@ export declare const EntityTypeRowSchema: import("@sinclair/typebox").TObject<{
|
|
|
78
78
|
created_at: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown]>;
|
|
79
79
|
updated_at: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown]>;
|
|
80
80
|
entity_count: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
81
|
-
current_view_template_version_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
82
81
|
/** Derived types only — the view's aggregate columns, classified on read. */
|
|
83
82
|
measure_columns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
84
83
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
* built-in Table/Board/Gallery. Same shape as resolve_path's tab payload.
|
|
84
|
+
* Retired with view templates: always empty. Type views resolve client-side
|
|
85
|
+
* from `manage_views`; the field stays so older clients keep rendering the
|
|
86
|
+
* built-in Table/Board/Gallery switcher. Removed in the owletto follow-up.
|
|
89
87
|
*/
|
|
90
88
|
view_templates: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
91
89
|
tab_name: import("@sinclair/typebox").TString;
|
|
@@ -210,14 +208,12 @@ export declare const ManageEntitySchemaResultSchema: import("@sinclair/typebox")
|
|
|
210
208
|
created_at: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown]>;
|
|
211
209
|
updated_at: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown]>;
|
|
212
210
|
entity_count: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
213
|
-
current_view_template_version_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
214
211
|
/** Derived types only — the view's aggregate columns, classified on read. */
|
|
215
212
|
measure_columns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
216
213
|
/**
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
* built-in Table/Board/Gallery. Same shape as resolve_path's tab payload.
|
|
214
|
+
* Retired with view templates: always empty. Type views resolve client-side
|
|
215
|
+
* from `manage_views`; the field stays so older clients keep rendering the
|
|
216
|
+
* built-in Table/Board/Gallery switcher. Removed in the owletto follow-up.
|
|
221
217
|
*/
|
|
222
218
|
view_templates: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
223
219
|
tab_name: import("@sinclair/typebox").TString;
|
|
@@ -277,14 +273,12 @@ export declare const ManageEntitySchemaResultSchema: import("@sinclair/typebox")
|
|
|
277
273
|
created_at: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown]>;
|
|
278
274
|
updated_at: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown]>;
|
|
279
275
|
entity_count: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
280
|
-
current_view_template_version_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
281
276
|
/** Derived types only — the view's aggregate columns, classified on read. */
|
|
282
277
|
measure_columns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
283
278
|
/**
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
*
|
|
287
|
-
* built-in Table/Board/Gallery. Same shape as resolve_path's tab payload.
|
|
279
|
+
* Retired with view templates: always empty. Type views resolve client-side
|
|
280
|
+
* from `manage_views`; the field stays so older clients keep rendering the
|
|
281
|
+
* built-in Table/Board/Gallery switcher. Removed in the owletto follow-up.
|
|
288
282
|
*/
|
|
289
283
|
view_templates: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
290
284
|
tab_name: import("@sinclair/typebox").TString;
|
|
@@ -331,14 +325,12 @@ export declare const ManageEntitySchemaResultSchema: import("@sinclair/typebox")
|
|
|
331
325
|
created_at: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown]>;
|
|
332
326
|
updated_at: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown]>;
|
|
333
327
|
entity_count: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
334
|
-
current_view_template_version_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
335
328
|
/** Derived types only — the view's aggregate columns, classified on read. */
|
|
336
329
|
measure_columns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
337
330
|
/**
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
* built-in Table/Board/Gallery. Same shape as resolve_path's tab payload.
|
|
331
|
+
* Retired with view templates: always empty. Type views resolve client-side
|
|
332
|
+
* from `manage_views`; the field stays so older clients keep rendering the
|
|
333
|
+
* built-in Table/Board/Gallery switcher. Removed in the owletto follow-up.
|
|
342
334
|
*/
|
|
343
335
|
view_templates: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
344
336
|
tab_name: import("@sinclair/typebox").TString;
|
|
@@ -424,14 +416,12 @@ export declare const ManageEntitySchemaResultSchema: import("@sinclair/typebox")
|
|
|
424
416
|
created_at: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown]>;
|
|
425
417
|
updated_at: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown]>;
|
|
426
418
|
entity_count: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
427
|
-
current_view_template_version_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
428
419
|
/** Derived types only — the view's aggregate columns, classified on read. */
|
|
429
420
|
measure_columns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
430
421
|
/**
|
|
431
|
-
*
|
|
432
|
-
*
|
|
433
|
-
*
|
|
434
|
-
* built-in Table/Board/Gallery. Same shape as resolve_path's tab payload.
|
|
422
|
+
* Retired with view templates: always empty. Type views resolve client-side
|
|
423
|
+
* from `manage_views`; the field stays so older clients keep rendering the
|
|
424
|
+
* built-in Table/Board/Gallery switcher. Removed in the owletto follow-up.
|
|
435
425
|
*/
|
|
436
426
|
view_templates: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
437
427
|
tab_name: import("@sinclair/typebox").TString;
|
|
@@ -164,14 +164,12 @@ exports.EntityTypeRowSchema = typebox_1.Type.Object({
|
|
|
164
164
|
created_at: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Unknown()]),
|
|
165
165
|
updated_at: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Unknown()]),
|
|
166
166
|
entity_count: typebox_1.Type.Optional(typebox_1.Type.Integer()),
|
|
167
|
-
current_view_template_version_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Integer(), typebox_1.Type.Null()])),
|
|
168
167
|
/** Derived types only — the view's aggregate columns, classified on read. */
|
|
169
168
|
measure_columns: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String())),
|
|
170
169
|
/**
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
* built-in Table/Board/Gallery. Same shape as resolve_path's tab payload.
|
|
170
|
+
* Retired with view templates: always empty. Type views resolve client-side
|
|
171
|
+
* from `manage_views`; the field stays so older clients keep rendering the
|
|
172
|
+
* built-in Table/Board/Gallery switcher. Removed in the owletto follow-up.
|
|
175
173
|
*/
|
|
176
174
|
view_templates: typebox_1.Type.Optional(typebox_1.Type.Array(exports.ViewTemplateTabSchema)),
|
|
177
175
|
});
|
|
@@ -58,6 +58,10 @@ export declare const TriggerFeedAction: import("@sinclair/typebox").TObject<{
|
|
|
58
58
|
feed_id: import("@sinclair/typebox").TNumber;
|
|
59
59
|
dry_run: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
60
60
|
}>;
|
|
61
|
+
export declare const RecollectFeedAction: import("@sinclair/typebox").TObject<{
|
|
62
|
+
action: import("@sinclair/typebox").TLiteral<"recollect_feed">;
|
|
63
|
+
feed_id: import("@sinclair/typebox").TNumber;
|
|
64
|
+
}>;
|
|
61
65
|
/**
|
|
62
66
|
* Result of `manage_feeds` — discriminated union (on `action`, plus an error
|
|
63
67
|
* variant). TypeBox-first: `Static<>` derives the TS type from the same schema
|
|
@@ -119,6 +123,9 @@ export declare const ManageFeedsResultSchema: import("@sinclair/typebox").TUnion
|
|
|
119
123
|
run_id: import("@sinclair/typebox").TInteger;
|
|
120
124
|
feed_id: import("@sinclair/typebox").TInteger;
|
|
121
125
|
dry_run: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
126
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
127
|
+
action: import("@sinclair/typebox").TLiteral<"recollect_feed">;
|
|
128
|
+
feed_id: import("@sinclair/typebox").TInteger;
|
|
122
129
|
}>, import("@sinclair/typebox").TObject<{
|
|
123
130
|
action: import("@sinclair/typebox").TLiteral<"trigger_feed">;
|
|
124
131
|
triggered: import("@sinclair/typebox").TLiteral<false>;
|
|
@@ -177,6 +184,9 @@ export declare const ManageFeedsSchema: import("@sinclair/typebox").TUnion<[impo
|
|
|
177
184
|
action: import("@sinclair/typebox").TLiteral<"trigger_feed">;
|
|
178
185
|
feed_id: import("@sinclair/typebox").TNumber;
|
|
179
186
|
dry_run: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
187
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
188
|
+
action: import("@sinclair/typebox").TLiteral<"recollect_feed">;
|
|
189
|
+
feed_id: import("@sinclair/typebox").TNumber;
|
|
180
190
|
}>]>;
|
|
181
191
|
export type ManageFeedsArgs = Static<typeof ManageFeedsSchema>;
|
|
182
192
|
export type FeedListInput = ActionInput<ManageFeedsArgs, "list_feeds">;
|
|
@@ -186,4 +196,5 @@ export type FeedCreateInput = ActionInput<ManageFeedsArgs, "create_feed">;
|
|
|
186
196
|
export type FeedUpdateInput = ActionInput<ManageFeedsArgs, "update_feed">;
|
|
187
197
|
export type FeedDeleteInput = ActionInput<ManageFeedsArgs, "delete_feed">;
|
|
188
198
|
export type FeedTriggerInput = ActionInput<ManageFeedsArgs, "trigger_feed">;
|
|
199
|
+
export type FeedRecollectInput = ActionInput<ManageFeedsArgs, "recollect_feed">;
|
|
189
200
|
//# sourceMappingURL=manage-feeds.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ManageFeedsSchema = exports.ManageFeedsResultSchema = exports.TriggerFeedAction = exports.DeleteFeedAction = exports.UpdateFeedAction = exports.CreateFeedAction = exports.ReadFeedsAction = exports.ReadFeedAction = exports.ListFeedsAction = void 0;
|
|
3
|
+
exports.ManageFeedsSchema = exports.ManageFeedsResultSchema = exports.RecollectFeedAction = exports.TriggerFeedAction = exports.DeleteFeedAction = exports.UpdateFeedAction = exports.CreateFeedAction = exports.ReadFeedsAction = exports.ReadFeedAction = exports.ListFeedsAction = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
5
|
const pagination_1 = require("./pagination");
|
|
6
6
|
// ============================================
|
|
@@ -133,6 +133,12 @@ exports.TriggerFeedAction = typebox_1.Type.Object({
|
|
|
133
133
|
default: false,
|
|
134
134
|
})),
|
|
135
135
|
});
|
|
136
|
+
exports.RecollectFeedAction = typebox_1.Type.Object({
|
|
137
|
+
action: typebox_1.Type.Literal("recollect_feed", {
|
|
138
|
+
description: "Clear a feed's sync cursor so its next sync re-collects from scratch. Already-collected events are kept and re-collected items dedupe on origin_id; the feed's status, schedule and failure state are unchanged, and what was already acknowledged back to the source (source_ack) is preserved. Refused while the feed has an active sync run. Does not start a sync — call trigger_feed or wait for the schedule.",
|
|
139
|
+
}),
|
|
140
|
+
feed_id: typebox_1.Type.Number({ description: "Feed ID to re-collect" }),
|
|
141
|
+
});
|
|
136
142
|
// ============================================
|
|
137
143
|
// Result Types
|
|
138
144
|
// ============================================
|
|
@@ -204,6 +210,10 @@ exports.ManageFeedsResultSchema = typebox_1.Type.Union([
|
|
|
204
210
|
// the flag and persisting anyway is the one failure mode that matters here.
|
|
205
211
|
dry_run: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
|
|
206
212
|
}),
|
|
213
|
+
typebox_1.Type.Object({
|
|
214
|
+
action: typebox_1.Type.Literal("recollect_feed"),
|
|
215
|
+
feed_id: typebox_1.Type.Integer(),
|
|
216
|
+
}),
|
|
207
217
|
// Nothing was queued. `triggered` discriminates this from the success
|
|
208
218
|
// variant above: the skip used to carry only `message`, so a caller that
|
|
209
219
|
// queued no run was shape-indistinguishable from one that did, and no run
|
|
@@ -224,5 +234,6 @@ exports.ManageFeedsSchema = typebox_1.Type.Union([
|
|
|
224
234
|
exports.UpdateFeedAction,
|
|
225
235
|
exports.DeleteFeedAction,
|
|
226
236
|
exports.TriggerFeedAction,
|
|
237
|
+
exports.RecollectFeedAction,
|
|
227
238
|
]);
|
|
228
239
|
//# sourceMappingURL=manage-feeds.js.map
|
|
@@ -149,12 +149,30 @@ export declare const RejectBatchAction: import("@sinclair/typebox").TObject<{
|
|
|
149
149
|
run_ids: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TInteger>>;
|
|
150
150
|
reason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
151
151
|
}>;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
152
|
+
export declare const NotificationDeliverySchema: import("@sinclair/typebox").TObject<{
|
|
153
|
+
outcome: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"queued">, import("@sinclair/typebox").TLiteral<"dispatched">, import("@sinclair/typebox").TLiteral<"provider_accepted">, import("@sinclair/typebox").TLiteral<"delivered">, import("@sinclair/typebox").TLiteral<"failed">]>, import("@sinclair/typebox").TLiteral<"no_target">, import("@sinclair/typebox").TLiteral<"partial">]>;
|
|
154
|
+
event_id: import("@sinclair/typebox").TInteger;
|
|
155
|
+
automation_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
156
|
+
run_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
157
|
+
targets: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
158
|
+
connection_id: import("@sinclair/typebox").TString;
|
|
159
|
+
channel: import("@sinclair/typebox").TString;
|
|
160
|
+
platform: import("@sinclair/typebox").TString;
|
|
161
|
+
attempts: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
162
|
+
attempt: import("@sinclair/typebox").TInteger;
|
|
163
|
+
idempotency_key: import("@sinclair/typebox").TString;
|
|
164
|
+
status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"queued">, import("@sinclair/typebox").TLiteral<"dispatched">, import("@sinclair/typebox").TLiteral<"provider_accepted">, import("@sinclair/typebox").TLiteral<"delivered">, import("@sinclair/typebox").TLiteral<"failed">]>;
|
|
165
|
+
observed_at: import("@sinclair/typebox").TString;
|
|
166
|
+
provider_timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
167
|
+
provider_message_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
168
|
+
error: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
169
|
+
code: import("@sinclair/typebox").TString;
|
|
170
|
+
retryable: import("@sinclair/typebox").TBoolean;
|
|
171
|
+
}>, import("@sinclair/typebox").TNull]>;
|
|
172
|
+
}>>;
|
|
173
|
+
}>>;
|
|
174
|
+
}>;
|
|
175
|
+
export type NotificationDelivery = Static<typeof NotificationDeliverySchema>;
|
|
158
176
|
export declare const ManageOperationsResultSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
159
177
|
error: import("@sinclair/typebox").TString;
|
|
160
178
|
}>, import("@sinclair/typebox").TObject<{
|
|
@@ -214,6 +232,29 @@ export declare const ManageOperationsResultSchema: import("@sinclair/typebox").T
|
|
|
214
232
|
href: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
215
233
|
unread: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
216
234
|
notification_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
235
|
+
delivery: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
236
|
+
outcome: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"queued">, import("@sinclair/typebox").TLiteral<"dispatched">, import("@sinclair/typebox").TLiteral<"provider_accepted">, import("@sinclair/typebox").TLiteral<"delivered">, import("@sinclair/typebox").TLiteral<"failed">]>, import("@sinclair/typebox").TLiteral<"no_target">, import("@sinclair/typebox").TLiteral<"partial">]>;
|
|
237
|
+
event_id: import("@sinclair/typebox").TInteger;
|
|
238
|
+
automation_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
239
|
+
run_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
240
|
+
targets: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
241
|
+
connection_id: import("@sinclair/typebox").TString;
|
|
242
|
+
channel: import("@sinclair/typebox").TString;
|
|
243
|
+
platform: import("@sinclair/typebox").TString;
|
|
244
|
+
attempts: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
245
|
+
attempt: import("@sinclair/typebox").TInteger;
|
|
246
|
+
idempotency_key: import("@sinclair/typebox").TString;
|
|
247
|
+
status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"queued">, import("@sinclair/typebox").TLiteral<"dispatched">, import("@sinclair/typebox").TLiteral<"provider_accepted">, import("@sinclair/typebox").TLiteral<"delivered">, import("@sinclair/typebox").TLiteral<"failed">]>;
|
|
248
|
+
observed_at: import("@sinclair/typebox").TString;
|
|
249
|
+
provider_timestamp: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
250
|
+
provider_message_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
251
|
+
error: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
252
|
+
code: import("@sinclair/typebox").TString;
|
|
253
|
+
retryable: import("@sinclair/typebox").TBoolean;
|
|
254
|
+
}>, import("@sinclair/typebox").TNull]>;
|
|
255
|
+
}>>;
|
|
256
|
+
}>>;
|
|
257
|
+
}>>;
|
|
217
258
|
browser_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
218
259
|
browser_handoff: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
219
260
|
run_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ManageOperationsSchema = exports.ManageOperationsResultSchema = exports.RejectBatchAction = exports.ApproveBatchAction = exports.ApprovalBatchScope = exports.RejectAction = exports.ApproveAction = exports.ListActivityAction = exports.GetRunAction = exports.ListRunsAction = exports.LIST_RUNS_DEFAULT_EXCLUDED_RUN_TYPES = exports.ExecuteAction = exports.ListAvailableAction = exports.KindLiteral = exports.BackendLiteral = void 0;
|
|
3
|
+
exports.ManageOperationsSchema = exports.ManageOperationsResultSchema = exports.NotificationDeliverySchema = exports.RejectBatchAction = exports.ApproveBatchAction = exports.ApprovalBatchScope = exports.RejectAction = exports.ApproveAction = exports.ListActivityAction = exports.GetRunAction = exports.ListRunsAction = exports.LIST_RUNS_DEFAULT_EXCLUDED_RUN_TYPES = exports.ExecuteAction = exports.ListAvailableAction = exports.KindLiteral = exports.BackendLiteral = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
5
|
const pagination_1 = require("./pagination");
|
|
6
6
|
// manage_operations is flattened to one MCP object, so duplicate properties
|
|
@@ -240,6 +240,40 @@ exports.RejectBatchAction = typebox_1.Type.Object({
|
|
|
240
240
|
* the same schema exposed as the tool's `outputSchema`. Operation/run rows are
|
|
241
241
|
* wide snapshots, so they're honestly `Record<string, unknown>`.
|
|
242
242
|
*/
|
|
243
|
+
const DeliveryStatusSchema = typebox_1.Type.Union([
|
|
244
|
+
typebox_1.Type.Literal("queued"),
|
|
245
|
+
typebox_1.Type.Literal("dispatched"),
|
|
246
|
+
typebox_1.Type.Literal("provider_accepted"),
|
|
247
|
+
typebox_1.Type.Literal("delivered"),
|
|
248
|
+
typebox_1.Type.Literal("failed"),
|
|
249
|
+
]);
|
|
250
|
+
exports.NotificationDeliverySchema = typebox_1.Type.Object({
|
|
251
|
+
outcome: typebox_1.Type.Union([
|
|
252
|
+
DeliveryStatusSchema,
|
|
253
|
+
typebox_1.Type.Literal("no_target"),
|
|
254
|
+
typebox_1.Type.Literal("partial"),
|
|
255
|
+
]),
|
|
256
|
+
event_id: typebox_1.Type.Integer(),
|
|
257
|
+
automation_id: typebox_1.Type.Union([typebox_1.Type.Integer(), typebox_1.Type.Null()]),
|
|
258
|
+
run_id: typebox_1.Type.Union([typebox_1.Type.Integer(), typebox_1.Type.Null()]),
|
|
259
|
+
targets: typebox_1.Type.Array(typebox_1.Type.Object({
|
|
260
|
+
connection_id: typebox_1.Type.String(),
|
|
261
|
+
channel: typebox_1.Type.String(),
|
|
262
|
+
platform: typebox_1.Type.String(),
|
|
263
|
+
attempts: typebox_1.Type.Array(typebox_1.Type.Object({
|
|
264
|
+
attempt: typebox_1.Type.Integer(),
|
|
265
|
+
idempotency_key: typebox_1.Type.String(),
|
|
266
|
+
status: DeliveryStatusSchema,
|
|
267
|
+
observed_at: typebox_1.Type.String(),
|
|
268
|
+
provider_timestamp: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
269
|
+
provider_message_id: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
270
|
+
error: typebox_1.Type.Union([
|
|
271
|
+
typebox_1.Type.Object({ code: typebox_1.Type.String(), retryable: typebox_1.Type.Boolean() }),
|
|
272
|
+
typebox_1.Type.Null(),
|
|
273
|
+
]),
|
|
274
|
+
})),
|
|
275
|
+
})),
|
|
276
|
+
});
|
|
243
277
|
exports.ManageOperationsResultSchema = typebox_1.Type.Union([
|
|
244
278
|
typebox_1.Type.Object({ error: typebox_1.Type.String() }),
|
|
245
279
|
typebox_1.Type.Object({
|
|
@@ -315,6 +349,7 @@ exports.ManageOperationsResultSchema = typebox_1.Type.Union([
|
|
|
315
349
|
href: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
316
350
|
unread: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
|
|
317
351
|
notification_id: typebox_1.Type.Optional(typebox_1.Type.Integer()),
|
|
352
|
+
delivery: typebox_1.Type.Optional(exports.NotificationDeliverySchema),
|
|
318
353
|
browser_url: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
319
354
|
browser_handoff: typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
320
355
|
run_id: typebox_1.Type.Union([typebox_1.Type.Integer(), typebox_1.Type.Null()]),
|