From c3884b0d309b7350185e4f7b76e24e7c0ca8e6c3 Mon Sep 17 00:00:00 2001 From: eruizgar91 Date: Tue, 29 Oct 2024 09:06:22 +0000 Subject: [PATCH] Automated docs update Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- docs/assets/navigation.js | 2 +- docs/assets/search.js | 2 +- docs/classes/AIQueryApi.html | 38 ++++++---- docs/classes/AIQueryOptions.html | 8 +- docs/classes/Payments.html | 75 +++++++++++-------- docs/classes/PaymentsError.html | 4 +- docs/enums/AgentExecutionStatus.html | 12 +-- docs/functions/generateStepId.html | 3 + docs/functions/getAIHubOpenApiUrl.html | 3 + docs/functions/getQueryProtocolEndpoints.html | 4 + .../getServiceHostFromEndpoints.html | 1 + docs/functions/isEthereumAddress.html | 5 +- docs/functions/isStepIdValid.html | 4 + docs/functions/jsonReplacer.html | 2 +- docs/functions/sleep.html | 2 +- docs/hierarchy.html | 2 +- docs/index.html | 2 +- docs/interfaces/Artifact.html | 6 +- docs/interfaces/BackendApiOptions.html | 14 ++-- docs/interfaces/BackendWebSocketOptions.html | 10 +-- docs/interfaces/Endpoint.html | 2 +- docs/interfaces/EnvironmentInfo.html | 4 +- docs/interfaces/ExecutionInput.html | 14 ++-- docs/interfaces/ExecutionOptions.html | 31 +++++--- docs/interfaces/ExecutionOutput.html | 14 ++-- docs/interfaces/PaymentOptions.html | 12 +-- docs/interfaces/SearchSteps.html | 4 +- docs/interfaces/SearchTasks.html | 4 +- docs/interfaces/Step.html | 43 +++++++---- docs/interfaces/Task.html | 38 ++++++---- docs/modules.html | 8 +- docs/types/EnvironmentName.html | 2 +- docs/variables/CREATE_STEPS_ENDPOINT.html | 2 +- docs/variables/Environments.html | 2 +- docs/variables/FIRST_STEP_NAME.html | 2 +- docs/variables/GET_AGENTS_ENDPOINT.html | 2 +- .../variables/GET_BUILDER_STEPS_ENDPOINT.html | 2 +- docs/variables/GET_TASK_ENDPOINT.html | 2 +- docs/variables/GET_TASK_STEPS_ENDPOINT.html | 2 +- docs/variables/LAST_STEP_NAME.html | 1 - docs/variables/SEARCH_STEPS_ENDPOINT.html | 2 +- docs/variables/SEARCH_TASKS_ENDPOINT.html | 2 +- docs/variables/TASK_ENDPOINT.html | 2 +- docs/variables/UPDATE_STEP_ENDPOINT.html | 2 +- docs/variables/ZeroAddress.html | 2 +- 45 files changed, 237 insertions(+), 163 deletions(-) create mode 100644 docs/functions/generateStepId.html create mode 100644 docs/functions/getAIHubOpenApiUrl.html create mode 100644 docs/functions/getQueryProtocolEndpoints.html create mode 100644 docs/functions/getServiceHostFromEndpoints.html create mode 100644 docs/functions/isStepIdValid.html delete mode 100644 docs/variables/LAST_STEP_NAME.html diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js index 05b71e6..d9588d1 100644 --- a/docs/assets/navigation.js +++ b/docs/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA43U0W6bMBQG4HfxdbSs2dptuXMbr0PraAZUk1pNkQsnCwsYyzZVo2nvPsESgYM5+Pr/z4dtDE9/iIFXQ5aE/gJh2CuktckrERtuak1mRHKzI0sCoi713NV5szNlQWZkn4uMLD/+nXVi8L0GdaAy75y04FqDnneZPX+xcAj3snmcHlWOOSat+aEEYRzGKfGZZkpVapxoY3Q/yuRbnpqOyIUBteVps5ljaAOLy6secM3TPYiMynxwJj1p0PIgf8BzXKV7MB7weRfjmchklQv3lk8hDrzkqhLNAQdiW404VgflTrc3ELIeWZVV8cKwQzsv+YG1mVze/w7GHS8mtjq7gmExcJXuYgPSLfXyaSbheo8xbY4yBqR73oDEBhvZOdgEnhcx5CV0hjlI+w428Zn09tOHi8tFT7uJGE3YJk7YOt6wcLW+D8KkM1+4yvlzAXruLNr6u4V7mdrl9XOE+RxEcdI+dRPSb8wlnVUQ7JYlG3rLwgTfqqM2gV4/BHcrFnkc43h74hEJjb9OylbJB/RbsKOK4Hd06o3ZDYSKGY1uvnis0lmchpuNecF2EYEnX5PvK3pYr07fG+q5egj7CKqiWaZAO7/KXowguWZmBwrqckBta5G2v/D5oGSDV+974G9diQhkwVNQLqufI4wuoP837ubbYDD48x8s2eradgoAAA==" \ No newline at end of file +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA43WXW/aMBQG4P+SazRWtnYbd2lxS7QNGAmbtGlCJjkUj8S2bAcVTfvvU1JQYnBOfP2+fvwRJ/Drb2DgxQTjIHwGbsgLpKVhgseGmlIHg0BSswvGAfCy0ENX583OFHkwCPaMZ8H4479BI0bfSlDHULLGSXOqNehhk9njb0YOYS6r6XSncsoxaUGPBXDjMM6Jz2iilFDdRB2j+1GGbWlqGoJxA2pL02ozp9AGRrd3LeCepnvgWSjZ1Zm0pKuWB/kDNrFI92A84MsuxhOeScG4e8vnEAcOTAleHXDEt6LDsTood769EZdlx6qsiheGHdplyQ8sTe/yXjsYd7qY2OrsCobFQFW6iw1It9TK+5mE6j3G1DnKGJDu8QYkNrCSnQOrwPMizmgBjWGO0r6DVXwhvf304eZ21NIeliRMyDpOyCJek9lkMY9mSWMeqGJ0k4MeOou2/m7kXqZ2ee0cYR6jZZzUs65n4Vfiki4qCPZEknX4RGYJvlVHrQe9X0VfJmTpcYzd7Z4pkjD+3CtbJR/Qb8GOKoLHJFw+TD1oZ7EfrlbjBdtFBO49W99zXS0m55cE9Vw9hP0JSoRZpkA7X6VWjCDPwEFRA9WHKcoaZ1vytP7oDu2GTd29tygTRtNyM5fAQ8lWKndzly2crP9DLZQwIhX5+SdZd8juMj5BDOrAUpgKbR6VKPqm6KojkzBNzA4UlMXV42roqxIKvj6M7zRnzmdmFRDojxZ8CTKnKSiX084RRufQ/r1rxtfB1cDf/wHGCZAd2AsAAA==" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index b2ee5b5..3775445 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA7VdbXPbOJL+K1f0V41D8J355iSeHdf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UN2bd6aadrX4aEZOEf2XSPYHVMtG67g66FqN0dPdzseiB84xQtW7egBSgRIiPoFVp+yufCvGwwegYEds+Ohv/4H6AGn477TfN55cBsN7HsYzD47jkzqI5Bx2GCkn96hqjy7LDN3HiHoJbZKwRYEUkiwx/XRcOkRgAWKUdfJcV+J9PoHMmwYoxu1YK/D6GUniuFj49TjM1QbnTNgoMPZglFt78po16Rkj8JIE1wL4B3dYPCAtBF3WSPpczPXltaUGTwCPd9iS/FGKk7goGe7YPgkKMjhwPOefTZohn0F9VgOZs5ZA+Y8Cp9Az+lShVHQ/Yz6v2VVErsxtHMnSf+0cvb5Xu7yQjqv7z/9/Pn/CVJITGSGAAA="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA7VdW3PbuJL+K1vyqyaj5p15cxLPmdQ5m8kmmXOq1pVS0RJscyOTXJLyTE5q/vsWwFsD6gZByfs0GatvxNdoAB9A8MeqLv9oVq9vf6y+5cV+9doLo/WqyJ7E6vXqTbb7Jor9dZX/VrV5WTSr9epYH1avV3nRivo+24nm5xOhV4/t02G1Xu0OWdOIZvV6tfprPZiHjReM9u861V/LpnW3fKVrIS/rVZXVomjJyJkQsir/u/i+wPuocKHjP8Td53L3TbQLn97UuzCMqi7//L4wBKxzoftHke1FvSCvriaN5a6jMPSn7N5u2++VWO761ajoGMGrIea5VFjcy64I1eXNQnT5f7mHZIq6d/8qax+XGr7qlaxPeRI9E0BbZ0VTlXW7+PmuNNUXCeZOZLWov5TfRLE4Gl33ZdvmzAy4IgycG9jCfusWj2M3PjF28lx0R7opnvO6LJ5E0b4v7ksqXEPEvePc12XRimLvavQKKdAPa0ZrH7Cd/U7yF7n9Q9w1CoM3C/0TihcFokY+Z++D9FKXvjc6/G9Rl9f7fS2aqQM+Z3We3R1E8zP61Zo83iaNIfSo3Pwg/zJYlv1Bexb5q9WyTxqlYsU/24NFnehj9l0qWEqQLuHehcQUjqPZK12FBtUImHFePD9ds/NOyjVWuMRxLdpj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BcKhBdglvnpLlxj2ABcySLgUVOpkMvmo5LNLFaVuLAkA70JAwlXhKmsftbxHlZtVUZdlEktqPDtgtyyq4auMWBGlBsvBD4qiu0sUxYy7Obv+qIarftE4hcukx4Jjku+YCZb7b4wa/nwP8olgSdlYZTXTfGoubVrmVgEeSDm9o/F8mKpOOG8n8whMpflcY45ffEB9F+nFfclPxz7Mlf5atMe6MJIeT9K93gQ7/HVXtliX5rgI+BzQvR0182bs4MGE3drq7JzOuXXWZqhpMde/OjNtd/cNNoPn0cHQvjGXgo1ouc0fXJMg4cbG/sJc1E1xWrEJYi68EhQ2Sx+N1/YhPdTmyTCbZRfk2i1yyAhKgHQcBNhEMKGL0BOzizZ6Bxtzq8CSbeY6MULIsMhaSC2MELvHNV5aiPyi9U7cZ2gyzN6CsfW5JtBuxERWUdGLhyGc3Rlq66xoqrKmBiZtNOc6zmjAoAwwTcyodhdcdWwt3bK4D7OTQfwpHlQfUSbHfVum4/yJ636drVMaA88KWPLYKKspJjBYlm24NwLXY6To9aGzdXRcEVGb7RqFMmfAHAPxeYw5XSJ7cBoy6v8WdUksQrVzGCTqX9erKq/EIS/E6vXt17/++j+gFmArKJgAAA=="; \ No newline at end of file diff --git a/docs/classes/AIQueryApi.html b/docs/classes/AIQueryApi.html index 1b504b0..f6750b6 100644 --- a/docs/classes/AIQueryApi.html +++ b/docs/classes/AIQueryApi.html @@ -2,14 +2,16 @@ This API implements the Nevermined AI Query Protocol

See

https://docs.nevermined.io/docs/protocol/query-protocol.

Remarks

This API is oriented for AI Builders providing AI Agents and AI Subscribers interacting with them.

-

Hierarchy

Constructors

Hierarchy

  • NVMBackendApi
    • AIQueryApi

Constructors

Methods

_emitStepEvents _subscribe +connectSocket createSteps createTask delete disconnect get +getStep getSteps getStepsFromTask getTaskWithSteps @@ -24,13 +26,13 @@

Remarks

This API is oriented for AI Builders providing AI Agents and setBearerToken subscribe updateStep -

Constructors

Methods

  • Parameters

    Returns Promise<void>

  • Parameters

    • _callback: ((err?) => any)
        • (err?): any
        • Parameters

          • Optional err: any

          Returns any

    • opts: SubscriptionOptions

    Returns Promise<void>

  • It creates the step/s required to complete an AI Task

    +

Constructors

Methods

  • Parameters

    Returns Promise<void>

  • Parameters

    • _callback: ((err?) => any)
        • (err?): any
        • Parameters

          • Optional err: any

          Returns any

    • opts: SubscriptionOptions

    Returns Promise<void>

  • Parameters

    • _callback: ((err?) => any)
        • (err?): any
        • Parameters

          • Optional err: any

          Returns any

    • opts: SubscriptionOptions

    Returns Promise<void>

  • It creates the step/s required to complete an AI Task

    Parameters

    • did: string

      Agent DID

    • taskId: string

      Task ID

    • steps: any

      The list of Steps to create

    Returns Promise<AxiosResponse<any, any> | {
        data: any;
        headers: any;
        status: any;
    }>

    The result of the operation

    Remarks

    This method is used by the AI Agent to create the steps required to complete the AI Task.

    -
  • Subscribers can create an AI Task for an Agent. The task must contain the input query that will be used by the AI Agent.

    +
  • Subscribers can create an AI Task for an Agent. The task must contain the input query that will be used by the AI Agent.

    Parameters

    • did: string

      Agent DID

    • task: any

      Task object. The task object should contain the query to execute and the name of the task. All the attributes here:

    • queryOpts: AIQueryOptions

      The query options

      @@ -45,18 +47,24 @@

      Remarks

      This method is used by subscribers of a Payment Plan required This is given using the queryOpts object (accessToken attribute).

      Example

      const accessConfig = await payments.getServiceAccessConfig(agentDID)
      const queryOpts = {
      accessToken: accessConfig.accessToken,
      proxyHost: accessConfig.neverminedProxyUri
      }

      const aiTask = {
      query: "https://www.youtube.com/watch?v=0tZFQs7qBfQ",
      name: "transcribe",
      "additional_params": [],
      "artifacts": []
      }

      await payments.query.createTask(
      agentDID,
      aiTask,
      queryOpts
      )
      -
  • Parameters

    • url: string
    • data: any
    • reqOptions: HTTPRequestOptions

    Returns Promise<AxiosResponse<any, any> | {
        data: any;
        headers: any;
        status: any;
    }>

  • Parameters

    • url: string
    • reqOptions: HTTPRequestOptions = ...

    Returns Promise<AxiosResponse<any, any> | {
        data: any;
        headers: any;
        status: any;
    }>

  • It retrieves all the steps that the agent needs to execute to complete the different tasks assigned.

    +
  • Parameters

    • url: string
    • data: any
    • reqOptions: HTTPRequestOptions

    Returns Promise<AxiosResponse<any, any> | {
        data: any;
        headers: any;
        status: any;
    }>

  • Parameters

    • url: string
    • reqOptions: HTTPRequestOptions = ...

    Returns Promise<AxiosResponse<any, any> | {
        data: any;
        headers: any;
        status: any;
    }>

  • It retrieves the complete information of a specific step given a stepId

    +

    Parameters

    • stepId: string

      the id of the step to retrieve

      +

    Returns Promise<any>

    The complete step information

    +

    Remarks

    This method is used by the AI Agent to retrieve information about the steps part of tasks created by users to the agents owned by the user

    +

    Example

    await paymentsBuilder.query.getStep('step-1234')
    +
    +
  • It retrieves all the steps that the agent needs to execute to complete the different tasks assigned.

    Parameters

    • status: undefined | AgentExecutionStatus = AgentExecutionStatus.Pending

      The status of the steps to retrieve

    • dids: string[] = []

      The list of DIDs to filter the steps

    Returns Promise<AxiosResponse<any, any> | {
        data: any;
        headers: any;
        status: any;
    }>

    The steps of the task

    Remarks

    This method is used by the AI Agent to retrieve information about the steps part of tasks created by users to the agents owned by the user

    -
  • It retrieves all the steps that the agent needs to execute to complete a specific task associated to the user.

    +
  • It retrieves all the steps that the agent needs to execute to complete a specific task associated to the user.

    Parameters

    • did: string

      Agent DID

    • taskId: string

      Task ID

    • Optional status: string

      The status of the steps to retrieve

    Returns Promise<AxiosResponse<any, any> | {
        data: any;
        headers: any;
        status: any;
    }>

    The steps of the task

    Remarks

    This method is used by the AI Agent to retrieve information about the tasks created by users to the agents owned by the user

    -
  • It returns the full task and the steps resulted of the execution of the task.

    +
  • It returns the full task and the steps resulted of the execution of the task.

    Parameters

    Returns Promise<AxiosResponse<any, any> | {
        data: any;
        headers: any;
        status: any;
    }>

    The task with the steps

    @@ -65,35 +73,33 @@

    Example

    const queryOpts object (accessToken attribute).

    Example

    const accessConfig = await payments.getServiceAccessConfig(agentDID)
    const queryOpts = {
    accessToken: accessConfig.accessToken,
    proxyHost: accessConfig.neverminedProxyUri
    }

    await payments.query.createTask(
    agentDID,
    taskId,
    queryOpts
    )
    -
  • It retrieves all the tasks that the agent needs to execute to complete the different tasks assigned.

    +
  • It retrieves all the tasks that the agent needs to execute to complete the different tasks assigned.

    Returns Promise<AxiosResponse<any, any> | {
        data: any;
        headers: any;
        status: any;
    }>

    The tasks of the agents

    Remarks

    This method is used by the AI Agent to retrieve information about the tasks created by users to the agents owned by the user

    -
  • Parameters

    • additionalHeaders: {
          [key: string]: string;
      }
      • [key: string]: string

    Returns {}

    • Parameters

      • uri: string
      • reqOptions: HTTPRequestOptions

      Returns string

    • Parameters

      • url: string
      • data: any
      • reqOptions: HTTPRequestOptions

      Returns Promise<AxiosResponse<any, any> | {
          data: any;
          headers: any;
          status: any;
      }>

    • Parameters

      • url: string
      • data: any
      • reqOptions: HTTPRequestOptions

      Returns Promise<AxiosResponse<any, any> | {
          data: any;
          headers: any;
          status: any;
      }>

    • It search steps based on the search parameters. The steps belongs to the tasks part of the AI Agents owned by the user.

      +
    • Parameters

      • additionalHeaders: {
            [key: string]: string;
        }
        • [key: string]: string

      Returns {}

      • Parameters

        • uri: string
        • reqOptions: HTTPRequestOptions

        Returns string

      • Parameters

        • url: string
        • data: any
        • reqOptions: HTTPRequestOptions

        Returns Promise<AxiosResponse<any, any> | {
            data: any;
            headers: any;
            status: any;
        }>

      • Parameters

        • url: string
        • data: any
        • reqOptions: HTTPRequestOptions

        Returns Promise<AxiosResponse<any, any> | {
            data: any;
            headers: any;
            status: any;
        }>

      • It search steps based on the search parameters. The steps belongs to the tasks part of the AI Agents owned by the user.

        Parameters

        Returns Promise<AxiosResponse<any, any> | {
            data: any;
            headers: any;
            status: any;
        }>

        The result of the search query

        Remarks

        This method is used by the AI Agent to retrieve information about the steps part of tasks created by users to the agents owned by the user

        Example

        await paymentsBuilder.query.searchSteps({ step_id: "my-step-id" })
         

        See

        SearchSteps

        -
      • It searches tasks based on the search parameters associated to the user

        +
      • It searches tasks based on the search parameters associated to the user

        Parameters

        Returns Promise<AxiosResponse<any, any> | {
            data: any;
            headers: any;
            status: any;
        }>

        The result of the search query

        Remarks

        This method is used by the AI Agent to retrieve information about the tasks created by users to the agents owned by the user

        Example

        await paymentsBuilder.query.searchTasks({ did: "did:nv:1234" })
         

        See

        SearchTasks

        -
      • Parameters

        • token: string

        Returns void

      • It subscribes to the Nevermined network to retrieve new AI Tasks requested by other users.

        +
      • Parameters

        • token: string

        Returns void

      • It subscribes to the Nevermined network to retrieve new AI Tasks requested by other users.

        Parameters

        • _callback: ((err?) => any)

          The callback to execute when a new event is received

            • (err?): any
            • Parameters

              • Optional err: any

              Returns any

        • opts: SubscriptionOptions = DefaultSubscriptionOptions

          The subscription options

        Returns Promise<void>

        Remarks

        This method is used by AI agents to subscribe and receive new AI Tasks sent by other subscribers

        -
      • It updates the step with the new information

        +
      • It updates the step with the new information

        Parameters

        • did: string

          Agent DID

          -
        • taskId: string

          Task ID

          -
        • stepId: string

          Step ID

          -
        • step: any

          The Step object to update.

          +
        • step: Step

          The Step object to update.

        Returns Promise<AxiosResponse<any, any> | {
            data: any;
            headers: any;
            status: any;
        }>

        The result of the operation

        Remarks

        This method is used by the AI Agent to update the status and output of an step. This method can not be called by a subscriber.

        -

        Example

        const result = await payments.query.updateStep(step.did, step.task_id, step.step_id, {
        step_id: step.step_id,
        task_id: step.task_id,
        step_status: AgentExecutionStatus.Completed,
        is_last: true,
        output: 'LFG!',
        cost: 1
        }) +

        Example

        const result = await payments.query.updateStep(step.did, step.task_id, step.step_id, {
        step_id: step.step_id,
        task_id: step.task_id,
        did: step.did,
        step_status: AgentExecutionStatus.Completed,
        is_last: true,
        output: 'LFG!',
        cost: 1
        })

        See

        https://docs.nevermined.io/docs/protocol/query-protocol#steps-attributes

        -
      \ No newline at end of file +
      \ No newline at end of file diff --git a/docs/classes/AIQueryOptions.html b/docs/classes/AIQueryOptions.html index 3a19953..bd23384 100644 --- a/docs/classes/AIQueryOptions.html +++ b/docs/classes/AIQueryOptions.html @@ -1,8 +1,8 @@ AIQueryOptions | @nevermined-io/payments

      Options required for interacting with an external AI Agent/Service.

      -

      Constructors

      Constructors

      Properties

      accessToken?: string

      The access token to interact with the AI Agent/Service. Only subscribers of the Payment Plan associated with the AI Agent/Service can obtain the access toke.

      -
      proxyHost?: string

      The Nevermined Proxy that needs to be used to interact with the AI Agent/Service.

      -
      \ No newline at end of file +
      neverminedProxyUri?: string

      The Nevermined Proxy that needs to be used to interact with the AI Agent/Service.

      +
      \ No newline at end of file diff --git a/docs/classes/Payments.html b/docs/classes/Payments.html index 5645821..c7f2257 100644 --- a/docs/classes/Payments.html +++ b/docs/classes/Payments.html @@ -1,6 +1,6 @@ Payments | @nevermined-io/payments

      Main class that interacts with the Nevermined payments API. To get an instance of this class use the getInstance method.

      -

      Constructors

      Constructors

      Properties

      accountAddress?: string
      appId?: string
      environment: EnvironmentInfo
      isBrowserInstance: boolean = true
      nvmApiKey?: string
      query: AIQueryApi
      returnUrl: string
      version?: string

      Accessors

      • get isLoggedIn(): boolean
      • Property to check if a user logged in.

        +

      Properties

      accountAddress?: string
      appId?: string
      environment: EnvironmentInfo
      isBrowserInstance: boolean = true
      nvmApiKey?: string
      query: AIQueryApi
      returnUrl: string
      version?: string

      Accessors

      • get isLoggedIn(): boolean
      • Property to check if a user logged in.

        Returns boolean

        True if the user is logged in.

        Example

        payments.isLoggedIn
         
        -

      Methods

      • Burn credits for a given Payment Plan DID.

        +

      Methods

      • Burn credits for a given Payment Plan DID.

        Parameters

        • planDID: string

          The DID (Decentralized Identifier) of the asset.

        • creditsAmount: string

          The amount of NFT (Non-Fungible Token) credits to burn.

        Returns Promise<any>

        A Promise that resolves to the JSON response from the server.

        Remarks

        This method is only can be called by the owner of the Payment Plan.

        Throws

        Error if the server response is not successful.

        -
      • Redirects the user to the subscription checkout page for the specified DID.

        +
      • Redirects the user to the subscription checkout page for the specified DID.

        Parameters

        • did: string

          The DID (Decentralized Identifier) of the item to be subscribed to.

        Returns void

        Remarks

        This method is only for browser instances.

        -
      • Initiate the connect flow. The user's browser will be redirected to +

      • Initiate the connect flow. The user's browser will be redirected to the Nevermined App login page.

        Returns void

        Remarks

        This is a browser only function.

        Example

        payments.connect()
         
        -
      • It allows to an AI Builder to create a Payment Plan on Nevermined based on Credits. +

      • It creates a new AI Agent on Nevermined. +The agent must be associated to a Payment Plan. Users that are subscribers of a payment plan can access the agent. +Depending on the Payment Plan and the configuration of the agent, the usage of the agent/service will consume credits. +When the plan expires (because the time is over or the credits are consumed), the user needs to renew the plan to continue using the agent.

        +

        Parameters

        • __namedParameters: {
              amountOfCredits?: number;
              apiDescription?: string;
              authType?: "basic" | "none" | "oauth" | "bearer";
              curation?: object;
              description: string;
              endpoints?: Endpoint[];
              implementsQueryProtocol?: boolean;
              integration?: string;
              maxCreditsToCharge?: number;
              minCreditsToCharge?: number;
              name: string;
              openApiUrl?: string;
              openEndpoints?: string[];
              password?: string;
              planDID: string;
              sampleLink?: string;
              serviceChargeType: "fixed" | "dynamic";
              tags?: string[];
              token?: string;
              username?: string;
              usesAIHub?: boolean;
          }
          • Optional amountOfCredits?: number
          • Optional apiDescription?: string
          • Optional authType?: "basic" | "none" | "oauth" | "bearer"
          • Optional curation?: object
          • description: string
          • Optional endpoints?: Endpoint[]
          • Optional implementsQueryProtocol?: boolean
          • Optional integration?: string
          • Optional maxCreditsToCharge?: number
          • Optional minCreditsToCharge?: number
          • name: string
          • Optional openApiUrl?: string
          • Optional openEndpoints?: string[]
          • Optional password?: string
          • planDID: string
          • Optional sampleLink?: string
          • serviceChargeType: "fixed" | "dynamic"
          • Optional tags?: string[]
          • Optional token?: string
          • Optional username?: string
          • Optional usesAIHub?: boolean

        Returns Promise<{
            did: string;
        }>

        A promise that resolves to the created agent DID.

        +

        Remarks

        This method is oriented to AI Builders

        +

        See

        +

        Example

        const agentDID = await paymentsBuilder.createService({
        planDID,
        name: 'E2E Payments Agent',
        description: 'description',
        serviceType: 'agent',
        serviceChargeType: 'fixed',
        authType: 'bearer',
        token: 'changeme',
        amountOfCredits: 1,
        endpoints: agentEndpoints,
        openEndpoints: ['https://example.com/api/v1/rest/docs-json']
        }) +
        +
      • It allows to an AI Builder to create a Payment Plan on Nevermined based on Credits. A Nevermined Credits Plan limits the access by the access/usage of the Plan. With them, AI Builders control the number of requests that can be made to an agent or service. Every time a user accesses any resouce associated to the Payment Plan, the usage consumes from a capped amount of credits. @@ -65,7 +79,7 @@

        Example

        payments
         

        See

        https://docs.nevermined.app/docs/tutorials/builders/create-plan

        Example

         const { did } = await payments.createCreditsPlan({
        name: "My AI Payments Plan",
        description: "AI stuff",
        price: 10000000n,
        tokenAddress: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d",
        amountOfCredits: 30,
        tags: ["test"]
        })
        -
      • It creates a new asset with file associated to it. +

      • It creates a new asset with file associated to it. The file asset must be associated to a Payment Plan. Users that are subscribers of a payment plan can download the files attached to it. Depending on the Payment Plan and the configuration of the file asset, the download will consume credits. When the plan expires (because the time is over or the credits are consumed), the user needs to renew the plan to continue downloading the files.

        @@ -75,53 +89,54 @@

        See

        -
      • It creates a new AI Agent or Service on Nevermined. +

      • It creates a new AI Agent or Service on Nevermined. The agent/service must be associated to a Payment Plan. Users that are subscribers of a payment plan can access the agent/service. Depending on the Payment Plan and the configuration of the agent/service, the usage of the agent/service will consume credits. When the plan expires (because the time is over or the credits are consumed), the user needs to renew the plan to continue using the agent/service.

        -

        Parameters

        • __namedParameters: {
              amountOfCredits?: number;
              apiDescription?: string;
              authType: "basic" | "none" | "oauth" | "bearer";
              curation?: object;
              description: string;
              endpoints?: Endpoint[];
              integration?: string;
              maxCreditsToCharge?: number;
              minCreditsToCharge?: number;
              name: string;
              openApiUrl?: string;
              openEndpoints?: string[];
              password?: string;
              planDID: string;
              sampleLink?: string;
              serviceChargeType: "fixed" | "dynamic";
              serviceType: "agent" | "service" | "assistant";
              tags?: string[];
              token?: string;
              username?: string;
          }
          • Optional amountOfCredits?: number
          • Optional apiDescription?: string
          • authType: "basic" | "none" | "oauth" | "bearer"
          • Optional curation?: object
          • description: string
          • Optional endpoints?: Endpoint[]
          • Optional integration?: string
          • Optional maxCreditsToCharge?: number
          • Optional minCreditsToCharge?: number
          • name: string
          • Optional openApiUrl?: string
          • Optional openEndpoints?: string[]
          • Optional password?: string
          • planDID: string
          • Optional sampleLink?: string
          • serviceChargeType: "fixed" | "dynamic"
          • serviceType: "agent" | "service" | "assistant"
          • Optional tags?: string[]
          • Optional token?: string
          • Optional username?: string

        Returns Promise<{
            did: string;
        }>

        A promise that resolves to the created agent DID.

        +

      Parameters

      • __namedParameters: {
            amountOfCredits?: number;
            apiDescription?: string;
            authType?: "basic" | "none" | "oauth" | "bearer";
            curation?: object;
            description: string;
            endpoints?: Endpoint[];
            implementsQueryProtocol?: boolean;
            integration?: string;
            maxCreditsToCharge?: number;
            minCreditsToCharge?: number;
            name: string;
            openApiUrl?: string;
            openEndpoints?: string[];
            password?: string;
            planDID: string;
            sampleLink?: string;
            serviceChargeType: "fixed" | "dynamic";
            serviceType: "agent" | "service" | "assistant";
            tags?: string[];
            token?: string;
            username?: string;
            usesAIHub?: boolean;
        }
        • Optional amountOfCredits?: number
        • Optional apiDescription?: string
        • Optional authType?: "basic" | "none" | "oauth" | "bearer"
        • Optional curation?: object
        • description: string
        • Optional endpoints?: Endpoint[]
        • Optional implementsQueryProtocol?: boolean
        • Optional integration?: string
        • Optional maxCreditsToCharge?: number
        • Optional minCreditsToCharge?: number
        • name: string
        • Optional openApiUrl?: string
        • Optional openEndpoints?: string[]
        • Optional password?: string
        • planDID: string
        • Optional sampleLink?: string
        • serviceChargeType: "fixed" | "dynamic"
        • serviceType: "agent" | "service" | "assistant"
        • Optional tags?: string[]
        • Optional token?: string
        • Optional username?: string
        • Optional usesAIHub?: boolean

      Returns Promise<{
          did: string;
      }>

      A promise that resolves to the created agent DID.

      Remarks

      This method is oriented to AI Builders

      See

      -

      Example

      const agentEndpoints: Endpoint[] = [
      { 'POST': `https://example.com/api/v1/agents/(.*)/tasks` },
      { 'GET': `https://example.com/api/v1/agents/(.*)/tasks/(.*)` }
      ]
      const agentDID = await paymentsBuilder.createService({
      planDID,
      name: 'E2E Payments Agent',
      description: 'description',
      serviceType: 'agent',
      serviceChargeType: 'fixed',
      authType: 'bearer',
      token: 'changeme',
      amountOfCredits: 1,
      endpoints: agentEndpoints,
      openEndpoints: ['https://example.com/api/v1/rest/docs-json']
      }) +

      Example

      const agentEndpoints: Endpoint[] = [
      { 'POST': `https://example.com/api/v1/agents/(.*)/tasks` },
      { 'GET': `https://example.com/api/v1/agents/(.*)/tasks/(.*)` }
      ]
      const agentDID = await paymentsBuilder.createService({
      planDID,
      name: 'E2E Payments Agent',
      description: 'description',
      serviceType: 'agent',
      serviceChargeType: 'fixed',
      authType: 'bearer',
      token: 'changeme',
      amountOfCredits: 1,
      endpoints: agentEndpoints,
      openEndpoints: ['https://example.com/api/v1/rest/docs-json']
      })
      -
      • It allows to an AI Builder to create a Payment Plan on Nevermined based on Time. +

      • It allows to an AI Builder to create a Payment Plan on Nevermined based on Time. A Nevermined Time Plan limits the access by the a specific amount of time. With them, AI Builders can specify the duration of the Payment Plan (1 month, 1 year, etc.). When the time period is over, the plan automatically expires and the user needs to renew it.

        Parameters

        • __namedParameters: {
              description: string;
              duration?: number;
              name: string;
              price: bigint;
              tags?: string[];
              tokenAddress: string;
          }
          • description: string
          • Optional duration?: number
          • name: string
          • price: bigint
          • Optional tags?: string[]
          • tokenAddress: string

        Returns Promise<{
            did: string;
        }>

        The unique identifier of the plan (Plan DID) of the newly created plan.

        Remarks

        This method is oriented to AI Builders

        See

        https://docs.nevermined.app/docs/tutorials/builders/create-plan

        -

        Example

         const { did } = await payments.createTimePlan({
        name: "My 1 year Plan",
        description: "test",
        price: 10000000n,
        tokenAddress: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d",
        duration: 30,
        tags: ["test"]
        }) +

        Example

         const { did } = await payments.createTimePlan({
        name: "My 1 Month Plan",
        description: "test",
        price: 10000000n,
        tokenAddress: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d",
        duration: 30,
        tags: ["test"]
        })
        -
      • Downloads files for a given DID asset.

        +
      • Downloads files for a given DID asset.

        Parameters

        • fileDid: string

        Returns Promise<string>

        A promise that resolves to the JSON response from the server.

        -
      • Get the Metadata (aka Decentralized Document or DDO) for a given asset identifier (DID).

        +
      • Redirects the user to the file details for the specified DID (Decentralized Identifier).

        +
      • Redirects the user to the file details for the specified DID (Decentralized Identifier).

        Parameters

        • did: string

          The DID of the file.

        Returns void

        Remarks

        This method is only for browser instances.

        -
      • Get array of files DIDs associated with a payment plan.

        +
      • Get array of files DIDs associated with a payment plan.

        Parameters

        • planDID: string

          The DID of the Payment Plan.

        Returns Promise<any>

        A promise that resolves to array of files DIDs.

        -
      • Get array of services/agent DIDs associated with a payment plan.

        +
      • Get array of services/agent DIDs associated with a payment plan.

        Parameters

        • planDID: string

          The DID of the Payment Plan.

        Returns Promise<any>

        A promise that resolves to the array of services/agents DIDs.

        -
      • Get the balance of an account for a Payment Plan.

        +
      • Get the balance of an account for a Payment Plan.

        Parameters

        • planDID: string

          The Payment Plan DID of the service to be published.

        • Optional accountAddress: string

          The address of the account to get the balance.

        Returns Promise<{
            balance: bigint;
            isOwner: boolean;
            isSubscriptor: boolean;
            subscriptionType: string;
        }>

        A promise that resolves to the balance result.

        -
      • Redirects the user to the subscription details for a given DID.

        +
      • Redirects the user to the subscription details for a given DID.

        Parameters

        • planDID: string

          The DID (Decentralized Identifier) of the plan.

        Returns void

        Remarks

        This method is only for browser instances.

        -
      • Get the required configuration for accessing a remote service agent. +

      • Get the required configuration for accessing a remote service agent. This configuration includes:

        • The JWT access token
        • @@ -131,10 +146,10 @@

          Example

           const

        Returns Promise<{
            accessToken: string;
            neverminedProxyUri: string;
        }>

        A promise that resolves to the service token.

        Example

        const accessConfig = await payments.getServiceAccessConfig(agentDID)
        console.log(`Agent JWT Token: ${accessConfig.accessToken}`)
        console.log(`Agent Proxy URL: ${accessConfig.neverminedProxyUri}`)
        -
      • Redirects the user to the service details for a given DID.

        +
      • Redirects the user to the service details for a given DID.

        Parameters

        • did: string

          The DID (Decentralized Identifier) of the service.

        Returns void

        Remarks

        This method is only for browser instances.

        -
      • Method to initialize the class once the user has been logged in. +

      • Method to initialize the class once the user has been logged in. This method should be called has soon as the user has been redirected back to the app (returnUrl).

        Returns void

        Remarks

        This is a browser only function.

        @@ -144,33 +159,33 @@

        Example: Using react

        You may want to use useEffect on th returnUrl

        useEffect(() => {
        payments.init()
        })
        -
      • Initializes the AI Query Protocol API.

        -

        Returns void

      • Initializes the AI Query Protocol API.

        +

        Returns void

      • Logout the user by removing the nvm api key.

        Returns void

        Remarks

        This is a browser only function.

        Example

        payments.logout()
         
        -
      • Mint credits for a given Payment Plan DID and transfer them to a receiver.

        +
      • Mint credits for a given Payment Plan DID and transfer them to a receiver.

        Parameters

        • planDID: string

          The DID (Decentralized Identifier) of the asset.

        • creditsAmount: string

          The amount of NFT (Non-Fungible Token) credits to mint.

        • receiver: string

          The address of the receiver where the credits will be transferred.

        Returns Promise<any>

        A Promise that resolves to the JSON response from the server.

        Remarks

        This method is only can be called by the owner of the Payment Plan.

        Throws

        Error if the server response is not successful.

        -
      • Orders a Payment Plan. The user needs to have enough balance in the token selected by the owner of the Payment Plan.

        +
      • Orders a Payment Plan. The user needs to have enough balance in the token selected by the owner of the Payment Plan.

        Parameters

        • planDID: string

          The Payment Plan DID of the service to be published.

        • Optional agreementId: string

          The unique identifier of the purchase transaction (aka agreement ID). When this parameter is given, it assumes there is a previous payment step and will request the payment plan.

        Returns Promise<{
            agreementId: string;
            success: boolean;
        }>

        A promise that resolves to the agreement ID and a boolean indicating if the operation was successful.

        Remarks

        The payment is done using Crypto. Payments using Fiat can be done via the Nevermined App.

        -
      • It parses the NVM API Key to get the account address.

        -

        Returns void

      • The options get's an instance of the payments class to be used in the browser.

        +
      • It parses the NVM API Key to get the account address.

        +

        Returns void

      • The options get's an instance of the payments class to be used in the browser.

        Parameters

        Returns Payments

        An instance of Payments

        Remarks

        This is a browser only function.

        Example

        const payments = Payments.getBrowserInstance({
        returnUrl: 'https://mysite.example',
        environment: 'testing',
        appId: 'my-app-id',
        version: '1.0.0'
        })
        -
      • The options get's an instance of the payments class.

        Parameters

        Returns Payments

        An instance of Payments

        Example

        const payments = Payments.getInstance({
        nvmApiKey: 'kjdfaofakdoasdkoas',
        environment: 'testing'
        })
        -
      \ No newline at end of file +
      \ No newline at end of file diff --git a/docs/classes/PaymentsError.html b/docs/classes/PaymentsError.html index d6f3e02..36968f8 100644 --- a/docs/classes/PaymentsError.html +++ b/docs/classes/PaymentsError.html @@ -1,11 +1,11 @@ -PaymentsError | @nevermined-io/payments

      Hierarchy

      • Error
        • PaymentsError

      Constructors

      constructor +PaymentsError | @nevermined-io/payments

      Hierarchy

      • Error
        • PaymentsError

      Constructors

      Properties

      message: string
      name: string
      stack?: string
      prepareStackTrace?: ((err, stackTraces) => any)

      Optional override for formatting stack traces

      +

      Constructors

      Properties

      message: string
      name: string
      stack?: string
      prepareStackTrace?: ((err, stackTraces) => any)

      Optional override for formatting stack traces

      Type declaration

        • (err, stackTraces): any
        • Parameters

          • err: Error
          • stackTraces: CallSite[]

          Returns any

      stackTraceLimit: number

      Methods

      • Create .stack property on a target object

        Parameters

        • targetObject: object
        • Optional constructorOpt: Function

        Returns void

      \ No newline at end of file diff --git a/docs/enums/AgentExecutionStatus.html b/docs/enums/AgentExecutionStatus.html index 6e2386a..7f8b34d 100644 --- a/docs/enums/AgentExecutionStatus.html +++ b/docs/enums/AgentExecutionStatus.html @@ -1,12 +1,12 @@ AgentExecutionStatus | @nevermined-io/payments

      Enumeration AgentExecutionStatus

      The execution status of a task or a step

      -

      Enumeration Members

      Enumeration Members

      Completed: "Completed"

      The execution is completed

      -
      Failed: "Failed"

      The execution is failed

      -
      In_Progress: "In_Progress"

      The execution is in progress

      -
      Not_Ready: "Not_Ready"

      The step or task is not ready to be executed

      -
      Pending: "Pending"

      The execution is pending

      -
      \ No newline at end of file +
      Failed: "Failed"

      The execution is failed

      +
      In_Progress: "In_Progress"

      The execution is in progress

      +
      Not_Ready: "Not_Ready"

      The step or task is not ready to be executed

      +
      Pending: "Pending"

      The execution is pending

      +
      \ No newline at end of file diff --git a/docs/functions/generateStepId.html b/docs/functions/generateStepId.html new file mode 100644 index 0000000..e2150d9 --- /dev/null +++ b/docs/functions/generateStepId.html @@ -0,0 +1,3 @@ +generateStepId | @nevermined-io/payments
      • It generates a random step id

        +

        Returns string

        the step id

        +
      \ No newline at end of file diff --git a/docs/functions/getAIHubOpenApiUrl.html b/docs/functions/getAIHubOpenApiUrl.html new file mode 100644 index 0000000..ea60bf6 --- /dev/null +++ b/docs/functions/getAIHubOpenApiUrl.html @@ -0,0 +1,3 @@ +getAIHubOpenApiUrl | @nevermined-io/payments
      • Giving a server host it returns the URL to the OpenAPI documentation of the AI Hub

        +

        Parameters

        Returns string

      \ No newline at end of file diff --git a/docs/functions/getQueryProtocolEndpoints.html b/docs/functions/getQueryProtocolEndpoints.html new file mode 100644 index 0000000..b5e5925 --- /dev/null +++ b/docs/functions/getQueryProtocolEndpoints.html @@ -0,0 +1,4 @@ +getQueryProtocolEndpoints | @nevermined-io/payments

      Function getQueryProtocolEndpoints

      • It returns the list of endpoints that are used by agents/services implementing the Nevermined Query Protocol

        +

        Parameters

        • serverHost: string

          The host of the server where the agents/services are running

          +

        Returns Endpoint[]

        the list of endpoints

        +
      \ No newline at end of file diff --git a/docs/functions/getServiceHostFromEndpoints.html b/docs/functions/getServiceHostFromEndpoints.html new file mode 100644 index 0000000..99dd6d9 --- /dev/null +++ b/docs/functions/getServiceHostFromEndpoints.html @@ -0,0 +1 @@ +getServiceHostFromEndpoints | @nevermined-io/payments

      Function getServiceHostFromEndpoints

      \ No newline at end of file diff --git a/docs/functions/isEthereumAddress.html b/docs/functions/isEthereumAddress.html index a7865b0..8777018 100644 --- a/docs/functions/isEthereumAddress.html +++ b/docs/functions/isEthereumAddress.html @@ -1 +1,4 @@ -isEthereumAddress | @nevermined-io/payments
      • Parameters

        • address: undefined | string

        Returns boolean

      \ No newline at end of file +isEthereumAddress | @nevermined-io/payments
      • Validates if a string is a valid Ethereum address

        +

        Parameters

        • address: undefined | string

          the address to check

          +

        Returns boolean

        true if it's a valid Ethereum address

        +
      \ No newline at end of file diff --git a/docs/functions/isStepIdValid.html b/docs/functions/isStepIdValid.html new file mode 100644 index 0000000..69d96ae --- /dev/null +++ b/docs/functions/isStepIdValid.html @@ -0,0 +1,4 @@ +isStepIdValid | @nevermined-io/payments
      • It checks the step id has the right format

        +

        Parameters

        • stepId: string

          the step id to validate

          +

        Returns boolean

        true if it's a valid step id

        +
      \ No newline at end of file diff --git a/docs/functions/jsonReplacer.html b/docs/functions/jsonReplacer.html index 24c5005..e93178d 100644 --- a/docs/functions/jsonReplacer.html +++ b/docs/functions/jsonReplacer.html @@ -1 +1 @@ -jsonReplacer | @nevermined-io/payments
      • Parameters

        • _key: any
        • value: {
              toString: (() => any);
          }
          • toString: (() => any)
              • (): any
              • Returns any

        Returns string | {
            toString: (() => any);
        }

      \ No newline at end of file +jsonReplacer | @nevermined-io/payments
      • Parameters

        • _key: any
        • value: {
              toString: (() => any);
          }
          • toString: (() => any)
              • (): any
              • Returns any

        Returns string | {
            toString: (() => any);
        }

      \ No newline at end of file diff --git a/docs/functions/sleep.html b/docs/functions/sleep.html index 93aa3ac..fda5dcc 100644 --- a/docs/functions/sleep.html +++ b/docs/functions/sleep.html @@ -1 +1 @@ -sleep | @nevermined-io/payments
      \ No newline at end of file +sleep | @nevermined-io/payments
      \ No newline at end of file diff --git a/docs/hierarchy.html b/docs/hierarchy.html index 4e00345..01081f6 100644 --- a/docs/hierarchy.html +++ b/docs/hierarchy.html @@ -1 +1 @@ -@nevermined-io/payments

      @nevermined-io/payments

      Class Hierarchy

      \ No newline at end of file +@nevermined-io/payments
      \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 9b960fd..af24bd1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -10,7 +10,7 @@
      import { useEffect } from "react";
      import { Payments } from "@nevermined-io/payments";

      export default function Home() {
      const payments = new Payments({
      returnUrl: "http://localhost:8080",
      environment: "staging",
      });

      const onLogin = () => {
      payments.connect();
      };

      useEffect(() => {
      payments.init();
      }, []);

      return (
      <main>
      <div>
      <button onClick={onLogin}>Login</button>
      </div>
      </main>
      );
      }

      The init() method should be called immediately after the app returns the user to returnUrl.

      -

      Create a Payments Plan

      Once the app is initialized we can create a subscription:

      +

      Create a Payments Plan

      Once the app is initialized we can create a payment plan:

      const planDID = await payments.createCreditsPlan({
      name: "My AI Payments Plan",
      description: "AI stuff",
      price: 10000000n,
      tokenAddress: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d",
      amountOfCredits: 30,
      tags: ["test"]
      })

      Create an AI Agent/Service

      const agentEndpoints: Endpoint[] = [
      { 'POST': `https://example.com/api/v1/agents/(.*)/tasks` },
      { 'GET': `https://example.com/api/v1/agents/(.*)/tasks/(.*)` }
      ]

      const agentDID = await paymentsBuilder.createService({
      planDID,
      name: 'E2E Payments Agent',
      description: 'description',
      serviceType: 'agent',
      serviceChargeType: 'fixed',
      authType: 'bearer',
      token: 'changeme',
      amountOfCredits: 1,
      endpoints: agentEndpoints,
      openEndpoints: ['https://example.com/api/v1/rest/docs-json']
      }) diff --git a/docs/interfaces/Artifact.html b/docs/interfaces/Artifact.html index f25cb46..dd22eff 100644 --- a/docs/interfaces/Artifact.html +++ b/docs/interfaces/Artifact.html @@ -1,11 +1,11 @@ -Artifact | @nevermined-io/payments
      interface Artifact {
          artifact_id: string;
          url: string;
      }

      Properties

      artifact_id +Artifact | @nevermined-io/payments
      interface Artifact {
          artifact_id: string;
          url: string;
      }

      Properties

      Properties

      artifact_id: string

      The unique identifier of the artifact

      -
      url: string

      Reference to the artifact in a local or remote storage. +

      url: string

      Reference to the artifact in a local or remote storage. If it's in the local storage, the URL should be a relative path to the agent workspace. Examples:

      • file://path/to/file
      • http://example.com/path/to/file
      -
      \ No newline at end of file +
      \ No newline at end of file diff --git a/docs/interfaces/BackendApiOptions.html b/docs/interfaces/BackendApiOptions.html index 7ef28ba..497ef76 100644 --- a/docs/interfaces/BackendApiOptions.html +++ b/docs/interfaces/BackendApiOptions.html @@ -1,4 +1,4 @@ -BackendApiOptions | @nevermined-io/payments

      Interface BackendApiOptions

      interface BackendApiOptions {
          apiKey?: string;
          backendHost: string;
          headers?: {
              [key: string]: string;
          };
          proxyHost?: string;
          webSocketHost?: string;
          webSocketOptions?: BackendWebSocketOptions;
      }

      Properties

      apiKey? +BackendApiOptions | @nevermined-io/payments

      Interface BackendApiOptions

      interface BackendApiOptions {
          apiKey?: string;
          backendHost: string;
          headers?: {
              [key: string]: string;
          };
          proxyHost?: string;
          webSocketHost?: string;
          webSocketOptions?: BackendWebSocketOptions;
      }

      Properties

      Properties

      apiKey?: string

      The Nevermined API Key. This key identify your user and is required to interact with the Nevermined API. You can get your API key by logging in to the Nevermined App.

      backendHost: string

      The host of the backend server

      -
      headers?: {
          [key: string]: string;
      }

      Additional headers to send with the requests

      -

      Type declaration

      • [key: string]: string
      proxyHost?: string

      The host of the Nevermined Proxy

      -
      webSocketHost?: string

      The host of the websocket server

      -
      webSocketOptions?: BackendWebSocketOptions

      Configuration of the websocket connection

      -
      \ No newline at end of file +
      backendHost: string

      The host of the backend server

      +
      headers?: {
          [key: string]: string;
      }

      Additional headers to send with the requests

      +

      Type declaration

      • [key: string]: string
      proxyHost?: string

      The host of the Nevermined Proxy

      +
      webSocketHost?: string

      The host of the websocket server

      +
      webSocketOptions?: BackendWebSocketOptions

      Configuration of the websocket connection

      +
      \ No newline at end of file diff --git a/docs/interfaces/BackendWebSocketOptions.html b/docs/interfaces/BackendWebSocketOptions.html index 5073030..ddc6318 100644 --- a/docs/interfaces/BackendWebSocketOptions.html +++ b/docs/interfaces/BackendWebSocketOptions.html @@ -1,9 +1,9 @@ -BackendWebSocketOptions | @nevermined-io/payments

      Interface BackendWebSocketOptions

      interface BackendWebSocketOptions {
          bearerToken?: string;
          path?: string;
          transportOptions?: {
              [key: string]: any;
          };
          transports?: string[];
      }

      Properties

      bearerToken? +BackendWebSocketOptions | @nevermined-io/payments

      Interface BackendWebSocketOptions

      interface BackendWebSocketOptions {
          bearerToken?: string;
          path?: string;
          transportOptions?: {
              [key: string]: any;
          };
          transports?: string[];
      }

      Properties

      bearerToken?: string

      The bearer token to use in the websocket connection

      -
      path?: string

      The path to connect to the websocket server

      -
      transportOptions?: {
          [key: string]: any;
      }

      Additional options to pass to the websocket transport

      -

      Type declaration

      • [key: string]: any
      transports?: string[]

      The websocket transports to use

      -
      \ No newline at end of file +
      path?: string

      The path to connect to the websocket server

      +
      transportOptions?: {
          [key: string]: any;
      }

      Additional options to pass to the websocket transport

      +

      Type declaration

      • [key: string]: any
      transports?: string[]

      The websocket transports to use

      +
      \ No newline at end of file diff --git a/docs/interfaces/Endpoint.html b/docs/interfaces/Endpoint.html index 7d02d08..350d379 100644 --- a/docs/interfaces/Endpoint.html +++ b/docs/interfaces/Endpoint.html @@ -1 +1 @@ -Endpoint | @nevermined-io/payments
      interface Endpoint {
          [verb: string]: string;
      }

      Indexable

      [verb: string]: string
      \ No newline at end of file +Endpoint | @nevermined-io/payments
      interface Endpoint {
          [verb: string]: string;
      }

      Indexable

      [verb: string]: string
      \ No newline at end of file diff --git a/docs/interfaces/EnvironmentInfo.html b/docs/interfaces/EnvironmentInfo.html index 2c63a38..c88e27c 100644 --- a/docs/interfaces/EnvironmentInfo.html +++ b/docs/interfaces/EnvironmentInfo.html @@ -1,5 +1,5 @@ -EnvironmentInfo | @nevermined-io/payments
      interface EnvironmentInfo {
          backend: string;
          frontend: string;
          proxy: string;
          websocketBackend: string;
      }

      Properties

      backend +EnvironmentInfo | @nevermined-io/payments
      interface EnvironmentInfo {
          backend: string;
          frontend: string;
          proxy: string;
          websocketBackend: string;
      }

      Properties

      backend: string
      frontend: string
      proxy: string
      websocketBackend: string
      \ No newline at end of file +

      Properties

      backend: string
      frontend: string
      proxy: string
      websocketBackend: string
      \ No newline at end of file diff --git a/docs/interfaces/ExecutionInput.html b/docs/interfaces/ExecutionInput.html index 1067580..284eb72 100644 --- a/docs/interfaces/ExecutionInput.html +++ b/docs/interfaces/ExecutionInput.html @@ -1,8 +1,8 @@ ExecutionInput | @nevermined-io/payments

      This task can be a question, a prompt, etc. It can include additional parameters and artifacts.

      -
      interface ExecutionInput {
          additional_params?: {
              [name: string]: string;
          }[];
          artifacts?: Artifact[];
          query: string;
      }

      Properties

      additional_params?: {
          [name: string]: string;
      }[]

      Additional parameters required for the task

      -

      Type declaration

      • [name: string]: string
      artifacts?: Artifact[]

      List of artifact ids that are associated with the task

      -
      query: string

      The input for the task. It can be a prompt, a question, etc

      -
      \ No newline at end of file +
      interface ExecutionInput {
          input_artifacts?: Artifact[];
          input_params?: {
              [name: string]: string;
          }[];
          input_query: string;
      }

      Hierarchy (view full)

      Properties

      input_artifacts?: Artifact[]

      List of artifact ids that are associated with the task

      +
      input_params?: {
          [name: string]: string;
      }[]

      Additional parameters required for the task

      +

      Type declaration

      • [name: string]: string
      input_query: string

      The input for the task. It can be a prompt, a question, etc

      +
      \ No newline at end of file diff --git a/docs/interfaces/ExecutionOptions.html b/docs/interfaces/ExecutionOptions.html index f7ddf0e..1bef750 100644 --- a/docs/interfaces/ExecutionOptions.html +++ b/docs/interfaces/ExecutionOptions.html @@ -1,13 +1,22 @@ -ExecutionOptions | @nevermined-io/payments

      Interface ExecutionOptions

      interface ExecutionOptions {
          created_at?: Date;
          input: ExecutionInput;
          output?: ExecutionOutput;
          retries?: number;
          status: AgentExecutionStatus;
          updated_at?: Date;
      }

      Hierarchy (view full)

      Properties

      created_at? -input -output? +ExecutionOptions | @nevermined-io/payments

      Interface ExecutionOptions

      This task can be a question, a prompt, etc. It can include additional parameters and artifacts.

      +
      interface ExecutionOptions {
          cost?: number;
          created_at?: Date;
          input_artifacts?: Artifact[];
          input_params?: {
              [name: string]: string;
          }[];
          input_query: string;
          output: any;
          output_additional?: {
              [name: string]: any;
          }[];
          output_artifacts?: any[];
          retries?: number;
          updated_at?: Date;
      }

      Hierarchy (view full)

      Properties

      created_at?: Date

      When the execution was created

      -

      The input for the task. It can be a prompt, a question, etc

      -

      The output of the step

      -
      retries?: number

      The number of retries for the task or step

      -

      The status of the execution

      -
      updated_at?: Date

      When the execution was last updated

      -
      \ No newline at end of file +

      Properties

      cost?: number

      The cost in credits resulting from the execution of the task or the step

      +
      created_at?: Date

      When the execution was created

      +
      input_artifacts?: Artifact[]

      List of artifact ids that are associated with the task

      +
      input_params?: {
          [name: string]: string;
      }[]

      Additional parameters required for the task

      +

      Type declaration

      • [name: string]: string
      input_query: string

      The input for the task. It can be a prompt, a question, etc

      +
      output: any

      The main output generated by a task or step

      +
      output_additional?: {
          [name: string]: any;
      }[]

      Additional output generated

      +

      Type declaration

      • [name: string]: any
      output_artifacts?: any[]

      List of artifact generated by the task or step

      +
      retries?: number

      The number of retries for the task or step

      +
      updated_at?: Date

      When the execution was last updated

      +
      \ No newline at end of file diff --git a/docs/interfaces/ExecutionOutput.html b/docs/interfaces/ExecutionOutput.html index f11dbad..fd749ee 100644 --- a/docs/interfaces/ExecutionOutput.html +++ b/docs/interfaces/ExecutionOutput.html @@ -1,8 +1,8 @@ ExecutionOutput | @nevermined-io/payments

      Output of the task or step execution

      -
      interface ExecutionOutput {
          additional_output?: {
              [name: string]: any;
          }[];
          artifacts?: string[];
          output: any;
      }

      Properties

      additional_output?: {
          [name: string]: any;
      }[]

      Additional output generated

      -

      Type declaration

      • [name: string]: any
      artifacts?: string[]

      List of artifact generated by the task or step

      -
      output: any

      The main output of the task

      -
      \ No newline at end of file +
      interface ExecutionOutput {
          output: any;
          output_additional?: {
              [name: string]: any;
          }[];
          output_artifacts?: any[];
      }

      Hierarchy (view full)

      Properties

      output: any

      The main output generated by a task or step

      +
      output_additional?: {
          [name: string]: any;
      }[]

      Additional output generated

      +

      Type declaration

      • [name: string]: any
      output_artifacts?: any[]

      List of artifact generated by the task or step

      +
      \ No newline at end of file diff --git a/docs/interfaces/PaymentOptions.html b/docs/interfaces/PaymentOptions.html index 7c025ea..78f7689 100644 --- a/docs/interfaces/PaymentOptions.html +++ b/docs/interfaces/PaymentOptions.html @@ -1,16 +1,16 @@ PaymentOptions | @nevermined-io/payments

      Options to initialize the Payments class.

      -
      interface PaymentOptions {
          appId?: string;
          environment: EnvironmentName;
          nvmApiKey?: string;
          returnUrl?: string;
          version?: string;
      }

      Properties

      interface PaymentOptions {
          appId?: string;
          environment: EnvironmentName;
          nvmApiKey?: string;
          returnUrl?: string;
          version?: string;
      }

      Properties

      appId?: string

      The app id. This attribute is optional and helps to associate assets registered into Nevermined with a common identifier.

      -
      environment: EnvironmentName

      The Nevermined environment to connect to. +

      environment: EnvironmentName

      The Nevermined environment to connect to. If you are developing an agent it's recommended to use the "testing" environment. When deploying to production use the "arbitrum" environment.

      -
      nvmApiKey?: string

      The Nevermined API Key. This key identify your user and is required to interact with the Nevermined API. +

      nvmApiKey?: string

      The Nevermined API Key. This key identify your user and is required to interact with the Nevermined API. You can get your API key by logging in to the Nevermined App.

      returnUrl?: string

      The URL to return to the app after a successful login.

      -
      version?: string

      The version of the API to use.

      -
      \ No newline at end of file +
      returnUrl?: string

      The URL to return to the app after a successful login.

      +
      version?: string

      The version of the API to use.

      +
      \ No newline at end of file diff --git a/docs/interfaces/SearchSteps.html b/docs/interfaces/SearchSteps.html index 933aa5b..7758ab6 100644 --- a/docs/interfaces/SearchSteps.html +++ b/docs/interfaces/SearchSteps.html @@ -1,8 +1,8 @@ -SearchSteps | @nevermined-io/payments
      interface SearchSteps {
          did?: string;
          name?: string;
          offset?: number;
          page?: number;
          step_id?: string;
          step_status?: AgentExecutionStatus;
          task_id?: string;
      }

      Properties

      did? +SearchSteps | @nevermined-io/payments
      interface SearchSteps {
          did?: string;
          name?: string;
          offset?: number;
          page?: number;
          step_id?: string;
          step_status?: AgentExecutionStatus;
          task_id?: string;
      }

      Properties

      did?: string
      name?: string
      offset?: number
      page?: number
      step_id?: string
      step_status?: AgentExecutionStatus
      task_id?: string
      \ No newline at end of file +

      Properties

      did?: string
      name?: string
      offset?: number
      page?: number
      step_id?: string
      step_status?: AgentExecutionStatus
      task_id?: string
      \ No newline at end of file diff --git a/docs/interfaces/SearchTasks.html b/docs/interfaces/SearchTasks.html index f0cc5a9..d48a1ae 100644 --- a/docs/interfaces/SearchTasks.html +++ b/docs/interfaces/SearchTasks.html @@ -1,7 +1,7 @@ -SearchTasks | @nevermined-io/payments
      interface SearchTasks {
          did?: string;
          name?: string;
          offset?: number;
          page?: number;
          task_id?: string;
          task_status?: AgentExecutionStatus;
      }

      Properties

      did? +SearchTasks | @nevermined-io/payments
      interface SearchTasks {
          did?: string;
          name?: string;
          offset?: number;
          page?: number;
          task_id?: string;
          task_status?: AgentExecutionStatus;
      }

      Properties

      did?: string
      name?: string
      offset?: number
      page?: number
      task_id?: string
      task_status?: AgentExecutionStatus
      \ No newline at end of file +

      Properties

      did?: string
      name?: string
      offset?: number
      page?: number
      task_id?: string
      task_status?: AgentExecutionStatus
      \ No newline at end of file diff --git a/docs/interfaces/Step.html b/docs/interfaces/Step.html index f525547..f046cc1 100644 --- a/docs/interfaces/Step.html +++ b/docs/interfaces/Step.html @@ -1,21 +1,34 @@ -Step | @nevermined-io/payments
      interface Step {
          created_at?: Date;
          input: ExecutionInput;
          is_last?: boolean;
          name?: string;
          output?: ExecutionOutput;
          retries?: number;
          status: AgentExecutionStatus;
          step_id: string;
          task_id: string;
          updated_at?: Date;
      }

      Hierarchy (view full)

      Properties

      created_at? -input +Step | @nevermined-io/payments

      This task can be a question, a prompt, etc. It can include additional parameters and artifacts.

      +
      interface Step {
          cost?: number;
          created_at?: Date;
          input_artifacts?: Artifact[];
          input_params?: {
              [name: string]: string;
          }[];
          input_query: string;
          is_last?: boolean;
          name?: string;
          output: any;
          output_additional?: {
              [name: string]: any;
          }[];
          output_artifacts?: any[];
          predecessor?: string;
          retries?: number;
          step_id: string;
          step_status: AgentExecutionStatus;
          task_id: string;
          updated_at?: Date;
      }

      Hierarchy (view full)

      Properties

      created_at?: Date

      When the execution was created

      -

      The input for the task. It can be a prompt, a question, etc

      -
      is_last?: boolean

      Whether this is the last step in the task.

      -
      name?: string

      The name of the step

      -

      The output of the step

      -
      retries?: number

      The number of retries for the task or step

      -

      The status of the execution

      -
      step_id: string

      The unique identifier of the step

      -
      task_id: string

      The task that the step belongs to

      -
      updated_at?: Date

      When the execution was last updated

      -
      \ No newline at end of file +

      Properties

      cost?: number

      The cost in credits resulting from the execution of the task or the step

      +
      created_at?: Date

      When the execution was created

      +
      input_artifacts?: Artifact[]

      List of artifact ids that are associated with the task

      +
      input_params?: {
          [name: string]: string;
      }[]

      Additional parameters required for the task

      +

      Type declaration

      • [name: string]: string
      input_query: string

      The input for the task. It can be a prompt, a question, etc

      +
      is_last?: boolean

      Whether this is the last step in the task.

      +
      name?: string

      The name of the step

      +
      output: any

      The main output generated by a task or step

      +
      output_additional?: {
          [name: string]: any;
      }[]

      Additional output generated

      +

      Type declaration

      • [name: string]: any
      output_artifacts?: any[]

      List of artifact generated by the task or step

      +
      predecessor?: string

      The step preceeding the current step if any

      +
      retries?: number

      The number of retries for the task or step

      +
      step_id: string

      The unique identifier of the step

      +

      The status of the execution

      +
      task_id: string

      The task that the step belongs to

      +
      updated_at?: Date

      When the execution was last updated

      +
      \ No newline at end of file diff --git a/docs/interfaces/Task.html b/docs/interfaces/Task.html index 9531a2d..95fd900 100644 --- a/docs/interfaces/Task.html +++ b/docs/interfaces/Task.html @@ -1,20 +1,30 @@ Task | @nevermined-io/payments

      A task defines something that the agent should execute.

      -
      interface Task {
          created_at?: Date;
          input: ExecutionInput;
          name?: string;
          output?: ExecutionOutput;
          retries?: number;
          status: AgentExecutionStatus;
          steps: Step[];
          task_id: string;
          updated_at?: Date;
      }

      Hierarchy (view full)

      Properties

      interface Task {
          cost?: number;
          created_at?: Date;
          input_artifacts?: Artifact[];
          input_params?: {
              [name: string]: string;
          }[];
          input_query: string;
          name?: string;
          output: any;
          output_additional?: {
              [name: string]: any;
          }[];
          output_artifacts?: any[];
          retries?: number;
          steps: Step[];
          task_id: string;
          task_status: AgentExecutionStatus;
          updated_at?: Date;
      }

      Hierarchy (view full)

      Properties

      created_at?: Date

      When the execution was created

      -

      The input for the task. It can be a prompt, a question, etc

      -
      name?: string

      The name of the task

      -

      The output of the step

      -
      retries?: number

      The number of retries for the task or step

      -

      The status of the execution

      -
      steps: Step[]

      The steps executed by the agent to complete the task

      -
      task_id: string

      The unique identifier of the task

      -
      updated_at?: Date

      When the execution was last updated

      -
      \ No newline at end of file +

      Properties

      cost?: number

      The cost in credits resulting from the execution of the task or the step

      +
      created_at?: Date

      When the execution was created

      +
      input_artifacts?: Artifact[]

      List of artifact ids that are associated with the task

      +
      input_params?: {
          [name: string]: string;
      }[]

      Additional parameters required for the task

      +

      Type declaration

      • [name: string]: string
      input_query: string

      The input for the task. It can be a prompt, a question, etc

      +
      name?: string

      The name of the task

      +
      output: any

      The main output generated by a task or step

      +
      output_additional?: {
          [name: string]: any;
      }[]

      Additional output generated

      +

      Type declaration

      • [name: string]: any
      output_artifacts?: any[]

      List of artifact generated by the task or step

      +
      retries?: number

      The number of retries for the task or step

      +
      steps: Step[]

      The steps executed by the agent to complete the task

      +
      task_id: string

      The unique identifier of the task

      +

      The status of the execution

      +
      updated_at?: Date

      When the execution was last updated

      +
      \ No newline at end of file diff --git a/docs/modules.html b/docs/modules.html index b5501f4..118cd85 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -24,13 +24,17 @@ GET_BUILDER_STEPS_ENDPOINT GET_TASK_ENDPOINT GET_TASK_STEPS_ENDPOINT -LAST_STEP_NAME SEARCH_STEPS_ENDPOINT SEARCH_TASKS_ENDPOINT TASK_ENDPOINT UPDATE_STEP_ENDPOINT ZeroAddress -

      Functions

      Functions

      \ No newline at end of file diff --git a/docs/types/EnvironmentName.html b/docs/types/EnvironmentName.html index 53ba269..2c8f13e 100644 --- a/docs/types/EnvironmentName.html +++ b/docs/types/EnvironmentName.html @@ -1 +1 @@ -EnvironmentName | @nevermined-io/payments

      Type alias EnvironmentName

      EnvironmentName: "local" | "staging" | "testing" | "arbitrum" | "peaq" | "custom"
      \ No newline at end of file +EnvironmentName | @nevermined-io/payments

      Type alias EnvironmentName

      EnvironmentName: "local" | "staging" | "testing" | "arbitrum" | "peaq" | "custom"
      \ No newline at end of file diff --git a/docs/variables/CREATE_STEPS_ENDPOINT.html b/docs/variables/CREATE_STEPS_ENDPOINT.html index 99d4598..1377474 100644 --- a/docs/variables/CREATE_STEPS_ENDPOINT.html +++ b/docs/variables/CREATE_STEPS_ENDPOINT.html @@ -1 +1 @@ -CREATE_STEPS_ENDPOINT | @nevermined-io/payments

      Variable CREATE_STEPS_ENDPOINTConst

      CREATE_STEPS_ENDPOINT: "/api/v1/agents/{did}/tasks/{taskId}/steps" = '/api/v1/agents/{did}/tasks/{taskId}/steps'
      \ No newline at end of file +CREATE_STEPS_ENDPOINT | @nevermined-io/payments

      Variable CREATE_STEPS_ENDPOINTConst

      CREATE_STEPS_ENDPOINT: "/api/v1/agents/{did}/tasks/{taskId}/steps" = '/api/v1/agents/{did}/tasks/{taskId}/steps'
      \ No newline at end of file diff --git a/docs/variables/Environments.html b/docs/variables/Environments.html index 81c077b..e6e6537 100644 --- a/docs/variables/Environments.html +++ b/docs/variables/Environments.html @@ -1,2 +1,2 @@ Environments | @nevermined-io/payments

      Variable EnvironmentsConst

      Environments: Record<EnvironmentName, EnvironmentInfo> = ...

      Represents the different environments and their corresponding URLs.

      -
      \ No newline at end of file +
      \ No newline at end of file diff --git a/docs/variables/FIRST_STEP_NAME.html b/docs/variables/FIRST_STEP_NAME.html index 67f897f..29bbe76 100644 --- a/docs/variables/FIRST_STEP_NAME.html +++ b/docs/variables/FIRST_STEP_NAME.html @@ -1 +1 @@ -FIRST_STEP_NAME | @nevermined-io/payments

      Variable FIRST_STEP_NAMEConst

      FIRST_STEP_NAME: "init" = 'init'
      \ No newline at end of file +FIRST_STEP_NAME | @nevermined-io/payments

      Variable FIRST_STEP_NAMEConst

      FIRST_STEP_NAME: "init" = 'init'
      \ No newline at end of file diff --git a/docs/variables/GET_AGENTS_ENDPOINT.html b/docs/variables/GET_AGENTS_ENDPOINT.html index 698fa14..39a0451 100644 --- a/docs/variables/GET_AGENTS_ENDPOINT.html +++ b/docs/variables/GET_AGENTS_ENDPOINT.html @@ -1 +1 @@ -GET_AGENTS_ENDPOINT | @nevermined-io/payments

      Variable GET_AGENTS_ENDPOINTConst

      GET_AGENTS_ENDPOINT: "/api/v1/agents" = '/api/v1/agents'
      \ No newline at end of file +GET_AGENTS_ENDPOINT | @nevermined-io/payments

      Variable GET_AGENTS_ENDPOINTConst

      GET_AGENTS_ENDPOINT: "/api/v1/agents" = '/api/v1/agents'
      \ No newline at end of file diff --git a/docs/variables/GET_BUILDER_STEPS_ENDPOINT.html b/docs/variables/GET_BUILDER_STEPS_ENDPOINT.html index cc2b459..1500792 100644 --- a/docs/variables/GET_BUILDER_STEPS_ENDPOINT.html +++ b/docs/variables/GET_BUILDER_STEPS_ENDPOINT.html @@ -1 +1 @@ -GET_BUILDER_STEPS_ENDPOINT | @nevermined-io/payments

      Variable GET_BUILDER_STEPS_ENDPOINTConst

      GET_BUILDER_STEPS_ENDPOINT: "/api/v1/agents/steps" = '/api/v1/agents/steps'
      \ No newline at end of file +GET_BUILDER_STEPS_ENDPOINT | @nevermined-io/payments

      Variable GET_BUILDER_STEPS_ENDPOINTConst

      GET_BUILDER_STEPS_ENDPOINT: "/api/v1/agents/steps" = '/api/v1/agents/steps'
      \ No newline at end of file diff --git a/docs/variables/GET_TASK_ENDPOINT.html b/docs/variables/GET_TASK_ENDPOINT.html index 3c33307..baaca05 100644 --- a/docs/variables/GET_TASK_ENDPOINT.html +++ b/docs/variables/GET_TASK_ENDPOINT.html @@ -1 +1 @@ -GET_TASK_ENDPOINT | @nevermined-io/payments

      Variable GET_TASK_ENDPOINTConst

      GET_TASK_ENDPOINT: "/api/v1/agents/{did}/tasks/{taskId}" = '/api/v1/agents/{did}/tasks/{taskId}'
      \ No newline at end of file +GET_TASK_ENDPOINT | @nevermined-io/payments

      Variable GET_TASK_ENDPOINTConst

      GET_TASK_ENDPOINT: "/api/v1/agents/{did}/tasks/{taskId}" = '/api/v1/agents/{did}/tasks/{taskId}'
      \ No newline at end of file diff --git a/docs/variables/GET_TASK_STEPS_ENDPOINT.html b/docs/variables/GET_TASK_STEPS_ENDPOINT.html index 42fda1d..7a49f2d 100644 --- a/docs/variables/GET_TASK_STEPS_ENDPOINT.html +++ b/docs/variables/GET_TASK_STEPS_ENDPOINT.html @@ -1 +1 @@ -GET_TASK_STEPS_ENDPOINT | @nevermined-io/payments

      Variable GET_TASK_STEPS_ENDPOINTConst

      GET_TASK_STEPS_ENDPOINT: "/api/v1/agents/{did}/tasks/{taskId}/steps" = '/api/v1/agents/{did}/tasks/{taskId}/steps'
      \ No newline at end of file +GET_TASK_STEPS_ENDPOINT | @nevermined-io/payments

      Variable GET_TASK_STEPS_ENDPOINTConst

      GET_TASK_STEPS_ENDPOINT: "/api/v1/agents/{did}/tasks/{taskId}/steps" = '/api/v1/agents/{did}/tasks/{taskId}/steps'
      \ No newline at end of file diff --git a/docs/variables/LAST_STEP_NAME.html b/docs/variables/LAST_STEP_NAME.html deleted file mode 100644 index 063344a..0000000 --- a/docs/variables/LAST_STEP_NAME.html +++ /dev/null @@ -1 +0,0 @@ -LAST_STEP_NAME | @nevermined-io/payments

      Variable LAST_STEP_NAMEConst

      LAST_STEP_NAME: "init" = 'init'
      \ No newline at end of file diff --git a/docs/variables/SEARCH_STEPS_ENDPOINT.html b/docs/variables/SEARCH_STEPS_ENDPOINT.html index 516225f..4db7a91 100644 --- a/docs/variables/SEARCH_STEPS_ENDPOINT.html +++ b/docs/variables/SEARCH_STEPS_ENDPOINT.html @@ -1 +1 @@ -SEARCH_STEPS_ENDPOINT | @nevermined-io/payments

      Variable SEARCH_STEPS_ENDPOINTConst

      SEARCH_STEPS_ENDPOINT: "/api/v1/agents/search/steps" = '/api/v1/agents/search/steps'
      \ No newline at end of file +SEARCH_STEPS_ENDPOINT | @nevermined-io/payments

      Variable SEARCH_STEPS_ENDPOINTConst

      SEARCH_STEPS_ENDPOINT: "/api/v1/agents/search/steps" = '/api/v1/agents/search/steps'
      \ No newline at end of file diff --git a/docs/variables/SEARCH_TASKS_ENDPOINT.html b/docs/variables/SEARCH_TASKS_ENDPOINT.html index 1125701..342a9ff 100644 --- a/docs/variables/SEARCH_TASKS_ENDPOINT.html +++ b/docs/variables/SEARCH_TASKS_ENDPOINT.html @@ -1 +1 @@ -SEARCH_TASKS_ENDPOINT | @nevermined-io/payments

      Variable SEARCH_TASKS_ENDPOINTConst

      SEARCH_TASKS_ENDPOINT: "/api/v1/agents/search/tasks" = '/api/v1/agents/search/tasks'
      \ No newline at end of file +SEARCH_TASKS_ENDPOINT | @nevermined-io/payments

      Variable SEARCH_TASKS_ENDPOINTConst

      SEARCH_TASKS_ENDPOINT: "/api/v1/agents/search/tasks" = '/api/v1/agents/search/tasks'
      \ No newline at end of file diff --git a/docs/variables/TASK_ENDPOINT.html b/docs/variables/TASK_ENDPOINT.html index 658a36d..80321f8 100644 --- a/docs/variables/TASK_ENDPOINT.html +++ b/docs/variables/TASK_ENDPOINT.html @@ -1 +1 @@ -TASK_ENDPOINT | @nevermined-io/payments

      Variable TASK_ENDPOINTConst

      TASK_ENDPOINT: "/api/v1/agents/{did}/tasks" = '/api/v1/agents/{did}/tasks'
      \ No newline at end of file +TASK_ENDPOINT | @nevermined-io/payments

      Variable TASK_ENDPOINTConst

      TASK_ENDPOINT: "/api/v1/agents/{did}/tasks" = '/api/v1/agents/{did}/tasks'
      \ No newline at end of file diff --git a/docs/variables/UPDATE_STEP_ENDPOINT.html b/docs/variables/UPDATE_STEP_ENDPOINT.html index c54196d..eeccf99 100644 --- a/docs/variables/UPDATE_STEP_ENDPOINT.html +++ b/docs/variables/UPDATE_STEP_ENDPOINT.html @@ -1 +1 @@ -UPDATE_STEP_ENDPOINT | @nevermined-io/payments

      Variable UPDATE_STEP_ENDPOINTConst

      UPDATE_STEP_ENDPOINT: "/api/v1/agents/{did}/tasks/{taskId}/step/{stepId}" = '/api/v1/agents/{did}/tasks/{taskId}/step/{stepId}'
      \ No newline at end of file +UPDATE_STEP_ENDPOINT | @nevermined-io/payments

      Variable UPDATE_STEP_ENDPOINTConst

      UPDATE_STEP_ENDPOINT: "/api/v1/agents/{did}/tasks/{taskId}/step/{stepId}" = '/api/v1/agents/{did}/tasks/{taskId}/step/{stepId}'
      \ No newline at end of file diff --git a/docs/variables/ZeroAddress.html b/docs/variables/ZeroAddress.html index dbd2e51..09a628a 100644 --- a/docs/variables/ZeroAddress.html +++ b/docs/variables/ZeroAddress.html @@ -1 +1 @@ -ZeroAddress | @nevermined-io/payments

      Variable ZeroAddressConst

      ZeroAddress: "0x0000000000000000000000000000000000000000" = '0x0000000000000000000000000000000000000000'
      \ No newline at end of file +ZeroAddress | @nevermined-io/payments

      Variable ZeroAddressConst

      ZeroAddress: "0x0000000000000000000000000000000000000000" = '0x0000000000000000000000000000000000000000'
      \ No newline at end of file