AxUCPClient Generated TypeScript API reference. typescript api api/reference build/apidocs/Class.AxUCPClient.md class AxUCPClient

AxUCPClient

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L36

Constructors

Constructor

TypeScript
new AxUCPClient(options: Readonly<AxUCPClientOptions>): AxUCPClient;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L46

Parameters

ParameterType
optionsReadonly<AxUCPClientOptions>

Returns

AxUCPClient

Methods

call()

TypeScript
call(
   operation: string, 
   input: Readonly<AxUCPValue>, 
options: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L337

Parameters

ParameterType
operationstring
inputReadonly<AxUCPValue>
optionsReadonly<AxUCPCallOptions>

Returns

Promise<AxUCPOutcome>


cancelCart()

TypeScript
cancelCart(id: string, options?: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L285

Parameters

ParameterType
idstring
options?Readonly<AxUCPCallOptions>

Returns

Promise<AxUCPOutcome>


cancelCheckout()

TypeScript
cancelCheckout(id: string, options: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L328

Parameters

ParameterType
idstring
optionsReadonly<AxUCPCallOptions>

Returns

Promise<AxUCPOutcome>


close()

TypeScript
close(): Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L241

Returns

Promise<void>


completeCheckout()

Call Signature

TypeScript
completeCheckout(id: string, options: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L308

Parameters
ParameterType
idstring
optionsReadonly<AxUCPCallOptions>
Returns

Promise<AxUCPOutcome>

Call Signature

TypeScript
completeCheckout(
   id: string, 
   completion: Readonly<AxUCPCheckoutCompletion>, 
options: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L312

Parameters
ParameterType
idstring
completionReadonly<AxUCPCheckoutCompletion>
optionsReadonly<AxUCPCallOptions>
Returns

Promise<AxUCPOutcome>


createCart()

TypeScript
createCart(cart: Readonly<AxUCPCartInput>, options?: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L266

Parameters

ParameterType
cartReadonly<AxUCPCartInput>
options?Readonly<AxUCPCallOptions>

Returns

Promise<AxUCPOutcome>


createCheckout()

TypeScript
createCheckout(checkout: Readonly<AxUCPCheckoutInput>, options?: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L289

Parameters

ParameterType
checkoutReadonly<AxUCPCheckoutInput>
options?Readonly<AxUCPCallOptions>

Returns

Promise<AxUCPOutcome>


getCart()

TypeScript
getCart(id: string, options?: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L273

Parameters

ParameterType
idstring
options?Readonly<AxUCPCallOptions>

Returns

Promise<AxUCPOutcome>


getCheckout()

TypeScript
getCheckout(id: string, options?: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L296

Parameters

ParameterType
idstring
options?Readonly<AxUCPCallOptions>

Returns

Promise<AxUCPOutcome>


getEvaluationMode()

TypeScript
getEvaluationMode(): "live" | "replay" | "sandbox";

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L122

Returns

"live" | "replay" | "sandbox"


getIdentityLinkingConfig()

TypeScript
getIdentityLinkingConfig(): 
  | undefined
  | AxUCPIdentityLinkingConfig;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L164

Returns

| undefined | AxUCPIdentityLinkingConfig


getIdentityLinkingScopes()

TypeScript
getIdentityLinkingScopes(): readonly string[];

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L173

Returns

readonly string[]


getMCPClient()

TypeScript
getMCPClient(): undefined | AxMCPClient;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L237

Returns the live MCP client used by AxGen/AxAgent native integration.

Returns

undefined | AxMCPClient


getNamespace()

TypeScript
getNamespace(): string;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L112

Returns

string


getOperationBindings()

TypeScript
getOperationBindings(): AxFunction[];

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L139

Returns

AxFunction[]


getOperationNames()

TypeScript
getOperationNames(): readonly string[];

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L126

Returns

readonly string[]


getOrder()

TypeScript
getOrder(id: string, options?: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L333

Parameters

ParameterType
idstring
options?Readonly<AxUCPCallOptions>

Returns

Promise<AxUCPOutcome>


getPaymentHandlers()

TypeScript
getPaymentHandlers(): Record<string, readonly AxUCPPaymentHandler[]>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L160

Returns

Record<string, readonly AxUCPPaymentHandler[]>


getProduct()

TypeScript
getProduct(catalog: Readonly<AxUCPProductRequest>, options?: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L259

Parameters

ParameterType
catalogReadonly<AxUCPProductRequest>
options?Readonly<AxUCPCallOptions>

Returns

Promise<AxUCPOutcome>


getProfile()

TypeScript
getProfile(): AxUCPNegotiatedProfile;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L107

Returns

AxUCPNegotiatedProfile


init()

TypeScript
init(): Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L68

Returns

Promise<void>


lookupCatalog()

TypeScript
lookupCatalog(catalog: Readonly<AxUCPCatalogLookupRequest>, options?: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L252

Parameters

ParameterType
catalogReadonly<AxUCPCatalogLookupRequest>
options?Readonly<AxUCPCallOptions>

Returns

Promise<AxUCPOutcome>


searchCatalog()

TypeScript
searchCatalog(catalog: Readonly<AxUCPCatalogSearchRequest>, options?: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L245

Parameters

ParameterType
catalogReadonly<AxUCPCatalogSearchRequest>
options?Readonly<AxUCPCallOptions>

Returns

Promise<AxUCPOutcome>


updateCart()

TypeScript
updateCart(
   id: string, 
   cart: Readonly<AxUCPCartInput>, 
options?: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L277

Parameters

ParameterType
idstring
cartReadonly<AxUCPCartInput>
options?Readonly<AxUCPCallOptions>

Returns

Promise<AxUCPOutcome>


updateCheckout()

TypeScript
updateCheckout(
   id: string, 
   checkout: Readonly<AxUCPCheckoutInput>, 
options?: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L300

Parameters

ParameterType
idstring
checkoutReadonly<AxUCPCheckoutInput>
options?Readonly<AxUCPCallOptions>

Returns

Promise<AxUCPOutcome>


validateAgainstSchema()

TypeScript
validateAgainstSchema(value: unknown, schemaUrl: string): Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L694

Parameters

ParameterType
valueunknown
schemaUrlstring

Returns

Promise<void>


verifyOrderEvent()

TypeScript
verifyOrderEvent(request: Request): Promise<AxUCPOrderEvent>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L177

Parameters

ParameterType
requestRequest

Returns

Promise<AxUCPOrderEvent>

Docs