@opengeni/contracts 0.40.0 → 0.50.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 +278 -0
- package/dist/atlassian.js +57 -0
- package/dist/atlassian.js.map +1 -0
- package/dist/canonical-human-identities.d.ts +157 -0
- package/dist/canonical-human-identities.js +23 -0
- package/dist/canonical-human-identities.js.map +1 -0
- package/dist/{chunk-7JZMI22I.js → chunk-5UDNP7AO.js} +34 -2
- package/dist/chunk-5UDNP7AO.js.map +1 -0
- package/dist/chunk-BVGIYW7D.js +11 -0
- package/dist/chunk-BVGIYW7D.js.map +1 -0
- package/dist/chunk-CADSX6UN.js +1145 -0
- package/dist/chunk-CADSX6UN.js.map +1 -0
- package/dist/chunk-CM6BMECR.js +24 -0
- package/dist/chunk-CM6BMECR.js.map +1 -0
- package/dist/chunk-D2HKF2EF.js +1460 -0
- package/dist/chunk-D2HKF2EF.js.map +1 -0
- package/dist/chunk-JBCIY7QD.js +194 -0
- package/dist/chunk-JBCIY7QD.js.map +1 -0
- package/dist/chunk-JUFK3T4Q.js +80 -0
- package/dist/chunk-JUFK3T4Q.js.map +1 -0
- package/dist/chunk-LSB7GRLG.js +779 -0
- package/dist/chunk-LSB7GRLG.js.map +1 -0
- package/dist/chunk-LW7OH6CS.js +382 -0
- package/dist/chunk-LW7OH6CS.js.map +1 -0
- package/dist/chunk-M5ZGRVIQ.js +719 -0
- package/dist/chunk-M5ZGRVIQ.js.map +1 -0
- package/dist/chunk-MYBZRDTY.js +340 -0
- package/dist/chunk-MYBZRDTY.js.map +1 -0
- package/dist/chunk-Q6A7XT2N.js +16734 -0
- package/dist/chunk-Q6A7XT2N.js.map +1 -0
- package/dist/chunk-RIY7GYQS.js +1204 -0
- package/dist/chunk-RIY7GYQS.js.map +1 -0
- package/dist/chunk-TZ6YEYN4.js +386 -0
- package/dist/chunk-TZ6YEYN4.js.map +1 -0
- package/dist/chunk-Y3MLSLB4.js +392 -0
- package/dist/chunk-Y3MLSLB4.js.map +1 -0
- package/dist/chunk-YRKRZ6OF.js +134 -0
- package/dist/chunk-YRKRZ6OF.js.map +1 -0
- package/dist/codex-provider-account-authority.d.ts +23 -0
- package/dist/codex-provider-account-authority.js +23 -0
- package/dist/codex-provider-account-authority.js.map +1 -0
- package/dist/company-profile.d.ts +629 -0
- package/dist/document-artifact-commands.d.ts +282 -0
- package/dist/document-artifact-commands.js +54 -0
- package/dist/document-artifact-commands.js.map +1 -0
- package/dist/document-artifact-query.d.ts +2 -0
- package/dist/document-artifact-query.js +54 -0
- package/dist/document-artifact-query.js.map +1 -0
- package/dist/editable-artifact-binary.d.ts +56 -0
- package/dist/editable-artifact-causal-frontier.d.ts +12 -0
- package/dist/editable-artifact-causal-frontier.js +18 -0
- package/dist/editable-artifact-causal-frontier.js.map +1 -0
- package/dist/editable-artifact-codec-registry.d.ts +48 -0
- package/dist/editable-artifact-codec-registry.js +20 -0
- package/dist/editable-artifact-codec-registry.js.map +1 -0
- package/dist/editable-artifact-committed-transaction.d.ts +35 -0
- package/dist/editable-artifact-committed-transaction.js +19 -0
- package/dist/editable-artifact-committed-transaction.js.map +1 -0
- package/dist/editable-artifact-live.d.ts +276 -0
- package/dist/editable-artifact-live.js +907 -0
- package/dist/editable-artifact-live.js.map +1 -0
- package/dist/editable-artifact-serialized-commit.d.ts +53 -0
- package/dist/editable-artifact-serialized-commit.js +26 -0
- package/dist/editable-artifact-serialized-commit.js.map +1 -0
- package/dist/editable-artifact-versions.d.ts +6 -0
- package/dist/editable-artifact-versions.js +11 -0
- package/dist/editable-artifact-versions.js.map +1 -0
- package/dist/editable-artifacts.d.ts +46 -0
- package/dist/editable-artifacts.js +236 -0
- package/dist/editable-artifacts.js.map +1 -0
- package/dist/event-preview.d.ts +1 -1
- package/dist/google-drive.d.ts +114 -2
- package/dist/google-drive.js +72 -14
- package/dist/google-drive.js.map +1 -1
- package/dist/image-generation.d.ts +70 -0
- package/dist/index.d.ts +5661 -166
- package/dist/index.js +1438 -21
- package/dist/interaction.d.ts +8290 -0
- package/dist/knowledge.d.ts +543 -0
- package/dist/memory-slack-delivery.d.ts +397 -0
- package/dist/presentation-artifact-commands.d.ts +349 -0
- package/dist/presentation-artifact-commands.js +66 -0
- package/dist/presentation-artifact-commands.js.map +1 -0
- package/dist/presentation-artifact-query.d.ts +2 -0
- package/dist/presentation-artifact-query.js +66 -0
- package/dist/presentation-artifact-query.js.map +1 -0
- package/dist/retained-output.d.ts +24 -0
- package/dist/sandbox-snapshots.d.ts +9 -0
- package/dist/scoped-knowledge.d.ts +14 -13
- package/dist/slack-bot-scopes.d.ts +4 -0
- package/dist/slack-bot-scopes.js +3 -1
- package/dist/slack-task-policy.d.ts +294 -0
- package/dist/spreadsheet-artifact-commands.d.ts +101 -0
- package/dist/spreadsheet-artifact-commands.js +27 -0
- package/dist/spreadsheet-artifact-commands.js.map +1 -0
- package/dist/spreadsheet-artifact-date.d.ts +4 -0
- package/dist/spreadsheet-artifact-query.d.ts +120 -0
- package/dist/spreadsheet-artifact-query.js +48 -0
- package/dist/spreadsheet-artifact-query.js.map +1 -0
- package/dist/task-notes.d.ts +128 -0
- package/dist/tool-catalog.d.ts +576 -0
- package/dist/video-generation.d.ts +580 -0
- package/dist/video-generation.js +59 -0
- package/dist/video-generation.js.map +1 -0
- package/dist/workspace-learning-policy.d.ts +208 -0
- package/dist/xai-provider-account-authority.d.ts +23 -0
- package/dist/xai-provider-account-authority.js +9 -0
- package/dist/xai-provider-account-authority.js.map +1 -0
- package/package.json +73 -1
- package/src/artifacts.ts +1 -1
- package/src/atlassian.ts +160 -0
- package/src/canonical-human-identities.ts +93 -0
- package/src/codex-provider-account-authority.ts +37 -0
- package/src/company-profile.ts +306 -0
- package/src/document-artifact-commands.ts +1709 -0
- package/src/document-artifact-query.ts +2 -0
- package/src/editable-artifact-binary.ts +396 -0
- package/src/editable-artifact-causal-frontier.ts +154 -0
- package/src/editable-artifact-codec-registry.ts +261 -0
- package/src/editable-artifact-committed-transaction.ts +478 -0
- package/src/editable-artifact-live.ts +1379 -0
- package/src/editable-artifact-serialized-commit.ts +494 -0
- package/src/editable-artifact-versions.ts +8 -0
- package/src/editable-artifacts.ts +473 -0
- package/src/google-drive.ts +68 -15
- package/src/image-generation.ts +106 -0
- package/src/index.ts +2920 -326
- package/src/interaction.ts +3173 -0
- package/src/knowledge.ts +207 -0
- package/src/memory-slack-delivery.ts +183 -0
- package/src/presentation-artifact-commands.ts +2035 -0
- package/src/presentation-artifact-query.ts +2 -0
- package/src/retained-output.ts +149 -2
- package/src/sandbox-snapshots.ts +28 -1
- package/src/scoped-knowledge.ts +18 -4
- package/src/slack-bot-scopes.ts +34 -1
- package/src/slack-task-policy.ts +215 -0
- package/src/spreadsheet-artifact-commands.ts +999 -0
- package/src/spreadsheet-artifact-date.ts +21 -0
- package/src/spreadsheet-artifact-query.ts +1411 -0
- package/src/task-notes.ts +92 -0
- package/src/tool-catalog.ts +334 -0
- package/src/video-generation.ts +431 -0
- package/src/workspace-learning-policy.ts +233 -0
- package/src/xai-provider-account-authority.ts +37 -0
- package/dist/chunk-5HR2GPSC.js +0 -11031
- package/dist/chunk-5HR2GPSC.js.map +0 -1
- package/dist/chunk-7JZMI22I.js.map +0 -1
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
/** Canonical identity-free OGAPC001/OGAPQ001/OGAPV001 presentation ABI. */
|
|
2
|
+
export declare const PRESENTATION_ARTIFACT_COMMAND_VERSION: 1;
|
|
3
|
+
export declare const PRESENTATION_ARTIFACT_QUERY_VERSION: 1;
|
|
4
|
+
export declare const PRESENTATION_ARTIFACT_QUERY_RESPONSE_VERSION: 1;
|
|
5
|
+
export declare const PRESENTATION_ARTIFACT_COMMAND_MAX_BYTES: number;
|
|
6
|
+
export declare const PRESENTATION_ARTIFACT_COMMAND_MAX_COMMANDS = 10000;
|
|
7
|
+
export declare const PRESENTATION_ARTIFACT_QUERY_MAX_BYTES = 96;
|
|
8
|
+
export declare const PRESENTATION_ARTIFACT_QUERY_RESPONSE_MAX_BYTES: number;
|
|
9
|
+
export declare const PRESENTATION_ARTIFACT_QUERY_MAX_NODES = 16384;
|
|
10
|
+
export declare const PRESENTATION_ARTIFACT_QUERY_MAX_SLIDES = 10000;
|
|
11
|
+
export declare const PRESENTATION_ARTIFACT_QUERY_MAX_TEXT_BYTES: number;
|
|
12
|
+
export declare const PRESENTATION_ARTIFACT_MAX_COORDINATE = 9525000000000;
|
|
13
|
+
export declare const PRESENTATION_ARTIFACT_MAX_NAME_BYTES = 1024;
|
|
14
|
+
export declare const PRESENTATION_ARTIFACT_MAX_TEXT_BYTES: number;
|
|
15
|
+
export declare const PRESENTATION_ARTIFACT_MAX_TEXT_PARAGRAPHS = 100000;
|
|
16
|
+
export declare const PRESENTATION_ARTIFACT_MAX_TEXT_RUNS = 250000;
|
|
17
|
+
export declare const PRESENTATION_ARTIFACT_MAX_TABLE_ROWS = 10000;
|
|
18
|
+
export declare const PRESENTATION_ARTIFACT_MAX_TABLE_COLUMNS = 1024;
|
|
19
|
+
export declare const PRESENTATION_ARTIFACT_MAX_TABLE_CELLS = 1000000;
|
|
20
|
+
export declare const PRESENTATION_ARTIFACT_MAX_CHART_SERIES = 16384;
|
|
21
|
+
export declare const PRESENTATION_ARTIFACT_MAX_CHART_POINTS = 1000000;
|
|
22
|
+
export declare const PRESENTATION_ARTIFACT_MAX_GROUP_CHILDREN = 100000;
|
|
23
|
+
export type PresentationArtifactStableId = string;
|
|
24
|
+
export type PresentationArtifactFill = Readonly<{
|
|
25
|
+
kind: "none";
|
|
26
|
+
}> | Readonly<{
|
|
27
|
+
kind: "solid";
|
|
28
|
+
color: number;
|
|
29
|
+
}>;
|
|
30
|
+
export type PresentationArtifactLine = Readonly<{
|
|
31
|
+
fill: PresentationArtifactFill;
|
|
32
|
+
width: number;
|
|
33
|
+
dash: "solid" | "dash" | "dot";
|
|
34
|
+
}>;
|
|
35
|
+
export type PresentationArtifactRect = Readonly<{
|
|
36
|
+
x: number;
|
|
37
|
+
y: number;
|
|
38
|
+
width: number;
|
|
39
|
+
height: number;
|
|
40
|
+
}>;
|
|
41
|
+
export type PresentationArtifactTransform = Readonly<{
|
|
42
|
+
rotation: number;
|
|
43
|
+
flipHorizontal: boolean;
|
|
44
|
+
flipVertical: boolean;
|
|
45
|
+
}>;
|
|
46
|
+
export type PresentationArtifactOwner = Readonly<{
|
|
47
|
+
kind: "master" | "layout" | "slide";
|
|
48
|
+
id: PresentationArtifactStableId;
|
|
49
|
+
}>;
|
|
50
|
+
export type PresentationArtifactTextStyle = Readonly<{
|
|
51
|
+
fontFamily: string;
|
|
52
|
+
fontSizeCentipoints: number;
|
|
53
|
+
color: number;
|
|
54
|
+
bold: boolean;
|
|
55
|
+
italic: boolean;
|
|
56
|
+
underline: boolean;
|
|
57
|
+
language: string | null;
|
|
58
|
+
}>;
|
|
59
|
+
export type PresentationArtifactTextRun = Readonly<{
|
|
60
|
+
text: string;
|
|
61
|
+
style: PresentationArtifactTextStyle;
|
|
62
|
+
}>;
|
|
63
|
+
export type PresentationArtifactTextParagraph = Readonly<{
|
|
64
|
+
runs: readonly PresentationArtifactTextRun[];
|
|
65
|
+
alignment: "left" | "center" | "right" | "justify";
|
|
66
|
+
}>;
|
|
67
|
+
export type PresentationArtifactRichText = Readonly<{
|
|
68
|
+
paragraphs: readonly PresentationArtifactTextParagraph[];
|
|
69
|
+
verticalAlignment: "top" | "middle" | "bottom";
|
|
70
|
+
}>;
|
|
71
|
+
export type PresentationArtifactConnectorEndpoint = Readonly<{
|
|
72
|
+
nodeId: PresentationArtifactStableId | null;
|
|
73
|
+
x: number;
|
|
74
|
+
y: number;
|
|
75
|
+
}>;
|
|
76
|
+
export type PresentationArtifactChartSeries = Readonly<{
|
|
77
|
+
name: string;
|
|
78
|
+
categories: readonly string[];
|
|
79
|
+
values: readonly number[];
|
|
80
|
+
xValues: readonly number[];
|
|
81
|
+
bubbleSizes: readonly number[];
|
|
82
|
+
}>;
|
|
83
|
+
export type PresentationArtifactTableCell = Readonly<{
|
|
84
|
+
text: PresentationArtifactRichText;
|
|
85
|
+
fill: PresentationArtifactFill;
|
|
86
|
+
rowSpan: number;
|
|
87
|
+
columnSpan: number;
|
|
88
|
+
}>;
|
|
89
|
+
export type PresentationArtifactNodeKind = Readonly<{
|
|
90
|
+
kind: "shape";
|
|
91
|
+
geometry: "text-box" | "rectangle" | "rounded-rectangle" | "ellipse" | "triangle" | "right-arrow" | "line";
|
|
92
|
+
fill: PresentationArtifactFill;
|
|
93
|
+
line: PresentationArtifactLine;
|
|
94
|
+
text: PresentationArtifactRichText | null;
|
|
95
|
+
placeholder: Readonly<{
|
|
96
|
+
kind: string;
|
|
97
|
+
index: number | null;
|
|
98
|
+
}> | null;
|
|
99
|
+
}> | Readonly<{
|
|
100
|
+
kind: "group";
|
|
101
|
+
childOffsetX: number;
|
|
102
|
+
childOffsetY: number;
|
|
103
|
+
childExtentWidth: number;
|
|
104
|
+
childExtentHeight: number;
|
|
105
|
+
children: readonly PresentationArtifactStableId[];
|
|
106
|
+
}> | Readonly<{
|
|
107
|
+
kind: "connector";
|
|
108
|
+
connectorKind: "straight" | "elbow" | "curved";
|
|
109
|
+
start: PresentationArtifactConnectorEndpoint;
|
|
110
|
+
end: PresentationArtifactConnectorEndpoint;
|
|
111
|
+
line: PresentationArtifactLine;
|
|
112
|
+
}> | Readonly<{
|
|
113
|
+
kind: "chart";
|
|
114
|
+
chartType: "bar" | "line" | "area" | "pie" | "doughnut" | "scatter" | "bubble" | "radar";
|
|
115
|
+
title: PresentationArtifactRichText;
|
|
116
|
+
series: readonly PresentationArtifactChartSeries[];
|
|
117
|
+
hasLegend: boolean;
|
|
118
|
+
}> | Readonly<{
|
|
119
|
+
kind: "table";
|
|
120
|
+
rows: readonly (readonly (PresentationArtifactTableCell | null)[])[];
|
|
121
|
+
columnWidths: readonly number[];
|
|
122
|
+
rowHeights: readonly number[];
|
|
123
|
+
line: PresentationArtifactLine;
|
|
124
|
+
}> | Readonly<{
|
|
125
|
+
kind: "media";
|
|
126
|
+
digest: Uint8Array;
|
|
127
|
+
contentType: string;
|
|
128
|
+
altText: string;
|
|
129
|
+
fit: "contain" | "cover";
|
|
130
|
+
intrinsicWidth: number;
|
|
131
|
+
intrinsicHeight: number;
|
|
132
|
+
}>;
|
|
133
|
+
export type PresentationArtifactNewNode = Readonly<{
|
|
134
|
+
id: PresentationArtifactStableId;
|
|
135
|
+
name: string;
|
|
136
|
+
bounds: PresentationArtifactRect;
|
|
137
|
+
transform: PresentationArtifactTransform;
|
|
138
|
+
content: PresentationArtifactNodeKind;
|
|
139
|
+
}>;
|
|
140
|
+
export type PresentationArtifactCommand = Readonly<{
|
|
141
|
+
kind: "master.create";
|
|
142
|
+
id: PresentationArtifactStableId;
|
|
143
|
+
name: string;
|
|
144
|
+
background: PresentationArtifactFill;
|
|
145
|
+
}> | Readonly<{
|
|
146
|
+
kind: "layout.create";
|
|
147
|
+
id: PresentationArtifactStableId;
|
|
148
|
+
name: string;
|
|
149
|
+
masterId: PresentationArtifactStableId | null;
|
|
150
|
+
background: PresentationArtifactFill;
|
|
151
|
+
}> | Readonly<{
|
|
152
|
+
kind: "slide.create";
|
|
153
|
+
id: PresentationArtifactStableId;
|
|
154
|
+
index: number;
|
|
155
|
+
title: string;
|
|
156
|
+
layoutId: PresentationArtifactStableId | null;
|
|
157
|
+
background: PresentationArtifactFill;
|
|
158
|
+
}> | Readonly<{
|
|
159
|
+
kind: "master.delete";
|
|
160
|
+
id: PresentationArtifactStableId;
|
|
161
|
+
}> | Readonly<{
|
|
162
|
+
kind: "layout.delete";
|
|
163
|
+
id: PresentationArtifactStableId;
|
|
164
|
+
}> | Readonly<{
|
|
165
|
+
kind: "slide.delete";
|
|
166
|
+
id: PresentationArtifactStableId;
|
|
167
|
+
}> | Readonly<{
|
|
168
|
+
kind: "slide.title.set";
|
|
169
|
+
id: PresentationArtifactStableId;
|
|
170
|
+
title: string;
|
|
171
|
+
}> | Readonly<{
|
|
172
|
+
kind: "slide.layout.set";
|
|
173
|
+
id: PresentationArtifactStableId;
|
|
174
|
+
layoutId: PresentationArtifactStableId | null;
|
|
175
|
+
}> | Readonly<{
|
|
176
|
+
kind: "slide.notes.set";
|
|
177
|
+
id: PresentationArtifactStableId;
|
|
178
|
+
notes: PresentationArtifactRichText;
|
|
179
|
+
}> | Readonly<{
|
|
180
|
+
kind: "node.insert";
|
|
181
|
+
owner: PresentationArtifactOwner;
|
|
182
|
+
parentId: PresentationArtifactStableId | null;
|
|
183
|
+
index: number;
|
|
184
|
+
node: PresentationArtifactNewNode;
|
|
185
|
+
}> | Readonly<{
|
|
186
|
+
kind: "node.delete";
|
|
187
|
+
id: PresentationArtifactStableId;
|
|
188
|
+
}> | Readonly<{
|
|
189
|
+
kind: "node.move";
|
|
190
|
+
id: PresentationArtifactStableId;
|
|
191
|
+
newParentId: PresentationArtifactStableId | null;
|
|
192
|
+
index: number;
|
|
193
|
+
}> | Readonly<{
|
|
194
|
+
kind: "node.bounds.set";
|
|
195
|
+
id: PresentationArtifactStableId;
|
|
196
|
+
bounds: PresentationArtifactRect;
|
|
197
|
+
}> | Readonly<{
|
|
198
|
+
kind: "node.transform.set";
|
|
199
|
+
id: PresentationArtifactStableId;
|
|
200
|
+
transform: PresentationArtifactTransform;
|
|
201
|
+
}> | Readonly<{
|
|
202
|
+
kind: "node.content.set";
|
|
203
|
+
id: PresentationArtifactStableId;
|
|
204
|
+
content: PresentationArtifactNodeKind;
|
|
205
|
+
}> | Readonly<{
|
|
206
|
+
kind: "presentation.size.set";
|
|
207
|
+
size: Readonly<{
|
|
208
|
+
width: number;
|
|
209
|
+
height: number;
|
|
210
|
+
}>;
|
|
211
|
+
}>;
|
|
212
|
+
export type PresentationArtifactCommandBatch = Readonly<{
|
|
213
|
+
version: typeof PRESENTATION_ARTIFACT_COMMAND_VERSION;
|
|
214
|
+
commands: readonly PresentationArtifactCommand[];
|
|
215
|
+
}>;
|
|
216
|
+
export declare function encodePresentationArtifactCommandBatch(input: PresentationArtifactCommandBatch): Uint8Array;
|
|
217
|
+
export declare function decodePresentationArtifactCommandBatch(bytes: Uint8Array): PresentationArtifactCommandBatch;
|
|
218
|
+
export declare function assertCanonicalPresentationArtifactCommandBytes(bytes: Uint8Array): void;
|
|
219
|
+
export type PresentationArtifactQuery = Readonly<{
|
|
220
|
+
kind: "viewport";
|
|
221
|
+
owner: PresentationArtifactOwner;
|
|
222
|
+
viewport: PresentationArtifactRect;
|
|
223
|
+
maxNodes: number;
|
|
224
|
+
maxBytes: number;
|
|
225
|
+
}> | Readonly<{
|
|
226
|
+
kind: "hit-test";
|
|
227
|
+
owner: PresentationArtifactOwner;
|
|
228
|
+
x: number;
|
|
229
|
+
y: number;
|
|
230
|
+
maxNodes: number;
|
|
231
|
+
maxBytes: number;
|
|
232
|
+
}> | Readonly<{
|
|
233
|
+
kind: "resolved-slide";
|
|
234
|
+
slideId: PresentationArtifactStableId;
|
|
235
|
+
maxNodes: number;
|
|
236
|
+
maxBytes: number;
|
|
237
|
+
}> | Readonly<{
|
|
238
|
+
kind: "metadata";
|
|
239
|
+
maxBytes: number;
|
|
240
|
+
}> | Readonly<{
|
|
241
|
+
kind: "slide-catalog";
|
|
242
|
+
startSlide: number;
|
|
243
|
+
maxSlides: number;
|
|
244
|
+
maxTextBytes: number;
|
|
245
|
+
maxBytes: number;
|
|
246
|
+
}> | Readonly<{
|
|
247
|
+
kind: "editor-slide";
|
|
248
|
+
slideId: PresentationArtifactStableId;
|
|
249
|
+
maxNodes: number;
|
|
250
|
+
maxTextBytes: number;
|
|
251
|
+
maxBytes: number;
|
|
252
|
+
}>;
|
|
253
|
+
export declare function encodePresentationArtifactQuery(query: PresentationArtifactQuery): Uint8Array;
|
|
254
|
+
export declare function decodePresentationArtifactQuery(bytes: Uint8Array): PresentationArtifactQuery;
|
|
255
|
+
export declare function assertCanonicalPresentationArtifactQueryBytes(bytes: Uint8Array): void;
|
|
256
|
+
export type PresentationArtifactProjectedNode = Readonly<{
|
|
257
|
+
id: string;
|
|
258
|
+
owner: PresentationArtifactOwner;
|
|
259
|
+
parentId: string | null;
|
|
260
|
+
nodeKind: PresentationArtifactNodeKind["kind"];
|
|
261
|
+
bounds: PresentationArtifactRect;
|
|
262
|
+
paintOrder: number;
|
|
263
|
+
}>;
|
|
264
|
+
export type PresentationArtifactResolvedNode = Readonly<{
|
|
265
|
+
id: string;
|
|
266
|
+
source: PresentationArtifactOwner;
|
|
267
|
+
inherited: boolean;
|
|
268
|
+
}>;
|
|
269
|
+
export type PresentationArtifactSlideLayoutFacts = Readonly<{
|
|
270
|
+
id: PresentationArtifactStableId;
|
|
271
|
+
name: string;
|
|
272
|
+
masterId: PresentationArtifactStableId | null;
|
|
273
|
+
background: PresentationArtifactFill;
|
|
274
|
+
}>;
|
|
275
|
+
export type PresentationArtifactSlideCatalogItem = Readonly<{
|
|
276
|
+
index: number;
|
|
277
|
+
id: PresentationArtifactStableId;
|
|
278
|
+
title: string;
|
|
279
|
+
background: PresentationArtifactFill;
|
|
280
|
+
layout: PresentationArtifactSlideLayoutFacts | null;
|
|
281
|
+
}>;
|
|
282
|
+
export type PresentationArtifactEditorSceneNode = Readonly<{
|
|
283
|
+
id: PresentationArtifactStableId;
|
|
284
|
+
source: PresentationArtifactOwner;
|
|
285
|
+
inherited: boolean;
|
|
286
|
+
parentId: PresentationArtifactStableId | null;
|
|
287
|
+
order: number;
|
|
288
|
+
name: string;
|
|
289
|
+
bounds: PresentationArtifactRect;
|
|
290
|
+
transform: PresentationArtifactTransform;
|
|
291
|
+
content: PresentationArtifactNodeKind;
|
|
292
|
+
}>;
|
|
293
|
+
export type PresentationArtifactQueryResponse = Readonly<{
|
|
294
|
+
kind: "viewport";
|
|
295
|
+
revision: bigint;
|
|
296
|
+
owner: PresentationArtifactOwner;
|
|
297
|
+
viewport: PresentationArtifactRect;
|
|
298
|
+
nodes: readonly PresentationArtifactProjectedNode[];
|
|
299
|
+
truncated: boolean;
|
|
300
|
+
}> | Readonly<{
|
|
301
|
+
kind: "hit-test";
|
|
302
|
+
revision: bigint;
|
|
303
|
+
owner: PresentationArtifactOwner;
|
|
304
|
+
viewport: PresentationArtifactRect;
|
|
305
|
+
nodes: readonly PresentationArtifactProjectedNode[];
|
|
306
|
+
truncated: boolean;
|
|
307
|
+
}> | Readonly<{
|
|
308
|
+
kind: "resolved-slide";
|
|
309
|
+
revision: bigint;
|
|
310
|
+
slideId: string;
|
|
311
|
+
nodes: readonly PresentationArtifactResolvedNode[];
|
|
312
|
+
truncated: boolean;
|
|
313
|
+
}> | Readonly<{
|
|
314
|
+
kind: "metadata";
|
|
315
|
+
revision: bigint;
|
|
316
|
+
presentationId: string;
|
|
317
|
+
slideSize: Readonly<{
|
|
318
|
+
width: number;
|
|
319
|
+
height: number;
|
|
320
|
+
}>;
|
|
321
|
+
masters: number;
|
|
322
|
+
layouts: number;
|
|
323
|
+
slides: number;
|
|
324
|
+
}> | Readonly<{
|
|
325
|
+
kind: "slide-catalog";
|
|
326
|
+
revision: bigint;
|
|
327
|
+
startSlide: number;
|
|
328
|
+
nextSlide: number | null;
|
|
329
|
+
projectedTextBytes: number;
|
|
330
|
+
slides: readonly PresentationArtifactSlideCatalogItem[];
|
|
331
|
+
truncated: boolean;
|
|
332
|
+
}> | Readonly<{
|
|
333
|
+
kind: "editor-slide";
|
|
334
|
+
revision: bigint;
|
|
335
|
+
slide: PresentationArtifactSlideCatalogItem;
|
|
336
|
+
notes: PresentationArtifactRichText | null;
|
|
337
|
+
projectedTextBytes: number;
|
|
338
|
+
nodes: readonly PresentationArtifactEditorSceneNode[];
|
|
339
|
+
truncated: boolean;
|
|
340
|
+
}>;
|
|
341
|
+
export type PresentationArtifactSlideCatalogResponse = Extract<PresentationArtifactQueryResponse, {
|
|
342
|
+
kind: "slide-catalog";
|
|
343
|
+
}>;
|
|
344
|
+
export type PresentationArtifactEditorSlideResponse = Extract<PresentationArtifactQueryResponse, {
|
|
345
|
+
kind: "editor-slide";
|
|
346
|
+
}>;
|
|
347
|
+
export declare function encodePresentationArtifactQueryResponse(response: PresentationArtifactQueryResponse, maximumBytes?: number): Uint8Array;
|
|
348
|
+
export declare function decodePresentationArtifactQueryResponse(bytes: Uint8Array): PresentationArtifactQueryResponse;
|
|
349
|
+
export declare function assertCanonicalPresentationArtifactQueryResponseBytes(bytes: Uint8Array): void;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PRESENTATION_ARTIFACT_COMMAND_MAX_BYTES,
|
|
3
|
+
PRESENTATION_ARTIFACT_COMMAND_MAX_COMMANDS,
|
|
4
|
+
PRESENTATION_ARTIFACT_COMMAND_VERSION,
|
|
5
|
+
PRESENTATION_ARTIFACT_MAX_CHART_POINTS,
|
|
6
|
+
PRESENTATION_ARTIFACT_MAX_CHART_SERIES,
|
|
7
|
+
PRESENTATION_ARTIFACT_MAX_COORDINATE,
|
|
8
|
+
PRESENTATION_ARTIFACT_MAX_GROUP_CHILDREN,
|
|
9
|
+
PRESENTATION_ARTIFACT_MAX_NAME_BYTES,
|
|
10
|
+
PRESENTATION_ARTIFACT_MAX_TABLE_CELLS,
|
|
11
|
+
PRESENTATION_ARTIFACT_MAX_TABLE_COLUMNS,
|
|
12
|
+
PRESENTATION_ARTIFACT_MAX_TABLE_ROWS,
|
|
13
|
+
PRESENTATION_ARTIFACT_MAX_TEXT_BYTES,
|
|
14
|
+
PRESENTATION_ARTIFACT_MAX_TEXT_PARAGRAPHS,
|
|
15
|
+
PRESENTATION_ARTIFACT_MAX_TEXT_RUNS,
|
|
16
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_BYTES,
|
|
17
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_NODES,
|
|
18
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_SLIDES,
|
|
19
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_TEXT_BYTES,
|
|
20
|
+
PRESENTATION_ARTIFACT_QUERY_RESPONSE_MAX_BYTES,
|
|
21
|
+
PRESENTATION_ARTIFACT_QUERY_RESPONSE_VERSION,
|
|
22
|
+
PRESENTATION_ARTIFACT_QUERY_VERSION,
|
|
23
|
+
assertCanonicalPresentationArtifactCommandBytes,
|
|
24
|
+
assertCanonicalPresentationArtifactQueryBytes,
|
|
25
|
+
assertCanonicalPresentationArtifactQueryResponseBytes,
|
|
26
|
+
decodePresentationArtifactCommandBatch,
|
|
27
|
+
decodePresentationArtifactQuery,
|
|
28
|
+
decodePresentationArtifactQueryResponse,
|
|
29
|
+
encodePresentationArtifactCommandBatch,
|
|
30
|
+
encodePresentationArtifactQuery,
|
|
31
|
+
encodePresentationArtifactQueryResponse
|
|
32
|
+
} from "./chunk-D2HKF2EF.js";
|
|
33
|
+
import "./chunk-MYBZRDTY.js";
|
|
34
|
+
export {
|
|
35
|
+
PRESENTATION_ARTIFACT_COMMAND_MAX_BYTES,
|
|
36
|
+
PRESENTATION_ARTIFACT_COMMAND_MAX_COMMANDS,
|
|
37
|
+
PRESENTATION_ARTIFACT_COMMAND_VERSION,
|
|
38
|
+
PRESENTATION_ARTIFACT_MAX_CHART_POINTS,
|
|
39
|
+
PRESENTATION_ARTIFACT_MAX_CHART_SERIES,
|
|
40
|
+
PRESENTATION_ARTIFACT_MAX_COORDINATE,
|
|
41
|
+
PRESENTATION_ARTIFACT_MAX_GROUP_CHILDREN,
|
|
42
|
+
PRESENTATION_ARTIFACT_MAX_NAME_BYTES,
|
|
43
|
+
PRESENTATION_ARTIFACT_MAX_TABLE_CELLS,
|
|
44
|
+
PRESENTATION_ARTIFACT_MAX_TABLE_COLUMNS,
|
|
45
|
+
PRESENTATION_ARTIFACT_MAX_TABLE_ROWS,
|
|
46
|
+
PRESENTATION_ARTIFACT_MAX_TEXT_BYTES,
|
|
47
|
+
PRESENTATION_ARTIFACT_MAX_TEXT_PARAGRAPHS,
|
|
48
|
+
PRESENTATION_ARTIFACT_MAX_TEXT_RUNS,
|
|
49
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_BYTES,
|
|
50
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_NODES,
|
|
51
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_SLIDES,
|
|
52
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_TEXT_BYTES,
|
|
53
|
+
PRESENTATION_ARTIFACT_QUERY_RESPONSE_MAX_BYTES,
|
|
54
|
+
PRESENTATION_ARTIFACT_QUERY_RESPONSE_VERSION,
|
|
55
|
+
PRESENTATION_ARTIFACT_QUERY_VERSION,
|
|
56
|
+
assertCanonicalPresentationArtifactCommandBytes,
|
|
57
|
+
assertCanonicalPresentationArtifactQueryBytes,
|
|
58
|
+
assertCanonicalPresentationArtifactQueryResponseBytes,
|
|
59
|
+
decodePresentationArtifactCommandBatch,
|
|
60
|
+
decodePresentationArtifactQuery,
|
|
61
|
+
decodePresentationArtifactQueryResponse,
|
|
62
|
+
encodePresentationArtifactCommandBatch,
|
|
63
|
+
encodePresentationArtifactQuery,
|
|
64
|
+
encodePresentationArtifactQueryResponse
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=presentation-artifact-commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PRESENTATION_ARTIFACT_COMMAND_MAX_BYTES,
|
|
3
|
+
PRESENTATION_ARTIFACT_COMMAND_MAX_COMMANDS,
|
|
4
|
+
PRESENTATION_ARTIFACT_COMMAND_VERSION,
|
|
5
|
+
PRESENTATION_ARTIFACT_MAX_CHART_POINTS,
|
|
6
|
+
PRESENTATION_ARTIFACT_MAX_CHART_SERIES,
|
|
7
|
+
PRESENTATION_ARTIFACT_MAX_COORDINATE,
|
|
8
|
+
PRESENTATION_ARTIFACT_MAX_GROUP_CHILDREN,
|
|
9
|
+
PRESENTATION_ARTIFACT_MAX_NAME_BYTES,
|
|
10
|
+
PRESENTATION_ARTIFACT_MAX_TABLE_CELLS,
|
|
11
|
+
PRESENTATION_ARTIFACT_MAX_TABLE_COLUMNS,
|
|
12
|
+
PRESENTATION_ARTIFACT_MAX_TABLE_ROWS,
|
|
13
|
+
PRESENTATION_ARTIFACT_MAX_TEXT_BYTES,
|
|
14
|
+
PRESENTATION_ARTIFACT_MAX_TEXT_PARAGRAPHS,
|
|
15
|
+
PRESENTATION_ARTIFACT_MAX_TEXT_RUNS,
|
|
16
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_BYTES,
|
|
17
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_NODES,
|
|
18
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_SLIDES,
|
|
19
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_TEXT_BYTES,
|
|
20
|
+
PRESENTATION_ARTIFACT_QUERY_RESPONSE_MAX_BYTES,
|
|
21
|
+
PRESENTATION_ARTIFACT_QUERY_RESPONSE_VERSION,
|
|
22
|
+
PRESENTATION_ARTIFACT_QUERY_VERSION,
|
|
23
|
+
assertCanonicalPresentationArtifactCommandBytes,
|
|
24
|
+
assertCanonicalPresentationArtifactQueryBytes,
|
|
25
|
+
assertCanonicalPresentationArtifactQueryResponseBytes,
|
|
26
|
+
decodePresentationArtifactCommandBatch,
|
|
27
|
+
decodePresentationArtifactQuery,
|
|
28
|
+
decodePresentationArtifactQueryResponse,
|
|
29
|
+
encodePresentationArtifactCommandBatch,
|
|
30
|
+
encodePresentationArtifactQuery,
|
|
31
|
+
encodePresentationArtifactQueryResponse
|
|
32
|
+
} from "./chunk-D2HKF2EF.js";
|
|
33
|
+
import "./chunk-MYBZRDTY.js";
|
|
34
|
+
export {
|
|
35
|
+
PRESENTATION_ARTIFACT_COMMAND_MAX_BYTES,
|
|
36
|
+
PRESENTATION_ARTIFACT_COMMAND_MAX_COMMANDS,
|
|
37
|
+
PRESENTATION_ARTIFACT_COMMAND_VERSION,
|
|
38
|
+
PRESENTATION_ARTIFACT_MAX_CHART_POINTS,
|
|
39
|
+
PRESENTATION_ARTIFACT_MAX_CHART_SERIES,
|
|
40
|
+
PRESENTATION_ARTIFACT_MAX_COORDINATE,
|
|
41
|
+
PRESENTATION_ARTIFACT_MAX_GROUP_CHILDREN,
|
|
42
|
+
PRESENTATION_ARTIFACT_MAX_NAME_BYTES,
|
|
43
|
+
PRESENTATION_ARTIFACT_MAX_TABLE_CELLS,
|
|
44
|
+
PRESENTATION_ARTIFACT_MAX_TABLE_COLUMNS,
|
|
45
|
+
PRESENTATION_ARTIFACT_MAX_TABLE_ROWS,
|
|
46
|
+
PRESENTATION_ARTIFACT_MAX_TEXT_BYTES,
|
|
47
|
+
PRESENTATION_ARTIFACT_MAX_TEXT_PARAGRAPHS,
|
|
48
|
+
PRESENTATION_ARTIFACT_MAX_TEXT_RUNS,
|
|
49
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_BYTES,
|
|
50
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_NODES,
|
|
51
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_SLIDES,
|
|
52
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_TEXT_BYTES,
|
|
53
|
+
PRESENTATION_ARTIFACT_QUERY_RESPONSE_MAX_BYTES,
|
|
54
|
+
PRESENTATION_ARTIFACT_QUERY_RESPONSE_VERSION,
|
|
55
|
+
PRESENTATION_ARTIFACT_QUERY_VERSION,
|
|
56
|
+
assertCanonicalPresentationArtifactCommandBytes,
|
|
57
|
+
assertCanonicalPresentationArtifactQueryBytes,
|
|
58
|
+
assertCanonicalPresentationArtifactQueryResponseBytes,
|
|
59
|
+
decodePresentationArtifactCommandBatch,
|
|
60
|
+
decodePresentationArtifactQuery,
|
|
61
|
+
decodePresentationArtifactQueryResponse,
|
|
62
|
+
encodePresentationArtifactCommandBatch,
|
|
63
|
+
encodePresentationArtifactQuery,
|
|
64
|
+
encodePresentationArtifactQueryResponse
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=presentation-artifact-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -13,11 +13,17 @@ export declare const COMPUTER_SCREENSHOT_MAX_PIXELS = 67108864;
|
|
|
13
13
|
export declare const COMPUTER_SCREENSHOT_RETENTION_MS: number;
|
|
14
14
|
/** Hard workspace reservation across pending + ready screenshot artifacts. */
|
|
15
15
|
export declare const COMPUTER_SCREENSHOT_WORKSPACE_QUOTA_BYTES: number;
|
|
16
|
+
/** Generated images are permanent workspace files, never inline history blobs. */
|
|
17
|
+
export declare const GENERATED_IMAGE_MAX_BYTES: number;
|
|
18
|
+
/** Generated videos are permanent workspace files and are always streamed. */
|
|
19
|
+
export declare const GENERATED_VIDEO_MAX_BYTES: number;
|
|
16
20
|
export declare const RetainedOutputKind: z.ZodEnum<{
|
|
17
21
|
assistant_completion: "assistant_completion";
|
|
18
22
|
computer_screenshot: "computer_screenshot";
|
|
19
23
|
event_media: "event_media";
|
|
20
24
|
file: "file";
|
|
25
|
+
generated_image: "generated_image";
|
|
26
|
+
generated_video: "generated_video";
|
|
21
27
|
internal_update: "internal_update";
|
|
22
28
|
tool_result: "tool_result";
|
|
23
29
|
}>;
|
|
@@ -44,6 +50,8 @@ export declare const RetainedArtifactReferenceSchema: z.ZodObject<{
|
|
|
44
50
|
computer_screenshot: "computer_screenshot";
|
|
45
51
|
event_media: "event_media";
|
|
46
52
|
file: "file";
|
|
53
|
+
generated_image: "generated_image";
|
|
54
|
+
generated_video: "generated_video";
|
|
47
55
|
internal_update: "internal_update";
|
|
48
56
|
tool_result: "tool_result";
|
|
49
57
|
}>;
|
|
@@ -99,6 +107,8 @@ export declare const RetainedOutputEvidenceSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
99
107
|
computer_screenshot: "computer_screenshot";
|
|
100
108
|
event_media: "event_media";
|
|
101
109
|
file: "file";
|
|
110
|
+
generated_image: "generated_image";
|
|
111
|
+
generated_video: "generated_video";
|
|
102
112
|
internal_update: "internal_update";
|
|
103
113
|
tool_result: "tool_result";
|
|
104
114
|
}>;
|
|
@@ -155,6 +165,8 @@ export declare const RetainedArtifactMetadataSchema: z.ZodUnion<readonly [z.ZodO
|
|
|
155
165
|
computer_screenshot: "computer_screenshot";
|
|
156
166
|
event_media: "event_media";
|
|
157
167
|
file: "file";
|
|
168
|
+
generated_image: "generated_image";
|
|
169
|
+
generated_video: "generated_video";
|
|
158
170
|
internal_update: "internal_update";
|
|
159
171
|
tool_result: "tool_result";
|
|
160
172
|
}>;
|
|
@@ -212,6 +224,14 @@ export type RetainedScreenshotArtifactInput = RetainedArtifactFileInput & {
|
|
|
212
224
|
height: number;
|
|
213
225
|
expiresAt: string;
|
|
214
226
|
};
|
|
227
|
+
export type RetainedGeneratedImageArtifactInput = RetainedArtifactFileInput & {
|
|
228
|
+
width: number;
|
|
229
|
+
height: number;
|
|
230
|
+
};
|
|
231
|
+
export type RetainedGeneratedVideoArtifactInput = RetainedArtifactFileInput & {
|
|
232
|
+
width: number;
|
|
233
|
+
height: number;
|
|
234
|
+
};
|
|
215
235
|
/**
|
|
216
236
|
* Convert a ready, integrity-addressed workspace file into the only available
|
|
217
237
|
* retained-output receipt shape. Invalid, pending, or checksum-less files fail
|
|
@@ -220,6 +240,10 @@ export type RetainedScreenshotArtifactInput = RetainedArtifactFileInput & {
|
|
|
220
240
|
export declare function retainedArtifactReferenceFromFile(file: RetainedArtifactFileInput, kind?: RetainedOutputKind): RetainedArtifactReference | null;
|
|
221
241
|
/** Build the closed, session-scoped receipt for one ready screenshot file. */
|
|
222
242
|
export declare function retainedScreenshotReferenceFromFile(file: RetainedScreenshotArtifactInput): RetainedArtifactReference | null;
|
|
243
|
+
/** Build the permanent workspace receipt for one validated generated image. */
|
|
244
|
+
export declare function retainedGeneratedImageReferenceFromFile(file: RetainedGeneratedImageArtifactInput): RetainedArtifactReference | null;
|
|
245
|
+
/** Build the permanent workspace receipt for one validated generated video. */
|
|
246
|
+
export declare function retainedGeneratedVideoReferenceFromFile(file: RetainedGeneratedVideoArtifactInput): RetainedArtifactReference | null;
|
|
223
247
|
/** Parse and clone a trusted server receipt; invalid/untrusted data fails closed. */
|
|
224
248
|
export declare function validateRetainedOutputEvidence(value: unknown): RetainedOutputEvidence | null;
|
|
225
249
|
export declare function retainedOutputUnavailable(reason?: RetainedOutputUnavailableReason): RetainedOutputEvidence;
|
|
@@ -5,6 +5,14 @@ export type WorkspaceTreeFingerprint = {
|
|
|
5
5
|
entryCount: number;
|
|
6
6
|
fileCount: number;
|
|
7
7
|
totalFileBytes: number;
|
|
8
|
+
/**
|
|
9
|
+
* Absent means the original deterministic GNU-tar projection used by remote
|
|
10
|
+
* sandboxes. Host-backed Local/Docker sessions use the Agents SDK's portable
|
|
11
|
+
* archive projection, which intentionally contains directories and regular
|
|
12
|
+
* files only. Keeping the discriminator in the descriptor makes restores
|
|
13
|
+
* stable when a Docker image changes and preserves old descriptor behavior.
|
|
14
|
+
*/
|
|
15
|
+
projection?: "sdk_local_archive_v1";
|
|
8
16
|
};
|
|
9
17
|
export type TarWorkspaceArchiveDescriptor = {
|
|
10
18
|
version: 1;
|
|
@@ -38,4 +46,5 @@ export declare const NATIVE_SNAPSHOT_PREFIXES: ReadonlyArray<{
|
|
|
38
46
|
}>;
|
|
39
47
|
export declare function parseWorkspaceArchiveDescriptor(value: unknown): WorkspaceArchiveDescriptor | null;
|
|
40
48
|
export declare function decodeNativeSnapshotRef(bytes: Uint8Array): NativeSnapshotRef | null;
|
|
49
|
+
export declare function encodeNativeSnapshotRef(ref: NativeSnapshotRef): Uint8Array;
|
|
41
50
|
export declare function backendForNativeSnapshotProvider(provider: NativeSnapshotProvider): string;
|
|
@@ -6,19 +6,20 @@ export declare const ScopedKnowledgeScopeKind: z.ZodEnum<{
|
|
|
6
6
|
workspace: "workspace";
|
|
7
7
|
}>;
|
|
8
8
|
export type ScopedKnowledgeScopeKind = z.infer<typeof ScopedKnowledgeScopeKind>;
|
|
9
|
-
export
|
|
10
|
-
kind: "organization"
|
|
11
|
-
workspaceId:
|
|
12
|
-
subjectId:
|
|
13
|
-
}
|
|
14
|
-
kind: "workspace"
|
|
15
|
-
workspaceId:
|
|
16
|
-
subjectId:
|
|
17
|
-
}
|
|
18
|
-
kind: "personal"
|
|
19
|
-
workspaceId:
|
|
20
|
-
subjectId:
|
|
21
|
-
}
|
|
9
|
+
export declare const ScopedKnowledgeScope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
+
kind: z.ZodLiteral<"organization">;
|
|
11
|
+
workspaceId: z.ZodNull;
|
|
12
|
+
subjectId: z.ZodNull;
|
|
13
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14
|
+
kind: z.ZodLiteral<"workspace">;
|
|
15
|
+
workspaceId: z.ZodString;
|
|
16
|
+
subjectId: z.ZodNull;
|
|
17
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
+
kind: z.ZodLiteral<"personal">;
|
|
19
|
+
workspaceId: z.ZodNullable<z.ZodString>;
|
|
20
|
+
subjectId: z.ZodString;
|
|
21
|
+
}, z.core.$strip>], "kind">;
|
|
22
|
+
export type ScopedKnowledgeScope = z.infer<typeof ScopedKnowledgeScope>;
|
|
22
23
|
export declare const ScopedKnowledgeActorKind: z.ZodEnum<{
|
|
23
24
|
human: "human";
|
|
24
25
|
service: "service";
|
|
@@ -11,6 +11,8 @@ export declare const OPENGENI_SLACK_REACTION_REQUIRED_SCOPE: "reactions:read";
|
|
|
11
11
|
*/
|
|
12
12
|
export declare const OPENGENI_SLACK_BOT_REQUESTED_SCOPES: readonly ["app_mentions:read", "canvases:read", "channels:history", "channels:read", "chat:write", "commands", "files:read", "groups:history", "groups:read", "im:history", "im:read", "im:write", "mpim:history", "mpim:read", "users:read", "reactions:read"];
|
|
13
13
|
export declare const OPENGENI_SLACK_BOT_EVENTS: readonly ["app_mention", "message.channels", "message.groups", "message.im", "message.mpim", "reaction_added"];
|
|
14
|
+
/** Full user-token scope set for every tool currently exposed by Slack's hosted MCP server. */
|
|
15
|
+
export declare const OPENGENI_SLACK_MCP_USER_SCOPES: readonly ["search:read.public", "search:read.private", "search:read.mpim", "search:read.im", "search:read.files", "files:read", "emoji:read", "search:read.users", "chat:write", "channels:history", "groups:history", "mpim:history", "im:history", "channels:write", "groups:write", "im:write", "mpim:write", "reactions:write", "canvases:read", "canvases:write", "users:read", "users:read.email", "channels:read", "groups:read", "mpim:read"];
|
|
14
16
|
export declare const OPENGENI_MANAGED_PUBLIC_BASE_URL: "https://app.opengeni.ai";
|
|
15
17
|
/** Canonical managed/self-hosted Slack app manifest. Slack accepts JSON manifests. */
|
|
16
18
|
export declare function buildOpenGeniSlackBotManifest(publicBaseUrl: string): {
|
|
@@ -39,6 +41,7 @@ export declare function buildOpenGeniSlackBotManifest(publicBaseUrl: string): {
|
|
|
39
41
|
readonly redirect_urls: readonly [`${string}/v1/integrations/oauth/callback`, `${string}/v1/integrations/slack/callback`];
|
|
40
42
|
readonly scopes: {
|
|
41
43
|
readonly bot: readonly ["app_mentions:read", "canvases:read", "channels:history", "channels:read", "chat:write", "commands", "files:read", "groups:history", "groups:read", "im:history", "im:read", "im:write", "mpim:history", "mpim:read", "users:read", "reactions:read"];
|
|
44
|
+
readonly user: readonly ["search:read.public", "search:read.private", "search:read.mpim", "search:read.im", "search:read.files", "files:read", "emoji:read", "search:read.users", "chat:write", "channels:history", "groups:history", "mpim:history", "im:history", "channels:write", "groups:write", "im:write", "mpim:write", "reactions:write", "canvases:read", "canvases:write", "users:read", "users:read.email", "channels:read", "groups:read", "mpim:read"];
|
|
42
45
|
};
|
|
43
46
|
};
|
|
44
47
|
readonly settings: {
|
|
@@ -50,6 +53,7 @@ export declare function buildOpenGeniSlackBotManifest(publicBaseUrl: string): {
|
|
|
50
53
|
readonly is_enabled: true;
|
|
51
54
|
readonly request_url: `${string}/v1/integrations/slack/interactions`;
|
|
52
55
|
};
|
|
56
|
+
readonly is_mcp_enabled: true;
|
|
53
57
|
readonly org_deploy_enabled: false;
|
|
54
58
|
readonly socket_mode_enabled: false;
|
|
55
59
|
readonly token_rotation_enabled: false;
|
package/dist/slack-bot-scopes.js
CHANGED
|
@@ -5,12 +5,13 @@ import {
|
|
|
5
5
|
OPENGENI_SLACK_BOT_REQUESTED_SCOPES,
|
|
6
6
|
OPENGENI_SLACK_BOT_REQUIRED_SCOPES,
|
|
7
7
|
OPENGENI_SLACK_BOT_SAFE_OPTIONAL_SCOPES,
|
|
8
|
+
OPENGENI_SLACK_MCP_USER_SCOPES,
|
|
8
9
|
OPENGENI_SLACK_REACTION_REQUIRED_SCOPE,
|
|
9
10
|
areOpenGeniSlackBotScopesAccepted,
|
|
10
11
|
buildOpenGeniSlackBotManifest,
|
|
11
12
|
evaluateOpenGeniSlackBotScopes,
|
|
12
13
|
hasOpenGeniSlackReactionScope
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5UDNP7AO.js";
|
|
14
15
|
export {
|
|
15
16
|
OPENGENI_MANAGED_PUBLIC_BASE_URL,
|
|
16
17
|
OPENGENI_SLACK_BOT_EVENTS,
|
|
@@ -18,6 +19,7 @@ export {
|
|
|
18
19
|
OPENGENI_SLACK_BOT_REQUESTED_SCOPES,
|
|
19
20
|
OPENGENI_SLACK_BOT_REQUIRED_SCOPES,
|
|
20
21
|
OPENGENI_SLACK_BOT_SAFE_OPTIONAL_SCOPES,
|
|
22
|
+
OPENGENI_SLACK_MCP_USER_SCOPES,
|
|
21
23
|
OPENGENI_SLACK_REACTION_REQUIRED_SCOPE,
|
|
22
24
|
areOpenGeniSlackBotScopesAccepted,
|
|
23
25
|
buildOpenGeniSlackBotManifest,
|