@lobu/runtime-device 20.2.0 → 21.1.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 +44 -38
- package/npm-shrinkwrap.json +277 -231
- 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 -79
- package/vendor/cli/dist/commands/_lib/apply/client.d.ts +41 -29
- package/vendor/cli/dist/commands/_lib/apply/client.js +33 -47
- package/vendor/cli/dist/commands/_lib/apply/deployment.d.ts +1 -1
- package/vendor/cli/dist/commands/_lib/apply/deployment.js +2 -3
- package/vendor/cli/dist/commands/_lib/apply/desired-state.d.ts +47 -13
- package/vendor/cli/dist/commands/_lib/apply/desired-state.js +106 -7
- package/vendor/cli/dist/commands/_lib/apply/diff.d.ts +14 -7
- package/vendor/cli/dist/commands/_lib/apply/diff.js +42 -29
- 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 +211 -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/commands/memory/_lib/schema.d.ts +0 -1
- package/vendor/cli/dist/commands/memory/_lib/schema.js +0 -9
- package/vendor/cli/dist/commands/memory/_lib/seed-cmd.js +0 -2
- 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 +274 -193
- package/vendor/cli/dist/connectors/google_calendar.ts +54 -160
- 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 +71 -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 +11 -7
- package/vendor/cli/dist/connectors/reddit.ts +36 -6
- 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/providers.json +0 -1
- 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 -15
- 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/client.d.ts +4 -1
- package/vendor/connector-worker/dist/daemon/client.js +3 -0
- package/vendor/connector-worker/dist/daemon/executor.d.ts +0 -1
- package/vendor/connector-worker/dist/daemon/executor.js +46 -51
- package/vendor/connector-worker/dist/daemon/start.js +6 -2
- package/vendor/connector-worker/dist/executor/interface.d.ts +19 -9
- package/vendor/connector-worker/dist/executor/isolate.js +85 -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-auth-profiles.d.ts +14 -0
- package/vendor/core/dist/contracts/tools/manage-auth-profiles.js +12 -1
- package/vendor/core/dist/contracts/tools/manage-automations.d.ts +0 -10
- package/vendor/core/dist/contracts/tools/manage-automations.js +0 -33
- package/vendor/core/dist/contracts/tools/manage-classifiers.d.ts +4 -34
- package/vendor/core/dist/contracts/tools/manage-classifiers.js +13 -44
- 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-entity.d.ts +0 -9
- package/vendor/core/dist/contracts/tools/manage-entity.js +0 -6
- 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-attach.d.ts +20 -0
- package/vendor/core/dist/contracts/tools/view-attach.js +45 -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 +90 -8
- package/vendor/core/dist/contracts/worker/protocol.js +70 -10
- package/vendor/core/dist/index.d.ts +1 -1
- package/vendor/core/dist/provider-config-types.d.ts +0 -9
- package/vendor/core/dist/reserved.d.ts +3 -3
- package/vendor/core/dist/reserved.js +9 -1
- package/vendor/core/dist/sdk-compat.d.ts +1 -1
- package/vendor/core/dist/utils/secret-redaction.js +2 -0
- package/vendor/core/package.json +30 -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ManageClassifiersResultSchema = exports.ManageClassifiersSchema = exports.
|
|
3
|
+
exports.ManageClassifiersResultSchema = exports.ManageClassifiersSchema = exports.ClassifyContentAction = exports.DeleteClassifierAction = exports.ListClassifiersAction = exports.CreateClassifierAction = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
5
|
// ============================================
|
|
6
6
|
// Typebox Schema (union of per-action variants)
|
|
@@ -13,22 +13,21 @@ const EntityId = typebox_1.Type.Number({
|
|
|
13
13
|
description: "[create/list] Entity ID to scope classifiers (global if omitted)",
|
|
14
14
|
});
|
|
15
15
|
const ClassifierId = typebox_1.Type.Number({
|
|
16
|
-
description: "[
|
|
16
|
+
description: "[delete] Classifier ID",
|
|
17
17
|
});
|
|
18
18
|
const ClassifierSlug = typebox_1.Type.String({
|
|
19
|
-
description: '[classify
|
|
19
|
+
description: '[classify] Classifier slug (e.g., "sentiment", "bug-severity")',
|
|
20
20
|
});
|
|
21
|
-
const
|
|
22
|
-
|
|
21
|
+
const Confidence = typebox_1.Type.Number({
|
|
22
|
+
minimum: 0,
|
|
23
|
+
maximum: 1,
|
|
24
|
+
description: "[classify] Confidence in the value, 0..1 (default: 1)",
|
|
23
25
|
});
|
|
24
26
|
exports.CreateClassifierAction = typebox_1.Type.Object({
|
|
25
27
|
action: typebox_1.Type.Literal("create", {
|
|
26
|
-
description: "Create a classifier
|
|
28
|
+
description: "Create a classifier: the label schema that `classify` writes against.",
|
|
27
29
|
}),
|
|
28
30
|
entity_id: typebox_1.Type.Optional(EntityId),
|
|
29
|
-
automation_id: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
30
|
-
description: "[create] Persisted Automation ID returned by manage_automations (numeric string). OMIT for an org-level classifier — only those are matched by `apply` and the reconciliation job. Pass it only to scope the classifier to a single Automation.",
|
|
31
|
-
})),
|
|
32
31
|
slug: typebox_1.Type.String({
|
|
33
32
|
description: '[create] Unique identifier (e.g., "sentiment", "quality")',
|
|
34
33
|
}),
|
|
@@ -40,19 +39,11 @@ exports.CreateClassifierAction = typebox_1.Type.Object({
|
|
|
40
39
|
attribute_values: typebox_1.Type.Record(typebox_1.Type.String({ minLength: 1 }), typebox_1.Type.Object({
|
|
41
40
|
description: typebox_1.Type.String(),
|
|
42
41
|
examples: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
43
|
-
embedding: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Array(typebox_1.Type.Number(), { minItems: 1 }), typebox_1.Type.Null()])),
|
|
44
42
|
}, { additionalProperties: false }), {
|
|
45
43
|
minProperties: 1,
|
|
46
|
-
description: "[create] Map of attribute values to descriptions
|
|
44
|
+
description: "[create] Map of attribute values to descriptions and examples.",
|
|
47
45
|
}),
|
|
48
|
-
min_similarity: typebox_1.Type.Optional(typebox_1.Type.Number({
|
|
49
|
-
description: "[create] Minimum similarity threshold (default: 0.7)",
|
|
50
|
-
})),
|
|
51
|
-
fallback_value: typebox_1.Type.Optional(typebox_1.Type.Any({
|
|
52
|
-
description: "[create] Fallback value if no match (default: null)",
|
|
53
|
-
})),
|
|
54
46
|
created_by: typebox_1.Type.Optional(typebox_1.Type.String({ description: "[create] Creator identifier" })),
|
|
55
|
-
embedding_model: typebox_1.Type.Optional(EmbeddingModel),
|
|
56
47
|
});
|
|
57
48
|
exports.ListClassifiersAction = typebox_1.Type.Object({
|
|
58
49
|
action: typebox_1.Type.Literal("list", {
|
|
@@ -63,16 +54,6 @@ exports.ListClassifiersAction = typebox_1.Type.Object({
|
|
|
63
54
|
description: "[list] Filter by status. Defaults to 'active' (deprecated classifiers are excluded). Pass 'deprecated' to see archived ones, or 'all' to list every classifier regardless of status.",
|
|
64
55
|
})),
|
|
65
56
|
});
|
|
66
|
-
exports.GenerateClassifierEmbeddingsAction = typebox_1.Type.Object({
|
|
67
|
-
action: typebox_1.Type.Literal("generate_embeddings", {
|
|
68
|
-
description: "Generate/regenerate attribute-value embeddings.",
|
|
69
|
-
}),
|
|
70
|
-
classifier_id: ClassifierId,
|
|
71
|
-
force_regenerate: typebox_1.Type.Optional(typebox_1.Type.Boolean({
|
|
72
|
-
description: "[generate_embeddings] Force regenerate existing embeddings (default: false)",
|
|
73
|
-
})),
|
|
74
|
-
embedding_model: typebox_1.Type.Optional(EmbeddingModel),
|
|
75
|
-
});
|
|
76
57
|
exports.DeleteClassifierAction = typebox_1.Type.Object({
|
|
77
58
|
action: typebox_1.Type.Literal("delete", {
|
|
78
59
|
description: "Archive a classifier (status -> deprecated).",
|
|
@@ -81,7 +62,7 @@ exports.DeleteClassifierAction = typebox_1.Type.Object({
|
|
|
81
62
|
});
|
|
82
63
|
exports.ClassifyContentAction = typebox_1.Type.Object({
|
|
83
64
|
action: typebox_1.Type.Literal("classify", {
|
|
84
|
-
description: "
|
|
65
|
+
description: "Write labels (single or batch). The only way labels are written: an Automation labels events by calling this with source 'llm'. A null value removes your label for that content.",
|
|
85
66
|
}),
|
|
86
67
|
classifier_slug: ClassifierSlug,
|
|
87
68
|
content_id: typebox_1.Type.Optional(typebox_1.Type.Number({
|
|
@@ -90,11 +71,13 @@ exports.ClassifyContentAction = typebox_1.Type.Object({
|
|
|
90
71
|
value: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()], {
|
|
91
72
|
description: "[classify] Classification value for single update, or null to unset",
|
|
92
73
|
})),
|
|
74
|
+
confidence: typebox_1.Type.Optional(Confidence),
|
|
93
75
|
classifications: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Object({
|
|
94
76
|
content_id: typebox_1.Type.Number({ description: "Content ID" }),
|
|
95
77
|
value: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()], {
|
|
96
78
|
description: "Classification value, or null to unset",
|
|
97
79
|
}),
|
|
80
|
+
confidence: typebox_1.Type.Optional(Confidence),
|
|
98
81
|
reasoning: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
99
82
|
description: "Reasoning/justification for this classification",
|
|
100
83
|
})),
|
|
@@ -102,31 +85,17 @@ exports.ClassifyContentAction = typebox_1.Type.Object({
|
|
|
102
85
|
description: "[classify] Array of classifications to update (batch mode)",
|
|
103
86
|
})),
|
|
104
87
|
source: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Literal("llm"), typebox_1.Type.Literal("user")], {
|
|
105
|
-
description: '[classify] Classification source: "llm" (AI-generated) or "user" (manual). Defaults to "user".',
|
|
88
|
+
description: '[classify] Classification source: "llm" (AI-generated, e.g. an Automation) or "user" (manual). Defaults to "user". Only "user" labels are manual, and they win over "llm" labels at read time.',
|
|
106
89
|
})),
|
|
107
90
|
reasoning: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
108
91
|
description: "[classify] Reasoning/justification for the classification(s)",
|
|
109
92
|
})),
|
|
110
93
|
});
|
|
111
|
-
exports.ApplyClassifierAction = typebox_1.Type.Object({
|
|
112
|
-
action: typebox_1.Type.Literal("apply", {
|
|
113
|
-
description: "Run a classifier over specific content ids (embedding match, no LLM). Re-running re-labels: it replaces prior embedding results and never touches manual/LLM ones. Use after editing a classifier — run generate_embeddings first.",
|
|
114
|
-
}),
|
|
115
|
-
classifier_slug: ClassifierSlug,
|
|
116
|
-
content_ids: typebox_1.Type.Array(typebox_1.Type.Number(), {
|
|
117
|
-
minItems: 1,
|
|
118
|
-
maxItems: 2000,
|
|
119
|
-
description: "[apply] Content ids to classify. Get them with a read-only SQL query first, then pass them here. Ids outside your organization, or without an embedding, are skipped and reported — never silently dropped.",
|
|
120
|
-
}),
|
|
121
|
-
embedding_model: typebox_1.Type.Optional(EmbeddingModel),
|
|
122
|
-
});
|
|
123
94
|
exports.ManageClassifiersSchema = typebox_1.Type.Union([
|
|
124
95
|
exports.CreateClassifierAction,
|
|
125
96
|
exports.ListClassifiersAction,
|
|
126
|
-
exports.GenerateClassifierEmbeddingsAction,
|
|
127
97
|
exports.DeleteClassifierAction,
|
|
128
98
|
exports.ClassifyContentAction,
|
|
129
|
-
exports.ApplyClassifierAction,
|
|
130
99
|
]);
|
|
131
100
|
/**
|
|
132
101
|
* Result of `manage_classifiers`. TypeBox-first: `Static<>` derives the TS type
|
|
@@ -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
|
});
|
|
@@ -7,7 +7,6 @@ export declare const CreateEntityAction: import("@sinclair/typebox").TObject<{
|
|
|
7
7
|
content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
8
8
|
slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
9
9
|
parent_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
10
|
-
enabled_classifiers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
11
10
|
domain: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
12
11
|
category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13
12
|
platform_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -27,7 +26,6 @@ export declare const UpdateEntityAction: import("@sinclair/typebox").TObject<{
|
|
|
27
26
|
content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
28
27
|
slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
29
28
|
parent_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
30
|
-
enabled_classifiers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
31
29
|
domain: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
32
30
|
category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33
31
|
platform_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -151,7 +149,6 @@ export declare const ManageEntitySchema: import("@sinclair/typebox").TUnion<[imp
|
|
|
151
149
|
content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
152
150
|
slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
153
151
|
parent_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
154
|
-
enabled_classifiers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
155
152
|
domain: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
156
153
|
category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
157
154
|
platform_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -170,7 +167,6 @@ export declare const ManageEntitySchema: import("@sinclair/typebox").TUnion<[imp
|
|
|
170
167
|
content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
171
168
|
slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
172
169
|
parent_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
173
|
-
enabled_classifiers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
174
170
|
domain: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
175
171
|
category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
176
172
|
platform_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -333,7 +329,6 @@ export declare const ManageEntityItemSchema: import("@sinclair/typebox").TObject
|
|
|
333
329
|
parent_slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
334
330
|
parent_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
335
331
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
336
|
-
enabled_classifiers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
337
332
|
created_at: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
338
333
|
total_content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
339
334
|
active_connections: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
@@ -359,7 +354,6 @@ export declare const ManageEntityResultSchema: import("@sinclair/typebox").TUnio
|
|
|
359
354
|
parent_slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
360
355
|
parent_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
361
356
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
362
|
-
enabled_classifiers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
363
357
|
created_at: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
364
358
|
total_content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
365
359
|
active_connections: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
@@ -389,7 +383,6 @@ export declare const ManageEntityResultSchema: import("@sinclair/typebox").TUnio
|
|
|
389
383
|
parent_slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
390
384
|
parent_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
391
385
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
392
|
-
enabled_classifiers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
393
386
|
created_at: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
394
387
|
total_content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
395
388
|
active_connections: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
@@ -427,7 +420,6 @@ export declare const ManageEntityResultSchema: import("@sinclair/typebox").TUnio
|
|
|
427
420
|
parent_slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
428
421
|
parent_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
429
422
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
430
|
-
enabled_classifiers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
431
423
|
created_at: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
432
424
|
total_content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
433
425
|
active_connections: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
@@ -463,7 +455,6 @@ export declare const ManageEntityResultSchema: import("@sinclair/typebox").TUnio
|
|
|
463
455
|
parent_slug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
464
456
|
parent_entity_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
465
457
|
metadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>>;
|
|
466
|
-
enabled_classifiers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
467
458
|
created_at: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
468
459
|
total_content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
469
460
|
active_connections: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
@@ -37,9 +37,6 @@ const EntityFields = {
|
|
|
37
37
|
parent_id: typebox_1.Type.Number({
|
|
38
38
|
description: "[create/update/list] Parent entity ID (for hierarchical entities). On list, only that parent's children.",
|
|
39
39
|
}),
|
|
40
|
-
enabled_classifiers: typebox_1.Type.Array(typebox_1.Type.String(), {
|
|
41
|
-
description: "[create/update] Enabled classifier slugs",
|
|
42
|
-
}),
|
|
43
40
|
domain: typebox_1.Type.String({
|
|
44
41
|
description: "[create/update] Primary domain (e.g., spotify.com)",
|
|
45
42
|
}),
|
|
@@ -122,7 +119,6 @@ exports.CreateEntityAction = typebox_1.Type.Object({
|
|
|
122
119
|
content: typebox_1.Type.Optional(EntityFields.content),
|
|
123
120
|
slug: typebox_1.Type.Optional(EntityFields.slug),
|
|
124
121
|
parent_id: typebox_1.Type.Optional(EntityFields.parent_id),
|
|
125
|
-
enabled_classifiers: typebox_1.Type.Optional(EntityFields.enabled_classifiers),
|
|
126
122
|
domain: typebox_1.Type.Optional(EntityFields.domain),
|
|
127
123
|
category: typebox_1.Type.Optional(EntityFields.category),
|
|
128
124
|
platform_type: typebox_1.Type.Optional(EntityFields.platform_type),
|
|
@@ -141,7 +137,6 @@ exports.UpdateEntityAction = typebox_1.Type.Object({
|
|
|
141
137
|
content: typebox_1.Type.Optional(EntityFields.content),
|
|
142
138
|
slug: typebox_1.Type.Optional(EntityFields.slug),
|
|
143
139
|
parent_id: typebox_1.Type.Optional(EntityFields.parent_id),
|
|
144
|
-
enabled_classifiers: typebox_1.Type.Optional(EntityFields.enabled_classifiers),
|
|
145
140
|
domain: typebox_1.Type.Optional(EntityFields.domain),
|
|
146
141
|
category: typebox_1.Type.Optional(EntityFields.category),
|
|
147
142
|
platform_type: typebox_1.Type.Optional(EntityFields.platform_type),
|
|
@@ -364,7 +359,6 @@ exports.ManageEntityItemSchema = typebox_1.Type.Object({
|
|
|
364
359
|
parent_slug: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
365
360
|
parent_entity_type: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
366
361
|
metadata: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())),
|
|
367
|
-
enabled_classifiers: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Array(typebox_1.Type.String()), typebox_1.Type.Null()])),
|
|
368
362
|
// `created_at` arrives from the row as a `Date`; the structuredContent
|
|
369
363
|
// validation layer coerces it to an ISO string before the check (Value.Convert
|
|
370
364
|
// on Type.String() converts Date → ISO), so the schema declares the honest
|
|
@@ -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
|