Skip to main content

TypeScript API reference

This inventory is generated from the package's public export surface. Unknown or internal symbols are deliberately excluded.

  • acceptSignature โ€” Function; entry .. The Accept-Signature of a refusal: what this request should have signed (RFC 9421 ยง5).
  • AccessToken โ€” Interface; entry .. An access token for one account, kept beside what the SDK knows of it (ยง4.5).
  • accessTokenFromResponse โ€” Function; entry .. An access token from a token response (ยง4.7).
  • accountAccess โ€” Function; entry .. Whether a poppy entry needs account access before useful work can begin (ยง3.2).
  • accountScopes โ€” Function; entry .. The account scopes of a request, each once. offline_access is none of them (ยง4.4): it is
  • ACTION_FAILED โ€” Const; entry .. An approved action that didn't finish: an API error saying every change made (Operations 7).
  • AgentDescriptor โ€” Interface; entry .. Public TypeScript interface AgentDescriptor.
  • AgentIdentityClient โ€” Class; entry .. Safely retrieve and bind a personal agent's public identity documents.
  • AgentIdentityClientOptions โ€” Interface; entry .. Public TypeScript interface AgentIdentityClientOptions.
  • agentInstruction โ€” Function; entry .. An AgentInstruction, checked: an agent approval rests on an instruction the User gave.
  • AgentInstruction โ€” Interface; entry .. An instruction the User gave the Personal Agent, which an agent approval rests on
  • AgentProtocol โ€” Interface; entry .. A conversation protocol the Company Agent speaks (ยง3.1, ยง8.1); read access with
  • Alternative โ€” Interface; entry .. Another way to do a task (ยง8.2): instructions, references, or both.
  • AlternativeReference โ€” Interface; entry .. Where an alternative points (ยง8.2): an OpenAPI operation, an MCP tool, or a page.
  • ApiCallOptions โ€” Interface; entry .. Public TypeScript interface ApiCallOptions.
  • ApiClient โ€” Class; entry .. Read and change through a company's API, the credentials host-owned.
  • ApiClientOptions โ€” Interface; entry .. Public TypeScript interface ApiClientOptions.
  • ApiDescriptor โ€” Interface; entry .. Public TypeScript interface ApiDescriptor.
  • ApiError โ€” Class; entry .. The company refused an API call; code is its error, never its body.
  • ApiResponse โ€” Interface; entry .. An API answer: the body, the operation to approve (403 approval_required), or the company's
  • Approval โ€” Interface; entry .. A statement that this revision of an operation is approved (Operations 5, 6).
  • APPROVAL_DECLINED โ€” Const; entry .. A Company's refusal to act on an approval that passed its checks (Operations 6).
  • APPROVAL_HEADER โ€” Const; entry .. The header that carries an approval to an API (Operations 6).
  • APPROVAL_META_KEY โ€” Const; entry .. The _meta key that carries an approval to an MCP tool (Operations 6).
  • ApprovalDeclined โ€” Interface; entry .. A Company's final refusal of an approval that passed its checks (Operations 6).
  • approvalFromMeta โ€” Function; entry .. The approval in an MCP tool call's _meta, or undefined (unknown members are ignored).
  • approvalHeader โ€” Function; entry .. The value of Poppy-Approval (Operations 6): operation_id, revision, approver and any
  • ApprovalRequest โ€” Interface; entry .. What a user is asked to approve: nothing has been done yet.
  • ApprovalSent โ€” Interface; entry .. What came of sending an approval.
  • ApprovalSurface โ€” Interface; entry .. The host's own approval surface: the user, not a model, answers.
  • ApprovalSurfaces โ€” Const; entry .. ApprovalSurface: the host's own surface, where the user answers (Operations 5).
  • ApproveAsAgentOptions โ€” Interface; entry .. Public TypeScript interface ApproveAsAgentOptions.
  • Approver โ€” Type; entry .. Public TypeScript type Approver.
  • APPROVERS โ€” Const; entry .. How a revision was approved (Operations 5, 6): by the User, asked by the Personal Agent, or
  • AskUserOptions โ€” Interface; entry .. Public TypeScript interface AskUserOptions.
  • ASSERTION_MAX_LIFETIME_SECONDS โ€” Const; entry .. A client assertion's exp is at most this long after its iat (ยง4.1).
  • AuthCapabilities โ€” Interface; entry .. auth (ยง3.1): optional; the issuer it names, and the Company's scopes.
  • Author โ€” Interface; entry .. Who wrote a message (ยง7.4): agent or human, and for a Company message, who.
  • AUTHOR_TYPES โ€” Const; entry .. The author.type values this version defines (ยง8.4).
  • AUTHORIZATION_CODE_GRANT โ€” Const; entry .. The grants that say the Company offers Direct and Device Sign-In (ยง3.2, ยง4.4).
  • AuthorizationError โ€” Class; entry .. Public TypeScript class AuthorizationError.
  • AuthorizationStateStore โ€” Interface; entry .. Public TypeScript interface AuthorizationStateStore.
  • AuthorizationStateStores โ€” Const; entry .. Public TypeScript const AuthorizationStateStores.
  • AVAILABLE_PROTOCOL_VERSIONS โ€” Const; entry .. Every protocol version this SDK implements: 0.4 and 1.0 as published, and upstream's
  • BlindJoseSigner โ€” Class; entry .. pap.signer on the User's device: PS384 signatures a key signs blindly (ยง10.7).
  • BlindJoseSignerOptions โ€” Interface; entry .. Public TypeScript interface BlindJoseSignerOptions.
  • BlindSigningKey โ€” Interface; entry .. The holder of a key in jwks_uri: it signs a blinded message, never seeing the JWT.
  • BROWSER_CONTROL_EXTENSION โ€” Const; entry .. Public TypeScript const BROWSER_CONTROL_EXTENSION.
  • BROWSER_CONTROL_VERSION โ€” Const; entry .. The version this SDK implements (Browser Control 3).
  • BROWSER_SIGN_IN_SCOPE โ€” Const; entry .. The one scope the protocol defines (ยง4.7, ยง6): a signed-in browser join needs an access token
  • BrowserControl โ€” Class; entry .. Who controls the personal agent's browser, and what its model may do there.
  • BrowserControlError โ€” Class; entry .. A browser action the extension asks the personal agent not to take.
  • browserControlNegotiated โ€” Function; entry .. Whether the Company lists browser-control version 1 with a browser-session endpoint, and
  • BrowserHandoff โ€” Interface; entry .. Public TypeScript interface BrowserHandoff.
  • BrowserHandoffs โ€” Const; entry .. Public TypeScript const BrowserHandoffs.
  • BrowserJoin โ€” Interface; entry .. The personal agent's own browser, joining a Session through the company's form (ยง6).
  • BrowserJoinOptions โ€” Interface; entry .. Public TypeScript interface BrowserJoinOptions.
  • BrowserJoins โ€” Const; entry .. Public TypeScript const BrowserJoins.
  • BrowserSessionClient โ€” Class; entry .. Join the agent's own browser to a Session: load, authorize, submit (ยง6).
  • BrowserSessionError โ€” Class; entry .. Public TypeScript class BrowserSessionError.
  • BrowserSessionStart โ€” Interface; entry .. Safe status once the browser has submitted the join form.
  • browserSignInScopes โ€” Function; entry .. The scope a signed-in browser join needs (ยง6): poppy:browser-sign-in, requested only from a
  • browserSignInUnscoped โ€” Function; entry .. Whether poppy:browser-sign-in gives the account's full access on the website (web.unscoped,
  • browsingDisabled โ€” Function; entry .. Whether the Company asks Personal Agents not to browse its website (web.disabled, ยง6): use
  • budgetKey โ€” Function; entry .. The shared rate-limit budget a request draws on: its company's origin.
  • buildClientAssertionClaims โ€” Function; entry .. Build unsigned private_key_jwt claims for any request to the company's OAuth server.
  • buildDirectSignInRequest โ€” Value; entry .. Public TypeScript value buildDirectSignInRequest.
  • buildPapReactor โ€” Function; entry .. Public TypeScript function buildPapReactor.
  • CacheBounds โ€” Interface; entry .. How long metadata may be cached, whatever its Cache-Control says.
  • CachedMetadata โ€” Interface; entry .. One cached metadata document: the parsed JSON, where it came from, until when.
  • cacheLifetime โ€” Function; entry .. Seconds to keep a response by its Cache-Control, or undefined when it must not be cached.
  • Caches โ€” Const; entry .. Public TypeScript const Caches.
  • challengeParameters โ€” Function; entry .. The quoted parameters of a WWW-Authenticate header: error, scope, extension...
  • checkOperatorSignatureRequest โ€” Function; entry .. RangeError unless the request names the Session header or the content digest of a request
  • chooseProtocolVersion โ€” Function; entry .. The newest version, among protocolVersion and supportedVersions, that is compatible with
  • chosenVersion โ€” Function; entry .. The version a Personal Agent that implements implemented (this SDK's default versions
  • clearsContext โ€” Function; entry .. Whether a message sets a context field to null to clear it (ยง8.4): 1.0's, so a Personal
  • ClientAssertionClaims โ€” Interface; entry .. The claims of a private_key_jwt client assertion (ยง4.1).
  • ClientAssertionOptions โ€” Interface; entry .. Public TypeScript interface ClientAssertionOptions.
  • ClientMetadata โ€” Interface; entry .. Public TypeScript interface ClientMetadata.
  • Clock โ€” Interface; entry .. Public TypeScript interface Clock.
  • Clocks โ€” Const; entry .. Public TypeScript const Clocks.
  • companyExtension โ€” Function; entry .. The Company's entry for name at version (ยง3.3), or undefined.
  • companyIdentifier โ€” Function; entry .. Who the Company is (ยง3.2): its issuer, else https://{organization.domain}.
  • companyIssuer โ€” Function; entry .. The Company's OAuth issuer, as found from its domain (ยง3.2).
  • companyProtocolVersion โ€” Function; entry .. The protocol version the Company is used at (ยง3.4): document is that version's document,
  • companyResource โ€” Function; entry .. https://{organization.domain}: the resource the default access token is for.
  • companySessionVersion โ€” Function; entry .. What a Session with the Company names in Poppy-Version (ยง3.4): the newest version the
  • compatibleVersions โ€” Function; entry .. Whether two protocol versions are compatible (ยง3.4): the same major version and, before
  • CONTENT_DIGEST_HEADER โ€” Const; entry .. The header whose value an OAuth endpoint request's signature covers (RFC 9530, ยง5.3).
  • contentDigest โ€” Value; entry .. Public TypeScript value contentDigest.
  • ContributedSigner โ€” Class; entry .. The pap.signer contribution, asked each time it signs: whichever the host contributes.
  • Controller โ€” Type; entry .. Who controls the browser, as navigator.poppy.controller says (Browser Control 6).
  • controllerScript โ€” Function; entry .. The script that provides navigator.poppy.controller (Browser Control 6).
  • controllerUpdateScript โ€” Function; entry .. The script the host runs in the page as soon as control changes (Browser Control 6).
  • ConversationClient โ€” Class; entry .. Start and continue PAP conversations, each request with the Session header.
  • ConversationClientOptions โ€” Interface; entry .. Public TypeScript interface ConversationClientOptions.
  • conversationEndpoint โ€” Function; entry .. The poppy conversation endpoint, skipping protocol types this SDK does not speak.
  • ConversationError โ€” Class; entry .. Public TypeScript class ConversationError.
  • ConversationEvent โ€” Interface; entry .. Public TypeScript interface ConversationEvent.
  • ConversationEventOptions โ€” Interface; entry .. Public TypeScript interface ConversationEventOptions.
  • ConversationEventPage โ€” Interface; entry .. A cursor page returned by a read or a waited write, with the conversation's state when the
  • ConversationHandoff โ€” Type; entry .. Whether the Company is looking for a person (ยง8.7, ยง8.9).
  • ConversationReceipt โ€” Interface; entry .. What a successful POST without wait returns (ยง8.3): the Company accepted the request, not
  • ConversationRequestOptions โ€” Interface; entry .. Public TypeScript interface ConversationRequestOptions.
  • ConversationResponder โ€” Type; entry .. Public TypeScript type ConversationResponder.
  • ConversationResponse โ€” Type; entry .. Public TypeScript type ConversationResponse.
  • conversationState โ€” Function; entry .. The four state fields of a read or a receipt (ยง8.7).
  • ConversationState โ€” Interface; entry .. Where a conversation stands, in four fields each independent of the others (ยง8.7).
  • ConversationStreamOptions โ€” Interface; entry .. Public TypeScript interface ConversationStreamOptions.
  • createPapCorePlugin โ€” Function; entry .. Public TypeScript function createPapCorePlugin.
  • CROSS_DEVICE_LIFETIME_SECONDS โ€” Const; entry .. The longest a Direct Sign-In request lives when its link opens on another device: a
  • declinedFrom โ€” Function; entry .. The decline a Company answered an approval with, or undefined (Operations 6).
  • DEFAULT_CACHE_BOUNDS โ€” Const; entry .. At least a minute, at most a day (the Guides' example bounds).
  • DEFAULT_PROTOCOL_VERSION โ€” Const; entry .. The version used unless a Personal Agent or a Company names others: 1.0 as published.
  • DelegatedKey โ€” Interface; entry .. One delegated key, its delegation, and when the delegation expires (ยง5.2).
  • DelegatedKeyCustody โ€” Interface; entry .. Where delegated keys live: one current key per User ID, replaced when it rotates.
  • DelegatedKeyWho โ€” Interface; entry .. Public TypeScript interface DelegatedKeyWho.
  • DelegatedSessionSigner โ€” Class; entry .. pap.sessionSigner: a delegated key per User ID signs each request's Session JWT (ยง5.2).
  • DelegatedSessionSignerOptions โ€” Interface; entry .. Public TypeScript interface DelegatedSessionSignerOptions.
  • DELEGATION_MAX_LIFETIME_SECONDS โ€” Const; entry .. A delegation expires at most this long after it is issued (ยง5.2).
  • DELEGATION_TYPE โ€” Const; entry .. A delegation's typ (ยง5.2).
  • delegationClaims โ€” Function; entry .. A delegation's claims (ยง5.2): iss, cnf.jwk, iat, exp, jti, nothing else.
  • DerivedPairwiseUserIds โ€” Class; entry .. A pap.pairwiseUserIdStore that derives each ID with a keyed hash, and replaces one User's
  • derivePairwiseUserId โ€” Value; entry .. Public TypeScript value derivePairwiseUserId.
  • DEVICE_CODE_GRANT โ€” Const; entry .. Public TypeScript const DEVICE_CODE_GRANT.
  • DeviceSignInBeginOptions โ€” Interface; entry .. Public TypeScript interface DeviceSignInBeginOptions.
  • DeviceSignInClient โ€” Class; entry .. PAP Device Sign-In with private device codes and Reactor-backed refresh tokens.
  • DeviceSignInClientOptions โ€” Interface; entry .. Public TypeScript interface DeviceSignInClientOptions.
  • DeviceSignInPoll โ€” Interface; entry .. Public TypeScript interface DeviceSignInPoll.
  • DeviceSignInStart โ€” Interface; entry .. User-facing device instructions without the private device code.
  • DirectSignInBeginOptions โ€” Interface; entry .. Plain OAuth: the sign-in names no Session, and any of the User's Sessions uses its tokens (ยง5.4).
  • DirectSignInCallback โ€” Interface; entry .. Public TypeScript interface DirectSignInCallback.
  • DirectSignInClient โ€” Class; entry .. Orchestrate one-use browser authorization and the code exchange.
  • DirectSignInClientOptions โ€” Interface; entry .. Public TypeScript interface DirectSignInClientOptions.
  • DirectSignInCompleteOptions โ€” Interface; entry .. Public TypeScript interface DirectSignInCompleteOptions.
  • DirectSignInOptions โ€” Interface; entry .. Public TypeScript interface DirectSignInOptions.
  • DirectSignInRequest โ€” Interface; entry .. Authorization request state; its URL and PKCE values are secrets.
  • DirectSignInResult โ€” Type; entry .. A completed Direct Sign-In: the access token, and the refresh token's reference.
  • DirectSignInStart โ€” Interface; entry .. Public TypeScript interface DirectSignInStart.
  • Disclosure โ€” Interface; entry .. A notice a Company marks apart from the rest of a message (Disclosures 3), such as an
  • DISCLOSURES_EXTENSION โ€” Const; entry .. Public TypeScript const DISCLOSURES_EXTENSION.
  • DISCLOSURES_VERSION โ€” Const; entry .. Public TypeScript const DISCLOSURES_VERSION.
  • DisclosuresContent โ€” Interface; entry .. The Disclosures extension's content of a Company message, extensions.disclosures.
  • discoverCompany โ€” Function; entry .. Public TypeScript function discoverCompany.
  • DiscoveredCompany โ€” Interface; entry .. A verified poppy.json, its domain's protected resource metadata, and its issuer's.
  • DiscoveryDocument โ€” Interface; entry .. Public TypeScript interface DiscoveryDocument.
  • DiscoveryError โ€” Class; entry .. Public TypeScript class DiscoveryError.
  • DiscoveryOptions โ€” Interface; entry .. Public TypeScript interface DiscoveryOptions.
  • DiscoveryTransport โ€” Interface; entry .. Public TypeScript interface DiscoveryTransport.
  • DiscoveryTransports โ€” Const; entry .. Public TypeScript const DiscoveryTransports.
  • DisplayLike โ€” Type; entry .. Anything shaped like a display: Reactor's Display, or a tool result's _meta["reactor.ui/display"].
  • domainHost โ€” Function; entry .. The host of organization.domain, without the port it names (ยง3.1).
  • DPOP_ALGORITHM โ€” Const; entry .. Public TypeScript const DPOP_ALGORITHM.
  • DPOP_HEADER โ€” Const; entry .. The header that carries a DPoP proof (RFC 9449 ยง4.1).
  • DPOP_NONCE_HEADER โ€” Const; entry .. The header a server gives a DPoP nonce in (RFC 9449 ยง8).
  • DPOP_PROOF_TYPE โ€” Const; entry .. A DPoP proof's typ and alg (ยง4.5, RFC 9449 ยง4.2).
  • DpopKey โ€” Interface; entry .. One DPoP key: thumbprint is what the Company binds a token to (RFC 9449 ยง6).
  • DpopKeyCustody โ€” Interface; entry .. Where DPoP keys live: one per User ID, made on first use.
  • DpopKeyWho โ€” Interface; entry .. Public TypeScript interface DpopKeyWho.
  • dpopNonceAsked โ€” Function; entry .. The nonce a resource's use_dpop_nonce challenge gives, to retry with (RFC 9449 ยง9).
  • dpopProofClaims โ€” Value; entry .. Public TypeScript value dpopProofClaims.
  • DpopProofRequest โ€” Interface; entry .. What one DPoP proof is signed for (ยง4.5, RFC 9449 ยง4.2).
  • DpopProver โ€” Interface; entry .. Sign the DPoP proof of one request (ยง4.5).
  • DpopProvers โ€” Const; entry .. DpopProver: the DPoP proof of a request, when the Company lists ES256 or bound a token.
  • DRAFT_PROTOCOL_REVISION โ€” Const; entry .. The draft 1.1 text implemented: upstream on 2026-11-18 (commit 589743a).
  • DRAFT_PROTOCOL_VERSION โ€” Const; entry .. Upstream's draft 1.1, unpublished: available when named, and it may change.
  • Ed25519OperatorKey โ€” Class; entry .. An operator's Ed25519 key in this process's memory.
  • effectiveChanges โ€” Function; entry .. A hint's changes, with a value this SDK doesn't know read as irreversible (ยง4.4).
  • effectiveContext โ€” Function; entry .. The context the Personal Agent's messages share, in order (ยง8.4): fields a message leaves out
  • emsaPssEncode โ€” Value; entry .. Public TypeScript value emsaPssEncode.
  • ExcludedTask โ€” Interface; entry .. A task the company chose not to offer through the protocol (ยง8.1).
  • ExtensionDescriptor โ€” Interface; entry .. Public TypeScript interface ExtensionDescriptor.
  • extensionDomain โ€” Function; entry .. The domain a third-party extension name is under, else undefined.
  • extensionNameKind โ€” Function; entry .. plain for a protocol-defined name, third-party for domain/name, else invalid.
  • extensionRequired โ€” Function; entry .. The extension a 403 extension_required names, else undefined (ยง3.3).
  • EXTENSIONS_HEADER โ€” Const; entry .. The header the Personal Agent declares the extensions it uses in (ยง3.4).
  • FEEDBACK_DESCRIPTION_MAX_LENGTH โ€” Const; entry .. The longest description a report carries (ยง8).
  • FEEDBACK_TASK_MAX_LENGTH โ€” Const; entry .. The longest task a report carries (ยง8).
  • FeedbackClient โ€” Class; entry .. Send feedback reports in a Session, signed in or out.
  • FeedbackClientOptions โ€” Interface; entry .. Public TypeScript interface FeedbackClientOptions.
  • FeedbackDescriptor โ€” Interface; entry .. Where personal agents report a task the protocol can't do at this company (ยง9.3): feedback
  • FeedbackError โ€” Class; entry .. The company refused a feedback report: invalid_request, rate_limited, a token error.
  • FeedbackReport โ€” Type; entry .. One report of what the company offers no way to do through the protocol (ยง9.3).
  • FeedbackReportOptions โ€” Interface; entry .. Public TypeScript interface FeedbackReportOptions.
  • FetchedPage โ€” Interface; entry .. A website page as the agent's own HTTP client got it. Content from the company (ยง10.1): data
  • fetchMcpServerMetadata โ€” Value; entry .. Public TypeScript value fetchMcpServerMetadata.
  • fetchSkill โ€” Value; entry .. Public TypeScript value fetchSkill.
  • fetchUcpProfile โ€” Value; entry .. Public TypeScript value fetchUcpProfile.
  • finishSignIn โ€” Value; entry .. Public TypeScript value finishSignIn.
  • firstContribution โ€” Function; entry .. Public TypeScript function firstContribution.
  • formatExtensionsHeader โ€” Function; entry .. Poppy-Extensions (ยง3.4): an RFC 9651 List of Strings, each an extension's name with its
  • generatePairwiseUserId โ€” Function; entry .. Public TypeScript function generatePairwiseUserId.
  • generateRequestId โ€” Function; entry .. A request ID with at least 128 random bits, unique for the User (ยง8.3, guides).
  • IdentityError โ€” Class; entry .. Public TypeScript class IdentityError.
  • IdentityRequestOptions โ€” Interface; entry .. Public TypeScript interface IdentityRequestOptions.
  • implementedProtocolVersions โ€” Function; entry .. The versions a Personal Agent implements: versions as given, each one this SDK implements
  • implementedVersionFor โ€” Function; entry .. The version a Personal Agent names in Poppy-Version when it uses a Company at chosen
  • inertSummary โ€” Function; entry .. A summary whose links, images and HTML show as text, wherever it is rendered.
  • InMemoryDelegatedKeys โ€” Class; entry .. Delegated keys in this process's memory, one per User ID.
  • InMemoryDpopKeys โ€” Class; entry .. DPoP keys in this process's memory, one per User ID.
  • InMemoryProtocolCache โ€” Class; entry .. Default pap.cache: a bounded, least-recently-used map in one process.
  • InProcessRefreshTokenLock โ€” Class; entry .. One in-process lock per reference: the default refresh token lock.
  • isLoopbackRedirect โ€” Function; entry .. A loopback redirect URI (RFC 8252 ยง7.3): http to a loopback IP literal, any port.
  • isPapConfirm โ€” Function; entry .. Whether a display is an operation to approve, of the version this SDK reads.
  • isPapConfirmData โ€” Function; entry .. Whether a value is an operation to approve's data, as PapConfirm sends
  • isPapReplies โ€” Function; entry .. Whether a display is what a company answered, of the version this SDK reads.
  • isPapRepliesData โ€” Function; entry .. Whether a value is the data of what a company answered, as PapReplies
  • isPapSessionShown โ€” Function; entry .. Whether a value is a PapSessionShown: a 12-hex-digit reference and signed_in, nothing else.
  • isPublicLoopbackRedirect โ€” Function; entry .. A public client's loopback redirect URI (RFC 8252 ยง7.3, ยง8.3): http to 127.0.0.1,
  • JOSE_ALGORITHMS โ€” Const; entry .. The algorithms a key in jwks_uri signs client assertions and delegations with (ยง4.1, ยง5.2).
  • JoseAlgorithm โ€” Type; entry .. Public TypeScript type JoseAlgorithm.
  • JoseDpopProver โ€” Class; entry .. pap.dpopProver: a fresh proof for each request, by the Company's DPoP key (ยง4.5).
  • JoseDpopProverOptions โ€” Interface; entry .. Public TypeScript interface JoseDpopProverOptions.
  • JsonWebKey โ€” Interface; entry .. Public TypeScript interface JsonWebKey.
  • JsonWebKeySet โ€” Interface; entry .. Public TypeScript interface JsonWebKeySet.
  • JwksRequestOptions โ€” Interface; entry .. Public TypeScript interface JwksRequestOptions.
  • jwkThumbprint โ€” Function; entry .. A public JWK's RFC 7638 SHA-256 thumbprint: a Session JWT's kid (ยง5.2).
  • JWT_CLIENT_ASSERTION โ€” Const; entry .. Public TypeScript const JWT_CLIENT_ASSERTION.
  • KNOWN_API_TYPES โ€” Const; entry .. The API types this SDK speaks.
  • KNOWN_CONVERSATION_ERRORS โ€” Const; entry .. The conversation error codes this version defines (ยง7, ยง8.13, ยง5.6, ยง3.3): a code outside them
  • knownApis โ€” Function; entry .. The advertised APIs of a type this SDK speaks, in the company's order.
  • knownAuthorType โ€” Function; entry .. An author.type this SDK doesn't recognize reads as agent (ยง8.4): a message is a person's
  • knownConversationError โ€” Function; entry .. code when this version defines it, else fallback: an error a later version or an extension
  • knownHandoff โ€” Function; entry .. A handoff this SDK doesn't recognize reads as pending (ยง8.7).
  • knownResponder โ€” Function; entry .. A responder this SDK doesn't recognize reads as human (ยง8.7).
  • knownRole โ€” Function; entry .. A role this SDK doesn't recognize reads as company (ยง8.4): content from the Company, never
  • Link โ€” Interface; entry .. A web page a Company message refers to (Links 3): its HTTPS url, and its title as the
  • LINKS_EXTENSION โ€” Const; entry .. Public TypeScript const LINKS_EXTENSION.
  • LINKS_VERSION โ€” Const; entry .. Public TypeScript const LINKS_VERSION.
  • LinksContent โ€” Interface; entry .. The Links extension's content of a Company message, extensions.links (Links 3).
  • LISTED_TASK_ID โ€” Const; entry .. A listed task's ID (ยง9.3): lowercase letters, digits, - and _, at most 64 characters.
  • LISTED_TASKS_SINCE โ€” Const; entry .. The protocol version that defines feedback.tasks and reports by task_ids (ยง9.3).
  • listedReport โ€” Function; entry .. A report of listed tasks, by their IDs from SessionTasks.listedTasks (ยง9.3).
  • ListedTask โ€” Interface; entry .. A task the Company already knows can't be done, listed in feedback.tasks with an ID to
  • listsOfflineAccess โ€” Function; entry .. Whether the issuer lists offline_access in scopes_supported (ยง4.4): a Personal Agent
  • listsResource โ€” Function; entry .. Whether protected_resources names https://{domain} (ยง3.2).
  • MAX_LISTED_TASKS โ€” Const; entry .. The most tasks a Company lists in feedback.tasks (ยง9.3): a Personal Agent that gets more
  • mayReplaceUnused โ€” Function; entry .. Whether a Personal Agent may replace an ID on its own (ยง5.1): 28 days have passed since it
  • MCP_PROTOCOL_VERSION โ€” Const; entry .. Public TypeScript const MCP_PROTOCOL_VERSION.
  • mcpApi โ€” Function; entry .. The company's MCP server, when it lists one.
  • McpClient โ€” Class; entry .. Initialize, list, and call tools on one MCP server, in a Session (ยง7).
  • McpClientOptions โ€” Interface; entry .. Public TypeScript interface McpClientOptions.
  • McpError โ€” Class; entry .. The MCP server refused a request; code is its token or JSON-RPC error.
  • McpServerMetadata โ€” Type; entry .. An MCP server's protected resource metadata (RFC 9728, ยง7).
  • McpSessionAuth โ€” Class; entry .. The Session header, and signed in a token, to one MCP server's URL only (ยง7).
  • McpToolResult โ€” Interface; entry .. A tool's answer; operation is set when it needs the user's approval (Operations 4).
  • MEDIATED_EXTENSION โ€” Value; entry .. Public TypeScript value MEDIATED_EXTENSION.
  • MEDIATED_GRANT โ€” Const; entry .. The Mediated Sign-In extension's grant type (Mediated Sign-In 2).
  • MEDIATED_RETIREMENT_DATE โ€” Const; entry .. The day the protocol plans to retire the Mediated Sign-In extension (Mediated Sign-In 1, from
  • MEDIATED_VERSION โ€” Const; entry .. Public TypeScript const MEDIATED_VERSION.
  • mediatedSignIn โ€” Function; entry .. What the company's Mediated Sign-In asks for, or undefined when it offers none.
  • MediatedSignInClient โ€” Class; entry .. Sign in with the user's credentials at the issuer's token endpoint, once.
  • MediatedSignInClientOptions โ€” Interface; entry .. Public TypeScript interface MediatedSignInClientOptions.
  • MediatedSignInOptions โ€” Interface; entry .. Public TypeScript interface MediatedSignInOptions.
  • MediatedSignInResult โ€” Interface; entry .. Where a Mediated Sign-In stands, without any credential.
  • Message โ€” Interface; entry .. A message sent by either side, or returned in a conversation event (ยง8.4).
  • MESSAGE_ROLES โ€” Const; entry .. The message roles this version defines (ยง8.4).
  • messageApproval โ€” Function; entry .. A Personal Agent message's approval: only this approves, never text (Operations 6).
  • messageDeclined โ€” Function; entry .. A Company message's decline of an approval: nothing was performed (Operations 6).
  • messageDisclosures โ€” Function; entry .. The notices a Company message marks apart (Disclosures 3); none without the extension.
  • MessageExtensions โ€” Type; entry .. Content extensions define in a message, keyed by extension name (ยง8.4). Each value is the
  • messageLinks โ€” Function; entry .. The web pages a Company message refers to (Links 3); none without the extension.
  • messageOperation โ€” Function; entry .. A Company message's operation, for the User's approval (Operations 4).
  • MetadataCache โ€” Class; entry .. Public TypeScript class MetadataCache.
  • MIN_MODULUS_BITS โ€” Const; entry .. Smaller moduli are refused (RFC 9474 ยง7; 3072 bits is suggested).
  • needsIssuer โ€” Function; entry .. Whether the Company offers sign-in, which needs an OAuth issuer (ยง3.2).
  • negotiateExtensions โ€” Function; entry .. The extensions this agent uses with a Company, one version each (ยง3.3, ยง3.4): for each
  • newApprovalReference โ€” Function; entry .. A reference for one approval (Operations 6): apr_ and 16 random bytes, so it is opaque,
  • newDpopKey โ€” Value; entry .. Public TypeScript value newDpopKey.
  • newIdempotencyKey โ€” Function; entry .. A fresh key for a write: a random UUID (version 4).
  • newOperatorKey โ€” Value; entry .. Public TypeScript value newOperatorKey.
  • newSessionId โ€” Function; entry .. A new sid: 128 random bits, 22 URL-safe characters, never used again (ยง5.2).
  • normalizedHtu โ€” Function; entry .. htu: the request's URL without its query or fragment (ยง5.2).
  • OauthRequest โ€” Interface; entry .. A form request to an OAuth endpoint, about to be sent.
  • OAuthServerMetadata โ€” Interface; entry .. The issuer's RFC 8414 metadata, with the fields this protocol requires (ยง3.2).
  • offersDevice โ€” Function; entry .. Whether the Company offers Device Sign-In (ยง3.2, ยง4.4).
  • offersDirect โ€” Function; entry .. Whether the Company offers Direct Sign-In (ยง3.2, ยง4.4).
  • OFFLINE_ACCESS_SCOPE โ€” Const; entry .. The scope that asks for a refresh token (OpenID Connect Core ยง11, ยง4.4): requested in every
  • onCompanyHost โ€” Function; entry .. Whether host is organization.domain or one of its subdomains: the only pages that get
  • openapiUrl โ€” Function; entry .. The company's OpenAPI description, when it advertises one.
  • openTelemetrySink โ€” Function; entry .. pap.telemetry as OpenTelemetry spans: one per event, from tracer (for example
  • OpenTelemetryTracer โ€” Interface; entry .. The part of an OpenTelemetry API Tracer the adapter uses.
  • Operation โ€” Interface; entry .. One action the Company performs once it is approved (Operations 3).
  • OPERATION_HEADER โ€” Const; entry .. The header that carries a website's reference to an operation (Operations 4).
  • OPERATION_REFERENCE โ€” Const; entry .. A website's reference: at most 2048 characters of A-Z a-z 0-9 - _ . (Operations 4).
  • OperationError โ€” Class; entry .. An operation could not be approved, or its approval could not be sent.
  • operationFrom โ€” Function; entry .. The one operation object, from whichever interface carried it (Operations 4).
  • OperationReference โ€” Interface; entry .. A website's reference to an operation (Operations 4): the sid of the Session the website
  • operationReferenceHeader โ€” Function; entry .. The value of Poppy-Operation: a Dictionary with sid and ref as Strings.
  • OPERATIONS_EXTENSION โ€” Const; entry .. PAP Operations extension, version 3: exact approval, at most once.
  • OPERATIONS_VERSION โ€” Const; entry .. The version this SDK implements, and the only one: version 2 is incompatible with it (another
  • OperationsClient โ€” Class; entry .. Approve an operation, as the user or on the user's instruction, and send the approval at
  • OperationsClientOptions โ€” Interface; entry .. Public TypeScript interface OperationsClientOptions.
  • operationsContent โ€” Function; entry .. A message's extensions carrying the Operations extension's content (Operations 2).
  • OperationsContent โ€” Interface; entry .. The Operations extension's content of a message, extensions.operations (Operations 2):
  • operationsEndpoint โ€” Function; entry .. The endpoint of the Company's operations entry at this version, or undefined.
  • operationShown โ€” Function; entry .. The terms as a host shows them (Operations 5): the summary when there is one, else the
  • operationsNegotiated โ€” Function; entry .. Whether the Company lists operations at this version and the Session declares it
  • OPERATOR_DIRECTORY_MEDIA_TYPE โ€” Const; entry .. Public TypeScript const OPERATOR_DIRECTORY_MEDIA_TYPE.
  • OPERATOR_DIRECTORY_PATH โ€” Const; entry .. The well-known URL of an operator's directory, and its media type (Web Bot Auth ยง8).
  • OPERATOR_SIGNATURE_ALGORITHM โ€” Const; entry .. The RFC 9421 algorithm these signatures use.
  • OPERATOR_SIGNATURE_REFUSED โ€” Const; entry .. A Company's refusal of a signature, at 403: this SDK's code, as the spec names none.
  • operatorDirectory โ€” Function; entry .. The JWK Set a host serves at its Signature-Agent URL (Web Bot Auth ยง5.5.1).
  • operatorKeyFrom โ€” Value; entry .. Public TypeScript value operatorKeyFrom.
  • OperatorKeys โ€” Type; entry .. Keys published at a Signature-Agent URL: the URL and the keyid asked of it.
  • OperatorSignature โ€” Interface; entry .. The values of the three headers of a signed request (Web Bot Auth ยง5.2.5).
  • operatorSignatureBase โ€” Function; entry .. The bytes the first web-bot-auth signature of headers signed (RFC 9421 ยง2.5).
  • OperatorSignatureRequest โ€” Interface; entry .. What one operator signature is signed for (ยง5.3, RFC 9421).
  • OperatorSigner โ€” Interface; entry .. Sign one request, as its operator (ยง5.3): one that carries the Session header, or one to the
  • OperatorSigners โ€” Const; entry .. OperatorSigner: the operator signature of a request with the Session header; none, and
  • OperatorSigningKey โ€” Interface; entry .. An operator's key: keyid is its RFC 8037 thumbprint, and it signs with Ed25519.
  • OperatorTrust โ€” Type; entry .. Whether a Company reads the directory at a Signature-Agent URL at all.
  • OperatorVerdict โ€” Interface; entry .. What one request's operator signature came to (Web Bot Auth, appendix C.1).
  • optionalContribution โ€” Function; entry .. The highest-priority provider for an optional PAP point, undefined when there is none.
  • Organization โ€” Interface; entry .. Who the Company says it is (ยง3.1). domain is its identity; name and logo_uri are what the
  • organizationLabel โ€” Function; entry .. The Company's name with its domain beside it, Manzanita (manzanita.example); only the
  • pageCarriesSession โ€” Function; entry .. Whether a page fetch carries the Session header (ยง5.2): an HTTPS URL whose host is exactly
  • PageClient โ€” Class; entry .. Fetch a company's website pages without a browser, in a Session, signed out.
  • PageClientOptions โ€” Interface; entry .. Public TypeScript interface PageClientOptions.
  • PageControl โ€” Interface; entry .. A listed element (input, select, button, โ€ฆ) and the form that owns it: form is the
  • PageFetchOptions โ€” Interface; entry .. Public TypeScript interface PageFetchOptions.
  • PageForm โ€” Interface; entry .. A form on the page: its position, id, action, method, and its mark.
  • PageMarks โ€” Class; entry .. The marked steps of one page, read from its HTML (Browser Control 4). Marks add up: a
  • pageMarks โ€” Function; entry .. The forms, controls and marks of a page's HTML (Browser Control 4).
  • PAIRWISE_KEY_MIN_BYTES โ€” Const; entry .. The shortest key derivePairwiseUserId takes: 256 bits.
  • PairwiseCounters โ€” Interface; entry .. One counter for each User and Company, zero until increased: what a keyed hash includes to
  • PairwiseUserIdStore โ€” Interface; entry .. Public TypeScript interface PairwiseUserIdStore.
  • PairwiseUserIdStores โ€” Const; entry .. Public TypeScript const PairwiseUserIdStores.
  • PairwiseWho โ€” Interface; entry .. One User at one Company: the tenant, the internal user ID, the Company's identifier.
  • PAP_ACTION_CLASSES โ€” Const; entry .. Every PapActionClass, in the Rules' order.
  • PAP_CONFIRM_TYPE โ€” Const; entry .. The display type of an operation a company returned (Operations 5): waiting for approval,
  • PAP_CONFIRM_VERSION โ€” Const; entry .. The version of PAP_CONFIRM_TYPE this module reads.
  • PAP_HANDOFFS โ€” Const; entry .. Every PapHandoff.
  • PAP_REPLIES_TYPE โ€” Const; entry .. The display type of what a company answered in a conversation.
  • PAP_REPLIES_VERSION โ€” Const; entry .. The version of PAP_REPLIES_TYPE this module reads: 2 names the conversation, 3 gives
  • PapActionClass โ€” Type; entry .. What approving an operation does, as an application's Rules class it.
  • PapConfirmData โ€” Type; entry .. An operation a company returned, as a display's data (PapConfirm's fields).
  • papConfirmDisplay โ€” Function; entry .. An operation to approve as its display, text included; throws when data is not one.
  • PapConfirmDisplay โ€” Type; entry .. A display of an operation to confirm, as the page receives it.
  • papConfirmText โ€” Function; entry .. What an operation reads as without a renderer: PapConfirm.text(), word for word.
  • PapCoreOptions โ€” Interface; entry .. Public TypeScript interface PapCoreOptions.
  • PapDeclined โ€” Type; entry .. A company's decline of an approval (Operations 6): nothing was done. reason is the
  • PapHandoff โ€” Type; entry .. Whether the company is looking for a person (ยง8.7, ยง8.9), apart from who answers.
  • PapLink โ€” Type; entry .. A web page a reply refers to (Links 3): its HTTPS url and its title, else null. The
  • papLinkHost โ€” Function; entry .. Where a link goes, for the person to see (guides: show each link's domain).
  • PapRepliesData โ€” Type; entry .. What a company answered, as a display's data (PapReplies' fields).
  • papRepliesDisplay โ€” Function; entry .. What a company answered as its display, text included; throws when data is not one.
  • PapRepliesDisplay โ€” Type; entry .. A display of what a company answered, as the page receives it.
  • papRepliesText โ€” Function; entry .. What the replies read as without a renderer: PapReplies.text(), word for word.
  • PapReply โ€” Type; entry .. One message a company wrote, and who wrote it there: its agent or one of its people
  • PapSession โ€” Class; entry .. One Session: a User at one Company through this personal agent (ยง5).
  • PapSessionJson โ€” Interface; entry .. What a Session is, as a host keeps it (PapSession.toJson).
  • PapSessionShown โ€” Type; entry .. The Session an operation is approved in: a one-way reference (12 hex
  • PapTermsWas โ€” Type; entry .. The revision a revised operation replaced, and its terms.
  • parseAlternative โ€” Function; entry .. Public TypeScript function parseAlternative.
  • parseAlternativeReference โ€” Function; entry .. Public TypeScript function parseAlternativeReference.
  • parseApproval โ€” Function; entry .. Public TypeScript function parseApproval.
  • parseApprovalDeclined โ€” Function; entry .. Public TypeScript function parseApprovalDeclined.
  • parseApprovalHeader โ€” Function; entry .. The approval a Poppy-Approval value states, or undefined.
  • parseAuthor โ€” Function; entry .. Who wrote a message (ยง7.4): type, and the Company's optional id, name, image.
  • parseClientMetadata โ€” Function; entry .. Public TypeScript function parseClientMetadata.
  • parseConversationEvent โ€” Function; entry .. Public TypeScript function parseConversationEvent.
  • parseConversationEventPage โ€” Function; entry .. Public TypeScript function parseConversationEventPage.
  • parseConversationState โ€” Function; entry .. The four state fields of a response, read as ยง8.7 says (parseConversationEventPage uses it).
  • parseDisclosuresContent โ€” Function; entry .. Public TypeScript function parseDisclosuresContent.
  • parseDiscoveryDocument โ€” Function; entry .. A poppy.json, checked (ยง3.1). Its version, or one it links to, must be compatible with one
  • parseExtensionsHeader โ€” Function; entry .. The extensions a request declares (ยง3.4): the Poppy-Extensions List of Strings, each with
  • parseFeedbackReport โ€” Function; entry .. A report to send, checked: task 1..200 and description 1..2000, or task_ids, one or
  • parseJsonStrict โ€” Function; entry .. Parse JSON while rejecting duplicate object member names at every depth.
  • parseJsonWebKeySet โ€” Function; entry .. Public TypeScript function parseJsonWebKeySet.
  • parseLinksContent โ€” Function; entry .. Public TypeScript function parseLinksContent.
  • parseMessage โ€” Function; entry .. Public TypeScript function parseMessage.
  • parseOAuthServerMetadata โ€” Function; entry .. Public TypeScript function parseOAuthServerMetadata.
  • parseOperation โ€” Function; entry .. Public TypeScript function parseOperation.
  • parseOperationHeader โ€” Function; entry .. The reference a Poppy-Operation value states, or undefined.
  • parseOperationsContent โ€” Function; entry .. Public TypeScript function parseOperationsContent.
  • parseProtectedResourceMetadata โ€” Function; entry .. Public TypeScript function parseProtectedResourceMetadata.
  • parsePublicClientMetadata โ€” Function; entry .. Public TypeScript function parsePublicClientMetadata.
  • parseRetryAfter โ€” Function; entry .. Retry-After in seconds (delta-seconds or an HTTP date), or undefined.
  • parseTasksResponse โ€” Function; entry .. Public TypeScript function parseTasksResponse.
  • parseTokenResponse โ€” Function; entry .. A token endpoint's JSON answer (ยง4.7).
  • parseUcpProfile โ€” Function; entry .. The ucp member of a UCP profile document, checked.
  • parseVersion โ€” Function; entry .. major.minor as numbers, or ProtocolValidationError.
  • PersonalAgentProtocolError โ€” Class; entry .. Safe base error for Personal Agent Protocol failures.
  • preferredSignIn โ€” Function; entry .. The sign-in type to use (ยง4): Direct Sign-In when the Company offers it, else Device Sign-In,
  • PROMPT_CONSENT โ€” Const; entry .. The OpenID Connect prompt a Direct Sign-In request carries (OpenID Connect Core ยง3.1.2.1,
  • ProofError โ€” Class; entry .. Public TypeScript class ProofError.
  • ProtectedInput โ€” Interface; entry .. The host's trusted input surface: answers never pass through a model.
  • ProtectedInputField โ€” Interface; entry .. Public TypeScript interface ProtectedInputField.
  • ProtectedInputRequest โ€” Interface; entry .. What the host must ask the user for, outside any model (PAP ยง4.7).
  • ProtectedInputs โ€” Const; entry .. Public TypeScript const ProtectedInputs.
  • ProtectedResourceMetadata โ€” Interface; entry .. RFC 9728 protected resource metadata, with the fields this protocol uses (ยง3.2, ยง4.5).
  • protectedResourceMetadataUrl โ€” Function; entry .. Where a resource's RFC 9728 metadata is (RFC 9728 ยง3.1): the well-known path first.
  • PROTOCOL_PROFILE โ€” Const; entry .. The Personal Agent Protocol version implemented: 0.4 as published, the 1.0 release candidate.
  • PROTOCOL_REVISION โ€” Const; entry .. The upstream specification revision implemented: the day 0.4 was published (commit 4803900).
  • ProtocolCache โ€” Interface; entry .. Public TypeScript interface ProtocolCache.
  • ProtocolValidationError โ€” Class; entry .. Public TypeScript class ProtocolValidationError.
  • PublicClientMetadata โ€” Interface; entry .. The client ID metadata document of a public client: an MCP client, never a personal agent.
  • publicClientName โ€” Function; entry .. A public client's name as a consent page shows it (RangeError otherwise): text of 1 to 100
  • publicJwk โ€” Function; entry .. A public JWK with no private member: refused otherwise (ยง5.2).
  • publicRedirectUri โ€” Function; entry .. A redirect URI a public client may name: loopback, or HTTPS (RangeError otherwise).
  • publicRedirectUriMatches โ€” Function; entry .. Whether given is the redirect URI a public client registered.
  • PUBLISHED_PROTOCOL_REVISION โ€” Const; entry .. The 1.0 text implemented: 1.0 as published and frozen on 2026-11-14 (commit 8c02b42).
  • PUBLISHED_PROTOCOL_VERSION โ€” Const; entry .. Protocol version 1.0 as published, the default.
  • RandomBytes โ€” Type; entry .. Public TypeScript type RandomBytes.
  • RandomSource โ€” Interface; entry .. Public TypeScript interface RandomSource.
  • RandomSources โ€” Const; entry .. Public TypeScript const RandomSources.
  • RateLimitBudget โ€” Interface; entry .. A company's request budget, shared by every task and user of the host.
  • RateLimitBudgets โ€” Const; entry .. Public TypeScript const RateLimitBudgets.
  • ReadUntilDoneOptions โ€” Interface; entry .. Public TypeScript interface ReadUntilDoneOptions.
  • RecordingTelemetrySink โ€” Class; entry .. pap.telemetry in memory: every event, in order.
  • REDIRECT_STATUSES โ€” Const; entry .. The statuses of an HTTP redirect.
  • redirectUriMatches โ€” Function; entry .. Whether given is the redirect URI registered names (ยง4.1, ยง4.5).
  • REFRESH_TOKEN_GRANT โ€” Const; entry .. Public TypeScript const REFRESH_TOKEN_GRANT.
  • RefreshOptions โ€” Interface; entry .. Public TypeScript interface RefreshOptions.
  • RefreshResult โ€” Interface; entry .. What a refresh did, without the refresh token itself.
  • RefreshTokenClient โ€” Class; entry .. Use a stored refresh token without ever handing it to a caller.
  • RefreshTokenClientOptions โ€” Interface; entry .. Public TypeScript interface RefreshTokenClientOptions.
  • RefreshTokenContext โ€” Interface; entry .. Where a refresh token is used, and for whom (all non-secret).
  • RefreshTokenLock โ€” Interface; entry .. Serialize every use of one refresh token: rotation invalidates the one replaced (ยง4.4).
  • RefreshTokenLocks โ€” Const; entry .. Public TypeScript const RefreshTokenLocks.
  • refusalCode โ€” Function; entry .. The error a refusal names: in its JSON body, else its WWW-Authenticate challenge.
  • refusalDetails โ€” Function; entry .. What a refusal says besides its code: extension, scope, retry_after.
  • refuseRedirect โ€” Value; entry .. Public TypeScript value refuseRedirect.
  • ReplaceablePairwiseUserIdStore โ€” Interface; entry .. A pap.pairwiseUserIdStore that can replace one User's ID at one Company (ยง5.1): a store of
  • ReplacedUserId โ€” Interface; entry .. A replacement that was made: the new User ID, and what signing out did first.
  • ReplacementReason โ€” Type; entry .. Why an ID is replaced (ยง5.1): the User asked, or it went unused.
  • replaceUserId โ€” Value; entry .. Public TypeScript value replaceUserId.
  • ReplaceUserIdOptions โ€” Interface; entry .. Public TypeScript interface ReplaceUserIdOptions.
  • requestScope โ€” Function; entry .. The scope parameter of a sign-in request, or of a refresh that asks for fewer scopes
  • requireOauth โ€” Function; entry .. The issuer's metadata, or AuthorizationError, before any sign-in: no_issuer for a
  • resolvePairwiseUserId โ€” Value; entry .. Public TypeScript value resolvePairwiseUserId.
  • resourceMetadata โ€” Value; entry .. Public TypeScript value resourceMetadata.
  • RetryPolicies โ€” Const; entry .. Public TypeScript const RetryPolicies.
  • RetryPolicy โ€” Class; entry .. When to retry a refused request (Guides, retries).
  • RevocationResult โ€” Interface; entry .. A revocation the company acknowledged; the local copy is gone.
  • RsaBlindSigningKey โ€” Class; entry .. A reference BlindSigningKey: an RSA key of 2048 bits or more (3072 suggested).
  • safeAttributes โ€” Function; entry .. The allowlisted attributes of values; undefined and failing values are dropped.
  • SCOPE_CHANGES โ€” Const; entry .. changes values a scope hint may give (ยง4.4); any other is read as irreversible.
  • ScopeChanges โ€” Type; entry .. Public TypeScript type ScopeChanges.
  • scopeDescriptions โ€” Function; entry .. What each scope allows, in the Company's words (ยง4.7).
  • ScopeHint โ€” Interface; entry .. What a scope allows, its most consequential operation (ยง4.4): a Company's claim.
  • scopesSupported โ€” Function; entry .. The scopes the Company says a Personal Agent can request (ยง3.2, ยง4.7): the issuer's
  • scopesToRequest โ€” Function; entry .. The scopes a new sign-in asks for when a task needs more access (ยง4.7).
  • SecretValue โ€” Class; entry .. Redacted wrapper for credentials and other protocol secrets.
  • SEND_ATTEMPTS โ€” Const; entry .. How many times send sends an approval, unless told otherwise.
  • serviceMetadata โ€” Value; entry .. Public TypeScript value serviceMetadata.
  • serviceResource โ€” Value; entry .. Public TypeScript value serviceResource.
  • ServiceTokens โ€” Class; entry .. The access tokens of one account, one per service that asks for its own (ยง4.5).
  • ServiceTokensOptions โ€” Interface; entry .. Public TypeScript interface ServiceTokensOptions.
  • SESSION_HEADER โ€” Const; entry .. The header that carries the Session JWT (ยง5.2).
  • SESSION_JWT_ALGORITHM โ€” Const; entry .. Public TypeScript const SESSION_JWT_ALGORITHM.
  • SESSION_JWT_TYPE โ€” Const; entry .. A Session JWT's typ and alg (ยง5.2).
  • SessionClient โ€” Class; entry .. Start Sessions, and send grants to the company's token endpoint (ยง4, ยง5).
  • SessionClientOptions โ€” Interface; entry .. Public TypeScript interface SessionClientOptions.
  • sessionEnded โ€” Value; entry .. Public TypeScript value sessionEnded.
  • SessionError โ€” Class; entry .. Public TypeScript class SessionError.
  • SessionFetchClient โ€” Class; entry .. Send requests with the Session header; a redirect is refused, never followed (ยง3).
  • SessionFetchClientOptions โ€” Interface; entry .. Public TypeScript interface SessionFetchClientOptions.
  • SessionFetchRequestOptions โ€” Interface; entry .. Public TypeScript interface SessionFetchRequestOptions.
  • sessionHeaders โ€” Value; entry .. Public TypeScript value sessionHeaders.
  • sessionJwtClaims โ€” Value; entry .. Public TypeScript value sessionJwtClaims.
  • SessionJwtRequest โ€” Interface; entry .. Inputs for one request's Session JWT (ยง5.2).
  • SessionSigner โ€” Interface; entry .. Sign the Session JWT of one request with a delegated key whose private half it keeps
  • SessionSigners โ€” Const; entry .. Public TypeScript const SessionSigners.
  • SessionStartOptions โ€” Interface; entry .. Public TypeScript interface SessionStartOptions.
  • SessionTasks โ€” Interface; entry .. A Company's tasks response in one Session (ยง9): never used in another.
  • SharedRateLimitBudget โ€” Class; entry .. Default pap.rateLimitBudget: per-company budgets in one process.
  • SIGN_IN_TYPES โ€” Const; entry .. The sign-in types, in the order a Personal Agent prefers them (ยง4): Direct Sign-In is the
  • SIGNATURE_AGENT_HEADER โ€” Const; entry .. Public TypeScript const SIGNATURE_AGENT_HEADER.
  • SIGNATURE_HEADER โ€” Const; entry .. The headers of a signed request (RFC 9421 ยง4; Web Bot Auth ยง5.2.5).
  • SIGNATURE_INPUT_HEADER โ€” Const; entry .. Public TypeScript const SIGNATURE_INPUT_HEADER.
  • Signer โ€” Interface; entry .. Public TypeScript interface Signer.
  • Signers โ€” Const; entry .. Public TypeScript const Signers.
  • signInDisabled โ€” Function; entry .. Whether the Company turned sign-in off (auth.disabled, ยง3.2): a Personal Agent starts no
  • SignInResult โ€” Interface; entry .. A completed sign-in (ยง4.7): the access token, and the refresh token's reference.
  • signInScopes โ€” Function; entry .. For an authorization event, the scopes to sign in again for (ยง5.4, ยง8.11): those in scope,
  • SignInType โ€” Type; entry .. Public TypeScript type SignInType.
  • signInTypes โ€” Function; entry .. The sign-in types the Company offers a Personal Agent, in the order it prefers them (ยง4):
  • signOauthRequest โ€” Value; entry .. Public TypeScript value signOauthRequest.
  • signOperatorRequest โ€” Value; entry .. Public TypeScript value signOperatorRequest.
  • SignOperatorRequestOptions โ€” Interface; entry .. Public TypeScript interface SignOperatorRequestOptions.
  • SignOutResult โ€” Interface; entry .. Sign-out (ยง5.5): how many refresh tokens were revoked, and whether all were.
  • SKILL_INDEX_SCHEMA โ€” Const; entry .. The Agent Skills discovery draft revision skill_index pins (ยง9.4): the $schema an index
  • SKILL_TYPES โ€” Const; entry .. The artifact types the SDK recognizes (ยง9.4): a single SKILL.md, or an archive with
  • SkillEntry โ€” Interface; entry .. A skill a Company publishes for Personal Agents acting for the User there (ยง9.4).
  • speaksUcp โ€” Function; entry .. Whether the Company lists the UCP extension at this version (UCP extension 2).
  • splitDomain โ€” Function; entry .. organization.domain as its host and its port, undefined for 443 (ยง3.1).
  • staleResourceMetadata โ€” Function; entry .. Whether a service refused a token not issued for it (ยง4.5).
  • StartConversationOptions โ€” Interface; entry .. Public TypeScript interface StartConversationOptions.
  • StreamItem โ€” Type; entry .. Public TypeScript type StreamItem.
  • StreamReconnected โ€” Interface; entry .. The stream was reopened from Last-Event-ID; drop the partial messages named.
  • SUPPORTED_EXTENSIONS โ€” Const; entry .. Extensions this SDK implements, by name and major version.
  • SUPPORTED_PROTOCOL_VERSIONS โ€” Const; entry .. The protocol versions a Personal Agent implements unless it asks for others (ยง3.4): a
  • TasksClient โ€” Class; entry .. Get a Company's tasks response in a Session, and keep it for that Session only.
  • TasksClientOptions โ€” Interface; entry .. Public TypeScript interface TasksClientOptions.
  • TasksDescriptor โ€” Interface; entry .. Where a Personal Agent gets, for a Session, the tasks the Company chose not to offer, the
  • tasksEndpoint โ€” Function; entry .. The Company's tasks endpoint, when its poppy.json names one (ยง3.1).
  • TasksError โ€” Class; entry .. The tasks endpoint refused the Session header: invalid_session, version_unsupported.
  • TasksGetOptions โ€” Interface; entry .. Public TypeScript interface TasksGetOptions.
  • TasksResponse โ€” Interface; entry .. The response to GET {tasks.endpoint} for one Session (ยง9).
  • TELEMETRY_ATTRIBUTES โ€” Const; entry .. The only attribute names an event may carry, each with the rule its value must pass.
  • TELEMETRY_EVENTS โ€” Const; entry .. Every event the SDK emits, and its stage.
  • TELEMETRY_STAGES โ€” Const; entry .. Public TypeScript const TELEMETRY_STAGES.
  • TelemetryAttributes โ€” Type; entry .. Public TypeScript type TelemetryAttributes.
  • TelemetryEvent โ€” Class; entry .. One finished protocol stage: a span for traces, an event for analytics.
  • TelemetrySink โ€” Interface; entry .. Receive each finished protocol stage (TelemetryEvent of telemetry.ts), redacted already.
  • TelemetrySinks โ€” Const; entry .. TelemetrySink: where traces and analytics events go; none, and nothing is emitted.
  • TelemetryStage โ€” Type; entry .. Public TypeScript type TelemetryStage.
  • TelemetryValue โ€” Type; entry .. Public TypeScript type TelemetryValue.
  • termsDifferences โ€” Function; entry .. Where terms disagree with what the agent asked for, or with the summary.
  • termsLeaves โ€” Function; entry .. The values of an operation's terms, keyed by their dotted paths.
  • TextDelta โ€” Interface; entry .. A piece of a message still being written (SSE text-delta, ยง7.6): for
  • TokenErrorClass โ€” Type; entry .. Error classes a token request raises: each takes (code, message, options).
  • tokenHash โ€” Value; entry .. Public TypeScript value tokenHash.
  • TokenRequestOptions โ€” Interface; entry .. Public TypeScript interface TokenRequestOptions.
  • TokenResponse โ€” Interface; entry .. A token endpoint's answer, as on the wire (ยง4.7): plain OAuth.
  • TokenStore โ€” Interface; entry .. Public TypeScript interface TokenStore.
  • TokenStores โ€” Const; entry .. Public TypeScript const TokenStores.
  • TransportError โ€” Class; entry .. Public TypeScript class TransportError.
  • UCP_AGENT_HEADER โ€” Const; entry .. The header a UCP REST request names the platform profile in (UCP extension 3, 4).
  • UCP_EXTENSION โ€” Const; entry .. The extension's name and version in extensions and Poppy-Extensions (UCP extension 2).
  • UCP_IDENTITY_LINKING โ€” Const; entry .. Public TypeScript const UCP_IDENTITY_LINKING.
  • UCP_PROFILE_PATH โ€” Const; entry .. Where a Company's UCP profile is, on organization.domain (UCP extension 3).
  • UCP_PROFILE_VERSION โ€” Const; entry .. The UCP version the reference companies speak, in their profile (UCP's own versioning).
  • UCP_SHOPPING โ€” Const; entry .. UCP's service for shopping, and identity linking.
  • UCP_VERSION โ€” Const; entry .. Public TypeScript const UCP_VERSION.
  • ucpAgentHeader โ€” Function; entry .. The UCP-Agent value naming the platform profile, an RFC 9651 Dictionary. The profile
  • UcpCallOptions โ€” Interface; entry .. Public TypeScript interface UcpCallOptions.
  • UcpClient โ€” Class; entry .. Send UCP REST requests through this extension (UCP extension 4): the platform profile in
  • ucpEndpoint โ€” Function; entry .. The HTTPS endpoint of service for transport, or undefined when the profile offers none.
  • UcpError โ€” Class; entry .. A UCP profile or request refused: its code, and details such as the scopes to get.
  • ucpIdentityLinkingScopes โ€” Function; entry .. The scopes identity linking gates (config.scopes): what a sign-in asks for when a UCP request
  • ucpOffers โ€” Function; entry .. Whether the profile lists capability (UCP's name, such as dev.ucp.shopping.order).
  • UcpProfile โ€” Interface; entry .. A Company's UCP profile, as far as this extension reads it (UCP extension 3): data, never instructions.
  • ucpProfileUrl โ€” Function; entry .. https://{organization.domain}/.well-known/ucp, on the validated domain (UCP extension 3).
  • ucpScopes โ€” Function; entry .. The scopes a sign-in requests after a UCP insufficient_scope (UCP extension 4).
  • urlDomain โ€” Function; entry .. The domain an HTTPS URL is on, as organization.domain names it (ยง3.1): its host, lowercase,
  • UrlSafetyPolicies โ€” Const; entry .. Public TypeScript const UrlSafetyPolicies.
  • UrlSafetyPolicy โ€” Interface; entry .. Public TypeScript interface UrlSafetyPolicy.
  • usableRedirectUris โ€” Function; entry .. The redirect URIs a company sends a public client's answers to: loopback, or HTTPS on the
  • usableReferences โ€” Function; entry .. The references an agent may follow (ยง8.2).
  • usableSkills โ€” Function; entry .. The skills of a tasks response's skill_index this SDK can use (ยง9.4), each url resolved.
  • USER_ID_UNUSED_AFTER_SECONDS โ€” Const; entry .. How long an ID goes unused before a Personal Agent may replace it on its own (ยง5.1): 28 days
  • USER_STEP_ATTRIBUTE โ€” Const; entry .. The attribute that marks a step for the User (Browser Control 4).
  • UserIdAtCompany โ€” Interface; entry .. One User's ID at one Company: who (tenantId, localUserId), where (company, the
  • UserIdData โ€” Interface; entry .. What the host holds under a User ID that the SDK can't reach (ยง5.1).
  • UserIdError โ€” Class; entry .. A User ID was not replaced: user_id_in_use, refresh_token_held, user_id_recently_used,
  • userStepKind โ€” Function; entry .. What a data-poppy-user-step value asks, or undefined without one (Browser Control 4). A
  • UserStepKind โ€” Type; entry .. What a mark asks: the User changes or activates (interaction), or submits.
  • validateDirectSignInCallback โ€” Function; entry .. Public TypeScript function validateDirectSignInCallback.
  • verificationHostAllowed โ€” Function; entry .. Whether a device sign-in link may be shown for this company (ยง4.3).
  • verifyOperatorSignature โ€” Value; entry .. Public TypeScript value verifyOperatorSignature.
  • VerifyOperatorSignatureOptions โ€” Interface; entry .. Public TypeScript interface VerifyOperatorSignatureOptions.
  • VERSION_HEADER โ€” Const; entry .. The protocol version the request is in (ยง3.4), on every request with the Session header.
  • versionDefines โ€” Function; entry .. Whether protocol version version defines what since added (ยง3.4): the same major
  • versionUnsupported โ€” Value; entry .. Public TypeScript value versionUnsupported.
  • WEB_BOT_AUTH_TAG โ€” Const; entry .. The tag that marks a signature as Web Bot Auth's (ยง5.2).
  • WebBotAuthSigner โ€” Class; entry .. pap.operatorSigner: a fresh Web Bot Auth signature for each request (ยง5.3).
  • WebBotAuthSignerOptions โ€” Interface; entry .. Public TypeScript interface WebBotAuthSignerOptions.
  • WebDescriptor โ€” Interface; entry .. The Company's website (ยง3.1, ยง6): where the agent's browser joins a Session, whether the
  • WebsiteOperations โ€” Class; entry .. Operations a Company's website returns to the personal agent's own browser.
  • WebsiteOperationsOptions โ€” Interface; entry .. Public TypeScript interface WebsiteOperationsOptions.
  • WebsiteOperationStatus โ€” Type; entry .. What a lookup of an approved reference says (Operations 6).
  • WorkingChanged โ€” Interface; entry .. A stream's working event (ยง8.6): working is no recorded event, so the Company sends it
  • createResolvingFetch โ€” Function; entry ./server. A fetch that resolves, vets, and pins: dns.lookup every address of the host, refuse
  • isGlobalAddress โ€” Function; entry ./server. Whether a textual IP address is global unicast: never loopback, private, link-local,
  • JoseSigner โ€” Class; entry ./server. Sign client assertions and delegations with a key from the agent's jwks_uri.
  • JoseSignerOptions โ€” Interface; entry ./server. Public TypeScript interface JoseSignerOptions.
  • NodeAddressResolver โ€” Type; entry ./server. Every address a host name resolves to (A and AAAA).
  • NodeUrlSafetyPolicy โ€” Class; entry ./server. DNS-aware server policy for untrusted PAP discovery and metadata URLs: every address
  • NodeUrlSafetyPolicyOptions โ€” Interface; entry ./server. Public TypeScript interface NodeUrlSafetyPolicyOptions.
  • resolveAddresses โ€” Value; entry ./server. Public TypeScript value resolveAddresses.
  • ResolvingFetchOptions โ€” Interface; entry ./server. Public TypeScript interface ResolvingFetchOptions.
  • vetHost โ€” Value; entry ./server. Public TypeScript value vetHost.