@leaflow/sdk 0.200.2 → 0.202.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/fleet/v1/generated/functions.d.ts +120 -49
- package/dist/fleet/v1/generated/functions.js +122 -48
- package/dist/fleet/v1/generated/models.d.ts +180 -62
- package/dist/fleet/v1/generated/models.js +18 -0
- package/dist/fleet/v1/generated/schemas.zod.d.ts +113 -45
- package/dist/fleet/v1/generated/schemas.zod.js +101 -61
- package/dist/fleet/v1/generated/validators/accountList.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/accountList.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/accountResource.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/accountResource.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/approveEnrollmentRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/approveEnrollmentRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/callMcpToolRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/callMcpToolRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/callMcpToolResponse.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/callMcpToolResponse.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/callToolRequest.zod.d.ts +264 -0
- package/dist/fleet/v1/generated/validators/callToolRequest.zod.js +262 -0
- package/dist/fleet/v1/generated/validators/callToolResponse.zod.d.ts +270 -0
- package/dist/fleet/v1/generated/validators/{mcpToolList.zod.js → callToolResponse.zod.js} +19 -12
- package/dist/fleet/v1/generated/validators/createGroupMemberRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/createGroupMemberRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/createGroupRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/createGroupRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/createMachineRegistrationRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/createMachineRegistrationRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/createMachineRegistrationResponse.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/createMachineRegistrationResponse.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/createParticipantRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/createParticipantRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/createParticipantResponse.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/createParticipantResponse.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/createPeerConnectionCandidatesRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/createPeerConnectionCandidatesRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/createPeerConnectionRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/createPeerConnectionRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/createSessionRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/createSessionRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/cursorPagination.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/cursorPagination.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/deleteMcpServerParams.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/deleteMcpServerParams.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/denyPrivilegeRequestRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/denyPrivilegeRequestRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/desktopOptions.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/desktopOptions.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/desktopState.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/desktopState.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/directoryName.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/directoryName.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/enrollmentResource.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/enrollmentResource.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/enrollmentState.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/enrollmentState.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/error.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/error.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/errorStatus.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/errorStatus.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/featureState.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/featureState.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/fieldViolation.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/fieldViolation.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/findEnrollmentByPairingCodeParams.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/findEnrollmentByPairingCodeParams.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/findEnrollmentResponse.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/findEnrollmentResponse.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/getPeerConnectionParams.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/getPeerConnectionParams.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/groupList.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/groupList.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/groupResource.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/groupResource.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/iceCandidate.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/iceCandidate.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/iceServer.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/iceServer.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/listAccountsParams.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/listAccountsParams.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/listGroupMembersParams.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/listGroupMembersParams.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/listGroupsParams.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/listGroupsParams.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/listMachineEventsParams.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/listMachineEventsParams.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/listMachineRegistrationsParams.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/listMachineRegistrationsParams.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/listMachinesParams.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/listMachinesParams.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/listPrivilegeAutoApprovalsParams.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/listPrivilegeAutoApprovalsParams.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/listPrivilegeRequestsParams.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/listPrivilegeRequestsParams.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/listSessionsParams.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/listSessionsParams.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/listToolsParams.zod.d.ts +267 -0
- package/dist/fleet/v1/generated/validators/listToolsParams.zod.js +265 -0
- package/dist/fleet/v1/generated/validators/machineEventList.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/machineEventList.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/machineEventResource.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/machineEventResource.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/machineEventType.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/machineEventType.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/machineFeature.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/machineFeature.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/machineList.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/machineList.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/machineRegistrationList.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/machineRegistrationList.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/machineRegistrationResource.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/machineRegistrationResource.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/machineRegistrationState.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/machineRegistrationState.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/machineResource.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/machineResource.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/mcpConfigurationFile.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/mcpConfigurationFile.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/mcpConfigurationResource.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/mcpConfigurationResource.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/mcpImplementation.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/mcpImplementation.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/mcpServerFailure.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/mcpServerFailure.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/mcpServerResource.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/mcpServerResource.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/mcpTransport.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/mcpTransport.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/migrationStep.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/migrationStep.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/namedIdentity.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/namedIdentity.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/offsetPagination.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/offsetPagination.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/operatingSystem.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/operatingSystem.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/participantList.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/participantList.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/participantResource.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/participantResource.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/peerConnection.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/peerConnection.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/privilegeAutoApprovalList.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/privilegeAutoApprovalList.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/privilegeAutoApprovalMode.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/privilegeAutoApprovalMode.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/privilegeAutoApprovalResource.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/privilegeAutoApprovalResource.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/privilegeDecider.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/privilegeDecider.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/privilegeRequestList.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/privilegeRequestList.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/privilegeRequestResource.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/privilegeRequestResource.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/privilegeRequestState.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/privilegeRequestState.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/publicKey.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/publicKey.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/renewParticipantRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/renewParticipantRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/renewParticipantResponse.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/renewParticipantResponse.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/replaceMcpConfigurationRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/replaceMcpConfigurationRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/rtcConfiguration.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/rtcConfiguration.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/runCommandRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/runCommandRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/runCommandResponse.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/runCommandResponse.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/sendMcpRequestRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/sendMcpRequestRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/sendMcpRequestResponse.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/sendMcpRequestResponse.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/sessionCloseReason.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/sessionCloseReason.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/sessionList.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/sessionList.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/sessionMode.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/sessionMode.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/sessionResource.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/sessionResource.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/sessionState.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/sessionState.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/signedMessage.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/signedMessage.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/signingKey.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/signingKey.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/{listMcpToolsParams.zod.d.ts → toolActivityList.zod.d.ts} +13 -16
- package/dist/fleet/v1/generated/validators/toolActivityList.zod.js +253 -0
- package/dist/fleet/v1/generated/validators/toolContent.zod.d.ts +263 -0
- package/dist/fleet/v1/generated/validators/toolContent.zod.js +260 -0
- package/dist/fleet/v1/generated/validators/{mcpToolList.zod.d.ts → toolDescriptor.zod.d.ts} +24 -28
- package/dist/fleet/v1/generated/validators/{mcpToolResource.zod.js → toolDescriptor.zod.js} +16 -16
- package/dist/fleet/v1/generated/validators/{mcpToolResource.zod.d.ts → toolImage.zod.d.ts} +20 -14
- package/dist/fleet/v1/generated/validators/toolImage.zod.js +255 -0
- package/dist/fleet/v1/generated/validators/toolList.zod.d.ts +276 -0
- package/dist/fleet/v1/generated/validators/{mcpUnavailableServer.zod.js → toolList.zod.js} +19 -8
- package/dist/fleet/v1/generated/validators/{mcpUnavailableServer.zod.d.ts → toolRef.zod.d.ts} +18 -16
- package/dist/fleet/v1/generated/validators/{listMcpToolsParams.zod.js → toolRef.zod.js} +18 -17
- package/dist/fleet/v1/generated/validators/updateAccountRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/updateAccountRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/updateGroupRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/updateGroupRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/updateMachineRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/updateMachineRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/updateMcpServerRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/updateMcpServerRequest.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/updateMcpServerResponse.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/updateMcpServerResponse.zod.js +9 -5
- package/dist/fleet/v1/generated/validators/updatePrivilegeAutoApprovalRequest.zod.d.ts +9 -5
- package/dist/fleet/v1/generated/validators/updatePrivilegeAutoApprovalRequest.zod.js +9 -5
- package/dist/proto/leaflow/fleet/control/v1/control_pb.d.ts +24 -2
- package/dist/proto/leaflow/fleet/control/v1/control_pb.js +1 -1
- package/dist/proto/leaflow/fleet/session/v1/session_pb.d.ts +8 -0
- package/dist/proto/leaflow/fleet/session/v1/session_pb.js +1 -1
- package/dist/proto/leaflow/fleet/tool/v1/tool_pb.d.ts +683 -0
- package/dist/proto/leaflow/fleet/tool/v1/tool_pb.js +205 -0
- package/dist/proto/leaflow/fleet/virtualdesktop/capture/v1/capture_pb.d.ts +21 -1
- package/dist/proto/leaflow/fleet/virtualdesktop/capture/v1/capture_pb.js +1 -1
- package/dist/proto/leaflow/fleet/virtualdesktop/datatransfer/v1/datatransfer_pb.d.ts +11 -2
- package/dist/proto/leaflow/fleet/virtualdesktop/datatransfer/v1/datatransfer_pb.js +1 -1
- package/dist/proto/leaflow/fleet/virtualdesktop/display/v1/display_pb.d.ts +18 -0
- package/dist/proto/leaflow/fleet/virtualdesktop/display/v1/display_pb.js +10 -5
- package/dist/proto/leaflow/fleet/virtualdesktop/input/v1/input_pb.d.ts +8 -0
- package/dist/proto/leaflow/fleet/virtualdesktop/input/v1/input_pb.js +1 -1
- package/dist/proto/leaflow/fleet/virtualdesktop/window/v1/window_pb.d.ts +24 -1
- package/dist/proto/leaflow/fleet/virtualdesktop/window/v1/window_pb.js +1 -1
- package/dist/routes.d.ts +23 -7
- package/dist/routes.js +25 -7
- package/package.json +1 -1
|
@@ -83,11 +83,15 @@
|
|
|
83
83
|
* and remote ones it connects to;
|
|
84
84
|
* - `leaflow.fleet.host.v1`: terminal sessions, with programs, files, ports, sound, devices,
|
|
85
85
|
* printers and privilege approvals;
|
|
86
|
-
* - `leaflow.fleet.virtualdesktop.host.v1`: sessions with a
|
|
86
|
+
* - `leaflow.fleet.virtualdesktop.host.v1`: sessions with a graphical backend;
|
|
87
|
+
* - `leaflow.fleet.tool.v1`: live session tools. Builtin `computer.*` tools are exposed only while
|
|
88
|
+
* the virtual desktop capability is actually available; MCP is a separate source.
|
|
87
89
|
*
|
|
88
|
-
* A
|
|
89
|
-
*
|
|
90
|
-
*
|
|
90
|
+
* A graphical backend does not require a full desktop environment. Terminal logins, commands
|
|
91
|
+
* and MCP server initialization prepare or reuse the account's lightweight graphical context,
|
|
92
|
+
* in addition to their own session or job. Configuration reads and writes do not initialize a
|
|
93
|
+
* server and do not require this preparation. A request that needs a feature the machine does
|
|
94
|
+
* not report available fails with `FEATURE_UNAVAILABLE`, whose `metadata.feature` names it.
|
|
91
95
|
*
|
|
92
96
|
* ## Directory
|
|
93
97
|
*
|
|
@@ -975,84 +979,192 @@ export interface SendMcpRequestResponse {
|
|
|
975
979
|
/** The server's JSON-RPC 2.0 response, with the id of the request */
|
|
976
980
|
response: SendMcpRequestResponseResponse;
|
|
977
981
|
}
|
|
982
|
+
export type ToolRefSource = (typeof ToolRefSource)[keyof typeof ToolRefSource];
|
|
983
|
+
export declare const ToolRefSource: {
|
|
984
|
+
readonly builtin: "builtin";
|
|
985
|
+
readonly mcp: "mcp";
|
|
986
|
+
};
|
|
987
|
+
export interface ToolRef {
|
|
988
|
+
source: ToolRefSource;
|
|
989
|
+
/**
|
|
990
|
+
* @minLength 1
|
|
991
|
+
* @maxLength 128
|
|
992
|
+
*/
|
|
993
|
+
name: string;
|
|
994
|
+
/**
|
|
995
|
+
* Required only for mcp; forbidden for builtin
|
|
996
|
+
* @minLength 1
|
|
997
|
+
* @maxLength 64
|
|
998
|
+
*/
|
|
999
|
+
server?: string;
|
|
1000
|
+
}
|
|
1001
|
+
export type ToolDescriptorInputSchema = {
|
|
1002
|
+
[key: string]: unknown;
|
|
1003
|
+
};
|
|
1004
|
+
export type ToolDescriptorOutputSchema = {
|
|
1005
|
+
[key: string]: unknown;
|
|
1006
|
+
};
|
|
978
1007
|
/**
|
|
979
|
-
*
|
|
1008
|
+
* Untrusted display metadata; never grants authorization
|
|
980
1009
|
*/
|
|
981
|
-
export type
|
|
1010
|
+
export type ToolDescriptorMetadata = {
|
|
982
1011
|
[key: string]: unknown;
|
|
983
1012
|
};
|
|
984
|
-
export interface
|
|
985
|
-
|
|
986
|
-
|
|
1013
|
+
export interface ToolDescriptor {
|
|
1014
|
+
tool: ToolRef;
|
|
1015
|
+
name: string;
|
|
1016
|
+
title: string;
|
|
1017
|
+
description: string;
|
|
1018
|
+
input_schema: ToolDescriptorInputSchema;
|
|
1019
|
+
output_schema?: ToolDescriptorOutputSchema;
|
|
1020
|
+
/** Untrusted display metadata; never grants authorization */
|
|
1021
|
+
metadata?: ToolDescriptorMetadata;
|
|
1022
|
+
}
|
|
1023
|
+
export type ToolListUnavailableSourcesItemSource = (typeof ToolListUnavailableSourcesItemSource)[keyof typeof ToolListUnavailableSourcesItemSource];
|
|
1024
|
+
export declare const ToolListUnavailableSourcesItemSource: {
|
|
1025
|
+
readonly builtin: "builtin";
|
|
1026
|
+
readonly mcp: "mcp";
|
|
1027
|
+
};
|
|
1028
|
+
export type ToolListUnavailableSourcesItem = {
|
|
1029
|
+
source: ToolListUnavailableSourcesItemSource;
|
|
1030
|
+
mcp_server: string;
|
|
1031
|
+
code: number;
|
|
1032
|
+
reason: string;
|
|
1033
|
+
};
|
|
1034
|
+
export interface ToolList {
|
|
1035
|
+
session_id: string;
|
|
1036
|
+
items: ToolDescriptor[];
|
|
1037
|
+
next_page_token: string;
|
|
1038
|
+
unavailable_sources: ToolListUnavailableSourcesItem[];
|
|
1039
|
+
}
|
|
1040
|
+
/**
|
|
1041
|
+
* A JSON object, at most 256 KiB when encoded
|
|
1042
|
+
*/
|
|
1043
|
+
export type CallToolRequestArguments = {
|
|
1044
|
+
[key: string]: unknown;
|
|
1045
|
+
};
|
|
1046
|
+
export interface CallToolRequest {
|
|
1047
|
+
client_instance_id: string;
|
|
1048
|
+
tool: ToolRef;
|
|
1049
|
+
/** A JSON object, at most 256 KiB when encoded */
|
|
1050
|
+
arguments: CallToolRequestArguments;
|
|
1051
|
+
read_only?: boolean;
|
|
987
1052
|
/**
|
|
988
|
-
* How long to wait for the result
|
|
989
1053
|
* @minimum 1
|
|
990
|
-
* @maximum
|
|
1054
|
+
* @maximum 240
|
|
991
1055
|
*/
|
|
992
1056
|
timeout_seconds?: number;
|
|
993
1057
|
}
|
|
994
1058
|
/**
|
|
995
|
-
*
|
|
1059
|
+
* Untrusted content extensions such as MCP annotations or _meta, without duplicated body or image data
|
|
996
1060
|
*/
|
|
997
|
-
export type
|
|
1061
|
+
export type ToolContentMetadata = {
|
|
998
1062
|
[key: string]: unknown;
|
|
999
1063
|
};
|
|
1000
|
-
export interface CallMcpToolResponse {
|
|
1001
|
-
/** The tool's MCP `CallToolResult`, with `content`, `structuredContent` and `isError` */
|
|
1002
|
-
result: CallMcpToolResponseResult;
|
|
1003
|
-
}
|
|
1004
1064
|
/**
|
|
1005
|
-
*
|
|
1065
|
+
* An unrecognized external content block, preserved as data
|
|
1066
|
+
*/
|
|
1067
|
+
export type ToolContentJson = {
|
|
1068
|
+
[key: string]: unknown;
|
|
1069
|
+
};
|
|
1070
|
+
export type ToolImageMimeType = (typeof ToolImageMimeType)[keyof typeof ToolImageMimeType];
|
|
1071
|
+
export declare const ToolImageMimeType: {
|
|
1072
|
+
readonly "image/png": "image/png";
|
|
1073
|
+
readonly "image/jpeg": "image/jpeg";
|
|
1074
|
+
readonly "image/webp": "image/webp";
|
|
1075
|
+
};
|
|
1076
|
+
/**
|
|
1077
|
+
* ScreenshotContext in protobuf JSON with original field names: reference, window_id,
|
|
1078
|
+
* area, windows (including resize_counter and shape_counter), captured_at, revision,
|
|
1079
|
+
* quiet. uint64 values are decimal strings to preserve precision. Images do not change
|
|
1080
|
+
* this original geometry. The opaque reference binds coordinate actions to this capture.
|
|
1006
1081
|
*/
|
|
1007
|
-
export type
|
|
1082
|
+
export type ToolImageScreenshot = {
|
|
1008
1083
|
[key: string]: unknown;
|
|
1009
1084
|
};
|
|
1085
|
+
export interface ToolImage {
|
|
1086
|
+
/** Base64 of Agent's original encoded image bytes, never a URL */
|
|
1087
|
+
data: string;
|
|
1088
|
+
mime_type: ToolImageMimeType;
|
|
1089
|
+
/** @minimum 1 */
|
|
1090
|
+
width: number;
|
|
1091
|
+
/** @minimum 1 */
|
|
1092
|
+
height: number;
|
|
1093
|
+
/**
|
|
1094
|
+
* ScreenshotContext in protobuf JSON with original field names: reference, window_id,
|
|
1095
|
+
* area, windows (including resize_counter and shape_counter), captured_at, revision,
|
|
1096
|
+
* quiet. uint64 values are decimal strings to preserve precision. Images do not change
|
|
1097
|
+
* this original geometry. The opaque reference binds coordinate actions to this capture.
|
|
1098
|
+
*/
|
|
1099
|
+
screenshot?: ToolImageScreenshot;
|
|
1100
|
+
}
|
|
1010
1101
|
/**
|
|
1011
|
-
*
|
|
1012
|
-
* @nullable
|
|
1102
|
+
* Exactly one of text, image or json is present
|
|
1013
1103
|
*/
|
|
1014
|
-
export
|
|
1104
|
+
export interface ToolContent {
|
|
1105
|
+
/** Untrusted content extensions such as MCP annotations or _meta, without duplicated body or image data */
|
|
1106
|
+
metadata?: ToolContentMetadata;
|
|
1107
|
+
text?: string;
|
|
1108
|
+
image?: ToolImage;
|
|
1109
|
+
/** An unrecognized external content block, preserved as data */
|
|
1110
|
+
json?: ToolContentJson;
|
|
1111
|
+
}
|
|
1112
|
+
export type CallToolResponseStructuredContent = {
|
|
1015
1113
|
[key: string]: unknown;
|
|
1016
|
-
}
|
|
1114
|
+
};
|
|
1017
1115
|
/**
|
|
1018
|
-
*
|
|
1019
|
-
* @nullable
|
|
1116
|
+
* Untrusted result extensions such as MCP _meta, without duplicated content or images
|
|
1020
1117
|
*/
|
|
1021
|
-
export type
|
|
1118
|
+
export type CallToolResponseMetadata = {
|
|
1022
1119
|
[key: string]: unknown;
|
|
1023
|
-
}
|
|
1024
|
-
export interface
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
/**
|
|
1033
|
-
* The JSON Schema of its structured result; null when it has none
|
|
1034
|
-
* @nullable
|
|
1035
|
-
*/
|
|
1036
|
-
output_schema: McpToolResourceOutputSchema;
|
|
1037
|
-
/**
|
|
1038
|
-
* Its MCP `ToolAnnotations`, such as `readOnlyHint`; hints of the server, not guarantees
|
|
1039
|
-
* @nullable
|
|
1040
|
-
*/
|
|
1041
|
-
annotations: McpToolResourceAnnotations;
|
|
1120
|
+
};
|
|
1121
|
+
export interface CallToolResponse {
|
|
1122
|
+
session_id: string;
|
|
1123
|
+
operation_id: string;
|
|
1124
|
+
content: ToolContent[];
|
|
1125
|
+
structured_content?: CallToolResponseStructuredContent;
|
|
1126
|
+
/** Untrusted result extensions such as MCP _meta, without duplicated content or images */
|
|
1127
|
+
metadata?: CallToolResponseMetadata;
|
|
1128
|
+
is_error: boolean;
|
|
1042
1129
|
}
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1130
|
+
/**
|
|
1131
|
+
* ToolActivity in protobuf JSON with original field names. Includes session_id,
|
|
1132
|
+
* participant_id, operation_id, instance_id, sequence, observed_at, phase, action and
|
|
1133
|
+
* optional target (window_id, position x/y, resize_counter, shape_counter). All uint64
|
|
1134
|
+
* values are decimal strings. No input text, key values, arguments or image data.
|
|
1135
|
+
*/
|
|
1136
|
+
export type ToolActivityListItemsItem = {
|
|
1137
|
+
[key: string]: unknown;
|
|
1138
|
+
};
|
|
1139
|
+
export interface ToolActivityList {
|
|
1140
|
+
/** @maxItems 64 */
|
|
1141
|
+
items: ToolActivityListItemsItem[];
|
|
1046
1142
|
}
|
|
1047
|
-
|
|
1048
|
-
|
|
1143
|
+
/**
|
|
1144
|
+
* The tool's arguments, as its `input_schema` describes them
|
|
1145
|
+
*/
|
|
1146
|
+
export type CallMcpToolRequestArguments = {
|
|
1147
|
+
[key: string]: unknown;
|
|
1148
|
+
};
|
|
1149
|
+
export interface CallMcpToolRequest {
|
|
1150
|
+
/** The tool's arguments, as its `input_schema` describes them */
|
|
1151
|
+
arguments?: CallMcpToolRequestArguments;
|
|
1049
1152
|
/**
|
|
1050
|
-
*
|
|
1051
|
-
* @
|
|
1153
|
+
* How long to wait for the result
|
|
1154
|
+
* @minimum 1
|
|
1155
|
+
* @maximum 300
|
|
1052
1156
|
*/
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1157
|
+
timeout_seconds?: number;
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* The tool's MCP `CallToolResult`, with `content`, `structuredContent` and `isError`
|
|
1161
|
+
*/
|
|
1162
|
+
export type CallMcpToolResponseResult = {
|
|
1163
|
+
[key: string]: unknown;
|
|
1164
|
+
};
|
|
1165
|
+
export interface CallMcpToolResponse {
|
|
1166
|
+
/** The tool's MCP `CallToolResult`, with `content`, `structuredContent` and `isError` */
|
|
1167
|
+
result: CallMcpToolResponseResult;
|
|
1056
1168
|
}
|
|
1057
1169
|
/**
|
|
1058
1170
|
* How the caller's privilege requests on the machine are decided without asking them:
|
|
@@ -1426,28 +1538,34 @@ export type DeleteMcpServerParams = {
|
|
|
1426
1538
|
*/
|
|
1427
1539
|
expected_revision?: string;
|
|
1428
1540
|
};
|
|
1429
|
-
export type
|
|
1541
|
+
export type ListToolsParams = {
|
|
1542
|
+
client_instance_id: string;
|
|
1543
|
+
source?: ListToolsSource;
|
|
1430
1544
|
/**
|
|
1431
|
-
* Only this server's tools
|
|
1432
1545
|
* @maxLength 64
|
|
1433
1546
|
*/
|
|
1434
|
-
|
|
1547
|
+
mcp_server?: string;
|
|
1435
1548
|
/**
|
|
1436
|
-
* Words that each must occur in a tool's name, title or description
|
|
1437
1549
|
* @maxLength 256
|
|
1438
1550
|
*/
|
|
1439
1551
|
query?: string;
|
|
1552
|
+
read_only?: boolean;
|
|
1440
1553
|
/**
|
|
1441
1554
|
* @minimum 1
|
|
1442
|
-
* @maximum
|
|
1555
|
+
* @maximum 100
|
|
1443
1556
|
*/
|
|
1444
1557
|
page_size?: number;
|
|
1445
1558
|
/**
|
|
1446
|
-
*
|
|
1447
|
-
* @maxLength 1024
|
|
1559
|
+
* @maxLength 4096
|
|
1448
1560
|
*/
|
|
1449
1561
|
page_token?: string;
|
|
1450
1562
|
};
|
|
1563
|
+
export type ListToolsSource = (typeof ListToolsSource)[keyof typeof ListToolsSource];
|
|
1564
|
+
export declare const ListToolsSource: {
|
|
1565
|
+
readonly all: "all";
|
|
1566
|
+
readonly builtin: "builtin";
|
|
1567
|
+
readonly mcp: "mcp";
|
|
1568
|
+
};
|
|
1451
1569
|
export type ListPrivilegeAutoApprovalsParams = {
|
|
1452
1570
|
/**
|
|
1453
1571
|
* 1-based page number. Defaults to 1.
|
|
@@ -68,6 +68,19 @@ export const McpServerFailure = {
|
|
|
68
68
|
protocol_error: "protocol_error",
|
|
69
69
|
timeout: "timeout",
|
|
70
70
|
};
|
|
71
|
+
export const ToolRefSource = {
|
|
72
|
+
builtin: "builtin",
|
|
73
|
+
mcp: "mcp",
|
|
74
|
+
};
|
|
75
|
+
export const ToolListUnavailableSourcesItemSource = {
|
|
76
|
+
builtin: "builtin",
|
|
77
|
+
mcp: "mcp",
|
|
78
|
+
};
|
|
79
|
+
export const ToolImageMimeType = {
|
|
80
|
+
"image/png": "image/png",
|
|
81
|
+
"image/jpeg": "image/jpeg",
|
|
82
|
+
"image/webp": "image/webp",
|
|
83
|
+
};
|
|
71
84
|
export const PrivilegeAutoApprovalMode = {
|
|
72
85
|
automatic_review: "automatic_review",
|
|
73
86
|
always_approve: "always_approve",
|
|
@@ -99,3 +112,8 @@ export const CreateParticipantRequestPermissionsItem = {
|
|
|
99
112
|
"fleet:privilegeapprove": "fleet:privilege.approve",
|
|
100
113
|
"fleet:logsread": "fleet:logs.read",
|
|
101
114
|
};
|
|
115
|
+
export const ListToolsSource = {
|
|
116
|
+
all: "all",
|
|
117
|
+
builtin: "builtin",
|
|
118
|
+
mcp: "mcp",
|
|
119
|
+
};
|
|
@@ -83,11 +83,15 @@
|
|
|
83
83
|
* and remote ones it connects to;
|
|
84
84
|
* - `leaflow.fleet.host.v1`: terminal sessions, with programs, files, ports, sound, devices,
|
|
85
85
|
* printers and privilege approvals;
|
|
86
|
-
* - `leaflow.fleet.virtualdesktop.host.v1`: sessions with a
|
|
86
|
+
* - `leaflow.fleet.virtualdesktop.host.v1`: sessions with a graphical backend;
|
|
87
|
+
* - `leaflow.fleet.tool.v1`: live session tools. Builtin `computer.*` tools are exposed only while
|
|
88
|
+
* the virtual desktop capability is actually available; MCP is a separate source.
|
|
87
89
|
*
|
|
88
|
-
* A
|
|
89
|
-
*
|
|
90
|
-
*
|
|
90
|
+
* A graphical backend does not require a full desktop environment. Terminal logins, commands
|
|
91
|
+
* and MCP server initialization prepare or reuse the account's lightweight graphical context,
|
|
92
|
+
* in addition to their own session or job. Configuration reads and writes do not initialize a
|
|
93
|
+
* server and do not require this preparation. A request that needs a feature the machine does
|
|
94
|
+
* not report available fails with `FEATURE_UNAVAILABLE`, whose `metadata.feature` names it.
|
|
91
95
|
*
|
|
92
96
|
* ## Directory
|
|
93
97
|
*
|
|
@@ -307,19 +311,23 @@ export declare const ListMachineEventsQueryParams: zod.ZodObject<{
|
|
|
307
311
|
* redirection and `&&` work; there is no terminal and no standard input. The machine admits
|
|
308
312
|
* the account through PAM as for a login. The account is created if the caller has none yet.
|
|
309
313
|
* A command that fails is still a successful request: its exit status is its result.
|
|
314
|
+
* Before starting it, Fleet prepares or reuses the account's ready lightweight graphical
|
|
315
|
+
* session, without starting a full desktop environment. The command has its own job scope;
|
|
316
|
+
* its timeout or exit must not close the account's graphical context.
|
|
310
317
|
*
|
|
311
318
|
* Inside the command, `sudo` works without a prompt while the caller has
|
|
312
319
|
* `fleet:machines.admin` on the machine, and refuses otherwise.
|
|
313
320
|
*
|
|
314
|
-
*
|
|
315
|
-
* more. Neither the command nor its output is hidden from the platform: do not put secrets
|
|
321
|
+
* After graphical context preparation, the request is held until the command ends, at most
|
|
322
|
+
* `timeout_seconds` and a few seconds more. Neither the command nor its output is hidden from the platform: do not put secrets
|
|
316
323
|
* into either.
|
|
317
324
|
*
|
|
318
325
|
* Requires `fleet:machines.login` on the machine.
|
|
319
326
|
*
|
|
320
327
|
* Fails with:
|
|
321
328
|
* - `MACHINE_OFFLINE` when the machine is not connected and does not connect again in time;
|
|
322
|
-
* - `FEATURE_UNAVAILABLE` when the
|
|
329
|
+
* - `FEATURE_UNAVAILABLE` when the command, session or graphical backend is unavailable;
|
|
330
|
+
* - `SESSION_UNAVAILABLE` or `SESSION_CLOSED` when the account context is not ready or closing;
|
|
323
331
|
* - `USER_NOT_FOUND`, `USER_NOT_ALLOWED`, `ACCOUNT_EXPIRED` or `PAM_PERMISSION_DENIED` when
|
|
324
332
|
* the machine refuses the account, as for opening a session;
|
|
325
333
|
* - `COMMAND_START_FAILED` when the shell could not start; nothing ran;
|
|
@@ -435,11 +443,95 @@ export declare const deleteMcpServerQueryExpectedRevisionMax = 64;
|
|
|
435
443
|
export declare const DeleteMcpServerQueryParams: zod.ZodObject<{
|
|
436
444
|
expected_revision: zod.ZodOptional<zod.ZodString>;
|
|
437
445
|
}, zod.z.core.$strict>;
|
|
446
|
+
/**
|
|
447
|
+
* Queries Agent's builtin tools and the caller's configured MCP servers live. No directory,
|
|
448
|
+
* result or image is cached. Requires fleet:machines.login; builtin capabilities retain
|
|
449
|
+
* their native policies and read-only restrictions. Ensures or reuses the caller's single
|
|
450
|
+
* open graphical session, without launching a desktop environment. The client instance is
|
|
451
|
+
* a UUID generated once per running client, not an authorization credential. Each request
|
|
452
|
+
* checks current IAM permissions and signs a short-lived control-only authorization.
|
|
453
|
+
* Tool arguments, results and images traverse Fleet with hop-by-hop TLS and are visible to
|
|
454
|
+
* Fleet. Existing desktop streaming remains end-to-end encrypted. TOOL_LIST_CHANGED means
|
|
455
|
+
* restart listing from the first page, never replay a CallTool. At most 100 tools per page.
|
|
456
|
+
* @summary List live tools available to the caller on a machine
|
|
457
|
+
*/
|
|
458
|
+
export declare const ListToolsParams: zod.ZodObject<{
|
|
459
|
+
machineId: zod.ZodUUID;
|
|
460
|
+
}, zod.z.core.$strict>;
|
|
461
|
+
export declare const listToolsQuerySourceDefault = "all";
|
|
462
|
+
export declare const listToolsQueryMcpServerMax = 64;
|
|
463
|
+
export declare const listToolsQueryQueryMax = 256;
|
|
464
|
+
export declare const listToolsQueryReadOnlyDefault = false;
|
|
465
|
+
export declare const listToolsQueryPageSizeDefault = 100;
|
|
466
|
+
export declare const listToolsQueryPageSizeMax = 100;
|
|
467
|
+
export declare const listToolsQueryPageTokenMax = 4096;
|
|
468
|
+
export declare const ListToolsQueryParams: zod.ZodObject<{
|
|
469
|
+
client_instance_id: zod.ZodUUID;
|
|
470
|
+
source: zod.ZodDefault<zod.ZodEnum<{
|
|
471
|
+
builtin: "builtin";
|
|
472
|
+
all: "all";
|
|
473
|
+
mcp: "mcp";
|
|
474
|
+
}>>;
|
|
475
|
+
mcp_server: zod.ZodOptional<zod.ZodString>;
|
|
476
|
+
query: zod.ZodOptional<zod.ZodString>;
|
|
477
|
+
read_only: zod.ZodDefault<zod.ZodBoolean>;
|
|
478
|
+
page_size: zod.ZodDefault<zod.ZodInt>;
|
|
479
|
+
page_token: zod.ZodOptional<zod.ZodString>;
|
|
480
|
+
}, zod.z.core.$strict>;
|
|
481
|
+
/**
|
|
482
|
+
* Uses the same current permissions, directory account and graphical session as list-tools.
|
|
483
|
+
* Listing is not a precondition: callers may use a previously discovered ToolRef, and this
|
|
484
|
+
* operation never sends a discovery request or refreshes schemas before executing it.
|
|
485
|
+
* A removed tool or MCP server returns TOOL_NOT_FOUND, as does a direct builtin computer.*
|
|
486
|
+
* call while virtual desktop capability is unavailable. Actual permission errors remain
|
|
487
|
+
* permission errors; a missing target window is not a missing tool. Use list-tools only when
|
|
488
|
+
* discovery or refresh is needed, and do not cache or reuse execution results.
|
|
489
|
+
* Source is explicit: MCP names never select or impersonate builtin tools. The arguments
|
|
490
|
+
* object is at most 256 KiB. The complete result is at most 8 MiB in the protobuf transport,
|
|
491
|
+
* with each encoded image at most 4 MiB; images are converted to base64 once at this JSON
|
|
492
|
+
* boundary, without recompression or persistence. Cancellation is propagated. A timeout,
|
|
493
|
+
* disconnect or failed response does not prove that side effects did not happen; do not
|
|
494
|
+
* automatically replay. operation_id only correlates live activity, not idempotency.
|
|
495
|
+
* @summary Call a live builtin or external MCP tool
|
|
496
|
+
*/
|
|
497
|
+
export declare const CallToolParams: zod.ZodObject<{
|
|
498
|
+
machineId: zod.ZodUUID;
|
|
499
|
+
}, zod.z.core.$strict>;
|
|
500
|
+
export declare const CallToolBody: zod.ZodObject<{
|
|
501
|
+
client_instance_id: zod.ZodUUID;
|
|
502
|
+
tool: zod.ZodObject<{
|
|
503
|
+
source: zod.ZodEnum<{
|
|
504
|
+
builtin: "builtin";
|
|
505
|
+
mcp: "mcp";
|
|
506
|
+
}>;
|
|
507
|
+
name: zod.ZodString;
|
|
508
|
+
server: zod.ZodOptional<zod.ZodString>;
|
|
509
|
+
}, zod.z.core.$strict>;
|
|
510
|
+
arguments: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
511
|
+
read_only: zod.ZodDefault<zod.ZodBoolean>;
|
|
512
|
+
timeout_seconds: zod.ZodDefault<zod.ZodInt>;
|
|
513
|
+
}, zod.z.core.$strict>;
|
|
514
|
+
/**
|
|
515
|
+
* Checks current session viewing permission for each request and again before returning
|
|
516
|
+
* events. Subscribes only while this request is pending, returning on the first batch or
|
|
517
|
+
* after at most 20 idle seconds. At most 64 events, no offline queue, event database, cursor
|
|
518
|
+
* history or replay guarantee. Missing events never mean repeat an action. Coordinates
|
|
519
|
+
* are window-client-local (window_id=0 means canvas), not CSS or image pixels. The frontend
|
|
520
|
+
* applies its own zoom and DPI. Compare sequence only within the same instance_id.
|
|
521
|
+
* @summary Receive live tool activity for an authorized session
|
|
522
|
+
*/
|
|
523
|
+
export declare const pollToolActivitiesPathSessionIdMax = 40;
|
|
524
|
+
export declare const pollToolActivitiesPathSessionIdRegExp: RegExp;
|
|
525
|
+
export declare const PollToolActivitiesParams: zod.ZodObject<{
|
|
526
|
+
sessionId: zod.ZodString;
|
|
527
|
+
}, zod.z.core.$strict>;
|
|
438
528
|
/**
|
|
439
529
|
* Sends one JSON-RPC request of MCP to one of the caller's servers on the machine, such as
|
|
440
530
|
* `tools/call`, `resources/read` or `prompts/get`, and returns the server's response. The
|
|
441
531
|
* machine starts or connects to the server if it is not running, and handles its
|
|
442
|
-
* initialization itself
|
|
532
|
+
* initialization itself. Before any such request, Fleet prepares or reuses the caller's
|
|
533
|
+
* ready lightweight account graphical session, including for resources and prompts; no full
|
|
534
|
+
* desktop environment is needed. A request still running when `timeout_seconds` passes is cancelled
|
|
443
535
|
* at the server. Requests the server makes of the client are answered as by a client that
|
|
444
536
|
* offers no sampling, elicitation or roots, and its notifications, such as of progress, are
|
|
445
537
|
* dropped. A response with a JSON-RPC error is a successful request. Neither the request nor
|
|
@@ -453,7 +545,8 @@ export declare const DeleteMcpServerQueryParams: zod.ZodObject<{
|
|
|
453
545
|
* is one of initialization;
|
|
454
546
|
* - `RESULT_TOO_LARGE` when the response is larger than 8 MiB;
|
|
455
547
|
* - `MACHINE_OFFLINE` when the machine is not connected and does not connect again in time;
|
|
456
|
-
* - `FEATURE_UNAVAILABLE` when the
|
|
548
|
+
* - `FEATURE_UNAVAILABLE` when the MCP, session or graphical backend is unavailable;
|
|
549
|
+
* - `SESSION_UNAVAILABLE` or `SESSION_CLOSED` when the account context is not ready or closing;
|
|
457
550
|
* - `USER_NOT_FOUND`, `USER_NOT_ALLOWED`, `ACCOUNT_EXPIRED` or `PAM_PERMISSION_DENIED` when
|
|
458
551
|
* the machine refuses the account, as for opening a session;
|
|
459
552
|
* - `MCP_START_FAILED` when the machine could not start MCP for the caller's account;
|
|
@@ -479,6 +572,7 @@ export declare const SendMcpRequestBody: zod.ZodObject<{
|
|
|
479
572
|
* Fails as sending a request does, and with `MCP_REQUEST_FAILED` when the server answers
|
|
480
573
|
* with a JSON-RPC error, such as for a tool it does not offer or arguments it does not
|
|
481
574
|
* accept, with the error's `metadata.code` and `metadata.message`.
|
|
575
|
+
* @deprecated
|
|
482
576
|
* @summary Call an MCP tool
|
|
483
577
|
*/
|
|
484
578
|
export declare const callMcpToolPathServerNameRegExp: RegExp;
|
|
@@ -492,39 +586,6 @@ export declare const CallMcpToolBody: zod.ZodObject<{
|
|
|
492
586
|
arguments: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
493
587
|
timeout_seconds: zod.ZodDefault<zod.ZodInt>;
|
|
494
588
|
}, zod.z.core.$strict>;
|
|
495
|
-
/**
|
|
496
|
-
* Lists the tools of the caller's servers on the machine, or of one of them, that match
|
|
497
|
-
* `query`: every word of it, ignoring case, in the tool's name, title or description. They
|
|
498
|
-
* are ordered by server, then by tool name. Servers that are not running are started to
|
|
499
|
-
* learn their tools; one that cannot be is named in `unavailable_servers`, and the others are
|
|
500
|
-
* listed anyway. Slow servers do not hold the request up: those still starting are named
|
|
501
|
-
* with `timeout` and go on starting, so that a later request lists their tools. Requires
|
|
502
|
-
* `fleet:machines.login` on the machine.
|
|
503
|
-
*
|
|
504
|
-
* Fails with:
|
|
505
|
-
* - `MCP_SERVER_NOT_FOUND` when `server` is not configured;
|
|
506
|
-
* - `MACHINE_OFFLINE` when the machine is not connected and does not connect again in time;
|
|
507
|
-
* - `FEATURE_UNAVAILABLE` when the machine does not offer `leaflow.fleet.mcp.v1`;
|
|
508
|
-
* - `USER_NOT_FOUND`, `USER_NOT_ALLOWED`, `ACCOUNT_EXPIRED` or `PAM_PERMISSION_DENIED` when
|
|
509
|
-
* the machine refuses the account, as for opening a session;
|
|
510
|
-
* - `MCP_START_FAILED` when the machine could not start MCP for the caller's account;
|
|
511
|
-
* - `MACHINE_TIMEOUT` when the machine did not answer in time.
|
|
512
|
-
* @summary List the caller's MCP tools on a machine
|
|
513
|
-
*/
|
|
514
|
-
export declare const ListMcpToolsParams: zod.ZodObject<{
|
|
515
|
-
machineId: zod.ZodUUID;
|
|
516
|
-
}, zod.z.core.$strict>;
|
|
517
|
-
export declare const listMcpToolsQueryServerMax = 64;
|
|
518
|
-
export declare const listMcpToolsQueryQueryMax = 256;
|
|
519
|
-
export declare const listMcpToolsQueryPageSizeDefault = 100;
|
|
520
|
-
export declare const listMcpToolsQueryPageSizeMax = 500;
|
|
521
|
-
export declare const listMcpToolsQueryPageTokenMax = 1024;
|
|
522
|
-
export declare const ListMcpToolsQueryParams: zod.ZodObject<{
|
|
523
|
-
server: zod.ZodOptional<zod.ZodString>;
|
|
524
|
-
query: zod.ZodOptional<zod.ZodString>;
|
|
525
|
-
page_size: zod.ZodDefault<zod.ZodInt>;
|
|
526
|
-
page_token: zod.ZodOptional<zod.ZodString>;
|
|
527
|
-
}, zod.z.core.$strict>;
|
|
528
589
|
/**
|
|
529
590
|
* Returns the caller's automatic approval of their privilege requests on the machine. Fails
|
|
530
591
|
* with `PRIVILEGE_AUTO_APPROVAL_NOT_FOUND` while the caller is asked every time, including
|
|
@@ -863,12 +924,19 @@ export declare const ListSessionsQueryParams: zod.ZodObject<{
|
|
|
863
924
|
}, zod.z.core.$strict>;
|
|
864
925
|
/**
|
|
865
926
|
* Opens a session for the caller on a machine, as the caller's account, and returns once it
|
|
866
|
-
* is ready. With `desktop` the session has a desktop. Without,
|
|
927
|
+
* is ready. With `desktop` the session has a desktop. Without, Fleet first prepares or reuses
|
|
928
|
+
* the account's separate ready lightweight graphical session, then creates a terminal session
|
|
929
|
+
* with its own SID and lifetime; closing that terminal does not close the account context. Its
|
|
867
930
|
* one terminal runs the caller's login shell from the start, every participant attaches to
|
|
868
931
|
* that terminal, and the session ends when the shell exits; a caller who wants another
|
|
869
932
|
* terminal opens another session. Either kind also offers programs, files, ports, sound,
|
|
870
933
|
* devices, printers and privilege approvals. The account is created if the caller has none
|
|
871
934
|
* yet. Requires `fleet:machines.login` on the machine.
|
|
935
|
+
* All newly created graphical account sessions, including desktop-first FullDesktop and
|
|
936
|
+
* Seamless sessions, keep running when no viewer has joined or the last viewer disconnects.
|
|
937
|
+
* Configured maximum lifetime, resource limits and explicit close/terminate still apply.
|
|
938
|
+
* This create API has no client-selected idle policy; existing running policies are not
|
|
939
|
+
* silently rewritten when tools, commands or terminals reuse the account context.
|
|
872
940
|
*
|
|
873
941
|
* On a machine an account has at most one session with a desktop and at most 8 sessions in
|
|
874
942
|
* all. Sessions without a desktop run side by side, such as one for a program and one for a
|
|
@@ -876,8 +944,8 @@ export declare const ListSessionsQueryParams: zod.ZodObject<{
|
|
|
876
944
|
*
|
|
877
945
|
* Fails with:
|
|
878
946
|
* - `MACHINE_OFFLINE` when the machine is not connected and does not connect again in time;
|
|
879
|
-
* - `FEATURE_UNAVAILABLE` when the machine does not offer sessions
|
|
880
|
-
*
|
|
947
|
+
* - `FEATURE_UNAVAILABLE` when the machine does not offer sessions or the graphical backend;
|
|
948
|
+
* - `SESSION_UNAVAILABLE` or `SESSION_CLOSED` when its shared account context is not ready or closing;
|
|
881
949
|
* - `USER_HAS_DESKTOP_SESSION` with `desktop` when the account already has a session with a
|
|
882
950
|
* desktop on the machine, which `metadata.sessionId` names; connect to it instead;
|
|
883
951
|
* - `SESSION_LIMIT_REACHED` when the account already has 8 open sessions on the machine;
|