@@ -581,16 +581,40 @@ public enum Components {
581
581
public var public_code_suggestions : Components . Schemas . copilot_hyphen_organization_hyphen_details . public_code_suggestionsPayload
582
582
/// The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.
583
583
///
584
- /// - Remark: Generated from `#/components/schemas/copilot-organization-details/copilot_chat `.
585
- @frozen public enum copilot_chatPayload : String , Codable , Hashable , Sendable {
584
+ /// - Remark: Generated from `#/components/schemas/copilot-organization-details/ide_chat `.
585
+ @frozen public enum ide_chatPayload : String , Codable , Hashable , Sendable {
586
586
case enabled = " enabled "
587
587
case disabled = " disabled "
588
588
case unconfigured = " unconfigured "
589
589
}
590
590
/// The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.
591
591
///
592
- /// - Remark: Generated from `#/components/schemas/copilot-organization-details/copilot_chat`.
593
- public var copilot_chat : Components . Schemas . copilot_hyphen_organization_hyphen_details . copilot_chatPayload ?
592
+ /// - Remark: Generated from `#/components/schemas/copilot-organization-details/ide_chat`.
593
+ public var ide_chat : Components . Schemas . copilot_hyphen_organization_hyphen_details . ide_chatPayload ?
594
+ /// The organization policy for allowing or disallowing organization members to use Copilot features within github.com.
595
+ ///
596
+ /// - Remark: Generated from `#/components/schemas/copilot-organization-details/platform_chat`.
597
+ @frozen public enum platform_chatPayload : String , Codable , Hashable , Sendable {
598
+ case enabled = " enabled "
599
+ case disabled = " disabled "
600
+ case unconfigured = " unconfigured "
601
+ }
602
+ /// The organization policy for allowing or disallowing organization members to use Copilot features within github.com.
603
+ ///
604
+ /// - Remark: Generated from `#/components/schemas/copilot-organization-details/platform_chat`.
605
+ public var platform_chat : Components . Schemas . copilot_hyphen_organization_hyphen_details . platform_chatPayload ?
606
+ /// The organization policy for allowing or disallowing organization members to use Copilot within their CLI.
607
+ ///
608
+ /// - Remark: Generated from `#/components/schemas/copilot-organization-details/cli`.
609
+ @frozen public enum cliPayload : String , Codable , Hashable , Sendable {
610
+ case enabled = " enabled "
611
+ case disabled = " disabled "
612
+ case unconfigured = " unconfigured "
613
+ }
614
+ /// The organization policy for allowing or disallowing organization members to use Copilot within their CLI.
615
+ ///
616
+ /// - Remark: Generated from `#/components/schemas/copilot-organization-details/cli`.
617
+ public var cli : Components . Schemas . copilot_hyphen_organization_hyphen_details . cliPayload ?
594
618
/// The mode of assigning new seats.
595
619
///
596
620
/// - Remark: Generated from `#/components/schemas/copilot-organization-details/seat_management_setting`.
@@ -611,26 +635,34 @@ public enum Components {
611
635
/// - Parameters:
612
636
/// - seat_breakdown:
613
637
/// - public_code_suggestions: The organization policy for allowing or disallowing Copilot to make suggestions that match public code.
614
- /// - copilot_chat: The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.
638
+ /// - ide_chat: The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.
639
+ /// - platform_chat: The organization policy for allowing or disallowing organization members to use Copilot features within github.com.
640
+ /// - cli: The organization policy for allowing or disallowing organization members to use Copilot within their CLI.
615
641
/// - seat_management_setting: The mode of assigning new seats.
616
642
/// - additionalProperties: A container of undocumented properties.
617
643
public init (
618
644
seat_breakdown: Components . Schemas . copilot_hyphen_seat_hyphen_breakdown ,
619
645
public_code_suggestions: Components . Schemas . copilot_hyphen_organization_hyphen_details . public_code_suggestionsPayload ,
620
- copilot_chat: Components . Schemas . copilot_hyphen_organization_hyphen_details . copilot_chatPayload ? = nil ,
646
+ ide_chat: Components . Schemas . copilot_hyphen_organization_hyphen_details . ide_chatPayload ? = nil ,
647
+ platform_chat: Components . Schemas . copilot_hyphen_organization_hyphen_details . platform_chatPayload ? = nil ,
648
+ cli: Components . Schemas . copilot_hyphen_organization_hyphen_details . cliPayload ? = nil ,
621
649
seat_management_setting: Components . Schemas . copilot_hyphen_organization_hyphen_details . seat_management_settingPayload ,
622
650
additionalProperties: OpenAPIRuntime . OpenAPIObjectContainer = . init( )
623
651
) {
624
652
self . seat_breakdown = seat_breakdown
625
653
self . public_code_suggestions = public_code_suggestions
626
- self . copilot_chat = copilot_chat
654
+ self . ide_chat = ide_chat
655
+ self . platform_chat = platform_chat
656
+ self . cli = cli
627
657
self . seat_management_setting = seat_management_setting
628
658
self . additionalProperties = additionalProperties
629
659
}
630
660
public enum CodingKeys : String , CodingKey {
631
661
case seat_breakdown
632
662
case public_code_suggestions
633
- case copilot_chat
663
+ case ide_chat
664
+ case platform_chat
665
+ case cli
634
666
case seat_management_setting
635
667
}
636
668
public init ( from decoder: any Decoder ) throws {
@@ -643,9 +675,17 @@ public enum Components {
643
675
Components . Schemas. copilot_hyphen_organization_hyphen_details. public_code_suggestionsPayload. self,
644
676
forKey: . public_code_suggestions
645
677
)
646
- copilot_chat = try container. decodeIfPresent (
647
- Components . Schemas. copilot_hyphen_organization_hyphen_details. copilot_chatPayload. self,
648
- forKey: . copilot_chat
678
+ ide_chat = try container. decodeIfPresent (
679
+ Components . Schemas. copilot_hyphen_organization_hyphen_details. ide_chatPayload. self,
680
+ forKey: . ide_chat
681
+ )
682
+ platform_chat = try container. decodeIfPresent (
683
+ Components . Schemas. copilot_hyphen_organization_hyphen_details. platform_chatPayload. self,
684
+ forKey: . platform_chat
685
+ )
686
+ cli = try container. decodeIfPresent (
687
+ Components . Schemas. copilot_hyphen_organization_hyphen_details. cliPayload. self,
688
+ forKey: . cli
649
689
)
650
690
seat_management_setting = try container. decode (
651
691
Components . Schemas. copilot_hyphen_organization_hyphen_details. seat_management_settingPayload. self,
@@ -654,7 +694,9 @@ public enum Components {
654
694
additionalProperties = try decoder. decodeAdditionalProperties ( knownKeys: [
655
695
" seat_breakdown " ,
656
696
" public_code_suggestions " ,
657
- " copilot_chat " ,
697
+ " ide_chat " ,
698
+ " platform_chat " ,
699
+ " cli " ,
658
700
" seat_management_setting "
659
701
] )
660
702
}
@@ -669,8 +711,16 @@ public enum Components {
669
711
forKey: . public_code_suggestions
670
712
)
671
713
try container. encodeIfPresent (
672
- copilot_chat,
673
- forKey: . copilot_chat
714
+ ide_chat,
715
+ forKey: . ide_chat
716
+ )
717
+ try container. encodeIfPresent (
718
+ platform_chat,
719
+ forKey: . platform_chat
720
+ )
721
+ try container. encodeIfPresent (
722
+ cli,
723
+ forKey: . cli
674
724
)
675
725
try container. encode (
676
726
seat_management_setting,
@@ -1696,6 +1746,33 @@ public enum Operations {
1696
1746
}
1697
1747
}
1698
1748
}
1749
+ public struct UnprocessableContent : Sendable , Hashable {
1750
+ /// Creates a new `UnprocessableContent`.
1751
+ public init ( ) { }
1752
+ }
1753
+ /// There is a problem with your account's associated payment method.
1754
+ ///
1755
+ /// - Remark: Generated from `#/paths//orgs/{org}/copilot/billing/get(copilot/get-copilot-organization-details)/responses/422`.
1756
+ ///
1757
+ /// HTTP response code: `422 unprocessableContent`.
1758
+ case unprocessableContent( Operations . copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details . Output . UnprocessableContent )
1759
+ /// The associated value of the enum case if `self` is `.unprocessableContent`.
1760
+ ///
1761
+ /// - Throws: An error if `self` is not `.unprocessableContent`.
1762
+ /// - SeeAlso: `.unprocessableContent`.
1763
+ public var unprocessableContent : Operations . copilot_sol_get_hyphen_copilot_hyphen_organization_hyphen_details . Output . UnprocessableContent {
1764
+ get throws {
1765
+ switch self {
1766
+ case let . unprocessableContent( response) :
1767
+ return response
1768
+ default :
1769
+ try throwUnexpectedResponseStatus (
1770
+ expectedStatus: " unprocessableContent " ,
1771
+ response: self
1772
+ )
1773
+ }
1774
+ }
1775
+ }
1699
1776
/// Undocumented response.
1700
1777
///
1701
1778
/// A response with a code that is not documented in the OpenAPI document.
0 commit comments