@lgriffin/esi.ts - EVE Online ESI API Client - v12.3.0
    Preparing search index...

    The base of the custom domain clients: an endpoint map turned into methods, plus the stream*/fetchAll* page helpers and withMetadata/withSafeMode. Extend it for a custom domain client of your own.

    Hierarchy (View Summary)

    Index
    api: ClientMethods<T>
    _client: ApiClient
    _endpoints: {
        getCharacterAssets: {
            path: "characters/{characterId}/assets/";
            method: "GET";
            requiresAuth: true;
            pathParams: readonly ["characterId"];
            responseSchema: ZodArray<
                ZodObject<
                    {
                        item_id: ZodNumber;
                        type_id: ZodNumber;
                        quantity: ZodNumber;
                        location_id: ZodNumber;
                        location_type: ZodType<
                            string & {}
                            | "other"
                            | "solar_system"
                            | "station"
                            | "item",
                            unknown,
                            $ZodTypeInternals<
                                string & {}
                                | "other"
                                | "solar_system"
                                | "station"
                                | "item",
                                unknown,
                            >,
                        >;
                        location_flag: ZodString;
                        is_singleton: ZodBoolean;
                        is_blueprint_copy: ZodOptional<ZodBoolean>;
                    },
                    $loose,
                >,
            >;
        };
        getCorporationAssets: {
            path: "corporations/{corporationId}/assets/";
            method: "GET";
            requiresAuth: true;
            pathParams: readonly ["corporationId"];
            responseSchema: ZodArray<
                ZodObject<
                    {
                        item_id: ZodNumber;
                        type_id: ZodNumber;
                        quantity: ZodNumber;
                        location_id: ZodNumber;
                        location_type: ZodType<
                            string & {}
                            | "other"
                            | "solar_system"
                            | "station"
                            | "item",
                            unknown,
                            $ZodTypeInternals<
                                string & {}
                                | "other"
                                | "solar_system"
                                | "station"
                                | "item",
                                unknown,
                            >,
                        >;
                        location_flag: ZodString;
                        is_singleton: ZodBoolean;
                        is_blueprint_copy: ZodOptional<ZodBoolean>;
                    },
                    $loose,
                >,
            >;
        };
        postCharacterAssetLocations: {
            path: "characters/{characterId}/assets/locations/";
            method: "POST";
            requiresAuth: true;
            pathParams: readonly ["characterId"];
            bodyBuilder: (itemIds: number[]) => number[];
            responseSchema: ZodArray<
                ZodObject<
                    {
                        item_id: ZodNumber;
                        position: ZodObject<
                            { x: ZodNumber; y: ZodNumber; z: ZodNumber },
                            $loose,
                        >;
                    },
                    $loose,
                >,
            >;
        };
        postCharacterAssetNames: {
            path: "characters/{characterId}/assets/names/";
            method: "POST";
            requiresAuth: true;
            pathParams: readonly ["characterId"];
            bodyBuilder: (itemIds: number[]) => number[];
            responseSchema: ZodArray<
                ZodObject<{ item_id: ZodNumber; name: ZodString }, $loose>,
            >;
        };
        postCorporationAssetLocations: {
            path: "corporations/{corporationId}/assets/locations/";
            method: "POST";
            responseSchema: ZodArray<
                ZodObject<
                    {
                        item_id: ZodNumber;
                        position: ZodObject<
                            { x: ZodNumber; y: ZodNumber; z: ZodNumber },
                            $loose,
                        >;
                    },
                    $loose,
                >,
            >;
            requiresAuth: true;
            pathParams: readonly ["corporationId"];
            bodyBuilder: (itemIds: number[]) => number[];
        };
        postCorporationAssetNames: {
            path: "corporations/{corporationId}/assets/names/";
            method: "POST";
            responseSchema: ZodArray<
                ZodObject<{ item_id: ZodNumber; name: ZodString }, $loose>,
            >;
            requiresAuth: true;
            pathParams: readonly ["corporationId"];
            bodyBuilder: (itemIds: number[]) => number[];
        };
    }
    • Retrieve a list of assets owned by a character.

      Parameters

      • characterId: number

        The ID of the character whose assets to retrieve

      Returns Promise<
          {
              item_id: number;
              type_id: number;
              quantity: number;
              location_id: number;
              location_type: string & {}
              | "other"
              | "solar_system"
              | "station"
              | "item";
              location_flag: string;
              is_singleton: boolean;
              is_blueprint_copy?: boolean;
              [key: string]: unknown;
          }[],
      >

      A list of the character's assets including type, quantity, and location

      Authentication

    • Look up the locations of specific assets owned by a character via a bulk POST request.

      Parameters

      • characterId: number

        The ID of the character who owns the assets

      • itemIds: number[]

        An array of item IDs to look up locations for

      Returns Promise<
          {
              item_id: number;
              position: { x: number; y: number; z: number; [key: string]: unknown };
              [key: string]: unknown;
          }[],
      >

      Location information for each requested asset

      Authentication

    • Look up the names of specific assets owned by a character via a bulk POST request.

      Parameters

      • characterId: number

        The ID of the character who owns the assets

      • itemIds: number[]

        An array of item IDs to look up names for

      Returns Promise<{ item_id: number; name: string; [key: string]: unknown }[]>

      The user-assigned names for each requested asset

      Authentication

    • Retrieve a list of assets owned by a corporation.

      Parameters

      • corporationId: number

        The ID of the corporation whose assets to retrieve

      Returns Promise<
          {
              item_id: number;
              type_id: number;
              quantity: number;
              location_id: number;
              location_type: string & {}
              | "other"
              | "solar_system"
              | "station"
              | "item";
              location_flag: string;
              is_singleton: boolean;
              is_blueprint_copy?: boolean;
              [key: string]: unknown;
          }[],
      >

      A list of the corporation's assets including type, quantity, and location

      Authentication

    • Look up the locations of specific assets owned by a corporation via a bulk POST request.

      Parameters

      • corporationId: number

        The ID of the corporation that owns the assets

      • itemIds: number[]

        An array of item IDs to look up locations for

      Returns Promise<
          {
              item_id: number;
              position: { x: number; y: number; z: number; [key: string]: unknown };
              [key: string]: unknown;
          }[],
      >

      Location information for each requested asset

      Authentication

    • Look up the names of specific assets owned by a corporation via a bulk POST request.

      Parameters

      • corporationId: number

        The ID of the corporation that owns the assets

      • itemIds: number[]

        An array of item IDs to look up names for

      Returns Promise<{ item_id: number; name: string; [key: string]: unknown }[]>

      The user-assigned names for each requested asset

      Authentication

    • Parameters

      • characterId: number
      • Optionalconcurrency: number

      Returns Promise<
          {
              item_id: number;
              type_id: number;
              quantity: number;
              location_id: number;
              location_type: string & {}
              | "other"
              | "solar_system"
              | "station"
              | "item";
              location_flag: string;
              is_singleton: boolean;
              is_blueprint_copy?: boolean;
              [key: string]: unknown;
          }[],
      >

    • Parameters

      • corporationId: number
      • Optionalconcurrency: number

      Returns Promise<
          {
              item_id: number;
              type_id: number;
              quantity: number;
              location_id: number;
              location_type: string & {}
              | "other"
              | "solar_system"
              | "station"
              | "item";
              location_flag: string;
              is_singleton: boolean;
              is_blueprint_copy?: boolean;
              [key: string]: unknown;
          }[],
      >

    • Parameters

      • characterId: number

      Returns AsyncGenerator<
          PageResult<
              {
                  item_id: number;
                  type_id: number;
                  quantity: number;
                  location_id: number;
                  location_type: | string & {}
                  | "other"
                  | "solar_system"
                  | "station"
                  | "item";
                  location_flag: string;
                  is_singleton: boolean;
                  is_blueprint_copy?: boolean;
                  [key: string]: unknown;
              },
          >,
          void,
          undefined,
      >

    • Parameters

      • corporationId: number

      Returns AsyncGenerator<
          PageResult<
              {
                  item_id: number;
                  type_id: number;
                  quantity: number;
                  location_id: number;
                  location_type: | string & {}
                  | "other"
                  | "solar_system"
                  | "station"
                  | "item";
                  location_flag: string;
                  is_singleton: boolean;
                  is_blueprint_copy?: boolean;
                  [key: string]: unknown;
              },
          >,
          void,
          undefined,
      >

    • Type Parameters

      • R

      Parameters

      • endpointName:
            | "getCharacterAssets"
            | "getCorporationAssets"
            | "postCharacterAssetLocations"
            | "postCharacterAssetNames"
            | "postCorporationAssetLocations"
            | "postCorporationAssetNames"
      • ...args: unknown[]

      Returns AsyncGenerator<PageResult<R>, void, undefined>

    • Type Parameters

      • R

      Parameters

      • endpointName:
            | "getCharacterAssets"
            | "getCorporationAssets"
            | "postCharacterAssetLocations"
            | "postCharacterAssetNames"
            | "postCorporationAssetLocations"
            | "postCorporationAssetNames"
      • args: unknown[]
      • Optionalconcurrency: number

      Returns Promise<R[]>