AxUCPClient
Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L36
Constructors
Constructor
new AxUCPClient(options: Readonly<AxUCPClientOptions>): AxUCPClient;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L46
Parameters
| Parameter | Type |
|---|---|
options | Readonly<AxUCPClientOptions> |
Returns
AxUCPClient
Methods
call()
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
| Parameter | Type |
|---|---|
operation | string |
input | Readonly<AxUCPValue> |
options | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
cancelCart()
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
| Parameter | Type |
|---|---|
id | string |
options? | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
cancelCheckout()
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
| Parameter | Type |
|---|---|
id | string |
options | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
close()
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
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
| Parameter | Type |
|---|---|
id | string |
options | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
Call Signature
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
| Parameter | Type |
|---|---|
id | string |
completion | Readonly<AxUCPCheckoutCompletion> |
options | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
createCart()
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
| Parameter | Type |
|---|---|
cart | Readonly<AxUCPCartInput> |
options? | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
createCheckout()
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
| Parameter | Type |
|---|---|
checkout | Readonly<AxUCPCheckoutInput> |
options? | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
getCart()
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
| Parameter | Type |
|---|---|
id | string |
options? | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
getCheckout()
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
| Parameter | Type |
|---|---|
id | string |
options? | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
getEvaluationMode()
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()
getIdentityLinkingConfig():
| undefined
| AxUCPIdentityLinkingConfig;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L164
Returns
| undefined
| AxUCPIdentityLinkingConfig
getIdentityLinkingScopes()
getIdentityLinkingScopes(): readonly string[];Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L173
Returns
readonly string[]
getMCPClient()
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()
getNamespace(): string;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L112
Returns
string
getOperationBindings()
getOperationBindings(): AxFunction[];Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L139
Returns
getOperationNames()
getOperationNames(): readonly string[];Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L126
Returns
readonly string[]
getOrder()
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
| Parameter | Type |
|---|---|
id | string |
options? | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
getPaymentHandlers()
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()
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
| Parameter | Type |
|---|---|
catalog | Readonly<AxUCPProductRequest> |
options? | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
getProfile()
getProfile(): AxUCPNegotiatedProfile;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L107
Returns
init()
init(): Promise<void>;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L68
Returns
Promise<void>
lookupCatalog()
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
| Parameter | Type |
|---|---|
catalog | Readonly<AxUCPCatalogLookupRequest> |
options? | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
searchCatalog()
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
| Parameter | Type |
|---|---|
catalog | Readonly<AxUCPCatalogSearchRequest> |
options? | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
updateCart()
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
| Parameter | Type |
|---|---|
id | string |
cart | Readonly<AxUCPCartInput> |
options? | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
updateCheckout()
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
| Parameter | Type |
|---|---|
id | string |
checkout | Readonly<AxUCPCheckoutInput> |
options? | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
validateAgainstSchema()
validateAgainstSchema(value: unknown, schemaUrl: string): Promise<void>;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L694
Parameters
| Parameter | Type |
|---|---|
value | unknown |
schemaUrl | string |
Returns
Promise<void>
verifyOrderEvent()
verifyOrderEvent(request: Request): Promise<AxUCPOrderEvent>;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/ucp/client.ts#L177
Parameters
| Parameter | Type |
|---|---|
request | Request |
Returns
Promise<AxUCPOrderEvent>