@sess.si/sdk 0.1.0-rc.7 → 0.1.0-rc.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +41 -0
  3. package/dist/ask.d.ts +20 -8
  4. package/dist/ask.d.ts.map +1 -1
  5. package/dist/ask.js +43 -8
  6. package/dist/ask.js.map +1 -1
  7. package/dist/cli/verify.d.ts +1 -1
  8. package/dist/cli/verify.d.ts.map +1 -1
  9. package/dist/cli/verify.js +49 -3
  10. package/dist/cli/verify.js.map +1 -1
  11. package/dist/errors.d.ts +18 -0
  12. package/dist/errors.d.ts.map +1 -1
  13. package/dist/errors.js +22 -1
  14. package/dist/errors.js.map +1 -1
  15. package/dist/generated/openapi.d.ts +489 -42
  16. package/dist/generated/openapi.d.ts.map +1 -1
  17. package/dist/internal/decode.d.ts.map +1 -1
  18. package/dist/internal/decode.js +37 -0
  19. package/dist/internal/decode.js.map +1 -1
  20. package/dist/polling.d.ts +4 -3
  21. package/dist/polling.d.ts.map +1 -1
  22. package/dist/polling.js +64 -18
  23. package/dist/polling.js.map +1 -1
  24. package/dist/receipts/index.d.ts +3 -1
  25. package/dist/receipts/index.d.ts.map +1 -1
  26. package/dist/receipts/index.js +2 -1
  27. package/dist/receipts/index.js.map +1 -1
  28. package/dist/receipts/renderers.d.ts +58 -0
  29. package/dist/receipts/renderers.d.ts.map +1 -0
  30. package/dist/receipts/renderers.js +154 -0
  31. package/dist/receipts/renderers.js.map +1 -0
  32. package/dist/receipts/resource.d.ts.map +1 -1
  33. package/dist/receipts/resource.js +27 -0
  34. package/dist/receipts/resource.js.map +1 -1
  35. package/dist/receipts/verify.d.ts +24 -1
  36. package/dist/receipts/verify.d.ts.map +1 -1
  37. package/dist/receipts/verify.js +63 -17
  38. package/dist/receipts/verify.js.map +1 -1
  39. package/dist/transport.d.ts.map +1 -1
  40. package/dist/transport.js +27 -2
  41. package/dist/transport.js.map +1 -1
  42. package/dist/types.d.ts +76 -7
  43. package/dist/types.d.ts.map +1 -1
  44. package/dist/types.js.map +1 -1
  45. package/package.json +1 -1
  46. package/src/ask.ts +63 -16
  47. package/src/cli/verify.ts +61 -3
  48. package/src/errors.ts +31 -0
  49. package/src/generated/openapi.ts +489 -42
  50. package/src/internal/decode.ts +29 -0
  51. package/src/polling.ts +70 -18
  52. package/src/receipts/index.ts +3 -1
  53. package/src/receipts/renderers.ts +220 -0
  54. package/src/receipts/resource.ts +37 -0
  55. package/src/receipts/verify.ts +108 -22
  56. package/src/transport.ts +35 -2
  57. package/src/types.ts +75 -4
@@ -6,7 +6,7 @@ export interface paths {
6
6
  path?: never;
7
7
  cookie?: never;
8
8
  };
9
- /** @description RFC 9728 metadata of the remote MCP resource: the resource, its one authorization server and the one scope (the five Sess tools). Served at the root and with the resource path appended. Hosted MCP only; on the MCP host (mcp.sess.si). */
9
+ /** @description RFC 9728 metadata of the remote MCP resource: the resource, its one authorization server and the one scope (the five Sess tools). Served at the root and with the resource path appended. Hosted MCP only; on the MCP host. */
10
10
  get: operations['protectedResourceMetadata'];
11
11
  put?: never;
12
12
  post?: never;
@@ -23,7 +23,7 @@ export interface paths {
23
23
  path?: never;
24
24
  cookie?: never;
25
25
  };
26
- /** @description RFC 9728 metadata of the remote MCP resource: the resource, its one authorization server and the one scope (the five Sess tools). Served at the root and with the resource path appended. Hosted MCP only; on the MCP host (mcp.sess.si). */
26
+ /** @description RFC 9728 metadata of the remote MCP resource: the resource, its one authorization server and the one scope (the five Sess tools). Served at the root and with the resource path appended. Hosted MCP only; on the MCP host. */
27
27
  get: operations['protectedResourceMetadataForPath'];
28
28
  put?: never;
29
29
  post?: never;
@@ -40,7 +40,7 @@ export interface paths {
40
40
  path?: never;
41
41
  cookie?: never;
42
42
  };
43
- /** @description RFC 8414 metadata: authorization code with S256 PKCE only, public clients only (token_endpoint_auth_method none), client ID metadata documents preferred (client_id_metadata_document_supported) and dynamic registration as compatibility, refresh and revocation, RFC 9207 `iss` in every authorization response. The issuer and the token, registration and revocation endpoints are on the MCP host (mcp.sess.si); the authorization endpoint is the account pages’ consent page (app.sess.si). Hosted MCP only. */
43
+ /** @description RFC 8414 metadata: authorization code with S256 PKCE only, public clients only (token_endpoint_auth_method none), client ID metadata documents preferred (client_id_metadata_document_supported) and dynamic registration as compatibility, refresh and revocation, RFC 9207 `iss` in every authorization response. The issuer and the token, registration and revocation endpoints are on the MCP host; the authorization endpoint is the account pages’ consent page (app.sess.si). Hosted MCP only. */
44
44
  get: operations['authorizationServerMetadata'];
45
45
  put?: never;
46
46
  post?: never;
@@ -111,7 +111,7 @@ export interface paths {
111
111
  };
112
112
  get?: never;
113
113
  put?: never;
114
- /** @description grant_type=authorization_code: code, redirect_uri (as authorized), client_id, code_verifier (S256), resource (optional). grant_type=refresh_token: refresh_token, client_id, scope and resource (optional; never wider). Public clients: no client secret or HTTP authentication. A used code or refresh token presented again revokes every token of its family. Cache-Control: no-store. Body at most 16 KiB. Hosted MCP only; on the MCP host (mcp.sess.si). */
114
+ /** @description grant_type=authorization_code: code, redirect_uri (as authorized), client_id, code_verifier (S256), resource (optional). grant_type=refresh_token: refresh_token, client_id, scope and resource (optional; never wider). Public clients: no client secret or HTTP authentication. A used code or refresh token presented again revokes every token of its family. Cache-Control: no-store. Body at most 16 KiB. Hosted MCP only; on the MCP host. */
115
115
  post: operations['oauthToken'];
116
116
  delete?: never;
117
117
  options?: never;
@@ -128,7 +128,7 @@ export interface paths {
128
128
  };
129
129
  get?: never;
130
130
  put?: never;
131
- /** @description RFC 7591 dynamic registration of a public client (the compatibility path; client ID metadata documents are preferred). Redirect URIs: https, http on a loopback host, or a native app scheme; no fragment or user info. Registration grants nothing: every use needs the person’s consent. At most 10 registrations per client per hour and 500 in total. Hosted MCP only; on the MCP host (mcp.sess.si). */
131
+ /** @description RFC 7591 dynamic registration of a public client (the compatibility path; client ID metadata documents are preferred). Redirect URIs: https, http on a loopback host, or a native app scheme; no fragment or user info. Registration grants nothing: every use needs the person’s consent. At most 10 registrations per client per hour and 500 in total. Hosted MCP only; on the MCP host. */
132
132
  post: operations['oauthRegister'];
133
133
  delete?: never;
134
134
  options?: never;
@@ -145,7 +145,7 @@ export interface paths {
145
145
  };
146
146
  get?: never;
147
147
  put?: never;
148
- /** @description RFC 7009. Form fields: token, client_id (token_type_hint ignored). An access token ends with the API credentials minted under it; a refresh token ends its whole family. An unknown or another client’s token is answered the same (200). Hosted MCP only; on the MCP host (mcp.sess.si). */
148
+ /** @description RFC 7009. Form fields: token, client_id (token_type_hint ignored). An access token ends with the API credentials minted under it; a refresh token ends its whole family. An unknown or another client’s token is answered the same (200). Hosted MCP only; on the MCP host. */
149
149
  post: operations['oauthRevoke'];
150
150
  delete?: never;
151
151
  options?: never;
@@ -590,7 +590,7 @@ export interface paths {
590
590
  };
591
591
  get?: never;
592
592
  put?: never;
593
- /** @description Claims a no-signup trial for the signed-in developer account. Form fields: csrf (the page’s token) and management_credential (the trial’s sess_mg_… credential, in the form body only, never in a URL). Same-origin requests with the session’s CSRF token only; the human link can never claim. A claim records the account as the trial’s owner, once: nothing moves, the trial keeps its deadlines, limits and deletion time, its receipts stay as issued and its management credential keeps working. The account’s API keys can then read (only read) the trial’s Sessions with the owner read routes, each Session until its result_available_until (as with the management credential). Claiming the same trial again from the same account answers as the first claim. */
593
+ /** @description Claims a no-signup trial for the signed-in developer account. Form fields: csrf (the page’s token) and management_credential (the trial’s sess_mg_… credential, in the form body only, never in a URL). Same-origin requests with the session’s CSRF token only; the Sess link can never claim. A claim records the account as the trial’s owner, once: nothing moves, the trial keeps its deadlines, limits and deletion time, its receipts stay as issued and its management credential keeps working. The account’s API keys can then read (only read) the trial’s Sessions with the owner read routes, each Session until its result_available_until (as with the management credential). Claiming the same trial again from the same account answers as the first claim. */
594
594
  post: operations['claimTrial'];
595
595
  delete?: never;
596
596
  options?: never;
@@ -615,6 +615,40 @@ export interface paths {
615
615
  patch?: never;
616
616
  trace?: never;
617
617
  };
618
+ '/app/sessions': {
619
+ parameters: {
620
+ query?: never;
621
+ header?: never;
622
+ path?: never;
623
+ cookie?: never;
624
+ };
625
+ /** @description P2-19: the console page listing the signed-in developer workspace’s Sessions, read only, as metadata: title, Sent (created), Closes at (action_expires_at) and status (open, answered, expired, revoked or closed). Query: status (open, answered or expired; default all), sort (sent or closes; default sent), dir (asc or desc; default desc for sent, asc for closes), after or before (an opaque page key). An unknown or malformed value takes its default. Never a human link, token or answer on the page. Without a live account session: 303 to /app/sign-in. */
626
+ get: operations['sessionsPage'];
627
+ put?: never;
628
+ post?: never;
629
+ delete?: never;
630
+ options?: never;
631
+ head?: never;
632
+ patch?: never;
633
+ trace?: never;
634
+ };
635
+ '/app/sessions/{id}': {
636
+ parameters: {
637
+ query?: never;
638
+ header?: never;
639
+ path?: never;
640
+ cookie?: never;
641
+ };
642
+ /** @description P2-19: one Session of the signed-in developer workspace, read only: its status, Sent and Closes at, its event log as metadata (event, step, action, by, time; never the answer) and, for each accepted answer, its receipt’s event ID and time with a link to the Evidence page for that day while the receipt is kept and not restricted. Another workspace’s Session is the same 404 as an unknown one. */
643
+ get: operations['sessionPage'];
644
+ put?: never;
645
+ post?: never;
646
+ delete?: never;
647
+ options?: never;
648
+ head?: never;
649
+ patch?: never;
650
+ trace?: never;
651
+ };
618
652
  '/app/evidence/export': {
619
653
  parameters: {
620
654
  query?: never;
@@ -641,7 +675,7 @@ export interface paths {
641
675
  };
642
676
  get?: never;
643
677
  put?: never;
644
- /** @description The no-signup trial. Without Authorization: creates a trial workspace and its first interactive Session, and returns the management credential once, in the body. With `Authorization: Bearer <management credential>`: creates a further Session in that trial. Interactive Sessions only (mode interactive); no return channel, webhook or outbound endpoint exists for a trial. Trial limits (published, reversible): human link and action window 1 hour; result readable 24 hours after the action window; at most 3 active Sessions and 10 Sessions per trial within its 24-hour creation window; at most 3 new trials per client and 200 overall per rolling 24 hours. Any other credential, or a management credential that is unknown, expired, revoked or bound to one Session → 404 NOT_FOUND. An Idempotency-Key header is refused (400 INVALID_SCHEMA): the credential and the human link cannot be replayed. */
678
+ /** @description The no-signup trial. Without Authorization: creates a trial workspace and its first interactive Session, and returns the management credential once, in the body. With `Authorization: Bearer <management credential>`: creates a further Session in that trial. Interactive Sessions only (mode interactive); no return channel, webhook or outbound endpoint exists for a trial. Trial limits (published, reversible): human link and action window 1 hour; result readable 24 hours after the action window; at most 3 active Sessions and 10 Sessions per trial within its 24-hour creation window; at most 3 new trials per client and 200 overall per rolling 24 hours. Any other credential, or a management credential that is unknown, expired, revoked or bound to one Session → 404 NOT_FOUND. An Idempotency-Key header is refused (400 INVALID_SCHEMA): the credential and the Sess link cannot be replayed. */
645
679
  post: operations['createTrialSession'];
646
680
  delete?: never;
647
681
  options?: never;
@@ -656,7 +690,7 @@ export interface paths {
656
690
  path?: never;
657
691
  cookie?: never;
658
692
  };
659
- /** @description A trial Session and its accepted responses, read with the trial’s management credential, until result_available_until. Reading never consumes or changes it. A Session of another trial or workspace, an unknown, expired or revoked credential, a human link or an owner key → 404 NOT_FOUND (generic). */
693
+ /** @description A trial Session and its accepted responses, read with the trial’s management credential, until result_available_until. Reading never consumes or changes it. A Session of another trial or workspace, an unknown, expired or revoked credential, a Sess link or an owner key → 404 NOT_FOUND (generic). */
660
694
  get: operations['getTrialSession'];
661
695
  put?: never;
662
696
  post?: never;
@@ -675,7 +709,7 @@ export interface paths {
675
709
  };
676
710
  get?: never;
677
711
  put?: never;
678
- /** @description Creates a display Session (mode display, source.kind data) or an interactive one (mode interactive, source.kind sess_surface; components: SurfaceComponent). An unrecognized component type → 400 UNKNOWN_COMPONENT; a field-schema keyword outside the supported subset → 400 INVALID_SCHEMA. An Idempotency-Key header is refused (400 INVALID_SCHEMA): the human link cannot be replayed (it is stored only as a hash). Retention: the human link expires 720 hours after creation with the deployment owner key and 168 hours with a developer API key (free plan). The Session’s content, accepted results and receipts are purged 720 hours (owner key) or 168 hours (developer API key) after the earlier of its completion and its link’s expiry, and outstanding webhook deliveries are cancelled; afterwards every owner route answers 404 SESSION_NOT_FOUND. A webhook already delivered is not recalled. Advanced: expires_in (seconds from creation, at least 30, at most the plan’s live-link lifetime) sets a shorter human link; the Session’s retention then also ends sooner, because it counts from the earlier of completion and the link’s expiry. The response’s action_expires_at is the stored expiry, the same value GET /v1/sessions/{id} returns. Advanced: invocation_id ties the Session to the run of your registered agent that it serves; the archival core of each receipt it issues then binds that agent (target) and its version. */
712
+ /** @description Creates a display Session (mode display, source.kind data) or an interactive one (mode interactive, source.kind sess_surface; components: SurfaceComponent). An unrecognized component type → 400 UNKNOWN_COMPONENT; a field-schema keyword outside the supported subset → 400 INVALID_SCHEMA. An Idempotency-Key header is refused (400 INVALID_SCHEMA): the Sess link cannot be replayed (it is stored only as a hash). Retention: the Sess link expires 720 hours after creation with the deployment owner key and 168 hours with a developer API key (free plan). The Session’s content, accepted results and receipts are purged 720 hours (owner key) or 168 hours (developer API key) after the earlier of its completion and its link’s expiry, and outstanding webhook deliveries are cancelled; afterwards every owner route answers 404 SESSION_NOT_FOUND. A webhook already delivered is not recalled. Advanced: expires_in (seconds from creation, at least 30, at most the plan’s live-link lifetime) sets a shorter Sess link; the Session’s retention then also ends sooner, because it counts from the earlier of completion and the link’s end. An interactive link of 72000 seconds or less can be extended by the person, at most ten times, up to a fixed horizon (GET /v1/sessions/{id}: action_expires_horizon); its link ends at that horizon, or at the deadline once no extension is left. The response’s action_expires_at is the stored expiry, the same value GET /v1/sessions/{id} returns. Advanced: invocation_id ties the Session to the run of your registered agent that it serves; the archival core of each receipt it issues then binds that agent (target) and its version. */
679
713
  post: operations['createSession'];
680
714
  delete?: never;
681
715
  options?: never;
@@ -690,14 +724,14 @@ export interface paths {
690
724
  path?: never;
691
725
  cookie?: never;
692
726
  };
693
- /** @description The Session. Interactive Sessions return status, the current revision, its response_schema and every accepted response bound to its revision; repeated reads of an unchanged Session are byte-identical. Every Session carries action_expires_at, its human link’s stored expiry; a read never extends it. A developer API key also reads the Sessions of trials its account claimed (read-only), each until that Session’s result_available_until. */
727
+ /** @description The Session. Interactive Sessions return status, the current revision, its response_schema and every accepted response bound to its revision; repeated reads of an unchanged Session are byte-identical. Every Session carries action_expires_at, its Sess link’s stored deadline; a read never extends it. It also carries link_state (live, lapsed or expired, at the time of the read), action_expires_horizon and extensions_used: for an interactive link of 20 hours or less, the person may extend the deadline up to ten times, never past the fixed horizon. A lapsed link accepts no answer but can still be extended: the Session is still open, so keep waiting; revoke the link for a hard end at the deadline. extensions lists every accepted extension (old and new deadline, from lapsed, when; no answer value), in order. The ETag is the owner mutations’ concurrency token (the revision and the Event sequence), not a cache validator: it does not change with link timing. A developer API key also reads the Sessions of trials its account claimed (read-only), each until that Session’s result_available_until. */
694
728
  get: operations['getSession'];
695
729
  put?: never;
696
730
  post?: never;
697
731
  delete?: never;
698
732
  options?: never;
699
733
  head?: never;
700
- /** @description Publishes the next immutable Surface revision of an interactive Session, from responded or active (superseding the unanswered revision). The Session returns to active on the same Session ID and human link; a submission against an older revision is then refused with SESSION_REVISION_CONFLICT. */
734
+ /** @description Publishes the next immutable Surface revision of an interactive Session, from responded or active (superseding the unanswered revision). The Session returns to active on the same Session ID and Sess link; a submission against an older revision is then refused with SESSION_REVISION_CONFLICT. */
701
735
  patch: operations['publishRevision'];
702
736
  trace?: never;
703
737
  };
@@ -725,7 +759,7 @@ export interface paths {
725
759
  path?: never;
726
760
  cookie?: never;
727
761
  };
728
- /** @description Every Event of the Session in sequence order: response.accepted (actor link_holder, the revision it was accepted on, action_id and the typed data), revision.published and session.completed (actor owner). Append-only: Event IDs and sequences never change, and every accepted result stays listed after later revisions and completion. Not paginated in P1 (a Session has a few Events per round). Display Sessions have none. Cache-Control: no-store, no-transform. */
762
+ /** @description Every Event of the Session in sequence order: response.accepted (actor link_holder, the revision it was accepted on, action_id and the typed data), revision.published and session.completed (actor owner). Append-only: Event IDs and sequences never change, and every accepted result stays listed after later revisions and completion. Not paginated in P1 (a Session has a few Events per round). Display Sessions have none. Beside the Events, link_extensions lists every accepted extension of the Sess link (its old and new deadline, whether it was asked for after the deadline, and when; no answer value), in order. Cache-Control: no-store, no-transform. */
729
763
  get: operations['listSessionEvents'];
730
764
  put?: never;
731
765
  post?: never;
@@ -761,7 +795,7 @@ export interface paths {
761
795
  };
762
796
  get?: never;
763
797
  put?: never;
764
- /** @description The human form submission (the human link is the capability; never log it). Accepted only from the page itself: Sec-Fetch-Site same-origin, or without Fetch Metadata an Origin equal to the public origin. The server resolves action_id from the exact stored revision and validates data against its response_schema. Success is a 303 redirect to the same link; refusals are HTML pages whose stable code is in a data-error-code attribute (422 and 409 re-render the form with the safe draft for explicit resubmit). */
798
+ /** @description The human form submission (the Sess link is the capability; never log it). Accepted only from the page itself: Sec-Fetch-Site same-origin, or without Fetch Metadata an Origin equal to the public origin. The server resolves action_id from the exact stored revision and validates data against its response_schema. Success is a 303 redirect to the same link; refusals are HTML pages whose stable code is in a data-error-code attribute (422 and 409 re-render the form with the safe draft for explicit resubmit). */
765
799
  post: operations['submitHumanAction'];
766
800
  delete?: never;
767
801
  options?: never;
@@ -769,6 +803,23 @@ export interface paths {
769
803
  patch?: never;
770
804
  trace?: never;
771
805
  };
806
+ '/s/{token}/extend': {
807
+ parameters: {
808
+ query?: never;
809
+ header?: never;
810
+ path?: never;
811
+ cookie?: never;
812
+ };
813
+ get?: never;
814
+ put?: never;
815
+ /** @description Asks for more time on a Sess link of 20 hours or less (the Sess link is the capability; never log it). It is the answer form’s second submitter, so the body is the form’s own entries without action_id; same-origin only, as for the answer. While the link is live the deadline (action_expires_at) moves to min(horizon, deadline + step); while it is lapsed (past the deadline, before the horizon, extensions left) to min(horizon, now + step), where step = min(original lifetime, 1 hour). At most ten extensions; never past the fixed horizon. A repeated client_event_id is answered as the original and never counted twice. It never accepts an answer, dispatches, completes the Session or signs a receipt, and never stores or logs a submitted value: the values are only used to re-render the same form. */
816
+ post: operations['extendHumanLink'];
817
+ delete?: never;
818
+ options?: never;
819
+ head?: never;
820
+ patch?: never;
821
+ trace?: never;
822
+ };
772
823
  '/s/{token}/keep/challenge': {
773
824
  parameters: {
774
825
  query?: never;
@@ -795,7 +846,7 @@ export interface paths {
795
846
  };
796
847
  get?: never;
797
848
  put?: never;
798
- /** @description P2-13 V3 / P2-11, step 2: the kept-conversation file (DOCS/spec/keep-v1.md), the one bounded, versioned file the person saves — every authorized accepted round of the Session through the snapshot cutoff with its unchanged receipt and bundle (or content unavailable once purged), preservation status (the witness state at snapshot time, with the evidence attached by then), holder status and an inventory. Same request checks as the challenge. With `enrollment`, first enrolls one fresh holder key per receipt of the challenge’s exact batch (or only its final receipt: the disclosed fallback): every proof is checked, then all enrollments and the challenge’s consumption commit atomically; the same request again is an idempotent replay, a different one is refused, a receipt keeps its first holder and a key holds one receipt. Without `enrollment` (key generation or storage failed, or nothing to enrol) the file is exported with every round marked unenrolled: export never depends on enrollment. The file holds no private key, grant secret or human link. Content-Disposition: attachment. */
849
+ /** @description P2-13 V3 / P2-11, step 2: the kept-conversation file (DOCS/spec/keep-v1.md), the one bounded, versioned file the person saves — every authorized accepted round of the Session through the snapshot cutoff with its unchanged receipt and bundle (or content unavailable once purged), preservation status (the witness state at snapshot time, with the evidence attached by then), holder status and an inventory. Same request checks as the challenge. With `enrollment`, first enrolls one fresh holder key per receipt of the challenge’s exact batch (or only its final receipt: the disclosed fallback): every proof is checked, then all enrollments and the challenge’s consumption commit atomically; the same request again is an idempotent replay, a different one is refused, a receipt keeps its first holder and a key holds one receipt. Without `enrollment` (key generation or storage failed, or nothing to enrol) the file is exported with every round marked unenrolled: export never depends on enrollment. The file holds no private key, grant secret or Sess link. Content-Disposition: attachment. */
799
850
  post: operations['keepConversation'];
800
851
  delete?: never;
801
852
  options?: never;
@@ -812,7 +863,7 @@ export interface paths {
812
863
  };
813
864
  get?: never;
814
865
  put?: never;
815
- /** @description P2-15 PR-B, Save to Sess from a human page on another origin than /personal (DOCS/spec/personal-copies-v1.md §7). The human link is the capability; never log it. Sent by the receipt card’s same-origin script once the Save sheet on the personal origin is signed in and has sent its destination binding: Sec-Fetch-Site same-origin (or an Origin equal to the page’s), application/json, at most 65536 bytes, rate limited per link. Records one pending claim bound to the rounds the presented Keep grants authorize now, exactly as Keep reads them (restricted or deleted rounds never included; no client-chosen IDs), their cutoff, a fresh 256-bit transfer secret (stored as its hash), the purpose, the personal origin, the source verifier’s challenge and the destination binding. The claim expires in 5 minutes. Nothing is saved until the sheet redeems it. Headers as every /s/* response. */
866
+ /** @description P2-15 PR-B, Save to Sess from a human page on another origin than /personal (DOCS/spec/personal-copies-v1.md §7). The Sess link is the capability; never log it. Sent by the receipt card’s same-origin script once the Save sheet on the personal origin is signed in and has sent its destination binding: Sec-Fetch-Site same-origin (or an Origin equal to the page’s), application/json, at most 65536 bytes, rate limited per link. Records one pending claim bound to the rounds the presented Keep grants authorize now, exactly as Keep reads them (restricted or deleted rounds never included; no client-chosen IDs), their cutoff, a fresh 256-bit transfer secret (stored as its hash), the purpose, the personal origin, the source verifier’s challenge and the destination binding. The claim expires in 5 minutes. Nothing is saved until the sheet redeems it. Headers as every /s/* response. */
816
867
  post: operations['createSaveClaim'];
817
868
  delete?: never;
818
869
  options?: never;
@@ -827,7 +878,7 @@ export interface paths {
827
878
  path?: never;
828
879
  cookie?: never;
829
880
  };
830
- /** @description The read-only status of a human link, for its waiting page (S2): the current revision and the person’s view of the state, nothing else (no owner data, Event IDs, receipts, responses or Surface content). The human link is the capability; never log it. Nothing is written or consumed. The waiting page’s same-origin script calls it about every 4 s while the page waits, and navigates to the same link (a GET) once the revision or the state differs. A page with a form also calls it, about every 25 s while visible, only to keep its connection in use: it ignores the answer. Headers as every /s/* response: Cache-Control: no-store, Referrer-Policy: no-referrer, X-Robots-Tag: noindex, nofollow, no CORS. */
881
+ /** @description The read-only status of a Sess link, for its waiting page (S2): the current revision and the person’s view of the state, nothing else (no owner data, Event IDs, receipts, responses or Surface content). The Sess link is the capability; never log it. Nothing is written or consumed. The waiting page’s same-origin script calls it about every 4 s while the page waits, and navigates to the same link (a GET) once the revision or the state differs. A page with a form also calls it, about every 25 s while visible, only to keep its connection in use: it ignores the answer. Headers as every /s/* response: Cache-Control: no-store, Referrer-Policy: no-referrer, X-Robots-Tag: noindex, nofollow, no CORS. */
831
882
  get: operations['getHumanStatus'];
832
883
  put?: never;
833
884
  post?: never;
@@ -981,7 +1032,7 @@ export interface paths {
981
1032
  path?: never;
982
1033
  cookie?: never;
983
1034
  };
984
- /** @description The deliberate export of one accepted response as a bundle-v1 disclosure (DOCS/spec/bundle-v1.md): its stored receipt exactly as issued, the complete normalized Surface of the revision it was accepted on, the accepted data, and the current public receipt keys. Never a private key, owner credential or human link. Anyone holding the bundle can verify it (POST /v1/receipts/verify, or offline with trusted keys); share it only with whom you mean to show the decision. Read-only. Cache-Control: no-store, no-transform; Referrer-Policy: no-referrer. */
1035
+ /** @description The deliberate export of one accepted response as a bundle-v1 disclosure (DOCS/spec/bundle-v1.md): its stored receipt exactly as issued, the complete normalized Surface of the revision it was accepted on, the accepted data, and the current public receipt keys. Never a private key, owner credential or Sess link. Anyone holding the bundle can verify it (POST /v1/receipts/verify, or offline with trusted keys); share it only with whom you mean to show the decision. Read-only. Cache-Control: no-store, no-transform; Referrer-Policy: no-referrer. */
985
1036
  get: operations['exportDecisionBundle'];
986
1037
  put?: never;
987
1038
  post?: never;
@@ -1000,7 +1051,7 @@ export interface paths {
1000
1051
  };
1001
1052
  get?: never;
1002
1053
  put?: never;
1003
- /** @description Public, no credential. Verifies a disclosed bundle-v1 against this server's own receipt issuer and published keys (never keys in the bundle) at the current time: the receipt by the receipt-v1 rules, then that the disclosed Surface and input match the receipt hashes. It looks nothing up and stores nothing. The declared signed context is checked only against itself, so context is "unchecked" and application_purpose is "unchecked": check the event, Session and workspace you expect in your own application. A valid result means the issuer accepted this input from someone holding the human link; it never names a person or proves that anything was executed. An invalid bundle is a 200 result with valid false and a reason. Body: application/json, at most 2097152 bytes (413 above); 1 MiB canonical bundle bound (reason oversized). Rate limited per client and in total (429 RATE_LIMITED with Retry-After). An absolute 2-second deadline runs from the request's arrival and covers receiving the body as well as verifying it: an unanswered request then gets 503 SERVICE_UNAVAILABLE with Connection: close and the connection is closed. Cache-Control: no-store, no-transform; Referrer-Policy: no-referrer; CORS only for the product site origins. Never put a bundle or receipt in a URL. */
1054
+ /** @description Public, no credential. Verifies a disclosed bundle-v1 against this server's own receipt issuer and published keys (never keys in the bundle) at the current time: the receipt by the receipt-v1 rules, then that the disclosed Surface and input match the receipt hashes. It looks nothing up and stores nothing. The declared signed context is checked only against itself, so context is "unchecked" and application_purpose is "unchecked": check the event, Session and workspace you expect in your own application. A valid result means the issuer accepted this input from someone holding the Sess link; it never names a person or proves that anything was executed. An invalid bundle is a 200 result with valid false and a reason. Body: application/json, at most 2097152 bytes (413 above); 1 MiB canonical bundle bound (reason oversized). Rate limited per client and in total (429 RATE_LIMITED with Retry-After). An absolute 2-second deadline runs from the request's arrival and covers receiving the body as well as verifying it: an unanswered request then gets 503 SERVICE_UNAVAILABLE with Connection: close and the connection is closed. Cache-Control: no-store, no-transform; Referrer-Policy: no-referrer; CORS only for the product site origins. Never put a bundle or receipt in a URL. */
1004
1055
  post: operations['verifyDecisionBundle'];
1005
1056
  delete?: never;
1006
1057
  options?: never;
@@ -1264,6 +1315,23 @@ export interface paths {
1264
1315
  patch?: never;
1265
1316
  trace?: never;
1266
1317
  };
1318
+ '/.well-known/sess-renderer-identities.json': {
1319
+ parameters: {
1320
+ query?: never;
1321
+ header?: never;
1322
+ path?: never;
1323
+ cookie?: never;
1324
+ };
1325
+ /** @description Decision 0009 Amendment 13: the renderer identities Sess signs receipts under (the values of a receipt’s surface.renderer_version), as one JWS signed with the receipt keys, in the RFC 7515 flattened JSON serialization {protected, payload, signature} (joined with dots they are its compact form). Protected header {alg EdDSA, kid, typ sess-renderer-identities+jwt}; payload the RFC 8785 canonical JSON {sess_renderer_identities: 1, iss: the receipt issuer, seq: the list edition (an integer, higher in every later published edition), iat: when this copy was signed (NumericDate), identities: [{renderer_version, since: the UTC date it was added}]}; the signature covers seq and iat. Order authentic lists by seq, with containment as the cross-check; an older list still proves the identities it contains. Verify it with GET /.well-known/sess-receipt-keys.json (the key its kid names) and the expected issuer; a receipt verifies when its renderer_version is on a list whose signature verifies. The list only grows: an identity is never removed, reordered or reused, so every receipt issued keeps verifying (sess-html-form-1 is always on it). DOCS/spec/receipt-v1.md §10. No credential. 503 SERVICE_UNAVAILABLE while the receipt keys are not configured. Cache-Control: no-store, no-transform. */
1326
+ get: operations['rendererIdentities'];
1327
+ put?: never;
1328
+ post?: never;
1329
+ delete?: never;
1330
+ options?: never;
1331
+ head?: never;
1332
+ patch?: never;
1333
+ trace?: never;
1334
+ };
1267
1335
  '/.well-known/sess-witness-keys.json': {
1268
1336
  parameters: {
1269
1337
  query?: never;
@@ -1394,7 +1462,7 @@ export interface webhooks {
1394
1462
  };
1395
1463
  get?: never;
1396
1464
  put?: never;
1397
- /** @description POSTed to the exact registered target endpoint once per admitted Invocation, through the same egress safeguards as webhooks (HTTPS on port 443, every connection resolved and refused for non-public addresses, no redirects followed, 10-second timeout, response read up to 64 KiB). Headers: content-type, User-Agent Sess-Target/1 and sess-invocation-id (deduplicate on it); never an owner key, human link or caller header. Answer 2xx with TargetDispatchAnswer naming the same invocation_id and target_version: accepted (report later on callback.url with callback.credential), completed with result, or failed. An answer that does not bind, a timeout, a dropped connection or a 5xx leaves the Invocation unknown: it is never treated as success and never sent again. Only a DNS failure or an explicit 429/503 is retried (at most 3 attempts within the Invocation lifetime); 3xx and other 4xx fail it. */
1465
+ /** @description POSTed to the exact registered target endpoint once per admitted Invocation, through the same egress safeguards as webhooks (HTTPS on port 443, every connection resolved and refused for non-public addresses, no redirects followed, 10-second timeout, response read up to 64 KiB). Headers: content-type, User-Agent Sess-Target/1 and sess-invocation-id (deduplicate on it); never an owner key, Sess link or caller header. Answer 2xx with TargetDispatchAnswer naming the same invocation_id and target_version: accepted (report later on callback.url with callback.credential), completed with result, or failed. An answer that does not bind, a timeout, a dropped connection or a 5xx leaves the Invocation unknown: it is never treated as success and never sent again. Only a DNS failure or an explicit 429/503 is retried (at most 3 attempts within the Invocation lifetime); 3xx and other 4xx fail it. */
1398
1466
  post: operations['targetDispatch'];
1399
1467
  delete?: never;
1400
1468
  options?: never;
@@ -1410,6 +1478,11 @@ export interface components {
1410
1478
  | {
1411
1479
  /** @constant */
1412
1480
  mode: 'display';
1481
+ /**
1482
+ * @description The page's heading: a question or a task, about 40 characters; at most 80. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
1483
+ * @example Approve the refund?
1484
+ * @example Pick a delivery date
1485
+ */
1413
1486
  title: string;
1414
1487
  description?: string;
1415
1488
  source: {
@@ -1430,8 +1503,22 @@ export interface components {
1430
1503
  | {
1431
1504
  /** @constant */
1432
1505
  mode: 'interactive';
1506
+ /**
1507
+ * @description The page's heading: a question or a task, about 40 characters; at most 80. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
1508
+ * @example Approve the refund?
1509
+ * @example Pick a delivery date
1510
+ */
1433
1511
  title: string;
1512
+ /**
1513
+ * @description Optional context under the title: what the person decides and why, in one or two plain sentences; at most 280. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
1514
+ * @example The customer was charged twice for order 1042.
1515
+ */
1434
1516
  description?: string;
1517
+ /** @description Advanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Anything else fails with 400 INVALID_SCHEMA. */
1518
+ progress?: {
1519
+ step: number;
1520
+ total: number;
1521
+ };
1435
1522
  source: {
1436
1523
  /** @constant */
1437
1524
  kind: 'sess_surface';
@@ -1443,6 +1530,11 @@ export interface components {
1443
1530
  };
1444
1531
  actions: {
1445
1532
  id: string;
1533
+ /**
1534
+ * @description A button: a verb, 1–3 words; at most 24. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
1535
+ * @example Approve
1536
+ * @example Send refund
1537
+ */
1446
1538
  label: string;
1447
1539
  intent?: 'submit' | 'continue' | 'approve' | 'reject' | 'request_change';
1448
1540
  }[];
@@ -1452,7 +1544,7 @@ export interface components {
1452
1544
  */
1453
1545
  response_policy?: 'first';
1454
1546
  };
1455
- /** @description Advanced. How long the human link stays open, in seconds from creation: at least 30 and at most the plan’s live-link lifetime (Free 604800, Starter and Pro 2592000; the deployment owner key 2592000). Absent: the plan’s lifetime. Out of range → 400 INVALID_SCHEMA, whose message names both bounds. Completion never moves the expiry. */
1547
+ /** @description Advanced. How long the Sess link stays open, in seconds from creation: at least 30 and at most the plan’s live-link lifetime (Free 604800, Starter and Pro 2592000; the deployment owner key 2592000). Absent: the plan’s lifetime. Out of range → 400 INVALID_SCHEMA, whose message names both bounds. Completion never moves the expiry. */
1456
1548
  expires_in?: number;
1457
1549
  /** @description Advanced. The invocation_id of the run your registered agent received, when this Session serves that run. Sess then records the agent and its version with every receipt it keeps for this Session. The run must be in your workspace and still open: an unknown run → 422 VALIDATION_FAILED (reason unknown_invocation); a run that has ended → 409 INVOCATION_TERMINAL. Absent: the Session is not tied to a run. */
1458
1550
  invocation_id?: string;
@@ -1461,14 +1553,33 @@ export interface components {
1461
1553
  id: string;
1462
1554
  revision: number;
1463
1555
  human_url: string;
1464
- /** @description When the Session’s human link expires: an RFC 3339 UTC instant with milliseconds. From this instant the link no longer opens and accepts no response. Fixed when the Session is created and never extended by a read; never null. A link revoked by the operator stops earlier; this field does not report revocation. */
1556
+ /** @description The Sess link’s current deadline for answers: an RFC 3339 UTC instant with milliseconds. From this instant the link no longer opens and accepts no response. Set when the Session is created and never extended by a read; never null. For an interactive link of 20 hours or less the person may move it forward by asking for more time, never past action_expires_horizon (see link_state). A link revoked by the operator stops earlier; this field does not report revocation. */
1465
1557
  action_expires_at: string;
1466
1558
  };
1467
1559
  SessionResponse: {
1468
1560
  id: string;
1469
1561
  revision: number;
1470
- /** @description When the Session’s human link expires: an RFC 3339 UTC instant with milliseconds. From this instant the link no longer opens and accepts no response. Fixed when the Session is created and never extended by a read; never null. A link revoked by the operator stops earlier; this field does not report revocation. */
1562
+ /** @description The Sess link’s current deadline for answers: an RFC 3339 UTC instant with milliseconds. From this instant the link no longer opens and accepts no response. Set when the Session is created and never extended by a read; never null. For an interactive link of 20 hours or less the person may move it forward by asking for more time, never past action_expires_horizon (see link_state). A link revoked by the operator stops earlier; this field does not report revocation. */
1471
1563
  action_expires_at: string;
1564
+ /** @description For an interactive Sess link of 20 hours or less (created with expires_in of 72000 or less, or a trial): the fixed instant after which the link can never be extended or reopened, set when the Session is created: creation + the original lifetime + 10 × min(original lifetime, 1 hour). It never moves. null for a link longer than 20 hours, a display Session, or a Session created before link extensions existed: their links end at action_expires_at. */
1565
+ action_expires_horizon: string | null;
1566
+ /** @description How many times the person extended the link (at most 10). Each extension moves action_expires_at forward by min(original lifetime, 1 hour), never past action_expires_horizon. Always 0 when action_expires_horizon is null. */
1567
+ extensions_used: number;
1568
+ /** @description The Sess link’s state at the time of this read. live: it opens and accepts answers (before action_expires_at). lapsed: past action_expires_at, but the person can still ask for more time until action_expires_horizon; it accepts no answer and does not open, and the Session is still open for your agent: keep waiting. expired: it will never accept an answer (at the horizon, once the deadline passes with no extensions left, on revocation, or after the deadline of a completed Session). Revoke the link when you need a hard end at the deadline. An answer accepted while live stays the result. */
1569
+ link_state: 'live' | 'lapsed' | 'expired';
1570
+ /** @description Every accepted extension of the Sess link, in order: at most ten, empty when none (always empty when action_expires_horizon is null). Recorded atomically with each extension; a repeated request is never recorded twice. No answer or field value is recorded. */
1571
+ extensions: {
1572
+ /** @description Its number, 1 to 10, in order. */
1573
+ number: number;
1574
+ /** @description The deadline (action_expires_at) before this extension. */
1575
+ previous_action_expires_at: string;
1576
+ /** @description The deadline this extension set. */
1577
+ action_expires_at: string;
1578
+ /** @description True when the person asked after the deadline (lapsed): the new deadline is counted from that moment; false when asked in time: it is counted from the old deadline. */
1579
+ from_lapsed: boolean;
1580
+ /** @description When the extension was accepted. */
1581
+ extended_at: string;
1582
+ }[];
1472
1583
  interaction: {
1473
1584
  /** @constant */
1474
1585
  mode: 'display';
@@ -1495,13 +1606,37 @@ export interface components {
1495
1606
  status: 'active' | 'responded' | 'completed';
1496
1607
  /** @description The current Surface revision. */
1497
1608
  revision: number;
1498
- /** @description When the Session’s human link expires: an RFC 3339 UTC instant with milliseconds. From this instant the link no longer opens and accepts no response. Fixed when the Session is created and never extended by a read; never null. A link revoked by the operator stops earlier; this field does not report revocation. */
1609
+ /** @description The Sess link’s current deadline for answers: an RFC 3339 UTC instant with milliseconds. From this instant the link no longer opens and accepts no response. Set when the Session is created and never extended by a read; never null. For an interactive link of 20 hours or less the person may move it forward by asking for more time, never past action_expires_horizon (see link_state). A link revoked by the operator stops earlier; this field does not report revocation. */
1499
1610
  action_expires_at: string;
1611
+ /** @description For an interactive Sess link of 20 hours or less (created with expires_in of 72000 or less, or a trial): the fixed instant after which the link can never be extended or reopened, set when the Session is created: creation + the original lifetime + 10 × min(original lifetime, 1 hour). It never moves. null for a link longer than 20 hours, a display Session, or a Session created before link extensions existed: their links end at action_expires_at. */
1612
+ action_expires_horizon: string | null;
1613
+ /** @description How many times the person extended the link (at most 10). Each extension moves action_expires_at forward by min(original lifetime, 1 hour), never past action_expires_horizon. Always 0 when action_expires_horizon is null. */
1614
+ extensions_used: number;
1615
+ /** @description The Sess link’s state at the time of this read. live: it opens and accepts answers (before action_expires_at). lapsed: past action_expires_at, but the person can still ask for more time until action_expires_horizon; it accepts no answer and does not open, and the Session is still open for your agent: keep waiting. expired: it will never accept an answer (at the horizon, once the deadline passes with no extensions left, on revocation, or after the deadline of a completed Session). Revoke the link when you need a hard end at the deadline. An answer accepted while live stays the result. */
1616
+ link_state: 'live' | 'lapsed' | 'expired';
1617
+ /** @description Every accepted extension of the Sess link, in order: at most ten, empty when none (always empty when action_expires_horizon is null). Recorded atomically with each extension; a repeated request is never recorded twice. No answer or field value is recorded. */
1618
+ extensions: {
1619
+ /** @description Its number, 1 to 10, in order. */
1620
+ number: number;
1621
+ /** @description The deadline (action_expires_at) before this extension. */
1622
+ previous_action_expires_at: string;
1623
+ /** @description The deadline this extension set. */
1624
+ action_expires_at: string;
1625
+ /** @description True when the person asked after the deadline (lapsed): the new deadline is counted from that moment; false when asked in time: it is counted from the old deadline. */
1626
+ from_lapsed: boolean;
1627
+ /** @description When the extension was accepted. */
1628
+ extended_at: string;
1629
+ }[];
1500
1630
  interaction: {
1501
1631
  /** @constant */
1502
1632
  mode: 'interactive';
1503
1633
  title: string;
1504
1634
  description?: string;
1635
+ /** @description Advanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Anything else fails with 400 INVALID_SCHEMA. */
1636
+ progress?: {
1637
+ step: number;
1638
+ total: number;
1639
+ };
1505
1640
  source: {
1506
1641
  /** @constant */
1507
1642
  kind: 'sess_surface';
@@ -1576,7 +1711,7 @@ export interface components {
1576
1711
  };
1577
1712
  /** @description ISO 8601 UTC time of acceptance. */
1578
1713
  accepted_at: string;
1579
- /** @description The signed decision receipt: a compact JWS (EdDSA/Ed25519, typ sess-receipt+jwt, kid) over the RFC 8785 canonical claims, verifiable with GET /.well-known/sess-receipt-keys.json. Issued once in the acceptance transaction and never re-signed. Its exp is at least 720 hours after acceptance and, for an owner-key Session that is purged automatically, no earlier than the Session’s latest possible purge (its human link’s expiry plus its retention after it ends). null only for responses accepted before receipts existed. */
1714
+ /** @description The signed decision receipt: a compact JWS (EdDSA/Ed25519, typ sess-receipt+jwt, kid) over the RFC 8785 canonical claims, verifiable with GET /.well-known/sess-receipt-keys.json. Issued once in the acceptance transaction and never re-signed. Its exp is at least 720 hours after acceptance and, for an owner-key Session that is purged automatically, no earlier than the Session’s latest possible purge (its Sess link’s expiry plus its retention after it ends). null only for responses accepted before receipts existed. */
1580
1715
  receipt: string | null;
1581
1716
  }[];
1582
1717
  };
@@ -1588,6 +1723,11 @@ export interface components {
1588
1723
  mode: 'interactive';
1589
1724
  title: string;
1590
1725
  description?: string;
1726
+ /** @description Advanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Anything else fails with 400 INVALID_SCHEMA. */
1727
+ progress?: {
1728
+ step: number;
1729
+ total: number;
1730
+ };
1591
1731
  source: {
1592
1732
  /** @constant */
1593
1733
  kind: 'sess_surface';
@@ -1693,9 +1833,22 @@ export interface components {
1693
1833
  };
1694
1834
  /** @description ISO 8601 UTC time the Event was recorded. */
1695
1835
  created_at: string;
1696
- /** @description The signed decision receipt: a compact JWS (EdDSA/Ed25519, typ sess-receipt+jwt, kid) over the RFC 8785 canonical claims, verifiable with GET /.well-known/sess-receipt-keys.json. Issued once in the acceptance transaction and never re-signed. Its exp is at least 720 hours after acceptance and, for an owner-key Session that is purged automatically, no earlier than the Session’s latest possible purge (its human link’s expiry plus its retention after it ends). null only for responses accepted before receipts existed. */
1836
+ /** @description The signed decision receipt: a compact JWS (EdDSA/Ed25519, typ sess-receipt+jwt, kid) over the RFC 8785 canonical claims, verifiable with GET /.well-known/sess-receipt-keys.json. Issued once in the acceptance transaction and never re-signed. Its exp is at least 720 hours after acceptance and, for an owner-key Session that is purged automatically, no earlier than the Session’s latest possible purge (its Sess link’s expiry plus its retention after it ends). null only for responses accepted before receipts existed. */
1697
1837
  receipt?: string | null;
1698
1838
  }[];
1839
+ /** @description Decision 0009 Amendment 10: every accepted extension of the Sess link, in order (the same records as the Session read’s extensions). Listed beside the Events, not as an Event type, so readers of the Event types above are unaffected. Present only where the deployment has enabled link extensions. */
1840
+ link_extensions?: {
1841
+ /** @description Its number, 1 to 10, in order. */
1842
+ number: number;
1843
+ /** @description The deadline (action_expires_at) before this extension. */
1844
+ previous_action_expires_at: string;
1845
+ /** @description The deadline this extension set. */
1846
+ action_expires_at: string;
1847
+ /** @description True when the person asked after the deadline (lapsed): the new deadline is counted from that moment; false when asked in time: it is counted from the old deadline. */
1848
+ from_lapsed: boolean;
1849
+ /** @description When the extension was accepted. */
1850
+ extended_at: string;
1851
+ }[];
1699
1852
  };
1700
1853
  ReceiptKeysResponse: {
1701
1854
  /** @description The active signing key and every retained verification key (rotation overlap). A receipt verifies with the key whose kid its protected header names; there is no fallback key. */
@@ -1733,7 +1886,7 @@ export interface components {
1733
1886
  valid_to: string | null;
1734
1887
  }[];
1735
1888
  };
1736
- /** @description A deliberate disclosure of one accepted decision: the receipt, the accepted record and the issuer's public keys. Never a private key, owner credential or human link. At most 1 MiB canonical, depth 32, 1000 items per array and members per object, 100000 values. */
1889
+ /** @description A deliberate disclosure of one accepted decision: the receipt, the accepted record and the issuer’s public keys. Never a private key, owner credential or Sess link. At most 1 MiB canonical, depth 32, 1000 items per array and members per object, 100000 values. */
1737
1890
  DecisionBundle: {
1738
1891
  /** @constant */
1739
1892
  type: 'sess.decision-bundle';
@@ -1984,6 +2137,8 @@ export interface components {
1984
2137
  KeepRequest: {
1985
2138
  /** @description The Keep grant secrets this browser holds for this link: each the 32-byte secret whose domain-separated SHA-256 was the client_event_id of a round it submitted (`kg-` + hash). A round is authorized only by its own grant. Sent in the body only, never in a URL. */
1986
2139
  grants: string[];
2140
+ /** @description S-04: `pdf` answers the same kept conversation as a receipt PDF (application/pdf; PDF/A-3b and PDF/UA-1, the exact file embedded unchanged as its one associated file), named "Sess receipt – <title> – <d Mon yyyy>.pdf". A file outside the PDF profile is answered as the JSON instead, whole. Default `json`: the file itself, unchanged. */
2141
+ format?: 'json' | 'pdf';
1987
2142
  enrollment?: {
1988
2143
  challenge_id: string;
1989
2144
  /** @description Exactly the challenge's batch in order, or only its final receipt (the disclosed fallback). One distinct key per receipt. */
@@ -2003,7 +2158,7 @@ export interface components {
2003
2158
  }[];
2004
2159
  };
2005
2160
  };
2006
- /** @description The kept conversation (DOCS/spec/keep-v1.md): every authorized accepted round of the Session through the snapshot cutoff, each with its unchanged receipt-v1, its bundle-v1 while the content is retained (else unavailable, never reconstructed), its preservation status and holder status, plus an inventory. No private key, grant secret or human link. Each extracted bundle verifies with the unchanged bundle-v1 verifier. */
2161
+ /** @description The kept conversation (DOCS/spec/keep-v1.md): every authorized accepted round of the Session through the snapshot cutoff, each with its unchanged receipt-v1, its bundle-v1 while the content is retained (else unavailable, never reconstructed), its preservation status and holder status, plus an inventory. No private key, grant secret or Sess link. Each extracted bundle verifies with the unchanged bundle-v1 verifier. */
2007
2162
  KeptConversation: {
2008
2163
  /** @constant */
2009
2164
  type: 'sess.kept-conversation';
@@ -2041,7 +2196,7 @@ export interface components {
2041
2196
  | {
2042
2197
  /** @constant */
2043
2198
  status: 'included';
2044
- /** @description A deliberate disclosure of one accepted decision: the receipt, the accepted record and the issuer's public keys. Never a private key, owner credential or human link. At most 1 MiB canonical, depth 32, 1000 items per array and members per object, 100000 values. */
2199
+ /** @description A deliberate disclosure of one accepted decision: the receipt, the accepted record and the issuer’s public keys. Never a private key, owner credential or Sess link. At most 1 MiB canonical, depth 32, 1000 items per array and members per object, 100000 values. */
2045
2200
  bundle: {
2046
2201
  /** @constant */
2047
2202
  type: 'sess.decision-bundle';
@@ -2326,8 +2481,22 @@ export interface components {
2326
2481
  interaction: {
2327
2482
  /** @constant */
2328
2483
  mode: 'interactive';
2484
+ /**
2485
+ * @description The page's heading: a question or a task, about 40 characters; at most 80. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
2486
+ * @example Approve the refund?
2487
+ * @example Pick a delivery date
2488
+ */
2329
2489
  title: string;
2490
+ /**
2491
+ * @description Optional context under the title: what the person decides and why, in one or two plain sentences; at most 280. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
2492
+ * @example The customer was charged twice for order 1042.
2493
+ */
2330
2494
  description?: string;
2495
+ /** @description Advanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Anything else fails with 400 INVALID_SCHEMA. */
2496
+ progress?: {
2497
+ step: number;
2498
+ total: number;
2499
+ };
2331
2500
  source: {
2332
2501
  /** @constant */
2333
2502
  kind: 'sess_surface';
@@ -2339,6 +2508,11 @@ export interface components {
2339
2508
  };
2340
2509
  actions: {
2341
2510
  id: string;
2511
+ /**
2512
+ * @description A button: a verb, 1–3 words; at most 24. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
2513
+ * @example Approve
2514
+ * @example Send refund
2515
+ */
2342
2516
  label: string;
2343
2517
  intent?: 'submit' | 'continue' | 'approve' | 'reject' | 'request_change';
2344
2518
  }[];
@@ -2353,16 +2527,28 @@ export interface components {
2353
2527
  | {
2354
2528
  /** @constant */
2355
2529
  type: 'heading';
2530
+ /**
2531
+ * @description A section heading: a few words; at most 60. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
2532
+ * @example Order details
2533
+ */
2356
2534
  text: string;
2357
2535
  }
2358
2536
  | {
2359
2537
  /** @constant */
2360
2538
  type: 'text';
2539
+ /**
2540
+ * @description A paragraph of plain text (never markup): what the person needs to know; at most 4000. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
2541
+ * @example The refund goes back to the card used for the order.
2542
+ */
2361
2543
  text: string;
2362
2544
  }
2363
2545
  | {
2364
2546
  /** @constant */
2365
2547
  type: 'record';
2548
+ /**
2549
+ * @description Optional caption above the record: a few words; at most 200. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
2550
+ * @example Order 1042
2551
+ */
2366
2552
  label?: string;
2367
2553
  fields: {
2368
2554
  [key: string]: string | number | boolean | null;
@@ -2372,7 +2558,15 @@ export interface components {
2372
2558
  /** @constant */
2373
2559
  type: 'field';
2374
2560
  name: string;
2561
+ /**
2562
+ * @description What the field asks for: short, a few words; at most 60. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
2563
+ * @example Refund amount
2564
+ */
2375
2565
  label: string;
2566
+ /**
2567
+ * @description Optional help under the label: one hint; at most 160. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
2568
+ * @example Leave it as is to refund the full amount.
2569
+ */
2376
2570
  description?: string;
2377
2571
  required?: boolean;
2378
2572
  /** @description A string field rendered as a multi-line text area. */
@@ -2395,6 +2589,12 @@ export interface components {
2395
2589
  } & {
2396
2590
  [key: string]: string;
2397
2591
  };
2592
+ HumanExtensionForm: {
2593
+ client_event_id: string;
2594
+ surface_revision: string;
2595
+ } & {
2596
+ [key: string]: string;
2597
+ };
2398
2598
  Error: {
2399
2599
  error: {
2400
2600
  code:
@@ -2432,10 +2632,17 @@ export interface components {
2432
2632
  | 'EVIDENCE_RESTRICTED'
2433
2633
  | 'EVIDENCE_DELETED'
2434
2634
  | 'CUSTODY_HOLD_ACTIVE';
2635
+ /** @description Plain words for people; clients read code, field, limit and length, never this text. For a value over its length limit it names the value, its length and the limit, and says how to fix it: "Shorten it to at most <limit> characters." */
2435
2636
  message: string;
2436
2637
  request_id: string;
2437
2638
  /** @description A stable machine-readable refinement of some codes (P1 A4 webhook errors; P2 target, admission and limit errors). */
2438
2639
  reason?: string;
2640
+ /** @description INVALID_SCHEMA for a value over its length limit only (Decision 0009 Amendment 12): a JSON pointer to that value in the request body, for example /interaction/title (for a record key, the pointer names that key). Other schema errors carry no field, limit or length. */
2641
+ field?: string;
2642
+ /** @description With field: the most the value may have, in Unicode code points. Interactive Surface: title 80, description 280, heading 60, text 4,000, record caption 200, record key 40, record string value 200, field label 60, field description 160, option label 60, action label 24. Display Session: title 80, description 4,000. */
2643
+ limit?: number;
2644
+ /** @description With field: the value’s length in Unicode code points. */
2645
+ length?: number;
2439
2646
  };
2440
2647
  };
2441
2648
  HealthOk: {
@@ -2460,8 +2667,22 @@ export interface components {
2460
2667
  interaction: {
2461
2668
  /** @constant */
2462
2669
  mode: 'interactive';
2670
+ /**
2671
+ * @description The page's heading: a question or a task, about 40 characters; at most 80. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
2672
+ * @example Approve the refund?
2673
+ * @example Pick a delivery date
2674
+ */
2463
2675
  title: string;
2676
+ /**
2677
+ * @description Optional context under the title: what the person decides and why, in one or two plain sentences; at most 280. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
2678
+ * @example The customer was charged twice for order 1042.
2679
+ */
2464
2680
  description?: string;
2681
+ /** @description Advanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Anything else fails with 400 INVALID_SCHEMA. */
2682
+ progress?: {
2683
+ step: number;
2684
+ total: number;
2685
+ };
2465
2686
  source: {
2466
2687
  /** @constant */
2467
2688
  kind: 'sess_surface';
@@ -2473,6 +2694,11 @@ export interface components {
2473
2694
  };
2474
2695
  actions: {
2475
2696
  id: string;
2697
+ /**
2698
+ * @description A button: a verb, 1–3 words; at most 24. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
2699
+ * @example Approve
2700
+ * @example Send refund
2701
+ */
2476
2702
  label: string;
2477
2703
  intent?: 'submit' | 'continue' | 'approve' | 'reject' | 'request_change';
2478
2704
  }[];
@@ -2486,13 +2712,13 @@ export interface components {
2486
2712
  TrialCreateSessionResponse: {
2487
2713
  id: string;
2488
2714
  revision: number;
2489
- /** @description The human link (a capability): share it only with the responder. */
2715
+ /** @description The Sess link (a capability): share it only with the responder. */
2490
2716
  human_url: string;
2491
2717
  /** @description The trial workspace this Session belongs to. */
2492
2718
  workspace_id: string;
2493
2719
  /** @description Returned once, only when this request created the trial (no Authorization header). It reads this trial’s results and creates further Sessions in it; it is never retrievable again. Keep it secret; never put it in a URL. */
2494
2720
  management_credential?: string;
2495
- /** @description After this instant the human link accepts no response. */
2721
+ /** @description After this instant the Sess link accepts no response. */
2496
2722
  action_expires_at: string;
2497
2723
  /** @description Until this instant the result can be read with the management credential. */
2498
2724
  result_available_until: string;
@@ -2504,11 +2730,35 @@ export interface components {
2504
2730
  status: 'active' | 'responded' | 'completed';
2505
2731
  /** @description The current Surface revision. */
2506
2732
  revision: number;
2733
+ /** @description For an interactive Sess link of 20 hours or less (created with expires_in of 72000 or less, or a trial): the fixed instant after which the link can never be extended or reopened, set when the Session is created: creation + the original lifetime + 10 × min(original lifetime, 1 hour). It never moves. null for a link longer than 20 hours, a display Session, or a Session created before link extensions existed: their links end at action_expires_at. */
2734
+ action_expires_horizon: string | null;
2735
+ /** @description How many times the person extended the link (at most 10). Each extension moves action_expires_at forward by min(original lifetime, 1 hour), never past action_expires_horizon. Always 0 when action_expires_horizon is null. */
2736
+ extensions_used: number;
2737
+ /** @description The Sess link’s state at the time of this read. live: it opens and accepts answers (before action_expires_at). lapsed: past action_expires_at, but the person can still ask for more time until action_expires_horizon; it accepts no answer and does not open, and the Session is still open for your agent: keep waiting. expired: it will never accept an answer (at the horizon, once the deadline passes with no extensions left, on revocation, or after the deadline of a completed Session). Revoke the link when you need a hard end at the deadline. An answer accepted while live stays the result. */
2738
+ link_state: 'live' | 'lapsed' | 'expired';
2739
+ /** @description Every accepted extension of the Sess link, in order: at most ten, empty when none (always empty when action_expires_horizon is null). Recorded atomically with each extension; a repeated request is never recorded twice. No answer or field value is recorded. */
2740
+ extensions: {
2741
+ /** @description Its number, 1 to 10, in order. */
2742
+ number: number;
2743
+ /** @description The deadline (action_expires_at) before this extension. */
2744
+ previous_action_expires_at: string;
2745
+ /** @description The deadline this extension set. */
2746
+ action_expires_at: string;
2747
+ /** @description True when the person asked after the deadline (lapsed): the new deadline is counted from that moment; false when asked in time: it is counted from the old deadline. */
2748
+ from_lapsed: boolean;
2749
+ /** @description When the extension was accepted. */
2750
+ extended_at: string;
2751
+ }[];
2507
2752
  interaction: {
2508
2753
  /** @constant */
2509
2754
  mode: 'interactive';
2510
2755
  title: string;
2511
2756
  description?: string;
2757
+ /** @description Advanced. Optional position in a sequence of questions: integers with 1 ≤ step ≤ total ≤ 20. The person sees it as a small counter ("1/2"). Anything else fails with 400 INVALID_SCHEMA. */
2758
+ progress?: {
2759
+ step: number;
2760
+ total: number;
2761
+ };
2512
2762
  source: {
2513
2763
  /** @constant */
2514
2764
  kind: 'sess_surface';
@@ -2583,12 +2833,12 @@ export interface components {
2583
2833
  };
2584
2834
  /** @description ISO 8601 UTC time of acceptance. */
2585
2835
  accepted_at: string;
2586
- /** @description The signed decision receipt: a compact JWS (EdDSA/Ed25519, typ sess-receipt+jwt, kid) over the RFC 8785 canonical claims, verifiable with GET /.well-known/sess-receipt-keys.json. Issued once in the acceptance transaction and never re-signed. Its exp is at least 720 hours after acceptance and, for an owner-key Session that is purged automatically, no earlier than the Session’s latest possible purge (its human link’s expiry plus its retention after it ends). null only for responses accepted before receipts existed. */
2836
+ /** @description The signed decision receipt: a compact JWS (EdDSA/Ed25519, typ sess-receipt+jwt, kid) over the RFC 8785 canonical claims, verifiable with GET /.well-known/sess-receipt-keys.json. Issued once in the acceptance transaction and never re-signed. Its exp is at least 720 hours after acceptance and, for an owner-key Session that is purged automatically, no earlier than the Session’s latest possible purge (its Sess link’s expiry plus its retention after it ends). null only for responses accepted before receipts existed. */
2587
2837
  receipt: string | null;
2588
2838
  }[];
2589
2839
  trial: {
2590
2840
  workspace_id: string;
2591
- /** @description After this instant the human link accepts no response. */
2841
+ /** @description After this instant the Sess link accepts no response. */
2592
2842
  action_expires_at: string;
2593
2843
  /** @description Until this instant this result remains readable. */
2594
2844
  result_available_until: string;
@@ -2681,7 +2931,7 @@ export interface components {
2681
2931
  nonce: string;
2682
2932
  };
2683
2933
  SaveDirectRequest: {
2684
- /** @description The human link token of the page on this same origin (read from its path; sent only in this body, never in a URL). */
2934
+ /** @description The Sess link token of the page on this same origin (read from its path; sent only in this body, never in a URL). */
2685
2935
  link: string;
2686
2936
  /** @description The Keep grant secrets this browser holds for this link: each the 32-byte secret whose domain-separated SHA-256 was the client_event_id of a round it submitted (`kg-` + hash). A round is authorized only by its own grant. Sent in the body only, never in a URL. */
2687
2937
  grants: string[];
@@ -2726,7 +2976,7 @@ export interface components {
2726
2976
  status: 'removed';
2727
2977
  };
2728
2978
  ProtectedResourceMetadata: {
2729
- /** @description The MCP resource (RFC 8707), e.g. https://mcp.sess.si/mcp. */
2979
+ /** @description The MCP resource (RFC 8707): the deployment’s MCP endpoint, the /mcp path on its MCP host. */
2730
2980
  resource: string;
2731
2981
  authorization_servers: string[];
2732
2982
  scopes_supported: 'sess:interact'[];
@@ -2822,7 +3072,7 @@ export interface components {
2822
3072
  };
2823
3073
  /** @description Default true. */
2824
3074
  enabled?: boolean;
2825
- /** @description Advanced. The human link lifetime, in seconds, the target’s agent is asked to give each Session it creates for a run: at least 30 and at most the workspace plan’s live-link lifetime (Free 604800, Starter and Pro 2592000; the deployment owner key 2592000); out of range → 400 INVALID_SCHEMA, whose message names both bounds. Advisory: Sess does not create the target’s Sessions. It is copied into each admitted run and sent in the dispatch message as limits.expires_in; an agent that sets its own expires_in, calls the API directly or uses an SDK that does not apply it is not governed by it, and the Session’s create checks the value against the creating key’s plan again. Not part of the versioned binding: changing it changes no version and leaves grants and admitted runs as they are. */
3075
+ /** @description Advanced. The Sess link lifetime, in seconds, the target’s agent is asked to give each Session it creates for a run: at least 30 and at most the workspace plan’s live-link lifetime (Free 604800, Starter and Pro 2592000; the deployment owner key 2592000); out of range → 400 INVALID_SCHEMA, whose message names both bounds. Advisory: Sess does not create the target’s Sessions. It is copied into each admitted run and sent in the dispatch message as limits.expires_in; an agent that sets its own expires_in, calls the API directly or uses an SDK that does not apply it is not governed by it, and the Session’s create checks the value against the creating key’s plan again. Not part of the versioned binding: changing it changes no version and leaves grants and admitted runs as they are. */
2826
3076
  default_expires_in?: number;
2827
3077
  };
2828
3078
  TargetUpdateRequest: {
@@ -4331,7 +4581,7 @@ export interface operations {
4331
4581
  'application/json': components['schemas']['PersonalCopiesResponse'];
4332
4582
  };
4333
4583
  };
4334
- /** @description UNAUTHORIZED: no live personal session (a developer session, owner key or human link never counts). */
4584
+ /** @description UNAUTHORIZED: no live personal session (a developer session, owner key or Sess link never counts). */
4335
4585
  401: {
4336
4586
  headers: {
4337
4587
  [name: string]: unknown;
@@ -4393,7 +4643,7 @@ export interface operations {
4393
4643
  'application/json': components['schemas']['Error'];
4394
4644
  };
4395
4645
  };
4396
- /** @description UNAUTHORIZED: no live personal session (a developer session, owner key or human link never counts). */
4646
+ /** @description UNAUTHORIZED: no live personal session (a developer session, owner key or Sess link never counts). */
4397
4647
  401: {
4398
4648
  headers: {
4399
4649
  [name: string]: unknown;
@@ -4491,7 +4741,7 @@ export interface operations {
4491
4741
  'application/json': components['schemas']['Error'];
4492
4742
  };
4493
4743
  };
4494
- /** @description UNAUTHORIZED: no live personal session (a developer session, owner key or human link never counts). */
4744
+ /** @description UNAUTHORIZED: no live personal session (a developer session, owner key or Sess link never counts). */
4495
4745
  401: {
4496
4746
  headers: {
4497
4747
  [name: string]: unknown;
@@ -5351,6 +5601,80 @@ export interface operations {
5351
5601
  };
5352
5602
  };
5353
5603
  };
5604
+ sessionsPage: {
5605
+ parameters: {
5606
+ query?: never;
5607
+ header?: never;
5608
+ path?: never;
5609
+ cookie?: never;
5610
+ };
5611
+ requestBody?: never;
5612
+ responses: {
5613
+ /** @description The Sessions page. */
5614
+ 200: {
5615
+ headers: {
5616
+ [name: string]: unknown;
5617
+ };
5618
+ content: {
5619
+ 'text/html': unknown;
5620
+ };
5621
+ };
5622
+ /** @description To /app/sign-in. */
5623
+ 303: {
5624
+ headers: {
5625
+ [name: string]: unknown;
5626
+ };
5627
+ content?: never;
5628
+ };
5629
+ /** @description The Sessions could not be read. */
5630
+ 503: {
5631
+ headers: {
5632
+ [name: string]: unknown;
5633
+ };
5634
+ content: {
5635
+ 'text/html': unknown;
5636
+ };
5637
+ };
5638
+ };
5639
+ };
5640
+ sessionPage: {
5641
+ parameters: {
5642
+ query?: never;
5643
+ header?: never;
5644
+ path: {
5645
+ id: string;
5646
+ };
5647
+ cookie?: never;
5648
+ };
5649
+ requestBody?: never;
5650
+ responses: {
5651
+ /** @description The Session page. */
5652
+ 200: {
5653
+ headers: {
5654
+ [name: string]: unknown;
5655
+ };
5656
+ content: {
5657
+ 'text/html': unknown;
5658
+ };
5659
+ };
5660
+ /** @description To /app/sign-in. */
5661
+ 303: {
5662
+ headers: {
5663
+ [name: string]: unknown;
5664
+ };
5665
+ content?: never;
5666
+ };
5667
+ /** @description NOT_FOUND: no such Session in this workspace. */
5668
+ 404: {
5669
+ headers: {
5670
+ [name: string]: unknown;
5671
+ };
5672
+ content: {
5673
+ 'text/html': unknown;
5674
+ };
5675
+ };
5676
+ };
5677
+ };
5354
5678
  evidenceExportDownload: {
5355
5679
  parameters: {
5356
5680
  query?: never;
@@ -6036,7 +6360,7 @@ export interface operations {
6036
6360
  };
6037
6361
  };
6038
6362
  responses: {
6039
- /** @description See Other (Post/Redirect/Get): accepted (with a signed decision receipt stored with its Event, returned by the owner GET and the Event log), or a repeated client_event_id with the same request (the original Event and the same receipt, never re-signed). No body. Location is the same human link path, relative, with no query: never an Event ID, receipt or submitted data. A GET there renders the Session as it is then: waiting for the agent (responded), the next revision’s form (active) or the completion (completed). */
6363
+ /** @description See Other (Post/Redirect/Get): accepted (with a signed decision receipt stored with its Event, returned by the owner GET and the Event log), or a repeated client_event_id with the same request (the original Event and the same receipt, never re-signed). No body. Location is the same Sess link path, relative, with no query: never an Event ID, receipt or submitted data. A GET there renders the Session as it is then: waiting for the agent (responded), the next revision’s form (active) or the completion (completed). */
6040
6364
  303: {
6041
6365
  headers: {
6042
6366
  /** @description The same /s/{token} path. */
@@ -6063,7 +6387,7 @@ export interface operations {
6063
6387
  'text/html': unknown;
6064
6388
  };
6065
6389
  };
6066
- /** @description Unknown, expired or revoked link (generic). */
6390
+ /** @description Unknown, lapsed, expired or revoked link (generic): an answer is accepted only while the link is live. */
6067
6391
  404: {
6068
6392
  headers: {
6069
6393
  [name: string]: unknown;
@@ -6128,6 +6452,95 @@ export interface operations {
6128
6452
  };
6129
6453
  };
6130
6454
  };
6455
+ extendHumanLink: {
6456
+ parameters: {
6457
+ query?: never;
6458
+ header?: never;
6459
+ path: {
6460
+ token: string;
6461
+ };
6462
+ cookie?: never;
6463
+ };
6464
+ requestBody: {
6465
+ content: {
6466
+ 'application/x-www-form-urlencoded': components['schemas']['HumanExtensionForm'];
6467
+ };
6468
+ };
6469
+ responses: {
6470
+ /** @description Extended (or a repeated request for an extension already made): the current page, its form re-rendered with the submitted values. */
6471
+ 200: {
6472
+ headers: {
6473
+ [name: string]: unknown;
6474
+ };
6475
+ content: {
6476
+ 'text/html': unknown;
6477
+ };
6478
+ };
6479
+ /** @description INVALID_SCHEMA: not the form’s exact shape, or values that do not decode. */
6480
+ 400: {
6481
+ headers: {
6482
+ [name: string]: unknown;
6483
+ };
6484
+ content: {
6485
+ 'text/html': unknown;
6486
+ };
6487
+ };
6488
+ /** @description ACTION_NOT_ALLOWED: not a same-origin request. */
6489
+ 403: {
6490
+ headers: {
6491
+ [name: string]: unknown;
6492
+ };
6493
+ content: {
6494
+ 'text/html': unknown;
6495
+ };
6496
+ };
6497
+ /** @description Unknown, expired, revoked or purged link (the one generic page). Nothing changes. */
6498
+ 404: {
6499
+ headers: {
6500
+ [name: string]: unknown;
6501
+ };
6502
+ content: {
6503
+ 'text/html': unknown;
6504
+ };
6505
+ };
6506
+ /** @description ACTION_NOT_ALLOWED: a display Session. */
6507
+ 405: {
6508
+ headers: {
6509
+ [name: string]: unknown;
6510
+ };
6511
+ content: {
6512
+ 'text/html': unknown;
6513
+ };
6514
+ };
6515
+ /** @description Nothing changed: SESSION_REVISION_CONFLICT (the current revision, prefilled with the safe draft), SESSION_COMPLETED, or no extension left (none for this link, all ten used, or the deadline already at the horizon; the link stays live until its deadline). */
6516
+ 409: {
6517
+ headers: {
6518
+ [name: string]: unknown;
6519
+ };
6520
+ content: {
6521
+ 'text/html': unknown;
6522
+ };
6523
+ };
6524
+ /** @description PAYLOAD_TOO_LARGE. */
6525
+ 413: {
6526
+ headers: {
6527
+ [name: string]: unknown;
6528
+ };
6529
+ content: {
6530
+ 'text/html': unknown;
6531
+ };
6532
+ };
6533
+ /** @description INVALID_SCHEMA: not application/x-www-form-urlencoded. */
6534
+ 415: {
6535
+ headers: {
6536
+ [name: string]: unknown;
6537
+ };
6538
+ content: {
6539
+ 'text/html': unknown;
6540
+ };
6541
+ };
6542
+ };
6543
+ };
6131
6544
  createKeepChallenge: {
6132
6545
  parameters: {
6133
6546
  query?: never;
@@ -6224,13 +6637,14 @@ export interface operations {
6224
6637
  };
6225
6638
  };
6226
6639
  responses: {
6227
- /** @description The kept conversation. */
6640
+ /** @description The kept conversation (JSON; Content-Disposition attachment). With `format: pdf`, the receipt PDF of the same snapshot (S-04; Content-Disposition with an ASCII `filename` and the exact `filename*`, header Sess-Keep-Summary `rounds=<n>; coverage=<every_accepted_round|partial>; unenrolled=<0|1>`), or the JSON when the file is outside the PDF profile. */
6228
6641
  200: {
6229
6642
  headers: {
6230
6643
  [name: string]: unknown;
6231
6644
  };
6232
6645
  content: {
6233
6646
  'application/json': components['schemas']['KeptConversation'];
6647
+ 'application/pdf': string;
6234
6648
  };
6235
6649
  };
6236
6650
  /** @description INVALID_SCHEMA */
@@ -7950,6 +8364,39 @@ export interface operations {
7950
8364
  };
7951
8365
  };
7952
8366
  };
8367
+ rendererIdentities: {
8368
+ parameters: {
8369
+ query?: never;
8370
+ header?: never;
8371
+ path?: never;
8372
+ cookie?: never;
8373
+ };
8374
+ requestBody?: never;
8375
+ responses: {
8376
+ /** @description The signed list (flattened JWS JSON serialization). */
8377
+ 200: {
8378
+ headers: {
8379
+ [name: string]: unknown;
8380
+ };
8381
+ content: {
8382
+ 'application/json': {
8383
+ protected: string;
8384
+ payload: string;
8385
+ signature: string;
8386
+ };
8387
+ };
8388
+ };
8389
+ /** @description SERVICE_UNAVAILABLE */
8390
+ 503: {
8391
+ headers: {
8392
+ [name: string]: unknown;
8393
+ };
8394
+ content: {
8395
+ 'application/json': components['schemas']['Error'];
8396
+ };
8397
+ };
8398
+ };
8399
+ };
7953
8400
  witnessKeys: {
7954
8401
  parameters: {
7955
8402
  query?: never;