@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: {
        getMilitaryCampaigns: {
            path: "military-campaigns";
            method: "GET";
            requiresAuth: false;
            responseSchema: ZodObject<
                {
                    campaigns: ZodArray<
                        ZodObject<
                            {
                                id: ZodString;
                                state: ZodType<
                                    string & {}
                                    | "Unspecified"
                                    | "Active"
                                    | "Completed"
                                    | "Expired",
                                    unknown,
                                    $ZodTypeInternals<
                                        | (...) & (...)
                                        | "Unspecified"
                                        | "Active"
                                        | "Completed"
                                        | "Expired",
                                        unknown,
                                    >,
                                >;
                                progress: ZodNumber;
                                started: ZodOptional<ZodString>;
                                finished: ZodOptional<ZodString>;
                            },
                            $loose,
                        >,
                    >;
                },
                $loose,
            >;
        };
        getMilitaryCampaign: {
            path: "military-campaigns/{campaignId}";
            method: "GET";
            requiresAuth: false;
            pathParams: readonly ["campaignId"];
            responseSchema: ZodObject<
                {
                    id: ZodString;
                    state: ZodType<
                        string & {}
                        | "Unspecified"
                        | "Active"
                        | "Completed"
                        | "Expired",
                        unknown,
                        $ZodTypeInternals<
                            string & {}
                            | "Unspecified"
                            | "Active"
                            | "Completed"
                            | "Expired",
                            unknown,
                        >,
                    >;
                    progress: ZodNumber;
                    started: ZodOptional<ZodString>;
                    finished: ZodOptional<ZodString>;
                },
                $loose,
            >;
        };
        getMilitaryCampaignObjectives: {
            path: "military-campaigns/{campaignId}/objectives";
            method: "GET";
            requiresAuth: false;
            pathParams: readonly ["campaignId"];
            queryParams: { after: "after"; before: "before"; limit: "limit" };
            responseSchema: ZodObject<
                {
                    objectives: ZodArray<
                        ZodObject<
                            {
                                id: ZodString;
                                state: ZodType<
                                    string & {}
                                    | "Unspecified"
                                    | "Active"
                                    | "Completed"
                                    | "Expired",
                                    unknown,
                                    $ZodTypeInternals<
                                        | (...) & (...)
                                        | "Unspecified"
                                        | "Active"
                                        | "Completed"
                                        | "Expired",
                                        unknown,
                                    >,
                                >;
                                progress: ZodNumber;
                                last_modified: ZodString;
                                started: ZodOptional<ZodString>;
                                finished: ZodOptional<ZodString>;
                                participants: ZodObject<
                                    {
                                        total: ZodNumber;
                                        committed: ZodNumber;
                                        contributors: ZodNumber;
                                    },
                                    $loose,
                                >;
                            },
                            $loose,
                        >,
                    >;
                    cursor: ZodOptional<
                        ZodObject<
                            { before: ZodOptional<ZodString>; after: ZodOptional<ZodString> },
                            $loose,
                        >,
                    >;
                },
                $loose,
            >;
        };
        getMilitaryCampaignObjective: {
            path: "military-campaigns/{campaignId}/objectives/{objectiveId}";
            method: "GET";
            requiresAuth: false;
            pathParams: readonly ["campaignId", "objectiveId"];
            responseSchema: ZodObject<
                {
                    id: ZodString;
                    state: ZodType<
                        string & {}
                        | "Unspecified"
                        | "Active"
                        | "Completed"
                        | "Expired",
                        unknown,
                        $ZodTypeInternals<
                            string & {}
                            | "Unspecified"
                            | "Active"
                            | "Completed"
                            | "Expired",
                            unknown,
                        >,
                    >;
                    progress: ZodNumber;
                    last_modified: ZodString;
                    started: ZodOptional<ZodString>;
                    finished: ZodOptional<ZodString>;
                    participants: ZodObject<
                        { total: ZodNumber; committed: ZodNumber; contributors: ZodNumber },
                        $loose,
                    >;
                },
                $loose,
            >;
        };
        getCharacterMilitaryCampaignObjectives: {
            path: "characters/{characterId}/military-campaigns/objectives";
            method: "GET";
            requiresAuth: true;
            pathParams: readonly ["characterId"];
            queryParams: { after: "after"; before: "before"; limit: "limit" };
            responseSchema: ZodObject<
                {
                    objectives: ZodArray<
                        ZodObject<
                            {
                                id: ZodString;
                                campaign_id: ZodString;
                                is_committed: ZodBoolean;
                                contributed: ZodNumber;
                                last_modified: ZodString;
                            },
                            $loose,
                        >,
                    >;
                    cursor: ZodOptional<
                        ZodObject<
                            { before: ZodOptional<ZodString>; after: ZodOptional<ZodString> },
                            $loose,
                        >,
                    >;
                },
                $loose,
            >;
        };
        getCharacterMilitaryCampaignObjective: {
            path: "characters/{characterId}/military-campaigns/objectives/{objectiveId}";
            method: "GET";
            requiresAuth: true;
            pathParams: readonly ["characterId", "objectiveId"];
            responseSchema: ZodObject<
                {
                    id: ZodString;
                    campaign_id: ZodString;
                    is_committed: ZodBoolean;
                    contributed: ZodNumber;
                    last_modified: ZodString;
                },
                $loose,
            >;
        };
    }
    • Type Parameters

      • R

      Parameters

      • endpointName:
            | "getMilitaryCampaigns"
            | "getMilitaryCampaign"
            | "getMilitaryCampaignObjectives"
            | "getMilitaryCampaignObjective"
            | "getCharacterMilitaryCampaignObjectives"
            | "getCharacterMilitaryCampaignObjective"
      • ...args: unknown[]

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

    • Type Parameters

      • R

      Parameters

      • endpointName:
            | "getMilitaryCampaigns"
            | "getMilitaryCampaign"
            | "getMilitaryCampaignObjectives"
            | "getMilitaryCampaignObjective"
            | "getCharacterMilitaryCampaignObjectives"
            | "getCharacterMilitaryCampaignObjective"
      • args: unknown[]
      • Optionalconcurrency: number

      Returns Promise<R[]>

    • Retrieves a list of all active, completed, and expired military campaigns.

      Returns Promise<
          {
              campaigns: {
                  id: string;
                  state: string & {}
                  | "Unspecified"
                  | "Active"
                  | "Completed"
                  | "Expired";
                  progress: number;
                  started?: string;
                  finished?: string;
                  [key: string]: unknown;
              }[];
              [key: string]: unknown;
          },
      >

      { campaigns }, one entry per campaign

    • Retrieves detailed information about a specific military campaign.

      Parameters

      • campaignId: string

        The UUID of the military campaign

      Returns Promise<
          {
              id: string;
              state: string & {}
              | "Unspecified"
              | "Active"
              | "Completed"
              | "Expired";
              progress: number;
              started?: string;
              finished?: string;
              [key: string]: unknown;
          },
      >

      Detailed information about the campaign

    • Retrieves all objectives for a specific military campaign.

      Parameters

      • campaignId: string

        The UUID of the military campaign

      • Optionalafter: string

        cursor.after from a previous page, for the page after it

      • Optionalbefore: string

        cursor.before from a previous page, for the page before it

      • Optionallimit: number

        Maximum number of objectives on the page

      Returns Promise<
          {
              objectives: {
                  id: string;
                  state: string & {}
                  | "Unspecified"
                  | "Active"
                  | "Completed"
                  | "Expired";
                  progress: number;
                  last_modified: string;
                  started?: string;
                  finished?: string;
                  participants: {
                      total: number;
                      committed: number;
                      contributors: number;
                      [key: string]: unknown;
                  };
                  [key: string]: unknown;
              }[];
              cursor?: { before?: string; after?: string; [key: string]: unknown };
              [key: string]: unknown;
          },
      >

      { objectives, cursor } for one page of the campaign's objectives

    • Retrieves detailed information about a specific objective in a military campaign.

      Parameters

      • campaignId: string

        The UUID of the military campaign

      • objectiveId: string

        The UUID of the objective

      Returns Promise<
          {
              id: string;
              state: string & {}
              | "Unspecified"
              | "Active"
              | "Completed"
              | "Expired";
              progress: number;
              last_modified: string;
              started?: string;
              finished?: string;
              participants: {
                  total: number;
                  committed: number;
                  contributors: number;
                  [key: string]: unknown;
              };
              [key: string]: unknown;
          },
      >

      Detailed information about the objective

    • Retrieves a character's participated objectives across military campaigns.

      Parameters

      • characterId: number

        The ID of the character

      • Optionalafter: string

        cursor.after from a previous page, for the page after it

      • Optionalbefore: string

        cursor.before from a previous page, for the page before it

      • Optionallimit: number

        Maximum number of objectives on the page

      Returns Promise<
          {
              objectives: {
                  id: string;
                  campaign_id: string;
                  is_committed: boolean;
                  contributed: number;
                  last_modified: string;
                  [key: string]: unknown;
              }[];
              cursor?: { before?: string; after?: string; [key: string]: unknown };
              [key: string]: unknown;
          },
      >

      { objectives, cursor } for one page of the character's campaign objective participations

      Authentication with scope esi.activity.char:read

    • Retrieves a character's participation details for a specific campaign objective.

      Parameters

      • characterId: number

        The ID of the character

      • objectiveId: string

        The UUID of the objective

      Returns Promise<
          {
              id: string;
              campaign_id: string;
              is_committed: boolean;
              contributed: number;
              last_modified: string;
              [key: string]: unknown;
          },
      >

      The character's participation details for the objective

      Authentication with scope esi.activity.char:read