@opengeni/contracts 5.1.0 → 5.1.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/index.js CHANGED
@@ -158,6 +158,11 @@ import {
158
158
  BrowserDiagnosticEntry,
159
159
  BrowserDiagnosticKind,
160
160
  BrowserDialog,
161
+ BrowserDomReadLocator,
162
+ BrowserDomReadRequest,
163
+ BrowserDomReadResponse,
164
+ BrowserDomReadSelector,
165
+ BrowserDomSafeAttribute,
161
166
  BrowserDownload,
162
167
  BrowserDownloadExportReceipt,
163
168
  BrowserDownloadExportRequest,
@@ -198,6 +203,7 @@ import {
198
203
  BrowserSessionMutationResponse,
199
204
  BrowserTarget,
200
205
  BrowserTargetListResponse,
206
+ BrowserTargetState,
201
207
  BrowserWorkspaceFileAuthority,
202
208
  BrowserWorkspaceFileStageRequest,
203
209
  BrowserWorkspaceFileStageResponse,
@@ -771,6 +777,7 @@ import {
771
777
  KnowledgeFactObjectKind,
772
778
  KnowledgeFilePreparationResult,
773
779
  KnowledgeGetResponse,
780
+ KnowledgeIndexStatus,
774
781
  KnowledgeLifecycleEventType,
775
782
  KnowledgeLifecycleState,
776
783
  KnowledgeLink,
@@ -1939,7 +1946,7 @@ import {
1939
1946
  workspaceLearningPolicyRouterContext,
1940
1947
  workspaceLearningSourceKey,
1941
1948
  workspaceSlackReactionChannelAllowed
1942
- } from "./chunk-O23LYZFL.js";
1949
+ } from "./chunk-4X45RNDK.js";
1943
1950
  import {
1944
1951
  COMPUTER_SCREENSHOT_MAX_BYTES,
1945
1952
  COMPUTER_SCREENSHOT_MAX_DIMENSION,
@@ -1990,8 +1997,9 @@ import {
1990
1997
  retainedGeneratedVideoReferenceFromFile,
1991
1998
  retainedOutputUnavailable,
1992
1999
  retainedScreenshotReferenceFromFile,
2000
+ retainedSessionScreenshotKindFromObjectKey,
1993
2001
  validateRetainedOutputEvidence
1994
- } from "./chunk-M5ZGRVIQ.js";
2002
+ } from "./chunk-5IXYF6XN.js";
1995
2003
  import {
1996
2004
  AUTOMATIC_SESSION_TITLE_FALLBACK,
1997
2005
  AUTOMATIC_SESSION_TITLE_MAX_GRAPHEMES,
@@ -2408,6 +2416,11 @@ export {
2408
2416
  BrowserDiagnosticEntry,
2409
2417
  BrowserDiagnosticKind,
2410
2418
  BrowserDialog,
2419
+ BrowserDomReadLocator,
2420
+ BrowserDomReadRequest,
2421
+ BrowserDomReadResponse,
2422
+ BrowserDomReadSelector,
2423
+ BrowserDomSafeAttribute,
2411
2424
  BrowserDownload,
2412
2425
  BrowserDownloadExportReceipt,
2413
2426
  BrowserDownloadExportRequest,
@@ -2448,6 +2461,7 @@ export {
2448
2461
  BrowserSessionMutationResponse,
2449
2462
  BrowserTarget,
2450
2463
  BrowserTargetListResponse,
2464
+ BrowserTargetState,
2451
2465
  BrowserWorkspaceFileAuthority,
2452
2466
  BrowserWorkspaceFileStageRequest,
2453
2467
  BrowserWorkspaceFileStageResponse,
@@ -3101,6 +3115,7 @@ export {
3101
3115
  KnowledgeFactObjectKind,
3102
3116
  KnowledgeFilePreparationResult,
3103
3117
  KnowledgeGetResponse,
3118
+ KnowledgeIndexStatus,
3104
3119
  KnowledgeLifecycleEventType,
3105
3120
  KnowledgeLifecycleState,
3106
3121
  KnowledgeLink,
@@ -4402,6 +4417,7 @@ export {
4402
4417
  retainedGeneratedVideoReferenceFromFile,
4403
4418
  retainedOutputUnavailable,
4404
4419
  retainedScreenshotReferenceFromFile,
4420
+ retainedSessionScreenshotKindFromObjectKey,
4405
4421
  sandboxRecoveryDiscontinuity,
4406
4422
  sandboxShellPath,
4407
4423
  scheduledOccurrencePayloadUtf8Bytes,
@@ -2903,6 +2903,7 @@ export declare const RequestHumanInteractionToolOutput: z.ZodObject<{
2903
2903
  artifactId: z.ZodString;
2904
2904
  kind: z.ZodEnum<{
2905
2905
  assistant_completion: "assistant_completion";
2906
+ browser_screenshot: "browser_screenshot";
2906
2907
  computer_screenshot: "computer_screenshot";
2907
2908
  event_media: "event_media";
2908
2909
  file: "file";
@@ -2933,6 +2934,14 @@ export declare const RequestHumanInteractionToolOutput: z.ZodObject<{
2933
2934
  maxRangeBytes: z.ZodNumber;
2934
2935
  }, z.core.$strict>;
2935
2936
  }, z.core.$strict>>;
2937
+ viewport: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2938
+ width: z.ZodNumber;
2939
+ height: z.ZodNumber;
2940
+ visualWidth: z.ZodNumber;
2941
+ visualHeight: z.ZodNumber;
2942
+ deviceScaleFactor: z.ZodNumber;
2943
+ maxTouchPoints: z.ZodNumber;
2944
+ }, z.core.$strict>>>;
2936
2945
  focusedRef: z.ZodNullable<z.ZodString>;
2937
2946
  changedRegions: z.ZodArray<z.ZodObject<{
2938
2947
  x: z.ZodNumber;
@@ -2999,6 +3008,7 @@ export declare const RequestHumanInteractionToolOutput: z.ZodObject<{
2999
3008
  artifactId: z.ZodString;
3000
3009
  kind: z.ZodEnum<{
3001
3010
  assistant_completion: "assistant_completion";
3011
+ browser_screenshot: "browser_screenshot";
3002
3012
  computer_screenshot: "computer_screenshot";
3003
3013
  event_media: "event_media";
3004
3014
  file: "file";
@@ -3530,6 +3540,7 @@ export declare const BrowserObservation: z.ZodObject<{
3530
3540
  artifactId: z.ZodString;
3531
3541
  kind: z.ZodEnum<{
3532
3542
  assistant_completion: "assistant_completion";
3543
+ browser_screenshot: "browser_screenshot";
3533
3544
  computer_screenshot: "computer_screenshot";
3534
3545
  event_media: "event_media";
3535
3546
  file: "file";
@@ -3560,6 +3571,14 @@ export declare const BrowserObservation: z.ZodObject<{
3560
3571
  maxRangeBytes: z.ZodNumber;
3561
3572
  }, z.core.$strict>;
3562
3573
  }, z.core.$strict>>;
3574
+ viewport: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3575
+ width: z.ZodNumber;
3576
+ height: z.ZodNumber;
3577
+ visualWidth: z.ZodNumber;
3578
+ visualHeight: z.ZodNumber;
3579
+ deviceScaleFactor: z.ZodNumber;
3580
+ maxTouchPoints: z.ZodNumber;
3581
+ }, z.core.$strict>>>;
3563
3582
  focusedRef: z.ZodNullable<z.ZodString>;
3564
3583
  changedRegions: z.ZodArray<z.ZodObject<{
3565
3584
  x: z.ZodNumber;
@@ -3671,6 +3690,134 @@ export declare const BrowserLocator: z.ZodDiscriminatedUnion<[z.ZodObject<{
3671
3690
  selector: z.ZodString;
3672
3691
  }, z.core.$strict>], "kind">;
3673
3692
  export type BrowserLocator = z.infer<typeof BrowserLocator>;
3693
+ /** Cheap causal state for a target. This is intentionally independent of an
3694
+ * accessibility observation, which can require a full tree for every frame. */
3695
+ export declare const BrowserTargetState: z.ZodObject<{
3696
+ browserSessionId: z.ZodString;
3697
+ controllerGeneration: z.ZodString;
3698
+ targetId: z.ZodString;
3699
+ targetGeneration: z.ZodString;
3700
+ documentGeneration: z.ZodNullable<z.ZodString>;
3701
+ frameId: z.ZodNullable<z.ZodString>;
3702
+ }, z.core.$strict>;
3703
+ export type BrowserTargetState = z.infer<typeof BrowserTargetState>;
3704
+ export declare const BrowserDomSafeAttribute: z.ZodEnum<{
3705
+ alt: "alt";
3706
+ "aria-checked": "aria-checked";
3707
+ "aria-expanded": "aria-expanded";
3708
+ "aria-label": "aria-label";
3709
+ "aria-selected": "aria-selected";
3710
+ "data-testid": "data-testid";
3711
+ href: "href";
3712
+ name: "name";
3713
+ placeholder: "placeholder";
3714
+ role: "role";
3715
+ src: "src";
3716
+ title: "title";
3717
+ type: "type";
3718
+ }>;
3719
+ export type BrowserDomSafeAttribute = z.infer<typeof BrowserDomSafeAttribute>;
3720
+ export declare const BrowserDomReadSelector: z.ZodString;
3721
+ /** DOM extraction avoids content-matching locators, which can probe redacted text. */
3722
+ export declare const BrowserDomReadLocator: z.ZodDiscriminatedUnion<[z.ZodObject<{
3723
+ kind: z.ZodLiteral<"ref">;
3724
+ ref: z.ZodString;
3725
+ }, z.core.$strict>, z.ZodObject<{
3726
+ kind: z.ZodLiteral<"placeholder">;
3727
+ text: z.ZodString;
3728
+ }, z.core.$strict>, z.ZodObject<{
3729
+ kind: z.ZodLiteral<"test_id">;
3730
+ value: z.ZodString;
3731
+ }, z.core.$strict>, z.ZodObject<{
3732
+ kind: z.ZodLiteral<"css">;
3733
+ selector: z.ZodString;
3734
+ }, z.core.$strict>], "kind">;
3735
+ export type BrowserDomReadLocator = z.infer<typeof BrowserDomReadLocator>;
3736
+ /** A fixed, read-only query. The caller never supplies executable JavaScript.
3737
+ * CSS reads accept only simple tag, class, id, descendant, and child selectors
3738
+ * so predicate queries cannot probe protected attribute values. CSS count is
3739
+ * scoped to the target's main document; child frames and shadow roots are not
3740
+ * part of its count. */
3741
+ export declare const BrowserDomReadRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
3742
+ expectedTargetGeneration: z.ZodString;
3743
+ expectedDocumentGeneration: z.ZodString;
3744
+ expectedFrameId: z.ZodString;
3745
+ kind: z.ZodLiteral<"element">;
3746
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
3747
+ kind: z.ZodLiteral<"ref">;
3748
+ ref: z.ZodString;
3749
+ }, z.core.$strict>, z.ZodObject<{
3750
+ kind: z.ZodLiteral<"placeholder">;
3751
+ text: z.ZodString;
3752
+ }, z.core.$strict>, z.ZodObject<{
3753
+ kind: z.ZodLiteral<"test_id">;
3754
+ value: z.ZodString;
3755
+ }, z.core.$strict>, z.ZodObject<{
3756
+ kind: z.ZodLiteral<"css">;
3757
+ selector: z.ZodString;
3758
+ }, z.core.$strict>], "kind">;
3759
+ attributes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3760
+ alt: "alt";
3761
+ "aria-checked": "aria-checked";
3762
+ "aria-expanded": "aria-expanded";
3763
+ "aria-label": "aria-label";
3764
+ "aria-selected": "aria-selected";
3765
+ "data-testid": "data-testid";
3766
+ href: "href";
3767
+ name: "name";
3768
+ placeholder: "placeholder";
3769
+ role: "role";
3770
+ src: "src";
3771
+ title: "title";
3772
+ type: "type";
3773
+ }>>>;
3774
+ maxChars: z.ZodOptional<z.ZodNumber>;
3775
+ }, z.core.$strict>, z.ZodObject<{
3776
+ expectedTargetGeneration: z.ZodString;
3777
+ expectedDocumentGeneration: z.ZodString;
3778
+ expectedFrameId: z.ZodString;
3779
+ kind: z.ZodLiteral<"count">;
3780
+ selector: z.ZodString;
3781
+ }, z.core.$strict>], "kind">;
3782
+ export type BrowserDomReadRequest = z.infer<typeof BrowserDomReadRequest>;
3783
+ export declare const BrowserDomReadResponse: z.ZodObject<{
3784
+ browserSessionId: z.ZodString;
3785
+ controllerGeneration: z.ZodString;
3786
+ targetId: z.ZodString;
3787
+ targetGeneration: z.ZodString;
3788
+ documentGeneration: z.ZodNullable<z.ZodString>;
3789
+ frameId: z.ZodNullable<z.ZodString>;
3790
+ kind: z.ZodEnum<{
3791
+ count: "count";
3792
+ element: "element";
3793
+ }>;
3794
+ count: z.ZodNumber;
3795
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3796
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3797
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
3798
+ alt: "alt";
3799
+ "aria-checked": "aria-checked";
3800
+ "aria-expanded": "aria-expanded";
3801
+ "aria-label": "aria-label";
3802
+ "aria-selected": "aria-selected";
3803
+ "data-testid": "data-testid";
3804
+ href: "href";
3805
+ name: "name";
3806
+ placeholder: "placeholder";
3807
+ role: "role";
3808
+ src: "src";
3809
+ title: "title";
3810
+ type: "type";
3811
+ }> & z.core.$partial, z.ZodNullable<z.ZodString>>>;
3812
+ redacted: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
3813
+ password: "password";
3814
+ payment: "payment";
3815
+ policy: "policy";
3816
+ private: "private";
3817
+ }>>>;
3818
+ truncated: z.ZodBoolean;
3819
+ }, z.core.$strict>;
3820
+ export type BrowserDomReadResponse = z.infer<typeof BrowserDomReadResponse>;
3674
3821
  /** Provider-neutral locator for native accessibility trees. Native automation
3675
3822
  * identifiers are intentionally distinct from DOM selectors/test ids: AX,
3676
3823
  * AT-SPI, and UIA adapters resolve them inside the exact observed target. */
@@ -3720,6 +3867,20 @@ export type BrowserPermissionSetting = z.infer<typeof BrowserPermissionSetting>;
3720
3867
  export declare const BrowserAction: z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
3721
3868
  type: z.ZodLiteral<"navigate">;
3722
3869
  url: z.ZodString;
3870
+ }, z.core.$strict>, z.ZodObject<{
3871
+ type: z.ZodLiteral<"history">;
3872
+ direction: z.ZodEnum<{
3873
+ back: "back";
3874
+ forward: "forward";
3875
+ }>;
3876
+ }, z.core.$strict>, z.ZodObject<{
3877
+ type: z.ZodLiteral<"activate">;
3878
+ }, z.core.$strict>, z.ZodObject<{
3879
+ type: z.ZodLiteral<"viewport">;
3880
+ width: z.ZodNumber;
3881
+ height: z.ZodNumber;
3882
+ mobile: z.ZodBoolean;
3883
+ deviceScaleFactor: z.ZodOptional<z.ZodNumber>;
3723
3884
  }, z.core.$strict>, z.ZodObject<{
3724
3885
  type: z.ZodLiteral<"click">;
3725
3886
  locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -4168,6 +4329,20 @@ export declare const BrowserActionBatch: z.ZodObject<{
4168
4329
  actions: z.ZodArray<z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
4169
4330
  type: z.ZodLiteral<"navigate">;
4170
4331
  url: z.ZodString;
4332
+ }, z.core.$strict>, z.ZodObject<{
4333
+ type: z.ZodLiteral<"history">;
4334
+ direction: z.ZodEnum<{
4335
+ back: "back";
4336
+ forward: "forward";
4337
+ }>;
4338
+ }, z.core.$strict>, z.ZodObject<{
4339
+ type: z.ZodLiteral<"activate">;
4340
+ }, z.core.$strict>, z.ZodObject<{
4341
+ type: z.ZodLiteral<"viewport">;
4342
+ width: z.ZodNumber;
4343
+ height: z.ZodNumber;
4344
+ mobile: z.ZodBoolean;
4345
+ deviceScaleFactor: z.ZodOptional<z.ZodNumber>;
4171
4346
  }, z.core.$strict>, z.ZodObject<{
4172
4347
  type: z.ZodLiteral<"click">;
4173
4348
  locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -4710,6 +4885,20 @@ export declare const BrowserActionCommand: z.ZodObject<{
4710
4885
  action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
4711
4886
  type: z.ZodLiteral<"navigate">;
4712
4887
  url: z.ZodString;
4888
+ }, z.core.$strict>, z.ZodObject<{
4889
+ type: z.ZodLiteral<"history">;
4890
+ direction: z.ZodEnum<{
4891
+ back: "back";
4892
+ forward: "forward";
4893
+ }>;
4894
+ }, z.core.$strict>, z.ZodObject<{
4895
+ type: z.ZodLiteral<"activate">;
4896
+ }, z.core.$strict>, z.ZodObject<{
4897
+ type: z.ZodLiteral<"viewport">;
4898
+ width: z.ZodNumber;
4899
+ height: z.ZodNumber;
4900
+ mobile: z.ZodBoolean;
4901
+ deviceScaleFactor: z.ZodOptional<z.ZodNumber>;
4713
4902
  }, z.core.$strict>, z.ZodObject<{
4714
4903
  type: z.ZodLiteral<"click">;
4715
4904
  locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -5156,6 +5345,20 @@ export declare const BrowserActionCommand: z.ZodObject<{
5156
5345
  actions: z.ZodArray<z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
5157
5346
  type: z.ZodLiteral<"navigate">;
5158
5347
  url: z.ZodString;
5348
+ }, z.core.$strict>, z.ZodObject<{
5349
+ type: z.ZodLiteral<"history">;
5350
+ direction: z.ZodEnum<{
5351
+ back: "back";
5352
+ forward: "forward";
5353
+ }>;
5354
+ }, z.core.$strict>, z.ZodObject<{
5355
+ type: z.ZodLiteral<"activate">;
5356
+ }, z.core.$strict>, z.ZodObject<{
5357
+ type: z.ZodLiteral<"viewport">;
5358
+ width: z.ZodNumber;
5359
+ height: z.ZodNumber;
5360
+ mobile: z.ZodBoolean;
5361
+ deviceScaleFactor: z.ZodOptional<z.ZodNumber>;
5159
5362
  }, z.core.$strict>, z.ZodObject<{
5160
5363
  type: z.ZodLiteral<"click">;
5161
5364
  locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -6148,6 +6351,20 @@ export declare const BrowserActionRequest: z.ZodObject<{
6148
6351
  action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
6149
6352
  type: z.ZodLiteral<"navigate">;
6150
6353
  url: z.ZodString;
6354
+ }, z.core.$strict>, z.ZodObject<{
6355
+ type: z.ZodLiteral<"history">;
6356
+ direction: z.ZodEnum<{
6357
+ back: "back";
6358
+ forward: "forward";
6359
+ }>;
6360
+ }, z.core.$strict>, z.ZodObject<{
6361
+ type: z.ZodLiteral<"activate">;
6362
+ }, z.core.$strict>, z.ZodObject<{
6363
+ type: z.ZodLiteral<"viewport">;
6364
+ width: z.ZodNumber;
6365
+ height: z.ZodNumber;
6366
+ mobile: z.ZodBoolean;
6367
+ deviceScaleFactor: z.ZodOptional<z.ZodNumber>;
6151
6368
  }, z.core.$strict>, z.ZodObject<{
6152
6369
  type: z.ZodLiteral<"click">;
6153
6370
  locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -6594,6 +6811,20 @@ export declare const BrowserActionRequest: z.ZodObject<{
6594
6811
  actions: z.ZodArray<z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
6595
6812
  type: z.ZodLiteral<"navigate">;
6596
6813
  url: z.ZodString;
6814
+ }, z.core.$strict>, z.ZodObject<{
6815
+ type: z.ZodLiteral<"history">;
6816
+ direction: z.ZodEnum<{
6817
+ back: "back";
6818
+ forward: "forward";
6819
+ }>;
6820
+ }, z.core.$strict>, z.ZodObject<{
6821
+ type: z.ZodLiteral<"activate">;
6822
+ }, z.core.$strict>, z.ZodObject<{
6823
+ type: z.ZodLiteral<"viewport">;
6824
+ width: z.ZodNumber;
6825
+ height: z.ZodNumber;
6826
+ mobile: z.ZodBoolean;
6827
+ deviceScaleFactor: z.ZodOptional<z.ZodNumber>;
6597
6828
  }, z.core.$strict>, z.ZodObject<{
6598
6829
  type: z.ZodLiteral<"click">;
6599
6830
  locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -7098,6 +7329,7 @@ export declare const BrowserActionReceipt: z.ZodObject<{
7098
7329
  artifactId: z.ZodString;
7099
7330
  kind: z.ZodEnum<{
7100
7331
  assistant_completion: "assistant_completion";
7332
+ browser_screenshot: "browser_screenshot";
7101
7333
  computer_screenshot: "computer_screenshot";
7102
7334
  event_media: "event_media";
7103
7335
  file: "file";
@@ -7128,6 +7360,14 @@ export declare const BrowserActionReceipt: z.ZodObject<{
7128
7360
  maxRangeBytes: z.ZodNumber;
7129
7361
  }, z.core.$strict>;
7130
7362
  }, z.core.$strict>>;
7363
+ viewport: z.ZodOptional<z.ZodNullable<z.ZodObject<{
7364
+ width: z.ZodNumber;
7365
+ height: z.ZodNumber;
7366
+ visualWidth: z.ZodNumber;
7367
+ visualHeight: z.ZodNumber;
7368
+ deviceScaleFactor: z.ZodNumber;
7369
+ maxTouchPoints: z.ZodNumber;
7370
+ }, z.core.$strict>>>;
7131
7371
  focusedRef: z.ZodNullable<z.ZodString>;
7132
7372
  changedRegions: z.ZodArray<z.ZodObject<{
7133
7373
  x: z.ZodNumber;
@@ -7596,6 +7836,7 @@ export declare const ComputerObservation: z.ZodObject<{
7596
7836
  artifactId: z.ZodString;
7597
7837
  kind: z.ZodEnum<{
7598
7838
  assistant_completion: "assistant_completion";
7839
+ browser_screenshot: "browser_screenshot";
7599
7840
  computer_screenshot: "computer_screenshot";
7600
7841
  event_media: "event_media";
7601
7842
  file: "file";
@@ -7876,6 +8117,7 @@ export declare const ComputerActionReceipt: z.ZodObject<{
7876
8117
  artifactId: z.ZodString;
7877
8118
  kind: z.ZodEnum<{
7878
8119
  assistant_completion: "assistant_completion";
8120
+ browser_screenshot: "browser_screenshot";
7879
8121
  computer_screenshot: "computer_screenshot";
7880
8122
  event_media: "event_media";
7881
8123
  file: "file";
@@ -599,6 +599,17 @@ export declare const KnowledgeEntryRevision: z.ZodObject<{
599
599
  }>;
600
600
  }, z.core.$strict>;
601
601
  export type KnowledgeEntryRevision = z.infer<typeof KnowledgeEntryRevision>;
602
+ /** Search/index progress is independent of saved source and keyword access. */
603
+ export declare const KnowledgeIndexStatus: z.ZodEnum<{
604
+ awaiting_funding: "awaiting_funding";
605
+ indexed: "indexed";
606
+ indexing: "indexing";
607
+ provider_failed: "provider_failed";
608
+ queued: "queued";
609
+ saved: "saved";
610
+ source_unavailable: "source_unavailable";
611
+ }>;
612
+ export type KnowledgeIndexStatus = z.infer<typeof KnowledgeIndexStatus>;
602
613
  /** Private owner IDs are not part of a content-discovery projection. */
603
614
  export declare const KnowledgeEntryRecord: z.ZodObject<{
604
615
  id: z.ZodUUID;
@@ -700,6 +711,15 @@ export declare const KnowledgeEntryRecord: z.ZodObject<{
700
711
  archived: z.ZodBoolean;
701
712
  createdAt: z.ZodString;
702
713
  updatedAt: z.ZodString;
714
+ indexStatus: z.ZodOptional<z.ZodEnum<{
715
+ awaiting_funding: "awaiting_funding";
716
+ indexed: "indexed";
717
+ indexing: "indexing";
718
+ provider_failed: "provider_failed";
719
+ queued: "queued";
720
+ saved: "saved";
721
+ source_unavailable: "source_unavailable";
722
+ }>>;
703
723
  }, z.core.$strict>;
704
724
  export type KnowledgeEntryRecord = z.infer<typeof KnowledgeEntryRecord>;
705
725
  export declare const KnowledgeEntryListRequest: z.ZodObject<{
@@ -753,6 +773,15 @@ export declare const KnowledgeEntrySummary: z.ZodObject<{
753
773
  archived: z.ZodBoolean;
754
774
  createdAt: z.ZodString;
755
775
  updatedAt: z.ZodString;
776
+ indexStatus: z.ZodOptional<z.ZodEnum<{
777
+ awaiting_funding: "awaiting_funding";
778
+ indexed: "indexed";
779
+ indexing: "indexing";
780
+ provider_failed: "provider_failed";
781
+ queued: "queued";
782
+ saved: "saved";
783
+ source_unavailable: "source_unavailable";
784
+ }>>;
756
785
  score: z.ZodOptional<z.ZodNumber>;
757
786
  excerpts: z.ZodDefault<z.ZodArray<z.ZodObject<{
758
787
  field: z.ZodEnum<{
@@ -821,6 +850,15 @@ export declare const KnowledgeEntryListResponse: z.ZodObject<{
821
850
  archived: z.ZodBoolean;
822
851
  createdAt: z.ZodString;
823
852
  updatedAt: z.ZodString;
853
+ indexStatus: z.ZodOptional<z.ZodEnum<{
854
+ awaiting_funding: "awaiting_funding";
855
+ indexed: "indexed";
856
+ indexing: "indexing";
857
+ provider_failed: "provider_failed";
858
+ queued: "queued";
859
+ saved: "saved";
860
+ source_unavailable: "source_unavailable";
861
+ }>>;
824
862
  score: z.ZodOptional<z.ZodNumber>;
825
863
  excerpts: z.ZodDefault<z.ZodArray<z.ZodObject<{
826
864
  field: z.ZodEnum<{
@@ -880,6 +918,12 @@ export declare const KnowledgeEntryListResponse: z.ZodObject<{
880
918
  keyword: "keyword";
881
919
  vector: "vector";
882
920
  }>>;
921
+ fallbackReason: z.ZodOptional<z.ZodEnum<{
922
+ awaiting_funding: "awaiting_funding";
923
+ provider_unavailable: "provider_unavailable";
924
+ query_limit: "query_limit";
925
+ quota: "quota";
926
+ }>>;
883
927
  }, z.core.$strip>;
884
928
  export type KnowledgeEntryListResponse = z.infer<typeof KnowledgeEntryListResponse>;
885
929
  export declare const KnowledgeReviewBatch: z.ZodObject<{
@@ -68,6 +68,15 @@ export declare const KnowledgeSavePreparationResponse: z.ZodObject<{
68
68
  archived: z.ZodBoolean;
69
69
  createdAt: z.ZodString;
70
70
  updatedAt: z.ZodString;
71
+ indexStatus: z.ZodOptional<z.ZodEnum<{
72
+ awaiting_funding: "awaiting_funding";
73
+ indexed: "indexed";
74
+ indexing: "indexing";
75
+ provider_failed: "provider_failed";
76
+ queued: "queued";
77
+ saved: "saved";
78
+ source_unavailable: "source_unavailable";
79
+ }>>;
71
80
  score: z.ZodOptional<z.ZodNumber>;
72
81
  excerpts: z.ZodDefault<z.ZodArray<z.ZodObject<{
73
82
  field: z.ZodEnum<{
@@ -127,6 +136,12 @@ export declare const KnowledgeSavePreparationResponse: z.ZodObject<{
127
136
  keyword: "keyword";
128
137
  vector: "vector";
129
138
  }>>;
139
+ fallbackReason: z.ZodOptional<z.ZodEnum<{
140
+ awaiting_funding: "awaiting_funding";
141
+ provider_unavailable: "provider_unavailable";
142
+ query_limit: "query_limit";
143
+ quota: "quota";
144
+ }>>;
130
145
  }, z.core.$strip>;
131
146
  needs_review: z.ZodObject<{
132
147
  entries: z.ZodArray<z.ZodObject<{
@@ -142,6 +157,15 @@ export declare const KnowledgeSavePreparationResponse: z.ZodObject<{
142
157
  archived: z.ZodBoolean;
143
158
  createdAt: z.ZodString;
144
159
  updatedAt: z.ZodString;
160
+ indexStatus: z.ZodOptional<z.ZodEnum<{
161
+ awaiting_funding: "awaiting_funding";
162
+ indexed: "indexed";
163
+ indexing: "indexing";
164
+ provider_failed: "provider_failed";
165
+ queued: "queued";
166
+ saved: "saved";
167
+ source_unavailable: "source_unavailable";
168
+ }>>;
145
169
  score: z.ZodOptional<z.ZodNumber>;
146
170
  excerpts: z.ZodDefault<z.ZodArray<z.ZodObject<{
147
171
  field: z.ZodEnum<{
@@ -201,6 +225,12 @@ export declare const KnowledgeSavePreparationResponse: z.ZodObject<{
201
225
  keyword: "keyword";
202
226
  vector: "vector";
203
227
  }>>;
228
+ fallbackReason: z.ZodOptional<z.ZodEnum<{
229
+ awaiting_funding: "awaiting_funding";
230
+ provider_unavailable: "provider_unavailable";
231
+ query_limit: "query_limit";
232
+ quota: "quota";
233
+ }>>;
204
234
  }, z.core.$strip>;
205
235
  }, z.core.$strip>;
206
236
  }, z.core.$strict>;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ConnectionMetadata
3
- } from "./chunk-O23LYZFL.js";
4
- import "./chunk-M5ZGRVIQ.js";
3
+ } from "./chunk-4X45RNDK.js";
4
+ import "./chunk-5IXYF6XN.js";
5
5
  import "./chunk-7ABONTXE.js";
6
6
  import "./chunk-NRMCVHAU.js";
7
7
  import "./chunk-WYBDERIY.js";
@@ -19,6 +19,7 @@ export declare const GENERATED_IMAGE_MAX_BYTES: number;
19
19
  export declare const GENERATED_VIDEO_MAX_BYTES: number;
20
20
  export declare const RetainedOutputKind: z.ZodEnum<{
21
21
  assistant_completion: "assistant_completion";
22
+ browser_screenshot: "browser_screenshot";
22
23
  computer_screenshot: "computer_screenshot";
23
24
  event_media: "event_media";
24
25
  file: "file";
@@ -47,6 +48,7 @@ export declare const RetainedArtifactReferenceSchema: z.ZodObject<{
47
48
  artifactId: z.ZodString;
48
49
  kind: z.ZodEnum<{
49
50
  assistant_completion: "assistant_completion";
51
+ browser_screenshot: "browser_screenshot";
50
52
  computer_screenshot: "computer_screenshot";
51
53
  event_media: "event_media";
52
54
  file: "file";
@@ -104,6 +106,7 @@ export declare const RetainedOutputEvidenceSchema: z.ZodDiscriminatedUnion<[z.Zo
104
106
  artifactId: z.ZodString;
105
107
  kind: z.ZodEnum<{
106
108
  assistant_completion: "assistant_completion";
109
+ browser_screenshot: "browser_screenshot";
107
110
  computer_screenshot: "computer_screenshot";
108
111
  event_media: "event_media";
109
112
  file: "file";
@@ -162,6 +165,7 @@ export declare const RetainedArtifactMetadataSchema: z.ZodUnion<readonly [z.ZodO
162
165
  artifactId: z.ZodString;
163
166
  kind: z.ZodEnum<{
164
167
  assistant_completion: "assistant_completion";
168
+ browser_screenshot: "browser_screenshot";
165
169
  computer_screenshot: "computer_screenshot";
166
170
  event_media: "event_media";
167
171
  file: "file";
@@ -223,7 +227,11 @@ export type RetainedScreenshotArtifactInput = RetainedArtifactFileInput & {
223
227
  width: number;
224
228
  height: number;
225
229
  expiresAt: string;
230
+ kind?: "computer_screenshot" | "browser_screenshot";
226
231
  };
232
+ export type RetainedSessionScreenshotKind = "computer_screenshot" | "browser_screenshot";
233
+ /** The persisted, server-authored storage key distinguishes browser captures from legacy computer captures. */
234
+ export declare function retainedSessionScreenshotKindFromObjectKey(objectKey: string): RetainedSessionScreenshotKind | null;
227
235
  export type RetainedGeneratedImageArtifactInput = RetainedArtifactFileInput & {
228
236
  width: number;
229
237
  height: number;
@@ -22,6 +22,7 @@ export declare const SandboxFileArtifactReceipt: z.ZodObject<{
22
22
  artifactId: z.ZodString;
23
23
  kind: z.ZodEnum<{
24
24
  assistant_completion: "assistant_completion";
25
+ browser_screenshot: "browser_screenshot";
25
26
  computer_screenshot: "computer_screenshot";
26
27
  event_media: "event_media";
27
28
  file: "file";
@@ -350,6 +350,7 @@ export declare const GeneratedVideoReceipt: z.ZodObject<{
350
350
  artifactId: z.ZodString;
351
351
  kind: z.ZodEnum<{
352
352
  assistant_completion: "assistant_completion";
353
+ browser_screenshot: "browser_screenshot";
353
354
  computer_screenshot: "computer_screenshot";
354
355
  event_media: "event_media";
355
356
  file: "file";
@@ -413,6 +414,7 @@ export declare const MediaGenerationResult: z.ZodDiscriminatedUnion<[z.ZodObject
413
414
  artifactId: z.ZodString;
414
415
  kind: z.ZodEnum<{
415
416
  assistant_completion: "assistant_completion";
417
+ browser_screenshot: "browser_screenshot";
416
418
  computer_screenshot: "computer_screenshot";
417
419
  event_media: "event_media";
418
420
  file: "file";
@@ -512,6 +514,7 @@ export declare const VideoGenerationOperationSummary: z.ZodObject<{
512
514
  artifactId: z.ZodString;
513
515
  kind: z.ZodEnum<{
514
516
  assistant_completion: "assistant_completion";
517
+ browser_screenshot: "browser_screenshot";
515
518
  computer_screenshot: "computer_screenshot";
516
519
  event_media: "event_media";
517
520
  file: "file";
@@ -26,7 +26,7 @@ import {
26
26
  VideoGenerationTerminalFailureStatus,
27
27
  VideoGenerationToolResult,
28
28
  WorkspaceVideoGenerationSettings
29
- } from "./chunk-M5ZGRVIQ.js";
29
+ } from "./chunk-5IXYF6XN.js";
30
30
  export {
31
31
  GROK_IMAGINE_VIDEO_1_5_MODEL_ID,
32
32
  GenerateVideoToolInput,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeni/contracts",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "Shared zod schemas and wire-contract types for the OpenGeni API.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {