import * as z from "zod"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Type to identify the option asset associated with the instruction */ export declare enum OptionInstructionIdentifierType { IdentifierTypeUnspecified = "IDENTIFIER_TYPE_UNSPECIFIED", AssetId = "ASSET_ID", Osi = "OSI" } /** * Type to identify the option asset associated with the instruction */ export type OptionInstructionIdentifierTypeOpen = OpenEnum; /** * Quantity for the instruction */ export type OptionInstructionQuantity = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * Current state of the instruction */ export declare enum OptionInstructionState { StateUnspecified = "STATE_UNSPECIFIED", Pending = "PENDING", Rejected = "REJECTED", Accepted = "ACCEPTED", Canceled = "CANCELED", Completed = "COMPLETED" } /** * Current state of the instruction */ export type OptionInstructionStateOpen = OpenEnum; /** * Type of instruction */ export declare enum OptionInstructionType { InstructionTypeUnspecified = "INSTRUCTION_TYPE_UNSPECIFIED", DoNotExercise = "DO_NOT_EXERCISE", ExerciseByException = "EXERCISE_BY_EXCEPTION", EarlyExercise = "EARLY_EXERCISE" } /** * Type of instruction */ export type OptionInstructionTypeOpen = OpenEnum; /** * Represents a single options trading instruction including do not exercise, exercise by exception, and early exercise instructions */ export type OptionInstruction = { /** * Account identifier */ accountId?: string | undefined; /** * The time the instruction was created */ createTime?: Date | null | undefined; /** * The asset identifier */ identifier?: string | undefined; /** * Type to identify the option asset associated with the instruction */ identifierType?: OptionInstructionIdentifierTypeOpen | undefined; /** * Instruction identifier which is unique and provided by the server */ instructionId?: string | undefined; /** * The name of the instruction (e.g., "accounts/{account}/assets/{asset}/instructions/{instruction_id}"). */ name?: string | undefined; /** * Quantity for the instruction */ quantity?: OptionInstructionQuantity | null | undefined; /** * Current state of the instruction */ state?: OptionInstructionStateOpen | undefined; /** * State description relating to the state */ stateDescription?: string | undefined; /** * Type of instruction */ type?: OptionInstructionTypeOpen | undefined; /** * The time the instruction was updated */ updateTime?: Date | null | undefined; }; /** @internal */ export declare const OptionInstructionIdentifierType$inboundSchema: z.ZodType; /** @internal */ export declare const OptionInstructionIdentifierType$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace OptionInstructionIdentifierType$ { /** @deprecated use `OptionInstructionIdentifierType$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionInstructionIdentifierType$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const OptionInstructionQuantity$inboundSchema: z.ZodType; /** @internal */ export type OptionInstructionQuantity$Outbound = { value?: string | undefined; }; /** @internal */ export declare const OptionInstructionQuantity$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace OptionInstructionQuantity$ { /** @deprecated use `OptionInstructionQuantity$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionInstructionQuantity$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OptionInstructionQuantity$Outbound` instead. */ type Outbound = OptionInstructionQuantity$Outbound; } export declare function optionInstructionQuantityToJSON(optionInstructionQuantity: OptionInstructionQuantity): string; export declare function optionInstructionQuantityFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OptionInstructionState$inboundSchema: z.ZodType; /** @internal */ export declare const OptionInstructionState$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace OptionInstructionState$ { /** @deprecated use `OptionInstructionState$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionInstructionState$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const OptionInstructionType$inboundSchema: z.ZodType; /** @internal */ export declare const OptionInstructionType$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace OptionInstructionType$ { /** @deprecated use `OptionInstructionType$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionInstructionType$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const OptionInstruction$inboundSchema: z.ZodType; /** @internal */ export type OptionInstruction$Outbound = { account_id?: string | undefined; create_time?: string | null | undefined; identifier?: string | undefined; identifier_type?: string | undefined; instruction_id?: string | undefined; name?: string | undefined; quantity?: OptionInstructionQuantity$Outbound | null | undefined; state?: string | undefined; state_description?: string | undefined; type?: string | undefined; update_time?: string | null | undefined; }; /** @internal */ export declare const OptionInstruction$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace OptionInstruction$ { /** @deprecated use `OptionInstruction$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionInstruction$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OptionInstruction$Outbound` instead. */ type Outbound = OptionInstruction$Outbound; } export declare function optionInstructionToJSON(optionInstruction: OptionInstruction): string; export declare function optionInstructionFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=optioninstruction.d.ts.map