@mgamadeus/ddd-agents 0.11.12 → 0.12.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/README.md +138 -6
- package/boundary.json +5 -0
- package/dist/admin.js +13712 -0
- package/dist/admin.js.map +1 -0
- package/dist/chat.js +1627 -109
- package/dist/chat.js.map +1 -1
- package/dist/chunks/{AgentsConversationClientContext-C4T7g_Qk.js → AgentsConversationClientContext-B_UJSLXU.js} +2 -2
- package/dist/chunks/{AgentsConversationClientContext-C4T7g_Qk.js.map → AgentsConversationClientContext-B_UJSLXU.js.map} +1 -1
- package/dist/chunks/{ConversationMarkdown-D-aP3Ssl.js → ConversationMarkdown-DlvwT3Qk.js} +5 -4
- package/dist/chunks/{ConversationMarkdown-D-aP3Ssl.js.map → ConversationMarkdown-DlvwT3Qk.js.map} +1 -1
- package/dist/chunks/{ConversationMessageInputComposerWidgets-7HNAmZE1.js → ConversationMessageInputComposerWidgets-TchR1lPj.js} +6 -6
- package/dist/chunks/{ConversationMessageInputComposerWidgets-7HNAmZE1.js.map → ConversationMessageInputComposerWidgets-TchR1lPj.js.map} +1 -1
- package/dist/chunks/{VoiceBarsIcon-FhLAcgLG.js → VoiceBarsIcon-y3mgSqbn.js} +4 -4
- package/dist/chunks/{VoiceBarsIcon-FhLAcgLG.js.map → VoiceBarsIcon-y3mgSqbn.js.map} +1 -1
- package/dist/chunks/{WebSearchResultsConversationWidget-dEq19U7k.js → WebSearchResultsConversationWidget-l9Aek_lG.js} +3 -2
- package/dist/chunks/WebSearchResultsConversationWidget-l9Aek_lG.js.map +1 -0
- package/dist/chunks/agents-http-trace-mappers-LWNi-3a4.js +759 -0
- package/dist/chunks/agents-http-trace-mappers-LWNi-3a4.js.map +1 -0
- package/dist/chunks/{browser-request-interception-ydNOzeUL.js → browser-request-interception-D678IemW.js} +2 -2
- package/dist/chunks/{browser-request-interception-ydNOzeUL.js.map → browser-request-interception-D678IemW.js.map} +1 -1
- package/dist/chunks/{canvas-reducers-BInd3xNz.js → canvas-reducers-BYArW_Ji.js} +2 -2
- package/dist/chunks/{canvas-reducers-BInd3xNz.js.map → canvas-reducers-BYArW_Ji.js.map} +1 -1
- package/dist/chunks/{canvas-title-slot-context-BI1PLnPn.js → canvas-title-slot-context-BRGnFzYP.js} +3 -3
- package/dist/chunks/{canvas-title-slot-context-BI1PLnPn.js.map → canvas-title-slot-context-BRGnFzYP.js.map} +1 -1
- package/dist/chunks/{canvasBodies-CRVh8pCw.js → canvasBodies-BjXypuHf.js} +4 -4
- package/dist/chunks/{canvasBodies-CRVh8pCw.js.map → canvasBodies-BjXypuHf.js.map} +1 -1
- package/dist/chunks/{canvasStorage-Cr3omZeI.js → canvasStorage-DSspwRMg.js} +2 -2
- package/dist/chunks/{canvasStorage-Cr3omZeI.js.map → canvasStorage-DSspwRMg.js.map} +1 -1
- package/dist/chunks/content-from-unified-diff-CovnmG2Q.js +2927 -0
- package/dist/chunks/content-from-unified-diff-CovnmG2Q.js.map +1 -0
- package/dist/chunks/{contract-C18owGKs.js → contract-886XjdID.js} +2 -2
- package/dist/chunks/{contract-C18owGKs.js.map → contract-886XjdID.js.map} +1 -1
- package/dist/chunks/{conversation-CbWEHPbL.js → conversation-B7-evdj_.js} +4 -4
- package/dist/chunks/{conversation-CbWEHPbL.js.map → conversation-B7-evdj_.js.map} +1 -1
- package/dist/chunks/{icon-names-Di6c4zLo.js → icon-names-C5PeVvkJ.js} +32 -1
- package/dist/chunks/icon-names-C5PeVvkJ.js.map +1 -0
- package/dist/chunks/{link-navigation-DRHt6g7U.js → index-DZovGMpG.js} +65 -106
- package/dist/chunks/index-DZovGMpG.js.map +1 -0
- package/dist/chunks/link-navigation-a_sRfmsj.js +49 -0
- package/dist/chunks/link-navigation-a_sRfmsj.js.map +1 -0
- package/dist/chunks/{widget-name-resolver-Dq6Ejo7d.js → widget-name-resolver-DS3zH_5W.js} +5 -4
- package/dist/chunks/{widget-name-resolver-Dq6Ejo7d.js.map → widget-name-resolver-DS3zH_5W.js.map} +1 -1
- package/dist/chunks/{withPollingChangeSubscription-ClyOABgu.js → withPollingChangeSubscription-XvCpjGmd.js} +13 -2
- package/dist/chunks/{withPollingChangeSubscription-ClyOABgu.js.map → withPollingChangeSubscription-XvCpjGmd.js.map} +1 -1
- package/dist/client-testing.js +5 -5
- package/dist/client.js +50 -231
- package/dist/client.js.map +1 -1
- package/dist/contract.js +5 -5
- package/dist/files/i18n-keys.json +18091 -1287
- package/dist/files/widgets/DriveFilesConversationWidget/DriveFilesConversationWidget.md +3 -3
- package/dist/image-render.js +7 -7
- package/dist/index.js +62 -61
- package/dist/index.js.map +1 -1
- package/dist/kit.js +2 -2
- package/dist/preview.js +7 -7
- package/dist/provider.js +57 -56
- package/dist/provider.js.map +1 -1
- package/dist/renderer.js +15 -15
- package/dist/styles.css +2962 -15
- package/dist/types/admin/blocks/CodeBlock.d.ts +28 -0
- package/dist/types/admin/blocks/DetailModal.d.ts +34 -0
- package/dist/types/admin/blocks/Disclosure.d.ts +25 -0
- package/dist/types/admin/blocks/JsonTree.d.ts +18 -0
- package/dist/types/admin/blocks/LineDiffView.d.ts +18 -0
- package/dist/types/admin/blocks/ProportionBar.d.ts +43 -0
- package/dist/types/admin/blocks/TokenFigure.d.ts +14 -0
- package/dist/types/admin/blocks/json-tree.d.ts +40 -0
- package/dist/types/admin/blocks/line-diff.d.ts +46 -0
- package/dist/types/admin/blocks/proportion-bar.d.ts +34 -0
- package/dist/types/admin/blocks/series-fill-classes.d.ts +13 -0
- package/dist/types/admin/blocks/token-figure.d.ts +8 -0
- package/dist/types/admin/connections/AgentConnectionCard.d.ts +21 -0
- package/dist/types/admin/connections/AgentConnectionDriveRootSpaces.d.ts +25 -0
- package/dist/types/admin/connections/AgentConnectionDriveScopeDialog.d.ts +20 -0
- package/dist/types/admin/connections/AgentConnectionDriveSearchFilters.d.ts +34 -0
- package/dist/types/admin/connections/AgentConnectionDrivesDrawer.d.ts +39 -0
- package/dist/types/admin/connections/AgentConnectionLevelsDrawer.d.ts +27 -0
- package/dist/types/admin/connections/AgentConnectionSharingDialog.d.ts +12 -0
- package/dist/types/admin/connections/AgentConnectionsPanel.d.ts +97 -0
- package/dist/types/admin/connections/AgentConnectionsScreen.d.ts +18 -0
- package/dist/types/admin/connections/ConnectDialogs.d.ts +22 -0
- package/dist/types/admin/connections/agent-connection-drive-scope.d.ts +112 -0
- package/dist/types/admin/connections/agent-connection-drives.d.ts +107 -0
- package/dist/types/admin/connections/agent-connection-format.d.ts +82 -0
- package/dist/types/admin/connections/agent-connection-oauth.d.ts +122 -0
- package/dist/types/admin/connections/agent-connections-api.d.ts +420 -0
- package/dist/types/admin/connections/agent-connections-context.d.ts +60 -0
- package/dist/types/admin/connections/agent-connections-types.d.ts +447 -0
- package/dist/types/admin/connections/connection-logos.d.ts +53 -0
- package/dist/types/admin/connections/connection-parts.d.ts +84 -0
- package/dist/types/admin/connections/use-agent-connect.d.ts +25 -0
- package/dist/types/admin/context/CompactionThresholdBanner.d.ts +13 -0
- package/dist/types/admin/context/ContextCompositionPanel.d.ts +27 -0
- package/dist/types/admin/context/ContextSegmentList.d.ts +20 -0
- package/dist/types/admin/context/SentPayloadPanel.d.ts +37 -0
- package/dist/types/admin/context/agent-inspect-context-api.d.ts +53 -0
- package/dist/types/admin/context/agent-inspect-context-types.d.ts +98 -0
- package/dist/types/admin/context/context-composition-grouping.d.ts +78 -0
- package/dist/types/admin/context/context-segment-families.d.ts +18 -0
- package/dist/types/admin/context/context-segment-label-texts.d.ts +19 -0
- package/dist/types/admin/context/context-segment-labels.d.ts +18 -0
- package/dist/types/admin/control-panel/AgentControlPanelScreen.d.ts +71 -0
- package/dist/types/admin/control-panel/BudgetsTab.d.ts +13 -0
- package/dist/types/admin/control-panel/SettingsTab.d.ts +22 -0
- package/dist/types/admin/control-panel/SpacesTab.d.ts +24 -0
- package/dist/types/admin/control-panel/StatisticsTab.d.ts +26 -0
- package/dist/types/admin/control-panel/TimeSeriesChartCard.d.ts +37 -0
- package/dist/types/admin/control-panel/ToolResponseSamplesDrawer.d.ts +22 -0
- package/dist/types/admin/control-panel/agent-control-panel-api.d.ts +104 -0
- package/dist/types/admin/control-panel/agent-control-panel-types.d.ts +241 -0
- package/dist/types/admin/control-panel/budget-meters.d.ts +35 -0
- package/dist/types/admin/control-panel/control-panel-statistics.d.ts +49 -0
- package/dist/types/admin/control-panel/runtime-settings-form.d.ts +44 -0
- package/dist/types/admin/control-panel/time-series-chart.d.ts +54 -0
- package/dist/types/admin/conversations/AgentConversationDetailScreen.d.ts +128 -0
- package/dist/types/admin/conversations/AgentConversationsScreen.d.ts +60 -0
- package/dist/types/admin/conversations/ContextPanel.d.ts +9 -0
- package/dist/types/admin/conversations/ConversationActions.d.ts +32 -0
- package/dist/types/admin/conversations/ConversationTurns.d.ts +56 -0
- package/dist/types/admin/conversations/DebugSwitchBar.d.ts +23 -0
- package/dist/types/admin/conversations/DelegationPanel.d.ts +6 -0
- package/dist/types/admin/conversations/ModelContextDialog.d.ts +31 -0
- package/dist/types/admin/conversations/RequestCompositionRows.d.ts +14 -0
- package/dist/types/admin/conversations/RequestsPanel.d.ts +21 -0
- package/dist/types/admin/conversations/SandboxPanel.d.ts +42 -0
- package/dist/types/admin/conversations/StepDetailDialog.d.ts +19 -0
- package/dist/types/admin/conversations/agent-inspect-api.d.ts +259 -0
- package/dist/types/admin/conversations/agent-inspect-mappers.d.ts +23 -0
- package/dist/types/admin/conversations/agent-inspect-types.d.ts +517 -0
- package/dist/types/admin/conversations/conversation-list-export.d.ts +64 -0
- package/dist/types/admin/conversations/conversation-list-filters.d.ts +59 -0
- package/dist/types/admin/conversations/debug-switches.d.ts +27 -0
- package/dist/types/admin/conversations/delegation-swimlanes.d.ts +78 -0
- package/dist/types/admin/conversations/header-facts.d.ts +23 -0
- package/dist/types/admin/conversations/inspect-format.d.ts +44 -0
- package/dist/types/admin/conversations/inspect-parts.d.ts +42 -0
- package/dist/types/admin/conversations/inspect-scope.d.ts +92 -0
- package/dist/types/admin/conversations/model-call-rows.d.ts +78 -0
- package/dist/types/admin/conversations/step-descriptions.d.ts +43 -0
- package/dist/types/admin/conversations/touched-files-tree.d.ts +47 -0
- package/dist/types/admin/conversations/turn-paging.d.ts +56 -0
- package/dist/types/admin/conversations/turn-segments.d.ts +36 -0
- package/dist/types/admin/conversations/turn-timeline.d.ts +22 -0
- package/dist/types/admin/conversations/use-query-loader.d.ts +8 -0
- package/dist/types/admin/period/AdminPeriodControl.d.ts +15 -0
- package/dist/types/admin/period/admin-period.d.ts +51 -0
- package/dist/types/admin/quality/AgentQualityEvalRunScreen.d.ts +30 -0
- package/dist/types/admin/quality/AgentQualityScreen.d.ts +38 -0
- package/dist/types/admin/quality/SaveAsEvalCaseDialog.d.ts +27 -0
- package/dist/types/admin/quality/agent-quality-api.d.ts +86 -0
- package/dist/types/admin/quality/agent-quality-format.d.ts +52 -0
- package/dist/types/admin/quality/agent-quality-types.d.ts +161 -0
- package/dist/types/admin/schedules/AgentSchedulesPanel.d.ts +43 -0
- package/dist/types/admin/schedules/agent-schedules-api.d.ts +116 -0
- package/dist/types/admin/schedules/agent-schedules-format.d.ts +25 -0
- package/dist/types/admin/schedules/agent-schedules-types.d.ts +113 -0
- package/dist/types/admin/shared/AdminHrefLink.d.ts +13 -0
- package/dist/types/admin/skills/AgentSkillCatalogScreen.d.ts +51 -0
- package/dist/types/admin/skills/SharedBlocksPanel.d.ts +14 -0
- package/dist/types/admin/skills/SkillPurposesPanel.d.ts +16 -0
- package/dist/types/admin/skills/SkillTreeRowView.d.ts +31 -0
- package/dist/types/admin/skills/ToolSchemaDrawer.d.ts +21 -0
- package/dist/types/admin/skills/agent-skill-catalog-api.d.ts +89 -0
- package/dist/types/admin/skills/agent-skill-catalog-types.d.ts +223 -0
- package/dist/types/admin/skills/skill-catalog-colors.d.ts +10 -0
- package/dist/types/admin/skills/skill-catalog-tree.d.ts +159 -0
- package/dist/types/admin/skills/skill-purpose-texts.d.ts +11 -0
- package/dist/types/admin/wire/admin-wire.d.ts +21 -0
- package/dist/types/chat/controller/AgentChatController.d.ts +22 -0
- package/dist/types/chat/controller/turn-initiators.d.ts +21 -0
- package/dist/types/chat/trace/BackgroundTasksList.d.ts +35 -0
- package/dist/types/chat/trace/ChangeSetCard.d.ts +34 -0
- package/dist/types/chat/trace/ChangedFilesPane.d.ts +33 -0
- package/dist/types/chat/trace/ChangedRecordsList.d.ts +34 -0
- package/dist/types/chat/trace/ConsentRequestCard.d.ts +23 -0
- package/dist/types/chat/trace/ContextRing.d.ts +19 -0
- package/dist/types/chat/trace/ConversationChildTrace.d.ts +18 -0
- package/dist/types/chat/trace/ConversationTurnTrace.d.ts +48 -0
- package/dist/types/chat/trace/EntityChip.d.ts +23 -0
- package/dist/types/chat/trace/FileChangesSummary.d.ts +14 -0
- package/dist/types/chat/trace/FileEditBlock.d.ts +42 -0
- package/dist/types/chat/trace/LoadedSkillsDisclosure.d.ts +16 -0
- package/dist/types/chat/trace/QueuedMessageChip.d.ts +17 -0
- package/dist/types/chat/trace/RunStatusLine.d.ts +27 -0
- package/dist/types/chat/trace/StepKindDetails.d.ts +59 -0
- package/dist/types/chat/trace/SubAgentStepGroup.d.ts +53 -0
- package/dist/types/chat/trace/TaskPlanPane.d.ts +31 -0
- package/dist/types/chat/trace/TaskPlanRow.d.ts +28 -0
- package/dist/types/chat/trace/TerminalBlock.d.ts +16 -0
- package/dist/types/chat/trace/ThinkingBlock.d.ts +19 -0
- package/dist/types/chat/trace/ToolStepDetail.d.ts +49 -0
- package/dist/types/chat/trace/ToolStepGroup.d.ts +58 -0
- package/dist/types/chat/trace/ToolStepRow.d.ts +52 -0
- package/dist/types/chat/trace/TraceViewModeSwitch.d.ts +14 -0
- package/dist/types/chat/trace/TurnMetaLine.d.ts +27 -0
- package/dist/types/chat/trace/content-from-unified-diff.d.ts +25 -0
- package/dist/types/chat/trace/conversation-trace-loader.d.ts +133 -0
- package/dist/types/chat/trace/index.d.ts +34 -0
- package/dist/types/chat/trace/parse-unified-diff.d.ts +51 -0
- package/dist/types/chat/trace/task-plan-counts.d.ts +41 -0
- package/dist/types/chat/trace/trace-collect.d.ts +91 -0
- package/dist/types/chat/trace/trace-counts.d.ts +21 -0
- package/dist/types/chat/trace/trace-format.d.ts +73 -0
- package/dist/types/chat/trace/trace-labels.d.ts +60 -0
- package/dist/types/chat/trace/trace-parts.d.ts +63 -0
- package/dist/types/chat/trace/trace-step-focus.d.ts +12 -0
- package/dist/types/chat/trace/trace-types.d.ts +370 -0
- package/dist/types/chat/trace/use-conversation-trace.d.ts +47 -0
- package/dist/types/client/AgentsConversationClient.d.ts +20 -0
- package/dist/types/client/http/agents-http-trace-mappers.d.ts +31 -0
- package/dist/types/client/http/agents-http-trace-wire.d.ts +433 -0
- package/dist/types/contract/conversation-trace.d.ts +594 -0
- package/dist/types/entries/admin.d.ts +85 -0
- package/dist/types/entries/chat.d.ts +3 -1
- package/dist/types/entries/client.d.ts +2 -0
- package/dist/types/entries/contract.d.ts +1 -0
- package/dist/types/provider/components/icon-names.d.ts +4 -2
- package/dist/types/provider/components/types.d.ts +3 -1
- package/dist/types/widgets/DriveFilesConversationWidget/shared/drive-files.d.ts +1 -1
- package/dist/voice.js +3 -3
- package/dist/widgets.js +6 -6
- package/package.json +7 -3
- package/public-api.json +1036 -3
- package/dist/chunks/WebSearchResultsConversationWidget-dEq19U7k.js.map +0 -1
- package/dist/chunks/icon-names-Di6c4zLo.js.map +0 -1
- package/dist/chunks/link-navigation-DRHt6g7U.js.map +0 -1
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
import type { AdminWireChangeHistory, AdminWireSet } from "../wire/admin-wire";
|
|
2
|
+
/** A level of one capability (`AgentConnectionPermission::LEVEL_*`), lowest first. */
|
|
3
|
+
export type AgentConnectionLevel = "OFF" | "READ" | "DRAFT" | "WRITE_WITH_APPROVAL" | "DELETE_WITH_APPROVAL" | "SEND_WITH_APPROVAL" | "SEND_BY_RULE";
|
|
4
|
+
/** A capability of a connection (`AgentConnectionPermission::CAPABILITY_*`). */
|
|
5
|
+
export type AgentConnectionCapability = "MAIL" | "CALENDAR" | "CONTACTS" | "FILES" | "CHAT" | "MESSAGING";
|
|
6
|
+
/** Who sees a connection (`AgentConnectionsService::VISIBILITY_*`). */
|
|
7
|
+
export type AgentConnectionVisibility = "OWNER_ONLY" | "AGENT_SPACE";
|
|
8
|
+
/** One capability with a level (`AgentConnectionLevelRequest`). */
|
|
9
|
+
export interface AgentConnectionCapabilityLevel {
|
|
10
|
+
capability: AgentConnectionCapability;
|
|
11
|
+
level: AgentConnectionLevel;
|
|
12
|
+
}
|
|
13
|
+
/** A capability and level as the wire carries them (`AgentConnectionLevelRequest`): plain strings. */
|
|
14
|
+
export interface AgentConnectionLevelRequest {
|
|
15
|
+
capability?: string;
|
|
16
|
+
level?: string;
|
|
17
|
+
}
|
|
18
|
+
/** One boundary line of a connection or release (`AgentConnectionScopeBoundary`). */
|
|
19
|
+
export interface AgentConnectionScopeBoundary {
|
|
20
|
+
kind?: "FOLDER" | "LABEL" | "CALENDAR" | "CONTACT_LABEL" | "CONTACT_SOURCE" | (string & {});
|
|
21
|
+
value?: string;
|
|
22
|
+
}
|
|
23
|
+
/** One connection as the screens see it (`AgentConnectionSummaryDto`). */
|
|
24
|
+
export interface AgentConnectionSummary {
|
|
25
|
+
connectionId: number;
|
|
26
|
+
name?: string | null;
|
|
27
|
+
/** `GOOGLE`, `IMAP`, `SLACK`, … (the adapter's provider name). */
|
|
28
|
+
provider?: string | null;
|
|
29
|
+
externalAddress?: string | null;
|
|
30
|
+
/** `ACCOUNT_GRANTED` (an account's own connection) or `AGENT_OWNED` (a system connection of the agent). */
|
|
31
|
+
ownership?: string | null;
|
|
32
|
+
ownerAccountId?: number | string | null;
|
|
33
|
+
connectedByAccountId?: number | string | null;
|
|
34
|
+
/** `OWNER_ONLY` or `AGENT_SPACE`. */
|
|
35
|
+
visibility?: string | null;
|
|
36
|
+
/** `IN_PROGRESS`, `CONNECTED`, `EXPIRED`, `PAUSED`, `REVOKED`, `ERROR`. */
|
|
37
|
+
status?: string | null;
|
|
38
|
+
/** Per capability the level the asking account may use: `"MAIL=DRAFT (draft); CALENDAR=READ (read, free/busy)"`. */
|
|
39
|
+
levels?: string | null;
|
|
40
|
+
scopeBoundaries?: AdminWireSet<AgentConnectionScopeBoundary> | null;
|
|
41
|
+
isDefault?: boolean;
|
|
42
|
+
lastErrorText?: string | null;
|
|
43
|
+
/** Offsetless UTC (`Y-m-d H:i:s`). */
|
|
44
|
+
lastUsedAt?: string | null;
|
|
45
|
+
connectedAt?: string | null;
|
|
46
|
+
}
|
|
47
|
+
/** `GET /connections`. */
|
|
48
|
+
export interface AgentConnectionsResponse {
|
|
49
|
+
connections: AgentConnectionSummary[];
|
|
50
|
+
/** The providers that can be connected here (switched on and configured). */
|
|
51
|
+
connectableProviders: string[];
|
|
52
|
+
/** Whether the account may manage the agent's system connections. */
|
|
53
|
+
mayManageSystemConnections: boolean;
|
|
54
|
+
/** The spaces the account may share a connection with. */
|
|
55
|
+
shareableAgentSpaceIds: number[];
|
|
56
|
+
}
|
|
57
|
+
export interface AgentConnectionPermission {
|
|
58
|
+
id?: number | string | null;
|
|
59
|
+
agentConnectionId?: number | null;
|
|
60
|
+
capability?: string | null;
|
|
61
|
+
level?: string | null;
|
|
62
|
+
grantedByAccountId?: number | null;
|
|
63
|
+
changeHistory?: AdminWireChangeHistory | null;
|
|
64
|
+
}
|
|
65
|
+
export interface AgentConnectionRelease {
|
|
66
|
+
id?: number | string | null;
|
|
67
|
+
agentConnectionId?: number | null;
|
|
68
|
+
targetType?: string | null;
|
|
69
|
+
agentSpaceId?: number | null;
|
|
70
|
+
capabilityCeilings?: AdminWireSet<AgentConnectionLevelRequest> | null;
|
|
71
|
+
scopeBoundaries?: AdminWireSet<AgentConnectionScopeBoundary> | null;
|
|
72
|
+
grantedByAccountId?: number | null;
|
|
73
|
+
revokedAt?: string | null;
|
|
74
|
+
revokedByAccountId?: number | null;
|
|
75
|
+
changeHistory?: AdminWireChangeHistory | null;
|
|
76
|
+
}
|
|
77
|
+
export interface AgentConnectionAddress {
|
|
78
|
+
id?: number | string | null;
|
|
79
|
+
agentConnectionId?: number | null;
|
|
80
|
+
externalAddress?: string | null;
|
|
81
|
+
displayName?: string | null;
|
|
82
|
+
role?: string | null;
|
|
83
|
+
audience?: string | null;
|
|
84
|
+
behaviour?: string | null;
|
|
85
|
+
postingUse?: string | null;
|
|
86
|
+
requiredAccountRight?: string | null;
|
|
87
|
+
purposeName?: string | null;
|
|
88
|
+
}
|
|
89
|
+
export interface AgentConnectionAccountLink {
|
|
90
|
+
id?: number | string | null;
|
|
91
|
+
agentConnectionId?: number | null;
|
|
92
|
+
externalUserId?: string | null;
|
|
93
|
+
externalDisplayName?: string | null;
|
|
94
|
+
accountId?: number | null;
|
|
95
|
+
verifiedAt?: string | null;
|
|
96
|
+
verificationMethod?: string | null;
|
|
97
|
+
}
|
|
98
|
+
export interface AgentConnectionAction {
|
|
99
|
+
id?: number | string | null;
|
|
100
|
+
agentConnectionId?: number | null;
|
|
101
|
+
capability?: string | null;
|
|
102
|
+
operation?: string | null;
|
|
103
|
+
toolName?: string | null;
|
|
104
|
+
aiConversationId?: number | null;
|
|
105
|
+
actingAccountId?: number | null;
|
|
106
|
+
target?: string | null;
|
|
107
|
+
outcome?: string | null;
|
|
108
|
+
outcomeText?: string | null;
|
|
109
|
+
agentConnectionApprovalRequestId?: number | null;
|
|
110
|
+
providerFeeUsd?: number | null;
|
|
111
|
+
changeHistory?: AdminWireChangeHistory | null;
|
|
112
|
+
}
|
|
113
|
+
/** `GET /connections/{connectionId}` and the answer of every write on one connection. */
|
|
114
|
+
export interface AgentConnectionDetailResponse {
|
|
115
|
+
connection: AgentConnectionSummary;
|
|
116
|
+
permissions?: AdminWireSet<AgentConnectionPermission> | null;
|
|
117
|
+
releases?: AdminWireSet<AgentConnectionRelease> | null;
|
|
118
|
+
addresses?: AdminWireSet<AgentConnectionAddress> | null;
|
|
119
|
+
accountLinks?: AdminWireSet<AgentConnectionAccountLink> | null;
|
|
120
|
+
actions?: AdminWireSet<AgentConnectionAction> | null;
|
|
121
|
+
/** The scopes the provider granted. */
|
|
122
|
+
grantedScopes?: string[];
|
|
123
|
+
/** Per capability the highest level the provider's grant covers; a higher level needs a consent first. */
|
|
124
|
+
grantedLevels?: AgentConnectionLevelRequest[];
|
|
125
|
+
}
|
|
126
|
+
export interface AgentConnectionIdArg {
|
|
127
|
+
connectionId: number;
|
|
128
|
+
}
|
|
129
|
+
/** `POST /connections/{connectionId}/level`. */
|
|
130
|
+
export interface AgentConnectionLevelArg extends AgentConnectionIdArg {
|
|
131
|
+
capability: string;
|
|
132
|
+
level: string;
|
|
133
|
+
}
|
|
134
|
+
/** `POST /connections/{connectionId}/settings`: a field that is not sent stays as it is. */
|
|
135
|
+
export interface AgentConnectionSettingsArg extends AgentConnectionIdArg {
|
|
136
|
+
displayName?: string | null;
|
|
137
|
+
visibility?: AgentConnectionVisibility | null;
|
|
138
|
+
targetAgentSpaceId?: number | null;
|
|
139
|
+
scopeBoundaries?: {
|
|
140
|
+
elements: AgentConnectionScopeBoundary[];
|
|
141
|
+
} | null;
|
|
142
|
+
isDefaultForItsCapabilities?: boolean | null;
|
|
143
|
+
paused?: boolean | null;
|
|
144
|
+
}
|
|
145
|
+
/** `POST /connections/{connectionId}/release`. */
|
|
146
|
+
export interface AgentConnectionReleaseArg extends AgentConnectionIdArg {
|
|
147
|
+
agentSpaceId: number;
|
|
148
|
+
/** `null` / left out = every capability, at most READ. */
|
|
149
|
+
capabilityCeilings?: {
|
|
150
|
+
elements: AgentConnectionLevelRequest[];
|
|
151
|
+
} | null;
|
|
152
|
+
scopeBoundaries?: {
|
|
153
|
+
elements: AgentConnectionScopeBoundary[];
|
|
154
|
+
} | null;
|
|
155
|
+
}
|
|
156
|
+
/** `POST /oauth/{provider}/start`: a connect (name, capabilities, visibility) or, with `connectionId`, more scopes for higher levels. */
|
|
157
|
+
export interface AgentConnectionOAuthStartArg {
|
|
158
|
+
/** The provider in lower case (`google`). */
|
|
159
|
+
provider: string;
|
|
160
|
+
capabilities?: string[];
|
|
161
|
+
displayName?: string | null;
|
|
162
|
+
loginHint?: string | null;
|
|
163
|
+
systemConnection?: boolean;
|
|
164
|
+
visibility?: AgentConnectionVisibility | null;
|
|
165
|
+
targetAgentSpaceId?: number | null;
|
|
166
|
+
connectionId?: number | null;
|
|
167
|
+
requestedLevels?: AgentConnectionLevelRequest[];
|
|
168
|
+
}
|
|
169
|
+
export interface AgentConnectionOAuthStartResponse {
|
|
170
|
+
connectionId: number;
|
|
171
|
+
/** The consent screen the browser opens. */
|
|
172
|
+
authorizationUrl: string;
|
|
173
|
+
/** The redirect URI that must be registered at the provider. */
|
|
174
|
+
redirectUri: string;
|
|
175
|
+
}
|
|
176
|
+
/** `POST /connections/imap`. */
|
|
177
|
+
export interface AgentConnectionImapArg {
|
|
178
|
+
displayName?: string | null;
|
|
179
|
+
fromAddress: string;
|
|
180
|
+
username: string;
|
|
181
|
+
password: string;
|
|
182
|
+
imapHost: string;
|
|
183
|
+
imapPort?: number;
|
|
184
|
+
smtpHost: string;
|
|
185
|
+
smtpPort?: number;
|
|
186
|
+
draftsFolder?: string | null;
|
|
187
|
+
systemConnection?: boolean;
|
|
188
|
+
}
|
|
189
|
+
/** `POST /system/slack`. */
|
|
190
|
+
export interface AgentConnectionSlackArg {
|
|
191
|
+
displayName?: string | null;
|
|
192
|
+
}
|
|
193
|
+
/** `POST /connections/{connectionId}/addresses`. */
|
|
194
|
+
export interface AgentConnectionAddressArg extends AgentConnectionIdArg {
|
|
195
|
+
externalAddress: string;
|
|
196
|
+
displayName?: string | null;
|
|
197
|
+
behaviour?: string;
|
|
198
|
+
postingUse?: string;
|
|
199
|
+
audience?: string;
|
|
200
|
+
requiredAccountRight?: string | null;
|
|
201
|
+
purposeName?: string | null;
|
|
202
|
+
}
|
|
203
|
+
/** `POST /connections/{connectionId}/accountLinks`. */
|
|
204
|
+
export interface AgentConnectionAccountLinkArg extends AgentConnectionIdArg {
|
|
205
|
+
externalUserId: string;
|
|
206
|
+
accountId: number;
|
|
207
|
+
}
|
|
208
|
+
/** One answer a person may give to an approval request (`AgentConnectionApprovalOption`). */
|
|
209
|
+
export interface AgentConnectionApprovalOption {
|
|
210
|
+
/** `AgentConnectionApprovalRequest::OPTION_*`; the `option` of the answer route. */
|
|
211
|
+
key?: string;
|
|
212
|
+
label?: string;
|
|
213
|
+
}
|
|
214
|
+
export interface AgentConnectionApprovalRequest {
|
|
215
|
+
id?: number | string | null;
|
|
216
|
+
agentConnectionId?: number | null;
|
|
217
|
+
accountId?: number | null;
|
|
218
|
+
aiConversationId?: number | null;
|
|
219
|
+
toolName?: string | null;
|
|
220
|
+
capability?: string | null;
|
|
221
|
+
operation?: string | null;
|
|
222
|
+
summary?: string | null;
|
|
223
|
+
content?: string | null;
|
|
224
|
+
options?: AdminWireSet<AgentConnectionApprovalOption> | null;
|
|
225
|
+
status?: string | null;
|
|
226
|
+
answeredByAccountId?: number | null;
|
|
227
|
+
answeredVia?: string | null;
|
|
228
|
+
answeredAt?: string | null;
|
|
229
|
+
expiresAt?: string | null;
|
|
230
|
+
changeHistory?: AdminWireChangeHistory | null;
|
|
231
|
+
}
|
|
232
|
+
/** `GET /approvals?includeAnswered`. */
|
|
233
|
+
export interface AgentConnectionApprovalsArg {
|
|
234
|
+
includeAnswered?: boolean;
|
|
235
|
+
}
|
|
236
|
+
export interface AgentConnectionApprovalsResponse {
|
|
237
|
+
approvalRequests?: AdminWireSet<AgentConnectionApprovalRequest> | null;
|
|
238
|
+
}
|
|
239
|
+
/** `POST /approvals/{approvalRequestId}/answer`. */
|
|
240
|
+
export interface AgentConnectionApprovalAnswerArg {
|
|
241
|
+
approvalRequestId: number;
|
|
242
|
+
option: string;
|
|
243
|
+
}
|
|
244
|
+
/** How a root came to a drive connection (`AgentConnectionDriveRoot::WAY_*`). */
|
|
245
|
+
export type AgentConnectionDriveRootWay = "OWN_IDENTITY" | "RELEASED_TO_AGENT" | "PERSON_ROOT" | "PICKER";
|
|
246
|
+
/**
|
|
247
|
+
* `AgentConnectionDriveRoot::STATUS_*`. `REVOKED`: taken away by a person (`revokedByAccountId`, `revokedAt`); `LOST`:
|
|
248
|
+
* gone at the provider (`revokedAt` is when it was noticed, no account). Only `ACTIVE` roots are used by the agent.
|
|
249
|
+
*/
|
|
250
|
+
export type AgentConnectionDriveRootStatus = "ACTIVE" | "UNASSIGNED" | "REVOKED" | "LOST";
|
|
251
|
+
/**
|
|
252
|
+
* A root that is a rule, not one item (no `itemId`): `ALL_SHARED_DRIVES` = every shared drive the account sees, new ones
|
|
253
|
+
* automatically; `WHOLE_ACCOUNT` = the account's own drive and every shared drive, only while the connection is visible
|
|
254
|
+
* to its owner alone. Offered only where the drive answers list it in `supportedRootKinds`.
|
|
255
|
+
*/
|
|
256
|
+
export type AgentConnectionDriveRootRuleKind = "ALL_SHARED_DRIVES" | "WHOLE_ACCOUNT";
|
|
257
|
+
/**
|
|
258
|
+
* What a root is at the provider (`AgentConnectionDriveRoot::KIND_*`), or a rule; `UNKNOWN` for a row stored before the
|
|
259
|
+
* kind was kept.
|
|
260
|
+
*/
|
|
261
|
+
export type AgentConnectionDriveRootKind = "SHARED_DRIVE" | "FOLDER" | "FILE" | "UNKNOWN" | AgentConnectionDriveRootRuleKind;
|
|
262
|
+
/** One root of a drive connection (`AgentConnectionDriveRoot`): a folder, shared drive or file the agent may use. */
|
|
263
|
+
export interface AgentConnectionDriveRoot {
|
|
264
|
+
id?: number | string | null;
|
|
265
|
+
agentConnectionId?: number | null;
|
|
266
|
+
/** The provider's folder, shared drive or file id. */
|
|
267
|
+
itemId?: string | null;
|
|
268
|
+
itemName?: string | null;
|
|
269
|
+
rootKind?: AgentConnectionDriveRootKind | (string & {}) | null;
|
|
270
|
+
releaseWay?: AgentConnectionDriveRootWay | (string & {}) | null;
|
|
271
|
+
status?: AgentConnectionDriveRootStatus | (string & {}) | null;
|
|
272
|
+
/** The provider's role of the agent's identity on the item (reader, commenter, writer, fileOrganizer). */
|
|
273
|
+
providerRole?: string | null;
|
|
274
|
+
grantedByAccountId?: number | null;
|
|
275
|
+
/** Release to the agent: the releasing person's own connection whose token created the share. */
|
|
276
|
+
sourceAgentConnectionId?: number | null;
|
|
277
|
+
/** When it was revoked by a person, or noticed as lost at the provider. */
|
|
278
|
+
revokedAt?: string | null;
|
|
279
|
+
/** The person who revoked it; none for a root lost at the provider. */
|
|
280
|
+
revokedByAccountId?: number | null;
|
|
281
|
+
/**
|
|
282
|
+
* False or absent: every agent space the connection is shared with uses the root. True: only the spaces of its active
|
|
283
|
+
* releases (`AgentConnectionDriveRootRelease`), none = no space; the owner's own use is not affected.
|
|
284
|
+
*/
|
|
285
|
+
restrictedToAgentSpaces?: boolean | null;
|
|
286
|
+
changeHistory?: AdminWireChangeHistory | null;
|
|
287
|
+
}
|
|
288
|
+
/** What an active rule root stands for now (`AgentConnectionDriveRootRuleResolution`). */
|
|
289
|
+
export interface AgentConnectionDriveRootRuleResolution {
|
|
290
|
+
agentConnectionDriveRootId: number;
|
|
291
|
+
rootKind?: AgentConnectionDriveRootRuleKind | (string & {}) | null;
|
|
292
|
+
/** How many shared drives the rule covers now; `null` when the provider could not be asked. */
|
|
293
|
+
resolvedDriveCount?: number | null;
|
|
294
|
+
/** The shared drives it covers, for the whole account the account's own drive first. */
|
|
295
|
+
resolvedItems?: AgentConnectionDriveItemsPage | null;
|
|
296
|
+
}
|
|
297
|
+
/** One release of a root to one agent space (`AgentConnectionDriveRootRelease`); `revokedAt` empty = active. */
|
|
298
|
+
export interface AgentConnectionDriveRootRelease {
|
|
299
|
+
id?: number | string | null;
|
|
300
|
+
agentConnectionDriveRootId?: number | null;
|
|
301
|
+
agentConnectionId?: number | null;
|
|
302
|
+
agentSpaceId?: number | null;
|
|
303
|
+
grantedByAccountId?: number | null;
|
|
304
|
+
revokedAt?: string | null;
|
|
305
|
+
revokedByAccountId?: number | null;
|
|
306
|
+
/** Its creation is when the root was released. */
|
|
307
|
+
changeHistory?: AdminWireChangeHistory | null;
|
|
308
|
+
}
|
|
309
|
+
/** The host's label of an agent space or an account named in a drive answer (`AgentInspectLabel`). */
|
|
310
|
+
export interface AgentConnectionDriveLabel {
|
|
311
|
+
id: number;
|
|
312
|
+
label?: string | null;
|
|
313
|
+
description?: string | null;
|
|
314
|
+
}
|
|
315
|
+
/** One item of a connected drive (`AgentConnectionDriveItem`). */
|
|
316
|
+
export interface AgentConnectionDriveItem {
|
|
317
|
+
itemId: string;
|
|
318
|
+
name?: string;
|
|
319
|
+
mimeType?: string;
|
|
320
|
+
/** `FOLDER`, `FILE`, `GOOGLE_DOC`, `GOOGLE_SHEET`, `GOOGLE_SLIDES`, `GOOGLE_OTHER`. */
|
|
321
|
+
kind?: string;
|
|
322
|
+
parentIds?: string[];
|
|
323
|
+
sizeBytes?: number | null;
|
|
324
|
+
modifiedAt?: string | null;
|
|
325
|
+
webViewLink?: string | null;
|
|
326
|
+
/** The shared drive the item lives in; for a shared drive itself its own id. */
|
|
327
|
+
driveId?: string | null;
|
|
328
|
+
isTrashed?: boolean;
|
|
329
|
+
canEdit?: boolean;
|
|
330
|
+
canComment?: boolean;
|
|
331
|
+
canShare?: boolean;
|
|
332
|
+
canTrash?: boolean;
|
|
333
|
+
canManageMembers?: boolean;
|
|
334
|
+
}
|
|
335
|
+
/** A page of drive items; `nextPageToken` continues it. */
|
|
336
|
+
export interface AgentConnectionDriveItemsPage {
|
|
337
|
+
elements?: AgentConnectionDriveItem[] | null;
|
|
338
|
+
nextPageToken?: string | null;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* The answer of every drive route: the roots (the ended ones too unless `includeRevoked` was false), their releases to
|
|
342
|
+
* agent spaces, the spaces the viewer may release to and the connection is shared with, the host's labels, the items
|
|
343
|
+
* of a folder or of a search when asked, what happened.
|
|
344
|
+
*/
|
|
345
|
+
export interface AgentConnectionDriveRootsResponse {
|
|
346
|
+
driveRoots?: AdminWireSet<AgentConnectionDriveRoot> | null;
|
|
347
|
+
/** The releases of the roots to agent spaces, active and taken back (of one root on the releases route). */
|
|
348
|
+
driveRootReleases?: AdminWireSet<AgentConnectionDriveRootRelease> | null;
|
|
349
|
+
/** The agent spaces the viewer may release a root of this connection to; empty = none. */
|
|
350
|
+
releasableAgentSpaceIds?: number[] | null;
|
|
351
|
+
/** The agent spaces the connection itself is shared with (what a root follows while it is not restricted). */
|
|
352
|
+
connectionAgentSpaceIds?: number[] | null;
|
|
353
|
+
/** `AgentInspectLabels`, an object set; read through `wireElementsOf`. */
|
|
354
|
+
agentSpaceLabels?: AdminWireSet<AgentConnectionDriveLabel> | null;
|
|
355
|
+
/** `AgentInspectLabels`, an object set; read through `wireElementsOf`. */
|
|
356
|
+
accountLabels?: AdminWireSet<AgentConnectionDriveLabel> | null;
|
|
357
|
+
driveItems?: AgentConnectionDriveItemsPage | null;
|
|
358
|
+
/** Per active rule root what it covers now. */
|
|
359
|
+
driveRootRuleResolutions?: AdminWireSet<AgentConnectionDriveRootRuleResolution> | null;
|
|
360
|
+
/** The rule kinds a root of this connection may be added as; absent or empty = single folders and shared drives only. */
|
|
361
|
+
supportedRootKinds?: string[] | null;
|
|
362
|
+
/** The filters the item search of this connection applies (`AgentConnectionDriveSearchFilterName`); a filter not listed is refused. */
|
|
363
|
+
supportedSearchFilters?: string[] | null;
|
|
364
|
+
note?: string | null;
|
|
365
|
+
}
|
|
366
|
+
/** `GET /connections/{connectionId}/driveRoots?includeRevoked`. */
|
|
367
|
+
export interface AgentConnectionDriveRootsArg extends AgentConnectionIdArg {
|
|
368
|
+
/** False: without the ended roots and the releases taken back. Default true. */
|
|
369
|
+
includeRevoked?: boolean;
|
|
370
|
+
}
|
|
371
|
+
/** `GET /connections/{connectionId}/driveItems/search?query&pageToken`: folders and shared drives by name. */
|
|
372
|
+
export interface AgentConnectionDriveItemsSearchArg extends AgentConnectionIdArg {
|
|
373
|
+
/** 2 to 200 characters. */
|
|
374
|
+
query: string;
|
|
375
|
+
/** The `nextPageToken` of the previous page of the same query. */
|
|
376
|
+
pageToken?: string | null;
|
|
377
|
+
/** Changed on or after this day (`Y-m-d`); sent only where `supportedSearchFilters` lists it, like every filter. */
|
|
378
|
+
modifiedFrom?: string | null;
|
|
379
|
+
/** Changed on or before this day (`Y-m-d`, the whole day). */
|
|
380
|
+
modifiedTo?: string | null;
|
|
381
|
+
/** Created on or after this day (`Y-m-d`). */
|
|
382
|
+
createdFrom?: string | null;
|
|
383
|
+
/** Created on or before this day (`Y-m-d`, the whole day). */
|
|
384
|
+
createdTo?: string | null;
|
|
385
|
+
/** Of one of these kinds (`AgentConnectionDriveSearchType`). */
|
|
386
|
+
types?: readonly string[] | null;
|
|
387
|
+
minSizeBytes?: number | null;
|
|
388
|
+
maxSizeBytes?: number | null;
|
|
389
|
+
/** Below this folder or shared drive, at any depth. */
|
|
390
|
+
inFolderId?: string | null;
|
|
391
|
+
}
|
|
392
|
+
/** `GET /driveRoots/{driveRootId}/releases?includeRevoked`. */
|
|
393
|
+
export interface AgentConnectionDriveRootReleasesArg {
|
|
394
|
+
driveRootId: number;
|
|
395
|
+
includeRevoked?: boolean;
|
|
396
|
+
}
|
|
397
|
+
/** `POST /driveRoots/{driveRootId}/releases`. */
|
|
398
|
+
export interface AgentConnectionDriveRootReleaseArg {
|
|
399
|
+
driveRootId: number;
|
|
400
|
+
/** One of `releasableAgentSpaceIds`. */
|
|
401
|
+
agentSpaceId: number;
|
|
402
|
+
}
|
|
403
|
+
/** `POST /driveRootReleases/{driveRootReleaseId}/revoke`. */
|
|
404
|
+
export interface AgentConnectionDriveRootReleaseRevokeArg {
|
|
405
|
+
driveRootReleaseId: number;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* What the top of a drive lists for the picker (`section` of `driveItems`): the account's own drive, the shared drives
|
|
409
|
+
* it is a member of (one item per drive), or the folders others shared with it.
|
|
410
|
+
*/
|
|
411
|
+
export type AgentConnectionDriveItemsSection = "MY_DRIVE" | "SHARED_DRIVES" | "SHARED_WITH_ME";
|
|
412
|
+
/** `GET /connections/{connectionId}/driveItems?section&folderId&pageToken`. */
|
|
413
|
+
export interface AgentConnectionDriveItemsArg extends AgentConnectionIdArg {
|
|
414
|
+
/** The top to list while no folder is named; left out = the server's default, the account's own drive. */
|
|
415
|
+
section?: AgentConnectionDriveItemsSection | null;
|
|
416
|
+
/** The folder or shared drive whose children are listed; with it the section is not sent (the server ignores it). */
|
|
417
|
+
folderId?: string | null;
|
|
418
|
+
pageToken?: string | null;
|
|
419
|
+
}
|
|
420
|
+
/** `POST /connections/{connectionId}/driveRoots`: one item (`itemId`), or a rule (`rootKind`, no item). */
|
|
421
|
+
export interface AgentConnectionDriveRootAddArg extends AgentConnectionIdArg {
|
|
422
|
+
/** The folder or shared drive; left out for a rule. */
|
|
423
|
+
itemId?: string;
|
|
424
|
+
/** Left out = one item (`FOLDER`); a rule only where `supportedRootKinds` lists it. */
|
|
425
|
+
rootKind?: AgentConnectionDriveRootRuleKind;
|
|
426
|
+
/** `PERSON_ROOT` (default), `PICKER`, or `OWN_IDENTITY` (the system right). */
|
|
427
|
+
releaseWay?: "PERSON_ROOT" | "PICKER" | "OWN_IDENTITY";
|
|
428
|
+
}
|
|
429
|
+
/** `POST /connections/{connectionId}/driveRoots/remove` and `/assign`: one item, or (remove only) the rule root of a kind. */
|
|
430
|
+
export interface AgentConnectionDriveRootItemArg extends AgentConnectionIdArg {
|
|
431
|
+
itemId?: string;
|
|
432
|
+
/** Remove only: the active rule root of this kind instead of an item. */
|
|
433
|
+
rootKind?: AgentConnectionDriveRootRuleKind;
|
|
434
|
+
}
|
|
435
|
+
/** The roles a release to the agent may grant (`AgentConnectionDriveReleasesService::RELEASE_ROLES`). */
|
|
436
|
+
export type AgentConnectionDriveReleaseRole = "reader" | "commenter" | "writer" | "fileOrganizer";
|
|
437
|
+
/** `POST /connections/{connectionId}/releaseToAgent`: `connectionId` is the releasing person's own connection. */
|
|
438
|
+
export interface AgentConnectionReleaseToAgentArg extends AgentConnectionIdArg {
|
|
439
|
+
itemId: string;
|
|
440
|
+
/** The agent's own drive identity (a system connection). */
|
|
441
|
+
agentConnectionId: number;
|
|
442
|
+
role?: AgentConnectionDriveReleaseRole;
|
|
443
|
+
}
|
|
444
|
+
/** `POST /driveRoots/{driveRootId}/revoke`, `/restrict` and `/followConnection`. */
|
|
445
|
+
export interface AgentConnectionDriveRootRevokeArg {
|
|
446
|
+
driveRootId: number;
|
|
447
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ComponentType } from "react";
|
|
2
|
+
import type { AgentConnectionCapability } from "./agent-connections-types";
|
|
3
|
+
/** A mark takes a class for its size. */
|
|
4
|
+
export interface AgentConnectionLogoProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/** The Google "G" (multicolour). */
|
|
8
|
+
export declare const GoogleLogo: ({ className }: AgentConnectionLogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
/** The Slack mark (four colours). */
|
|
10
|
+
export declare const SlackLogo: ({ className }: AgentConnectionLogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
/** Gmail (the 2020 "M"). */
|
|
12
|
+
export declare const GmailLogo: ({ className }: AgentConnectionLogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
/** Google Calendar (the 2020 tile with "31"). */
|
|
14
|
+
export declare const GoogleCalendarLogo: ({ className }: AgentConnectionLogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
/** Google Contacts (the blue person). */
|
|
16
|
+
export declare const GoogleContactsLogo: ({ className }: AgentConnectionLogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
/** Google Drive (the triangle). */
|
|
18
|
+
export declare const GoogleDriveLogo: ({ className }: AgentConnectionLogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
/** A mark component: a provider's or a product's. */
|
|
20
|
+
export type AgentConnectionLogo = ComponentType<AgentConnectionLogoProps>;
|
|
21
|
+
/**
|
|
22
|
+
* The marks by provider name (`GOOGLE`, `SLACK`, …): `providers` the provider's own mark, `capabilities` the product
|
|
23
|
+
* mark of a capability on that provider (Gmail for MAIL on Google). A provider without a mark gets a neutral icon.
|
|
24
|
+
*/
|
|
25
|
+
export interface AgentConnectionLogos {
|
|
26
|
+
providers?: Readonly<Record<string, AgentConnectionLogo | undefined>>;
|
|
27
|
+
capabilities?: Readonly<Record<string, Partial<Record<AgentConnectionCapability, AgentConnectionLogo>> | undefined>>;
|
|
28
|
+
}
|
|
29
|
+
/** The marks the package ships: Google and Slack, and Google's products per capability. */
|
|
30
|
+
export declare const DEFAULT_AGENT_CONNECTION_LOGOS: Required<AgentConnectionLogos>;
|
|
31
|
+
/** The package's marks with a host's on top (a host entry replaces the package's of the same provider or capability). */
|
|
32
|
+
export declare const mergeAgentConnectionLogos: (logos: AgentConnectionLogos | undefined) => Required<AgentConnectionLogos>;
|
|
33
|
+
interface CapabilityIconProps {
|
|
34
|
+
provider: string | null | undefined;
|
|
35
|
+
capability: AgentConnectionCapability;
|
|
36
|
+
className?: string;
|
|
37
|
+
}
|
|
38
|
+
/** A capability's icon: the product mark of the provider (Gmail, Calendar, Contacts, Drive on Google), else neutral. */
|
|
39
|
+
export declare const CapabilityIcon: ({ provider, capability, className }: CapabilityIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
/** The provider's bare mark (a dialog title); nothing for a provider without one. */
|
|
41
|
+
export declare const ProviderLogo: ({ provider, className }: {
|
|
42
|
+
provider: string;
|
|
43
|
+
className?: string;
|
|
44
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
45
|
+
interface ProviderMarkProps {
|
|
46
|
+
provider: string | null | undefined;
|
|
47
|
+
/** `md` 40 px (tiles, the connect menu), `sm` 32 px (table rows). */
|
|
48
|
+
size?: "sm" | "md";
|
|
49
|
+
className?: string;
|
|
50
|
+
}
|
|
51
|
+
/** The provider's mark in a rounded tile; a mail icon for IMAP/SMTP and a plug for a provider without a mark. */
|
|
52
|
+
export declare const ProviderMark: ({ provider, size, className }: ProviderMarkProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { AgentConnectionCapabilityLevel } from "./agent-connections-types";
|
|
2
|
+
/** Who may let the agent use the connection: only its owner (lock) or the shared space (people, brand tint). */
|
|
3
|
+
export declare const AgentConnectionVisibilityBadge: ({ visibility }: {
|
|
4
|
+
visibility: string | null | undefined;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
/** The connection's status (connected, expired, paused, error, disconnected, connecting). */
|
|
7
|
+
export declare const AgentConnectionStatusBadge: ({ status }: {
|
|
8
|
+
status: string | null | undefined;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
/** "5 minutes ago" of an offsetless UTC backend time; `fallback` without one. */
|
|
11
|
+
export declare const AgentConnectionRelativeTime: ({ value, fallback }: {
|
|
12
|
+
value: string | null | undefined;
|
|
13
|
+
fallback: string;
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export interface CapabilityLevelChipsProps {
|
|
16
|
+
provider: string | null | undefined;
|
|
17
|
+
levels: readonly AgentConnectionCapabilityLevel[];
|
|
18
|
+
/** Table rows: smaller chips. */
|
|
19
|
+
compact?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The capabilities of a connection with the agent's level per capability ("Mail · with approval"): the product mark
|
|
24
|
+
* (Gmail, Calendar, Contacts, Drive on Google; neutral icons elsewhere), the capability and the level in its tone. The
|
|
25
|
+
* level's meaning is the chip's tooltip.
|
|
26
|
+
*/
|
|
27
|
+
export declare const CapabilityLevelChips: ({ provider, levels, compact, className }: CapabilityLevelChipsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
28
|
+
/** A rename opened from outside the name (the "…" menu, the merge banner), with an optional suggested name. */
|
|
29
|
+
export interface AgentConnectionNameEditRequest {
|
|
30
|
+
suggestedName: string | null;
|
|
31
|
+
requestKey: number;
|
|
32
|
+
}
|
|
33
|
+
export interface AgentConnectionNameProps {
|
|
34
|
+
connectionId: number | undefined;
|
|
35
|
+
name: string;
|
|
36
|
+
canRename: boolean;
|
|
37
|
+
editRequest: AgentConnectionNameEditRequest | null;
|
|
38
|
+
onEditRequestHandled: () => void;
|
|
39
|
+
size?: "md" | "sm";
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The connection's name, renamed in place: the pencil opens a field with Save / Cancel, Enter saves, Esc cancels. Only
|
|
43
|
+
* the name is sent (`POST connections/{id}/settings`, `displayName`): the route leaves every field it does not get
|
|
44
|
+
* unchanged.
|
|
45
|
+
*/
|
|
46
|
+
export declare const AgentConnectionName: ({ connectionId, name, canRename, editRequest, onEditRequestHandled, size }: AgentConnectionNameProps) => import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export interface AgentConnectionActionHandlers {
|
|
48
|
+
onChangeLevels: () => void;
|
|
49
|
+
onChangeSharing: () => void;
|
|
50
|
+
onRename: () => void;
|
|
51
|
+
/** Left out where the connection cannot be renewed here (only an OAuth provider connects again from the browser). */
|
|
52
|
+
onReconnect?: () => void;
|
|
53
|
+
/** Left out where the connection carries no drive (no capability FILES) or the host has no drive routes. */
|
|
54
|
+
onOpenDrives?: () => void;
|
|
55
|
+
onDisconnect: () => void;
|
|
56
|
+
}
|
|
57
|
+
interface AgentConnectionActionsMenuProps extends AgentConnectionActionHandlers {
|
|
58
|
+
name: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The actions of one connection: change levels, sharing, drives and folders, rename, reconnect, and disconnect last
|
|
62
|
+
* (destructive, confirmed). One ghost "…" button on the tile and in the table row.
|
|
63
|
+
*/
|
|
64
|
+
export declare const AgentConnectionActionsMenu: ({ name, onChangeLevels, onChangeSharing, onRename, onReconnect, onOpenDrives, onDisconnect }: AgentConnectionActionsMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
/** The providers the add menu can offer: an OAuth account (Google), a mailbox (IMAP/SMTP), the agent's Slack bot. */
|
|
66
|
+
export type AgentConnectProvider = "GOOGLE" | "IMAP" | "SLACK";
|
|
67
|
+
export declare const AGENT_CONNECT_PROVIDERS: readonly AgentConnectProvider[];
|
|
68
|
+
interface AddConnectionMenuProps {
|
|
69
|
+
/** The providers the host offers here, in this order. */
|
|
70
|
+
providers: readonly AgentConnectProvider[];
|
|
71
|
+
/** The providers the server can connect here (`connectableProviders`). */
|
|
72
|
+
connectableProviders: readonly string[];
|
|
73
|
+
disabled: boolean;
|
|
74
|
+
onChoose: (provider: AgentConnectProvider) => void;
|
|
75
|
+
/** `sm` under the empty state and in a panel, default in a page header. */
|
|
76
|
+
size?: "sm" | "default";
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* "Add connection": the one primary action, a menu of the providers with their marks. Google and IMAP/SMTP connect an
|
|
80
|
+
* account of the person; Slack is the agent's own bot (only with the system right). A provider the server cannot
|
|
81
|
+
* connect here is shown but off.
|
|
82
|
+
*/
|
|
83
|
+
export declare const AddConnectionMenu: ({ providers, connectableProviders, disabled, onChoose, size }: AddConnectionMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { AgentConnectionCapability, AgentConnectionCapabilityLevel, AgentConnectionVisibility } from "./agent-connections-types";
|
|
2
|
+
export interface StartAgentConnectArgs {
|
|
3
|
+
/** The provider in upper case (`GOOGLE`). */
|
|
4
|
+
provider: string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
/** The capabilities to ask the provider for; empty = all the adapter offers. */
|
|
7
|
+
capabilities: readonly AgentConnectionCapability[];
|
|
8
|
+
/** `AGENT_SPACE`: the server releases the connection when the consent completes. */
|
|
9
|
+
visibility: AgentConnectionVisibility;
|
|
10
|
+
/** The space to share with; `null` = the server's only shareable space. */
|
|
11
|
+
targetAgentSpaceId?: number | null;
|
|
12
|
+
/** The connection a "Reconnect" renews (the consent is then merged into it by the server). */
|
|
13
|
+
reconnectOf?: number | null;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Starts a provider's consent (`POST oauth/{provider}/start`): the answer sets the HttpOnly nonce cookie on this
|
|
17
|
+
* origin and holds the consent URL, which this browser then opens (`AgentConnectionsOAuthAdapter.openAuthorizationUrl`,
|
|
18
|
+
* default `window.location.assign`). What the way back needs is stored first (`PendingAgentConnect`, with the panel's
|
|
19
|
+
* surface). `isPending` stays true while the browser leaves.
|
|
20
|
+
*/
|
|
21
|
+
export declare const useAgentConnect: () => {
|
|
22
|
+
start: ({ provider, displayName, capabilities, visibility, targetAgentSpaceId, reconnectOf }: StartAgentConnectArgs) => Promise<void>;
|
|
23
|
+
extend: (provider: string, connectionId: number, requestedLevels: readonly AgentConnectionCapabilityLevel[]) => Promise<void>;
|
|
24
|
+
isPending: boolean;
|
|
25
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AgentCompactionThreshold } from "./agent-inspect-context-types";
|
|
2
|
+
export interface CompactionThresholdBannerProps {
|
|
3
|
+
threshold: AgentCompactionThreshold;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
/** The context's fill of the threshold in whole percent, or `null` when one of the two is unknown. */
|
|
7
|
+
export declare const compactionThresholdFillPercentOf: (threshold: AgentCompactionThreshold) => number | null;
|
|
8
|
+
/**
|
|
9
|
+
* The compaction threshold in effect for the conversation: its size, whether compaction is due, where the threshold
|
|
10
|
+
* comes from (an override on the conversation, the purpose's context budget, the model, the default), how full the
|
|
11
|
+
* context is now and how many compaction nodes exist.
|
|
12
|
+
*/
|
|
13
|
+
export declare const CompactionThresholdBanner: ({ threshold, className }: CompactionThresholdBannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { AgentInspectContextApi } from "./agent-inspect-context-api";
|
|
3
|
+
export interface ContextCompositionPanelProps {
|
|
4
|
+
/** `createAgentInspectContextApi(…)` of the host. */
|
|
5
|
+
api: AgentInspectContextApi;
|
|
6
|
+
conversationId: number | string;
|
|
7
|
+
/** The message whose model call is broken down (an assistant message; another message has no composition). */
|
|
8
|
+
messageId: number | string;
|
|
9
|
+
/**
|
|
10
|
+
* Shows the conversation's compaction threshold above the bar (which threshold applies, where it comes from, whether
|
|
11
|
+
* compaction is due) when the answer carries one. For the panel at the top of a conversation; per-message panels
|
|
12
|
+
* leave it off.
|
|
13
|
+
*/
|
|
14
|
+
showCompactionThreshold?: boolean;
|
|
15
|
+
/** Draws a markdown text of a segment; default the admin UI's markdown preview for texts of unknown origin. */
|
|
16
|
+
renderMarkdown?: (source: string) => ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* What one model call was made of: every part of the system message, the tool schemas and the wire messages as one
|
|
21
|
+
* bar weighed by tokens, a legend with the tokens of each part, and the texts on a click. Structural parts are single
|
|
22
|
+
* entries; the wire messages are grouped by role ("Tool calls ×13"), so a long conversation stays readable. A click
|
|
23
|
+
* on a part of the bar or on a legend entry opens its text in a large modal (markdown, or a tree for JSON; raw;
|
|
24
|
+
* copy); "View whole context" opens every segment in the order the model read it. The panel says whether the
|
|
25
|
+
* breakdown is what was sent or a reconstruction from the stored rows and the current prompt, skills and memory.
|
|
26
|
+
*/
|
|
27
|
+
export declare const ContextCompositionPanel: ({ api, conversationId, messageId, showCompactionThreshold, renderMarkdown, className }: ContextCompositionPanelProps) => import("react/jsx-runtime").JSX.Element;
|