Skip to content

Latest commit

 

History

History
2545 lines (1889 loc) · 235 KB

File metadata and controls

2545 lines (1889 loc) · 235 KB

Datasets

Overview

Available Operations

uploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPost

Upload Prompt Evaluation Dataset

⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.

Example Usage

import { GalileoGenerated } from "galileo-generated";
import { openAsBlob } from "node:fs";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.uploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPost({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    projectId: "<value>",
    body: {
      file: await openAsBlob("example.file"),
    },
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsUploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPost } from "galileo-generated/funcs/datasetsUploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPost.js";
import { openAsBlob } from "node:fs";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsUploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPost(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    projectId: "<value>",
    body: {
      file: await openAsBlob("example.file"),
    },
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsUploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPost failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.UploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPostRequest ✔️ The request object to use for the request.
security operations.UploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPostSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.PromptDatasetDB>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

listPromptDatasetsProjectsProjectIdPromptDatasetsGet

List Prompt Datasets

⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.listPromptDatasetsProjectsProjectIdPromptDatasetsGet({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    projectId: "<value>",
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsListPromptDatasetsProjectsProjectIdPromptDatasetsGet } from "galileo-generated/funcs/datasetsListPromptDatasetsProjectsProjectIdPromptDatasetsGet.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsListPromptDatasetsProjectsProjectIdPromptDatasetsGet(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    projectId: "<value>",
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsListPromptDatasetsProjectsProjectIdPromptDatasetsGet failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.ListPromptDatasetsProjectsProjectIdPromptDatasetsGetRequest ✔️ The request object to use for the request.
security operations.ListPromptDatasetsProjectsProjectIdPromptDatasetsGetSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.ListPromptDatasetResponse>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

createDatasetDatasetsPost

Creates a standalone dataset.

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.createDatasetDatasetsPost({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {});

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsCreateDatasetDatasetsPost } from "galileo-generated/funcs/datasetsCreateDatasetDatasetsPost.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsCreateDatasetDatasetsPost(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {});
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsCreateDatasetDatasetsPost failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.CreateDatasetDatasetsPostRequest ✔️ The request object to use for the request.
security operations.CreateDatasetDatasetsPostSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.DatasetDB>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

listDatasetsDatasetsGet

List Datasets

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.listDatasetsDatasetsGet({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {});

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsListDatasetsDatasetsGet } from "galileo-generated/funcs/datasetsListDatasetsDatasetsGet.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsListDatasetsDatasetsGet(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {});
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsListDatasetsDatasetsGet failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.ListDatasetsDatasetsGetRequest ✔️ The request object to use for the request.
security operations.ListDatasetsDatasetsGetSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.ListDatasetResponse>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

bulkDeleteDatasetsDatasetsBulkDeleteDelete

Delete multiple datasets in bulk.

This endpoint allows efficient deletion of multiple datasets at once. It validates permissions for each dataset in the service and provides detailed feedback about successful and failed deletions for each dataset.

Parameters

delete_request : BulkDeleteDatasetsRequest Request containing list of dataset IDs to delete (max 100) ctx : Context Request context including authentication information

Returns

BulkDeleteDatasetsResponse Details about the bulk deletion operation including: - Number of successfully deleted datasets - List of failed deletions with reasons - Summary message

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.bulkDeleteDatasetsDatasetsBulkDeleteDelete({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetIds: [
      "<value 1>",
      "<value 2>",
    ],
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsBulkDeleteDatasetsDatasetsBulkDeleteDelete } from "galileo-generated/funcs/datasetsBulkDeleteDatasetsDatasetsBulkDeleteDelete.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsBulkDeleteDatasetsDatasetsBulkDeleteDelete(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetIds: [
      "<value 1>",
      "<value 2>",
    ],
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsBulkDeleteDatasetsDatasetsBulkDeleteDelete failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request models.BulkDeleteDatasetsRequest ✔️ The request object to use for the request.
security operations.BulkDeleteDatasetsDatasetsBulkDeleteDeleteSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.BulkDeleteDatasetsResponse>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

getDatasetDatasetsDatasetIdGet

Get Dataset

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.getDatasetDatasetsDatasetIdGet({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsGetDatasetDatasetsDatasetIdGet } from "galileo-generated/funcs/datasetsGetDatasetDatasetsDatasetIdGet.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsGetDatasetDatasetsDatasetIdGet(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsGetDatasetDatasetsDatasetIdGet failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.GetDatasetDatasetsDatasetIdGetRequest ✔️ The request object to use for the request.
security operations.GetDatasetDatasetsDatasetIdGetSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.DatasetDB>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

updateDatasetDatasetsDatasetIdPatch

Update Dataset

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.updateDatasetDatasetsDatasetIdPatch({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    body: {},
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsUpdateDatasetDatasetsDatasetIdPatch } from "galileo-generated/funcs/datasetsUpdateDatasetDatasetsDatasetIdPatch.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsUpdateDatasetDatasetsDatasetIdPatch(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    body: {},
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsUpdateDatasetDatasetsDatasetIdPatch failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.UpdateDatasetDatasetsDatasetIdPatchRequest ✔️ The request object to use for the request.
security operations.UpdateDatasetDatasetsDatasetIdPatchSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.DatasetDB>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

deleteDatasetDatasetsDatasetIdDelete

Delete Dataset

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.deleteDatasetDatasetsDatasetIdDelete({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsDeleteDatasetDatasetsDatasetIdDelete } from "galileo-generated/funcs/datasetsDeleteDatasetDatasetsDatasetIdDelete.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsDeleteDatasetDatasetsDatasetIdDelete(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsDeleteDatasetDatasetsDatasetIdDelete failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.DeleteDatasetDatasetsDatasetIdDeleteRequest ✔️ The request object to use for the request.
security operations.DeleteDatasetDatasetsDatasetIdDeleteSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<any>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

queryDatasetsDatasetsQueryPost

Query Datasets

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.queryDatasetsDatasetsQueryPost({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {});

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsQueryDatasetsDatasetsQueryPost } from "galileo-generated/funcs/datasetsQueryDatasetsDatasetsQueryPost.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsQueryDatasetsDatasetsQueryPost(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {});
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsQueryDatasetsDatasetsQueryPost failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.QueryDatasetsDatasetsQueryPostRequest ✔️ The request object to use for the request.
security operations.QueryDatasetsDatasetsQueryPostSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.ListDatasetResponse>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

updatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPut

Update Prompt Dataset

⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.updatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPut({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    projectId: "<value>",
    datasetId: "<value>",
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsUpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPut } from "galileo-generated/funcs/datasetsUpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPut.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsUpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPut(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    projectId: "<value>",
    datasetId: "<value>",
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsUpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPut failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.UpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPutRequest ✔️ The request object to use for the request.
security operations.UpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPutSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.PromptDatasetDB>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

deletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDelete

Delete Prompt Dataset

⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.deletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDelete({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    projectId: "<value>",
    datasetId: "<value>",
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsDeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDelete } from "galileo-generated/funcs/datasetsDeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDelete.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsDeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDelete(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    projectId: "<value>",
    datasetId: "<value>",
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsDeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDelete failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.DeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDeleteRequest ✔️ The request object to use for the request.
security operations.DeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDeleteSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<any>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

downloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGet

Download Prompt Dataset

⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  await galileoGenerated.datasets.downloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGet({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    projectId: "<value>",
    datasetId: "<value>",
  });


}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsDownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGet } from "galileo-generated/funcs/datasetsDownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGet.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsDownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGet(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    projectId: "<value>",
    datasetId: "<value>",
  });
  if (res.ok) {
    const { value: result } = res;
    
  } else {
    console.log("datasetsDownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGet failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.DownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGetRequest ✔️ The request object to use for the request.
security operations.DownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGetSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<void>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

updateDatasetContentDatasetsDatasetIdContentPatch

Update the content of a dataset.

The index and column_name fields are treated as keys tied to a specific version of the dataset. As such, these values are considered immutable identifiers for the dataset's structure.

For example, if an edit operation changes the name of a column, subsequent edit operations in the same request should reference the column using its original name.

The If-Match header is used to ensure that updates are only applied if the client's version of the dataset matches the server's version. This prevents conflicts from simultaneous updates. The ETag header in the response provides the new version identifier after a successful update.

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.updateDatasetContentDatasetsDatasetIdContentPatch({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    ifMatch: "d89cce33-549d-4b6d-b220-afb641d859c8",
    body: {
      edits: [
        {
          editType: "filter_rows",
          rowIds: [
            "<value 1>",
            "<value 2>",
          ],
        },
      ],
    },
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsUpdateDatasetContentDatasetsDatasetIdContentPatch } from "galileo-generated/funcs/datasetsUpdateDatasetContentDatasetsDatasetIdContentPatch.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsUpdateDatasetContentDatasetsDatasetIdContentPatch(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    ifMatch: "d89cce33-549d-4b6d-b220-afb641d859c8",
    body: {
      edits: [
        {
          editType: "filter_rows",
          rowIds: [
            "<value 1>",
            "<value 2>",
          ],
        },
      ],
    },
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsUpdateDatasetContentDatasetsDatasetIdContentPatch failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.UpdateDatasetContentDatasetsDatasetIdContentPatchRequest ✔️ The request object to use for the request.
security operations.UpdateDatasetContentDatasetsDatasetIdContentPatchSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<any>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

getDatasetContentDatasetsDatasetIdContentGet

Get Dataset Content

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.getDatasetContentDatasetsDatasetIdContentGet({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsGetDatasetContentDatasetsDatasetIdContentGet } from "galileo-generated/funcs/datasetsGetDatasetContentDatasetsDatasetIdContentGet.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsGetDatasetContentDatasetsDatasetIdContentGet(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsGetDatasetContentDatasetsDatasetIdContentGet failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.GetDatasetContentDatasetsDatasetIdContentGetRequest ✔️ The request object to use for the request.
security operations.GetDatasetContentDatasetsDatasetIdContentGetSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.DatasetContent>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

upsertDatasetContentDatasetsDatasetIdContentPut

Rollback the content of a dataset to a previous version.

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.upsertDatasetContentDatasetsDatasetIdContentPut({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    body: {
      datasetId: "<value>",
    },
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsUpsertDatasetContentDatasetsDatasetIdContentPut } from "galileo-generated/funcs/datasetsUpsertDatasetContentDatasetsDatasetIdContentPut.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsUpsertDatasetContentDatasetsDatasetIdContentPut(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    body: {
      datasetId: "<value>",
    },
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsUpsertDatasetContentDatasetsDatasetIdContentPut failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.UpsertDatasetContentDatasetsDatasetIdContentPutRequest ✔️ The request object to use for the request.
security operations.UpsertDatasetContentDatasetsDatasetIdContentPutSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<any>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

downloadDatasetDatasetsDatasetIdDownloadGet

Download Dataset

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.downloadDatasetDatasetsDatasetIdDownloadGet({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsDownloadDatasetDatasetsDatasetIdDownloadGet } from "galileo-generated/funcs/datasetsDownloadDatasetDatasetsDatasetIdDownloadGet.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsDownloadDatasetDatasetsDatasetIdDownloadGet(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsDownloadDatasetDatasetsDatasetIdDownloadGet failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.DownloadDatasetDatasetsDatasetIdDownloadGetRequest ✔️ The request object to use for the request.
security operations.DownloadDatasetDatasetsDatasetIdDownloadGetSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<any>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

previewDatasetDatasetsDatasetIdPreviewPost

Preview Dataset

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.previewDatasetDatasetsDatasetIdPreviewPost({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    body: {},
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsPreviewDatasetDatasetsDatasetIdPreviewPost } from "galileo-generated/funcs/datasetsPreviewDatasetDatasetsDatasetIdPreviewPost.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsPreviewDatasetDatasetsDatasetIdPreviewPost(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    body: {},
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsPreviewDatasetDatasetsDatasetIdPreviewPost failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.PreviewDatasetDatasetsDatasetIdPreviewPostRequest ✔️ The request object to use for the request.
security operations.PreviewDatasetDatasetsDatasetIdPreviewPostSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.DatasetContent>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

queryDatasetContentDatasetsDatasetIdContentQueryPost

Query Dataset Content

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.queryDatasetContentDatasetsDatasetIdContentQueryPost({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsQueryDatasetContentDatasetsDatasetIdContentQueryPost } from "galileo-generated/funcs/datasetsQueryDatasetContentDatasetsDatasetIdContentQueryPost.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsQueryDatasetContentDatasetsDatasetIdContentQueryPost(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsQueryDatasetContentDatasetsDatasetIdContentQueryPost failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.QueryDatasetContentDatasetsDatasetIdContentQueryPostRequest ✔️ The request object to use for the request.
security operations.QueryDatasetContentDatasetsDatasetIdContentQueryPostSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.DatasetContent>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

createUserDatasetCollaboratorsDatasetsDatasetIdUsersPost

Create User Dataset Collaborators

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.createUserDatasetCollaboratorsDatasetsDatasetIdUsersPost({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    body: [],
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsCreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPost } from "galileo-generated/funcs/datasetsCreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPost.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsCreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPost(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    body: [],
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsCreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPost failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.CreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPostRequest ✔️ The request object to use for the request.
security operations.CreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPostSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.UserCollaborator[]>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

listUserDatasetCollaboratorsDatasetsDatasetIdUsersGet

List the users with which the dataset has been shared.

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.listUserDatasetCollaboratorsDatasetsDatasetIdUsersGet({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsListUserDatasetCollaboratorsDatasetsDatasetIdUsersGet } from "galileo-generated/funcs/datasetsListUserDatasetCollaboratorsDatasetsDatasetIdUsersGet.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsListUserDatasetCollaboratorsDatasetsDatasetIdUsersGet(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsListUserDatasetCollaboratorsDatasetsDatasetIdUsersGet failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.ListUserDatasetCollaboratorsDatasetsDatasetIdUsersGetRequest ✔️ The request object to use for the request.
security operations.ListUserDatasetCollaboratorsDatasetsDatasetIdUsersGetSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.ListUserCollaboratorsResponse>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

createGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPost

Share a dataset with groups.

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.createGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPost({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    body: [],
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsCreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPost } from "galileo-generated/funcs/datasetsCreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPost.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsCreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPost(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    body: [],
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsCreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPost failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.CreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPostRequest ✔️ The request object to use for the request.
security operations.CreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPostSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.GroupCollaborator[]>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

listGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGet

List the groups with which the dataset has been shared.

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.listGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGet({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGet } from "galileo-generated/funcs/datasetsListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGet.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGet(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGet failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.ListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGetRequest ✔️ The request object to use for the request.
security operations.ListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGetSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.ListGroupCollaboratorsResponse>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

updateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatch

Update the sharing permissions of a user on a dataset.

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.updateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatch({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    userId: "<value>",
    body: {
      role: "annotator",
    },
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsUpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatch } from "galileo-generated/funcs/datasetsUpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatch.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsUpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatch(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    userId: "<value>",
    body: {
      role: "annotator",
    },
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsUpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatch failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.UpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatchRequest ✔️ The request object to use for the request.
security operations.UpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatchSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.UserCollaborator>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

deleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDelete

Remove a user's access to a dataset.

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.deleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDelete({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    userId: "<value>",
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsDeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDelete } from "galileo-generated/funcs/datasetsDeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDelete.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsDeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDelete(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    userId: "<value>",
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsDeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDelete failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.DeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDeleteRequest ✔️ The request object to use for the request.
security operations.DeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDeleteSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<any>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

updateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatch

Update the sharing permissions of a group on a dataset.

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.updateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatch({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    groupId: "<value>",
    body: {
      role: "owner",
    },
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsUpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatch } from "galileo-generated/funcs/datasetsUpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatch.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsUpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatch(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    groupId: "<value>",
    body: {
      role: "owner",
    },
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsUpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatch failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.UpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatchRequest ✔️ The request object to use for the request.
security operations.UpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatchSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.GroupCollaborator>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

deleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDelete

Remove a group's access to a dataset.

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.deleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDelete({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    groupId: "<value>",
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsDeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDelete } from "galileo-generated/funcs/datasetsDeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDelete.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsDeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDelete(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    groupId: "<value>",
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsDeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDelete failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.DeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDeleteRequest ✔️ The request object to use for the request.
security operations.DeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDeleteSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<any>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

queryDatasetVersionsDatasetsDatasetIdVersionsQueryPost

Query Dataset Versions

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.queryDatasetVersionsDatasetsDatasetIdVersionsQueryPost({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsQueryDatasetVersionsDatasetsDatasetIdVersionsQueryPost } from "galileo-generated/funcs/datasetsQueryDatasetVersionsDatasetsDatasetIdVersionsQueryPost.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsQueryDatasetVersionsDatasetsDatasetIdVersionsQueryPost(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsQueryDatasetVersionsDatasetsDatasetIdVersionsQueryPost failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.QueryDatasetVersionsDatasetsDatasetIdVersionsQueryPostRequest ✔️ The request object to use for the request.
security operations.QueryDatasetVersionsDatasetsDatasetIdVersionsQueryPostSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.ListDatasetVersionResponse>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

getDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGet

Get Dataset Version Content

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.getDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGet({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    versionIndex: 602551,
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsGetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGet } from "galileo-generated/funcs/datasetsGetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGet.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsGetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGet(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    versionIndex: 602551,
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsGetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGet failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.GetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGetRequest ✔️ The request object to use for the request.
security operations.GetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGetSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.DatasetContent>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

updateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatch

Update Dataset Version

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.updateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatch({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    versionIndex: 462507,
    body: {},
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsUpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatch } from "galileo-generated/funcs/datasetsUpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatch.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsUpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatch(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
    versionIndex: 462507,
    body: {},
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsUpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatch failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.UpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatchRequest ✔️ The request object to use for the request.
security operations.UpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatchSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.DatasetVersionDB>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

listDatasetProjectsDatasetsDatasetIdProjectsGet

List Dataset Projects

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.listDatasetProjectsDatasetsDatasetIdProjectsGet({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsListDatasetProjectsDatasetsDatasetIdProjectsGet } from "galileo-generated/funcs/datasetsListDatasetProjectsDatasetsDatasetIdProjectsGet.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsListDatasetProjectsDatasetsDatasetIdProjectsGet(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsListDatasetProjectsDatasetsDatasetIdProjectsGet failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.ListDatasetProjectsDatasetsDatasetIdProjectsGetRequest ✔️ The request object to use for the request.
security operations.ListDatasetProjectsDatasetsDatasetIdProjectsGetSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.ListDatasetProjectsResponse>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

extendDatasetContentDatasetsExtendPost

Extends the dataset content

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.extendDatasetContentDatasetsExtendPost({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {});

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsExtendDatasetContentDatasetsExtendPost } from "galileo-generated/funcs/datasetsExtendDatasetContentDatasetsExtendPost.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsExtendDatasetContentDatasetsExtendPost(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {});
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsExtendDatasetContentDatasetsExtendPost failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request models.SyntheticDatasetExtensionRequest ✔️ The request object to use for the request.
security operations.ExtendDatasetContentDatasetsExtendPostSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.SyntheticDatasetExtensionResponse>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*

getDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGet

Get Dataset Synthetic Extend Status

Example Usage

import { GalileoGenerated } from "galileo-generated";

const galileoGenerated = new GalileoGenerated();

async function run() {
  const result = await galileoGenerated.datasets.getDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGet({
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });

  console.log(result);
}

run();

Standalone function

The standalone function version of this method:

import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { datasetsGetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGet } from "galileo-generated/funcs/datasetsGetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGet.js";

// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();

async function run() {
  const res = await datasetsGetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGet(galileoGenerated, {
    apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
  }, {
    datasetId: "<value>",
  });
  if (res.ok) {
    const { value: result } = res;
    console.log(result);
  } else {
    console.log("datasetsGetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGet failed:", res.error);
  }
}

run();

Parameters

Parameter Type Required Description
request operations.GetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGetRequest ✔️ The request object to use for the request.
security operations.GetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGetSecurity ✔️ The security requirements to use for the request.
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.
options.retries RetryConfig Enables retrying HTTP requests under certain failure conditions.

Response

Promise<models.JobProgress>

Errors

Error Type Status Code Content Type
errors.HTTPValidationError 422 application/json
errors.GalileoGeneratedDefaultError 4XX, 5XX */*