New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jup-ag/api

Package Overview
Dependencies
Maintainers
6
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jup-ag/api - npm Package Compare versions

Comparing version 6.0.2 to 6.0.3

166

dist/index.d.ts
/**
* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node)
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8> are base64 encoded strings
*

@@ -186,3 +186,3 @@ * The version of the OpenAPI document: 6.0.0

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node)
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8> are base64 encoded strings
*

@@ -199,31 +199,35 @@ * The version of the OpenAPI document: 6.0.0

* @export
* @interface IndexedRouteMapResponse
* @interface AccountMeta
*/
interface IndexedRouteMapResponse {
interface AccountMeta {
/**
* All the mints that are indexed to match in indexedRouteMap
* @type {Array<string>}
* @memberof IndexedRouteMapResponse
*
* @type {string}
* @memberof AccountMeta
*/
mintKeys: Array<string>;
pubkey: string;
/**
* All the possible route and their corresponding output mints
* @type {{ [key: string]: Array<number>; }}
* @memberof IndexedRouteMapResponse
*
* @type {boolean}
* @memberof AccountMeta
*/
indexedRouteMap: {
[key: string]: Array<number>;
};
isSigner: boolean;
/**
*
* @type {boolean}
* @memberof AccountMeta
*/
isWritable: boolean;
}
/**
* Check if a given object implements the IndexedRouteMapResponse interface.
* Check if a given object implements the AccountMeta interface.
*/
declare function instanceOfIndexedRouteMapResponse(value: object): boolean;
declare function IndexedRouteMapResponseFromJSON(json: any): IndexedRouteMapResponse;
declare function IndexedRouteMapResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexedRouteMapResponse;
declare function IndexedRouteMapResponseToJSON(value?: IndexedRouteMapResponse | null): any;
declare function instanceOfAccountMeta(value: object): boolean;
declare function AccountMetaFromJSON(json: any): AccountMeta;
declare function AccountMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountMeta;
declare function AccountMetaToJSON(value?: AccountMeta | null): any;
/**
* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node)
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8> are base64 encoded strings
*

@@ -240,35 +244,31 @@ * The version of the OpenAPI document: 6.0.0

* @export
* @interface InstructionObjectAccountsInner
* @interface IndexedRouteMapResponse
*/
interface InstructionObjectAccountsInner {
interface IndexedRouteMapResponse {
/**
*
* @type {string}
* @memberof InstructionObjectAccountsInner
* All the mints that are indexed to match in indexedRouteMap
* @type {Array<string>}
* @memberof IndexedRouteMapResponse
*/
pubkey?: string;
mintKeys: Array<string>;
/**
*
* @type {boolean}
* @memberof InstructionObjectAccountsInner
* All the possible route and their corresponding output mints
* @type {{ [key: string]: Array<number>; }}
* @memberof IndexedRouteMapResponse
*/
isSigner?: boolean;
/**
*
* @type {boolean}
* @memberof InstructionObjectAccountsInner
*/
isWritable?: boolean;
indexedRouteMap: {
[key: string]: Array<number>;
};
}
/**
* Check if a given object implements the InstructionObjectAccountsInner interface.
* Check if a given object implements the IndexedRouteMapResponse interface.
*/
declare function instanceOfInstructionObjectAccountsInner(value: object): boolean;
declare function InstructionObjectAccountsInnerFromJSON(json: any): InstructionObjectAccountsInner;
declare function InstructionObjectAccountsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): InstructionObjectAccountsInner;
declare function InstructionObjectAccountsInnerToJSON(value?: InstructionObjectAccountsInner | null): any;
declare function instanceOfIndexedRouteMapResponse(value: object): boolean;
declare function IndexedRouteMapResponseFromJSON(json: any): IndexedRouteMapResponse;
declare function IndexedRouteMapResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexedRouteMapResponse;
declare function IndexedRouteMapResponseToJSON(value?: IndexedRouteMapResponse | null): any;
/**
* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node)
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8> are base64 encoded strings
*

@@ -286,35 +286,35 @@ * The version of the OpenAPI document: 6.0.0

* @export
* @interface InstructionObject
* @interface Instruction
*/
interface InstructionObject {
interface Instruction {
/**
*
* @type {string}
* @memberof InstructionObject
* @memberof Instruction
*/
programId?: string;
programId: string;
/**
*
* @type {string}
* @memberof InstructionObject
* @type {Array<AccountMeta>}
* @memberof Instruction
*/
data?: string;
accounts: Array<AccountMeta>;
/**
*
* @type {Array<InstructionObjectAccountsInner>}
* @memberof InstructionObject
* @type {string}
* @memberof Instruction
*/
accounts?: Array<InstructionObjectAccountsInner>;
data: string;
}
/**
* Check if a given object implements the InstructionObject interface.
* Check if a given object implements the Instruction interface.
*/
declare function instanceOfInstructionObject(value: object): boolean;
declare function InstructionObjectFromJSON(json: any): InstructionObject;
declare function InstructionObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): InstructionObject;
declare function InstructionObjectToJSON(value?: InstructionObject | null): any;
declare function instanceOfInstruction(value: object): boolean;
declare function InstructionFromJSON(json: any): Instruction;
declare function InstructionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Instruction;
declare function InstructionToJSON(value?: Instruction | null): any;
/**
* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node)
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8> are base64 encoded strings
*

@@ -357,3 +357,3 @@ * The version of the OpenAPI document: 6.0.0

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node)
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8> are base64 encoded strings
*

@@ -432,3 +432,3 @@ * The version of the OpenAPI document: 6.0.0

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node)
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8> are base64 encoded strings
*

@@ -454,3 +454,3 @@ * The version of the OpenAPI document: 6.0.0

*/
swapInfo?: SwapInfo;
swapInfo: SwapInfo;
/**

@@ -461,3 +461,3 @@ *

*/
percent?: number;
percent: number;
}

@@ -474,3 +474,3 @@ /**

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node)
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8> are base64 encoded strings
*

@@ -499,3 +499,3 @@ * The version of the OpenAPI document: 6.0.0

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node)
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8> are base64 encoded strings
*

@@ -566,6 +566,6 @@ * The version of the OpenAPI document: 6.0.0

*
* @type {number}
* @type {string}
* @memberof QuoteResponse
*/
priceImpactPct: number;
priceImpactPct: string;
/**

@@ -600,3 +600,3 @@ *

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node)
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8> are base64 encoded strings
*

@@ -619,30 +619,30 @@ * The version of the OpenAPI document: 6.0.0

*
* @type {InstructionObject}
* @type {Instruction}
* @memberof SwapInstructionsResponse
*/
tokenLedgerInstruction?: InstructionObject;
tokenLedgerInstruction?: Instruction;
/**
* The necessary instructions to setup the compute budget.
* @type {Array<InstructionObject>}
* @type {Array<Instruction>}
* @memberof SwapInstructionsResponse
*/
computeBudgetInstructions?: Array<InstructionObject>;
computeBudgetInstructions: Array<Instruction>;
/**
* Setup missing ATA for the users.
* @type {Array<InstructionObject>}
* @type {Array<Instruction>}
* @memberof SwapInstructionsResponse
*/
setupInstructions?: Array<InstructionObject>;
setupInstructions: Array<Instruction>;
/**
*
* @type {InstructionObject}
* @type {Instruction}
* @memberof SwapInstructionsResponse
*/
swapInstruction?: InstructionObject;
swapInstruction: Instruction;
/**
*
* @type {InstructionObject}
* @type {Instruction}
* @memberof SwapInstructionsResponse
*/
cleanupInstruction?: InstructionObject;
cleanupInstruction?: Instruction;
/**

@@ -653,3 +653,3 @@ * The lookup table addresses that you can use if you are using versioned transaction.

*/
addressLookupTableAddresses?: Array<string>;
addressLookupTableAddresses: Array<string>;
}

@@ -666,3 +666,3 @@ /**

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node)
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8> are base64 encoded strings
*

@@ -748,3 +748,3 @@ * The version of the OpenAPI document: 6.0.0

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node)
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8> are base64 encoded strings
*

@@ -769,3 +769,3 @@ * The version of the OpenAPI document: 6.0.0

*/
swapTransaction?: string;
swapTransaction: string;
}

@@ -782,3 +782,3 @@ /**

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node)
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8> are base64 encoded strings
*

@@ -871,2 +871,2 @@ * The version of the OpenAPI document: 6.0.0

export { ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, ConfigurationParameters, Consume, DefaultApi, DefaultConfig, ErrorContext, FetchAPI, FetchError, FetchParams, HTTPBody, HTTPHeaders, HTTPMethod, HTTPQuery, HTTPRequestInit, IndexedRouteMapGetRequest, IndexedRouteMapResponse, IndexedRouteMapResponseFromJSON, IndexedRouteMapResponseFromJSONTyped, IndexedRouteMapResponseToJSON, InitOverrideFunction, InstructionObject, InstructionObjectAccountsInner, InstructionObjectAccountsInnerFromJSON, InstructionObjectAccountsInnerFromJSONTyped, InstructionObjectAccountsInnerToJSON, InstructionObjectFromJSON, InstructionObjectFromJSONTyped, InstructionObjectToJSON, JSONApiResponse, Json, Middleware, ModelPropertyNaming, PlatformFee, PlatformFeeFromJSON, PlatformFeeFromJSONTyped, PlatformFeeToJSON, QuoteGetRequest, QuoteResponse, QuoteResponseFromJSON, QuoteResponseFromJSONTyped, QuoteResponseToJSON, RequestContext, RequestOpts, RequiredError, ResponseContext, ResponseError, ResponseTransformer, RoutePlanStep, RoutePlanStepFromJSON, RoutePlanStepFromJSONTyped, RoutePlanStepToJSON, SwapInfo, SwapInfoFromJSON, SwapInfoFromJSONTyped, SwapInfoToJSON, SwapInstructionsPostRequest, SwapInstructionsResponse, SwapInstructionsResponseFromJSON, SwapInstructionsResponseFromJSONTyped, SwapInstructionsResponseToJSON, SwapMode, SwapModeFromJSON, SwapModeFromJSONTyped, SwapModeToJSON, SwapPostRequest, SwapRequest, SwapRequestFromJSON, SwapRequestFromJSONTyped, SwapRequestToJSON, SwapResponse, SwapResponseFromJSON, SwapResponseFromJSONTyped, SwapResponseToJSON, TextApiResponse, VoidApiResponse, canConsumeForm, createJupiterApiClient, exists, instanceOfIndexedRouteMapResponse, instanceOfInstructionObject, instanceOfInstructionObjectAccountsInner, instanceOfPlatformFee, instanceOfQuoteResponse, instanceOfRoutePlanStep, instanceOfSwapInfo, instanceOfSwapInstructionsResponse, instanceOfSwapRequest, instanceOfSwapResponse, mapValues, querystring };
export { AccountMeta, AccountMetaFromJSON, AccountMetaFromJSONTyped, AccountMetaToJSON, ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, ConfigurationParameters, Consume, DefaultApi, DefaultConfig, ErrorContext, FetchAPI, FetchError, FetchParams, HTTPBody, HTTPHeaders, HTTPMethod, HTTPQuery, HTTPRequestInit, IndexedRouteMapGetRequest, IndexedRouteMapResponse, IndexedRouteMapResponseFromJSON, IndexedRouteMapResponseFromJSONTyped, IndexedRouteMapResponseToJSON, InitOverrideFunction, Instruction, InstructionFromJSON, InstructionFromJSONTyped, InstructionToJSON, JSONApiResponse, Json, Middleware, ModelPropertyNaming, PlatformFee, PlatformFeeFromJSON, PlatformFeeFromJSONTyped, PlatformFeeToJSON, QuoteGetRequest, QuoteResponse, QuoteResponseFromJSON, QuoteResponseFromJSONTyped, QuoteResponseToJSON, RequestContext, RequestOpts, RequiredError, ResponseContext, ResponseError, ResponseTransformer, RoutePlanStep, RoutePlanStepFromJSON, RoutePlanStepFromJSONTyped, RoutePlanStepToJSON, SwapInfo, SwapInfoFromJSON, SwapInfoFromJSONTyped, SwapInfoToJSON, SwapInstructionsPostRequest, SwapInstructionsResponse, SwapInstructionsResponseFromJSON, SwapInstructionsResponseFromJSONTyped, SwapInstructionsResponseToJSON, SwapMode, SwapModeFromJSON, SwapModeFromJSONTyped, SwapModeToJSON, SwapPostRequest, SwapRequest, SwapRequestFromJSON, SwapRequestFromJSONTyped, SwapRequestToJSON, SwapResponse, SwapResponseFromJSON, SwapResponseFromJSONTyped, SwapResponseToJSON, TextApiResponse, VoidApiResponse, canConsumeForm, createJupiterApiClient, exists, instanceOfAccountMeta, instanceOfIndexedRouteMapResponse, instanceOfInstruction, instanceOfPlatformFee, instanceOfQuoteResponse, instanceOfRoutePlanStep, instanceOfSwapInfo, instanceOfSwapInstructionsResponse, instanceOfSwapRequest, instanceOfSwapResponse, mapValues, querystring };

@@ -60,2 +60,5 @@ "use strict";

__export(src_exports, {
AccountMetaFromJSON: () => AccountMetaFromJSON,
AccountMetaFromJSONTyped: () => AccountMetaFromJSONTyped,
AccountMetaToJSON: () => AccountMetaToJSON,
BASE_PATH: () => BASE_PATH,

@@ -72,8 +75,5 @@ BaseAPI: () => BaseAPI,

IndexedRouteMapResponseToJSON: () => IndexedRouteMapResponseToJSON,
InstructionObjectAccountsInnerFromJSON: () => InstructionObjectAccountsInnerFromJSON,
InstructionObjectAccountsInnerFromJSONTyped: () => InstructionObjectAccountsInnerFromJSONTyped,
InstructionObjectAccountsInnerToJSON: () => InstructionObjectAccountsInnerToJSON,
InstructionObjectFromJSON: () => InstructionObjectFromJSON,
InstructionObjectFromJSONTyped: () => InstructionObjectFromJSONTyped,
InstructionObjectToJSON: () => InstructionObjectToJSON,
InstructionFromJSON: () => InstructionFromJSON,
InstructionFromJSONTyped: () => InstructionFromJSONTyped,
InstructionToJSON: () => InstructionToJSON,
JSONApiResponse: () => JSONApiResponse,

@@ -112,5 +112,5 @@ PlatformFeeFromJSON: () => PlatformFeeFromJSON,

exists: () => exists,
instanceOfAccountMeta: () => instanceOfAccountMeta,
instanceOfIndexedRouteMapResponse: () => instanceOfIndexedRouteMapResponse,
instanceOfInstructionObject: () => instanceOfInstructionObject,
instanceOfInstructionObjectAccountsInner: () => instanceOfInstructionObjectAccountsInner,
instanceOfInstruction: () => instanceOfInstruction,
instanceOfPlatformFee: () => instanceOfPlatformFee,

@@ -421,13 +421,14 @@ instanceOfQuoteResponse: () => instanceOfQuoteResponse,

// generated/models/IndexedRouteMapResponse.ts
function instanceOfIndexedRouteMapResponse(value) {
// generated/models/AccountMeta.ts
function instanceOfAccountMeta(value) {
let isInstance = true;
isInstance = isInstance && "mintKeys" in value;
isInstance = isInstance && "indexedRouteMap" in value;
isInstance = isInstance && "pubkey" in value;
isInstance = isInstance && "isSigner" in value;
isInstance = isInstance && "isWritable" in value;
return isInstance;
}
function IndexedRouteMapResponseFromJSON(json) {
return IndexedRouteMapResponseFromJSONTyped(json, false);
function AccountMetaFromJSON(json) {
return AccountMetaFromJSONTyped(json, false);
}
function IndexedRouteMapResponseFromJSONTyped(json, ignoreDiscriminator) {
function AccountMetaFromJSONTyped(json, ignoreDiscriminator) {
if (json === void 0 || json === null) {

@@ -437,7 +438,8 @@ return json;

return {
"mintKeys": json["mintKeys"],
"indexedRouteMap": json["indexedRouteMap"]
"pubkey": json["pubkey"],
"isSigner": json["isSigner"],
"isWritable": json["isWritable"]
};
}
function IndexedRouteMapResponseToJSON(value) {
function AccountMetaToJSON(value) {
if (value === void 0) {

@@ -450,16 +452,19 @@ return void 0;

return {
"mintKeys": value.mintKeys,
"indexedRouteMap": value.indexedRouteMap
"pubkey": value.pubkey,
"isSigner": value.isSigner,
"isWritable": value.isWritable
};
}
// generated/models/InstructionObjectAccountsInner.ts
function instanceOfInstructionObjectAccountsInner(value) {
// generated/models/IndexedRouteMapResponse.ts
function instanceOfIndexedRouteMapResponse(value) {
let isInstance = true;
isInstance = isInstance && "mintKeys" in value;
isInstance = isInstance && "indexedRouteMap" in value;
return isInstance;
}
function InstructionObjectAccountsInnerFromJSON(json) {
return InstructionObjectAccountsInnerFromJSONTyped(json, false);
function IndexedRouteMapResponseFromJSON(json) {
return IndexedRouteMapResponseFromJSONTyped(json, false);
}
function InstructionObjectAccountsInnerFromJSONTyped(json, ignoreDiscriminator) {
function IndexedRouteMapResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json === void 0 || json === null) {

@@ -469,8 +474,7 @@ return json;

return {
"pubkey": !exists(json, "pubkey") ? void 0 : json["pubkey"],
"isSigner": !exists(json, "isSigner") ? void 0 : json["isSigner"],
"isWritable": !exists(json, "isWritable") ? void 0 : json["isWritable"]
"mintKeys": json["mintKeys"],
"indexedRouteMap": json["indexedRouteMap"]
};
}
function InstructionObjectAccountsInnerToJSON(value) {
function IndexedRouteMapResponseToJSON(value) {
if (value === void 0) {

@@ -483,17 +487,19 @@ return void 0;

return {
"pubkey": value.pubkey,
"isSigner": value.isSigner,
"isWritable": value.isWritable
"mintKeys": value.mintKeys,
"indexedRouteMap": value.indexedRouteMap
};
}
// generated/models/InstructionObject.ts
function instanceOfInstructionObject(value) {
// generated/models/Instruction.ts
function instanceOfInstruction(value) {
let isInstance = true;
isInstance = isInstance && "programId" in value;
isInstance = isInstance && "accounts" in value;
isInstance = isInstance && "data" in value;
return isInstance;
}
function InstructionObjectFromJSON(json) {
return InstructionObjectFromJSONTyped(json, false);
function InstructionFromJSON(json) {
return InstructionFromJSONTyped(json, false);
}
function InstructionObjectFromJSONTyped(json, ignoreDiscriminator) {
function InstructionFromJSONTyped(json, ignoreDiscriminator) {
if (json === void 0 || json === null) {

@@ -503,8 +509,8 @@ return json;

return {
"programId": !exists(json, "programId") ? void 0 : json["programId"],
"data": !exists(json, "data") ? void 0 : json["data"],
"accounts": !exists(json, "accounts") ? void 0 : json["accounts"].map(InstructionObjectAccountsInnerFromJSON)
"programId": json["programId"],
"accounts": json["accounts"].map(AccountMetaFromJSON),
"data": json["data"]
};
}
function InstructionObjectToJSON(value) {
function InstructionToJSON(value) {
if (value === void 0) {

@@ -518,4 +524,4 @@ return void 0;

"programId": value.programId,
"data": value.data,
"accounts": value.accounts === void 0 ? void 0 : value.accounts.map(InstructionObjectAccountsInnerToJSON)
"accounts": value.accounts.map(AccountMetaToJSON),
"data": value.data
};

@@ -606,2 +612,4 @@ }

let isInstance = true;
isInstance = isInstance && "swapInfo" in value;
isInstance = isInstance && "percent" in value;
return isInstance;

@@ -617,4 +625,4 @@ }

return {
"swapInfo": !exists(json, "swapInfo") ? void 0 : SwapInfoFromJSON(json["swapInfo"]),
"percent": !exists(json, "percent") ? void 0 : json["percent"]
"swapInfo": SwapInfoFromJSON(json["swapInfo"]),
"percent": json["percent"]
};

@@ -711,2 +719,6 @@ }

let isInstance = true;
isInstance = isInstance && "computeBudgetInstructions" in value;
isInstance = isInstance && "setupInstructions" in value;
isInstance = isInstance && "swapInstruction" in value;
isInstance = isInstance && "addressLookupTableAddresses" in value;
return isInstance;

@@ -722,8 +734,8 @@ }

return {
"tokenLedgerInstruction": !exists(json, "tokenLedgerInstruction") ? void 0 : InstructionObjectFromJSON(json["tokenLedgerInstruction"]),
"computeBudgetInstructions": !exists(json, "computeBudgetInstructions") ? void 0 : json["computeBudgetInstructions"].map(InstructionObjectFromJSON),
"setupInstructions": !exists(json, "setupInstructions") ? void 0 : json["setupInstructions"].map(InstructionObjectFromJSON),
"swapInstruction": !exists(json, "swapInstruction") ? void 0 : InstructionObjectFromJSON(json["swapInstruction"]),
"cleanupInstruction": !exists(json, "cleanupInstruction") ? void 0 : InstructionObjectFromJSON(json["cleanupInstruction"]),
"addressLookupTableAddresses": !exists(json, "addressLookupTableAddresses") ? void 0 : json["addressLookupTableAddresses"]
"tokenLedgerInstruction": !exists(json, "tokenLedgerInstruction") ? void 0 : InstructionFromJSON(json["tokenLedgerInstruction"]),
"computeBudgetInstructions": json["computeBudgetInstructions"].map(InstructionFromJSON),
"setupInstructions": json["setupInstructions"].map(InstructionFromJSON),
"swapInstruction": InstructionFromJSON(json["swapInstruction"]),
"cleanupInstruction": !exists(json, "cleanupInstruction") ? void 0 : InstructionFromJSON(json["cleanupInstruction"]),
"addressLookupTableAddresses": json["addressLookupTableAddresses"]
};

@@ -739,7 +751,7 @@ }

return {
"tokenLedgerInstruction": InstructionObjectToJSON(value.tokenLedgerInstruction),
"computeBudgetInstructions": value.computeBudgetInstructions === void 0 ? void 0 : value.computeBudgetInstructions.map(InstructionObjectToJSON),
"setupInstructions": value.setupInstructions === void 0 ? void 0 : value.setupInstructions.map(InstructionObjectToJSON),
"swapInstruction": InstructionObjectToJSON(value.swapInstruction),
"cleanupInstruction": InstructionObjectToJSON(value.cleanupInstruction),
"tokenLedgerInstruction": InstructionToJSON(value.tokenLedgerInstruction),
"computeBudgetInstructions": value.computeBudgetInstructions.map(InstructionToJSON),
"setupInstructions": value.setupInstructions.map(InstructionToJSON),
"swapInstruction": InstructionToJSON(value.swapInstruction),
"cleanupInstruction": InstructionToJSON(value.cleanupInstruction),
"addressLookupTableAddresses": value.addressLookupTableAddresses

@@ -798,2 +810,3 @@ };

let isInstance = true;
isInstance = isInstance && "swapTransaction" in value;
return isInstance;

@@ -809,3 +822,3 @@ }

return {
"swapTransaction": !exists(json, "swapTransaction") ? void 0 : json["swapTransaction"]
"swapTransaction": json["swapTransaction"]
};

@@ -1019,2 +1032,5 @@ }

0 && (module.exports = {
AccountMetaFromJSON,
AccountMetaFromJSONTyped,
AccountMetaToJSON,
BASE_PATH,

@@ -1031,8 +1047,5 @@ BaseAPI,

IndexedRouteMapResponseToJSON,
InstructionObjectAccountsInnerFromJSON,
InstructionObjectAccountsInnerFromJSONTyped,
InstructionObjectAccountsInnerToJSON,
InstructionObjectFromJSON,
InstructionObjectFromJSONTyped,
InstructionObjectToJSON,
InstructionFromJSON,
InstructionFromJSONTyped,
InstructionToJSON,
JSONApiResponse,

@@ -1071,5 +1084,5 @@ PlatformFeeFromJSON,

exists,
instanceOfAccountMeta,
instanceOfIndexedRouteMapResponse,
instanceOfInstructionObject,
instanceOfInstructionObjectAccountsInner,
instanceOfInstruction,
instanceOfPlatformFee,

@@ -1076,0 +1089,0 @@ instanceOfQuoteResponse,

{
"name": "@jup-ag/api",
"version": "6.0.2",
"version": "6.0.3",
"description": "## Generate typescript types from swagger schema",

@@ -9,2 +9,7 @@ "main": "dist/index.js",

"sideEffects": false,
"scripts": {
"start": "ts-node ./example/index.ts",
"build": "npm run openapi-gen && tsup src/index.ts --dts --format esm,cjs",
"openapi-gen": "openapi-generator-cli generate -i swagger.yaml -o generated -g typescript-fetch --skip-validate-spec --additional-properties=supportsES6=true,typescriptThreePlus=true"
},
"author": "",

@@ -22,8 +27,3 @@ "license": "MIT",

"dist"
],
"scripts": {
"start": "ts-node ./example/index.ts",
"build": "npm run openapi-gen && tsup src/index.ts --dts --format esm,cjs",
"openapi-gen": "openapi-generator-cli generate -i swagger.yaml -o generated -g typescript-fetch --skip-validate-spec --additional-properties=supportsES6=true,typescriptThreePlus=true"
}
}
]
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc