AxUCPClient
Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L36
Constructors
Constructor
new AxUCPClient(options: Readonly<AxUCPClientOptions>): AxUCPClient;Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L343
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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L291
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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L334
Parameters
| Parameter | Type |
|---|---|
id | string |
options | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
close()
close(): Promise<void>;Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L247
Returns
Promise<void>
completeCheckout()
Call Signature
completeCheckout(id: string, options: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L314
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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L318
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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L272
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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L295
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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L279
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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L302
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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L128
Returns
"live" | "replay" | "sandbox"
getIdentityLinkingConfig()
getIdentityLinkingConfig():
| undefined
| AxUCPIdentityLinkingConfig;Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L170
Returns
| undefined
| AxUCPIdentityLinkingConfig
getIdentityLinkingScopes()
getIdentityLinkingScopes(): readonly string[];Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L179
Returns
readonly string[]
getMCPClient()
getMCPClient(): undefined | AxMCPClient;Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L243
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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L118
Returns
string
getOperationBindings()
getOperationBindings(): AxFunction[];Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L145
Returns
getOperationNames()
getOperationNames(): readonly string[];Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L132
Returns
readonly string[]
getOrder()
getOrder(id: string, options?: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L339
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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L166
Returns
Record<string, readonly AxUCPPaymentHandler[]>
getProduct()
getProduct(catalog: Readonly<AxUCPProductRequest>, options?: Readonly<AxUCPCallOptions>): Promise<AxUCPOutcome>;Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L265
Parameters
| Parameter | Type |
|---|---|
catalog | Readonly<AxUCPProductRequest> |
options? | Readonly<AxUCPCallOptions> |
Returns
Promise<AxUCPOutcome>
getProfile()
getProfile(): AxUCPNegotiatedProfile;Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L113
Returns
init()
init(): Promise<void>;Defined in: https://github.com/ax-llm/ax/blob/7965c876f6a5b641e0cf166e8942e540cfde65e1/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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L258
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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L251
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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L283
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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L306
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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L700
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/7965c876f6a5b641e0cf166e8942e540cfde65e1/src/ax/ucp/client.ts#L183
Parameters
| Parameter | Type |
|---|---|
request | Request |
Returns
Promise<AxUCPOrderEvent>