Skip to main content
Version: v5.3

Types

Agent​

Represents a Agent

Type: Object

PropertyTypeDescription
_idStringThe id of the agent resource
_namespacesArray<String>Required, The namespace(s) of the resource.
_nameStringRequired, The agent name
_descriptionStringAgent's description
_backgroundStringRequired, The context for the agent
_userTypeStringRequired, unique identifier of the agent
_typeStringThe type of the agent, The backend will assign the value for this
_agentClassStringThe class name of the custom agent if it is implemented.
_promptTemplateStringOptional, the of a PromptTemplate to assign to this agent. The template acts as the agent's instruction and is parameterized at runtime.
_invocationMessageUNKNOWN: OptionalTypeOptional, a plain-text message that streaming conversations show when this agent starts working, delivered as an event right after . Maximum 500 characters, not counting leading and trailing whitespace. HTML tags and template expressions (, , ) are rejected with a 422. An empty string or means no message; to remove an existing message, send an empty string or , or leave the field out of .
_configAgentConfigRequired, defines the llm model.

AgentConfig​

Type: Object

PropertyTypeDescription
_modelStringLLM model, Exmaples gpt-4o, o4-mini
_providerStringLLM provider, Examples: openai, anthropic

AgentCriteria​

Agent criteria

Type: Object

PropertyTypeDescription
_userTypeStringFilter by _userType field
_typeStringThe valid values are user_agent or system_agent
queryStringWild card search that operates on the name, description and background, for example, ?query=anamoly

AisvcListOptions​

Use to set paging and sorting options when listing AiSvc resources.

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response
_sortByUNKNOWN: OptionalTypeSorts the results by creation or last-update time. Records without that timestamp are listed last. When omitted, the endpoint's default order is used: by name for agents, tools, teams, knowledge bases, MCP tools, MCP tool filters and external MCP server configs, and newest first for conversations. Passing any other value results in a 400 error.
_sortOrderUNKNOWN: OptionalTypeThe sort direction for ; defaults to (newest first). Only valid together with . Passing any other value, or passing it without , results in a 400 error.

AisvcOptions​

Use to set response options for AiSvc requests.

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response

AosvcAction​

An entity action bound to state transitions.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeAction id.
_ontologyIdUNKNOWN: OptionalTypeOntology id.
_nameUNKNOWN: OptionalTypeAction name.
_actionTypeUNKNOWN: OptionalTypeAction type.
_descriptionUNKNOWN: OptionalTypeDescription.
_paramsUNKNOWN: OptionalTypeAction parameters; the shape depends on _actionType.
_createdAtUNKNOWN: OptionalTypeCreation timestamp.
_updatedAtUNKNOWN: OptionalTypeLast update timestamp.
_createdByUNKNOWN: OptionalTypeCreating user id.
_updatedByUNKNOWN: OptionalTypeLast updating user id.

AosvcActionCreate​

Request body to create an action.

Type: Object

PropertyTypeDescription
_nameStringRequired. Action name.
_actionType(UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType)Required. Action type.
_descriptionUNKNOWN: OptionalTypeDescription.
_paramsUNKNOWN: OptionalTypeAction parameters; the shape depends on _actionType.

AosvcActionUpdate​

Request body to update an action.

Type: Object

PropertyTypeDescription
_nameUNKNOWN: OptionalTypeAction name.
_actionTypeUNKNOWN: OptionalTypeAction type.
_descriptionUNKNOWN: OptionalTypeDescription.
_paramsUNKNOWN: OptionalTypeAction parameters.

AosvcAddReadingsCriteria​

Criteria for appending telemetry readings.

Type: Object

PropertyTypeDescription
sourceIdUNKNOWN: OptionalTypeId of the source that produced the readings. Only used when adding readings to one individual.
transactionalUNKNOWN: OptionalTypePass true to apply the readings all-or-nothing. The service default is false.

AosvcAsyncTask​

The state of a queued aosvc task.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeTask id.
_reqBodySizeUNKNOWN: OptionalTypeSize of the request body in bytes.
_batchCompletedUNKNOWN: OptionalTypeBatches completed.
_statusUNKNOWN: OptionalTypeCREATED, RESET, QUEUED, RUNNING, COMPLETED or FAILED.
_detailedStatusUNKNOWN: OptionalTypeFailure reason or progress detail.
_timeTakenInMilliSecsUNKNOWN: OptionalTypeElapsed time.
_responseUNKNOWN: OptionalTypeThe handler outcome as { _body, _status, _statusMsg, _headers }. _body is JSON when it parses as JSON, otherwise a string.
_namespacesUNKNOWN: OptionalTypeNamespaces of the task.
_metadataUNKNOWN: OptionalTypeAudit metadata as { _createdAt, _createdById, _updatedAt, _updatedById }.

AosvcBaseOntologyVersion​

An available base ontology version.

Type: Object

PropertyTypeDescription
_versionUNKNOWN: OptionalTypeThe base ontology version.
_latestUNKNOWN: OptionalTypeTrue for the newest version.

AosvcCanonicalPromotion​

A canonical promotion history record.

Type: Object

PropertyTypeDescription
idUNKNOWN: OptionalTypeRecord id.
sourceOntologyIdUNKNOWN: OptionalTypeSource ontology id.
sourceRevisionUNKNOWN: OptionalTypeSource revision.
targetOntologyIdUNKNOWN: OptionalTypeTarget ontology id.
targetNamespaceUNKNOWN: OptionalTypeTarget namespace.
targetEnvironmentUNKNOWN: OptionalTypeTarget environment.
reasonUNKNOWN: OptionalTypeReason given.
actorUNKNOWN: OptionalTypeUser who promoted.
dryRunUNKNOWN: OptionalTypeTrue for a dry run.
statusUNKNOWN: OptionalTypePromotion status.
sourceContentHashUNKNOWN: OptionalTypeHash of the promoted content.
targetContentHashUNKNOWN: OptionalTypeHash of the target content after promotion.
targetRevisionUNKNOWN: OptionalTypeResulting target revision.
preflightUNKNOWN: OptionalTypePreflight validation result.
createdAtUNKNOWN: OptionalTypeCreation timestamp.

AosvcCanonicalPromotionRequest​

Request body to promote a canonical revision.

Type: Object

PropertyTypeDescription
reasonStringRequired. Why the promotion is made.
sourceRevisionUNKNOWN: OptionalTypeRevision to promote. Defaults to the current revision.
targetOntologyIdUNKNOWN: OptionalTypeOntology to promote into. Defaults to the source ontology.
targetNamespaceUNKNOWN: OptionalTypeNamespace to promote into. Defaults to the request namespace.
targetEnvironmentUNKNOWN: OptionalTypeTarget environment name. Defaults to "local".
dryRunUNKNOWN: OptionalTypeDefaults to true. Pass false to apply the promotion.

AosvcChangeSet​

An ordered set of schema operations applied atomically.

Type: Object

PropertyTypeDescription
operationsArray<AosvcChangeSetOperation>The ordered operations.

AosvcChangeSetOperation​

One operation of a change set.

Type: Object

PropertyTypeDescription
op(UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType)The operation.
collectionStringThe schema collection the operation targets.
idUNKNOWN: OptionalTypeId of the document. May be omitted when document._id is set.
documentUNKNOWN: OptionalTypeComplete replacement document for add and update operations.

AosvcCollectionMapping​

The ItemSvc collection a class is bound to.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeMapping id.
_classIdUNKNOWN: OptionalTypeClass id.
_collectionIdUNKNOWN: OptionalTypeItemSvc collection id.
_userTypeUNKNOWN: OptionalTypeItemSvc item _userType.
_createdAtUNKNOWN: OptionalTypeCreation timestamp.
_updatedAtUNKNOWN: OptionalTypeLast update timestamp.
_createdByUNKNOWN: OptionalTypeCreating user id.
_updatedByUNKNOWN: OptionalTypeLast updating user id.
_platformManagedUNKNOWN: OptionalTypeTrue for a mapping of the platform's built-in lifecycle classes, which cannot be rebound or removed.

AosvcCollectionMappingCreate​

Request body to bind a class to an ItemSvc collection.

Type: Object

PropertyTypeDescription
_collectionNameUNKNOWN: OptionalTypeName of a collection to create or reuse.
_collectionIdUNKNOWN: OptionalTypeId of an existing collection to bind.
_userTypeUNKNOWN: OptionalTypeItemSvc item _userType for the class.

AosvcConstraint​

A property constraint (shape) of an ontology.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeRecord id.
_ontologyIdUNKNOWN: OptionalTypeOntology id.
_constraintIdUNKNOWN: OptionalTypeConstraint id.
_targetClassUNKNOWN: OptionalTypeThe class the constraint applies to.
_constraintsJsonUNKNOWN: OptionalTypeConstraint definitions as a JSON string.
_descriptionUNKNOWN: OptionalTypeDescription.
_createdAtUNKNOWN: OptionalTypeCreation timestamp.
_updatedAtUNKNOWN: OptionalTypeLast update timestamp.
_createdByUNKNOWN: OptionalTypeCreating user id.
_updatedByUNKNOWN: OptionalTypeLast updating user id.

AosvcConstraintCreate​

Request body to create a property constraint.

Type: Object

PropertyTypeDescription
_constraintIdStringRequired. Constraint id.
_targetClassAosvcParentClassRequired. The class the constraint applies to.
_constraintsJsonStringRequired. Constraint definitions as a JSON string.
_descriptionUNKNOWN: OptionalTypeDescription.

AosvcConstraintUpdate​

Request body to update a property constraint.

Type: Object

PropertyTypeDescription
_targetClassUNKNOWN: OptionalTypeThe class the constraint applies to.
_constraintsJsonUNKNOWN: OptionalTypeConstraint definitions as a JSON string.
_descriptionUNKNOWN: OptionalTypeDescription.

AosvcConversationMessage​

A message of an AI conversation.

Type: Object

PropertyTypeDescription
_roleStringRequired. The message role, such as user or assistant.
_contentStringRequired. The message text.

AosvcCoreClass​

A core class of the base platform ontology.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeClass id.
_nameUNKNOWN: OptionalTypeClass name.
_descriptionUNKNOWN: OptionalTypeClass description.
_parentClassUNKNOWN: OptionalTypeParent class id.
_extendableUNKNOWN: OptionalTypeFalse for State, StateTransition, Event and Action, which cannot be subclassed.

AosvcDraftCreate​

Request body to create a draft.

Type: Object

PropertyTypeDescription
_baseVersionNumberUNKNOWN: OptionalTypeVersion to copy. Defaults to the live version.

AosvcEffectiveClassSchema​

The effective schema of a class, including inherited properties.

Type: Object

PropertyTypeDescription
_ontologyIdUNKNOWN: OptionalTypeOntology id.
_classIdUNKNOWN: OptionalTypeClass id.
_classNameUNKNOWN: OptionalTypeClass name.
_ancestorsUNKNOWN: OptionalTypeAncestor chain.
_propertiesUNKNOWN: OptionalTypeEffective properties.
_constraintsUNKNOWN: OptionalTypeEffective constraints.
_stateMachinesUNKNOWN: OptionalTypeEffective state machines.

AosvcEffectiveSchemaCriteria​

Criteria for getting the effective schema of a class.

Type: Object

PropertyTypeDescription
inheritedUNKNOWN: OptionalTypePass false to leave out properties inherited from ancestor classes. The service default is true.
baseVersionUNKNOWN: OptionalTypeBase ontology version to resolve against when the ontologyId is "base".

AosvcEntityClass​

An entity class of an ontology.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeClass id.
_ontologyIdUNKNOWN: OptionalTypeOwning ontology id.
_nameUNKNOWN: OptionalTypeClass name.
_descriptionUNKNOWN: OptionalTypeClass description.
_parentClassUNKNOWN: OptionalTypeThe parent class.
_pluralNameUNKNOWN: OptionalTypePlural display name.
_canvasXUNKNOWN: OptionalTypeX position on the model canvas.
_canvasYUNKNOWN: OptionalTypeY position on the model canvas.
_externalKeyFieldsUNKNOWN: OptionalTypeProperties that form the external key used by UPSERT imports.
_createdAtUNKNOWN: OptionalTypeCreation timestamp.
_updatedAtUNKNOWN: OptionalTypeLast update timestamp.
_createdByUNKNOWN: OptionalTypeCreating user id.
_updatedByUNKNOWN: OptionalTypeLast updating user id.
_platformManagedUNKNOWN: OptionalTypeTrue for the platform's built-in lifecycle classes (State, StateTransition, Event, Action), which cannot be edited, rebound or deleted.

AosvcEntityClassCreate​

Request body to create an entity class.

Type: Object

PropertyTypeDescription
_name(String | JSON)Required. Class name: plain string or locale map.
_parentClassAosvcParentClassRequired. The parent class; its _id may be a base class or another class of the ontology.
_descriptionUNKNOWN: OptionalTypeClass description: plain string or locale map.
_pluralNameUNKNOWN: OptionalTypePlural display name.
_canvasXUNKNOWN: OptionalTypeX position on the model canvas.
_canvasYUNKNOWN: OptionalTypeY position on the model canvas.
_externalKeyFieldsUNKNOWN: OptionalTypeProperties that form the external key used by UPSERT imports.

AosvcEntityClassUpdate​

Request body to update an entity class.

Type: Object

PropertyTypeDescription
_nameUNKNOWN: OptionalTypeClass name: plain string or locale map.
_descriptionUNKNOWN: OptionalTypeClass description: plain string or locale map.
_parentClassUNKNOWN: OptionalTypeThe parent class.
_pluralNameUNKNOWN: OptionalTypePlural display name.
_canvasXUNKNOWN: OptionalTypeX position on the model canvas.
_canvasYUNKNOWN: OptionalTypeY position on the model canvas.
_externalKeyFieldsUNKNOWN: OptionalTypeProperties that form the external key used by UPSERT imports.

AosvcEntityRelationship​

An object property relationship between two classes.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeRelationship id.
_ontologyIdUNKNOWN: OptionalTypeOntology id.
_sourceClassIdUNKNOWN: OptionalTypeSource class id.
_targetClassIdUNKNOWN: OptionalTypeTarget class id.
_typeUNKNOWN: OptionalTypeRelationship type name.
_descriptionUNKNOWN: OptionalTypeDescription.
_parameterMapJsonUNKNOWN: OptionalTypeRelationship parameters as a JSON string.
_createdAtUNKNOWN: OptionalTypeCreation timestamp.
_createdByUNKNOWN: OptionalTypeCreating user id.
_platformManagedUNKNOWN: OptionalTypeTrue for a relationship of the platform's built-in lifecycle classes, which cannot be edited or deleted.

AosvcEntityRelationshipCreate​

Request body to create or update an object property relationship.

Type: Object

PropertyTypeDescription
_sourceClassIdStringRequired. Source class id.
_targetClassIdStringRequired. Target class id.
_typeStringRequired. Relationship type name.
_descriptionUNKNOWN: OptionalTypeDescription.
_parameterMapJsonUNKNOWN: OptionalTypeRelationship parameters as a JSON string.

AosvcFileReference​

Reference to a File Service file version.

Type: Object

PropertyTypeDescription
_fileIdStringRequired. File id.
_fileVersionIdStringRequired. File version id.

AosvcGenerateModelRequest​

Request body for Build with AI.

Type: Object

PropertyTypeDescription
_promptStringRequired. What to build. Limited to 500 characters.
_teamIdUNKNOWN: OptionalTypeId of the aisvc team to use.
_currentModelUNKNOWN: OptionalTypeThe current model, for refinement.
_conversationHistoryUNKNOWN: OptionalTypeEarlier messages.
_attachmentsUNKNOWN: OptionalTypeFiles to base the model on.

AosvcGenerateModelResponse​

The model proposed by Build with AI.

Type: Object

PropertyTypeDescription
_outputUNKNOWN: OptionalTypeThe proposed model.
_teamIdUNKNOWN: OptionalTypeTeam used.
_conversationIdUNKNOWN: OptionalTypeConversation id.

AosvcHeaders​

Optional HTTP headers understood by the aosvc service. Pass them in .

Type: Object

PropertyTypeDescription
X-Ontology-DraftUNKNOWN: OptionalTypeThe versionNumber of the draft ontology version a schema read or write targets. Schema writes without this header are refused with 409 because the live version cannot be changed. Omit to read the live version.
If-MatchUNKNOWN: OptionalTypeThe ETag (ontology aggregate revision) the caller last saw, such as "5". A stale value is rejected with 412. Used by rollback and apply-change-set.
Accept-LanguageUNKNOWN: OptionalTypeLocale used to resolve localized display fields such as _name and _description, for example "en".

AosvcImportCleanupResult​

Result of undoing an import.

Type: Object

PropertyTypeDescription
_asyncTaskIdUNKNOWN: OptionalTypeThe import task id.
_ontologyIdUNKNOWN: OptionalTypeOntology id.
_classesWithoutMappingUNKNOWN: OptionalTypeClasses skipped because they have no collection mapping.
_errorsUNKNOWN: OptionalTypeErrors met while dispatching the deletes.
_classesSearchedUNKNOWN: OptionalTypeNumber of classes searched for individuals created by the import.
_dispatchedUNKNOWN: OptionalTypePer-collection deletes dispatched to ItemSvc, as { _classId, _collectionId, _itemsvcTaskId }.

AosvcImportCriteria​

Query parameters for a bulk ontology import.

Type: Object

PropertyTypeDescription
dryRunUNKNOWN: OptionalTypePass true to validate only. The result is returned inline (200, or 422 when the data does not conform) and nothing is written or queued.
modeUNKNOWN: OptionalTypeUPSERT (default) matches individuals on their external key; CREATE_ONLY always creates new individuals.
facetsUNKNOWN: OptionalTypeENFORCE (default) rejects a class group that fails a value facet (datatype, minInclusive, maxInclusive, pattern); REPORT reports the violations but still writes the group.
rollbackUNKNOWN: OptionalTypeDefaults to true: a failed import deletes the individuals it created. Pass false to keep what was written. Updates made by UPSERT are never restored.
modelRevisionUNKNOWN: OptionalTypeOntology aggregate revision to validate against. Defaults to the current revision.

AosvcImportIndividual​

One individual of a bulk import. Any other property is stored on the individual.

Type: Object

PropertyTypeDescription
_classIdStringRequired. Id of the class the individual belongs to.
_externalKeyFieldsUNKNOWN: OptionalTypeProperties that form the external key for UPSERT.
_relationshipsUNKNOWN: OptionalTypeInline edges from this individual, such as { _userType, _relatedToIds } or import-time entries with _propertyName.

AosvcIndividualRelationship​

A relationship edge from an individual.

Type: Object

PropertyTypeDescription
_userTypeUNKNOWN: OptionalTypeRelationship type name.
_relatedToIdsUNKNOWN: OptionalTypeIds of the target individuals.
_customAttributesUNKNOWN: OptionalTypeCustom attributes of the edge.
_relatedFromIdUNKNOWN: OptionalTypeId of the source individual.
_relatedUserItemDbIdUNKNOWN: OptionalTypeDatabase id of the related item.
_relatedUserTypeUNKNOWN: OptionalType_userType of the related item.
_relationshipIdUNKNOWN: OptionalTypeId of the relationship record.

AosvcIndividualSearchRequest​

Request body to search the individuals of a class.

Type: Object

PropertyTypeDescription
_filterUNKNOWN: OptionalTypeStructured filter on individual properties.
_includeSubclassesUNKNOWN: OptionalTypeInclude individuals of subclasses.
_offsetUNKNOWN: OptionalTypeNumber of results to skip.
_pageSizeUNKNOWN: OptionalTypeNumber of results per page.
_sortUNKNOWN: OptionalTypeSort map: property to 1 (ascending) or -1 (descending).
_projectionUNKNOWN: OptionalTypeProperties to return.

AosvcIndividualSearchResponse​

A page of individuals.

Type: Object

PropertyTypeDescription
_listUNKNOWN: OptionalTypeThe individuals.
_offsetUNKNOWN: OptionalTypeOffset of the page.
_pageSizeUNKNOWN: OptionalTypePage size.
_totalUNKNOWN: OptionalTypeTotal matching individuals.
_hasMoreUNKNOWN: OptionalTypeTrue when more results exist.

AosvcInferSchemaRequest​

Request body to infer an ItemSvc schema from sample data.

Type: Object

PropertyTypeDescription
dataJsonStringRequired. Sample data as a JSON string. Note: no underscore prefix.
_typeNameUNKNOWN: OptionalTypeName for the inferred type.
_teamIdUNKNOWN: OptionalTypeId of the aisvc team to use.

AosvcInferSchemaResponse​

The inferred schema.

Type: Object

PropertyTypeDescription
_outputUNKNOWN: OptionalTypeThe inferred schema.
_teamIdUNKNOWN: OptionalTypeTeam used.

AosvcLimitCriteria​

Criteria for listing the individuals of a class.

Type: Object

PropertyTypeDescription
limitUNKNOWN: OptionalTypeMaximum number of individuals to return. The service default is 1000.

AosvcLockReleaseCriteria​

Criteria for releasing an ontology edit lock.

Type: Object

PropertyTypeDescription
forceUNKNOWN: OptionalTypePass true to release a lock held by another user. The service default is false.

AosvcMcpConfig​

The MCP tool declaration of a class.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeConfig id.
_classIdUNKNOWN: OptionalTypeClass id.
_toolNameUNKNOWN: OptionalTypeMCP tool name.
_criteriaJsonUNKNOWN: OptionalTypeQuery criteria as a JSON string.
_provisioningStatusUNKNOWN: OptionalTypeProvisioning status in aisvc.
_provisionedAtUNKNOWN: OptionalTypeProvisioning timestamp.
_createdAtUNKNOWN: OptionalTypeCreation timestamp.
_updatedAtUNKNOWN: OptionalTypeLast update timestamp.
_createdByUNKNOWN: OptionalTypeCreating user id.
_updatedByUNKNOWN: OptionalTypeLast updating user id.

AosvcMcpConfigUpdate​

Request body to declare a class as an MCP tool.

Type: Object

PropertyTypeDescription
_toolNameUNKNOWN: OptionalTypeMCP tool name.
_criteriaJsonUNKNOWN: OptionalTypeQuery criteria as a JSON string.

AosvcOntology​

An application ontology.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeThe ontology id.
_namespacesUNKNOWN: OptionalTypeNamespaces of the ontology.
_nameUNKNOWN: OptionalTypeOntology name, resolved for the requested locale.
_descriptionUNKNOWN: OptionalTypeOntology description, resolved for the requested locale.
_baseVersionUNKNOWN: OptionalTypeThe base ontology version this ontology builds on.
_editLockTimeoutSecondsUNKNOWN: OptionalTypeEdit-lock lease in seconds, or -1 when the ontology is not lock-protected.
_versionUNKNOWN: OptionalTypeNumber of the live ontology version.
_revisionUNKNOWN: OptionalTypeCurrent aggregate revision.
_createdAtUNKNOWN: OptionalTypeCreation timestamp.
_updatedAtUNKNOWN: OptionalTypeLast update timestamp.
_createdByUNKNOWN: OptionalTypeId of the creating user.
_updatedByUNKNOWN: OptionalTypeId of the last updating user.

AosvcOntologyCreate​

Request body to create an application ontology.

Type: Object

PropertyTypeDescription
_name(String | JSON)Required. Ontology name: a plain string (stored as English) or a locale map such as { en: "Plant", de: "Anlage" }.
_descriptionUNKNOWN: OptionalTypeOntology description, as a plain string or locale map.
_baseVersionUNKNOWN: OptionalTypeBase ontology version to build on. Defaults to the latest available version.
_editLockTimeoutSecondsUNKNOWN: OptionalTypeOpt in to edit locking by setting the lease in seconds, for example 21600. Omit or send -1 for no locking.

AosvcOntologyLock​

Edit-lock status of an ontology. When locking is not enabled only _ontologyId, _lockingEnabled, _locked, _leaseSeconds (-1), _lastWriteBy and _changedByAnother are present.

Type: Object

PropertyTypeDescription
_ontologyIdUNKNOWN: OptionalTypeOntology id.
_lockingEnabledUNKNOWN: OptionalTypeFalse when the ontology is not lock-protected.
_lockedUNKNOWN: OptionalTypeTrue when a live lock is held.
_holderUNKNOWN: OptionalTypeId of the user holding the lock.
_holderNameUNKNOWN: OptionalTypeName of the user holding the lock.
_acquiredAtUNKNOWN: OptionalTypeWhen the lock was acquired.
_lastActivityAtUNKNOWN: OptionalTypeWhen the holder last wrote or sent a heartbeat.
_expiresAtUNKNOWN: OptionalTypeWhen the lease lapses without activity.
_heldByMeUNKNOWN: OptionalTypeTrue when the caller holds the lock.
_leaseSecondsUNKNOWN: OptionalTypeLease length in seconds, or -1 when locking is disabled.
_lastWriteByUNKNOWN: OptionalTypeId of the last user to write to the ontology.
_changedByAnotherUNKNOWN: OptionalTypeTrue when someone other than the caller wrote last.

AosvcOntologyUpdate​

Request body to update an application ontology.

Type: Object

PropertyTypeDescription
_nameUNKNOWN: OptionalTypeOntology name, as a plain string or locale map.
_descriptionUNKNOWN: OptionalTypeOntology description, as a plain string or locale map.
_editLockTimeoutSecondsUNKNOWN: OptionalTypeTurn edit locking on, off (-1) or change the lease in seconds. Omitting it leaves the setting unchanged.

AosvcOntologyVersion​

A version (draft, published or live) of an ontology.

Type: Object

PropertyTypeDescription
_versionNumberUNKNOWN: OptionalTypeVersion number.
_versionIdUNKNOWN: OptionalTypeVersion id.
_statusUNKNOWN: OptionalTypeDRAFT, PUBLISHED and so on.
_liveUNKNOWN: OptionalTypeTrue for the live version.
_baseVersionNumberUNKNOWN: OptionalTypeVersion this one was copied from.
_nameUNKNOWN: OptionalTypeLocalized name.
_descriptionUNKNOWN: OptionalTypeLocalized description.
_labelUNKNOWN: OptionalTypeLabel given when published.
_contentHashUNKNOWN: OptionalTypeContent hash.
_createdAtUNKNOWN: OptionalTypeCreation timestamp.
_createdByUNKNOWN: OptionalTypeCreating user id.
_updatedAtUNKNOWN: OptionalTypeWhen the version's content last changed: set when a draft is created and by every schema write to it.
_updatedByUNKNOWN: OptionalTypeUser id of that last change.
_publishedAtUNKNOWN: OptionalTypePublish timestamp.
_promotedAtUNKNOWN: OptionalTypePromotion timestamp.
_contentsUNKNOWN: OptionalTypeRow count per collection.

AosvcOptions​

Pagination options for AO Service list requests.

Type: Object

PropertyTypeDescription
_offsetUNKNOWN: OptionalTypeSets the number of results to skip in the Page response. Default: .
_pageSizeUNKNOWN: OptionalTypeSets the number of results to return per Page in the response. Default and maximum: .

AosvcOwlDocument​

An inline OWL document.

Type: Object

PropertyTypeDescription
nameStringRequired. Document name.
contentStringRequired. Document content such as Turtle or RDF/XML.
mediaTypeUNKNOWN: OptionalTypeMedia type of the content.

AosvcOwlExplanationRequest​

Request body to explain a previewed axiom.

Type: Object

PropertyTypeDescription
contractVersionNumberRequired. Contract version, currently 1.
axiomIdStringRequired. Id of the axiom to explain.
previewAosvcOwlPreviewRequestRequired. The preview request the axiom came from.

AosvcOwlExplanationResponse​

Proof availability for a previewed axiom.

Type: Object

PropertyTypeDescription
contractVersionUNKNOWN: OptionalTypeContract version.
axiomIdUNKNOWN: OptionalTypeAxiom id.
availableUNKNOWN: OptionalTypeTrue when an explanation exists.
reasonUNKNOWN: OptionalTypeWhy an explanation is unavailable.
reasonerUNKNOWN: OptionalTypeReasoner mode.
implementationUNKNOWN: OptionalTypeReasoner implementation.
supportingAxiomIdsUNKNOWN: OptionalTypeIds of supporting axioms.

AosvcOwlPreviewRequest​

Request body to preview OWL documents. Note: OWL contracts use camelCase without an underscore prefix.

Type: Object

PropertyTypeDescription
contractVersionNumberRequired. Contract version, currently 1.
documentsArray<AosvcOwlDocument>Required. Non-empty list of documents.
reasonerUNKNOWN: OptionalTypeReasoner mode, for example AUTO.
includeInferredUNKNOWN: OptionalTypeInclude inferred axioms.
loadAllowlistedRemoteImportsUNKNOWN: OptionalTypeResolve allowlisted remote imports.
optionsUNKNOWN: OptionalTypeOptions as { reasoner, includeInferred, loadAllowlistedRemoteImports }.

AosvcOwlPreviewResponse​

Classification, axioms and diagnostics of an OWL preview. Not persisted.

Type: Object

PropertyTypeDescription
contractVersionUNKNOWN: OptionalTypeContract version.
classificationUNKNOWN: OptionalTypeReasoner outcome as { requestedReasoner, reasoner, implementation, consistent, unsatisfiableClasses, elapsedMillis }.
profileUNKNOWN: OptionalTypeOWL profile as { name, supported, profiles }.
countsUNKNOWN: OptionalTypeAxiom counts by kind.
axiomsUNKNOWN: OptionalTypeAxioms with id, origin, owlAxiomType, display, dependencies, persistenceDisposition, nativeRule, genericRule and explanationAvailable.
importsUNKNOWN: OptionalTypeImport resolution results.
diagnosticsUNKNOWN: OptionalTypeDiagnostics as { severity, code, document, message, blocking }.
limitsUNKNOWN: OptionalTypeLimits applied to the preview.

AosvcParentClass​

Reference to a parent or target class.

Type: Object

PropertyTypeDescription
_idStringRequired for requests. The class id.
_nameUNKNOWN: OptionalTypeThe class name. Returned by the service.

AosvcPermissionGrant​

Request body to grant permissions on an ontology or class.

Type: Object

PropertyTypeDescription
_userAosvcPermissionUserRequired. The grantee.
_actionsArray<String>Required. Actions to grant. On an ontology: READ, CREATE, EDIT, DELETE, SHARE, PROMOTE, or * for all of them. PROMOTE is needed to request, confirm or abandon a promotion; EDIT does not allow it. On a class: INDIVIDUALS_READ, INDIVIDUALS_CREATE, INDIVIDUALS_EDIT, INDIVIDUALS_DELETE, INDIVIDUALS_SHARE.

AosvcPermissionUser​

The grantee of a permission.

Type: Object

PropertyTypeDescription
_idStringRequired. User, user group or profile id.
_typeUNKNOWN: OptionalType"user" or "usergroup".

AosvcPromotionConfirm​

Request body to confirm a promotion request.

Type: Object

PropertyTypeDescription
_reportIdUNKNOWN: OptionalTypeThe request's impact analysis report, which must be READY. Required whenever the request has one.

AosvcPromotionFinding​

A check finding of a promotion request.

Type: Object

PropertyTypeDescription
_checkUNKNOWN: OptionalTypeCheck name.
_severityUNKNOWN: OptionalTypeFinding severity.
_messageUNKNOWN: OptionalTypeFinding message.

AosvcPromotionRequest​

A request to make an ontology version live.

Type: Object

PropertyTypeDescription
_requestIdUNKNOWN: OptionalTypeRequest id.
_ontologyIdUNKNOWN: OptionalTypeOntology id.
_versionNumberUNKNOWN: OptionalTypeVersion being promoted.
_fromVersionNumberUNKNOWN: OptionalTypeVersion that is live now.
_reportIdUNKNOWN: OptionalTypeImpact analysis report on this promotion. Absent for a first promotion, which has nothing live to compare against.
_statusUNKNOWN: OptionalTypeRequest status.
_canConfirmUNKNOWN: OptionalTypeTrue when the checks allow confirmation.
_findingsUNKNOWN: OptionalTypeCheck findings.
_requestedAtUNKNOWN: OptionalTypeRequest timestamp.
_requestedByUNKNOWN: OptionalTypeRequesting user id.
_confirmedAtUNKNOWN: OptionalTypeConfirmation timestamp.
_confirmedByUNKNOWN: OptionalTypeConfirming user id.

AosvcPromotionRequestCreate​

Request body to request a promotion.

Type: Object

PropertyTypeDescription
_versionNumberNumberRequired. The published version to promote.

AosvcPropertyMapping​

A field to property mapping of a bound class.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeMapping id.
_classIdUNKNOWN: OptionalTypeClass id.
_itemsvcFieldUNKNOWN: OptionalTypeItemSvc field name.
_ontologyPropertyUNKNOWN: OptionalTypeOntology property name or IRI.
_transformUNKNOWN: OptionalTypeTransform expression.
_scriptUNKNOWN: OptionalTypeMapping script.
_createdAtUNKNOWN: OptionalTypeCreation timestamp.
_createdByUNKNOWN: OptionalTypeCreating user id.

AosvcPropertyMappingCreate​

Request body to add a field to property mapping.

Type: Object

PropertyTypeDescription
_ontologyPropertyStringRequired. Ontology property name or IRI.
_itemsvcFieldUNKNOWN: OptionalTypeItemSvc field name.
_transformUNKNOWN: OptionalTypeTransform expression.
_scriptUNKNOWN: OptionalTypeMapping script.

AosvcPublish​

Request body to publish a draft.

Type: Object

PropertyTypeDescription
_labelUNKNOWN: OptionalTypeLabel for the published version.

AosvcReadingsCriteria​

Criteria for reading telemetry readings.

Type: Object

PropertyTypeDescription
fromUNKNOWN: OptionalTypeEarliest reading timestamp to include, ISO 8601.
toUNKNOWN: OptionalTypeLatest reading timestamp to include, ISO 8601.
offsetUNKNOWN: OptionalTypeNumber of readings to skip. The service default is 0.
limitUNKNOWN: OptionalTypeMaximum number of readings to return. The service default is 200.
ascendingUNKNOWN: OptionalTypePass true for oldest first. The service default is false (newest first).

AosvcReadingsPage​

A page of telemetry readings.

Type: Object

PropertyTypeDescription
_listUNKNOWN: OptionalTypeThe readings.
_totalUNKNOWN: OptionalTypeTotal readings.
_offsetUNKNOWN: OptionalTypeOffset of the page.

AosvcReasonerRequest​

Request body for the stateless reasoner. Note: no underscore prefix.

Type: Object

PropertyTypeDescription
ontologyJSONRequired. The ontology definition (classes, properties).
rulesUNKNOWN: OptionalTypeRule definitions to apply.
constraintsUNKNOWN: OptionalTypeProperty constraint definitions.
instancesUNKNOWN: OptionalTypeInstance data keyed by instance id.
engineUNKNOWN: OptionalTypeReasoner engine. Defaults to builtin. The shacl engine runs an extra SHACL pass when the library is available.

AosvcReasonerResult​

Result of a reasoner run.

Type: Object

PropertyTypeDescription
inferencesUNKNOWN: OptionalTypeInferred facts.
violationsUNKNOWN: OptionalTypeConstraint violations.
relationshipsUNKNOWN: OptionalTypeDerived relationships.
instanceTypesUNKNOWN: OptionalTypeInferred classes per instance id.

AosvcRelationshipBatch​

Request body to batch-set relationships.

Type: Object

PropertyTypeDescription
_relationshipsArray<AosvcRelationshipBatchEntry>The entries to set.

AosvcRelationshipBatchEntry​

Relationships of one parent individual and one relationship type.

Type: Object

PropertyTypeDescription
_userTypeUNKNOWN: OptionalTypeRelationship type name.
_relatedFromIdUNKNOWN: OptionalTypeId of the parent individual.
_relatedToIdsUNKNOWN: OptionalTypeIds of the target individuals. Replaces the existing set.

AosvcRequestOptions​

Request options for IafAOSvc calls. Query parameters are passed in criteria objects; use options for headers.

Type: Object

PropertyTypeDescription
headersUNKNOWN: OptionalTypeHTTP headers to send with the request.

AosvcReviewDatasetRequest​

Request body to review an import dataset.

Type: Object

PropertyTypeDescription
promptStringRequired. Review instructions. Note: no underscore prefix.
datasetJsonStringRequired. The dataset as a JSON string.
modelJsonStringRequired. The model as a JSON string.
teamIdUNKNOWN: OptionalTypeId of the aisvc team to use.

AosvcReviewDatasetResponse​

The dataset review.

Type: Object

PropertyTypeDescription
_outputUNKNOWN: OptionalTypeThe review.
_teamIdUNKNOWN: OptionalTypeTeam used.
_mcpToolNameUNKNOWN: OptionalTypeMCP tool created for the proposal.

AosvcRevision​

An immutable ontology aggregate revision manifest.

Type: Object

PropertyTypeDescription
idUNKNOWN: OptionalTypeRecord id.
ontologyIdUNKNOWN: OptionalTypeOntology id.
revisionUNKNOWN: OptionalTypeRevision number.
contentHashUNKNOWN: OptionalTypeHash of the snapshot content.
payloadBytesUNKNOWN: OptionalTypeSnapshot size in bytes.
chunkCountUNKNOWN: OptionalTypeNumber of stored chunks.
collectionsUNKNOWN: OptionalTypeCollections included in the snapshot.
createdAtUNKNOWN: OptionalTypeCreation timestamp.
createdByUNKNOWN: OptionalTypeCreating user id.
operationUNKNOWN: OptionalTypeThe operation that produced the revision, for example CHANGE_SET, ROLLBACK or PROMOTION.
sourceRevisionUNKNOWN: OptionalTypeRevision a rollback or promotion was taken from.

AosvcRule​

An ontology rule (axiom).

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeRule id.
_ontologyIdUNKNOWN: OptionalTypeOntology id.
_ruleTypeUNKNOWN: OptionalTypeRule type. See getRuleTypes.
_ruleJsonUNKNOWN: OptionalTypeRule definition as a JSON string.
_subClassIdUNKNOWN: OptionalTypeSub class id.
_superClassIdUNKNOWN: OptionalTypeSuper class id.
_createdAtUNKNOWN: OptionalTypeCreation timestamp.
_updatedAtUNKNOWN: OptionalTypeLast update timestamp.
_createdByUNKNOWN: OptionalTypeCreating user id.
_updatedByUNKNOWN: OptionalTypeLast updating user id.

AosvcRuleCreate​

Request body to create a rule.

Type: Object

PropertyTypeDescription
_ruleTypeStringRequired. Rule type. See getRuleTypes.
_ruleJsonUNKNOWN: OptionalTypeRule definition as a JSON string.
_subClassIdUNKNOWN: OptionalTypeSub class id.
_superClassIdUNKNOWN: OptionalTypeSuper class id.

AosvcRuleType​

A supported rule type.

Type: Object

PropertyTypeDescription
_nameUNKNOWN: OptionalTypeRule type name.
_descriptionUNKNOWN: OptionalTypeWhat the rule type does.

AosvcRuleUpdate​

Request body to update a rule.

Type: Object

PropertyTypeDescription
_ruleTypeUNKNOWN: OptionalTypeRule type.
_ruleJsonUNKNOWN: OptionalTypeRule definition as a JSON string.
_subClassIdUNKNOWN: OptionalTypeSub class id.
_superClassIdUNKNOWN: OptionalTypeSuper class id.

AosvcSchemaBundle​

A canonical aosvc schema bundle. Pass the bundle under when validating.

Type: Object

PropertyTypeDescription
snapshotUNKNOWN: OptionalTypeThe canonical schema snapshot, as returned by getOntologySchema.

AosvcSchemaClassRef​

A class in the ancestor chain of an effective schema.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeClass id.
_nameUNKNOWN: OptionalTypeClass name.
_baseUNKNOWN: OptionalTypeTrue when the class belongs to the base ontology.

AosvcSchemaCriteria​

Criteria for getting an ontology schema bundle.

Type: Object

PropertyTypeDescription
revisionUNKNOWN: OptionalTypeAggregate revision to read. Omit for the current revision.

AosvcSchemaProperty​

A property in an effective class schema.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeProperty id.
_nameUNKNOWN: OptionalTypeProperty name.
_descriptionUNKNOWN: OptionalTypeProperty description.
_propertyTypeUNKNOWN: OptionalTypeProperty kind, for example data or object property.
_rangeUNKNOWN: OptionalTypeValue range or datatype.
_rangeClassIdUNKNOWN: OptionalTypeTarget class id for object properties.
_queryPathUNKNOWN: OptionalTypeQuery path of the property.
_sourceClassIdUNKNOWN: OptionalTypeId of the class that declares the property.
_sourceClassNameUNKNOWN: OptionalTypeName of the class that declares the property.
_inheritedUNKNOWN: OptionalTypeTrue when inherited from an ancestor.
_itemsvcFieldUNKNOWN: OptionalTypeMapped ItemSvc field.
_transformUNKNOWN: OptionalTypeMapping transform expression.
_scriptedUNKNOWN: OptionalTypeTrue when the mapping uses a script.
_relationshipIdUNKNOWN: OptionalTypeRelationship id for object properties.
_constraintsUNKNOWN: OptionalTypeConstraints on the property.
_attributesUNKNOWN: OptionalTypeRelationship attributes as key/value entries.

AosvcSchemaStateMachine​

State machine metadata in an effective class schema.

Type: Object

PropertyTypeDescription
_machineIdUNKNOWN: OptionalTypeState machine id.
_machineNameUNKNOWN: OptionalTypeState machine name.
_sourceClassIdUNKNOWN: OptionalTypeClass that declares the machine.
_inheritedUNKNOWN: OptionalTypeTrue when inherited.
_statesUNKNOWN: OptionalTypeStates as { _id, _name, _value }.
_transitionsUNKNOWN: OptionalTypeTransitions as { _id, _name, _fromStateId, _toStateId, _executionOrder }.

AosvcSourcePrepareRequest​

Request body to infer a dataset from files.

Type: Object

PropertyTypeDescription
_attachmentsArray<AosvcFileReference>Required. The files to infer from.
_teamIdUNKNOWN: OptionalTypeId of the aisvc team to use.
_ontologyIdUNKNOWN: OptionalTypeId of an ontology whose class names are added to the inference prompt. Nothing is persisted.

AosvcSourcePrepareResponse​

The inferred dataset.

Type: Object

PropertyTypeDescription
datasetUNKNOWN: OptionalTypeThe inferred instance-map dataset.
logUNKNOWN: OptionalTypeInference log.

AosvcStateMachine​

A complete state machine. Exactly one of its states is marked . Responses additionally carry _ontologyId, _createdAt, _updatedAt, _createdBy and _updatedBy.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeState machine id. Generated when omitted.
_nameStringRequired. State machine name.
_descriptionUNKNOWN: OptionalTypeDescription.
_classIdsArray<String>Required. Ids of the classes the machine tracks.
_statesArray<AosvcStateMachineState>Required. The states.
_eventsArray<AosvcStateMachineEvent>Required. The events.
_transitionsArray<AosvcStateMachineTransition>Required. The transitions.
_ontologyIdUNKNOWN: OptionalTypeOwning ontology id. Returned by the service.
_createdAtUNKNOWN: OptionalTypeCreation timestamp. Returned by the service.
_updatedAtUNKNOWN: OptionalTypeLast update timestamp. Returned by the service.
_createdByUNKNOWN: OptionalTypeCreating user id. Returned by the service.
_updatedByUNKNOWN: OptionalTypeLast updating user id. Returned by the service.

AosvcStateMachineClassBinding​

Request body to bind or unbind classes of a state machine.

Type: Object

PropertyTypeDescription
_classIdsArray<String>Required. Non-empty list of class ids.

AosvcStateMachineCriteria​

Criteria for listing state machines.

Type: Object

PropertyTypeDescription
classIdUNKNOWN: OptionalTypeOnly return state machines that track this class.

AosvcStateMachineEvent​

An event of a state machine.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeEvent id. Generated when omitted.
_nameStringRequired. Event name.
_descriptionUNKNOWN: OptionalTypeDescription.

AosvcStateMachineEventPublish​

Request body to publish a state machine event.

Type: Object

PropertyTypeDescription
_eventIdStringRequired. Id of the event.
_eventNameStringRequired. Name of the event.
_targetsArray<AosvcStateMachineEventTarget>Required. Targets grouped by class.

AosvcStateMachineEventQueued​

Response after a state machine event is queued.

Type: Object

PropertyTypeDescription
_eventTriggerIdUNKNOWN: OptionalTypeId of the queued event trigger.

AosvcStateMachineEvents​

One state machine's events, in the ontology-wide events listing.

Type: Object

PropertyTypeDescription
_stateMachineIdUNKNOWN: OptionalTypeState machine id.
_eventsUNKNOWN: OptionalTypeIts events.

AosvcStateMachineEventTarget​

The individuals of one class that receive a state machine event.

Type: Object

PropertyTypeDescription
_classIdStringRequired. Class id.
_individualIdsArray<String>Required. 1 to 500 individual ids.

AosvcStateMachineHistoryCriteria​

Criteria for getting a state machine's transition history.

Type: Object

PropertyTypeDescription
limitUNKNOWN: OptionalTypeHow many of the newest attempts to return. Default 100.

AosvcStateMachinePartCriteria​

Criteria for getting the states, events or transitions of an ontology's state machines.

Type: Object

PropertyTypeDescription
machineIdUNKNOWN: OptionalTypeOnly return this state machine's.

AosvcStateMachineState​

A state of a state machine.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeState id. Generated when omitted.
_nameStringRequired. State name.
_valueJSONRequired. The property value that represents the state.
_initialUNKNOWN: OptionalTypeTrue on exactly one state of a machine: the state a new individual of a bound class starts in.

AosvcStateMachineStates​

One state machine's states, in the ontology-wide states listing.

Type: Object

PropertyTypeDescription
_stateMachineIdUNKNOWN: OptionalTypeState machine id.
_statesUNKNOWN: OptionalTypeIts states.

AosvcStateMachineTransition​

A transition of a state machine.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeTransition id. Generated when omitted.
_nameStringRequired. Transition name.
_fromStateIdStringRequired. Id of the source state.
_toStateIdStringRequired. Id of the target state.
_executionOrderUNKNOWN: OptionalTypeOrder in which competing transitions are evaluated.
_eventIdsArray<String>Required. Events that trigger the transition.
_actionsArray<AosvcStateMachineTransitionAction>Required. Actions run when the transition fires; may be empty.

AosvcStateMachineTransitionAction​

An action run by a transition. Same fields as an action, plus ordering.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeId of the action to run.
_executionOrderUNKNOWN: OptionalTypeOrder in which the action runs, zero based.
_nameUNKNOWN: OptionalTypeAction name.
_actionTypeUNKNOWN: OptionalTypeAction type.
_descriptionUNKNOWN: OptionalTypeDescription.
_paramsUNKNOWN: OptionalTypeAction parameters.

AosvcStateMachineTransitions​

One state machine's transitions, in the ontology-wide transitions listing.

Type: Object

PropertyTypeDescription
_stateMachineIdUNKNOWN: OptionalTypeState machine id.
_transitionsUNKNOWN: OptionalTypeIts transitions.

AosvcTransitionHistory​

An attempted state transition of an individual.

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeRecord id.
_eventTriggerIdUNKNOWN: OptionalTypeEvent trigger id.
_stateMachineIdUNKNOWN: OptionalTypeState machine id.
_classIdUNKNOWN: OptionalTypeClass of the individual.
_individualIdUNKNOWN: OptionalTypeIndividual id.
_eventIdUNKNOWN: OptionalTypeEvent id.
_eventNameUNKNOWN: OptionalTypeEvent name.
_eventSourceTypeUNKNOWN: OptionalTypeSource of the event.
_transitionIdUNKNOWN: OptionalTypeTransition id.
_fromStateIdUNKNOWN: OptionalTypeSource state id.
_toStateIdUNKNOWN: OptionalTypeTarget state id.
_fromStateValueUNKNOWN: OptionalTypeValue of the source state.
_toStateValueUNKNOWN: OptionalTypeValue of the target state.
_successUNKNOWN: OptionalTypeTrue when the transition committed.
_currentStateUNKNOWN: OptionalTypeState after the attempt.
_actorUserIdUNKNOWN: OptionalTypeUser who triggered the event.
_occurredAtUNKNOWN: OptionalTypeWhen the event occurred.
_committedAtUNKNOWN: OptionalTypeWhen the transition committed.

AosvcTraversalHop​

One hop of a relationship traversal.

Type: Object

PropertyTypeDescription
_relationshipStringRequired. Name of the relationship to follow.

AosvcTraversalRequest​

Request body to traverse relationships from individuals.

Type: Object

PropertyTypeDescription
_startIndividualIdsArray<String>Required. Ids of the individuals to start from.
_hopsArray<AosvcTraversalHop>Required. The relationships to follow, in order.
_filterUNKNOWN: OptionalTypeStructured filter on the terminal individuals.
_offsetUNKNOWN: OptionalTypeNumber of results to skip.
_pageSizeUNKNOWN: OptionalTypeNumber of results per page.
_sortUNKNOWN: OptionalTypeSort map: property to 1 or -1.
_projectionUNKNOWN: OptionalTypeProperties to return.

AosvcTraversalResponse​

Result of a relationship traversal.

Type: Object

PropertyTypeDescription
_startClassIdUNKNOWN: OptionalTypeClass of the start individuals.
_terminalClassIdUNKNOWN: OptionalTypeClass reached by the last hop.
_pathUNKNOWN: OptionalTypeThe hops as { _relationship, _sourceClassId, _targetClassId }.
_breadcrumbsUNKNOWN: OptionalTypePer-hop breadcrumbs as { _classId, _individualIds, _viaRelationship, _count }.
_pageUNKNOWN: OptionalTypeThe terminal individuals.

AosvcValidationRequest​

Request body to validate individuals against an ontology.

Type: Object

PropertyTypeDescription
dataJsonStringRequired. The individuals to validate, as a JSON string. Note: this field has no underscore prefix.

AosvcValidationResult​

Result of validating individuals against an ontology.

Type: Object

PropertyTypeDescription
_conformsUNKNOWN: OptionalTypeTrue when the data conforms.
_violationsUNKNOWN: OptionalTypeThe violations found.

AosvcValidationViolation​

A single validation violation.

Type: Object

PropertyTypeDescription
_focusNodeUNKNOWN: OptionalTypeThe node that violated a constraint.
_resultPathUNKNOWN: OptionalTypeThe property path of the violation.
_messageUNKNOWN: OptionalTypeViolation message.
_severityUNKNOWN: OptionalTypeViolation severity.

ApiConfigCriteria​

Filter flags for retrieving Object Model API config definitions.

Type: Object

PropertyTypeDescription
_isconfigaddedbooleanWhen true, returns API configs flagged as added.
_tobedeletedbooleanWhen true, returns API configs flagged for deletion.
nsfilterStringNamespace filter applied on .

Application​

The Application type defines an application.

Type: Object

PropertyTypeDescription
_idStringApplication UUID
_nameStringrequired, Application name
_descriptionStringApplication description
_appOwnerStringrequired, Application owner
_namespacesArray<String>Namespaces that the application pertains to
_redirecUrisStringrequired, Comma separated string with redirect URIs to receive the access_token after a successful authentication. Max redirect Uris: 3
_authorizedOriginsStringComma separated string with the authorized origin restriction. Authentication from any other origins will be restricted.
_homeStringApplication home page URL
_orgIdStringrequired, Organization Id
_whitelistedAppsArray<String>An array of app ids for the Applications that can access resources in this app.
_loginThemeStringoptional, Login Theme supported by the platform

ApplicationConfigs​

Type: Object

ApplicationCriteria​

Type: Object

PropertyTypeDescription
_id(Array<String> | String)Application UUID
_name(Array<String> | String)Application name
_descriptionStringApplication description
_orgIdStringOrganization Id
queryStringwild card search on name, description and short name

ApplicationOptions​

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response

AppTokenResponse​

Response shape for IafPassSvc.getAppToken_v2 (the access_token exchange grant, handled directly by passportsvc).

Type: Object

PropertyTypeDescription
access_tokenStringThe OAuth2 access token (JWT).
token_typeStringThe token type, e.g. "Bearer".
expires_inNumberSeconds until the access token expires.

AuditableDTO​

Creation and update details of an AI Service resource.

Type: Object

PropertyTypeDescription
_createdAtNumberWhen the resource was created, in milliseconds since the Unix epoch.
_updatedAtNumberWhen the resource was last updated, in milliseconds since the Unix epoch.
_createdByIdStringThe id of the user who created the resource.
_updatedByIdStringThe id of the user who last updated the resource.

Conversation​

Represents a conversation resource.

Type: Object

PropertyTypeDescription
_idStringThe conversation id.
_namespacesArray<String>Namespaces associated with the conversation.
_titleStringThe title of the conversation.
_userIdStringThe user id who created the conversation.
_statusnumberStatus of the conversation.
_embeddingModelStringThe embedding model used.
_teamIdStringThe team that answered the conversation's first turn.
_metadataAuditableDTOMetadata containing creation and update info.
_chatsArray<Turn>The conversation's turns, returned only when getChats is set in ConversationOptions. Each entry carries only _prompt, _llmResponse and _usage, with no _id; a Platform Manager receives _summary in place of _llmResponse. Use IafAISvc.getConversationTurns for complete turns.
_usageTokenUsageRunning total of tokens consumed across every turn in this conversation. Conversations created before token tracking existed report zeros.

ConversationAttachmentReference​

References one immutable File Service version attached to a conversation. AISvc resolves trusted display metadata such as the filename and content type.

Type: Object

PropertyTypeDescription
_fileIdStringFile Service file id.
_fileVersionIdStringFile Service version id.

ConversationCreateRequest​

Request to create a new conversation or continue an existing one.

Type: Object

PropertyTypeDescription
_inputConversationInputInput message for the conversation.
_teamIdStringThe team id for the conversation.
_idString(Optional) Conversation id to continue an existing conversation.
_attachmentsUNKNOWN: OptionalTypeOptional File Service version references to attach.
Successful references persist with the conversation and remain available on later turns.

ConversationCriteria​

Optional filters for listing conversations.

Type: Object

PropertyTypeDescription
allUsersUNKNOWN: OptionalTypePass to return every user's conversations in the
namespace instead of only the requesting user's. Requires READ on all conversations
(, or a broader grant such as ) in each requested namespace;
a caller who can read only individually shared conversations is rejected with a 403. Omitted
or , only the conversations the requesting user created are returned.

ConversationDeleteAllCriteria​

Confirmation required to delete every conversation in a namespace.

Type: Object

PropertyTypeDescription
_scopeStringMust be . Confirms that every user's conversations in the
namespace are permanently deleted. Any other value, or leaving it out, is rejected with a 400.

ConversationDeleteAllResult​

Result of deleting every conversation in a namespace.

Type: Object

PropertyTypeDescription
_deletedNumberThe number of conversations deleted. 0 when the namespace had none.

ConversationFile​

A file to upload and attach to a conversation: a browser , a Node.js , or to set the stored name. A has no name of its own, so pass it as .

Type: (File | Object)

PropertyTypeDescription
fileUNKNOWN: OptionalTypeThe file, when passed as .
filenameUNKNOWN: OptionalTypeName to store the file under in File Service.

ConversationFileUploadOptions​

Options for uploading files with and .

Type: Object

PropertyTypeDescription
namespacesUNKNOWN: OptionalTypeNamespaces to store the files in. Defaults to
, then the session project's namespaces.
parentFolderIdUNKNOWN: OptionalTypeFolder to store the files in. Defaults to the root folder.
tagsUNKNOWN: OptionalTypeExtra tags for the stored files. They are always tagged
.
chunkSizeUNKNOWN: OptionalTypeUpload chunk size in bytes. Defaults to 10 MB.
onProgressUNKNOWN: OptionalTypeCalled as each file uploads.
onFileCompleteUNKNOWN: OptionalTypeCalled when a file finishes uploading.
onCompleteUNKNOWN: OptionalTypeCalled once every file
has uploaded, just before the conversation request is sent.

ConversationFileUploadProgress​

Upload progress for one file in a conversation file upload.

Type: Object

PropertyTypeDescription
indexNumberPosition of the file in the list.
filenameStringThe file's name.
bytesUploadedNumberBytes of this file uploaded so far.
bytesTotalNumberThis file's size in bytes.
percentageNumberThis file's progress, 0 to 100.
totalBytesUploadedNumberBytes uploaded so far across all files.
totalBytesNumberSize in bytes of the files that have reported progress so far.

ConversationFileUploadResult​

A file that finished uploading in a conversation file upload.

Type: Object

PropertyTypeDescription
indexNumberPosition of the file in the list.
filenameStringThe file's name.
fileFileThe stored File Service file.
_fileIdStringFile Service file id.
_fileVersionIdStringFile Service version id that is attached.

ConversationInput​

Represents the input for a conversation message.

Type: Object

PropertyTypeDescription
messageStringThe message content.

ConversationOptions​

Options for retrieving a conversation.

Type: Object

PropertyTypeDescription
getChatsbooleanWhether to include chat messages in the response.
firstNnumberNumber of first chats to retrieve.
lastNnumberNumber of last chats to retrieve.
offsetnumberOffset of chats to retrieve.
textToMatchstringText to match in chats.

ConversationRequestOptions​

Options for a conversation request: optional query parameters, plus request headers.Anything outside is appended to the URL as a query parameter; is sent on the request instead.

Type: Object

PropertyTypeDescription
headersUNKNOWN: OptionalTypeRequest headers. selects the language of the
text the AI Service generates for this request - the progress captions it emits while the
team works, and the message on an error it returns. Supported values are and ; any
other value falls back to . It does not affect the agent's own answer, which follows the
prompt and the agent's system message. On a streamed conversation the headers the SSE
transport depends on - , and - cannot be overridden.

ConversationStreamAgentInvocationMessagePayload​

Payload of the 'agent-invocation-message' event, sent with the invocation message configured on an agent when the agent begins its turn.

Type: Object

PropertyTypeDescription
agentNameStringThe agent's name.
messageStringThe invocation message configured on the agent.

ConversationStreamAgentInvokedPayload​

Payload of the 'agent-invoked' event, sent when an agent begins its turn.

Type: Object

PropertyTypeDescription
agentNameStringThe agent's name.

ConversationStreamAgentMessagePayload​

Payload of the 'agent-message' event: one chunk of an agent's answer as the model produces it.

Type: Object

PropertyTypeDescription
idUNKNOWN: OptionalTypeThe id of the message the chunk belongs to. Chunks of one message share it.
agentUNKNOWN: OptionalTypeThe agent producing the message.
deltaStringThe text of this chunk. Append it to the chunks before it.
isFinalBooleantrue on the last chunk of the message.
pathUNKNOWN: OptionalTypeThe chain of agents that led to this one, in a multi-agent team.

ConversationStreamAttachmentStatusPayload​

Payload of the 'attachment-status' event, sent as an attachment selected by an agent moves through its lifecycle. One attachment can produce several events: 'selected' when the agent picks it, then 'loaded', 'unavailable' or 'failed'.

Type: Object

PropertyTypeDescription
refStringThe reference the agent used to select the attachment.
nameStringThe file name.
version(Number | UNKNOWN: NullLiteral)The file version number, or null when it is not known.
fileIdStringThe File Service file id.
fileVersionIdStringThe File Service file version id.
scopeString'current_message' when the file was attached to this request, or 'conversation_history' when it was attached on an earlier turn.
agentNameStringThe agent that selected the attachment.
providerStringThe AI provider the file is loaded into, for example 'openai' or 'anthropic'.
statusString'selected', 'loaded', 'unavailable' or 'failed'.
reasonUNKNOWN: OptionalTypeWhy the attachment failed, when status is 'failed'.

ConversationStreamCompletePayload​

Payload of the 'complete' event, sent once when the turn has finished successfully. The 'token-usage' event before it carries a ConversationTokenUsage.

Type: Object

PropertyTypeDescription
_idStringThe conversation id.
_turnIdStringThe id of the turn this request created. Use it with IafAISvc.getConversationTurn, IafAISvc.getTurnTokenUsage or IafAISvc.getTurnTrace.
_outputanyThe answer, parsed as JSON when it is JSON and the raw text otherwise.

ConversationStreamErrorPayload​

Payload of the 'error' event. The AI Service sends a message object, in the language chosen by the Accept-Language request header. When the request or the connection fails on the client side, the payload is the Error that was thrown instead.

Type: Object

PropertyTypeDescription
messageStringA description of the error that is safe to show to the user.

ConversationStreamEvent​

One server event delivered to the onEvent handler of IafAISvc.streamConversation and IafAISvc.streamConversationWithFiles.A turn opens with 'conversation' and 'team-start'. While the team works it sends 'agent-invoked', 'agent-invocation-message', 'llm-analysing', 'process-status', 'tool-invoked', 'tool-result', 'attachment-status' and 'agent-message' as each happens. It ends with 'team-done', 'summary', 'token-usage', 'complete' and finally 'close'. A failed turn sends 'error' instead of 'complete', then 'close'.Event types the SDK does not recognise are passed through unchanged, so a handler should ignore types it does not handle.

Type: Object

PropertyTypeDescription
typeStringThe SSE event name. See the payload types for what each event carries.
payload(ConversationStreamStartPayload | ConversationStreamAgentInvokedPayload | ConversationStreamAgentInvocationMessagePayload | ConversationStreamLlmAnalysingPayload | ConversationStreamProcessStatusPayload | ConversationStreamToolInvokedPayload | ConversationStreamToolResultPayload | ConversationStreamAttachmentStatusPayload | ConversationStreamAgentMessagePayload | ConversationStreamSummaryPayload | ConversationTokenUsage | ConversationStreamCompletePayload | ConversationStreamErrorPayload | Error | Object | String)The parsed JSON body of the event. 'team-start', 'team-done' and 'close' carry an empty object. A body that is not JSON is passed as the raw string.

ConversationStreamEventHandler​

Handler invoked for every event of a streamed conversation, with one ConversationStreamEvent as its only argument. A throw inside the handler is logged and ignored, so the stream keeps running.

Type: Function

ParameterRequiredTypeDescription
eventYesConversationStreamEventThe event, with its type and payload.
Returns

void -

ConversationStreamHandle​

The handle returned by IafAISvc.streamConversation and IafAISvc.streamConversationWithFiles.

Type: Object

PropertyTypeDescription
abortFunctionCloses the stream immediately. On streamConversationWithFiles it also cancels uploads still in progress. No further events are delivered.
donePromise<void>Resolves when the stream ends normally. Rejects if the request fails, the connection drops, or, on streamConversationWithFiles, an upload fails or is aborted.

ConversationStreamLlmAnalysingPayload​

Payload of the 'llm-analysing' event, sent when the model begins a reasoning step.

Type: Object

PropertyTypeDescription
agentNameUNKNOWN: OptionalTypeThe agent whose model is reasoning.

ConversationStreamProcessStatusPayload​

Payload of the 'process-status' event: a readable progress caption for a phase that otherwise produces no output.

Type: Object

PropertyTypeDescription
phaseStringOne of 'history_loading', 'history_ready', 'knowledge_base_search_starting', 'knowledge_base_search_complete', 'external_tools_loading', 'external_tools_ready', 'generating_response' or 'agent_finished'.
descriptionStringThe caption to show, in the language chosen by the Accept-Language request header.
agentNameUNKNOWN: OptionalTypeThe agent the phase belongs to.

ConversationStreamStartPayload​

Payload of the 'conversation' event, sent once when the conversation is created or resumed.

Type: Object

PropertyTypeDescription
idStringThe conversation id. Pass it as _id on a later request to continue the conversation.

ConversationStreamSummaryPayload​

Payload of the 'summary' event, sent once with the complete answer text just before 'token-usage' and 'complete'.

Type: Object

PropertyTypeDescription
contentStringThe complete answer text.

ConversationStreamToolInvokedPayload​

Payload of the 'tool-invoked' event, sent when an agent calls a tool.

Type: Object

PropertyTypeDescription
toolNameStringThe tool's name.
inputUNKNOWN: OptionalTypeThe arguments the agent passed to the tool.
callIdUNKNOWN: OptionalTypeThe tool-call id. The matching 'tool-result' event carries the same id.
agentNameUNKNOWN: OptionalTypeThe agent that called the tool.

ConversationStreamToolResultPayload​

Payload of the 'tool-result' event, sent when a tool returns.

Type: Object

PropertyTypeDescription
toolNameStringThe tool's name.
outputUNKNOWN: OptionalTypeThe tool's output. Capped at 8 KB on the stream; read the turn's trace with IafAISvc.getTurnTrace for the complete output.
callIdUNKNOWN: OptionalTypeThe tool-call id, matching the 'tool-invoked' event.
agentNameUNKNOWN: OptionalTypeThe agent that called the tool.
truncatedUNKNOWN: OptionalTypetrue when output exceeded the cap and was cut short.

ConversationTokenUsage​

Token cost returned with a conversation request: the turn just completed, and the conversation's running total including it.

Type: Object

PropertyTypeDescription
_messageTokenUsageCost of the turn this request produced. Counts every AI call
the turn made - each step of an agent's tool loop, every agent in a multi-agent team, and the
embedding calls - not only the final call.
_conversationTokenUsageThe conversation's running total, including this turn.
Excludes the summarisation top-up, which is applied shortly after the answer is returned.

CreateNotificationTemplateOptions​

Type: Object

PropertyTypeDescription
_appIdStringIt can be used when whitelisted app creating notification template for other app

CreatePermissionsResponse​

The response object when you create a Permission

Type: Object

PropertyTypeDescription
_successArray<Permission>An array of the successfully created permissions
_failuresArray<Permission>An array of the failed permissions and the reason for failure

Ctx​

Use a Ctx object to maintain project or session context.

Type: Object

PropertyTypeDescription
noAuthbooleanEnter if no authentication is required
authSchemeStringUse to store an authentication scheme ('Bearer' or 'Basic' for example) if required. Defaults to 'Bearer' if undefined.
authTokenStringUse to store an authentication token, if required
_namespacesArray<String>Stores namespaces when nsfilter is used
storageJSONSession storage

ExternalMcpServerConfig​

Represents an External MCP Server Config resource.

Type: Object

PropertyTypeDescription
_idStringThe id of the external MCP server config resource.
_namespacesArray<String>Required, Namespace(s) that own the config.
_nameStringRequired, Name of the external MCP server.
_descriptionStringOptional description of the external MCP server.
_userTypeStringRequired, Unique identifier for the external MCP server config.
_transportStringTransport type derived from the connection URL (for example, ).
_connectionExternalMcpServerConnectionRequired, Connection configuration.
_metadataAuditableDTOMetadata describing creation and updates.
_irnStringInternal resource name for permission checks.

ExternalMcpServerConfigCriteria​

Filters for listing External MCP Server Configs. Every filter is optional, and filters combine so that a config must match all of them. The namespace is not a filter: it comes from the namespaces in ctx.

Type: Object

PropertyTypeDescription
_name(String | Array<String>)Optional. Return configs with this exact name. Pass an array to match any of several names.
_userType(String | Array<String>)Optional. Return configs with this exact user type. Pass an array to match any of several user types.
_transportStringOptional. Return configs that use this transport. 'http' is currently the only transport.
queryStringOptional. Case-insensitive partial match on the name or the description, for example 'weather'.

ExternalMcpServerConnection​

Connection configuration for an External MCP Server.

Type: Object

PropertyTypeDescription
_urlStringRequired, MCP server URL (must be or ).
_headersUNKNOWN: OptionalTypeOptional request headers to send to the MCP server.

ExternalMcpServerHeaderSpec​

Header spec for External MCP Server connection headers.

Type: Object

PropertyTypeDescription
typeExternalMcpServerHeaderTypeHow the header value is resolved.
valueanyFor , provide the secret name/key to resolve. For , provide the literal value.

ExternalMcpServerHeaderType​

Header value resolution strategy for External MCP Server connections.

Type: (UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType)

File​

Data type for a source file in the File Service.

Type: Object

PropertyTypeDescription
_idStringThe File's database id
_nameStringThe file name
_tipIdStringLatest version id
_tipVersionNumberLatest version number
_nextVersionNumberNext version number
_typeStringEither "file" or "dir"
_irnStringPlatform resource name with pattern as filesvc:file:<_id>
_namespacesArrayList of namespaces that the UserGroup has access to
_tagsArrayAdd custom tags to the File
_fileVersionFileVersionVersion details
_uploadMetaUploadMetaUpload metadata if the file is uploaded as a resumable file upload
_urlStringFile download URL that lasts 48 hours. Only appears as part of a request specific to get the download URL, such as GET /files/:id/url api response or IafFileSvc.getFileUrl().

FileContainer​

Type: NamedFileCollection

PropertyTypeDescription
_versionFileContainerVersionversion

FileContainerVersion​

Type: NamedFileCollectionVersion

PropertyTypeDescription
_userAttributesJSONit contains 'path' refers to file container(folder) path, '/' for root container

FileCriteria​

Criteria to target a source file in the File Service.

Type: Object

PropertyTypeDescription
_namespaces(Array<String> | String)Namespaces to filter. Please note that these namespaces must be present in nsfilter. If its not provided get files from all the namespaces in the nsfilter
_parentsStringFolder id to filter. Without an id, the request considers files from all folders. Use 'root' to filter by a root folder.
_idsStringA comma separted string of file ids to search.
_tags(Array<String> | String)A tag or array of tags to filter by. It supports both regex and exact match.
tagModeUNKNOWN: OptionalTypeControls how multiple values are combined. Use (default) to return files that match any of the tags, or to return only files that match all of the tags. Omitting this property defaults to behavior. Passing any other value results in a 400 error.
_nameStringFilter by file name. Supports regex.
Examples
// Get all the files from all the folders from namespaces in the ctx
let criteria = {}
let files = IafFileSvc.getFiles(criteria, ctx);

// Get all files from root folder
let criteria = {"_parents": "root"}
let res = await IafFileSvc.getFiles(criteria, ctx);

// Get all files from specific folder
let criteria = {"_parents": "5a25417d-1408-42d4-b9a2-812be53bb111"}
let res = await IafFileSvc.getFiles(criteria, ctx);

// Get all files by ids
let criteria = {"_ids": "5a25417d-1408-42d4-b9a2-812be53bb111,f3dc8288-39f1-4d7c-9b4b-51fe364db874,bf03bc5f-bfe4-40f4-91fd-5ece6effbe99"}
let res = await IafFileSvc.getFiles(criteria, ctx);

// Get all bimpk files
let criteria = {"_name":".*bimpk"}
let res = await IafFileSvc.getFiles(criteria, ctx);

// Get files tagged "book" OR "movie" (default behavior — tagMode omitted)
let criteria = {"_tags": ["book", "movie"]}
let res = await IafFileSvc.getFiles(criteria, ctx);

// Get files tagged "book" OR "movie" (explicit or)
let criteria = {"_tags": ["book", "movie"], tagMode: "or"}
let res = await IafFileSvc.getFiles(criteria, ctx);

// Get files tagged both "book" AND "movie"
let criteria = {"_tags": ["book", "movie"], tagMode: "and"}
let res = await IafFileSvc.getFiles(criteria, ctx);

FileHeaders​

These headers will be applied to the HTTP response during download if they were specified during upload.

Type: Object

PropertyTypeDescription
nullString"content-type" - Mime type of the file, Ex: image/png, application/pdf or image/svg+xml
nullString"content-encoding" - Content encoding type. Ex: gzip

FileItem​

An object that represents a source file with user-created properties that can be related to NamedUserCollection types and other RelatedItem types.

Type: RelatedItem

PropertyTypeDescription
_fileIdStringRefers to the source file's id in File Service
_fileVersionIdStringRefers to the source file version's id in File Service

FileOptions​

Use to define a file name and headers for a source file you upload.

Type: Object

PropertyTypeDescription
headersFileHeadersProvide headers, for example, for content encoding or content type.
filenameStringFile name. If you do not provide a file name, the platform tries to get file name from file stream.
Examples
// Upload gzip file
let options = {'headers': {'Content-Encoding': 'gzip'}, 'filename': 'gzipFile.gzip'};

// Define content type
let options = {'headers': {'Content-Type': 'image/png'}, 'filename': 'warrantyData.png'};

FilePreviewOptions​

Options for displaying a preview. Currently it is only available for images and it is generated 640x480 dimension only.

Type: Object

PropertyTypeDescription
widthNumberPreview image width.
heightNumberPreview image height

FileVersion​

A version of a source file

Type: Object

PropertyTypeDescription
_idStringThe FileVersion's id
_versionNumberThe version number
_fileSizeNumberThe file's memory size
_fileIdStringId reference of the source file
_checksumStringSHA-256 checksum of the stored file content. May be if not yet computed (resumable uploads compute it shortly after completion via a background task, not in the same request) or for versions created before this field existed.
_urlStringFile download URL that lasts 48 hours. Only appears as part of a request specific to get the download ULR, such as GET /files/:id/versions/:versionId/url api response or IafFileSvc.getFileVersionUrl().

GeometryView​

Use the GeometryView type to define a geometry view.

Type: Object

PropertyTypeDescription
indexNumberEnter the index of your view to identify it in an array of views from a model
labelStringView title
valueStringFile id that represents the view

GetApplicationOptions​

Type: Object

PropertyTypeDescription
withConfigsbooleanInclude configuration details in the response.

GetFileOptions​

Type: Object

PropertyTypeDescription
_offsetStringSets the number of results to skip in the Page response. For example, set to to skip the first 10 results. Default is 0.
_pageSizeStringSets the number of results to return per Page in the response. Default is 25.

GetMcpToolFilterCriteria​

Type: Object

PropertyTypeDescription
_userTypeStringFilter by user type
queryStringWild card search that operates on the name and description, for example, ?query=data
_nameStringFilter by MCP tool filter name.

GraphicsDataReadOptions​

Pagination controls for retrieving graphics data by type.

Type: Object

PropertyTypeDescription
pageSizeNumberNumber of records to request per page.
fetchAllPagesBooleanSet false to stop after the first page response.

GraphicsFile​

Represents a graphics source file in the File Service.

Type: Object

PropertyTypeDescription
_fileIdStringThe id of the graphics file in the File Service.
_fileVersionIdStringThe id of the graphics file version in the File Service. If not provided, the tip version is used.
_fileNameStringThe File Service name of the graphics file. The Graphics Service fills in its value.

GraphicsFileSet​

Represents a group of source files.

Type: Object

PropertyTypeDescription
_idStringId of the FileSet.
_userIdStringId of the user who created the FileSet
_filesArray<GraphicsFile>Files you want to be part of this FileSet

IafActionDescriptor​

Type: Object

PropertyTypeDescription
actionsArray<String>
descJSONcriteria with key value pair

IafPermissionDescriptor​

It defines permissions for various resources. It usually helps to define permissions for a user group in a project while creating the user group.

Type: Object

PropertyTypeDescription
accessAllbooleanProvide all actions to all the resources for a given namespace. If it's true then all other resources defined below will be ignored.
workspacesArray<IafActionDescriptor>
namedUserItemsArray<IafActionDescriptor>
namedUserCollsArray<IafActionDescriptor>
filesArray<IafActionDescriptor>
scriptsArray<IafActionDescriptor>
userConfigsArray<IafActionDescriptor>
permissionProfilesArray<IafActionDescriptor>
apiconfigdefsArray<IafActionDescriptor>
orchestratorArray<IafActionDescriptor>
telemetryconfigsArray<IafActionDescriptor>
usergroupsArray<IafActionDescriptor>Define allowed permission actions for a user group on the same user group. For example, if the permissions are given as ["READ", "EDIT"], the members of the user group can read and edit the user group.

ImpactAnalysisReport​

Represents an impact analysis report: what would change if a draft or published version of an ontology replaced the live one.

Type: Object

PropertyTypeDescription
_idStringThe report's id.
_ontologyIdStringThe id of the ontology the report belongs to.
_nameStringThe report's name, such as .
_statusStringThe report's status: while it is being made, then or .
_versionFromNumberThe number of the requested version.
_versionFromIdStringThe id of the requested version, .
_versionToNumberThe number of the version that was live when the report was requested.
_versionToIdStringThe id of the version that was live when the report was requested, .
_reportUNKNOWN: OptionalTypeThe report's contents: (change and affected-record counts), and . Present once the report is , and only when you get a report by its id.
_failureReasonUNKNOWN: OptionalTypeWhy the report could not be made. Present when the report is .
_createdAtStringWhen the report was requested, as an ISO-8601 date.
_createdByStringThe id of the user who requested the report.
_updatedAtStringWhen the report last changed, as an ISO-8601 date.
_updatedByStringThe id of the user who last changed the report.

ImpactAnalysisReportCriteria​

Filters an ontology's impact analysis reports.

Type: Object

PropertyTypeDescription
queryUNKNOWN: OptionalTypeA MongoDB-style filter on any report field, using a bare value or , , , , , , or . For example, or . and take ISO-8601 dates.

ImpactAnalysisReportRequest​

Names the version an impact analysis report compares against the live one. Pass either property; if you pass both, is used.

Type: Object

PropertyTypeDescription
_versionFromUNKNOWN: OptionalTypeThe version's number, such as . Must not be the live version.
_versionFromIdUNKNOWN: OptionalTypeThe version's id, such as .

ImpactAnalysisReportRequestOptions​

Options for IafAOSvc.requestImpactAnalysisReport, controlling whether and how it waits for the report to finish.

Type: Object

PropertyTypeDescription
pollUNKNOWN: OptionalTypeSet to to resolve once the report is or instead of as soon as it is stored. Default: .
pollMilliSecsUNKNOWN: OptionalTypeMilliseconds to wait between poll attempts. Default: .
maxPollUNKNOWN: OptionalTypeMaximum number of poll attempts before the request is rejected with a timeout error. Default: .

Index​

Type: Object

PropertyTypeDescription
keyJSONProperties to index
optionsJSONPass your index options

Invite​

Use the Invite type to define a user invite to a project or user group.

Type: Object

PropertyTypeDescription
_idStringInvite UUID
_emailStringEmail address to send the invite to
_expireTimeNumberThe system generates a expiry time for the invite, which is seven days from the invite creation.
_userExistsbooleanThe system determines if the user's email address is registered or not.

InviteCriteria​

Find Invites by criteria

Type: Object

PropertyTypeDescription
_statusArray<String>Filter invites by the statuses you pass in the array in which it can be "PENDING", "ACCEPTED", "REJECTED", "CANCELLED", or "EXPIRED".

InviteOptions​

Use the InviteOptions type to add response options for Invite queries.

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response
includeAllbooleanSet to true to include all the invites instead of particular page

InviteParams​

Type: Object

PropertyTypeDescription
invite_linkStringinvite link which user will be clicked in the email, invite id would be appended by the system
typeStringtype of invite(Ex: Project)
nameStringname of the invite (Ex: Project name)
inviter_nameStringinviter's name

ItemsvcOptions​

Use to set response options for Item Service requests.

Type: Object

PropertyTypeDescription
transactionalbooleanSet to true to make POST, PUT or DELETE requests transactional.
headersObjectCustom headers to send with the request. Required as when creating a NamedUserCollection with set, marking or releasing a NamedUserCollection's , or mutating a NamedUserCollection (or its RelatedItems, Relationships, or Readings) that already has set - see .
Examples
// Creating or mutating a NamedUserCollection owned by AO Service
let options = {
headers: {
"x-client-id": "aosvc",
"x-client-secret": "<aosvc-client-secret>"
}
};

KnowledgeBase​

Represents a KnowledgeBase resource.

Type: Object

PropertyTypeDescription
_idStringThe id of the knowledge base resource.
_nameStringName of the knowledge base.
_fileIdStringSource file id stored in file service.
_fileVersionIdStringVersion id of the file.
_vectorizedStatusStringVectorization status, e.g., VECTORIZED or PENDING.
_userTypeStringUser type identifier for knowledge base.
_namespacesArray<String>Namespaces associated with the knowledge base.
_irnStringInternal resource name.
_metadataObjectMetadata containing createdAt, updatedAt, createdById, updatedById.

KnowledgeBaseCriteria​

Criteria for filtering KnowledgeBase resources.

Type: Object

PropertyTypeDescription
_idStringFilter by id.
_nameStringFilter by name.
_userTypeStringFilter by user type.
_vectorizedStatusStringFilter by vectorization status such as PENDING, VECTORIZED and FAILED.
queryStringWildcard search against name

LegacyAppTokenResponse​

Response shape for IafPassSvc.getAppToken (the deprecated v1 endpoint, proxied to passportsvc-legacy).

Type: TokenResponse

PropertyTypeDescription
access_key_idStringThe UUID of the User Access Key used to authenticate.

LlmModel​

Represents the available LLM models for a single provider, as returned by .

Type: Object

PropertyTypeDescription
_providerStringThe LLM provider key (for example, or ).
_modelsArray<LlmModelName>The list of models available for the provider.

LlmModelCriteria​

Filter parameters for .

Type: Object

PropertyTypeDescription
_providerStringRequired, the LLM provider key (for example, or ).
nsfilterStringRequired, the namespace filter required by AISvc.

LlmModelName​

A single LLM model entry within an LlmModel.

Type: Object

PropertyTypeDescription
_modelNameStringThe model identifier (for example, or ).

LLMProvider​

A detailed LLM provider entry, returned by when is .

Type: Object

PropertyTypeDescription
_nameStringThe provider name (for example, or ).
_secretNameStringThe credentials-vault secret name the provider's API key must be stored under (for example, ).

LLMProviderCriteria​

Query parameters for .

Type: Object

PropertyTypeDescription
detailedUNKNOWN: OptionalTypeWhen , returns detailed provider objects (including secret names) instead of the default provider-name list. Omit or pass for the default response.

McpTool​

Represents an MCP Tool that exposes an existing script via the Model Context Protocol.

Type: Object

PropertyTypeDescription
_idStringThe id of the MCP tool resource.
_namespacesArray<String>Required, The namespace(s) of the resource.
_nameStringRequired, MCP tool name. Must match and be unique.
_descriptionStringDescription of what the MCP tool does.
_schemaObjectRequired, JSON schema for tool input; must be an object schema with .
_typeStringMCP tool type (e.g., or ).Clients cannot set the type; it is automatically determined by the backend.
_toolConfig(Object | UNKNOWN: NullLiteral)Optional tool configuration. This may be when unset.
_scriptMcpToolScriptRequired, References the script invoked by the MCP wrapper.
_metadataAuditableDTOMetadata describing creation and updates.
_irnStringInternal resource name for permission checks.

McpToolCriteria​

MCP Tool criteria

Type: Object

PropertyTypeDescription
_nameStringFilter by MCP tool name (exact match).
_typeStringFilter by MCP tool type (for example, "user_mcp_tool" or "system_mcp_tool").
filterStringMCP tool filter resource identifier (UUID) or _userType. When provided, other criteria fields(Such as _name,_type,_toolConfig._serviceName etc) are ignored.
queryStringWild card search that operates on the name and description.

McpToolFilter​

Represents an MCP Tool Filter that controls which MCP tools are visible to an end user type.

Type: Object

PropertyTypeDescription
_idStringThe id of the MCP Tool Filter resource.
_namespacesArray<String>Required, Namespace(s) that own the filter.
_nameStringRequired, Human friendly name of the filter.
_descriptionStringOptional description describing when to use the filter.
_userTypeStringRequired, User type the filter applies to.
_criteriaMcpToolFilterCriteriaRequired, Criteria describing which MCP tools match the filter.
_metadataAuditableDTOMetadata describing creation and updates.
_irnStringInternal resource name for permission checks.

McpToolFilterCriteria​

Describes the match rules for an MCP Tool Filter. Each field supports either a string literal match or an object with / operators.

Type: Object

PropertyTypeDescription
_nameUNKNOWN: OptionalTypeFilters by MCP tool name.
_serviceNameUNKNOWN: OptionalTypeFilters by MCP tool service name.
_typeUNKNOWN: OptionalTypeFilters by MCP tool type.

McpToolFilterCriterion​

Extended matching operators for MCP Tool Filter criteria fields.

Type: Object

PropertyTypeDescription
$inUNKNOWN: OptionalTypeMatches MCP tools whose field value is included in the provided list.
$regexUNKNOWN: OptionalTypeMatches MCP tools whose field value satisfies the provided regular expression.

McpToolScript​

Script reference information for an MCP Tool.

Type: Object

PropertyTypeDescription
_userTypeStringRequired, Script user type that owns the script.
_scriptNameStringRequired, Script name that is executed.

NamedFileCollection​

A user-created FileItem collection. The NamedFileCollection class is a subclass of the NamedUserCollection class and inherits its properties and the properties the NamedUserCollection class itself inherits.

Type: NamedUserCollection

PropertyTypeDescription
_versionNamedFileCollectionVersionA given version of the NamedFileCollection.

NamedFileCollectionVersion​

Type: NamedUserCollectionVersion

NamedUserCollection​

A user-created RelatedItem collection. The NamedUserCollection class is a subclass of the NamedUserItem class and inherits its properties.

Type: NamedUserItem

PropertyTypeDescription
_versionNamedUserCollectionVersionA given version of the NamedUserCollection.
_encryptionEnabledBooleanEnables encryption for the NamedUserCollection. If set to True then any related items prefixed with a . will be encrypted.
_sourceUNKNOWN: OptionalTypeIdentifies the platform service that owns this collection, for example for AO Service. When set, CREATE/EDIT/DELETE on this collection and its RelatedItems, Relationships, and Readings additionally require / headers matching that service's credentials (see ). Set by Item Service from the authenticated client id when the collection is created with client credentials, or later with ; removed with . It can't be added, changed, or removed through a regular edit. Absent for collections not owned by a platform service.

NamedUserCollectionVersion​

Type: NamedUserItemVersion

NamedUserItem​

The foundational item type in the platform. All NamedUserItem subclasses, such as NamedUserCollection subclasses as well as UserConfig and Script subclasses inherit the properties of this class.

Type: Object

PropertyTypeDescription
_idStringThe NamedUserItem's database id
_nameStringA readable, long-form name
_descriptionStringA string that describes the purpose of the NamedUserItem class instance
_shortNameStringShorter abbreviation of the NamedUserItem name that is used for reference
_userTypeStringA user-given name to identify a NamedUserItem. This userType is helpful for queries to find a unique item with a unique userType or NamedUserItems that share a userType.
_userItemIdStringA unique id value generated by the Item Service.
_versionNamedUserItemVersionContain's version data

NamedUserItemCriteria​

Query criteria you can pass in Item Service platform APIs to target specific NamedUserItem classes based on your query. The NamedUserItem has below fields, _id - The NamedUserItem's database id _name - A readable, long-form name, _shortName - Shorter abbreviation of the NamedUserItem name that is used for reference, _userType - A user-given name to identify a NamedUserItem. This userType is helpful for queries to find a unique item with a unique userType or NamedUserItems that share a userType. _userItemId - A unique id value generated by the Item Service. _itemClass - It defines the of the Named User Item will be on of them (NamedUserCollection, NamedTelemetryCollection, NamedFileCollection, Script, UserConfig and NamedCompositeItem). The query follows mongoDB syntaxes and should be build using these fields.

Type: Object

PropertyTypeDescription
queryJSONSimple JSON filter that follows MongoDB syntax (field/value pairs, , , comparison operators) against NamedUserItem fields such as _id - The NamedUserItem's database id _name - A readable, long-form name, _shortName - Shorter abbreviation of the NamedUserItem name that is used for reference, _userType - A user-given name to identify a NamedUserItem. This userType is helpful for queries to find a unique item with a unique userType or NamedUserItems that share a userType. _userItemId - A unique id value generated by the Item Service. _itemClass - It defines the of the Named User Item will be on of them (NamedUserCollection, NamedTelemetryCollection, NamedFileCollection, Script, UserConfig and NamedCompositeItem). The query follows mongoDB syntaxes and should be build using these fields.
Examples
// simple filter examples
let query = {"_usertype": "project_setup","_name": "projectSetup"}
let query = {"_id": {"$in": ["5c9328e8b834740001cd95d4","5c9328e8b834740001cd95d4"]}}

// Complex query
let query = {
"$and": [
{
"_userType": "file_container",
"_name": "Root Container"
}
],
"$or": [
{
"_tipVersion": 1
},
{
"_id": {
"$in": ["5c9328e8b834740001cd95d4","5d31574411efe92d8832c21c"]
}
}
]
}

// Query with version
let query = {
"$and": [
{
"_userType": "platform_setup_script",
"_name": "setup_script"
}
],
"$or": [
{
"_versions._userAttributes.key": "value"
},
{
"_id": {
"$in": ["5c9328e8b834740001cd95d4", "5d31574411efe92d8832c21c"]
}
}
]
}

// Query with all versions
let query = {
"$and": [
{
"_name": "setup_script",
"_userType":"platform_setup_script"
}
],
"$or": [
{
"_versions._userAttributes.key": "version2Value"
},
{
"_versions._userAttributes.config": {
"$in":["value1","value2"]
}
}
],
"_versions.all": true
}

NamedUserItemCriteriaOptions​

/** Define response options for NamedUserItems with Item Service platform APIs.

Type: Object

PropertyTypeDescription
projectJSONPass an object that contains one or more projection criteria specifiers.
sortJSONPass an object that contains one or more sort criteria specifiers. Set a property to 1 to sort ascending and -1 to sort descending.
pagePageRequestPass an object that contains one or more pagination options.
pagedResbooleanSet to true to get a Page class result rather than an array, which is the default. The default page size is 200, which is also the maximum.
Examples
// Simple options
let options = {
"project":{ "_userType": 1, "_itemClass": 1},
"sort": { "_name": 1 },
"page": { "_offset": 10, "_pageSize": 20 }
}

// with versions
let options = {
"project": { "_userType": 1, _versions._userAttributes.classification_system_name: 1 },
"sort": { "_name": 1},
"page": { "_offset": 10, "_pageSize": 20}
}

NamedUserItemVersion​

Represents a version of a given NamedUserItem, contained in the NamedUserItem's _version array.

Type: Object

PropertyTypeDescription
_idStringThe NamedUserItemVersion's database id
_userAttributesJSONAdd custom key-value pairs. Add the attribute name to the key, for example, _userAttributes.<attribute_name>: <attribute_value>
_versionNumberThe version number, which is generated and not editable
_userItemIdStringRefers to the _userItemId value in the parent NamedUserItem
_itemClassStringRefers to the _itemClass value in the parent NamedUserItem
_userItemDbIdStringRefers to the _id value in the parent NamedUserItem

NamedUserItemVersionCloneOptions​

When you clone NamedUserCollections, pass a NamedUserItemVersionCloneOptions object to define if you also want to clone the NamedUserCollections's relationships and inverse relationships.

Type: Object

PropertyTypeDescription
relationshipsbooleanFor NamedUserCollections, set to true to also clone the NamedUserCollection's relationships
inverseRelationshipsbooleanFor NamedUserCollections, set to true to also clone the NamedUserCollection's inverse relationships

NamedUserItemVersionCriteria​

Query criteria you can pass in Item Service platform APIs to target specific NamedUserItemVersion classes based on your query.

Type: Object

PropertyTypeDescription
queryJSONPass a simple query
Examples
// simple filter examples
let query = { "_userAttributes.fileId": "4e2b9de5-9a73-44f9-8153-bc0904b694c5" }
let query = { "_id": {"$in": ["5c9328e8b834740001cd95d4","5c9328e8b834740001cd95d4"]}}

// complex query
let query = {
"$and": [
{
"_userAttributes.fileId" :"4e2b9de5-9a73-44f9-8153-bc0904b694c5",
"_userAttributes.name": "Sample"
}
],
"$or": [
{
"_id": {
"$in": [ "5c9328e8b834740001cd95d4","5d31574411efe92d8832c21c" ]
}
}
]
}

Namespace​

The Namespace type to define in the Passport Service.

Type: Object

PropertyTypeDescription
_idStringNamespace UUID, which the platform attributes after the Namespace is created
_nameStringName of the Namespace provider either Application name, Organization name, Workspace name or Usergroup name
_namespaceStringThe namespace
_providerTypeStringThe type of the Namespace provider either Application, Organization, Workspace or Usergroup
_providerIdStringThe unique id of the Namespace provider

NamespaceCriteria​

Criteria to find one or more Namespace(s)

Type: Object

PropertyTypeDescription
_namespaceStringnamespace filter. For one namespace, pass the namespace name as a string: "NS1". For multiple namespaces, pass a single string that concatenates key-value pairs with , for example: "_namespace=NS1&_namespace=NS2".

NamespaceOptions​

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response

NotificationAuthorization​

Represents a notification authorization

Type: Object

PropertyTypeDescription
_idStringThe id of the resource
_namespacesArray<String>The namespace(s) of the resource.
_createdAtDateThe timestamp for resource creation
_updatedAtDateThe timestamp for resource modification
_versionNumberThe current version of the resource (used for optimistic concurrency)
_nameStringThe resource name
_descriptionStringThe resource description
_typeNotificationAuthorizationTypeThe authorization type
_hmacNotificationAuthorizationHmacConfiguration for a HMAC authorization (only accepted/present if the type is HMAC)
_basicNotificationAuthorizationBasicConfiguration for a Basic authorization (only accepted/present if the type is BASIC)
_apiKeyNotificationAuthorizationApiKeyConfiguration for an API Key authorization (only accepted/present if the type is API_KEY)

NotificationAuthorizationApiKey​

Represents a notification authorization Basic configuration

Type: Object

PropertyTypeDescription
_headerMap<StringString>The header that the API key will be sent in
_valueNotificationSecretThe API key value

NotificationAuthorizationBasic​

Represents a notification authorization Basic configuration

Type: Object

PropertyTypeDescription
_userMap<StringString>The username
_passwordNotificationSecretThe password

NotificationAuthorizationHmac​

Represents a notification authorization HMAC configuration

Type: Object

PropertyTypeDescription
_apiKeyMap<StringString>The HMAC API key
_secretKeyNotificationSecretThe HMAC secret key

NotificationAuthorizationQuery​

Represents a notification authorization query

Type: Object

NotificationAuthorizationType​

Represents a notification trigger type

Type: (UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType)

NotificationDevice​

Represents a notification device

Type: Object

PropertyTypeDescription
_idStringThe id of the resource
_ownerNotificationOwnerThe owner of the device
_createdAtDateThe timestamp for resource creation
_updatedAtDateThe timestamp for resource modification
_versionNumberThe current version of the resource (used for optimistic concurrency)
_transportNotificationTransportThe notification transport type for this device
_emailNotificationDeviceEmailConfiguration for an email device
_statusNotificationDeviceStatusCurrent status of the device

NotificationDeviceEmail​

Represents a notification email device configuration

Type: Object

PropertyTypeDescription
_addressStringEmail address

NotificationDeviceQuery​

Represents a notification group query

Type: Object

PropertyTypeDescription
idsArray<String>The ids to match
ownerNotificationOwnerQueryThe owner to match

NotificationDeviceStatus​

Represents a notification sender redirect

Type: (UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType)

NotificationGroup​

Represents a notification group

Type: Object

PropertyTypeDescription
_idStringThe id of the resource
_namespacesArray<String>The namespace(s) of the resource.
_createdAtDateThe timestamp for resource creation
_updatedAtDateThe timestamp for resource modification
_versionNumberThe current version of the resource (used for optimistic concurrency)
_nameStringThe resource name
_descriptionStringThe resource description

NotificationGroupQuery​

Represents a notification group query

Type: Object

PropertyTypeDescription
idsArray<String>The ids to match
namespacesArray<String>The namespace(s) to match
nameStringThe names to match

NotificationNotification​

Represents a notification (i.e. sent history)

Type: Object

PropertyTypeDescription
_idStringThe id of the resource
_namespacesArray<String>The namespace(s) of the resource.
_ownerNotificationOwnerThe owner of the resource
_createdAtDateThe timestamp for resource creation
_updatedAtDateThe timestamp for resource modification
_versionNumberThe current version of the resource (used for optimistic concurrency)
_templateNotificationTemplateThe template used to generate this notification
_triggerNotificationTriggerThe trigger that caused this notification
_senderNotificationSenderThe sender that sent this notification
_subscriptionNotificationSubscriptionThe subscription that caused this notification
_transportNotificationTransportThe transport type
_emailNotificationTemplateEmailThe email notification body (if transport type is email)

NotificationNotificationQuery​

Represents a notification query

Type: Object

PropertyTypeDescription
idsArray<String>The ids to match
namespacesArray<String>The namespace(s) to match
ownerNotificationOwnerQueryThe owner to match
nameStringThe names to match

NotificationOwner​

Represents a notification device owner

Type: Object

PropertyTypeDescription
_irnStringOwner IRN

NotificationOwnerQuery​

Represents a notification device owner

Type: Object

PropertyTypeDescription
irnStringOwner IRN

NotificationScript​

Represents a notification script

Type: Object

PropertyTypeDescription
_userTypeStringThe userType of the script to execute.
_nameStringThe name of the script function to execute.
_accessTokenStringCustom access token that the script will run with (write-only), if not specified the current user's access token will be used.
_permissionProfileNotificationScriptPermissionProfileOptional permission profile to execute the script with.

NotificationScriptPermissionProfile​

Represents a notification script permission profile reference

Type: Object

PropertyTypeDescription
_idStringThe id of the permission profile

NotificationSecret​

Represents a reference to a secret stored in Passport service.

Type: Object

PropertyTypeDescription
_nameStringThe name of the secret

NotificationSender​

Represents a sender

Type: Object

PropertyTypeDescription
_idStringThe id of the resource
_namespacesArray<String>The namespace(s) of the resource.
_createdAtDateThe timestamp for resource creation
_updatedAtDateThe timestamp for resource modification
_versionNumberThe current version of the resource (used for optimistic concurrency)
_nameStringThe resource name
_descriptionStringThe resource description
_transportNotificationTransportThe notification transport type for this sender
_emailNotificationSenderEmailEmail sender configuration
_templatesMap<NotificationSenderActionNotificationTemplate>Templates to use for each pre-defined sender action
_redirectsMap<NotificationSenderRedirectString>Redirect URLs for each pre-defined sender redirect step

NotificationSenderAction​

Represents a notification sender action

Type: UNKNOWN: StringLiteralType

NotificationSenderEmail​

Represents a notification email sender configuration

Type: Object

PropertyTypeDescription
_addressStringThe sender address
_displayNameStringThe sender displayName

NotificationSenderQuery​

Represents a notification group query

Type: Object

PropertyTypeDescription
idsArray<String>The ids to match
namespacesArray<String>The namespace(s) to match
nameStringThe names to match

NotificationSenderRedirect​

Represents a notification sender redirect

Type: (UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType)

NotificationSubscription​

Represents a notification subscription

Type: Object

PropertyTypeDescription
_idStringThe id of the resource
_typeStringThe subscription type, if not specified, defaults to DEVICE
_namespacesArray<String>The namespace(s) of the resource.
_groupNotificationGroupThe group to subscribe to
_deviceNotificationDeviceThe device to subscribe with (only accepted/present if the type is DEVICE)
_webhookNotificationSubscriptionWebhookThe device to subscribe with (only accepted/present if the type is WEBHOOK)
_statusNotificationSubscriptionStatusCurrent status of the subscription
_versionNumberThe current version of the resource (used for optimistic concurrency)
_requestedAtDateThe last time an attempt was made to confirm the subscriber
_acceptedAtDateThe last time the subscription was accepted
_cancelledAtDateThe last time the subscription was cancelled

NotificationSubscriptionQuery​

Represents a notification group query

Type: Object

PropertyTypeDescription
idsArray<String>The ids to match
namespacesArray<String>The namespace(s) to match
nameStringThe names to match

NotificationSubscriptionStatus​

Represents a notification sender redirect

Type: (UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType)

NotificationSubscriptionType​

Represents a subscription type

Type: (UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType)

NotificationSubscriptionWebhook​

Represents the webhook configuration for a WEBHOOK type notification subscription

Type: Object

PropertyTypeDescription
_methodStringThe HTTP method to use for the webhook request
_urlStringThe URL to send the webhook request to
_queryMap<StringString>The query string parameters
_headersMap<StringString>The HTTP headers to send with the webhook request
_bodyStringThe body of the webhook request (Velocity template string)
_authorizationNotificationAuthorizationReference to an Authorization for the webhook request

NotificationSvcCreateOptions​

Represents a notification-service specific create options

Type: Object

NotificationSvcDeleteOptions​

Represents a notification-service specific create options

Type: Object

PropertyTypeDescription
versionNumberOptimistic concurrency version

NotificationSvcGetOptions​

Represents a notification-service specific create options

Type: Object

NotificationSvcListOptions​

Represents a notification-service specific create options

Type: Object

PropertyTypeDescription
offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
countNumberSets the number of results to return per Page in the response

NotificationSvcUpdateOptions​

Represents a notification-service specific create options

Type: Object

PropertyTypeDescription
versionNumberOptimistic concurrency version

NotificationTemplate​

Represents a notification template

Type: Object

PropertyTypeDescription
_idStringThe id of the resource
_namespacesArray<String>The namespace(s) of the resource.
_createdAtDateThe timestamp for resource creation
_updatedAtDateThe timestamp for resource modification
_versionNumberThe current version of the resource (used for optimistic concurrency)
_nameStringThe resource name
_descriptionStringThe resource description
_transportNotificationTransportThe notification transport type for this template
_emailNotificationTemplateEmailConfiguration for an email template
_formatNotificationTemplateFormatThe format used to write the template

NotificationTemplateCriteria​

Type: Object

PropertyTypeDescription
_idStringNotificationTemplate UUID
_nameStringRequired, Name of the Notification template, Unique within application
_titleStringRequired, Notification Title or Email Subject
_formatStringRequired, Type of the message, Supports text/html only
_appIdStringApplication Id that notification template belongs to
_localeStringlocale value for the template

NotificationTemplateEmail​

Represents a notification email template configuration

Type: Object

PropertyTypeDescription
_subjectStringTemplate for the subject
_bodyStringTemplate for the body

NotificationTemplateFormat​

Represents a notification template format

Type: UNKNOWN: StringLiteralType

NotificationTemplateOptions​

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response

NotificationTemplateQuery​

Represents a notification group query

Type: Object

PropertyTypeDescription
idsArray<String>The ids to match
namespacesArray<String>The namespace(s) to match
nameStringThe names to match

NotificationTransport​

Represents a notification transport type

Type: UNKNOWN: StringLiteralType

NotificationTrigger​

Represents a notification trigger

Type: Object

PropertyTypeDescription
_idStringThe id of the resource
_namespacesArray<String>The namespace(s) of the resource.
_createdAtDateThe timestamp for resource creation
_updatedAtDateThe timestamp for resource modification
_versionNumberThe current version of the resource (used for optimistic concurrency)
_nameStringThe resource name
_descriptionStringThe resource description
_typeNotificationTriggerTypeThe trigger type
_eventNotificationTriggerEventConfiguration for an event trigger
_scriptNotificationScriptScript that is called if the trigger matches and before generating the notification
_sendersArray<NotificationSender>Senders associated with this trigger
_templatesArray<NotificationTemplate>Templates associated with this trigger
_groupsArray<NotificationGroup>Groups associated with this trigger

NotificationTriggerEvent​

Represents a notification event trigger configuration

Type: Object

PropertyTypeDescription
_filtersMap<StringString>Trigger body filters (see extended description)

NotificationTriggerQuery​

Represents a notification trigger query

Type: Object

PropertyTypeDescription
idsArray<String>The ids to match
namespacesArray<String>The namespace(s) to match
nameStringThe names to match

NotificationTriggerType​

Represents a notification trigger type

Type: UNKNOWN: StringLiteralType

OmapiRequestCriteria​

Criteria for retrieving OMAPI requests.

Type: Object

PropertyTypeDescription
queryObjectKey/value filters supporting , , , , , .

OmapiRequestLogOptions​

Formatting controls when retrieving a specific OMAPI request log.

Type: Object

PropertyTypeDescription
sortObjectSort descriptor for log entries (1 asc, -1 desc).
formatStringResponse format; enables structured output.
scriptDetailsbooleanWhen true and format is JSON, attempts to include script metadata.

OmapiRequestOptions​

Pagination and sorting controls for OMAPI request listings.

Type: Object

PropertyTypeDescription
pageObjectPagination info with and .
sortObjectSort descriptor where each key maps to (asc) or (desc); e.g., .

Options​

Use the Options type to add pagination options to your API response.

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response

OrchComponentCriteria​

Filter criteria for orchestrator components.

Type: Object

PropertyTypeDescription
kindUNKNOWN: OptionalTypeComponent category name to filter orchestration components, matching values such as Connector, Processor, or Target.

OrchCriteria​

Filter criteria for retrieving orchestrators.

Type: Object

PropertyTypeDescription
_nameUNKNOWN: OptionalTypeCase-insensitive substring match on the orchestrator name.
_usertypeUNKNOWN: OptionalTypeCase-insensitive substring match on the orchestrator user type.
_descriptionUNKNOWN: OptionalTypeCase-insensitive substring match on the description text.
idUNKNOWN: OptionalTypeMatch a specific orchestrator by its id value.

OrchOptions​

Paging and sorting options for orchestrator queries.

Type: Object

PropertyTypeDescription
_pageSizeUNKNOWN: OptionalTypeLimit the number of orchestrators returned per request.
_offsetUNKNOWN: OptionalTypeSkip the specified number of orchestrators before returning results. Defaults to 0.
sortUNKNOWN: OptionalTypeObject that describes the sort key (e.g., , ) and direction.

OrchRunCriteria​

Filter criteria for orchestrator runs.

Type: Object

PropertyTypeDescription
_pageSizeUNKNOWN: OptionalTypeNumber of runs to return per page.Default value is 20.
_offsetUNKNOWN: OptionalTypeNumber of runs to skip before returning the current page.Default value is 0.
_statusUNKNOWN: OptionalTypeRun status to match. Accepts the enum names , , , , , or , which map to numeric codes 0-5 respectively.
startDateUNKNOWN: OptionalTypeReturn runs created on or after this epoch timestamp (milliseconds) based on .
endDateUNKNOWN: OptionalTypeReturn runs created on or before this epoch timestamp (milliseconds).
_orchidUNKNOWN: OptionalTypeOrchestrator UUID to scope results to a single orchestrator.
idUNKNOWN: OptionalTypeRun UUID to fetch a specific run entry.
_nameUNKNOWN: OptionalTypeCase-insensitive substring match on the run's name.
_usertypeUNKNOWN: OptionalTypeCase-insensitive substring match on the run's user type.
_descriptionUNKNOWN: OptionalTypeCase-insensitive substring match on the run's description.
sortUNKNOWN: OptionalTypeJSON string describing sort key and direction, for example . Allowed sort keys: , , , , , , , . Sort direction must be or .

OrchRunLogCriteria​

Criteria for orchestrator run log retrieval.

Type: Object

PropertyTypeDescription
parseJsonUNKNOWN: OptionalTypeSet to to have the service parse the raw log text into JSON entries; omit or set to any other value to receive the log as plain text.

OrchSort​

Sort descriptor for orchestrator queries.

Type: Object

PropertyTypeDescription
sortkeyStringField to sort by, such as , , or .
sortbyStringSort direction. Pass for ascending order or for descending order.

Organization​

Type: Object

PropertyTypeDescription
_idStringOrganization UUID
_nameStringRequired, Organization name
_userTypeStringUser type
_namespacesStringNamespaces, Auto generated
_orgOwnerStringRequired, Organization user's email
_shortNameStringshortname, _name will be short name if it not provided. (namespace will be generated based on it)

OrganizationConfigs​

Type: Object

OrganizationCriteria​

Type: Object

PropertyTypeDescription
_idStringproject UUID
_descriptionStringproject description
_nameStringproject name
_shortNameStringshort name
queryStringWild card search on name, short name and description(For ex: ?query=admin)

OrganizationOptions​

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response

OrganizationUserCriteria​

Type: Object

PropertyTypeDescription
queryStringIt contains to do wild card search on user's first name,lastname and email

OrganizationUserOptions​

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response

Page​

The object class returned in a response that describes the response's pagination options, response items total count, and the reponse items themselves.

Type: Object

PropertyTypeDescription
_pageSizeNumberThe response page size
_offsetNumberThe response offset
_totalNumberThe total count of items in the response
_listArray<T>An array of the response items

PageRequest​

Type: Object

PropertyTypeDescription
_offsetNumberoffset
_pageSizeNumberNumber of items in the page

PasswordPolicy​

Type: Object

PropertyTypeDescription
textStringpassword criteria text
regexStringRegex to validate the criteria

Permission​

Use a Permission type to define resource permissions

Type: Object

PropertyTypeDescription
_idStringPermission UUID
_namespaceStringNamespace that the permission pertains to
_resourceDescResourceDescriptorPass a ResourceDescriptor object to target the resources that the permission pertains to
_userPermissionUserPermission user
_configJSONStores additional details about the permission
_actionsArray<String>Pass an array of permitted actions on the described resources for the permission. The following list shows the possible actions: "READ", "WRITE", "SHARE", "". To permit all actions, use "".

PermissionActionCriteria​

Type: Object

PropertyTypeDescription
_svcStringService name filter. For example, "filesvc"
_resourceStringResource type filter. For example, "file"

PermissionActionOptions​

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response
_includeAllbooleanSet to true to include the list all possible actions for the service and resource types

PermissionActions​

Type: Object

PropertyTypeDescription
_svcStringThe service associated with the permission action.
_resourceStringThe specific resource within the service that the permission action targets.
_actionsArray<String>A list of actions that are permitted for the resource. Possible values include "READ", "CREATE", "EDIT", "DELETE".

PermissionCriteria​

Use a PermissionCriteria type to filter permissions based on the criteria you set.

Type: Object

PropertyTypeDescription
_namespaceStringOne or more namespaces that the permissions pertain to. For one namespace, pass the namespace name as a string: "NS1". For multiple namespaces, pass a single string that concatenates key-value pairs with , for example: "_namespace=NS1&_namespace=NS2".
patternmatchStringPass the string "true" to consider the value as a pattern. Use this option to get permissions with IRNs that match the IRN pattern you pass. It treats the IRN you pass as a pattern and looks up database IRNs as text to match. By default, is set to false.
Examples
Platform looks up permissions in two ways
1. Look up permissions for given IRN
2. Lookup permissions for given pattern

Consider below irns in the DB
- itemsvc:nameduseritems:*
- itemsvc:nameduseritems:63246b6cc6b43b33ef3d5e2a
- *:*:*

1. Look up permissions for given IRN
It considers irn in the DB as pattern and irn in the query string as text to match. It will get permissions for given resource. For above irns, It works as below

_resourceDesc._irn=itemsvc:nameduseritems:* matches itemsvc:nameduseritems:* and *:*:*
_resourcesDesc._irn=itemsvc:nameduseritems:63246b6cc6b43b33ef3d5e2a matches all the irns, meaning if a user has access for *:*:* permission then he would have also have this irn.
_resourcesDesc._irn=*:*:* matches *:*:* only

2. Lookup permissions for given pattern
It considers irn in the querystring as pattern and irn in the DB as text to match. It would be used to get multiple permissions matching for given pattern. The same input would have different results.

_resourceDesc._irn=itemsvc:nameduseritems:* matches itemsvc:nameduseritems:* and itemsvc:nameduseritems:63246b6cc6b43b33ef3d5e2a
_resourcesDesc._irn=itemsvc:nameduseritems:63246b6cc6b43b33ef3d5e2a matches itemsvc:nameduseritems:63246b6cc6b43b33ef3d5e2a
_resourcesDesc._irn=*:*:* matches all the irns

Given below the examples with other criteria

Example 1: Fetch permissions for current user for a resource
Criteria: _namespace=NS1&_resourceDesc._irn=itemsvc:nameduseritems:63246b6cc6b43b33ef3d5e2a

Exmaple 2: Fetch permissions for all the users for a resource. The session user should have SHARE permissions since the user is trying to get permissions for other users
Criteria: _namespace=NS1&_resourceDesc._irn=itemsvc:nameduseritems:63246b6cc6b43b33ef3d5e2a&_user._id=*&_user._type=user

Exmaple 3: Fetch permissions for specific user for a resource. The session user should have SHARE permissions since the user is trying to get permissions for other user
Criteria: _namespace=NS1&_resourceDesc._irn=itemsvc:nameduseritems:63246b6cc6b43b33ef3d5e2a&_user._id=<user_id>&_user._type=user

Example 4: Fetch permissions for current user for a resource with _resourceDesc._criteria matched
Criteria: _namespace=NS1&_resourceDesc._irn=itemsvc:nameduseritems:*&_resourceDesc._criteria._userType=iaf_ext_elements

Example 5: Fetch permissions by pattern match
Criteria: _namespace=NS1&_resourceDesc._irn=itemsvc:nameduseritems:*&patternmatch=true
Result: It returns permissions for namespace/irn and for matching the given pattern. The result will have union of both lookups

PermissionOperation​

Use the PermissionOperation type to create objects that define a permission set for a user.

Type: Object

PropertyTypeDescription
createbooleanGrants user create access
readbooleanGrant user read access
updatebooleanGrant user update access
deletebooleanGrant user delete access
sharebooleanGrant user share access

PermissionOptions​

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response

PermissionProfile​

Type: Object

PropertyTypeDescription
_idStringPermissionProfile UUID
_userTypeStringEnter a string name that makes the permission profile unique or a string that is shared to identify permission profiles of the same type.
_nameStringPermission profile name
_namespacesArray<String>Namespaces that the permission profile pertains to
_permissionsArray<ProfilePermission>An array of ProfilePermission objects

PermissionProfileCriteria​

Type: Object

PermissionProfileOptions​

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response

PermissionUser​

Type: Object

PropertyTypeDescription
_idStringEnter a User or UserGroup UUID
_typeStringEnter or

PollOptions​

Options for IafHelper.doPoll, controlling request headers and poll timing.

Type: Object

PropertyTypeDescription
headersUNKNOWN: OptionalTypeAdditional HTTP headers to send with each poll request. Default: .
maxPollUNKNOWN: OptionalTypeMaximum number of poll attempts before the request is rejected with a timeout error. Default: .
pollMilliSecsUNKNOWN: OptionalTypeMilliseconds to wait between poll attempts. Default: .

PrincipalInfo​

Type: Object

PropertyTypeDescription
_emailString
_firstNameString
_lastNameString
_userIdString

ProfilePermission​

Type: Object

PropertyTypeDescription
_resourceDescResourceDescriptorResource description, The resources in the permission is described by multiple values
_namespaceStringnamespace
_actionsArray<String>actions allowed in the permission. For Ex, ["READ", "WRITE"], ["*"] for any action

Project​

A Project is a type of workspace that has a _userType of "project_workspace". The project semantics are defined at the client-side and are encapsulated within the Project resource and the IafProj APIs. A Project can be used to group resources within the project workspace and define a permission model to access these resources.

Type: Workspace

ProjectCriteria​

Type: WorkspaceCriteria

PromptTemplate​

PromptTemplate shape (request/response).

Type: Object

PropertyTypeDescription
_idUNKNOWN: OptionalTypeServer-generated UUID (present in responses).
_nameStringDisplay name. Pattern: ^[a-zA-Z0-9_-]{1,64}$.
_userTypeStringMCP prompt identifier. Pattern: ^\w+$, max 50.
_namespacesArray<String>Non-empty. Must match ctx namespaces (nsfilter).
_templateStringPrompt text. Supports {{arg}} and ${arg} placeholders.
_descriptionUNKNOWN: OptionalTypeOptional description (max 1024).
_argumentsUNKNOWN: OptionalTypeOptional argument definitions.
_irnUNKNOWN: OptionalTypeResource IRN (present in responses): aisvc:prompttemplate:.

PromptTemplateArgument​

PromptTemplateArgument shape.

Type: Object

PropertyTypeDescription
_nameStringArgument name. Pattern: ^[a-zA-Z][a-zA-Z0-9_]{0,63}$.
_descriptionUNKNOWN: OptionalTypeOptional.
_requiredUNKNOWN: OptionalTypeOptional. If true, MCP requires this argument.

PromptTemplateCriteria​

PromptTemplateCriteria (GET list filters).

Type: Object

PropertyTypeDescription
_nameUNKNOWN: OptionalTypeFilter by template name(s).
_userTypeUNKNOWN: OptionalTypeFilter by userType(s).
queryUNKNOWN: OptionalTypeFree-text search across name/description/template.

Readings​

Define telemetry readings

Type: Object

PropertyTypeDescription
_tsStringThe timestamp in ISO timestamp format YYYY-MM-DDTHH:MM:SSZ. Z represents the UTC time zone, which you can replace with a + or - offset for a given time zone. Examples: 2024-02-28T15:30:45+03:00, 2024-02-28T15:30:45Z
_tsMetadataTSMetadataAn object that contains the TelemetryItem's id and source id.

The Item Service supports custom queries on Related Items.

CollectionQuery​

A query object used as part of RelatedItem queries in NamedUserCollections.

Type: Object

PropertyTypeDescription
collectionDescObjectPass a valid database query to run on the list of NamedUserCollections. The collections lookup will be filtered by the namespaces in the user's context. Add to search over all the versions; otherwise only the tip version is searched. Default false
collectionProjectObjectPass an object that contains one or more projection specifiers to enable or disable the NamedUserCollection fields in the response
queryObjectPass a valid database query to find RelatedItems in the selected NamedUserCollections.
optionsRelatedItemQueryOptionsDefine the query control options such as pagination, sorting and projection. These options work on the results of the criteria defined in parent.query.

CustomRelatedItemQuery​

There are five types of CustomRelatedItemQuery for related items. Pass an object with exactly one of the following operator keys       1. - FindWithRelatedQuery       2. - FindInCollectionsQuery       3. - DistinctRelatedItemFieldQuery       4. - DistinctRelatedItemFieldsQuery       5. - FindWithRelatedGraphQuery

Type: (FindWithRelatedRequest | FindInCollectionsRequest | DistinctRelatedItemFieldRequest | DistinctRelatedItemFieldsRequest | FindWithRelatedGraphRequest)

CustomRelatedItemQueryResponse​

Custom related query responses are returned as a CustomRelatedItemQueryResponse type object.

Type: Object

PropertyTypeDescription
_listArray<RelatedItemQueryResponse>Contains the result collections with parent and child RelatadItems
_timeStringTime taken to execute the query
Examples
  1. Sample response of FindWithRelatedQueryResponse
{
"_list": [
{
"_uri": "/nameduseritems/5ced0ce85502b659e49cad12",
"_name": "1Mb_4222225_elements",
"_tipVersion": 2,
"_itemClass": "NamedUserCollection",
"_userItemId": "1mb_4222225_ba_elem_OYK5UKTTTl",
"_tipId": "5cee29f98702dd0b75f7983d",
"_versions": [
{
"_userItemDbId": "5ced0ce85502b659e49cad12",
"_relatedItems": {
"_pageSize": 2,
"_list": [
{
"_id": "5ced0cdea717bb1892f81a93",
"source_id": "150f10e7-70e9-40e4-86e8-4fb92aa169a8-000bd95a",
"package_id": 12143,
"type_elements": {
"_pageSize": 2,
"_list": [
{
"_id": "5ced0cdea717bb1892f81464",
"properties": {
"Revit Category": {
"val": "OST_StructuralFraming"
},
"baBIMAssureType": {
"val": "Beams"
}
}
},
{
"_id": "5ced0cdea717bb1892f81464",
"properties": {
"Revit Category": {
"val": "OST_StructuralFraming"
},
"baBIMAssureType": {
"val": "Beams"
}
}
}
],
"_offset": 0,
"_total": 2
}
},
{
"_id": "5ced0cdea717bb1892f81a94",
"source_id": "e5db3719-101e-4bac-b26e-161a11a108f3-000fc8f5",
"package_id": 15208,
"type_elements": {
"_pageSize": 2,
"_list": [
{
"_id": "5ced0cdea717bb1892f81464",
"properties": {
"Revit Category": {
"val": "OST_StructuralFraming"
},
"baBIMAssureType": {
"val": "Beams"
}
}
},
{
"_id": "5ced0cdea717bb1892f81464",
"properties": {
"Revit Category": {
"val": "OST_StructuralFraming"
},
"baBIMAssureType": {
"val": "Beams"
}
}
}
],
"_offset": 0,
"_total": 2
}
}
],
"_offset": 0,
"_total": 2
"_filteredSize": 2 // will be available when relatedFilter is used. There may be chance _pageSize and _filteredSize differs. Because _pageSize is calculated based on parent query, whereas _filteredSize is number of items in the response. In other words it is number of parent items has children by matching child query.
},
"_id": "5ced191a91816a6d369aacaa",
"_isTip": false,
"_metadata": {
"_updatedById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_createdAt": 1559039208862,
"_createdById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_updatedAt": 1559112185463
},
"_version": 1
},
{
"_userItemDbId": "5ced0ce85502b659e49cad12",
"_relatedItems": {
"_pageSize": 2,
"_list": [
{
"_id": "5ced0cdea717bb1892f81a92",
"source_id": "150f10e7-70e9-40e4-86e8-4fb92aa169a8-000bd958",
"package_id": 12138,
"type_elements": {
"_pageSize": 0,
"_list": [],
"_offset": 0,
"_total": 0
}
},
{
"_id": "5ced0cdea717bb1892f81a93",
"source_id": "150f10e7-70e9-40e4-86e8-4fb92aa169a8-000bd95a",
"package_id": 12143,
"type_elements": {
"_pageSize": 0,
"_list": [],
"_offset": 0,
"_total": 0
}
}
],
"_offset": 0,
"_total": 15
},
"_id": "5cee29f98702dd0b75f7983d",
"_isTip": true,
"_metadata": {
"_updatedById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_createdAt": 1559039208862,
"_createdById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_updatedAt": 1559112185464
},
"_version": 2
}
],
"_irn": "itemsvc:nameduseritem:5ced0ce85502b659e49cad12",
"_id": "5ced0ce85502b659e49cad12",
"_kind": "collection"
}
],
"_time": "107ms"
}
```2. Sample Response FindInCollectionsQuery
```javascript
{
"_list": [
{
"_uri": "/nameduseritems/5cee7fef6505d6286dbca46a",
"_name": "11_new_geom_view",
"_tipVersion": 1,
"_itemClass": "NamedUserCollection",
"_userItemId": "11_new_geom_view_4LeaYYWpsz",
"_tipId": "5cee80c1fa298d0d3e34e23c",
"_versions": [
{
"_userItemDbId": "5cee7fef6505d6286dbca46a",
"_relatedItems": {
"_pageSize": 0,
"_list": [],
"_offset": 0,
"_total": 0
},
"_id": "5cee80c1fa298d0d3e34e23c",
"_isTip": true,
"_metadata": {
"_updatedById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_createdAt": 1559134191563,
"_createdById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_updatedAt": 1559134191563
},
"_version": 1
}
],
"_irn": "itemsvc:nameduseritem:5cee7fef6505d6286dbca46a",
"_id": "5cee7fef6505d6286dbca46a",
"_kind": "collection"
},
{
"_uri": "/nameduseritems/5cee7fee6505d6286dbca468",
"_name": "11_new_elem_props",
"_tipVersion": 1,
"_itemClass": "NamedUserCollection",
"_userItemId": "11_new_elprops_qagnj32kE7",
"_tipId": "5cee80c1fa298d0d3e34e23a",
"_versions": [
{
"_userItemDbId": "5cee7fee6505d6286dbca468",
"_relatedItems": {
"_pageSize": 0,
"_list": [],
"_offset": 0,
"_total": 0
},
"_id": "5cee80c1fa298d0d3e34e23a",
"_isTip": true,
"_metadata": {
"_updatedById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_createdAt": 1559134190147,
"_createdById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_updatedAt": 1559134190147
},
"_version": 1
}
],
"_irn": "itemsvc:nameduseritem:5cee7fee6505d6286dbca468",
"_id": "5cee7fee6505d6286dbca468",
"_kind": "collection"
},
{
"_uri": "/nameduseritems/5cee7fee6505d6286dbca469",
"_name": "11_new_elements",
"_tipVersion": 2,
"_itemClass": "NamedUserCollection",
"_userItemId": "11_new_ba_elem_1sjwcciumd",
"_tipId": "5cee814dfa298d0d3e34e246",
"_versions": [
{
"_userItemDbId": "5cee7fee6505d6286dbca469",
"_relatedItems": {
"_pageSize": 5,
"_list": [
{
"_id": "5cee7fe8c27e69cd0209ef58",
"source_id": "dd7a8b4b-7241-4687-87aa-fd7906f76354-0003842e"
},
{
"_id": "5cee7fe8c27e69cd0209ef59",
"source_id": "dd7a8b4b-7241-4687-87aa-fd7906f76354-00038450"
},
{
"_id": "5cee7fe8c27e69cd0209ef5a",
"source_id": "dd7a8b4b-7241-4687-87aa-fd7906f76354-00038463"
},
{
"_id": "5cee7fe8c27e69cd0209ef5b",
"source_id": "dd7a8b4b-7241-4687-87aa-fd7906f76354-00038933"
},
{
"_id": "5cee7fe8c27e69cd0209ef5c",
"source_id": "dd7a8b4b-7241-4687-87aa-fd7906f76354-00038950"
}
],
"_offset": 0,
"_total": 5
},
"_id": "5cee80c1fa298d0d3e34e23b",
"_isTip": false,
"_metadata": {
"_updatedById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_createdAt": 1559134191035,
"_createdById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_updatedAt": 1559134542075
},
"_version": 1
},
{
"_userItemDbId": "5cee7fee6505d6286dbca469",
"_relatedItems": {
"_pageSize": 3,
"_list": [
{
"_id": "5cee7fe8c27e69cd0209ef58",
"source_id": "dd7a8b4b-7241-4687-87aa-fd7906f76354-0003842e"
},
{
"_id": "5cee7fe8c27e69cd0209ef59",
"source_id": "dd7a8b4b-7241-4687-87aa-fd7906f76354-00038450"
},
{
"_id": "5cee7fe8c27e69cd0209ef5b",
"source_id": "dd7a8b4b-7241-4687-87aa-fd7906f76354-00038933"
}
],
"_offset": 0,
"_total": 3
},
"_id": "5cee814dfa298d0d3e34e246",
"_isTip": true,
"_metadata": {
"_updatedById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_createdAt": 1559134191035,
"_createdById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_updatedAt": 1559134542086
},
"_version": 2
}
],
"_irn": "itemsvc:nameduseritem:5cee7fee6505d6286dbca469",
"_id": "5cee7fee6505d6286dbca469",
"_kind": "collection"
},
{
"_uri": "/nameduseritems/5cee7fef6505d6286dbca46b",
"_name": "11_new_type_el",
"_tipVersion": 1,
"_itemClass": "NamedUserCollection",
"_userItemId": "11_new_type_el_uUUlgM1sn4",
"_tipId": "5cee80c1fa298d0d3e34e23d",
"_versions": [
{
"_userItemDbId": "5cee7fef6505d6286dbca46b",
"_relatedItems": {
"_pageSize": 0,
"_list": [],
"_offset": 0,
"_total": 0
},
"_id": "5cee80c1fa298d0d3e34e23d",
"_isTip": true,
"_metadata": {
"_updatedById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_createdAt": 1559134191623,
"_createdById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_updatedAt": 1559134191623
},
"_version": 1
}
],
"_irn": "itemsvc:nameduseritem:5cee7fef6505d6286dbca46b",
"_id": "5cee7fef6505d6286dbca46b",
"_kind": "collection"
}
],
"_time": "22ms"
}
```3.Sample Response DistinctRelatedItemFieldQuery
```javascript
{
"_list": [
{
"_uri": "/nameduseritems/5cee7fee6505d6286dbca469",
"_tipVersion": 2,
"_itemClass": "NamedUserCollection",
"_userItemId": "11_new_ba_elem_1sjwcciumd",
"_tipId": "5cee814dfa298d0d3e34e246",
"_versions": [
{
"_userItemDbId": "5cee7fee6505d6286dbca469",
"_relatedItems": {
"type_id": [
1,
26,
55,
60
]
},
"_id": "5cee80c1fa298d0d3e34e23b",
"_isTip": false,
"_metadata": {
"_updatedById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_createdAt": 1559134191035,
"_createdById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_updatedAt": 1559134542075
},
"_version": 1
},
{
"_userItemDbId": "5cee7fee6505d6286dbca469",
"_relatedItems": {
"type_id": [
442,
463,
474,
506,
535,
554,
575,
610
]
},
"_id": "5cee814dfa298d0d3e34e246",
"_isTip": true,
"_metadata": {
"_updatedById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_createdAt": 1559134191035,
"_createdById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_updatedAt": 1559134542086
},
"_version": 2
}
],
"_irn": "itemsvc:nameduseritem:5cee7fee6505d6286dbca469",
"_id": "5cee7fee6505d6286dbca469",
"_kind": "collection"
}
],
"_time": "20ms"
}
```4.Sample Response DistinctRelatedItemFieldsQuery
```javascript
{
"_list": [
{
"_uri": "/nameduseritems/5cee7fee6505d6286dbca469",
"_tipVersion": 1,
"_itemClass": "NamedUserCollection",
"_userItemId": "11_new_ba_elem_1sjwcciumd",
"_tipId": "5cee80c1fa298d0d3e34e23b",
"_versions": [
{
"_userItemDbId": "5cee7fee6505d6286dbca469",
"_relatedItems": {
"type_id": [1, 26, 55, 60],
"properties.Revit Category.val": [
{ "value": "OST_Windows", "count": 42 },
{ "value": "OST_Doors", "count": 17 }
]
},
"_id": "5cee80c1fa298d0d3e34e23b",
"_isTip": true,
"_metadata": {
"_updatedById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_createdAt": 1559134191035,
"_createdById": "17285382-7f67-4b04-b231-bcdca454ed2c",
"_updatedAt": 1559134542075
},
"_version": 1
}
],
"_irn": "itemsvc:nameduseritem:5cee7fee6505d6286dbca469",
"_id": "5cee7fee6505d6286dbca469",
"_kind": "collection"
}
],
"_time": "18ms"
}

CustomSearchRelatedItemQuery​

Type: Object

DistinctFieldDesc​

One field to look up in a query.

Type: Object

PropertyTypeDescription
fieldStringName of the field whose distinct values you want to look up. Fields within subdocuments or arrays of subdocuments can be looked up using the dot notation. e.g. properties.name
queryUNKNOWN: OptionalTypePass an object that contains a valid database query to filter the RelatedItems before the distinct value lookup for this field.
countUNKNOWN: OptionalTypeSet to to return each distinct value with the number of RelatedItems that have it, as objects. Default false.

DistinctRelatedItemFieldQuery​

Find distinct related items from each collection in the query result

Type: Object

PropertyTypeDescription
collectionDescObjectPass an object with your key-value criteria to target NamedUserCollections you want to look up. The lookup is filtered by the namespaces in the user's context. Add to search over all the NamedUserCollection versions. By default, it searches by tip version only.
collectionProjectObjectPass an object that contains one or more projection specifiers to enable or disable the NamedUserCollection fields in the response.
fieldStringName of the field whose distinct values you want to look up. Fields within subdocuments or arrays of subdocuments can be looked up using the dot notation. e.g. properties.name
queryObjectPass an object that contains a valid database query to filter the RelatedItems before the distinct field value lookup.
countUNKNOWN: OptionalTypeSet to to return each distinct value with the number of RelatedItems that have it, as objects. Default false.
Examples
// Sample Request

{
"$distinctRelatedItemField": {
"collectionDesc": {
"_userItemId": "11_new_ba_elem_1sjwcciumd",
"_versions.all": true // Optional, Search over all the versions if its true, otherwise searches only in tip version. Default false
},
"collectionProject": {
"_id": 1,
"_userItemId": 1
},
"field": "type_id",
"query": {}
}
}
/

DistinctRelatedItemFieldRequest​

A CustomRelatedItemQuery that uses the operator.

Type: Object

PropertyTypeDescription
$distinctRelatedItemFieldDistinctRelatedItemFieldQueryFinds the distinct values of a RelatedItem field in each NamedUserCollection that matches your criteria.

DistinctRelatedItemFieldsQuery​

Find the distinct values of multiple RelatedItem fields from each collection in the query result

Type: Object

PropertyTypeDescription
collectionDescObjectPass an object with your key-value criteria to target NamedUserCollections you want to look up. The lookup is filtered by the namespaces in the user's context. Add to search over all the NamedUserCollection versions. By default, it searches by tip version only.
collectionProjectUNKNOWN: OptionalTypePass an object that contains one or more projection specifiers to enable or disable the NamedUserCollection fields in the response.
fieldDescArray<DistinctFieldDesc>The fields whose distinct values you want to look up. Pass 1 to 10 entries, each with a different .
Examples
// Sample Request

{
"$distinctRelatedItemFields": {
"collectionDesc": {
"_userItemId": "11_new_ba_elem_1sjwcciumd",
"_versions.all": true // Optional, Search over all the versions if its true, otherwise searches only in tip version. Default false
},
"collectionProject": {
"_id": 1,
"_userItemId": 1
},
"fieldDesc": [
{ "field": "type_id", "query": {} },
{ "field": "properties.Revit Category.val", "query": { "type_id": 278 }, "count": true }
]
}
}

DistinctRelatedItemFieldsRequest​

A CustomRelatedItemQuery that uses the operator.

Type: Object

PropertyTypeDescription
$distinctRelatedItemFieldsDistinctRelatedItemFieldsQueryFinds the distinct values of up to 10 RelatedItem fields in each NamedUserCollection that matches your criteria.

DistinctRelatedItemResponse​

Type: Object

PropertyTypeDescription
nullArray<Object>- The given property name that contains the distinct query items.

FindInCollectionsQuery​

Use to look up NamedUserCollection types and their RelatedItems based on your criteria

Type: CollectionQuery

Examples
// It works as below,
// 1. It executes `parent.collectionDesc` with given `parent.collectionProject`.
// 2. For each collection from above, filters for related items by `parent.query` with `parent.options`
// 3. The response would have collections and related items.

// Sample Request
{
"$findInCollections": {
"collectionDesc": {
"_itemClass": "NamedUserCollection"
"_versions.all": true // Optional, Search over all the versions if its true, otherwise searches only in tip version. Default false
},
"collectionProject": {
"_userItemId": 1,
"_name": 1
},
"query": {
"type_id": 278
},
"options": {
"project": {
"source_id": 1
},
"page": {
"_pageSize": 100,
"_offset": 0
},
"sort": {
"_metadata._updatedAt": 1
}
}
}
}

FindInCollectionsRequest​

A CustomRelatedItemQuery that uses the operator.

Type: Object

PropertyTypeDescription
$findInCollectionsFindInCollectionsQueryLooks up NamedUserCollections and their RelatedItems based on your criteria.

FindWithRelatedGraphQuery​

Traverses relationships from start RelatedItems through one or more segments. Each segment can traverse one or more relationship levels.

Type: Object

PropertyTypeDescription
startCollectionQueryDefine and pass a CollectionQuery object to target the start RelatedItems for the traversal.
toGraphRelatedToQueryDefine the segments to traverse from the start RelatedItems.
optionsUNKNOWN: OptionalTypeControl what the response includes, such as relationship metadata and referenced item properties.
Examples
{
"$findWithRelatedGraph": {
"start": {
"collectionDesc": { "_userItemId": "my_parent_collection" },
"query": { "type_id": 278 }
},
"to": {
"as": "paths",
"segments": [
{ "as": "types", "relatedDesc": { "_relatedUserType": "rvt_type_elements" } },
{ "from": "types", "as": "docs", "relatedDesc": { "_relatedUserType": "documents" }, "maxDepth": 2 }
]
},
"options": { "includeRels": true }
}
}

FindWithRelatedGraphRequest​

A CustomRelatedItemQuery that uses the operator.

Type: Object

PropertyTypeDescription
$findWithRelatedGraphFindWithRelatedGraphQueryTraverses relationships from start RelatedItems through one or more segments, at any depth.

FindWithRelatedQuery​

Looks up RelatedItems in multiple NamedUserCollections at a depth of one relationship level.

Type: Object

PropertyTypeDescription
parentCollectionQueryDefine and pass a CollectionQuery object to target parent collections that contain RelatedItems you want to look up.
relatedFilterRelatedFilterDefine criteria to filter the parent RelatedItems based on their child RelatedItems. You can use either or , not both.
relatedArray<RelatedQuery>Define criteria to look up child RelatedItems. You can use either or , not both.
Examples

Simple related query

//The query execution flow below

// 1. It executes `parent.collectionDesc` with given `parent.collectionProject`.
// 2. For each collection from above, filters for related items by `parent.query` with `parent.options`
// 3. Execute related query by `relatedDesc` for the collection
// 4. Filter children for each related collection by `related.query` with related.options provided
// 5. The consolidated children would be added related item response with key `as` property.
// 6. Please refer {@link CustomRelatedItemQueryResponse} for the output

{
"$findWithRelated": {
"parent": {
"collectionDesc": {
"_userItemId": "1mb_4222225_ba_elem_OYK5UKTTTl"
"_versions.all": true // Optional, Search over all the versions if its true, otherwise searches only in tip version. Default false
},
"query": {
"type_id": 1213
},
"collectionProject": {
"_userItemId": 1,
"_name": 1
},
"options": {
"project": {
"source_id": 1,
"package_id": 1
},
"page": {
"_pageSize": 200,
"_offset": 0
},
"sort": {
"_metadata._updatedAt": 1
}
}
},
"related": [
{
"relatedDesc": {
"_relatedUserType": "rvt_type_elements"
},
"query": {
"properties.OmniClass Title.val": "Beams"
},
"options": {
"project": {
"properties.Revit Category.val": 1,
"properties.baBIMAssureType.val": 1
},
"page": {
"_pageSize": 100,
"_offset": 0
},
"sort": {
"_metadata._updatedAt": 1
}
},
"as": "type_element"
}
]
}
``` Sample request for related filter query
```javascript
// It executes as below

// 1. It executes `parent.collectionDesc` with given `parent.collectionProject`.
// 2. For each collection from above, filters for related items by `parent.query` with `parent.options`
// 3. Execute related query by `relatedDesc` for the collection
// 4. Filter children for each related collection by `relatedFilter.[$or|$and]` with related.options provided
// 5. The consolidated children would be added related item response with key `as` property.
// 6. If related item doesn't have match any children by its query then the related item(parent) would be ignored in the response
// 7. lease refer {@link CustomRelatedItemQueryResponse} for the output
{
"$findWithRelated": {
"parent": {
"collectionDesc": {
"_userItemId": "11_new_ba_elem_1sjwcciumd",
"_versions.all": true // Optional, Search over all the versions if its true, otherwise searches only in tip version. Default false
},
"collectionProject": {
"_userItemId": 1
},
"query": {
"type_id": 278
},
"options": {
"project": {
"source_id": 1
},
"page": {
"_pageSize": 100,
"_offset": 0
},
"sort": {
"_metadata._updatedAt": 1
}
}
},
"relatedFilter": {
"includeResult": true,
"$or": [
{
"relatedDesc": {
"_relatedUserType": "rvt_type_elements"
},
"query": {
"properties.Revit Category.val": "OST_Windows"
},
"options": {
"project": {
"properties.Revit Category.val": 1,
"properties.baBIMAssureType.val": 1
},
"page": {
"_pageSize": 100,
"_offset": 0
},
"sort": {
"_metadata._updatedAt": 1
}
},
"as": "type_elements"
}
]
}
}
}

FindWithRelatedQueryParentResponse​

Type: RelatedItem

PropertyTypeDescription
nullPage<RelatedItem>- The given property name for the 'as' parameter in the query. Contains the child RelatedItems.

FindWithRelatedRequest​

A CustomRelatedItemQuery that uses the operator.

Type: Object

PropertyTypeDescription
$findWithRelatedFindWithRelatedQueryLooks up RelatedItems in multiple NamedUserCollections at a depth of one relationship level.

GraphRelatedToQuery​

Define the segments a query traverses from its start RelatedItems.

Type: Object

PropertyTypeDescription
asStringName the field that will contain the traversal results for each start RelatedItem in the response.
segmentsArray<GraphSegmentQuery>The segments to traverse. Exactly one segment must start from the start RelatedItems (omit its , or set it to "origin"); each other segment's must be the of the previous segment.
responseUNKNOWN: OptionalTypeThe response shape, either "path" or "tree". Default "path".
optionsUNKNOWN: OptionalTypePass an object with a object containing and to paginate the traversal results.

GraphSegmentQuery​

One segment of a traversal.

Type: Object

PropertyTypeDescription
asStringName of this segment. Must start with a letter or underscore and contain only a-z, A-Z, 0-9 and _.
fromUNKNOWN: OptionalTypeThe of the previous segment. Omit, or set to "origin", for the segment that starts from the start RelatedItems.
relatedDescObjectAdd your relationship query for this segment as a valid simple query, such as .
queryUNKNOWN: OptionalTypeAdd a valid simple query to filter the RelatedItems this segment reaches.
optionsUNKNOWN: OptionalTypePass an object with a object to choose the RelatedItem fields returned for this segment. By default only is returned.
minDepthUNKNOWN: OptionalTypeThe minimum number of relationship levels to traverse in this segment.
maxDepthUNKNOWN: OptionalTypeThe maximum number of relationship levels to traverse in this segment.

RelatedFilter​

Insert a relatedFilter in your findWithRelated query to filter for parent items that match a child item query across NamedUserCollections.

Type: Object

PropertyTypeDescription
includeResultbooleanSet to true to include matching child items in the response. If you do not include this property, the default is false.
In a list, enter the child item filter arguments you want either the OR or AND logical operator to evaluate.
An array of child RelatedItem filter criteria to be evaluated with the OR logical operator. Should use either $or or $and but not both together
$orArray<RelatedQuery>The list of filter criteria for child RelatedItems to evaluate with the OR logical operator. Use either $or or $and but not both together.
$andArray<RelatedQuery>The list of filter criteria for child RelatedItems to evaluate with the AND logical operator. Use either $or or $and but not both together.

RelatedItemQueryOptions​

Type: Object

PropertyTypeDescription
projectJSONPass an object that contains one or more projection specifiers to enable or disable the RelatedItem fields in the response
sortJSONPass an object that contains one or more sort specifiers to sort the results based on fields in the RelatedItems.
pagePageRequestpage request, by default _pageSize is 200 and _offset as 0.
Examples
let options = {
"project":{"_id": 1, "dtCategory": 1},
"sort": {"dtType":1}, // -1 for descending order
"page": {"_offset": 10, "_pageSize": 20} // default page size: 200, max page Size: 1000
}

RelatedItemQueryResponse​

RelatedItem query responses are returned as a RelatedItemQueryResponse type object.

Type: NamedUserCollection

PropertyTypeDescription
_versionsArray<RelatedItemQueryResponseVersion>Contains matching versions with related items(parent)

RelatedItemQueryResponseVersion​

RelatedItemVersion query responses are returned as a RelatedItemQueryResponseVersion type object.

Type: NamedUserItemVersion

PropertyTypeDescription
_relatedItems(Page<FindWithRelatedQueryParentResponse> | Page<RelatedItem> | Page<DistinctRelatedItemResponse>)A page of the response items. For a findWithRelatedQuery, the parent RelatedItems; for findInCollection queries, the RelatedItems; for DistinctRelateditemFieldQuery, the distinct RelatedItems.

RelatedQuery​

Insert a RelatedQuery in your findWithRelated query to define criteria to look up child related items.

Type: Object

PropertyTypeDescription
relatedDescObjectAdd your relationship query for the selected parent RelatedItems as a valid simple query.
queryObjectAdd a valid simple query to filter the child related items you selected in the related.relatedDesc query.
optionsRelatedItemQueryOptionsPass an object that can contain the following response options parameters for the results of the criteria you define in related.query: "page", "project", "sort". These options work on the results of the criteria defined in .
asStringName the field that will contain the child RelatedItem results in the response.

RelatedQueryOptions​

Options to control the behaviour of a query. These options are passed inside the request body under . They have no effect when using other operators such as , , or . Both flags default to when omitted.

Type: Object

PropertyTypeDescription
includeRelsUNKNOWN: OptionalTypeSet to to include relationship metadata for each traversed path segment in the response as . See CustomRelatedItemQueryResponse for the response shape. Only applicable to queries.
projectAllRefItemsUNKNOWN: OptionalTypeSet to to return all stored properties for each referenced item in . By default only is returned. Ignored when an explicit is defined on a segment via . Only applicable to queries.
Examples
// Include relationship metadata and all referenced item properties in a $findWithRelatedGraph query
const query = {
"$findWithRelatedGraph": {
"start": { ... },
"to": { ... },
"options": {
"includeRels": true,
"projectAllRefItems": true
}
}
};
const result = await IafItemSvc.searchRelatedItems(query, ctx);

RelatedCollection​

Define a RelatedCollection when you want to add an existing collection, such as a NamedUserCollection or NamedFileCollection, to a NamedCompositeItem.

Type: RelatedCollection

PropertyTypeDescription
_idStringThe RelatedCollection's database id.
_userItemIdStringThe collection's _userItemId value
_userTypeStringThe collection's _userType value
_itemIdStringThe collection's _id value
_userItemClassStringThe collection's NamedUserItem class, such as a "NamedUserCollection" or "NamedFileCollection"
_userItemVersionIdStringThe collection's version id
_userItemVersionNumberThe collection's version number

RelatedCollectionCriteria​

Define criteria to target RelatedCollections.

Type: Object

PropertyTypeDescription
queryJSONPass an object that contains your query.
Examples
// simple filter examples
let query = { "_userType": "file_container" }
let query = { "_itemId": {"$in": [ "5c9328e8b834740001cd95d4","5c9328e8b834740001cd95d4" ] }}

// complex query
let query = {
"$and": [
{
"_userType":"file_container",
"_itemId": {
"$in": ["5dafe5736f2d3a4dcc55fa14","68afe5736f2d3a4dcc55fa14"]
}
}
]
}

RelatedItem​

An object with user-created properties that can be related to NamedUserCollection types and other RelatedItem types.

Type: Object

PropertyTypeDescription
_idStringThe database id

RelatedItemCriteria​

Query object to target RelatedItems that match your query

Type: Object

PropertyTypeDescription
queryRelatedItemCriteriaQueryPass an object that contains your query.
Examples
// simple filter examples
let query = { "dtCategory": "Casework", "dtType": "Counter" }
let query = {"_id": { "$in": ["5c9328e8b834740001cd95d4","5c9328e8b834740001cd95d4"] }}

// complex query
let query = {
"$and": [
{
"type_id": "28",
"dtType":"Counter"
}
],
"$or": [
{
"package_id": 29
},
{
"_id": { "$in": ["5c9328e8b834740001cd95d4","5d31574411efe92d8832c21c"] }
}
]
}

RelatedItemCriteriaOptions​

Define response options for NamedUserItems with Item Service platform APIs.

Type: Object

PropertyTypeDescription
projectJSONPass an object that contains one or more projection criteria specifiers.
sortJSONPass an object that contains one or more sort criteria specifiers. Set a property to 1 to sort ascending and -1 to sort descending.
pagePageRequestPass an object that contains one or more pagination options.
pagedResbooleanSet to true to get a Page class result rather than an array, which is the default. The default page size is 200, which is also the maximum./**
Define response options for RelatedItems with Item Service platform APIs.
projectJSONPass an object that contains one or more projection criteria specifiers.
sortJSONPass an object that contains one or more sort criteria specifiers. Set a property to 1 to sort ascending and -1 to sort descending.
pagePageRequestPass an object that contains one or more pagination options.
userItemVersionIdStringTo return a particular user item version, pass the version id. Without this parameter, it looks up the tip version.
pagedResbooleanSet to true to get a Page class result rather than an array, which is the default. The default page size is 200, and the maximum is 1000.
Examples
// lookup from tip version
let options = {
"project":{ "_id": 1, "dtCategory": 1 },
"sort": { "dtType": 1 },
"page": { "_offset": 10, "_pageSize": 20 }
}

// lookup from particular version
let options = {
"project":{ "_id": 1, "dtCategory": 1 },
"sort": { "dtType": 1 },
"page": { "_offset": 10, "_pageSize": 20 },
"userItemVersionId": "5cee803a6505d6286dbca522"
}

RelatedItemCriteriaQuery​

Query object to target RelatedItems that match your query

Type: Object

Examples
// simple filter examples
let query = { "dtCategory": "Casework", "dtType": "Counter" }
let query = {"_id": { "$in": ["5c9328e8b834740001cd95d4","5c9328e8b834740001cd95d4"] }}

// complex query
let query = {
"$and": [
{
"type_id": "28",
"dtType":"Counter"
}
],
"$or": [
{
"package_id": 29
},
{
"_id": { "$in": ["5c9328e8b834740001cd95d4","5d31574411efe92d8832c21c"] }
}
]
}

RelatedItemDefinition​

Contains all the definitions for the RelatedItem and Reading types in the namespace

Type: Object

PropertyTypeDescription
_itemTypesArray<Schema>An array of schema for all the RelatedItem
_readingTypesArray<Schema>An array of schema for all the Reading Types in the namespace
_collectionsArray<NamedUserCollection>An array of NamedUserCollection in the namespace, this will be available only when it is with withColls=true in the query param

Relationship​

Use the Relationship class to define a relationship from a RelatedItem to one or more RelatedItems.

Type: Object

PropertyTypeDescription
_idStringid UUID
_relatedUserItemIdStringThe _userItemId of the parent item’s collection
_relatedUserItemDbIdStringThe _id of the parent item’s collection
_relatedUserItemVersionIdStringThe _userItemId of the parent item’s collection version
_relatedUserItemVersionNumberThe parent collection's version number
_relatedUserItemClassStringThe NamedUserItem class of the parent item's collection, such as NamedUserCollection or NamedFileCollection
_relatedToIdsArray<String>Array of one or more RelatedItem ids to create relationships with as children.
_relatedUserTypeStringA custom userType to identify the relationship
_relatedFromIdStringRelatedItem id of parent related item
_isInversebooleanSet to true to invert the relationship to a child-parent relationship. Set to false for a parent-child relationship.
_userTypeStringUser defined type of the relationship.
_customAttributesObjectAdd custom attributes in key-value pairs

RelationshipCriteria​

Define criteria to target Relationships.

Type: Object

PropertyTypeDescription
queryRelationshipPass an object that contains one or more projection specifiers.
Examples
// simple filter examples
let query = { "_relatedUserType": "file_container" }
let query = { "_id": { "$in": ["5c9328e8b834740001cd95d4","5c9328e8b834740001cd95d4"] }}

// complex query
let query = {
"$and":[
{
"_relatedUserType": "file_container",
"_relatedToIds": {
"$in": [ "5dafe5736f2d3a4dcc55fa14","68afe5736f2d3a4dcc55fa14" ]
}
}
]
}

RelationshipCriteriaOptions​

Define response options for Relationship queries

Type: Object

PropertyTypeDescription
projectJSONPass an object that contains one or more projection criteria specifiers.
sortJSONPass an object that contains one or more sort criteria specifiers. Set a property to 1 to sort ascending and -1 to sort descending.
pagePageRequestPass an object that contains one or more pagination options. The default page size is 200, which is also the max page size.
userItemVersionIdStringTo return a particular user item version, pass the version id. Without this parameter, it looks up the tip version.
Examples
// lookup from tip version
let options = {
"project": { "_relatedUserType": 1, "_relatedFromId": 1 },
"sort": { "_relatedUserType": 1 },
"page": {"_offset": 10, "_pageSize": 20}
}

// lookup from particular version
let options = {
"project": { "_relatedUserType": 1, "_relatedFromId": 1 },
"sort": { "_relatedUserType": 1 },
"page": { "_offset": 10, "_pageSize": 20 },
"userItemVersionId": "5cee803a6505d6286dbca522"
}

RelationshipType​

Type: object

PropertyTypeDescription
_refRelationshipTypeRefThe Relationship reference details with other RelatedItem
_isInversebooleanWhether the Relationship is Inverse or not

RelationshipTypeRef​

Type: object

PropertyTypeDescription
_relatedTypeNameStringThe RelatedItem type name
_relatedUserTypeStringThe Related User type used in the Relationship

ResourceDescriptor​

Use the ResourceDescriptor type to target a single resource or multiple resources that match your criteria

Type: Object

PropertyTypeDescription
_irnStringA resource name, which uses the following pattern: ::<resource_id>. For example, see the following IRN for a file: filesvc:file:4e2b9de5-9a73-44f9-8153-bc0904b694c5
_criteriaUNKNOWN: OptionalTypeFilter criteria as key-value pairs
_subresourceDescSubResourceDescriptorSupports only in Item service and spiecific resource IRNs Ex: "itemsvc:nameduseritem:6333e105026300398e2d653e". It can't be used for the IRN(s) such as itemsvc:nameduseritem:*

ResuambleFileUploadProps​

Use the ResuambleFileUploadProps to define and handle resumable file uploads.

Type: Object

PropertyTypeDescription
filenameStringFile name
tagsArrayArray of string tags to attribute to the file
onCompleteFunctionCallback function for when the file upload completes
onProgressFunctionCallback function for when the file upload is in progress
onErrorFunctionCallback function for when the file upload fails
headersFileHeadersThe headers will be applied to the HTTP response during download

Schema​

Type: Object

PropertyTypeDescription
_typeNameStringName of the RelatedItem type, eg: Asset, RevitElement etc
_propertiesObjectIt will have various properties/fields in the Schema
_relationshipTypesArray<RelationshipType>All the relationships between two RelatedItems

SchemaDefinitionOptions​

Type: Object

PropertyTypeDescription
projectJSONPass an object that contains one or more projection criteria specifiers.
sortJSONPass an object that contains one or more sort criteria specifiers. Set a property to 1 to sort ascending and -1 to sort descending.
pagePageRequestPass an object that contains one or more pagination options.

Script​

A user-created script. The Script class is a subclass of the NamedUserItem class and inherits its properties.

Type: NamedUserItem

PropertyTypeDescription
_versionScriptVersionA given version of the script's content.

ScriptExecutionRequestOptions​

Additional headers accepted by Object Model script execution endpoints.

Type: Object

PropertyTypeDescription
headersObjectCustom headers such as and .

ScriptExecutionResultCriteria​

Criteria for listing Object Model script execution results.

Type: Object

PropertyTypeDescription
queryObjectKey/value filters supporting , , , , , .

ScriptVersion​

ScriptVersion contains a _userData property with the Script's versioned content. The ScriptVersion is contained in the Script class's _version property.

Type: NamedUserItemVersion

PropertyTypeDescription
_userDataStringScript content

Secret​

Use the Secret type to define a secret in the Passport Service.

Type: Object

PropertyTypeDescription
_idStringSecret UUID.
_nameStringName of the Secret.
_valueStringValue of the Secret.
_descriptionStringDescription of the Secret.
_userTypeStringUser type associated with the Secret.
_namespacesArray<String>Namespaces associated with the Secret.

SecretCriteria​

Criteria to find one or more Secrets.

Type: Object

PropertyTypeDescription
_id(Array<String> | String)Secret UUID(s).
_name(Array<String> | String)Secret name(s).
_descriptionStringSecret description filter.
_userTypeStringUser type filter.
_namespacesArray<String>Namespaces filter.
queryStringWild card search on secret name or description.

SecretOptions​

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response

SourceCode​

Represents source code payload for Agents or Tools. The code must extend Agent or AbstractTool and implement processRequest (for agents) or _call (for tools).

Type: Object

PropertyTypeDescription
_contentStringThe code content as a single string. Use either _content or _file—if both are provided, _content takes precedence.
_fileStringAccepts either a File or ReadStream object. Use either _content or _file—if both are provided, _content takes precedence.
_idStringOptional source code record id.
Examples
// Example for Agent sourceCode
const agentSourceCode = {
"_content": "import { Agent } from '@dtplatform/agent-core'; export class MultiTaskerAgent extends Agent { constructor(options: any) { super(options); } async processRequest(type: string, state?: any, prompt?: string, tools?: any[], userId?: string, sessionId?: string, chatHistory?: [], additionalParams?: Record<string, string>): Promise<any> { const rules = fetchDynamicRules(); console.log(state); const enhancedPrompt = `Use these rules to answer the prompt, RULES: ${rules} USER-PROMPT: ${state?.state?.messages[state?.state?.messages?.length - 1].content}`; console.log(enhancedPrompt); const res: any = await this.callLLM(type, state, enhancedPrompt, tools); return res; } }; function fetchDynamicRules() { return `Rule 1: Wall-mounted sockets must have standard mounting height of 300mm AFF. Rule 2: All electrical elements must be assigned to a circuit. Rule 3: Total connected load on a panel must not exceed its rated capacity. Rule 4: Conduits or trays passing through fire-rated walls must include firestopping.`; }"
};

// Example for Tool sourceCode
const toolSourceCode = {
"_content": "import { AbstractTool } from '@dtplatform/agent-core'; import { z } from 'zod'; const testSchema = z.object({ param1: z.string().describe('This is the user prompt')}); export default class StringModifierTool1 extends AbstractTool { name: string = 'StringModifierTool'; description: string = 'A simple StringModifierTool'; schema = testSchema; async _call(args: z.infer<typeof testSchema>) { console.log('StringModifierTool called on', args); return `I'm a simple tool tester.`; } }"
};

SubResourceDescriptor​

Use the SubResourceDescriptor to grant permssions for sub resources such as RelatedItem which is the only subresource currently supported

Type: Object

PropertyTypeDescription
_typeStringThe type of subresource. Currently 'relateditem' is the only valid value
_criteriaRelatedItemCriteriaA valid RelatedItem Criteria. The permission is applicable for matching this criteria

TaskDef​

Create a custom task that executes within a workflow

Type: Object

PropertyTypeDescription
_idStringThe Task's id
_workflow_def_idStringThe id of the WorkflowDef that the Task is part of
_nameStringA custom name
_descriptionStringDescribes the Task
_sequencenoNumberSequence number to define where this Tasks is in the execution order of tasks
_typeStringEnter the Task type, such as SCRIPT_EXECUTION, USER_INPUT, HAYSTACK, SWITCH, REST_CONNECTOR, FORK_JOIN, or DO_WHILE.
_inputParamsObjectThe Task's input parameters
_retryCountNumberEnter the number of retry attempts after a Task fails. The default is three attemps and the maximum is 10.
_retryLogicStringEnter one of the following retry logic mechanisms: FIXED, EXPONENTIAL_BACKOFF, LINEAR_BACKOFF. FIXED reschedule the task for after retryDelaySeconds. EXPONENTIAL_BACKOFF reschedules the task for after retryDelaySeconds * (2 ^ attemptNumber). LINEAR_BACKOFF reschedules the task for after retryDelaySeconds * backoffRate * attemptNumber.
_retryDelaySecondsNumberTime in seconds to wait before a retry. The default time is 60 seconds.
_timeoutSecondsNumberTime in seconds that a task is marked TIMED_OUT after being IN_PROGRESS and not reaching a terminal state.
_timeoutPolicyStringThe task's timeout policy. Enter "RETRY", "ALERT_ONLY", or the default "TIME_OUT_WF". RETRY retries the task, TIME_OUT_WF times out and terminates the task, and ALERT_ONLY registers a counter.
_responseTimeoutSecondsNumberTime in seconds to wait if no status update is received before the task is rescheduled. An example is when the worker fails to poll a task due to errors or network failure. The default time is 600 seconds.
_resultObjectThe Task's output.
_decisionCasesObjectFor SWITCH tasks only. A object where the keys are the possible cases and their values are an array of tasks to execute if that case is selected.
_forkTasksArray<Array<Object>>For FORK JOIN tasks only. An array of task arrays to run in parallel.

Team​

Represents a Team resource. Teams group multiple agents for coordinated, multi-agent workflows and run in one of two modes:Static-flow mode — the graph defines a fixed → ... → path between the team's agents.Supervisory mode — enabled when any agent has a non-empty list. Supervisors route to their worker agents at runtime, sets the supervisor chain position (the first is the entry point), and is ignored (typically left empty).

Type: Object

PropertyTypeDescription
_idStringThe id of the team resource.
_namespacesArray<String>Required, The namespace(s) of the resource.
_nameStringRequired, The team name (max 255 characters).
_descriptionStringA short description of what the team does.
_agentsArray<TeamAgent>Required, Agents participating in this team.
_flowUNKNOWN: OptionalTypeOptional, The execution graph as / transitions. Required for static-flow mode; ignored (usually empty) in supervisory mode.
_permissionProfileIdUNKNOWN: OptionalTypeOptional, The permission profile used to resolve credentials/secrets when the team runs.
_irnStringInternal resource name for permission checks.
_metadataObjectMetadata containing createdAt, updatedAt, createdById, updatedById.

TeamAgent​

An agent entry within a Team.

Type: Object

PropertyTypeDescription
_userTypeStringRequired, The of an existing Agent to include in the team.
_subAgentsUNKNOWN: OptionalTypeOptional, The worker agents this supervisor may delegate to. When present and non-empty on any agent, the team runs in supervisory mode.
_orderUNKNOWN: OptionalTypeOptional, The supervisor chain position; the lowest is the entry-point supervisor. Applies in supervisory mode.
_onfailureUNKNOWN: OptionalTypeOptional, The of a fallback agent used when routing returns (or when a route is missing and is set).

TeamCriteria​

Team criteria

Type: Object

PropertyTypeDescription
_nameStringFilter by team name.
queryStringWildcard search on the team name.

TeamFlow​

A single transition in a Team's static execution flow.

Type: Object

PropertyTypeDescription
fromStringRequired, The source node: an agent's or the literal .
toStringRequired, The target node: an agent's or the literal .

TeamSubAgent​

A worker agent referenced by a supervisor in supervisory mode.

Type: Object

PropertyTypeDescription
_userTypeStringRequired, The of the worker Agent the supervisor may delegate to.

TelemetryConfig​

TelemetryConfigs define the bindings between NamedTelemetryCollections, TelemetryItems, and the IoT data, as well as criteria to lookup the normalization script that normalizes the raw IoT data.​

Type: Object

PropertyTypeDescription
_idStringThe TelemetryConfig's database id
_nameStringA readable, long-form name
_descriptionStringA string that describes the purpose of the TelemetryConfig class instance
_shortNameStringShorter abbreviation of the TelemetryConfig name that is used for reference
_userTypeStringA user-given name to identify a TelemetryConfig. This userType is helpful for queries to find a unique item with a unique userType or NamedUserItem subtypes that share a userType.
_configDataTelemetryConfigDataContains binding criteria and points to a normalization script

TelemetryConfigCriteria​

Criteria to target a TelemetryConfig

Type: Object

PropertyTypeDescription
queryJSONPass a simple query

TelemetryConfigCriteriaOptions​

Response options for a TelemetryConfig request

Type: Object

PropertyTypeDescription
projectJSONPass an object that contains one or more projection criteria specifiers.
sortJSONPass an object that contains one or more sort criteria specifiers. Set a property to 1 to sort ascending and -1 to sort descending.
pagePageRequestPass an object that contains one or more pagination options.
pagedResbooleanSet to true to get a Page class result rather than an array, which is the default.

TelemetryConfigData​

Criteria to target the telemetry bindings and normalization script for a TelemetryConfig.

Type: Object

PropertyTypeDescription
_bindingsCollectionQueryCriteria to target the telemetry items that receive readings from MQTT gateway
_normalizationScriptJSONCriteria to target a normalization script. Normalization scripts transform actual readings from MQTT data into Readings objects in the Item Service.

TelemetryItem​

An object that represents a telemetry item with user-created properties that can be related to NamedUserCollection types and other RelatedItem types.

Type: RelatedItem

PropertyTypeDescription
_sourceIdStringId of the telemetry device that generates the telemetry readings

TelemetryProcessingError​

Error log for a telemetry processing error.

Type: Object

PropertyTypeDescription
_idStringTelemetryProcessingError database id
_timestampNumberTimestamp in epoch milliseconds
_messageStringIoT data that received from the source
_exceptionStringException message
_detailedExceptionStringError stack

TelemetryProcessingErrorCriteria​

Type: Object

PropertyTypeDescription
queryJSONPass a simple query object.

TokenResponse​

Response shape for IafPassSvc.fetchTokens (authorization_code, PKCE, and refresh_token grants).

Type: Object

PropertyTypeDescription
access_tokenStringThe OAuth2 access token (JWT).
token_typeStringThe token type, e.g. "bearer".
refresh_tokenStringThe OAuth2 refresh token (JWT), usable to obtain a new access token via the refresh token flow.
expires_inNumberSeconds until the access token expires.
scopeStringThe granted scope(s), e.g. "read write".
user_nameStringThe authenticated user's UUID.
app_idStringThe Application's UUID this token was issued for.
jtiStringThe JWT ID (unique token identifier).

TokenUsage​

Tokens consumed, in one shape regardless of whether the AI provider was OpenAI or Anthropic.

Type: Object

PropertyTypeDescription
_inputNumberInput (prompt) tokens.
_outputNumberOutput (completion) tokens. Always 0 for embedding calls.
_totalNumberTotal tokens. Derived from input plus output when a provider does not report a total of its own.

TokenUsageBreakdown​

A token total together with the sources composing it. The entries in sum to .

Type: Object

PropertyTypeDescription
_conversationIdStringThe conversation the figures belong to.
_turnIdUNKNOWN: OptionalTypeSet only when the breakdown is for a single turn.
_usageTokenUsageThe stored total.
_sourcesArray<TokenUsageSource>One entry per source and served model, heaviest
first. Empty for a conversation or turn that predates token tracking.

TokenUsageSource​

One participant's share of a token total.

Type: Object

PropertyTypeDescription
_kindStringWhat incurred the usage: , or .
_nameStringThe agent's user type, or the role of the call in the turn
(, , ).
_displayNameUNKNOWN: OptionalTypeThe agent's display name as configured when it ran. Absent
for non-agent sources.
_modelStringThe model as configured on the agent, for example .
_resolvedModelStringThe model the provider actually served, for example
. Differs from when an alias points at a dated snapshot, and
billing follows this one.
_providerStringor .
_usageTokenUsageTokens this source consumed.
_callsNumberAI calls this source made. An agent that looped over a tool a dozen
times appears once, with of 12.

Tool​

Represents a Tool

Type: Object

PropertyTypeDescription
_idStringThe id of the tool resource
_namespacesArray<String>Required, The namespace(s) of the resource
_nameStringRequired, The name of the tool
_descriptionStringA short description of what the tool does
_userTypeStringRequired, Unique identifier of the tool
_typeStringThe type of the tool, assigned by the backend
_toolClassStringThe class name of the custom tool implementation

ToolCriteria​

Tool criteria

Type: Object

PropertyTypeDescription
_userTypeStringFilter by _userType field
_typeStringFilter by _type field (e.g., tool type)
queryStringWild card search that operates on the name and description, for example, ?query=sensor

TraceCriteria​

Optional filters for the trace reads.

Type: Object

PropertyTypeDescription
_eventTypeUNKNOWN: OptionalTypeReturn only these event types. Pass an array to
filter on several, which is sent as a repeated query parameter and matches any of them. A
comma-joined string is not accepted and is rejected with a 400 naming it.
_turnIdUNKNOWN: OptionalTypeReturn only this turn's events. Conversation-level read only;
equivalent to calling IafAISvc.getTurnTrace.

TraceEvent​

One archived execution event from a conversation turn, as returned by the trace reads.The trace is what the team actually did to produce an answer. It is captured for every conversation whatever way it was run, and is narrower than the set of events a streaming conversation delivers: token usage, per-agent reasoning markers, progress captions and the text chunks of an answer are streamed but not archived, because the turn itself already records the settled figures and the final text. is returned exactly as archived and is never truncated - a tool result capped at 8 KB on the stream is complete here.

Type: Object

PropertyTypeDescription
_idStringThe event id.
_conversationIdStringThe conversation the event belongs to.
_turnIdStringThe turn the event belongs to.
_sequenceNumberExecution order within the turn, starting at 1. A turn's events
are archived together and share one , so this - not the timestamp - is
what orders a turn.
_eventTypeStringOne of , ,
, , , , ,
, , .
_agentNameUNKNOWN: OptionalTypeDisplay name of the agent the event relates to.
_toolNameUNKNOWN: OptionalTypeTool name, on tool events.
_callIdUNKNOWN: OptionalTypeProvider tool-call id, pairing a with its
.
_payloadUNKNOWN: OptionalTypeThe event body. Its shape follows :
;
;
;
;
;
;
;
;
;
.
_metadataAuditableDTOMetadata containing creation and update info.

TSMetadata​

Telemetry timestamp metadata

Type: Object

PropertyTypeDescription
_telItemIdStringThe TelemetryItem's id
_sourceIdStringThe TelemetryItem's _sourceId

Turn​

One exchange within a conversation: the prompt a user sent together with the answer the team produced for it. Returned by IafAISvc.getConversationTurns and IafAISvc.getConversationTurn, which omit the embedding vector and the summary, and in a shorter form as the _chats of a Conversation.

Type: Object

PropertyTypeDescription
_idStringThe turn id. Required by the turn-level reads.
_conversationIdStringThe conversation this turn belongs to.
_teamIdStringThe team that answered.
_promptanyThe prompt that opened the turn.
_llmResponseanyThe answer produced for it.
_durationNumberMilliseconds the team took to answer.
_statusNumberStatus code of the turn.
_usageTokenUsageTokens consumed by this turn. Turns created before token tracking existed report zeros.
_metadataAuditableDTOMetadata containing creation and update info.

UploadMeta​

Type: Object

PropertyTypeDescription
_sizeNumber
_uploadOffsetNumber
_checksumString
_uploadIdString

User​

The User type defines a system user.

Type: Object

PropertyTypeDescription
_idStringUser id as UUID
_firstnameStringThe user's first name
_lastnameStringThe user's last name
_emailStringThe user's email
_isSocialbooleanSet to true if the user is created by social login
_disabledbooleanSet to true to disable the user

UserAdminCriteria​

Criteria to find users with IafPassSvc.getUsers. A value is an exact match, or a partial match when prefixed with "~". Both ignore case.

Type: Object

PropertyTypeDescription
_idStringUser id, for example "~3f2a" for ids that contain "3f2a".
_firstnameStringThe user's first name.
_lastnameStringThe user's last name.
_emailStringThe user's email, for example "[email protected]" for every user at company.com.
_disabledbooleantrue for deactivated users, false for active users. Leave it out for both.

UserAdminOptions​

Paging and sort options for IafPassSvc.getUsers.

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response, at most 50.
_sortByStringSorts the users by "_id", "_firstname", "_lastname" or "_email". The default is "_lastname".
_sortOrderString"ASC" or "DESC". The default is "ASC".

UserCollectionBulkOperationOptions​

Use the UserCollectionBulkOperationOptions type to process bulk operation asynchronously.

Type: UserCollectionOptions

PropertyTypeDescription
asyncBooleanSet to true to process bulk operation asynchronously. The promise response contains a URL to check the async process status.

UserCollectionOptions​

Look up NamedUserCollections under a specfic version.

Type: ItemsvcOptions

PropertyTypeDescription
userItemVersionIdStringLooks up under a given version rather than the tip version.

UserConfig​

A user-created configuration. The UserConfig class is a subclass of the NamedUserItem class and inherits its properties.

Type: NamedUserItem

PropertyTypeDescription
_versionUserConfigVersionA given version of the UserConfig's content.

UserConfigOptions​

Options specific to IafUserConfig APIs. Extends NamedUserItemCriteria for filtering support.

Type: NamedUserItemCriteriaOptions

PropertyTypeDescription
transactionalbooleanSet to true to make POST, PUT or DELETE requests transactional.

UserConfigVersion​

UserConfigVersion contains a _userData property with the UserConfig's versioned content. The UserConfigVersion is contained in the UserConfig class's _version property.

Type: NamedUserItemVersion

PropertyTypeDescription
_userDataStringUser config content

UserCriteria​

Use the UserCriteria type to define a "starts with" filter query for a user by email, first name, or last name.

Type: Object

PropertyTypeDescription
queryStringPass a string that contains an email, first name, or last name that you want to apply a startsWith filter to

UserGroup​

The UserGroup type defines a group of users and the workspaces they can access.

Type: Object

PropertyTypeDescription
_idStringThe UserGroup's UUID
_descriptionStringThe UserGroup's description
_nameStringReadable long-form UserGroup name, such as "Project 1 developer operations group"
_shortNameStringShorter abbreviation of the UserGroup name that is used for reference, such as "dev_ops_proj_1"
_namespacesArray<String>List the namespaces that the UserGroup has access to
_userAttributesObjectAdd custom key-value pairs. Add the attribute name to the key, for example, _userAttributes.<attribute_name>: <attribute_value>
_userTypeStringUser type
_isMemberbooleanSet to true if the current user is a member of the UserGroup

UserGroupCriteria​

Prefix a single value with "~" for a partial match search, which finds UserGroups whose property contains the value, for example, { name: "~admin" }. A partial match search ignores case and matches "%" and "" as normal characters. It supports _id, _name, _shortName, _description, _userType, _userAttributes and _namespaces. When you pass multiple values, the search uses an exact match.

Type: Object

PropertyTypeDescription
_id(Array<String> | String)The UserGroup's UUID. Supports partial match, for example, "~3f2a"
_descriptionStringThe UserGroup's description. Supports partial match
_name(Array<String> | String)The UserGroup's name. Supports partial match
_shortName(Array<String> | String)The UserGroup's short name. Supports partial match
_namespaces(Array<String> | String)List of namespaces that the UserGroup has access to. Supports partial match, for example, "~myproject"
_userType(Array<String> | String)User type. Supports partial match
_userAttributesStringPartial match on the user attributes, which matches any attribute name or value that contains the value, for example, "~admin" matches both {"adminFlag": true} and {"role": "admin"}. To find by a user attribute value, add the attribute name to the key, for example, _userAttributes.<attribute_name>: <attribute_value>
includeAllbooleanSet to true to retrieve both UserGroups the user is part of and UserGroups that user has 'READ' access to. The result has an _isMember attribute to identify if the user is part of the UserGroup. Set to false to retrieve UserGroups that the user is part of.
queryStringWild card search that operates on the name, short name, and description, for example, ?query=admin

UserGroupCriteriaOptions​

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response

UserGroupDescriptor​

It define user group along with permission granted for the user group.

Type: UserGroup

PropertyTypeDescription
permissionsIafPermissionDescriptorThe list of permission granted for the usergroup

UserGroupUserOptions​

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response

WorkflowDef​

A blueprint that describes the sequence, structure, and rules for the execution of defined tasks.

Type: Object

PropertyTypeDescription
_idStringThe Workflow's id
_nameStringA custom name
_descriptionStringDescribe the Workflow
_userTypeStringA user-given name to identify a WorkflowDef. This userType is helpful for queries to find a unique item with a unique userType or WorkflowDefs that share a userType.
_namespacesArray<String>An array of namespaces you want to add the Workflow to
_taskDefsArray<TaskDef>An array of your defined tasks
_timeoutSecondsNumberThe number of seconds before the Workflow times out when unresponsive
_timeoutPolicyStringWorkflow's timeout policy. The default value is TIME_OUT_WF, where the Workflow is marked TIMED_OUT and terminated. You can set this property to ALERT_ONLY.
_updatedByStringUser Id of the user who last updated the workflow
_createdByStringUser Id of the user who created the workflow

WorkflowDefCriteria​

Filter criteria for retrieving workflow definitions.

Type: Object

PropertyTypeDescription
_nameStringExact workflow definition name to match.
_userTypeStringExact value to match.

WorkflowDefOptions​

Pagination options for retrieving workflow definitions.

Type: Object

PropertyTypeDescription
_countNumberPage size; number of workflow definitions to fetch per call (default 10).
_offsetNumberRecord skip count (default 0). Use multiples of to avoid duplicates.

Workspace​

Use the Workspace type to define a workspace in the Passport Service.

Type: Object

PropertyTypeDescription
_idStringProject UUID, which the platform attributes after the Workspace is created
_descriptionStringA description of the Workspace and its purpose
_nameStringReadable long-form Workspace name, such as "Project 1 Workspace"
_shortNameStringShorter abbreviation of the Workspace name that is used for reference, such as "proj_1_ws"
_namespacesArray<String>List the namespaces that the Workspace has access to
_userAttributesJSONAdd custom attributes to the Workspace class object

WorkspaceCriteria​

Criteria to find one or more Workspaces

Type: Object

PropertyTypeDescription
_id(Array<String> | String)The Workspace's UUID
_descriptionStringThe Workspace's description
_name(Array<String> | String)An array of one or more Workspace names
_shortName(Array<String> | String)An array of one or more Workspace short names
_namespacesArray<String>A namespace or comma separated string of namespaces
_userAttributesStringFind by a user attribute value. Add the attribute name to the key, for example, _userAttributes.<attribute_name>: <attribute_value>
queryStringWild card search that operates on the name, short name, and description, for example, ?query=admin

WorkspaceCriteriaOptions​

Type: Object

PropertyTypeDescription
_offsetNumberSets the number of results to skip in the Page response. For example, set to to skip the first 10 results.
_pageSizeNumberSets the number of results to return per Page in the response