@opengeni/contracts 0.40.0 → 0.44.1
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 +55 -0
- package/dist/atlassian.js.map +1 -0
- package/dist/chunk-52SGB2QO.js +688 -0
- package/dist/chunk-52SGB2QO.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-D2HKF2EF.js +1460 -0
- package/dist/chunk-D2HKF2EF.js.map +1 -0
- package/dist/chunk-FJBG5E4O.js +194 -0
- package/dist/chunk-FJBG5E4O.js.map +1 -0
- package/dist/chunk-H5BVCZKF.js +382 -0
- package/dist/chunk-H5BVCZKF.js.map +1 -0
- package/dist/chunk-LSB7GRLG.js +779 -0
- package/dist/chunk-LSB7GRLG.js.map +1 -0
- package/dist/chunk-MYBZRDTY.js +340 -0
- package/dist/chunk-MYBZRDTY.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-VA22KRHS.js +15177 -0
- package/dist/chunk-VA22KRHS.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/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 +70 -14
- package/dist/google-drive.js.map +1 -1
- package/dist/image-generation.d.ts +70 -0
- package/dist/index.d.ts +4460 -155
- package/dist/index.js +1127 -30
- package/dist/interaction.d.ts +6895 -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/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/tool-catalog.d.ts +576 -0
- package/dist/video-generation.d.ts +532 -0
- package/dist/video-generation.js +51 -0
- package/dist/video-generation.js.map +1 -0
- package/dist/workspace-learning-policy.d.ts +208 -0
- package/package.json +61 -1
- package/src/atlassian.ts +160 -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 +2326 -325
- package/src/interaction.ts +2292 -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/spreadsheet-artifact-commands.ts +999 -0
- package/src/spreadsheet-artifact-date.ts +21 -0
- package/src/spreadsheet-artifact-query.ts +1411 -0
- package/src/tool-catalog.ts +334 -0
- package/src/video-generation.ts +394 -0
- package/src/workspace-learning-policy.ts +233 -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,183 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
export const MemorySlackImportance = z.enum(["major", "normal", "minor"]);
|
|
4
|
+
export type MemorySlackImportance = z.infer<typeof MemorySlackImportance>;
|
|
5
|
+
|
|
6
|
+
export const MemorySlackRequestedMode = z.enum(["auto", "review", "never"]);
|
|
7
|
+
export type MemorySlackRequestedMode = z.infer<typeof MemorySlackRequestedMode>;
|
|
8
|
+
|
|
9
|
+
export const MemorySlackPublicationDistribution = z
|
|
10
|
+
.object({
|
|
11
|
+
importance: MemorySlackImportance,
|
|
12
|
+
audience: z.literal("workspace"),
|
|
13
|
+
slackMode: MemorySlackRequestedMode,
|
|
14
|
+
shareSummary: z.string().trim().min(1).max(4_096),
|
|
15
|
+
})
|
|
16
|
+
.strict();
|
|
17
|
+
export type MemorySlackPublicationDistribution = z.infer<typeof MemorySlackPublicationDistribution>;
|
|
18
|
+
|
|
19
|
+
export const MemorySlackPublicationConfiguration = z.object({
|
|
20
|
+
id: z.string().uuid(),
|
|
21
|
+
workspaceId: z.string().uuid(),
|
|
22
|
+
revision: z.number().int().positive(),
|
|
23
|
+
enabled: z.boolean(),
|
|
24
|
+
connectionId: z.string().uuid().nullable(),
|
|
25
|
+
slackTeamId: z.string().min(1).max(64).nullable(),
|
|
26
|
+
slackChannelId: z.string().min(1).max(64).nullable(),
|
|
27
|
+
slackChannelName: z.string().min(1).max(256).nullable(),
|
|
28
|
+
autoImportances: z.array(MemorySlackImportance).max(3),
|
|
29
|
+
reviewImportances: z.array(MemorySlackImportance).max(3),
|
|
30
|
+
createdBySubjectId: z.string().min(1).max(1_024),
|
|
31
|
+
createdAt: z.string(),
|
|
32
|
+
});
|
|
33
|
+
export type MemorySlackPublicationConfiguration = z.infer<
|
|
34
|
+
typeof MemorySlackPublicationConfiguration
|
|
35
|
+
>;
|
|
36
|
+
|
|
37
|
+
export const UpdateMemorySlackPublicationConfigurationRequest = z
|
|
38
|
+
.object({
|
|
39
|
+
expectedRevision: z.number().int().nonnegative(),
|
|
40
|
+
enabled: z.boolean(),
|
|
41
|
+
connectionId: z.string().uuid().nullable(),
|
|
42
|
+
slackChannelId: z.string().trim().min(1).max(64).nullable(),
|
|
43
|
+
slackChannelName: z.string().trim().min(1).max(256).nullable(),
|
|
44
|
+
autoImportances: z.array(MemorySlackImportance).max(3),
|
|
45
|
+
reviewImportances: z.array(MemorySlackImportance).max(3),
|
|
46
|
+
})
|
|
47
|
+
.strict()
|
|
48
|
+
.superRefine((value, context) => {
|
|
49
|
+
const overlap = value.autoImportances.filter((importance) =>
|
|
50
|
+
value.reviewImportances.includes(importance),
|
|
51
|
+
);
|
|
52
|
+
if (overlap.length > 0) {
|
|
53
|
+
context.addIssue({
|
|
54
|
+
code: "custom",
|
|
55
|
+
message: "auto and review importance policies must not overlap",
|
|
56
|
+
path: ["reviewImportances"],
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
if (value.enabled && (!value.connectionId || !value.slackChannelId)) {
|
|
60
|
+
context.addIssue({
|
|
61
|
+
code: "custom",
|
|
62
|
+
message: "an enabled Slack publication configuration requires a connection and channel",
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export type UpdateMemorySlackPublicationConfigurationRequest = z.infer<
|
|
67
|
+
typeof UpdateMemorySlackPublicationConfigurationRequest
|
|
68
|
+
>;
|
|
69
|
+
|
|
70
|
+
export const MemorySlackPublicationConfigurationResponse = z.object({
|
|
71
|
+
current: MemorySlackPublicationConfiguration.nullable(),
|
|
72
|
+
history: z.array(MemorySlackPublicationConfiguration).max(100),
|
|
73
|
+
});
|
|
74
|
+
export type MemorySlackPublicationConfigurationResponse = z.infer<
|
|
75
|
+
typeof MemorySlackPublicationConfigurationResponse
|
|
76
|
+
>;
|
|
77
|
+
|
|
78
|
+
export const MemorySlackPublicationState = z.enum([
|
|
79
|
+
"review_pending",
|
|
80
|
+
"queued",
|
|
81
|
+
"delivering",
|
|
82
|
+
"retry_wait",
|
|
83
|
+
"delivered",
|
|
84
|
+
"rejected",
|
|
85
|
+
"failed",
|
|
86
|
+
"cancelled",
|
|
87
|
+
]);
|
|
88
|
+
export type MemorySlackPublicationState = z.infer<typeof MemorySlackPublicationState>;
|
|
89
|
+
|
|
90
|
+
export const MemorySlackPublicationReceiptKind = z.enum([
|
|
91
|
+
"enqueued",
|
|
92
|
+
"review_approved",
|
|
93
|
+
"review_rejected",
|
|
94
|
+
"delivery_claimed",
|
|
95
|
+
"retry_scheduled",
|
|
96
|
+
"delivered",
|
|
97
|
+
"failed",
|
|
98
|
+
"cancelled",
|
|
99
|
+
"manual_retry",
|
|
100
|
+
]);
|
|
101
|
+
export type MemorySlackPublicationReceiptKind = z.infer<typeof MemorySlackPublicationReceiptKind>;
|
|
102
|
+
|
|
103
|
+
export const MemorySlackPublicationReceipt = z.object({
|
|
104
|
+
id: z.string().uuid(),
|
|
105
|
+
publicationId: z.string().uuid(),
|
|
106
|
+
sequence: z.number().int().positive(),
|
|
107
|
+
kind: MemorySlackPublicationReceiptKind,
|
|
108
|
+
state: MemorySlackPublicationState,
|
|
109
|
+
attemptNumber: z.number().int().nonnegative(),
|
|
110
|
+
actorKind: z.enum(["human", "agent", "service"]),
|
|
111
|
+
actorSubjectId: z.string().min(1).max(1_024),
|
|
112
|
+
operationId: z.string().uuid(),
|
|
113
|
+
errorCode: z.string().min(1).max(128).nullable(),
|
|
114
|
+
retryAt: z.string().nullable(),
|
|
115
|
+
slackChannelId: z.string().min(1).max(64).nullable(),
|
|
116
|
+
slackMessageTimestamp: z.string().min(1).max(64).nullable(),
|
|
117
|
+
createdAt: z.string(),
|
|
118
|
+
});
|
|
119
|
+
export type MemorySlackPublicationReceipt = z.infer<typeof MemorySlackPublicationReceipt>;
|
|
120
|
+
|
|
121
|
+
export const MemorySlackPublication = z.object({
|
|
122
|
+
id: z.string().uuid(),
|
|
123
|
+
workspaceId: z.string().uuid(),
|
|
124
|
+
configurationRevision: z.number().int().positive(),
|
|
125
|
+
connectionId: z.string().uuid(),
|
|
126
|
+
slackTeamId: z.string().min(1).max(64),
|
|
127
|
+
slackChannelId: z.string().min(1).max(64),
|
|
128
|
+
sourceType: z.enum(["workspace_memory", "durable_learning"]),
|
|
129
|
+
sourceId: z.string().min(1).max(1_024),
|
|
130
|
+
sourceVersion: z.string().min(1).max(512).nullable(),
|
|
131
|
+
importance: MemorySlackImportance,
|
|
132
|
+
deliveryMode: z.enum(["auto", "review"]),
|
|
133
|
+
state: MemorySlackPublicationState,
|
|
134
|
+
summary: z.string().max(512),
|
|
135
|
+
sourceLabel: z.string().max(128),
|
|
136
|
+
authoritativePath: z.string().max(2_048).nullable(),
|
|
137
|
+
initiatorKind: z.enum(["human", "agent", "service"]),
|
|
138
|
+
initiatorSubjectId: z.string().min(1).max(1_024),
|
|
139
|
+
initiatingHumanSubjectId: z.string().min(1).max(1_024).nullable(),
|
|
140
|
+
attemptCount: z.number().int().nonnegative(),
|
|
141
|
+
retryAt: z.string().nullable(),
|
|
142
|
+
lastErrorCode: z.string().min(1).max(128).nullable(),
|
|
143
|
+
slackMessageTimestamp: z.string().min(1).max(64).nullable(),
|
|
144
|
+
deliveredAt: z.string().nullable(),
|
|
145
|
+
terminalAt: z.string().nullable(),
|
|
146
|
+
createdAt: z.string(),
|
|
147
|
+
updatedAt: z.string(),
|
|
148
|
+
receipts: z.array(MemorySlackPublicationReceipt).max(100),
|
|
149
|
+
});
|
|
150
|
+
export type MemorySlackPublication = z.infer<typeof MemorySlackPublication>;
|
|
151
|
+
|
|
152
|
+
export const MemorySlackPublicationHistoryResponse = z.object({
|
|
153
|
+
publications: z.array(MemorySlackPublication).max(100),
|
|
154
|
+
nextCursor: z.string().uuid().nullable(),
|
|
155
|
+
});
|
|
156
|
+
export type MemorySlackPublicationHistoryResponse = z.infer<
|
|
157
|
+
typeof MemorySlackPublicationHistoryResponse
|
|
158
|
+
>;
|
|
159
|
+
|
|
160
|
+
export const MemorySlackPublicationActionRequest = z
|
|
161
|
+
.object({
|
|
162
|
+
action: z.enum(["approve", "reject", "retry"]),
|
|
163
|
+
expectedState: MemorySlackPublicationState,
|
|
164
|
+
})
|
|
165
|
+
.strict();
|
|
166
|
+
export type MemorySlackPublicationActionRequest = z.infer<
|
|
167
|
+
typeof MemorySlackPublicationActionRequest
|
|
168
|
+
>;
|
|
169
|
+
|
|
170
|
+
export const SlackPublicationChannel = z.object({
|
|
171
|
+
id: z.string().min(1).max(64),
|
|
172
|
+
name: z.string().min(1).max(256).nullable(),
|
|
173
|
+
isPrivate: z.boolean(),
|
|
174
|
+
});
|
|
175
|
+
export type SlackPublicationChannel = z.infer<typeof SlackPublicationChannel>;
|
|
176
|
+
|
|
177
|
+
export const SlackPublicationChannelListResponse = z.object({
|
|
178
|
+
channels: z.array(SlackPublicationChannel).max(200),
|
|
179
|
+
nextCursor: z.string().max(1_024).nullable(),
|
|
180
|
+
});
|
|
181
|
+
export type SlackPublicationChannelListResponse = z.infer<
|
|
182
|
+
typeof SlackPublicationChannelListResponse
|
|
183
|
+
>;
|