Module types

Module types 

Source
Expand description

Common types used across the X402 protocol.

Structs§

AmountValue
Represents a monetary amount in the X402 protocol.
Base64EncodedHeader
Represents a base64-encoded header value for X402 protocol headers.
Extension
Represents an extension in the X402 protocol.
ExtensionIdentifier
Represents the identifier for an extension in the X402 protocol.
FieldDefinition
FieldDefinitionBuilder
Use builder syntax to set the inputs and finish with build().
HttpInput
HttpInputBuilder
Use builder syntax to set the inputs and finish with build().
OutputSchema
OutputSchemaBuilder
Use builder syntax to set the inputs and finish with build().
Required
Marker type to indicate that a field is required.
X402V1
Represents the X402 protocol version 1. Any type’s specific to version 1 can use this struct for its x402Version field.
X402V2
Represents the X402 protocol version 2.

Enums§

FieldRequired
Input
InputBodyType
Method
X402Version
Represents the X402 protocol version, either v1 or v2.

Type Aliases§

AnyJson
Represents any JSON value. Used for serializing/deserializing arbitrary JSON data.
Record
Represents an key-value pair in the X402 protocol. The key is a String.