davinci

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: BSD-3-Clause Imports: 18 Imported by: 1

Documentation

Overview

Davinci Admin API GO Client

This package is go client to be used for interacting with PingOne DaVinci Administrative APIs. Use cases include: - Creating Connections - Importing Flows

Index

Constants

View Source
const (
	DV_ERROR_CODE_INVALID_TOKEN_FOR_ENVIRONMENT = 1998 // Token does validate, but not for the target environment, indicating a re-auth is needed
	DV_ERROR_CODE_INVALID_TOKEN                 = 1999 // Token does not validate at all
	DV_ERROR_CODE_APPLICATION_NOT_FOUND         = 3004 // Application not found
	DV_ERROR_CODE_ERROR_CREATING_CONNECTOR      = 7001 // Error creating connector
	DV_ERROR_CODE_CONNECTION_NOT_FOUND          = 7005 // Connector not found
	DV_ERROR_CODE_FLOW_NOT_FOUND                = -1
)

Variables

This section is empty.

Functions

func Diff added in v0.1.0

func Diff(x, y interface{}, cmpOpts ExportCmpOpts, opts ...cmp.Option) string

func Equal added in v0.1.0

func Equal(x, y interface{}, cmpOpts ExportCmpOpts, opts ...cmp.Option) bool

func Marshal added in v0.1.0

func Marshal(v any, opts ExportCmpOpts) (bytes []byte, err error)

func Unmarshal added in v0.1.0

func Unmarshal(bytes []byte, v any, opts ExportCmpOpts) (err error)

func ValidExport added in v0.1.0

func ValidExport(data []byte, cmpOpts ExportCmpOpts) bool

func ValidFlowExport added in v0.1.0

func ValidFlowExport(data []byte, cmpOpts ExportCmpOpts) bool

func ValidFlowInfoExport added in v0.1.0

func ValidFlowInfoExport(data []byte, cmpOpts ExportCmpOpts) bool

func ValidFlowsInfoExport added in v0.1.0

func ValidFlowsInfoExport(data []byte, cmpOpts ExportCmpOpts) bool

Types

type APIClient

type APIClient struct {
	HostURL       string
	PingOneRegion string
	HTTPClient    *http.Client
	Token         string
	Auth          AuthStruct

	PingOneSSOEnvId string
	AuthRefresh     bool
	UserAgent       string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(inputs *ClientInput) (*APIClient, error)

func (*APIClient) CreateApplication

func (c *APIClient) CreateApplication(companyId string, appName string) (*App, error)

func (*APIClient) CreateApplicationWithResponse added in v0.1.0

func (c *APIClient) CreateApplicationWithResponse(companyId string, appName string) (*App, *http.Response, error)

func (*APIClient) CreateConnection

func (c *APIClient) CreateConnection(companyId string, payload *Connection) (*Connection, error)

Create a bare connection, properties can be added _after_ creation

func (*APIClient) CreateConnectionWithResponse added in v0.1.0

func (c *APIClient) CreateConnectionWithResponse(companyId string, payload *Connection) (*Connection, *http.Response, error)

func (*APIClient) CreateFlow added in v0.1.0

func (c *APIClient) CreateFlow(companyId string, payload interface{}) (*Flow, error)

func (*APIClient) CreateFlowPolicy added in v0.0.30

func (c *APIClient) CreateFlowPolicy(companyId string, appId string, policy Policy) (*App, error)

func (*APIClient) CreateFlowPolicyWithResponse added in v0.1.0

func (c *APIClient) CreateFlowPolicyWithResponse(companyId string, appId string, policy Policy) (*App, *http.Response, error)

func (*APIClient) CreateFlowWithJson deprecated

func (c *APIClient) CreateFlowWithJson(companyId string, payloadJson *string) (*Flow, error)

Deprecated: Use CreateFlowWithResponse(companyId string, payload interface{}) instead

func (*APIClient) CreateFlowWithJsonWithResponse deprecated added in v0.1.0

func (c *APIClient) CreateFlowWithJsonWithResponse(companyId string, payloadJson *string) (*Flow, *http.Response, error)

Deprecated: Use CreateFlowWithResponse(companyId string, payload interface{}) instead

func (*APIClient) CreateFlowWithResponse added in v0.1.0

func (c *APIClient) CreateFlowWithResponse(companyId string, payload interface{}) (*Flow, *http.Response, error)

CreateFlowWithResponse creates a flow with the given payload and returns the created flow. The payload can be a string (or *string) of JSON, or a FlowsImport, FlowImport, or Flow object

func (*APIClient) CreateInitializedApplication

func (c *APIClient) CreateInitializedApplication(companyId string, payload *AppUpdate) (*App, error)

CreateInitializedApplication is useful when creating an application with flow policy. Takes an app payload and calls: - CreateApplication - UpdateApplication - CreateFlowPolicy Deprecated

func (*APIClient) CreateInitializedApplicationWithResponse added in v0.1.0

func (c *APIClient) CreateInitializedApplicationWithResponse(companyId string, payload *AppUpdate) (*App, *http.Response, error)

Deprecated

func (*APIClient) CreateInitializedConnection

func (c *APIClient) CreateInitializedConnection(companyId string, payload *Connection) (*Connection, error)

Create a connection and fill connection properties

Sample minimal payload:
&Connection{
	ConnectorID: "fooConnector"
	Name: "Foo Connector"
	Properties: Properties{
		"foo": struct {
			Value string `json:"value"`
		}{"bar"}
	}
}

func (*APIClient) CreateInitializedConnectionWithResponse added in v0.1.0

func (c *APIClient) CreateInitializedConnectionWithResponse(companyId string, payload *Connection) (*Connection, *http.Response, error)

func (*APIClient) CreateVariable added in v0.0.27

func (c *APIClient) CreateVariable(companyId string, variable *VariablePayload) (map[string]Variable, error)

func (*APIClient) CreateVariableWithResponse added in v0.1.0

func (c *APIClient) CreateVariableWithResponse(companyId string, variable *VariablePayload) (map[string]Variable, *http.Response, error)

func (*APIClient) DeleteApplication

func (c *APIClient) DeleteApplication(companyId string, appId string) (*Message, error)

Deletes an application based on applicationId

func (*APIClient) DeleteApplicationWithResponse added in v0.1.0

func (c *APIClient) DeleteApplicationWithResponse(companyId string, appId string) (*Message, *http.Response, error)

func (*APIClient) DeleteConnection

func (c *APIClient) DeleteConnection(companyId string, connectionId string) (*Message, error)

Deletes a connection based on ConnectionId

func (*APIClient) DeleteConnectionWithResponse added in v0.1.0

func (c *APIClient) DeleteConnectionWithResponse(companyId string, connectionId string) (*Message, *http.Response, error)

func (*APIClient) DeleteFlow

func (c *APIClient) DeleteFlow(companyId string, flowId string) (*Message, error)

ReadFlows only accepts Limit as a param

func (*APIClient) DeleteFlowPolicy added in v0.0.30

func (c *APIClient) DeleteFlowPolicy(companyId string, appId string, policyId string) (*Message, error)

Deletes an application based on applicationId

func (*APIClient) DeleteFlowPolicyWithResponse added in v0.1.0

func (c *APIClient) DeleteFlowPolicyWithResponse(companyId string, appId string, policyId string) (*Message, *http.Response, error)

func (*APIClient) DeleteFlowWithResponse added in v0.1.0

func (c *APIClient) DeleteFlowWithResponse(companyId string, flowId string) (*Message, *http.Response, error)

func (*APIClient) DeleteVariable added in v0.0.27

func (c *APIClient) DeleteVariable(companyId string, variableName string) (*Message, error)

func (*APIClient) DeleteVariableWithResponse added in v0.1.0

func (c *APIClient) DeleteVariableWithResponse(companyId string, variableName string) (*Message, *http.Response, error)

func (*APIClient) DeployFlow

func (c *APIClient) DeployFlow(companyId string, flowId string) (*Message, error)

ReadFlows only accepts Limit as a param

func (*APIClient) DeployFlowWithResponse added in v0.1.0

func (c *APIClient) DeployFlowWithResponse(companyId string, flowId string) (*Message, *http.Response, error)

func (*APIClient) DoSignIn added in v0.1.0

func (c *APIClient) DoSignIn(targetCompanyId *string) error

func (*APIClient) ReadApplication

func (c *APIClient) ReadApplication(companyId string, appId string) (*App, error)

func (*APIClient) ReadApplicationWithResponse added in v0.1.0

func (c *APIClient) ReadApplicationWithResponse(companyId string, appId string) (*App, *http.Response, error)

func (*APIClient) ReadApplications

func (c *APIClient) ReadApplications(companyId string, args *Params) ([]App, error)

ReadFlows only accepts Limit as a param

func (*APIClient) ReadApplicationsWithResponse added in v0.1.0

func (c *APIClient) ReadApplicationsWithResponse(companyId string, args *Params) ([]App, *http.Response, error)

func (*APIClient) ReadConnection

func (c *APIClient) ReadConnection(companyId string, connectionId string) (*Connection, error)

Gets single connections based on ConnectionId

func (*APIClient) ReadConnectionWithResponse added in v0.1.0

func (c *APIClient) ReadConnectionWithResponse(companyId string, connectionId string) (*Connection, *http.Response, error)

func (*APIClient) ReadConnections

func (c *APIClient) ReadConnections(companyId string, args *Params) ([]Connection, error)

Gets array of all connections for the provided company

func (*APIClient) ReadConnectionsWithResponse added in v0.1.0

func (c *APIClient) ReadConnectionsWithResponse(companyId string, args *Params) ([]Connection, *http.Response, error)

func (*APIClient) ReadConnector added in v0.0.49

func (c *APIClient) ReadConnector(companyId string, connectorId string) (*Connector, error)

Gets single connections based on ConnectionId

func (*APIClient) ReadConnectorWithResponse added in v0.1.0

func (c *APIClient) ReadConnectorWithResponse(companyId string, connectorId string) (*Connector, *http.Response, error)

func (*APIClient) ReadConnectors added in v0.0.49

func (c *APIClient) ReadConnectors(companyId *string, args *Params) ([]Connector, error)

Gets array of all connectors for the provided company

func (*APIClient) ReadConnectorsWithResponse added in v0.1.0

func (c *APIClient) ReadConnectorsWithResponse(companyId string, args *Params) ([]Connector, *http.Response, error)

func (*APIClient) ReadEnvironment

func (c *APIClient) ReadEnvironment(companyId string) (*Environment, error)

func (*APIClient) ReadEnvironmentWithResponse added in v0.1.0

func (c *APIClient) ReadEnvironmentWithResponse(companyId string) (*Environment, *http.Response, error)

func (*APIClient) ReadEnvironments

func (c *APIClient) ReadEnvironments() (*Environments, error)

Returns list of Environments (auth required)

func (*APIClient) ReadEnvironmentsWithResponse added in v0.1.0

func (c *APIClient) ReadEnvironmentsWithResponse() (*Environments, *http.Response, error)

func (*APIClient) ReadEnvironmentstats

func (c *APIClient) ReadEnvironmentstats(companyId string) (*EnvironmentStats, error)

func (*APIClient) ReadEnvironmentstatsWithResponse added in v0.1.0

func (c *APIClient) ReadEnvironmentstatsWithResponse(companyId string) (*EnvironmentStats, *http.Response, error)

func (*APIClient) ReadFlow

func (c *APIClient) ReadFlow(companyId string, flowId string) (*FlowInfo, error)

ReadFlow performs a GET with no other parameters to get the latest version of the flow

func (*APIClient) ReadFlowVersion added in v0.0.46

func (c *APIClient) ReadFlowVersion(companyId string, flowId string, flowVersion *string) (*FlowInfo, error)

ReadFlowVersion is like ReadFlow, but appends a version query parameter. When called with no version, this returns what a flow export produces. version should be a string version of the version number, or nil for latest.

func (*APIClient) ReadFlowVersionWithResponse added in v0.1.0

func (c *APIClient) ReadFlowVersionWithResponse(companyId string, flowId string, flowVersion *string) (*FlowInfo, *http.Response, error)

func (*APIClient) ReadFlowWithResponse added in v0.1.0

func (c *APIClient) ReadFlowWithResponse(companyId string, flowId string) (*FlowInfo, *http.Response, error)

func (*APIClient) ReadFlows

func (c *APIClient) ReadFlows(companyId string, args *Params) ([]Flow, error)

ReadFlows only accepts Limit as a param

func (*APIClient) ReadFlowsWithResponse added in v0.1.0

func (c *APIClient) ReadFlowsWithResponse(companyId string, args *Params) ([]Flow, *http.Response, error)

func (*APIClient) ReadVariable added in v0.0.27

func (c *APIClient) ReadVariable(companyId string, variableName string) (map[string]Variable, error)

func (*APIClient) ReadVariableWithResponse added in v0.1.0

func (c *APIClient) ReadVariableWithResponse(companyId string, variableName string) (map[string]Variable, *http.Response, error)

func (*APIClient) ReadVariables added in v0.0.27

func (c *APIClient) ReadVariables(companyId string, args *Params) (map[string]Variable, error)

func (*APIClient) ReadVariablesWithResponse added in v0.1.0

func (c *APIClient) ReadVariablesWithResponse(companyId string, args *Params) (map[string]Variable, *http.Response, error)

func (*APIClient) SetEnvironment

func (c *APIClient) SetEnvironment(companyId string) (*Message, error)

func (*APIClient) SetEnvironmentWithResponse added in v0.1.0

func (c *APIClient) SetEnvironmentWithResponse(companyId string) (*Message, *http.Response, error)

func (*APIClient) SignInSSO

func (c *APIClient) SignInSSO(targetEnvironmentID *string) (*AuthResponse, error)

func (*APIClient) SignInSSOWithResponse added in v0.1.0

func (c *APIClient) SignInSSOWithResponse(targetEnvironmentID *string) (*AuthResponse, *http.Response, error)

func (*APIClient) UpdateApplication

func (c *APIClient) UpdateApplication(companyId string, payload *AppUpdate) (*App, error)

UpdateApplication - Update all fields of an application besides Policies. Policies should be updated via UpdatePolicy

func (*APIClient) UpdateApplicationWithResponse added in v0.1.0

func (c *APIClient) UpdateApplicationWithResponse(companyId string, payload *AppUpdate) (*App, *http.Response, error)

func (*APIClient) UpdateConnection

func (c *APIClient) UpdateConnection(companyId string, payload *Connection) (*Connection, error)

Update existing connection properties.

Sample minimal payload:
&Connection{
	ConnectionID: "foo-123"
	Properties: Properties{
		"foo": struct {
			Value string `json:"value"`
		}{"bar"}
	}
}

func (*APIClient) UpdateConnectionWithResponse added in v0.1.0

func (c *APIClient) UpdateConnectionWithResponse(companyId string, payload *Connection) (*Connection, *http.Response, error)

func (*APIClient) UpdateFlow added in v0.1.0

func (c *APIClient) UpdateFlow(companyId string, flowId string, payload interface{}) (*Flow, error)

Only specific fields are supported during update: - GraphData - InputSchema - CurrentVersion - Name

func (*APIClient) UpdateFlowPolicy added in v0.0.30

func (c *APIClient) UpdateFlowPolicy(companyId string, appId string, policy Policy) (*App, error)

func (*APIClient) UpdateFlowPolicyWithResponse added in v0.1.0

func (c *APIClient) UpdateFlowPolicyWithResponse(companyId string, appId string, policy Policy) (*App, *http.Response, error)

func (*APIClient) UpdateFlowWithJson deprecated

func (c *APIClient) UpdateFlowWithJson(companyId string, payloadJson *string, flowId string) (*Flow, error)

Deprecated: Use UpdateFlowWithResponse(companyId string, flowId string, payload interface{}) instead

func (*APIClient) UpdateFlowWithJsonWithResponse deprecated added in v0.1.0

func (c *APIClient) UpdateFlowWithJsonWithResponse(companyId string, payloadJson *string, flowId string) (*Flow, *http.Response, error)

Deprecated: Use UpdateFlowWithResponse(companyId string, flowId string, payload interface{}) instead

func (*APIClient) UpdateFlowWithResponse added in v0.1.0

func (c *APIClient) UpdateFlowWithResponse(companyId string, flowId string, payload interface{}) (*Flow, *http.Response, error)

func (*APIClient) UpdateVariable added in v0.0.27

func (c *APIClient) UpdateVariable(companyId string, variable *VariablePayload) (map[string]Variable, error)

UpdateVariable can update fields besides Name and Context

func (*APIClient) UpdateVariableWithResponse added in v0.1.0

func (c *APIClient) UpdateVariableWithResponse(companyId string, variable *VariablePayload) (map[string]Variable, *http.Response, error)

type APIKeys

type APIKeys struct {
	Prod *string `json:"prod,omitempty"`
	Test *string `json:"test,omitempty"`
}

type AccountConfigViewItems added in v0.0.49

type AccountConfigViewItems struct {
	PropertyName *string `json:"propertyName,omitempty"`
}

type AdditionalProperties added in v0.1.0

type AdditionalProperties map[string]interface{}

type App

type App struct {
	CompanyID     *string       `json:"companyId,omitempty"`
	Name          string        `json:"name"`
	CustomerID    *string       `json:"customerId,omitempty"`
	APIKeys       *APIKeys      `json:"apiKeys,omitempty"`
	Metadata      *Metadata     `json:"metadata,omitempty"`
	UserPools     []UserPools   `json:"userPools,omitempty"`
	Oauth         *Oauth        `json:"oauth,omitempty"`
	Saml          *Saml         `json:"saml,omitempty"`
	Flows         []interface{} `json:"flows,omitempty"`
	Policies      []Policy      `json:"policies,omitempty"`
	CreatedDate   *EpochTime    `json:"createdDate,omitempty"`
	APIKeyEnabled *bool         `json:"apiKeyEnabled,omitempty"`
	AppID         *string       `json:"appId,omitempty"`
	UserPortal    *UserPortal   `json:"userPortal,omitempty"`
}

type AppUpdate

type AppUpdate struct {
	Name          string        `json:"name"`
	Oauth         *Oauth        `json:"oauth,omitempty"`
	Saml          *Saml         `json:"saml,omitempty"`
	Flows         []interface{} `json:"flows,omitempty"`
	Policies      []Policy      `json:"policies,omitempty"`
	APIKeyEnabled bool          `json:"apiKeyEnabled"`
	AppID         *string       `json:"appId,omitempty"`
	UserPortal    *UserPortal   `json:"userPortal,omitempty"`
}

type Apps

type Apps struct {
	Apps []App `json:"apps,omitempty"`
}

type AuthP1SSO

type AuthP1SSO struct {
	PingOneAdminEnvId  *string `json:"envId,omitempty"`
	PingOneTargetEnvId *string `json:"targetEnvId,omitempty"`
}

type AuthResponse

type AuthResponse struct {
	AccessToken     string `json:"access_token"`
	TokenType       string `json:"token_type"`
	Status          string `json:"status"`
	CustomerID      string `json:"customerId"`
	TryFlowToken    string `json:"tryFlowToken"`
	SelectedCompany string `json:"selectedCompany"`
}

type AuthStruct

type AuthStruct struct {
	Username string `json:"email"`
	Password string `json:"password"`
}

type AuthTypeDropdown added in v0.0.37

type AuthTypeDropdown struct {
	DisplayName          *string   `json:"displayName,omitempty"`
	PreferredControlType *string   `json:"preferredControlType,omitempty"`
	Required             *bool     `json:"required,omitempty"`
	Options              []Options `json:"options,omitempty"`
	Enum                 []string  `json:"enum,omitempty"`
	Value                *string   `json:"value,omitempty"`
	Placeholder          *string   `json:"placeholder,omitempty"`
}

type AuthorizationEndpoint added in v0.0.37

type AuthorizationEndpoint struct {
	DisplayName          *string `json:"displayName,omitempty"`
	PreferredControlType *string `json:"preferredControlType,omitempty"`
	Required             *bool   `json:"required,omitempty"`
	Value                *string `json:"value,omitempty"`
	Placeholder          *string `json:"placeholder,omitempty"`
}

type BearerToken added in v0.0.37

type BearerToken struct {
	PreferredControlType *string `json:"preferredControlType,omitempty"`
	Type                 *string `json:"type,omitempty"`
	DisplayName          *string `json:"displayName,omitempty"`
	Info                 *string `json:"info,omitempty"`
	Value                *string `json:"value,omitempty"`
	Placeholder          *string `json:"placeholder,omitempty"`
}

type Callback

type Callback struct {
	InteractionID    string `json:"interactionId"`
	CompanyID        string `json:"companyId"`
	ConnectionID     string `json:"connectionId"`
	ConnectorID      string `json:"connectorId"`
	ID               string `json:"id"`
	CapabilityName   string `json:"capabilityName"`
	AccessToken      string `json:"access_token"`
	TokenType        string `json:"token_type"`
	ExpiresIn        int    `json:"expires_in"`
	IDToken          string `json:"id_token"`
	Success          bool   `json:"success"`
	InteractionToken string `json:"interactionToken"`
}

type Client

type Client struct {
	HostURL     string
	HTTPClient  *http.Client
	Token       string
	Auth        AuthStruct
	CompanyID   string
	AuthP1SSO   AuthP1SSO
	AuthRefresh bool
}

type ClientID added in v0.0.37

type ClientID struct {
	DisplayName          *string `json:"displayName,omitempty"`
	PreferredControlType *string `json:"preferredControlType,omitempty"`
	Required             *bool   `json:"required,omitempty"`
	Value                *string `json:"value,omitempty"`
	Placeholder          *string `json:"placeholder,omitempty"`
}

type ClientInput

type ClientInput struct {
	HostURL         string
	PingOneRegion   string
	Username        string
	Password        string
	PingOneSSOEnvId string
	AccessToken     string
	UserAgent       string
}

type ClientSecret added in v0.0.37

type ClientSecret struct {
	DisplayName          *string `json:"displayName,omitempty"`
	PreferredControlType *string `json:"preferredControlType,omitempty"`
	HashedVisibility     *bool   `json:"hashedVisibility,omitempty"`
	Required             *bool   `json:"required,omitempty"`
	Value                *string `json:"value,omitempty"`
	Placeholder          *string `json:"placeholder,omitempty"`
}

type Code added in v0.0.37

type Code struct {
	DisplayName          *string `json:"displayName,omitempty"`
	Info                 *string `json:"info,omitempty"`
	PreferredControlType *string `json:"preferredControlType,omitempty"`
	Language             *string `json:"language,omitempty"`
	Value                *string `json:"value,omitempty"`
	Placeholder          *string `json:"placeholder,omitempty"`
}

type CodecContext added in v0.1.0

type CodecContext interface {
	GetOpts() ExportCmpOpts
}

type Companies

type Companies struct {
	CompanyID string   `json:"companyId"`
	Roles     []string `json:"roles"`
	Name      string   `json:"name"`
	SvgIcon   string   `json:"svgIcon"`
}

type Connection

type Connection struct {
	AdditionalProperties map[string]interface{}        `json:"additionalProperties,omitempty"`
	CustomerID           *string                       `json:"customerId,omitempty"`
	ConnectorID          *string                       `json:"connectorId,omitempty"`
	Name                 *string                       `json:"name,omitempty"`
	CreatedDate          *EpochTime                    `json:"createdDate,omitempty"`
	Properties           map[string]ConnectionProperty `json:"properties,omitempty"`
	UpdatedDate          *EpochTime                    `json:"updatedDate,omitempty"`
	ConnectionID         *string                       `json:"connectionId,omitempty"`
	CompanyID            *string                       `json:"companyId,omitempty"`
}

func (Connection) MarshalJSON added in v0.2.0

func (o Connection) MarshalJSON() ([]byte, error)

func (Connection) ToMap added in v0.2.0

func (o Connection) ToMap() (map[string]interface{}, error)

func (*Connection) UnmarshalJSON added in v0.2.0

func (o *Connection) UnmarshalJSON(bytes []byte) (err error)

type ConnectionProperty added in v0.2.0

type ConnectionProperty struct {
	AdditionalProperties map[string]interface{}        `json:"additionalProperties,omitempty"`
	CompanyId            *string                       `json:"companyId,omitempty"`
	ConstructItems       []string                      `json:"constructItems,omitempty"`
	CreatedDate          *EpochTime                    `json:"createdDate,omitempty"`
	CustomerId           *string                       `json:"customerId,omitempty"`
	DisplayName          *string                       `json:"displayName,omitempty"`
	Info                 *string                       `json:"info,omitempty"`
	Placeholder          *string                       `json:"placeholder,omitempty"`
	PreferredControlType *string                       `json:"preferredControlType,omitempty"`
	Properties           map[string]ConnectionProperty `json:"properties,omitempty"`
	Required             *bool                         `json:"required,omitempty"`
	Sections             []string                      `json:"sections,omitempty"`
	Secure               *bool                         `json:"secure,omitempty"`
	Type                 *string                       `json:"type,omitempty"`
	Value                interface{}                   `json:"value,omitempty"`
}

func (ConnectionProperty) MarshalJSON added in v0.2.0

func (o ConnectionProperty) MarshalJSON() ([]byte, error)

func (ConnectionProperty) ToMap added in v0.2.0

func (o ConnectionProperty) ToMap() (map[string]interface{}, error)

func (*ConnectionProperty) UnmarshalJSON added in v0.2.0

func (o *ConnectionProperty) UnmarshalJSON(bytes []byte) (err error)

type Connector added in v0.0.49

type Connector struct {
	AccountConfigView   *ConnectorAccountConfigView  `json:"accountConfigView,omitempty"`
	Capabilities        *ConnectorCapabilities       `json:"capabilities,omitempty"`
	CompanyID           *string                      `json:"companyId,omitempty"`
	ConnectorCategories []ConnectorCategories        `json:"connectorCategories,omitempty"`
	ConnectorType       *string                      `json:"connectorType,omitempty"`
	CreatedDate         *EpochTime                   `json:"createdDate,omitempty"`
	CustomerID          *string                      `json:"customerId,omitempty"`
	Description         *string                      `json:"description,omitempty"`
	FlowSections        []ConnectorFlowSections      `json:"flowSections,omitempty"`
	ManifestVersion     *string                      `json:"manifestVersion,omitempty"`
	Metadata            *ConnectorMetadata           `json:"metadata,omitempty"`
	Name                *string                      `json:"name,omitempty"`
	Properties          map[string]ConnectorProperty `json:"properties,omitempty"`
	Sections            []ConnectorSections          `json:"sections,omitempty"`
	Status              *string                      `json:"status,omitempty"`
	UpdatedDate         *EpochTime                   `json:"updatedDate,omitempty"`
	ConnectorID         *string                      `json:"connectorId,omitempty"`
}

type ConnectorAccountConfigView added in v0.0.49

type ConnectorAccountConfigView struct {
	Items []AccountConfigViewItems `json:"items,omitempty"`
}

type ConnectorCapabilities added in v0.0.49

type ConnectorCapabilities struct {
	UpdateAnnotationProperties *UpdateAnnotationProperties `json:"updateAnnotationProperties,omitempty"`
}

type ConnectorCategories added in v0.0.49

type ConnectorCategories struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

type ConnectorFlowConfigView added in v0.0.49

type ConnectorFlowConfigView struct {
	Items []FlowConfigViewItems `json:"items,omitempty"`
}

type ConnectorFlowSections added in v0.0.49

type ConnectorFlowSections struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

type ConnectorLoose added in v0.0.49

type ConnectorLoose struct {
	AccountConfigView   *ConnectorAccountConfigView       `json:"accountConfigView,omitempty"`
	Capabilities        *ConnectorCapabilities            `json:"capabilities,omitempty"`
	CompanyID           *string                           `json:"companyId,omitempty"`
	ConnectorCategories []ConnectorCategories             `json:"connectorCategories,omitempty"`
	ConnectorType       *string                           `json:"connectorType,omitempty"`
	CreatedDate         *EpochTime                        `json:"createdDate,omitempty"`
	CustomerID          *string                           `json:"customerId,omitempty"`
	Description         *string                           `json:"description,omitempty"`
	FlowSections        []ConnectorFlowSections           `json:"flowSections,omitempty"`
	ManifestVersion     *string                           `json:"manifestVersion,omitempty"`
	Metadata            *ConnectorMetadata                `json:"metadata,omitempty"`
	Name                *string                           `json:"name,omitempty"`
	Properties          map[string]ConnectorPropertyLoose `json:"properties,omitempty"`
	Sections            []ConnectorSections               `json:"sections,omitempty"`
	Status              *string                           `json:"status,omitempty"`
	UpdatedDate         *EpochTime                        `json:"updatedDate,omitempty"`
	ConnectorID         *string                           `json:"connectorId,omitempty"`
}

Connector Config for read all CONNECTORS.

type ConnectorMetadata added in v0.0.49

type ConnectorMetadata struct {
	SkType *string                  `json:"skType,omitempty"`
	Colors *ConnectorMetadataColors `json:"colors,omitempty"`
	Logos  *ConnectorMetadataLogos  `json:"logos,omitempty"`
}

type ConnectorMetadataColors added in v0.0.49

type ConnectorMetadataColors struct {
	Canvas     *string `json:"canvas,omitempty"`
	CanvasText *string `json:"canvasText,omitempty"`
	Dark       *string `json:"dark,omitempty"`
}

type ConnectorMetadataLogos added in v0.0.49

type ConnectorMetadataLogos struct {
	Canvas *LogosCanvas `json:"canvas,omitempty"`
}

type ConnectorProperty added in v0.0.49

type ConnectorProperty struct {
	Type                 *string    `json:"type,omitempty"`
	DisplayName          *string    `json:"displayName,omitempty"`
	CreatedDate          *EpochTime `json:"createdDate,omitempty"`
	CustomerID           *string    `json:"customerId,omitempty"`
	CompanyID            *string    `json:"companyId,omitempty"`
	PreferredControlType *string    `json:"preferredControlType,omitempty"`
	Info                 *string    `json:"info,omitempty"`
}

type ConnectorPropertyLoose added in v0.0.49

type ConnectorPropertyLoose struct {
	Type                 *string     `json:"type,omitempty"`
	DisplayName          *string     `json:"displayName,omitempty"`
	CreatedDate          *EpochTime  `json:"createdDate,omitempty"`
	CustomerID           *string     `json:"customerId,omitempty"`
	CompanyID            *string     `json:"companyId,omitempty"`
	PreferredControlType *string     `json:"preferredControlType,omitempty"`
	Info                 interface{} `json:"info,omitempty"`
}

type ConnectorSections added in v0.0.49

type ConnectorSections struct {
	Name    *string `json:"name,omitempty"`
	Value   *string `json:"value,omitempty"`
	Default *bool   `json:"default,omitempty"`
}

type CreatedCustomer

type CreatedCustomer struct {
	Email               string      `json:"email"`
	CompanyID           string      `json:"companyId"`
	ClientID            interface{} `json:"clientId"`
	FirstName           string      `json:"firstName"`
	LastName            string      `json:"lastName"`
	PhoneNumber         interface{} `json:"phoneNumber"`
	CreatedByCustomerID string      `json:"createdByCustomerId"`
	CreatedByCompanyID  string      `json:"createdByCompanyId"`
	EmailVerified       bool        `json:"emailVerified"`
	Companies           []Companies `json:"companies"`
	Salt                string      `json:"salt"`
	HashedPassword      string      `json:"hashedPassword"`
	Status              string      `json:"status"`
	CustomerType        string      `json:"customerType"`
	CreatedDate         EpochTime   `json:"createdDate"`
	EmailVerifiedDate   EpochTime   `json:"emailVerifiedDate"`
	PasswordHistory     []struct {
		HashedPassword string    `json:"hashedPassword"`
		Salt           string    `json:"salt"`
		AddedDate      EpochTime `json:"addedDate"`
	} `json:"passwordHistory"`
	SkUserID    string `json:"skUserId"`
	LastLogin   int64  `json:"lastLogin"`
	FailedLogin struct {
		RetryCount           int       `json:"retryCount"`
		FirstFailedTimestamp EpochTime `json:"firstFailedTimestamp"`
	} `json:"failedLogin"`
	CustomerID string `json:"customerId"`
}

type CustomAttributes added in v0.0.37

type CustomAttributes struct {
	Type                 *string                 `json:"type,omitempty"`
	DisplayName          *string                 `json:"displayName,omitempty"`
	PreferredControlType *string                 `json:"preferredControlType,omitempty"`
	Info                 *string                 `json:"info,omitempty"`
	Sections             []string                `json:"sections,omitempty"`
	Value                []CustomAttributesValue `json:"value,omitempty"`
	Placeholder          []Placeholder           `json:"placeholder,omitempty"`
}

type CustomAttributesValue added in v0.0.37

type CustomAttributesValue struct {
	Name          *string     `json:"name,omitempty"`
	Description   *string     `json:"description,omitempty"`
	Type          *string     `json:"type,omitempty"`
	Value         interface{} `json:"value,omitempty"`
	MinLength     *string     `json:"minLength,omitempty"`
	MaxLength     *string     `json:"maxLength,omitempty"`
	Required      *bool       `json:"required,omitempty"`
	AttributeType *string     `json:"attributeType,omitempty"`
}

type CustomAuth added in v0.0.37

type CustomAuth struct {
	Properties *CustomAuthProperties `json:"properties,omitempty"`
}

CustomAuth is a field of the Properties struct but is kept separate because the structure is known. This is used to unmarshal the properties["customAuth"] field of a connection response.

type CustomAuthProperties added in v0.0.37

type CustomAuthProperties struct {
	ProviderName                  *ProviderName                  `json:"providerName,omitempty"`
	AuthTypeDropdown              *AuthTypeDropdown              `json:"authTypeDropdown,omitempty"`
	SkRedirectURI                 *SkRedirectURI                 `json:"skRedirectUri,omitempty"`
	IssuerURL                     *IssuerURL                     `json:"issuerUrl,omitempty"`
	AuthorizationEndpoint         *AuthorizationEndpoint         `json:"authorizationEndpoint,omitempty"`
	TokenEndpoint                 *TokenEndpoint                 `json:"tokenEndpoint,omitempty"`
	BearerToken                   *BearerToken                   `json:"bearerToken,omitempty"`
	UserInfoEndpoint              *UserInfoEndpoint              `json:"userInfoEndpoint,omitempty"`
	ClientID                      *ClientID                      `json:"clientId,omitempty"`
	ClientSecret                  *ClientSecret                  `json:"clientSecret,omitempty"`
	Scope                         *Scope                         `json:"scope,omitempty"`
	Code                          *Code                          `json:"code,omitempty"`
	UserConnectorAttributeMapping *UserConnectorAttributeMapping `json:"userConnectorAttributeMapping,omitempty"`
	CustomAttributes              *CustomAttributes              `json:"customAttributes,omitempty"`
	ReturnToURL                   *ReturnToURL                   `json:"returnToUrl,omitempty"`
}

type Customer

type Customer struct {
	Email     string `json:"email"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Companies []struct {
		CompanyID string   `json:"companyId"`
		Roles     []string `json:"roles"`
	} `json:"companies"`
	CustomerType        string     `json:"customerType"`
	CreatedByCustomerID string     `json:"createdByCustomerId"`
	CreatedByCompanyID  string     `json:"createdByCompanyId"`
	CompanyID           string     `json:"companyId"`
	EmailVerified       bool       `json:"emailVerified"`
	CreatedDate         EpochTime  `json:"createdDate"`
	LastLogin           int64      `json:"lastLogin"`
	SkUserID            *string    `json:"skUserId,omitempty"`
	CustomerID          string     `json:"customerId"`
	ClientID            *string    `json:"clientId,omitempty"`
	PhoneNumber         *string    `json:"phoneNumber,omitempty"`
	Status              *string    `json:"status,omitempty"`
	EmailVerifiedDate   *EpochTime `json:"emailVerifiedDate,omitempty"`
}

type CustomerCreate

type CustomerCreate struct {
	Email       string   `json:"email"`
	FirstName   string   `json:"firstName"`
	LastName    string   `json:"lastName"`
	Roles       []string `json:"roles"`
	PhoneNumber string   `json:"phoneNumber"`
}

type CustomerUpdate

type CustomerUpdate struct {
	FirstName   string   `json:"firstName"`
	LastName    string   `json:"lastName"`
	Roles       []string `json:"roles"`
	PhoneNumber string   `json:"phoneNumber"`
}

type Customers

type Customers struct {
	Customers     []Customer `json:"customers"`
	CustomerCount int        `json:"customerCount"`
}

type Data added in v0.0.32

type Data struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	CapabilityName       *string                `json:"capabilityName,omitempty" davinci:"capabilityName,config,omitempty"`
	ConnectionID         *string                `json:"connectionId,omitempty" davinci:"connectionId,config,omitempty"`
	ConnectorID          *string                `json:"connectorId,omitempty" davinci:"connectorId,config,omitempty"`
	ID                   *string                `json:"id,omitempty" davinci:"id,config,omitempty"`
	Label                *string                `json:"label,omitempty" davinci:"label,config,omitempty"`
	MultiValueSourceId   *string                `json:"multiValueSourceId,omitempty" davinci:"multiValueSourceId,config,omitempty"`
	Name                 *string                `json:"name,omitempty" davinci:"name,config,omitempty"`
	NodeType             *string                `json:"nodeType,omitempty" davinci:"nodeType,config,omitempty"`
	Properties           *Properties            `json:"properties" davinci:"properties,*"`
	Source               *string                `json:"source,omitempty" davinci:"source,config,omitempty"`
	Status               *string                `json:"status,omitempty" davinci:"status,config,omitempty"`
	Target               *string                `json:"target,omitempty" davinci:"target,config,omitempty"`
	Type                 *string                `json:"type,omitempty" davinci:"type,config,omitempty"`
}

func (Data) MarshalJSON added in v0.1.0

func (o Data) MarshalJSON() ([]byte, error)

func (Data) ToMap added in v0.1.0

func (o Data) ToMap() (map[string]interface{}, error)

func (*Data) UnmarshalJSON added in v0.1.0

func (o *Data) UnmarshalJSON(bytes []byte) (err error)

type DecoderContext added in v0.1.0

type DecoderContext struct {
	KindDecoders map[reflect.Kind]ValueDecoder

	Opts ExportCmpOpts
	// contains filtered or unexported fields
}

func NewDecoderContext added in v0.1.0

func NewDecoderContext(opts ExportCmpOpts) *DecoderContext

func (DecoderContext) Decode added in v0.1.0

func (o DecoderContext) Decode(bytes []byte, v any) (err error)

func (DecoderContext) GetDecoder added in v0.1.0

func (o DecoderContext) GetDecoder(valueType reflect.Type) (ValueDecoder, error)

func (DecoderContext) GetOpts added in v0.1.0

func (o DecoderContext) GetOpts() ExportCmpOpts

func (*DecoderContext) InitDecoders added in v0.1.0

func (o *DecoderContext) InitDecoders()

func (DecoderContext) LookupDecoderByKind added in v0.1.0

func (o DecoderContext) LookupDecoderByKind(valueKind reflect.Kind) (ValueDecoder, bool)

func (DecoderContext) LookupDecoderByType added in v0.1.0

func (o DecoderContext) LookupDecoderByType(valueType reflect.Type) (ValueDecoder, bool)

type DvHttpError

type DvHttpError struct {
	Status int
	Body   string
}

type DvHttpRequest

type DvHttpRequest struct {
	Method string
	Url    string
	Body   string
}

type DvHttpResponse

type DvHttpResponse struct {
	Body           []byte
	Headers        http.Header
	StatusCode     int
	Location       *url.URL
	LocationParams url.Values
}

type Edge added in v0.1.0

type Edge struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	Data                 *Data                  `json:"data,omitempty" davinci:"data,*,omitempty"`
	Position             *Position              `json:"position,omitempty" davinci:"position,*,omitempty"`
	Group                *string                `json:"group,omitempty" davinci:"group,designercue,omitempty"`
	Removed              *bool                  `json:"removed,omitempty" davinci:"removed,designercue,omitempty"`
	Selected             *bool                  `json:"selected,omitempty" davinci:"selected,designercue,omitempty"`
	Selectable           *bool                  `json:"selectable,omitempty" davinci:"selectable,designercue,omitempty"`
	Locked               *bool                  `json:"locked,omitempty" davinci:"locked,designercue,omitempty"`
	Grabbable            *bool                  `json:"grabbable,omitempty" davinci:"grabbable,designercue,omitempty"`
	Pannable             *bool                  `json:"pannable,omitempty" davinci:"pannable,designercue,omitempty"`
	Classes              *string                `json:"classes,omitempty" davinci:"classes,config,omitempty"`
}

func (Edge) MarshalJSON added in v0.1.0

func (o Edge) MarshalJSON() ([]byte, error)

func (Edge) ToMap added in v0.1.0

func (o Edge) ToMap() (map[string]interface{}, error)

func (*Edge) UnmarshalJSON added in v0.1.0

func (o *Edge) UnmarshalJSON(bytes []byte) (err error)

type EdgeData added in v0.0.37

type EdgeData struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	CapabilityName       *string                `json:"capabilityName,omitempty" davinci:"capabilityName,config,omitempty"`
	ConnectionID         *string                `json:"connectionId,omitempty" davinci:"connectionId,config,omitempty"`
	ConnectorID          *string                `json:"connectorId,omitempty" davinci:"connectorId,config,omitempty"`
	ID                   *string                `json:"id,omitempty" davinci:"id,config,omitempty"`
	Label                *string                `json:"label,omitempty" davinci:"label,config,omitempty"`
	MultiValueSourceId   *string                `json:"multiValueSourceId,omitempty" davinci:"multiValueSourceId,config,omitempty"`
	Name                 *string                `json:"name,omitempty" davinci:"name,config,omitempty"`
	NodeType             *string                `json:"nodeType,omitempty" davinci:"nodeType,config,omitempty"`
	Properties           *Properties            `json:"properties,omitempty" davinci:"properties,*,omitempty"`
	Source               *string                `json:"source,omitempty" davinci:"source,config,omitempty"`
	Status               *string                `json:"status,omitempty" davinci:"status,config,omitempty"`
	Target               *string                `json:"target,omitempty" davinci:"target,config,omitempty"`
	Type                 *string                `json:"type,omitempty" davinci:"type,config,omitempty"`
}

func (EdgeData) MarshalJSON added in v0.1.0

func (o EdgeData) MarshalJSON() ([]byte, error)

func (EdgeData) ToMap added in v0.1.0

func (o EdgeData) ToMap() (map[string]interface{}, error)

func (*EdgeData) UnmarshalJSON added in v0.1.0

func (o *EdgeData) UnmarshalJSON(bytes []byte) (err error)

type Elements added in v0.0.32

type Elements struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	Nodes                []Node                 `json:"nodes,omitempty" davinci:"nodes,*,omitempty"`
	Edges                []Edge                 `json:"edges,omitempty" davinci:"edges,*,omitempty"`
}

func (Elements) MarshalJSON added in v0.1.0

func (o Elements) MarshalJSON() ([]byte, error)

func (Elements) ToMap added in v0.1.0

func (o Elements) ToMap() (map[string]interface{}, error)

func (*Elements) UnmarshalJSON added in v0.1.0

func (o *Elements) UnmarshalJSON(bytes []byte) (err error)

type Email added in v0.0.37

type Email struct {
	Value1 string `json:"value1,omitempty"`
}

type EncoderContext added in v0.1.0

type EncoderContext struct {
	KindEncoders map[reflect.Kind]ValueEncoder

	Opts ExportCmpOpts
	// contains filtered or unexported fields
}

func NewEncoderContext added in v0.1.0

func NewEncoderContext(opts ExportCmpOpts) *EncoderContext

func (EncoderContext) Encode added in v0.1.0

func (o EncoderContext) Encode(v any) (bytes []byte, err error)

func (EncoderContext) GetEncoder added in v0.1.0

func (o EncoderContext) GetEncoder(valueType reflect.Type) (ValueEncoder, error)

func (EncoderContext) GetOpts added in v0.1.0

func (o EncoderContext) GetOpts() ExportCmpOpts

func (*EncoderContext) InitEncoders added in v0.1.0

func (o *EncoderContext) InitEncoders()

func (EncoderContext) LookupEncoderByKind added in v0.1.0

func (o EncoderContext) LookupEncoderByKind(valueKind reflect.Kind) (ValueEncoder, bool)

func (EncoderContext) LookupEncoderByType added in v0.1.0

func (o EncoderContext) LookupEncoderByType(valueType reflect.Type) (ValueEncoder, bool)

type Environment

type Environment struct {
	CreatedByCustomerID string `json:"createdByCustomerId"`
	CreatedByCompanyID  string `json:"createdByCompanyId"`
	Name                string `json:"name"`
	CompanyType         string `json:"companyType"`
	EntitlementTemplate string `json:"entitlementTemplate"`
	EntitlementProps    struct {
	} `json:"entitlementProps"`
	SecurityType string `json:"securityType"`
	JwtKeys      struct {
		Jwks struct {
			Keys []struct {
				Kty string `json:"kty"`
				Kid string `json:"kid"`
				N   string `json:"n"`
				E   string `json:"e"`
				Alg string `json:"alg"`
				Use string `json:"use"`
			} `json:"keys"`
		} `json:"jwks"`
	} `json:"jwtKeys"`
	SamlKeys struct {
		PublicKey string `json:"publicKey"`
		Cert      string `json:"cert"`
	} `json:"samlKeys"`
	Properties struct {
		PngIcon struct {
			DisplayName          string `json:"displayName"`
			DataType             string `json:"dataType"`
			PreferredControlType string `json:"preferredControlType"`
			Value                string `json:"value"`
		} `json:"pngIcon"`
		SvgIcon struct {
			DisplayName          string `json:"displayName"`
			DataType             string `json:"dataType"`
			PreferredControlType string `json:"preferredControlType"`
			Value                string `json:"value"`
		} `json:"svgIcon"`
		SvgViewBox struct {
			DisplayName          string `json:"displayName"`
			DataType             string `json:"dataType"`
			PreferredControlType string `json:"preferredControlType"`
			Value                string `json:"value"`
		} `json:"svgViewBox"`
		IconOpacity struct {
			DisplayName          string  `json:"displayName"`
			DataType             string  `json:"dataType"`
			PreferredControlType string  `json:"preferredControlType"`
			Value                float64 `json:"value"`
		} `json:"iconOpacity"`
		BackgroundColor struct {
			DisplayName          string `json:"displayName"`
			DataType             string `json:"dataType"`
			PreferredControlType string `json:"preferredControlType"`
			Value                string `json:"value"`
		} `json:"backgroundColor"`
		TextColor struct {
			DisplayName          string `json:"displayName"`
			DataType             string `json:"dataType"`
			PreferredControlType string `json:"preferredControlType"`
			Value                string `json:"value"`
		} `json:"textColor"`
		IconColor struct {
			DisplayName          string `json:"displayName"`
			DataType             string `json:"dataType"`
			PreferredControlType string `json:"preferredControlType"`
			Value                string `json:"value"`
		} `json:"iconColor"`
		ArcColor struct {
			DisplayName          string `json:"displayName"`
			DataType             string `json:"dataType"`
			PreferredControlType string `json:"preferredControlType"`
			Value                string `json:"value"`
		} `json:"arcColor"`
		ArcProgressColor struct {
			DisplayName          string `json:"displayName"`
			DataType             string `json:"dataType"`
			PreferredControlType string `json:"preferredControlType"`
			Value                string `json:"value"`
		} `json:"arcProgressColor"`
	} `json:"properties"`
	CreatedDate EpochTime `json:"createdDate"`
	Entitlement struct {
		Company struct {
			CreateAdditional bool `json:"createAdditional"`
		} `json:"company"`
		Connectors struct {
			Whitelist []string `json:"whitelist"`
			//TODO
			// Blacklist []string `json:"blacklist"`
			Blacklist interface{} `json:"blacklist"`
		} `json:"connectors"`
		Connections struct {
			Total                              int `json:"total"`
			MaxNumberOfConnectionsPerConnector struct {
				ConnectorID string `json:"connectorId"`
				Total       int    `json:"total"`
			} `json:"maxNumberOfConnectionsPerConnector"`
		} `json:"connections"`
		Flows struct {
			Enabled bool  `json:"enabled"`
			Total   int   `json:"total"`
			Expires int64 `json:"expires"`
		} `json:"flows"`
		Attributes struct {
			Enabled bool `json:"enabled"`
			Total   int  `json:"total"`
		} `json:"attributes"`
		Apps struct {
			Total int `json:"total"`
		} `json:"apps"`
		Users struct {
			Total                   int `json:"total"`
			TotalCredentialsPerUser int `json:"totalCredentialsPerUser"`
		} `json:"users"`
		Expires int64 `json:"expires"`
	} `json:"entitlement"`
	CompanyID string `json:"companyId"`
}

type EnvironmentStats

type EnvironmentStats struct {
	TableStats []struct {
		Flows       int `json:"Flows"`
		Connections int `json:"Connections"`
		Apps        int `json:"Apps"`
		Customers   int `json:"Customers"`
		Constructs  int `json:"Constructs"`
		Users       int `json:"Users"`
		Events      int `json:"Events"`
		ID          struct {
			CompanyID string `json:"companyId"`
			Ts        int64  `json:"ts"`
		} `json:"_id"`
	} `json:"tableStats"`
	PopularFlows []struct {
		Key      string  `json:"key"`
		DocCount int     `json:"doc_count"`
		Name     *string `json:"name,omitempty"`
	} `json:"popularFlows"`
	RunningFlowsCount []struct {
		KeyAsString time.Time `json:"key_as_string"`
		Key         int64     `json:"key"`
		DocCount    int       `json:"doc_count"`
	} `json:"runningFlowsCount"`
	EventOutcomesCount []interface{} `json:"eventOutcomesCount"`
	AllFlows           []string      `json:"allFlows"`
}

type Environments

type Environments struct {
	CustomerID  string      `json:"customerId"`
	FirstName   string      `json:"firstName"`
	LastName    string      `json:"lastName"`
	Email       string      `json:"email"`
	PhoneNumber string      `json:"phoneNumber"`
	CompanyID   string      `json:"companyId"`
	Companies   []Companies `json:"companies"`
	ClientID    *string     `json:"clientId,omitempty"`
	CreatedDate EpochTime   `json:"createdDate"`
}

type EpochTime added in v0.1.0

type EpochTime struct {
	time.Time
}

func NewEpochTime added in v0.1.0

func NewEpochTime(v int64) *EpochTime

func (EpochTime) MarshalJSON added in v0.1.0

func (u EpochTime) MarshalJSON() ([]byte, error)

func (*EpochTime) UnmarshalJSON added in v0.1.0

func (u *EpochTime) UnmarshalJSON(b []byte) error

type ErrorResponse added in v0.1.0

type ErrorResponse struct {
	Cause            string `json:"cause"`
	LogLevel         string `json:"logLevel"`
	ServiceName      string `json:"serviceName"`
	Message          string `json:"message"`
	ErrorMessage     string `json:"errorMessage"`
	Success          bool   `json:"success"`
	HttpResponseCode int    `json:"httpResponseCode"`
	Code             int    `json:"code"`
}

func (ErrorResponse) Error added in v0.1.0

func (e ErrorResponse) Error() string

type ExportCmpOpts added in v0.1.0

type ExportCmpOpts struct {
	IgnoreConfig              bool
	IgnoreDesignerCues        bool
	IgnoreEnvironmentMetadata bool
	IgnoreUnmappedProperties  bool
	IgnoreVersionMetadata     bool
	IgnoreFlowMetadata        bool
}

type FirstName added in v0.0.37

type FirstName struct {
	Value1 string `json:"value1,omitempty"`
}

type Flow

type Flow struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	FlowConfiguration
	FlowEnvironmentMetadata
	FlowMetadata
	FlowVersionMetadata
}

func (Flow) MarshalJSON added in v0.1.0

func (o Flow) MarshalJSON() ([]byte, error)

func (Flow) ToMap added in v0.1.0

func (o Flow) ToMap() (map[string]interface{}, error)

func (*Flow) UnmarshalDavinci added in v0.1.0

func (o *Flow) UnmarshalDavinci(bytes []byte, opts ExportCmpOpts) (err error)

func (*Flow) UnmarshalJSON added in v0.1.0

func (o *Flow) UnmarshalJSON(bytes []byte) (err error)

type FlowConfigViewItems added in v0.0.49

type FlowConfigViewItems struct {
	PropertyName *string `json:"propertyName,omitempty"`
}

type FlowConfiguration added in v0.1.0

type FlowConfiguration struct {
	FlowUpdateConfiguration
	FlowColor *string `json:"flowColor,omitempty" davinci:"flowColor,designercue,omitempty"`
}

type FlowEnvironmentMetadata added in v0.1.0

type FlowEnvironmentMetadata struct {
	CompanyID   string    `json:"companyId" davinci:"companyId,environmentmetadata"`
	CreatedDate EpochTime `json:"createdDate" davinci:"createdDate,environmentmetadata"`
	CustomerID  string    `json:"customerId" davinci:"customerId,environmentmetadata"`
	FlowID      string    `json:"flowId" davinci:"flowId,environmentmetadata"`
}

type FlowImport

type FlowImport struct {
	Name            *string           `json:"name,omitempty" davinci:"name,flowmetadata,omitempty"`
	Description     *string           `json:"description,omitempty" davinci:"description,flowmetadata,omitempty"`
	FlowInfo        *Flow             `json:"flowInfo,omitempty" davinci:"flowInfo,*,omitempty"`
	FlowNameMapping map[string]string `json:"flowNameMapping,omitempty" davinci:"flowNameMapping,*,omitempty"`
}

type FlowInfo

type FlowInfo struct {
	Flow Flow `json:"flowInfo" davinci:"flowInfo,*"`
}

type FlowMetadata added in v0.1.0

type FlowMetadata struct {
	AuthTokenExpireIds   []interface{}  `json:"authTokenExpireIds" davinci:"authTokenExpireIds,flowmetadata"`
	Connections          []interface{}  `json:"connections,omitempty" davinci:"connections,flowmetadata,omitempty"`
	ConnectorIds         []string       `json:"connectorIds" davinci:"connectorIds,flowmetadata"`
	Description          *string        `json:"description,omitempty" davinci:"description,flowmetadata,omitempty"`
	EnabledGraphData     interface{}    `json:"enabledGraphData,omitempty" davinci:"enabledGraphData,flowmetadata,omitempty"`
	FunctionConnectionID interface{}    `json:"functionConnectionId,omitempty" davinci:"functionConnectionId,flowmetadata,omitempty"`
	InputSchemaCompiled  interface{}    `json:"inputSchemaCompiled,omitempty" davinci:"inputSchemaCompiled,flowmetadata,omitempty"`
	IsInputSchemaSaved   *bool          `json:"isInputSchemaSaved,omitempty" davinci:"isInputSchemaSaved,flowmetadata,omitempty"`
	IsOutputSchemaSaved  bool           `json:"isOutputSchemaSaved" davinci:"isOutputSchemaSaved,flowmetadata"`
	Name                 string         `json:"name" davinci:"name,flowmetadata"`
	Orx                  *string        `json:"orx,omitempty" davinci:"orx,flowmetadata,omitempty"`
	OutputSchemaCompiled *OutputSchema  `json:"outputSchemaCompiled,omitempty" davinci:"outputSchemaCompiled,*,omitempty"` //compiled is used in exported flow json, must be converted to JUST output when updating flow.
	Timeouts             interface{}    `json:"timeouts,omitempty" davinci:"timeouts,flowmetadata,omitempty"`
	Variables            []FlowVariable `json:"variables,omitempty" davinci:"variables,*,omitempty"`
}

type FlowUpdate added in v0.0.44

type FlowUpdate struct {
	FlowUpdateConfiguration
	CurrentVersion *int32  `json:"currentVersion,omitempty" davinci:"currentVersion,versionmetadata,omitempty"`
	Name           *string `json:"name,omitempty" davinci:"name,flowmetadata"`
	Description    *string `json:"description,omitempty" davinci:"description,flowmetadata,omitempty"`
}

Used specifically for PUTs to existing flows.

type FlowUpdateConfiguration added in v0.1.0

type FlowUpdateConfiguration struct {
	GraphData    *GraphData    `json:"graphData,omitempty" davinci:"graphData,*,omitempty"`
	InputSchema  []interface{} `json:"inputSchema,omitempty" davinci:"inputSchema,config,omitempty"`
	OutputSchema *OutputSchema `json:"outputSchema,omitempty" davinci:"outputSchema,*,omitempty"`
	Settings     interface{}   `json:"settings,omitempty" davinci:"settings,config,omitempty"`
	Trigger      *Trigger      `json:"trigger,omitempty" davinci:"trigger,*,omitempty"`
}

type FlowVariable added in v0.0.46

type FlowVariable struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	CompanyID            *string                `json:"companyId,omitempty" davinci:"companyId,environmentmetadata,omitempty"`
	Context              *string                `json:"context,omitempty" davinci:"context,config,omitempty"`
	CreatedDate          *EpochTime             `json:"createdDate,omitempty" davinci:"createdDate,versionmetadata,omitempty"`
	CustomerID           *string                `json:"customerId,omitempty" davinci:"customerId,environmentmetadata,omitempty"`
	Fields               *FlowVariableFields    `json:"fields,omitempty" davinci:"fields,*,omitempty"`
	FlowID               *string                `json:"flowId,omitempty" davinci:"flowId,environmentmetadata,omitempty"`
	Key                  *float64               `json:"key,omitempty" davinci:"key,flowmetadata,omitempty"`
	Label                *string                `json:"label,omitempty" davinci:"label,config,omitempty"`
	Name                 string                 `json:"name" davinci:"name,config"`
	Type                 string                 `json:"type" davinci:"type,config"`
	UpdatedDate          *EpochTime             `json:"updatedDate,omitempty" davinci:"updatedDate,versionmetadata,omitempty"`
	Value                *string                `json:"value,omitempty" davinci:"value,config,omitempty"`
	Visibility           *string                `json:"visibility,omitempty" davinci:"visibility,flowmetadata,omitempty"`
}

func (FlowVariable) MarshalJSON added in v0.1.0

func (o FlowVariable) MarshalJSON() ([]byte, error)

func (FlowVariable) ToMap added in v0.1.0

func (o FlowVariable) ToMap() (map[string]interface{}, error)

func (*FlowVariable) UnmarshalJSON added in v0.1.0

func (o *FlowVariable) UnmarshalJSON(bytes []byte) (err error)

type FlowVariableFields added in v0.0.46

type FlowVariableFields struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	Type                 *string                `json:"type,omitempty" davinci:"type,config,omitempty"`
	DisplayName          *string                `json:"displayName,omitempty" davinci:"displayName,config,omitempty"`
	Mutable              *bool                  `json:"mutable,omitempty" davinci:"mutable,config,omitempty"`
	Value                *string                `json:"value,omitempty" davinci:"value,config,omitempty"`
	Min                  *int32                 `json:"min,omitempty" davinci:"min,config,omitempty"`
	Max                  *int32                 `json:"max,omitempty" davinci:"max,config,omitempty"`
}

func (FlowVariableFields) MarshalJSON added in v0.1.0

func (o FlowVariableFields) MarshalJSON() ([]byte, error)

func (FlowVariableFields) ToMap added in v0.1.0

func (o FlowVariableFields) ToMap() (map[string]interface{}, error)

func (*FlowVariableFields) UnmarshalJSON added in v0.1.0

func (o *FlowVariableFields) UnmarshalJSON(bytes []byte) (err error)

type FlowVersionMetadata added in v0.1.0

type FlowVersionMetadata struct {
	CurrentVersion   *int32      `json:"currentVersion,omitempty" davinci:"currentVersion,versionmetadata,omitempty"`
	DeployedDate     *EpochTime  `json:"deployedDate,omitempty" davinci:"deployedDate,versionmetadata,omitempty"`
	FlowStatus       string      `json:"flowStatus" davinci:"flowStatus,versionmetadata"`
	PublishedVersion *int32      `json:"publishedVersion,omitempty" davinci:"publishedVersion,versionmetadata,omitempty"`
	SavedDate        EpochTime   `json:"savedDate" davinci:"savedDate,versionmetadata"`
	UpdatedDate      *EpochTime  `json:"updatedDate,omitempty" davinci:"updatedDate,versionmetadata,omitempty"`
	VersionID        int32       `json:"versionId" davinci:"versionId,versionmetadata"`
	VersionInfo      interface{} `json:"versionInfo,omitempty" davinci:"versionInfo,versionmetadata,omitempty"`
}

type Flows added in v0.0.31

type Flows struct {
	Flow []Flow `json:"flows,omitempty" davinci:"flows,*"`
}

type FlowsImport added in v0.0.31

type FlowsImport struct {
	Name            *string           `json:"name,omitempty"`
	Description     *string           `json:"description,omitempty"`
	FlowInfo        *Flows            `json:"flowInfo,omitempty"`
	FlowNameMapping map[string]string `json:"flowNameMapping,omitempty"`
}

func ParseFlowsImportJson added in v0.0.32

func ParseFlowsImportJson(payload string) (*FlowsImport, error)

type FlowsInfo

type FlowsInfo struct {
	Flow []Flow `json:"flowsInfo,omitempty" davinci:"flowsInfo,*"`
}

type GraphData

type GraphData struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	BoxSelectionEnabled  *bool                  `json:"boxSelectionEnabled,omitempty" davinci:"boxSelectionEnabled,designercue,omitempty"`
	Data                 *Data                  `json:"data,omitempty" davinci:"data,*,omitempty"`
	Elements             *Elements              `json:"elements,omitempty" davinci:"elements,*,omitempty"`
	MaxZoom              *float64               `json:"maxZoom,omitempty" davinci:"maxZoom,designercue,omitempty"`
	MinZoom              *float64               `json:"minZoom,omitempty" davinci:"minZoom,designercue,omitempty"`
	Pan                  *Pan                   `json:"pan,omitempty" davinci:"pan,*,omitempty"`
	PanningEnabled       *bool                  `json:"panningEnabled,omitempty" davinci:"panningEnabled,designercue,omitempty"`
	Renderer             *Renderer              `json:"renderer,omitempty" davinci:"renderer,*,omitempty"`
	UserPanningEnabled   *bool                  `json:"userPanningEnabled,omitempty" davinci:"userPanningEnabled,designercue,omitempty"`
	UserZoomingEnabled   *bool                  `json:"userZoomingEnabled,omitempty" davinci:"userZoomingEnabled,designercue,omitempty"`
	Zoom                 *int32                 `json:"zoom,omitempty" davinci:"zoom,designercue,omitempty"`
	ZoomingEnabled       *bool                  `json:"zoomingEnabled,omitempty" davinci:"zoomingEnabled,designercue,omitempty"`
}

func (GraphData) MarshalJSON added in v0.1.0

func (o GraphData) MarshalJSON() ([]byte, error)

func (GraphData) ToMap added in v0.1.0

func (o GraphData) ToMap() (map[string]interface{}, error)

func (*GraphData) UnmarshalJSON added in v0.1.0

func (o *GraphData) UnmarshalJSON(bytes []byte) (err error)

type IssuerURL added in v0.0.37

type IssuerURL struct {
	PreferredControlType *string `json:"preferredControlType,omitempty"`
	DisplayName          *string `json:"displayName,omitempty"`
	Info                 *string `json:"info,omitempty"`
	Value                *string `json:"value,omitempty"`
	Placeholder          *string `json:"placeholder,omitempty"`
}

type JSONCodec added in v0.1.0

type JSONCodec struct{}

func (JSONCodec) DecodeValue added in v0.1.0

func (d JSONCodec) DecodeValue(data []byte, v reflect.Value) error

func (JSONCodec) EncodeValue added in v0.1.0

func (d JSONCodec) EncodeValue(v reflect.Value) ([]byte, error)

func (JSONCodec) String added in v0.1.0

func (JSONCodec) String() string

type LabelValue added in v0.1.0

type LabelValue struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	Label                *string                `json:"label,omitempty" davinci:"label,config,omitempty"`
	Value                *string                `json:"value,omitempty" davinci:"value,config,omitempty"`
}

func (LabelValue) MarshalJSON added in v0.1.0

func (o LabelValue) MarshalJSON() ([]byte, error)

func (LabelValue) ToMap added in v0.1.0

func (o LabelValue) ToMap() (map[string]interface{}, error)

func (*LabelValue) UnmarshalJSON added in v0.1.0

func (o *LabelValue) UnmarshalJSON(bytes []byte) (err error)

type LastName added in v0.0.37

type LastName struct {
	Value1 string `json:"value1,omitempty"`
}

type LoginResponse

type LoginResponse struct {
	AccessToken     string     `json:"access_token"`
	TokenType       string     `json:"token_type"`
	MfaRequired     bool       `json:"mfaRequired"`
	Status          string     `json:"status"`
	CustomerID      string     `json:"customerId"`
	AppConfig       bool       `json:"appConfig"`
	SkSdkToken      SkSdkToken `json:"skSdkToken"`
	FlowPolicyID    string     `json:"flowPolicyId"`
	CompanyID       string     `json:"companyId"`
	SelectedCompany string     `json:"selectedCompany"`
}

type LogosCanvas added in v0.0.49

type LogosCanvas struct {
	ImageFileName *string `json:"imageFileName,omitempty"`
}

type MapCodec added in v0.1.0

type MapCodec struct {
	// contains filtered or unexported fields
}

func (MapCodec) DecodeValue added in v0.1.0

func (d MapCodec) DecodeValue(data []byte, v reflect.Value) error

func (MapCodec) EncodeValue added in v0.1.0

func (d MapCodec) EncodeValue(v reflect.Value) ([]byte, error)

func (MapCodec) String added in v0.1.0

func (MapCodec) String() string

type Mapping added in v0.0.37

type Mapping struct {
	Username  *Username  `json:"username,omitempty"`
	FirstName *FirstName `json:"firstName,omitempty"`
	LastName  *LastName  `json:"lastName,omitempty"`
	Name      *Name      `json:"name,omitempty"`
	Email     *Email     `json:"email,omitempty"`
}

type Marshaler added in v0.1.0

type Marshaler interface {
	MarshalDavinci(ExportCmpOpts) ([]byte, error)
}

type Message

type Message struct {
	Message *string `json:"message,omitempty"`
	Value   *string `json:"value,omitempty"`
}

type Metadata

type Metadata struct {
	RpName *string `json:"rpName,omitempty"`
}

type Name added in v0.0.37

type Name struct {
	Value1 string `json:"value1,omitempty"`
}

type Node added in v0.1.0

type Node struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	Data                 *NodeData              `json:"data,omitempty" davinci:"data,*,omitempty"`
	Position             *Position              `json:"position,omitempty" davinci:"position,*,omitempty"`
	Group                string                 `json:"group" davinci:"group,designercue"`
	Removed              bool                   `json:"removed" davinci:"removed,designercue"`
	Selected             bool                   `json:"selected" davinci:"selected,designercue"`
	Selectable           bool                   `json:"selectable" davinci:"selectable,designercue"`
	Locked               bool                   `json:"locked" davinci:"locked,designercue"`
	Grabbable            bool                   `json:"grabbable" davinci:"grabbable,designercue"`
	Pannable             bool                   `json:"pannable" davinci:"pannable,designercue"`
	Classes              string                 `json:"classes" davinci:"classes,config"`
}

func (Node) MarshalJSON added in v0.1.0

func (o Node) MarshalJSON() ([]byte, error)

func (Node) ToMap added in v0.1.0

func (o Node) ToMap() (map[string]interface{}, error)

func (*Node) UnmarshalJSON added in v0.1.0

func (o *Node) UnmarshalJSON(bytes []byte) (err error)

type NodeData added in v0.0.37

type NodeData struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	CapabilityName       *string                `json:"capabilityName,omitempty" davinci:"capabilityName,config,omitempty"`
	ConnectionID         *string                `json:"connectionId,omitempty" davinci:"connectionId,config,omitempty"`
	ConnectorID          *string                `json:"connectorId,omitempty" davinci:"connectorId,config,omitempty"`
	ID                   *string                `json:"id,omitempty" davinci:"id,config,omitempty"`
	Label                *string                `json:"label,omitempty" davinci:"label,config,omitempty"`
	Name                 *string                `json:"name,omitempty" davinci:"name,config,omitempty"`
	NodeType             *string                `json:"nodeType,omitempty" davinci:"nodeType,config,omitempty"`
	Properties           *Properties            `json:"properties" davinci:"properties,*"`
	Source               *string                `json:"source,omitempty" davinci:"source,config,omitempty"`
	Status               *string                `json:"status,omitempty" davinci:"status,config,omitempty"`
	Target               *string                `json:"target,omitempty" davinci:"target,config,omitempty"`
	Type                 *string                `json:"type,omitempty" davinci:"type,config,omitempty"`
}

func (NodeData) MarshalJSON added in v0.1.0

func (o NodeData) MarshalJSON() ([]byte, error)

func (NodeData) ToMap added in v0.1.0

func (o NodeData) ToMap() (map[string]interface{}, error)

func (*NodeData) UnmarshalJSON added in v0.1.0

func (o *NodeData) UnmarshalJSON(bytes []byte) (err error)

type Oauth

type Oauth struct {
	Enabled bool         `json:"enabled"`
	Values  *OauthValues `json:"values,omitempty"`
}

type OauthValues

type OauthValues struct {
	Enabled                    bool     `json:"enabled"`
	ClientSecret               *string  `json:"clientSecret,omitempty"`
	RedirectUris               []string `json:"redirectUris,omitempty"`
	LogoutUris                 []string `json:"logoutUris,omitempty"`
	AllowedScopes              []string `json:"allowedScopes,omitempty"`
	AllowedGrants              []string `json:"allowedGrants,omitempty"`
	EnforceSignedRequestOpenid *bool    `json:"enforceSignedRequestOpenid,omitempty"`
	SpjwksUrl                  *string  `json:"spjwksUrl,omitempty"`
	SpJwksOpenid               *string  `json:"spJwksOpenid,omitempty"`
}

type Options added in v0.0.37

type Options struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
}

type OutputSchema added in v0.0.44

type OutputSchema struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	Output               interface{}            `json:"output,omitempty" davinci:"output,config,omitempty"`
}

func (OutputSchema) MarshalJSON added in v0.1.0

func (o OutputSchema) MarshalJSON() ([]byte, error)

func (OutputSchema) ToMap added in v0.1.0

func (o OutputSchema) ToMap() (map[string]interface{}, error)

func (*OutputSchema) UnmarshalJSON added in v0.1.0

func (o *OutputSchema) UnmarshalJSON(bytes []byte) (err error)

type Pan added in v0.0.32

type Pan struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	X                    *float64               `json:"x,omitempty" davinci:"x,designercue,omitempty"`
	Y                    *float64               `json:"y,omitempty" davinci:"y,designercue,omitempty"`
}

func (Pan) MarshalJSON added in v0.1.0

func (o Pan) MarshalJSON() ([]byte, error)

func (Pan) ToMap added in v0.1.0

func (o Pan) ToMap() (map[string]interface{}, error)

func (*Pan) UnmarshalJSON added in v0.1.0

func (o *Pan) UnmarshalJSON(bytes []byte) (err error)

type Params

type Params struct {
	Page        string
	Limit       string
	ExtraParams map[string]string
}

func (Params) QueryParams

func (args Params) QueryParams() url.Values

type Placeholder added in v0.0.37

type Placeholder struct {
	Name          *string     `json:"name,omitempty"`
	Description   *string     `json:"description,omitempty"`
	Type          *string     `json:"type,omitempty"`
	Value         interface{} `json:"value,omitempty"`
	MinLength     *string     `json:"minLength,omitempty"`
	MaxLength     *string     `json:"maxLength,omitempty"`
	Required      *bool       `json:"required,omitempty"`
	AttributeType *string     `json:"attributeType,omitempty"`
}

type Policy added in v0.0.30

type Policy struct {
	PolicyFlows []PolicyFlow `json:"flows,omitempty"`
	Name        *string      `json:"name,omitempty"`
	Status      *string      `json:"status,omitempty"`
	PolicyID    *string      `json:"policyId,omitempty"`
	CreatedDate *EpochTime   `json:"createdDate,omitempty"`
	Trigger     *Trigger     `json:"trigger,omitempty"`
}

type PolicyFlow added in v0.0.30

type PolicyFlow struct {
	FlowID       string   `json:"flowId"`
	VersionID    int      `json:"versionId"`
	Weight       *int     `json:"weight,omitempty"`
	SuccessNodes []string `json:"successNodes,omitempty"`
	IP           []string `json:"ip,omitempty"`
}

type Position added in v0.0.32

type Position struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	X                    *float64               `json:"x,omitempty" davinci:"x,designercue,omitempty"`
	Y                    *float64               `json:"y,omitempty" davinci:"y,designercue,omitempty"`
}

func (Position) MarshalJSON added in v0.1.0

func (o Position) MarshalJSON() ([]byte, error)

func (Position) ToMap added in v0.1.0

func (o Position) ToMap() (map[string]interface{}, error)

func (*Position) UnmarshalJSON added in v0.1.0

func (o *Position) UnmarshalJSON(bytes []byte) (err error)

type Properties

type Properties struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	Form                 *string                `json:"form,omitempty" davinci:"form,config,omitempty"`
	SubFlowID            *SubFlowID             `json:"subFlowId,omitempty" davinci:"subFlowId,config,omitempty"`
	SubFlowVersionID     *SubFlowVersionID      `json:"subFlowVersionId,omitempty" davinci:"subFlowVersionId,config,omitempty"`
	SaveFlowVariables    *SaveFlowVariables     `json:"saveFlowVariables,omitempty" davinci:"saveFlowVariables,config,omitempty"`
}

func (Properties) MarshalJSON added in v0.1.0

func (o Properties) MarshalJSON() ([]byte, error)

func (Properties) ToMap added in v0.1.0

func (o Properties) ToMap() (map[string]interface{}, error)

func (*Properties) UnmarshalJSON added in v0.1.0

func (o *Properties) UnmarshalJSON(bytes []byte) (err error)

type ProviderName added in v0.0.37

type ProviderName struct {
	DisplayName          *string `json:"displayName,omitempty"`
	PreferredControlType *string `json:"preferredControlType,omitempty"`
	Required             *bool   `json:"required,omitempty"`
	Placeholder          *string `json:"placeholder,omitempty"`
	Value                *string `json:"value,omitempty"`
}

type PtrCodec added in v0.1.0

type PtrCodec struct {
	// contains filtered or unexported fields
}

func (PtrCodec) DecodeValue added in v0.1.0

func (d PtrCodec) DecodeValue(data []byte, v reflect.Value) error

func (PtrCodec) EncodeValue added in v0.1.0

func (d PtrCodec) EncodeValue(v reflect.Value) ([]byte, error)

func (PtrCodec) String added in v0.1.0

func (PtrCodec) String() string

type ReadApp

type ReadApp struct {
	App App `json:"app"`
}

type Renderer added in v0.0.32

type Renderer struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	Name                 *string                `json:"name,omitempty" davinci:"name,designercue,omitempty"`
}

func (Renderer) MarshalJSON added in v0.1.0

func (o Renderer) MarshalJSON() ([]byte, error)

func (Renderer) ToMap added in v0.1.0

func (o Renderer) ToMap() (map[string]interface{}, error)

func (*Renderer) UnmarshalJSON added in v0.1.0

func (o *Renderer) UnmarshalJSON(bytes []byte) (err error)

type ReturnToURL added in v0.0.37

type ReturnToURL struct {
	DisplayName          *string `json:"displayName,omitempty"`
	PreferredControlType *string `json:"preferredControlType,omitempty"`
	Info                 *string `json:"info,omitempty"`
	Value                *string `json:"value,omitempty"`
	Placeholder          *string `json:"placeholder,omitempty"`
}

type Role

type Role struct {
	ID struct {
		Name      *string `json:"name,omitempty"`
		CompanyID *string `json:"companyId,omitempty"`
	} `json:"_id,omitempty"`
	CreatedDate *EpochTime `json:"createdDate,omitempty"`
	Description *string    `json:"description,omitempty"`
	Policy      []struct {
		Resource *string `json:"resource,omitempty"`
		Actions  []struct {
			Action *string `json:"action,omitempty"`
			Allow  *bool   `json:"allow,omitempty"`
		} `json:"actions,omitempty"`
	} `json:"policy,omitempty"`
}

TODO: Cleanup roles

type RoleCreate

type RoleCreate struct {
	Name string `json:"name"`
}

type RoleCreateResponse

type RoleCreateResponse struct {
	ID struct {
		Name      *string `json:"name,omitempty"`
		CompanyID *string `json:"companyId,omitempty"`
	} `json:"_id,omitempty"`
	CreatedDate *EpochTime `json:"createdDate,omitempty"`
}

type RoleUpdate

type RoleUpdate struct {
	Description *string `json:"description,omitempty"`
	Policy      []struct {
		Resource *string `json:"resource,omitempty"`
		Actions  []struct {
			Action *string `json:"action,omitempty"`
			Allow  *bool   `json:"allow,omitempty"`
		} `json:"actions,omitempty"`
	} `json:"policy,omitempty"`
}

type SDKInterfaceFunc added in v0.1.0

type SDKInterfaceFunc func() (any, *http.Response, error)

type SSOAuthenticationResponse added in v0.0.55

type SSOAuthenticationResponse struct {
	Links     SSOAuthenticationResponseLinks    `json:"_links,omitempty"`
	ID        *string                           `json:"id,omitempty"`
	Session   *SSOAuthenticationResponseSession `json:"session,omitempty"`
	ResumeURL *string                           `json:"resumeUrl,omitempty"`
	Status    *string                           `json:"status,omitempty"`
	CreatedAt time.Time                         `json:"createdAt,omitempty"`
	ExpiresAt time.Time                         `json:"expiresAt,omitempty"`
	Embedded  SSOAuthenticationResponseEmbedded `json:"_embedded,omitempty"`
}

type SSOAuthenticationResponseEmbedded added in v0.0.55

type SSOAuthenticationResponseEmbedded struct {
	User *SSOAuthenticationResponseEmbeddedUser `json:"user,omitempty"`
}

type SSOAuthenticationResponseEmbeddedUser added in v0.0.55

type SSOAuthenticationResponseEmbeddedUser struct {
	ID       *string `json:"id,omitempty"`
	Username *string `json:"username,omitempty"`
}
type SSOAuthenticationResponseLinks struct {
	Self *Self `json:"self,omitempty"`
}

type SSOAuthenticationResponseSession added in v0.0.55

type SSOAuthenticationResponseSession struct {
	ID *string `json:"id,omitempty"`
}

type Saml

type Saml struct {
	Values *SamlValues `json:"values,omitempty"`
}

type SamlValues

type SamlValues struct {
	Enabled              bool    `json:"enabled"`
	RedirectURI          *string `json:"redirectUri,omitempty"`
	Audience             *string `json:"audience,omitempty"`
	EnforceSignedRequest *bool   `json:"enforceSignedRequest,omitempty"`
	SpCert               *string `json:"spCert,omitempty"`
}

type SaveFlowVariables added in v0.1.0

type SaveFlowVariables struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	Value                []FlowVariable         `json:"value,omitempty" davinci:"value,*,omitempty"`
}

func (SaveFlowVariables) MarshalJSON added in v0.1.0

func (o SaveFlowVariables) MarshalJSON() ([]byte, error)

func (SaveFlowVariables) ToMap added in v0.1.0

func (o SaveFlowVariables) ToMap() (map[string]interface{}, error)

func (*SaveFlowVariables) UnmarshalJSON added in v0.1.0

func (o *SaveFlowVariables) UnmarshalJSON(bytes []byte) (err error)

type Scope added in v0.0.37

type Scope struct {
	DisplayName          *string `json:"displayName,omitempty"`
	PreferredControlType *string `json:"preferredControlType,omitempty"`
	Required             *bool   `json:"required,omitempty"`
	Value                *string `json:"value,omitempty"`
	Placeholder          *string `json:"placeholder,omitempty"`
}

type Self added in v0.0.55

type Self struct {
	Href *string `json:"href,omitempty"`
}

type SkRedirectURI added in v0.0.37

type SkRedirectURI struct {
	DisplayName          *string `json:"displayName,omitempty"`
	PreferredControlType *string `json:"preferredControlType,omitempty"`
	Disabled             *bool   `json:"disabled,omitempty"`
	InitializeValue      *string `json:"initializeValue,omitempty"`
	CopyToClip           *bool   `json:"copyToClip,omitempty"`
}

type SkSdkToken

type SkSdkToken struct {
	CapabilityName string `json:"capabilityName"`
	AccessToken    string `json:"access_token"`
	TokenType      string `json:"token_type"`
	ExpiresIn      int    `json:"expires_in"`
	Success        bool   `json:"success"`
}

type SliceCodec added in v0.1.0

type SliceCodec struct {
	// contains filtered or unexported fields
}

func (SliceCodec) DecodeValue added in v0.1.0

func (d SliceCodec) DecodeValue(data []byte, v reflect.Value) error

func (SliceCodec) EncodeValue added in v0.1.0

func (d SliceCodec) EncodeValue(v reflect.Value) ([]byte, error)

func (SliceCodec) String added in v0.1.0

func (SliceCodec) String() string

type StructCodec added in v0.1.0

type StructCodec struct {
	// contains filtered or unexported fields
}

func (StructCodec) DecodeValue added in v0.1.0

func (d StructCodec) DecodeValue(data []byte, v reflect.Value) error

func (StructCodec) EncodeValue added in v0.1.0

func (d StructCodec) EncodeValue(v reflect.Value) ([]byte, error)

func (StructCodec) String added in v0.1.0

func (StructCodec) String() string

type SubFlowID added in v0.0.32

type SubFlowID struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	Value                *SubFlowValue          `json:"value,omitempty" davinci:"value,*,omitempty"`
}

func (SubFlowID) MarshalJSON added in v0.1.0

func (o SubFlowID) MarshalJSON() ([]byte, error)

func (SubFlowID) ToMap added in v0.1.0

func (o SubFlowID) ToMap() (map[string]interface{}, error)

func (*SubFlowID) UnmarshalJSON added in v0.1.0

func (o *SubFlowID) UnmarshalJSON(bytes []byte) (err error)

type SubFlowProperties added in v0.0.32

type SubFlowProperties struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	SubFlowID            *SubFlowID             `json:"subFlowId,omitempty" davinci:"subFlowId,*,omitempty"`
	SubFlowProperties    *SubFlowProperties     `json:"subFlowVersionId,omitempty" davinci:"subFlowVersionId,*,omitempty"`
}

func (SubFlowProperties) MarshalJSON added in v0.1.0

func (o SubFlowProperties) MarshalJSON() ([]byte, error)

func (SubFlowProperties) ToMap added in v0.1.0

func (o SubFlowProperties) ToMap() (map[string]interface{}, error)

func (*SubFlowProperties) UnmarshalJSON added in v0.1.0

func (o *SubFlowProperties) UnmarshalJSON(bytes []byte) (err error)

type SubFlowValue added in v0.0.32

type SubFlowValue LabelValue

type SubFlowVersionID added in v0.0.32

type SubFlowVersionID struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	Value                *SubFlowVersionIDValue `json:"value,omitempty" davinci:"value,*,omitempty"`
}

func (SubFlowVersionID) MarshalJSON added in v0.1.0

func (o SubFlowVersionID) MarshalJSON() ([]byte, error)

func (SubFlowVersionID) ToMap added in v0.1.0

func (o SubFlowVersionID) ToMap() (map[string]interface{}, error)

func (*SubFlowVersionID) UnmarshalJSON added in v0.1.0

func (o *SubFlowVersionID) UnmarshalJSON(bytes []byte) (err error)

type SubFlowVersionIDValue added in v0.1.0

type SubFlowVersionIDValue struct {
	ValueFloat64 *float64
	ValueInt     *int32
	ValueString  *string
}

func (SubFlowVersionIDValue) MarshalDavinci added in v0.1.0

func (o SubFlowVersionIDValue) MarshalDavinci(_ ExportCmpOpts) ([]byte, error)

func (SubFlowVersionIDValue) MarshalJSON added in v0.1.0

func (o SubFlowVersionIDValue) MarshalJSON() ([]byte, error)

func (*SubFlowVersionIDValue) UnmarshalDavinci added in v0.1.0

func (o *SubFlowVersionIDValue) UnmarshalDavinci(bytes []byte, _ ExportCmpOpts) (err error)

func (*SubFlowVersionIDValue) UnmarshalJSON added in v0.1.0

func (o *SubFlowVersionIDValue) UnmarshalJSON(bytes []byte) (err error)

type TokenEndpoint added in v0.0.37

type TokenEndpoint struct {
	DisplayName          *string `json:"displayName,omitempty"`
	PreferredControlType *string `json:"preferredControlType,omitempty"`
	Required             *bool   `json:"required,omitempty"`
	Value                *string `json:"value,omitempty"`
	Placeholder          *string `json:"placeholder,omitempty"`
}

type Trigger added in v0.0.42

type Trigger struct {
	AdditionalProperties map[string]interface{} `json:"-" davinci:"-,unmappedproperties"` // used to capture all other properties that are not explicitly defined in the model
	TriggerType          *string                `json:"type,omitempty" davinci:"type,config,omitempty"`
}

func (Trigger) MarshalJSON added in v0.1.0

func (o Trigger) MarshalJSON() ([]byte, error)

func (Trigger) ToMap added in v0.1.0

func (o Trigger) ToMap() (map[string]interface{}, error)

func (*Trigger) UnmarshalJSON added in v0.1.0

func (o *Trigger) UnmarshalJSON(bytes []byte) (err error)

type Unmarshaler added in v0.1.0

type Unmarshaler interface {
	UnmarshalDavinci([]byte, ExportCmpOpts) error
}

type UpdateAnnotationProperties added in v0.0.49

type UpdateAnnotationProperties struct {
	Type           *string                  `json:"type,omitempty"`
	Title          *string                  `json:"title,omitempty"`
	SubTitle       *string                  `json:"subTitle,omitempty"`
	UserViews      []interface{}            `json:"userViews,omitempty"`
	FlowConfigView *ConnectorFlowConfigView `json:"flowConfigView,omitempty"`
}

type UserConnectorAttributeMapping added in v0.0.37

type UserConnectorAttributeMapping struct {
	Type                 *string                                   `json:"type,omitempty"`
	DisplayName          interface{}                               `json:"displayName,omitempty"`
	PreferredControlType *string                                   `json:"preferredControlType,omitempty"`
	NewMappingAllowed    *bool                                     `json:"newMappingAllowed,omitempty"`
	Title1               interface{}                               `json:"title1,omitempty"`
	Title2               interface{}                               `json:"title2,omitempty"`
	Sections             []string                                  `json:"sections,omitempty"`
	Value                *UserConnectorAttributeMappingValue       `json:"value,omitempty"`
	Placeholder          *UserConnectorAttributeMappingPlaceholder `json:"placeholder,omitempty"`
}

type UserConnectorAttributeMappingPlaceholder added in v0.0.37

type UserConnectorAttributeMappingPlaceholder struct {
	UserPoolConnectionID *string  `json:"userPoolConnectionId,omitempty"`
	Mapping              *Mapping `json:"mapping,omitempty"`
}

type UserConnectorAttributeMappingValue added in v0.0.37

type UserConnectorAttributeMappingValue struct {
	UserPoolConnectionID *string  `json:"userPoolConnectionId,omitempty"`
	Mapping              *Mapping `json:"mapping,omitempty"`
}

type UserInfoEndpoint added in v0.0.37

type UserInfoEndpoint struct {
	DisplayName          *string  `json:"displayName,omitempty"`
	PreferredControlType *string  `json:"preferredControlType,omitempty"`
	Required             *bool    `json:"required,omitempty"`
	Value                []string `json:"value,omitempty"`
	Placeholder          []string `json:"placeholder,omitempty"`
}

type UserPools

type UserPools struct {
	ConnectionID *string `json:"connectionId,omitempty"`
	ConnectorID  *string `json:"connectorId,omitempty"`
}

type UserPortal

type UserPortal struct {
	Values *UserPortalValues `json:"values"`
}

type UserPortalValues

type UserPortalValues struct {
	UpTitle                 string `json:"upTitle"`
	AddAuthMethodTitle      string `json:"addAuthMethodTitle"`
	FlowTimeoutInSeconds    int    `json:"flowTimeoutInSeconds"`
	CredentialPageTitle     string `json:"credentialPageTitle"`
	CredentialPageSubTitle  string `json:"credentialPageSubTitle"`
	ShowUserInfo            bool   `json:"showUserInfo"`
	ShowMfaButton           bool   `json:"showMfaButton"`
	ShowVariables           bool   `json:"showVariables"`
	ShowLogoutButton        bool   `json:"showLogoutButton"`
	NameAuthMethodTitle     string `json:"nameAuthMethodTitle"`
	NameConfirmButtonText   string `json:"nameConfirmButtonText"`
	UpdateMessage           string `json:"updateMessage"`
	UpdateBodyMessage       string `json:"updateBodyMessage"`
	RemoveAuthMethodTitle   string `json:"removeAuthMethodTitle"`
	RemoveMessage           string `json:"removeMessage"`
	RemoveBodyMessage       string `json:"removeBodyMessage"`
	RemoveConfirmButtonText string `json:"removeConfirmButtonText"`
	RemoveCancelButtonText  string `json:"removeCancelButtonText"`
}

type Username added in v0.0.37

type Username struct {
	Value1 string `json:"value1,omitempty"`
}

type ValueDecoder added in v0.1.0

type ValueDecoder interface {
	DecodeValue([]byte, reflect.Value) error
}

func NewJSONDecoder added in v0.1.0

func NewJSONDecoder() ValueDecoder

func NewMapDecoder added in v0.1.0

func NewMapDecoder(dCtx *DecoderContext) ValueDecoder

func NewPtrDecoder added in v0.1.0

func NewPtrDecoder(dCtx *DecoderContext) ValueDecoder

func NewSliceDecoder added in v0.1.0

func NewSliceDecoder(dCtx *DecoderContext) ValueDecoder

func NewStructDecoder added in v0.1.0

func NewStructDecoder(dCtx *DecoderContext) ValueDecoder

type ValueEncoder added in v0.1.0

type ValueEncoder interface {
	EncodeValue(reflect.Value) ([]byte, error)
}

func NewJSONEncoder added in v0.1.0

func NewJSONEncoder() ValueEncoder

func NewMapEncoder added in v0.1.0

func NewMapEncoder(eCtx *EncoderContext) ValueEncoder

func NewPtrEncoder added in v0.1.0

func NewPtrEncoder(eCtx *EncoderContext) ValueEncoder

func NewSliceEncoder added in v0.1.0

func NewSliceEncoder(eCtx *EncoderContext) ValueEncoder

func NewStructEncoder added in v0.1.0

func NewStructEncoder(eCtx *EncoderContext) ValueEncoder

type Values

type Values struct {
	Enabled       bool          `json:"enabled"`
	ClientSecret  *string       `json:"clientSecret,omitempty"`
	RedirectUris  []string      `json:"redirectUris,omitempty"`
	LogoutUris    []interface{} `json:"logoutUris,omitempty"`
	AllowedScopes []string      `json:"allowedScopes,omitempty"`
	AllowedGrants []string      `json:"allowedGrants,omitempty"`
}

type Variable added in v0.0.27

type Variable struct {
	Context     *string    `json:"context,omitempty"`
	CreatedDate *EpochTime `json:"createdDate,omitempty"`
	CustomerID  *string    `json:"customerId,omitempty"`
	Type        *string    `json:"type,omitempty"`
	Visibility  *string    `json:"visibility,omitempty"`
	CompanyID   *string    `json:"companyId,omitempty"`
	TotalCount  *int       `json:"totalCount,omitempty"`
	DisplayName *string    `json:"displayName,omitempty"`
	Value       *string    `json:"value,omitempty"`
	Mutable     *bool      `json:"mutable,omitempty"`
	Min         *int       `json:"min,omitempty"`
	Max         *int       `json:"max,omitempty"`
}

type VariablePayload added in v0.0.27

type VariablePayload struct {
	Name *string `json:"name,omitempty"`
	//Description in UI, displayName in API
	Description *string `json:"displayName,omitempty"`
	FlowId      *string `json:"flowId,omitempty"`
	Context     string  `json:"context,omitempty" validate:"oneof=company flowInstance user flow"`
	Type        string  `json:"type"`
	Value       *string `json:"value,omitempty"`
	Mutable     *bool   `json:"mutable,omitempty"`
	Min         *int    `json:"min,omitempty"`
	Max         *int    `json:"max,omitempty"`
}

type VariablesValueInterface added in v0.0.46

type VariablesValueInterface struct {
	Context     *string     `json:"context,omitempty"`
	CreatedDate *EpochTime  `json:"createdDate,omitempty"`
	CustomerID  *string     `json:"customerId,omitempty"`
	Type        *string     `json:"type,omitempty"`
	Visibility  *string     `json:"visibility,omitempty"`
	CompanyID   *string     `json:"companyId,omitempty"`
	TotalCount  *int        `json:"totalCount,omitempty"`
	DisplayName *string     `json:"displayName,omitempty"`
	Value       interface{} `json:"value,omitempty"`
	Mutable     *bool       `json:"mutable,omitempty"`
	Min         *int        `json:"min,omitempty"`
	Max         *int        `json:"max,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL