Some checks failed
Server CI / Postgres (shard 0) (push) Has been skipped
Server CI / Postgres (shard 3) (push) Has been skipped
BuildEnv Docker Image / build-image (push) Failing after 4s
BuildEnv Docker Image / build-image-fips (push) Failing after 4s
Migration Review & Release Notes / Generate migration review & release notes (push) Failing after 3s
Server CI / Build Environment (push) Failing after 3s
Server CI / Postgres (shard 1) (push) Has been skipped
Tools CI / check-style (mattermost-govet) (push) Failing after 4s
Server CI / Postgres (shard 2) (push) Has been skipped
Tools CI / check-style (mmgotool) (push) Failing after 3s
Server CI / Elasticsearch v8 Compatibility (push) Has been skipped
Server CI / OpenSearch v2 Compatibility (push) Has been skipped
Server CI / Postgres FIPS (shard 0) (push) Has been skipped
Tools CI / Test (mattermost-govet) (push) Failing after 3s
Server CI / Postgres FIPS (shard 1) (push) Has been skipped
Server CI / Postgres FIPS (shard 2) (push) Has been skipped
Tools CI / Test (mmgotool) (push) Failing after 3s
Server CI / Postgres FIPS (shard 3) (push) Has been skipped
Server CI / Run mmctl tests (push) Has been skipped
Server CI / Run mmctl tests (FIPS) (push) Has been skipped
Server CI / Merge Postgres Test Results (push) Has been skipped
Server CI / Merge Postgres FIPS Test Results (push) Has been skipped
Server CI / Check backport migrations (push) Has been skipped
Server CI / Check generated files (push) Has been skipped
Server CI / check-style (push) Has been skipped
Server CI / Vet API (push) Has been skipped
Server CI / Build mattermost server app (push) Has been skipped
Server CI / Server CI Complete (push) Failing after 2s
Server CI / Server CI Artifacts (push) Has been skipped
Server CI / Sentry Upload (push) Has been skipped
Server CI / Server CI Report (push) Failing after 5m1s
Server CI Nightly Race / Race Detector (push) Has been skipped
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Webapp CI Cache Warm / Warm Webapp node_modules Cache (push) Has been cancelled
E2E CI Cache Warm / Warm E2E npm Registry Cache (push) Has been cancelled
API / build (push) Has been cancelled
Web App CI / check-types (push) Has been cancelled
Web App CI / check-lint (push) Has been cancelled
Web App CI / check-i18n (push) Has been cancelled
Web App CI / check-external-links (push) Has been cancelled
Web App CI / test (platform) (push) Has been cancelled
Web App CI / test (mattermost-redux) (push) Has been cancelled
Web App CI / test (channels shard 1/4) (push) Has been cancelled
Web App CI / test (channels shard 2/4) (push) Has been cancelled
Web App CI / test (channels shard 3/4) (push) Has been cancelled
Web App CI / test (channels shard 4/4) (push) Has been cancelled
Web App CI / upload-coverage (push) Has been cancelled
Web App CI / build (push) Has been cancelled
YAML Lint / yamllint (push) Has been cancelled
Push mirrored docker images / cd/Push mirrored docker images (push) Has been cancelled
docs-cd / Build and deploy docs (push) Has been cancelled
Docs CI / build (push) Has been cancelled
E2E Cache Warm: Cypress deps / Warm Cypress deps cache (push) Has been cancelled
Scorecards supply-chain security / Scorecard analysis (push) Has been cancelled
Server CI Weekly / Postgres FIPS (push) Has been skipped
Server CI Weekly / Run mmctl tests (FIPS) (push) Has been skipped
Server CI Weekly / Postgres with binary parameters (push) Has been skipped
Server CI Weekly / Build Environment (push) Failing after 1s
Server CI Nightly Race / Build Environment (push) Failing after 1s
Server CI Cache Warm / Warm Go Module and Build Cache (push) Failing after 2s
207 lines
8.2 KiB
YAML
207 lines
8.2 KiB
YAML
/api/v4/ephemeral_mode/cleanup:
|
|
post:
|
|
tags:
|
|
- ephemeral mode
|
|
summary: Log an ephemeral mode cleanup run
|
|
description: >
|
|
Records the outcome of a client-side ephemeral mode auto cache cleanup run as an
|
|
audit event.
|
|
|
|
__Minimum server version__: 11.10
|
|
|
|
##### Permissions
|
|
|
|
Must be logged in.
|
|
|
|
##### License
|
|
|
|
Requires an Enterprise Advanced license.
|
|
operationId: LogCleanup
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
posts_deleted:
|
|
description: >
|
|
The number of posts deleted by the cleanup run. Required unless
|
|
error_reason is provided, since a successful run with no counts
|
|
records no evidence of what was deleted. If omitted, no posts_deleted
|
|
value is recorded on the audit event.
|
|
type: integer
|
|
format: int64
|
|
nullable: true
|
|
playbook_runs_deleted:
|
|
description: >
|
|
The number of playbook runs deleted by the cleanup run. Required
|
|
unless error_reason is provided. If omitted, no playbook_runs_deleted
|
|
value is recorded on the audit event.
|
|
type: integer
|
|
format: int64
|
|
nullable: true
|
|
cleanup_at:
|
|
description: >
|
|
The time in milliseconds the cleanup run completed. Always optional;
|
|
it does not satisfy the requirement for the deleted record counts. If
|
|
omitted, no cleanup_at value is recorded on the audit event; the
|
|
server-observed time is always recorded separately as server_ts.
|
|
type: integer
|
|
format: int64
|
|
nullable: true
|
|
error_reason:
|
|
description: >
|
|
A reason describing why the cleanup run failed. Its presence alone
|
|
marks the audit event as a failure, so clients must omit this field
|
|
entirely (or send null) when the run succeeded; sending an empty
|
|
string records a failure with no description attached. Reasons
|
|
longer than 400 characters are truncated to 400 with a trailing
|
|
ellipsis rather than rejected.
|
|
type: string
|
|
nullable: true
|
|
required: true
|
|
responses:
|
|
"200":
|
|
description: Cleanup logged successfully
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "#/components/schemas/StatusOK"
|
|
"400":
|
|
$ref: "#/components/responses/BadRequest"
|
|
"401":
|
|
$ref: "#/components/responses/Unauthorized"
|
|
"501":
|
|
$ref: "#/components/responses/NotImplemented"
|
|
/api/v4/ephemeral_mode/purge:
|
|
post:
|
|
tags:
|
|
- ephemeral mode
|
|
summary: Log an ephemeral mode offline purge
|
|
description: >
|
|
Records the outcome of a client-side ephemeral mode offline purge as
|
|
an audit event.
|
|
|
|
__Minimum server version__: 11.10
|
|
|
|
##### Permissions
|
|
|
|
Must be logged in.
|
|
|
|
##### License
|
|
|
|
Requires an Enterprise Advanced license.
|
|
operationId: LogOfflinePurge
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
offline_time_minutes:
|
|
description: >
|
|
The number of minutes the client was offline before the purge.
|
|
Required unless error_reason is provided, since a successful purge
|
|
with no offline time records no evidence of why it ran. If omitted,
|
|
no offline_time_minutes value is recorded on the audit event.
|
|
type: integer
|
|
format: int64
|
|
nullable: true
|
|
purge_at:
|
|
description: >
|
|
The time in milliseconds the purge completed. Always optional; it
|
|
does not satisfy the requirement for offline_time_minutes. If
|
|
omitted, no purge_at value is recorded on the audit event; the
|
|
server-observed time is always recorded separately as server_ts.
|
|
type: integer
|
|
format: int64
|
|
nullable: true
|
|
error_reason:
|
|
description: >
|
|
A reason describing why the offline purge failed. Its presence alone
|
|
marks the audit event as a failure, so clients must omit this field
|
|
entirely (or send null) when the purge succeeded; sending an empty
|
|
string records a failure with no description attached. Reasons
|
|
longer than 400 characters are truncated to 400 with a trailing
|
|
ellipsis rather than rejected.
|
|
type: string
|
|
nullable: true
|
|
required: true
|
|
responses:
|
|
"200":
|
|
description: Offline purge logged successfully
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "#/components/schemas/StatusOK"
|
|
"400":
|
|
$ref: "#/components/responses/BadRequest"
|
|
"401":
|
|
$ref: "#/components/responses/Unauthorized"
|
|
"501":
|
|
$ref: "#/components/responses/NotImplemented"
|
|
/api/v4/ephemeral_mode/wipe:
|
|
post:
|
|
tags:
|
|
- ephemeral mode
|
|
summary: Log an ephemeral mode session wipe
|
|
description: >
|
|
Records a client-side ephemeral mode wipe confirming that a session
|
|
revoked by the server has completed its local wipe. Sent without a
|
|
session, since the session being confirmed is already revoked by the
|
|
time the client can report it.
|
|
|
|
__Minimum server version__: 11.10
|
|
|
|
##### License
|
|
|
|
Requires an Enterprise Advanced license.
|
|
operationId: LogSessionWipe
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
signature:
|
|
description: >
|
|
The `signature` field of the session wipe push notification that
|
|
triggered this wipe, echoed back verbatim. The server verifies it and
|
|
takes the actor, device and ack id of the audit event from its claims.
|
|
Always required, including on failure reports: this endpoint accepts
|
|
unauthenticated requests, so an unattributable audit record is not
|
|
accepted.
|
|
type: string
|
|
wipe_at:
|
|
description: >
|
|
The time in milliseconds the wipe completed. Optional. If omitted, no
|
|
wipe_at value is recorded on the audit event; the server-observed time
|
|
is always recorded separately as server_ts.
|
|
type: integer
|
|
format: int64
|
|
nullable: true
|
|
error_reason:
|
|
description: >
|
|
A reason describing why the session wipe failed. Its presence alone
|
|
marks the audit event as a failure, so clients must omit this field
|
|
entirely (or send null) when the wipe succeeded; sending an empty
|
|
string records a failure with no description attached. Reasons
|
|
longer than 400 characters are truncated to 400 with a trailing
|
|
ellipsis rather than rejected.
|
|
type: string
|
|
nullable: true
|
|
required:
|
|
- signature
|
|
required: true
|
|
responses:
|
|
"200":
|
|
description: Session wipe logged successfully
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "#/components/schemas/StatusOK"
|
|
"400":
|
|
$ref: "#/components/responses/BadRequest"
|
|
"501":
|
|
$ref: "#/components/responses/NotImplemented"
|