@lobu/runtime-device 21.2.1 → 23.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 +91 -83
- package/npm-shrinkwrap.json +492 -438
- package/package.json +12 -2
- package/vendor/cli/dist/bundled-skills/lobu/SKILL.md +1 -1
- package/vendor/cli/dist/commands/_lib/apply/apply-cmd.js +5 -6
- package/vendor/cli/dist/commands/_lib/apply/client.d.ts +1 -0
- package/vendor/cli/dist/commands/_lib/apply/client.js +26 -7
- package/vendor/cli/dist/commands/_lib/apply/desired-state.d.ts +9 -1
- package/vendor/cli/dist/commands/_lib/apply/diff.d.ts +1 -0
- package/vendor/cli/dist/commands/_lib/apply/diff.js +46 -4
- package/vendor/cli/dist/commands/_lib/apply/map-config.js +18 -38
- package/vendor/cli/dist/commands/_lib/init-from-org/bootstrap.js +5 -17
- package/vendor/cli/dist/commands/init.d.ts +0 -2
- package/vendor/cli/dist/commands/init.js +0 -27
- package/vendor/cli/dist/commands/login.d.ts +17 -0
- package/vendor/cli/dist/commands/login.js +43 -17
- package/vendor/cli/dist/commands/memory/_lib/errors.d.ts +0 -8
- package/vendor/cli/dist/commands/memory/_lib/errors.js +0 -12
- package/vendor/cli/dist/commands/memory/_lib/mcp.js +6 -6
- package/vendor/cli/dist/commands/memory/_lib/seed-cmd.js +4 -10
- package/vendor/cli/dist/config/define.d.ts +21 -15
- package/vendor/cli/dist/config/define.js +2 -2
- package/vendor/cli/dist/connectors/README.md +21 -6
- package/vendor/cli/dist/connectors/_google/actions.ts +270 -0
- package/vendor/cli/dist/connectors/_google/discovery/calendar_v3.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery/chat_v1.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery/docs_v1.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery/drive_v3.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery/gmail_v1.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery/people_v1.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery/sheets_v4.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery/tasks_v1.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery/youtube_v3.json +1 -0
- package/vendor/cli/dist/connectors/_google/discovery.ts +442 -0
- package/vendor/cli/dist/connectors/_google/errors.ts +91 -0
- package/vendor/cli/dist/connectors/_google/list-feed.ts +223 -0
- package/vendor/cli/dist/connectors/_google/policies.ts +127 -0
- package/vendor/cli/dist/connectors/agentid.ts +43 -0
- package/vendor/cli/dist/connectors/chat-user-identity.ts +2 -1
- package/vendor/cli/dist/connectors/github-automation-events.ts +9 -0
- package/vendor/cli/dist/connectors/github-identity.ts +28 -3
- package/vendor/cli/dist/connectors/github.ts +101 -59
- package/vendor/cli/dist/connectors/google_calendar.ts +207 -719
- package/vendor/cli/dist/connectors/google_drive.ts +16 -2
- package/vendor/cli/dist/connectors/google_gmail.ts +52 -33
- package/vendor/cli/dist/connectors/herdr.ts +406 -0
- package/vendor/cli/dist/connectors/jira-helpers.ts +313 -0
- package/vendor/cli/dist/connectors/jira.ts +35 -227
- package/vendor/cli/dist/connectors/linear.ts +7 -4
- package/vendor/cli/dist/connectors/linkedin-browser-script.ts +13 -0
- package/vendor/cli/dist/connectors/linkedin-draft-page.js +104 -0
- package/vendor/cli/dist/connectors/linkedin-drafts.ts +73 -0
- package/vendor/cli/dist/connectors/linkedin-identity.ts +32 -0
- package/vendor/cli/dist/connectors/linkedin-inbox-adapter.js +1185 -0
- package/vendor/cli/dist/connectors/linkedin-inbox.ts +156 -0
- package/vendor/cli/dist/connectors/linkedin-like.ts +114 -0
- package/vendor/cli/dist/connectors/linkedin-takeout.ts +577 -0
- package/vendor/cli/dist/connectors/linkedin.ts +3998 -0
- package/vendor/cli/dist/connectors/postgres.ts +27 -2
- package/vendor/cli/dist/connectors/takeout-utils.ts +240 -0
- package/vendor/cli/dist/connectors/tiktok-inbox-page.js +230 -0
- package/vendor/cli/dist/connectors/tiktok-web-page.js +217 -0
- package/vendor/cli/dist/connectors/tiktok_web.ts +319 -0
- package/vendor/cli/dist/connectors/whatsapp-web-adapter.js +285 -567
- package/vendor/cli/dist/connectors/whatsapp-web-helpers.ts +74 -455
- package/vendor/cli/dist/connectors/whatsapp-web-identity.ts +135 -0
- package/vendor/cli/dist/connectors/whatsapp_web.ts +159 -618
- package/vendor/cli/dist/connectors/x-dm-adapter.js +556 -0
- package/vendor/cli/dist/connectors/x-identity.ts +31 -2
- package/vendor/cli/dist/connectors/x.ts +539 -253
- package/vendor/cli/dist/index.js +1 -37
- package/vendor/cli/dist/internal/context.d.ts +10 -0
- package/vendor/cli/dist/internal/context.js +26 -16
- package/vendor/cli/dist/internal/node-version.d.ts +1 -1
- package/vendor/cli/dist/internal/node-version.js +1 -1
- package/vendor/cli/dist/internal/oauth.d.ts +3 -1
- package/vendor/cli/dist/internal/oauth.js +4 -3
- package/vendor/cli/dist/internal/runtime-components.d.ts +9 -0
- package/vendor/cli/dist/internal/runtime-components.js +67 -2
- package/vendor/cli/dist/mac-auth.js +17 -1
- package/vendor/cli/dist/providers.json +1 -1
- package/vendor/cli/dist/runtime-components.json +4 -4
- package/vendor/cli/dist/templates/AGENTS.md.tmpl +12 -5
- package/vendor/cli/dist/templates/README.md.tmpl +1 -1
- package/vendor/cli/dist/vendor/ora/.bun-tag-fde20e9a6df212fa +0 -0
- package/vendor/cli/dist/vendor/ora/index.d.ts +332 -0
- package/vendor/cli/dist/vendor/ora/index.js +424 -0
- package/vendor/cli/dist/vendor/ora/license +9 -0
- package/vendor/cli/dist/vendor/ora/package.json +64 -0
- package/vendor/cli/dist/vendor/ora/readme.md +329 -0
- package/vendor/cli/package.json +2 -2
- package/vendor/connector-sdk/dist/browser-handoff-banner.d.ts +39 -0
- package/vendor/connector-sdk/dist/browser-handoff-banner.js +175 -0
- package/vendor/connector-sdk/dist/browser-requirement.d.ts +36 -0
- package/vendor/connector-sdk/dist/browser-requirement.js +60 -0
- package/vendor/connector-sdk/dist/browser-source-read.d.ts +52 -0
- package/vendor/connector-sdk/dist/browser-source-read.js +107 -0
- package/vendor/connector-sdk/dist/connector-runtime.d.ts +3 -1
- package/vendor/connector-sdk/dist/connector-runtime.js +10 -0
- package/vendor/connector-sdk/dist/connector-types.d.ts +169 -45
- package/vendor/connector-sdk/dist/define-connector.d.ts +4 -2
- package/vendor/connector-sdk/dist/define-connector.js +3 -0
- package/vendor/connector-sdk/dist/index.d.ts +8 -2
- package/vendor/connector-sdk/dist/index.js +3 -0
- package/vendor/connector-sdk/dist/reaction-client-types.d.ts +16 -21
- package/vendor/connector-sdk/dist/reaction-client-types.typecheck.d.ts +5 -0
- package/vendor/connector-sdk/package.json +13 -1
- package/vendor/connector-worker/dist/agent-turn/guest-entry.js +43 -30
- package/vendor/connector-worker/dist/agent-turn/guest.bundle.js +416 -330
- package/vendor/connector-worker/dist/agent-turn/memory.d.ts +3 -2
- package/vendor/connector-worker/dist/agent-turn/memory.js +3 -20
- package/vendor/connector-worker/dist/agent-turn/types.d.ts +3 -15
- package/vendor/connector-worker/dist/agent-turn/workspace.d.ts +2 -2
- package/vendor/connector-worker/dist/agent-turn/workspace.js +2 -4
- package/vendor/connector-worker/dist/daemon/action-monitor.d.ts +12 -0
- package/vendor/connector-worker/dist/daemon/action-monitor.js +25 -0
- package/vendor/connector-worker/dist/daemon/agent-turn.js +0 -9
- package/vendor/connector-worker/dist/daemon/automation.d.ts +4 -11
- package/vendor/connector-worker/dist/daemon/automation.js +6 -6
- package/vendor/connector-worker/dist/daemon/builtins/index.d.ts +12 -0
- package/vendor/connector-worker/dist/daemon/builtins/index.js +61 -1
- package/vendor/connector-worker/dist/daemon/builtins/os-shell.d.ts +2 -1
- package/vendor/connector-worker/dist/daemon/builtins/os-shell.js +40 -27
- package/vendor/connector-worker/dist/daemon/client.d.ts +6 -4
- package/vendor/connector-worker/dist/daemon/client.js +3 -3
- package/vendor/connector-worker/dist/daemon/device-concurrency.d.ts +8 -0
- package/vendor/connector-worker/dist/daemon/device-concurrency.js +13 -0
- package/vendor/connector-worker/dist/daemon/executor.d.ts +1 -1
- package/vendor/connector-worker/dist/daemon/executor.js +48 -120
- package/vendor/connector-worker/dist/daemon/log.d.ts +2 -0
- package/vendor/connector-worker/dist/daemon/log.js +23 -2
- package/vendor/connector-worker/dist/daemon/mac-device-daemon.d.ts +23 -6
- package/vendor/connector-worker/dist/daemon/mac-device-daemon.js +57 -23
- package/vendor/connector-worker/dist/daemon/native-bridge/client.d.ts +6 -0
- package/vendor/connector-worker/dist/daemon/native-bridge/client.js +15 -0
- package/vendor/connector-worker/dist/daemon/native-bridge/executor.js +29 -25
- package/vendor/connector-worker/dist/daemon/native-bridge/protocol.d.ts +1 -1
- package/vendor/connector-worker/dist/daemon/native-bridge/protocol.js +1 -0
- package/vendor/connector-worker/dist/daemon/poll-loop.d.ts +3 -0
- package/vendor/connector-worker/dist/daemon/poll-loop.js +5 -1
- package/vendor/connector-worker/dist/daemon/start.d.ts +1 -0
- package/vendor/connector-worker/dist/daemon/start.js +15 -20
- package/vendor/connector-worker/dist/daemon/terminal-failure.js +0 -11
- package/vendor/connector-worker/dist/daemon/worker-id.d.ts +17 -0
- package/vendor/connector-worker/dist/daemon/worker-id.js +22 -0
- package/vendor/connector-worker/dist/executor/interface.d.ts +34 -2
- package/vendor/connector-worker/dist/executor/isolate.js +66 -15
- package/vendor/connector-worker/dist/executor/redact.d.ts +1 -0
- package/vendor/connector-worker/dist/executor/redact.js +97 -26
- package/vendor/connector-worker/dist/executor/runtime.d.ts +7 -0
- package/vendor/connector-worker/dist/executor/runtime.js +26 -0
- package/vendor/connector-worker/dist/isolate/bridge.js +3 -1
- package/vendor/connector-worker/dist/mac-device-daemon.js +24 -29
- package/vendor/connector-worker/package.json +2 -2
- package/vendor/core/dist/agent-policy.js +1 -1
- package/vendor/core/dist/agent-store.d.ts +2 -0
- package/vendor/core/dist/agent-tooling.d.ts +1 -1
- package/vendor/core/dist/agent-tooling.js +1 -1
- package/vendor/core/dist/capabilities.d.ts +1 -1
- package/vendor/core/dist/capabilities.js +2 -1
- package/vendor/core/dist/connector-query-errors.d.ts +32 -0
- package/vendor/core/dist/connector-query-errors.js +41 -1
- package/vendor/core/dist/contracts/agent-settings.d.ts +0 -11
- package/vendor/core/dist/contracts/agent-settings.js +1 -7
- package/vendor/core/dist/contracts/tools/collection-presentation.d.ts +93 -0
- package/vendor/core/dist/contracts/tools/collection-presentation.js +88 -0
- package/vendor/core/dist/contracts/tools/collection-selection.d.ts +47 -0
- package/vendor/core/dist/contracts/tools/collection-selection.js +74 -0
- package/vendor/core/dist/contracts/tools/manage-agents.d.ts +10 -4
- package/vendor/core/dist/contracts/tools/manage-auth-profiles.d.ts +1 -1
- package/vendor/core/dist/contracts/tools/manage-auth-profiles.js +5 -1
- package/vendor/core/dist/contracts/tools/manage-automations.d.ts +19 -4
- package/vendor/core/dist/contracts/tools/manage-automations.js +25 -8
- package/vendor/core/dist/contracts/tools/manage-connections.d.ts +1 -0
- package/vendor/core/dist/contracts/tools/manage-connections.js +3 -0
- package/vendor/core/dist/contracts/tools/manage-conversations.js +2 -2
- package/vendor/core/dist/contracts/tools/manage-entity-schema.d.ts +11 -0
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +42 -3
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +181 -152
- package/vendor/core/dist/contracts/tools/manage-entity.js +118 -162
- package/vendor/core/dist/contracts/tools/manage-feeds.d.ts +14 -0
- package/vendor/core/dist/contracts/tools/manage-feeds.js +17 -0
- package/vendor/core/dist/contracts/tools/manage-operations.d.ts +41 -3
- package/vendor/core/dist/contracts/tools/manage-operations.js +40 -2
- package/vendor/core/dist/contracts/tools/manage-views.d.ts +182 -7
- package/vendor/core/dist/contracts/tools/manage-views.js +49 -13
- package/vendor/core/dist/contracts/tools/read-knowledge.d.ts +11 -2
- package/vendor/core/dist/contracts/tools/read-knowledge.js +23 -3
- package/vendor/core/dist/contracts/tools/save-memory.d.ts +3 -6
- package/vendor/core/dist/contracts/tools/save-memory.js +2 -6
- package/vendor/core/dist/contracts/tools/view-attach.d.ts +2 -1
- package/vendor/core/dist/contracts/tools/view-attach.js +7 -2
- package/vendor/core/dist/contracts/worker/protocol.d.ts +130 -159
- package/vendor/core/dist/contracts/worker/protocol.js +88 -76
- package/vendor/core/dist/device-pin-tombstones.d.ts +44 -0
- package/vendor/core/dist/device-pin-tombstones.js +57 -0
- package/vendor/core/dist/index.d.ts +5 -5
- package/vendor/core/dist/index.js +4 -6
- package/vendor/core/dist/json-template.d.ts +6 -10
- package/vendor/core/dist/json-template.js +5 -9
- package/vendor/core/dist/logger.js +17 -26
- package/vendor/core/dist/shell-safety.d.ts +9 -0
- package/vendor/core/dist/shell-safety.js +154 -0
- package/vendor/core/dist/suggestions.d.ts +1 -1
- package/vendor/core/dist/suggestions.js +1 -1
- package/vendor/core/dist/tool-trace-summary.d.ts +1 -1
- package/vendor/core/dist/tool-trace-summary.js +1 -1
- package/vendor/core/dist/types.d.ts +1 -3
- package/vendor/core/dist/utils/diagnostic-scrubber.d.ts +7 -0
- package/vendor/core/dist/utils/diagnostic-scrubber.js +437 -0
- package/vendor/core/dist/worker/auth.d.ts +44 -6
- package/vendor/core/dist/worker/auth.js +44 -11
- package/vendor/core/dist/worker/wire.d.ts +0 -10
- package/vendor/core/package.json +20 -11
- package/vendor/ora/.bun-tag-fde20e9a6df212fa +0 -0
- package/vendor/ora/index.d.ts +332 -0
- package/vendor/ora/index.js +424 -0
- package/vendor/ora/license +9 -0
- package/vendor/ora/package.json +53 -0
- package/vendor/ora/readme.md +329 -0
- package/vendor/cli/dist/commands/telemetry.d.ts +0 -10
- package/vendor/cli/dist/commands/telemetry.js +0 -66
- package/vendor/connector-worker/dist/daemon/device-chat.d.ts +0 -9
- package/vendor/connector-worker/dist/daemon/device-chat.js +0 -61
- package/vendor/core/dist/contracts/worker/device-chat.d.ts +0 -4
- package/vendor/core/dist/contracts/worker/device-chat.js +0 -26
- package/vendor/core/dist/sentry.d.ts +0 -26
- package/vendor/core/dist/sentry.js +0 -133
- package/vendor/core/dist/tool-policy.d.ts +0 -74
- package/vendor/core/dist/tool-policy.js +0 -305
- package/vendor/core/dist/utils/sentry-scrubber.d.ts +0 -29
- package/vendor/core/dist/utils/sentry-scrubber.js +0 -228
|
@@ -12,7 +12,12 @@
|
|
|
12
12
|
import { type Static } from "@sinclair/typebox";
|
|
13
13
|
export declare const GetContentSchema: import("@sinclair/typebox").TObject<{
|
|
14
14
|
query: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
15
|
-
entity_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").
|
|
15
|
+
entity_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
16
|
+
record: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
17
|
+
type: import("@sinclair/typebox").TString;
|
|
18
|
+
key: import("@sinclair/typebox").TString;
|
|
19
|
+
}>>;
|
|
20
|
+
record_cursor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
16
21
|
automation_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
17
22
|
template_version_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
18
23
|
connection_ids: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>>;
|
|
@@ -43,6 +48,7 @@ export declare const GetContentSchema: import("@sinclair/typebox").TObject<{
|
|
|
43
48
|
engagement_max: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
44
49
|
sort_by: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"date">, import("@sinclair/typebox").TLiteral<"score">]>>;
|
|
45
50
|
sort_order: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"asc">, import("@sinclair/typebox").TLiteral<"desc">]>>;
|
|
51
|
+
include_total: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
46
52
|
include_superseded: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
47
53
|
classification_source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"user">, import("@sinclair/typebox").TLiteral<"embedding">, import("@sinclair/typebox").TLiteral<"llm">]>>;
|
|
48
54
|
content_ids: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>>;
|
|
@@ -64,7 +70,10 @@ export declare const GetContentSchema: import("@sinclair/typebox").TObject<{
|
|
|
64
70
|
*/
|
|
65
71
|
export declare const GET_CONTENT_INTERNAL_FIELDS: readonly ["mcp_activity_id"];
|
|
66
72
|
export declare const PublicGetContentSchema: import("@sinclair/typebox").TObject<{
|
|
67
|
-
[k: string]: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").
|
|
73
|
+
[k: string]: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"asc">, import("@sinclair/typebox").TLiteral<"desc">]>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
74
|
+
type: import("@sinclair/typebox").TString;
|
|
75
|
+
key: import("@sinclair/typebox").TString;
|
|
76
|
+
}>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"date">, import("@sinclair/typebox").TLiteral<"score">]>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"user">, import("@sinclair/typebox").TLiteral<"embedding">, import("@sinclair/typebox").TLiteral<"llm">]>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>]>> | import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"pending">, import("@sinclair/typebox").TLiteral<"approved">, import("@sinclair/typebox").TLiteral<"rejected">, import("@sinclair/typebox").TLiteral<"completed">, import("@sinclair/typebox").TLiteral<"failed">]>>;
|
|
68
77
|
}>;
|
|
69
78
|
export type GetContentArgs = Static<typeof GetContentSchema>;
|
|
70
79
|
/**
|
|
@@ -18,8 +18,24 @@ exports.GetContentSchema = typebox_1.Type.Object({
|
|
|
18
18
|
description: "Search query text (min 3 characters). If provided, performs semantic/full-text search. If omitted, lists content ordered by date.",
|
|
19
19
|
minLength: 3,
|
|
20
20
|
})),
|
|
21
|
-
entity_id: typebox_1.Type.Optional(typebox_1.Type.
|
|
22
|
-
|
|
21
|
+
entity_id: typebox_1.Type.Optional(typebox_1.Type.Integer({
|
|
22
|
+
minimum: 1,
|
|
23
|
+
description: "Entity ID to filter by. Required unless automation_id or record is provided.",
|
|
24
|
+
})),
|
|
25
|
+
record: typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
26
|
+
type: typebox_1.Type.String({
|
|
27
|
+
minLength: 1,
|
|
28
|
+
description: "Source-backed entity type slug",
|
|
29
|
+
}),
|
|
30
|
+
key: typebox_1.Type.String({
|
|
31
|
+
minLength: 1,
|
|
32
|
+
description: "The record's source key (its URL slug)",
|
|
33
|
+
}),
|
|
34
|
+
}, {
|
|
35
|
+
description: "A record of a source-backed entity type. Reads its events live from every read feed attributing to the type; stores nothing. Combine with platforms, connection_ids, feed_ids, limit, and record_cursor. Source filters intersect before reading; empty arrays mean no restriction.",
|
|
36
|
+
})),
|
|
37
|
+
record_cursor: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
38
|
+
description: "record_cursor from the preceding record read, to continue the same record and source filters. Restart pagination when filters change.",
|
|
23
39
|
})),
|
|
24
40
|
automation_id: typebox_1.Type.Optional(typebox_1.Type.Number({
|
|
25
41
|
description: "Persisted Automation ID (`automation_id`) to fetch content for. With run_id, uses that run's queued version/window; otherwise computes the Automation's pending window. Returns window_token for complete_window action.",
|
|
@@ -31,7 +47,7 @@ exports.GetContentSchema = typebox_1.Type.Object({
|
|
|
31
47
|
description: "Connection IDs to filter by",
|
|
32
48
|
})),
|
|
33
49
|
feed_ids: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Number(), {
|
|
34
|
-
description: "Feed IDs to filter by (events.feed_id)",
|
|
50
|
+
description: "Feed IDs to filter by (events.feed_id, or live source feeds with record)",
|
|
35
51
|
})),
|
|
36
52
|
run_ids: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Number(), {
|
|
37
53
|
description: "Run IDs to filter by (events.run_id — the run that produced the event)",
|
|
@@ -127,6 +143,10 @@ exports.GetContentSchema = typebox_1.Type.Object({
|
|
|
127
143
|
description: "Sort order: asc (ascending) or desc (descending). Default: desc",
|
|
128
144
|
default: "desc",
|
|
129
145
|
})),
|
|
146
|
+
include_total: typebox_1.Type.Optional(typebox_1.Type.Boolean({
|
|
147
|
+
description: "Count every match for workspace listings/search (default: true; account activity reports page size). Pass false on an infinite feed to skip the exact count: `total` is then null and page.has_more is computed from one extra fetched row. Ignored by content_ids, include_superseded, and automation_id reads, which always count.",
|
|
148
|
+
default: true,
|
|
149
|
+
})),
|
|
130
150
|
include_superseded: typebox_1.Type.Optional(typebox_1.Type.Boolean({
|
|
131
151
|
description: "When true and listing entity content without a query, include superseded historical events in addition to current records. Useful for explicit historical lookups such as original or previous values.",
|
|
132
152
|
default: false,
|
|
@@ -17,9 +17,8 @@ export declare const SaveContentSchema: import("@sinclair/typebox").TObject<{
|
|
|
17
17
|
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
18
18
|
author: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
19
19
|
semantic_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
20
|
-
payload_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text">, import("@sinclair/typebox").TLiteral<"markdown">, import("@sinclair/typebox").TLiteral<"
|
|
20
|
+
payload_type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text">, import("@sinclair/typebox").TLiteral<"markdown">, import("@sinclair/typebox").TLiteral<"media">, import("@sinclair/typebox").TLiteral<"empty">]>>;
|
|
21
21
|
payload_data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>>;
|
|
22
|
-
payload_template: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>>;
|
|
23
22
|
attachments: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>>>;
|
|
24
23
|
source_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
25
24
|
parent_event_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
@@ -36,14 +35,12 @@ export type SaveContentArgs = Static<typeof SaveContentSchema>;
|
|
|
36
35
|
/**
|
|
37
36
|
* `client.knowledge.save` input. The schema leaves every field optional
|
|
38
37
|
* because `saveContent` resolves the requirement per `payload_type`:
|
|
39
|
-
* `semantic_type` always, `content` for text/markdown
|
|
40
|
-
*
|
|
38
|
+
* `semantic_type` always, `content` for text/markdown.
|
|
39
|
+
* Stated here once, over the contract's own fields.
|
|
41
40
|
*/
|
|
42
41
|
type Save<R extends keyof SaveContentArgs = never> = FlatActionInput<SaveContentArgs, keyof SaveContentArgs, "semantic_type" | R>;
|
|
43
42
|
export type SaveContentInput = (Save<"content"> & {
|
|
44
43
|
payload_type?: "text" | "markdown";
|
|
45
|
-
}) | (Save<"payload_template"> & {
|
|
46
|
-
payload_type: "json_template";
|
|
47
44
|
}) | (Save & {
|
|
48
45
|
payload_type: "media" | "empty";
|
|
49
46
|
});
|
|
@@ -28,17 +28,13 @@ exports.SaveContentSchema = typebox_1.Type.Object({
|
|
|
28
28
|
payload_type: typebox_1.Type.Optional(typebox_1.Type.Union([
|
|
29
29
|
typebox_1.Type.Literal("text"),
|
|
30
30
|
typebox_1.Type.Literal("markdown"),
|
|
31
|
-
typebox_1.Type.Literal("json_template"),
|
|
32
31
|
typebox_1.Type.Literal("media"),
|
|
33
32
|
typebox_1.Type.Literal("empty"),
|
|
34
33
|
], {
|
|
35
|
-
description: "Content format. 'text' (default): plain text. 'markdown': rendered as rich text. '
|
|
34
|
+
description: "Content format. 'text' (default): plain text. 'markdown': rendered as rich text. 'media': media-focused display. 'empty': metadata only.",
|
|
36
35
|
})),
|
|
37
36
|
payload_data: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Any(), {
|
|
38
|
-
description: "Structured
|
|
39
|
-
})),
|
|
40
|
-
payload_template: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Any(), {
|
|
41
|
-
description: "JSON template for rendering. Required when payload_type is json_template. Must have a { root: ... } structure.",
|
|
37
|
+
description: "Structured event data, preserved alongside content and media.",
|
|
42
38
|
})),
|
|
43
39
|
attachments: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Any()), {
|
|
44
40
|
description: "Array of attachment objects (e.g. files, images).",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type CollectionSelection } from "./collection-selection";
|
|
1
2
|
import type { ViewAttachment } from "./manage-views";
|
|
2
3
|
type EventAttachment = Extract<ViewAttachment, {
|
|
3
4
|
event_kind: string;
|
|
@@ -6,7 +7,7 @@ type ViewPlacement = "tab" | "overview";
|
|
|
6
7
|
/** An event's type qualifies its linked entities; it never names a page tab. */
|
|
7
8
|
export declare function isEventAttachment(attachment: ViewAttachment): attachment is EventAttachment;
|
|
8
9
|
export declare function isTabAttachment(attachment: ViewAttachment): boolean;
|
|
9
|
-
export declare function matchesType(attachment: ViewAttachment, typeSlug: string, placement: ViewPlacement): boolean;
|
|
10
|
+
export declare function matchesType(attachment: ViewAttachment, typeSlug: string, placement: ViewPlacement, selection?: CollectionSelection): boolean;
|
|
10
11
|
export declare function matchesRecord(attachment: ViewAttachment, record: {
|
|
11
12
|
type: string;
|
|
12
13
|
id: number;
|
|
@@ -6,6 +6,7 @@ exports.matchesType = matchesType;
|
|
|
6
6
|
exports.matchesRecord = matchesRecord;
|
|
7
7
|
exports.hasWorkspaceAttachment = hasWorkspaceAttachment;
|
|
8
8
|
exports.eventAttachmentsFor = eventAttachmentsFor;
|
|
9
|
+
const collection_selection_1 = require("./collection-selection");
|
|
9
10
|
/** An event's type qualifies its linked entities; it never names a page tab. */
|
|
10
11
|
function isEventAttachment(attachment) {
|
|
11
12
|
return ("event_kind" in attachment && typeof attachment.event_kind === "string");
|
|
@@ -13,10 +14,12 @@ function isEventAttachment(attachment) {
|
|
|
13
14
|
function isTabAttachment(attachment) {
|
|
14
15
|
return (!isEventAttachment(attachment) && (attachment.placement ?? "tab") === "tab");
|
|
15
16
|
}
|
|
16
|
-
function matchesType(attachment, typeSlug, placement) {
|
|
17
|
+
function matchesType(attachment, typeSlug, placement, selection = {}) {
|
|
17
18
|
return (!isEventAttachment(attachment) &&
|
|
18
19
|
"type" in attachment &&
|
|
19
20
|
attachment.type === typeSlug &&
|
|
21
|
+
attachment.surface !== "record" &&
|
|
22
|
+
(!attachment.when || (0, collection_selection_1.selectionImplies)(selection, attachment.when)) &&
|
|
20
23
|
(attachment.placement ?? "tab") === placement);
|
|
21
24
|
}
|
|
22
25
|
function matchesRecord(attachment, record, placement) {
|
|
@@ -29,7 +32,9 @@ function matchesRecord(attachment, record, placement) {
|
|
|
29
32
|
? attachment.entity === record.id
|
|
30
33
|
: record.parentId === null && attachment.entity === record.slug;
|
|
31
34
|
}
|
|
32
|
-
return
|
|
35
|
+
return ("type" in attachment &&
|
|
36
|
+
attachment.type === record.type &&
|
|
37
|
+
attachment.surface !== "collection");
|
|
33
38
|
}
|
|
34
39
|
function hasWorkspaceAttachment(attach) {
|
|
35
40
|
return attach.some((attachment) => !isEventAttachment(attachment) &&
|