@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.
- package/CHANGELOG.md +56 -0
- package/README.md +41 -0
- package/dist/ask.d.ts +20 -8
- package/dist/ask.d.ts.map +1 -1
- package/dist/ask.js +43 -8
- package/dist/ask.js.map +1 -1
- package/dist/cli/verify.d.ts +1 -1
- package/dist/cli/verify.d.ts.map +1 -1
- package/dist/cli/verify.js +49 -3
- package/dist/cli/verify.js.map +1 -1
- package/dist/errors.d.ts +18 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +22 -1
- package/dist/errors.js.map +1 -1
- package/dist/generated/openapi.d.ts +489 -42
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/internal/decode.d.ts.map +1 -1
- package/dist/internal/decode.js +37 -0
- package/dist/internal/decode.js.map +1 -1
- package/dist/polling.d.ts +4 -3
- package/dist/polling.d.ts.map +1 -1
- package/dist/polling.js +64 -18
- package/dist/polling.js.map +1 -1
- package/dist/receipts/index.d.ts +3 -1
- package/dist/receipts/index.d.ts.map +1 -1
- package/dist/receipts/index.js +2 -1
- package/dist/receipts/index.js.map +1 -1
- package/dist/receipts/renderers.d.ts +58 -0
- package/dist/receipts/renderers.d.ts.map +1 -0
- package/dist/receipts/renderers.js +154 -0
- package/dist/receipts/renderers.js.map +1 -0
- package/dist/receipts/resource.d.ts.map +1 -1
- package/dist/receipts/resource.js +27 -0
- package/dist/receipts/resource.js.map +1 -1
- package/dist/receipts/verify.d.ts +24 -1
- package/dist/receipts/verify.d.ts.map +1 -1
- package/dist/receipts/verify.js +63 -17
- package/dist/receipts/verify.js.map +1 -1
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +27 -2
- package/dist/transport.js.map +1 -1
- package/dist/types.d.ts +76 -7
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/src/ask.ts +63 -16
- package/src/cli/verify.ts +61 -3
- package/src/errors.ts +31 -0
- package/src/generated/openapi.ts +489 -42
- package/src/internal/decode.ts +29 -0
- package/src/polling.ts +70 -18
- package/src/receipts/index.ts +3 -1
- package/src/receipts/renderers.ts +220 -0
- package/src/receipts/resource.ts +37 -0
- package/src/receipts/verify.ts +108 -22
- package/src/transport.ts +35 -2
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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;
|
|
@@ -1409,6 +1477,11 @@ export interface components {
|
|
|
1409
1477
|
interaction: {
|
|
1410
1478
|
/** @constant */
|
|
1411
1479
|
mode: 'display';
|
|
1480
|
+
/**
|
|
1481
|
+
* @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.
|
|
1482
|
+
* @example Approve the refund?
|
|
1483
|
+
* @example Pick a delivery date
|
|
1484
|
+
*/
|
|
1412
1485
|
title: string;
|
|
1413
1486
|
description?: string;
|
|
1414
1487
|
source: {
|
|
@@ -1425,8 +1498,22 @@ export interface components {
|
|
|
1425
1498
|
} | {
|
|
1426
1499
|
/** @constant */
|
|
1427
1500
|
mode: 'interactive';
|
|
1501
|
+
/**
|
|
1502
|
+
* @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.
|
|
1503
|
+
* @example Approve the refund?
|
|
1504
|
+
* @example Pick a delivery date
|
|
1505
|
+
*/
|
|
1428
1506
|
title: string;
|
|
1507
|
+
/**
|
|
1508
|
+
* @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.
|
|
1509
|
+
* @example The customer was charged twice for order 1042.
|
|
1510
|
+
*/
|
|
1429
1511
|
description?: string;
|
|
1512
|
+
/** @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. */
|
|
1513
|
+
progress?: {
|
|
1514
|
+
step: number;
|
|
1515
|
+
total: number;
|
|
1516
|
+
};
|
|
1430
1517
|
source: {
|
|
1431
1518
|
/** @constant */
|
|
1432
1519
|
kind: 'sess_surface';
|
|
@@ -1438,6 +1525,11 @@ export interface components {
|
|
|
1438
1525
|
};
|
|
1439
1526
|
actions: {
|
|
1440
1527
|
id: string;
|
|
1528
|
+
/**
|
|
1529
|
+
* @description A button: a verb, 1–3 words; at most 24. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
|
|
1530
|
+
* @example Approve
|
|
1531
|
+
* @example Send refund
|
|
1532
|
+
*/
|
|
1441
1533
|
label: string;
|
|
1442
1534
|
intent?: 'submit' | 'continue' | 'approve' | 'reject' | 'request_change';
|
|
1443
1535
|
}[];
|
|
@@ -1447,7 +1539,7 @@ export interface components {
|
|
|
1447
1539
|
*/
|
|
1448
1540
|
response_policy?: 'first';
|
|
1449
1541
|
};
|
|
1450
|
-
/** @description Advanced. How long the
|
|
1542
|
+
/** @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. */
|
|
1451
1543
|
expires_in?: number;
|
|
1452
1544
|
/** @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. */
|
|
1453
1545
|
invocation_id?: string;
|
|
@@ -1456,14 +1548,33 @@ export interface components {
|
|
|
1456
1548
|
id: string;
|
|
1457
1549
|
revision: number;
|
|
1458
1550
|
human_url: string;
|
|
1459
|
-
/** @description
|
|
1551
|
+
/** @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. */
|
|
1460
1552
|
action_expires_at: string;
|
|
1461
1553
|
};
|
|
1462
1554
|
SessionResponse: {
|
|
1463
1555
|
id: string;
|
|
1464
1556
|
revision: number;
|
|
1465
|
-
/** @description
|
|
1557
|
+
/** @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. */
|
|
1466
1558
|
action_expires_at: string;
|
|
1559
|
+
/** @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. */
|
|
1560
|
+
action_expires_horizon: string | null;
|
|
1561
|
+
/** @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. */
|
|
1562
|
+
extensions_used: number;
|
|
1563
|
+
/** @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. */
|
|
1564
|
+
link_state: 'live' | 'lapsed' | 'expired';
|
|
1565
|
+
/** @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. */
|
|
1566
|
+
extensions: {
|
|
1567
|
+
/** @description Its number, 1 to 10, in order. */
|
|
1568
|
+
number: number;
|
|
1569
|
+
/** @description The deadline (action_expires_at) before this extension. */
|
|
1570
|
+
previous_action_expires_at: string;
|
|
1571
|
+
/** @description The deadline this extension set. */
|
|
1572
|
+
action_expires_at: string;
|
|
1573
|
+
/** @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. */
|
|
1574
|
+
from_lapsed: boolean;
|
|
1575
|
+
/** @description When the extension was accepted. */
|
|
1576
|
+
extended_at: string;
|
|
1577
|
+
}[];
|
|
1467
1578
|
interaction: {
|
|
1468
1579
|
/** @constant */
|
|
1469
1580
|
mode: 'display';
|
|
@@ -1487,13 +1598,37 @@ export interface components {
|
|
|
1487
1598
|
status: 'active' | 'responded' | 'completed';
|
|
1488
1599
|
/** @description The current Surface revision. */
|
|
1489
1600
|
revision: number;
|
|
1490
|
-
/** @description
|
|
1601
|
+
/** @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. */
|
|
1491
1602
|
action_expires_at: string;
|
|
1603
|
+
/** @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. */
|
|
1604
|
+
action_expires_horizon: string | null;
|
|
1605
|
+
/** @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. */
|
|
1606
|
+
extensions_used: number;
|
|
1607
|
+
/** @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. */
|
|
1608
|
+
link_state: 'live' | 'lapsed' | 'expired';
|
|
1609
|
+
/** @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. */
|
|
1610
|
+
extensions: {
|
|
1611
|
+
/** @description Its number, 1 to 10, in order. */
|
|
1612
|
+
number: number;
|
|
1613
|
+
/** @description The deadline (action_expires_at) before this extension. */
|
|
1614
|
+
previous_action_expires_at: string;
|
|
1615
|
+
/** @description The deadline this extension set. */
|
|
1616
|
+
action_expires_at: string;
|
|
1617
|
+
/** @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. */
|
|
1618
|
+
from_lapsed: boolean;
|
|
1619
|
+
/** @description When the extension was accepted. */
|
|
1620
|
+
extended_at: string;
|
|
1621
|
+
}[];
|
|
1492
1622
|
interaction: {
|
|
1493
1623
|
/** @constant */
|
|
1494
1624
|
mode: 'interactive';
|
|
1495
1625
|
title: string;
|
|
1496
1626
|
description?: string;
|
|
1627
|
+
/** @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. */
|
|
1628
|
+
progress?: {
|
|
1629
|
+
step: number;
|
|
1630
|
+
total: number;
|
|
1631
|
+
};
|
|
1497
1632
|
source: {
|
|
1498
1633
|
/** @constant */
|
|
1499
1634
|
kind: 'sess_surface';
|
|
@@ -1563,7 +1698,7 @@ export interface components {
|
|
|
1563
1698
|
};
|
|
1564
1699
|
/** @description ISO 8601 UTC time of acceptance. */
|
|
1565
1700
|
accepted_at: string;
|
|
1566
|
-
/** @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
|
|
1701
|
+
/** @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. */
|
|
1567
1702
|
receipt: string | null;
|
|
1568
1703
|
}[];
|
|
1569
1704
|
};
|
|
@@ -1575,6 +1710,11 @@ export interface components {
|
|
|
1575
1710
|
mode: 'interactive';
|
|
1576
1711
|
title: string;
|
|
1577
1712
|
description?: string;
|
|
1713
|
+
/** @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. */
|
|
1714
|
+
progress?: {
|
|
1715
|
+
step: number;
|
|
1716
|
+
total: number;
|
|
1717
|
+
};
|
|
1578
1718
|
source: {
|
|
1579
1719
|
/** @constant */
|
|
1580
1720
|
kind: 'sess_surface';
|
|
@@ -1672,9 +1812,22 @@ export interface components {
|
|
|
1672
1812
|
};
|
|
1673
1813
|
/** @description ISO 8601 UTC time the Event was recorded. */
|
|
1674
1814
|
created_at: string;
|
|
1675
|
-
/** @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
|
|
1815
|
+
/** @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. */
|
|
1676
1816
|
receipt?: string | null;
|
|
1677
1817
|
}[];
|
|
1818
|
+
/** @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. */
|
|
1819
|
+
link_extensions?: {
|
|
1820
|
+
/** @description Its number, 1 to 10, in order. */
|
|
1821
|
+
number: number;
|
|
1822
|
+
/** @description The deadline (action_expires_at) before this extension. */
|
|
1823
|
+
previous_action_expires_at: string;
|
|
1824
|
+
/** @description The deadline this extension set. */
|
|
1825
|
+
action_expires_at: string;
|
|
1826
|
+
/** @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. */
|
|
1827
|
+
from_lapsed: boolean;
|
|
1828
|
+
/** @description When the extension was accepted. */
|
|
1829
|
+
extended_at: string;
|
|
1830
|
+
}[];
|
|
1678
1831
|
};
|
|
1679
1832
|
ReceiptKeysResponse: {
|
|
1680
1833
|
/** @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. */
|
|
@@ -1712,7 +1865,7 @@ export interface components {
|
|
|
1712
1865
|
valid_to: string | null;
|
|
1713
1866
|
}[];
|
|
1714
1867
|
};
|
|
1715
|
-
/** @description A deliberate disclosure of one accepted decision: the receipt, the accepted record and the issuer
|
|
1868
|
+
/** @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. */
|
|
1716
1869
|
DecisionBundle: {
|
|
1717
1870
|
/** @constant */
|
|
1718
1871
|
type: 'sess.decision-bundle';
|
|
@@ -1905,6 +2058,8 @@ export interface components {
|
|
|
1905
2058
|
KeepRequest: {
|
|
1906
2059
|
/** @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. */
|
|
1907
2060
|
grants: string[];
|
|
2061
|
+
/** @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. */
|
|
2062
|
+
format?: 'json' | 'pdf';
|
|
1908
2063
|
enrollment?: {
|
|
1909
2064
|
challenge_id: string;
|
|
1910
2065
|
/** @description Exactly the challenge's batch in order, or only its final receipt (the disclosed fallback). One distinct key per receipt. */
|
|
@@ -1924,7 +2079,7 @@ export interface components {
|
|
|
1924
2079
|
}[];
|
|
1925
2080
|
};
|
|
1926
2081
|
};
|
|
1927
|
-
/** @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
|
|
2082
|
+
/** @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. */
|
|
1928
2083
|
KeptConversation: {
|
|
1929
2084
|
/** @constant */
|
|
1930
2085
|
type: 'sess.kept-conversation';
|
|
@@ -1961,7 +2116,7 @@ export interface components {
|
|
|
1961
2116
|
content: {
|
|
1962
2117
|
/** @constant */
|
|
1963
2118
|
status: 'included';
|
|
1964
|
-
/** @description A deliberate disclosure of one accepted decision: the receipt, the accepted record and the issuer
|
|
2119
|
+
/** @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. */
|
|
1965
2120
|
bundle: {
|
|
1966
2121
|
/** @constant */
|
|
1967
2122
|
type: 'sess.decision-bundle';
|
|
@@ -2175,8 +2330,22 @@ export interface components {
|
|
|
2175
2330
|
interaction: {
|
|
2176
2331
|
/** @constant */
|
|
2177
2332
|
mode: 'interactive';
|
|
2333
|
+
/**
|
|
2334
|
+
* @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.
|
|
2335
|
+
* @example Approve the refund?
|
|
2336
|
+
* @example Pick a delivery date
|
|
2337
|
+
*/
|
|
2178
2338
|
title: string;
|
|
2339
|
+
/**
|
|
2340
|
+
* @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.
|
|
2341
|
+
* @example The customer was charged twice for order 1042.
|
|
2342
|
+
*/
|
|
2179
2343
|
description?: string;
|
|
2344
|
+
/** @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. */
|
|
2345
|
+
progress?: {
|
|
2346
|
+
step: number;
|
|
2347
|
+
total: number;
|
|
2348
|
+
};
|
|
2180
2349
|
source: {
|
|
2181
2350
|
/** @constant */
|
|
2182
2351
|
kind: 'sess_surface';
|
|
@@ -2188,6 +2357,11 @@ export interface components {
|
|
|
2188
2357
|
};
|
|
2189
2358
|
actions: {
|
|
2190
2359
|
id: string;
|
|
2360
|
+
/**
|
|
2361
|
+
* @description A button: a verb, 1–3 words; at most 24. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
|
|
2362
|
+
* @example Approve
|
|
2363
|
+
* @example Send refund
|
|
2364
|
+
*/
|
|
2191
2365
|
label: string;
|
|
2192
2366
|
intent?: 'submit' | 'continue' | 'approve' | 'reject' | 'request_change';
|
|
2193
2367
|
}[];
|
|
@@ -2201,14 +2375,26 @@ export interface components {
|
|
|
2201
2375
|
SurfaceComponent: {
|
|
2202
2376
|
/** @constant */
|
|
2203
2377
|
type: 'heading';
|
|
2378
|
+
/**
|
|
2379
|
+
* @description A section heading: a few words; at most 60. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
|
|
2380
|
+
* @example Order details
|
|
2381
|
+
*/
|
|
2204
2382
|
text: string;
|
|
2205
2383
|
} | {
|
|
2206
2384
|
/** @constant */
|
|
2207
2385
|
type: 'text';
|
|
2386
|
+
/**
|
|
2387
|
+
* @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.
|
|
2388
|
+
* @example The refund goes back to the card used for the order.
|
|
2389
|
+
*/
|
|
2208
2390
|
text: string;
|
|
2209
2391
|
} | {
|
|
2210
2392
|
/** @constant */
|
|
2211
2393
|
type: 'record';
|
|
2394
|
+
/**
|
|
2395
|
+
* @description Optional caption above the record: a few words; at most 200. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
|
|
2396
|
+
* @example Order 1042
|
|
2397
|
+
*/
|
|
2212
2398
|
label?: string;
|
|
2213
2399
|
fields: {
|
|
2214
2400
|
[key: string]: string | number | boolean | null;
|
|
@@ -2217,7 +2403,15 @@ export interface components {
|
|
|
2217
2403
|
/** @constant */
|
|
2218
2404
|
type: 'field';
|
|
2219
2405
|
name: string;
|
|
2406
|
+
/**
|
|
2407
|
+
* @description What the field asks for: short, a few words; at most 60. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
|
|
2408
|
+
* @example Refund amount
|
|
2409
|
+
*/
|
|
2220
2410
|
label: string;
|
|
2411
|
+
/**
|
|
2412
|
+
* @description Optional help under the label: one hint; at most 160. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
|
|
2413
|
+
* @example Leave it as is to refund the full amount.
|
|
2414
|
+
*/
|
|
2221
2415
|
description?: string;
|
|
2222
2416
|
required?: boolean;
|
|
2223
2417
|
/** @description A string field rendered as a multi-line text area. */
|
|
@@ -2240,13 +2434,26 @@ export interface components {
|
|
|
2240
2434
|
} & {
|
|
2241
2435
|
[key: string]: string;
|
|
2242
2436
|
};
|
|
2437
|
+
HumanExtensionForm: {
|
|
2438
|
+
client_event_id: string;
|
|
2439
|
+
surface_revision: string;
|
|
2440
|
+
} & {
|
|
2441
|
+
[key: string]: string;
|
|
2442
|
+
};
|
|
2243
2443
|
Error: {
|
|
2244
2444
|
error: {
|
|
2245
2445
|
code: 'INVALID_SCHEMA' | 'PAYLOAD_TOO_LARGE' | 'UNAUTHORIZED' | 'SESSION_NOT_FOUND' | 'NOT_FOUND' | 'INTERNAL' | 'UNKNOWN_COMPONENT' | 'SESSION_REVISION_CONFLICT' | 'IDEMPOTENCY_CONFLICT' | 'PRECONDITION_REQUIRED' | 'SESSION_COMPLETED' | 'ACTION_NOT_ALLOWED' | 'ACTION_NOT_FOUND' | 'VALIDATION_FAILED' | 'RESPONSE_LIMIT_REACHED' | 'SERVICE_UNAVAILABLE' | 'RATE_LIMITED' | 'TRIAL_UNAVAILABLE' | 'SIGN_IN_UNAVAILABLE' | 'WEBHOOK_INVALID_URL' | 'WEBHOOK_VERIFICATION_FAILED' | 'WEBHOOK_NOT_CONFIGURED' | 'TARGET_INVALID_URL' | 'TARGET_INVALID_CAPABILITY' | 'TARGET_VERIFICATION_FAILED' | 'TARGET_VERSION_CONFLICT' | 'INVOCATION_TERMINAL' | 'HOLDER_ENROLLMENT_REFUSED' | 'PLAN_LIMIT_REACHED' | 'SUBSCRIPTION_EXISTS' | 'TARGET_NAME_TAKEN' | 'EVIDENCE_RESTRICTED' | 'EVIDENCE_DELETED' | 'CUSTODY_HOLD_ACTIVE';
|
|
2446
|
+
/** @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." */
|
|
2246
2447
|
message: string;
|
|
2247
2448
|
request_id: string;
|
|
2248
2449
|
/** @description A stable machine-readable refinement of some codes (P1 A4 webhook errors; P2 target, admission and limit errors). */
|
|
2249
2450
|
reason?: string;
|
|
2451
|
+
/** @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. */
|
|
2452
|
+
field?: string;
|
|
2453
|
+
/** @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. */
|
|
2454
|
+
limit?: number;
|
|
2455
|
+
/** @description With field: the value’s length in Unicode code points. */
|
|
2456
|
+
length?: number;
|
|
2250
2457
|
};
|
|
2251
2458
|
};
|
|
2252
2459
|
HealthOk: {
|
|
@@ -2271,8 +2478,22 @@ export interface components {
|
|
|
2271
2478
|
interaction: {
|
|
2272
2479
|
/** @constant */
|
|
2273
2480
|
mode: 'interactive';
|
|
2481
|
+
/**
|
|
2482
|
+
* @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.
|
|
2483
|
+
* @example Approve the refund?
|
|
2484
|
+
* @example Pick a delivery date
|
|
2485
|
+
*/
|
|
2274
2486
|
title: string;
|
|
2487
|
+
/**
|
|
2488
|
+
* @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.
|
|
2489
|
+
* @example The customer was charged twice for order 1042.
|
|
2490
|
+
*/
|
|
2275
2491
|
description?: string;
|
|
2492
|
+
/** @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. */
|
|
2493
|
+
progress?: {
|
|
2494
|
+
step: number;
|
|
2495
|
+
total: number;
|
|
2496
|
+
};
|
|
2276
2497
|
source: {
|
|
2277
2498
|
/** @constant */
|
|
2278
2499
|
kind: 'sess_surface';
|
|
@@ -2284,6 +2505,11 @@ export interface components {
|
|
|
2284
2505
|
};
|
|
2285
2506
|
actions: {
|
|
2286
2507
|
id: string;
|
|
2508
|
+
/**
|
|
2509
|
+
* @description A button: a verb, 1–3 words; at most 24. Longer fails with 400 INVALID_SCHEMA naming it; never truncated.
|
|
2510
|
+
* @example Approve
|
|
2511
|
+
* @example Send refund
|
|
2512
|
+
*/
|
|
2287
2513
|
label: string;
|
|
2288
2514
|
intent?: 'submit' | 'continue' | 'approve' | 'reject' | 'request_change';
|
|
2289
2515
|
}[];
|
|
@@ -2297,13 +2523,13 @@ export interface components {
|
|
|
2297
2523
|
TrialCreateSessionResponse: {
|
|
2298
2524
|
id: string;
|
|
2299
2525
|
revision: number;
|
|
2300
|
-
/** @description The
|
|
2526
|
+
/** @description The Sess link (a capability): share it only with the responder. */
|
|
2301
2527
|
human_url: string;
|
|
2302
2528
|
/** @description The trial workspace this Session belongs to. */
|
|
2303
2529
|
workspace_id: string;
|
|
2304
2530
|
/** @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. */
|
|
2305
2531
|
management_credential?: string;
|
|
2306
|
-
/** @description After this instant the
|
|
2532
|
+
/** @description After this instant the Sess link accepts no response. */
|
|
2307
2533
|
action_expires_at: string;
|
|
2308
2534
|
/** @description Until this instant the result can be read with the management credential. */
|
|
2309
2535
|
result_available_until: string;
|
|
@@ -2315,11 +2541,35 @@ export interface components {
|
|
|
2315
2541
|
status: 'active' | 'responded' | 'completed';
|
|
2316
2542
|
/** @description The current Surface revision. */
|
|
2317
2543
|
revision: number;
|
|
2544
|
+
/** @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. */
|
|
2545
|
+
action_expires_horizon: string | null;
|
|
2546
|
+
/** @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. */
|
|
2547
|
+
extensions_used: number;
|
|
2548
|
+
/** @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. */
|
|
2549
|
+
link_state: 'live' | 'lapsed' | 'expired';
|
|
2550
|
+
/** @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. */
|
|
2551
|
+
extensions: {
|
|
2552
|
+
/** @description Its number, 1 to 10, in order. */
|
|
2553
|
+
number: number;
|
|
2554
|
+
/** @description The deadline (action_expires_at) before this extension. */
|
|
2555
|
+
previous_action_expires_at: string;
|
|
2556
|
+
/** @description The deadline this extension set. */
|
|
2557
|
+
action_expires_at: string;
|
|
2558
|
+
/** @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. */
|
|
2559
|
+
from_lapsed: boolean;
|
|
2560
|
+
/** @description When the extension was accepted. */
|
|
2561
|
+
extended_at: string;
|
|
2562
|
+
}[];
|
|
2318
2563
|
interaction: {
|
|
2319
2564
|
/** @constant */
|
|
2320
2565
|
mode: 'interactive';
|
|
2321
2566
|
title: string;
|
|
2322
2567
|
description?: string;
|
|
2568
|
+
/** @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. */
|
|
2569
|
+
progress?: {
|
|
2570
|
+
step: number;
|
|
2571
|
+
total: number;
|
|
2572
|
+
};
|
|
2323
2573
|
source: {
|
|
2324
2574
|
/** @constant */
|
|
2325
2575
|
kind: 'sess_surface';
|
|
@@ -2389,12 +2639,12 @@ export interface components {
|
|
|
2389
2639
|
};
|
|
2390
2640
|
/** @description ISO 8601 UTC time of acceptance. */
|
|
2391
2641
|
accepted_at: string;
|
|
2392
|
-
/** @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
|
|
2642
|
+
/** @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. */
|
|
2393
2643
|
receipt: string | null;
|
|
2394
2644
|
}[];
|
|
2395
2645
|
trial: {
|
|
2396
2646
|
workspace_id: string;
|
|
2397
|
-
/** @description After this instant the
|
|
2647
|
+
/** @description After this instant the Sess link accepts no response. */
|
|
2398
2648
|
action_expires_at: string;
|
|
2399
2649
|
/** @description Until this instant this result remains readable. */
|
|
2400
2650
|
result_available_until: string;
|
|
@@ -2487,7 +2737,7 @@ export interface components {
|
|
|
2487
2737
|
nonce: string;
|
|
2488
2738
|
};
|
|
2489
2739
|
SaveDirectRequest: {
|
|
2490
|
-
/** @description The
|
|
2740
|
+
/** @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). */
|
|
2491
2741
|
link: string;
|
|
2492
2742
|
/** @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. */
|
|
2493
2743
|
grants: string[];
|
|
@@ -2532,7 +2782,7 @@ export interface components {
|
|
|
2532
2782
|
status: 'removed';
|
|
2533
2783
|
};
|
|
2534
2784
|
ProtectedResourceMetadata: {
|
|
2535
|
-
/** @description The MCP resource (RFC 8707),
|
|
2785
|
+
/** @description The MCP resource (RFC 8707): the deployment’s MCP endpoint, the /mcp path on its MCP host. */
|
|
2536
2786
|
resource: string;
|
|
2537
2787
|
authorization_servers: string[];
|
|
2538
2788
|
scopes_supported: 'sess:interact'[];
|
|
@@ -2618,7 +2868,7 @@ export interface components {
|
|
|
2618
2868
|
};
|
|
2619
2869
|
/** @description Default true. */
|
|
2620
2870
|
enabled?: boolean;
|
|
2621
|
-
/** @description Advanced. The
|
|
2871
|
+
/** @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. */
|
|
2622
2872
|
default_expires_in?: number;
|
|
2623
2873
|
};
|
|
2624
2874
|
TargetUpdateRequest: {
|
|
@@ -4108,7 +4358,7 @@ export interface operations {
|
|
|
4108
4358
|
'application/json': components['schemas']['PersonalCopiesResponse'];
|
|
4109
4359
|
};
|
|
4110
4360
|
};
|
|
4111
|
-
/** @description UNAUTHORIZED: no live personal session (a developer session, owner key or
|
|
4361
|
+
/** @description UNAUTHORIZED: no live personal session (a developer session, owner key or Sess link never counts). */
|
|
4112
4362
|
401: {
|
|
4113
4363
|
headers: {
|
|
4114
4364
|
[name: string]: unknown;
|
|
@@ -4170,7 +4420,7 @@ export interface operations {
|
|
|
4170
4420
|
'application/json': components['schemas']['Error'];
|
|
4171
4421
|
};
|
|
4172
4422
|
};
|
|
4173
|
-
/** @description UNAUTHORIZED: no live personal session (a developer session, owner key or
|
|
4423
|
+
/** @description UNAUTHORIZED: no live personal session (a developer session, owner key or Sess link never counts). */
|
|
4174
4424
|
401: {
|
|
4175
4425
|
headers: {
|
|
4176
4426
|
[name: string]: unknown;
|
|
@@ -4268,7 +4518,7 @@ export interface operations {
|
|
|
4268
4518
|
'application/json': components['schemas']['Error'];
|
|
4269
4519
|
};
|
|
4270
4520
|
};
|
|
4271
|
-
/** @description UNAUTHORIZED: no live personal session (a developer session, owner key or
|
|
4521
|
+
/** @description UNAUTHORIZED: no live personal session (a developer session, owner key or Sess link never counts). */
|
|
4272
4522
|
401: {
|
|
4273
4523
|
headers: {
|
|
4274
4524
|
[name: string]: unknown;
|
|
@@ -5128,6 +5378,80 @@ export interface operations {
|
|
|
5128
5378
|
};
|
|
5129
5379
|
};
|
|
5130
5380
|
};
|
|
5381
|
+
sessionsPage: {
|
|
5382
|
+
parameters: {
|
|
5383
|
+
query?: never;
|
|
5384
|
+
header?: never;
|
|
5385
|
+
path?: never;
|
|
5386
|
+
cookie?: never;
|
|
5387
|
+
};
|
|
5388
|
+
requestBody?: never;
|
|
5389
|
+
responses: {
|
|
5390
|
+
/** @description The Sessions page. */
|
|
5391
|
+
200: {
|
|
5392
|
+
headers: {
|
|
5393
|
+
[name: string]: unknown;
|
|
5394
|
+
};
|
|
5395
|
+
content: {
|
|
5396
|
+
'text/html': unknown;
|
|
5397
|
+
};
|
|
5398
|
+
};
|
|
5399
|
+
/** @description To /app/sign-in. */
|
|
5400
|
+
303: {
|
|
5401
|
+
headers: {
|
|
5402
|
+
[name: string]: unknown;
|
|
5403
|
+
};
|
|
5404
|
+
content?: never;
|
|
5405
|
+
};
|
|
5406
|
+
/** @description The Sessions could not be read. */
|
|
5407
|
+
503: {
|
|
5408
|
+
headers: {
|
|
5409
|
+
[name: string]: unknown;
|
|
5410
|
+
};
|
|
5411
|
+
content: {
|
|
5412
|
+
'text/html': unknown;
|
|
5413
|
+
};
|
|
5414
|
+
};
|
|
5415
|
+
};
|
|
5416
|
+
};
|
|
5417
|
+
sessionPage: {
|
|
5418
|
+
parameters: {
|
|
5419
|
+
query?: never;
|
|
5420
|
+
header?: never;
|
|
5421
|
+
path: {
|
|
5422
|
+
id: string;
|
|
5423
|
+
};
|
|
5424
|
+
cookie?: never;
|
|
5425
|
+
};
|
|
5426
|
+
requestBody?: never;
|
|
5427
|
+
responses: {
|
|
5428
|
+
/** @description The Session page. */
|
|
5429
|
+
200: {
|
|
5430
|
+
headers: {
|
|
5431
|
+
[name: string]: unknown;
|
|
5432
|
+
};
|
|
5433
|
+
content: {
|
|
5434
|
+
'text/html': unknown;
|
|
5435
|
+
};
|
|
5436
|
+
};
|
|
5437
|
+
/** @description To /app/sign-in. */
|
|
5438
|
+
303: {
|
|
5439
|
+
headers: {
|
|
5440
|
+
[name: string]: unknown;
|
|
5441
|
+
};
|
|
5442
|
+
content?: never;
|
|
5443
|
+
};
|
|
5444
|
+
/** @description NOT_FOUND: no such Session in this workspace. */
|
|
5445
|
+
404: {
|
|
5446
|
+
headers: {
|
|
5447
|
+
[name: string]: unknown;
|
|
5448
|
+
};
|
|
5449
|
+
content: {
|
|
5450
|
+
'text/html': unknown;
|
|
5451
|
+
};
|
|
5452
|
+
};
|
|
5453
|
+
};
|
|
5454
|
+
};
|
|
5131
5455
|
evidenceExportDownload: {
|
|
5132
5456
|
parameters: {
|
|
5133
5457
|
query?: never;
|
|
@@ -5810,7 +6134,7 @@ export interface operations {
|
|
|
5810
6134
|
};
|
|
5811
6135
|
};
|
|
5812
6136
|
responses: {
|
|
5813
|
-
/** @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
|
|
6137
|
+
/** @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). */
|
|
5814
6138
|
303: {
|
|
5815
6139
|
headers: {
|
|
5816
6140
|
/** @description The same /s/{token} path. */
|
|
@@ -5837,7 +6161,7 @@ export interface operations {
|
|
|
5837
6161
|
'text/html': unknown;
|
|
5838
6162
|
};
|
|
5839
6163
|
};
|
|
5840
|
-
/** @description Unknown, expired or revoked link (generic). */
|
|
6164
|
+
/** @description Unknown, lapsed, expired or revoked link (generic): an answer is accepted only while the link is live. */
|
|
5841
6165
|
404: {
|
|
5842
6166
|
headers: {
|
|
5843
6167
|
[name: string]: unknown;
|
|
@@ -5902,6 +6226,95 @@ export interface operations {
|
|
|
5902
6226
|
};
|
|
5903
6227
|
};
|
|
5904
6228
|
};
|
|
6229
|
+
extendHumanLink: {
|
|
6230
|
+
parameters: {
|
|
6231
|
+
query?: never;
|
|
6232
|
+
header?: never;
|
|
6233
|
+
path: {
|
|
6234
|
+
token: string;
|
|
6235
|
+
};
|
|
6236
|
+
cookie?: never;
|
|
6237
|
+
};
|
|
6238
|
+
requestBody: {
|
|
6239
|
+
content: {
|
|
6240
|
+
'application/x-www-form-urlencoded': components['schemas']['HumanExtensionForm'];
|
|
6241
|
+
};
|
|
6242
|
+
};
|
|
6243
|
+
responses: {
|
|
6244
|
+
/** @description Extended (or a repeated request for an extension already made): the current page, its form re-rendered with the submitted values. */
|
|
6245
|
+
200: {
|
|
6246
|
+
headers: {
|
|
6247
|
+
[name: string]: unknown;
|
|
6248
|
+
};
|
|
6249
|
+
content: {
|
|
6250
|
+
'text/html': unknown;
|
|
6251
|
+
};
|
|
6252
|
+
};
|
|
6253
|
+
/** @description INVALID_SCHEMA: not the form’s exact shape, or values that do not decode. */
|
|
6254
|
+
400: {
|
|
6255
|
+
headers: {
|
|
6256
|
+
[name: string]: unknown;
|
|
6257
|
+
};
|
|
6258
|
+
content: {
|
|
6259
|
+
'text/html': unknown;
|
|
6260
|
+
};
|
|
6261
|
+
};
|
|
6262
|
+
/** @description ACTION_NOT_ALLOWED: not a same-origin request. */
|
|
6263
|
+
403: {
|
|
6264
|
+
headers: {
|
|
6265
|
+
[name: string]: unknown;
|
|
6266
|
+
};
|
|
6267
|
+
content: {
|
|
6268
|
+
'text/html': unknown;
|
|
6269
|
+
};
|
|
6270
|
+
};
|
|
6271
|
+
/** @description Unknown, expired, revoked or purged link (the one generic page). Nothing changes. */
|
|
6272
|
+
404: {
|
|
6273
|
+
headers: {
|
|
6274
|
+
[name: string]: unknown;
|
|
6275
|
+
};
|
|
6276
|
+
content: {
|
|
6277
|
+
'text/html': unknown;
|
|
6278
|
+
};
|
|
6279
|
+
};
|
|
6280
|
+
/** @description ACTION_NOT_ALLOWED: a display Session. */
|
|
6281
|
+
405: {
|
|
6282
|
+
headers: {
|
|
6283
|
+
[name: string]: unknown;
|
|
6284
|
+
};
|
|
6285
|
+
content: {
|
|
6286
|
+
'text/html': unknown;
|
|
6287
|
+
};
|
|
6288
|
+
};
|
|
6289
|
+
/** @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). */
|
|
6290
|
+
409: {
|
|
6291
|
+
headers: {
|
|
6292
|
+
[name: string]: unknown;
|
|
6293
|
+
};
|
|
6294
|
+
content: {
|
|
6295
|
+
'text/html': unknown;
|
|
6296
|
+
};
|
|
6297
|
+
};
|
|
6298
|
+
/** @description PAYLOAD_TOO_LARGE. */
|
|
6299
|
+
413: {
|
|
6300
|
+
headers: {
|
|
6301
|
+
[name: string]: unknown;
|
|
6302
|
+
};
|
|
6303
|
+
content: {
|
|
6304
|
+
'text/html': unknown;
|
|
6305
|
+
};
|
|
6306
|
+
};
|
|
6307
|
+
/** @description INVALID_SCHEMA: not application/x-www-form-urlencoded. */
|
|
6308
|
+
415: {
|
|
6309
|
+
headers: {
|
|
6310
|
+
[name: string]: unknown;
|
|
6311
|
+
};
|
|
6312
|
+
content: {
|
|
6313
|
+
'text/html': unknown;
|
|
6314
|
+
};
|
|
6315
|
+
};
|
|
6316
|
+
};
|
|
6317
|
+
};
|
|
5905
6318
|
createKeepChallenge: {
|
|
5906
6319
|
parameters: {
|
|
5907
6320
|
query?: never;
|
|
@@ -5998,13 +6411,14 @@ export interface operations {
|
|
|
5998
6411
|
};
|
|
5999
6412
|
};
|
|
6000
6413
|
responses: {
|
|
6001
|
-
/** @description The kept conversation. */
|
|
6414
|
+
/** @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. */
|
|
6002
6415
|
200: {
|
|
6003
6416
|
headers: {
|
|
6004
6417
|
[name: string]: unknown;
|
|
6005
6418
|
};
|
|
6006
6419
|
content: {
|
|
6007
6420
|
'application/json': components['schemas']['KeptConversation'];
|
|
6421
|
+
'application/pdf': string;
|
|
6008
6422
|
};
|
|
6009
6423
|
};
|
|
6010
6424
|
/** @description INVALID_SCHEMA */
|
|
@@ -7724,6 +8138,39 @@ export interface operations {
|
|
|
7724
8138
|
};
|
|
7725
8139
|
};
|
|
7726
8140
|
};
|
|
8141
|
+
rendererIdentities: {
|
|
8142
|
+
parameters: {
|
|
8143
|
+
query?: never;
|
|
8144
|
+
header?: never;
|
|
8145
|
+
path?: never;
|
|
8146
|
+
cookie?: never;
|
|
8147
|
+
};
|
|
8148
|
+
requestBody?: never;
|
|
8149
|
+
responses: {
|
|
8150
|
+
/** @description The signed list (flattened JWS JSON serialization). */
|
|
8151
|
+
200: {
|
|
8152
|
+
headers: {
|
|
8153
|
+
[name: string]: unknown;
|
|
8154
|
+
};
|
|
8155
|
+
content: {
|
|
8156
|
+
'application/json': {
|
|
8157
|
+
protected: string;
|
|
8158
|
+
payload: string;
|
|
8159
|
+
signature: string;
|
|
8160
|
+
};
|
|
8161
|
+
};
|
|
8162
|
+
};
|
|
8163
|
+
/** @description SERVICE_UNAVAILABLE */
|
|
8164
|
+
503: {
|
|
8165
|
+
headers: {
|
|
8166
|
+
[name: string]: unknown;
|
|
8167
|
+
};
|
|
8168
|
+
content: {
|
|
8169
|
+
'application/json': components['schemas']['Error'];
|
|
8170
|
+
};
|
|
8171
|
+
};
|
|
8172
|
+
};
|
|
8173
|
+
};
|
|
7727
8174
|
witnessKeys: {
|
|
7728
8175
|
parameters: {
|
|
7729
8176
|
query?: never;
|