Referencia GraphQL: device-management
Generada a partir del esquema que sirve este servicio, así que no puede quedarse atrás. El mismo esquema se publica como archivo para herramientas y agentes.
| Endpoint | https://<your-host>/api/device-management/graphql |
| Plano de autenticación | tenant — The ordinary application plane. Obtain a tenant access token by calling login then selectTenant on user-management, and authorize each call with the capability it names (for example device:write). |
| Autorización | tenant access token |
| Archivo del esquema | /schema/device-management.graphql |
| Descritos | 3067 de 3067 elementos |
La referencia que sigue se genera a partir del esquema y está solo en inglés.
Queries
activeAssetTypeVersion · activeProfileRules · agentProposal · agentProposals · alarmCountsByDeviceType · alarmCountsBySeverity · alarmDispositions · alarmLifecycles · alarmSuppressionStatus · alarmSuppressionWindows · alarmSuppressionWindowsByToken · alarmSuppressionsForDevice · alarms · alarmsById · alarmsByToken · anchorDevices · areaTypes · areaTypesById · areaTypesByToken · areas · areasById · areasByToken · assetAncestors · assetChildren · assetParent · assetTypeVersions · assetTypes · assetTypesById · assetTypesByToken · assets · assetsById · assetsByToken · auditEvents · authenticateCommandChannel · automationReview · automationReviewBreakGlass · automationReviewPolicy · automationReviews · brokerAssertedDeviceDecoder · bulkChange · bulkChangeLines · bulkChangeReadiness · bulkChanges · calculatedBackfillRoster · calculatedMetricPlan · checkDeviceCredential · commandDefinitions · commandDefinitionsById · commandDefinitionsByToken · commandDispatchSchedule · commandPullDevices · currentFenceSetVersion · currentGeoFenceSet · currentGeoFenceSetManifest · customerDevices · customerTypes · customerTypesById · customerTypesByToken · customers · customersById · customersByToken · detectionRules · detectionRulesById · detectionRulesByToken · deviceClaim · deviceCommandVocabulary · deviceConfiguration · deviceConfigurationRevisions · deviceConstantsPage · deviceCredentials · deviceCredentialsById · deviceCredentialsByToken · deviceDecoder · deviceLocationDeclaration · deviceMetricVocabulary · deviceProfileVersions · deviceProfiles · deviceProfilesById · deviceProfilesByToken · deviceReplacements · deviceRevokedCertificates · deviceRosterPage · deviceScopeAnchors · deviceThresholdAttributePage · deviceTrustAnchors · deviceTrustAnchorsById · deviceTrustAnchorsByToken · deviceTypes · deviceTypesById · deviceTypesByToken · devices · devicesByExternalId · devicesById · devicesByToken · disabledDevicePage · entityAttributes · entityGroupVersions · entityGroups · entityGroupsById · entityGroupsByToken · entityRelationshipTypes · entityRelationshipTypesById · entityRelationshipTypesByToken · entityRelationships · entityRelationshipsById · entityRelationshipsByToken · existingEntityRefs · facetKeys · facetValues · fleetOperationReadiness · geoFenceGeometry · geoFenceSetManifest · geoFenceSetSnapshot · geoFences · geoFencesById · geoFencesByToken · integration · integrationAuth · integrationDecoder · integrations · maintenanceWindowOpening · maintenanceWindows · maintenanceWindowsById · maintenanceWindowsByToken · metricDefinitions · metricDefinitionsById · metricDefinitionsByToken · payloadDecoderFunctions · payloadDecoderHealth · payloadDecoderSamples · planBulkChange · previewBulkChangeResume · previewBulkChangeReversal · previewSelector · provisioningProfiles · provisioningProfilesById · provisioningProfilesByToken · resolveDeviceGroupTargets · semanticContext · testMetricFormula · testPayloadDecoder · unregisteredIntegrationDevices · validateCommandEnqueue · validateCommandEnqueueBatch
activeAssetTypeVersion
The version that assets of this type are currently validated against, or null when the type has never been published. Requires device:read.
Returns AssetTypeVersion
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the asset type. |
activeProfileRules
Detection-engine reconcile read. One page of the tenant's published profiles, each with its active version, when that version became active and its enabled detection rules. The engine reads the reconcile queries when it takes the detection partition and every five minutes after, and corrects whatever differs, so a rule, device or attribute change whose notification was lost still reaches detection. A keyset page: pass the previous page's nextCursor as afterId, and stop when it is null. A limit outside 1 to the maximum is refused. A profile whose frozen snapshot cannot be read fails the whole page rather than answering with no rules. Requires device:read.
Returns ActiveProfileRulesPage!
| Argument | Type | Description |
|---|---|---|
afterId | String | The nextCursor of the previous page; omit for the first page. |
limit | Int! | Page size, from 1 to the maximum the query allows; a value outside that range is refused. |
agentProposal
(Preview: may change in a minor release.) One agent proposal by token, under the same rules as agentProposals. A token that names no proposal the caller may see fails with NOT_FOUND.
Returns AgentProposal!
| Argument | Type | Description |
|---|---|---|
token | String! | (Preview: may change in a minor release.) The proposal's token. |
agentProposals
(Preview: may change in a minor release.) The tenant's agent proposals, newest first. A person needs alarm:read; an AI agent's token (one holding alarm:propose) sees only its own client's proposals for the person it acts for. A member limited to part of the tenant is refused.
Returns AgentProposalSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | AgentProposalSearchCriteria! | (Preview: may change in a minor release.) The filters, and the page to return. |
alarmCountsByDeviceType
Counts the alarms matching the criteria per originating device type and severity, in one read, for a view that groups alarms by type. Only alarms on devices the caller can read are counted, so a type's count equals the total of alarms(criteria) filtered to that type. Requires alarm:read.
Returns [AlarmDeviceTypeCount!]!
| Argument | Type | Description |
|---|---|---|
criteria | AlarmCountCriteria! | The facets the counted alarms must match. |
alarmCountsBySeverity
Counts the alarms matching the criteria per severity, in one read. With no deviceType every alarm alarms(criteria) would return is counted, whatever its originator (a device, an asset, an area, a customer or a group), so the counts sum to its total. With a deviceType only the alarms on devices of that type are counted, as alarms(criteria) filtered to that type returns them; an unknown type counts nothing. A severity with no alarm is absent. Requires alarm:read.
Returns [AlarmSeverityCount!]!
| Argument | Type | Description |
|---|---|---|
criteria | AlarmCountCriteria! | The facets the counted alarms must match. |
deviceType | String | Only alarms on devices of this type, by its token. |
alarmDispositions
Lists alarm disposition labels, newest labelled cycle first: every labelled cycle, including those before an alarm's current one. It is the read a backtest scores a rule against. Requires alarm:read; a member whose access is limited to some customers reads the labels of the cycles raised under its customers.
Returns AlarmDispositionSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | AlarmDispositionSearchCriteria! | The facets the listed labels must match, and the page to return. |
alarmLifecycles
Service plane. Returns existence and lifecycle state only, including alarms derived from position and alarms whose position classification is pending. Omits unknown tokens. Requires a service token with alarm:read; tenant access tokens are refused.
Returns [AlarmLifecycle!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | The alarm tokens to reconcile, bounded by the batch lookup limit. |
alarmSuppressionStatus
Live suppression for up to two hundred alarm tokens. Requires alarm:read; unknown and hidden alarms are omitted.
Returns [AlarmSuppressionStatus!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Alarm tokens, at most two hundred. |
alarmSuppressionWindows
List whole visible windows with computed status and target filters. Requires alarm:read.
Returns AlarmSuppressionWindowSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | AlarmSuppressionWindowSearchCriteria! | Filters and pagination. |
alarmSuppressionWindowsByToken
Read up to one hundred visible windows by token; unknown or hidden tokens are omitted.
Returns [AlarmSuppressionWindow!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Window tokens. |
alarmSuppressionsForDevice
Preview visible windows matching current device facts and time, ignoring alarm keys and bypass severity.
Returns [AlarmSuppressionWindow!]!
| Argument | Type | Description |
|---|---|---|
at | String | RFC 3339 instant; omit for now. |
deviceToken | String! | Visible device token. |
alarms
Lists the alarms that match the criteria, one page at a time. Requires alarm:read; a member whose access is limited to some customers sees only the alarms of its own devices.
Returns AlarmSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | AlarmSearchCriteria! | The facets the listed alarms must match, and the page to return. |
alarmsById
Reads alarms by numeric id. Ids naming no alarm, or an alarm the caller may not see, are omitted. Requires alarm:read.
Returns [Alarm!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Numeric ids of the alarms to read. |
alarmsByToken
Reads alarms by token. Tokens naming no alarm, or an alarm the caller may not see, are omitted. Requires alarm:read.
Returns [Alarm!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the alarms to read. |
anchorDevices
Searches the devices on one anchor (a customer, an area or an asset), newest first, one page at a time: the members of a dashboard widget bound to that anchor, as the caller may read them. Every answer, and pagination.totalRecords, counts only the devices the caller can see, never the whole anchor. An anchor that does not exist matches nothing. For a member limited to part of the tenant, a customer anchor must be one that member's access names, or the request is refused with FORBIDDEN; an area or asset that none of the member's devices is on matches nothing; only ownership (tracked) relationships match, so naming a relationshipType is refused as unsupported for scoped access; and any other anchor kind is refused as unsupported for scoped access (FORBIDDEN, reason SCOPE_UNSUPPORTED). Requires device:read.
Returns DeviceSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | AnchorDeviceSearchCriteria! | The anchor, an optional relationship type and the page to return. |
areaTypes
Lists the area types that match the criteria, one page at a time. Answered to a member limited to part of the tenant too. Requires device:read.
Returns AreaTypeSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | AreaTypeSearchCriteria! | The facets the listed area types must match, and the page to return. |
areaTypesById
Reads area types by numeric id. Ids naming no area type are omitted. Answered to a member limited to part of the tenant too, since a type is configuration rather than device data. Requires device:read.
Returns [AreaType!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Numeric ids of the area types to read. |
areaTypesByToken
Reads area types by token. Tokens naming no area type are omitted. Answered to a member limited to part of the tenant too. Requires device:read.
Returns [AreaType!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the area types to read. |
areas
Lists the areas that match the criteria, one page at a time. Scoped as areasById; pagination counts only the areas the caller reaches. Requires device:read.
Returns AreaSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | AreaSearchCriteria! | The facets the listed areas must match, and the page to return. |
areasById
Reads areas by numeric id. A member limited to part of the tenant is answered with only the areas one of its visible devices is placed in (over a tracked relationship), their metadata is null for it, and any other id is omitted as if it did not exist. Requires device:read.
Returns [Area!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Numeric ids of the areas to read. |
areasByToken
Reads areas by token. Scoped as areasById: an area outside the caller's reach is omitted, never refused. Requires device:read.
Returns [Area!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the areas to read. |
assetAncestors
The path from an asset to its root, nearest ancestor first, which is the order a breadcrumb is built from. Requires device:read.
Returns [Asset!]!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the asset whose ancestors to read. |
assetChildren
One page of the assets directly below a parent. Omit parentToken to page the roots of the tree, so a tree browser asks the same question at every level. Requires device:read.
Returns AssetSearchResults!
| Argument | Type | Description |
|---|---|---|
pagination | PaginationInput! | The page of children to return. |
parentToken | String | Token of the parent asset. Omit to page the roots of the tree. |
assetParent
The asset directly above this one in the hierarchy, or null when it is a root. A root is a normal state, not an error. Requires device:read.
Returns Asset
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the asset whose parent to read. |
assetTypeVersions
Lists an asset type's published property-contract versions, newest first. At most 1000 per call; limit (at least 1) narrows that and offset (not negative) pages further. Requires device:read.
Returns [AssetTypeVersion!]!
| Argument | Type | Description |
|---|---|---|
limit | Int | Most versions to return, at least 1 and at most 1000. Omit for 1000. |
offset | Int | Number of versions to skip, not negative. Use with limit to page further. |
token | String! | Token of the asset type. |
assetTypes
Lists the asset types that match the criteria, one page at a time. Answered to a member limited to part of the tenant too. Requires device:read.
Returns AssetTypeSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | AssetTypeSearchCriteria! | The facets the listed asset types must match, and the page to return. |
assetTypesById
Reads asset types by numeric id. Ids naming no asset type are omitted. Answered to a member limited to part of the tenant too, since a type is configuration rather than device data. Requires device:read.
Returns [AssetType!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Numeric ids of the asset types to read. |
assetTypesByToken
Reads asset types by token. Tokens naming no asset type are omitted. Answered to a member limited to part of the tenant too. Requires device:read.
Returns [AssetType!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the asset types to read. |
assets
Lists the assets that match the criteria, one page at a time. Scoped as assetsById; pagination counts only the assets the caller reaches. Requires device:read.
Returns AssetSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | AssetSearchCriteria! | The facets the listed assets must match, and the page to return. |
assetsById
Reads assets by numeric id. A member limited to part of the tenant is answered with only the assets one of its visible devices is assigned to (over a tracked relationship), their metadata and properties are null for it, and any other id is omitted as if it did not exist. Requires device:read.
Returns [Asset!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Numeric ids of the assets to read. |
assetsByToken
Reads assets by token. Scoped as assetsById: an asset outside the caller's reach is omitted, never refused. Requires device:read.
Returns [Asset!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the assets to read. |
auditEvents
Queries the audit journal, newest first, one page at a time. Requires audit:read.
Returns AuditEventSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | AuditEventSearchCriteria! | The facets the listed audit events must match, and the page to return. |
authenticateCommandChannel
Service plane. Proves a device's access token for the HTTP command endpoints and says which device it belongs to. Null when the token is unknown, revoked or expired, or the device is disabled: one answer for all of them. Reads the database on every call, so a revocation takes effect on the next request. Requires a service token with device:read.
Returns CommandChannelAccess
| Argument | Type | Description |
|---|---|---|
credentialId | String! | The device's access token. |
automationReview
(Preview: may change in a minor release.) Read frozen automation evidence. Requires device:read and event:read and an unscoped caller.
Returns AutomationReview
| Argument | Type | Description |
|---|---|---|
token | String! | (Preview: may change in a minor release.) The review token. |
automationReviewBreakGlass
(Preview: may change in a minor release.) Read at most 200 activation changes made outside review, newest first. Requires device:read and an unscoped caller; an unknown profile returns NOT_FOUND.
Returns [AutomationReviewBreakGlass!]
| Argument | Type | Description |
|---|---|---|
profileToken | String! | (Preview: may change in a minor release.) The profile token. |
automationReviewPolicy
(Preview: may change in a minor release.) Read automation protection settings. Requires device:read and an unscoped caller; an unknown profile returns NOT_FOUND.
Returns AutomationReviewPolicy
| Argument | Type | Description |
|---|---|---|
profileToken | String! | (Preview: may change in a minor release.) The profile token. |
automationReviews
(Preview: may change in a minor release.) List automation reviews. Requires device:read and event:read and an unscoped caller.
Returns AutomationReviewSearchResults
| Argument | Type | Description |
|---|---|---|
criteria | AutomationReviewSearchCriteria! | (Preview: may change in a minor release.) Profile, state, draft matching and paging filters. |
brokerAssertedDeviceDecoder
Service-only: callable with a service token that holds device:read, and refused for any user's access token. The same question as deviceDecoder, for a device that published its own payload on its raw-payload MQTT topic: the platform's broker authenticated the device at connect and confined it to its own topic, so no credential is presented. Null when no device has this token; present: false for a device whose type has no decoder.
Returns DeviceDecoderPlan
| Argument | Type | Description |
|---|---|---|
deviceToken | String! | Token of the device the broker confined the publish to. |
bulkChange
Preview. One bulk change by token. Null when the tenant has none. Needs device:read.
Returns BulkChange
| Argument | Type | Description |
|---|---|---|
token | String! | Preview. The bulk change's token. |
bulkChangeLines
Preview. The lines of one operation in input order. Needs device:read.
Returns BulkChangeLineSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | BulkChangeLineSearchCriteria! | Preview. Paging and filters for the lines. |
token | String! | Preview. The bulk change's token. |
bulkChangeReadiness
Preview. Report this build's bulk change capabilities and fresh database enforcement and tenant orphan facts. Requires fleet:operate; scoped members are refused. An expensive diagnostic (it counts rows): query it when you need the answer, do not poll it.
Returns BulkChangeReadiness!
bulkChanges
Preview. Bulk changes, newest first. Needs device:read.
Returns BulkChangeSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | BulkChangeSearchCriteria! | Preview. Paging and filters. |
calculatedBackfillRoster
One page of EVERY device whose type adopts the profile, in device order, each with when it was created and the numbers its metadata holds under the requested names (a device holding none is still listed). Pass the previous page's nextCursor as afterId and stop when it is null. deviceTokens narrows the walk to those devices, and a token that is not a device of the profile is refused with INVALID_VALUE, naming it. A limit outside 1..500, more than 32 constant names or more than 1000 device tokens is refused with INVALID_VALUE. Requires device:read; customer-scoped callers are refused.
Returns CalculatedBackfillRosterPage!
| Argument | Type | Description |
|---|---|---|
afterId | String | The nextCursor of the previous page; omit for the first page. |
constantKeys | [String!]! | The constant names to read, at most 32, each 1 to 64 bytes. |
deviceTokens | [String!] | Only these devices, at most 1000; omit for every device of the profile. |
limit | Int! | Page size, 1 to 500. |
profileToken | String! | The token of the profile whose devices are walked. |
calculatedMetricPlan
Describes the calculated metrics of one PUBLISHED version of a profile: the measured metrics its formulas may read, each calculated metric with its formula, type, bounds and unit in the order the live resolver evaluates them, and the device constants they read. It is read out of the same compiled plan the resolver runs, so a caller that compiles it gets that plan. A draft is not a version: an unknown profile, a profile never published and a version never published are NOT_FOUND. A plan that cannot be built is an error, never an empty answer. Requires device:read; customer-scoped callers are refused.
Returns CalculatedMetricPlan!
| Argument | Type | Description |
|---|---|---|
profileToken | String! | The token of the profile. |
version | Int | The published version number; omit for the active version. |
checkDeviceCredential
Service-only: callable with a service token that holds device:read, and refused for any user's access token. The ingest door's one question about an event's credential: would the credential its body carries authenticate under the device authentication policy the event resolver applies? True when it would (or when the policy asks for none); false only for an authentication failure, with no word on which: an unknown credential, an expired one, a wrong secret, another device's credential and a missing one the policy requires are one answer. A database failure is an error, never false. The caller MUST throttle failures per credential: unlike the resolver's, this verdict reaches the sender.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
credentialId | String! | The credential id the event presents, or empty. |
credentialType | String! | The credential type the event presents (for example MQTT_BASIC), or empty. |
device | String! | The device token the event names, or empty. |
secret | String | The credential secret the event presents, or null. |
commandDefinitions
Searches the tenant's command definitions, newest first, one page at a time. These are the draft definitions, not a published version. Requires device:read.
Returns CommandDefinitionSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | CommandDefinitionSearchCriteria! | Filters and the page to return. |
commandDefinitionsById
Returns the command definitions with the given ids. Ids that match nothing are omitted, an id that is not a number fails the request, and more than 1000 ids are refused with LIMIT_EXCEEDED. Requires device:read.
Returns [CommandDefinition!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Ids of the command definitions to return. |
commandDefinitionsByToken
Returns the command definitions with the given tokens. Tokens that match nothing are omitted, and more than 1000 tokens are refused with LIMIT_EXCEEDED. Requires device:read.
Returns [CommandDefinition!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the command definitions to return. |
commandDispatchSchedule
Decides, for a command about to be enqueued, which devices must wait for their device type's maintenance window and which are refused because the window opens after the command expires. Only commands whose definition has impact DISRUPTIVE or DESTRUCTIVE, on a type that has a window, are ever held. Devices that do not exist or are disabled are skipped; validateCommandEnqueue decides those. Requires device:read.
Returns CommandDispatchSchedule!
| Argument | Type | Description |
|---|---|---|
alreadyHeld | Boolean | True when asking about a command that is already waiting for a maintenance window. The answer then follows the device type's window alone: a profile version that now marks the command NORMAL does not make it ungated, so it keeps waiting. Defaults to false. |
commandKey | String! | Key of the command to send. |
deviceTokens | [String!]! | Tokens of the target devices, at most 2000. |
expiresAt | String | When the command expires, as an RFC 3339 timestamp. Omit it for a command that never expires. |
commandPullDevices
Which of the named devices take their commands over HTTP_PULL: the ones that exist, are enabled, and whose device type has commandChannel HTTP_PULL. A device that does not exist or is disabled is simply absent from the answer. Requires device:read.
Returns [String!]!
| Argument | Type | Description |
|---|---|---|
deviceTokens | [String!]! | Tokens of the devices to ask about, at most 2000. |
currentFenceSetVersion
The tenant's active fence-set version: the number stamped onto resolved location events, naming the frozen snapshot of the fences live at that moment. Creating a fence, editing a boundary or deleting a fence mints the next one; renaming a fence or editing its description or metadata does not. 0 means the tenant has never had a fence, which differs from a minted version whose fence set happens to be empty. Requires device:read.
Returns Int!
currentGeoFenceSet
The frozen fence set of the tenant's current version, with the version and its fences read together so they cannot disagree across a concurrent fence edit. That holds only within one response: to read a multi-page fence set, take page 1 from here and every later page from geoFenceSetSnapshot at the version reported here. Requires device:read.
Returns GeoFenceSetSnapshot!
currentGeoFenceSetManifest
The manifest of the tenant's current version, with the version and its fences read from one row so they cannot disagree across a concurrent fence edit. Requires device:read.
Returns GeoFenceSetManifest!
customerDevices
Searches the devices linked to one customer by one relationship type, newest first, one page at a time: the members of a dashboard widget bound to that customer. A customer or relationship type that does not exist matches nothing. For a member limited to part of the tenant, the customer must be one that member's access names, or the request is refused with FORBIDDEN, and only an ownership relationship (a tracked type, such as the default "assigned") matches. Requires device:read.
Returns DeviceSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | CustomerDeviceSearchCriteria! | The customer, the relationship type and the page to return. |
customerTypes
Lists the customer types that match the criteria, one page at a time. Answered to a member limited to part of the tenant too. Requires device:read.
Returns CustomerTypeSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | CustomerTypeSearchCriteria! | The facets the listed customer types must match, and the page to return. |
customerTypesById
Reads customer types by numeric id. Ids naming no customer type are omitted. Answered to a member limited to part of the tenant too, since a type is configuration rather than device data. Requires device:read.
Returns [CustomerType!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Numeric ids of the customer types to read. |
customerTypesByToken
Reads customer types by token. Tokens naming no customer type are omitted. Answered to a member limited to part of the tenant too. Requires device:read.
Returns [CustomerType!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the customer types to read. |
customers
Lists the customers that match the criteria, one page at a time. Requires device:read.
Returns CustomerSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | CustomerSearchCriteria! | The facets the listed customers must match, and the page to return. |
customersById
Reads customers by numeric id. Ids naming no customer are omitted. Requires device:read.
Returns [Customer!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Numeric ids of the customers to read. |
customersByToken
Reads customers by token. Tokens naming no customer are omitted. Requires device:read.
Returns [Customer!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the customers to read. |
detectionRules
Lists the detection rules that match the criteria, one page at a time. Requires device:read.
Returns DetectionRuleSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | DetectionRuleSearchCriteria! | The facets the listed detection rules must match, and the page to return. |
detectionRulesById
Reads detection rules by numeric id. Ids naming no rule are omitted. Requires device:read.
Returns [DetectionRule!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Numeric ids of the detection rules to read. |
detectionRulesByToken
Reads detection rules by token. Tokens naming no rule are omitted. Requires device:read.
Returns [DetectionRule!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the detection rules to read. |
deviceClaim
Reads a device's current possession claim, or null when it has none. The claim secret is never returned. Requires device:read.
Returns DeviceClaim
| Argument | Type | Description |
|---|---|---|
deviceToken | String! | Token of the device. |
deviceCommandVocabulary
Lists the commands a device currently accepts, from the active published version of its profile. It reads the same data validateCommandEnqueue checks against. Returns null when no device has the token. Requires device:read.
Returns DeviceCommandVocabulary
| Argument | Type | Description |
|---|---|---|
deviceToken | String! | Token of the device. |
deviceConfiguration
A device's configuration: its latest revision, its last report and whether they agree. Null when no device has this token. Reading mints nothing.
Returns DeviceConfiguration
| Argument | Type | Description |
|---|---|---|
deviceToken | String! | The token of the device to read. |
deviceConfigurationRevisions
A page of a device's configuration revisions, newest first. Empty when no device has this token.
Returns DeviceConfigurationRevisionSearchResults!
| Argument | Type | Description |
|---|---|---|
deviceToken | String! | The token of the device whose revisions to list. |
pagination | PaginationInput! | Which page of revisions to return, bounded by the platform page-size ceiling. |
deviceConstantsPage
One page of the numbers the devices of a profile (those whose type adopts it) hold in
their metadata under the given names, which a draft calculated-metric formula reads as
device.name. Only devices holding at least one of the names are listed. This is the
rule preview's source for recalculating history with the devices' CURRENT constants.
Pass the previous page's nextCursor as afterId and stop when it is null. A limit outside
1..500, or no key or more than 32, is refused with INVALID_VALUE. Requires device:read.
Returns DeviceConstantsPage!
| Argument | Type | Description |
|---|---|---|
afterId | String | The nextCursor of the previous page; omit for the first page. |
keys | [String!]! | The constant names to read, 1 to 32 of them, each 1 to 64 bytes. |
limit | Int! | Page size, 1 to 500. |
profileToken | String! | The token of the profile whose devices are read. |
deviceCredentials
Lists the device credentials that match the criteria, one page at a time. Requires device:write, as deviceCredentialsById does.
Returns DeviceCredentialSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | DeviceCredentialSearchCriteria! | The facets the listed device credentials must match, and the page to return. |
deviceCredentialsById
Reads device credentials by numeric id. Ids naming no credential are omitted. Requires device:write rather than device:read: whoever could read credentials could impersonate the device. An access token is never returned by a read, only a fingerprint.
Returns [DeviceCredential!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Numeric ids of the device credentials to read. |
deviceCredentialsByToken
Reads device credentials by token. Tokens naming no credential are omitted. Requires device:write, as deviceCredentialsById does.
Returns [DeviceCredential!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the device credentials to read. |
deviceDecoder
Service-only: callable with a service token that holds device:read, and refused for any user's access token. What the ingest path needs to know about the payload decoder of the device with this token, for a device that publishes its own payload: whether the active published version of its type's profile declares one, which input it reads, and the figures the ingest charge is built from. The credential the device presented is authenticated first, and the answer is null for every failure to do so (nothing presented, an unknown, disabled or expired credential, a wrong secret, a credential that belongs to another device, a device that does not exist): those are indistinguishable from one another and say nothing about whether a decoder is attached. A device that authenticates and whose type has no decoder is present: false.
Returns DeviceDecoderPlan
| Argument | Type | Description |
|---|---|---|
credentialId | String! | The credential id the device presented (for an access token, the token). |
credentialSecret | String | The secret the device presented, for a credential type that carries one. |
credentialType | String! | Type of the credential the device presented (ACCESS_TOKEN, MQTT_BASIC). |
deviceToken | String! | Token of the device the uplink is addressed to. |
deviceLocationDeclaration
Tells whether a device reports its own position, from the active published version of its profile rather than the draft. Returns null when no device has the token; a device that declares nothing answers with declared false. Requires device:read.
Returns DeviceLocationCapability
| Argument | Type | Description |
|---|---|---|
deviceToken | String! | Token of the device. |
deviceMetricVocabulary
Lists the metrics a device's measurements are validated against, from the active published version of its profile: the same reading ingest validates and stores each measurement by. Returns null when no device has the token. Requires device:read.
Returns DeviceMetricVocabulary
| Argument | Type | Description |
|---|---|---|
deviceToken | String! | Token of the device. |
deviceProfileVersions
Lists the published versions of a device profile, newest first, at most 1000 per call; use limit and offset to page. Empty when the profile has never been published or offset is past the last version. Fails if no profile has the token. Requires device:read.
Returns [DeviceProfileVersion!]!
| Argument | Type | Description |
|---|---|---|
limit | Int | Maximum number of versions to return, at least 1. Omitted, or above 1000, it is 1000; below 1 is refused. |
offset | Int | Number of newest versions to skip before the first one returned. Omitted, it is 0; negative is refused. |
token | String! | Token of the profile. |
deviceProfiles
Lists the tenant's device profiles, newest first, one page at a time. Requires device:read.
Returns DeviceProfileSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | DeviceProfileSearchCriteria! | The page to return. |
deviceProfilesById
Returns the device profiles with the given ids. Ids that match no profile are omitted, an id that is not a number fails the request, and more than 1000 ids are refused with LIMIT_EXCEEDED. Requires device:read.
Returns [DeviceProfile!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Ids of the profiles to return. |
deviceProfilesByToken
Returns the device profiles with the given tokens. Tokens that match no profile are omitted, and more than 1000 tokens are refused with LIMIT_EXCEEDED. Requires device:read.
Returns [DeviceProfile!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the profiles to return. |
deviceReplacements
Lists device replacement records, newest first, optionally narrowed to one device. There is no by-id or by-token query: a replacement is never addressed on its own, only read as part of a device's history. Requires device:read.
Returns DeviceReplacementSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | DeviceReplacementSearchCriteria! | The facets the listed device replacements must match, and the page to return. |
deviceRevokedCertificates
List the revoked certificates of a trust anchor, newest first.
Returns DeviceRevokedCertificateSearchResults!
| Argument | Type | Description |
|---|---|---|
anchorToken | String! | Token of the anchor. |
criteria | DeviceRevokedCertificateSearchCriteria! | Paging and filters. |
deviceRosterPage
Detection-engine reconcile read. One page of the device roster: every device, the profile its type adopts (empty when none) and when that membership began. Pass the previous page's nextCursor as afterId and stop when it is null. Requires device:read.
Returns DeviceRosterPage!
| Argument | Type | Description |
|---|---|---|
afterId | String | The nextCursor of the previous page; omit for the first page. |
limit | Int! | Page size, from 1 to the maximum the query allows; a value outside that range is refused. |
deviceScopeAnchors
Returns the anchors of each named device: one type:token entry per tracked relationship from the device, such as customer:acme for a device assigned to that customer. Other services stamp a record about a device with these when they write it, which decides which members limited to part of the tenant can see the record. Devices that do not exist are omitted, and more than 1000 tokens are refused with LIMIT_EXCEEDED. Not available to a member limited to part of the tenant. Requires device:read.
Returns [DeviceScopeAnchors!]!
| Argument | Type | Description |
|---|---|---|
deviceTokens | [String!]! | Tokens of the devices, at most 1000. |
deviceThresholdAttributePage
Detection-engine reconcile read. One page of the numeric SHARED and SERVER device attributes that a dynamic detection threshold can read. A page can hold fewer entries than its limit and still have a nextCursor; only a null cursor ends the walk. Requires device:read.
Returns DeviceThresholdAttributePage!
| Argument | Type | Description |
|---|---|---|
afterId | String | The nextCursor of the previous page; omit for the first page. |
limit | Int! | Page size, from 1 to the maximum the query allows; a value outside that range is refused. |
deviceTrustAnchors
List trust anchors that meet the criteria.
Returns DeviceTrustAnchorSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | DeviceTrustAnchorSearchCriteria! | Paging and filters. |
deviceTrustAnchorsById
Find trust anchors by unique id.
Returns [DeviceTrustAnchor!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Ids of the anchors. |
deviceTrustAnchorsByToken
Find trust anchors by unique token.
Returns [DeviceTrustAnchor!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the anchors. |
deviceTypes
Lists the tenant's device types, newest first, one page at a time. Requires device:read.
Returns DeviceTypeSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | DeviceTypeSearchCriteria! | The page to return. |
deviceTypesById
Returns the device types with the given ids. Ids that match no device type are omitted, an id that is not a number fails the request, and more than 1000 ids are refused with LIMIT_EXCEEDED. Requires device:read.
Returns [DeviceType!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Ids of the device types to return. |
deviceTypesByToken
Returns the device types with the given tokens. Tokens that match no device type are omitted, and more than 1000 tokens are refused with LIMIT_EXCEEDED. Requires device:read.
Returns [DeviceType!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the device types to return. |
devices
Searches the tenant's devices, newest first, one page at a time. Requires device:read.
Returns DeviceSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | DeviceSearchCriteria! | Filters and the page to return. |
devicesByExternalId
Returns the devices whose business identifier is one of the given values. Values that match no device are omitted. Requires device:read.
Returns [Device!]!
| Argument | Type | Description |
|---|---|---|
externalIds | [String!]! | Business identifiers to look up, matched exactly. |
devicesById
Returns the devices with the given ids. Ids that match no device are omitted, an id that is not a number fails the request, and more than 1000 ids are refused with LIMIT_EXCEEDED. Requires device:read.
Returns [Device!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Ids of the devices to return. |
devicesByToken
Returns the devices with the given tokens. Tokens that match no device are omitted, and more than 1000 tokens are refused with LIMIT_EXCEEDED. Requires device:read.
Returns [Device!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the devices to return. |
disabledDevicePage
One page of the tokens of the devices an operator has disabled, in device order. Pass the previous page's nextCursor as afterId and stop when it is null; a limit outside 1..1000 is refused. command-delivery walks it at startup and every few minutes to correct its record of which devices are disabled, because commands already queued for a disabled device are held rather than sent. Requires device:read.
Returns DisabledDevicePage!
| Argument | Type | Description |
|---|---|---|
afterId | String | The nextCursor of the previous page; omit for the first page. |
limit | Int! | Page size, 1 to 1000. |
entityAttributes
Lists the entity attributes that match the criteria, one page at a time. Requires device:read.
Returns EntityAttributeSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | EntityAttributeSearchCriteria! | The facets the listed attributes must match, and the page to return. |
entityGroupVersions
Lists a dynamic entity group's published versions, newest first. At most 1000 per call; limit (at least 1) narrows that and offset (not negative) pages further. Requires device:read.
Returns [EntityGroupVersion!]!
| Argument | Type | Description |
|---|---|---|
limit | Int | Most versions to return, at least 1 and at most 1000. Omit for 1000. |
offset | Int | Number of versions to skip, not negative. Use with limit to page further. |
token | String! | Token of the dynamic entity group. |
entityGroups
Lists the entity groups that match the criteria, optionally by member family and mode, one page at a time. Requires device:read.
Returns EntityGroupSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | EntityGroupSearchCriteria! | The facets the listed entity groups must match, and the page to return. |
entityGroupsById
Reads entity groups by numeric id. Ids naming no group are omitted. Requires device:read.
Returns [EntityGroup!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Numeric ids of the entity groups to read. |
entityGroupsByToken
Reads entity groups by token. Tokens naming no group are omitted. Also answered to a member whose access is limited to part of the tenant, with only the groups its scope names, of which it reads the token and name: description, metadata, selector, members and versions are refused.
Returns [EntityGroup!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the entity groups to read. |
entityRelationshipTypes
Lists the relationship types that match the criteria, one page at a time. Requires device:read.
Returns EntityRelationshipTypeSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | EntityRelationshipTypeSearchCriteria! | The facets the listed entity relationship types must match, and the page to return. |
entityRelationshipTypesById
Reads relationship types by numeric id. Ids naming no type are omitted. Requires device:read.
Returns [EntityRelationshipType!]!
| Argument | Type | Description |
|---|---|---|
ids | [String!]! | Numeric ids of the entity relationship types to read. |
entityRelationshipTypesByToken
Reads relationship types by token. Tokens naming no type are omitted. Requires device:read.
Returns [EntityRelationshipType!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the entity relationship types to read. |
entityRelationships
Lists the relationships that match the criteria, one page at a time. Requires device:read.
Returns EntityRelationshipSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | EntityRelationshipSearchCriteria! | The facets the listed entity relationships must match, and the page to return. |
entityRelationshipsById
Reads relationships by numeric id. Ids naming no relationship are omitted. Requires device:read.
Returns [EntityRelationship!]!
| Argument | Type | Description |
|---|---|---|
ids | [String!]! | Numeric ids of the entity relationships to read. |
entityRelationshipsByToken
Reads relationships by token. Tokens naming no relationship are omitted. Requires device:read.
Returns [EntityRelationship!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the entity relationships to read. |
existingEntityRefs
Returns the subset of the given references that resolve to an existing entity in the caller's tenant, so a caller can find the references whose entity has been deleted. The event-management reconciliation sweep uses it to find orphaned anchors. Requires device:read.
Returns [EntityRef!]!
| Argument | Type | Description |
|---|---|---|
refs | [EntityRefInput!]! | The (type, id) references to check. |
facetKeys
Lists the tenant's declared facet keys, optionally for one member family, one page at a time. Powers the console's browse and filter axis picker and typeahead. Requires device:read.
Returns FacetKeySearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | FacetKeySearchCriteria! | The facets the listed facet keys must match, and the page to return. |
facetValues
Lists the distinct values currently in use for a free-text classification field across the tenant's device types or profiles, sorted, without empty values. An authoring form can offer them as suggestions. More than 1000 distinct values are refused with LIMIT_EXCEEDED rather than listed in part. Requires device:read.
Returns [String!]!
| Argument | Type | Description |
|---|---|---|
facet | DeviceFacet! | The field whose values to list. |
fleetOperationReadiness
Preview. Report this build's bulk change capabilities and fresh database enforcement and tenant orphan facts. Requires fleet:operate; scoped members are refused. An expensive diagnostic (it counts rows): query it when you need the answer, do not poll it.
Deprecated. Use bulkChangeReadiness.
Returns FleetOperationReadiness!
geoFenceGeometry
The archived geometry documents stored under the given content addresses. An address the tenant does not hold is absent from the result rather than an error, so incompleteness is the caller's to interpret: a missing body must become a fence that reports an error, never one that is silently absent, since an absent fence reads as outside for a device that is inside. Asking for more addresses than the per-request limit is an error, not a partial answer. Requires device:read.
Returns [GeoFenceGeometry!]!
| Argument | Type | Description |
|---|---|---|
hashes | [String!]! | Content addresses of the geometry documents to fetch, taken from a manifest. More than the per-request limit is an error. |
geoFenceSetManifest
The manifest of one fence-set version: which fences it held and the content address of each one's geometry. It reads no geometry, so it costs the same per fence and needs no pagination. An unknown positive version is an error, for the reason given on geoFenceSetSnapshot, and a negative version is refused. Requires device:read.
Returns GeoFenceSetManifest!
| Argument | Type | Description |
|---|---|---|
version | Int! | The fence-set version to read the manifest of. |
geoFenceSetSnapshot
The frozen fence set of one version: the fences that were live when an event stamped with that version was resolved. Used to resolve a version a consumer no longer holds, such as a preview replaying last week, a late redelivery or a cold start. An unknown non-zero version is an error, because a stamp naming a version that is not on record means history was truncated and answering empty would read as no fences rather than cannot know. Requires device:read.
Returns GeoFenceSetSnapshot!
| Argument | Type | Description |
|---|---|---|
version | Int! | The fence-set version to read the frozen fence set of. |
geoFences
Lists the tenant's geofences, one page at a time. Requires device:read.
Returns GeoFenceSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | GeoFenceSearchCriteria! | The facets the listed geofences must match, and the page to return. |
geoFencesById
Reads geofences by numeric id. Ids naming no fence are omitted. Requires device:read.
Returns [GeoFence!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Numeric ids of the geofences to read. |
geoFencesByToken
Reads geofences by token. Tokens naming no fence are omitted. Requires device:read.
Returns [GeoFence!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the geofences to read. |
integration
Find one integration by token, or null when there is none.
Returns Integration
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the integration. |
integrationAuth
Service-only: callable with a service token that holds device:read, and refused for any user's access token. Proves a bearer token belongs to the integration with this token. Returns the integration when it does, and null for every failure: no such integration and a wrong token are indistinguishable. A switched-off integration whose token matches is returned with enabled false, so callers MUST check enabled before accepting traffic. Used by the ingest path to authenticate a sender.
Returns Integration
| Argument | Type | Description |
|---|---|---|
secret | String! | The bearer token the sender presented. |
token | String! | Token of the integration, as it appears in the sender's URL. |
integrationDecoder
Service-only: callable with a service token that holds device:read, and refused for any user's access token. What the ingest path needs to know about the payload decoder of a device type, as seen by one integration: whether the active published version of the type's profile declares one, which input an uplink must carry for it, and the figures the ingest charge is built from. Returns null for every failure to authenticate (no such integration, a wrong token and a switched-off integration are indistinguishable), and present: false for a device type that does not exist or lies outside the integration's scope.
Returns IntegrationDecoderPlan
| Argument | Type | Description |
|---|---|---|
deviceTypeToken | String! | Token of the device type the uplink's device belongs to. |
integration | String! | Token of the integration, as it appears in the sender's URL. |
secret | String! | The bearer token the sender presented. |
integrations
List integrations that meet the criteria.
Returns IntegrationSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | IntegrationSearchCriteria! | Paging and filters. |
maintenanceWindowOpening
When an operation under the maintenance window with this token may start at the given instant. The answer for a deleted window is found=false, not an error. Requires device:read.
Returns MaintenanceWindowOpening!
| Argument | Type | Description |
|---|---|---|
at | String | The instant to evaluate at, as an RFC 3339 timestamp. Omit it for now. |
token | String! | Token of the window. |
maintenanceWindows
List the tenant's maintenance windows, one page at a time. Requires device:read.
Returns MaintenanceWindowSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | MaintenanceWindowSearchCriteria! | Which page to return. |
maintenanceWindowsById
Find maintenance windows by unique id. Ids that match nothing are omitted. Requires device:read.
Returns [MaintenanceWindow!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Ids of the windows to find. |
maintenanceWindowsByToken
Find maintenance windows by unique token. Tokens that match nothing are omitted. Requires device:read.
Returns [MaintenanceWindow!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the windows to find. |
metricDefinitions
Searches the tenant's metric definitions, newest first, one page at a time. These are the draft definitions, not a published version. Requires device:read.
Returns MetricDefinitionSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | MetricDefinitionSearchCriteria! | Filters and the page to return. |
metricDefinitionsById
Returns the metric definitions with the given ids. Ids that match nothing are omitted, an id that is not a number fails the request, and more than 1000 ids are refused with LIMIT_EXCEEDED. Requires device:read.
Returns [MetricDefinition!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Ids of the metric definitions to return. |
metricDefinitionsByToken
Returns the metric definitions with the given tokens. Tokens that match nothing are omitted, and more than 1000 tokens are refused with LIMIT_EXCEEDED. Requires device:read.
Returns [MetricDefinition!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the metric definitions to return. |
payloadDecoderFunctions
The decoder function library, in a stable order: every function a decoder expression may call, with its signature and limits. It drives the editor's help. Requires device:read.
Returns [PayloadDecoderFunction!]!
payloadDecoderHealth
How the decoder of the profile has been doing over the last minutes (default 60, at most
10080, one week), summed over replicas. Rows are kept 7 days. Requires device:write.
Returns PayloadDecoderHealth!
| Argument | Type | Description |
|---|---|---|
minutes | Int | The span in minutes. |
profileToken | String! | Token of the profile. |
payloadDecoderSamples
The failing uplinks kept for the profile, newest first: at most 20 are kept, and a new one is kept at most every 10 seconds per replica. Requires device:write.
Returns [PayloadDecoderSample!]!
| Argument | Type | Description |
|---|---|---|
limit | Int | How many to list (default and at most 20 kept). |
profileToken | String! | Token of the profile. |
planBulkChange
Preview. What an operation would do, without writing anything. Needs device:write and fleet:operate.
Returns BulkChangePlan!
| Argument | Type | Description |
|---|---|---|
request | BulkChangeCreateRequest! | Preview. The bulk change to plan. Nothing is written. |
previewBulkChangeResume
Preview. What resuming a paused operation with this change would do, without writing anything. Needs device:write and fleet:operate.
Returns BulkChangeResumePreview!
| Argument | Type | Description |
|---|---|---|
safety | BulkChangeSafetyInput | Preview. New limits to preview; an omitted limit keeps its current value. |
token | String! | Preview. The paused bulk change's token. |
previewBulkChangeReversal
Preview. What reversing a bulk change would do, without writing anything. Needs device:write and fleet:operate.
Returns BulkChangeReversalPreview!
| Argument | Type | Description |
|---|---|---|
request | BulkChangeReversalRequest! | Preview. The reversal to preview. Nothing is written. |
previewSelector
Evaluates a candidate dynamic-group selector for a member family without saving it, for a live matches-N authoring preview. It applies the same checks, translation and bounded query as a saved dynamic group, so the preview is what the group would resolve. A selector that is not expressible, over budget or malformed returns valid false with an inline error rather than failing. Requires device:read.
Returns SelectorPreview!
| Argument | Type | Description |
|---|---|---|
memberType | String! | The entity family to evaluate the selector against: device, asset, area or customer. |
pagination | PaginationInput! | The page of matching members to return. |
selector | String! | The candidate CEL membership selector. It is evaluated but not saved. |
provisioningProfiles
Lists the provisioning profiles that match the criteria, one page at a time. Requires device:read. The provision secret is never returned.
Returns ProvisioningProfileSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | ProvisioningProfileSearchCriteria! | The facets the listed provisioning profiles must match, and the page to return. |
provisioningProfilesById
Reads provisioning profiles by numeric id. Ids naming no profile are omitted. Requires device:read. The provision secret is never returned.
Returns [ProvisioningProfile!]!
| Argument | Type | Description |
|---|---|---|
ids | [ID!]! | Numeric ids of the provisioning profiles to read. |
provisioningProfilesByToken
Reads provisioning profiles by token. Tokens naming no profile are omitted. Requires device:read. The provision secret is never returned.
Returns [ProvisioningProfile!]!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the provisioning profiles to read. |
resolveDeviceGroupTargets
Returns one page of the devices an entity group contains, for use as the target of a command. Pass each page's nextCursor as afterId to get the next one. A device that stays in the group throughout a walk is visited exactly once. A dynamic group is resolved from a published version, never from its editable draft. A group that cannot be a target is answered with rejected set and a code, not with an error. Requires device:read.
Returns DeviceGroupTargetPage!
| Argument | Type | Description |
|---|---|---|
afterId | String | The nextCursor of the previous page. Omit it to start from the beginning. A malformed cursor fails the request. |
groupToken | String! | Token of the entity group. |
limit | Int! | Maximum number of devices on the page, from 1 to 1000. |
version | Int | Published version of a dynamic group to resolve. Omit it for the active version. Must be omitted for a static group. |
semanticContext
The tenant's semantic context: the vocabulary packs it has enabled and the custom prefixes it declared. A tenant that never set one has an empty context, which enables nothing, so no binding is accepted. Requires device:read; a member limited to part of the tenant may read it. Null only on an error, which says why.
Returns SemanticContext
testMetricFormula
Checks a calculated-metric formula against a profile's draft measured metrics and evaluates it for a sample you type, with the same evaluator that computes a published calculated metric from each reading. Nothing is stored. A sample of more than 256 values is refused with LIMIT_EXCEEDED, and naming a key twice with INVALID_VALUE. Requires device:read.
Returns MetricFormulaTest!
| Argument | Type | Description |
|---|---|---|
constants | [MetricValueInput!] | The values of the device constants the formula reads as device.name, as the device's metadata would hold them, at most 32. A constant the formula reads and this omits is absent, and the formula is skipped as missing_input, as it would be for a device without it. Omit this when the formula reads none. |
dataType | String! | The result type: DOUBLE, INT or BOOLEAN. |
expression | String! | The formula. |
maxValue | Float | Largest value the metric accepts; a result above it is skipped. |
metricKey | String | The calculated metric's key, when the formula belongs to one. |
minValue | Float | Smallest value the metric accepts; a result below it is skipped. |
profileToken | String! | Token of the profile whose draft measured metrics the formula reads. |
sample | [MetricValueInput!]! | The input values, at most 256. |
testPayloadDecoder
Runs a payload decoder over one input and reports the readings it would store, what it skipped, the error with its expression path and the cost, then runs the profile's saved vectors. The decoder is checked against the profile's DRAFT metrics with the same compiler and the same output validation that run at ingest, and a webhook body is parsed by the same code as ingest. Nothing is stored. A document that does not compile is reported in error, not as a request error. Limited to 10 requests per second per tenant (RATE_LIMITED). Requires device:read, except that sampleId requires device:write. A caller limited to part of the tenant is refused.
Returns PayloadDecoderTestResult!
| Argument | Type | Description |
|---|---|---|
input | PayloadDecoderTestInput! | The decoder and the input. |
unregisteredIntegrationDevices
The sender-named devices an integration has seen that the tenant has no device in scope for, most recently seen first. Requires device:read.
Returns UnregisteredIntegrationDeviceSearchResults!
| Argument | Type | Description |
|---|---|---|
criteria | UnregisteredIntegrationDeviceSearchCriteria! | The integration and the page. |
validateCommandEnqueue
Checks whether a command may be sent to a device, using the active published version of the device's profile. If that version declares commands, the key must be one of them and the payload must satisfy its parameters; if it declares none, or the device has no published profile, any command is allowed. Refusals are returned as a verdict, not as an error. Requires device:read.
Returns CommandEnqueueVerdict!
| Argument | Type | Description |
|---|---|---|
commandKey | String! | Key of the command to send. |
deviceToken | String! | Token of the target device. |
payload | String | The command's arguments as a JSON object. Omit it or send null to check a command sent with no arguments, which passes only if no parameter is required. |
validateCommandEnqueueBatch
Checks one command against many devices at once, with the same rules as validateCommandEnqueue. Only refusals are returned: a device that may receive the command produces no entry, so an empty list means every listed device may receive it. Duplicate tokens are collapsed, and refusals come back in the order each device was first named. More than 2000 tokens fails the request. Requires device:read.
Returns [BatchEnqueueRefusal!]!
| Argument | Type | Description |
|---|---|---|
commandKey | String! | Key of the command to send. |
deviceTokens | [String!]! | Tokens of the target devices, at most 2000. |
payload | String | The command's arguments as a JSON object, applied to every device. Omit it to check a command with no arguments. |
Mutations
abortBulkChange · acknowledgeAlarm · acknowledgeAlarms · approveAgentProposal · approveAutomationReview · approveAutomationReviewPolicyChange · assignDeviceGateway · cancelAutomationReviewPolicyChange · cancelDeviceClaim · claimDevice · clearAlarm · clearAssetParent · clearDeviceGateway · clearDeviceProfileDecoder · clearInstalledPosition · clearUnregisteredIntegrationDevices · copyDeviceConfiguration · createAlarmSuppressionWindow · createArea · createAreaType · createAsset · createAssetType · createBulkChange · createCommandDefinition · createCustomer · createCustomerType · createDetectionRule · createDevice · createDeviceCredential · createDeviceProfile · createDeviceTrustAnchor · createDeviceType · createDevices · createEntityGroup · createEntityRelationship · createEntityRelationshipType · createEntityRelationships · createGeoFence · createIntegration · createMaintenanceWindow · createMetricDefinition · createProvisioningProfile · deleteAlarmSuppressionWindow · deleteArea · deleteAreaType · deleteAsset · deleteAssetType · deleteCommandDefinition · deleteCustomer · deleteCustomerType · deleteDetectionRule · deleteDevice · deleteDeviceCredential · deleteDeviceProfile · deleteDeviceRevocationList · deleteDeviceTrustAnchor · deleteDeviceType · deleteEntityAttribute · deleteEntityGroup · deleteEntityRelationshipType · deleteFacetKey · deleteGeoFence · deleteIntegration · deleteMaintenanceWindow · deleteMetricDefinition · deleteProvisioningProfile · endAlarmSuppressionWindow · importDevices · importFacetValues · initiateDeviceClaim · pauseBulkChange · proposeAlarmAction · publishAssetType · publishDeviceProfile · publishEntityGroup · putDeviceRevocationList · recordIntegrationAuthFailure · recordIntegrationUndecoded · rejectAgentProposal · rejectAutomationReview · removeEntityRelationship · removeEntityRelationships · renameDeviceProfile · replaceDevice · resetDeviceProvisioning · resolveAmbiguousBulkChangeLines · resolveIntegrationDevice · restoreDeviceConfiguration · resumeBulkChange · reverseBulkChange · revokeDeviceCertificate · revokeProvisionedDevices · rollbackAssetType · rollbackDeviceProfile · rollbackEntityGroup · rotateIntegrationToken · rotateProvisioningProfileSecret · runAutomationReview · setAlarmDisposition · setAssetParent · setAutomationReviewPolicy · setDeviceProfileConfigurationDeclaration · setDeviceProfileDecoder · setEntityAttribute · setEntityGroupAccessScope · setFacetKey · setInstalledPosition · setSemanticContext · startBulkChange · unrevokeDeviceCertificate · updateAlarmSuppressionWindow · updateArea · updateAreaType · updateAsset · updateAssetType · updateCommandDefinition · updateCustomer · updateCustomerType · updateDetectionRule · updateDevice · updateDeviceCredential · updateDeviceProfile · updateDeviceTrustAnchor · updateDeviceType · updateEntityGroup · updateEntityRelationshipType · updateGeoFence · updateIntegration · updateMaintenanceWindow · updateMetricDefinition · updateProvisioningProfile
abortBulkChange
Preview. Aborts a READY, RUNNING or PAUSED operation: lines not yet applied are cancelled and applied lines keep settling. Needs device:write only.
Returns BulkChange!
| Argument | Type | Description |
|---|---|---|
token | String! | Preview. The bulk change's token. |
acknowledgeAlarm
Acknowledges an alarm: an operator asserts the alarm has been seen. It does not change state or severity and is independent of ACTIVE or CLEARED. Idempotent: acknowledging an acknowledged alarm returns it unchanged. The acknowledging identity is the authenticated subject, recorded server-side. Refused when the token names no alarm. Requires alarm:write.
Returns Alarm!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the alarm to acknowledge. |
acknowledgeAlarms
Acknowledges many alarms at once, the bulk counterpart of acknowledgeAlarm with the same authority, transition and recorded identity. It is partial: a token naming no alarm is refused and listed in refusals, and every other alarm is still acknowledged. An empty list acknowledges nothing. At most 2000 tokens per request; more is an error rather than a per-alarm refusal. Duplicate tokens are collapsed. Requires alarm:write.
Returns BulkAcknowledgeAlarmsResult!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the alarms to acknowledge, at most 2000. An empty list acknowledges nothing. |
approveAgentProposal
(Preview: may change in a minor release.) A person approves an agent proposal. The digest must be the one shown for the proposal. The approver must be a person (never an agent), hold the write the action needs, be in an approver role of the agent policy, and have verified a second factor recently enough (STEP_UP_REQUIRED otherwise). The final approval carries out the action as that person, in one transaction after asking the policy again. If an alarm was raised again or policy now refuses, the proposal ends REFUSED and nothing is done. Earlier approvals are recorded. This preview is off by default and never automatic.
Returns AgentProposal!
| Argument | Type | Description |
|---|---|---|
digest | String! | (Preview: may change in a minor release.) The digest shown for the proposal. |
token | String! | (Preview: may change in a minor release.) The proposal's token. |
approveAutomationReview
(Preview: may change in a minor release.) Approve frozen evidence. Requires an unscoped person with device:write and event:read and a recent second factor; refuses the review creator and draft authors.
Returns AutomationReview
| Argument | Type | Description |
|---|---|---|
digest | String! | (Preview: may change in a minor release.) The reviewDigest the approver was shown. |
token | String! | (Preview: may change in a minor release.) The review token. |
approveAutomationReviewPolicyChange
(Preview: may change in a minor release.) Approve a pending policy change. Requires device:write, a second person's own unscoped session and a recently verified second factor; the proposer is refused.
Returns AutomationReviewPolicy
| Argument | Type | Description |
|---|---|---|
token | String! | (Preview: may change in a minor release.) The policy change token. |
assignDeviceGateway
Puts a device behind a gateway device, so that gateway's credential may publish the device's telemetry on the gateway's own topics, and returns the device. Assigning a device to the gateway it already has changes nothing; a device with another gateway is moved. Refused with INVALID_VALUE when the two are the same device, when the gateway is itself behind a gateway, or when the device is itself the gateway of other devices (gateways are one level deep). Fails if either token names no device. This grants the gateway the same standing over the device as issuing the device a credential, so it requires device:write and is refused for a member limited to part of the tenant.
Returns Device!
| Argument | Type | Description |
|---|---|---|
deviceToken | String! | Token of the device to put behind the gateway. |
gatewayToken | String! | Token of the gateway device. |
cancelAutomationReviewPolicyChange
(Preview: may change in a minor release.) Cancel a pending policy change. Requires device:write and a person's own unscoped session.
Returns AutomationReviewPolicy
| Argument | Type | Description |
|---|---|---|
token | String! | (Preview: may change in a minor release.) The policy change token. |
cancelDeviceClaim
Cancels a device's open claim without assigning the device. Returns true when an open claim was closed and false when there was none. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
deviceToken | String! | Token of the device whose open claim to cancel. |
claimDevice
Redeems a device's claim by presenting its secret, assigning the device to a customer over a relationship of the given type, and returns the created edge. The claim is consumed in the same transaction, so one secret can never produce two ownership edges. Refused when the claim is expired, not open, or the secret does not match. Requires device:write.
Returns EntityRelationship!
| Argument | Type | Description |
|---|---|---|
request | DeviceClaimRequest! | The device, claim secret and customer to assign it to. |
clearAlarm
Clears an alarm by hand, moving it to CLEARED. A manual override: the detection engine also clears an alarm when its conditions resolve. Idempotent on an alarm that is already CLEARED. It does not acknowledge the alarm. Refused when the token names no alarm. Requires alarm:write.
Returns Alarm!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the alarm to clear. |
clearAssetParent
Detaches an asset from its parent, making it a root; its children travel with it. Returns true when an edge was removed and false when the asset was already a root. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
childToken | String! | Token of the asset to detach from its parent. |
clearDeviceGateway
Takes a device out from behind its gateway and returns it: the gateway's next publish for the device is refused and recorded in failed events. Clearing a device that has no gateway changes nothing. Fails if no device has the token. Requires device:write.
Returns Device!
| Argument | Type | Description |
|---|---|---|
deviceToken | String! | Token of the device. |
clearDeviceProfileDecoder
Withdraws a profile's DRAFT payload decoder. Published versions keep theirs. Returns the updated profile. Requires device:write.
Returns DeviceProfile!
| Argument | Type | Description |
|---|---|---|
profileToken | String! | Token of the profile. |
clearInstalledPosition
Removes the installed position of a device or an asset. Needs device:write. Clearing an entity that has none succeeds.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
family | PositionFamily! | Whether token names a device or an asset. |
token | String! | The token of the device or asset. |
clearUnregisteredIntegrationDevices
Remove every unregistered device an integration has recorded, returning how many rows went. They are observations; ones the sender is still sending are recorded again. An unknown integration clears nothing.
Returns Int!
| Argument | Type | Description |
|---|---|---|
integration | String! | Token of the integration. |
copyDeviceConfiguration
Makes one device's desired configuration equal to another device's latest revision (or the revision fromRevision names), by setting the target's shared attributes for its declared keys and minting a new revision on the target; the source is not changed. Both devices must be in the caller's tenant (another tenant's device is NOT_FOUND), and the target's profile must declare every key the source's document carries. Refused, writing nothing, with the same codes as restoreDeviceConfiguration; a source with no revision, or without fromRevision, is NOT_FOUND. Requires device:write.
Returns DeviceConfiguration!
| Argument | Type | Description |
|---|---|---|
fromDeviceToken | String! | Token of the device whose configuration to copy. |
fromRevision | Int | The source revision to copy; omitted or null copies the source's latest. Pass the revision you previewed, so a source that changes in between cannot make the copy apply something you were not shown. |
toDeviceToken | String! | Token of the device to copy it to. |
createAlarmSuppressionWindow
Create a window. Requires alarm:write; broad reach additionally requires notification:write.
Returns AlarmSuppressionWindow!
| Argument | Type | Description |
|---|---|---|
request | AlarmSuppressionWindowCreateRequest! | Window declaration. |
createArea
Creates an area of an area type, optionally bounded by an existing geofence. Requires device:write.
Returns Area!
| Argument | Type | Description |
|---|---|---|
request | AreaCreateRequest | The area to create. |
createAreaType
Creates an area type. Requires device:write.
Returns AreaType!
| Argument | Type | Description |
|---|---|---|
request | AreaTypeCreateRequest | The area type to create. |
createAsset
Creates an asset of an asset type. Its property document, if any, is validated against the type's active published contract. Requires device:write.
Returns Asset!
| Argument | Type | Description |
|---|---|---|
request | AssetCreateRequest | The asset to create. |
createAssetType
Creates an asset type with a draft property contract, which is not binding until published. Requires device:write.
Returns AssetType!
| Argument | Type | Description |
|---|---|---|
request | AssetTypeCreateRequest | The asset type to create. |
createBulkChange
Preview. Creates a bulk change in READY. Creating again with the same token and the same request returns the original and writes nothing; a different request under the token is a CONFLICT. Needs device:write and fleet:operate.
Returns BulkChange!
| Argument | Type | Description |
|---|---|---|
request | BulkChangeCreateRequest! | Preview. The bulk change to create. |
createCommandDefinition
Adds a command definition to a profile's draft and returns it. It reaches devices when the profile is next published. Requires device:write.
Returns CommandDefinition!
| Argument | Type | Description |
|---|---|---|
request | CommandDefinitionCreateRequest | The new command definition's fields. Although the schema lets it be omitted, a call without it fails. |
createCustomer
Creates a customer of a customer type. A token that a deleted customer held is retired and is refused with INVALID_VALUE; a token a live customer holds is refused with CONFLICT. Requires device:write.
Returns Customer!
| Argument | Type | Description |
|---|---|---|
request | CustomerCreateRequest | The customer to create. |
createCustomerType
Creates a customer type. Requires device:write.
Returns CustomerType!
| Argument | Type | Description |
|---|---|---|
request | CustomerTypeCreateRequest | The customer type to create. |
createDetectionRule
Creates a detection rule on a device profile's draft. Requires device:write, plus the authority each action in the rule's definition needs. The profile must exist, the token must be new, and the profile's ceiling on rules applies. It takes effect on devices when a profile version containing it is published.
Returns DetectionRule!
| Argument | Type | Description |
|---|---|---|
request | DetectionRuleCreateRequest! | The detection rule to create. |
createDevice
Creates a device and returns it. Requires device:write.
Returns Device!
| Argument | Type | Description |
|---|---|---|
request | DeviceCreateRequest | The new device's fields. Although the schema lets it be omitted, a call without it fails. |
createDeviceCredential
Creates a credential for a device. For ACCESS_TOKEN the token is returned once, in this response, and only a keyed digest is stored. For MQTT_BASIC the password is write-only. For X509_CERTIFICATE the certificate chain is verified against the named trust anchor when created. Requires device:write.
Returns DeviceCredential!
| Argument | Type | Description |
|---|---|---|
request | DeviceCredentialCreateRequest | The device credential to create. |
createDeviceProfile
Creates a device profile, with no definitions and no published version, and returns it. Requires device:write.
Returns DeviceProfile!
| Argument | Type | Description |
|---|---|---|
request | DeviceProfileCreateRequest | The new profile's fields. Although the schema lets it be omitted, a call without it fails. |
createDeviceTrustAnchor
Create a trust anchor from a CA certificate. Refused when the tenant already holds 32.
Returns DeviceTrustAnchor!
| Argument | Type | Description |
|---|---|---|
request | DeviceTrustAnchorCreateRequest! | The anchor to create. |
createDeviceType
Creates a device type and returns it. Requires device:write.
Returns DeviceType!
| Argument | Type | Description |
|---|---|---|
request | DeviceTypeCreateRequest | The new device type's fields. Although the schema lets it be omitted, a call without it fails. |
createDevices
Creates up to 1000 devices of one type from templates, in one transaction: every device is created, or none is (an invalid template, a rendered token that repeats or is already in use, or an unknown device type fails them all). Returns the created devices in index order. Requires device:write.
Returns [Device!]!
| Argument | Type | Description |
|---|---|---|
request | DeviceBulkCreateRequest! | The type, count and templates of the devices to create. |
createEntityGroup
Creates an entity group. A static group's members are managed with relationships of the member type; a dynamic group carries a CEL selector, validated and cost-checked on create, and resolves its members when read. Requires device:write.
Returns EntityGroup!
| Argument | Type | Description |
|---|---|---|
request | EntityGroupCreateRequest | The entity group to create. |
createEntityRelationship
Creates a relationship edge between two existing entities. Requires device:write.
Returns EntityRelationship!
| Argument | Type | Description |
|---|---|---|
request | EntityRelationshipCreateRequest! | The entity relationship to create. |
createEntityRelationshipType
Creates a relationship type. Requires device:write.
Returns EntityRelationshipType!
| Argument | Type | Description |
|---|---|---|
request | EntityRelationshipTypeCreateRequest! | The entity relationship type to create. |
createEntityRelationships
Creates many relationship edges in one transaction, for bulk add-members and assign. The reserved member relationship type is created on first use. Requires device:write.
Returns [EntityRelationship!]!
| Argument | Type | Description |
|---|---|---|
requests | [EntityRelationshipCreateRequest!]! | The relationship edges to create, all in one transaction. |
createGeoFence
Creates a geofence and mints a new fence-set version. Requires device:write and location:read: whoever can shape a fence can narrow it until a containment rule's raise and resolve reveals a device's actual coordinates, so authoring is held to the same authority as reading positions. Reading fences needs only device:read.
Returns GeoFence!
| Argument | Type | Description |
|---|---|---|
request | GeoFenceCreateRequest! | The geofence to create. |
createIntegration
Create an inbound integration. The response carries the bearer token the server generated for it, once. Refused when the tenant already holds as many integrations as its tier allows.
Returns IntegrationSecretResult!
| Argument | Type | Description |
|---|---|---|
request | IntegrationCreateRequest! | The integration to create. |
createMaintenanceWindow
Create a maintenance window. The time zone and slots are validated together, and the slots are stored in canonical form. Requires device:write.
Returns MaintenanceWindow!
| Argument | Type | Description |
|---|---|---|
request | MaintenanceWindowCreateRequest! | The window to create. |
createMetricDefinition
Adds a metric definition to a profile's draft and returns it. It reaches devices when the profile is next published. Requires device:write.
Returns MetricDefinition!
| Argument | Type | Description |
|---|---|---|
request | MetricDefinitionCreateRequest | The new metric definition's fields. Although the schema lets it be omitted, a call without it fails. |
createProvisioningProfile
Creates a provisioning profile. The response carries the provision secret the server generated, once; it cannot be read again, so rotate it if it is lost. A certificate profile, made by naming a trust anchor, has no secret. Requires device:write.
Returns ProvisioningProfileSecretResult!
| Argument | Type | Description |
|---|---|---|
request | ProvisioningProfileCreateRequest | The provisioning profile to create. |
deleteAlarmSuppressionWindow
Delete a whole visible window without removing cycle history. Requires the authorities that creating it needed.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the window to delete. |
deleteArea
Deletes an area together with its relationship edges. Returns true when it was deleted and false when nothing has the token. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the area to delete. |
deleteAreaType
Deletes an area type. Refused while any area references it. Returns true when it was deleted and false when nothing has the token. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the area type to delete. |
deleteAsset
Deletes an asset together with its relationship edges. Returns true when it was deleted and false when nothing has the token. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the asset to delete. |
deleteAssetType
Deletes an asset type together with its published version history. Refused while any asset references the type. Returns true when it was deleted and false when nothing has the token. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the asset type to delete. |
deleteCommandDefinition
Removes a command definition from a profile's draft. Published versions keep their copy. Returns true when it was deleted and false when nothing has the token. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the command definition to delete. |
deleteCustomer
Deletes a customer together with its relationship edges. Its token is retired: no other customer in the tenant can be created with it. Returns true when it was deleted and false when nothing has the token. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the customer to delete. |
deleteCustomerType
Deletes a customer type. Refused while any customer references it. Returns true when it was deleted and false when nothing has the token. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the customer type to delete. |
deleteDetectionRule
Deletes a detection rule outright. A published profile version keeps the copy it froze. Returns true when it was deleted and false when nothing has the token. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the detection rule to delete. |
deleteDevice
Deletes a device together with its credentials, replacement history, relationships, attributes, alarms and group memberships. Returns true when it was deleted and false when no device has the token. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the device to delete. |
deleteDeviceCredential
Deletes a device credential outright; it stops authenticating at once. Returns true when it was deleted and false when nothing has the token. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the device credential to delete. |
deleteDeviceProfile
Deletes a device profile together with its metric, command and detection-rule definitions and all its published versions. Returns true when it was deleted and false when no profile has the token. Refused with REFERENCE_VIOLATION while any device type adopts it. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the profile to delete. |
deleteDeviceRevocationList
Delete the current list of an issuer and every entry it carried; those certificates are no longer refused for it. The issuer's highest CRL number is kept, so an older list still cannot be uploaded afterwards. True if there was a list. Under REQUIRE_CURRENT the anchor's certificates from that issuer are then refused until a new list is uploaded.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
anchorToken | String! | Token of the trust anchor. |
issuerKey | String! | SHA-256 of the signer's public key, hex. |
issuerName | String! | SHA-256 of the signer's subject, hex. |
deleteDeviceTrustAnchor
Delete a trust anchor nothing relies on. Refused with extensions.code REFERENCE_VIOLATION while a credential or a provisioning profile still names it, and while it holds manual revocations (un-revoke them first). Revocation lists uploaded for it, their entries and the highest CRL number accepted for each issuer are discarded with it: an anchor re-created from the same CA starts again, and accepts a CRL whose number the deleted anchor had already passed.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the anchor. |
deleteDeviceType
Deletes a device type. Returns true when it was deleted and false when no device type has the token. Refused with REFERENCE_VIOLATION while any device has this type. The profile it adopted is not affected. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the device type to delete. |
deleteEntityAttribute
Deletes one entity attribute, identified by its entity, scope and key. Removing a SHARED attribute can take an entity out of a group whose selector reads it. Returns true when an attribute was deleted and false when there was none. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
attrKey | String! | Key of the attribute to delete. |
entity | String! | Token of the entity the attribute belongs to. |
entityType | String! | Entity type the attribute belongs to, for example device. |
scope | String! | Scope of the attribute: SHARED, SERVER or CLIENT. |
deleteEntityGroup
Deletes an entity group together with its member relationships and its frozen versions. Refused while a detection rule scopes to the group. Returns true when it was deleted and false when nothing has the token. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the entity group to delete. |
deleteEntityRelationshipType
Deletes a relationship type. Refused while any relationship uses it. Returns true when it was deleted and false when nothing has the token. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the entity relationship type to delete. |
deleteFacetKey
Deletes a facet key declaration by its natural key; the attribute values on the entities are untouched. A system facet cannot be deleted and its removal is refused. Returns true when a declaration was removed. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
key | String! | The facet key to delete. |
memberType | String! | The member family the key is declared for: device, asset, area or customer. |
deleteGeoFence
Deletes a geofence outright and mints a new fence-set version, after which its token can be reused. Refused while an area names the fence as its boundary. Returns true when it was deleted and false when nothing has the token. Requires device:write only.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the geofence to delete. |
deleteIntegration
Delete an integration. Returns false when there was none.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the integration. |
deleteMaintenanceWindow
Delete a maintenance window. Refused while any device type uses it, because deleting it would stop holding those types' disruptive commands. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the window to delete. |
deleteMetricDefinition
Removes a metric definition from a profile's draft. Published versions keep their copy. Returns true when it was deleted and false when nothing has the token. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the metric definition to delete. |
deleteProvisioningProfile
Deletes a provisioning profile outright. Refused while any credential it issued still exists, revoked and expired ones included; remove them by resetting the devices' provisioning or deleting the devices. Devices earmarked for the profile fall back to no earmark. Returns true when it was deleted and false when nothing has the token. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the provisioning profile to delete. |
endAlarmSuppressionWindow
End a whole visible window now, recording the caller's subject. Requires alarm:write and visibility of the window.
Returns AlarmSuppressionWindow!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the window to end. |
importDevices
Imports up to 1000 devices from rows, each in its own transaction, and reports what happened to every row; one bad row never affects another. Create-only and idempotent on the device token: a row whose device already exists exactly as described is EXISTS, one that exists differently is CONFLICT, and nothing is ever updated, so re-running a file is safe. A device's credential is created with it in the same transaction in FACTORY_CREDENTIALS mode; the same device and credential id re-run as EXISTS without the secret being compared. dryRun decides every row by the same code and writes nothing. More than 1000 rows fails the whole call. Requires device:write.
Returns DeviceImportResult!
| Argument | Type | Description |
|---|---|---|
dryRun | Boolean! | True to decide every row without writing anything. |
mode | DeviceImportMode! | How credentials are treated. |
rows | [DeviceImportRow!]! | The rows to import, at most 1000. |
importFacetValues
Import 1-1000 facet values with one result per row in input order. Requires device:write, like setEntityAttribute. Each changed row commits independently with membership and configuration reconciliation; failures report REFUSED. Re-running identical normalized values reports EXISTS without another write. Different values replace the existing SHARED value. Later duplicate (memberType, token, key) rows in this call are INVALID. Does not create entities.
Returns [FacetValueImportRowResult!]!
| Argument | Type | Description |
|---|---|---|
dryRun | Boolean! | Validate and predict outcomes without writing; concurrent changes or write failures may change actual outcomes. |
rows | [FacetValueImportRow!]! | Values on existing entities, addressed by token. |
initiateDeviceClaim
Opens, or reopens, a possession claim on a device with a secret that an eventual owner will present. A device has a single claim; reopening a claimed or canceled one clears its earlier redemption. The secret is stored only as a keyed digest. Requires device:write.
Returns DeviceClaim!
| Argument | Type | Description |
|---|---|---|
request | DeviceClaimInitiateRequest! | The device and the secret an eventual owner must present. |
pauseBulkChange
Preview. Pauses a RUNNING operation. When it returns, no line is applied under the old state. A wait that times out is FENCE_PENDING and changes nothing. Needs device:write only, so someone who has lost fleet:operate can still stop it.
Returns BulkChange!
| Argument | Type | Description |
|---|---|---|
token | String! | Preview. The RUNNING bulk change's token. |
proposeAlarmAction
(Preview: may change in a minor release.) An AI agent asks for alarms to be acknowledged or cleared. Only an agent's token holding alarm:propose may call it; a person's own session is refused with AGENT_ONLY and acts through acknowledgeAlarm and clearAlarm instead. The tenant's agent policy decides, and a request it allows waits for people to approve it. In this preview, off by default, the final approval carries out the action as the approving person in one transaction after asking the policy again. If an alarm was raised again or policy now refuses, it ends REFUSED without effects. Execution is never automatic. A member limited to part of the tenant is refused.
Returns AgentProposalOutcome!
| Argument | Type | Description |
|---|---|---|
input | AgentAlarmProposalInput! | (Preview: may change in a minor release.) The request. |
publishAssetType
Freezes an asset type's draft property contract into a new immutable version and makes it the version its assets are validated against. Refused when the type has no draft contract to freeze; a draft that is an empty array publishes, and says that assets of the type carry nothing. label and description annotate the version. Requires device:write.
Returns AssetTypeVersion!
| Argument | Type | Description |
|---|---|---|
description | String | Optional longer description of what the new version changes. |
label | String | Optional label for the new version. It may embed a semantic version string, which is not parsed. |
token | String! | Token of the asset type to publish. |
publishDeviceProfile
Freezes the profile's current draft (its metric, command and detection-rule definitions, its position declaration and its configuration declaration) into a new version and makes that version the one devices use. The draft's enabled detection rules are checked first; a rejected rule, or a check that cannot be completed, fails the publish and nothing is stored. Fails if no profile has the token. Returns the new version. Requires device:write. On a protected profile the approved review must still match the draft, the active version, the policy and its approvers' standing.
Returns DeviceProfileVersion!
| Argument | Type | Description |
|---|---|---|
automationReviewToken | String | (Preview: may change in a minor release.) The approved automation review this publish consumes. Required when the profile is protected by an automation review policy, where a publish without one is refused with REVIEW_REQUIRED; ignored otherwise. |
description | String | Optional notes for the version, up to 1024 characters. |
label | String | Optional label for the version, up to 128 characters, such as a release name. |
token | String! | Token of the profile to publish. |
publishEntityGroup
Publishes a dynamic entity group's current draft selector as a new immutable version and makes it the active version a rule-scoped resolve reads. Rejected for a static group. Requires device:write.
Returns EntityGroupVersion!
| Argument | Type | Description |
|---|---|---|
description | String | Optional longer description of what the new version changes. |
expectedActiveVersion | Int | The active version the caller saw: 0 for a group never published. When the group's active version has since moved, because someone else published or rolled back, nothing is published and the request fails as modified by another writer. Omit to publish unconditionally. |
label | String | Optional short label for the new version. |
token | String! | Token of the group to publish. |
putDeviceRevocationList
Store a CRL as the current list of its issuer under a trust anchor, replacing the issuer's previous list. Its signature is verified against the anchor (or the issuer chain that links the signer to it) and it is refused unless its CRL number is above every number accepted before for that issuer, including after the list was deleted. The certificates it names are refused from the next connect on every replica. Uploading the very CRL already in force changes nothing. The text is limited (the instance's callout.revocation.maxGraphqlCrlBytes, 2 MiB of DER at most); larger lists go over the streaming REST upload, PUT /trust-anchors/{token}/crl on this service. The live sessions of the devices the list newly revokes are ended; sessionsEnded on the result says whether that was confirmed.
Returns DeviceRevocationListResult!
| Argument | Type | Description |
|---|---|---|
anchorToken | String! | Token of the trust anchor. |
crlPem | String! | The CRL, PEM (exactly one X509 CRL block). |
issuerChainPem | String | The CRL signer's certificate first, then the CAs that link it to the anchor, PEM. Omit it when the anchor itself signed the CRL. |
recordIntegrationAuthFailure
Service-only: callable with a service token that holds device:read, and refused for any user's access token. Stamps the time a request for the integration last failed authentication, at most once a minute. A token that names no integration is not an error and writes nothing.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
integration | String! | Token of the integration, as it appears in the sender's URL. |
recordIntegrationUndecoded
Service-only: callable with a service token that holds device:read, and refused for any user's access token. Adds count uplinks to the integration's undecoded tally and keeps the latest frame sample (hex, at most 1024 characters). It authenticates the integration with its bearer token, so a service token alone cannot write another sender's markers; a wrong token or a switched-off integration is refused and nothing is written. The ingest path batches these.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
count | Int! | How many uplinks to add; at least 1. |
integration | String! | Token of the integration, as it appears in the sender's URL. |
sample | String | Hex encoding of the latest frame, if the uplink carried one. |
secret | String! | The bearer token the sender presented. |
rejectAgentProposal
(Preview: may change in a minor release.) A person rejects an agent proposal that is still waiting. Needs the write the action needs; an agent is refused.
Returns AgentProposal!
| Argument | Type | Description |
|---|---|---|
note | String | (Preview: may change in a minor release.) Why, at most 512 bytes. |
token | String! | (Preview: may change in a minor release.) The proposal's token. |
rejectAutomationReview
(Preview: may change in a minor release.) Reject a review. Requires an unscoped person with device:write and event:read.
Returns AutomationReview
| Argument | Type | Description |
|---|---|---|
note | String | (Preview: may change in a minor release.) An optional decision note. |
token | String! | (Preview: may change in a minor release.) The review token. |
removeEntityRelationship
Removes a single relationship edge: the explicit unassign. Returns true when it was removed and false when nothing has the token. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the relationship edge to remove. |
removeEntityRelationships
Removes many relationship edges by token, for bulk remove-members and unassign. Requires device:write.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
tokens | [String!]! | Tokens of the relationship edges to remove. |
renameDeviceProfile
Changes a device profile's token and returns the profile. Allowed only while the profile has never been published and no device type currently adopts it; once it has been published, its token is permanent. Renaming to the current token succeeds without change. Fails if no profile has the token. Requires device:write.
Returns DeviceProfile!
| Argument | Type | Description |
|---|---|---|
newToken | String! | The new token, in the usual token format. A blank value is refused, and a token another profile in the tenant holds is refused with CONFLICT. |
token | String! | Current token of the profile. |
replaceDevice
Binds a new physical unit to an existing logical device identity: it retires every credential the outgoing unit could authenticate with, mints one for the incoming unit and writes an append- only replacement record, all in one transaction. The device's history, alarms, relationships, group membership and command vocabulary carry forward because none of them are touched. The new credential's secret material is readable only in this response. Requires device:write.
Returns DeviceReplaceResult!
| Argument | Type | Description |
|---|---|---|
request | DeviceReplaceRequest! | The surviving device and the credential for the incoming unit. |
resetDeviceProvisioning
Delete the credentials self-registration issued to the device and end its sessions. Returns how many it removed. The device keeps its earmark, so it can register again; this is the way back from a revoke.
Returns Int!
| Argument | Type | Description |
|---|---|---|
deviceToken | String! | Token of the device. |
resolveAmbiguousBulkChangeLines
Preview. Resolves ambiguous lines as confirmed or failed. Other lines are unchanged. Needs device:write and fleet:operate, a person's access token, a second factor verified within five minutes, and a note of 1 to 1000 characters. Refused with SECOND_FACTOR_REQUIRED, STEP_UP_REQUIRED or NOTE_REQUIRED otherwise.
Returns BulkChange!
| Argument | Type | Description |
|---|---|---|
request | BulkChangeAmbiguityResolution! | Preview. The lines to resolve, the verdict and the note. |
resolveIntegrationDevice
Service-only: callable with a service token that holds device:read, and refused for any user's access token. The ingest path's one call for turning a sender's identifier into a device: it authenticates the integration with its bearer token, finds the device the alias names, checks that device's type is in the integration's scope, and, when no device in scope carries the alias, records the sighting (see unregisteredIntegrationDevices). Every outcome a sender can cause is an answer, not an error; a scheme other than the one the integration resolves by, or a value the scheme refuses, is refused with INVALID_VALUE. A switched-off integration is reported as DISABLED and is not a failed credential.
Returns IntegrationDeviceResolution!
| Argument | Type | Description |
|---|---|---|
integration | String! | Token of the integration, as it appears in the sender's URL. |
scheme | String! | The alias scheme; it must be the one the integration's identity names. |
secret | String! | The bearer token the sender presented. |
value | String! | The sender's identifier for the device. |
restoreDeviceConfiguration
Makes a device's desired configuration equal to the content of one of its own earlier revisions. The device's shared attributes for its declared keys are set to that revision's values (declared keys the revision does not carry are removed) and a NEW revision is minted and delivered; earlier revisions are never changed. Nothing is minted when the device already holds that content. The whole call is refused, writing nothing, with CONFIGURATION_KEY_UNDECLARED when the device's current profile version no longer declares a key the revision carries, CONFIGURATION_VALUE_TYPE_MISMATCH when a value cannot be carried as the type now declared, CONFIGURATION_TOO_LARGE over the document size limit, and CONFIGURATION_CONFLICT when another write to the device's configuration committed while this one ran (retrying is safe). An unknown device or revision is NOT_FOUND. Requires device:write.
Returns DeviceConfiguration!
| Argument | Type | Description |
|---|---|---|
deviceToken | String! | Token of the device to restore. |
revision | Int! | The revision number whose content to restore. |
resumeBulkChange
Preview. Resumes a PAUSED operation on the caller's behalf. The digest must be the current contract's. A change to the limits is applied only if it stays within the approved contract (CONTRACT_WIDENED otherwise); a limit that is still reached is THRESHOLD_STILL_EXCEEDED. Needs device:write and fleet:operate.
Returns BulkChange!
| Argument | Type | Description |
|---|---|---|
contractDigest | String! | Preview. The current contract's digest. |
safety | BulkChangeSafetyInput | Preview. New limits, within the approved contract; an omitted limit keeps its current value. |
token | String! | Preview. The PAUSED bulk change's token. |
reverseBulkChange
Preview. Creates, in READY, a bulk change that reverses a DISPATCHED or ABORTED one: each selected line puts back the value its device held before the original. It is started like any other. Refused with ORIGINAL_STILL_DISPATCHING while the original can still apply lines, REVERSAL_NOT_REVERSIBLE for a reversal, EVIDENCE_EXPIRED once the original's lines are past retention, and NOTHING_TO_REVERSE when no selected line can be reversed. When applied, a line whose value changed after the original is refused with CHANGED_SINCE unless it is overridden; an override needs a second factor verified within five minutes (STEP_UP_REQUIRED, SECOND_FACTOR_REQUIRED). Creating again with the same token and the same request returns the first reversal. Needs device:write and fleet:operate.
Returns BulkChange!
| Argument | Type | Description |
|---|---|---|
request | BulkChangeReversalRequest! | Preview. The reversal to create. |
revokeDeviceCertificate
Revoke a certificate under a trust anchor, on the platform's own authority: the certificate is refused from the next connect on every replica, whether or not it is registered, and deleting its credential or its device does not let it register again. It applies to any certificate on a verified path, a leaf or an intermediate. Name it with exactly one of certificatePem and fingerprintSha256. Revoking one already revoked returns the existing entry. The anchor's own certificate is refused (disable the anchor instead). The live broker sessions of the devices the certificate affects are ended: those whose credential is this leaf, or every device under the anchor when the certificate is a CA that a registered credential's chain was seen to use. The result's sessionsEnded says whether that was confirmed.
Returns DeviceRevokedCertificate!
| Argument | Type | Description |
|---|---|---|
anchorToken | String! | Token of the trust anchor. |
certificatePem | String | The certificate, PEM. Exactly one of this and fingerprintSha256. |
fingerprintSha256 | String | SHA-256 of the certificate, hex. Exactly one of this and certificatePem. |
reason | CertificateRevocationReason | Defaults to UNSPECIFIED. |
revokeProvisionedDevices
Disable every credential the profile issued, and end those devices' live sessions. Returns how many credentials it disabled. The profile still accepts new registrations; pair it with rotateProvisioningProfileSecret after a leak. A revoked device stays refused until resetDeviceProvisioning.
Returns Int!
| Argument | Type | Description |
|---|---|---|
profileToken | String! | Token of the profile. |
rollbackAssetType
Re-points an asset type's active version at an earlier published one and returns the type. The draft is untouched and nothing is deleted, so the type can be rolled forward again. Assets already stored are not rechecked or rewritten; the contract applies when a property document is next written. Requires device:write.
Returns AssetType!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the asset type to roll back. |
version | Int! | The published version to make active again. |
rollbackDeviceProfile
Makes an existing published version the one devices use again. The draft and the version history are untouched, so a later version can be made active the same way. Fails if the profile or the version does not exist, and is refused with LIMIT_EXCEEDED when the version carries more calculated metrics than the tenant's tier allows (a version without any is never refused for this). Returns the updated profile. Requires device:write.
Returns DeviceProfile!
| Argument | Type | Description |
|---|---|---|
breakGlassReason | String | (Preview: may change in a minor release.) Why the active version of a protected profile is being changed outside review. Required (with a second factor verified recently) on a protected profile, where it is recorded with the person; ignored otherwise. |
token | String! | Token of the profile. |
version | Int! | Number of the published version to make active. |
rollbackEntityGroup
Points a dynamic group's active version back at an existing version and returns the group. Non- destructive: no version is removed and the draft selector is untouched. Requires device:write.
Returns EntityGroup!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the dynamic group to roll back. |
version | Int! | The published version to make active again. |
rotateIntegrationToken
Replace an integration's bearer token with a new one, returned once. The old token stops working at once and there is no overlap.
Returns IntegrationSecretResult!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the integration. |
rotateProvisioningProfileSecret
Replace a profile's provision secret with a new one, returned once. The old secret stops working at once and there is no overlap (overlap is a second profile with its own key). Devices already registered are unaffected. This is also what brings a profile created before the server generated secrets into service.
Returns ProvisioningProfileSecretResult!
| Argument | Type | Description |
|---|---|---|
token | String! | Token of the profile. |
runAutomationReview
(Preview: may change in a minor release.) Compare a profile draft with its published baseline. Requires an unscoped person with device:write and event:read.
Returns AutomationReview
| Argument | Type | Description |
|---|---|---|
input | RunAutomationReviewInput! | (Preview: may change in a minor release.) The draft, devices, windows and expectations to review. |
setAlarmDisposition
Labels the CURRENT cycle of an alarm with an operator's verdict (see AlarmDisposition) and returns the alarm. Only the current cycle can be labelled: once the alarm is raised again, the earlier cycle's disposition can be read but no longer written. Labelling changes nothing else about the alarm and emits no alarm event; labelling a cleared alarm is the ordinary case. Labelling a cycle again replaces its disposition. The labelling identity is the authenticated subject, recorded server-side. An alarm deleted while the label is being written answers NOT_FOUND, as an unknown token does.
Requires alarm:write. A member whose access is limited to some customers cannot label (FORBIDDEN): labels are ground truth for the tenant's rules.
Returns Alarm!
| Argument | Type | Description |
|---|---|---|
label | AlarmDispositionLabel! | The verdict. A value that is not an AlarmDispositionLabel is refused when the request is validated. |
note | String | Why, at most 1000 characters. Empty or omitted is no note. |
raisedTime | String | The cycle being labelled, as the alarm's raisedTime was served. When given, the label is refused if the alarm has been raised again since ("alarm was modified by another writer; reload and try again"), so a verdict on one cycle never lands on the next. Omitted labels the alarm's current cycle. |
token | String! | The alarm, by its token. |
setAssetParent
Places an asset under a parent, replacing whatever parent it had, and returns the relationship edge. Refused when it would make an asset its own ancestor, give it a second parent, or push the tree past its depth limit of 64. The asset's own children travel with it. Requires device:write.
Returns EntityRelationship!
| Argument | Type | Description |
|---|---|---|
childToken | String! | Token of the asset to place under the parent. |
parentToken | String! | Token of the asset to become its parent. |
setAutomationReviewPolicy
(Preview: may change in a minor release.) Set automation protection. Protecting requires every enabled rule of the active version to read only recorded telemetry: no device attributes, no calculated metric reading device constants, no group scope, no relationship anchors (anchors[...], anchorType) and no geofence position (geo / inFence). Tightening applies at once. Loosening (removing protection, fewer approvals, allowing self-approval, a longer approval lifetime or step-up age) waits for a second person's approval, or for 24 hours when self-approval is allowed. Requires device:write and a person's own unscoped session.
Returns SetAutomationReviewPolicyResult
| Argument | Type | Description |
|---|---|---|
profileToken | String! | (Preview: may change in a minor release.) The profile token. |
settings | AutomationReviewPolicyInput! | (Preview: may change in a minor release.) The protection settings to request. |
setDeviceProfileConfigurationDeclaration
Replaces a profile's draft device-visible configuration declaration with the given keys; an empty list withdraws it. At most 256 keys; each key must follow the attribute-key grammar, be unique, and carry a valid value type. The whole call is refused if any key is invalid. Published versions are immutable: this changes only what the next publish freezes. Returns the updated profile. Requires device:write.
Returns DeviceProfile!
| Argument | Type | Description |
|---|---|---|
keys | [ConfigurationKeyInput!]! | The complete new declaration, replacing the current one. |
token | String! | Token of the profile. |
setDeviceProfileDecoder
Saves a profile's DRAFT payload decoder, replacing any earlier one. The document is parsed
strictly (an unknown key is refused) and compiled in full against the profile's draft
metrics: every scalar output key must be a declared, measured metric of the profile (a
calculated metric cannot be one, and lorawan. keys are reserved for link metrics), a key
may be written once per section, and every expression must type-check and fit its cost
ceiling. The refusal is INVALID_DECODER and names the failing expression. A WASM document
is refused with UNSUPPORTED_DECODER_KIND. Saved vectors need not pass here; they gate the
publish. Published versions keep their decoder: this changes only what the next publish
freezes. Returns the updated profile. Requires device:write.
Returns DeviceProfile!
| Argument | Type | Description |
|---|---|---|
document | String! | The decoder document as JSON text, at most 32 KiB. |
profileToken | String! | Token of the profile. |
setEntityAttribute
Sets an entity attribute, replacing the value when the same entity, scope and key already has one. Requires device:write.
Returns EntityAttribute!
| Argument | Type | Description |
|---|---|---|
request | EntityAttributeSetRequest! | The attribute to set. |
setEntityGroupAccessScope
Make a group an access scope, or stop it being one, and return the group. A member whose access is limited to the group sees the devices in it at its active version, so publishing or rolling the group back changes what they see, and a device whose attributes move it into or out of the group appears or disappears for them without anyone editing the member. Records written about a device while it is in the group (events, alarms, commands, update assignments) stay visible to them afterwards. Only a published dynamic group of devices can be one (INVALID_VALUE otherwise), and a tenant may have at most 32 (LIMIT_EXCEEDED). Setting what is already set changes nothing. A deleted group's token is never reused, so a member limited to it is never handed a new group's devices. Requires device:write.
Returns EntityGroup!
| Argument | Type | Description |
|---|---|---|
enabled | Boolean! | True to make it an access scope, false to stop it being one. |
token | String! | Token of the group. |
setFacetKey
Declares a facet key by its natural key, memberType and key, creating it or rewriting the existing declaration. Requires device:write.
Returns FacetKey!
| Argument | Type | Description |
|---|---|---|
request | FacetKeySetRequest | The facet key declaration to upsert. |
setInstalledPosition
Records where a device or an asset was installed. Needs device:write. The position is refused, before anything is stored, when it is not a finite WGS84 coordinate. An entity outside the caller's scope is NOT_FOUND.
Returns InstalledPosition!
| Argument | Type | Description |
|---|---|---|
family | PositionFamily! | Whether token names a device or an asset. |
position | InstalledPositionInput! | The position to record. |
token | String! | The token of the device or asset. |
setSemanticContext
Replaces the tenant's semantic context and returns it. Enabling a pack or declaring a custom prefix makes its terms bindable; a pack this build does not ship, a custom prefix that shadows a pack's, or overlapping namespaces fail with INVALID_ARGUMENT. A context that would leave any stored binding unexplained (it stops enabling a pack, or declaring a custom namespace, that a binding uses) is refused with SEMANTIC_CONTEXT_IN_USE and extensions.references, the number of such bindings; keep the vocabulary or unbind them first. Two first sets for one tenant at once: the loser fails with CONFLICT, and may read the context and retry. Requires device:write, and a member limited to part of the tenant is refused. Null only on an error, which says why.
Returns SemanticContext
| Argument | Type | Description |
|---|---|---|
request | SemanticContextRequest! | The context to store. It replaces the stored one whole. |
startBulkChange
Preview. Starts a READY operation. The caller presents the contract digest they reviewed; a different one is CONTRACT_DIGEST_MISMATCH. The caller approves the contract and the operation runs on their behalf. Refused with BULK_CHANGES_NOT_ACTIVATED when the database does not enforce the device attribute writer protocol. Needs device:write and fleet:operate.
Returns BulkChange!
| Argument | Type | Description |
|---|---|---|
contractDigest | String! | Preview. The contract digest the caller reviewed. |
token | String! | Preview. The READY bulk change's token. |
unrevokeDeviceCertificate
Remove a manual revocation. True if there was one. The certificate is admitted again from the next connect unless something else refuses it; nothing is kicked, and the device reconnects on its own.
Returns Boolean!
| Argument | Type | Description |
|---|---|---|
anchorToken | String! | Token of the trust anchor. |
fingerprintSha256 | String! | SHA-256 of the certificate, hex. |
updateAlarmSuppressionWindow
Edit a whole visible window, authorizing both existing and resulting reach.
Returns AlarmSuppressionWindow!
| Argument | Type | Description |
|---|---|---|
request | AlarmSuppressionWindowUpdateRequest! | Partial edit with omitted, null and value states. |
token | String! | Token of the window to edit. |
updateArea
Applies a partial update to an area, identified by token. Pass expectedUpdatedAt to refuse the write if the area changed since it was read. Requires device:write.
Returns Area!
| Argument | Type | Description |
|---|---|---|
expectedUpdatedAt | String | Apply only if updatedAt still equals this value; returns STALE_WRITE if the record changed. Reload before retrying. Omit for last-write-wins. |
request | AreaUpdateRequest! | The fields to change. |
token | String! | Token of the area to update. |
updateAreaType
Applies a partial update to an area type, identified by token. Requires device:write.
Returns AreaType!
| Argument | Type | Description |
|---|---|---|
request | AreaTypeUpdateRequest! | The fields to change. |
token | String! | Token of the area type to update. |
updateAsset
Applies a partial update to an asset, identified by token. Pass expectedUpdatedAt to refuse the write if the asset changed since it was read. Requires device:write.
Returns Asset!
| Argument | Type | Description |
|---|---|---|
expectedUpdatedAt | String | Apply only if updatedAt still equals this value; returns STALE_WRITE if the record changed. Reload before retrying. Omit for last-write-wins. |
request | AssetUpdateRequest! | The fields to change. |
token | String! | Token of the asset to update. |
updateAssetType
Applies a partial update to an asset type, identified by token. Editing the draft property contract changes nothing assets are validated against until the type is published. Requires device:write.
Returns AssetType!
| Argument | Type | Description |
|---|---|---|
request | AssetTypeUpdateRequest! | The fields to change. |
token | String! | Token of the asset type to update. |
updateCommandDefinition
Partially updates a draft command definition and returns it. Fails if no command definition has the token. Requires device:write.
Returns CommandDefinition!
| Argument | Type | Description |
|---|---|---|
request | CommandDefinitionUpdateRequest! | The fields to change. |
token | String! | Token of the command definition to update. |
updateCustomer
Applies a partial update to a customer, identified by token. Pass expectedUpdatedAt to refuse the write if the customer changed since it was read. Requires device:write.
Returns Customer!
| Argument | Type | Description |
|---|---|---|
expectedUpdatedAt | String | Apply only if updatedAt still equals this value; returns STALE_WRITE if the record changed. Reload before retrying. Omit for last-write-wins. |
request | CustomerUpdateRequest! | The fields to change. |
token | String! | Token of the customer to update. |
updateCustomerType
Applies a partial update to a customer type, identified by token. Pass expectedUpdatedAt to refuse the write if the type changed since it was read. Requires device:write.
Returns CustomerType!
| Argument | Type | Description |
|---|---|---|
expectedUpdatedAt | String | Apply only if updatedAt still equals this value; reload after a stale-write error. Omit for last-write-wins. |
request | CustomerTypeUpdateRequest! | The fields to change. |
token | String! | Token of the customer type to update. |
updateDetectionRule
Applies a partial update to a detection rule, identified by token. Omitted fields are kept, null clears a clearable field, and the required fields (deviceProfileToken, definition, enabled) refuse null. Requires device:write, plus the authority each action in the rule's definition needs.
Returns DetectionRule!
| Argument | Type | Description |
|---|---|---|
request | DetectionRuleUpdateRequest! | The fields to change. |
token | String! | Token of the detection rule to update. |
updateDevice
Partially updates a device and returns it. Fails if no device has the token. Requires device:write.
Returns Device!
| Argument | Type | Description |
|---|---|---|
breakGlassReason | String | (Preview: may change in a minor release.) Why the device is being moved outside review. Required (with a second factor verified recently) on moving a device out of a type bound to a protected profile, where it is recorded with the person; ignored otherwise. |
request | DeviceUpdateRequest! | The fields to change. |
token | String! | Token of the device to update. |
updateDeviceCredential
Applies a partial update to a device credential, identified by token. Setting credentialId on an ACCESS_TOKEN credential rotates the token: the old one stops working at once and the new one is returned once, in this response. Omitting credentialValue leaves the stored secret in place. Requires device:write.
Returns DeviceCredential!
| Argument | Type | Description |
|---|---|---|
request | DeviceCredentialUpdateRequest! | The fields to change. |
token | String! | Token of the device credential to update. |
updateDeviceProfile
Partially updates a device profile's draft and returns it. Fails if no profile has the token. Requires device:write.
Returns DeviceProfile!
| Argument | Type | Description |
|---|---|---|
request | DeviceProfileUpdateRequest! | The fields to change. |
token | String! | Token of the profile to update. |
updateDeviceTrustAnchor
Update a trust anchor. Disabling one ends the live sessions of the devices that rely on it.
Returns DeviceTrustAnchor!
| Argument | Type | Description |
|---|---|---|
request | DeviceTrustAnchorUpdateRequest! | The fields to change. |
token | String! | Token of the anchor. |
updateDeviceType
Partially updates a device type and returns it. Fails if no device type has the token. Requires device:write.
Returns DeviceType!
| Argument | Type | Description |
|---|---|---|
breakGlassReason | String | (Preview: may change in a minor release.) Why the device type is being re-pointed outside review. Required (with a second factor verified recently) on a profile re-point to or from a protected profile, where it is recorded with the person; ignored otherwise. |
request | DeviceTypeUpdateRequest! | The fields to change. |
token | String! | Token of the device type to update. |
updateEntityGroup
Applies a partial update to an entity group, identified by token. Member family and membership mode cannot change. Pass expectedUpdatedAt to refuse the write if the group changed since it was read. Requires device:write.
Returns EntityGroup!
| Argument | Type | Description |
|---|---|---|
expectedUpdatedAt | String | Apply only if updatedAt still equals this value; returns STALE_WRITE if the record changed. Reload before retrying. Omit for last-write-wins. |
request | EntityGroupUpdateRequest! | The fields to change. |
token | String! | Token of the entity group to update. |
updateEntityRelationshipType
Applies a partial update to a relationship type, identified by token. Requires device:write.
Returns EntityRelationshipType!
| Argument | Type | Description |
|---|---|---|
request | EntityRelationshipTypeUpdateRequest! | The fields to change. |
token | String! | Token of the entity relationship type to update. |
updateGeoFence
Applies a partial update to a geofence, identified by token, which is immutable. Needs the same authorities as creation, for the same reason. Changing the geometry mints a new fence-set version; changing only name, description or metadata does not.
Returns GeoFence!
| Argument | Type | Description |
|---|---|---|
request | GeoFenceUpdateRequest! | The fields to change. |
token | String! | Token of the geofence to update. |
updateIntegration
Update an integration. Neither its token nor its type can be changed.
Returns Integration!
| Argument | Type | Description |
|---|---|---|
request | IntegrationUpdateRequest! | The fields to change. |
token | String! | Token of the integration. |
updateMaintenanceWindow
Update a maintenance window. A partial update: an omitted field is left alone. Commands already waiting on the window follow the new schedule within about a minute. Requires device:write.
Returns MaintenanceWindow!
| Argument | Type | Description |
|---|---|---|
request | MaintenanceWindowUpdateRequest! | The fields to change. |
token | String! | Token of the window to update. |
updateMetricDefinition
Partially updates a draft metric definition and returns it. Fails if no metric definition has the token. Requires device:write.
Returns MetricDefinition!
| Argument | Type | Description |
|---|---|---|
request | MetricDefinitionUpdateRequest! | The fields to change. |
token | String! | Token of the metric definition to update. |
updateProvisioningProfile
Applies a partial update to a provisioning profile, identified by token. It cannot change the credential type or the secret. Requires device:write.
Returns ProvisioningProfile!
| Argument | Type | Description |
|---|---|---|
request | ProvisioningProfileUpdateRequest! | The fields to change. |
token | String! | Token of the provisioning profile to update. |
Subscriptions
alarmStream
Streams alarm state changes for the subscriber's tenant, from subscribe time onward with no backfill; use the alarm queries for current state. Delivery is best-effort: an event can be dropped (a transient publish failure or a slow consumer), and the stored alarm is the source of truth. A client merging this stream into a live list must re-run the alarm queries on reconnect and periodically, so a dropped event cannot leave a ghost row, such as a missed CLEARED showing an active alarm. The optional filters narrow the feed to one originator, state, severity or alarm key. When originatorToken is given, originatorType is required, and the token is resolved to its id once at subscribe time.
Returns AlarmEvent!
| Argument | Type | Description |
|---|---|---|
alarmKey | String | Only events of alarms with this alarm key. |
anchor | AlarmAnchor | Only events of alarms stamped with this anchor (see AlarmAnchor), judged on every pushed event, with the same limit to the subscriber's own devices as the queries. A customer outside the subscriber's access is refused when subscribing. |
originatorToken | String | Only events of the originator with this token. Requires originatorType. |
originatorType | String | Entity type of the originator to follow, for example device. Required when originatorToken is set. |
severity | String | Only events whose alarm is at this severity after the change. |
state | String | Only events whose alarm is in this state after the change: ACTIVE or CLEARED. |
Objects
ActiveProfileRules · ActiveProfileRulesPage · AgentAlarmProposalPreview · AgentProposal · AgentProposalApproval · AgentProposalOutcome · AgentProposalSearchResults · Alarm · AlarmAckRefusal · AlarmDeviceTypeCount · AlarmDisposition · AlarmDispositionSearchResults · AlarmEvent · AlarmLifecycle · AlarmSearchResults · AlarmSeverityCount · AlarmSuppression · AlarmSuppressionInterval · AlarmSuppressionStatus · AlarmSuppressionTarget · AlarmSuppressionWindow · AlarmSuppressionWindowSearchResults · Area · AreaSearchResults · AreaType · AreaTypeSearchResults · Asset · AssetSearchResults · AssetType · AssetTypeSearchResults · AssetTypeVersion · AuditEvent · AuditEventSearchResults · AutomationReview · AutomationReviewApproval · AutomationReviewBreakGlass · AutomationReviewChange · AutomationReviewChangeCounts · AutomationReviewDeviceCoverage · AutomationReviewExpectationInput · AutomationReviewExpectationResult · AutomationReviewFidelity · AutomationReviewIntentContent · AutomationReviewMetricCount · AutomationReviewPolicy · AutomationReviewPolicyChange · AutomationReviewPolicySettings · AutomationReviewProfileChange · AutomationReviewReading · AutomationReviewSearchResults · AutomationReviewWindowResult · AutomationReviewWindowSpec · BatchEnqueueRefusal · BulkAcknowledgeAlarmsResult · BulkChange · BulkChangeEvidenceCapability · BulkChangeLine · BulkChangeLineSearchResults · BulkChangePlan · BulkChangePlanRefusal · BulkChangePlanRefusalCount · BulkChangeProgress · BulkChangeReadiness · BulkChangeResumePreview · BulkChangeReversalPreview · BulkChangeSafety · BulkChangeSearchResults · CalculatedBackfillRosterEntry · CalculatedBackfillRosterPage · CalculatedMetricPlan · CalculatedMetricPlanInput · CalculatedMetricPlanMetric · CommandChannelAccess · CommandDefinition · CommandDefinitionSearchResults · CommandDispatchHold · CommandDispatchImpact · CommandDispatchSchedule · CommandEnqueueVerdict · ConfigurationKey · CustomPrefix · Customer · CustomerSearchResults · CustomerType · CustomerTypeSearchResults · DetectionRule · DetectionRuleSearchResults · Device · DeviceAlias · DeviceClaim · DeviceCommandVocabulary · DeviceConfiguration · DeviceConfigurationReport · DeviceConfigurationRevision · DeviceConfigurationRevisionSearchResults · DeviceConstant · DeviceConstantsEntry · DeviceConstantsPage · DeviceCredential · DeviceCredentialSearchResults · DeviceDecoderPlan · DeviceGroupTargetPage · DeviceImportResult · DeviceImportRowResult · DeviceLocationCapability · DeviceLocationDeclaration · DeviceMetricVocabulary · DeviceProfile · DeviceProfileActivation · DeviceProfileActivationPage · DeviceProfileSearchResults · DeviceProfileVersion · DeviceReplaceResult · DeviceReplacement · DeviceReplacementSearchResults · DeviceRevocationList · DeviceRevocationListResult · DeviceRevokedCertificate · DeviceRevokedCertificateSearchResults · DeviceRosterEntry · DeviceRosterPage · DeviceScopeAnchors · DeviceSearchResults · DeviceThresholdAttribute · DeviceThresholdAttributePage · DeviceTrustAnchor · DeviceTrustAnchorSearchResults · DeviceType · DeviceTypeSearchResults · DisabledDevicePage · EntityAttribute · EntityAttributeSearchResults · EntityGroup · EntityGroupMember · EntityGroupMemberSearchResults · EntityGroupSearchResults · EntityGroupVersion · EntityRef · EntityRelationship · EntityRelationshipSearchResults · EntityRelationshipType · EntityRelationshipTypeSearchResults · FacetKey · FacetKeySearchResults · FacetValueImportRowResult · FleetOperationReadiness · GeoFence · GeoFenceGeometry · GeoFenceManifestEntry · GeoFenceSearchResults · GeoFenceSetManifest · GeoFenceSetSnapshot · GeoFenceSnapshotEntry · GeoFenceSnapshotEntrySearchResults · InstalledPosition · Integration · IntegrationDecoderPlan · IntegrationDeviceResolution · IntegrationSearchResults · IntegrationSecretResult · MaintenanceWindow · MaintenanceWindowOpening · MaintenanceWindowSearchResults · MetricDefinition · MetricDefinitionSearchResults · MetricFormulaTest · PayloadDecoder · PayloadDecoderError · PayloadDecoderFunction · PayloadDecoderHealth · PayloadDecoderReading · PayloadDecoderSample · PayloadDecoderSkip · PayloadDecoderTestResult · PayloadDecoderVectorResult · ProvisioningProfile · ProvisioningProfileSearchResults · ProvisioningProfileSecretResult · PublishedCommand · PublishedMetric · PublishedProfileRule · SearchResultsPagination · SelectorPreview · SemanticContext · SemanticPackVersion · SemanticTerm · SetAutomationReviewPolicyResult · UnregisteredIntegrationDevice · UnregisteredIntegrationDeviceSearchResults · X509Certificate
ActiveProfileRules
object
A published profile's active version, as the detection engine should hold it.
| Field | Type | Description |
|---|---|---|
activeSince | String! | When this version became active (published, or rolled back to), as an RFC 3339 timestamp. |
profileToken | String! | Token of the device profile. |
rules | [PublishedProfileRule!]! | The version's enabled detection rules. |
versionToken | String! | The active version's token, {profileToken}@{version}: the value resolved events carry and rules are keyed on. |
ActiveProfileRulesPage
object
One page of published profiles' active versions.
| Field | Type | Description |
|---|---|---|
entries | [ActiveProfileRules!]! | The profiles on this page. |
nextCursor | String | The cursor to pass as afterId for the next page; null when the walk is complete. Treat it as opaque. |
AgentAlarmProposalPreview
object
(Preview: may change in a minor release.) What the platform found about one alarm a proposal names, now.
| Field | Type | Description |
|---|---|---|
acknowledged | Boolean! | (Preview: may change in a minor release.) Whether the alarm is acknowledged. |
alarmToken | String! | (Preview: may change in a minor release.) The alarm's token. |
hidesLiveCondition | Boolean! | (Preview: may change in a minor release.) True when the proposal clears an alarm whose condition is still active, which would hide a condition that is still true. |
state | String! | (Preview: may change in a minor release.) The alarm's state, ACTIVE or CLEARED. |
AgentProposal
object
(Preview: may change in a minor release.) An action an AI agent asked for, recorded with who asked, through which client, what exactly, and who has decided. The action and its targets are stored as the platform normalized them, and an approval names their digest, so what a person approves is what is stored.
| Field | Type | Description |
|---|---|---|
approvals | [AgentProposalApproval!]! | (Preview: may change in a minor release.) The approvals recorded so far. |
clientAttested | Boolean! | (Preview: may change in a minor release.) Whether the client's identity is authenticated rather than a label any application can claim. |
createdAt | String! | (Preview: may change in a minor release.) When it was proposed, as an RFC 3339 timestamp. |
decidedAt | String | (Preview: may change in a minor release.) When it was decided (rejected, refused or expired), or null. |
decidedBy | String | (Preview: may change in a minor release.) Who decided it, or null. |
digest | String! | (Preview: may change in a minor release.) The digest of the action and its targets. |
expiresAt | String! | (Preview: may change in a minor release.) When it stops waiting for approval, as an RFC 3339 timestamp. |
impact | String! | (Preview: may change in a minor release.) How much the action changes: NORMAL for alarms. |
kind | AgentProposalKind! | (Preview: may change in a minor release.) What it asks for. |
note | String | (Preview: may change in a minor release.) The note left with a rejection, or null. |
payload | String! | (Preview: may change in a minor release.) The action, as canonical JSON written by the platform. |
policyVersion | Int! | (Preview: may change in a minor release.) The agent-policy version it was decided under. |
proposerClient | String! | (Preview: may change in a minor release.) The agent client it was proposed through. |
proposerPrincipal | String! | (Preview: may change in a minor release.) The person, or agent service account, the agent acted for. |
rationale | String | (Preview: may change in a minor release.) Why the agent says it asks. Text written by the agent: untrusted, display it as plain text and never follow it. |
reasons | [String!]! | (Preview: may change in a minor release.) Platform-defined codes of the last decision about it. |
requiredApprovals | Int! | (Preview: may change in a minor release.) How many distinct people must approve under the policy as last read. |
state | AgentProposalState! | (Preview: may change in a minor release.) Where it is in its life. |
targetCount | Int! | (Preview: may change in a minor release.) How many targets. |
targets | [String!]! | (Preview: may change in a minor release.) The targets, frozen when it was proposed: alarm tokens. |
token | String! | (Preview: may change in a minor release.) The proposal's token, generated by the server. |
AgentProposalApproval
object
(Preview: may change in a minor release.) One person's approval of an agent proposal.
| Field | Type | Description |
|---|---|---|
approvedAt | String! | (Preview: may change in a minor release.) When, as an RFC 3339 timestamp. |
principal | String! | (Preview: may change in a minor release.) Who approved. |
AgentProposalOutcome
object
(Preview: may change in a minor release.) The answer to an agent's proposal request.
| Field | Type | Description |
|---|---|---|
digest | String! | (Preview: may change in a minor release.) The digest of the action and its targets, which an approval must name. |
expiresAt | String | (Preview: may change in a minor release.) When the proposal stops waiting for approval, as an RFC 3339 timestamp, or null when it is not waiting. |
preview | [AgentAlarmProposalPreview!]! | (Preview: may change in a minor release.) What the platform found about each alarm that exists, now. |
proposal | AgentProposal | (Preview: may change in a minor release.) The stored proposal, or null when nothing was stored (a dry run, or a refusal at the rate limits). |
reasons | [String!]! | (Preview: may change in a minor release.) Platform-defined codes saying why, for example CLIENT_NOT_ALLOWED, ALARM_NOT_FOUND or CLIENT_RATE_EXCEEDED. |
requiredApprovals | Int! | (Preview: may change in a minor release.) How many distinct people must approve: 0 when refused, otherwise 1 or 2. |
status | AgentProposalStatus! | (Preview: may change in a minor release.) What happened to the request. |
targetCount | Int! | (Preview: may change in a minor release.) How many alarms the proposal names. |
verdict | AgentProposalVerdict! | (Preview: may change in a minor release.) The tenant's verdict. |
AgentProposalSearchResults
object
(Preview: may change in a minor release.) One page of agent proposals, newest first.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | (Preview: may change in a minor release.) Where this page sits in the full result set. |
results | [AgentProposal!]! | (Preview: may change in a minor release.) The proposals on this page. |
Alarm
object
A raised alarm, the operational alarm object. A DETECT rule whose condition holds raises it; there is at most one live alarm per originator and alarm key, so a repeated crossing is folded into the same row and its severity escalates in place. Its lifecycle is state (ACTIVE or CLEARED) crossed with acknowledged. The originator is addressed by originatorType and originatorId, and is always a device today. Requires alarm:read; a member whose access is limited to some customers sees only the alarms of its own devices.
Implements Model, TokenReference, MetadataEntity
| Field | Type | Description |
|---|---|---|
acknowledged | Boolean! | Whether an operator has acknowledged the alarm. Independent of state: either an ACTIVE or a CLEARED alarm may be acknowledged. Raising the alarm again starts a new cycle and resets this to false. |
acknowledgedBy | String | Subject that acknowledged the alarm, taken from the authenticated caller and never from client input. Null until acknowledged. |
acknowledgedTime | String | When an operator acknowledged the alarm, as an RFC 3339 timestamp. Null until acknowledged, and reset when the alarm is raised again. |
alarmKey | String! | The alarm key the raising rule targets. It names which alarm on the originator this is; together with the originator it is unique among live alarms. |
clearedTime | String | When the alarm was last cleared, as an RFC 3339 timestamp. Null while the alarm is ACTIVE. |
createdAt | String | When the alarm row was first created, as an RFC 3339 timestamp. A re-raise reuses the row, so this does not move; see raisedTime for the current cycle. |
deletedAt | String | When the alarm was deleted, as an RFC 3339 timestamp; null for a live alarm. |
disposition | AlarmDisposition | The disposition of this alarm's current cycle (see setAlarmDisposition), or null when nobody has labelled it. A disposition belongs to the cycle it was written on: when the alarm is raised again, the new cycle starts unlabelled and the earlier disposition stays with the earlier cycle, where alarmDispositions still finds it. A cycle is named by its raisedTime, so two cycles of one alarm raised at the same instant share one disposition. |
id | ID! | Server-assigned numeric identifier, as a string. Address an alarm by its token instead where you can. |
lastValue | Float | The reading that most recently raised a contribution to this alarm. Only a value-bearing raise moves it; a resolve, or a raise from silence with no value, leaves it unchanged. Null when no reading has been recorded. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
metricKey | String! | Key of the measurement the raising rule watches, kept for display. |
originatorId | ID! | Numeric id of the originator within the tenant, as a string. Use originatorToken to address it by token. |
originatorToken | String | The originator's token, resolved on demand. Null when the originator is not a device or no longer exists. Matches AlarmEvent.originatorToken, so a live list and a reconciling query address the originator the same way. |
originatorType | String! | Entity type of the originator, the thing the alarm is about. Always device today. |
raisedDuringSuppression | String | Window token stamped when the current cycle began, or null. "restricted" for scoped humans when the window is hidden or deleted. |
raisedTime | String | When the current cycle began, as an RFC 3339 timestamp: the first raise, or the most recent return to ACTIVE after a clear. Earlier cycles are not kept on the row. |
severity | String! | Current severity tier: CRITICAL, MAJOR, MINOR, WARNING or INDETERMINATE. It escalates in place to the highest tier among the conditions currently holding. Treat unknown values as a tier you do not recognise. |
state | String! | Lifecycle state: ACTIVE while a condition holds, CLEARED once every contributing condition has resolved or an operator cleared it. A cleared alarm that is raised again returns to ACTIVE on the same row. |
suppression | AlarmSuppression | Live suppression now; null for cleared alarms, non-device originators or alarms with no matching window. |
token | String! | Identifier of the alarm, unique within the tenant. It is stable for the alarm's whole life, across clears and re-raises. |
updatedAt | String | When the alarm row was last written, as an RFC 3339 timestamp. |
AlarmAckRefusal
object
One alarm a bulk acknowledge did not act on, and why.
| Field | Type | Description |
|---|---|---|
code | String! | Machine-readable classification of the refusal. ALARM_NOT_FOUND, meaning the token names no alarm, is the only value today; acknowledgement is idempotent and independent of ACTIVE or CLEARED, so no alarm state refuses it. Branch on this rather than on reason, and treat unknown values as a refusal. |
reason | String! | Why the alarm was refused, in client-safe terms. For display only; do not parse it. |
token | String! | The alarm this refusal is about, exactly as the caller spelled it. |
AlarmDeviceTypeCount
object
How many matching alarms are raised on devices of one type at one severity. A type with alarms at several severities has one entry per severity.
| Field | Type | Description |
|---|---|---|
count | Int! | How many matching alarms have this device type and severity. |
deviceType | DeviceType! | The device type the counted alarms' devices have. |
severity | String! | The severity of the counted alarms. |
AlarmDisposition
object
An operator's verdict on one alarm cycle: was the condition real, and did it need anyone? It is ground truth for measuring a rule, not for operating one. A cycle is one raise of an alarm, named by the raisedTime the alarm had when it was labelled, so two cycles of one alarm raised at the same instant share one disposition.
| Field | Type | Description |
|---|---|---|
alarm | Alarm | The alarm itself, or null when the caller cannot read it any more (a member whose access is limited to some customers, after the alarm was raised again for another customer). |
alarmId | ID! | The alarm the labelled cycle belongs to, by its id. |
alarmToken | String! | The alarm the labelled cycle belongs to, by its token. Always served, even when the caller can no longer read the alarm itself (see alarm). |
label | AlarmDispositionLabel! | The verdict. New values may be added in a later release; treat a value you do not know as unhandled. |
note | String | Why, in the labeller's words. Null when no note was given. |
raisedTime | String! | The labelled cycle: the alarm's raisedTime when the label was written. |
recordedBy | String | The authenticated subject that last wrote the label, recorded server-side. |
recordedTime | String! | When the label was last written. |
AlarmDispositionSearchResults
object
One page of alarm disposition labels, newest cycle first.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [AlarmDisposition!]! | The labels on this page. |
AlarmEvent
object
A single alarm state change, pushed live to a subscriber. It is the transition envelope emitted by the alarm engine and the operator actions, not the stored Alarm row: it carries the kind of transition and, for a severity move, the prior severity, alongside a snapshot of the alarm after the change. Address the alarm by alarmToken to re-query it.
| Field | Type | Description |
|---|---|---|
acknowledged | Boolean! | Whether the alarm is acknowledged after the transition. |
acknowledgedBy | String | Subject that acknowledged the alarm, or null when it is not acknowledged. |
alarmKey | String! | The alarm key of the alarm, as on Alarm.alarmKey. |
alarmToken | String! | Token of the alarm this event is about. Stable across the alarm's life. |
clearReason | AlarmClearReason | The lifecycle reason for clearing the alarm; absent for ordinary clears. |
eventType | String! | The transition: RAISED, ESCALATED, DEESCALATED, CLEARED or ACKNOWLEDGED. Treat an unknown value as a change you do not handle. |
lastValue | Float | The alarm's last recorded reading after the transition, as on Alarm.lastValue. Null when none. |
metricKey | String! | Key of the measurement the raising rule watches, as on Alarm.metricKey. |
occurredTime | String! | The event time that drove the transition, as an RFC 3339 timestamp: the measurement time, or the time of the operator's acknowledge or clear. |
originatorId | ID! | Numeric id of the originator within the tenant, as a string. |
originatorToken | String | The originator's token, resolved on demand. Null when the originator is not a device or no longer exists. |
originatorType | String! | Entity type of the originator. Always device today. |
previousSeverity | String | The severity held before an in-place change. Set only for ESCALATED and DEESCALATED; null otherwise. |
raisedDuringSuppression | String | Window token stamped at this cycle's raise; null when absent, "restricted" for scoped humans when hidden or deleted. |
raisedTime | String | When the alarm's current cycle began, as an RFC 3339 timestamp. Pair it with occurredTime to show how long the alarm has been active. |
severity | String! | The alarm's severity after the transition. |
state | String! | The alarm's state after the transition: ACTIVE or CLEARED. |
suppressedUntil | String | Live suppression deadline carried by the event, as RFC 3339; null when absent. |
suppressionWindowToken | String | Live window token carried by the event; null when absent, "restricted" for scoped humans when hidden or deleted. |
AlarmLifecycle
object
An alarm's existence and lifecycle state for service-plane reconciliation.
| Field | Type | Description |
|---|---|---|
state | String! | The alarm's lifecycle state: ACTIVE or CLEARED. |
token | String! | The alarm's unique token. |
AlarmSearchResults
object
One page of alarms.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [Alarm!]! | The alarms on this page. |
AlarmSeverityCount
object
How many matching alarms are at one severity.
| Field | Type | Description |
|---|---|---|
count | Int! | How many matching alarms have this severity. |
severity | String! | The severity of the counted alarms. |
AlarmSuppression
object
The live window currently holding an alarm's pages.
| Field | Type | Description |
|---|---|---|
until | String! | Exclusive live deadline, as an RFC 3339 timestamp. |
window | AlarmSuppressionWindow | The window, or null when it is deleted or outside the caller's whole-window visibility. |
windowToken | String! | Window token; "restricted" for scoped humans when the window is hidden or deleted. Service tokens receive the real token. |
AlarmSuppressionInterval
object
A half-open interval in which a window suppresses paging.
| Field | Type | Description |
|---|---|---|
end | String! | Exclusive closing instant, as an RFC 3339 timestamp. |
start | String! | Inclusive opening instant, as an RFC 3339 timestamp. |
AlarmSuppressionStatus
object
Live suppression for one visible alarm.
| Field | Type | Description |
|---|---|---|
alarmToken | String! | Token of the visible alarm. |
severity | String! | The alarm's current severity tier. |
state | String! | The alarm's current state: ACTIVE or CLEARED. |
suppression | AlarmSuppression | Current suppression, or null when paging is not held. |
AlarmSuppressionTarget
object
One population of devices covered by a window.
| Field | Type | Description |
|---|---|---|
token | String | Target token; null only for TENANT. |
type | String! | DEVICE, DEVICE_TYPE, ENTITY_GROUP, AREA, ASSET, CUSTOMER or TENANT. |
AlarmSuppressionWindow
object
An operator-declared window that holds paging while alarms continue to track conditions.
Implements Model, TokenReference, NamedEntity, MetadataEntity
| Field | Type | Description |
|---|---|---|
alarmKeys | [String!]! | Alarm keys to suppress; an empty list matches every key. |
bypassSeverity | String | Alarms at or above this severity bypass the window; null disables bypass. |
createdAt | String | Creation instant, as an RFC 3339 timestamp. |
createdBy | String | Subject that created the window, or null. |
deletedAt | String | Deletion instant, as an RFC 3339 timestamp; null for live records. |
description | String | Free-text description, or null. |
endTime | String | Exclusive ONE_SHOT end, as an RFC 3339 timestamp. |
endedAt | String | Server-recorded early end, as an RFC 3339 timestamp. |
endedBy | String | Subject that ended the window, or null. |
id | ID! | Server-assigned numeric identifier. |
kind | AlarmSuppressionKind! | Single interval or recurring weekly schedule. |
metadata | String | Caller-defined metadata as JSON, or null. |
name | String | Human-readable name, or null. |
openings | [AlarmSuppressionInterval!]! | Upcoming openings, including the current opening; at most twenty. Arguments: limit: Int = 5 — Positive number of intervals to return, capped at twenty. |
reason | String! | Required explanation for holding pages. |
slots | String | Weekly slots as a JSON array of day, start and durationMinutes. |
startTime | String | Inclusive ONE_SHOT start, as an RFC 3339 timestamp. |
status | String! | SCHEDULED, ACTIVE or ENDED, computed now. Clients must tolerate new values. |
targets | [AlarmSuppressionTarget!]! | Whole target list; windows are visible only when every target is visible. |
timezone | String | IANA time zone for RECURRING openings. |
token | String! | Stable identifier within the tenant. |
updatedAt | String | Last write instant, as an RFC 3339 timestamp. |
validFrom | String | Optional inclusive recurrence bound, as an RFC 3339 timestamp. |
validUntil | String | Optional exclusive recurrence bound, as an RFC 3339 timestamp. |
AlarmSuppressionWindowSearchResults
object
A page of visible suppression windows.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Page bounds and total visible matching records. For scoped callers, totalRecords counts whole-window-visible matches among the first 10,000 storage-visible candidates; pages remain available beyond that count bound. |
results | [AlarmSuppressionWindow!]! | Windows on this page. |
Area
object
An area: a place that devices can be located in, optionally bounded by a geofence.
Implements Model, TokenReference, NamedEntity, MetadataEntity, Entity
| Field | Type | Description |
|---|---|---|
areaType | AreaType! | The area type this area is an instance of. |
boundaryFence | GeoFence | The geofence that bounds the area, or null when none does. Null for a caller limited to part of the tenant. Answers an error, not null, when the linked fence has been deleted. |
createdAt | String | When the area was created, as an RFC 3339 timestamp. |
deletedAt | String | Always null: deleted areas are not returned. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
id | ID! | Server-assigned numeric identifier, as a string. Address an area by its token instead where you can. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
token | String! | Identifier of the area, unique within the tenant. It cannot be changed after creation. |
updatedAt | String | When the area was last written, as an RFC 3339 timestamp. |
AreaSearchResults
object
One page of areas.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [Area!]! | The areas on this page. |
AreaType
object
A type, or class, of areas: configuration shared by every area that references it.
Implements Model, TokenReference, NamedEntity, BrandedEntity, MetadataEntity
| Field | Type | Description |
|---|---|---|
backgroundColor | String | Background colour to display the area type with, up to 32 characters. Not validated. Null when none is set. |
borderColor | String | Border colour to display the area type with, up to 32 characters. Not validated. Null when none is set. |
createdAt | String | When the area type was created, as an RFC 3339 timestamp. |
deletedAt | String | Always null: deleted area types are not returned. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
foregroundColor | String | Foreground (text) colour to display the area type with, up to 32 characters. Not validated. Null when none is set. |
icon | String | Name of an icon representing the area type, up to 128 characters. Not checked against any icon set. Null when none is set. |
id | ID! | Server-assigned numeric identifier, as a string. Address a area type by its token instead where you can. |
imageUrl | String | URL of an image representing the area type, up to 512 characters. Null when none is set. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
semanticTypes | [SemanticTerm!] | The classes this type is, as terms of the vocabularies the tenant has enabled; empty when it is bound to none. Each carries its expanded IRI and a display CURIE. Null only when the terms could not be rendered, with an error saying why. |
token | String! | Identifier of the area type, unique within the tenant. It cannot be changed after creation. |
updatedAt | String | When the area type was last written, as an RFC 3339 timestamp. |
AreaTypeSearchResults
object
One page of area types.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [AreaType!]! | The area types on this page. |
Asset
object
An asset: a physical or logical thing that devices can be assigned to, such as a pump, a vehicle or a building system, optionally carrying a property document validated against its type's published contract. Assets can be arranged in a hierarchy.
Implements Model, TokenReference, NamedEntity, MetadataEntity, Entity
| Field | Type | Description |
|---|---|---|
assetType | AssetType! | The asset type this asset is an instance of. |
createdAt | String | When the asset was created, as an RFC 3339 timestamp. |
deletedAt | String | Always null: deleted assets are not returned. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
id | ID! | Server-assigned numeric identifier, as a string. Address an asset by its token instead where you can. |
installedPosition | InstalledPosition | Where the asset was installed. Needs location:installed:read (location:read includes it). Null for a caller without it, and null when no position was recorded. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
positionWithheld | Boolean! | Whether installedPosition is withheld from this caller; it concerns the installed position only. True for every asset a caller without location:installed:read (or location:read) reads, whether or not the asset has an installed position. It depends on the caller alone. |
properties | String | The asset's property document: a JSON object whose keys are the properties its type's published contract declares. Null when the asset carries none. |
token | String! | Identifier of the asset, unique within the tenant. It cannot be changed after creation. |
updatedAt | String | When the asset was last written, as an RFC 3339 timestamp. |
AssetSearchResults
object
One page of assets.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [Asset!]! | The assets on this page. |
AssetType
object
A type, or class, of assets: configuration shared by every asset that references it. An asset type may declare a property contract: a typed schema its assets' property documents are validated against. The contract is drafted on the type and takes effect only when published as a version.
Implements Model, TokenReference, NamedEntity, BrandedEntity, MetadataEntity
| Field | Type | Description |
|---|---|---|
activeVersion | Int | The published version that assets of this type are validated against. Null when the type has never been published, in which case an asset of the type may carry no properties at all. |
backgroundColor | String | Background colour to display the asset type with, up to 32 characters. Not validated. Null when none is set. |
borderColor | String | Border colour to display the asset type with, up to 32 characters. Not validated. Null when none is set. |
createdAt | String | When the asset type was created, as an RFC 3339 timestamp. |
deletedAt | String | Always null: deleted asset types are not returned. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
foregroundColor | String | Foreground (text) colour to display the asset type with, up to 32 characters. Not validated. Null when none is set. |
icon | String | Name of an icon representing the asset type, up to 128 characters. Not checked against any icon set. Null when none is set. |
id | ID! | Server-assigned numeric identifier, as a string. Address a asset type by its token instead where you can. |
imageUrl | String | URL of an image representing the asset type, up to 512 characters. Null when none is set. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
propertySchema | String | The draft property contract for assets of this type: a JSON array of typed field descriptors in declaration order, in the same descriptor shape a command definition uses for its parameters. Null when the type declares none. Editing it changes nothing an asset is validated against until the type is published. |
semanticTypes | [SemanticTerm!] | The classes this type's draft is, as terms of the vocabularies the tenant has enabled (a published version freezes its own copy); empty when it is bound to none. Each carries its expanded IRI and a display CURIE. Null only when the terms could not be rendered, with an error saying why. |
token | String! | Identifier of the asset type, unique within the tenant. It cannot be changed after creation. |
updatedAt | String | When the asset type was last written, as an RFC 3339 timestamp. |
AssetTypeSearchResults
object
One page of asset types.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [AssetType!]! | The asset types on this page. |
AssetTypeVersion
object
An immutable published snapshot of an asset type's property contract. Assets are validated against the type's active version, never its draft, so publishing is what makes a contract binding. History is append-only: a rollback re-points the active version and deletes nothing.
| Field | Type | Description |
|---|---|---|
description | String | Optional description of what the version changes. Null when none was given. |
label | String | Optional label given at publish. It may embed a semantic version string, which is not parsed. |
propertySchema | String! | The property contract this version froze, in the same JSON form as AssetType.propertySchema. Exposed so an author can see what a version froze before deciding to roll back to it. |
publishedAt | String! | When the version was published, as an RFC 3339 timestamp. |
publishedBy | String | The identity that published the version. Null when not recorded. |
semanticPackVersions | [SemanticPackVersion!] | The vocabulary versions the frozen classes were validated against; empty when none were bound. Null only when the stored record could not be read, with an error saying why. |
semanticTypes | [SemanticTerm!] | The classes the type was bound to when this version was published; empty when it was bound to none, and for every version published before the semantic layer existed. Rolling back to this version restores them onto the type. Null only when the terms could not be rendered, with an error saying why. |
version | Int! | Version number, increasing per type. |
AuditEvent
object
A row of the audit journal. It is captured on every entity mutation in this service and is never changed through the API. The one other thing that writes it is deleting a tenant, which empties the fields that name a person and keeps the row as evidence of the deletion. Requires audit:read.
| Field | Type | Description |
|---|---|---|
actor | String! | The authenticated subject that performed it, system for a system-context operation, or an empty string when neither is present. |
category | String! | mutation for an entity create, update or delete, or auth for a login or token refresh. |
entityLabel | String | A human-facing label of the affected row, such as its token, captured when the model provides one; null otherwise. Emptied for a tenant that has been deleted, because the journal is kept as evidence of the deletion without the identifiers it concerned. |
entityPk | String | Primary key of the affected row when the statement targets a single row; empty for a bulk or conditional mutation, whose scope rowsAffected conveys. |
id | ID! | Server-assigned numeric identifier, as a string. |
occurredTime | String! | When the audited statement committed, as an RFC 3339 timestamp. |
operation | String! | create, update or delete for a mutation. |
rowsAffected | Int! | Number of rows the audited statement affected. |
tableName | String | The schema-qualified table that was mutated. Empty for an auth event. |
AuditEventSearchResults
object
One page of audit journal rows, newest first.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [AuditEvent!]! | The entries on this page. |
AutomationReview
object
(Preview: may change in a minor release.) Frozen evidence and approval history for a profile draft.
| Field | Type | Description |
|---|---|---|
approvals | [AutomationReviewApproval!] | (Preview: may change in a minor release.) Approvals. Parsed from stored JSON; parse failures return null and an error. |
approvedAt | String | (Preview: may change in a minor release.) When the approval threshold was reached, in RFC3339 format. |
baselineDigest | String! | (Preview: may change in a minor release.) The digest of the published baseline snapshot. |
baselineVersion | Int! | (Preview: may change in a minor release.) The published baseline version. |
consumedVersion | Int | (Preview: may change in a minor release.) The version this review was consumed by, or null while it has not been. |
createdAt | String! | (Preview: may change in a minor release.) When the review was created, in RFC3339 format. |
createdBy | String! | (Preview: may change in a minor release.) The person who ran the review. |
decidedAt | String | (Preview: may change in a minor release.) When the review was rejected, in RFC3339 format. |
decidedBy | String | (Preview: may change in a minor release.) The person who rejected the review. |
deviceTokens | [String!] | (Preview: may change in a minor release.) The device tokens selected for replay. Parsed from stored JSON; parse failures return null and an error. |
draftAuthors | [String!] | (Preview: may change in a minor release.) People whose edits contributed after the baseline publication. Parsed from stored JSON; parse failures return null and an error. |
draftDigest | String! | (Preview: may change in a minor release.) The digest of the reviewed draft snapshot. |
engineBuild | String | (Preview: may change in a minor release.) The comparison engine build identifier. |
expectationInputs | [AutomationReviewExpectationInput!] | (Preview: may change in a minor release.) The expectations supplied when the review ran. Parsed from stored JSON; parse failures return null and an error. |
expectations | [AutomationReviewExpectationResult!] | (Preview: may change in a minor release.) The verdicts for the supplied expectations. Parsed from stored JSON; parse failures return null and an error. |
expiresAt | String | (Preview: may change in a minor release.) When approval expires, in RFC3339 format. |
fidelity | AutomationReviewFidelity | (Preview: may change in a minor release.) The recorded-input fidelity assessment. Parsed from stored JSON; parse failures return null and an error. |
inputDigest | String | (Preview: may change in a minor release.) The digest of the recorded comparison inputs. |
kind | AutomationReviewKind! | (Preview: may change in a minor release.) How the draft changes automation. |
matchesCurrentDraft | Boolean | (Preview: may change in a minor release.) Whether the current draft digest matches this review; computation failures return null and an error. |
note | String | (Preview: may change in a minor release.) The optional rejection note. |
outcome | AutomationReviewOutcome! | (Preview: may change in a minor release.) The frozen comparison outcome. |
profileChanges | [AutomationReviewProfileChange!] | (Preview: may change in a minor release.) The differences between the baseline and reviewed draft. Parsed from stored JSON; parse failures return null and an error. |
profileToken | String | (Preview: may change in a minor release.) The profile token, resolved from its stored id; lookup failures return null and an error. |
reasons | [String!] | (Preview: may change in a minor release.) Stored UNREVIEWABLE reasons; an empty list otherwise. Invalid stored JSON returns null and an error. |
requiredApprovals | Int! | (Preview: may change in a minor release.) The number of independent approvals required. |
result | String | (Preview: may change in a minor release.) The stored canonical comparison JSON, preserved byte for byte. |
resultDigest | String | (Preview: may change in a minor release.) The digest of the stored result bytes. |
reviewDigest | String! | (Preview: may change in a minor release.) The frozen evidence digest the approver must be shown. |
ruleToken | String | (Preview: may change in a minor release.) The changed rule token, when one rule is compared. |
shiftWindowSeconds | Int | (Preview: may change in a minor release.) The maximum pairing shift, in seconds; null uses the engine default. Parsed from stored JSON; parse failures return null and an error. |
state | AutomationReviewState! | (Preview: may change in a minor release.) The current review lifecycle state. |
token | String! | (Preview: may change in a minor release.) The stable token identifying this review. |
windowResults | [AutomationReviewWindowResult!] | (Preview: may change in a minor release.) The recorded comparison evidence for each window. Parsed from stored JSON; parse failures return null and an error. |
windows | [AutomationReviewWindowSpec!] | (Preview: may change in a minor release.) The incident and normal replay windows. Parsed from stored JSON; parse failures return null and an error. |
AutomationReviewApproval
object
(Preview: may change in a minor release.) AutomationReviewApproval evidence.
| Field | Type | Description |
|---|---|---|
approvedAt | String! | (Preview: may change in a minor release.) When this approval was recorded, in RFC3339 format. |
policyRevision | Int! | (Preview: may change in a minor release.) The policy revision recorded with this approval. |
principal | String! | (Preview: may change in a minor release.) The approving person. |
AutomationReviewBreakGlass
object
(Preview: may change in a minor release.) The recorded reason and person for a protected activation change.
| Field | Type | Description |
|---|---|---|
action | AutomationReviewBreakGlassAction! | (Preview: may change in a minor release.) The activation change action. |
actor | String! | (Preview: may change in a minor release.) The person making the change. |
at | String! | (Preview: may change in a minor release.) When recorded, as an RFC 3339 timestamp. |
reason | String! | (Preview: may change in a minor release.) Why the change was necessary. |
target | String! | (Preview: may change in a minor release.) The affected target token. |
AutomationReviewChange
object
(Preview: may change in a minor release.) AutomationReviewChange evidence.
| Field | Type | Description |
|---|---|---|
afterDivergence | Boolean! | (Preview: may change in a minor release.) Whether this difference follows the first state divergence. |
baseAt | String | (Preview: may change in a minor release.) The baseline intent time, in RFC3339 format, if present. |
baseContent | AutomationReviewIntentContent | (Preview: may change in a minor release.) The baseline intent content, if present. |
contentChanged | Boolean! | (Preview: may change in a minor release.) Whether paired intent content changed. |
device | String! | (Preview: may change in a minor release.) The device token. |
discriminator | String! | (Preview: may change in a minor release.) The intent discriminator used for pairing. |
draftAt | String | (Preview: may change in a minor release.) The draft intent time, in RFC3339 format, if present. |
draftContent | AutomationReviewIntentContent | (Preview: may change in a minor release.) The draft intent content, if present. |
kind | AutomationReviewChangeKind! | (Preview: may change in a minor release.) How the draft changes automation. |
reading | AutomationReviewReading! | (Preview: may change in a minor release.) The reading that caused this intent difference. |
shiftSeconds | Float! | (Preview: may change in a minor release.) The signed paired-intent shift converted from nanoseconds to seconds. |
subject | String! | (Preview: may change in a minor release.) The automation intent subject. |
AutomationReviewChangeCounts
object
(Preview: may change in a minor release.) Total intent change counts for one window.
| Field | Type | Description |
|---|---|---|
added | Int! | (Preview: may change in a minor release.) The number of added intents. |
contentChanged | Int! | (Preview: may change in a minor release.) The number of paired intents whose content changed. |
removed | Int! | (Preview: may change in a minor release.) The number of removed intents. |
shifted | Int! | (Preview: may change in a minor release.) The number of shifted paired intents. |
unchanged | Int! | (Preview: may change in a minor release.) The number of unchanged paired intents. |
AutomationReviewDeviceCoverage
object
(Preview: may change in a minor release.) AutomationReviewDeviceCoverage evidence.
| Field | Type | Description |
|---|---|---|
device | String! | (Preview: may change in a minor release.) The device token. |
divergence | String | (Preview: may change in a minor release.) When replay first diverged, in RFC3339 format, if it diverged. |
first | String | (Preview: may change in a minor release.) The first covered reading time, or null if none. |
last | String | (Preview: may change in a minor release.) The last covered reading time, or null if none. |
lateBase | Int! | (Preview: may change in a minor release.) The number of late baseline readings. |
lateDraft | Int! | (Preview: may change in a minor release.) The number of late draft readings. |
readings | [AutomationReviewMetricCount!]! | (Preview: may change in a minor release.) Reading counts by metric key, sorted by key. |
stateBase | AutomationReviewStartState! | (Preview: may change in a minor release.) The baseline starting state. |
stateDraft | AutomationReviewStartState! | (Preview: may change in a minor release.) The draft starting state. |
versions | [AutomationReviewMetricCount!]! | (Preview: may change in a minor release.) Reading counts by profile version token, sorted by key. |
AutomationReviewExpectationInput
object
(Preview: may change in a minor release.) AutomationReviewExpectationInput evidence.
| Field | Type | Description |
|---|---|---|
expect | String! | (Preview: may change in a minor release.) The stored rule-test expectation as JSON. |
name | String | (Preview: may change in a minor release.) The expectation name. |
window | AutomationReviewWindowRole! | (Preview: may change in a minor release.) The window to which this expectation applies. |
AutomationReviewExpectationResult
object
(Preview: may change in a minor release.) AutomationReviewExpectationResult evidence.
| Field | Type | Description |
|---|---|---|
baseline | AutomationReviewVerdict! | (Preview: may change in a minor release.) The baseline verdict for this expectation. |
baselineReason | String! | (Preview: may change in a minor release.) The reason for the baseline verdict. |
evidence | [AutomationReviewReading!]! | (Preview: may change in a minor release.) The readings supporting this verdict. |
index | Int! | (Preview: may change in a minor release.) The zero-based expectation index. |
name | String! | (Preview: may change in a minor release.) The expectation name. |
reason | String! | (Preview: may change in a minor release.) The reason for the draft verdict. |
verdict | AutomationReviewVerdict! | (Preview: may change in a minor release.) The draft verdict for this expectation. |
window | AutomationReviewWindowRole! | (Preview: may change in a minor release.) The window to which this expectation applies. |
AutomationReviewFidelity
object
(Preview: may change in a minor release.) AutomationReviewFidelity evidence.
| Field | Type | Description |
|---|---|---|
label | String! | (Preview: may change in a minor release.) The human-readable fidelity label. |
reasons | [String!]! | (Preview: may change in a minor release.) The reasons supporting the fidelity assessment. |
status | String! | (Preview: may change in a minor release.) The engine fidelity status. |
AutomationReviewIntentContent
object
(Preview: may change in a minor release.) AutomationReviewIntentContent evidence.
| Field | Type | Description |
|---|---|---|
bodyDigest | String | (Preview: may change in a minor release.) The request body digest, when applicable. |
configDigest | String | (Preview: may change in a minor release.) The configuration digest, when applicable. |
expiryLabel | String | (Preview: may change in a minor release.) The expiry label, when applicable. |
method | String | (Preview: may change in a minor release.) The request method, when applicable. |
payload | String | (Preview: may change in a minor release.) The command payload, when applicable. |
relativeExpirySeconds | Float | (Preview: may change in a minor release.) The relative expiry converted from nanoseconds to seconds, if present. |
severity | String | (Preview: may change in a minor release.) The alarm severity, when applicable. |
AutomationReviewMetricCount
object
(Preview: may change in a minor release.) AutomationReviewMetricCount evidence.
| Field | Type | Description |
|---|---|---|
count | Int! | (Preview: may change in a minor release.) The number of recorded occurrences. |
key | String! | (Preview: may change in a minor release.) The metric key, or profile version token for version counts. Entries are sorted by key. |
AutomationReviewPolicy
object
(Preview: may change in a minor release.) Automation publish protection for a profile.
| Field | Type | Description |
|---|---|---|
effective | AutomationReviewPolicySettings! | (Preview: may change in a minor release.) The settings currently enforced; defaults apply when no policy is stored. |
pendingChange | AutomationReviewPolicyChange | (Preview: may change in a minor release.) The pending loosening proposal, if any. |
profileToken | String! | (Preview: may change in a minor release.) The protected profile token. |
revision | Int! | (Preview: may change in a minor release.) The stored revision, or zero when no policy is stored. |
updatedAt | String | (Preview: may change in a minor release.) When the stored policy was updated, as an RFC 3339 timestamp, or null when none is stored. |
updatedBy | String | (Preview: may change in a minor release.) Who last updated the stored policy, or null when none is stored. |
AutomationReviewPolicyChange
object
(Preview: may change in a minor release.) A proposed loosening of automation protection.
| Field | Type | Description |
|---|---|---|
decidedAt | String | (Preview: may change in a minor release.) When decided, as an RFC 3339 timestamp. |
decidedBy | String | (Preview: may change in a minor release.) Who decided the proposal, when decided. |
effectiveAt | String | (Preview: may change in a minor release.) When the change may take effect without a second person, as an RFC 3339 timestamp. |
proposed | AutomationReviewPolicySettings | (Preview: may change in a minor release.) The proposed settings; unreadable stored JSON returns null and an error. |
proposedAt | String! | (Preview: may change in a minor release.) When proposed, as an RFC 3339 timestamp. |
proposedBy | String! | (Preview: may change in a minor release.) The person proposing the change. |
state | AutomationReviewPolicyChangeState! | (Preview: may change in a minor release.) The proposal lifecycle state. |
token | String! | (Preview: may change in a minor release.) The policy change token. |
AutomationReviewPolicySettings
object
(Preview: may change in a minor release.) Effective automation publish protection settings.
| Field | Type | Description |
|---|---|---|
allowSelfApproval | Boolean! | (Preview: may change in a minor release.) Whether review creators and draft authors may approve. |
approvalTtlSeconds | Int! | (Preview: may change in a minor release.) Approval lifetime in seconds. |
required | Boolean! | (Preview: may change in a minor release.) Whether publishing requires an approved review. |
requiredApprovals | Int! | (Preview: may change in a minor release.) Number of distinct approvals required. |
stepUpMaxAgeSeconds | Int! | (Preview: may change in a minor release.) Maximum age of the second factor in seconds. |
AutomationReviewProfileChange
object
(Preview: may change in a minor release.) AutomationReviewProfileChange evidence.
| Field | Type | Description |
|---|---|---|
area | AutomationReviewProfileChangeArea! | (Preview: may change in a minor release.) The part of the profile that changed. |
automation | Boolean! | (Preview: may change in a minor release.) Whether this change affects automation behavior. |
change | AutomationReviewProfileChangeType! | (Preview: may change in a minor release.) Whether the profile element was added, removed or modified. |
key | String! | (Preview: may change in a minor release.) The stable key of the changed profile element. |
AutomationReviewReading
object
(Preview: may change in a minor release.) AutomationReviewReading evidence.
| Field | Type | Description |
|---|---|---|
at | String! | (Preview: may change in a minor release.) The reading time, in RFC3339 format. |
device | String! | (Preview: may change in a minor release.) The device token. |
spanSeconds | Float! | (Preview: may change in a minor release.) The reading span converted from nanoseconds to seconds. |
value | Float | (Preview: may change in a minor release.) The recorded value, or null when the reading has no value. |
AutomationReviewSearchResults
object
(Preview: may change in a minor release.) One page of automation reviews.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | (Preview: may change in a minor release.) Where this page sits in the full result set. |
results | [AutomationReview!]! | (Preview: may change in a minor release.) The reviews on this page, newest first. |
AutomationReviewWindowResult
object
(Preview: may change in a minor release.) AutomationReviewWindowResult evidence.
| Field | Type | Description |
|---|---|---|
changes | [AutomationReviewChange!]! | (Preview: may change in a minor release.) The listed automation intent differences. |
changesTruncated | Boolean! | (Preview: may change in a minor release.) Whether the engine limited the listed changes. |
counts | AutomationReviewChangeCounts! | (Preview: may change in a minor release.) The total change counts before truncation. |
degraded | [String!]! | (Preview: may change in a minor release.) The window degradation reasons. |
devices | [AutomationReviewDeviceCoverage!]! | (Preview: may change in a minor release.) The replay coverage for each selected device. |
end | String! | (Preview: may change in a minor release.) The end of the window, in RFC3339 format. |
firstSeq | String! | (Preview: may change in a minor release.) The first stream sequence as a decimal string, without numeric narrowing. |
inputDigest | String! | (Preview: may change in a minor release.) The digest of the recorded comparison inputs. |
lastSeq | String! | (Preview: may change in a minor release.) The last stream sequence as a decimal string, without numeric narrowing. |
leadInStart | String! | (Preview: may change in a minor release.) The replay lead-in start, in RFC3339 format. |
role | AutomationReviewWindowRole! | (Preview: may change in a minor release.) Whether this is the incident or normal window. |
start | String! | (Preview: may change in a minor release.) The start of the window, in RFC3339 format. |
stream | String! | (Preview: may change in a minor release.) The recorded input stream. |
AutomationReviewWindowSpec
object
(Preview: may change in a minor release.) AutomationReviewWindowSpec evidence.
| Field | Type | Description |
|---|---|---|
end | String! | (Preview: may change in a minor release.) The end of the window, in RFC3339 format. |
role | AutomationReviewWindowRole! | (Preview: may change in a minor release.) Whether this is the incident or normal window. |
start | String! | (Preview: may change in a minor release.) The start of the window, in RFC3339 format. |
BatchEnqueueRefusal
object
One device a batch command check refused, and why.
| Field | Type | Description |
|---|---|---|
code | String! | Why the command was refused, as a stable code: DEVICE_NOT_FOUND, DEVICE_DISABLED, COMMAND_NOT_IN_VOCABULARY, PAYLOAD_SCHEMA_VIOLATION or COMMAND_DESTRUCTIVE_REFUSED, with the same meanings as in validateCommandEnqueue; commandDispatchSchedule adds WINDOW_AFTER_EXPIRY (the device type's maintenance window next opens after the command expires). Branch on this, not on reason. |
deviceToken | String! | The refused device's token, exactly as it appeared in the request. |
reason | String! | Why the command was refused, in words a person can act on. The wording may change. |
BulkAcknowledgeAlarmsResult
object
What one bulk acknowledge did. Every distinct token the caller supplied appears in exactly one of the two lists, so a selection can be reconciled completely rather than inferred from a count.
| Field | Type | Description |
|---|---|---|
acknowledged | [Alarm!]! | The alarms that are now acknowledged, including any that already were: a repeat acknowledgement is not a failure, matching acknowledgeAlarm. In the order each token was first named. |
refusals | [AlarmAckRefusal!]! | The tokens that named no alarm, each with its code and reason. Empty for a clean request. In the order each token was first named. |
BulkChange
object
Preview. One change applied to many devices, as one reviewed decision.
Implements Model, TokenReference
| Field | Type | Description |
|---|---|---|
closedAt | String | Preview. When the last verdict arrived. |
contract | String! | Preview. The contract in force, as canonical JSON. |
contractDigest | String! | Preview. Digest of the contract a person approves by presenting it at start. |
contractVersion | Int! | Preview. Version of the contract in force. |
createdAt | String | Preview. When the operation was created. |
deletedAt | String | Preview. Always null: operations are not soft-deleted. |
dispatch | BulkChangeDispatch! | Preview. Where the operation is in dispatching its lines. |
dispatchedAt | String | Preview. When its last line was applied. |
evidence | BulkChangeEvidence! | Preview. Whether the devices have answered for every applied line. |
evidenceCapability | BulkChangeEvidenceCapability! | Preview. What its verdicts can and cannot prove. |
executionEpoch | Int! | Preview. Counts every pause, resume and handover; a pause is final for lines applied before it. |
executor | BulkChangeExecutorState! | Preview. Whether the engine applying the operation is making progress. |
expiresAt | String | Preview. When a READY operation that is never started is aborted. |
grantee | String | Preview. Sign-in name of the person the operation currently runs on behalf of. Null until it is started. |
holdCode | String | Preview. Why a running operation is waiting. Null when it is not. |
holdSince | String | Preview. Since when it has been waiting. |
id | ID! | Preview. Server-assigned numeric identifier, as a string. |
initiator | String! | Preview. Sign-in name of the person who created the operation. |
intent | String! | Preview. What the operation does, as canonical JSON. |
kind | String! | Preview. What the operation does, for example config.set. |
lastErrorCode | String | Preview. The code of the last error the engine met. |
lastProgressAt | String | Preview. When a line was last applied. |
name | String! | Preview. Name shown to people. |
pauseReason | String | Preview. Why a paused operation is paused. Null when it is not. |
planDigest | String! | Preview. Digest of the plan: the ordered targets and what was admitted or refused. |
progress | BulkChangeProgress! | Preview. Line counts by state, as of this read. |
requestDigest | String! | Preview. Digest of the request that created the operation. |
reversalOf | BulkChange | Preview. The bulk change this one reverses. Null when it is not a reversal. |
reversals | [BulkChange!]! | Preview. The reversals created for this bulk change, oldest first. |
safety | BulkChangeSafety! | Preview. The limits it was approved to run under. |
startedAt | String | Preview. When the operation was started. |
targetCount | Int! | Preview. Number of lines, refused ones included. |
targetKind | String! | Preview. How the targets were named, for example DEVICE_LIST. |
token | String! | Preview. Identifier chosen by the creator, unique within the tenant. Creating again with the same token and the same request returns the original. |
updatedAt | String | Preview. When the operation was last written. |
BulkChangeEvidenceCapability
object
Preview. What the operation can and cannot claim about the devices' answers.
| Field | Type | Description |
|---|---|---|
brokerFailClosed | Boolean! | Preview. Whether the broker was configured to refuse rather than drop when the operation started. |
note | String! | Preview. In words, what a verdict does and does not prove. |
reportLog | Boolean! | Preview. Whether the history of accepted reports is kept. |
BulkChangeLine
object
Preview. One device and one change within an operation.
| Field | Type | Description |
|---|---|---|
attempts | Int! | Preview. How many times applying the line was tried. |
code | String | Preview. Why the line was refused or skipped. |
detail | String | Preview. Detail for the code. |
evidenceBasis | BulkChangeEvidenceBasis | Preview. What decided the settlement. |
evidenceFlag | String | Preview. Set when a later report contradicts a person's verdict. |
evidenceRevision | Int | Preview. The revision of the report that decided it. |
lastErrorCode | String | Preview. The code of the last retryable error. |
ordinal | Int! | Preview. Position in the creator's own input, starting at 1. |
overrideChanged | Boolean! | Preview. Whether the line was applied over a change made since the original. |
postedAt | String | Preview. When the line was applied. |
postedRevision | Int | Preview. The configuration revision the application produced. |
postedValue | String | Preview. The value that was applied, as JSON. |
posting | BulkChangeLinePosting! | Preview. What happened when the line was applied. |
prior | String | Preview. The value the device held before, as JSON. Null until the line is applied. |
redacted | Boolean! | Preview. Whether the line's identifiers were erased. |
resolutionNote | String | Preview. The resolution's shared note. Null once redacted. |
resolvedAt | String | Preview. When it was resolved. |
resolvedBy | String | Preview. Sign-in name of the person who resolved the line. |
reversedBy | BulkChangeLine | Preview. The applied line of a reversal that restored this line's earlier value. Null while nothing has. |
settleBy | String | Preview. When the device must have answered. |
settledAt | String | Preview. When the line was settled. |
settlement | BulkChangeLineSettlement | Preview. The device's answer, once there is one. |
targetToken | String | Preview. Token of the target device. Null for an input that named no device and once the device has been deleted. |
BulkChangeLineSearchResults
object
Preview. One page of an operation's lines.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Preview. Where this page sits in the full result. |
results | [BulkChangeLine!]! | Preview. The lines on this page, in ordinal order. |
BulkChangePlan
object
Preview. What an operation would do, computed without writing anything.
| Field | Type | Description |
|---|---|---|
admittedCount | Int! | Preview. Lines that would be applied. |
contractDigest | String! | Preview. Digest to present to start the operation. |
planDigest | String! | Preview. Digest of the plan. |
refusalCounts | [BulkChangePlanRefusalCount!]! | Preview. Refusals by code, counted in full. |
refusals | [BulkChangePlanRefusal!]! | Preview. The first 100 refusals of each code, each with the token supplied. |
refusedCount | Int! | Preview. Lines that were refused at plan time. |
requestDigest | String! | Preview. Digest of the request. |
BulkChangePlanRefusal
object
Preview. An input a plan refused.
| Field | Type | Description |
|---|---|---|
code | String! | Preview. Why: TARGET_NOT_FOUND or DUPLICATE_TARGET. |
ordinal | Int! | Preview. Position in the creator's input. |
token | String! | Preview. The token as supplied. |
BulkChangePlanRefusalCount
object
Preview. How many inputs a plan refused for one code.
| Field | Type | Description |
|---|---|---|
code | String! | Preview. The refusal code. |
count | Int! | Preview. How many inputs were refused for it, in full. |
BulkChangeProgress
object
Preview. Line counts of one operation, grouped by state, as of this read.
| Field | Type | Description |
|---|---|---|
ambiguous | Int! | Preview. Applied lines with no answer in time. |
awaitingEvidence | Int! | Preview. Applied lines still waiting for the device's answer. |
cancelled | Int! | Preview. Lines cancelled by an abort. |
confirmed | Int! | Preview. Applied lines the device confirmed. |
failed | Int! | Preview. Applied lines the device rejected. |
planned | Int! | Preview. Lines not applied yet. |
posted | Int! | Preview. Lines applied. |
refused | Int! | Preview. Lines refused. |
resolved | Int! | Preview. Ambiguous lines a person has resolved. |
skipped | Int! | Preview. Lines skipped. |
superseded | Int! | Preview. Applied lines overtaken by a newer configuration. |
BulkChangeReadiness
object
Preview. Whether this instance can run bulk changes. May change in a minor release while in preview.
| Field | Type | Description |
|---|---|---|
enforcement | BulkChangeEnforcement! | Preview. Whether the database enforces the device attribute writer protocol. |
executableKinds | [String!]! | Preview. Operation kinds the caller can run now: the kinds the answering service build executes, while enforcement is ENFORCED and orphanedAttributeRows is 0. Empty otherwise. |
orphanedAttributeRows | Int | Preview. Device attribute and generation rows in the caller's tenant whose device no longer exists, counted fresh for this request, including soft-deleted attributes. Bulk changes are not activated while this is above zero. Null when the count could not be read; the error names why, and the other facts are still answered. |
protocolVersion | Int! | Preview. Highest bulk-change protocol version the answering service build follows. |
BulkChangeResumePreview
object
Preview. What resuming an operation with a given change would do, computed without writing anything.
| Field | Type | Description |
|---|---|---|
contract | String! | Preview. The contract in force, as canonical JSON. |
contractDigest | String! | Preview. Digest to present to resume. |
contractVersion | Int! | Preview. Version of the contract in force. |
stepUpRequired | Boolean! | Preview. Whether the change needs a fresh second factor. Always false in this release. |
thresholdStillExceeded | Boolean! | Preview. Whether the failure or ambiguity limit is still reached, which refuses a resume. |
withinContract | Boolean! | Preview. Whether the change stays within what was approved. |
BulkChangeReversalPreview
object
Preview. What a reversal would do, computed without writing anything.
| Field | Type | Description |
|---|---|---|
alreadyReversedCount | Int! | Preview. Lines another reversal already restored. |
changedSinceCount | Int! | Preview. Of those, lines whose value changed after the original was applied, as of this read. Each is refused with CHANGED_SINCE unless overridden. |
contractDigest | String! | Preview. Digest to present to start the reversal. |
notPostedCount | Int! | Preview. Selected lines that were never applied. |
planDigest | String! | Preview. Digest of the plan. |
redactedCount | Int! | Preview. Lines whose earlier value was erased with their device. |
requestDigest | String! | Preview. Digest of the request. |
reversibleCount | Int! | Preview. Lines that would be applied. |
BulkChangeSafety
object
Preview. The limits an operation was approved to run under, and the values currently in force.
| Field | Type | Description |
|---|---|---|
ambiguityThreshold | Int | Preview. Ambiguous lines that pause the operation. Null for no limit. |
effectiveAmbiguityThreshold | Int | Preview. The ambiguity limit currently in force. |
effectiveFailureThreshold | Int | Preview. The failure limit currently in force. |
effectivePostsPerSecond | Int! | Preview. The rate currently in force, never above the approved one. |
failureThreshold | Int | Preview. Failed lines that pause the operation. Null for no limit. |
maxPostsPerSecond | Int! | Preview. The most lines applied per second that was approved. |
settleDeadlineSeconds | Int! | Preview. Seconds a device has to answer before its line becomes ambiguous. |
BulkChangeSearchResults
object
Preview. One page of operations.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Preview. Where this page sits in the full result. |
results | [BulkChange!]! | Preview. The operations on this page, newest first. |
CalculatedBackfillRosterEntry
object
One device of the profile a backfill walks.
| Field | Type | Description |
|---|---|---|
constants | [DeviceConstant!]! | The requested constant names the device's metadata holds; empty when it holds none. |
createdAt | String! | When the device was created, RFC 3339 in UTC. |
deviceId | String! | The device's id, the cursor's unit. |
deviceToken | String! | The device's token. |
CalculatedBackfillRosterPage
object
One page of the devices a calculated-metric backfill walks.
| Field | Type | Description |
|---|---|---|
entries | [CalculatedBackfillRosterEntry!]! | The devices on this page, in device order. |
nextCursor | String | The cursor to pass as afterId for the next page; null when the walk is complete. |
total | Float | How many devices the whole walk covers; set on the first page only, null after. |
CalculatedMetricPlan
object
The calculated metrics of one published profile version, as the live resolver runs them.
| Field | Type | Description |
|---|---|---|
activeSince | String | When the version became active; null unless it is the profile's active version. |
calculated | [CalculatedMetricPlanMetric!]! | The calculated metrics in the order the resolver evaluates them: a formula follows the ones it reads, and by key otherwise. A metric whose data type no formula can produce comes last, by key. |
constantKeys | [String!]! | The device constants the formulas read together, sorted and distinct. |
measured | [CalculatedMetricPlanInput!]! | The measured metrics the formulas may read, in declaration order. |
version | Int! | The version number. |
versionToken | String! | The version's token, profileToken@version. |
CalculatedMetricPlanInput
object
One measured metric a calculated metric's formula may read.
| Field | Type | Description |
|---|---|---|
dataType | String! | The metric's data type: DOUBLE, INT, BOOLEAN or STRING. |
key | String! | The metric's key. |
CalculatedMetricPlanMetric
object
One calculated metric of a published profile version.
| Field | Type | Description |
|---|---|---|
changedSinceEarlier | Boolean! | True when an earlier published version calculated this key under a different expression, data type or bounds, so values computed then differ from what this version's formula gives. |
classifier | Float! | The metric definition's id, stamped on every value of it as its classifier. |
constants | [String!] | The device constants the formula reads, including through the calculated metrics it reads, sorted and distinct. Null exactly when inputs is. |
dataType | String! | The declared result type: DOUBLE, INT or BOOLEAN. |
expression | String! | The formula source, a CEL expression over the version's other metrics. |
inputs | [String!] | The metric keys the formula reads directly, measured or calculated, as this version compiles it. Null when the metric cannot run in this version (its formula does not compile here, or no formula can produce its data type), so it computes from nothing. |
key | String! | The metric's key. |
maxValue | Float | The inclusive upper bound a computed value must meet, if the definition has one. |
measuredInputs | [String!] | The measured metrics the formula's value is computed from, including those read through the calculated metrics it reads, in the order of measured. Null exactly when inputs is. |
minValue | Float | The inclusive lower bound a computed value must meet, if the definition has one. |
nameSharedWithOtherProfiles | Boolean! | True when another device profile of the tenant declares a metric (measured or calculated) with this key in its active version. Tenant-wide readings counted by metric name then include that profile's readings, so a count under this name cannot show this formula is working. Also true when the check could not be completed: more candidate versions than its bound, or another profile's version that could not be read. |
newInVersion | Boolean! | True when the previous published version did not calculate this key (a first calculation, or one reinstated after a version without it). |
unit | String | The unit stamped on computed values, if the definition has one. |
CommandChannelAccess
object
What the HTTP command endpoints learn about a device that proved its access token.
| Field | Type | Description |
|---|---|---|
commandChannel | String | The type's command channel: PUBLISH, HTTP_PULL, or null for the default (PUBLISH). |
deviceToken | String! | Token of the device the access token belongs to. |
deviceTypeToken | String! | Token of the device's type. |
CommandDefinition
object
A command the devices of a profile accept, with the parameters its payload must satisfy. Once the profile is published, a command sent to such a device must use one of the published keys, and its payload is checked against the parameters.
Implements Model, TokenReference, NamedEntity, MetadataEntity
| Field | Type | Description |
|---|---|---|
commandKey | String! | The key used to send this command, unique within the profile. Letters, digits, hyphens and underscores, starting with a letter or digit; at most 128 characters. Dots may separate namespaced segments (for example sparkplug.write): each segment follows the same rule, and a leading, trailing or doubled dot is refused. |
createdAt | String | When the command definition was created, as an RFC 3339 timestamp. |
deletedAt | String | Always null: deleted command definitions are not returned. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
deviceProfile | DeviceProfile! | The profile this command is declared on. |
encoder | String | Optional declarative LoRaWAN payload encoder JSON. Null keeps the raw payload contract. |
id | ID! | Server-assigned numeric identifier, as a string. Address a command definition by its token instead where you can. |
impact | String! | How disruptive the command is to the device's work: NORMAL (a read or a benign write), DISRUPTIVE (interrupts it, such as a reboot) or DESTRUCTIVE (erases state, such as a wipe). DISRUPTIVE and DESTRUCTIVE commands wait for the device type's maintenance window when it has one; NORMAL commands never do. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
parameterSchema | String | The command's parameters as a JSON array of parameter descriptors, or null when the command takes no structured arguments, in which case payloads are not checked. |
token | String! | Identifier of the command definition, unique within the tenant. |
updatedAt | String | When the command definition was last written, as an RFC 3339 timestamp. |
CommandDefinitionSearchResults
object
One page of command definitions matching a search.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [CommandDefinition!]! | The command definitions on this page. |
CommandDispatchHold
object
A command bound to one opening of its device type's maintenance window: it may be sent only between dispatchAfter and dispatchUntil. When the window is open now, dispatchAfter is already past and the command may be sent at once, but only until the window closes.
| Field | Type | Description |
|---|---|---|
deviceToken | String! | Token of the device the command is for. |
dispatchAfter | String! | The earliest instant the command may be sent, as an RFC 3339 timestamp. |
dispatchUntil | String! | When the opening closes, as an RFC 3339 timestamp. The command may not be sent at or after it. |
windowToken | String! | Token of the maintenance window that gates the command. |
CommandDispatchImpact
object
One device's command impact, decided together with its dispatch schedule.
| Field | Type | Description |
|---|---|---|
deviceToken | String! | Token of the device. |
impact | String! | NORMAL, DISRUPTIVE or DESTRUCTIVE. |
CommandDispatchSchedule
object
The maintenance-window part of an enqueue decision for one or many devices: which commands must wait, and which are refused because the window opens only after they expire.
| Field | Type | Description |
|---|---|---|
holds | [CommandDispatchHold!]! | Commands gated by a window, whether it is open now or not. A device not listed here and not refused may be sent to at any time. |
impacts | [CommandDispatchImpact!]! | For every device that exists, is enabled and whose device type's current profile version defines the command, the impact (NORMAL, DISRUPTIVE or DESTRUCTIVE) it carries. It is the classification the maintenance-window gate decided on, so a transport that gates on impact reads the same answer. A device that does not exist, is disabled, or whose type does not define the command has no entry. |
refusals | [BatchEnqueueRefusal!]! | Devices refused with the stable code WINDOW_AFTER_EXPIRY: the window next opens after the command expires, so it could only lapse unsent. Branch on code, not reason. |
undefined | [String!]! | Devices that exist and are enabled, but whose device type's current profile version does not define this command at all. |
ungated | [String!]! | Devices that exist, are enabled, and whose device type does not gate this command: no maintenance window, or a command that is not DISRUPTIVE or DESTRUCTIVE. Asked with alreadyHeld, only a device type with no maintenance window makes a device ungated. A device in none of the four lists does not exist or is disabled, and nothing is decided about it. |
CommandEnqueueVerdict
object
Whether a command may be sent to a device. A refusal is reported here rather than as a GraphQL error; an error means the check itself could not be made.
| Field | Type | Description |
|---|---|---|
allowed | Boolean! | True when the command may be sent. |
code | String | Why the command was refused, as a stable code; null when allowed. One of DEVICE_NOT_FOUND (no device has the token), DEVICE_DISABLED (the device is disabled and accepts no commands), COMMAND_NOT_IN_VOCABULARY (the device's published profile declares commands and this key is not one of them) PAYLOAD_SCHEMA_VIOLATION (the payload does not satisfy the command's parameters) or COMMAND_DESTRUCTIVE_REFUSED (a raw execute of an operation that wipes the device, such as LwM2M Factory Reset). Branch on this, not on reason. |
reason | String | Why the command was refused, in words a person can act on; null when allowed. The wording may change; use code to decide what to do. |
ConfigurationKey
object
One shared attribute key declared as device-visible configuration on a device profile.
| Field | Type | Description |
|---|---|---|
description | String | An optional human-readable note. |
key | String! | The shared attribute key. |
valueType | String! | How the key's value is typed: STRING, LONG, DOUBLE, BOOLEAN or JSON. |
CustomPrefix
object
A custom prefix and the namespace it stands for.
| Field | Type | Description |
|---|---|---|
namespace | String! | The namespace IRI the prefix expands to. |
prefix | String! | The prefix, as written before the colon in a CURIE (city in city:SmartBin). |
Customer
object
A customer: an organisation or person that devices are assigned to. A member's access can be limited to the devices of particular customers.
Implements Model, TokenReference, NamedEntity, MetadataEntity, Entity
| Field | Type | Description |
|---|---|---|
createdAt | String | When the customer was created, as an RFC 3339 timestamp. |
customerType | CustomerType! | The customer type this customer is an instance of. |
deletedAt | String | Always null: deleted customers are not returned. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
id | ID! | Server-assigned numeric identifier, as a string. Address a customer by its token instead where you can. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
token | String! | Identifier of the customer, unique within the tenant. It cannot be changed after creation. |
updatedAt | String | When the customer was last written, as an RFC 3339 timestamp. |
CustomerSearchResults
object
One page of customers.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [Customer!]! | The customers on this page. |
CustomerType
object
A type, or class, of customers: configuration shared by every customer that references it.
Implements Model, TokenReference, NamedEntity, BrandedEntity, MetadataEntity
| Field | Type | Description |
|---|---|---|
backgroundColor | String | Background colour to display the customer type with, up to 32 characters. Not validated. Null when none is set. |
borderColor | String | Border colour to display the customer type with, up to 32 characters. Not validated. Null when none is set. |
createdAt | String | When the customer type was created, as an RFC 3339 timestamp. |
deletedAt | String | Always null: deleted customer types are not returned. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
foregroundColor | String | Foreground (text) colour to display the customer type with, up to 32 characters. Not validated. Null when none is set. |
icon | String | Name of an icon representing the customer type, up to 128 characters. Not checked against any icon set. Null when none is set. |
id | ID! | Server-assigned numeric identifier, as a string. Address a customer type by its token instead where you can. |
imageUrl | String | URL of an image representing the customer type, up to 512 characters. Null when none is set. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
semanticTypes | [SemanticTerm!] | The classes this type is, as terms of the vocabularies the tenant has enabled; empty when it is bound to none. Each carries its expanded IRI and a display CURIE. Null only when the terms could not be rendered, with an error saying why. |
token | String! | Identifier of the customer type, unique within the tenant. It cannot be changed after creation. |
updatedAt | String | When the customer type was last written, as an RFC 3339 timestamp. |
CustomerTypeSearchResults
object
One page of customer types.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [CustomerType!]! | The customer types on this page. |
DetectionRule
object
A detection rule declared on a device profile. The rule body, definition, is an opaque JSON document: device-management stores it with the profile's draft but does not interpret the detection language. It is compiled and cost-checked by the detection engine when the profile is published, and a rule takes effect on devices only through a published profile version. Edge-triggered rules raise and resolve alarms; an operator acknowledges and clears the alarms through the alarm mutations.
Implements Model, TokenReference, NamedEntity, MetadataEntity
| Field | Type | Description |
|---|---|---|
authoredVia | [AuthoredVia!]! | Sorted set of all recorded save doors. Saves accumulate doors, so editing through FORM never hides DESCRIBE. Legacy NULLs read UNKNOWN. |
authoringGraph | String | The visual automation canvas document the rule was authored with, as JSON, so the console can reopen it on the canvas. Null for a rule authored as a form. Authoring metadata only: it is stored verbatim, never interpreted by the platform, and not part of what a profile publish freezes. |
createdAt | String | When the rule was created, as an RFC 3339 timestamp. |
definition | String! | The authored rule as a JSON document in the detection engine's rule language. Stored as written once it parses as JSON; the engine validates its type and cost when the profile is published. |
deletedAt | String | Always null: a deleted rule is removed outright and is not returned. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
deviceProfile | DeviceProfile! | The device profile the rule is declared on. |
enabled | Boolean! | Whether the rule is live. A disabled rule is kept on the profile but is left out of the rules a published version runs. |
entityGroupToken | String | Token of the dynamic entity group that scopes the rule, or null for a rule that applies to every device of the profile. Set together with entityGroupVersion: the engine fires the rule only for events whose entity is a member of that published group version. |
entityGroupVersion | Int | Published version of the entity group that scopes the rule. Null exactly when entityGroupToken is null. |
id | ID! | Server-assigned numeric identifier, as a string. Address a rule by its token instead where you can. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
token | String! | Identifier of the rule, unique within the tenant. It cannot be changed after creation. |
updatedAt | String | When the rule was last written, as an RFC 3339 timestamp. |
DetectionRuleSearchResults
object
One page of detection rules.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [DetectionRule!]! | The rules on this page. |
Device
object
A device: one connected thing the platform receives events from and sends commands to. What it measures and accepts comes from its device type's profile.
Implements Model, TokenReference, NamedEntity, MetadataEntity, Entity
| Field | Type | Description |
|---|---|---|
aliases | [DeviceAlias!] | The names a sender other than the platform knows this device by, such as a LoRaWAN DevEUI, ordered by scheme. An inbound integration finds the device by one of these. Empty when the device has none. Null, and never an empty list, for a caller limited to part of the tenant: aliases are not shown to it. |
children | DeviceSearchResults! | The devices behind this device, one page at a time. Empty unless the device is a gateway. Requires device:read. Arguments: pagination: PaginationInput! — Which page to return. |
createdAt | String | When the device was created, as an RFC 3339 timestamp. |
deletedAt | String | Always null: deleted devices are not returned. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
deviceType | DeviceType! | The device's type. |
disabledAt | String | When the device was disabled, as an RFC 3339 timestamp; null while it is enabled. |
enabled | Boolean! | False when the device has been disabled. A disabled device's events are discarded rather than stored, it cannot open a new broker connection, and commands sent to it are refused with DEVICE_DISABLED. Its data, credentials and configuration are kept. |
expectedProvisioningProfile | ProvisioningProfile | The provisioning profile this device is earmarked for, or null when it is earmarked for none (or the profile was deleted). Only that profile may adopt it when it registers itself. Requires device:read, unscoped. |
externalId | String | Optional business identifier you assign, such as a serial number or VIN, up to 256 characters. Unique within the tenant when set. It is only a lookup key: devices are not addressed or authenticated by it. |
gateway | Device | The gateway this device is behind, or null when it is behind none. Only that gateway's credential may publish this device's telemetry on the gateway's own topics; the device's own credential still works as before. |
id | ID! | Server-assigned numeric identifier, as a string. Address a device by its token instead where you can. |
installedPosition | InstalledPosition | Where the device was installed, for a device that is fixed in place. Needs location:installed:read (location:read includes it). Null for a caller without it, and null when no position was recorded. This is installation data only: it never falls back to a position the device reported, even when the device also reports GPS. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
positionWithheld | Boolean! | Whether installedPosition is withheld from this caller. It concerns the INSTALLED position only, not any position the device reports. True for every device a caller without location:installed:read (or location:read) reads, whether or not the device has an installed position, and false for every device a caller with it reads. It depends on the caller alone, so it does not reveal whether a position exists. |
token | String! | Identifier of the device, unique within the tenant. It cannot be changed after the device is created. |
updatedAt | String | When the device was last written, as an RFC 3339 timestamp. |
DeviceAlias
object
One name a sender other than the platform knows a device by. The pair is unique within the tenant, and a device has at most one value per scheme.
| Field | Type | Description |
|---|---|---|
scheme | String! | Whose vocabulary the value is in: lorawan.deveui, tts.device-id, or custom.<name> for a name you chose. |
value | String! | The value in its stored spelling. A lorawan.deveui value is 16 upper-case hexadecimal digits whatever case it was written in, and a tts.device-id value is lower case. |
DeviceClaim
object
A device's possession claim: a one-time, optionally expiring secret that an eventual owner presents to assign the device to a customer. The claim secret is write-only and is never exposed on this type; only a keyed digest is stored.
Implements Model
| Field | Type | Description |
|---|---|---|
claimedByCustomer | Customer | The customer the device was assigned to when the claim was redeemed. Null unless the claim has been redeemed. |
claimedTime | String | When the claim was redeemed, as an RFC 3339 timestamp. Null unless the claim has been redeemed. |
createdAt | String | When the claim was first opened, as an RFC 3339 timestamp. |
deletedAt | String | When the claim was deleted, as an RFC 3339 timestamp; null for a live claim. |
device | Device! | The device the claim is on. A device has a single claim, which initiating again reopens. |
expiresAt | String | When the claim stops being redeemable, as an RFC 3339 timestamp. Null means it does not expire. Redeeming an expired claim is refused. |
id | ID! | Server-assigned numeric identifier, as a string. |
status | String! | OPEN while the claim can be redeemed, CLAIMED once it has been redeemed, CANCELED once it was closed without assigning the device. |
updatedAt | String | When the claim was last written, as an RFC 3339 timestamp. |
DeviceCommandVocabulary
object
The commands a device currently accepts, from its profile's active published version.
| Field | Type | Description |
|---|---|---|
commands | [PublishedCommand!]! | The accepted commands; empty when not constrained. |
constrained | Boolean! | True when the device accepts only the listed commands. False when its published profile declares no commands, or it has no published profile: any command key is then accepted, and commands is empty. |
DeviceConfiguration
object
A device's configuration: the latest revision it should hold, what it last reported, and whether the two agree.
| Field | Type | Description |
|---|---|---|
desired | DeviceConfigurationRevision | The latest minted revision, or null when none has been minted for this device. |
invalid | [String!]! | Declared keys whose stored value cannot be carried as the declared value type (written with another type, or unparseable). They are left out of the document. |
pending | Boolean! | True when a revision exists and the device has not reported APPLIED for that same revision with that same digest. Equal values under a different revision or digest do not count as applied. |
reported | DeviceConfigurationReport | The device's last report, or null when it has never reported. |
stale | Boolean! | True when the document the device's current profile declaration and shared attributes would build differs from the latest revision - for example after a profile publish declared new keys. A newer revision is minted when a declared key is next written or the device next synchronizes. |
undeclared | [String!]! | The device's shared attribute keys that its declaration does not name. They are never part of the document. |
DeviceConfigurationReport
object
The configuration state a device last reported. Written only from the device's own reports; no mutation sets it.
| Field | Type | Description |
|---|---|---|
digest | String | The digest the device reported for that revision. |
errors | [String!]! | The device's reasons for a REJECTED report; empty otherwise. |
lastSyncAt | String | When the device last asked for its configuration. |
reportedAt | String | When the device made the report. |
revision | Int | The revision the device reported, or null when it has not reported one. |
status | String | RECEIVED, APPLIED or REJECTED. |
DeviceConfigurationRevision
object
One immutable revision of a device's configuration document: the values of the shared attribute keys its profile's active published version declares as device-visible. Revisions are append-only; a new one is minted only when the document changes.
| Field | Type | Description |
|---|---|---|
actor | String! | The authenticated subject whose attribute change minted the revision; empty when none was recorded. |
createdAt | String | When the revision was minted. |
digest | String! | "sha256:" followed by the lowercase hex SHA-256 of the document bytes. A device converges on a revision by reporting this revision number and this digest. A device hashes the bytes it receives and never re-serializes them to check the digest. |
document | String! | The document as canonical JSON text: an object of declared key to typed value with keys sorted. These are exactly the bytes the digest covers. |
revision | Int! | The revision number: 1 for the device's first document and one higher for each later one. A number is never reused for the same device. |
DeviceConfigurationRevisionSearchResults
object
A page of a device's configuration revisions, newest first.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the device's whole revision history. |
results | [DeviceConfigurationRevision!]! | The revisions on this page, highest revision number first. |
DeviceConstant
object
One constant a device holds under a requested name.
| Field | Type | Description |
|---|---|---|
key | String! | The name. |
number | Float | The value, or null when the device's metadata holds the name but not a finite number (a string, a boolean, null, an object): present and unusable, which is not absent. |
DeviceConstantsEntry
object
The requested constants one device holds.
| Field | Type | Description |
|---|---|---|
constants | [DeviceConstant!]! | The requested names the device's metadata holds. |
deviceToken | String! | The device's token. |
DeviceConstantsPage
object
One page of device constants.
| Field | Type | Description |
|---|---|---|
entries | [DeviceConstantsEntry!]! | The devices on this page that hold at least one requested name. |
nextCursor | String | The cursor to pass as afterId for the next page; null when the walk is complete. |
DeviceCredential
object
Authentication material for a device, which can be rotated. A device has any number of credentials; each is one of ACCESS_TOKEN, MQTT_BASIC or X509_CERTIFICATE. Secrets are stored only as keyed digests: an access token is returned once, in the response to the write that set it, and no password or secret is ever returned on a read. Reading credentials requires device:write, because whoever could read them could impersonate the device.
Implements Model, TokenReference, MetadataEntity
| Field | Type | Description |
|---|---|---|
certificate | X509Certificate | The certificate an X509_CERTIFICATE credential pins, or null for any other type. Requires device:read, unscoped. |
createdAt | String | When the credential was created, as an RFC 3339 timestamp. |
credentialId | String! | What the device presents. For MQTT_BASIC, the username. For ACCESS_TOKEN, the access token itself ONLY in the response to the create, update or replacement that set it, which is the one time it can be read: the platform stores an access token as a keyed digest and cannot return it afterwards. Every later read returns a fingerprint that identifies the credential and cannot be presented as the token. If the token is lost, set a new one with updateDeviceCredential. For X509_CERTIFICATE it is the SHA-256 of the device certificate (hex), computed by the server; it is public and is not something a device presents. |
credentialType | String! | The kind of credential: ACCESS_TOKEN, MQTT_BASIC or X509_CERTIFICATE. |
credentialValue | String | Always null. It is accepted when a credential is written but never returned, so a stored secret such as an MQTT_BASIC password cannot be read back out through the API. |
deletedAt | String | Always null: a deleted credential is removed outright and is not returned. |
device | Device! | The device this credential authenticates. |
enabled | Boolean! | Whether the credential can authenticate. A disabled credential is kept but refused at connect. |
expiresAt | String | When the credential stops authenticating, as an RFC 3339 timestamp. Null means it never expires. |
id | ID! | Server-assigned numeric identifier, as a string. Address a credential by its token instead where you can. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
provisioningProfile | ProvisioningProfile | The provisioning profile whose registration issued this credential, or null for a credential an operator created. Requires device:read, unscoped. |
token | String! | Identifier of the credential record, unique within the tenant. It is not what a device presents; see credentialId. |
updatedAt | String | When the credential was last written, as an RFC 3339 timestamp. |
DeviceCredentialSearchResults
object
One page of device credentials.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [DeviceCredential!]! | The credentials on this page. |
DeviceDecoderPlan
object
What the ingest path needs to know about the payload decoder of a device's type.
| Field | Type | Description |
|---|---|---|
composedCost | Int! | The part of the static worst-case cost that does not depend on the size of the uplink. |
input | PayloadDecoderInput | The input an uplink must carry for the decoder to run; null when there is no decoder. |
maxReadings | Int! | The most readings one decode produces; 0 when there is no decoder this build can run. |
parsesJson | Boolean! | Whether the decoder reads the JSON body, parsed and priced by size. |
present | Boolean! | Whether the active published version declares a decoder, usable or not. |
profileVersionToken | String! | The profile version the answer is for, as "{profile}@{version}"; empty when there is no decoder. |
DeviceGroupTargetPage
object
One page of the devices an entity group contains, for use as the target of a command.
| Field | Type | Description |
|---|---|---|
code | String | Why the group was refused, as a stable code; null when not rejected. One of GROUP_NOT_FOUND, GROUP_NOT_A_DEVICE_GROUP (it contains something other than devices), GROUP_NOT_PUBLISHED (a dynamic group that was never published), GROUP_VERSION_NOT_FOUND (the requested version does not exist) or GROUP_NOT_VERSIONED (a version was requested for a static group). |
deviceTokens | [String!]! | The device tokens on this page, in ascending order of the devices' ids. |
nextCursor | String | Opaque cursor to pass as afterId for the next page. Null when this page holds fewer tokens than the limit; a full page always carries a cursor, so a walk can end with an empty page. |
reason | String | Why the group was refused, in words a person can act on; null when not rejected. |
rejected | Boolean! | True when the group cannot be a command target. code and reason then explain why, and the empty deviceTokens list does not mean the group has no members. |
resolvedVersion | Int | The dynamic group's published version this page was resolved from; null for a static group. |
DeviceImportResult
object
The per-row outcomes of an importDevices call, with their totals.
| Field | Type | Description |
|---|---|---|
conflict | Int! | Rows that clash with an existing device or one of its unique values; nothing was written for them. |
created | Int! | Rows whose device was created (on a dry run: would be created). |
dryRun | Boolean! | True when nothing was written. |
exists | Int! | Rows whose device already exists exactly as described, so nothing was written. |
invalid | Int! | Rows refused because a value is malformed, missing or duplicated within the file. |
refused | Int! | Rows refused because what they ask for is not supported, such as an unsupported credential type. |
rows | [DeviceImportRowResult!]! | One outcome per request row, in request order. |
DeviceImportRowResult
object
The outcome of one row of an import.
| Field | Type | Description |
|---|---|---|
code | String | A machine-readable reason for every outcome but CREATED and EXISTS: CONFLICT, INVALID_VALUE, NOT_FOUND, LIMIT_EXCEEDED, DUPLICATE_IN_FILE or UNSUPPORTED. |
message | String | What is wrong. It never contains a credential secret, but may repeat a token the row supplied, such as a device type token. |
outcome | DeviceImportOutcome! | What happened to this row: created, already present unchanged, in conflict with an existing device, invalid, or refused. |
row | Int! | The row's position in the request, starting at 1. |
token | String! | The row's device token. |
DeviceLocationCapability
object
Whether a device reports its own position, according to the active published version of its profile (not the draft). Location data is accepted whether or not it is declared, so an undeclared device may still have stored positions.
| Field | Type | Description |
|---|---|---|
declaration | DeviceLocationDeclaration | The declaration, or null when declared is false. An empty object is a real answer: the device reports position and no expectations are stated. |
declared | Boolean! | True when the published version declares that the device reports position. False when the device's type has no profile, the profile was never published, or the published version declares nothing. |
DeviceLocationDeclaration
object
A statement that devices report their own position, with what to expect of it. The object being present is the statement; both fields are optional, so an empty object still means the devices report position. It is descriptive only: location data is accepted and stored whether or not a declaration exists.
| Field | Type | Description |
|---|---|---|
expectedAccuracyMeters | Float | Horizontal accuracy to expect from these devices, in metres, or null when not stated. Descriptive only: a less accurate fix is still stored unchanged. |
expectedUpdateIntervalSeconds | Int | How often a position fix is expected, in seconds, or null when not stated. Descriptive only: nothing is raised when fixes arrive less often. |
DeviceMetricVocabulary
object
The metrics a device's measurements are validated against, from the active published version of its profile (not the draft).
| Field | Type | Description |
|---|---|---|
metrics | [PublishedMetric!]! | The published metrics. Empty when the device's type has no profile, the profile was never published, or the published version declares no metric. Empty does not mean the device may send nothing: a measurement whose key is not declared is accepted without validation, provided its value is a number. |
DeviceProfile
object
The capability contract a device type adopts: the metrics its devices report, the commands they accept, the detection rules evaluated against them and whether they report their own position. What you edit is a draft; publishDeviceProfile freezes the draft into a numbered version, and devices use only the active published version. Many device types may share one profile.
Implements Model, TokenReference, NamedEntity, MetadataEntity
| Field | Type | Description |
|---|---|---|
activations | DeviceProfileActivationPage! | The profile's activation log, newest first: every time a version became the one devices resolve, by publish or by rollback. Use it to find which version was active at a given time: it is the entry with the latest activatedAt not after that time. The log begins when the platform release that introduced it was installed, so a profile last activated before that has no entry for that activation; treat the absence as unknown, not as inactive. Page with first and after. Requires device:read. Arguments: after: String — The nextCursor of the previous page. Omit it to start at the newest entry. A malformed cursor fails the request.first: Int — Maximum number of entries to return, at least 1. Omitted, or above 1000, it is 1000; below 1 is refused. |
activeProfileVersion | DeviceProfileVersion | The published version a device currently resolves through this profile, with the content frozen into it, or null until the profile is first published. Read the declaration devices actually see from here, not from the draft fields above. |
activeVersion | Int | The published version devices currently use, or null if the profile has never been published. Until then devices of this profile have no declared metrics or commands. |
category | String | Functional class of the devices, such as thermostat or meter: free text, up to 64 characters. facetValues lists the values already in use. |
commandDefinitions | [CommandDefinition!]! | The command definitions in the draft. Devices use the active published version, so a change here takes effect only when the profile is published. |
configurationDeclaration | [ConfigurationKey!]! | The profile's DRAFT device-visible configuration declaration: the shared attribute keys a device of this profile may see. Empty when nothing is declared, in which case a device sees an empty document. Like every draft field, it reaches devices only when the profile is published; the declaration frozen into each published version never changes. |
createdAt | String | When the profile was created, as an RFC 3339 timestamp. |
decoder | PayloadDecoder | The profile's DRAFT payload decoder: the rules that turn a binary frame or a webhook's JSON into measurements, or null when none is saved. Like every draft field, it reaches devices only when the profile is published; the decoder frozen into each published version never changes. |
deletedAt | String | Always null: deleted profiles are not returned. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
detectionRules | [DetectionRule!]! | The detection rules in the draft. Devices use the active published version, so a change here takes effect only when the profile is published. |
deviceTypeCount | Int! | Number of device types that currently adopt this profile. |
id | ID! | Server-assigned numeric identifier, as a string. Address a profile by its token instead where you can. |
location | DeviceLocationDeclaration | The draft position declaration: present when devices of this profile report their own position, null when they do not. Like the other draft content, it reaches devices only when the profile is published. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
metricDefinitions | [MetricDefinition!]! | The metric definitions in the draft. Devices use the active published version, so a change here takes effect only when the profile is published. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
token | String! | Identifier of the profile, unique within the tenant. It can be changed with renameDeviceProfile only while the profile has never been published and no device type currently adopts it. |
updatedAt | String | When the profile was last written, as an RFC 3339 timestamp. |
DeviceProfileActivation
object
One moment a profile version became the version devices resolve.
| Field | Type | Description |
|---|---|---|
activatedAt | String! | When it became active, as an RFC 3339 timestamp in UTC. For a rollback this is when the rollback happened, not when the version was published. |
activatedBy | String | Who did it: their username, or their email when there is no username. Null when not recorded. |
kind | String! | Why it became active: PUBLISH when the version was just published, ROLLBACK when an earlier version was made active again. |
version | Int! | The version that became active. |
DeviceProfileActivationPage
object
One page of a profile's activation log.
| Field | Type | Description |
|---|---|---|
entries | [DeviceProfileActivation!]! | The entries on this page, newest first. |
nextCursor | String | The cursor to pass as after for the next page; null when this is the last page. |
DeviceProfileSearchResults
object
One page of device profiles matching a search.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [DeviceProfile!]! | The device profiles on this page. |
DeviceProfileVersion
object
An immutable, published snapshot of a profile's metric, command and detection-rule definitions and its position declaration. Versions are never deleted while the profile exists; rollbackDeviceProfile makes an earlier one active again.
| Field | Type | Description |
|---|---|---|
authoredVia | [AuthoredVia!]! | Sorted set of save doors of all frozen draft rules, including disabled rules. A later save adds a door and never erases DESCRIBE. UNKNOWN includes legacy rules; an empty rule set reads UNKNOWN. Frozen at publish. |
automationReview | AutomationReview | (Preview: may change in a minor release.) The review consumed by this version, or null when none was consumed. Requires device:read and event:read and an unscoped caller; authorization failures affect only this field. |
automationReviewToken | String | (Preview: may change in a minor release.) The automation review this version consumed when it was published, or null when it was published without one. |
commands | [PublishedCommand!]! | The commands frozen into this version, each with the impact it was published with. Empty when the version declares none, in which case a device accepts any command key. It never changes after publication. |
configurationDeclaration | [ConfigurationKey!]! | The device-visible configuration declaration frozen into this version: the shared attribute keys a device of the profile may see. Empty when the version declared nothing, including every version published before declarations existed. It never changes after publication. |
decoder | PayloadDecoder | The payload decoder frozen into this version, or null when it declared none, including every version published before decoders existed. It never changes after publication. |
description | String | Optional notes given at publish time. |
label | String | Optional label given at publish time, such as a release name. Not interpreted. |
metrics | [PublishedMetric!]! | The metrics frozen into this version, in declaration order: what a device's measurements are validated against while this version is active. Calculated metrics are included and marked. It never changes after publication. |
publishedAt | String! | When the version was published, as an RFC 3339 timestamp. |
publishedBy | String | Who published it: their username, or their email when there is no username. |
publishedById | String | Authenticated principal id (the token subject) of the publisher, taken from the caller's token and never supplied by a client. For a person it is their sign-in email, which cannot be changed; for a service account it is service-account: followed by the account's token. A superuser acting in a tenant through break-glass is recorded by their own sign-in email. Null for versions published before it was recorded. |
thingModel | String! | This version as a W3C Web of Things Thing Model (TD 1.1), as JSON-LD text. Each metric is a read-only, observable property typed from its data type, with its unit, bounds, allowed values and descriptor (as the property's @type); each command is an action whose input is its typed parameters. A Thing Model describes every device of the profile, so it carries no device address, protocol binding or security. Detection rules, the location and configuration declarations, and metadata are not part of it. The title and description are the profile's current ones, so the text changes only when those do. A version holding a constraint a Thing Model cannot express exactly (allowed values that are not text, or that repeat once typed; bounds on a non-numeric metric) is refused with an error rather than exported without it. A descriptor is emitted as written, so it should be an absolute IRI or a prefixed term the consumer knows. Arguments: includeSemanticTypes: Boolean! = false — When true, each property's @type becomes a list, in this order and without repeats: the descriptor (when set), the metric's semantic property IRI and its semantic point class IRI (each when bound). When false, the default, the document is exactly what it has always been. |
version | Int! | Version number: 1 for the first publish of the profile, increasing by one with each publish. |
DeviceReplaceResult
object
What replaceDevice returns.
| Field | Type | Description |
|---|---|---|
device | Device! | The surviving device identity, unchanged. |
newCredential | DeviceCredential! | The credential minted for the incoming unit. This is the one moment the material the new unit must be programmed with can be read: an access token is stored only as a digest and cannot be read again, so copy it from here. |
replacement | DeviceReplacement! | The append-only record this call wrote. |
retiredCredentialTokens | [String!]! | Tokens of the credential records this call disabled. Tokens only: the records themselves stay behind the credential queries. |
DeviceReplacement
object
One append-only record of a physical unit swap: the failed hardware was retired and a new unit bound to the same logical device identity, so the device's events, alarms, relationships, group membership and command vocabulary carry forward unbroken. Written only by replaceDevice; it can be neither updated nor deleted and carries no token.
| Field | Type | Description |
|---|---|---|
actor | String! | The authenticated subject that performed the replacement, taken from the caller's token rather than the request. |
createdAt | String | When the record was written, as an RFC 3339 timestamp. |
device | Device! | The logical device identity that survived the swap, unchanged by it. |
id | ID! | Server-assigned numeric identifier, as a string. |
newCredentialToken | String! | Token of the credential record minted for the incoming unit. |
newCredentialType | String! | Type of the credential minted for the incoming unit. |
occurredTime | String! | When the replacement was applied, as an RFC 3339 timestamp from the server's clock. Never supplied by the caller. |
reason | String | The operator's free-text note, for example water ingress or an RMA number. Null when none was given. |
retiredCredentialTokens | [String!]! | Tokens of the credential records this replacement disabled. Tokens rather than credential ids, because the id of an ACCESS_TOKEN credential is the device's token. |
unitIdentifier | String | The incoming physical unit's own identifier, such as a manufacturer serial or IMEI. Recorded here and deliberately not written onto the device's external id, which is the stable business key of the logical thing and survives a swap. Null when none was given. |
DeviceReplacementSearchResults
object
One page of device replacement records, newest first.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [DeviceReplacement!]! | The records on this page. |
DeviceRevocationList
object
The current CRL of one issuer under a trust anchor. Its entries are listed through deviceRevokedCertificates.
| Field | Type | Description |
|---|---|---|
crlNumber | String! | The CRL number, as a decimal string (up to 20 octets). |
crlSha256 | String! | SHA-256 of the CRL's DER, hex. |
entryCount | Int! | How many certificates the list revokes. |
issuerKey | String! | SHA-256 of the signer's public key, hex. With issuerName, identifies the issuer. |
issuerName | String! | SHA-256 of the signer's subject, hex. |
issuerSubject | String! | The CRL signer's subject, for display. |
nextUpdate | String! | The CRL's nextUpdate, as an RFC 3339 timestamp. |
source | String! | UPLOAD. |
status | RevocationStatus! | The list's freshness now. |
thisUpdate | String! | The CRL's thisUpdate, as an RFC 3339 timestamp. |
DeviceRevocationListResult
object
The outcome of storing a revocation list.
| Field | Type | Description |
|---|---|---|
list | DeviceRevocationList! | The list now in force for the issuer. |
newlyRevoked | Int! | How many certificates the list revokes that the issuer's previous list did not. |
sessionsEnded | Boolean! | True when the live broker sessions of the devices the list newly revokes were confirmed ended. False when the list is stored and new connects are refused, but a session already open could not be confirmed ended: the retry (automatic, and on repeating the upload, which is idempotent) ends it, or its token expires. |
unchanged | Boolean! | True when this very CRL was already the current list and nothing was written. |
DeviceRevokedCertificate
object
One revoked certificate in a trust anchor's revocation store. A MANUAL entry names a certificate by fingerprint and refuses it wherever it appears on a verified path (a leaf or an intermediate), registered or not, whatever later becomes of its credential or its device.
| Field | Type | Description |
|---|---|---|
fingerprintSha256 | String | SHA-256 of the certificate, hex. Set on a MANUAL entry. |
issuerKey | String | SHA-256 of the issuing CA's public key, hex. Set on a CRL entry. |
kind | String! | MANUAL (revoked here, by fingerprint) or CRL (from a stored CA revocation list). |
reason | CertificateRevocationReason! | Why it was revoked. |
revokedAt | String! | When it was revoked, as an RFC 3339 timestamp. |
serial | String | The certificate's serial number, hex. Set on a CRL entry. |
sessionsEnded | Boolean | Set only on the result of revokeDeviceCertificate, null everywhere else. True when the live broker sessions of the devices the revocation affects were confirmed ended. False when the revocation is saved and new connects are refused, but a session already open could not be confirmed ended: it may still be publishing until the retry (automatic, and on repeating the mutation, which is idempotent) ends it, or its token expires. |
DeviceRevokedCertificateSearchResults
object
A page of revoked certificates.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the whole result. |
results | [DeviceRevokedCertificate!]! | The entries on this page. |
DeviceRosterEntry
object
One device as the detection engine's roster holds it.
| Field | Type | Description |
|---|---|---|
deviceToken | String! | The device's token. |
expectedSince | String! | When the device's membership of that profile began, as an RFC 3339 timestamp: its creation, or the last re-typing of the device or re-pointing of its type. |
profileToken | String! | Token of the profile the device's type adopts; empty when it adopts none. |
DeviceRosterPage
object
One page of the device roster.
| Field | Type | Description |
|---|---|---|
entries | [DeviceRosterEntry!]! | The devices on this page. |
nextCursor | String | The cursor to pass as afterId for the next page; null when the walk is complete. |
DeviceScopeAnchors
object
The anchors of one device: what decides which members limited to part of the tenant can see records about it.
| Field | Type | Description |
|---|---|---|
anchors | [String!]! | One entry per tracked relationship from the device, written as type:token (for example customer:acme). Empty when the device has no tracked relationship. |
deviceToken | String! | The device's token, as it was named in the request. |
DeviceSearchResults
object
One page of devices matching a search.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [Device!]! | The devices on this page. |
DeviceThresholdAttribute
object
One numeric device attribute that a dynamic detection threshold can read.
| Field | Type | Description |
|---|---|---|
deviceToken | String! | Token of the device the attribute belongs to. |
key | String! | The attribute's key. |
scope | String! | The attribute's scope: SHARED or SERVER. |
updatedAt | String! | When the attribute was last written, as an RFC 3339 timestamp. |
value | Float! | The attribute's numeric value. |
DeviceThresholdAttributePage
object
One page of numeric device attributes. A page can hold fewer entries than the limit and still have a nextCursor; only a null cursor ends the walk.
| Field | Type | Description |
|---|---|---|
entries | [DeviceThresholdAttribute!]! | The attributes on this page. |
nextCursor | String | The cursor to pass as afterId for the next page; null when the walk is complete. |
DeviceTrustAnchor
object
A CA certificate a tenant trusts to vouch for its devices' client certificates. It is public material. An X509_CERTIFICATE credential, and a certificate provisioning profile, name the anchor their chain must reach, and it is checked at EVERY connect: disabling the anchor withdraws the CA at once and ends the live sessions of the devices that rely on it. A root or an intermediate may be an anchor; anchor at the narrowest intermediate to trust one sub-CA of a manufacturer's PKI. Name constraints on an anchor or on any CA below it are not supported and are refused: identity is the certificate's subject common name, which name constraints do not cover.
Implements Model, TokenReference, NamedEntity, MetadataEntity
| Field | Type | Description |
|---|---|---|
certificatePem | String! | The CA certificate, PEM. |
createdAt | String | When the anchor was created, as an RFC 3339 timestamp. |
credentialCount | Int! | How many credentials rely on the anchor, soft-deleted ones included (they hold the delete refusal too). |
deletedAt | String | Always null: deleted anchors are not returned by this API. |
description | String | Free-text description. Null when none is set. |
enabled | Boolean! | False withdraws the CA: no chain to it authenticates, and the devices relying on it are disconnected. |
fingerprintSha256 | String! | SHA-256 of the certificate, hex. Unique within the tenant. |
id | ID! | Server-assigned numeric identifier, as a string. |
issuer | String! | The certificate's issuer distinguished name; equal to the subject for a root. |
metadata | String | Free-form JSON the platform stores and does not interpret. Null when none is set. |
name | String | Human-readable name. Null when none is set. |
notAfter | String! | When the certificate expires, as an RFC 3339 timestamp. Chains to it stop authenticating then. |
notBefore | String! | When the certificate becomes valid, as an RFC 3339 timestamp. |
ocspMode | CertificateOcspMode! | Whether, and how strictly, a certificate's status is also asked of its issuer's online OCSP responder when a device connects. OFF (the default) asks nothing and sends no request. |
ocspResponderUrl | String | The responder every OCSP request for this anchor goes to, in place of each certificate's own Authority Information Access entry. Null when the certificates' own entries are used. |
profileCount | Int! | How many provisioning profiles authenticate against the anchor. |
revocationLists | [DeviceRevocationList!]! | The current CRL of each issuer the anchor holds one for. |
revocationMode | CertificateRevocationMode! | How the anchor treats the completeness of its revocation lists. ENTRIES (the default) refuses every certificate a stored list or manual entry names and admits the rest, however old the lists are; REQUIRE_CURRENT also refuses a certificate whose issuer has no current list. |
revocationStaleGrace | String! | How long past a list's nextUpdate it still counts as current under REQUIRE_CURRENT, as a Go duration (for example "24h0m0s"). The instance default when the anchor sets none. |
revocationStatus | RevocationStatus! | The worst freshness over the anchor's lists: NONE when it holds no list, otherwise the most stale of them. |
subject | String! | The certificate's subject distinguished name. |
token | String! | Identifier of the anchor, unique within the tenant. |
updatedAt | String | When the anchor was last written, as an RFC 3339 timestamp. |
DeviceTrustAnchorSearchResults
object
A page of trust anchors.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the whole result. |
results | [DeviceTrustAnchor!]! | The anchors on this page. |
DeviceType
object
A kind of device: what it is (manufacturer and model), how it is displayed, and the device profile that defines what its devices measure and accept. Every device has exactly one device type, and many types may share one profile.
Implements Model, TokenReference, NamedEntity, BrandedEntity, MetadataEntity
| Field | Type | Description |
|---|---|---|
backgroundColor | String | Background colour to display the device type with, up to 32 characters. Not validated. |
borderColor | String | Border colour to display the device type with, up to 32 characters. Not validated. |
commandChannel | String | How the devices of this type receive their commands. PUBLISH, or null, is the default: the command is published to the device's subject and delivered by the transport the device is connected on. HTTP_PULL holds the type's commands until the device asks for them with an authenticated GET to its commands endpoint. |
createdAt | String | When the device type was created, as an RFC 3339 timestamp. |
deletedAt | String | Always null: deleted device types are not returned. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
foregroundColor | String | Foreground (text) colour to display the device type with, up to 32 characters. Not validated. |
icon | String | Name of an icon representing the device type, up to 128 characters. Not checked against any icon set. |
id | ID! | Server-assigned numeric identifier, as a string. Address a device type by its token instead where you can. |
imageUrl | String | URL of an image representing the device type, up to 512 characters. |
maintenanceWindow | MaintenanceWindow | The maintenance window that holds this type's disruptive commands until it opens, or null when the type has none. Commands whose definition has impact DISRUPTIVE or DESTRUCTIVE wait for the window; every other command is sent whenever the device is reachable. |
manufacturer | String | Manufacturer of the devices of this type: free text, up to 128 characters. facetValues lists the values already in use. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
model | String | Model of the devices of this type: free text, up to 128 characters. facetValues lists the values already in use. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
profile | DeviceProfile | The device profile this type adopts, or null when it adopts none. Devices of a type with no profile have no declared metrics or commands. |
semanticTypes | [SemanticTerm!] | The classes this type is, as terms of the vocabularies the tenant has enabled; empty when it is bound to none. Each carries its expanded IRI and a display CURIE. Null only when the terms could not be rendered, with an error saying why. |
token | String! | Identifier of the device type, unique within the tenant. |
updatedAt | String | When the device type was last written, as an RFC 3339 timestamp. |
DeviceTypeSearchResults
object
One page of device types matching a search.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [DeviceType!]! | The device types on this page. |
DisabledDevicePage
object
One page of the tokens of the tenant's disabled devices.
| Field | Type | Description |
|---|---|---|
deviceTokens | [String!]! | The tokens of the disabled devices on this page. |
nextCursor | String | The cursor to pass as afterId for the next page; null when the walk is complete. |
EntityAttribute
object
A single current-state attribute of an entity: a key and value in one scope. Unlike an event, an attribute is a mutable row; writing the same entity, scope and key replaces the value. The value is stored as text with a type tag so consumers can coerce it.
Implements Model
| Field | Type | Description |
|---|---|---|
attrKey | String! | The attribute's key, up to 128 bytes. |
createdAt | String | When the attribute was first written, as an RFC 3339 timestamp. |
deletedAt | String | Always null: a deleted attribute is removed outright and is not returned. |
entity | Entity! | The entity the attribute belongs to. |
entityType | String! | Entity type of the owner, for example device. |
id | ID! | Server-assigned numeric identifier, as a string. |
lastUpdated | String | When the value was last set, as an RFC 3339 timestamp. |
scope | String! | Who owns the attribute: CLIENT, reported by the device; SERVER, set by the platform and hidden from the device; or SHARED, set by the platform and readable by the device, which also subscribes to it. |
updatedAt | String | When the attribute row was last written, as an RFC 3339 timestamp. |
value | String | The attribute's value as text, interpreted by valueType. Null when none is set. At most 64 KiB. |
valueType | String! | How to read value: STRING, LONG, DOUBLE, BOOLEAN or JSON. |
EntityAttributeSearchResults
object
One page of entity attributes.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [EntityAttribute!]! | The attributes on this page. |
EntityGroup
object
A group of entities of one family: devices, assets, areas or customers. Membership is either static (members are added explicitly over relationships of the member type) or dynamic (a selector over the members' facet attributes, evaluated when the group is read). A dynamic group is versioned: publishing freezes the selector as an immutable version, which detection rules and access scopes then pin to.
Implements Model, TokenReference, NamedEntity, BrandedEntity, MetadataEntity, Entity
| Field | Type | Description |
|---|---|---|
accessScope | Boolean! | Whether the group is an access scope: a group a member's access can be limited to. A member limited to it sees the devices in the group at its active version — and only while they are in it — and the history recorded while they were. Set with setEntityGroupAccessScope. |
activeVersion | Int | The published version whose frozen selector rule-scoped resolution reads. Null until a dynamic group is first published, and always null for a static group, which is never versioned. |
backgroundColor | String | Background colour to display the group with, up to 32 characters. Not validated. Null when none is set. |
borderColor | String | Border colour to display the group with, up to 32 characters. Not validated. Null when none is set. |
createdAt | String | When the group was created, as an RFC 3339 timestamp. |
deletedAt | String | Always null: a deleted group is removed outright and is not returned. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
foregroundColor | String | Foreground (text) colour to display the group with, up to 32 characters. Not validated. Null when none is set. |
icon | String | Name of an icon representing the group, up to 128 characters. Not checked against any icon set. Null when none is set. |
id | ID! | Server-assigned numeric identifier, as a string. Address a group by its token instead where you can. |
imageUrl | String | URL of an image representing the group, up to 512 characters. Null when none is set. |
memberType | String! | The entity family the group collects: device, asset, area or customer. Fixed at creation. |
members | EntityGroupMemberSearchResults! | The resolved members of the group: a static group's explicit members, or the entities a dynamic group's selector matches now. A consumer does not need to branch on mode. Always bounded and paginated. Arguments: pagination: PaginationInput! — The page of members to return. |
membershipMode | String! | How members are determined: static, for members added explicitly, or dynamic, for members matched by selector. Fixed at creation. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
selector | String | The membership predicate, a CEL expression over the members' facet attributes. Present only for dynamic groups; null for a static group. This is the editable draft: the selector a published version froze is on that version. |
token | String! | Identifier of the group, unique within the tenant. It cannot be changed after creation. |
updatedAt | String | When the group was last written, as an RFC 3339 timestamp. |
versions | [EntityGroupVersion!]! | The group's published versions, newest first. Empty for a group that has never been published, and always empty for a static group. |
EntityGroupMember
object
A resolved member of an entity group: the lightweight identity of one entity, enough to look up the full record. The entity family is the group's memberType, so it is not repeated per member.
| Field | Type | Description |
|---|---|---|
id | ID! | Numeric id of the member entity, as a string. |
token | String! | Token of the member entity. |
EntityGroupMemberSearchResults
object
One page of an entity group's resolved members.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full member set. |
results | [EntityGroupMember!]! | The members on this page. |
EntityGroupSearchResults
object
One page of entity groups.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [EntityGroup!]! | The groups on this page. |
EntityGroupVersion
object
An immutable published snapshot of a dynamic entity group's selector. A detection rule scopes to a specific group and version, so the set of entities it covers cannot change under a later selector edit.
| Field | Type | Description |
|---|---|---|
description | String | Optional description of what the version changes. Null when none was given. |
label | String | Optional label given at publish. It may embed a semantic version string, which is not parsed. |
memberType | String! | The entity family the group collects, frozen with the version. |
publishedAt | String! | When the version was published, as an RFC 3339 timestamp. |
publishedBy | String | The identity that published the version: its username, falling back to its email. Null when not recorded. |
selector | String! | The membership selector frozen at publish. |
version | Int! | Version number, increasing per group. |
EntityRef
object
A reference to an entity by its type and token, returned from a query.
| Field | Type | Description |
|---|---|---|
token | String! | Token of the entity. |
type | String! | Entity type, for example device, asset, area, customer or group. |
EntityRelationship
object
A directed relationship edge between two entities, of a given relationship type. The source and target are each addressed by entity type and token.
Implements Model, TokenReference, MetadataEntity
| Field | Type | Description |
|---|---|---|
createdAt | String | When the relationship was created, as an RFC 3339 timestamp. |
deletedAt | String | Always null: a removed relationship is deleted outright and is not returned. |
id | ID! | Server-assigned numeric identifier, as a string. Address a relationship by its token instead where you can. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
relationshipType | EntityRelationshipType! | The kind of relationship the edge is. |
source | Entity! | The entity the edge points from. |
sourceType | String! | Entity type of the source entity. |
target | Entity! | The entity the edge points to. |
targetType | String! | Entity type of the target entity. |
token | String! | Identifier of the relationship, unique within the tenant. |
updatedAt | String | When the relationship was last written, as an RFC 3339 timestamp. |
EntityRelationshipSearchResults
object
One page of entity relationships.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [EntityRelationship!]! | The relationships on this page. |
EntityRelationshipType
object
A kind of relationship between entities, such as assigned or contains. One table of types serves every entity family. A tracked type marks relationships whose edges are denormalized onto events for indexing, and only tracked relationships count as ownership for members whose access is limited to part of the tenant.
Implements Model, TokenReference, NamedEntity, MetadataEntity
| Field | Type | Description |
|---|---|---|
createdAt | String | When the relationship type was created, as an RFC 3339 timestamp. |
deletedAt | String | Always null: a deleted relationship type is removed outright and is not returned. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
id | ID! | Server-assigned numeric identifier, as a string. Address a relationship type by its token instead where you can. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
semanticInverse | SemanticTerm | The predicate's inverse (for example brick:isFedBy), or null when there is none. |
semanticPredicate | SemanticTerm | The vocabulary predicate this relationship is (for example brick:feeds), or null when it is bound to none. |
token | String! | Identifier of the relationship type, unique within the tenant. It cannot be changed after creation. |
tracked | Boolean! | Whether relationships of this type are tracked: denormalized onto events so they can be indexed and filtered by, and counted as ownership for scoped access. |
updatedAt | String | When the relationship type was last written, as an RFC 3339 timestamp. |
EntityRelationshipTypeSearchResults
object
One page of entity relationship types.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [EntityRelationshipType!]! | The relationship types on this page. |
FacetKey
object
A per-tenant declaration that an attribute key is a classification facet for a member family. It tells the console which keys to offer as browse and filter axes and as typeahead; it does not store facet values, which remain attributes on the member entities. Addressed by its natural key, memberType and key. Named FacetKey so it is not confused with the device and profile discovery facets read by facetValues.
Implements Model
| Field | Type | Description |
|---|---|---|
createdAt | String | When the facet key was declared, as an RFC 3339 timestamp. |
deletedAt | String | Always null: a deleted facet key is removed outright and is not returned. |
id | ID! | Server-assigned numeric identifier, as a string. |
key | String! | The attribute key this facet declares, for example climate or country. |
label | String | An optional human display label for the axis. Null falls back to key. |
memberType | String! | The entity family this facet classifies: device, asset, area or customer. |
source | String! | Where the facet's values come from: attribute, for values stored as attributes, or system, for a predefined facet over a modelled column, which cannot be deleted. |
updatedAt | String | When the facet key was last written, as an RFC 3339 timestamp. |
valueType | String! | The value type of the facet's attribute values: STRING, LONG, DOUBLE, BOOLEAN or JSON. |
values | [String!] | An optional vocabulary of values that powers the console typeahead. Null when the facet's values are free-form. |
FacetKeySearchResults
object
One page of facet keys.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [FacetKey!]! | The facet keys on this page. |
FacetValueImportRowResult
object
The outcome of one facet value import row; never includes its value.
| Field | Type | Description |
|---|---|---|
code | String | Machine-readable reason for INVALID or REFUSED. |
key | String! | The supplied facet key. |
memberType | String! | The supplied member family. |
message | String | Reason for INVALID or REFUSED, without echoing the supplied value. |
outcome | String! | SET (would set on a dry run), EXISTS (unchanged), INVALID or REFUSED. |
row | Int! | One-based position within this call. |
token | String! | The supplied entity token. |
FleetOperationReadiness
object
Preview. Deprecated; use BulkChangeReadiness via bulkChangeReadiness. Whether this instance can run bulk changes. May change in a minor release while in preview.
| Field | Type | Description |
|---|---|---|
enforcement | FleetOperationEnforcement! | Preview. Whether the database enforces the device attribute writer protocol. |
executableKinds | [String!]! | Preview. Operation kinds the caller can run now: the kinds the answering service build executes, while enforcement is ENFORCED and orphanedAttributeRows is 0. Empty otherwise. |
orphanedAttributeRows | Int | Preview. Device attribute and generation rows in the caller's tenant whose device no longer exists, counted fresh for this request, including soft-deleted attributes. Bulk changes are not activated while this is above zero. Null when the count could not be read; the error names why, and the other facts are still answered. |
protocolVersion | Int! | Preview. Highest bulk-change protocol version the answering service build follows. |
GeoFence
object
An authored geofence: a region that a detection rule can test a device's reported position against, naming the fence by its token. Containment is evaluated by the detection engine, not in the database, so the geometry is stored as an opaque document with no spatial column or index. The tenant's fence-set version is stamped on each resolved location event, which freezes the fences an event is judged against, so replaying history gives the answer it gave at the time. Changing a boundary, creating or deleting a fence mints a new version; renaming a fence does not.
Implements Model, TokenReference, NamedEntity, MetadataEntity
| Field | Type | Description |
|---|---|---|
createdAt | String | When the fence was created, as an RFC 3339 timestamp. |
deletedAt | String | Always null: a deleted fence is removed outright and its token can be reused. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
geometry | String! | The geometry as a self-describing JSON document: a kind discriminator plus a GeoJSON geometry object, for example {"kind":"POLYGON_2D","geometry":{"type":"Polygon","coordinates":[[[lon,lat],...]]}}. Coordinates are WGS84 (EPSG:4326) decimal degrees in longitude, latitude order. Returned in a canonical form that can differ in whitespace and number formatting from what was written. |
id | ID! | Server-assigned numeric identifier, as a string. Address a fence by its token instead where you can. |
kind | String! | The geometry kind, read from the geometry document. POLYGON_2D is the only kind that can be stored; POLYGON_2_5D and VOXEL_3D are reserved names that are refused on write. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
token | String! | Identifier of the fence, unique within the tenant. Detection rules name the fence by it, so it is immutable. |
updatedAt | String | When the fence was last written, as an RFC 3339 timestamp. |
GeoFenceGeometry
object
One archived geometry document and the content address it is filed under. The address is the SHA-256 of exactly these bytes, so a caller should re-derive it to verify what it received rather than trust the association.
| Field | Type | Description |
|---|---|---|
geometry | String! | The geometry document, in the same envelope as GeoFence.geometry. |
hash | String! | The content address the document is filed under. |
GeoFenceManifestEntry
object
One fence inside a manifest: the token a rule names it by and the content address under which its geometry is stored.
| Field | Type | Description |
|---|---|---|
hash | String! | The content address of the fence's geometry document, to pass to geoFenceGeometry. |
token | String! | The tenant-unique token a rule names this fence by. |
GeoFenceSearchResults
object
One page of geofences.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [GeoFence!]! | The fences on this page. |
GeoFenceSetManifest
object
The manifest of one fence-set version: which fences it holds and the content address of each one's geometry. It carries no geometry, so its size depends only on the fence count and it needs no pagination. A holder of a version number uses it to learn what to resolve, then fetches the geometry with geoFenceGeometry.
| Field | Type | Description |
|---|---|---|
fences | [GeoFenceManifestEntry!]! | The fences of this version, ordered by token. |
mintedAt | String | When the change that minted this version committed, as an RFC 3339 timestamp. For diagnosing how old a held fence set is; never used by containment tests. |
version | Int! | The version this manifest describes. 0 means the tenant had never created a fence: an empty fence set, known to be empty. |
GeoFenceSetSnapshot
object
The frozen fence set of one fence-set version: the fences that were live when an event stamped with that version was resolved. It is not an entity, has no id and cannot be edited or deleted. Replaying an old event reads the geometry it was resolved against rather than today's fences.
| Field | Type | Description |
|---|---|---|
fences | GeoFenceSnapshotEntrySearchResults! | The fences of this version, ordered by token, one page at a time. Paginated because a fence set at the authoring ceiling can exceed what one cross-service response carries. Read pages until pagination.pageEnd reaches pagination.totalRecords. Pages of one version always come from the same fence set, because a version is never rewritten. Arguments: pagination: PaginationInput! — The page of fences to return. |
version | Int! | The version this set is the frozen state of. 0 means the tenant had never created a fence at that time: an empty fence set, known to be empty. |
GeoFenceSnapshotEntry
object
One fence inside a frozen snapshot. Name and description are absent on purpose: a snapshot freezes only what changes what a rule computes, so correcting a fence's name does not change how history reads.
| Field | Type | Description |
|---|---|---|
fenceId | ID | The fence's GeoFence.id, frozen with the snapshot. Null for snapshots written before fence-set snapshots recorded row identity. A token may be reused by a later fence, so this, not the token, says which fence row the snapshot froze. |
geometry | String! | The geometry document as it stood at this version, not the fence's current geometry. |
token | String! | The tenant-unique token a rule names this fence by. |
GeoFenceSnapshotEntrySearchResults
object
One page of a frozen fence set's fences.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full fence set. |
results | [GeoFenceSnapshotEntry!]! | The fences on this page, ordered by token. |
InstalledPosition
object
Where a fixed asset was installed: WGS84 decimal degrees, elevation and accuracy in metres.
| Field | Type | Description |
|---|---|---|
accuracy | Float | Horizontal accuracy in metres, or null when not recorded. |
elevation | Float | Metres above the WGS84 ellipsoid, or null when not recorded. |
latitude | Float! | Degrees north, -90 to 90. |
longitude | Float! | Degrees east, -180 to 180. |
source | InstalledPositionSource | How the position was obtained. |
updatedAt | String | When the position was recorded, as an RFC 3339 timestamp. |
Integration
object
An inbound integration: a tenant's authenticated sender of device data over HTTP, such as a LoRaWAN network server or a webhook. It holds the bearer token the sender presents, the kind of body it sends, and the device types it may resolve devices of. The token is generated by the server, returned once by createIntegration and rotateIntegrationToken, and never exposed on this type: only a keyed digest of it is stored.
Implements Model, TokenReference, NamedEntity, MetadataEntity
| Field | Type | Description |
|---|---|---|
createdAt | String | When the integration was created, as an RFC 3339 timestamp. |
deletedAt | String | Always null: deleted integrations are not returned by this API. |
description | String | Free-text description. Null when none is set. |
deviceTypes | [DeviceType!]! | The device types the integration may resolve devices of. A device of any other type is refused, whatever the sender claims. |
enabled | Boolean! | False while an operator has switched the integration off: its token authenticates, and nothing resolves through it. |
generic | String | A generic sender's settings as a JSON object: where the device identifier is (idFrom), and optionally an array of items (itemsPointer), the sender's own time (timePointer) and an encoded raw frame (framePointer, frameEncoding). Null for the other types. |
id | ID! | Server-assigned numeric identifier, as a string. |
identity | String! | How the sender names a device: DEV_EUI, DEVICE_ID, or ALIAS:custom.name for a generic sender. |
lastAuthFailureAt | String | When a request for this integration last failed authentication. |
lastUndecodedAt | String | When the last such uplink arrived. |
lastUndecodedSample | String | Up to 512 bytes of the last such frame, hex encoded. |
linkMetrics | Boolean! | Whether the receive-link readings (signal strength, signal-to-noise ratio, gateway count) are stored beside the decoded values. |
metadata | String | Free-form JSON the platform stores and does not interpret. Null when none is set. |
name | String | Human-readable name. Null when none is set. |
token | String! | Identifier of the integration, unique within the tenant. It is part of the URL the sender posts to. |
tokenIssuedAt | String! | When the bearer token was last generated: at creation and at every rotation. |
type | String! | The kind of sender, which fixes the body format its route parses: CHIRPSTACK_V4, TTS_V3, GENERIC_JSON or GENERIC_BINARY. It cannot be changed after creation. |
undecodedCount | Int! | How many uplinks arrived with nothing to read readings from. |
updatedAt | String | When the integration was last written, as an RFC 3339 timestamp. |
IntegrationDecoderPlan
object
What the ingest path needs to know about the payload decoder of a device type.
| Field | Type | Description |
|---|---|---|
composedCost | Int! | The part of estimatedCost that does not depend on the size of the uplink: the decoder's expressions alone. The ingest charge adds the parse of the inputs the decoder reads at their actual sizes. 0 when there is no decoder this build can run. |
estimatedCost | Int! | The decoder's static worst-case cost; 0 when there is no decoder this build can run. |
input | PayloadDecoderInput | The input an uplink must carry for the decoder to run; null when there is no decoder. |
maxReadings | Int! | The most readings one decode produces; 0 when there is no decoder this build can run. |
parsesDecoded | Boolean! | Whether the decoder reads the network server's decoded object, parsed and priced by size. |
parsesJson | Boolean! | Whether the decoder reads the generic item's JSON, which is parsed and priced by size. |
present | Boolean! | Whether the active published version declares a decoder. True also when this build cannot run it: such an uplink must still reach the resolver, which records the failure. |
profileVersionToken | String! | The profile version the answer is for, as "{profile}@{version}"; empty when there is no decoder. |
IntegrationDeviceResolution
object
The answer to resolveIntegrationDevice.
| Field | Type | Description |
|---|---|---|
deviceToken | String | Token of the device the alias names. Set only when the outcome is RESOLVED. |
deviceTypeToken | String | Token of that device's type. Set only when the outcome is RESOLVED. |
outcome | IntegrationDeviceOutcome! | What happened. |
overflow | Boolean! | True when the outcome is UNREGISTERED and the sighting was not stored because the integration already records 1000 distinct unregistered devices. |
IntegrationSearchResults
object
A page of integrations.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the whole result. |
results | [Integration!]! | The integrations on this page. |
IntegrationSecretResult
object
An integration together with the bearer token the server just generated for it. The token is in the response to the write that issued it and nowhere else: the platform stores only a digest, so it cannot be read again. Rotate it if it is lost.
| Field | Type | Description |
|---|---|---|
integration | Integration! | The integration the token belongs to. |
issuedToken | String! | 43 characters, 256 bits. Show it to the operator once; the sender presents it as Authorization: Bearer. |
MaintenanceWindow
object
A recurring weekly schedule, in an IANA time zone, during which disruptive commands may start. Assign it to a device type; commands whose definition has impact DISRUPTIVE or DESTRUCTIVE then wait for it to open.
Implements Model, TokenReference, NamedEntity, MetadataEntity
| Field | Type | Description |
|---|---|---|
createdAt | String | When the window was created, as an RFC 3339 timestamp. |
deletedAt | String | Always null: deleted windows are not returned. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
id | ID! | Server-assigned numeric identifier, as a string. Address a window by its token instead where you can. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
slots | String! | The weekly openings as a JSON array of objects with day (MONDAY to SUNDAY), start (a 24-hour HH:MM wall-clock time in the zone) and durationMinutes (1 to 10080, elapsed time). A slot may run past midnight and past the end of the week. |
timezone | String! | The IANA time zone the slots are read in, for example Europe/Berlin. |
token | String! | Identifier of the window, unique within the tenant. |
updatedAt | String | When the window was last written, as an RFC 3339 timestamp. |
MaintenanceWindowOpening
object
When an operation under a maintenance window may start.
| Field | Type | Description |
|---|---|---|
closes | String! | When the opening dispatchAfter belongs to ends, as an RFC 3339 timestamp. |
dispatchAfter | String! | The earliest instant an operation may start, as an RFC 3339 timestamp: the instant asked about when the window is open, otherwise the next opening. |
found | Boolean! | False when no window has the token (it was deleted or never existed); the other fields are then meaningless. |
openNow | Boolean! | True when the window is open at the instant asked about. |
MaintenanceWindowSearchResults
object
One page of maintenance windows matching a search.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [MaintenanceWindow!]! | The windows on this page. |
MetricDefinition
object
A measurement the devices of a profile report: its key, numeric type, unit and allowed values. Inbound measurements whose key matches are validated against it; a measurement whose key is not declared is not validated.
Implements Model, TokenReference, NamedEntity, MetadataEntity
| Field | Type | Description |
|---|---|---|
calculated | Boolean! | True when the metric is calculated from its formula rather than reported by devices. Fixed when the metric is created. |
createdAt | String | When the metric definition was created, as an RFC 3339 timestamp. |
dataType | String! | The value type: DOUBLE, INT, BOOLEAN or STRING. A BOOLEAN value is stored as 0 or 1, and a STRING value as text. |
deletedAt | String | Always null: deleted metric definitions are not returned. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
descriptor | String | Optional semantic tag for the metric, such as a Web of Things type. Not interpreted on ingest; a published version's thingModel carries it as the property's @type. |
deviceProfile | DeviceProfile! | The profile this metric is declared on. |
enum | String | The allowed values as a JSON array of strings, or null when any value is allowed. A measurement must equal one of them exactly. A value that is not a non-empty array of strings restricts nothing. |
expression | String | The formula a calculated metric is computed from, written over the profile's measured metrics (for example voltage * current / 1000), and optionally over numbers a device carries in its metadata, as device.name (for example voltage * device.calibration). Null for a measured metric, which devices report. |
id | ID! | Server-assigned numeric identifier, as a string. Address a metric definition by its token instead where you can. |
maxValue | Float | Largest value accepted for a DOUBLE or INT metric, or null for no upper bound. A measurement above it is rejected. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
metricKey | String! | The key a measurement uses to report this metric, unique within the profile and at most 128 characters. |
minValue | Float | Smallest value accepted for a DOUBLE or INT metric, or null for no lower bound. A measurement below it is rejected. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
semanticPointClass | SemanticTerm | The Brick point class this metric's series is (a class that is a brick:Point), or null when unbound. |
semanticProperty | SemanticTerm | The quantity or property this metric observes, as a term of an enabled vocabulary, or null when unbound. Independent of descriptor. |
token | String! | Identifier of the metric definition, unique within the tenant. |
unit | String | Unit of measure, such as a UCUM code (Cel, kW). It is carried with each measurement of this metric; values are not converted. |
updatedAt | String | When the metric definition was last written, as an RFC 3339 timestamp. |
MetricDefinitionSearchResults
object
One page of metric definitions matching a search.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [MetricDefinition!]! | The metric definitions on this page. |
MetricFormulaTest
object
What a calculated-metric formula gives for a sample. A formula that does not compile has compileError and no value; one that compiles has exactly one of value or skippedReason.
| Field | Type | Description |
|---|---|---|
chain | [String!]! | The calculated metrics the formula depends on, directly or through others, in the order they are evaluated, each computed from the sample through its own formula. Empty for a formula over measured metrics only. |
compileError | String | Why the formula was refused, or null when it compiles. |
constants | [String!]! | The device constants the formula reads as device.name, sorted. Each comes from a device's metadata when a reading is resolved; empty when the formula reads none. |
estimatedCost | Int | The formula's estimated worst-case cost; a formula above 100 is refused. |
inputs | [String!]! | The metrics the formula reads directly: measured metrics and, since a formula may read another calculated metric, calculated ones. |
measuredInputs | [String!]! | Every measured metric the evaluation reads: the formula's own and those read through the calculated metrics in the chain. These are the values a sample supplies; equal to inputs when the chain is empty. |
skippedReason | String | Why the formula produces no value for the sample: missing_input, invalid_input, non_finite, div_zero, overflow, range, unstorable (a magnitude of 1e12 or more, which measurements cannot be stored with) or eval_error. No value is ever substituted. |
value | String | The value the formula produces for the sample, formatted as it would be stored. |
warnings | [String!]! | Advisory findings that do not stop a publish, such as a sample value no formula can read, or a result range wider than measurements can be stored with. |
PayloadDecoder
object
A payload decoder: the rules that turn a binary frame, a generic webhook's JSON or a network server's decoded object into measurements.
| Field | Type | Description |
|---|---|---|
document | String! | The whole decoder document as JSON text, exactly as saved. |
envVersion | Int! | The version of the function library the decoder was written against. It never changes meaning. |
estimatedCost | Int! | The decoder's worst-case static cost, in the units the function reference gives. |
input | PayloadDecoderInput! | Which input of an uplink the decoder reads. |
kind | PayloadDecoderKind! | The engine the decoder runs on. |
maxReadings | Int! | The most readings one uplink can produce: the largest section's scalar rows plus its map rows' maxKeys. Ingest is charged this many readings per uplink. |
PayloadDecoderError
object
Why a test produced no readings.
| Field | Type | Description |
|---|---|---|
message | String! | What went wrong. It names the function and offset, never platform internals. |
offset | Int | The byte offset a reader refused, or null. |
path | String! | The expression that failed, such as sections[1].outputs[2].expr, or empty when it is not one. |
reason | String! | The reason: compile_failed, env_unsupported, eval_error, cost_exceeded, invalid_output, no_section, no_outputs, missing_input, map_overflow, input_too_large, input_malformed, unsupported_encoding or ignored_message. |
PayloadDecoderFunction
object
One function of the decoder library.
| Field | Type | Description |
|---|---|---|
description | String! | What it does, including its limits. |
name | String! | The function's name, such as i16be. |
signature | String! | Its signature. |
PayloadDecoderHealth
object
How a profile's decoder has been doing over a span. Every uplink the decoder saw lands in exactly one of decoded, ignored, failed or suppressed. Counts are at least what happened: they are kept in memory and written about once a minute, so a crash loses up to a minute of them. The counts are Float, not Int: a busy decoder passes a 32-bit Int in a week. They are whole numbers, exact up to 2^53, so read them as integers.
| Field | Type | Description |
|---|---|---|
chargeSkew | Float! | Readings stored beyond what the route charged for, because a newer decoder produces more. A whole number, exact up to 2^53. |
decoded | Float! | Uplinks decoded to readings. A whole number, exact up to 2^53 (Float so it cannot overflow). |
failed | Float! | Failed uplinks that have a failed-events record (filter DECODE_FAILED). A whole number, exact up to 2^53. |
ignored | Float! | Uplinks an ignore section matched: accepted, nothing stored. A whole number, exact up to 2^53. |
lastError | String! | The text of the most recent failure, or empty when there was none. |
lastFailureAt | String | When the most recent failure happened, as an RFC 3339 time, or null when there was none. |
since | String! | The start of the span, as an RFC 3339 time. |
suppressed | Float! | Failed uplinks that were NOT given a record because the device type's record budget was spent (a burst of 20, refilled 10 a minute, on each replica). They are counted here and nowhere else. A whole number, exact up to 2^53. |
windows | Int! | How many replica-minutes of tallies the sums cover. |
PayloadDecoderReading
object
One value a decoder produced, as it would be stored.
| Field | Type | Description |
|---|---|---|
key | String! | The measurement key. |
value | String! | The value, formatted by the target metric's type. |
PayloadDecoderSample
object
One failing uplink kept for replay. Its bytes are not listed: load it into the test panel with testPayloadDecoder sampleId.
| Field | Type | Description |
|---|---|---|
createdAt | String! | When it was kept, as an RFC 3339 time. |
deviceToken | String! | Token of the device the uplink was for. |
error | String! | The failure text. |
id | ID! | Pass this as testPayloadDecoder sampleId. |
profileVersion | Int! | The profile version whose decoder failed on it. |
reason | String! | The failure's sub-reason, such as missing_input. |
PayloadDecoderSkip
object
A value the decode did not store, and why.
| Field | Type | Description |
|---|---|---|
key | String! | The key that was skipped. |
reason | String! | Why: undeclared (no such metric), collision (a scalar row writes the key), reserved, or invalid. |
PayloadDecoderTestResult
object
What a decoder made of one input, through the code that runs at ingest. Nothing is stored.
| Field | Type | Description |
|---|---|---|
cost | Int! | The cost the decode spent. |
error | PayloadDecoderError | Why the test failed, or null. A document that does not compile is reported here. |
ignored | Boolean! | True when an ignore section matched: the uplink would be accepted and store nothing. |
ok | Boolean! | True when the decoder compiled and the input decoded (an ignore section counts). |
readings | [PayloadDecoderReading!]! | The readings that would be stored, with link metrics appended when the integration asks for them. |
section | String | The name of the section that matched, or null. |
skipped | [PayloadDecoderSkip!]! | Values the decode produced or the envelope carried that were not stored. |
uplinks | Int! | How many uplinks a webhook body held; the first one was tested. Zero when the input was not a webhook body. |
vectors | [PayloadDecoderVectorResult!]! | The saved vectors, each run through the decoder. |
PayloadDecoderVectorResult
object
One saved vector's outcome.
| Field | Type | Description |
|---|---|---|
cost | Int! | The cost the run spent. |
error | String | Why it failed, or null. |
name | String! | The vector's name. |
ok | Boolean! | Whether the decoder produced exactly the readings the vector expects. |
ProvisioningProfile
object
A device provisioning profile: the shared key and secret a fleet presents to register itself at the provisioning registration endpoint, the strategy that decides whether unknown devices may be created, and the device type stamped onto auto-created devices. The provision secret is generated by the server, returned once by createProvisioningProfile and rotateProvisioningProfileSecret, and never exposed on this type: only its digest is stored.
Implements Model, TokenReference, NamedEntity, MetadataEntity
| Field | Type | Description |
|---|---|---|
createdAt | String | When the profile was created, as an RFC 3339 timestamp. |
credentialType | String! | The type of credential the profile issues to the devices it registers: ACCESS_TOKEN for a profile that authenticates by secret, X509_CERTIFICATE for a certificate profile. |
deletedAt | String | Always null: a deleted profile is removed outright and is not returned. |
description | String | Free-text description, up to 1024 characters. Null when none is set. |
deviceType | DeviceType! | The device type of every device the profile registers, and the only type it will adopt. |
enabled | Boolean! | Whether the profile accepts registrations. A disabled profile refuses them. |
expiresAt | String | When the profile stops accepting registrations, as an RFC 3339 timestamp. Null means it never expires. |
id | ID! | Server-assigned numeric identifier, as a string. Address a profile by its token instead where you can. |
maxDevices | Int | The most devices the profile may register, or null for no cap. Devices holding a credential the profile issued count, revoked ones included, until their provisioning is reset or they are deleted. |
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
name | String | Human-readable name, up to 128 characters. Null when none is set. |
provisionKey | String! | The key a fleet presents, with the provision secret, to register itself. Unique within the tenant. |
provisionedDeviceCount | Int! | How many devices hold a credential the profile issued, counted against maxDevices. |
secretIssued | Boolean! | False for a profile whose secret was chosen by an operator (every profile created before the server generated secrets). The registration endpoint refuses such a profile with PROVISIONING_FAILED until rotateProvisioningProfileSecret issues it a secret. Always false for a certificate profile, which has no secret. |
strategy | String! | Whether unknown devices may be created. ALLOW_NEW registers a device that does not exist yet and adopts an earmarked one; CHECK_PRE_PROVISIONED registers only earmarked devices that already exist. Neither adopts a device that was not earmarked for the profile. |
token | String! | Identifier of the profile, unique within the tenant. It cannot be changed after creation. |
trustAnchor | DeviceTrustAnchor | The trust anchor a certificate profile authenticates its devices against, or null for a profile that authenticates by secret. A certificate profile has no provision secret. |
updatedAt | String | When the profile was last written, as an RFC 3339 timestamp. |
ProvisioningProfileSearchResults
object
One page of provisioning profiles.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the full result set. |
results | [ProvisioningProfile!]! | The profiles on this page. |
ProvisioningProfileSecretResult
object
A provisioning profile together with the provision secret the server just generated for it. The secret is in the response to the write that issued it and nowhere else: the platform stores only a digest, so it cannot be read again. Rotate it if it is lost.
| Field | Type | Description |
|---|---|---|
issuedSecret | String | 43 characters, 256 bits. Show it to the operator once; devices present it, with the profile's provisionKey, to the registration endpoint. Null for a certificate profile, which has no secret. |
profile | ProvisioningProfile! | The profile the secret belongs to. |
PublishedCommand
object
One command a device accepts, as frozen in its profile's active published version. To edit commands, use the profile's command definitions and publish the profile.
| Field | Type | Description |
|---|---|---|
commandKey | String! | The key used to send this command. |
description | String | Free-text description, or null when none was set. |
encoder | String | Optional declarative LoRaWAN payload encoder JSON. Null keeps the raw payload contract. |
impact | String! | NORMAL, DISRUPTIVE or DESTRUCTIVE. The last two wait for the device type's maintenance window. |
name | String | Human-readable name, or null when none was set. |
parameterSchema | String | The command's parameters as a JSON array of parameter descriptors, or null when it takes no structured arguments. |
PublishedMetric
object
A metric in a device's published profile version, as inbound measurements are checked against it.
| Field | Type | Description |
|---|---|---|
allowedValues | [String!] | The only values accepted, or null when any value of the type is accepted. |
calculated | Boolean! | True when the platform computes this metric from a formula over the device's other readings, so a device never reports it. A dashboard offers it like any other metric. |
dataType | String! | DOUBLE, INT, BOOLEAN or STRING; a measurement's value must parse as this type (any text is a STRING). |
maxValue | Float | The largest value accepted, or null when there is no upper bound. |
metricKey | String! | The key a measurement uses to report this metric. |
minValue | Float | The smallest value accepted, or null when there is no lower bound. |
unit | String | The unit, or null when none is declared. |
PublishedProfileRule
object
One enabled detection rule of a published profile version, as the detection engine receives it.
| Field | Type | Description |
|---|---|---|
definition | String! | The rule definition JSON document. |
entityGroupToken | String! | Token of the published entity group the rule is scoped to; an empty string for a rule that covers the whole profile. |
entityGroupVersion | Int! | Version of that entity group; 0 for a rule that covers the whole profile. |
token | String! | The rule's token, unique within the profile. |
SearchResultsPagination
object
Where a page of search results sits in the full result set. Positions are 1-based and inclusive.
| Field | Type | Description |
|---|---|---|
pageEnd | Int | Position of the last result on this page within the full result set (1-based, inclusive). Lower than pageStart when the page is past the end of the results. |
pageStart | Int | Position of the first result on this page within the full result set (1-based). |
totalRecords | Int | Number of records matching the criteria across all pages. |
SelectorPreview
object
The result of evaluating a candidate dynamic-group selector without saving it. A selector that fails the publish checks (not expressible as a query, over the cost budget, or a parse or type error) returns valid false with the error and no members, so an authoring form can show the problem inline as the user types instead of treating it as a failure.
| Field | Type | Description |
|---|---|---|
error | String | Why the selector was refused, in terms fit to show the author. Null when valid. |
members | EntityGroupMemberSearchResults | One page of the entities the selector matches now. Null when the selector is not valid. |
valid | Boolean! | Whether the selector passed the same checks a saved dynamic group must pass. |
SemanticContext
object
A tenant's semantic configuration.
| Field | Type | Description |
|---|---|---|
customPrefixes | [CustomPrefix!] | The custom prefixes the tenant declared for its own terms, sorted by prefix. Null only when the stored record could not be read, with an error saying why. |
enabledPacks | [SemanticPack!] | The vocabulary packs the tenant has enabled, sorted by pack id. Null only when the stored record could not be read, with an error saying why. |
packVersions | [SemanticPackVersion!] | The version of each enabled pack as this build shipped it when the context was last set, sorted by pack. Null only when the stored record could not be read, with an error saying why. |
updatedAt | String | When the context was last set, as an RFC 3339 timestamp; null when it never was. |
SemanticPackVersion
object
The version of one vocabulary pack.
| Field | Type | Description |
|---|---|---|
pack | SemanticPack! | The pack. |
version | String! | The pack's version, as this build shipped it (for example the upstream release it was generated from). |
SemanticTerm
object
A term of a vocabulary the tenant has enabled, as it is stored and as it is displayed.
| Field | Type | Description |
|---|---|---|
curie | String! | A display form, prefix:local, using the vocabulary's prefix or the tenant's custom prefix. It is the IRI itself when no prefix explains it. |
iri | String! | The expanded IRI. This is what is stored; it does not change when a prefix is remapped. |
SetAutomationReviewPolicyResult
object
(Preview: may change in a minor release.) Whether the policy was applied immediately and its resulting view.
| Field | Type | Description |
|---|---|---|
applied | Boolean! | (Preview: may change in a minor release.) True when applied immediately; false when approval or a delay is pending. |
policy | AutomationReviewPolicy | (Preview: may change in a minor release.) The resulting policy. |
UnregisteredIntegrationDevice
object
A device a sender named that no device of the tenant carries an alias for, as an integration saw it. Create a device of a type in the integration's scope with this alias to start resolving it; the sighting then disappears. Values some device already holds are never listed, and clearUnregisteredIntegrationDevices empties the list.
| Field | Type | Description |
|---|---|---|
count | Int! | How many times it has been seen. |
firstSeen | String! | When it was first seen, as an RFC 3339 timestamp. |
id | ID! | Server-assigned numeric identifier, as a string. |
integration | String! | Token of the integration that saw it. |
lastSeen | String! | When it was last seen, as an RFC 3339 timestamp. |
scheme | String! | The alias scheme the sender's identifier is in. |
value | String! | The sender's identifier in its stored spelling. |
UnregisteredIntegrationDeviceSearchResults
object
A page of unregistered devices.
| Field | Type | Description |
|---|---|---|
pagination | SearchResultsPagination! | Where this page sits in the whole result. |
results | [UnregisteredIntegrationDevice!]! | The unregistered devices on this page. |
X509Certificate
object
The pinned device certificate of an X509_CERTIFICATE credential, read back from what is stored.
| Field | Type | Description |
|---|---|---|
fingerprintSha256 | String! | SHA-256 of the certificate, hex. The credential's id. |
notAfter | String! | When the certificate itself expires. The credential's expiresAt is the earliest expiry over its whole chain. |
serialHex | String! | The certificate's serial number, hex. |
subjectCn | String! | The certificate's subject common name: the device's external id when it registers itself. |
trustAnchor | DeviceTrustAnchor | The trust anchor the certificate's chain must reach at every connect. |
Interfaces
BrandedEntity · Entity · MetadataEntity · Model · NamedEntity · TokenReference
BrandedEntity
interface
Presentation hints a user interface can use when showing the record. The server stores them as text and does not interpret them.
| Field | Type | Description |
|---|---|---|
backgroundColor | String | Background colour to display the record with, such as a CSS colour. Not validated. |
borderColor | String | Border colour to display the record with, such as a CSS colour. Not validated. |
foregroundColor | String | Foreground (text) colour to display the record with, such as a CSS colour. Not validated. |
icon | String | Name of an icon representing the record. Not checked against any icon set. |
imageUrl | String | URL of an image representing the record. |
Entity
interface
Interface implemented by every entity object type: anything that can be addressed by an entity type and a token.
| Field | Type | Description |
|---|---|---|
id | ID! | Server-assigned numeric identifier, as a string. |
token | String! | Identifier of the entity, unique within its type and tenant. |
MetadataEntity
interface
A record that carries caller-defined metadata.
| Field | Type | Description |
|---|---|---|
metadata | String | Caller-defined metadata as a JSON document, or null when none is set. |
Model
interface
Fields every stored record carries: a server-assigned id and its timestamps.
| Field | Type | Description |
|---|---|---|
createdAt | String | When the record was created, as an RFC 3339 timestamp. |
deletedAt | String | Always null: deleted records are not returned by this API. |
id | ID! | Server-assigned numeric identifier, as a string. Records are normally addressed by token; the ById lookups take this value. |
updatedAt | String | When the record was last written, as an RFC 3339 timestamp. |
NamedEntity
interface
A record with a human-readable name and description.
| Field | Type | Description |
|---|---|---|
description | String | Free-text description. Null when none is set. |
name | String | Human-readable name. Null when none is set. |
TokenReference
interface
A record addressed by a token, an identifier unique within the tenant among records of its kind.
| Field | Type | Description |
|---|---|---|
token | String! | Identifier of the record, unique within the tenant among records of its kind. Letters, digits, hyphens and underscores, starting with a letter or digit; at most 128 characters. |
Input types
AgentAlarmProposalInput · AgentProposalSearchCriteria · AlarmAnchor · AlarmCountCriteria · AlarmDispositionSearchCriteria · AlarmSearchCriteria · AlarmSuppressionTargetInput · AlarmSuppressionWindowCreateRequest · AlarmSuppressionWindowSearchCriteria · AlarmSuppressionWindowUpdateRequest · AnchorDeviceSearchCriteria · AreaCreateRequest · AreaSearchCriteria · AreaTypeCreateRequest · AreaTypeSearchCriteria · AreaTypeUpdateRequest · AreaUpdateRequest · AssetCreateRequest · AssetSearchCriteria · AssetTypeCreateRequest · AssetTypeSearchCriteria · AssetTypeUpdateRequest · AssetUpdateRequest · AuditEventSearchCriteria · AutomationReviewExpectationInputValue · AutomationReviewPolicyInput · AutomationReviewSearchCriteria · AutomationReviewWindowInput · BulkChangeAmbiguityResolution · BulkChangeConfigSetInput · BulkChangeCreateRequest · BulkChangeCreateSafety · BulkChangeLineSearchCriteria · BulkChangeReversalRequest · BulkChangeSafetyInput · BulkChangeSearchCriteria · CommandDefinitionCreateRequest · CommandDefinitionSearchCriteria · CommandDefinitionUpdateRequest · ConfigurationKeyInput · CustomPrefixInput · CustomerCreateRequest · CustomerDeviceSearchCriteria · CustomerSearchCriteria · CustomerTypeCreateRequest · CustomerTypeSearchCriteria · CustomerTypeUpdateRequest · CustomerUpdateRequest · DetectionRuleCreateRequest · DetectionRuleSearchCriteria · DetectionRuleUpdateRequest · DeviceAliasInput · DeviceBulkCreateRequest · DeviceClaimInitiateRequest · DeviceClaimRequest · DeviceCreateRequest · DeviceCredentialCreateRequest · DeviceCredentialSearchCriteria · DeviceCredentialUpdateRequest · DeviceImportRow · DeviceLocationDeclarationInput · DeviceProfileCreateRequest · DeviceProfileSearchCriteria · DeviceProfileUpdateRequest · DeviceReplaceRequest · DeviceReplacementSearchCriteria · DeviceRevokedCertificateSearchCriteria · DeviceSearchCriteria · DeviceTrustAnchorCreateRequest · DeviceTrustAnchorSearchCriteria · DeviceTrustAnchorUpdateRequest · DeviceTypeCreateRequest · DeviceTypeSearchCriteria · DeviceTypeUpdateRequest · DeviceUpdateRequest · EntityAttributeSearchCriteria · EntityAttributeSetRequest · EntityGroupCreateRequest · EntityGroupSearchCriteria · EntityGroupUpdateRequest · EntityRefInput · EntityRelationshipCreateRequest · EntityRelationshipSearchCriteria · EntityRelationshipTypeCreateRequest · EntityRelationshipTypeSearchCriteria · EntityRelationshipTypeUpdateRequest · FacetKeySearchCriteria · FacetKeySetRequest · FacetValueImportRow · GeoFenceCreateRequest · GeoFenceSearchCriteria · GeoFenceUpdateRequest · HeaderInput · InstalledPositionInput · IntegrationCreateRequest · IntegrationSearchCriteria · IntegrationUpdateRequest · MaintenanceWindowCreateRequest · MaintenanceWindowSearchCriteria · MaintenanceWindowUpdateRequest · MetricDefinitionCreateRequest · MetricDefinitionSearchCriteria · MetricDefinitionUpdateRequest · MetricValueInput · PaginationInput · PayloadDecoderTestInput · ProvisioningProfileCreateRequest · ProvisioningProfileSearchCriteria · ProvisioningProfileUpdateRequest · QueryParamInput · RunAutomationReviewInput · SemanticContextRequest · UnregisteredIntegrationDeviceSearchCriteria
AgentAlarmProposalInput
input
(Preview: may change in a minor release.) An AI agent's request to acknowledge or clear alarms.
| Input field | Type | Description |
|---|---|---|
action | AgentAlarmAction! | (Preview: may change in a minor release.) What to do to the alarms. |
alarmTokens | [String!]! | (Preview: may change in a minor release.) The alarms, by token: 1 to 100. Duplicates count once. |
dryRun | Boolean | (Preview: may change in a minor release.) When true, decide and check the request but store nothing. |
rationale | String | (Preview: may change in a minor release.) Why the agent asks, at most 2048 bytes. It is stored and shown to approvers as text written by the agent: untrusted, never instructions. |
requestId | String! | (Preview: may change in a minor release.) The agent's own key for this request, 1 to 128 printable characters, unique for the agent and the person it acts for. Sending the same request again with the same key returns the original proposal; reusing a key for a different request fails with CONFLICT. |
AgentProposalSearchCriteria
input
(Preview: may change in a minor release.) Filters for listing agent proposals.
| Input field | Type | Description |
|---|---|---|
kind | AgentProposalKind | (Preview: may change in a minor release.) Only proposals of this kind. |
pageNumber | Int! | (Preview: may change in a minor release.) The page to return, starting at 1. |
pageSize | Int! | (Preview: may change in a minor release.) How many proposals a page holds. |
state | AgentProposalState | (Preview: may change in a minor release.) Only proposals in this state. |
AlarmAnchor
input
An anchor to filter alarms by: the alarms of one customer, area or asset, as stamped when each alarm cycle began. An alarm stays under the area its device was in when the alarm was raised, even after the device moves; a device sold or moved raises its NEXT alarm under the new anchors. For a member whose access is limited to some customers the answer is also limited to the alarms of that member's own devices, so a shared area counts only the member's own. A customer outside that member's access is refused (FORBIDDEN); an area or asset none of its devices raised in answers nothing.
| Input field | Type | Description |
|---|---|---|
token | String! | Token of the entity, unique within the tenant. |
type | String! | Entity class: customer, area or asset. Any other value is an error. |
AlarmCountCriteria
input
Criteria for counting alarms by device type or by severity. The facets are those of AlarmSearchCriteria, without paging and without deviceType (the per-type count's grouping; the per-severity count takes it as an argument of its own), and they AND together.
| Input field | Type | Description |
|---|---|---|
acknowledged | Boolean | Only acknowledged (true) or unacknowledged (false) alarms. |
alarmKey | String | Only alarms with this alarm key. |
anchor | AlarmAnchor | Only alarms stamped with this anchor (see AlarmAnchor). |
originatorToken | String | Only alarms of this originator, by its token. An unknown token counts nothing. |
originatorType | String | Entity type of the originator, e.g. "device". Required when originatorToken is set. |
severity | String | Only alarms at this severity. |
state | String | Only alarms in this state: ACTIVE or CLEARED. |
AlarmDispositionSearchCriteria
input
Criteria for listing alarm disposition labels. Every facet is optional and they AND together.
| Input field | Type | Description |
|---|---|---|
alarmToken | String | Only the labelled cycles of this alarm, by its token. An unknown token finds nothing. |
endTime | String | Only cycles raised at or before this instant (inclusive), as an RFC 3339 timestamp. |
label | AlarmDispositionLabel | Only cycles with this label. A value that is not an AlarmDispositionLabel is refused when the request is validated, so a misspelt filter never reads as an empty answer. |
pageNumber | Int! | The page to return, starting at 1. |
pageSize | Int! | How many labels a page holds. |
startTime | String | Only cycles raised at or after this instant (inclusive), as an RFC 3339 timestamp. |
AlarmSearchCriteria
input
Criteria for searching alarms. Every facet is optional and they AND together. originatorType and originatorToken restrict to one entity.
| Input field | Type | Description |
|---|---|---|
acknowledged | Boolean | True selects acknowledged alarms and false unacknowledged ones. Omit for either. |
alarmKey | String | Only alarms with this alarm key. |
anchor | AlarmAnchor | Only alarms stamped with this anchor (see AlarmAnchor). |
deviceType | String | Only alarms raised on a device of this type, by the type's token. An unknown token finds nothing. A member whose access is limited to some customers matches only the devices its scope owns, so an alarm it can see on a device it no longer owns is under no type. |
endTime | String | Only alarms raised at or before this instant (inclusive), as an RFC 3339 timestamp. With startTime, this keeps the alarms whose span overlaps the range. An alarm row holds its latest raise only, so an earlier raise of the same alarm is not found by any range. Omit for no upper bound. A value that is not RFC 3339 is an error. |
originatorToken | String | Only alarms of this originator, by its token. An unknown token finds nothing. |
originatorType | String | Entity type of the originator, for example device. Required when originatorToken is set. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
raisedDuringSuppression | Boolean | True selects current cycles raised under suppression; false selects cycles without a stamp. Omit for either. |
severity | String | Only alarms at this severity: CRITICAL, MAJOR, MINOR, WARNING or INDETERMINATE. |
startTime | String | Only alarms active at some point at or after this instant (inclusive), as an RFC 3339 timestamp: still active, or cleared at or after it. An alarm raised earlier that was still active then is included. Omit for no lower bound. A value that is not RFC 3339 is an error. |
state | String | Only alarms in this state: ACTIVE or CLEARED. |
AlarmSuppressionTargetInput
input
One population of devices to cover.
| Input field | Type | Description |
|---|---|---|
token | String | Target token; omit for TENANT. |
type | String! | DEVICE, DEVICE_TYPE, ENTITY_GROUP, AREA, ASSET, CUSTOMER or TENANT. |
AlarmSuppressionWindowCreateRequest
input
Declare a paging hold. Creator identity and early-end fields are server-owned.
| Input field | Type | Description |
|---|---|---|
alarmKeys | [String!] | Up to twenty alarm keys; empty or omitted matches every key. |
bypassSeverity | String | Severity at or above which alarms bypass this window. |
description | String | Free-text description. |
endTime | String | Exclusive ONE_SHOT end, as an RFC 3339 timestamp; at most thirty-one days after start. |
kind | AlarmSuppressionKind! | Single interval or recurring schedule. |
metadata | String | Caller-defined metadata as JSON. |
name | String | Human-readable name. |
reason | String! | Required explanation for holding pages. |
slots | String | RECURRING weekly slots as a JSON array of day, start and durationMinutes. |
startTime | String | Inclusive ONE_SHOT start, as an RFC 3339 timestamp. |
targets | [AlarmSuppressionTargetInput!]! | One to twenty target populations. |
timezone | String | IANA time zone for RECURRING openings. |
token | String! | Stable identifier for the new window. |
validFrom | String | Inclusive recurrence bound, as an RFC 3339 timestamp. |
validUntil | String | Exclusive recurrence bound, as an RFC 3339 timestamp. |
AlarmSuppressionWindowSearchCriteria
input
Search visible whole windows before computing pagination totals.
| Input field | Type | Description |
|---|---|---|
pageNumber | Int! | One-based page number. |
pageSize | Int! | Maximum records per page. |
status | String | SCHEDULED, ACTIVE or ENDED; omit for every status. |
targetToken | String | Match any target naming this token. |
AlarmSuppressionWindowUpdateRequest
input
Partial edit: omit to keep, null to clear nullable fields, value to replace. Required fields refuse null.
| Input field | Type | Description |
|---|---|---|
alarmKeys | [String!] | Replace all keys; null or an empty list matches every key. |
bypassSeverity | String | Bypass severity; null disables bypass. |
description | String | Free-text description; null clears. |
endTime | String | ONE_SHOT end as RFC 3339; null clears only when the merged kind permits it. |
kind | AlarmSuppressionKind | Schedule kind; null is refused. Change schedule fields together when switching kinds. |
metadata | String | Metadata JSON; null clears. |
name | String | Human-readable name; null clears. |
reason | String | Required explanation; null is refused. |
slots | String | RECURRING slots JSON; null clears only when the merged kind permits it. |
startTime | String | ONE_SHOT start as RFC 3339; null clears only when the merged kind permits it. |
targets | [AlarmSuppressionTargetInput!] | Replace all targets; null and empty lists are refused. |
timezone | String | RECURRING IANA time zone; null clears only when the merged kind permits it. |
validFrom | String | Inclusive recurrence bound as RFC 3339; null clears. |
validUntil | String | Exclusive recurrence bound as RFC 3339; null clears. |
AnchorDeviceSearchCriteria
input
Criteria for the devices on one anchor: a customer, an area or an asset.
| Input field | Type | Description |
|---|---|---|
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
relationshipType | String | Token of the relationship type linking each device to the anchor, such as "assigned". Omit it for a device linked by any type. Refused for a member limited to part of the tenant. |
target | String! | Token of the anchor. |
targetType | String! | The anchor's kind: "customer", "area" or "asset". |
AreaCreateRequest
input
Data required to create an area.
| Input field | Type | Description |
|---|---|---|
areaTypeToken | String! | Token of the area type to create it under. An unknown token is refused. |
boundaryFenceToken | String | The token of the geofence that bounds the area. It must name an existing fence. |
description | String | Free-text description, up to 1024 characters. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
name | String | Human-readable name, up to 128 characters. |
token | String! | Identifier for the new area, unique within the tenant. Cannot be changed later. |
AreaSearchCriteria
input
Criteria for listing areas.
| Input field | Type | Description |
|---|---|---|
areaTypeToken | String | Only areas of the area type with this token. Omit for every area. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
AreaTypeCreateRequest
input
Data required to create an area type.
| Input field | Type | Description |
|---|---|---|
backgroundColor | String | Background colour to display the area type with, up to 32 characters. Not validated. |
borderColor | String | Border colour to display the area type with, up to 32 characters. Not validated. |
description | String | Free-text description, up to 1024 characters. |
foregroundColor | String | Foreground (text) colour to display the area type with, up to 32 characters. Not validated. |
icon | String | Name of an icon representing the area type, up to 128 characters. Not checked against any icon set. |
imageUrl | String | URL of an image representing the area type, up to 512 characters. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
name | String | Human-readable name, up to 128 characters. |
semanticTypes | [String!] | The classes an entity of this type is, as CURIEs (for example sdm-streetlighting:Streetlight) or full IRIs inside an enabled vocabulary. Each must be a CLASS of a pack the tenant has enabled, or a term under a custom prefix it declared; at most 8. A term outside the enabled vocabularies, of the wrong kind, deprecated, or malformed fails the request with INVALID_ARGUMENT naming it. Stored as expanded IRIs. Omit for none. |
token | String! | Identifier for the new area type, unique within the tenant. Cannot be changed later. |
AreaTypeSearchCriteria
input
Criteria for listing area types.
| Input field | Type | Description |
|---|---|---|
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
AreaTypeUpdateRequest
input
A partial update of an area type. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. There is no token field: the mutation's token argument names the record, so a token cannot be moved.
| Input field | Type | Description |
|---|---|---|
backgroundColor | String | Background colour; null clears it. |
borderColor | String | Border colour; null clears it. |
description | String | Free-text description; null clears it. |
foregroundColor | String | Foreground colour; null clears it. |
icon | String | Icon name; null clears it. |
imageUrl | String | Image URL; null clears it. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
name | String | Human-readable name; null clears it. |
semanticTypes | [String!] | New classes, replacing the stored ones: null or an empty list clears them. Omit to leave them alone. Validated as on create; only a request that names this field is validated. |
AreaUpdateRequest
input
A partial update of an area. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. There is no token field: the mutation's token argument names the record, so a token cannot be moved.
| Input field | Type | Description |
|---|---|---|
areaTypeToken | String | Re-points the area at a different area type. Omit to keep the current one. Null is refused, because every area must reference a type, and so is an unknown token; a refusal writes nothing. |
boundaryFenceToken | String | Links the area to the geofence that bounds it: omit to keep the link, send null to remove it, send a token to set it. The token must name an existing fence. |
description | String | Free-text description; null clears it. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
name | String | Human-readable name; null clears it. |
AssetCreateRequest
input
Data required to create an asset.
| Input field | Type | Description |
|---|---|---|
assetTypeToken | String! | Token of the asset type to create it under. An unknown token is refused. |
description | String | Free-text description, up to 1024 characters. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
name | String | Human-readable name, up to 128 characters. |
properties | String | The asset's property document, validated against the asset type's active published contract before anything is written. Refused when the type has no published contract, when a key is not declared, when a value does not fit its declared type, bounds or allowed values, or when a required property is missing; a refusal is total, so no asset is created. |
token | String! | Identifier for the new asset, unique within the tenant. Cannot be changed later. |
AssetSearchCriteria
input
Criteria for listing assets.
| Input field | Type | Description |
|---|---|---|
assetTypeToken | String | Only assets of the asset type with this token. Omit for every asset. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
AssetTypeCreateRequest
input
Data required to create an asset type.
| Input field | Type | Description |
|---|---|---|
backgroundColor | String | Background colour to display the asset type with, up to 32 characters. Not validated. |
borderColor | String | Border colour to display the asset type with, up to 32 characters. Not validated. |
description | String | Free-text description, up to 1024 characters. |
foregroundColor | String | Foreground (text) colour to display the asset type with, up to 32 characters. Not validated. |
icon | String | Name of an icon representing the asset type, up to 128 characters. Not checked against any icon set. |
imageUrl | String | URL of an image representing the asset type, up to 512 characters. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
name | String | Human-readable name, up to 128 characters. |
propertySchema | String | The draft property contract, as on AssetType.propertySchema. Refused if it is not a JSON array of descriptors, if it carries a key no descriptor declares (so a mistyped key is refused rather than dropped), or if it declares a contract nothing could satisfy, such as a duplicate name, an unknown data type or a default outside its own enum. |
semanticTypes | [String!] | The classes an entity of this type is, as CURIEs (for example sdm-streetlighting:Streetlight) or full IRIs inside an enabled vocabulary. Each must be a CLASS of a pack the tenant has enabled, or a term under a custom prefix it declared; at most 8. A term outside the enabled vocabularies, of the wrong kind, deprecated, or malformed fails the request with INVALID_ARGUMENT naming it. Stored as expanded IRIs. Omit for none. |
token | String! | Identifier for the new asset type, unique within the tenant. Cannot be changed later. |
AssetTypeSearchCriteria
input
Criteria for listing asset types.
| Input field | Type | Description |
|---|---|---|
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
AssetTypeUpdateRequest
input
A partial update of an asset type. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. There is no token field: the mutation's token argument names the record, so a token cannot be moved.
| Input field | Type | Description |
|---|---|---|
backgroundColor | String | Background colour; null clears it. |
borderColor | String | Border colour; null clears it. |
description | String | Free-text description; null clears it. |
foregroundColor | String | Foreground colour; null clears it. |
icon | String | Icon name; null clears it. |
imageUrl | String | Image URL; null clears it. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
name | String | Human-readable name; null clears it. |
propertySchema | String | Replaces the draft property contract wholesale; null withdraws it. Omit to keep the stored draft. Validated as on create, and a refusal writes nothing. |
semanticTypes | [String!] | New classes, replacing the stored ones: null or an empty list clears them. Omit to leave them alone. Validated as on create; only a request that names this field is validated. |
AssetUpdateRequest
input
A partial update of an asset. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. There is no token field: the mutation's token argument names the record, so a token cannot be moved.
| Input field | Type | Description |
|---|---|---|
assetTypeToken | String | Re-points the asset at a different asset type. Omit to keep the current one. Null is refused, because every asset must reference a type, and so is an unknown token; a refusal writes nothing. |
description | String | Free-text description; null clears it. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
name | String | Human-readable name; null clears it. |
properties | String | Replaces the asset's property document wholesale; null clears it. Omit to keep what is stored. Omitting it does not skip the check: moving to another asset type re-validates the properties the asset already carries against that type's contract. |
AuditEventSearchCriteria
input
Criteria for querying the audit journal. Every filter is optional; a bounded startTime and endTime range is recommended.
| Input field | Type | Description |
|---|---|---|
actor | String | Only entries whose actor contains this text. The match ignores case. At most 256 bytes; longer input is refused with LIMIT_EXCEEDED. |
category | String | Only entries of this category: mutation or auth. |
endTime | String | Only entries at or before this instant, as an RFC 3339 timestamp. |
entityPk | String | Only entries that affected the row with this primary key. |
operation | String | Only entries of this operation: create, update or delete. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
startTime | String | Only entries at or after this instant, as an RFC 3339 timestamp. |
tableName | String | Only entries that mutated this table. |
AutomationReviewExpectationInputValue
input
(Preview: may change in a minor release.) AutomationReviewExpectationInputValue parameters.
| Input field | Type | Description |
|---|---|---|
expect | String! | (Preview: may change in a minor release.) One rule-test expectation as JSON, using the event-processing expectation vocabulary. |
name | String | (Preview: may change in a minor release.) The expectation name. |
window | AutomationReviewWindowRole! | (Preview: may change in a minor release.) The window to which this expectation applies. |
AutomationReviewPolicyInput
input
(Preview: may change in a minor release.) Requested automation protection settings; omitted optional fields use their defaults.
| Input field | Type | Description |
|---|---|---|
allowSelfApproval | Boolean | (Preview: may change in a minor release.) Whether creators and authors may approve; defaults to false. |
approvalTtlSeconds | Int | (Preview: may change in a minor release.) Approval lifetime in seconds; defaults to 86400. |
required | Boolean! | (Preview: may change in a minor release.) Whether publishing requires review. |
requiredApprovals | Int | (Preview: may change in a minor release.) Required approvals; defaults to 1. |
stepUpMaxAgeSeconds | Int | (Preview: may change in a minor release.) Maximum second-factor age in seconds; defaults to 900. |
AutomationReviewSearchCriteria
input
(Preview: may change in a minor release.) Profile, lifecycle, draft matching and paging filters.
| Input field | Type | Description |
|---|---|---|
matchingCurrentDraft | Boolean | (Preview: may change in a minor release.) Only reviews whose draft digest matches, or does not match, the current draft. |
pageNumber | Int! | (Preview: may change in a minor release.) The page to return, starting at 1. |
pageSize | Int! | (Preview: may change in a minor release.) The number of reviews per page. |
profileToken | String! | (Preview: may change in a minor release.) The profile whose draft is reviewed. |
state | AutomationReviewState | (Preview: may change in a minor release.) The current review lifecycle state. |
AutomationReviewWindowInput
input
(Preview: may change in a minor release.) AutomationReviewWindowInput parameters.
| Input field | Type | Description |
|---|---|---|
end | String! | (Preview: may change in a minor release.) RFC3339 timestamp; invalid timestamps are invalid arguments. |
role | AutomationReviewWindowRole! | (Preview: may change in a minor release.) Whether this is the incident or normal window. |
start | String! | (Preview: may change in a minor release.) RFC3339 timestamp; invalid timestamps are invalid arguments. |
BulkChangeAmbiguityResolution
input
Preview. Resolve selected ambiguous lines with a fresh second factor and a note.
| Input field | Type | Description |
|---|---|---|
allAmbiguous | Boolean | Preview. Resolve every ambiguous line instead of selecting ordinals. |
note | String! | Preview. Reason for the verdict, from 1 to 1000 characters. |
ordinals | [Int!] | Preview. Positions to resolve, starting at 1. Select this or allAmbiguous. |
token | String! | Preview. Token of the bulk change. |
verdict | BulkChangeVerdict! | Preview. The person's verdict. |
BulkChangeConfigSetInput
input
Preview. The change a config.set operation makes: one declared SHARED configuration key, set or unset.
| Input field | Type | Description |
|---|---|---|
key | String! | Preview. The configuration key. |
unset | Boolean | Preview. Remove the key instead of setting it. |
value | String | Preview. The value, as text. Omit when unsetting. |
valueType | String | Preview. STRING, LONG, DOUBLE, BOOLEAN or JSON. Omit when unsetting. |
BulkChangeCreateRequest
input
Preview. A request to plan or create a bulk change.
| Input field | Type | Description |
|---|---|---|
configSet | BulkChangeConfigSetInput | Preview. The change, for kind config.set. |
deviceTokens | [String!]! | Preview. Tokens of the devices to change, at most 10000. A token that names no device in this tenant becomes a refused line. |
kind | String! | Preview. The kind of operation. This release knows config.set. |
name | String! | Preview. Name shown to people. |
safety | BulkChangeCreateSafety | Preview. The limits to run under. |
token | String! | Preview. Identifier for the operation, unique within the tenant. |
BulkChangeCreateSafety
input
Preview. The limits an operation asks to run under.
| Input field | Type | Description |
|---|---|---|
ambiguityThreshold | Int | Preview. Ambiguous lines that pause the operation. Omit for no limit. |
failureThreshold | Int | Preview. Failed lines that pause the operation. Omit for no limit. |
maxPostsPerSecond | Int | Preview. The most lines applied per second. Default 10; at most 50. |
settleDeadlineSeconds | Int | Preview. Seconds a device has to answer before its line becomes ambiguous. Default 86400. |
BulkChangeLineSearchCriteria
input
Preview. Criteria for listing one operation's lines.
| Input field | Type | Description |
|---|---|---|
code | String | Preview. Only lines with this code. |
pageNumber | Int! | Preview. 1-based page number. |
pageSize | Int! | Preview. Rows per page. |
posting | String | Preview. Only lines in this posting state. |
settlement | String | Preview. Only lines with this settlement. |
BulkChangeReversalRequest
input
Preview. A request to reverse a DISPATCHED or ABORTED bulk change: a new bulk change that puts back, line by line, the value each device held before.
| Input field | Type | Description |
|---|---|---|
name | String! | Preview. Name shown to people. |
ordinals | [Int!] | Preview. Positions of the original's lines to reverse, starting at 1. Omit to reverse every applied line. |
original | String! | Preview. Token of the bulk change to reverse. |
overrideChanged | Boolean | Preview. Apply every selected line even where the value changed after the original was applied. Needs a second factor verified within five minutes. |
overrideOrdinals | [Int!] | Preview. Apply only these lines even where the value changed since. Needs a second factor verified within five minutes. |
safety | BulkChangeCreateSafety | Preview. The limits to run under. |
token | String! | Preview. Identifier for the reversal, unique within the tenant. Reversing again with the same token and the same request returns the first reversal. |
BulkChangeSafetyInput
input
Preview. A change to the limits an operation runs under when it is resumed. Anything looser than the approved contract is refused.
| Input field | Type | Description |
|---|---|---|
ambiguityThreshold | Int | Preview. Ambiguous lines that pause the operation. At most the approved limit. |
clearAmbiguityThreshold | Boolean | Preview. Remove the ambiguity limit. Only where the contract has none. |
clearFailureThreshold | Boolean | Preview. Remove the failure limit. Only where the contract has none. |
failureThreshold | Int | Preview. Failed lines that pause the operation. At most the approved limit. |
maxPostsPerSecond | Int | Preview. The most lines applied per second. At most the approved rate. |
BulkChangeSearchCriteria
input
Preview. Criteria for listing operations.
| Input field | Type | Description |
|---|---|---|
dispatch | String | Preview. Only operations in this dispatch state. |
evidence | String | Preview. Only operations in this evidence state. |
kind | String | Preview. Only operations of this kind. |
pageNumber | Int! | Preview. 1-based page number. |
pageSize | Int! | Preview. Rows per page. |
CommandDefinitionCreateRequest
input
Fields for a new command definition.
| Input field | Type | Description |
|---|---|---|
commandKey | String! | The key used to send the command. Letters, digits, hyphens and underscores, starting with a letter or digit; at most 128 characters. Dots may separate namespaced segments (for example sparkplug.write): each segment follows the same rule, and a leading, trailing or doubled dot is refused. A key the profile already declares is refused with CONFLICT. |
description | String | Free-text description, up to 1024 characters. |
deviceProfileToken | String! | Token of the profile to declare the command on. An unknown token fails the request. |
encoder | String | Optional declarative LoRaWAN payload encoder JSON. Null keeps the raw payload contract. |
impact | String | How disruptive the command is: NORMAL (the default), DISRUPTIVE or DESTRUCTIVE. DISRUPTIVE and DESTRUCTIVE commands wait for the device type's maintenance window. An unknown value fails the request. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
name | String | Human-readable name, up to 128 characters. |
parameterSchema | String | The command's parameters: a JSON array of descriptors, each with a name and optional description, kind (SCALAR, the default, or OBJECT with nested parameters), dataType (DOUBLE, INT, BOOLEAN or STRING), unit, required, default, minValue, maxValue and enum. Unknown keys and inconsistent constraints are refused. Omit it for a command without structured arguments. |
token | String! | Identifier for the new command definition. A token already in use in the tenant is refused with CONFLICT. |
CommandDefinitionSearchCriteria
input
Criteria for searching command definitions. Results are newest first.
| Input field | Type | Description |
|---|---|---|
commandKey | String | Return only definitions with exactly this command key. |
deviceProfile | String | Return only definitions on the profile with this token. An unknown token matches nothing. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
CommandDefinitionUpdateRequest
input
A partial update to a command definition. Omit a field to leave the stored value alone, send a value to set it, or send an explicit null to clear it; the fields that cannot be cleared say so. The definition is named by the mutation's token argument, so there is no token here. Any refusal leaves the definition unchanged.
| Input field | Type | Description |
|---|---|---|
commandKey | String | New command key, in the same format as on create. An explicit null or a blank value is refused, and a key already declared on the profile is refused with CONFLICT. |
description | String | New description, or null to clear it. |
deviceProfileToken | String | Token of another profile to move the definition to. An explicit null or a blank value is refused, and an unknown token fails the whole update. The command key must be unique in the profile the definition ends up in. |
encoder | String | Optional declarative LoRaWAN payload encoder JSON. Null keeps the raw payload contract. |
impact | String | New impact (NORMAL, DISRUPTIVE or DESTRUCTIVE). An explicit null or an unknown value is refused. The change reaches devices when the profile is published. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
name | String | New name, or null to clear it. |
parameterSchema | String | New parameters (validated as on create), or null to make the command one without structured arguments. |
ConfigurationKeyInput
input
One key of a configuration declaration. The key must follow the attribute-key grammar (letters, digits, hyphens and underscores, starting with a letter or digit), be unique within the declaration, and carry a valid value type.
| Input field | Type | Description |
|---|---|---|
description | String | An optional human-readable note. |
key | String! | The shared attribute key. |
valueType | String! | How the key's value is typed: STRING, LONG, DOUBLE, BOOLEAN or JSON. |
CustomPrefixInput
input
One custom prefix declaration.
| Input field | Type | Description |
|---|---|---|
namespace | String! | The namespace IRI the prefix expands to. It may not overlap a pack's or another prefix's namespace. |
prefix | String! | The prefix, as it will be written before the colon in a CURIE. It may not be a pack's prefix. |
CustomerCreateRequest
input
Data required to create a customer.
| Input field | Type | Description |
|---|---|---|
customerTypeToken | String! | Token of the customer type to create it under. An unknown token is refused. |
description | String | Free-text description, up to 1024 characters. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
name | String | Human-readable name, up to 128 characters. |
token | String! | Identifier for the new customer, unique within the tenant. Cannot be changed later. |
CustomerDeviceSearchCriteria
input
Which customer's devices to return, and the page.
| Input field | Type | Description |
|---|---|---|
customer | String! | Token of the customer. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
relationshipType | String! | Token of the relationship type linking each device to the customer, such as "assigned". |
CustomerSearchCriteria
input
Criteria for listing customers.
| Input field | Type | Description |
|---|---|---|
customerTypeToken | String | Only customers of the customer type with this token. Omit for every customer. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
CustomerTypeCreateRequest
input
Data required to create a customer type.
| Input field | Type | Description |
|---|---|---|
backgroundColor | String | Background colour to display the customer type with, up to 32 characters. Not validated. |
borderColor | String | Border colour to display the customer type with, up to 32 characters. Not validated. |
description | String | Free-text description, up to 1024 characters. |
foregroundColor | String | Foreground (text) colour to display the customer type with, up to 32 characters. Not validated. |
icon | String | Name of an icon representing the customer type, up to 128 characters. Not checked against any icon set. |
imageUrl | String | URL of an image representing the customer type, up to 512 characters. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
name | String | Human-readable name, up to 128 characters. |
semanticTypes | [String!] | The classes an entity of this type is, as CURIEs (for example sdm-streetlighting:Streetlight) or full IRIs inside an enabled vocabulary. Each must be a CLASS of a pack the tenant has enabled, or a term under a custom prefix it declared; at most 8. A term outside the enabled vocabularies, of the wrong kind, deprecated, or malformed fails the request with INVALID_ARGUMENT naming it. Stored as expanded IRIs. Omit for none. |
token | String! | Identifier for the new customer type, unique within the tenant. Cannot be changed later. |
CustomerTypeSearchCriteria
input
Criteria for listing customer types.
| Input field | Type | Description |
|---|---|---|
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
CustomerTypeUpdateRequest
input
A partial update of a customer type. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. There is no token field: the mutation's token argument names the record, so a token cannot be moved.
| Input field | Type | Description |
|---|---|---|
backgroundColor | String | Background colour; null clears it. |
borderColor | String | Border colour; null clears it. |
description | String | Free-text description; null clears it. |
foregroundColor | String | Foreground colour; null clears it. |
icon | String | Icon name; null clears it. |
imageUrl | String | Image URL; null clears it. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
name | String | Human-readable name; null clears it. |
semanticTypes | [String!] | New classes, replacing the stored ones: null or an empty list clears them. Omit to leave them alone. Validated as on create; only a request that names this field is validated. |
CustomerUpdateRequest
input
A partial update of a customer. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. There is no token field: the mutation's token argument names the record, so a token cannot be moved.
| Input field | Type | Description |
|---|---|---|
customerTypeToken | String | Re-points the customer at a different customer type. Omit to keep the current one. Null is refused, because every customer must reference a type, and so is an unknown token; a refusal writes nothing. |
description | String | Free-text description; null clears it. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
name | String | Human-readable name; null clears it. |
DetectionRuleCreateRequest
input
Data required to create a detection rule on a device profile. The definition is checked to be well- formed JSON on write; the detection engine does the authoritative validation when the profile is published.
| Input field | Type | Description |
|---|---|---|
authoredVia | AuthoredVia | Door used for this save; omitted or null means API. Adds to the recorded set and never erases earlier doors, including DESCRIBE. |
authoringGraph | String | The visual automation canvas document the rule was authored with. Omit for a rule authored as a form. When present it must be a JSON object; it is stored verbatim and not interpreted. |
definition | String! | The rule as a JSON document in the detection engine's rule language. Must be well-formed JSON. |
description | String | Free-text description, up to 1024 characters. |
deviceProfileToken | String! | Token of the device profile to declare the rule on. An unknown token is refused. |
enabled | Boolean! | Whether the rule is live. A disabled rule is kept but not run. |
entityGroupToken | String | Token of a dynamic entity group to scope the rule to. Omit both scope fields for a rule that covers every device of the profile, or set both together. Checked on save: it must name a published dynamic group version. |
entityGroupVersion | Int | Published version of the entity group to scope the rule to. Set together with entityGroupToken. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
name | String | Human-readable name, up to 128 characters. |
token | String! | Identifier for the new rule, unique within the tenant. Cannot be changed later. |
DetectionRuleSearchCriteria
input
Criteria for listing detection rules.
| Input field | Type | Description |
|---|---|---|
deviceProfile | String | Only rules declared on the device profile with this token. Omit for every rule. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
DetectionRuleUpdateRequest
input
A partial update of a detection rule. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. The rule's token is not here because the mutation's token argument names the rule and an update cannot move it. The authoredVia field records this save's door instead: omitted or null means API, and previous doors are retained.
| Input field | Type | Description |
|---|---|---|
authoredVia | AuthoredVia | Door used for this save; omitted or null means API. Adds to the recorded set and never erases earlier doors, including DESCRIBE. |
authoringGraph | String | The visual canvas document. Null drops it, which is what a form edit of a canvas-authored rule needs since the graph is then stale; omitting it keeps it. |
definition | String | The rule JSON document. Required: null is refused, because a rule with no definition detects nothing. |
description | String | Free-text description; null clears it. |
deviceProfileToken | String | Moves the rule to this device profile. Null is refused, and an unknown token refuses the whole update. |
enabled | Boolean | Whether the rule is live. Null is refused rather than read as false, which would silently park a live rule. |
entityGroupToken | String | Entity group scope. The two scope fields are applied independently and then checked as a pair against what the rule ends up with, so naming one without the other is refused. Null on either removes the scope. |
entityGroupVersion | Int | Published version of the scoping entity group. See entityGroupToken for how the pair is applied. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
name | String | Human-readable name; null clears it. |
DeviceAliasInput
input
A name for a device in a sender's vocabulary. The value is checked against the scheme and stored in one canonical spelling, so the same DevEUI written in either case is one alias.
| Input field | Type | Description |
|---|---|---|
scheme | String! | lorawan.deveui, tts.device-id, or custom.<name> (lower-case letters, digits, hyphen and underscore, up to 63 characters). |
value | String! | lorawan.deveui: exactly 16 hexadecimal digits. tts.device-id: 1 to 36 letters, digits and hyphens. custom.<name>: 1 to 128 characters with no control characters, case kept. |
DeviceBulkCreateRequest
input
Creates many devices of one type from templates. Device n of the batch (n running from startIndex to startIndex + count - 1) is rendered by replacing {n} with n, or {n:0Wd} with n zero-padded to width W. Each template may be at most 256 characters, with a pad width of at most 128. The whole batch is created or none of it is.
| Input field | Type | Description |
|---|---|---|
count | Int! | Number of devices to create, from 1 to 1000. |
deviceTypeToken | String! | Token of the device type for every device. An unknown token fails the request. |
externalIdTemplate | String | Template for the external ids. Optional. {random} renders a fresh random value per device. When creating more than one device the template must contain {n}, {n:0Wd} or {random}, since external ids are unique within the tenant. A rendered value may be at most 256 characters. |
metadata | String | Metadata given to every device. Must be valid JSON; an empty string means none. |
nameTemplate | String | Template for the device names. Optional; {random} is not allowed. A rendered name may be at most 128 characters. |
startIndex | Int | Index of the first device. Defaults to 1; values below 1 are refused. |
tokenTemplate | String! | Template for the device tokens. It must contain {n} or {n:0Wd} so each token is distinct, must not contain {random}, and every rendered token must be a valid token not already in use. |
DeviceClaimInitiateRequest
input
Data required to open, or reopen, a device claim. Reopening a claimed or canceled device, for example after resale, clears the earlier redemption record.
| Input field | Type | Description |
|---|---|---|
claimSecret | String! | The secret an eventual owner must present to redeem the claim. Refused when empty or whitespace- only; at most 256 bytes, taken exactly as sent. Stored only as a keyed digest and never returned. |
deviceToken | String! | Token of the device to open a claim on. An unknown token is refused. |
expiresAt | String | When the claim stops being redeemable, as an RFC 3339 timestamp. Omit for no expiry. |
DeviceClaimRequest
input
Data required to redeem a device claim: the device, the claim secret as proof of possession, the customer to assign the device to, and the relationship type of the resulting device-to-customer edge. Redeeming is one-time: a concurrent or repeated redemption of the same claim fails.
| Input field | Type | Description |
|---|---|---|
claimSecret | String! | The claim secret that proves possession. It must match the secret the claim was opened with. |
customerToken | String! | Token of the customer to assign the device to. An unknown token is refused. |
deviceToken | String! | Token of the device being claimed. |
relationshipType | String | The relationship type of the edge the claim writes. Omit it to use the built-in tracked "assigned" type, which is what makes the device belong to the customer: only a tracked relationship counts as ownership, so a device claimed with an untracked type is not visible to members limited to that customer. |
DeviceCreateRequest
input
Fields for a new device.
| Input field | Type | Description |
|---|---|---|
aliases | [DeviceAliasInput!] | Names a sender other than the platform knows the device by, such as its LoRaWAN DevEUI. At most 8, one per scheme. A value another device in the tenant already holds under the scheme is refused with CONFLICT. Omitted or null creates the device with none. |
description | String | Free-text description, up to 1024 characters. |
deviceTypeToken | String! | Token of the device's type. An unknown token fails the request. |
enabled | Boolean | False to create the device already disabled. Omitted or null creates it enabled. |
externalId | String | Optional business identifier, up to 256 characters. A value another device in the tenant already has is refused with CONFLICT. |
gatewayToken | String | Token of the gateway device to create this device behind. The same rules as assignDeviceGateway apply, and a refusal fails the create. Omitted or null creates the device behind no gateway. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
name | String | Human-readable name, up to 128 characters. |
provisioningProfileToken | String | Token of a provisioning profile to EARMARK the device for. Only that profile may later adopt this device when it registers itself; the profile must exist in the tenant and be of this device's type, otherwise the request is refused with INVALID_VALUE. Omitted or null earmarks nothing, and no profile will take the device over. |
token | String! | Identifier for the new device. A token already in use in the tenant is refused with CONFLICT. |
DeviceCredentialCreateRequest
input
Data required to create a device credential.
| Input field | Type | Description |
|---|---|---|
certificatePem | String | X509_CERTIFICATE only: the device certificate in PEM, optionally followed by the intermediates that link it to the trust anchor. The chain is verified when the credential is created, so one that could not authenticate is refused with INVALID_VALUE. Only the device certificate is stored. Requires trustAnchorToken. Refused for any other type. |
credentialId | String! | The MQTT username, or the access token for ACCESS_TOKEN (at most 256 bytes). The token is stored only as a keyed digest and is returned once, in this mutation's response. |
credentialType | String! | The kind of credential: ACCESS_TOKEN, MQTT_BASIC or X509_CERTIFICATE. Any other value is refused. |
credentialValue | String | The password for an MQTT_BASIC credential: at least 16 bytes, counted as sent, and at most 4096. A shorter one is refused with extensions.code INVALID_VALUE. Write-only; it is stored only as a keyed digest. A password set before the 16-byte minimum keeps working until it is next changed. |
deviceToken | String! | Token of the device the credential authenticates. An unknown token is refused. |
enabled | Boolean! | Whether the credential can authenticate. A disabled credential is kept but refused at connect. |
expiresAt | String | When the credential stops authenticating, as an RFC 3339 timestamp. Omit for never. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
token | String! | Identifier for the new credential record, unique within the tenant. |
trustAnchorToken | String | X509_CERTIFICATE only: the trust anchor the certificate's chain must reach, at creation and at every connect. |
DeviceCredentialSearchCriteria
input
Criteria for listing device credentials. Every facet is optional and they AND together.
| Input field | Type | Description |
|---|---|---|
credentialId | String | An MQTT username, or for ACCESS_TOKEN either the access token or the fingerprint a read returns. The token is matched through its digest; it is never stored or compared as sent. |
credentialType | String | Only credentials of this type: ACCESS_TOKEN, MQTT_BASIC or X509_CERTIFICATE. |
device | String | Only credentials of the device with this token. |
enabled | Boolean | True selects enabled credentials and false disabled ones. Omit for either. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
DeviceCredentialUpdateRequest
input
A partial update of a device credential. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. The token is not here because the mutation's token argument names the credential and an update cannot move it.
| Input field | Type | Description |
|---|---|---|
credentialId | String | The MQTT username, or the new access token for ACCESS_TOKEN. Setting it on an ACCESS_TOKEN credential rotates the token: the old one stops working at once and the new one is returned once, in this mutation's response. Required when this request changes the credential's type to or from ACCESS_TOKEN, and refused otherwise with extensions.code INVALID_VALUE. |
credentialType | String | The kind of credential. Required: null is refused. Validated against the known types when sent. |
credentialValue | String | The new password for an MQTT_BASIC credential: at least 16 bytes, counted as sent, and at most 4096. A shorter one is refused with extensions.code INVALID_VALUE. Required when this request changes the credential's type to MQTT_BASIC. Ignored for a type that has no password. Write-only; it is stored only as a keyed digest. A password set before the 16-byte minimum keeps working until it is next changed. |
deviceToken | String | Re-points the credential at another device. Null is refused, and an unknown token refuses the whole update. |
enabled | Boolean | Whether the credential can authenticate. Null is refused rather than read as false, which would silently disable the credential and take the device offline at its next reconnect. |
expiresAt | String | When the credential stops authenticating, as an RFC 3339 timestamp. Null, or an empty string such as a cleared form field sends, means never expires. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
DeviceImportRow
input
One device of an import file.
| Input field | Type | Description |
|---|---|---|
aliases | [DeviceAliasInput!] | Names a sender other than the platform knows the device by, as on a single create. A value another device holds makes the row a CONFLICT and a malformed one makes it INVALID. A device that already exists with a different alias set makes the row a CONFLICT. |
credentialId | String | The id the device presents (the access token itself, or the MQTT username). FACTORY_CREDENTIALS mode only. |
credentialType | String | ACCESS_TOKEN or MQTT_BASIC. FACTORY_CREDENTIALS mode only. |
credentialValue | String | The MQTT_BASIC password, at least 16 bytes. Write-only: stored as a keyed digest, never returned, logged or compared on a re-run. FACTORY_CREDENTIALS mode only. |
description | String | Free-text description, up to 1024 characters. |
deviceTypeToken | String! | Token of the device's type. An unknown token makes the row INVALID. |
externalId | String | Optional business identifier, up to 256 characters. Checked for conflicts; never the key. |
installedAccuracy | Float | Horizontal accuracy in metres, not negative. Needs installedLatitude and installedLongitude. Like installedElevation, an omitted accuracy compares as none against a device that exists. |
installedElevation | Float | Metres above the WGS84 ellipsoid. Needs installedLatitude and installedLongitude. When a device that already exists is compared, an omitted elevation compares as NONE: a row that leaves it out, against a device whose stored position has one, is a CONFLICT. |
installedLatitude | Float | Degrees north where the device was installed, for a device that is fixed in place. Given together with installedLongitude or not at all. A value outside -90 to 90 makes the row INVALID. The position is stored with source IMPORT. A device that already exists makes the row a CONFLICT when its stored position differs, and always for a caller without location:installed:read, which is never told whether the position matches. |
installedLongitude | Float | Degrees east where the device was installed, -180 to 180. See installedLatitude. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
name | String | Human-readable name, up to 128 characters. |
provisioningProfileToken | String | Token of a provisioning profile to earmark the device for. An unknown profile, or one of a different device type, makes the row INVALID. A device that already exists with a different earmark makes the row a CONFLICT. |
token | String! | Identifier of the device, and the key a re-run matches on. Required. |
DeviceLocationDeclarationInput
input
Sets a profile's position declaration. Supplying it states that the devices report their own position; an empty object makes that statement with no expectations.
| Input field | Type | Description |
|---|---|---|
expectedAccuracyMeters | Float | Horizontal accuracy to expect, in metres. Must be a positive finite number when sent; omit it or send null to state no expectation. |
expectedUpdateIntervalSeconds | Int | How often a position fix is expected, in seconds. Must be positive when sent; omit it or send null to state no expectation. |
DeviceProfileCreateRequest
input
Fields for a new device profile. Its definitions are added afterwards, and take effect when the profile is published.
| Input field | Type | Description |
|---|---|---|
category | String | Functional class of the devices, such as thermostat or meter, up to 64 characters. |
description | String | Free-text description, up to 1024 characters. |
location | DeviceLocationDeclarationInput | Whether the devices report their own position, and what to expect of it. Omit it when they do not. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
name | String | Human-readable name, up to 128 characters. |
token | String! | Identifier for the new profile. A token already in use in the tenant is refused with CONFLICT. |
DeviceProfileSearchCriteria
input
Criteria for searching device profiles. Results are newest first.
| Input field | Type | Description |
|---|---|---|
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
DeviceProfileUpdateRequest
input
A partial update to a device profile's own fields. Omit a field to leave the stored value alone, send a value to set it, or send an explicit null to clear it. The profile is named by the mutation's token argument; use renameDeviceProfile to change its token. Changes here are part of the draft.
| Input field | Type | Description |
|---|---|---|
category | String | New category, or null to clear it. |
description | String | New description, or null to clear it. |
location | DeviceLocationDeclarationInput | New position declaration, replacing the stored one; null states that the devices do not report their own position. An empty object states that they do, with no expectations. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
name | String | New name, or null to clear it. |
DeviceReplaceRequest
input
What a caller sends to swap the physical unit behind a device identity. It carries no device identity fields on purpose: there is no token, external id, device type or name, so a replacement cannot move the identity, the business key or the profile binding. Rotate credentials, not identity.
| Input field | Type | Description |
|---|---|---|
credentialId | String | The identifier the new unit presents at connect time. Optional only for ACCESS_TOKEN, where a random token is minted and returned once in newCredential; required for every other type, since the server cannot invent an MQTT username. |
credentialToken | String | Token for the new credential record. A UUID is generated when omitted. |
credentialType | String | Type of the credential minted for the incoming unit. Defaults to ACCESS_TOKEN. |
credentialValue | String | The password for an MQTT_BASIC credential: at least 16 bytes, counted as sent, and at most 4096. A shorter one is refused with extensions.code INVALID_VALUE. Write-only; it is stored only as a keyed digest. A password set before the 16-byte minimum keeps working until it is next changed. |
deviceToken | String! | Token of the surviving logical device. An unknown token is refused. |
expiresAt | String | When the new credential stops authenticating, as an RFC 3339 timestamp. Omit for never. |
reason | String | The operator's free-text note, for example water ingress or an RMA number. Recorded on the replacement. |
unitIdentifier | String | The incoming physical unit's own identifier, such as a manufacturer serial or IMEI. Recorded on the replacement, not on the device. |
DeviceReplacementSearchCriteria
input
Criteria for listing device replacement records.
| Input field | Type | Description |
|---|---|---|
device | String | Only the replacements of the device with this token. Omit for every device. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
DeviceRevokedCertificateSearchCriteria
input
Criteria used when listing the revoked certificates of a trust anchor.
| Input field | Type | Description |
|---|---|---|
kind | String | Only MANUAL or only CRL entries. |
pageNumber | Int! | 1-based page number. |
pageSize | Int! | Entries per page. |
DeviceSearchCriteria
input
Criteria for searching devices. Results are newest first.
| Input field | Type | Description |
|---|---|---|
alias | DeviceAliasInput | Return only the device this alias names. The value is matched in its stored spelling, so a DevEUI in either case finds the same device. A malformed alias is refused with INVALID_VALUE, and a caller limited to part of the tenant is refused. |
deviceType | String | Return only devices of the device type with this token. An unknown token matches nothing. |
expectedProvisioningProfile | String | Return only devices earmarked for the provisioning profile with this token. An unknown token matches nothing. |
nameContains | String | Return only devices whose name or token contains this text, ignoring case (a name is optional, so an unnamed device is found by its token). Blank matches all. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
provisioningProfile | String | Return only devices that hold a credential issued by the provisioning profile with this token, revoked ones included. An unknown token matches nothing. |
DeviceTrustAnchorCreateRequest
input
Data required to create a trust anchor.
| Input field | Type | Description |
|---|---|---|
certificatePem | String! | Exactly one CA certificate in PEM: it must be a CA that may sign certificates, unexpired, use an RSA (2048 to 8192 bits), P-256, P-384 or Ed25519 key, be signed with a modern hash, and carry no name constraints. A private key anywhere in the text is refused. A tenant may hold 32 anchors. |
description | String | Free-text description. |
enabled | Boolean | Defaults to true. |
metadata | String | Free-form JSON the platform stores and does not interpret. |
name | String | Human-readable name. |
token | String! | Identifier of the anchor, unique within the tenant. |
DeviceTrustAnchorSearchCriteria
input
Criteria used when searching for trust anchors.
| Input field | Type | Description |
|---|---|---|
enabled | Boolean | Only anchors that are (or are not) enabled. |
pageNumber | Int! | 1-based page number. |
pageSize | Int! | Anchors per page. |
DeviceTrustAnchorUpdateRequest
input
A PARTIAL update: omit a field to leave it, send null to clear a nullable one. The certificate cannot be changed (another CA is another anchor).
| Input field | Type | Description |
|---|---|---|
description | String | Free-text description. Null clears it. |
enabled | Boolean | Required and unclearable. Setting it false ends the live sessions of the devices that rely on the anchor; if that cannot be confirmed the change is saved and the call answers that the sessions were not confirmed ended, and repeating it asks again. |
metadata | String | Free-form JSON the platform stores and does not interpret. Null clears it. |
name | String | Human-readable name. Null clears it. |
ocspMode | CertificateOcspMode | Required and unclearable. OFF asks no responder. ENFORCE_KNOWN and REQUIRE_CURRENT are refused while the instance's OCSP switch is off; REQUIRE_CURRENT is refused unless the instance allows it, and needs ocspResponderUrl. |
ocspResponderUrl | String | An http or https URL, without credentials, that replaces each certificate's own responder. Null clears it. The address it resolves to must be one the instance's egress policy allows. |
revocationMode | CertificateRevocationMode | Required and unclearable. Switching to REQUIRE_CURRENT is refused while the anchor holds no current revocation list, or a registered certificate under it was issued by a CA that has none: the switch would refuse every such device. |
revocationStaleGrace | String | A Go duration of whole seconds, 0s to 168h. Null restores the instance default. While the anchor is in REQUIRE_CURRENT, a change is refused if it would leave an issuer without a current list. |
DeviceTypeCreateRequest
input
Fields for a new device type.
| Input field | Type | Description |
|---|---|---|
backgroundColor | String | Background colour, up to 32 characters. |
borderColor | String | Border colour, up to 32 characters. |
commandChannel | String | Command channel of the type: PUBLISH or HTTP_PULL, or omit it (or send an empty value) for the default channel, which behaves as PUBLISH. Any other value fails the request with INVALID_VALUE. |
description | String | Free-text description, up to 1024 characters. |
foregroundColor | String | Foreground (text) colour, up to 32 characters. |
icon | String | Name of an icon representing the device type, up to 128 characters. |
imageUrl | String | URL of an image representing the device type, up to 512 characters. |
maintenanceWindowToken | String | Token of the maintenance window that holds the type's disruptive commands until it opens. Omit it, or send an empty value, for a type with no window. An unknown token fails the request. |
manufacturer | String | Manufacturer of the devices of this type, up to 128 characters. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
model | String | Model of the devices of this type, up to 128 characters. |
name | String | Human-readable name, up to 128 characters. |
profileToken | String | Token of the device profile the type adopts. Omit it, or send an empty value, for a type with no profile. An unknown token fails the request. |
semanticTypes | [String!] | The classes an entity of this type is, as CURIEs (for example sdm-streetlighting:Streetlight) or full IRIs inside an enabled vocabulary. Each must be a CLASS of a pack the tenant has enabled, or a term under a custom prefix it declared; at most 8. A term outside the enabled vocabularies, of the wrong kind, deprecated, or malformed fails the request with INVALID_ARGUMENT naming it. Stored as expanded IRIs. Omit for none. |
token | String! | Identifier for the new device type. A token already in use in the tenant is refused with CONFLICT. |
DeviceTypeSearchCriteria
input
Criteria for searching device types. Results are newest first.
| Input field | Type | Description |
|---|---|---|
nameContains | String | Return only device types whose name or token contains this text, ignoring case (a name is optional, so an unnamed type is found by its token). Blank matches all. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
DeviceTypeUpdateRequest
input
A partial update to a device type. Omit a field to leave the stored value alone, send a value to set it, or send an explicit null to clear it; sending only name renames the type and changes nothing else. The type is named by the mutation's token argument, so there is no token here and a type's token cannot be changed.
| Input field | Type | Description |
|---|---|---|
backgroundColor | String | New background colour, or null to clear it. |
borderColor | String | New border colour, or null to clear it. |
commandChannel | String | New command channel: PUBLISH or HTTP_PULL, or null (or an empty value) to return the type to the default channel, which behaves as PUBLISH. Any other value fails the whole update with INVALID_VALUE. |
description | String | New description, or null to clear it. |
foregroundColor | String | New foreground colour, or null to clear it. |
icon | String | New icon name, or null to clear it. |
imageUrl | String | New image URL, or null to clear it. |
maintenanceWindowToken | String | Token of the maintenance window the type should use; null or an empty value removes the current one, after which its disruptive commands are sent whenever the device is reachable. An unknown token fails the whole update. Commands already waiting for the old window are moved to the new schedule within about a minute. |
manufacturer | String | New manufacturer, or null to clear it. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
model | String | New model, or null to clear it. |
name | String | New name, or null to clear it. |
profileToken | String | Token of the profile the type should adopt; null or an empty value detaches the current profile. An unknown token fails the whole update. Changing the profile changes what every device of the type measures and accepts. |
semanticTypes | [String!] | New classes, replacing the stored ones: null or an empty list clears them. Omit to leave them alone. Validated as on create; only a request that names this field is validated. |
DeviceUpdateRequest
input
A partial update to a device. Omit a field to leave the stored value alone, send a value to set it, or send an explicit null to clear it; the fields that cannot be cleared say so. The device is named by the mutation's token argument, so there is no token here. An empty object changes nothing.
| Input field | Type | Description |
|---|---|---|
aliases | [DeviceAliasInput!] | Replaces the device's aliases with exactly this list. Null or an empty list removes them all; omit the field to leave them alone. A value another device already holds under a scheme refuses the whole update with CONFLICT. |
description | String | New description, or null to clear it. |
deviceTypeToken | String | Token of a different device type to move the device to. An explicit null or an empty value is refused, because every device must have a type; an unknown token fails the whole update. |
enabled | Boolean | False to disable the device, true to enable it again. An explicit null is refused. Disabling a device that is already disabled keeps the time it was first disabled. |
externalId | String | New business identifier, or null to clear it. A value another device already has is refused with CONFLICT. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
name | String | New name, or null to clear it. |
EntityAttributeSearchCriteria
input
Criteria for listing entity attributes. Every facet is optional and they AND together.
| Input field | Type | Description |
|---|---|---|
attrKeys | [String!] | Only attributes whose key is one of these, at most 1000 keys. |
entity | String | Only attributes of the entity with this token. It takes effect only together with entityType; an entity that does not exist finds nothing. |
entityType | String | Only attributes of entities of this type, for example device. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
scope | String | Only attributes in this scope: CLIENT, SERVER or SHARED. |
EntityAttributeSetRequest
input
Data required to set, or replace, an entity attribute. The owner is resolved from its type and token, which must name an existing entity.
| Input field | Type | Description |
|---|---|---|
attrKey | String! | The attribute's key, up to 128 bytes. |
entity | String! | Token of the entity the attribute belongs to. |
entityType | String! | Entity type of the owner, for example device. |
scope | String! | CLIENT, SERVER or SHARED. See EntityAttribute.scope. Any other value is refused. |
value | String | The attribute's value as text, up to 64 KiB. Omit or send null for none. |
valueType | String! | How to read value: STRING, LONG, DOUBLE, BOOLEAN or JSON. Any other value is refused. |
EntityGroupCreateRequest
input
Data required to create an entity group. membershipMode defaults to static; a selector is required for a dynamic group and refused for a static one. Edit a group afterwards with EntityGroupUpdateRequest.
| Input field | Type | Description |
|---|---|---|
backgroundColor | String | Background colour to display the group with, up to 32 characters. Not validated. |
borderColor | String | Border colour to display the group with, up to 32 characters. Not validated. |
description | String | Free-text description, up to 1024 characters. |
foregroundColor | String | Foreground (text) colour to display the group with, up to 32 characters. Not validated. |
icon | String | Name of an icon representing the group, up to 128 characters. Not checked against any icon set. |
imageUrl | String | URL of an image representing the group, up to 512 characters. |
memberType | String! | The entity family the group collects: device, asset, area or customer. Cannot be changed later. |
membershipMode | String | static or dynamic. Omitted means static. Cannot be changed later. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
name | String | Human-readable name, up to 128 characters. |
selector | String | The CEL membership selector. Required, and only allowed, when membershipMode is dynamic. It is compiled and cost-checked on create. |
token | String! | Identifier for the new group, unique within the tenant. Cannot be changed later. |
EntityGroupSearchCriteria
input
Criteria for listing entity groups. memberType and membershipMode are optional filters.
| Input field | Type | Description |
|---|---|---|
accessScope | Boolean | Keep only the groups that are (true) or are not (false) access scopes. Omit it for both. |
memberType | String | Only groups collecting this entity family: device, asset, area or customer. |
membershipMode | String | Only groups with this membership mode: static or dynamic. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
EntityGroupUpdateRequest
input
A partial update of an entity group. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. The token, memberType and membershipMode are absent because they are identity: changing the family would leave members that do not belong, and converting between static and dynamic would orphan the members.
| Input field | Type | Description |
|---|---|---|
backgroundColor | String | Background colour; null clears it. |
borderColor | String | Border colour; null clears it. |
description | String | Free-text description; null clears it. |
foregroundColor | String | Foreground colour; null clears it. |
icon | String | Icon name; null clears it. |
imageUrl | String | Image URL; null clears it. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
name | String | Human-readable name; null clears it. |
selector | String | The membership selector of a dynamic group; refused for a static group. A provided selector is recompiled and cost-checked before it replaces the stored draft. Null is refused, because a dynamic group with no selector matches nothing. |
EntityRefInput
input
A reference to an entity by its type and token.
| Input field | Type | Description |
|---|---|---|
token | String! | Token of the entity. |
type | String! | Entity type, for example device, asset, area, customer or group. |
EntityRelationshipCreateRequest
input
Data required to create an entity relationship. The source and target are resolved from their types and tokens, which must name existing entities.
| Input field | Type | Description |
|---|---|---|
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
relationshipType | String! | Token of the relationship type. An unknown token is refused. |
source | String! | Token of the source entity. |
sourceType | String! | Entity type of the source entity, for example device. |
target | String! | Token of the target entity. |
targetType | String! | Entity type of the target entity, for example customer. |
token | String! | Identifier for the new relationship, unique within the tenant. |
EntityRelationshipSearchCriteria
input
Criteria for listing entity relationships. Every facet is optional and they AND together.
| Input field | Type | Description |
|---|---|---|
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
relationshipType | String | Only relationships of the relationship type with this token. |
source | String | Only relationships whose source has this token. It takes effect only together with sourceType. |
sourceType | String | Only relationships whose source is of this entity type. |
target | String | Only relationships whose target has this token. It takes effect only together with targetType. |
targetType | String | Only relationships whose target is of this entity type. |
tracked | Boolean | True selects relationships of tracked types and false those of untracked types. Omit for either. |
EntityRelationshipTypeCreateRequest
input
Data required to create an entity relationship type.
| Input field | Type | Description |
|---|---|---|
description | String | Free-text description, up to 1024 characters. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
name | String | Human-readable name, up to 128 characters. |
semanticInverse | String | The predicate's inverse. Omitted, it is the inverse the vocabulary declares for the predicate (none when it declares none), and the stored value is that resolved term. An inverse without a predicate is refused. |
semanticPredicate | String | A PREDICATE of an enabled vocabulary pack, as a CURIE or full IRI. A term of the wrong kind, deprecated, or outside the enabled vocabularies fails the request with INVALID_ARGUMENT naming it. Stored as an expanded IRI. |
token | String! | Identifier for the new relationship type, unique within the tenant. Cannot be changed later. |
tracked | Boolean! | Whether relationships of this type are tracked: denormalized onto events and counted as ownership for scoped access. A device may carry only a bounded number of tracked relationships. |
EntityRelationshipTypeSearchCriteria
input
Criteria for listing entity relationship types.
| Input field | Type | Description |
|---|---|---|
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
EntityRelationshipTypeUpdateRequest
input
A partial update of an entity relationship type. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it.
| Input field | Type | Description |
|---|---|---|
description | String | Free-text description; null clears it. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
name | String | Human-readable name; null clears it. |
semanticInverse | String | New inverse: null clears it. Omitted while the predicate changes, it becomes the inverse the vocabulary declares for the new predicate. An inverse is refused while no predicate is bound. |
semanticPredicate | String | New predicate: null clears it, and the inverse with it. Omit to leave it alone. Validated as on create. |
tracked | Boolean | Whether relationships of this type are tracked. Null is refused rather than read as false, which would stop denormalizing the type's relationships onto events and report success. |
FacetKeySearchCriteria
input
Criteria for listing declared facet keys.
| Input field | Type | Description |
|---|---|---|
memberType | String | Only facet keys declared for this entity family: device, asset, area or customer. Omit for every family. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
FacetKeySetRequest
input
Data required to declare, or redeclare, a facet key. The natural key, memberType and key, selects the row and the remaining fields are rewritten. Only attribute-source facets can be written, so there is no source field.
| Input field | Type | Description |
|---|---|---|
key | String! | The attribute key the facet declares. |
label | String | An optional human display label for the axis. Omit to fall back to the key. |
memberType | String! | The entity family the facet classifies: device, asset, area or customer. |
valueType | String! | The value type of the facet's attribute values: STRING, LONG, DOUBLE, BOOLEAN or JSON. |
values | [String!] | An optional vocabulary of values for the console typeahead. Omit for free-form values. |
FacetValueImportRow
input
One facet value on an existing device, asset, area or customer, addressed by token. The server uses SHARED scope and the facet declaration's value type. Text is trimmed as on a single attribute write; blank values are INVALID. This operation does not clear attributes or create entities.
| Input field | Type | Description |
|---|---|---|
key | String! | A facet key declared for this member family. |
memberType | String! | The member family: device, asset, area or customer. |
token | String! | The existing entity's token in the caller's tenant. |
value | String! | Text to validate and normalize under the facet's declared type. |
GeoFenceCreateRequest
input
Data required to create a geofence. The geometry is validated on write: its kind, GeoJSON shape, coordinate ranges and size. Two ceilings are enforced at authoring time: the positions one fence may carry (512 by default) and the fences a tenant may hold (100 by default), both set by the tenant's tier. A stored geometry document is also limited to 32 KiB.
| Input field | Type | Description |
|---|---|---|
description | String | Free-text description, up to 1024 characters. |
geometry | String! | The geometry document, as described on GeoFence.geometry. Must declare kind POLYGON_2D; reserved kinds are refused. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
name | String | Human-readable name, up to 128 characters. |
token | String! | Identifier for the new fence, unique within the tenant. Cannot be changed later. |
GeoFenceSearchCriteria
input
Criteria for listing geofences.
| Input field | Type | Description |
|---|---|---|
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
GeoFenceUpdateRequest
input
A partial update of a geofence. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. A fence's token is immutable, so there is no token field: create the new fence first and delete the old one if a different token is wanted.
| Input field | Type | Description |
|---|---|---|
description | String | Free-text description; null clears it. |
geometry | String | The geometry document. Required: null is refused, because a fence with no shape is not a fence. Omitting it leaves the shape alone, so a rename or metadata edit is not held to the tenant's position ceiling, which refuses growth rather than size. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
name | String | Human-readable name; null clears it. |
HeaderInput
input
One header of a pasted webhook request.
| Input field | Type | Description |
|---|---|---|
name | String! | The header name. |
value | String! | The header value. |
InstalledPositionInput
input
The position an operator, an import or a survey tool records.
| Input field | Type | Description |
|---|---|---|
accuracy | Float | Horizontal accuracy in metres. Not negative. |
elevation | Float | Metres above the WGS84 ellipsoid. |
latitude | Float! | Degrees north. Values outside -90 to 90, and values that are not numbers, are refused. |
longitude | Float! | Degrees east. Values outside -180 to 180, and values that are not numbers, are refused. |
source | InstalledPositionSource | How the position was obtained. MANUAL when omitted. |
IntegrationCreateRequest
input
Data required to create an integration.
| Input field | Type | Description |
|---|---|---|
description | String | Free-text description. |
deviceTypeTokens | [String!]! | Tokens of the device types the integration may resolve devices of; at least one, at most 50. |
enabled | Boolean! | Whether the integration accepts traffic. A disabled integration can be enabled later. |
generic | String | The generic settings as a JSON object. Required for the generic types and refused for the others. idFrom is pointer:/path, header:Name or query:name; a binary body can only name a header or a query value. |
identity | String | DEV_EUI (the default) for CHIRPSTACK_V4; DEV_EUI (the default) or DEVICE_ID for TTS_V3; required, as ALIAS:custom.name, for the generic types. |
linkMetrics | Boolean | Store the receive-link readings beside the decoded values. Defaults to false. |
metadata | String | Free-form JSON the platform stores and does not interpret. |
name | String | Human-readable name. |
token | String! | Identifier of the integration, unique within the tenant. It is part of the sender's URL. |
type | String! | CHIRPSTACK_V4, TTS_V3, GENERIC_JSON or GENERIC_BINARY. |
IntegrationSearchCriteria
input
Criteria used when searching for integrations.
| Input field | Type | Description |
|---|---|---|
deviceType | String | Return only integrations whose scope includes the device type with this token. |
enabled | Boolean | Return only integrations that are enabled (true) or disabled (false). |
pageNumber | Int! | 1-based page number. |
pageSize | Int! | Rows per page. |
type | String | Return only integrations of this type. |
IntegrationUpdateRequest
input
A partial update of an integration. Omitted fields keep their stored value.
| Input field | Type | Description |
|---|---|---|
description | String | Free-text description. Null clears it. |
deviceTypeTokens | [String!] | Replaces the scope. At least one device type; null is refused. |
enabled | Boolean | Required and unclearable. |
generic | String | Replaces the generic settings; refused for the network-server types, and null is refused for the generic ones. |
identity | String | Required and unclearable; validated against the integration's type. |
linkMetrics | Boolean | Required and unclearable. |
metadata | String | Free-form JSON the platform stores and does not interpret. Null clears it. |
name | String | Human-readable name. Null clears it. |
MaintenanceWindowCreateRequest
input
Fields for a new maintenance window.
| Input field | Type | Description |
|---|---|---|
description | String | Free-text description, up to 1024 characters. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
name | String | Human-readable name, up to 128 characters. |
slots | String! | The weekly openings as a JSON array of {day, start, durationMinutes}, at least one and at most 56. Unknown keys and out-of-range values are refused. |
timezone | String! | An IANA time zone name such as Europe/Berlin. Local and unknown names are refused. |
token | String! | Identifier for the new window. A token already in use in the tenant is refused with CONFLICT. |
MaintenanceWindowSearchCriteria
input
Criteria for searching maintenance windows. Results are newest first.
| Input field | Type | Description |
|---|---|---|
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
MaintenanceWindowUpdateRequest
input
A partial update to a maintenance window: omit a field to leave it alone.
| Input field | Type | Description |
|---|---|---|
description | String | New description, or null to clear it. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
name | String | New name, or null to clear it. |
slots | String | New weekly openings (validated as on create). An explicit null is refused. |
timezone | String | New time zone. An explicit null or an unknown zone is refused. |
MetricDefinitionCreateRequest
input
Fields for a new metric definition.
| Input field | Type | Description |
|---|---|---|
dataType | String! | The value type: DOUBLE, INT, BOOLEAN or STRING. DOUBLE, INT and BOOLEAN (stored as 0 or 1) are numeric readings; a STRING reading is stored as text (up to 4096 bytes) and is never aggregated. |
description | String | Free-text description, up to 1024 characters. |
descriptor | String | Optional semantic tag, such as a Web of Things type. |
deviceProfileToken | String! | Token of the profile to declare the metric on. An unknown token fails the request. |
enum | String | Allowed values as a JSON array of strings. Must be valid JSON. |
expression | String | A formula, which makes the new metric calculated: its value is computed from the profile's measured metrics instead of reported by devices. Omit it for a measured metric. Which of the two a metric is cannot be changed later. At most 1024 bytes and not blank. The formula is checked when the profile is published, not here; use testMetricFormula to check it sooner. It may read up to 8 numbers from the device's metadata as device.name; naming one is declaring it, and a device whose metadata lacks it gets no value for the reading. |
maxValue | Float | Largest value accepted for a DOUBLE or INT metric. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
metricKey | String! | The key measurements will use for this metric, at most 128 characters. A key the profile already declares is refused with CONFLICT. |
minValue | Float | Smallest value accepted for a DOUBLE or INT metric. |
name | String | Human-readable name, up to 128 characters. |
semanticPointClass | String | The Brick point class of the metric's series: a class of the enabled brick pack that is a brick:Point. A custom-prefix class cannot be shown to be one and is refused. |
semanticProperty | String | The quantity or property the metric observes: an OBSERVABLE_PROPERTY term of an enabled vocabulary pack, as a CURIE or full IRI. Fails with INVALID_ARGUMENT naming the term when it is unknown, of another kind, deprecated or outside the enabled vocabularies. Stored as an expanded IRI. |
token | String! | Identifier for the new metric definition. A token already in use in the tenant is refused with CONFLICT. |
unit | String | Unit of measure, such as a UCUM code (Cel, kW). |
MetricDefinitionSearchCriteria
input
Criteria for searching metric definitions. Results are newest first.
| Input field | Type | Description |
|---|---|---|
deviceProfile | String | Return only definitions on the profile with this token. An unknown token matches nothing. |
metricKey | String | Return only definitions with exactly this metric key. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
MetricDefinitionUpdateRequest
input
A partial update to a metric definition. Omit a field to leave the stored value alone, send a value to set it, or send an explicit null to clear it; the fields that cannot be cleared say so. The definition is named by the mutation's token argument, so there is no token here. Any refusal leaves the definition unchanged.
| Input field | Type | Description |
|---|---|---|
dataType | String | New value type: DOUBLE, INT, BOOLEAN or STRING. An explicit null is refused. |
description | String | New description, or null to clear it. |
descriptor | String | New semantic tag, or null to clear it. |
deviceProfileToken | String | Token of another profile to move the definition to. An explicit null or a blank value is refused, and an unknown token fails the whole update. |
enum | String | New allowed values as a JSON array of strings, or null to allow any value. |
expression | String | New formula for a calculated metric. Refused on a measured metric, which cannot become calculated. A null or blank value is refused on a calculated metric, which cannot become measured; delete it and create a new metric instead. |
maxValue | Float | New upper bound, or null to remove it. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
metricKey | String | New key for the metric, unique within the profile the definition ends up in. An explicit null or a blank value is refused. |
minValue | Float | New lower bound, or null to remove it. |
name | String | New name, or null to clear it. |
semanticPointClass | String | New Brick point class, or null to clear it. Omit to leave it alone. |
semanticProperty | String | New observed property, or null to clear it. Omit to leave it alone. |
unit | String | New unit, or null to clear it. |
MetricValueInput
input
One typed value for testMetricFormula: a measured input of the sample, or a device constant.
| Input field | Type | Description |
|---|---|---|
key | String! | The measured metric's key, or the device constant's name. |
value | String! | The value as a device would send it, such as 230.5, 12 or true; for a device constant, a number such as 1.02. |
PaginationInput
input
Which page of results to return.
| Input field | Type | Description |
|---|---|---|
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
PayloadDecoderTestInput
input
A decoder and one input to run it over. Name at most one of frameHex, frameBase64, json, webhookBody and sampleId; naming none runs only the saved vectors.
| Input field | Type | Description |
|---|---|---|
contentType | String | With webhookBody: the request's content type. A network server integration refuses a non-JSON one. |
document | String | The decoder document as JSON text. Omit to test the profile's saved draft decoder. |
fCnt | Int | The LoRaWAN uplink frame counter, for a frame given as hex or base64. |
fPort | Int | The LoRaWAN application port, for a frame given as hex or base64. |
frameBase64 | String | The frame as base64. At most 4096 bytes once decoded. |
frameHex | String | The frame as hex; whitespace is ignored. At most 4096 bytes once decoded. |
headers | [HeaderInput!] | With webhookBody: the request headers, which a generic integration may read its device id from. |
integrationToken | String | Token of the stored integration whose type and settings parse webhookBody. |
json | String | A JSON object, given to the decoder's JSON or DECODED input, whichever it declares. |
messageType | String | With webhookBody: the message-type path segment some network servers post each message type to. |
profileToken | String! | Token of the profile whose draft metrics the decoder is checked against. |
query | [QueryParamInput!] | With webhookBody: the query parameters, such as the event type of a network server. |
sampleId | ID | Load the input from a stored failure sample of this profile instead. Running a decoder over a sample reveals its bytes, so this needs device:write, not device:read. A sample of another tenant or profile is NOT_FOUND. |
webhookBody | String | A whole network-server or generic webhook body, up to 256 KiB, parsed by the same code that parses it at ingest. Needs integrationToken. |
ProvisioningProfileCreateRequest
input
Data required to create a provisioning profile. The provision secret is not chosen by the caller: the server generates it and returns it once in the response.
| Input field | Type | Description |
|---|---|---|
credentialType | String | Type of credential to issue. When sent it must be a type provisioning can mint; for a certificate profile it must be X509_CERTIFICATE. |
description | String | Free-text description, up to 1024 characters. |
deviceTypeToken | String! | Token of the device type of every device the profile registers, and the only type it will adopt. An unknown token is refused. |
enabled | Boolean! | Whether the profile accepts registrations. |
expiresAt | String | When the profile stops accepting registrations, as an RFC 3339 timestamp. Omit for never. |
maxDevices | Int | The most devices the profile may register; at least 1. Omit or send null for no cap. |
metadata | String | Caller-defined metadata. Must be valid JSON; an empty string means none. |
name | String | Human-readable name, up to 128 characters. |
provisionKey | String! | The key a fleet presents to register itself. Refused when empty or whitespace-only, and unique within the tenant. A padded value is stored exactly as sent. |
strategy | String! | ALLOW_NEW registers a device that does not exist yet and adopts an earmarked one; CHECK_PRE_PROVISIONED registers only earmarked devices that already exist. Neither adopts a device that was not earmarked for the profile. |
token | String! | Identifier for the new profile, unique within the tenant. Cannot be changed later. |
trustAnchorToken | String | Makes this a certificate profile: its devices authenticate by a client certificate whose chain reaches this trust anchor, and it has no provision secret. credentialType, when sent, must be X509_CERTIFICATE. A tenant may hold eight certificate profiles. A device earmarked for one must have the token derived from its externalId, and takes it when the token is left empty. |
ProvisioningProfileSearchCriteria
input
Criteria for listing provisioning profiles. Every facet is optional and they AND together.
| Input field | Type | Description |
|---|---|---|
deviceType | String | Only profiles that register devices of the device type with this token. |
enabled | Boolean | True selects enabled profiles and false disabled ones. Omit for either. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
strategy | String | Only profiles with this strategy: ALLOW_NEW or CHECK_PRE_PROVISIONED. |
ProvisioningProfileUpdateRequest
input
A partial update of a provisioning profile. Each field has three states: omit it to keep the stored value, send null to clear it, or send a value to set it. The token is not here because the mutation's token argument names the profile. The credential type cannot be edited and the secret is replaced only by rotateProvisioningProfileSecret.
| Input field | Type | Description |
|---|---|---|
description | String | Free-text description; null clears it. |
deviceTypeToken | String | Device type stamped onto auto-created devices. Null is refused, and an unknown token refuses the whole update. |
enabled | Boolean | Whether the profile accepts registrations. Null is refused rather than read as false. |
expiresAt | String | When the profile stops accepting registrations, as an RFC 3339 timestamp. Null, or an empty string, means never expires. |
maxDevices | Int | The most devices the profile may register; at least 1. Null removes the cap. Lowering it below the number already registered only refuses further registrations. |
metadata | String | New metadata (valid JSON, replacing the stored document), or null to clear it. |
name | String | Human-readable name; null clears it. |
provisionKey | String | The key a fleet presents to register itself. Required: null is refused, because a blank key authenticates nothing. The secret is not editable here; rotateProvisioningProfileSecret replaces it. |
strategy | String | ALLOW_NEW or CHECK_PRE_PROVISIONED. Required: null is refused. Validated against the known strategies when sent. |
trustAnchorToken | String | Re-points a certificate profile at another trust anchor. Null is refused, and so is naming an anchor on a profile that authenticates by secret. |
QueryParamInput
input
One query parameter of a pasted webhook request.
| Input field | Type | Description |
|---|---|---|
name | String! | The parameter name. |
value | String! | The parameter value. |
RunAutomationReviewInput
input
(Preview: may change in a minor release.) RunAutomationReviewInput parameters.
| Input field | Type | Description |
|---|---|---|
deviceTokens | [String!]! | (Preview: may change in a minor release.) The device tokens selected for replay. |
expectations | [AutomationReviewExpectationInputValue!] | (Preview: may change in a minor release.) The expectations to evaluate against the comparison. |
profileToken | String! | (Preview: may change in a minor release.) The profile whose draft is reviewed. |
requestId | String! | (Preview: may change in a minor release.) A caller-generated idempotency key for this review request. |
ruleToken | String | (Preview: may change in a minor release.) The changed rule token, when one rule is compared. |
shiftWindowSeconds | Int | (Preview: may change in a minor release.) The maximum pairing shift, in seconds; null uses the engine default. |
windows | [AutomationReviewWindowInput!]! | (Preview: may change in a minor release.) The incident and normal replay windows. |
SemanticContextRequest
input
The semantic context to set. It replaces the stored one whole.
| Input field | Type | Description |
|---|---|---|
customPrefixes | [CustomPrefixInput!]! | Custom prefixes for the tenant's own terms; at most 32. An empty list declares none. A prefix may not shadow a pack's, and namespaces may not overlap. |
enabledPacks | [SemanticPack!]! | The packs to enable. An empty list enables none. |
UnregisteredIntegrationDeviceSearchCriteria
input
Which integration's unregistered devices to return, and the page. Most recently seen first.
| Input field | Type | Description |
|---|---|---|
integration | String! | Token of the integration. An unknown token matches nothing. |
pageNumber | Int! | Page to return, starting at 1. Values below 1 are read as 1. |
pageSize | Int! | Results per page. Below 1 means the default of 100; above 1000 is capped at 1000. |
Enums
AgentAlarmAction · AgentProposalKind · AgentProposalState · AgentProposalStatus · AgentProposalVerdict · AlarmClearReason · AlarmDispositionLabel · AlarmSuppressionKind · AuthoredVia · AutomationReviewBreakGlassAction · AutomationReviewChangeKind · AutomationReviewKind · AutomationReviewOutcome · AutomationReviewPolicyChangeState · AutomationReviewProfileChangeArea · AutomationReviewProfileChangeType · AutomationReviewStartState · AutomationReviewState · AutomationReviewVerdict · AutomationReviewWindowRole · BulkChangeDispatch · BulkChangeEnforcement · BulkChangeEvidence · BulkChangeEvidenceBasis · BulkChangeExecutorState · BulkChangeLinePosting · BulkChangeLineSettlement · BulkChangeVerdict · CertificateOcspMode · CertificateRevocationMode · CertificateRevocationReason · DeviceFacet · DeviceImportMode · DeviceImportOutcome · FleetOperationEnforcement · InstalledPositionSource · IntegrationDeviceOutcome · PayloadDecoderInput · PayloadDecoderKind · PositionFamily · RevocationStatus · SemanticPack
AgentAlarmAction
enum
(Preview: may change in a minor release.) What an AI agent asks to be done to alarms: ACK acknowledges them, CLEAR clears them.
| Value | Description |
|---|---|
ACK | (Preview: may change in a minor release.) Acknowledge the alarms. |
CLEAR | (Preview: may change in a minor release.) Clear the alarms. Clearing an alarm whose condition is still active hides a live condition. |
AgentProposalKind
enum
(Preview: may change in a minor release.) The kind of action an agent proposal asks for.
| Value | Description |
|---|---|
ALARM_ACK | (Preview: may change in a minor release.) Acknowledge alarms. |
ALARM_CLEAR | (Preview: may change in a minor release.) Clear alarms. |
AgentProposalState
enum
(Preview: may change in a minor release.) Where an agent proposal is in its life.
| Value | Description |
|---|---|
PROPOSED | (Preview: may change in a minor release.) Waiting for people to approve it. The only state that changes. |
EXECUTED | (Preview: may change in a minor release.) Approved and carried out. |
REJECTED | (Preview: may change in a minor release.) A person rejected it. |
EXPIRED | (Preview: may change in a minor release.) Nobody approved it before it expired. |
REFUSED | (Preview: may change in a minor release.) The tenant's agent policy, or a check made when a person approved it, refused it. The reasons say why. |
CANCELLED | (Preview: may change in a minor release.) Withdrawn by the agent that proposed it. |
KILLED | (Preview: may change in a minor release.) Ended by an agent-actions switch being turned off. |
AgentProposalStatus
enum
(Preview: may change in a minor release.) What happened to a proposal request.
| Value | Description |
|---|---|
DRY_RUN | (Preview: may change in a minor release.) A dry run: the verdict and checks, with nothing stored. |
PENDING_APPROVAL | (Preview: may change in a minor release.) Stored, waiting for approval. |
REFUSED | (Preview: may change in a minor release.) Refused. When it was stored for the record, proposal is set. |
EXISTING | (Preview: may change in a minor release.) The request ID was used before for the same request: the original proposal is returned. |
AgentProposalVerdict
enum
(Preview: may change in a minor release.) The tenant's verdict on an agent proposal.
| Value | Description |
|---|---|
REFUSE | (Preview: may change in a minor release.) The action is not allowed. |
APPROVE | (Preview: may change in a minor release.) The action waits for the given number of people to approve it. |
AlarmClearReason
enum
Why an alarm ended, when it was cleared for a lifecycle reason.
| Value | Description |
|---|---|
ORIGINATOR_DELETED | The alarm's originator was deleted, so the alarm was cleared with it. |
AlarmDispositionLabel
enum
An operator's verdict on one alarm cycle. New values may be added in a later release; a client should treat a value it does not know as unhandled rather than as any of these.
| Value | Description |
|---|---|
TRUE_POSITIVE | The condition was real and needed attention. |
FALSE_POSITIVE | The condition was not real, for example a bad reading, a fouled sensor or a threshold set wrong. A different rule should not have raised it. |
EXPECTED | The condition was real but expected and needed no action, such as planned maintenance or a commissioning test. |
AlarmSuppressionKind
enum
How a suppression window opens.
| Value | Description |
|---|---|
ONE_SHOT | A single bounded interval. |
RECURRING | Weekly openings in an IANA time zone. |
AuthoredVia
enum
The door through which a rule draft was saved. The door is declared by the client that saves the rule, so it is advisory origin metadata, not proof of how the content was produced and not proof of human review. Recorded doors are only ever added to, so a later save through another door never removes one, DESCRIBE included.
| Value | Description |
|---|---|
FORM | Saved from the console's rule form. |
CANVAS | Saved from the console's visual automation canvas. |
DESCRIBE | Drafted through the natural-language Describe door, which uses AI assistance, and then saved. |
PRODUCT_AS_CODE | Saved by dcctl product apply from a product bundle. |
API | Saved through the API by a client that declared no door. This is the default. |
UNKNOWN | Saved before doors were recorded, so the door is not known. |
AutomationReviewBreakGlassAction
enum
(Preview: may change in a minor release.) An activation change made outside review.
| Value | Description |
|---|---|
ROLLBACK | (Preview: may change in a minor release.) Changing the active profile version. |
REPOINT_TYPE | (Preview: may change in a minor release.) Changing the profile bound to a type. |
MOVE_DEVICE | (Preview: may change in a minor release.) Moving a device out of a protected type. |
AutomationReviewChangeKind
enum
(Preview: may change in a minor release.) Automation review ChangeKind vocabulary.
| Value | Description |
|---|---|
ADDED | (Preview: may change in a minor release.) An intent exists only in the draft. |
REMOVED | (Preview: may change in a minor release.) An intent exists only in the baseline. |
SHIFTED | (Preview: may change in a minor release.) A paired intent occurs at a different time. |
CONTENT_CHANGED | (Preview: may change in a minor release.) Content changed. |
AutomationReviewKind
enum
(Preview: may change in a minor release.) Automation review Kind vocabulary.
| Value | Description |
|---|---|
RULE_CHANGE | (Preview: may change in a minor release.) Rule change. |
NO_AUTOMATION_CHANGE | (Preview: may change in a minor release.) No automation change. |
UNREVIEWABLE | (Preview: may change in a minor release.) Unreviewable. |
AutomationReviewOutcome
enum
(Preview: may change in a minor release.) Automation review Outcome vocabulary.
| Value | Description |
|---|---|
PASSED | (Preview: may change in a minor release.) Passed. |
FAILED | (Preview: may change in a minor release.) Failed. |
INCONCLUSIVE | (Preview: may change in a minor release.) Inconclusive. |
NO_AUTOMATION_CHANGE | (Preview: may change in a minor release.) No automation change. |
AutomationReviewPolicyChangeState
enum
(Preview: may change in a minor release.) The lifecycle of a proposed policy change.
| Value | Description |
|---|---|
PENDING | (Preview: may change in a minor release.) Waiting for approval or a permitted delay. |
APPLIED | (Preview: may change in a minor release.) The proposal has taken effect. |
CANCELLED | (Preview: may change in a minor release.) The proposal was cancelled. |
SUPERSEDED | (Preview: may change in a minor release.) A later policy change replaced this proposal. |
AutomationReviewProfileChangeArea
enum
(Preview: may change in a minor release.) Automation review ProfileChangeArea vocabulary.
| Value | Description |
|---|---|
RULE | (Preview: may change in a minor release.) Rule. |
METRIC | (Preview: may change in a minor release.) Metric. |
COMMAND | (Preview: may change in a minor release.) Command. |
DECODER | (Preview: may change in a minor release.) Decoder. |
LOCATION | (Preview: may change in a minor release.) Location. |
CONFIGURATION | (Preview: may change in a minor release.) Configuration. |
SEMANTICS | (Preview: may change in a minor release.) Semantics. |
AutomationReviewProfileChangeType
enum
(Preview: may change in a minor release.) Automation review ProfileChangeType vocabulary.
| Value | Description |
|---|---|
ADDED | (Preview: may change in a minor release.) A profile element was added. |
REMOVED | (Preview: may change in a minor release.) A profile element was removed. |
MODIFIED | (Preview: may change in a minor release.) Modified. |
AutomationReviewStartState
enum
(Preview: may change in a minor release.) Automation review StartState vocabulary.
| Value | Description |
|---|---|
UNKNOWN | (Preview: may change in a minor release.) Unknown. |
CLEAR | (Preview: may change in a minor release.) Clear. |
RAISED | (Preview: may change in a minor release.) Raised. |
AutomationReviewState
enum
(Preview: may change in a minor release.) Automation review State vocabulary.
| Value | Description |
|---|---|
RAN | (Preview: may change in a minor release.) Ran. |
APPROVED | (Preview: may change in a minor release.) Approved. |
REJECTED | (Preview: may change in a minor release.) Rejected. |
CONSUMED | (Preview: may change in a minor release.) Consumed. |
EXPIRED | (Preview: may change in a minor release.) Expired. |
AutomationReviewVerdict
enum
(Preview: may change in a minor release.) Automation review Verdict vocabulary.
| Value | Description |
|---|---|
PASS | (Preview: may change in a minor release.) Pass. |
FAIL | (Preview: may change in a minor release.) Fail. |
INCONCLUSIVE | (Preview: may change in a minor release.) Inconclusive. |
AutomationReviewWindowRole
enum
(Preview: may change in a minor release.) Automation review WindowRole vocabulary.
| Value | Description |
|---|---|
INCIDENT | (Preview: may change in a minor release.) Incident. |
NORMAL | (Preview: may change in a minor release.) Normal. |
BulkChangeDispatch
enum
Preview. Where an operation is in dispatching its lines. A paused or dispatched operation is a resting state, not a failure.
| Value | Description |
|---|---|
DRAFT | Preview. Reserved for a later release. |
PLANNING | Preview. The lines are being written. |
READY | Preview. Planned and waiting for a person to start it. |
RUNNING | Preview. Lines are being applied. |
PAUSED | Preview. No line is applied until it is resumed. |
DISPATCHED | Preview. Every line has been applied or refused; evidence may still be outstanding. |
ABORTED | Preview. Stopped for good: lines not yet applied were cancelled. |
BulkChangeEnforcement
enum
Preview. Database enforcement of the device attribute writer protocol.
| Value | Description |
|---|---|
NOT_INSTALLED | Preview. The expected enforcing trigger and function are not installed on the device attribute table. |
DISABLED | Preview. The expected enforcing trigger exists but is disabled or enabled without ALWAYS. |
ENFORCED | Preview. The expected enforcing trigger covers INSERT, UPDATE and DELETE, has no WHEN condition and is enabled ALWAYS. |
UNREADABLE | Preview. The database catalog could not be read. Enforcement cannot be confirmed. |
BulkChangeEvidence
enum
Preview. Whether the devices have yet answered for the lines that were applied.
| Value | Description |
|---|---|
OPEN | Preview. At least one applied line has no verdict, or is ambiguous. |
CLOSED | Preview. Every applied line has a verdict. |
BulkChangeEvidenceBasis
enum
Preview. What kind of report decided a line's settlement.
| Value | Description |
|---|---|
REPORT_LOG | Preview. The full log of accepted reports covers the line. |
LATEST_STATE | Preview. Only the device's latest reported state was available. |
BulkChangeExecutorState
enum
Preview. Whether the engine that applies the operation is making progress.
| Value | Description |
|---|---|
IDLE | Preview. Not running, so there is nothing to apply. |
WORKING | Preview. Running and making progress. |
HELD | Preview. Running and waiting on a hold reported in the last minute; holdCode names it. |
STALLED | Preview. Running with lines left to apply, no hold, and nothing applied for five minutes. |
UNKNOWN | Preview. Running, but no replica has reported on it in the last minute. |
BulkChangeLinePosting
enum
Preview. What happened to a line when it was applied.
| Value | Description |
|---|---|
PLANNED | Preview. Not applied yet. |
DISPATCHING | Preview. Reserved for a later release. |
POSTED | Preview. Applied; the device's own answer decides the settlement. |
REFUSED | Preview. Not applied: the line was refused, with a code. |
SKIPPED | Preview. Not applied: the target no longer qualified. |
CANCELLED | Preview. Not applied: the operation was aborted first. |
POSTING_UNKNOWN | Preview. Reserved for a later release. |
BulkChangeLineSettlement
enum
Preview. The device's answer for an applied line.
| Value | Description |
|---|---|
CONFIRMED | Preview. The device reported it applied the value. |
FAILED | Preview. The device reported it rejected the value. |
SUPERSEDED | Preview. The device was given a newer configuration before it answered for this one. |
AMBIGUOUS | Preview. No answer arrived in time; a person decides. |
RESOLVED_CONFIRMED | Preview. A person resolved an ambiguous line as confirmed. |
RESOLVED_FAILED | Preview. A person resolved an ambiguous line as failed. |
BulkChangeVerdict
enum
Preview. A person's verdict on an ambiguous line.
| Value | Description |
|---|---|
CONFIRMED | Preview. The person confirmed the change. |
FAILED | Preview. The person judged the change failed. |
CertificateOcspMode
enum
How an anchor uses its issuers' OCSP responders at connect. A certificate a responder says is revoked is always refused (a verified revoked answer for any certificate on any verified path wins); the modes differ in what an answer that could not be had means.
| Value | Description |
|---|---|
OFF | No responder is asked. The default for every anchor. |
ENFORCE_KNOWN | A revoked answer refuses; a status that could not be learned (a timeout, an unreachable or refused responder, an unusable answer) is ADMITTED and counted. Availability over completeness. |
REQUIRE_CURRENT | A revoked answer refuses, and so does a certificate whose status could not be confirmed current. A responder outage refuses new connects once cached answers expire. |
CertificateRevocationMode
enum
How an anchor treats the completeness of its revocation lists.
| Value | Description |
|---|---|
ENTRIES | A listed certificate is refused; an issuer with no list, or a stale one, is allowed. |
REQUIRE_CURRENT | A listed certificate is refused, and so is one whose issuer has no current list. |
CertificateRevocationReason
enum
Why a certificate was revoked (RFC 5280 section 5.3.1). A manual revocation that names none is UNSPECIFIED.
| Value | Description |
|---|---|
UNSPECIFIED | No reason given. |
KEY_COMPROMISE | The certificate's private key is known or suspected to be compromised. |
CA_COMPROMISE | The key of the CA that issued the certificate is known or suspected to be compromised. |
AFFILIATION_CHANGED | The subject changed affiliation; the certificate no longer applies, and its key is not compromised. |
SUPERSEDED | The certificate was replaced by another. |
CESSATION_OF_OPERATION | The certificate is no longer needed because its subject ceased operating. |
CERTIFICATE_HOLD | The certificate is suspended, not permanently revoked. |
PRIVILEGE_WITHDRAWN | A privilege the certificate granted was withdrawn. |
AA_COMPROMISE | The key of an attribute authority is known or suspected to be compromised. |
DeviceFacet
enum
A free-text classification field whose values in use facetValues can list.
| Value | Description |
|---|---|
MANUFACTURER | The manufacturer field of device types. |
MODEL | The model field of device types. |
CATEGORY | The category field of device profiles. |
DeviceImportMode
enum
How an import treats credentials. No mode generates a secret.
| Value | Description |
|---|---|
NONE | Create devices only. Credential columns are refused. |
FACTORY_CREDENTIALS | Create each device together with the credential a factory supplied for it, in one transaction. credentialType and credentialId are required on every row. |
DeviceImportOutcome
enum
What happened to one row of an import.
| Value | Description |
|---|---|
CREATED | The device (and its credential, in FACTORY_CREDENTIALS mode) was created; on a dry run, would be. |
EXISTS | The device already exists exactly as the row describes it. A success; nothing was written. |
CONFLICT | The device, external id or credential id is taken by something different. Nothing was written. |
INVALID | The row is malformed or names something that does not exist. |
REFUSED | The row is well-formed and was refused by a rule of the platform. |
FleetOperationEnforcement
enum
Preview. Deprecated; use BulkChangeEnforcement via bulkChangeReadiness. Database enforcement of the device attribute writer protocol.
| Value | Description |
|---|---|
NOT_INSTALLED | Preview. The expected enforcing trigger and function are not installed on the device attribute table. |
DISABLED | Preview. The expected enforcing trigger exists but is disabled or enabled without ALWAYS. |
ENFORCED | Preview. The expected enforcing trigger covers INSERT, UPDATE and DELETE, has no WHEN condition and is enabled ALWAYS. |
UNREADABLE | Preview. The database catalog could not be read. Enforcement cannot be confirmed. |
InstalledPositionSource
enum
Where an installed position came from.
| Value | Description |
|---|---|
SURVEY | Measured on site by a survey. |
IMPORT | Read from a fleet import file. |
MANUAL | Entered by an operator. |
INFERRED | Derived from other data rather than measured. |
IntegrationDeviceOutcome
enum
What resolveIntegrationDevice concluded.
| Value | Description |
|---|---|
RESOLVED | The alias names a device whose type is in the integration's scope. |
UNREGISTERED | No device in scope carries the alias. The sighting was recorded, unless a device outside the integration's scope holds the alias, in which case it reads the same but nothing is recorded: that value is not an unregistered device, and creating a device with it would be refused. |
DISABLED | The token matched an integration that an operator has switched off. This is not a failed credential: nothing is resolved or recorded. |
UNAUTHENTICATED | No such integration, or the token did not match. One answer to both. |
PayloadDecoderInput
enum
Which input of an uplink a decoder reads. An uplink without it fails to decode with missing_input.
| Value | Description |
|---|---|
FRAME | The raw frame: a LoRaWAN payload, or a binary webhook body. |
JSON | A JSON item from a generic webhook. |
DECODED | The object a network server already decoded. |
PayloadDecoderKind
enum
The engine a payload decoder runs on. Only CEL is executable; a WASM document is refused with UNSUPPORTED_DECODER_KIND.
| Value | Description |
|---|---|
CEL | Expressions in a bounded, loop-free expression language over a library of byte and bit readers. |
WASM | Reserved. Refused wherever a decoder is saved or published. |
PositionFamily
enum
The entity kinds a position can be installed on.
| Value | Description |
|---|---|
DEVICE | A device, named by its token. |
ASSET | An asset, named by its token. |
RevocationStatus
enum
How fresh a stored revocation list is.
| Value | Description |
|---|---|
NONE | No list is stored. |
FRESH | Less than three quarters of the list's validity has passed. |
EXPIRING | Three quarters of its validity have passed, or nextUpdate has passed within the grace: push the next list. |
STALE | nextUpdate and the grace have both passed: REQUIRE_CURRENT no longer counts the list as current. |
SemanticPack
enum
A vocabulary pack this build ships. New packs may be added in a minor release, so a client should tolerate a value it does not know.
| Value | Description |
|---|---|
BRICK | Brick (pack id brick): buildings, equipment and points. |
NGSI_LD | The NGSI-LD core vocabulary (pack id ngsi-ld). |
S4BLDG | SAREF for buildings (pack id s4bldg). |
S4CITY | SAREF for smart cities (pack id s4city). |
SAREF | SAREF core (pack id saref): devices, properties and measurements. |
SDM_ENVIRONMENT | Smart Data Models, environment domain (pack id sdm-environment). |
SDM_PARKING | Smart Data Models, parking domain (pack id sdm-parking). |
SDM_STREETLIGHTING | Smart Data Models, street lighting domain (pack id sdm-streetlighting). |