Record Class CopilotUserResponse

java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.CopilotUserResponse

@Generated("copilot-sdk-codegen") public record CopilotUserResponse(String login, String accessTypeSku, String analyticsTrackingId, Object assignedDate, Boolean canSignupForLimited, Boolean chatEnabled, String copilotPlan, Boolean copilotignoreEnabled, CopilotUserResponseEndpoints endpoints, List<String> organizationLoginList, Object organizationList, Boolean codexAgentEnabled, Object isMcpEnabled, String quotaResetDate, CopilotUserResponseQuotaSnapshots quotaSnapshots, Boolean restrictedTelemetry, Boolean tokenBasedBilling, String quotaResetDateUtc, Map<String,Double> limitedUserQuotas, String limitedUserResetDate, Map<String,Double> monthlyQuotas, Boolean cloudSessionStorageEnabled, Boolean cliRemoteControlEnabled) extends Record
Snapshot of the authenticated user's Copilot subscription info, if known. Mirrors the GitHub API `/copilot_internal/v2/token` user response shape — the runtime trusts this verbatim and does not re-fetch when set.
Since:
1.0.0
  • Constructor Details

    • CopilotUserResponse

      public CopilotUserResponse(String login, String accessTypeSku, String analyticsTrackingId, Object assignedDate, Boolean canSignupForLimited, Boolean chatEnabled, String copilotPlan, Boolean copilotignoreEnabled, CopilotUserResponseEndpoints endpoints, List<String> organizationLoginList, Object organizationList, Boolean codexAgentEnabled, Object isMcpEnabled, String quotaResetDate, CopilotUserResponseQuotaSnapshots quotaSnapshots, Boolean restrictedTelemetry, Boolean tokenBasedBilling, String quotaResetDateUtc, Map<String,Double> limitedUserQuotas, String limitedUserResetDate, Map<String,Double> monthlyQuotas, Boolean cloudSessionStorageEnabled, Boolean cliRemoteControlEnabled)
      Creates an instance of a CopilotUserResponse record class.
      Parameters:
      login - the value for the login record component
      accessTypeSku - the value for the accessTypeSku record component
      analyticsTrackingId - the value for the analyticsTrackingId record component
      assignedDate - the value for the assignedDate record component
      canSignupForLimited - the value for the canSignupForLimited record component
      chatEnabled - the value for the chatEnabled record component
      copilotPlan - the value for the copilotPlan record component
      copilotignoreEnabled - the value for the copilotignoreEnabled record component
      endpoints - the value for the endpoints record component
      organizationLoginList - the value for the organizationLoginList record component
      organizationList - the value for the organizationList record component
      codexAgentEnabled - the value for the codexAgentEnabled record component
      isMcpEnabled - the value for the isMcpEnabled record component
      quotaResetDate - the value for the quotaResetDate record component
      quotaSnapshots - the value for the quotaSnapshots record component
      restrictedTelemetry - the value for the restrictedTelemetry record component
      tokenBasedBilling - the value for the tokenBasedBilling record component
      quotaResetDateUtc - the value for the quotaResetDateUtc record component
      limitedUserQuotas - the value for the limitedUserQuotas record component
      limitedUserResetDate - the value for the limitedUserResetDate record component
      monthlyQuotas - the value for the monthlyQuotas record component
      cloudSessionStorageEnabled - the value for the cloudSessionStorageEnabled record component
      cliRemoteControlEnabled - the value for the cliRemoteControlEnabled record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • login

      public String login()
      Returns the value of the login record component.
      Returns:
      the value of the login record component
    • accessTypeSku

      public String accessTypeSku()
      Returns the value of the accessTypeSku record component.
      Returns:
      the value of the accessTypeSku record component
    • analyticsTrackingId

      public String analyticsTrackingId()
      Returns the value of the analyticsTrackingId record component.
      Returns:
      the value of the analyticsTrackingId record component
    • assignedDate

      public Object assignedDate()
      Returns the value of the assignedDate record component.
      Returns:
      the value of the assignedDate record component
    • canSignupForLimited

      public Boolean canSignupForLimited()
      Returns the value of the canSignupForLimited record component.
      Returns:
      the value of the canSignupForLimited record component
    • chatEnabled

      public Boolean chatEnabled()
      Returns the value of the chatEnabled record component.
      Returns:
      the value of the chatEnabled record component
    • copilotPlan

      public String copilotPlan()
      Returns the value of the copilotPlan record component.
      Returns:
      the value of the copilotPlan record component
    • copilotignoreEnabled

      public Boolean copilotignoreEnabled()
      Returns the value of the copilotignoreEnabled record component.
      Returns:
      the value of the copilotignoreEnabled record component
    • endpoints

      public CopilotUserResponseEndpoints endpoints()
      Returns the value of the endpoints record component.
      Returns:
      the value of the endpoints record component
    • organizationLoginList

      public List<String> organizationLoginList()
      Returns the value of the organizationLoginList record component.
      Returns:
      the value of the organizationLoginList record component
    • organizationList

      public Object organizationList()
      Returns the value of the organizationList record component.
      Returns:
      the value of the organizationList record component
    • codexAgentEnabled

      public Boolean codexAgentEnabled()
      Returns the value of the codexAgentEnabled record component.
      Returns:
      the value of the codexAgentEnabled record component
    • isMcpEnabled

      public Object isMcpEnabled()
      Returns the value of the isMcpEnabled record component.
      Returns:
      the value of the isMcpEnabled record component
    • quotaResetDate

      public String quotaResetDate()
      Returns the value of the quotaResetDate record component.
      Returns:
      the value of the quotaResetDate record component
    • quotaSnapshots

      public CopilotUserResponseQuotaSnapshots quotaSnapshots()
      Returns the value of the quotaSnapshots record component.
      Returns:
      the value of the quotaSnapshots record component
    • restrictedTelemetry

      public Boolean restrictedTelemetry()
      Returns the value of the restrictedTelemetry record component.
      Returns:
      the value of the restrictedTelemetry record component
    • tokenBasedBilling

      public Boolean tokenBasedBilling()
      Returns the value of the tokenBasedBilling record component.
      Returns:
      the value of the tokenBasedBilling record component
    • quotaResetDateUtc

      public String quotaResetDateUtc()
      Returns the value of the quotaResetDateUtc record component.
      Returns:
      the value of the quotaResetDateUtc record component
    • limitedUserQuotas

      public Map<String,Double> limitedUserQuotas()
      Returns the value of the limitedUserQuotas record component.
      Returns:
      the value of the limitedUserQuotas record component
    • limitedUserResetDate

      public String limitedUserResetDate()
      Returns the value of the limitedUserResetDate record component.
      Returns:
      the value of the limitedUserResetDate record component
    • monthlyQuotas

      public Map<String,Double> monthlyQuotas()
      Returns the value of the monthlyQuotas record component.
      Returns:
      the value of the monthlyQuotas record component
    • cloudSessionStorageEnabled

      public Boolean cloudSessionStorageEnabled()
      Returns the value of the cloudSessionStorageEnabled record component.
      Returns:
      the value of the cloudSessionStorageEnabled record component
    • cliRemoteControlEnabled

      public Boolean cliRemoteControlEnabled()
      Returns the value of the cliRemoteControlEnabled record component.
      Returns:
      the value of the cliRemoteControlEnabled record component