with Hathr AI and Ory?
Emit new event when a new document is created. See the documentation
Retrieves a list of all available documents. See the documentation
Uploads a document that can be used in future chat requests. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    hathr_ai: {
      type: "app",
      app: "hathr_ai",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.hathr.ai/v1/document/list`,
      headers: {
        Authorization: `Bearer ${this.hathr_ai.$auth.oauth_access_token}`,
      },
    })
  },
})
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    ory: {
      type: "app",
      app: "ory",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.console.ory.sh/projects`,
      headers: {
        Authorization: `Bearer ${this.ory.$auth.workspace_api_key}`,
        "Content-Type": `application/json`,
      },
    })
  },
})