sylphx auth legal_documents
Every sylphx auth legal_documents command: its argument, its flags and a run line.
The legal_documents commands of Sylphx Auth, as the CLI spells them: the same
calls as the legal_documents API page, typed for the
shell. Install, sign in and the grammar are on the CLI index.
get
Gets a legal revision, including draft or published state.
NAME — the resource's name; a bare id is enough below the linked
project.
CLI
sylphx auth legal-documents get orgs/acme/projects/shop/legal_documents/legal-documentGET https://api.sylphx.com/v1/orgs/acme/projects/shop/legal_documents/legal-document · scope auth:read · effect read · Request, response and examples
create
Creates an immutable draft revision.
ID — The id segment of the new Resource's name; the server assigns one when omitted.
CLI
sylphx auth legal-documents create --parent orgs/acme/projects/shop --spec.doc-slug … --spec.version … --spec.canonical-text … --spec.document-url … --spec.change-summary …POST https://api.sylphx.com/v1/orgs/acme/projects/shop/legal_documents · scope auth:write · effect write · Request, response and examples
Flags
| Flag | Type | What it does |
|---|---|---|
--parent | string | The parent to create in; defaults to the linked project or the key's scope. |
--meta.labels | key=value | Caller-writable, indexed labels (AIP-122 label rules). Repeat the flag for each value. |
--meta.annotations | key=value | Caller-writable, unindexed annotations. Repeat the flag for each value. |
--meta.display-name | string | Caller-writable human-readable name. |
--spec.doc-slug | string | A stable agreement kind, e.g. terms, privacy, dpa, eula. Required. |
--spec.version | string | An opaque immutable version label, not used for ordering. Required. |
--spec.canonical-text | string | Exact plain UTF-8 text shown to the user. Auth never normalizes it. Required. |
--spec.document-url | string | An external HTTPS reference. Auth's canonical text, not this link, is evidence. Required. |
--spec.change-summary | string | User-facing summary of the changes. Required. |
--spec.major-reconsent-required | bool | Whether previously accepted versions become insufficient. |
--spec.effective-time | timestamp | When a published revision takes effect. Required. |
list
Lists all agreement revisions of the project.
PARENT — optional: the CLI fills it from the linked project or the
key's scope when it is left out.
CLI
sylphx auth legal-documents list orgs/acme/projects/shopGET https://api.sylphx.com/v1/orgs/acme/projects/shop/legal_documents · scope auth:read · effect read · Request, response and examples
Flags
| Flag | Type | What it does |
|---|---|---|
--page-size | int | Maximum number of entries to return. |
--page-token | string | Token from the previous page. |
publish
Publishes an immutable revision with its configured effective time.
NAME — the resource's name; a bare id is enough below the linked
project.
CLI
sylphx auth legal-documents publish orgs/acme/projects/shop/legal_documents/legal-documentPOST https://api.sylphx.com/v1/orgs/acme/projects/shop/legal_documents/legal-document:publish · scope auth:write · effect write · Request, response and examples