@opengeni/contracts 0.44.1 → 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.
Files changed (49) hide show
  1. package/dist/atlassian.js +10 -8
  2. package/dist/canonical-human-identities.d.ts +157 -0
  3. package/dist/canonical-human-identities.js +23 -0
  4. package/dist/canonical-human-identities.js.map +1 -0
  5. package/dist/chunk-CM6BMECR.js +24 -0
  6. package/dist/chunk-CM6BMECR.js.map +1 -0
  7. package/dist/{chunk-FJBG5E4O.js → chunk-JBCIY7QD.js} +12 -12
  8. package/dist/chunk-JUFK3T4Q.js +80 -0
  9. package/dist/chunk-JUFK3T4Q.js.map +1 -0
  10. package/dist/{chunk-H5BVCZKF.js → chunk-LW7OH6CS.js} +2 -2
  11. package/dist/{chunk-52SGB2QO.js → chunk-M5ZGRVIQ.js} +37 -6
  12. package/dist/chunk-M5ZGRVIQ.js.map +1 -0
  13. package/dist/{chunk-VA22KRHS.js → chunk-Q6A7XT2N.js} +6371 -4814
  14. package/dist/chunk-Q6A7XT2N.js.map +1 -0
  15. package/dist/codex-provider-account-authority.d.ts +23 -0
  16. package/dist/codex-provider-account-authority.js +23 -0
  17. package/dist/codex-provider-account-authority.js.map +1 -0
  18. package/dist/editable-artifact-codec-registry.js +5 -5
  19. package/dist/editable-artifact-live.js +3 -3
  20. package/dist/editable-artifact-serialized-commit.js +4 -4
  21. package/dist/editable-artifacts.js +27 -27
  22. package/dist/google-drive.js +11 -9
  23. package/dist/google-drive.js.map +1 -1
  24. package/dist/index.d.ts +1318 -128
  25. package/dist/index.js +400 -80
  26. package/dist/interaction.d.ts +1415 -20
  27. package/dist/knowledge.d.ts +543 -0
  28. package/dist/slack-task-policy.d.ts +294 -0
  29. package/dist/task-notes.d.ts +128 -0
  30. package/dist/video-generation.d.ts +48 -0
  31. package/dist/video-generation.js +9 -1
  32. package/dist/xai-provider-account-authority.d.ts +23 -0
  33. package/dist/xai-provider-account-authority.js +9 -0
  34. package/dist/xai-provider-account-authority.js.map +1 -0
  35. package/package.json +13 -1
  36. package/src/artifacts.ts +1 -1
  37. package/src/canonical-human-identities.ts +93 -0
  38. package/src/codex-provider-account-authority.ts +37 -0
  39. package/src/index.ts +731 -138
  40. package/src/interaction.ts +886 -5
  41. package/src/knowledge.ts +207 -0
  42. package/src/slack-task-policy.ts +215 -0
  43. package/src/task-notes.ts +92 -0
  44. package/src/video-generation.ts +43 -6
  45. package/src/xai-provider-account-authority.ts +37 -0
  46. package/dist/chunk-52SGB2QO.js.map +0 -1
  47. package/dist/chunk-VA22KRHS.js.map +0 -1
  48. /package/dist/{chunk-FJBG5E4O.js.map → chunk-JBCIY7QD.js.map} +0 -0
  49. /package/dist/{chunk-H5BVCZKF.js.map → chunk-LW7OH6CS.js.map} +0 -0
@@ -0,0 +1,294 @@
1
+ import { z } from "zod";
2
+ export declare const SLACK_TASK_POLICY_ID_MAX_CHARS = 128;
3
+ export declare const SLACK_TASK_POLICY_REASON_MAX_CHARS = 4096;
4
+ export declare const SLACK_TASK_POLICY_MAX_IDS = 256;
5
+ export declare const SlackSharedConversationMode: z.ZodEnum<{
6
+ deny: "deny";
7
+ private_handoff: "private_handoff";
8
+ }>;
9
+ export type SlackSharedConversationMode = z.infer<typeof SlackSharedConversationMode>;
10
+ export declare const SlackResultPublicationMode: z.ZodEnum<{
11
+ allow: "allow";
12
+ approval_required: "approval_required";
13
+ never: "never";
14
+ }>;
15
+ export type SlackResultPublicationMode = z.infer<typeof SlackResultPublicationMode>;
16
+ export declare const SlackTaskPolicyContent: z.ZodObject<{
17
+ allowedTeamIds: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>;
18
+ allowedConversationIds: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>;
19
+ allowGuestInitiators: z.ZodBoolean;
20
+ allowExternalInitiators: z.ZodBoolean;
21
+ allowMpim: z.ZodBoolean;
22
+ sharedConversationMode: z.ZodEnum<{
23
+ deny: "deny";
24
+ private_handoff: "private_handoff";
25
+ }>;
26
+ resultPublicationMode: z.ZodEnum<{
27
+ allow: "allow";
28
+ approval_required: "approval_required";
29
+ never: "never";
30
+ }>;
31
+ }, z.core.$strict>;
32
+ export type SlackTaskPolicyContent = z.infer<typeof SlackTaskPolicyContent>;
33
+ export declare const DEFAULT_SLACK_TASK_POLICY: SlackTaskPolicyContent;
34
+ export declare function canonicalizeSlackTaskPolicy(value: SlackTaskPolicyContent): SlackTaskPolicyContent;
35
+ export declare const SlackTaskPolicyRevisionIdentity: z.ZodObject<{
36
+ id: z.ZodString;
37
+ revision: z.ZodNumber;
38
+ policyHash: z.ZodString;
39
+ }, z.core.$strip>;
40
+ export type SlackTaskPolicyRevisionIdentity = z.infer<typeof SlackTaskPolicyRevisionIdentity>;
41
+ export declare const SlackTaskPolicyRevision: z.ZodObject<{
42
+ id: z.ZodString;
43
+ revision: z.ZodNumber;
44
+ policyHash: z.ZodString;
45
+ operationId: z.ZodString;
46
+ accountId: z.ZodString;
47
+ workspaceId: z.ZodString;
48
+ policy: z.ZodObject<{
49
+ allowedTeamIds: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>;
50
+ allowedConversationIds: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>;
51
+ allowGuestInitiators: z.ZodBoolean;
52
+ allowExternalInitiators: z.ZodBoolean;
53
+ allowMpim: z.ZodBoolean;
54
+ sharedConversationMode: z.ZodEnum<{
55
+ deny: "deny";
56
+ private_handoff: "private_handoff";
57
+ }>;
58
+ resultPublicationMode: z.ZodEnum<{
59
+ allow: "allow";
60
+ approval_required: "approval_required";
61
+ never: "never";
62
+ }>;
63
+ }, z.core.$strict>;
64
+ supersedesRevisionId: z.ZodNullable<z.ZodString>;
65
+ createdBySubjectId: z.ZodString;
66
+ createdAt: z.ZodString;
67
+ }, z.core.$strip>;
68
+ export type SlackTaskPolicyRevision = z.infer<typeof SlackTaskPolicyRevision>;
69
+ export declare const SlackTaskPolicyHead: z.ZodObject<{
70
+ accountId: z.ZodString;
71
+ workspaceId: z.ZodString;
72
+ revisionId: z.ZodString;
73
+ revision: z.ZodNumber;
74
+ policyHash: z.ZodString;
75
+ activationVersion: z.ZodNumber;
76
+ activatedAt: z.ZodString;
77
+ }, z.core.$strip>;
78
+ export type SlackTaskPolicyHead = z.infer<typeof SlackTaskPolicyHead>;
79
+ export declare const SlackTaskPolicyActivationEvent: z.ZodObject<{
80
+ id: z.ZodString;
81
+ operationId: z.ZodString;
82
+ accountId: z.ZodString;
83
+ workspaceId: z.ZodString;
84
+ activationVersion: z.ZodNumber;
85
+ oldRevision: z.ZodNullable<z.ZodObject<{
86
+ id: z.ZodString;
87
+ revision: z.ZodNumber;
88
+ policyHash: z.ZodString;
89
+ }, z.core.$strip>>;
90
+ newRevision: z.ZodObject<{
91
+ id: z.ZodString;
92
+ revision: z.ZodNumber;
93
+ policyHash: z.ZodString;
94
+ }, z.core.$strip>;
95
+ actorSubjectId: z.ZodString;
96
+ reason: z.ZodString;
97
+ createdAt: z.ZodString;
98
+ }, z.core.$strip>;
99
+ export type SlackTaskPolicyActivationEvent = z.infer<typeof SlackTaskPolicyActivationEvent>;
100
+ export declare const SlackTaskPolicyListResponse: z.ZodObject<{
101
+ current: z.ZodNullable<z.ZodObject<{
102
+ accountId: z.ZodString;
103
+ workspaceId: z.ZodString;
104
+ revisionId: z.ZodString;
105
+ revision: z.ZodNumber;
106
+ policyHash: z.ZodString;
107
+ activationVersion: z.ZodNumber;
108
+ activatedAt: z.ZodString;
109
+ }, z.core.$strip>>;
110
+ activeRevision: z.ZodNullable<z.ZodObject<{
111
+ id: z.ZodString;
112
+ revision: z.ZodNumber;
113
+ policyHash: z.ZodString;
114
+ operationId: z.ZodString;
115
+ accountId: z.ZodString;
116
+ workspaceId: z.ZodString;
117
+ policy: z.ZodObject<{
118
+ allowedTeamIds: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>;
119
+ allowedConversationIds: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>;
120
+ allowGuestInitiators: z.ZodBoolean;
121
+ allowExternalInitiators: z.ZodBoolean;
122
+ allowMpim: z.ZodBoolean;
123
+ sharedConversationMode: z.ZodEnum<{
124
+ deny: "deny";
125
+ private_handoff: "private_handoff";
126
+ }>;
127
+ resultPublicationMode: z.ZodEnum<{
128
+ allow: "allow";
129
+ approval_required: "approval_required";
130
+ never: "never";
131
+ }>;
132
+ }, z.core.$strict>;
133
+ supersedesRevisionId: z.ZodNullable<z.ZodString>;
134
+ createdBySubjectId: z.ZodString;
135
+ createdAt: z.ZodString;
136
+ }, z.core.$strip>>;
137
+ revisions: z.ZodArray<z.ZodObject<{
138
+ id: z.ZodString;
139
+ revision: z.ZodNumber;
140
+ policyHash: z.ZodString;
141
+ operationId: z.ZodString;
142
+ accountId: z.ZodString;
143
+ workspaceId: z.ZodString;
144
+ policy: z.ZodObject<{
145
+ allowedTeamIds: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>;
146
+ allowedConversationIds: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>;
147
+ allowGuestInitiators: z.ZodBoolean;
148
+ allowExternalInitiators: z.ZodBoolean;
149
+ allowMpim: z.ZodBoolean;
150
+ sharedConversationMode: z.ZodEnum<{
151
+ deny: "deny";
152
+ private_handoff: "private_handoff";
153
+ }>;
154
+ resultPublicationMode: z.ZodEnum<{
155
+ allow: "allow";
156
+ approval_required: "approval_required";
157
+ never: "never";
158
+ }>;
159
+ }, z.core.$strict>;
160
+ supersedesRevisionId: z.ZodNullable<z.ZodString>;
161
+ createdBySubjectId: z.ZodString;
162
+ createdAt: z.ZodString;
163
+ }, z.core.$strip>>;
164
+ activationEvents: z.ZodArray<z.ZodObject<{
165
+ id: z.ZodString;
166
+ operationId: z.ZodString;
167
+ accountId: z.ZodString;
168
+ workspaceId: z.ZodString;
169
+ activationVersion: z.ZodNumber;
170
+ oldRevision: z.ZodNullable<z.ZodObject<{
171
+ id: z.ZodString;
172
+ revision: z.ZodNumber;
173
+ policyHash: z.ZodString;
174
+ }, z.core.$strip>>;
175
+ newRevision: z.ZodObject<{
176
+ id: z.ZodString;
177
+ revision: z.ZodNumber;
178
+ policyHash: z.ZodString;
179
+ }, z.core.$strip>;
180
+ actorSubjectId: z.ZodString;
181
+ reason: z.ZodString;
182
+ createdAt: z.ZodString;
183
+ }, z.core.$strip>>;
184
+ }, z.core.$strip>;
185
+ export type SlackTaskPolicyListResponse = z.infer<typeof SlackTaskPolicyListResponse>;
186
+ export declare const UpdateSlackTaskPolicyRequest: z.ZodObject<{
187
+ operationId: z.ZodOptional<z.ZodString>;
188
+ policy: z.ZodObject<{
189
+ allowedTeamIds: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>;
190
+ allowedConversationIds: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>;
191
+ allowGuestInitiators: z.ZodBoolean;
192
+ allowExternalInitiators: z.ZodBoolean;
193
+ allowMpim: z.ZodBoolean;
194
+ sharedConversationMode: z.ZodEnum<{
195
+ deny: "deny";
196
+ private_handoff: "private_handoff";
197
+ }>;
198
+ resultPublicationMode: z.ZodEnum<{
199
+ allow: "allow";
200
+ approval_required: "approval_required";
201
+ never: "never";
202
+ }>;
203
+ }, z.core.$strict>;
204
+ expectedCurrentRevisionId: z.ZodNullable<z.ZodString>;
205
+ expectedActivationVersion: z.ZodNumber;
206
+ reason: z.ZodString;
207
+ }, z.core.$strip>;
208
+ export type UpdateSlackTaskPolicyRequest = z.infer<typeof UpdateSlackTaskPolicyRequest>;
209
+ export declare const SlackTaskPolicyMutationResponse: z.ZodObject<{
210
+ revision: z.ZodObject<{
211
+ id: z.ZodString;
212
+ revision: z.ZodNumber;
213
+ policyHash: z.ZodString;
214
+ operationId: z.ZodString;
215
+ accountId: z.ZodString;
216
+ workspaceId: z.ZodString;
217
+ policy: z.ZodObject<{
218
+ allowedTeamIds: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>;
219
+ allowedConversationIds: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<string[], string[]>>;
220
+ allowGuestInitiators: z.ZodBoolean;
221
+ allowExternalInitiators: z.ZodBoolean;
222
+ allowMpim: z.ZodBoolean;
223
+ sharedConversationMode: z.ZodEnum<{
224
+ deny: "deny";
225
+ private_handoff: "private_handoff";
226
+ }>;
227
+ resultPublicationMode: z.ZodEnum<{
228
+ allow: "allow";
229
+ approval_required: "approval_required";
230
+ never: "never";
231
+ }>;
232
+ }, z.core.$strict>;
233
+ supersedesRevisionId: z.ZodNullable<z.ZodString>;
234
+ createdBySubjectId: z.ZodString;
235
+ createdAt: z.ZodString;
236
+ }, z.core.$strip>;
237
+ head: z.ZodObject<{
238
+ accountId: z.ZodString;
239
+ workspaceId: z.ZodString;
240
+ revisionId: z.ZodString;
241
+ revision: z.ZodNumber;
242
+ policyHash: z.ZodString;
243
+ activationVersion: z.ZodNumber;
244
+ activatedAt: z.ZodString;
245
+ }, z.core.$strip>;
246
+ event: z.ZodObject<{
247
+ id: z.ZodString;
248
+ operationId: z.ZodString;
249
+ accountId: z.ZodString;
250
+ workspaceId: z.ZodString;
251
+ activationVersion: z.ZodNumber;
252
+ oldRevision: z.ZodNullable<z.ZodObject<{
253
+ id: z.ZodString;
254
+ revision: z.ZodNumber;
255
+ policyHash: z.ZodString;
256
+ }, z.core.$strip>>;
257
+ newRevision: z.ZodObject<{
258
+ id: z.ZodString;
259
+ revision: z.ZodNumber;
260
+ policyHash: z.ZodString;
261
+ }, z.core.$strip>;
262
+ actorSubjectId: z.ZodString;
263
+ reason: z.ZodString;
264
+ createdAt: z.ZodString;
265
+ }, z.core.$strip>;
266
+ }, z.core.$strip>;
267
+ export type SlackTaskPolicyMutationResponse = z.infer<typeof SlackTaskPolicyMutationResponse>;
268
+ export type SlackTaskPolicyConversationFacts = Readonly<{
269
+ installationTeamId: string;
270
+ conversationId: string;
271
+ contextTeamId: string | null;
272
+ connectedTeamIds: readonly string[] | null;
273
+ sharedTeamIds: readonly string[] | null;
274
+ isShared: boolean;
275
+ isExternallyShared: boolean;
276
+ isOrgShared: boolean;
277
+ isPendingExternallyShared: boolean;
278
+ isMpim: boolean;
279
+ }>;
280
+ export type SlackTaskPolicyInitiatorFacts = Readonly<{
281
+ teamId: string | null;
282
+ isGuest: boolean | null;
283
+ isExternal: boolean | null;
284
+ }>;
285
+ export type SlackTaskPolicyDecision = Readonly<{
286
+ disposition: "ordinary" | "deny" | "private_handoff";
287
+ publication: SlackResultPublicationMode;
288
+ reason: "ordinary_conversation" | "policy_missing" | "conversation_not_allowed" | "team_not_allowed" | "ambiguous_shared_facts" | "mpim_not_allowed" | "guest_not_allowed" | "external_not_allowed" | "allowed";
289
+ }>;
290
+ export declare function evaluateSlackTaskPolicy(input: {
291
+ policy: SlackTaskPolicyContent | null;
292
+ conversation: SlackTaskPolicyConversationFacts;
293
+ initiator: SlackTaskPolicyInitiatorFacts;
294
+ }): SlackTaskPolicyDecision;
@@ -0,0 +1,128 @@
1
+ import { z } from "zod";
2
+ export declare const TASK_NOTE_TEXT_MAX_BYTES = 4096;
3
+ export declare const TASK_NOTE_REASON_MAX_BYTES = 2048;
4
+ export declare const TASK_NOTE_MAX_LIFETIME_DAYS = 30;
5
+ export declare const TASK_NOTE_ACTIVE_RECORD_CAP = 500;
6
+ export declare const TASK_NOTE_LIST_DEFAULT_LIMIT = 10;
7
+ export declare const TASK_NOTE_LIST_MAX_LIMIT = 20;
8
+ export declare const TASK_NOTE_LIST_RESPONSE_MAX_BYTES: number;
9
+ export declare function boundedTaskNoteText(maxBytes: number, label: string): z.ZodString;
10
+ export declare const TaskNoteText: z.ZodString;
11
+ export declare const TaskNoteReason: z.ZodString;
12
+ export declare const TaskNoteKind: z.ZodEnum<{
13
+ artifact: "artifact";
14
+ blocker: "blocker";
15
+ decision: "decision";
16
+ finding: "finding";
17
+ handoff: "handoff";
18
+ ownership: "ownership";
19
+ }>;
20
+ export type TaskNoteKind = z.infer<typeof TaskNoteKind>;
21
+ export declare const TaskNoteStatus: z.ZodEnum<{
22
+ active: "active";
23
+ archived: "archived";
24
+ }>;
25
+ export type TaskNoteStatus = z.infer<typeof TaskNoteStatus>;
26
+ export declare const TaskNoteActorKind: z.ZodEnum<{
27
+ human: "human";
28
+ service: "service";
29
+ }>;
30
+ export type TaskNoteActorKind = z.infer<typeof TaskNoteActorKind>;
31
+ export declare const TaskNote: z.ZodObject<{
32
+ id: z.ZodString;
33
+ rootSessionId: z.ZodString;
34
+ kind: z.ZodEnum<{
35
+ artifact: "artifact";
36
+ blocker: "blocker";
37
+ decision: "decision";
38
+ finding: "finding";
39
+ handoff: "handoff";
40
+ ownership: "ownership";
41
+ }>;
42
+ text: z.ZodString;
43
+ status: z.ZodEnum<{
44
+ active: "active";
45
+ archived: "archived";
46
+ }>;
47
+ version: z.ZodNumber;
48
+ expiresAt: z.ZodString;
49
+ createdAt: z.ZodString;
50
+ updatedAt: z.ZodString;
51
+ archivedAt: z.ZodNullable<z.ZodString>;
52
+ provenance: z.ZodObject<{
53
+ actorKind: z.ZodEnum<{
54
+ human: "human";
55
+ service: "service";
56
+ }>;
57
+ sourceSessionId: z.ZodString;
58
+ sourceTurnId: z.ZodString;
59
+ }, z.core.$strip>;
60
+ }, z.core.$strip>;
61
+ export type TaskNote = z.infer<typeof TaskNote>;
62
+ export declare const TaskNoteMutationResult: z.ZodObject<{
63
+ note: z.ZodObject<{
64
+ id: z.ZodString;
65
+ rootSessionId: z.ZodString;
66
+ kind: z.ZodEnum<{
67
+ artifact: "artifact";
68
+ blocker: "blocker";
69
+ decision: "decision";
70
+ finding: "finding";
71
+ handoff: "handoff";
72
+ ownership: "ownership";
73
+ }>;
74
+ text: z.ZodString;
75
+ status: z.ZodEnum<{
76
+ active: "active";
77
+ archived: "archived";
78
+ }>;
79
+ version: z.ZodNumber;
80
+ expiresAt: z.ZodString;
81
+ createdAt: z.ZodString;
82
+ updatedAt: z.ZodString;
83
+ archivedAt: z.ZodNullable<z.ZodString>;
84
+ provenance: z.ZodObject<{
85
+ actorKind: z.ZodEnum<{
86
+ human: "human";
87
+ service: "service";
88
+ }>;
89
+ sourceSessionId: z.ZodString;
90
+ sourceTurnId: z.ZodString;
91
+ }, z.core.$strip>;
92
+ }, z.core.$strip>;
93
+ replayed: z.ZodBoolean;
94
+ }, z.core.$strip>;
95
+ export type TaskNoteMutationResult = z.infer<typeof TaskNoteMutationResult>;
96
+ export declare const TaskNoteListResponse: z.ZodObject<{
97
+ notes: z.ZodArray<z.ZodObject<{
98
+ id: z.ZodString;
99
+ rootSessionId: z.ZodString;
100
+ kind: z.ZodEnum<{
101
+ artifact: "artifact";
102
+ blocker: "blocker";
103
+ decision: "decision";
104
+ finding: "finding";
105
+ handoff: "handoff";
106
+ ownership: "ownership";
107
+ }>;
108
+ text: z.ZodString;
109
+ status: z.ZodEnum<{
110
+ active: "active";
111
+ archived: "archived";
112
+ }>;
113
+ version: z.ZodNumber;
114
+ expiresAt: z.ZodString;
115
+ createdAt: z.ZodString;
116
+ updatedAt: z.ZodString;
117
+ archivedAt: z.ZodNullable<z.ZodString>;
118
+ provenance: z.ZodObject<{
119
+ actorKind: z.ZodEnum<{
120
+ human: "human";
121
+ service: "service";
122
+ }>;
123
+ sourceSessionId: z.ZodString;
124
+ sourceTurnId: z.ZodString;
125
+ }, z.core.$strip>;
126
+ }, z.core.$strip>>;
127
+ }, z.core.$strip>;
128
+ export type TaskNoteListResponse = z.infer<typeof TaskNoteListResponse>;
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const VIDEO_GENERATION_SCHEMA_VERSION: 1;
3
3
  export declare const SEEDANCE_2_5_MODEL_ID: "bytedance/seedance-2.5";
4
+ export declare const GROK_IMAGINE_VIDEO_1_5_MODEL_ID: "xai/grok-imagine-video-1.5";
4
5
  export declare const VideoGenerationSourceMode: z.ZodEnum<{
5
6
  first_and_last_frames: "first_and_last_frames";
6
7
  first_frame: "first_frame";
@@ -16,6 +17,7 @@ export declare const VideoGenerationResolution: z.ZodEnum<{
16
17
  export type VideoGenerationResolution = z.infer<typeof VideoGenerationResolution>;
17
18
  export declare const VideoGenerationFundingSource: z.ZodEnum<{
18
19
  opengeni_credits: "opengeni_credits";
20
+ supergrok_subscription: "supergrok_subscription";
19
21
  workspace_gateway: "workspace_gateway";
20
22
  }>;
21
23
  export type VideoGenerationFundingSource = z.infer<typeof VideoGenerationFundingSource>;
@@ -159,6 +161,7 @@ export declare const VideoGenerationPolicy: z.ZodObject<{
159
161
  revision: z.ZodNumber;
160
162
  fundingSource: z.ZodEnum<{
161
163
  opengeni_credits: "opengeni_credits";
164
+ supergrok_subscription: "supergrok_subscription";
162
165
  workspace_gateway: "workspace_gateway";
163
166
  }>;
164
167
  enabledModelIds: z.ZodArray<z.ZodString>;
@@ -169,6 +172,7 @@ export declare const UpdateVideoGenerationPolicyRequest: z.ZodObject<{
169
172
  expectedRevision: z.ZodNumber;
170
173
  fundingSource: z.ZodEnum<{
171
174
  opengeni_credits: "opengeni_credits";
175
+ supergrok_subscription: "supergrok_subscription";
172
176
  workspace_gateway: "workspace_gateway";
173
177
  }>;
174
178
  enabledModelIds: z.ZodArray<z.ZodString>;
@@ -178,6 +182,7 @@ export type UpdateVideoGenerationPolicyRequest = z.infer<typeof UpdateVideoGener
178
182
  export declare const VideoGenerationFundingOption: z.ZodObject<{
179
183
  source: z.ZodEnum<{
180
184
  opengeni_credits: "opengeni_credits";
185
+ supergrok_subscription: "supergrok_subscription";
181
186
  workspace_gateway: "workspace_gateway";
182
187
  }>;
183
188
  label: z.ZodString;
@@ -193,6 +198,7 @@ export declare const WorkspaceVideoGenerationSettings: z.ZodObject<{
193
198
  revision: z.ZodNumber;
194
199
  fundingSource: z.ZodEnum<{
195
200
  opengeni_credits: "opengeni_credits";
201
+ supergrok_subscription: "supergrok_subscription";
196
202
  workspace_gateway: "workspace_gateway";
197
203
  }>;
198
204
  enabledModelIds: z.ZodArray<z.ZodString>;
@@ -201,6 +207,7 @@ export declare const WorkspaceVideoGenerationSettings: z.ZodObject<{
201
207
  fundingOptions: z.ZodArray<z.ZodObject<{
202
208
  source: z.ZodEnum<{
203
209
  opengeni_credits: "opengeni_credits";
210
+ supergrok_subscription: "supergrok_subscription";
204
211
  workspace_gateway: "workspace_gateway";
205
212
  }>;
206
213
  label: z.ZodString;
@@ -283,6 +290,47 @@ export declare const VideoGenerationAcceptedReceipt: z.ZodObject<{
283
290
  operationId: z.ZodString;
284
291
  }, z.core.$strict>;
285
292
  export type VideoGenerationAcceptedReceipt = z.infer<typeof VideoGenerationAcceptedReceipt>;
293
+ export declare const VideoGenerationRejectedCode: z.ZodEnum<{
294
+ invalid_reference_path: "invalid_reference_path";
295
+ reference_media_type_mismatch: "reference_media_type_mismatch";
296
+ reference_not_stable: "reference_not_stable";
297
+ reference_too_large: "reference_too_large";
298
+ unsupported_reference_media: "unsupported_reference_media";
299
+ }>;
300
+ export type VideoGenerationRejectedCode = z.infer<typeof VideoGenerationRejectedCode>;
301
+ /** Deterministic pre-admission rejection: no provider request or durable operation was created. */
302
+ export declare const VideoGenerationRejectedResult: z.ZodObject<{
303
+ schemaVersion: z.ZodLiteral<1>;
304
+ status: z.ZodLiteral<"rejected">;
305
+ code: z.ZodEnum<{
306
+ invalid_reference_path: "invalid_reference_path";
307
+ reference_media_type_mismatch: "reference_media_type_mismatch";
308
+ reference_not_stable: "reference_not_stable";
309
+ reference_too_large: "reference_too_large";
310
+ unsupported_reference_media: "unsupported_reference_media";
311
+ }>;
312
+ message: z.ZodString;
313
+ operationCreated: z.ZodLiteral<false>;
314
+ }, z.core.$strict>;
315
+ export type VideoGenerationRejectedResult = z.infer<typeof VideoGenerationRejectedResult>;
316
+ export declare const VideoGenerationToolResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
317
+ schemaVersion: z.ZodLiteral<1>;
318
+ status: z.ZodLiteral<"accepted">;
319
+ operationId: z.ZodString;
320
+ }, z.core.$strict>, z.ZodObject<{
321
+ schemaVersion: z.ZodLiteral<1>;
322
+ status: z.ZodLiteral<"rejected">;
323
+ code: z.ZodEnum<{
324
+ invalid_reference_path: "invalid_reference_path";
325
+ reference_media_type_mismatch: "reference_media_type_mismatch";
326
+ reference_not_stable: "reference_not_stable";
327
+ reference_too_large: "reference_too_large";
328
+ unsupported_reference_media: "unsupported_reference_media";
329
+ }>;
330
+ message: z.ZodString;
331
+ operationCreated: z.ZodLiteral<false>;
332
+ }, z.core.$strict>], "status">;
333
+ export type VideoGenerationToolResult = z.infer<typeof VideoGenerationToolResult>;
286
334
  export declare const GeneratedVideoFacts: z.ZodObject<{
287
335
  durationSeconds: z.ZodNumber;
288
336
  width: z.ZodNumber;
@@ -1,4 +1,5 @@
1
1
  import {
2
+ GROK_IMAGINE_VIDEO_1_5_MODEL_ID,
2
3
  GenerateVideoToolInput,
3
4
  GeneratedVideoFacts,
4
5
  GeneratedVideoReceipt,
@@ -17,13 +18,17 @@ import {
17
18
  VideoGenerationOperationSummary,
18
19
  VideoGenerationPolicy,
19
20
  VideoGenerationPublicStatus,
21
+ VideoGenerationRejectedCode,
22
+ VideoGenerationRejectedResult,
20
23
  VideoGenerationResolution,
21
24
  VideoGenerationSource,
22
25
  VideoGenerationSourceMode,
23
26
  VideoGenerationTerminalFailureStatus,
27
+ VideoGenerationToolResult,
24
28
  WorkspaceVideoGenerationSettings
25
- } from "./chunk-52SGB2QO.js";
29
+ } from "./chunk-M5ZGRVIQ.js";
26
30
  export {
31
+ GROK_IMAGINE_VIDEO_1_5_MODEL_ID,
27
32
  GenerateVideoToolInput,
28
33
  GeneratedVideoFacts,
29
34
  GeneratedVideoReceipt,
@@ -42,10 +47,13 @@ export {
42
47
  VideoGenerationOperationSummary,
43
48
  VideoGenerationPolicy,
44
49
  VideoGenerationPublicStatus,
50
+ VideoGenerationRejectedCode,
51
+ VideoGenerationRejectedResult,
45
52
  VideoGenerationResolution,
46
53
  VideoGenerationSource,
47
54
  VideoGenerationSourceMode,
48
55
  VideoGenerationTerminalFailureStatus,
56
+ VideoGenerationToolResult,
49
57
  WorkspaceVideoGenerationSettings
50
58
  };
51
59
  //# sourceMappingURL=video-generation.js.map
@@ -0,0 +1,23 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Opaque authority frozen at an xAI provider-account acceptance boundary.
4
+ *
5
+ * This snapshot deliberately carries no organization, membership, credential,
6
+ * provider-account, subject, label, quota, token, or plan identity. User scope
7
+ * becomes executable only after exact live database revalidation against the
8
+ * separately stored causal subject and xAI subscription authority row.
9
+ */
10
+ export declare const XaiProviderAccountAuthoritySnapshotV1: z.ZodDiscriminatedUnion<[z.ZodObject<{
11
+ version: z.ZodLiteral<1>;
12
+ scope: z.ZodLiteral<"workspace">;
13
+ }, z.core.$strict>, z.ZodObject<{
14
+ version: z.ZodLiteral<1>;
15
+ scope: z.ZodLiteral<"user">;
16
+ authorityGeneration: z.ZodNumber;
17
+ }, z.core.$strict>], "scope">;
18
+ export type XaiProviderAccountAuthoritySnapshotV1 = z.infer<typeof XaiProviderAccountAuthoritySnapshotV1>;
19
+ /** Explicit compatibility value for workspace-default accepted work. */
20
+ export declare const WORKSPACE_XAI_PROVIDER_ACCOUNT_AUTHORITY_SNAPSHOT_V1: {
21
+ readonly version: 1;
22
+ readonly scope: "workspace";
23
+ };
@@ -0,0 +1,9 @@
1
+ import {
2
+ WORKSPACE_XAI_PROVIDER_ACCOUNT_AUTHORITY_SNAPSHOT_V1,
3
+ XaiProviderAccountAuthoritySnapshotV1
4
+ } from "./chunk-CM6BMECR.js";
5
+ export {
6
+ WORKSPACE_XAI_PROVIDER_ACCOUNT_AUTHORITY_SNAPSHOT_V1,
7
+ XaiProviderAccountAuthoritySnapshotV1
8
+ };
9
+ //# sourceMappingURL=xai-provider-account-authority.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeni/contracts",
3
- "version": "0.44.1",
3
+ "version": "0.50.0",
4
4
  "description": "Shared zod schemas and wire-contract types for the OpenGeni API.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -42,6 +42,18 @@
42
42
  "types": "./dist/video-generation.d.ts",
43
43
  "import": "./dist/video-generation.js"
44
44
  },
45
+ "./canonical-human-identities": {
46
+ "types": "./dist/canonical-human-identities.d.ts",
47
+ "import": "./dist/canonical-human-identities.js"
48
+ },
49
+ "./codex-provider-account-authority": {
50
+ "types": "./dist/codex-provider-account-authority.d.ts",
51
+ "import": "./dist/codex-provider-account-authority.js"
52
+ },
53
+ "./xai-provider-account-authority": {
54
+ "types": "./dist/xai-provider-account-authority.d.ts",
55
+ "import": "./dist/xai-provider-account-authority.js"
56
+ },
45
57
  "./editable-artifacts": {
46
58
  "types": "./dist/editable-artifacts.d.ts",
47
59
  "import": "./dist/editable-artifacts.js"
package/src/artifacts.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
 
3
- export const WORKSPACE_ARTIFACT_HTML_MAX_UTF8_BYTES = 512 * 1024;
3
+ export const WORKSPACE_ARTIFACT_HTML_MAX_UTF8_BYTES = 4 * 1024 * 1024;
4
4
  export const WORKSPACE_ARTIFACT_TITLE_MAX_CHARS = 120;
5
5
  export const WORKSPACE_ARTIFACT_DESCRIPTION_MAX_CHARS = 2_000;
6
6
  export const WORKSPACE_ARTIFACT_LIST_MAX = 100;