@opengeni/contracts 4.1.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atlassian.d.ts +1 -0
- package/dist/atlassian.js +4 -4
- package/dist/bundled-skills.d.ts +5 -1
- package/dist/{chunk-HR6NB3CA.js → chunk-CM7E7PFV.js} +8341 -8206
- package/dist/chunk-CM7E7PFV.js.map +1 -0
- package/dist/{chunk-O5LEQHDM.js → chunk-ENJTPHKP.js} +2 -2
- package/dist/chunk-KUCZDFJ5.js +186 -0
- package/dist/chunk-KUCZDFJ5.js.map +1 -0
- package/dist/{chunk-5LYFSZ7O.js → chunk-YJEOWXOE.js} +8 -8
- package/dist/company-profile.d.ts +9 -6
- package/dist/connect.js +4 -4
- package/dist/connection-authority.d.ts +9 -317
- package/dist/connection-authority.js +7 -27
- package/dist/connector-tool-permissions.d.ts +73 -0
- 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 +13 -13
- package/dist/google-drive.d.ts +1 -0
- package/dist/google-drive.js +4 -4
- package/dist/host-mcp-bindings.d.ts +5 -0
- package/dist/host-mcp-bindings.js +34 -8
- package/dist/host-mcp-bindings.js.map +1 -1
- package/dist/index.d.ts +771 -3222
- package/dist/index.js +121 -75
- package/dist/knowledge-entries.d.ts +33 -0
- package/dist/knowledge-preparation.d.ts +207 -0
- package/dist/managed-sign-in-methods.d.ts +56 -0
- package/dist/managed-sign-in-methods.js +46 -0
- package/dist/managed-sign-in-methods.js.map +1 -0
- package/dist/mcp-oauth.d.ts +2 -2
- package/dist/organization-integration-policy.d.ts +27 -0
- package/dist/organization-usage.d.ts +102 -0
- package/dist/personal-github.d.ts +1 -0
- package/dist/personal-github.js +4 -4
- package/dist/remember.d.ts +6 -4
- package/dist/sandbox-provider-command.d.ts +91 -1
- package/dist/sandbox-recovery.d.ts +101 -0
- package/dist/session-goal-reports.d.ts +21 -0
- package/dist/session-message-search.d.ts +68 -0
- package/dist/skill-catalog-context.d.ts +7 -0
- package/dist/skills.d.ts +15 -0
- package/package.json +4 -4
- package/src/bundled-skills.ts +2 -0
- package/src/connection-authority.ts +25 -225
- package/src/connector-tool-permissions.ts +59 -0
- package/src/host-mcp-bindings.ts +37 -5
- package/src/index.ts +406 -755
- package/src/knowledge-entries.ts +4 -0
- package/src/knowledge-preparation.ts +50 -0
- package/src/managed-sign-in-methods.ts +37 -0
- package/src/mcp-oauth.ts +16 -18
- package/src/organization-integration-policy.ts +54 -0
- package/src/organization-usage.ts +45 -0
- package/src/sandbox-provider-command.ts +57 -1
- package/src/sandbox-recovery.ts +61 -0
- package/src/session-goal-reports.ts +45 -0
- package/src/session-message-search.ts +54 -0
- package/src/skill-catalog-context.ts +50 -0
- package/src/skills.ts +21 -6
- package/dist/chunk-HR6NB3CA.js.map +0 -1
- package/dist/chunk-J6QIYKO5.js +0 -348
- package/dist/chunk-J6QIYKO5.js.map +0 -1
- package/dist/host-mcp-resolvers.d.ts +0 -32
- package/dist/host-mcp-resolvers.js +0 -34
- package/dist/host-mcp-resolvers.js.map +0 -1
- package/src/host-mcp-resolvers.ts +0 -50
- /package/dist/{chunk-O5LEQHDM.js.map → chunk-ENJTPHKP.js.map} +0 -0
- /package/dist/{chunk-5LYFSZ7O.js.map → chunk-YJEOWXOE.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/** Provider-owned execution identity and acknowledged output cursors. These
|
|
3
3
|
* values are retained by the control plane, never recovered from sandbox files. */
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const ModalLegacyProviderCommand: z.ZodObject<{
|
|
5
5
|
kind: z.ZodLiteral<"modal-control-v1">;
|
|
6
6
|
sandboxId: z.ZodString;
|
|
7
7
|
taskId: z.ZodString;
|
|
@@ -20,4 +20,94 @@ export declare const SandboxProviderCommand: z.ZodObject<{
|
|
|
20
20
|
}, z.core.$strict>;
|
|
21
21
|
}, z.core.$strict>;
|
|
22
22
|
}, z.core.$strict>;
|
|
23
|
+
export type ModalLegacyProviderCommand = z.infer<typeof ModalLegacyProviderCommand>;
|
|
24
|
+
export declare const CommandSupervisionDescriptor: z.ZodObject<{
|
|
25
|
+
protocol: z.ZodLiteral<"native-subreaper-v1">;
|
|
26
|
+
invocationId: z.ZodString;
|
|
27
|
+
nonce: z.ZodString;
|
|
28
|
+
controlPath: z.ZodString;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
export type CommandSupervisionDescriptor = z.infer<typeof CommandSupervisionDescriptor>;
|
|
31
|
+
export declare const CommandSupervisionReceipt: z.ZodObject<{
|
|
32
|
+
protocol: z.ZodLiteral<"native-subreaper-v1">;
|
|
33
|
+
invocationId: z.ZodString;
|
|
34
|
+
receiptId: z.ZodString;
|
|
35
|
+
leaderExitCode: z.ZodNumber;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
export type CommandSupervisionReceipt = z.infer<typeof CommandSupervisionReceipt>;
|
|
38
|
+
export declare const ModalRouterProviderCommand: z.ZodObject<{
|
|
39
|
+
kind: z.ZodLiteral<"modal-router-v1">;
|
|
40
|
+
sandboxId: z.ZodString;
|
|
41
|
+
taskId: z.ZodString;
|
|
42
|
+
execId: z.ZodString;
|
|
43
|
+
pty: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
supervision: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
protocol: z.ZodLiteral<"native-subreaper-v1">;
|
|
46
|
+
invocationId: z.ZodString;
|
|
47
|
+
nonce: z.ZodString;
|
|
48
|
+
controlPath: z.ZodString;
|
|
49
|
+
}, z.core.$strict>>;
|
|
50
|
+
streams: z.ZodObject<{
|
|
51
|
+
stdout: z.ZodObject<{
|
|
52
|
+
byteOffset: z.ZodNumber;
|
|
53
|
+
utf8Remainder: z.ZodString;
|
|
54
|
+
eof: z.ZodBoolean;
|
|
55
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
stderr: z.ZodObject<{
|
|
58
|
+
byteOffset: z.ZodNumber;
|
|
59
|
+
utf8Remainder: z.ZodString;
|
|
60
|
+
eof: z.ZodBoolean;
|
|
61
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
}, z.core.$strict>;
|
|
65
|
+
export type ModalRouterProviderCommand = z.infer<typeof ModalRouterProviderCommand>;
|
|
66
|
+
/** Legacy locators are read-only compatibility for already launched commands;
|
|
67
|
+
* new starts use authenticated task-router byte offsets, never batch indices. */
|
|
68
|
+
export declare const SandboxProviderCommand: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
69
|
+
kind: z.ZodLiteral<"modal-control-v1">;
|
|
70
|
+
sandboxId: z.ZodString;
|
|
71
|
+
taskId: z.ZodString;
|
|
72
|
+
execId: z.ZodString;
|
|
73
|
+
pty: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
+
streams: z.ZodObject<{
|
|
75
|
+
stdout: z.ZodObject<{
|
|
76
|
+
batchIndex: z.ZodNumber;
|
|
77
|
+
utf8Remainder: z.ZodString;
|
|
78
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
79
|
+
}, z.core.$strict>;
|
|
80
|
+
stderr: z.ZodObject<{
|
|
81
|
+
batchIndex: z.ZodNumber;
|
|
82
|
+
utf8Remainder: z.ZodString;
|
|
83
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
}, z.core.$strict>;
|
|
86
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
87
|
+
kind: z.ZodLiteral<"modal-router-v1">;
|
|
88
|
+
sandboxId: z.ZodString;
|
|
89
|
+
taskId: z.ZodString;
|
|
90
|
+
execId: z.ZodString;
|
|
91
|
+
pty: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
supervision: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
protocol: z.ZodLiteral<"native-subreaper-v1">;
|
|
94
|
+
invocationId: z.ZodString;
|
|
95
|
+
nonce: z.ZodString;
|
|
96
|
+
controlPath: z.ZodString;
|
|
97
|
+
}, z.core.$strict>>;
|
|
98
|
+
streams: z.ZodObject<{
|
|
99
|
+
stdout: z.ZodObject<{
|
|
100
|
+
byteOffset: z.ZodNumber;
|
|
101
|
+
utf8Remainder: z.ZodString;
|
|
102
|
+
eof: z.ZodBoolean;
|
|
103
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
104
|
+
}, z.core.$strict>;
|
|
105
|
+
stderr: z.ZodObject<{
|
|
106
|
+
byteOffset: z.ZodNumber;
|
|
107
|
+
utf8Remainder: z.ZodString;
|
|
108
|
+
eof: z.ZodBoolean;
|
|
109
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
}, z.core.$strict>;
|
|
112
|
+
}, z.core.$strict>], "kind">;
|
|
23
113
|
export type SandboxProviderCommand = z.infer<typeof SandboxProviderCommand>;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Public, content-free selection. Never include native provider bindings. */
|
|
3
|
+
export declare const SandboxRecoverySelection: z.ZodObject<{
|
|
4
|
+
version: z.ZodLiteral<1>;
|
|
5
|
+
sessionId: z.ZodString;
|
|
6
|
+
sandboxGroupId: z.ZodString;
|
|
7
|
+
leaseId: z.ZodString;
|
|
8
|
+
routeEpoch: z.ZodNumber;
|
|
9
|
+
authorityEpoch: z.ZodNumber;
|
|
10
|
+
leaseEpoch: z.ZodNumber;
|
|
11
|
+
workspaceGeneration: z.ZodNumber;
|
|
12
|
+
archiveGeneration: z.ZodNumber;
|
|
13
|
+
artifactId: z.ZodString;
|
|
14
|
+
revision: z.ZodString;
|
|
15
|
+
capturedAt: z.ZodString;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
export type SandboxRecoverySelection = z.infer<typeof SandboxRecoverySelection>;
|
|
18
|
+
export declare const SandboxRecoveryProjection: z.ZodObject<{
|
|
19
|
+
version: z.ZodLiteral<1>;
|
|
20
|
+
status: z.ZodEnum<{
|
|
21
|
+
blocked: "blocked";
|
|
22
|
+
consent_accepted: "consent_accepted";
|
|
23
|
+
eligible: "eligible";
|
|
24
|
+
restored: "restored";
|
|
25
|
+
restoring: "restoring";
|
|
26
|
+
unsupported: "unsupported";
|
|
27
|
+
}>;
|
|
28
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
29
|
+
checkpoint: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
version: z.ZodLiteral<1>;
|
|
31
|
+
sessionId: z.ZodString;
|
|
32
|
+
sandboxGroupId: z.ZodString;
|
|
33
|
+
leaseId: z.ZodString;
|
|
34
|
+
routeEpoch: z.ZodNumber;
|
|
35
|
+
authorityEpoch: z.ZodNumber;
|
|
36
|
+
leaseEpoch: z.ZodNumber;
|
|
37
|
+
workspaceGeneration: z.ZodNumber;
|
|
38
|
+
archiveGeneration: z.ZodNumber;
|
|
39
|
+
artifactId: z.ZodString;
|
|
40
|
+
revision: z.ZodString;
|
|
41
|
+
capturedAt: z.ZodString;
|
|
42
|
+
}, z.core.$strict>>;
|
|
43
|
+
operationId: z.ZodNullable<z.ZodString>;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
export type SandboxRecoveryProjection = z.infer<typeof SandboxRecoveryProjection>;
|
|
46
|
+
export declare const SandboxRecoveryRequest: z.ZodObject<{
|
|
47
|
+
operationId: z.ZodString;
|
|
48
|
+
acceptHistoricalCheckpoint: z.ZodLiteral<true>;
|
|
49
|
+
selection: z.ZodObject<{
|
|
50
|
+
version: z.ZodLiteral<1>;
|
|
51
|
+
sessionId: z.ZodString;
|
|
52
|
+
sandboxGroupId: z.ZodString;
|
|
53
|
+
leaseId: z.ZodString;
|
|
54
|
+
routeEpoch: z.ZodNumber;
|
|
55
|
+
authorityEpoch: z.ZodNumber;
|
|
56
|
+
leaseEpoch: z.ZodNumber;
|
|
57
|
+
workspaceGeneration: z.ZodNumber;
|
|
58
|
+
archiveGeneration: z.ZodNumber;
|
|
59
|
+
artifactId: z.ZodString;
|
|
60
|
+
revision: z.ZodString;
|
|
61
|
+
capturedAt: z.ZodString;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
export type SandboxRecoveryRequest = z.infer<typeof SandboxRecoveryRequest>;
|
|
65
|
+
export declare const SandboxRecoveryResponse: z.ZodObject<{
|
|
66
|
+
outcome: z.ZodEnum<{
|
|
67
|
+
accepted: "accepted";
|
|
68
|
+
replayed: "replayed";
|
|
69
|
+
}>;
|
|
70
|
+
operationId: z.ZodString;
|
|
71
|
+
recovery: z.ZodObject<{
|
|
72
|
+
version: z.ZodLiteral<1>;
|
|
73
|
+
status: z.ZodEnum<{
|
|
74
|
+
blocked: "blocked";
|
|
75
|
+
consent_accepted: "consent_accepted";
|
|
76
|
+
eligible: "eligible";
|
|
77
|
+
restored: "restored";
|
|
78
|
+
restoring: "restoring";
|
|
79
|
+
unsupported: "unsupported";
|
|
80
|
+
}>;
|
|
81
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
82
|
+
checkpoint: z.ZodNullable<z.ZodObject<{
|
|
83
|
+
version: z.ZodLiteral<1>;
|
|
84
|
+
sessionId: z.ZodString;
|
|
85
|
+
sandboxGroupId: z.ZodString;
|
|
86
|
+
leaseId: z.ZodString;
|
|
87
|
+
routeEpoch: z.ZodNumber;
|
|
88
|
+
authorityEpoch: z.ZodNumber;
|
|
89
|
+
leaseEpoch: z.ZodNumber;
|
|
90
|
+
workspaceGeneration: z.ZodNumber;
|
|
91
|
+
archiveGeneration: z.ZodNumber;
|
|
92
|
+
artifactId: z.ZodString;
|
|
93
|
+
revision: z.ZodString;
|
|
94
|
+
capturedAt: z.ZodString;
|
|
95
|
+
}, z.core.$strict>>;
|
|
96
|
+
operationId: z.ZodNullable<z.ZodString>;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
export type SandboxRecoveryResponse = z.infer<typeof SandboxRecoveryResponse>;
|
|
100
|
+
/** Re-injected from durable receipts on every attempt, not lossy transcript state. */
|
|
101
|
+
export declare function sandboxRecoveryDiscontinuity(selection: SandboxRecoverySelection): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SessionGoalReportRequirement: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
}, z.core.$strict>;
|
|
6
|
+
export type SessionGoalReportRequirement = z.infer<typeof SessionGoalReportRequirement>;
|
|
7
|
+
export declare const SessionGoalReportRequirements: z.ZodArray<z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
}, z.core.$strict>>;
|
|
11
|
+
export declare const SessionGoalReportDelivery: z.ZodObject<{
|
|
12
|
+
requirementId: z.ZodString;
|
|
13
|
+
artifactId: z.ZodString;
|
|
14
|
+
inspectionReceiptId: z.ZodString;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
export type SessionGoalReportDelivery = z.infer<typeof SessionGoalReportDelivery>;
|
|
17
|
+
export declare const SessionGoalReportDeliveries: z.ZodArray<z.ZodObject<{
|
|
18
|
+
requirementId: z.ZodString;
|
|
19
|
+
artifactId: z.ZodString;
|
|
20
|
+
inspectionReceiptId: z.ZodString;
|
|
21
|
+
}, z.core.$strict>>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Literal Unicode case-insensitive search, without trimming or normalization. */
|
|
3
|
+
export declare const SessionMessageSearchRequest: z.ZodObject<{
|
|
4
|
+
query: z.ZodString;
|
|
5
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
groupBy: z.ZodOptional<z.ZodLiteral<"session">>;
|
|
7
|
+
archiveStatus: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
active: "active";
|
|
9
|
+
all: "all";
|
|
10
|
+
archived: "archived";
|
|
11
|
+
}>>;
|
|
12
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
export type SessionMessageSearchRequest = z.infer<typeof SessionMessageSearchRequest>;
|
|
16
|
+
export declare const SessionMessageSearchMatch: z.ZodObject<{
|
|
17
|
+
sessionId: z.ZodString;
|
|
18
|
+
sessionTitle: z.ZodNullable<z.ZodString>;
|
|
19
|
+
eventId: z.ZodString;
|
|
20
|
+
sequence: z.ZodNumber;
|
|
21
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
22
|
+
role: z.ZodEnum<{
|
|
23
|
+
assistant: "assistant";
|
|
24
|
+
user: "user";
|
|
25
|
+
}>;
|
|
26
|
+
messageId: z.ZodNullable<z.ZodString>;
|
|
27
|
+
messageMatchOffset: z.ZodNumber;
|
|
28
|
+
snippet: z.ZodObject<{
|
|
29
|
+
text: z.ZodString;
|
|
30
|
+
matchStart: z.ZodNumber;
|
|
31
|
+
matchEnd: z.ZodNumber;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type SessionMessageSearchMatch = z.infer<typeof SessionMessageSearchMatch>;
|
|
35
|
+
/** A bounded scan page, not necessarily a full page of matches. Continue even
|
|
36
|
+
* after an empty page while hasMore is true. Counts describe this live traversal,
|
|
37
|
+
* not a frozen snapshot; restart to reflect concurrent changes. All non-overlapping
|
|
38
|
+
* literal occurrences in user messages and completed assistant messages.
|
|
39
|
+
* With groupBy=session, matches and both matched counts describe one first-hit
|
|
40
|
+
* representative per matching session, not full message/occurrence totals.
|
|
41
|
+
*/
|
|
42
|
+
export declare const SessionMessageSearchResponse: z.ZodObject<{
|
|
43
|
+
matches: z.ZodArray<z.ZodObject<{
|
|
44
|
+
sessionId: z.ZodString;
|
|
45
|
+
sessionTitle: z.ZodNullable<z.ZodString>;
|
|
46
|
+
eventId: z.ZodString;
|
|
47
|
+
sequence: z.ZodNumber;
|
|
48
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
49
|
+
role: z.ZodEnum<{
|
|
50
|
+
assistant: "assistant";
|
|
51
|
+
user: "user";
|
|
52
|
+
}>;
|
|
53
|
+
messageId: z.ZodNullable<z.ZodString>;
|
|
54
|
+
messageMatchOffset: z.ZodNumber;
|
|
55
|
+
snippet: z.ZodObject<{
|
|
56
|
+
text: z.ZodString;
|
|
57
|
+
matchStart: z.ZodNumber;
|
|
58
|
+
matchEnd: z.ZodNumber;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
62
|
+
hasMore: z.ZodBoolean;
|
|
63
|
+
scannedMessages: z.ZodNumber;
|
|
64
|
+
matchedMessageCount: z.ZodNumber;
|
|
65
|
+
matchedOccurrenceCount: z.ZodNumber;
|
|
66
|
+
countIsExact: z.ZodBoolean;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export type SessionMessageSearchResponse = z.infer<typeof SessionMessageSearchResponse>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Durable, model-visible catalog context. Text markers survive SDK/provider replay. */
|
|
2
|
+
export declare const SKILL_CATALOG_CONTEXT_PREFIX = "<opengeni_skill_catalog>\n";
|
|
3
|
+
export declare const SKILL_CATALOG_CONTEXT_SUFFIX = "\n</opengeni_skill_catalog>";
|
|
4
|
+
export declare function skillCatalogContextItem(catalog: string): Record<string, unknown>;
|
|
5
|
+
/** Accept the Chat Completions projection and SDK text-part normalization too. */
|
|
6
|
+
export declare function readSkillCatalogContext(item: Record<string, unknown>): string | null;
|
|
7
|
+
export declare function latestSkillCatalogContext(items: readonly Record<string, unknown>[]): Record<string, unknown> | undefined;
|
package/dist/skills.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export type SkillSaveInput = SkillWriteContext & {
|
|
|
44
44
|
reason: string;
|
|
45
45
|
};
|
|
46
46
|
export type SkillRevisionInput = SkillWriteContext & {
|
|
47
|
+
removalOperationId?: string | undefined;
|
|
47
48
|
operationId: string;
|
|
48
49
|
skillId: string;
|
|
49
50
|
revisionId: string;
|
|
@@ -51,12 +52,20 @@ export type SkillRevisionInput = SkillWriteContext & {
|
|
|
51
52
|
expectedScopeVersion: number;
|
|
52
53
|
reason: string;
|
|
53
54
|
};
|
|
55
|
+
export type SkillRemoveInput = SkillWriteContext & {
|
|
56
|
+
operationId: string;
|
|
57
|
+
skillId: string;
|
|
58
|
+
expectedRevisionId: string | null;
|
|
59
|
+
expectedScopeVersion: number;
|
|
60
|
+
reason: string;
|
|
61
|
+
};
|
|
54
62
|
export type SkillInstallInput = SkillWriteContext & {
|
|
55
63
|
operationId: string;
|
|
56
64
|
skillFacetId: string;
|
|
57
65
|
reason: string;
|
|
58
66
|
};
|
|
59
67
|
export declare const SkillReviewReference: z.ZodObject<{
|
|
68
|
+
removalOperationId: z.ZodOptional<z.ZodUUID>;
|
|
60
69
|
sourceOperationId: z.ZodUUID;
|
|
61
70
|
skillId: z.ZodUUID;
|
|
62
71
|
revisionId: z.ZodUUID;
|
|
@@ -78,6 +87,7 @@ export declare function skillReviewHumanInput(skillReview: SkillReviewReference)
|
|
|
78
87
|
required: boolean;
|
|
79
88
|
allowOther: boolean;
|
|
80
89
|
skillReview: {
|
|
90
|
+
removalOperationId?: string | undefined;
|
|
81
91
|
sourceOperationId: string;
|
|
82
92
|
skillId: string;
|
|
83
93
|
revisionId: string;
|
|
@@ -87,6 +97,7 @@ export declare function skillReviewHumanInput(skillReview: SkillReviewReference)
|
|
|
87
97
|
}[];
|
|
88
98
|
};
|
|
89
99
|
export declare const SkillWriteReceipt: z.ZodObject<{
|
|
100
|
+
removed: z.ZodOptional<z.ZodBoolean>;
|
|
90
101
|
operationId: z.ZodUUID;
|
|
91
102
|
skillId: z.ZodUUID;
|
|
92
103
|
revisionId: z.ZodUUID;
|
|
@@ -101,6 +112,7 @@ export declare const SkillWriteReceipt: z.ZodObject<{
|
|
|
101
112
|
source_finalization: "source_finalization";
|
|
102
113
|
}>>;
|
|
103
114
|
skillReview: z.ZodOptional<z.ZodObject<{
|
|
115
|
+
removalOperationId: z.ZodOptional<z.ZodUUID>;
|
|
104
116
|
sourceOperationId: z.ZodUUID;
|
|
105
117
|
skillId: z.ZodUUID;
|
|
106
118
|
revisionId: z.ZodUUID;
|
|
@@ -111,6 +123,7 @@ export declare const SkillWriteReceipt: z.ZodObject<{
|
|
|
111
123
|
}, z.core.$strip>;
|
|
112
124
|
export type SkillWriteReceipt = z.infer<typeof SkillWriteReceipt>;
|
|
113
125
|
export declare const SkillPublicationReceipt: z.ZodObject<{
|
|
126
|
+
removed: z.ZodOptional<z.ZodBoolean>;
|
|
114
127
|
operationId: z.ZodUUID;
|
|
115
128
|
skillId: z.ZodUUID;
|
|
116
129
|
revisionId: z.ZodUUID;
|
|
@@ -125,6 +138,7 @@ export declare const SkillPublicationReceipt: z.ZodObject<{
|
|
|
125
138
|
source_finalization: "source_finalization";
|
|
126
139
|
}>>;
|
|
127
140
|
skillReview: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
removalOperationId: z.ZodOptional<z.ZodUUID>;
|
|
128
142
|
sourceOperationId: z.ZodUUID;
|
|
129
143
|
skillId: z.ZodUUID;
|
|
130
144
|
revisionId: z.ZodUUID;
|
|
@@ -149,6 +163,7 @@ export declare const SkillSourceReleaseReceipt: z.ZodObject<{
|
|
|
149
163
|
}, z.core.$strip>;
|
|
150
164
|
export type SkillSourceReleaseReceipt = z.infer<typeof SkillSourceReleaseReceipt>;
|
|
151
165
|
export type SkillRecord = {
|
|
166
|
+
removalOperationId?: string | null;
|
|
152
167
|
activationMode: "workspace_managed" | "session_selected";
|
|
153
168
|
pendingRevisionIds: string[];
|
|
154
169
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/contracts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Shared zod schemas and wire-contract types for the OpenGeni API.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"module": "./dist/index.js",
|
|
19
19
|
"types": "./dist/index.d.ts",
|
|
20
20
|
"exports": {
|
|
21
|
-
"./
|
|
22
|
-
"types": "./dist/
|
|
23
|
-
"import": "./dist/
|
|
21
|
+
"./managed-sign-in-methods": {
|
|
22
|
+
"types": "./dist/managed-sign-in-methods.d.ts",
|
|
23
|
+
"import": "./dist/managed-sign-in-methods.js"
|
|
24
24
|
},
|
|
25
25
|
"./mcp-endpoint": {
|
|
26
26
|
"types": "./dist/mcp-endpoint.d.ts",
|