///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
import * as golem_core_types_2_0_0 from 'golem:core/types@2.0.0';
import { Secret, QuotaToken, SchemaValueStream, SchemaValueTree, PermissionCard as PermissionCard$1, Uuid as Uuid$1, TypeId, NumericRestrictions, MetadataEnvelope, TextRestrictions, BinaryRestrictions, PathSpec, UrlRestrictions, QuantitySpec, DiscriminatorRule, SecretSpec, QuotaTokenSpec, PermissionCardSpec, Datetime, QuantityValue, ComponentId as ComponentId$1, SchemaValueNode, PathDirection, PathKind } from 'golem:core/types@2.0.0';
import { OidcPrincipal as OidcPrincipal$1, AgentPrincipal as AgentPrincipal$1, GolemUserPrincipal as GolemUserPrincipal$1 } from 'golem:agent/common@2.0.0';
import { PermissionError as PermissionError$1 } from 'golem:permissions/types@0.1.0';
import { Duration as Duration$1 } from 'golem:api/retry@1.5.0';
import { Quantifier, Doc, Repetition, DuplicateKeyPolicy, FlagSpec, StreamSpec, Formatter, ErrorKind, CommandAnnotations, TypedSchemaValue as TypedSchemaValue$1, ToolError, InvocationResult, Tool } from 'golem:tool/common@0.1.0';
import { ByteStreamItem, ToolOutputWriter } from 'golem:tool/streams@0.1.0';
declare abstract class BasePrincipal {
private readonly _brand;
abstract readonly tag: 'oidc' | 'agent' | 'golem-user' | 'anonymous';
}
declare class OidcPrincipal extends BasePrincipal {
readonly inner: OidcPrincipal$1;
readonly tag: "oidc";
readonly val: OidcPrincipal$1;
constructor(inner: OidcPrincipal$1);
get sub(): string;
get issuer(): string;
get email(): string | undefined;
get name(): string | undefined;
get emailVerified(): boolean | undefined;
get givenName(): string | undefined;
get familyName(): string | undefined;
get picture(): string | undefined;
get preferredUsername(): string | undefined;
get claims(): string;
}
declare class AgentPrincipal extends BasePrincipal {
readonly inner: AgentPrincipal$1;
readonly tag: "agent";
readonly val: AgentPrincipal$1;
constructor(inner: AgentPrincipal$1);
get agentId(): golem_core_types_2_0_0.AgentId;
}
declare class GolemUserPrincipal extends BasePrincipal {
readonly inner: GolemUserPrincipal$1;
readonly tag: "golem-user";
readonly val: GolemUserPrincipal$1;
constructor(inner: GolemUserPrincipal$1);
get accountId(): golem_core_types_2_0_0.AccountId;
}
declare class AnonymousPrincipal extends BasePrincipal {
readonly tag: "anonymous";
}
type Principal = OidcPrincipal | AgentPrincipal | GolemUserPrincipal | AnonymousPrincipal;
interface StandardSchemaV1 {
readonly '~standard': StandardSchemaV1.Props;
}
declare namespace StandardSchemaV1 {
interface Props {
readonly version: 1;
readonly vendor: string;
readonly validate: (value: unknown) => Result