@opengeni/contracts 2.15.2 → 3.0.0-canary.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/atlassian.js +10 -9
- package/dist/{chunk-NPYLOZAP.js → chunk-5LYFSZ7O.js} +12 -12
- package/dist/{chunk-6TCVR53X.js → chunk-O5LEQHDM.js} +2 -2
- package/dist/{chunk-QP3BIGSC.js → chunk-OO4AEMQB.js} +7633 -7650
- package/dist/chunk-OO4AEMQB.js.map +1 -0
- package/dist/chunk-P3HLDT77.js +59 -0
- package/dist/chunk-P3HLDT77.js.map +1 -0
- package/dist/chunk-SSWEWU3V.js +348 -0
- package/dist/chunk-SSWEWU3V.js.map +1 -0
- package/dist/chunk-TEMFILR7.js +143 -0
- package/dist/chunk-TEMFILR7.js.map +1 -0
- package/dist/connect.d.ts +325 -0
- package/dist/connect.js +182 -0
- package/dist/connect.js.map +1 -0
- package/dist/connection-authority.js +28 -334
- package/dist/connection-authority.js.map +1 -1
- package/dist/editable-artifact-codec-registry.js +2 -2
- package/dist/editable-artifact-live.js +2 -2
- package/dist/editable-artifact-serialized-commit.js +3 -3
- package/dist/editable-artifacts.js +24 -24
- package/dist/external-identities.d.ts +620 -0
- package/dist/external-identities.js +34 -0
- package/dist/external-identities.js.map +1 -0
- package/dist/google-drive.js +12 -11
- package/dist/google-drive.js.map +1 -1
- package/dist/host-mcp-bindings.d.ts +297 -0
- package/dist/host-mcp-bindings.js +195 -0
- package/dist/host-mcp-bindings.js.map +1 -0
- package/dist/index.d.ts +149 -71
- package/dist/index.js +85 -81
- package/dist/personal-github.js +10 -9
- package/dist/personal-github.js.map +1 -1
- package/package.json +13 -1
- package/src/connect.ts +202 -0
- package/src/external-identities.ts +213 -0
- package/src/host-mcp-bindings.ts +226 -0
- package/src/index.ts +158 -68
- package/dist/chunk-QP3BIGSC.js.map +0 -1
- /package/dist/{chunk-NPYLOZAP.js.map → chunk-5LYFSZ7O.js.map} +0 -0
- /package/dist/{chunk-6TCVR53X.js.map → chunk-O5LEQHDM.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/host-mcp-bindings.ts"],"sourcesContent":["import { z } from \"zod\";\nexport { HostMcpCreateSelections, type HostMcpCreateSelection } from \"./index\";\nimport { McpServerConnectionRef, SessionTenancyVisibility } from \"./index\";\nimport {\n ConnectionUseAuthoritySnapshot,\n IssueConnectionUseGrantRequest,\n} from \"./connection-authority\";\nimport { ExternalIdentity } from \"./external-identities\";\nexport const HostMcpOwnerSubject = z.union([\n ExternalIdentity.shape.subjectId,\n z\n .string()\n .max(4096)\n .regex(/^user:[^\\r\\n\\u0000]+$/),\n]);\n\n/** Credential-free, immutable destination and host connection selection. */\nexport const HostMcpBindingDefinition = z\n .object({\n serverId: z.string().min(1).max(256),\n destinationUrl: z\n .string()\n .url()\n .max(4096)\n .refine((value) => {\n const url = new URL(value);\n return url.protocol === \"https:\" && !url.username && !url.password && !url.hash;\n }, \"Host binding requires an HTTPS destination without userinfo or fragment\")\n .transform((value) => new URL(value).toString()),\n connectionRef: McpServerConnectionRef,\n })\n .strict()\n .superRefine((value, context) => {\n if (value.connectionRef.hostBinding)\n context.addIssue({\n code: \"custom\",\n path: [\"connectionRef\", \"hostBinding\"],\n message: \"A binding definition cannot reference another binding\",\n });\n if (value.connectionRef.authoritySource !== \"host\" || !value.connectionRef.connectionId)\n context.addIssue({\n code: \"custom\",\n path: [\"connectionRef\"],\n message: \"Explicit host connection authority is required\",\n });\n if (new TextEncoder().encode(JSON.stringify(value)).byteLength > 65_536)\n context.addIssue({ code: \"custom\", message: \"Host binding definition exceeds 64 KiB\" });\n });\nexport type HostMcpBindingDefinition = z.infer<typeof HostMcpBindingDefinition>;\n\nexport const HostMcpBinding = z\n .object({\n id: z.string().uuid(),\n accountId: z.string().uuid(),\n workspaceId: z.string().uuid(),\n ownerSubjectId: HostMcpOwnerSubject,\n authorizationRevision: z.number().int().positive().safe(),\n generation: z.number().int().positive().safe(),\n status: z.enum([\"active\", \"revoked\"]),\n definition: HostMcpBindingDefinition,\n createdAt: z.string().datetime({ offset: true }),\n revokedAt: z.string().datetime({ offset: true }).nullable(),\n })\n .strict();\nexport type HostMcpBinding = z.infer<typeof HostMcpBinding>;\n\nexport const CreateHostMcpBindingRequest = z\n .object({\n operationId: z.string().uuid(),\n definition: HostMcpBindingDefinition,\n })\n .strict();\nexport type CreateHostMcpBindingRequest = z.infer<typeof CreateHostMcpBindingRequest>;\n\n/** Internal owner-authorized issuance; never itself proves caller identity. */\nconst HostMcpDelegationGrant = IssueConnectionUseGrantRequest.superRefine((value, context) => {\n if (\n Boolean(value.sessionId) !== (value.expectedAuthorityEpoch != null) ||\n (value.expectedAuthorityEpoch != null && !Number.isSafeInteger(value.expectedAuthorityEpoch))\n ) {\n context.addIssue({\n code: \"custom\",\n message: \"Host session grants require a matching safe authority epoch\",\n });\n }\n});\nexport const IssueHostMcpDelegationRequest = z\n .object({\n operationId: z.string().uuid(),\n bindingId: z.string().uuid(),\n expectedBindingGeneration: z.number().int().positive().safe(),\n grant: HostMcpDelegationGrant,\n })\n .strict();\nexport type IssueHostMcpDelegationRequest = z.infer<typeof IssueHostMcpDelegationRequest>;\n\nexport const HostMcpDelegation = z\n .object({\n id: z.string().uuid(),\n accountId: z.string().uuid(),\n workspaceId: z.string().uuid(),\n ownerSubjectId: HostMcpOwnerSubject,\n ownerAuthorizationRevision: z.number().int().positive().safe(),\n bindingId: z.string().uuid(),\n bindingGeneration: z.number().int().positive().safe(),\n grant: HostMcpDelegationGrant,\n generation: z.number().int().positive().safe(),\n status: z.enum([\"active\", \"revoked\"]),\n createdAt: z.string().datetime({ offset: true }),\n revokedAt: z.string().datetime({ offset: true }).nullable(),\n })\n .strict();\nexport type HostMcpDelegation = z.infer<typeof HostMcpDelegation>;\n\n/** Internal admission evidence, not a caller-supplied permission or credential.\n * Persistence must construct this from live authenticated authority and freeze\n * it with accepted work. Runtime use must independently revalidate that work,\n * membership, binding and delegation. No API key is retained as execution rights.\n */\nexport const HostMcpAcceptedAuthority = z\n .object({\n version: z.literal(1),\n accountId: z.string().uuid(),\n workspaceId: z.string().uuid(),\n targetSessionId: z.string().uuid(),\n targetSessionVisibility: SessionTenancyVisibility,\n targetSessionAuthorityEpoch: z.number().int().positive().safe(),\n acceptedWork: ConnectionUseAuthoritySnapshot.shape.acceptedWork,\n bindingId: z.string().uuid(),\n bindingGeneration: z.number().int().positive().safe(),\n definition: HostMcpBindingDefinition,\n ownerSubjectId: HostMcpOwnerSubject,\n ownerOrganizationMembershipId: z.string().uuid(),\n ownerMembershipAuthorizationRevision: z.number().int().positive().safe(),\n delegationId: z.string().uuid(),\n delegationGeneration: z.number().int().positive().safe(),\n scheduledOrigin: z\n .object({\n taskId: z.string().uuid(),\n taskAuthorityRevision: z.number().int().positive().safe(),\n runId: z.string().uuid(),\n })\n .strict()\n .optional(),\n source: z.discriminatedUnion(\"kind\", [\n z.object({ kind: z.literal(\"direct\") }).strict(),\n z.object({ kind: z.literal(\"scheduled_task\") }).strict(),\n z\n .object({\n kind: z.literal(\"child_turn\"),\n sessionId: z.string().uuid(),\n turnId: z.string().uuid(),\n })\n .strict(),\n z\n .object({\n kind: z.literal(\"inherited_turn\"),\n sessionId: z.string().uuid(),\n turnId: z.string().uuid(),\n })\n .strict(),\n ]),\n })\n .strict()\n .superRefine((value, context) => {\n if (\n (value.source.kind === \"direct\" && value.scheduledOrigin) ||\n (value.source.kind === \"scheduled_task\" &&\n (!value.scheduledOrigin ||\n value.acceptedWork.kind !== \"scheduled_task\" ||\n value.scheduledOrigin.taskId !== value.acceptedWork.taskId ||\n value.scheduledOrigin.runId !== value.acceptedWork.runId ||\n value.scheduledOrigin.taskAuthorityRevision !== value.acceptedWork.taskAuthorityRevision))\n )\n context.addIssue({\n code: \"custom\",\n message: \"Scheduled host authority must retain its exact run origin\",\n });\n if (\n value.acceptedWork.kind === \"turn\" &&\n value.source.kind === \"inherited_turn\" &&\n value.acceptedWork.turnId === value.source.turnId\n ) {\n context.addIssue({\n code: \"custom\",\n path: [\"source\"],\n message: \"Accepted work cannot inherit from itself\",\n });\n }\n if (\n value.acceptedWork.kind === \"scheduled_task\" &&\n !Number.isSafeInteger(value.acceptedWork.taskAuthorityRevision)\n ) {\n context.addIssue({\n code: \"custom\",\n path: [\"acceptedWork\"],\n message: \"Task authority revision must be a safe integer\",\n });\n }\n if (new TextEncoder().encode(JSON.stringify(value)).byteLength > 65_536) {\n context.addIssue({ code: \"custom\", message: \"Host accepted authority exceeds 64 KiB\" });\n }\n });\nexport type HostMcpAcceptedAuthority = z.infer<typeof HostMcpAcceptedAuthority>;\n\n/** Credential-free selection frozen on one immutable scheduled-task revision. */\nexport const HostMcpTaskAuthority = z\n .object({\n version: z.literal(1),\n accountId: z.string().uuid(),\n workspaceId: z.string().uuid(),\n taskId: z.string().uuid(),\n taskAuthorityRevision: z.number().int().positive().safe(),\n taskExecutionDigest: z.string().regex(/^[0-9a-f]{64}$/),\n ownerSubjectId: HostMcpOwnerSubject,\n ownerOrganizationMembershipId: z.string().uuid(),\n ownerMembershipAuthorizationRevision: z.number().int().positive().safe(),\n bindingId: z.string().uuid(),\n bindingGeneration: z.number().int().positive().safe(),\n delegationId: z.string().uuid(),\n delegationGeneration: z.number().int().positive().safe(),\n definition: HostMcpBindingDefinition,\n context: SessionTenancyVisibility,\n })\n .strict();\nexport type HostMcpTaskAuthority = z.infer<typeof HostMcpTaskAuthority>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,SAAS;AAQX,IAAM,sBAAsB,EAAE,MAAM;AAAA,EACzC,iBAAiB,MAAM;AAAA,EACvB,EACG,OAAO,EACP,IAAI,IAAI,EACR,MAAM,uBAAuB;AAClC,CAAC;AAGM,IAAM,2BAA2B,EACrC,OAAO;AAAA,EACN,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG;AAAA,EACnC,gBAAgB,EACb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OAAQ;AACvE,YAAQ,SAAS,EAAE,MAAM,UAAU,SAAS,yCAAyC,CAAC;AAAA,EACxF;AACF,CAAC;AAII,IAAM,uBAAuB,EACjC,OAAO;AAAA,EACN,SAAS,EAAE,QAAQ,CAAC;AAAA,EACpB,WAAW,EAAE,OAAO,EAAE,KAAK;AAAA,EAC3B,aAAa,EAAE,OAAO,EAAE,KAAK;AAAA,EAC7B,QAAQ,EAAE,OAAO,EAAE,KAAK;AAAA,EACxB,uBAAuB,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK;AAAA,EACxD,qBAAqB,EAAE,OAAO,EAAE,MAAM,gBAAgB;AAAA,EACtD,gBAAgB;AAAA,EAChB,+BAA+B,EAAE,OAAO,EAAE,KAAK;AAAA,EAC/C,sCAAsC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK;AAAA,EACvE,WAAW,EAAE,OAAO,EAAE,KAAK;AAAA,EAC3B,mBAAmB,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK;AAAA,EACpD,cAAc,EAAE,OAAO,EAAE,KAAK;AAAA,EAC9B,sBAAsB,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK;AAAA,EACvD,YAAY;AAAA,EACZ,SAAS;AACX,CAAC,EACA,OAAO;","names":[]}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,12 @@ export * from "./bundled-skills.js";
|
|
|
3
3
|
export * from "./model-connection-access.js";
|
|
4
4
|
export * from "./sandbox-provider-command.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
|
+
export declare const HostMcpCreateSelections: z.ZodArray<z.ZodObject<{
|
|
7
|
+
serverId: z.ZodString;
|
|
8
|
+
delegationId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
9
|
+
generation: z.ZodNumber;
|
|
10
|
+
}, z.core.$strict>>;
|
|
11
|
+
export type HostMcpCreateSelection = z.input<typeof HostMcpCreateSelections>[number];
|
|
6
12
|
export { siteSessionPath, SiteSessionPathError } from "./site-session-http.js";
|
|
7
13
|
import { type SessionEventBoundarySurface } from "./event-preview.js";
|
|
8
14
|
export * from "./slack-bot-scopes.js";
|
|
@@ -5007,6 +5013,10 @@ export type McpConnectionResourceScope = z.infer<typeof McpConnectionResourceSco
|
|
|
5007
5013
|
export declare const McpServerConnectionRef: z.ZodObject<{
|
|
5008
5014
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
5009
5015
|
authoritySource: z.ZodOptional<z.ZodLiteral<"host">>;
|
|
5016
|
+
hostBinding: z.ZodOptional<z.ZodObject<{
|
|
5017
|
+
bindingId: z.ZodString;
|
|
5018
|
+
generation: z.ZodNumber;
|
|
5019
|
+
}, z.core.$strict>>;
|
|
5010
5020
|
provider: z.ZodOptional<z.ZodString>;
|
|
5011
5021
|
providerDomain: z.ZodString;
|
|
5012
5022
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -5303,7 +5313,30 @@ export type McpCredentialResolution = {
|
|
|
5303
5313
|
selectedResources?: McpConnectionResourceScope[];
|
|
5304
5314
|
authorizationUrl?: string;
|
|
5305
5315
|
};
|
|
5316
|
+
/** Non-turn authority captured by the authenticated API gateway, never by caller JSON. */
|
|
5317
|
+
export type McpGatewayCredentialAuthority = {
|
|
5318
|
+
kind: "external_user" | "organization_service";
|
|
5319
|
+
subjectId: string;
|
|
5320
|
+
permissions: AccessGrant["permissions"];
|
|
5321
|
+
};
|
|
5322
|
+
export type McpGatewayCredentialsRequest = Pick<McpCredentialsRequest, "accountId" | "workspaceId" | "destinationUrl" | "credentialTarget" | "serverId" | "toolName" | "connectionRef" | "forceRefresh"> & {
|
|
5323
|
+
surface: "workspace_gateway";
|
|
5324
|
+
requestId: string;
|
|
5325
|
+
authority: McpGatewayCredentialAuthority;
|
|
5326
|
+
};
|
|
5327
|
+
export type McpGatewayCredentialResolution = (Omit<Extract<McpCredentialResolution, {
|
|
5328
|
+
status: "ok";
|
|
5329
|
+
}>, "sessionId"> & {
|
|
5330
|
+
requestId: string;
|
|
5331
|
+
}) | (Omit<Extract<McpCredentialResolution, {
|
|
5332
|
+
status: "auth_needed";
|
|
5333
|
+
}>, "sessionId"> & {
|
|
5334
|
+
requestId: string;
|
|
5335
|
+
});
|
|
5306
5336
|
export type ConnectionCredentialsPort = {
|
|
5337
|
+
/** Restrict an optional remote adapter to explicit host refs. Omission keeps
|
|
5338
|
+
* existing in-process host override and legacy-reference behavior. */
|
|
5339
|
+
mcpAuthoritySource?: "host";
|
|
5307
5340
|
gitCredentials?(input: GitCredentialsRequest): Promise<GitCredentials>;
|
|
5308
5341
|
sandboxSecrets?(input: SandboxSecretsRequest): Promise<SandboxSecrets>;
|
|
5309
5342
|
/**
|
|
@@ -5319,6 +5352,9 @@ export type ConnectionCredentialsPort = {
|
|
|
5319
5352
|
* used by model-visible MCP tools and the exact-attempt Codemode projection.
|
|
5320
5353
|
*/
|
|
5321
5354
|
mcpCredentials?(input: McpCredentialsRequest): Promise<McpCredentialResolution>;
|
|
5355
|
+
/** Explicit opt-in for authenticated pre-session discovery and invocation.
|
|
5356
|
+
* Does not call the turn-based mcpCredentials fallback or grant durable use. */
|
|
5357
|
+
mcpGatewayCredentials?(input: McpGatewayCredentialsRequest): Promise<McpGatewayCredentialResolution>;
|
|
5322
5358
|
};
|
|
5323
5359
|
export type GitHubInstallationSummary = {
|
|
5324
5360
|
installationId: number;
|
|
@@ -6873,6 +6909,10 @@ export declare const SessionMcpServerInput: z.ZodObject<{
|
|
|
6873
6909
|
connectionRef: z.ZodOptional<z.ZodObject<{
|
|
6874
6910
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
6875
6911
|
authoritySource: z.ZodOptional<z.ZodLiteral<"host">>;
|
|
6912
|
+
hostBinding: z.ZodOptional<z.ZodObject<{
|
|
6913
|
+
bindingId: z.ZodString;
|
|
6914
|
+
generation: z.ZodNumber;
|
|
6915
|
+
}, z.core.$strict>>;
|
|
6876
6916
|
provider: z.ZodOptional<z.ZodString>;
|
|
6877
6917
|
providerDomain: z.ZodString;
|
|
6878
6918
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -6909,6 +6949,10 @@ export declare const SessionMcpServerMetadata: z.ZodObject<{
|
|
|
6909
6949
|
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
6910
6950
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
6911
6951
|
authoritySource: z.ZodOptional<z.ZodLiteral<"host">>;
|
|
6952
|
+
hostBinding: z.ZodOptional<z.ZodObject<{
|
|
6953
|
+
bindingId: z.ZodString;
|
|
6954
|
+
generation: z.ZodNumber;
|
|
6955
|
+
}, z.core.$strict>>;
|
|
6912
6956
|
provider: z.ZodOptional<z.ZodString>;
|
|
6913
6957
|
providerDomain: z.ZodString;
|
|
6914
6958
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -6945,6 +6989,10 @@ export declare const UpdateSessionMcpApprovalPolicyResponse: z.ZodObject<{
|
|
|
6945
6989
|
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
6946
6990
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
6947
6991
|
authoritySource: z.ZodOptional<z.ZodLiteral<"host">>;
|
|
6992
|
+
hostBinding: z.ZodOptional<z.ZodObject<{
|
|
6993
|
+
bindingId: z.ZodString;
|
|
6994
|
+
generation: z.ZodNumber;
|
|
6995
|
+
}, z.core.$strict>>;
|
|
6948
6996
|
provider: z.ZodOptional<z.ZodString>;
|
|
6949
6997
|
providerDomain: z.ZodString;
|
|
6950
6998
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -8220,10 +8268,10 @@ export type SessionAuthorizationDecision = z.infer<typeof SessionAuthorizationDe
|
|
|
8220
8268
|
export declare const SESSION_AUTHORIZATION_LIST_SCOPE_MAX_IDS = 10000;
|
|
8221
8269
|
/**
|
|
8222
8270
|
* How far a live agent attempt on a session may reach across the workspace,
|
|
8223
|
-
*
|
|
8224
|
-
*
|
|
8225
|
-
*
|
|
8226
|
-
*
|
|
8271
|
+
* under ordinary resource authorization. `workspace` is the platform default.
|
|
8272
|
+
* `user` limits outgoing reach to the same canonical {@link SessionScopeSubjectId};
|
|
8273
|
+
* `session` limits it to the own root tree. Target task scope does not restrict
|
|
8274
|
+
* incoming access; private ownership remains enforced. Humans and API keys
|
|
8227
8275
|
* are unaffected: this is an agent-to-agent fence enforced only in the core
|
|
8228
8276
|
* session-authorization seam.
|
|
8229
8277
|
*/
|
|
@@ -8233,34 +8281,30 @@ export declare const SessionAgentAccess: z.ZodEnum<{
|
|
|
8233
8281
|
workspace: "workspace";
|
|
8234
8282
|
}>;
|
|
8235
8283
|
export type SessionAgentAccess = z.infer<typeof SessionAgentAccess>;
|
|
8236
|
-
export declare const SESSION_END_USER_SOURCE_MAX_CHARS = 200;
|
|
8237
|
-
export declare const SESSION_END_USER_ID_MAX_CHARS = 1024;
|
|
8238
8284
|
/**
|
|
8239
|
-
*
|
|
8240
|
-
*
|
|
8241
|
-
*
|
|
8242
|
-
* scopes `agentAccess: "user"` reach, `memoryScope: "user"` Memory rows, and
|
|
8243
|
-
* the session-list `endUserSource`/`endUserId` filter.
|
|
8285
|
+
* Server-derived canonical user for the session's agent-reach boundary.
|
|
8286
|
+
* This is an output/filter value, never caller-supplied creation authority.
|
|
8287
|
+
* Human visibility remains an independent resource authorization check.
|
|
8244
8288
|
*/
|
|
8245
|
-
export declare const
|
|
8246
|
-
|
|
8247
|
-
id: z.ZodString;
|
|
8248
|
-
}, z.core.$strict>;
|
|
8249
|
-
export type SessionEndUser = z.infer<typeof SessionEndUser>;
|
|
8289
|
+
export declare const SessionScopeSubjectId: z.ZodString;
|
|
8290
|
+
export type SessionScopeSubjectId = z.infer<typeof SessionScopeSubjectId>;
|
|
8250
8291
|
/**
|
|
8251
8292
|
* The typed Workspace Memory selector an agent reads and writes. `workspace`
|
|
8252
|
-
* is
|
|
8293
|
+
* is shared memory; `user` adds a private layer
|
|
8253
8294
|
* (the agent still reads workspace facts and saves to its narrowest scope);
|
|
8254
8295
|
* `off` registers no Memory tools for the session. `user` requires an
|
|
8255
|
-
*
|
|
8296
|
+
* authenticated canonical user on the active turn. Use task notes for task-local data.
|
|
8256
8297
|
*/
|
|
8257
8298
|
export declare const SessionMemoryScope: z.ZodEnum<{
|
|
8258
8299
|
off: "off";
|
|
8259
|
-
session: "session";
|
|
8260
8300
|
user: "user";
|
|
8261
8301
|
workspace: "workspace";
|
|
8262
8302
|
}>;
|
|
8263
8303
|
export type SessionMemoryScope = z.infer<typeof SessionMemoryScope>;
|
|
8304
|
+
/** Read old persisted selectors without promoting task-local data or authority.
|
|
8305
|
+
* New requests must use SessionMemoryScope directly and reject `session`.
|
|
8306
|
+
* Historical Memory rows remain retained; task notes own new task-local facts. */
|
|
8307
|
+
export declare function storedSessionMemoryScope(value: unknown): SessionMemoryScope;
|
|
8264
8308
|
/**
|
|
8265
8309
|
* The calling agent attempt's own access scope, resolved by OpenGeni from the
|
|
8266
8310
|
* caller session row (never from the request) and applied as one SQL
|
|
@@ -8273,10 +8317,7 @@ export declare const SessionAgentAccessViewer: z.ZodObject<{
|
|
|
8273
8317
|
user: "user";
|
|
8274
8318
|
workspace: "workspace";
|
|
8275
8319
|
}>;
|
|
8276
|
-
|
|
8277
|
-
source: z.ZodString;
|
|
8278
|
-
id: z.ZodString;
|
|
8279
|
-
}, z.core.$strict>>;
|
|
8320
|
+
scopeSubjectId: z.ZodNullable<z.ZodString>;
|
|
8280
8321
|
}, z.core.$strict>;
|
|
8281
8322
|
export type SessionAgentAccessViewer = z.infer<typeof SessionAgentAccessViewer>;
|
|
8282
8323
|
export declare const SessionAuthorizationListScope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -8288,10 +8329,7 @@ export declare const SessionAuthorizationListScope: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8288
8329
|
user: "user";
|
|
8289
8330
|
workspace: "workspace";
|
|
8290
8331
|
}>;
|
|
8291
|
-
|
|
8292
|
-
source: z.ZodString;
|
|
8293
|
-
id: z.ZodString;
|
|
8294
|
-
}, z.core.$strict>>;
|
|
8332
|
+
scopeSubjectId: z.ZodNullable<z.ZodString>;
|
|
8295
8333
|
}, z.core.$strict>>;
|
|
8296
8334
|
}, z.core.$strip>, z.ZodObject<{
|
|
8297
8335
|
kind: z.ZodLiteral<"scoped">;
|
|
@@ -8304,10 +8342,7 @@ export declare const SessionAuthorizationListScope: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8304
8342
|
user: "user";
|
|
8305
8343
|
workspace: "workspace";
|
|
8306
8344
|
}>;
|
|
8307
|
-
|
|
8308
|
-
source: z.ZodString;
|
|
8309
|
-
id: z.ZodString;
|
|
8310
|
-
}, z.core.$strict>>;
|
|
8345
|
+
scopeSubjectId: z.ZodNullable<z.ZodString>;
|
|
8311
8346
|
}, z.core.$strict>>;
|
|
8312
8347
|
}, z.core.$strip>], "kind">;
|
|
8313
8348
|
export type SessionAuthorizationListScope = z.infer<typeof SessionAuthorizationListScope>;
|
|
@@ -16122,6 +16157,11 @@ export declare const CreateScheduledTaskRequest: z.ZodUnion<readonly [z.ZodPipe<
|
|
|
16122
16157
|
resourceVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16123
16158
|
}, z.core.$strip>;
|
|
16124
16159
|
}, z.core.$strict>>>;
|
|
16160
|
+
selectedHostMcpDelegations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16161
|
+
serverId: z.ZodString;
|
|
16162
|
+
delegationId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
16163
|
+
generation: z.ZodNumber;
|
|
16164
|
+
}, z.core.$strict>>>;
|
|
16125
16165
|
agentConfig: z.ZodObject<{
|
|
16126
16166
|
bundledSkillIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodEnum<{
|
|
16127
16167
|
"builtin:opengeni-documents": "builtin:opengeni-documents";
|
|
@@ -16769,6 +16809,11 @@ export declare const UpdateScheduledTaskRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
16769
16809
|
resourceVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16770
16810
|
}, z.core.$strip>;
|
|
16771
16811
|
}, z.core.$strict>>>;
|
|
16812
|
+
selectedHostMcpDelegations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16813
|
+
serverId: z.ZodString;
|
|
16814
|
+
delegationId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
16815
|
+
generation: z.ZodNumber;
|
|
16816
|
+
}, z.core.$strict>>>;
|
|
16772
16817
|
agentConfig: z.ZodOptional<z.ZodObject<{
|
|
16773
16818
|
bundledSkillIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodEnum<{
|
|
16774
16819
|
"builtin:opengeni-documents": "builtin:opengeni-documents";
|
|
@@ -23044,6 +23089,7 @@ export declare const ConnectionOwnership: z.ZodEnum<{
|
|
|
23044
23089
|
export type ConnectionOwnership = z.infer<typeof ConnectionOwnership>;
|
|
23045
23090
|
export declare const SocialConnection: z.ZodObject<{
|
|
23046
23091
|
id: z.ZodString;
|
|
23092
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
23047
23093
|
accountId: z.ZodString;
|
|
23048
23094
|
workspaceId: z.ZodString;
|
|
23049
23095
|
provider: z.ZodEnum<{
|
|
@@ -23220,6 +23266,7 @@ export declare const FikenInstallRequest: z.ZodObject<{
|
|
|
23220
23266
|
}, z.core.$strip>;
|
|
23221
23267
|
export type FikenInstallRequest = z.infer<typeof FikenInstallRequest>;
|
|
23222
23268
|
export declare const FikenOAuthStartRequest: z.ZodObject<{
|
|
23269
|
+
returnPath: z.ZodOptional<z.ZodString>;
|
|
23223
23270
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
23224
23271
|
}, z.core.$strip>;
|
|
23225
23272
|
export type FikenOAuthStartRequest = z.infer<typeof FikenOAuthStartRequest>;
|
|
@@ -23478,6 +23525,7 @@ export declare const OAuthStartRequest: z.ZodObject<{
|
|
|
23478
23525
|
resource: z.ZodOptional<z.ZodString>;
|
|
23479
23526
|
requestedScopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
23480
23527
|
returnPath: z.ZodOptional<z.ZodString>;
|
|
23528
|
+
returnUrl: z.ZodOptional<z.ZodString>;
|
|
23481
23529
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
23482
23530
|
ownership: z.ZodOptional<z.ZodEnum<{
|
|
23483
23531
|
personal: "personal";
|
|
@@ -23827,6 +23875,10 @@ export declare const EnableCapabilityRequest: z.ZodObject<{
|
|
|
23827
23875
|
connectionRef: z.ZodOptional<z.ZodObject<{
|
|
23828
23876
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
23829
23877
|
authoritySource: z.ZodOptional<z.ZodLiteral<"host">>;
|
|
23878
|
+
hostBinding: z.ZodOptional<z.ZodObject<{
|
|
23879
|
+
bindingId: z.ZodString;
|
|
23880
|
+
generation: z.ZodNumber;
|
|
23881
|
+
}, z.core.$strict>>;
|
|
23830
23882
|
provider: z.ZodOptional<z.ZodString>;
|
|
23831
23883
|
providerDomain: z.ZodString;
|
|
23832
23884
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -25661,13 +25713,9 @@ export declare const Session: z.ZodObject<{
|
|
|
25661
25713
|
user: "user";
|
|
25662
25714
|
workspace: "workspace";
|
|
25663
25715
|
}>>;
|
|
25664
|
-
|
|
25665
|
-
source: z.ZodString;
|
|
25666
|
-
id: z.ZodString;
|
|
25667
|
-
}, z.core.$strict>>>;
|
|
25716
|
+
scopeSubjectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
25668
25717
|
memoryScope: z.ZodDefault<z.ZodEnum<{
|
|
25669
25718
|
off: "off";
|
|
25670
|
-
session: "session";
|
|
25671
25719
|
user: "user";
|
|
25672
25720
|
workspace: "workspace";
|
|
25673
25721
|
}>>;
|
|
@@ -26090,6 +26138,10 @@ export declare const Session: z.ZodObject<{
|
|
|
26090
26138
|
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
26091
26139
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
26092
26140
|
authoritySource: z.ZodOptional<z.ZodLiteral<"host">>;
|
|
26141
|
+
hostBinding: z.ZodOptional<z.ZodObject<{
|
|
26142
|
+
bindingId: z.ZodString;
|
|
26143
|
+
generation: z.ZodNumber;
|
|
26144
|
+
}, z.core.$strict>>;
|
|
26093
26145
|
provider: z.ZodOptional<z.ZodString>;
|
|
26094
26146
|
providerDomain: z.ZodString;
|
|
26095
26147
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -26299,13 +26351,9 @@ export declare const CreateSessionResponse: z.ZodObject<{
|
|
|
26299
26351
|
user: "user";
|
|
26300
26352
|
workspace: "workspace";
|
|
26301
26353
|
}>>;
|
|
26302
|
-
|
|
26303
|
-
source: z.ZodString;
|
|
26304
|
-
id: z.ZodString;
|
|
26305
|
-
}, z.core.$strict>>>;
|
|
26354
|
+
scopeSubjectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
26306
26355
|
memoryScope: z.ZodDefault<z.ZodEnum<{
|
|
26307
26356
|
off: "off";
|
|
26308
|
-
session: "session";
|
|
26309
26357
|
user: "user";
|
|
26310
26358
|
workspace: "workspace";
|
|
26311
26359
|
}>>;
|
|
@@ -26728,6 +26776,10 @@ export declare const CreateSessionResponse: z.ZodObject<{
|
|
|
26728
26776
|
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
26729
26777
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
26730
26778
|
authoritySource: z.ZodOptional<z.ZodLiteral<"host">>;
|
|
26779
|
+
hostBinding: z.ZodOptional<z.ZodObject<{
|
|
26780
|
+
bindingId: z.ZodString;
|
|
26781
|
+
generation: z.ZodNumber;
|
|
26782
|
+
}, z.core.$strict>>;
|
|
26731
26783
|
provider: z.ZodOptional<z.ZodString>;
|
|
26732
26784
|
providerDomain: z.ZodString;
|
|
26733
26785
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -26943,13 +26995,9 @@ export declare const SessionListResponse: z.ZodObject<{
|
|
|
26943
26995
|
user: "user";
|
|
26944
26996
|
workspace: "workspace";
|
|
26945
26997
|
}>>;
|
|
26946
|
-
|
|
26947
|
-
source: z.ZodString;
|
|
26948
|
-
id: z.ZodString;
|
|
26949
|
-
}, z.core.$strict>>>;
|
|
26998
|
+
scopeSubjectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
26950
26999
|
memoryScope: z.ZodDefault<z.ZodEnum<{
|
|
26951
27000
|
off: "off";
|
|
26952
|
-
session: "session";
|
|
26953
27001
|
user: "user";
|
|
26954
27002
|
workspace: "workspace";
|
|
26955
27003
|
}>>;
|
|
@@ -27372,6 +27420,10 @@ export declare const SessionListResponse: z.ZodObject<{
|
|
|
27372
27420
|
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
27373
27421
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
27374
27422
|
authoritySource: z.ZodOptional<z.ZodLiteral<"host">>;
|
|
27423
|
+
hostBinding: z.ZodOptional<z.ZodObject<{
|
|
27424
|
+
bindingId: z.ZodString;
|
|
27425
|
+
generation: z.ZodNumber;
|
|
27426
|
+
}, z.core.$strict>>;
|
|
27375
27427
|
provider: z.ZodOptional<z.ZodString>;
|
|
27376
27428
|
providerDomain: z.ZodString;
|
|
27377
27429
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -27578,13 +27630,9 @@ export declare const SessionListResponse: z.ZodObject<{
|
|
|
27578
27630
|
user: "user";
|
|
27579
27631
|
workspace: "workspace";
|
|
27580
27632
|
}>>;
|
|
27581
|
-
|
|
27582
|
-
source: z.ZodString;
|
|
27583
|
-
id: z.ZodString;
|
|
27584
|
-
}, z.core.$strict>>>;
|
|
27633
|
+
scopeSubjectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
27585
27634
|
memoryScope: z.ZodDefault<z.ZodEnum<{
|
|
27586
27635
|
off: "off";
|
|
27587
|
-
session: "session";
|
|
27588
27636
|
user: "user";
|
|
27589
27637
|
workspace: "workspace";
|
|
27590
27638
|
}>>;
|
|
@@ -28007,6 +28055,10 @@ export declare const SessionListResponse: z.ZodObject<{
|
|
|
28007
28055
|
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
28008
28056
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
28009
28057
|
authoritySource: z.ZodOptional<z.ZodLiteral<"host">>;
|
|
28058
|
+
hostBinding: z.ZodOptional<z.ZodObject<{
|
|
28059
|
+
bindingId: z.ZodString;
|
|
28060
|
+
generation: z.ZodNumber;
|
|
28061
|
+
}, z.core.$strict>>;
|
|
28010
28062
|
provider: z.ZodOptional<z.ZodString>;
|
|
28011
28063
|
providerDomain: z.ZodString;
|
|
28012
28064
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -28169,15 +28221,15 @@ export declare const SessionListResponse: z.ZodObject<{
|
|
|
28169
28221
|
}, z.core.$strip>;
|
|
28170
28222
|
export type SessionListResponse = z.infer<typeof SessionListResponse>;
|
|
28171
28223
|
/**
|
|
28172
|
-
*
|
|
28173
|
-
*
|
|
28174
|
-
* exact lifecycle state.
|
|
28224
|
+
* Organization session queries may filter a canonical scope subject and lifecycle
|
|
28225
|
+
* state. Legacy end-user label filters are rejected.
|
|
28175
28226
|
*/
|
|
28176
28227
|
export declare const ListOrganizationSessionsQuery: z.ZodObject<{
|
|
28177
28228
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
28178
28229
|
cursor: z.ZodOptional<z.ZodString>;
|
|
28179
|
-
|
|
28180
|
-
|
|
28230
|
+
scopeSubjectId: z.ZodOptional<z.ZodString>;
|
|
28231
|
+
endUserSource: z.ZodOptional<z.ZodNever>;
|
|
28232
|
+
endUserId: z.ZodOptional<z.ZodNever>;
|
|
28181
28233
|
status: z.ZodOptional<z.ZodEnum<{
|
|
28182
28234
|
cancelled: "cancelled";
|
|
28183
28235
|
failed: "failed";
|
|
@@ -28246,13 +28298,9 @@ export declare const OrganizationSessionListResponse: z.ZodObject<{
|
|
|
28246
28298
|
user: "user";
|
|
28247
28299
|
workspace: "workspace";
|
|
28248
28300
|
}>>;
|
|
28249
|
-
|
|
28250
|
-
source: z.ZodString;
|
|
28251
|
-
id: z.ZodString;
|
|
28252
|
-
}, z.core.$strict>>>;
|
|
28301
|
+
scopeSubjectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
28253
28302
|
memoryScope: z.ZodDefault<z.ZodEnum<{
|
|
28254
28303
|
off: "off";
|
|
28255
|
-
session: "session";
|
|
28256
28304
|
user: "user";
|
|
28257
28305
|
workspace: "workspace";
|
|
28258
28306
|
}>>;
|
|
@@ -28675,6 +28723,10 @@ export declare const OrganizationSessionListResponse: z.ZodObject<{
|
|
|
28675
28723
|
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
28676
28724
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
28677
28725
|
authoritySource: z.ZodOptional<z.ZodLiteral<"host">>;
|
|
28726
|
+
hostBinding: z.ZodOptional<z.ZodObject<{
|
|
28727
|
+
bindingId: z.ZodString;
|
|
28728
|
+
generation: z.ZodNumber;
|
|
28729
|
+
}, z.core.$strict>>;
|
|
28678
28730
|
provider: z.ZodOptional<z.ZodString>;
|
|
28679
28731
|
providerDomain: z.ZodString;
|
|
28680
28732
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -28888,13 +28940,9 @@ export declare const SessionLineageResponse: z.ZodObject<{
|
|
|
28888
28940
|
user: "user";
|
|
28889
28941
|
workspace: "workspace";
|
|
28890
28942
|
}>>;
|
|
28891
|
-
|
|
28892
|
-
source: z.ZodString;
|
|
28893
|
-
id: z.ZodString;
|
|
28894
|
-
}, z.core.$strict>>>;
|
|
28943
|
+
scopeSubjectId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
28895
28944
|
memoryScope: z.ZodDefault<z.ZodEnum<{
|
|
28896
28945
|
off: "off";
|
|
28897
|
-
session: "session";
|
|
28898
28946
|
user: "user";
|
|
28899
28947
|
workspace: "workspace";
|
|
28900
28948
|
}>>;
|
|
@@ -29317,6 +29365,10 @@ export declare const SessionLineageResponse: z.ZodObject<{
|
|
|
29317
29365
|
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
29318
29366
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
29319
29367
|
authoritySource: z.ZodOptional<z.ZodLiteral<"host">>;
|
|
29368
|
+
hostBinding: z.ZodOptional<z.ZodObject<{
|
|
29369
|
+
bindingId: z.ZodString;
|
|
29370
|
+
generation: z.ZodNumber;
|
|
29371
|
+
}, z.core.$strict>>;
|
|
29320
29372
|
provider: z.ZodOptional<z.ZodString>;
|
|
29321
29373
|
providerDomain: z.ZodString;
|
|
29322
29374
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -32258,6 +32310,11 @@ export declare const CreateSessionRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
32258
32310
|
"builtin:opengeni-video-generation": "builtin:opengeni-video-generation";
|
|
32259
32311
|
}>>, z.ZodTransform<("builtin:opengeni-documents" | "builtin:opengeni-presentations" | "builtin:opengeni-projects" | "builtin:opengeni-sites" | "builtin:opengeni-skills" | "builtin:opengeni-spreadsheets" | "builtin:opengeni-video-generation")[], ("builtin:opengeni-documents" | "builtin:opengeni-presentations" | "builtin:opengeni-projects" | "builtin:opengeni-sites" | "builtin:opengeni-skills" | "builtin:opengeni-spreadsheets" | "builtin:opengeni-video-generation")[]>>>;
|
|
32260
32312
|
requestedSessionId: z.ZodOptional<z.ZodString>;
|
|
32313
|
+
selectedHostMcpDelegations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32314
|
+
serverId: z.ZodString;
|
|
32315
|
+
delegationId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
32316
|
+
generation: z.ZodNumber;
|
|
32317
|
+
}, z.core.$strict>>>;
|
|
32261
32318
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
32262
32319
|
private: "private";
|
|
32263
32320
|
workspace: "workspace";
|
|
@@ -32267,13 +32324,10 @@ export declare const CreateSessionRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
32267
32324
|
user: "user";
|
|
32268
32325
|
workspace: "workspace";
|
|
32269
32326
|
}>>;
|
|
32270
|
-
|
|
32271
|
-
|
|
32272
|
-
id: z.ZodString;
|
|
32273
|
-
}, z.core.$strict>>;
|
|
32327
|
+
scopeSubjectId: z.ZodOptional<z.ZodNever>;
|
|
32328
|
+
endUser: z.ZodOptional<z.ZodNever>;
|
|
32274
32329
|
memoryScope: z.ZodDefault<z.ZodEnum<{
|
|
32275
32330
|
off: "off";
|
|
32276
|
-
session: "session";
|
|
32277
32331
|
user: "user";
|
|
32278
32332
|
workspace: "workspace";
|
|
32279
32333
|
}>>;
|
|
@@ -32648,6 +32702,10 @@ export declare const CreateSessionRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
32648
32702
|
connectionRef: z.ZodOptional<z.ZodObject<{
|
|
32649
32703
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
32650
32704
|
authoritySource: z.ZodOptional<z.ZodLiteral<"host">>;
|
|
32705
|
+
hostBinding: z.ZodOptional<z.ZodObject<{
|
|
32706
|
+
bindingId: z.ZodString;
|
|
32707
|
+
generation: z.ZodNumber;
|
|
32708
|
+
}, z.core.$strict>>;
|
|
32651
32709
|
provider: z.ZodOptional<z.ZodString>;
|
|
32652
32710
|
providerDomain: z.ZodString;
|
|
32653
32711
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -32761,6 +32819,11 @@ export declare const HumanInputQuestion: z.ZodObject<{
|
|
|
32761
32819
|
}, z.core.$strip>>>;
|
|
32762
32820
|
}, z.core.$strip>;
|
|
32763
32821
|
export type HumanInputQuestion = z.infer<typeof HumanInputQuestion>;
|
|
32822
|
+
/** Only known presentation wire differences are equivalent. This is not
|
|
32823
|
+
* authorization: response admission still binds the immutable source receipt.
|
|
32824
|
+
* Compare original keys as well as parsed values so unknown fields cannot be
|
|
32825
|
+
* hidden by Zod's ordinary object projection during a pending-card re-freeze. */
|
|
32826
|
+
export declare function canonicalSkillReviewQuestion(question: HumanInputQuestion): HumanInputQuestion | null;
|
|
32764
32827
|
export declare const HumanInputRequestStatus: z.ZodEnum<{
|
|
32765
32828
|
answered: "answered";
|
|
32766
32829
|
cancelled: "cancelled";
|
|
@@ -33010,6 +33073,11 @@ export declare const SessionUserMessagePayload: z.ZodObject<{
|
|
|
33010
33073
|
resourceVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33011
33074
|
}, z.core.$strip>;
|
|
33012
33075
|
}, z.core.$strict>>>;
|
|
33076
|
+
selectedHostMcpDelegations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33077
|
+
serverId: z.ZodString;
|
|
33078
|
+
delegationId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
33079
|
+
generation: z.ZodNumber;
|
|
33080
|
+
}, z.core.$strict>>>;
|
|
33013
33081
|
personalResourceAttachment: z.ZodOptional<z.ZodObject<{
|
|
33014
33082
|
mode: z.ZodEnum<{
|
|
33015
33083
|
always: "always";
|
|
@@ -33128,6 +33196,11 @@ export declare const ClientSessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
33128
33196
|
resourceVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33129
33197
|
}, z.core.$strip>;
|
|
33130
33198
|
}, z.core.$strict>>>;
|
|
33199
|
+
selectedHostMcpDelegations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33200
|
+
serverId: z.ZodString;
|
|
33201
|
+
delegationId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
33202
|
+
generation: z.ZodNumber;
|
|
33203
|
+
}, z.core.$strict>>>;
|
|
33131
33204
|
personalResourceAttachment: z.ZodOptional<z.ZodObject<{
|
|
33132
33205
|
mode: z.ZodEnum<{
|
|
33133
33206
|
always: "always";
|
|
@@ -33272,6 +33345,11 @@ export declare const SteerSessionMessageRequest: z.ZodObject<{
|
|
|
33272
33345
|
resourceVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33273
33346
|
}, z.core.$strip>;
|
|
33274
33347
|
}, z.core.$strict>>>;
|
|
33348
|
+
selectedHostMcpDelegations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33349
|
+
serverId: z.ZodString;
|
|
33350
|
+
delegationId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
33351
|
+
generation: z.ZodNumber;
|
|
33352
|
+
}, z.core.$strict>>>;
|
|
33275
33353
|
personalResourceAttachment: z.ZodOptional<z.ZodObject<{
|
|
33276
33354
|
mode: z.ZodEnum<{
|
|
33277
33355
|
always: "always";
|