@deepraxis/sdk 0.1.0-dev.ed6ad1b → 0.1.0-dev.f8a7b74

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.
@@ -714,7 +714,7 @@ export type BrowserStreamMessage = {
714
714
  };
715
715
  export type OwnFileCreateFileRequest = {
716
716
  /**
717
- * File bytes in one multipart file part, not a filename or file ID. The file must be nonempty and at most 104857600 bytes; its content determines the MIME type.
717
+ * File bytes in one multipart file part, not a filename or file ID. The file must be nonempty and at most 100000000 bytes; its content determines the MIME type.
718
718
  */
719
719
  file: Blob | File;
720
720
  /**
@@ -739,7 +739,7 @@ export type OwnFileCreateFileRequest = {
739
739
  */
740
740
  export type OwnFileOpenAiFile = {
741
741
  /**
742
- * File identifier: file_dp_ followed by a 26-character uppercase Crockford ULID. Use the ID returned by upload or list.
742
+ * File identifier: file- followed by 24 base62 characters. Use the ID returned by upload or list.
743
743
  */
744
744
  id: string;
745
745
  /**
@@ -753,7 +753,7 @@ export type OwnFileOpenAiFile = {
753
753
  /**
754
754
  * The Unix timestamp (in seconds) for when the file will expire.
755
755
  */
756
- expires_at?: number;
756
+ expires_at?: number | null;
757
757
  /**
758
758
  * The name of the file.
759
759
  */
@@ -772,22 +772,12 @@ export type OwnFileOpenAiFile = {
772
772
  * @deprecated
773
773
  */
774
774
  status: 'uploaded' | 'processed' | 'error';
775
- /**
776
- * Deprecated; always null or absent.
777
- *
778
- * @deprecated
779
- */
780
- status_details?: string | null;
781
775
  /**
782
776
  * Content-detected MIME type.
783
777
  */
784
778
  mime_type: string;
785
779
  /**
786
- * Tenant-owned live files can be downloaded through this face.
787
- */
788
- downloadable: true;
789
- /**
790
- * Present for session output files.
780
+ * Session scope for session outputs; null for other files.
791
781
  */
792
782
  scope?: {
793
783
  /**
@@ -798,7 +788,7 @@ export type OwnFileOpenAiFile = {
798
788
  * Id of the session the file belongs to.
799
789
  */
800
790
  id: string;
801
- };
791
+ } | null;
802
792
  /**
803
793
  * Path within the session output directory; present for session outputs.
804
794
  */
@@ -807,6 +797,18 @@ export type OwnFileOpenAiFile = {
807
797
  * Session output revision; present for session outputs.
808
798
  */
809
799
  revision?: number;
800
+ /**
801
+ * processing is not yet usable; active is ready; expired cannot be read.
802
+ */
803
+ state: 'processing' | 'active' | 'expired';
804
+ /**
805
+ * upload is user-provided, generated is platform-produced, session is a session output.
806
+ */
807
+ source: 'upload' | 'generated' | 'session';
808
+ /**
809
+ * Content digest, prefixed sha256:. Available after processing completes.
810
+ */
811
+ sha256: string;
810
812
  };
811
813
  export type OwnFileErrorResponse = {
812
814
  error: OwnFileError;
@@ -835,7 +837,7 @@ export type OwnFileListFilesResponse = {
835
837
  };
836
838
  export type OwnFileDeleteFileResponse = {
837
839
  /**
838
- * File identifier: file_dp_ followed by a 26-character uppercase Crockford ULID. Use the ID returned by upload or list.
840
+ * File identifier: file- followed by 24 base62 characters. Use the ID returned by upload or list.
839
841
  */
840
842
  id: string;
841
843
  /**
@@ -847,6 +849,132 @@ export type OwnFileDeleteFileResponse = {
847
849
  */
848
850
  deleted: boolean;
849
851
  };
852
+ export type OwnFilePraxisCreateUpload = {
853
+ /**
854
+ * Exact complete file length in bytes, from 1 through 2147483648 (2 GiB); the sum of completed parts must match.
855
+ */
856
+ bytes: number;
857
+ /**
858
+ * Filename for the resulting file, at most 255 UTF-8 bytes.
859
+ */
860
+ filename: string;
861
+ /**
862
+ * Declared MIME type; validated against the assembled content.
863
+ */
864
+ mime_type: string;
865
+ /**
866
+ * Use user_data for conversation attachments, assistants for assistant files, or vision for PNG, JPEG, GIF and WebP images.
867
+ */
868
+ purpose: 'user_data' | 'assistants' | 'vision';
869
+ /**
870
+ * Optional expiry policy for the resulting file; omission retains the file until deletion.
871
+ */
872
+ expires_after?: {
873
+ /**
874
+ * Expiry is measured from file creation; created_at is the only supported anchor.
875
+ */
876
+ anchor?: 'created_at';
877
+ /**
878
+ * Resulting file lifetime in seconds; omit expires_after to retain it until deletion.
879
+ */
880
+ seconds: number;
881
+ };
882
+ /**
883
+ * Optional fixed part size in bytes, 5242880–64000000. Requires part_number on every part; retries of identical bytes at the same number return the same part. Omit to use arbitrary-sized parts.
884
+ */
885
+ part_size?: number;
886
+ };
887
+ export type OwnFilePraxisUpload = {
888
+ /**
889
+ * Upload identifier returned by create. Use this value for parts, complete and cancel.
890
+ */
891
+ id: string;
892
+ /**
893
+ * Object type; upload identifies an upload session.
894
+ */
895
+ object: 'upload';
896
+ /**
897
+ * Declared size of the complete file in bytes.
898
+ */
899
+ bytes: number;
900
+ /**
901
+ * Creation time as Unix seconds.
902
+ */
903
+ created_at: number;
904
+ /**
905
+ * Expiry time as Unix seconds; unfinished uploads expire after one hour.
906
+ */
907
+ expires_at: number;
908
+ /**
909
+ * Filename supplied when creating the upload.
910
+ */
911
+ filename: string;
912
+ /**
913
+ * File purpose: user_data for conversation attachments, assistants for assistant files, vision for images.
914
+ */
915
+ purpose: 'user_data' | 'assistants' | 'vision';
916
+ /**
917
+ * Upload state: pending accepts parts; completed has a file; cancelled was cancelled; expired exceeded its one-hour lifetime.
918
+ */
919
+ status: 'pending' | 'completed' | 'cancelled' | 'expired';
920
+ /**
921
+ * Present after complete. A file with status uploaded is still processing; poll files.retrieve until processed before use.
922
+ */
923
+ file?: OwnFileOpenAiFile | null;
924
+ /**
925
+ * Declared MIME type, verified during assembly.
926
+ */
927
+ mime_type?: string;
928
+ /**
929
+ * Assembly failure, or null if no failure is recorded.
930
+ */
931
+ error?: {
932
+ /**
933
+ * File service error code identifying the assembly failure.
934
+ */
935
+ code: string;
936
+ /**
937
+ * Explanation of why assembly failed.
938
+ */
939
+ message: string;
940
+ } | null;
941
+ };
942
+ export type OwnFilePraxisUploadPart = {
943
+ /**
944
+ * Part identifier returned by this request. Supply it to complete in file byte order.
945
+ */
946
+ id: string;
947
+ /**
948
+ * Object type; upload.part identifies an uploaded part.
949
+ */
950
+ object: 'upload.part';
951
+ /**
952
+ * Part creation time as Unix seconds.
953
+ */
954
+ created_at: number;
955
+ /**
956
+ * Parent upload identifier supplied in the request path.
957
+ */
958
+ upload_id: string;
959
+ /**
960
+ * Accepted part length in bytes.
961
+ */
962
+ bytes?: number;
963
+ /**
964
+ * Part content digest prefixed sha256:.
965
+ */
966
+ sha256?: string;
967
+ };
968
+ export type OwnFilePraxisCompleteUpload = {
969
+ /**
970
+ * All part IDs in concatenation order, without duplicates. Fixed-size uploads require increasing part_number order.
971
+ */
972
+ part_ids: Array<string>;
973
+ /**
974
+ * Optional whole-file MD5 as 32 hexadecimal characters; verified after assembly.
975
+ */
976
+ md5?: string;
977
+ };
850
978
  /**
851
979
  * Problem document returned by the Meta method catalog on failure.
852
980
  */
@@ -3784,7 +3912,7 @@ export type SandboxSandboxDetail = {
3784
3912
  */
3785
3913
  allowInternetAccess?: boolean;
3786
3914
  /**
3787
- * Domain returned for sandbox traffic. Build an HTTP service URL as https://<port>-<sandboxID>.<domain> using the returned values, without replacing or stripping the sandboxID suffix.
3915
+ * Base domain where the sandbox traffic is accessible
3788
3916
  */
3789
3917
  domain?: string;
3790
3918
  cpuCount: SandboxCpuCount;
@@ -11739,7 +11867,7 @@ export type MediaMediaEventPage = MediaPage & {
11739
11867
  */
11740
11868
  export type SandboxNewSandboxV2 = {
11741
11869
  /**
11742
- * Template ID or alias from templates.list; resolves to your ready Environment first, then a public Base. Omit it to use the default base template (`base`).
11870
+ * Identifier of the required template
11743
11871
  */
11744
11872
  templateID: string;
11745
11873
  /**
@@ -11801,7 +11929,7 @@ export type SandboxSandbox = {
11801
11929
  */
11802
11930
  trafficAccessToken?: string;
11803
11931
  /**
11804
- * Domain returned for sandbox traffic. Build an HTTP service URL as https://<port>-<sandboxID>.<domain> using the returned values, without replacing or stripping the sandboxID suffix.
11932
+ * Base domain where the sandbox traffic is accessible
11805
11933
  */
11806
11934
  domain?: string;
11807
11935
  };
@@ -12574,6 +12702,488 @@ export type VaultOAuthClientMetadata = {
12574
12702
  token_endpoint_auth_method: 'none';
12575
12703
  [key: string]: unknown;
12576
12704
  };
12705
+ /**
12706
+ * Organization-scoped ticket. All public fields use snake_case.
12707
+ */
12708
+ export type TicketRecord = {
12709
+ /**
12710
+ * Opaque identifier returned by this resource's create or list operation.
12711
+ */
12712
+ id: string;
12713
+ /**
12714
+ * Opaque identifier returned by this resource's create or list operation.
12715
+ */
12716
+ repository: string;
12717
+ /**
12718
+ * Repository-local number returned by create or list; distinct from the object's id.
12719
+ */
12720
+ number: number;
12721
+ /**
12722
+ * Short title, at most 256 Unicode characters.
12723
+ */
12724
+ title: string;
12725
+ /**
12726
+ * Markdown text, at most 65536 characters.
12727
+ */
12728
+ body: string;
12729
+ /**
12730
+ * open means actionable; closed means resolved or declined.
12731
+ */
12732
+ state: 'open' | 'closed';
12733
+ /**
12734
+ * completed means resolved; not_planned means declined; duplicate identifies a duplicate; reopened records reopening.
12735
+ */
12736
+ state_reason: 'completed' | 'not_planned' | 'duplicate' | 'reopened';
12737
+ /**
12738
+ * Built-in type name from GET /ticket/v1/types; null when unset.
12739
+ */
12740
+ type: string | null;
12741
+ /**
12742
+ * Labels attached to this ticket; updates replace the complete list.
12743
+ */
12744
+ labels: Array<string>;
12745
+ /**
12746
+ * Assigned subjects, at most ten.
12747
+ */
12748
+ assignees: Array<string>;
12749
+ /**
12750
+ * Repository-local number returned by create or list; distinct from the object's id.
12751
+ */
12752
+ milestone: number | null;
12753
+ /**
12754
+ * Whether non-admin conversation writes are blocked.
12755
+ */
12756
+ locked: boolean;
12757
+ /**
12758
+ * Reason recorded when the conversation was locked.
12759
+ */
12760
+ active_lock_reason: string | null;
12761
+ /**
12762
+ * Opaque human:<user_id> or agent:<individual_id> subject. Both kinds have equal domain permissions.
12763
+ */
12764
+ author: string;
12765
+ /**
12766
+ * Opaque human:<user_id> or agent:<individual_id> subject. Both kinds have equal domain permissions.
12767
+ */
12768
+ closed_by: string | null;
12769
+ /**
12770
+ * Subjects resolved from mentions in the body.
12771
+ */
12772
+ mentions: Array<string>;
12773
+ /**
12774
+ * File identifiers referenced in the body.
12775
+ */
12776
+ attachments: Array<string>;
12777
+ /**
12778
+ * Repository-local number returned by create or list; distinct from the object's id.
12779
+ */
12780
+ parent: number | null;
12781
+ /**
12782
+ * Direct child progress.
12783
+ */
12784
+ sub_tickets_summary: {
12785
+ /**
12786
+ * Direct child count.
12787
+ */
12788
+ total: number;
12789
+ /**
12790
+ * Closed child count.
12791
+ */
12792
+ completed: number;
12793
+ /**
12794
+ * Percentage of direct children that are closed.
12795
+ */
12796
+ percent_completed: number;
12797
+ };
12798
+ /**
12799
+ * Direct dependency counts.
12800
+ */
12801
+ ticket_dependencies_summary: {
12802
+ /**
12803
+ * Open direct blockers.
12804
+ */
12805
+ blocked_by: number;
12806
+ /**
12807
+ * Open directly blocked tickets.
12808
+ */
12809
+ blocking: number;
12810
+ /**
12811
+ * All direct blockers.
12812
+ */
12813
+ total_blocked_by: number;
12814
+ /**
12815
+ * All directly blocked tickets.
12816
+ */
12817
+ total_blocking: number;
12818
+ };
12819
+ /**
12820
+ * Number of comments.
12821
+ */
12822
+ comments: number;
12823
+ reactions: TicketReactionSummary;
12824
+ /**
12825
+ * Creation timestamp.
12826
+ */
12827
+ create_time: string;
12828
+ /**
12829
+ * Most recent update timestamp.
12830
+ */
12831
+ update_time: string;
12832
+ /**
12833
+ * Closing timestamp; null while open.
12834
+ */
12835
+ close_time: string | null;
12836
+ };
12837
+ /**
12838
+ * A comment on one ticket.
12839
+ */
12840
+ export type TicketComment = {
12841
+ /**
12842
+ * Opaque identifier returned by this resource's create or list operation.
12843
+ */
12844
+ id: string;
12845
+ /**
12846
+ * Opaque identifier returned by this resource's create or list operation.
12847
+ */
12848
+ repository: string;
12849
+ /**
12850
+ * Repository-local number returned by create or list; distinct from the object's id.
12851
+ */
12852
+ ticket_number: number;
12853
+ /**
12854
+ * Opaque human:<user_id> or agent:<individual_id> subject. Both kinds have equal domain permissions.
12855
+ */
12856
+ author: string;
12857
+ /**
12858
+ * Markdown text, at most 65536 characters.
12859
+ */
12860
+ body: string;
12861
+ /**
12862
+ * Resolved body mentions.
12863
+ */
12864
+ mentions: Array<string>;
12865
+ /**
12866
+ * Files referenced by the body.
12867
+ */
12868
+ attachments: Array<string>;
12869
+ /**
12870
+ * Opaque identifier returned by this resource's create or list operation.
12871
+ */
12872
+ in_reply_to: string | null;
12873
+ /**
12874
+ * Opaque identifier returned by this resource's create or list operation.
12875
+ */
12876
+ cause_id: string | null;
12877
+ /**
12878
+ * Whether the comment is pinned.
12879
+ */
12880
+ pinned: boolean;
12881
+ reactions: TicketReactionSummary;
12882
+ /**
12883
+ * Creation timestamp.
12884
+ */
12885
+ create_time: string;
12886
+ /**
12887
+ * Last edit timestamp.
12888
+ */
12889
+ update_time: string;
12890
+ };
12891
+ /**
12892
+ * A repository label.
12893
+ */
12894
+ export type TicketLabel = {
12895
+ /**
12896
+ * Opaque identifier returned by this resource's create or list operation.
12897
+ */
12898
+ id: string;
12899
+ /**
12900
+ * Case-insensitive label name within the repository.
12901
+ */
12902
+ name: string;
12903
+ /**
12904
+ * Six hexadecimal digits without #.
12905
+ */
12906
+ color: string;
12907
+ /**
12908
+ * Label's purpose.
12909
+ */
12910
+ description: string;
12911
+ /**
12912
+ * Whether this is a default label.
12913
+ */
12914
+ is_default: boolean;
12915
+ };
12916
+ /**
12917
+ * Built-in type.
12918
+ */
12919
+ export type TicketType = {
12920
+ /**
12921
+ * Built-in ticket type name.
12922
+ */
12923
+ name: string;
12924
+ /**
12925
+ * Type's purpose.
12926
+ */
12927
+ description: string;
12928
+ /**
12929
+ * Six-digit display color.
12930
+ */
12931
+ color: string;
12932
+ };
12933
+ /**
12934
+ * Repository milestone, created and managed by organization admins.
12935
+ */
12936
+ export type TicketMilestone = {
12937
+ /**
12938
+ * Opaque identifier returned by this resource's create or list operation.
12939
+ */
12940
+ id: string;
12941
+ /**
12942
+ * Opaque identifier returned by this resource's create or list operation.
12943
+ */
12944
+ repository: string;
12945
+ /**
12946
+ * Repository-local number returned by create or list; distinct from the object's id.
12947
+ */
12948
+ number: number;
12949
+ /**
12950
+ * Short title, at most 256 Unicode characters.
12951
+ */
12952
+ title: string;
12953
+ /**
12954
+ * Milestone description.
12955
+ */
12956
+ description: string;
12957
+ /**
12958
+ * open means actionable; closed means resolved or declined.
12959
+ */
12960
+ state: 'open' | 'closed';
12961
+ /**
12962
+ * Due date, or null if unset.
12963
+ */
12964
+ due_on: string | null;
12965
+ /**
12966
+ * Open tickets assigned to this milestone.
12967
+ */
12968
+ open_tickets: number;
12969
+ /**
12970
+ * Closed tickets assigned to this milestone.
12971
+ */
12972
+ closed_tickets: number;
12973
+ /**
12974
+ * Opaque human:<user_id> or agent:<individual_id> subject. Both kinds have equal domain permissions.
12975
+ */
12976
+ creator: string;
12977
+ /**
12978
+ * Creation timestamp.
12979
+ */
12980
+ create_time: string;
12981
+ /**
12982
+ * Last edit timestamp.
12983
+ */
12984
+ update_time: string;
12985
+ /**
12986
+ * Closing timestamp, or null while open.
12987
+ */
12988
+ close_time: string | null;
12989
+ };
12990
+ /**
12991
+ * Append-only event; event-specific payload fields depend on event kind.
12992
+ */
12993
+ export type TicketEvent = {
12994
+ /**
12995
+ * Opaque identifier returned by this resource's create or list operation.
12996
+ */
12997
+ id: string;
12998
+ /**
12999
+ * Opaque identifier returned by this resource's create or list operation.
13000
+ */
13001
+ repository?: string;
13002
+ /**
13003
+ * Repository-local number returned by create or list; distinct from the object's id.
13004
+ */
13005
+ ticket_number: number;
13006
+ /**
13007
+ * Ascending per-ticket event sequence.
13008
+ */
13009
+ seq: number;
13010
+ /**
13011
+ * Timeline event kind in native ticket vocabulary.
13012
+ */
13013
+ event: string;
13014
+ /**
13015
+ * Opaque human:<user_id> or agent:<individual_id> subject. Both kinds have equal domain permissions.
13016
+ */
13017
+ actor: string;
13018
+ /**
13019
+ * Opaque identifier returned by this resource's create or list operation.
13020
+ */
13021
+ cause_id?: string | null;
13022
+ /**
13023
+ * When the event occurred.
13024
+ */
13025
+ create_time: string;
13026
+ /**
13027
+ * Repository-local number returned by create or list; distinct from the object's id.
13028
+ */
13029
+ related_ticket?: number;
13030
+ };
13031
+ /**
13032
+ * A subject's reaction.
13033
+ */
13034
+ export type TicketReaction = {
13035
+ /**
13036
+ * Reaction to add or remove: +1 approves, -1 disapproves, laugh, confused, heart, hooray, eyes, or rocket.
13037
+ */
13038
+ content: '+1' | '-1' | 'laugh' | 'confused' | 'heart' | 'hooray' | 'eyes' | 'rocket';
13039
+ /**
13040
+ * Opaque human:<user_id> or agent:<individual_id> subject. Both kinds have equal domain permissions.
13041
+ */
13042
+ subject: string;
13043
+ /**
13044
+ * When this subject reacted.
13045
+ */
13046
+ create_time: string;
13047
+ };
13048
+ /**
13049
+ * Counts by reaction content.
13050
+ */
13051
+ export type TicketReactionSummary = {
13052
+ /**
13053
+ * Total reactions on this target.
13054
+ */
13055
+ total_count: number;
13056
+ /**
13057
+ * Number of +1 reactions.
13058
+ */
13059
+ '+1': number;
13060
+ /**
13061
+ * Number of -1 reactions.
13062
+ */
13063
+ '-1': number;
13064
+ /**
13065
+ * Number of laugh reactions.
13066
+ */
13067
+ laugh: number;
13068
+ /**
13069
+ * Number of confused reactions.
13070
+ */
13071
+ confused: number;
13072
+ /**
13073
+ * Number of heart reactions.
13074
+ */
13075
+ heart: number;
13076
+ /**
13077
+ * Number of hooray reactions.
13078
+ */
13079
+ hooray: number;
13080
+ /**
13081
+ * Number of eyes reactions.
13082
+ */
13083
+ eyes: number;
13084
+ /**
13085
+ * Number of rocket reactions.
13086
+ */
13087
+ rocket: number;
13088
+ };
13089
+ /**
13090
+ * Activity within the service's 90-day hot window.
13091
+ */
13092
+ export type TicketActivity = {
13093
+ /**
13094
+ * Opaque identifier returned by this resource's create or list operation.
13095
+ */
13096
+ id: string;
13097
+ /**
13098
+ * When this write occurred.
13099
+ */
13100
+ occurred_at: string;
13101
+ /**
13102
+ * Opaque identifier returned by this resource's create or list operation.
13103
+ */
13104
+ repository: string;
13105
+ /**
13106
+ * Repository-local number returned by create or list; distinct from the object's id.
13107
+ */
13108
+ ticket_number: number;
13109
+ /**
13110
+ * Title associated with this activity.
13111
+ */
13112
+ ticket_title: string;
13113
+ /**
13114
+ * Opaque human:<user_id> or agent:<individual_id> subject. Both kinds have equal domain permissions.
13115
+ */
13116
+ actor: string;
13117
+ /**
13118
+ * human or agent, derived from actor.
13119
+ */
13120
+ actor_kind: string;
13121
+ /**
13122
+ * Write or timeline action.
13123
+ */
13124
+ action: string;
13125
+ /**
13126
+ * Previous value.
13127
+ */
13128
+ from: string | null;
13129
+ /**
13130
+ * New value.
13131
+ */
13132
+ to: string | null;
13133
+ /**
13134
+ * Additional action details.
13135
+ */
13136
+ detail: string | null;
13137
+ /**
13138
+ * Opaque identifier returned by this resource's create or list operation.
13139
+ */
13140
+ cause_id: string | null;
13141
+ /**
13142
+ * Opaque identifier returned by this resource's create or list operation.
13143
+ */
13144
+ connection_ref_id: string | null;
13145
+ /**
13146
+ * Entry surface that caused the write.
13147
+ */
13148
+ source: string;
13149
+ };
13150
+ /**
13151
+ * Organization-owned container.
13152
+ */
13153
+ export type TicketRepository = {
13154
+ /**
13155
+ * Opaque identifier returned by this resource's create or list operation.
13156
+ */
13157
+ id: string;
13158
+ /**
13159
+ * Owning organization id.
13160
+ */
13161
+ organization_id: string;
13162
+ /**
13163
+ * Repository path name; tickets is the default.
13164
+ */
13165
+ name: string;
13166
+ /**
13167
+ * Whether omission selects this repository.
13168
+ */
13169
+ is_default: boolean;
13170
+ /**
13171
+ * Open ticket count.
13172
+ */
13173
+ open_tickets: number;
13174
+ /**
13175
+ * Closed ticket count.
13176
+ */
13177
+ closed_tickets: number;
13178
+ /**
13179
+ * Creation timestamp.
13180
+ */
13181
+ create_time: string;
13182
+ /**
13183
+ * Last update timestamp.
13184
+ */
13185
+ update_time: string;
13186
+ };
12577
13187
  /**
12578
13188
  * File expiration policy
12579
13189
  *
@@ -17085,7 +17695,7 @@ export type SandboxSandboxNetworkConfig = {
17085
17695
  */
17086
17696
  maskRequestHost?: string;
17087
17697
  /**
17088
- * Unlike E2B, network.httpsPorts is rejected; omit it and serve plaintext HTTP inside the sandbox. The public port URL still uses HTTPS. The upstream field denotes HTTPS-speaking internal ports, permits self-signed certificates and excludes envd port 49983.
17698
+ * Unlike E2B, network.httpsPorts is rejected; omit it when creating a sandbox.
17089
17699
  */
17090
17700
  httpsPorts?: Array<number>;
17091
17701
  /**
@@ -27281,6 +27891,69 @@ export type UnarchiveAgentResponses = {
27281
27891
  * modified.
27282
27892
  */
27283
27893
  version: number;
27894
+ /**
27895
+ * Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
27896
+ */
27897
+ databases: Array<{
27898
+ /**
27899
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
27900
+ */
27901
+ id: string;
27902
+ /**
27903
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
27904
+ */
27905
+ access: 'read_only' | 'read_write';
27906
+ /**
27907
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
27908
+ */
27909
+ instructions?: string;
27910
+ /**
27911
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
27912
+ */
27913
+ enabled?: boolean;
27914
+ }>;
27915
+ /**
27916
+ * Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
27917
+ */
27918
+ vector_stores: Array<{
27919
+ /**
27920
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
27921
+ */
27922
+ id: string;
27923
+ /**
27924
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
27925
+ */
27926
+ access: 'read_only' | 'read_write';
27927
+ /**
27928
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
27929
+ */
27930
+ instructions?: string;
27931
+ /**
27932
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
27933
+ */
27934
+ enabled?: boolean;
27935
+ }>;
27936
+ /**
27937
+ * File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
27938
+ */
27939
+ files: Array<{
27940
+ /**
27941
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
27942
+ */
27943
+ id: string;
27944
+ /**
27945
+ * read_only permits reading the bound file; files do not accept read_write.
27946
+ */
27947
+ access: 'read_only';
27948
+ /**
27949
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
27950
+ */
27951
+ instructions?: string;
27952
+ /**
27953
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
27954
+ */
27955
+ enabled?: boolean;
27956
+ }>;
27284
27957
  /**
27285
27958
  * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
27286
27959
  */
@@ -32122,7 +32795,7 @@ export type ForkSessionResponses = {
32122
32795
  */
32123
32796
  created_at: string;
32124
32797
  /**
32125
- * Id of the environment recipe the session's sandbox was created from. Omitted when no recipe was selected, that is, for a light machine or the Computer chosen by computer_id.
32798
+ * Execution environment selected for this session. Service sessions return light when environment_id was omitted, or null when explicitly created without a machine; Computer sessions may omit this field.
32126
32799
  */
32127
32800
  environment_id?: string;
32128
32801
  /**
@@ -34358,7 +35031,7 @@ export type FileDeleteFileData = {
34358
35031
  body?: never;
34359
35032
  path: {
34360
35033
  /**
34361
- * ID of a tenant-owned live file, as returned by upload or list; starts with file_dp_.
35034
+ * ID of a tenant-owned live file, as returned by upload or list; starts with file-.
34362
35035
  */
34363
35036
  file_id: string;
34364
35037
  };
@@ -34387,7 +35060,7 @@ export type FileRetrieveFileData = {
34387
35060
  body?: never;
34388
35061
  path: {
34389
35062
  /**
34390
- * ID of a tenant-owned live file, as returned by upload or list; starts with file_dp_.
35063
+ * ID of a tenant-owned live file, as returned by upload or list; starts with file-.
34391
35064
  */
34392
35065
  file_id: string;
34393
35066
  };
@@ -34416,7 +35089,7 @@ export type FileRetrieveFileContentData = {
34416
35089
  body?: never;
34417
35090
  path: {
34418
35091
  /**
34419
- * ID of a tenant-owned live file, as returned by upload or list; starts with file_dp_.
35092
+ * ID of a tenant-owned live file, as returned by upload or list; starts with file-.
34420
35093
  */
34421
35094
  file_id: string;
34422
35095
  };
@@ -34449,6 +35122,139 @@ export type FileRetrieveFileContentResponses = {
34449
35122
  200: Blob | File;
34450
35123
  };
34451
35124
  export type FileRetrieveFileContentResponse = FileRetrieveFileContentResponses[keyof FileRetrieveFileContentResponses];
35125
+ export type FileCreateUploadData = {
35126
+ body: OwnFilePraxisCreateUpload;
35127
+ path?: never;
35128
+ query?: never;
35129
+ url: '/file/v1/uploads';
35130
+ };
35131
+ export type FileCreateUploadErrors = {
35132
+ /**
35133
+ * Invalid upload input or upload state; correct the request before retrying.
35134
+ */
35135
+ 400: unknown;
35136
+ /**
35137
+ * The upload is missing or belongs to another organization.
35138
+ */
35139
+ 404: unknown;
35140
+ /**
35141
+ * Completion inputs conflict with an earlier completion request.
35142
+ */
35143
+ 409: unknown;
35144
+ };
35145
+ export type FileCreateUploadResponses = {
35146
+ /**
35147
+ * The upload state and, after completion, the resulting file.
35148
+ */
35149
+ 200: OwnFilePraxisUpload;
35150
+ };
35151
+ export type FileCreateUploadResponse = FileCreateUploadResponses[keyof FileCreateUploadResponses];
35152
+ export type FileAddUploadPartData = {
35153
+ body: {
35154
+ /**
35155
+ * Raw bytes of this part, nonempty and at most 64000000 bytes.
35156
+ */
35157
+ data: Blob | File;
35158
+ };
35159
+ path: {
35160
+ /**
35161
+ * Upload identifier from create.
35162
+ */
35163
+ upload_id: string;
35164
+ };
35165
+ query?: {
35166
+ /**
35167
+ * Fixed part position, starting at 1.
35168
+ */
35169
+ part_number?: number;
35170
+ };
35171
+ url: '/file/v1/uploads/{upload_id}/parts';
35172
+ };
35173
+ export type FileAddUploadPartErrors = {
35174
+ /**
35175
+ * Invalid upload input or upload state; correct the request before retrying.
35176
+ */
35177
+ 400: unknown;
35178
+ /**
35179
+ * The upload is missing or belongs to another organization.
35180
+ */
35181
+ 404: unknown;
35182
+ /**
35183
+ * Completion inputs conflict with an earlier completion request.
35184
+ */
35185
+ 409: unknown;
35186
+ };
35187
+ export type FileAddUploadPartResponses = {
35188
+ /**
35189
+ * The part was accepted.
35190
+ */
35191
+ 200: OwnFilePraxisUploadPart;
35192
+ };
35193
+ export type FileAddUploadPartResponse = FileAddUploadPartResponses[keyof FileAddUploadPartResponses];
35194
+ export type FileCompleteUploadData = {
35195
+ body: OwnFilePraxisCompleteUpload;
35196
+ path: {
35197
+ /**
35198
+ * Upload identifier from create.
35199
+ */
35200
+ upload_id: string;
35201
+ };
35202
+ query?: never;
35203
+ url: '/file/v1/uploads/{upload_id}/complete';
35204
+ };
35205
+ export type FileCompleteUploadErrors = {
35206
+ /**
35207
+ * Invalid upload input or upload state; correct the request before retrying.
35208
+ */
35209
+ 400: unknown;
35210
+ /**
35211
+ * The upload is missing or belongs to another organization.
35212
+ */
35213
+ 404: unknown;
35214
+ /**
35215
+ * Completion inputs conflict with an earlier completion request.
35216
+ */
35217
+ 409: unknown;
35218
+ };
35219
+ export type FileCompleteUploadResponses = {
35220
+ /**
35221
+ * The upload state and, after completion, the resulting file.
35222
+ */
35223
+ 200: OwnFilePraxisUpload;
35224
+ };
35225
+ export type FileCompleteUploadResponse = FileCompleteUploadResponses[keyof FileCompleteUploadResponses];
35226
+ export type FileCancelUploadData = {
35227
+ body?: never;
35228
+ path: {
35229
+ /**
35230
+ * Upload identifier from create.
35231
+ */
35232
+ upload_id: string;
35233
+ };
35234
+ query?: never;
35235
+ url: '/file/v1/uploads/{upload_id}/cancel';
35236
+ };
35237
+ export type FileCancelUploadErrors = {
35238
+ /**
35239
+ * Invalid upload input or upload state; correct the request before retrying.
35240
+ */
35241
+ 400: unknown;
35242
+ /**
35243
+ * The upload is missing or belongs to another organization.
35244
+ */
35245
+ 404: unknown;
35246
+ /**
35247
+ * Completion inputs conflict with an earlier completion request.
35248
+ */
35249
+ 409: unknown;
35250
+ };
35251
+ export type FileCancelUploadResponses = {
35252
+ /**
35253
+ * The upload state and, after completion, the resulting file.
35254
+ */
35255
+ 200: OwnFilePraxisUpload;
35256
+ };
35257
+ export type FileCancelUploadResponse = FileCancelUploadResponses[keyof FileCancelUploadResponses];
34452
35258
  export type HealthCheckData = {
34453
35259
  body?: never;
34454
35260
  path?: never;
@@ -38672,7 +39478,7 @@ export type ListOrganizationFeedbackResponse = ListOrganizationFeedbackResponses
38672
39478
  export type CreateOrganizationFeedbackData = {
38673
39479
  body: {
38674
39480
  /**
38675
- * Problem description and original error text; at most 4096 Unicode code points.
39481
+ * Problem description, at most 4096 Unicode code points; may be empty only when contexts.praxis.error.message is a non-empty string.
38676
39482
  */
38677
39483
  message: string;
38678
39484
  /**
@@ -40703,7 +41509,7 @@ export type SessionsRetrieveResponses = {
40703
41509
  */
40704
41510
  created_at: string;
40705
41511
  /**
40706
- * Id of the environment recipe the session's sandbox was created from. Omitted when no recipe was selected, that is, for a light machine or the Computer chosen by computer_id.
41512
+ * Execution environment selected for this session. Service sessions return light when environment_id was omitted, or null when explicitly created without a machine; Computer sessions may omit this field.
40707
41513
  */
40708
41514
  environment_id?: string;
40709
41515
  metadata: AgentManaged173;
@@ -40981,7 +41787,7 @@ export type SessionsUpdateResponses = {
40981
41787
  */
40982
41788
  created_at: string;
40983
41789
  /**
40984
- * Id of the environment recipe the session's sandbox was created from. Omitted when no recipe was selected, that is, for a light machine or the Computer chosen by computer_id.
41790
+ * Execution environment selected for this session. Service sessions return light when environment_id was omitted, or null when explicitly created without a machine; Computer sessions may omit this field.
40985
41791
  */
40986
41792
  environment_id?: string;
40987
41793
  metadata: AgentManaged173;
@@ -41229,6 +42035,69 @@ export type AgentsListResponses = {
41229
42035
  * modified.
41230
42036
  */
41231
42037
  version: number;
42038
+ /**
42039
+ * Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
42040
+ */
42041
+ databases: Array<{
42042
+ /**
42043
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
42044
+ */
42045
+ id: string;
42046
+ /**
42047
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
42048
+ */
42049
+ access: 'read_only' | 'read_write';
42050
+ /**
42051
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
42052
+ */
42053
+ instructions?: string;
42054
+ /**
42055
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
42056
+ */
42057
+ enabled?: boolean;
42058
+ }>;
42059
+ /**
42060
+ * Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
42061
+ */
42062
+ vector_stores: Array<{
42063
+ /**
42064
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
42065
+ */
42066
+ id: string;
42067
+ /**
42068
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
42069
+ */
42070
+ access: 'read_only' | 'read_write';
42071
+ /**
42072
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
42073
+ */
42074
+ instructions?: string;
42075
+ /**
42076
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
42077
+ */
42078
+ enabled?: boolean;
42079
+ }>;
42080
+ /**
42081
+ * File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
42082
+ */
42083
+ files: Array<{
42084
+ /**
42085
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
42086
+ */
42087
+ id: string;
42088
+ /**
42089
+ * read_only permits reading the bound file; files do not accept read_write.
42090
+ */
42091
+ access: 'read_only';
42092
+ /**
42093
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
42094
+ */
42095
+ instructions?: string;
42096
+ /**
42097
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
42098
+ */
42099
+ enabled?: boolean;
42100
+ }>;
41232
42101
  /**
41233
42102
  * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
41234
42103
  */
@@ -41681,6 +42550,69 @@ export type AgentsCreateData = {
41681
42550
  * across all toolsets allowed.
41682
42551
  */
41683
42552
  tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
42553
+ /**
42554
+ * Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
42555
+ */
42556
+ databases?: Array<{
42557
+ /**
42558
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
42559
+ */
42560
+ id: string;
42561
+ /**
42562
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
42563
+ */
42564
+ access: 'read_only' | 'read_write';
42565
+ /**
42566
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
42567
+ */
42568
+ instructions?: string;
42569
+ /**
42570
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
42571
+ */
42572
+ enabled?: boolean;
42573
+ }>;
42574
+ /**
42575
+ * Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
42576
+ */
42577
+ vector_stores?: Array<{
42578
+ /**
42579
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
42580
+ */
42581
+ id: string;
42582
+ /**
42583
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
42584
+ */
42585
+ access: 'read_only' | 'read_write';
42586
+ /**
42587
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
42588
+ */
42589
+ instructions?: string;
42590
+ /**
42591
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
42592
+ */
42593
+ enabled?: boolean;
42594
+ }>;
42595
+ /**
42596
+ * File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
42597
+ */
42598
+ files?: Array<{
42599
+ /**
42600
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
42601
+ */
42602
+ id: string;
42603
+ /**
42604
+ * read_only permits reading the bound file; files do not accept read_write.
42605
+ */
42606
+ access: 'read_only';
42607
+ /**
42608
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
42609
+ */
42610
+ instructions?: string;
42611
+ /**
42612
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
42613
+ */
42614
+ enabled?: boolean;
42615
+ }>;
41684
42616
  /**
41685
42617
  * Immutable agent kind. personal requires computer_id; service cannot bind a computer. Omit on create to infer from computer_id. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
41686
42618
  */
@@ -42146,6 +43078,69 @@ export type AgentsCreateResponses = {
42146
43078
  * modified.
42147
43079
  */
42148
43080
  version: number;
43081
+ /**
43082
+ * Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
43083
+ */
43084
+ databases: Array<{
43085
+ /**
43086
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
43087
+ */
43088
+ id: string;
43089
+ /**
43090
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
43091
+ */
43092
+ access: 'read_only' | 'read_write';
43093
+ /**
43094
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
43095
+ */
43096
+ instructions?: string;
43097
+ /**
43098
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
43099
+ */
43100
+ enabled?: boolean;
43101
+ }>;
43102
+ /**
43103
+ * Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
43104
+ */
43105
+ vector_stores: Array<{
43106
+ /**
43107
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
43108
+ */
43109
+ id: string;
43110
+ /**
43111
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
43112
+ */
43113
+ access: 'read_only' | 'read_write';
43114
+ /**
43115
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
43116
+ */
43117
+ instructions?: string;
43118
+ /**
43119
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
43120
+ */
43121
+ enabled?: boolean;
43122
+ }>;
43123
+ /**
43124
+ * File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
43125
+ */
43126
+ files: Array<{
43127
+ /**
43128
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
43129
+ */
43130
+ id: string;
43131
+ /**
43132
+ * read_only permits reading the bound file; files do not accept read_write.
43133
+ */
43134
+ access: 'read_only';
43135
+ /**
43136
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
43137
+ */
43138
+ instructions?: string;
43139
+ /**
43140
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
43141
+ */
43142
+ enabled?: boolean;
43143
+ }>;
42149
43144
  /**
42150
43145
  * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
42151
43146
  */
@@ -42626,6 +43621,69 @@ export type AgentsRetrieveResponses = {
42626
43621
  * modified.
42627
43622
  */
42628
43623
  version: number;
43624
+ /**
43625
+ * Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
43626
+ */
43627
+ databases: Array<{
43628
+ /**
43629
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
43630
+ */
43631
+ id: string;
43632
+ /**
43633
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
43634
+ */
43635
+ access: 'read_only' | 'read_write';
43636
+ /**
43637
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
43638
+ */
43639
+ instructions?: string;
43640
+ /**
43641
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
43642
+ */
43643
+ enabled?: boolean;
43644
+ }>;
43645
+ /**
43646
+ * Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
43647
+ */
43648
+ vector_stores: Array<{
43649
+ /**
43650
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
43651
+ */
43652
+ id: string;
43653
+ /**
43654
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
43655
+ */
43656
+ access: 'read_only' | 'read_write';
43657
+ /**
43658
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
43659
+ */
43660
+ instructions?: string;
43661
+ /**
43662
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
43663
+ */
43664
+ enabled?: boolean;
43665
+ }>;
43666
+ /**
43667
+ * File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
43668
+ */
43669
+ files: Array<{
43670
+ /**
43671
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
43672
+ */
43673
+ id: string;
43674
+ /**
43675
+ * read_only permits reading the bound file; files do not accept read_write.
43676
+ */
43677
+ access: 'read_only';
43678
+ /**
43679
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
43680
+ */
43681
+ instructions?: string;
43682
+ /**
43683
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
43684
+ */
43685
+ enabled?: boolean;
43686
+ }>;
42629
43687
  /**
42630
43688
  * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
42631
43689
  */
@@ -43083,6 +44141,69 @@ export type AgentsUpdateData = {
43083
44141
  * current version; omit to apply the update unconditionally.
43084
44142
  */
43085
44143
  version?: number;
44144
+ /**
44145
+ * Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings.
44146
+ */
44147
+ databases?: Array<{
44148
+ /**
44149
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
44150
+ */
44151
+ id: string;
44152
+ /**
44153
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
44154
+ */
44155
+ access: 'read_only' | 'read_write';
44156
+ /**
44157
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
44158
+ */
44159
+ instructions?: string;
44160
+ /**
44161
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
44162
+ */
44163
+ enabled?: boolean;
44164
+ }> | null;
44165
+ /**
44166
+ * Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings.
44167
+ */
44168
+ vector_stores?: Array<{
44169
+ /**
44170
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
44171
+ */
44172
+ id: string;
44173
+ /**
44174
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
44175
+ */
44176
+ access: 'read_only' | 'read_write';
44177
+ /**
44178
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
44179
+ */
44180
+ instructions?: string;
44181
+ /**
44182
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
44183
+ */
44184
+ enabled?: boolean;
44185
+ }> | null;
44186
+ /**
44187
+ * Replace this resource allowlist; omission preserves it, and null or [] clears it. Additions apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Only service agents accept nonempty bindings.
44188
+ */
44189
+ files?: Array<{
44190
+ /**
44191
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
44192
+ */
44193
+ id: string;
44194
+ /**
44195
+ * read_only permits reading the bound file; files do not accept read_write.
44196
+ */
44197
+ access: 'read_only';
44198
+ /**
44199
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
44200
+ */
44201
+ instructions?: string;
44202
+ /**
44203
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
44204
+ */
44205
+ enabled?: boolean;
44206
+ }> | null;
43086
44207
  /**
43087
44208
  * Immutable agent kind. personal requires computer_id; service cannot bind a computer. Omit on create to infer from computer_id. On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error.
43088
44209
  */
@@ -43553,6 +44674,69 @@ export type AgentsUpdateResponses = {
43553
44674
  * modified.
43554
44675
  */
43555
44676
  version: number;
44677
+ /**
44678
+ * Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
44679
+ */
44680
+ databases: Array<{
44681
+ /**
44682
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
44683
+ */
44684
+ id: string;
44685
+ /**
44686
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
44687
+ */
44688
+ access: 'read_only' | 'read_write';
44689
+ /**
44690
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
44691
+ */
44692
+ instructions?: string;
44693
+ /**
44694
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
44695
+ */
44696
+ enabled?: boolean;
44697
+ }>;
44698
+ /**
44699
+ * Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
44700
+ */
44701
+ vector_stores: Array<{
44702
+ /**
44703
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
44704
+ */
44705
+ id: string;
44706
+ /**
44707
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
44708
+ */
44709
+ access: 'read_only' | 'read_write';
44710
+ /**
44711
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
44712
+ */
44713
+ instructions?: string;
44714
+ /**
44715
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
44716
+ */
44717
+ enabled?: boolean;
44718
+ }>;
44719
+ /**
44720
+ * File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
44721
+ */
44722
+ files: Array<{
44723
+ /**
44724
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
44725
+ */
44726
+ id: string;
44727
+ /**
44728
+ * read_only permits reading the bound file; files do not accept read_write.
44729
+ */
44730
+ access: 'read_only';
44731
+ /**
44732
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
44733
+ */
44734
+ instructions?: string;
44735
+ /**
44736
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
44737
+ */
44738
+ enabled?: boolean;
44739
+ }>;
43556
44740
  /**
43557
44741
  * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
43558
44742
  */
@@ -44027,6 +45211,69 @@ export type AgentsArchiveResponses = {
44027
45211
  * modified.
44028
45212
  */
44029
45213
  version: number;
45214
+ /**
45215
+ * Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
45216
+ */
45217
+ databases: Array<{
45218
+ /**
45219
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
45220
+ */
45221
+ id: string;
45222
+ /**
45223
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
45224
+ */
45225
+ access: 'read_only' | 'read_write';
45226
+ /**
45227
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
45228
+ */
45229
+ instructions?: string;
45230
+ /**
45231
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
45232
+ */
45233
+ enabled?: boolean;
45234
+ }>;
45235
+ /**
45236
+ * Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
45237
+ */
45238
+ vector_stores: Array<{
45239
+ /**
45240
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
45241
+ */
45242
+ id: string;
45243
+ /**
45244
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
45245
+ */
45246
+ access: 'read_only' | 'read_write';
45247
+ /**
45248
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
45249
+ */
45250
+ instructions?: string;
45251
+ /**
45252
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
45253
+ */
45254
+ enabled?: boolean;
45255
+ }>;
45256
+ /**
45257
+ * File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
45258
+ */
45259
+ files: Array<{
45260
+ /**
45261
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
45262
+ */
45263
+ id: string;
45264
+ /**
45265
+ * read_only permits reading the bound file; files do not accept read_write.
45266
+ */
45267
+ access: 'read_only';
45268
+ /**
45269
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
45270
+ */
45271
+ instructions?: string;
45272
+ /**
45273
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
45274
+ */
45275
+ enabled?: boolean;
45276
+ }>;
44030
45277
  /**
44031
45278
  * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
44032
45279
  */
@@ -44511,6 +45758,69 @@ export type AgentsVersionsListResponses = {
44511
45758
  * modified.
44512
45759
  */
44513
45760
  version: number;
45761
+ /**
45762
+ * Database allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
45763
+ */
45764
+ databases: Array<{
45765
+ /**
45766
+ * Resource id from database.databases.list or database.databases.create; use the returned id, not its name. Must start with db_ and be unique within this binding array.
45767
+ */
45768
+ id: string;
45769
+ /**
45770
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
45771
+ */
45772
+ access: 'read_only' | 'read_write';
45773
+ /**
45774
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
45775
+ */
45776
+ instructions?: string;
45777
+ /**
45778
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
45779
+ */
45780
+ enabled?: boolean;
45781
+ }>;
45782
+ /**
45783
+ * Knowledge vector store allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
45784
+ */
45785
+ vector_stores: Array<{
45786
+ /**
45787
+ * Resource id from knowledge.vectorStores.list or knowledge.vectorStores.create; use the returned id, not its name. Must start with vs_ and be unique within this binding array.
45788
+ */
45789
+ id: string;
45790
+ /**
45791
+ * read_only permits reads of the bound resource; read_write permits reads and writes.
45792
+ */
45793
+ access: 'read_only' | 'read_write';
45794
+ /**
45795
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
45796
+ */
45797
+ instructions?: string;
45798
+ /**
45799
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
45800
+ */
45801
+ enabled?: boolean;
45802
+ }>;
45803
+ /**
45804
+ * File allowlist for platform resources accessible through service-agent codemode. Only kind=service accepts nonempty bindings; personal agents return 400. At most 20 bindings per resource type, with no duplicate ids. Newly added bindings apply only to new sessions; disabling or removing a binding immediately revokes access in running sessions. Unbound resources return 404; writes to read_only resources are refused. Other platform APIs return 403, except public API discovery. Invalid bindings and unknown item fields return 400. Omit on create for no bindings.
45805
+ */
45806
+ files: Array<{
45807
+ /**
45808
+ * Resource id from file.files.list or file.files.create (upload); use the returned id, not its name. Must start with file_ and be unique within this binding array.
45809
+ */
45810
+ id: string;
45811
+ /**
45812
+ * read_only permits reading the bound file; files do not accept read_write.
45813
+ */
45814
+ access: 'read_only';
45815
+ /**
45816
+ * Optional guidance for using this resource, up to 4096 characters; does not expand access.
45817
+ */
45818
+ instructions?: string;
45819
+ /**
45820
+ * Whether this binding grants access. Defaults to true; false immediately disables it for running sessions.
45821
+ */
45822
+ enabled?: boolean;
45823
+ }>;
44514
45824
  /**
44515
45825
  * Immutable agent kind. personal uses a durable computer; service uses a clean environment per session. Historical agents infer kind from their computer binding.
44516
45826
  */
@@ -45062,7 +46372,7 @@ export type SessionsListResponses = {
45062
46372
  */
45063
46373
  created_at: string;
45064
46374
  /**
45065
- * Id of the environment recipe the session's sandbox was created from. Omitted when no recipe was selected, that is, for a light machine or the Computer chosen by computer_id.
46375
+ * Execution environment selected for this session. Service sessions return light when environment_id was omitted, or null when explicitly created without a machine; Computer sessions may omit this field.
45066
46376
  */
45067
46377
  environment_id?: string;
45068
46378
  metadata: AgentManaged173;
@@ -45196,10 +46506,9 @@ export type SessionsCreateData = {
45196
46506
  */
45197
46507
  agent: string | AgentManaged10 | AgentManaged167;
45198
46508
  /**
45199
- * ID of the `environment` defining the container configuration for
45200
- * this session.
46509
+ * Execution environment id from agent.environments.list or agent.environments.create. For a service agent, omission selects the built-in light environment and returns session.environment_id=light; explicit null allocates no machine and makes machine tools, including codemode and bash, unavailable. Personal agents use their selected Computer.
45201
46510
  */
45202
- environment_id?: string;
46511
+ environment_id?: string | null;
45203
46512
  /**
45204
46513
  * A hard spend ceiling. The session stops issuing new model requests
45205
46514
  * once the tracked list cost reaches `max_list_cost`.
@@ -45371,7 +46680,7 @@ export type SessionsCreateResponses = {
45371
46680
  */
45372
46681
  created_at: string;
45373
46682
  /**
45374
- * Id of the environment recipe the session's sandbox was created from. Omitted when no recipe was selected, that is, for a light machine or the Computer chosen by computer_id.
46683
+ * Execution environment selected for this session. Service sessions return light when environment_id was omitted, or null when explicitly created without a machine; Computer sessions may omit this field.
45375
46684
  */
45376
46685
  environment_id?: string;
45377
46686
  metadata: AgentManaged173;
@@ -45609,7 +46918,7 @@ export type SessionsArchiveResponses = {
45609
46918
  */
45610
46919
  created_at: string;
45611
46920
  /**
45612
- * Id of the environment recipe the session's sandbox was created from. Omitted when no recipe was selected, that is, for a light machine or the Computer chosen by computer_id.
46921
+ * Execution environment selected for this session. Service sessions return light when environment_id was omitted, or null when explicitly created without a machine; Computer sessions may omit this field.
45613
46922
  */
45614
46923
  environment_id?: string;
45615
46924
  metadata: AgentManaged173;
@@ -60344,3 +61653,2552 @@ export type VaultConnectDenyResponses = {
60344
61653
  200: string;
60345
61654
  };
60346
61655
  export type VaultConnectDenyResponse = VaultConnectDenyResponses[keyof VaultConnectDenyResponses];
61656
+ export type TicketGetTicketsData = {
61657
+ body?: never;
61658
+ path?: never;
61659
+ query?: {
61660
+ /**
61661
+ * Opaque repository id.
61662
+ */
61663
+ repository?: string;
61664
+ /**
61665
+ * Page size.
61666
+ */
61667
+ page_size?: number;
61668
+ /**
61669
+ * Opaque cursor.
61670
+ */
61671
+ page_token?: string;
61672
+ /**
61673
+ * Filter expression.
61674
+ */
61675
+ filter?: string;
61676
+ };
61677
+ url: '/ticket/v1/tickets';
61678
+ };
61679
+ export type TicketGetTicketsErrors = {
61680
+ /**
61681
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
61682
+ */
61683
+ 400: unknown;
61684
+ /**
61685
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
61686
+ */
61687
+ 401: unknown;
61688
+ /**
61689
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
61690
+ */
61691
+ 403: unknown;
61692
+ /**
61693
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
61694
+ */
61695
+ 404: unknown;
61696
+ /**
61697
+ * Ticket is gone; refresh the repository's ticket list.
61698
+ */
61699
+ 410: unknown;
61700
+ /**
61701
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
61702
+ */
61703
+ 422: unknown;
61704
+ /**
61705
+ * Native rate limit; wait for retry-after before retrying.
61706
+ */
61707
+ 429: unknown;
61708
+ };
61709
+ export type TicketGetTicketsResponses = {
61710
+ /**
61711
+ * Cursor page.
61712
+ */
61713
+ 200: {
61714
+ /**
61715
+ * Selected tickets records.
61716
+ */
61717
+ tickets: Array<TicketRecord>;
61718
+ /**
61719
+ * Opaque cursor for the next page; empty when exhausted.
61720
+ */
61721
+ next_page_token: string;
61722
+ /**
61723
+ * Total matching tickets, independent of page size.
61724
+ */
61725
+ total_size?: number;
61726
+ };
61727
+ };
61728
+ export type TicketGetTicketsResponse = TicketGetTicketsResponses[keyof TicketGetTicketsResponses];
61729
+ export type TicketPostTicketsData = {
61730
+ /**
61731
+ * Fields accepted for this operation; omitted update fields retain their values.
61732
+ */
61733
+ body: {
61734
+ /**
61735
+ * Short title, at most 256 Unicode characters.
61736
+ */
61737
+ title: string;
61738
+ /**
61739
+ * Markdown text, at most 65536 characters.
61740
+ */
61741
+ body?: string;
61742
+ /**
61743
+ * Built-in type name; null clears an existing type.
61744
+ */
61745
+ type?: string | null;
61746
+ /**
61747
+ * Labels attached to this ticket; updates replace the complete list.
61748
+ */
61749
+ labels?: Array<string>;
61750
+ /**
61751
+ * Complete assignee list, at most ten.
61752
+ */
61753
+ assignees?: Array<string>;
61754
+ /**
61755
+ * Repository-local number returned by create or list; distinct from the object's id.
61756
+ */
61757
+ milestone?: number | null;
61758
+ /**
61759
+ * Repository-local number returned by create or list; distinct from the object's id.
61760
+ */
61761
+ parent?: number;
61762
+ };
61763
+ path?: never;
61764
+ query?: {
61765
+ /**
61766
+ * Opaque repository id.
61767
+ */
61768
+ repository?: string;
61769
+ };
61770
+ url: '/ticket/v1/tickets';
61771
+ };
61772
+ export type TicketPostTicketsErrors = {
61773
+ /**
61774
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
61775
+ */
61776
+ 400: unknown;
61777
+ /**
61778
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
61779
+ */
61780
+ 401: unknown;
61781
+ /**
61782
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
61783
+ */
61784
+ 403: unknown;
61785
+ /**
61786
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
61787
+ */
61788
+ 404: unknown;
61789
+ /**
61790
+ * Ticket is gone; refresh the repository's ticket list.
61791
+ */
61792
+ 410: unknown;
61793
+ /**
61794
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
61795
+ */
61796
+ 422: unknown;
61797
+ /**
61798
+ * Native rate limit; wait for retry-after before retrying.
61799
+ */
61800
+ 429: unknown;
61801
+ };
61802
+ export type TicketPostTicketsResponses = {
61803
+ /**
61804
+ * The operation succeeded; the body contains the requested resource or page.
61805
+ */
61806
+ 201: TicketRecord;
61807
+ };
61808
+ export type TicketPostTicketsResponse = TicketPostTicketsResponses[keyof TicketPostTicketsResponses];
61809
+ export type TicketGetTicketsNumberData = {
61810
+ body?: never;
61811
+ path: {
61812
+ /**
61813
+ * Repository-local number returned by create or list; distinct from the object's id.
61814
+ */
61815
+ number: number;
61816
+ };
61817
+ query?: {
61818
+ /**
61819
+ * Opaque repository id.
61820
+ */
61821
+ repository?: string;
61822
+ };
61823
+ url: '/ticket/v1/tickets/{number}';
61824
+ };
61825
+ export type TicketGetTicketsNumberErrors = {
61826
+ /**
61827
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
61828
+ */
61829
+ 400: unknown;
61830
+ /**
61831
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
61832
+ */
61833
+ 401: unknown;
61834
+ /**
61835
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
61836
+ */
61837
+ 403: unknown;
61838
+ /**
61839
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
61840
+ */
61841
+ 404: unknown;
61842
+ /**
61843
+ * Ticket is gone; refresh the repository's ticket list.
61844
+ */
61845
+ 410: unknown;
61846
+ /**
61847
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
61848
+ */
61849
+ 422: unknown;
61850
+ /**
61851
+ * Native rate limit; wait for retry-after before retrying.
61852
+ */
61853
+ 429: unknown;
61854
+ };
61855
+ export type TicketGetTicketsNumberResponses = {
61856
+ /**
61857
+ * The operation succeeded; the body contains the requested resource or page.
61858
+ */
61859
+ 200: TicketRecord;
61860
+ };
61861
+ export type TicketGetTicketsNumberResponse = TicketGetTicketsNumberResponses[keyof TicketGetTicketsNumberResponses];
61862
+ export type TicketPatchTicketsNumberData = {
61863
+ /**
61864
+ * Fields accepted for this operation; omitted update fields retain their values.
61865
+ */
61866
+ body: {
61867
+ /**
61868
+ * Short title, at most 256 Unicode characters.
61869
+ */
61870
+ title?: string;
61871
+ /**
61872
+ * Markdown text, at most 65536 characters.
61873
+ */
61874
+ body?: string;
61875
+ /**
61876
+ * Built-in type name; null clears an existing type.
61877
+ */
61878
+ type?: string | null;
61879
+ /**
61880
+ * Labels attached to this ticket; updates replace the complete list.
61881
+ */
61882
+ labels?: Array<string>;
61883
+ /**
61884
+ * Complete assignee list, at most ten.
61885
+ */
61886
+ assignees?: Array<string>;
61887
+ /**
61888
+ * Repository-local number returned by create or list; distinct from the object's id.
61889
+ */
61890
+ milestone?: number | null;
61891
+ /**
61892
+ * open means actionable; closed means resolved or declined.
61893
+ */
61894
+ state?: 'open' | 'closed';
61895
+ /**
61896
+ * Reason for closing: completed resolves, not_planned declines, duplicate marks a duplicate.
61897
+ */
61898
+ state_reason?: 'completed' | 'not_planned' | 'duplicate';
61899
+ /**
61900
+ * Repository-local number returned by create or list; distinct from the object's id.
61901
+ */
61902
+ duplicate_of?: number;
61903
+ };
61904
+ path: {
61905
+ /**
61906
+ * Repository-local number returned by create or list; distinct from the object's id.
61907
+ */
61908
+ number: number;
61909
+ };
61910
+ query?: {
61911
+ /**
61912
+ * Opaque repository id.
61913
+ */
61914
+ repository?: string;
61915
+ };
61916
+ url: '/ticket/v1/tickets/{number}';
61917
+ };
61918
+ export type TicketPatchTicketsNumberErrors = {
61919
+ /**
61920
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
61921
+ */
61922
+ 400: unknown;
61923
+ /**
61924
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
61925
+ */
61926
+ 401: unknown;
61927
+ /**
61928
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
61929
+ */
61930
+ 403: unknown;
61931
+ /**
61932
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
61933
+ */
61934
+ 404: unknown;
61935
+ /**
61936
+ * Ticket is gone; refresh the repository's ticket list.
61937
+ */
61938
+ 410: unknown;
61939
+ /**
61940
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
61941
+ */
61942
+ 422: unknown;
61943
+ /**
61944
+ * Native rate limit; wait for retry-after before retrying.
61945
+ */
61946
+ 429: unknown;
61947
+ };
61948
+ export type TicketPatchTicketsNumberResponses = {
61949
+ /**
61950
+ * The operation succeeded; the body contains the requested resource or page.
61951
+ */
61952
+ 200: TicketRecord;
61953
+ };
61954
+ export type TicketPatchTicketsNumberResponse = TicketPatchTicketsNumberResponses[keyof TicketPatchTicketsNumberResponses];
61955
+ export type TicketDeleteTicketsNumberLockData = {
61956
+ body?: never;
61957
+ path: {
61958
+ /**
61959
+ * Repository-local number returned by create or list; distinct from the object's id.
61960
+ */
61961
+ number: number;
61962
+ };
61963
+ query?: {
61964
+ /**
61965
+ * Opaque repository id.
61966
+ */
61967
+ repository?: string;
61968
+ };
61969
+ url: '/ticket/v1/tickets/{number}/lock';
61970
+ };
61971
+ export type TicketDeleteTicketsNumberLockErrors = {
61972
+ /**
61973
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
61974
+ */
61975
+ 400: unknown;
61976
+ /**
61977
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
61978
+ */
61979
+ 401: unknown;
61980
+ /**
61981
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
61982
+ */
61983
+ 403: unknown;
61984
+ /**
61985
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
61986
+ */
61987
+ 404: unknown;
61988
+ /**
61989
+ * Ticket is gone; refresh the repository's ticket list.
61990
+ */
61991
+ 410: unknown;
61992
+ /**
61993
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
61994
+ */
61995
+ 422: unknown;
61996
+ /**
61997
+ * Native rate limit; wait for retry-after before retrying.
61998
+ */
61999
+ 429: unknown;
62000
+ };
62001
+ export type TicketDeleteTicketsNumberLockResponses = {
62002
+ /**
62003
+ * The operation succeeded; no response body.
62004
+ */
62005
+ 204: void;
62006
+ };
62007
+ export type TicketDeleteTicketsNumberLockResponse = TicketDeleteTicketsNumberLockResponses[keyof TicketDeleteTicketsNumberLockResponses];
62008
+ export type TicketPutTicketsNumberLockData = {
62009
+ /**
62010
+ * Fields accepted for this operation; omitted update fields retain their values.
62011
+ */
62012
+ body?: {
62013
+ /**
62014
+ * Reason for locking: off-topic, too heated, resolved, or spam.
62015
+ */
62016
+ lock_reason?: 'off-topic' | 'too heated' | 'resolved' | 'spam';
62017
+ };
62018
+ path: {
62019
+ /**
62020
+ * Repository-local number returned by create or list; distinct from the object's id.
62021
+ */
62022
+ number: number;
62023
+ };
62024
+ query?: {
62025
+ /**
62026
+ * Opaque repository id.
62027
+ */
62028
+ repository?: string;
62029
+ };
62030
+ url: '/ticket/v1/tickets/{number}/lock';
62031
+ };
62032
+ export type TicketPutTicketsNumberLockErrors = {
62033
+ /**
62034
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
62035
+ */
62036
+ 400: unknown;
62037
+ /**
62038
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
62039
+ */
62040
+ 401: unknown;
62041
+ /**
62042
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
62043
+ */
62044
+ 403: unknown;
62045
+ /**
62046
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
62047
+ */
62048
+ 404: unknown;
62049
+ /**
62050
+ * Ticket is gone; refresh the repository's ticket list.
62051
+ */
62052
+ 410: unknown;
62053
+ /**
62054
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
62055
+ */
62056
+ 422: unknown;
62057
+ /**
62058
+ * Native rate limit; wait for retry-after before retrying.
62059
+ */
62060
+ 429: unknown;
62061
+ };
62062
+ export type TicketPutTicketsNumberLockResponses = {
62063
+ /**
62064
+ * The operation succeeded; no response body.
62065
+ */
62066
+ 204: void;
62067
+ };
62068
+ export type TicketPutTicketsNumberLockResponse = TicketPutTicketsNumberLockResponses[keyof TicketPutTicketsNumberLockResponses];
62069
+ export type TicketGetTicketsNumberCommentsData = {
62070
+ body?: never;
62071
+ path: {
62072
+ /**
62073
+ * Repository-local number returned by create or list; distinct from the object's id.
62074
+ */
62075
+ number: number;
62076
+ };
62077
+ query?: {
62078
+ /**
62079
+ * Opaque repository id.
62080
+ */
62081
+ repository?: string;
62082
+ /**
62083
+ * Page size.
62084
+ */
62085
+ page_size?: number;
62086
+ /**
62087
+ * Opaque cursor.
62088
+ */
62089
+ page_token?: string;
62090
+ };
62091
+ url: '/ticket/v1/tickets/{number}/comments';
62092
+ };
62093
+ export type TicketGetTicketsNumberCommentsErrors = {
62094
+ /**
62095
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
62096
+ */
62097
+ 400: unknown;
62098
+ /**
62099
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
62100
+ */
62101
+ 401: unknown;
62102
+ /**
62103
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
62104
+ */
62105
+ 403: unknown;
62106
+ /**
62107
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
62108
+ */
62109
+ 404: unknown;
62110
+ /**
62111
+ * Ticket is gone; refresh the repository's ticket list.
62112
+ */
62113
+ 410: unknown;
62114
+ /**
62115
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
62116
+ */
62117
+ 422: unknown;
62118
+ /**
62119
+ * Native rate limit; wait for retry-after before retrying.
62120
+ */
62121
+ 429: unknown;
62122
+ };
62123
+ export type TicketGetTicketsNumberCommentsResponses = {
62124
+ /**
62125
+ * Cursor page.
62126
+ */
62127
+ 200: {
62128
+ /**
62129
+ * Selected comments records.
62130
+ */
62131
+ comments: Array<TicketComment>;
62132
+ /**
62133
+ * Opaque cursor for the next page; empty when exhausted.
62134
+ */
62135
+ next_page_token: string;
62136
+ };
62137
+ };
62138
+ export type TicketGetTicketsNumberCommentsResponse = TicketGetTicketsNumberCommentsResponses[keyof TicketGetTicketsNumberCommentsResponses];
62139
+ export type TicketPostTicketsNumberCommentsData = {
62140
+ /**
62141
+ * Fields accepted for this operation; omitted update fields retain their values.
62142
+ */
62143
+ body: {
62144
+ /**
62145
+ * Markdown text, at most 65536 characters.
62146
+ */
62147
+ body: string;
62148
+ /**
62149
+ * Opaque identifier returned by this resource's create or list operation.
62150
+ */
62151
+ in_reply_to?: string;
62152
+ };
62153
+ path: {
62154
+ /**
62155
+ * Repository-local number returned by create or list; distinct from the object's id.
62156
+ */
62157
+ number: number;
62158
+ };
62159
+ query?: {
62160
+ /**
62161
+ * Opaque repository id.
62162
+ */
62163
+ repository?: string;
62164
+ };
62165
+ url: '/ticket/v1/tickets/{number}/comments';
62166
+ };
62167
+ export type TicketPostTicketsNumberCommentsErrors = {
62168
+ /**
62169
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
62170
+ */
62171
+ 400: unknown;
62172
+ /**
62173
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
62174
+ */
62175
+ 401: unknown;
62176
+ /**
62177
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
62178
+ */
62179
+ 403: unknown;
62180
+ /**
62181
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
62182
+ */
62183
+ 404: unknown;
62184
+ /**
62185
+ * Ticket is gone; refresh the repository's ticket list.
62186
+ */
62187
+ 410: unknown;
62188
+ /**
62189
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
62190
+ */
62191
+ 422: unknown;
62192
+ /**
62193
+ * Native rate limit; wait for retry-after before retrying.
62194
+ */
62195
+ 429: unknown;
62196
+ };
62197
+ export type TicketPostTicketsNumberCommentsResponses = {
62198
+ /**
62199
+ * The operation succeeded; the body contains the requested resource or page.
62200
+ */
62201
+ 201: TicketComment;
62202
+ };
62203
+ export type TicketPostTicketsNumberCommentsResponse = TicketPostTicketsNumberCommentsResponses[keyof TicketPostTicketsNumberCommentsResponses];
62204
+ export type TicketDeleteCommentsIdData = {
62205
+ body?: never;
62206
+ path: {
62207
+ /**
62208
+ * Resource path value.
62209
+ */
62210
+ id: string;
62211
+ };
62212
+ query?: {
62213
+ /**
62214
+ * Opaque repository id.
62215
+ */
62216
+ repository?: string;
62217
+ };
62218
+ url: '/ticket/v1/comments/{id}';
62219
+ };
62220
+ export type TicketDeleteCommentsIdErrors = {
62221
+ /**
62222
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
62223
+ */
62224
+ 400: unknown;
62225
+ /**
62226
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
62227
+ */
62228
+ 401: unknown;
62229
+ /**
62230
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
62231
+ */
62232
+ 403: unknown;
62233
+ /**
62234
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
62235
+ */
62236
+ 404: unknown;
62237
+ /**
62238
+ * Ticket is gone; refresh the repository's ticket list.
62239
+ */
62240
+ 410: unknown;
62241
+ /**
62242
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
62243
+ */
62244
+ 422: unknown;
62245
+ /**
62246
+ * Native rate limit; wait for retry-after before retrying.
62247
+ */
62248
+ 429: unknown;
62249
+ };
62250
+ export type TicketDeleteCommentsIdResponses = {
62251
+ /**
62252
+ * The operation succeeded; no response body.
62253
+ */
62254
+ 204: void;
62255
+ };
62256
+ export type TicketDeleteCommentsIdResponse = TicketDeleteCommentsIdResponses[keyof TicketDeleteCommentsIdResponses];
62257
+ export type TicketGetCommentsIdData = {
62258
+ body?: never;
62259
+ path: {
62260
+ /**
62261
+ * Resource path value.
62262
+ */
62263
+ id: string;
62264
+ };
62265
+ query?: {
62266
+ /**
62267
+ * Opaque repository id.
62268
+ */
62269
+ repository?: string;
62270
+ };
62271
+ url: '/ticket/v1/comments/{id}';
62272
+ };
62273
+ export type TicketGetCommentsIdErrors = {
62274
+ /**
62275
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
62276
+ */
62277
+ 400: unknown;
62278
+ /**
62279
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
62280
+ */
62281
+ 401: unknown;
62282
+ /**
62283
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
62284
+ */
62285
+ 403: unknown;
62286
+ /**
62287
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
62288
+ */
62289
+ 404: unknown;
62290
+ /**
62291
+ * Ticket is gone; refresh the repository's ticket list.
62292
+ */
62293
+ 410: unknown;
62294
+ /**
62295
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
62296
+ */
62297
+ 422: unknown;
62298
+ /**
62299
+ * Native rate limit; wait for retry-after before retrying.
62300
+ */
62301
+ 429: unknown;
62302
+ };
62303
+ export type TicketGetCommentsIdResponses = {
62304
+ /**
62305
+ * The operation succeeded; the body contains the requested resource or page.
62306
+ */
62307
+ 200: TicketComment;
62308
+ };
62309
+ export type TicketGetCommentsIdResponse = TicketGetCommentsIdResponses[keyof TicketGetCommentsIdResponses];
62310
+ export type TicketPatchCommentsIdData = {
62311
+ /**
62312
+ * Fields accepted for this operation; omitted update fields retain their values.
62313
+ */
62314
+ body: {
62315
+ /**
62316
+ * Markdown text, at most 65536 characters.
62317
+ */
62318
+ body: string;
62319
+ /**
62320
+ * Opaque identifier returned by this resource's create or list operation.
62321
+ */
62322
+ in_reply_to?: string;
62323
+ };
62324
+ path: {
62325
+ /**
62326
+ * Resource path value.
62327
+ */
62328
+ id: string;
62329
+ };
62330
+ query?: {
62331
+ /**
62332
+ * Opaque repository id.
62333
+ */
62334
+ repository?: string;
62335
+ };
62336
+ url: '/ticket/v1/comments/{id}';
62337
+ };
62338
+ export type TicketPatchCommentsIdErrors = {
62339
+ /**
62340
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
62341
+ */
62342
+ 400: unknown;
62343
+ /**
62344
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
62345
+ */
62346
+ 401: unknown;
62347
+ /**
62348
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
62349
+ */
62350
+ 403: unknown;
62351
+ /**
62352
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
62353
+ */
62354
+ 404: unknown;
62355
+ /**
62356
+ * Ticket is gone; refresh the repository's ticket list.
62357
+ */
62358
+ 410: unknown;
62359
+ /**
62360
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
62361
+ */
62362
+ 422: unknown;
62363
+ /**
62364
+ * Native rate limit; wait for retry-after before retrying.
62365
+ */
62366
+ 429: unknown;
62367
+ };
62368
+ export type TicketPatchCommentsIdResponses = {
62369
+ /**
62370
+ * The operation succeeded; the body contains the requested resource or page.
62371
+ */
62372
+ 200: TicketComment;
62373
+ };
62374
+ export type TicketPatchCommentsIdResponse = TicketPatchCommentsIdResponses[keyof TicketPatchCommentsIdResponses];
62375
+ export type TicketGetLabelsData = {
62376
+ body?: never;
62377
+ path?: never;
62378
+ query?: {
62379
+ /**
62380
+ * Opaque repository id.
62381
+ */
62382
+ repository?: string;
62383
+ /**
62384
+ * Page size.
62385
+ */
62386
+ page_size?: number;
62387
+ /**
62388
+ * Opaque cursor.
62389
+ */
62390
+ page_token?: string;
62391
+ };
62392
+ url: '/ticket/v1/labels';
62393
+ };
62394
+ export type TicketGetLabelsErrors = {
62395
+ /**
62396
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
62397
+ */
62398
+ 400: unknown;
62399
+ /**
62400
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
62401
+ */
62402
+ 401: unknown;
62403
+ /**
62404
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
62405
+ */
62406
+ 403: unknown;
62407
+ /**
62408
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
62409
+ */
62410
+ 404: unknown;
62411
+ /**
62412
+ * Ticket is gone; refresh the repository's ticket list.
62413
+ */
62414
+ 410: unknown;
62415
+ /**
62416
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
62417
+ */
62418
+ 422: unknown;
62419
+ /**
62420
+ * Native rate limit; wait for retry-after before retrying.
62421
+ */
62422
+ 429: unknown;
62423
+ };
62424
+ export type TicketGetLabelsResponses = {
62425
+ /**
62426
+ * Cursor page.
62427
+ */
62428
+ 200: {
62429
+ /**
62430
+ * Selected labels records.
62431
+ */
62432
+ labels: Array<TicketLabel>;
62433
+ /**
62434
+ * Opaque cursor for the next page; empty when exhausted.
62435
+ */
62436
+ next_page_token: string;
62437
+ };
62438
+ };
62439
+ export type TicketGetLabelsResponse = TicketGetLabelsResponses[keyof TicketGetLabelsResponses];
62440
+ export type TicketPostLabelsData = {
62441
+ /**
62442
+ * Fields accepted for this operation; omitted update fields retain their values.
62443
+ */
62444
+ body: {
62445
+ /**
62446
+ * Case-insensitive label name within the repository.
62447
+ */
62448
+ name: string;
62449
+ /**
62450
+ * Six hexadecimal digits without #.
62451
+ */
62452
+ color: string;
62453
+ /**
62454
+ * Label's purpose.
62455
+ */
62456
+ description?: string;
62457
+ };
62458
+ path?: never;
62459
+ query?: {
62460
+ /**
62461
+ * Opaque repository id.
62462
+ */
62463
+ repository?: string;
62464
+ };
62465
+ url: '/ticket/v1/labels';
62466
+ };
62467
+ export type TicketPostLabelsErrors = {
62468
+ /**
62469
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
62470
+ */
62471
+ 400: unknown;
62472
+ /**
62473
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
62474
+ */
62475
+ 401: unknown;
62476
+ /**
62477
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
62478
+ */
62479
+ 403: unknown;
62480
+ /**
62481
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
62482
+ */
62483
+ 404: unknown;
62484
+ /**
62485
+ * Ticket is gone; refresh the repository's ticket list.
62486
+ */
62487
+ 410: unknown;
62488
+ /**
62489
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
62490
+ */
62491
+ 422: unknown;
62492
+ /**
62493
+ * Native rate limit; wait for retry-after before retrying.
62494
+ */
62495
+ 429: unknown;
62496
+ };
62497
+ export type TicketPostLabelsResponses = {
62498
+ /**
62499
+ * The operation succeeded; the body contains the requested resource or page.
62500
+ */
62501
+ 201: TicketLabel;
62502
+ };
62503
+ export type TicketPostLabelsResponse = TicketPostLabelsResponses[keyof TicketPostLabelsResponses];
62504
+ export type TicketDeleteLabelsNameData = {
62505
+ body?: never;
62506
+ path: {
62507
+ /**
62508
+ * Resource path value.
62509
+ */
62510
+ name: string;
62511
+ };
62512
+ query?: {
62513
+ /**
62514
+ * Opaque repository id.
62515
+ */
62516
+ repository?: string;
62517
+ };
62518
+ url: '/ticket/v1/labels/{name}';
62519
+ };
62520
+ export type TicketDeleteLabelsNameErrors = {
62521
+ /**
62522
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
62523
+ */
62524
+ 400: unknown;
62525
+ /**
62526
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
62527
+ */
62528
+ 401: unknown;
62529
+ /**
62530
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
62531
+ */
62532
+ 403: unknown;
62533
+ /**
62534
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
62535
+ */
62536
+ 404: unknown;
62537
+ /**
62538
+ * Ticket is gone; refresh the repository's ticket list.
62539
+ */
62540
+ 410: unknown;
62541
+ /**
62542
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
62543
+ */
62544
+ 422: unknown;
62545
+ /**
62546
+ * Native rate limit; wait for retry-after before retrying.
62547
+ */
62548
+ 429: unknown;
62549
+ };
62550
+ export type TicketDeleteLabelsNameResponses = {
62551
+ /**
62552
+ * The operation succeeded; no response body.
62553
+ */
62554
+ 204: void;
62555
+ };
62556
+ export type TicketDeleteLabelsNameResponse = TicketDeleteLabelsNameResponses[keyof TicketDeleteLabelsNameResponses];
62557
+ export type TicketPatchLabelsNameData = {
62558
+ /**
62559
+ * Fields accepted for this operation; omitted update fields retain their values.
62560
+ */
62561
+ body: {
62562
+ /**
62563
+ * Six hexadecimal digits without #.
62564
+ */
62565
+ color?: string;
62566
+ /**
62567
+ * Label's purpose.
62568
+ */
62569
+ description?: string;
62570
+ /**
62571
+ * Case-insensitive label name within the repository.
62572
+ */
62573
+ new_name?: string;
62574
+ };
62575
+ path: {
62576
+ /**
62577
+ * Resource path value.
62578
+ */
62579
+ name: string;
62580
+ };
62581
+ query?: {
62582
+ /**
62583
+ * Opaque repository id.
62584
+ */
62585
+ repository?: string;
62586
+ };
62587
+ url: '/ticket/v1/labels/{name}';
62588
+ };
62589
+ export type TicketPatchLabelsNameErrors = {
62590
+ /**
62591
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
62592
+ */
62593
+ 400: unknown;
62594
+ /**
62595
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
62596
+ */
62597
+ 401: unknown;
62598
+ /**
62599
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
62600
+ */
62601
+ 403: unknown;
62602
+ /**
62603
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
62604
+ */
62605
+ 404: unknown;
62606
+ /**
62607
+ * Ticket is gone; refresh the repository's ticket list.
62608
+ */
62609
+ 410: unknown;
62610
+ /**
62611
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
62612
+ */
62613
+ 422: unknown;
62614
+ /**
62615
+ * Native rate limit; wait for retry-after before retrying.
62616
+ */
62617
+ 429: unknown;
62618
+ };
62619
+ export type TicketPatchLabelsNameResponses = {
62620
+ /**
62621
+ * The operation succeeded; the body contains the requested resource or page.
62622
+ */
62623
+ 200: TicketLabel;
62624
+ };
62625
+ export type TicketPatchLabelsNameResponse = TicketPatchLabelsNameResponses[keyof TicketPatchLabelsNameResponses];
62626
+ export type TicketGetTypesData = {
62627
+ body?: never;
62628
+ path?: never;
62629
+ query?: {
62630
+ /**
62631
+ * Opaque repository id.
62632
+ */
62633
+ repository?: string;
62634
+ };
62635
+ url: '/ticket/v1/types';
62636
+ };
62637
+ export type TicketGetTypesErrors = {
62638
+ /**
62639
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
62640
+ */
62641
+ 400: unknown;
62642
+ /**
62643
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
62644
+ */
62645
+ 401: unknown;
62646
+ /**
62647
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
62648
+ */
62649
+ 403: unknown;
62650
+ /**
62651
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
62652
+ */
62653
+ 404: unknown;
62654
+ /**
62655
+ * Ticket is gone; refresh the repository's ticket list.
62656
+ */
62657
+ 410: unknown;
62658
+ /**
62659
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
62660
+ */
62661
+ 422: unknown;
62662
+ /**
62663
+ * Native rate limit; wait for retry-after before retrying.
62664
+ */
62665
+ 429: unknown;
62666
+ };
62667
+ export type TicketGetTypesResponses = {
62668
+ /**
62669
+ * Type list.
62670
+ */
62671
+ 200: {
62672
+ /**
62673
+ * Available built-in types.
62674
+ */
62675
+ types: Array<TicketType>;
62676
+ };
62677
+ };
62678
+ export type TicketGetTypesResponse = TicketGetTypesResponses[keyof TicketGetTypesResponses];
62679
+ export type TicketGetMilestonesData = {
62680
+ body?: never;
62681
+ path?: never;
62682
+ query?: {
62683
+ /**
62684
+ * Opaque repository id.
62685
+ */
62686
+ repository?: string;
62687
+ /**
62688
+ * Page size.
62689
+ */
62690
+ page_size?: number;
62691
+ /**
62692
+ * Opaque cursor.
62693
+ */
62694
+ page_token?: string;
62695
+ };
62696
+ url: '/ticket/v1/milestones';
62697
+ };
62698
+ export type TicketGetMilestonesErrors = {
62699
+ /**
62700
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
62701
+ */
62702
+ 400: unknown;
62703
+ /**
62704
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
62705
+ */
62706
+ 401: unknown;
62707
+ /**
62708
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
62709
+ */
62710
+ 403: unknown;
62711
+ /**
62712
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
62713
+ */
62714
+ 404: unknown;
62715
+ /**
62716
+ * Ticket is gone; refresh the repository's ticket list.
62717
+ */
62718
+ 410: unknown;
62719
+ /**
62720
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
62721
+ */
62722
+ 422: unknown;
62723
+ /**
62724
+ * Native rate limit; wait for retry-after before retrying.
62725
+ */
62726
+ 429: unknown;
62727
+ };
62728
+ export type TicketGetMilestonesResponses = {
62729
+ /**
62730
+ * Cursor page.
62731
+ */
62732
+ 200: {
62733
+ /**
62734
+ * Selected milestones records.
62735
+ */
62736
+ milestones: Array<TicketMilestone>;
62737
+ /**
62738
+ * Opaque cursor for the next page; empty when exhausted.
62739
+ */
62740
+ next_page_token: string;
62741
+ };
62742
+ };
62743
+ export type TicketGetMilestonesResponse = TicketGetMilestonesResponses[keyof TicketGetMilestonesResponses];
62744
+ export type TicketPostMilestonesData = {
62745
+ /**
62746
+ * Fields accepted for this operation; omitted update fields retain their values.
62747
+ */
62748
+ body: {
62749
+ /**
62750
+ * Short title, at most 256 Unicode characters.
62751
+ */
62752
+ title: string;
62753
+ /**
62754
+ * Milestone description.
62755
+ */
62756
+ description?: string;
62757
+ /**
62758
+ * Due date, or null if unset.
62759
+ */
62760
+ due_on?: string | null;
62761
+ /**
62762
+ * open means actionable; closed means resolved or declined.
62763
+ */
62764
+ state?: 'open' | 'closed';
62765
+ };
62766
+ path?: never;
62767
+ query?: {
62768
+ /**
62769
+ * Opaque repository id.
62770
+ */
62771
+ repository?: string;
62772
+ };
62773
+ url: '/ticket/v1/milestones';
62774
+ };
62775
+ export type TicketPostMilestonesErrors = {
62776
+ /**
62777
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
62778
+ */
62779
+ 400: unknown;
62780
+ /**
62781
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
62782
+ */
62783
+ 401: unknown;
62784
+ /**
62785
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
62786
+ */
62787
+ 403: unknown;
62788
+ /**
62789
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
62790
+ */
62791
+ 404: unknown;
62792
+ /**
62793
+ * Ticket is gone; refresh the repository's ticket list.
62794
+ */
62795
+ 410: unknown;
62796
+ /**
62797
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
62798
+ */
62799
+ 422: unknown;
62800
+ /**
62801
+ * Native rate limit; wait for retry-after before retrying.
62802
+ */
62803
+ 429: unknown;
62804
+ };
62805
+ export type TicketPostMilestonesResponses = {
62806
+ /**
62807
+ * The operation succeeded; the body contains the requested resource or page.
62808
+ */
62809
+ 201: TicketMilestone;
62810
+ };
62811
+ export type TicketPostMilestonesResponse = TicketPostMilestonesResponses[keyof TicketPostMilestonesResponses];
62812
+ export type TicketDeleteMilestonesNumberData = {
62813
+ body?: never;
62814
+ path: {
62815
+ /**
62816
+ * Repository-local number returned by create or list; distinct from the object's id.
62817
+ */
62818
+ number: number;
62819
+ };
62820
+ query?: {
62821
+ /**
62822
+ * Opaque repository id.
62823
+ */
62824
+ repository?: string;
62825
+ };
62826
+ url: '/ticket/v1/milestones/{number}';
62827
+ };
62828
+ export type TicketDeleteMilestonesNumberErrors = {
62829
+ /**
62830
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
62831
+ */
62832
+ 400: unknown;
62833
+ /**
62834
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
62835
+ */
62836
+ 401: unknown;
62837
+ /**
62838
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
62839
+ */
62840
+ 403: unknown;
62841
+ /**
62842
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
62843
+ */
62844
+ 404: unknown;
62845
+ /**
62846
+ * Ticket is gone; refresh the repository's ticket list.
62847
+ */
62848
+ 410: unknown;
62849
+ /**
62850
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
62851
+ */
62852
+ 422: unknown;
62853
+ /**
62854
+ * Native rate limit; wait for retry-after before retrying.
62855
+ */
62856
+ 429: unknown;
62857
+ };
62858
+ export type TicketDeleteMilestonesNumberResponses = {
62859
+ /**
62860
+ * The operation succeeded; no response body.
62861
+ */
62862
+ 204: void;
62863
+ };
62864
+ export type TicketDeleteMilestonesNumberResponse = TicketDeleteMilestonesNumberResponses[keyof TicketDeleteMilestonesNumberResponses];
62865
+ export type TicketGetMilestonesNumberData = {
62866
+ body?: never;
62867
+ path: {
62868
+ /**
62869
+ * Repository-local number returned by create or list; distinct from the object's id.
62870
+ */
62871
+ number: number;
62872
+ };
62873
+ query?: {
62874
+ /**
62875
+ * Opaque repository id.
62876
+ */
62877
+ repository?: string;
62878
+ };
62879
+ url: '/ticket/v1/milestones/{number}';
62880
+ };
62881
+ export type TicketGetMilestonesNumberErrors = {
62882
+ /**
62883
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
62884
+ */
62885
+ 400: unknown;
62886
+ /**
62887
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
62888
+ */
62889
+ 401: unknown;
62890
+ /**
62891
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
62892
+ */
62893
+ 403: unknown;
62894
+ /**
62895
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
62896
+ */
62897
+ 404: unknown;
62898
+ /**
62899
+ * Ticket is gone; refresh the repository's ticket list.
62900
+ */
62901
+ 410: unknown;
62902
+ /**
62903
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
62904
+ */
62905
+ 422: unknown;
62906
+ /**
62907
+ * Native rate limit; wait for retry-after before retrying.
62908
+ */
62909
+ 429: unknown;
62910
+ };
62911
+ export type TicketGetMilestonesNumberResponses = {
62912
+ /**
62913
+ * The operation succeeded; the body contains the requested resource or page.
62914
+ */
62915
+ 200: TicketMilestone;
62916
+ };
62917
+ export type TicketGetMilestonesNumberResponse = TicketGetMilestonesNumberResponses[keyof TicketGetMilestonesNumberResponses];
62918
+ export type TicketPatchMilestonesNumberData = {
62919
+ /**
62920
+ * Fields accepted for this operation; omitted update fields retain their values.
62921
+ */
62922
+ body: {
62923
+ /**
62924
+ * Short title, at most 256 Unicode characters.
62925
+ */
62926
+ title?: string;
62927
+ /**
62928
+ * Milestone description.
62929
+ */
62930
+ description?: string;
62931
+ /**
62932
+ * Due date, or null if unset.
62933
+ */
62934
+ due_on?: string | null;
62935
+ /**
62936
+ * open means actionable; closed means resolved or declined.
62937
+ */
62938
+ state?: 'open' | 'closed';
62939
+ };
62940
+ path: {
62941
+ /**
62942
+ * Repository-local number returned by create or list; distinct from the object's id.
62943
+ */
62944
+ number: number;
62945
+ };
62946
+ query?: {
62947
+ /**
62948
+ * Opaque repository id.
62949
+ */
62950
+ repository?: string;
62951
+ };
62952
+ url: '/ticket/v1/milestones/{number}';
62953
+ };
62954
+ export type TicketPatchMilestonesNumberErrors = {
62955
+ /**
62956
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
62957
+ */
62958
+ 400: unknown;
62959
+ /**
62960
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
62961
+ */
62962
+ 401: unknown;
62963
+ /**
62964
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
62965
+ */
62966
+ 403: unknown;
62967
+ /**
62968
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
62969
+ */
62970
+ 404: unknown;
62971
+ /**
62972
+ * Ticket is gone; refresh the repository's ticket list.
62973
+ */
62974
+ 410: unknown;
62975
+ /**
62976
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
62977
+ */
62978
+ 422: unknown;
62979
+ /**
62980
+ * Native rate limit; wait for retry-after before retrying.
62981
+ */
62982
+ 429: unknown;
62983
+ };
62984
+ export type TicketPatchMilestonesNumberResponses = {
62985
+ /**
62986
+ * The operation succeeded; the body contains the requested resource or page.
62987
+ */
62988
+ 200: TicketMilestone;
62989
+ };
62990
+ export type TicketPatchMilestonesNumberResponse = TicketPatchMilestonesNumberResponses[keyof TicketPatchMilestonesNumberResponses];
62991
+ export type TicketGetTicketsNumberSubTicketsData = {
62992
+ body?: never;
62993
+ path: {
62994
+ /**
62995
+ * Repository-local number returned by create or list; distinct from the object's id.
62996
+ */
62997
+ number: number;
62998
+ };
62999
+ query?: {
63000
+ /**
63001
+ * Opaque repository id.
63002
+ */
63003
+ repository?: string;
63004
+ /**
63005
+ * Page size.
63006
+ */
63007
+ page_size?: number;
63008
+ /**
63009
+ * Opaque cursor.
63010
+ */
63011
+ page_token?: string;
63012
+ };
63013
+ url: '/ticket/v1/tickets/{number}/sub_tickets';
63014
+ };
63015
+ export type TicketGetTicketsNumberSubTicketsErrors = {
63016
+ /**
63017
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
63018
+ */
63019
+ 400: unknown;
63020
+ /**
63021
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
63022
+ */
63023
+ 401: unknown;
63024
+ /**
63025
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
63026
+ */
63027
+ 403: unknown;
63028
+ /**
63029
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
63030
+ */
63031
+ 404: unknown;
63032
+ /**
63033
+ * Ticket is gone; refresh the repository's ticket list.
63034
+ */
63035
+ 410: unknown;
63036
+ /**
63037
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
63038
+ */
63039
+ 422: unknown;
63040
+ /**
63041
+ * Native rate limit; wait for retry-after before retrying.
63042
+ */
63043
+ 429: unknown;
63044
+ };
63045
+ export type TicketGetTicketsNumberSubTicketsResponses = {
63046
+ /**
63047
+ * Cursor page.
63048
+ */
63049
+ 200: {
63050
+ /**
63051
+ * Selected tickets records.
63052
+ */
63053
+ tickets: Array<TicketRecord>;
63054
+ /**
63055
+ * Opaque cursor for the next page; empty when exhausted.
63056
+ */
63057
+ next_page_token: string;
63058
+ };
63059
+ };
63060
+ export type TicketGetTicketsNumberSubTicketsResponse = TicketGetTicketsNumberSubTicketsResponses[keyof TicketGetTicketsNumberSubTicketsResponses];
63061
+ export type TicketPostTicketsNumberSubTicketsData = {
63062
+ /**
63063
+ * Fields accepted for this operation; omitted update fields retain their values.
63064
+ */
63065
+ body: {
63066
+ /**
63067
+ * Repository-local number returned by create or list; distinct from the object's id.
63068
+ */
63069
+ child: number;
63070
+ /**
63071
+ * Allow replacing an existing parent.
63072
+ */
63073
+ replace_parent?: boolean;
63074
+ };
63075
+ path: {
63076
+ /**
63077
+ * Repository-local number returned by create or list; distinct from the object's id.
63078
+ */
63079
+ number: number;
63080
+ };
63081
+ query?: {
63082
+ /**
63083
+ * Opaque repository id.
63084
+ */
63085
+ repository?: string;
63086
+ };
63087
+ url: '/ticket/v1/tickets/{number}/sub_tickets';
63088
+ };
63089
+ export type TicketPostTicketsNumberSubTicketsErrors = {
63090
+ /**
63091
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
63092
+ */
63093
+ 400: unknown;
63094
+ /**
63095
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
63096
+ */
63097
+ 401: unknown;
63098
+ /**
63099
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
63100
+ */
63101
+ 403: unknown;
63102
+ /**
63103
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
63104
+ */
63105
+ 404: unknown;
63106
+ /**
63107
+ * Ticket is gone; refresh the repository's ticket list.
63108
+ */
63109
+ 410: unknown;
63110
+ /**
63111
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
63112
+ */
63113
+ 422: unknown;
63114
+ /**
63115
+ * Native rate limit; wait for retry-after before retrying.
63116
+ */
63117
+ 429: unknown;
63118
+ };
63119
+ export type TicketPostTicketsNumberSubTicketsResponses = {
63120
+ /**
63121
+ * The operation succeeded; the body contains the requested resource or page.
63122
+ */
63123
+ 200: TicketRecord;
63124
+ };
63125
+ export type TicketPostTicketsNumberSubTicketsResponse = TicketPostTicketsNumberSubTicketsResponses[keyof TicketPostTicketsNumberSubTicketsResponses];
63126
+ export type TicketDeleteTicketsNumberSubTicketsChildData = {
63127
+ body?: never;
63128
+ path: {
63129
+ /**
63130
+ * Repository-local number returned by create or list; distinct from the object's id.
63131
+ */
63132
+ number: number;
63133
+ /**
63134
+ * Repository-local number returned by create or list; distinct from the object's id.
63135
+ */
63136
+ child: number;
63137
+ };
63138
+ query?: {
63139
+ /**
63140
+ * Opaque repository id.
63141
+ */
63142
+ repository?: string;
63143
+ };
63144
+ url: '/ticket/v1/tickets/{number}/sub_tickets/{child}';
63145
+ };
63146
+ export type TicketDeleteTicketsNumberSubTicketsChildErrors = {
63147
+ /**
63148
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
63149
+ */
63150
+ 400: unknown;
63151
+ /**
63152
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
63153
+ */
63154
+ 401: unknown;
63155
+ /**
63156
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
63157
+ */
63158
+ 403: unknown;
63159
+ /**
63160
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
63161
+ */
63162
+ 404: unknown;
63163
+ /**
63164
+ * Ticket is gone; refresh the repository's ticket list.
63165
+ */
63166
+ 410: unknown;
63167
+ /**
63168
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
63169
+ */
63170
+ 422: unknown;
63171
+ /**
63172
+ * Native rate limit; wait for retry-after before retrying.
63173
+ */
63174
+ 429: unknown;
63175
+ };
63176
+ export type TicketDeleteTicketsNumberSubTicketsChildResponses = {
63177
+ /**
63178
+ * The operation succeeded; the body contains the requested resource or page.
63179
+ */
63180
+ 200: TicketRecord;
63181
+ };
63182
+ export type TicketDeleteTicketsNumberSubTicketsChildResponse = TicketDeleteTicketsNumberSubTicketsChildResponses[keyof TicketDeleteTicketsNumberSubTicketsChildResponses];
63183
+ export type TicketGetTicketsNumberDependenciesBlockedByData = {
63184
+ body?: never;
63185
+ path: {
63186
+ /**
63187
+ * Repository-local number returned by create or list; distinct from the object's id.
63188
+ */
63189
+ number: number;
63190
+ };
63191
+ query?: {
63192
+ /**
63193
+ * Opaque repository id.
63194
+ */
63195
+ repository?: string;
63196
+ /**
63197
+ * Page size.
63198
+ */
63199
+ page_size?: number;
63200
+ /**
63201
+ * Opaque cursor.
63202
+ */
63203
+ page_token?: string;
63204
+ };
63205
+ url: '/ticket/v1/tickets/{number}/dependencies/blocked_by';
63206
+ };
63207
+ export type TicketGetTicketsNumberDependenciesBlockedByErrors = {
63208
+ /**
63209
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
63210
+ */
63211
+ 400: unknown;
63212
+ /**
63213
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
63214
+ */
63215
+ 401: unknown;
63216
+ /**
63217
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
63218
+ */
63219
+ 403: unknown;
63220
+ /**
63221
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
63222
+ */
63223
+ 404: unknown;
63224
+ /**
63225
+ * Ticket is gone; refresh the repository's ticket list.
63226
+ */
63227
+ 410: unknown;
63228
+ /**
63229
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
63230
+ */
63231
+ 422: unknown;
63232
+ /**
63233
+ * Native rate limit; wait for retry-after before retrying.
63234
+ */
63235
+ 429: unknown;
63236
+ };
63237
+ export type TicketGetTicketsNumberDependenciesBlockedByResponses = {
63238
+ /**
63239
+ * Cursor page.
63240
+ */
63241
+ 200: {
63242
+ /**
63243
+ * Selected tickets records.
63244
+ */
63245
+ tickets: Array<TicketRecord>;
63246
+ /**
63247
+ * Opaque cursor for the next page; empty when exhausted.
63248
+ */
63249
+ next_page_token: string;
63250
+ };
63251
+ };
63252
+ export type TicketGetTicketsNumberDependenciesBlockedByResponse = TicketGetTicketsNumberDependenciesBlockedByResponses[keyof TicketGetTicketsNumberDependenciesBlockedByResponses];
63253
+ export type TicketPostTicketsNumberDependenciesBlockedByData = {
63254
+ /**
63255
+ * Fields accepted for this operation; omitted update fields retain their values.
63256
+ */
63257
+ body: {
63258
+ /**
63259
+ * Repository-local number returned by create or list; distinct from the object's id.
63260
+ */
63261
+ blocked_by: number;
63262
+ };
63263
+ path: {
63264
+ /**
63265
+ * Repository-local number returned by create or list; distinct from the object's id.
63266
+ */
63267
+ number: number;
63268
+ };
63269
+ query?: {
63270
+ /**
63271
+ * Opaque repository id.
63272
+ */
63273
+ repository?: string;
63274
+ };
63275
+ url: '/ticket/v1/tickets/{number}/dependencies/blocked_by';
63276
+ };
63277
+ export type TicketPostTicketsNumberDependenciesBlockedByErrors = {
63278
+ /**
63279
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
63280
+ */
63281
+ 400: unknown;
63282
+ /**
63283
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
63284
+ */
63285
+ 401: unknown;
63286
+ /**
63287
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
63288
+ */
63289
+ 403: unknown;
63290
+ /**
63291
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
63292
+ */
63293
+ 404: unknown;
63294
+ /**
63295
+ * Ticket is gone; refresh the repository's ticket list.
63296
+ */
63297
+ 410: unknown;
63298
+ /**
63299
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
63300
+ */
63301
+ 422: unknown;
63302
+ /**
63303
+ * Native rate limit; wait for retry-after before retrying.
63304
+ */
63305
+ 429: unknown;
63306
+ };
63307
+ export type TicketPostTicketsNumberDependenciesBlockedByResponses = {
63308
+ /**
63309
+ * The operation succeeded; the body contains the requested resource or page.
63310
+ */
63311
+ 200: TicketRecord;
63312
+ };
63313
+ export type TicketPostTicketsNumberDependenciesBlockedByResponse = TicketPostTicketsNumberDependenciesBlockedByResponses[keyof TicketPostTicketsNumberDependenciesBlockedByResponses];
63314
+ export type TicketDeleteTicketsNumberDependenciesBlockedByNData = {
63315
+ body?: never;
63316
+ path: {
63317
+ /**
63318
+ * Repository-local number returned by create or list; distinct from the object's id.
63319
+ */
63320
+ number: number;
63321
+ /**
63322
+ * Repository-local number returned by create or list; distinct from the object's id.
63323
+ */
63324
+ n: number;
63325
+ };
63326
+ query?: {
63327
+ /**
63328
+ * Opaque repository id.
63329
+ */
63330
+ repository?: string;
63331
+ };
63332
+ url: '/ticket/v1/tickets/{number}/dependencies/blocked_by/{n}';
63333
+ };
63334
+ export type TicketDeleteTicketsNumberDependenciesBlockedByNErrors = {
63335
+ /**
63336
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
63337
+ */
63338
+ 400: unknown;
63339
+ /**
63340
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
63341
+ */
63342
+ 401: unknown;
63343
+ /**
63344
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
63345
+ */
63346
+ 403: unknown;
63347
+ /**
63348
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
63349
+ */
63350
+ 404: unknown;
63351
+ /**
63352
+ * Ticket is gone; refresh the repository's ticket list.
63353
+ */
63354
+ 410: unknown;
63355
+ /**
63356
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
63357
+ */
63358
+ 422: unknown;
63359
+ /**
63360
+ * Native rate limit; wait for retry-after before retrying.
63361
+ */
63362
+ 429: unknown;
63363
+ };
63364
+ export type TicketDeleteTicketsNumberDependenciesBlockedByNResponses = {
63365
+ /**
63366
+ * The operation succeeded; the body contains the requested resource or page.
63367
+ */
63368
+ 200: TicketRecord;
63369
+ };
63370
+ export type TicketDeleteTicketsNumberDependenciesBlockedByNResponse = TicketDeleteTicketsNumberDependenciesBlockedByNResponses[keyof TicketDeleteTicketsNumberDependenciesBlockedByNResponses];
63371
+ export type TicketGetTicketsNumberRelationsData = {
63372
+ body?: never;
63373
+ path: {
63374
+ /**
63375
+ * Repository-local number returned by create or list; distinct from the object's id.
63376
+ */
63377
+ number: number;
63378
+ };
63379
+ query?: {
63380
+ /**
63381
+ * Opaque repository id.
63382
+ */
63383
+ repository?: string;
63384
+ /**
63385
+ * Page size.
63386
+ */
63387
+ page_size?: number;
63388
+ /**
63389
+ * Opaque cursor.
63390
+ */
63391
+ page_token?: string;
63392
+ };
63393
+ url: '/ticket/v1/tickets/{number}/relations';
63394
+ };
63395
+ export type TicketGetTicketsNumberRelationsErrors = {
63396
+ /**
63397
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
63398
+ */
63399
+ 400: unknown;
63400
+ /**
63401
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
63402
+ */
63403
+ 401: unknown;
63404
+ /**
63405
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
63406
+ */
63407
+ 403: unknown;
63408
+ /**
63409
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
63410
+ */
63411
+ 404: unknown;
63412
+ /**
63413
+ * Ticket is gone; refresh the repository's ticket list.
63414
+ */
63415
+ 410: unknown;
63416
+ /**
63417
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
63418
+ */
63419
+ 422: unknown;
63420
+ /**
63421
+ * Native rate limit; wait for retry-after before retrying.
63422
+ */
63423
+ 429: unknown;
63424
+ };
63425
+ export type TicketGetTicketsNumberRelationsResponses = {
63426
+ /**
63427
+ * Cursor page.
63428
+ */
63429
+ 200: {
63430
+ /**
63431
+ * Selected tickets records.
63432
+ */
63433
+ tickets: Array<TicketRecord>;
63434
+ /**
63435
+ * Opaque cursor for the next page; empty when exhausted.
63436
+ */
63437
+ next_page_token: string;
63438
+ };
63439
+ };
63440
+ export type TicketGetTicketsNumberRelationsResponse = TicketGetTicketsNumberRelationsResponses[keyof TicketGetTicketsNumberRelationsResponses];
63441
+ export type TicketPostTicketsNumberRelationsData = {
63442
+ /**
63443
+ * Fields accepted for this operation; omitted update fields retain their values.
63444
+ */
63445
+ body: {
63446
+ /**
63447
+ * Repository-local number returned by create or list; distinct from the object's id.
63448
+ */
63449
+ relates_to: number;
63450
+ };
63451
+ path: {
63452
+ /**
63453
+ * Repository-local number returned by create or list; distinct from the object's id.
63454
+ */
63455
+ number: number;
63456
+ };
63457
+ query?: {
63458
+ /**
63459
+ * Opaque repository id.
63460
+ */
63461
+ repository?: string;
63462
+ };
63463
+ url: '/ticket/v1/tickets/{number}/relations';
63464
+ };
63465
+ export type TicketPostTicketsNumberRelationsErrors = {
63466
+ /**
63467
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
63468
+ */
63469
+ 400: unknown;
63470
+ /**
63471
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
63472
+ */
63473
+ 401: unknown;
63474
+ /**
63475
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
63476
+ */
63477
+ 403: unknown;
63478
+ /**
63479
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
63480
+ */
63481
+ 404: unknown;
63482
+ /**
63483
+ * Ticket is gone; refresh the repository's ticket list.
63484
+ */
63485
+ 410: unknown;
63486
+ /**
63487
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
63488
+ */
63489
+ 422: unknown;
63490
+ /**
63491
+ * Native rate limit; wait for retry-after before retrying.
63492
+ */
63493
+ 429: unknown;
63494
+ };
63495
+ export type TicketPostTicketsNumberRelationsResponses = {
63496
+ /**
63497
+ * The operation succeeded; the body contains the requested resource or page.
63498
+ */
63499
+ 200: TicketRecord;
63500
+ };
63501
+ export type TicketPostTicketsNumberRelationsResponse = TicketPostTicketsNumberRelationsResponses[keyof TicketPostTicketsNumberRelationsResponses];
63502
+ export type TicketDeleteTicketsNumberRelationsNData = {
63503
+ body?: never;
63504
+ path: {
63505
+ /**
63506
+ * Repository-local number returned by create or list; distinct from the object's id.
63507
+ */
63508
+ number: number;
63509
+ /**
63510
+ * Repository-local number returned by create or list; distinct from the object's id.
63511
+ */
63512
+ n: number;
63513
+ };
63514
+ query?: {
63515
+ /**
63516
+ * Opaque repository id.
63517
+ */
63518
+ repository?: string;
63519
+ };
63520
+ url: '/ticket/v1/tickets/{number}/relations/{n}';
63521
+ };
63522
+ export type TicketDeleteTicketsNumberRelationsNErrors = {
63523
+ /**
63524
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
63525
+ */
63526
+ 400: unknown;
63527
+ /**
63528
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
63529
+ */
63530
+ 401: unknown;
63531
+ /**
63532
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
63533
+ */
63534
+ 403: unknown;
63535
+ /**
63536
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
63537
+ */
63538
+ 404: unknown;
63539
+ /**
63540
+ * Ticket is gone; refresh the repository's ticket list.
63541
+ */
63542
+ 410: unknown;
63543
+ /**
63544
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
63545
+ */
63546
+ 422: unknown;
63547
+ /**
63548
+ * Native rate limit; wait for retry-after before retrying.
63549
+ */
63550
+ 429: unknown;
63551
+ };
63552
+ export type TicketDeleteTicketsNumberRelationsNResponses = {
63553
+ /**
63554
+ * The operation succeeded; the body contains the requested resource or page.
63555
+ */
63556
+ 200: TicketRecord;
63557
+ };
63558
+ export type TicketDeleteTicketsNumberRelationsNResponse = TicketDeleteTicketsNumberRelationsNResponses[keyof TicketDeleteTicketsNumberRelationsNResponses];
63559
+ export type TicketGetTicketsNumberDependenciesBlockingData = {
63560
+ body?: never;
63561
+ path: {
63562
+ /**
63563
+ * Repository-local number returned by create or list; distinct from the object's id.
63564
+ */
63565
+ number: number;
63566
+ };
63567
+ query?: {
63568
+ /**
63569
+ * Opaque repository id.
63570
+ */
63571
+ repository?: string;
63572
+ /**
63573
+ * Page size.
63574
+ */
63575
+ page_size?: number;
63576
+ /**
63577
+ * Opaque cursor.
63578
+ */
63579
+ page_token?: string;
63580
+ };
63581
+ url: '/ticket/v1/tickets/{number}/dependencies/blocking';
63582
+ };
63583
+ export type TicketGetTicketsNumberDependenciesBlockingErrors = {
63584
+ /**
63585
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
63586
+ */
63587
+ 400: unknown;
63588
+ /**
63589
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
63590
+ */
63591
+ 401: unknown;
63592
+ /**
63593
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
63594
+ */
63595
+ 403: unknown;
63596
+ /**
63597
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
63598
+ */
63599
+ 404: unknown;
63600
+ /**
63601
+ * Ticket is gone; refresh the repository's ticket list.
63602
+ */
63603
+ 410: unknown;
63604
+ /**
63605
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
63606
+ */
63607
+ 422: unknown;
63608
+ /**
63609
+ * Native rate limit; wait for retry-after before retrying.
63610
+ */
63611
+ 429: unknown;
63612
+ };
63613
+ export type TicketGetTicketsNumberDependenciesBlockingResponses = {
63614
+ /**
63615
+ * Cursor page.
63616
+ */
63617
+ 200: {
63618
+ /**
63619
+ * Selected tickets records.
63620
+ */
63621
+ tickets: Array<TicketRecord>;
63622
+ /**
63623
+ * Opaque cursor for the next page; empty when exhausted.
63624
+ */
63625
+ next_page_token: string;
63626
+ };
63627
+ };
63628
+ export type TicketGetTicketsNumberDependenciesBlockingResponse = TicketGetTicketsNumberDependenciesBlockingResponses[keyof TicketGetTicketsNumberDependenciesBlockingResponses];
63629
+ export type TicketGetTicketsNumberEventsData = {
63630
+ body?: never;
63631
+ path: {
63632
+ /**
63633
+ * Repository-local number returned by create or list; distinct from the object's id.
63634
+ */
63635
+ number: number;
63636
+ };
63637
+ query?: {
63638
+ /**
63639
+ * Opaque repository id.
63640
+ */
63641
+ repository?: string;
63642
+ /**
63643
+ * Page size.
63644
+ */
63645
+ page_size?: number;
63646
+ /**
63647
+ * Opaque cursor.
63648
+ */
63649
+ page_token?: string;
63650
+ };
63651
+ url: '/ticket/v1/tickets/{number}/events';
63652
+ };
63653
+ export type TicketGetTicketsNumberEventsErrors = {
63654
+ /**
63655
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
63656
+ */
63657
+ 400: unknown;
63658
+ /**
63659
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
63660
+ */
63661
+ 401: unknown;
63662
+ /**
63663
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
63664
+ */
63665
+ 403: unknown;
63666
+ /**
63667
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
63668
+ */
63669
+ 404: unknown;
63670
+ /**
63671
+ * Ticket is gone; refresh the repository's ticket list.
63672
+ */
63673
+ 410: unknown;
63674
+ /**
63675
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
63676
+ */
63677
+ 422: unknown;
63678
+ /**
63679
+ * Native rate limit; wait for retry-after before retrying.
63680
+ */
63681
+ 429: unknown;
63682
+ };
63683
+ export type TicketGetTicketsNumberEventsResponses = {
63684
+ /**
63685
+ * Cursor page.
63686
+ */
63687
+ 200: {
63688
+ /**
63689
+ * Selected events records.
63690
+ */
63691
+ events: Array<TicketEvent>;
63692
+ /**
63693
+ * Opaque cursor for the next page; empty when exhausted.
63694
+ */
63695
+ next_page_token: string;
63696
+ };
63697
+ };
63698
+ export type TicketGetTicketsNumberEventsResponse = TicketGetTicketsNumberEventsResponses[keyof TicketGetTicketsNumberEventsResponses];
63699
+ export type TicketGetTicketsNumberReactionsData = {
63700
+ body?: never;
63701
+ path: {
63702
+ /**
63703
+ * Repository-local number returned by create or list; distinct from the object's id.
63704
+ */
63705
+ number: number;
63706
+ };
63707
+ query?: {
63708
+ /**
63709
+ * Opaque repository id.
63710
+ */
63711
+ repository?: string;
63712
+ /**
63713
+ * Page size.
63714
+ */
63715
+ page_size?: number;
63716
+ /**
63717
+ * Opaque cursor.
63718
+ */
63719
+ page_token?: string;
63720
+ };
63721
+ url: '/ticket/v1/tickets/{number}/reactions';
63722
+ };
63723
+ export type TicketGetTicketsNumberReactionsErrors = {
63724
+ /**
63725
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
63726
+ */
63727
+ 400: unknown;
63728
+ /**
63729
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
63730
+ */
63731
+ 401: unknown;
63732
+ /**
63733
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
63734
+ */
63735
+ 403: unknown;
63736
+ /**
63737
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
63738
+ */
63739
+ 404: unknown;
63740
+ /**
63741
+ * Ticket is gone; refresh the repository's ticket list.
63742
+ */
63743
+ 410: unknown;
63744
+ /**
63745
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
63746
+ */
63747
+ 422: unknown;
63748
+ /**
63749
+ * Native rate limit; wait for retry-after before retrying.
63750
+ */
63751
+ 429: unknown;
63752
+ };
63753
+ export type TicketGetTicketsNumberReactionsResponses = {
63754
+ /**
63755
+ * Cursor page.
63756
+ */
63757
+ 200: {
63758
+ /**
63759
+ * Selected reactions records.
63760
+ */
63761
+ reactions: Array<TicketReaction>;
63762
+ /**
63763
+ * Opaque cursor for the next page; empty when exhausted.
63764
+ */
63765
+ next_page_token: string;
63766
+ };
63767
+ };
63768
+ export type TicketGetTicketsNumberReactionsResponse = TicketGetTicketsNumberReactionsResponses[keyof TicketGetTicketsNumberReactionsResponses];
63769
+ export type TicketPostTicketsNumberReactionsData = {
63770
+ /**
63771
+ * Fields accepted for this operation; omitted update fields retain their values.
63772
+ */
63773
+ body: {
63774
+ /**
63775
+ * Reaction to add or remove: +1 approves, -1 disapproves, laugh, confused, heart, hooray, eyes, or rocket.
63776
+ */
63777
+ content: '+1' | '-1' | 'laugh' | 'confused' | 'heart' | 'hooray' | 'eyes' | 'rocket';
63778
+ };
63779
+ path: {
63780
+ /**
63781
+ * Repository-local number returned by create or list; distinct from the object's id.
63782
+ */
63783
+ number: number;
63784
+ };
63785
+ query?: {
63786
+ /**
63787
+ * Opaque repository id.
63788
+ */
63789
+ repository?: string;
63790
+ };
63791
+ url: '/ticket/v1/tickets/{number}/reactions';
63792
+ };
63793
+ export type TicketPostTicketsNumberReactionsErrors = {
63794
+ /**
63795
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
63796
+ */
63797
+ 400: unknown;
63798
+ /**
63799
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
63800
+ */
63801
+ 401: unknown;
63802
+ /**
63803
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
63804
+ */
63805
+ 403: unknown;
63806
+ /**
63807
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
63808
+ */
63809
+ 404: unknown;
63810
+ /**
63811
+ * Ticket is gone; refresh the repository's ticket list.
63812
+ */
63813
+ 410: unknown;
63814
+ /**
63815
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
63816
+ */
63817
+ 422: unknown;
63818
+ /**
63819
+ * Native rate limit; wait for retry-after before retrying.
63820
+ */
63821
+ 429: unknown;
63822
+ };
63823
+ export type TicketPostTicketsNumberReactionsResponses = {
63824
+ /**
63825
+ * The operation succeeded; the body contains the requested resource or page.
63826
+ */
63827
+ 201: TicketReactionSummary;
63828
+ };
63829
+ export type TicketPostTicketsNumberReactionsResponse = TicketPostTicketsNumberReactionsResponses[keyof TicketPostTicketsNumberReactionsResponses];
63830
+ export type TicketDeleteTicketsNumberReactionsContentData = {
63831
+ body?: never;
63832
+ path: {
63833
+ /**
63834
+ * Repository-local number returned by create or list; distinct from the object's id.
63835
+ */
63836
+ number: number;
63837
+ /**
63838
+ * Resource path value.
63839
+ */
63840
+ content: string;
63841
+ };
63842
+ query?: {
63843
+ /**
63844
+ * Opaque repository id.
63845
+ */
63846
+ repository?: string;
63847
+ };
63848
+ url: '/ticket/v1/tickets/{number}/reactions/{content}';
63849
+ };
63850
+ export type TicketDeleteTicketsNumberReactionsContentErrors = {
63851
+ /**
63852
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
63853
+ */
63854
+ 400: unknown;
63855
+ /**
63856
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
63857
+ */
63858
+ 401: unknown;
63859
+ /**
63860
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
63861
+ */
63862
+ 403: unknown;
63863
+ /**
63864
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
63865
+ */
63866
+ 404: unknown;
63867
+ /**
63868
+ * Ticket is gone; refresh the repository's ticket list.
63869
+ */
63870
+ 410: unknown;
63871
+ /**
63872
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
63873
+ */
63874
+ 422: unknown;
63875
+ /**
63876
+ * Native rate limit; wait for retry-after before retrying.
63877
+ */
63878
+ 429: unknown;
63879
+ };
63880
+ export type TicketDeleteTicketsNumberReactionsContentResponses = {
63881
+ /**
63882
+ * The operation succeeded; the body contains the requested resource or page.
63883
+ */
63884
+ 200: TicketReactionSummary;
63885
+ };
63886
+ export type TicketDeleteTicketsNumberReactionsContentResponse = TicketDeleteTicketsNumberReactionsContentResponses[keyof TicketDeleteTicketsNumberReactionsContentResponses];
63887
+ export type TicketGetCommentsIdReactionsData = {
63888
+ body?: never;
63889
+ path: {
63890
+ /**
63891
+ * Resource path value.
63892
+ */
63893
+ id: string;
63894
+ };
63895
+ query?: {
63896
+ /**
63897
+ * Opaque repository id.
63898
+ */
63899
+ repository?: string;
63900
+ /**
63901
+ * Page size.
63902
+ */
63903
+ page_size?: number;
63904
+ /**
63905
+ * Opaque cursor.
63906
+ */
63907
+ page_token?: string;
63908
+ };
63909
+ url: '/ticket/v1/comments/{id}/reactions';
63910
+ };
63911
+ export type TicketGetCommentsIdReactionsErrors = {
63912
+ /**
63913
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
63914
+ */
63915
+ 400: unknown;
63916
+ /**
63917
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
63918
+ */
63919
+ 401: unknown;
63920
+ /**
63921
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
63922
+ */
63923
+ 403: unknown;
63924
+ /**
63925
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
63926
+ */
63927
+ 404: unknown;
63928
+ /**
63929
+ * Ticket is gone; refresh the repository's ticket list.
63930
+ */
63931
+ 410: unknown;
63932
+ /**
63933
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
63934
+ */
63935
+ 422: unknown;
63936
+ /**
63937
+ * Native rate limit; wait for retry-after before retrying.
63938
+ */
63939
+ 429: unknown;
63940
+ };
63941
+ export type TicketGetCommentsIdReactionsResponses = {
63942
+ /**
63943
+ * Cursor page.
63944
+ */
63945
+ 200: {
63946
+ /**
63947
+ * Selected reactions records.
63948
+ */
63949
+ reactions: Array<TicketReaction>;
63950
+ /**
63951
+ * Opaque cursor for the next page; empty when exhausted.
63952
+ */
63953
+ next_page_token: string;
63954
+ };
63955
+ };
63956
+ export type TicketGetCommentsIdReactionsResponse = TicketGetCommentsIdReactionsResponses[keyof TicketGetCommentsIdReactionsResponses];
63957
+ export type TicketPostCommentsIdReactionsData = {
63958
+ /**
63959
+ * Fields accepted for this operation; omitted update fields retain their values.
63960
+ */
63961
+ body: {
63962
+ /**
63963
+ * Reaction to add or remove: +1 approves, -1 disapproves, laugh, confused, heart, hooray, eyes, or rocket.
63964
+ */
63965
+ content: '+1' | '-1' | 'laugh' | 'confused' | 'heart' | 'hooray' | 'eyes' | 'rocket';
63966
+ };
63967
+ path: {
63968
+ /**
63969
+ * Resource path value.
63970
+ */
63971
+ id: string;
63972
+ };
63973
+ query?: {
63974
+ /**
63975
+ * Opaque repository id.
63976
+ */
63977
+ repository?: string;
63978
+ };
63979
+ url: '/ticket/v1/comments/{id}/reactions';
63980
+ };
63981
+ export type TicketPostCommentsIdReactionsErrors = {
63982
+ /**
63983
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
63984
+ */
63985
+ 400: unknown;
63986
+ /**
63987
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
63988
+ */
63989
+ 401: unknown;
63990
+ /**
63991
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
63992
+ */
63993
+ 403: unknown;
63994
+ /**
63995
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
63996
+ */
63997
+ 404: unknown;
63998
+ /**
63999
+ * Ticket is gone; refresh the repository's ticket list.
64000
+ */
64001
+ 410: unknown;
64002
+ /**
64003
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
64004
+ */
64005
+ 422: unknown;
64006
+ /**
64007
+ * Native rate limit; wait for retry-after before retrying.
64008
+ */
64009
+ 429: unknown;
64010
+ };
64011
+ export type TicketPostCommentsIdReactionsResponses = {
64012
+ /**
64013
+ * The operation succeeded; the body contains the requested resource or page.
64014
+ */
64015
+ 201: TicketReactionSummary;
64016
+ };
64017
+ export type TicketPostCommentsIdReactionsResponse = TicketPostCommentsIdReactionsResponses[keyof TicketPostCommentsIdReactionsResponses];
64018
+ export type TicketDeleteCommentsIdReactionsContentData = {
64019
+ body?: never;
64020
+ path: {
64021
+ /**
64022
+ * Resource path value.
64023
+ */
64024
+ id: string;
64025
+ /**
64026
+ * Resource path value.
64027
+ */
64028
+ content: string;
64029
+ };
64030
+ query?: {
64031
+ /**
64032
+ * Opaque repository id.
64033
+ */
64034
+ repository?: string;
64035
+ };
64036
+ url: '/ticket/v1/comments/{id}/reactions/{content}';
64037
+ };
64038
+ export type TicketDeleteCommentsIdReactionsContentErrors = {
64039
+ /**
64040
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
64041
+ */
64042
+ 400: unknown;
64043
+ /**
64044
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
64045
+ */
64046
+ 401: unknown;
64047
+ /**
64048
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
64049
+ */
64050
+ 403: unknown;
64051
+ /**
64052
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
64053
+ */
64054
+ 404: unknown;
64055
+ /**
64056
+ * Ticket is gone; refresh the repository's ticket list.
64057
+ */
64058
+ 410: unknown;
64059
+ /**
64060
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
64061
+ */
64062
+ 422: unknown;
64063
+ /**
64064
+ * Native rate limit; wait for retry-after before retrying.
64065
+ */
64066
+ 429: unknown;
64067
+ };
64068
+ export type TicketDeleteCommentsIdReactionsContentResponses = {
64069
+ /**
64070
+ * The operation succeeded; the body contains the requested resource or page.
64071
+ */
64072
+ 200: TicketReactionSummary;
64073
+ };
64074
+ export type TicketDeleteCommentsIdReactionsContentResponse = TicketDeleteCommentsIdReactionsContentResponses[keyof TicketDeleteCommentsIdReactionsContentResponses];
64075
+ export type TicketGetActivityData = {
64076
+ body?: never;
64077
+ path?: never;
64078
+ query?: {
64079
+ /**
64080
+ * Opaque repository id.
64081
+ */
64082
+ repository?: string;
64083
+ /**
64084
+ * Page size.
64085
+ */
64086
+ page_size?: number;
64087
+ /**
64088
+ * Opaque cursor.
64089
+ */
64090
+ page_token?: string;
64091
+ /**
64092
+ * Filter expression.
64093
+ */
64094
+ filter?: string;
64095
+ };
64096
+ url: '/ticket/v1/activity';
64097
+ };
64098
+ export type TicketGetActivityErrors = {
64099
+ /**
64100
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
64101
+ */
64102
+ 400: unknown;
64103
+ /**
64104
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
64105
+ */
64106
+ 401: unknown;
64107
+ /**
64108
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
64109
+ */
64110
+ 403: unknown;
64111
+ /**
64112
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
64113
+ */
64114
+ 404: unknown;
64115
+ /**
64116
+ * Ticket is gone; refresh the repository's ticket list.
64117
+ */
64118
+ 410: unknown;
64119
+ /**
64120
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
64121
+ */
64122
+ 422: unknown;
64123
+ /**
64124
+ * Native rate limit; wait for retry-after before retrying.
64125
+ */
64126
+ 429: unknown;
64127
+ };
64128
+ export type TicketGetActivityResponses = {
64129
+ /**
64130
+ * Cursor page.
64131
+ */
64132
+ 200: {
64133
+ /**
64134
+ * Selected activity records.
64135
+ */
64136
+ activity: Array<TicketActivity>;
64137
+ /**
64138
+ * Opaque cursor for the next page; empty when exhausted.
64139
+ */
64140
+ next_page_token: string;
64141
+ };
64142
+ };
64143
+ export type TicketGetActivityResponse = TicketGetActivityResponses[keyof TicketGetActivityResponses];
64144
+ export type TicketGetRepositoriesData = {
64145
+ body?: never;
64146
+ path?: never;
64147
+ query?: {
64148
+ /**
64149
+ * Page size.
64150
+ */
64151
+ page_size?: number;
64152
+ /**
64153
+ * Opaque cursor.
64154
+ */
64155
+ page_token?: string;
64156
+ };
64157
+ url: '/ticket/v1/repositories';
64158
+ };
64159
+ export type TicketGetRepositoriesErrors = {
64160
+ /**
64161
+ * Invalid native input or unsupported GitHub API version; correct the request before retrying.
64162
+ */
64163
+ 400: unknown;
64164
+ /**
64165
+ * Credentials are absent or invalid; supply a valid API key or signed browser session.
64166
+ */
64167
+ 401: unknown;
64168
+ /**
64169
+ * Machine token, application, insufficient organization role or locked conversation; use an authorized human credential. GitHub rate limiting also uses 403 with retry-after and x-ratelimit headers.
64170
+ */
64171
+ 403: unknown;
64172
+ /**
64173
+ * Resource or repository is absent from this organization; a different owner has the identical missing-resource response.
64174
+ */
64175
+ 404: unknown;
64176
+ /**
64177
+ * Ticket is gone; refresh the repository's ticket list.
64178
+ */
64179
+ 410: unknown;
64180
+ /**
64181
+ * Invalid GitHub input, duplicate name, dependency cycle or child/assignee limit; correct the reported fields or relationships.
64182
+ */
64183
+ 422: unknown;
64184
+ /**
64185
+ * Native rate limit; wait for retry-after before retrying.
64186
+ */
64187
+ 429: unknown;
64188
+ };
64189
+ export type TicketGetRepositoriesResponses = {
64190
+ /**
64191
+ * Cursor page.
64192
+ */
64193
+ 200: {
64194
+ /**
64195
+ * Selected repositories records.
64196
+ */
64197
+ repositories: Array<TicketRepository>;
64198
+ /**
64199
+ * Opaque cursor for the next page; empty when exhausted.
64200
+ */
64201
+ next_page_token: string;
64202
+ };
64203
+ };
64204
+ export type TicketGetRepositoriesResponse = TicketGetRepositoriesResponses[keyof TicketGetRepositoriesResponses];