openapi: 3.1.0 info: title: Dexwize Enrollment Service version: 1.0.0 description: > Device enrollment, device credentials, collection policy and agent update rings (ADR-0012). Agent endpoints are anonymous at the JWT layer: enrollment is authenticated by an enrollment token plus Ed25519 proof of possession, renewal by a fresh proof, and config by the device credential (`Authorization: Device `). Admin endpoints use bearer tokens from identity-service; cross-tenant access returns 404. Release endpoints need PlatformOperate (non-JIT platform-tenant session). Agent distribution: installer packages live in an immutable release bucket; customers list and download them (DevicesRead) through short-lived, audited URLs, devices fetch updates with their credential, and CI publishes with a signed publisher assertion. servers: - url: https://api.dexwize.example security: - bearer: [] paths: /v1/enroll: post: summary: Enrol a device (agent) operationId: enrollDevice security: [] requestBody: required: true content: application/json: schema: $ref: ../events/enrollment-request.v1.schema.json responses: '201': description: Enrolled content: application/json: schema: $ref: '#/components/schemas/EnrollmentResponse' '400': $ref: '#/components/responses/DeviceError' '401': $ref: '#/components/responses/DeviceError' '409': $ref: '#/components/responses/DeviceError' '413': description: Body over 16 KB /v1/devices/renew: post: summary: Renew the device credential (agent) operationId: renewDeviceCredential security: [] requestBody: required: true content: application/json: schema: $ref: ../events/device-renewal-request.v1.schema.json responses: '200': description: New credential content: application/json: schema: type: object required: - device_id - credential - credential_expires_at properties: device_id: type: string format: uuid credential: type: string credential_expires_at: type: string format: date-time '400': $ref: '#/components/responses/DeviceError' '401': $ref: '#/components/responses/DeviceError' '403': $ref: '#/components/responses/DeviceError' '413': description: Body over 16 KB /v1/devices/self/config: get: summary: Collection policy and target agent release (agent) operationId: getDeviceConfig security: - device: [] parameters: - name: If-None-Match in: header schema: type: string responses: '200': description: Current config; ETag header set content: application/json: schema: $ref: '#/components/schemas/DeviceConfig' '304': description: Unchanged '401': description: Missing, invalid or revoked device credential /v1/enrollment-tokens: get: summary: List enrollment tokens (secrets never returned) operationId: listEnrollmentTokens responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/EnrollmentToken' '403': description: Missing DevicesManage post: summary: Create an enrollment token (secret returned once) operationId: createEnrollmentToken requestBody: required: true content: application/json: schema: type: object required: - group - ring - expiresInDays - maxUses properties: group: type: string pattern: ^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$ ring: type: string enum: - Internal - Pilot - General expiresInDays: type: integer minimum: 1 maximum: 30 maxUses: type: integer minimum: 1 maximum: 100000 description: type: - string - 'null' maxLength: 200 responses: '201': description: Created content: application/json: schema: type: object properties: token: type: string pattern: ^dxe_[A-Za-z0-9_-]{43,128}$ details: $ref: '#/components/schemas/EnrollmentToken' '400': description: Outside policy '403': description: Missing DevicesManage /v1/enrollment-tokens/{id}/revoke: post: summary: Revoke an enrollment token operationId: revokeEnrollmentToken parameters: - $ref: '#/components/parameters/Id' responses: '204': description: Revoked '404': description: Not found or another tenant /v1/devices: get: summary: Devices with agent health operationId: listDevices parameters: - name: hostnameHash in: query required: false description: "Only devices whose agent-reported host name hash (sha256 of tenant:host, lower-case hex) matches; used by the ITSM panel." schema: type: string pattern: '^[0-9a-f]{64}$' responses: '400': description: hostnameHash is not 64 lowercase hex characters '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/Device' /v1/devices/{id}: get: summary: One device with agent health operationId: getDevice parameters: - $ref: '#/components/parameters/Id' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Device' '404': description: Not found or another tenant /v1/devices/{id}/revoke: post: summary: Revoke a device; ingest rejects its next batch operationId: revokeDevice parameters: - $ref: '#/components/parameters/Id' responses: '204': description: Revoked '404': description: Not found or another tenant /v1/devices/{id}/primary-user: get: summary: Effective primary user of a device as a pseudonym (PrimaryUsersRead, fleet_reader services only; ADR-0041) operationId: getDevicePrimaryUser parameters: - $ref: '#/components/parameters/Id' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/DevicePrimaryUser' '403': description: Missing PrimaryUsersRead '404': description: No primary user, a revoked device or another tenant put: summary: Set one source's primary-user claim (PrimaryUsersWrite, audited without the person) description: >- device_owner_writer services write the mdm or directory source and tenant admins write only the admin source. Precedence is mdm over directory over admin. Only a keyed pseudonym of the subject is stored. operationId: putDevicePrimaryUser parameters: - $ref: '#/components/parameters/Id' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PrimaryUserClaim' responses: '204': description: Stored '400': description: Invalid subject or department, or a source the caller may not write '403': description: Missing PrimaryUsersWrite '404': description: Not found, revoked or another tenant delete: summary: Remove one source's primary-user claim (PrimaryUsersWrite, audited) operationId: deleteDevicePrimaryUser parameters: - $ref: '#/components/parameters/Id' - name: source in: query required: false schema: type: string enum: [mdm, directory, admin] responses: '204': description: Removed '400': description: A source the caller may not remove '403': description: Missing PrimaryUsersWrite '404': description: No claim from that source /v1/devices/primary-user/lookup: post: summary: Devices whose effective primary user is this subject (PrimaryUsersRead); the subject travels in the body, never the URL operationId: lookupPrimaryUserDevices requestBody: required: true content: application/json: schema: type: object required: [subject] properties: subject: type: string minLength: 1 maxLength: 256 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/PrimaryUserDevices' '400': description: Invalid subject '403': description: Missing PrimaryUsersRead /v1/devices/primary-user-departments: get: summary: Department of every device with an effective primary user (PrimaryUsersRead), for group-size protected aggregates operationId: listPrimaryUserDepartments responses: '200': description: OK content: application/json: schema: type: array items: type: object required: [deviceId, department] properties: deviceId: type: string format: uuid department: type: string '403': description: Missing PrimaryUsersRead /v1/devices/primary-user/{subjectPseudonym}: get: summary: Devices whose effective primary user has this pseudonym (PrimaryUsersRead) operationId: getPrimaryUserDevices parameters: - name: subjectPseudonym in: path required: true schema: type: string pattern: '^[0-9a-f]{32}$' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/PrimaryUserDevices' '403': description: Missing PrimaryUsersRead '404': description: Not a pseudonym /v1/policies/default: get: summary: Tenant default collection policy operationId: getDefaultPolicy responses: '200': $ref: '#/components/responses/Policy' '404': description: Not set; agent defaults apply put: summary: Set the tenant default collection policy operationId: putDefaultPolicy requestBody: $ref: '#/components/requestBodies/Policy' responses: '200': $ref: '#/components/responses/Policy' '400': description: Invalid policy /v1/policies/groups/{group}: parameters: - name: group in: path required: true schema: type: string get: summary: Device group collection policy operationId: getGroupPolicy responses: '200': $ref: '#/components/responses/Policy' '404': description: Not set or invalid group put: summary: Set a device group collection policy operationId: putGroupPolicy requestBody: $ref: '#/components/requestBodies/Policy' responses: '200': $ref: '#/components/responses/Policy' '400': description: Invalid policy or group /v1/releases: get: summary: Agent releases (platform operators) operationId: listReleases responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/Release' post: summary: Register a signed agent release (starts at stage Internal) operationId: createRelease requestBody: required: true content: application/json: schema: type: object required: - platform - version - artifactSha256 - signatureRef properties: platform: type: string enum: - windows - macos - linux version: type: string artifactSha256: type: string pattern: ^[0-9a-f]{64}$ signatureRef: type: string responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/Release' '400': description: Invalid or duplicate version '403': description: Not a platform-tenant non-JIT operator /v1/releases/{id}/promote: post: summary: Move to the next stage (Internal, Pilot, TenPercent, All) operationId: promoteRelease parameters: - $ref: '#/components/parameters/Id' responses: '200': description: Promoted content: application/json: schema: $ref: '#/components/schemas/Release' '404': description: Not found '409': description: Halted or already at All /v1/releases/{id}/halt: post: summary: Halt (roll back) a release operationId: haltRelease parameters: - $ref: '#/components/parameters/Id' requestBody: required: true content: application/json: schema: type: object required: - reason properties: reason: type: string responses: '200': description: Halted content: application/json: schema: $ref: '#/components/schemas/Release' '404': description: Not found /v1/releases/{id}/evaluate: post: summary: Compare the release cohort with the previous version; halts automatically on regression operationId: evaluateRelease parameters: - $ref: '#/components/parameters/Id' requestBody: required: true content: application/json: schema: type: object required: - candidate - baseline properties: candidate: $ref: '#/components/schemas/CohortStats' baseline: $ref: '#/components/schemas/CohortStats' responses: '200': description: Decision content: application/json: schema: type: object properties: verdict: type: string enum: - Continue - InsufficientData - Halt reasons: type: array items: type: string release: $ref: '#/components/schemas/Release' '404': description: Not found /v1/releases/packages: post: summary: Publish one installer package of a release (platform operators) description: >- The body is the package bytes. The service computes the SHA-256, stores the object once under the immutable key platform/version/arch/brand/file in the release bucket and registers it. Publishing the same bytes again is idempotent (200); different bytes for a published slot or key are refused (409): packages are immutable, a fix is a new version. The primary package (default-brand x64 MSI, universal pkg, x64 deb) creates the release at stage Internal when it does not exist; any other package needs the release to exist. Audited as agent_package.published. operationId: publishPackage parameters: - { name: platform, in: query, required: true, schema: { type: string, enum: [windows, macos, linux] } } - { name: version, in: query, required: true, schema: { type: string } } - { name: format, in: query, required: true, schema: { $ref: '#/components/schemas/PackageFormat' } } - { name: arch, in: query, required: true, schema: { $ref: '#/components/schemas/PackageArch' } } - { name: fileName, in: query, required: true, schema: { type: string, pattern: '^[A-Za-z0-9][A-Za-z0-9._+-]{0,127}$' } } - name: brand in: query description: White-label brand slug (the partner MSI's file-name prefix); omitted for the default build. schema: { type: string, pattern: '^[a-z0-9]+(-[a-z0-9]+)*$' } - { name: signatureKind, in: query, required: true, schema: { $ref: '#/components/schemas/SignatureKind' } } - name: signatureRef in: query description: The signer (certificate subject and thumbprint, Apple Team ID, OpenPGP key fingerprint). Required unless unsigned. schema: { type: string, maxLength: 512 } - { name: notes, in: query, schema: { type: string, maxLength: 500 } } - name: X-Content-SHA256 in: header description: Optional end-to-end check; the request fails and nothing is stored when the body does not hash to it. schema: { type: string, pattern: '^[0-9a-f]{64}$' } requestBody: required: true content: application/octet-stream: schema: { type: string, contentEncoding: binary } responses: '200': description: Already published with the same bytes content: application/json: schema: { $ref: '#/components/schemas/OperatorAgentPackage' } '201': description: Published content: application/json: schema: { $ref: '#/components/schemas/OperatorAgentPackage' } '400': description: Invalid metadata, empty body or digest mismatch '403': description: Not a platform-tenant non-JIT operator '409': description: Slot or key already holds different bytes, release digest mismatch, or the release does not exist yet '413': description: Over the package size limit (AgentReleases:MaxPackageMegabytes, default 512) '503': description: No release bucket configured /v1/releases/packages/signed: post: summary: Publish one installer package from CI with a signed publisher assertion description: >- Same as publishPackage, authenticated with `Authorization: Publisher ` instead of a bearer token. The JWS (alg EdDSA, kid = a key in AgentReleases:Publishers) carries iss (= kid), aud dexwize-agent-releases, iat, exp (at most 15 minutes after iat) and a pkg claim with platform, version, format, arch, file_name, brand, signature_kind, signature_ref, notes and the body's sha256, so an assertion authorizes exactly one package and a replay can only publish the same bytes again. operationId: publishPackageSigned security: - publisher: [] requestBody: required: true content: application/octet-stream: schema: { type: string, contentEncoding: binary } responses: '200': description: Already published with the same bytes content: application/json: schema: { $ref: '#/components/schemas/OperatorAgentPackage' } '201': description: Published content: application/json: schema: { $ref: '#/components/schemas/OperatorAgentPackage' } '400': description: Invalid metadata or the body does not hash to pkg.sha256 '401': description: Missing, unknown, expired or badly signed assertion (audited as agent_package.publish_refused) '409': description: Slot or key already holds different bytes, or the release does not exist yet /v1/agent-packages: get: summary: What this tenant installs, per platform (DevicesRead) description: >- Per platform, the newest active release the ring installs that has packages (General installs only releases promoted to all devices; Pilot from stage Pilot; Internal any active release) and its packages, one per format and architecture: a white-label tenant's own build where one is published, else the default build. Includes the tenant id and the server URL agents are installed with, for ready-made install commands. operationId: listAgentPackages parameters: - name: ring in: query schema: { type: string, enum: [Internal, Pilot, General], default: General } responses: '200': description: OK content: application/json: schema: { $ref: '#/components/schemas/AgentCatalog' } '400': description: Unknown ring '403': description: Missing DevicesRead /v1/agent-packages/{id}/download: post: summary: Authorize one download (DevicesRead); returns a short-lived URL description: >- Checks the package is visible to the tenant (default build or its own white-label build) and its release is not halted, proves the stored object still has the size and ETag recorded at publication, audits agent_package.downloaded and returns a URL valid for AgentReleases:DownloadUrlLifetimeSeconds (default 300): a pre-signed GET to the release bucket, or a proxied /v1/agent-downloads/{ticket} link where the store has no public endpoint (absolute when AgentReleases:PublicApiUrl is set, else relative to this service). The browser navigates to it, so the portal's connect-src 'self' is unaffected. operationId: downloadAgentPackage parameters: - $ref: '#/components/parameters/Id' responses: '200': description: OK content: application/json: schema: { $ref: '#/components/schemas/DownloadTicket' } '404': description: Unknown package, or another brand's build '409': description: The release was halted '502': description: The stored object no longer matches the publication (audited as agent_package.integrity_failed) '503': description: No release bucket configured /v1/agent-downloads/{ticket}: get: summary: Proxied package bytes behind a short-lived ticket (Proxy delivery) operationId: getProxiedAgentPackage security: [] parameters: - { name: ticket, in: path, required: true, schema: { type: string } } responses: '200': description: The package (attachment); X-Content-SHA256 header set content: application/octet-stream: schema: { type: string, contentEncoding: binary } '404': description: Invalid or expired ticket /v1/devices/self/packages/{id}/download: post: summary: Authorize one update download for this device (agent) description: >- The package must be for the device's platform and visible to its tenant; halted releases are refused. The agent must verify sha256 and the platform signature before installing, whatever host serves the bytes. Audited as agent_package.downloaded with the device as actor. operationId: downloadDevicePackage security: - device: [] parameters: - $ref: '#/components/parameters/Id' responses: '200': description: OK content: application/json: schema: { $ref: '#/components/schemas/DeviceDownloadTicket' } '401': description: Missing, invalid or revoked device credential '404': description: Unknown package (error unknown_package) '409': description: Release halted (error package_unavailable) /v1/pseudonym-salt: get: summary: Current pseudonymization salt version (PrivacySettingsManage); never the key operationId: getPseudonymSalt responses: '200': description: OK content: application/json: schema: type: object properties: version: type: integer minimum: 1 createdAt: type: string format: date-time '403': description: Missing PrivacySettingsManage /v1/pseudonym-salt/rotate: post: summary: Rotate the tenant pseudonymization salt (PrivacySettingsManage, audited); devices pick it up on their next config poll operationId: rotatePseudonymSalt responses: '200': description: OK content: application/json: schema: type: object properties: version: type: integer minimum: 1 createdAt: type: string format: date-time '403': description: Missing PrivacySettingsManage /v1/pseudonym-salt/serial-pseudonyms: post: summary: "Hardware serial pseudonyms with the tenant's current salt, as the agent reports them (service tokens with serial_pseudonymizer only; audited by count; never the key)" operationId: computeSerialPseudonyms requestBody: required: true content: application/json: schema: type: object required: [serials] properties: serials: type: array minItems: 1 maxItems: 200 items: type: string minLength: 1 maxLength: 64 responses: '200': description: Pseudonyms in request order content: application/json: schema: type: object properties: saltVersion: type: integer minimum: 1 pseudonyms: type: array items: type: string pattern: '^[0-9a-f]{32}$' '400': description: Empty, oversized or non-printable serial list '403': description: Missing SerialPseudonymsCompute /v1/installation/license: get: summary: Offline licence status of this customer-hosted or air-gapped installation (ADR-0035) description: Exists only when Licensing:Mode is offline; returns 404 on SaaS and dedicated tenants. operationId: getInstallationLicense responses: '200': description: Status content: application/json: schema: { $ref: '#/components/schemas/InstallationLicense' } '403': description: Not the local platform operator '404': description: Not an offline-licensed installation post: summary: Import a licence file signed by the license authority (verified offline) operationId: importInstallationLicense requestBody: required: true content: application/json: schema: { $ref: '#/components/schemas/LicenseSignedDocument' } responses: '200': description: Imported content: application/json: schema: { $ref: '#/components/schemas/InstallationLicense' } '400': description: Signature, installation or environment mismatch '404': description: Not an offline-licensed installation /v1/installation/activation-request: post: summary: Generate the signed activation request to carry out to the license authority operationId: createActivationRequest requestBody: required: true content: application/json: schema: type: object required: [edition, requestedDevices, productVersion] properties: edition: { type: string, maxLength: 64 } requestedDevices: { type: integer, minimum: 1 } productVersion: { type: string, maxLength: 32 } responses: '200': description: Signed activation request content: application/json: schema: { $ref: '#/components/schemas/LicenseSignedDocument' } '400': description: Invalid fields '404': description: Not an offline-licensed installation /v1/installation/usage-report: post: summary: Export the next signed, hash-chained usage report (device counts and edition only) operationId: exportUsageReport requestBody: required: true content: application/json: schema: type: object required: [periodStart, periodEnd] properties: periodStart: { type: string, format: date-time } periodEnd: { type: string, format: date-time } responses: '200': description: Signed usage report content: application/json: schema: { $ref: '#/components/schemas/LicenseSignedDocument' } '400': description: Empty or overlapping period '404': description: Not an offline-licensed installation '409': description: No licence imported components: securitySchemes: bearer: type: http scheme: bearer bearerFormat: JWT device: type: apiKey in: header name: Authorization description: Device , the ES256 credential returned by enroll or renew (24 h). publisher: type: apiKey in: header name: Authorization description: Publisher , a CI release publisher assertion (EdDSA) bound to one package's metadata and SHA-256. parameters: Id: name: id in: path required: true schema: type: string format: uuid requestBodies: Policy: required: true content: application/json: schema: $ref: '#/components/schemas/CollectionPolicy' responses: Policy: description: Stored policy; ETag header set content: application/json: schema: $ref: '#/components/schemas/CollectionPolicy' DeviceError: description: Rejected content: application/json: schema: type: object properties: error: type: string enum: - malformed_request - stale_request - replayed_nonce - invalid_proof - unknown_token - token_expired - token_revoked - token_exhausted - key_already_enrolled - unknown_device - device_revoked schemas: LicenseSignedDocument: type: object required: [key_id, signature, document] properties: key_id: { type: string } signature: { type: string, contentEncoding: base64 } document: { type: string, contentEncoding: base64 } InstallationLicense: type: object required: [state, clockTamperDetected, features] properties: state: { type: string, enum: [unlicensed, valid, grace, read_only] } clockTamperDetected: { type: boolean } licenseId: { type: [string, 'null'], format: uuid } edition: { type: [string, 'null'] } deviceCap: { type: [integer, 'null'] } hardDeviceLimit: { type: [integer, 'null'] } validTo: { type: [string, 'null'], format: date-time } graceEndsAt: { type: [string, 'null'], format: date-time } features: type: array items: { type: string } CollectionPolicy: type: object additionalProperties: false description: Exactly the JSON dexwize-collectors CollectionPolicy::from_json accepts. properties: collectors: type: object propertyNames: enum: - boot_timing - heartbeat - inventory - process_sampler - reliability - hardware_health - network_quality - collaboration - security_posture - app_usage - change_detection - hardware_inventory - collaboration_call - vdi_session - web_page_metrics - app_settings additionalProperties: type: object additionalProperties: false properties: enabled: type: boolean default: true interval_secs: type: integer minimum: 10 maximum: 86400 throttle: type: object additionalProperties: false properties: cpu_threshold_percent: type: number minimum: 1 maximum: 100 default: 80 cpu_skip_percent: type: number maximum: 100 default: 95 backoff_factor: type: integer minimum: 1 maximum: 16 default: 4 DeviceConfig: type: object properties: policy: $ref: '#/components/schemas/CollectionPolicy' policy_etag: type: string update: type: - object - 'null' properties: release_id: type: string format: uuid platform: type: string version: type: string artifact_sha256: type: string signature_ref: type: string packages: type: array description: >- The release's installers this device's tenant may install (its white-label build where one exists). An agent picks its format and architecture, POSTs download_path (relative to its server URL) with its credential for a short-lived URL, and installs only after verifying sha256 and the platform signature. Absent from older servers. items: type: object required: [package_id, format, arch, file_name, size_bytes, sha256, signature_kind, signature_ref, download_path] properties: package_id: { type: string, format: uuid } format: { $ref: '#/components/schemas/PackageFormat' } arch: { $ref: '#/components/schemas/PackageArch' } file_name: { type: string } size_bytes: { type: integer, minimum: 1 } sha256: { type: string, pattern: '^[0-9a-f]{64}$' } signature_kind: { $ref: '#/components/schemas/SignatureKind' } signature_ref: { type: string } download_path: { type: string, examples: ['/v1/devices/self/packages/6f1c2a4e-8c55-4d3b-9a0e-0d6a5f1b2c3d/download'] } pseudonym_salt: type: object required: - version - key description: >- Tenant secret pseudonymization salt (ADR-0019); HMAC key for serial and SSID pseudonyms. Delivered only to authenticated devices; never shown to people. properties: version: type: integer minimum: 1 key: type: string contentEncoding: base64 description: 32 bytes remediation: type: - object - 'null' description: >- Remediation endpoint and the signing keys the agent trusts (ADR-0022). The key list is authoritative: keys that appear are added and keys the server stops listing are removed (rotation by key id). Absent means unchanged. properties: url: type: - string - 'null' format: uri description: https only; the agent ignores any other scheme. trusted_keys: type: array items: type: object required: - purpose - key_id - public_key properties: purpose: type: string enum: - content - command key_id: type: string maxLength: 128 public_key: type: string contentEncoding: base64 description: Ed25519 public key, 32 bytes campaigns_url: type: - string - 'null' format: uri description: campaign-service URL for the employee tray (E13); https only. features: type: - array - 'null' items: enum: [remote_actions, self_healing, campaigns, employee_it_agent, digital_adoption, web_app_experience] description: >- ADR-0053: the agent capabilities the tenant is licensed for, sorted; the agent executes none outside this list. null when the tenant's entitlements are unknown (keep the last received list); absent from older servers (no change). Part of the config ETag, so a licence change makes the agent refetch. brand: description: >- The names the agent's tray shows (ADR-0049): the default brand, a co-brand partner's tenant (product and agent names unchanged) or a white-label partner's own product and agent names. Absent or null when the server has no brand source; the agent then keeps its installer-written or built-in brand. oneOf: - type: 'null' - type: object required: [mode, product_name, agent_name] properties: mode: type: string enum: [Default, CoBrand, WhiteLabel] product_name: type: string minLength: 1 maxLength: 60 agent_name: type: string minLength: 1 maxLength: 60 co_brand_name: description: >- The partner's name, shown next to the product name (ADR-0014 co-brand). Set only when mode is CoBrand; absent or null otherwise. type: - string - 'null' minLength: 1 maxLength: 60 EnrollmentResponse: type: object properties: device_id: type: string format: uuid tenant_id: type: string format: uuid key_id: type: string group: type: string ring: type: string enum: - internal - pilot - general ingest_url: type: string format: uri credential: type: string credential_expires_at: type: string format: date-time config: $ref: '#/components/schemas/DeviceConfig' EnrollmentToken: type: object properties: id: type: string format: uuid group: type: string ring: type: string description: type: - string - 'null' createdAt: type: string format: date-time createdBy: type: string expiresAt: type: string format: date-time maxUses: type: integer uses: type: integer revokedAt: type: - string - 'null' format: date-time usable: type: boolean PrimaryUserSource: type: string enum: [mdm, directory, admin] PrimaryUserClaim: type: object required: [subject] properties: subject: type: string minLength: 1 maxLength: 256 description: Directory object id (Entra oid or SCIM externalId); hashed with the tenant key and never stored department: type: [string, 'null'] maxLength: 100 source: allOf: - $ref: '#/components/schemas/PrimaryUserSource' description: Defaults to admin; services must send mdm or directory confirmedAt: type: [string, 'null'] format: date-time DevicePrimaryUser: type: object properties: deviceId: type: string format: uuid subjectPseudonym: type: string pattern: '^[0-9a-f]{32}$' department: type: [string, 'null'] deviceGroup: type: string source: $ref: '#/components/schemas/PrimaryUserSource' confirmedAt: type: string format: date-time PrimaryUserDevices: type: object properties: subjectPseudonym: type: string pattern: '^[0-9a-f]{32}$' devices: type: array items: type: object properties: deviceId: type: string format: uuid deviceGroup: type: string department: type: [string, 'null'] osFamily: type: string hardwareModel: type: [string, 'null'] agentVersion: type: string description: The agent version recorded for the device (the one remediation-service checks against an operation's minimum) source: $ref: '#/components/schemas/PrimaryUserSource' Device: type: object properties: id: type: string format: uuid hostnameHash: type: string osFamily: type: string osVersion: type: string hardwareModel: type: - string - 'null' agentVersion: type: string group: type: string ring: type: string enrolledAt: type: string format: date-time revokedAt: type: - string - 'null' format: date-time keyProtection: type: string enum: - dpapi - tpm - secure_enclave - root_file - keychain health: type: object properties: status: type: string enum: - NeverSeen - Online - Stale - Offline - Revoked lastSeen: type: - string - 'null' format: date-time agentVersion: type: - string - 'null' footprintWithinBudget: type: - boolean - 'null' heartbeatGaps: type: integer longestGapSeconds: type: integer restarts: type: integer tamperSuspected: type: boolean reasons: type: array items: type: string Release: type: object properties: id: type: string format: uuid platform: type: string version: type: string artifactSha256: type: string signatureRef: type: string stage: type: string enum: - Internal - Pilot - TenPercent - All status: type: string enum: - Active - Halted haltReason: type: - string - 'null' haltedAt: type: - string - 'null' format: date-time createdAt: type: string format: date-time createdBy: type: string packages: type: array description: Present in the list response; every brand's build. items: $ref: '#/components/schemas/OperatorAgentPackage' PackageFormat: type: string enum: [msi, pkg, deb, rpm] PackageArch: type: string enum: [x64, arm64, universal] SignatureKind: type: string description: Authenticode (Windows), Developer ID signed and notarized (macOS), OpenPGP (deb, rpm), or none (unsigned build). enum: [authenticode, developer-id, gpg, none] PackageSignature: type: object required: [kind, ref, signed] properties: kind: { $ref: '#/components/schemas/SignatureKind' } ref: type: string description: The signer as published (certificate subject and thumbprint, Team ID, key fingerprint); empty when unsigned. signed: { type: boolean } AgentPackage: type: object required: [id, releaseId, platform, version, format, arch, fileName, sizeBytes, sha256, signature, branded, createdAt] properties: id: { type: string, format: uuid } releaseId: { type: string, format: uuid } platform: { type: string, enum: [windows, macos, linux] } version: { type: string } format: { $ref: '#/components/schemas/PackageFormat' } arch: { $ref: '#/components/schemas/PackageArch' } fileName: { type: string } sizeBytes: { type: integer, minimum: 1 } sha256: { type: string, pattern: '^[0-9a-f]{64}$' } signature: { $ref: '#/components/schemas/PackageSignature' } notes: { type: [string, 'null'] } branded: type: boolean description: True for a white-label partner's own build. createdAt: { type: string, format: date-time } OperatorAgentPackage: allOf: - $ref: '#/components/schemas/AgentPackage' - type: object required: [objectKey, createdBy] properties: brand: { type: [string, 'null'] } objectKey: { type: string } createdBy: { type: string } AgentCatalog: type: object required: [tenantId, ring, configured, platforms] properties: tenantId: { type: string, format: uuid } ring: { type: string, enum: [Internal, Pilot, General] } serverUrl: type: [string, 'null'] description: The enrollment URL agents are installed with (AgentReleases:AgentServerUrl); null when not configured. configured: type: boolean description: False when this installation has no release bucket (nothing can be downloaded). platforms: type: array items: type: object required: [platform, packages] properties: platform: { type: string, enum: [windows, macos, linux] } release: type: - object - 'null' properties: id: { type: string, format: uuid } version: { type: string } stage: { type: string, enum: [Internal, Pilot, TenPercent, All] } createdAt: { type: string, format: date-time } packages: type: array items: { $ref: '#/components/schemas/AgentPackage' } DownloadTicket: type: object required: [url, expiresAt, fileName, sizeBytes, sha256, signature, version] properties: url: type: string description: Pre-signed store URL, or a proxied link (absolute, or relative to this service's base URL). expiresAt: { type: string, format: date-time } fileName: { type: string } sizeBytes: { type: integer } sha256: { type: string } signature: { $ref: '#/components/schemas/PackageSignature' } version: { type: string } DeviceDownloadTicket: type: object required: [url, expires_at, file_name, size_bytes, sha256, signature_kind, signature_ref] properties: url: { type: string } expires_at: { type: string, format: date-time } file_name: { type: string } size_bytes: { type: integer } sha256: { type: string } signature_kind: { $ref: '#/components/schemas/SignatureKind' } signature_ref: { type: string } CohortStats: type: object required: - devices - agentCrashes - avgAgentCpuPercent - avgAgentMemoryMb properties: devices: type: integer minimum: 0 agentCrashes: type: integer minimum: 0 avgAgentCpuPercent: type: number minimum: 0 avgAgentMemoryMb: type: number minimum: 0