@opengeni/contracts 0.19.0 → 0.20.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/index.d.ts CHANGED
@@ -494,6 +494,469 @@ declare function readCodexFleetReplayRecordV1(value: unknown): CodexFleetReplayR
494
494
  declare function evaluateCodexFleetDecisionV1(input: CodexFleetDecisionInputV1, policy?: CodexFleetPolicyConfigV1): CodexFleetDecisionV1;
495
495
  declare function effectiveCodexFleetCacheStateV1(cache: CodexFleetCandidateV1["cache"], policy: CodexFleetPolicyConfigV1): CodexFleetCacheState;
496
496
 
497
+ type SecretForRedaction = {
498
+ name: string;
499
+ value: string;
500
+ };
501
+ /**
502
+ * Returns true only for fields whose value is itself credential material.
503
+ * Container fields such as `headers` and URL fields are intentionally not
504
+ * included: their nested/value sanitizers retain useful names, hosts, paths,
505
+ * and non-sensitive query parameters.
506
+ */
507
+ declare function isSensitiveFieldName(name: string): boolean;
508
+ /**
509
+ * Return true only for header names whose values are credential material.
510
+ * Ordinary protocol metadata (`content-type`, `accept`, `user-agent`, and
511
+ * pagination/signature headers outside this allowlist) must remain intact.
512
+ */
513
+ declare function isCredentialHeaderName(name: string): boolean;
514
+ /**
515
+ * Redact only exact known-secret provenance from a structured object key.
516
+ * Generic field/header heuristics intentionally do not run here: a key is
517
+ * metadata unless the caller has proved that its bytes are secret material.
518
+ */
519
+ declare function redactSensitiveKey(key: string, knownSecrets?: readonly SecretForRedaction[]): string;
520
+ /**
521
+ * Redact known secret provenance and common credential-bearing text shapes.
522
+ * This is deliberately a conservative safety boundary, not a promise of
523
+ * general-purpose DLP. It never includes a matched value in a marker or error.
524
+ */
525
+ declare function redactSensitiveText(text: string, knownSecrets?: readonly SecretForRedaction[]): string;
526
+ /** Deeply redact plain structured data while retaining its diagnostic shape. */
527
+ declare function redactSensitiveData<T>(value: T, knownSecrets?: readonly SecretForRedaction[]): T;
528
+ /** Build the worker-friendly single-argument redactor used at turn boundaries. */
529
+ declare function createSecretRedactor(knownSecrets: readonly SecretForRedaction[]): (value: unknown) => unknown;
530
+ /**
531
+ * Redact a serialized JSON checkpoint without requiring it to be valid JSON.
532
+ * Valid JSON retains structure; malformed/opaque text still receives text
533
+ * classification and exact-known-value replacement.
534
+ */
535
+ declare function redactSerializedJson(serialized: string, knownSecrets?: readonly SecretForRedaction[]): string;
536
+ declare function identityRedactor<T>(value: T): T;
537
+
538
+ declare const WORKSPACE_INSTRUCTION_POLICY_CONTENT_MAX_CHARS = 262144;
539
+ declare const WORKSPACE_INSTRUCTION_POLICY_REASON_MAX_CHARS = 4096;
540
+ declare const WORKSPACE_INSTRUCTION_POLICY_ROLE_KEY_MAX_CHARS = 64;
541
+ declare const WORKSPACE_INSTRUCTION_POLICY_SOURCE_ID_MAX_CHARS = 512;
542
+ declare const WorkspaceInstructionPolicyKind: z.ZodEnum<{
543
+ policy: "policy";
544
+ charter: "charter";
545
+ }>;
546
+ type WorkspaceInstructionPolicyKind = z.infer<typeof WorkspaceInstructionPolicyKind>;
547
+ declare const WorkspaceInstructionPolicyScope: z.ZodEnum<{
548
+ role: "role";
549
+ global: "global";
550
+ }>;
551
+ type WorkspaceInstructionPolicyScope = z.infer<typeof WorkspaceInstructionPolicyScope>;
552
+ declare const WorkspaceInstructionPolicyProvenanceSource: z.ZodEnum<{
553
+ human: "human";
554
+ onboarding: "onboarding";
555
+ knowledge_proposal: "knowledge_proposal";
556
+ legacy_import: "legacy_import";
557
+ }>;
558
+ type WorkspaceInstructionPolicyProvenanceSource = z.infer<typeof WorkspaceInstructionPolicyProvenanceSource>;
559
+ declare const WorkspaceInstructionPolicyDraftProvenanceSource: z.ZodEnum<{
560
+ human: "human";
561
+ onboarding: "onboarding";
562
+ knowledge_proposal: "knowledge_proposal";
563
+ }>;
564
+ type WorkspaceInstructionPolicyDraftProvenanceSource = z.infer<typeof WorkspaceInstructionPolicyDraftProvenanceSource>;
565
+ declare const WorkspaceInstructionPolicyActivationType: z.ZodEnum<{
566
+ activate: "activate";
567
+ rollback: "rollback";
568
+ }>;
569
+ type WorkspaceInstructionPolicyActivationType = z.infer<typeof WorkspaceInstructionPolicyActivationType>;
570
+ declare const WorkspaceInstructionPolicyRoleKey: z.ZodString;
571
+ type WorkspaceInstructionPolicyRoleKey = z.infer<typeof WorkspaceInstructionPolicyRoleKey>;
572
+ /**
573
+ * Role-policy keys are identifiers rather than display names. Normalize once
574
+ * at ingress so activation uniqueness and every client use the same key.
575
+ */
576
+ declare function normalizeWorkspaceInstructionPolicyRoleKey(value: string): string;
577
+ declare const WorkspaceInstructionPolicyTarget: z.ZodObject<{
578
+ kind: z.ZodEnum<{
579
+ policy: "policy";
580
+ charter: "charter";
581
+ }>;
582
+ scope: z.ZodEnum<{
583
+ role: "role";
584
+ global: "global";
585
+ }>;
586
+ roleKey: z.ZodNullable<z.ZodString>;
587
+ }, z.core.$strip>;
588
+ type WorkspaceInstructionPolicyTarget = z.infer<typeof WorkspaceInstructionPolicyTarget>;
589
+ declare const WorkspaceInstructionPolicyProvenance: z.ZodObject<{
590
+ source: z.ZodEnum<{
591
+ human: "human";
592
+ onboarding: "onboarding";
593
+ knowledge_proposal: "knowledge_proposal";
594
+ legacy_import: "legacy_import";
595
+ }>;
596
+ sourceId: z.ZodNullable<z.ZodString>;
597
+ }, z.core.$strip>;
598
+ type WorkspaceInstructionPolicyProvenance = z.infer<typeof WorkspaceInstructionPolicyProvenance>;
599
+ declare const WorkspaceInstructionPolicyRevisionIdentity: z.ZodObject<{
600
+ id: z.ZodString;
601
+ revision: z.ZodNumber;
602
+ contentHash: z.ZodString;
603
+ }, z.core.$strip>;
604
+ type WorkspaceInstructionPolicyRevisionIdentity = z.infer<typeof WorkspaceInstructionPolicyRevisionIdentity>;
605
+ declare const WorkspaceInstructionPolicyRevision: z.ZodObject<{
606
+ content: z.ZodString;
607
+ provenance: z.ZodObject<{
608
+ source: z.ZodEnum<{
609
+ human: "human";
610
+ onboarding: "onboarding";
611
+ knowledge_proposal: "knowledge_proposal";
612
+ legacy_import: "legacy_import";
613
+ }>;
614
+ sourceId: z.ZodNullable<z.ZodString>;
615
+ }, z.core.$strip>;
616
+ supersedesRevisionId: z.ZodNullable<z.ZodString>;
617
+ createdBySubjectId: z.ZodString;
618
+ createdAt: z.ZodString;
619
+ kind: z.ZodEnum<{
620
+ policy: "policy";
621
+ charter: "charter";
622
+ }>;
623
+ scope: z.ZodEnum<{
624
+ role: "role";
625
+ global: "global";
626
+ }>;
627
+ roleKey: z.ZodNullable<z.ZodString>;
628
+ accountId: z.ZodString;
629
+ workspaceId: z.ZodString;
630
+ id: z.ZodString;
631
+ revision: z.ZodNumber;
632
+ contentHash: z.ZodString;
633
+ }, z.core.$strip>;
634
+ type WorkspaceInstructionPolicyRevision = z.infer<typeof WorkspaceInstructionPolicyRevision>;
635
+ declare const WorkspaceInstructionPolicyHead: z.ZodObject<{
636
+ revisionId: z.ZodString;
637
+ revision: z.ZodNumber;
638
+ contentHash: z.ZodString;
639
+ activationVersion: z.ZodNumber;
640
+ activatedAt: z.ZodString;
641
+ kind: z.ZodEnum<{
642
+ policy: "policy";
643
+ charter: "charter";
644
+ }>;
645
+ scope: z.ZodEnum<{
646
+ role: "role";
647
+ global: "global";
648
+ }>;
649
+ roleKey: z.ZodNullable<z.ZodString>;
650
+ workspaceId: z.ZodString;
651
+ }, z.core.$strip>;
652
+ type WorkspaceInstructionPolicyHead = z.infer<typeof WorkspaceInstructionPolicyHead>;
653
+ declare const WorkspaceInstructionPolicyActivationEvent: z.ZodObject<{
654
+ type: z.ZodEnum<{
655
+ activate: "activate";
656
+ rollback: "rollback";
657
+ }>;
658
+ activationVersion: z.ZodNumber;
659
+ oldRevision: z.ZodNullable<z.ZodObject<{
660
+ id: z.ZodString;
661
+ revision: z.ZodNumber;
662
+ contentHash: z.ZodString;
663
+ }, z.core.$strip>>;
664
+ newRevision: z.ZodObject<{
665
+ id: z.ZodString;
666
+ revision: z.ZodNumber;
667
+ contentHash: z.ZodString;
668
+ }, z.core.$strip>;
669
+ actorSubjectId: z.ZodString;
670
+ reason: z.ZodString;
671
+ createdAt: z.ZodString;
672
+ kind: z.ZodEnum<{
673
+ policy: "policy";
674
+ charter: "charter";
675
+ }>;
676
+ scope: z.ZodEnum<{
677
+ role: "role";
678
+ global: "global";
679
+ }>;
680
+ roleKey: z.ZodNullable<z.ZodString>;
681
+ id: z.ZodString;
682
+ accountId: z.ZodString;
683
+ workspaceId: z.ZodString;
684
+ }, z.core.$strip>;
685
+ type WorkspaceInstructionPolicyActivationEvent = z.infer<typeof WorkspaceInstructionPolicyActivationEvent>;
686
+ declare const CreateWorkspaceInstructionPolicyDraftRequest: z.ZodObject<{
687
+ kind: z.ZodEnum<{
688
+ policy: "policy";
689
+ charter: "charter";
690
+ }>;
691
+ scope: z.ZodEnum<{
692
+ role: "role";
693
+ global: "global";
694
+ }>;
695
+ roleKey: z.ZodDefault<z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>>;
696
+ content: z.ZodString;
697
+ provenanceSource: z.ZodDefault<z.ZodEnum<{
698
+ human: "human";
699
+ onboarding: "onboarding";
700
+ knowledge_proposal: "knowledge_proposal";
701
+ }>>;
702
+ provenanceSourceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
703
+ supersedesRevisionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
704
+ }, z.core.$strip>;
705
+ type CreateWorkspaceInstructionPolicyDraftRequest = z.infer<typeof CreateWorkspaceInstructionPolicyDraftRequest>;
706
+ declare const ImportLegacyWorkspaceInstructionPolicyDraftRequest: z.ZodObject<{
707
+ supersedesRevisionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
708
+ }, z.core.$strict>;
709
+ type ImportLegacyWorkspaceInstructionPolicyDraftRequest = z.infer<typeof ImportLegacyWorkspaceInstructionPolicyDraftRequest>;
710
+ declare const WorkspaceInstructionPolicyListQuery: z.ZodObject<{
711
+ kind: z.ZodOptional<z.ZodEnum<{
712
+ policy: "policy";
713
+ charter: "charter";
714
+ }>>;
715
+ scope: z.ZodOptional<z.ZodEnum<{
716
+ role: "role";
717
+ global: "global";
718
+ }>>;
719
+ roleKey: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>>;
720
+ afterRevision: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
721
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
722
+ }, z.core.$strip>;
723
+ type WorkspaceInstructionPolicyListQuery = z.infer<typeof WorkspaceInstructionPolicyListQuery>;
724
+ declare const WorkspaceInstructionPolicyListResponse: z.ZodObject<{
725
+ revisions: z.ZodArray<z.ZodObject<{
726
+ content: z.ZodString;
727
+ provenance: z.ZodObject<{
728
+ source: z.ZodEnum<{
729
+ human: "human";
730
+ onboarding: "onboarding";
731
+ knowledge_proposal: "knowledge_proposal";
732
+ legacy_import: "legacy_import";
733
+ }>;
734
+ sourceId: z.ZodNullable<z.ZodString>;
735
+ }, z.core.$strip>;
736
+ supersedesRevisionId: z.ZodNullable<z.ZodString>;
737
+ createdBySubjectId: z.ZodString;
738
+ createdAt: z.ZodString;
739
+ kind: z.ZodEnum<{
740
+ policy: "policy";
741
+ charter: "charter";
742
+ }>;
743
+ scope: z.ZodEnum<{
744
+ role: "role";
745
+ global: "global";
746
+ }>;
747
+ roleKey: z.ZodNullable<z.ZodString>;
748
+ accountId: z.ZodString;
749
+ workspaceId: z.ZodString;
750
+ id: z.ZodString;
751
+ revision: z.ZodNumber;
752
+ contentHash: z.ZodString;
753
+ }, z.core.$strip>>;
754
+ activeHeads: z.ZodArray<z.ZodObject<{
755
+ revisionId: z.ZodString;
756
+ revision: z.ZodNumber;
757
+ contentHash: z.ZodString;
758
+ activationVersion: z.ZodNumber;
759
+ activatedAt: z.ZodString;
760
+ kind: z.ZodEnum<{
761
+ policy: "policy";
762
+ charter: "charter";
763
+ }>;
764
+ scope: z.ZodEnum<{
765
+ role: "role";
766
+ global: "global";
767
+ }>;
768
+ roleKey: z.ZodNullable<z.ZodString>;
769
+ workspaceId: z.ZodString;
770
+ }, z.core.$strip>>;
771
+ activationEvents: z.ZodArray<z.ZodObject<{
772
+ type: z.ZodEnum<{
773
+ activate: "activate";
774
+ rollback: "rollback";
775
+ }>;
776
+ activationVersion: z.ZodNumber;
777
+ oldRevision: z.ZodNullable<z.ZodObject<{
778
+ id: z.ZodString;
779
+ revision: z.ZodNumber;
780
+ contentHash: z.ZodString;
781
+ }, z.core.$strip>>;
782
+ newRevision: z.ZodObject<{
783
+ id: z.ZodString;
784
+ revision: z.ZodNumber;
785
+ contentHash: z.ZodString;
786
+ }, z.core.$strip>;
787
+ actorSubjectId: z.ZodString;
788
+ reason: z.ZodString;
789
+ createdAt: z.ZodString;
790
+ kind: z.ZodEnum<{
791
+ policy: "policy";
792
+ charter: "charter";
793
+ }>;
794
+ scope: z.ZodEnum<{
795
+ role: "role";
796
+ global: "global";
797
+ }>;
798
+ roleKey: z.ZodNullable<z.ZodString>;
799
+ id: z.ZodString;
800
+ accountId: z.ZodString;
801
+ workspaceId: z.ZodString;
802
+ }, z.core.$strip>>;
803
+ nextAfterRevision: z.ZodNullable<z.ZodNumber>;
804
+ }, z.core.$strip>;
805
+ type WorkspaceInstructionPolicyListResponse = z.infer<typeof WorkspaceInstructionPolicyListResponse>;
806
+ declare const WorkspaceInstructionPolicyDiffRequest: z.ZodObject<{
807
+ fromRevisionId: z.ZodString;
808
+ toRevisionId: z.ZodString;
809
+ }, z.core.$strip>;
810
+ type WorkspaceInstructionPolicyDiffRequest = z.infer<typeof WorkspaceInstructionPolicyDiffRequest>;
811
+ declare const WorkspaceInstructionPolicyDiffResponse: z.ZodObject<{
812
+ from: z.ZodObject<{
813
+ content: z.ZodString;
814
+ provenance: z.ZodObject<{
815
+ source: z.ZodEnum<{
816
+ human: "human";
817
+ onboarding: "onboarding";
818
+ knowledge_proposal: "knowledge_proposal";
819
+ legacy_import: "legacy_import";
820
+ }>;
821
+ sourceId: z.ZodNullable<z.ZodString>;
822
+ }, z.core.$strip>;
823
+ supersedesRevisionId: z.ZodNullable<z.ZodString>;
824
+ createdBySubjectId: z.ZodString;
825
+ createdAt: z.ZodString;
826
+ kind: z.ZodEnum<{
827
+ policy: "policy";
828
+ charter: "charter";
829
+ }>;
830
+ scope: z.ZodEnum<{
831
+ role: "role";
832
+ global: "global";
833
+ }>;
834
+ roleKey: z.ZodNullable<z.ZodString>;
835
+ accountId: z.ZodString;
836
+ workspaceId: z.ZodString;
837
+ id: z.ZodString;
838
+ revision: z.ZodNumber;
839
+ contentHash: z.ZodString;
840
+ }, z.core.$strip>;
841
+ to: z.ZodObject<{
842
+ content: z.ZodString;
843
+ provenance: z.ZodObject<{
844
+ source: z.ZodEnum<{
845
+ human: "human";
846
+ onboarding: "onboarding";
847
+ knowledge_proposal: "knowledge_proposal";
848
+ legacy_import: "legacy_import";
849
+ }>;
850
+ sourceId: z.ZodNullable<z.ZodString>;
851
+ }, z.core.$strip>;
852
+ supersedesRevisionId: z.ZodNullable<z.ZodString>;
853
+ createdBySubjectId: z.ZodString;
854
+ createdAt: z.ZodString;
855
+ kind: z.ZodEnum<{
856
+ policy: "policy";
857
+ charter: "charter";
858
+ }>;
859
+ scope: z.ZodEnum<{
860
+ role: "role";
861
+ global: "global";
862
+ }>;
863
+ roleKey: z.ZodNullable<z.ZodString>;
864
+ accountId: z.ZodString;
865
+ workspaceId: z.ZodString;
866
+ id: z.ZodString;
867
+ revision: z.ZodNumber;
868
+ contentHash: z.ZodString;
869
+ }, z.core.$strip>;
870
+ format: z.ZodLiteral<"unified">;
871
+ diff: z.ZodString;
872
+ }, z.core.$strip>;
873
+ type WorkspaceInstructionPolicyDiffResponse = z.infer<typeof WorkspaceInstructionPolicyDiffResponse>;
874
+ declare const ActivateWorkspaceInstructionPolicyRequest: z.ZodObject<{
875
+ expectedCurrentRevisionId: z.ZodNullable<z.ZodString>;
876
+ reason: z.ZodString;
877
+ }, z.core.$strip>;
878
+ type ActivateWorkspaceInstructionPolicyRequest = z.infer<typeof ActivateWorkspaceInstructionPolicyRequest>;
879
+ declare const RollbackWorkspaceInstructionPolicyRequest: z.ZodObject<{
880
+ targetRevisionId: z.ZodString;
881
+ expectedCurrentRevisionId: z.ZodString;
882
+ reason: z.ZodString;
883
+ }, z.core.$strip>;
884
+ type RollbackWorkspaceInstructionPolicyRequest = z.infer<typeof RollbackWorkspaceInstructionPolicyRequest>;
885
+ declare const WorkspaceInstructionPolicyActivationResponse: z.ZodObject<{
886
+ head: z.ZodObject<{
887
+ revisionId: z.ZodString;
888
+ revision: z.ZodNumber;
889
+ contentHash: z.ZodString;
890
+ activationVersion: z.ZodNumber;
891
+ activatedAt: z.ZodString;
892
+ kind: z.ZodEnum<{
893
+ policy: "policy";
894
+ charter: "charter";
895
+ }>;
896
+ scope: z.ZodEnum<{
897
+ role: "role";
898
+ global: "global";
899
+ }>;
900
+ roleKey: z.ZodNullable<z.ZodString>;
901
+ workspaceId: z.ZodString;
902
+ }, z.core.$strip>;
903
+ event: z.ZodObject<{
904
+ type: z.ZodEnum<{
905
+ activate: "activate";
906
+ rollback: "rollback";
907
+ }>;
908
+ activationVersion: z.ZodNumber;
909
+ oldRevision: z.ZodNullable<z.ZodObject<{
910
+ id: z.ZodString;
911
+ revision: z.ZodNumber;
912
+ contentHash: z.ZodString;
913
+ }, z.core.$strip>>;
914
+ newRevision: z.ZodObject<{
915
+ id: z.ZodString;
916
+ revision: z.ZodNumber;
917
+ contentHash: z.ZodString;
918
+ }, z.core.$strip>;
919
+ actorSubjectId: z.ZodString;
920
+ reason: z.ZodString;
921
+ createdAt: z.ZodString;
922
+ kind: z.ZodEnum<{
923
+ policy: "policy";
924
+ charter: "charter";
925
+ }>;
926
+ scope: z.ZodEnum<{
927
+ role: "role";
928
+ global: "global";
929
+ }>;
930
+ roleKey: z.ZodNullable<z.ZodString>;
931
+ id: z.ZodString;
932
+ accountId: z.ZodString;
933
+ workspaceId: z.ZodString;
934
+ }, z.core.$strip>;
935
+ }, z.core.$strip>;
936
+ type WorkspaceInstructionPolicyActivationResponse = z.infer<typeof WorkspaceInstructionPolicyActivationResponse>;
937
+ declare const WorkspaceInstructionPolicyConflictResponse: z.ZodObject<{
938
+ code: z.ZodLiteral<"WORKSPACE_INSTRUCTION_POLICY_CONFLICT">;
939
+ message: z.ZodString;
940
+ currentHead: z.ZodNullable<z.ZodObject<{
941
+ revisionId: z.ZodString;
942
+ revision: z.ZodNumber;
943
+ contentHash: z.ZodString;
944
+ activationVersion: z.ZodNumber;
945
+ activatedAt: z.ZodString;
946
+ kind: z.ZodEnum<{
947
+ policy: "policy";
948
+ charter: "charter";
949
+ }>;
950
+ scope: z.ZodEnum<{
951
+ role: "role";
952
+ global: "global";
953
+ }>;
954
+ roleKey: z.ZodNullable<z.ZodString>;
955
+ workspaceId: z.ZodString;
956
+ }, z.core.$strip>>;
957
+ }, z.core.$strip>;
958
+ type WorkspaceInstructionPolicyConflictResponse = z.infer<typeof WorkspaceInstructionPolicyConflictResponse>;
959
+
497
960
  declare const SessionStatus: z.ZodEnum<{
498
961
  queued: "queued";
499
962
  running: "running";
@@ -613,6 +1076,7 @@ declare const ErrorCode: z.ZodEnum<{
613
1076
  type ErrorCode = z.infer<typeof ErrorCode>;
614
1077
  declare const ErrorEnvelope: z.ZodObject<{
615
1078
  error: z.ZodObject<{
1079
+ status: z.ZodNumber;
616
1080
  code: z.ZodEnum<{
617
1081
  unauthenticated: "unauthenticated";
618
1082
  forbidden: "forbidden";
@@ -628,6 +1092,7 @@ declare const ErrorEnvelope: z.ZodObject<{
628
1092
  internal_error: "internal_error";
629
1093
  }>;
630
1094
  message: z.ZodString;
1095
+ retryable: z.ZodBoolean;
631
1096
  requestId: z.ZodOptional<z.ZodString>;
632
1097
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
633
1098
  }, z.core.$strip>;
@@ -2269,10 +2734,19 @@ type ConnectionCredentialsPort = {
2269
2734
  };
2270
2735
  type GitHubInstallationSummary = {
2271
2736
  installationId: number;
2737
+ accountId: number;
2272
2738
  accountLogin: string | null;
2273
2739
  accountType: string | null;
2274
2740
  suspended: boolean;
2275
2741
  };
2742
+ type GitHubInstallationAuthorityKind = "personal_owner" | "organization_owner";
2743
+ interface GitHubInstallationBindingProof {
2744
+ actorId: number;
2745
+ actorLogin: string;
2746
+ authorityKind: GitHubInstallationAuthorityKind;
2747
+ installation: GitHubInstallationSummary;
2748
+ repositories: GitHubRepository[];
2749
+ }
2276
2750
  type GitHubRepositoryPermissions = {
2277
2751
  admin: boolean;
2278
2752
  maintain: boolean;
@@ -2287,6 +2761,18 @@ type GitHubUserInstallationAccess = GitHubInstallationSummary & {
2287
2761
  repositories: GitHubUserRepositoryAccess[];
2288
2762
  };
2289
2763
  type GitHubAppApiPort = {
2764
+ /**
2765
+ * Exchange one fresh GitHub user-authorization code and prove current
2766
+ * installation authority. Implementations must accept only exact personal
2767
+ * ownership or active organization ownership; installation visibility,
2768
+ * repository permission bits, and App Manager metadata are not authority.
2769
+ * Organization ownership must be revalidated after repository discovery,
2770
+ * immediately before returning the proof used by the durable bind.
2771
+ */
2772
+ authorizeInstallationBinding?: (input: {
2773
+ code: string;
2774
+ installationId: number;
2775
+ }) => Promise<GitHubInstallationBindingProof>;
2290
2776
  authorizeUser?: (input: {
2291
2777
  code: string;
2292
2778
  }) => Promise<GitHubUserInstallationAccess[]>;
@@ -2522,6 +3008,28 @@ declare const DocumentSearchMode: z.ZodEnum<{
2522
3008
  keyword: "keyword";
2523
3009
  }>;
2524
3010
  type DocumentSearchMode = z.infer<typeof DocumentSearchMode>;
3011
+ declare const DocumentVisibility: z.ZodEnum<{
3012
+ workspace: "workspace";
3013
+ private: "private";
3014
+ }>;
3015
+ type DocumentVisibility = z.infer<typeof DocumentVisibility>;
3016
+ declare const DocumentCurationStatus: z.ZodEnum<{
3017
+ failed: "failed";
3018
+ none: "none";
3019
+ pending: "pending";
3020
+ suggested: "suggested";
3021
+ auto_filed: "auto_filed";
3022
+ }>;
3023
+ type DocumentCurationStatus = z.infer<typeof DocumentCurationStatus>;
3024
+ declare const DocumentCuration: z.ZodObject<{
3025
+ suggestedBaseId: z.ZodNullable<z.ZodString>;
3026
+ suggestedBaseName: z.ZodNullable<z.ZodString>;
3027
+ confidence: z.ZodNumber;
3028
+ reason: z.ZodNullable<z.ZodString>;
3029
+ originalTitle: z.ZodNullable<z.ZodString>;
3030
+ model: z.ZodNullable<z.ZodString>;
3031
+ }, z.core.$strip>;
3032
+ type DocumentCuration = z.infer<typeof DocumentCuration>;
2525
3033
  declare const DocumentBase: z.ZodObject<{
2526
3034
  id: z.ZodString;
2527
3035
  workspaceId: z.ZodString;
@@ -2564,6 +3072,29 @@ declare const Document: z.ZodObject<{
2564
3072
  sourceUpdatedAt: z.ZodNullable<z.ZodString>;
2565
3073
  sourceVersion: z.ZodNullable<z.ZodString>;
2566
3074
  aclTags: z.ZodArray<z.ZodString>;
3075
+ visibility: z.ZodEnum<{
3076
+ workspace: "workspace";
3077
+ private: "private";
3078
+ }>;
3079
+ createdBy: z.ZodNullable<z.ZodString>;
3080
+ agentAccess: z.ZodBoolean;
3081
+ summary: z.ZodNullable<z.ZodString>;
3082
+ topics: z.ZodArray<z.ZodString>;
3083
+ curationStatus: z.ZodEnum<{
3084
+ failed: "failed";
3085
+ none: "none";
3086
+ pending: "pending";
3087
+ suggested: "suggested";
3088
+ auto_filed: "auto_filed";
3089
+ }>;
3090
+ curation: z.ZodNullable<z.ZodObject<{
3091
+ suggestedBaseId: z.ZodNullable<z.ZodString>;
3092
+ suggestedBaseName: z.ZodNullable<z.ZodString>;
3093
+ confidence: z.ZodNumber;
3094
+ reason: z.ZodNullable<z.ZodString>;
3095
+ originalTitle: z.ZodNullable<z.ZodString>;
3096
+ model: z.ZodNullable<z.ZodString>;
3097
+ }, z.core.$strip>>;
2567
3098
  createdAt: z.ZodString;
2568
3099
  updatedAt: z.ZodString;
2569
3100
  }, z.core.$strip>;
@@ -2632,8 +3163,29 @@ declare const AddDocumentRequest: z.ZodObject<{
2632
3163
  sourceUpdatedAt: z.ZodOptional<z.ZodString>;
2633
3164
  sourceVersion: z.ZodOptional<z.ZodString>;
2634
3165
  aclTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
3166
+ visibility: z.ZodOptional<z.ZodEnum<{
3167
+ workspace: "workspace";
3168
+ private: "private";
3169
+ }>>;
3170
+ agentAccess: z.ZodOptional<z.ZodBoolean>;
2635
3171
  }, z.core.$strip>;
2636
3172
  type AddDocumentRequest = z.infer<typeof AddDocumentRequest>;
3173
+ declare const CreateKnowledgeDropRequest: z.ZodObject<{
3174
+ text: z.ZodOptional<z.ZodString>;
3175
+ fileId: z.ZodOptional<z.ZodString>;
3176
+ filename: z.ZodOptional<z.ZodString>;
3177
+ title: z.ZodOptional<z.ZodString>;
3178
+ visibility: z.ZodOptional<z.ZodEnum<{
3179
+ workspace: "workspace";
3180
+ private: "private";
3181
+ }>>;
3182
+ agentAccess: z.ZodOptional<z.ZodBoolean>;
3183
+ }, z.core.$strip>;
3184
+ type CreateKnowledgeDropRequest = z.infer<typeof CreateKnowledgeDropRequest>;
3185
+ declare const MoveDocumentRequest: z.ZodObject<{
3186
+ targetBaseId: z.ZodOptional<z.ZodString>;
3187
+ }, z.core.$strip>;
3188
+ type MoveDocumentRequest = z.infer<typeof MoveDocumentRequest>;
2637
3189
  declare const DocumentSearchRequest: z.ZodObject<{
2638
3190
  query: z.ZodString;
2639
3191
  baseIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -3328,6 +3880,25 @@ declare const UpdateSessionRequest: z.ZodObject<{
3328
3880
  title: z.ZodString;
3329
3881
  }, z.core.$strip>;
3330
3882
  type UpdateSessionRequest = z.infer<typeof UpdateSessionRequest>;
3883
+ /**
3884
+ * Replace an existing session's durable tool policy, or explicitly opt back in
3885
+ * to the current workspace defaults. The mode-less explicit shape is retained
3886
+ * for compatibility with clients released before workspace-default adoption
3887
+ * was supported.
3888
+ */
3889
+ declare const UpdateSessionToolPolicyRequest: z.ZodUnion<readonly [z.ZodObject<{
3890
+ mode: z.ZodLiteral<"workspace_default">;
3891
+ expectedVersion: z.ZodNumber;
3892
+ }, z.core.$strict>, z.ZodObject<{
3893
+ mode: z.ZodOptional<z.ZodLiteral<"explicit">>;
3894
+ tools: z.ZodArray<z.ZodObject<{
3895
+ kind: z.ZodLiteral<"mcp">;
3896
+ id: z.ZodString;
3897
+ optional: z.ZodOptional<z.ZodBoolean>;
3898
+ }, z.core.$strip>>;
3899
+ expectedVersion: z.ZodNumber;
3900
+ }, z.core.$strict>]>;
3901
+ type UpdateSessionToolPolicyRequest = z.infer<typeof UpdateSessionToolPolicyRequest>;
3331
3902
  /**
3332
3903
  * A member's personal pin preference for a session. `expectedVersion` is
3333
3904
  * optional: ordinary pin/unpin actions are idempotent last-write-wins, while a
@@ -3436,6 +4007,7 @@ declare const SessionAuthorizationOperation: z.ZodEnum<{
3436
4007
  "session.human_input.write": "session.human_input.write";
3437
4008
  "session.title.write": "session.title.write";
3438
4009
  "session.mcp.approval_policy.write": "session.mcp.approval_policy.write";
4010
+ "session.tool_policy.write": "session.tool_policy.write";
3439
4011
  "session.goal.read": "session.goal.read";
3440
4012
  "session.goal.write": "session.goal.write";
3441
4013
  "session.child.create": "session.child.create";
@@ -4032,6 +4604,11 @@ declare const SaveComposerDraftRequest: z.ZodObject<{
4032
4604
  high: "high";
4033
4605
  xhigh: "xhigh";
4034
4606
  }>;
4607
+ tools: z.ZodArray<z.ZodObject<{
4608
+ kind: z.ZodLiteral<"mcp">;
4609
+ id: z.ZodString;
4610
+ optional: z.ZodOptional<z.ZodBoolean>;
4611
+ }, z.core.$strip>>;
4035
4612
  resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4036
4613
  kind: z.ZodLiteral<"repository">;
4037
4614
  uri: z.ZodString;
@@ -4059,11 +4636,6 @@ declare const SaveComposerDraftRequest: z.ZodObject<{
4059
4636
  fileId: z.ZodString;
4060
4637
  mountPath: z.ZodOptional<z.ZodString>;
4061
4638
  }, z.core.$strip>], "kind">>;
4062
- tools: z.ZodArray<z.ZodObject<{
4063
- kind: z.ZodLiteral<"mcp">;
4064
- id: z.ZodString;
4065
- optional: z.ZodOptional<z.ZodBoolean>;
4066
- }, z.core.$strip>>;
4067
4639
  toolsProvided: z.ZodDefault<z.ZodBoolean>;
4068
4640
  expectedRevision: z.ZodNumber;
4069
4641
  }, z.core.$strip>;
@@ -4174,6 +4746,7 @@ declare const NewSessionDraft: z.ZodObject<{
4174
4746
  id: z.ZodString;
4175
4747
  optional: z.ZodOptional<z.ZodBoolean>;
4176
4748
  }, z.core.$strip>>;
4749
+ toolsProvided: z.ZodDefault<z.ZodBoolean>;
4177
4750
  model: z.ZodString;
4178
4751
  reasoningEffort: z.ZodEnum<{
4179
4752
  none: "none";
@@ -4261,6 +4834,11 @@ declare const SaveNewSessionDraftRequest: z.ZodObject<{
4261
4834
  high: "high";
4262
4835
  xhigh: "xhigh";
4263
4836
  }>;
4837
+ tools: z.ZodArray<z.ZodObject<{
4838
+ kind: z.ZodLiteral<"mcp">;
4839
+ id: z.ZodString;
4840
+ optional: z.ZodOptional<z.ZodBoolean>;
4841
+ }, z.core.$strip>>;
4264
4842
  resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4265
4843
  kind: z.ZodLiteral<"repository">;
4266
4844
  uri: z.ZodString;
@@ -4288,11 +4866,7 @@ declare const SaveNewSessionDraftRequest: z.ZodObject<{
4288
4866
  fileId: z.ZodString;
4289
4867
  mountPath: z.ZodOptional<z.ZodString>;
4290
4868
  }, z.core.$strip>], "kind">>;
4291
- tools: z.ZodArray<z.ZodObject<{
4292
- kind: z.ZodLiteral<"mcp">;
4293
- id: z.ZodString;
4294
- optional: z.ZodOptional<z.ZodBoolean>;
4295
- }, z.core.$strip>>;
4869
+ toolsProvided: z.ZodDefault<z.ZodBoolean>;
4296
4870
  options: z.ZodObject<{
4297
4871
  sandboxBackend: z.ZodOptional<z.ZodEnum<{
4298
4872
  docker: "docker";
@@ -5041,6 +5615,7 @@ declare const ScheduledTaskAgentConfig: z.ZodObject<{
5041
5615
  optional: z.ZodOptional<z.ZodBoolean>;
5042
5616
  }, z.core.$strip>>>;
5043
5617
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5618
+ slackBotConnectionId: z.ZodOptional<z.ZodString>;
5044
5619
  model: z.ZodOptional<z.ZodString>;
5045
5620
  reasoningEffort: z.ZodOptional<z.ZodEnum<{
5046
5621
  none: "none";
@@ -5149,6 +5724,7 @@ declare const ScheduledTask: z.ZodObject<{
5149
5724
  optional: z.ZodOptional<z.ZodBoolean>;
5150
5725
  }, z.core.$strip>>>;
5151
5726
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5727
+ slackBotConnectionId: z.ZodOptional<z.ZodString>;
5152
5728
  model: z.ZodOptional<z.ZodString>;
5153
5729
  reasoningEffort: z.ZodOptional<z.ZodEnum<{
5154
5730
  none: "none";
@@ -5280,6 +5856,7 @@ declare const CreateScheduledTaskRequest: z.ZodPreprocess<z.ZodObject<{
5280
5856
  optional: z.ZodOptional<z.ZodBoolean>;
5281
5857
  }, z.core.$strip>>>;
5282
5858
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5859
+ slackBotConnectionId: z.ZodOptional<z.ZodString>;
5283
5860
  model: z.ZodOptional<z.ZodString>;
5284
5861
  reasoningEffort: z.ZodOptional<z.ZodEnum<{
5285
5862
  none: "none";
@@ -5389,6 +5966,7 @@ declare const UpdateScheduledTaskRequest: z.ZodPreprocess<z.ZodObject<{
5389
5966
  optional: z.ZodOptional<z.ZodBoolean>;
5390
5967
  }, z.core.$strip>>>;
5391
5968
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5969
+ slackBotConnectionId: z.ZodOptional<z.ZodString>;
5392
5970
  model: z.ZodOptional<z.ZodString>;
5393
5971
  reasoningEffort: z.ZodOptional<z.ZodEnum<{
5394
5972
  none: "none";
@@ -5941,6 +6519,22 @@ declare const ConnectionStatus: z.ZodEnum<{
5941
6519
  needs_reauth: "needs_reauth";
5942
6520
  }>;
5943
6521
  type ConnectionStatus = z.infer<typeof ConnectionStatus>;
6522
+ declare const OPENGENI_SLACK_BOT_CREDENTIAL_ROLE: "opengeni_slack_bot";
6523
+ declare const OPENGENI_SLACK_BOT_CREDENTIAL_LABEL: "OpenGeni Slack bot";
6524
+ declare const OPENGENI_SLACK_BOT_SESSION_METADATA_KEY: "opengeniSlackBotConnectionId";
6525
+ declare const OPENGENI_SLACK_BOT_REQUIRED_SCOPES: readonly ["chat:write", "im:write", "channels:read", "channels:history", "groups:read", "groups:history", "users:read"];
6526
+ declare const OPENGENI_SLACK_BOT_FORBIDDEN_SCOPES: readonly ["channels:join", "chat:write.public"];
6527
+ declare const OpenGeniSlackBotConnectionMetadata: z.ZodObject<{
6528
+ credentialRole: z.ZodLiteral<"opengeni_slack_bot">;
6529
+ credentialLabel: z.ZodLiteral<"OpenGeni Slack bot">;
6530
+ slackTeamId: z.ZodString;
6531
+ slackTeamName: z.ZodString;
6532
+ botUserId: z.ZodString;
6533
+ botId: z.ZodString;
6534
+ botDisplayName: z.ZodLiteral<"OpenGeni">;
6535
+ verifiedAt: z.ZodString;
6536
+ }, z.core.$loose>;
6537
+ type OpenGeniSlackBotConnectionMetadata = z.infer<typeof OpenGeniSlackBotConnectionMetadata>;
5944
6538
  declare const ConnectionMetadata: z.ZodObject<{
5945
6539
  id: z.ZodString;
5946
6540
  accountId: z.ZodString;
@@ -5965,6 +6559,8 @@ declare const ConnectionMetadata: z.ZodObject<{
5965
6559
  lastUsedAt: z.ZodNullable<z.ZodString>;
5966
6560
  lastError: z.ZodNullable<z.ZodString>;
5967
6561
  version: z.ZodNumber;
6562
+ verifiedInstallAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6563
+ verifiedInstallVersion: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5968
6564
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5969
6565
  createdBySubjectId: z.ZodNullable<z.ZodString>;
5970
6566
  updatedBySubjectId: z.ZodNullable<z.ZodString>;
@@ -5989,6 +6585,15 @@ declare const CreateConnectionRequest: z.ZodObject<{
5989
6585
  metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5990
6586
  }, z.core.$strip>;
5991
6587
  type CreateConnectionRequest = z.infer<typeof CreateConnectionRequest>;
6588
+ /**
6589
+ * Write-only Slack bot installation input. `token` is accepted only by the
6590
+ * dedicated validated endpoint and is never represented in a response schema.
6591
+ */
6592
+ declare const ConnectOpenGeniSlackBotRequest: z.ZodObject<{
6593
+ token: z.ZodString;
6594
+ connectionId: z.ZodOptional<z.ZodString>;
6595
+ }, z.core.$strip>;
6596
+ type ConnectOpenGeniSlackBotRequest = z.infer<typeof ConnectOpenGeniSlackBotRequest>;
5992
6597
  declare const UpdateConnectionRequest: z.ZodObject<{
5993
6598
  providerDomain: z.ZodOptional<z.ZodString>;
5994
6599
  subjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -6035,6 +6640,8 @@ declare const ConnectionResponse: z.ZodObject<{
6035
6640
  lastUsedAt: z.ZodNullable<z.ZodString>;
6036
6641
  lastError: z.ZodNullable<z.ZodString>;
6037
6642
  version: z.ZodNumber;
6643
+ verifiedInstallAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6644
+ verifiedInstallVersion: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6038
6645
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6039
6646
  createdBySubjectId: z.ZodNullable<z.ZodString>;
6040
6647
  updatedBySubjectId: z.ZodNullable<z.ZodString>;
@@ -6068,6 +6675,8 @@ declare const ListConnectionsResponse: z.ZodObject<{
6068
6675
  lastUsedAt: z.ZodNullable<z.ZodString>;
6069
6676
  lastError: z.ZodNullable<z.ZodString>;
6070
6677
  version: z.ZodNumber;
6678
+ verifiedInstallAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6679
+ verifiedInstallVersion: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6071
6680
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6072
6681
  createdBySubjectId: z.ZodNullable<z.ZodString>;
6073
6682
  updatedBySubjectId: z.ZodNullable<z.ZodString>;
@@ -6613,6 +7222,7 @@ declare const Session: z.ZodObject<{
6613
7222
  }>;
6614
7223
  inheritedFromSessionId: z.ZodNullable<z.ZodString>;
6615
7224
  }, z.core.$strip>>;
7225
+ toolPolicyVersion: z.ZodOptional<z.ZodNumber>;
6616
7226
  effectiveToolPolicy: z.ZodOptional<z.ZodObject<{
6617
7227
  mode: z.ZodEnum<{
6618
7228
  explicit: "explicit";
@@ -6926,6 +7536,7 @@ declare const CreateSessionResponse: z.ZodObject<{
6926
7536
  }>;
6927
7537
  inheritedFromSessionId: z.ZodNullable<z.ZodString>;
6928
7538
  }, z.core.$strip>>;
7539
+ toolPolicyVersion: z.ZodOptional<z.ZodNumber>;
6929
7540
  effectiveToolPolicy: z.ZodOptional<z.ZodObject<{
6930
7541
  mode: z.ZodEnum<{
6931
7542
  explicit: "explicit";
@@ -7245,6 +7856,7 @@ declare const SessionListResponse: z.ZodObject<{
7245
7856
  }>;
7246
7857
  inheritedFromSessionId: z.ZodNullable<z.ZodString>;
7247
7858
  }, z.core.$strip>>;
7859
+ toolPolicyVersion: z.ZodOptional<z.ZodNumber>;
7248
7860
  effectiveToolPolicy: z.ZodOptional<z.ZodObject<{
7249
7861
  mode: z.ZodEnum<{
7250
7862
  explicit: "explicit";
@@ -7553,6 +8165,7 @@ declare const SessionListResponse: z.ZodObject<{
7553
8165
  }>;
7554
8166
  inheritedFromSessionId: z.ZodNullable<z.ZodString>;
7555
8167
  }, z.core.$strip>>;
8168
+ toolPolicyVersion: z.ZodOptional<z.ZodNumber>;
7556
8169
  effectiveToolPolicy: z.ZodOptional<z.ZodObject<{
7557
8170
  mode: z.ZodEnum<{
7558
8171
  explicit: "explicit";
@@ -7869,6 +8482,7 @@ declare const SessionLineageResponse: z.ZodObject<{
7869
8482
  }>;
7870
8483
  inheritedFromSessionId: z.ZodNullable<z.ZodString>;
7871
8484
  }, z.core.$strip>>;
8485
+ toolPolicyVersion: z.ZodOptional<z.ZodNumber>;
7872
8486
  effectiveToolPolicy: z.ZodOptional<z.ZodObject<{
7873
8487
  mode: z.ZodEnum<{
7874
8488
  explicit: "explicit";
@@ -8193,6 +8807,7 @@ declare const SessionEventType: z.ZodEnum<{
8193
8807
  "terminal.pty.exited": "terminal.pty.exited";
8194
8808
  "session.title_set": "session.title_set";
8195
8809
  "session.mcp.approval_policy.updated": "session.mcp.approval_policy.updated";
8810
+ "session.tool_policy.updated": "session.tool_policy.updated";
8196
8811
  "codex.account.switched": "codex.account.switched";
8197
8812
  "codex.credential.selected": "codex.credential.selected";
8198
8813
  "codex.fleet.decision": "codex.fleet.decision";
@@ -8268,7 +8883,7 @@ declare const SessionEventReadDirection: z.ZodEnum<{
8268
8883
  type SessionEventReadDirection = z.infer<typeof SessionEventReadDirection>;
8269
8884
  declare const SESSION_EVENT_RAW_DELTA_TYPES: readonly ["agent.message.delta", "agent.reasoning.delta", "sandbox.command.output.delta", "terminal.pty.output.delta"];
8270
8885
  declare const SESSION_EVENT_SEMANTIC_CLASS_TYPES: {
8271
- readonly control: readonly ["session.status.changed", "session.requiresAction", "session.humanInput.requested", "user.pause", "user.approvalDecision", "user.humanInputResponse", "goal.set", "goal.updated", "goal.completed", "goal.paused", "goal.resumed", "goal.cleared", "goal.continuation", "system.update.pending", "system.update.delivered", "session.control.paused", "session.control.resumed", "session.control.steer_requested", "workspace.inference.paused", "workspace.inference.resumed", "session.queue.changed", "session.queue.prompt.cancelled", "session.mcp.approval_policy.updated"];
8886
+ readonly control: readonly ["session.status.changed", "session.requiresAction", "session.humanInput.requested", "user.pause", "user.approvalDecision", "user.humanInputResponse", "goal.set", "goal.updated", "goal.completed", "goal.paused", "goal.resumed", "goal.cleared", "goal.continuation", "system.update.pending", "system.update.delivered", "session.control.paused", "session.control.resumed", "session.control.steer_requested", "workspace.inference.paused", "workspace.inference.resumed", "session.queue.changed", "session.queue.prompt.cancelled", "session.mcp.approval_policy.updated", "session.tool_policy.updated"];
8272
8887
  readonly terminal: readonly ["turn.completed", "agent.message.completed", "turn.failed", "turn.cancelled", "turn.superseded", "goal.completed", "goal.paused", "rig.setup.completed", "rig.setup.skipped", "rig.setup.failed", "sandbox.operation.completed", "sandbox.operation.failed", "recording.available", "recording.failed", "terminal.pty.exited"];
8273
8888
  readonly failure: readonly ["session.event.envelope_omitted", "turn.failed", "tool.auth_needed", "credential.auth_needed", "rig.setup.failed", "sandbox.operation.failed", "recording.failed", "sandbox.box.lost", "workspace.revision.degraded", "machine.op.failed", "machine.link.lost"];
8274
8889
  readonly checkpoint: readonly ["session.context.compaction.requested", "session.context.compacted", "session.context.compaction.skipped", "session.context.cleared", "turn.recovery.requested", "session.queue.history", "sandbox.box.snapshot", "workspace.revision.captured"];
@@ -9567,6 +10182,7 @@ declare const SessionEvent: z.ZodObject<{
9567
10182
  "terminal.pty.exited": "terminal.pty.exited";
9568
10183
  "session.title_set": "session.title_set";
9569
10184
  "session.mcp.approval_policy.updated": "session.mcp.approval_policy.updated";
10185
+ "session.tool_policy.updated": "session.tool_policy.updated";
9570
10186
  "codex.account.switched": "codex.account.switched";
9571
10187
  "codex.credential.selected": "codex.credential.selected";
9572
10188
  "codex.fleet.decision": "codex.fleet.decision";
@@ -10820,6 +11436,7 @@ declare const SteerSessionMessageResponse: z.ZodObject<{
10820
11436
  "terminal.pty.exited": "terminal.pty.exited";
10821
11437
  "session.title_set": "session.title_set";
10822
11438
  "session.mcp.approval_policy.updated": "session.mcp.approval_policy.updated";
11439
+ "session.tool_policy.updated": "session.tool_policy.updated";
10823
11440
  "codex.account.switched": "codex.account.switched";
10824
11441
  "codex.credential.selected": "codex.credential.selected";
10825
11442
  "codex.fleet.decision": "codex.fleet.decision";
@@ -11048,6 +11665,7 @@ declare const SessionBusMessage: z.ZodObject<{
11048
11665
  "terminal.pty.exited": "terminal.pty.exited";
11049
11666
  "session.title_set": "session.title_set";
11050
11667
  "session.mcp.approval_policy.updated": "session.mcp.approval_policy.updated";
11668
+ "session.tool_policy.updated": "session.tool_policy.updated";
11051
11669
  "codex.account.switched": "codex.account.switched";
11052
11670
  "codex.credential.selected": "codex.credential.selected";
11053
11671
  "codex.fleet.decision": "codex.fleet.decision";
@@ -11109,10 +11727,30 @@ declare const GitHubRepositoryScope: z.ZodEnum<{
11109
11727
  all: "all";
11110
11728
  }>;
11111
11729
  type GitHubRepositoryScope = z.infer<typeof GitHubRepositoryScope>;
11730
+ declare const GitHubBindingStatus: z.ZodEnum<{
11731
+ disabled: "disabled";
11732
+ unbound: "unbound";
11733
+ bound: "bound";
11734
+ }>;
11735
+ type GitHubBindingStatus = z.infer<typeof GitHubBindingStatus>;
11736
+ declare const GitHubInstallationLifecycle: z.ZodEnum<{
11737
+ active: "active";
11738
+ deleted: "deleted";
11739
+ unverified: "unverified";
11740
+ suspended: "suspended";
11741
+ }>;
11742
+ type GitHubInstallationLifecycle = z.infer<typeof GitHubInstallationLifecycle>;
11112
11743
  declare const GitHubInstallationBinding: z.ZodObject<{
11113
11744
  installationId: z.ZodNumber;
11745
+ githubAccountId: z.ZodNullable<z.ZodNumber>;
11114
11746
  accountLogin: z.ZodNullable<z.ZodString>;
11115
11747
  accountType: z.ZodNullable<z.ZodString>;
11748
+ lifecycle: z.ZodEnum<{
11749
+ active: "active";
11750
+ deleted: "deleted";
11751
+ unverified: "unverified";
11752
+ suspended: "suspended";
11753
+ }>;
11116
11754
  repositoryScope: z.ZodEnum<{
11117
11755
  selected: "selected";
11118
11756
  all: "all";
@@ -11124,6 +11762,11 @@ declare const GitHubInstallationBinding: z.ZodObject<{
11124
11762
  type GitHubInstallationBinding = z.infer<typeof GitHubInstallationBinding>;
11125
11763
  declare const GitHubAppInfo: z.ZodObject<{
11126
11764
  configured: z.ZodBoolean;
11765
+ status: z.ZodEnum<{
11766
+ disabled: "disabled";
11767
+ unbound: "unbound";
11768
+ bound: "bound";
11769
+ }>;
11127
11770
  appId: z.ZodNullable<z.ZodString>;
11128
11771
  clientId: z.ZodNullable<z.ZodString>;
11129
11772
  appSlug: z.ZodNullable<z.ZodString>;
@@ -11131,8 +11774,15 @@ declare const GitHubAppInfo: z.ZodObject<{
11131
11774
  linkUrl: z.ZodNullable<z.ZodString>;
11132
11775
  installations: z.ZodArray<z.ZodObject<{
11133
11776
  installationId: z.ZodNumber;
11777
+ githubAccountId: z.ZodNullable<z.ZodNumber>;
11134
11778
  accountLogin: z.ZodNullable<z.ZodString>;
11135
11779
  accountType: z.ZodNullable<z.ZodString>;
11780
+ lifecycle: z.ZodEnum<{
11781
+ active: "active";
11782
+ deleted: "deleted";
11783
+ unverified: "unverified";
11784
+ suspended: "suspended";
11785
+ }>;
11136
11786
  repositoryScope: z.ZodEnum<{
11137
11787
  selected: "selected";
11138
11788
  all: "all";
@@ -12824,6 +13474,8 @@ type WorkspaceModelCatalogResponse = z.infer<typeof WorkspaceModelCatalogRespons
12824
13474
  */
12825
13475
  declare const OPENGENI_API_CONTRACT_REVISION: "2026-07-turn-instructions-v1";
12826
13476
  declare const OPENGENI_API_CONTRACT_HEADER: "x-opengeni-api-contract";
13477
+ /** Bounded request/response identifier shared by browser, ingress, and API diagnostics. */
13478
+ declare const OPENGENI_CORRELATION_HEADER: "x-opengeni-correlation-id";
12827
13479
  declare const ClientConfig: z.ZodObject<{
12828
13480
  deploymentRevision: z.ZodString;
12829
13481
  apiContractRevision: z.ZodLiteral<"2026-07-turn-instructions-v1">;
@@ -13097,4 +13749,4 @@ declare function evaluateWorkspaceModelPolicy(policy: WorkspaceModelPolicyContra
13097
13749
  modelId: string;
13098
13750
  }): WorkspaceModelPolicyVerdict;
13099
13751
 
13100
- export { AccessContext, AccessGrant, AccountGrant, AccountRole, AcknowledgeStreamRequest, AcknowledgeStreamResponse, AddDocumentRequest, AddWorkspaceMemberRequest, type AdmitRunInput, ApiKey, AttachViewerRequest, type AuthorizeSessionInput, BillingBalance, BillingMode, type BoundSessionEventOptions, type BoundSessionEventPayloadOptions, type BoundWorkspaceControlEventOptions, CAPABILITY_DESCRIPTORS, CLEARED_RUN_STATE_BLOB, CLEARED_RUN_STATE_MARKER, CODEX_FLEET_POLICY_MAX_CANDIDATES, CODEX_FLEET_POLICY_MAX_OVERLAYS_PER_CANDIDATE, CODEX_FLEET_POLICY_SCHEMA_VERSION, CODEX_FLEET_POLICY_VERSION, CapabilityCatalogAuthKind, CapabilityCatalogItem, CapabilityCatalogResponse, CapabilityCatalogTier, type CapabilityDescriptor, CapabilityInstallation, CapabilityInstallationStatus, CapabilityKind, CapabilityPack, CapabilityPackConnector, CapabilityPackConnectorAuthModel, CapabilityPackKnowledge, CapabilityPackScheduledTaskTemplate, CapabilityPackSkill, CapabilityPackSkillFile, CapabilityRuntime, CapabilitySource, CapabilityUnavailableReason, ClearSessionContextRequest, ClientAuthConfig, ClientConfig, ClientModel, ClientSessionEvent, type CodexFleetAdmissionDecisionV1, type CodexFleetAdmissionSnapshotV1, type CodexFleetCacheState, type CodexFleetCandidateStatus, type CodexFleetCandidateV1, type CodexFleetConfidence, type CodexFleetDecisionInputV1, type CodexFleetDecisionV1, type CodexFleetOverlayMode, type CodexFleetPlacementKind, type CodexFleetPolicyConfigV1, type CodexFleetPriority, type CodexFleetQuotaWindowV1, type CodexFleetReplayRecordV1, type CodexFleetReplayVerdictV1, type CodexFleetScoreV1, CompactSessionContextRequest, CompactSessionContextResult, CompleteFileUploadResponse, ComposerDraft, ConnectionCredentialBundle, type ConnectionCredentialsPort, ConnectionKind, ConnectionMetadata, ConnectionResponse, ConnectionStatus, CreateApiKeyRequest, CreateApiKeyResponse, CreateCapabilityCatalogItemRequest, CreateCheckoutRequest, CreateCheckoutResponse, CreateConnectionRequest, CreateDocumentBaseRequest, CreateFileUploadRequest, CreateFileUploadResponse, CreateKnowledgeMemoryRequest, CreateRigRequest, CreateScheduledTaskRequest, CreateSessionRequest, CreateSessionResponse, CreateSocialConnectionRequest, CreateSocialPostRequest, CreateVariableSetRequest, CreateWorkspaceEnvironmentRequest, CreateWorkspaceRequest, CredentialAuthNeededPayload, type CredentialAuthNeededReason, DEFAULT_CODEX_FLEET_POLICY_V1, DEFAULT_FIRST_PARTY_MCP_PERMISSIONS, DESKTOP_STREAM_PORT, DelegatedAccessTokenPayload, DeleteSessionQueueItemRequest, DeviceEnrollmentApproveRequest, DeviceEnrollmentApproveResponse, DeviceEnrollmentDenyRequest, DeviceEnrollmentDenyResponse, DeviceEnrollmentLookupMachine, DeviceEnrollmentLookupRequest, DeviceEnrollmentLookupResponse, DeviceEnrollmentPollRequest, DeviceEnrollmentPollResponse, DeviceEnrollmentStartRequest, DeviceEnrollmentStartResponse, DeviceEnrollmentState, DiscoverMcpCapabilitiesResponse, Document, DocumentBase, DocumentSearchMode, DocumentSearchRequest, DocumentSearchResult, DocumentStatus, EditSessionQueueItemRequest, EffectiveControlBlocker, EffectiveControlResumeOption, EffectiveSessionControl, EnableCapabilityRequest, EnablePackRequest, EnrollTokenExchangeRequest, EnrollTokenExchangeResponse, EnrollTokenPayload, EnrollmentArch, EnrollmentBearerPayload, EnrollmentCredentialsResponse, EnrollmentOs, EnrollmentSummary, EntitlementDecision, EntitlementValue, Entitlements, EntitlementsMode, type EntitlementsPort, ErrorCode, ErrorEnvelope, FileAsset, FileDownloadUrlResponse, FileResourceRef, FileStatus, FileUploadStatus, FsChangeKind, FsChangedPayload, FsDeleteRequest, FsDeleteResponse, FsEncoding, FsListRequest, FsListResponse, FsMkdirRequest, FsMkdirResponse, FsMoveRequest, FsMoveResponse, FsNodeType, FsReadRequest, FsReadResponse, FsTreeNode, FsWriteRequest, FsWriteResponse, GetWorkspaceCaptureFileResponse, GetWorkspaceCaptureResponse, GitChangedPayload, GitCommit, GitCredentialBindingId, GitCredentialProvider, GitCredentialRepositoryRef, type GitCredentialTransport, type GitCredentials, type GitCredentialsRequest, GitDiffHunk, GitDiffLine, GitDiffLineType, GitDiffRequest, GitDiffResponse, GitFileDiff, GitFileStatus, GitFileStatusCode, type GitHttpBrokerRepositoryRoute, type GitHubAppApiPort, GitHubAppInfo, GitHubAppManifestCreate, GitHubInstallationBinding, type GitHubInstallationSummary, GitHubRepositoriesResponse, GitHubRepository, type GitHubRepositoryPermissions, GitHubRepositoryScope, type GitHubUserInstallationAccess, type GitHubUserRepositoryAccess, GitLogRequest, GitLogResponse, GitRepositoryAccess, GitShowRequest, GitShowResponse, GitStatusRequest, GitStatusResponse, GoalSpec, type HealthResponse, HostEventExport, HostEventExportBatch, type HostEventSink, HostExportConsumerId, HostExportCursor, HostExportInitiator, HostExportInitiatorContext, HostSessionEvent, HostUsageEvent, HostUsageExport, HostUsageExportBatch, type HostUsageSink, HumanInputAnswer, HumanInputOption, HumanInputQuestion, HumanInputQuestionKind, HumanInputRequestStatus, HumanInputResponse, IntegrationClientMetadata, KnowledgeMemory, KnowledgeMemoryKind, KnowledgeMemorySearchRequest, KnowledgeMemoryStatus, KnowledgeSourceKind, KnowledgeSourceRef, LimitAction, LimitDecision, LineageNode, ListConnectionsResponse, ListEnrollmentsResponse, ListWorkspaceMembersResponse, MAX_NESTED_AGENT_DEPTH, MachineKind, MachineMetricsSeriesResponse, MachineState, MachineView, MachinesResponse, ManagedAccount, MarketingDailyAnalysisTaskRequest, McpConnectionResourceScope, type McpCredentialAuthNeededReason, type McpCredentialResolution, type McpCredentialsRequest, McpServerConnectionRef, MetricSample, MintEnrollTokenRequest, MintEnrollTokenResponse, ModelAvailabilityV1, ModelBillingAttributionV1, ModelCapabilitiesV1, ModelCapabilityStateV1, ModelCapabilitySupportV1, ModelCredentialReadinessV1, ModelCredentialSourceV1, ModelPricingScheduleV1, ModelPricingV1, MoveSessionQueueItemRequest, NestedAgentDepthAttemptValue, NestedAgentDepthPolicySource, NestedAgentDepthValue, NewSessionDraft, NewSessionDraftOptions, OAuthStartRequest, OAuthStartResponse, OPENGENI_API_CONTRACT_HEADER, OPENGENI_API_CONTRACT_REVISION, OPENGENI_HOST_EXPORT_SCHEMA_REVISION, PackInstallation, PackInstallationStatus, Permission, type PortExposureKind, ProductAccessMode, ProposeRigChangeRequest, PtyCloseRequest, PtyOpenRequest, PtyOpenResponse, PtyResizeRequest, PtyWriteRequest, RETAINED_OUTPUT_DEFAULT_PAGE_BYTES, RETAINED_OUTPUT_MAX_PAGE_BYTES, RETAINED_OUTPUT_RECEIPT_MAX_BYTES, ReasoningEffort, RecordingAvailablePayload, RecordingCodec, RecordingContentType, RecordingFailedPayload, RecordingFailedReason, RecordingMode, RecordingStartedPayload, RegisterCapabilityPackRequest, RelayTokenPayload, RepositoryResourceRef, RequestHumanInputToolInput, type ResolveSessionAuthorizationListScopeInput, type ResolveSessionEventTypeFiltersInput, ResourceMountPathError, ResourceRef, ResourceRefConflictError, type RetainedArtifactFileInput, type RetainedArtifactMetadata, RetainedArtifactMetadataSchema, type RetainedArtifactReference, RetainedArtifactReferenceSchema, type RetainedArtifactUnavailable, RetainedArtifactUnavailableSchema, type RetainedOutputAvailableEvidence, type RetainedOutputEvidence, RetainedOutputEvidenceSchema, RetainedOutputKind, type RetainedOutputRangeResolution, type RetainedOutputResolvedRange, RetainedOutputUnavailableReason, RevokeEnrollmentResponse, Rig, RigChange, RigChangeKind, RigChangeStatus, RigChangeVerification, RigCheck, RigCheckResult, RigDefinitionEditPayload, RigSetupAppendPayload, RigVerificationHealth, RigVersion, type RunCredentialAuthNeeded, type RunCredentialFile, type RunCredentialRedaction, type RunCredentialsRequest, type RunCredentialsResolution, SESSION_AUTHORIZATION_LIST_SCOPE_MAX_IDS, SESSION_EFFECTIVE_TOOL_POLICY_ID_LIMIT, SESSION_EFFECTIVE_TOOL_POLICY_ID_MAX_LENGTH, SESSION_EVENT_CLIENT_EVENT_ID_MAX_BYTES, SESSION_EVENT_DUPLICATE_REASON_MAX_BYTES, SESSION_EVENT_ENVELOPE_MAX_BYTES, SESSION_EVENT_PAYLOAD_MAX_BYTES, SESSION_EVENT_RAW_DELTA_TYPES, SESSION_EVENT_SEMANTIC_CLASS_TYPES, SESSION_EVENT_TURN_ASSOCIATION_MAX_BYTES, SESSION_EVENT_TYPE_MAX_BYTES, SESSION_MCP_APPROVAL_POLICY_MAX_BYTES, SESSION_MCP_APPROVAL_POLICY_MAX_TOOL_NAMES, SESSION_MCP_APPROVAL_TOOL_NAME_MAX_BYTES, SESSION_MCP_SERVERS_MAX, SESSION_OPERATION_KEY_MAX_CHARS, SandboxBackend, SandboxCapabilityName, SandboxCommandOutputDeltaPayload, SandboxOs, type SandboxSecrets, type SandboxSecretsRequest, SaveComposerDraftRequest, SaveNewSessionDraftRequest, ScheduledTask, ScheduledTaskAgentConfig, ScheduledTaskOverlapPolicy, ScheduledTaskRun, ScheduledTaskRunMode, ScheduledTaskRunStatus, ScheduledTaskScheduleSpec, ScheduledTaskStatus, ScheduledTaskTriggerType, ServiceTurnInitiator, ServiceTurnInitiatorContext, Session, SessionAuthorizationActor, SessionAuthorizationDecision, SessionAuthorizationListScope, SessionAuthorizationOperation, type SessionAuthorizationPort, SessionAuthorizationSurface, SessionAuthorizationTarget, SessionBusMessage, SessionCapabilities, SessionCommandReceipt, SessionControlRequest, SessionControlResponse, SessionControlState, SessionEffectiveToolPolicy, SessionEvent, type SessionEventBoundarySurface, type SessionEventCompactResult, type SessionEventJsonMeasurement, SessionEventLatestClass, type SessionEventMediaPreview, SessionEventPayloadMode, type SessionEventPayloadTruncation, SessionEventReadDirection, SessionEventReadMode, SessionEventResultMode, SessionEventSemanticClass, SessionEventType, SessionGoal, SessionGoalContinuation, SessionGoalContinuationReason, SessionGoalContinuationState, SessionGoalCreatedBy, SessionGoalPausedReason, SessionGoalStatus, SessionHumanInputRequest, SessionLineageResponse, SessionListResponse, SessionMcpApprovalPolicy, SessionMcpCredentialUpdateInput, SessionMcpServerId, SessionMcpServerInput, SessionMcpServerMetadata, SessionQueueMutationResponse, SessionQueueSnapshot, SessionSpawnDenial, SessionStatus, SessionStructuredCapabilities, type SessionSummary, SessionSystemUpdate, SessionSystemUpdateKind, SessionSystemUpdatePayload, SessionSystemUpdateState, SessionToolPolicy, SessionTurn, SessionTurnSource, SessionTurnStatus, SetVariableSetVariableRequest, SetWorkspaceDefaultRigRequest, SetWorkspaceEnvironmentVariableRequest, SocialConnection, SocialConnectionStatus, SocialPost, SocialProvider, StaticUsageLimits, SteerSessionMessageRequest, SteerSessionMessageResponse, SteerSessionQueueItemRequest, StreamClosedPayload, StreamOpenedPayload, StreamRevokedPayload, StreamTokenPayload, StreamUrlRotatedPayload, SubmitHumanInputResponseRequest, SwapActiveSandboxRequest, SwapActiveSandboxResponse, SystemUpdateClassification, TERMINAL_STREAM_PORT, TURN_EXECUTION_POLICY_METADATA_KEY, TerminalExecRequest, TerminalExecResponse, TerminalPtyExitedPayload, TerminalPtyOutputDeltaPayload, TerminalPtyStartedPayload, ToolAuthNeededPayload, ToolRef, TranscriptionErrorCode, TranscriptionEvent, TranscriptionResultMetadata, TranscriptionSpeaker, TranscriptionTimeSpan, TranscriptionWord, TriggerScheduledTaskRequest, TurnExecutionModelSourceV1, type TurnExecutionPolicyReadV1, TurnExecutionPolicyV1, TurnExecutionReasoningSourceV1, TurnInitiator, TurnInitiatorContext, UNATTRIBUTED_LEGACY_INITIATOR_SUBJECT_ID, UpdateConnectionRequest, UpdateKnowledgeMemoryRequest, UpdateRigRequest, UpdateScheduledTaskRequest, UpdateSessionGoalRequest, UpdateSessionMcpApprovalPolicyRequest, UpdateSessionMcpApprovalPolicyResponse, UpdateSessionPinRequest, UpdateSessionRequest, UpdateVariableSetRequest, UpdateWorkspaceEnvironmentRequest, UpdateWorkspaceMemberRequest, UpdateWorkspaceModelPolicyRequest, UpdateWorkspaceRequest, UpdateWorkspaceSettingsRequest, UsageEvent, UsageEventType, UsageLimitsMode, VariableSet, VariableSetVariableMetadata, VariableSetVariableName, ViewerHeartbeatRequest, ViewerHeartbeatResponse, ViewerHolder, WORKSPACE_CONTROL_ACTOR_MAX_BYTES, WORKSPACE_CONTROL_EVENT_MAX_BYTES, WORKSPACE_CONTROL_REASON_MAX_BYTES, Workspace, WorkspaceCaptureDegradedReason, WorkspaceCaptureFile, WorkspaceCaptureManifest, WorkspaceCaptureRepo, WorkspaceCaptureSignedUrl, WorkspaceCaptureStats, type WorkspaceControlBoundarySurface, WorkspaceControlEvent, WorkspaceControlEventTruncation, WorkspaceEnvironment, WorkspaceEnvironmentVariableMetadata, WorkspaceInferenceControlRequest, WorkspaceInferenceControlResponse, WorkspaceInferenceState, WorkspaceMember, WorkspaceMemorySearchMode, WorkspaceMemorySearchRequest, WorkspaceMemorySearchResponse, WorkspaceMemorySearchResult, WorkspaceModelCatalogModel, WorkspaceModelCatalogResponse, type WorkspaceModelPolicyContract, type WorkspaceModelPolicyVerdict, WorkspaceRegisteredPack, WorkspaceRevisionCapturedPayload, WorkspaceRevisionDegradedPayload, type WorkspaceSettings, WorkspaceSettingsSchema, WorkspaceTranscriptionPolicy, WorkspaceTranscriptionTarget, approvalIdentifier, approximateSessionEventTokens, assertUniqueResourceMountPaths, boundSessionEvent, boundSessionEventPayload, boundWorkspaceControlEvent, canonicalCodexFleetReplayJsonV1, capabilityCatalogItemIsTrustedForExposure, compactSessionEventResult, compareCodexFleetCanonicalStringsV1, createCodexFleetReplayRecordV1, defaultRepositoryMountPath, effectiveCodexFleetCacheStateV1, evaluateCodexFleetDecisionV1, evaluateWorkspaceModelPolicy, gitCredentialBindingIdForRepository, gitCredentialProviderForRepository, isClearedRunStateBlob, measureSessionEventJson, mergeResourceRefs, mergeToolRefs, metadataWithTurnExecutionPolicyV1, normalizeRepositorySubpath, normalizeResourceMountPath, prefixedMcpToolName, readCodexFleetReplayRecordV1, readTurnExecutionPolicyV1, reasoningEffortForMetadata, replayCodexFleetDecisionV1, resolveRetainedOutputRange, resolveSessionEventTypeFilters, resolveWorkspaceMemoryEnabled, resourceIdentityKey, resourceMountPath, resourceMountPathCollisionKey, retainedArtifactReferenceFromFile, retainedOutputUnavailable, sessionEventJsonBytes, sessionEventLatestClassToSemanticClass, sessionEventMediaPreview, sessionEventMediaPreviewFromDataUrl, sessionEventPayloadTruncation, signDelegatedAccessToken, signEnrollToken, signEnrollmentBearer, signRelayToken, signStreamToken, stableJson, turnExecutionPolicyAuditMetadata, validateRetainedOutputEvidence, verifyDelegatedAccessToken, verifyEnrollToken, verifyEnrollmentBearer, verifyRelayToken, verifyStreamToken, workspaceControlUtf8Bytes };
13752
+ export { AccessContext, AccessGrant, AccountGrant, AccountRole, AcknowledgeStreamRequest, AcknowledgeStreamResponse, ActivateWorkspaceInstructionPolicyRequest, AddDocumentRequest, AddWorkspaceMemberRequest, type AdmitRunInput, ApiKey, AttachViewerRequest, type AuthorizeSessionInput, BillingBalance, BillingMode, type BoundSessionEventOptions, type BoundSessionEventPayloadOptions, type BoundWorkspaceControlEventOptions, CAPABILITY_DESCRIPTORS, CLEARED_RUN_STATE_BLOB, CLEARED_RUN_STATE_MARKER, CODEX_FLEET_POLICY_MAX_CANDIDATES, CODEX_FLEET_POLICY_MAX_OVERLAYS_PER_CANDIDATE, CODEX_FLEET_POLICY_SCHEMA_VERSION, CODEX_FLEET_POLICY_VERSION, CapabilityCatalogAuthKind, CapabilityCatalogItem, CapabilityCatalogResponse, CapabilityCatalogTier, type CapabilityDescriptor, CapabilityInstallation, CapabilityInstallationStatus, CapabilityKind, CapabilityPack, CapabilityPackConnector, CapabilityPackConnectorAuthModel, CapabilityPackKnowledge, CapabilityPackScheduledTaskTemplate, CapabilityPackSkill, CapabilityPackSkillFile, CapabilityRuntime, CapabilitySource, CapabilityUnavailableReason, ClearSessionContextRequest, ClientAuthConfig, ClientConfig, ClientModel, ClientSessionEvent, type CodexFleetAdmissionDecisionV1, type CodexFleetAdmissionSnapshotV1, type CodexFleetCacheState, type CodexFleetCandidateStatus, type CodexFleetCandidateV1, type CodexFleetConfidence, type CodexFleetDecisionInputV1, type CodexFleetDecisionV1, type CodexFleetOverlayMode, type CodexFleetPlacementKind, type CodexFleetPolicyConfigV1, type CodexFleetPriority, type CodexFleetQuotaWindowV1, type CodexFleetReplayRecordV1, type CodexFleetReplayVerdictV1, type CodexFleetScoreV1, CompactSessionContextRequest, CompactSessionContextResult, CompleteFileUploadResponse, ComposerDraft, ConnectOpenGeniSlackBotRequest, ConnectionCredentialBundle, type ConnectionCredentialsPort, ConnectionKind, ConnectionMetadata, ConnectionResponse, ConnectionStatus, CreateApiKeyRequest, CreateApiKeyResponse, CreateCapabilityCatalogItemRequest, CreateCheckoutRequest, CreateCheckoutResponse, CreateConnectionRequest, CreateDocumentBaseRequest, CreateFileUploadRequest, CreateFileUploadResponse, CreateKnowledgeDropRequest, CreateKnowledgeMemoryRequest, CreateRigRequest, CreateScheduledTaskRequest, CreateSessionRequest, CreateSessionResponse, CreateSocialConnectionRequest, CreateSocialPostRequest, CreateVariableSetRequest, CreateWorkspaceEnvironmentRequest, CreateWorkspaceInstructionPolicyDraftRequest, CreateWorkspaceRequest, CredentialAuthNeededPayload, type CredentialAuthNeededReason, DEFAULT_CODEX_FLEET_POLICY_V1, DEFAULT_FIRST_PARTY_MCP_PERMISSIONS, DESKTOP_STREAM_PORT, DelegatedAccessTokenPayload, DeleteSessionQueueItemRequest, DeviceEnrollmentApproveRequest, DeviceEnrollmentApproveResponse, DeviceEnrollmentDenyRequest, DeviceEnrollmentDenyResponse, DeviceEnrollmentLookupMachine, DeviceEnrollmentLookupRequest, DeviceEnrollmentLookupResponse, DeviceEnrollmentPollRequest, DeviceEnrollmentPollResponse, DeviceEnrollmentStartRequest, DeviceEnrollmentStartResponse, DeviceEnrollmentState, DiscoverMcpCapabilitiesResponse, Document, DocumentBase, DocumentCuration, DocumentCurationStatus, DocumentSearchMode, DocumentSearchRequest, DocumentSearchResult, DocumentStatus, DocumentVisibility, EditSessionQueueItemRequest, EffectiveControlBlocker, EffectiveControlResumeOption, EffectiveSessionControl, EnableCapabilityRequest, EnablePackRequest, EnrollTokenExchangeRequest, EnrollTokenExchangeResponse, EnrollTokenPayload, EnrollmentArch, EnrollmentBearerPayload, EnrollmentCredentialsResponse, EnrollmentOs, EnrollmentSummary, EntitlementDecision, EntitlementValue, Entitlements, EntitlementsMode, type EntitlementsPort, ErrorCode, ErrorEnvelope, FileAsset, FileDownloadUrlResponse, FileResourceRef, FileStatus, FileUploadStatus, FsChangeKind, FsChangedPayload, FsDeleteRequest, FsDeleteResponse, FsEncoding, FsListRequest, FsListResponse, FsMkdirRequest, FsMkdirResponse, FsMoveRequest, FsMoveResponse, FsNodeType, FsReadRequest, FsReadResponse, FsTreeNode, FsWriteRequest, FsWriteResponse, GetWorkspaceCaptureFileResponse, GetWorkspaceCaptureResponse, GitChangedPayload, GitCommit, GitCredentialBindingId, GitCredentialProvider, GitCredentialRepositoryRef, type GitCredentialTransport, type GitCredentials, type GitCredentialsRequest, GitDiffHunk, GitDiffLine, GitDiffLineType, GitDiffRequest, GitDiffResponse, GitFileDiff, GitFileStatus, GitFileStatusCode, type GitHttpBrokerRepositoryRoute, type GitHubAppApiPort, GitHubAppInfo, GitHubAppManifestCreate, GitHubBindingStatus, type GitHubInstallationAuthorityKind, GitHubInstallationBinding, type GitHubInstallationBindingProof, GitHubInstallationLifecycle, type GitHubInstallationSummary, GitHubRepositoriesResponse, GitHubRepository, type GitHubRepositoryPermissions, GitHubRepositoryScope, type GitHubUserInstallationAccess, type GitHubUserRepositoryAccess, GitLogRequest, GitLogResponse, GitRepositoryAccess, GitShowRequest, GitShowResponse, GitStatusRequest, GitStatusResponse, GoalSpec, type HealthResponse, HostEventExport, HostEventExportBatch, type HostEventSink, HostExportConsumerId, HostExportCursor, HostExportInitiator, HostExportInitiatorContext, HostSessionEvent, HostUsageEvent, HostUsageExport, HostUsageExportBatch, type HostUsageSink, HumanInputAnswer, HumanInputOption, HumanInputQuestion, HumanInputQuestionKind, HumanInputRequestStatus, HumanInputResponse, ImportLegacyWorkspaceInstructionPolicyDraftRequest, IntegrationClientMetadata, KnowledgeMemory, KnowledgeMemoryKind, KnowledgeMemorySearchRequest, KnowledgeMemoryStatus, KnowledgeSourceKind, KnowledgeSourceRef, LimitAction, LimitDecision, LineageNode, ListConnectionsResponse, ListEnrollmentsResponse, ListWorkspaceMembersResponse, MAX_NESTED_AGENT_DEPTH, MachineKind, MachineMetricsSeriesResponse, MachineState, MachineView, MachinesResponse, ManagedAccount, MarketingDailyAnalysisTaskRequest, McpConnectionResourceScope, type McpCredentialAuthNeededReason, type McpCredentialResolution, type McpCredentialsRequest, McpServerConnectionRef, MetricSample, MintEnrollTokenRequest, MintEnrollTokenResponse, ModelAvailabilityV1, ModelBillingAttributionV1, ModelCapabilitiesV1, ModelCapabilityStateV1, ModelCapabilitySupportV1, ModelCredentialReadinessV1, ModelCredentialSourceV1, ModelPricingScheduleV1, ModelPricingV1, MoveDocumentRequest, MoveSessionQueueItemRequest, NestedAgentDepthAttemptValue, NestedAgentDepthPolicySource, NestedAgentDepthValue, NewSessionDraft, NewSessionDraftOptions, OAuthStartRequest, OAuthStartResponse, OPENGENI_API_CONTRACT_HEADER, OPENGENI_API_CONTRACT_REVISION, OPENGENI_CORRELATION_HEADER, OPENGENI_HOST_EXPORT_SCHEMA_REVISION, OPENGENI_SLACK_BOT_CREDENTIAL_LABEL, OPENGENI_SLACK_BOT_CREDENTIAL_ROLE, OPENGENI_SLACK_BOT_FORBIDDEN_SCOPES, OPENGENI_SLACK_BOT_REQUIRED_SCOPES, OPENGENI_SLACK_BOT_SESSION_METADATA_KEY, OpenGeniSlackBotConnectionMetadata, PackInstallation, PackInstallationStatus, Permission, type PortExposureKind, ProductAccessMode, ProposeRigChangeRequest, PtyCloseRequest, PtyOpenRequest, PtyOpenResponse, PtyResizeRequest, PtyWriteRequest, RETAINED_OUTPUT_DEFAULT_PAGE_BYTES, RETAINED_OUTPUT_MAX_PAGE_BYTES, RETAINED_OUTPUT_RECEIPT_MAX_BYTES, ReasoningEffort, RecordingAvailablePayload, RecordingCodec, RecordingContentType, RecordingFailedPayload, RecordingFailedReason, RecordingMode, RecordingStartedPayload, RegisterCapabilityPackRequest, RelayTokenPayload, RepositoryResourceRef, RequestHumanInputToolInput, type ResolveSessionAuthorizationListScopeInput, type ResolveSessionEventTypeFiltersInput, ResourceMountPathError, ResourceRef, ResourceRefConflictError, type RetainedArtifactFileInput, type RetainedArtifactMetadata, RetainedArtifactMetadataSchema, type RetainedArtifactReference, RetainedArtifactReferenceSchema, type RetainedArtifactUnavailable, RetainedArtifactUnavailableSchema, type RetainedOutputAvailableEvidence, type RetainedOutputEvidence, RetainedOutputEvidenceSchema, RetainedOutputKind, type RetainedOutputRangeResolution, type RetainedOutputResolvedRange, RetainedOutputUnavailableReason, RevokeEnrollmentResponse, Rig, RigChange, RigChangeKind, RigChangeStatus, RigChangeVerification, RigCheck, RigCheckResult, RigDefinitionEditPayload, RigSetupAppendPayload, RigVerificationHealth, RigVersion, RollbackWorkspaceInstructionPolicyRequest, type RunCredentialAuthNeeded, type RunCredentialFile, type RunCredentialRedaction, type RunCredentialsRequest, type RunCredentialsResolution, SESSION_AUTHORIZATION_LIST_SCOPE_MAX_IDS, SESSION_EFFECTIVE_TOOL_POLICY_ID_LIMIT, SESSION_EFFECTIVE_TOOL_POLICY_ID_MAX_LENGTH, SESSION_EVENT_CLIENT_EVENT_ID_MAX_BYTES, SESSION_EVENT_DUPLICATE_REASON_MAX_BYTES, SESSION_EVENT_ENVELOPE_MAX_BYTES, SESSION_EVENT_PAYLOAD_MAX_BYTES, SESSION_EVENT_RAW_DELTA_TYPES, SESSION_EVENT_SEMANTIC_CLASS_TYPES, SESSION_EVENT_TURN_ASSOCIATION_MAX_BYTES, SESSION_EVENT_TYPE_MAX_BYTES, SESSION_MCP_APPROVAL_POLICY_MAX_BYTES, SESSION_MCP_APPROVAL_POLICY_MAX_TOOL_NAMES, SESSION_MCP_APPROVAL_TOOL_NAME_MAX_BYTES, SESSION_MCP_SERVERS_MAX, SESSION_OPERATION_KEY_MAX_CHARS, SandboxBackend, SandboxCapabilityName, SandboxCommandOutputDeltaPayload, SandboxOs, type SandboxSecrets, type SandboxSecretsRequest, SaveComposerDraftRequest, SaveNewSessionDraftRequest, ScheduledTask, ScheduledTaskAgentConfig, ScheduledTaskOverlapPolicy, ScheduledTaskRun, ScheduledTaskRunMode, ScheduledTaskRunStatus, ScheduledTaskScheduleSpec, ScheduledTaskStatus, ScheduledTaskTriggerType, type SecretForRedaction, ServiceTurnInitiator, ServiceTurnInitiatorContext, Session, SessionAuthorizationActor, SessionAuthorizationDecision, SessionAuthorizationListScope, SessionAuthorizationOperation, type SessionAuthorizationPort, SessionAuthorizationSurface, SessionAuthorizationTarget, SessionBusMessage, SessionCapabilities, SessionCommandReceipt, SessionControlRequest, SessionControlResponse, SessionControlState, SessionEffectiveToolPolicy, SessionEvent, type SessionEventBoundarySurface, type SessionEventCompactResult, type SessionEventJsonMeasurement, SessionEventLatestClass, type SessionEventMediaPreview, SessionEventPayloadMode, type SessionEventPayloadTruncation, SessionEventReadDirection, SessionEventReadMode, SessionEventResultMode, SessionEventSemanticClass, SessionEventType, SessionGoal, SessionGoalContinuation, SessionGoalContinuationReason, SessionGoalContinuationState, SessionGoalCreatedBy, SessionGoalPausedReason, SessionGoalStatus, SessionHumanInputRequest, SessionLineageResponse, SessionListResponse, SessionMcpApprovalPolicy, SessionMcpCredentialUpdateInput, SessionMcpServerId, SessionMcpServerInput, SessionMcpServerMetadata, SessionQueueMutationResponse, SessionQueueSnapshot, SessionSpawnDenial, SessionStatus, SessionStructuredCapabilities, type SessionSummary, SessionSystemUpdate, SessionSystemUpdateKind, SessionSystemUpdatePayload, SessionSystemUpdateState, SessionToolPolicy, SessionTurn, SessionTurnSource, SessionTurnStatus, SetVariableSetVariableRequest, SetWorkspaceDefaultRigRequest, SetWorkspaceEnvironmentVariableRequest, SocialConnection, SocialConnectionStatus, SocialPost, SocialProvider, StaticUsageLimits, SteerSessionMessageRequest, SteerSessionMessageResponse, SteerSessionQueueItemRequest, StreamClosedPayload, StreamOpenedPayload, StreamRevokedPayload, StreamTokenPayload, StreamUrlRotatedPayload, SubmitHumanInputResponseRequest, SwapActiveSandboxRequest, SwapActiveSandboxResponse, SystemUpdateClassification, TERMINAL_STREAM_PORT, TURN_EXECUTION_POLICY_METADATA_KEY, TerminalExecRequest, TerminalExecResponse, TerminalPtyExitedPayload, TerminalPtyOutputDeltaPayload, TerminalPtyStartedPayload, ToolAuthNeededPayload, ToolRef, TranscriptionErrorCode, TranscriptionEvent, TranscriptionResultMetadata, TranscriptionSpeaker, TranscriptionTimeSpan, TranscriptionWord, TriggerScheduledTaskRequest, TurnExecutionModelSourceV1, type TurnExecutionPolicyReadV1, TurnExecutionPolicyV1, TurnExecutionReasoningSourceV1, TurnInitiator, TurnInitiatorContext, UNATTRIBUTED_LEGACY_INITIATOR_SUBJECT_ID, UpdateConnectionRequest, UpdateKnowledgeMemoryRequest, UpdateRigRequest, UpdateScheduledTaskRequest, UpdateSessionGoalRequest, UpdateSessionMcpApprovalPolicyRequest, UpdateSessionMcpApprovalPolicyResponse, UpdateSessionPinRequest, UpdateSessionRequest, UpdateSessionToolPolicyRequest, UpdateVariableSetRequest, UpdateWorkspaceEnvironmentRequest, UpdateWorkspaceMemberRequest, UpdateWorkspaceModelPolicyRequest, UpdateWorkspaceRequest, UpdateWorkspaceSettingsRequest, UsageEvent, UsageEventType, UsageLimitsMode, VariableSet, VariableSetVariableMetadata, VariableSetVariableName, ViewerHeartbeatRequest, ViewerHeartbeatResponse, ViewerHolder, WORKSPACE_CONTROL_ACTOR_MAX_BYTES, WORKSPACE_CONTROL_EVENT_MAX_BYTES, WORKSPACE_CONTROL_REASON_MAX_BYTES, WORKSPACE_INSTRUCTION_POLICY_CONTENT_MAX_CHARS, WORKSPACE_INSTRUCTION_POLICY_REASON_MAX_CHARS, WORKSPACE_INSTRUCTION_POLICY_ROLE_KEY_MAX_CHARS, WORKSPACE_INSTRUCTION_POLICY_SOURCE_ID_MAX_CHARS, Workspace, WorkspaceCaptureDegradedReason, WorkspaceCaptureFile, WorkspaceCaptureManifest, WorkspaceCaptureRepo, WorkspaceCaptureSignedUrl, WorkspaceCaptureStats, type WorkspaceControlBoundarySurface, WorkspaceControlEvent, WorkspaceControlEventTruncation, WorkspaceEnvironment, WorkspaceEnvironmentVariableMetadata, WorkspaceInferenceControlRequest, WorkspaceInferenceControlResponse, WorkspaceInferenceState, WorkspaceInstructionPolicyActivationEvent, WorkspaceInstructionPolicyActivationResponse, WorkspaceInstructionPolicyActivationType, WorkspaceInstructionPolicyConflictResponse, WorkspaceInstructionPolicyDiffRequest, WorkspaceInstructionPolicyDiffResponse, WorkspaceInstructionPolicyDraftProvenanceSource, WorkspaceInstructionPolicyHead, WorkspaceInstructionPolicyKind, WorkspaceInstructionPolicyListQuery, WorkspaceInstructionPolicyListResponse, WorkspaceInstructionPolicyProvenance, WorkspaceInstructionPolicyProvenanceSource, WorkspaceInstructionPolicyRevision, WorkspaceInstructionPolicyRevisionIdentity, WorkspaceInstructionPolicyRoleKey, WorkspaceInstructionPolicyScope, WorkspaceInstructionPolicyTarget, WorkspaceMember, WorkspaceMemorySearchMode, WorkspaceMemorySearchRequest, WorkspaceMemorySearchResponse, WorkspaceMemorySearchResult, WorkspaceModelCatalogModel, WorkspaceModelCatalogResponse, type WorkspaceModelPolicyContract, type WorkspaceModelPolicyVerdict, WorkspaceRegisteredPack, WorkspaceRevisionCapturedPayload, WorkspaceRevisionDegradedPayload, type WorkspaceSettings, WorkspaceSettingsSchema, WorkspaceTranscriptionPolicy, WorkspaceTranscriptionTarget, approvalIdentifier, approximateSessionEventTokens, assertUniqueResourceMountPaths, boundSessionEvent, boundSessionEventPayload, boundWorkspaceControlEvent, canonicalCodexFleetReplayJsonV1, capabilityCatalogItemIsTrustedForExposure, compactSessionEventResult, compareCodexFleetCanonicalStringsV1, createCodexFleetReplayRecordV1, createSecretRedactor, defaultRepositoryMountPath, effectiveCodexFleetCacheStateV1, evaluateCodexFleetDecisionV1, evaluateWorkspaceModelPolicy, gitCredentialBindingIdForRepository, gitCredentialProviderForRepository, identityRedactor, isClearedRunStateBlob, isCredentialHeaderName, isSensitiveFieldName, measureSessionEventJson, mergeResourceRefs, mergeToolRefs, metadataWithTurnExecutionPolicyV1, normalizeRepositorySubpath, normalizeResourceMountPath, normalizeWorkspaceInstructionPolicyRoleKey, prefixedMcpToolName, readCodexFleetReplayRecordV1, readTurnExecutionPolicyV1, reasoningEffortForMetadata, redactSensitiveData, redactSensitiveKey, redactSensitiveText, redactSerializedJson, replayCodexFleetDecisionV1, resolveRetainedOutputRange, resolveSessionEventTypeFilters, resolveWorkspaceMemoryEnabled, resourceIdentityKey, resourceMountPath, resourceMountPathCollisionKey, retainedArtifactReferenceFromFile, retainedOutputUnavailable, sessionEventJsonBytes, sessionEventLatestClassToSemanticClass, sessionEventMediaPreview, sessionEventMediaPreviewFromDataUrl, sessionEventPayloadTruncation, signDelegatedAccessToken, signEnrollToken, signEnrollmentBearer, signRelayToken, signStreamToken, stableJson, turnExecutionPolicyAuditMetadata, validateRetainedOutputEvidence, verifyDelegatedAccessToken, verifyEnrollToken, verifyEnrollmentBearer, verifyRelayToken, verifyStreamToken, workspaceControlUtf8Bytes };