Skip to content
LogoLogo

Experience schema

See Management API schema for every domain, the endpoint and authentication.

Queries

experience

Reads an experience. Scope: ORGANIZATION_WORKSPACE_READ.

experience(id: ID!, workspaceId: ID!): Experience @auth

experiences

Lists the experiences in a workspace. search matches a case-insensitive substring of the name; status keeps only the ACTIVE or the DRAFT experiences; sortKey and reverse set the order. Scope: ORGANIZATION_WORKSPACE_READ.

experiences(
  workspaceId: ID!
  """Only experiences of this kind. Null lists every kind."""
  type: ExperienceType
  status: ExperienceStatus
  first: Int
  after: String
  last: Int
  before: String
  search: String
  sortKey: ExperienceSortKeys = NAME
  reverse: Boolean = false
): ExperienceConnection! @auth

Mutations

experienceCreate

Creates an experience in a workspace. A PAGE experience gets its single step and flow graph automatically. Scope: ORGANIZATION_WORKSPACE_UPDATE.

experienceCreate(input: ExperienceCreateInput!): ExperienceCreatePayload! @auth

experienceUpdate

Updates an experience's settings. experienceFlowUpdate changes its flow graph. Scope: ORGANIZATION_WORKSPACE_UPDATE.

experienceUpdate(input: ExperienceUpdateInput!): ExperienceUpdatePayload! @auth

experienceDelete

Deletes an experience. Its steps, conditions and actions stay in the workspace. Scope: ORGANIZATION_WORKSPACE_UPDATE.

experienceDelete(input: ExperienceDeleteInput!): ExperienceDeletePayload! @auth

experienceFlowUpdate

Updates an experience's settings and flow graph, with the steps, conditions, actions and fields it uses, in one call. Validation runs before any write, and a change that fails it fails the whole call. Scope: ORGANIZATION_WORKSPACE_UPDATE.

experienceFlowUpdate(input: ExperienceFlowUpdateInput!): ExperienceFlowUpdatePayload! @auth

Types

ExperienceNodeType

"""The kinds of node in a flow graph."""
enum ExperienceNodeType {
  """The node where every flow starts. One per experience."""
  ORIGIN
  """A node that shows a step."""
  STEP
  """A node that branches on a condition."""
  CONDITION
  """A node that starts an action."""
  ACTION
  """A node that launches another experience."""
  EXPERIENCE
}

ExperienceEdgeHandle

"""The branch of a condition node that an edge leaves from."""
enum ExperienceEdgeHandle {
  """The branch the flow takes when the condition is true."""
  TRUE
  """The branch the flow takes when the condition is false."""
  FALSE
}

ActionOutcome

"""The outcome of an action node that an edge leaves by."""
enum ActionOutcome {
  """The path the flow takes when the action succeeds."""
  SUCCESS
  """The path the flow takes when the action fails."""
  FAILURE
}

Position

"""A point on the flow canvas. It affects layout on the canvas only."""
type Position {
  """The horizontal coordinate. Can be negative."""
  x: Float!
  """The vertical coordinate. Can be negative."""
  y: Float!
}

PositionInput

"""A point on the flow canvas, as input."""
input PositionInput {
  """The horizontal coordinate."""
  x: Float!
  """The vertical coordinate."""
  y: Float!
}

ExperienceTargetPlacement

"""Where an experience renders relative to its target element."""
enum ExperienceTargetPlacement {
  """In place of the target."""
  REPLACE
  """Inside the target, after its children."""
  APPEND
  """Inside the target, before its children."""
  PREPEND
  """Before the target, as a sibling."""
  BEFORE
  """After the target, as a sibling."""
  AFTER
}

ExperienceTarget

"""
An element an experience renders against, and where it renders relative to it.
"""
type ExperienceTarget {
  """The CSS selector that finds the target element."""
  selector: String!
  """Where the experience renders relative to the target element."""
  placement: ExperienceTargetPlacement!
}

ExperienceTargetInput

"""An element an experience renders against, as input."""
input ExperienceTargetInput {
  """The CSS selector that finds the target element."""
  selector: String!
  """Where the experience renders relative to the target element."""
  placement: ExperienceTargetPlacement!
}

ExperienceType

"""The kinds of experience. Fixed when the experience is created."""
enum ExperienceType {
  """
  An interactive experience of one or more steps, driven by a flow graph.
  """
  FLOW
  """
  A standalone experience that your server renders from a content entry, with a single step.
  """
  PAGE
}

ExperienceStatus

"""
Whether visitors receive an experience. The status is part of the published snapshot, so a change
takes effect when the workspace is next published.
"""
enum ExperienceStatus {
  """Delivered to every request."""
  ACTIVE
  """
  Delivered only to a request carrying a valid preview token for the workspace. Left out of the
  published payload, with the steps, fields and actions only it uses.
  """
  DRAFT
}

Experience

"""
Personalised content that Picked serves to a visitor: a flow or a page.
"""
type Experience {
  """The ID of the experience."""
  id: ID!
  """The name of the experience."""
  name: String!
  """The elements the experience renders against."""
  targets: [ExperienceTarget!]!
  """The stable identifier of the experience, unique within its workspace."""
  key: String!
  """The kind of experience."""
  type: ExperienceType!
  """Whether visitors receive the experience."""
  status: ExperienceStatus!
  """
  The flow graph as stored JSON. `nodes` and `edges` carry the same graph, typed.
  """
  flowJson: JSON
  """
  A JSON Logic rule that decides whether the experience renders. Null when none is set.
  """
  condition: JSON
  """
  A JSON Logic rule that decides whether the experience starts open. Null when none is set.
  """
  initializeOpen: JSON
  """
  The component name that points the experience at a component in your application. Empty when none is set.
  """
  componentName: String!
  """The workspace the experience belongs to."""
  workspace: Workspace!
  """The nodes of the flow graph."""
  nodes: [ExperienceNode!]!
  """The edges of the flow graph."""
  edges: [ExperienceEdge!]!
  """The steps the flow's step nodes show."""
  steps: [Step!]!
  """The conditions the flow's condition nodes branch on."""
  conditions: [Condition!]!
  """The actions the flow's action nodes start."""
  actions: [Action!]!
  """When the experience was created."""
  createdAt: DateTime!
  """When the experience last changed."""
  updatedAt: DateTime!
}

ExperienceConnection

"""A page of experiences."""
type ExperienceConnection {
  """The edges in this page."""
  edges: [ExperienceConnectionEdge!]!
  """The experiences in this page."""
  nodes: [Experience!]!
  """Where this page sits in the list."""
  pageInfo: PageInfo!
  """The number of experiences across all pages, ignoring `search`."""
  totalCount: Int!
}

ExperienceConnectionEdge

"""An experience in a page of results."""
type ExperienceConnectionEdge {
  """The cursor of this edge."""
  cursor: String!
  """The experience."""
  node: Experience!
}

ExperienceNode

"""A node in an experience's flow graph. `__typename` names the kind."""
interface ExperienceNode {
  """The ID of the node, unique within the graph."""
  id: ID!
  """The kind of node."""
  type: ExperienceNodeType!
  """The position of the node on the canvas."""
  position: Position!
}

OriginNode

"""The node where every flow starts. One per experience."""
type OriginNode implements ExperienceNode {
  """The ID of the node, unique within the graph."""
  id: ID!
  """The kind of node."""
  type: ExperienceNodeType!
  """The position of the node on the canvas."""
  position: Position!
}

StepNode

"""A node that shows a step."""
type StepNode implements ExperienceNode {
  """The ID of the node, unique within the graph."""
  id: ID!
  """The kind of node."""
  type: ExperienceNodeType!
  """The position of the node on the canvas."""
  position: Position!
  """The step the node shows."""
  step: Step!
}

ConditionNode

"""
A node that branches on a condition. Its outgoing edges carry `sourceHandle` `TRUE` or `FALSE`.
"""
type ConditionNode implements ExperienceNode {
  """The ID of the node, unique within the graph."""
  id: ID!
  """The kind of node."""
  type: ExperienceNodeType!
  """The position of the node on the canvas."""
  position: Position!
  """The condition the node evaluates."""
  condition: Condition!
}

ActionNode

"""
A node that starts an action. Its outgoing edges are all plain, or each carries a different `actionOutcome`.
"""
type ActionNode implements ExperienceNode {
  """The ID of the node, unique within the graph."""
  id: ID!
  """The kind of node."""
  type: ExperienceNodeType!
  """The position of the node on the canvas."""
  position: Position!
  """The action the node starts."""
  action: Action!
}

LaunchExperienceNode

"""A node that launches another experience."""
type LaunchExperienceNode implements ExperienceNode {
  """The ID of the node, unique within the graph."""
  id: ID!
  """The kind of node."""
  type: ExperienceNodeType!
  """The position of the node on the canvas."""
  position: Position!
  """The experience the node launches."""
  targetExperience: Experience!
}

ExperienceEdge

"""A link between two nodes of a flow graph."""
type ExperienceEdge {
  """The ID of the edge, unique within the graph."""
  id: ID!
  """The node the edge leaves."""
  sourceNode: ExperienceNode!
  """The node the edge enters."""
  destinationNode: ExperienceNode!
  """The ID of the node the edge leaves."""
  sourceNodeId: ID!
  """The ID of the node the edge enters."""
  destinationNodeId: ID!
  """
  The branch the edge leaves a condition node from. Null when the source is not a condition node.
  """
  sourceHandle: ExperienceEdgeHandle
  """
  The action outcome the edge leaves an action node by. Null on a plain edge or one whose source is not an action node.
  """
  actionOutcome: ActionOutcome
}

ExperienceNodeInput

"""
A node of a flow graph, as input. Set only the reference that matches `type`.
"""
input ExperienceNodeInput {
  """The ID of the node, unique within the graph."""
  id: ID!
  """The kind of node."""
  type: ExperienceNodeType!
  """The position of the node on the canvas."""
  position: PositionInput!
  """The ID of the step a `STEP` node shows."""
  stepId: ID
  """The ID of the condition a `CONDITION` node evaluates."""
  conditionId: ID
  """The ID of the action an `ACTION` node starts."""
  actionId: ID
  """The ID of the experience an `EXPERIENCE` node launches."""
  targetExperienceId: ID
}

ExperienceEdgeInput

"""An edge of a flow graph, as input."""
input ExperienceEdgeInput {
  """The ID of the edge, unique within the graph."""
  id: ID!
  """The ID of the node the edge leaves."""
  sourceNodeId: ID!
  """The ID of the node the edge enters."""
  destinationNodeId: ID!
  """
  The branch the edge leaves a condition node from. Set only on an edge leaving a condition node.
  """
  sourceHandle: ExperienceEdgeHandle
  """
  The action outcome the edge leaves an action node by. Set only on an edge leaving an action node; omit for a plain edge.
  """
  actionOutcome: ActionOutcome
}

ExperienceCreateInput

"""The input of `experienceCreate`."""
input ExperienceCreateInput {
  """The ID of the workspace to create the experience in."""
  workspaceId: ID!
  """The name of the experience."""
  name: String!
  """
  The stable identifier of the experience, unique within the workspace. It cannot change later.
  """
  key: String!
  """The kind of experience. Defaults to `FLOW`."""
  type: ExperienceType
  """Whether visitors receive the experience. Defaults to `ACTIVE`."""
  status: ExperienceStatus
  """A JSON Logic rule that decides whether the experience renders."""
  condition: JSON
  """A JSON Logic rule that decides whether the experience starts open."""
  initializeOpen: JSON
  """
  The component name that points the experience at a component in your application.
  """
  componentName: String
  """The elements the experience renders against."""
  targets: [ExperienceTargetInput!]
  """
  The nodes of the flow graph. An origin node is added when none is given. Rejected for a `PAGE`.
  """
  nodes: [ExperienceNodeInput!]
  """The edges of the flow graph. Rejected for a `PAGE`."""
  edges: [ExperienceEdgeInput!]
}

ExperienceCreatePayload

"""The result of `experienceCreate`."""
type ExperienceCreatePayload {
  """The created experience."""
  experience: Experience
}

ExperienceUpdateInput

"""The input of `experienceUpdate`. Omit a field to keep its value."""
input ExperienceUpdateInput {
  """The ID of the experience."""
  id: ID!
  """The name of the experience."""
  name: String
  """Whether visitors receive the experience."""
  status: ExperienceStatus
  """A JSON Logic rule that decides whether the experience renders."""
  condition: JSON
  """A JSON Logic rule that decides whether the experience starts open."""
  initializeOpen: JSON
  """
  The component name that points the experience at a component in your application.
  """
  componentName: String
  """The elements the experience renders against."""
  targets: [ExperienceTargetInput!]
}

ExperienceUpdatePayload

"""The result of `experienceUpdate`."""
type ExperienceUpdatePayload {
  """The updated experience."""
  experience: Experience
}

ExperienceDeleteInput

"""The input of `experienceDelete`."""
input ExperienceDeleteInput {
  """The ID of the experience."""
  id: ID!
}

ExperienceDeletePayload

"""The result of `experienceDelete`."""
type ExperienceDeletePayload {
  """The ID of the deleted experience."""
  deletedExperienceId: ID
}

ExperienceFlowUpdateInput

"""The input of `experienceFlowUpdate`. Omit a field to keep its value."""
input ExperienceFlowUpdateInput {
  """The name of the experience."""
  name: String
  """Whether visitors receive the experience."""
  status: ExperienceStatus
  """A JSON Logic rule that decides whether the experience renders."""
  condition: JSON
  """A JSON Logic rule that decides whether the experience starts open."""
  initializeOpen: JSON
  """
  The component name that points the experience at a component in your application.
  """
  componentName: String
  """The elements the experience renders against."""
  targets: [ExperienceTargetInput!]
  """The ID of the experience."""
  experienceId: ID!
  """The changes to the flow and the items it uses."""
  changes: ExperienceFlowChangesInput!
  """Has no effect."""
  allowPartialSuccess: Boolean = false
}

ExperienceFlowChangesInput

"""The changes in an `experienceFlowUpdate`, by kind of item."""
input ExperienceFlowChangesInput {
  """The step changes."""
  steps: StepChangesInput
  """The condition changes."""
  conditions: ConditionChangesInput
  """The action changes."""
  actions: ActionChangesInput
  """The field changes."""
  fields: FieldChangesInput
  """The node changes."""
  nodes: ExperienceNodeChangesInput
  """The edge changes."""
  edges: ExperienceEdgeChangesInput
}

StepChangesInput

"""The step changes in an `experienceFlowUpdate`."""
input StepChangesInput {
  """The steps to create."""
  create: [StepCreateData!]
  """The steps to update."""
  update: [StepUpdateData!]
  """
  The IDs of steps that no node may reference after the save. The steps stay in the workspace.
  """
  delete: [ID!]
}

StepCreateData

"""A step to create in an `experienceFlowUpdate`."""
input StepCreateData {
  """
  A client-chosen ID that other changes in the same call use to refer to the step.
  """
  clientId: ID!
  """The name of the step."""
  name: String!
  """
  The stable identifier of the step, unique within the workspace. It cannot change later.
  """
  key: String!
  """A description of the step."""
  description: String
  """
  The layout name: the component that renders the step, such as `card` or `modal`.
  """
  layoutName: String
  """The IDs of existing fields to put on the step, in order."""
  fieldIds: [ID!]
  """Has no effect."""
  content: JSON
  """
  The ID of an existing step to use instead. `clientId` then maps to it, and nothing is written.
  """
  stepId: ID
}

StepUpdateData

"""
A step to update in an `experienceFlowUpdate`. Omit a field to keep its value.
"""
input StepUpdateData {
  """The ID of the step."""
  id: ID!
  """The name of the step."""
  name: String
  """A description of the step."""
  description: String
  """The layout name: the component that renders the step."""
  layoutName: String
  """
  The IDs of the fields on the step, in order. Replaces the current list.
  """
  fieldIds: [ID!]
  """Has no effect."""
  content: JSON
}

ConditionChangesInput

"""The condition changes in an `experienceFlowUpdate`."""
input ConditionChangesInput {
  """The conditions to create."""
  create: [ConditionCreateData!]
  """The conditions to update."""
  update: [ConditionUpdateData!]
  """
  The IDs of conditions that no node may reference after the save. The conditions stay in the workspace.
  """
  delete: [ID!]
}

ConditionCreateData

"""A condition to create in an `experienceFlowUpdate`."""
input ConditionCreateData {
  """
  A client-chosen ID that other changes in the same call use to refer to the condition.
  """
  clientId: ID!
  """The name of the condition."""
  name: String!
  """
  The stable identifier of the condition, unique within the workspace. It cannot change later.
  """
  key: String!
  """The rule, as a JSON Logic expression."""
  logic: JSON!
  """
  The ID of an existing condition to use instead. `clientId` then maps to it, and nothing is written.
  """
  conditionId: ID
}

ConditionUpdateData

"""
A condition to update in an `experienceFlowUpdate`. Omit a field to keep its value.
"""
input ConditionUpdateData {
  """The ID of the condition."""
  id: ID!
  """The name of the condition."""
  name: String
  """The rule, as a JSON Logic expression."""
  logic: JSON
}

ActionChangesInput

"""The action changes in an `experienceFlowUpdate`."""
input ActionChangesInput {
  """The actions to create."""
  create: [ActionCreateData!]
  """The actions to update."""
  update: [ActionUpdateData!]
  """
  The IDs of actions that no node may reference after the save. The actions stay in the workspace.
  """
  delete: [ID!]
}

ActionCreateData

"""An action to create in an `experienceFlowUpdate`."""
input ActionCreateData {
  """
  A client-chosen ID that other changes in the same call use to refer to the action.
  """
  clientId: ID!
  """The name of the action."""
  name: String!
  """
  The stable identifier of the action, unique within the workspace. It cannot change later.
  """
  key: String!
  """A description of the action."""
  description: String
  """
  The ID of an existing action to use instead. `clientId` then maps to it, and nothing is written.
  """
  actionId: ID
  """The ID of an existing field the action's resolved value is stored in."""
  successFieldId: ID
  """
  The ID of an existing field the action's failure, `{ code, message }`, is stored in.
  """
  failureFieldId: ID
}

ActionUpdateData

"""
An action to update in an `experienceFlowUpdate`. Omit a field to keep its value.
"""
input ActionUpdateData {
  """The ID of the action."""
  id: ID!
  """The name of the action."""
  name: String
  """A description of the action."""
  description: String
  """
  The IDs of the fields whose answers the action receives. Replaces the current set; an empty list clears it.
  """
  fieldIds: [ID!]
  """
  The ID of an existing field the action's resolved value is stored in. `null` clears it.
  """
  successFieldId: ID
  """
  The ID of an existing field the action's failure, `{ code, message }`, is stored in. `null` clears it.
  """
  failureFieldId: ID
}

FieldChangesInput

"""The field changes in an `experienceFlowUpdate`."""
input FieldChangesInput {
  """The fields to create."""
  create: [FieldCreateData!]
  """The fields to update."""
  update: [FieldUpdateData!]
  """Has no effect."""
  delete: [ID!]
}

FieldCreateData

"""A field to create in an `experienceFlowUpdate`."""
input FieldCreateData {
  """
  A client-chosen ID that other changes in the same call use to refer to the field.
  """
  clientId: ID!
  """
  The ID of an existing step to put the field on. Excludes `stepClientId`.
  """
  stepId: ID
  """
  The `clientId` of a step created in the same call to put the field on. Excludes `stepId`.
  """
  stepClientId: ID
  """The machine-readable name of the field."""
  name: String!
  """
  The stable identifier of the field, unique within the workspace. It cannot change later.
  """
  key: String!
  """The label shown next to the input."""
  label: String!
  """The kind of value the field captures."""
  type: FieldType!
  """Whether the field accepts more than one value."""
  multiple: Boolean
  """Whether the visitor must answer the field."""
  required: Boolean
  """The validation rules, as a JSON string."""
  validationString: String
  """The value the field starts with."""
  defaultValue: JSON
  """A JSON Logic rule that decides whether the field renders."""
  condition: JSON
  """The text shown in the empty input."""
  placeholder: String
  """A description shown with the label."""
  description: String
  """A hint shown below the field."""
  helpText: String
  """Whether the answer is left out of analytics. Defaults to `true`."""
  doNotTrack: Boolean
  """Whether the answer is left out of storage. Defaults to `true`."""
  doNotStore: Boolean
  """
  The ID of an existing field to use instead. `clientId` then maps to it, and nothing is written.
  """
  fieldId: ID
}

FieldUpdateData

"""
A field to update in an `experienceFlowUpdate`. Omit a field to keep its value. `type` is required.
"""
input FieldUpdateData {
  """The ID of the field."""
  id: ID!
  """The machine-readable name of the field."""
  name: String
  """The label shown next to the input."""
  label: String
  """
  The kind of value the field captures. Required: send the current type to keep it.
  """
  type: FieldType!
  """Whether the field accepts more than one value."""
  multiple: Boolean
  """Whether the visitor must answer the field."""
  required: Boolean
  """The validation rules, as a JSON string."""
  validationString: String
  """The value the field starts with."""
  defaultValue: JSON
  """A JSON Logic rule that decides whether the field renders."""
  condition: JSON
  """The text shown in the empty input."""
  placeholder: String
  """A description shown with the label."""
  description: String
  """A hint shown below the field."""
  helpText: String
  """Whether the answer is left out of analytics."""
  doNotTrack: Boolean
  """Whether the answer is left out of storage."""
  doNotStore: Boolean
  """The choices, as a JSON array."""
  options: JSON
}

ExperienceNodeChangesInput

"""The node changes in an `experienceFlowUpdate`."""
input ExperienceNodeChangesInput {
  """The nodes to create."""
  create: [ExperienceNodeCreateData!]
  """The nodes to update."""
  update: [ExperienceNodeUpdateData!]
  """The IDs of the nodes to delete."""
  delete: [ID!]
}

ExperienceNodeCreateData

"""
A node to create in an `experienceFlowUpdate`. Set only the reference that matches `type`: a step
for `STEP`, a condition for `CONDITION`, an action for `ACTION`, an experience for `EXPERIENCE`,
and none for `ORIGIN`.
"""
input ExperienceNodeCreateData {
  """
  A client-chosen ID that edges in the same call use to refer to the node.
  """
  clientId: ID!
  """The kind of node."""
  type: ExperienceNodeType!
  """The position of the node on the canvas."""
  position: PositionInput!
  """
  The ID of an existing step a `STEP` node shows. Excludes `stepClientId`.
  """
  stepId: ID
  """
  The `clientId` of a step created in the same call that a `STEP` node shows. Excludes `stepId`.
  """
  stepClientId: ID
  """
  The ID of an existing condition a `CONDITION` node evaluates. Excludes `conditionClientId`.
  """
  conditionId: ID
  """
  The `clientId` of a condition created in the same call that a `CONDITION` node evaluates. Excludes `conditionId`.
  """
  conditionClientId: ID
  """
  The ID of an existing action an `ACTION` node starts. Excludes `actionClientId`.
  """
  actionId: ID
  """
  The `clientId` of an action created in the same call that an `ACTION` node starts. Excludes `actionId`.
  """
  actionClientId: ID
  """The ID of the experience an `EXPERIENCE` node launches."""
  targetExperienceId: ID
}

ExperienceNodeUpdateData

"""
A node to update in an `experienceFlowUpdate`. Only its position changes.
"""
input ExperienceNodeUpdateData {
  """The ID of the node."""
  id: ID!
  """The position of the node on the canvas."""
  position: PositionInput!
  """Has no effect."""
  stepId: ID
  """Has no effect."""
  conditionId: ID
  """Has no effect."""
  actionId: ID
  """Has no effect."""
  targetExperienceId: ID
}

ExperienceEdgeChangesInput

"""The edge changes in an `experienceFlowUpdate`."""
input ExperienceEdgeChangesInput {
  """The edges to create."""
  create: [ExperienceEdgeCreateInput!]
  """The edges to update."""
  update: [ExperienceEdgeUpdateInput!]
  """The IDs of the edges to delete."""
  delete: [ID!]
}

ExperienceEdgeCreateInput

"""An edge to create in an `experienceFlowUpdate`."""
input ExperienceEdgeCreateInput {
  """A client-chosen ID for the edge."""
  clientId: ID!
  """
  The ID of an existing node the edge leaves. Excludes `sourceNodeClientId`.
  """
  sourceNodeId: ID
  """
  The `clientId` of a node created in the same call that the edge leaves. Excludes `sourceNodeId`.
  """
  sourceNodeClientId: ID
  """
  The ID of an existing node the edge enters. Excludes `destinationNodeClientId`.
  """
  destinationNodeId: ID
  """
  The `clientId` of a node created in the same call that the edge enters. Excludes `destinationNodeId`.
  """
  destinationNodeClientId: ID
  """
  The branch the edge leaves a condition node from. Set only on an edge leaving a condition node.
  """
  sourceHandle: ExperienceEdgeHandle
  """
  The action outcome the edge leaves an action node by. Set only on an edge leaving an action node; omit for a plain edge.
  """
  actionOutcome: ActionOutcome
}

ExperienceEdgeUpdateInput

"""
An edge to update in an `experienceFlowUpdate`. Omit a field to keep its value.
"""
input ExperienceEdgeUpdateInput {
  """The ID of the edge."""
  id: ID!
  """The ID of the node the edge leaves."""
  sourceNodeId: ID
  """The ID of the node the edge enters."""
  destinationNodeId: ID
  """
  The branch the edge leaves a condition node from. Set only on an edge leaving a condition node; null keeps the stored branch.
  """
  sourceHandle: ExperienceEdgeHandle
  """
  The action outcome the edge leaves an action node by. Set only on an edge leaving an action node; null makes it a plain edge.
  """
  actionOutcome: ActionOutcome
}

ExperienceFlowUpdatePayload

"""The result of `experienceFlowUpdate`."""
type ExperienceFlowUpdatePayload {
  """The experience with the changes applied."""
  experience: Experience
  """The server ID for each `clientId` in the input."""
  idMappings: ExperienceFlowIdMappings!
  """
  Always empty. A change that fails validation fails the whole operation with an error.
  """
  errors: [UserError!]!
}

ExperienceFlowIdMappings

"""
The server IDs that `experienceFlowUpdate` assigned to each `clientId`, by kind of item.
"""
type ExperienceFlowIdMappings {
  """The step IDs."""
  steps: [IdMapping!]!
  """The condition IDs."""
  conditions: [IdMapping!]!
  """The action IDs."""
  actions: [IdMapping!]!
  """The field IDs."""
  fields: [IdMapping!]!
  """The node IDs."""
  nodes: [IdMapping!]!
  """The edge IDs."""
  edges: [IdMapping!]!
}

IdMapping

"""
A client-chosen ID paired with the server ID of the item it stands for.
"""
type IdMapping {
  """The ID the client chose."""
  clientId: ID!
  """The server ID of the created or reused item."""
  id: ID!
}

ReferencingExperience

"""
An experience that references a workspace item and so blocks its delete.
"""
type ReferencingExperience {
  """The ID of the experience."""
  id: ID!
  """The name of the experience."""
  name: String!
}

ExperienceSortKeys

"""The orders `experiences` can sort by. `reverse: true` flips each."""
enum ExperienceSortKeys {
  """By name, A to Z."""
  NAME
  """By creation time, oldest first."""
  CREATED_AT
  """By last change, oldest first."""
  UPDATED_AT
}