Skip to main content

user_account.proto

path mgmt/v1alpha1/user_account.proto

package mgmt.v1alpha1


Messages

AcceptTeamAccountInviteRequest

NameTypeDescription
tokenstring

AcceptTeamAccountInviteResponse

NameTypeDescription
accountUserAccount

AccountInvite

NameTypeDescription
idstring
account_idstring
sender_user_idstring
emailstring
tokenstring
acceptedbool
created_atgoogle.protobuf.Timestamp
updated_atgoogle.protobuf.Timestamp
expires_atgoogle.protobuf.Timestamp

AccountOnboardingConfig

NameTypeDescription
has_created_source_connectionbool
has_created_destination_connectionbool
has_created_jobbool
has_invited_membersbool

AccountTemporalConfig

NameTypeDescription
urlstring
namespacestring
sync_job_queue_namestring

AccountUser

NameTypeDescription
idstring
namestring
imagestring
emailstring

ConvertPersonalToTeamAccountRequest

NameTypeDescription

ConvertPersonalToTeamAccountResponse

NameTypeDescription

CreateTeamAccountRequest

NameTypeDescription
namestring

CreateTeamAccountResponse

NameTypeDescription
account_idstring
checkout_session_urloptional stringIf NeosyncCloud, will respond with a checkout session url so they can setup billing

GetAccountBillingCheckoutSessionRequest

NameTypeDescription
account_idstring

GetAccountBillingCheckoutSessionResponse

NameTypeDescription
checkout_session_urlstringThe url that will be redirected to

GetAccountBillingPortalSessionRequest

NameTypeDescription
account_idstring

GetAccountBillingPortalSessionResponse

NameTypeDescription
portal_session_urlstringThe url that will be redirected to

GetAccountOnboardingConfigRequest

NameTypeDescription
account_idstring

GetAccountOnboardingConfigResponse

NameTypeDescription
configAccountOnboardingConfig

GetAccountStatusRequest

NameTypeDescription
account_idstring

GetAccountStatusResponse

NameTypeDescription
used_record_countuint64A count of the currently used records for the current billing period. This may go over the allowed record count depending on when the record count is polled by the metric system.
allowed_record_countoptional uint64The allowed record count. It will be null if there is no limit.
subscription_statusBillingStatusThe current subscription status determined by the billing system.

GetAccountTemporalConfigRequest

NameTypeDescription
account_idstring

GetAccountTemporalConfigResponse

NameTypeDescription
configAccountTemporalConfig

GetBillingAccountsRequest

NameTypeDescription
account_idsrepeated stringOptional list of account identifiers to filter the response by

GetBillingAccountsResponse

NameTypeDescription
accountsrepeated UserAccount

GetSystemInformationRequest

NameTypeDescription

GetSystemInformationResponse

NameTypeDescription
versionstringThe Git tagged version
commitstringThe Git commit
compilerstringThe Go compiler flag that was used to build this version of Neosync
platformstringThe Go platform flag that was used to build this version of Neosync
build_dategoogle.protobuf.Timestamp

GetTeamAccountInvitesRequest

NameTypeDescription
account_idstring

GetTeamAccountInvitesResponse

NameTypeDescription
invitesrepeated AccountInvite

GetTeamAccountMembersRequest

NameTypeDescription
account_idstring

GetTeamAccountMembersResponse

NameTypeDescription
usersrepeated AccountUser

GetUserAccountsRequest

NameTypeDescription

GetUserAccountsResponse

NameTypeDescription
accountsrepeated UserAccount

GetUserRequest

NameTypeDescription

GetUserResponse

NameTypeDescription
user_idstring

InviteUserToTeamAccountRequest

NameTypeDescription
account_idstring
emailstring

InviteUserToTeamAccountResponse

NameTypeDescription
inviteAccountInvite

IsAccountStatusValidRequest

NameTypeDescription
account_idstring
requested_record_countoptional uint64An optional count of records to be added to the current usage for validation.

IsAccountStatusValidResponse

NameTypeDescription
is_validbool
reasonoptional stringIf the account is not valid, a reason for why may be provided.
should_pollboolWhether or not the process should decide to continue polling for validitiy updates

IsUserInAccountRequest

NameTypeDescription
account_idstring

IsUserInAccountResponse

NameTypeDescription
okbool

RemoveTeamAccountInviteRequest

NameTypeDescription
idstring

RemoveTeamAccountInviteResponse

NameTypeDescription

RemoveTeamAccountMemberRequest

NameTypeDescription
user_idstring
account_idstring

RemoveTeamAccountMemberResponse

NameTypeDescription

SetAccountOnboardingConfigRequest

NameTypeDescription
account_idstring
configAccountOnboardingConfig

SetAccountOnboardingConfigResponse

NameTypeDescription
configAccountOnboardingConfig

SetAccountTemporalConfigRequest

NameTypeDescription
account_idstring
configAccountTemporalConfig

SetAccountTemporalConfigResponse

NameTypeDescription
configAccountTemporalConfig

SetBillingMeterEventRequest

NameTypeDescription
account_idstringThe account id to apply this metered event to
event_namestringThe metered event name
valuestringThe value of the meter for the given time
event_idstringThe unique identifier of this metered event
timestampoptional uint64The time of the event in Unix Epoch format. Defaults to the current timestamp if not specified.

SetBillingMeterEventResponse

NameTypeDescription

SetPersonalAccountRequest

NameTypeDescription

SetPersonalAccountResponse

NameTypeDescription
account_idstring

SetUserRequest

NameTypeDescription

SetUserResponse

NameTypeDescription
user_idstring

UserAccount

NameTypeDescription
idstringThe unique identifier of the account
namestringThe account slug
typeUserAccountTypeThe type of account
has_stripe_customer_idboolWhether or not the account has an associated stripe customer id

Enums

BillingStatus

NameNumberDescription
BILLING_STATUS_UNSPECIFIED0
BILLING_STATUS_ACTIVE1Corresponds to a billing subscription and rolls up various states into active This may be split into the future to be more granular and mirror the underlying billing system
BILLING_STATUS_EXPIRED2If the system could not find any active subscriptions

UserAccountType

NameNumberDescription
USER_ACCOUNT_TYPE_UNSPECIFIED0
USER_ACCOUNT_TYPE_PERSONAL1
USER_ACCOUNT_TYPE_TEAM2
USER_ACCOUNT_TYPE_ENTERPRISE3

Services

UserAccountService

GetUser

MethodGetUser
RequestGetUserRequest
ResponseGetUserResponse
Description

SetUser

MethodSetUser
RequestSetUserRequest
ResponseSetUserResponse
Description

GetUserAccounts

MethodGetUserAccounts
RequestGetUserAccountsRequest
ResponseGetUserAccountsResponse
Description

SetPersonalAccount

MethodSetPersonalAccount
RequestSetPersonalAccountRequest
ResponseSetPersonalAccountResponse
Description

ConvertPersonalToTeamAccount

MethodConvertPersonalToTeamAccount
RequestConvertPersonalToTeamAccountRequest
ResponseConvertPersonalToTeamAccountResponse
Description

CreateTeamAccount

MethodCreateTeamAccount
RequestCreateTeamAccountRequest
ResponseCreateTeamAccountResponse
Description

IsUserInAccount

MethodIsUserInAccount
RequestIsUserInAccountRequest
ResponseIsUserInAccountResponse
Description

GetAccountTemporalConfig

MethodGetAccountTemporalConfig
RequestGetAccountTemporalConfigRequest
ResponseGetAccountTemporalConfigResponse
Description

SetAccountTemporalConfig

MethodSetAccountTemporalConfig
RequestSetAccountTemporalConfigRequest
ResponseSetAccountTemporalConfigResponse
Description

GetTeamAccountMembers

MethodGetTeamAccountMembers
RequestGetTeamAccountMembersRequest
ResponseGetTeamAccountMembersResponse
Description

RemoveTeamAccountMember

MethodRemoveTeamAccountMember
RequestRemoveTeamAccountMemberRequest
ResponseRemoveTeamAccountMemberResponse
Description

InviteUserToTeamAccount

MethodInviteUserToTeamAccount
RequestInviteUserToTeamAccountRequest
ResponseInviteUserToTeamAccountResponse
Description

GetTeamAccountInvites

MethodGetTeamAccountInvites
RequestGetTeamAccountInvitesRequest
ResponseGetTeamAccountInvitesResponse
Description

RemoveTeamAccountInvite

MethodRemoveTeamAccountInvite
RequestRemoveTeamAccountInviteRequest
ResponseRemoveTeamAccountInviteResponse
Description

AcceptTeamAccountInvite

MethodAcceptTeamAccountInvite
RequestAcceptTeamAccountInviteRequest
ResponseAcceptTeamAccountInviteResponse
Description

GetSystemInformation

MethodGetSystemInformation
RequestGetSystemInformationRequest
ResponseGetSystemInformationResponse
Description

GetAccountOnboardingConfig

MethodGetAccountOnboardingConfig
RequestGetAccountOnboardingConfigRequest
ResponseGetAccountOnboardingConfigResponse
Description

SetAccountOnboardingConfig

MethodSetAccountOnboardingConfig
RequestSetAccountOnboardingConfigRequest
ResponseSetAccountOnboardingConfigResponse
Description

GetAccountStatus

MethodGetAccountStatus
RequestGetAccountStatusRequest
ResponseGetAccountStatusResponse
DescriptionReturns different metrics on the account status for the active billing period

IsAccountStatusValid

MethodIsAccountStatusValid
RequestIsAccountStatusValidRequest
ResponseIsAccountStatusValidResponse
DescriptionDistils the account status down to whether not it is in a valid state.

GetAccountBillingCheckoutSession

MethodGetAccountBillingCheckoutSession
RequestGetAccountBillingCheckoutSessionRequest
ResponseGetAccountBillingCheckoutSessionResponse
DescriptionReturns a new checkout session for the account to subscribe

GetAccountBillingPortalSession

MethodGetAccountBillingPortalSession
RequestGetAccountBillingPortalSessionRequest
ResponseGetAccountBillingPortalSessionResponse
DescriptionReturns a new billing portal session if the account has a billing customer id

GetBillingAccounts

MethodGetBillingAccounts
RequestGetBillingAccountsRequest
ResponseGetBillingAccountsResponse
DescriptionReturns user accounts that have a billing id.

SetBillingMeterEvent

MethodSetBillingMeterEvent
RequestSetBillingMeterEventRequest
ResponseSetBillingMeterEventResponse
DescriptionSends a new metered event to the billing system