Documentation
¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (*openapi3.T, error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- type AggregateOp
- type AggregationExpr
- type AsyncSearchStatusDto
- type AsyncSearchStatusDtoSearchJobStatus
- type AuditActorInfoDto
- type AuditEventDto
- type AuditEventSeverity
- type AuditPrincipalDto
- type CancelAsyncSearchDto
- type CancelAsyncSearchDtoCurrentSearchJobStatus
- type CancelAsyncSearchParams
- type ChangePlatformClockJSONRequestBody
- type ClusterNodeClockDto
- type ClusterNodeStatusDto
- type ClusterNodeStatusDtoReachability
- type ClusterNodeStatusDtoState
- type ClusterStateCountDto
- type ClusterStateCountDtoReachability
- type ClusterStateCountDtoState
- type ClusterStatusDto
- type ConsistencyTimeDto
- type CreateCollectionJSONBody
- type CreateCollectionJSONRequestBody
- type CreateCollectionParams
- type CreateCollectionParamsFormat
- type CreateJSONBody
- type CreateJSONRequestBody
- type CreateParams
- type CreateParamsFormat
- type CreateTechnicalUserParams
- type CursorPaginationInfoDto
- type DeleteEntitiesJSONRequestBody
- type DeleteEntitiesParams
- type DeleteMessageParams
- type DeleteMessagesJSONBody
- type DeleteMessagesJSONRequestBody
- type DeleteMessagesParams
- type DeleteSingleEntityParams
- type DeleteTechnicalUser200ResponseDto
- type EdgeMessageDto
- type EdgeMessageHeader
- type EdgeMessageMetaData
- type EdgeMessagePayload
- type EntityAuditEventsResponseDto
- type EntityChangeMeta
- type EntityChangeMetaChangeType
- type EntityMetadata
- type EntityMetadataDto
- type EntityModelActionResultDto
- type EntityModelDto
- type EntityModelKey
- type EntityResultDto
- type EntityTransactionResponse
- type Envelope
- type ErrorResponseDto
- type ErrorResponseDtoError
- type ExportMetadataParamsConverter
- type FetchEntityTransitionsParams
- type FieldConfigDto
- type Forbidden
- type GetAllEntitiesParams
- type GetAsyncSearchResultsParams
- type GetAsyncSearchStatusParams
- type GetEntityChangesMetadataParams
- type GetEntityStatisticsByStateForModelParams
- type GetEntityStatisticsByStateParams
- type GetEntityStatisticsForModelParams
- type GetEntityStatisticsParams
- type GetEntityTransitionsParams
- type GetMessageParams
- type GetOneEntityParams
- type GetPlatformClusterParams
- type GetStateMachineFinishedEventParams
- type GetTechnicalUserTokenFormdataBody
- type GetTechnicalUserTokenFormdataBodyGrantType
- type GetTechnicalUserTokenFormdataBodySubjectTokenType
- type GetTechnicalUserTokenFormdataRequestBody
- type GetTechnicalUserTokenParams
- type GroupKeyEntry
- type GroupedStatsBucket
- type GroupedStatsRequest
- type ImportEntityModelJSONBody
- type ImportEntityModelJSONRequestBody
- type ImportEntityModelParamsConverter
- type ImportEntityModelParamsDataFormat
- type ImportEntityModelWorkflowJSONRequestBody
- type InternalServerError
- type InvalidParamFormatError
- type InvalidateJwtKeyPairJSONRequestBody
- type InvalidateKeyRequestDto
- type IssueJwtKeyPairJSONRequestBody
- type IssueJwtKeyPairRequestDto
- type IssueJwtKeyPairRequestDtoAlgorithm
- type JoinedPayloadTooLarge
- type JwtKeyPairResponseDto
- type JwtKeyPairResponseDtoAlgorithm
- type LaureateDto
- type LegalEntityInfoDto
- type ListScheduledTasksParams
- type ListScheduledTasksParamsStatus
- type MessageDeleteBatchResponse
- type MessageDeleteResponse
- type MiddlewareFunc
- type ModelStateStatsDto
- type ModelStatsDto
- type NewMessageJSONRequestBody
- type NewMessageParams
- type NewMessageRequest
- type NotImplemented
- type PageMetadataDto
- type PagedEntityResultsDto
- type PatchSingleApplicationJSONPatchPlusJSONBody
- type PatchSingleApplicationJSONPatchPlusJSONRequestBody
- type PatchSingleApplicationMergePatchPlusJSONBody
- type PatchSingleApplicationMergePatchPlusJSONRequestBody
- type PatchSingleParams
- type PatchSingleParamsFormat
- type PatchSingleWithLoopbackApplicationJSONPatchPlusJSONBody
- type PatchSingleWithLoopbackApplicationJSONPatchPlusJSONRequestBody
- type PatchSingleWithLoopbackApplicationMergePatchPlusJSONBody
- type PatchSingleWithLoopbackApplicationMergePatchPlusJSONRequestBody
- type PatchSingleWithLoopbackParams
- type PatchSingleWithLoopbackParamsFormat
- type PlatformClockChangeDto
- type PlatformClockChangeResultDto
- type PlatformClockDto
- type Prize
- type ProblemDetail
- type ProcessorDefinitionDto
- type QueryConditionDto
- type QueryGroupedEntityStatisticsForModelJSONRequestBody
- type QueryGroupedEntityStatisticsForModelParams
- type QueryParameterRefused
- type ReactivateJwtKeyPairJSONRequestBody
- type ReactivateKeyRequestDto
- type ReactivateTrustedKeyJSONRequestBody
- type RegisterTrustedKeyJSONRequestBody
- type RegisterTrustedKeyRequestDto
- type RequiredHeaderError
- type RequiredParamError
- type ScheduleFunctionDto
- type ScheduleFunctionDtoResultKind
- type ScheduleFunctionDtoRetryPolicy
- type ScheduleFunctionInvalidResult
- type ScheduledTaskArmedByDto
- type ScheduledTaskDto
- type ScheduledTaskPageDto
- type SearchEntitiesJSONRequestBody
- type SearchEntitiesParams
- type SearchEntityAuditEventsParams
- type SearchEntityAuditEventsParamsEventType
- type SearchEntityAuditEventsParamsSeverity
- type ServeMux
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AccountGet(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AccountSubscriptionsGet(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CancelAsyncSearch(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ChangePlatformClock(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Create(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateCollection(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateTechnicalUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteEntities(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteEntityModel(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteJwtKeyPair(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteMessage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteMessages(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteSingleEntity(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteTechnicalUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteTrustedKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ExportEntityModelWorkflow(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ExportMetadata(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) FetchEntityTransitions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAllEntities(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAsyncSearchResults(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAsyncSearchStatus(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAvailableEntityModels(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetConsistencyTime(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCurrentJwtKeyPair(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetEntityChangesMetadata(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetEntityStatistics(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetEntityStatisticsByState(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetEntityStatisticsByStateForModel(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetEntityStatisticsForModel(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetEntityTransitions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMessage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetOneEntity(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetPlatformClock(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetPlatformCluster(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetStateMachineFinishedEvent(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTechnicalUserToken(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ImportEntityModel(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ImportEntityModelWorkflow(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) InvalidateJwtKeyPair(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) InvalidateTrustedKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) IssueJwtKeyPair(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListScheduledTasks(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListTechnicalUsers(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListTrustedKeys(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) LockEntityModel(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) NewMessage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PatchSingle(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PatchSingleWithLoopback(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) QueryGroupedEntityStatisticsForModel(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReactivateJwtKeyPair(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReactivateTrustedKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RegisterTrustedKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ResetTechnicalUserSecret(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SearchEntities(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SearchEntityAuditEvents(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SetEntityModelChangeLevel(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SetEntityModelUniqueKeys(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SubmitAsyncSearchJob(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UnlockEntityModel(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateCollection(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateSingle(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateSingleWithLoopback(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ValidateEntityModel(w http.ResponseWriter, r *http.Request)
- type ServiceUnavailable
- type SetEntityModelChangeLevelParamsChangeLevel
- type SetEntityModelUniqueKeysJSONRequestBody
- type SetUniqueKeysRequest
- type SingleDeleteResult
- type StateDefinitionDto
- type StateMachineAuditEventDto
- type StateMachineEventDto
- type StdHTTPServerOptions
- type StreamDataDeleteResult
- type StreamDeleteResult
- type SubmitAsyncSearchJobJSONRequestBody
- type SubmitAsyncSearchJobParams
- type SubscriptionDto
- type SubscriptionLimitDto
- type SubscriptionLimitDtoTimeIntervalBound
- type SubscriptionsResponseDto
- type TechnicalUserCredentialsDto
- type TechnicalUserCredentialsDtoGrantType
- type TechnicalUserDto
- type TokenResponseDto
- type TokenResponseDtoIssuedTokenType
- type TokenResponseDtoTokenType
- type TooManyValuesForParamError
- type TransactionGone
- type TransactionNotFound
- type TransactionRollbackOnly
- type TransitionDefinitionDto
- type TransitionNameList
- type TransitionScheduleDto
- type TrustedKeyResponseDto
- type TxToken
- type Unauthorized
- type UnescapedCookieParamError
- type UniqueKeyDto
- type UnmarshalingParamError
- type UpdateCollectionJSONBody
- type UpdateCollectionJSONRequestBody
- type UpdateCollectionParams
- type UpdateCollectionParamsFormat
- type UpdateSingleJSONBody
- type UpdateSingleJSONRequestBody
- type UpdateSingleParams
- type UpdateSingleParamsFormat
- type UpdateSingleWithLoopbackJSONBody
- type UpdateSingleWithLoopbackJSONRequestBody
- type UpdateSingleWithLoopbackParams
- type UpdateSingleWithLoopbackParamsFormat
- type UserAccountInfoDto
- type UserAccountInfoResponseDto
- type UserRoleDto
- type ValidateEntityModelJSONBody
- type ValidateEntityModelJSONRequestBody
- type WorkflowConfigurationDto
- type WorkflowElementAnnotations
- func (a WorkflowElementAnnotations) Get(fieldName string) (value interface{}, found bool)
- func (a WorkflowElementAnnotations) MarshalJSON() ([]byte, error)
- func (a *WorkflowElementAnnotations) Set(fieldName string, value interface{})
- func (a *WorkflowElementAnnotations) UnmarshalJSON(b []byte) error
- type WorkflowExportResponseDto
- type WorkflowImportRequestDto
- type WorkflowImportRequestDtoImportMode
- type WorkflowImportSuccessDto
Constants ¶
const ( BasicAuthScopes basicAuthContextKey = "basicAuth.Scopes" BearerAuthScopes bearerAuthContextKey = "bearerAuth.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the OpenAPI specification for this service.
The spec is embedded as the raw openapi.yaml source rather than re-serialized by oapi-codegen's embedded-spec output. oapi-codegen rewrites operationIds to PascalCase and does not round-trip OpenAPI 3.1 faithfully (it only supports 3.0.x), so its embedded spec diverges from the source. Embedding the source file directly keeps the served document — /openapi.json, the Scalar UI, and `cyoda help openapi` — byte-faithful to openapi.yaml.
A fresh document is parsed on each call so callers may mutate the result (e.g. rewriting servers for the live host) without affecting others.
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type AggregateOp ¶
type AggregateOp string
AggregateOp Aggregation operator. `sum`, `avg`, `min`, `max`, and `stdev` apply to scalar numeric fields; non-numeric or missing values are skipped per spec §3 (D4 semantics — see grouped-stats design doc).
const ( Avg AggregateOp = "avg" Max AggregateOp = "max" Min AggregateOp = "min" Stdev AggregateOp = "stdev" Sum AggregateOp = "sum" )
Defines values for AggregateOp.
func (AggregateOp) Valid ¶
func (e AggregateOp) Valid() bool
Valid indicates whether the value is a known member of the AggregateOp enum.
type AggregationExpr ¶
type AggregationExpr struct {
// As Optional result alias.
As *string `json:"as,omitempty"`
// Field Scalar JSONPath of the field to aggregate (e.g. `$.amount`). Same grammar as a `groupBy` JSONPath, including the required `$.` leader; a path outside it is rejected with 400 `INVALID_AGGREGATION_FIELD`. The `state` token is groupBy-only — there is no aggregate over lifecycle state — so it is rejected here too.
Field string `json:"field"`
// Op Aggregation operator. `sum`, `avg`, `min`, `max`, and `stdev` apply to scalar numeric fields; non-numeric or missing values are skipped per spec §3 (D4 semantics — see grouped-stats design doc).
Op AggregateOp `json:"op"`
}
AggregationExpr One requested aggregation. `field` is a JSONPath into the entity payload. `as` is an optional alias for the result key in the bucket's `aggregations` map; when omitted, the alias defaults to `op(field)` (e.g. `sum($.amount)`).
type AsyncSearchStatusDto ¶
type AsyncSearchStatusDto struct {
// CalculationTimeMillis Time taken to calculate the search job in milliseconds
CalculationTimeMillis int64 `json:"calculationTimeMillis"`
// CreateTime When the search job was initiated
CreateTime time.Time `json:"createTime"`
// EntitiesCount Number of entities found by the search
EntitiesCount int64 `json:"entitiesCount"`
// ExpirationDate When the search job stops being readable: its finish time plus `CYODA_SEARCH_SNAPSHOT_TTL`. From then on its status, results and cancel answer 404 SEARCH_JOB_NOT_FOUND. While the job is RUNNING, a lower bound, createTime plus the TTL; final once the job ends.
ExpirationDate time.Time `json:"expirationDate"`
// FailureReason Why the search job failed. Present only when `searchJobStatus` is FAILED, and absent for every other status. For a failure the request itself caused, it is the same client error a direct search would answer, code first (for example `INVALID_FIELD_PATH: condition or sort references an invalid field path`); for any other failure it names no internal detail: a server-side failure is `SERVER_ERROR: internal error [ticket: <uuid>]`, its detail logged under the ticket, and a known cause carries a fixed text (for example `search abandoned: executor lost repeatedly`).
FailureReason *string `json:"failureReason,omitempty"`
// FinishTime When the search job completed (null if still running)
FinishTime *time.Time `json:"finishTime,omitempty"`
SearchJobStatus AsyncSearchStatusDtoSearchJobStatus `json:"searchJobStatus"`
}
AsyncSearchStatusDto defines model for AsyncSearchStatusDto.
type AsyncSearchStatusDtoSearchJobStatus ¶
type AsyncSearchStatusDtoSearchJobStatus string
AsyncSearchStatusDtoSearchJobStatus defines model for AsyncSearchStatusDto.SearchJobStatus.
const ( AsyncSearchStatusDtoSearchJobStatusCANCELLED AsyncSearchStatusDtoSearchJobStatus = "CANCELLED" AsyncSearchStatusDtoSearchJobStatusFAILED AsyncSearchStatusDtoSearchJobStatus = "FAILED" AsyncSearchStatusDtoSearchJobStatusNOTFOUND AsyncSearchStatusDtoSearchJobStatus = "NOT_FOUND" AsyncSearchStatusDtoSearchJobStatusRUNNING AsyncSearchStatusDtoSearchJobStatus = "RUNNING" AsyncSearchStatusDtoSearchJobStatusSUCCESSFUL AsyncSearchStatusDtoSearchJobStatus = "SUCCESSFUL" )
Defines values for AsyncSearchStatusDtoSearchJobStatus.
func (AsyncSearchStatusDtoSearchJobStatus) Valid ¶
func (e AsyncSearchStatusDtoSearchJobStatus) Valid() bool
Valid indicates whether the value is a known member of the AsyncSearchStatusDtoSearchJobStatus enum.
type AuditActorInfoDto ¶
type AuditActorInfoDto struct {
// ExternalId External identifier of the actor, if applicable
ExternalId *string `json:"externalId,omitempty"`
// Id Identifier of the actor
Id string `json:"id"`
// Kind Open value set. Known values are user, service and system.
Kind *string `json:"kind,omitempty"`
// LegalId Legal entity identifier of the actor
LegalId string `json:"legalId"`
// Name Name of the actor
Name *string `json:"name,omitempty"`
}
AuditActorInfoDto defines model for AuditActorInfoDto.
type AuditEventDto ¶
type AuditEventDto struct {
// Actor Actor related to this event
Actor *AuditActorInfoDto `json:"actor,omitempty"`
AuditEventType string `json:"auditEventType"`
// ConsistencyTime Cyoda consistency time
ConsistencyTime *time.Time `json:"consistencyTime,omitempty"`
// Details Details of the event
Details *string `json:"details,omitempty"`
// EntityId Identifier of the entity related to this event
EntityId *openapi_types.UUID `json:"entityId,omitempty"`
// EntityModel Type of the entity related to this event (model.version)
EntityModel *string `json:"entityModel,omitempty"`
// MicrosTime time in microseconds when the event occurred
MicrosTime int64 `json:"microsTime"`
// Severity Severity level of the event
Severity AuditEventSeverity `json:"severity"`
// System Flag indicating whether this is a system-level event
System *bool `json:"system,omitempty"`
// TransactionId Transaction identifier related to this event
TransactionId *openapi_types.UUID `json:"transactionId,omitempty"`
// UtcTime UTC time when the event occurred
UtcTime time.Time `json:"utcTime"`
}
AuditEventDto defines model for AuditEventDto.
type AuditEventSeverity ¶
type AuditEventSeverity string
AuditEventSeverity Severity level of the event
const ( AuditEventSeverityDEBUG AuditEventSeverity = "DEBUG" AuditEventSeverityERROR AuditEventSeverity = "ERROR" AuditEventSeverityINFO AuditEventSeverity = "INFO" AuditEventSeverityWARN AuditEventSeverity = "WARN" )
Defines values for AuditEventSeverity.
func (AuditEventSeverity) Valid ¶
func (e AuditEventSeverity) Valid() bool
Valid indicates whether the value is a known member of the AuditEventSeverity enum.
type AuditPrincipalDto ¶
type AuditPrincipalDto struct {
Id string `json:"id"`
// Kind Open value set. Known values are user, service and system.
Kind string `json:"kind"`
}
AuditPrincipalDto The principal that executed the request — that made a change or sent a message — independent of the attributed principal. Present only when one was recorded.
type CancelAsyncSearchDto ¶
type CancelAsyncSearchDto struct {
// Cancelled Alias for isCancelled — both fields are present in the response for compatibility
Cancelled *bool `json:"cancelled,omitempty"`
CurrentSearchJobStatus CancelAsyncSearchDtoCurrentSearchJobStatus `json:"currentSearchJobStatus"`
// IsCancelled Whether the cancellation was successful
IsCancelled bool `json:"isCancelled"`
}
CancelAsyncSearchDto defines model for CancelAsyncSearchDto.
type CancelAsyncSearchDtoCurrentSearchJobStatus ¶
type CancelAsyncSearchDtoCurrentSearchJobStatus string
CancelAsyncSearchDtoCurrentSearchJobStatus defines model for CancelAsyncSearchDto.CurrentSearchJobStatus.
const ( CancelAsyncSearchDtoCurrentSearchJobStatusCANCELLED CancelAsyncSearchDtoCurrentSearchJobStatus = "CANCELLED" CancelAsyncSearchDtoCurrentSearchJobStatusFAILED CancelAsyncSearchDtoCurrentSearchJobStatus = "FAILED" CancelAsyncSearchDtoCurrentSearchJobStatusNOTFOUND CancelAsyncSearchDtoCurrentSearchJobStatus = "NOT_FOUND" CancelAsyncSearchDtoCurrentSearchJobStatusRUNNING CancelAsyncSearchDtoCurrentSearchJobStatus = "RUNNING" CancelAsyncSearchDtoCurrentSearchJobStatusSUCCESSFUL CancelAsyncSearchDtoCurrentSearchJobStatus = "SUCCESSFUL" )
Defines values for CancelAsyncSearchDtoCurrentSearchJobStatus.
func (CancelAsyncSearchDtoCurrentSearchJobStatus) Valid ¶
func (e CancelAsyncSearchDtoCurrentSearchJobStatus) Valid() bool
Valid indicates whether the value is a known member of the CancelAsyncSearchDtoCurrentSearchJobStatus enum.
type CancelAsyncSearchParams ¶
type CancelAsyncSearchParams struct {
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
CancelAsyncSearchParams defines parameters for CancelAsyncSearch.
type ChangePlatformClockJSONRequestBody ¶
type ChangePlatformClockJSONRequestBody = PlatformClockChangeDto
ChangePlatformClockJSONRequestBody defines body for ChangePlatformClock for application/json ContentType.
type ClusterNodeClockDto ¶
type ClusterNodeClockDto struct {
// Controllable Whether clock control is on at the node.
Controllable bool `json:"controllable"`
// Version The version of the node's clock setting.
Version int64 `json:"version"`
// Writer The id of the node that wrote the setting.
Writer string `json:"writer"`
}
ClusterNodeClockDto The node's platform clock setting, without its times. Only when the node is `UP`. A node without clock control answers `controllable` false, `version` 0 and `writer` empty.
type ClusterNodeStatusDto ¶
type ClusterNodeStatusDto struct {
// Clock The node's platform clock setting, without its times. Only when the node is `UP`. A node without clock control answers `controllable` false, `version` 0 and `writer` empty.
Clock *ClusterNodeClockDto `json:"clock,omitempty"`
// Database Whether the node's database check passed. Only when `UP`.
Database *bool `json:"database,omitempty"`
// Id The node's id; `local` without clustering.
Id string `json:"id"`
// Reachability `UP` when the node answered the status ask; `DOWN` when it did not: no answer within `CYODA_PROXY_TIMEOUT`, a connection that did not open, an answer that did not validate, or no usable address.
Reachability ClusterNodeStatusDtoReachability `json:"reachability"`
// State The node's lifecycle state: from its answer when `UP`, from its gossip metadata when `DOWN`. Absent for a `DOWN` node whose metadata does not parse or names no valid state.
State *ClusterNodeStatusDtoState `json:"state,omitempty"`
// Version The node's build version. Only when `UP`.
Version *string `json:"version,omitempty"`
}
ClusterNodeStatusDto defines model for ClusterNodeStatusDto.
type ClusterNodeStatusDtoReachability ¶
type ClusterNodeStatusDtoReachability string
ClusterNodeStatusDtoReachability `UP` when the node answered the status ask; `DOWN` when it did not: no answer within `CYODA_PROXY_TIMEOUT`, a connection that did not open, an answer that did not validate, or no usable address.
const ( ClusterNodeStatusDtoReachabilityDOWN ClusterNodeStatusDtoReachability = "DOWN" ClusterNodeStatusDtoReachabilityUP ClusterNodeStatusDtoReachability = "UP" )
Defines values for ClusterNodeStatusDtoReachability.
func (ClusterNodeStatusDtoReachability) Valid ¶
func (e ClusterNodeStatusDtoReachability) Valid() bool
Valid indicates whether the value is a known member of the ClusterNodeStatusDtoReachability enum.
type ClusterNodeStatusDtoState ¶
type ClusterNodeStatusDtoState string
ClusterNodeStatusDtoState The node's lifecycle state: from its answer when `UP`, from its gossip metadata when `DOWN`. Absent for a `DOWN` node whose metadata does not parse or names no valid state.
const ( ClusterNodeStatusDtoStateDRAINING ClusterNodeStatusDtoState = "DRAINING" ClusterNodeStatusDtoStateNORMAL ClusterNodeStatusDtoState = "NORMAL" ClusterNodeStatusDtoStateSTARTING ClusterNodeStatusDtoState = "STARTING" ClusterNodeStatusDtoStateUNHEALTHY ClusterNodeStatusDtoState = "UNHEALTHY" )
Defines values for ClusterNodeStatusDtoState.
func (ClusterNodeStatusDtoState) Valid ¶
func (e ClusterNodeStatusDtoState) Valid() bool
Valid indicates whether the value is a known member of the ClusterNodeStatusDtoState enum.
type ClusterStateCountDto ¶
type ClusterStateCountDto struct {
// Count How many nodes have this reachability and state.
Count int32 `json:"count"`
// Reachability Whether the nodes counted answered.
Reachability ClusterStateCountDtoReachability `json:"reachability"`
// State The lifecycle state of the nodes counted; absent for `DOWN` nodes whose gossip metadata does not parse or names no valid state.
State *ClusterStateCountDtoState `json:"state,omitempty"`
}
ClusterStateCountDto defines model for ClusterStateCountDto.
type ClusterStateCountDtoReachability ¶
type ClusterStateCountDtoReachability string
ClusterStateCountDtoReachability Whether the nodes counted answered.
const ( ClusterStateCountDtoReachabilityDOWN ClusterStateCountDtoReachability = "DOWN" ClusterStateCountDtoReachabilityUP ClusterStateCountDtoReachability = "UP" )
Defines values for ClusterStateCountDtoReachability.
func (ClusterStateCountDtoReachability) Valid ¶
func (e ClusterStateCountDtoReachability) Valid() bool
Valid indicates whether the value is a known member of the ClusterStateCountDtoReachability enum.
type ClusterStateCountDtoState ¶
type ClusterStateCountDtoState string
ClusterStateCountDtoState The lifecycle state of the nodes counted; absent for `DOWN` nodes whose gossip metadata does not parse or names no valid state.
const ( ClusterStateCountDtoStateDRAINING ClusterStateCountDtoState = "DRAINING" ClusterStateCountDtoStateNORMAL ClusterStateCountDtoState = "NORMAL" ClusterStateCountDtoStateSTARTING ClusterStateCountDtoState = "STARTING" ClusterStateCountDtoStateUNHEALTHY ClusterStateCountDtoState = "UNHEALTHY" )
Defines values for ClusterStateCountDtoState.
func (ClusterStateCountDtoState) Valid ¶
func (e ClusterStateCountDtoState) Valid() bool
Valid indicates whether the value is a known member of the ClusterStateCountDtoState enum.
type ClusterStatusDto ¶
type ClusterStatusDto struct {
// Counts One item per combination of reachability and state present among the nodes, with its count: `UP` before `DOWN`, then in the order `STARTING`, `NORMAL`, `DRAINING`, `UNHEALTHY`, with the item without a state last. A combination no node has is absent.
Counts []ClusterStateCountDto `json:"counts"`
// Nodes One item per member of the cluster directory, in ascending `id` order.
Nodes []ClusterNodeStatusDto `json:"nodes"`
// Operational True only when every node is `UP` and `NORMAL` with `database` true, all nodes have the same `version` and the same `clock`, and, with `waitForNodes`, at least that many nodes are `UP` and `NORMAL`.
Operational bool `json:"operational"`
}
ClusterStatusDto defines model for ClusterStatusDto.
type ConsistencyTimeDto ¶
type ConsistencyTimeDto struct {
// ConsistencyTime The consistency time, at the store's full precision. Pass it unchanged as pointInTime.
ConsistencyTime time.Time `json:"consistencyTime"`
}
ConsistencyTimeDto defines model for ConsistencyTimeDto.
type CreateCollectionJSONBody ¶
type CreateCollectionJSONBody = []struct {
Model struct {
Name string `json:"name"`
Version int32 `json:"version"`
} `json:"model"`
Payload string `json:"payload"`
}
CreateCollectionJSONBody defines parameters for CreateCollection.
type CreateCollectionJSONRequestBody ¶
type CreateCollectionJSONRequestBody = CreateCollectionJSONBody
CreateCollectionJSONRequestBody defines body for CreateCollection for application/json ContentType.
type CreateCollectionParams ¶
type CreateCollectionParams struct {
// TransactionWindow Maximum number of entities per transactional batch. Default 100,
// maximum 1000; values outside (0, 1000] are rejected with 400
// BAD_REQUEST. Collections exceeding the window are split into
// multiple transactional batches committed sequentially. The
// response is an array with one element per chunk in commit order;
// chunks committed before any later failure remain durable.
// A request that joins an open transaction (it carries an
// `X-Tx-Token`) commits nothing itself, so it is never split: an
// explicit transactionWindow is rejected with 400 BAD_REQUEST, and
// without one the collection runs as one unit, so a failure in any
// item fails the request.
TransactionWindow *int32 `form:"transactionWindow,omitempty" json:"transactionWindow,omitempty"`
// TransactionTimeoutMillis Maximum time in milliseconds the server may spend before the
// first commit. When exceeded, the operation is rolled back and
// fails with 408 TRANSACTION_TIMEOUT; nothing is committed. Not
// supported on requests joining an open transaction (400). Absent
// means no server-side timeout.
TransactionTimeoutMillis *int64 `form:"transactionTimeoutMillis,omitempty" json:"transactionTimeoutMillis,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
CreateCollectionParams defines parameters for CreateCollection.
type CreateCollectionParamsFormat ¶
type CreateCollectionParamsFormat string
CreateCollectionParamsFormat defines parameters for CreateCollection.
const ( CreateCollectionParamsFormatJSON CreateCollectionParamsFormat = "JSON" CreateCollectionParamsFormatXML CreateCollectionParamsFormat = "XML" )
Defines values for CreateCollectionParamsFormat.
func (CreateCollectionParamsFormat) Valid ¶
func (e CreateCollectionParamsFormat) Valid() bool
Valid indicates whether the value is a known member of the CreateCollectionParamsFormat enum.
type CreateJSONBody ¶
type CreateJSONBody = interface{}
CreateJSONBody defines parameters for Create.
type CreateJSONRequestBody ¶
type CreateJSONRequestBody = CreateJSONBody
CreateJSONRequestBody defines body for Create for application/json ContentType.
type CreateParams ¶
type CreateParams struct {
// TransactionWindow Maximum number of entities per transactional batch. Applies only
// when the request body is a JSON array; ignored for single-object
// bodies, except that a joined request rejects it whatever the body
// (below). Default 100, maximum 1000; values outside (0, 1000] are
// rejected with 400 BAD_REQUEST. Array bodies exceeding the window
// are split into multiple transactional batches committed
// sequentially. The response is then an array with one element per
// chunk in commit order; chunks committed before any later failure
// remain durable.
// A request that joins an open transaction (it carries an
// `X-Tx-Token`) commits nothing itself, so it is never split: an
// explicit transactionWindow is rejected with 400 BAD_REQUEST, and
// without one the collection runs as one unit, so a failure in any
// item fails the request.
TransactionWindow *int32 `form:"transactionWindow,omitempty" json:"transactionWindow,omitempty"`
// TransactionTimeoutMillis Maximum time in milliseconds the server may spend before the
// first commit. When exceeded, the operation is rolled back and
// fails with 408 TRANSACTION_TIMEOUT; nothing is committed. Not
// supported on requests joining an open transaction (400). Absent
// means no server-side timeout.
TransactionTimeoutMillis *int64 `form:"transactionTimeoutMillis,omitempty" json:"transactionTimeoutMillis,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
CreateParams defines parameters for Create.
type CreateParamsFormat ¶
type CreateParamsFormat string
CreateParamsFormat defines parameters for Create.
const ( CreateParamsFormatJSON CreateParamsFormat = "JSON" CreateParamsFormatXML CreateParamsFormat = "XML" )
Defines values for CreateParamsFormat.
func (CreateParamsFormat) Valid ¶
func (e CreateParamsFormat) Valid() bool
Valid indicates whether the value is a known member of the CreateParamsFormat enum.
type CreateTechnicalUserParams ¶
type CreateTechnicalUserParams struct {
// ClientId The new client's id, chosen by the caller and unique in the caller's tenant. Letters, digits, '.', '_' and '-', starting with a letter or digit, at most 100 characters, case significant; 'system' in any letter case is reserved. Absent: an id is generated (16 characters from 0-9 and A-V). An id the tenant already holds answers 409 M2M_CLIENT_EXISTS.
ClientId *string `form:"clientId,omitempty" json:"clientId,omitempty"`
// WithAdminRole When true, the created M2M client will additionally receive ROLE_ADMIN. Requires the M2M admin role feature flag to be enabled.
WithAdminRole *bool `form:"withAdminRole,omitempty" json:"withAdminRole,omitempty"`
// OnBehalfOf When true, the created client is an on-behalf-of (OBO) client: it may only perform token exchanges (`urn:ietf:params:oauth:grant-type:token-exchange`), never `client_credentials`. The flag is immutable and never combined with `withAdminRole=true`, and the client is never created in the `PLATFORM` tenant.
OnBehalfOf *bool `form:"onBehalfOf,omitempty" json:"onBehalfOf,omitempty"`
}
CreateTechnicalUserParams defines parameters for CreateTechnicalUser.
type CursorPaginationInfoDto ¶
type CursorPaginationInfoDto struct {
// HasNext Indicates whether there are more results available
HasNext bool `json:"hasNext"`
// NextCursor Opaque position of the last event on this page. Absent when hasNext is false.
NextCursor *string `json:"nextCursor,omitempty"`
}
CursorPaginationInfoDto defines model for CursorPaginationInfoDto.
type DeleteEntitiesJSONRequestBody ¶
type DeleteEntitiesJSONRequestBody = QueryConditionDto
DeleteEntitiesJSONRequestBody defines body for DeleteEntities for application/json ContentType.
type DeleteEntitiesParams ¶
type DeleteEntitiesParams struct {
// TransactionSize Number of entities to delete per transaction batch. Batches
// committed before a failure remain durable and per-id/batch
// failures are reported in the response. Not supported on
// requests joining an open transaction (400). Absent means a
// single transaction.
TransactionSize *int32 `form:"transactionSize,omitempty" json:"transactionSize,omitempty"`
// PointInTime Select the entities that existed at this instant, in RFC 3339
// format (e.g. '2026-01-01T12:00:00Z'), and delete their current
// rows. Absent means the current committed state. An entity
// selected at the instant but already gone is reported in
// idToError.
// Must be at or before the consistency time (GET /entity/consistency-time); a later instant is refused with 400 POINT_IN_TIME_AFTER_CONSISTENCY_TIME.
PointInTime *time.Time `form:"pointInTime,omitempty" json:"pointInTime,omitempty"`
// Verbose Include the list of entity IDs the delete attempted in the
// response; an ID whose delete failed also appears in idToError.
// When false, only statistics are returned.
Verbose *bool `form:"verbose,omitempty" json:"verbose,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
DeleteEntitiesParams defines parameters for DeleteEntities.
type DeleteMessageParams ¶
type DeleteMessageParams struct {
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
DeleteMessageParams defines parameters for DeleteMessage.
type DeleteMessagesJSONBody ¶
type DeleteMessagesJSONBody = []openapi_types.UUID
DeleteMessagesJSONBody defines parameters for DeleteMessages.
type DeleteMessagesJSONRequestBody ¶
type DeleteMessagesJSONRequestBody = DeleteMessagesJSONBody
DeleteMessagesJSONRequestBody defines body for DeleteMessages for application/json ContentType.
type DeleteMessagesParams ¶
type DeleteMessagesParams struct {
// TransactionSize Number of messages to delete per transaction batch. Batches
// committed before a failure remain durable and per-batch
// failures are reported in the response. Not supported on
// requests joining an open transaction (400). Absent means a
// single call.
TransactionSize *int32 `form:"transactionSize,omitempty" json:"transactionSize,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
DeleteMessagesParams defines parameters for DeleteMessages.
type DeleteSingleEntityParams ¶
type DeleteSingleEntityParams struct {
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
DeleteSingleEntityParams defines parameters for DeleteSingleEntity.
type DeleteTechnicalUser200ResponseDto ¶
type DeleteTechnicalUser200ResponseDto struct {
// ClientId Client Id
ClientId string `json:"clientId"`
// Message Confirmation message
Message string `json:"message"`
}
DeleteTechnicalUser200ResponseDto defines model for DeleteTechnicalUser200ResponseDto.
type EdgeMessageDto ¶
type EdgeMessageDto struct {
// Content Polymorphic by intent — accepts any JSON value. The contentType field
// in the message header is informational; it does not affect storage or
// retrieval format. Clients needing to store non-JSON content should
// stringify it (e.g. base64 for binary, plain string with escape for
// non-JSON text). Proper content-type handling may be added
// as a future feature.
Content *EdgeMessagePayload `json:"content,omitempty"`
Header EdgeMessageHeader `json:"header"`
// MetaData Flat map of the message's metadata key-value pairs, symmetric with the `metaData` supplied at creation. All values are indexed for search.
MetaData EdgeMessageMetaData `json:"metaData"`
}
EdgeMessageDto defines model for EdgeMessageDto.
type EdgeMessageHeader ¶
type EdgeMessageHeader struct {
// AttributedKind Kind of userId. Open value set. Known values are user, service and system.
AttributedKind *string `json:"attributedKind,omitempty"`
ContentEncoding string `json:"contentEncoding"`
ContentLength int64 `json:"contentLength"`
// ContentType Informational only; see EdgeMessagePayload note. Proper content-type handling is a planned future feature.
ContentType string `json:"contentType"`
CorrelationId *string `json:"correlationId,omitempty"`
// ExecutedBy The principal that executed the request — that made a change or sent a message — independent of the attributed principal. Present only when one was recorded.
ExecutedBy *AuditPrincipalDto `json:"executedBy,omitempty"`
MessageId *string `json:"messageId,omitempty"`
Recipient *string `json:"recipient,omitempty"`
ReplyTo *string `json:"replyTo,omitempty"`
Subject string `json:"subject"`
// UserId The attributed user — the principal the message is recorded for.
UserId *string `json:"userId,omitempty"`
}
EdgeMessageHeader defines model for EdgeMessageHeader.
type EdgeMessageMetaData ¶
type EdgeMessageMetaData map[string]interface{}
EdgeMessageMetaData Flat map of the message's metadata key-value pairs, symmetric with the `metaData` supplied at creation. All values are indexed for search.
type EdgeMessagePayload ¶
type EdgeMessagePayload = interface{}
EdgeMessagePayload Polymorphic by intent — accepts any JSON value. The contentType field in the message header is informational; it does not affect storage or retrieval format. Clients needing to store non-JSON content should stringify it (e.g. base64 for binary, plain string with escape for non-JSON text). Proper content-type handling may be added as a future feature.
type EntityAuditEventsResponseDto ¶
type EntityAuditEventsResponseDto struct {
// Items Audit events for the entity
Items *[]AuditEventDto `json:"items,omitempty"`
Pagination CursorPaginationInfoDto `json:"pagination"`
}
EntityAuditEventsResponseDto defines model for EntityAuditEventsResponseDto.
type EntityChangeMeta ¶
type EntityChangeMeta struct {
// AttributedKind Kind of the attributed `user` above (e.g. "user", "service", "system"). Absent on legacy rows.
AttributedKind *string `json:"attributedKind,omitempty"`
ChangeType EntityChangeMetaChangeType `json:"changeType"`
// ExecutedBy The actual caller that performed the change, independent of attribution. Absent on legacy rows.
ExecutedBy *struct {
Id *string `json:"id,omitempty"`
Kind *string `json:"kind,omitempty"`
} `json:"executedBy,omitempty"`
FieldsChangedCount *int32 `json:"fieldsChangedCount,omitempty"`
TimeOfChange time.Time `json:"timeOfChange"`
TransactionId *openapi_types.UUID `json:"transactionId,omitempty"`
User string `json:"user"`
}
EntityChangeMeta One entry in an entity's change history. `user` is the attributed actor and is always present. `attributedKind` and `executedBy` are present only when attribution was recorded for the change; absent on legacy rows. A DELETE entry carries no `transactionId`. Typed-but-open: known fields are enumerated, the object is not sealed.
type EntityChangeMetaChangeType ¶
type EntityChangeMetaChangeType string
EntityChangeMetaChangeType defines model for EntityChangeMeta.ChangeType.
const ( CREATE EntityChangeMetaChangeType = "CREATE" DELETE EntityChangeMetaChangeType = "DELETE" UPDATE EntityChangeMetaChangeType = "UPDATE" )
Defines values for EntityChangeMetaChangeType.
func (EntityChangeMetaChangeType) Valid ¶
func (e EntityChangeMetaChangeType) Valid() bool
Valid indicates whether the value is a known member of the EntityChangeMetaChangeType enum.
type EntityMetadata ¶
type EntityMetadata struct {
CreationDate time.Time `json:"creationDate"`
// Id Entity id (invariant against point-in-time).
Id openapi_types.UUID `json:"id"`
// LastUpdateTime Last update as-at the point-in-time; equals creationDate if never updated.
LastUpdateTime time.Time `json:"lastUpdateTime"`
// ModelKey Model of the entity. Present on all entity reads (single-get, list, search).
ModelKey *struct {
Name *string `json:"name,omitempty"`
Version *int32 `json:"version,omitempty"`
} `json:"modelKey,omitempty"`
// PointInTime The as-at point-in-time for which the entity was retrieved, when supplied.
PointInTime *time.Time `json:"pointInTime,omitempty"`
// State Entity state at the given point-in-time.
State string `json:"state"`
TransactionId *openapi_types.UUID `json:"transactionId,omitempty"`
// TransitionForLatestSave Transition applied when the entity was last saved as-at the point-in-time.
TransitionForLatestSave *string `json:"transitionForLatestSave,omitempty"`
}
EntityMetadata System-managed entity metadata. Mirrors the canonical docs/cyoda/schema/common/EntityMetadata.json. Typed-but-open: known fields are enumerated and validated; the object is not sealed, so additive fields remain non-breaking.
type EntityMetadataDto ¶
type EntityMetadataDto struct {
// CreationDate When the entity was created
CreationDate *time.Time `json:"creationDate,omitempty"`
// Id Unique identifier of the entity
Id *openapi_types.UUID `json:"id,omitempty"`
// LastUpdateTime When the entity was last modified
LastUpdateTime *time.Time `json:"lastUpdateTime,omitempty"`
// State Current state of the entity in its workflow
State *string `json:"state,omitempty"`
// TransactionId The transaction ID associated with the latest save (omitted if none)
TransactionId *string `json:"transactionId,omitempty"`
// TransitionForLatestSave The transition that triggered the latest save (omitted if none)
TransitionForLatestSave *string `json:"transitionForLatestSave,omitempty"`
}
EntityMetadataDto System-managed metadata returned for each entity in search results. The server reconstructs this from internal storage — the shape is the source of truth.
type EntityModelActionResultDto ¶
type EntityModelActionResultDto struct {
Message string `json:"message"`
ModelId openapi_types.UUID `json:"modelId"`
ModelKey EntityModelKey `json:"modelKey"`
Success bool `json:"success"`
}
EntityModelActionResultDto defines model for EntityModelActionResultDto.
type EntityModelDto ¶
type EntityModelDto struct {
CurrentState string `json:"currentState"`
Id openapi_types.UUID `json:"id"`
ModelName string `json:"modelName"`
ModelUpdateDate *time.Time `json:"modelUpdateDate,omitempty"`
ModelVersion int32 `json:"modelVersion"`
}
EntityModelDto defines model for EntityModelDto.
type EntityModelKey ¶
EntityModelKey defines model for EntityModelKey.
type EntityResultDto ¶
type EntityResultDto struct {
// Data Polymorphic entity payload as supplied at create/update time.
// Field values may be any JSON type (string, number, boolean, object, array).
Data *map[string]interface{} `json:"data,omitempty"`
// Meta System-managed metadata returned for each entity in search results.
// The server reconstructs this from internal storage — the shape is the source of truth.
Meta *EntityMetadataDto `json:"meta,omitempty"`
// Type Type of the result (typically "ENTITY")
Type *string `json:"type,omitempty"`
}
EntityResultDto Wire envelope returned by search endpoints. Each result contains the entity payload and system-managed metadata. Shape matches the Envelope schema used by GET /entity/{entityId}.
type EntityTransactionResponse ¶
type EntityTransactionResponse struct {
EntityIds *[]openapi_types.UUID `json:"entityIds,omitempty"`
// Error Present only on chunk-failure elements. Absent on successful
// elements (which carry `transactionId` + `entityIds`).
Error *struct {
// ChunkIndex Zero-based index of the failing chunk in the response array.
ChunkIndex int32 `json:"chunkIndex"`
// Code AppError code (e.g. MODEL_NOT_FOUND, ENTITY_NOT_FOUND).
Code string `json:"code"`
// Message Failure message, safe for client display: a client error's code-prefixed message, or for a server-side failure the generic SERVER_ERROR text with the ticket its detail is logged under.
Message string `json:"message"`
} `json:"error,omitempty"`
// Failed Present only on UpdateCollection chunks that experienced one or
// more per-item ENTITY_MODIFIED conflicts. Each
// entry names the conflicted entity and carries an `error` object
// with the failure code, an operator-facing message, and the
// item's per-chunk-relative index. Absent on chunks with no
// per-item failures.
Failed *[]struct {
// EntityId UUID of the entity whose update was rejected.
EntityId openapi_types.UUID `json:"entityId"`
Error struct {
// Code AppError code; today always `ENTITY_MODIFIED` for
// per-item isolation.
Code string `json:"code"`
// ItemIndex Zero-based position of the failing item within its
// chunk's request slice (per-chunk relative).
ItemIndex int32 `json:"itemIndex"`
// Message Failure message, safe for client display: a client error's code-prefixed message, or for a server-side failure the generic SERVER_ERROR text with the ticket its detail is logged under.
Message string `json:"message"`
} `json:"error"`
} `json:"failed,omitempty"`
TransactionId *openapi_types.UUID `json:"transactionId,omitempty"`
}
EntityTransactionResponse Response element returned by entity create/update operations. The wire response is always an array of these elements, with one element per transactional batch in commit order.
For collection endpoints the request may be split into multiple chunks of up to `transactionWindow` items each. Successful chunks carry `transactionId` + `entityIds`. If a later chunk fails after earlier chunks have committed, the failure surfaces as an element carrying the `error` object (with `chunkIndex` set to the failing chunk's zero-based position) instead of `transactionId` and `entityIds`. Earlier chunks remain durable.
For UpdateCollection (PUT /entity/{format}) only, items carrying an `ifMatch` precondition can fail individually with ENTITY_MODIFIED without rolling their chunk back. Such per-item failures surface in an optional `failed` array; the chunk still commits and reports `transactionId` plus `entityIds` for the successful items. When every item in such a chunk fails, the chunk commits as a zero-write transaction — `entityIds` is empty, `failed` lists every item, and `transactionId` remains meaningful for audit correlation.
Per-item ENTITY_MODIFIED conflicts surface inside the `200` response body via the `failed[]` array, not as a `4xx` envelope. Inspect `failed[]` to detect them. The `4xx` envelope is reserved for chunk-wide failures: malformed JSON, missing entity, validation failure, a non-conflict engine error, a transaction conflict (`409 CONFLICT`, retryable) — another transaction committed a change to an item's entity after the chunk read it, or a processor's joined callback lost a write race — and `412 ENTITY_MODIFIED` when another transaction changed an item's entity while a COMMIT_BEFORE_DISPATCH processor's callout ran. A conflict is never isolated to its item.
`entityIds` contains UUID strings (server is source of truth — the server emits []string, not []object).
type Envelope ¶
type Envelope struct {
// Data Polymorphic entity payload as supplied at create/update time.
// Exact fields depend on the entity model.
Data map[string]interface{} `json:"data"`
// Meta System-managed entity metadata. Mirrors the canonical
// docs/cyoda/schema/common/EntityMetadata.json. Typed-but-open: known
// fields are enumerated and validated; the object is not sealed, so
// additive fields remain non-breaking.
Meta EntityMetadata `json:"meta"`
// Type Entity type discriminator (e.g. "ENTITY").
Type string `json:"type"`
}
Envelope Wire envelope returned by GET /entity/{entityId} and each element of GET /entity/{entityName}/{modelVersion}. The server reconstructs this envelope from internal storage — the shape is the source of truth.
type ErrorResponseDto ¶
type ErrorResponseDto struct {
// Error Error codes from RFC 6749 Section 5.2 (OAuth 2.0 Error Response) identifying the type of error
Error ErrorResponseDtoError `json:"error"`
// ErrorDescription Human-readable description of the error
ErrorDescription string `json:"error_description"`
// ErrorUri Optional URI to documentation about the error
ErrorUri *string `json:"error_uri,omitempty"`
}
ErrorResponseDto defines model for ErrorResponseDto.
type ErrorResponseDtoError ¶
type ErrorResponseDtoError string
ErrorResponseDtoError Error codes from RFC 6749 Section 5.2 (OAuth 2.0 Error Response) identifying the type of error
const ( AccessDenied ErrorResponseDtoError = "access_denied" InvalidClient ErrorResponseDtoError = "invalid_client" InvalidRequest ErrorResponseDtoError = "invalid_request" MethodNotAllowed ErrorResponseDtoError = "method_not_allowed" ServerError ErrorResponseDtoError = "server_error" SlowDown ErrorResponseDtoError = "slow_down" UnsupportedGrantType ErrorResponseDtoError = "unsupported_grant_type" )
Defines values for ErrorResponseDtoError.
func (ErrorResponseDtoError) Valid ¶
func (e ErrorResponseDtoError) Valid() bool
Valid indicates whether the value is a known member of the ErrorResponseDtoError enum.
type ExportMetadataParamsConverter ¶
type ExportMetadataParamsConverter string
ExportMetadataParamsConverter defines parameters for ExportMetadata.
const ( ExportMetadataParamsConverterJSONSCHEMA ExportMetadataParamsConverter = "JSON_SCHEMA" ExportMetadataParamsConverterSIMPLEVIEW ExportMetadataParamsConverter = "SIMPLE_VIEW" )
Defines values for ExportMetadataParamsConverter.
func (ExportMetadataParamsConverter) Valid ¶
func (e ExportMetadataParamsConverter) Valid() bool
Valid indicates whether the value is a known member of the ExportMetadataParamsConverter enum.
type FetchEntityTransitionsParams ¶
type FetchEntityTransitionsParams struct {
// EntityClass Entity class in `Name.Version` format (e.g. `Offer.1`)
EntityClass string `form:"entityClass" json:"entityClass"`
// EntityId The unique identifier (UUID) of the entity
EntityId openapi_types.UUID `form:"entityId" json:"entityId"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
FetchEntityTransitionsParams defines parameters for FetchEntityTransitions.
type FieldConfigDto ¶
type FieldConfigDto struct {
ArrayFields *[]FieldConfigDto `json:"arrayFields,omitempty"`
DataType string `json:"dataType"`
FieldCategory string `json:"fieldCategory"`
FieldKey string `json:"fieldKey"`
FieldName string `json:"fieldName"`
Flatten *bool `json:"flatten,omitempty"`
Hidden *bool `json:"hidden,omitempty"`
IsArray *bool `json:"isArray,omitempty"`
}
FieldConfigDto defines model for FieldConfigDto.
type GetAllEntitiesParams ¶
type GetAllEntitiesParams struct {
// PageSize Number of entities to return per page. Must be greater than 0.
PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageNumber Page number to retrieve, starting from 0. Must be greater than or equal to 0.
PageNumber *int32 `form:"pageNumber,omitempty" json:"pageNumber,omitempty"`
// PointInTime The point-in-time for loading the entities, in RFC 3339 format (e.g., '2026-01-01T12:00:00Z'). Absent means the current committed state. Must be at or before the consistency time (GET /entity/consistency-time); a later instant is refused with 400 POINT_IN_TIME_AFTER_CONSISTENCY_TIME.
PointInTime *time.Time `form:"pointInTime,omitempty" json:"pointInTime,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
GetAllEntitiesParams defines parameters for GetAllEntities.
type GetAsyncSearchResultsParams ¶
type GetAsyncSearchResultsParams struct {
// PageSize Number of results per page
PageSize *string `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageNumber Zero-based page number
PageNumber *string `form:"pageNumber,omitempty" json:"pageNumber,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
GetAsyncSearchResultsParams defines parameters for GetAsyncSearchResults.
type GetAsyncSearchStatusParams ¶
type GetAsyncSearchStatusParams struct {
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
GetAsyncSearchStatusParams defines parameters for GetAsyncSearchStatus.
type GetEntityChangesMetadataParams ¶
type GetEntityChangesMetadataParams struct {
// PointInTime The point-in-time for loading the entity changes, in RFC 3339 format (e.g., '2026-01-01T12:00:00Z'). Absent means the current committed state. Must be at or before the consistency time (GET /entity/consistency-time); a later instant is refused with 400 POINT_IN_TIME_AFTER_CONSISTENCY_TIME.
PointInTime *time.Time `form:"pointInTime,omitempty" json:"pointInTime,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
GetEntityChangesMetadataParams defines parameters for GetEntityChangesMetadata.
type GetEntityStatisticsByStateForModelParams ¶
type GetEntityStatisticsByStateForModelParams struct {
// PointInTime The point-in-time for statistics in RFC 3339 format (e.g., '2026-01-01T12:00:00Z'). Absent means the current committed state. Must be at or before the consistency time (GET /entity/consistency-time); a later instant is refused with 400 POINT_IN_TIME_AFTER_CONSISTENCY_TIME.
PointInTime *time.Time `form:"pointInTime,omitempty" json:"pointInTime,omitempty"`
// States Optional list of states for which to calculate statistics. If not provided, statistics will be calculated for all current workflow states
States *[]string `form:"states,omitempty" json:"states,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
GetEntityStatisticsByStateForModelParams defines parameters for GetEntityStatisticsByStateForModel.
type GetEntityStatisticsByStateParams ¶
type GetEntityStatisticsByStateParams struct {
// PointInTime The point-in-time for statistics in RFC 3339 format (e.g., '2026-01-01T12:00:00Z'). Absent means the current committed state. Must be at or before the consistency time (GET /entity/consistency-time); a later instant is refused with 400 POINT_IN_TIME_AFTER_CONSISTENCY_TIME.
PointInTime *time.Time `form:"pointInTime,omitempty" json:"pointInTime,omitempty"`
// States Optional list of states for which to calculate statistics. If not provided, statistics will be calculated for all current workflow states
States *[]string `form:"states,omitempty" json:"states,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
GetEntityStatisticsByStateParams defines parameters for GetEntityStatisticsByState.
type GetEntityStatisticsForModelParams ¶
type GetEntityStatisticsForModelParams struct {
// PointInTime The point-in-time for statistics in RFC 3339 format (e.g., '2026-01-01T12:00:00Z'). Absent means the current committed state. Must be at or before the consistency time (GET /entity/consistency-time); a later instant is refused with 400 POINT_IN_TIME_AFTER_CONSISTENCY_TIME.
PointInTime *time.Time `form:"pointInTime,omitempty" json:"pointInTime,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
GetEntityStatisticsForModelParams defines parameters for GetEntityStatisticsForModel.
type GetEntityStatisticsParams ¶
type GetEntityStatisticsParams struct {
// PointInTime The point-in-time for statistics in RFC 3339 format (e.g., '2026-01-01T12:00:00Z'). Absent means the current committed state. Must be at or before the consistency time (GET /entity/consistency-time); a later instant is refused with 400 POINT_IN_TIME_AFTER_CONSISTENCY_TIME.
PointInTime *time.Time `form:"pointInTime,omitempty" json:"pointInTime,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
GetEntityStatisticsParams defines parameters for GetEntityStatistics.
type GetEntityTransitionsParams ¶
type GetEntityTransitionsParams struct {
// PointInTime Evaluate available transitions as of this point in time (RFC 3339). Mutually exclusive with transactionId. Must be at or before the consistency time (GET /entity/consistency-time); a later instant is refused with 400 POINT_IN_TIME_AFTER_CONSISTENCY_TIME.
PointInTime *time.Time `form:"pointInTime,omitempty" json:"pointInTime,omitempty"`
// TransactionId Evaluate available transitions as of the submit time of this transaction. Mutually exclusive with pointInTime. The transaction must belong to the caller's tenant; an unknown or foreign transaction ID is rejected with 400.
TransactionId *openapi_types.UUID `form:"transactionId,omitempty" json:"transactionId,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
GetEntityTransitionsParams defines parameters for GetEntityTransitions.
type GetMessageParams ¶
type GetMessageParams struct {
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
GetMessageParams defines parameters for GetMessage.
type GetOneEntityParams ¶
type GetOneEntityParams struct {
// PointInTime The point-in-time for loading the entity, in RFC 3339 format (e.g., '2026-01-01T12:00:00Z'). Absent means the current committed state. Must be at or before the consistency time (GET /entity/consistency-time); a later instant is refused with 400 POINT_IN_TIME_AFTER_CONSISTENCY_TIME.
PointInTime *time.Time `form:"pointInTime,omitempty" json:"pointInTime,omitempty"`
// TransactionId Load the entity as the specified transaction left it — the one version a transaction records of each entity it writes. Committed transactions only; a transaction that has not committed (also when the request joins it), never wrote the entity, or deleted it answers 404.
TransactionId *openapi_types.UUID `form:"transactionId,omitempty" json:"transactionId,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
GetOneEntityParams defines parameters for GetOneEntity.
type GetPlatformClusterParams ¶
type GetPlatformClusterParams struct {
// WaitForNodes Answer once at least this many nodes are `UP` and `NORMAL`, or at `timeoutMs`, with the last counted round (one whose every ask returned before then). Absent, the answer follows one round. 1 to 1000.
WaitForNodes *int32 `form:"waitForNodes,omitempty" json:"waitForNodes,omitempty"`
// TimeoutMs The longest wait for `waitForNodes`, in milliseconds; the answer comes at the later of this and the end of the first round. 1 to 600000; defaults to 30000 when `waitForNodes` is given. Only together with `waitForNodes`; alone it is refused with 400.
TimeoutMs *int32 `form:"timeoutMs,omitempty" json:"timeoutMs,omitempty"`
}
GetPlatformClusterParams defines parameters for GetPlatformCluster.
type GetStateMachineFinishedEventParams ¶
type GetStateMachineFinishedEventParams struct {
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
GetStateMachineFinishedEventParams defines parameters for GetStateMachineFinishedEvent.
type GetTechnicalUserTokenFormdataBody ¶
type GetTechnicalUserTokenFormdataBody struct {
// GrantType The OAuth 2.0 grant type. Required; missing or any other value is 400 unsupported_grant_type.
GrantType GetTechnicalUserTokenFormdataBodyGrantType `form:"grant_type" json:"grant_type"`
// SubjectToken The user assertion to exchange. Required for the token exchange (400 invalid_request without it); not read by client_credentials.
SubjectToken *string `form:"subject_token,omitempty" json:"subject_token,omitempty"`
// SubjectTokenType The type of the subject token. Required for the token exchange (400 invalid_request without it); not read by client_credentials.
SubjectTokenType *GetTechnicalUserTokenFormdataBodySubjectTokenType `form:"subject_token_type,omitempty" json:"subject_token_type,omitempty"`
}
GetTechnicalUserTokenFormdataBody defines parameters for GetTechnicalUserToken.
type GetTechnicalUserTokenFormdataBodyGrantType ¶
type GetTechnicalUserTokenFormdataBodyGrantType string
GetTechnicalUserTokenFormdataBodyGrantType defines parameters for GetTechnicalUserToken.
const ( GetTechnicalUserTokenFormdataBodyGrantTypeClientCredentials GetTechnicalUserTokenFormdataBodyGrantType = "client_credentials" GetTechnicalUserTokenFormdataBodyGrantTypeUrnIetfParamsOauthGrantTypeTokenExchange GetTechnicalUserTokenFormdataBodyGrantType = "urn:ietf:params:oauth:grant-type:token-exchange" )
Defines values for GetTechnicalUserTokenFormdataBodyGrantType.
func (GetTechnicalUserTokenFormdataBodyGrantType) Valid ¶
func (e GetTechnicalUserTokenFormdataBodyGrantType) Valid() bool
Valid indicates whether the value is a known member of the GetTechnicalUserTokenFormdataBodyGrantType enum.
type GetTechnicalUserTokenFormdataBodySubjectTokenType ¶
type GetTechnicalUserTokenFormdataBodySubjectTokenType string
GetTechnicalUserTokenFormdataBodySubjectTokenType defines parameters for GetTechnicalUserToken.
const (
GetTechnicalUserTokenFormdataBodySubjectTokenTypeUrnIetfParamsOauthTokenTypeJwt GetTechnicalUserTokenFormdataBodySubjectTokenType = "urn:ietf:params:oauth:token-type:jwt"
)
Defines values for GetTechnicalUserTokenFormdataBodySubjectTokenType.
func (GetTechnicalUserTokenFormdataBodySubjectTokenType) Valid ¶
func (e GetTechnicalUserTokenFormdataBodySubjectTokenType) Valid() bool
Valid indicates whether the value is a known member of the GetTechnicalUserTokenFormdataBodySubjectTokenType enum.
type GetTechnicalUserTokenFormdataRequestBody ¶
type GetTechnicalUserTokenFormdataRequestBody GetTechnicalUserTokenFormdataBody
GetTechnicalUserTokenFormdataRequestBody defines body for GetTechnicalUserToken for application/x-www-form-urlencoded ContentType.
type GetTechnicalUserTokenParams ¶
type GetTechnicalUserTokenParams struct {
Authorization *string `json:"Authorization,omitempty"`
}
GetTechnicalUserTokenParams defines parameters for GetTechnicalUserToken.
type GroupKeyEntry ¶
type GroupKeyEntry struct {
// Path Group-by dimension (echoes the request entry).
Path string `json:"path"`
// Value Observed value for this dimension: a string, number or boolean, or `null`. Never an object or an array.
Value interface{} `json:"value"`
}
GroupKeyEntry One (path, value) pair in a bucket's ordered group key. `path` echoes the corresponding `groupBy` dimension; `value` is the observed value (any JSON scalar) or `null` when the field is absent or non-scalar (D4 semantics).
type GroupedStatsBucket ¶
type GroupedStatsBucket struct {
// Aggregations Per-alias aggregation results. Values are numeric or `null` (when the aggregation has no eligible inputs). Absent when the request specified no aggregations.
Aggregations *map[string]*float32 `json:"aggregations,omitempty"`
// Count Number of entities in this group.
Count int64 `json:"count"`
// GroupKey Ordered group-key entries matching the request's `groupBy`.
GroupKey []GroupKeyEntry `json:"groupKey"`
}
GroupedStatsBucket One row of the grouped-stats result. `groupKey` is ordered to match the request's `groupBy` list. `aggregations` is omitted when the request specified no aggregations; otherwise each requested aggregation appears keyed by its alias (or `op(field)` default), with `null` for empty groups.
type GroupedStatsRequest ¶
type GroupedStatsRequest struct {
// Aggregations Optional per-group aggregations.
Aggregations *[]AggregationExpr `json:"aggregations,omitempty"`
// Condition Optional Condition DSL predicate restricting the population, as in a search body. A `function` condition, at any depth, is refused here with 400 `INVALID_CONDITION`.
Condition *QueryConditionDto `json:"condition,omitempty"`
// GroupBy Ordered list of group-by dimensions. Each entry is either the reserved token `state` (a token, not a path — no leader) or a scalar JSONPath. At least one entry is required. A JSONPath is a REQUIRED `$.` leader followed by dot-separated segments of ASCII letters, digits, `_` and `-`. Anything else — a missing leader (`country`), bracket-quoted property access (`$['country']`), array projections, recursive descent, whitespace, quotes, non-ASCII — is rejected with 400 `INVALID_GROUP_BY_PATH`. Paths are validated, never rewritten: the response `groupKey` path echoes exactly what the request sent.
GroupBy []string `json:"groupBy"`
// Limit Optional cap on the number of buckets returned. Must be positive and less than or equal to the server-configured `CYODA_STATS_GROUP_MAX` (default 10000); a value outside that range is rejected with 400 `INVALID_LIMIT` rather than clamped.
Limit *int32 `json:"limit,omitempty"`
// PointInTime Optional point-in-time for the query in RFC 3339 format. Absent means the current committed state. Must be at or before the consistency time (GET /entity/consistency-time); a later instant is refused with 400 POINT_IN_TIME_AFTER_CONSISTENCY_TIME.
PointInTime *time.Time `json:"pointInTime,omitempty"`
}
GroupedStatsRequest Request body for the grouped-stats query endpoint. `groupBy` dimensions may be either the reserved token `state` (the workflow state) or a JSONPath expression over the entity payload, which must start with `$.`.
type ImportEntityModelJSONBody ¶
type ImportEntityModelJSONBody = interface{}
ImportEntityModelJSONBody defines parameters for ImportEntityModel.
type ImportEntityModelJSONRequestBody ¶
type ImportEntityModelJSONRequestBody = ImportEntityModelJSONBody
ImportEntityModelJSONRequestBody defines body for ImportEntityModel for application/json ContentType.
type ImportEntityModelParamsConverter ¶
type ImportEntityModelParamsConverter string
ImportEntityModelParamsConverter defines parameters for ImportEntityModel.
const ( ImportEntityModelParamsConverterJSONSCHEMA ImportEntityModelParamsConverter = "JSON_SCHEMA" ImportEntityModelParamsConverterSAMPLEDATA ImportEntityModelParamsConverter = "SAMPLE_DATA" ImportEntityModelParamsConverterSIMPLEVIEW ImportEntityModelParamsConverter = "SIMPLE_VIEW" )
Defines values for ImportEntityModelParamsConverter.
func (ImportEntityModelParamsConverter) Valid ¶
func (e ImportEntityModelParamsConverter) Valid() bool
Valid indicates whether the value is a known member of the ImportEntityModelParamsConverter enum.
type ImportEntityModelParamsDataFormat ¶
type ImportEntityModelParamsDataFormat string
ImportEntityModelParamsDataFormat defines parameters for ImportEntityModel.
const ( ImportEntityModelParamsDataFormatJSON ImportEntityModelParamsDataFormat = "JSON" ImportEntityModelParamsDataFormatXML ImportEntityModelParamsDataFormat = "XML" )
Defines values for ImportEntityModelParamsDataFormat.
func (ImportEntityModelParamsDataFormat) Valid ¶
func (e ImportEntityModelParamsDataFormat) Valid() bool
Valid indicates whether the value is a known member of the ImportEntityModelParamsDataFormat enum.
type ImportEntityModelWorkflowJSONRequestBody ¶
type ImportEntityModelWorkflowJSONRequestBody = WorkflowImportRequestDto
ImportEntityModelWorkflowJSONRequestBody defines body for ImportEntityModelWorkflow for application/json ContentType.
type InternalServerError ¶
type InternalServerError = ProblemDetail
InternalServerError defines model for InternalServerError.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type InvalidateJwtKeyPairJSONRequestBody ¶
type InvalidateJwtKeyPairJSONRequestBody = InvalidateKeyRequestDto
InvalidateJwtKeyPairJSONRequestBody defines body for InvalidateJwtKeyPair for application/json ContentType.
type InvalidateKeyRequestDto ¶
type InvalidateKeyRequestDto struct {
// GracePeriodSec Number of seconds the key keeps verifying tokens after invalidation; its validTo becomes now plus this, never later than its current validTo. Default is 0 (it stops verifying at once). Invalidating the key again with 0 ends a running grace period at once. At most 3600, the longest token lifetime (CYODA_JWT_EXPIRY_SECONDS), which no token outlives. A larger value is 400 BAD_REQUEST.
GracePeriodSec *int64 `json:"gracePeriodSec,omitempty"`
}
InvalidateKeyRequestDto Body of the key-pair invalidate request. Trusted keys have no grace period, and their invalidate request has no body.
type IssueJwtKeyPairJSONRequestBody ¶
type IssueJwtKeyPairJSONRequestBody = IssueJwtKeyPairRequestDto
IssueJwtKeyPairJSONRequestBody defines body for IssueJwtKeyPair for application/json ContentType.
type IssueJwtKeyPairRequestDto ¶
type IssueJwtKeyPairRequestDto struct {
// Algorithm Signing algorithm. Only `RS256` is honoured in this version.
Algorithm IssueJwtKeyPairRequestDtoAlgorithm `json:"algorithm"`
// InvalidateCurrent If true, invalidates every issued key-pair whose window is open, the first rotation included. The signing key from `CYODA_JWT_SIGNING_KEY` (the bootstrap key) is never invalidated by a rotation; it stays active and signs again whenever no issued key-pair is active and inside its window, so a rotation does not end the tokens the bootstrap key signed; to end a leaked token, invalidate the key-pair named by the `kid` in its header. An invalidated key-pair never signs again unless reactivated.
InvalidateCurrent *bool `json:"invalidateCurrent,omitempty"`
// InvalidateGracePeriodSec Number of seconds the invalidated key-pairs keep verifying tokens; each one's validTo becomes now plus this, never later than its current validTo. Default is 0 (they stop verifying at once). Only applicable when invalidateCurrent is true. At most 3600, the longest token lifetime (CYODA_JWT_EXPIRY_SECONDS), which no token outlives. A larger value is 400 BAD_REQUEST.
InvalidateGracePeriodSec *int64 `json:"invalidateGracePeriodSec,omitempty"`
// ValidFrom When the key-pair becomes valid. Defaults to current date-time if not specified.
ValidFrom *time.Time `json:"validFrom,omitempty"`
// ValidTo When the key-pair expires. Defaults to validFrom + <configured validity, default is 365 days> if not specified.
ValidTo *time.Time `json:"validTo,omitempty"`
}
IssueJwtKeyPairRequestDto defines model for IssueJwtKeyPairRequestDto.
type IssueJwtKeyPairRequestDtoAlgorithm ¶
type IssueJwtKeyPairRequestDtoAlgorithm string
IssueJwtKeyPairRequestDtoAlgorithm Signing algorithm. Only `RS256` is honoured in this version.
const ( IssueJwtKeyPairRequestDtoAlgorithmES256 IssueJwtKeyPairRequestDtoAlgorithm = "ES256" IssueJwtKeyPairRequestDtoAlgorithmES384 IssueJwtKeyPairRequestDtoAlgorithm = "ES384" IssueJwtKeyPairRequestDtoAlgorithmES512 IssueJwtKeyPairRequestDtoAlgorithm = "ES512" IssueJwtKeyPairRequestDtoAlgorithmEdDSA IssueJwtKeyPairRequestDtoAlgorithm = "EdDSA" IssueJwtKeyPairRequestDtoAlgorithmPS256 IssueJwtKeyPairRequestDtoAlgorithm = "PS256" IssueJwtKeyPairRequestDtoAlgorithmPS384 IssueJwtKeyPairRequestDtoAlgorithm = "PS384" IssueJwtKeyPairRequestDtoAlgorithmPS512 IssueJwtKeyPairRequestDtoAlgorithm = "PS512" IssueJwtKeyPairRequestDtoAlgorithmRS256 IssueJwtKeyPairRequestDtoAlgorithm = "RS256" IssueJwtKeyPairRequestDtoAlgorithmRS384 IssueJwtKeyPairRequestDtoAlgorithm = "RS384" IssueJwtKeyPairRequestDtoAlgorithmRS512 IssueJwtKeyPairRequestDtoAlgorithm = "RS512" )
Defines values for IssueJwtKeyPairRequestDtoAlgorithm.
func (IssueJwtKeyPairRequestDtoAlgorithm) Valid ¶
func (e IssueJwtKeyPairRequestDtoAlgorithm) Valid() bool
Valid indicates whether the value is a known member of the IssueJwtKeyPairRequestDtoAlgorithm enum.
type JoinedPayloadTooLarge ¶
type JoinedPayloadTooLarge = ProblemDetail
JoinedPayloadTooLarge defines model for JoinedPayloadTooLarge.
type JwtKeyPairResponseDto ¶
type JwtKeyPairResponseDto struct {
// Active Whether the key is currently active. False during the grace period after invalidation; true after reactivation.
Active bool `json:"active"`
Algorithm JwtKeyPairResponseDtoAlgorithm `json:"algorithm"`
// KeyId Unique identifier for this key-pair (UUID). Included in JWT header as 'kid' claim.
KeyId string `json:"keyId"`
// PublicKey Base64-encoded public key in X.509 SubjectPublicKeyInfo format.
PublicKey string `json:"publicKey"`
// ValidFrom When this key-pair becomes valid
ValidFrom time.Time `json:"validFrom"`
// ValidTo When this key-pair expires
ValidTo *time.Time `json:"validTo,omitempty"`
}
JwtKeyPairResponseDto defines model for JwtKeyPairResponseDto.
type JwtKeyPairResponseDtoAlgorithm ¶
type JwtKeyPairResponseDtoAlgorithm string
JwtKeyPairResponseDtoAlgorithm defines model for JwtKeyPairResponseDto.Algorithm.
const ( JwtKeyPairResponseDtoAlgorithmES256 JwtKeyPairResponseDtoAlgorithm = "ES256" JwtKeyPairResponseDtoAlgorithmES384 JwtKeyPairResponseDtoAlgorithm = "ES384" JwtKeyPairResponseDtoAlgorithmES512 JwtKeyPairResponseDtoAlgorithm = "ES512" JwtKeyPairResponseDtoAlgorithmEdDSA JwtKeyPairResponseDtoAlgorithm = "EdDSA" JwtKeyPairResponseDtoAlgorithmPS256 JwtKeyPairResponseDtoAlgorithm = "PS256" JwtKeyPairResponseDtoAlgorithmPS384 JwtKeyPairResponseDtoAlgorithm = "PS384" JwtKeyPairResponseDtoAlgorithmPS512 JwtKeyPairResponseDtoAlgorithm = "PS512" JwtKeyPairResponseDtoAlgorithmRS256 JwtKeyPairResponseDtoAlgorithm = "RS256" JwtKeyPairResponseDtoAlgorithmRS384 JwtKeyPairResponseDtoAlgorithm = "RS384" JwtKeyPairResponseDtoAlgorithmRS512 JwtKeyPairResponseDtoAlgorithm = "RS512" )
Defines values for JwtKeyPairResponseDtoAlgorithm.
func (JwtKeyPairResponseDtoAlgorithm) Valid ¶
func (e JwtKeyPairResponseDtoAlgorithm) Valid() bool
Valid indicates whether the value is a known member of the JwtKeyPairResponseDtoAlgorithm enum.
type LaureateDto ¶
type LaureateDto struct {
Firstname string `json:"firstname"`
Id string `json:"id"`
Motivation string `json:"motivation"`
Surname string `json:"surname"`
}
LaureateDto defines model for LaureateDto.
type LegalEntityInfoDto ¶
type LegalEntityInfoDto struct {
// Id Unique identifier for the legal entity
Id string `json:"id"`
// Name Name of the legal entity
Name string `json:"name"`
}
LegalEntityInfoDto defines model for LegalEntityInfoDto.
type ListScheduledTasksParams ¶
type ListScheduledTasksParams struct {
// Status Return tasks in any of these statuses. Repeat the parameter for several. Any other value is rejected with 400.
Status *[]ListScheduledTasksParamsStatus `form:"status,omitempty" json:"status,omitempty"`
// ModelName Return tasks of entities of this model.
ModelName *string `form:"modelName,omitempty" json:"modelName,omitempty"`
// ModelVersion Return tasks of entities of this model version. Only together with `modelName`; alone it is rejected with 400.
ModelVersion *int32 `form:"modelVersion,omitempty" json:"modelVersion,omitempty"`
// EntityId Return the tasks of this entity.
EntityId *openapi_types.UUID `form:"entityId,omitempty" json:"entityId,omitempty"`
// Cursor Position to continue from: pass `nextCursor` from the previous response. Opaque. A cursor that cannot be read is rejected with 400, and its value is not echoed. Omit for the first page.
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Maximum number of tasks per page, 1 to 1000. A value outside the range is rejected with 400, not clamped.
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
}
ListScheduledTasksParams defines parameters for ListScheduledTasks.
type ListScheduledTasksParamsStatus ¶
type ListScheduledTasksParamsStatus string
ListScheduledTasksParamsStatus defines parameters for ListScheduledTasks.
const ( FAILED ListScheduledTasksParamsStatus = "FAILED" RUNNING ListScheduledTasksParamsStatus = "RUNNING" WAITING ListScheduledTasksParamsStatus = "WAITING" )
Defines values for ListScheduledTasksParamsStatus.
func (ListScheduledTasksParamsStatus) Valid ¶
func (e ListScheduledTasksParamsStatus) Valid() bool
Valid indicates whether the value is a known member of the ListScheduledTasksParamsStatus enum.
type MessageDeleteBatchResponse ¶
type MessageDeleteBatchResponse struct {
EntityIds []openapi_types.UUID `json:"entityIds"`
Success bool `json:"success"`
}
MessageDeleteBatchResponse One element of the array returned by deleteMessages (batch delete). Contains the IDs of deleted entities and a success flag.
type MessageDeleteResponse ¶
type MessageDeleteResponse struct {
EntityIds []openapi_types.UUID `json:"entityIds"`
}
MessageDeleteResponse Response returned by deleteMessage. Contains the IDs of deleted entities. No transactionId is present — delete operations in the messaging path are not transactional in the same way as entity create/update.
type ModelStateStatsDto ¶
type ModelStateStatsDto struct {
// Count Entity Count
Count int64 `json:"count"`
// ModelName Entity Model Name
ModelName string `json:"modelName"`
// ModelVersion Entity Model Version
ModelVersion int32 `json:"modelVersion"`
// State Entity State
State string `json:"state"`
}
ModelStateStatsDto defines model for ModelStateStatsDto.
type ModelStatsDto ¶
type ModelStatsDto struct {
// Count Entity Count
Count int64 `json:"count"`
// ModelName Entity Model Name
ModelName string `json:"modelName"`
// ModelVersion Entity Model Version
ModelVersion int32 `json:"modelVersion"`
}
ModelStatsDto defines model for ModelStatsDto.
type NewMessageJSONRequestBody ¶
type NewMessageJSONRequestBody = NewMessageRequest
NewMessageJSONRequestBody defines body for NewMessage for application/json ContentType.
type NewMessageParams ¶
type NewMessageParams struct {
// TransactionTimeoutMillis Maximum time in milliseconds the server may spend before the
// first commit. When exceeded, the operation is rolled back and
// fails with 408 TRANSACTION_TIMEOUT; nothing is committed. Not
// supported on requests joining an open transaction (400). Absent
// means no server-side timeout.
TransactionTimeoutMillis *int64 `form:"transactionTimeoutMillis,omitempty" json:"transactionTimeoutMillis,omitempty"`
// ContentType MIME type of the message payload
ContentType string `json:"Content-Type"`
// ContentLength Size of the message payload in bytes
ContentLength int64 `json:"Content-Length"`
// ContentEncoding Character encoding of the payload
ContentEncoding *string `json:"Content-Encoding,omitempty"`
// XMessageID Custom message identifier
XMessageID *string `json:"X-Message-ID,omitempty"`
// XRecipient Intended message recipient
XRecipient *string `json:"X-Recipient,omitempty"`
// XReplyTo Reply-to address for responses
XReplyTo *string `json:"X-Reply-To,omitempty"`
// XCorrelationID Correlation ID for message tracking
XCorrelationID *string `json:"X-Correlation-ID,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
NewMessageParams defines parameters for NewMessage.
type NewMessageRequest ¶
type NewMessageRequest struct {
// MetaData Optional flat key→value map; indexed to enable search by metadata.
MetaData *map[string]interface{} `json:"metaData,omitempty"`
// Payload The message payload — any JSON value (object, array, string, number, …). Non-JSON content (e.g. binary) must be stringified (e.g. base64) and sent as a JSON string; see the EdgeMessagePayload note.
Payload EdgeMessagePayload `json:"payload"`
}
NewMessageRequest A single JSON object carrying the message payload and optional flat metadata.
type NotImplemented ¶
type NotImplemented = ProblemDetail
NotImplemented defines model for NotImplemented.
type PageMetadataDto ¶
type PageMetadataDto struct {
// Number Current page number (zero-based)
Number *int32 `json:"number,omitempty"`
// Size Number of elements in the current page
Size *int32 `json:"size,omitempty"`
// TotalElements Total number of elements across all pages
TotalElements *int64 `json:"totalElements,omitempty"`
// TotalPages Total number of pages
TotalPages *int32 `json:"totalPages,omitempty"`
}
PageMetadataDto defines model for PageMetadataDto.
type PagedEntityResultsDto ¶
type PagedEntityResultsDto struct {
// Content List of entity results for the current page
Content *[]EntityResultDto `json:"content,omitempty"`
Page *PageMetadataDto `json:"page,omitempty"`
}
PagedEntityResultsDto defines model for PagedEntityResultsDto.
type PatchSingleApplicationJSONPatchPlusJSONBody ¶
type PatchSingleApplicationJSONPatchPlusJSONBody = []map[string]interface{}
PatchSingleApplicationJSONPatchPlusJSONBody defines parameters for PatchSingle.
type PatchSingleApplicationJSONPatchPlusJSONRequestBody ¶
type PatchSingleApplicationJSONPatchPlusJSONRequestBody = PatchSingleApplicationJSONPatchPlusJSONBody
PatchSingleApplicationJSONPatchPlusJSONRequestBody defines body for PatchSingle for application/json-patch+json ContentType.
type PatchSingleApplicationMergePatchPlusJSONBody ¶
type PatchSingleApplicationMergePatchPlusJSONBody = map[string]interface{}
PatchSingleApplicationMergePatchPlusJSONBody defines parameters for PatchSingle.
type PatchSingleApplicationMergePatchPlusJSONRequestBody ¶
type PatchSingleApplicationMergePatchPlusJSONRequestBody = PatchSingleApplicationMergePatchPlusJSONBody
PatchSingleApplicationMergePatchPlusJSONRequestBody defines body for PatchSingle for application/merge-patch+json ContentType.
type PatchSingleParams ¶
type PatchSingleParams struct {
// TransactionTimeoutMillis Maximum time in milliseconds the server may spend before the
// first commit. When exceeded, the operation is rolled back and
// fails with 408 TRANSACTION_TIMEOUT; nothing is committed. Not
// supported on requests joining an open transaction (400). Absent
// means no server-side timeout.
TransactionTimeoutMillis *int64 `form:"transactionTimeoutMillis,omitempty" json:"transactionTimeoutMillis,omitempty"`
// IfMatch transactionId from the last read, or "*" for unconditional. Absent or empty returns 428.
IfMatch *string `json:"If-Match,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
PatchSingleParams defines parameters for PatchSingle.
type PatchSingleParamsFormat ¶
type PatchSingleParamsFormat string
PatchSingleParamsFormat defines parameters for PatchSingle.
const ( PatchSingleParamsFormatJSON PatchSingleParamsFormat = "JSON" PatchSingleParamsFormatXML PatchSingleParamsFormat = "XML" )
Defines values for PatchSingleParamsFormat.
func (PatchSingleParamsFormat) Valid ¶
func (e PatchSingleParamsFormat) Valid() bool
Valid indicates whether the value is a known member of the PatchSingleParamsFormat enum.
type PatchSingleWithLoopbackApplicationJSONPatchPlusJSONBody ¶
type PatchSingleWithLoopbackApplicationJSONPatchPlusJSONBody = []map[string]interface{}
PatchSingleWithLoopbackApplicationJSONPatchPlusJSONBody defines parameters for PatchSingleWithLoopback.
type PatchSingleWithLoopbackApplicationJSONPatchPlusJSONRequestBody ¶
type PatchSingleWithLoopbackApplicationJSONPatchPlusJSONRequestBody = PatchSingleWithLoopbackApplicationJSONPatchPlusJSONBody
PatchSingleWithLoopbackApplicationJSONPatchPlusJSONRequestBody defines body for PatchSingleWithLoopback for application/json-patch+json ContentType.
type PatchSingleWithLoopbackApplicationMergePatchPlusJSONBody ¶
type PatchSingleWithLoopbackApplicationMergePatchPlusJSONBody = map[string]interface{}
PatchSingleWithLoopbackApplicationMergePatchPlusJSONBody defines parameters for PatchSingleWithLoopback.
type PatchSingleWithLoopbackApplicationMergePatchPlusJSONRequestBody ¶
type PatchSingleWithLoopbackApplicationMergePatchPlusJSONRequestBody = PatchSingleWithLoopbackApplicationMergePatchPlusJSONBody
PatchSingleWithLoopbackApplicationMergePatchPlusJSONRequestBody defines body for PatchSingleWithLoopback for application/merge-patch+json ContentType.
type PatchSingleWithLoopbackParams ¶
type PatchSingleWithLoopbackParams struct {
// TransactionTimeoutMillis Maximum time in milliseconds the server may spend before the
// first commit. When exceeded, the operation is rolled back and
// fails with 408 TRANSACTION_TIMEOUT; nothing is committed. Not
// supported on requests joining an open transaction (400). Absent
// means no server-side timeout.
TransactionTimeoutMillis *int64 `form:"transactionTimeoutMillis,omitempty" json:"transactionTimeoutMillis,omitempty"`
// IfMatch transactionId from the last read, or "*" for unconditional. Absent or empty returns 428.
IfMatch *string `json:"If-Match,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
PatchSingleWithLoopbackParams defines parameters for PatchSingleWithLoopback.
type PatchSingleWithLoopbackParamsFormat ¶
type PatchSingleWithLoopbackParamsFormat string
PatchSingleWithLoopbackParamsFormat defines parameters for PatchSingleWithLoopback.
const ( PatchSingleWithLoopbackParamsFormatJSON PatchSingleWithLoopbackParamsFormat = "JSON" PatchSingleWithLoopbackParamsFormatXML PatchSingleWithLoopbackParamsFormat = "XML" )
Defines values for PatchSingleWithLoopbackParamsFormat.
func (PatchSingleWithLoopbackParamsFormat) Valid ¶
func (e PatchSingleWithLoopbackParamsFormat) Valid() bool
Valid indicates whether the value is a known member of the PatchSingleWithLoopbackParamsFormat enum.
type PlatformClockChangeDto ¶
type PlatformClockChangeDto struct {
// AdvanceByMs Milliseconds to move the clock forward from now; the target may not lie past the year 9000. Exclusive with `time`.
AdvanceByMs *int64 `json:"advanceByMs,omitempty"`
// Rate Platform seconds per real second, with at most six fractional digits.
Rate *float32 `json:"rate,omitempty"`
// Time The platform time to go to; RFC 3339, in the years 1970 to 9000. Exclusive with `advanceByMs`.
Time *time.Time `json:"time,omitempty"`
}
PlatformClockChangeDto defines model for PlatformClockChangeDto.
type PlatformClockChangeResultDto ¶
type PlatformClockChangeResultDto struct {
// Controllable Whether this node accepts changes to the clock.
Controllable bool `json:"controllable"`
// Nodes The ids of every node that holds the new setting, this node included, in ascending order; `["local"]` without clustering (`CYODA_CLUSTER_ENABLED=false`).
Nodes []string `json:"nodes"`
// Now This node's platform time.
Now time.Time `json:"now"`
// Rate Platform seconds per real second; 1 without clock control.
Rate float32 `json:"rate"`
}
PlatformClockChangeResultDto defines model for PlatformClockChangeResultDto.
type PlatformClockDto ¶
type PlatformClockDto struct {
// Controllable Whether this node accepts changes to the clock.
Controllable bool `json:"controllable"`
// Now This node's platform time.
Now time.Time `json:"now"`
// Rate Platform seconds per real second; 1 without clock control.
Rate float32 `json:"rate"`
}
PlatformClockDto defines model for PlatformClockDto.
type Prize ¶
type Prize struct {
Category string `json:"category"`
Laureates []LaureateDto `json:"laureates"`
Year string `json:"year"`
}
Prize defines model for Prize.
type ProblemDetail ¶
type ProblemDetail struct {
// Detail A human-readable explanation specific to this occurrence of the problem
Detail *string `json:"detail,omitempty"`
// Instance A URI reference that identifies the specific occurrence of the problem
Instance *string `json:"instance,omitempty"`
// Properties Additional diagnostic properties. Values may be any JSON type
// (string, number, boolean, object, array).
Properties *map[string]interface{} `json:"properties,omitempty"`
// Status The HTTP status code
Status *int32 `json:"status,omitempty"`
// Ticket Correlation id of an unexpected server error (500). The server
// logged the failure under the same id, so quoting it lets an
// operator find that log line. Absent on every other response, the
// 503s included.
Ticket *openapi_types.UUID `json:"ticket,omitempty"`
// Title A short, human-readable summary of the problem type
Title *string `json:"title,omitempty"`
// Type A URI reference that identifies the problem type
Type *string `json:"type,omitempty"`
}
ProblemDetail defines model for ProblemDetail.
type ProcessorDefinitionDto ¶
type ProcessorDefinitionDto struct {
// Annotations Client-owned metadata attached to a workflow element, stored and round-tripped verbatim and never interpreted by the engine. The engine validates only that the value is a JSON object of at most 64 KB (compacted); it does not enforce the types of the well-known keys below, which are a documented convention for renderers. Additional client keys are permitted.
Annotations *WorkflowElementAnnotations `json:"annotations,omitempty"`
// Name Name of the processor
Name string `json:"name"`
// Type Processor execution-location axis; the mapping lists the known
// values. `externalized` dispatches the processor via gRPC to a
// calculation node selected by `calculationNodesTags`. Workflow
// import accepts `externalized` only: an omitted or empty value is
// stored, and exported, as `externalized`, and any other value is
// refused with `VALIDATION_FAILED` (400).
Type *string `json:"type,omitempty"`
}
ProcessorDefinitionDto defines model for ProcessorDefinitionDto.
type QueryConditionDto ¶
type QueryConditionDto struct {
Type string `json:"type"`
}
QueryConditionDto A condition. `type` names its form; the mapping lists the known forms. Every condition position (a search, async search, grouped-stats or conditional-delete body, a workflow or transition `criterion`, a group's `conditions`, a function's pre-check) takes any of them; where a `function` condition is refused, the position's description says so.
type QueryGroupedEntityStatisticsForModelJSONRequestBody ¶
type QueryGroupedEntityStatisticsForModelJSONRequestBody = GroupedStatsRequest
QueryGroupedEntityStatisticsForModelJSONRequestBody defines body for QueryGroupedEntityStatisticsForModel for application/json ContentType.
type QueryGroupedEntityStatisticsForModelParams ¶
type QueryGroupedEntityStatisticsForModelParams struct {
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
QueryGroupedEntityStatisticsForModelParams defines parameters for QueryGroupedEntityStatisticsForModel.
type QueryParameterRefused ¶
type QueryParameterRefused = ProblemDetail
QueryParameterRefused defines model for QueryParameterRefused.
type ReactivateJwtKeyPairJSONRequestBody ¶
type ReactivateJwtKeyPairJSONRequestBody = ReactivateKeyRequestDto
ReactivateJwtKeyPairJSONRequestBody defines body for ReactivateJwtKeyPair for application/json ContentType.
type ReactivateKeyRequestDto ¶
type ReactivateKeyRequestDto struct {
// ValidFrom Optional; defaults to now if absent. The key-pair reactivate endpoint refuses a value in the future.
ValidFrom *time.Time `json:"validFrom,omitempty"`
// ValidTo Required. Must be > now and > validFrom.
ValidTo time.Time `json:"validTo"`
}
ReactivateKeyRequestDto defines model for ReactivateKeyRequestDto.
type ReactivateTrustedKeyJSONRequestBody ¶
type ReactivateTrustedKeyJSONRequestBody = ReactivateKeyRequestDto
ReactivateTrustedKeyJSONRequestBody defines body for ReactivateTrustedKey for application/json ContentType.
type RegisterTrustedKeyJSONRequestBody ¶
type RegisterTrustedKeyJSONRequestBody = RegisterTrustedKeyRequestDto
RegisterTrustedKeyJSONRequestBody defines body for RegisterTrustedKey for application/json ContentType.
type RegisterTrustedKeyRequestDto ¶
type RegisterTrustedKeyRequestDto struct {
// InvalidatePrevious If true, invalidates every other key of the tenant at once.
InvalidatePrevious *bool `json:"invalidatePrevious,omitempty"`
// Issuers List of accepted issuer values. When it is set, the assertion must carry an iss claim exactly equal to one of the entries. The entries are plain strings compared byte for byte; no URI form is required.
Issuers *[]string `json:"issuers,omitempty"`
// Jwk A JSON Web Key (JWK) as defined in RFC 7517. Only RSA (`kty: "RSA"`) is honoured in this version, with a modulus of 2048 to 4096 bits and a positive odd public exponent. A `kid`, if present, must equal `keyId`. A JWK that carries a private member (`d`, `p`, `q`, `dp`, `dq`, `qi`, `oth`) is refused with 400 BAD_REQUEST. Only the public members `kty`, `kid`, `n`, `e`, `alg` and `use` are stored; any other member is dropped. See RFC 7517 and RFC 7518 for field definitions.
Jwk map[string]interface{} `json:"jwk"`
// KeyId Key identifier, unique within the caller's tenant. Will be matched against the `kid` header in JWTs. 1 to 128 characters from A-Z, a-z, 0-9, '.', '_' and '-' (^[A-Za-z0-9._-]{1,128}$); any other value is 400 BAD_REQUEST (invalid keyId format).
KeyId string `json:"keyId"`
// ValidFrom When the key becomes valid. Defaults to current time if not specified.
ValidFrom *time.Time `json:"validFrom,omitempty"`
// ValidTo When the key expires. Defaults to validFrom plus CYODA_IAM_TRUSTED_KEY_MAX_VALIDITY_DAYS days (365 by default); a value that is given is not limited by that setting.
ValidTo *time.Time `json:"validTo,omitempty"`
}
RegisterTrustedKeyRequestDto defines model for RegisterTrustedKeyRequestDto.
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ScheduleFunctionDto ¶
type ScheduleFunctionDto struct {
// AttachEntity Whether to attach entity data to the function call. Defaults to true.
AttachEntity *bool `json:"attachEntity,omitempty"`
// CalculationNodesTags Comma-separated list of calculation node tags used to select the dispatch target.
CalculationNodesTags string `json:"calculationNodesTags"`
// Context Pass-through string forwarded verbatim as the `parameters` JSON
// node of the outgoing calculation request. Empty value causes
// the `parameters` field to be omitted entirely.
Context *string `json:"context,omitempty"`
// Name Name of the registered function to call.
Name string `json:"name"`
// ResponseTimeoutMs How long to wait for the compute member's answer, in milliseconds.
// When absent or 0 the server's CYODA_CALLOUT_RESPONSE_TIMEOUT_MS
// applies (default 30000). Must not exceed the server's
// CYODA_CALLOUT_RESPONSE_TIMEOUT_MAX_MS (default 60000); import
// rejects a larger or a negative value with HTTP 400
// VALIDATION_FAILED. The bound is a server setting, so a workflow
// exported from one deployment can be refused by another with a
// lower bound.
ResponseTimeoutMs *int64 `json:"responseTimeoutMs,omitempty"`
// ResultKind Result-shape discriminator the calculation node must echo back.
// Only `Schedule` is supported for scheduled-transition timing.
ResultKind ScheduleFunctionDtoResultKind `json:"resultKind"`
// RetryPolicy Retry policy selector. NONE → one try. FIXED → the
// server-configured number of tries (CYODA_RETRY_FIXED_NUM_RETRIES
// retries after the first). The number of tries is
// server-configured, and is the normal number, not a hard limit.
// When omitted, FIXED applies. Import-time validation rejects any
// other value with HTTP 400 VALIDATION_FAILED.
RetryPolicy *ScheduleFunctionDtoRetryPolicy `json:"retryPolicy,omitempty"`
}
ScheduleFunctionDto A Function callout that computes a scheduled transition's firing time (and optionally its expiry) per entity, in place of a static `delayMs`. Dispatched like an externalized processor/criterion function: a calculation node selected by `calculationNodesTags` receives the request and returns a result with `resultKind: "Schedule"`.
type ScheduleFunctionDtoResultKind ¶
type ScheduleFunctionDtoResultKind string
ScheduleFunctionDtoResultKind Result-shape discriminator the calculation node must echo back. Only `Schedule` is supported for scheduled-transition timing.
const (
Schedule ScheduleFunctionDtoResultKind = "Schedule"
)
Defines values for ScheduleFunctionDtoResultKind.
func (ScheduleFunctionDtoResultKind) Valid ¶
func (e ScheduleFunctionDtoResultKind) Valid() bool
Valid indicates whether the value is a known member of the ScheduleFunctionDtoResultKind enum.
type ScheduleFunctionDtoRetryPolicy ¶
type ScheduleFunctionDtoRetryPolicy string
ScheduleFunctionDtoRetryPolicy Retry policy selector. NONE → one try. FIXED → the server-configured number of tries (CYODA_RETRY_FIXED_NUM_RETRIES retries after the first). The number of tries is server-configured, and is the normal number, not a hard limit. When omitted, FIXED applies. Import-time validation rejects any other value with HTTP 400 VALIDATION_FAILED.
const ( ScheduleFunctionDtoRetryPolicyFIXED ScheduleFunctionDtoRetryPolicy = "FIXED" ScheduleFunctionDtoRetryPolicyNONE ScheduleFunctionDtoRetryPolicy = "NONE" )
Defines values for ScheduleFunctionDtoRetryPolicy.
func (ScheduleFunctionDtoRetryPolicy) Valid ¶
func (e ScheduleFunctionDtoRetryPolicy) Valid() bool
Valid indicates whether the value is a known member of the ScheduleFunctionDtoRetryPolicy enum.
type ScheduleFunctionInvalidResult ¶
type ScheduleFunctionInvalidResult = ProblemDetail
ScheduleFunctionInvalidResult defines model for ScheduleFunctionInvalidResult.
type ScheduledTaskArmedByDto ¶
type ScheduledTaskArmedByDto struct {
Id string `json:"id"`
// Kind Open value set. Known values are user, service and system.
Kind string `json:"kind"`
}
ScheduledTaskArmedByDto The principal whose write armed the task. Present when known.
type ScheduledTaskDto ¶
type ScheduledTaskDto struct {
// ArmedBy The principal whose write armed the task. Present when known.
ArmedBy *ScheduledTaskArmedByDto `json:"armedBy,omitempty"`
// ArmedTime When the task was last armed.
ArmedTime time.Time `json:"armedTime"`
// Attempts Failed attempts recorded since the task was last armed.
Attempts int32 `json:"attempts"`
EntityId openapi_types.UUID `json:"entityId"`
// ExpiresTime Present when the transition's schedule sets `timeoutMs` — `scheduledTime` plus `timeoutMs`.
ExpiresTime *time.Time `json:"expiresTime,omitempty"`
// FailedTime Present when `status` is FAILED.
FailedTime *time.Time `json:"failedTime,omitempty"`
// FailureReason Present when `status` is FAILED. Open value set; accept values not listed here. Known values: UNSAFE_WORK_NOT_COMPLETED — a processor not declared `idempotent` was handed to a compute node and the run did not commit, so it is not repeated; OWNER_LOST_REPEATEDLY — the node running the task was lost too many times; EXPIRED_AFTER_FAILED_ATTEMPTS — `expiresTime` passed after a failed attempt or a lost node; RUN_PANICKED — the run failed with an internal error; STOPPED_AFTER_PARTIAL_COMMIT — the run committed the entity into another state and then stopped.
FailureReason *string `json:"failureReason,omitempty"`
// LastAttemptTime Present after a failed attempt.
LastAttemptTime *time.Time `json:"lastAttemptTime,omitempty"`
// LastError For a FAILED task, present with the failure's text (pairs with `failedTime`), even when the text is empty. For every other status, present when `lastAttemptTime` is set, paired with it. Client-safe text — a `CODE: detail` message, a compute node's own message, or `internal error [ticket: <uuid>]`.
LastError *string `json:"lastError,omitempty"`
// LostOwners Times the node running the task was lost since the task was last armed.
LostOwners int32 `json:"lostOwners"`
ModelName string `json:"modelName"`
ModelVersion int32 `json:"modelVersion"`
// NextAttemptTime Present when `status` is WAITING — the earliest time the next attempt may start.
NextAttemptTime *time.Time `json:"nextAttemptTime,omitempty"`
// ScheduledTime When the transition is due.
ScheduledTime time.Time `json:"scheduledTime"`
// SourceState The state the entity must be in for the transition to fire.
SourceState string `json:"sourceState"`
// Status Open value set; accept values not listed here. Known values: WAITING — due at `nextAttemptTime`; RUNNING — a node has claimed it and is running it; FAILED — it will not run again and never moves the entity (see `failureReason`). A write to the entity in `sourceState` arms it again; the entity leaving `sourceState` removes it.
Status string `json:"status"`
// TaskId Opaque, stable identifier. The same (entity, source state, transition) keeps the same id when it is armed again.
TaskId string `json:"taskId"`
Transition string `json:"transition"`
}
ScheduledTaskDto One scheduled transition's task: fire `transition` of the entity at `scheduledTime`. Claim tokens, arm tokens and node identities are never returned.
type ScheduledTaskPageDto ¶
type ScheduledTaskPageDto struct {
// Items The tasks on this page, in (`scheduledTime`, `taskId`) order.
Items []ScheduledTaskDto `json:"items"`
Pagination CursorPaginationInfoDto `json:"pagination"`
}
ScheduledTaskPageDto defines model for ScheduledTaskPageDto.
type SearchEntitiesJSONRequestBody ¶
type SearchEntitiesJSONRequestBody = QueryConditionDto
SearchEntitiesJSONRequestBody defines body for SearchEntities for application/json ContentType.
type SearchEntitiesParams ¶
type SearchEntitiesParams struct {
// PointInTime The point-in-time for searching the entities, in RFC 3339 format. Absent means the current committed state. Must be at or before the consistency time (GET /entity/consistency-time); a later instant is refused with 400 POINT_IN_TIME_AFTER_CONSISTENCY_TIME.
PointInTime *time.Time `form:"pointInTime,omitempty" json:"pointInTime,omitempty"`
// Limit Caps the matched result set; not a page size. Defaults to 1000 if not provided. Accepts 1-10000; values outside this range, including 0, are rejected with 400. A matched set larger than `limit` fails 400 `SEARCH_RESULT_LIMIT` rather than returning a truncated prefix.
Limit *string `form:"limit,omitempty" json:"limit,omitempty"`
// Sort Repeatable sort key. Grammar: [@]path[:asc|desc], direction defaults to asc. A bare path sorts by a scalar entity-data field; a leading '@' selects a meta field (state, creationDate, lastUpdateTime, transitionForLatestSave, transactionId, id). Repetition order is sort precedence; entity id is the final tiebreaker. Absent/null values sort last.
Sort *[]string `form:"sort,omitempty" json:"sort,omitempty"`
// TrackingRead When true and the request runs inside an active transaction, the entities this search returns are recorded into the transaction's read-set so commit-time first-committer-wins validates them. Defaults to false (a plain snapshot read that records nothing). Ignored outside a transaction.
TrackingRead *bool `form:"trackingRead,omitempty" json:"trackingRead,omitempty"`
// TimeoutMillis Maximum time in milliseconds to wait for the search to complete.
// When exceeded, the request fails with 408 SEARCH_TIMEOUT and no
// partial results are returned. Absent means no server-side timeout.
// Not supported on requests joining an open transaction (400).
TimeoutMillis *int64 `form:"timeoutMillis,omitempty" json:"timeoutMillis,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
SearchEntitiesParams defines parameters for SearchEntities.
type SearchEntityAuditEventsParams ¶
type SearchEntityAuditEventsParams struct {
// EventType Filter by specific audit event types. If not specified, defaults to all event types except System. Note: Including System events may increase latency and load on the system. Use System events filtering with caution.
EventType *[]SearchEntityAuditEventsParamsEventType `form:"eventType,omitempty" json:"eventType,omitempty"`
// Severity Filter by event severity level
Severity *SearchEntityAuditEventsParamsSeverity `form:"severity,omitempty" json:"severity,omitempty"`
// FromUtcTime Filter events from this timestamp (inclusive)
FromUtcTime *time.Time `form:"fromUtcTime,omitempty" json:"fromUtcTime,omitempty"`
// ToUtcTime Filter events until this timestamp (exclusive)
ToUtcTime *time.Time `form:"toUtcTime,omitempty" json:"toUtcTime,omitempty"`
// TransactionId Filter by transaction identifier
TransactionId *openapi_types.UUID `form:"transactionId,omitempty" json:"transactionId,omitempty"`
// Cursor Position to continue from: pass `nextCursor` from the previous response. Opaque. A cursor that cannot be read is rejected with 400. Omit for the first page.
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
// Limit Maximum number of audit events to return per page
Limit *string `form:"limit,omitempty" json:"limit,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
SearchEntityAuditEventsParams defines parameters for SearchEntityAuditEvents.
type SearchEntityAuditEventsParamsEventType ¶
type SearchEntityAuditEventsParamsEventType string
SearchEntityAuditEventsParamsEventType defines parameters for SearchEntityAuditEvents.
const ( EntityChange SearchEntityAuditEventsParamsEventType = "EntityChange" StateMachine SearchEntityAuditEventsParamsEventType = "StateMachine" System SearchEntityAuditEventsParamsEventType = "System" )
Defines values for SearchEntityAuditEventsParamsEventType.
func (SearchEntityAuditEventsParamsEventType) Valid ¶
func (e SearchEntityAuditEventsParamsEventType) Valid() bool
Valid indicates whether the value is a known member of the SearchEntityAuditEventsParamsEventType enum.
type SearchEntityAuditEventsParamsSeverity ¶
type SearchEntityAuditEventsParamsSeverity string
SearchEntityAuditEventsParamsSeverity defines parameters for SearchEntityAuditEvents.
const ( SearchEntityAuditEventsParamsSeverityDEBUG SearchEntityAuditEventsParamsSeverity = "DEBUG" SearchEntityAuditEventsParamsSeverityERROR SearchEntityAuditEventsParamsSeverity = "ERROR" SearchEntityAuditEventsParamsSeverityINFO SearchEntityAuditEventsParamsSeverity = "INFO" SearchEntityAuditEventsParamsSeverityWARN SearchEntityAuditEventsParamsSeverity = "WARN" )
Defines values for SearchEntityAuditEventsParamsSeverity.
func (SearchEntityAuditEventsParamsSeverity) Valid ¶
func (e SearchEntityAuditEventsParamsSeverity) Valid() bool
Valid indicates whether the value is a known member of the SearchEntityAuditEventsParamsSeverity enum.
type ServeMux ¶
type ServeMux interface {
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
http.Handler
}
ServeMux is an abstraction of http.ServeMux.
type ServerInterface ¶
type ServerInterface interface {
// Retrieve information about the current user's account, including current subscription.
// (GET /account)
AccountGet(w http.ResponseWriter, r *http.Request)
// Retrieve all subscriptions available for the current user's legal entity.
// (GET /account/subscriptions)
AccountSubscriptionsGet(w http.ResponseWriter, r *http.Request)
// Search audit events for entity
// (GET /audit/entity/{entityId})
SearchEntityAuditEvents(w http.ResponseWriter, r *http.Request, entityId openapi_types.UUID, params SearchEntityAuditEventsParams)
// Get latest workflow finished event for transaction
// (GET /audit/entity/{entityId}/workflow/{transactionId}/finished)
GetStateMachineFinishedEvent(w http.ResponseWriter, r *http.Request, entityId openapi_types.UUID, transactionId openapi_types.UUID, params GetStateMachineFinishedEventParams)
// List all M2M clients
// (GET /clients)
ListTechnicalUsers(w http.ResponseWriter, r *http.Request)
// Create M2M client
// (POST /clients)
CreateTechnicalUser(w http.ResponseWriter, r *http.Request, params CreateTechnicalUserParams)
// Delete a M2M client
// (DELETE /clients/{clientId})
DeleteTechnicalUser(w http.ResponseWriter, r *http.Request, clientId string)
// Reset M2M client secret
// (PUT /clients/{clientId}/secret)
ResetTechnicalUserSecret(w http.ResponseWriter, r *http.Request, clientId string)
// Get the consistency time
// (GET /entity/consistency-time)
GetConsistencyTime(w http.ResponseWriter, r *http.Request)
// Retrieve entity statistics
// (GET /entity/stats)
GetEntityStatistics(w http.ResponseWriter, r *http.Request, params GetEntityStatisticsParams)
// Retrieve entity statistics by state
// (GET /entity/stats/states)
GetEntityStatisticsByState(w http.ResponseWriter, r *http.Request, params GetEntityStatisticsByStateParams)
// Retrieve entity statistics by state for a specific model
// (GET /entity/stats/states/{entityName}/{modelVersion})
GetEntityStatisticsByStateForModel(w http.ResponseWriter, r *http.Request, entityName string, modelVersion int32, params GetEntityStatisticsByStateForModelParams)
// Retrieve entity statistics for a specific model
// (GET /entity/stats/{entityName}/{modelVersion})
GetEntityStatisticsForModel(w http.ResponseWriter, r *http.Request, entityName string, modelVersion int32, params GetEntityStatisticsForModelParams)
// Query grouped entity statistics for a specific model
// (POST /entity/stats/{entityName}/{modelVersion}/query)
QueryGroupedEntityStatisticsForModel(w http.ResponseWriter, r *http.Request, entityName string, modelVersion int32, params QueryGroupedEntityStatisticsForModelParams)
// Delete a single entity
// (DELETE /entity/{entityId})
DeleteSingleEntity(w http.ResponseWriter, r *http.Request, entityId openapi_types.UUID, params DeleteSingleEntityParams)
// Get a single entity
// (GET /entity/{entityId})
GetOneEntity(w http.ResponseWriter, r *http.Request, entityId openapi_types.UUID, params GetOneEntityParams)
// Get Entity Changes Metadata
// (GET /entity/{entityId}/changes)
GetEntityChangesMetadata(w http.ResponseWriter, r *http.Request, entityId openapi_types.UUID, params GetEntityChangesMetadataParams)
// Get available transitions for an entity
// (GET /entity/{entityId}/transitions)
GetEntityTransitions(w http.ResponseWriter, r *http.Request, entityId openapi_types.UUID, params GetEntityTransitionsParams)
// Delete entities of a model and version
// (DELETE /entity/{entityName}/{modelVersion})
DeleteEntities(w http.ResponseWriter, r *http.Request, entityName string, modelVersion int32, params DeleteEntitiesParams)
// Get All Entities
// (GET /entity/{entityName}/{modelVersion})
GetAllEntities(w http.ResponseWriter, r *http.Request, entityName string, modelVersion int32, params GetAllEntitiesParams)
// Create Collection
// (POST /entity/{format})
CreateCollection(w http.ResponseWriter, r *http.Request, format CreateCollectionParamsFormat, params CreateCollectionParams)
// Update Collection
// (PUT /entity/{format})
UpdateCollection(w http.ResponseWriter, r *http.Request, format UpdateCollectionParamsFormat, params UpdateCollectionParams)
// Patch Single with a loopback transition
// (PATCH /entity/{format}/{entityId})
PatchSingleWithLoopback(w http.ResponseWriter, r *http.Request, format PatchSingleWithLoopbackParamsFormat, entityId openapi_types.UUID, params PatchSingleWithLoopbackParams)
// Update Single with a loopback transition
// (PUT /entity/{format}/{entityId})
UpdateSingleWithLoopback(w http.ResponseWriter, r *http.Request, format UpdateSingleWithLoopbackParamsFormat, entityId openapi_types.UUID, params UpdateSingleWithLoopbackParams)
// Patch Single
// (PATCH /entity/{format}/{entityId}/{transition})
PatchSingle(w http.ResponseWriter, r *http.Request, format PatchSingleParamsFormat, entityId openapi_types.UUID, transition string, params PatchSingleParams)
// Update Single
// (PUT /entity/{format}/{entityId}/{transition})
UpdateSingle(w http.ResponseWriter, r *http.Request, format UpdateSingleParamsFormat, entityId openapi_types.UUID, transition string, params UpdateSingleParams)
// Create New
// (POST /entity/{format}/{entityName}/{modelVersion})
Create(w http.ResponseWriter, r *http.Request, format CreateParamsFormat, entityName string, modelVersion int32, params CreateParams)
// Delete multiple edge messages by IDs, optionally in batches
// (DELETE /message)
DeleteMessages(w http.ResponseWriter, r *http.Request, params DeleteMessagesParams)
// Send a new edge message
// (POST /message/new/{subject})
NewMessage(w http.ResponseWriter, r *http.Request, subject string, params NewMessageParams)
// Delete a single edge message by ID
// (DELETE /message/{messageId})
DeleteMessage(w http.ResponseWriter, r *http.Request, messageId openapi_types.UUID, params DeleteMessageParams)
// Retrieve an edge message by ID
// (GET /message/{messageId})
GetMessage(w http.ResponseWriter, r *http.Request, messageId openapi_types.UUID, params GetMessageParams)
// List Available Entity Models
// (GET /model/)
GetAvailableEntityModels(w http.ResponseWriter, r *http.Request)
// Export Entity Model Metadata
// (GET /model/export/{converter}/{entityName}/{modelVersion})
ExportMetadata(w http.ResponseWriter, r *http.Request, converter ExportMetadataParamsConverter, entityName string, modelVersion int32)
// Import Entity Model
// (POST /model/import/{dataFormat}/{converter}/{entityName}/{modelVersion})
ImportEntityModel(w http.ResponseWriter, r *http.Request, dataFormat ImportEntityModelParamsDataFormat, converter ImportEntityModelParamsConverter, entityName string, modelVersion int32)
// Validate data against entity model
// (POST /model/validate/{entityName}/{modelVersion})
ValidateEntityModel(w http.ResponseWriter, r *http.Request, entityName string, modelVersion int32)
// Delete Entity Model
// (DELETE /model/{entityName}/{modelVersion})
DeleteEntityModel(w http.ResponseWriter, r *http.Request, entityName string, modelVersion int32)
// Set Entity Model Change Level
// (POST /model/{entityName}/{modelVersion}/changeLevel/{changeLevel})
SetEntityModelChangeLevel(w http.ResponseWriter, r *http.Request, entityName string, modelVersion int32, changeLevel SetEntityModelChangeLevelParamsChangeLevel)
// Lock Entity Model
// (PUT /model/{entityName}/{modelVersion}/lock)
LockEntityModel(w http.ResponseWriter, r *http.Request, entityName string, modelVersion int32)
// Set Entity Model Unique Keys
// (PUT /model/{entityName}/{modelVersion}/unique-keys)
SetEntityModelUniqueKeys(w http.ResponseWriter, r *http.Request, entityName string, modelVersion int32)
// Unlock Entity Model
// (PUT /model/{entityName}/{modelVersion}/unlock)
UnlockEntityModel(w http.ResponseWriter, r *http.Request, entityName string, modelVersion int32)
// Export entity workflows
// (GET /model/{entityName}/{modelVersion}/workflow/export)
ExportEntityModelWorkflow(w http.ResponseWriter, r *http.Request, entityName string, modelVersion int32)
// Import entity workflow
// (POST /model/{entityName}/{modelVersion}/workflow/import)
ImportEntityModelWorkflow(w http.ResponseWriter, r *http.Request, entityName string, modelVersion int32)
// Issue new JWT signing key-pair
// (POST /oauth/keys/keypair)
IssueJwtKeyPair(w http.ResponseWriter, r *http.Request)
// Get current active JWT signing key-pair
// (GET /oauth/keys/keypair/current)
GetCurrentJwtKeyPair(w http.ResponseWriter, r *http.Request)
// Delete JWT signing key-pair
// (DELETE /oauth/keys/keypair/{keyId})
DeleteJwtKeyPair(w http.ResponseWriter, r *http.Request, keyId string)
// Invalidate JWT signing key-pair
// (POST /oauth/keys/keypair/{keyId}/invalidate)
InvalidateJwtKeyPair(w http.ResponseWriter, r *http.Request, keyId string)
// Reactivate JWT signing key-pair
// (POST /oauth/keys/keypair/{keyId}/reactivate)
ReactivateJwtKeyPair(w http.ResponseWriter, r *http.Request, keyId string)
// List registered trusted keys
// (GET /oauth/keys/trusted)
ListTrustedKeys(w http.ResponseWriter, r *http.Request)
// Register a trusted public key
// (POST /oauth/keys/trusted)
RegisterTrustedKey(w http.ResponseWriter, r *http.Request)
// Delete a trusted public key
// (DELETE /oauth/keys/trusted/{keyId})
DeleteTrustedKey(w http.ResponseWriter, r *http.Request, keyId string)
// Invalidate a trusted public key
// (POST /oauth/keys/trusted/{keyId}/invalidate)
InvalidateTrustedKey(w http.ResponseWriter, r *http.Request, keyId string)
// Reactivate a trusted public key
// (POST /oauth/keys/trusted/{keyId}/reactivate)
ReactivateTrustedKey(w http.ResponseWriter, r *http.Request, keyId string)
// Fetch available transitions (platform-library format)
// (GET /platform-api/entity/fetch/transitions)
FetchEntityTransitions(w http.ResponseWriter, r *http.Request, params FetchEntityTransitionsParams)
// Get the platform clock
// (GET /platform/clock)
GetPlatformClock(w http.ResponseWriter, r *http.Request)
// Change the platform clock
// (POST /platform/clock)
ChangePlatformClock(w http.ResponseWriter, r *http.Request)
// Get the cluster status
// (GET /platform/cluster)
GetPlatformCluster(w http.ResponseWriter, r *http.Request, params GetPlatformClusterParams)
// List the tenant's scheduled tasks
// (GET /scheduled-tasks)
ListScheduledTasks(w http.ResponseWriter, r *http.Request, params ListScheduledTasksParams)
// Submit async search job
// (POST /search/async/{entityName}/{modelVersion})
SubmitAsyncSearchJob(w http.ResponseWriter, r *http.Request, entityName string, modelVersion int32, params SubmitAsyncSearchJobParams)
// Retrieve paginated results from an async search job
// (GET /search/async/{jobId})
GetAsyncSearchResults(w http.ResponseWriter, r *http.Request, jobId openapi_types.UUID, params GetAsyncSearchResultsParams)
// Cancel a running async search job
// (PUT /search/async/{jobId}/cancel)
CancelAsyncSearch(w http.ResponseWriter, r *http.Request, jobId openapi_types.UUID, params CancelAsyncSearchParams)
// Get async search job status
// (GET /search/async/{jobId}/status)
GetAsyncSearchStatus(w http.ResponseWriter, r *http.Request, jobId openapi_types.UUID, params GetAsyncSearchStatusParams)
// Perform synchronous entity search
// (POST /search/direct/{entityName}/{modelVersion})
SearchEntities(w http.ResponseWriter, r *http.Request, entityName string, modelVersion int32, params SearchEntitiesParams)
// Obtain access token for M2M client
// (POST /tenants/{tenant}/oauth/token)
GetTechnicalUserToken(w http.ResponseWriter, r *http.Request, tenant string, params GetTechnicalUserTokenParams)
}
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) AccountGet ¶
func (siw *ServerInterfaceWrapper) AccountGet(w http.ResponseWriter, r *http.Request)
AccountGet operation middleware
func (*ServerInterfaceWrapper) AccountSubscriptionsGet ¶
func (siw *ServerInterfaceWrapper) AccountSubscriptionsGet(w http.ResponseWriter, r *http.Request)
AccountSubscriptionsGet operation middleware
func (*ServerInterfaceWrapper) CancelAsyncSearch ¶
func (siw *ServerInterfaceWrapper) CancelAsyncSearch(w http.ResponseWriter, r *http.Request)
CancelAsyncSearch operation middleware
func (*ServerInterfaceWrapper) ChangePlatformClock ¶
func (siw *ServerInterfaceWrapper) ChangePlatformClock(w http.ResponseWriter, r *http.Request)
ChangePlatformClock operation middleware
func (*ServerInterfaceWrapper) Create ¶
func (siw *ServerInterfaceWrapper) Create(w http.ResponseWriter, r *http.Request)
Create operation middleware
func (*ServerInterfaceWrapper) CreateCollection ¶
func (siw *ServerInterfaceWrapper) CreateCollection(w http.ResponseWriter, r *http.Request)
CreateCollection operation middleware
func (*ServerInterfaceWrapper) CreateTechnicalUser ¶
func (siw *ServerInterfaceWrapper) CreateTechnicalUser(w http.ResponseWriter, r *http.Request)
CreateTechnicalUser operation middleware
func (*ServerInterfaceWrapper) DeleteEntities ¶
func (siw *ServerInterfaceWrapper) DeleteEntities(w http.ResponseWriter, r *http.Request)
DeleteEntities operation middleware
func (*ServerInterfaceWrapper) DeleteEntityModel ¶
func (siw *ServerInterfaceWrapper) DeleteEntityModel(w http.ResponseWriter, r *http.Request)
DeleteEntityModel operation middleware
func (*ServerInterfaceWrapper) DeleteJwtKeyPair ¶
func (siw *ServerInterfaceWrapper) DeleteJwtKeyPair(w http.ResponseWriter, r *http.Request)
DeleteJwtKeyPair operation middleware
func (*ServerInterfaceWrapper) DeleteMessage ¶
func (siw *ServerInterfaceWrapper) DeleteMessage(w http.ResponseWriter, r *http.Request)
DeleteMessage operation middleware
func (*ServerInterfaceWrapper) DeleteMessages ¶
func (siw *ServerInterfaceWrapper) DeleteMessages(w http.ResponseWriter, r *http.Request)
DeleteMessages operation middleware
func (*ServerInterfaceWrapper) DeleteSingleEntity ¶
func (siw *ServerInterfaceWrapper) DeleteSingleEntity(w http.ResponseWriter, r *http.Request)
DeleteSingleEntity operation middleware
func (*ServerInterfaceWrapper) DeleteTechnicalUser ¶
func (siw *ServerInterfaceWrapper) DeleteTechnicalUser(w http.ResponseWriter, r *http.Request)
DeleteTechnicalUser operation middleware
func (*ServerInterfaceWrapper) DeleteTrustedKey ¶
func (siw *ServerInterfaceWrapper) DeleteTrustedKey(w http.ResponseWriter, r *http.Request)
DeleteTrustedKey operation middleware
func (*ServerInterfaceWrapper) ExportEntityModelWorkflow ¶
func (siw *ServerInterfaceWrapper) ExportEntityModelWorkflow(w http.ResponseWriter, r *http.Request)
ExportEntityModelWorkflow operation middleware
func (*ServerInterfaceWrapper) ExportMetadata ¶
func (siw *ServerInterfaceWrapper) ExportMetadata(w http.ResponseWriter, r *http.Request)
ExportMetadata operation middleware
func (*ServerInterfaceWrapper) FetchEntityTransitions ¶
func (siw *ServerInterfaceWrapper) FetchEntityTransitions(w http.ResponseWriter, r *http.Request)
FetchEntityTransitions operation middleware
func (*ServerInterfaceWrapper) GetAllEntities ¶
func (siw *ServerInterfaceWrapper) GetAllEntities(w http.ResponseWriter, r *http.Request)
GetAllEntities operation middleware
func (*ServerInterfaceWrapper) GetAsyncSearchResults ¶
func (siw *ServerInterfaceWrapper) GetAsyncSearchResults(w http.ResponseWriter, r *http.Request)
GetAsyncSearchResults operation middleware
func (*ServerInterfaceWrapper) GetAsyncSearchStatus ¶
func (siw *ServerInterfaceWrapper) GetAsyncSearchStatus(w http.ResponseWriter, r *http.Request)
GetAsyncSearchStatus operation middleware
func (*ServerInterfaceWrapper) GetAvailableEntityModels ¶
func (siw *ServerInterfaceWrapper) GetAvailableEntityModels(w http.ResponseWriter, r *http.Request)
GetAvailableEntityModels operation middleware
func (*ServerInterfaceWrapper) GetConsistencyTime ¶
func (siw *ServerInterfaceWrapper) GetConsistencyTime(w http.ResponseWriter, r *http.Request)
GetConsistencyTime operation middleware
func (*ServerInterfaceWrapper) GetCurrentJwtKeyPair ¶
func (siw *ServerInterfaceWrapper) GetCurrentJwtKeyPair(w http.ResponseWriter, r *http.Request)
GetCurrentJwtKeyPair operation middleware
func (*ServerInterfaceWrapper) GetEntityChangesMetadata ¶
func (siw *ServerInterfaceWrapper) GetEntityChangesMetadata(w http.ResponseWriter, r *http.Request)
GetEntityChangesMetadata operation middleware
func (*ServerInterfaceWrapper) GetEntityStatistics ¶
func (siw *ServerInterfaceWrapper) GetEntityStatistics(w http.ResponseWriter, r *http.Request)
GetEntityStatistics operation middleware
func (*ServerInterfaceWrapper) GetEntityStatisticsByState ¶
func (siw *ServerInterfaceWrapper) GetEntityStatisticsByState(w http.ResponseWriter, r *http.Request)
GetEntityStatisticsByState operation middleware
func (*ServerInterfaceWrapper) GetEntityStatisticsByStateForModel ¶
func (siw *ServerInterfaceWrapper) GetEntityStatisticsByStateForModel(w http.ResponseWriter, r *http.Request)
GetEntityStatisticsByStateForModel operation middleware
func (*ServerInterfaceWrapper) GetEntityStatisticsForModel ¶
func (siw *ServerInterfaceWrapper) GetEntityStatisticsForModel(w http.ResponseWriter, r *http.Request)
GetEntityStatisticsForModel operation middleware
func (*ServerInterfaceWrapper) GetEntityTransitions ¶
func (siw *ServerInterfaceWrapper) GetEntityTransitions(w http.ResponseWriter, r *http.Request)
GetEntityTransitions operation middleware
func (*ServerInterfaceWrapper) GetMessage ¶
func (siw *ServerInterfaceWrapper) GetMessage(w http.ResponseWriter, r *http.Request)
GetMessage operation middleware
func (*ServerInterfaceWrapper) GetOneEntity ¶
func (siw *ServerInterfaceWrapper) GetOneEntity(w http.ResponseWriter, r *http.Request)
GetOneEntity operation middleware
func (*ServerInterfaceWrapper) GetPlatformClock ¶
func (siw *ServerInterfaceWrapper) GetPlatformClock(w http.ResponseWriter, r *http.Request)
GetPlatformClock operation middleware
func (*ServerInterfaceWrapper) GetPlatformCluster ¶
func (siw *ServerInterfaceWrapper) GetPlatformCluster(w http.ResponseWriter, r *http.Request)
GetPlatformCluster operation middleware
func (*ServerInterfaceWrapper) GetStateMachineFinishedEvent ¶
func (siw *ServerInterfaceWrapper) GetStateMachineFinishedEvent(w http.ResponseWriter, r *http.Request)
GetStateMachineFinishedEvent operation middleware
func (*ServerInterfaceWrapper) GetTechnicalUserToken ¶
func (siw *ServerInterfaceWrapper) GetTechnicalUserToken(w http.ResponseWriter, r *http.Request)
GetTechnicalUserToken operation middleware
func (*ServerInterfaceWrapper) ImportEntityModel ¶
func (siw *ServerInterfaceWrapper) ImportEntityModel(w http.ResponseWriter, r *http.Request)
ImportEntityModel operation middleware
func (*ServerInterfaceWrapper) ImportEntityModelWorkflow ¶
func (siw *ServerInterfaceWrapper) ImportEntityModelWorkflow(w http.ResponseWriter, r *http.Request)
ImportEntityModelWorkflow operation middleware
func (*ServerInterfaceWrapper) InvalidateJwtKeyPair ¶
func (siw *ServerInterfaceWrapper) InvalidateJwtKeyPair(w http.ResponseWriter, r *http.Request)
InvalidateJwtKeyPair operation middleware
func (*ServerInterfaceWrapper) InvalidateTrustedKey ¶
func (siw *ServerInterfaceWrapper) InvalidateTrustedKey(w http.ResponseWriter, r *http.Request)
InvalidateTrustedKey operation middleware
func (*ServerInterfaceWrapper) IssueJwtKeyPair ¶
func (siw *ServerInterfaceWrapper) IssueJwtKeyPair(w http.ResponseWriter, r *http.Request)
IssueJwtKeyPair operation middleware
func (*ServerInterfaceWrapper) ListScheduledTasks ¶
func (siw *ServerInterfaceWrapper) ListScheduledTasks(w http.ResponseWriter, r *http.Request)
ListScheduledTasks operation middleware
func (*ServerInterfaceWrapper) ListTechnicalUsers ¶
func (siw *ServerInterfaceWrapper) ListTechnicalUsers(w http.ResponseWriter, r *http.Request)
ListTechnicalUsers operation middleware
func (*ServerInterfaceWrapper) ListTrustedKeys ¶
func (siw *ServerInterfaceWrapper) ListTrustedKeys(w http.ResponseWriter, r *http.Request)
ListTrustedKeys operation middleware
func (*ServerInterfaceWrapper) LockEntityModel ¶
func (siw *ServerInterfaceWrapper) LockEntityModel(w http.ResponseWriter, r *http.Request)
LockEntityModel operation middleware
func (*ServerInterfaceWrapper) NewMessage ¶
func (siw *ServerInterfaceWrapper) NewMessage(w http.ResponseWriter, r *http.Request)
NewMessage operation middleware
func (*ServerInterfaceWrapper) PatchSingle ¶
func (siw *ServerInterfaceWrapper) PatchSingle(w http.ResponseWriter, r *http.Request)
PatchSingle operation middleware
func (*ServerInterfaceWrapper) PatchSingleWithLoopback ¶
func (siw *ServerInterfaceWrapper) PatchSingleWithLoopback(w http.ResponseWriter, r *http.Request)
PatchSingleWithLoopback operation middleware
func (*ServerInterfaceWrapper) QueryGroupedEntityStatisticsForModel ¶
func (siw *ServerInterfaceWrapper) QueryGroupedEntityStatisticsForModel(w http.ResponseWriter, r *http.Request)
QueryGroupedEntityStatisticsForModel operation middleware
func (*ServerInterfaceWrapper) ReactivateJwtKeyPair ¶
func (siw *ServerInterfaceWrapper) ReactivateJwtKeyPair(w http.ResponseWriter, r *http.Request)
ReactivateJwtKeyPair operation middleware
func (*ServerInterfaceWrapper) ReactivateTrustedKey ¶
func (siw *ServerInterfaceWrapper) ReactivateTrustedKey(w http.ResponseWriter, r *http.Request)
ReactivateTrustedKey operation middleware
func (*ServerInterfaceWrapper) RegisterTrustedKey ¶
func (siw *ServerInterfaceWrapper) RegisterTrustedKey(w http.ResponseWriter, r *http.Request)
RegisterTrustedKey operation middleware
func (*ServerInterfaceWrapper) ResetTechnicalUserSecret ¶
func (siw *ServerInterfaceWrapper) ResetTechnicalUserSecret(w http.ResponseWriter, r *http.Request)
ResetTechnicalUserSecret operation middleware
func (*ServerInterfaceWrapper) SearchEntities ¶
func (siw *ServerInterfaceWrapper) SearchEntities(w http.ResponseWriter, r *http.Request)
SearchEntities operation middleware
func (*ServerInterfaceWrapper) SearchEntityAuditEvents ¶
func (siw *ServerInterfaceWrapper) SearchEntityAuditEvents(w http.ResponseWriter, r *http.Request)
SearchEntityAuditEvents operation middleware
func (*ServerInterfaceWrapper) SetEntityModelChangeLevel ¶
func (siw *ServerInterfaceWrapper) SetEntityModelChangeLevel(w http.ResponseWriter, r *http.Request)
SetEntityModelChangeLevel operation middleware
func (*ServerInterfaceWrapper) SetEntityModelUniqueKeys ¶
func (siw *ServerInterfaceWrapper) SetEntityModelUniqueKeys(w http.ResponseWriter, r *http.Request)
SetEntityModelUniqueKeys operation middleware
func (*ServerInterfaceWrapper) SubmitAsyncSearchJob ¶
func (siw *ServerInterfaceWrapper) SubmitAsyncSearchJob(w http.ResponseWriter, r *http.Request)
SubmitAsyncSearchJob operation middleware
func (*ServerInterfaceWrapper) UnlockEntityModel ¶
func (siw *ServerInterfaceWrapper) UnlockEntityModel(w http.ResponseWriter, r *http.Request)
UnlockEntityModel operation middleware
func (*ServerInterfaceWrapper) UpdateCollection ¶
func (siw *ServerInterfaceWrapper) UpdateCollection(w http.ResponseWriter, r *http.Request)
UpdateCollection operation middleware
func (*ServerInterfaceWrapper) UpdateSingle ¶
func (siw *ServerInterfaceWrapper) UpdateSingle(w http.ResponseWriter, r *http.Request)
UpdateSingle operation middleware
func (*ServerInterfaceWrapper) UpdateSingleWithLoopback ¶
func (siw *ServerInterfaceWrapper) UpdateSingleWithLoopback(w http.ResponseWriter, r *http.Request)
UpdateSingleWithLoopback operation middleware
func (*ServerInterfaceWrapper) ValidateEntityModel ¶
func (siw *ServerInterfaceWrapper) ValidateEntityModel(w http.ResponseWriter, r *http.Request)
ValidateEntityModel operation middleware
type ServiceUnavailable ¶
type ServiceUnavailable = ProblemDetail
ServiceUnavailable defines model for ServiceUnavailable.
type SetEntityModelChangeLevelParamsChangeLevel ¶
type SetEntityModelChangeLevelParamsChangeLevel string
SetEntityModelChangeLevelParamsChangeLevel defines parameters for SetEntityModelChangeLevel.
const ( ARRAYELEMENTS SetEntityModelChangeLevelParamsChangeLevel = "ARRAY_ELEMENTS" ARRAYLENGTH SetEntityModelChangeLevelParamsChangeLevel = "ARRAY_LENGTH" STRUCTURAL SetEntityModelChangeLevelParamsChangeLevel = "STRUCTURAL" TYPE SetEntityModelChangeLevelParamsChangeLevel = "TYPE" )
Defines values for SetEntityModelChangeLevelParamsChangeLevel.
func (SetEntityModelChangeLevelParamsChangeLevel) Valid ¶
func (e SetEntityModelChangeLevelParamsChangeLevel) Valid() bool
Valid indicates whether the value is a known member of the SetEntityModelChangeLevelParamsChangeLevel enum.
type SetEntityModelUniqueKeysJSONRequestBody ¶
type SetEntityModelUniqueKeysJSONRequestBody = SetUniqueKeysRequest
SetEntityModelUniqueKeysJSONRequestBody defines body for SetEntityModelUniqueKeys for application/json ContentType.
type SetUniqueKeysRequest ¶
type SetUniqueKeysRequest struct {
// UniqueKeys The model's composite unique keys. They replace the keys the model has; an empty array removes them all.
UniqueKeys []UniqueKeyDto `json:"uniqueKeys"`
}
SetUniqueKeysRequest defines model for SetUniqueKeysRequest.
type SingleDeleteResult ¶
type SingleDeleteResult struct {
Id openapi_types.UUID `json:"id"`
ModelKey EntityModelKey `json:"modelKey"`
TransactionId openapi_types.UUID `json:"transactionId"`
}
SingleDeleteResult defines model for SingleDeleteResult.
type StateDefinitionDto ¶
type StateDefinitionDto struct {
// Annotations Client-owned metadata attached to a workflow element, stored and round-tripped verbatim and never interpreted by the engine. The engine validates only that the value is a JSON object of at most 64 KB (compacted); it does not enforce the types of the well-known keys below, which are a documented convention for renderers. Additional client keys are permitted.
Annotations *WorkflowElementAnnotations `json:"annotations,omitempty"`
// Transitions List of possible transitions from this state
Transitions *[]TransitionDefinitionDto `json:"transitions,omitempty"`
}
StateDefinitionDto defines model for StateDefinitionDto.
type StateMachineAuditEventDto ¶
type StateMachineAuditEventDto struct {
// Actor Actor related to this event
Actor *AuditActorInfoDto `json:"actor,omitempty"`
AuditEventType string `json:"auditEventType"`
// ConsistencyTime Cyoda consistency time
ConsistencyTime *time.Time `json:"consistencyTime,omitempty"`
// Data The event's data. The server always sends it, never null. Its `eventType` repeats the outer `eventType` and selects the schema: each event type's schema states its fields and when an optional field is present. A field is present only when the server knows its value. It is not a required property so that a client can read an event of a type it does not know: the client reads that event's data as empty, and the outer `eventType` still names it.
Data *StateMachineEventDto `json:"data,omitempty"`
// Details Details of the event
Details *string `json:"details,omitempty"`
// EntityId Identifier of the entity related to this event
EntityId *openapi_types.UUID `json:"entityId,omitempty"`
// EntityModel Type of the entity related to this event (model.version)
EntityModel *string `json:"entityModel,omitempty"`
// EventId The event's identity: a time-based UUID the server assigned when it recorded the event. The same on every read.
EventId *openapi_types.UUID `json:"eventId,omitempty"`
// EventType Type of the state machine event. Its known values are the
// keys of the mapping of `StateMachineEventDto`, the schema of
// `data`. The set grows: a client accepts any other value.
EventType *string `json:"eventType,omitempty"`
// ExecutedBy The principal that executed the request, independent of the attributed principal. Present only when one was recorded.
ExecutedBy *AuditPrincipalDto `json:"executedBy,omitempty"`
// MicrosTime time in microseconds when the event occurred
MicrosTime int64 `json:"microsTime"`
// Severity Severity level of the event
Severity AuditEventSeverity `json:"severity"`
// State State of the entity where the event occurred within the state machine
State *string `json:"state,omitempty"`
// System Flag indicating whether this is a system-level event
System *bool `json:"system,omitempty"`
// TransactionId Transaction identifier related to this event
TransactionId *openapi_types.UUID `json:"transactionId,omitempty"`
// UtcTime UTC time when the event occurred
UtcTime time.Time `json:"utcTime"`
}
StateMachineAuditEventDto defines model for StateMachineAuditEventDto.
type StateMachineEventDto ¶
type StateMachineEventDto struct {
EventType string `json:"eventType"`
}
StateMachineEventDto The data of a state-machine audit event. `eventType` is the event's type, the same value as the outer event's `eventType`, and selects the schema of the rest of the object.
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct {
BaseURL string
BaseRouter ServeMux
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StreamDataDeleteResult ¶
type StreamDataDeleteResult struct {
IdToError *map[string]string `json:"idToError,omitempty"`
NumberOfEntitites *int32 `json:"numberOfEntitites,omitempty"`
NumberOfEntititesRemoved *int32 `json:"numberOfEntititesRemoved,omitempty"`
}
StreamDataDeleteResult defines model for StreamDataDeleteResult.
type StreamDeleteResult ¶
type StreamDeleteResult struct {
DeleteResult StreamDataDeleteResult `json:"deleteResult"`
EntityModelClassId openapi_types.UUID `json:"entityModelClassId"`
Ids *[]openapi_types.UUID `json:"ids,omitempty"`
}
StreamDeleteResult defines model for StreamDeleteResult.
type SubmitAsyncSearchJobJSONRequestBody ¶
type SubmitAsyncSearchJobJSONRequestBody = QueryConditionDto
SubmitAsyncSearchJobJSONRequestBody defines body for SubmitAsyncSearchJob for application/json ContentType.
type SubmitAsyncSearchJobParams ¶
type SubmitAsyncSearchJobParams struct {
// PointInTime The point-in-time for the report, in RFC 3339 format (e.g., '2026-01-01T12:00:00Z'). Absent: the consistency time at submission. Must be at or before the consistency time (GET /entity/consistency-time); a later instant is refused with 400 POINT_IN_TIME_AFTER_CONSISTENCY_TIME.
PointInTime *time.Time `form:"pointInTime,omitempty" json:"pointInTime,omitempty"`
// Sort Repeatable sort key. Grammar: [@]path[:asc|desc], direction defaults to asc. A bare path sorts by a scalar entity-data field; a leading '@' selects a meta field (state, creationDate, lastUpdateTime, transitionForLatestSave, transactionId, id). Repetition order is sort precedence; entity id is the final tiebreaker. Absent/null values sort last.
Sort *[]string `form:"sort,omitempty" json:"sort,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
SubmitAsyncSearchJobParams defines parameters for SubmitAsyncSearchJob.
type SubscriptionDto ¶
type SubscriptionDto struct {
// Id Unique identifier for the subscription
Id string `json:"id"`
// LegalEntityId Identifier for the associated legal entity
LegalEntityId string `json:"legalEntityId"`
Limits []SubscriptionLimitDto `json:"limits"`
// PeriodFrom Start period of the subscription
PeriodFrom time.Time `json:"periodFrom"`
// PeriodTo End period of the subscription
PeriodTo *time.Time `json:"periodTo,omitempty"`
// Status Current status of the subscription
Status string `json:"status"`
// TierName Name of the subscription tier
TierName string `json:"tierName"`
}
SubscriptionDto defines model for SubscriptionDto.
type SubscriptionLimitDto ¶
type SubscriptionLimitDto struct {
// Cumulative Whether the limit is cumulative
Cumulative bool `json:"cumulative"`
// EntitlementId Unique identifier for the entitlement
EntitlementId string `json:"entitlementId"`
// Limit The limit for this entitlement
Limit int64 `json:"limit"`
// TimeIntervalBound The time interval bound for the entitlement
TimeIntervalBound *SubscriptionLimitDtoTimeIntervalBound `json:"timeIntervalBound,omitempty"`
}
SubscriptionLimitDto defines model for SubscriptionLimitDto.
type SubscriptionLimitDtoTimeIntervalBound ¶
type SubscriptionLimitDtoTimeIntervalBound string
SubscriptionLimitDtoTimeIntervalBound The time interval bound for the entitlement
const ( DAYS SubscriptionLimitDtoTimeIntervalBound = "DAYS" HOURS SubscriptionLimitDtoTimeIntervalBound = "HOURS" MINUTES SubscriptionLimitDtoTimeIntervalBound = "MINUTES" SECONDS SubscriptionLimitDtoTimeIntervalBound = "SECONDS" )
Defines values for SubscriptionLimitDtoTimeIntervalBound.
func (SubscriptionLimitDtoTimeIntervalBound) Valid ¶
func (e SubscriptionLimitDtoTimeIntervalBound) Valid() bool
Valid indicates whether the value is a known member of the SubscriptionLimitDtoTimeIntervalBound enum.
type SubscriptionsResponseDto ¶
type SubscriptionsResponseDto struct {
Subscriptions []SubscriptionDto `json:"subscriptions"`
}
SubscriptionsResponseDto defines model for SubscriptionsResponseDto.
type TechnicalUserCredentialsDto ¶
type TechnicalUserCredentialsDto struct {
// ClientId Chosen by the caller (query parameter clientId) or generated: 16 characters from 0-9 and A-V. Letters, digits, '.', '_' and '-', starting with a letter or digit; case significant; 'system' in any letter case is reserved.
ClientId string `json:"client_id"`
// ClientSecret The client secret for authentication, 64 lower-case hex characters. Returned only by this response; store it at once.
ClientSecret string `json:"client_secret"`
// ClientSecretExpiresAt Time at which the client secret will expire, as the number of seconds from 1970-01-01T00:00:00Z (Unix epoch), or 0 if it will not expire. Per RFC 7591 Section 3.2.1, this field is required when a client_secret is issued.
ClientSecretExpiresAt int64 `json:"client_secret_expires_at"`
// GrantType The OAuth2 grant type this client uses: `client_credentials`, or the token-exchange URN for an on-behalf-of client (`onBehalfOf: true`).
GrantType TechnicalUserCredentialsDtoGrantType `json:"grant_type"`
// OnBehalfOf Whether this is an on-behalf-of (OBO) client: it may only perform token exchanges, never `client_credentials`. Set at creation and immutable.
OnBehalfOf bool `json:"onBehalfOf"`
// Roles The roles assigned to the M2M client
Roles []string `json:"roles"`
}
TechnicalUserCredentialsDto defines model for TechnicalUserCredentialsDto.
type TechnicalUserCredentialsDtoGrantType ¶
type TechnicalUserCredentialsDtoGrantType string
TechnicalUserCredentialsDtoGrantType The OAuth2 grant type this client uses: `client_credentials`, or the token-exchange URN for an on-behalf-of client (`onBehalfOf: true`).
const ( TechnicalUserCredentialsDtoGrantTypeClientCredentials TechnicalUserCredentialsDtoGrantType = "client_credentials" TechnicalUserCredentialsDtoGrantTypeUrnIetfParamsOauthGrantTypeTokenExchange TechnicalUserCredentialsDtoGrantType = "urn:ietf:params:oauth:grant-type:token-exchange" )
Defines values for TechnicalUserCredentialsDtoGrantType.
func (TechnicalUserCredentialsDtoGrantType) Valid ¶
func (e TechnicalUserCredentialsDtoGrantType) Valid() bool
Valid indicates whether the value is a known member of the TechnicalUserCredentialsDtoGrantType enum.
type TechnicalUserDto ¶
type TechnicalUserDto struct {
// ClientId The client identifier for the M2M client. Letters, digits, '.', '_' and '-', starting with a letter or digit; case significant; 'system' in any letter case is reserved.
ClientId string `json:"clientId"`
// CreationDate The date and time when the M2M client was created
CreationDate time.Time `json:"creationDate"`
// LastUpdateDate The date and time when the M2M client was last updated
LastUpdateDate time.Time `json:"lastUpdateDate"`
// OnBehalfOf Whether this is an on-behalf-of (OBO) client: it may only perform token exchanges, never `client_credentials`. Set at creation and immutable.
OnBehalfOf bool `json:"onBehalfOf"`
// Roles The roles assigned to the M2M client
Roles []string `json:"roles"`
}
TechnicalUserDto defines model for TechnicalUserDto.
type TokenResponseDto ¶
type TokenResponseDto struct {
// AccessToken The JWT access token for API authentication, signed RS256 by one of cyoda's key pairs
AccessToken string `json:"access_token"`
// ExpiresIn The access token's remaining lifetime in seconds (its exp minus now), at most CYODA_JWT_EXPIRY_SECONDS, which is at most 3600. No refresh token is issued; request a new token before this runs out.
ExpiresIn int32 `json:"expires_in"`
// IssuedTokenType The type of the issued token (present only for token-exchange responses, per RFC 8693)
IssuedTokenType *TokenResponseDtoIssuedTokenType `json:"issued_token_type,omitempty"`
// TokenType The type of token issued (currently always 'Bearer')
TokenType TokenResponseDtoTokenType `json:"token_type"`
}
TokenResponseDto defines model for TokenResponseDto.
type TokenResponseDtoIssuedTokenType ¶
type TokenResponseDtoIssuedTokenType string
TokenResponseDtoIssuedTokenType The type of the issued token (present only for token-exchange responses, per RFC 8693)
const (
TokenResponseDtoIssuedTokenTypeUrnIetfParamsOauthTokenTypeJwt TokenResponseDtoIssuedTokenType = "urn:ietf:params:oauth:token-type:jwt"
)
Defines values for TokenResponseDtoIssuedTokenType.
func (TokenResponseDtoIssuedTokenType) Valid ¶
func (e TokenResponseDtoIssuedTokenType) Valid() bool
Valid indicates whether the value is a known member of the TokenResponseDtoIssuedTokenType enum.
type TokenResponseDtoTokenType ¶
type TokenResponseDtoTokenType string
TokenResponseDtoTokenType The type of token issued (currently always 'Bearer')
const (
Bearer TokenResponseDtoTokenType = "Bearer"
)
Defines values for TokenResponseDtoTokenType.
func (TokenResponseDtoTokenType) Valid ¶
func (e TokenResponseDtoTokenType) Valid() bool
Valid indicates whether the value is a known member of the TokenResponseDtoTokenType enum.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type TransactionGone ¶
type TransactionGone = ProblemDetail
TransactionGone defines model for TransactionGone.
type TransactionNotFound ¶
type TransactionNotFound = ProblemDetail
TransactionNotFound defines model for TransactionNotFound.
type TransactionRollbackOnly ¶
type TransactionRollbackOnly = ProblemDetail
TransactionRollbackOnly defines model for TransactionRollbackOnly.
type TransitionDefinitionDto ¶
type TransitionDefinitionDto struct {
// Annotations Client-owned metadata attached to a workflow element, stored and round-tripped verbatim and never interpreted by the engine. The engine validates only that the value is a JSON object of at most 64 KB (compacted); it does not enforce the types of the well-known keys below, which are a documented convention for renderers. Additional client keys are permitted.
Annotations *WorkflowElementAnnotations `json:"annotations,omitempty"`
// Criterion Optional criterion the transition requires. Any condition is valid here, a `function` condition at any depth included.
Criterion *QueryConditionDto `json:"criterion,omitempty"`
// CriterionAnnotations Client-owned metadata attached to a workflow element, stored and round-tripped verbatim and never interpreted by the engine. The engine validates only that the value is a JSON object of at most 64 KB (compacted); it does not enforce the types of the well-known keys below, which are a documented convention for renderers. Additional client keys are permitted.
CriterionAnnotations *WorkflowElementAnnotations `json:"criterionAnnotations,omitempty"`
// Disabled Flag indicating if the transition is disabled
Disabled *bool `json:"disabled,omitempty"`
// Manual Whether the engine fires this transition on its own: `false` means the engine evaluates it after every write (unless it has a `schedule`, which fires it instead), `true` means it fires only when a client names it on a save. A client can name any transition that is not disabled and has no `schedule`, whatever its `manual`. Required, with no default; an import whose transition omits it or sends `null` is rejected with 400 VALIDATION_FAILED.
Manual bool `json:"manual"`
// Name Name of the transition
Name string `json:"name"`
// Next Target state code for this transition
Next string `json:"next"`
// Processors List of processors to execute for this transition
Processors *[]ProcessorDefinitionDto `json:"processors,omitempty"`
// Schedule Optional scheduling configuration. Presence marks the transition
// as scheduled — it fires automatically at a computed time (every
// node's claim loop claims due scheduled tasks and runs them) rather
// than by an API call or automated cascade. The firing time comes from either a
// static `delayMs` or a per-entity `function` callout — see
// `TransitionScheduleDto`. Mutually exclusive with `manual=true`.
// Explicit fires of a scheduled transition by name return HTTP 400
// `TRANSITION_NOT_FOUND` — it is not manually fireable. See
// `cyoda help workflows` (authoring) and `cyoda help config scheduler`
// (runtime tuning).
Schedule *TransitionScheduleDto `json:"schedule,omitempty"`
}
TransitionDefinitionDto defines model for TransitionDefinitionDto.
type TransitionNameList ¶
type TransitionNameList = []string
TransitionNameList An ordered list of workflow transition names available from the entity's current state. Each entry is the name of a configured transition (e.g. "APPROVE", "REJECT") or a virtual loopback transition name. An empty array means no transitions are available from the current state.
type TransitionScheduleDto ¶
type TransitionScheduleDto struct {
// DelayMs Delay between source-state entry and the scheduled execution
// time, in milliseconds. Must be a positive integer (zero or
// negative would make this a regular automated transition).
// Mutually exclusive with `function`.
DelayMs *int64 `json:"delayMs,omitempty"`
// Function Function callout that computes the firing time (and optional
// expiry) per entity, instead of a static `delayMs`. Mutually
// exclusive with `delayMs`.
Function *ScheduleFunctionDto `json:"function,omitempty"`
// TimeoutMs Late-tolerance window past the scheduled execution time, in
// milliseconds. When the scheduler picks the task up, if
// `(executionTime - scheduledTime) > timeoutMs` the task is
// dropped. Absent (omitted) means no timeout — the task fires
// whenever the scheduler eventually picks it up. Explicit zero
// is the strictest setting — drop on any lateness. Independent
// of `delayMs`; the two measure different quantities.
TimeoutMs *int64 `json:"timeoutMs,omitempty"`
}
TransitionScheduleDto Scheduling configuration for an automatic future state transition. Presence of this object marks the parent transition as scheduled, and is mutually exclusive with the parent transition's `manual=true`.
The firing time is set one of two mutually exclusive ways — exactly one is required (enforced server-side; not expressible in the OpenAPI schema):
- `delayMs` — a static delay: the transition fires at `scheduledTime = stateEntryTime + delayMs`.
- `function` — a per-entity Function callout that computes the firing time (and optionally an expiry) from the entity itself (see `ScheduleFunctionDto`).
Late-tolerance: when the scheduler picks a due task up at `executionTime`, if `executionTime - scheduledTime > timeoutMs` the task is dropped and the transition is NOT attempted. `timeoutMs` is set directly on a `delayMs` schedule, or derived from a `function` schedule's returned expiry; absent, the task always eventually fires.
The timer is armed on entry to the source state and re-armed by every write that leaves the entity in that state (the settled-interval semantic), atomically with the entity write — for a `function` schedule, each re-arm re-invokes the callout. Explicit fires of a scheduled transition by name are rejected with HTTP 400 `TRANSITION_NOT_FOUND` — it is not manually fireable. See `cyoda help workflows` for full authoring semantics (the `Schedule` result shape, born-expired, and fail-closed dispatch behaviour).
type TrustedKeyResponseDto ¶
type TrustedKeyResponseDto struct {
// Active Whether the key is active. False after invalidation; true after reactivation. It does not change when validTo passes, but a key outside its validFrom..validTo window verifies no assertion whatever this value says.
Active bool `json:"active"`
Issuers *[]string `json:"issuers,omitempty"`
// Jwk The registered public key in JWK format (RFC 7517): `kty`, `kid`, `n` and `e`, plus `alg` and `use` when they were registered. No other member is stored or returned.
Jwk map[string]interface{} `json:"jwk"`
// KeyId Key identifier, unique within the tenant
KeyId string `json:"keyId"`
// LegalEntityId The tenant this key is bound to
LegalEntityId string `json:"legalEntityId"`
// ValidFrom When this key became valid
ValidFrom time.Time `json:"validFrom"`
// ValidTo When this key expires. Every registration and reactivation sets it (registration defaults it to validFrom plus CYODA_IAM_TRUSTED_KEY_MAX_VALIDITY_DAYS days), so cyoda-go always returns it. Exchanges with the key fail once it passes; rotate before then.
ValidTo *time.Time `json:"validTo,omitempty"`
}
TrustedKeyResponseDto defines model for TrustedKeyResponseDto.
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UniqueKeyDto ¶
type UniqueKeyDto struct {
// Fields Ordered list of scalar leaf field paths.
Fields []string `json:"fields"`
// Id Unique identifier for this key definition.
Id string `json:"id"`
}
UniqueKeyDto A composite unique key definition over one or more scalar leaf fields.
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UpdateCollectionJSONBody ¶
type UpdateCollectionJSONBody = []struct {
// Id Entity UUID to update
Id openapi_types.UUID `json:"id"`
// IfMatch Optional cross-request optimistic-concurrency
// precondition — supply the entity's last-known
// `meta.transactionId` from a prior read. If the
// entity has been modified since, the item surfaces
// in the per-chunk `failed` array with
// `code=ENTITY_MODIFIED`; the chunk still commits
// its remaining successful items.
IfMatch *string `json:"ifMatch,omitempty"`
// Payload JSON-encoded entity body (a STRING, not a nested
// object). Same contract as collection-create.
Payload string `json:"payload"`
// Transition Optional named transition. Empty/absent means
// loopback update.
Transition *string `json:"transition,omitempty"`
}
UpdateCollectionJSONBody defines parameters for UpdateCollection.
type UpdateCollectionJSONRequestBody ¶
type UpdateCollectionJSONRequestBody = UpdateCollectionJSONBody
UpdateCollectionJSONRequestBody defines body for UpdateCollection for application/json ContentType.
type UpdateCollectionParams ¶
type UpdateCollectionParams struct {
// TransactionWindow Maximum number of entities per transactional batch. Default 100,
// maximum 1000; values outside (0, 1000] are rejected with 400
// BAD_REQUEST. Collections exceeding the window are split into
// multiple transactional batches committed sequentially. The
// response is an array with one element per chunk in commit order;
// chunks committed before any later failure remain durable.
// A request that joins an open transaction (it carries an
// `X-Tx-Token`) commits nothing itself, so it is never split: an
// explicit transactionWindow is rejected with 400 BAD_REQUEST, and
// without one the collection runs as one unit, so a failure in any
// item fails the request.
TransactionWindow *int32 `form:"transactionWindow,omitempty" json:"transactionWindow,omitempty"`
// TransactionTimeoutMillis Maximum time in milliseconds the server may spend before the
// first commit. When exceeded, the operation is rolled back and
// fails with 408 TRANSACTION_TIMEOUT; nothing is committed. Not
// supported on requests joining an open transaction (400). Absent
// means no server-side timeout.
TransactionTimeoutMillis *int64 `form:"transactionTimeoutMillis,omitempty" json:"transactionTimeoutMillis,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
UpdateCollectionParams defines parameters for UpdateCollection.
type UpdateCollectionParamsFormat ¶
type UpdateCollectionParamsFormat string
UpdateCollectionParamsFormat defines parameters for UpdateCollection.
const ( UpdateCollectionParamsFormatJSON UpdateCollectionParamsFormat = "JSON" UpdateCollectionParamsFormatXML UpdateCollectionParamsFormat = "XML" )
Defines values for UpdateCollectionParamsFormat.
func (UpdateCollectionParamsFormat) Valid ¶
func (e UpdateCollectionParamsFormat) Valid() bool
Valid indicates whether the value is a known member of the UpdateCollectionParamsFormat enum.
type UpdateSingleJSONBody ¶
type UpdateSingleJSONBody = map[string]interface{}
UpdateSingleJSONBody defines parameters for UpdateSingle.
type UpdateSingleJSONRequestBody ¶
type UpdateSingleJSONRequestBody = UpdateSingleJSONBody
UpdateSingleJSONRequestBody defines body for UpdateSingle for application/json ContentType.
type UpdateSingleParams ¶
type UpdateSingleParams struct {
// TransactionTimeoutMillis Maximum time in milliseconds the server may spend before the
// first commit. When exceeded, the operation is rolled back and
// fails with 408 TRANSACTION_TIMEOUT; nothing is committed. Not
// supported on requests joining an open transaction (400). Absent
// means no server-side timeout.
TransactionTimeoutMillis *int64 `form:"transactionTimeoutMillis,omitempty" json:"transactionTimeoutMillis,omitempty"`
// IfMatch Transaction ID of the entity version the client last read. If the entity has been modified since, returns 412 Precondition Failed.
IfMatch *string `json:"If-Match,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
UpdateSingleParams defines parameters for UpdateSingle.
type UpdateSingleParamsFormat ¶
type UpdateSingleParamsFormat string
UpdateSingleParamsFormat defines parameters for UpdateSingle.
const ( UpdateSingleParamsFormatJSON UpdateSingleParamsFormat = "JSON" UpdateSingleParamsFormatXML UpdateSingleParamsFormat = "XML" )
Defines values for UpdateSingleParamsFormat.
func (UpdateSingleParamsFormat) Valid ¶
func (e UpdateSingleParamsFormat) Valid() bool
Valid indicates whether the value is a known member of the UpdateSingleParamsFormat enum.
type UpdateSingleWithLoopbackJSONBody ¶
type UpdateSingleWithLoopbackJSONBody = map[string]interface{}
UpdateSingleWithLoopbackJSONBody defines parameters for UpdateSingleWithLoopback.
type UpdateSingleWithLoopbackJSONRequestBody ¶
type UpdateSingleWithLoopbackJSONRequestBody = UpdateSingleWithLoopbackJSONBody
UpdateSingleWithLoopbackJSONRequestBody defines body for UpdateSingleWithLoopback for application/json ContentType.
type UpdateSingleWithLoopbackParams ¶
type UpdateSingleWithLoopbackParams struct {
// TransactionTimeoutMillis Maximum time in milliseconds the server may spend before the
// first commit. When exceeded, the operation is rolled back and
// fails with 408 TRANSACTION_TIMEOUT; nothing is committed. Not
// supported on requests joining an open transaction (400). Absent
// means no server-side timeout.
TransactionTimeoutMillis *int64 `form:"transactionTimeoutMillis,omitempty" json:"transactionTimeoutMillis,omitempty"`
// IfMatch Transaction ID of the entity version the client last read. If the entity has been modified since, returns 412 Precondition Failed.
IfMatch *string `json:"If-Match,omitempty"`
// XTxToken Transaction routing token. A processor, criterion or function callout receives one with its request (gRPC metadata key `tx-token`, CloudEvent extension attribute `cyodatxtoken`); echoing it here runs this request inside the open transaction the token names, so the request sees what that transaction has written so far and its own writes commit with it. Before the callout (other than a `COMMIT_BEFORE_DISPATCH` processor's, whose first segment has just committed the entity), the engine reads the entity the callout runs for in that open transaction and writes it there (not committed) when a read of it in the transaction finds nothing (a create) or the stored data or state differ from the engine's copy. The write commits or rolls back with the transaction, and a later write of the entity in the same transaction replaces it, so the transaction records one version of the entity. A read of the entity under the token therefore returns it as the workflow has it: found on a create, with the changes earlier processors returned, in the transition's source state while its processors run. A callout never writes or deletes the entity it runs for; a processor changes it only through the data it returns (see `cyoda help workflows`).
//
// Optional. A request without the header opens its own transaction, as any other client request does.
//
// The token is checked before the operation runs: one that is malformed or not signed by this cluster is refused 401, one naming another tenant's transaction 403, one whose transaction is no longer open 404, and one that has expired or whose callout has been handed to another compute member 410. A joined request that exceeds the join layer's size ceilings is refused 413. A joined write whose workflow reaches a COMMIT_BEFORE_DISPATCH processor is refused 409 COMMIT_IN_JOINED_TRANSACTION before the transaction is flushed or committed and before the processor is dispatched: only the operation that began a transaction commits it.
//
// Declared on the operations a callout calls back into. It is not declared on the entity-model and workflow operations, because changing a model or a workflow from inside a callout is not supported, nor on the administrative OAuth, client and account operations.
XTxToken *TxToken `json:"X-Tx-Token,omitempty"`
}
UpdateSingleWithLoopbackParams defines parameters for UpdateSingleWithLoopback.
type UpdateSingleWithLoopbackParamsFormat ¶
type UpdateSingleWithLoopbackParamsFormat string
UpdateSingleWithLoopbackParamsFormat defines parameters for UpdateSingleWithLoopback.
const ( UpdateSingleWithLoopbackParamsFormatJSON UpdateSingleWithLoopbackParamsFormat = "JSON" UpdateSingleWithLoopbackParamsFormatXML UpdateSingleWithLoopbackParamsFormat = "XML" )
Defines values for UpdateSingleWithLoopbackParamsFormat.
func (UpdateSingleWithLoopbackParamsFormat) Valid ¶
func (e UpdateSingleWithLoopbackParamsFormat) Valid() bool
Valid indicates whether the value is a known member of the UpdateSingleWithLoopbackParamsFormat enum.
type UserAccountInfoDto ¶
type UserAccountInfoDto struct {
CurrentSubscription *SubscriptionDto `json:"currentSubscription,omitempty"`
LegalEntity LegalEntityInfoDto `json:"legalEntity"`
Roles []UserRoleDto `json:"roles"`
// UserId Unique identifier for the user
UserId string `json:"userId"`
// UserName The name of the user
UserName string `json:"userName"`
}
UserAccountInfoDto defines model for UserAccountInfoDto.
type UserAccountInfoResponseDto ¶
type UserAccountInfoResponseDto struct {
// FeatureToggles A map of feature toggles with their values
FeatureToggles *map[string]bool `json:"featureToggles,omitempty"`
UserAccountInfo UserAccountInfoDto `json:"userAccountInfo"`
}
UserAccountInfoResponseDto defines model for UserAccountInfoResponseDto.
type UserRoleDto ¶
type UserRoleDto struct {
// Desc Role description
Desc *string `json:"desc,omitempty"`
// Id Identifier for the role
Id string `json:"id"`
}
UserRoleDto defines model for UserRoleDto.
type ValidateEntityModelJSONBody ¶
type ValidateEntityModelJSONBody = map[string]interface{}
ValidateEntityModelJSONBody defines parameters for ValidateEntityModel.
type ValidateEntityModelJSONRequestBody ¶
type ValidateEntityModelJSONRequestBody = ValidateEntityModelJSONBody
ValidateEntityModelJSONRequestBody defines body for ValidateEntityModel for application/json ContentType.
type WorkflowConfigurationDto ¶
type WorkflowConfigurationDto struct {
// Active Flag indicating if the workflow is active
Active *bool `json:"active,omitempty"`
// Annotations Client-owned metadata attached to a workflow element, stored and round-tripped verbatim and never interpreted by the engine. The engine validates only that the value is a JSON object of at most 64 KB (compacted); it does not enforce the types of the well-known keys below, which are a documented convention for renderers. Additional client keys are permitted.
Annotations *WorkflowElementAnnotations `json:"annotations,omitempty"`
// Criterion Optional selection criterion evaluated against the entity to
// decide which of several workflows applies. When a model has
// multiple workflow definitions, the engine iterates them in
// declaration order and picks the first one whose `active` flag
// is true AND whose `criterion` matches the entity. A `null`
// (absent) criterion matches unconditionally. If no active
// workflow matches — and `active=false` workflows are skipped
// entirely during selection — the engine falls back to the
// embedded default workflow and emits both a warning (in a
// `Cyoda-Warning` header of an HTTP response and in the `warnings`
// of a gRPC response) and an operator-visible `slog.Warn` line. Workflow-level criteria
// use the same Condition DSL as search and transition-level
// criteria, and a `function` condition is valid at any depth.
Criterion *QueryConditionDto `json:"criterion,omitempty"`
// CriterionAnnotations Client-owned metadata attached to a workflow element, stored and round-tripped verbatim and never interpreted by the engine. The engine validates only that the value is a JSON object of at most 64 KB (compacted); it does not enforce the types of the well-known keys below, which are a documented convention for renderers. Additional client keys are permitted.
CriterionAnnotations *WorkflowElementAnnotations `json:"criterionAnnotations,omitempty"`
// Desc Description of the workflow
Desc *string `json:"desc,omitempty"`
// InitialState Initial state for entities in this workflow
InitialState string `json:"initialState"`
// Name Name of the workflow
Name string `json:"name"`
// States Map of state codes to state definitions
States map[string]StateDefinitionDto `json:"states"`
// Version Workflow-import contract version in semver MAJOR.MINOR form
// (e.g. `1.1` on cyoda-go v0.8.0). Identifies the wire-format
// contract this workflow was authored against; independent of
// the cyoda-go binary version and the OpenAPI document version.
// The server validates this strictly and rejects unsupported
// values with `WORKFLOW_SCHEMA_VERSION_UNSUPPORTED` (400). The
// authoritative list of supported values is published at
// `GET /help/workflows/schema-version/versions` (and the
// equivalent CLI `cyoda help workflows schema-version
// versions`).
Version string `json:"version"`
}
WorkflowConfigurationDto defines model for WorkflowConfigurationDto.
type WorkflowElementAnnotations ¶
type WorkflowElementAnnotations struct {
// Description Advisory human-readable description for renderers (not enforced).
Description *string `json:"description,omitempty"`
// DisplayName Advisory human-readable label for renderers (not enforced).
DisplayName *string `json:"displayName,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
WorkflowElementAnnotations Client-owned metadata attached to a workflow element, stored and round-tripped verbatim and never interpreted by the engine. The engine validates only that the value is a JSON object of at most 64 KB (compacted); it does not enforce the types of the well-known keys below, which are a documented convention for renderers. Additional client keys are permitted.
func (WorkflowElementAnnotations) Get ¶
func (a WorkflowElementAnnotations) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for WorkflowElementAnnotations. Returns the specified element and whether it was found
func (WorkflowElementAnnotations) MarshalJSON ¶
func (a WorkflowElementAnnotations) MarshalJSON() ([]byte, error)
Override default JSON handling for WorkflowElementAnnotations to handle AdditionalProperties
func (*WorkflowElementAnnotations) Set ¶
func (a *WorkflowElementAnnotations) Set(fieldName string, value interface{})
Setter for additional properties for WorkflowElementAnnotations
func (*WorkflowElementAnnotations) UnmarshalJSON ¶
func (a *WorkflowElementAnnotations) UnmarshalJSON(b []byte) error
Override default JSON handling for WorkflowElementAnnotations to handle AdditionalProperties
type WorkflowExportResponseDto ¶
type WorkflowExportResponseDto struct {
// EntityName The name of the entity model
EntityName string `json:"entityName"`
// ModelVersion The version number of the entity model
ModelVersion int32 `json:"modelVersion"`
// Workflows Collection of workflow configurations for the entity model
Workflows []WorkflowConfigurationDto `json:"workflows"`
}
WorkflowExportResponseDto defines model for WorkflowExportResponseDto.
type WorkflowImportRequestDto ¶
type WorkflowImportRequestDto struct {
// AllowCycles When true, bypasses the import-time check that rejects workflows
// containing unguarded automated cycles (transitions with manual=false
// and no criterion that form a closed loop). The runtime cascade
// safety net — per-state visit cap and total cascade depth limit —
// remains in effect and catches actual runaway at fire time. Use
// when the cyclicity is intentional, e.g. polling patterns built on
// scheduled transitions. Default false preserves the pre-existing
// rejection behaviour exactly.
AllowCycles *bool `json:"allowCycles,omitempty"`
// ImportMode Import mode for handling existing workflows. Defaults to MERGE
// when the field is omitted or empty. Parsing is case-insensitive:
// "merge", "Merge", and "MERGE" are all accepted. Any value outside
// the documented enum (after case-folding) is rejected with
// 400 BAD_REQUEST.
ImportMode *WorkflowImportRequestDtoImportMode `json:"importMode,omitempty"`
// Workflows Array of workflow configurations to import
Workflows []WorkflowConfigurationDto `json:"workflows"`
}
WorkflowImportRequestDto Workflow configurations to import
type WorkflowImportRequestDtoImportMode ¶
type WorkflowImportRequestDtoImportMode string
WorkflowImportRequestDtoImportMode Import mode for handling existing workflows. Defaults to MERGE when the field is omitted or empty. Parsing is case-insensitive: "merge", "Merge", and "MERGE" are all accepted. Any value outside the documented enum (after case-folding) is rejected with 400 BAD_REQUEST.
const ( ACTIVATE WorkflowImportRequestDtoImportMode = "ACTIVATE" MERGE WorkflowImportRequestDtoImportMode = "MERGE" REPLACE WorkflowImportRequestDtoImportMode = "REPLACE" )
Defines values for WorkflowImportRequestDtoImportMode.
func (WorkflowImportRequestDtoImportMode) Valid ¶
func (e WorkflowImportRequestDtoImportMode) Valid() bool
Valid indicates whether the value is a known member of the WorkflowImportRequestDtoImportMode enum.
type WorkflowImportSuccessDto ¶
type WorkflowImportSuccessDto struct {
// Success Always true on a successful import.
Success bool `json:"success"`
}
WorkflowImportSuccessDto Confirmation returned when a workflow import completes successfully.
Directories
¶
| Path | Synopsis |
|---|---|
|
grpc
|
|
|
authctx
Package authctx lets compute-node authors read the CloudEvents AuthContext extension that cyoda-go attaches to callout events (see internal/grpc/cloudevent.go AttachAuthContext) and apply a fail-closed role gate.
|
Package authctx lets compute-node authors read the CloudEvents AuthContext extension that cyoda-go attaches to callout events (see internal/grpc/cloudevent.go AttachAuthContext) and apply a fail-closed role gate. |