Types
Agent
Represents a Agent
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | The id of the agent resource |
| _namespaces | Array<String> | Required, The namespace(s) of the resource. |
| _name | String | Required, The agent name |
| _description | String | Agent's description |
| _background | String | Required, The context for the agent |
| _userType | String | Required, unique identifier of the agent |
| _type | String | The type of the agent, The backend will assign the value for this |
| _agentClass | String | The class name of the custom agent if it is implemented. |
| _promptTemplate | String | Optional, the of a PromptTemplate to assign to this agent. The template acts as the agent's instruction and is parameterized at runtime. |
| _invocationMessage | UNKNOWN: OptionalType | Optional, 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 . |
| _config | AgentConfig | Required, defines the llm model. |
AgentConfig
Type: Object
| Property | Type | Description |
|---|---|---|
| _model | String | LLM model, Exmaples gpt-4o, o4-mini |
| _provider | String | LLM provider, Examples: openai, anthropic |
AgentCriteria
Agent criteria
Type: Object
| Property | Type | Description |
|---|---|---|
| _userType | String | Filter by _userType field |
| _type | String | The valid values are user_agent or system_agent |
| query | String | Wild 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
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets the number of results to return per Page in the response |
| _sortBy | UNKNOWN: OptionalType | Sorts 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. |
| _sortOrder | UNKNOWN: OptionalType | The 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
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets the number of results to return per Page in the response |
AosvcAction
An entity action bound to state transitions.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Action id. |
| _ontologyId | UNKNOWN: OptionalType | Ontology id. |
| _name | UNKNOWN: OptionalType | Action name. |
| _actionType | UNKNOWN: OptionalType | Action type. |
| _description | UNKNOWN: OptionalType | Description. |
| _params | UNKNOWN: OptionalType | Action parameters; the shape depends on _actionType. |
| _createdAt | UNKNOWN: OptionalType | Creation timestamp. |
| _updatedAt | UNKNOWN: OptionalType | Last update timestamp. |
| _createdBy | UNKNOWN: OptionalType | Creating user id. |
| _updatedBy | UNKNOWN: OptionalType | Last updating user id. |
AosvcActionCreate
Request body to create an action.
Type: Object
| Property | Type | Description |
|---|---|---|
| _name | String | Required. Action name. |
| _actionType | (UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType) | Required. Action type. |
| _description | UNKNOWN: OptionalType | Description. |
| _params | UNKNOWN: OptionalType | Action parameters; the shape depends on _actionType. |
AosvcActionUpdate
Request body to update an action.
Type: Object
| Property | Type | Description |
|---|---|---|
| _name | UNKNOWN: OptionalType | Action name. |
| _actionType | UNKNOWN: OptionalType | Action type. |
| _description | UNKNOWN: OptionalType | Description. |
| _params | UNKNOWN: OptionalType | Action parameters. |
AosvcAddReadingsCriteria
Criteria for appending telemetry readings.
Type: Object
| Property | Type | Description |
|---|---|---|
| sourceId | UNKNOWN: OptionalType | Id of the source that produced the readings. Only used when adding readings to one individual. |
| transactional | UNKNOWN: OptionalType | Pass true to apply the readings all-or-nothing. The service default is false. |
AosvcAsyncTask
The state of a queued aosvc task.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Task id. |
| _reqBodySize | UNKNOWN: OptionalType | Size of the request body in bytes. |
| _batchCompleted | UNKNOWN: OptionalType | Batches completed. |
| _status | UNKNOWN: OptionalType | CREATED, RESET, QUEUED, RUNNING, COMPLETED or FAILED. |
| _detailedStatus | UNKNOWN: OptionalType | Failure reason or progress detail. |
| _timeTakenInMilliSecs | UNKNOWN: OptionalType | Elapsed time. |
| _response | UNKNOWN: OptionalType | The handler outcome as { _body, _status, _statusMsg, _headers }. _body is JSON when it parses as JSON, otherwise a string. |
| _namespaces | UNKNOWN: OptionalType | Namespaces of the task. |
| _metadata | UNKNOWN: OptionalType | Audit metadata as { _createdAt, _createdById, _updatedAt, _updatedById }. |
AosvcBaseOntologyVersion
An available base ontology version.
Type: Object
| Property | Type | Description |
|---|---|---|
| _version | UNKNOWN: OptionalType | The base ontology version. |
| _latest | UNKNOWN: OptionalType | True for the newest version. |
AosvcCanonicalPromotion
A canonical promotion history record.
Type: Object
| Property | Type | Description |
|---|---|---|
| id | UNKNOWN: OptionalType | Record id. |
| sourceOntologyId | UNKNOWN: OptionalType | Source ontology id. |
| sourceRevision | UNKNOWN: OptionalType | Source revision. |
| targetOntologyId | UNKNOWN: OptionalType | Target ontology id. |
| targetNamespace | UNKNOWN: OptionalType | Target namespace. |
| targetEnvironment | UNKNOWN: OptionalType | Target environment. |
| reason | UNKNOWN: OptionalType | Reason given. |
| actor | UNKNOWN: OptionalType | User who promoted. |
| dryRun | UNKNOWN: OptionalType | True for a dry run. |
| status | UNKNOWN: OptionalType | Promotion status. |
| sourceContentHash | UNKNOWN: OptionalType | Hash of the promoted content. |
| targetContentHash | UNKNOWN: OptionalType | Hash of the target content after promotion. |
| targetRevision | UNKNOWN: OptionalType | Resulting target revision. |
| preflight | UNKNOWN: OptionalType | Preflight validation result. |
| createdAt | UNKNOWN: OptionalType | Creation timestamp. |
AosvcCanonicalPromotionRequest
Request body to promote a canonical revision.
Type: Object
| Property | Type | Description |
|---|---|---|
| reason | String | Required. Why the promotion is made. |
| sourceRevision | UNKNOWN: OptionalType | Revision to promote. Defaults to the current revision. |
| targetOntologyId | UNKNOWN: OptionalType | Ontology to promote into. Defaults to the source ontology. |
| targetNamespace | UNKNOWN: OptionalType | Namespace to promote into. Defaults to the request namespace. |
| targetEnvironment | UNKNOWN: OptionalType | Target environment name. Defaults to "local". |
| dryRun | UNKNOWN: OptionalType | Defaults to true. Pass false to apply the promotion. |
AosvcChangeSet
An ordered set of schema operations applied atomically.
Type: Object
| Property | Type | Description |
|---|---|---|
| operations | Array<AosvcChangeSetOperation> | The ordered operations. |
AosvcChangeSetOperation
One operation of a change set.
Type: Object
| Property | Type | Description |
|---|---|---|
| op | (UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType) | The operation. |
| collection | String | The schema collection the operation targets. |
| id | UNKNOWN: OptionalType | Id of the document. May be omitted when document._id is set. |
| document | UNKNOWN: OptionalType | Complete replacement document for add and update operations. |
AosvcCollectionMapping
The ItemSvc collection a class is bound to.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Mapping id. |
| _classId | UNKNOWN: OptionalType | Class id. |
| _collectionId | UNKNOWN: OptionalType | ItemSvc collection id. |
| _userType | UNKNOWN: OptionalType | ItemSvc item _userType. |
| _createdAt | UNKNOWN: OptionalType | Creation timestamp. |
| _updatedAt | UNKNOWN: OptionalType | Last update timestamp. |
| _createdBy | UNKNOWN: OptionalType | Creating user id. |
| _updatedBy | UNKNOWN: OptionalType | Last updating user id. |
| _platformManaged | UNKNOWN: OptionalType | True 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
| Property | Type | Description |
|---|---|---|
| _collectionName | UNKNOWN: OptionalType | Name of a collection to create or reuse. |
| _collectionId | UNKNOWN: OptionalType | Id of an existing collection to bind. |
| _userType | UNKNOWN: OptionalType | ItemSvc item _userType for the class. |
AosvcConstraint
A property constraint (shape) of an ontology.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Record id. |
| _ontologyId | UNKNOWN: OptionalType | Ontology id. |
| _constraintId | UNKNOWN: OptionalType | Constraint id. |
| _targetClass | UNKNOWN: OptionalType | The class the constraint applies to. |
| _constraintsJson | UNKNOWN: OptionalType | Constraint definitions as a JSON string. |
| _description | UNKNOWN: OptionalType | Description. |
| _createdAt | UNKNOWN: OptionalType | Creation timestamp. |
| _updatedAt | UNKNOWN: OptionalType | Last update timestamp. |
| _createdBy | UNKNOWN: OptionalType | Creating user id. |
| _updatedBy | UNKNOWN: OptionalType | Last updating user id. |
AosvcConstraintCreate
Request body to create a property constraint.
Type: Object
| Property | Type | Description |
|---|---|---|
| _constraintId | String | Required. Constraint id. |
| _targetClass | AosvcParentClass | Required. The class the constraint applies to. |
| _constraintsJson | String | Required. Constraint definitions as a JSON string. |
| _description | UNKNOWN: OptionalType | Description. |
AosvcConstraintUpdate
Request body to update a property constraint.
Type: Object
| Property | Type | Description |
|---|---|---|
| _targetClass | UNKNOWN: OptionalType | The class the constraint applies to. |
| _constraintsJson | UNKNOWN: OptionalType | Constraint definitions as a JSON string. |
| _description | UNKNOWN: OptionalType | Description. |
AosvcConversationMessage
A message of an AI conversation.
Type: Object
| Property | Type | Description |
|---|---|---|
| _role | String | Required. The message role, such as user or assistant. |
| _content | String | Required. The message text. |
AosvcCoreClass
A core class of the base platform ontology.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Class id. |
| _name | UNKNOWN: OptionalType | Class name. |
| _description | UNKNOWN: OptionalType | Class description. |
| _parentClass | UNKNOWN: OptionalType | Parent class id. |
| _extendable | UNKNOWN: OptionalType | False for State, StateTransition, Event and Action, which cannot be subclassed. |
AosvcDraftCreate
Request body to create a draft.
Type: Object
| Property | Type | Description |
|---|---|---|
| _baseVersionNumber | UNKNOWN: OptionalType | Version to copy. Defaults to the live version. |
AosvcEffectiveClassSchema
The effective schema of a class, including inherited properties.
Type: Object
| Property | Type | Description |
|---|---|---|
| _ontologyId | UNKNOWN: OptionalType | Ontology id. |
| _classId | UNKNOWN: OptionalType | Class id. |
| _className | UNKNOWN: OptionalType | Class name. |
| _ancestors | UNKNOWN: OptionalType | Ancestor chain. |
| _properties | UNKNOWN: OptionalType | Effective properties. |
| _constraints | UNKNOWN: OptionalType | Effective constraints. |
| _stateMachines | UNKNOWN: OptionalType | Effective state machines. |
AosvcEffectiveSchemaCriteria
Criteria for getting the effective schema of a class.
Type: Object
| Property | Type | Description |
|---|---|---|
| inherited | UNKNOWN: OptionalType | Pass false to leave out properties inherited from ancestor classes. The service default is true. |
| baseVersion | UNKNOWN: OptionalType | Base ontology version to resolve against when the ontologyId is "base". |
AosvcEntityClass
An entity class of an ontology.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Class id. |
| _ontologyId | UNKNOWN: OptionalType | Owning ontology id. |
| _name | UNKNOWN: OptionalType | Class name. |
| _description | UNKNOWN: OptionalType | Class description. |
| _parentClass | UNKNOWN: OptionalType | The parent class. |
| _pluralName | UNKNOWN: OptionalType | Plural display name. |
| _canvasX | UNKNOWN: OptionalType | X position on the model canvas. |
| _canvasY | UNKNOWN: OptionalType | Y position on the model canvas. |
| _externalKeyFields | UNKNOWN: OptionalType | Properties that form the external key used by UPSERT imports. |
| _createdAt | UNKNOWN: OptionalType | Creation timestamp. |
| _updatedAt | UNKNOWN: OptionalType | Last update timestamp. |
| _createdBy | UNKNOWN: OptionalType | Creating user id. |
| _updatedBy | UNKNOWN: OptionalType | Last updating user id. |
| _platformManaged | UNKNOWN: OptionalType | True 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
| Property | Type | Description |
|---|---|---|
| _name | (String | JSON) | Required. Class name: plain string or locale map. |
| _parentClass | AosvcParentClass | Required. The parent class; its _id may be a base class or another class of the ontology. |
| _description | UNKNOWN: OptionalType | Class description: plain string or locale map. |
| _pluralName | UNKNOWN: OptionalType | Plural display name. |
| _canvasX | UNKNOWN: OptionalType | X position on the model canvas. |
| _canvasY | UNKNOWN: OptionalType | Y position on the model canvas. |
| _externalKeyFields | UNKNOWN: OptionalType | Properties that form the external key used by UPSERT imports. |
AosvcEntityClassUpdate
Request body to update an entity class.
Type: Object
| Property | Type | Description |
|---|---|---|
| _name | UNKNOWN: OptionalType | Class name: plain string or locale map. |
| _description | UNKNOWN: OptionalType | Class description: plain string or locale map. |
| _parentClass | UNKNOWN: OptionalType | The parent class. |
| _pluralName | UNKNOWN: OptionalType | Plural display name. |
| _canvasX | UNKNOWN: OptionalType | X position on the model canvas. |
| _canvasY | UNKNOWN: OptionalType | Y position on the model canvas. |
| _externalKeyFields | UNKNOWN: OptionalType | Properties that form the external key used by UPSERT imports. |
AosvcEntityRelationship
An object property relationship between two classes.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Relationship id. |
| _ontologyId | UNKNOWN: OptionalType | Ontology id. |
| _sourceClassId | UNKNOWN: OptionalType | Source class id. |
| _targetClassId | UNKNOWN: OptionalType | Target class id. |
| _type | UNKNOWN: OptionalType | Relationship type name. |
| _description | UNKNOWN: OptionalType | Description. |
| _parameterMapJson | UNKNOWN: OptionalType | Relationship parameters as a JSON string. |
| _createdAt | UNKNOWN: OptionalType | Creation timestamp. |
| _createdBy | UNKNOWN: OptionalType | Creating user id. |
| _platformManaged | UNKNOWN: OptionalType | True 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
| Property | Type | Description |
|---|---|---|
| _sourceClassId | String | Required. Source class id. |
| _targetClassId | String | Required. Target class id. |
| _type | String | Required. Relationship type name. |
| _description | UNKNOWN: OptionalType | Description. |
| _parameterMapJson | UNKNOWN: OptionalType | Relationship parameters as a JSON string. |
AosvcFileReference
Reference to a File Service file version.
Type: Object
| Property | Type | Description |
|---|---|---|
| _fileId | String | Required. File id. |
| _fileVersionId | String | Required. File version id. |
AosvcGenerateModelRequest
Request body for Build with AI.
Type: Object
| Property | Type | Description |
|---|---|---|
| _prompt | String | Required. What to build. Limited to 500 characters. |
| _teamId | UNKNOWN: OptionalType | Id of the aisvc team to use. |
| _currentModel | UNKNOWN: OptionalType | The current model, for refinement. |
| _conversationHistory | UNKNOWN: OptionalType | Earlier messages. |
| _attachments | UNKNOWN: OptionalType | Files to base the model on. |
AosvcGenerateModelResponse
The model proposed by Build with AI.
Type: Object
| Property | Type | Description |
|---|---|---|
| _output | UNKNOWN: OptionalType | The proposed model. |
| _teamId | UNKNOWN: OptionalType | Team used. |
| _conversationId | UNKNOWN: OptionalType | Conversation id. |
AosvcHeaders
Optional HTTP headers understood by the aosvc service. Pass them in .
Type: Object
| Property | Type | Description |
|---|---|---|
| X-Ontology-Draft | UNKNOWN: OptionalType | The 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-Match | UNKNOWN: OptionalType | The 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-Language | UNKNOWN: OptionalType | Locale used to resolve localized display fields such as _name and _description, for example "en". |
AosvcImportCleanupResult
Result of undoing an import.
Type: Object
| Property | Type | Description |
|---|---|---|
| _asyncTaskId | UNKNOWN: OptionalType | The import task id. |
| _ontologyId | UNKNOWN: OptionalType | Ontology id. |
| _classesWithoutMapping | UNKNOWN: OptionalType | Classes skipped because they have no collection mapping. |
| _errors | UNKNOWN: OptionalType | Errors met while dispatching the deletes. |
| _classesSearched | UNKNOWN: OptionalType | Number of classes searched for individuals created by the import. |
| _dispatched | UNKNOWN: OptionalType | Per-collection deletes dispatched to ItemSvc, as { _classId, _collectionId, _itemsvcTaskId }. |
AosvcImportCriteria
Query parameters for a bulk ontology import.
Type: Object
| Property | Type | Description |
|---|---|---|
| dryRun | UNKNOWN: OptionalType | Pass true to validate only. The result is returned inline (200, or 422 when the data does not conform) and nothing is written or queued. |
| mode | UNKNOWN: OptionalType | UPSERT (default) matches individuals on their external key; CREATE_ONLY always creates new individuals. |
| facets | UNKNOWN: OptionalType | ENFORCE (default) rejects a class group that fails a value facet (datatype, minInclusive, maxInclusive, pattern); REPORT reports the violations but still writes the group. |
| rollback | UNKNOWN: OptionalType | Defaults to true: a failed import deletes the individuals it created. Pass false to keep what was written. Updates made by UPSERT are never restored. |
| modelRevision | UNKNOWN: OptionalType | Ontology 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
| Property | Type | Description |
|---|---|---|
| _classId | String | Required. Id of the class the individual belongs to. |
| _externalKeyFields | UNKNOWN: OptionalType | Properties that form the external key for UPSERT. |
| _relationships | UNKNOWN: OptionalType | Inline edges from this individual, such as { _userType, _relatedToIds } or import-time entries with _propertyName. |
AosvcIndividualRelationship
A relationship edge from an individual.
Type: Object
| Property | Type | Description |
|---|---|---|
| _userType | UNKNOWN: OptionalType | Relationship type name. |
| _relatedToIds | UNKNOWN: OptionalType | Ids of the target individuals. |
| _customAttributes | UNKNOWN: OptionalType | Custom attributes of the edge. |
| _relatedFromId | UNKNOWN: OptionalType | Id of the source individual. |
| _relatedUserItemDbId | UNKNOWN: OptionalType | Database id of the related item. |
| _relatedUserType | UNKNOWN: OptionalType | _userType of the related item. |
| _relationshipId | UNKNOWN: OptionalType | Id of the relationship record. |
AosvcIndividualSearchRequest
Request body to search the individuals of a class.
Type: Object
| Property | Type | Description |
|---|---|---|
| _filter | UNKNOWN: OptionalType | Structured filter on individual properties. |
| _includeSubclasses | UNKNOWN: OptionalType | Include individuals of subclasses. |
| _offset | UNKNOWN: OptionalType | Number of results to skip. |
| _pageSize | UNKNOWN: OptionalType | Number of results per page. |
| _sort | UNKNOWN: OptionalType | Sort map: property to 1 (ascending) or -1 (descending). |
| _projection | UNKNOWN: OptionalType | Properties to return. |
AosvcIndividualSearchResponse
A page of individuals.
Type: Object
| Property | Type | Description |
|---|---|---|
| _list | UNKNOWN: OptionalType | The individuals. |
| _offset | UNKNOWN: OptionalType | Offset of the page. |
| _pageSize | UNKNOWN: OptionalType | Page size. |
| _total | UNKNOWN: OptionalType | Total matching individuals. |
| _hasMore | UNKNOWN: OptionalType | True when more results exist. |
AosvcInferSchemaRequest
Request body to infer an ItemSvc schema from sample data.
Type: Object
| Property | Type | Description |
|---|---|---|
| dataJson | String | Required. Sample data as a JSON string. Note: no underscore prefix. |
| _typeName | UNKNOWN: OptionalType | Name for the inferred type. |
| _teamId | UNKNOWN: OptionalType | Id of the aisvc team to use. |
AosvcInferSchemaResponse
The inferred schema.
Type: Object
| Property | Type | Description |
|---|---|---|
| _output | UNKNOWN: OptionalType | The inferred schema. |
| _teamId | UNKNOWN: OptionalType | Team used. |
AosvcLimitCriteria
Criteria for listing the individuals of a class.
Type: Object
| Property | Type | Description |
|---|---|---|
| limit | UNKNOWN: OptionalType | Maximum number of individuals to return. The service default is 1000. |
AosvcLockReleaseCriteria
Criteria for releasing an ontology edit lock.
Type: Object
| Property | Type | Description |
|---|---|---|
| force | UNKNOWN: OptionalType | Pass true to release a lock held by another user. The service default is false. |
AosvcMcpConfig
The MCP tool declaration of a class.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Config id. |
| _classId | UNKNOWN: OptionalType | Class id. |
| _toolName | UNKNOWN: OptionalType | MCP tool name. |
| _criteriaJson | UNKNOWN: OptionalType | Query criteria as a JSON string. |
| _provisioningStatus | UNKNOWN: OptionalType | Provisioning status in aisvc. |
| _provisionedAt | UNKNOWN: OptionalType | Provisioning timestamp. |
| _createdAt | UNKNOWN: OptionalType | Creation timestamp. |
| _updatedAt | UNKNOWN: OptionalType | Last update timestamp. |
| _createdBy | UNKNOWN: OptionalType | Creating user id. |
| _updatedBy | UNKNOWN: OptionalType | Last updating user id. |
AosvcMcpConfigUpdate
Request body to declare a class as an MCP tool.
Type: Object
| Property | Type | Description |
|---|---|---|
| _toolName | UNKNOWN: OptionalType | MCP tool name. |
| _criteriaJson | UNKNOWN: OptionalType | Query criteria as a JSON string. |
AosvcOntology
An application ontology.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | The ontology id. |
| _namespaces | UNKNOWN: OptionalType | Namespaces of the ontology. |
| _name | UNKNOWN: OptionalType | Ontology name, resolved for the requested locale. |
| _description | UNKNOWN: OptionalType | Ontology description, resolved for the requested locale. |
| _baseVersion | UNKNOWN: OptionalType | The base ontology version this ontology builds on. |
| _editLockTimeoutSeconds | UNKNOWN: OptionalType | Edit-lock lease in seconds, or -1 when the ontology is not lock-protected. |
| _version | UNKNOWN: OptionalType | Number of the live ontology version. |
| _revision | UNKNOWN: OptionalType | Current aggregate revision. |
| _createdAt | UNKNOWN: OptionalType | Creation timestamp. |
| _updatedAt | UNKNOWN: OptionalType | Last update timestamp. |
| _createdBy | UNKNOWN: OptionalType | Id of the creating user. |
| _updatedBy | UNKNOWN: OptionalType | Id of the last updating user. |
AosvcOntologyCreate
Request body to create an application ontology.
Type: Object
| Property | Type | Description |
|---|---|---|
| _name | (String | JSON) | Required. Ontology name: a plain string (stored as English) or a locale map such as { en: "Plant", de: "Anlage" }. |
| _description | UNKNOWN: OptionalType | Ontology description, as a plain string or locale map. |
| _baseVersion | UNKNOWN: OptionalType | Base ontology version to build on. Defaults to the latest available version. |
| _editLockTimeoutSeconds | UNKNOWN: OptionalType | Opt 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
| Property | Type | Description |
|---|---|---|
| _ontologyId | UNKNOWN: OptionalType | Ontology id. |
| _lockingEnabled | UNKNOWN: OptionalType | False when the ontology is not lock-protected. |
| _locked | UNKNOWN: OptionalType | True when a live lock is held. |
| _holder | UNKNOWN: OptionalType | Id of the user holding the lock. |
| _holderName | UNKNOWN: OptionalType | Name of the user holding the lock. |
| _acquiredAt | UNKNOWN: OptionalType | When the lock was acquired. |
| _lastActivityAt | UNKNOWN: OptionalType | When the holder last wrote or sent a heartbeat. |
| _expiresAt | UNKNOWN: OptionalType | When the lease lapses without activity. |
| _heldByMe | UNKNOWN: OptionalType | True when the caller holds the lock. |
| _leaseSeconds | UNKNOWN: OptionalType | Lease length in seconds, or -1 when locking is disabled. |
| _lastWriteBy | UNKNOWN: OptionalType | Id of the last user to write to the ontology. |
| _changedByAnother | UNKNOWN: OptionalType | True when someone other than the caller wrote last. |
AosvcOntologyUpdate
Request body to update an application ontology.
Type: Object
| Property | Type | Description |
|---|---|---|
| _name | UNKNOWN: OptionalType | Ontology name, as a plain string or locale map. |
| _description | UNKNOWN: OptionalType | Ontology description, as a plain string or locale map. |
| _editLockTimeoutSeconds | UNKNOWN: OptionalType | Turn 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
| Property | Type | Description |
|---|---|---|
| _versionNumber | UNKNOWN: OptionalType | Version number. |
| _versionId | UNKNOWN: OptionalType | Version id. |
| _status | UNKNOWN: OptionalType | DRAFT, PUBLISHED and so on. |
| _live | UNKNOWN: OptionalType | True for the live version. |
| _baseVersionNumber | UNKNOWN: OptionalType | Version this one was copied from. |
| _name | UNKNOWN: OptionalType | Localized name. |
| _description | UNKNOWN: OptionalType | Localized description. |
| _label | UNKNOWN: OptionalType | Label given when published. |
| _contentHash | UNKNOWN: OptionalType | Content hash. |
| _createdAt | UNKNOWN: OptionalType | Creation timestamp. |
| _createdBy | UNKNOWN: OptionalType | Creating user id. |
| _updatedAt | UNKNOWN: OptionalType | When the version's content last changed: set when a draft is created and by every schema write to it. |
| _updatedBy | UNKNOWN: OptionalType | User id of that last change. |
| _publishedAt | UNKNOWN: OptionalType | Publish timestamp. |
| _promotedAt | UNKNOWN: OptionalType | Promotion timestamp. |
| _contents | UNKNOWN: OptionalType | Row count per collection. |
AosvcOptions
Pagination options for AO Service list requests.
Type: Object
| Property | Type | Description |
|---|---|---|
| _offset | UNKNOWN: OptionalType | Sets the number of results to skip in the Page response. Default: . |
| _pageSize | UNKNOWN: OptionalType | Sets the number of results to return per Page in the response. Default and maximum: . |
AosvcOwlDocument
An inline OWL document.
Type: Object
| Property | Type | Description |
|---|---|---|
| name | String | Required. Document name. |
| content | String | Required. Document content such as Turtle or RDF/XML. |
| mediaType | UNKNOWN: OptionalType | Media type of the content. |
AosvcOwlExplanationRequest
Request body to explain a previewed axiom.
Type: Object
| Property | Type | Description |
|---|---|---|
| contractVersion | Number | Required. Contract version, currently 1. |
| axiomId | String | Required. Id of the axiom to explain. |
| preview | AosvcOwlPreviewRequest | Required. The preview request the axiom came from. |
AosvcOwlExplanationResponse
Proof availability for a previewed axiom.
Type: Object
| Property | Type | Description |
|---|---|---|
| contractVersion | UNKNOWN: OptionalType | Contract version. |
| axiomId | UNKNOWN: OptionalType | Axiom id. |
| available | UNKNOWN: OptionalType | True when an explanation exists. |
| reason | UNKNOWN: OptionalType | Why an explanation is unavailable. |
| reasoner | UNKNOWN: OptionalType | Reasoner mode. |
| implementation | UNKNOWN: OptionalType | Reasoner implementation. |
| supportingAxiomIds | UNKNOWN: OptionalType | Ids of supporting axioms. |
AosvcOwlPreviewRequest
Request body to preview OWL documents. Note: OWL contracts use camelCase without an underscore prefix.
Type: Object
| Property | Type | Description |
|---|---|---|
| contractVersion | Number | Required. Contract version, currently 1. |
| documents | Array<AosvcOwlDocument> | Required. Non-empty list of documents. |
| reasoner | UNKNOWN: OptionalType | Reasoner mode, for example AUTO. |
| includeInferred | UNKNOWN: OptionalType | Include inferred axioms. |
| loadAllowlistedRemoteImports | UNKNOWN: OptionalType | Resolve allowlisted remote imports. |
| options | UNKNOWN: OptionalType | Options as { reasoner, includeInferred, loadAllowlistedRemoteImports }. |
AosvcOwlPreviewResponse
Classification, axioms and diagnostics of an OWL preview. Not persisted.
Type: Object
| Property | Type | Description |
|---|---|---|
| contractVersion | UNKNOWN: OptionalType | Contract version. |
| classification | UNKNOWN: OptionalType | Reasoner outcome as { requestedReasoner, reasoner, implementation, consistent, unsatisfiableClasses, elapsedMillis }. |
| profile | UNKNOWN: OptionalType | OWL profile as { name, supported, profiles }. |
| counts | UNKNOWN: OptionalType | Axiom counts by kind. |
| axioms | UNKNOWN: OptionalType | Axioms with id, origin, owlAxiomType, display, dependencies, persistenceDisposition, nativeRule, genericRule and explanationAvailable. |
| imports | UNKNOWN: OptionalType | Import resolution results. |
| diagnostics | UNKNOWN: OptionalType | Diagnostics as { severity, code, document, message, blocking }. |
| limits | UNKNOWN: OptionalType | Limits applied to the preview. |
AosvcParentClass
Reference to a parent or target class.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | Required for requests. The class id. |
| _name | UNKNOWN: OptionalType | The class name. Returned by the service. |
AosvcPermissionGrant
Request body to grant permissions on an ontology or class.
Type: Object
| Property | Type | Description |
|---|---|---|
| _user | AosvcPermissionUser | Required. The grantee. |
| _actions | Array<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
| Property | Type | Description |
|---|---|---|
| _id | String | Required. User, user group or profile id. |
| _type | UNKNOWN: OptionalType | "user" or "usergroup". |
AosvcPromotionConfirm
Request body to confirm a promotion request.
Type: Object
| Property | Type | Description |
|---|---|---|
| _reportId | UNKNOWN: OptionalType | The 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
| Property | Type | Description |
|---|---|---|
| _check | UNKNOWN: OptionalType | Check name. |
| _severity | UNKNOWN: OptionalType | Finding severity. |
| _message | UNKNOWN: OptionalType | Finding message. |
AosvcPromotionRequest
A request to make an ontology version live.
Type: Object
| Property | Type | Description |
|---|---|---|
| _requestId | UNKNOWN: OptionalType | Request id. |
| _ontologyId | UNKNOWN: OptionalType | Ontology id. |
| _versionNumber | UNKNOWN: OptionalType | Version being promoted. |
| _fromVersionNumber | UNKNOWN: OptionalType | Version that is live now. |
| _reportId | UNKNOWN: OptionalType | Impact analysis report on this promotion. Absent for a first promotion, which has nothing live to compare against. |
| _status | UNKNOWN: OptionalType | Request status. |
| _canConfirm | UNKNOWN: OptionalType | True when the checks allow confirmation. |
| _findings | UNKNOWN: OptionalType | Check findings. |
| _requestedAt | UNKNOWN: OptionalType | Request timestamp. |
| _requestedBy | UNKNOWN: OptionalType | Requesting user id. |
| _confirmedAt | UNKNOWN: OptionalType | Confirmation timestamp. |
| _confirmedBy | UNKNOWN: OptionalType | Confirming user id. |
AosvcPromotionRequestCreate
Request body to request a promotion.
Type: Object
| Property | Type | Description |
|---|---|---|
| _versionNumber | Number | Required. The published version to promote. |
AosvcPropertyMapping
A field to property mapping of a bound class.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Mapping id. |
| _classId | UNKNOWN: OptionalType | Class id. |
| _itemsvcField | UNKNOWN: OptionalType | ItemSvc field name. |
| _ontologyProperty | UNKNOWN: OptionalType | Ontology property name or IRI. |
| _transform | UNKNOWN: OptionalType | Transform expression. |
| _script | UNKNOWN: OptionalType | Mapping script. |
| _createdAt | UNKNOWN: OptionalType | Creation timestamp. |
| _createdBy | UNKNOWN: OptionalType | Creating user id. |
AosvcPropertyMappingCreate
Request body to add a field to property mapping.
Type: Object
| Property | Type | Description |
|---|---|---|
| _ontologyProperty | String | Required. Ontology property name or IRI. |
| _itemsvcField | UNKNOWN: OptionalType | ItemSvc field name. |
| _transform | UNKNOWN: OptionalType | Transform expression. |
| _script | UNKNOWN: OptionalType | Mapping script. |
AosvcPublish
Request body to publish a draft.
Type: Object
| Property | Type | Description |
|---|---|---|
| _label | UNKNOWN: OptionalType | Label for the published version. |
AosvcReadingsCriteria
Criteria for reading telemetry readings.
Type: Object
| Property | Type | Description |
|---|---|---|
| from | UNKNOWN: OptionalType | Earliest reading timestamp to include, ISO 8601. |
| to | UNKNOWN: OptionalType | Latest reading timestamp to include, ISO 8601. |
| offset | UNKNOWN: OptionalType | Number of readings to skip. The service default is 0. |
| limit | UNKNOWN: OptionalType | Maximum number of readings to return. The service default is 200. |
| ascending | UNKNOWN: OptionalType | Pass true for oldest first. The service default is false (newest first). |
AosvcReadingsPage
A page of telemetry readings.
Type: Object
| Property | Type | Description |
|---|---|---|
| _list | UNKNOWN: OptionalType | The readings. |
| _total | UNKNOWN: OptionalType | Total readings. |
| _offset | UNKNOWN: OptionalType | Offset of the page. |
AosvcReasonerRequest
Request body for the stateless reasoner. Note: no underscore prefix.
Type: Object
| Property | Type | Description |
|---|---|---|
| ontology | JSON | Required. The ontology definition (classes, properties). |
| rules | UNKNOWN: OptionalType | Rule definitions to apply. |
| constraints | UNKNOWN: OptionalType | Property constraint definitions. |
| instances | UNKNOWN: OptionalType | Instance data keyed by instance id. |
| engine | UNKNOWN: OptionalType | Reasoner 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
| Property | Type | Description |
|---|---|---|
| inferences | UNKNOWN: OptionalType | Inferred facts. |
| violations | UNKNOWN: OptionalType | Constraint violations. |
| relationships | UNKNOWN: OptionalType | Derived relationships. |
| instanceTypes | UNKNOWN: OptionalType | Inferred classes per instance id. |
AosvcRelationshipBatch
Request body to batch-set relationships.
Type: Object
| Property | Type | Description |
|---|---|---|
| _relationships | Array<AosvcRelationshipBatchEntry> | The entries to set. |
AosvcRelationshipBatchEntry
Relationships of one parent individual and one relationship type.
Type: Object
| Property | Type | Description |
|---|---|---|
| _userType | UNKNOWN: OptionalType | Relationship type name. |
| _relatedFromId | UNKNOWN: OptionalType | Id of the parent individual. |
| _relatedToIds | UNKNOWN: OptionalType | Ids 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
| Property | Type | Description |
|---|---|---|
| headers | UNKNOWN: OptionalType | HTTP headers to send with the request. |
AosvcReviewDatasetRequest
Request body to review an import dataset.
Type: Object
| Property | Type | Description |
|---|---|---|
| prompt | String | Required. Review instructions. Note: no underscore prefix. |
| datasetJson | String | Required. The dataset as a JSON string. |
| modelJson | String | Required. The model as a JSON string. |
| teamId | UNKNOWN: OptionalType | Id of the aisvc team to use. |
AosvcReviewDatasetResponse
The dataset review.
Type: Object
| Property | Type | Description |
|---|---|---|
| _output | UNKNOWN: OptionalType | The review. |
| _teamId | UNKNOWN: OptionalType | Team used. |
| _mcpToolName | UNKNOWN: OptionalType | MCP tool created for the proposal. |
AosvcRevision
An immutable ontology aggregate revision manifest.
Type: Object
| Property | Type | Description |
|---|---|---|
| id | UNKNOWN: OptionalType | Record id. |
| ontologyId | UNKNOWN: OptionalType | Ontology id. |
| revision | UNKNOWN: OptionalType | Revision number. |
| contentHash | UNKNOWN: OptionalType | Hash of the snapshot content. |
| payloadBytes | UNKNOWN: OptionalType | Snapshot size in bytes. |
| chunkCount | UNKNOWN: OptionalType | Number of stored chunks. |
| collections | UNKNOWN: OptionalType | Collections included in the snapshot. |
| createdAt | UNKNOWN: OptionalType | Creation timestamp. |
| createdBy | UNKNOWN: OptionalType | Creating user id. |
| operation | UNKNOWN: OptionalType | The operation that produced the revision, for example CHANGE_SET, ROLLBACK or PROMOTION. |
| sourceRevision | UNKNOWN: OptionalType | Revision a rollback or promotion was taken from. |
AosvcRule
An ontology rule (axiom).
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Rule id. |
| _ontologyId | UNKNOWN: OptionalType | Ontology id. |
| _ruleType | UNKNOWN: OptionalType | Rule type. See getRuleTypes. |
| _ruleJson | UNKNOWN: OptionalType | Rule definition as a JSON string. |
| _subClassId | UNKNOWN: OptionalType | Sub class id. |
| _superClassId | UNKNOWN: OptionalType | Super class id. |
| _createdAt | UNKNOWN: OptionalType | Creation timestamp. |
| _updatedAt | UNKNOWN: OptionalType | Last update timestamp. |
| _createdBy | UNKNOWN: OptionalType | Creating user id. |
| _updatedBy | UNKNOWN: OptionalType | Last updating user id. |
AosvcRuleCreate
Request body to create a rule.
Type: Object
| Property | Type | Description |
|---|---|---|
| _ruleType | String | Required. Rule type. See getRuleTypes. |
| _ruleJson | UNKNOWN: OptionalType | Rule definition as a JSON string. |
| _subClassId | UNKNOWN: OptionalType | Sub class id. |
| _superClassId | UNKNOWN: OptionalType | Super class id. |
AosvcRuleType
A supported rule type.
Type: Object
| Property | Type | Description |
|---|---|---|
| _name | UNKNOWN: OptionalType | Rule type name. |
| _description | UNKNOWN: OptionalType | What the rule type does. |
AosvcRuleUpdate
Request body to update a rule.
Type: Object
| Property | Type | Description |
|---|---|---|
| _ruleType | UNKNOWN: OptionalType | Rule type. |
| _ruleJson | UNKNOWN: OptionalType | Rule definition as a JSON string. |
| _subClassId | UNKNOWN: OptionalType | Sub class id. |
| _superClassId | UNKNOWN: OptionalType | Super class id. |
AosvcSchemaBundle
A canonical aosvc schema bundle. Pass the bundle under when validating.
Type: Object
| Property | Type | Description |
|---|---|---|
| snapshot | UNKNOWN: OptionalType | The canonical schema snapshot, as returned by getOntologySchema. |
AosvcSchemaClassRef
A class in the ancestor chain of an effective schema.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Class id. |
| _name | UNKNOWN: OptionalType | Class name. |
| _base | UNKNOWN: OptionalType | True when the class belongs to the base ontology. |
AosvcSchemaCriteria
Criteria for getting an ontology schema bundle.
Type: Object
| Property | Type | Description |
|---|---|---|
| revision | UNKNOWN: OptionalType | Aggregate revision to read. Omit for the current revision. |
AosvcSchemaProperty
A property in an effective class schema.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Property id. |
| _name | UNKNOWN: OptionalType | Property name. |
| _description | UNKNOWN: OptionalType | Property description. |
| _propertyType | UNKNOWN: OptionalType | Property kind, for example data or object property. |
| _range | UNKNOWN: OptionalType | Value range or datatype. |
| _rangeClassId | UNKNOWN: OptionalType | Target class id for object properties. |
| _queryPath | UNKNOWN: OptionalType | Query path of the property. |
| _sourceClassId | UNKNOWN: OptionalType | Id of the class that declares the property. |
| _sourceClassName | UNKNOWN: OptionalType | Name of the class that declares the property. |
| _inherited | UNKNOWN: OptionalType | True when inherited from an ancestor. |
| _itemsvcField | UNKNOWN: OptionalType | Mapped ItemSvc field. |
| _transform | UNKNOWN: OptionalType | Mapping transform expression. |
| _scripted | UNKNOWN: OptionalType | True when the mapping uses a script. |
| _relationshipId | UNKNOWN: OptionalType | Relationship id for object properties. |
| _constraints | UNKNOWN: OptionalType | Constraints on the property. |
| _attributes | UNKNOWN: OptionalType | Relationship attributes as key/value entries. |
AosvcSchemaStateMachine
State machine metadata in an effective class schema.
Type: Object
| Property | Type | Description |
|---|---|---|
| _machineId | UNKNOWN: OptionalType | State machine id. |
| _machineName | UNKNOWN: OptionalType | State machine name. |
| _sourceClassId | UNKNOWN: OptionalType | Class that declares the machine. |
| _inherited | UNKNOWN: OptionalType | True when inherited. |
| _states | UNKNOWN: OptionalType | States as { _id, _name, _value }. |
| _transitions | UNKNOWN: OptionalType | Transitions as { _id, _name, _fromStateId, _toStateId, _executionOrder }. |
AosvcSourcePrepareRequest
Request body to infer a dataset from files.
Type: Object
| Property | Type | Description |
|---|---|---|
| _attachments | Array<AosvcFileReference> | Required. The files to infer from. |
| _teamId | UNKNOWN: OptionalType | Id of the aisvc team to use. |
| _ontologyId | UNKNOWN: OptionalType | Id of an ontology whose class names are added to the inference prompt. Nothing is persisted. |
AosvcSourcePrepareResponse
The inferred dataset.
Type: Object
| Property | Type | Description |
|---|---|---|
| dataset | UNKNOWN: OptionalType | The inferred instance-map dataset. |
| log | UNKNOWN: OptionalType | Inference log. |
AosvcStateMachine
A complete state machine. Exactly one of its states is marked . Responses additionally carry _ontologyId, _createdAt, _updatedAt, _createdBy and _updatedBy.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | State machine id. Generated when omitted. |
| _name | String | Required. State machine name. |
| _description | UNKNOWN: OptionalType | Description. |
| _classIds | Array<String> | Required. Ids of the classes the machine tracks. |
| _states | Array<AosvcStateMachineState> | Required. The states. |
| _events | Array<AosvcStateMachineEvent> | Required. The events. |
| _transitions | Array<AosvcStateMachineTransition> | Required. The transitions. |
| _ontologyId | UNKNOWN: OptionalType | Owning ontology id. Returned by the service. |
| _createdAt | UNKNOWN: OptionalType | Creation timestamp. Returned by the service. |
| _updatedAt | UNKNOWN: OptionalType | Last update timestamp. Returned by the service. |
| _createdBy | UNKNOWN: OptionalType | Creating user id. Returned by the service. |
| _updatedBy | UNKNOWN: OptionalType | Last updating user id. Returned by the service. |
AosvcStateMachineClassBinding
Request body to bind or unbind classes of a state machine.
Type: Object
| Property | Type | Description |
|---|---|---|
| _classIds | Array<String> | Required. Non-empty list of class ids. |
AosvcStateMachineCriteria
Criteria for listing state machines.
Type: Object
| Property | Type | Description |
|---|---|---|
| classId | UNKNOWN: OptionalType | Only return state machines that track this class. |
AosvcStateMachineEvent
An event of a state machine.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Event id. Generated when omitted. |
| _name | String | Required. Event name. |
| _description | UNKNOWN: OptionalType | Description. |
AosvcStateMachineEventPublish
Request body to publish a state machine event.
Type: Object
| Property | Type | Description |
|---|---|---|
| _eventId | String | Required. Id of the event. |
| _eventName | String | Required. Name of the event. |
| _targets | Array<AosvcStateMachineEventTarget> | Required. Targets grouped by class. |
AosvcStateMachineEventQueued
Response after a state machine event is queued.
Type: Object
| Property | Type | Description |
|---|---|---|
| _eventTriggerId | UNKNOWN: OptionalType | Id of the queued event trigger. |
AosvcStateMachineEvents
One state machine's events, in the ontology-wide events listing.
Type: Object
| Property | Type | Description |
|---|---|---|
| _stateMachineId | UNKNOWN: OptionalType | State machine id. |
| _events | UNKNOWN: OptionalType | Its events. |
AosvcStateMachineEventTarget
The individuals of one class that receive a state machine event.
Type: Object
| Property | Type | Description |
|---|---|---|
| _classId | String | Required. Class id. |
| _individualIds | Array<String> | Required. 1 to 500 individual ids. |
AosvcStateMachineHistoryCriteria
Criteria for getting a state machine's transition history.
Type: Object
| Property | Type | Description |
|---|---|---|
| limit | UNKNOWN: OptionalType | How 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
| Property | Type | Description |
|---|---|---|
| machineId | UNKNOWN: OptionalType | Only return this state machine's. |
AosvcStateMachineState
A state of a state machine.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | State id. Generated when omitted. |
| _name | String | Required. State name. |
| _value | JSON | Required. The property value that represents the state. |
| _initial | UNKNOWN: OptionalType | True 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
| Property | Type | Description |
|---|---|---|
| _stateMachineId | UNKNOWN: OptionalType | State machine id. |
| _states | UNKNOWN: OptionalType | Its states. |
AosvcStateMachineTransition
A transition of a state machine.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Transition id. Generated when omitted. |
| _name | String | Required. Transition name. |
| _fromStateId | String | Required. Id of the source state. |
| _toStateId | String | Required. Id of the target state. |
| _executionOrder | UNKNOWN: OptionalType | Order in which competing transitions are evaluated. |
| _eventIds | Array<String> | Required. Events that trigger the transition. |
| _actions | Array<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
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Id of the action to run. |
| _executionOrder | UNKNOWN: OptionalType | Order in which the action runs, zero based. |
| _name | UNKNOWN: OptionalType | Action name. |
| _actionType | UNKNOWN: OptionalType | Action type. |
| _description | UNKNOWN: OptionalType | Description. |
| _params | UNKNOWN: OptionalType | Action parameters. |
AosvcStateMachineTransitions
One state machine's transitions, in the ontology-wide transitions listing.
Type: Object
| Property | Type | Description |
|---|---|---|
| _stateMachineId | UNKNOWN: OptionalType | State machine id. |
| _transitions | UNKNOWN: OptionalType | Its transitions. |
AosvcTransitionHistory
An attempted state transition of an individual.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Record id. |
| _eventTriggerId | UNKNOWN: OptionalType | Event trigger id. |
| _stateMachineId | UNKNOWN: OptionalType | State machine id. |
| _classId | UNKNOWN: OptionalType | Class of the individual. |
| _individualId | UNKNOWN: OptionalType | Individual id. |
| _eventId | UNKNOWN: OptionalType | Event id. |
| _eventName | UNKNOWN: OptionalType | Event name. |
| _eventSourceType | UNKNOWN: OptionalType | Source of the event. |
| _transitionId | UNKNOWN: OptionalType | Transition id. |
| _fromStateId | UNKNOWN: OptionalType | Source state id. |
| _toStateId | UNKNOWN: OptionalType | Target state id. |
| _fromStateValue | UNKNOWN: OptionalType | Value of the source state. |
| _toStateValue | UNKNOWN: OptionalType | Value of the target state. |
| _success | UNKNOWN: OptionalType | True when the transition committed. |
| _currentState | UNKNOWN: OptionalType | State after the attempt. |
| _actorUserId | UNKNOWN: OptionalType | User who triggered the event. |
| _occurredAt | UNKNOWN: OptionalType | When the event occurred. |
| _committedAt | UNKNOWN: OptionalType | When the transition committed. |
AosvcTraversalHop
One hop of a relationship traversal.
Type: Object
| Property | Type | Description |
|---|---|---|
| _relationship | String | Required. Name of the relationship to follow. |
AosvcTraversalRequest
Request body to traverse relationships from individuals.
Type: Object
| Property | Type | Description |
|---|---|---|
| _startIndividualIds | Array<String> | Required. Ids of the individuals to start from. |
| _hops | Array<AosvcTraversalHop> | Required. The relationships to follow, in order. |
| _filter | UNKNOWN: OptionalType | Structured filter on the terminal individuals. |
| _offset | UNKNOWN: OptionalType | Number of results to skip. |
| _pageSize | UNKNOWN: OptionalType | Number of results per page. |
| _sort | UNKNOWN: OptionalType | Sort map: property to 1 or -1. |
| _projection | UNKNOWN: OptionalType | Properties to return. |
AosvcTraversalResponse
Result of a relationship traversal.
Type: Object
| Property | Type | Description |
|---|---|---|
| _startClassId | UNKNOWN: OptionalType | Class of the start individuals. |
| _terminalClassId | UNKNOWN: OptionalType | Class reached by the last hop. |
| _path | UNKNOWN: OptionalType | The hops as { _relationship, _sourceClassId, _targetClassId }. |
| _breadcrumbs | UNKNOWN: OptionalType | Per-hop breadcrumbs as { _classId, _individualIds, _viaRelationship, _count }. |
| _page | UNKNOWN: OptionalType | The terminal individuals. |
AosvcValidationRequest
Request body to validate individuals against an ontology.
Type: Object
| Property | Type | Description |
|---|---|---|
| dataJson | String | Required. 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
| Property | Type | Description |
|---|---|---|
| _conforms | UNKNOWN: OptionalType | True when the data conforms. |
| _violations | UNKNOWN: OptionalType | The violations found. |
AosvcValidationViolation
A single validation violation.
Type: Object
| Property | Type | Description |
|---|---|---|
| _focusNode | UNKNOWN: OptionalType | The node that violated a constraint. |
| _resultPath | UNKNOWN: OptionalType | The property path of the violation. |
| _message | UNKNOWN: OptionalType | Violation message. |
| _severity | UNKNOWN: OptionalType | Violation severity. |
ApiConfigCriteria
Filter flags for retrieving Object Model API config definitions.
Type: Object
| Property | Type | Description |
|---|---|---|
| _isconfigadded | boolean | When true, returns API configs flagged as added. |
| _tobedeleted | boolean | When true, returns API configs flagged for deletion. |
| nsfilter | String | Namespace filter applied on . |
Application
The Application type defines an application.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | Application UUID |
| _name | String | required, Application name |
| _description | String | Application description |
| _appOwner | String | required, Application owner |
| _namespaces | Array<String> | Namespaces that the application pertains to |
| _redirecUris | String | required, Comma separated string with redirect URIs to receive the access_token after a successful authentication. Max redirect Uris: 3 |
| _authorizedOrigins | String | Comma separated string with the authorized origin restriction. Authentication from any other origins will be restricted. |
| _home | String | Application home page URL |
| _orgId | String | required, Organization Id |
| _whitelistedApps | Array<String> | An array of app ids for the Applications that can access resources in this app. |
| _loginTheme | String | optional, Login Theme supported by the platform |
ApplicationConfigs
Type: Object
ApplicationCriteria
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | (Array<String> | String) | Application UUID |
| _name | (Array<String> | String) | Application name |
| _description | String | Application description |
| _orgId | String | Organization Id |
| query | String | wild card search on name, description and short name |
ApplicationOptions
Type: Object
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets 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
| Property | Type | Description |
|---|---|---|
| access_token | String | The OAuth2 access token (JWT). |
| token_type | String | The token type, e.g. "Bearer". |
| expires_in | Number | Seconds until the access token expires. |
AuditableDTO
Creation and update details of an AI Service resource.
Type: Object
| Property | Type | Description |
|---|---|---|
| _createdAt | Number | When the resource was created, in milliseconds since the Unix epoch. |
| _updatedAt | Number | When the resource was last updated, in milliseconds since the Unix epoch. |
| _createdById | String | The id of the user who created the resource. |
| _updatedById | String | The id of the user who last updated the resource. |
Conversation
Represents a conversation resource.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | The conversation id. |
| _namespaces | Array<String> | Namespaces associated with the conversation. |
| _title | String | The title of the conversation. |
| _userId | String | The user id who created the conversation. |
| _status | number | Status of the conversation. |
| _embeddingModel | String | The embedding model used. |
| _teamId | String | The team that answered the conversation's first turn. |
| _metadata | AuditableDTO | Metadata containing creation and update info. |
| _chats | Array<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. |
| _usage | TokenUsage | Running 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
| Property | Type | Description |
|---|---|---|
| _fileId | String | File Service file id. |
| _fileVersionId | String | File Service version id. |
ConversationCreateRequest
Request to create a new conversation or continue an existing one.
Type: Object
| Property | Type | Description |
|---|---|---|
| _input | ConversationInput | Input message for the conversation. |
| _teamId | String | The team id for the conversation. |
| _id | String | (Optional) Conversation id to continue an existing conversation. |
| _attachments | UNKNOWN: OptionalType | Optional 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
| Property | Type | Description |
|---|---|---|
| allUsers | UNKNOWN: OptionalType | Pass 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
| Property | Type | Description |
|---|---|---|
| _scope | String | Must 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
| Property | Type | Description |
|---|---|---|
| _deleted | Number | The 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 .
| Property | Type | Description |
|---|---|---|
| file | UNKNOWN: OptionalType | The file, when passed as . |
| filename | UNKNOWN: OptionalType | Name to store the file under in File Service. |
ConversationFileUploadOptions
Options for uploading files with and .
Type: Object
| Property | Type | Description |
|---|---|---|
| namespaces | UNKNOWN: OptionalType | Namespaces to store the files in. Defaults to |
| , then the session project's namespaces. | ||
| parentFolderId | UNKNOWN: OptionalType | Folder to store the files in. Defaults to the root folder. |
| tags | UNKNOWN: OptionalType | Extra tags for the stored files. They are always tagged |
| . | ||
| chunkSize | UNKNOWN: OptionalType | Upload chunk size in bytes. Defaults to 10 MB. |
| onProgress | UNKNOWN: OptionalType | Called as each file uploads. |
| onFileComplete | UNKNOWN: OptionalType | Called when a file finishes uploading. |
| onComplete | UNKNOWN: OptionalType | Called 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
| Property | Type | Description |
|---|---|---|
| index | Number | Position of the file in the list. |
| filename | String | The file's name. |
| bytesUploaded | Number | Bytes of this file uploaded so far. |
| bytesTotal | Number | This file's size in bytes. |
| percentage | Number | This file's progress, 0 to 100. |
| totalBytesUploaded | Number | Bytes uploaded so far across all files. |
| totalBytes | Number | Size in bytes of the files that have reported progress so far. |
ConversationFileUploadResult
A file that finished uploading in a conversation file upload.
Type: Object
| Property | Type | Description |
|---|---|---|
| index | Number | Position of the file in the list. |
| filename | String | The file's name. |
| file | File | The stored File Service file. |
| _fileId | String | File Service file id. |
| _fileVersionId | String | File Service version id that is attached. |
ConversationInput
Represents the input for a conversation message.
Type: Object
| Property | Type | Description |
|---|---|---|
| message | String | The message content. |
ConversationOptions
Options for retrieving a conversation.
Type: Object
| Property | Type | Description |
|---|---|---|
| getChats | boolean | Whether to include chat messages in the response. |
| firstN | number | Number of first chats to retrieve. |
| lastN | number | Number of last chats to retrieve. |
| offset | number | Offset of chats to retrieve. |
| textToMatch | string | Text 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
| Property | Type | Description |
|---|---|---|
| headers | UNKNOWN: OptionalType | Request 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
| Property | Type | Description |
|---|---|---|
| agentName | String | The agent's name. |
| message | String | The invocation message configured on the agent. |
ConversationStreamAgentInvokedPayload
Payload of the 'agent-invoked' event, sent when an agent begins its turn.
Type: Object
| Property | Type | Description |
|---|---|---|
| agentName | String | The agent's name. |
ConversationStreamAgentMessagePayload
Payload of the 'agent-message' event: one chunk of an agent's answer as the model produces it.
Type: Object
| Property | Type | Description |
|---|---|---|
| id | UNKNOWN: OptionalType | The id of the message the chunk belongs to. Chunks of one message share it. |
| agent | UNKNOWN: OptionalType | The agent producing the message. |
| delta | String | The text of this chunk. Append it to the chunks before it. |
| isFinal | Boolean | true on the last chunk of the message. |
| path | UNKNOWN: OptionalType | The 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
| Property | Type | Description |
|---|---|---|
| ref | String | The reference the agent used to select the attachment. |
| name | String | The file name. |
| version | (Number | UNKNOWN: NullLiteral) | The file version number, or null when it is not known. |
| fileId | String | The File Service file id. |
| fileVersionId | String | The File Service file version id. |
| scope | String | 'current_message' when the file was attached to this request, or 'conversation_history' when it was attached on an earlier turn. |
| agentName | String | The agent that selected the attachment. |
| provider | String | The AI provider the file is loaded into, for example 'openai' or 'anthropic'. |
| status | String | 'selected', 'loaded', 'unavailable' or 'failed'. |
| reason | UNKNOWN: OptionalType | Why 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
| Property | Type | Description |
|---|---|---|
| _id | String | The conversation id. |
| _turnId | String | The id of the turn this request created. Use it with IafAISvc.getConversationTurn, IafAISvc.getTurnTokenUsage or IafAISvc.getTurnTrace. |
| _output | any | The 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
| Property | Type | Description |
|---|---|---|
| message | String | A 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
| Property | Type | Description |
|---|---|---|
| type | String | The 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
| Parameter | Required | Type | Description |
|---|---|---|---|
| event | Yes | ConversationStreamEvent | The event, with its type and payload. |
void -
ConversationStreamHandle
The handle returned by IafAISvc.streamConversation and IafAISvc.streamConversationWithFiles.
Type: Object
| Property | Type | Description |
|---|---|---|
| abort | Function | Closes the stream immediately. On streamConversationWithFiles it also cancels uploads still in progress. No further events are delivered. |
| done | Promise<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
| Property | Type | Description |
|---|---|---|
| agentName | UNKNOWN: OptionalType | The 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
| Property | Type | Description |
|---|---|---|
| phase | String | One of 'history_loading', 'history_ready', 'knowledge_base_search_starting', 'knowledge_base_search_complete', 'external_tools_loading', 'external_tools_ready', 'generating_response' or 'agent_finished'. |
| description | String | The caption to show, in the language chosen by the Accept-Language request header. |
| agentName | UNKNOWN: OptionalType | The agent the phase belongs to. |
ConversationStreamStartPayload
Payload of the 'conversation' event, sent once when the conversation is created or resumed.
Type: Object
| Property | Type | Description |
|---|---|---|
| id | String | The 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
| Property | Type | Description |
|---|---|---|
| content | String | The complete answer text. |
ConversationStreamToolInvokedPayload
Payload of the 'tool-invoked' event, sent when an agent calls a tool.
Type: Object
| Property | Type | Description |
|---|---|---|
| toolName | String | The tool's name. |
| input | UNKNOWN: OptionalType | The arguments the agent passed to the tool. |
| callId | UNKNOWN: OptionalType | The tool-call id. The matching 'tool-result' event carries the same id. |
| agentName | UNKNOWN: OptionalType | The agent that called the tool. |
ConversationStreamToolResultPayload
Payload of the 'tool-result' event, sent when a tool returns.
Type: Object
| Property | Type | Description |
|---|---|---|
| toolName | String | The tool's name. |
| output | UNKNOWN: OptionalType | The tool's output. Capped at 8 KB on the stream; read the turn's trace with IafAISvc.getTurnTrace for the complete output. |
| callId | UNKNOWN: OptionalType | The tool-call id, matching the 'tool-invoked' event. |
| agentName | UNKNOWN: OptionalType | The agent that called the tool. |
| truncated | UNKNOWN: OptionalType | true 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
| Property | Type | Description |
|---|---|---|
| _message | TokenUsage | Cost 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. | ||
| _conversation | TokenUsage | The conversation's running total, including this turn. |
| Excludes the summarisation top-up, which is applied shortly after the answer is returned. |
CreateNotificationTemplateOptions
Type: Object
| Property | Type | Description |
|---|---|---|
| _appId | String | It can be used when whitelisted app creating notification template for other app |
CreatePermissionsResponse
The response object when you create a Permission
Type: Object
| Property | Type | Description |
|---|---|---|
| _success | Array<Permission> | An array of the successfully created permissions |
| _failures | Array<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
| Property | Type | Description |
|---|---|---|
| noAuth | boolean | Enter if no authentication is required |
| authScheme | String | Use to store an authentication scheme ('Bearer' or 'Basic' for example) if required. Defaults to 'Bearer' if undefined. |
| authToken | String | Use to store an authentication token, if required |
| _namespaces | Array<String> | Stores namespaces when nsfilter is used |
| storage | JSON | Session storage |
ExternalMcpServerConfig
Represents an External MCP Server Config resource.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | The id of the external MCP server config resource. |
| _namespaces | Array<String> | Required, Namespace(s) that own the config. |
| _name | String | Required, Name of the external MCP server. |
| _description | String | Optional description of the external MCP server. |
| _userType | String | Required, Unique identifier for the external MCP server config. |
| _transport | String | Transport type derived from the connection URL (for example, ). |
| _connection | ExternalMcpServerConnection | Required, Connection configuration. |
| _metadata | AuditableDTO | Metadata describing creation and updates. |
| _irn | String | Internal 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
| Property | Type | Description |
|---|---|---|
| _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. |
| _transport | String | Optional. Return configs that use this transport. 'http' is currently the only transport. |
| query | String | Optional. Case-insensitive partial match on the name or the description, for example 'weather'. |
ExternalMcpServerConnection
Connection configuration for an External MCP Server.
Type: Object
| Property | Type | Description |
|---|---|---|
| _url | String | Required, MCP server URL (must be or ). |
| _headers | UNKNOWN: OptionalType | Optional request headers to send to the MCP server. |
ExternalMcpServerHeaderSpec
Header spec for External MCP Server connection headers.
Type: Object
| Property | Type | Description |
|---|---|---|
| type | ExternalMcpServerHeaderType | How the header value is resolved. |
| value | any | For , 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
| Property | Type | Description |
|---|---|---|
| _id | String | The File's database id |
| _name | String | The file name |
| _tipId | String | Latest version id |
| _tipVersion | Number | Latest version number |
| _nextVersion | Number | Next version number |
| _type | String | Either "file" or "dir" |
| _irn | String | Platform resource name with pattern as filesvc:file:<_id> |
| _namespaces | Array | List of namespaces that the UserGroup has access to |
| _tags | Array | Add custom tags to the File |
| _fileVersion | FileVersion | Version details |
| _uploadMeta | UploadMeta | Upload metadata if the file is uploaded as a resumable file upload |
| _url | String | File 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
| Property | Type | Description |
|---|---|---|
| _version | FileContainerVersion | version |
FileContainerVersion
Type: NamedFileCollectionVersion
| Property | Type | Description |
|---|---|---|
| _userAttributes | JSON | it contains 'path' refers to file container(folder) path, '/' for root container |
FileCriteria
Criteria to target a source file in the File Service.
Type: Object
| Property | Type | Description |
|---|---|---|
| _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 |
| _parents | String | Folder id to filter. Without an id, the request considers files from all folders. Use 'root' to filter by a root folder. |
| _ids | String | A 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. |
| tagMode | UNKNOWN: OptionalType | Controls 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. |
| _name | String | Filter by file name. Supports regex. |
// 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
| Property | Type | Description |
|---|---|---|
| null | String | "content-type" - Mime type of the file, Ex: image/png, application/pdf or image/svg+xml |
| null | String | "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
| Property | Type | Description |
|---|---|---|
| _fileId | String | Refers to the source file's id in File Service |
| _fileVersionId | String | Refers 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
| Property | Type | Description |
|---|---|---|
| headers | FileHeaders | Provide headers, for example, for content encoding or content type. |
| filename | String | File name. If you do not provide a file name, the platform tries to get file name from file stream. |
// 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
| Property | Type | Description |
|---|---|---|
| width | Number | Preview image width. |
| height | Number | Preview image height |
FileVersion
A version of a source file
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | The FileVersion's id |
| _version | Number | The version number |
| _fileSize | Number | The file's memory size |
| _fileId | String | Id reference of the source file |
| _checksum | String | SHA-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. |
| _url | String | File 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
| Property | Type | Description |
|---|---|---|
| index | Number | Enter the index of your view to identify it in an array of views from a model |
| label | String | View title |
| value | String | File id that represents the view |
GetApplicationOptions
Type: Object
| Property | Type | Description |
|---|---|---|
| withConfigs | boolean | Include configuration details in the response. |
GetFileOptions
Type: Object
| Property | Type | Description |
|---|---|---|
| _offset | String | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. Default is 0. |
| _pageSize | String | Sets the number of results to return per Page in the response. Default is 25. |
GetMcpToolFilterCriteria
Type: Object
| Property | Type | Description |
|---|---|---|
| _userType | String | Filter by user type |
| query | String | Wild card search that operates on the name and description, for example, ?query=data |
| _name | String | Filter by MCP tool filter name. |
GraphicsDataReadOptions
Pagination controls for retrieving graphics data by type.
Type: Object
| Property | Type | Description |
|---|---|---|
| pageSize | Number | Number of records to request per page. |
| fetchAllPages | Boolean | Set false to stop after the first page response. |
GraphicsFile
Represents a graphics source file in the File Service.
Type: Object
| Property | Type | Description |
|---|---|---|
| _fileId | String | The id of the graphics file in the File Service. |
| _fileVersionId | String | The id of the graphics file version in the File Service. If not provided, the tip version is used. |
| _fileName | String | The File Service name of the graphics file. The Graphics Service fills in its value. |
GraphicsFileSet
Represents a group of source files.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | Id of the FileSet. |
| _userId | String | Id of the user who created the FileSet |
| _files | Array<GraphicsFile> | Files you want to be part of this FileSet |
IafActionDescriptor
Type: Object
| Property | Type | Description |
|---|---|---|
| actions | Array<String> | |
| desc | JSON | criteria 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
| Property | Type | Description |
|---|---|---|
| accessAll | boolean | Provide all actions to all the resources for a given namespace. If it's true then all other resources defined below will be ignored. |
| workspaces | Array<IafActionDescriptor> | |
| namedUserItems | Array<IafActionDescriptor> | |
| namedUserColls | Array<IafActionDescriptor> | |
| files | Array<IafActionDescriptor> | |
| scripts | Array<IafActionDescriptor> | |
| userConfigs | Array<IafActionDescriptor> | |
| permissionProfiles | Array<IafActionDescriptor> | |
| apiconfigdefs | Array<IafActionDescriptor> | |
| orchestrator | Array<IafActionDescriptor> | |
| telemetryconfigs | Array<IafActionDescriptor> | |
| usergroups | Array<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
| Property | Type | Description |
|---|---|---|
| _id | String | The report's id. |
| _ontologyId | String | The id of the ontology the report belongs to. |
| _name | String | The report's name, such as . |
| _status | String | The report's status: while it is being made, then or . |
| _versionFrom | Number | The number of the requested version. |
| _versionFromId | String | The id of the requested version, . |
| _versionTo | Number | The number of the version that was live when the report was requested. |
| _versionToId | String | The id of the version that was live when the report was requested, . |
| _report | UNKNOWN: OptionalType | The report's contents: (change and affected-record counts), and . Present once the report is , and only when you get a report by its id. |
| _failureReason | UNKNOWN: OptionalType | Why the report could not be made. Present when the report is . |
| _createdAt | String | When the report was requested, as an ISO-8601 date. |
| _createdBy | String | The id of the user who requested the report. |
| _updatedAt | String | When the report last changed, as an ISO-8601 date. |
| _updatedBy | String | The id of the user who last changed the report. |
ImpactAnalysisReportCriteria
Filters an ontology's impact analysis reports.
Type: Object
| Property | Type | Description |
|---|---|---|
| query | UNKNOWN: OptionalType | A 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
| Property | Type | Description |
|---|---|---|
| _versionFrom | UNKNOWN: OptionalType | The version's number, such as . Must not be the live version. |
| _versionFromId | UNKNOWN: OptionalType | The version's id, such as . |
ImpactAnalysisReportRequestOptions
Options for IafAOSvc.requestImpactAnalysisReport, controlling whether and how it waits for the report to finish.
Type: Object
| Property | Type | Description |
|---|---|---|
| poll | UNKNOWN: OptionalType | Set to to resolve once the report is or instead of as soon as it is stored. Default: . |
| pollMilliSecs | UNKNOWN: OptionalType | Milliseconds to wait between poll attempts. Default: . |
| maxPoll | UNKNOWN: OptionalType | Maximum number of poll attempts before the request is rejected with a timeout error. Default: . |
Index
Type: Object
| Property | Type | Description |
|---|---|---|
| key | JSON | Properties to index |
| options | JSON | Pass your index options |
Invite
Use the Invite type to define a user invite to a project or user group.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | Invite UUID |
| _email | String | Email address to send the invite to |
| _expireTime | Number | The system generates a expiry time for the invite, which is seven days from the invite creation. |
| _userExists | boolean | The system determines if the user's email address is registered or not. |
InviteCriteria
Find Invites by criteria
Type: Object
| Property | Type | Description |
|---|---|---|
| _status | Array<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
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets the number of results to return per Page in the response |
| includeAll | boolean | Set to true to include all the invites instead of particular page |
InviteParams
Type: Object
| Property | Type | Description |
|---|---|---|
| invite_link | String | invite link which user will be clicked in the email, invite id would be appended by the system |
| type | String | type of invite(Ex: Project) |
| name | String | name of the invite (Ex: Project name) |
| inviter_name | String | inviter's name |
ItemsvcOptions
Use to set response options for Item Service requests.
Type: Object
| Property | Type | Description |
|---|---|---|
| transactional | boolean | Set to true to make POST, PUT or DELETE requests transactional. |
| headers | Object | Custom 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 . |
// 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
| Property | Type | Description |
|---|---|---|
| _id | String | The id of the knowledge base resource. |
| _name | String | Name of the knowledge base. |
| _fileId | String | Source file id stored in file service. |
| _fileVersionId | String | Version id of the file. |
| _vectorizedStatus | String | Vectorization status, e.g., VECTORIZED or PENDING. |
| _userType | String | User type identifier for knowledge base. |
| _namespaces | Array<String> | Namespaces associated with the knowledge base. |
| _irn | String | Internal resource name. |
| _metadata | Object | Metadata containing createdAt, updatedAt, createdById, updatedById. |
KnowledgeBaseCriteria
Criteria for filtering KnowledgeBase resources.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | Filter by id. |
| _name | String | Filter by name. |
| _userType | String | Filter by user type. |
| _vectorizedStatus | String | Filter by vectorization status such as PENDING, VECTORIZED and FAILED. |
| query | String | Wildcard search against name |
LegacyAppTokenResponse
Response shape for IafPassSvc.getAppToken (the deprecated v1 endpoint, proxied to passportsvc-legacy).
Type: TokenResponse
| Property | Type | Description |
|---|---|---|
| access_key_id | String | The UUID of the User Access Key used to authenticate. |
LlmModel
Represents the available LLM models for a single provider, as returned by .
Type: Object
| Property | Type | Description |
|---|---|---|
| _provider | String | The LLM provider key (for example, or ). |
| _models | Array<LlmModelName> | The list of models available for the provider. |
LlmModelCriteria
Filter parameters for .
Type: Object
| Property | Type | Description |
|---|---|---|
| _provider | String | Required, the LLM provider key (for example, or ). |
| nsfilter | String | Required, the namespace filter required by AISvc. |
LlmModelName
A single LLM model entry within an LlmModel.
Type: Object
| Property | Type | Description |
|---|---|---|
| _modelName | String | The model identifier (for example, or ). |
LLMProvider
A detailed LLM provider entry, returned by when is .
Type: Object
| Property | Type | Description |
|---|---|---|
| _name | String | The provider name (for example, or ). |
| _secretName | String | The credentials-vault secret name the provider's API key must be stored under (for example, ). |
LLMProviderCriteria
Query parameters for .
Type: Object
| Property | Type | Description |
|---|---|---|
| detailed | UNKNOWN: OptionalType | When , 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
| Property | Type | Description |
|---|---|---|
| _id | String | The id of the MCP tool resource. |
| _namespaces | Array<String> | Required, The namespace(s) of the resource. |
| _name | String | Required, MCP tool name. Must match and be unique. |
| _description | String | Description of what the MCP tool does. |
| _schema | Object | Required, JSON schema for tool input; must be an object schema with . |
| _type | String | MCP 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. |
| _script | McpToolScript | Required, References the script invoked by the MCP wrapper. |
| _metadata | AuditableDTO | Metadata describing creation and updates. |
| _irn | String | Internal resource name for permission checks. |
McpToolCriteria
MCP Tool criteria
Type: Object
| Property | Type | Description |
|---|---|---|
| _name | String | Filter by MCP tool name (exact match). |
| _type | String | Filter by MCP tool type (for example, "user_mcp_tool" or "system_mcp_tool"). |
| filter | String | MCP tool filter resource identifier (UUID) or _userType. When provided, other criteria fields(Such as _name,_type,_toolConfig._serviceName etc) are ignored. |
| query | String | Wild 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
| Property | Type | Description |
|---|---|---|
| _id | String | The id of the MCP Tool Filter resource. |
| _namespaces | Array<String> | Required, Namespace(s) that own the filter. |
| _name | String | Required, Human friendly name of the filter. |
| _description | String | Optional description describing when to use the filter. |
| _userType | String | Required, User type the filter applies to. |
| _criteria | McpToolFilterCriteria | Required, Criteria describing which MCP tools match the filter. |
| _metadata | AuditableDTO | Metadata describing creation and updates. |
| _irn | String | Internal 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
| Property | Type | Description |
|---|---|---|
| _name | UNKNOWN: OptionalType | Filters by MCP tool name. |
| _serviceName | UNKNOWN: OptionalType | Filters by MCP tool service name. |
| _type | UNKNOWN: OptionalType | Filters by MCP tool type. |
McpToolFilterCriterion
Extended matching operators for MCP Tool Filter criteria fields.
Type: Object
| Property | Type | Description |
|---|---|---|
| $in | UNKNOWN: OptionalType | Matches MCP tools whose field value is included in the provided list. |
| $regex | UNKNOWN: OptionalType | Matches MCP tools whose field value satisfies the provided regular expression. |
McpToolScript
Script reference information for an MCP Tool.
Type: Object
| Property | Type | Description |
|---|---|---|
| _userType | String | Required, Script user type that owns the script. |
| _scriptName | String | Required, 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
| Property | Type | Description |
|---|---|---|
| _version | NamedFileCollectionVersion | A 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
| Property | Type | Description |
|---|---|---|
| _version | NamedUserCollectionVersion | A given version of the NamedUserCollection. |
| _encryptionEnabled | Boolean | Enables encryption for the NamedUserCollection. If set to True then any related items prefixed with a . will be encrypted. |
| _source | UNKNOWN: OptionalType | Identifies 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
| Property | Type | Description |
|---|---|---|
| _id | String | The NamedUserItem's database id |
| _name | String | A readable, long-form name |
| _description | String | A string that describes the purpose of the NamedUserItem class instance |
| _shortName | String | Shorter abbreviation of the NamedUserItem name that is used for reference |
| _userType | String | 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 | String | A unique id value generated by the Item Service. |
| _version | NamedUserItemVersion | Contain'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
| Property | Type | Description |
|---|---|---|
| query | JSON | Simple 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. |
// 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
| Property | Type | Description |
|---|---|---|
| project | JSON | Pass an object that contains one or more projection criteria specifiers. |
| sort | JSON | Pass an object that contains one or more sort criteria specifiers. Set a property to 1 to sort ascending and -1 to sort descending. |
| page | PageRequest | Pass an object that contains one or more pagination options. |
| pagedRes | boolean | Set 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. |
// 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
| Property | Type | Description |
|---|---|---|
| _id | String | The NamedUserItemVersion's database id |
| _userAttributes | JSON | Add custom key-value pairs. Add the attribute name to the key, for example, _userAttributes.<attribute_name>: <attribute_value> |
| _version | Number | The version number, which is generated and not editable |
| _userItemId | String | Refers to the _userItemId value in the parent NamedUserItem |
| _itemClass | String | Refers to the _itemClass value in the parent NamedUserItem |
| _userItemDbId | String | Refers 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
| Property | Type | Description |
|---|---|---|
| relationships | boolean | For NamedUserCollections, set to true to also clone the NamedUserCollection's relationships |
| inverseRelationships | boolean | For 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
| Property | Type | Description |
|---|---|---|
| query | JSON | Pass a simple query |
// 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
| Property | Type | Description |
|---|---|---|
| _id | String | Namespace UUID, which the platform attributes after the Namespace is created |
| _name | String | Name of the Namespace provider either Application name, Organization name, Workspace name or Usergroup name |
| _namespace | String | The namespace |
| _providerType | String | The type of the Namespace provider either Application, Organization, Workspace or Usergroup |
| _providerId | String | The unique id of the Namespace provider |
NamespaceCriteria
Criteria to find one or more Namespace(s)
Type: Object
| Property | Type | Description |
|---|---|---|
| _namespace | String | namespace 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
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets the number of results to return per Page in the response |
NotificationAuthorization
Represents a notification authorization
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | The id of the resource |
| _namespaces | Array<String> | The namespace(s) of the resource. |
| _createdAt | Date | The timestamp for resource creation |
| _updatedAt | Date | The timestamp for resource modification |
| _version | Number | The current version of the resource (used for optimistic concurrency) |
| _name | String | The resource name |
| _description | String | The resource description |
| _type | NotificationAuthorizationType | The authorization type |
| _hmac | NotificationAuthorizationHmac | Configuration for a HMAC authorization (only accepted/present if the type is HMAC) |
| _basic | NotificationAuthorizationBasic | Configuration for a Basic authorization (only accepted/present if the type is BASIC) |
| _apiKey | NotificationAuthorizationApiKey | Configuration for an API Key authorization (only accepted/present if the type is API_KEY) |
NotificationAuthorizationApiKey
Represents a notification authorization Basic configuration
Type: Object
| Property | Type | Description |
|---|---|---|
| _header | Map<StringString> | The header that the API key will be sent in |
| _value | NotificationSecret | The API key value |
NotificationAuthorizationBasic
Represents a notification authorization Basic configuration
Type: Object
| Property | Type | Description |
|---|---|---|
| _user | Map<StringString> | The username |
| _password | NotificationSecret | The password |
NotificationAuthorizationHmac
Represents a notification authorization HMAC configuration
Type: Object
| Property | Type | Description |
|---|---|---|
| _apiKey | Map<StringString> | The HMAC API key |
| _secretKey | NotificationSecret | The 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
| Property | Type | Description |
|---|---|---|
| _id | String | The id of the resource |
| _owner | NotificationOwner | The owner of the device |
| _createdAt | Date | The timestamp for resource creation |
| _updatedAt | Date | The timestamp for resource modification |
| _version | Number | The current version of the resource (used for optimistic concurrency) |
| _transport | NotificationTransport | The notification transport type for this device |
| _email | NotificationDeviceEmail | Configuration for an email device |
| _status | NotificationDeviceStatus | Current status of the device |
NotificationDeviceEmail
Represents a notification email device configuration
Type: Object
| Property | Type | Description |
|---|---|---|
| _address | String | Email address |
NotificationDeviceQuery
Represents a notification group query
Type: Object
| Property | Type | Description |
|---|---|---|
| ids | Array<String> | The ids to match |
| owner | NotificationOwnerQuery | The owner to match |
NotificationDeviceStatus
Represents a notification sender redirect
Type: (UNKNOWN: StringLiteralType | UNKNOWN: StringLiteralType)
NotificationGroup
Represents a notification group
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | The id of the resource |
| _namespaces | Array<String> | The namespace(s) of the resource. |
| _createdAt | Date | The timestamp for resource creation |
| _updatedAt | Date | The timestamp for resource modification |
| _version | Number | The current version of the resource (used for optimistic concurrency) |
| _name | String | The resource name |
| _description | String | The resource description |
NotificationGroupQuery
Represents a notification group query
Type: Object
| Property | Type | Description |
|---|---|---|
| ids | Array<String> | The ids to match |
| namespaces | Array<String> | The namespace(s) to match |
| name | String | The names to match |
NotificationNotification
Represents a notification (i.e. sent history)
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | The id of the resource |
| _namespaces | Array<String> | The namespace(s) of the resource. |
| _owner | NotificationOwner | The owner of the resource |
| _createdAt | Date | The timestamp for resource creation |
| _updatedAt | Date | The timestamp for resource modification |
| _version | Number | The current version of the resource (used for optimistic concurrency) |
| _template | NotificationTemplate | The template used to generate this notification |
| _trigger | NotificationTrigger | The trigger that caused this notification |
| _sender | NotificationSender | The sender that sent this notification |
| _subscription | NotificationSubscription | The subscription that caused this notification |
| _transport | NotificationTransport | The transport type |
| _email | NotificationTemplateEmail | The email notification body (if transport type is email) |
NotificationNotificationQuery
Represents a notification query
Type: Object
| Property | Type | Description |
|---|---|---|
| ids | Array<String> | The ids to match |
| namespaces | Array<String> | The namespace(s) to match |
| owner | NotificationOwnerQuery | The owner to match |
| name | String | The names to match |
NotificationOwner
Represents a notification device owner
Type: Object
| Property | Type | Description |
|---|---|---|
| _irn | String | Owner IRN |
NotificationOwnerQuery
Represents a notification device owner
Type: Object
| Property | Type | Description |
|---|---|---|
| irn | String | Owner IRN |
NotificationScript
Represents a notification script
Type: Object
| Property | Type | Description |
|---|---|---|
| _userType | String | The userType of the script to execute. |
| _name | String | The name of the script function to execute. |
| _accessToken | String | Custom access token that the script will run with (write-only), if not specified the current user's access token will be used. |
| _permissionProfile | NotificationScriptPermissionProfile | Optional permission profile to execute the script with. |
NotificationScriptPermissionProfile
Represents a notification script permission profile reference
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | The id of the permission profile |
NotificationSecret
Represents a reference to a secret stored in Passport service.
Type: Object
| Property | Type | Description |
|---|---|---|
| _name | String | The name of the secret |
NotificationSender
Represents a sender
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | The id of the resource |
| _namespaces | Array<String> | The namespace(s) of the resource. |
| _createdAt | Date | The timestamp for resource creation |
| _updatedAt | Date | The timestamp for resource modification |
| _version | Number | The current version of the resource (used for optimistic concurrency) |
| _name | String | The resource name |
| _description | String | The resource description |
| _transport | NotificationTransport | The notification transport type for this sender |
| _email | NotificationSenderEmail | Email sender configuration |
| _templates | Map<NotificationSenderActionNotificationTemplate> | Templates to use for each pre-defined sender action |
| _redirects | Map<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
| Property | Type | Description |
|---|---|---|
| _address | String | The sender address |
| _displayName | String | The sender displayName |
NotificationSenderQuery
Represents a notification group query
Type: Object
| Property | Type | Description |
|---|---|---|
| ids | Array<String> | The ids to match |
| namespaces | Array<String> | The namespace(s) to match |
| name | String | The 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
| Property | Type | Description |
|---|---|---|
| _id | String | The id of the resource |
| _type | String | The subscription type, if not specified, defaults to DEVICE |
| _namespaces | Array<String> | The namespace(s) of the resource. |
| _group | NotificationGroup | The group to subscribe to |
| _device | NotificationDevice | The device to subscribe with (only accepted/present if the type is DEVICE) |
| _webhook | NotificationSubscriptionWebhook | The device to subscribe with (only accepted/present if the type is WEBHOOK) |
| _status | NotificationSubscriptionStatus | Current status of the subscription |
| _version | Number | The current version of the resource (used for optimistic concurrency) |
| _requestedAt | Date | The last time an attempt was made to confirm the subscriber |
| _acceptedAt | Date | The last time the subscription was accepted |
| _cancelledAt | Date | The last time the subscription was cancelled |
NotificationSubscriptionQuery
Represents a notification group query
Type: Object
| Property | Type | Description |
|---|---|---|
| ids | Array<String> | The ids to match |
| namespaces | Array<String> | The namespace(s) to match |
| name | String | The 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
| Property | Type | Description |
|---|---|---|
| _method | String | The HTTP method to use for the webhook request |
| _url | String | The URL to send the webhook request to |
| _query | Map<StringString> | The query string parameters |
| _headers | Map<StringString> | The HTTP headers to send with the webhook request |
| _body | String | The body of the webhook request (Velocity template string) |
| _authorization | NotificationAuthorization | Reference 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
| Property | Type | Description |
|---|---|---|
| version | Number | Optimistic concurrency version |
NotificationSvcGetOptions
Represents a notification-service specific create options
Type: Object
NotificationSvcListOptions
Represents a notification-service specific create options
Type: Object
| Property | Type | Description |
|---|---|---|
| offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| count | Number | Sets the number of results to return per Page in the response |
NotificationSvcUpdateOptions
Represents a notification-service specific create options
Type: Object
| Property | Type | Description |
|---|---|---|
| version | Number | Optimistic concurrency version |
NotificationTemplate
Represents a notification template
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | The id of the resource |
| _namespaces | Array<String> | The namespace(s) of the resource. |
| _createdAt | Date | The timestamp for resource creation |
| _updatedAt | Date | The timestamp for resource modification |
| _version | Number | The current version of the resource (used for optimistic concurrency) |
| _name | String | The resource name |
| _description | String | The resource description |
| _transport | NotificationTransport | The notification transport type for this template |
| _email | NotificationTemplateEmail | Configuration for an email template |
| _format | NotificationTemplateFormat | The format used to write the template |
NotificationTemplateCriteria
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | NotificationTemplate UUID |
| _name | String | Required, Name of the Notification template, Unique within application |
| _title | String | Required, Notification Title or Email Subject |
| _format | String | Required, Type of the message, Supports text/html only |
| _appId | String | Application Id that notification template belongs to |
| _locale | String | locale value for the template |
NotificationTemplateEmail
Represents a notification email template configuration
Type: Object
| Property | Type | Description |
|---|---|---|
| _subject | String | Template for the subject |
| _body | String | Template for the body |
NotificationTemplateFormat
Represents a notification template format
Type: UNKNOWN: StringLiteralType
NotificationTemplateOptions
Type: Object
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets the number of results to return per Page in the response |
NotificationTemplateQuery
Represents a notification group query
Type: Object
| Property | Type | Description |
|---|---|---|
| ids | Array<String> | The ids to match |
| namespaces | Array<String> | The namespace(s) to match |
| name | String | The names to match |
NotificationTransport
Represents a notification transport type
Type: UNKNOWN: StringLiteralType
NotificationTrigger
Represents a notification trigger
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | The id of the resource |
| _namespaces | Array<String> | The namespace(s) of the resource. |
| _createdAt | Date | The timestamp for resource creation |
| _updatedAt | Date | The timestamp for resource modification |
| _version | Number | The current version of the resource (used for optimistic concurrency) |
| _name | String | The resource name |
| _description | String | The resource description |
| _type | NotificationTriggerType | The trigger type |
| _event | NotificationTriggerEvent | Configuration for an event trigger |
| _script | NotificationScript | Script that is called if the trigger matches and before generating the notification |
| _senders | Array<NotificationSender> | Senders associated with this trigger |
| _templates | Array<NotificationTemplate> | Templates associated with this trigger |
| _groups | Array<NotificationGroup> | Groups associated with this trigger |
NotificationTriggerEvent
Represents a notification event trigger configuration
Type: Object
| Property | Type | Description |
|---|---|---|
| _filters | Map<StringString> | Trigger body filters (see extended description) |
NotificationTriggerQuery
Represents a notification trigger query
Type: Object
| Property | Type | Description |
|---|---|---|
| ids | Array<String> | The ids to match |
| namespaces | Array<String> | The namespace(s) to match |
| name | String | The names to match |
NotificationTriggerType
Represents a notification trigger type
Type: UNKNOWN: StringLiteralType
OmapiRequestCriteria
Criteria for retrieving OMAPI requests.
Type: Object
| Property | Type | Description |
|---|---|---|
| query | Object | Key/value filters supporting , , , , , . |
OmapiRequestLogOptions
Formatting controls when retrieving a specific OMAPI request log.
Type: Object
| Property | Type | Description |
|---|---|---|
| sort | Object | Sort descriptor for log entries (1 asc, -1 desc). |
| format | String | Response format; enables structured output. |
| scriptDetails | boolean | When true and format is JSON, attempts to include script metadata. |
OmapiRequestOptions
Pagination and sorting controls for OMAPI request listings.
Type: Object
| Property | Type | Description |
|---|---|---|
| page | Object | Pagination info with and . |
| sort | Object | Sort 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
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets the number of results to return per Page in the response |
OrchComponentCriteria
Filter criteria for orchestrator components.
Type: Object
| Property | Type | Description |
|---|---|---|
| kind | UNKNOWN: OptionalType | Component category name to filter orchestration components, matching values such as Connector, Processor, or Target. |
OrchCriteria
Filter criteria for retrieving orchestrators.
Type: Object
| Property | Type | Description |
|---|---|---|
| _name | UNKNOWN: OptionalType | Case-insensitive substring match on the orchestrator name. |
| _usertype | UNKNOWN: OptionalType | Case-insensitive substring match on the orchestrator user type. |
| _description | UNKNOWN: OptionalType | Case-insensitive substring match on the description text. |
| id | UNKNOWN: OptionalType | Match a specific orchestrator by its id value. |
OrchOptions
Paging and sorting options for orchestrator queries.
Type: Object
| Property | Type | Description |
|---|---|---|
| _pageSize | UNKNOWN: OptionalType | Limit the number of orchestrators returned per request. |
| _offset | UNKNOWN: OptionalType | Skip the specified number of orchestrators before returning results. Defaults to 0. |
| sort | UNKNOWN: OptionalType | Object that describes the sort key (e.g., , ) and direction. |
OrchRunCriteria
Filter criteria for orchestrator runs.
Type: Object
| Property | Type | Description |
|---|---|---|
| _pageSize | UNKNOWN: OptionalType | Number of runs to return per page.Default value is 20. |
| _offset | UNKNOWN: OptionalType | Number of runs to skip before returning the current page.Default value is 0. |
| _status | UNKNOWN: OptionalType | Run status to match. Accepts the enum names , , , , , or , which map to numeric codes 0-5 respectively. |
| startDate | UNKNOWN: OptionalType | Return runs created on or after this epoch timestamp (milliseconds) based on . |
| endDate | UNKNOWN: OptionalType | Return runs created on or before this epoch timestamp (milliseconds). |
| _orchid | UNKNOWN: OptionalType | Orchestrator UUID to scope results to a single orchestrator. |
| id | UNKNOWN: OptionalType | Run UUID to fetch a specific run entry. |
| _name | UNKNOWN: OptionalType | Case-insensitive substring match on the run's name. |
| _usertype | UNKNOWN: OptionalType | Case-insensitive substring match on the run's user type. |
| _description | UNKNOWN: OptionalType | Case-insensitive substring match on the run's description. |
| sort | UNKNOWN: OptionalType | JSON 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
| Property | Type | Description |
|---|---|---|
| parseJson | UNKNOWN: OptionalType | Set 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
| Property | Type | Description |
|---|---|---|
| sortkey | String | Field to sort by, such as , , or . |
| sortby | String | Sort direction. Pass for ascending order or for descending order. |
Organization
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | Organization UUID |
| _name | String | Required, Organization name |
| _userType | String | User type |
| _namespaces | String | Namespaces, Auto generated |
| _orgOwner | String | Required, Organization user's email |
| _shortName | String | shortname, _name will be short name if it not provided. (namespace will be generated based on it) |
OrganizationConfigs
Type: Object
OrganizationCriteria
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | project UUID |
| _description | String | project description |
| _name | String | project name |
| _shortName | String | short name |
| query | String | Wild card search on name, short name and description(For ex: ?query=admin) |
OrganizationOptions
Type: Object
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets the number of results to return per Page in the response |
OrganizationUserCriteria
Type: Object
| Property | Type | Description |
|---|---|---|
| query | String | It contains to do wild card search on user's first name,lastname and email |
OrganizationUserOptions
Type: Object
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets 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
| Property | Type | Description |
|---|---|---|
| _pageSize | Number | The response page size |
| _offset | Number | The response offset |
| _total | Number | The total count of items in the response |
| _list | Array<T> | An array of the response items |
PageRequest
Type: Object
| Property | Type | Description |
|---|---|---|
| _offset | Number | offset |
| _pageSize | Number | Number of items in the page |
PasswordPolicy
Type: Object
| Property | Type | Description |
|---|---|---|
| text | String | password criteria text |
| regex | String | Regex to validate the criteria |
Permission
Use a Permission type to define resource permissions
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | Permission UUID |
| _namespace | String | Namespace that the permission pertains to |
| _resourceDesc | ResourceDescriptor | Pass a ResourceDescriptor object to target the resources that the permission pertains to |
| _user | PermissionUser | Permission user |
| _config | JSON | Stores additional details about the permission |
| _actions | Array<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
| Property | Type | Description |
|---|---|---|
| _svc | String | Service name filter. For example, "filesvc" |
| _resource | String | Resource type filter. For example, "file" |
PermissionActionOptions
Type: Object
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets the number of results to return per Page in the response |
| _includeAll | boolean | Set to true to include the list all possible actions for the service and resource types |
PermissionActions
Type: Object
| Property | Type | Description |
|---|---|---|
| _svc | String | The service associated with the permission action. |
| _resource | String | The specific resource within the service that the permission action targets. |
| _actions | Array<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
| Property | Type | Description |
|---|---|---|
| _namespace | String | One 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". |
| patternmatch | String | Pass 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. |
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
| Property | Type | Description |
|---|---|---|
| create | boolean | Grants user create access |
| read | boolean | Grant user read access |
| update | boolean | Grant user update access |
| delete | boolean | Grant user delete access |
| share | boolean | Grant user share access |
PermissionOptions
Type: Object
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets the number of results to return per Page in the response |
PermissionProfile
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | PermissionProfile UUID |
| _userType | String | Enter a string name that makes the permission profile unique or a string that is shared to identify permission profiles of the same type. |
| _name | String | Permission profile name |
| _namespaces | Array<String> | Namespaces that the permission profile pertains to |
| _permissions | Array<ProfilePermission> | An array of ProfilePermission objects |
PermissionProfileCriteria
Type: Object
PermissionProfileOptions
Type: Object
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets the number of results to return per Page in the response |
PermissionUser
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | Enter a User or UserGroup UUID |
| _type | String | Enter or |
PollOptions
Options for IafHelper.doPoll, controlling request headers and poll timing.
Type: Object
| Property | Type | Description |
|---|---|---|
| headers | UNKNOWN: OptionalType | Additional HTTP headers to send with each poll request. Default: . |
| maxPoll | UNKNOWN: OptionalType | Maximum number of poll attempts before the request is rejected with a timeout error. Default: . |
| pollMilliSecs | UNKNOWN: OptionalType | Milliseconds to wait between poll attempts. Default: . |
PrincipalInfo
Type: Object
| Property | Type | Description |
|---|---|---|
| _email | String | |
| _firstName | String | |
| _lastName | String | |
| _userId | String |
ProfilePermission
Type: Object
| Property | Type | Description |
|---|---|---|
| _resourceDesc | ResourceDescriptor | Resource description, The resources in the permission is described by multiple values |
| _namespace | String | namespace |
| _actions | Array<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
| Property | Type | Description |
|---|---|---|
| _id | UNKNOWN: OptionalType | Server-generated UUID (present in responses). |
| _name | String | Display name. Pattern: ^[a-zA-Z0-9_-]{1,64}$. |
| _userType | String | MCP prompt identifier. Pattern: ^\w+$, max 50. |
| _namespaces | Array<String> | Non-empty. Must match ctx namespaces (nsfilter). |
| _template | String | Prompt text. Supports {{arg}} and ${arg} placeholders. |
| _description | UNKNOWN: OptionalType | Optional description (max 1024). |
| _arguments | UNKNOWN: OptionalType | Optional argument definitions. |
| _irn | UNKNOWN: OptionalType | Resource IRN (present in responses): aisvc:prompttemplate:. |
PromptTemplateArgument
PromptTemplateArgument shape.
Type: Object
| Property | Type | Description |
|---|---|---|
| _name | String | Argument name. Pattern: ^[a-zA-Z][a-zA-Z0-9_]{0,63}$. |
| _description | UNKNOWN: OptionalType | Optional. |
| _required | UNKNOWN: OptionalType | Optional. If true, MCP requires this argument. |
PromptTemplateCriteria
PromptTemplateCriteria (GET list filters).
Type: Object
| Property | Type | Description |
|---|---|---|
| _name | UNKNOWN: OptionalType | Filter by template name(s). |
| _userType | UNKNOWN: OptionalType | Filter by userType(s). |
| query | UNKNOWN: OptionalType | Free-text search across name/description/template. |
Readings
Define telemetry readings
Type: Object
| Property | Type | Description |
|---|---|---|
| _ts | String | The 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 |
| _tsMetadata | TSMetadata | An object that contains the TelemetryItem's id and source id. |
Related Item Queries
The Item Service supports custom queries on Related Items.
CollectionQuery
A query object used as part of RelatedItem queries in NamedUserCollections.
Type: Object
| Property | Type | Description |
|---|---|---|
| collectionDesc | Object | Pass 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 |
| collectionProject | Object | Pass an object that contains one or more projection specifiers to enable or disable the NamedUserCollection fields in the response |
| query | Object | Pass a valid database query to find RelatedItems in the selected NamedUserCollections. |
| options | RelatedItemQueryOptions | Define 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
| Property | Type | Description |
|---|---|---|
| _list | Array<RelatedItemQueryResponse> | Contains the result collections with parent and child RelatadItems |
| _time | String | Time taken to execute the query |
- 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
| Property | Type | Description |
|---|---|---|
| field | String | Name 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 |
| query | UNKNOWN: OptionalType | Pass an object that contains a valid database query to filter the RelatedItems before the distinct value lookup for this field. |
| count | UNKNOWN: OptionalType | Set 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
| Property | Type | Description |
|---|---|---|
| collectionDesc | Object | Pass 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. |
| collectionProject | Object | Pass an object that contains one or more projection specifiers to enable or disable the NamedUserCollection fields in the response. |
| field | String | Name 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 |
| query | Object | Pass an object that contains a valid database query to filter the RelatedItems before the distinct field value lookup. |
| count | UNKNOWN: OptionalType | Set to to return each distinct value with the number of RelatedItems that have it, as objects. Default false. |
// 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
| Property | Type | Description |
|---|---|---|
| $distinctRelatedItemField | DistinctRelatedItemFieldQuery | Finds 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
| Property | Type | Description |
|---|---|---|
| collectionDesc | Object | Pass 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. |
| collectionProject | UNKNOWN: OptionalType | Pass an object that contains one or more projection specifiers to enable or disable the NamedUserCollection fields in the response. |
| fieldDesc | Array<DistinctFieldDesc> | The fields whose distinct values you want to look up. Pass 1 to 10 entries, each with a different . |
// 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
| Property | Type | Description |
|---|---|---|
| $distinctRelatedItemFields | DistinctRelatedItemFieldsQuery | Finds the distinct values of up to 10 RelatedItem fields in each NamedUserCollection that matches your criteria. |
DistinctRelatedItemResponse
Type: Object
| Property | Type | Description |
|---|---|---|
| null | Array<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
// 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
| Property | Type | Description |
|---|---|---|
| $findInCollections | FindInCollectionsQuery | Looks 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
| Property | Type | Description |
|---|---|---|
| start | CollectionQuery | Define and pass a CollectionQuery object to target the start RelatedItems for the traversal. |
| to | GraphRelatedToQuery | Define the segments to traverse from the start RelatedItems. |
| options | UNKNOWN: OptionalType | Control what the response includes, such as relationship metadata and referenced item properties. |
{
"$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
| Property | Type | Description |
|---|---|---|
| $findWithRelatedGraph | FindWithRelatedGraphQuery | Traverses 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
| Property | Type | Description |
|---|---|---|
| parent | CollectionQuery | Define and pass a CollectionQuery object to target parent collections that contain RelatedItems you want to look up. |
| relatedFilter | RelatedFilter | Define criteria to filter the parent RelatedItems based on their child RelatedItems. You can use either or , not both. |
| related | Array<RelatedQuery> | Define criteria to look up child RelatedItems. You can use either or , not both. |
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
| Property | Type | Description |
|---|---|---|
| null | Page<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
| Property | Type | Description |
|---|---|---|
| $findWithRelated | FindWithRelatedQuery | Looks 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
| Property | Type | Description |
|---|---|---|
| as | String | Name the field that will contain the traversal results for each start RelatedItem in the response. |
| segments | Array<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. |
| response | UNKNOWN: OptionalType | The response shape, either "path" or "tree". Default "path". |
| options | UNKNOWN: OptionalType | Pass an object with a object containing and to paginate the traversal results. |
GraphSegmentQuery
One segment of a traversal.
Type: Object
| Property | Type | Description |
|---|---|---|
| as | String | Name of this segment. Must start with a letter or underscore and contain only a-z, A-Z, 0-9 and _. |
| from | UNKNOWN: OptionalType | The of the previous segment. Omit, or set to "origin", for the segment that starts from the start RelatedItems. |
| relatedDesc | Object | Add your relationship query for this segment as a valid simple query, such as . |
| query | UNKNOWN: OptionalType | Add a valid simple query to filter the RelatedItems this segment reaches. |
| options | UNKNOWN: OptionalType | Pass an object with a object to choose the RelatedItem fields returned for this segment. By default only is returned. |
| minDepth | UNKNOWN: OptionalType | The minimum number of relationship levels to traverse in this segment. |
| maxDepth | UNKNOWN: OptionalType | The 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
| Property | Type | Description |
|---|---|---|
| includeResult | boolean | Set 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 | ||
| $or | Array<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. |
| $and | Array<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
| Property | Type | Description |
|---|---|---|
| project | JSON | Pass an object that contains one or more projection specifiers to enable or disable the RelatedItem fields in the response |
| sort | JSON | Pass an object that contains one or more sort specifiers to sort the results based on fields in the RelatedItems. |
| page | PageRequest | page request, by default _pageSize is 200 and _offset as 0. |
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
| Property | Type | Description |
|---|---|---|
| _versions | Array<RelatedItemQueryResponseVersion> | Contains matching versions with related items(parent) |
RelatedItemQueryResponseVersion
RelatedItemVersion query responses are returned as a RelatedItemQueryResponseVersion type object.
Type: NamedUserItemVersion
| Property | Type | Description |
|---|---|---|
| _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
| Property | Type | Description |
|---|---|---|
| relatedDesc | Object | Add your relationship query for the selected parent RelatedItems as a valid simple query. |
| query | Object | Add a valid simple query to filter the child related items you selected in the related.relatedDesc query. |
| options | RelatedItemQueryOptions | Pass 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 . |
| as | String | Name 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
| Property | Type | Description |
|---|---|---|
| includeRels | UNKNOWN: OptionalType | Set to to include relationship metadata for each traversed path segment in the response as . See CustomRelatedItemQueryResponse for the response shape. Only applicable to queries. |
| projectAllRefItems | UNKNOWN: OptionalType | Set 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. |
// 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
| Property | Type | Description |
|---|---|---|
| _id | String | The RelatedCollection's database id. |
| _userItemId | String | The collection's _userItemId value |
| _userType | String | The collection's _userType value |
| _itemId | String | The collection's _id value |
| _userItemClass | String | The collection's NamedUserItem class, such as a "NamedUserCollection" or "NamedFileCollection" |
| _userItemVersionId | String | The collection's version id |
| _userItemVersion | Number | The collection's version number |
RelatedCollectionCriteria
Define criteria to target RelatedCollections.
Type: Object
| Property | Type | Description |
|---|---|---|
| query | JSON | Pass an object that contains your query. |
// 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
| Property | Type | Description |
|---|---|---|
| _id | String | The database id |
RelatedItemCriteria
Query object to target RelatedItems that match your query
Type: Object
| Property | Type | Description |
|---|---|---|
| query | RelatedItemCriteriaQuery | Pass an object that contains your query. |
// 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
| Property | Type | Description |
|---|---|---|
| project | JSON | Pass an object that contains one or more projection criteria specifiers. |
| sort | JSON | Pass an object that contains one or more sort criteria specifiers. Set a property to 1 to sort ascending and -1 to sort descending. |
| page | PageRequest | Pass an object that contains one or more pagination options. |
| pagedRes | boolean | Set 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. | ||
| project | JSON | Pass an object that contains one or more projection criteria specifiers. |
| sort | JSON | Pass an object that contains one or more sort criteria specifiers. Set a property to 1 to sort ascending and -1 to sort descending. |
| page | PageRequest | Pass an object that contains one or more pagination options. |
| userItemVersionId | String | To return a particular user item version, pass the version id. Without this parameter, it looks up the tip version. |
| pagedRes | boolean | Set 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. |
// 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
// 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
| Property | Type | Description |
|---|---|---|
| _itemTypes | Array<Schema> | An array of schema for all the RelatedItem |
| _readingTypes | Array<Schema> | An array of schema for all the Reading Types in the namespace |
| _collections | Array<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
| Property | Type | Description |
|---|---|---|
| _id | String | id UUID |
| _relatedUserItemId | String | The _userItemId of the parent item’s collection |
| _relatedUserItemDbId | String | The _id of the parent item’s collection |
| _relatedUserItemVersionId | String | The _userItemId of the parent item’s collection version |
| _relatedUserItemVersion | Number | The parent collection's version number |
| _relatedUserItemClass | String | The NamedUserItem class of the parent item's collection, such as NamedUserCollection or NamedFileCollection |
| _relatedToIds | Array<String> | Array of one or more RelatedItem ids to create relationships with as children. |
| _relatedUserType | String | A custom userType to identify the relationship |
| _relatedFromId | String | RelatedItem id of parent related item |
| _isInverse | boolean | Set to true to invert the relationship to a child-parent relationship. Set to false for a parent-child relationship. |
| _userType | String | User defined type of the relationship. |
| _customAttributes | Object | Add custom attributes in key-value pairs |
RelationshipCriteria
Define criteria to target Relationships.
Type: Object
| Property | Type | Description |
|---|---|---|
| query | Relationship | Pass an object that contains one or more projection specifiers. |
// 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
| Property | Type | Description |
|---|---|---|
| project | JSON | Pass an object that contains one or more projection criteria specifiers. |
| sort | JSON | Pass an object that contains one or more sort criteria specifiers. Set a property to 1 to sort ascending and -1 to sort descending. |
| page | PageRequest | Pass an object that contains one or more pagination options. The default page size is 200, which is also the max page size. |
| userItemVersionId | String | To return a particular user item version, pass the version id. Without this parameter, it looks up the tip version. |
// 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
| Property | Type | Description |
|---|---|---|
| _ref | RelationshipTypeRef | The Relationship reference details with other RelatedItem |
| _isInverse | boolean | Whether the Relationship is Inverse or not |
RelationshipTypeRef
Type: object
| Property | Type | Description |
|---|---|---|
| _relatedTypeName | String | The RelatedItem type name |
| _relatedUserType | String | The 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
| Property | Type | Description |
|---|---|---|
| _irn | String | A 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 |
| _criteria | UNKNOWN: OptionalType | Filter criteria as key-value pairs |
| _subresourceDesc | SubResourceDescriptor | Supports 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
| Property | Type | Description |
|---|---|---|
| filename | String | File name |
| tags | Array | Array of string tags to attribute to the file |
| onComplete | Function | Callback function for when the file upload completes |
| onProgress | Function | Callback function for when the file upload is in progress |
| onError | Function | Callback function for when the file upload fails |
| headers | FileHeaders | The headers will be applied to the HTTP response during download |
Schema
Type: Object
| Property | Type | Description |
|---|---|---|
| _typeName | String | Name of the RelatedItem type, eg: Asset, RevitElement etc |
| _properties | Object | It will have various properties/fields in the Schema |
| _relationshipTypes | Array<RelationshipType> | All the relationships between two RelatedItems |
SchemaDefinitionOptions
Type: Object
| Property | Type | Description |
|---|---|---|
| project | JSON | Pass an object that contains one or more projection criteria specifiers. |
| sort | JSON | Pass an object that contains one or more sort criteria specifiers. Set a property to 1 to sort ascending and -1 to sort descending. |
| page | PageRequest | Pass 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
| Property | Type | Description |
|---|---|---|
| _version | ScriptVersion | A given version of the script's content. |
ScriptExecutionRequestOptions
Additional headers accepted by Object Model script execution endpoints.
Type: Object
| Property | Type | Description |
|---|---|---|
| headers | Object | Custom headers such as and . |
ScriptExecutionResultCriteria
Criteria for listing Object Model script execution results.
Type: Object
| Property | Type | Description |
|---|---|---|
| query | Object | Key/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
| Property | Type | Description |
|---|---|---|
| _userData | String | Script content |
Secret
Use the Secret type to define a secret in the Passport Service.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | Secret UUID. |
| _name | String | Name of the Secret. |
| _value | String | Value of the Secret. |
| _description | String | Description of the Secret. |
| _userType | String | User type associated with the Secret. |
| _namespaces | Array<String> | Namespaces associated with the Secret. |
SecretCriteria
Criteria to find one or more Secrets.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | (Array<String> | String) | Secret UUID(s). |
| _name | (Array<String> | String) | Secret name(s). |
| _description | String | Secret description filter. |
| _userType | String | User type filter. |
| _namespaces | Array<String> | Namespaces filter. |
| query | String | Wild card search on secret name or description. |
SecretOptions
Type: Object
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets 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
| Property | Type | Description |
|---|---|---|
| _content | String | The code content as a single string. Use either _content or _file—if both are provided, _content takes precedence. |
| _file | String | Accepts either a File or ReadStream object. Use either _content or _file—if both are provided, _content takes precedence. |
| _id | String | Optional source code record id. |
// 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
| Property | Type | Description |
|---|---|---|
| _type | String | The type of subresource. Currently 'relateditem' is the only valid value |
| _criteria | RelatedItemCriteria | A valid RelatedItem Criteria. The permission is applicable for matching this criteria |
TaskDef
Create a custom task that executes within a workflow
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | The Task's id |
| _workflow_def_id | String | The id of the WorkflowDef that the Task is part of |
| _name | String | A custom name |
| _description | String | Describes the Task |
| _sequenceno | Number | Sequence number to define where this Tasks is in the execution order of tasks |
| _type | String | Enter the Task type, such as SCRIPT_EXECUTION, USER_INPUT, HAYSTACK, SWITCH, REST_CONNECTOR, FORK_JOIN, or DO_WHILE. |
| _inputParams | Object | The Task's input parameters |
| _retryCount | Number | Enter the number of retry attempts after a Task fails. The default is three attemps and the maximum is 10. |
| _retryLogic | String | Enter 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. |
| _retryDelaySeconds | Number | Time in seconds to wait before a retry. The default time is 60 seconds. |
| _timeoutSeconds | Number | Time in seconds that a task is marked TIMED_OUT after being IN_PROGRESS and not reaching a terminal state. |
| _timeoutPolicy | String | The 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. |
| _responseTimeoutSeconds | Number | Time 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. |
| _result | Object | The Task's output. |
| _decisionCases | Object | For 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. |
| _forkTasks | Array<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
| Property | Type | Description |
|---|---|---|
| _id | String | The id of the team resource. |
| _namespaces | Array<String> | Required, The namespace(s) of the resource. |
| _name | String | Required, The team name (max 255 characters). |
| _description | String | A short description of what the team does. |
| _agents | Array<TeamAgent> | Required, Agents participating in this team. |
| _flow | UNKNOWN: OptionalType | Optional, The execution graph as / transitions. Required for static-flow mode; ignored (usually empty) in supervisory mode. |
| _permissionProfileId | UNKNOWN: OptionalType | Optional, The permission profile used to resolve credentials/secrets when the team runs. |
| _irn | String | Internal resource name for permission checks. |
| _metadata | Object | Metadata containing createdAt, updatedAt, createdById, updatedById. |
TeamAgent
An agent entry within a Team.
Type: Object
| Property | Type | Description |
|---|---|---|
| _userType | String | Required, The of an existing Agent to include in the team. |
| _subAgents | UNKNOWN: OptionalType | Optional, The worker agents this supervisor may delegate to. When present and non-empty on any agent, the team runs in supervisory mode. |
| _order | UNKNOWN: OptionalType | Optional, The supervisor chain position; the lowest is the entry-point supervisor. Applies in supervisory mode. |
| _onfailure | UNKNOWN: OptionalType | Optional, The of a fallback agent used when routing returns (or when a route is missing and is set). |
TeamCriteria
Team criteria
Type: Object
| Property | Type | Description |
|---|---|---|
| _name | String | Filter by team name. |
| query | String | Wildcard search on the team name. |
TeamFlow
A single transition in a Team's static execution flow.
Type: Object
| Property | Type | Description |
|---|---|---|
| from | String | Required, The source node: an agent's or the literal . |
| to | String | Required, The target node: an agent's or the literal . |
TeamSubAgent
A worker agent referenced by a supervisor in supervisory mode.
Type: Object
| Property | Type | Description |
|---|---|---|
| _userType | String | Required, 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
| Property | Type | Description |
|---|---|---|
| _id | String | The TelemetryConfig's database id |
| _name | String | A readable, long-form name |
| _description | String | A string that describes the purpose of the TelemetryConfig class instance |
| _shortName | String | Shorter abbreviation of the TelemetryConfig name that is used for reference |
| _userType | String | A 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. |
| _configData | TelemetryConfigData | Contains binding criteria and points to a normalization script |
TelemetryConfigCriteria
Criteria to target a TelemetryConfig
Type: Object
| Property | Type | Description |
|---|---|---|
| query | JSON | Pass a simple query |
TelemetryConfigCriteriaOptions
Response options for a TelemetryConfig request
Type: Object
| Property | Type | Description |
|---|---|---|
| project | JSON | Pass an object that contains one or more projection criteria specifiers. |
| sort | JSON | Pass an object that contains one or more sort criteria specifiers. Set a property to 1 to sort ascending and -1 to sort descending. |
| page | PageRequest | Pass an object that contains one or more pagination options. |
| pagedRes | boolean | Set 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
| Property | Type | Description |
|---|---|---|
| _bindings | CollectionQuery | Criteria to target the telemetry items that receive readings from MQTT gateway |
| _normalizationScript | JSON | Criteria 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
| Property | Type | Description |
|---|---|---|
| _sourceId | String | Id of the telemetry device that generates the telemetry readings |
TelemetryProcessingError
Error log for a telemetry processing error.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | TelemetryProcessingError database id |
| _timestamp | Number | Timestamp in epoch milliseconds |
| _message | String | IoT data that received from the source |
| _exception | String | Exception message |
| _detailedException | String | Error stack |
TelemetryProcessingErrorCriteria
Type: Object
| Property | Type | Description |
|---|---|---|
| query | JSON | Pass a simple query object. |
TokenResponse
Response shape for IafPassSvc.fetchTokens (authorization_code, PKCE, and refresh_token grants).
Type: Object
| Property | Type | Description |
|---|---|---|
| access_token | String | The OAuth2 access token (JWT). |
| token_type | String | The token type, e.g. "bearer". |
| refresh_token | String | The OAuth2 refresh token (JWT), usable to obtain a new access token via the refresh token flow. |
| expires_in | Number | Seconds until the access token expires. |
| scope | String | The granted scope(s), e.g. "read write". |
| user_name | String | The authenticated user's UUID. |
| app_id | String | The Application's UUID this token was issued for. |
| jti | String | The JWT ID (unique token identifier). |
TokenUsage
Tokens consumed, in one shape regardless of whether the AI provider was OpenAI or Anthropic.
Type: Object
| Property | Type | Description |
|---|---|---|
| _input | Number | Input (prompt) tokens. |
| _output | Number | Output (completion) tokens. Always 0 for embedding calls. |
| _total | Number | Total 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
| Property | Type | Description |
|---|---|---|
| _conversationId | String | The conversation the figures belong to. |
| _turnId | UNKNOWN: OptionalType | Set only when the breakdown is for a single turn. |
| _usage | TokenUsage | The stored total. |
| _sources | Array<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
| Property | Type | Description |
|---|---|---|
| _kind | String | What incurred the usage: , or . |
| _name | String | The agent's user type, or the role of the call in the turn |
| (, , ). | ||
| _displayName | UNKNOWN: OptionalType | The agent's display name as configured when it ran. Absent |
| for non-agent sources. | ||
| _model | String | The model as configured on the agent, for example . |
| _resolvedModel | String | The model the provider actually served, for example |
| . Differs from when an alias points at a dated snapshot, and | ||
| billing follows this one. | ||
| _provider | String | or . |
| _usage | TokenUsage | Tokens this source consumed. |
| _calls | Number | AI 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
| Property | Type | Description |
|---|---|---|
| _id | String | The id of the tool resource |
| _namespaces | Array<String> | Required, The namespace(s) of the resource |
| _name | String | Required, The name of the tool |
| _description | String | A short description of what the tool does |
| _userType | String | Required, Unique identifier of the tool |
| _type | String | The type of the tool, assigned by the backend |
| _toolClass | String | The class name of the custom tool implementation |
ToolCriteria
Tool criteria
Type: Object
| Property | Type | Description |
|---|---|---|
| _userType | String | Filter by _userType field |
| _type | String | Filter by _type field (e.g., tool type) |
| query | String | Wild card search that operates on the name and description, for example, ?query=sensor |
TraceCriteria
Optional filters for the trace reads.
Type: Object
| Property | Type | Description |
|---|---|---|
| _eventType | UNKNOWN: OptionalType | Return 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. | ||
| _turnId | UNKNOWN: OptionalType | Return 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
| Property | Type | Description |
|---|---|---|
| _id | String | The event id. |
| _conversationId | String | The conversation the event belongs to. |
| _turnId | String | The turn the event belongs to. |
| _sequence | Number | Execution 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. | ||
| _eventType | String | One of , , |
| , , , , , | ||
| , , . | ||
| _agentName | UNKNOWN: OptionalType | Display name of the agent the event relates to. |
| _toolName | UNKNOWN: OptionalType | Tool name, on tool events. |
| _callId | UNKNOWN: OptionalType | Provider tool-call id, pairing a with its |
| . | ||
| _payload | UNKNOWN: OptionalType | The event body. Its shape follows : |
| ; | ||
| ; | ||
| ; | ||
| ; | ||
| ; | ||
| ; | ||
| ; | ||
| ; | ||
| ; | ||
| . | ||
| _metadata | AuditableDTO | Metadata containing creation and update info. |
TSMetadata
Telemetry timestamp metadata
Type: Object
| Property | Type | Description |
|---|---|---|
| _telItemId | String | The TelemetryItem's id |
| _sourceId | String | The 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
| Property | Type | Description |
|---|---|---|
| _id | String | The turn id. Required by the turn-level reads. |
| _conversationId | String | The conversation this turn belongs to. |
| _teamId | String | The team that answered. |
| _prompt | any | The prompt that opened the turn. |
| _llmResponse | any | The answer produced for it. |
| _duration | Number | Milliseconds the team took to answer. |
| _status | Number | Status code of the turn. |
| _usage | TokenUsage | Tokens consumed by this turn. Turns created before token tracking existed report zeros. |
| _metadata | AuditableDTO | Metadata containing creation and update info. |
UploadMeta
Type: Object
| Property | Type | Description |
|---|---|---|
| _size | Number | |
| _uploadOffset | Number | |
| _checksum | String | |
| _uploadId | String |
User
The User type defines a system user.
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | String | User id as UUID |
| _firstname | String | The user's first name |
| _lastname | String | The user's last name |
| _email | String | The user's email |
| _isSocial | boolean | Set to true if the user is created by social login |
| _disabled | boolean | Set 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
| Property | Type | Description |
|---|---|---|
| _id | String | User id, for example "~3f2a" for ids that contain "3f2a". |
| _firstname | String | The user's first name. |
| _lastname | String | The user's last name. |
| _email | String | The user's email, for example "[email protected]" for every user at company.com. |
| _disabled | boolean | true for deactivated users, false for active users. Leave it out for both. |
UserAdminOptions
Paging and sort options for IafPassSvc.getUsers.
Type: Object
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets the number of results to return per Page in the response, at most 50. |
| _sortBy | String | Sorts the users by "_id", "_firstname", "_lastname" or "_email". The default is "_lastname". |
| _sortOrder | String | "ASC" or "DESC". The default is "ASC". |
UserCollectionBulkOperationOptions
Use the UserCollectionBulkOperationOptions type to process bulk operation asynchronously.
Type: UserCollectionOptions
| Property | Type | Description |
|---|---|---|
| async | Boolean | Set 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
| Property | Type | Description |
|---|---|---|
| userItemVersionId | String | Looks 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
| Property | Type | Description |
|---|---|---|
| _version | UserConfigVersion | A given version of the UserConfig's content. |
UserConfigOptions
Options specific to IafUserConfig APIs. Extends NamedUserItemCriteria for filtering support.
Type: NamedUserItemCriteriaOptions
| Property | Type | Description |
|---|---|---|
| transactional | boolean | Set 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
| Property | Type | Description |
|---|---|---|
| _userData | String | User 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
| Property | Type | Description |
|---|---|---|
| query | String | Pass 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
| Property | Type | Description |
|---|---|---|
| _id | String | The UserGroup's UUID |
| _description | String | The UserGroup's description |
| _name | String | Readable long-form UserGroup name, such as "Project 1 developer operations group" |
| _shortName | String | Shorter abbreviation of the UserGroup name that is used for reference, such as "dev_ops_proj_1" |
| _namespaces | Array<String> | List the namespaces that the UserGroup has access to |
| _userAttributes | Object | Add custom key-value pairs. Add the attribute name to the key, for example, _userAttributes.<attribute_name>: <attribute_value> |
| _userType | String | User type |
| _isMember | boolean | Set 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
| Property | Type | Description |
|---|---|---|
| _id | (Array<String> | String) | The UserGroup's UUID. Supports partial match, for example, "~3f2a" |
| _description | String | The 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 |
| _userAttributes | String | Partial 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> |
| includeAll | boolean | Set 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. |
| query | String | Wild card search that operates on the name, short name, and description, for example, ?query=admin |
UserGroupCriteriaOptions
Type: Object
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets 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
| Property | Type | Description |
|---|---|---|
| permissions | IafPermissionDescriptor | The list of permission granted for the usergroup |
UserGroupUserOptions
Type: Object
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets 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
| Property | Type | Description |
|---|---|---|
| _id | String | The Workflow's id |
| _name | String | A custom name |
| _description | String | Describe the Workflow |
| _userType | String | A 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. |
| _namespaces | Array<String> | An array of namespaces you want to add the Workflow to |
| _taskDefs | Array<TaskDef> | An array of your defined tasks |
| _timeoutSeconds | Number | The number of seconds before the Workflow times out when unresponsive |
| _timeoutPolicy | String | Workflow'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. |
| _updatedBy | String | User Id of the user who last updated the workflow |
| _createdBy | String | User Id of the user who created the workflow |
WorkflowDefCriteria
Filter criteria for retrieving workflow definitions.
Type: Object
| Property | Type | Description |
|---|---|---|
| _name | String | Exact workflow definition name to match. |
| _userType | String | Exact value to match. |
WorkflowDefOptions
Pagination options for retrieving workflow definitions.
Type: Object
| Property | Type | Description |
|---|---|---|
| _count | Number | Page size; number of workflow definitions to fetch per call (default 10). |
| _offset | Number | Record 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
| Property | Type | Description |
|---|---|---|
| _id | String | Project UUID, which the platform attributes after the Workspace is created |
| _description | String | A description of the Workspace and its purpose |
| _name | String | Readable long-form Workspace name, such as "Project 1 Workspace" |
| _shortName | String | Shorter abbreviation of the Workspace name that is used for reference, such as "proj_1_ws" |
| _namespaces | Array<String> | List the namespaces that the Workspace has access to |
| _userAttributes | JSON | Add custom attributes to the Workspace class object |
WorkspaceCriteria
Criteria to find one or more Workspaces
Type: Object
| Property | Type | Description |
|---|---|---|
| _id | (Array<String> | String) | The Workspace's UUID |
| _description | String | The 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 |
| _namespaces | Array<String> | A namespace or comma separated string of namespaces |
| _userAttributes | String | Find by a user attribute value. Add the attribute name to the key, for example, _userAttributes.<attribute_name>: <attribute_value> |
| query | String | Wild card search that operates on the name, short name, and description, for example, ?query=admin |
WorkspaceCriteriaOptions
Type: Object
| Property | Type | Description |
|---|---|---|
| _offset | Number | Sets the number of results to skip in the Page response. For example, set to to skip the first 10 results. |
| _pageSize | Number | Sets the number of results to return per Page in the response |