You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/search/Types.swift
+54-10Lines changed: 54 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -375,6 +375,8 @@ public enum Components {
375
375
publicvarsite_admin:Swift.Bool
376
376
/// - Remark: Generated from `#/components/schemas/simple-user/starred_at`.
377
377
publicvarstarred_at:Swift.String?
378
+
/// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`.
379
+
publicvaruser_view_type:Swift.String?
378
380
/// Creates a new `simple_hyphen_user`.
379
381
///
380
382
/// - Parameters:
@@ -399,6 +401,7 @@ public enum Components {
399
401
/// - _type:
400
402
/// - site_admin:
401
403
/// - starred_at:
404
+
/// - user_view_type:
402
405
publicinit(
403
406
name:Swift.String?=nil,
404
407
email:Swift.String?=nil,
@@ -420,7 +423,8 @@ public enum Components {
420
423
received_events_url:Swift.String,
421
424
_type:Swift.String,
422
425
site_admin:Swift.Bool,
423
-
starred_at:Swift.String?=nil
426
+
starred_at:Swift.String?=nil,
427
+
user_view_type:Swift.String?=nil
424
428
){
425
429
self.name = name
426
430
self.email = email
@@ -443,6 +447,7 @@ public enum Components {
443
447
self._type = _type
444
448
self.site_admin = site_admin
445
449
self.starred_at = starred_at
450
+
self.user_view_type = user_view_type
446
451
}
447
452
publicenumCodingKeys:String,CodingKey{
448
453
case name
@@ -466,6 +471,7 @@ public enum Components {
466
471
case _type ="type"
467
472
case site_admin
468
473
case starred_at
474
+
case user_view_type
469
475
}
470
476
}
471
477
/// Basic Error
@@ -551,6 +557,8 @@ public enum Components {
551
557
publicvarsite_admin:Swift.Bool
552
558
/// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`.
553
559
publicvarstarred_at:Swift.String?
560
+
/// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`.
561
+
publicvaruser_view_type:Swift.String?
554
562
/// Creates a new `nullable_hyphen_simple_hyphen_user`.
555
563
///
556
564
/// - Parameters:
@@ -575,6 +583,7 @@ public enum Components {
575
583
/// - _type:
576
584
/// - site_admin:
577
585
/// - starred_at:
586
+
/// - user_view_type:
578
587
publicinit(
579
588
name:Swift.String?=nil,
580
589
email:Swift.String?=nil,
@@ -596,7 +605,8 @@ public enum Components {
596
605
received_events_url:Swift.String,
597
606
_type:Swift.String,
598
607
site_admin:Swift.Bool,
599
-
starred_at:Swift.String?=nil
608
+
starred_at:Swift.String?=nil,
609
+
user_view_type:Swift.String?=nil
600
610
){
601
611
self.name = name
602
612
self.email = email
@@ -619,6 +629,7 @@ public enum Components {
619
629
self._type = _type
620
630
self.site_admin = site_admin
621
631
self.starred_at = starred_at
632
+
self.user_view_type = user_view_type
622
633
}
623
634
publicenumCodingKeys:String,CodingKey{
624
635
case name
@@ -642,6 +653,7 @@ public enum Components {
642
653
case _type ="type"
643
654
case site_admin
644
655
case starred_at
656
+
case user_view_type
645
657
}
646
658
}
647
659
/// Validation Error
@@ -1066,7 +1078,7 @@ public enum Components {
1066
1078
///
1067
1079
/// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`.
1068
1080
publicvarallow_update_branch:Swift.Bool?
1069
-
/// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.
1081
+
/// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.
1070
1082
///
1071
1083
/// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`.
1072
1084
@available(*, deprecated)
@@ -1254,7 +1266,7 @@ public enum Components {
1254
1266
/// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests.
1255
1267
/// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged
1256
1268
/// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.
1257
-
/// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.
1269
+
/// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.
1258
1270
/// - squash_merge_commit_title: The default value for a squash merge commit title:
1259
1271
/// - squash_merge_commit_message: The default value for a squash merge commit message:
1260
1272
/// - merge_commit_title: The default value for a merge commit title.
@@ -2156,6 +2168,28 @@ public enum Components {
2156
2168
}
2157
2169
/// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`.
/// **This field is deprecated.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results)
4918
+
/// **This field is closing down.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results)
4875
4919
///
4876
4920
/// - Remark: Generated from `#/paths/search/code/GET/query/sort`.
4877
4921
@available(*, deprecated)
@@ -4881,7 +4925,7 @@ public enum Operations {
4881
4925
case desc ="desc"
4882
4926
case asc ="asc"
4883
4927
}
4884
-
/// **This field is deprecated.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.
4928
+
/// **This field is closing down.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.
4885
4929
///
4886
4930
/// - Remark: Generated from `#/paths/search/code/GET/query/order`.
4887
4931
@available(*, deprecated)
@@ -4898,8 +4942,8 @@ public enum Operations {
4898
4942
///
4899
4943
/// - Parameters:
4900
4944
/// - q: The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching code](https://docs.github.com/search-github/searching-on-github/searching-code)" for a detailed list of qualifiers.
4901
-
/// - sort: **This field is deprecated.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results)
4902
-
/// - order: **This field is deprecated.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.
4945
+
/// - sort: **This field is closing down.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results)
4946
+
/// - order: **This field is closing down.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.
4903
4947
/// - per_page: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
4904
4948
/// - page: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
0 commit comments