Skip to main content

Module identity

Module identity 

Source

Structsยง

IdentityAccountUpsertReq
identity.account.upsert: an account for the agentโ€™s own use, created or updated, and linked.
IdentityAccountUpsertResult
identity.account.upsert: the account as stored, and the validation result when one was asked for.
IdentityAccountValidateReq
identity.account.validate: a stored account to probe, or a provider and secret to probe ad hoc.
IdentityAccountValidateResult
identity.account.validate: whether the provider accepted the key.
IdentitySelfAccount
One linked account in IdentitySelfAccountsResult.
IdentitySelfAccountsReq
identity.self.accounts and identity.self.unlink: the agent asking.
IdentitySelfAccountsResult
identity.self.accounts: the provider accounts linked to the agent, with no secrets.
IdentitySelfUnlinkReq
identity.self.unlink: the provider whose account to unlink from the agent.
IdentitySelfUnlinkResult
identity.self.unlink: whether a link was removed.

Functionsยง

identity_account_validate_stored_impl ๐Ÿ”’
Validate one of the agentโ€™s own linked accounts by probing the provider with the stored keychain secret. Ownership is verified (the account must be linked to agent_id) before the secret is read.
identity_self_accounts_impl ๐Ÿ”’
register
register_identity_account_upsert ๐Ÿ”’
register_identity_account_validate ๐Ÿ”’
register_identity_self_accounts ๐Ÿ”’
register_identity_self_unlink ๐Ÿ”’