File tree Expand file tree Collapse file tree 2 files changed +66
-6
lines changed Expand file tree Collapse file tree 2 files changed +66
-6
lines changed Original file line number Diff line number Diff line change 13
13
AutofixRequest = typing_extensions .TypedDict (
14
14
"AutofixRequest" ,
15
15
{
16
+ "organization_id" : int ,
17
+ "project_id" : int ,
18
+ "repos" : typing .List ["RepoDefinition" ],
19
+ "base_commit_sha" : typing .Union [str , None ],
16
20
"issue" : "IssueDetails" ,
17
- "base_commit_sha" : str ,
18
21
"additional_context" : typing .Union [str , None ],
19
22
},
20
23
total = False ,
116
119
total = False ,
117
120
)
118
121
122
+ RepoDefinition = typing_extensions .TypedDict (
123
+ "RepoDefinition" ,
124
+ {
125
+ "provider" : typing .Literal ["github" ],
126
+ "owner" : str ,
127
+ "name" : str ,
128
+ },
129
+ total = False ,
130
+ )
131
+
119
132
SentryEvent = typing_extensions .TypedDict (
120
133
"SentryEvent" ,
121
134
{
Original file line number Diff line number Diff line change 144
144
},
145
145
"AutofixRequest" : {
146
146
"properties" : {
147
- "issue" : {
148
- "$ref" : " #/components/schemas/IssueDetails"
147
+ "organization_id" : {
148
+ "type" : " integer" ,
149
+ "title" : " Organization Id"
150
+ },
151
+ "project_id" : {
152
+ "type" : " integer" ,
153
+ "title" : " Project Id"
154
+ },
155
+ "repos" : {
156
+ "items" : {
157
+ "$ref" : " #/components/schemas/RepoDefinition"
158
+ },
159
+ "type" : " array" ,
160
+ "title" : " Repos"
149
161
},
150
162
"base_commit_sha" : {
151
- "type" : " string" ,
163
+ "anyOf" : [
164
+ {
165
+ "type" : " string"
166
+ },
167
+ {
168
+ "type" : " null"
169
+ }
170
+ ],
152
171
"title" : " Base Commit Sha"
153
172
},
173
+ "issue" : {
174
+ "$ref" : " #/components/schemas/IssueDetails"
175
+ },
154
176
"additional_context" : {
155
177
"anyOf" : [
156
178
{
165
187
},
166
188
"type" : " object" ,
167
189
"required" : [
168
- " issue" ,
169
- " base_commit_sha"
190
+ " organization_id" ,
191
+ " project_id" ,
192
+ " repos" ,
193
+ " issue"
170
194
],
171
195
"title" : " AutofixRequest"
172
196
},
469
493
],
470
494
"title" : " IssueDetails"
471
495
},
496
+ "RepoDefinition" : {
497
+ "properties" : {
498
+ "provider" : {
499
+ "const" : " github" ,
500
+ "title" : " Provider"
501
+ },
502
+ "owner" : {
503
+ "type" : " string" ,
504
+ "title" : " Owner"
505
+ },
506
+ "name" : {
507
+ "type" : " string" ,
508
+ "title" : " Name"
509
+ }
510
+ },
511
+ "type" : " object" ,
512
+ "required" : [
513
+ " provider" ,
514
+ " owner" ,
515
+ " name"
516
+ ],
517
+ "title" : " RepoDefinition"
518
+ },
472
519
"SentryEvent" : {
473
520
"properties" : {
474
521
"entries" : {
You can’t perform that action at this time.
0 commit comments