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
roleAccountRoleThe role of the user to invite. Only used if RBAC is enabled.

AccountOnboardingConfig

NameTypeDescription
has_created_source_connectionbool@deprecated - use has_completed_onboarding
has_created_destination_connectionbool@deprecated - use has_completed_onboarding
has_created_jobbool@deprecated - use has_completed_onboarding
has_invited_membersbool@deprecated - use has_completed_onboarding
has_completed_onboardingbool

AccountTemporalConfig

NameTypeDescription
urlstring
namespacestring
sync_job_queue_namestring

AccountUser

NameTypeDescription
idstring
namestring
imagestring
emailstring
roleAccountRoleThe role of the user in the account. If RBAC is not enabled, will be unspecified.

ConvertPersonalToTeamAccountRequest

NameTypeDescription
namestringThe name of the team account
account_idoptional stringOptionally provide the personal account to convert. This may be used in break-glass scenarios where there are multiple personal accounts And we want to convert one of them. If not provided, it will find the first one and convert it, leaving the other.

ConvertPersonalToTeamAccountResponse

NameTypeDescription
account_idstringThe id of the team account (will be the same identifier as the personal account)
checkout_session_urloptional stringIf NeosyncCloud, will respond with a checkout session url so they can setup billing
new_personal_account_idstringThe identifier of the newly created personal account

CreateTeamAccountRequest

NameTypeDescription
namestringThe name of the team account

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_idstringThe account id to invite the user to
emailstringThe email of the user to invite
roleoptional AccountRoleThe role of the user to invite. Only used if RBAC is enabled.

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
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. @deprecated
allowed_record_countoptional uint64The allowed record count. It will be null if there is no limit. @deprecated
account_statusAccountStatusThe current status of the account. Default is valid.
trial_expires_atoptional google.protobuf.TimestampThe time when the trial expires

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

SetUserRoleRequest

NameTypeDescription
account_idstringThe account id to apply this role to
user_idstringThe user that this will be applied to
roleAccountRoleThe role that this user will obtain

SetUserRoleResponse

NameTypeDescription

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

AccountRole

NameNumberDescription
ACCOUNT_ROLE_UNSPECIFIED0Default value, this should not be used, but will default to ACCOUNT_ROLE_JOB_VIEWER
ACCOUNT_ROLE_ADMIN1Admin, can do anything in the account.
ACCOUNT_ROLE_JOB_DEVELOPER2Can view, edit jobs and connections
ACCOUNT_ROLE_JOB_VIEWER3Can view
ACCOUNT_ROLE_JOB_EXECUTOR4Can view and execute

AccountStatus

NameNumberDescription
ACCOUNT_STATUS_REASON_UNSPECIFIED0Default value, should be used when no reason is specified
ACCOUNT_STATUS_EXCEEDS_ALLOWED_LIMIT1@deprecated - Current usage exceeds allowed limit
ACCOUNT_STATUS_REQUESTED_EXCEEDS_LIMIT2@deprecated - Adding requested records exceeds the allowed limit
ACCOUNT_STATUS_ACCOUNT_IN_EXPIRED_STATE3Account is currently in an expired state
ACCOUNT_STATUS_ACCOUNT_TRIAL_ACTIVE4The account is currently in an active trial period
ACCOUNT_STATUS_ACCOUNT_TRIAL_EXPIRED5The account is past the active trial period

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
BILLING_STATUS_TRIAL_ACTIVE3The account does not have an active subscription and is in a valid trial period
BILLING_STATUS_TRIAL_EXPIRED4The account does not have an active subscription and the trial period has ended

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
DescriptionConvert a personal account to a team account retaining all of the jobs and connections. This will also create a new empty personal account.

CreateTeamAccount

MethodCreateTeamAccount
RequestCreateTeamAccountRequest
ResponseCreateTeamAccountResponse
DescriptionCreates a new team account

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

SetUserRole

MethodSetUserRole
RequestSetUserRoleRequest
ResponseSetUserRoleResponse
DescriptionSets the users role