Skip to main content

Python API reference

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

  • __version__ โ€” Constant. Public __version__ constant.
  • AccessToken โ€” Class. An access token for one account, kept beside what the SDK knows of it (ยง4.5).
  • ACTION_FAILED โ€” Constant. Public ACTION_FAILED constant.
  • AgentIdentityClient โ€” Class. Fetch and verify a personal agent's public identity documents.
  • AgentInstruction โ€” Class. An instruction the User gave the Personal Agent, which an agent approval rests on
  • Alternative โ€” Class. Another way to do a task (ยง8.2): instructions, references, or both.
  • AlternativeReference โ€” Class. Where an alternative points (ยง8.2): an OpenAPI operation, an MCP tool, or a page.
  • ApiClient โ€” Class. Read and change through a company's API, the credentials host-owned.
  • ApiError โ€” Class. The company refused an API call; code is its error, never its body.
  • ApiResponse โ€” Class. An API answer: the body, the operation to approve (403 approval_required), or the
  • Approval โ€” Class. A statement that this revision of an operation is approved (Operations 5, 6).
  • APPROVAL_DECLINED โ€” Constant. Public APPROVAL_DECLINED constant.
  • APPROVAL_HEADER โ€” Constant. Public APPROVAL_HEADER constant.
  • approval_header โ€” Function. The value of Poppy-Approval (Operations 6): operation_id, revision, approver
  • APPROVAL_META_KEY โ€” Constant. Public APPROVAL_META_KEY constant.
  • APPROVAL_SURFACES โ€” Constant. Public APPROVAL_SURFACES constant.
  • ApprovalDeclined โ€” Class. A Company's final refusal of an approval that passed its checks (Operations 6).
  • ApprovalRequest โ€” Class. What a user is asked to approve: nothing has been done yet.
  • ApprovalSent โ€” Class. What came of sending an approval.
  • ApprovalSurface โ€” Class. The host's own approval surface: the user, not a model, answers.
  • ApprovedUrl โ€” Class. A URL the safety policy approved, and the addresses it approved for its host.
  • Author โ€” Class. Who wrote a message (ยง7.4): agent or human, and for a Company message, who.
  • AUTHOR_TYPES โ€” Constant. Public AUTHOR_TYPES constant.
  • AUTHORIZATION_CODE_GRANT โ€” Constant. Public AUTHORIZATION_CODE_GRANT constant.
  • AUTHORIZATION_STATE_STORES โ€” Constant. Public AUTHORIZATION_STATE_STORES constant.
  • AuthorizationError โ€” Class. An authorization flow failed without exposing callback secrets.
  • AuthorizationStateStore โ€” Class. Persist and atomically consume short-lived authorization state.
  • AVAILABLE_PROTOCOL_VERSIONS โ€” Constant. Public AVAILABLE_PROTOCOL_VERSIONS constant.
  • BlindJoseSigner โ€” Class. pap.signer on the User's device: PS384 signatures a key signs blindly (ยง10.7).
  • BlindSigningKey โ€” Class. The holder of a key in jwks_uri: it signs a blinded message, never seeing the JWT.
  • BROWSER_CONTROL_EXTENSION โ€” Constant. Public BROWSER_CONTROL_EXTENSION constant.
  • browser_control_negotiated โ€” Function. Whether the Company lists browser-control version 1 with a browser-session
  • BROWSER_CONTROL_VERSION โ€” Constant. Public BROWSER_CONTROL_VERSION constant.
  • BROWSER_HANDOFFS โ€” Constant. Public BROWSER_HANDOFFS constant.
  • BROWSER_JOINS โ€” Constant. Public BROWSER_JOINS constant.
  • BROWSER_SIGN_IN_SCOPE โ€” Constant. Public BROWSER_SIGN_IN_SCOPE constant.
  • BrowserControl โ€” Class. Who controls the personal agent's browser, and what its model may do there.
  • BrowserControlError โ€” Class. A browser action the extension asks the personal agent not to take.
  • BrowserHandoff โ€” Class. Hand a human-only authorization URL to a trusted browser surface.
  • BrowserJoin โ€” Class. The personal agent's own browser, joining a Session through the company's page (ยง6).
  • BrowserSessionClient โ€” Class. Join the agent's own browser to a Session: load, authorize, submit (ยง6).
  • BrowserSessionError โ€” Class. A browser-session handoff or assertion failed safely.
  • BrowserSessionStart โ€” Class. Safe status once the browser has submitted the join form.
  • build_client_assertion_claims โ€” Function. Build unsigned private_key_jwt claims for any request to the company's OAuth server.
  • build_direct_sign_in_request โ€” Function. Build a user-browser authorization URL with random state and S256 PKCE (ยง4.2).
  • build_pap_reactor โ€” Function. Build a PAP Reactor host with plugins and return any HTTP client it owns.
  • CACHES โ€” Constant. Public CACHES constant.
  • clears_context โ€” Function. Whether a message sets a context field to null to clear it (ยง8.4): 1.0's, so a
  • ClientMetadata โ€” Class. Public ClientMetadata class.
  • Clock โ€” Class. Supply timezone-aware wall-clock time to expiring protocol state.
  • CLOCKS โ€” Constant. Public CLOCKS constant.
  • content_digest โ€” Function. The Content-Digest of a request body (RFC 9530 ยง2): its SHA-256, as a Dictionary
  • controller_script โ€” Function. The script that provides navigator.poppy.controller (Browser Control 6).
  • controller_update_script โ€” Function. The script the host runs in the page as soon as control changes (Browser Control 6).
  • ConversationClient โ€” Class. Start and continue PAP conversations through a proof-bound transport.
  • ConversationError โ€” Class. A PAP conversation request failed without exposing its body.
  • ConversationEvent โ€” Class. One ordered PAP conversation event, including unknown future types.
  • ConversationEventPage โ€” Class. A cursor page returned by a PAP conversation read or waited write, with the
  • ConversationReceipt โ€” Class. What a successful POST without wait returns (ยง8.3): the Company accepted the
  • ConversationResponse โ€” Constant. Public ConversationResponse constant.
  • create_resolving_client โ€” Function. An httpx client whose every request goes through a ResolvingTransport.
  • CursorExpiredHandler โ€” Constant. Public CursorExpiredHandler constant.
  • declined_from โ€” Function. The decline a Company answered an approval with, or None (Operations 6).
  • DEFAULT_PROTOCOL_VERSION โ€” Constant. Public DEFAULT_PROTOCOL_VERSION constant.
  • DelegatedKey โ€” Class. One delegated key, its delegation, and when the delegation expires (ยง5.2).
  • DelegatedKeyCustody โ€” Class. Where delegated keys live: one current key per User ID, replaced when it rotates.
  • DelegatedSessionSigner โ€” Class. pap.sessionSigner: a delegated key per User ID signs each request's Session JWT (ยง5.2).
  • derive_pairwise_user_id โ€” Function. The User ID a keyed hash gives one User at one Company (ยง5.1; guides, *Choosing
  • DerivedPairwiseUserIds โ€” Class. A pap.pairwiseUserIdStore that derives each ID with a keyed hash, and replaces
  • DEVICE_CODE_GRANT โ€” Constant. Public DEVICE_CODE_GRANT constant.
  • DeviceAuthorizationResponse โ€” Class. Validated response from the OAuth device authorization endpoint.
  • DeviceSignInClient โ€” Class. Start and poll PAP Device Sign-In without exposing the device code.
  • DeviceSignInPoll โ€” Class. One poll result; pending responses tell callers when to try again.
  • DeviceSignInStart โ€” Class. User-facing device instructions without the private device code.
  • DirectSignInCallback โ€” Class. Validated one-time authorization code.
  • DirectSignInClient โ€” Class. Orchestrate one-use browser authorization and proof-bound code exchange.
  • DirectSignInRequest โ€” Class. Authorization request state that redacts its URL and PKCE values.
  • DirectSignInResult โ€” Class. A completed Direct Sign-In: the access token, and the refresh token's reference.
  • DirectSignInStart โ€” Class. Non-secret status returned after handing authorization to the user.
  • Disclosure โ€” Class. A notice a Company marks apart from the rest of a message (Disclosures 3), such as
  • DisclosuresContent โ€” Class. The Disclosures extension's content of a Company message, extensions.disclosures
  • DiscoveredCompany โ€” Class. A verified poppy.json, its domain's protected resource metadata, and its issuer's.
  • DISCOVERY_TRANSPORTS โ€” Constant. Public DISCOVERY_TRANSPORTS constant.
  • DiscoveryClient โ€” Class. Discover and authenticate a company's PAP declaration.
  • DiscoveryDocument โ€” Class. Public DiscoveryDocument class.
  • DiscoveryError โ€” Class. Discovery could not be completed safely.
  • domain_host โ€” Function. The host of organization.domain, without the port it names (ยง3.1).
  • DPOP_PROVERS โ€” Constant. Public DPOP_PROVERS constant.
  • DpopKey โ€” Class. One DPoP key: thumbprint is what the Company binds a token to (RFC 9449 ยง6).
  • DpopKeyCustody โ€” Class. Where DPoP keys live: one per User ID, made on first use.
  • DpopProofRequest โ€” Class. What one DPoP proof is signed for (ยง4.5, RFC 9449 ยง4.2).
  • DpopProver โ€” Class. Sign the DPoP proof of one request (ยง4.5).
  • DRAFT_PROTOCOL_REVISION โ€” Constant. Public DRAFT_PROTOCOL_REVISION constant.
  • DRAFT_PROTOCOL_VERSION โ€” Constant. Public DRAFT_PROTOCOL_VERSION constant.
  • Ed25519OperatorKey โ€” Class. An operator's Ed25519 key in this process's memory.
  • effective_context โ€” Function. The context the Personal Agent's messages share, in order (ยง8.4): fields a message
  • ExcludedTask โ€” Class. A task the company chose not to offer through the protocol (ยง8.1).
  • FeedbackClient โ€” Class. Send feedback reports in a Session, signed in or out.
  • FeedbackDescriptor โ€” Class. Where personal agents report a task the protocol can't do at this company (ยง9.3):
  • FeedbackError โ€” Class. The company refused a feedback report: invalid_request, rate_limited, a token error.
  • FeedbackReport โ€” Class. One report of what the company offers no way to do through the protocol (ยง9.3).
  • fetch_ucp_profile โ€” Function. The Company's UCP profile, from its validated domain, with no redirect followed.
  • FetchedPage โ€” Class. A website page as the agent's own HTTP client got it. Content from the company
  • generate_pairwise_user_id โ€” Function. Generate a non-PII user ID to persist for one user/company issuer pair.
  • generate_request_id โ€” Function. A request ID with at least 128 random bits, unique for the User (ยง8.3, guides).
  • IdentityError โ€” Class. Personal-agent metadata or public keys could not be verified safely.
  • InMemoryDelegatedKeys โ€” Class. Delegated keys in this process's memory, one per User ID.
  • InMemoryDpopKeys โ€” Class. DPoP keys in this process's memory, one per User ID.
  • InMemoryProtocolCache โ€” Class. Default pap.cache: a bounded, least-recently-used map in one process.
  • InProcessRefreshTokenLock โ€” Class. Default refresh token lock for a single process.
  • is_loopback_redirect โ€” Function. A loopback redirect URI (RFC 8252 ยง7.3): http to a loopback IP literal, any port.
  • JoseAlgorithm โ€” Constant. Public JoseAlgorithm constant.
  • JoseDpopProver โ€” Class. pap.dpopProver: a fresh proof for each request, by the User ID's DPoP key (ยง4.5).
  • JoseSigner โ€” Class. Sign client assertions and delegations with a key from the agent's jwks_uri.
  • JsonWebKey โ€” Class. One asymmetric public signing key published by a personal agent.
  • JsonWebKeySet โ€” Class. A non-empty set of public keys suitable for PAP assertion verification.
  • jwk_thumbprint โ€” Function. A public JWK's RFC 7638 SHA-256 thumbprint: a Session JWT's kid (ยง5.2).
  • JWT_CLIENT_ASSERTION โ€” Constant. Public JWT_CLIENT_ASSERTION constant.
  • known_author_type โ€” Function. An author.type this SDK doesn't recognize reads as agent (ยง8.4): a message is a
  • known_conversation_error โ€” Function. code when this version defines it, else default: an error a later version or an
  • KNOWN_CONVERSATION_ERRORS โ€” Constant. Public KNOWN_CONVERSATION_ERRORS constant.
  • known_role โ€” Function. A role this SDK doesn't recognize reads as company (ยง8.4): content from the
  • Link โ€” Class. A web page a Company message refers to (Links 3): its HTTPS url, and its title
  • LinksContent โ€” Class. The Links extension's content of a Company message, extensions.links (Links 3).
  • ListedTask โ€” Class. A task the Company already knows can't be done, listed in feedback.tasks with an
  • may_replace_unused โ€” Function. Whether a Personal Agent may replace an ID on its own (ยง5.1): 28 days have passed
  • MEDIATED_EXTENSION โ€” Constant. Public MEDIATED_EXTENSION constant.
  • MEDIATED_GRANT โ€” Constant. Public MEDIATED_GRANT constant.
  • MEDIATED_RETIREMENT_DATE โ€” Constant. Public MEDIATED_RETIREMENT_DATE constant.
  • mediated_sign_in โ€” Function. What the company's Mediated Sign-In asks for, or None when it offers none.
  • MEDIATED_VERSION โ€” Constant. Public MEDIATED_VERSION constant.
  • MediatedSignIn โ€” Class. extensions["mediated-sign-in"], version 1: the credentials to collect, its scopes.
  • MediatedSignInClient โ€” Class. Sign in with the user's credentials at the issuer's token endpoint, once.
  • MediatedSignInResult โ€” Class. Where a Mediated Sign-In stands, without any credential.
  • Message โ€” Class. A message sent by either side, or returned in a conversation event (ยง8.4).
  • MESSAGE_ROLES โ€” Constant. Public MESSAGE_ROLES constant.
  • MetadataFetch โ€” Class. The bounds of one public metadata fetch: size, total time, approved addresses.
  • new_approval_reference โ€” Function. A reference for one approval (Operations 6): apr_ and 16 random bytes, so it is
  • new_dpop_key โ€” Function. A new P-256 key, used for nothing but DPoP proofs (ยง5.2).
  • new_idempotency_key โ€” Function. A fresh key for a write: a random UUID (version 4).
  • new_operator_key โ€” Function. A new Ed25519 key, used for nothing but operator signatures (ยง5.3).
  • new_session_id โ€” Function. A new sid: 128 random bits, 22 URL-safe characters, never used again (ยง5.2).
  • OAuthServerMetadata โ€” Class. The issuer's RFC 8414 metadata, with the fields this protocol requires (ยง3.2).
  • OFFLINE_ACCESS_SCOPE โ€” Constant. Public OFFLINE_ACCESS_SCOPE constant.
  • on_company_host โ€” Function. Whether host is organization.domain or one of its subdomains: the only pages
  • openapi_url โ€” Function. The company's OpenAPI description, when it advertises one.
  • OpenTelemetrySink โ€” Class. pap.telemetry as OpenTelemetry spans, one per event, under the current span.
  • Operation โ€” Class. One action the Company performs once it is approved (Operations 3).
  • operation_from โ€” Function. The one operation object, from whichever interface carried it (Operations 4).
  • OPERATION_HEADER โ€” Constant. Public OPERATION_HEADER constant.
  • OPERATION_REFERENCE โ€” Constant. Public OPERATION_REFERENCE constant.
  • operation_reference_header โ€” Function. The value of Poppy-Operation: a Dictionary with sid and ref as Strings.
  • OperationError โ€” Class. An operation could not be approved, or its approval could not be sent.
  • OperationReference โ€” Class. A website's reference to an operation (Operations 4): the sid of the Session the
  • operations_content โ€” Function. A message's extensions carrying the Operations extension's content (Operations 2).
  • operations_endpoint โ€” Function. The endpoint of the Company's operations entry at this version, or None.
  • OPERATIONS_EXTENSION โ€” Constant. Public OPERATIONS_EXTENSION constant.
  • operations_negotiated โ€” Function. Whether the Company lists operations at this version and the Session declares it
  • OPERATIONS_VERSION โ€” Constant. Public OPERATIONS_VERSION constant.
  • OperationsClient โ€” Class. Approve an operation, as the user or on the user's instruction, and send the
  • OperationsContent โ€” Class. The Operations extension's content of a message, extensions.operations (Operations 2).
  • operator_directory โ€” Function. The JWK Set a host serves at its Signature-Agent URL (Web Bot Auth ยง5.5.1).
  • operator_key_from โ€” Function. The Ed25519OperatorKey of a private key.
  • OPERATOR_SIGNERS โ€” Constant. Public OPERATOR_SIGNERS constant.
  • OperatorSignature โ€” Class. The values of the three headers of a signed request (Web Bot Auth ยง5.2.5).
  • OperatorSignatureRequest โ€” Class. What one operator signature is signed for (ยง5.3, RFC 9421).
  • OperatorSigner โ€” Class. Sign one request, as its operator (ยง5.3): one that carries the Session header, or
  • OperatorSigningKey โ€” Class. An operator's key: keyid is its RFC 8037 thumbprint, and it signs with Ed25519.
  • OperatorVerdict โ€” Class. What one request's operator signature came to (Web Bot Auth, appendix C.1).
  • Organization โ€” Class. Who the Company says it is (ยง3.1). domain is its identity; name and logo_uri
  • page_carries_session โ€” Function. Whether a page fetch carries the Session header (ยง5.2): an HTTPS URL whose host is
  • page_marks โ€” Function. The forms, controls and marks of a page's HTML (Browser Control 4).
  • PageClient โ€” Class. Fetch a company's website pages without a browser, in a Session, signed out.
  • PageControl โ€” Class. A listed element (input, select, button, โ€ฆ) and the form that owns it.
  • PageForm โ€” Class. A form on the page: its position, id, action, method, and its mark.
  • PageMarks โ€” Class. The marked steps of one page, read from its HTML (Browser Control 4).
  • PAIRWISE_USER_ID_STORES โ€” Constant. Public PAIRWISE_USER_ID_STORES constant.
  • PairwiseCounters โ€” Class. One counter for each User and Company, zero until increased: what a keyed hash
  • PairwiseUserIdStore โ€” Class. Persist stable random identities by tenant, local user, and issuer.
  • PapCorePlugin โ€” Class. Contribute PAP's secure defaults through Reactor.
  • PapSession โ€” Class. One Session: a User at one Company through this personal agent (ยง5).
  • parse_approval_header โ€” Function. The approval a Poppy-Approval value states, or None.
  • parse_operation_header โ€” Function. The reference a Poppy-Operation value states, or None.
  • PersonalAgentProtocolError โ€” Class. Base error whose string representation never includes response bodies.
  • pin_connections โ€” Function. Make client's socket transports dial approved addresses during metadata fetches.
  • PinnedNetworkBackend โ€” Class. Dial the address the URL safety policy approved, never the host name again.
  • PROMPT_CONSENT โ€” Constant. Public PROMPT_CONSENT constant.
  • ProofError โ€” Class. A signed assertion or proof-of-possession value is invalid.
  • PROTECTED_INPUTS โ€” Constant. Public PROTECTED_INPUTS constant.
  • ProtectedInput โ€” Class. Collect protected values from the user outside model context (PAP ยง4.7).
  • ProtectedInputField โ€” Class. One field a human types into the host's own trusted surface.
  • ProtectedInputRequest โ€” Class. What the host must ask the user for, and for which company.
  • ProtectedResourceMetadata โ€” Class. RFC 9728 protected resource metadata, with the fields this protocol uses (ยง3.2, ยง4.5).
  • PROTOCOL_PROFILE โ€” Constant. Public PROTOCOL_PROFILE constant.
  • PROTOCOL_REVISION โ€” Constant. Public PROTOCOL_REVISION constant.
  • ProtocolCache โ€” Class. Bound cached public protocol data by an absolute expiry.
  • ProtocolValidationError โ€” Class. A protocol document is malformed or internally inconsistent.
  • PublicClientMetadata โ€” Class. The client ID metadata document of a public client: an MCP client, never a
  • PUBLISHED_PROTOCOL_REVISION โ€” Constant. Public PUBLISHED_PROTOCOL_REVISION constant.
  • PUBLISHED_PROTOCOL_VERSION โ€” Constant. Public PUBLISHED_PROTOCOL_VERSION constant.
  • RANDOM_SOURCES โ€” Constant. Public RANDOM_SOURCES constant.
  • RandomSource โ€” Class. Supply cryptographically secure random bytes.
  • RATE_LIMIT_BUDGETS โ€” Constant. Public RATE_LIMIT_BUDGETS constant.
  • RateLimitBudget โ€” Class. A company's request budget, shared by every task and user of the host.
  • RecordingTelemetrySink โ€” Class. pap.telemetry in memory: every event, in order.
  • redirect_uri_matches โ€” Function. Whether given is the redirect URI registered names (ยง4.1, ยง4.5).
  • REFRESH_TOKEN_GRANT โ€” Constant. Public REFRESH_TOKEN_GRANT constant.
  • REFRESH_TOKEN_LOCKS โ€” Constant. Public REFRESH_TOKEN_LOCKS constant.
  • RefreshResult โ€” Class. What a refresh did, without the refresh token itself.
  • RefreshTokenClient โ€” Class. Use a stored refresh token without ever handing it to a caller.
  • RefreshTokenContext โ€” Class. Where a refresh token is used, and for whom (all non-secret).
  • RefreshTokenLock โ€” Class. Serialize every use of one refresh token (ยง4.4 rotation).
  • replace_user_id โ€” Function. Replace user's ID at the Company, and return the new one (ยง5.1).
  • ReplaceablePairwiseUserIdStore โ€” Class. A pap.pairwiseUserIdStore that can replace one User's ID at one Company (ยง5.1):
  • ReplacedUserId โ€” Class. A replacement that was made: the new User ID, and what signing out did first.
  • request_scope โ€” Function. The scope parameter of a sign-in request, or of a refresh that asks for fewer
  • resolve_pairwise_user_id โ€” Function. Resolve the active Reactor store and return its stable pairwise ID.
  • ResolvingTransport โ€” Class. Every request to an untrusted host resolved, vetted, and pinned.
  • RETRY_POLICIES โ€” Constant. Public RETRY_POLICIES constant.
  • RetryPolicy โ€” Class. When to retry a refused request (Guides, retries).
  • RevocationResult โ€” Class. A revocation the company acknowledged; the local copy is gone.
  • RsaBlindSigningKey โ€” Class. A reference BlindSigningKey: an RSA key of 2048 bits or more (3072 suggested).
  • ScopeHint โ€” Class. What a scope allows, its most consequential operation (ยง4.4): a Company's claim.
  • scopes_to_request โ€” Function. The scopes a new sign-in asks for when a task needs more access (ยง4.7).
  • ServiceTokens โ€” Class. The access tokens of one account, one per service that asks for its own (ยง4.5).
  • SESSION_SIGNERS โ€” Constant. Public SESSION_SIGNERS constant.
  • SessionClient โ€” Class. Start Sessions, and send grants to the company's token endpoint (ยง4, ยง5).
  • SessionError โ€” Class. A session request failed without exposing response secrets.
  • SessionHttpClient โ€” Class. Send requests with the Session header; a redirect is refused, never followed (ยง3).
  • SessionJwtRequest โ€” Class. What one Session JWT is signed for (ยง5.2): a request, its Session, its User.
  • SessionSigner โ€” Class. Sign the Session JWT of one request with a delegated key (ยง5.2).
  • SessionTasks โ€” Class. A Company's tasks response in one Session (ยง9): never used in another.
  • SharedRateLimitBudget โ€” Class. Default pap.rateLimitBudget: per-company budgets in one process.
  • sign_oauth_request โ€” Function. Sign a request to the Company's pushed authorization request, token, device
  • sign_operator_request โ€” Function. The signature of one request, its created, expires and nonce given.
  • Signer โ€” Class. Sign a compact assertion without exposing private key material.
  • SIGNERS โ€” Constant. Public SIGNERS constant.
  • SignInResult โ€” Class. A completed sign-in (ยง4.7): the access token, and the refresh token's reference.
  • SignOutResult โ€” Class. Sign-out (ยง5.5): how many refresh tokens were revoked, and whether all were.
  • SKILL_INDEX_SCHEMA โ€” Constant. Public SKILL_INDEX_SCHEMA constant.
  • SkillEntry โ€” Class. A skill a Company publishes for Personal Agents acting for the User there (ยง9.4).
  • speaks_ucp โ€” Function. Whether the Company lists the UCP extension at this version (UCP extension 2).
  • split_domain โ€” Function. organization.domain as its host and its port, None for 443 (ยง3.1).
  • SqlitePairwiseCounters โ€” Class. PairwiseCounters in a local SQLite database, increased atomically.
  • SqlitePairwiseUserIdStore โ€” Class. Atomically persist random pairwise IDs in a local SQLite database.
  • stale_resource_metadata โ€” Function. Whether a service refused a token not issued for it (ยง4.5).
  • StreamItem โ€” Constant. Public StreamItem constant.
  • StreamReconnected โ€” Class. The stream was reopened from Last-Event-ID.
  • SUPPORTED_PROTOCOL_VERSIONS โ€” Constant. Public SUPPORTED_PROTOCOL_VERSIONS constant.
  • SystemClock โ€” Class. Default UTC wall clock.
  • SystemRandomSource โ€” Class. Default operating-system cryptographic randomness.
  • tasks_endpoint โ€” Function. The Company's tasks endpoint, when its poppy.json names one (ยง3.1).
  • TasksClient โ€” Class. Get a Company's tasks response in a Session, and keep it for that Session only.
  • TasksDescriptor โ€” Class. Where a Personal Agent gets, for a Session, the tasks the Company chose not to offer,
  • TasksError โ€” Class. The tasks endpoint refused the Session header: invalid_session, version_unsupported.
  • TasksResponse โ€” Class. The response to GET {tasks.endpoint} for one Session (ยง9).
  • TELEMETRY_ATTRIBUTES โ€” Constant. Public TELEMETRY_ATTRIBUTES constant.
  • TELEMETRY_EVENTS โ€” Constant. Public TELEMETRY_EVENTS constant.
  • TELEMETRY_SINKS โ€” Constant. Public TELEMETRY_SINKS constant.
  • TelemetryEvent โ€” Class. One finished protocol stage: a span for traces, an event for analytics.
  • TelemetrySink โ€” Class. Receive each finished protocol stage (telemetry.TelemetryEvent), redacted already.
  • terms_differences โ€” Function. Where terms disagree with what the agent asked for, or with the summary.
  • TextDelta โ€” Class. A piece of a message still being written (SSE text-delta, ยง7.6).
  • TOKEN_STORES โ€” Constant. Public TOKEN_STORES constant.
  • TokenResponse โ€” Class. A token endpoint's answer, as on the wire (ยง4.7): plain OAuth.
  • TokenStore โ€” Class. Keep credentials behind opaque references and explicit deletion.
  • TransportError โ€” Class. An authenticated PAP resource request failed safely.
  • UCP_AGENT_HEADER โ€” Constant. Public UCP_AGENT_HEADER constant.
  • ucp_agent_header โ€” Function. The UCP-Agent value naming the platform profile, an RFC 9651 Dictionary.
  • UCP_EXTENSION โ€” Constant. Public UCP_EXTENSION constant.
  • UCP_IDENTITY_LINKING โ€” Constant. Public UCP_IDENTITY_LINKING constant.
  • UCP_PROFILE_PATH โ€” Constant. Public UCP_PROFILE_PATH constant.
  • ucp_profile_url โ€” Function. https://{organization.domain}/.well-known/ucp: on the validated domain, so the
  • UCP_PROFILE_VERSION โ€” Constant. Public UCP_PROFILE_VERSION constant.
  • ucp_scopes โ€” Function. The scopes a sign-in requests after a UCP insufficient_scope (UCP extension 4).
  • UCP_SHOPPING โ€” Constant. Public UCP_SHOPPING constant.
  • UCP_VERSION โ€” Constant. Public UCP_VERSION constant.
  • UcpClient โ€” Class. Send UCP REST requests through this extension (UCP extension 4).
  • UcpError โ€” Class. A UCP profile or request refused: its code, and details such as the scopes to get.
  • UcpProfile โ€” Class. A Company's UCP profile, as far as this extension reads it (UCP extension 3).
  • url_domain โ€” Function. The domain an HTTPS URL is on, as organization.domain names it (ยง3.1): its host,
  • URL_SAFETY_POLICIES โ€” Constant. Public URL_SAFETY_POLICIES constant.
  • USER_ID_UNUSED_AFTER โ€” Constant. Public USER_ID_UNUSED_AFTER constant.
  • USER_STEP_ATTRIBUTE โ€” Constant. Public USER_STEP_ATTRIBUTE constant.
  • user_step_kind โ€” Function. What a data-poppy-user-step value asks, or None without one (Browser Control 4).
  • UserIdAtCompany โ€” Class. One User's ID at one Company: who (tenant_id, local_user_id), where (company,
  • UserIdData โ€” Class. What the host holds under a User ID that the SDK can't reach (ยง5.1).
  • UserIdError โ€” Class. A User ID was not replaced: user_id_stale, user_id_in_use,
  • validate_direct_sign_in_callback โ€” Function. Validate redirect location, state, and issuer before exposing the code.
  • verification_host_allowed โ€” Function. Whether a device sign-in link may be shown for this company (ยง4.3).
  • verify_operator_signature โ€” Function. What the request's operator signature comes to; headers are lower-case.
  • WebBotAuthSigner โ€” Class. pap.operatorSigner: a fresh Web Bot Auth signature for each request (ยง5.3).
  • WebsiteOperations โ€” Class. Operations a Company's website returns to the personal agent's own browser.
  • WebsiteOperationStatus โ€” Constant. Public WebsiteOperationStatus constant.
  • WorkingChanged โ€” Class. A stream's working event (ยง8.6): working is no recorded event, so the Company