@opengeni/contracts 1.4.0 → 1.4.4
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 +1 -1
- package/dist/{chunk-UDKWSRES.js → chunk-4GWPPWL3.js} +2 -2
- package/dist/{chunk-YFEAAOBX.js → chunk-T5AUJN7S.js} +35 -4
- package/dist/chunk-T5AUJN7S.js.map +1 -0
- package/dist/connect.js +1 -1
- package/dist/connection-authority.js +2 -2
- package/dist/google-drive.js +1 -1
- package/dist/host-mcp-bindings.js +2 -2
- package/dist/index.d.ts +15 -0
- package/dist/index.js +1 -1
- package/dist/interaction.d.ts +10 -0
- package/dist/personal-github.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +7 -0
- package/src/interaction.ts +24 -0
- package/dist/chunk-YFEAAOBX.js.map +0 -1
- /package/dist/{chunk-UDKWSRES.js.map → chunk-4GWPPWL3.js.map} +0 -0
package/dist/connect.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
ConnectionUseAuthorizationResult,
|
|
7
7
|
ConnectionUseDenialReason,
|
|
8
8
|
ConnectionUseSelectionSource
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-4GWPPWL3.js";
|
|
10
|
+
import "./chunk-T5AUJN7S.js";
|
|
11
11
|
import "./chunk-4JGHSSB7.js";
|
|
12
12
|
import "./chunk-5IXYF6XN.js";
|
|
13
13
|
import "./chunk-NRMCVHAU.js";
|
package/dist/google-drive.js
CHANGED
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-KR2V42UZ.js";
|
|
4
4
|
import {
|
|
5
5
|
ConnectionUseAuthoritySnapshot
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4GWPPWL3.js";
|
|
7
7
|
import {
|
|
8
8
|
HostMcpCreateSelections,
|
|
9
9
|
ManagedUserResourceGrantMode,
|
|
10
10
|
McpServerConnectionRef,
|
|
11
11
|
SessionTenancyVisibility,
|
|
12
12
|
stableJson
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-T5AUJN7S.js";
|
|
14
14
|
import "./chunk-4JGHSSB7.js";
|
|
15
15
|
import "./chunk-5IXYF6XN.js";
|
|
16
16
|
import "./chunk-NRMCVHAU.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -6521,6 +6521,7 @@ export declare const PromotionalCreditBalance: z.ZodObject<{
|
|
|
6521
6521
|
eligibleModelIds: z.ZodArray<z.ZodString>;
|
|
6522
6522
|
grantId: z.ZodString;
|
|
6523
6523
|
remainingMicros: z.ZodNumber;
|
|
6524
|
+
coversVoice: z.ZodOptional<z.ZodBoolean>;
|
|
6524
6525
|
}, z.core.$strip>;
|
|
6525
6526
|
export type PromotionalCreditBalance = z.infer<typeof PromotionalCreditBalance>;
|
|
6526
6527
|
export declare const BillingBalance: z.ZodObject<{
|
|
@@ -6534,6 +6535,7 @@ export declare const BillingBalance: z.ZodObject<{
|
|
|
6534
6535
|
eligibleModelIds: z.ZodArray<z.ZodString>;
|
|
6535
6536
|
grantId: z.ZodString;
|
|
6536
6537
|
remainingMicros: z.ZodNumber;
|
|
6538
|
+
coversVoice: z.ZodOptional<z.ZodBoolean>;
|
|
6537
6539
|
}, z.core.$strip>>>;
|
|
6538
6540
|
}, z.core.$strip>;
|
|
6539
6541
|
export type BillingBalance = z.infer<typeof BillingBalance>;
|
|
@@ -6591,6 +6593,7 @@ export declare const BillingCheckoutStatus: z.ZodObject<{
|
|
|
6591
6593
|
eligibleModelIds: z.ZodArray<z.ZodString>;
|
|
6592
6594
|
grantId: z.ZodString;
|
|
6593
6595
|
remainingMicros: z.ZodNumber;
|
|
6596
|
+
coversVoice: z.ZodOptional<z.ZodBoolean>;
|
|
6594
6597
|
}, z.core.$strip>>>;
|
|
6595
6598
|
}, z.core.$strip>>;
|
|
6596
6599
|
}, z.core.$strip>;
|
|
@@ -26300,6 +26303,9 @@ export declare const CapabilityRuntime: z.ZodObject<{
|
|
|
26300
26303
|
verified_probe: "verified_probe";
|
|
26301
26304
|
}>;
|
|
26302
26305
|
}, z.core.$strip>>;
|
|
26306
|
+
operatorOAuthClient: z.ZodOptional<z.ZodObject<{
|
|
26307
|
+
configured: z.ZodBoolean;
|
|
26308
|
+
}, z.core.$strip>>;
|
|
26303
26309
|
}, z.core.$strip>;
|
|
26304
26310
|
export type CapabilityRuntime = z.infer<typeof CapabilityRuntime>;
|
|
26305
26311
|
export declare const CapabilityCatalogItem: z.ZodObject<{
|
|
@@ -26372,6 +26378,9 @@ export declare const CapabilityCatalogItem: z.ZodObject<{
|
|
|
26372
26378
|
verified_probe: "verified_probe";
|
|
26373
26379
|
}>;
|
|
26374
26380
|
}, z.core.$strip>>;
|
|
26381
|
+
operatorOAuthClient: z.ZodOptional<z.ZodObject<{
|
|
26382
|
+
configured: z.ZodBoolean;
|
|
26383
|
+
}, z.core.$strip>>;
|
|
26375
26384
|
}, z.core.$strip>>;
|
|
26376
26385
|
lifecycle: z.ZodDefault<z.ZodObject<{
|
|
26377
26386
|
status: z.ZodEnum<{
|
|
@@ -26582,6 +26591,9 @@ export declare const CapabilityCatalogResponse: z.ZodObject<{
|
|
|
26582
26591
|
verified_probe: "verified_probe";
|
|
26583
26592
|
}>;
|
|
26584
26593
|
}, z.core.$strip>>;
|
|
26594
|
+
operatorOAuthClient: z.ZodOptional<z.ZodObject<{
|
|
26595
|
+
configured: z.ZodBoolean;
|
|
26596
|
+
}, z.core.$strip>>;
|
|
26585
26597
|
}, z.core.$strip>>;
|
|
26586
26598
|
lifecycle: z.ZodDefault<z.ZodObject<{
|
|
26587
26599
|
status: z.ZodEnum<{
|
|
@@ -26726,6 +26738,9 @@ export declare const DiscoverMcpCapabilitiesResponse: z.ZodObject<{
|
|
|
26726
26738
|
verified_probe: "verified_probe";
|
|
26727
26739
|
}>;
|
|
26728
26740
|
}, z.core.$strip>>;
|
|
26741
|
+
operatorOAuthClient: z.ZodOptional<z.ZodObject<{
|
|
26742
|
+
configured: z.ZodBoolean;
|
|
26743
|
+
}, z.core.$strip>>;
|
|
26729
26744
|
}, z.core.$strip>>;
|
|
26730
26745
|
lifecycle: z.ZodDefault<z.ZodObject<{
|
|
26731
26746
|
status: z.ZodEnum<{
|
package/dist/index.js
CHANGED
|
@@ -2187,7 +2187,7 @@ import {
|
|
|
2187
2187
|
workspaceLearningPolicyRouterContext,
|
|
2188
2188
|
workspaceLearningSourceKey,
|
|
2189
2189
|
workspaceSlackReactionChannelAllowed
|
|
2190
|
-
} from "./chunk-
|
|
2190
|
+
} from "./chunk-T5AUJN7S.js";
|
|
2191
2191
|
import {
|
|
2192
2192
|
EPHEMERAL_CHROMIUM_DRIVER_ID,
|
|
2193
2193
|
browserSessionStorageMode
|
package/dist/interaction.d.ts
CHANGED
|
@@ -7700,6 +7700,7 @@ export declare const ComputerSessionCapabilities: z.ZodObject<{
|
|
|
7700
7700
|
screenCapture: z.ZodBoolean;
|
|
7701
7701
|
semanticActions: z.ZodBoolean;
|
|
7702
7702
|
pointerInput: z.ZodBoolean;
|
|
7703
|
+
pointerClickContinuation: z.ZodOptional<z.ZodBoolean>;
|
|
7703
7704
|
keyboardInput: z.ZodBoolean;
|
|
7704
7705
|
clipboard: z.ZodBoolean;
|
|
7705
7706
|
backgroundActions: z.ZodBoolean;
|
|
@@ -7770,6 +7771,7 @@ export declare const ComputerSession: z.ZodObject<{
|
|
|
7770
7771
|
screenCapture: z.ZodBoolean;
|
|
7771
7772
|
semanticActions: z.ZodBoolean;
|
|
7772
7773
|
pointerInput: z.ZodBoolean;
|
|
7774
|
+
pointerClickContinuation: z.ZodOptional<z.ZodBoolean>;
|
|
7773
7775
|
keyboardInput: z.ZodBoolean;
|
|
7774
7776
|
clipboard: z.ZodBoolean;
|
|
7775
7777
|
backgroundActions: z.ZodBoolean;
|
|
@@ -7956,6 +7958,8 @@ export declare const ComputerAction: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7956
7958
|
middle: "middle";
|
|
7957
7959
|
right: "right";
|
|
7958
7960
|
}>>;
|
|
7961
|
+
clickCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
7962
|
+
continuationOfOperationId: z.ZodOptional<z.ZodString>;
|
|
7959
7963
|
}, z.core.$strict>, z.ZodObject<{
|
|
7960
7964
|
type: z.ZodLiteral<"keyboard">;
|
|
7961
7965
|
action: z.ZodEnum<{
|
|
@@ -8058,6 +8062,8 @@ export declare const ComputerActionCommand: z.ZodObject<{
|
|
|
8058
8062
|
middle: "middle";
|
|
8059
8063
|
right: "right";
|
|
8060
8064
|
}>>;
|
|
8065
|
+
clickCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
8066
|
+
continuationOfOperationId: z.ZodOptional<z.ZodString>;
|
|
8061
8067
|
}, z.core.$strict>, z.ZodObject<{
|
|
8062
8068
|
type: z.ZodLiteral<"keyboard">;
|
|
8063
8069
|
action: z.ZodEnum<{
|
|
@@ -8285,6 +8291,7 @@ export declare const ComputerSessionListResponse: z.ZodObject<{
|
|
|
8285
8291
|
screenCapture: z.ZodBoolean;
|
|
8286
8292
|
semanticActions: z.ZodBoolean;
|
|
8287
8293
|
pointerInput: z.ZodBoolean;
|
|
8294
|
+
pointerClickContinuation: z.ZodOptional<z.ZodBoolean>;
|
|
8288
8295
|
keyboardInput: z.ZodBoolean;
|
|
8289
8296
|
clipboard: z.ZodBoolean;
|
|
8290
8297
|
backgroundActions: z.ZodBoolean;
|
|
@@ -8364,6 +8371,7 @@ export declare const ComputerSessionMutationResponse: z.ZodObject<{
|
|
|
8364
8371
|
screenCapture: z.ZodBoolean;
|
|
8365
8372
|
semanticActions: z.ZodBoolean;
|
|
8366
8373
|
pointerInput: z.ZodBoolean;
|
|
8374
|
+
pointerClickContinuation: z.ZodOptional<z.ZodBoolean>;
|
|
8367
8375
|
keyboardInput: z.ZodBoolean;
|
|
8368
8376
|
clipboard: z.ZodBoolean;
|
|
8369
8377
|
backgroundActions: z.ZodBoolean;
|
|
@@ -8601,6 +8609,8 @@ export declare const ComputerActionRequest: z.ZodObject<{
|
|
|
8601
8609
|
middle: "middle";
|
|
8602
8610
|
right: "right";
|
|
8603
8611
|
}>>;
|
|
8612
|
+
clickCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
|
|
8613
|
+
continuationOfOperationId: z.ZodOptional<z.ZodString>;
|
|
8604
8614
|
}, z.core.$strict>, z.ZodObject<{
|
|
8605
8615
|
type: z.ZodLiteral<"keyboard">;
|
|
8606
8616
|
action: z.ZodEnum<{
|
package/dist/personal-github.js
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -5021,6 +5021,8 @@ export type PromotionalCreditScope = z.infer<typeof PromotionalCreditScope>;
|
|
|
5021
5021
|
export const PromotionalCreditBalance = PromotionalCreditScope.extend({
|
|
5022
5022
|
grantId: z.string().uuid(),
|
|
5023
5023
|
remainingMicros: z.number().int().nonnegative(),
|
|
5024
|
+
/** Also pays for dictation and live voice, like general credits (signup credits). */
|
|
5025
|
+
coversVoice: z.boolean().optional(),
|
|
5024
5026
|
});
|
|
5025
5027
|
export type PromotionalCreditBalance = z.infer<typeof PromotionalCreditBalance>;
|
|
5026
5028
|
|
|
@@ -12106,6 +12108,11 @@ export const CapabilityRuntime = z.object({
|
|
|
12106
12108
|
]),
|
|
12107
12109
|
})
|
|
12108
12110
|
.optional(),
|
|
12111
|
+
// Server-derived connectability: present when the connector's OAuth
|
|
12112
|
+
// authorization server refuses self-registration, so connecting needs an
|
|
12113
|
+
// operator-registered client. `configured` is whether this deployment has
|
|
12114
|
+
// one; connector surfaces offer the row only when it is true.
|
|
12115
|
+
operatorOAuthClient: z.object({ configured: z.boolean() }).optional(),
|
|
12109
12116
|
});
|
|
12110
12117
|
export type CapabilityRuntime = z.infer<typeof CapabilityRuntime>;
|
|
12111
12118
|
|
package/src/interaction.ts
CHANGED
|
@@ -2938,6 +2938,8 @@ export const ComputerSessionCapabilities = z
|
|
|
2938
2938
|
screenCapture: z.boolean(),
|
|
2939
2939
|
semanticActions: z.boolean(),
|
|
2940
2940
|
pointerInput: z.boolean(),
|
|
2941
|
+
/** A causal count-2 click requires its exact confirmed first operation. */
|
|
2942
|
+
pointerClickContinuation: z.boolean().optional(),
|
|
2941
2943
|
keyboardInput: z.boolean(),
|
|
2942
2944
|
clipboard: z.boolean(),
|
|
2943
2945
|
backgroundActions: z.boolean(),
|
|
@@ -3097,11 +3099,26 @@ export const ComputerAction = z.discriminatedUnion("type", [
|
|
|
3097
3099
|
deltaX: z.number().finite().optional(),
|
|
3098
3100
|
deltaY: z.number().finite().optional(),
|
|
3099
3101
|
button: z.enum(["left", "right", "middle"]).optional(),
|
|
3102
|
+
clickCount: z.union([z.literal(1), z.literal(2)]).optional(),
|
|
3103
|
+
continuationOfOperationId: z.string().uuid().optional(),
|
|
3100
3104
|
})
|
|
3101
3105
|
.strict()
|
|
3102
3106
|
.superRefine((action, context) => {
|
|
3103
3107
|
const hasEnd = action.endX !== undefined || action.endY !== undefined;
|
|
3104
3108
|
const hasDelta = action.deltaX !== undefined || action.deltaY !== undefined;
|
|
3109
|
+
if (action.action !== "click" && action.clickCount !== undefined) {
|
|
3110
|
+
context.addIssue({
|
|
3111
|
+
code: "custom",
|
|
3112
|
+
message: "pointer clickCount requires click",
|
|
3113
|
+
});
|
|
3114
|
+
}
|
|
3115
|
+
if ((action.clickCount === 2) !== (action.continuationOfOperationId !== undefined)) {
|
|
3116
|
+
context.addIssue({
|
|
3117
|
+
code: "custom",
|
|
3118
|
+
path: ["continuationOfOperationId"],
|
|
3119
|
+
message: "clickCount 2 requires exactly one prior first-click operation",
|
|
3120
|
+
});
|
|
3121
|
+
}
|
|
3105
3122
|
if (action.action === "drag" && (action.endX === undefined || action.endY === undefined)) {
|
|
3106
3123
|
context.addIssue({
|
|
3107
3124
|
code: "custom",
|
|
@@ -3198,6 +3215,13 @@ export const ComputerActionCommand = z
|
|
|
3198
3215
|
});
|
|
3199
3216
|
}
|
|
3200
3217
|
if (command.action.type === "pointer") {
|
|
3218
|
+
if (command.action.continuationOfOperationId === command.operationId) {
|
|
3219
|
+
context.addIssue({
|
|
3220
|
+
code: "custom",
|
|
3221
|
+
path: ["action", "continuationOfOperationId"],
|
|
3222
|
+
message: "a click cannot continue its own operation",
|
|
3223
|
+
});
|
|
3224
|
+
}
|
|
3201
3225
|
if (command.expectedFrameId !== command.action.frameId) {
|
|
3202
3226
|
context.addIssue({
|
|
3203
3227
|
code: "custom",
|