Documentation
¶
Overview ¶
Package common provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT.
Index ¶
- Constants
- type AdditionalPayload
- type AllTypes
- type AppType
- type AuthMethod
- type AuthMethods
- type ClientInfo
- type Created
- type Deleted
- type DeviceID
- type EmailCodeID
- type EmailID
- type EmailLinkID
- type ErrorRsp
- type Filter
- type FullUser
- type GenericRsp
- type HighEntropyValues
- type ID
- type IdentifierType
- type LoginIdentifierConfig
- type LoginIdentifierConfigEnforceVerification
- type LoginIdentifierType
- type Page
- type PageSize
- type Paging
- type PhoneNumberID
- type ProjectID
- type RemoteAddress
- type RequestData
- type RequestID
- type SessionID
- type SessionManagement
- type SocialProviderType
- type Sort
- type Status
- type UnusedParams
- type Updated
- type UserAgent
- type UserEmail
- type UserID
- type UserPhoneNumber
- type UserSocialAccount
- type UserUsername
Constants ¶
const (
ProjectIDScopes = "projectID.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionalPayload ¶
type AdditionalPayload = string
AdditionalPayload Additional payload in JSON format
type AllTypes ¶
type AllTypes struct { P1 *Paging `json:"p1,omitempty"` // P10 Timestamp of when the entity was deleted in yyyy-MM-dd'T'HH:mm:ss format P10 *Deleted `json:"p10,omitempty"` // P11 ID of the device P11 *DeviceID `json:"p11,omitempty"` // P12 Additional payload in JSON format P12 *AdditionalPayload `json:"p12,omitempty"` // P13 Generic status that can describe Corbado entities P13 *Status `json:"p13,omitempty"` // P14 ID of project P14 *ProjectID `json:"p14,omitempty"` // P15 Unique ID of request, you can provide your own while making the request, if not the ID will be randomly generated on server side P15 *RequestID `json:"p15,omitempty"` P16 *ErrorRsp `json:"p16,omitempty"` P17 *AuthMethods `json:"p17,omitempty"` // P18 User entry with emails and phone numbers P18 *FullUser `json:"p18,omitempty"` // P19 Login Identifier type (deprecated) P19 *LoginIdentifierType `json:"p19,omitempty"` P2 *ClientInfo `json:"p2,omitempty"` // P20 ID of the email OTP P20 *EmailCodeID `json:"p20,omitempty"` // P21 Application type P21 *AppType `json:"p21,omitempty"` // P22 What session management should be used P22 *SessionManagement `json:"p22,omitempty"` // P23 High entropy values from browser P23 *HighEntropyValues `json:"p23,omitempty"` P24 *LoginIdentifierConfig `json:"p24,omitempty"` P25 *SocialProviderType `json:"p25,omitempty"` // P26 Login Identifier type P26 *IdentifierType `json:"p26,omitempty"` // P3 generic ID P3 *ID `json:"p3,omitempty"` // P4 ID of the user P4 *UserID `json:"p4,omitempty"` // P5 ID of the email P5 *EmailID `json:"p5,omitempty"` // P6 ID of the email magic link P6 *EmailLinkID `json:"p6,omitempty"` // P7 ID of the phone number P7 *PhoneNumberID `json:"p7,omitempty"` // P8 Timestamp of when the entity was created in yyyy-MM-dd'T'HH:mm:ss format P8 *Created `json:"p8,omitempty"` // P9 Timestamp of when the entity was last updated in yyyy-MM-dd'T'HH:mm:ss format P9 *Updated `json:"p9,omitempty"` }
AllTypes defines model for allTypes.
type AuthMethod ¶
type AuthMethod string
AuthMethod Authentication methods
const ( AuthMethodEmail AuthMethod = "email" AuthMethodPassword AuthMethod = "password" AuthMethodPhoneNumber AuthMethod = "phone_number" AuthMethodWebauthn AuthMethod = "webauthn" )
Defines values for AuthMethod.
type ClientInfo ¶
type ClientInfo struct { // RemoteAddress client's IP address RemoteAddress string `json:"remoteAddress"` // UserAgent client's User Agent UserAgent string `json:"userAgent"` }
ClientInfo defines model for clientInfo.
type Created ¶
type Created = string
Created Timestamp of when the entity was created in yyyy-MM-dd'T'HH:mm:ss format
type Deleted ¶
type Deleted = string
Deleted Timestamp of when the entity was deleted in yyyy-MM-dd'T'HH:mm:ss format
type ErrorRsp ¶
type ErrorRsp struct { Data *map[string]interface{} `json:"data,omitempty"` Error struct { // Details Details of error Details *string `json:"details,omitempty"` // Links Additional links to help understand the error Links []string `json:"links"` // Type Type of error Type string `json:"type"` // Validation Validation errors per field Validation *[]struct { Field string `json:"field"` Message string `json:"message"` } `json:"validation,omitempty"` } `json:"error"` // HttpStatusCode HTTP status code of operation HttpStatusCode int32 `json:"httpStatusCode"` Message string `json:"message"` // RequestData Data about the request itself, can be used for debugging RequestData RequestData `json:"requestData"` // Runtime Runtime in seconds for this request Runtime float32 `json:"runtime"` }
ErrorRsp defines model for errorRsp.
type FullUser ¶
type FullUser struct { // ID ID of the user ID UserID `json:"ID"` // Created Timestamp of when the entity was created in yyyy-MM-dd'T'HH:mm:ss format Created Created `json:"created"` Emails []UserEmail `json:"emails"` FullName string `json:"fullName"` Name string `json:"name"` PhoneNumbers []UserPhoneNumber `json:"phoneNumbers"` SocialAccounts []UserSocialAccount `json:"socialAccounts"` // Status Generic status that can describe Corbado entities Status Status `json:"status"` // Updated Timestamp of when the entity was last updated in yyyy-MM-dd'T'HH:mm:ss format Updated Updated `json:"updated"` Usernames []UserUsername `json:"usernames"` }
FullUser User entry with emails and phone numbers
type GenericRsp ¶
type GenericRsp struct { // HttpStatusCode HTTP status code of operation HttpStatusCode int32 `json:"httpStatusCode"` Message string `json:"message"` // RequestData Data about the request itself, can be used for debugging RequestData RequestData `json:"requestData"` // Runtime Runtime in seconds for this request Runtime float32 `json:"runtime"` }
GenericRsp defines model for genericRsp.
type HighEntropyValues ¶
type HighEntropyValues struct { // Mobile Mobile Mobile bool `json:"mobile"` // Platform Platform Platform string `json:"platform"` // PlatformVersion Platform version PlatformVersion string `json:"platformVersion"` }
HighEntropyValues High entropy values from browser
type IdentifierType ¶
type IdentifierType string
IdentifierType Login Identifier type
const ( IdentifierTypeEmail IdentifierType = "email" IdentifierTypePhone IdentifierType = "phone" IdentifierTypeUsername IdentifierType = "username" )
Defines values for IdentifierType.
type LoginIdentifierConfig ¶
type LoginIdentifierConfig struct { EnforceVerification LoginIdentifierConfigEnforceVerification `json:"enforceVerification"` Metadata *map[string]interface{} `json:"metadata,omitempty"` // Type Login Identifier type Type IdentifierType `json:"type"` UseAsLoginIdentifier bool `json:"useAsLoginIdentifier"` }
LoginIdentifierConfig defines model for loginIdentifierConfig.
type LoginIdentifierConfigEnforceVerification ¶
type LoginIdentifierConfigEnforceVerification string
LoginIdentifierConfigEnforceVerification defines model for LoginIdentifierConfig.EnforceVerification.
const ( AtFirstLogin LoginIdentifierConfigEnforceVerification = "at_first_login" None LoginIdentifierConfigEnforceVerification = "none" Signup LoginIdentifierConfigEnforceVerification = "signup" )
Defines values for LoginIdentifierConfigEnforceVerification.
type LoginIdentifierType ¶
type LoginIdentifierType string
LoginIdentifierType Login Identifier type (deprecated)
const ( Custom LoginIdentifierType = "custom" Email LoginIdentifierType = "email" PhoneNumber LoginIdentifierType = "phone_number" )
Defines values for LoginIdentifierType.
type Paging ¶
type Paging struct { // Page current page returned in response Page int `json:"page"` // TotalItems total number of items available TotalItems int `json:"totalItems"` // TotalPages total number of pages available TotalPages int `json:"totalPages"` }
Paging defines model for paging.
type RequestData ¶
type RequestData struct { // Link Link to dashboard with details about request Link string `json:"link"` // RequestID Unique ID of request, you can provide your own while making the request, if not the ID will be randomly generated on server side RequestID RequestID `json:"requestID"` }
RequestData Data about the request itself, can be used for debugging
type RequestID ¶
type RequestID = string
RequestID Unique ID of request, you can provide your own while making the request, if not the ID will be randomly generated on server side
type SessionManagement ¶
type SessionManagement string
SessionManagement What session management should be used
const ( SessionManagementCorbado SessionManagement = "SessionManagementCorbado" SessionManagementOwn SessionManagement = "SessionManagementOwn" )
Defines values for SessionManagement.
type SocialProviderType ¶
type SocialProviderType string
SocialProviderType defines model for socialProviderType.
const ( Github SocialProviderType = "github" Google SocialProviderType = "google" Microsoft SocialProviderType = "microsoft" )
Defines values for SocialProviderType.
type UnusedParams ¶
type UnusedParams struct { // RemoteAddress Client's remote address RemoteAddress *RemoteAddress `form:"remoteAddress,omitempty" json:"remoteAddress,omitempty"` // UserAgent Client's user agent UserAgent *UserAgent `form:"userAgent,omitempty" json:"userAgent,omitempty"` // Sort Field sorting Sort *Sort `form:"sort,omitempty" json:"sort,omitempty"` // Filter Field filtering Filter *Filter `form:"filter[],omitempty" json:"filter[],omitempty"` // Page Page number Page *Page `form:"page,omitempty" json:"page,omitempty"` // PageSize Number of items per page PageSize *PageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"` }
UnusedParams defines parameters for Unused.
type Updated ¶
type Updated = string
Updated Timestamp of when the entity was last updated in yyyy-MM-dd'T'HH:mm:ss format
type UserEmail ¶
type UserEmail struct { // ID generic ID ID ID `json:"ID"` // Created Timestamp of when the entity was created in yyyy-MM-dd'T'HH:mm:ss format Created Created `json:"created"` Email string `json:"email"` // Status Generic status that can describe Corbado entities Status Status `json:"status"` // Updated Timestamp of when the entity was last updated in yyyy-MM-dd'T'HH:mm:ss format Updated Updated `json:"updated"` }
UserEmail User's email
type UserPhoneNumber ¶
type UserPhoneNumber struct { // ID generic ID ID ID `json:"ID"` // Created Timestamp of when the entity was created in yyyy-MM-dd'T'HH:mm:ss format Created Created `json:"created"` PhoneNumber string `json:"phoneNumber"` // Status Generic status that can describe Corbado entities Status Status `json:"status"` // Updated Timestamp of when the entity was last updated in yyyy-MM-dd'T'HH:mm:ss format Updated Updated `json:"updated"` }
UserPhoneNumber User's phone number
type UserSocialAccount ¶
type UserSocialAccount struct { AvatarUrl string `json:"avatarUrl"` FullName string `json:"fullName"` IdentifierValue string `json:"identifierValue"` ProviderType SocialProviderType `json:"providerType"` }
UserSocialAccount User's social account
type UserUsername ¶
type UserUsername struct { // ID generic ID ID ID `json:"ID"` // Created Timestamp of when the entity was created in yyyy-MM-dd'T'HH:mm:ss format Created Created `json:"created"` // Status Generic status that can describe Corbado entities Status Status `json:"status"` // Updated Timestamp of when the entity was last updated in yyyy-MM-dd'T'HH:mm:ss format Updated Updated `json:"updated"` Username string `json:"username"` }
UserUsername User's username